@vkontakte/videoplayer 1.1.64-dev.dae0b8a8.0 → 1.1.64

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.cjs.js CHANGED
@@ -1,63 +1,63 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.64-dev.dae0b8a8.0
3
- * Mon, 09 Jun 2025 04:03:57 GMT
2
+ * @vkontakte/videoplayer v1.1.64
3
+ * Tue, 10 Jun 2025 18:54:17 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
5
5
  */
6
- "use strict";var _0=Object.create;var Ml=Object.defineProperty,b0=Object.defineProperties,$0=Object.getOwnPropertyDescriptor,y0=Object.getOwnPropertyDescriptors,x0=Object.getOwnPropertyNames,_v=Object.getOwnPropertySymbols,w0=Object.getPrototypeOf,bv=Object.prototype.hasOwnProperty,S0=Object.prototype.propertyIsEnumerable;var $v=t=>{throw TypeError(t)};var zu=(t,e,i)=>e in t?Ml(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,q=(t,e)=>{for(var i in e||(e={}))bv.call(e,i)&&zu(t,i,e[i]);if(_v)for(var i of _v(e))S0.call(e,i)&&zu(t,i,e[i]);return t},Nt=(t,e)=>b0(t,y0(e));var C0=(t,e)=>{for(var i in e)Ml(t,i,{get:e[i],enumerable:!0})},yv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of x0(e))!bv.call(t,n)&&n!==i&&Ml(t,n,{get:()=>e[n],enumerable:!(o=$0(e,n))||o.enumerable});return t};var xv=(t,e,i)=>(i=t!=null?_0(w0(t)):{},yv(e||!t||!t.__esModule?Ml(i,"default",{value:t,enumerable:!0}):i,t)),T0=t=>yv(Ml({},"__esModule",{value:!0}),t);var On=(t,e,i)=>zu(t,typeof e!="symbol"?e+"":e,i),qu=(t,e,i)=>e.has(t)||$v("Cannot "+i);var Di=(t,e,i)=>(qu(t,e,"read from private field"),i?i.call(t):e.get(t)),us=(t,e,i)=>e.has(t)?$v("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ma=(t,e,i,o)=>(qu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),wv=(t,e,i)=>(qu(t,e,"access private method"),i);var Mt=(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 Ox={};C0(Ox,{ControlButtonType:()=>Pd,GridTypes:()=>xr,InterfaceLanguage:()=>Sl.InterfaceLanguage,MenuItemType:()=>ll,PlayerPhase:()=>qr,VERSION:()=>ta,VKNumericLanguage:()=>Sl.VKNumericLanguage,VideoFormat:()=>Bu.VideoFormat,VideoQuality:()=>Bu.VideoQuality,loadVKLangPack:()=>Sl.loadVKLangPack,registerPlayerWebComponent:()=>Bx});module.exports=T0(Ox);var ps="[",Ns="[!",Bs="]",Qr={};var Ni=Symbol(),bi=Symbol("filename"),Sv=Symbol("hmr"),Cv="http://www.w3.org/1999/xhtml",Wu="http://www.w3.org/2000/svg";var fc=!0;var Iv,kv,Tv=(kv=(Iv=globalThis.process)==null?void 0:Iv.env)==null?void 0:kv.NODE_ENV,Ee=Tv&&!Tv.toLowerCase().startsWith("prod");var Ko=Symbol("$state"),Gr=Symbol("$state metadata"),Ll=Symbol("legacy props"),Ev=Symbol("");var vr=Array.isArray,Pv=Array.prototype.indexOf,Vl=Array.from,Ku=Object.keys,fo=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,mc=Object.getOwnPropertyDescriptors,Qu=Object.prototype,Av=Array.prototype,jr=Object.getPrototypeOf;function fs(t){return typeof t=="function"}var ne=()=>{};function Mv(t){return t()}function ms(t){for(var e=0;e<t.length;e++)t[e]()}var Rl=[],Gu=[];function Lv(){var t=Rl;Rl=[],ms(t)}function I0(){var t=Gu;Gu=[],ms(t)}function sn(t){Rl.length===0&&queueMicrotask(Lv),Rl.push(t)}function ju(){Rl.length>0&&Lv(),Gu.length>0&&I0()}function vc(t){return t===this.v}function La(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Vv(t,e){return t!==e}function Va(t){return!La(t,this.v)}function Rv(){if(Ee){let t=new Error(`derived_references_self
6
+ "use strict";var y0=Object.create;var Al=Object.defineProperty,x0=Object.defineProperties,w0=Object.getOwnPropertyDescriptor,S0=Object.getOwnPropertyDescriptors,C0=Object.getOwnPropertyNames,bv=Object.getOwnPropertySymbols,T0=Object.getPrototypeOf,$v=Object.prototype.hasOwnProperty,I0=Object.prototype.propertyIsEnumerable;var yv=t=>{throw TypeError(t)};var qu=(t,e,i)=>e in t?Al(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,W=(t,e)=>{for(var i in e||(e={}))$v.call(e,i)&&qu(t,i,e[i]);if(bv)for(var i of bv(e))I0.call(e,i)&&qu(t,i,e[i]);return t},Ht=(t,e)=>x0(t,S0(e));var k0=(t,e)=>{for(var i in e)Al(t,i,{get:e[i],enumerable:!0})},xv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of C0(e))!$v.call(t,n)&&n!==i&&Al(t,n,{get:()=>e[n],enumerable:!(o=w0(e,n))||o.enumerable});return t};var wv=(t,e,i)=>(i=t!=null?y0(T0(t)):{},xv(e||!t||!t.__esModule?Al(i,"default",{value:t,enumerable:!0}):i,t)),E0=t=>xv(Al({},"__esModule",{value:!0}),t);var Mn=(t,e,i)=>qu(t,typeof e!="symbol"?e+"":e,i),Wu=(t,e,i)=>e.has(t)||yv("Cannot "+i);var Bi=(t,e,i)=>(Wu(t,e,"read from private field"),i?i.call(t):e.get(t)),ps=(t,e,i)=>e.has(t)?yv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Na=(t,e,i,o)=>(Wu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Sv=(t,e,i)=>(Wu(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 Ux={};k0(Ux,{ControlButtonType:()=>Ed,GridTypes:()=>Sr,InterfaceLanguage:()=>Il.InterfaceLanguage,MenuItemType:()=>pl,PlayerPhase:()=>qr,VERSION:()=>ta,VKNumericLanguage:()=>Il.VKNumericLanguage,VideoFormat:()=>Du.VideoFormat,VideoQuality:()=>Du.VideoQuality,loadVKLangPack:()=>Il.loadVKLangPack,registerPlayerWebComponent:()=>Fx});module.exports=E0(Ux);var fs="[",Bs="[!",Ds="]",Gr={};var Di=Symbol(),xi=Symbol("filename"),Cv=Symbol("hmr"),Tv="http://www.w3.org/1999/xhtml",Ku="http://www.w3.org/2000/svg";var fc=!0;var kv,Ev,Iv=(Ev=(kv=globalThis.process)==null?void 0:kv.env)==null?void 0:Ev.NODE_ENV,Pe=Iv&&!Iv.toLowerCase().startsWith("prod");var qo=Symbol("$state"),jr=Symbol("$state metadata"),Ml=Symbol("legacy props"),Pv=Symbol("");var hr=Array.isArray,Av=Array.prototype.indexOf,Ll=Array.from,Qu=Object.keys,po=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,mc=Object.getOwnPropertyDescriptors,Gu=Object.prototype,Mv=Array.prototype,Yr=Object.getPrototypeOf;function ms(t){return typeof t=="function"}var oe=()=>{};function Lv(t){return t()}function vs(t){for(var e=0;e<t.length;e++)t[e]()}var Vl=[],ju=[];function Vv(){var t=Vl;Vl=[],vs(t)}function P0(){var t=ju;ju=[],vs(t)}function Zo(t){Vl.length===0&&queueMicrotask(Vv),Vl.push(t)}function Yu(){Vl.length>0&&Vv(),ju.length>0&&P0()}function vc(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 Rv(t,e){return t!==e}function Da(t){return!Ba(t,this.v)}function Nv(){if(Pe){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 Dv(t){if(Ee){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 Bv(t){if(Pe){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 Nv(){if(Ee){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Bv(t){if(Ee){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 Dv(){if(Pe){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 Ov(t){if(Pe){let e=new Error(`effect_orphan
11
11
  \`${t}\` can only be used inside an effect (e.g. during component initialisation)
12
- https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Ov(){if(Ee){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 Hv(){if(Pe){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 Hv(){if(Ee){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 Fv(){if(Pe){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 Fv(){if(Ee){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Uv(t){if(Ee){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 Uv(){if(Pe){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 zv(t){if(Pe){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 zv(t){if(Ee){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 qv(t){if(Pe){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 qv(t){if(Ee){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 Wv(t){if(Pe){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 Wv(){if(Ee){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Kv(){if(Ee){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Qv(){if(Ee){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Gv(){if(Ee){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Br=!1,Or=!1;function jv(){Br=!0}var Dl=null;function Yr(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
22
+ https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Kv(){if(Pe){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 Qv(){if(Pe){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(Pe){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 jv(){if(Pe){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 Yv(){Dr=!0}var Rl=null;function Zr(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;fo(e,"stack",{value:n.join(`
25
- `)}),fo(e,"name",{value:`${t}Error`})}return e}var Os=new Set,Ra=new Map;function Ju(t){Os=t}function Gi(t,e){var i={f:0,v:t,reactions:null,equals:vc,rv:0,wv:0};return Ee&&Or&&(i.created=e!=null?e:Yr("CreatedAt"),i.debug=null),i}function ee(t){return k0(Gi(t))}function Xr(t,e=!1){var o,n;let i=Gi(t);return e||(i.equals=Va),Br&&Rt!==null&&Rt.l!==null&&((n=(o=Rt.l).s)!=null?n:o.s=[]).push(i),i}function k0(t){return Ht!==null&&!Un&&(Ht.f&2)!==0&&(gr===null?Xv([t]):gr.push(t)),t}function B(t,e){return Ht!==null&&!Un&&Hr()&&(Ht.f&18)!==0&&(gr===null||!gr.includes(t))&&Gv(),Da(t,e)}function Da(t,e){var o;if(!t.equals(e)){var i=t.v;if(Fs?Ra.set(t,e):Ra.set(t,i),t.v=e,t.wv=Bl(),Ee&&Or&&(t.updated=Yr("UpdatedAt"),Et!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),Zv(t,2048),Hr()&&Et!==null&&(Et.f&1024)!==0&&(Et.f&96)===0&&(Fn===null?Jv([t]):Fn.push(t)),Ee&&Os.size>0){let n=Array.from(Os);for(let a of n)(a.f&1024)!==0&&dn(a,4096),vs(a)&&Na(a);Os.clear()}}return e}function Zv(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===Et)){if(Ee&&(d&262144)!==0){Os.add(s);continue}dn(s,e),(d&1280)!==0&&((d&2)!==0?Zv(s,4096):Ba(s))}}}function m(t){var e=2050,i=Ht!==null&&(Ht.f&2)!==0?Ht:null;Et===null||i!==null&&(i.f&256)!==0?e|=256:Et.f|=1048576;let o={ctx:Rt,deps:null,effects:null,equals:vc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:Et};return Ee&&Or&&(o.created=Yr("CreatedAt")),o}function _r(t){let e=m(t);return e.equals=Va,e}function gc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)vo(e[i])}}var ep=[];function E0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function P0(t){var e,i=Et;if(mo(E0(t)),Ee){let o=Os;Ju(new Set);try{ep.includes(t)&&Rv(),ep.push(t),gc(t),e=hc(t)}finally{mo(i),Ju(o),ep.pop()}}else try{gc(t),e=hc(t)}finally{mo(i)}return e}function ip(t){var e=P0(t),i=(Jr||(t.f&256)!==0)&&t.deps!==null?4096:1024;dn(t,i),t.equals(e)||(t.v=e,t.wv=Bl())}var Us="font-weight: bold",zs="font-weight: normal";function eg(t,e,i){Ee?console.warn(`%c[svelte] hydration_attribute_changed
24
+ `];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;po(e,"stack",{value:n.join(`
25
+ `)}),po(e,"name",{value:`${t}Error`})}return e}var Os=new Set,Oa=new Map;function ep(t){Os=t}function Yi(t,e){var i={f:0,v:t,reactions:null,equals:vc,rv:0,wv:0};return Pe&&Or&&(i.created=e!=null?e:Zr("CreatedAt"),i.debug=null),i}function J(t){return A0(Yi(t))}function Jr(t,e=!1){var o,n;let i=Yi(t);return e||(i.equals=Da),Dr&&Lt!==null&&Lt.l!==null&&((n=(o=Lt.l).s)!=null?n:o.s=[]).push(i),i}function A0(t){return zt!==null&&!Rn&&(zt.f&2)!==0&&(_r===null?Jv([t]):_r.push(t)),t}function D(t,e){return zt!==null&&!Rn&&Hr()&&(zt.f&18)!==0&&(_r===null||!_r.includes(t))&&jv(),Ha(t,e)}function Ha(t,e){var o;if(!t.equals(e)){var i=t.v;if(Fs?Oa.set(t,e):Oa.set(t,i),t.v=e,t.wv=Bl(),Pe&&Or&&(t.updated=Zr("UpdatedAt"),Pt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),Xv(t,2048),Hr()&&Pt!==null&&(Pt.f&1024)!==0&&(Pt.f&96)===0&&(Vn===null?eg([t]):Vn.push(t)),Pe&&Os.size>0){let n=Array.from(Os);for(let a of n)(a.f&1024)!==0&&en(a,4096),gs(a)&&Fa(a);Os.clear()}}return e}function Xv(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===Pt)){if(Pe&&(d&262144)!==0){Os.add(s);continue}en(s,e),(d&1280)!==0&&((d&2)!==0?Xv(s,4096):Ua(s))}}}function v(t){var e=2050,i=zt!==null&&(zt.f&2)!==0?zt:null;Pt===null||i!==null&&(i.f&256)!==0?e|=256:Pt.f|=1048576;let o={ctx:Lt,deps:null,effects:null,equals:vc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:Pt};return Pe&&Or&&(o.created=Zr("CreatedAt")),o}function $r(t){let e=v(t);return e.equals=Da,e}function gc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)mo(e[i])}}var tp=[];function M0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function L0(t){var e,i=Pt;if(fo(M0(t)),Pe){let o=Os;ep(new Set);try{tp.includes(t)&&Nv(),tp.push(t),gc(t),e=hc(t)}finally{fo(i),ep(o),tp.pop()}}else try{gc(t),e=hc(t)}finally{fo(i)}return e}function op(t){var e=L0(t),i=(es||(t.f&256)!==0)&&t.deps!==null?4096:1024;en(t,i),t.equals(e)||(t.v=e,t.wv=Bl())}var Us="font-weight: bold",zs="font-weight: normal";function tg(t,e,i){Pe?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`,Us,zs):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function tg(t){Ee?console.warn(`%c[svelte] hydration_html_changed
27
+ https://svelte.dev/e/hydration_attribute_changed`,Us,zs):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function ig(t){Pe?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`,Us,zs):console.warn("https://svelte.dev/e/hydration_html_changed")}function qs(t){Ee?console.warn(`%c[svelte] hydration_mismatch
29
+ https://svelte.dev/e/hydration_html_changed`,Us,zs):console.warn("https://svelte.dev/e/hydration_html_changed")}function qs(t){Pe?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`,Us,zs):console.warn("https://svelte.dev/e/hydration_mismatch")}function ig(){Ee?console.warn(`%c[svelte] lifecycle_double_unmount
31
+ https://svelte.dev/e/hydration_mismatch`,Us,zs):console.warn("https://svelte.dev/e/hydration_mismatch")}function og(){Pe?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`,Us,zs):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function og(t,e,i){Ee?console.warn(`%c[svelte] ownership_invalid_binding
33
+ https://svelte.dev/e/lifecycle_double_unmount`,Us,zs):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function ng(t,e,i){Pe?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`,Us,zs):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function op(t,e){Ee?console.warn(`%c[svelte] ownership_invalid_mutation
35
+ https://svelte.dev/e/ownership_invalid_binding`,Us,zs):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function np(t,e){Pe?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`,Us,zs):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function _c(t){Ee?console.warn(`%c[svelte] state_proxy_equality_mismatch
37
+ https://svelte.dev/e/ownership_invalid_mutation`,Us,zs):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function _c(t){Pe?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`,Us,zs):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ye=!1;function go(t){Ye=t}var gt;function $i(t){if(t===null)throw qs(),Qr;return gt=t}function Fi(){return $i(No(gt))}function g(t){if(Ye){if(No(gt)!==null)throw qs(),Qr;gt=t}}function be(t=1){if(Ye){for(var e=t,i=gt;e--;)i=No(i);gt=i}}function Oa(){for(var t=0,e=gt;;){if(e.nodeType===8){var i=e.data;if(i===Bs){if(t===0)return e;t-=1}else(i===ps||i===Ns)&&(t+=1)}var o=No(e);e.remove(),e=o}}function fe(t,e=null,i){var u,v;var o=null;if(Ee&&Or&&(o=Yr("CreatedAt")),typeof t!="object"||t===null||Ko in t)return t;let n=jr(t);if(n!==Qu&&n!==Av)return t;var a=new Map,s=vr(t),d=Gi(0);s&&a.set("length",Gi(t.length,o));var l;if(Ee)if(l={parent:e,owners:null},i){let $=(v=(u=i.v)==null?void 0:u[Gr])==null?void 0:v.owners;l.owners=$?new Set($):null}else l.owners=e===null?Rt!==null?new Set([Rt.function]):null:new Set;return new Proxy(t,{defineProperty($,p,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&Wv();var w=a.get(p);return w===void 0?(w=Gi(_.value,o),a.set(p,w)):B(w,fe(_.value,l)),!0},deleteProperty($,p){var _=a.get(p);if(_===void 0)p in $&&a.set(p,Gi(Ni,o));else{if(s&&typeof p=="string"){var w=a.get("length"),y=Number(p);Number.isInteger(y)&&y<w.v&&B(w,y)}B(_,Ni),ng(d)}return!0},get($,p,_){var E;if(Ee&&p===Gr)return l;if(p===Ko)return t;var w=a.get(p),y=p in $;if(w===void 0&&(!y||(E=Hn($,p))!=null&&E.writable)&&(w=Gi(fe(y?$[p]:Ni,l),o),a.set(p,w)),w!==void 0){var C=r(w);if(Ee){var T=C==null?void 0:C[Gr];T&&(T==null?void 0:T.parent)!==l&&np(l,T)}return C===Ni?void 0:C}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),C=y==null?void 0:y.v;if(y!==void 0&&C!==Ni)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return _},has($,p){var C;if(Ee&&p===Gr||p===Ko)return!0;var _=a.get(p),w=_!==void 0&&_.v!==Ni||Reflect.has($,p);if(_!==void 0||Et!==null&&(!w||(C=Hn($,p))!=null&&C.writable)){_===void 0&&(_=Gi(w?fe($[p],l):Ni,o),a.set(p,_));var y=r(_);if(y===Ni)return!1}return w},set($,p,_,w){var H;var y=a.get(p),C=p in $;if(s&&p==="length")for(var T=_;T<y.v;T+=1){var E=a.get(T+"");E!==void 0?B(E,Ni):T in $&&(E=Gi(Ni,o),a.set(T+"",E))}if(y===void 0?(!C||(H=Hn($,p))!=null&&H.writable)&&(y=Gi(void 0,o),B(y,fe(_,l)),a.set(p,y)):(C=y.v!==Ni,B(y,fe(_,l))),Ee){var P=_==null?void 0:_[Gr];P&&(P==null?void 0:P.parent)!==l&&np(l,P),rg(l)}var A=Reflect.getOwnPropertyDescriptor($,p);if(A!=null&&A.set&&A.set.call(w,_),!C){if(s&&typeof p=="string"){var I=a.get("length"),V=Number(p);Number.isInteger(V)&&V>=I.v&&B(I,V+1)}ng(d)}return!0},ownKeys($){r(d);var p=Reflect.ownKeys($).filter(y=>{var C=a.get(y);return C===void 0||C.v!==Ni});for(var[_,w]of a)w.v!==Ni&&!(_ in $)&&p.push(_);return p},setPrototypeOf(){Kv()}})}function ng(t,e=1){B(t,t.v+e)}function bc(t){return t!==null&&typeof t=="object"&&Ko in t?t[Ko]:t}function sg(){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(bc(this[l])===a){_c("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(bc(this[l])===a){_c("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(bc(this[l])===a){_c("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ws,ag,Ol,lg,dg;function $c(){if(Ws===void 0){Ws=window,ag=document,Ol=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;lg=Hn(e,"firstChild").get,dg=Hn(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0,Ee&&(t.__svelte_meta=null,sg())}}function cn(t=""){return document.createTextNode(t)}function yi(t){return lg.call(t)}function No(t){return dg.call(t)}function h(t,e){if(!Ye)return yi(t);var i=yi(gt);if(i===null)i=gt.appendChild(cn());else if(e&&i.nodeType!==3){var o=cn();return i==null||i.before(o),$i(o),o}return $i(i),i}function pe(t,e){var n,a;if(!Ye){var i=yi(t);return i.nodeType===8&&i.data===""?No(i):i}if(e&&((n=gt)==null?void 0:n.nodeType)!==3){var o=cn();return(a=gt)==null||a.before(o),$i(o),o}return gt}function M(t,e=1,i=!1){let o=Ye?gt:t;for(var n;e--;)n=o,o=No(o);if(!Ye)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=cn();return o===null?n==null||n.after(s):o.before(s),$i(s),s}return $i(o),o}function Hl(t){t.textContent=""}var cg=new WeakSet,yc=!1,zl=!1,Fl=null,Ks=!1,Fs=!1;function ap(t){Fs=t}var Ul=[],wc=[],Ht=null,Un=!1;function Co(t){Ht=t}var Et=null;function mo(t){Et=t}var gr=null;function Xv(t){gr=t}var un=null,qn=0,Fn=null;function Jv(t){Fn=t}var vg=1,Sc=0,Jr=!1,Nl=null;function Bl(){return++vg}function vs(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&&Et!==null&&!Jr,l=i.length;if(s||d){var u=t,v=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&&v!==null&&(v.f&256)===0&&(u.f^=256)}for(n=0;n<l;n++)if(a=i[n],vs(a)&&ip(a),a.wv>t.wv)return!0}(!o||Et!==null&&!Jr)&&dn(t,1024)}return!1}function ug(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 yc=!1,t}function pg(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Fa(t,e,i,o){var v,$;if(yc){if(i===null&&(yc=!1),pg(e))throw t;return}if(i!==null&&(yc=!0),!Ee||o===null||!(t instanceof Error)||cg.has(t)){ug(t,e);return}cg.add(t);let n=[],a=(v=e.fn)==null?void 0:v.name;a&&n.push(a);let s=o;for(;s!==null;){if(Ee){var d=($=s.function)==null?void 0:$[bi];if(d){let p=d.split("/").pop();n.push(p)}}s=s.p}let l=Ol?" ":" ";fo(t,"message",{value:t.message+`
39
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Us,zs):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ge=!1;function vo(t){Ge=t}var ht;function wi(t){if(t===null)throw qs(),Gr;return ht=t}function Wi(){return wi(Lo(ht))}function g(t){if(Ge){if(Lo(ht)!==null)throw qs(),Gr;ht=t}}function xe(t=1){if(Ge){for(var e=t,i=ht;e--;)i=Lo(i);ht=i}}function za(){for(var t=0,e=ht;;){if(e.nodeType===8){var i=e.data;if(i===Ds){if(t===0)return e;t-=1}else(i===fs||i===Bs)&&(t+=1)}var o=Lo(e);e.remove(),e=o}}function me(t,e=null,i){var u,f;var o=null;if(Pe&&Or&&(o=Zr("CreatedAt")),typeof t!="object"||t===null||qo in t)return t;let n=Yr(t);if(n!==Gu&&n!==Mv)return t;var a=new Map,s=hr(t),d=Yi(0);s&&a.set("length",Yi(t.length,o));var l;if(Pe)if(l={parent:e,owners:null},i){let b=(f=(u=i.v)==null?void 0:u[jr])==null?void 0:f.owners;l.owners=b?new Set(b):null}else l.owners=e===null?Lt!==null?new Set([Lt.function]):null:new Set;return new Proxy(t,{defineProperty(b,p,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&Kv();var x=a.get(p);return x===void 0?(x=Yi($.value,o),a.set(p,x)):D(x,me($.value,l)),!0},deleteProperty(b,p){var $=a.get(p);if($===void 0)p in b&&a.set(p,Yi(Di,o));else{if(s&&typeof p=="string"){var x=a.get("length"),_=Number(p);Number.isInteger(_)&&_<x.v&&D(x,_)}D($,Di),rg(d)}return!0},get(b,p,$){var k;if(Pe&&p===jr)return l;if(p===qo)return t;var x=a.get(p),_=p in b;if(x===void 0&&(!_||(k=Ln(b,p))!=null&&k.writable)&&(x=Yi(me(_?b[p]:Di,l),o),a.set(p,x)),x!==void 0){var C=r(x);if(Pe){var T=C==null?void 0:C[jr];T&&(T==null?void 0:T.parent)!==l&&rp(l,T)}return C===Di?void 0:C}return Reflect.get(b,p,$)},getOwnPropertyDescriptor(b,p){var $=Reflect.getOwnPropertyDescriptor(b,p);if($&&"value"in $){var x=a.get(p);x&&($.value=r(x))}else if($===void 0){var _=a.get(p),C=_==null?void 0:_.v;if(_!==void 0&&C!==Di)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return $},has(b,p){var C;if(Pe&&p===jr||p===qo)return!0;var $=a.get(p),x=$!==void 0&&$.v!==Di||Reflect.has(b,p);if($!==void 0||Pt!==null&&(!x||(C=Ln(b,p))!=null&&C.writable)){$===void 0&&($=Yi(x?me(b[p],l):Di,o),a.set(p,$));var _=r($);if(_===Di)return!1}return x},set(b,p,$,x){var q;var _=a.get(p),C=p in b;if(s&&p==="length")for(var T=$;T<_.v;T+=1){var k=a.get(T+"");k!==void 0?D(k,Di):T in b&&(k=Yi(Di,o),a.set(T+"",k))}if(_===void 0?(!C||(q=Ln(b,p))!=null&&q.writable)&&(_=Yi(void 0,o),D(_,me($,l)),a.set(p,_)):(C=_.v!==Di,D(_,me($,l))),Pe){var P=$==null?void 0:$[jr];P&&(P==null?void 0:P.parent)!==l&&rp(l,P),sg(l)}var A=Reflect.getOwnPropertyDescriptor(b,p);if(A!=null&&A.set&&A.set.call(x,$),!C){if(s&&typeof p=="string"){var I=a.get("length"),V=Number(p);Number.isInteger(V)&&V>=I.v&&D(I,V+1)}rg(d)}return!0},ownKeys(b){r(d);var p=Reflect.ownKeys(b).filter(_=>{var C=a.get(_);return C===void 0||C.v!==Di});for(var[$,x]of a)x.v!==Di&&!($ in b)&&p.push($);return p},setPrototypeOf(){Qv()}})}function rg(t,e=1){D(t,t.v+e)}function bc(t){return t!==null&&typeof t=="object"&&qo in t?t[qo]:t}function ag(){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(bc(this[l])===a){_c("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(bc(this[l])===a){_c("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(bc(this[l])===a){_c("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ws,lg,Dl,dg,cg;function $c(){if(Ws===void 0){Ws=window,lg=document,Dl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;dg=Ln(e,"firstChild").get,cg=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,Pe&&(t.__svelte_meta=null,ag())}}function tn(t=""){return document.createTextNode(t)}function Si(t){return dg.call(t)}function Lo(t){return cg.call(t)}function h(t,e){if(!Ge)return Si(t);var i=Si(ht);if(i===null)i=ht.appendChild(tn());else if(e&&i.nodeType!==3){var o=tn();return i==null||i.before(o),wi(o),o}return wi(i),i}function fe(t,e){var n,a;if(!Ge){var i=Si(t);return i.nodeType===8&&i.data===""?Lo(i):i}if(e&&((n=ht)==null?void 0:n.nodeType)!==3){var o=tn();return(a=ht)==null||a.before(o),wi(o),o}return ht}function M(t,e=1,i=!1){let o=Ge?ht:t;for(var n;e--;)n=o,o=Lo(o);if(!Ge)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=tn();return o===null?n==null||n.after(s):o.before(s),wi(s),s}return wi(o),o}function Ol(t){t.textContent=""}var ug=new WeakSet,yc=!1,Ul=!1,Hl=null,Ks=!1,Fs=!1;function lp(t){Fs=t}var Fl=[],wc=[],zt=null,Rn=!1;function xo(t){zt=t}var Pt=null;function fo(t){Pt=t}var _r=null;function Jv(t){_r=t}var on=null,Bn=0,Vn=null;function eg(t){Vn=t}var gg=1,Sc=0,es=!1,Nl=null;function Bl(){return++gg}function gs(t){var b,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&&Pt!==null&&!es,l=i.length;if(s||d){var u=t,f=u.parent;for(n=0;n<l;n++)a=i[n],(s||!((b=a==null?void 0:a.reactions)!=null&&b.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],gs(a)&&op(a),a.wv>t.wv)return!0}(!o||Pt!==null&&!es)&&en(t,1024)}return!1}function pg(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 yc=!1,t}function fg(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Wa(t,e,i,o){var f,b;if(yc){if(i===null&&(yc=!1),fg(e))throw t;return}if(i!==null&&(yc=!0),!Pe||o===null||!(t instanceof Error)||ug.has(t)){pg(t,e);return}ug.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let s=o;for(;s!==null;){if(Pe){var d=(b=s.function)==null?void 0:b[xi];if(d){let p=d.split("/").pop();n.push(p)}}s=s.p}let l=Dl?" ":" ";po(t,"message",{value:t.message+`
40
40
  ${n.map(p=>`
41
41
  ${l}in ${p}`).join("")}
42
- `}),fo(t,"component_stack",{value:n});let u=t.stack;if(u){let p=u.split(`
43
- `),_=[];for(let w=0;w<p.length;w++){let y=p[w];y.includes("svelte/src/internal")||_.push(y)}fo(t,"stack",{value:_.join(`
44
- `)})}if(ug(t,e),pg(e))throw t}function gg(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?gg(a,e,!1):e===a&&(i?dn(a,2048):(a.f&1024)!==0&&dn(a,4096),Ba(a))}}function hc(t){var _,w;var e=un,i=qn,o=Fn,n=Ht,a=Jr,s=gr,d=Rt,l=Un,u=t.f;un=null,qn=0,Fn=null,Jr=(u&256)!==0&&(Un||!Ks||Ht===null),Ht=(u&96)===0?t:null,gr=null,Wl(t.ctx),Un=!1,Sc++;try{var v=(0,t.fn)(),$=t.deps;if(un!==null){var p;if(ql(t,qn),$!==null&&qn>0)for($.length=qn+un.length,p=0;p<un.length;p++)$[qn+p]=un[p];else t.deps=$=un;if(!Jr)for(p=qn;p<$.length;p++)((w=(_=$[p]).reactions)!=null?w:_.reactions=[]).push(t)}else $!==null&&qn<$.length&&(ql(t,qn),$.length=qn);if(Hr()&&Fn!==null&&!Un&&$!==null&&(t.f&6146)===0)for(p=0;p<Fn.length;p++)gg(Fn[p],t);return n!==null&&(Sc++,Fn!==null&&(o===null?o=Fn:o.push(...Fn))),v}finally{un=e,qn=i,Fn=o,Ht=n,Jr=a,gr=s,Wl(d),Un=l}}function A0(t,e){let i=e.reactions;if(i!==null){var o=Pv.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&&(un===null||!un.includes(e))&&(dn(e,4096),(e.f&768)===0&&(e.f^=512),gc(e),ql(e,0))}function ql(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)A0(t,i[o])}function Na(t){var e=t.f;if((e&16384)===0){dn(t,1024);var i=Et,o=Rt,n=Ks;if(Et=t,Ks=!0,Ee){var a=pn;Kl(t.component_function)}try{(e&16)!==0?hg(t):dp(t),lp(t);var s=hc(t);t.teardown=typeof s=="function"?s:null,t.wv=vg;var d=t.deps;if(Ee&&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=Bl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Ee&&wc.push(t)}catch(u){Fa(u,t,i,o||t.ctx)}finally{Ks=n,Et=i,Ee&&Kl(a)}}}function fg(){console.error("Last ten effects were: ",wc.slice(-10).map(t=>t.fn)),wc=[]}function M0(){try{Ov()}catch(t){if(Ee&&fo(t,"stack",{value:""}),Fl!==null)if(Ee)try{Fa(t,Fl,null,null)}catch(e){throw fg(),e}else Fa(t,Fl,null,null);else throw Ee&&fg(),t}}function rp(){var t=Ks;try{var e=0;for(Ks=!0;Ul.length>0;){e++>1e3&&M0();var i=Ul,o=i.length;Ul=[];for(var n=0;n<o;n++){var a=V0(i[n]);L0(a)}}}finally{zl=!1,Ks=t,Fl=null,Ee&&(wc=[]),Ra.clear()}}function L0(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{vs(o)&&(Na(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?cp(o):o.fn=null))}catch(n){Fa(n,o,null,o.ctx)}}}function Ba(t){zl||(zl=!0,queueMicrotask(rp));for(var e=Fl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Ul.push(e)}function V0(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=Ht;try{Ht=i,vs(i)&&Na(i)}catch(u){Fa(u,i,null,i.ctx)}finally{Ht=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 Ua(t){var e;for(t&&(zl=!0,rp(),e=t()),ju();Ul.length>0;)zl=!0,rp(),ju();return e}function To(){return Mt(this,null,function*(){yield Promise.resolve(),Ua()})}function r(t){var e=t.f,i=(e&2)!==0;if(Nl!==null&&Nl.add(t),Ht!==null&&!Un){gr!==null&&gr.includes(t)&&Qv();var o=Ht.deps;t.rv<Sc&&(t.rv=Sc,un===null&&o!==null&&o[qn]===t?qn++:un===null?un=[t]:(!Jr||!un.includes(t))&&un.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,vs(n)&&ip(n)),Ee&&Or&&Dl!==null&&Ht!==null&&Dl.reaction===Ht){if(t.debug)t.debug();else if(t.created){var s=Dl.entries.get(t);s===void 0&&(s={read:[]},Dl.entries.set(t,s)),s.read.push(Yr("TracedAt"))}}return Fs&&Ra.has(t)?Ra.get(t):t.v}function wt(t){var e=Un;try{return Un=!0,t()}finally{Un=e}}var R0=-7169;function dn(t,e){t.f=t.f&R0|e}function Tc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ko in t)Cc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ko in i&&Cc(i)}}}function Cc(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{Cc(t[o],e)}catch(n){}let i=jr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=mc(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function pp(t){Et===null&&Ht===null&&Bv(t),Ht!==null&&(Ht.f&256)!==0&&Et===null&&Nv(),Fs&&Dv(t)}function D0(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=Et;if(Ee)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Rt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Ee&&(a.component_function=pn),i)try{Na(a),a.f|=32768}catch(u){throw vo(a),u}else e!==null&&Ba(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&&D0(a,n),Ht!==null&&(Ht.f&2)!==0)){var d=Ht;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function fn(t){let e=Qs(8,null,!1);return dn(e,1024),e.teardown=t,e}function ze(t){var n;pp("$effect");var e=Et!==null&&(Et.f&32)!==0&&Rt!==null&&!Rt.m;if(Ee&&fo(t,"name",{value:"$effect"}),e){var i=Rt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:Et,reaction:Ht})}else{var o=Cn(t);return o}}function za(t){return pp("$effect.pre"),Ee&&fo(t,"name",{value:"$effect.pre"}),Io(t)}function kc(t){let e=Qs(64,t,!0);return()=>{vo(e)}}function bg(t){let e=Qs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Tn(e,()=>{vo(e),o(void 0)}):(vo(e),o(void 0))})}function Cn(t){return Qs(4,t,!1)}function Io(t){return Qs(8,t,!0)}function k(t,e=[],i=m){let o=e.map(i),n=()=>t(...o.map(r));return Ee&&fo(n,"name",{value:"{expression}"}),ho(n)}function ho(t,e=0){return Qs(24|e,t,!0)}function ji(t,e=!0){return Qs(40,t,!0,e)}function lp(t){var e=t.teardown;if(e!==null){let i=Fs,o=Ht;ap(!0),Co(null);try{e.call(null)}finally{ap(i),Co(o)}}}function dp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:vo(i,e),i=o}}function hg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&vo(e),e=i}}function vo(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:No(o);o.remove(),o=a}i=!0}dp(t,e&&!i),ql(t,0),dn(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();lp(t);var d=t.parent;d!==null&&d.first!==null&&cp(t),Ee&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function cp(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 Tn(t,e){var i=[];Ec(t,i,!0),fp(i,()=>{vo(t),e&&e()})}function fp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Ec(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;Ec(o,e,a?i:!1),o=n}}}function es(t){$g(t,!0)}function $g(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),vs(t)&&(dn(t,2048),Ba(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;$g(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var N0={},B0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,O0=/@(.+):(\d+):(\d+)$/;function H0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
- `)){let n=(i=B0.exec(o))!=null?i:O0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function yg(){var e;let t=(e=H0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=N0[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 Pc=Symbol("ADD_OWNER");function mp(t,e,i=!1,o=!1){if(t&&!i){let n=pn,a=t[Gr];if(a&&!vp(a,n)){let s=gp(a);e&&e[bi]!==n[bi]&&!o&&og(n[bi],e[bi],s[bi])}}Ac(t,e,new Set)}function np(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[Gr];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),Pc in t&&t[Pc])Io(()=>{t[Pc](e)});else{var n=jr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ni;Io(()=>{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 vp(t,e){return t.owners===null?!0:t.owners.has(e)||bi in e&&[...t.owners].some(i=>i[bi]===e[bi])||t.parent!==null&&vp(t.parent,e)}function gp(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:gp(t.parent)}var F0=!1;function rg(t){if(F0)return;let e=yg();if(e&&!vp(t,e)){let i=gp(t);i[bi]!==e[bi]?op(e[bi],i[bi]):op()}}function qa(t){if(Ee){let e=new Error(`lifecycle_outside_component
42
+ `}),po(t,"component_stack",{value:n});let u=t.stack;if(u){let p=u.split(`
43
+ `),$=[];for(let x=0;x<p.length;x++){let _=p[x];_.includes("svelte/src/internal")||$.push(_)}po(t,"stack",{value:$.join(`
44
+ `)})}if(pg(t,e),fg(e))throw t}function hg(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?hg(a,e,!1):e===a&&(i?en(a,2048):(a.f&1024)!==0&&en(a,4096),Ua(a))}}function hc(t){var $,x;var e=on,i=Bn,o=Vn,n=zt,a=es,s=_r,d=Lt,l=Rn,u=t.f;on=null,Bn=0,Vn=null,es=(u&256)!==0&&(Rn||!Ks||zt===null),zt=(u&96)===0?t:null,_r=null,ql(t.ctx),Rn=!1,Sc++;try{var f=(0,t.fn)(),b=t.deps;if(on!==null){var p;if(zl(t,Bn),b!==null&&Bn>0)for(b.length=Bn+on.length,p=0;p<on.length;p++)b[Bn+p]=on[p];else t.deps=b=on;if(!es)for(p=Bn;p<b.length;p++)((x=($=b[p]).reactions)!=null?x:$.reactions=[]).push(t)}else b!==null&&Bn<b.length&&(zl(t,Bn),b.length=Bn);if(Hr()&&Vn!==null&&!Rn&&b!==null&&(t.f&6146)===0)for(p=0;p<Vn.length;p++)hg(Vn[p],t);return n!==null&&(Sc++,Vn!==null&&(o===null?o=Vn:o.push(...Vn))),f}finally{on=e,Bn=i,Vn=o,zt=n,es=a,_r=s,ql(d),Rn=l}}function V0(t,e){let i=e.reactions;if(i!==null){var o=Av.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&&(on===null||!on.includes(e))&&(en(e,4096),(e.f&768)===0&&(e.f^=512),gc(e),zl(e,0))}function zl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)V0(t,i[o])}function Fa(t){var e=t.f;if((e&16384)===0){en(t,1024);var i=Pt,o=Lt,n=Ks;if(Pt=t,Ks=!0,Pe){var a=nn;Wl(t.component_function)}try{(e&16)!==0?_g(t):cp(t),dp(t);var s=hc(t);t.teardown=typeof s=="function"?s:null,t.wv=gg;var d=t.deps;if(Pe&&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=Bl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Pe&&wc.push(t)}catch(u){Wa(u,t,i,o||t.ctx)}finally{Ks=n,Pt=i,Pe&&Wl(a)}}}function mg(){console.error("Last ten effects were: ",wc.slice(-10).map(t=>t.fn)),wc=[]}function R0(){try{Hv()}catch(t){if(Pe&&po(t,"stack",{value:""}),Hl!==null)if(Pe)try{Wa(t,Hl,null,null)}catch(e){throw mg(),e}else Wa(t,Hl,null,null);else throw Pe&&mg(),t}}function sp(){var t=Ks;try{var e=0;for(Ks=!0;Fl.length>0;){e++>1e3&&R0();var i=Fl,o=i.length;Fl=[];for(var n=0;n<o;n++){var a=B0(i[n]);N0(a)}}}finally{Ul=!1,Ks=t,Hl=null,Pe&&(wc=[]),Oa.clear()}}function N0(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{gs(o)&&(Fa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?up(o):o.fn=null))}catch(n){Wa(n,o,null,o.ctx)}}}function Ua(t){Ul||(Ul=!0,queueMicrotask(sp));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}}Fl.push(e)}function B0(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=zt;try{zt=i,gs(i)&&Fa(i)}catch(u){Wa(u,i,null,i.ctx)}finally{zt=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&&(Ul=!0,sp(),e=t()),Yu();Fl.length>0;)Ul=!0,sp(),Yu();return e}function wo(){return St(this,null,function*(){yield Promise.resolve(),Ka()})}function r(t){var e=t.f,i=(e&2)!==0;if(Nl!==null&&Nl.add(t),zt!==null&&!Rn){_r!==null&&_r.includes(t)&&Gv();var o=zt.deps;t.rv<Sc&&(t.rv=Sc,on===null&&o!==null&&o[Bn]===t?Bn++:on===null?on=[t]:(!es||!on.includes(t))&&on.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,gs(n)&&op(n)),Pe&&Or&&Rl!==null&&zt!==null&&Rl.reaction===zt){if(t.debug)t.debug();else if(t.created){var s=Rl.entries.get(t);s===void 0&&(s={read:[]},Rl.entries.set(t,s)),s.read.push(Zr("TracedAt"))}}return Fs&&Oa.has(t)?Oa.get(t):t.v}function Ct(t){var e=Rn;try{return Rn=!0,t()}finally{Rn=e}}var D0=-7169;function en(t,e){t.f=t.f&D0|e}function Tc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(qo in t)Cc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&qo in i&&Cc(i)}}}function Cc(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{Cc(t[o],e)}catch(n){}let i=Yr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=mc(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function fp(t){Pt===null&&zt===null&&Ov(t),zt!==null&&(zt.f&256)!==0&&Pt===null&&Dv(),Fs&&Bv(t)}function O0(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=Pt;if(Pe)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Lt,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(Pe&&(a.component_function=nn),i)try{Fa(a),a.f|=32768}catch(u){throw mo(a),u}else e!==null&&Ua(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&&O0(a,n),zt!==null&&(zt.f&2)!==0)){var d=zt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function rn(t){let e=Qs(8,null,!1);return en(e,1024),e.teardown=t,e}function Fe(t){var n;fp("$effect");var e=Pt!==null&&(Pt.f&32)!==0&&Lt!==null&&!Lt.m;if(Pe&&po(t,"name",{value:"$effect"}),e){var i=Lt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:Pt,reaction:zt})}else{var o=$n(t);return o}}function Qa(t){return fp("$effect.pre"),Pe&&po(t,"name",{value:"$effect.pre"}),So(t)}function kc(t){let e=Qs(64,t,!0);return()=>{mo(e)}}function $g(t){let e=Qs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?yn(e,()=>{mo(e),o(void 0)}):(mo(e),o(void 0))})}function $n(t){return Qs(4,t,!1)}function So(t){return Qs(8,t,!0)}function E(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return Pe&&po(n,"name",{value:"{expression}"}),go(n)}function go(t,e=0){return Qs(24|e,t,!0)}function Zi(t,e=!0){return Qs(40,t,!0,e)}function dp(t){var e=t.teardown;if(e!==null){let i=Fs,o=zt;lp(!0),xo(null);try{e.call(null)}finally{lp(i),xo(o)}}}function cp(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:mo(i,e),i=o}}function _g(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&mo(e),e=i}}function mo(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}cp(t,e&&!i),zl(t,0),en(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();dp(t);var d=t.parent;d!==null&&d.first!==null&&up(t),Pe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function up(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function yn(t,e){var i=[];Ec(t,i,!0),mp(i,()=>{mo(t),e&&e()})}function mp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Ec(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;Ec(o,e,a?i:!1),o=n}}}function ts(t){yg(t,!0)}function yg(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),gs(t)&&(en(t,2048),Ua(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;yg(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var H0={},F0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,U0=/@(.+):(\d+):(\d+)$/;function z0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
+ `)){let n=(i=F0.exec(o))!=null?i:U0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function xg(){var e;let t=(e=z0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=H0[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 Pc=Symbol("ADD_OWNER");function vp(t,e,i=!1,o=!1){if(t&&!i){let n=nn,a=t[jr];if(a&&!gp(a,n)){let s=hp(a);e&&e[xi]!==n[xi]&&!o&&ng(n[xi],e[xi],s[xi])}}Ac(t,e,new Set)}function rp(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),Pc in t&&t[Pc])So(()=>{t[Pc](e)});else{var n=Yr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Di;So(()=>{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 gp(t,e){return t.owners===null?!0:t.owners.has(e)||xi in e&&[...t.owners].some(i=>i[xi]===e[xi])||t.parent!==null&&gp(t.parent,e)}function hp(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:hp(t.parent)}var q0=!1;function sg(t){if(q0)return;let e=xg();if(e&&!gp(t,e)){let i=hp(t);i[xi]!==e[xi]?np(e[xi],i[xi]):np()}}function Ga(t){if(Pe){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 Rt=null;function Wl(t){Rt=t}var pn=null;function Kl(t){pn=t}function Wa(t){return hp("getContext").get(t)}function Ka(t,e){let i=hp("setContext");return Ee&&wt(()=>mp(e,null,!0)),i.set(t,e),e}function Gl(){return hp("getAllContexts")}function U(t,e=!1,i){var o=Rt={p:Rt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Br&&!e&&(Rt.l={s:null,u:null,r1:[],r2:Gi(!1)}),fn(()=>{o.d=!0}),Ee&&(Rt.function=i,pn=i)}function z(t){var s,d;let e=Rt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=Et,o=Ht;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];mo(a.effect),Co(a.reaction),Cn(a.fn)}}finally{mo(i),Co(o)}}Rt=e.p,Ee&&(pn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Hr(){return!Br||Rt!==null&&Rt.l===null}function hp(t){var e;return Rt===null&&qa(t),(e=Rt.c)!=null?e:Rt.c=new Map(z0(Rt)||void 0)}function z0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var q0=/\r/g;function xg(t){t=t.replace(q0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function wg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var W0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Sg(t){return W0.includes(t)}var K0=["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 Q0={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 Cg(t){var e;return t=t.toLowerCase(),(e=Q0[t])!=null?e:t}var Hw=[...K0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var G0=["touchstart","touchmove"];function Tg(t){return G0.includes(t)}var j0=["textarea","script","style","title"];function Ig(t){return j0.includes(t)}function _p(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var kg=new Map;function Eg(t,e){var i=kg.get(t);i||(i=new Set,kg.set(t,i)),i.add(e)}function bp(t,e){if(e){let i=document.body;t.autofocus=!0,sn(()=>{document.activeElement===i&&t.focus()})}}function jl(t){var e=Ht,i=Et;Co(null),mo(null);try{return t()}finally{Co(e),mo(i)}}var $p=new Set,Mc=new Set;function Gs(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 yp(t,e,i,o={}){function n(a){if(o.capture||Qa.call(e,a),!a.cancelBubble)return jl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?sn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Ct(t,e,i,o,n){var a={capture:o,passive:n},s=yp(t,e,i,a);(e===document.body||e===window||e===document)&&fn(()=>{e.removeEventListener(t,s,a)})}function lt(t){for(var e=0;e<t.length;e++)$p.add(t[e]);for(var i of Mc)i(t)}function Qa(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){fo(t,"currentTarget",{configurable:!0,get(){return a||i}});var v=Ht,$=Et;Co(null),mo(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(vr(y)){var[C,...T]=y;C.apply(a,[t,...T])}else y.call(a,t)}catch(P){p?_.push(P):p=P}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let P of _)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,Co(v),mo($)}}}var Z0;function Pg(){Z0=void 0}function Ga(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ko(t,e){var i=Et;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 ko(gt,null),gt;n===void 0&&(n=Ga(a?t:"<!>"+t),i||(n=yi(n)));var s=o||Ol?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=yi(s),l=s.lastChild;ko(d,l)}else ko(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 ko(gt,null),gt;if(!s){var d=Ga(a),l=yi(d);if(n)for(s=document.createDocumentFragment();yi(l);)s.appendChild(yi(l));else s=yi(l)}var u=s.cloneNode(!0);if(n){var v=yi(u),$=u.lastChild;ko(v,$)}else ko(u,u);return u}}function Fr(t=""){if(!Ye){var e=cn(t+"");return ko(e,e),e}var i=gt;return i.nodeType!==3&&(i.before(i=cn()),$i(i)),ko(i,i),i}function Ue(){if(Ye)return ko(gt,null),gt;var t=document.createDocumentFragment(),e=document.createComment(""),i=cn();return t.append(e,i),ko(e,i),t}function b(t,e){if(Ye){Et.nodes_end=gt,Fi();return}t!==null&&t.before(e)}var Yl=!0;function Lc(t){Yl=t}function he(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 ts(t,e){return Mg(t,e)}function wp(t,e){var s;$c(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ye,n=gt;try{for(var a=yi(i);a&&(a.nodeType!==8||a.data!==ps);)a=No(a);if(!a)throw Qr;go(!0),$i(a),Fi();let d=Mg(t,Nt(q({},e),{anchor:a}));if(gt===null||gt.nodeType!==8||gt.data!==Bs)throw qs(),Qr;return go(!1),d}catch(d){if(d===Qr)return e.recover===!1&&Hv(),$c(),Hl(i),go(!1),ts(t,e);throw d}finally{go(o),$i(n),Pg()}}var ja=new Map;function Mg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){$c();var d=new Set,l=$=>{for(var p=0;p<$.length;p++){var _=$[p];if(!d.has(_)){d.add(_);var w=Tg(_);e.addEventListener(_,Qa,{passive:w});var y=ja.get(_);y===void 0?(document.addEventListener(_,Qa,{passive:w}),ja.set(_,1)):ja.set(_,y+1)}}};l(Vl($p)),Mc.add(l);var u=void 0,v=bg(()=>{var $=i!=null?i:e.appendChild(cn());return ji(()=>{if(a){U({});var p=Rt;p.c=a}n&&(o.$$events=n),Ye&&ko($,null),Yl=s,u=t($,o)||{},Yl=!0,Ye&&(Et.nodes_end=gt),a&&z()}),()=>{var w;for(var p of d){e.removeEventListener(p,Qa);var _=ja.get(p);--_===0?(document.removeEventListener(p,Qa),ja.delete(p)):ja.set(p,_)}Mc.delete(l),$!==i&&((w=$.parentNode)==null||w.removeChild($))}});return xp.set(u,v),u}var xp=new WeakMap;function js(t,e){let i=xp.get(t);return i?(xp.delete(t),i(e)):(Ee&&ig(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ye&&i===0&&Fi();var n=t,a=null,s=null,d=Ni,l=i>0?65536:0,u=!1;let v=(p,_=!0)=>{u=!0,$(_,p)},$=(p,_)=>{if(d===(d=p))return;let w=!1;if(Ye&&o!==-1){if(i===0){let C=n.data;C===ps?o=0:C===Ns?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Oa(),$i(n),go(!1),w=!0,o=-1)}d?(a?es(a):_&&(a=ji(()=>_(n))),s&&Tn(s,()=>{s=null})):(s?es(s):_&&(s=ji(()=>_(n,[i+1,o]))),a&&Tn(a,()=>{a=null})),w&&go(!0)};ho(()=>{u=!1,e(v),u||$(null,null)},l),Ye&&(n=gt)}function Ys(t,e,i){Ye&&Fi();var o=t,n=Ni,a,s=Hr()?Vv:La;ho(()=>{s(n,n=e())&&(a&&Tn(a),a=ji(()=>i(o)))}),Ye&&(o=gt)}var hs=null;function Tp(t){hs=t}function Zl(t,e){return e}function t_(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Ec(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Hl(l),l.append(i),o.clear(),gs(t,e[0].prev,e[a-1].next)}fp(n,()=>{for(var u=0;u<a;u++){var v=e[u];d||(o.delete(v.k),gs(t,v.prev,v.next)),vo(v.e,!d)}})}function Ei(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?$i(yi(u)):u.appendChild(cn())}Ye&&Fi();var v=null,$=!1,p=_r(()=>{var _=i();return vr(_)?_:_==null?[]:Vl(_)});ho(()=>{var _=r(p),w=_.length;if($&&w===0)return;$=w===0;let y=!1;if(Ye){var C=s.data===Ns;C!==(w===0)&&(s=Oa(),$i(s),go(!1),y=!0)}if(Ye){for(var T=null,E,P=0;P<w;P++){if(gt.nodeType===8&&gt.data===Bs){s=gt,y=!0,go(!1);break}var A=_[P],I=o(A,P);E=Rg(gt,d,T,null,A,I,P,n,e,i),d.items.set(I,E),T=E}w>0&&$i(Oa())}Ye||i_(_,d,s,n,e,o,i),a!==null&&(w===0?v?es(v):v=ji(()=>a(s)):v!==null&&Tn(v,()=>{v=null})),y&&go(!0),r(p)}),Ye&&(s=gt)}function i_(t,e,i,o,n,a,s){var de,Le,Me,ve;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,v=e.items,$=e.first,p=$,_,w=null,y,C=[],T=[],E,P,A,I;if(d)for(I=0;I<u;I+=1)E=t[I],P=a(E,I),A=v.get(P),A!==void 0&&((de=A.a)==null||de.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<u;I+=1){if(E=t[I],P=a(E,I),A=v.get(P),A===void 0){var V=p?p.e.nodes_start:i;w=Rg(V,e,w,w===null?e.first:w.next,E,P,I,o,n,s),v.set(P,w),C=[],T=[],p=w.next;continue}if(l&&o_(A,E,I,n),(A.e.f&8192)!==0&&(es(A.e),d&&((Le=A.a)==null||Le.unfix(),(y!=null?y:y=new Set).delete(A))),A!==p){if(_!==void 0&&_.has(A)){if(C.length<T.length){var H=T[0],Y;w=H.prev;var O=C[0],J=C[C.length-1];for(Y=0;Y<C.length;Y+=1)Lg(C[Y],H,i);for(Y=0;Y<T.length;Y+=1)_.delete(T[Y]);gs(e,O.prev,J.next),gs(e,w,O),gs(e,J,H),p=H,w=J,I-=1,C=[],T=[]}else _.delete(A),Lg(A,p,i),gs(e,A.prev,A.next),gs(e,A,w===null?e.first:w.next),gs(e,w,A),w=A;continue}for(C=[],T=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&(_!=null?_:_=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),w=A,p=A.next}if(p!==null||_!==void 0){for(var re=_===void 0?[]:Vl(_);p!==null;)(p.e.f&8192)===0&&re.push(p),p=p.next;var Z=re.length;if(Z>0){var me=(n&4)!==0&&u===0?i:null;if(d){for(I=0;I<Z;I+=1)(Me=re[I].a)==null||Me.measure();for(I=0;I<Z;I+=1)(ve=re[I].a)==null||ve.fix()}t_(e,re,me,v)}}d&&sn(()=>{var le;if(y!==void 0)for(A of y)(le=A.a)==null||le.apply()}),Et.first=e.first&&e.first.e,Et.last=w&&w.e}function o_(t,e,i,o){(o&1)!==0&&Da(t.v,e),(o&2)!==0?Da(t.i,i):t.i=i}function Rg(t,e,i,o,n,a,s,d,l,u){var v=hs,$=(l&1)!==0,p=(l&16)===0,_=$?p?Xr(n):Gi(n):n,w=(l&2)===0?s:Gi(s);Ee&&$&&(_.debug=()=>{var C=typeof w=="number"?s:w.v;u()[C]});var y={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};hs=y;try{return y.e=ji(()=>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{hs=v}}function Lg(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=No(a);n.before(a),a=s}}function gs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function n_(t,e,i){var a,s;if(!e||e===xg(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=pn)!=null&&s[bi]&&(o=`in ${pn[bi]}`),tg(_p(o))}function Xl(t,e,i,o,n){var a=t,s="",d;ho(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ye&&Fi();return}d!==void 0&&(vo(d),d=void 0),s!==""&&(d=ji(()=>{if(Ye){for(var u=gt.data,v=Fi(),$=v;v!==null&&(v.nodeType!==8||v.data!=="");)$=v,v=No(v);if(v===null)throw qs(),Qr;Ee&&!n&&n_(v.parentNode,u,s),ko(gt,$),a=$i(v);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var _=Ga(p);if((i||o)&&(_=yi(_)),ko(yi(_),_.lastChild),i||o)for(;yi(_);)a.before(yi(_));else a.before(_)}))})}function _e(t,e,...i){var o=t,n=ne,a;ho(()=>{n!==(n=e())&&(a&&(vo(a),a=null),Ee&&n==null&&Fv(),a=ji(()=>n(o,...i)))},65536),Ye&&(o=gt)}function Pi(t,e,i){Ye&&Fi();var o=t,n,a;ho(()=>{n!==(n=e())&&(a&&(Tn(a),a=null),n&&(a=ji(()=>i(o,n))))},65536),Ye&&(o=gt)}function Zs(t,e,i,o,n,a){var w;let s=Ye;Ye&&Fi();var d=Ee&&a&&((w=Rt)==null?void 0:w.function[bi]),l,u,v=null;Ye&&gt.nodeType===1&&(v=gt,Fi());var $=Ye?gt:t,p,_=hs;ho(()=>{let y=e()||null;var C=n?n():i||y==="svg"?Wu:null;if(y!==l){var T=hs;Tp(_),p&&(y===null?Tn(p,()=>{p=null,u=null}):y===u?es(p):(vo(p),Lc(!1))),y&&y!==u&&(p=ji(()=>{if(v=Ye?v:C?document.createElementNS(C,y):document.createElement(y),Ee&&a&&(v.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),ko(v,v),o){Ye&&Ig(y)&&v.append(document.createComment(""));var E=Ye?yi(v):v.appendChild(cn());Ye&&(E===null?go(!1):$i(E)),o(v,E)}Et.nodes_end=v,$.before(v)})),l=y,l&&(u=l),Lc(!0),Tp(T)}},65536),s&&(go(!0),$i($))}var kp;function Dg(t){return kp=t.target,new Ip(t)}var is,sr,Ip=class{constructor(e){us(this,is);us(this,sr);var a,s;var i=new Map,o=(d,l)=>{var u=Xr(l);return i.set(d,u),u};let n=new Proxy(Nt(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 v;return B((v=i.get(l))!=null?v:o(l,u),u),Reflect.set(d,l,u)}});Ma(this,sr,(e.hydrate?wp:ts)(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)&&Ua(),Ma(this,is,n.$$events);for(let d of Object.keys(Di(this,sr)))d==="$set"||d==="$destroy"||d==="$on"||fo(this,d,{get(){return Di(this,sr)[d]},set(l){Di(this,sr)[d]=l},enumerable:!0});Di(this,sr).$set=d=>{Object.assign(n,d)},Di(this,sr).$destroy=()=>{js(Di(this,sr))}}$set(e){Di(this,sr).$set(e)}$on(e,i){Di(this,is)[e]=Di(this,is)[e]||[];let o=(...n)=>i.call(this,...n);return Di(this,is)[e].push(o),()=>{Di(this,is)[e]=Di(this,is)[e].filter(n=>n!==o)}}$destroy(){Di(this,sr).$destroy()}};is=new WeakMap,sr=new WeakMap;function W(t,e){sn(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=kp)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ee&&Eg(e.hash,d)}})}function Ng(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Ng(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Bg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Ng(t))&&(o&&(o+=" "),o+=e);return o}function Jl(t){return typeof t=="object"?Bg(t):t!=null?t:""}var Og=[...`
48
- \r\f\xA0\v\uFEFF`];function Fg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||Og.includes(o[s-1]))&&(d===o.length||Og.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Hg(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 Ep(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(Ep)),n&&l.push(...Object.keys(n).map(Ep));var u=0,v=-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===":"&&v===-1)v=$;else if(p===";"||$===y-1){if(v!==-1){var _=Ep(t.substring(u,v).trim());if(!l.includes(_)){p!==";"&&$++;var w=t.substring(u,$).trim();i+=" "+w+";"}}u=$+1,v=-1}}}}return o&&(i+=Hg(o)),n&&(i+=Hg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var s=t.__className;if(Ye||s!==i){var d=Fg(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 Pp(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 ot(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=Ug(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Pp(t,i==null?void 0:i[0],o[0]),Pp(t,i==null?void 0:i[1],o[1],"important")):Pp(t,i,o));return o}var Ya=Symbol("class"),Za=Symbol("style"),Wg=Symbol("is custom element"),Kg=Symbol("is html");function Qg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Fe(t,e,i,o){var n=Gg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||u_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Ev]=i),i==null?t.removeAttribute(e):typeof i!="string"&&jg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Te(t,e,i,o,n=!1){var A;var a=Gg(t),s=a[Wg],d=!a[Kg];let l=Ye&&s;l&&go(!1);var u=e||{},v=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=Jl(i.class):(o||i[Ya])&&(i.class=null),i[Za]&&((A=i.style)!=null||(i.style=null));var p=jg(t);for(let I in i){let V=i[I];if(v&&I==="value"&&V==null){t.value=t.__value="",u[I]=V;continue}if(I==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,_,V,o,e==null?void 0:e[Ya],i[Ya]),u[I]=V,u[Ya]=i[Ya];continue}if(I==="style"){ot(t,V,e==null?void 0:e[Za],i[Za]),u[I]=V,u[Za]=i[Za];continue}var w=u[I];if(V!==w){u[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},Y="$$"+I,O=I.slice(2);var C=Sg(O);if(wg(O)&&(O=O.slice(0,-7),H.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(O,u[Y],H),u[Y]=null}if(V!=null)if(C)t[`__${O}`]=V,lt([O]);else{let J=function(re){u[I].call(this,re)};var P=J;u[Y]=yp(O,t,J,H)}else C&&(t[`__${O}`]=void 0)}else if(I==="style")Fe(t,I,V);else if(I==="autofocus")bp(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&v)Qg(t,V);else{var T=I;d||(T=Cg(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!E)if(a[I]=null,T==="value"||T==="checked"){let H=t,Y=e===void 0;if(T==="value"){let O=H.defaultValue;H.removeAttribute(T),H.defaultValue=O,H.value=H.__value=Y?O:null}else{let O=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=O,H.checked=Y?O:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&Fe(t,T,V,n)}}}return l&&go(!0),u}function Gg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Wg]:t.nodeName.includes("-"),[Kg]:t.namespaceURI===Cv}}var zg=new Map;function jg(t){var e=zg.get(t.nodeName);if(e)return e;zg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=mc(o);for(var a in i)i[a].set&&e.push(a);o=jr(o)}return e}function u_(t,e,i){var o;Ee&&(e==="srcset"&&p_(t,i)||Ap((o=t.getAttribute(e))!=null?o:"",i)||eg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Ap(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function qg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function p_(t,e){var i=qg(t.srcset),o=qg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Ap(i[s][0],n)||Ap(n,i[s][0])))}var f_=fc?()=>performance.now():()=>Date.now(),$r={tick:t=>(fc?requestAnimationFrame:ne)(t),now:()=>f_(),tasks:new Set};function Yg(){let t=$r.now();$r.tasks.forEach(e=>{e.c(t)||($r.tasks.delete(e),e.f())}),$r.tasks.size!==0&&$r.tick(Yg)}function Zg(t){let e;return $r.tasks.size===0&&$r.tick(Yg),{promise:new Promise(i=>{$r.tasks.add(e={c:t,f:i})}),abort(){$r.tasks.delete(e)}}}function Vc(t,e){jl(()=>{t.dispatchEvent(new CustomEvent(e))})}function h_(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 Xg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=h_(n.trim());e[s]=a.trim()}return e}var __=t=>t;function Lp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,v=e.inert,$=e.style.overflow,p,_;function w(){var V;var A=Ht,I=Et;Co(null),mo(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{Co(A),mo(I)}}var y={is_global:d,in(){var A;if(e.inert=v,!n){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||p==null||p.abort(),Vc(e,"introstart"),p=Mp(e,w(),_,1,()=>{Vc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=$})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,Vc(e,"outrostart"),_=Mp(e,w(),p,0,()=>{Vc(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),_==null||_.abort()}},C=Et;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Yl){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&Cn(()=>{wt(()=>y.in())})}}function Mp(t,e,i,o,n){var a=o===1;if(fs(e)){var s,d=!1;return sn(()=>{if(!d){var C=e({direction:a?"in":"out"});s=Mp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ne,deactivate:ne,reset:ne,t:()=>o};let{delay:l=0,css:u,tick:v,easing:$=__}=e;var p=[];if(a&&i===void 0&&(v&&v(0,1),u)){var _=Xg(u(0,1));p.push(_,_)}var w=()=>1-o,y=t.animate(p,{duration:l});return y.onfinish=()=>{var O;var C=(O=i==null?void 0:i.t())!=null?O:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),P=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),V=0;V<=I;V+=1){var H=C+T*$(V/I),Y=Xg(u(H,1-H));P.push(Y),A||(A=Y.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var J=y.currentTime;return C+T*$(J/E)},v&&Zg(()=>{if(y.playState!=="running")return!1;var J=w();return v(J,1-J),!0})}y=t.animate(P,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,v==null||v(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ne)},deactivate:()=>{n=ne},reset:()=>{o===0&&(v==null||v(1,0))},t:()=>w()}}var _s,Xa,ed,Dc,Jg,Nc=class Nc{constructor(e){us(this,Dc);us(this,_s,new WeakMap);us(this,Xa);us(this,ed);Ma(this,ed,e)}observe(e,i){var o=Di(this,_s).get(e)||new Set;return o.add(i),Di(this,_s).set(e,o),wv(this,Dc,Jg).call(this).observe(e,Di(this,ed)),()=>{var n=Di(this,_s).get(e);n.delete(i),n.size===0&&(Di(this,_s).delete(e),Di(this,Xa).unobserve(e))}}};_s=new WeakMap,Xa=new WeakMap,ed=new WeakMap,Dc=new WeakSet,Jg=function(){var e;return(e=Di(this,Xa))!=null?e:Ma(this,Xa,new ResizeObserver(i=>{for(var o of i){Nc.entries.set(o.target,o);for(var n of Di(this,_s).get(o.target)||[])n(o)}}))},On(Nc,"entries",new WeakMap);var Vp=Nc;var y_=new Vp({box:"border-box"});function Ur(t,e,i){var o=y_.observe(t,()=>i(t[e]));Cn(()=>(wt(()=>i(t[e])),o))}function eh(t,e){return t===e||(t==null?void 0:t[Ko])===e}function mt(t={},e,i,o){return Cn(()=>{var n,a;return Io(()=>{n=a,a=(o==null?void 0:o())||[],wt(()=>{t!==i(...a)&&(e(t,...a),n&&eh(i(...n),t)&&e(null,...n))})}),()=>{sn(()=>{a&&eh(i(...a),t)&&e(null,...a)})}}),t}function yr(t=!1){let e=Rt,i=e.l.u;if(!i)return;let o=()=>Tc(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&&za(()=>{th(e,o),ms(i.b)}),ze(()=>{let n=wt(()=>i.m.map(Mv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&ze(()=>{th(e,o),ms(i.a)})}function th(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ee){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;qv(e)},set:o=>{i=o}})}};w_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var w_;function zt(t){Rt===null&&qa("onMount"),Br&&Rt.l!==null?x_(Rt).m.push(t):ze(()=>{let e=wt(t);if(typeof e=="function")return e})}function In(t){Rt===null&&qa("onDestroy"),zt(()=>()=>wt(t))}function x_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function td(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ne;let o=wt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ja=[];function ar(t,e){return{subscribe:ue(t,e).subscribe}}function ue(t,e=ne){let i=null,o=new Set;function n(d){if(La(t,d)&&(t=d,i)){let l=!Ja.length;for(let u of o)u[1](),Ja.push(u,t);if(l){for(let u=0;u<Ja.length;u+=2)Ja[u][0](Ja[u+1]);Ja.length=0}}}function a(d){n(d(t))}function s(d,l=ne){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||ne),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function xi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return ar(i,(s,d)=>{let l=!1,u=[],v=0,$=ne,p=()=>{if(v)return;$();let w=e(o?u[0]:u,s,d);a?s(w):$=typeof w=="function"?w:ne},_=n.map((w,y)=>td(w,C=>{u[y]=C,v&=~(1<<y),l&&p()},()=>{v|=1<<y}));return l=!0,p(),function(){ms(_),$(),l=!1}})}function Se(t){let e;return td(t,i=>e=i)(),e}var Bc=!1,Rp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Xr(void 0),unsubscribe:ne};if(o.store!==t&&!(Rp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ne;else{var n=!0;o.unsubscribe=td(t,s=>{n?o.source.v=s:B(o.source,s)}),n=!1}return t&&Rp in i?Se(t):r(o.source)}function Oe(){let t={};function e(){fn(()=>{for(var i in t)t[i].unsubscribe();fo(t,Rp,{enumerable:!1,value:!0})})}return[t,e]}function Dp(t){var e=Bc;try{return Bc=!1,[t(),Bc]}finally{Bc=e}}var P_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&zv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Pe(t,e,i){return new Proxy(Ee?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},P_)}var A_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(fs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];fs(n)&&(n=n());let a=Hn(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(fs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Hn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ko||e===Ll)return!1;for(let i of t.props)if(fs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){fs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function os(...t){return new Proxy({props:t},A_)}function ih(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var H,Y;var n=(i&1)!==0,a=!Br||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=Dp(()=>t[e]):u=t[e];var v=Ko in t||Ll in t,$=s&&((Y=(H=Hn(t,e))==null?void 0:H.set)!=null?Y:v&&e in t&&(O=>t[e]=O))||void 0,p=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?p=wt(o):p=o),p);u===void 0&&o!==void 0&&($&&a&&Uv(e),u=y(),$&&$(u));var C;if(a)C=()=>{var O=t[e];return O===void 0?y():(_=!0,w=!1,O)};else{var T=(n?m:_r)(()=>t[e]);T.f|=131072,C=()=>{var O=r(T);return O!==void 0&&(p=void 0),O===void 0?p:O}}if((i&4)===0)return C;if($){var E=t.$$legacy;return function(O,J){return arguments.length>0?((!a||!J||E||l)&&$(J?C():O),O):C()}}var P=!1,A=!1,I=Xr(u),V=m(()=>{var O=C(),J=r(I);return P?(P=!1,A=!0,J):(A=!1,I.v=O)});return s&&r(V),n||(V.equals=Va),function(O,J){if(Nl!==null&&(P=A,C(),r(I)),arguments.length>0){let re=J?r(V):a&&s?fe(O):O;if(!V.equals(re)){if(P=!0,B(I,re),w&&p!==void 0&&(p=re),ih(V))return O;wt(()=>r(V))}return O}return ih(V)?V.v:r(V)}}var M_;typeof HTMLElement=="function"&&(M_=class extends HTMLElement{constructor(e,i,o){super();On(this,"$$ctor");On(this,"$$s");On(this,"$$c");On(this,"$$cn",!1);On(this,"$$d",{});On(this,"$$r",!1);On(this,"$$p_d",{});On(this,"$$l",{});On(this,"$$l_u",new Map);On(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 Mt(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=L_(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]=Np(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=Dg({component:this.$$ctor,target:this.shadowRoot||this,props:Nt(q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=kc(()=>{Io(()=>{var a;this.$$r=!0;for(let s of Ku(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Np(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]=Np(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 Ku(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Np(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 L_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var oh="5";var nh,rh,sh;typeof window!="undefined"&&((sh=(rh=(nh=window.__svelte)!=null?nh:window.__svelte={}).v)!=null?sh:rh.v=new Set).add(oh);var Tu=require("@vkontakte/videoplayer-core/es2015"),pj=require("@vkontakte/videoplayer-core/es2015"),Ia=require("@vkontakte/videoplayer-shared/es2015"),o0=require("@vkontakte/videoplayer-statistics/es2015");var Xs=require("@vkontakte/videoplayer-shared/es2015");var R_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Xs.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Xs.VideoQuality.Q_480P,highQualityLimit:Xs.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},ah=t=>(0,Xs.fillWithDefault)(t,R_),lh=t=>Ka("ui-config",t),qt=()=>Wa("ui-config");var id="vk_player_debug_panel_opened";var dh="videoplayer",ch="videoplayer";var zr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},uh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ph=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),fh=new Set(["ShiftRight","ShiftLeft"]);var mh=["TIMELINE"],od=[...mh,"GRAPH_BUTTON"],Bp=[...mh,"PLAY_BUTTON"],nd=[...od,"PLAY_BUTTON"];var xr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(xr||{}),ea={xs:0,s:1,m:2,l:3,xl:4};var rd=require("@vkontakte/videoplayer-shared/es2015"),vh=require("@vkontakte/videoplayer-core/es2015"),gh=require("@vkontakte/videoplayer-statistics/es2015");var Oc="prod",ta="1.1.64-dev.dae0b8a8.0";var ia=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var hh=Symbol("storeContext"),_h=Symbol("microStoresContext"),bh=(t,e)=>{Ka(hh,t),Ka(_h,e),Oc==="dev"&&(window.app={store:t,microStores:e})},Ce=()=>{let t=Wa(hh);return(0,rd.assertNonNullable)(t,"Store context is empty!"),t},_o=()=>{let t=Wa(_h);return(0,rd.assertNonNullable)(t,"MicroStores context is empty!"),t},Zt=(t,e)=>Fc(t,t.getValue(),e),Fc=(t,e,i)=>ar(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),$h=(t,e,i)=>{var T,E,P,A,I,V;let o=t.info,{width:n,height:a}=Se(i.ui.playerSize),s=(E=(T=o.throughputEstimation$.getValue())==null?void 0:T.toFixed(0))!=null?E:0,d=(A=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?A:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${ta} (core: ${vh.VERSION}, stat: ${gh.VERSION}, shared: ${rd.VERSION})`,v=Se(i.state.errorLog$),$=v.length?`
49
- `+v.map((H,Y)=>{var Z;let O=`${Y}) Type: ${H.id}
50
- `,J=`Message: ${H.message} (${H.thrown})
51
- `,re=`Trace: ${(Z=H.thrown)==null?void 0:Z.stack}
52
- `;return O+J+re}).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: ${(I=_==null?void 0:_.codec)!=null?I:""}`+(_!=null&&_.hdr?" (HDR)":"")),w&&y.push(`Audio: ${(V=w==null?void 0:w.codec)!=null?V:""}`+(w!=null&&w.language?` (${w.language})`:""));let C={Version: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(C).filter(([H,Y])=>Y!==void 0).map(([H,Y])=>`${H}: ${Y}`).join(`
54
- `)},yh=(t,e,i)=>{var H,Y,O,J;let o=t.info,{width:n,height:a}=Se(i.ui.playerSize),s={version:ta,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 v=o.currentBuffer$.getValue(),$=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();v&&($&&p?s.buffer=v.end-p:s.buffer=Math.max(v.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 C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let E=Se(i.vsid);typeof E=="string"&&(s.vsid=E);let P=(H=t.info.currentVideoStream$.getValue())==null?void 0:H.codec;P&&(s.videoCodec=P);let A=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.codec;A&&(s.audioCodec=A),((O=t.info.currentVideoStream$.getValue())==null?void 0:O.hdr)&&(s.hdr=!0);let V=(J=t.info.currentAudioStream$.getValue())==null?void 0:J.language;return V&&(s.audioLanguage=V),s},xh=(t,e)=>ia(t,e,"mp4"),wh=t=>!t.type,Sh=t=>!!t.type,Ch=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Hc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return Mt(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}};var Bi=require("@vkontakte/videoplayer-shared/es2015"),uP=require("@vkontakte/videoplayer-core/es2015");var Th="vk_player_prefer_traffic_saving_enabled",Ih="vk_player_preferred_volume",kh="vk_player_prefer_volume_mute",Fp="vk_player_preferred_quality",Op="vk_player_preferred_default_quality_settings",Hp="vk_player_preferred_quality_settings_by_video",Eh="vk_player_preferred_stream_language",Ph="vk_player_preferred_rate",Ah="vk_player_preferred_autoplay_next",Mh=t=>t>1?1:t<0?0:t,Up=t=>Bi.safeStorage.set(Ih,Mh(t).toString(10)),Uc=()=>{let t=Bi.safeStorage.get(Ih);return(0,Bi.isNullable)(t)?void 0:Mh(parseFloat(t))},zp=(t,e)=>Bi.safeStorage.set(Fp,JSON.stringify({videoId:t,value:e})),ad=()=>Bi.safeStorage.remove(Fp),qp=t=>{let e=Bi.safeStorage.get(Fp);if((0,Bi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){ad();return}return o},Wp=(t,e)=>{e?Bi.safeStorage.set(t,"true"):Bi.safeStorage.remove(t)},Kp=t=>Bi.safeStorage.get(t)==="true",Qp=t=>Wp(kh,t),Lh=()=>Kp(kh),sd=t=>Wp(Th,t),Gp=()=>Kp(Th),Vh=()=>Bi.safeStorage.get(Eh),jp=t=>Bi.safeStorage.set(Eh,t),Rh=t=>Bi.safeStorage.set(Ph,JSON.stringify({rate:t})),Dh=()=>{let t=Bi.safeStorage.get(Ph);if((0,Bi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Nh=t=>Wp(Ah,t),Bh=()=>Kp(Ah),D_=()=>{let t=v=>{Bi.safeStorage.set(Op,JSON.stringify(v))},e=()=>{try{let v=Bi.safeStorage.get(Op);return v?JSON.parse(v):null}catch(v){return null}},i=()=>{try{let v=Bi.safeStorage.get(Hp);return v?JSON.parse(v):null}catch(v){return null}},o=v=>{Bi.safeStorage.set(Hp,JSON.stringify(v))},n=v=>{u(v);let $=v?i():null;if($&&($==null?void 0:$.videoId)===v)return Nt(q({},$),{appliesTo:"to-video"});$&&a();let p=e();return p?Nt(q({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Bi.safeStorage.remove(Hp)},s=()=>{Bi.safeStorage.remove(Op)},d=(v,$="as-default")=>{v.type==="exact_quality"?o(v):$==="as-default"?t(v):o(v)},l=v=>{let $=n(v);if($){switch($.type){case"traffic_saving":sd(!0);break;case"exact_quality":zp(v,$.quality)}a(),s()}},u=v=>{let $=qp(v);if($){o({type:"exact_quality",videoId:v,quality:$});return}Gp()&&t({type:"traffic_saving",videoId:v}),sd(!1),ad()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Oh,migrateSettingsToLegacyWay:Hh,savePreferredQualitySettings:zc,savePreferredDefaultQualitySettings:pP,removePreferredQualitySettingsByVideo:fP,getPreferredDefaultQualitySettings:qc}=D_();var Jm=require("@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 ld(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=N_();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(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)}var el=require("@vkontakte/videoplayer-shared/es2015");var B_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
47
+ https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Lt=null;function ql(t){Lt=t}var nn=null;function Wl(t){nn=t}function ja(t){return _p("getContext").get(t)}function Ya(t,e){let i=_p("setContext");return Pe&&Ct(()=>vp(e,null,!0)),i.set(t,e),e}function Ql(){return _p("getAllContexts")}function U(t,e=!1,i){var o=Lt={p:Lt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Dr&&!e&&(Lt.l={s:null,u:null,r1:[],r2:Yi(!1)}),rn(()=>{o.d=!0}),Pe&&(Lt.function=i,nn=i)}function z(t){var s,d;let e=Lt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=Pt,o=zt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];fo(a.effect),xo(a.reaction),$n(a.fn)}}finally{fo(i),xo(o)}}Lt=e.p,Pe&&(nn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Hr(){return!Dr||Lt!==null&&Lt.l===null}function _p(t){var e;return Lt===null&&Ga(t),(e=Lt.c)!=null?e:Lt.c=new Map(K0(Lt)||void 0)}function K0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var Q0=/\r/g;function wg(t){t=t.replace(Q0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Sg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var G0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Cg(t){return G0.includes(t)}var j0=["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 Y0={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 Tg(t){var e;return t=t.toLowerCase(),(e=Y0[t])!=null?e:t}var zw=[...j0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Z0=["touchstart","touchmove"];function Ig(t){return Z0.includes(t)}var X0=["textarea","script","style","title"];function kg(t){return X0.includes(t)}function bp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Eg=new Map;function Pg(t,e){var i=Eg.get(t);i||(i=new Set,Eg.set(t,i)),i.add(e)}function $p(t,e){if(e){let i=document.body;t.autofocus=!0,Zo(()=>{document.activeElement===i&&t.focus()})}}function Gl(t){var e=zt,i=Pt;xo(null),fo(null);try{return t()}finally{xo(e),fo(i)}}var yp=new Set,Mc=new Set;function Gs(t){if(!Ge)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function xp(t,e,i,o={}){function n(a){if(o.capture||Za.call(e,a),!a.cancelBubble)return Gl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Zo(()=>{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=xp(t,e,i,a);(e===document.body||e===window||e===document)&&rn(()=>{e.removeEventListener(t,s,a)})}function lt(t){for(var e=0;e<t.length;e++)yp.add(t[e]);for(var i of Mc)i(t)}function Za(t){var k;var e=this,i=e.ownerDocument,o=t.type,n=((k=t.composedPath)==null?void 0:k.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){po(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=zt,b=Pt;xo(null),fo(null);try{for(var p,$=[];a!==null;){var x=a.assignedSlot||a.parentNode||a.host||null;try{var _=a["__"+o];if(_!=null&&(!a.disabled||t.target===a))if(hr(_)){var[C,...T]=_;C.apply(a,[t,...T])}else _.call(a,t)}catch(P){p?$.push(P):p=P}if(t.cancelBubble||x===e||x===null)break;a=x}if(p){for(let P of $)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,xo(f),fo(b)}}}var e_;function Ag(){e_=void 0}function Xa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Co(t,e){var i=Pt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ge)return Co(ht,null),ht;n===void 0&&(n=Xa(a?t:"<!>"+t),i||(n=Si(n)));var s=o||Dl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=Si(s),l=s.lastChild;Co(d,l)}else Co(s,s);return s}}function we(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ge)return Co(ht,null),ht;if(!s){var d=Xa(a),l=Si(d);if(n)for(s=document.createDocumentFragment();Si(l);)s.appendChild(Si(l));else s=Si(l)}var u=s.cloneNode(!0);if(n){var f=Si(u),b=u.lastChild;Co(f,b)}else Co(u,u);return u}}function Fr(t=""){if(!Ge){var e=tn(t+"");return Co(e,e),e}var i=ht;return i.nodeType!==3&&(i.before(i=tn()),wi(i)),Co(i,i),i}function Oe(){if(Ge)return Co(ht,null),ht;var t=document.createDocumentFragment(),e=document.createComment(""),i=tn();return t.append(e,i),Co(e,i),t}function y(t,e){if(Ge){Pt.nodes_end=ht,Wi();return}t!==null&&t.before(e)}var jl=!0;function Lc(t){jl=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 is(t,e){return Lg(t,e)}function Sp(t,e){var s;$c(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ge,n=ht;try{for(var a=Si(i);a&&(a.nodeType!==8||a.data!==fs);)a=Lo(a);if(!a)throw Gr;vo(!0),wi(a),Wi();let d=Lg(t,Ht(W({},e),{anchor:a}));if(ht===null||ht.nodeType!==8||ht.data!==Ds)throw qs(),Gr;return vo(!1),d}catch(d){if(d===Gr)return e.recover===!1&&Fv(),$c(),Ol(i),vo(!1),is(t,e);throw d}finally{vo(o),wi(n),Ag()}}var Ja=new Map;function Lg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){$c();var d=new Set,l=b=>{for(var p=0;p<b.length;p++){var $=b[p];if(!d.has($)){d.add($);var x=Ig($);e.addEventListener($,Za,{passive:x});var _=Ja.get($);_===void 0?(document.addEventListener($,Za,{passive:x}),Ja.set($,1)):Ja.set($,_+1)}}};l(Ll(yp)),Mc.add(l);var u=void 0,f=$g(()=>{var b=i!=null?i:e.appendChild(tn());return Zi(()=>{if(a){U({});var p=Lt;p.c=a}n&&(o.$$events=n),Ge&&Co(b,null),jl=s,u=t(b,o)||{},jl=!0,Ge&&(Pt.nodes_end=ht),a&&z()}),()=>{var x;for(var p of d){e.removeEventListener(p,Za);var $=Ja.get(p);--$===0?(document.removeEventListener(p,Za),Ja.delete(p)):Ja.set(p,$)}Mc.delete(l),b!==i&&((x=b.parentNode)==null||x.removeChild(b))}});return wp.set(u,f),u}var wp=new WeakMap;function js(t,e){let i=wp.get(t);return i?(wp.delete(t),i(e)):(Pe&&og(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ge&&i===0&&Wi();var n=t,a=null,s=null,d=Di,l=i>0?65536:0,u=!1;let f=(p,$=!0)=>{u=!0,b($,p)},b=(p,$)=>{if(d===(d=p))return;let x=!1;if(Ge&&o!==-1){if(i===0){let C=n.data;C===fs?o=0:C===Bs?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let _=o>i;!!d===_&&(n=za(),wi(n),vo(!1),x=!0,o=-1)}d?(a?ts(a):$&&(a=Zi(()=>$(n))),s&&yn(s,()=>{s=null})):(s?ts(s):$&&(s=Zi(()=>$(n,[i+1,o]))),a&&yn(a,()=>{a=null})),x&&vo(!0)};go(()=>{u=!1,e(f),u||b(null,null)},l),Ge&&(n=ht)}function Ys(t,e,i){Ge&&Wi();var o=t,n=Di,a,s=Hr()?Rv:Ba;go(()=>{s(n,n=e())&&(a&&yn(a),a=Zi(()=>i(o)))}),Ge&&(o=ht)}var _s=null;function Ip(t){_s=t}function Yl(t,e){return e}function n_(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Ec(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Ol(l),l.append(i),o.clear(),hs(t,e[0].prev,e[a-1].next)}mp(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),hs(t,f.prev,f.next)),mo(f.e,!d)}})}function Pi(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=Ge?wi(Si(u)):u.appendChild(tn())}Ge&&Wi();var f=null,b=!1,p=$r(()=>{var $=i();return hr($)?$:$==null?[]:Ll($)});go(()=>{var $=r(p),x=$.length;if(b&&x===0)return;b=x===0;let _=!1;if(Ge){var C=s.data===Bs;C!==(x===0)&&(s=za(),wi(s),vo(!1),_=!0)}if(Ge){for(var T=null,k,P=0;P<x;P++){if(ht.nodeType===8&&ht.data===Ds){s=ht,_=!0,vo(!1);break}var A=$[P],I=o(A,P);k=Ng(ht,d,T,null,A,I,P,n,e,i),d.items.set(I,k),T=k}x>0&&wi(za())}Ge||r_($,d,s,n,e,o,i),a!==null&&(x===0?f?ts(f):f=Zi(()=>a(s)):f!==null&&yn(f,()=>{f=null})),_&&vo(!0),r(p)}),Ge&&(s=ht)}function r_(t,e,i,o,n,a,s){var ue,Ve,Me,_e;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,b=e.first,p=b,$,x=null,_,C=[],T=[],k,P,A,I;if(d)for(I=0;I<u;I+=1)k=t[I],P=a(k,I),A=f.get(P),A!==void 0&&((ue=A.a)==null||ue.measure(),(_!=null?_:_=new Set).add(A));for(I=0;I<u;I+=1){if(k=t[I],P=a(k,I),A=f.get(P),A===void 0){var V=p?p.e.nodes_start:i;x=Ng(V,e,x,x===null?e.first:x.next,k,P,I,o,n,s),f.set(P,x),C=[],T=[],p=x.next;continue}if(l&&s_(A,k,I,n),(A.e.f&8192)!==0&&(ts(A.e),d&&((Ve=A.a)==null||Ve.unfix(),(_!=null?_:_=new Set).delete(A))),A!==p){if($!==void 0&&$.has(A)){if(C.length<T.length){var q=T[0],G;x=q.prev;var H=C[0],Z=C[C.length-1];for(G=0;G<C.length;G+=1)Vg(C[G],q,i);for(G=0;G<T.length;G+=1)$.delete(T[G]);hs(e,H.prev,Z.next),hs(e,x,H),hs(e,Z,q),p=q,x=Z,I-=1,C=[],T=[]}else $.delete(A),Vg(A,p,i),hs(e,A.prev,A.next),hs(e,A,x===null?e.first:x.next),hs(e,x,A),x=A;continue}for(C=[],T=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&($!=null?$:$=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),x=A,p=A.next}if(p!==null||$!==void 0){for(var re=$===void 0?[]:Ll($);p!==null;)(p.e.f&8192)===0&&re.push(p),p=p.next;var X=re.length;if(X>0){var ce=(n&4)!==0&&u===0?i:null;if(d){for(I=0;I<X;I+=1)(Me=re[I].a)==null||Me.measure();for(I=0;I<X;I+=1)(_e=re[I].a)==null||_e.fix()}n_(e,re,ce,f)}}d&&Zo(()=>{var ae;if(_!==void 0)for(A of _)(ae=A.a)==null||ae.apply()}),Pt.first=e.first&&e.first.e,Pt.last=x&&x.e}function s_(t,e,i,o){(o&1)!==0&&Ha(t.v,e),(o&2)!==0?Ha(t.i,i):t.i=i}function Ng(t,e,i,o,n,a,s,d,l,u){var f=_s,b=(l&1)!==0,p=(l&16)===0,$=b?p?Jr(n):Yi(n):n,x=(l&2)===0?s:Yi(s);Pe&&b&&($.debug=()=>{var C=typeof x=="number"?s:x.v;u()[C]});var _={i:x,v:$,k:a,a:null,e:null,prev:i,next:o};_s=_;try{return _.e=Zi(()=>d(t,$,x,u),Ge),_.e.prev=i&&i.e,_.e.next=o&&o.e,i===null?e.first=_:(i.next=_,i.e.next=_.e),o!==null&&(o.prev=_,o.e.prev=_.e),_}finally{_s=f}}function Vg(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 hs(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 a_(t,e,i){var a,s;if(!e||e===wg(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=nn)!=null&&s[xi]&&(o=`in ${nn[xi]}`),ig(bp(o))}function Zl(t,e,i,o,n){var a=t,s="",d;go(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ge&&Wi();return}d!==void 0&&(mo(d),d=void 0),s!==""&&(d=Zi(()=>{if(Ge){for(var u=ht.data,f=Wi(),b=f;f!==null&&(f.nodeType!==8||f.data!=="");)b=f,f=Lo(f);if(f===null)throw qs(),Gr;Pe&&!n&&a_(f.parentNode,u,s),Co(ht,b),a=wi(f);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var $=Xa(p);if((i||o)&&($=Si($)),Co(Si($),$.lastChild),i||o)for(;Si($);)a.before(Si($));else a.before($)}))})}function he(t,e,...i){var o=t,n=oe,a;go(()=>{n!==(n=e())&&(a&&(mo(a),a=null),Pe&&n==null&&Uv(),a=Zi(()=>n(o,...i)))},65536),Ge&&(o=ht)}function Ai(t,e,i){Ge&&Wi();var o=t,n,a;go(()=>{n!==(n=e())&&(a&&(yn(a),a=null),n&&(a=Zi(()=>i(o,n))))},65536),Ge&&(o=ht)}function Zs(t,e,i,o,n,a){var x;let s=Ge;Ge&&Wi();var d=Pe&&a&&((x=Lt)==null?void 0:x.function[xi]),l,u,f=null;Ge&&ht.nodeType===1&&(f=ht,Wi());var b=Ge?ht:t,p,$=_s;go(()=>{let _=e()||null;var C=n?n():i||_==="svg"?Ku:null;if(_!==l){var T=_s;Ip($),p&&(_===null?yn(p,()=>{p=null,u=null}):_===u?ts(p):(mo(p),Lc(!1))),_&&_!==u&&(p=Zi(()=>{if(f=Ge?f:C?document.createElementNS(C,_):document.createElement(_),Pe&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Co(f,f),o){Ge&&kg(_)&&f.append(document.createComment(""));var k=Ge?Si(f):f.appendChild(tn());Ge&&(k===null?vo(!1):wi(k)),o(f,k)}Pt.nodes_end=f,b.before(f)})),l=_,l&&(u=l),Lc(!0),Ip(T)}},65536),s&&(vo(!0),wi(b))}var Ep;function Bg(t){return Ep=t.target,new kp(t)}var os,tr,kp=class{constructor(e){ps(this,os);ps(this,tr);var a,s;var i=new Map,o=(d,l)=>{var u=Jr(l);return i.set(d,u),u};let n=new Proxy(Ht(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===Ml?!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 D((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});Na(this,tr,(e.hydrate?Sp:is)(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(),Na(this,os,n.$$events);for(let d of Object.keys(Bi(this,tr)))d==="$set"||d==="$destroy"||d==="$on"||po(this,d,{get(){return Bi(this,tr)[d]},set(l){Bi(this,tr)[d]=l},enumerable:!0});Bi(this,tr).$set=d=>{Object.assign(n,d)},Bi(this,tr).$destroy=()=>{js(Bi(this,tr))}}$set(e){Bi(this,tr).$set(e)}$on(e,i){Bi(this,os)[e]=Bi(this,os)[e]||[];let o=(...n)=>i.call(this,...n);return Bi(this,os)[e].push(o),()=>{Bi(this,os)[e]=Bi(this,os)[e].filter(n=>n!==o)}}$destroy(){Bi(this,tr).$destroy()}};os=new WeakMap,tr=new WeakMap;function K(t,e){Zo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=Ep)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Pe&&Pg(e.hash,d)}})}function Dg(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=Dg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Og(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Dg(t))&&(o&&(o+=" "),o+=e);return o}function Xl(t){return typeof t=="object"?Og(t):t!=null?t:""}var Hg=[...`
48
+ \r\f\xA0\v\uFEFF`];function Ug(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||Hg.includes(o[s-1]))&&(d===o.length||Hg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Fg(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 Pp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function zg(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(Pp)),n&&l.push(...Object.keys(n).map(Pp));var u=0,f=-1;let _=t.length;for(var b=0;b<_;b++){var p=t[b];if(d?p==="/"&&t[b-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[b+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=b;else if(p===";"||b===_-1){if(f!==-1){var $=Pp(t.substring(u,f).trim());if(!l.includes($)){p!==";"&&b++;var x=t.substring(u,b).trim();i+=" "+x+";"}}u=b+1,f=-1}}}}return o&&(i+=Fg(o)),n&&(i+=Fg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,n,a){var s=t.__className;if(Ge||s!==i){var d=Ug(i,o,a);(!Ge||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function Ap(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 st(t,e,i,o){var n=t.__style;if(Ge||n!==e){var a=zg(e,o);(!Ge||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Ap(t,i==null?void 0:i[0],o[0]),Ap(t,i==null?void 0:i[1],o[1],"important")):Ap(t,i,o));return o}var el=Symbol("class"),tl=Symbol("style"),Kg=Symbol("is custom element"),Qg=Symbol("is html");function Gg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=jg(t);if(Ge&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||m_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Pv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Yg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ke(t,e,i,o,n=!1){var A;var a=jg(t),s=a[Kg],d=!a[Qg];let l=Ge&&s;l&&vo(!1);var u=e||{},f=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=Xl(i.class):(o||i[el])&&(i.class=null),i[tl]&&((A=i.style)!=null||(i.style=null));var p=Yg(t);for(let I in i){let V=i[I];if(f&&I==="value"&&V==null){t.value=t.__value="",u[I]=V;continue}if(I==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,$,V,o,e==null?void 0:e[el],i[el]),u[I]=V,u[el]=i[el];continue}if(I==="style"){st(t,V,e==null?void 0:e[tl],i[tl]),u[I]=V,u[tl]=i[tl];continue}var x=u[I];if(V!==x){u[I]=V;var _=I[0]+I[1];if(_!=="$$")if(_==="on"){let q={},G="$$"+I,H=I.slice(2);var C=Cg(H);if(Sg(H)&&(H=H.slice(0,-7),q.capture=!0),!C&&x){if(V!=null)continue;t.removeEventListener(H,u[G],q),u[G]=null}if(V!=null)if(C)t[`__${H}`]=V,lt([H]);else{let Z=function(re){u[I].call(this,re)};var P=Z;u[G]=xp(H,t,Z,q)}else C&&(t[`__${H}`]=void 0)}else if(I==="style")De(t,I,V);else if(I==="autofocus")$p(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&f)Gg(t,V);else{var T=I;d||(T=Tg(T));var k=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!k)if(a[I]=null,T==="value"||T==="checked"){let q=t,G=e===void 0;if(T==="value"){let H=q.defaultValue;q.removeAttribute(T),q.defaultValue=H,q.value=q.__value=G?H:null}else{let H=q.defaultChecked;q.removeAttribute(T),q.defaultChecked=H,q.checked=G?H:!1}}else t.removeAttribute(I);else k||p.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&De(t,T,V,n)}}}return l&&vo(!0),u}function jg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Kg]:t.nodeName.includes("-"),[Qg]:t.namespaceURI===Tv}}var qg=new Map;function Yg(t){var e=qg.get(t.nodeName);if(e)return e;qg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=mc(o);for(var a in i)i[a].set&&e.push(a);o=Yr(o)}return e}function m_(t,e,i){var o;Pe&&(e==="srcset"&&v_(t,i)||Mp((o=t.getAttribute(e))!=null?o:"",i)||tg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Mp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Wg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function v_(t,e){var i=Wg(t.srcset),o=Wg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Mp(i[s][0],n)||Mp(n,i[s][0])))}var g_=fc?()=>performance.now():()=>Date.now(),xr={tick:t=>(fc?requestAnimationFrame:oe)(t),now:()=>g_(),tasks:new Set};function Zg(){let t=xr.now();xr.tasks.forEach(e=>{e.c(t)||(xr.tasks.delete(e),e.f())}),xr.tasks.size!==0&&xr.tick(Zg)}function Xg(t){let e;return xr.tasks.size===0&&xr.tick(Zg),{promise:new Promise(i=>{xr.tasks.add(e={c:t,f:i})}),abort(){xr.tasks.delete(e)}}}function Vc(t,e){Gl(()=>{t.dispatchEvent(new CustomEvent(e))})}function $_(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 Jg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=$_(n.trim());e[s]=a.trim()}return e}var y_=t=>t;function Vp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,b=e.style.overflow,p,$;function x(){var V;var A=zt,I=Pt;xo(null),fo(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{xo(A),fo(I)}}var _={is_global:d,in(){var A;if(e.inert=f,!n){$==null||$.abort(),(A=$==null?void 0:$.reset)==null||A.call($);return}a||p==null||p.abort(),Vc(e,"introstart"),p=Lp(e,x(),$,1,()=>{Vc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=b})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,Vc(e,"outrostart"),$=Lp(e,x(),p,0,()=>{Vc(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},C=Pt;if(((P=C.transitions)!=null?P:C.transitions=[]).push(_),n&&jl){var T=d;if(!T){for(var k=C.parent;k&&(k.f&65536)!==0;)for(;(k=k.parent)&&(k.f&16)===0;);T=!k||(k.f&32768)!==0}T&&$n(()=>{Ct(()=>_.in())})}}function Lp(t,e,i,o,n){var a=o===1;if(ms(e)){var s,d=!1;return Zo(()=>{if(!d){var C=e({direction:a?"in":"out"});s=Lp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:u,tick:f,easing:b=y_}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=Jg(u(0,1));p.push($,$)}var x=()=>1-o,_=t.animate(p,{duration:l});return _.onfinish=()=>{var H;var C=(H=i==null?void 0:i.t())!=null?H:1-o;i==null||i.abort();var T=o-C,k=e.duration*Math.abs(T),P=[];if(k>0){var A=!1;if(u)for(var I=Math.ceil(k/16.666666666666668),V=0;V<=I;V+=1){var q=C+T*b(V/I),G=Jg(u(q,1-q));P.push(G),A||(A=G.overflow==="hidden")}A&&(t.style.overflow="hidden"),x=()=>{var Z=_.currentTime;return C+T*b(Z/k)},f&&Xg(()=>{if(_.playState!=="running")return!1;var Z=x();return f(Z,1-Z),!0})}_=t.animate(P,{duration:k,fill:"forwards"}),_.onfinish=()=>{x=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>x()}}var bs,il,Jl,Nc,eh,Bc=class Bc{constructor(e){ps(this,Nc);ps(this,bs,new WeakMap);ps(this,il);ps(this,Jl);Na(this,Jl,e)}observe(e,i){var o=Bi(this,bs).get(e)||new Set;return o.add(i),Bi(this,bs).set(e,o),Sv(this,Nc,eh).call(this).observe(e,Bi(this,Jl)),()=>{var n=Bi(this,bs).get(e);n.delete(i),n.size===0&&(Bi(this,bs).delete(e),Bi(this,il).unobserve(e))}}};bs=new WeakMap,il=new WeakMap,Jl=new WeakMap,Nc=new WeakSet,eh=function(){var e;return(e=Bi(this,il))!=null?e:Na(this,il,new ResizeObserver(i=>{for(var o of i){Bc.entries.set(o.target,o);for(var n of Bi(this,bs).get(o.target)||[])n(o)}}))},Mn(Bc,"entries",new WeakMap);var Rp=Bc;var S_=new Rp({box:"border-box"});function Ur(t,e,i){var o=S_.observe(t,()=>i(t[e]));$n(()=>(Ct(()=>i(t[e])),o))}function th(t,e){return t===e||(t==null?void 0:t[qo])===e}function mt(t={},e,i,o){return $n(()=>{var n,a;return So(()=>{n=a,a=(o==null?void 0:o())||[],Ct(()=>{t!==i(...a)&&(e(t,...a),n&&th(i(...n),t)&&e(null,...n))})}),()=>{Zo(()=>{a&&th(i(...a),t)&&e(null,...a)})}}),t}function wr(t=!1){let e=Lt,i=e.l.u;if(!i)return;let o=()=>Tc(e.s);if(t){let n=0,a={},s=v(()=>{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&&Qa(()=>{ih(e,o),vs(i.b)}),Fe(()=>{let n=Ct(()=>i.m.map(Lv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Fe(()=>{ih(e,o),vs(i.a)})}function ih(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Wv(e)},set:o=>{i=o}})}};T_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var T_;function Qt(t){Lt===null&&Ga("onMount"),Dr&&Lt.l!==null?C_(Lt).m.push(t):Fe(()=>{let e=Ct(t);if(typeof e=="function")return e})}function xn(t){Lt===null&&Ga("onDestroy"),Qt(()=>()=>Ct(t))}function C_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function ed(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=Ct(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var ol=[];function ir(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=!ol.length;for(let u of o)u[1](),ol.push(u,t);if(l){for(let u=0;u<ol.length;u+=2)ol[u][0](ol[u+1]);ol.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 Ci(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 ir(i,(s,d)=>{let l=!1,u=[],f=0,b=oe,p=()=>{if(f)return;b();let x=e(o?u[0]:u,s,d);a?s(x):b=typeof x=="function"?x:oe},$=n.map((x,_)=>ed(x,C=>{u[_]=C,f&=~(1<<_),l&&p()},()=>{f|=1<<_}));return l=!0,p(),function(){vs($),b(),l=!1}})}function Te(t){let e;return ed(t,i=>e=i)(),e}var Dc=!1,Np=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Jr(void 0),unsubscribe:oe};if(o.store!==t&&!(Np 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=ed(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&Np in i?Te(t):r(o.source)}function Ne(){let t={};function e(){rn(()=>{for(var i in t)t[i].unsubscribe();po(t,Np,{enumerable:!1,value:!0})})}return[t,e]}function Bp(t){var e=Dc;try{return Dc=!1,[t(),Dc]}finally{Dc=e}}var L_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&qv(`${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 Ae(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},L_)}var V_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ms(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];ms(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(ms(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===qo||e===Ml)return!1;for(let i of t.props)if(ms(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ms(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ns(...t){return new Proxy({props:t},V_)}function oh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var q,G;var n=(i&1)!==0,a=!Dr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=Bp(()=>t[e]):u=t[e];var f=qo in t||Ml in t,b=s&&((G=(q=Ln(t,e))==null?void 0:q.set)!=null?G:f&&e in t&&(H=>t[e]=H))||void 0,p=o,$=!0,x=!1,_=()=>(x=!0,$&&($=!1,d?p=Ct(o):p=o),p);u===void 0&&o!==void 0&&(b&&a&&zv(e),u=_(),b&&b(u));var C;if(a)C=()=>{var H=t[e];return H===void 0?_():($=!0,x=!1,H)};else{var T=(n?v:$r)(()=>t[e]);T.f|=131072,C=()=>{var H=r(T);return H!==void 0&&(p=void 0),H===void 0?p:H}}if((i&4)===0)return C;if(b){var k=t.$$legacy;return function(H,Z){return arguments.length>0?((!a||!Z||k||l)&&b(Z?C():H),H):C()}}var P=!1,A=!1,I=Jr(u),V=v(()=>{var H=C(),Z=r(I);return P?(P=!1,A=!0,Z):(A=!1,I.v=H)});return s&&r(V),n||(V.equals=Da),function(H,Z){if(Nl!==null&&(P=A,C(),r(I)),arguments.length>0){let re=Z?r(V):a&&s?me(H):H;if(!V.equals(re)){if(P=!0,D(I,re),x&&p!==void 0&&(p=re),oh(V))return H;Ct(()=>r(V))}return H}return oh(V)?V.v:r(V)}}var R_;typeof HTMLElement=="function"&&(R_=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 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),y(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=N_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=Dp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Bg({component:this.$$ctor,target:this.shadowRoot||this,props:Ht(W({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=kc(()=>{So(()=>{var a;this.$$r=!0;for(let s of Qu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Dp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Dp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Qu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Dp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function N_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var nh="5";var rh,sh,ah;typeof window!="undefined"&&((ah=(sh=(rh=window.__svelte)!=null?rh:window.__svelte={}).v)!=null?ah:sh.v=new Set).add(nh);var Tu=require("@vkontakte/videoplayer-core/es2015"),hj=require("@vkontakte/videoplayer-core/es2015"),Ia=require("@vkontakte/videoplayer-shared/es2015"),r0=require("@vkontakte/videoplayer-statistics/es2015");var Xs=require("@vkontakte/videoplayer-shared/es2015");var D_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Xs.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Xs.VideoQuality.Q_480P,highQualityLimit:Xs.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},lh=t=>(0,Xs.fillWithDefault)(t,D_),dh=t=>Ya("ui-config",t),Gt=()=>ja("ui-config");var td="vk_player_debug_panel_opened";var ch="videoplayer",uh="videoplayer";var zr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ph=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),fh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),mh=new Set(["ShiftRight","ShiftLeft"]);var vh=["TIMELINE"],id=[...vh,"GRAPH_BUTTON"],Op=[...vh,"PLAY_BUTTON"],od=[...id,"PLAY_BUTTON"];var Sr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Sr||{}),ea={xs:0,s:1,m:2,l:3,xl:4};var nd=require("@vkontakte/videoplayer-shared/es2015"),gh=require("@vkontakte/videoplayer-core/es2015"),hh=require("@vkontakte/videoplayer-statistics/es2015");var Oc="prod",ta="1.1.64";var ia=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var _h=Symbol("storeContext"),bh=Symbol("microStoresContext"),$h=(t,e)=>{Ya(_h,t),Ya(bh,e),Oc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=ja(_h);return(0,nd.assertNonNullable)(t,"Store context is empty!"),t},ho=()=>{let t=ja(bh);return(0,nd.assertNonNullable)(t,"MicroStores context is empty!"),t},oi=(t,e)=>Fc(t,t.getValue(),e),Fc=(t,e,i)=>ir(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),yh=(t,e,i,o)=>{var k,P,A,I,V,q;let n=t.info,{width:a,height:s}=Te(i.ui.playerSize),d=(P=(k=n.throughputEstimation$.getValue())==null?void 0:k.toFixed(0))!=null?P:0,l=(I=(A=n.rttEstimation$.getValue())==null?void 0:A.toFixed(0))!=null?I:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${ta} (core: ${gh.VERSION}, stat: ${hh.VERSION}, shared: ${nd.VERSION})`,b=Te(i.state.errorLog$),p=b.length?`
49
+ `+b.map((G,H)=>{var ce;let Z=`${H}) Type: ${G.id}
50
+ `,re=`Message: ${G.message} (${G.thrown})
51
+ `,X=`Trace: ${(ce=G.thrown)==null?void 0:ce.stack}
52
+ `;return Z+re+X}).join(`
53
+ `):void 0,$=i.state.isAudioDisabled?"disabled":Te(i.state.isAudioAvailable$)?void 0:"unavailable",x=t.info.currentVideoStream$.getValue(),_=t.info.currentAudioStream$.getValue(),C=[];x&&C.push(`Video: ${(V=x==null?void 0:x.codec)!=null?V:""}`+(x!=null&&x.hdr?" (HDR)":"")),_&&C.push(`Audio: ${(q=_==null?void 0:_.codec)!=null?q:""}`+(_!=null&&_.language?` (${_.language})`:""));let T={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:Te(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${l}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${u} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:$,Position:`${Te(i.state.positionExact$)}s`,State:`${Te(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${s}`,URL:window.location.href,Errors:p};return Object.entries(T).filter(([G,H])=>H!==void 0).map(([G,H])=>`${G}: ${H}`).join(`
54
+ `)},xh=(t,e,i)=>{var q,G,H,Z;let o=t.info,{width:n,height:a}=Te(i.ui.playerSize),s={version:ta,viewport:`${n}x${a}`,volume:Math.round(Te(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(),b=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(b&&p?s.buffer=f.end-p:s.buffer=Math.max(f.end-Te(i.state.positionExact$),0));let $=o.throughputEstimation$.getValue();$&&(s.speed=$);let x=o.videoBitrate$.getValue();x&&(s.bitrate=x);let _=o.liveLatency$.getValue();_&&(s.liveLatency=_);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let k=Te(i.vsid);typeof k=="string"&&(s.vsid=k);let P=(q=t.info.currentVideoStream$.getValue())==null?void 0:q.codec;P&&(s.videoCodec=P);let A=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.codec;A&&(s.audioCodec=A),((H=t.info.currentVideoStream$.getValue())==null?void 0:H.hdr)&&(s.hdr=!0);let V=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return V&&(s.audioLanguage=V),s},wh=(t,e)=>ia(t,e,"mp4"),Sh=t=>!t.type,Ch=t=>!!t.type,Th=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Hc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}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}};var Oi=require("@vkontakte/videoplayer-shared/es2015"),mP=require("@vkontakte/videoplayer-core/es2015");var Ih="vk_player_prefer_traffic_saving_enabled",kh="vk_player_preferred_volume",Eh="vk_player_prefer_volume_mute",Up="vk_player_preferred_quality",Hp="vk_player_preferred_default_quality_settings",Fp="vk_player_preferred_quality_settings_by_video",Ph="vk_player_preferred_stream_language",Ah="vk_player_preferred_rate",Mh="vk_player_preferred_autoplay_next",Lh=t=>t>1?1:t<0?0:t,zp=t=>Oi.safeStorage.set(kh,Lh(t).toString(10)),Uc=()=>{let t=Oi.safeStorage.get(kh);return(0,Oi.isNullable)(t)?void 0:Lh(parseFloat(t))},qp=(t,e)=>Oi.safeStorage.set(Up,JSON.stringify({videoId:t,value:e})),sd=()=>Oi.safeStorage.remove(Up),Wp=t=>{let e=Oi.safeStorage.get(Up);if((0,Oi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){sd();return}return o},Kp=(t,e)=>{e?Oi.safeStorage.set(t,"true"):Oi.safeStorage.remove(t)},Qp=t=>Oi.safeStorage.get(t)==="true",Gp=t=>Kp(Eh,t),Vh=()=>Qp(Eh),rd=t=>Kp(Ih,t),jp=()=>Qp(Ih),Rh=()=>Oi.safeStorage.get(Ph),Yp=t=>Oi.safeStorage.set(Ph,t),Nh=t=>Oi.safeStorage.set(Ah,JSON.stringify({rate:t})),Bh=()=>{let t=Oi.safeStorage.get(Ah);if((0,Oi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Dh=t=>Kp(Mh,t),Oh=()=>Qp(Mh),O_=()=>{let t=f=>{Oi.safeStorage.set(Hp,JSON.stringify(f))},e=()=>{try{let f=Oi.safeStorage.get(Hp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Oi.safeStorage.get(Fp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Oi.safeStorage.set(Fp,JSON.stringify(f))},n=f=>{u(f);let b=f?i():null;if(b&&(b==null?void 0:b.videoId)===f)return Ht(W({},b),{appliesTo:"to-video"});b&&a();let p=e();return p?Ht(W({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Oi.safeStorage.remove(Fp)},s=()=>{Oi.safeStorage.remove(Hp)},d=(f,b="as-default")=>{f.type==="exact_quality"?o(f):b==="as-default"?t(f):o(f)},l=f=>{let b=n(f);if(b){switch(b.type){case"traffic_saving":rd(!0);break;case"exact_quality":qp(f,b.quality)}a(),s()}},u=f=>{let b=Wp(f);if(b){o({type:"exact_quality",videoId:f,quality:b});return}jp()&&t({type:"traffic_saving",videoId:f}),rd(!1),sd()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Hh,migrateSettingsToLegacyWay:Fh,savePreferredQualitySettings:zc,savePreferredDefaultQualitySettings:vP,removePreferredQualitySettingsByVideo:gP,getPreferredDefaultQualitySettings:qc}=O_();var ev=require("@vkontakte/videoplayer-core/es2015");var H_=we('<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 ad(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=H_();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i))),y(t,o)}var nl=require("@vkontakte/videoplayer-shared/es2015");var F_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
55
55
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
56
- \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Fh=B_;var O_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
56
+ \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Uh=F_;var U_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
57
57
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
58
- Try switching the\xA0quality to\xA0Auto.`},Uh=O_;var ns=new Map;ns.set(el.InterfaceLanguage.EN,Uh);ns.set(el.InterfaceLanguage.RU,Fh);var zh=new Map,Yp=({language:t,pack:e,fallback:i})=>{if(ns.has(t)){let o=ns.get(t);ns.set(t,q(q({},o),e))}else ns.set(t,e);zh.set(t,i)},Zp=t=>ns.has(t),Xp=(t,e,i,o)=>{var s;let n=ns.get(t),a=n==null?void 0:n[e];if((0,el.isNullable)(a)){let d=(s=zh.get(t))!=null?s:o,l=d?ns.get(d):void 0;a=l==null?void 0:l[e]}return(0,el.isNullable)(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}=Ce(),o=Se(i),n=qt();return Xp(o,t,e,n.defaultLanguage)};var BP=require("@vkontakte/videoplayer-core/es2015");var tl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(tl||(tl={}));var H_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,F_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,U_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Wc="?",z_="X-Sentry-Auth",q_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function W_(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=H_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Wc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=U_.exec(i[a]))n={filename:o[2],function:o[1]||Wc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=F_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Wc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Wc),e.push(n)}return e.length?{value:qh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function qh(t){return(t&&t.message||"No error message").split(`
60
- `).filter(i=>!!i)[0]}function K_(t){try{let e=W_(t);if(e)return e}catch(e){}return{value:qh(t),type:t&&t.name,stacktrace:{frames:[]}}}function Q_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Kc=class{constructor(e){if(e&&e.dsn){let i=q_.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(q({},this.getRequestBlank()),{exception:{values:[K_(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(z_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Q_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Wh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function G_(){return window}var Qc=class t extends Kc{constructor(e,i=G_()){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(Nt(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(Nt(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=>Wh(i,o))):!1}getRequestBlank(){return q(Nt(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=>Wh(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(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}};var oa=require("@vkontakte/videoplayer-shared/es2015");var Gc=null,na=class{constructor(e,i,o={}){!Gc&&e.dsn&&(this.sentryClient=new Qc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new oa.Subscription,this.options=e,this.context=o,Gc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Gc=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:v,blackErrorCategoryList:$}=s,{errorType:p,category:_}=i;if((0,oa.isNonNullable)(_)&&$.includes(_)||(0,oa.isNonNullable)(p)&&v.includes(p))return;if(Math.random()<=d||(0,oa.isNonNullable)(_)&&u.includes(_)||(0,oa.isNonNullable)(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?tl.fatal:tl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Gc}};var qr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(qr||{});var jc=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()},Yc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Kh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},dd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},bs=()=>!!dd(),Zc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Xc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Qh=t=>{let e=window.screen;return(n=>Mt(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))};var Jp=require("@vkontakte/videoplayer-core/es2015"),Gh=()=>({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:Jp.clientChecker.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:Jp.clientChecker.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});var il=require("@vkontakte/videoplayer-shared/es2015");var ra=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,il.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new il.ValueSubject(!1),isEnabled$:new il.ValueSubject(!1),type:0};this.info.isEnabled$=new il.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return Mt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return Mt(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 Mt(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 Mt(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 sa(t){return t instanceof ra}var ol=require("@vkontakte/videoplayer-shared/es2015");jv();function of(t,e){U(e,!1);let i=Ce();zt(()=>{i.getAdmanWrapper().startPostroll()}),yr(),z()}var jh=require("@vkontakte/videoplayer-shared/es2015");var j_=(t,e)=>{t.stopPropagation(),e()()},Y_=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>'),Z_=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 nf(t,e){U(e,!0),W(t,X_);let[i,o]=Oe(),n=()=>S(u,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"secondsToWatchBeforeSkip",3,0),d=f(e,"skipAd",3,jh.noop),u=Ce().ui.isMobile,v=m(()=>a()>0&&a()>=s());var $=Z_();let p;var _=h($);{var w=C=>{var T=Y_();T.__click=[j_,d];var E=h(T);be(),g(T),k(P=>he(E,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),b(C,T)},y=C=>{var T=Fr();k(E=>he(T,E),[()=>F("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(C,T)};R(_,C=>{r(v)?C(w):C(y,!1)})}g($),k(C=>p=te($,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":n(),skippable:r(v)})]),b(t,$),z(),o()}lt(["click"]);var J_=L('<button class="svelte-1wy3dql"> </button>'),eb={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 rf(t,e){U(e,!1),W(t,eb),yr();var i=J_(),o=h(i,!0);g(i),k(n=>he(o,n),[()=>F("visit_advertiser")],_r),b(t,i),z()}var tb=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),ib=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),ob={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.`},zh=U_;var rs=new Map;rs.set(nl.InterfaceLanguage.EN,zh);rs.set(nl.InterfaceLanguage.RU,Uh);var qh=new Map,Zp=({language:t,pack:e,fallback:i})=>{if(rs.has(t)){let o=rs.get(t);rs.set(t,W(W({},o),e))}else rs.set(t,e);qh.set(t,i)},Xp=t=>rs.has(t),Jp=(t,e,i,o)=>{var s;let n=rs.get(t),a=n==null?void 0:n[e];if((0,nl.isNullable)(a)){let d=(s=qh.get(t))!=null?s:o,l=d?rs.get(d):void 0;a=l==null?void 0:l[e]}return(0,nl.isNullable)(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}=Ie(),o=Te(i),n=Gt();return Jp(o,t,e,n.defaultLanguage)};var FP=require("@vkontakte/videoplayer-core/es2015");var rl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(rl||(rl={}));var z_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,q_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,W_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Wc="?",K_="X-Sentry-Auth",Q_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function G_(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=z_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Wc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=W_.exec(i[a]))n={filename:o[2],function:o[1]||Wc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=q_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Wc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Wc),e.push(n)}return e.length?{value:Wh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Wh(t){return(t&&t.message||"No error message").split(`
60
+ `).filter(i=>!!i)[0]}function j_(t){try{let e=G_(t);if(e)return e}catch(e){}return{value:Wh(t),type:t&&t.name,stacktrace:{frames:[]}}}function Y_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Kc=class{constructor(e){if(e&&e.dsn){let i=Q_.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 Ht(W({},this.getRequestBlank()),{exception:{values:[j_(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(K_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Y_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Kh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Z_(){return window}var Qc=class t extends Kc{constructor(e,i=Z_()){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(Ht(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(Ht(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=>Kh(i,o))):!1}getRequestBlank(){return W(Ht(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=>Kh(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 Ht(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}};var oa=require("@vkontakte/videoplayer-shared/es2015");var Gc=null,na=class{constructor(e,i,o={}){!Gc&&e.dsn&&(this.sentryClient=new Qc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new oa.Subscription,this.options=e,this.context=o,Gc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Gc=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:b}=s,{errorType:p,category:$}=i;if((0,oa.isNonNullable)($)&&b.includes($)||(0,oa.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,oa.isNonNullable)($)&&u.includes($)||(0,oa.isNonNullable)(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?rl.fatal:rl.error),n.report(e)}catch(_){console.error(_)}}}static getInstance(){return Gc}};var qr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(qr||{});var jc=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()},Yc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Qh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},ld=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},$s=()=>!!ld(),Zc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Xc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Gh=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))};var ef=require("@vkontakte/videoplayer-core/es2015"),jh=()=>({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:ef.clientChecker.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:ef.clientChecker.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});var sl=require("@vkontakte/videoplayer-shared/es2015");var ra=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,sl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new sl.ValueSubject(!1),isEnabled$:new sl.ValueSubject(!1),type:0};this.info.isEnabled$=new sl.ValueSubject(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=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 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 sa(t){return t instanceof ra}var al=require("@vkontakte/videoplayer-shared/es2015");Yv();function nf(t,e){U(e,!1);let i=Ie();Qt(()=>{i.getAdmanWrapper().startPostroll()}),wr(),z()}var Yh=require("@vkontakte/videoplayer-shared/es2015");var X_=(t,e)=>{t.stopPropagation(),e()()},J_=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>'),eb=L("<div><!></div>"),tb={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 rf(t,e){U(e,!0),K(t,tb);let[i,o]=Ne(),n=()=>S(u,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,Yh.noop),u=Ie().ui.isMobile,f=v(()=>a()>0&&a()>=s());var b=eb();let p;var $=h(b);{var x=C=>{var T=J_();T.__click=[X_,d];var k=h(T);xe(),g(T),E(P=>ge(k,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),y(C,T)},_=C=>{var T=Fr();E(k=>ge(T,k),[()=>F("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),y(C,T)};R($,C=>{r(f)?C(x):C(_,!1)})}g(b),E(C=>p=ee(b,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":n(),skippable:r(f)})]),y(t,b),z(),o()}lt(["click"]);var ib=L('<button class="svelte-1wy3dql"> </button>'),ob={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 sf(t,e){U(e,!1),K(t,ob),wr();var i=ib(),o=h(i,!0);g(i),E(n=>ge(o,n),[()=>F("visit_advertiser")],$r),y(t,i),z()}var nb=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),rb=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),sb={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.`},Uh=O_;var ns=new Map;ns.set(el.Interf
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 cd(t,e){U(e,!0),W(t,ob);let[i,o]=Oe(),n=()=>S(Y,"$canSkipAd",i),a=()=>S(H,"$adPlaybackState",i),s=()=>S(E,"$isMobile",i),d=()=>S(O,"$adPosition",i),l=()=>S(J,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),v=f(e,"adsSlotId",3,void 0),$=f(e,"adsParams",3,void 0),p=f(e,"adsPreviewParam",3,void 0),_=f(e,"adsAutoplayParam",3,void 0),w=f(e,"duration",3,0),y=Ce(),C=qt(),T=y.state.isEnded$,E=y.ui.isMobile,P=C.ads.isMobileGoToSiteButton,A=ee(void 0),I=ee(void 0),V=!1,H=y.ads.playbackState,Y=y.ads.canSkip,O=y.ads.position,J=y.ads.secondsToWatchBeforeSkip,re=m(()=>n()&&a()!=="inactive"),Z=m(()=>s()&&a()!=="inactive"&&P);zt(()=>{var we;let ie=y.getAdmanWrapper();if(ol.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,ol.now)(),v()]}),!v()){ie.onAdmanLoadingError();return}let je=Be=>{ie.initAdman(Be),V=!0},oe=new AbortController,G=()=>{oe.abort()},{width:K,height:Ve}=Se(y.ui.playerSize),Ne=Se(y.ui.isFullscreen),et=(we=_())!=null?we:Se(y.ui.isAutoplay),xe={width:K,height:Ve,isFullscreen:Ne,isAutoplay:et,adsContainer:r(A),adsVideoElement:r(I),slotId:v(),params:$(),previewParam:p(),duration:w()};return window.AdmanHTML?je(xe):ie.loadAdman(oe.signal).then(()=>{je(xe)}).catch(()=>{ie.onAdmanLoadingError()}),()=>{ol.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,ol.now)(),v()]}),!V&&G()}});var me=ib(),de=h(me);{var Le=ie=>{var je=tb();b(ie,je)};R(de,ie=>{s()&&ie(Le)})}var Me=M(de,2);mt(Me,ie=>B(I,ie),()=>r(I));var ve=M(Me,2);{var le=ie=>{nf(ie,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};R(ve,ie=>{r(re)&&ie(le)})}var Ae=M(ve,2);{var se=ie=>{of(ie,{})};R(Ae,ie=>{u()&&ie(se)})}var N=M(Ae,2);{var Re=ie=>{rf(ie,{})};R(N,ie=>{r(Z)&&ie(Re)})}g(me),mt(me,ie=>B(A,ie),()=>r(A)),b(t,me),z(),o()}var mn=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 nb=$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 sf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=nb();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(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 rb=$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 af(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=rb();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(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 ud(t,e){let i=f(e,"isActive",3,!1);var o=Ue(),n=pe(o);{var a=d=>{af(d,{})},s=d=>{sf(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var sb=L('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),ab=L('<div class="live-icon svelte-1s15d2i"><!></div>'),lb=L('<span class="text svelte-1s15d2i"> </span>'),db=L("<div><!> <!></div>"),cb={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
70
+ );}`};function dd(t,e){U(e,!0),K(t,sb);let[i,o]=Ne(),n=()=>S(G,"$canSkipAd",i),a=()=>S(q,"$adPlaybackState",i),s=()=>S(k,"$isMobile",i),d=()=>S(H,"$adPosition",i),l=()=>S(Z,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),b=m(e,"adsParams",3,void 0),p=m(e,"adsPreviewParam",3,void 0),$=m(e,"adsAutoplayParam",3,void 0),x=m(e,"duration",3,0),_=Ie(),C=Gt(),T=_.state.isEnded$,k=_.ui.isMobile,P=C.ads.isMobileGoToSiteButton,A=J(void 0),I=J(void 0),V=!1,q=_.ads.playbackState,G=_.ads.canSkip,H=_.ads.position,Z=_.ads.secondsToWatchBeforeSkip,re=v(()=>n()&&a()!=="inactive"),X=v(()=>s()&&a()!=="inactive"&&P);Qt(()=>{var Se;let de=_.getAdmanWrapper();if(al.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,al.now)(),f()]}),!f()){de.onAdmanLoadingError();return}let Qe=Re=>{de.initAdman(Re),V=!0},te=new AbortController,ve=()=>{te.abort()},{width:Y,height:ie}=Te(_.ui.playerSize),He=Te(_.ui.isFullscreen),Ye=(Se=$())!=null?Se:Te(_.ui.isAutoplay),ye={width:Y,height:ie,isFullscreen:He,isAutoplay:Ye,adsContainer:r(A),adsVideoElement:r(I),slotId:f(),params:b(),previewParam:p(),duration:x()};return window.AdmanHTML?Qe(ye):de.loadAdman(te.signal).then(()=>{Qe(ye)}).catch(()=>{de.onAdmanLoadingError()}),()=>{al.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,al.now)(),f()]}),!V&&ve()}});var ce=rb(),ue=h(ce);{var Ve=de=>{var Qe=nb();y(de,Qe)};R(ue,de=>{s()&&de(Ve)})}var Me=M(ue,2);mt(Me,de=>D(I,de),()=>r(I));var _e=M(Me,2);{var ae=de=>{rf(de,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return _.actions.internal.skipAd}})};R(_e,de=>{r(re)&&de(ae)})}var Le=M(_e,2);{var ne=de=>{nf(de,{})};R(Le,de=>{u()&&de(ne)})}var B=M(Le,2);{var $e=de=>{sf(de,{})};R(B,de=>{r(X)&&de($e)})}g(ce),mt(ce,de=>D(A,de),()=>r(A)),y(t,ce),z(),o()}var sn=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 ab=we('<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 af(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=ab();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i))),y(t,o)}var lb=we('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #FF3347)" rx="5"></rect><path fill="#F2F3F5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function lf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=lb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(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))),y(t,o)}function cd(t,e){let i=m(e,"isActive",3,!1);var o=Oe(),n=fe(o);{var a=d=>{lf(d,{})},s=d=>{af(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}y(t,o)}var db=L('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),cb=L('<div class="live-icon svelte-1s15d2i"><!></div>'),ub=L('<span class="text svelte-1s15d2i"> </span>'),pb=L("<div><!> <!></div>"),fb={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
71
71
  opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
72
72
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
73
73
  animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
@@ -138,10 +138,10 @@ Try switching the\xA0quality to\xA0Auto.`},Uh=O_;var ns=new Map;ns.set(el.Interf
138
138
  100% {
139
139
  transform: scaleY(0.6);
140
140
  }
141
- }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function pd(t,e){W(t,cb);let i=f(e,"withEqualizer",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1);var a=db();let s;var d=h(a);{var l=p=>{var _=sb();b(p,_)};R(d,p=>{i()&&p(l)})}var u=M(d,2);{var v=p=>{var _=ab(),w=h(_);ud(w,{isActive:!0}),g(_),b(p,_)},$=p=>{var _=lb(),w=h(_,!0);g(_),k(()=>he(w,e.time)),b(p,_)};R(u,p=>{o()?p(v):p($,!1)})}g(a),k(p=>s=te(a,1,"wrapper svelte-1s15d2i",null,s,p),[()=>({live:o(),playing:n()})]),b(t,a)}var ub=L('<div role="timer" data-testid="thumb-timer"><!></div>'),pb={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
142
- opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function fd(t,e){U(e,!0),W(t,pb);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1),a=m(()=>mn(e.duration-e.position));var s=ub();let d;var l=h(s);pd(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),k(u=>d=te(s,1,"thumb-timer svelte-1b40w20",null,d,u),[()=>({hidden:i()})]),b(t,s),z()}var nl=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var n1=require("@vkontakte/videoplayer-core/es2015");var lf=require("@vkontakte/videoplayer-core/es2015");var lr=t=>{t.stopPropagation(),t.preventDefault()},mb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},vb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},gb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},hb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Yh=t=>t.code==="Escape",_b=t=>t.code==="ArrowLeft",md=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Zh=t=>{if(gb(t)){lr(t),vb(t.target);return}hb(t)&&(lr(t),mb(t.target))},xs=t=>!lf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||lf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",rl=(t,e,i)=>Mt(void 0,null,function*(){yield To(),t&&!t.classList.contains("opened")&&!e&&Se(i)&&(yield To(),i.set(!1),t.focus())}),Xh=(t,e,i)=>Mt(void 0,null,function*(){yield To(),t&&!e&&Se(i)&&(i.set(!1),t.focus())}),sl=(t,e,i)=>Mt(void 0,null,function*(){var n;yield To(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),Jh=(t,e)=>Mt(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Jc=(t,e)=>{Zh(t),Yh(t)&&(lr(t),e())},eu=(t,e)=>Mt(void 0,null,function*(){md(t,["ArrowRight"])&&(lr(t),e())}),e1=(t,e,i)=>Mt(void 0,null,function*(){if(Zh(t),_b(t)){lr(t),e();return}Yh(t)&&(lr(t),i())}),al=(t,e)=>{md(t)&&(lr(t),e())},t1=(t,e,i)=>{if(md(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))}},i1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},o1=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}};var da=require("@vkontakte/videoplayer-shared/es2015");var wr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var df=require("@vkontakte/videoplayer-shared/es2015");var $b=(t,e)=>{al(t,()=>e())},yb=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),xb={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 cf(t,e){U(e,!0),W(t,xb);let i=f(e,"onClick",3,df.noop),o=f(e,"closeContextMenu",3,df.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=yb();a.__click=n,a.__keydown=[$b,n];var s=h(a,!0);g(a),k(()=>{var d;Fe(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Fe(a,"data-testid",e.id),he(s,e.label)}),b(t,a),z()}lt(["click","keydown"]);var la=(t,e)=>t.weight-e.weight;var ll=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ll||{});var wb=(t,e)=>{Jc(t,e)},Sb=t=>{t.preventDefault()},Cb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Tb={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 uf(t,e){U(e,!0),W(t,Tb);let[i,o]=Oe(),n=()=>S(Z,"$isLive$",i),a=()=>S(Me,"$isPiPEnabled$",i),s=()=>S(re,"$chromecastState$",i),d=()=>S(ve,"$pictureInPictureApiIsActive$",i),l=()=>S(Le,"$isLooped$",i),u=()=>S(me,"$positionExact$",i),v=()=>S(H,"$debugPanelVisible",i),$=()=>S(Y,"$additionalContextMenuItems$",i),p=f(e,"visible",3,!1),_=f(e,"position",19,()=>({top:0,left:0})),w=f(e,"playerContainerRef",3,void 0),y=f(e,"controlsContainerRef",3,void 0),C=f(e,"menuElementRef",15,void 0),T=ee(0),E=ee(0),P=Ce(),{pictureInPicture$:A}=_o(),I=qt(),V=P.ui.contextMenu.visible$,H=P.ui.debugPanelVisible,Y=P.ui.additionalContextMenuItems$,O=P.ui.t,J=P.actions.internal.togglePictureInPicture,re=P.state.chromecastState$,Z=P.state.isLive$,me=P.state.positionExact$,de=P.state.isInteractive,Le=P.state.looped$,{isEnabled$:Me,isActive$:ve}=A,le=m(()=>{var Ze;return I.features.copyVideoLink&&((Ze=P.callbacks)==null?void 0:Ze.onCopyVideoLink)}),Ae=m(()=>r(le)&&!n()&&!de),se=m(()=>{var Ze;return!!((Ze=P.callbacks)!=null&&Ze.onCopyEmbedCodeClicked)}),N=m(()=>a()&&s()!==n1.ChromecastState.CONNECTED&&!de),Re=m(()=>I.features.videoRotate&&!de),ie=m(()=>I.showSupport&&!d()),je=m(()=>I.features.saveTraceInfoToFile),oe=()=>{var Ze;V.set(!1),(Ze=e.returnFocus)==null||Ze.call(e)},G=(Ze,Je)=>{if(!C()||!w()||!y())return;let ct=C().getBoundingClientRect(),De=w().getBoundingClientRect();B(T,Ze-De.left),B(E,Je-De.top),r(T)+ct.width>De.width&&B(T,De.width-ct.width),r(E)+ct.height>De.height&&B(E,De.height-ct.height),B(T,fe(Math.max(r(T),0))),B(E,fe(Math.max(r(E),0)))};ze(()=>{Mt(this,null,function*(){if(C()&&w()&&y()){yield To();let{top:Je,left:ct,bottom:De,right:yt}=_(),We=ct!=null?ct:0,At=Je!=null?Je:0,ai=C().getBoundingClientRect();(0,da.isNullable)(ct)&&!(0,da.isNullable)(yt)&&(We=yt-ai.width),(0,da.isNullable)(Je)&&!(0,da.isNullable)(De)&&(At=De-ai.height),We=Math.max(We,0),At=Math.max(At,0),G(We,At)}})});let K=()=>{P.actions.internal.videoRotate()},Ve=()=>{(0,da.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Ne=()=>{let Ze=P.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let Je=new Blob([...Ze],{type:"plain/text"}),ct=window.URL.createObjectURL(Je);ia(ct,"vk_player_debug_info","txt")}else nl(P.actions.internal.getDebugTextData())},et=()=>{let Ze=P.actions.internal.getTraceTextData(),Je=new Blob([...Ze],{type:"application/json"}),ct=window.URL.createObjectURL(Je);ia(ct,"vk_player_trace_info","json")},xe=()=>{H.set(!0)},we=()=>Mt(this,null,function*(){var Ze;try{J()}finally{(Ze=e.returnFocus)==null||Ze.call(e)}}),Be=()=>{P.actions.internal.setLooped(!l())},Xe=()=>{var Ze,Je;if(r(se)){let ct=(Je=(Ze=P.callbacks)==null?void 0:Ze.onCopyEmbedCodeClicked)==null?void 0:Je.call(Ze);ct&&nl(ct)}},nt=(Ze=!1)=>{var Je,ct;if((Je=P.callbacks)!=null&&Je.onCopyVideoLink){let De=(ct=P.callbacks)==null?void 0:ct.onCopyVideoLink(Ze,u());De&&nl(De)}},ht=m(()=>I.features.saveDebugInfoToFile?O("menu_save_debug"):O("menu_copy_debug")),tt=m(()=>r(le)?{id:"copy-link",weight:wr["copy-link"],label:O("menu_copy_video_link"),onClick:()=>nt()}:void 0),vt=m(()=>r(Ae)?{id:"copy-link-timestamp",weight:wr["copy-link-timestamp"],label:O("menu_copy_video_link_with_timestamp"),onClick:()=>nt(!0)}:void 0),Pt=m(()=>r(se)?{id:"copy-embed-code",weight:wr["copy-embed-code"],label:O("menu_copy_embed_code"),onClick:Xe}:void 0),Yt=m(()=>r(N)?{id:"pip",weight:wr.pip,label:O("menu_pip"),onClick:we}:void 0),Wt=m(()=>({id:"video-loop",weight:wr["video-loop"],label:l()?O("menu_video_loop_off"):O("menu_video_loop_on"),ariaLabel:O("aria_label_menu_loop"),onClick:Be})),Gt=m(()=>r(Re)?{id:"rotate",weight:wr.rotate,label:O("menu_video_rotate"),ariaLabel:O("aria_label_menu_rotate"),onClick:K}:void 0),ge=m(()=>r(ie)?{id:"report",weight:wr.report,label:O("menu_report"),ariaLabel:`${O("menu_report")}. ${O("aria_label_new_tab_alert")}`,onClick:Ve}:void 0),j=m(()=>({id:"save-debug",weight:wr["save-debug"],label:r(ht),onClick:Ne})),Ie=m(()=>r(je)?{id:"save-trace",weight:wr["save-trace"],label:O("menu_save_debug"),onClick:et}:void 0),ae=m(()=>({id:"debug-info",weight:wr["debug-info"],label:O("menu_debug_overlay"),ariaLabel:v()?O("aria_label_menu_debug_overlay_disable"):O("aria_label_menu_debug_overlay_enable"),onClick:xe})),He=m(()=>[r(tt),r(vt),r(Pt),r(Yt),r(Wt),r(Gt),r(ge),r(j),r(Ie),r(ae),...$()].filter(Ze=>!!Ze).sort(la));var qe=Ue(),it=pe(qe);{var dt=Ze=>{var Je=Cb();Je.__contextmenu=[Sb],Je.__keydown=[wb,oe],Ei(Je,21,()=>r(He),ct=>ct.id,(ct,De)=>{cf(ct,{get id(){return r(De).id},get label(){return r(De).label},get ariaLabel(){return r(De).ariaLabel},get onClick(){return r(De).onClick},closeContextMenu:oe})}),g(Je),mt(Je,ct=>C(ct),()=>C()),k(()=>{var ct,De;return ot(Je,`top: ${(ct=r(E))!=null?ct:""}px; left: ${(De=r(T))!=null?De:""}px;`)}),b(Ze,Je)};R(it,Ze=>{p()&&Ze(dt)})}b(t,qe),z(),o()}lt(["contextmenu","keydown"]);var tu=class{constructor(e){this.value=e,this.next=null}};var dl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new tu(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 Ib=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),kb={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 vd(t,e){U(e,!0),W(t,kb);let i=f(e,"values",19,()=>[]),o=ee(void 0),n=ee(null),a=16,s=120,d=60,l=s/d;zt(()=>{r(o).width=s,r(o).height=a,B(n,fe(r(o).getContext("2d")))});function u(p,_,w,y,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(_,w,y,C)}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 C=w*l,T=_>0?a*(i()[y]/_):0;u(r(n),C,0,l,T),p=T+" "+p,w--}}});var v=Ib(),$=h(v);mt($,p=>B(o,p),()=>r(o)),g(v),b(t,v),z()}var pf=require("@vkontakte/videoplayer-shared/es2015");var Eb=(t,e)=>{t.stopPropagation(),pf.safeStorage.remove(id),e.set(!1)},Pb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Vb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Db=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>'),Bb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Ob=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Hb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Fb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Ub=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),zb=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>'),qb={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 gd(t,e){U(e,!0),W(t,qb);let[i,o]=Oe(),n=()=>S(d,"$isMobile",i),a=Ce(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=ee(fe(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),v=ee(0),$=ee(0),p=ee(0),_=new dl(60),w=new dl(60),y=new dl(60),C=ee(fe([])),T=ee(fe([])),E=ee(fe([])),P=F("aria_label_debug_panel");zt(()=>{pf.safeStorage.set(id,"true"),a.actions.internal.startLogging(),u&&(B($,fe(u.getVideoPlaybackQuality().droppedVideoFrames)),B(v,fe(u.getVideoPlaybackQuality().totalVideoFrames)));let j=window.setInterval(()=>{B(l,fe(a.actions.internal.getDebugPanelData()))},500),Ie;return u&&(Ie=window.setInterval(()=>{if(u){B($,fe(u.getVideoPlaybackQuality().droppedVideoFrames));let ae=u.getVideoPlaybackQuality().totalVideoFrames;B(p,ae-r(v)),B(v,fe(ae)),_.push(r(p)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),B(C,fe(_.getValuesFromBottom())),B(T,fe(w.getValuesFromBottom())),B(E,fe(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(j),Ie&&clearInterval(Ie)}});var A=zb();let I;Fe(A,"aria-label",P);var V=h(A);V.__click=[Eb,s];var H=M(V,2),Y=h(H),O=M(h(Y),2),J=h(O,!0);g(O),g(Y);var re=M(Y,2);{var Z=j=>{var Ie=Pb(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(()=>he(He,r(l).id)),b(j,Ie)};R(re,j=>{r(l).id&&j(Z)})}var me=M(re,2);{var de=j=>{var Ie=Ab(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(()=>he(He,r(l).vsid)),b(j,Ie)};R(me,j=>{r(l).vsid&&j(de)})}var Le=M(me,2);{var Me=j=>{var Ie=Mb(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(()=>he(He,r(l).provider)),b(j,Ie)};R(Le,j=>{r(l).provider&&j(Me)})}var ve=M(Le,2);{var le=j=>{var Ie=Lb(),ae=M(h(Ie),2),He=h(ae);g(ae),g(Ie),k(()=>{var qe,it;return he(He,`Video: ${r(l).videoCodec||""} ${(qe=r(l).hdr?"(HDR)":"")!=null?qe:""}
141
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function ud(t,e){K(t,fb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var a=pb();let s;var d=h(a);{var l=p=>{var $=db();y(p,$)};R(d,p=>{i()&&p(l)})}var u=M(d,2);{var f=p=>{var $=cb(),x=h($);cd(x,{isActive:!0}),g($),y(p,$)},b=p=>{var $=ub(),x=h($,!0);g($),E(()=>ge(x,e.time)),y(p,$)};R(u,p=>{o()?p(f):p(b,!1)})}g(a),E(p=>s=ee(a,1,"wrapper svelte-1s15d2i",null,s,p),[()=>({live:o(),playing:n()})]),y(t,a)}var mb=L('<div role="timer" data-testid="thumb-timer"><!></div>'),vb={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
142
+ opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function pd(t,e){U(e,!0),K(t,vb);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),a=v(()=>sn(e.duration-e.position));var s=mb();let d;var l=h(s);ud(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),E(u=>d=ee(s,1,"thumb-timer svelte-1b40w20",null,d,u),[()=>({hidden:i()})]),y(t,s),z()}var ll=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var r1=require("@vkontakte/videoplayer-core/es2015");var df=require("@vkontakte/videoplayer-core/es2015");var or=t=>{t.stopPropagation(),t.preventDefault()},hb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},_b=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},bb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},$b=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Zh=t=>t.code==="Escape",yb=t=>t.code==="ArrowLeft",fd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Xh=t=>{if(bb(t)){or(t),_b(t.target);return}$b(t)&&(or(t),hb(t.target))},ws=t=>!df.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||df.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",dl=(t,e,i)=>St(void 0,null,function*(){yield wo(),t&&!t.classList.contains("opened")&&!e&&Te(i)&&(yield wo(),i.set(!1),t.focus())}),Jh=(t,e,i)=>St(void 0,null,function*(){yield wo(),t&&!e&&Te(i)&&(i.set(!1),t.focus())}),cl=(t,e,i)=>St(void 0,null,function*(){var n;yield wo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),e1=(t,e)=>St(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Jc=(t,e)=>{Xh(t),Zh(t)&&(or(t),e())},eu=(t,e)=>St(void 0,null,function*(){fd(t,["ArrowRight"])&&(or(t),e())}),t1=(t,e,i)=>St(void 0,null,function*(){if(Xh(t),yb(t)){or(t),e();return}Zh(t)&&(or(t),i())}),ul=(t,e)=>{fd(t)&&(or(t),e())},i1=(t,e,i)=>{if(fd(t))or(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),or(t);return}o==="ArrowRight"&&!e&&(i(!0),or(t))}},o1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},n1=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}};var da=require("@vkontakte/videoplayer-shared/es2015");var Cr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var cf=require("@vkontakte/videoplayer-shared/es2015");var wb=(t,e)=>{ul(t,()=>e())},Sb=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Cb={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 uf(t,e){U(e,!0),K(t,Cb);let i=m(e,"onClick",3,cf.noop),o=m(e,"closeContextMenu",3,cf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=Sb();a.__click=n,a.__keydown=[wb,n];var s=h(a,!0);g(a),E(()=>{var d;De(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(a,"data-testid",e.id),ge(s,e.label)}),y(t,a),z()}lt(["click","keydown"]);var la=(t,e)=>t.weight-e.weight;var pl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(pl||{});var Tb=(t,e)=>{Jc(t,e)},Ib=t=>{t.preventDefault()},kb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Eb={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 pf(t,e){U(e,!0),K(t,Eb);let[i,o]=Ne(),n=()=>S(X,"$isLive$",i),a=()=>S(Me,"$isPiPEnabled$",i),s=()=>S(re,"$chromecastState$",i),d=()=>S(_e,"$pictureInPictureApiIsActive$",i),l=()=>S(Ve,"$isLooped$",i),u=()=>S(ce,"$positionExact$",i),f=()=>S(q,"$debugPanelVisible",i),b=()=>S(G,"$additionalContextMenuItems$",i),p=m(e,"visible",3,!1),$=m(e,"position",19,()=>({top:0,left:0})),x=m(e,"playerContainerRef",3,void 0),_=m(e,"controlsContainerRef",3,void 0),C=m(e,"menuElementRef",15,void 0),T=J(0),k=J(0),P=Ie(),{pictureInPicture$:A}=ho(),I=Gt(),V=P.ui.contextMenu.visible$,q=P.ui.debugPanelVisible,G=P.ui.additionalContextMenuItems$,H=P.ui.t,Z=P.actions.internal.togglePictureInPicture,re=P.state.chromecastState$,X=P.state.isLive$,ce=P.state.positionExact$,ue=P.state.isInteractive,Ve=P.state.looped$,{isEnabled$:Me,isActive$:_e}=A,ae=v(()=>{var Xe;return I.features.copyVideoLink&&((Xe=P.callbacks)==null?void 0:Xe.onCopyVideoLink)}),Le=v(()=>r(ae)&&!n()&&!ue),ne=v(()=>{var Xe;return!!((Xe=P.callbacks)!=null&&Xe.onCopyEmbedCodeClicked)}),B=v(()=>a()&&s()!==r1.ChromecastState.CONNECTED&&!ue),$e=v(()=>I.features.videoRotate&&!ue),de=v(()=>I.showSupport&&!d()),Qe=v(()=>I.features.saveTraceInfoToFile),te=()=>{var Xe;V.set(!1),(Xe=e.returnFocus)==null||Xe.call(e)},ve=(Xe,it)=>{if(!C()||!x()||!_())return;let ot=C().getBoundingClientRect(),Ke=x().getBoundingClientRect();D(T,Xe-Ke.left),D(k,it-Ke.top),r(T)+ot.width>Ke.width&&D(T,Ke.width-ot.width),r(k)+ot.height>Ke.height&&D(k,Ke.height-ot.height),D(T,me(Math.max(r(T),0))),D(k,me(Math.max(r(k),0)))};Fe(()=>{St(this,null,function*(){if(C()&&x()&&_()){yield wo();let{top:it,left:ot,bottom:Ke,right:_t}=$(),qt=ot!=null?ot:0,et=it!=null?it:0,Xt=C().getBoundingClientRect();(0,da.isNullable)(ot)&&!(0,da.isNullable)(_t)&&(qt=_t-Xt.width),(0,da.isNullable)(it)&&!(0,da.isNullable)(Ke)&&(et=Ke-Xt.height),qt=Math.max(qt,0),et=Math.max(et,0),ve(qt,et)}})});let Y=()=>{P.actions.internal.videoRotate()},ie=()=>{(0,da.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},He=()=>{let Xe=P.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let it=new Blob([...Xe],{type:"plain/text"}),ot=window.URL.createObjectURL(it);ia(ot,"vk_player_debug_info","txt")}else ll(P.actions.internal.getDebugTextData())},Ye=()=>{let Xe=P.actions.internal.getTraceTextData(),it=new Blob([...Xe],{type:"application/json"}),ot=window.URL.createObjectURL(it);ia(ot,"vk_player_trace_info","json")},ye=()=>{q.set(!0)},Se=()=>St(this,null,function*(){var Xe;try{Z()}finally{(Xe=e.returnFocus)==null||Xe.call(e)}}),Re=()=>{P.actions.internal.setLooped(!l())},Ze=()=>{var Xe,it;if(r(ne)){let ot=(it=(Xe=P.callbacks)==null?void 0:Xe.onCopyEmbedCodeClicked)==null?void 0:it.call(Xe);ot&&ll(ot)}},ut=(Xe=!1)=>{var it,ot;if((it=P.callbacks)!=null&&it.onCopyVideoLink){let Ke=(ot=P.callbacks)==null?void 0:ot.onCopyVideoLink(Xe,u());Ke&&ll(Ke)}},pt=v(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),at=v(()=>r(ae)?{id:"copy-link",weight:Cr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>ut()}:void 0),Et=v(()=>r(Le)?{id:"copy-link-timestamp",weight:Cr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>ut(!0)}:void 0),$t=v(()=>r(ne)?{id:"copy-embed-code",weight:Cr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:Ze}:void 0),Jt=v(()=>r(B)?{id:"pip",weight:Cr.pip,label:H("menu_pip"),onClick:Se}:void 0),li=v(()=>({id:"video-loop",weight:Cr["video-loop"],label:l()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Re})),At=v(()=>r($e)?{id:"rotate",weight:Cr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:Y}:void 0),Dt=v(()=>r(de)?{id:"report",weight:Cr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:ie}:void 0),O=v(()=>({id:"save-debug",weight:Cr["save-debug"],label:r(pt),onClick:He})),be=v(()=>r(Qe)?{id:"save-trace",weight:Cr["save-trace"],label:H("menu_save_debug"),onClick:Ye}:void 0),se=v(()=>({id:"debug-info",weight:Cr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:f()?H("aria_label_menu_debug_overlay_disable"):H("aria_label_menu_debug_overlay_enable"),onClick:ye})),Be=v(()=>[r(at),r(Et),r($t),r(Jt),r(li),r(At),r(Dt),r(O),r(be),r(se),...b()].filter(Xe=>!!Xe).sort(la));var We=Oe(),je=fe(We);{var ft=Xe=>{var it=kb();it.__contextmenu=[Ib],it.__keydown=[Tb,te],Pi(it,21,()=>r(Be),ot=>ot.id,(ot,Ke)=>{uf(ot,{get id(){return r(Ke).id},get label(){return r(Ke).label},get ariaLabel(){return r(Ke).ariaLabel},get onClick(){return r(Ke).onClick},closeContextMenu:te})}),g(it),mt(it,ot=>C(ot),()=>C()),E(()=>{var ot,Ke;return st(it,`top: ${(ot=r(k))!=null?ot:""}px; left: ${(Ke=r(T))!=null?Ke:""}px;`)}),y(Xe,it)};R(je,Xe=>{p()&&Xe(ft)})}y(t,We),z(),o()}lt(["contextmenu","keydown"]);var tu=class{constructor(e){this.value=e,this.next=null}};var fl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new tu(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 Pb=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Ab={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 md(t,e){U(e,!0),K(t,Ab);let i=m(e,"values",19,()=>[]),o=J(void 0),n=J(null),a=16,s=120,d=60,l=s/d;Qt(()=>{r(o).width=s,r(o).height=a,D(n,me(r(o).getContext("2d")))});function u(p,$,x,_,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect($,x,_,C)}Fe(()=>{let p="";if(r(n)){let $=i()[0];for(let _=1;_<i().length;_++)i()[_]>$&&($=i()[_]);r(n).clearRect(0,0,s,a);let x=d-1;for(let _=i().length-1;_>=0;_--){let C=x*l,T=$>0?a*(i()[_]/$):0;u(r(n),C,0,l,T),p=T+" "+p,x--}}});var f=Pb(),b=h(f);mt(b,p=>D(o,p),()=>r(o)),g(f),y(t,f),z()}var ff=require("@vkontakte/videoplayer-shared/es2015");var Mb=(t,e)=>{t.stopPropagation(),ff.safeStorage.remove(td),e.set(!1)},Lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Vb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Bb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Db=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>'),Hb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Fb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Ub=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),zb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),qb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Wb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Kb=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>'),Qb={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 vd(t,e){U(e,!0),K(t,Qb);let[i,o]=Ne(),n=()=>S(d,"$isMobile",i),a=Ie(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=J(me(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=J(0),b=J(0),p=J(0),$=new fl(60),x=new fl(60),_=new fl(60),C=J(me([])),T=J(me([])),k=J(me([])),P=F("aria_label_debug_panel");Qt(()=>{ff.safeStorage.set(td,"true"),a.actions.internal.startLogging(),u&&(D(b,me(u.getVideoPlaybackQuality().droppedVideoFrames)),D(f,me(u.getVideoPlaybackQuality().totalVideoFrames)));let O=window.setInterval(()=>{D(l,me(a.actions.internal.getDebugPanelData()))},500),be;return u&&(be=window.setInterval(()=>{if(u){D(b,me(u.getVideoPlaybackQuality().droppedVideoFrames));let se=u.getVideoPlaybackQuality().totalVideoFrames;D(p,se-r(f)),D(f,me(se)),$.push(r(p)),r(l).speed&&x.push(r(l).speed),r(l).bitrate&&_.push(r(l).bitrate),D(C,me($.getValuesFromBottom())),D(T,me(x.getValuesFromBottom())),D(k,me(_.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(O),be&&clearInterval(be)}});var A=Kb();let I;De(A,"aria-label",P);var V=h(A);V.__click=[Mb,s];var q=M(V,2),G=h(q),H=M(h(G),2),Z=h(H,!0);g(H),g(G);var re=M(G,2);{var X=O=>{var be=Lb(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(()=>ge(Be,r(l).id)),y(O,be)};R(re,O=>{r(l).id&&O(X)})}var ce=M(re,2);{var ue=O=>{var be=Vb(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(()=>ge(Be,r(l).vsid)),y(O,be)};R(ce,O=>{r(l).vsid&&O(ue)})}var Ve=M(ce,2);{var Me=O=>{var be=Rb(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(()=>ge(Be,r(l).provider)),y(O,be)};R(Ve,O=>{r(l).provider&&O(Me)})}var _e=M(Ve,2);{var ae=O=>{var be=Nb(),se=M(h(be),2),Be=h(se);g(se),g(be),E(()=>{var We,je;return ge(Be,`Video: ${r(l).videoCodec||""} ${(We=r(l).hdr?"(HDR)":"")!=null?We:""}
143
143
  &
144
- Audio: ${r(l).audioCodec||""} ${(it=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?it:""}`)}),b(j,Ie)};R(ve,j=>{(r(l).videoCodec||r(l).audioCodec)&&j(le)})}var Ae=M(ve,2);{var se=j=>{var Ie=Vb(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(()=>he(He,r(l).viewport)),b(j,Ie)};R(Ae,j=>{r(l).viewport&&j(se)})}var N=M(Ae,2);{var Re=j=>{var Ie=Rb(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(()=>he(He,r(l).videoSize)),b(j,Ie)};R(N,j=>{r(l).videoSize&&j(Re)})}var ie=M(N,2);{var je=j=>{var Ie=Db(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(()=>he(He,r(l).cdn)),b(j,Ie)};R(ie,j=>{r(l).cdn&&j(je)})}var oe=M(ie,2);{var G=j=>{var Ie=Nb(),ae=M(h(Ie),2),He=h(ae);g(ae),g(Ie),k(()=>{var qe;return he(He,`${(qe=r(l).volume)!=null?qe:""} %`)}),b(j,Ie)};R(oe,j=>{r(l).volume&&j(G)})}var K=M(oe,2);{var Ve=j=>{var Ie=Bb(),ae=M(h(Ie),2),He=h(ae);g(ae),g(Ie),k(qe=>he(He,`${qe!=null?qe:""} s`),[()=>r(l).buffer.toFixed(2)]),b(j,Ie)};R(K,j=>{r(l).buffer&&j(Ve)})}var Ne=M(K,2);{var et=j=>{var Ie=Ob(),ae=M(h(Ie),2),He=h(ae);g(ae),g(Ie),k(qe=>he(He,`${qe!=null?qe:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(j,Ie)};R(Ne,j=>{r(l).liveLatency&&j(et)})}var xe=M(Ne,2);{var we=j=>{var Ie=Hb(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(qe=>he(He,qe),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:qe})=>qe).map(({value:qe,title:it})=>`${it} ${((qe!=null?qe:0)/1e3).toFixed(2)} s`).join(" & ")]),b(j,Ie)};R(xe,j=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&j(we)})}var Be=M(xe,2),Xe=M(h(Be),2),nt=h(Xe);g(Xe),g(Be);var ht=M(Be,2);{var tt=j=>{var Ie=Fb(),ae=M(h(Ie),2);vd(ae,{get values(){return r(T)}});var He=M(ae,2),qe=h(He);g(He),g(Ie),k(it=>he(qe,`${it!=null?it:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(j,Ie)};R(ht,j=>{r(l).speed&&j(tt)})}var vt=M(ht,2);{var Pt=j=>{var Ie=Ub(),ae=M(h(Ie),2);vd(ae,{get values(){return r(E)}});var He=M(ae,2),qe=h(He);g(He),g(Ie),k(it=>he(qe,`${it!=null?it:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(j,Ie)};R(vt,j=>{r(l).bitrate&&j(Pt)})}var Yt=M(vt,2),Wt=M(h(Yt),2);vd(Wt,{get values(){return r(C)}});var Gt=M(Wt,2),ge=h(Gt,!0);g(Gt),g(Yt),g(H),g(A),k(j=>{var Ie,ae;I=te(A,1,"container svelte-4deykz",null,I,j),he(J,r(l).version),he(nt,`${(Ie=r($))!=null?Ie:""} / ${(ae=r(v))!=null?ae:""} frames`),he(ge,r(p))},[()=>({"container-mobile":n()})]),b(t,A),z(),o()}lt(["click"]);var r1=require("@vkontakte/videoplayer-shared/es2015"),Wb=(t,e)=>{t.stopPropagation(),e()()},Kb=L('<div class="close svelte-1ome55p"></div>'),Qb={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 ca(t,e){U(e,!0),W(t,Qb);let i=f(e,"onClick",3,r1.noop);var o=Kb();o.__click=[Wb,i],b(t,o),z()}lt(["click"]);var s1=require("@vkontakte/videoplayer-shared/es2015"),Gb=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>'),jb={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 hd(t,e){U(e,!0),W(t,jb);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,s1.noop),n=5e3,a=ee(void 0),s,d,l=ee(0),u;ze(()=>{i()&&(d=Date.now(),B(l,fe(requestAnimationFrame($))))});let v=()=>{r(l)&&(cancelAnimationFrame(r(l)),B(l,0))},$=()=>{if(!i()){v();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(),B(l,fe(requestAnimationFrame($)))):o()()};zt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{v()}}),In(()=>{v()});var p=Gb(),_=h(p);mt(_,w=>B(a,w),()=>r(a)),be(2),g(p),b(t,p),z()}var Yb=(t,e,i)=>{e(!1),i()},Zb=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 ff(t,e){U(e,!0),W(t,Xb);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,v=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(),_()};zt(()=>{e.isHide||v(),e.isHide&&n()&&(u(!1),p())});var C=Ue(),T=pe(C);{var E=P=>{var A=Zb(),I=M(pe(A),2),V=h(I),H=h(V),Y=h(H,!0);g(H);var O=M(H,2);ca(O,{onClick:y}),g(V);var J=M(V,2);J.__click=[Yb,u,$];var re=h(J),Z=h(re),me=h(Z);let de;var Le=M(me,2);{var Me=se=>{let N=m(()=>a()&&n());hd(se,{get isRunning(){return r(N)},onTimerEnded:w})};R(Le,se=>{n()&&se(Me)})}g(Z),g(re);var ve=M(re,2),le=h(ve),Ae=h(le,!0);g(le),g(ve),g(J),g(I),k((se,N)=>{he(Y,se),ot(Z,`background-image: url('${e.thumb}')`),de=te(me,1,"thumb-overlay svelte-jfbaax",null,de,N),he(Ae,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,A)};R(T,P=>{e.isHide||P(E)})}b(t,C),z(),o()}lt(["click"]);var Ss=require("@vkontakte/videoplayer-core/es2015"),a1=require("@vkontakte/videoplayer-shared/es2015"),vn=require("@vkontakte/videoplayer-statistics/es2015");var mf=(t,e)=>Math.min(+(t+e).toFixed(2),1),vf=(t,e)=>Math.max(+(t-e).toFixed(2),0),iu=(t,e,i)=>{let o=mf(e,i);e<1&&t.actions.internal.setVolume(o)},ou=(t,e,i)=>{let o=vf(e,i);e>0&&t.actions.internal.setVolume(o)};var ws=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var e$=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),t$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function gf(t,e){var Wt,Gt;U(e,!0),W(t,t$);let[i,o]=Oe(),n=()=>S(Y,"$playbackState$",i),a=()=>S(O,"$adPlaybackState",i),s=()=>S(me,"$disabledControls$",i),d=()=>S(J,"$positionExact$",i),l=()=>S(re,"$duration$",i),u=()=>S(G,"$isAudioAvailable$",i),v=()=>S(Z,"$volume$",i),$=()=>S(ve,"$availablePlaybackRates$",i),p=()=>S(Me,"$currentPlaybackRate$",i),_=()=>S(Ve,"$isInteractiveTime$",i),w=()=>S(Ne,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(Re,"$isEnded$",i),C=()=>S(de,"$muted$",i),T=()=>S(Le,"$currentSubtitle$",i),E=()=>S(ie,"$overlayContainer$",i),P=f(e,"nextButtonActive",3,!1),A=f(e,"prevButtonActive",3,!1),I=Ce(),V=qt(),H=I.getLogger().createComponentLog("KeyboardControls component"),Y=I.state.playbackState$,O=I.ads.playbackState,J=I.state.positionExact$,re=I.state.duration$,Z=I.state.volume$,me=I.ui.controls.disabledControls$,de=I.state.muted$,Le=I.state.currentSubtitle$,Me=I.state.currentPlaybackRate$,ve=I.state.availablePlaybackRates$,le=I.ui.contextMenu.openedByHotKey$,Ae=I.ui.contextMenu.lastActiveElem$,se=I.ui.contextMenu.visible$,N=I.ui.contextMenu.position$,Re=I.state.isEnded$,ie=I.ui.overlayContainer$,je=(Wt=I.callbacks)==null?void 0:Wt.onAudioDoesNotExistHint,oe=(Gt=I.callbacks)==null?void 0:Gt.onAudioDisabledHint,G=I.state.isAudioAvailable$,K=I.state.isAudioDisabled,Ve=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ne}=_o(),et=0,xe=!0,we=ee(void 0),Be=()=>{var ge;return(ge=r(we))==null?void 0:ge.focus()},Xe=ge=>(ge!==xe&&(xe=ge,et=0),et+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*et)/1e3),nt=ge=>{var De,yt;let j=ge.target,Ie=(De=j==null?void 0:j.getAttribute("role"))==null?void 0:De.includes("menuitem"),ae=j.classList.contains("btn"),He=ge.code;if(ae&&He==="Space")return;let qe=ph.has(He);if(Ie&&qe)return;let it=!uh.has(He);if(ge.ctrlKey&&it||ge.altKey&&it||ge.metaKey)return;let dt=Ie&&He==="Escape";fh.has(He)||dt||e.hideContextMenu();let Ze=n()===Ss.PlaybackState.PLAYING||n()===Ss.PlaybackState.PAUSED,Je=e.isAds&&(a()==="paused"||a()==="playing"),ct=!Je&&!s().has("TIMELINE");if(Ze||Je)switch(H({message:`key down, code: ${He}`}),He){case"KeyJ":case"ArrowLeft":{if(!ct)break;if(ge.ctrlKey||ge.altKey){let We=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(We),We&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:We.text}),ge.preventDefault()}else{let We=ge.shiftKey?Xe(!1):V.controls.seekStepKeyboard/1e3,At=Math.max(d()-We,0);d()>0&&(I.actions.internal.seekTime(At,vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:We.toString()}),ge.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!ct)break;if(ge.ctrlKey||ge.altKey){let We=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(We),We&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:We.text}),ge.preventDefault()}else{let We=ge.shiftKey?Xe(!0):V.controls.seekStepKeyboard/1e3,At=Math.min(d()+We,l());Math.round(d())<Math.round(l())&&(I.actions.internal.seekTime(At,vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:We.toString()}),ge.preventDefault())}break}case"ArrowUp":{if(ws({isAudioDisabled:K,audioDisabledHintCallback:oe,isAudioAvailable:u(),audioIsNotExistHintCallback:je})){let We=v(),At=V.controls.volumeStepKeyboard,ai=We<=1;if(iu(I,We,At),ai){let ei=Math.round(mf(We,At)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ei}})}}ge.preventDefault();break}case"ArrowDown":{if(ws({isAudioDisabled:K,audioDisabledHintCallback:oe,isAudioAvailable:u(),audioIsNotExistHintCallback:je})){let We=v(),At=V.controls.volumeStepKeyboard,ai=We>=0;if(ou(I,We,At),ai){let ei=Math.round(vf(We,At)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ei}})}}ge.preventDefault();break}case"Comma":{if(ge.shiftKey){I.actions.internal.decrementPlaybackRate();let We=$().find(At=>At.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:We==null?void 0:We.displayValue}),ge.preventDefault()}else{if(Je||n()!==Ss.PlaybackState.PAUSED)break;let We=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(We,vn.SeekAction.DOUBLE_TAP),ge.preventDefault())}break}case"Period":{if(ge.shiftKey){I.actions.internal.incrementPlaybackRate();let We=$().find(At=>At.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:We==null?void 0:We.displayValue}),ge.preventDefault()}else{if(Je||n()!==Ss.PlaybackState.PAUSED)break;let We=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(We,vn.SeekAction.DOUBLE_TAP),ge.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if(_()&&w()&&Ne.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let We="PLAY";n()===Ss.PlaybackState.PAUSED?We="PAUSE":y()&&(We="REPLAY"),e.showHotKeyHelpers({type:We})}ge.preventDefault();break;case"KeyM":{ws({isAudioDisabled:K,audioDisabledHintCallback:oe,isAudioAvailable:u(),audioIsNotExistHintCallback:je})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),ge.preventDefault();break}case"KeyF":e.toggleFullscreen(),ge.preventDefault();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(yt=T())==null?void 0:yt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ge.preventDefault();break;case"KeyI":I.actions.internal.togglePictureInPicture(),ge.preventDefault();break;case"Digit1":case"Numpad1":if(ge.shiftKey){let We=o1(E());N.set(We),Ae.set(j),le.set(!0),se.set(!0),ge.preventDefault();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,vn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,vn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,vn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,vn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,vn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,vn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,vn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,vn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,vn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,vn.SeekAction.DOUBLE_TAP),ge.preventDefault();break;case"Slash":{ge.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),ge.preventDefault());break}case"KeyN":ge.shiftKey&&P()&&I.actions.internal.nextVideoClick();break;case"KeyP":ge.shiftKey&&A()&&I.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":ge.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,a1.checkNever)(He);break}},ht=ge=>{let j=ge.code;if(ge.ctrlKey||ge.altKey||ge.metaKey)return;let Ie=n()===Ss.PlaybackState.PLAYING||n()===Ss.PlaybackState.PAUSED,ae=e.isAds&&(a()==="paused"||a()==="playing");if(Ie||ae)switch(j){case"ShiftLeft":case"ShiftRight":et=0;break}},tt=F("aria_label_video_player");var vt=e$();vt.__keyup=ht,vt.__keydown=nt,Fe(vt,"aria-label",tt);var Pt=h(vt);_e(Pt,()=>{var ge;return(ge=e.children)!=null?ge:ne}),g(vt),mt(vt,ge=>B(we,ge),()=>r(we)),b(t,vt);var Yt=z({focus:Be});return o(),Yt}lt(["keyup","keydown"]);var i$=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>'),o$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
144
+ Audio: ${r(l).audioCodec||""} ${(je=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?je:""}`)}),y(O,be)};R(_e,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(ae)})}var Le=M(_e,2);{var ne=O=>{var be=Bb(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(()=>ge(Be,r(l).viewport)),y(O,be)};R(Le,O=>{r(l).viewport&&O(ne)})}var B=M(Le,2);{var $e=O=>{var be=Db(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(()=>ge(Be,r(l).videoSize)),y(O,be)};R(B,O=>{r(l).videoSize&&O($e)})}var de=M(B,2);{var Qe=O=>{var be=Ob(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(()=>ge(Be,r(l).cdn)),y(O,be)};R(de,O=>{r(l).cdn&&O(Qe)})}var te=M(de,2);{var ve=O=>{var be=Hb(),se=M(h(be),2),Be=h(se);g(se),g(be),E(()=>{var We;return ge(Be,`${(We=r(l).volume)!=null?We:""} %`)}),y(O,be)};R(te,O=>{r(l).volume&&O(ve)})}var Y=M(te,2);{var ie=O=>{var be=Fb(),se=M(h(be),2),Be=h(se);g(se),g(be),E(We=>ge(Be,`${We!=null?We:""} s`),[()=>r(l).buffer.toFixed(2)]),y(O,be)};R(Y,O=>{r(l).buffer&&O(ie)})}var He=M(Y,2);{var Ye=O=>{var be=Ub(),se=M(h(be),2),Be=h(se);g(se),g(be),E(We=>ge(Be,`${We!=null?We:""} s`),[()=>r(l).liveLatency.toFixed(2)]),y(O,be)};R(He,O=>{r(l).liveLatency&&O(Ye)})}var ye=M(He,2);{var Se=O=>{var be=zb(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(We=>ge(Be,We),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:We})=>We).map(({value:We,title:je})=>`${je} ${((We!=null?We:0)/1e3).toFixed(2)} s`).join(" & ")]),y(O,be)};R(ye,O=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&O(Se)})}var Re=M(ye,2),Ze=M(h(Re),2),ut=h(Ze);g(Ze),g(Re);var pt=M(Re,2);{var at=O=>{var be=qb(),se=M(h(be),2);md(se,{get values(){return r(T)}});var Be=M(se,2),We=h(Be);g(Be),g(be),E(je=>ge(We,`${je!=null?je:""} Kbps`),[()=>r(l).speed.toFixed(2)]),y(O,be)};R(pt,O=>{r(l).speed&&O(at)})}var Et=M(pt,2);{var $t=O=>{var be=Wb(),se=M(h(be),2);md(se,{get values(){return r(k)}});var Be=M(se,2),We=h(Be);g(Be),g(be),E(je=>ge(We,`${je!=null?je:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),y(O,be)};R(Et,O=>{r(l).bitrate&&O($t)})}var Jt=M(Et,2),li=M(h(Jt),2);md(li,{get values(){return r(C)}});var At=M(li,2),Dt=h(At,!0);g(At),g(Jt),g(q),g(A),E(O=>{var be,se;I=ee(A,1,"container svelte-4deykz",null,I,O),ge(Z,r(l).version),ge(ut,`${(be=r(b))!=null?be:""} / ${(se=r(f))!=null?se:""} frames`),ge(Dt,r(p))},[()=>({"container-mobile":n()})]),y(t,A),z(),o()}lt(["click"]);var s1=require("@vkontakte/videoplayer-shared/es2015"),Gb=(t,e)=>{t.stopPropagation(),e()()},jb=L('<div class="close svelte-1ome55p"></div>'),Yb={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 ca(t,e){U(e,!0),K(t,Yb);let i=m(e,"onClick",3,s1.noop);var o=jb();o.__click=[Gb,i],y(t,o),z()}lt(["click"]);var a1=require("@vkontakte/videoplayer-shared/es2015"),Zb=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>'),Xb={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 gd(t,e){U(e,!0),K(t,Xb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,a1.noop),n=5e3,a=J(void 0),s,d,l=J(0),u;Fe(()=>{i()&&(d=Date.now(),D(l,me(requestAnimationFrame(b))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),D(l,0))},b=()=>{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(),D(l,me(requestAnimationFrame(b)))):o()()};Qt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),xn(()=>{f()});var p=Zb(),$=h(p);mt($,x=>D(a,x),()=>r(a)),xe(2),g(p),y(t,p),z()}var Jb=(t,e,i)=>{e(!1),i()},e$=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),t$={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 mf(t,e){U(e,!0),K(t,t$);let[i,o]=Ne(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ie(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,b=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,x=()=>{n()&&(u(!1),p())},_=()=>{e.clickCloseIcon(),$()};Qt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Oe(),T=fe(C);{var k=P=>{var A=e$(),I=M(fe(A),2),V=h(I),q=h(V),G=h(q,!0);g(q);var H=M(q,2);ca(H,{onClick:_}),g(V);var Z=M(V,2);Z.__click=[Jb,u,b];var re=h(Z),X=h(re),ce=h(X);let ue;var Ve=M(ce,2);{var Me=ne=>{let B=v(()=>a()&&n());gd(ne,{get isRunning(){return r(B)},onTimerEnded:x})};R(Ve,ne=>{n()&&ne(Me)})}g(X),g(re);var _e=M(re,2),ae=h(_e),Le=h(ae,!0);g(ae),g(_e),g(Z),g(I),E((ne,B)=>{ge(G,ne),st(X,`background-image: url('${e.thumb}')`),ue=ee(ce,1,"thumb-overlay svelte-jfbaax",null,ue,B),ge(Le,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),y(P,A)};R(T,P=>{e.isHide||P(k)})}y(t,C),z(),o()}lt(["click"]);var Cs=require("@vkontakte/videoplayer-core/es2015"),l1=require("@vkontakte/videoplayer-shared/es2015"),an=require("@vkontakte/videoplayer-statistics/es2015");var vf=(t,e)=>Math.min(+(t+e).toFixed(2),1),gf=(t,e)=>Math.max(+(t-e).toFixed(2),0),iu=(t,e,i)=>{let o=vf(e,i);e<1&&t.actions.internal.setVolume(o)},ou=(t,e,i)=>{let o=gf(e,i);e>0&&t.actions.internal.setVolume(o)};var Ss=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var o$=(t,e)=>{e(t)},n$=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),r$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function hf(t,e){var At,Dt;U(e,!0),K(t,r$);let[i,o]=Ne(),n=()=>S(G,"$playbackState$",i),a=()=>S(H,"$adPlaybackState",i),s=()=>S(ce,"$disabledControls$",i),d=()=>S(Z,"$positionExact$",i),l=()=>S(re,"$duration$",i),u=()=>S(ve,"$isAudioAvailable$",i),f=()=>S(X,"$volume$",i),b=()=>S(_e,"$availablePlaybackRates$",i),p=()=>S(Me,"$currentPlaybackRate$",i),$=()=>S(ie,"$isInteractiveTime$",i),x=()=>S(He,"$showInteractiveTimeIndicatorTooltip$",i),_=()=>S($e,"$isEnded$",i),C=()=>S(ue,"$muted$",i),T=()=>S(Ve,"$currentSubtitle$",i),k=()=>S(de,"$overlayContainer$",i),P=m(e,"nextButtonActive",3,!1),A=m(e,"prevButtonActive",3,!1),I=Ie(),V=Gt(),q=I.getLogger().createComponentLog("KeyboardControls component"),G=I.state.playbackState$,H=I.ads.playbackState,Z=I.state.positionExact$,re=I.state.duration$,X=I.state.volume$,ce=I.ui.controls.disabledControls$,ue=I.state.muted$,Ve=I.state.currentSubtitle$,Me=I.state.currentPlaybackRate$,_e=I.state.availablePlaybackRates$,ae=I.ui.contextMenu.openedByHotKey$,Le=I.ui.contextMenu.lastActiveElem$,ne=I.ui.contextMenu.visible$,B=I.ui.contextMenu.position$,$e=I.state.isEnded$,de=I.ui.overlayContainer$,Qe=(At=I.callbacks)==null?void 0:At.onAudioDoesNotExistHint,te=(Dt=I.callbacks)==null?void 0:Dt.onAudioDisabledHint,ve=I.state.isAudioAvailable$,Y=I.state.isAudioDisabled,ie=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:He}=ho(),Ye=0,ye=!0,Se=J(void 0),Re=O=>(O!==ye&&(ye=O,Ye=0),Ye+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*Ye)/1e3),Ze=(O,be=!1)=>{var Xt,ni;let se=O.target,Be=(Xt=se==null?void 0:se.getAttribute("role"))==null?void 0:Xt.includes("menuitem"),We=se.classList.contains("btn"),je=O.code;if(We&&je==="Space")return!1;let ft=fh.has(je);if(Be&&ft)return!1;let Xe=!ph.has(je);if(O.ctrlKey&&Xe||O.altKey&&Xe||O.metaKey)return!1;let it=Be&&je==="Escape";mh.has(je)||it||e.hideContextMenu();let ot=n()===Cs.PlaybackState.PLAYING||n()===Cs.PlaybackState.PAUSED,Ke=e.isAds&&(a()==="paused"||a()==="playing"),_t=!Ke&&!s().has("TIMELINE");if(!(ot||Ke))return!1;q({message:`key down, code: ${je}, isExternal = ${be}`});let qt=!1,et=()=>{qt=!0,be||O.preventDefault()};switch(je){case"KeyJ":case"ArrowLeft":{if(!_t)break;if(O.ctrlKey||O.altKey){let tt=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(tt),tt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:tt.text}),et()}else{let tt=O.shiftKey?Re(!1):V.controls.seekStepKeyboard/1e3,ei=Math.max(d()-tt,0);d()>0&&(I.actions.internal.seekTime(ei,an.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:tt.toString()}),et())}break}case"KeyL":case"ArrowRight":{if(!_t)break;if(O.ctrlKey||O.altKey){let tt=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(tt),tt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:tt.text}),et()}else{let tt=O.shiftKey?Re(!0):V.controls.seekStepKeyboard/1e3,ei=Math.min(d()+tt,l());Math.round(d())<Math.round(l())&&(I.actions.internal.seekTime(ei,an.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:tt.toString()}),et())}break}case"ArrowUp":{if(Ss({isAudioDisabled:Y,audioDisabledHintCallback:te,isAudioAvailable:u(),audioIsNotExistHintCallback:Qe})){let tt=f(),ei=V.controls.volumeStepKeyboard,Hi=tt<=1;if(iu(I,tt,ei),Hi){let Ki=Math.round(vf(tt,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ki}})}}et();break}case"ArrowDown":{if(Ss({isAudioDisabled:Y,audioDisabledHintCallback:te,isAudioAvailable:u(),audioIsNotExistHintCallback:Qe})){let tt=f(),ei=V.controls.volumeStepKeyboard,Hi=tt>=0;if(ou(I,tt,ei),Hi){let Ki=Math.round(gf(tt,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ki}})}}et();break}case"Comma":{if(O.shiftKey){I.actions.internal.decrementPlaybackRate();let tt=b().find(ei=>ei.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:tt==null?void 0:tt.displayValue}),et()}else{if(Ke||n()!==Cs.PlaybackState.PAUSED)break;let tt=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(tt,an.SeekAction.DOUBLE_TAP),et())}break}case"Period":{if(O.shiftKey){I.actions.internal.incrementPlaybackRate();let tt=b().find(ei=>ei.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:tt==null?void 0:tt.displayValue}),et()}else{if(Ke||n()!==Cs.PlaybackState.PAUSED)break;let tt=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(tt,an.SeekAction.DOUBLE_TAP),et())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&x()&&He.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let tt="PLAY";n()===Cs.PlaybackState.PAUSED?tt="PAUSE":_()&&(tt="REPLAY"),e.showHotKeyHelpers({type:tt})}et();break;case"KeyM":{Ss({isAudioDisabled:Y,audioDisabledHintCallback:te,isAudioAvailable:u(),audioIsNotExistHintCallback:Qe})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),et();break}case"KeyF":e.toggleFullscreen(),et();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ni=T())==null?void 0:ni.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),et();break;case"KeyI":I.actions.internal.togglePictureInPicture(),et();break;case"Digit1":case"Numpad1":if(O.shiftKey){let tt=n1(k());B.set(tt),Le.set(se),ae.set(!0),ne.set(!0),et();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,an.SeekAction.DOUBLE_TAP),et();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,an.SeekAction.DOUBLE_TAP),et();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,an.SeekAction.DOUBLE_TAP),et();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,an.SeekAction.DOUBLE_TAP),et();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,an.SeekAction.DOUBLE_TAP),et();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,an.SeekAction.DOUBLE_TAP),et();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,an.SeekAction.DOUBLE_TAP),et();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,an.SeekAction.DOUBLE_TAP),et();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,an.SeekAction.DOUBLE_TAP),et();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,an.SeekAction.DOUBLE_TAP),et();break;case"Slash":{O.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),et());break}case"KeyN":O.shiftKey&&P()&&(I.actions.internal.nextVideoClick(),et());break;case"KeyP":O.shiftKey&&A()&&(I.actions.internal.prevVideoClick(),et());break;case"ShiftLeft":case"ShiftRight":et();break;case"Tab":case"Escape":case"Enter":break;default:(0,l1.checkNever)(je);break}return qt},ut=O=>{let be=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let se=n()===Cs.PlaybackState.PLAYING||n()===Cs.PlaybackState.PAUSED,Be=e.isAds&&(a()==="paused"||a()==="playing");if(se||Be)switch(be){case"ShiftLeft":case"ShiftRight":Ye=0;break}},pt=F("aria_label_video_player"),at=()=>{var O;return(O=r(Se))==null?void 0:O.focus()},Et=O=>O.type==="keydown"?Ze(O,!0):(O.type==="keyup"&&ut(O),!1);var $t=n$();$t.__keyup=ut,$t.__keydown=[o$,Ze],De($t,"aria-label",pt);var Jt=h($t);he(Jt,()=>{var O;return(O=e.children)!=null?O:oe}),g($t),mt($t,O=>D(Se,O),()=>r(Se)),y(t,$t);var li=z({focus:at,handleExternalKeyboardEvent:Et});return o(),li}lt(["keyup","keydown"]);var s$=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>'),a$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
145
145
 
146
146
  @keyframes svelte-1dbnjb1-dot_animation {
147
147
  0% {
@@ -154,7 +154,7 @@ Try switching the\xA0quality to\xA0Auto.`},Uh=O_;var ns=new Map;ns.set(el.Interf
154
154
  opacity: 0.2;
155
155
  }
156
156
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
157
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ua(t,e){W(t,o$);let i=f(e,"style",3,"");var o=i$();k(()=>ot(o,i())),b(t,o)}var n$=$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 hf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=n$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(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)}var pa=require("@vkontakte/videoplayer-shared/es2015"),r$=t=>{t.stopPropagation()},s$=L("<button><!></button>"),a$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
157
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ua(t,e){K(t,a$);let i=m(e,"style",3,"");var o=s$();E(()=>st(o,i())),y(t,o)}var l$=we('<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 _f(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=l$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(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))),y(t,o)}var pa=require("@vkontakte/videoplayer-shared/es2015"),d$=t=>{t.stopPropagation()},c$=L("<button><!></button>"),u$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
158
158
 
159
159
  /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
160
160
 
@@ -162,22 +162,22 @@ Try switching the\xA0quality to\xA0Auto.`},Uh=O_;var ns=new Map;ns.set(el.Interf
162
162
  /* mobile */
163
163
  /* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
164
164
  .btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
165
- /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Dt(t,e){U(e,!0),W(t,a$);let i=f(e,"className",3,""),o=f(e,"style",3,""),n=f(e,"disabled",3,void 0),a=f(e,"testId",3,void 0),s=f(e,"ariaHidden",3,void 0),d=f(e,"ariaLabel",3,void 0),l=f(e,"ref",15,void 0),u=f(e,"ariaKeyShortCut",3,void 0),v=f(e,"ariaExpanded",3,void 0),$=f(e,"tabIndex",3,0),p=f(e,"click",3,pa.noop),_=f(e,"focus",3,pa.noop),w=f(e,"blur",3,pa.noop),y=m(()=>p()===pa.noop?null:A=>{A.stopPropagation(),p()(A)}),C=m(()=>_()===pa.noop?null:A=>{A.preventDefault(),_()()}),T=m(()=>w()===pa.noop?null:A=>{A.preventDefault(),w()()});var E=s$();E.__pointerdown=[r$],E.__click=function(...A){var I;(I=r(y))==null||I.apply(this,A)};var P=h(E);_e(P,()=>{var A;return(A=e.children)!=null?A:ne}),g(E),mt(E,A=>l(A),()=>l()),k(()=>{var A,I,V,H,Y,O,J;te(E,1,`btn ${(A=i())!=null?A:""}`,"svelte-wr0kwr"),ot(E,o()||null),E.disabled=(I=n())!=null?I:null,Fe(E,"aria-hidden",(V=s())!=null?V:null),Fe(E,"aria-label",(H=d())!=null?H:null),Fe(E,"aria-keyshortcuts",(Y=u())!=null?Y:null),Fe(E,"aria-expanded",(O=v())!=null?O:null),Fe(E,"data-testid",(J=a())!=null?J:null),Fe(E,"tabindex",$())}),Ct("focus",E,function(...A){var I;(I=r(C))==null||I.apply(this,A)}),Ct("blur",E,function(...A){var I;(I=r(T))==null||I.apply(this,A)}),b(t,E),z()}lt(["pointerdown","click"]);var l$=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),d$=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>'),c$={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 _f(t,e){U(e,!0),W(t,c$);let i=f(e,"showHeader",3,!0),o=f(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=d$(),s=h(a),d=h(s);{var l=p=>{var _=l$(),w=h(_),y=h(w,!0);g(w);var C=M(w,2);{var T=E=>{Dt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,A)=>{hf(P,{})},$$slots:{default:!0}})};R(C,E=>{o()&&E(T)})}g(_),k(()=>he(y,e.title)),b(p,_)};R(d,p=>{i()&&p(l)})}var u=M(d,2),v=h(u),$=h(v);_e($,()=>{var p;return(p=e.children)!=null?p:ne}),g(v),g(u),g(s),g(a),b(t,a),z()}var u$=new Set(["BR"]),l1=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;u$.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var p$=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>'),f$=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>'),m$=L('<div class="hot-key-map svelte-quklnq"></div>'),v$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
165
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Bt(t,e){U(e,!0),K(t,u$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),a=m(e,"testId",3,void 0),s=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),l=m(e,"ref",15,void 0),u=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),b=m(e,"tabIndex",3,0),p=m(e,"click",3,pa.noop),$=m(e,"focus",3,pa.noop),x=m(e,"blur",3,pa.noop),_=v(()=>p()===pa.noop?null:A=>{A.stopPropagation(),p()(A)}),C=v(()=>$()===pa.noop?null:A=>{A.preventDefault(),$()()}),T=v(()=>x()===pa.noop?null:A=>{A.preventDefault(),x()()});var k=c$();k.__pointerdown=[d$],k.__click=function(...A){var I;(I=r(_))==null||I.apply(this,A)};var P=h(k);he(P,()=>{var A;return(A=e.children)!=null?A:oe}),g(k),mt(k,A=>l(A),()=>l()),E(()=>{var A,I,V,q,G,H,Z;ee(k,1,`btn ${(A=i())!=null?A:""}`,"svelte-wr0kwr"),st(k,o()||null),k.disabled=(I=n())!=null?I:null,De(k,"aria-hidden",(V=s())!=null?V:null),De(k,"aria-label",(q=d())!=null?q:null),De(k,"aria-keyshortcuts",(G=u())!=null?G:null),De(k,"aria-expanded",(H=f())!=null?H:null),De(k,"data-testid",(Z=a())!=null?Z:null),De(k,"tabindex",b())}),kt("focus",k,function(...A){var I;(I=r(C))==null||I.apply(this,A)}),kt("blur",k,function(...A){var I;(I=r(T))==null||I.apply(this,A)}),y(t,k),z()}lt(["pointerdown","click"]);var p$=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),f$=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>'),m$={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 bf(t,e){U(e,!0),K(t,m$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=f$(),s=h(a),d=h(s);{var l=p=>{var $=p$(),x=h($),_=h(x,!0);g(x);var C=M(x,2);{var T=k=>{Bt(k,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,A)=>{_f(P,{})},$$slots:{default:!0}})};R(C,k=>{o()&&k(T)})}g($),E(()=>ge(_,e.title)),y(p,$)};R(d,p=>{i()&&p(l)})}var u=M(d,2),f=h(u),b=h(f);he(b,()=>{var p;return(p=e.children)!=null?p:oe}),g(f),g(u),g(s),g(a),y(t,a),z()}var v$=new Set(["BR"]),d1=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;v$.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var g$=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>'),h$=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>'),_$=L('<div class="hot-key-map svelte-quklnq"></div>'),b$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
166
166
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
167
- .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function bf(t,e){U(e,!1),W(t,v$);let[i,o]=Oe(),n=()=>S(s,"$data",i),a=Ce(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};yr(),_f(t,{get title(){return n().title},onClose:l,children:(u,v)=>{var $=m$();Ei($,5,()=>n().groups,({title:p,items:_})=>p,(p,_)=>{let w=()=>r(_).title,y=()=>r(_).items;var C=f$(),T=h(C),E=h(T,!0);g(T);var P=M(T,2);Ei(P,5,y,({description:A,value:I})=>I,(A,I)=>{let V=()=>r(I).description,H=()=>r(I).value;var Y=p$(),O=h(Y),J=h(O);Xl(J,()=>l1(V()),!1,!1),g(O);var re=M(O,2),Z=h(re,!0);g(re),g(Y),k(()=>he(Z,H())),b(A,Y)}),g(P),g(C),k(()=>he(E,w())),b(p,C)}),g($),b(u,$)},$$slots:{default:!0}}),z(),o()}var pm=require("@vkontakte/videoplayer-shared/es2015");var $a=require("@vkontakte/videoplayer-core/es2015");var JL=require("@vkontakte/videoplayer-shared/es2015");var g$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),h$={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 $f(t,e){W(t,h$);var i=g$(),o=h(i);_e(o,()=>{var n;return(n=e.children)!=null?n:ne}),g(i),b(t,i)}var cl=require("@vkontakte/videoplayer-shared/es2015");var _$=$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 yf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=_$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var b$=$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 xf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=b$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var $$=$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 wf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=$$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var y$=$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 _d(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=y$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i))),b(t,o)}var x$=$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 bd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=x$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i))),b(t,o)}var nu=t=>{switch(t){case cl.VideoQuality.Q_720P:return wf;case cl.VideoQuality.Q_1080P:return _d;case cl.VideoQuality.Q_1440P:return bd;case cl.VideoQuality.Q_2160P:return yf;case cl.VideoQuality.Q_4320P:return xf}};var w$=$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 Sf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=w$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 S$=$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 Cf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=S$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(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 C$=L('<div aria-hidden="true"><!> <!></div>'),T$={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 $d(t,e){U(e,!0),W(t,T$);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=m(()=>nu(o())),a=m(()=>!!r(n)&&[_d,bd].includes(r(n)));var s=Ue(),d=pe(s);{var l=v=>{Sf(v,{})},u=v=>{var $=C$();let p;var _=h($);{var w=T=>{$f(T,{children:(E,P)=>{var A=Ue(),I=pe(A);Pi(I,()=>r(n),(V,H)=>{H(V,{})}),b(E,A)},$$slots:{default:!0}})};R(_,T=>{r(n)&&T(w)})}var y=M(_,2);let C=m(()=>r(n)?"settings-icon--labeled":"settings-icon");Cf(y,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g($),k(T=>p=te($,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:r(a)})]),b(v,$)};R(d,v=>{i()?v(l):v(u,!1)})}b(t,s),z()}var I$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),k$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ul(t,e){U(e,!0),W(t,k$);let[i,o]=Oe(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(v,"$settingsMenuVisible",i),s=()=>S(_,"$isMobile",i),d=()=>S(u,"$currentQuality",i),l=Ce(),u=l.state.currentQuality$,v=l.ui.settingsMenu.visible$,$=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,_=l.ui.isMobile,w=l.ui.t,y=ee(void 0);ze(()=>{n()&&wt(()=>{e.ref$.set(r(y))})});let C=m(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));function T(P){return Mt(this,null,function*(){let A=xs(P);a()?p():$(A,To)})}let E=m(()=>a()?"opened":"");Dt(t,{get className(){return r(E)},testId:"btn-settings",click:T,get ariaLabel(){return r(C)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){B(y,fe(P))},children:(P,A)=>{var I=I$(),V=h(I);$d(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(I),b(P,I)},$$slots:{default:!0}}),z(),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 Tf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=E$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 P$=$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 yd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=P$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 If(t,e){U(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),n=Ce().ui.t,a=m(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Dt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return zr.KeyC},children:(s,d)=>{var l=Ue(),u=pe(l);{var v=p=>{Tf(p,{})},$=p=>{yd(p,{})};R(u,p=>{i()?p(v):p($,!1)})}b(s,l)},$$slots:{default:!0}}),z()}var A$=L('<span class="duration svelte-sz9er7"> </span>'),M$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),L$={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 xd(t,e){U(e,!0),W(t,L$);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),n=f(e,"ref",15),a=m(()=>mn(e.duration)),s=m(()=>mn(e.position));var d=M$();let l;var u=h(d),v=h(u,!0);g(u);var $=M(u,2);{var p=_=>{var w=A$(),y=h(w,!0);g(w),k(()=>he(y,r(a))),b(_,w)};R($,_=>{o()&&_(p)})}g(d),mt(d,_=>n(_),()=>n()),k(_=>{l=te(d,1,"time svelte-sz9er7",null,l,_),he(v,r(s))},[()=>({mobile:i()})]),b(t,d),z()}var Sd=require("@vkontakte/videoplayer-shared/es2015");var V$=$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),
167
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function $f(t,e){U(e,!1),K(t,b$);let[i,o]=Ne(),n=()=>S(s,"$data",i),a=Ie(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};wr(),bf(t,{get title(){return n().title},onClose:l,children:(u,f)=>{var b=_$();Pi(b,5,()=>n().groups,({title:p,items:$})=>p,(p,$)=>{let x=()=>r($).title,_=()=>r($).items;var C=h$(),T=h(C),k=h(T,!0);g(T);var P=M(T,2);Pi(P,5,_,({description:A,value:I})=>I,(A,I)=>{let V=()=>r(I).description,q=()=>r(I).value;var G=g$(),H=h(G),Z=h(H);Zl(Z,()=>d1(V()),!1,!1),g(H);var re=M(H,2),X=h(re,!0);g(re),g(G),E(()=>ge(X,q())),y(A,G)}),g(P),g(C),E(()=>ge(k,x())),y(p,C)}),g(b),y(u,b)},$$slots:{default:!0}}),z(),o()}var fm=require("@vkontakte/videoplayer-shared/es2015");var $a=require("@vkontakte/videoplayer-core/es2015");var iV=require("@vkontakte/videoplayer-shared/es2015");var $$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),y$={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 yf(t,e){K(t,y$);var i=$$(),o=h(i);he(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),y(t,i)}var ml=require("@vkontakte/videoplayer-shared/es2015");var x$=we('<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 xf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=x$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),y(t,o)}var w$=we('<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 wf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=w$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),y(t,o)}var S$=we('<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 Sf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=S$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),y(t,o)}var C$=we('<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 hd(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=C$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i))),y(t,o)}var T$=we('<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 _d(t,e){let i=Ae(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}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i))),y(t,o)}var nu=t=>{switch(t){case ml.VideoQuality.Q_720P:return Sf;case ml.VideoQuality.Q_1080P:return hd;case ml.VideoQuality.Q_1440P:return _d;case ml.VideoQuality.Q_2160P:return xf;case ml.VideoQuality.Q_4320P:return wf}};var I$=we('<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 Cf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=I$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var k$=we('<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 Tf(t,e){let i=Ae(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}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i))),y(t,o)}var E$=L('<div aria-hidden="true"><!> <!></div>'),P$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function bd(t,e){U(e,!0),K(t,P$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=v(()=>nu(o())),a=v(()=>!!r(n)&&[hd,_d].includes(r(n)));var s=Oe(),d=fe(s);{var l=f=>{Cf(f,{})},u=f=>{var b=E$();let p;var $=h(b);{var x=T=>{yf(T,{children:(k,P)=>{var A=Oe(),I=fe(A);Ai(I,()=>r(n),(V,q)=>{q(V,{})}),y(k,A)},$$slots:{default:!0}})};R($,T=>{r(n)&&T(x)})}var _=M($,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");Tf(_,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g(b),E(T=>p=ee(b,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:r(a)})]),y(f,b)};R(d,f=>{i()?f(l):f(u,!1)})}y(t,s),z()}var A$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),M$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function vl(t,e){U(e,!0),K(t,M$);let[i,o]=Ne(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(f,"$settingsMenuVisible",i),s=()=>S($,"$isMobile",i),d=()=>S(u,"$currentQuality",i),l=Ie(),u=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,b=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,x=l.ui.t,_=J(void 0);Fe(()=>{n()&&Ct(()=>{e.ref$.set(r(_))})});let C=v(()=>a()?x("tooltip_settings_on"):x("tooltip_settings_off"));function T(P){return St(this,null,function*(){let A=ws(P);a()?p():b(A,wo)})}let k=v(()=>a()?"opened":"");Bt(t,{get className(){return r(k)},testId:"btn-settings",click:T,get ariaLabel(){return r(C)},get ariaExpanded(){return a()},get ref(){return r(_)},set ref(P){D(_,me(P))},children:(P,A)=>{var I=A$(),V=h(I);bd(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(I),y(P,I)},$$slots:{default:!0}}),z(),o()}var L$=we('<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 If(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=L$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var V$=we('<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 $d(t,e){let i=Ae(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}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}function kf(t,e){U(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ie().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Bt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return zr.KeyC},children:(s,d)=>{var l=Oe(),u=fe(l);{var f=p=>{If(p,{})},b=p=>{$d(p,{})};R(u,p=>{i()?p(f):p(b,!1)})}y(s,l)},$$slots:{default:!0}}),z()}var R$=L('<span class="duration svelte-sz9er7"> </span>'),N$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),B$={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 yd(t,e){U(e,!0),K(t,B$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),a=v(()=>sn(e.duration)),s=v(()=>sn(e.position));var d=N$();let l;var u=h(d),f=h(u,!0);g(u);var b=M(u,2);{var p=$=>{var x=R$(),_=h(x,!0);g(x),E(()=>ge(_,r(a))),y($,x)};R(b,$=>{o()&&$(p)})}g(d),mt(d,$=>n($),()=>n()),E($=>{l=ee(d,1,"time svelte-sz9er7",null,l,$),ge(f,r(s))},[()=>({mobile:i()})]),y(t,d),z()}var wd=require("@vkontakte/videoplayer-shared/es2015");var D$=we('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),O$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
168
168
  .icon[data-value='off'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:visible;}.icon[data-value='mid'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua),
169
- .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Cs(t,e){W(t,R$);let i=f(e,"volume",3,1),o=f(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=m(()=>n(i(),o()));var s=V$();k(()=>{var d;Fe(s,"data-value",r(a)),Fe(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),b(t,s)}var Oo=require("@vkontakte/videoplayer-shared/es2015");var ru=require("@vkontakte/videoplayer-shared/es2015");var d1=require("@vkontakte/videoplayer-shared/es2015");var D$=L('<div class="overlay"><!></div>');function kf(t,e){U(e,!0);let[i,o]=Oe(),n=()=>S(s,"$overlayContainer$",i),s=Ce().ui.overlayContainer$,d=ee(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())}),zt(()=>(u(n()),()=>l(n())));var v=D$(),$=h(v);_e($,()=>{var p;return(p=e.children)!=null?p:ne}),g(v),mt(v,p=>B(d,p),()=>r(d)),b(t,v),z(),o()}var N$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),B$=L("<div><!></div> <!>",1),O$={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function fa(t,e){U(e,!0),W(t,O$);let[i,o]=Oe(),n=()=>S(J,"$overlayContainer$",i),a=()=>S(O,"$containerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"content",3,""),l=f(e,"active",15,!1),u=f(e,"translateX",3,0),v=f(e,"translateY",3,0),$=f(e,"isFullWidthWrapper",3,!1),p=f(e,"maxTooltipWidth",3,void 0),_=f(e,"placement",3,"top"),w=f(e,"onVisibilityChange",3,d1.noop),y=5,C=ee(void 0),T=ee(void 0),E,P=ee(0),A=ee(0),I=ee(0),V=ee(0),H=qt(),Y=Ce(),O=Y.ui.playerSize,J=Y.ui.overlayContainer$;ze(()=>{wt(()=>{w()(l())})});let re=Y.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!n()||!r(T)||!r(C))return;B(A,y);let xe=n().getBoundingClientRect(),we=r(C).getBoundingClientRect(),Be=we.width,Xe=r(T).clientWidth,nt=a().width,ht=(Be-Xe)/2,tt=we.left+u()-xe.left,vt=tt+ht,Pt=we.top+v()-xe.top,Yt=Xe/2-y,Wt=vt<8,Gt=vt+Xe>nt-8;Wt&&(vt=8,Yt=tt+we.width/2-2.5*y),Gt&&(vt=nt-8-Xe,Yt=we.left-xe.left+we.width/2-vt-y),B(I,fe(vt)),B(V,Pt),B(P,fe(Yt))},me=()=>{!n()||!r(T)||!r(C)||B(A,-y)},de=()=>{if(!n()||!r(T)||!r(C))return;B(P,y);let xe=n().getBoundingClientRect(),we=r(C).getBoundingClientRect(),Be=we.height,Xe=r(T).clientHeight,nt=(Be-Xe)/2+Xe,ht=we.left+u()-xe.left-r(T).clientWidth,tt=2,vt=ht-y;vt<8&&(vt=8);let Yt=we.top+v()-xe.top+nt,Wt=tt-nt/2,Gt=tt-y;B(I,fe(vt)),B(V,Yt),B(A,Wt),B(P,Gt)},Le=()=>{!n()||!r(T)||!r(C)||B(P,-y)},Me=()=>{switch(_()){case"top":Z();break;case"bottom":me();break;case"left":de();break;default:Le()}},ve=()=>{try{if(!n()||!r(C))return;Me(),l(!0)}catch(xe){re({message:String(xe)})}},le=()=>{l(!1)},Ae=()=>{r(T)&&(E||(E=window.setTimeout(ve,H.controls.hideTimeoutTooltips)),l()&&ve())},se=()=>{le(),window.clearTimeout(E),E=void 0},N=(xe,we,Be)=>{let Xe="";switch(_()){case"top":Xe=`transform: translate(${xe}px, ${we}px);`;break;case"bottom":Xe=`transform: translate(${xe}px, ${we}px); top: auto; bottom: 100%;`;break;case"left":Xe=`transform: translate(${xe}px, ${we}px); left: 0; right: auto;`;break;default:Xe=`transform: translate(${xe}px, ${we}px);`}return Xe+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Xe+=` opacity: ${Be?1:0}; visibility: ${Be?"visible":"hidden"}`,Xe},Re=(xe,we)=>{let Be="";switch(_()){case"top":Be=`transform: translate(${xe}px, ${we}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Be=`transform: translate(${xe}px, ${we}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Be=`transform: translate(${xe}px, ${we}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Be=`transform: translate(${xe}px, ${we}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Be},ie=m(()=>N(r(I),r(V),l())),je=m(()=>Re(r(P),r(A)));zt(Me),In(()=>window.clearTimeout(E));var oe=B$(),G=pe(oe);let K;G.__mousemove=Ae,G.__mousedown=se,G.__mouseup=Ae;var Ve=h(G);_e(Ve,()=>{var xe;return(xe=e.children)!=null?xe:ne}),g(G),mt(G,xe=>B(C,xe),()=>r(C));var Ne=M(G,2);{var et=xe=>{kf(xe,{children:(we,Be)=>{var Xe=N$(),nt=h(Xe),ht=h(nt,!0);g(nt);var tt=M(nt,2);g(Xe),mt(Xe,vt=>B(T,vt),()=>r(T)),k(()=>{ot(Xe,r(ie)),he(ht,d()),ot(tt,r(je))}),b(we,Xe)},$$slots:{default:!0}})};R(Ne,xe=>{d()&&!s()&&xe(et)})}k(xe=>K=te(G,1,"tooltip-wrapper svelte-hxlyne",null,K,xe),[()=>({"full-width":$()})]),Ct("mouseenter",G,Ae),Ct("mouseleave",G,se),b(t,oe),z(),o()}lt(["mousemove","mousedown","mouseup"]);var c1=t=>{t.stopPropagation()},H$=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 Bo(t,e){U(e,!0),W(t,F$);let[i,o]=Oe(),n=()=>S(u,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Ce(),d=_o(),l=s.ui.isMobile,u=d.graphIsOpened$,v=s.ui.t,$=f(e,"className",3,""),p=f(e,"disabled",3,!1),_=f(e,"hasTooltip",3,!0),w=f(e,"ref",15,void 0),y=f(e,"width",15,void 0),C=f(e,"isFullWidthTooltip",3,!0),T=f(e,"tooltipContent",3,""),E=f(e,"tooltipActive",3,!1),P=f(e,"tooltipPlacement",3,"top"),A=f(e,"disabledTooltipContent",19,()=>v("tooltip_button_disabled")),I=f(e,"isAriaHidden",3,!1),V=f(e,"onTooltipVisibilityChange",3,ru.noop),H=f(e,"initialTranslateXPx",3,0),Y=f(e,"initialTranslateYPx",19,()=>-18),O=f(e,"mouseEnter",3,ru.noop),J=f(e,"mouseLeave",3,ru.noop),re=m(()=>p()?n()?v("tooltip_disabled_when_graph_on"):A():T());var Z=H$();Z.__pointerdown=[c1],Z.__click=[c1];var me=h(Z);{var de=Me=>{fa(Me,{get content(){return r(re)},get translateX(){return H()},get translateY(){return Y()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return P()},get onVisibilityChange(){return V()},children:(ve,le)=>{var Ae=Ue(),se=pe(Ae);_e(se,()=>{var N;return(N=e.children)!=null?N:ne}),b(ve,Ae)},$$slots:{default:!0}})},Le=Me=>{var ve=Ue(),le=pe(ve);_e(le,()=>{var Ae;return(Ae=e.children)!=null?Ae:ne}),b(Me,ve)};R(me,Me=>{_()&&r(re)&&!a()?Me(de):Me(Le,!1)})}g(Z),mt(Z,Me=>w(Me),()=>w()),k(()=>{var Me;te(Z,1,`btn-container ${(Me=$())!=null?Me:""}`,"svelte-p9r045"),Fe(Z,"aria-hidden",I()||null)}),Ct("mouseenter",Z,function(...Me){var ve;(ve=O())==null||ve.apply(this,Me)}),Ct("mouseleave",Z,function(...Me){var ve;(ve=J())==null||ve.apply(this,Me)}),Ur(Z,"clientWidth",y),b(t,Z),z(),o()}lt(["pointerdown","click"]);var U$=$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 wd(t,e){"use strict";var i=U$(),o=h(i),n=M(o);g(i),k(()=>{Fe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Fe(o,"fill-opacity",e.completed?1:.24),Fe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var z$=L("<div><!></div>"),q$={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function Ef(t,e){U(e,!0),W(t,q$);let o=Ce().ui.t,n=ee(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Bo(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=z$();let u;var v=h(l);let $=m(()=>!!e.videoEpisode.completed);wd(v,{get completed(){return r($)}}),g(l),k(p=>{u=te(l,1,"interactive-episode-icon svelte-bklhpe",null,u,p),ot(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Ur(l,"clientWidth",p=>B(n,p)),b(s,l)},$$slots:{default:!0}}),z()}var W$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),K$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),Q$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
169
+ .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Ts(t,e){K(t,O$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=v(()=>n(i(),o()));var s=D$();E(()=>{var d;De(s,"data-value",r(a)),De(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),y(t,s)}var Ro=require("@vkontakte/videoplayer-shared/es2015");var ru=require("@vkontakte/videoplayer-shared/es2015");var c1=require("@vkontakte/videoplayer-shared/es2015");var H$=L('<div class="overlay"><!></div>');function Ef(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(s,"$overlayContainer$",i),s=Ie().ui.overlayContainer$,d=J(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))};Fe(()=>{u(n())}),Qt(()=>(u(n()),()=>l(n())));var f=H$(),b=h(f);he(b,()=>{var p;return(p=e.children)!=null?p:oe}),g(f),mt(f,p=>D(d,p),()=>r(d)),y(t,f),z(),o()}var F$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),U$=L("<div><!></div> <!>",1),z$={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function fa(t,e){U(e,!0),K(t,z$);let[i,o]=Ne(),n=()=>S(Z,"$overlayContainer$",i),a=()=>S(H,"$containerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"content",3,""),l=m(e,"active",15,!1),u=m(e,"translateX",3,0),f=m(e,"translateY",3,0),b=m(e,"isFullWidthWrapper",3,!1),p=m(e,"maxTooltipWidth",3,void 0),$=m(e,"placement",3,"top"),x=m(e,"onVisibilityChange",3,c1.noop),_=5,C=J(void 0),T=J(void 0),k,P=J(0),A=J(0),I=J(0),V=J(0),q=Gt(),G=Ie(),H=G.ui.playerSize,Z=G.ui.overlayContainer$;Fe(()=>{Ct(()=>{x()(l())})});let re=G.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!n()||!r(T)||!r(C))return;D(A,_);let ye=n().getBoundingClientRect(),Se=r(C).getBoundingClientRect(),Re=Se.width,Ze=r(T).clientWidth,ut=a().width,pt=(Re-Ze)/2,at=Se.left+u()-ye.left,Et=at+pt,$t=Se.top+f()-ye.top,Jt=Ze/2-_,li=Et<8,At=Et+Ze>ut-8;li&&(Et=8,Jt=at+Se.width/2-2.5*_),At&&(Et=ut-8-Ze,Jt=Se.left-ye.left+Se.width/2-Et-_),D(I,me(Et)),D(V,$t),D(P,me(Jt))},ce=()=>{!n()||!r(T)||!r(C)||D(A,-_)},ue=()=>{if(!n()||!r(T)||!r(C))return;D(P,_);let ye=n().getBoundingClientRect(),Se=r(C).getBoundingClientRect(),Re=Se.height,Ze=r(T).clientHeight,ut=(Re-Ze)/2+Ze,pt=Se.left+u()-ye.left-r(T).clientWidth,at=2,Et=pt-_;Et<8&&(Et=8);let Jt=Se.top+f()-ye.top+ut,li=at-ut/2,At=at-_;D(I,me(Et)),D(V,Jt),D(A,li),D(P,At)},Ve=()=>{!n()||!r(T)||!r(C)||D(P,-_)},Me=()=>{switch($()){case"top":X();break;case"bottom":ce();break;case"left":ue();break;default:Ve()}},_e=()=>{try{if(!n()||!r(C))return;Me(),l(!0)}catch(ye){re({message:String(ye)})}},ae=()=>{l(!1)},Le=()=>{r(T)&&(k||(k=window.setTimeout(_e,q.controls.hideTimeoutTooltips)),l()&&_e())},ne=()=>{ae(),window.clearTimeout(k),k=void 0},B=(ye,Se,Re)=>{let Ze="";switch($()){case"top":Ze=`transform: translate(${ye}px, ${Se}px);`;break;case"bottom":Ze=`transform: translate(${ye}px, ${Se}px); top: auto; bottom: 100%;`;break;case"left":Ze=`transform: translate(${ye}px, ${Se}px); left: 0; right: auto;`;break;default:Ze=`transform: translate(${ye}px, ${Se}px);`}return Ze+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Ze+=` opacity: ${Re?1:0}; visibility: ${Re?"visible":"hidden"}`,Ze},$e=(ye,Se)=>{let Re="";switch($()){case"top":Re=`transform: translate(${ye}px, ${Se}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Re=`transform: translate(${ye}px, ${Se}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Re=`transform: translate(${ye}px, ${Se}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Re=`transform: translate(${ye}px, ${Se}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Re},de=v(()=>B(r(I),r(V),l())),Qe=v(()=>$e(r(P),r(A)));Qt(Me),xn(()=>window.clearTimeout(k));var te=U$(),ve=fe(te);let Y;ve.__mousemove=Le,ve.__mousedown=ne,ve.__mouseup=Le;var ie=h(ve);he(ie,()=>{var ye;return(ye=e.children)!=null?ye:oe}),g(ve),mt(ve,ye=>D(C,ye),()=>r(C));var He=M(ve,2);{var Ye=ye=>{Ef(ye,{children:(Se,Re)=>{var Ze=F$(),ut=h(Ze),pt=h(ut,!0);g(ut);var at=M(ut,2);g(Ze),mt(Ze,Et=>D(T,Et),()=>r(T)),E(()=>{st(Ze,r(de)),ge(pt,d()),st(at,r(Qe))}),y(Se,Ze)},$$slots:{default:!0}})};R(He,ye=>{d()&&!s()&&ye(Ye)})}E(ye=>Y=ee(ve,1,"tooltip-wrapper svelte-hxlyne",null,Y,ye),[()=>({"full-width":b()})]),kt("mouseenter",ve,Le),kt("mouseleave",ve,ne),y(t,te),z(),o()}lt(["mousemove","mousedown","mouseup"]);var u1=t=>{t.stopPropagation()},q$=L("<div><!></div>"),W$={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){U(e,!0),K(t,W$);let[i,o]=Ne(),n=()=>S(u,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Ie(),d=ho(),l=s.ui.isMobile,u=d.graphIsOpened$,f=s.ui.t,b=m(e,"className",3,""),p=m(e,"disabled",3,!1),$=m(e,"hasTooltip",3,!0),x=m(e,"ref",15,void 0),_=m(e,"width",15,void 0),C=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),k=m(e,"tooltipActive",3,!1),P=m(e,"tooltipPlacement",3,"top"),A=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=m(e,"isAriaHidden",3,!1),V=m(e,"onTooltipVisibilityChange",3,ru.noop),q=m(e,"initialTranslateXPx",3,0),G=m(e,"initialTranslateYPx",19,()=>-18),H=m(e,"mouseEnter",3,ru.noop),Z=m(e,"mouseLeave",3,ru.noop),re=v(()=>p()?n()?f("tooltip_disabled_when_graph_on"):A():T());var X=q$();X.__pointerdown=[u1],X.__click=[u1];var ce=h(X);{var ue=Me=>{fa(Me,{get content(){return r(re)},get translateX(){return q()},get translateY(){return G()},get isFullWidthWrapper(){return C()},get active(){return k()},get placement(){return P()},get onVisibilityChange(){return V()},children:(_e,ae)=>{var Le=Oe(),ne=fe(Le);he(ne,()=>{var B;return(B=e.children)!=null?B:oe}),y(_e,Le)},$$slots:{default:!0}})},Ve=Me=>{var _e=Oe(),ae=fe(_e);he(ae,()=>{var Le;return(Le=e.children)!=null?Le:oe}),y(Me,_e)};R(ce,Me=>{$()&&r(re)&&!a()?Me(ue):Me(Ve,!1)})}g(X),mt(X,Me=>x(Me),()=>x()),E(()=>{var Me;ee(X,1,`btn-container ${(Me=b())!=null?Me:""}`,"svelte-p9r045"),De(X,"aria-hidden",I()||null)}),kt("mouseenter",X,function(...Me){var _e;(_e=H())==null||_e.apply(this,Me)}),kt("mouseleave",X,function(...Me){var _e;(_e=Z())==null||_e.apply(this,Me)}),Ur(X,"clientWidth",_),y(t,X),z(),o()}lt(["pointerdown","click"]);var K$=we('<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 xd(t,e){"use strict";var i=K$(),o=h(i),n=M(o);g(i),E(()=>{De(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),De(o,"fill-opacity",e.completed?1:.24),De(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),y(t,i)}var Q$=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 Pf(t,e){U(e,!0),K(t,G$);let o=Ie().ui.t,n=J(0),a=v(()=>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=Q$();let u;var f=h(l);let b=v(()=>!!e.videoEpisode.completed);xd(f,{get completed(){return r(b)}}),g(l),E(p=>{u=ee(l,1,"interactive-episode-icon svelte-bklhpe",null,u,p),st(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Ur(l,"clientWidth",p=>D(n,p)),y(s,l)},$$slots:{default:!0}}),z()}var j$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),Y$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),Z$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
170
170
  .video-episode-loaded.svelte-1u6kv8l,
171
- .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Pf(t,e){W(t,Q$);let i=f(e,"videoEpisodes",19,()=>[]);var o=K$();Ei(o,21,i,n=>n.from,(n,a)=>{var s=W$();let d;var l=h(s),u=h(l),v=M(u,2);let $;g(l),g(s),k((p,_)=>{d=te(s,1,"video-episode svelte-1u6kv8l",null,d,p),ot(s,`left: ${r(a).from}%; width: ${r(a).width}%`),ot(u,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),$=te(v,1,"video-episode-filled svelte-1u6kv8l",null,$,_),ot(v,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,s)}),g(o),b(t,o)}function G$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&B(i,fe(e().getBoundingClientRect())),o()||r(n)||!e())return;B(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function j$(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;B(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function Z$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var X$=L("<div></div>"),J$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),e2=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),t2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
171
+ .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Af(t,e){K(t,Z$);let i=m(e,"videoEpisodes",19,()=>[]);var o=Y$();Pi(o,21,i,n=>n.from,(n,a)=>{var s=j$();let d;var l=h(s),u=h(l),f=M(u,2);let b;g(l),g(s),E((p,$)=>{d=ee(s,1,"video-episode svelte-1u6kv8l",null,d,p),st(s,`left: ${r(a).from}%; width: ${r(a).width}%`),st(u,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),b=ee(f,1,"video-episode-filled svelte-1u6kv8l",null,b,$),st(f,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),y(n,s)}),g(o),y(t,o)}function X$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&D(i,me(e().getBoundingClientRect())),o()||r(n)||!e())return;D(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function J$(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 e2(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;D(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function t2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var i2=L("<div></div>"),o2=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),n2=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),r2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
172
172
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
173
173
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
174
174
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
175
175
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
176
- .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function ma(t,e){U(e,!0),W(t,t2);let i=f(e,"ref",15,void 0),o=f(e,"className",3,""),n=f(e,"testId",3,void 0),a=f(e,"isHidden",3,!1),s=f(e,"isVertical",3,!1),d=f(e,"isActiveLive",3,!1),l=f(e,"isMobile",3,!1),u=f(e,"squareBorders",3,!1),v=f(e,"videoEpisodes",19,()=>[]),$=f(e,"withWheelHandler",3,!1),p=f(e,"isInteractive",3,!1),_=f(e,"disabled",3,!1),w=f(e,"hideHandel",3,!1),y=f(e,"onPointerDown",3,Oo.noop),C=f(e,"onHandleMove",3,Oo.noop),T=f(e,"onPointerUp",3,Oo.noop),E=f(e,"onPointerEnter",3,Oo.noop),P=f(e,"onPointerMove",3,Oo.noop),A=f(e,"onPointerLeave",3,Oo.noop),I=f(e,"onMouseEnter",3,Oo.noop),V=f(e,"onMouseLeave",3,Oo.noop),H=f(e,"onWheelUp",3,Oo.noop),Y=f(e,"onWheelDown",3,Oo.noop),O=f(e,"onWheelLeft",3,Oo.noop),J=f(e,"onWheelRight",3,Oo.noop),re=f(e,"onDisabledClick",3,Oo.noop),Z=f(e,"loadedProgress",3,0),me=f(e,"filledProgress",3,0),de=f(e,"handleProgress",3,0),Le=f(e,"ariaLabel",3,""),Me=f(e,"ariaValueMin",3,void 0),ve=f(e,"ariaValueMax",3,void 0),le=f(e,"ariaValueNow",3,void 0),Ae=f(e,"ariaValueText",3,""),se=qt(),N=ee(void 0),Re=ee(!1),ie=m(()=>{var ae;return(ae=ve())!=null?ae:0}),je=m(()=>{var ae;return(0,Oo.isNonNullable)(v())&&((ae=v()[v().length-1])==null?void 0:ae.time)<r(ie)}),oe=m(()=>(0,Oo.isNonNullable)(v())&&v().length&&r(je)&&r(ie)?Be(Z()*100,me()*100):[]);function G(ae){if(ae.preventDefault(),i()&&B(N,fe(i().getBoundingClientRect())),_())return;let He=xe(ae.clientX,ae.clientY),qe=we(ae.clientX);E()(He,qe,r(N).width)}function K(ae){ae.preventDefault(),!_()&&A()()}function Ve(){I()()}function Ne(){V()()}function et(ae){_()||$()&&(ae.preventDefault(),ae.deltaY<0?H()():ae.deltaY>0?Y()():ae.deltaX>0?J()():O()())}function xe(ae,He){return s()?Math.max(0,Math.min(1,(r(N).height-(He-r(N).top))/r(N).height)):Math.min(Math.max(ae-r(N).x,0),r(N).width)/r(N).width}function we(ae){return Math.min(Math.max(ae-r(N).x,0),r(N).width)}function Be(ae,He){let qe=se.features.episodesClustering&&!p()?se.episodeMinWidthPc:0,it=[],dt=v()[0].time/r(ie)*100,Ze=0,Je=0;for(let yt=1;yt<v().length;yt++)Ze=v()[yt].time/r(ie)*100,Ze-dt>qe&&(it.push({from:dt,width:Math.max(0,Ze-dt),loadedWidth:Math.max(0,Math.min(Ze,ae)-dt),filledWidth:Math.max(0,Math.min(Ze,He)-dt),interactive:v()[yt-1].interactive,completed:v()[yt-1].completed}),dt=v()[yt].time/r(ie)*100,Je++);let ct={from:dt,width:Math.max(0,100-dt),loadedWidth:Math.max(0,Math.min(ae,100)-dt),filledWidth:Math.max(0,Math.min(He,100)-dt),interactive:v()[Je].interactive,completed:v()[Je].completed};100-dt<qe?(Je-=1,it[Je].width+=100-dt,it[Je].loadedWidth+=Math.max(0,Math.min(ae,100)-dt),it[Je].filledWidth+=Math.max(0,Math.min(He,100)-dt)):it[Je]=ct;let De=v()[0].time;if(De!==0){let yt=De/r(ie)*100;it.unshift({from:0,width:yt,loadedWidth:Math.min(yt,ae),filledWidth:Math.min(yt,He)})}return it}var Xe=e2(),nt=pe(Xe);{var ht=ae=>{var He=X$();let qe;Ei(He,21,()=>r(oe),it=>it.from,(it,dt)=>{var Ze=Ue(),Je=pe(Ze);{var ct=De=>{Ef(De,{get videoEpisode(){return r(dt)},get disabled(){return _()}})};R(Je,De=>{r(dt).interactive&&De(ct)})}b(it,Ze)}),g(He),k(it=>qe=te(He,1,"interactive-icons svelte-1tpemng",null,qe,it),[()=>({mobile:l(),hidden:l()&&!r(Re)})]),b(ae,He)};R(nt,ae=>{p()&&ae(ht)})}var tt=M(nt,2);let vt;tt.__pointerdown=[G$,i,N,_,Re,xe,y],tt.__pointermove=[j$,_,xe,we,P,N,Re,C],tt.__pointerup=[Y$,_,Re,xe,T],tt.__click=[Z$,_,re,xe];var Pt=h(tt);{var Yt=ae=>{Pf(ae,{get videoEpisodes(){return r(oe)},get disabled(){return _()},get isMobile(){return l()}})},Wt=ae=>{var He=J$(),qe=h(He),it=M(qe,2);let dt;g(He),k(Ze=>{ot(qe,`transform: translateX(${Z()*100}%);`),dt=te(it,1,"filled svelte-1tpemng",null,dt,Ze),ot(it,`transform: translateX(${me()*100}%);`)},[()=>({"active-live":d()})]),b(ae,He)};R(Pt,ae=>{r(oe).length?ae(Yt):ae(Wt,!1)})}var Gt=M(Pt,2);let ge;var j=h(Gt);let Ie;g(Gt),g(tt),mt(tt,ae=>i(ae),()=>i()),k((ae,He,qe)=>{var it,dt;vt=te(tt,1,`slider ${(it=o())!=null?it:""}`,"svelte-1tpemng",vt,ae),Fe(tt,"aria-label",Le()),Fe(tt,"aria-valuemin",Me()),Fe(tt,"aria-valuemax",ve()),Fe(tt,"aria-valuenow",le()),Fe(tt,"aria-valuetext",Ae()),Fe(tt,"data-testid",(dt=n())!=null?dt:null),ge=te(Gt,1,"handleWrap svelte-1tpemng",null,ge,He),ot(Gt,`transform: translateX(${de()*100}%);`),Ie=te(j,1,"handle svelte-1tpemng",null,Ie,qe)},[()=>({disabled:_(),"slider-dragging":r(Re),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>({"active-live":d()})]),Ct("pointerenter",tt,G),Ct("pointerleave",tt,K),Ct("mouseenter",tt,Ve),Ct("mouseleave",tt,Ne),Ct("wheel",tt,et),b(t,Xe),z()}lt(["pointerdown","pointermove","pointerup","click"]);var Yi=(t,e)=>ea[t]>=ea[e],u1=(t,e)=>ea[t]<ea[e],Ts=(t,e)=>ea[t]<=ea[e],p1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var i2=L("<div><!></div>"),o2=L("<div><!> <!></div>"),n2={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 Af(t,e){var et,xe;U(e,!0),W(t,n2);let[i,o]=Oe(),n=()=>S(E,"$isAudioAvailable$",i),a=()=>S($,"$muted$",i),s=()=>S(v,"$volume$",i),d=()=>S(y,"$currentGridType$",i),l=Ce(),u=qt(),v=l.state.volume$,$=l.state.muted$,{setVolume:p,startVolumeChanging:_,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,C=(et=l.callbacks)==null?void 0:et.onAudioDoesNotExistHint,T=(xe=l.callbacks)==null?void 0:xe.onAudioDisabledHint,E=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,A=l.ui.t,I=ee(!1),V,H=m(()=>!n()||a()||s()===0),Y=m(()=>Ts(d(),"s")),O=m(()=>r(Y)?"":r(H)?!n()||P?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),J=m(()=>r(H)?A("tooltip_volume"):A("tooltip_volume_muted")),re=m(()=>r(H)?0:s()),Z=!1,me=m(()=>n()?P&&!T:!C);function de(we){_(),p(we)}function Le(){iu(l,s(),u.controls.volumeStepWheel)}function Me(){ou(l,s(),u.controls.volumeStepWheel)}function ve(we){p(we)}function le(we){p(we),w()}function Ae(){Z=!0}function se(){Z=!1,ie()}function N(){clearTimeout(V),B(I,!0)}function Re(){ie()}function ie(){V=window.setTimeout(()=>{Z||B(I,!1)},u.controls.volumeBarTimeout)}function je(we){we.preventDefault(),we.deltaY<0?Le():we.deltaY>0&&Me()}var oe=o2();let G;var K=h(oe);fa(K,{get content(){return r(O)},translateY:-18,children:(we,Be)=>{let Xe=m(()=>r(Y)?"btn-volume-vertical":"btn-volume-horizontal");Dt(we,{className:"btn-full-opacity",get disabled(){return r(me)},get testId(){return r(Xe)},get ariaLabel(){return r(J)},get click(){return e.click},get ariaKeyShortCut(){return zr.KeyM},children:(nt,ht)=>{Cs(nt,{get volume(){return s()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ve=M(K,2);{var Ne=we=>{var Be=i2();let Xe;var nt=h(Be);let ht=m(()=>r(Y)?"volumeBar-slider-vertical":""),tt=m(()=>r(Y)&&!r(I)),vt=m(()=>r(Y)?Ae:Sd.noop),Pt=m(()=>r(Y)?se:Sd.noop),Yt=m(()=>Math.round(r(re)*100)),Wt=m(()=>`${Math.round(r(re)*100)}%`),Gt=m(()=>r(Y)?"volume-slider-vertical":"volume-slider");ma(nt,{get className(){return r(ht)},get isHidden(){return r(tt)},get isVertical(){return r(Y)},withWheelHandler:!0,onWheelUp:Le,onWheelDown:Me,onPointerDown:de,onHandleMove:ve,onPointerUp:le,get onPointerEnter(){return r(vt)},get onPointerLeave(){return r(Pt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Yt)},get ariaValueText(){return r(Wt)},get filledProgress(){return r(re)},get handleProgress(){return r(re)},get testId(){return r(Gt)}}),g(Be),k(ge=>Xe=te(Be,1,"volumeBar svelte-1auih1j",null,Xe,ge),[()=>({"volumeBar-vertical":r(Y)})]),b(we,Be)};R(Ve,we=>{n()&&we(Ne)})}g(oe),k(we=>G=te(oe,1,"volumeBar-container svelte-1auih1j",null,G,we),[()=>({vertical:r(Y)})]),Ct("mouseenter",oe,function(...we){var Be;(Be=r(Y)?N:Sd.noop)==null||Be.apply(this,we)}),Ct("mouseleave",oe,function(...we){var Be;(Be=r(Y)?Re:Sd.noop)==null||Be.apply(this,we)}),Ct("wheel",oe,je),b(t,oe),z(),o()}var f1=require("@vkontakte/videoplayer-shared/es2015");var r2=$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 Mf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=r2();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 s2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Lf(t,e){W(t,s2);let i=f(e,"isFullscreen",8,!1),o=_r(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Mf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Cd(t,e){U(e,!0);let i=f(e,"isFullscreen",3,!1),o=f(e,"click",3,f1.noop),n=Ce(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=m(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Dt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let v=xs(u);a.set(v),o()()},get ariaKeyShortCut(){return zr.KeyF},children:(u,v)=>{Lf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var a2=$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 Vf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=a2();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 l2=$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 Rf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=l2();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(4),g(o),k(()=>n=Te(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 d2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
176
+ .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function ma(t,e){U(e,!0),K(t,r2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),a=m(e,"isHidden",3,!1),s=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),l=m(e,"isMobile",3,!1),u=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),b=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),$=m(e,"disabled",3,!1),x=m(e,"hideHandel",3,!1),_=m(e,"onPointerDown",3,Ro.noop),C=m(e,"onHandleMove",3,Ro.noop),T=m(e,"onPointerUp",3,Ro.noop),k=m(e,"onPointerEnter",3,Ro.noop),P=m(e,"onPointerMove",3,Ro.noop),A=m(e,"onPointerLeave",3,Ro.noop),I=m(e,"onMouseEnter",3,Ro.noop),V=m(e,"onMouseLeave",3,Ro.noop),q=m(e,"onWheelUp",3,Ro.noop),G=m(e,"onWheelDown",3,Ro.noop),H=m(e,"onWheelLeft",3,Ro.noop),Z=m(e,"onWheelRight",3,Ro.noop),re=m(e,"onDisabledClick",3,Ro.noop),X=m(e,"loadedProgress",3,0),ce=m(e,"filledProgress",3,0),ue=m(e,"handleProgress",3,0),Ve=m(e,"ariaLabel",3,""),Me=m(e,"ariaValueMin",3,void 0),_e=m(e,"ariaValueMax",3,void 0),ae=m(e,"ariaValueNow",3,void 0),Le=m(e,"ariaValueText",3,""),ne=Gt(),B=J(void 0),$e=J(!1),de=v(()=>{var se;return(se=_e())!=null?se:0}),Qe=v(()=>{var se;return(0,Ro.isNonNullable)(f())&&((se=f()[f().length-1])==null?void 0:se.time)<r(de)}),te=v(()=>(0,Ro.isNonNullable)(f())&&f().length&&r(Qe)&&r(de)?Re(X()*100,ce()*100):[]);function ve(se){if(se.preventDefault(),i()&&D(B,me(i().getBoundingClientRect())),$())return;let Be=ye(se.clientX,se.clientY),We=Se(se.clientX);k()(Be,We,r(B).width)}function Y(se){se.preventDefault(),!$()&&A()()}function ie(){I()()}function He(){V()()}function Ye(se){$()||b()&&(se.preventDefault(),se.deltaY<0?q()():se.deltaY>0?G()():se.deltaX>0?Z()():H()())}function ye(se,Be){return s()?Math.max(0,Math.min(1,(r(B).height-(Be-r(B).top))/r(B).height)):Math.min(Math.max(se-r(B).x,0),r(B).width)/r(B).width}function Se(se){return Math.min(Math.max(se-r(B).x,0),r(B).width)}function Re(se,Be){let We=ne.features.episodesClustering&&!p()?ne.episodeMinWidthPc:0,je=[],ft=f()[0].time/r(de)*100,Xe=0,it=0;for(let _t=1;_t<f().length;_t++)Xe=f()[_t].time/r(de)*100,Xe-ft>We&&(je.push({from:ft,width:Math.max(0,Xe-ft),loadedWidth:Math.max(0,Math.min(Xe,se)-ft),filledWidth:Math.max(0,Math.min(Xe,Be)-ft),interactive:f()[_t-1].interactive,completed:f()[_t-1].completed}),ft=f()[_t].time/r(de)*100,it++);let ot={from:ft,width:Math.max(0,100-ft),loadedWidth:Math.max(0,Math.min(se,100)-ft),filledWidth:Math.max(0,Math.min(Be,100)-ft),interactive:f()[it].interactive,completed:f()[it].completed};100-ft<We?(it-=1,je[it].width+=100-ft,je[it].loadedWidth+=Math.max(0,Math.min(se,100)-ft),je[it].filledWidth+=Math.max(0,Math.min(Be,100)-ft)):je[it]=ot;let Ke=f()[0].time;if(Ke!==0){let _t=Ke/r(de)*100;je.unshift({from:0,width:_t,loadedWidth:Math.min(_t,se),filledWidth:Math.min(_t,Be)})}return je}var Ze=n2(),ut=fe(Ze);{var pt=se=>{var Be=i2();let We;Pi(Be,21,()=>r(te),je=>je.from,(je,ft)=>{var Xe=Oe(),it=fe(Xe);{var ot=Ke=>{Pf(Ke,{get videoEpisode(){return r(ft)},get disabled(){return $()}})};R(it,Ke=>{r(ft).interactive&&Ke(ot)})}y(je,Xe)}),g(Be),E(je=>We=ee(Be,1,"interactive-icons svelte-1tpemng",null,We,je),[()=>({mobile:l(),hidden:l()&&!r($e)})]),y(se,Be)};R(ut,se=>{p()&&se(pt)})}var at=M(ut,2);let Et;at.__pointerdown=[X$,i,B,$,$e,ye,_],at.__pointermove=[J$,$,ye,Se,P,B,$e,C],at.__pointerup=[e2,$,$e,ye,T],at.__click=[t2,$,re,ye];var $t=h(at);{var Jt=se=>{Af(se,{get videoEpisodes(){return r(te)},get disabled(){return $()},get isMobile(){return l()}})},li=se=>{var Be=o2(),We=h(Be),je=M(We,2);let ft;g(Be),E(Xe=>{st(We,`transform: translateX(${X()*100}%);`),ft=ee(je,1,"filled svelte-1tpemng",null,ft,Xe),st(je,`transform: translateX(${ce()*100}%);`)},[()=>({"active-live":d()})]),y(se,Be)};R($t,se=>{r(te).length?se(Jt):se(li,!1)})}var At=M($t,2);let Dt;var O=h(At);let be;g(At),g(at),mt(at,se=>i(se),()=>i()),E((se,Be,We)=>{var je,ft;Et=ee(at,1,`slider ${(je=o())!=null?je:""}`,"svelte-1tpemng",Et,se),De(at,"aria-label",Ve()),De(at,"aria-valuemin",Me()),De(at,"aria-valuemax",_e()),De(at,"aria-valuenow",ae()),De(at,"aria-valuetext",Le()),De(at,"data-testid",(ft=n())!=null?ft:null),Dt=ee(At,1,"handleWrap svelte-1tpemng",null,Dt,Be),st(At,`transform: translateX(${ue()*100}%);`),be=ee(O,1,"handle svelte-1tpemng",null,be,We)},[()=>({disabled:$(),"slider-dragging":r($e),hidden:a(),"slider-vertical":s(),"no-handle":x(),square:u()}),()=>({hidden:x()}),()=>({"active-live":d()})]),kt("pointerenter",at,ve),kt("pointerleave",at,Y),kt("mouseenter",at,ie),kt("mouseleave",at,He),kt("wheel",at,Ye),y(t,Ze),z()}lt(["pointerdown","pointermove","pointerup","click"]);var Xi=(t,e)=>ea[t]>=ea[e],p1=(t,e)=>ea[t]<ea[e],Is=(t,e)=>ea[t]<=ea[e],f1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var s2=L("<div><!></div>"),a2=L("<div><!> <!></div>"),l2={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 Mf(t,e){var Ye,ye;U(e,!0),K(t,l2);let[i,o]=Ne(),n=()=>S(k,"$isAudioAvailable$",i),a=()=>S(b,"$muted$",i),s=()=>S(f,"$volume$",i),d=()=>S(_,"$currentGridType$",i),l=Ie(),u=Gt(),f=l.state.volume$,b=l.state.muted$,{setVolume:p,startVolumeChanging:$,stopVolumeChanging:x}=l.actions.internal,_=l.ui.currentGridType$,C=(Ye=l.callbacks)==null?void 0:Ye.onAudioDoesNotExistHint,T=(ye=l.callbacks)==null?void 0:ye.onAudioDisabledHint,k=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,A=l.ui.t,I=J(!1),V,q=v(()=>!n()||a()||s()===0),G=v(()=>Is(d(),"s")),H=v(()=>r(G)?"":r(q)?!n()||P?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),Z=v(()=>r(q)?A("tooltip_volume"):A("tooltip_volume_muted")),re=v(()=>r(q)?0:s()),X=!1,ce=v(()=>n()?P&&!T:!C);function ue(Se){$(),p(Se)}function Ve(){iu(l,s(),u.controls.volumeStepWheel)}function Me(){ou(l,s(),u.controls.volumeStepWheel)}function _e(Se){p(Se)}function ae(Se){p(Se),x()}function Le(){X=!0}function ne(){X=!1,de()}function B(){clearTimeout(V),D(I,!0)}function $e(){de()}function de(){V=window.setTimeout(()=>{X||D(I,!1)},u.controls.volumeBarTimeout)}function Qe(Se){Se.preventDefault(),Se.deltaY<0?Ve():Se.deltaY>0&&Me()}var te=a2();let ve;var Y=h(te);fa(Y,{get content(){return r(H)},translateY:-18,children:(Se,Re)=>{let Ze=v(()=>r(G)?"btn-volume-vertical":"btn-volume-horizontal");Bt(Se,{className:"btn-full-opacity",get disabled(){return r(ce)},get testId(){return r(Ze)},get ariaLabel(){return r(Z)},get click(){return e.click},get ariaKeyShortCut(){return zr.KeyM},children:(ut,pt)=>{Ts(ut,{get volume(){return s()},get muted(){return r(q)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ie=M(Y,2);{var He=Se=>{var Re=s2();let Ze;var ut=h(Re);let pt=v(()=>r(G)?"volumeBar-slider-vertical":""),at=v(()=>r(G)&&!r(I)),Et=v(()=>r(G)?Le:wd.noop),$t=v(()=>r(G)?ne:wd.noop),Jt=v(()=>Math.round(r(re)*100)),li=v(()=>`${Math.round(r(re)*100)}%`),At=v(()=>r(G)?"volume-slider-vertical":"volume-slider");ma(ut,{get className(){return r(pt)},get isHidden(){return r(at)},get isVertical(){return r(G)},withWheelHandler:!0,onWheelUp:Ve,onWheelDown:Me,onPointerDown:ue,onHandleMove:_e,onPointerUp:ae,get onPointerEnter(){return r(Et)},get onPointerLeave(){return r($t)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Jt)},get ariaValueText(){return r(li)},get filledProgress(){return r(re)},get handleProgress(){return r(re)},get testId(){return r(At)}}),g(Re),E(Dt=>Ze=ee(Re,1,"volumeBar svelte-1auih1j",null,Ze,Dt),[()=>({"volumeBar-vertical":r(G)})]),y(Se,Re)};R(ie,Se=>{n()&&Se(He)})}g(te),E(Se=>ve=ee(te,1,"volumeBar-container svelte-1auih1j",null,ve,Se),[()=>({vertical:r(G)})]),kt("mouseenter",te,function(...Se){var Re;(Re=r(G)?B:wd.noop)==null||Re.apply(this,Se)}),kt("mouseleave",te,function(...Se){var Re;(Re=r(G)?$e:wd.noop)==null||Re.apply(this,Se)}),kt("wheel",te,Qe),y(t,te),z(),o()}var m1=require("@vkontakte/videoplayer-shared/es2015");var d2=we('<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 Lf(t,e){let i=Ae(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}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var c2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Vf(t,e){K(t,c2);let i=m(e,"isFullscreen",8,!1),o=$r(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Lf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Sd(t,e){U(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,m1.noop),n=Ie(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Bt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=ws(u);a.set(f),o()()},get ariaKeyShortCut(){return zr.KeyF},children:(u,f)=>{Vf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var u2=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function Rf(t,e){let i=Ae(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}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var p2=we('<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 Nf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=p2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(4),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),y(t,o)}var f2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
178
178
  svg[data-testid="vk-video-logo-icon--short"] ._en,
179
179
  svg[data-testid="vk-video-logo-icon"] ._en,
180
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Df(t,e){W(t,d2);let i=f(e,"short",3,!1),o=f(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`);Rf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function Td(t,e){U(e,!0);let[i,o]=Oe(),n=()=>S(_,"$isMobile",i),a=()=>S(p,"$currentGridType$",i),s=()=>S(y,"$isCyrillicRelatedInterface$",i),d=f(e,"ref",15,void 0),l=f(e,"logoClickable",3,!1),u=f(e,"targetUrl",3,""),v=qt(),$=Ce(),p=$.ui.currentGridType$,_=$.ui.isMobile,w=$.ui.t,y=$.isCyrillicRelatedInterface$,C=m(()=>v.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=m(()=>v.logoType==="vk_video"||v.logoType==="vk_video_mobile"),E=m(()=>(n()||Ts(a(),"l"))&&r(T)),P=()=>{var V,H;e.click(),(V=$.callbacks)!=null&&V.onLogoClicked?(H=$.callbacks)==null||H.onLogoClicked():u()&&window.open(u(),"_blank")},A=m(()=>!l()),I=m(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Dt(t,{className:"btn-full-opacity",get disabled(){return r(A)},click:P,get testId(){return r(I)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(V){d(V)},children:(V,H)=>{var Y=Ue(),O=pe(Y);{var J=Z=>{Df(Z,{get short(){return r(E)},get isCyrillic(){return s()}})},re=Z=>{Vf(Z,{})};R(O,Z=>{r(T)?Z(J):Z(re,!1)})}b(V,Y)},$$slots:{default:!0}}),z(),o()}var m1=require("@vkontakte/videoplayer-core/es2015");var Nf=require("@vkontakte/videoplayer-core/es2015"),u2=$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>'),p2=$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>'),f2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
180
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Bf(t,e){K(t,f2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${r(s)+1} 24`);Nf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function Cd(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S($,"$isMobile",i),a=()=>S(p,"$currentGridType$",i),s=()=>S(_,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),l=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=Gt(),b=Ie(),p=b.ui.currentGridType$,$=b.ui.isMobile,x=b.ui.t,_=b.isCyrillicRelatedInterface$,C=v(()=>f.logoType==="vk_video"?x("tooltip_vk_video_logo"):x("tooltip_vk_logo")),T=v(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),k=v(()=>(n()||Is(a(),"l"))&&r(T)),P=()=>{var V,q;e.click(),(V=b.callbacks)!=null&&V.onLogoClicked?(q=b.callbacks)==null||q.onLogoClicked():u()&&window.open(u(),"_blank")},A=v(()=>!l()),I=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Bt(t,{className:"btn-full-opacity",get disabled(){return r(A)},click:P,get testId(){return r(I)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(V){d(V)},children:(V,q)=>{var G=Oe(),H=fe(G);{var Z=X=>{Bf(X,{get short(){return r(k)},get isCyrillic(){return s()}})},re=X=>{Rf(X,{})};R(H,X=>{r(T)?X(Z):X(re,!1)})}y(V,G)},$$slots:{default:!0}}),z(),o()}var v1=require("@vkontakte/videoplayer-core/es2015");var Df=require("@vkontakte/videoplayer-core/es2015"),v2=we('<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>'),g2=we('<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>'),h2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
181
181
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
182
182
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
183
183
  animation-name: svelte-8z1bf5-wave3;}
@@ -225,9 +225,9 @@ Try switching the\xA0quality to\xA0Auto.`},Uh=O_;var ns=new Map;ns.set(el.Interf
225
225
  100% {
226
226
  opacity: 1;
227
227
  }
228
- }`};function Bf(t,e){U(e,!0),W(t,f2);let i=f(e,"isMobile",3,!1),o=m(()=>e.iconState===Nf.ChromecastState.CONNECTED),n=m(()=>e.iconState===Nf.ChromecastState.CONNECTING);var a=Ue(),s=pe(a);{var d=u=>{var v=u2(),$=h(v),p=h($),_=h(p);be(),g(p);var w=M(p);be(),g($);var y=M($),C=h(y),T=h(C);g(C),be(),g(y),g(v),k(()=>{Fe(_,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,v)},l=u=>{var v=p2();let $;var p=h(v),_=M(h(p),5);let w;g(p),g(v),k((y,C)=>{$=te(v,0,"svelte-8z1bf5",null,$,y),w=te(_,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(u,v)};R(s,u=>{i()?u(d):u(l,!1)})}b(t,a),z()}var v1=require("@vkontakte/videoplayer-shared/es2015");function Id(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"click",3,v1.noop),s=Ce().ui.t,d=m(()=>e.state===m1.ChromecastState.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Dt(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)=>{Bf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var m2=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),v2={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 Of(t,e){W(t,v2);let i=f(e,"active",3,!1),o=f(e,"pointer",3,!1),n=f(e,"translateXPx",3,0),a=f(e,"translateYPx",3,0),s=f(e,"leftOffset",3,0),d=f(e,"rightOffset",3,0),l=ee(void 0),u=ee(void 0);function v(C){if(!r(u))return 0;let{width:T}=r(u).getBoundingClientRect(),E=T/2;return C<E?E+s():C>e.containerWidth-E?e.containerWidth-E-d():C}let $=m(()=>v(n()));var p=m2(),_=h(p);let w;var y=h(_);_e(y,()=>{var C;return(C=e.children)!=null?C:ne}),g(_),mt(_,C=>B(u,C),()=>r(u)),g(p),mt(p,C=>B(l,C),()=>r(l)),k(C=>{ot(p,`transform: translate(${r($)}px, ${a()}px);`),w=te(_,1,"tooltip svelte-5ygsa2",null,w,C),ot(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,p)}var su=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var g1=t=>!!(Math.round(Math.abs(t)/90)%2),h1=t=>Math.abs(t)/90%4===1;var g2=L('<div class="preview svelte-1wqg760"></div>'),h2=L('<div class="time svelte-1wqg760"> </div>'),_2=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),b2={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 Hf(t,e){U(e,!0),W(t,b2);let[i,o]=Oe(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=f(e,"time",3,""),l=f(e,"isMobile",3,!1),u=f(e,"videoEpisodes",19,()=>[]),v=f(e,"progress",3,0),$=f(e,"duration",3,0),p=f(e,"isInteractive",3,!1),_=Ce(),w=_.ui.rotateAlpha,y=_.ui.playerSize,C=ee(0),T=ee(0),E=ee(""),P=ee(0),A=ee(0),I=ee(0),V=ee(0),H=m(()=>su(v(),$(),u())),Y=m(()=>g1(n())),O=m(()=>h1(n())),J=m(me),re=m(()=>(r(O)?1:-1)*(r(C)/2-r(T)/2)),Z=m(()=>r(re)*-1);ze(()=>{(G=>(B(C,fe(G.width)),B(T,fe(G.height))))(Le())}),ze(()=>{(G=>(B(E,fe(G.imgSrc)),B(P,fe(G.imgWidth)),B(A,fe(G.imgHeight)),B(I,fe(G.imgOffsetX)),B(V,fe(G.imgOffsetY))))(Me(v()))});function me(){var Ne;let G=l()?s.MOBILE:s.DESKTOP,{isVertical:K}=de(),Ve=30;return(Ne=r(H))!=null&&Ne.text&&(Ve+=16),(K||r(Y))&&(Ve+=18,Ve+=50),Math.min(Math.max(a().height-Ve,0),G)}function de(){let G=e.previewThumbsData.frameWidth,K=e.previewThumbsData.frameHeight,Ve=K>G;return{width:G,height:K,isHorizontal:!Ve,isVertical:Ve}}function Le(){let{height:G,isHorizontal:K,isVertical:Ve,width:Ne}=de();return K&&(G=G/Ne*r(J),Ne=r(J)),Ve&&(Ne=Ne/G*r(J),G=r(J)),{width:Ne,height:G}}function Me(G){let K;e.previewThumbsData.isUV?K=Math.floor($()*G/e.previewThumbsData.frequency):K=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*G)));let Ve=Math.floor(K/e.previewThumbsData.countPerImage),Ne=Math.floor(K%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),et=K%e.previewThumbsData.countPerRow,xe=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ve===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(xe=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&xe++);let we=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ve===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(we=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Be=r(C)*we,Xe=r(T)*xe,nt=-et*r(C),ht=-Ne*r(T);return{imgSrc:e.previewThumbsData.links[Ve],imgWidth:Be,imgHeight:Xe,imgOffsetX:nt,imgOffsetY:ht}}var ve=_2();let le;var Ae=h(ve);{var se=G=>{var K=g2();k(()=>ot(K,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(E)}); background-size: ${r(P)}px ${r(A)}px; background-position: ${r(I)}px ${r(V)}px;
229
- transform: rotate(${n()}deg) ${r(Y)?`translate(${r(re)}px, ${r(Z)}px)`:""};
230
- `)),b(G,K)};R(Ae,G=>{r(E)&&G(se)})}var N=M(Ae,2),Re=h(N);{var ie=G=>{var K=Ue(),Ve=pe(K);{var Ne=xe=>{var we=Fr();k(Be=>he(we,Be),[()=>F("tooltip_episode_unfinished")]),b(xe,we)},et=xe=>{var we=Fr();k(()=>he(we,r(H).text||"")),b(xe,we)};R(Ve,xe=>{p()&&r(H).completed===!1?xe(Ne):xe(et,!1)})}b(G,K)};R(Re,G=>{r(H)&&G(ie)})}g(N);var je=M(N,2);{var oe=G=>{var K=h2(),Ve=h(K,!0);g(K),k(()=>he(Ve,d())),b(G,K)};R(je,G=>{p()||G(oe)})}g(ve),k(G=>{le=te(ve,1,"timeline-preview svelte-1wqg760",null,le,G),ot(ve,`width: ${r(Y)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),b(t,ve),z(),o()}var $2=L('<span class="time svelte-1jr6obn"> </span>'),y2=L("<!> <!>",1),x2={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 Ff(t,e){var it,dt,Ze,Je,ct;U(e,!0),W(t,x2);let[i,o]=Oe(),n=()=>S(re,"$interactiveEpisodes$",i),a=()=>S(I,"$duration$",i),s=()=>S(A,"$position$",i),d=()=>S(de,"$isInteractiveExpectation$",i),l=()=>S(me,"$isInteractiveTime$",i),u=()=>S(V,"$isLive$",i),v=()=>S(Y,"$isMobile",i),$=()=>S(H,"$isActiveLive$",i),p=()=>S(P,"$bufferedProgress$",i),_=()=>S(ve,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),y=f(e,"withEpisodes",3,!0),C=f(e,"ref",15,void 0),T=Ce(),E=qt(),P=T.state.bufferedProgress$,A=T.state.positionWithScrubbing$,I=T.state.duration$,V=T.state.isLive$,H=T.state.isActiveLive$,Y=T.ui.isMobile,O=E.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,J=T.actions.internal.getPreviewThumbsData(),re=T.state.interactiveEpisodes$,Z=T.state.isInteractive,me=T.state.isInteractiveTime$,de=T.state.isInteractiveExpectation$,Le=T.actions.internal.correctSeekTimeToInteractive,Me=(it=T.callbacks)==null?void 0:it.onDisabledTimelineClick,ve=T.ui.controls.disabledControls$,le=(Ze=(dt=T.callbacks)==null?void 0:dt.uiInfo)==null?void 0:Ze.onTimelineMouseEnter,Ae=(ct=(Je=T.callbacks)==null?void 0:Je.uiInfo)==null?void 0:ct.onTimelineMouseLeave,se=T.ui.t,N=E.features.interactiveResponsiveUi,Re=m(()=>Z?n():O),ie=m(()=>mn(a())),je=m(()=>mn(s())),oe=m(()=>s()/a()),G=m(()=>d()||l()),K=ee(!1),Ve=ee(""),Ne=ee(0),et=ee(0),xe=ee(0),we=m(()=>({containerWidth:r(et),translateXPx:r(Ne),translateYPx:Z&&J?-36:-16,active:r(K)&&w()&&!r(G)&&!N,pointer:!E.features.timelinePreview||!J||u()})),Be=se("aria_timeline"),Xe=m(()=>se("aria_timeline_value",{position:r(je),duration:r(ie)}));function nt(De){return!Le||!Z?De:Le(De*a())/a()}function ht(De){T.actions.internal.startScrubbing(nt(De))}function tt(De){l()||T.actions.internal.progressScrubbing(nt(De))}function vt(De){T.actions.internal.completeScrubbing(nt(De)),B(K,!1)}function Pt(De,yt,We){Gt(De,yt,We),B(K,!0)}function Yt(De,yt,We){Gt(De,yt,We),B(K,!0)}function Wt(){B(K,!1)}function Gt(De,yt,We){B(xe,fe(nt(De))),B(Ne,fe(yt)),We&&B(et,fe(We)),B(Ve,fe(ge(De)))}function ge(De){let yt=mn((u()?1-De:De)*a());return u()?`-${yt}`:yt}var j=y2(),Ie=pe(j);Of(Ie,os(()=>r(we),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(De,yt)=>{var We=Ue(),At=pe(We);{var ai=li=>{Hf(li,{get time(){return r(Ve)},get isMobile(){return v()},get videoEpisodes(){return r(Re)},previewThumbsData:J,get progress(){return r(xe)},get duration(){return a()},isInteractive:Z})},ei=li=>{var Ui=$2(),Ji=h(Ui,!0);g(Ui),k(()=>he(Ji,r(Ve))),b(li,Ui)};R(At,li=>{E.features.timelinePreview&&J&&!u()?li(ai):li(ei,!1)})}b(De,We)},$$slots:{default:!0}}));var ae=M(Ie,2);let He=m(()=>Math.round(r(oe)*100)),qe=m(()=>_().has("TIMELINE"));ma(ae,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return v()},ariaLabel:Be,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(He)},get ariaValueText(){return r(Xe)},get loadedProgress(){return p()},get filledProgress(){return r(oe)},get handleProgress(){return r(oe)},get videoEpisodes(){return r(Re)},onPointerDown:ht,onHandleMove:tt,onPointerMove:Yt,onPointerUp:vt,onPointerEnter:Pt,onPointerLeave:Wt,onMouseEnter:le,onMouseLeave:Ae,onDisabledClick:Me,isInteractive:Z,get disabled(){return r(qe)},get hideHandel(){return l()},get ref(){return C()},set ref(De){C(De)}}),b(t,j),z(),o()}var w2={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 kd(t,e){U(e,!0),W(t,w2);let[i,o]=Oe(),n=()=>S(l,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"duration",3,0),d=Ce(),l=d.ui.isMobile,u=d.ui.t,v=m(()=>mn(s())),$=m(()=>mn(a())),p=m(()=>a()/s()),_=m(()=>u("aria_timeline_value",{position:r($),duration:r(v)})),w=m(()=>Math.round(r(p)*100));ma(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()}}),z(),o()}var S2=L("<div><!></div>"),C2=L("<div></div>"),T2={hash:"svelte-1h5wsmk",code:".timeline.svelte-1h5wsmk {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1h5wsmk {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1h5wsmk {padding:0;}.timeline-stub.svelte-1h5wsmk {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1h5wsmk {height:8px;}"};function va(t,e){U(e,!0),W(t,T2);let[i,o]=Oe(),n=()=>S(_,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(y,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=f(e,"isAds",3,!1),u=f(e,"isHidden",3,!1),v=f(e,"needPadding",3,!0),$=f(e,"ref",15,void 0),p=Ce(),_=p.state.isLive$,w=p.ads.duration,y=p.ads.position,C=p.ui.isMobile,T=m(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var E=Ue(),P=pe(E);{var A=V=>{var H=S2();let Y;var O=h(H);{var J=Z=>{kd(Z,{get position(){return s()},get duration(){return d()}})},re=Z=>{Ff(Z,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return $()},set ref(me){$(me)}})};R(O,Z=>{l()?Z(J):Z(re,!1)})}g(H),k(Z=>Y=te(H,1,"timeline svelte-1h5wsmk",null,Y,Z),[()=>({withoutPadding:!v(),mobile:a()})]),b(V,H)},I=V=>{var H=C2();let Y;k(O=>Y=te(H,1,"timeline-stub svelte-1h5wsmk",null,Y,O),[()=>({mobile:a()})]),b(V,H)};R(P,V=>{r(T)?V(A):V(I,!1)})}b(t,E),z(),o()}var _1=require("@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 Uf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=I2();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(3),g(o),k(()=>n=Te(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 k2=$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 zf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=k2();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 E2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),P2=L('<span class="text svelte-1yhs2ga"> </span>'),A2=L('<span class="text count svelte-1yhs2ga"> </span>'),M2=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 Ed(t,e){var de,Le,Me;U(e,!0),W(t,L2);let[i,o]=Oe(),n=()=>S(w,"$currentGridType$",i),a=()=>S(y,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=f(e,"position",3,0),u=f(e,"duration",3,0),v=f(e,"timeCodes",19,()=>[]),$=Ce(),p=(Le=(de=$.callbacks)==null?void 0:de.onEpisodeChanged)!=null?Le:_1.noop,_=!!((Me=$.callbacks)!=null&&Me.onEpisodeClicked),w=$.ui.currentGridType$,y=$.ui.episodes.openedByKeyboard$,C=$.ui.episodes.panelOpened$,T=$.ui.isMobile,E=$.ui.t,P=ee(void 0),A=ve=>{var Ae,se,N;if(!!((Ae=$.callbacks)!=null&&Ae.onEpisodeClicked)){let Re=xs(ve);y.set(Re),C.set(!0),(N=(se=$.callbacks)==null?void 0:se.onEpisodeClicked)==null||N.call(se,Re)}},I=ee(null),V=m(()=>l()/u());ze(()=>{var le;let ve=su(r(V),u(),v());ve?((le=r(I))==null?void 0:le.time)!==ve.time&&(p(ve),B(I,fe(ve))):B(I,null)});let H=m(()=>{var ve;return((ve=r(I))==null?void 0:ve.text)||""}),Y=m(()=>Yi(n(),"xl")?"FULL":Yi(n(),"m")&&u1(n(),"xl")?"COUNT":"SHORT"),O=m(()=>`${E("tooltip_episodes")}: ${r(H)}`),J=(ve,le,Ae)=>Mt(this,null,function*(){yield To(),(ve==null?void 0:ve.getAttribute("aria-expanded"))==="false"&&le&&!Ae&&wt(()=>{y.set(!1),ve.focus()})});ze(()=>{J(r(P),a(),s())});var re=Ue(),Z=pe(re);{var me=ve=>{let le=m(()=>d()?"px-0":"");Dt(ve,{get className(){var Ae;return`w-max btn-full-opacity btn-jc-l ${(Ae=r(le))!=null?Ae:""}`},testId:"btn-episodes",click:A,disabled:!_,get ariaExpanded(){return s()},get ariaLabel(){return r(O)},get ref(){return r(P)},set ref(Ae){B(P,fe(Ae))},children:(Ae,se)=>{var N=Ue(),Re=pe(N);{var ie=oe=>{var G=E2(),K=pe(G),Ve=h(K,!0);g(K);var Ne=M(K,2),et=h(Ne);zf(et,{}),g(Ne),k(()=>he(Ve,r(H))),b(oe,G)},je=oe=>{var G=M2(),K=pe(G);Uf(K,{});var Ve=M(K,2);{var Ne=xe=>{var we=P2(),Be=h(we,!0);g(we),k(()=>he(Be,r(H))),b(xe,we)},et=(xe,we)=>{{var Be=Xe=>{var nt=A2(),ht=h(nt,!0);g(nt),k(()=>he(ht,v().length)),b(Xe,nt)};R(xe,Xe=>{r(Y)==="COUNT"&&Xe(Be)},we)}};R(Ve,xe=>{r(Y)==="FULL"?xe(Ne):xe(et,!1)})}b(oe,G)};R(Re,oe=>{d()?oe(ie):oe(je,!1)})}b(Ae,N)},$$slots:{default:!0}})};R(Z,ve=>{r(I)&&ve(me)})}b(t,re),z(),o()}var P1=require("@vkontakte/videoplayer-shared/es2015");var gi=require("@vkontakte/videoplayer-core/es2015"),$t=require("@vkontakte/videoplayer-shared/es2015"),Kr=require("@vkontakte/videoplayer-statistics/es2015");var Ge=require("@vkontakte/videoplayer-shared/es2015"),Zi=require("@vkontakte/videoplayer-shared/es2015");var b1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var V2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",au=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new Zi.Subject,loadStarted$:new Zi.Subject,loadEnded$:new Zi.Subject,loadError$:new Zi.Subject,ready$:new Zi.Subject,slotRequested$:new Zi.Subject,started$:new Zi.Subject,timeRemained$:new Zi.Subject,paused$:new Zi.Subject,resumed$:new Zi.Subject,ended$:new Zi.Subject,empty$:new Zi.Subject,skipped$:new Zi.Subject,clicked$:new Zi.Subject,closed$:new Zi.Subject,error$:new Zi.Subject};this.loadAdman=e=>(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ge.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ge.now)()]}),o())};(0,Zi.addScript)(V2,e,this.loadTimeout).then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ge.now)()]}),window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[(0,Ge.now)()]}),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?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ge.now)()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ge.now)()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ge.now)()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ge.now)()]}),!d&&(window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ge.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ge.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ge.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ge.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ge.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ge.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:u={},duration:v,previewParam:$}=e,p,_=this.playerState&&Se(this.playerState.vsid);_&&(this.isVsidOriginal?p=_:p=parseInt(_,36));let{isEmbed:w,immediateOrigin:y}=(0,Ge.detectEmbed)(),C=(P=w?y:window.location.href)!=null?P:window.location.href,T=Nt(q(Nt(q({},u),{dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:$}),p?{request_id:p}:{}),{duration:v,puid10:b1(i,o),puid11:n?0:1});$||delete T.preview;let E={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let A=new window.AdmanHTML;A.setDebug(!1),A.onReady(this.onAdsReady),A.onStarted(this.onAdStarted),A.onPlayed(this.onAdPlayed),A.onPaused(this.onAdPaused),A.adMidrollPoint(this.onAdMidrollPoint),A.onClosed(this.onAdClosed),A.onSkipped(this.onAdSkipped),A.onClicked(this.onAdClicked),A.onTimeRemained(this.onAdTimeRemained),A.onCompleted(this.onAdCompleted),A.onError(this.onAdError),A.init(E),this.adman=A,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(A){Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[(0,Ge.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ge.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adsState){this.log({message:"toggle play"});let i=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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ge.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,u,v,$,p;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ge.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(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),(v=this.adman)==null||v.onCompleted(void 0),($=this.adman)==null||$.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,Zi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var $1=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 qf=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 lu,{startTime:v,endTime:$}=u.parse(l);s.startTime=v,s.endTime=$}else if(l.trim()!==""){let u=new Wf,{texts:v}=u.parse(l);s.texts=[...s.texts,...v]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},lu=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}},Wf=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((v,$)=>{let p=s.indexOf($,d);return v===-1||v>p?p:v},-1);if(u===-1){l.push(s.substring(d));break}l.push(s.substring(d,u)),d=u+1}return l}}),a=new lu;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}},y1=qf;var cu=require("@vkontakte/videoplayer-shared/es2015"),ga,Ai,Kf=0,Qf=!1,x1="",w1=(t,e=0,i=0)=>t<e&&t<i,du=(t,e=0,i=0)=>t>=e&&t<=i,R2=(t,e=0,i=0)=>t>e&&t>i,S1=(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:v})=>du(t,u,v));let a=t>=Kf,s=t<Kf;if(Kf=t,s&&(Qf=!1),(0,cu.isNonNullable)(ga)&&du(t,ga.startTime,ga.endTime)&&x1===e.value)return ga;if(!(0,cu.isNonNullable)(Ai)&&(n!=null&&n.length)&&!Qf){Ai=n.find(({startTime:u,endTime:v})=>du(t,u,v)||a&&w1(t,u,v)),ga=void 0,!(0,cu.isNonNullable)(Ai)&&n[n.length-1].endTime<t&&(Qf=!0);return}else{if(du(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime))return ga=Ai,Ai=void 0,x1=e.value,ga;(a&&R2(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime)||s&&w1(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime))&&(Ai=void 0)}};var uu={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"},D2={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"},pu=t=>{var e,i;return(i=(e=uu[t])!=null?e:uu[D2[t]])!=null?i:void 0};var C1=require("@vkontakte/videoplayer-shared/es2015"),mN=require("@vkontakte/videoplayer-statistics/es2015"),fu=class{constructor(e,i,o=new C1.Subscription){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 Pd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Pd||{});var Wr=t=>t!=null?t:0,pl=(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(Wr(i==null?void 0:i.top)-Wr(o==null?void 0:o.top)),left:Math.round(Wr(i==null?void 0:i.left)-Wr(o==null?void 0:o.left)),bottom:Math.round(Wr(i==null?void 0:i.bottom)-Wr(o==null?void 0:o.top)),right:Math.round(Wr(i==null?void 0:i.right)-Wr(o==null?void 0:o.left))}},fl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Wr(e==null?void 0:e.width),height:Wr(e==null?void 0:e.height)}};var T1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:u,videoEpisodes:v,previewThumbsData:$,uiConfig:p,coreConfig:_,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:P,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,additionalButtons:H,additionalSettingsMenuItems:Y,additionalContextMenuItems:O,playPrevVideo:J,playNextVideo:re,looped:Z=!1,statistics:me,saveRate:de,internalsExposure:Le,playerView:Me})=>{var vv,gv,hv;let ve=Nt(q({},_),{configName:[...(vv=_.configName)!=null?vv:[],"ui"],isAudioDisabled:s,live:Nt(q({},(gv=_.live)!=null?gv:{}),{isLiveCatchUpMode:!!n})}),le=p,Ae=$t.Tracer.createRootTracer(le.features.saveTraceInfoToFile),se=Ae.createComponentTracer("Store"),N=w||new gi.Player(ve,Ae);Le==null||Le.expose({corePlayer:N});let Re=new $t.Logger,ie=new au(Re,{loadTimeout:le.ads.loadTimeout,initTimeout:le.ads.initTimeout,runtimeTimeout:le.ads.runtimeTimeout,useAdmanFromNPM:le.ads.useAdmanFromNPM,volumeMultiplier:le.ads.volumeMultiplier,isVsidOriginal:le.ads.isVsidOriginal}),je=na.getInstance(),oe=u==null?void 0:u.pictureInPictureApi,G=u==null?void 0:u.annotationsApi,K=Re.createComponentLog("Store"),Ve,Ne,et={},xe=new Hc,we=me&&me.oneStat?Zt(me.oneStat.vsid$):ar(void 0),Be=ue(bs()),Xe=ue(!1),nt=(hv=oe==null?void 0:oe.info.isActive$)!=null?hv:new $t.ValueSubject(!1),ht=ue(0),tt=ue([]),vt=(0,$t.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>tt.update(x=>[...x,c])),Pt=ar(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Yt=c=>Mt(void 0,null,function*(){var ce;let x=Object.values($t.InterfaceLanguage).includes(c);if(le.downloadVKLanguages&&(x&&le.updateBuiltinLanguages||!Zp(c))){let Qe;try{Qe=yield(0,$t.loadVKLangPack)(c,dh,ch)}catch(St){(ce=me==null?void 0:me.oneStat)==null||ce.logError({errorType:"VKLangPack",fatal:!1}),je==null||je.report(St,{errorType:"VKLangPack",fatal:!1})}Qe&&(Yp({language:c,pack:Qe,fallback:le.defaultLanguage}),Wt.set(c))}Zp(c)&&Wt.set(c)}),Wt=ue(t),Gt=ue(e);Yt(t);let ge=(c,x)=>{let D=Se(Wt);return Xp(D,c,x,le.defaultLanguage)},j=ue("thumb"),Ie=(()=>{let c=xi([Pt,j],([x,D])=>x?"crashed":D);return Nt(q({},c),{is:x=>Se(c)===x})})(),ae=(()=>{let c=ue(new Set(y));return Nt(q({},c),{add:x=>{c.update(D=>new Set([...D].concat(x)))},remove:x=>{c.update(D=>{let ce=[...D];return new Set(Array.isArray(x)?ce.filter(Qe=>!x.includes(Qe)):ce.filter(Qe=>Qe!==x))})},includes:x=>{let D=Se(c);return Array.isArray(x)?x.every(ce=>D.has(ce)):D.has(x)}})})();se.log("create store"),K({message:"create store"});let He=c=>{let x=c.container;x.append(N.experimental.element$.getValue()),De=new MutationObserver(D=>{let{removedNodes:ce}=D[0];ce.length&&x.append(N.experimental.element$.getValue())}),De.observe(x,{childList:!0})},qe=c=>{K({message:`init video, config: ${JSON.stringify(c)}`}),C?He(c):($t.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,$t.now)()]}),N.initVideo(c)),se.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),Ve=c},it=new $t.Subject,dt=c=>it.next(c),Ze=new $t.Subject,Je=new $t.Subject,ct=new $t.Subject,De=null,yt={actionRewind$:Ze,actionSeek$:Je,inPiP$:nt,inFullscreen$:new $t.Observable(c=>Be.subscribe(x=>c.next(x))),actionSetSubtitle$:ct,nextMovie$:it},We={actionSeek$:Je};if(me){let{oneStat:c,thinOneStat:x,statSubscription:D}=me;c&&(C||D.add(c.attachTo(N)),D.add(c.attachToUi(yt)),D.add(c.attachToAds(ie.events)),c.authorize(a).catch(ce=>{K({message:`onestat auth error ${String(ce)}`})})),x&&(D.add(x.attachTo(N)),D.add(x.attachToUi(We)),x.authorize(a))}if(je){let c=new $t.Subscription,x=(D,ce)=>c.add(D.subscribe(ce));if(x(N.events.managedError$,D=>{je.logIError(D)}),x(N.events.fatalError$,D=>{je.logIError(D,!0)}),me){let{oneStat:D}=me;D&&x(D.experimental.error$,ce=>{je.logIError(ce)})}je.sentrySubscription.add(c)}let At=()=>{gi.clientChecker.device.isIOS&&Ne&&Kh(Ne).catch(c=>{K({message:`exitIosSafariFullscreen failed: ${c}`})})},ai=new $t.Subscription().add(N.experimental.element$.subscribe(c=>{c&&(Ne=c,c.classList.add("player-media"),sa(oe)&&(oe.updateVideoElement(),oe.registryEventHandlers()),C&&c.setAttribute("pip","false"),Me==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;At(),(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(()=>Mt(void 0,null,function*(){var x,D;sa(oe)&&(yield oe==null?void 0:oe.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(D=et.onStarted)==null||D.call(et,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var D;(D=l==null?void 0:l.onSeek)==null||D.call(l,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(N.info.position$.subscribe(c=>{var D;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((D=l==null?void 0:l.onTimeupdate)==null||D.call(l,x,c),ie.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(()=>{Vt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Vt.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&ae.add(nd),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(ie.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(ie.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(ie.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(ie.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(ie.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(ie.events.started$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:D.call(x,c)})).add(ie.events.timeRemained$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:D.call(x,c)})).add(ie.events.ended$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:D.call(x,c)})).add(ie.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(ie.events.clicked$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:D.call(x,c)})).add(ie.events.closed$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:D.call(x,c)})).add(ie.events.error$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:D.call(x,c)})).add(ie.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(ie.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)})),ei=new $t.Subscription,li=()=>{var St,Bt,Qt;let{debugLog:c}=le,x,D="#9df7b7",ce="#efd169";if(c&&c!==!0){let{colors:Ot}=c;x=c.tag,D=(St=Ot==null?void 0:Ot[0])!=null?St:D,ce=(Qt=(Bt=Ot==null?void 0:Ot[1])!=null?Bt:Ot==null?void 0:Ot[0])!=null?Qt:ce}let Qe=x?`: ${x}`:"";ei.add(N.events.log$.subscribe(Ot=>{console.debug(`%c sdk${Qe} `,`background:${D};`,`sdk component: ${Ot.component}`,Ot.message)})).add(Re.log$.subscribe(Ot=>{console.debug(`%c ui${Qe} `,`background:${ce};`,`ui component: ${Ot.component}.`,Ot.message)}))},Ui=()=>{ei.unsubscribe()},Ji=(c,x)=>{se.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},zi=(c=!1)=>{se.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},bo=(c,x,D)=>{se.log("move camera focus px",{xpx:c,ypx:x,dt:D}),N.moveCameraFocusPX(c,x,D)},Ho=()=>{N.holdCamera()},rt=()=>{N.releaseCamera()},_t=ar(N.info.position$.getValue(),c=>{let x,D,ce=()=>{let Qe=N.info.playbackState$.getValue(),St=N.info.isLive$.getValue(),Bt=N.info.duration$.getValue(),Qt=N.info.position$.getValue();if(Qe&&[gi.PlaybackState.PLAYING,gi.PlaybackState.PAUSED].includes(Qe)){let Ot=St?Qt-Bt:N.getExactTime();Ot!==D&&c(Ot),D=Ot}x=requestAnimationFrame(ce)};return ce(),()=>cancelAnimationFrame(x)}),Ci=Zt(N.info.playbackState$),X=Zt(N.info.currentBuffer$),ti=Zt(N.info.isEnded$),di=Zt(N.info.isLive$),qi=le.features.playbackRate?Zt(N.info.canChangePlaybackSpeed$):ar(!1),ni=Zt(N.info.liveBufferTime$),hi=Zt(N.info.volume$),ci=Zt(N.info.muted$),pt=Fc(N.info.predefinedQualityLimitType$.pipe((0,$t.map)(c=>c===gi.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===gi.PredefinedQualityLimits.TRAFFIC_SAVING),$o=Fc(N.info.predefinedQualityLimitType$.pipe((0,$t.map)(c=>c===gi.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===gi.PredefinedQualityLimits.HIGH_QUALITY),Tt=Zt(N.info.autoQualityLimitingAvailable$),Kt=Zt(N.info.availableQualities$),ii=Zt(N.info.availableQualitiesFps$),no=Zt(N.info.chromecastState$),Kn=Zt(N.info.chromecastDeviceName$),Wi=Zt(N.info.currentFormat$),Eo=Zt(N.info.throughputEstimation$),ui=Zt(N.info.videoBitrate$),It=Zt(N.info.intrinsicVideoSize$),yo=Zt(N.info.duration$),Fo=Zt(N.info.isAudioAvailable$),pi=null,Po=N.info.isBuffering$,ro=ar(Po.getValue(),c=>{let x=Po.subscribe(D=>{D&&pi===null?pi=window.setTimeout(()=>{c(Po.getValue()),pi=null},le.loaderDelay):c(D)});return()=>{x.unsubscribe(),pi&&clearTimeout(pi)}}),Ao=()=>{pi&&clearTimeout(pi),pi=null},Uo=xi([yo,di],([c,x])=>x?-c:c),En=xi([Ci],([c])=>c===gi.PlaybackState.PLAYING),Oi=Zt(N.info.atLiveEdge$),Pn=Zt(N.info.atLiveDurationEdge$),so=Zt(N.info.position$),Mo=xi([so,yo],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Tr=xi([no],([c])=>c===gi.ChromecastState.CONNECTED),dr=Zt(N.info.availableVideoStreams$),An=le.features.audioLanguages?Zt(N.info.availableAudioStreams$):ar([]),Qn=Zt(N.info.currentVideoStream$),Gn=Zt(N.info.currentAudioStream$),xo=c=>{c.language&&jp(c.language),N.setVideoStream(c)},gn=c=>{c.language&&jp(c.language),N.setAudioStream(c)},Mn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ce=>"isDefault"in ce&&ce.isDefault)),x)return x;let D=Vh();return D&&(x=c.find(({language:ce})=>D===ce)),x!=null||(x=c.at(0)),x},st=!1;ai.add(N.info.availableAudioStreams$.subscribe(c=>{if(!st&&c.length){let x=Mn(c);x&&(N.setAudioStream(x),st=!0)}}));let Ln=!1;ai.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Ln&&c.length){let x=Mn(c);x&&(N.setVideoStream(x),Ln=!0)}}));let Go=ue(void 0),jo=Zt(N.info.isAutoQualityEnabled$,c=>c&&Go.set(void 0)),Ir=Zt(N.info.currentQuality$,()=>Go.set(void 0)),Yo=xi([Go,Ir],([c,x])=>c!=null?c:x),Vn=xi(Wi,c=>c!==gi.VideoFormat.MPEG),jn=xi([Kt,ii,jo,Yo,Vn],([c,x,D,ce,Qe])=>{let St=[];Qe&&St.push({value:"auto",displayValue:ge("auto_quality_option"),selected:D});let Bt=c.filter(Qt=>!(0,$t.isInvariantQuality)(Qt));for(let Qt of Bt){let Ot=x[Qt];St.push({value:Qt,displayValue:`${Qt}${Ot?$1(Ot):""}`,selected:D?!1:Qt===ce})}return St}),Rn=Zt(N.info.currentPlaybackRate$),Zo=xi([Rn,Oi,Pn],([c,x,D])=>{let ce=D||C?1:le.controls.playbackRateMin,Qe=x?1:le.controls.playbackRateMax,St=le.controls.playbackRateStep,Bt=[];for(let Qt=ce;Qt<=Qe;Qt+=St)Bt.push({value:Qt,displayValue:Qt===1?ge("playback_rate_1"):ge("playback_rate",{multiplier:Qt.toString(10)}),selected:c===Qt});return Bt}),Ki={displayValue:ge("subtitles_off"),value:"off"},ao=ue(q({},Ki)),Lo=le.features.subtitles?Zt(N.info.availableTextTracks$):ar([]),hn=Ch(),Xo=xi([Lo,ao],([c,x],D)=>{var St;let ce=[],Qe=c.find(({id:Bt})=>Bt===x.value);if(Qe!=null&&Qe.url){let[,Bt]=(St=hn.find(Qe.url))!=null?St:[];if(Bt){D(Bt);return}xe.download(Qe.url).then(Qt=>{if(!Qt||xe.isDestroyed())return;let Ot=new y1,cs=Qe.language;if(cs){let g0=!!Qe.isAuto,h0=Ot.parse(Qt,cs);ce.push({lang:cs,subtitles:h0,isAuto:g0,id:Qe.id})}hn.add(Qe.url,ce),Se(ao).value===x.value&&D(ce)}).catch(Qt=>{var Ot;(Ot=me==null?void 0:me.oneStat)==null||Ot.logError({errorType:"Subtitles download",fatal:!1}),je==null||je.report(Qt,{errorType:"Subtitles download",fatal:!1})})}D(ce)}),Jo=xi([Rn,En,ao],([c,x,D],ce)=>{let Bt;if(N.info.isLive$.getValue()&&x&&D.value!==Ki.value){let Ot=()=>{let cs=1e3/(3*c);Bt=setTimeout(Ot,cs),ce(Date.now())};return Ot(),()=>clearTimeout(Bt)}}),Mi=xi([Lo,ao],([c,x])=>{if(!c.length)return[];let D=[];for(let{language:ce,isAuto:Qe,id:St}of c){let Bt=ce&&pu(ce);ce&&Bt&&D.push({displayValue:Qe?ge("subtitles_auto",{language:Bt}):Bt,value:St,selected:(x==null?void 0:x.value)===St,isAuto:Qe})}return D.length?(D.unshift(Nt(q({},Ki),{selected:(x==null?void 0:x.value)===Ki.value})),D):[]}),zo={available:[],prev:[]},Vo=()=>{var x,D;let c=N.experimental.getCurrentTime$.getValue();return(D=(x=c==null?void 0:c())!=null?x:Ne==null?void 0:Ne.currentTime)!=null?D:0},cr=xi([_t,ao,Xo,Jo],([c,x,D,ce])=>{var St;let Qe=N.info.isLive$.getValue();if(Qe&&zo.prev!==D){let Bt=D.find(({id:Ot})=>Ot===x.value),Qt=zo.prev.find(({id:Ot})=>Ot===x.value);if(Bt){let Ot=Nt(q({},Bt),{subtitles:[...(St=Qt==null?void 0:Qt.subtitles)!=null?St:[],...Bt.subtitles]});zo.available=[Ot],zo.prev=D}}if(x&&x.value!==Ki.value){let Bt=Qe?Vo():c,Qt=Qe?zo.available:D;return S1(Bt,x,Qt,Qe)}}),_n=xi([cr],([c])=>c!=null&&c.texts?c.texts:[]);ai.add(ao.subscribe(c=>{var x,D;if(c.value===Ki.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let ce=Object.entries(uu).find(([Qe,St])=>St===c.displayValue);(D=l==null?void 0:l.onSubtitleOn)==null||D.call(l,ce?ce[0]:"")}}));let bn=ue(!0),kr=xi([X,Uo,so,ni],([c,x,D,ce])=>{var Qt;let Qe=(Qt=c==null?void 0:c.end)!=null?Qt:0;if(!ce)return Qe/x;let Bt=-D+ce-x;return(Qe-Bt)/x}),qo=Zt(N.info.availableSources$),Er=xi([qo],([c])=>Object.keys((c==null?void 0:c[gi.VideoFormat.MPEG])||{}).length>0),Dn=()=>{var D,ce,Qe;let c=Object.keys(((ce=(D=N.info.availableSources$)==null?void 0:D.getValue())==null?void 0:ce[gi.VideoFormat.MPEG])||{}),x=(0,$t.getHighestQuality)(c)||$t.VideoQuality.Q_144P;return(Qe=Ve.sources[gi.VideoFormat.MPEG])==null?void 0:Qe[x]},Yn=()=>{var x;let c=Dn();if(c)se.log("download video",{url:c}),xh(c,((x=Ve==null?void 0:Ve.meta)==null?void 0:x.title)||"video");else{let D="There is no URL for download video";se.log("download video",{message:D}),K({message:D})}},ur=()=>{K({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Ro(fi()):Ti(!c)},Pr=()=>{var c;if(Vt.ui.settingsMenu.visible$.set(!1),!Se(Vt.ui.settingsSubMenu.visible$)){let x=Se(Vt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ce=fl(x),Qe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ce,position:Qe,name:"settings"})}}se.log("close settings menu")},Zn=(c,x=()=>Promise.resolve())=>Mt(void 0,null,function*(){var Qe;Vt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Vt.ui.settingsMenu.visible$.set(!0),yield x();let D=Se(Vt.ui.settingsMenu.ref$),ce=Rs();if((Qe=l==null?void 0:l.uiInfo)!=null&&Qe.onSettingsMenu&&D&&ce){let Bt=fl(D),Qt=pl(D,ce);l.uiInfo.onSettingsMenu({visible:!0,size:Bt,position:Qt,name:"settings"})}se.log("open settings menu",{wasOpenedByKeyboard:c})}),$n=(c,x=!1)=>{var St;Vt.ui.settingsSubMenu.visible$.set(!1);let D=Se(Vt.ui.settingsMenu.ref$),ce=Rs(),Qe=Se(Vt.ui.settingsMenu.visible$);if((St=l==null?void 0:l.uiInfo)!=null&&St.onSettingsMenu&&D&&ce)if(Qe&&!x){let Qt=fl(D),Ot=pl(D,ce);l.uiInfo.onSettingsMenu({visible:!0,size:Qt,position:Ot,name:"settings"})}else{let Qt=fl(c),Ot={top:0,left:0,bottom:0,right:0},cs=Se(Vt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Qt,position:Ot,name:cs})}se.log("close settings sub menu")},Ar=(c,x)=>{var ce;Vt.ui.settingsSubMenu.visible$.set(!0),Vt.ui.settingsSubMenu.ref$.set(x),Vt.ui.settingsSubMenu.name$.set(c);let D=Rs();if((ce=l==null?void 0:l.uiInfo)!=null&&ce.onSettingsMenu&&x&&D){let St=fl(x),Bt=pl(x,D);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:St,position:Bt})}se.log("open settings sub menu",{name:c})},fi=()=>{var x;let c=Math.max(le.volumeMinRestore,(x=Uc())!=null?x:0);return c===0?le.volumeDefault:c},Ro=c=>{let x=c===0?fi():c,D=N.info.muted$.getValue();K({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),D&&c>0&&!s&&(D=!1,Qp(!1)),N.setVolume(c,D),ie.setVolume(c),Up(x)},Ti=c=>{let x=N.info.volume$.getValue();if(K({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c),ie.setVolume(c?0:x),Qp(c),!c&&x===0){let D=fi();N.setVolume(D),Up(D),ie.setVolume(D)}},Xn=ue(!1),ft=c=>{var x,D;se.log("set looped",{isLooped:c}),Xn.set(c),N.setLooped(c),(D=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||D.call(x,c)};ft(Z);let Ft=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Li=(c,x=!1)=>{var D;K({message:`set autoplayNextEnabled, value: ${c}`}),se.log("set autoplay next enabled",{autoplayNextEnabled:c}),Vt.ui.autoplayNextEnabled$.set(c),Nh(c),x&&((D=l==null?void 0:l.onSetAutoplayNextEnabled)==null||D.call(l,c))},Do=c=>{K({message:`set timerNextVideoRunning, value: ${c}`}),se.log("set timer next video running",{timerNextVideoRunning:c}),Vt.ui.timerNextVideoRunning$.set(c)},at=(c=!0)=>{var ce;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(ce=l==null?void 0:l.onPrevVideoClick)==null?void 0:ce.call(l)}catch(Qe){K({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&mi("prev")||J()},jt=(c=!0)=>{var ce;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(ce=l==null?void 0:l.onNextVideoClick)==null?void 0:ce.call(l)}catch(Qe){K({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&mi("next")||re()},mi=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:D,playbackStatusShow:ce}}=le;return D&&ce&&!x?(Vt.ui.aboutToGoNextVideo.set(c),Vt.ui.userActionsDisabled.set(!0),!0):!1},eo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},to=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Vi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},wi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},io=()=>{N.prepare()},Ii=()=>{(0,$t.assertNonNullable)(Vt);let c=Se(Vt.ui.controls.disabledControls$),x=Se(Vt.playerPhase),D={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(K({message:"toggle play"}),x==="ads"){D.action="play",se.log("toggle adman play",D),ie.togglePlay();return}let ce=()=>{var St;K({message:"toggle play, call player.play"}),D.action="play",N.play(),(St=l==null?void 0:l.onPlay)==null||St.call(l)},Qe=()=>{var St;K({message:"toggle play, call player.pause"}),D.action="pause",N.pause(),(St=l==null?void 0:l.onPause)==null||St.call(l)};if(N.info.isEnded$.getValue()){if(K({message:"toggle play, video ended, seek to 0"}),Ze.next(),Je.next(Kr.SeekAction.REWIND),C){P==null||P();return}N.seekTime(0),ce()}else N.info.playbackState$.getValue()!==gi.PlaybackState.PLAYING?ce():Qe();se.log("toggle play",D)},lo=(c,{changeReason:x="default",appliesTo:D="to-video"}={})=>{K({message:`set quality, quality: ${c}`}),se.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(le.features.qualityDetailsSubMenuEnabled?(zc({type:"exact_quality",quality:c,videoId:i},D),ad(),N.setPredefinedQualityLimits(gi.PredefinedQualityLimits.UNKNOWN)):zp(i,c),Go.set(c),N.setQuality(c)):le.features.qualityDetailsSubMenuEnabled?x==="default"&&(pr("auto_quality",D),Se(pt)&&Qi(!1),Se($o)&&yn(!1)):ad()},Qi=(c,x="as-default")=>{K({message:`set trafficSavingEnabled, value: ${c}`}),se.log("set traffic saving enabled",{trafficSavingEnabled:c});let D=c?gi.PredefinedQualityLimits.TRAFFIC_SAVING:gi.PredefinedQualityLimits.UNKNOWN;le.features.qualityDetailsSubMenuEnabled?(Jn(D,x),sd(!1)):(N.setPredefinedQualityLimits(D),sd(c))},yn=(c,x="as-default")=>{K({message:`set highQualityEnabled, value: ${c}`}),se.log("set high quality enabled",{highQualityEnabled:c}),Jn(c?gi.PredefinedQualityLimits.HIGH_QUALITY:gi.PredefinedQualityLimits.UNKNOWN,x)},Jn=(c,x)=>{c!==gi.PredefinedQualityLimits.UNKNOWN&&(Se(Tt)&&!Se(jo)&&lo("auto",{appliesTo:x,changeReason:"limit-changed"}),pr(c,x)),N.setPredefinedQualityLimits(c)},pr=(c,x)=>{zc({type:c,videoId:i},x),x==="as-default"&&zc({type:c,videoId:i},"to-video")},er=c=>{se.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),le.features.saveRate&&de&&!N.info.isLive$.getValue()&&Rh(c)},Mr=()=>{let c=Se(Zo),x=c.findIndex(({selected:ce})=>ce);if(x===c.length-1)return;let D=c[x+1];er(D.value)},fr=()=>{let c=Se(Zo),x=c.findIndex(({selected:ce})=>ce);if(x===0)return;let D=c[x-1];er(D.value)},xn=(c=Nt(q({},Ki),{selected:!1}))=>{se.log("set subtitles",q({},c)),c&&c.value!==Ki.value&&ct.next(c.isAuto?c.value+"_auto":c.value),ao.set(c)},Nn=()=>{se.log("toggle subtitles");let c=Se(Mi),x=Se(ao),D=Se(Wt);if((x==null?void 0:x.value)===Ki.value){let ce=c.filter(Qe=>Qe.value!==Ki.value).find(Qe=>Qe.value===D)||c[1];xn(ce)}else xn()},en=(c,x,D=!0)=>{var ce;if(K({message:`seek to time, time: ${c}`}),se.log("seek to time",{time:c,action:x,forcePrecise:D}),Je.next(x),N.info.isLive$.getValue()){let Qe=N.info.duration$.getValue(),St=Math.min(0,Qe+c);N.seekTime(St,D)}else{if(E!=null&&E.getValue())return;N.info.isEnded$.getValue()&&(K({message:"seek after ended, call callbacks.onPlay"}),(ce=l==null?void 0:l.onPlay)==null||ce.call(l)),N.seekTime(mv(c),D)}},tn=c=>{K({message:`seek to episode start time: ${c}`}),se.log("seek to episode start time",{time:c}),en(c,Kr.SeekAction.EPISODE,!0)},tr=(c,x)=>{K({message:`seek to percent, percent: ${c}`}),se.log("seek to percent",{percent:c,action:x});let D=Se(Uo)*c;en(D,x,!1)},Lr=c=>{K({message:`seek external, time: ${c}`}),se.log("seek external",{time:c}),Je.next(Kr.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Vr=c=>{var ce,Qe;let x=(ce=c.max)!=null?ce:"none",D=(Qe=c.min)!=null?Qe:"none";K({message:`set auto quality limitation. Max: ${x}. Min: ${D}`}),se.log("set auto quality limits",{max:x,min:D}),N.setAutoQualityLimits(c)},mr=c=>{K({message:`seek external to episode start time: ${c}`}),se.log("seek external to episode start time",{time:c}),en(c,Kr.SeekAction.EPISODE,!0)},wo=c=>{K({message:`set playback rate to: ${c}`}),se.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Bn=ue(void 0),ir=ue(!1),Rr=c=>{K({message:`start scrubbing, progress: ${c}`}),se.log("start scrubbing",{progress:c}),ir.set(!0),ut(c)},ut=c=>{Bn.set(c)},Ut,Ri,ye=()=>{Bn.set(void 0),ir.set(!1)},kt=()=>{clearTimeout(Ri),clearTimeout(Ut),Ut=window.setTimeout(()=>{ye()},500),Ne==null||Ne.removeEventListener("seeked",kt)},_i=c=>{K({message:`complete scrubbing, progress: ${c}`}),se.log("complete scrubbing",{progress:c}),tr(c,Kr.SeekAction.SLIDER),Se(Vt.ui.isMobile)&&Se(Vt.state.currentFormat$)===gi.VideoFormat.HLS?(Ne==null||Ne.addEventListener("seeked",kt),Ri=window.setTimeout(()=>{kt()},300)):ye()},ki=xi([_t,Uo,Bn],([c,x,D],ce)=>{ce((0,$t.isNonNullable)(D)?D*x:c)}),co=ue(!1),vi=()=>{co.set(!0)},ke=()=>{co.set(!1)},Lt=ue({width:0,height:0}),Xt=xi([Lt],([{width:c}],x)=>{let D=p1(c);x(D)}),Si=ue(!1),oi=H.filter(c=>wh(c)),Dr=xi([Xt,Si],([c,x])=>x?oi.filter(D=>!D.hideOnMobile):oi.filter(D=>{var ce;return!((ce=D.hideOnDesktopGridTypes)!=null&&ce.includes(c))})),oo=ue(H.filter(c=>Sh(c))),Nr=xi([oo,Xt],([c,x])=>c.filter(D=>{var ce;return!((ce=D.hideOnDesktopGridTypes)!=null&&ce.includes(x))})),As=xi([Nr,Dr],([c,x])=>[...le.features.additionalButtonsDesktopControlPanelRight?c.filter(D=>D.type==="desktop-control-panel-right"):[],...le.features.additionalButtons?x.map((D,ce)=>{var Qe;return{id:ce,weight:ce,type:"desktop-control-panel-right",testId:D.testId,icon:D.iconUrl,onClick:D.onClick,ariaLabel:(Qe=D.ariaLabel)!=null?Qe:D.tooltip,tooltipText:D.tooltip}}):[]]),on=ue(Y),Ea=xi([on],([c])=>le.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?Nt(q({},x),{onClick:x.onChangeEnabled}):x):[]),Ms=(c,x)=>{let D=Se(oo).map(ce=>ce.id!==c?ce:q(q({},ce),x));oo.set(D)},Cl=c=>{let x=Se(oo);if(x.some(D=>D.id===c.id)){K({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),oo.set(x)},Pa=c=>{let x=Se(oo);if(!x.some(D=>D.id===c)){K({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(D=>D.id!==c),oo.set(x)},Tl=c=>{Je.next(Kr.SeekAction.LIVE),K({message:"live switch to low latency "+c}),se.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Ls=(c,x)=>{let D=Se(on).map(ce=>ce.id!==c?ce:q(q({},ce),x));on.set(D)},Il=c=>{let x=Se(on);if(x.some(D=>D.id===c.id)){K({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),on.set(x)},Aa=c=>{let x=Se(on);if(!x.some(D=>D.id===c)){K({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(D=>D.id!==c),on.set(x)},or=ue(O),Vs=xi([or],([c])=>le.features.additionalContextMenuItems?c:[]),xt=(c,x)=>{let D=Se(or).map(ce=>ce.id!==c?ce:q(q({},ce),x));or.set(D)},bt=c=>{let x=Se(or);if(x.some(D=>D.id===c.id)){K({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),or.set(x)},uo=c=>{let x=Se(or);if(!x.some(D=>D.id===c)){K({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(D=>D.id!==c),or.set(x)},Wo=xi([Si,Pt],([c,x],D)=>{D(c&&x)}),po=()=>{Je.next(Kr.SeekAction.LIVE),K({message:"switch to active live"}),se.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==gi.PlaybackState.PLAYING&&Vt.actions.internal.togglePlay()},ri=()=>{se.log("skip adman"),ie.skip()},Hi=(c=!0)=>{(0,$t.assertNonNullable)(Vt),K({message:`switch from ads to video, callPlay: ${c}`}),se.log("switch from ads to video",{callPlay:c}),j.set("video"),c&&N.play()},ds=()=>{(0,$t.assertNonNullable)(Vt),K({message:"switch from video to ads"}),se.log("switch from video to ads"),Vt.actions.internal.pause(),At(),j.set("ads")},kl=c=>{(0,$t.assertNonNullable)(Vt);let x=c?"LiveWaitingStart":"thumb";se.log("set live waiting start",{state:c,playerPhase:x}),j.set(x)},sc=c=>{(0,$t.assertNonNullable)(Vt);let x=c?"LiveWaitingRecover":"thumb";se.log("set live waiting recover",{state:c,playerPhase:x}),j.set(x)},Ou=c=>{(0,$t.assertNonNullable)(Vt);let x=c?"LiveWaitingRecord":"thumb";se.log("set live waiting record",{state:c,playerPhase:x}),j.set(x)},ac=()=>((0,$t.assertNonNullable)(Vt),se.log("get debug text data"),$h(N,Ve,Vt)),Hu=()=>((0,$t.assertNonNullable)(Vt),JSON.stringify(Ae.getFinishedSpans())),lc=()=>((0,$t.assertNonNullable)(Vt),yh(N,Ve,Vt)),Rs=()=>Ne,dc=()=>{K({message:"toggle chromecast"}),se.log("toggle chromecast"),N.toggleChromecast()},cc=c=>{var D;if((0,$t.assertNonNullable)(Vt),N.info.isEnded$.getValue())return;let x=!c;if(Se(Vt.playerPhase)==="ads"){K({message:`pause ads, internalCall: ${x}`}),se.log("pause ads",{internalCall:x}),ie.pause();return}K({message:`pause video, internalCall: ${x}`}),se.log("pause video",{internalCall:x}),x&&((D=l==null?void 0:l.onPause)==null||D.call(l)),N.pause()},El=c=>{var D;(0,$t.assertNonNullable)(Vt);let x=!c;if(Se(Vt.playerPhase)==="ads"){K({message:`play ads, internalCall: ${x}`}),se.log("play ads",{internalCall:x}),ie.play();return}K({message:`play video, internalCall: ${x}`}),se.log("play video",{internalCall:x}),x&&((D=l==null?void 0:l.onPlay)==null||D.call(l)),N.play()},Fu=c=>{(0,$t.assertNonNullable)(Vt);let x=!c;if(Se(Vt.playerPhase)==="ads"){K({message:"player cannot be stopped during ads via external method"});return}K({message:`player will be stopped, internalCall: ${x}`}),A==null||A()},Pl=(c,x)=>{(0,$t.assertNonNullable)(Vt),K({message:`first start, show ads: ${c}, internalCall: ${!x}`}),se.log("first start",{showAds:c,external:x}),c?j.set("ads"):(j.set("video"),x?N.play():Vt.actions.internal.togglePlay())},Al=()=>(K({message:"getting time codes"}),v),uc=()=>{let c=Al();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(D=>D.time>x)},Uu=c=>{let x=c;x||(x=uc());let D=N.info.position$.getValue();se.log("seek to next episode",q({currentTime:D},x)),x&&(K({message:"seek to next episode"}),en(x.time,Kr.SeekAction.EPISODE,!0))},Ke=()=>{let c=Al();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),D=c.findIndex(Qe=>Qe.time>x),ce=D===-1?c.length-2:D-2;if(!(ce<0))return c[ce]},si=c=>{let x=c;x||(x=Ke());let D=N.info.position$.getValue();se.log("seek to prev episode",q({currentTime:D},x)),x&&(K({message:"seek to prev episode"}),en(x.time,Kr.SeekAction.EPISODE,!0))},nn=()=>(K({message:"getting preview thumbs data"}),se.log("get preview thumbs data",q({},$)),$),Ds=()=>Mt(void 0,null,function*(){let c=oe==null?void 0:oe.isActive(),x="none";oe!=null&&oe.isActive()?(x="remove",yield oe==null?void 0:oe.remove()):(x="request",yield oe==null?void 0:oe.request()),se.log("toggle picture in picture",{isActive:c,action:x})}),rn=(c=-90)=>{se.log("rotate video",{alphaDiff:c}),ht.update(x=>x+c)},pc=ue([]);T==null||T.subscribe(c=>{let x=[];for(let D=0;D<c.length;D++){let{range:[ce,Qe],subjects:St}=c[D];D===0&&ce!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ce/1e3,text:"",interactive:!0,completed:le.features.interactiveTimeOpenUri?!St.length||St.every(Bt=>Bt.isRemoved):!St.length}),Qe!==1/0&&x.push({time:Qe/1e3,text:"",interactive:!1,completed:!0})}pc.set(x)});let f0=ue(!1);E==null||E.subscribe(c=>{c&&Se(ir)&&ye()});let mv=c=>{if(!C)return c;let x=Se(pc),D=Se(Uo),Qe=Se(so)/D,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},m0=()=>{Vt.ui.episodes.panelOpened$.set(!1)},v0=()=>{se.log("destroy store"),clearTimeout(Ri),clearTimeout(Ut),ai.unsubscribe(),ei.unsubscribe(),N.destroy(),ie.destroy(),me==null||me.destroy(),je==null||je.destroy(),vt.unsubscribe(),De==null||De.disconnect(),De=null,xe.destroy()},Vt={interfaceLanguage$:Wt,isCyrillicRelatedInterface$:Gt,initVideo:qe,videoId:i,isClip:o,playerPhase:Ie,vsid:we,state:{positionExact$:_t,positionWithScrubbing$:ki,duration$:Uo,playbackState$:Ci,isPlaying$:En,isLoaderVisible:ro,bufferedProgress$:kr,isLive$:di,canChangePlaybackSpeed$:qi,isActiveLive$:Oi,isOldestAvailableLive$:Pn,isRewindableLive$:Mo,isEnded$:ti,muted$:ci,volume$:hi,trafficSavingEnabled$:pt,highQualityEnabled$:$o,autoQualityLimitingAvailable$:Tt,availableVideoStreams$:dr,availableAudioStreams$:An,videoStream$:Qn,audioStream$:Gn,currentQuality$:Yo,isAutoQualityEnabled$:jo,availableQualities$:jn,currentPlaybackRate$:Rn,availablePlaybackRates$:Zo,currentSubtitle$:ao,availableTextTracks$:Lo,availableSubtitlesList$:Mi,currentSubtitleCaptions$:_n,isAutoSubtitleCaptionVisible$:bn,chromecastState$:no,chromecastDeviceName$:Kn,chromecastConnected$:Tr,currentFormat$:Wi,throughputEstimation$:Eo,videoBitrate$:ui,videoSize$:It,errorLog$:tt,crashed$:Pt,isAudioAvailable$:Fo,isAudioDisabled:!!s,canDownload:le.features.download&&!!d,availableSources$:qo,hasMpegSources$:Er,isInteractive:C,showInteractiveGraph:le.features.interactiveGraph,showSeekToInteractive:le.features.seekToInteractive,showPlayPrevChapter:le.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:le.features.interactiveTimeIndicator&&!!Se(pc).length,interactiveEpisodes$:pc,isInteractiveTime$:E?Zt(E):ue(!1),isInteractiveExpectation$:f0,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,looped$:Xn,loadedMetadata$:ue(!1),isAutoQualityAvailable$:Vn},ui:{t:ge,controlsVisible:ue(!1),touched:ue(!1),controls:{prevButton:ue(void 0),playButton:ue(void 0),replayButton:ue(void 0),nextButton:ue(void 0),playPrevChapterButton:ue(void 0),seekToInteractiveButton:ue(void 0),interactiveGraphButton:ue(void 0),liveButton:ue(void 0),time:ue(void 0),episodes:ue(void 0),volume:ue(void 0),subtitles:ue(void 0),settings:ue(void 0),context:ue(void 0),chromecast:ue(void 0),pip:ue(void 0),fullscreen:ue(void 0),vkLogo:ue(void 0),interactiveTimeIndicator:ue(void 0),timeline:ue(void 0),autoplayNextToggle:ue(void 0),additionalButtons:H.length?H.reduce(c=>[...c,ue(void 0)],[]):[],disabledControls$:ae},modals:{hotKeyMap:{show:ue(!1),data:ue({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Be,isFullscreenOpenedByKeyboard:Xe,rotateAlpha:ht,isAutoplay:ue(!1),debugPanelVisible:ue(!1),episodes:{panelOpened$:ue(!1),openedByKeyboard$:ue(!1)},contextMenu:{visible$:ue(!1),btnRef$:ue(void 0),openedByBtnKeyboard$:ue(!1),openedByHotKey$:ue(!1),lastActiveElem$:ue(void 0),showContextMenuBtn$:ue(!1),position$:ue({top:0,left:0})},playerSize:Lt,isMobile:Si,mobileNotReportControlHidden$:Wo,mobileUnmuteButtonExpanded:ue(!1),mobileUnmuteButtonVisible:ue(!1),icon3DVideoVisible:ue(!1),scrubbingInProgress:ir,volumeChangingInProgress:co,is3DVideo:ue(!1),currentGridType$:Xt,additionalButtonsDeprecated$:Dr,additionalDesktopControlPanelRightButtons$:As,additionalSettingsMenuItems$:Ea,additionalContextMenuItems$:Vs,interactiveHideMobileControls:ue(!1),overlayContainer$:ue(void 0),startedByKeyboard$:ue(!1),autoplayNextEnabled$:ue(!1),timerNextVideoRunning$:ue(!0),settingsMenu:{visible$:ue(!1),ref$:ue(void 0),openedByBtnKeyboard$:ue(!1)},settingsSubMenu:{visible$:ue(!1),ref$:ue(void 0),name$:ue(void 0)},aboutToGoNextVideo:ue(void 0),userActionsDisabled:ue(!1)},ads:{position:ue(0),duration:ue(0),playbackState:ue("inactive"),canSkip:ue(!1),secondsToWatchBeforeSkip:ue(0),postrollPassed:ue(!1)},webApi:{pictureInPictureApi:oe,annotationsApi:G},actions:{internal:{preload:io,firstStart:c=>Pl(c,!1),play:()=>El(!1),pause:()=>cc(!1),togglePlay:Ii,toggleMuted:ur,openSettingsMenu:Zn,closeSettingsMenu:Pr,openSettingsSubMenu:Ar,closeSettingsSubMenu:$n,setVolume:Ro,startVolumeChanging:vi,stopVolumeChanging:ke,setVideoStream:xo,setAudioStream:gn,setQuality:lo,setTrafficSavingEnabled:Qi,setHighQualityEnabled:yn,setPlaybackRate:er,incrementPlaybackRate:Mr,decrementPlaybackRate:fr,setSubtitle:xn,toggleSubtitle:Nn,togglePictureInPicture:Ds,startScrubbing:Rr,progressScrubbing:ut,completeScrubbing:_i,toggleChromecast:dc,switchToActiveLive:po,switchFromAdsToVideo:Hi,switchFromVideoToAds:ds,skipAd:ri,setLiveWaitingStart:kl,setLiveWaitingRecover:sc,setLiveWaitingRecord:Ou,getDebugTextData:ac,getTraceTextData:Hu,getDebugPanelData:lc,getVideoElement:Rs,seekTime:(c,x,D)=>en(c,x,D),clearDelayedBufferingCheckTimeout:Ao,seekEpisodeStartTime:tn,seekToPercent:tr,getNextEpisode:uc,seekToNextEpisode:Uu,getPrevEpisode:Ke,seekToPrevEpisode:si,startLogging:li,stopLogging:Ui,startCameraManualRotation:Ji,stopCameraManualRotation:zi,moveCameraFocusPX:bo,holdCamera:Ho,releaseCamera:rt,getVideoEpisodes:Al,getPreviewThumbsData:nn,downloadVideo:Yn,addLanguage:Yp,setLanguage:Yt,nextMovie:dt,videoRotate:rn,correctSeekTimeToInteractive:mv,replayInteractive:P,setLooped:ft,reportProblem:Ft,setAutoplayNextEnabled:Li,setTimerNextVideoRunning:Do,prevVideoClick:at,nextVideoClick:jt,nextVideoAnnouncementShow:eo,nextVideoAnnouncementClick:to,nextVideoAnnouncementAuto:Vi,nextVideoAnnouncementCancel:wi},external:{firstStart:c=>Pl(c,!0),play:()=>El(!0),pause:()=>cc(!0),stop:()=>Fu(!0),seekTime:c=>Lr(c),seekEpisodeStartTime:c=>mr(c),setPlaybackRate:c=>wo(c),setAutoQualityLimits:c=>Vr(c),setMuted:Ti,toggleSubtitle:Nn,setVolume:Ro,returnFocusToEpisodes:m0,updateAdditionalSettingsItem:Ls,addAdditionalSettingsItem:Il,removeAdditionalSettingsItem:Aa,updateAdditionalContextItem:xt,addAdditionalContextItem:bt,removeAdditionalContextItem:uo,updateAdditionalButton:Ms,addAdditionalButton:Cl,removeAdditionalButton:Pa,setLiveLowLatency:Tl}},callbacks:l,setUiCallbacks:c=>{et=q({},c)},getAdmanWrapper:()=>ie,getLogger:()=>Re,getPlayer:()=>N,destroy:v0};return Vt};function ha(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:v}=pl(e[i],t||void 0);return{left:s?l:0,right:s?v:0,top:s?d:0,bottom:s?u:0,isDisplayed:s}}var ml=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(ha(t,i,n,o))};var mu=(t,e,i)=>Mt(void 0,null,function*(){yield To(),e&&i&&(i.focus(),t.set(!1))});var N2=$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 Gf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=N2();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 jf(t,e){U(e,!0);let[i,o]=Oe(),n=()=>S(l,"$contextMenuVisible$",i),a=f(e,"disabled",3,!1),s=f(e,"ariaLabel",3,""),d=Ce(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,v=d.ui.contextMenu.showContextMenuBtn$,$=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,_=ee(void 0);ze(()=>{r(_)&&wt(()=>{p.set(r(_))})});let w=E=>{let P=xs(E),A=i1(r(_));$.set(A),u.set(P),l.set(!n())},y=()=>{v.set(!0)},C=()=>{v.set(!1)},T=m(()=>n()?"opened":"");Dt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:y,blur:C,get ariaExpanded(){return n()},get ref(){return r(_)},set ref(E){B(_,fe(E))},children:(E,P)=>{Gf(E,{})},$$slots:{default:!0}}),z(),o()}var B2=t=>{t.stopPropagation()},O2=L("<div><!> <div></div> <div></div></div>"),H2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
228
+ }`};function Of(t,e){U(e,!0),K(t,h2);let i=m(e,"isMobile",3,!1),o=v(()=>e.iconState===Df.ChromecastState.CONNECTED),n=v(()=>e.iconState===Df.ChromecastState.CONNECTING);var a=Oe(),s=fe(a);{var d=u=>{var f=v2(),b=h(f),p=h(b),$=h(p);xe(),g(p);var x=M(p);xe(),g(b);var _=M(b),C=h(_),T=h(C);g(C),xe(),g(_),g(f),E(()=>{De($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),De(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),De(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),y(u,f)},l=u=>{var f=g2();let b;var p=h(f),$=M(h(p),5);let x;g(p),g(f),E((_,C)=>{b=ee(f,0,"svelte-8z1bf5",null,b,_),x=ee($,0,"svelte-8z1bf5",null,x,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),y(u,f)};R(s,u=>{i()?u(d):u(l,!1)})}y(t,a),z()}var g1=require("@vkontakte/videoplayer-shared/es2015");function Td(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,g1.noop),s=Ie().ui.t,d=v(()=>e.state===v1.ChromecastState.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Bt(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)=>{Of(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var _2=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),b2={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 Hf(t,e){K(t,b2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),a=m(e,"translateYPx",3,0),s=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),l=J(void 0),u=J(void 0);function f(C){if(!r(u))return 0;let{width:T}=r(u).getBoundingClientRect(),k=T/2;return C<k?k+s():C>e.containerWidth-k?e.containerWidth-k-d():C}let b=v(()=>f(n()));var p=_2(),$=h(p);let x;var _=h($);he(_,()=>{var C;return(C=e.children)!=null?C:oe}),g($),mt($,C=>D(u,C),()=>r(u)),g(p),mt(p,C=>D(l,C),()=>r(l)),E(C=>{st(p,`transform: translate(${r(b)}px, ${a()}px);`),x=ee($,1,"tooltip svelte-5ygsa2",null,x,C),st($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),y(t,p)}var su=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var h1=t=>!!(Math.round(Math.abs(t)/90)%2),_1=t=>Math.abs(t)/90%4===1;var $2=L('<div class="preview svelte-1wqg760"></div>'),y2=L('<div class="time svelte-1wqg760"> </div>'),x2=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),w2={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){U(e,!0),K(t,w2);let[i,o]=Ne(),n=()=>S(x,"$rotateAlpha",i),a=()=>S(_,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),l=m(e,"isMobile",3,!1),u=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),b=m(e,"duration",3,0),p=m(e,"isInteractive",3,!1),$=Ie(),x=$.ui.rotateAlpha,_=$.ui.playerSize,C=J(0),T=J(0),k=J(""),P=J(0),A=J(0),I=J(0),V=J(0),q=v(()=>su(f(),b(),u())),G=v(()=>h1(n())),H=v(()=>_1(n())),Z=v(ce),re=v(()=>(r(H)?1:-1)*(r(C)/2-r(T)/2)),X=v(()=>r(re)*-1);Fe(()=>{(ve=>(D(C,me(ve.width)),D(T,me(ve.height))))(Ve())}),Fe(()=>{(ve=>(D(k,me(ve.imgSrc)),D(P,me(ve.imgWidth)),D(A,me(ve.imgHeight)),D(I,me(ve.imgOffsetX)),D(V,me(ve.imgOffsetY))))(Me(f()))});function ce(){var He;let ve=l()?s.MOBILE:s.DESKTOP,{isVertical:Y}=ue(),ie=30;return(He=r(q))!=null&&He.text&&(ie+=16),(Y||r(G))&&(ie+=18,ie+=50),Math.min(Math.max(a().height-ie,0),ve)}function ue(){let ve=e.previewThumbsData.frameWidth,Y=e.previewThumbsData.frameHeight,ie=Y>ve;return{width:ve,height:Y,isHorizontal:!ie,isVertical:ie}}function Ve(){let{height:ve,isHorizontal:Y,isVertical:ie,width:He}=ue();return Y&&(ve=ve/He*r(Z),He=r(Z)),ie&&(He=He/ve*r(Z),ve=r(Z)),{width:He,height:ve}}function Me(ve){let Y;e.previewThumbsData.isUV?Y=Math.floor(b()*ve/e.previewThumbsData.frequency):Y=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ve)));let ie=Math.floor(Y/e.previewThumbsData.countPerImage),He=Math.floor(Y%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Ye=Y%e.previewThumbsData.countPerRow,ye=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&ie===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ye=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ye++);let Se=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&ie===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Se=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Re=r(C)*Se,Ze=r(T)*ye,ut=-Ye*r(C),pt=-He*r(T);return{imgSrc:e.previewThumbsData.links[ie],imgWidth:Re,imgHeight:Ze,imgOffsetX:ut,imgOffsetY:pt}}var _e=x2();let ae;var Le=h(_e);{var ne=ve=>{var Y=$2();E(()=>st(Y,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(k)}); background-size: ${r(P)}px ${r(A)}px; background-position: ${r(I)}px ${r(V)}px;
229
+ transform: rotate(${n()}deg) ${r(G)?`translate(${r(re)}px, ${r(X)}px)`:""};
230
+ `)),y(ve,Y)};R(Le,ve=>{r(k)&&ve(ne)})}var B=M(Le,2),$e=h(B);{var de=ve=>{var Y=Oe(),ie=fe(Y);{var He=ye=>{var Se=Fr();E(Re=>ge(Se,Re),[()=>F("tooltip_episode_unfinished")]),y(ye,Se)},Ye=ye=>{var Se=Fr();E(()=>ge(Se,r(q).text||"")),y(ye,Se)};R(ie,ye=>{p()&&r(q).completed===!1?ye(He):ye(Ye,!1)})}y(ve,Y)};R($e,ve=>{r(q)&&ve(de)})}g(B);var Qe=M(B,2);{var te=ve=>{var Y=y2(),ie=h(Y,!0);g(Y),E(()=>ge(ie,d())),y(ve,Y)};R(Qe,ve=>{p()||ve(te)})}g(_e),E(ve=>{ae=ee(_e,1,"timeline-preview svelte-1wqg760",null,ae,ve),st(_e,`width: ${r(G)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),y(t,_e),z(),o()}var S2=L('<span class="time svelte-1jr6obn"> </span>'),C2=L("<!> <!>",1),T2={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Uf(t,e){var je,ft,Xe,it,ot;U(e,!0),K(t,T2);let[i,o]=Ne(),n=()=>S(re,"$interactiveEpisodes$",i),a=()=>S(I,"$duration$",i),s=()=>S(A,"$position$",i),d=()=>S(ue,"$isInteractiveExpectation$",i),l=()=>S(ce,"$isInteractiveTime$",i),u=()=>S(V,"$isLive$",i),f=()=>S(G,"$isMobile",i),b=()=>S(q,"$isActiveLive$",i),p=()=>S(P,"$bufferedProgress$",i),$=()=>S(_e,"$disabledControls$",i),x=m(e,"showTimeline",3,!1),_=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=Ie(),k=Gt(),P=T.state.bufferedProgress$,A=T.state.positionWithScrubbing$,I=T.state.duration$,V=T.state.isLive$,q=T.state.isActiveLive$,G=T.ui.isMobile,H=k.features.episodes&&_()?T.actions.internal.getVideoEpisodes():void 0,Z=T.actions.internal.getPreviewThumbsData(),re=T.state.interactiveEpisodes$,X=T.state.isInteractive,ce=T.state.isInteractiveTime$,ue=T.state.isInteractiveExpectation$,Ve=T.actions.internal.correctSeekTimeToInteractive,Me=(je=T.callbacks)==null?void 0:je.onDisabledTimelineClick,_e=T.ui.controls.disabledControls$,ae=(Xe=(ft=T.callbacks)==null?void 0:ft.uiInfo)==null?void 0:Xe.onTimelineMouseEnter,Le=(ot=(it=T.callbacks)==null?void 0:it.uiInfo)==null?void 0:ot.onTimelineMouseLeave,ne=T.ui.t,B=k.features.interactiveResponsiveUi,$e=v(()=>X?n():H),de=v(()=>sn(a())),Qe=v(()=>sn(s())),te=v(()=>s()/a()),ve=v(()=>d()||l()),Y=J(!1),ie=J(""),He=J(0),Ye=J(0),ye=J(0),Se=v(()=>({containerWidth:r(Ye),translateXPx:r(He),translateYPx:X&&Z?-36:-16,active:r(Y)&&x()&&!r(ve)&&!B,pointer:!k.features.timelinePreview||!Z||u()})),Re=ne("aria_timeline"),Ze=v(()=>ne("aria_timeline_value",{position:r(Qe),duration:r(de)}));function ut(Ke){return!Ve||!X?Ke:Ve(Ke*a())/a()}function pt(Ke){T.actions.internal.startScrubbing(ut(Ke))}function at(Ke){l()||T.actions.internal.progressScrubbing(ut(Ke))}function Et(Ke){T.actions.internal.completeScrubbing(ut(Ke)),D(Y,!1)}function $t(Ke,_t,qt){At(Ke,_t,qt),D(Y,!0)}function Jt(Ke,_t,qt){At(Ke,_t,qt),D(Y,!0)}function li(){D(Y,!1)}function At(Ke,_t,qt){D(ye,me(ut(Ke))),D(He,me(_t)),qt&&D(Ye,me(qt)),D(ie,me(Dt(Ke)))}function Dt(Ke){let _t=sn((u()?1-Ke:Ke)*a());return u()?`-${_t}`:_t}var O=C2(),be=fe(O);Hf(be,ns(()=>r(Se),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Ke,_t)=>{var qt=Oe(),et=fe(qt);{var Xt=tt=>{Ff(tt,{get time(){return r(ie)},get isMobile(){return f()},get videoEpisodes(){return r($e)},previewThumbsData:Z,get progress(){return r(ye)},get duration(){return a()},isInteractive:X})},ni=tt=>{var ei=S2(),Hi=h(ei,!0);g(ei),E(()=>ge(Hi,r(ie))),y(tt,ei)};R(et,tt=>{k.features.timelinePreview&&Z&&!u()?tt(Xt):tt(ni,!1)})}y(Ke,qt)},$$slots:{default:!0}}));var se=M(be,2);let Be=v(()=>Math.round(r(te)*100)),We=v(()=>$().has("TIMELINE"));ma(se,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return f()},ariaLabel:Re,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Be)},get ariaValueText(){return r(Ze)},get loadedProgress(){return p()},get filledProgress(){return r(te)},get handleProgress(){return r(te)},get videoEpisodes(){return r($e)},onPointerDown:pt,onHandleMove:at,onPointerMove:Jt,onPointerUp:Et,onPointerEnter:$t,onPointerLeave:li,onMouseEnter:ae,onMouseLeave:Le,onDisabledClick:Me,isInteractive:X,get disabled(){return r(We)},get hideHandel(){return l()},get ref(){return C()},set ref(Ke){C(Ke)}}),y(t,O),z(),o()}var I2={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 Id(t,e){U(e,!0),K(t,I2);let[i,o]=Ne(),n=()=>S(l,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"duration",3,0),d=Ie(),l=d.ui.isMobile,u=d.ui.t,f=v(()=>sn(s())),b=v(()=>sn(a())),p=v(()=>a()/s()),$=v(()=>u("aria_timeline_value",{position:r(b),duration:r(f)})),x=v(()=>Math.round(r(p)*100));ma(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(x)},get ariaValueText(){return r($)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var k2=L("<div><!></div>"),E2=L("<div></div>"),P2={hash:"svelte-1h5wsmk",code:".timeline.svelte-1h5wsmk {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1h5wsmk {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1h5wsmk {padding:0;}.timeline-stub.svelte-1h5wsmk {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1h5wsmk {height:8px;}"};function va(t,e){U(e,!0),K(t,P2);let[i,o]=Ne(),n=()=>S($,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(_,"$adPosition",i),d=()=>S(x,"$adDuration",i),l=m(e,"isAds",3,!1),u=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),b=m(e,"ref",15,void 0),p=Ie(),$=p.state.isLive$,x=p.ads.duration,_=p.ads.position,C=p.ui.isMobile,T=v(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var k=Oe(),P=fe(k);{var A=V=>{var q=k2();let G;var H=h(q);{var Z=X=>{Id(X,{get position(){return s()},get duration(){return d()}})},re=X=>{Uf(X,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return b()},set ref(ce){b(ce)}})};R(H,X=>{l()?X(Z):X(re,!1)})}g(q),E(X=>G=ee(q,1,"timeline svelte-1h5wsmk",null,G,X),[()=>({withoutPadding:!f(),mobile:a()})]),y(V,q)},I=V=>{var q=E2();let G;E(H=>G=ee(q,1,"timeline-stub svelte-1h5wsmk",null,G,H),[()=>({mobile:a()})]),y(V,q)};R(P,V=>{r(T)?V(A):V(I,!1)})}y(t,k),z(),o()}var b1=require("@vkontakte/videoplayer-shared/es2015");var A2=we('<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 zf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=A2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(3),g(o),E(()=>n=ke(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))),y(t,o)}var M2=we('<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 qf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=M2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var L2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),V2=L('<span class="text svelte-1yhs2ga"> </span>'),R2=L('<span class="text count svelte-1yhs2ga"> </span>'),N2=L("<!> <!>",1),B2={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 kd(t,e){var ue,Ve,Me;U(e,!0),K(t,B2);let[i,o]=Ne(),n=()=>S(x,"$currentGridType$",i),a=()=>S(_,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),b=Ie(),p=(Ve=(ue=b.callbacks)==null?void 0:ue.onEpisodeChanged)!=null?Ve:b1.noop,$=!!((Me=b.callbacks)!=null&&Me.onEpisodeClicked),x=b.ui.currentGridType$,_=b.ui.episodes.openedByKeyboard$,C=b.ui.episodes.panelOpened$,T=b.ui.isMobile,k=b.ui.t,P=J(void 0),A=_e=>{var Le,ne,B;if(!!((Le=b.callbacks)!=null&&Le.onEpisodeClicked)){let $e=ws(_e);_.set($e),C.set(!0),(B=(ne=b.callbacks)==null?void 0:ne.onEpisodeClicked)==null||B.call(ne,$e)}},I=J(null),V=v(()=>l()/u());Fe(()=>{var ae;let _e=su(r(V),u(),f());_e?((ae=r(I))==null?void 0:ae.time)!==_e.time&&(p(_e),D(I,me(_e))):D(I,null)});let q=v(()=>{var _e;return((_e=r(I))==null?void 0:_e.text)||""}),G=v(()=>Xi(n(),"xl")?"FULL":Xi(n(),"m")&&p1(n(),"xl")?"COUNT":"SHORT"),H=v(()=>`${k("tooltip_episodes")}: ${r(q)}`),Z=(_e,ae,Le)=>St(this,null,function*(){yield wo(),(_e==null?void 0:_e.getAttribute("aria-expanded"))==="false"&&ae&&!Le&&Ct(()=>{_.set(!1),_e.focus()})});Fe(()=>{Z(r(P),a(),s())});var re=Oe(),X=fe(re);{var ce=_e=>{let ae=v(()=>d()?"px-0":"");Bt(_e,{get className(){var Le;return`w-max btn-full-opacity btn-jc-l ${(Le=r(ae))!=null?Le:""}`},testId:"btn-episodes",click:A,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(H)},get ref(){return r(P)},set ref(Le){D(P,me(Le))},children:(Le,ne)=>{var B=Oe(),$e=fe(B);{var de=te=>{var ve=L2(),Y=fe(ve),ie=h(Y,!0);g(Y);var He=M(Y,2),Ye=h(He);qf(Ye,{}),g(He),E(()=>ge(ie,r(q))),y(te,ve)},Qe=te=>{var ve=N2(),Y=fe(ve);zf(Y,{});var ie=M(Y,2);{var He=ye=>{var Se=V2(),Re=h(Se,!0);g(Se),E(()=>ge(Re,r(q))),y(ye,Se)},Ye=(ye,Se)=>{{var Re=Ze=>{var ut=R2(),pt=h(ut,!0);g(ut),E(()=>ge(pt,f().length)),y(Ze,ut)};R(ye,Ze=>{r(G)==="COUNT"&&Ze(Re)},Se)}};R(ie,ye=>{r(G)==="FULL"?ye(He):ye(Ye,!1)})}y(te,ve)};R($e,te=>{d()?te(de):te(Qe,!1)})}y(Le,B)},$$slots:{default:!0}})};R(X,_e=>{r(I)&&_e(ce)})}y(t,re),z(),o()}var A1=require("@vkontakte/videoplayer-shared/es2015");var vi=require("@vkontakte/videoplayer-core/es2015"),xt=require("@vkontakte/videoplayer-shared/es2015"),Kr=require("@vkontakte/videoplayer-statistics/es2015");var qe=require("@vkontakte/videoplayer-shared/es2015"),Ji=require("@vkontakte/videoplayer-shared/es2015");var $1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var D2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",au=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new Ji.Subject,loadStarted$:new Ji.Subject,loadEnded$:new Ji.Subject,loadError$:new Ji.Subject,ready$:new Ji.Subject,slotRequested$:new Ji.Subject,started$:new Ji.Subject,timeRemained$:new Ji.Subject,paused$:new Ji.Subject,resumed$:new Ji.Subject,ended$:new Ji.Subject,empty$:new Ji.Subject,skipped$:new Ji.Subject,clicked$:new Ji.Subject,closed$:new Ji.Subject,error$:new Ji.Subject};this.loadAdman=e=>(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,qe.now)()]}),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?(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,qe.now)()]}),i(),this.events.loadEnded$.next()):(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,qe.now)()]}),o())};(0,Ji.addScript)(D2,e,this.loadTimeout).then(()=>{qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,qe.now)()]}),window.AdmanHTML?(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,qe.now)()]}),i(),this.events.loadEnded$.next()):(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,qe.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[(0,qe.now)()]}),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?(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,qe.now)()]}),i(),this.events.loadEnded$.next()):(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,qe.now)()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,qe.now)()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,qe.now)()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,qe.now)()]}),!d&&(window.AdmanHTML?(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,qe.now)()]}),i(),this.events.loadEnded$.next()):(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,qe.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,qe.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,qe.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Te(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;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,qe.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),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;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,qe.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,qe.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,qe.now)(),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:b}=e,p,$=this.playerState&&Te(this.playerState.vsid);$&&(this.isVsidOriginal?p=$:p=parseInt($,36));let{isEmbed:x,immediateOrigin:_}=(0,qe.detectEmbed)(),C=(P=x?_:window.location.href)!=null?P:window.location.href,T=Ht(W(Ht(W({},u),{dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:b}),p?{request_id:p}:{}),{duration:f,puid10:$1(i,o),puid11:n?0:1});b||delete T.preview;let k={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let A=new window.AdmanHTML;A.setDebug(!1),A.onReady(this.onAdsReady),A.onStarted(this.onAdStarted),A.onPlayed(this.onAdPlayed),A.onPaused(this.onAdPaused),A.adMidrollPoint(this.onAdMidrollPoint),A.onClosed(this.onAdClosed),A.onSkipped(this.onAdSkipped),A.onClicked(this.onAdClicked),A.onTimeRemained(this.onAdTimeRemained),A.onCompleted(this.onAdCompleted),A.onError(this.onAdError),A.init(k),this.adman=A,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(A){qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[(0,qe.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,qe.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.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(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adsState){this.log({message:"toggle play"});let i=Te(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(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,qe.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,u,f,b,p;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,qe.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(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),(b=this.adman)==null||b.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,Ji.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var y1=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 lu,{startTime:f,endTime:b}=u.parse(l);s.startTime=f,s.endTime=b}else if(l.trim()!==""){let u=new Kf,{texts:f}=u.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},lu=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}},Kf=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,b)=>{let p=s.indexOf(b,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 lu;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}},x1=Wf;var cu=require("@vkontakte/videoplayer-shared/es2015"),ga,Mi,Qf=0,Gf=!1,w1="",S1=(t,e=0,i=0)=>t<e&&t<i,du=(t,e=0,i=0)=>t>=e&&t<=i,O2=(t,e=0,i=0)=>t>e&&t>i,C1=(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})=>du(t,u,f));let a=t>=Qf,s=t<Qf;if(Qf=t,s&&(Gf=!1),(0,cu.isNonNullable)(ga)&&du(t,ga.startTime,ga.endTime)&&w1===e.value)return ga;if(!(0,cu.isNonNullable)(Mi)&&(n!=null&&n.length)&&!Gf){Mi=n.find(({startTime:u,endTime:f})=>du(t,u,f)||a&&S1(t,u,f)),ga=void 0,!(0,cu.isNonNullable)(Mi)&&n[n.length-1].endTime<t&&(Gf=!0);return}else{if(du(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime))return ga=Mi,Mi=void 0,w1=e.value,ga;(a&&O2(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime)||s&&S1(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime))&&(Mi=void 0)}};var uu={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"},H2={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"},pu=t=>{var e,i;return(i=(e=uu[t])!=null?e:uu[H2[t]])!=null?i:void 0};var T1=require("@vkontakte/videoplayer-shared/es2015"),hB=require("@vkontakte/videoplayer-statistics/es2015"),fu=class{constructor(e,i=new T1.Subscription){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Ed=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Ed||{});var Wr=t=>t!=null?t:0,ss=(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(Wr(i==null?void 0:i.top)-Wr(o==null?void 0:o.top)),left:Math.round(Wr(i==null?void 0:i.left)-Wr(o==null?void 0:o.left)),bottom:Math.round(Wr(i==null?void 0:i.bottom)-Wr(o==null?void 0:o.top)),right:Math.round(Wr(i==null?void 0:i.right)-Wr(o==null?void 0:o.left))}},gl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Wr(e==null?void 0:e.width),height:Wr(e==null?void 0:e.height)}};var I1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:u,videoEpisodes:f,previewThumbsData:b,uiConfig:p,coreConfig:$,player:x,disabledControls:_,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:k,replayInteractive:P,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,additionalButtons:q,additionalSettingsMenuItems:G,additionalContextMenuItems:H,playPrevVideo:Z,playNextVideo:re,looped:X=!1,statistics:ce,saveRate:ue,internalsExposure:Ve,playerView:Me})=>{var gv,hv,_v;let _e=Ht(W({},$),{configName:[...(gv=$.configName)!=null?gv:[],"ui"],isAudioDisabled:s,live:Ht(W({},(hv=$.live)!=null?hv:{}),{isLiveCatchUpMode:!!n})}),ae=p,Le=xt.TracerFactory.createRootTracer(ae.features.tracer),ne=Le.createComponentTracer("Store"),B=x||new vi.Player(_e,Le);Ve==null||Ve.expose({corePlayer:B});let $e=new xt.Logger,de=new au($e,{loadTimeout:ae.ads.loadTimeout,initTimeout:ae.ads.initTimeout,runtimeTimeout:ae.ads.runtimeTimeout,useAdmanFromNPM:ae.ads.useAdmanFromNPM,volumeMultiplier:ae.ads.volumeMultiplier,isVsidOriginal:ae.ads.isVsidOriginal}),Qe=na.getInstance(),te=u==null?void 0:u.pictureInPictureApi,ve=u==null?void 0:u.annotationsApi,Y=u==null?void 0:u.slotsApi,ie=$e.createComponentLog("Store"),He,Ye,ye={},Se=new Hc,Re=ce?oi(ce.oneStat.vsid$):ir(void 0),Ze=le($s()),ut=le(!1),pt=(_v=te==null?void 0:te.info.isActive$)!=null?_v:new xt.ValueSubject(!1),at=le(0),Et=le([]),$t=(0,xt.merge)(B.events.fatalError$,B.events.managedError$).subscribe(c=>Et.update(w=>[...w,c])),Jt=ir(!1,c=>{let w=B.events.fatalError$.subscribe(()=>c(!0));return()=>w.unsubscribe()}),li=c=>St(void 0,null,function*(){var pe;let w=Object.values(xt.InterfaceLanguage).includes(c);if(ae.downloadVKLanguages&&(w&&ae.updateBuiltinLanguages||!Xp(c))){let ze;try{ze=yield(0,xt.loadVKLangPack)(c,ch,uh)}catch(It){(pe=ce==null?void 0:ce.oneStat)==null||pe.logError({errorType:"VKLangPack",fatal:!1}),Qe==null||Qe.report(It,{errorType:"VKLangPack",fatal:!1})}ze&&(Zp({language:c,pack:ze,fallback:ae.defaultLanguage}),At.set(c))}Xp(c)&&At.set(c)}),At=le(t),Dt=le(e);li(t);let O=(c,w)=>{let N=Te(At);return Jp(N,c,w,ae.defaultLanguage)},be=le("thumb"),se=(()=>{let c=Ci([Jt,be],([w,N])=>w?"crashed":N);return Ht(W({},c),{is:w=>Te(c)===w})})(),Be=(()=>{let c=le(new Set(_));return Ht(W({},c),{add:w=>{c.update(N=>new Set([...N].concat(w)))},remove:w=>{c.update(N=>{let pe=[...N];return new Set(Array.isArray(w)?pe.filter(ze=>!w.includes(ze)):pe.filter(ze=>ze!==w))})},includes:w=>{let N=Te(c);return Array.isArray(w)?w.every(pe=>N.has(pe)):N.has(w)}})})();ne.log("create store"),ie({message:"create store"});let We=c=>{let w=c.container;w.append(B.experimental.element$.getValue()),_t=new MutationObserver(N=>{let{removedNodes:pe}=N[0];pe.length&&w.append(B.experimental.element$.getValue())}),_t.observe(w,{childList:!0})},je=c=>{ie({message:`init video, config: ${JSON.stringify(c)}`}),C?We(c):(xt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,xt.now)()]}),B.initVideo(c)),ne.log("init video",{isInteractive:C}),c.subtitles&&B.setExternalTextTracks(c.subtitles),He=c},ft=new xt.Subject,Xe=c=>ft.next(c),it=new xt.Subject,ot=new xt.Subject,Ke=new xt.Subject,_t=null,qt={actionRewind$:it,actionSeek$:ot,inPiP$:pt,inFullscreen$:new xt.Observable(c=>Ze.subscribe(w=>c.next(w))),actionSetSubtitle$:Ke,nextMovie$:ft};if(ce){let{oneStat:c,statSubscription:w}=ce;C||w.add(c.attachTo(B)),w.add(c.attachToUi(qt)),w.add(c.attachToAds(de.events)),c.authorize(a).catch(N=>{ie({message:`onestat auth error ${String(N)}`})})}if(Qe){let c=new xt.Subscription,w=(N,pe)=>c.add(N.subscribe(pe));if(w(B.events.managedError$,N=>{Qe.logIError(N)}),w(B.events.fatalError$,N=>{Qe.logIError(N,!0)}),ce){let{oneStat:N}=ce;w(N.experimental.error$,pe=>{Qe.logIError(pe)})}Qe.sentrySubscription.add(c)}let et=()=>{vi.clientChecker.device.isIOS&&Ye&&Qh(Ye).catch(c=>{ie({message:`exitIosSafariFullscreen failed: ${c}`})})},Xt=new xt.Subscription().add(B.experimental.element$.subscribe(c=>{c&&(Ye=c,c.classList.add("player-media"),sa(te)&&(te.updateVideoElement(),te.registryEventHandlers()),C&&c.setAttribute("pip","false"),Me==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(B.events.ended$.subscribe(()=>{var c;et(),(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(()=>St(void 0,null,function*(){var w,N;sa(te)&&(yield te==null?void 0:te.revealPictureInPicture());let c=B.info.muted$.getValue();(w=l==null?void 0:l.onStarted)==null||w.call(l),(N=ye.onStarted)==null||N.call(ye,c)}))).add(B.events.willSeek$.subscribe(({from:c,to:w})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,w)})).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 w=B.info.duration$.getValue();isFinite(w)&&w>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,w,c),de.setPosition(c,w))})).add(B.events.fatalError$.subscribe(c=>{var w;(w=l==null?void 0:l.onCrashed)==null||w.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.fetcherRecoverableError$.subscribe(c=>{var w;(w=l==null?void 0:l.onRecoverableError)==null||w.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.loadedMetadata$.subscribe(()=>{Mt.state.loadedMetadata$.set(!0)})).add(B.info.is3DVideo$.subscribe(c=>{Mt.ui.is3DVideo.set(c)})).add(B.info.isEnded$.subscribe(c=>{C&&(c?(k!=null&&k.getValue()&&Be.add(od),Be.add("PLAY_BUTTON")):Be.remove("PLAY_BUTTON"))})).add(B.info.liveTime$.subscribe(c=>{var w;(w=l==null?void 0:l.onLiveTime)==null||w.call(l,c)})).add(B.info.isStalled$.subscribe(c=>{var w;(w=l==null?void 0:l.onStalledChanged)==null||w.call(l,c)})).add(B.info.isLiveEnded$.subscribe(c=>{var w;return c&&((w=l==null?void 0:l.onLiveEnded)==null?void 0:w.call(l))})).add(de.events.loadStarted$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:w.call(c)})).add(de.events.loadEnded$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:w.call(c)})).add(de.events.loadError$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:w.call(c)})).add(de.events.init$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:w.call(c)})).add(de.events.ready$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:w.call(c)})).add(de.events.started$.subscribe(c=>{var w,N;return(N=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onStarted)==null?void 0:N.call(w,c)})).add(de.events.timeRemained$.subscribe(c=>{var w,N;return(N=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onTimeRemained)==null?void 0:N.call(w,c)})).add(de.events.ended$.subscribe(c=>{var w,N;return(N=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onCompleted)==null?void 0:N.call(w,c)})).add(de.events.empty$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:w.call(c)})).add(de.events.clicked$.subscribe(c=>{var w,N;return(N=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onClicked)==null?void 0:N.call(w,c)})).add(de.events.closed$.subscribe(c=>{var w,N;return(N=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onClosed)==null?void 0:N.call(w,c)})).add(de.events.error$.subscribe(c=>{var w,N;return(N=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onError)==null?void 0:N.call(w,c)})).add(de.events.paused$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:w.call(c)})).add(de.events.resumed$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:w.call(c)})),ni=new xt.Subscription,tt=()=>{var It,Ft,jt;let{debugLog:c}=ae,w,N="#9df7b7",pe="#efd169";if(c&&c!==!0){let{colors:Ut}=c;w=c.tag,N=(It=Ut==null?void 0:Ut[0])!=null?It:N,pe=(jt=(Ft=Ut==null?void 0:Ut[1])!=null?Ft:Ut==null?void 0:Ut[0])!=null?jt:pe}let ze=w?`: ${w}`:"";ni.add(B.events.log$.subscribe(Ut=>{console.debug(`%c sdk${ze} `,`background:${N};`,`sdk component: ${Ut.component}`,Ut.message)})).add($e.log$.subscribe(Ut=>{console.debug(`%c ui${ze} `,`background:${pe};`,`ui component: ${Ut.component}.`,Ut.message)}))},ei=()=>{ni.unsubscribe()},Hi=(c,w)=>{ne.log("start camera manual rotation",{mx:c,my:w}),B.startCameraManualRotation(c,w)},Ki=(c=!1)=>{ne.log("stop camera manual rotation",{immediate:c}),B.stopCameraManualRotation(c)},Rt=(c,w,N)=>{ne.log("move camera focus px",{xpx:c,ypx:w,dt:N}),B.moveCameraFocusPX(c,w,N)},bt=()=>{B.holdCamera()},Ot=()=>{B.releaseCamera()},_o=ir(B.info.position$.getValue(),c=>{let w,N,pe=()=>{let ze=B.info.playbackState$.getValue(),It=B.info.isLive$.getValue(),Ft=B.info.duration$.getValue(),jt=B.info.position$.getValue();if(ze&&[vi.PlaybackState.PLAYING,vi.PlaybackState.PAUSED].includes(ze)){let Ut=It?jt-Ft:B.getExactTime();Ut!==N&&c(Ut),N=Ut}w=requestAnimationFrame(pe)};return pe(),()=>cancelAnimationFrame(w)}),ln=oi(B.info.playbackState$),Sn=oi(B.info.currentBuffer$),To=oi(B.info.isEnded$),j=oi(B.info.isLive$),ti=ae.features.playbackRate?oi(B.info.canChangePlaybackSpeed$):ir(!1),di=oi(B.info.liveBufferTime$),Fi=oi(B.info.volume$),pi=oi(B.info.muted$),vt=Fc(B.info.predefinedQualityLimitType$.pipe((0,xt.map)(c=>c===vi.PredefinedQualityLimits.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===vi.PredefinedQualityLimits.TRAFFIC_SAVING),gi=Fc(B.info.predefinedQualityLimitType$.pipe((0,xt.map)(c=>c===vi.PredefinedQualityLimits.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===vi.PredefinedQualityLimits.HIGH_QUALITY),Je=oi(B.info.autoQualityLimitingAvailable$),Nt=oi(B.info.availableQualities$),lo=oi(B.info.availableQualitiesFps$),ri=oi(B.info.chromecastState$),nr=oi(B.info.chromecastDeviceName$),Io=oi(B.info.currentFormat$),Ko=oi(B.info.throughputEstimation$),fi=oi(B.info.videoBitrate$),Tt=oi(B.info.intrinsicVideoSize$),ki=oi(B.info.duration$),No=oi(B.info.isAudioAvailable$),hi=null,Bo=B.info.isBuffering$,Qi=ir(Bo.getValue(),c=>{let w=Bo.subscribe(N=>{N&&hi===null?hi=window.setTimeout(()=>{c(Bo.getValue()),hi=null},ae.loaderDelay):c(N)});return()=>{w.unsubscribe(),hi&&clearTimeout(hi)}}),ko=()=>{hi&&clearTimeout(hi),hi=null},Eo=Ci([ki,j],([c,w])=>w?-c:c),On=Ci([ln],([c])=>c===vi.PlaybackState.PLAYING),Po=oi(B.info.atLiveEdge$),Cn=oi(B.info.atLiveDurationEdge$),to=oi(B.info.position$),Do=Ci([to,ki],([c,w])=>isFinite(c)&&isFinite(w)&&!!w),dn=Ci([ri],([c])=>c===vi.ChromecastState.CONNECTED),kr=oi(B.info.availableVideoStreams$),rr=ae.features.audioLanguages?oi(B.info.availableAudioStreams$):ir([]),Hn=oi(B.info.currentVideoStream$),Tn=oi(B.info.currentAudioStream$),Fn=c=>{c.language&&Yp(c.language),B.setVideoStream(c)},sr=c=>{c.language&&Yp(c.language),B.setAudioStream(c)},co=c=>{let w;if(c.length===1&&(w=c.at(0)),w!=null||(w=c.find(pe=>"isDefault"in pe&&pe.isDefault)),w)return w;let N=Rh();return N&&(w=c.find(({language:pe})=>N===pe)),w!=null||(w=c.at(0)),w},Oo=!1;Xt.add(B.info.availableAudioStreams$.subscribe(c=>{if(!Oo&&c.length){let w=co(c);w&&(B.setAudioStream(w),Oo=!0)}}));let In=!1;Xt.add(B.info.availableVideoStreams$.subscribe(c=>{if(!In&&c.length){let w=co(c);w&&(B.setVideoStream(w),In=!0)}}));let nt=le(void 0),kn=oi(B.info.isAutoQualityEnabled$,c=>c&&nt.set(void 0)),Un=oi(B.info.currentQuality$,()=>nt.set(void 0)),cn=Ci([nt,Un],([c,w])=>c!=null?c:w),ar=Ci(Io,c=>c!==vi.VideoFormat.MPEG),un=Ci([Nt,lo,kn,cn,ar],([c,w,N,pe,ze])=>{let It=[];ze&&It.push({value:"auto",displayValue:O("auto_quality_option"),selected:N});let Ft=c.filter(jt=>!(0,xt.isInvariantQuality)(jt));for(let jt of Ft){let Ut=w[jt];It.push({value:jt,displayValue:`${jt}${Ut?y1(Ut):""}`,selected:N?!1:jt===pe})}return It}),pn=oi(B.info.currentPlaybackRate$),fn=Ci([pn,Po,Cn],([c,w,N])=>{let pe=N||C?1:ae.controls.playbackRateMin,ze=w?1:ae.controls.playbackRateMax,It=ae.controls.playbackRateStep,Ft=[];for(let jt=pe;jt<=ze;jt+=It)Ft.push({value:jt,displayValue:jt===1?O("playback_rate_1"):O("playback_rate",{multiplier:jt.toString(10)}),selected:c===jt});return Ft}),io={displayValue:O("subtitles_off"),value:"off"},Gi=le(W({},io)),mn=ae.features.subtitles?oi(B.info.availableTextTracks$):ir([]),zn=Th(),Qo=Ci([mn,Gi],([c,w],N)=>{var It;let pe=[],ze=c.find(({id:Ft})=>Ft===w.value);if(ze!=null&&ze.url){let[,Ft]=(It=zn.find(ze.url))!=null?It:[];if(Ft){N(Ft);return}Se.download(ze.url).then(jt=>{if(!jt||Se.isDestroyed())return;let Ut=new x1,us=ze.language;if(us){let b0=!!ze.isAuto,$0=Ut.parse(jt,us);pe.push({lang:us,subtitles:$0,isAuto:b0,id:ze.id})}zn.add(ze.url,pe),Te(Gi).value===w.value&&N(pe)}).catch(jt=>{var Ut;(Ut=ce==null?void 0:ce.oneStat)==null||Ut.logError({errorType:"Subtitles download",fatal:!1}),Qe==null||Qe.report(jt,{errorType:"Subtitles download",fatal:!1})})}N(pe)}),vn=Ci([pn,On,Gi],([c,w,N],pe)=>{let Ft;if(B.info.isLive$.getValue()&&w&&N.value!==io.value){let Ut=()=>{let us=1e3/(3*c);Ft=setTimeout(Ut,us),pe(Date.now())};return Ut(),()=>clearTimeout(Ft)}}),Ho=Ci([mn,Gi],([c,w])=>{if(!c.length)return[];let N=[];for(let{language:pe,isAuto:ze,id:It}of c){let Ft=pe&&pu(pe);pe&&Ft&&N.push({displayValue:ze?O("subtitles_auto",{language:Ft}):Ft,value:It,selected:(w==null?void 0:w.value)===It,isAuto:ze})}return N.length?(N.unshift(Ht(W({},io),{selected:(w==null?void 0:w.value)===io.value})),N):[]}),bo={available:[],prev:[]},Ui=()=>{var w,N;let c=B.experimental.getCurrentTime$.getValue();return(N=(w=c==null?void 0:c())!=null?w:Ye==null?void 0:Ye.currentTime)!=null?N:0},qn=Ci([_o,Gi,Qo,vn],([c,w,N,pe])=>{var It;let ze=B.info.isLive$.getValue();if(ze&&bo.prev!==N){let Ft=N.find(({id:Ut})=>Ut===w.value),jt=bo.prev.find(({id:Ut})=>Ut===w.value);if(Ft){let Ut=Ht(W({},Ft),{subtitles:[...(It=jt==null?void 0:jt.subtitles)!=null?It:[],...Ft.subtitles]});bo.available=[Ut],bo.prev=N}}if(w&&w.value!==io.value){let Ft=ze?Ui():c,jt=ze?bo.available:N;return C1(Ft,w,jt,ze)}}),uo=Ci([qn],([c])=>c!=null&&c.texts?c.texts:[]);Xt.add(Gi.subscribe(c=>{var w,N;if(c.value===io.value)(w=l==null?void 0:l.onSubtitleOff)==null||w.call(l);else{let pe=Object.entries(uu).find(([ze,It])=>It===c.displayValue);(N=l==null?void 0:l.onSubtitleOn)==null||N.call(l,pe?pe[0]:"")}}));let En=le(!0),Wn=Ci([Sn,Eo,to,di],([c,w,N,pe])=>{var jt;let ze=(jt=c==null?void 0:c.end)!=null?jt:0;if(!pe)return ze/w;let Ft=-N+pe-w;return(ze-Ft)/w}),gn=oi(B.info.availableSources$),Er=Ci([gn],([c])=>Object.keys((c==null?void 0:c[vi.VideoFormat.MPEG])||{}).length>0),Go=()=>{var N,pe,ze;let c=Object.keys(((pe=(N=B.info.availableSources$)==null?void 0:N.getValue())==null?void 0:pe[vi.VideoFormat.MPEG])||{}),w=(0,xt.getHighestQuality)(c)||xt.VideoQuality.Q_144P;return(ze=He.sources[vi.VideoFormat.MPEG])==null?void 0:ze[w]},Pr=()=>{var w;let c=Go();if(c)ne.log("download video",{url:c}),wh(c,((w=He==null?void 0:He.meta)==null?void 0:w.title)||"video");else{let N="There is no URL for download video";ne.log("download video",{message:N}),ie({message:N})}},Kn=()=>{ie({message:"toggle muted"});let c=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!c?dr(ii()):Mr(!c)},Qn=()=>{var c;if(Mt.ui.settingsMenu.visible$.set(!1),!Te(Mt.ui.settingsSubMenu.visible$)){let w=Te(Mt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&w){let pe=gl(w),ze={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:pe,position:ze,name:"settings"})}}ne.log("close settings menu")},lr=(c,w=()=>Promise.resolve())=>St(void 0,null,function*(){var ze;Mt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Mt.ui.settingsMenu.visible$.set(!0),yield w();let N=Te(Mt.ui.settingsMenu.ref$),pe=Rs();if((ze=l==null?void 0:l.uiInfo)!=null&&ze.onSettingsMenu&&N&&pe){let Ft=gl(N),jt=ss(N,pe);l.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:jt,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})}),Ar=(c,w=!1)=>{var It;Mt.ui.settingsSubMenu.visible$.set(!1);let N=Te(Mt.ui.settingsMenu.ref$),pe=Rs(),ze=Te(Mt.ui.settingsMenu.visible$);if((It=l==null?void 0:l.uiInfo)!=null&&It.onSettingsMenu&&N&&pe)if(ze&&!w){let jt=gl(N),Ut=ss(N,pe);l.uiInfo.onSettingsMenu({visible:!0,size:jt,position:Ut,name:"settings"})}else{let jt=gl(c),Ut={top:0,left:0,bottom:0,right:0},us=Te(Mt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:jt,position:Ut,name:us})}ne.log("close settings sub menu")},Pn=(c,w)=>{var pe;Mt.ui.settingsSubMenu.visible$.set(!0),Mt.ui.settingsSubMenu.ref$.set(w),Mt.ui.settingsSubMenu.name$.set(c);let N=Rs();if((pe=l==null?void 0:l.uiInfo)!=null&&pe.onSettingsMenu&&w&&N){let It=gl(w),Ft=ss(w,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:It,position:Ft})}ne.log("open settings sub menu",{name:c})},ii=()=>{var w;let c=Math.max(ae.volumeMinRestore,(w=Uc())!=null?w:0);return c===0?ae.volumeDefault:c},dr=c=>{let w=c===0?ii():c,N=B.info.muted$.getValue();ie({message:`set volume, volume: ${c}, preferredVolume: ${w}`}),N&&c>0&&!s&&(N=!1,Gp(!1)),B.setVolume(c,N),de.setVolume(c),zp(w)},Mr=c=>{let w=B.info.volume$.getValue();if(ie({message:`set muted, currentVolume: ${w}, mute: ${c}`}),B.setMuted(c),de.setVolume(c?0:w),Gp(c),!c&&w===0){let N=ii();B.setVolume(N),zp(N),de.setVolume(N)}},Fo=le(!1),Ei=c=>{var w,N;ne.log("set looped",{isLooped:c}),Fo.set(c),B.setLooped(c),(N=(w=l==null?void 0:l.uiInfo)==null?void 0:w.onLoopedChanged)==null||N.call(w,c)};Ei(X);let cr=()=>{var c,w;(w=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||w.call(c)},gt=(c,w=!1)=>{var N;ie({message:`set autoplayNextEnabled, value: ${c}`}),ne.log("set autoplay next enabled",{autoplayNextEnabled:c}),Mt.ui.autoplayNextEnabled$.set(c),Dh(c),w&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},Wt=c=>{ie({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),Mt.ui.timerNextVideoRunning$.set(c)},Li=(c=!0)=>{var pe;let w=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{w=(pe=l==null?void 0:l.onPrevVideoClick)==null?void 0:pe.call(l)}catch(ze){ie({message:"onPrevVideoClick callback failed to execute"})}if(!w)return;c&&rt("prev")||Z()},Ao=(c=!0)=>{var pe;let w=!0;if(c&&(l!=null&&l.onNextVideoClick))try{w=(pe=l==null?void 0:l.onNextVideoClick)==null?void 0:pe.call(l)}catch(ze){ie({message:"onNextVideoClick callback failed to execute"})}if(!w)return;c&&rt("next")||re()},rt=c=>{let{isMobile:w,features:{playbackStatusNextVideoShow:N,playbackStatusShow:pe}}=ae;return N&&pe&&!w?(Mt.ui.aboutToGoNextVideo.set(c),Mt.ui.userActionsDisabled.set(!0),!0):!1},Yt=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},_i=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},oo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},no=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Vi=()=>{B.prepare()},Ti=()=>{(0,xt.assertNonNullable)(Mt);let c=Te(Mt.ui.controls.disabledControls$),w=Te(Mt.playerPhase),N={playerPhase:w,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ie({message:"toggle play"}),w==="ads"){N.action="play",ne.log("toggle adman play",N),de.togglePlay();return}let pe=()=>{var It;ie({message:"toggle play, call player.play"}),N.action="play",B.play(),(It=l==null?void 0:l.onPlay)==null||It.call(l)},ze=()=>{var It;ie({message:"toggle play, call player.pause"}),N.action="pause",B.pause(),(It=l==null?void 0:l.onPause)==null||It.call(l)};if(B.info.isEnded$.getValue()){if(ie({message:"toggle play, video ended, seek to 0"}),it.next(),ot.next(Kr.SeekAction.REWIND),C){P==null||P();return}B.seekTime(0),pe()}else B.info.playbackState$.getValue()!==vi.PlaybackState.PLAYING?pe():ze();ne.log("toggle play",N)},ji=(c,{changeReason:w="default",appliesTo:N="to-video"}={})=>{ie({message:`set quality, quality: ${c}`}),ne.log("set quality",{quality:c}),B.setAutoQuality(c==="auto"),c!=="auto"?(ae.features.qualityDetailsSubMenuEnabled?(zc({type:"exact_quality",quality:c,videoId:i},N),sd(),B.setPredefinedQualityLimits(vi.PredefinedQualityLimits.UNKNOWN)):qp(i,c),nt.set(c),B.setQuality(c)):ae.features.qualityDetailsSubMenuEnabled?w==="default"&&(ur("auto_quality",N),Te(vt)&&si(!1),Te(gi)&&zi(!1)):sd()},si=(c,w="as-default")=>{ie({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?vi.PredefinedQualityLimits.TRAFFIC_SAVING:vi.PredefinedQualityLimits.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(hn(N,w),rd(!1)):(B.setPredefinedQualityLimits(N),rd(c))},zi=(c,w="as-default")=>{ie({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),hn(c?vi.PredefinedQualityLimits.HIGH_QUALITY:vi.PredefinedQualityLimits.UNKNOWN,w)},hn=(c,w)=>{c!==vi.PredefinedQualityLimits.UNKNOWN&&(Te(Je)&&!Te(kn)&&ji("auto",{appliesTo:w,changeReason:"limit-changed"}),ur(c,w)),B.setPredefinedQualityLimits(c)},ur=(c,w)=>{zc({type:c,videoId:i},w),w==="as-default"&&zc({type:c,videoId:i},"to-video")},Gn=c=>{ne.log("set playback rate",{playbackRate:c}),B.setPlaybackRate(c),ae.features.saveRate&&ue&&!B.info.isLive$.getValue()&&Nh(c)},pr=()=>{let c=Te(fn),w=c.findIndex(({selected:pe})=>pe);if(w===c.length-1)return;let N=c[w+1];Gn(N.value)},fr=()=>{let c=Te(fn),w=c.findIndex(({selected:pe})=>pe);if(w===0)return;let N=c[w-1];Gn(N.value)},mr=(c=Ht(W({},io),{selected:!1}))=>{ne.log("set subtitles",W({},c)),c&&c.value!==io.value&&Ke.next(c.isAuto?c.value+"_auto":c.value),Gi.set(c)},vr=()=>{ne.log("toggle subtitles");let c=Te(Ho),w=Te(Gi),N=Te(At);if((w==null?void 0:w.value)===io.value){let pe=c.filter(ze=>ze.value!==io.value).find(ze=>ze.value===N)||c[1];mr(pe)}else mr()},jn=le(!0),Yn=c=>{jn.set(c)},Uo=(c,w,N=!0)=>{var pe;if(ie({message:`seek to time, time: ${c}`}),ne.log("seek to time",{time:c,action:w,forcePrecise:N}),ot.next(w),B.info.isLive$.getValue()){let ze=B.info.duration$.getValue(),It=Math.min(0,ze+c);B.seekTime(It,N)}else{if(k!=null&&k.getValue())return;B.info.isEnded$.getValue()&&(ie({message:"seek after ended, call callbacks.onPlay"}),(pe=l==null?void 0:l.onPlay)==null||pe.call(l)),B.seekTime(vv(c),N)}},Lr=c=>{ie({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),Uo(c,Kr.SeekAction.EPISODE,!0)},zo=(c,w)=>{ie({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:w});let N=Te(Eo)*c;Uo(N,w,!1)},gr=c=>{ie({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),ot.next(Kr.SeekAction.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-c:c)},Vr=c=>{var pe,ze;let w=(pe=c.max)!=null?pe:"none",N=(ze=c.min)!=null?ze:"none";ie({message:`set auto quality limitation. Max: ${w}. Min: ${N}`}),ne.log("set auto quality limits",{max:w,min:N}),B.setAutoQualityLimits(c)},Rr=c=>{ie({message:`seek external to episode start time: ${c}`}),ne.log("seek external to episode start time",{time:c}),Uo(c,Kr.SeekAction.EPISODE,!0)},Nr=c=>{ie({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),B.setPlaybackRate(c)},ro=le(void 0),An=le(!1),Br=c=>{ie({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),An.set(!0),dt(c)},dt=c=>{ro.set(c)},Kt,Ri,Mo=()=>{ro.set(void 0),An.set(!1)},Ce=()=>{clearTimeout(Ri),clearTimeout(Kt),Kt=window.setTimeout(()=>{Mo()},500),Ye==null||Ye.removeEventListener("seeked",Ce)},Vt=c=>{ie({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),zo(c,Kr.SeekAction.SLIDER),Te(Mt.ui.isMobile)&&Te(Mt.state.currentFormat$)===vi.VideoFormat.HLS?(Ye==null||Ye.addEventListener("seeked",Ce),Ri=window.setTimeout(()=>{Ce()},300)):Mo()},$i=Ci([_o,Eo,ro],([c,w,N],pe)=>{pe((0,xt.isNonNullable)(N)?N*w:c)}),yi=le(!1),bi=()=>{yi.set(!0)},Ee=()=>{yi.set(!1)},yt=le({width:0,height:0}),Zt=Ci([yt],([{width:c}],w)=>{let N=f1(c);w(N)}),Ii=le(!1),ci=q.filter(c=>Sh(c)),Qr=Ci([Zt,Ii],([c,w])=>w?ci.filter(N=>!N.hideOnMobile):ci.filter(N=>{var pe;return!((pe=N.hideOnDesktopGridTypes)!=null&&pe.includes(c))})),qi=le(q.filter(c=>Ch(c))),Zn=Ci([qi,Zt],([c,w])=>c.filter(N=>{var pe;return!((pe=N.hideOnDesktopGridTypes)!=null&&pe.includes(w))})),Ms=Ci([Zn,Qr],([c,w])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?w.map((N,pe)=>{var ze;return{id:pe,weight:pe,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(ze=N.ariaLabel)!=null?ze:N.tooltip,tooltipText:N.tooltip}}):[]]),Xn=le(G),Ea=Ci([Xn],([c])=>ae.features.additionalSettingsMenuItems?c.map(w=>w.type==="SWITCH"?Ht(W({},w),{onClick:w.onChangeEnabled}):w):[]),kl=(c,w)=>{let N=Te(qi).map(pe=>pe.id!==c?pe:W(W({},pe),w));qi.set(N)},Pa=c=>{let w=Te(qi);if(w.some(N=>N.id===c.id)){ie({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),qi.set(w)},Aa=c=>{let w=Te(qi);if(!w.some(N=>N.id===c)){ie({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}w=w.filter(N=>N.id!==c),qi.set(w)},Ma=c=>{ot.next(Kr.SeekAction.LIVE),ie({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),B.setLiveLowLatency(c)},El=(c,w)=>{let N=Te(Xn).map(pe=>pe.id!==c?pe:W(W({},pe),w));Xn.set(N)},Ls=c=>{let w=Te(Xn);if(w.some(N=>N.id===c.id)){ie({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),Xn.set(w)},La=c=>{let w=Te(Xn);if(!w.some(N=>N.id===c)){ie({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}w=w.filter(N=>N.id!==c),Xn.set(w)},ct=le(H),wt=Ci([ct],([c])=>ae.features.additionalContextMenuItems?c:[]),so=(c,w)=>{let N=Te(ct).map(pe=>pe.id!==c?pe:W(W({},pe),w));ct.set(N)},jo=c=>{let w=Te(ct);if(w.some(N=>N.id===c.id)){ie({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),ct.set(w)},ao=c=>{let w=Te(ct);if(!w.some(N=>N.id===c)){ie({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}w=w.filter(N=>N.id!==c),ct.set(w)},mi=Ci([Ii,Jt],([c,w],N)=>{N(c&&w)}),Ni=()=>{ot.next(Kr.SeekAction.LIVE),ie({message:"switch to active live"}),ne.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==vi.PlaybackState.PLAYING&&Mt.actions.internal.togglePlay()},Vs=()=>{ne.log("skip adman"),de.skip()},Va=(c=!0)=>{(0,xt.assertNonNullable)(Mt),ie({message:`switch from ads to video, callPlay: ${c}`}),ne.log("switch from ads to video",{callPlay:c}),be.set("video"),c&&B.play()},Ou=()=>{(0,xt.assertNonNullable)(Mt),ie({message:"switch from video to ads"}),ne.log("switch from video to ads"),Mt.actions.internal.pause(),et(),be.set("ads")},nc=c=>{(0,xt.assertNonNullable)(Mt);let w=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:w}),be.set(w)},Hu=c=>{(0,xt.assertNonNullable)(Mt);let w=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:w}),be.set(w)},rc=c=>{(0,xt.assertNonNullable)(Mt);let w=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:w}),be.set(w)},Fu=()=>((0,xt.assertNonNullable)(Mt),ne.log("get debug text data"),yh(B,He,Mt,Le.getTraceId())),sc=()=>((0,xt.assertNonNullable)(Mt),JSON.stringify(Le.getFinishedSpans())),Uu=()=>((0,xt.assertNonNullable)(Mt),xh(B,He,Mt)),Rs=()=>Ye,ac=()=>{ie({message:"toggle chromecast"}),ne.log("toggle chromecast"),B.toggleChromecast()},Pl=c=>{var N;if((0,xt.assertNonNullable)(Mt),B.info.isEnded$.getValue())return;let w=!c;if(Te(Mt.playerPhase)==="ads"){ie({message:`pause ads, internalCall: ${w}`}),ne.log("pause ads",{internalCall:w}),de.pause();return}ie({message:`pause video, internalCall: ${w}`}),ne.log("pause video",{internalCall:w}),w&&((N=l==null?void 0:l.onPause)==null||N.call(l)),B.pause()},lc=c=>{var N;(0,xt.assertNonNullable)(Mt);let w=!c;if(Te(Mt.playerPhase)==="ads"){ie({message:`play ads, internalCall: ${w}`}),ne.log("play ads",{internalCall:w}),de.play();return}ie({message:`play video, internalCall: ${w}`}),ne.log("play video",{internalCall:w}),w&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),B.play()},dc=c=>{(0,xt.assertNonNullable)(Mt);let w=!c;if(Te(Mt.playerPhase)==="ads"){ie({message:"player cannot be stopped during ads via external method"});return}ie({message:`player will be stopped, internalCall: ${w}`}),A==null||A()},cc=(c,w)=>{(0,xt.assertNonNullable)(Mt),ie({message:`first start, show ads: ${c}, internalCall: ${!w}`}),ne.log("first start",{showAds:c,external:w}),c?be.set("ads"):(be.set("video"),w?B.play():Mt.actions.internal.togglePlay())},Ra=()=>(ie({message:"getting time codes"}),f),uc=()=>{let c=Ra();if(!c||[0,1].includes(c.length))return;let w=B.info.position$.getValue();return c.find(N=>N.time>w)},zu=c=>{let w=c;w||(w=uc());let N=B.info.position$.getValue();ne.log("seek to next episode",W({currentTime:N},w)),w&&(ie({message:"seek to next episode"}),Uo(w.time,Kr.SeekAction.EPISODE,!0))},pc=()=>{let c=Ra();if(!c||[0,1].includes(c.length))return;let w=B.info.position$.getValue(),N=c.findIndex(ze=>ze.time>w),pe=N===-1?c.length-2:N-2;if(!(pe<0))return c[pe]},Ue=c=>{let w=c;w||(w=pc());let N=B.info.position$.getValue();ne.log("seek to prev episode",W({currentTime:N},w)),w&&(ie({message:"seek to prev episode"}),Uo(w.time,Kr.SeekAction.EPISODE,!0))},ui=()=>(ie({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",W({},b)),b),Yo=()=>St(void 0,null,function*(){let c=te==null?void 0:te.isActive(),w="none";te!=null&&te.isActive()?(w="remove",yield te==null?void 0:te.remove()):(w="request",yield te==null?void 0:te.request()),ne.log("toggle picture in picture",{isActive:c,action:w})}),Ns=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),at.update(w=>w+c)},$o=le([]);T==null||T.subscribe(c=>{let w=[];for(let N=0;N<c.length;N++){let{range:[pe,ze],subjects:It}=c[N];N===0&&pe!==0&&w.push({time:0,text:"",interactive:!1,completed:!0}),w.push({time:pe/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!It.length||It.every(Ft=>Ft.isRemoved):!It.length}),ze!==1/0&&w.push({time:ze/1e3,text:"",interactive:!1,completed:!0})}$o.set(w)});let g0=le(!1);k==null||k.subscribe(c=>{c&&Te(An)&&Mo()});let vv=c=>{if(!C)return c;let w=Te($o),N=Te(Eo),ze=Te(to)/N,It=w.find(Ft=>Ft.interactive&&!Ft.completed&&Ft.time>ze);return typeof(It==null?void 0:It.time)=="number"?Math.min(c,It.time-.05):c},h0=()=>{Mt.ui.episodes.panelOpened$.set(!1)},_0=()=>{ne.log("destroy store"),clearTimeout(Ri),clearTimeout(Kt),Xt.unsubscribe(),ni.unsubscribe(),B.destroy(),de.destroy(),ce==null||ce.destroy(),Qe==null||Qe.destroy(),$t.unsubscribe(),_t==null||_t.disconnect(),_t=null,Se.destroy()},Mt={interfaceLanguage$:At,isCyrillicRelatedInterface$:Dt,initVideo:je,videoId:i,isClip:o,playerPhase:se,vsid:Re,state:{positionExact$:_o,positionWithScrubbing$:$i,duration$:Eo,playbackState$:ln,isPlaying$:On,isLoaderVisible:Qi,bufferedProgress$:Wn,isLive$:j,canChangePlaybackSpeed$:ti,isActiveLive$:Po,isOldestAvailableLive$:Cn,isRewindableLive$:Do,isEnded$:To,muted$:pi,volume$:Fi,trafficSavingEnabled$:vt,highQualityEnabled$:gi,autoQualityLimitingAvailable$:Je,availableVideoStreams$:kr,availableAudioStreams$:rr,videoStream$:Hn,audioStream$:Tn,currentQuality$:cn,isAutoQualityEnabled$:kn,availableQualities$:un,currentPlaybackRate$:pn,availablePlaybackRates$:fn,currentSubtitle$:Gi,availableTextTracks$:mn,availableSubtitlesList$:Ho,currentSubtitleCaptions$:uo,isAutoSubtitleCaptionVisible$:En,chromecastState$:ri,chromecastDeviceName$:nr,chromecastConnected$:dn,currentFormat$:Io,throughputEstimation$:Ko,videoBitrate$:fi,videoSize$:Tt,errorLog$:Et,crashed$:Jt,isAudioAvailable$:No,isAudioDisabled:!!s,canDownload:ae.features.download&&!!d,availableSources$:gn,hasMpegSources$:Er,isInteractive:C,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!Te($o).length,interactiveEpisodes$:$o,isInteractiveTime$:k?oi(k):le(!1),isInteractiveExpectation$:g0,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,looped$:Fo,loadedMetadata$:le(!1),isAutoQualityAvailable$:ar},ui:{t:O,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:q.length?q.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:Be},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ze,isFullscreenOpenedByKeyboard:ut,rotateAlpha:at,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:yt,isMobile:Ii,mobileNotReportControlHidden$:mi,mobileUnmuteButtonExpanded:le(!1),mobileUnmuteButtonVisible:le(!1),icon3DVideoVisible:le(!1),scrubbingInProgress:An,volumeChangingInProgress:yi,is3DVideo:le(!1),currentGridType$:Zt,additionalButtonsDeprecated$:Qr,additionalDesktopControlPanelRightButtons$:Ms,additionalSettingsMenuItems$:Ea,additionalContextMenuItems$:wt,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),hiddenControls:{volume:le(!1)},isControlsAvailable:le(!0)},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:te,annotationsApi:ve,slotsApi:Y},actions:{internal:{preload:Vi,firstStart:c=>cc(c,!1),play:()=>lc(!1),pause:()=>Pl(!1),togglePlay:Ti,toggleMuted:Kn,openSettingsMenu:lr,closeSettingsMenu:Qn,openSettingsSubMenu:Pn,closeSettingsSubMenu:Ar,setVolume:dr,startVolumeChanging:bi,stopVolumeChanging:Ee,setVideoStream:Fn,setAudioStream:sr,setQuality:ji,setTrafficSavingEnabled:si,setHighQualityEnabled:zi,setPlaybackRate:Gn,incrementPlaybackRate:pr,decrementPlaybackRate:fr,setSubtitle:mr,toggleSubtitle:vr,togglePictureInPicture:Yo,startScrubbing:Br,progressScrubbing:dt,completeScrubbing:Vt,toggleChromecast:ac,switchToActiveLive:Ni,switchFromAdsToVideo:Va,switchFromVideoToAds:Ou,skipAd:Vs,setLiveWaitingStart:nc,setLiveWaitingRecover:Hu,setLiveWaitingRecord:rc,getDebugTextData:Fu,getTraceTextData:sc,getDebugPanelData:Uu,getVideoElement:Rs,seekTime:(c,w,N)=>Uo(c,w,N),clearDelayedBufferingCheckTimeout:ko,seekEpisodeStartTime:Lr,seekToPercent:zo,getNextEpisode:uc,seekToNextEpisode:zu,getPrevEpisode:pc,seekToPrevEpisode:Ue,startLogging:tt,stopLogging:ei,startCameraManualRotation:Hi,stopCameraManualRotation:Ki,moveCameraFocusPX:Rt,holdCamera:bt,releaseCamera:Ot,getVideoEpisodes:Ra,getPreviewThumbsData:ui,downloadVideo:Pr,addLanguage:Zp,setLanguage:li,nextMovie:Xe,videoRotate:Ns,correctSeekTimeToInteractive:vv,replayInteractive:P,setLooped:Ei,reportProblem:cr,setAutoplayNextEnabled:gt,setTimerNextVideoRunning:Wt,prevVideoClick:Li,nextVideoClick:Ao,nextVideoAnnouncementShow:Yt,nextVideoAnnouncementClick:_i,nextVideoAnnouncementAuto:oo,nextVideoAnnouncementCancel:no},external:{firstStart:c=>cc(c,!0),play:()=>lc(!0),pause:()=>Pl(!0),stop:()=>dc(!0),seekTime:c=>gr(c),seekEpisodeStartTime:c=>Rr(c),setPlaybackRate:c=>Nr(c),setAutoQualityLimits:c=>Vr(c),setMuted:Mr,toggleSubtitle:vr,setVolume:dr,returnFocusToEpisodes:h0,updateAdditionalSettingsItem:El,addAdditionalSettingsItem:Ls,removeAdditionalSettingsItem:La,updateAdditionalContextItem:so,addAdditionalContextItem:jo,removeAdditionalContextItem:ao,updateAdditionalButton:kl,addAdditionalButton:Pa,removeAdditionalButton:Aa,setLiveLowLatency:Ma,hideControls:()=>Yn(!1),showControls:()=>Yn(!0)}},callbacks:l,setUiCallbacks:c=>{ye=W({},c)},getAdmanWrapper:()=>de,getLogger:()=>$e,getPlayer:()=>B,destroy:_0};return Mt};function ha(t,e,i,o){var b;let n=["interactiveTimeIndicator"],a=(b=e[i])==null?void 0:b.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:u,right:f}=ss(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 hl=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(ha(t,i,n,o))};var mu=(t,e,i)=>St(void 0,null,function*(){yield wo(),e&&i&&(i.focus(),t.set(!1))});var F2=we('<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 jf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=F2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}function Yf(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(l,"$contextMenuVisible$",i),a=m(e,"disabled",3,!1),s=m(e,"ariaLabel",3,""),d=Ie(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,b=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,$=J(void 0);Fe(()=>{r($)&&Ct(()=>{p.set(r($))})});let x=k=>{let P=ws(k),A=o1(r($));b.set(A),u.set(P),l.set(!n())},_=()=>{f.set(!0)},C=()=>{f.set(!1)},T=v(()=>n()?"opened":"");Bt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:x,focus:_,blur:C,get ariaExpanded(){return n()},get ref(){return r($)},set ref(k){D($,me(k))},children:(k,P)=>{jf(k,{})},$$slots:{default:!0}}),z(),o()}var U2=t=>{t.stopPropagation()},z2=L("<div><!> <div></div> <div></div></div>"),q2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
231
231
 
232
232
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
233
233
  }
@@ -252,8 +252,8 @@ Try switching the\xA0quality to\xA0Auto.`},Uh=O_;var ns=new Map;ns.set(el.Interf
252
252
  opacity: 0;
253
253
  }
254
254
  }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
255
- animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Md(t,e){var G;U(e,!0),W(t,H2);let[i,o]=Oe(),n=()=>S(C,"$isMobile",i),a=()=>S(A,"$areControlsVisible",i),s=()=>S(V,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),l=()=>S(y,"$interactiveControlsOpacity$",i),u=()=>S(P,"$showInteractiveTimeIndicatorTooltip$",i),v=()=>S(T,"$isFullscreen",i),$=f(e,"ref",15,void 0),p=ee(void 0),_=Ce(),w=_o(),{interactiveControlsOpacity$:y}=w,C=_.ui.isMobile,T=_.ui.isFullscreen,E=_.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,A=_.ui.controlsVisible,I=(G=_.callbacks)==null?void 0:G.onInteractiveTimeIndicatorClick,V=_.ui.currentGridType$,H=m(()=>!n()&&a()),Y=m(()=>Ts(s(),"s")),O=m(()=>!d()||!!l()||r(H)),J=ee(!1);ze(()=>{B(J,fe(r(O)))});let re=()=>{B(J,!0)},Z=()=>{var K;me(),(K=r(p))==null||K.addEventListener("animationiteration",re,{once:!0})},me=()=>{var K;B(J,!1),(K=r(p))==null||K.removeEventListener("animationiteration",re)},de=K=>{P.set(K)},Le=m(()=>u()&&!r(O));ze(()=>{u()?Z():me()});let Me=()=>{r(O)||(P.set(!0),I==null||I())};In(()=>{P.clearTimeout(),me()});let ve=()=>{P.set(!1)},le=F("tooltip_interactive_interaction_time_indicator");var Ae=O2();let se;Ae.__mousemove=[B2],Ae.__click=Me;var N=h(Ae);Bo(N,{tooltipContent:le,get tooltipActive(){return r(Le)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:de,get ref(){return $()},set ref(K){$(K)},children:(K,Ve)=>{wd(K,{completed:!0})},$$slots:{default:!0}});var Re=M(N,2);let ie;mt(Re,K=>$(K),()=>$());var je=M(Re,2);let oe;mt(je,K=>B(p,K),()=>r(p)),g(Ae),k((K,Ve,Ne)=>{se=te(Ae,1,"interactive-episode-icon-animated svelte-od3veb",null,se,K),ie=te(Re,1,"ref-block svelte-od3veb",null,ie,Ve),oe=te(je,1,"pulse svelte-od3veb",null,oe,Ne)},[()=>({mobile:n(),fullscreen:v(),invisible:r(O),"icon-small":r(Y)}),()=>({hidden:r(O)}),()=>({paused:r(J)})]),Ct("mouseleave",Ae,ve),b(t,Ae),z(),o()}lt(["mousemove","click"]);function vu(t,e){U(e,!0);let i=f(e,"tooltipEnabled",3,!0),o=f(e,"disabled",3,!1),n=f(e,"className",3,void 0),a=f(e,"ref",15);Bo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=Ue();let u=m(()=>e.buttonComponent);var v=pe(l);Pi(v,()=>r(u),($,p)=>{p($,os(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),b(s,l)},$$slots:{default:!0}}),z()}var rs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var U2=$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 Yf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=U2();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 Is(t,e){let i=f(e,"isPrev",3,!1),o=f(e,"isMobile",3,!1),n=f(e,"width",3,"24"),a=f(e,"height",3,"24"),s=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");Yf(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 z2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),q2=L("<!> <!>",1),W2={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 _a(t,e){U(e,!0),W(t,W2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),s=Ce().ui.t,d=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}`);Dt(t,{get className(){return r(u)},get testId(){var v;return`btn-${(v=e.type)!=null?v:""}`},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(v){i(v)},children:(v,$)=>{var p=q2(),_=pe(p);{var w=T=>{var E=z2();b(T,E)};R(_,T=>{o()&&T(w)})}var y=M(_,2);let C=m(()=>e.type==="prev");Is(y,{get isMobile(){return o()},get isPrev(){return r(C)}}),b(v,p)},$$slots:{default:!0}}),z()}var K2=$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 Ld(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=K2();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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)}var I1=require("@vkontakte/videoplayer-shared/es2015");var Q2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),G2=L("<!> <div><!></div>",1),j2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function vl(t,e){U(e,!0),W(t,j2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),a=f(e,"className",3,""),s=f(e,"click",3,I1.noop),d=F("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);Dt(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,v)=>{var $=G2(),p=pe($);{var _=T=>{var E=Q2();b(T,E)};R(p,T=>{o()&&T(_)})}var w=M(p,2);let y;var C=h(w);Ld(C,{}),g(w),k(T=>y=te(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(u,$)},$$slots:{default:!0}}),z()}var Y2=$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 Sr(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=Y2(),d=h(s);g(s),k(()=>{Fe(s,"width",i()),Fe(s,"height",o()),Fe(s,"viewBox",n()),Fe(d,"fill",a())}),b(t,s)}var Z2=$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 ss(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=Z2(),d=h(s);g(s),k(()=>{Fe(s,"width",i()),Fe(s,"height",o()),Fe(s,"viewBox",n()),Fe(d,"fill",a())}),b(t,s)}var k1=require("@vkontakte/videoplayer-shared/es2015");var X2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),J2=L("<!> <div><!></div>",1),ey={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 gl(t,e){U(e,!0),W(t,ey);let[i,o]=Oe(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=_o(),s=f(e,"ref",15,void 0),d=f(e,"isMobile",3,!1),l=f(e,"isPlaying",3,!1),u=f(e,"disabled",3,!1),v=f(e,"className",3,""),$=f(e,"click",3,k1.noop),_=Ce().ui.t,{toggle:w}=a,y=m(()=>w),C=m(()=>n()!==null),T=m(()=>r(C)?n():l()),E=m(()=>r(T)?_("tooltip_pause"):_("tooltip_play")),P=m(()=>r(T)?ss:Sr),A=m(()=>`${d()?"btn-m--play":""} ${v()}`),I=m(()=>r(C)?r(y):$());Dt(t,{get className(){return r(A)},testId:"btn-play",get click(){return r(I)},get disabled(){return u()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return zr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,H)=>{var Y=J2();let O=m(()=>r(P));var J=pe(Y);{var re=Le=>{var Me=X2();b(Le,Me)};R(J,Le=>{d()&&Le(re)})}var Z=M(J,2);let me;var de=h(Z);Pi(de,()=>r(O),(Le,Me)=>{Me(Le,{})}),g(Z),k(Le=>me=te(Z,1,"svelte-1ot3duq",null,me,Le),[()=>({mobile:d()})]),b(V,Y)},$$slots:{default:!0}}),z(),o()}var ty=$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 Zf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ty();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 Vd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),s=m(()=>o()?"hidden":"");Dt(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)=>{Zf(d,{})},$$slots:{default:!0}}),z()}var iy=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),oy={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 Rd(t,e){U(e,!0),W(t,oy);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=f(e,"ref",15,void 0),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Dt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(v){a(v)},children:(v,$)=>{var p=iy(),_=h(p);let w;var y=h(_);{var C=E=>{Sr(E,{width:"14",height:"14",fill:"#000"})},T=E=>{ss(E,{width:"14",height:"14",fill:"#000"})};R(y,E=>{n()?E(C):E(T,!1)})}g(_),g(p),k(E=>w=te(_,1,"toggler svelte-et3q1q",null,w,E),[()=>({enabled:n()})]),b(v,p)},$$slots:{default:!0}}),z(),o()}var ny=$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 Xf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ny();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(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 Dd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),s=m(()=>o()?"hidden":"");Dt(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)=>{Xf(d,{})},$$slots:{default:!0}}),z()}var ry=$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 Jf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ry();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(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 sy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function em(t,e){W(t,sy);let i=f(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Jf(t,{get"data-testid"(){return r(o)}})}function Nd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=f(e,"graphIsOpened",3,!1),d=Ce().ui.t,l=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");Dt(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(v){i(v)},children:(v,$)=>{let p=m(()=>!!a());em(v,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),z()}var tm=require("@vkontakte/videoplayer-core/es2015");function Bd(t,e){U(e,!0);let[i,o]=Oe(),n=()=>S(u,"$playbackState$",i),a=f(e,"isMobile",3,!1),s=f(e,"isLiveActive",3,!1),d=f(e,"ariaLabel",3,""),l=Ce(),u=l.state.playbackState$,v=l.actions.internal.switchToActiveLive,$=l.actions.internal.togglePlay,p=m(()=>()=>{if(!s()){v();return}n()===tm.PlaybackState.PAUSED&&$()}),_=m(()=>a()?"":"btn--live btn-full-opacity"),w=m(()=>s()?"btn-live":"btn-live-offset"),y=m(()=>s()&&n()===tm.PlaybackState.PLAYING);Dt(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:(C,T)=>{ud(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}var im=require("@vkontakte/videoplayer-shared/es2015");var ay=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),ly=L('<img class="icon" aria-hidden="true">');function ba(t,e){"use strict";let i=ee(!1),o=()=>{B(i,!0)};var n=Ue(),a=pe(n);{var s=l=>{var u=ay();b(l,u)},d=l=>{var u=ly();k(()=>Fe(u,"src",e.icon)),Ct("error",u,o),Gs(u),b(l,u)};R(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function om(t,e){U(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,im.noop),n=f(e,"ref",15),a=m(()=>o()===im.noop),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");Bo(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 v=m(()=>{var $;return($=e.testId)!=null?$:e.id});Dt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(v)},children:($,p)=>{ba($,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var E1=t=>!!t.buttonComponent;var as={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var uy=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),py={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 nm(t,e){var or,Vs;U(e,!0),W(t,py);let[i,o]=Oe(),n=()=>S(di,"$disabledControls$",i),a=()=>S(Kt,"$adPlaybackState",i),s=()=>S(yt,"$playbackState$",i),d=()=>S(ti,"$currentSubtitle$",i),l=()=>S(ai,"$isEnded$",i),u=()=>S(Kn,"$currentGridType$",i),v=()=>S(ei,"$isLive$",i),$=()=>S(Ci,"$chromecastState$",i),p=()=>S(Ji,"$isPictureInPictureActive",i),_=()=>S(zi,"$pictureInPictureType$",i),w=()=>S(X,"$availableSubtitlesList$",i),y=()=>S(hi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(ni,"$showContextMenuBtn$",i),T=()=>S(no,"$playerSize",i),E=()=>S(Ui,"$isRewindableLive$",i),P=()=>S(li,"$isActiveLive$",i),A=()=>S(so,"$graphIsOpened$",i),I=()=>S(qi,"$contextMenuVisible$",i),V=()=>S(ii,"$isFullscreen",i),H=()=>S(Eo,"$autoplayNextEnabled",i),Y=()=>S(r(Ro),"$prevButton",i),O=()=>S(r(Ti),"$replayButton",i),J=()=>S(r(Xn),"$playButton",i),re=()=>S(r(ft),"$nextButton",i),Z=()=>S(r(Ft),"$playPrevChapterButton",i),me=()=>S(r(Li),"$seekToInteractiveButton",i),de=()=>S(r(Do),"$interactiveGraphButton",i),Le=()=>S(r(at),"$liveButton",i),Me=()=>S(r(jt),"$time",i),ve=()=>S(r(mi),"$episodes",i),le=()=>S(r(eo),"$vkLogo",i),Ae=()=>S(r(to),"$volume",i),se=()=>S(r(Vi),"$subtitles",i),N=()=>S(r(wi),"$settings",i),Re=()=>S(r(io),"$context",i),ie=()=>S(r(Ii),"$fullscreen",i),je=()=>S(r(lo),"$chromecast",i),oe=()=>S(Wi,"$additionalDesktopControlPanelRightButtons$",i),G=()=>S(Po,"$isInteractiveTime$",i),K=()=>S(bo,"$settingsMenuVisible",i),Ve=()=>S(Mr,"$settingButtonRef$",i),Ne=()=>S(ci,"$startedByKeyboard$",i),et=()=>S(We,"$isAudioAvailable$",i),xe=()=>S(ge,"$fakeIsPlaying$",i),we=()=>S(Pn,"$seekToInteractiveDisabledTooltip$",i),Be=()=>S(Tt,"$adPosition",i),Xe=()=>S(De,"$position$",i),nt=()=>S($o,"$adDuration",i),ht=()=>S(ct,"$duration$",i),tt=f(e,"playerControlsWrapperRef",15,void 0),vt=f(e,"playerControlsRef",15,void 0),Pt=f(e,"isAds",3,!1),Yt=f(e,"logoTargetUrl",3,""),Wt=f(e,"isOneVideoPlaylist",3,!1),Gt=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:ge}=_o(),j=Ce(),Ie=_o(),ae=qt(),He=j.actions.internal.toggleMuted,qe=j.actions.internal.togglePlay,it=j.actions.internal.pause,dt=j.actions.internal.toggleSubtitle,Ze=(or=j.callbacks)==null?void 0:or.onAudioDoesNotExistHint,Je=(Vs=j.callbacks)==null?void 0:Vs.onAudioDisabledHint,ct=j.state.duration$,De=j.state.positionWithScrubbing$,yt=j.state.playbackState$,We=j.state.isAudioAvailable$,At=j.state.isAudioDisabled,ai=j.state.isEnded$,ei=j.state.isLive$,li=j.state.isActiveLive$,Ui=j.state.isRewindableLive$,{isActive$:Ji,type$:zi}=Ie.pictureInPicture$,bo=j.ui.settingsMenu.visible$,Ho=j.ui.settingsMenu.openedByBtnKeyboard$,rt=j.ui.controls,_t=j.actions.internal.getVideoEpisodes(),Ci=j.state.chromecastState$,X=j.state.availableSubtitlesList$,ti=j.state.currentSubtitle$,di=rt.disabledControls$,qi=j.ui.contextMenu.visible$,ni=j.ui.contextMenu.showContextMenuBtn$,hi=j.ui.contextMenu.openedByBtnKeyboard$,ci=j.ui.startedByKeyboard$,pt=j.ui.t,$o=j.ads.duration,Tt=j.ads.position,Kt=j.ads.playbackState,ii=j.ui.isFullscreen,no=j.ui.playerSize,Kn=j.ui.currentGridType$,Wi=j.ui.additionalDesktopControlPanelRightButtons$,Eo=j.ui.autoplayNextEnabled$,ui=j.actions.internal.getVideoElement,It=j.actions.internal.replayInteractive,yo=j.actions.internal.prevVideoClick,Fo=j.actions.internal.nextVideoClick,pi=j.state.isInteractive,Po=j.state.isInteractiveTime$,ro=j.state.showInteractiveGraph,Ao=j.state.showSeekToInteractive,Uo=j.state.showPlayPrevChapter,En=j.state.showInteractiveTimeIndicator,Oi=j.state.playPrevChapterDisabledTooltip,Pn=Ie.seekToInteractiveDisabledTooltip$,so=Ie.graphIsOpened$,Mo=ae.features.interactiveResponsiveUi,Tr=m(()=>n().has("EPISODE_BUTTON")),dr=m(()=>n().has("GRAPH_BUTTON")),An=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Qn=m(()=>n().has("PLAY_BUTTON")),Gn=m(()=>n().has("REPLAY_BUTTON")),xo=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),gn=()=>j.actions.internal.toggleChromecast(),Mn=m(()=>Pt()?a()==="playing":s()===$a.PlaybackState.PLAYING),st=m(()=>d().value!=="off"),Ln=m(()=>l()&&!Pt()||pi),Go=m(()=>Mo?r(Ln)&&Yi(u(),"m"):r(Ln)),jo=m(()=>!l()||pi||Pt()),Ir=m(()=>Yi(u(),"m")),Yo=m(()=>e.showNextPrevButtons&&Yi(u(),"m")&&!Pt()&&e.nextButtonActive),Vn=m(()=>e.showNextPrevButtons&&Yi(u(),"m")&&!Pt()&&e.prevButtonActive),jn=m(()=>!Pt()&&!!v()),Rn=m(()=>$()!==$a.ChromecastState.NOT_AVAILABLE&&!(p()&&_()===1)&&Yi(u(),"m")&&!pi),Zo=m(()=>e.showAutoplayNext&&!Wt()&&Yi(u(),"s")),Ki=m(()=>w().length>0&&Yi(u(),"m")),ao=m(()=>y()||C()),Lo=m(()=>Yi(u(),"s")&&!Pt()),hn=m(()=>!e.logoHidden&&!Pt()),Xo=m(()=>ae.features.fullscreen&&(e.logoHidden||Yi(u(),Mo?"xs":"s"))&&!(p()&&_()===1)&&(pi?Gt():!0)),Jo=m(()=>(!v()||Pt())&&!(ae.features.interactiveHideTime&&pi)),Mi=m(()=>T().width>100),zo=m(()=>ro&&Yi(u(),"m")),Vo=m(()=>Mo?Ao&&Yi(u(),"s"):Ao),cr=m(()=>Mo?Uo&&Yi(u(),"s"):Uo),_n=m(()=>!Pt()&&!v()&&!!(_t!=null&&_t.length)&&r(Ir)&&!r(Tr)),bn=m(()=>!E()||!!P()),kr=m(()=>A()?pt("tooltip_interactive_graph_on"):pt("tooltip_interactive_graph_off")),qo=m(()=>I()?pt("aria_label_context_menu_close"):pt("aria_label_context_menu_open")),Er=(xt,bt)=>xt?bt&&bt===$a.PlaybackState.PAUSED?pt("tooltip_play"):"":pt("tooltip_live"),Dn=m(()=>Er(r(bn),s())),Yn=m(()=>ae.logoType==="vk_video"?pt("tooltip_vk_video_logo"):pt("tooltip_vk_logo")),ur=m(()=>r(st)?pt("tooltip_subtitles_on"):pt("tooltip_subtitles_off")),Pr=m(()=>V()?pt("tooltip_fullscreen_on"):pt("tooltip_fullscreen_off")),Zn=m(()=>$()===$a.ChromecastState.CONNECTED?pt("tooltip_chromecast_on"):pt("tooltip_chromecast_off")),$n=m(()=>H()?pt("tooltip_autoplay_on"):pt("tooltip_autoplay_off")),Ar=ee(0),fi=fe({}),Ro=m(()=>rt.prevButton),Ti=m(()=>rt.replayButton),Xn=m(()=>rt.playButton),ft=m(()=>rt.nextButton),Ft=m(()=>rt.playPrevChapterButton),Li=m(()=>rt.seekToInteractiveButton),Do=m(()=>rt.interactiveGraphButton),at=m(()=>rt.liveButton),jt=m(()=>rt.time),mi=m(()=>rt.episodes),eo=m(()=>rt.vkLogo),to=m(()=>rt.volume),Vi=m(()=>rt.subtitles),wi=m(()=>rt.settings),io=m(()=>rt.context),Ii=m(()=>rt.fullscreen),lo=m(()=>rt.chromecast),Qi=m(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:O()?O().right-O().left:0,playButton:J()?J().right-J().left:0,nextButton:re()?re().right-re().left:0,playPrevChapterButton:Z()?Z().right-Z().left:0,seekToInteractiveButton:me()?me().right-me().left:0,interactiveGraphButton:de()?de().right-de().left:0,liveButton:Le()?Le().right-Le().left:0,time:Me()?Me().right-Me().left:0,episodes:ve()?ve().right-ve().left:0,vkLogo:le()?le().right-le().left:0,volume:Ae()?Ae().right-Ae().left:0,subtitles:se()?se().right-se().left:0,settings:N()?N().right-N().left:0,context:Re()?Re().right-Re().left:0,fullscreen:ie()?ie().right-ie().left:0,chromecast:je()?je().right-je().left:0,additionalButtons:oe().length?oe().reduce(xt=>[...xt,40],[]):[]})),yn=ee(0);ze(()=>{(!r(yn)||r(yn)<r(Qi).time)&&wt(()=>B(yn,fe(r(Qi).time)))});let Jn=ee(!1);ze(()=>{let xt=0;r(_n)&&(Yi(u(),"xl")?xt=r(Qi).time:xt=60);let bt=r(Qi).prevButton+r(Qi).playButton+r(Qi).nextButton+r(Qi).seekToInteractiveButton+r(Qi).interactiveGraphButton+r(Qi).liveButton+r(yn)+xt;B(Jn,fe(r(Jo)&&r(Ar)>=bt))});let pr=m(()=>r(Jn)&&Yi(u(),"m")),er=(0,P1.debounceFn)(ml,260);ze(()=>{T(),G(),er(ui(),rt,fi,e.showControls)});let Mr=ue();ze(()=>{K(),Ve()&&wt(()=>rl(Ve(),K(),Ho))});let fr;ze(()=>{Ne(),wt(()=>mu(ci,Ne(),fr))});function xn(){ws({isAudioDisabled:At,audioDisabledHintCallback:Je,isAudioAvailable:et(),audioIsNotExistHintCallback:Ze})&&He()}let Nn=pi?It:qe,en=m(()=>xe()!==null),tn=m(()=>r(en)?xe():r(Mn)),tr=m(()=>r(tn)?pt("tooltip_pause"):pt("tooltip_play")),Lr=pt("tooltip_episodes"),Vr=m(()=>{var xt,bt,uo,Wo;return r(Vn)?{id:"prevButton",type:"desktop-control-panel-left",weight:rs.prevButton,buttonComponent:_a,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:yo.bind(null,!0)},tooltipEnabled:!((bt=(xt=j.callbacks)==null?void 0:xt.uiInfo)!=null&&bt.onPrevButtonMouseEnter)&&!((Wo=(uo=j.callbacks)==null?void 0:uo.uiInfo)!=null&&Wo.onPrevButtonMouseLeave),mouseEnter:()=>{var po,ri,Hi;(Hi=(ri=(po=j.callbacks)==null?void 0:po.uiInfo)==null?void 0:ri.onPrevButtonMouseEnter)==null||Hi.call(ri,ha(ui(),fi,"prevButton",e.showControls))},mouseLeave:()=>{var po,ri,Hi;(Hi=(ri=(po=j.callbacks)==null?void 0:po.uiInfo)==null?void 0:ri.onPrevButtonMouseLeave)==null||Hi.call(ri,ha(ui(),fi,"prevButton",e.showControls))},tooltipText:pt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),mr=m(()=>r(Go)?{id:"replayButton",type:"desktop-control-panel-left",weight:rs.replayButton,buttonComponent:vl,buttonComponentProps:{disabled:r(Gn),click:Nn},tooltipText:pt("tooltip_restart"),disabled:r(Gn)}:void 0),wo=m(()=>r(jo)?{id:"playButton",type:"desktop-control-panel-left",weight:rs.playButton,buttonComponent:gl,buttonComponentProps:{disabled:r(Qn),isPlaying:r(Mn),click:qe},tooltipText:r(tr),disabled:r(Qn)}:void 0),Bn=m(()=>{var xt,bt,uo,Wo;return r(Yo)?{id:"nextButton",type:"desktop-control-panel-left",weight:rs.nextButton,buttonComponent:_a,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Fo.bind(null,!0)},tooltipEnabled:!((bt=(xt=j.callbacks)==null?void 0:xt.uiInfo)!=null&&bt.onNextButtonMouseEnter)&&!((Wo=(uo=j.callbacks)==null?void 0:uo.uiInfo)!=null&&Wo.onNextButtonMouseLeave),mouseEnter:()=>{var po,ri,Hi;(Hi=(ri=(po=j.callbacks)==null?void 0:po.uiInfo)==null?void 0:ri.onNextButtonMouseEnter)==null||Hi.call(ri,ha(ui(),fi,"nextButton",e.showControls))},mouseLeave:()=>{var po,ri,Hi;(Hi=(ri=(po=j.callbacks)==null?void 0:po.uiInfo)==null?void 0:ri.onNextButtonMouseLeave)==null||Hi.call(ri,ha(ui(),fi,"nextButton",e.showControls))},tooltipText:pt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),ir=m(()=>pi&&r(cr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:rs.playPrevChapterButton,buttonComponent:Vd,buttonComponentProps:{disabled:r(xo),click:e.playPrevChapter},tooltipText:pt("tooltip_interactive_go_back"),disabledTooltipContent:pt(Oi),disabled:r(xo)}:void 0),Rr=m(()=>pi&&r(Vo)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:rs.seekToInteractiveButton,buttonComponent:Dd,buttonComponentProps:{disabled:r(An),click:e.seekToInteractive},tooltipText:pt("tooltip_interactive_seek"),disabled:r(An),disabledTooltipContent:pt(we())}:void 0),ut=m(()=>pi&&r(zo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:rs.interactiveGraphButton,buttonComponent:Nd,buttonComponentProps:{disabled:r(dr),click:so.toggle,graphIsOpened:A()},tooltipText:r(kr)}:void 0),Ut=m(()=>r(jn)?{id:"liveButton",type:"desktop-control-panel-left",weight:rs.liveButton,buttonComponent:Bd,buttonComponentProps:{isLiveActive:r(bn),ariaLabel:r(Dn)},tooltipText:r(Dn),disabled:r(bn)&&s()===$a.PlaybackState.PLAYING}:void 0),Ri=m(()=>[r(Vr),r(mr),r(wo),r(Bn),r(ir),r(Rr),r(ut),r(Ut)].filter(xt=>!!xt).sort(la)),ye=m(()=>r(hn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:as.vkLogo,buttonComponent:Td,buttonComponentProps:{targetUrl:Yt(),logoClickable:e.logoClickable,click:it},tooltipText:r(Yn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),kt=m(()=>r(Zo)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:as.autoplayNext,buttonComponent:Rd,tooltipText:r($n)}:void 0),_i=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:as.volume,buttonComponent:Af,buttonComponentProps:{click:xn}})),ki=m(()=>r(Ki)?{id:"subtitles",type:"desktop-control-panel-right",weight:as.subtitles,buttonComponent:If,buttonComponentProps:{isSubtitlesEnabled:r(st),click:dt},tooltipText:r(ur)}:void 0),co=m(()=>r(Lo)?{id:"settings",type:"desktop-control-panel-right",weight:as.settings,buttonComponent:ul,buttonComponentProps:{ref$:Mr},tooltipText:K()?void 0:pt("tooltip_settings_off")}:void 0),vi=m(()=>ae.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:as.context,buttonComponent:jf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(qo)},className:r(ao)?"":"out-of-view",tooltipText:r(qo)}:void 0),ke=m(()=>r(Xo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:as.fullscreen,buttonComponent:Cd,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Pr)}:void 0),Lt=m(()=>r(Rn)?{id:"chromecast",type:"desktop-control-panel-right",weight:as.chromecast,buttonComponent:Id,buttonComponentProps:{state:$(),click:gn},tooltipText:r(Zn)}:void 0),Xt=m(()=>[r(ye),r(kt),r(_i),r(ki),r(co),r(vi),r(ke),r(Lt),...oe()].filter(xt=>!!xt).sort(la));var Si=uy(),oi=pe(Si);let Dr;var oo=h(oi);let Nr=m(()=>!r(Mi));va(oo,{get isHidden(){return r(Nr)},get isAds(){return Pt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return fi.timeline},set ref(xt){fi.timeline=xt}});var As=M(oo,2),on=h(As),Ea=h(on);Ei(Ea,17,()=>r(Ri),xt=>xt.id,(xt,bt)=>{vu(xt,{get buttonComponent(){return r(bt).buttonComponent},get buttonComponentProps(){return r(bt).buttonComponentProps},get tooltipText(){return r(bt).tooltipText},get disabledTooltipContent(){return r(bt).disabledTooltipContent},get disabled(){return r(bt).disabled},get className(){return r(bt).className},get tooltipEnabled(){return r(bt).tooltipEnabled},get mouseEnter(){return r(bt).mouseEnter},get mouseLeave(){return r(bt).mouseLeave},get ref(){return fi[r(bt).id]},set ref(uo){fi[r(bt).id]=uo}})});var Ms=M(Ea,2);{var Cl=xt=>{let bt=m(()=>Pt()?Be():Xe()),uo=m(()=>Pt()?nt():ht());xd(xt,{isMobile:!1,get showDuration(){return r(pr)},get position(){return r(bt)},get duration(){return r(uo)},get ref(){return fi.time},set ref(Wo){fi.time=Wo}})};R(Ms,xt=>{r(Jo)&&xt(Cl)})}var Pa=M(Ms,2);let Tl=m(()=>!r(_n));Bo(Pa,{className:"w-max",get disabled(){return r(Tl)},tooltipContent:Lr,get ref(){return fi.episodes},set ref(xt){fi.episodes=xt},children:(xt,bt)=>{var uo=Ue(),Wo=pe(uo);{var po=ri=>{Ed(ri,{get position(){return Xe()},get duration(){return ht()},timeCodes:_t})};R(Wo,ri=>{r(_n)&&ri(po)})}b(xt,uo)},$$slots:{default:!0}}),g(on);var Ls=M(on,2);Ei(Ls,21,()=>r(Xt),xt=>xt.id,(xt,bt)=>{var uo=Ue(),Wo=pe(uo);{var po=Hi=>{vu(Hi,{get buttonComponent(){return r(bt).buttonComponent},get buttonComponentProps(){return r(bt).buttonComponentProps},get tooltipText(){return r(bt).tooltipText},get disabledTooltipContent(){return r(bt).disabledTooltipContent},get disabled(){return r(bt).disabled},get className(){return r(bt).className},get ref(){return fi[r(bt).id]},set ref(ds){fi[r(bt).id]=ds}})},ri=Hi=>{let ds=m(()=>!!r(bt).disabled);om(Hi,{get id(){return r(bt).id},get testId(){return r(bt).testId},get icon(){return r(bt).icon},get ariaLabel(){return r(bt).ariaLabel},get tooltipText(){return r(bt).tooltipText},get disabledTooltipContent(){return r(bt).disabledTooltipContent},get disabled(){return r(ds)},get onClick(){return r(bt).onClick},get ref(){return fi[r(bt).id]},set ref(kl){fi[r(bt).id]=kl}})};R(Wo,Hi=>{E1(r(bt))?Hi(po):Hi(ri,!1)})}b(xt,uo)}),g(Ls),g(As),mt(As,xt=>vt(xt),()=>vt()),g(oi),mt(oi,xt=>tt(xt),()=>tt());var Il=M(oi,2);{var Aa=xt=>{Md(xt,{get ref(){return fi.interactiveTimeIndicator},set ref(bt){fi.interactiveTimeIndicator=bt}})};R(Il,xt=>{En&&xt(Aa)})}k(xt=>Dr=te(oi,1,"wrapper-bottom svelte-1iedtj3",null,Dr,xt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Ur(on,"clientWidth",xt=>B(Ar,xt)),b(t,Si),z(),o()}var hl=require("@vkontakte/videoplayer-core/es2015");var rm=require("@vkontakte/videoplayer-shared/es2015");var fy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),my=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),vy={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function sm(t,e){W(t,vy);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,rm.noop),n=m(()=>o()===rm.noop),a=m(()=>r(n)||i()),s=ee(!1),d=()=>{B(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");Dt(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,v)=>{var $=Ue(),p=pe($);{var _=y=>{var C=fy();b(y,C)},w=y=>{var C=my();k(()=>Fe(C,"src",e.iconUrl)),Ct("error",C,d),Gs(C),b(y,C)};R(p,y=>{r(s)?y(_):y(w,!1)})}b(u,$)},$$slots:{default:!0}})}var gy=$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 am(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=gy();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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)}var A1=require("@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 gu(t,e){U(e,!0),W(t,by);let i=f(e,"muted",3,!1),o=f(e,"expanded",3,!1),n=f(e,"click",3,A1.noop),a=f(e,"ref",15,void 0),d=Ce().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=m(()=>o()?Cs:am),v=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Dt(t,{get testId(){return r(v)},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 C=h(_);Pi(C,()=>r(w),(P,A)=>{A(P,{})});var T=M(C,2);{var E=P=>{var A=hy(),I=h(A,!0);g(A),k(V=>he(I,V),[()=>d("mobile_unmute")]),b(P,A)};R(T,P=>{o()&&P(E)})}g(_),k(P=>y=te(_,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),b($,_)},$$slots:{default:!0}}),z()}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 lm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=$y();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(3),g(o),k(()=>n=Te(o,n,q({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,
256
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function dm(t,e){W(t,yy);let i=f(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),n=m(()=>i()?"pip-icon--active":"pip-icon");lm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var M1=require("@vkontakte/videoplayer-shared/es2015");function cm(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isPictureInPictureActive",3,!1),n=f(e,"click",3,M1.noop),a=F("menu_pip");Dt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{dm(s,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}var L1=require("@vkontakte/videoplayer-shared/es2015");var xy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},wy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Sy=L("<div><!></div>"),Cy=L("<div><!></div>"),Ty=L("<div><!></div>"),Iy=L("<!> <!> <!>",1),ky=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Ey=L("<div><!></div>"),Py=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Ay=L("<!> <!> <div><!></div>",1),My=L('<div aria-hidden="true">\xB7</div> <!>',1),Ly=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Vy={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-1afsgkw {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
255
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Ad(t,e){var ve;U(e,!0),K(t,q2);let[i,o]=Ne(),n=()=>S(C,"$isMobile",i),a=()=>S(A,"$areControlsVisible",i),s=()=>S(V,"$currentGridType$",i),d=()=>S(k,"$isInteractiveTime$",i),l=()=>S(_,"$interactiveControlsOpacity$",i),u=()=>S(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),b=m(e,"ref",15,void 0),p=J(void 0),$=Ie(),x=ho(),{interactiveControlsOpacity$:_}=x,C=$.ui.isMobile,T=$.ui.isFullscreen,k=$.state.isInteractiveTime$,P=x.showInteractiveTimeIndicatorTooltip$,A=$.ui.controlsVisible,I=(ve=$.callbacks)==null?void 0:ve.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,q=v(()=>!n()&&a()),G=v(()=>Is(s(),"s")),H=v(()=>!d()||!!l()||r(q)),Z=J(!1);Fe(()=>{D(Z,me(r(H)))});let re=()=>{D(Z,!0)},X=()=>{var Y;ce(),(Y=r(p))==null||Y.addEventListener("animationiteration",re,{once:!0})},ce=()=>{var Y;D(Z,!1),(Y=r(p))==null||Y.removeEventListener("animationiteration",re)},ue=Y=>{P.set(Y)},Ve=v(()=>u()&&!r(H));Fe(()=>{u()?X():ce()});let Me=()=>{r(H)||(P.set(!0),I==null||I())};xn(()=>{P.clearTimeout(),ce()});let _e=()=>{P.set(!1)},ae=F("tooltip_interactive_interaction_time_indicator");var Le=z2();let ne;Le.__mousemove=[U2],Le.__click=Me;var B=h(Le);Vo(B,{tooltipContent:ae,get tooltipActive(){return r(Ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ue,get ref(){return b()},set ref(Y){b(Y)},children:(Y,ie)=>{xd(Y,{completed:!0})},$$slots:{default:!0}});var $e=M(B,2);let de;mt($e,Y=>b(Y),()=>b());var Qe=M($e,2);let te;mt(Qe,Y=>D(p,Y),()=>r(p)),g(Le),E((Y,ie,He)=>{ne=ee(Le,1,"interactive-episode-icon-animated svelte-od3veb",null,ne,Y),de=ee($e,1,"ref-block svelte-od3veb",null,de,ie),te=ee(Qe,1,"pulse svelte-od3veb",null,te,He)},[()=>({mobile:n(),fullscreen:f(),invisible:r(H),"icon-small":r(G)}),()=>({hidden:r(H)}),()=>({paused:r(Z)})]),kt("mouseleave",Le,_e),y(t,Le),z(),o()}lt(["mousemove","click"]);function vu(t,e){U(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),a=m(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=Oe();let u=v(()=>e.buttonComponent);var f=fe(l);Ai(f,()=>r(u),(b,p)=>{p(b,ns(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),y(s,l)},$$slots:{default:!0}}),z()}var as={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var K2=we('<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 Zf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=K2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),y(t,o)}function ks(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),a=m(e,"height",3,"24"),s=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");Zf(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 Q2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),G2=L("<!> <!>",1),j2={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 _a(t,e){U(e,!0),K(t,j2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=Ie().ui.t,d=v(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=v(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Bt(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,b)=>{var p=G2(),$=fe(p);{var x=T=>{var k=Q2();y(T,k)};R($,T=>{o()&&T(x)})}var _=M($,2);let C=v(()=>e.type==="prev");ks(_,{get isMobile(){return o()},get isPrev(){return r(C)}}),y(f,p)},$$slots:{default:!0}}),z()}var Y2=we('<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 Md(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var k1=require("@vkontakte/videoplayer-shared/es2015");var Z2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),X2=L("<!> <div><!></div>",1),J2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function _l(t,e){U(e,!0),K(t,J2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),a=m(e,"className",3,""),s=m(e,"click",3,k1.noop),d=F("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Bt(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 b=X2(),p=fe(b);{var $=T=>{var k=Z2();y(T,k)};R(p,T=>{o()&&T($)})}var x=M(p,2);let _;var C=h(x);Md(C,{}),g(x),E(T=>_=ee(x,1,"svelte-1ot3duq",null,_,T),[()=>({mobile:o()})]),y(u,b)},$$slots:{default:!0}}),z()}var ey=we('<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 Tr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var s=ey(),d=h(s);g(s),E(()=>{De(s,"width",i()),De(s,"height",o()),De(s,"viewBox",n()),De(d,"fill",a())}),y(t,s)}var ty=we('<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 ls(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var s=ty(),d=h(s);g(s),E(()=>{De(s,"width",i()),De(s,"height",o()),De(s,"viewBox",n()),De(d,"fill",a())}),y(t,s)}var E1=require("@vkontakte/videoplayer-shared/es2015");var iy=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),oy=L("<!> <div><!></div>",1),ny={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function bl(t,e){U(e,!0),K(t,ny);let[i,o]=Ne(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=ho(),s=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),l=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),b=m(e,"click",3,E1.noop),$=Ie().ui.t,{toggle:x}=a,_=v(()=>x),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),k=v(()=>r(T)?$("tooltip_pause"):$("tooltip_play")),P=v(()=>r(T)?ls:Tr),A=v(()=>`${d()?"btn-m--play":""} ${f()}`),I=v(()=>r(C)?r(_):b());Bt(t,{get className(){return r(A)},testId:"btn-play",get click(){return r(I)},get disabled(){return u()},get ariaLabel(){return r(k)},get ariaKeyShortCut(){return zr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,q)=>{var G=oy();let H=v(()=>r(P));var Z=fe(G);{var re=Ve=>{var Me=iy();y(Ve,Me)};R(Z,Ve=>{d()&&Ve(re)})}var X=M(Z,2);let ce;var ue=h(X);Ai(ue,()=>r(H),(Ve,Me)=>{Me(Ve,{})}),g(X),E(Ve=>ce=ee(X,1,"svelte-1ot3duq",null,ce,Ve),[()=>({mobile:d()})]),y(V,G)},$$slots:{default:!0}}),z(),o()}var ry=we('<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 Xf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=ry();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}function Ld(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Bt(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)=>{Xf(d,{})},$$slots:{default:!0}}),z()}var sy=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),ay={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 Vd(t,e){U(e,!0),K(t,ay);let[i,o]=Ne(),n=()=>S(d,"$autoplayNextEnabled$",i),a=m(e,"ref",15,void 0),s=Ie(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Bt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,b)=>{var p=sy(),$=h(p);let x;var _=h($);{var C=k=>{Tr(k,{width:"14",height:"14",fill:"#000"})},T=k=>{ls(k,{width:"14",height:"14",fill:"#000"})};R(_,k=>{n()?k(C):k(T,!1)})}g($),g(p),E(k=>x=ee($,1,"toggler svelte-et3q1q",null,x,k),[()=>({enabled:n()})]),y(f,p)},$$slots:{default:!0}}),z(),o()}var ly=we('<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 Jf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=ly();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(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))),y(t,o)}function Rd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Bt(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)=>{Jf(d,{})},$$slots:{default:!0}}),z()}var dy=we('<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 em(t,e){let i=Ae(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}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),y(t,o)}var cy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function tm(t,e){K(t,cy);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");em(t,{get"data-testid"(){return r(o)}})}function Nd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=m(e,"graphIsOpened",3,!1),d=Ie().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Bt(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,b)=>{let p=v(()=>!!a());tm(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),z()}var im=require("@vkontakte/videoplayer-core/es2015");function Bd(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(u,"$playbackState$",i),a=m(e,"isMobile",3,!1),s=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),l=Ie(),u=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,b=l.actions.internal.togglePlay,p=v(()=>()=>{if(!s()){f();return}n()===im.PlaybackState.PAUSED&&b()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),x=v(()=>s()?"btn-live":"btn-live-offset"),_=v(()=>s()&&n()===im.PlaybackState.PLAYING);Bt(t,{get className(){return r($)},get testId(){return r(x)},get disabled(){return r(_)},get ariaLabel(){return d()},get click(){return r(p)},children:(C,T)=>{cd(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}var om=require("@vkontakte/videoplayer-shared/es2015");var uy=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),py=L('<img class="icon" aria-hidden="true">');function ba(t,e){"use strict";let i=J(!1),o=()=>{D(i,!0)};var n=Oe(),a=fe(n);{var s=l=>{var u=uy();y(l,u)},d=l=>{var u=py();E(()=>De(u,"src",e.icon)),kt("error",u,o),Gs(u),y(l,u)};R(a,l=>{r(i)?l(s):l(d,!1)})}y(t,n)}function nm(t,e){U(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,om.noop),n=m(e,"ref",15),a=v(()=>o()===om.noop),s=v(()=>r(a)||i()),d=v(()=>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=v(()=>{var b;return(b=e.testId)!=null?b:e.id});Bt(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:(b,p)=>{ba(b,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var P1=t=>!!t.buttonComponent;var ds={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var vy=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),gy={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 rm(t,e){var Ls,La;U(e,!0),K(t,gy);let[i,o]=Ne(),n=()=>S(j,"$disabledControls$",i),a=()=>S(Nt,"$adPlaybackState",i),s=()=>S(_t,"$playbackState$",i),d=()=>S(To,"$currentSubtitle$",i),l=()=>S(Xt,"$isEnded$",i),u=()=>S(nr,"$currentGridType$",i),f=()=>S(ni,"$isLive$",i),b=()=>S(ln,"$chromecastState$",i),p=()=>S(Hi,"$isPictureInPictureActive",i),$=()=>S(Ki,"$pictureInPictureType$",i),x=()=>S(Sn,"$availableSubtitlesList$",i),_=()=>S(Fi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(di,"$showContextMenuBtn$",i),T=()=>S(ri,"$playerSize",i),k=()=>S(ei,"$isRewindableLive$",i),P=()=>S(tt,"$isActiveLive$",i),A=()=>S(to,"$graphIsOpened$",i),I=()=>S(ti,"$contextMenuVisible$",i),V=()=>S(lo,"$isFullscreen",i),q=()=>S(Ko,"$autoplayNextEnabled",i),G=()=>S(r(dr),"$prevButton",i),H=()=>S(r(Mr),"$replayButton",i),Z=()=>S(r(Fo),"$playButton",i),re=()=>S(r(Ei),"$nextButton",i),X=()=>S(r(cr),"$playPrevChapterButton",i),ce=()=>S(r(gt),"$seekToInteractiveButton",i),ue=()=>S(r(Wt),"$interactiveGraphButton",i),Ve=()=>S(r(Li),"$liveButton",i),Me=()=>S(r(Ao),"$time",i),_e=()=>S(r(rt),"$episodes",i),ae=()=>S(r(Yt),"$vkLogo",i),Le=()=>S(r(_i),"$volume",i),ne=()=>S(r(oo),"$subtitles",i),B=()=>S(r(no),"$settings",i),$e=()=>S(r(Vi),"$context",i),de=()=>S(r(Ti),"$fullscreen",i),Qe=()=>S(r(ji),"$chromecast",i),te=()=>S(Io,"$additionalDesktopControlPanelRightButtons$",i),ve=()=>S(Bo,"$isInteractiveTime$",i),Y=()=>S(Rt,"$settingsMenuVisible",i),ie=()=>S(pr,"$settingButtonRef$",i),He=()=>S(pi,"$startedByKeyboard$",i),Ye=()=>S(qt,"$isAudioAvailable$",i),ye=()=>S(Dt,"$fakeIsPlaying$",i),Se=()=>S(Cn,"$seekToInteractiveDisabledTooltip$",i),Re=()=>S(Je,"$adPosition",i),Ze=()=>S(Ke,"$position$",i),ut=()=>S(gi,"$adDuration",i),pt=()=>S(ot,"$duration$",i),at=m(e,"playerControlsWrapperRef",15,void 0),Et=m(e,"playerControlsRef",15,void 0),$t=m(e,"isAds",3,!1),Jt=m(e,"logoTargetUrl",3,""),li=m(e,"isOneVideoPlaylist",3,!1),At=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Dt}=ho(),O=Ie(),be=ho(),se=Gt(),Be=O.actions.internal.toggleMuted,We=O.actions.internal.togglePlay,je=O.actions.internal.pause,ft=O.actions.internal.toggleSubtitle,Xe=(Ls=O.callbacks)==null?void 0:Ls.onAudioDoesNotExistHint,it=(La=O.callbacks)==null?void 0:La.onAudioDisabledHint,ot=O.state.duration$,Ke=O.state.positionWithScrubbing$,_t=O.state.playbackState$,qt=O.state.isAudioAvailable$,et=O.state.isAudioDisabled,Xt=O.state.isEnded$,ni=O.state.isLive$,tt=O.state.isActiveLive$,ei=O.state.isRewindableLive$,{isActive$:Hi,type$:Ki}=be.pictureInPicture$,Rt=O.ui.settingsMenu.visible$,bt=O.ui.settingsMenu.openedByBtnKeyboard$,Ot=O.ui.controls,_o=O.actions.internal.getVideoEpisodes(),ln=O.state.chromecastState$,Sn=O.state.availableSubtitlesList$,To=O.state.currentSubtitle$,j=Ot.disabledControls$,ti=O.ui.contextMenu.visible$,di=O.ui.contextMenu.showContextMenuBtn$,Fi=O.ui.contextMenu.openedByBtnKeyboard$,pi=O.ui.startedByKeyboard$,vt=O.ui.t,gi=O.ads.duration,Je=O.ads.position,Nt=O.ads.playbackState,lo=O.ui.isFullscreen,ri=O.ui.playerSize,nr=O.ui.currentGridType$,Io=O.ui.additionalDesktopControlPanelRightButtons$,Ko=O.ui.autoplayNextEnabled$,fi=O.actions.internal.getVideoElement,Tt=O.actions.internal.replayInteractive,ki=O.actions.internal.prevVideoClick,No=O.actions.internal.nextVideoClick,hi=O.state.isInteractive,Bo=O.state.isInteractiveTime$,Qi=O.state.showInteractiveGraph,ko=O.state.showSeekToInteractive,Eo=O.state.showPlayPrevChapter,On=O.state.showInteractiveTimeIndicator,Po=O.state.playPrevChapterDisabledTooltip,Cn=be.seekToInteractiveDisabledTooltip$,to=be.graphIsOpened$,Do=se.features.interactiveResponsiveUi,dn=v(()=>n().has("EPISODE_BUTTON")),kr=v(()=>n().has("GRAPH_BUTTON")),rr=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Hn=v(()=>n().has("PLAY_BUTTON")),Tn=v(()=>n().has("REPLAY_BUTTON")),Fn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),sr=()=>O.actions.internal.toggleChromecast(),co=v(()=>$t()?a()==="playing":s()===$a.PlaybackState.PLAYING),Oo=v(()=>d().value!=="off"),In=v(()=>l()&&!$t()||hi),nt=v(()=>Do?r(In)&&Xi(u(),"m"):r(In)),kn=v(()=>!l()||hi||$t()),Un=v(()=>Xi(u(),"m")),cn=v(()=>e.showNextPrevButtons&&Xi(u(),"m")&&!$t()&&e.nextButtonActive),ar=v(()=>e.showNextPrevButtons&&Xi(u(),"m")&&!$t()&&e.prevButtonActive),un=v(()=>!$t()&&!!f()),pn=v(()=>b()!==$a.ChromecastState.NOT_AVAILABLE&&!(p()&&$()===1)&&Xi(u(),"m")&&!hi),fn=v(()=>e.showAutoplayNext&&!li()&&Xi(u(),"s")),io=v(()=>x().length>0&&Xi(u(),"m")),Gi=v(()=>_()||C()),mn=v(()=>Xi(u(),"s")&&!$t()),zn=v(()=>!e.logoHidden&&!$t()),Qo=v(()=>se.features.fullscreen&&(e.logoHidden||Xi(u(),Do?"xs":"s"))&&!(p()&&$()===1)&&(hi?At():!0)),vn=v(()=>(!f()||$t())&&!(se.features.interactiveHideTime&&hi)),Ho=v(()=>T().width>100),bo=v(()=>Qi&&Xi(u(),"m")),Ui=v(()=>Do?ko&&Xi(u(),"s"):ko),qn=v(()=>Do?Eo&&Xi(u(),"s"):Eo),uo=v(()=>!$t()&&!f()&&!!(_o!=null&&_o.length)&&r(Un)&&!r(dn)),En=v(()=>!k()||!!P()),Wn=v(()=>A()?vt("tooltip_interactive_graph_on"):vt("tooltip_interactive_graph_off")),gn=v(()=>I()?vt("aria_label_context_menu_close"):vt("aria_label_context_menu_open")),Er=(ct,wt)=>ct?wt&&wt===$a.PlaybackState.PAUSED?vt("tooltip_play"):"":vt("tooltip_live"),Go=v(()=>Er(r(En),s())),Pr=v(()=>se.logoType==="vk_video"?vt("tooltip_vk_video_logo"):vt("tooltip_vk_logo")),Kn=v(()=>r(Oo)?vt("tooltip_subtitles_on"):vt("tooltip_subtitles_off")),Qn=v(()=>V()?vt("tooltip_fullscreen_on"):vt("tooltip_fullscreen_off")),lr=v(()=>b()===$a.ChromecastState.CONNECTED?vt("tooltip_chromecast_on"):vt("tooltip_chromecast_off")),Ar=v(()=>q()?vt("tooltip_autoplay_on"):vt("tooltip_autoplay_off")),Pn=J(0),ii=me({}),dr=v(()=>Ot.prevButton),Mr=v(()=>Ot.replayButton),Fo=v(()=>Ot.playButton),Ei=v(()=>Ot.nextButton),cr=v(()=>Ot.playPrevChapterButton),gt=v(()=>Ot.seekToInteractiveButton),Wt=v(()=>Ot.interactiveGraphButton),Li=v(()=>Ot.liveButton),Ao=v(()=>Ot.time),rt=v(()=>Ot.episodes),Yt=v(()=>Ot.vkLogo),_i=v(()=>Ot.volume),oo=v(()=>Ot.subtitles),no=v(()=>Ot.settings),Vi=v(()=>Ot.context),Ti=v(()=>Ot.fullscreen),ji=v(()=>Ot.chromecast),si=v(()=>({prevButton:G()?G().right-G().left:0,replayButton:H()?H().right-H().left:0,playButton:Z()?Z().right-Z().left:0,nextButton:re()?re().right-re().left:0,playPrevChapterButton:X()?X().right-X().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:ue()?ue().right-ue().left:0,liveButton:Ve()?Ve().right-Ve().left:0,time:Me()?Me().right-Me().left:0,episodes:_e()?_e().right-_e().left:0,vkLogo:ae()?ae().right-ae().left:0,volume:Le()?Le().right-Le().left:0,subtitles:ne()?ne().right-ne().left:0,settings:B()?B().right-B().left:0,context:$e()?$e().right-$e().left:0,fullscreen:de()?de().right-de().left:0,chromecast:Qe()?Qe().right-Qe().left:0,additionalButtons:te().length?te().reduce(ct=>[...ct,40],[]):[]})),zi=J(0);Fe(()=>{(!r(zi)||r(zi)<r(si).time)&&Ct(()=>D(zi,me(r(si).time)))});let hn=J(!1);Fe(()=>{let ct=0;r(uo)&&(Xi(u(),"xl")?ct=r(si).time:ct=60);let wt=r(si).prevButton+r(si).playButton+r(si).nextButton+r(si).seekToInteractiveButton+r(si).interactiveGraphButton+r(si).liveButton+r(zi)+ct;D(hn,me(r(vn)&&r(Pn)>=wt))});let ur=v(()=>r(hn)&&Xi(u(),"m")),Gn=(0,A1.debounceFn)(hl,260);Fe(()=>{T(),ve(),Gn(fi(),Ot,ii,e.showControls)});let pr=le();Fe(()=>{Y(),ie()&&Ct(()=>dl(ie(),Y(),bt))});let fr;Fe(()=>{He(),Ct(()=>mu(pi,He(),fr))});function mr(){Ss({isAudioDisabled:et,audioDisabledHintCallback:it,isAudioAvailable:Ye(),audioIsNotExistHintCallback:Xe})&&Be()}let vr=hi?Tt:We,jn=v(()=>ye()!==null),Yn=v(()=>r(jn)?ye():r(co)),Uo=v(()=>r(Yn)?vt("tooltip_pause"):vt("tooltip_play")),Lr=vt("tooltip_episodes"),zo=v(()=>{var ct,wt,so,jo;return r(ar)?{id:"prevButton",type:"desktop-control-panel-left",weight:as.prevButton,buttonComponent:_a,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:ki.bind(null,!0)},tooltipEnabled:!((wt=(ct=O.callbacks)==null?void 0:ct.uiInfo)!=null&&wt.onPrevButtonMouseEnter)&&!((jo=(so=O.callbacks)==null?void 0:so.uiInfo)!=null&&jo.onPrevButtonMouseLeave),mouseEnter:()=>{var ao,mi,Ni;(Ni=(mi=(ao=O.callbacks)==null?void 0:ao.uiInfo)==null?void 0:mi.onPrevButtonMouseEnter)==null||Ni.call(mi,ha(fi(),ii,"prevButton",e.showControls))},mouseLeave:()=>{var ao,mi,Ni;(Ni=(mi=(ao=O.callbacks)==null?void 0:ao.uiInfo)==null?void 0:mi.onPrevButtonMouseLeave)==null||Ni.call(mi,ha(fi(),ii,"prevButton",e.showControls))},tooltipText:vt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),gr=v(()=>r(nt)?{id:"replayButton",type:"desktop-control-panel-left",weight:as.replayButton,buttonComponent:_l,buttonComponentProps:{disabled:r(Tn),click:vr},tooltipText:vt("tooltip_restart"),disabled:r(Tn)}:void 0),Vr=v(()=>r(kn)?{id:"playButton",type:"desktop-control-panel-left",weight:as.playButton,buttonComponent:bl,buttonComponentProps:{disabled:r(Hn),isPlaying:r(co),click:We},tooltipText:r(Uo),disabled:r(Hn)}:void 0),Rr=v(()=>{var ct,wt,so,jo;return r(cn)?{id:"nextButton",type:"desktop-control-panel-left",weight:as.nextButton,buttonComponent:_a,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:No.bind(null,!0)},tooltipEnabled:!((wt=(ct=O.callbacks)==null?void 0:ct.uiInfo)!=null&&wt.onNextButtonMouseEnter)&&!((jo=(so=O.callbacks)==null?void 0:so.uiInfo)!=null&&jo.onNextButtonMouseLeave),mouseEnter:()=>{var ao,mi,Ni;(Ni=(mi=(ao=O.callbacks)==null?void 0:ao.uiInfo)==null?void 0:mi.onNextButtonMouseEnter)==null||Ni.call(mi,ha(fi(),ii,"nextButton",e.showControls))},mouseLeave:()=>{var ao,mi,Ni;(Ni=(mi=(ao=O.callbacks)==null?void 0:ao.uiInfo)==null?void 0:mi.onNextButtonMouseLeave)==null||Ni.call(mi,ha(fi(),ii,"nextButton",e.showControls))},tooltipText:vt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Nr=v(()=>hi&&r(qn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:as.playPrevChapterButton,buttonComponent:Ld,buttonComponentProps:{disabled:r(Fn),click:e.playPrevChapter},tooltipText:vt("tooltip_interactive_go_back"),disabledTooltipContent:vt(Po),disabled:r(Fn)}:void 0),ro=v(()=>hi&&r(Ui)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:as.seekToInteractiveButton,buttonComponent:Rd,buttonComponentProps:{disabled:r(rr),click:e.seekToInteractive},tooltipText:vt("tooltip_interactive_seek"),disabled:r(rr),disabledTooltipContent:vt(Se())}:void 0),An=v(()=>hi&&r(bo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:as.interactiveGraphButton,buttonComponent:Nd,buttonComponentProps:{disabled:r(kr),click:to.toggle,graphIsOpened:A()},tooltipText:r(Wn)}:void 0),Br=v(()=>r(un)?{id:"liveButton",type:"desktop-control-panel-left",weight:as.liveButton,buttonComponent:Bd,buttonComponentProps:{isLiveActive:r(En),ariaLabel:r(Go)},tooltipText:r(Go),disabled:r(En)&&s()===$a.PlaybackState.PLAYING}:void 0),dt=v(()=>[r(zo),r(gr),r(Vr),r(Rr),r(Nr),r(ro),r(An),r(Br)].filter(ct=>!!ct).sort(la)),Kt=v(()=>r(zn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ds.vkLogo,buttonComponent:Cd,buttonComponentProps:{targetUrl:Jt(),logoClickable:e.logoClickable,click:je},tooltipText:r(Pr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Ri=v(()=>r(fn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ds.autoplayNext,buttonComponent:Vd,tooltipText:r(Ar)}:void 0),Mo=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:ds.volume,buttonComponent:Mf,buttonComponentProps:{click:mr}})),Ce=v(()=>r(io)?{id:"subtitles",type:"desktop-control-panel-right",weight:ds.subtitles,buttonComponent:kf,buttonComponentProps:{isSubtitlesEnabled:r(Oo),click:ft},tooltipText:r(Kn)}:void 0),Vt=v(()=>r(mn)?{id:"settings",type:"desktop-control-panel-right",weight:ds.settings,buttonComponent:vl,buttonComponentProps:{ref$:pr},tooltipText:Y()?void 0:vt("tooltip_settings_off")}:void 0),$i=v(()=>se.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ds.context,buttonComponent:Yf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(gn)},className:r(Gi)?"":"out-of-view",tooltipText:r(gn)}:void 0),yi=v(()=>r(Qo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ds.fullscreen,buttonComponent:Sd,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Qn)}:void 0),bi=v(()=>r(pn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ds.chromecast,buttonComponent:Td,buttonComponentProps:{state:b(),click:sr},tooltipText:r(lr)}:void 0),Ee=v(()=>[r(Kt),r(Ri),r(Mo),r(Ce),r(Vt),r($i),r(yi),r(bi),...te()].filter(ct=>!!ct).sort(la));var yt=vy(),Zt=fe(yt);let Ii;var ci=h(Zt);let Qr=v(()=>!r(Ho));va(ci,{get isHidden(){return r(Qr)},get isAds(){return $t()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return k()},get ref(){return ii.timeline},set ref(ct){ii.timeline=ct}});var qi=M(ci,2),Zn=h(qi),Ms=h(Zn);Pi(Ms,17,()=>r(dt),ct=>ct.id,(ct,wt)=>{vu(ct,{get buttonComponent(){return r(wt).buttonComponent},get buttonComponentProps(){return r(wt).buttonComponentProps},get tooltipText(){return r(wt).tooltipText},get disabledTooltipContent(){return r(wt).disabledTooltipContent},get disabled(){return r(wt).disabled},get className(){return r(wt).className},get tooltipEnabled(){return r(wt).tooltipEnabled},get mouseEnter(){return r(wt).mouseEnter},get mouseLeave(){return r(wt).mouseLeave},get ref(){return ii[r(wt).id]},set ref(so){ii[r(wt).id]=so}})});var Xn=M(Ms,2);{var Ea=ct=>{let wt=v(()=>$t()?Re():Ze()),so=v(()=>$t()?ut():pt());yd(ct,{isMobile:!1,get showDuration(){return r(ur)},get position(){return r(wt)},get duration(){return r(so)},get ref(){return ii.time},set ref(jo){ii.time=jo}})};R(Xn,ct=>{r(vn)&&ct(Ea)})}var kl=M(Xn,2);let Pa=v(()=>!r(uo));Vo(kl,{className:"w-max",get disabled(){return r(Pa)},tooltipContent:Lr,get ref(){return ii.episodes},set ref(ct){ii.episodes=ct},children:(ct,wt)=>{var so=Oe(),jo=fe(so);{var ao=mi=>{kd(mi,{get position(){return Ze()},get duration(){return pt()},timeCodes:_o})};R(jo,mi=>{r(uo)&&mi(ao)})}y(ct,so)},$$slots:{default:!0}}),g(Zn);var Aa=M(Zn,2);Pi(Aa,21,()=>r(Ee),ct=>ct.id,(ct,wt)=>{var so=Oe(),jo=fe(so);{var ao=Ni=>{vu(Ni,{get buttonComponent(){return r(wt).buttonComponent},get buttonComponentProps(){return r(wt).buttonComponentProps},get tooltipText(){return r(wt).tooltipText},get disabledTooltipContent(){return r(wt).disabledTooltipContent},get disabled(){return r(wt).disabled},get className(){return r(wt).className},get ref(){return ii[r(wt).id]},set ref(Vs){ii[r(wt).id]=Vs}})},mi=Ni=>{let Vs=v(()=>!!r(wt).disabled);nm(Ni,{get id(){return r(wt).id},get testId(){return r(wt).testId},get icon(){return r(wt).icon},get ariaLabel(){return r(wt).ariaLabel},get tooltipText(){return r(wt).tooltipText},get disabledTooltipContent(){return r(wt).disabledTooltipContent},get disabled(){return r(Vs)},get onClick(){return r(wt).onClick},get ref(){return ii[r(wt).id]},set ref(Va){ii[r(wt).id]=Va}})};R(jo,Ni=>{P1(r(wt))?Ni(ao):Ni(mi,!1)})}y(ct,so)}),g(Aa),g(qi),mt(qi,ct=>Et(ct),()=>Et()),g(Zt),mt(Zt,ct=>at(ct),()=>at());var Ma=M(Zt,2);{var El=ct=>{Ad(ct,{get ref(){return ii.interactiveTimeIndicator},set ref(wt){ii.interactiveTimeIndicator=wt}})};R(Ma,ct=>{On&&ct(El)})}E(ct=>Ii=ee(Zt,1,"wrapper-bottom svelte-1iedtj3",null,Ii,ct),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Ur(Zn,"clientWidth",ct=>D(Pn,ct)),y(t,yt),z(),o()}var $l=require("@vkontakte/videoplayer-core/es2015");var sm=require("@vkontakte/videoplayer-shared/es2015");var hy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),_y=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),by={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 am(t,e){K(t,by);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,sm.noop),n=v(()=>o()===sm.noop),a=v(()=>r(n)||i()),s=J(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Bt(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 b=Oe(),p=fe(b);{var $=_=>{var C=hy();y(_,C)},x=_=>{var C=_y();E(()=>De(C,"src",e.iconUrl)),kt("error",C,d),Gs(C),y(_,C)};R(p,_=>{r(s)?_($):_(x,!1)})}y(u,b)},$$slots:{default:!0}})}var $y=we('<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 lm(t,e){let i=Ae(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}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i))),y(t,o)}var M1=require("@vkontakte/videoplayer-shared/es2015");var yy=L('<span class="text svelte-6gmlbk"> </span>'),xy=L('<div aria-hidden="true"><!> <!></div>'),wy={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 gu(t,e){U(e,!0),K(t,wy);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,M1.noop),a=m(e,"ref",15,void 0),d=Ie().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=v(()=>o()?Ts:lm),f=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Bt(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(b){a(b)},children:(b,p)=>{var $=xy();let x=v(()=>r(u)),_;var C=h($);Ai(C,()=>r(x),(P,A)=>{A(P,{})});var T=M(C,2);{var k=P=>{var A=yy(),I=h(A,!0);g(A),E(V=>ge(I,V),[()=>d("mobile_unmute")]),y(P,A)};R(T,P=>{o()&&P(k)})}g($),E(P=>_=ee($,1,"container svelte-6gmlbk",null,_,P),[()=>({expanded:o()})]),y(b,$)},$$slots:{default:!0}}),z()}var Sy=we('<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 dm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Sy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(3),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i))),y(t,o)}var Cy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
256
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function cm(t,e){K(t,Cy);let i=m(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");dm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var L1=require("@vkontakte/videoplayer-shared/es2015");function um(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,L1.noop),a=F("menu_pip");Bt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{cm(s,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}var V1=require("@vkontakte/videoplayer-shared/es2015");var Ty=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Iy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},ky=L("<div><!></div>"),Ey=L("<div><!></div>"),Py=L("<div><!></div>"),Ay=L("<!> <!> <!>",1),My=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Ly=L("<div><!></div>"),Vy=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Ry=L("<!> <!> <div><!></div>",1),Ny=L('<div aria-hidden="true">\xB7</div> <!>',1),By=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Dy={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-1afsgkw {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
257
257
  .wrapper-middle-left-second.svelte-1afsgkw,
258
258
  .wrapper-middle-right.svelte-1afsgkw {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-1afsgkw {left:12px;}.wrapper-middle-left-second.svelte-1afsgkw {left:64px;}.wrapper-middle-right.svelte-1afsgkw {right:12px;}.controls.svelte-1afsgkw {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;}.controls.svelte-1afsgkw > *:not(:first-child) {margin-left:8px;}.hidden.svelte-1afsgkw {visibility:hidden;opacity:0;}.controls-hidden.svelte-1afsgkw {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1afsgkw {transition:none;}.overlay-mobile.svelte-1afsgkw {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
259
259
 
@@ -261,7 +261,7 @@ Try switching the\xA0quality to\xA0Auto.`},Uh=O_;var ns=new Map;ns.set(el.Interf
261
261
  }
262
262
 
263
263
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-1afsgkw {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-1afsgkw {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-1afsgkw {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw {left:96px;}.wrapper-middle-right.fullscreen.svelte-1afsgkw {right:44px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
264
- }`};function um(t,e){var Ti,Xn;U(e,!0),W(t,Vy);let[i,o]=Oe(),n=()=>S($o,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(li,"$disabledControls$",i),s=()=>S(Pt,"$playbackState$",i),d=()=>S(Ho,"$adPlaybackState",i),l=()=>S(Gt,"$isEnded$",i),u=()=>S(_t,"$playerSize",i),v=()=>S(He,"$scrubbingInProgress",i),$=()=>S(ai,"$chromecastState$",i),p=()=>S(it,"$isPictureInPictureActive",i),_=()=>S(dt,"$pictureInPictureType$",i),w=()=>S(qe,"$mobileNotReportControlHidden$",i),y=()=>S(ht,"$playerPhase",i),C=()=>S(Ji,"$currentGridType$",i),T=()=>S(ge,"$isLive$",i),E=()=>S(ct,"$settingsMenuVisible",i),P=()=>S(ae,"$isRewindableLive$",i),A=()=>S(Ie,"$isActiveLive$",i),I=()=>S(qi,"$isInteractiveTime$",i),V=()=>S(Yt,"$isAudioAvailable$",i),H=()=>S(Rn,"$settingButtonRef$",i),Y=()=>S(Ui,"$startedByKeyboard$",i),O=()=>S(rt,"$isFullscreen",i),J=()=>S(Je,"$mobileUnmuteButtonVisible",i),re=()=>S(j,"$muted$",i),Z=()=>S(Ze,"$mobileUnmuteButtonExpanded",i),me=()=>S(Ci,"$additionalButtons$",i),de=()=>S(ei,"$crashed$",i),Le=()=>S(Tt,"$graphIsOpened$",i),Me=()=>S(bo,"$adPosition",i),ve=()=>S(zi,"$adDuration",i),le=()=>S(vt,"$position$",i),Ae=()=>S(tt,"$duration$",i),se=f(e,"playerControlsWrapperRef",15,void 0),N=f(e,"playerControlsRef",15,void 0),Re=f(e,"isAds",3,!1),ie=f(e,"logoTargetUrl",3,""),je=f(e,"isOneVideoPlaylist",3,!1),oe=f(e,"customFullscreenSupported",3,!0),G=Ce(),K=_o(),Ve=qt(),Ne=G.actions.internal.toggleMuted,et=G.actions.internal.togglePlay,xe=G.actions.internal.pause,we=G.actions.internal.prevVideoClick,Be=G.actions.internal.nextVideoClick,Xe=(Ti=G.callbacks)==null?void 0:Ti.onAudioDoesNotExistHint,nt=(Xn=G.callbacks)==null?void 0:Xn.onAudioDisabledHint,ht=G.playerPhase,tt=G.state.duration$,vt=G.state.positionWithScrubbing$,Pt=G.state.playbackState$,Yt=G.state.isAudioAvailable$,Wt=G.state.isAudioDisabled,Gt=G.state.isEnded$,ge=G.state.isLive$,j=G.state.muted$,Ie=G.state.isActiveLive$,ae=G.state.isRewindableLive$,He=G.ui.scrubbingInProgress,qe=G.ui.mobileNotReportControlHidden$,{isActive$:it,type$:dt}=K.pictureInPicture$,Ze=G.ui.mobileUnmuteButtonExpanded,Je=G.ui.mobileUnmuteButtonVisible,ct=G.ui.settingsMenu.visible$,De=G.ui.settingsMenu.openedByBtnKeyboard$,yt=G.ui.controls,We=G.actions.internal.getVideoEpisodes(),At=G.webApi.pictureInPictureApi,ai=G.state.chromecastState$,ei=G.state.crashed$,li=yt.disabledControls$,Ui=G.ui.startedByKeyboard$,Ji=G.ui.currentGridType$,zi=G.ads.duration,bo=G.ads.position,Ho=G.ads.playbackState,rt=G.ui.isFullscreen,_t=G.ui.playerSize,Ci=G.ui.additionalButtonsDeprecated$,X=G.actions.internal.getVideoElement,ti=G.actions.internal.replayInteractive,di=G.state.isInteractive,qi=G.state.isInteractiveTime$,ni=G.state.showInteractiveGraph,hi=G.state.showSeekToInteractive,ci=G.state.showPlayPrevChapter,pt=G.state.showInteractiveTimeIndicator,$o=K.seekToInteractiveDisabledTooltip$,Tt=K.graphIsOpened$,Kt=m(()=>F(G.state.playPrevChapterDisabledTooltip)),ii=m(()=>F(n())),no=m(()=>a().has("EPISODE_BUTTON")),Kn=m(()=>a().has("GRAPH_BUTTON")),Wi=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Eo=m(()=>a().has("PLAY_BUTTON")),ui=m(()=>a().has("REPLAY_BUTTON")),It=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),yo=m(()=>s()===hl.PlaybackState.PLAYING),Fo=m(()=>d()==="paused"),pi=m(()=>l()&&!Re()&&!di),Po=m(()=>!l()||Re()),ro=m(()=>e.showNextPrevButtons&&!Re()&&e.prevButtonActive),Ao=m(()=>e.showNextPrevButtons&&!Re()&&e.nextButtonActive),Uo=m(()=>u().width>300),En=m(()=>u().width>400),Oi=m(v),Pn=m(()=>$()!==hl.ChromecastState.NOT_AVAILABLE&&!(p()&&_()===1)&&!w()&&!di),so=m(()=>y()==="LiveWaitingStart"),Mo=m(()=>!!At&&$()!==hl.ChromecastState.CONNECTED&&!w()&&(_()===1&&r(so)||!r(so))&&!r(Oi)&&!di),Tr=m(()=>!r(Oi)&&Yi(C(),"s")),dr=m(()=>!e.logoHidden&&u().width>350),An=m(()=>Ve.features.fullscreen&&!(p()&&_()===1)&&(di?oe():!0)&&!r(Oi)),Qn=m(()=>(!T()||Re())&&u().width>260&&!r(Oi)&&!(Ve.features.interactiveHideTime&&di)),Gn=m(()=>E()||e.showControls),xo=m(()=>!Re()&&!T()&&!!(We!=null&&We.length)&&r(Uo)&&!r(no)&&!r(Oi)),gn=m(()=>!P()||!!A()),Mn=m(()=>ni&&Yi(C(),"m")),st=fe({}),Ln=(0,L1.debounceFn)(ml,260);ze(()=>{u(),I(),Ln(X(),yt,st,e.showControls)});let Go=()=>G.actions.internal.toggleChromecast();function jo(){ws({isAudioDisabled:Wt,audioDisabledHintCallback:nt,isAudioAvailable:V(),audioIsNotExistHintCallback:Xe})&&Ne()}function Ir(){return Mt(this,null,function*(){At!=null&&At.isActive()?yield At==null?void 0:At.remove():yield At==null?void 0:At.request()})}function Yo(){!Wt&&V()&&Je.set(!1),jo()}let Vn=ee(""),jn=(ft,Ft)=>{if(!ft){B(Vn,fe(F("tooltip_live")));return}Ft&&Ft===hl.PlaybackState.PAUSED&&B(Vn,fe(F("tooltip_play")))};ze(()=>{jn(r(gn),s())});let Rn=ue();ze(()=>{H()&&rl(H(),E(),De)}),ze(()=>{mu(Ui,Y(),st.playButton)});var Zo=Ly(),Ki=pe(Zo);{var ao=ft=>{var Ft=ky(),Li=pe(Ft);let Do;var at=M(Li,2);let jt;var mi=h(at);{var eo=ut=>{let Ut=m(()=>V()&&!Wt&&Z());gu(ut,{get muted(){return re()},get expanded(){return r(Ut)},click:Yo,get ref(){return st.volume},set ref(Ri){st.volume=Ri}})};R(mi,ut=>{(!V()||J())&&ut(eo)})}g(at);var to=M(at,2);let Vi;var wi=h(to);Ei(wi,1,me,({iconUrl:ut,ariaLabel:Ut,testId:Ri,onClick:ye,tooltip:kt})=>ut,(ut,Ut)=>{let Ri=()=>r(Ut).iconUrl,ye=()=>r(Ut).ariaLabel,kt=()=>r(Ut).testId,_i=()=>r(Ut).onClick,ki=()=>r(Ut).tooltip,co=m(()=>{var vi;return(vi=ye())!=null?vi:ki()});sm(ut,{get iconUrl(){return Ri()},get ariaLabel(){return r(co)},get testId(){return kt()},get onClick(){return _i()}})});var io=M(wi,2);{var Ii=ut=>{Rd(ut,{get ref(){return st.autoplayNextToggle},set ref(Ut){st.autoplayNextToggle=Ut}})};R(io,ut=>{e.showAutoplayNext&&!je()&&ut(Ii)})}var lo=M(io,2);{var Qi=ut=>{Id(ut,{isMobile:!0,click:Go,get state(){return $()},get ref(){return st.chromecast},set ref(Ut){st.chromecast=Ut}})};R(lo,ut=>{r(Pn)&&ut(Qi)})}var yn=M(lo,2);{var Jn=ut=>{cm(ut,{click:Ir,get isPictureInPictureActive(){return p()},get ref(){return st.pip},set ref(Ut){st.pip=Ut}})};R(yn,ut=>{r(Mo)&&ut(Jn)})}var pr=M(yn,2);{var er=ut=>{ul(ut,{ref$:Rn})};R(pr,ut=>{de()&&ut(er)})}var Mr=M(pr,2);{var fr=ut=>{Td(ut,{click:xe,get targetUrl(){return ie()},get logoClickable(){return e.logoClickable},get ref(){return st.vkLogo},set ref(Ut){st.vkLogo=Ut}})};R(Mr,ut=>{r(dr)&&ut(fr)})}g(to);var xn=M(to,2);let Nn;var en=h(xn);{var tn=ut=>{let Ut=m(()=>we.bind(null,!0));_a(ut,{get click(){return r(Ut)},type:"prev",isMobile:!0,get ref(){return st.prevButton},set ref(Ri){st.prevButton=Ri}})};R(en,ut=>{r(ro)&&ut(tn)})}var tr=M(en,2);{var Lr=ut=>{gl(ut,{get disabled(){return r(Eo)},click:et,isMobile:!0,get isPlaying(){return r(yo)},get ref(){return st.playButton},set ref(Ut){st.playButton=Ut}})};R(tr,ut=>{r(Po)&&ut(Lr)})}var Vr=M(tr,2);{var mr=ut=>{vl(ut,{get disabled(){return r(ui)},click:et,isMobile:!0,get ref(){return st.replayButton},set ref(Ut){st.replayButton=Ut}})};R(Vr,ut=>{r(pi)&&ut(mr)})}var wo=M(Vr,2);{var Bn=ut=>{let Ut=m(()=>Be.bind(null,!0));_a(ut,{get click(){return r(Ut)},type:"next",isMobile:!0,get ref(){return st.nextButton},set ref(Ri){st.nextButton=Ri}})};R(wo,ut=>{r(Ao)&&ut(Bn)})}g(xn);var ir=M(xn,2);{var Rr=ut=>{var Ut=Iy(),Ri=pe(Ut);{var ye=vi=>{var ke=Sy();let Lt;ke.__click=[xy,It,e,Kt];var Xt=h(ke);let Si=m(()=>!e.showControls);Vd(Xt,{get hidden(){return r(Si)},get disabled(){return r(It)},get click(){return e.playPrevChapter},get ref(){return st.playPrevChapterButton},set ref(oi){st.playPrevChapterButton=oi}}),g(ke),k(oi=>Lt=te(ke,1,"wrapper-middle-left svelte-1afsgkw",null,Lt,oi),[()=>({fullscreen:O(),hidden:!e.showControls})]),b(vi,ke)};R(Ri,vi=>{ci&&vi(ye)})}var kt=M(Ri,2);{var _i=vi=>{var ke=Cy();let Lt;var Xt=h(ke);let Si=m(()=>!e.showControls&&!Le());Nd(Xt,{get hidden(){return r(Si)},get disabled(){return r(Kn)},get click(){return Tt.toggle},get graphIsOpened(){return Le()},get ref(){return st.interactiveGraphButton},set ref(oi){st.interactiveGraphButton=oi}}),g(ke),k(oi=>Lt=te(ke,1,Jl(ci?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",Lt,oi),[()=>({fullscreen:O(),hidden:!e.showControls&&!Le()})]),b(vi,ke)};R(kt,vi=>{r(Mn)&&vi(_i)})}var ki=M(kt,2);{var co=vi=>{var ke=Ty();let Lt;ke.__click=[wy,Wi,e,ii];var Xt=h(ke);let Si=m(()=>!e.showControls);Dd(Xt,{get hidden(){return r(Si)},get disabled(){return r(Wi)},get click(){return e.seekToInteractive},get ref(){return st.seekToInteractiveButton},set ref(oi){st.seekToInteractiveButton=oi}}),g(ke),k(oi=>Lt=te(ke,1,"wrapper-middle-right svelte-1afsgkw",null,Lt,oi),[()=>({fullscreen:O(),hidden:!e.showControls})]),b(vi,ke)};R(ki,vi=>{hi&&vi(co)})}b(ut,Ut)};R(ir,ut=>{di&&!v()&&ut(Rr)})}k((ut,Ut,Ri,ye)=>{Do=te(Li,1,"overlay-mobile svelte-1afsgkw",null,Do,ut),jt=te(at,1,"wrapper-top-left svelte-1afsgkw",null,jt,Ut),Vi=te(to,1,"wrapper-top-right svelte-1afsgkw",null,Vi,Ri),Nn=te(xn,1,"wrapper-middle svelte-1afsgkw",null,Nn,ye)},[()=>({hidden:!r(Gn)}),()=>({hidden:!e.showControls,fullscreen:O()}),()=>({hidden:!e.showControls&&!w(),fullscreen:O()}),()=>({hidden:!e.showControls||v()||e.endScreenShown&&e.showNextPrevButtons})]),b(ft,Ft)};R(Ki,ft=>{Re()||ft(ao)})}var Lo=M(Ki,2);{var hn=ft=>{var Ft=Ay(),Li=pe(Ft);{var Do=Vi=>{var wi=Ey();let io;var Ii=h(wi);gu(Ii,{get muted(){return re()},expanded:!1,click:Yo,get ref(){return st.volume},set ref(lo){st.volume=lo}}),g(wi),k(lo=>io=te(wi,1,"wrapper-top-right svelte-1afsgkw",null,io,lo),[()=>({fullscreen:O()})]),b(Vi,wi)};R(Li,Vi=>{J()&&Vi(Do)})}var at=M(Li,2);{var jt=Vi=>{var wi=Py(),io=h(wi);let Ii=m(()=>!r(Fo));gl(io,{get disabled(){return r(Eo)},click:et,isMobile:!0,get isPlaying(){return r(Ii)},get ref(){return st.playButton},set ref(lo){st.playButton=lo}}),g(wi),b(Vi,wi)};R(at,Vi=>{r(Fo)&&Vi(jt)})}var mi=M(at,2);let eo;var to=h(mi);kd(to,{get position(){return Me()},get duration(){return ve()}}),g(mi),k(Vi=>eo=te(mi,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,eo,Vi),[()=>({fullscreen:O()})]),b(ft,Ft)};R(Lo,ft=>{Re()&&d()!=="inactive"&&ft(hn)})}var Xo=M(Lo,2);let Jo;var Mi=h(Xo);let zo;var Vo=h(Mi);te(Vo,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var cr=h(Vo);{var _n=ft=>{Bo(ft,{get disabled(){return r(ui)},get ref(){return st.replayButton},set ref(Ft){st.replayButton=Ft},children:(Ft,Li)=>{vl(Ft,{get disabled(){return r(ui)},click:ti})},$$slots:{default:!0}})};R(cr,ft=>{di&&ft(_n)})}var bn=M(cr,2);{var kr=ft=>{Bo(ft,{get ref(){return st.liveButton},set ref(Ft){st.liveButton=Ft},children:(Ft,Li)=>{Bd(Ft,{get isLiveActive(){return r(gn)},isMobile:!0,get ariaLabel(){return r(Vn)}})},$$slots:{default:!0}})};R(bn,ft=>{!Re()&&T()&&ft(kr)})}var qo=M(bn,2);{var Er=ft=>{let Ft=m(()=>Re()?Me():le()),Li=m(()=>Re()?ve():Ae());xd(ft,{get showDuration(){return r(En)},get position(){return r(Ft)},get duration(){return r(Li)},isMobile:!0,get ref(){return st.time},set ref(Do){st.time=Do}})};R(qo,ft=>{r(Qn)&&ft(Er)})}var Dn=M(qo,2);let Yn=m(()=>!r(xo));Bo(Dn,{className:"w-max",get disabled(){return r(Yn)},get ref(){return st.episodes},set ref(ft){st.episodes=ft},children:(ft,Ft)=>{var Li=Ue(),Do=pe(Li);{var at=jt=>{var mi=My(),eo=M(pe(mi),2);Ed(eo,{get position(){return le()},get duration(){return Ae()},timeCodes:We}),b(jt,mi)};R(Do,jt=>{r(xo)&&jt(at)})}b(ft,Li)},$$slots:{default:!0}});var ur=M(Dn,2);{var Pr=ft=>{Bo(ft,{get ref(){return st.settings},set ref(Ft){st.settings=Ft},children:(Ft,Li)=>{ul(Ft,{ref$:Rn})},$$slots:{default:!0}})};R(ur,ft=>{r(Tr)&&ft(Pr)})}var Zn=M(ur,2);{var $n=ft=>{Bo(ft,{get ref(){return st.fullscreen},set ref(Ft){st.fullscreen=Ft},children:(Ft,Li)=>{Cd(Ft,{get click(){return e.toggleFullscreen},get isFullscreen(){return O()}})},$$slots:{default:!0}})};R(Zn,ft=>{r(An)&&ft($n)})}g(Vo),mt(Vo,ft=>N(ft),()=>N());var Ar=M(Vo,2);va(Ar,{get isAds(){return Re()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return st.timeline},set ref(ft){st.timeline=ft}}),g(Mi),g(Xo),mt(Xo,ft=>se(ft),()=>se());var fi=M(Xo,2);{var Ro=ft=>{Md(ft,{get ref(){return st.interactiveTimeIndicator},set ref(Ft){st.interactiveTimeIndicator=Ft}})};R(fi,ft=>{pt&&ft(Ro)})}k((ft,Ft)=>{Jo=te(Xo,1,"wrapper-bottom svelte-1afsgkw",null,Jo,ft),zo=te(Mi,1,"controls-wrapper svelte-1afsgkw",null,zo,Ft)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:O()})]),b(t,Zo),z(),o()}lt(["click"]);function Hd(t,e){U(e,!0);let[i,o]=Oe(),n=()=>S(T,"$isMobile",i),a=f(e,"bottomNoSmooth",3,!1),s=f(e,"playerControlsWrapperRef",15,void 0),d=f(e,"playerControlsRef",15,void 0),l=f(e,"isAds",3,!1),u=f(e,"logoTargetUrl",3,""),v=f(e,"showAutoplayNext",3,!1),$=f(e,"isOneVideoPlaylist",3,!1),p=f(e,"customFullscreenSupported",3,!0),_=f(e,"endScreenShown",3,!1),w=f(e,"onDisabledPlayPrevChapterClick",3,pm.noop),y=f(e,"onDisabledSeekToInteractiveClick",3,pm.noop),T=Ce().ui.isMobile,E=ee(!1);zt(()=>{let V=setTimeout(()=>B(E,!0),0);return()=>clearTimeout(V)});var P=Ue(),A=pe(P);{var I=V=>{var H=Ue(),Y=pe(H);{var O=re=>{um(re,{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 v()},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(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},J=re=>{nm(re,{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 v()},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(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};R(Y,re=>{n()?re(O):re(J,!1)})}b(V,H)};R(A,V=>{r(E)&&V(I)})}b(t,P),z(),o()}var Ry=$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 fm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(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 mm(t,e){let i=f(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);fm(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 vm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(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 Ny=$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 gm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(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 hu(t,e){let i=f(e,"isOff",3,!1);var o=Ue(),n=pe(o);{var a=d=>{gm(d,{})},s=d=>{vm(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var By=$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 hm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=By();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(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 _m(t,e){let i=f(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);hm(t,{get style(){return r(o)}})}var Oy=$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 bm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Oy();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(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 $m(t,e){let i=f(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);bm(t,{get style(){return r(o)}})}var Hy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Fy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Uy=L("<div><!></div>"),zy={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
264
+ }`};function pm(t,e){var Ei,cr;U(e,!0),K(t,Dy);let[i,o]=Ne(),n=()=>S(Nt,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(Hi,"$disabledControls$",i),s=()=>S(Jt,"$playbackState$",i),d=()=>S(_o,"$adPlaybackState",i),l=()=>S(Dt,"$isEnded$",i),u=()=>S(Sn,"$playerSize",i),f=()=>S(We,"$scrubbingInProgress",i),b=()=>S(tt,"$chromecastState$",i),p=()=>S(ft,"$isPictureInPictureActive",i),$=()=>S(Xe,"$pictureInPictureType$",i),x=()=>S(je,"$mobileNotReportControlHidden$",i),_=()=>S(at,"$playerPhase",i),C=()=>S(Rt,"$currentGridType$",i),T=()=>S(O,"$isLive$",i),k=()=>S(Ke,"$settingsMenuVisible",i),P=()=>S(Be,"$isRewindableLive$",i),A=()=>S(se,"$isActiveLive$",i),I=()=>S(Fi,"$isInteractiveTime$",i),V=()=>S(li,"$isAudioAvailable$",i),q=()=>S(io,"$settingButtonRef$",i),G=()=>S(Ki,"$startedByKeyboard$",i),H=()=>S(ln,"$isFullscreen",i),Z=()=>S(ot,"$mobileUnmuteButtonVisible",i),re=()=>S(et,"$volumeHidden",i),X=()=>S(be,"$muted$",i),ce=()=>S(it,"$mobileUnmuteButtonExpanded",i),ue=()=>S(To,"$additionalButtons$",i),Ve=()=>S(ei,"$crashed$",i),Me=()=>S(lo,"$graphIsOpened$",i),_e=()=>S(Ot,"$adPosition",i),ae=()=>S(bt,"$adDuration",i),Le=()=>S($t,"$position$",i),ne=()=>S(Et,"$duration$",i),B=m(e,"playerControlsWrapperRef",15,void 0),$e=m(e,"playerControlsRef",15,void 0),de=m(e,"isAds",3,!1),Qe=m(e,"logoTargetUrl",3,""),te=m(e,"isOneVideoPlaylist",3,!1),ve=m(e,"customFullscreenSupported",3,!0),Y=Ie(),ie=ho(),He=Gt(),Ye=Y.actions.internal.toggleMuted,ye=Y.actions.internal.togglePlay,Se=Y.actions.internal.pause,Re=Y.actions.internal.prevVideoClick,Ze=Y.actions.internal.nextVideoClick,ut=(Ei=Y.callbacks)==null?void 0:Ei.onAudioDoesNotExistHint,pt=(cr=Y.callbacks)==null?void 0:cr.onAudioDisabledHint,at=Y.playerPhase,Et=Y.state.duration$,$t=Y.state.positionWithScrubbing$,Jt=Y.state.playbackState$,li=Y.state.isAudioAvailable$,At=Y.state.isAudioDisabled,Dt=Y.state.isEnded$,O=Y.state.isLive$,be=Y.state.muted$,se=Y.state.isActiveLive$,Be=Y.state.isRewindableLive$,We=Y.ui.scrubbingInProgress,je=Y.ui.mobileNotReportControlHidden$,{isActive$:ft,type$:Xe}=ie.pictureInPicture$,it=Y.ui.mobileUnmuteButtonExpanded,ot=Y.ui.mobileUnmuteButtonVisible,Ke=Y.ui.settingsMenu.visible$,_t=Y.ui.settingsMenu.openedByBtnKeyboard$,qt=Y.ui.controls,{volume:et}=Y.ui.hiddenControls,Xt=Y.actions.internal.getVideoEpisodes(),ni=Y.webApi.pictureInPictureApi,tt=Y.state.chromecastState$,ei=Y.state.crashed$,Hi=qt.disabledControls$,Ki=Y.ui.startedByKeyboard$,Rt=Y.ui.currentGridType$,bt=Y.ads.duration,Ot=Y.ads.position,_o=Y.ads.playbackState,ln=Y.ui.isFullscreen,Sn=Y.ui.playerSize,To=Y.ui.additionalButtonsDeprecated$,j=Y.actions.internal.getVideoElement,ti=Y.actions.internal.replayInteractive,di=Y.state.isInteractive,Fi=Y.state.isInteractiveTime$,pi=Y.state.showInteractiveGraph,vt=Y.state.showSeekToInteractive,gi=Y.state.showPlayPrevChapter,Je=Y.state.showInteractiveTimeIndicator,Nt=ie.seekToInteractiveDisabledTooltip$,lo=ie.graphIsOpened$,ri=v(()=>F(Y.state.playPrevChapterDisabledTooltip)),nr=v(()=>F(n())),Io=v(()=>a().has("EPISODE_BUTTON")),Ko=v(()=>a().has("GRAPH_BUTTON")),fi=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Tt=v(()=>a().has("PLAY_BUTTON")),ki=v(()=>a().has("REPLAY_BUTTON")),No=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),hi=v(()=>s()===$l.PlaybackState.PLAYING),Bo=v(()=>d()==="paused"),Qi=v(()=>l()&&!de()&&!di),ko=v(()=>!l()||de()),Eo=v(()=>e.showNextPrevButtons&&!de()&&e.prevButtonActive),On=v(()=>e.showNextPrevButtons&&!de()&&e.nextButtonActive),Po=v(()=>u().width>300),Cn=v(()=>u().width>400),to=v(f),Do=v(()=>b()!==$l.ChromecastState.NOT_AVAILABLE&&!(p()&&$()===1)&&!x()&&!di),dn=v(()=>_()==="LiveWaitingStart"),kr=v(()=>!!ni&&b()!==$l.ChromecastState.CONNECTED&&!x()&&($()===1&&r(dn)||!r(dn))&&!r(to)&&!di),rr=v(()=>!r(to)&&Xi(C(),"s")),Hn=v(()=>!e.logoHidden&&u().width>350),Tn=v(()=>He.features.fullscreen&&!(p()&&$()===1)&&(di?ve():!0)&&!r(to)),Fn=v(()=>(!T()||de())&&u().width>260&&!r(to)&&!(He.features.interactiveHideTime&&di)),sr=v(()=>k()||e.showControls),co=v(()=>!de()&&!T()&&!!(Xt!=null&&Xt.length)&&r(Po)&&!r(Io)&&!r(to)),Oo=v(()=>!P()||!!A()),In=v(()=>pi&&Xi(C(),"m")),nt=me({}),kn=(0,V1.debounceFn)(hl,260);Fe(()=>{u(),I(),kn(j(),qt,nt,e.showControls)});let Un=()=>Y.actions.internal.toggleChromecast();function cn(){Ss({isAudioDisabled:At,audioDisabledHintCallback:pt,isAudioAvailable:V(),audioIsNotExistHintCallback:ut})&&Ye()}function ar(){return St(this,null,function*(){ni!=null&&ni.isActive()?yield ni==null?void 0:ni.remove():yield ni==null?void 0:ni.request()})}function un(){!At&&V()&&ot.set(!1),cn()}let pn=J(""),fn=(gt,Wt)=>{if(!gt){D(pn,me(F("tooltip_live")));return}Wt&&Wt===$l.PlaybackState.PAUSED&&D(pn,me(F("tooltip_play")))};Fe(()=>{fn(r(Oo),s())});let io=le();Fe(()=>{q()&&dl(q(),k(),_t)}),Fe(()=>{mu(Ki,G(),nt.playButton)});var Gi=By(),mn=fe(Gi);{var zn=gt=>{var Wt=My(),Li=fe(Wt);let Ao;var rt=M(Li,2);let Yt;var _i=h(rt);{var oo=dt=>{let Kt=v(()=>V()&&!At&&ce());gu(dt,{get muted(){return X()},get expanded(){return r(Kt)},click:un,get ref(){return nt.volume},set ref(Ri){nt.volume=Ri}})};R(_i,dt=>{(!V()||Z())&&!re()&&dt(oo)})}g(rt);var no=M(rt,2);let Vi;var Ti=h(no);Pi(Ti,1,ue,({iconUrl:dt,ariaLabel:Kt,testId:Ri,onClick:Mo,tooltip:Ce})=>dt,(dt,Kt)=>{let Ri=()=>r(Kt).iconUrl,Mo=()=>r(Kt).ariaLabel,Ce=()=>r(Kt).testId,Vt=()=>r(Kt).onClick,$i=()=>r(Kt).tooltip,yi=v(()=>{var bi;return(bi=Mo())!=null?bi:$i()});am(dt,{get iconUrl(){return Ri()},get ariaLabel(){return r(yi)},get testId(){return Ce()},get onClick(){return Vt()}})});var ji=M(Ti,2);{var si=dt=>{Vd(dt,{get ref(){return nt.autoplayNextToggle},set ref(Kt){nt.autoplayNextToggle=Kt}})};R(ji,dt=>{e.showAutoplayNext&&!te()&&dt(si)})}var zi=M(ji,2);{var hn=dt=>{Td(dt,{isMobile:!0,click:Un,get state(){return b()},get ref(){return nt.chromecast},set ref(Kt){nt.chromecast=Kt}})};R(zi,dt=>{r(Do)&&dt(hn)})}var ur=M(zi,2);{var Gn=dt=>{um(dt,{click:ar,get isPictureInPictureActive(){return p()},get ref(){return nt.pip},set ref(Kt){nt.pip=Kt}})};R(ur,dt=>{r(kr)&&dt(Gn)})}var pr=M(ur,2);{var fr=dt=>{vl(dt,{ref$:io})};R(pr,dt=>{Ve()&&dt(fr)})}var mr=M(pr,2);{var vr=dt=>{Cd(dt,{click:Se,get targetUrl(){return Qe()},get logoClickable(){return e.logoClickable},get ref(){return nt.vkLogo},set ref(Kt){nt.vkLogo=Kt}})};R(mr,dt=>{r(Hn)&&dt(vr)})}g(no);var jn=M(no,2);let Yn;var Uo=h(jn);{var Lr=dt=>{let Kt=v(()=>Re.bind(null,!0));_a(dt,{get click(){return r(Kt)},type:"prev",isMobile:!0,get ref(){return nt.prevButton},set ref(Ri){nt.prevButton=Ri}})};R(Uo,dt=>{r(Eo)&&dt(Lr)})}var zo=M(Uo,2);{var gr=dt=>{bl(dt,{get disabled(){return r(Tt)},click:ye,isMobile:!0,get isPlaying(){return r(hi)},get ref(){return nt.playButton},set ref(Kt){nt.playButton=Kt}})};R(zo,dt=>{r(ko)&&dt(gr)})}var Vr=M(zo,2);{var Rr=dt=>{_l(dt,{get disabled(){return r(ki)},click:ye,isMobile:!0,get ref(){return nt.replayButton},set ref(Kt){nt.replayButton=Kt}})};R(Vr,dt=>{r(Qi)&&dt(Rr)})}var Nr=M(Vr,2);{var ro=dt=>{let Kt=v(()=>Ze.bind(null,!0));_a(dt,{get click(){return r(Kt)},type:"next",isMobile:!0,get ref(){return nt.nextButton},set ref(Ri){nt.nextButton=Ri}})};R(Nr,dt=>{r(On)&&dt(ro)})}g(jn);var An=M(jn,2);{var Br=dt=>{var Kt=Ay(),Ri=fe(Kt);{var Mo=bi=>{var Ee=ky();let yt;Ee.__click=[Ty,No,e,ri];var Zt=h(Ee);let Ii=v(()=>!e.showControls);Ld(Zt,{get hidden(){return r(Ii)},get disabled(){return r(No)},get click(){return e.playPrevChapter},get ref(){return nt.playPrevChapterButton},set ref(ci){nt.playPrevChapterButton=ci}}),g(Ee),E(ci=>yt=ee(Ee,1,"wrapper-middle-left svelte-1afsgkw",null,yt,ci),[()=>({fullscreen:H(),hidden:!e.showControls})]),y(bi,Ee)};R(Ri,bi=>{gi&&bi(Mo)})}var Ce=M(Ri,2);{var Vt=bi=>{var Ee=Ey();let yt;var Zt=h(Ee);let Ii=v(()=>!e.showControls&&!Me());Nd(Zt,{get hidden(){return r(Ii)},get disabled(){return r(Ko)},get click(){return lo.toggle},get graphIsOpened(){return Me()},get ref(){return nt.interactiveGraphButton},set ref(ci){nt.interactiveGraphButton=ci}}),g(Ee),E(ci=>yt=ee(Ee,1,Xl(gi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",yt,ci),[()=>({fullscreen:H(),hidden:!e.showControls&&!Me()})]),y(bi,Ee)};R(Ce,bi=>{r(In)&&bi(Vt)})}var $i=M(Ce,2);{var yi=bi=>{var Ee=Py();let yt;Ee.__click=[Iy,fi,e,nr];var Zt=h(Ee);let Ii=v(()=>!e.showControls);Rd(Zt,{get hidden(){return r(Ii)},get disabled(){return r(fi)},get click(){return e.seekToInteractive},get ref(){return nt.seekToInteractiveButton},set ref(ci){nt.seekToInteractiveButton=ci}}),g(Ee),E(ci=>yt=ee(Ee,1,"wrapper-middle-right svelte-1afsgkw",null,yt,ci),[()=>({fullscreen:H(),hidden:!e.showControls})]),y(bi,Ee)};R($i,bi=>{vt&&bi(yi)})}y(dt,Kt)};R(An,dt=>{di&&!f()&&dt(Br)})}E((dt,Kt,Ri,Mo)=>{Ao=ee(Li,1,"overlay-mobile svelte-1afsgkw",null,Ao,dt),Yt=ee(rt,1,"wrapper-top-left svelte-1afsgkw",null,Yt,Kt),Vi=ee(no,1,"wrapper-top-right svelte-1afsgkw",null,Vi,Ri),Yn=ee(jn,1,"wrapper-middle svelte-1afsgkw",null,Yn,Mo)},[()=>({hidden:!r(sr)}),()=>({hidden:!e.showControls,fullscreen:H()}),()=>({hidden:!e.showControls&&!x(),fullscreen:H()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),y(gt,Wt)};R(mn,gt=>{de()||gt(zn)})}var Qo=M(mn,2);{var vn=gt=>{var Wt=Ry(),Li=fe(Wt);{var Ao=Vi=>{var Ti=Ly();let ji;var si=h(Ti);gu(si,{get muted(){return X()},expanded:!1,click:un,get ref(){return nt.volume},set ref(zi){nt.volume=zi}}),g(Ti),E(zi=>ji=ee(Ti,1,"wrapper-top-right svelte-1afsgkw",null,ji,zi),[()=>({fullscreen:H()})]),y(Vi,Ti)};R(Li,Vi=>{Z()&&Vi(Ao)})}var rt=M(Li,2);{var Yt=Vi=>{var Ti=Vy(),ji=h(Ti);let si=v(()=>!r(Bo));bl(ji,{get disabled(){return r(Tt)},click:ye,isMobile:!0,get isPlaying(){return r(si)},get ref(){return nt.playButton},set ref(zi){nt.playButton=zi}}),g(Ti),y(Vi,Ti)};R(rt,Vi=>{r(Bo)&&Vi(Yt)})}var _i=M(rt,2);let oo;var no=h(_i);Id(no,{get position(){return _e()},get duration(){return ae()}}),g(_i),E(Vi=>oo=ee(_i,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,oo,Vi),[()=>({fullscreen:H()})]),y(gt,Wt)};R(Qo,gt=>{de()&&d()!=="inactive"&&gt(vn)})}var Ho=M(Qo,2);let bo;var Ui=h(Ho);let qn;var uo=h(Ui);ee(uo,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var En=h(uo);{var Wn=gt=>{Vo(gt,{get disabled(){return r(ki)},get ref(){return nt.replayButton},set ref(Wt){nt.replayButton=Wt},children:(Wt,Li)=>{_l(Wt,{get disabled(){return r(ki)},click:ti})},$$slots:{default:!0}})};R(En,gt=>{di&&gt(Wn)})}var gn=M(En,2);{var Er=gt=>{Vo(gt,{get ref(){return nt.liveButton},set ref(Wt){nt.liveButton=Wt},children:(Wt,Li)=>{Bd(Wt,{get isLiveActive(){return r(Oo)},isMobile:!0,get ariaLabel(){return r(pn)}})},$$slots:{default:!0}})};R(gn,gt=>{!de()&&T()&&gt(Er)})}var Go=M(gn,2);{var Pr=gt=>{let Wt=v(()=>de()?_e():Le()),Li=v(()=>de()?ae():ne());yd(gt,{get showDuration(){return r(Cn)},get position(){return r(Wt)},get duration(){return r(Li)},isMobile:!0,get ref(){return nt.time},set ref(Ao){nt.time=Ao}})};R(Go,gt=>{r(Fn)&&gt(Pr)})}var Kn=M(Go,2);let Qn=v(()=>!r(co));Vo(Kn,{className:"w-max",get disabled(){return r(Qn)},get ref(){return nt.episodes},set ref(gt){nt.episodes=gt},children:(gt,Wt)=>{var Li=Oe(),Ao=fe(Li);{var rt=Yt=>{var _i=Ny(),oo=M(fe(_i),2);kd(oo,{get position(){return Le()},get duration(){return ne()},timeCodes:Xt}),y(Yt,_i)};R(Ao,Yt=>{r(co)&&Yt(rt)})}y(gt,Li)},$$slots:{default:!0}});var lr=M(Kn,2);{var Ar=gt=>{Vo(gt,{get ref(){return nt.settings},set ref(Wt){nt.settings=Wt},children:(Wt,Li)=>{vl(Wt,{ref$:io})},$$slots:{default:!0}})};R(lr,gt=>{r(rr)&&gt(Ar)})}var Pn=M(lr,2);{var ii=gt=>{Vo(gt,{get ref(){return nt.fullscreen},set ref(Wt){nt.fullscreen=Wt},children:(Wt,Li)=>{Sd(Wt,{get click(){return e.toggleFullscreen},get isFullscreen(){return H()}})},$$slots:{default:!0}})};R(Pn,gt=>{r(Tn)&&gt(ii)})}g(uo),mt(uo,gt=>$e(gt),()=>$e());var dr=M(uo,2);va(dr,{get isAds(){return de()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return nt.timeline},set ref(gt){nt.timeline=gt}}),g(Ui),g(Ho),mt(Ho,gt=>B(gt),()=>B());var Mr=M(Ho,2);{var Fo=gt=>{Ad(gt,{get ref(){return nt.interactiveTimeIndicator},set ref(Wt){nt.interactiveTimeIndicator=Wt}})};R(Mr,gt=>{Je&&gt(Fo)})}E((gt,Wt)=>{bo=ee(Ho,1,"wrapper-bottom svelte-1afsgkw",null,bo,gt),qn=ee(Ui,1,"controls-wrapper svelte-1afsgkw",null,qn,Wt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:H()})]),y(t,Gi),z(),o()}lt(["click"]);function Od(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(T,"$isMobile",i),a=m(e,"bottomNoSmooth",3,!1),s=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),l=m(e,"isAds",3,!1),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),b=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),$=m(e,"endScreenShown",3,!1),x=m(e,"onDisabledPlayPrevChapterClick",3,fm.noop),_=m(e,"onDisabledSeekToInteractiveClick",3,fm.noop),T=Ie().ui.isMobile,k=J(!1);Qt(()=>{let V=setTimeout(()=>D(k,!0),0);return()=>clearTimeout(V)});var P=Oe(),A=fe(P);{var I=V=>{var q=Oe(),G=fe(q);{var H=re=>{pm(re,{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 b()},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 x()},get onDisabledSeekToInteractiveClick(){return _()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(X){s(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})},Z=re=>{rm(re,{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 b()},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(X){s(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})};R(G,re=>{n()?re(H):re(Z,!1)})}y(V,q)};R(A,V=>{r(k)&&V(I)})}y(t,P),z(),o()}var Oy=we('<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 mm(t,e){let i=Ae(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}),xe(2),g(o),E(()=>n=ke(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))),y(t,o)}function vm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);mm(t,{get style(){return r(o)}})}var Hy=we('<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 gm(t,e){let i=Ae(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}),xe(2),g(o),E(()=>n=ke(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))),y(t,o)}var Fy=we('<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 hm(t,e){let i=Ae(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}),xe(2),g(o),E(()=>n=ke(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))),y(t,o)}function hu(t,e){let i=m(e,"isOff",3,!1);var o=Oe(),n=fe(o);{var a=d=>{hm(d,{})},s=d=>{gm(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}y(t,o)}var Uy=we('<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 _m(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(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))),y(t,o)}function bm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);_m(t,{get style(){return r(o)}})}var zy=we('<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 $m(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=zy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(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))),y(t,o)}function ym(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);$m(t,{get style(){return r(o)}})}var qy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Wy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Ky=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;
265
265
  animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
266
266
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
267
267
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -276,23 +276,23 @@ Try switching the\xA0quality to\xA0Auto.`},Uh=O_;var ns=new Map;ns.set(el.Interf
276
276
  @keyframes svelte-1ad3n06-fadeOut {
277
277
  0% {opacity:1;}
278
278
  100% {opacity:0;}
279
- }`};function ym(t,e){U(e,!0),W(t,zy);let[i,o]=Oe(),n=()=>S(e.data,"$data",i),s=Ce().ui.t,d=m(()=>!n()),l=m(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),u=m(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),v=m(()=>{var C;return(C=n())==null?void 0:C.type}),$=m(()=>{var C,T;return(C=n())!=null&&C.t?s(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var p=Uy();let _;var w=h(p);{var y=C=>{var T=Fy(),E=pe(T),P=h(E);{var A=oe=>{let G=m(()=>r(v)==="FORWARD_SEEK");mm(oe,{get reversed(){return r(G)}})};R(P,oe=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(v))&&oe(A)})}var I=M(P,2);{var V=oe=>{ss(oe,{})};R(I,oe=>{r(v)==="PAUSE"&&oe(V)})}var H=M(I,2);{var Y=oe=>{Sr(oe,{})};R(H,oe=>{r(v)==="PLAY"&&oe(Y)})}var O=M(H,2);{var J=oe=>{Ld(oe,{})};R(O,oe=>{r(v)==="REPLAY"&&oe(J)})}var re=M(O,2);{var Z=oe=>{hu(oe,{isOff:!0})};R(re,oe=>{r(v)==="SUBTITLES_OFF"&&oe(Z)})}var me=M(re,2);{var de=oe=>{hu(oe,{})};R(me,oe=>{r(v)==="SUBTITLES_ON"&&oe(de)})}var Le=M(me,2);{var Me=oe=>{let G=m(()=>r(v)==="RATE_UP");_m(oe,{get reversed(){return r(G)}})};R(Le,oe=>{["RATE_DOWN","RATE_UP"].includes(r(v))&&oe(Me)})}var ve=M(Le,2);{var le=oe=>{let G=m(()=>r(v)==="EPISODE_NEXT");$m(oe,{get reversed(){return r(G)}})};R(ve,oe=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(v))&&oe(le)})}var Ae=M(ve,2);{var se=oe=>{Cs(oe,{volume:0})};R(Ae,oe=>{r(v)==="MUTE"&&oe(se)})}var N=M(Ae,2);{var Re=oe=>{Cs(oe,{volume:1})};R(N,oe=>{r(v)==="VOLUME"&&oe(Re)})}g(E);var ie=M(E,2);{var je=oe=>{var G=Hy(),K=h(G,!0);g(G),k(()=>he(K,r($))),b(oe,G)};R(ie,oe=>{r($)&&oe(je)})}b(C,T)};R(w,C=>{!r(d)&&r(v)&&C(y)})}g(p),k(C=>_=te(p,1,"hot-key-helpers-container svelte-1ad3n06",null,_,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(u)})]),b(t,p),z(),o()}var qy=$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 xm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=qy();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 wm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Wy();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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){U(e,!0);let i=f(e,"direction",3,"left"),o=f(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=Ue(),l=pe(d);{var u=$=>{let p=m(()=>r(a)?"chevron-icon--down":"chevron-icon--up");xm($,{get style(){return r(s)},get"data-testid"(){return r(p)}})},v=$=>{let p=m(()=>r(a)?"chevron-icon--right":"chevron-icon--left");wm($,{get style(){return r(s)},get"data-testid"(){return r(p)}})};R(l,$=>{r(n)?$(u):$(v,!1)})}b(t,d),z()}var Ky=(t,e,i,o,n,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":a();break}},Qy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Gy=L('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),jy={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function Fd(t,e){U(e,!0),W(t,jy);let i=f(e,"isShifted",3,!1),o=Ce(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),v=F("aria_label_spherical_control");var $=Gy();let p;$.__keydown=[Ky,n,a,s,l,d],$.__keyup=[Qy,n,u],Fe($,"aria-label",v);var _=h($),w=h(_),y=h(w);y.__mousedown=a,y.__mouseup=u;var C=h(y);ks(C,{direction:"up",useBtnColor:!0}),g(y);var T=M(y,2);T.__mousedown=d,T.__mouseup=u;var E=h(T);ks(E,{direction:"up",useBtnColor:!0}),g(T),g(w);var P=M(w,2),A=h(P);A.__mousedown=l,A.__mouseup=u;var I=h(A);ks(I,{direction:"up",useBtnColor:!0}),g(A);var V=M(A,2);V.__mousedown=s,V.__mouseup=u;var H=h(V);ks(H,{direction:"up",useBtnColor:!0}),g(V),g(P),g(_),g($),k(Y=>p=te($,1,"immersive-controls svelte-1yzc86r",null,p,Y),[()=>({"m-shifted":i()})]),Ct("mouseleave",y,u),Ct("mouseleave",T,u),Ct("mouseleave",A,u),Ct("mouseleave",V,u),b(t,$),z()}lt(["keydown","keyup","mousedown","mouseup"]);var ls=require("@vkontakte/videoplayer-shared/es2015");var V1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var _u=class{constructor(){this.flickeringTimeout=V1(1e3);this.subscriptions=new ls.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new ls.ValueSubject([]);this.captionsPrepared$=new ls.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,ls.filter)(()=>this.isEnabled()),(0,ls.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((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 Yy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Zy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),Xy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Jy=L('<div><span class="caption svelte-c2x749"><!></span></div>'),e4=L("<div><!></div>"),t4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
280
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function ya(t,e){U(e,!0),W(t,t4);let[i,o]=Oe(),n=()=>S($,"$currentSubtitle$",i),a=()=>S(_,"$isLive$",i),s=()=>S(w,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),l=f(e,"isMobile",3,!1),u=Ce(),v=qt(),$=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,_=u.state.isLive$,w=u.ui.isFullscreen,y=m(()=>!!n().isAuto),C=m(()=>!!a()),T=m(()=>e.playerSize.width*.02),E=m(()=>l()&&!s()||r(T)<=v.minSubtitlesFontSize?v.minSubtitlesFontSize:r(T)),P=ee(null);ze(()=>{var J,re,Z;(J=r(P))==null||J.setIsAuto(r(y)),(re=r(P))==null||re.setIsLive(r(C)),(Z=r(P))==null||Z.setCaptions(e.captions)});let A=ee(fe([[]]));zt(()=>{B(P,fe(new _u().subscribe()));let J=r(P).captionsPrepared$.subscribe(re=>{B(A,fe(re))});return()=>{var re;(re=r(P))==null||re.destroy(),J.unsubscribe()}}),zt(()=>{if(r(y)){let J=window.setTimeout(()=>{p.set(!1)},v.autoSubtitlesTimeout);return()=>{window.clearTimeout(J)}}else p.set(!1)});let I=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=e4();let H;var Y=h(V);{var O=J=>{var re=Jy();let Z;var me=h(re),de=h(me);{var Le=ve=>{var le=Yy(),Ae=h(le),se=h(Ae,!0);g(Ae),g(le),k(N=>{var Re;ot(Ae,`font-size: ${(Re=r(E))!=null?Re:""}px`),he(se,N)},[()=>F("subtitles_auto_caption")]),b(ve,le)},Me=(ve,le)=>{{var Ae=N=>{var Re=Ue(),ie=pe(Re);Ei(ie,17,()=>r(A),Zl,(je,oe)=>{var G=Zy(),K=h(G);Ei(K,21,()=>r(oe),({value:Ve,timeAppeared:Ne})=>Ne,(Ve,Ne)=>{let et=()=>r(Ne).value,xe=()=>r(Ne).timeAppeared;var we=Ue(),Be=pe(we);{var Xe=nt=>{var ht=Fr();k(()=>he(ht,et())),b(nt,ht)};R(Be,nt=>{(!xe()||xe()<=e.position)&&nt(Xe)})}b(Ve,we)}),g(K),g(G),k(()=>{var Ve;return ot(K,`font-size: ${(Ve=r(E))!=null?Ve:""}px`)}),b(je,G)}),b(N,Re)},se=N=>{var Re=Ue(),ie=pe(Re);Ei(ie,17,()=>e.captions,({value:je})=>je,(je,oe)=>{let G=()=>r(oe).value;var K=Xy(),Ve=h(K),Ne=h(Ve,!0);g(Ve),g(K),k(()=>{var et;ot(Ve,`font-size: ${(et=r(E))!=null?et:""}px`),he(Ne,G())}),b(je,K)}),b(N,Re)};R(ve,N=>{var Re;r(y)&&((Re=r(A))!=null&&Re.length)?N(Ae):N(se,!1)},le)}};R(de,ve=>{r(y)&&d()?ve(Le):ve(Me,!1)})}g(me),g(re),k(ve=>{var le;Z=te(re,1,"subtitles-caption svelte-c2x749",null,Z,ve),ot(re,`--subtitles-caption-margin: ${(le=r(I))!=null?le:""}%`)},[()=>({mobile:l()})]),b(J,re)};R(Y,J=>{var re;(e.captions.length||(re=r(A))!=null&&re.length)&&J(O)})}g(V),k(J=>H=te(V,1,"subtitles-container svelte-c2x749",null,H,J),[()=>({shifted:e.shifted,auto:r(y)&&!r(C)&&!d()})]),b(t,V),z(),o()}var i4=L('<div class="text svelte-raurnb"> </div>'),o4=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>'),n4={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 Ud(t,e){U(e,!0),W(t,n4);let i=qt();var o=o4();let n;var a=M(h(o),2);{var s=d=>{var l=i4(),u=h(l);g(l),k(()=>{var v;return he(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(v=e.chromecastDeviceName)!=null?v:""}`)}),b(d,l)};R(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),k(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),ot(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),z()}var r4=$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 Sm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=r4();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 s4=L('<div class="container svelte-13zpvm8"><!></div>'),a4={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 zd(t){W(t,a4);var e=s4(),i=h(e);Sm(i,{}),g(e),b(t,e)}var l4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),d4=L("<div><!></div>"),c4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
279
+ }`};function xm(t,e){U(e,!0),K(t,Qy);let[i,o]=Ne(),n=()=>S(e.data,"$data",i),s=Ie().ui.t,d=v(()=>!n()),l=v(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),u=v(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),f=v(()=>{var C;return(C=n())==null?void 0:C.type}),b=v(()=>{var C,T;return(C=n())!=null&&C.t?s(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var p=Ky();let $;var x=h(p);{var _=C=>{var T=Wy(),k=fe(T),P=h(k);{var A=te=>{let ve=v(()=>r(f)==="FORWARD_SEEK");vm(te,{get reversed(){return r(ve)}})};R(P,te=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&te(A)})}var I=M(P,2);{var V=te=>{ls(te,{})};R(I,te=>{r(f)==="PAUSE"&&te(V)})}var q=M(I,2);{var G=te=>{Tr(te,{})};R(q,te=>{r(f)==="PLAY"&&te(G)})}var H=M(q,2);{var Z=te=>{Md(te,{})};R(H,te=>{r(f)==="REPLAY"&&te(Z)})}var re=M(H,2);{var X=te=>{hu(te,{isOff:!0})};R(re,te=>{r(f)==="SUBTITLES_OFF"&&te(X)})}var ce=M(re,2);{var ue=te=>{hu(te,{})};R(ce,te=>{r(f)==="SUBTITLES_ON"&&te(ue)})}var Ve=M(ce,2);{var Me=te=>{let ve=v(()=>r(f)==="RATE_UP");bm(te,{get reversed(){return r(ve)}})};R(Ve,te=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&te(Me)})}var _e=M(Ve,2);{var ae=te=>{let ve=v(()=>r(f)==="EPISODE_NEXT");ym(te,{get reversed(){return r(ve)}})};R(_e,te=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&te(ae)})}var Le=M(_e,2);{var ne=te=>{Ts(te,{volume:0})};R(Le,te=>{r(f)==="MUTE"&&te(ne)})}var B=M(Le,2);{var $e=te=>{Ts(te,{volume:1})};R(B,te=>{r(f)==="VOLUME"&&te($e)})}g(k);var de=M(k,2);{var Qe=te=>{var ve=qy(),Y=h(ve,!0);g(ve),E(()=>ge(Y,r(b))),y(te,ve)};R(de,te=>{r(b)&&te(Qe)})}y(C,T)};R(x,C=>{!r(d)&&r(f)&&C(_)})}g(p),E(C=>$=ee(p,1,"hot-key-helpers-container svelte-1ad3n06",null,$,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(u)})]),y(t,p),z(),o()}var Gy=we('<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 wm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),y(t,o)}var jy=we('<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 Sm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=jy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),y(t,o)}function Es(t,e){U(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),s=v(()=>(()=>{let b="";return r(a)&&(b+="transform: rotate(180deg);"),o()&&(b+="color: var(--btn-color, #fff);"),b.length?b:void 0})());var d=Oe(),l=fe(d);{var u=b=>{let p=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");wm(b,{get style(){return r(s)},get"data-testid"(){return r(p)}})},f=b=>{let p=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");Sm(b,{get style(){return r(s)},get"data-testid"(){return r(p)}})};R(l,b=>{r(n)?b(u):b(f,!1)})}y(t,d),z()}var Yy=(t,e,i,o,n,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":a();break}},Zy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Xy=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 Hd(t,e){U(e,!0),K(t,Jy);let i=m(e,"isShifted",3,!1),o=Ie(),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 b=Xy();let p;b.__keydown=[Yy,n,a,s,l,d],b.__keyup=[Zy,n,u],De(b,"aria-label",f);var $=h(b),x=h($),_=h(x);_.__mousedown=a,_.__mouseup=u;var C=h(_);Es(C,{direction:"up",useBtnColor:!0}),g(_);var T=M(_,2);T.__mousedown=d,T.__mouseup=u;var k=h(T);Es(k,{direction:"up",useBtnColor:!0}),g(T),g(x);var P=M(x,2),A=h(P);A.__mousedown=l,A.__mouseup=u;var I=h(A);Es(I,{direction:"up",useBtnColor:!0}),g(A);var V=M(A,2);V.__mousedown=s,V.__mouseup=u;var q=h(V);Es(q,{direction:"up",useBtnColor:!0}),g(V),g(P),g($),g(b),E(G=>p=ee(b,1,"immersive-controls svelte-1yzc86r",null,p,G),[()=>({"m-shifted":i()})]),kt("mouseleave",_,u),kt("mouseleave",T,u),kt("mouseleave",A,u),kt("mouseleave",V,u),y(t,b),z()}lt(["keydown","keyup","mousedown","mouseup"]);var cs=require("@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 _u=class{constructor(){this.flickeringTimeout=R1(1e3);this.subscriptions=new cs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new cs.ValueSubject([]);this.captionsPrepared$=new cs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,cs.filter)(()=>this.isEnabled()),(0,cs.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((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;
280
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function ya(t,e){U(e,!0),K(t,r4);let[i,o]=Ne(),n=()=>S(b,"$currentSubtitle$",i),a=()=>S($,"$isLive$",i),s=()=>S(x,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),l=m(e,"isMobile",3,!1),u=Ie(),f=Gt(),b=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,$=u.state.isLive$,x=u.ui.isFullscreen,_=v(()=>!!n().isAuto),C=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),k=v(()=>l()&&!s()||r(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(T)),P=J(null);Fe(()=>{var Z,re,X;(Z=r(P))==null||Z.setIsAuto(r(_)),(re=r(P))==null||re.setIsLive(r(C)),(X=r(P))==null||X.setCaptions(e.captions)});let A=J(me([[]]));Qt(()=>{D(P,me(new _u().subscribe()));let Z=r(P).captionsPrepared$.subscribe(re=>{D(A,me(re))});return()=>{var re;(re=r(P))==null||re.destroy(),Z.unsubscribe()}}),Qt(()=>{if(r(_)){let Z=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Z)}}else p.set(!1)});let I=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=n4();let q;var G=h(V);{var H=Z=>{var re=o4();let X;var ce=h(re),ue=h(ce);{var Ve=_e=>{var ae=e4(),Le=h(ae),ne=h(Le,!0);g(Le),g(ae),E(B=>{var $e;st(Le,`font-size: ${($e=r(k))!=null?$e:""}px`),ge(ne,B)},[()=>F("subtitles_auto_caption")]),y(_e,ae)},Me=(_e,ae)=>{{var Le=B=>{var $e=Oe(),de=fe($e);Pi(de,17,()=>r(A),Yl,(Qe,te)=>{var ve=t4(),Y=h(ve);Pi(Y,21,()=>r(te),({value:ie,timeAppeared:He})=>He,(ie,He)=>{let Ye=()=>r(He).value,ye=()=>r(He).timeAppeared;var Se=Oe(),Re=fe(Se);{var Ze=ut=>{var pt=Fr();E(()=>ge(pt,Ye())),y(ut,pt)};R(Re,ut=>{(!ye()||ye()<=e.position)&&ut(Ze)})}y(ie,Se)}),g(Y),g(ve),E(()=>{var ie;return st(Y,`font-size: ${(ie=r(k))!=null?ie:""}px`)}),y(Qe,ve)}),y(B,$e)},ne=B=>{var $e=Oe(),de=fe($e);Pi(de,17,()=>e.captions,({value:Qe})=>Qe,(Qe,te)=>{let ve=()=>r(te).value;var Y=i4(),ie=h(Y),He=h(ie,!0);g(ie),g(Y),E(()=>{var Ye;st(ie,`font-size: ${(Ye=r(k))!=null?Ye:""}px`),ge(He,ve())}),y(Qe,Y)}),y(B,$e)};R(_e,B=>{var $e;r(_)&&(($e=r(A))!=null&&$e.length)?B(Le):B(ne,!1)},ae)}};R(ue,_e=>{r(_)&&d()?_e(Ve):_e(Me,!1)})}g(ce),g(re),E(_e=>{var ae;X=ee(re,1,"subtitles-caption svelte-c2x749",null,X,_e),st(re,`--subtitles-caption-margin: ${(ae=r(I))!=null?ae:""}%`)},[()=>({mobile:l()})]),y(Z,re)};R(G,Z=>{var re;(e.captions.length||(re=r(A))!=null&&re.length)&&Z(H)})}g(V),E(Z=>q=ee(V,1,"subtitles-container svelte-c2x749",null,q,Z),[()=>({shifted:e.shifted,auto:r(_)&&!r(C)&&!d()})]),y(t,V),z(),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 Fd(t,e){U(e,!0),K(t,l4);let i=Gt();var o=a4();let n;var a=M(h(o),2);{var s=d=>{var l=s4(),u=h(l);g(l),E(()=>{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:""}`)}),y(d,l)};R(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),E(d=>{n=ee(o,1,"wrapper svelte-raurnb",null,n,d),st(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})]),y(t,o),z()}var d4=we('<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 Cm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=d4();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(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))),y(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 Ud(t){K(t,u4);var e=c4(),i=h(e);Cm(i,{}),g(e),y(t,e)}var p4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),f4=L("<div><!></div>"),m4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
281
281
  visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
282
- transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function xa(t,e){U(e,!0),W(t,c4);let i=f(e,"iconVisible",3,!0),o=Ce(),n=qt(),a=o.ui.startedByKeyboard$,s=F("tooltip_play"),d=_=>{var y;let w=_.code;["Enter","Space"].includes(w)&&(_.stopPropagation(),_.preventDefault(),a.set(!0),(y=e.startVideo)==null||y.call(e))},l=_=>{var w;_.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var u=d4();let v;u.__click=l;var $=h(u);{var p=_=>{var w=l4();w.__keydown=d,Fe(w,"aria-label",s);var y=M(h(w),2);Sr(y,{}),g(w),b(_,w)};R($,_=>{i()&&_(p)})}return g(u),k(_=>{v=te(u,1,"container svelte-1ciju45",null,v,_),ot(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,u),z({handlePressKey:d,handleClick:l})}lt(["click","keydown"]);var u4=L("<div> </div>"),p4={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
282
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function xa(t,e){U(e,!0),K(t,m4);let i=m(e,"iconVisible",3,!0),o=Ie(),n=Gt(),a=o.ui.startedByKeyboard$,s=F("tooltip_play"),d=$=>{var _;let x=$.code;["Enter","Space"].includes(x)&&($.stopPropagation(),$.preventDefault(),a.set(!0),(_=e.startVideo)==null||_.call(e))},l=$=>{var x;$.stopPropagation(),(x=e.startVideo)==null||x.call(e)};var u=f4();let f;u.__click=l;var b=h(u);{var p=$=>{var x=p4();x.__keydown=d,De(x,"aria-label",s);var _=M(h(x),2);Tr(_,{}),g(x),y($,x)};R(b,$=>{i()&&$(p)})}return g(u),E($=>{f=ee(u,1,"container svelte-1ciju45",null,f,$),st(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),y(t,u),z({handlePressKey:d,handleClick:l})}lt(["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(
283
283
  0deg,
284
284
  rgba(0, 0, 0, 0) 0%,
285
285
  rgba(0, 0, 0, 0.02) 19%,
286
286
  rgba(0, 0, 0, 0.10) 34%,
287
287
  rgba(0, 0, 0, 0.40) 60%,
288
288
  rgba(0, 0, 0, 0.60) 100%
289
- );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Cm(t,e){W(t,p4);let i=f(e,"title",3,""),o=f(e,"isHidden",3,!1);var n=u4();let a;var s=h(n,!0);g(n),k(d=>{a=te(n,1,"title svelte-1bcvcf2",null,a,d),he(s,i())},[()=>({hidden:o()})]),b(t,n)}var f4=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),m4=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),v4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),g4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),h4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),_4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function Tm(t,e){U(e,!0),W(t,_4);let i=ee(""),o=ee(""),n=ee(""),a=ee(""),s,d=P=>String(P).padStart(2,"0"),l=P=>{let A=Math.floor(P/86400);A&&(P-=A*86400,B(i,fe(d(A))));let I=Math.floor(P/3600);B(o,fe(d(I)));let V=Math.floor(P/60)%60;B(n,fe(d(V)));let H=P%60;B(a,fe(d(H)))},u=()=>{let P=Math.floor(Date.now()/1e3),A=e.startTime-P;l(A),A>=1?s=requestAnimationFrame(u):e.onTimerOver()};zt(()=>{s=requestAnimationFrame(u)}),In(()=>{cancelAnimationFrame(s)});var v=h4(),$=h(v);{var p=P=>{var A=f4(),I=pe(A),V=h(I),H=h(V,!0);g(V);var Y=M(V,2),O=h(Y,!0);g(Y),g(I);var J=M(I,2),re=h(J,!0);g(J),k((Z,me)=>{he(H,r(i)),he(O,Z),he(re,me)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(P,A)};R($,P=>{r(i)&&P(p)})}var _=M($,2);{var w=P=>{var A=m4(),I=pe(A),V=h(I),H=h(V,!0);g(V);var Y=M(V,2),O=h(Y,!0);g(Y),g(I);var J=M(I,2),re=h(J,!0);g(J),k((Z,me)=>{he(H,r(o)),he(O,Z),he(re,me)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(P,A)};R(_,P=>{r(o)&&P(w)})}var y=M(_,2);{var C=P=>{var A=v4(),I=pe(A),V=h(I),H=h(V,!0);g(V);var Y=M(V,2),O=h(Y,!0);g(Y),g(I);var J=M(I,2),re=h(J,!0);g(J),k((Z,me)=>{he(H,r(n)),he(O,Z),he(re,me)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(P,A)};R(y,P=>{r(n)&&P(C)})}var T=M(y,2);{var E=P=>{var A=g4(),I=h(A),V=h(I,!0);g(I);var H=M(I,2),Y=h(H,!0);g(H),g(A),k(O=>{he(V,r(a)),he(Y,O)},[()=>F("waiting_live_second_value")]),b(P,A)};R(T,P=>{r(a)&&P(E)})}g(v),b(t,v),z()}var b4=$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 Im(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=b4();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(4),g(o),k(()=>n=Te(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 $4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),y4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),x4=L('<div class="waiting-container svelte-15pewff"><!></div>'),w4={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 qd(t,e){U(e,!0),W(t,w4);let i=ee(!1);ze(()=>{B(i,fe(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=x4(),n=h(o);{var a=d=>{var l=$4(),u=h(l),v=h(u);Im(v,{}),g(u);var $=M(u,2),p=h($,!0);g($),g(l),k(_=>he(p,_),[()=>F("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=y4(),u=h(l),v=h(u,!0);g(u);var $=M(u,2);let p=m(()=>e.startTime||0);Tm($,{get startTime(){return r(p)},onTimerOver:()=>B(i,!0)}),g(l),k(_=>he(v,_),[()=>F("waiting_live_timer_title")]),b(d,l)};R(n,d=>{r(i)?d(a):d(s,!1)})}g(o),k(()=>ot(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),b(t,o),z()}var S4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),C4={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 wa(t,e){U(e,!0),W(t,C4);let i=f(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=m(()=>o[e.kind]||"");var a=S4(),s=h(a),d=h(s);ua(d,{style:"position: static; transform: translate(0, 0)"});var l=M(d,2),u=h(l,!0);g(l),g(s),g(a),k(()=>{ot(a,`background-image: url('${i()}')`),he(u,r(n))}),b(t,a),z()}var T4=$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 km(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=T4();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 I4=L('<div class="select-icon svelte-124aexk"><!></div>'),k4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Wd(t){W(t,k4);var e=I4(),i=h(e);km(i,{}),g(e),b(t,e)}var E4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},P4=(t,e)=>{al(t,()=>e.item.selectItem(e.item.value))},A4=L("<p> </p>"),M4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),L4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),V4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
289
+ );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Tm(t,e){K(t,g4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1);var n=v4();let a;var s=h(n,!0);g(n),E(d=>{a=ee(n,1,"title svelte-1bcvcf2",null,a,d),ge(s,i())},[()=>({hidden:o()})]),y(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 Im(t,e){U(e,!0),K(t,x4);let i=J(""),o=J(""),n=J(""),a=J(""),s,d=P=>String(P).padStart(2,"0"),l=P=>{let A=Math.floor(P/86400);A&&(P-=A*86400,D(i,me(d(A))));let I=Math.floor(P/3600);D(o,me(d(I)));let V=Math.floor(P/60)%60;D(n,me(d(V)));let q=P%60;D(a,me(d(q)))},u=()=>{let P=Math.floor(Date.now()/1e3),A=e.startTime-P;l(A),A>=1?s=requestAnimationFrame(u):e.onTimerOver()};Qt(()=>{s=requestAnimationFrame(u)}),xn(()=>{cancelAnimationFrame(s)});var f=y4(),b=h(f);{var p=P=>{var A=h4(),I=fe(A),V=h(I),q=h(V,!0);g(V);var G=M(V,2),H=h(G,!0);g(G),g(I);var Z=M(I,2),re=h(Z,!0);g(Z),E((X,ce)=>{ge(q,r(i)),ge(H,X),ge(re,ce)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),y(P,A)};R(b,P=>{r(i)&&P(p)})}var $=M(b,2);{var x=P=>{var A=_4(),I=fe(A),V=h(I),q=h(V,!0);g(V);var G=M(V,2),H=h(G,!0);g(G),g(I);var Z=M(I,2),re=h(Z,!0);g(Z),E((X,ce)=>{ge(q,r(o)),ge(H,X),ge(re,ce)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),y(P,A)};R($,P=>{r(o)&&P(x)})}var _=M($,2);{var C=P=>{var A=b4(),I=fe(A),V=h(I),q=h(V,!0);g(V);var G=M(V,2),H=h(G,!0);g(G),g(I);var Z=M(I,2),re=h(Z,!0);g(Z),E((X,ce)=>{ge(q,r(n)),ge(H,X),ge(re,ce)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),y(P,A)};R(_,P=>{r(n)&&P(C)})}var T=M(_,2);{var k=P=>{var A=$4(),I=h(A),V=h(I,!0);g(I);var q=M(I,2),G=h(q,!0);g(q),g(A),E(H=>{ge(V,r(a)),ge(G,H)},[()=>F("waiting_live_second_value")]),y(P,A)};R(T,P=>{r(a)&&P(k)})}g(f),y(t,f),z()}var w4=we('<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 km(t,e){let i=Ae(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}),xe(4),g(o),E(()=>n=ke(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))),y(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 zd(t,e){U(e,!0),K(t,I4);let i=J(!1);Fe(()=>{D(i,me(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);km(f,{}),g(u);var b=M(u,2),p=h(b,!0);g(b),g(l),E($=>ge(p,$),[()=>F("waiting_live_upcoming_title")]),y(d,l)},s=d=>{var l=C4(),u=h(l),f=h(u,!0);g(u);var b=M(u,2);let p=v(()=>e.startTime||0);Im(b,{get startTime(){return r(p)},onTimerOver:()=>D(i,!0)}),g(l),E($=>ge(f,$),[()=>F("waiting_live_timer_title")]),y(d,l)};R(n,d=>{r(i)?d(a):d(s,!1)})}g(o),E(()=>st(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),y(t,o),z()}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 wa(t,e){U(e,!0),K(t,E4);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=k4(),s=h(a),d=h(s);ua(d,{style:"position: static; transform: translate(0, 0)"});var l=M(d,2),u=h(l,!0);g(l),g(s),g(a),E(()=>{st(a,`background-image: url('${i()}')`),ge(u,r(n))}),y(t,a),z()}var P4=we('<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 Em(t,e){let i=Ae(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}),xe(),g(o),E(()=>n=ke(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))),y(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 qd(t){K(t,M4);var e=A4(),i=h(e);Em(i,{}),g(e),y(t,e)}var L4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},V4=(t,e)=>{ul(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;
290
290
 
291
291
  /**
292
292
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
293
293
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
294
294
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
295
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Em(t,e){U(e,!0),W(t,V4);let i=f(e,"isMobile",3,!1);var o=L4();let n;o.__click=[E4,e],o.__keydown=[P4,e];var a=h(o);{var s=w=>{Wd(w,{})};R(a,w=>{e.item.selected&&w(s)})}var d=M(a,2);let l;var u=h(d);{var v=w=>{var y=Ue(),C=pe(y);Pi(C,()=>e.item.valueComponent,(T,E)=>{E(T,os(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b(w,y)},$=w=>{var y=A4();let C;var T=h(y,!0);g(y),k(E=>{var P;C=te(y,1,"label svelte-1t7rx2m",null,C,E),he(T,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),b(w,y)};R(u,w=>{e.item.valueComponent?w(v):w($,!1)})}var p=M(u,2);{var _=w=>{var y=M4(),C=h(y,!0);g(y),k(()=>he(C,e.item.sublabel)),b(w,y)};R(p,w=>{e.item.sublabel&&w(_)})}g(d),g(o),k((w,y,C)=>{n=te(o,1,"item",null,n,w),Fe(o,"data-value",e.item.value),Fe(o,"aria-label",y),l=te(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Fe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),z()}lt(["click","keydown"]);var R4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Pm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"refMenuItems",15),n=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>y=>eu(y,r(n)));var s=R4();let d;s.__click=function(...y){var C;(C=r(n))==null||C.apply(this,y)},s.__keydown=function(...y){var C;(C=r(a))==null||C.apply(this,y)};var l=h(s);{var u=y=>{Wd(y,{})};R(l,y=>{e.item.selected&&y(u)})}var v=M(l,2);let $;var p=h(v);{var _=y=>{var C=Ue();let T=m(()=>e.item.valueComponent);var E=pe(C);Pi(E,()=>r(T),(P,A)=>{A(P,os(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),b(y,C)},w=y=>{var C=Fr();k(()=>he(C,e.item.label)),b(y,C)};R(p,y=>{e.item.valueComponent?y(_):y(w,!1)})}g(v),g(s),mt(s,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),k((y,C)=>{var T;d=te(s,1,"item",null,d,y),Fe(s,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Fe(s,"data-testid",e.item.id),$=te(v,1,"menu-item-value",null,$,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,s),z()}lt(["click","keydown"]);var Cr={"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 N4=(t,e)=>{e1(t,e.returnFromSubMenu,e.closeSettingsMenu)},B4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},O4=(t,e)=>{md(t)&&(lr(t),e.returnFromSubMenu())},H4=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>'),F4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
295
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Pm(t,e){U(e,!0),K(t,D4);let i=m(e,"isMobile",3,!1);var o=B4();let n;o.__click=[L4,e],o.__keydown=[V4,e];var a=h(o);{var s=x=>{qd(x,{})};R(a,x=>{e.item.selected&&x(s)})}var d=M(a,2);let l;var u=h(d);{var f=x=>{var _=Oe(),C=fe(_);Ai(C,()=>e.item.valueComponent,(T,k)=>{k(T,ns(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),y(x,_)},b=x=>{var _=R4();let C;var T=h(_,!0);g(_),E(k=>{var P;C=ee(_,1,"label svelte-1t7rx2m",null,C,k),ge(T,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),y(x,_)};R(u,x=>{e.item.valueComponent?x(f):x(b,!1)})}var p=M(u,2);{var $=x=>{var _=N4(),C=h(_,!0);g(_),E(()=>ge(C,e.item.sublabel)),y(x,_)};R(p,x=>{e.item.sublabel&&x($)})}g(d),g(o),E((x,_,C)=>{n=ee(o,1,"item",null,n,x),De(o,"data-value",e.item.value),De(o,"aria-label",_),l=ee(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var x,_;return(_=(x=e.item.ariaLabel)!=null?x:e.item.label)!=null?_:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),y(t,o),z()}lt(["click","keydown"]);var O4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Am(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>_=>eu(_,r(n)));var s=O4();let d;s.__click=function(..._){var C;(C=r(n))==null||C.apply(this,_)},s.__keydown=function(..._){var C;(C=r(a))==null||C.apply(this,_)};var l=h(s);{var u=_=>{qd(_,{})};R(l,_=>{e.item.selected&&_(u)})}var f=M(l,2);let b;var p=h(f);{var $=_=>{var C=Oe();let T=v(()=>e.item.valueComponent);var k=fe(C);Ai(k,()=>r(T),(P,A)=>{A(P,ns(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),y(_,C)},x=_=>{var C=Fr();E(()=>ge(C,e.item.label)),y(_,C)};R(p,_=>{e.item.valueComponent?_($):_(x,!1)})}g(f),g(s),mt(s,_=>o(o()[e.item.id]=_,!0),()=>{var _;return(_=o())==null?void 0:_[e.item.id]}),E((_,C)=>{var T;d=ee(s,1,"item",null,d,_),De(s,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),De(s,"data-testid",e.item.id),b=ee(f,1,"menu-item-value",null,b,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),y(t,s),z()}lt(["click","keydown"]);var Ir={"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)=>{t1(t,e.returnFromSubMenu,e.closeSettingsMenu)},U4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},z4=(t,e)=>{fd(t)&&(or(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>'),W4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
296
296
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
297
297
  /**
298
298
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -302,14 +302,14 @@ Try switching the\xA0quality to\xA0Auto.`},Uh=O_;var ns=new Map;ns.set(el.Interf
302
302
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
303
303
  1px
304
304
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
305
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Mm(t,e){U(e,!0),W(t,F4);let[i,o]=Oe(),n=()=>S($,"$isFullscreen",i),a=()=>S(p,"$playerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"playerControlsHeight",3,0),l=f(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),u=f(e,"listRef",15);zt(()=>{let Z=e.items.findIndex(me=>me.selected);u().children[Z+1].focus()});let v=Ce(),$=v.ui.isFullscreen,p=v.ui.playerSize,_=ee(void 0),w=ee(0),y=ee(0),C=m(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),T=m(()=>Math.max(e.minWidth,r(w)));var E=H4();let P;var A=h(E);let I;A.__keydown=[N4,e];var V=h(A);let H;V.__click=[B4,e],V.__keydown=[O4,e];var Y=h(V);ks(Y,{direction:"left"});var O=M(Y,2),J=h(O,!0);g(O),g(V),mt(V,Z=>B(_,Z),()=>r(_));var re=M(V,2);Ei(re,17,()=>e.items,Zl,(Z,me)=>{var de=Ue(),Le=pe(de);{var Me=le=>{Em(le,{get item(){return r(me)},get isMobile(){return s()}})},ve=(le,Ae)=>{{var se=N=>{Pm(N,{get isMobile(){return s()},get item(){return r(me)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(le,N=>{r(me).type==="OPEN_SUB_MENU"&&N(se)},Ae)}};R(Le,le=>{r(me).type==="SELECT_VALUE"?le(Me):le(ve,!1)})}b(Z,de)}),g(A),mt(A,Z=>u(Z),()=>u()),g(E),k((Z,me,de)=>{P=te(E,1,"sub-menu menu svelte-7dfsuh",null,P,Z),Fe(E,"data-testid",`sub-menu-${e.id}`),ot(E,`min-width: ${r(T)}px`),I=te(A,1,"items svelte-7dfsuh",null,I,me),ot(A,r(C)),H=te(V,1,"item header back svelte-7dfsuh",null,H,de),Fe(V,"aria-label",l()),he(J,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Ur(V,"clientWidth",Z=>B(w,Z)),Ur(V,"clientHeight",Z=>B(y,Z)),b(t,E),z(),o()}lt(["keydown","click"]);var D1=require("@vkontakte/videoplayer-shared/es2015");var U4=(t,e)=>eu(t,e()),z4=(t,e)=>{t.stopPropagation(),e()()},q4=L('<div class="value svelte-1ikfjte"> </div>'),W4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),K4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Lm(t,e){U(e,!0),W(t,K4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,D1.noop),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=W4();let d;s.__click=[z4,o],s.__keydown=[U4,o];var l=h(s),u=h(l);{var v=T=>{ba(T,{get icon(){return e.icon}})},$=T=>{var E=Ue();let P=m(()=>e.icon);var A=pe(E);Pi(A,()=>r(P),(I,V)=>{V(I,{})}),b(T,E)};R(u,T=>{typeof e.icon=="string"?T(v):T($,!1)})}g(l);var p=M(l,2),_=h(p,!0);g(p);var w=M(p,2);{var y=T=>{var E=Ue();let P=m(n);var A=pe(E);Pi(A,()=>r(P),(I,V)=>{V(I,{})}),b(T,E)},C=T=>{var E=q4(),P=h(E,!0);g(E),k(()=>he(P,e.value)),b(T,E)};R(w,T=>{n()?T(y):T(C,!1)})}g(s),mt(s,T=>a(T),()=>a()),k(T=>{d=te(s,1,"item",null,d,T),Fe(s,"aria-label",e.ariaLabel),Fe(s,"data-testid",e.id),he(_,e.label)},[()=>({mobile:i()})]),b(t,s),z()}lt(["click","keydown"]);var Vm=require("@vkontakte/videoplayer-shared/es2015");var Q4=(t,e)=>{al(t,()=>e())},G4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),j4=L('<img class="icon" aria-hidden="true">'),Y4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),Z4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Rm(t,e){U(e,!0),W(t,Z4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,Vm.noop),n=f(e,"closeSettings",3,Vm.noop),a=ee(!1),s=()=>{B(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=Y4();let u;l.__click=d,l.__keydown=[Q4,d];var v=h(l),$=h(v);{var p=C=>{var T=Ue(),E=pe(T);{var P=I=>{var V=G4();b(I,V)},A=I=>{var V=j4();k(()=>Fe(V,"src",e.icon)),Ct("error",V,s),Gs(V),b(I,V)};R(E,I=>{r(a)?I(P):I(A,!1)})}b(C,T)},_=C=>{var T=Ue();let E=m(()=>e.icon);var P=pe(T);Pi(P,()=>r(E),(A,I)=>{I(A,{})}),b(C,T)};R($,C=>{typeof e.icon=="string"?C(p):C(_,!1)})}g(v);var w=M(v,2),y=h(w,!0);g(w),g(l),k(C=>{var T;u=te(l,1,"item",null,u,C),Fe(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Fe(l,"data-testid",e.id),he(y,e.label)},[()=>({mobile:i()})]),b(t,l),z()}lt(["click","keydown"]);var N1=require("@vkontakte/videoplayer-shared/es2015");var X4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),J4={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){W(t,J4);let i=f(e,"enabled",3,!1);var o=X4(),n=h(o);let a;be(2),g(o),k(s=>a=te(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var e3=(t,e,i)=>{t1(t,e(),o=>i()(o))},t3=(t,e,i)=>{t.stopPropagation(),e()(!i())},i3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),o3=L('<li role="menuitem" tabindex="0"><!></li>');function Nm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,N1.noop),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=o3();let l;d.__click=[t3,o,n],d.__keydown=[e3,n,o];var u=h(d);fa(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(v,$)=>{var p=i3();let _;var w=h(p),y=h(w);{var C=I=>{ba(I,{get icon(){return e.icon}})},T=I=>{var V=Ue();let H=m(()=>e.icon);var Y=pe(V);Pi(Y,()=>r(H),(O,J)=>{J(O,{})}),b(I,V)};R(y,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var E=M(w,2),P=h(E,!0);g(E);var A=M(E,2);Dm(A,{get enabled(){return n()}}),g(p),k(I=>{_=te(p,1,"switch-wrapper",null,_,I),he(P,e.label)},[()=>({mobile:i()})]),b(v,p)},$$slots:{default:!0}}),g(d),k(v=>{var $;l=te(d,1,"item switch-item",null,l,v),Fe(d,"aria-label",($=e.ariaLabel)!=null?$:e.label),Fe(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),z()}lt(["click","keydown"]);var Qd=require("@vkontakte/videoplayer-shared/es2015");var B1=()=>{let t=ee(fe([])),e=m(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{B(t,fe(r(t).slice(0,-1)))},popAllSubMenus:()=>{B(t,fe([]))}}};var n3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),r3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),s3={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 Sa(t,e){U(e,!0),W(t,s3);let i=f(e,"isSubCase",3,!1),o=m(()=>nu(e.quality));var n=r3(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var u=v=>{var $=n3();let p=m(()=>r(o));var _=h($);Pi(_,()=>r(p),(w,y)=>{y(w,{})}),g($),b(v,$)};R(l,v=>{r(o)&&!e.isMobile&&v(u)})}g(n),k(v=>{s=te(a,1,"svelte-t2qk8t",null,s,v),he(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),z()}var U1=require("@vkontakte/videoplayer-shared/es2015");var Bm=require("@vkontakte/videoplayer-core/es2015");var O1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},H1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=O1({quality:t,availableQualities:e});return i?t===Bm.VideoQuality.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},F1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Bm.VideoQuality.INVARIANT?i:`${i}${O1({quality:t,availableQualities:e})}`:"...";var a3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),l3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function _l(t,e){U(e,!0),W(t,l3);let[i,o]=Oe(),n=()=>S(l,"$currentQuality$",i),a=()=>S(u,"$availableQualities$",i),s=()=>S(v,"$isMobile$",i),d=Ce(),l=d.state.currentQuality$,u=d.state.availableQualities$,v=d.ui.isMobile,$=" \xB7 ",p=m(()=>e.prefix+(e.selected&&n()!==U1.VideoQuality.INVARIANT?$:"")),_=m(()=>F1({prefix:r(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=a3(),y=h(w);let C=m(()=>e.selected?n():void 0);Sa(y,{get quality(){return r(C)},get label(){return r(_)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),z(),o()}var d3=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")},c3={br:!0,span:!0},Om=(t,e={})=>{var d,l,u,v,$,p,_;if(!t)return t;let i=q(q({},c3),e),o=Object.keys(i);if(!o.length)return t;let n=d3(o),a=[],s=0;for(let w of t.matchAll(n)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((v=w.groups)==null?void 0:v.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(s,T)),s=T+y.length;continue}let E=($=w.groups)!=null&&$.childrenhtml?Om(w.groups.childrenhtml,i):"",P=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp((_=w.groups)==null?void 0:_.childrenhtml),()=>E||""):y;a.push(t.slice(s,T),P),s=T+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Kd(t,e){U(e,!1);let i=f(e,"message",8),o=Om(i());yr();var n=Ue(),a=pe(n);{var s=d=>{var l=Ue(),u=pe(l);Xl(u,()=>o,!1,!1),b(d,l)};R(a,d=>{o&&d(s)})}b(t,n),z()}var u3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),p3={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){U(e,!1),W(t,p3),yr();var i=u3(),o=h(i);let n=_r(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Kd(o,{get message(){return r(n)}}),g(i),b(t,i),z()}var q1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:_l,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?_l:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),W1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Hm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Um=({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?_l:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),zm=({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?_l:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var bu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),$u=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=pu(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=bu(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=bu(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=bu(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=bu(t,e);return F("audio_stream_display_unknown",{index:a})};var f3={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:zm,selected:o},{handler:Um,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[W1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),q1(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:Sa,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=qc())==null?void 0:i.type)==="auto_quality"},{handler:zm,selected:((o=qc())==null?void 0:o.type)==="traffic_saving"},{handler:Um,selected:((n=qc())==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:$u(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}))})},K1=({subMenuId:t,context:e})=>t?[f3[t](e)]:[];var m3=$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 qm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=m3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 v3=$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 Wm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=v3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 g3=$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 Km(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=g3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 h3=$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 Qm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=h3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 _3=$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 Gm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=_3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 b3=$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 yu(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=b3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 $3=$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 jm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=$3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 y3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),x3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Ym(t,e){U(e,!0),W(t,x3);let[i,o]=Oe(),n=()=>S(u,"$currentQuality$",i),a=()=>S(v,"$availableQualities$",i),s=()=>S($,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),l=Ce(),u=l.state.currentQuality$,v=l.state.availableQualities$,$=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,_=m(()=>H1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=y3(),y=h(w);Sa(y,{get quality(){return n()},get label(){return r(_)},get isMobile(){return d()}}),g(w),b(t,w),z(),o()}var S3={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:$d,label:F("menu_quality"),value:e,valueComponent:Ym,weight:Cr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Cr["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:qm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=$u(t,e);return{id:"AUDIO_LANGUAGES",weight:Cr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:Wm,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:Cr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:Km,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Cr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:yd,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Cr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:Qm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Cr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:Gm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Cr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:yu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Cr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:yu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Cr["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:jm,isHiddenFor:["desktop"]})},Q1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>S3[n](e)),...i.map(n=>Nt(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(la)};var T3=(t,e)=>{Jc(t,e)},I3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),k3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),E3=L("<div><!> <!></div>"),P3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
305
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Lm(t,e){U(e,!0),K(t,W4);let[i,o]=Ne(),n=()=>S(b,"$isFullscreen",i),a=()=>S(p,"$playerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),l=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),u=m(e,"listRef",15);Qt(()=>{let X=e.items.findIndex(ce=>ce.selected);u().children[X+1].focus()});let f=Ie(),b=f.ui.isFullscreen,p=f.ui.playerSize,$=J(void 0),x=J(0),_=J(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(_)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(x)));var k=q4();let P;var A=h(k);let I;A.__keydown=[F4,e];var V=h(A);let q;V.__click=[U4,e],V.__keydown=[z4,e];var G=h(V);Es(G,{direction:"left"});var H=M(G,2),Z=h(H,!0);g(H),g(V),mt(V,X=>D($,X),()=>r($));var re=M(V,2);Pi(re,17,()=>e.items,Yl,(X,ce)=>{var ue=Oe(),Ve=fe(ue);{var Me=ae=>{Pm(ae,{get item(){return r(ce)},get isMobile(){return s()}})},_e=(ae,Le)=>{{var ne=B=>{Am(B,{get isMobile(){return s()},get item(){return r(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(ae,B=>{r(ce).type==="OPEN_SUB_MENU"&&B(ne)},Le)}};R(Ve,ae=>{r(ce).type==="SELECT_VALUE"?ae(Me):ae(_e,!1)})}y(X,ue)}),g(A),mt(A,X=>u(X),()=>u()),g(k),E((X,ce,ue)=>{P=ee(k,1,"sub-menu menu svelte-7dfsuh",null,P,X),De(k,"data-testid",`sub-menu-${e.id}`),st(k,`min-width: ${r(T)}px`),I=ee(A,1,"items svelte-7dfsuh",null,I,ce),st(A,r(C)),q=ee(V,1,"item header back svelte-7dfsuh",null,q,ue),De(V,"aria-label",l()),ge(Z,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Ur(V,"clientWidth",X=>D(x,X)),Ur(V,"clientHeight",X=>D(_,X)),y(t,k),z(),o()}lt(["keydown","click"]);var B1=require("@vkontakte/videoplayer-shared/es2015");var K4=(t,e)=>eu(t,e()),Q4=(t,e)=>{t.stopPropagation(),e()()},G4=L('<div class="value svelte-1ikfjte"> </div>'),j4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),Y4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Vm(t,e){U(e,!0),K(t,Y4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,B1.noop),n=m(e,"valueComponent",3,void 0),a=m(e,"ref",15);var s=j4();let d;s.__click=[Q4,o],s.__keydown=[K4,o];var l=h(s),u=h(l);{var f=T=>{ba(T,{get icon(){return e.icon}})},b=T=>{var k=Oe();let P=v(()=>e.icon);var A=fe(k);Ai(A,()=>r(P),(I,V)=>{V(I,{})}),y(T,k)};R(u,T=>{typeof e.icon=="string"?T(f):T(b,!1)})}g(l);var p=M(l,2),$=h(p,!0);g(p);var x=M(p,2);{var _=T=>{var k=Oe();let P=v(n);var A=fe(k);Ai(A,()=>r(P),(I,V)=>{V(I,{})}),y(T,k)},C=T=>{var k=G4(),P=h(k,!0);g(k),E(()=>ge(P,e.value)),y(T,k)};R(x,T=>{n()?T(_):T(C,!1)})}g(s),mt(s,T=>a(T),()=>a()),E(T=>{d=ee(s,1,"item",null,d,T),De(s,"aria-label",e.ariaLabel),De(s,"data-testid",e.id),ge($,e.label)},[()=>({mobile:i()})]),y(t,s),z()}lt(["click","keydown"]);var Rm=require("@vkontakte/videoplayer-shared/es2015");var Z4=(t,e)=>{ul(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 Nm(t,e){U(e,!0),K(t,t3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Rm.noop),n=m(e,"closeSettings",3,Rm.noop),a=J(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=e3();let u;l.__click=d,l.__keydown=[Z4,d];var f=h(l),b=h(f);{var p=C=>{var T=Oe(),k=fe(T);{var P=I=>{var V=X4();y(I,V)},A=I=>{var V=J4();E(()=>De(V,"src",e.icon)),kt("error",V,s),Gs(V),y(I,V)};R(k,I=>{r(a)?I(P):I(A,!1)})}y(C,T)},$=C=>{var T=Oe();let k=v(()=>e.icon);var P=fe(T);Ai(P,()=>r(k),(A,I)=>{I(A,{})}),y(C,T)};R(b,C=>{typeof e.icon=="string"?C(p):C($,!1)})}g(f);var x=M(f,2),_=h(x,!0);g(x),g(l),E(C=>{var T;u=ee(l,1,"item",null,u,C),De(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),De(l,"data-testid",e.id),ge(_,e.label)},[()=>({mobile:i()})]),y(t,l),z()}lt(["click","keydown"]);var D1=require("@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 Bm(t,e){K(t,o3);let i=m(e,"enabled",3,!1);var o=i3(),n=h(o);let a;xe(2),g(o),E(s=>a=ee(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),y(t,o)}var n3=(t,e,i)=>{i1(t,e(),o=>i()(o))},r3=(t,e,i)=>{t.stopPropagation(),e()(!i())},s3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),a3=L('<li role="menuitem" tabindex="0"><!></li>');function Dm(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,D1.noop),n=m(e,"enabled",3,!1),a=m(e,"tooltipText",3,void 0),s=m(e,"maxTooltipWidth",3,void 0);var d=a3();let l;d.__click=[r3,o,n],d.__keydown=[n3,n,o];var u=h(d);fa(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(f,b)=>{var p=s3();let $;var x=h(p),_=h(x);{var C=I=>{ba(I,{get icon(){return e.icon}})},T=I=>{var V=Oe();let q=v(()=>e.icon);var G=fe(V);Ai(G,()=>r(q),(H,Z)=>{Z(H,{})}),y(I,V)};R(_,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(x);var k=M(x,2),P=h(k,!0);g(k);var A=M(k,2);Bm(A,{get enabled(){return n()}}),g(p),E(I=>{$=ee(p,1,"switch-wrapper",null,$,I),ge(P,e.label)},[()=>({mobile:i()})]),y(f,p)},$$slots:{default:!0}}),g(d),E(f=>{var b;l=ee(d,1,"item switch-item",null,l,f),De(d,"aria-label",(b=e.ariaLabel)!=null?b:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),y(t,d),z()}lt(["click","keydown"]);var Kd=require("@vkontakte/videoplayer-shared/es2015");var O1=()=>{let t=J(me([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{D(t,me(r(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,me([]))}}};var l3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),d3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),c3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Sa(t,e){U(e,!0),K(t,c3);let i=m(e,"isSubCase",3,!1),o=v(()=>nu(e.quality));var n=d3(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var u=f=>{var b=l3();let p=v(()=>r(o));var $=h(b);Ai($,()=>r(p),(x,_)=>{_(x,{})}),g(b),y(f,b)};R(l,f=>{r(o)&&!e.isMobile&&f(u)})}g(n),E(f=>{s=ee(a,1,"svelte-t2qk8t",null,s,f),ge(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),y(t,n),z()}var z1=require("@vkontakte/videoplayer-shared/es2015");var Om=require("@vkontakte/videoplayer-core/es2015");var H1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},F1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=H1({quality:t,availableQualities:e});return i?t===Om.VideoQuality.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},U1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Om.VideoQuality.INVARIANT?i:`${i}${H1({quality:t,availableQualities:e})}`:"...";var u3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),p3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function yl(t,e){U(e,!0),K(t,p3);let[i,o]=Ne(),n=()=>S(l,"$currentQuality$",i),a=()=>S(u,"$availableQualities$",i),s=()=>S(f,"$isMobile$",i),d=Ie(),l=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,b=" \xB7 ",p=v(()=>e.prefix+(e.selected&&n()!==z1.VideoQuality.INVARIANT?b:"")),$=v(()=>U1({prefix:r(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var x=u3(),_=h(x);let C=v(()=>e.selected?n():void 0);Sa(_,{get quality(){return r(C)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(x),y(t,x),z(),o()}var f3=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")},m3={br:!0,span:!0},Hm=(t,e={})=>{var d,l,u,f,b,p,$;if(!t)return t;let i=W(W({},m3),e),o=Object.keys(i);if(!o.length)return t;let n=f3(o),a=[],s=0;for(let x of t.matchAll(n)){let _=x[0],C=((d=x.groups)==null?void 0:d.keyhtml)||((l=x.groups)==null?void 0:l.keyi18n)||((u=x.groups)==null?void 0:u.keyhtmlself)||((f=x.groups)==null?void 0:f.keyi18nself)||"",{index:T}=x;if(!i[C]){a.push(t.slice(s,T)),s=T+_.length;continue}let k=(b=x.groups)!=null&&b.childrenhtml?Hm(x.groups.childrenhtml,i):"",P=(p=x.groups)!=null&&p.childrenhtml?_.replace(new RegExp(($=x.groups)==null?void 0:$.childrenhtml),()=>k||""):_;a.push(t.slice(s,T),P),s=T+_.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Wd(t,e){U(e,!1);let i=m(e,"message",8),o=Hm(i());wr();var n=Oe(),a=fe(n);{var s=d=>{var l=Oe(),u=fe(l);Zl(u,()=>o,!1,!1),y(d,l)};R(a,d=>{o&&d(s)})}y(t,n),z()}var v3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),g3={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 Fm(t,e){U(e,!1),K(t,g3),wr();var i=v3(),o=h(i);let n=$r(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Wd(o,{get message(){return r(n)}}),g(i),y(t,i),z()}var W1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:yl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},Um=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?yl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),K1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Fm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),zm=({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?yl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),qm=({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?yl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var bu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),$u=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=pu(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=bu(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=bu(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=bu(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=bu(t,e);return F("audio_stream_display_unknown",{index:a})};var h3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Um,selected:e&&!o&&!n||!1}),a.push({handler:qm,selected:o},{handler:zm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[K1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),W1(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:Sa,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:Um,selected:((i=qc())==null?void 0:i.type)==="auto_quality"},{handler:qm,selected:((o=qc())==null?void 0:o.type)==="traffic_saving"},{handler:zm,selected:((n=qc())==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:$u(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}))})},Q1=({subMenuId:t,context:e})=>t?[h3[t](e)]:[];var _3=we('<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 Wm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=_3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var b3=we('<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 Km(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=b3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var $3=we('<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 Qm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=$3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var y3=we('<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 Gm(t,e){let i=Ae(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}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var x3=we('<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 jm(t,e){let i=Ae(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}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var w3=we('<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 yu(t,e){let i=Ae(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}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var S3=we('<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=Ae(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}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var C3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),T3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Zm(t,e){U(e,!0),K(t,T3);let[i,o]=Ne(),n=()=>S(u,"$currentQuality$",i),a=()=>S(f,"$availableQualities$",i),s=()=>S(b,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),l=Ie(),u=l.state.currentQuality$,f=l.state.availableQualities$,b=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,$=v(()=>F1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var x=C3(),_=h(x);Sa(_,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(x),y(t,x),z(),o()}var k3={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:bd,label:F("menu_quality"),value:e,valueComponent:Zm,weight:Ir["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Ir["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:Wm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=$u(t,e);return{id:"AUDIO_LANGUAGES",weight:Ir["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:Km,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:Ir["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:Qm,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Ir["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:$d,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Ir.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:Gm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Ir.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:jm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Ir["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:yu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Ir["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:yu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Ir["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"]})},G1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>k3[n](e)),...i.map(n=>Ht(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(la)};var P3=(t,e)=>{Jc(t,e)},A3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),M3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),L3=L("<div><!> <!></div>"),V3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
306
306
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
307
307
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
308
308
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
309
- .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Gd(t,e){U(e,!0),W(t,P3);let[i,o]=Oe(),n=()=>S(Ne,"$settingsMenuVisible",i),a=()=>S(et,"$settingsMenuOpenedByKeyboard",i),s=()=>S(vt,"$debugPanelVisible",i),d=()=>S(we,"$isMobile",i),l=()=>S(tt,"$playerSize",i),u=()=>S(Ve,"$hasMpegSources$",i),v=()=>S(Be,"$mobileNotReportControlHidden$",i),$=()=>S(se,"$autoQualityLimitingAvailable$",i),p=()=>S(G,"$availableSubtitlesList$",i),_=()=>S(Xe,"$isLiveWithPlaybackSpeed",i),w=()=>S(ve,"$availableAudioStreams$",i),y=()=>S(je,"$availablePlaybackRates$",i),C=()=>S(Me,"$currentAudioStream$",i),T=()=>S(ie,"$currentPlaybackRate$",i),E=()=>S(nt,"$trafficSavingEnabled",i),P=()=>S(le,"$currentQuality$",i),A=()=>S(N,"$isAutoQualityEnabled$",i),I=()=>S(oe,"$currentSubtitle$",i),V=()=>S(Yt,"$additionalSettingsMenuItems$",i),H=()=>S(Re,"$isAutoQualityAvailable$",i),Y=()=>S(Ae,"$availableQualities$",i),O=()=>S(ht,"$highQualityEnabled",i),J=f(e,"ref",15,void 0),re=f(e,"playerControlsHeight",3,0),Z=fe({}),me=fe({}),de=Ce(),Le=qt(),Me=de.state.audioStream$,ve=de.state.availableAudioStreams$,le=de.state.currentQuality$,Ae=de.state.availableQualities$,se=de.state.autoQualityLimitingAvailable$,N=de.state.isAutoQualityEnabled$,Re=de.state.isAutoQualityAvailable$,ie=de.state.currentPlaybackRate$,je=de.state.availablePlaybackRates$,oe=de.state.currentSubtitle$,G=de.state.availableSubtitlesList$,K=de.state.canDownload,Ve=de.state.hasMpegSources$,Ne=de.ui.settingsMenu.visible$,et=de.ui.settingsMenu.openedByBtnKeyboard$,xe=de.ui.settingsMenu.ref$,we=de.ui.isMobile,Be=de.ui.mobileNotReportControlHidden$,Xe=de.state.canChangePlaybackSpeed$,nt=de.state.trafficSavingEnabled$,ht=de.state.highQualityEnabled$,tt=de.ui.playerSize,vt=de.ui.debugPanelVisible,Pt=de.state.isInteractiveTime$,Yt=de.ui.additionalSettingsMenuItems$,Wt=de.ui.t,Gt=de.actions.internal.downloadVideo,ge=de.actions.internal.closeSettingsMenu,j=de.actions.internal.openSettingsSubMenu,Ie=de.actions.internal.closeSettingsSubMenu,ae=ee(!1),He=ee(void 0),qe=B1();ze(()=>{!n()&&qe.current&&(Ie(me[qe.current]),qe.popAllSubMenus())}),ze(()=>{n()||B(He,void 0)}),ze(()=>{!qe.current&&r(He)&&Jh(Z,r(He))}),ze(()=>{J()&&xe.set(J())});function it(Tt){return Mt(this,null,function*(){qe.pushSubMenu(Tt),yield To(),j(Tt,me[Tt])})}function dt(Tt){var Kt;Tt==null||Tt.stopPropagation(),a()||(Kt=e.returnFocus)==null||Kt.call(e),ge(),B(ae,!1)}function Ze(Tt,Kt){de.actions.internal.setQuality(Tt,{appliesTo:Kt}),dt()}function Je(Tt){de.actions.internal.setAudioStream(Tt),dt()}function ct(Tt,Kt){de.actions.internal.setTrafficSavingEnabled(Tt,Kt),Le.features.qualityDetailsSubMenuEnabled&&dt()}function De(Tt,Kt){de.actions.internal.setHighQualityEnabled(Tt,Kt),dt()}function yt(Tt){de.actions.internal.setPlaybackRate(Tt),dt()}function We(Tt){de.actions.internal.setSubtitle(Tt),dt()}function At(){Gt()}function ai(){(0,Qd.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),de.actions.internal.reportProblem(),de.actions.internal.pause()}function ei(){nl(de.actions.internal.getDebugTextData())}let li=()=>{let Tt=de.actions.internal.getTraceTextData(),Kt=new Blob([...Tt],{type:"application/json"}),ii=window.URL.createObjectURL(Kt);ia(ii,"vk_player_trace_info","json")};function Ui(){vt.set(!s())}function Ji(){B(ae,!0)}function zi(){B(ae,!1)}function bo(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-re()}px; overflow: auto;`}let Ho=m(()=>K&&u()&&!v()),rt=m(()=>Le.features.trafficSaving&&!v()&&$()&&!Le.features.qualityDetailsSubMenuEnabled),_t=m(()=>p().length>0&&!v()),Ci=m(()=>!!_()&&!v()),X=m(()=>Le.features.audioLanguages&&w().length>=2&&!v()),ti=m(()=>!v());zt(()=>Pt.subscribe(Tt=>{Tt&&!d()&&!r(ae)&&!a()&&dt()}));let di=m(()=>{let Tt=[r(ti)&&"QUALITY_SETTINGS",r(X)&&"AUDIO_LANGUAGES",r(Ci)&&"PLAYBACK_RATE",r(_t)&&"SUBTITLES",r(rt)&&"TRAFFIC_SAVING_SWITCH",r(Ho)&&"DOWNLOAD",Le.showSupport&&"SHOW_SUPPORT","COPY_DATA",Le.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Kt=>!!Kt);return Q1({items:Tt,context:{qualityDetailsSubMenuEnabled:Le.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:yt,trafficSavingEnabled:E(),toggleTrafficSaving:ct,currentQuality:P()||Qd.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:At,debugPanelVisible:s(),onCopyDataClick:ei,onReportProblemClick:ai,onSaveTraceDataClick:li,toggleShowDebugInfo:Ui},additionalSettingsMenuItems:V()})}),qi=m(()=>K1({subMenuId:qe.current,context:{availablePlaybackRates:y(),selectPlaybackRate:yt,trafficSavingEnabled:E(),toggleTrafficSaving:ct,currentQuality:P()||Qd.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:H()||!1,availableQualities:Y(),highQualityEnabled:O(),toggleHighQuality:De,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:ge,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Je,selectQuality:Ze,selectSubtitle:We}}));var ni=E3();let hi;var ci=h(ni);{var pt=Tt=>{var Kt=k3();let ii;Kt.__keydown=[T3,ge];var no=h(Kt);{var Kn=ui=>{var It=I3();let yo;var Fo=h(It),pi=h(Fo,!0);g(Fo);var Po=M(Fo,2);Po.__click=dt,g(It),k((ro,Ao)=>{yo=te(It,1,"item header svelte-17or3al",null,yo,ro),he(pi,Ao)},[()=>({mobile:d()}),()=>Wt("submenu_settings")]),b(ui,It)};R(no,ui=>{d()&&ui(Kn)})}var Wi=M(no,2);let Eo;Ei(Wi,21,()=>r(di),ui=>ui.id,(ui,It)=>{var yo=Ue(),Fo=pe(yo);{var pi=ro=>{Lm(ro,{get isMobile(){return d()},get id(){return r(It).id},get icon(){return r(It).icon},get label(){return r(It).label},get ariaLabel(){return r(It).ariaLabel},get value(){return r(It).value},get valueComponent(){return r(It).valueComponent},onClick:()=>{it(r(It).children),B(He,fe(r(It).id))},get ref(){return Z[r(It).id]},set ref(Ao){Z[r(It).id]=Ao}})},Po=(ro,Ao)=>{{var Uo=Oi=>{Rm(Oi,{get isMobile(){return d()},get id(){return r(It).id},get onClick(){return r(It).onClick},get icon(){return r(It).icon},get label(){return r(It).label},get ariaLabel(){return r(It).ariaLabel},closeSettings:dt})},En=(Oi,Pn)=>{{var so=Mo=>{Nm(Mo,{get isMobile(){return d()},get id(){return r(It).id},get onClick(){return r(It).onClick},get icon(){return r(It).icon},get label(){return r(It).label},get ariaLabel(){return r(It).ariaLabel},get enabled(){return r(It).enabled},get tooltipText(){return r(It).tooltipText},get maxTooltipWidth(){return r(It).maxTooltipWidth}})};R(Oi,Mo=>{r(It).type==="SWITCH"&&Mo(so)},Pn)}};R(ro,Oi=>{r(It).type==="CLICK"?Oi(Uo):Oi(En,!1)},Ao)}};R(Fo,ro=>{r(It).type==="OPEN_SUB_MENU"?ro(pi):ro(Po,!1)})}b(ui,yo)}),g(Wi),mt(Wi,ui=>J(ui),()=>J()),g(Kt),k((ui,It,yo)=>{ii=te(Kt,1,"settings-menu menu svelte-17or3al",null,ii,ui),Eo=te(Wi,1,"items",null,Eo,It),ot(Wi,yo)},[()=>({desktop:!d(),mobile:d(),hidden:!!qe.current}),()=>({mobile:d()}),bo]),Ct("mouseenter",Kt,Ji),Ct("mouseleave",Kt,zi),b(Tt,Kt)};R(ci,Tt=>{n()&&Tt(pt)})}var $o=M(ci,2);Ei($o,17,()=>r(qi),Tt=>Tt.id,(Tt,Kt)=>{let ii=m(()=>{var no;return(no=r(Kt).minWidth)!=null?no:137});Mm(Tt,{get isMobile(){return d()},get playerControlsHeight(){return re()},get returnFromSubMenu(){return qe.popSubMenu},get id(){return r(Kt).id},get title(){return r(Kt).title},closeSettingsMenu:ge,openSubMenuList:it,get items(){return r(Kt).items},get minWidth(){return r(ii)},get refMenuItems(){return Z},get listRef(){return me[r(Kt).id]},set listRef(no){me[r(Kt).id]=no}})}),g(ni),k(Tt=>hi=te(ni,1,"settings-menu-container svelte-17or3al",null,hi,Tt),[()=>({mobile:d(),hidden:!n()})]),b(t,ni),z(),o()}lt(["keydown","click"]);var A3=t=>t;function G1(t,{delay:e=0,duration:i=400,easing:o=A3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var M3=L('<button class="button svelte-1sbbskl"> </button>'),L3={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 Zm(t,e){W(t,L3);var i=M3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),k(()=>he(o,e.label)),b(t,i)}lt(["click"]);var V3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),R3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
309
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Qd(t,e){U(e,!0),K(t,V3);let[i,o]=Ne(),n=()=>S(He,"$settingsMenuVisible",i),a=()=>S(Ye,"$settingsMenuOpenedByKeyboard",i),s=()=>S(Et,"$debugPanelVisible",i),d=()=>S(Se,"$isMobile",i),l=()=>S(at,"$playerSize",i),u=()=>S(ie,"$hasMpegSources$",i),f=()=>S(Re,"$mobileNotReportControlHidden$",i),b=()=>S(ne,"$autoQualityLimitingAvailable$",i),p=()=>S(ve,"$availableSubtitlesList$",i),$=()=>S(Ze,"$isLiveWithPlaybackSpeed",i),x=()=>S(_e,"$availableAudioStreams$",i),_=()=>S(Qe,"$availablePlaybackRates$",i),C=()=>S(Me,"$currentAudioStream$",i),T=()=>S(de,"$currentPlaybackRate$",i),k=()=>S(ut,"$trafficSavingEnabled",i),P=()=>S(ae,"$currentQuality$",i),A=()=>S(B,"$isAutoQualityEnabled$",i),I=()=>S(te,"$currentSubtitle$",i),V=()=>S(Jt,"$additionalSettingsMenuItems$",i),q=()=>S($e,"$isAutoQualityAvailable$",i),G=()=>S(Le,"$availableQualities$",i),H=()=>S(pt,"$highQualityEnabled",i),Z=m(e,"ref",15,void 0),re=m(e,"playerControlsHeight",3,0),X=me({}),ce=me({}),ue=Ie(),Ve=Gt(),Me=ue.state.audioStream$,_e=ue.state.availableAudioStreams$,ae=ue.state.currentQuality$,Le=ue.state.availableQualities$,ne=ue.state.autoQualityLimitingAvailable$,B=ue.state.isAutoQualityEnabled$,$e=ue.state.isAutoQualityAvailable$,de=ue.state.currentPlaybackRate$,Qe=ue.state.availablePlaybackRates$,te=ue.state.currentSubtitle$,ve=ue.state.availableSubtitlesList$,Y=ue.state.canDownload,ie=ue.state.hasMpegSources$,He=ue.ui.settingsMenu.visible$,Ye=ue.ui.settingsMenu.openedByBtnKeyboard$,ye=ue.ui.settingsMenu.ref$,Se=ue.ui.isMobile,Re=ue.ui.mobileNotReportControlHidden$,Ze=ue.state.canChangePlaybackSpeed$,ut=ue.state.trafficSavingEnabled$,pt=ue.state.highQualityEnabled$,at=ue.ui.playerSize,Et=ue.ui.debugPanelVisible,$t=ue.state.isInteractiveTime$,Jt=ue.ui.additionalSettingsMenuItems$,li=ue.ui.t,At=ue.actions.internal.downloadVideo,Dt=ue.actions.internal.closeSettingsMenu,O=ue.actions.internal.openSettingsSubMenu,be=ue.actions.internal.closeSettingsSubMenu,se=J(!1),Be=J(void 0),We=O1();Fe(()=>{!n()&&We.current&&(be(ce[We.current]),We.popAllSubMenus())}),Fe(()=>{n()||D(Be,void 0)}),Fe(()=>{!We.current&&r(Be)&&e1(X,r(Be))}),Fe(()=>{Z()&&ye.set(Z())});function je(Je){return St(this,null,function*(){We.pushSubMenu(Je),yield wo(),O(Je,ce[Je])})}function ft(Je){var Nt;Je==null||Je.stopPropagation(),a()||(Nt=e.returnFocus)==null||Nt.call(e),Dt(),D(se,!1)}function Xe(Je,Nt){ue.actions.internal.setQuality(Je,{appliesTo:Nt}),ft()}function it(Je){ue.actions.internal.setAudioStream(Je),ft()}function ot(Je,Nt){ue.actions.internal.setTrafficSavingEnabled(Je,Nt),Ve.features.qualityDetailsSubMenuEnabled&&ft()}function Ke(Je,Nt){ue.actions.internal.setHighQualityEnabled(Je,Nt),ft()}function _t(Je){ue.actions.internal.setPlaybackRate(Je),ft()}function qt(Je){ue.actions.internal.setSubtitle(Je),ft()}function et(){At()}function Xt(){(0,Kd.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),ue.actions.internal.reportProblem(),ue.actions.internal.pause()}function ni(){ll(ue.actions.internal.getDebugTextData())}let tt=()=>{let Je=ue.actions.internal.getTraceTextData(),Nt=new Blob([...Je],{type:"application/json"}),lo=window.URL.createObjectURL(Nt);ia(lo,"vk_player_trace_info","json")};function ei(){Et.set(!s())}function Hi(){D(se,!0)}function Ki(){D(se,!1)}function Rt(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-re()}px; overflow: auto;`}let bt=v(()=>Y&&u()&&!f()),Ot=v(()=>Ve.features.trafficSaving&&!f()&&b()&&!Ve.features.qualityDetailsSubMenuEnabled),_o=v(()=>p().length>0&&!f()),ln=v(()=>!!$()&&!f()),Sn=v(()=>Ve.features.audioLanguages&&x().length>=2&&!f()),To=v(()=>!f());Qt(()=>$t.subscribe(Je=>{Je&&!d()&&!r(se)&&!a()&&ft()}));let j=v(()=>{let Je=[r(To)&&"QUALITY_SETTINGS",r(Sn)&&"AUDIO_LANGUAGES",r(ln)&&"PLAYBACK_RATE",r(_o)&&"SUBTITLES",r(Ot)&&"TRAFFIC_SAVING_SWITCH",r(bt)&&"DOWNLOAD",Ve.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ve.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Nt=>!!Nt);return G1({items:Je,context:{qualityDetailsSubMenuEnabled:Ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:_(),currentAudioStream:C(),availableAudioStreams:x(),currentPlaybackRate:T(),selectPlaybackRate:_t,trafficSavingEnabled:k(),toggleTrafficSaving:ot,currentQuality:P()||Kd.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:et,debugPanelVisible:s(),onCopyDataClick:ni,onReportProblemClick:Xt,onSaveTraceDataClick:tt,toggleShowDebugInfo:ei},additionalSettingsMenuItems:V()})}),ti=v(()=>Q1({subMenuId:We.current,context:{availablePlaybackRates:_(),selectPlaybackRate:_t,trafficSavingEnabled:k(),toggleTrafficSaving:ot,currentQuality:P()||Kd.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:q()||!1,availableQualities:G(),highQualityEnabled:H(),toggleHighQuality:Ke,availableAudioStreams:x(),availableSubtitlesList:p(),closeSettingsMenu:Dt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:it,selectQuality:Xe,selectSubtitle:qt}}));var di=L3();let Fi;var pi=h(di);{var vt=Je=>{var Nt=M3();let lo;Nt.__keydown=[P3,Dt];var ri=h(Nt);{var nr=fi=>{var Tt=A3();let ki;var No=h(Tt),hi=h(No,!0);g(No);var Bo=M(No,2);Bo.__click=ft,g(Tt),E((Qi,ko)=>{ki=ee(Tt,1,"item header svelte-17or3al",null,ki,Qi),ge(hi,ko)},[()=>({mobile:d()}),()=>li("submenu_settings")]),y(fi,Tt)};R(ri,fi=>{d()&&fi(nr)})}var Io=M(ri,2);let Ko;Pi(Io,21,()=>r(j),fi=>fi.id,(fi,Tt)=>{var ki=Oe(),No=fe(ki);{var hi=Qi=>{Vm(Qi,{get isMobile(){return d()},get id(){return r(Tt).id},get icon(){return r(Tt).icon},get label(){return r(Tt).label},get ariaLabel(){return r(Tt).ariaLabel},get value(){return r(Tt).value},get valueComponent(){return r(Tt).valueComponent},onClick:()=>{je(r(Tt).children),D(Be,me(r(Tt).id))},get ref(){return X[r(Tt).id]},set ref(ko){X[r(Tt).id]=ko}})},Bo=(Qi,ko)=>{{var Eo=Po=>{Nm(Po,{get isMobile(){return d()},get id(){return r(Tt).id},get onClick(){return r(Tt).onClick},get icon(){return r(Tt).icon},get label(){return r(Tt).label},get ariaLabel(){return r(Tt).ariaLabel},closeSettings:ft})},On=(Po,Cn)=>{{var to=Do=>{Dm(Do,{get isMobile(){return d()},get id(){return r(Tt).id},get onClick(){return r(Tt).onClick},get icon(){return r(Tt).icon},get label(){return r(Tt).label},get ariaLabel(){return r(Tt).ariaLabel},get enabled(){return r(Tt).enabled},get tooltipText(){return r(Tt).tooltipText},get maxTooltipWidth(){return r(Tt).maxTooltipWidth}})};R(Po,Do=>{r(Tt).type==="SWITCH"&&Do(to)},Cn)}};R(Qi,Po=>{r(Tt).type==="CLICK"?Po(Eo):Po(On,!1)},ko)}};R(No,Qi=>{r(Tt).type==="OPEN_SUB_MENU"?Qi(hi):Qi(Bo,!1)})}y(fi,ki)}),g(Io),mt(Io,fi=>Z(fi),()=>Z()),g(Nt),E((fi,Tt,ki)=>{lo=ee(Nt,1,"settings-menu menu svelte-17or3al",null,lo,fi),Ko=ee(Io,1,"items",null,Ko,Tt),st(Io,ki)},[()=>({desktop:!d(),mobile:d(),hidden:!!We.current}),()=>({mobile:d()}),Rt]),kt("mouseenter",Nt,Hi),kt("mouseleave",Nt,Ki),y(Je,Nt)};R(pi,Je=>{n()&&Je(vt)})}var gi=M(pi,2);Pi(gi,17,()=>r(ti),Je=>Je.id,(Je,Nt)=>{let lo=v(()=>{var ri;return(ri=r(Nt).minWidth)!=null?ri:137});Lm(Je,{get isMobile(){return d()},get playerControlsHeight(){return re()},get returnFromSubMenu(){return We.popSubMenu},get id(){return r(Nt).id},get title(){return r(Nt).title},closeSettingsMenu:Dt,openSubMenuList:je,get items(){return r(Nt).items},get minWidth(){return r(lo)},get refMenuItems(){return X},get listRef(){return ce[r(Nt).id]},set listRef(ri){ce[r(Nt).id]=ri}})}),g(di),E(Je=>Fi=ee(di,1,"settings-menu-container svelte-17or3al",null,Fi,Je),[()=>({mobile:d(),hidden:!n()})]),y(t,di),z(),o()}lt(["keydown","click"]);var R3=t=>t;function j1(t,{delay:e=0,duration:i=400,easing:o=R3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var N3=L('<button class="button svelte-1sbbskl"> </button>'),B3={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Xm(t,e){K(t,B3);var i=N3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),E(()=>ge(o,e.label)),y(t,i)}lt(["click"]);var D3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),O3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
310
310
  /**
311
311
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
312
- */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function jd(t,e){U(e,!0),W(t,R3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=qt(),{ui:{t:n}}=Ce(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=V3(),d=h(s),l=h(d),u=h(l),v=h(u);Kd(v,{message:a}),g(u);var $=M(u,2);{var p=w=>{let y=m(()=>n("slow_video_notification_button"));Zm(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};R($,w=>{o||w(p)})}g(l);var _=M(l,2);ca(_,{get onClick(){return e.onClose}}),g(d),g(s),Lp(3,d,()=>G1,()=>({duration:i})),b(t,s),z()}var Ca="annotation",xu=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",Ca),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var D3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),N3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
312
+ */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Gd(t,e){U(e,!0),K(t,O3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Gt(),{ui:{t:n}}=Ie(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=D3(),d=h(s),l=h(d),u=h(l),f=h(u);Wd(f,{message:a}),g(u);var b=M(u,2);{var p=x=>{let _=v(()=>n("slow_video_notification_button"));Xm(x,{get label(){return r(_)},get onClick(){return e.onSelectAutoQuality}})};R(b,x=>{o||x(p)})}g(l);var $=M(l,2);ca($,{get onClick(){return e.onClose}}),g(d),g(s),Vp(3,d,()=>j1,()=>({duration:i})),y(t,s),z()}var Y1=require("@vkontakte/videoplayer-shared/es2015");var Ca="annotation",xu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:a,hideAllControls:s}=i;e.setAttribute("slot",Ca),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(n,a),s&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(n,a){return St(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var $;let s=this.slots.get(e);if(!s)return;let d=yield this.findSlotElement(s.rootElement,i,e),l=(x,_)=>!(x.right<_.left||x.left>_.right||x.bottom<_.top||x.top>_.bottom),{controls:u,hiddenControls:f}=(($=this.store)==null?void 0:$.ui)||{},b=new MutationObserver(x=>x.forEach(()=>{let _=ss(d,this.shadowRootContainer);o.forEach(C=>{let T=u==null?void 0:u[C],k=T?Te(T):null,P=f==null?void 0:f[C];k&&(P==null||P.set(l(k,_)))})}));b.observe(d,{childList:!0,subtree:!0}),s.observer=b;let p=new Y1.Subscription;o.forEach(x=>{u&&p.add(u[x].subscribe(_=>{let C=f==null?void 0:f[x];_&&(C==null||C.set(l(_,ss(d,this.shadowRootContainer))))}))}),s.subs=p})}findSlotElement(e,i,o){return St(this,null,function*(){return new Promise(n=>{let a=null,s=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){s.disconnect();let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=void 0),n(a)}});s.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=s)})})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:a,subs:s,options:{controlsBehaviour:d,hideAllControls:l}}=i;o&&o.remove(),[n,a].forEach(b=>b==null?void 0:b.disconnect()),s==null||s.unsubscribe(),this.slots.delete(e),l&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(b=>{var p,$;($=(p=this.store)==null?void 0:p.ui.hiddenControls[b])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var H3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),F3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
313
313
 
314
314
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
315
315
 
@@ -340,8 +340,8 @@ Try switching the\xA0quality to\xA0Auto.`},Uh=O_;var ns=new Map;ns.set(el.Interf
340
340
  opacity: 0;
341
341
  scale: 0;
342
342
  }
343
- }`};function Xm(t,e){U(e,!0),W(t,N3);let[i,o]=Oe(),n=()=>S(s,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Ce(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:v,playbackStatusNextVideoAnimationDuration:$}}=qt(),p=0,_=ee(null),w=ee(!1);ze(()=>{B(_,fe(n()?Sr:ss))}),ze(()=>{B(_,fe(a()?Is:null))}),ze(()=>{if(u)return p=window.setTimeout(()=>{p=0,a()&&r(_)===Is&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),B(_,null)},r(_)!==Is?v:$),()=>{p&&(window.clearTimeout(p),p=0)}}),ze(()=>{n()&&!r(w)&&(B(w,!0),B(_,null))});var y=Ue(),C=pe(y);{var T=E=>{var P=Ue(),A=pe(P);Ys(A,()=>r(_),I=>{var V=D3(),H=h(V),Y=h(H);let O=m(()=>a()==="prev");Pi(Y,()=>r(_),(J,re)=>{re(J,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(O)}})}),g(H),g(V),k(()=>ot(H,`animation-duration: ${r(_)!==Is?v:$}ms`)),b(I,V)}),b(E,P)};R(C,E=>{r(_)&&u&&E(T)})}b(t,y),z(),o()}var B3=L('<div><div data-testid="video-container"></div></div>'),O3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
344
- .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Ta(t,e){U(e,!0),W(t,O3);let[i,o]=Oe(),n=()=>S(v,"$rotateAlpha",i),a=()=>S($,"$playerSize",i),s=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),l=f(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:v,playerSize:$},state:{isPlaying$:p}}=Ce(),{isSmoothVideoRotate:_}=qt(),w=m(()=>l()&&n()%180?a().height/a().width:1);var y=B3();let C;y.__contextmenu=function(...E){var P;(P=e.onContextMenu)==null||P.apply(this,E)},y.__mousedown=function(...E){var P;(P=e.onMouseDown)==null||P.apply(this,E)},y.__mouseup=function(...E){var P;(P=e.onMouseUp)==null||P.apply(this,E)},y.__click=function(...E){var P;(P=e.onClick)==null||P.apply(this,E)};var T=h(y);te(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!_}),mt(T,E=>l(E),()=>l()),g(y),k(E=>{C=te(y,1,"video-wrapper svelte-1czns9r",null,C,E),ot(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Fe(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),b(t,y),z(),o()}lt(["contextmenu","mousedown","mouseup","click"]);var H3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},F3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},U3=L("<div><!></div>"),z3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),q3=L("<div><!></div>"),W3=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),K3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Q3=L("<!> <!> <!>",1),G3=L('<div class="blocked svelte-jtgjmv"></div>'),j3=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Y3={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function ev(t,e){U(e,!0),W(t,Y3);let[i,o]=Oe(),n=()=>S(Yo,"$notificationsToShow$",i),a=()=>S(Ui,"$playerPhase",i),s=()=>S(di,"$isLoaderVisible",i),d=()=>S(ai,"$adPlaybackState",i),l=()=>S(Tt,"$crashed",i),u=()=>S(yo,"$isInteractiveTime$",i),v=()=>S(Ho,"$settingsMenuVisible",i),$=()=>S(Fo,"$isInteractiveExpectation$",i),p=()=>S(bo,"$controlsVisible",i),_=()=>S(Po,"$touched",i),w=()=>S(Gn,"$graphIsOpened$",i),y=()=>S(Ji,"$isFullscreen",i),C=()=>S(Tr,"$autoplayNextEnabled$",i),T=()=>S(ci,"$postrollPassed",i),E=()=>S(qi,"$isEnded$",i),P=()=>S(Xo,"$cursorInside",i),A=()=>S(An,"$fakeIsPlaying$",i),I=()=>S(Ki,"$bottomNoSmooth",i),V=()=>S(En,"$interactiveTimeIndicator",i),H=()=>S(Wi,"$playerSize",i),Y=()=>S(Eo,"$is3DVideo",i),O=()=>S(X,"$contextMenuVisible$",i),J=()=>S(At,"$playbackState$",i),re=()=>S(ro,"$hotKeyMapData",i),Z=()=>S(_t,"$scrubbingInProgress",i),me=()=>S(Ci,"$volumeChangingInProgress",i),de=()=>S(ni,"$chromecastConnected$",i),Le=()=>S(Lo,"$controlsTimeoutActive",i),Me=()=>S(rt,"$settingsMenuOpenedByKeyboard",i),ve=()=>S(Nn,"$contextMenuOpenedByKeyboard$",i),le=()=>S(en,"$contextMenuButtonRef$",i),Ae=()=>S(tr,"$contextMenuOpenedByHotKey$",i),se=()=>S(Lr,"$contextMenuLastActiveElem$",i),N=()=>S(zi,"$isFullscreenOpenedByKeyboard",i),Re=()=>S(We,"$language$",i),ie=()=>S(ui,"$icon3DVideoVisible",i),je=()=>S(hi,"$chromecastDeviceName$",i),oe=()=>S(no,"$currentSubtitle$",i),G=()=>S(Kn,"$currentSubtitleCaptions$",i),K=()=>S(ei,"$position$",i),Ve=()=>S(li,"$duration$",i),Ne=()=>S(pt,"$isLive$",i),et=()=>S($o,"$isPlaying$",i),xe=()=>S(Pn,"$contextMenuPosition$",i),we=()=>S(Ao,"$showHotKeyMap",i),Be=()=>S(ti,"$debugPanelVisible",i),Xe=()=>S(dr,"$userActionsDisabled$",i),nt=f(e,"videoContainer",15),ht=f(e,"adsSlotId",3,void 0),tt=f(e,"adsParams",3,void 0),vt=f(e,"adsPreviewParam",3,void 0),Pt=f(e,"adsAutoplayParam",3,void 0),Yt=f(e,"duration",3,void 0),Wt=f(e,"logoTargetUrl",3,""),Gt=f(e,"showNextPrevButtons",3,!1),ge=f(e,"nextButtonActive",3,!1),j=f(e,"prevButtonActive",3,!1),Ie=f(e,"endScreenVideoTitle",3,void 0),ae=f(e,"endScreenVideoThumb",3,void 0),He=f(e,"isOneVideoPlaylist",3,!1),qe=f(e,"shadowRootContainer",3,void 0),it=f(e,"outerContainerRef",3,void 0),dt=f(e,"playerStarted",3,!1),Ze=f(e,"fullScreenTarget",3,void 0),Je=f(e,"showMiniTimer",3,!1),ct=f(e,"showEndScreen",3,!0),De=f(e,"keyboardControls",15),yt=e.store.getLogger().createComponentLog("Root component"),We=e.store.interfaceLanguage$,At=e.store.state.playbackState$,ai=e.store.ads.playbackState,ei=e.store.state.positionWithScrubbing$,li=e.store.state.duration$,Ui=e.store.playerPhase,Ji=e.store.ui.isFullscreen,zi=e.store.ui.isFullscreenOpenedByKeyboard,bo=e.store.ui.controlsVisible,Ho=e.store.ui.settingsMenu.visible$,rt=e.store.ui.settingsMenu.openedByBtnKeyboard$,_t=e.store.ui.scrubbingInProgress,Ci=e.store.ui.volumeChangingInProgress,X=e.store.ui.contextMenu.visible$,ti=e.store.ui.debugPanelVisible,di=e.store.state.isLoaderVisible,qi=e.store.state.isEnded$,ni=e.store.state.chromecastConnected$,hi=e.store.state.chromecastDeviceName$,ci=e.store.ads.postrollPassed,pt=e.store.state.isLive$,$o=e.store.state.isPlaying$,Tt=e.store.state.crashed$,Kt=e.store.webApi.annotationsApi,ii=e.store.webApi.pictureInPictureApi,no=e.store.state.currentSubtitle$,Kn=e.store.state.currentSubtitleCaptions$,Wi=e.store.ui.playerSize,Eo=e.store.ui.is3DVideo,ui=e.store.ui.icon3DVideoVisible,It=e.store.state.isInteractive,yo=e.store.state.isInteractiveTime$,Fo=e.store.state.isInteractiveExpectation$,pi=e.store.state.hasInteractiveBranches,Po=e.store.ui.touched,ro=e.store.ui.modals.hotKeyMap.data,Ao=e.store.ui.modals.hotKeyMap.show,Uo=e.store.ui.overlayContainer$,En=e.store.ui.controls.interactiveTimeIndicator,Oi=e.store.state.showInteractiveTimeIndicator,Pn=e.store.ui.contextMenu.position$,so=e.store.actions.internal.setQuality,Mo=e.store.actions.internal.closeSettingsMenu,Tr=e.store.ui.autoplayNextEnabled$,dr=e.store.ui.userActionsDisabled,{fakeIsPlaying$:An,notifications$:Qn,graphIsOpened$:Gn}=_o(),xo=ee(void 0),gn=ee(void 0),Mn=ee(void 0),st=ee(void 0),Ln,Go,jo;ro.set(Gh());let{closeNotification:Ir,notificationsToShow$:Yo}=Qn,Vn=m(()=>!!n().slow_video),jn=()=>Ir("slow_video"),Rn=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Zo=ee(void 0),Ki=ue(!1),ao,Lo=ue(!1),hn=ue(),Xo=ue(!1),Jo=ee(!1),Mi=ee(!1),zo=ee(!1),Vo=ee(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),cr=m(()=>u()&&!v()&&!(r(Jo)||r(Mi))&&!(r(zo)&&!$())),_n=!0,bn=m(()=>e.uiConfig.features.thumbTimer&&Je()&&a()==="video"&&!p()&&!l()&&!It&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),kr=m(()=>a()==="video"&&!w()&&y()),qo=ee(!1),Er=m(()=>(ct()||e.showAutoplayNext&&C())&&!!Ie()&&!!ae()&&(e.showAds&&T()||!e.showAds)&&E()&&!l()&&!r(qo)),Dn=m(()=>P()&&!(p()||r(Er))&&!u()),Yn=ee(!1),ur=m(()=>A()!==null),{toggle:Pr}=An,Zn=!1,$n=null;ii==null||ii.setContext(Gl());let Ar=()=>{e.autoplay&&!It&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ti(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Ar});let fi=()=>{window.clearTimeout(Ln),Lo.set(!1)},Ro=()=>{window.clearTimeout(Go),hn.set(null)},Ti=ye=>{fi(),Lo.set(!0),Ln=window.setTimeout(()=>Lo.set(!1),ye);let kt=ye-100;ao=window.setTimeout(()=>{I()&&Ki.set(!1)},kt>0?kt:ye)},Xn=(ye,kt)=>{Ro(),hn.set(kt),Go=window.setTimeout(()=>hn.set(null),ye)},ft=Eo.subscribe(ye=>{ui.set(ye),ye&&(window.clearTimeout(jo),jo=window.setTimeout(()=>ui.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ft=()=>Mt(this,null,function*(){var kt,_i,ki,co;let ye=bs();if(ye){let vi=dd(),ke=at();ye=vi===ke||vi===qe()}if(ye){Ti(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ii==null?void 0:ii.remove()}catch(vi){yt({message:String(vi)})}}Ji.set(ye),e.store.getAdmanWrapper().setFullscreen(ye),y()?(_i=(kt=e.store.callbacks)==null?void 0:kt.onFullscreenEnter)==null||_i.call(kt):(co=(ki=e.store.callbacks)==null?void 0:ki.onFullscreenExit)==null||co.call(ki)}),Li=ye=>{let{width:kt,height:_i}=ye.target;Wi.set({width:kt,height:_i})},Do=()=>{let{width:ye,height:kt}=r(xo).getBoundingClientRect();Wi.set({width:ye,height:kt})};zt(()=>{var kt;return Zc(Ft),e.uiConfig.features.annotationsInside&&(Kt==null||Kt.init(r(xo))),sa(ii)&&(ii==null||ii.assignPlayerContainer(r(xo)),ii==null||ii.registryExternalEventHandlers({resize:Li,leavepictureinpicture:Do})),e.interactiveContainer&&((kt=nt().parentElement)==null||kt.insertBefore(e.interactiveContainer,nt().nextSibling)),()=>{window.clearTimeout(Ln),window.clearTimeout(ao),window.clearTimeout(Go),window.clearTimeout(jo),ft(),ii==null||ii.dispose().catch(_i=>{yt({message:String(_i)})}),Xc(Ft)}});let at=()=>{let ye=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!it()?r(xo):it(),kt=ye.getRootNode(),_i=kt instanceof ShadowRoot?kt.host:kt,ki=Ze()instanceof HTMLElement&&Ze().contains(_i);return e.uiConfig.allowChangingFullscreenTarget&&Ze()&&ki?Ze():ye},jt=()=>Mt(this,null,function*(){bs()?(yield Yc(document),yt({message:"exit fullscreen"})):(yt({message:"request fullscreen"}),yield jc(at()))}),mi=()=>{Mo(),X.set(!1)},eo=ye=>{w()||(ye.preventDefault(),X.set(!0),Pn.set({left:ye.clientX,top:ye.clientY}))};function to(){Xo.set(!0),It||Ti(e.uiConfig.controls.hideTimeoutCursor)}function Vi(){It||(Ki.set(!0),Ti(e.uiConfig.controls.hideTimeoutCursor))}function wi(){Xo.set(!1),B(Mi,!1),B(Jo,!1),Zn=!1,e.store.actions.internal.releaseCamera(),Ti(e.uiConfig.controls.hideTimeout)}function io(ye){return ye?ye.offsetTop+io(ye.offsetParent):0}function Ii(ye){return ye?ye.offsetLeft+Ii(ye.offsetParent):0}function lo(ye){if(V()&&Oi){let kt=ye.currentTarget,_i=io(kt),ki=Ii(kt),co=ye.pageX-ki,vi=ye.pageY-_i,{left:ke,bottom:Lt,right:Xt}=V(),Si=Xt-ke;return co>=ke-Si&&vi<=Lt+Si}}function Qi(ye){if(r(xo)){let kt=io(ye.currentTarget),_i=H().height,ki=ye.pageY-kt;if(lo(ye)){B(Mi,!1);return}ki<40?B(Mi,!0):ki>_i-40?B(Jo,!0):(B(Mi,!1),v()||B(Jo,!1))}}function yn(ye){Qi(ye),r(cr)||Ti(e.uiConfig.controls.hideTimeoutCursor),Y()&&Zn&&$n&&e.store.actions.internal.moveCameraFocusPX($n.clientX-ye.clientX,$n.clientY-ye.clientY,ye.timeStamp-$n.timeStamp),$n=ye}let Jn=ye=>{ye.preventDefault(),ye.button===0&&(Zn=!0,e.store.actions.internal.holdCamera()),Ti(e.uiConfig.controls.hideTimeoutCursor)},pr=ye=>{ye.preventDefault(),ye.button===0&&($n=ye,Zn=!1,e.store.actions.internal.releaseCamera()),Ti(e.uiConfig.controls.hideTimeoutCursor)},er=ye=>{var kt;if(ye.preventDefault(),O()||v()){mi();return}if(!(E()&&!pi)){if(r(ur))return Pr();if((kt=De())==null||kt.focus(),!dt()){e.firstStart(),Ti(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||J()!==Jm.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ti(e.uiConfig.controls.hideTimeoutCursor)}},Mr=ye=>{mi(),Po.set(!0),Ti(e.uiConfig.controls.hideTimeout),ye&&Xn(e.uiConfig.controls.hideHotKeyHelpers,ye)},fr=()=>{var ye,kt;mi(),(ye=e.store.callbacks)!=null&&ye.onOpenHotKeyMap?(kt=e.store.callbacks)==null||kt.onOpenHotKeyMap(re()):Ao.update(_i=>!_i)},xn=()=>{Po.set(!0)},Nn=e.store.ui.contextMenu.openedByBtnKeyboard$,en=e.store.ui.contextMenu.btnRef$,tn=ee(void 0),tr=e.store.ui.contextMenu.openedByHotKey$,Lr=e.store.ui.contextMenu.lastActiveElem$;ze(()=>{Uo.set(r(Zo))}),ze(()=>{B(zo,fe(r(Vo)&&J()!==Jm.PlaybackState.PLAYING)),r(Vo)||wt(()=>B(Vo,!0))}),ze(()=>{bo.set((r(zo)||E()||v()||Z()||me()||de()||Le())&&!r(cr)&&(a()==="video"||a()==="ads")&&!l())}),ze(()=>{!Z()&&r(Yn)&&!u()&&Ti(e.uiConfig.controls.hideTimeoutCursor),wt(()=>B(Yn,fe(Z())))}),ze(()=>{r(st),v(),Me(),wt(()=>sl(r(st),v(),Me()))}),ze(()=>{r(tn),O(),ve(),wt(()=>sl(r(tn),O(),ve()))}),ze(()=>{let ye=le();ye&&(O(),wt(()=>rl(ye,O(),Nn)))}),ze(()=>{r(tn),O(),Ae(),wt(()=>sl(r(tn),O(),Ae()))}),ze(()=>{let ye=se();ye&&(O(),wt(()=>Xh(ye,O(),tr)))}),ze(()=>{var ye;!N()&&y()&&(wt(()=>zi.set(!1)),(ye=De())==null||ye.focus())}),ze(()=>{w()&&mi()});let Vr=F("video360");var mr=j3();Ct("blur",Ws,mi);var wo=pe(mr);wo.__mousemove=yn,wo.__dblclick=[H3,_n,yt,jt,Ti,e];var Bn=h(wo);let ir=m(()=>a()==="ads"),Rr=m(()=>r(ur)?Pr:void 0);mt(gf(Bn,{toggleFullscreen:jt,hideContextMenu:mi,showHotKeyHelpers:Mr,showKeyMap:fr,get isAds(){return r(ir)},get fakePlayButtonHandler(){return r(Rr)},get nextButtonActive(){return ge()},get prevButtonActive(){return j()},children:(ye,kt)=>{var _i=Q3(),ki=pe(_i);Ta(ki,{get hideCursor(){return r(Dn)},onClick:er,onContextMenu:eo,onMouseDown:Jn,onMouseUp:pr,get videoContainer(){return nt()},set videoContainer(ke){nt(ke)}});var co=M(ki,2);Zs(co,()=>"slot",!1,(ke,Lt)=>{Te(ke,null,{name:Ca})});var vi=M(co,2);Ys(vi,Re,ke=>{var Lt=K3(),Xt=pe(Lt);let Si=m(()=>a()!=="thumb"||l()||It&&e.autoplay);xa(Xt,{get hidden(){return r(Si)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var oi=M(Xt,2);Xm(oi,{});var Dr=M(oi,2);{var oo=Ke=>{let si=m(()=>{var nn;return(nn=e.live)==null?void 0:nn.startTime});qd(Ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(si)}})};R(Dr,Ke=>{a()==="LiveWaitingStart"&&Ke(oo)})}var Nr=M(Dr,2);{var As=Ke=>{wa(Ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Nr,Ke=>{a()==="LiveWaitingRecover"&&Ke(As)})}var on=M(Nr,2);{var Ea=Ke=>{wa(Ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(on,Ke=>{a()==="LiveWaitingRecord"&&Ke(Ea)})}var Ms=M(on,2);{var Cl=Ke=>{var si=U3();let nn;var Ds=h(si);cd(Ds,{get adsSlotId(){return ht()},get adsParams(){return tt()},get adsPreviewParam(){return vt()},get adsAutoplayParam(){return Pt()},get duration(){return Yt()}}),g(si),k(rn=>nn=te(si,1,"ads-container svelte-jtgjmv",null,nn,rn),[()=>({hidden:a()!=="ads"})]),b(Ke,si)};R(Ms,Ke=>{e.showAds&&dt()&&Ke(Cl)})}var Pa=M(Ms,2);{var Tl=Ke=>{let si=m(()=>!ct()&&e.showAutoplayNext&&C());ff(Ke,{get title(){return Ie()},get thumb(){return ae()},get isHide(){return r(si)},clickCloseIcon:()=>B(qo,!0)})};R(Pa,Ke=>{r(Er)&&Ie()&&ae()&&Ke(Tl)})}var Ls=M(Pa,2);{var Il=Ke=>{let si=m(()=>!p());Cm(Ke,{get title(){return e.title},get isHidden(){return r(si)}})};R(Ls,Ke=>{r(kr)&&Ke(Il)})}var Aa=M(Ls,2);{var or=Ke=>{let si=m(()=>a()==="video"&&p());Fd(Ke,{get isShifted(){return r(si)}})};R(Aa,Ke=>{Y()&&Ke(or)})}var Vs=M(Aa,2);{var xt=Ke=>{var si=z3(),nn=h(si);ld(nn,{"aria-label":Vr}),g(si),b(Ke,si)};R(Vs,Ke=>{ie()&&Ke(xt)})}var bt=M(Vs,2);{var uo=Ke=>{Ud(Ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return je()}})};R(bt,Ke=>{de()&&Ke(uo)})}var Wo=M(bt,2);{var po=Ke=>{ya(Ke,{get shifted(){return p()},get captions(){return G()},get position(){return K()},get playerSize(){return H()}})};R(Wo,Ke=>{oe().value!=="off"&&Ke(po)})}var ri=M(Wo,2);{var Hi=Ke=>{var si=q3();si.__contextmenu=eo,si.__click=[F3,O,X,v,Ho,mi];var nn=h(si);zd(nn,{}),g(si),b(Ke,si)};R(ri,Ke=>{l()&&Ke(Hi)})}var ds=M(ri,2);{var kl=Ke=>{let si=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),nn=m(()=>a()==="ads"),Ds=m(()=>e.canRewindLive&&Ve()!==0);Hd(Ke,{get bottomHidden(){return r(si)},get bottomNoSmooth(){return I()},get showControls(){return p()},get isAds(){return r(nn)},get canRewindLive(){return r(Ds)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Wt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Gt()},get nextButtonActive(){return ge()},get prevButtonActive(){return j()},get isOneVideoPlaylist(){return He()},customFullscreenSupported:_n,toggleFullscreen:jt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(gn)},set playerControlsWrapperRef(rn){B(gn,fe(rn))},get playerControlsRef(){return r(Mn)},set playerControlsRef(rn){B(Mn,fe(rn))}})};R(ds,Ke=>{dt()&&Ke(kl)})}var sc=M(ds,2);{var Ou=Ke=>{var si=W3(),nn=h(si);let Ds=m(()=>{var rn;return(rn=r(Mn))==null?void 0:rn.clientHeight});Gd(nn,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Ds)},returnFocus:()=>{var rn;return(rn=De())==null?void 0:rn.focus()},get ref(){return r(st)},set ref(rn){B(st,fe(rn))}}),g(si),b(Ke,si)};R(sc,Ke=>{!de()&&a()!=="ads"&&Ke(Ou)})}var ac=M(sc,2);let Hu=m(()=>!r(bn));fd(ac,{get isLive(){return Ne()},get isHidden(){return r(Hu)},get isPlaying(){return et()},get position(){return K()},get duration(){return Ve()}});var lc=M(ac,2);ym(lc,{data:hn});var Rs=M(lc,2);uf(Rs,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ke;return(Ke=De())==null?void 0:Ke.focus()},get visible(){return O()},get playerContainerRef(){return r(xo)},get controlsContainerRef(){return r(gn)},get position(){return xe()},get menuElementRef(){return r(tn)},set menuElementRef(Ke){B(tn,fe(Ke))}});var dc=M(Rs,2);{var cc=Ke=>{jd(Ke,{onClose:jn,onSelectAutoQuality:()=>{so("auto"),jn()}})};R(dc,Ke=>{r(Vn)&&Ke(cc)})}var El=M(dc,2);{var Fu=Ke=>{ua(Ke,{})};R(El,Ke=>{r(Rn)&&Ke(Fu)})}var Pl=M(El,2);{var Al=Ke=>{bf(Ke,{})};R(Pl,Ke=>{we()&&Ke(Al)})}var uc=M(Pl,2);{var Uu=Ke=>{gd(Ke,{})};R(uc,Ke=>{Be()&&Ke(Uu)})}b(ke,Lt)}),b(ye,_i)},$$slots:{default:!0}}),ye=>De(ye),()=>De());var ut=M(Bn,2);mt(ut,ye=>B(Zo,ye),()=>r(Zo)),g(wo),mt(wo,ye=>B(xo,ye),()=>r(xo));var Ut=M(wo,2);{var Ri=ye=>{var kt=G3();b(ye,kt)};R(Ut,ye=>{Xe()&&ye(Ri)})}Ct("mouseenter",wo,to),Ct("mouseleave",wo,wi),Ct("click",wo,xn,!0),Ct("focusin",wo,Vi,!0),b(t,mr),z(),o()}lt(["mousemove","dblclick","contextmenu","click"]);var Es=require("@vkontakte/videoplayer-core/es2015"),t0=require("@vkontakte/videoplayer-shared/es2015");var Z3=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),X3=L("<div><!></div>"),J3={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
343
+ }`};function Jm(t,e){U(e,!0),K(t,F3);let[i,o]=Ne(),n=()=>S(s,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Ie(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:b}}=Gt(),p=0,$=J(null),x=J(!1);Fe(()=>{D($,me(n()?Tr:ls))}),Fe(()=>{D($,me(a()?ks:null))}),Fe(()=>{if(u)return p=window.setTimeout(()=>{p=0,a()&&r($)===ks&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D($,null)},r($)!==ks?f:b),()=>{p&&(window.clearTimeout(p),p=0)}}),Fe(()=>{n()&&!r(x)&&(D(x,!0),D($,null))});var _=Oe(),C=fe(_);{var T=k=>{var P=Oe(),A=fe(P);Ys(A,()=>r($),I=>{var V=H3(),q=h(V),G=h(q);let H=v(()=>a()==="prev");Ai(G,()=>r($),(Z,re)=>{re(Z,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(H)}})}),g(q),g(V),E(()=>st(q,`animation-duration: ${r($)!==ks?f:b}ms`)),y(I,V)}),y(k,P)};R(C,k=>{r($)&&u&&k(T)})}y(t,_),z(),o()}var U3=L('<div><div data-testid="video-container"></div></div>'),z3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
344
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Ta(t,e){U(e,!0),K(t,z3);let[i,o]=Ne(),n=()=>S(f,"$rotateAlpha",i),a=()=>S(b,"$playerSize",i),s=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),l=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:b},state:{isPlaying$:p}}=Ie(),{isSmoothVideoRotate:$}=Gt(),x=v(()=>l()&&n()%180?a().height/a().width:1);var _=U3();let C;_.__contextmenu=function(...k){var P;(P=e.onContextMenu)==null||P.apply(this,k)},_.__mousedown=function(...k){var P;(P=e.onMouseDown)==null||P.apply(this,k)},_.__mouseup=function(...k){var P;(P=e.onMouseUp)==null||P.apply(this,k)},_.__click=function(...k){var P;(P=e.onClick)==null||P.apply(this,k)},_.__dblclick=function(...k){var P;(P=e.onDblClick)==null||P.apply(this,k)};var T=h(_);ee(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!$}),mt(T,k=>l(k),()=>l()),g(_),E(k=>{C=ee(_,1,"video-wrapper svelte-1czns9r",null,C,k),st(T,`transform: rotate(${n()}deg) scale(${r(x)})`),De(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),y(t,_),z(),o()}lt(["contextmenu","mousedown","mouseup","click","dblclick"]);var q3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},W3=L("<div><!></div>"),K3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Q3=L("<div><!></div>"),G3=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),j3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Y3=L("<!> <!> <!>",1),Z3=L('<div class="blocked svelte-jtgjmv"></div>'),X3=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),J3={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function tv(t,e){U(e,!0),K(t,J3);let[i,o]=Ne(),n=()=>S(un,"$notificationsToShow$",i),a=()=>S(Hi,"$playerPhase",i),s=()=>S(ti,"$isLoaderVisible",i),d=()=>S(ni,"$adPlaybackState",i),l=()=>S(Nt,"$crashed",i),u=()=>S(No,"$isInteractiveTime$",i),f=()=>S(Ot,"$settingsMenuVisible",i),b=()=>S(hi,"$isInteractiveExpectation$",i),p=()=>S(bt,"$controlsVisible",i),$=()=>S(Qi,"$touched",i),x=()=>S(sr,"$graphIsOpened$",i),_=()=>S(Ki,"$isFullscreen",i),C=()=>S(kr,"$autoplayNextEnabled$",i),T=()=>S(vt,"$postrollPassed",i),k=()=>S(di,"$isEnded$",i),P=()=>S(Ho,"$cursorInside",i),A=()=>S(Hn,"$isControlsAvailable",i),I=()=>S(Tn,"$fakeIsPlaying$",i),V=()=>S(mn,"$bottomNoSmooth",i),q=()=>S(Po,"$interactiveTimeIndicator",i),G=()=>S(Ko,"$playerSize",i),H=()=>S(fi,"$is3DVideo",i),Z=()=>S(To,"$contextMenuVisible$",i),re=()=>S(Xt,"$playbackState$",i),X=()=>S(ko,"$hotKeyMapData",i),ce=()=>S(ln,"$scrubbingInProgress",i),ue=()=>S(Sn,"$volumeChangingInProgress",i),Ve=()=>S(Fi,"$chromecastConnected$",i),Me=()=>S(Qo,"$controlsTimeoutActive",i),_e=()=>S(_o,"$settingsMenuOpenedByKeyboard",i),ae=()=>S(Uo,"$contextMenuOpenedByKeyboard$",i),Le=()=>S(Lr,"$contextMenuButtonRef$",i),ne=()=>S(gr,"$contextMenuOpenedByHotKey$",i),B=()=>S(Vr,"$contextMenuLastActiveElem$",i),$e=()=>S(Rt,"$isFullscreenOpenedByKeyboard",i),de=()=>S(et,"$language$",i),Qe=()=>S(Tt,"$icon3DVideoVisible",i),te=()=>S(pi,"$chromecastDeviceName$",i),ve=()=>S(nr,"$currentSubtitle$",i),Y=()=>S(Io,"$currentSubtitleCaptions$",i),ie=()=>S(tt,"$position$",i),He=()=>S(ei,"$duration$",i),Ye=()=>S(gi,"$isLive$",i),ye=()=>S(Je,"$isPlaying$",i),Se=()=>S(to,"$contextMenuPosition$",i),Re=()=>S(Eo,"$showHotKeyMap",i),Ze=()=>S(j,"$debugPanelVisible",i),ut=()=>S(rr,"$userActionsDisabled$",i),pt=m(e,"videoContainer",15),at=m(e,"adsSlotId",3,void 0),Et=m(e,"adsParams",3,void 0),$t=m(e,"adsPreviewParam",3,void 0),Jt=m(e,"adsAutoplayParam",3,void 0),li=m(e,"duration",3,void 0),At=m(e,"logoTargetUrl",3,""),Dt=m(e,"showNextPrevButtons",3,!1),O=m(e,"nextButtonActive",3,!1),be=m(e,"prevButtonActive",3,!1),se=m(e,"endScreenVideoTitle",3,void 0),Be=m(e,"endScreenVideoThumb",3,void 0),We=m(e,"isOneVideoPlaylist",3,!1),je=m(e,"shadowRootContainer",3,void 0),ft=m(e,"outerContainerRef",3,void 0),Xe=m(e,"playerStarted",3,!1),it=m(e,"fullScreenTarget",3,void 0),ot=m(e,"showMiniTimer",3,!1),Ke=m(e,"showEndScreen",3,!0),_t=m(e,"keyboardControls",15),qt=e.store.getLogger().createComponentLog("Root component"),et=e.store.interfaceLanguage$,Xt=e.store.state.playbackState$,ni=e.store.ads.playbackState,tt=e.store.state.positionWithScrubbing$,ei=e.store.state.duration$,Hi=e.store.playerPhase,Ki=e.store.ui.isFullscreen,Rt=e.store.ui.isFullscreenOpenedByKeyboard,bt=e.store.ui.controlsVisible,Ot=e.store.ui.settingsMenu.visible$,_o=e.store.ui.settingsMenu.openedByBtnKeyboard$,ln=e.store.ui.scrubbingInProgress,Sn=e.store.ui.volumeChangingInProgress,To=e.store.ui.contextMenu.visible$,j=e.store.ui.debugPanelVisible,ti=e.store.state.isLoaderVisible,di=e.store.state.isEnded$,Fi=e.store.state.chromecastConnected$,pi=e.store.state.chromecastDeviceName$,vt=e.store.ads.postrollPassed,gi=e.store.state.isLive$,Je=e.store.state.isPlaying$,Nt=e.store.state.crashed$,lo=e.store.webApi.annotationsApi,ri=e.store.webApi.pictureInPictureApi,nr=e.store.state.currentSubtitle$,Io=e.store.state.currentSubtitleCaptions$,Ko=e.store.ui.playerSize,fi=e.store.ui.is3DVideo,Tt=e.store.ui.icon3DVideoVisible,ki=e.store.state.isInteractive,No=e.store.state.isInteractiveTime$,hi=e.store.state.isInteractiveExpectation$,Bo=e.store.state.hasInteractiveBranches,Qi=e.store.ui.touched,ko=e.store.ui.modals.hotKeyMap.data,Eo=e.store.ui.modals.hotKeyMap.show,On=e.store.ui.overlayContainer$,Po=e.store.ui.controls.interactiveTimeIndicator,Cn=e.store.state.showInteractiveTimeIndicator,to=e.store.ui.contextMenu.position$,Do=e.store.actions.internal.setQuality,dn=e.store.actions.internal.closeSettingsMenu,kr=e.store.ui.autoplayNextEnabled$,rr=e.store.ui.userActionsDisabled,Hn=e.store.ui.isControlsAvailable,{fakeIsPlaying$:Tn,notifications$:Fn,graphIsOpened$:sr}=ho(),co=J(void 0),Oo=J(void 0),In=J(void 0),nt=J(void 0),kn,Un,cn;ko.set(jh());let{closeNotification:ar,notificationsToShow$:un}=Fn,pn=v(()=>!!n().slow_video),fn=()=>ar("slow_video"),io=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Gi=J(void 0),mn=le(!1),zn,Qo=le(!1),vn=le(),Ho=le(!1),bo=J(!1),Ui=J(!1),qn=J(!1),uo=J(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),En=v(()=>u()&&!f()&&!(r(bo)||r(Ui))&&!(r(qn)&&!b())),Wn=!0,gn=v(()=>e.uiConfig.features.thumbTimer&&ot()&&a()==="video"&&!p()&&!l()&&!ki&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Er=v(()=>a()==="video"&&!x()&&_()),Go=J(!1),Pr=v(()=>(Ke()||e.showAutoplayNext&&C())&&!!se()&&!!Be()&&(e.showAds&&T()||!e.showAds)&&k()&&!l()&&!r(Go)),Kn=v(()=>P()&&!(p()||r(Pr))&&!u()&&A()),Qn=J(!1),lr=v(()=>I()!==null),{toggle:Ar}=Tn,Pn=!1,ii=null;ri==null||ri.setContext(Ql());let dr=()=>{e.autoplay&&!ki&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ei(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:dr});let Mr=()=>{window.clearTimeout(kn),Qo.set(!1)},Fo=()=>{window.clearTimeout(Un),vn.set(null)},Ei=Ce=>{Mr(),Qo.set(!0),kn=window.setTimeout(()=>Qo.set(!1),Ce);let Vt=Ce-100;zn=window.setTimeout(()=>{V()&&mn.set(!1)},Vt>0?Vt:Ce)},cr=(Ce,Vt)=>{Fo(),vn.set(Vt),Un=window.setTimeout(()=>vn.set(null),Ce)},gt=fi.subscribe(Ce=>{Tt.set(Ce),Ce&&(window.clearTimeout(cn),cn=window.setTimeout(()=>Tt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Wt=()=>St(this,null,function*(){var Vt,$i,yi,bi;let Ce=$s();if(Ce){let Ee=ld(),yt=rt();Ce=Ee===yt||Ee===je()}if(Ce){Ei(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ri==null?void 0:ri.remove()}catch(Ee){qt({message:String(Ee)})}}Ki.set(Ce),e.store.getAdmanWrapper().setFullscreen(Ce),_()?($i=(Vt=e.store.callbacks)==null?void 0:Vt.onFullscreenEnter)==null||$i.call(Vt):(bi=(yi=e.store.callbacks)==null?void 0:yi.onFullscreenExit)==null||bi.call(yi)}),Li=Ce=>{let{width:Vt,height:$i}=Ce.target;Ko.set({width:Vt,height:$i})},Ao=()=>{let{width:Ce,height:Vt}=r(co).getBoundingClientRect();Ko.set({width:Ce,height:Vt})};Qt(()=>{var Vt;return Zc(Wt),e.uiConfig.features.annotationsInside&&(lo==null||lo.init(r(co))),sa(ri)&&(ri==null||ri.assignPlayerContainer(r(co)),ri==null||ri.registryExternalEventHandlers({resize:Li,leavepictureinpicture:Ao})),e.interactiveContainer&&((Vt=pt().parentElement)==null||Vt.insertBefore(e.interactiveContainer,pt().nextSibling)),()=>{window.clearTimeout(kn),window.clearTimeout(zn),window.clearTimeout(Un),window.clearTimeout(cn),gt(),ri==null||ri.dispose().catch($i=>{qt({message:String($i)})}),Xc(Wt)}});let rt=()=>{let Ce=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ft()?r(co):ft(),Vt=Ce.getRootNode(),$i=Vt instanceof ShadowRoot?Vt.host:Vt,yi=it()instanceof HTMLElement&&it().contains($i);return e.uiConfig.allowChangingFullscreenTarget&&it()&&yi?it():Ce},Yt=()=>St(this,null,function*(){$s()?(yield Yc(document),qt({message:"exit fullscreen"})):(qt({message:"request fullscreen"}),yield jc(rt()))}),_i=()=>{dn(),To.set(!1)},oo=Ce=>{x()||(Ce.preventDefault(),To.set(!0),to.set({left:Ce.clientX,top:Ce.clientY}))};function no(){Ho.set(!0),ki||Ei(e.uiConfig.controls.hideTimeoutCursor)}function Vi(){ki||(mn.set(!0),Ei(e.uiConfig.controls.hideTimeoutCursor))}function Ti(){Ho.set(!1),D(Ui,!1),D(bo,!1),Pn=!1,e.store.actions.internal.releaseCamera(),Ei(e.uiConfig.controls.hideTimeout)}function ji(Ce){return Ce?Ce.offsetTop+ji(Ce.offsetParent):0}function si(Ce){return Ce?Ce.offsetLeft+si(Ce.offsetParent):0}function zi(Ce){if(q()&&Cn){let Vt=Ce.currentTarget,$i=ji(Vt),yi=si(Vt),bi=Ce.pageX-yi,Ee=Ce.pageY-$i,{left:yt,bottom:Zt,right:Ii}=q(),ci=Ii-yt;return bi>=yt-ci&&Ee<=Zt+ci}}function hn(Ce){if(r(co)){let Vt=ji(Ce.currentTarget),$i=G().height,yi=Ce.pageY-Vt;if(zi(Ce)){D(Ui,!1);return}yi<40?D(Ui,!0):yi>$i-40?D(bo,!0):(D(Ui,!1),f()||D(bo,!1))}}function ur(Ce){hn(Ce),r(En)||Ei(e.uiConfig.controls.hideTimeoutCursor),H()&&Pn&&ii&&e.store.actions.internal.moveCameraFocusPX(ii.clientX-Ce.clientX,ii.clientY-Ce.clientY,Ce.timeStamp-ii.timeStamp),ii=Ce}let Gn=Ce=>{Ce.preventDefault(),Ce.button===0&&(Pn=!0,e.store.actions.internal.holdCamera()),Ei(e.uiConfig.controls.hideTimeoutCursor)},pr=Ce=>{Ce.preventDefault(),Ce.button===0&&(ii=Ce,Pn=!1,e.store.actions.internal.releaseCamera()),Ei(e.uiConfig.controls.hideTimeoutCursor)},fr=Ce=>{Ce.preventDefault(),Wn&&(qt({message:"double click on video"}),Yt(),Ei(e.uiConfig.controls.hideTimeoutCursor))},mr=Ce=>{var Vt;if(Ce.preventDefault(),Z()||f()){_i();return}if(!(k()&&!Bo)){if(r(lr))return Ar();if((Vt=_t())==null||Vt.focus(),!Xe()){e.firstStart(),Ei(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||re()!==ev.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ei(e.uiConfig.controls.hideTimeoutCursor)}},vr=Ce=>{_i(),Qi.set(!0),Ei(e.uiConfig.controls.hideTimeout),Ce&&cr(e.uiConfig.controls.hideHotKeyHelpers,Ce)},jn=()=>{var Ce,Vt;_i(),(Ce=e.store.callbacks)!=null&&Ce.onOpenHotKeyMap?(Vt=e.store.callbacks)==null||Vt.onOpenHotKeyMap(X()):Eo.update($i=>!$i)},Yn=()=>{Qi.set(!0)},Uo=e.store.ui.contextMenu.openedByBtnKeyboard$,Lr=e.store.ui.contextMenu.btnRef$,zo=J(void 0),gr=e.store.ui.contextMenu.openedByHotKey$,Vr=e.store.ui.contextMenu.lastActiveElem$;Fe(()=>{On.set(r(Gi))}),Fe(()=>{D(qn,me(r(uo)&&re()!==ev.PlaybackState.PLAYING)),r(uo)||Ct(()=>D(uo,!0))}),Fe(()=>{bt.set((r(qn)||k()||f()||ce()||ue()||Ve()||Me())&&!r(En)&&(a()==="video"||a()==="ads")&&!l()&&A())}),Fe(()=>{!ce()&&r(Qn)&&!u()&&Ei(e.uiConfig.controls.hideTimeoutCursor),Ct(()=>D(Qn,me(ce())))}),Fe(()=>{r(nt),f(),_e(),Ct(()=>cl(r(nt),f(),_e()))}),Fe(()=>{r(zo),Z(),ae(),Ct(()=>cl(r(zo),Z(),ae()))}),Fe(()=>{let Ce=Le();Ce&&(Z(),Ct(()=>dl(Ce,Z(),Uo)))}),Fe(()=>{r(zo),Z(),ne(),Ct(()=>cl(r(zo),Z(),ne()))}),Fe(()=>{let Ce=B();Ce&&(Z(),Ct(()=>Jh(Ce,Z(),gr)))}),Fe(()=>{var Ce;!$e()&&_()&&(Ct(()=>Rt.set(!1)),(Ce=_t())==null||Ce.focus())}),Fe(()=>{x()&&_i()});let Rr=F("video360");var Nr=X3();kt("blur",Ws,_i);var ro=fe(Nr);ro.__mousemove=ur;var An=h(ro);let Br=v(()=>a()==="ads"),dt=v(()=>r(lr)?Ar:void 0);mt(hf(An,{toggleFullscreen:Yt,hideContextMenu:_i,showHotKeyHelpers:vr,showKeyMap:jn,get isAds(){return r(Br)},get fakePlayButtonHandler(){return r(dt)},get nextButtonActive(){return O()},get prevButtonActive(){return be()},children:(Ce,Vt)=>{var $i=Y3(),yi=fe($i);Ta(yi,{get hideCursor(){return r(Kn)},onClick:mr,onContextMenu:oo,onMouseDown:Gn,onMouseUp:pr,onDblClick:fr,get videoContainer(){return pt()},set videoContainer(yt){pt(yt)}});var bi=M(yi,2);Zs(bi,()=>"slot",!1,(yt,Zt)=>{ke(yt,null,{name:Ca})});var Ee=M(bi,2);Ys(Ee,de,yt=>{var Zt=j3(),Ii=fe(Zt);let ci=v(()=>a()!=="thumb"||l()||ki&&e.autoplay);xa(Ii,{get hidden(){return r(ci)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Qr=M(Ii,2);Jm(Qr,{});var qi=M(Qr,2);{var Zn=Ue=>{let ui=v(()=>{var Yo;return(Yo=e.live)==null?void 0:Yo.startTime});zd(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ui)}})};R(qi,Ue=>{a()==="LiveWaitingStart"&&Ue(Zn)})}var Ms=M(qi,2);{var Xn=Ue=>{wa(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Ms,Ue=>{a()==="LiveWaitingRecover"&&Ue(Xn)})}var Ea=M(Ms,2);{var kl=Ue=>{wa(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ea,Ue=>{a()==="LiveWaitingRecord"&&Ue(kl)})}var Pa=M(Ea,2);{var Aa=Ue=>{var ui=W3();let Yo;var Ns=h(ui);dd(Ns,{get adsSlotId(){return at()},get adsParams(){return Et()},get adsPreviewParam(){return $t()},get adsAutoplayParam(){return Jt()},get duration(){return li()}}),g(ui),E($o=>Yo=ee(ui,1,"ads-container svelte-jtgjmv",null,Yo,$o),[()=>({hidden:a()!=="ads"})]),y(Ue,ui)};R(Pa,Ue=>{e.showAds&&Xe()&&Ue(Aa)})}var Ma=M(Pa,2);{var El=Ue=>{let ui=v(()=>!Ke()&&e.showAutoplayNext&&C());mf(Ue,{get title(){return se()},get thumb(){return Be()},get isHide(){return r(ui)},clickCloseIcon:()=>D(Go,!0)})};R(Ma,Ue=>{r(Pr)&&se()&&Be()&&Ue(El)})}var Ls=M(Ma,2);{var La=Ue=>{let ui=v(()=>!p());Tm(Ue,{get title(){return e.title},get isHidden(){return r(ui)}})};R(Ls,Ue=>{r(Er)&&Ue(La)})}var ct=M(Ls,2);{var wt=Ue=>{let ui=v(()=>a()==="video"&&p());Hd(Ue,{get isShifted(){return r(ui)}})};R(ct,Ue=>{H()&&Ue(wt)})}var so=M(ct,2);{var jo=Ue=>{var ui=K3(),Yo=h(ui);ad(Yo,{"aria-label":Rr}),g(ui),y(Ue,ui)};R(so,Ue=>{Qe()&&Ue(jo)})}var ao=M(so,2);{var mi=Ue=>{Fd(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return te()}})};R(ao,Ue=>{Ve()&&Ue(mi)})}var Ni=M(ao,2);{var Vs=Ue=>{ya(Ue,{get shifted(){return p()},get captions(){return Y()},get position(){return ie()},get playerSize(){return G()}})};R(Ni,Ue=>{ve().value!=="off"&&Ue(Vs)})}var Va=M(Ni,2);{var Ou=Ue=>{var ui=Q3();ui.__contextmenu=oo,ui.__click=[q3,Z,To,f,Ot,_i];var Yo=h(ui);Ud(Yo,{}),g(ui),y(Ue,ui)};R(Va,Ue=>{l()&&Ue(Ou)})}var nc=M(Va,2);{var Hu=Ue=>{let ui=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Yo=v(()=>a()==="ads"),Ns=v(()=>e.canRewindLive&&He()!==0);Od(Ue,{get bottomHidden(){return r(ui)},get bottomNoSmooth(){return V()},get showControls(){return p()},get isAds(){return r(Yo)},get canRewindLive(){return r(Ns)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return At()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Dt()},get nextButtonActive(){return O()},get prevButtonActive(){return be()},get isOneVideoPlaylist(){return We()},customFullscreenSupported:Wn,toggleFullscreen:Yt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Oo)},set playerControlsWrapperRef($o){D(Oo,me($o))},get playerControlsRef(){return r(In)},set playerControlsRef($o){D(In,me($o))}})};R(nc,Ue=>{Xe()&&Ue(Hu)})}var rc=M(nc,2);{var Fu=Ue=>{var ui=G3(),Yo=h(ui);let Ns=v(()=>{var $o;return($o=r(In))==null?void 0:$o.clientHeight});Qd(Yo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Ns)},returnFocus:()=>{var $o;return($o=_t())==null?void 0:$o.focus()},get ref(){return r(nt)},set ref($o){D(nt,me($o))}}),g(ui),y(Ue,ui)};R(rc,Ue=>{!Ve()&&a()!=="ads"&&Ue(Fu)})}var sc=M(rc,2);let Uu=v(()=>!r(gn));pd(sc,{get isLive(){return Ye()},get isHidden(){return r(Uu)},get isPlaying(){return ye()},get position(){return ie()},get duration(){return He()}});var Rs=M(sc,2);xm(Rs,{data:vn});var ac=M(Rs,2);pf(ac,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ue;return(Ue=_t())==null?void 0:Ue.focus()},get visible(){return Z()},get playerContainerRef(){return r(co)},get controlsContainerRef(){return r(Oo)},get position(){return Se()},get menuElementRef(){return r(zo)},set menuElementRef(Ue){D(zo,me(Ue))}});var Pl=M(ac,2);{var lc=Ue=>{Gd(Ue,{onClose:fn,onSelectAutoQuality:()=>{Do("auto"),fn()}})};R(Pl,Ue=>{r(pn)&&Ue(lc)})}var dc=M(Pl,2);{var cc=Ue=>{ua(Ue,{})};R(dc,Ue=>{r(io)&&Ue(cc)})}var Ra=M(dc,2);{var uc=Ue=>{$f(Ue,{})};R(Ra,Ue=>{Re()&&Ue(uc)})}var zu=M(Ra,2);{var pc=Ue=>{vd(Ue,{})};R(zu,Ue=>{Ze()&&Ue(pc)})}y(yt,Zt)}),y(Ce,$i)},$$slots:{default:!0}}),Ce=>_t(Ce),()=>_t());var Kt=M(An,2);mt(Kt,Ce=>D(Gi,Ce),()=>r(Gi)),g(ro),mt(ro,Ce=>D(co,Ce),()=>r(co));var Ri=M(ro,2);{var Mo=Ce=>{var Vt=Z3();y(Ce,Vt)};R(Ri,Ce=>{ut()&&Ce(Mo)})}kt("mouseenter",ro,no),kt("mouseleave",ro,Ti),kt("click",ro,Yn,!0),kt("focusin",ro,Vi,!0),y(t,Nr),z(),o()}lt(["mousemove","contextmenu","click"]);var Ps=require("@vkontakte/videoplayer-core/es2015"),o0=require("@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;
345
345
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
346
346
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
347
347
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -357,8 +357,8 @@ Try switching the\xA0quality to\xA0Auto.`},Uh=O_;var ns=new Map;ns.set(el.Interf
357
357
  100% {
358
358
  opacity: 0;
359
359
  }
360
- }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function wu(t,e){U(e,!0),W(t,J3);let i=f(e,"seekStep",3,0),o=ee(!1),n=0,a=0,s=ee(fe(i())),d=$=>{$.stopPropagation(),a+=1,B(s,i()*(a-1)),a===1?e.handleSingleFirstClick($):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,B(o,!1)},300)};In(()=>{window.clearTimeout(n)});var l=X3();l.__click=d;var u=h(l);{var v=$=>{var p=Z3(),_=pe(p),w=M(_,2),y=h(w),C=h(y),T=M(C,2),E=M(T,2);g(y);var P=M(y,2),A=h(P,!0);g(P),g(w),k(I=>{var V,H,Y,O;te(_,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),te(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),te(T,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),te(E,1,`triangle ${(O=e.side)!=null?O:""}`,"svelte-nhq2ld"),he(A,I)},[()=>F("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b($,p)};R(u,$=>{r(o)&&$(v)})}g(l),k(()=>{var $;return te(l,1,`double-click-area ${($=e.side)!=null?$:""}`,"svelte-nhq2ld")}),b(t,l),z()}lt(["click"]);var ex=(t,e,i)=>{e(!1),i()},tx=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),ix={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 tv(t,e){U(e,!0),W(t,ix);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,v=s.actions.internal.nextVideoAnnouncementShow,$=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),_()};zt(()=>{e.isHide||v(),e.isHide&&n()&&(u(!1),p())});var C=Ue(),T=pe(C);{var E=P=>{var A=tx(),I=M(pe(A),2),V=h(I),H=h(V),Y=h(H,!0);g(H);var O=M(H,2);ca(O,{onClick:y}),g(V);var J=M(V,2);J.__click=[ex,u,$];var re=h(J),Z=h(re),me=h(Z);let de;var Le=M(me,2);{var Me=se=>{hd(se,{get isRunning(){return a()},onTimerEnded:w})};R(Le,se=>{n()&&se(Me)})}g(Z),g(re);var ve=M(re,2),le=h(ve),Ae=h(le,!0);g(le),g(ve),g(J),g(I),k((se,N)=>{he(Y,se),ot(Z,`background-image: url('${e.thumb}')`),de=te(me,1,"thumb-overlay svelte-1qdxi6t",null,de,N),he(Ae,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(P,A)};R(T,P=>{e.isHide||P(E)})}b(t,C),z(),o()}lt(["click"]);var Y1=require("@vkontakte/videoplayer-core/es2015");var Z1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;zt(()=>{Y1.clientChecker.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))}),In(()=>{i==null||i(),clearTimeout(o)})};var X1=require("@vkontakte/videoplayer-core/es2015");var Su=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var J1=require("@vkontakte/videoplayer-core/es2015"),e0=({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"),v=()=>J1.clientChecker.device.isIOS&&Se(s)===X1.VideoFormat.DASH_LIVE_CMAF,$=()=>{l==null||l(),l=null},p=_=>{if($(),!v()||!_)return;let w=u();if(!w)return;let y=new Su(w),C=Se(d),T=Se(a),E=Se(n);for(let I of C)T.some(H=>H.value===I.id)&&y.attach(I,E.value===I.id);let P=d.subscribe(I=>{for(let V of I)y.updateSrc(V)}),A=()=>{let I=y.getCurrentShowingId();o(Se(a).find(V=>V.value===I))};w.textTracks.addEventListener("change",A),l=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",A)}};zt(()=>i.subscribe(p)),In($)};var ox=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},nx=L("<!> <!>",1),rx=L("<div><!></div>"),sx=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),ax=L("<div><!></div>"),lx=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),dx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),cx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),ux={hash:"svelte-dtyj47",code:`.player-wrapper.svelte-dtyj47 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-dtyj47 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-dtyj47 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}
361
- .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function iv(t,e){var Li,Do;U(e,!0),W(t,ux);let[i,o]=Oe(),n=()=>S(De,"$playerPhase",i),a=()=>S(zi,"$isLoaderVisible",i),s=()=>S(Ze,"$adPlaybackState",i),d=()=>S(hi,"$crashed",i),l=()=>S(st,"$notificationsToShow$",i),u=()=>S(dt,"$playbackState$",i),v=()=>S(He,"$graphIsOpened$",i),$=()=>S(At,"$interactiveHideMobileControls",i),p=()=>S(bo,"$isEnded$",i),_=()=>S(It,"$isInteractiveExpectation$",i),w=()=>S(We,"$controlsVisible",i),y=()=>S(pi,"$touched",i),C=()=>S(ro,"$autoplayNextEnabled$",i),T=()=>S(_t,"$postrollPassed",i),E=()=>S(jo,"$bottomNoSmooth",i),P=()=>S($o,"$videoSize",i),A=()=>S(no,"$playerSize",i),I=()=>S(yt,"$isFullscreen",i),V=()=>S(Je,"$position$",i),H=()=>S(ct,"$duration$",i),Y=()=>S(Ao,"$loadedMetadata",i),O=()=>S(ai,"$settingsMenuVisible",i),J=()=>S(li,"$scrubbingInProgress",i),re=()=>S(Ui,"$volumeChangingInProgress",i),Z=()=>S(Ho,"$chromecastConnected$",i),me=()=>S(ui,"$isInteractiveTime$",i),de=()=>S(qi,"$isActiveLive",i),Le=()=>S(ei,"$settingsMenuOpenedByKeyboard",i),Me=()=>S(it,"$language$",i),ve=()=>S(Fo,"$disabledControls$",i),le=()=>S(Kn,"$is3DVideo",i),Ae=()=>S(Wi,"$icon3DVideoVisible",i),se=()=>S(rt,"$chromecastDeviceName$",i),N=()=>S(Tt,"$currentSubtitle$",i),Re=()=>S(Kt,"$currentSubtitleCaptions$",i),ie=()=>S(ii,"$realDuration$",i),je=()=>S(ti,"$isLive$",i),oe=()=>S(di,"$isPlaying$",i),G=()=>S(Ji,"$debugPanelVisible",i),K=f(e,"videoContainer",15),Ve=f(e,"adsSlotId",3,void 0),Ne=f(e,"adsParams",3,void 0),et=f(e,"adsPreviewParam",3,void 0),xe=f(e,"adsAutoplayParam",3,void 0),we=f(e,"duration",3,void 0),Be=f(e,"logoTargetUrl",3,""),Xe=f(e,"showNextPrevButtons",3,!1),nt=f(e,"nextButtonActive",3,!1),ht=f(e,"prevButtonActive",3,!1),tt=f(e,"endScreenVideoTitle",3,void 0),vt=f(e,"endScreenVideoThumb",3,void 0),Pt=f(e,"isOneVideoPlaylist",3,!1),Yt=f(e,"shadowRootContainer",3,void 0),Wt=f(e,"outerContainerRef",3,void 0),Gt=f(e,"showMiniTimer",3,!1),ge=f(e,"fullScreenTarget",3,void 0),j=f(e,"playerStarted",3,!1),Ie=f(e,"showEndScreen",3,!0),{notifications$:ae,graphIsOpened$:He}=_o(),qe=e.store.getLogger().createComponentLog("Root component"),it=e.store.interfaceLanguage$,dt=e.store.state.playbackState$,Ze=e.store.ads.playbackState,Je=e.store.state.positionWithScrubbing$,ct=e.store.state.duration$,De=e.store.playerPhase,yt=e.store.ui.isFullscreen,We=e.store.ui.controlsVisible,At=e.store.ui.interactiveHideMobileControls,ai=e.store.ui.settingsMenu.visible$,ei=e.store.ui.settingsMenu.openedByBtnKeyboard$,li=e.store.ui.scrubbingInProgress,Ui=e.store.ui.volumeChangingInProgress,Ji=e.store.ui.debugPanelVisible,zi=e.store.state.isLoaderVisible,bo=e.store.state.isEnded$,Ho=e.store.state.chromecastConnected$,rt=e.store.state.chromecastDeviceName$,_t=e.store.ads.postrollPassed,Ci=e.store.ui.mobileUnmuteButtonExpanded,X=e.store.ui.mobileUnmuteButtonVisible,ti=e.store.state.isLive$,di=e.store.state.isPlaying$,qi=e.store.state.isActiveLive$,ni=e.store.state.isRewindableLive$,hi=e.store.state.crashed$,ci=e.store.webApi.annotationsApi,pt=e.store.webApi.pictureInPictureApi,$o=e.store.state.videoSize$,Tt=e.store.state.currentSubtitle$,Kt=e.store.state.currentSubtitleCaptions$,ii=e.store.state.duration$,no=e.store.ui.playerSize,Kn=e.store.ui.is3DVideo,Wi=e.store.ui.icon3DVideoVisible,Eo=e.store.state.isInteractive,ui=e.store.state.isInteractiveTime$,It=e.store.state.isInteractiveExpectation$,yo=e.store.state.hasInteractiveBranches,Fo=e.store.ui.controls.disabledControls$,pi=e.store.ui.touched,Po=e.store.ui.overlayContainer$,ro=e.store.ui.autoplayNextEnabled$,Ao=e.store.state.loadedMetadata$,Uo=e.store.actions.internal.closeSettingsMenu,En=(Li=e.store.callbacks)==null?void 0:Li.onDisabledPlayPrevChapterClick,Oi=(Do=e.store.callbacks)==null?void 0:Do.onDisabledSeekToInteractiveClick,Pn=e.store.actions.internal.setQuality,so=ee(void 0),Mo=ee(void 0),Tr=ee(void 0),dr=ee(void 0),An,Qn,Gn,xo=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),gn=ee(void 0),{closeNotification:Mn,notificationsToShow$:st}=ae,Ln=m(()=>!!l().slow_video),Go=()=>Mn("slow_video"),jo=ue(!1),Ir,Yo=ee(!1),Vn=m(()=>u()!==Es.PlaybackState.PLAYING),jn=ee(!1),Rn=m(()=>v()||$()||!r(Yo)&&(p()&&!!yo||r(Vn)&&_())),Zo=ee(!0),Ki=m(()=>e.uiConfig.features.thumbTimer&&Gt()&&n()==="video"&&!w()&&!d()&&!Eo&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),ao=ee(!1),Lo=m(()=>(Ie()||e.showAutoplayNext&&C())&&!!tt()&&!!vt()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(ao)),hn=ee(!1);pt==null||pt.setContext(Gl());let Xo=at=>{clearTimeout(Qn),at&&(X.set(!0),Ci.set(!0),Qn=setTimeout(()=>{Ci.set(!1)},e.uiConfig.controls.collapseMobileUnmute),Eo||Mi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Xo});let Jo=()=>{clearTimeout(An),B(Yo,!1),$()&&At.set(!1)},Mi=at=>{Jo(),B(Yo,!0),An=setTimeout(()=>B(Yo,!1),at);let jt=at-100;Ir=setTimeout(()=>{E()&&jo.set(!1)},jt>0?jt:at)},zo=Kn.subscribe(at=>{Wi.set(at),at&&(clearTimeout(Gn),Gn=setTimeout(()=>Wi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Vo=(...jt)=>Mt(this,[...jt],function*(at=bs()){var mi,eo,to,Vi,wi,io;if(at&&!Es.clientChecker.device.isIOS){let Ii=dd(),lo=qo(),Qi=Es.clientChecker.browser.isSamsungBrowser&&Ii===Yt();at=Ii===lo||Qi}if(at){Mi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield pt==null?void 0:pt.remove()}catch(Ii){qe({message:String(Ii)})}try{let Ii=(mi=P())!=null&&mi.width&&((eo=P())!=null&&eo.height)?P():A();yield Qh(Ii)}catch(Ii){qe({message:String(Ii)})}}yt.set(at),e.store.getAdmanWrapper().setFullscreen(at),I()?(Vi=(to=e.store.callbacks)==null?void 0:to.onFullscreenEnter)==null||Vi.call(to):(io=(wi=e.store.callbacks)==null?void 0:wi.onFullscreenExit)==null||io.call(wi)}),cr=at=>{let jt=at;no.set({width:jt.target.width,height:jt.target.height})};zt(()=>{var at;return Zc(Vo),e.uiConfig.features.annotationsInside&&(ci==null||ci.init(r(so))),sa(pt)&&(pt==null||pt.assignPlayerContainer(r(so)),pt==null||pt.registryExternalEventHandlers({resize:cr})),B(Zo,!Es.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((at=K().parentElement)==null||at.insertBefore(e.interactiveContainer,K().nextSibling)),()=>{clearTimeout(An),clearTimeout(Ir),clearTimeout(Qn),clearTimeout(Gn),zo(),pt==null||pt.dispose().catch(jt=>{qe({message:String(jt)})}),Xc(Vo)}});let _n=ee(!0),bn=ee(!0),kr=at=>{let jt=V()+(at==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;jt<0?(B(_n,!1),jt=0):jt>=H()&&(B(bn,!1),jt=H()),B(jn,!0),e.seekTime(jt)},qo=()=>{let at=Es.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Wt()?r(so):Wt(),jt=at.getRootNode(),mi=jt instanceof ShadowRoot?jt.host:jt,eo=ge()instanceof HTMLElement&&ge().contains(mi);return e.uiConfig.allowChangingFullscreenTarget&&ge()&&eo?ge():at},Er=()=>Mt(this,null,function*(){try{if(bs())yield Yc(document),qe({message:"exit fullscreen"});else{if(qe({message:"request fullscreen"}),Es.clientChecker.device.isIOS&&!Y())return;yield jc(qo())}}catch(at){qe({message:String(at)})}}),Dn=()=>{Uo()},Yn=at=>{if(at.preventDefault(),O()){Dn();return}if(!j()){e.firstStart(),Mi(e.uiConfig.controls.hideTimeoutCursor);return}B(jn,!1),w()?Jo():Mi(e.uiConfig.controls.hideTimeoutMobile)},ur=()=>{pi.set(!0)},Pr=()=>{Eo||(jo.set(!0),Mi(e.uiConfig.controls.hideTimeoutCursor))},Zn=at=>{En&&(En(at),Mi(e.uiConfig.controls.hideTimeoutMobile))},$n=at=>{Oi&&(Oi(at),Mi(e.uiConfig.controls.hideTimeoutMobile))};ze(()=>{Po.set(r(gn))}),ze(()=>{We.set((r(Vn)||O()||J()||re()||Z()||!r(Lo)&&(p()||r(Yo)&&!r(jn)))&&!r(Rn)&&n()==="video"&&!d())}),ze(()=>{!J()&&r(hn)&&!me()&&Mi(e.uiConfig.controls.hideTimeoutMobile),B(hn,fe(J()))}),ze(()=>{B(_n,V()>0),B(bn,fe(!de()&&V()<H()))}),ze(()=>{sl(r(dr),O(),Le())});let Ar=F("aria_label_video_player"),fi=F("video360");Z1({fullScreenChangeHandler:Vo,getFullscreenTarget:qo}),e0({store:e.store,getFullscreenTarget:qo});var Ro=cx();Ct("blur",Ws,Dn),Fe(Ro,"aria-label",Ar);var Ti=h(Ro);Ta(Ti,{onClick:Yn,get videoContainer(){return K()},set videoContainer(at){K(at)}});var Xn=M(Ti,2);Zs(Xn,()=>"slot",!1,(at,jt)=>{Te(at,null,{name:Ca})});var ft=M(Xn,2);Ys(ft,Me,at=>{var jt=dx(),mi=pe(jt);let eo=m(()=>n()!=="thumb"||d()||Eo&&e.autoplay);xa(mi,{get hidden(){return r(eo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var to=M(mi,2);{var Vi=ke=>{var Lt=nx(),Xt=pe(Lt);{var Si=oo=>{let Nr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);wu(oo,{side:"left",get seekStep(){return r(Nr)},handleSingleFirstClick:Yn,handleSecondClick:()=>kr("backward")})};R(Xt,oo=>{r(_n)&&oo(Si)})}var oi=M(Xt,2);{var Dr=oo=>{let Nr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);wu(oo,{side:"right",get seekStep(){return r(Nr)},handleSingleFirstClick:Yn,handleSecondClick:()=>kr("forward")})};R(oi,oo=>{r(bn)&&oo(Dr)})}b(ke,Lt)};R(to,ke=>{e.canRewindLive&&ni&&!ve().has("TIMELINE")&&ke(Vi)})}var wi=M(to,2);{var io=ke=>{let Lt=m(()=>{var Xt;return(Xt=e.live)==null?void 0:Xt.startTime});qd(ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Lt)}})};R(wi,ke=>{n()==="LiveWaitingStart"&&ke(io)})}var Ii=M(wi,2);{var lo=ke=>{wa(ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Ii,ke=>{n()==="LiveWaitingRecover"&&ke(lo)})}var Qi=M(Ii,2);{var yn=ke=>{wa(ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Qi,ke=>{n()==="LiveWaitingRecord"&&ke(yn)})}var Jn=M(Qi,2);{var pr=ke=>{var Lt=rx();let Xt;var Si=h(Lt);cd(Si,{get adsSlotId(){return Ve()},get adsParams(){return Ne()},get adsPreviewParam(){return et()},get adsAutoplayParam(){return xe()},get duration(){return we()}}),g(Lt),k(oi=>Xt=te(Lt,1,"ads-container svelte-dtyj47",null,Xt,oi),[()=>({hidden:n()!=="ads"})]),b(ke,Lt)};R(Jn,ke=>{e.showAds&&j()&&ke(pr)})}var er=M(Jn,2);{var Mr=ke=>{let Lt=m(()=>!Ie()&&e.showAutoplayNext&&C());tv(ke,{get title(){return tt()},get thumb(){return vt()},get isHide(){return r(Lt)},clickCloseIcon:()=>B(ao,!0)})};R(er,ke=>{r(Lo)&&tt()&&vt()&&ke(Mr)})}var fr=M(er,2);{var xn=ke=>{Fd(ke,{})};R(fr,ke=>{le()&&ke(xn)})}var Nn=M(fr,2);{var en=ke=>{var Lt=sx(),Xt=h(Lt);ld(Xt,{"aria-label":fi}),g(Lt),b(ke,Lt)};R(Nn,ke=>{Ae()&&ke(en)})}var tn=M(Nn,2);{var tr=ke=>{Ud(ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return se()}})};R(tn,ke=>{Z()&&ke(tr)})}var Lr=M(tn,2);{var Vr=ke=>{ya(ke,{get shifted(){return w()},get captions(){return Re()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};R(Lr,ke=>{N().value!=="off"&&ke(Vr)})}var mr=M(Lr,2);{var wo=ke=>{var Lt=ax();Lt.__click=[ox,O,ai,Dn];var Xt=h(Lt);zd(Xt,{}),g(Lt),b(ke,Lt)};R(mr,ke=>{d()&&ke(wo)})}var Bn=M(mr,2);{var ir=ke=>{let Lt=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Xt=m(()=>n()==="ads"),Si=m(()=>e.canRewindLive&&ie()!==0);Hd(ke,{get bottomHidden(){return r(Lt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(Xt)},get canRewindLive(){return r(Si)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Be()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Xe()},get nextButtonActive(){return nt()},get prevButtonActive(){return ht()},get isOneVideoPlaylist(){return Pt()},get customFullscreenSupported(){return r(Zo)},get endScreenShown(){return r(Lo)},toggleFullscreen:Er,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Zn,onDisabledSeekToInteractiveClick:$n,get playerControlsWrapperRef(){return r(Mo)},set playerControlsWrapperRef(oi){B(Mo,fe(oi))},get playerControlsRef(){return r(Tr)},set playerControlsRef(oi){B(Tr,fe(oi))}})};R(Bn,ke=>{j()&&ke(ir)})}var Rr=M(Bn,2);{var ut=ke=>{var Lt=lx(),Xt=h(Lt);Gd(Xt,{get supportLink(){return e.supportLink},returnFocus:t0.noop,get ref(){return r(dr)},set ref(Si){B(dr,fe(Si))}}),g(Lt),b(ke,Lt)};R(Rr,ke=>{O()&&ke(ut)})}var Ut=M(Rr,2);let Ri=m(()=>!r(Ki));fd(Ut,{get isLive(){return je()},get isHidden(){return r(Ri)},get isPlaying(){return oe()},get position(){return V()},get duration(){return H()}});var ye=M(Ut,2);{var kt=ke=>{ua(ke,{})};R(ye,ke=>{r(xo)&&ke(kt)})}var _i=M(ye,2);{var ki=ke=>{gd(ke,{})};R(_i,ke=>{G()&&ke(ki)})}var co=M(_i,2);{var vi=ke=>{jd(ke,{onClose:Go,onSelectAutoQuality:()=>{Pn("auto"),Go()}})};R(co,ke=>{r(Ln)&&ke(vi)})}b(at,jt)});var Ft=M(ft,2);mt(Ft,at=>B(gn,at),()=>r(gn)),g(Ro),mt(Ro,at=>B(so,at),()=>r(so)),Ct("click",Ro,ur,!0),Ct("focusin",Ro,Pr,!0),b(t,Ro),z(),o()}lt(["click"]);function Cu(t){let e="";return Wn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Wn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Wn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Wn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Wn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Wn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Wn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Wn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Wn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Wn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Wn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Wn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Wn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Wn(t){return typeof t=="string"&&!t.includes(";")}var i0=require("@vkontakte/videoplayer-shared/es2015");var px=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),fx={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function ov(t,e){U(e,!0),W(t,fx);let[i,o]=Oe(),n=()=>S(re,"$playerSize",i),a=()=>S(I,"$isPlaying$",i),s=()=>S(P,"$duration$",i),d=()=>S(Y,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),u=()=>S(E,"$crashed$",i),v=()=>S(V,"$currentSubtitle$",i),$=()=>S(H,"$currentSubtitleCaptions$",i),p=()=>S(A,"$positionExact$",i),_=()=>S(O,"$isLive$",i),w=()=>S(J,"$isRewindableLive$",i),y=f(e,"outsideDuration",3,0),C=f(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:P,positionExact$:A,isPlaying$:I,currentSubtitle$:V,currentSubtitleCaptions$:H,positionWithScrubbing$:Y,isLive$:O,isRewindableLive$:J},ui:{playerSize:re,controls:Z},actions:{internal:{getVideoElement:me}}}=Ce(),de=8,Le=ee(!1),Me=fe({}),ve=()=>{B(Le,!0)},le=()=>{B(Le,!1)},Ae=(0,i0.debounceFn)(ml,260);ze(()=>{n(),Ae(me(),Z,Me,r(Le))});let se=m(()=>a()?mn(s()-d()):mn(isFinite(s())?s():y()));var N=px(),Re=h(N);Ta(Re,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Be){C(Be)}});var ie=M(Re,2);Zs(ie,()=>"slot",!1,(Be,Xe)=>{Te(Be,null,{name:Ca})});var je=M(ie,2);let oe=m(()=>l()!=="thumb"||u());xa(je,{get hidden(){return r(oe)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var G=M(je,2);{var K=Be=>{ya(Be,{shifted:!1,get captions(){return $()},get position(){return p()},get playerSize(){return n()}})};R(G,Be=>{v().value!=="off"&&Be(K)})}var Ve=M(G,2),Ne=h(Ve);pd(Ne,{get isLive(){return _()},get isPlaying(){return a()},get time(){return r(se)}}),g(Ve);var et=M(Ve,2);let xe;var we=h(et);va(we,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:de,tooltipRightOffset:de,get ref(){return Me.timeline},set ref(Be){Me.timeline=Be}}),g(et),g(N),k(Be=>xe=te(et,1,"timeline svelte-1qfjf44",null,xe,Be),[()=>({visible:r(Le)})]),Ct("mouseenter",N,ve),Ct("mouseleave",N,le),b(t,N),z(),o()}var mx=L("<div><!></div>"),vx={hash:"svelte-7ed4yj",code:`.root.svelte-7ed4yj {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
360
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function wu(t,e){U(e,!0),K(t,ix);let i=m(e,"seekStep",3,0),o=J(!1),n=0,a=0,s=J(me(i())),d=b=>{b.stopPropagation(),a+=1,D(s,i()*(a-1)),a===1?e.handleSingleFirstClick(b):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};xn(()=>{window.clearTimeout(n)});var l=tx();l.__click=d;var u=h(l);{var f=b=>{var p=ex(),$=fe(p),x=M($,2),_=h(x),C=h(_),T=M(C,2),k=M(T,2);g(_);var P=M(_,2),A=h(P,!0);g(P),g(x),E(I=>{var V,q,G,H;ee($,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),ee(C,1,`triangle ${(q=e.side)!=null?q:""}`,"svelte-nhq2ld"),ee(T,1,`triangle ${(G=e.side)!=null?G:""}`,"svelte-nhq2ld"),ee(k,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ge(A,I)},[()=>F("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),y(b,p)};R(u,b=>{r(o)&&b(f)})}g(l),E(()=>{var b;return ee(l,1,`double-click-area ${(b=e.side)!=null?b:""}`,"svelte-nhq2ld")}),y(t,l),z()}lt(["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 iv(t,e){U(e,!0),K(t,rx);let[i,o]=Ne(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ie(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,b=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,x=()=>{u(!1),p()},_=()=>{e.clickCloseIcon(),$()};Qt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Oe(),T=fe(C);{var k=P=>{var A=nx(),I=M(fe(A),2),V=h(I),q=h(V),G=h(q,!0);g(q);var H=M(q,2);ca(H,{onClick:_}),g(V);var Z=M(V,2);Z.__click=[ox,u,b];var re=h(Z),X=h(re),ce=h(X);let ue;var Ve=M(ce,2);{var Me=ne=>{gd(ne,{get isRunning(){return a()},onTimerEnded:x})};R(Ve,ne=>{n()&&ne(Me)})}g(X),g(re);var _e=M(re,2),ae=h(_e),Le=h(ae,!0);g(ae),g(_e),g(Z),g(I),E((ne,B)=>{ge(G,ne),st(X,`background-image: url('${e.thumb}')`),ue=ee(ce,1,"thumb-overlay svelte-1qdxi6t",null,ue,B),ge(Le,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),y(P,A)};R(T,P=>{e.isHide||P(k)})}y(t,C),z(),o()}lt(["click"]);var X1=require("@vkontakte/videoplayer-core/es2015");var J1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Qt(()=>{X1.clientChecker.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))}),xn(()=>{i==null||i(),clearTimeout(o)})};var e0=require("@vkontakte/videoplayer-core/es2015");var Su=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var t0=require("@vkontakte/videoplayer-core/es2015"),i0=({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=()=>t0.clientChecker.device.isIOS&&Te(s)===e0.VideoFormat.DASH_LIVE_CMAF,b=()=>{l==null||l(),l=null},p=$=>{if(b(),!f()||!$)return;let x=u();if(!x)return;let _=new Su(x),C=Te(d),T=Te(a),k=Te(n);for(let I of C)T.some(q=>q.value===I.id)&&_.attach(I,k.value===I.id);let P=d.subscribe(I=>{for(let V of I)_.updateSrc(V)}),A=()=>{let I=_.getCurrentShowingId();o(Te(a).find(V=>V.value===I))};x.textTracks.addEventListener("change",A),l=()=>{P(),_.detachAll(),x.textTracks.removeEventListener("change",A)}};Qt(()=>i.subscribe(p)),xn(b)};var sx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},ax=L("<!> <!>",1),lx=L("<div><!></div>"),dx=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),cx=L("<div><!></div>"),ux=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),px=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),fx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),mx={hash:"svelte-dtyj47",code:`.player-wrapper.svelte-dtyj47 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-dtyj47 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-dtyj47 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}
361
+ .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function ov(t,e){var Li,Ao;U(e,!0),K(t,mx);let[i,o]=Ne(),n=()=>S(_t,"$playerPhase",i),a=()=>S(bt,"$isLoaderVisible",i),s=()=>S(it,"$adPlaybackState",i),d=()=>S(vt,"$crashed",i),l=()=>S(nt,"$notificationsToShow$",i),u=()=>S(Xe,"$playbackState$",i),f=()=>S(We,"$graphIsOpened$",i),b=()=>S(ni,"$interactiveHideMobileControls",i),p=()=>S(Ot,"$isEnded$",i),$=()=>S(No,"$isInteractiveExpectation$",i),x=()=>S(et,"$controlsVisible",i),_=()=>S(Qi,"$touched",i),C=()=>S(Eo,"$autoplayNextEnabled$",i),T=()=>S(Sn,"$postrollPassed",i),k=()=>S(cn,"$bottomNoSmooth",i),P=()=>S(Nt,"$videoSize",i),A=()=>S(Io,"$playerSize",i),I=()=>S(qt,"$isFullscreen",i),V=()=>S(ot,"$position$",i),q=()=>S(Ke,"$duration$",i),G=()=>S(On,"$loadedMetadata",i),H=()=>S(tt,"$settingsMenuVisible",i),Z=()=>S(Hi,"$scrubbingInProgress",i),re=()=>S(Ki,"$volumeChangingInProgress",i),X=()=>S(_o,"$chromecastConnected$",i),ce=()=>S(Xt,"$isControlsAvailable",i),ue=()=>S(ki,"$isInteractiveTime$",i),Ve=()=>S(Fi,"$isActiveLive",i),Me=()=>S(ei,"$settingsMenuOpenedByKeyboard",i),_e=()=>S(ft,"$language$",i),ae=()=>S(Bo,"$disabledControls$",i),Le=()=>S(Ko,"$is3DVideo",i),ne=()=>S(fi,"$icon3DVideoVisible",i),B=()=>S(ln,"$chromecastDeviceName$",i),$e=()=>S(lo,"$currentSubtitle$",i),de=()=>S(ri,"$currentSubtitleCaptions$",i),Qe=()=>S(nr,"$realDuration$",i),te=()=>S(ti,"$isLive$",i),ve=()=>S(di,"$isPlaying$",i),Y=()=>S(Rt,"$debugPanelVisible",i),ie=m(e,"videoContainer",15),He=m(e,"adsSlotId",3,void 0),Ye=m(e,"adsParams",3,void 0),ye=m(e,"adsPreviewParam",3,void 0),Se=m(e,"adsAutoplayParam",3,void 0),Re=m(e,"duration",3,void 0),Ze=m(e,"logoTargetUrl",3,""),ut=m(e,"showNextPrevButtons",3,!1),pt=m(e,"nextButtonActive",3,!1),at=m(e,"prevButtonActive",3,!1),Et=m(e,"endScreenVideoTitle",3,void 0),$t=m(e,"endScreenVideoThumb",3,void 0),Jt=m(e,"isOneVideoPlaylist",3,!1),li=m(e,"shadowRootContainer",3,void 0),At=m(e,"outerContainerRef",3,void 0),Dt=m(e,"showMiniTimer",3,!1),O=m(e,"fullScreenTarget",3,void 0),be=m(e,"playerStarted",3,!1),se=m(e,"showEndScreen",3,!0),{notifications$:Be,graphIsOpened$:We}=ho(),je=e.store.getLogger().createComponentLog("Root component"),ft=e.store.interfaceLanguage$,Xe=e.store.state.playbackState$,it=e.store.ads.playbackState,ot=e.store.state.positionWithScrubbing$,Ke=e.store.state.duration$,_t=e.store.playerPhase,qt=e.store.ui.isFullscreen,et=e.store.ui.controlsVisible,Xt=e.store.ui.isControlsAvailable,ni=e.store.ui.interactiveHideMobileControls,tt=e.store.ui.settingsMenu.visible$,ei=e.store.ui.settingsMenu.openedByBtnKeyboard$,Hi=e.store.ui.scrubbingInProgress,Ki=e.store.ui.volumeChangingInProgress,Rt=e.store.ui.debugPanelVisible,bt=e.store.state.isLoaderVisible,Ot=e.store.state.isEnded$,_o=e.store.state.chromecastConnected$,ln=e.store.state.chromecastDeviceName$,Sn=e.store.ads.postrollPassed,To=e.store.ui.mobileUnmuteButtonExpanded,j=e.store.ui.mobileUnmuteButtonVisible,ti=e.store.state.isLive$,di=e.store.state.isPlaying$,Fi=e.store.state.isActiveLive$,pi=e.store.state.isRewindableLive$,vt=e.store.state.crashed$,gi=e.store.webApi.annotationsApi,Je=e.store.webApi.pictureInPictureApi,Nt=e.store.state.videoSize$,lo=e.store.state.currentSubtitle$,ri=e.store.state.currentSubtitleCaptions$,nr=e.store.state.duration$,Io=e.store.ui.playerSize,Ko=e.store.ui.is3DVideo,fi=e.store.ui.icon3DVideoVisible,Tt=e.store.state.isInteractive,ki=e.store.state.isInteractiveTime$,No=e.store.state.isInteractiveExpectation$,hi=e.store.state.hasInteractiveBranches,Bo=e.store.ui.controls.disabledControls$,Qi=e.store.ui.touched,ko=e.store.ui.overlayContainer$,Eo=e.store.ui.autoplayNextEnabled$,On=e.store.state.loadedMetadata$,Po=e.store.actions.internal.closeSettingsMenu,Cn=(Li=e.store.callbacks)==null?void 0:Li.onDisabledPlayPrevChapterClick,to=(Ao=e.store.callbacks)==null?void 0:Ao.onDisabledSeekToInteractiveClick,Do=e.store.actions.internal.setQuality,dn=J(void 0),kr=J(void 0),rr=J(void 0),Hn=J(void 0),Tn,Fn,sr,co=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),Oo=J(void 0),{closeNotification:In,notificationsToShow$:nt}=Be,kn=v(()=>!!l().slow_video),Un=()=>In("slow_video"),cn=le(!1),ar,un=J(!1),pn=v(()=>u()!==Ps.PlaybackState.PLAYING),fn=J(!1),io=v(()=>f()||b()||!r(un)&&(p()&&!!hi||r(pn)&&$())),Gi=J(!0),mn=v(()=>e.uiConfig.features.thumbTimer&&Dt()&&n()==="video"&&!x()&&!d()&&!Tt&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),zn=J(!1),Qo=v(()=>(se()||e.showAutoplayNext&&C())&&!!Et()&&!!$t()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(zn)),vn=J(!1);Je==null||Je.setContext(Ql());let Ho=rt=>{clearTimeout(Fn),rt&&(j.set(!0),To.set(!0),Fn=setTimeout(()=>{To.set(!1)},e.uiConfig.controls.collapseMobileUnmute),Tt||Ui(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Ho});let bo=()=>{clearTimeout(Tn),D(un,!1),b()&&ni.set(!1)},Ui=rt=>{bo(),D(un,!0),Tn=setTimeout(()=>D(un,!1),rt);let Yt=rt-100;ar=setTimeout(()=>{k()&&cn.set(!1)},Yt>0?Yt:rt)},qn=Ko.subscribe(rt=>{fi.set(rt),rt&&(clearTimeout(sr),sr=setTimeout(()=>fi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),uo=(...Yt)=>St(this,[...Yt],function*(rt=$s()){var _i,oo,no,Vi,Ti,ji;if(rt&&!Ps.clientChecker.device.isIOS){let si=ld(),zi=Go(),hn=Ps.clientChecker.browser.isSamsungBrowser&&si===li();rt=si===zi||hn}if(rt){Ui(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Je==null?void 0:Je.remove()}catch(si){je({message:String(si)})}try{let si=(_i=P())!=null&&_i.width&&((oo=P())!=null&&oo.height)?P():A();yield Gh(si)}catch(si){je({message:String(si)})}}qt.set(rt),e.store.getAdmanWrapper().setFullscreen(rt),I()?(Vi=(no=e.store.callbacks)==null?void 0:no.onFullscreenEnter)==null||Vi.call(no):(ji=(Ti=e.store.callbacks)==null?void 0:Ti.onFullscreenExit)==null||ji.call(Ti)}),En=rt=>{let Yt=rt;Io.set({width:Yt.target.width,height:Yt.target.height})};Qt(()=>{var rt;return Zc(uo),e.uiConfig.features.annotationsInside&&(gi==null||gi.init(r(dn))),sa(Je)&&(Je==null||Je.assignPlayerContainer(r(dn)),Je==null||Je.registryExternalEventHandlers({resize:En})),D(Gi,!Ps.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((rt=ie().parentElement)==null||rt.insertBefore(e.interactiveContainer,ie().nextSibling)),()=>{clearTimeout(Tn),clearTimeout(ar),clearTimeout(Fn),clearTimeout(sr),qn(),Je==null||Je.dispose().catch(Yt=>{je({message:String(Yt)})}),Xc(uo)}});let Wn=J(!0),gn=J(!0),Er=rt=>{let Yt=V()+(rt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Yt<0?(D(Wn,!1),Yt=0):Yt>=q()&&(D(gn,!1),Yt=q()),D(fn,!0),e.seekTime(Yt)},Go=()=>{let rt=Ps.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!At()?r(dn):At(),Yt=rt.getRootNode(),_i=Yt instanceof ShadowRoot?Yt.host:Yt,oo=O()instanceof HTMLElement&&O().contains(_i);return e.uiConfig.allowChangingFullscreenTarget&&O()&&oo?O():rt},Pr=()=>St(this,null,function*(){try{if($s())yield Yc(document),je({message:"exit fullscreen"});else{if(je({message:"request fullscreen"}),Ps.clientChecker.device.isIOS&&!G())return;yield jc(Go())}}catch(rt){je({message:String(rt)})}}),Kn=()=>{Po()},Qn=rt=>{if(rt.preventDefault(),H()){Kn();return}if(!be()){e.firstStart(),Ui(e.uiConfig.controls.hideTimeoutCursor);return}D(fn,!1),x()?bo():Ui(e.uiConfig.controls.hideTimeoutMobile)},lr=()=>{Qi.set(!0)},Ar=()=>{Tt||(cn.set(!0),Ui(e.uiConfig.controls.hideTimeoutCursor))},Pn=rt=>{Cn&&(Cn(rt),Ui(e.uiConfig.controls.hideTimeoutMobile))},ii=rt=>{to&&(to(rt),Ui(e.uiConfig.controls.hideTimeoutMobile))};Fe(()=>{ko.set(r(Oo))}),Fe(()=>{et.set((r(pn)||H()||Z()||re()||X()||!r(Qo)&&(p()||r(un)&&!r(fn)))&&!r(io)&&n()==="video"&&!d()&&ce())}),Fe(()=>{!Z()&&r(vn)&&!ue()&&Ui(e.uiConfig.controls.hideTimeoutMobile),D(vn,me(Z()))}),Fe(()=>{D(Wn,V()>0),D(gn,me(!Ve()&&V()<q()))}),Fe(()=>{cl(r(Hn),H(),Me())});let dr=F("aria_label_video_player"),Mr=F("video360");J1({fullScreenChangeHandler:uo,getFullscreenTarget:Go}),i0({store:e.store,getFullscreenTarget:Go});var Fo=fx();kt("blur",Ws,Kn),De(Fo,"aria-label",dr);var Ei=h(Fo);Ta(Ei,{onClick:Qn,get videoContainer(){return ie()},set videoContainer(rt){ie(rt)}});var cr=M(Ei,2);Zs(cr,()=>"slot",!1,(rt,Yt)=>{ke(rt,null,{name:Ca})});var gt=M(cr,2);Ys(gt,_e,rt=>{var Yt=px(),_i=fe(Yt);let oo=v(()=>n()!=="thumb"||d()||Tt&&e.autoplay);xa(_i,{get hidden(){return r(oo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var no=M(_i,2);{var Vi=Ee=>{var yt=ax(),Zt=fe(yt);{var Ii=qi=>{let Zn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);wu(qi,{side:"left",get seekStep(){return r(Zn)},handleSingleFirstClick:Qn,handleSecondClick:()=>Er("backward")})};R(Zt,qi=>{r(Wn)&&qi(Ii)})}var ci=M(Zt,2);{var Qr=qi=>{let Zn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);wu(qi,{side:"right",get seekStep(){return r(Zn)},handleSingleFirstClick:Qn,handleSecondClick:()=>Er("forward")})};R(ci,qi=>{r(gn)&&qi(Qr)})}y(Ee,yt)};R(no,Ee=>{e.canRewindLive&&pi&&!ae().has("TIMELINE")&&Ee(Vi)})}var Ti=M(no,2);{var ji=Ee=>{let yt=v(()=>{var Zt;return(Zt=e.live)==null?void 0:Zt.startTime});zd(Ee,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(yt)}})};R(Ti,Ee=>{n()==="LiveWaitingStart"&&Ee(ji)})}var si=M(Ti,2);{var zi=Ee=>{wa(Ee,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(si,Ee=>{n()==="LiveWaitingRecover"&&Ee(zi)})}var hn=M(si,2);{var ur=Ee=>{wa(Ee,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(hn,Ee=>{n()==="LiveWaitingRecord"&&Ee(ur)})}var Gn=M(hn,2);{var pr=Ee=>{var yt=lx();let Zt;var Ii=h(yt);dd(Ii,{get adsSlotId(){return He()},get adsParams(){return Ye()},get adsPreviewParam(){return ye()},get adsAutoplayParam(){return Se()},get duration(){return Re()}}),g(yt),E(ci=>Zt=ee(yt,1,"ads-container svelte-dtyj47",null,Zt,ci),[()=>({hidden:n()!=="ads"})]),y(Ee,yt)};R(Gn,Ee=>{e.showAds&&be()&&Ee(pr)})}var fr=M(Gn,2);{var mr=Ee=>{let yt=v(()=>!se()&&e.showAutoplayNext&&C());iv(Ee,{get title(){return Et()},get thumb(){return $t()},get isHide(){return r(yt)},clickCloseIcon:()=>D(zn,!0)})};R(fr,Ee=>{r(Qo)&&Et()&&$t()&&Ee(mr)})}var vr=M(fr,2);{var jn=Ee=>{Hd(Ee,{})};R(vr,Ee=>{Le()&&Ee(jn)})}var Yn=M(vr,2);{var Uo=Ee=>{var yt=dx(),Zt=h(yt);ad(Zt,{"aria-label":Mr}),g(yt),y(Ee,yt)};R(Yn,Ee=>{ne()&&Ee(Uo)})}var Lr=M(Yn,2);{var zo=Ee=>{Fd(Ee,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return B()}})};R(Lr,Ee=>{X()&&Ee(zo)})}var gr=M(Lr,2);{var Vr=Ee=>{ya(Ee,{get shifted(){return x()},get captions(){return de()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};R(gr,Ee=>{$e().value!=="off"&&Ee(Vr)})}var Rr=M(gr,2);{var Nr=Ee=>{var yt=cx();yt.__click=[sx,H,tt,Kn];var Zt=h(yt);Ud(Zt,{}),g(yt),y(Ee,yt)};R(Rr,Ee=>{d()&&Ee(Nr)})}var ro=M(Rr,2);{var An=Ee=>{let yt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Zt=v(()=>n()==="ads"),Ii=v(()=>e.canRewindLive&&Qe()!==0);Od(Ee,{get bottomHidden(){return r(yt)},get showControls(){return x()},get bottomNoSmooth(){return k()},get isAds(){return r(Zt)},get canRewindLive(){return r(Ii)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ze()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ut()},get nextButtonActive(){return pt()},get prevButtonActive(){return at()},get isOneVideoPlaylist(){return Jt()},get customFullscreenSupported(){return r(Gi)},get endScreenShown(){return r(Qo)},toggleFullscreen:Pr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Pn,onDisabledSeekToInteractiveClick:ii,get playerControlsWrapperRef(){return r(kr)},set playerControlsWrapperRef(ci){D(kr,me(ci))},get playerControlsRef(){return r(rr)},set playerControlsRef(ci){D(rr,me(ci))}})};R(ro,Ee=>{be()&&Ee(An)})}var Br=M(ro,2);{var dt=Ee=>{var yt=ux(),Zt=h(yt);Qd(Zt,{get supportLink(){return e.supportLink},returnFocus:o0.noop,get ref(){return r(Hn)},set ref(Ii){D(Hn,me(Ii))}}),g(yt),y(Ee,yt)};R(Br,Ee=>{H()&&Ee(dt)})}var Kt=M(Br,2);let Ri=v(()=>!r(mn));pd(Kt,{get isLive(){return te()},get isHidden(){return r(Ri)},get isPlaying(){return ve()},get position(){return V()},get duration(){return q()}});var Mo=M(Kt,2);{var Ce=Ee=>{ua(Ee,{})};R(Mo,Ee=>{r(co)&&Ee(Ce)})}var Vt=M(Mo,2);{var $i=Ee=>{vd(Ee,{})};R(Vt,Ee=>{Y()&&Ee($i)})}var yi=M(Vt,2);{var bi=Ee=>{Gd(Ee,{onClose:Un,onSelectAutoQuality:()=>{Do("auto"),Un()}})};R(yi,Ee=>{r(kn)&&Ee(bi)})}y(rt,Yt)});var Wt=M(gt,2);mt(Wt,rt=>D(Oo,rt),()=>r(Oo)),g(Fo),mt(Fo,rt=>D(dn,rt),()=>r(dn)),kt("click",Fo,lr,!0),kt("focusin",Fo,Ar,!0),y(t,Fo),z(),o()}lt(["click"]);function Cu(t){let e="";return Dn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Dn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Dn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Dn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Dn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Dn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Dn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Dn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Dn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Dn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Dn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Dn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Dn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Dn(t){return typeof t=="string"&&!t.includes(";")}var n0=require("@vkontakte/videoplayer-shared/es2015");var vx=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),gx={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function nv(t,e){U(e,!0),K(t,gx);let[i,o]=Ne(),n=()=>S(re,"$playerSize",i),a=()=>S(I,"$isPlaying$",i),s=()=>S(P,"$duration$",i),d=()=>S(G,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),u=()=>S(k,"$crashed$",i),f=()=>S(V,"$currentSubtitle$",i),b=()=>S(q,"$currentSubtitleCaptions$",i),p=()=>S(A,"$positionExact$",i),$=()=>S(H,"$isLive$",i),x=()=>S(Z,"$isRewindableLive$",i),_=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:k,duration$:P,positionExact$:A,isPlaying$:I,currentSubtitle$:V,currentSubtitleCaptions$:q,positionWithScrubbing$:G,isLive$:H,isRewindableLive$:Z},ui:{playerSize:re,controls:X},actions:{internal:{getVideoElement:ce}}}=Ie(),ue=8,Ve=J(!1),Me=me({}),_e=()=>{D(Ve,!0)},ae=()=>{D(Ve,!1)},Le=(0,n0.debounceFn)(hl,260);Fe(()=>{n(),Le(ce(),X,Me,r(Ve))});let ne=v(()=>a()?sn(s()-d()):sn(isFinite(s())?s():_()));var B=vx(),$e=h(B);Ta($e,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Re){C(Re)}});var de=M($e,2);Zs(de,()=>"slot",!1,(Re,Ze)=>{ke(Re,null,{name:Ca})});var Qe=M(de,2);let te=v(()=>l()!=="thumb"||u());xa(Qe,{get hidden(){return r(te)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ve=M(Qe,2);{var Y=Re=>{ya(Re,{shifted:!1,get captions(){return b()},get position(){return p()},get playerSize(){return n()}})};R(ve,Re=>{f().value!=="off"&&Re(Y)})}var ie=M(ve,2),He=h(ie);ud(He,{get isLive(){return $()},get isPlaying(){return a()},get time(){return r(ne)}}),g(ie);var Ye=M(ie,2);let ye;var Se=h(Ye);va(Se,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return x()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ue,tooltipRightOffset:ue,get ref(){return Me.timeline},set ref(Re){Me.timeline=Re}}),g(Ye),g(B),E(Re=>ye=ee(Ye,1,"timeline svelte-1qfjf44",null,ye,Re),[()=>({visible:r(Ve)})]),kt("mouseenter",B,_e),kt("mouseleave",B,ae),y(t,B),z(),o()}var hx=L("<div><!></div>"),_x={hash:"svelte-7ed4yj",code:`.root.svelte-7ed4yj {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
362
362
 
363
363
  /* USER DEFINED COLORS */
364
364
 
@@ -392,5 +392,5 @@ Try switching the\xA0quality to\xA0Auto.`},Uh=O_;var ns=new Map;ns.set(el.Interf
392
392
  /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);}
393
393
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
394
394
 
395
- /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function nv(t,e){U(e,!0),W(t,vx);let[i,o]=Oe(),n=()=>S(Yt,"$isLive$",i),a=f(e,"sources",7),s=f(e,"store",7),d=f(e,"microStoresRoot",7),l=f(e,"videoConfig",7),u=f(e,"uiConfig",7),v=f(e,"title",7),$=f(e,"thumbUrl",7),p=f(e,"interactiveContainer",7),_=f(e,"interactiveController",7),w=f(e,"subtitles",7),y=f(e,"live",7),C=f(e,"preload",7),T=f(e,"autoplay",7),E=f(e,"volume",7,void 0),P=f(e,"muted",7,void 0),A=f(e,"fromTime",7),I=f(e,"canRewindLive",7),V=f(e,"showAds",7),H=f(e,"adsSlotId",7,void 0),Y=f(e,"adsParams",7,void 0),O=f(e,"adsPreviewParam",7,void 0),J=f(e,"adsAutoplayParam",7,void 0),re=f(e,"duration",7,void 0),Z=f(e,"logoClickable",7),me=f(e,"logoHidden",7),de=f(e,"isMobile",7),Le=f(e,"showNextPrevButtons",7,!1),Me=f(e,"nextButtonActive",7,!1),ve=f(e,"prevButtonActive",7,!1),le=f(e,"endScreenVideoTitle",7,void 0),Ae=f(e,"endScreenVideoThumb",7,void 0),se=f(e,"isOneVideoPlaylist",7,!1),N=f(e,"supportLink",7),Re=f(e,"shadowRootContainer",7,void 0),ie=f(e,"outerContainerRef",7,void 0),je=f(e,"fullScreenTarget",7,void 0),oe=f(e,"failoverHosts",7,void 0),G=f(e,"showMiniTimer",7,!1),K=f(e,"saveRate",7),Ve=f(e,"seekToInteractive",7,Ia.noop),Ne=f(e,"playPrevChapter",7,Ia.noop),et=f(e,"volumeMultiplier",7),xe=f(e,"showAutoplayNext",7),we=f(e,"showEndScreen",7,!0),Be=f(e,"keyboardControls",15,void 0),{subscribers:Xe,stores:nt}=d();lh(u());let ht=qt(),tt=u().logoLink,vt=s().ui.debugPanelVisible,Pt=s().ui.playerSize,Yt=s().state.isLive$,Gt=s().state.isInteractive&&Tu.clientChecker.device.isAndroid,ge=ee(void 0),j=null,Ie=ee(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),bh(s(),nt),ze(()=>{s().ui.isMobile.set(de())});let ae=(X=!1)=>{B(Ie,!0),X?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},He=()=>{if(ht.features.qualityDetailsSubMenuEnabled){let X=Oh(s().videoId);if(X)switch(X.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,X.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,X.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(X.quality);break}}else{Hh(s().videoId),Gp()&&s().actions.internal.setTrafficSavingEnabled(!0);let ti=qp(s().videoId);ti&&s().actions.internal.setQuality(ti)}};function qe(X){var hi,ci,pt;let ti=a()||X;ti&&s().initVideo({container:r(ge),sources:ti,failoverHosts:oe(),subtitles:w(),volumeMultiplier:et()});let di=Ia.safeStorage.get(id)==="true";vt.set(di),A()>0&&s().actions.external.seekTime(A());let qi=de()?ht.volumeDefault:(ci=(hi=E())!=null?hi:Uc())!=null?ci:ht.volumeDefault,ni=(pt=P())!=null?pt:Lh();if(s().actions.external.setVolume(qi),s().actions.external.setMuted(ni),s().getAdmanWrapper().setInitialVolume(ni?0:qi),He(),ht.features.saveRate&&K()){let $o=Dh();$o&&!n()&&s().actions.internal.setPlaybackRate($o)}if(xe()){let $o=Bh();$o&&s().actions.internal.setAutoplayNextEnabled($o)}s().ui.isAutoplay.set(T()),T()?ae():C()&&ht.features.preload&&s().actions.internal.preload()}let it=X=>{if(window.ResizeObserver){let ti,di;j=new ResizeObserver((0,Ia.throttleFn)(qi=>{let ni=qi[0];if(ni.contentBoxSize){let hi=Array.isArray(ni.contentBoxSize)?ni.contentBoxSize[0]:ni.contentBoxSize;ti=hi.inlineSize,di=hi.blockSize}else ni.contentRect&&(ti=ni.contentRect.width,di=ni.contentRect.height);Pt.set({width:ti,height:di})},300)),j.observe(X)}Pt.set({width:X.clientWidth,height:X.clientHeight})},dt=()=>{document.hidden&&s().actions.external.stop()};zt(()=>{var di,qi,ni,hi;Gt&&document.addEventListener("visibilitychange",dt),ht.debugLog&&s().actions.internal.startLogging(),it(r(ge));let X=Xe.map(ci=>ci.init({store:s(),microStores:nt,config:l(),interactiveController:_(),uiConfig:u()})),ti=()=>{Gt&&document.removeEventListener("visibilitychange",dt),j==null||j.disconnect(),X.forEach(ci=>ci.unsubscribe()),s().destroy()};return((di=y())==null?void 0:di.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),ti):((qi=y())==null?void 0:qi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),ti):(((ni=y())==null?void 0:ni.status)==="finished"||((hi=y())==null?void 0:hi.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),ti):(qe(),ti)});function Ze(){r(Ie)?s().actions.external.play():ae(!0)}function Je(){s().actions.external.pause()}function ct(X){s().actions.external.setMuted(X)}function De(){s().actions.external.toggleSubtitle()}function yt(X){de()||X>=0&&X<=1&&s().actions.external.setVolume(X)}function We(X){s().actions.internal.seekTime(X,o0.SeekAction.UNKNOWN)}function At(X){s().actions.external.seekEpisodeStartTime(X)}function ai(){s().actions.external.returnFocusToEpisodes()}function ei(X){s().actions.external.setPlaybackRate(X)}function li(X){s().actions.external.setAutoQualityLimits(X)}let Ui=Cu(ht.view),Ji=l().playerView==="preview";var zi=mx();let bo;ot(zi,Ui);var Ho=h(zi);{var rt=X=>{iv(X,{get store(){return s()},uiConfig:ht,get thumbUrl(){return $()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return H()},get adsParams(){return Y()},get adsPreviewParam(){return O()},get adsAutoplayParam(){return J()},get duration(){return re()},get logoClickable(){return Z()},get logoHidden(){return me()},logoTargetUrl:tt,get nextButtonActive(){return Me()},get prevButtonActive(){return ve()},get endScreenVideoTitle(){return le()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return se()},get supportLink(){return N()},get shadowRootContainer(){return Re()},get outerContainerRef(){return ie()},get fullScreenTarget(){return je()},get showMiniTimer(){return G()},get playerStarted(){return r(Ie)},get seekToInteractive(){return Ve()},get playPrevChapter(){return Ne()},firstStart:ae,seekTime:We,get showEndScreen(){return we()},get showAutoplayNext(){return xe()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(ge)},set videoContainer(ti){B(ge,fe(ti))}})},_t=X=>{var ti=Ue(),di=pe(ti);{var qi=hi=>{ov(hi,{get thumbUrl(){return $()},get outsideDuration(){return re()},get canRewindLive(){return I()},get videoContainer(){return r(ge)},set videoContainer(ci){B(ge,fe(ci))}})},ni=hi=>{ev(hi,{get store(){return s()},uiConfig:ht,get title(){return v()},get thumbUrl(){return $()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return H()},get adsParams(){return Y()},get adsPreviewParam(){return O()},get adsAutoplayParam(){return J()},get duration(){return re()},get logoClickable(){return Z()},get logoHidden(){return me()},logoTargetUrl:tt,get nextButtonActive(){return Me()},get prevButtonActive(){return ve()},get endScreenVideoTitle(){return le()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return se()},get supportLink(){return N()},get shadowRootContainer(){return Re()},get outerContainerRef(){return ie()},get fullScreenTarget(){return je()},get showMiniTimer(){return G()},get playerStarted(){return r(Ie)},get seekToInteractive(){return Ve()},get playPrevChapter(){return Ne()},firstStart:ae,get showEndScreen(){return we()},get showAutoplayNext(){return xe()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(ge)},set videoContainer(ci){B(ge,fe(ci))},get keyboardControls(){return Be()},set keyboardControls(ci){Be(ci)}})};R(di,hi=>{Ji?hi(qi):hi(ni,!1)})}b(X,ti)};R(Ho,X=>{de()?X(rt):X(_t,!1)})}g(zi),k(X=>bo=te(zi,1,"root svelte-7ed4yj",null,bo,X),[()=>({"root--miui-browser":Tu.clientChecker.device.isMobile&&Tu.clientChecker.browser.isMiuiBrowser,"visible-outside":Ji})]),b(t,zi);var Ci=z({initVideo:qe,play:Ze,pause:Je,setMuted:ct,toggleSubtitle:De,setVolume:yt,seekTime:We,seekEpisodeStartTime:At,returnFocusToEpisodes:ai,setPlaybackRate:ei,setAutoQualityLimits:li,get sources(){return a()},set sources(X){a(X)},get store(){return s()},set store(X){s(X)},get microStoresRoot(){return d()},set microStoresRoot(X){d(X)},get videoConfig(){return l()},set videoConfig(X){l(X)},get uiConfig(){return u()},set uiConfig(X){u(X)},get title(){return v()},set title(X){v(X)},get thumbUrl(){return $()},set thumbUrl(X){$(X)},get interactiveContainer(){return p()},set interactiveContainer(X){p(X)},get interactiveController(){return _()},set interactiveController(X){_(X)},get subtitles(){return w()},set subtitles(X){w(X)},get live(){return y()},set live(X){y(X)},get preload(){return C()},set preload(X){C(X)},get autoplay(){return T()},set autoplay(X){T(X)},get volume(){return E()},set volume(X){E(X)},get muted(){return P()},set muted(X){P(X)},get fromTime(){return A()},set fromTime(X){A(X)},get canRewindLive(){return I()},set canRewindLive(X){I(X)},get showAds(){return V()},set showAds(X){V(X)},get adsSlotId(){return H()},set adsSlotId(X){H(X)},get adsParams(){return Y()},set adsParams(X){Y(X)},get adsPreviewParam(){return O()},set adsPreviewParam(X){O(X)},get adsAutoplayParam(){return J()},set adsAutoplayParam(X){J(X)},get duration(){return re()},set duration(X){re(X)},get logoClickable(){return Z()},set logoClickable(X){Z(X)},get logoHidden(){return me()},set logoHidden(X){me(X)},get isMobile(){return de()},set isMobile(X){de(X)},get showNextPrevButtons(){return Le()},set showNextPrevButtons(X){Le(X)},get nextButtonActive(){return Me()},set nextButtonActive(X){Me(X)},get prevButtonActive(){return ve()},set prevButtonActive(X){ve(X)},get endScreenVideoTitle(){return le()},set endScreenVideoTitle(X){le(X)},get endScreenVideoThumb(){return Ae()},set endScreenVideoThumb(X){Ae(X)},get isOneVideoPlaylist(){return se()},set isOneVideoPlaylist(X){se(X)},get supportLink(){return N()},set supportLink(X){N(X)},get shadowRootContainer(){return Re()},set shadowRootContainer(X){Re(X)},get outerContainerRef(){return ie()},set outerContainerRef(X){ie(X)},get fullScreenTarget(){return je()},set fullScreenTarget(X){je(X)},get failoverHosts(){return oe()},set failoverHosts(X){oe(X)},get showMiniTimer(){return G()},set showMiniTimer(X){G(X)},get saveRate(){return K()},set saveRate(X){K(X)},get showAutoplayNext(){return xe()},set showAutoplayNext(X){xe(X)},get seekToInteractive(){return Ve()},set seekToInteractive(X){Ve(X)},get playPrevChapter(){return Ne()},set playPrevChapter(X){Ne(X)},get volumeMultiplier(){return et()},set volumeMultiplier(X){et(X)},get showEndScreen(){return we()},set showEndScreen(X){we(X)},get keyboardControls(){return Be()},set keyboardControls(X){Be(X)}});return o(),Ci}var gx=$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 rv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=gx();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 sv(t,e){let i=f(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");rv(t,{get style(){return r(o)}})}var hx=L('<div class="title svelte-1y9fytq"> </div>'),_x=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),bx={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 av(t,e){W(t,bx);var i=_x(),o=h(i);{var n=d=>{var l=hx(),u=h(l,!0);g(l),k(()=>he(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);sv(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),k(()=>ot(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var p0=require("@vkontakte/videoplayer-shared/es2015"),Xi=require("@vkontakte/videoplayer-shared/es2015"),rc=require("@vkontakte/videoplayer-core/es2015"),Nu=require("@vkontakte/videoplayer-statistics/es2015");var ku=require("@vkontakte/videoplayer-shared/es2015"),Iu=class{constructor(){this.subscription=new ku.Subscription,this.logger=new ku.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[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()}};var $l=require("@vkontakte/videoplayer-shared/es2015");var $x=$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 lv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=$x();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(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 yx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),xx={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 dv(t,e){U(e,!0),W(t,xx);let[i,o]=Oe(),n=()=>S(u,"$interfaceLanguage$",i),a=()=>S(v,"$isMobile$",i),s=Ce(),d=qt(),l=!!s.webApi.pictureInPictureApi,u=s.interfaceLanguage$,v=s.ui.isMobile,$=s.ui.t,p=m(()=>n()&&$("pip_dummy_title")),_=Cu(d.view);var w=yx();te(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),ot(w,_);var y=h(w);let C;var T=h(y);lv(T,{}),g(y);var E=M(y,2),P=h(E,!0);g(E),g(w),k(A=>{C=te(y,1,"dummy-image svelte-1pbsod4",null,C,A),he(P,r(p))},[()=>({desktop:!a()})]),b(t,w),z(),o()}var wx=Object.defineProperty,Sx=(t,e,i)=>e in t?wx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,bl=(t,e,i)=>Sx(t,typeof e!="symbol"?e+"":e,i),cv=(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())}),Cx=460,Tx=280,Yd=class{constructor({enabled:e=!0}={enabled:!0}){bl(this,"playerDomElement"),bl(this,"playerParentShadowRoot"),bl(this,"playerDummyElement"),bl(this,"svelteContext"),bl(this,"pipWindow"),bl(this,"info",{isActive$:new $l.ValueSubject(!1),isEnabled$:new $l.ValueSubject(!1),type:1}),this.info.isEnabled$=new $l.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,$l.detectEmbed)();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 cv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Cx,height:Tx,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(`
396
- `),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=ts(dv,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||(js(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return cv(this,null,function*(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})})}dispose(){return cv(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 n0(t){return t instanceof Yd}var Eu=class{static getLatestSupportedVersion(e){let i=new ra(e),o=new Yd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Zd(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 r0="Inner error. Unexpectedly root annotation container null reference exception",s0="Annotation with such name already exists",a0="Annotation with such name does not exist";var yl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var xl=require("@vkontakte/videoplayer-shared/es2015"),Ix="1",kx=100,Pu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new xl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,xl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},kx);this.subscriptions.add((0,xl.observeElementSize)(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 yl(r0);if(this.annotations.has(e))throw new yl(s0);i.style.zIndex=(o=i.style.zIndex)!=null?o:Ix,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new yl(a0);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(){}};var ka=require("@vkontakte/videoplayer-shared/es2015"),Qo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,ka.assertNonNullable)(e),(0,ka.assertNonNullable)(i),(0,ka.assertNonNullable)(n),n.interactiveData&&(0,ka.assertNonNullable)(o),this.subscription=new ka.Subscription,this.subscription}};var Xd=class extends Qo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Nt(q({},ue(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 Jd=class extends Qo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Nt(q({},ue(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:v}=a.ui,$=Se(v),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 ec=class extends Qo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ue("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}};var l0=require("@vkontakte/videoplayer-shared/es2015");var uv=ue(!1),Au=null,tc=class extends Qo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Nt(q({},uv),{set:(i,o=!1)=>{i!==Se(uv)&&(this.clearTimeout(),uv.set(i),!i&&Au&&(Au=!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 v=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,l0.combine)({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:$,isInteractiveTime$:p,interactiveTimeIndicator:_})=>{var w,y;if(!(!$||!(_!=null&&_.isDisplayed))){if(!p)return this.state$.set(!1);v.tooltipHelpHintActive&&Au===null&&(Au=!0,v.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)}};var Mu=require("@vkontakte/videoplayer-shared/es2015");var ic=class extends Qo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Nt(q({},ue(null)),{toggle:Mu.noop});this.checkIfShouldHide=i=>Ts(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=()=>Mt(this,null,function*(){if(this.checkIfShouldHide(Se(s)))return;let l=Se(this.state$),{isEnded$:u,playbackState$:v}=n.state,{disabledControls$:$}=n.ui.controls,p=Se(u),_=Se(v);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((0,Mu.combine)({graphIsOpened:this.state$,currentGridType:s}).subscribe(v=>Mt(this,[v],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}};var pv=require("@vkontakte/videoplayer-shared/es2015"),oc=class extends Qo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ue(!1),isEnabled$:ue(!1),type$:ue(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 pv.ValueSubject(!1),isEnabled$:new pv.ValueSubject(!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}};var Vu=require("@vkontakte/videoplayer-shared/es2015");var Lu=require("@vkontakte/videoplayer-shared/es2015");var d0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Ex({maxCount:t}):void 0,e!==0?Px({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Ex=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Lu.safeStorage.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}}},Px=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Lu.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Lu.safeStorage.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o(Nt(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 nc=class extends Qo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ue({}),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=d0({maxShowCount:a,timeout:s});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Vu.filterChanged)(),(0,Vu.filter)(v=>v)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var c0=()=>[Xd,Jd,ec,tc,ic,oc,nc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Nt(q({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var wl=require("@vkontakte/videoplayer-shared/es2015");var Ax=Object.defineProperty,Mx=Object.defineProperties,Lx=Object.getOwnPropertyDescriptors,u0=Object.getOwnPropertySymbols,Vx=Object.prototype.hasOwnProperty,Rx=Object.prototype.propertyIsEnumerable,fv=(t,e,i)=>e in t?Ax(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ps=(t,e)=>{for(var i in e||(e={}))Vx.call(e,i)&&fv(t,i,e[i]);if(u0)for(var i of u0(e))Rx.call(e,i)&&fv(t,i,e[i]);return t},Dx=(t,e)=>Mx(t,Lx(e)),Jt=(t,e,i)=>fv(t,typeof e!="symbol"?e+"":e,i),Ru=(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())}),Nx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Xi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,rc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},kn=ee(void 0),Du=class extends HTMLElement{constructor(){super(),Jt(this,"svelteStubComponent"),Jt(this,"svelteRootComponent"),Jt(this,"store"),Jt(this,"microStoresRoot"),Jt(this,"statistics"),Jt(this,"sentry"),Jt(this,"_shadowRoot"),Jt(this,"playerContainer"),Jt(this,"rootContainer"),Jt(this,"shadowRootContainer"),Jt(this,"uiConfig"),Jt(this,"coreConfig"),Jt(this,"statisticsConfig"),Jt(this,"interactiveController"),Jt(this,"interactiveContainer"),Jt(this,"graphMadePause"),Jt(this,"currentPlayingVideoIndex",0),Jt(this,"needToRepeatPlaylist",!1),Jt(this,"videoConfig"),Jt(this,"pictureInPictureApi"),Jt(this,"mediaSessionApi"),Jt(this,"unsubscribePlayerPhaseSubscription"),Jt(this,"logger"),Jt(this,"log"),Jt(this,"subscription"),Jt(this,"interactiveSubscription"),Jt(this,"annotationsApi"),Jt(this,"slotsApi"),Jt(this,"prevIsid"),Jt(this,"isInited",!1),Jt(this,"internalsExposure",null),Jt(this,"shadowDOMCallbacksDisabled",!1),Jt(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:v,statVKAppId:$,refreshStatAuthToken:p,autoplay:_,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:E}=Zd(this.videoConfig,i),P=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&I)return new Nu.OneStat(Ps({movieId:I,albumId:d,place:l,trackCode:v,vkAppId:$,autoplay:(s=_&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:V,refDomain:C,deviceId:T},P&&(!this.isInited||A)&&{projectId:Number(P)}),Ps({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}),wl.devNull.create("ui"),this.logger=new Xi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Xi.Subscription,this.interactiveSubscription=new Xi.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=fe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=ts(av,s)}disconnectedCallback(){var e,i,o,n,a;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),wl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){let{deviceId:o,preload:n,refreshStatAuthToken:a}=Zd(this.videoConfig,i),{unitedVideoId:s}=e;return new Nu.ThinOneStat.ThinOneStat({deviceId:o,movieId:s,preload:n},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var n,a,s,d,l,u,v,$,p;if(!this.videoConfig)return;let{albumId:_,statPlace:w,statAuthToken:y,preload:C,autoplay:T,volume:E,muted:P,fromTime:A,canRewindLive:I,supportLink:V,showAds:H,adsSlotId:Y,adsParams:O={},adsPreviewParam:J,adsAutoplayParam:re,interfaceLanguage:Z,isCyrillicRelatedInterface:me,logoClickable:de,logoHidden:Le,isMobile:Me,isTouch:ve,isAudioDisabled:le,isLiveCatchUpMode:Ae,fullScreenTarget:se,failoverHosts:N,canDownload:Re,callbacks:ie,interactiveData:je,showThumbTimer:oe,additionalButtons:G=[],additionalSettingsMenuItems:K=[],additionalContextMenuItems:Ve=[],repeat:Ne,saveRate:et,volumeMultiplier:xe,showEndScreen:we,showAutoplayNext:Be}=Zd(this.videoConfig,i),{sources:Xe,title:nt,thumbUrl:ht,unitedVideoId:tt,isClip:vt=!1,duration:Pt,adsParams:Yt={},videoEpisodes:Wt,previewThumbsData:Gt,subtitles:ge,live:j}=e,Ie=Ps(Ps({},O),Yt),ae=this.getNextVideoInfo(),He={sources:Xe,title:nt,thumbUrl:ht,subtitles:ge,unitedVideoId:tt,isClip:vt,live:j,albumId:_,statPlace:w,autoplay:T,muted:P,volume:E,fromTime:A,canRewindLive:I,showAds:H,adsSlotId:Y,adsParams:Ie,adsPreviewParam:J,adsAutoplayParam:re,duration:Pt,logoClickable:de,logoHidden:Le,isTouch:ve!=null?ve:Me,repeat:Ne,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},qe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(He)}`});let it=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),dt,Ze=this.createThinOneStat(e,i);(dt||Ze)&&(this.statistics=new fu(dt,Ze,it==null?void 0:it.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new na(this.uiConfig.sentry,{version:ta,env:Oc},{movieId:tt,albumId:_,place:w,autoplay:(a=T&&!this.interactiveController)!=null?a:!1,mobile:ve!=null?ve:Me,clip:vt}),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=Ps(Ps({},this.sentry),na.getInstance());let ct=!!je,De=[],yt="tooltip_interactive_go_back_disabled_first";if(ct&&this.interactiveController){let ei=this.interactiveController.state.isInitialChapter$.getValue(),li=this.interactiveController.getHistoryState();ei&&De.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||De.push("SEEK_TO_INTERACTIVE_BUTTON"),li.hasPrevChapter$.getValue()||(De.push("PLAY_PREV_CHAPTER_BUTTON"),ei||(li.isGoBackLimited$.getValue()?yt="tooltip_interactive_go_back_disabled_limit":yt="tooltip_interactive_go_back_disabled"))}let We=()=>{var ei;this.isInited=!1,this.prevIsid=void 0;let li=(o==null?void 0:o.info.isEnded$.getValue())&&((ei=this.interactiveController)==null?void 0:ei.state.isEndChapter$.getValue());ie.onReplayInteractiveVideo&&!li?ie.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=T1({player:o,interfaceLanguage:Z,isCyrillicRelatedInterface:me,videoId:tt,isClip:vt,isLiveCatchUpMode:Ae,isAudioDisabled:le,statAuthToken:y,callbacks:ie,webApi:qe,videoEpisodes:Wt,previewThumbsData:Gt,canDownload:Re,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:De,isInteractive:ct,saveRate:et,interactiveRanges$:(u=this.interactiveController)==null?void 0:u.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:We,playPrevChapterDisabledTooltip:yt,hasInteractiveBranches:!!((p=($=this.interactiveController)==null?void 0:$.getChapterBranches())!=null&&p.length),additionalButtons:this.uiConfig.features.additionalButtons?G:[],additionalSettingsMenuItems:K!=null?K:[],additionalContextMenuItems:Ve!=null?Ve:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ne&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:At}=this.microStoresRoot=c0(),ai=()=>{var ei,li,Ui,Ji,zi,bo;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(rt=>{var _t;return(_t=ie==null?void 0:ie.onCurrentFormatChanged)==null?void 0:_t.call(ie,rt)})),this.subscription.add(At.interactiveControlsOpacity$.subscribe(rt=>{var _t;rt!==null&&((_t=this==null?void 0:this.interactiveController)==null||_t.setDisabledControls(rt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(rt=>{var _t;return(_t=ie==null?void 0:ie.onThroughputEstimationChanged)==null?void 0:_t.call(ie,rt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(rt=>{var _t;return(_t=ie==null?void 0:ie.onTrafficSavingEnabledChanged)==null?void 0:_t.call(ie,rt)})),this.subscription.add(new Xi.Observable(rt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(_t=>rt.next(_t)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Xi.skip)(1):rt=>rt).subscribe(rt=>{var _t;return(_t=ie==null?void 0:ie.onCurrentPlaybackRateChanged)==null?void 0:_t.call(ie,rt)})),this.subscription.add(this.store.state.volume$.subscribe(rt=>{var _t;return(_t=ie==null?void 0:ie.onVolumeChange)==null?void 0:_t.call(ie,rt)})),this.subscription.add(this.store.state.muted$.subscribe(rt=>{var _t,Ci;return rt?(_t=ie==null?void 0:ie.onMute)==null?void 0:_t.call(ie):(Ci=ie==null?void 0:ie.onUnmute)==null?void 0:Ci.call(ie)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(rt=>{var _t;return(_t=ie==null?void 0:ie.onVideoBitrateChanged)==null?void 0:_t.call(ie,rt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(rt=>{var _t;let Ci=(_t=this.store)==null?void 0:_t.ui.controls.disabledControls$;Ci&&(rt&&!Ci.includes(od)&&Ci.add(od),rt||Ci.remove(od))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(rt=>Ru(this,null,function*(){var _t;if(!rc.clientChecker.browser.isSamsungBrowser||!rt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((_t=this.videoConfig)==null?void 0:_t.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(rt=>{var _t;return(_t=ie==null?void 0:ie.onVSIDChanged)==null?void 0:_t.call(ie,rt)})),this.initMediaSession(),B(kn,fe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Xe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:nt,thumbUrl:ht,subtitles:ge,live:j,preload:C,autoplay:T,muted:P,volume:E,fromTime:A,canRewindLive:I,supportLink:V,showAds:H,adsSlotId:Y,adsParams:Ie,adsPreviewParam:J,adsAutoplayParam:re,duration:Pt,logoClickable:de,logoHidden:Le,isMobile:ve!=null?ve:Me,failoverHosts:N,fullScreenTarget:se,saveRate:et,shadowRootContainer:this.shadowRootContainer,showMiniTimer:oe,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:xe,showEndScreen:we,showAutoplayNext:Be}));let Ho={target:this.playerContainer,props:r(kn)};this.svelteRootComponent=ts(nv,Ho),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ui=(li=(ei=this.videoConfig)==null?void 0:ei.callbacks)==null?void 0:li.onInited)==null||Ui.call(li)),(Ji=this.internalsExposure)==null||Ji.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((bo=(zi=this.videoConfig)==null?void 0:zi.callbacks)!=null&&bo.onDevNullLog)?wl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):wl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?rc.clientChecker.isInited$.subscribe(ei=>{ei&&(console.log("UI SDK async start"),ai())}):ai()}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&&(0,Xi.isNonNullable)(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 Ru(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:v,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:v,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation}});let{isInteractiveExpectation$:p,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(y=>{if(!this.isInited)return;let C=this.store;y?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(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]=Dx(Ps({},y.config),{title:(l==null?void 0:l.title)||y.config.title});let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:C})=>{var T,E,P,A,I,V;if(!this.store||!this.microStoresRoot)return;let H=p.getValue();if(y==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(nd)),y==="action-choice-canceled"){let Y=Se(this.store.state.isPlaying$)||H;if(((P=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?P:(E=this.videoConfig)!=null&&E.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(A=this.videoConfig)==null?void 0:(I=A.callbacks).onDisabledInteractiveClick)==null||V.call(I)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:C})=>{this.store&&y==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(nd)})),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(C=>{var T,E,P;C.length&&((P=(E=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||P.call(E,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,C,T,E;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||E.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(a){this.log({message:a.message})}})}initPlayer(e,i={}){var o,n,a,s,d,l,u,v,$,p,_,w,y,C,T,E,P,A,I,V,H,Y,O,J,re,Z;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Zd(Nx,(0,Xi.cloneDeepWith)(e,me=>me instanceof HTMLElement?me:void 0)),this.uiConfig=ah((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new Xi.InternalsExposure("UI"))),wl.devNull.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:[(0,p0.now)()]}),(0,Xi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(v=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?v:!0),(0,Xi.isNonNullable)(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=(C=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(A=this.uiConfig.ads.preview)!=null?A:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((I=this.uiConfig.showLogo)!=null?I:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(H=this.videoConfig.supportLink)!=null?H:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Y=this.uiConfig.features.endScreen)!=null?Y:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(O=this.uiConfig.features.autoplayNext)!=null?O:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(J=this.uiConfig.features.nextPrevButtons)!=null?J:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((re=this.videoConfig.videos)!=null&&re[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let me={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Eu.getLatestSupportedVersion(me):this.pictureInPictureApi=new ra(me)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Iu:void 0,this.slotsApi=this.uiConfig.features.slots?new xu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Pu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(Z=this.slotsApi)==null||Z.init(this.shadowRootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),n0(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(kn)&&(r(kn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(kn).nextButtonActive=this.isNextButtonActive(),r(kn).prevButtonActive=this.isPrevButtonActive(),r(kn).endScreenVideoTitle=o.nextVideoTitle,r(kn).endScreenVideoThumb=o.nextVideoThumb,r(kn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=Ps({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(kn)&&(r(kn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(kn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(kn).nextButtonActive=this.isNextButtonActive(),r(kn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,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 Ru(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})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){var e;this.log({message:"live waiting recover"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Ru(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((0,Xi.once)()).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),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}unmountComponent(e){e&&js(e)}};var Sl=require("@vkontakte/videoplayer-shared/es2015"),Bu=require("@vkontakte/videoplayer-core/es2015"),Bx=()=>{window.customElements.define("vk-video-player",Du)};
395
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function rv(t,e){U(e,!0),K(t,_x);let[i,o]=Ne(),n=()=>S(Jt,"$isLive$",i),a=m(e,"sources",7),s=m(e,"store",7),d=m(e,"microStoresRoot",7),l=m(e,"videoConfig",7),u=m(e,"uiConfig",7),f=m(e,"title",7),b=m(e,"thumbUrl",7),p=m(e,"interactiveContainer",7),$=m(e,"interactiveController",7),x=m(e,"subtitles",7),_=m(e,"live",7),C=m(e,"preload",7),T=m(e,"autoplay",7),k=m(e,"volume",7,void 0),P=m(e,"muted",7,void 0),A=m(e,"fromTime",7),I=m(e,"canRewindLive",7),V=m(e,"showAds",7),q=m(e,"adsSlotId",7,void 0),G=m(e,"adsParams",7,void 0),H=m(e,"adsPreviewParam",7,void 0),Z=m(e,"adsAutoplayParam",7,void 0),re=m(e,"duration",7,void 0),X=m(e,"logoClickable",7),ce=m(e,"logoHidden",7),ue=m(e,"isMobile",7),Ve=m(e,"showNextPrevButtons",7,!1),Me=m(e,"nextButtonActive",7,!1),_e=m(e,"prevButtonActive",7,!1),ae=m(e,"endScreenVideoTitle",7,void 0),Le=m(e,"endScreenVideoThumb",7,void 0),ne=m(e,"isOneVideoPlaylist",7,!1),B=m(e,"supportLink",7),$e=m(e,"shadowRootContainer",7,void 0),de=m(e,"outerContainerRef",7,void 0),Qe=m(e,"fullScreenTarget",7,void 0),te=m(e,"failoverHosts",7,void 0),ve=m(e,"showMiniTimer",7,!1),Y=m(e,"saveRate",7),ie=m(e,"seekToInteractive",7,Ia.noop),He=m(e,"playPrevChapter",7,Ia.noop),Ye=m(e,"volumeMultiplier",7),ye=m(e,"showAutoplayNext",7),Se=m(e,"showEndScreen",7,!0),Re=m(e,"keyboardControls",15,void 0),{subscribers:Ze,stores:ut}=d();dh(u());let pt=Gt(),at=u().logoLink,Et=s().ui.debugPanelVisible,$t=s().ui.playerSize,Jt=s().state.isLive$,At=s().state.isInteractive&&Tu.clientChecker.device.isAndroid,Dt=J(void 0),O=null,be=J(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),$h(s(),ut),Fe(()=>{var j,ti;s().ui.isMobile.set(ue()),(ti=(j=l().callbacks)==null?void 0:j.onDomReady)==null||ti.call(j)});let se=(j=!1)=>{D(be,!0),j?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Be=()=>{if(pt.features.qualityDetailsSubMenuEnabled){let j=Hh(s().videoId);if(j)switch(j.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,j.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,j.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(j.quality);break}}else{Fh(s().videoId),jp()&&s().actions.internal.setTrafficSavingEnabled(!0);let ti=Wp(s().videoId);ti&&s().actions.internal.setQuality(ti)}};function We(j){var vt,gi,Je;let ti=a()||j;ti&&s().initVideo({container:r(Dt),sources:ti,failoverHosts:te(),subtitles:x(),volumeMultiplier:Ye()});let di=Ia.safeStorage.get(td)==="true";Et.set(di),A()>0&&s().actions.external.seekTime(A());let Fi=ue()?pt.volumeDefault:(gi=(vt=k())!=null?vt:Uc())!=null?gi:pt.volumeDefault,pi=(Je=P())!=null?Je:Vh();if(s().actions.external.setVolume(Fi),s().actions.external.setMuted(pi),s().getAdmanWrapper().setInitialVolume(pi?0:Fi),Be(),pt.features.saveRate&&Y()){let Nt=Bh();Nt&&!n()&&s().actions.internal.setPlaybackRate(Nt)}if(ye()){let Nt=Oh();Nt&&s().actions.internal.setAutoplayNextEnabled(Nt)}s().ui.isAutoplay.set(T()),T()?se():C()&&pt.features.preload&&s().actions.internal.preload()}let je=j=>{if(window.ResizeObserver){let ti,di;O=new ResizeObserver((0,Ia.throttleFn)(Fi=>{let pi=Fi[0];if(pi.contentBoxSize){let vt=Array.isArray(pi.contentBoxSize)?pi.contentBoxSize[0]:pi.contentBoxSize;ti=vt.inlineSize,di=vt.blockSize}else pi.contentRect&&(ti=pi.contentRect.width,di=pi.contentRect.height);$t.set({width:ti,height:di})},300)),O.observe(j)}$t.set({width:j.clientWidth,height:j.clientHeight})},ft=()=>{document.hidden&&s().actions.external.stop()};Qt(()=>{var di,Fi,pi,vt;At&&document.addEventListener("visibilitychange",ft),pt.debugLog&&s().actions.internal.startLogging(),je(r(Dt));let j=Ze.map(gi=>gi.init({store:s(),microStores:ut,config:l(),interactiveController:$(),uiConfig:u()})),ti=()=>{At&&document.removeEventListener("visibilitychange",ft),O==null||O.disconnect(),j.forEach(gi=>gi.unsubscribe()),s().destroy()};return((di=_())==null?void 0:di.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),ti):((Fi=_())==null?void 0:Fi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),ti):(((pi=_())==null?void 0:pi.status)==="finished"||((vt=_())==null?void 0:vt.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),ti):(We(),ti)});function Xe(){r(be)?s().actions.external.play():se(!0)}function it(){s().actions.external.pause()}function ot(j){s().actions.external.setMuted(j)}function Ke(){s().actions.external.toggleSubtitle()}function _t(){var j;(j=s().webApi.slotsApi)!=null&&j.haveSlots()&&s().actions.external.hideControls()}function qt(){var j;(j=s().webApi.slotsApi)!=null&&j.haveSlots()&&s().actions.external.showControls()}function et(j){ue()||j>=0&&j<=1&&s().actions.external.setVolume(j)}function Xt(j){s().actions.internal.seekTime(j,r0.SeekAction.UNKNOWN)}function ni(j){s().actions.external.seekEpisodeStartTime(j)}function tt(){s().actions.external.returnFocusToEpisodes()}function ei(j){s().actions.external.setPlaybackRate(j)}function Hi(j){s().actions.external.setAutoQualityLimits(j)}let Ki=Cu(pt.view),Rt=l().playerView==="preview";var bt=hx();let Ot;st(bt,Ki);var _o=h(bt);{var ln=j=>{ov(j,{get store(){return s()},uiConfig:pt,get thumbUrl(){return b()},get interactiveContainer(){return p()},get live(){return _()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return G()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return Z()},get duration(){return re()},get logoClickable(){return X()},get logoHidden(){return ce()},logoTargetUrl:at,get nextButtonActive(){return Me()},get prevButtonActive(){return _e()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Le()},get isOneVideoPlaylist(){return ne()},get supportLink(){return B()},get shadowRootContainer(){return $e()},get outerContainerRef(){return de()},get fullScreenTarget(){return Qe()},get showMiniTimer(){return ve()},get playerStarted(){return r(be)},get seekToInteractive(){return ie()},get playPrevChapter(){return He()},firstStart:se,seekTime:Xt,get showEndScreen(){return Se()},get showAutoplayNext(){return ye()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(Dt)},set videoContainer(ti){D(Dt,me(ti))}})},Sn=j=>{var ti=Oe(),di=fe(ti);{var Fi=vt=>{nv(vt,{get thumbUrl(){return b()},get outsideDuration(){return re()},get canRewindLive(){return I()},get videoContainer(){return r(Dt)},set videoContainer(gi){D(Dt,me(gi))}})},pi=vt=>{tv(vt,{get store(){return s()},uiConfig:pt,get title(){return f()},get thumbUrl(){return b()},get interactiveContainer(){return p()},get live(){return _()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return G()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return Z()},get duration(){return re()},get logoClickable(){return X()},get logoHidden(){return ce()},logoTargetUrl:at,get nextButtonActive(){return Me()},get prevButtonActive(){return _e()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Le()},get isOneVideoPlaylist(){return ne()},get supportLink(){return B()},get shadowRootContainer(){return $e()},get outerContainerRef(){return de()},get fullScreenTarget(){return Qe()},get showMiniTimer(){return ve()},get playerStarted(){return r(be)},get seekToInteractive(){return ie()},get playPrevChapter(){return He()},firstStart:se,get showEndScreen(){return Se()},get showAutoplayNext(){return ye()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(Dt)},set videoContainer(gi){D(Dt,me(gi))},get keyboardControls(){return Re()},set keyboardControls(gi){Re(gi)}})};R(di,vt=>{Rt?vt(Fi):vt(pi,!1)})}y(j,ti)};R(_o,j=>{ue()?j(ln):j(Sn,!1)})}g(bt),E(j=>Ot=ee(bt,1,"root svelte-7ed4yj",null,Ot,j),[()=>({"root--miui-browser":Tu.clientChecker.device.isMobile&&Tu.clientChecker.browser.isMiuiBrowser,"visible-outside":Rt})]),y(t,bt);var To=z({initVideo:We,play:Xe,pause:it,setMuted:ot,toggleSubtitle:Ke,hideControls:_t,showControls:qt,setVolume:et,seekTime:Xt,seekEpisodeStartTime:ni,returnFocusToEpisodes:tt,setPlaybackRate:ei,setAutoQualityLimits:Hi,get sources(){return a()},set sources(j){a(j)},get store(){return s()},set store(j){s(j)},get microStoresRoot(){return d()},set microStoresRoot(j){d(j)},get videoConfig(){return l()},set videoConfig(j){l(j)},get uiConfig(){return u()},set uiConfig(j){u(j)},get title(){return f()},set title(j){f(j)},get thumbUrl(){return b()},set thumbUrl(j){b(j)},get interactiveContainer(){return p()},set interactiveContainer(j){p(j)},get interactiveController(){return $()},set interactiveController(j){$(j)},get subtitles(){return x()},set subtitles(j){x(j)},get live(){return _()},set live(j){_(j)},get preload(){return C()},set preload(j){C(j)},get autoplay(){return T()},set autoplay(j){T(j)},get volume(){return k()},set volume(j){k(j)},get muted(){return P()},set muted(j){P(j)},get fromTime(){return A()},set fromTime(j){A(j)},get canRewindLive(){return I()},set canRewindLive(j){I(j)},get showAds(){return V()},set showAds(j){V(j)},get adsSlotId(){return q()},set adsSlotId(j){q(j)},get adsParams(){return G()},set adsParams(j){G(j)},get adsPreviewParam(){return H()},set adsPreviewParam(j){H(j)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(j){Z(j)},get duration(){return re()},set duration(j){re(j)},get logoClickable(){return X()},set logoClickable(j){X(j)},get logoHidden(){return ce()},set logoHidden(j){ce(j)},get isMobile(){return ue()},set isMobile(j){ue(j)},get showNextPrevButtons(){return Ve()},set showNextPrevButtons(j){Ve(j)},get nextButtonActive(){return Me()},set nextButtonActive(j){Me(j)},get prevButtonActive(){return _e()},set prevButtonActive(j){_e(j)},get endScreenVideoTitle(){return ae()},set endScreenVideoTitle(j){ae(j)},get endScreenVideoThumb(){return Le()},set endScreenVideoThumb(j){Le(j)},get isOneVideoPlaylist(){return ne()},set isOneVideoPlaylist(j){ne(j)},get supportLink(){return B()},set supportLink(j){B(j)},get shadowRootContainer(){return $e()},set shadowRootContainer(j){$e(j)},get outerContainerRef(){return de()},set outerContainerRef(j){de(j)},get fullScreenTarget(){return Qe()},set fullScreenTarget(j){Qe(j)},get failoverHosts(){return te()},set failoverHosts(j){te(j)},get showMiniTimer(){return ve()},set showMiniTimer(j){ve(j)},get saveRate(){return Y()},set saveRate(j){Y(j)},get showAutoplayNext(){return ye()},set showAutoplayNext(j){ye(j)},get seekToInteractive(){return ie()},set seekToInteractive(j){ie(j)},get playPrevChapter(){return He()},set playPrevChapter(j){He(j)},get volumeMultiplier(){return Ye()},set volumeMultiplier(j){Ye(j)},get showEndScreen(){return Se()},set showEndScreen(j){Se(j)},get keyboardControls(){return Re()},set keyboardControls(j){Re(j)}});return o(),To}var bx=we('<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 sv(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=bx();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}function av(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");sv(t,{get style(){return r(o)}})}var $x=L('<div class="title svelte-1y9fytq"> </div>'),yx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),xx={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 lv(t,e){K(t,xx);var i=yx(),o=h(i);{var n=d=>{var l=$x(),u=h(l,!0);g(l),E(()=>ge(u,e.title)),y(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);av(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),E(()=>st(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),y(t,i)}var m0=require("@vkontakte/videoplayer-shared/es2015"),eo=require("@vkontakte/videoplayer-shared/es2015"),oc=require("@vkontakte/videoplayer-core/es2015"),v0=require("@vkontakte/videoplayer-statistics/es2015");var ku=require("@vkontakte/videoplayer-shared/es2015"),Iu=class{constructor(){this.subscription=new ku.Subscription,this.logger=new ku.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[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=Te(e.state.currentPlaybackRate$),n=Te(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()}};var wl=require("@vkontakte/videoplayer-shared/es2015");var wx=we('<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 dv(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=wx();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(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))),y(t,o)}var Sx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Cx={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function cv(t,e){U(e,!0),K(t,Cx);let[i,o]=Ne(),n=()=>S(u,"$interfaceLanguage$",i),a=()=>S(f,"$isMobile$",i),s=Ie(),d=Gt(),l=!!s.webApi.pictureInPictureApi,u=s.interfaceLanguage$,f=s.ui.isMobile,b=s.ui.t,p=v(()=>n()&&b("pip_dummy_title")),$=Cu(d.view);var x=Sx();ee(x,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),st(x,$);var _=h(x);let C;var T=h(_);dv(T,{}),g(_);var k=M(_,2),P=h(k,!0);g(k),g(x),E(A=>{C=ee(_,1,"dummy-image svelte-1pbsod4",null,C,A),ge(P,r(p))},[()=>({desktop:!a()})]),y(t,x),z(),o()}var Tx=Object.defineProperty,Ix=(t,e,i)=>e in t?Tx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,xl=(t,e,i)=>Ix(t,typeof e!="symbol"?e+"":e,i),uv=(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())}),kx=460,Ex=280,jd=class{constructor({enabled:e=!0}={enabled:!0}){xl(this,"playerDomElement"),xl(this,"playerParentShadowRoot"),xl(this,"playerDummyElement"),xl(this,"svelteContext"),xl(this,"pipWindow"),xl(this,"info",{isActive$:new wl.ValueSubject(!1),isEnabled$:new wl.ValueSubject(!1),type:1}),this.info.isEnabled$=new wl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,wl.detectEmbed)();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 uv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:kx,height:Ex,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(`
396
+ `),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=is(cv,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||(js(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return uv(this,null,function*(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})})}dispose(){return uv(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 s0(t){return t instanceof jd}var Eu=class{static getLatestSupportedVersion(e){let i=new ra(e),o=new jd(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 a0="Inner error. Unexpectedly root annotation container null reference exception",l0="Annotation with such name already exists",d0="Annotation with such name does not exist";var Sl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Cl=require("@vkontakte/videoplayer-shared/es2015"),Px="1",Ax=100,Au=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Cl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Cl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Ax);this.subscriptions.add((0,Cl.observeElementSize)(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 Sl(a0);if(this.annotations.has(e))throw new Sl(l0);i.style.zIndex=(o=i.style.zIndex)!=null?o:Px,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 Sl(d0);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(){}};var ka=require("@vkontakte/videoplayer-shared/es2015"),Wo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,ka.assertNonNullable)(e),(0,ka.assertNonNullable)(i),(0,ka.assertNonNullable)(n),n.interactiveData&&(0,ka.assertNonNullable)(o),this.subscription=new ka.Subscription,this.subscription}};var Yd=class extends Wo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Ht(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 Zd=class extends Wo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Ht(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,b=Te(f),p=()=>b&&Te(u);return o.add(u.subscribe($=>{if(!b)return;let x=Te(s);Te(l)?this.state$.set($):x!==null&&this.state$.set(!x||$)})),o.add(l.subscribe($=>{this.state$.set(!$||p())})),o.add(s.subscribe($=>{if($===null)return;let x=Te(d);if(p()){this.state$.set(!0);return}x&&this.state$.set(!$)})),o}};var Xd=class extends Wo{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}};var c0=require("@vkontakte/videoplayer-shared/es2015");var pv=le(!1),Mu=null,Jd=class extends Wo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Ht(W({},pv),{set:(i,o=!1)=>{i!==Te(pv)&&(this.clearTimeout(),pv.set(i),!i&&Mu&&(Mu=!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(b=>{Te(s)&&b&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,c0.combine)({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:b,isInteractiveTime$:p,interactiveTimeIndicator:$})=>{var x,_;if(!(!b||!($!=null&&$.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Mu===null&&(Mu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(_=(x=n.callbacks)==null?void 0:x.onInteractiveTimeIndicatorHintDeactivated)==null||_.call(x))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Lu=require("@vkontakte/videoplayer-shared/es2015");var ec=class extends Wo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Ht(W({},le(null)),{toggle:Lu.noop});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(Te(s)))return;let l=Te(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:b}=n.ui.controls,p=Te(u),$=Te(f);if(l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),b.remove(Op),!p&&this.graphMadePause&&n.actions.internal.play()}catch(x){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),b.add(Op),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(x){d({message:"Cant show graph"})}}}),o.add((0,Lu.combine)({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}};var fv=require("@vkontakte/videoplayer-shared/es2015"),tc=class extends Wo{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 fv.ValueSubject(!1),isEnabled$:new fv.ValueSubject(!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}};var Ru=require("@vkontakte/videoplayer-shared/es2015");var Vu=require("@vkontakte/videoplayer-shared/es2015");var u0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Mx({maxCount:t}):void 0,e!==0?Lx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Mx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Vu.safeStorage.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}}},Lx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Vu.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Vu.safeStorage.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o(Ht(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 ic=class extends Wo{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=u0({maxShowCount:a,timeout:s});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Ru.filterChanged)(),(0,Ru.filter)(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 p0=()=>[Yd,Zd,Xd,Jd,ec,tc,ic].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Ht(W({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var Tl=require("@vkontakte/videoplayer-shared/es2015");var Vx=Object.defineProperty,Rx=Object.defineProperties,Nx=Object.getOwnPropertyDescriptors,f0=Object.getOwnPropertySymbols,Bx=Object.prototype.hasOwnProperty,Dx=Object.prototype.propertyIsEnumerable,mv=(t,e,i)=>e in t?Vx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,As=(t,e)=>{for(var i in e||(e={}))Bx.call(e,i)&&mv(t,i,e[i]);if(f0)for(var i of f0(e))Dx.call(e,i)&&mv(t,i,e[i]);return t},Ox=(t,e)=>Rx(t,Nx(e)),ai=(t,e,i)=>mv(t,typeof e!="symbol"?e+"":e,i),Nu=(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())}),Hx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:eo.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,oc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},wn=J(void 0),Bu=class extends HTMLElement{constructor(){super(),ai(this,"svelteStubComponent"),ai(this,"svelteRootComponent"),ai(this,"store"),ai(this,"microStoresRoot"),ai(this,"statistics"),ai(this,"sentry"),ai(this,"_shadowRoot"),ai(this,"playerContainer"),ai(this,"rootContainer"),ai(this,"shadowRootContainer"),ai(this,"uiConfig"),ai(this,"coreConfig"),ai(this,"statisticsConfig"),ai(this,"interactiveController"),ai(this,"interactiveContainer"),ai(this,"graphMadePause"),ai(this,"currentPlayingVideoIndex",0),ai(this,"needToRepeatPlaylist",!1),ai(this,"videoConfig"),ai(this,"pictureInPictureApi"),ai(this,"mediaSessionApi"),ai(this,"unsubscribePlayerPhaseSubscription"),ai(this,"logger"),ai(this,"log"),ai(this,"subscription"),ai(this,"interactiveSubscription"),ai(this,"annotationsApi"),ai(this,"slotsApi"),ai(this,"prevIsid"),ai(this,"isInited",!1),ai(this,"internalsExposure",null),ai(this,"shadowDOMCallbacksDisabled",!1),ai(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:f,statVKAppId:b,refreshStatAuthToken:p,autoplay:$,isMobile:x,isTouch:_,refDomain:C,deviceId:T,interactiveData:k}=Pu(this.videoConfig,i),P=(o=k==null?void 0:k.projectInfo)==null?void 0:o.pid,A=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&I)return new v0.OneStat(As({movieId:I,albumId:d,place:l,trackCode:f,vkAppId:b,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:_!=null?_:x,clip:V,refDomain:C,deviceId:T},P&&(!this.isInited||A)&&{projectId:Number(P)}),As({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}),Tl.devNull.create("ui"),this.logger=new eo.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new eo.Subscription,this.interactiveSubscription=new eo.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=me({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=is(lv,s)}disconnectedCallback(){var e,i,o,n,a;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),Tl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},o){var n,a,s,d,l,u,f,b;if(!this.videoConfig)return;let{albumId:p,statPlace:$,statAuthToken:x,preload:_,autoplay:C,volume:T,muted:k,fromTime:P,canRewindLive:A,supportLink:I,showAds:V,adsSlotId:q,adsParams:G={},adsPreviewParam:H,adsAutoplayParam:Z,interfaceLanguage:re,isCyrillicRelatedInterface:X,logoClickable:ce,logoHidden:ue,isMobile:Ve,isTouch:Me,isAudioDisabled:_e,isLiveCatchUpMode:ae,fullScreenTarget:Le,failoverHosts:ne,canDownload:B,callbacks:$e,interactiveData:de,showThumbTimer:Qe,additionalButtons:te=[],additionalSettingsMenuItems:ve=[],additionalContextMenuItems:Y=[],repeat:ie,saveRate:He,volumeMultiplier:Ye,showEndScreen:ye,showAutoplayNext:Se}=Pu(this.videoConfig,i),{sources:Re,title:Ze,thumbUrl:ut,unitedVideoId:pt,isClip:at=!1,duration:Et,adsParams:$t={},videoEpisodes:Jt,previewThumbsData:li,subtitles:At,live:Dt}=e,O=As(As({},G),$t),be=this.getNextVideoInfo(),se={sources:Re,title:Ze,thumbUrl:ut,subtitles:At,unitedVideoId:pt,isClip:at,live:Dt,albumId:p,statPlace:$,autoplay:C,muted:k,volume:T,fromTime:P,canRewindLive:A,showAds:V,adsSlotId:q,adsParams:O,adsPreviewParam:H,adsAutoplayParam:Z,duration:Et,logoClickable:ce,logoHidden:ue,isTouch:Me!=null?Me:Ve,repeat:ie,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Be={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(se)}`});let We=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),je=(We==null?void 0:We.oneStat)||this.createOneStat(e,i);je&&(this.statistics=new fu(je,We==null?void 0:We.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new na(this.uiConfig.sentry,{version:ta,env:Oc},{movieId:pt,albumId:p,place:$,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Me!=null?Me:Ve,clip:at}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry=As(As({},this.sentry),na.getInstance());let Xe=!!de,it=[],ot="tooltip_interactive_go_back_disabled_first";if(Xe&&this.interactiveController){let et=this.interactiveController.state.isInitialChapter$.getValue(),Xt=this.interactiveController.getHistoryState();et&&it.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||it.push("SEEK_TO_INTERACTIVE_BUTTON"),Xt.hasPrevChapter$.getValue()||(it.push("PLAY_PREV_CHAPTER_BUTTON"),et||(Xt.isGoBackLimited$.getValue()?ot="tooltip_interactive_go_back_disabled_limit":ot="tooltip_interactive_go_back_disabled"))}let Ke=()=>{var et;this.isInited=!1,this.prevIsid=void 0;let Xt=(o==null?void 0:o.info.isEnded$.getValue())&&((et=this.interactiveController)==null?void 0:et.state.isEndChapter$.getValue());$e.onReplayInteractiveVideo&&!Xt?$e.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=I1({player:o,interfaceLanguage:re,isCyrillicRelatedInterface:X,videoId:pt,isClip:at,isLiveCatchUpMode:ae,isAudioDisabled:_e,statAuthToken:x,callbacks:$e,webApi:Be,videoEpisodes:Jt,previewThumbsData:li,canDownload:B,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:it,isInteractive:Xe,saveRate:He,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(u=this.interactiveController)==null?void 0:u.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Ke,playPrevChapterDisabledTooltip:ot,hasInteractiveBranches:!!((b=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?te:[],additionalSettingsMenuItems:ve!=null?ve:[],additionalContextMenuItems:Y!=null?Y:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:ie&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:_t}=this.microStoresRoot=p0(),qt=()=>{var et,Xt,ni,tt,ei,Hi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Rt=>{var bt;return(bt=$e==null?void 0:$e.onCurrentFormatChanged)==null?void 0:bt.call($e,Rt)})),this.subscription.add(_t.interactiveControlsOpacity$.subscribe(Rt=>{var bt;Rt!==null&&((bt=this==null?void 0:this.interactiveController)==null||bt.setDisabledControls(Rt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Rt=>{var bt;return(bt=$e==null?void 0:$e.onThroughputEstimationChanged)==null?void 0:bt.call($e,Rt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Rt=>{var bt;return(bt=$e==null?void 0:$e.onTrafficSavingEnabledChanged)==null?void 0:bt.call($e,Rt)})),this.subscription.add(new eo.Observable(Rt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(bt=>Rt.next(bt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,eo.skip)(1):Rt=>Rt).subscribe(Rt=>{var bt;return(bt=$e==null?void 0:$e.onCurrentPlaybackRateChanged)==null?void 0:bt.call($e,Rt)})),this.subscription.add(this.store.state.volume$.subscribe(Rt=>{var bt;return(bt=$e==null?void 0:$e.onVolumeChange)==null?void 0:bt.call($e,Rt)})),this.subscription.add(this.store.state.muted$.subscribe(Rt=>{var bt,Ot;return Rt?(bt=$e==null?void 0:$e.onMute)==null?void 0:bt.call($e):(Ot=$e==null?void 0:$e.onUnmute)==null?void 0:Ot.call($e)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Rt=>{var bt;return(bt=$e==null?void 0:$e.onVideoBitrateChanged)==null?void 0:bt.call($e,Rt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Rt=>{var bt;let Ot=(bt=this.store)==null?void 0:bt.ui.controls.disabledControls$;Ot&&(Rt&&!Ot.includes(id)&&Ot.add(id),Rt||Ot.remove(id))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Rt=>Nu(this,null,function*(){var bt;if(!oc.clientChecker.browser.isSamsungBrowser||!Rt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((bt=this.videoConfig)==null?void 0:bt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Rt=>{var bt;return(bt=$e==null?void 0:$e.onVSIDChanged)==null?void 0:bt.call($e,Rt)})),this.initMediaSession(),D(wn,me({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Re,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ze,thumbUrl:ut,subtitles:At,live:Dt,preload:_,autoplay:C,muted:k,volume:T,fromTime:P,canRewindLive:A,supportLink:I,showAds:V,adsSlotId:q,adsParams:O,adsPreviewParam:H,adsAutoplayParam:Z,duration:Et,logoClickable:ce,logoHidden:ue,isMobile:Me!=null?Me:Ve,failoverHosts:ne,fullScreenTarget:Le,saveRate:He,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Qe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ye,showEndScreen:ye,showAutoplayNext:Se}));let Ki={target:this.playerContainer,props:r(wn)};this.svelteRootComponent=is(rv,Ki),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ni=(Xt=(et=this.videoConfig)==null?void 0:et.callbacks)==null?void 0:Xt.onInited)==null||ni.call(Xt)),(tt=this.internalsExposure)==null||tt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Hi=(ei=this.videoConfig)==null?void 0:ei.callbacks)!=null&&Hi.onDevNullLog)?Tl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Tl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?oc.clientChecker.isInited$.subscribe(et=>{et&&(console.log("UI SDK async start"),qt())}):qt()}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&&(0,eo.isNonNullable)(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 Nu(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?Te(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:u,historyApi:f,videoLoader:b}=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:b,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:p,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(_=>{if(!this.isInited)return;let C=this.store;_?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(_=>{this.store&&this.store.state.isInteractiveExpectation$.set(_)}));let x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(_=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Ox(As({},_.config),{title:(l==null?void 0:l.title)||_.config.title});let C=x?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(_.player,C),x&&(x=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:_,actionType:C})=>{var T,k,P,A,I,V;if(!this.store||!this.microStoresRoot)return;let q=p.getValue();if(_==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(od)),_==="action-choice-canceled"){let G=Te(this.store.state.isPlaying$)||q;if(((P=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?P:(k=this.videoConfig)!=null&&k.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(A=this.videoConfig)==null?void 0:(I=A.callbacks).onDisabledInteractiveClick)==null||V.call(I)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:_,removeAllOpenURI:C})=>{this.store&&_==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(od)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let _=this.interactiveController.getHistoryState();this.subscription.add(_.history$.subscribe(C=>{var T,k,P;C.length&&((P=(k=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||P.call(k,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var _,C,T,k;(_=this.microStoresRoot)==null||_.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(_=>{this.log({message:_.toString()})}))}catch(a){this.log({message:a.message})}})}initPlayer(e,i={}){var o,n,a,s,d,l,u,f,b,p,$,x,_,C,T,k,P,A,I,V,q,G,H,Z,re,X;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Pu(Hx,(0,eo.cloneDeepWith)(e,ce=>ce instanceof HTMLElement?ce:void 0)),this.uiConfig=lh((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new eo.InternalsExposure("UI"))),Tl.devNull.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:[(0,m0.now)()]}),(0,eo.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,eo.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=(b=this.uiConfig.features.pip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?p:!0,this.uiConfig.features.dpip=(x=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?x:!0),this.videoConfig.isTouch=(C=(_=this.uiConfig.isMobile)!=null?_:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(A=this.uiConfig.ads.preview)!=null?A:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((I=this.uiConfig.showLogo)!=null?I:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(q=this.videoConfig.supportLink)!=null?q:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(G=this.uiConfig.features.endScreen)!=null?G:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(H=this.uiConfig.features.autoplayNext)!=null?H:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Z=this.uiConfig.features.nextPrevButtons)!=null?Z:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((re=this.videoConfig.videos)!=null&&re[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ce={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Eu.getLatestSupportedVersion(ce):this.pictureInPictureApi=new ra(ce)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Iu:void 0,this.slotsApi=this.uiConfig.features.slots?new xu: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),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]),s0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(X=this.slotsApi)==null||X.init(this.shadowRootContainer,this.store)}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(wn)&&(r(wn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(wn).nextButtonActive=this.isNextButtonActive(),r(wn).prevButtonActive=this.isPrevButtonActive(),r(wn).endScreenVideoTitle=o.nextVideoTitle,r(wn).endScreenVideoThumb=o.nextVideoThumb,r(wn).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})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(wn)&&(r(wn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(wn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(wn).nextButtonActive=this.isNextButtonActive(),r(wn).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 Nu(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})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){var e;this.log({message:"live waiting recover"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i;return(i=(e=this.statistics)==null?void 0:e.oneStat.getDeviceId())!=null?i:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Nu(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=Te(this.store.state.positionExact$),s=Te(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe((0,eo.once)()).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)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}unmountComponent(e){e&&js(e)}};var Il=require("@vkontakte/videoplayer-shared/es2015"),Du=require("@vkontakte/videoplayer-core/es2015"),Fx=()=>{window.customElements.define("vk-video-player",Bu)};