@vkontakte/videoplayer 1.1.60-dev.48d7e486.0 → 1.1.60-dev.e2ea22dc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2015.cjs.js CHANGED
@@ -1,60 +1,63 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.60-dev.48d7e486.0
3
- * Mon, 31 Mar 2025 10:46:30 GMT
2
+ * @vkontakte/videoplayer v1.1.60-dev.e2ea22dc.0
3
+ * Wed, 02 Apr 2025 11:48:54 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-60/doc/
5
5
  */
6
- "use strict";var X_=Object.create;var md=Object.defineProperty,J_=Object.defineProperties,e$=Object.getOwnPropertyDescriptor,t$=Object.getOwnPropertyDescriptors,i$=Object.getOwnPropertyNames,hv=Object.getOwnPropertySymbols,o$=Object.getPrototypeOf,_v=Object.prototype.hasOwnProperty,n$=Object.prototype.propertyIsEnumerable;var $v=t=>{throw TypeError(t)};var Sf=(t,e,i)=>e in t?md(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,$=(t,e)=>{for(var i in e||(e={}))_v.call(e,i)&&Sf(t,i,e[i]);if(hv)for(var i of hv(e))n$.call(e,i)&&Sf(t,i,e[i]);return t},zt=(t,e)=>J_(t,t$(e));var r$=(t,e)=>{for(var i in e)md(t,i,{get:e[i],enumerable:!0})},bv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of i$(e))!_v.call(t,n)&&n!==i&&md(t,n,{get:()=>e[n],enumerable:!(o=e$(e,n))||o.enumerable});return t};var yv=(t,e,i)=>(i=t!=null?X_(o$(t)):{},bv(e||!t||!t.__esModule?md(i,"default",{value:t,enumerable:!0}):i,t)),s$=t=>bv(md({},"__esModule",{value:!0}),t);var An=(t,e,i)=>Sf(t,typeof e!="symbol"?e+"":e,i),Tf=(t,e,i)=>e.has(t)||$v("Cannot "+i);var Ri=(t,e,i)=>(Tf(t,e,"read from private field"),i?i.call(t):e.get(t)),Vs=(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),Ua=(t,e,i,o)=>(Tf(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),xv=(t,e,i)=>(Tf(t,e,"access private method"),i);var Ct=(t,e,i)=>new Promise((o,n)=>{var r=a=>{try{d(i.next(a))}catch(c){n(c)}},l=a=>{try{d(i.throw(a))}catch(c){n(c)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(r,l);d((i=i.apply(t,e)).next())});var s3={};r$(s3,{ControlButtonType:()=>qd,GridTypes:()=>Ur,InterfaceLanguage:()=>ud.InterfaceLanguage,MenuItemType:()=>xl,PlayerPhase:()=>Fs,VERSION:()=>xa,VKNumericLanguage:()=>ud.VKNumericLanguage,VideoFormat:()=>Cf.VideoFormat,VideoQuality:()=>Cf.VideoQuality,loadVKLangPack:()=>ud.loadVKLangPack,registerPlayerWebComponent:()=>r3});module.exports=s$(s3);var Oo=Symbol("$state"),fs=Symbol("$state metadata"),vd=Symbol("legacy props"),wv=Symbol("");var _c=!0;var Cv,Sv,If=(Sv=(Cv=globalThis.process)==null?void 0:Cv.env)==null?void 0:Sv.NODE_ENV;If||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var We=If&&!If.toLowerCase().includes("prod");var Rr=Array.isArray,Tv=Array.prototype.indexOf,gd=Array.from,kf=Object.keys,co=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,$c=Object.getOwnPropertyDescriptors,Ef=Object.prototype,Iv=Array.prototype,ms=Object.getPrototypeOf;function Rs(t){return typeof t=="function"}var Yt=()=>{};function kv(t){return t()}function Ns(t){for(var e=0;e<t.length;e++)t[e]()}var bc=!1,Pv=!1,Pf=[],Ev=[];function Av(){bc=!1;let t=Pf.slice();Pf=[],Ns(t)}function a$(){Pv=!1;let t=Ev.slice();Ev=[],Ns(t)}function Xo(t){bc||(bc=!0,queueMicrotask(Av)),Pf.push(t)}function Mv(){bc&&Av(),Pv&&a$()}function yc(t){return t===this.v}function za(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Lv(t,e){return t!==e}function Wa(t){return!za(t,this.v)}function Vv(){if(We){let t=new Error(`derived_references_self
6
+ "use strict";var c0=Object.create;var xl=Object.defineProperty,u0=Object.defineProperties,p0=Object.getOwnPropertyDescriptor,f0=Object.getOwnPropertyDescriptors,m0=Object.getOwnPropertyNames,cv=Object.getOwnPropertySymbols,v0=Object.getPrototypeOf,uv=Object.prototype.hasOwnProperty,g0=Object.prototype.propertyIsEnumerable;var pv=t=>{throw TypeError(t)};var Vu=(t,e,i)=>e in t?xl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,q=(t,e)=>{for(var i in e||(e={}))uv.call(e,i)&&Vu(t,i,e[i]);if(cv)for(var i of cv(e))g0.call(e,i)&&Vu(t,i,e[i]);return t},Vt=(t,e)=>u0(t,f0(e));var h0=(t,e)=>{for(var i in e)xl(t,i,{get:e[i],enumerable:!0})},fv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of m0(e))!uv.call(t,n)&&n!==i&&xl(t,n,{get:()=>e[n],enumerable:!(o=p0(e,n))||o.enumerable});return t};var mv=(t,e,i)=>(i=t!=null?c0(v0(t)):{},fv(e||!t||!t.__esModule?xl(i,"default",{value:t,enumerable:!0}):i,t)),_0=t=>fv(xl({},"__esModule",{value:!0}),t);var On=(t,e,i)=>Vu(t,typeof e!="symbol"?e+"":e,i),Ru=(t,e,i)=>e.has(t)||pv("Cannot "+i);var Ei=(t,e,i)=>(Ru(t,e,"read from private field"),i?i.call(t):e.get(t)),ms=(t,e,i)=>e.has(t)?pv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Sa=(t,e,i,o)=>(Ru(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),vv=(t,e,i)=>(Ru(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 bx={};h0(bx,{ControlButtonType:()=>xd,GridTypes:()=>Tr,InterfaceLanguage:()=>gl.InterfaceLanguage,MenuItemType:()=>el,PlayerPhase:()=>xs,VERSION:()=>Xs,VKNumericLanguage:()=>gl.VKNumericLanguage,VideoFormat:()=>Eu.VideoFormat,VideoQuality:()=>Eu.VideoQuality,loadVKLangPack:()=>gl.loadVKLangPack,registerPlayerWebComponent:()=>_x});module.exports=_0(bx);var vs="[",Ns="[!",Ds="]",Yr={};var Ai=Symbol(),mi=Symbol("filename"),gv=Symbol("hmr"),hv="http://www.w3.org/1999/xhtml",Nu="http://www.w3.org/2000/svg";var sc=!0;var _v,bv,Du=(bv=(_v=globalThis.process)==null?void 0:_v.env)==null?void 0:bv.NODE_ENV;Du||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Te=Du&&!Du.toLowerCase().includes("prod");var Bo=Symbol("$state"),jr=Symbol("$state metadata"),wl=Symbol("legacy props"),$v=Symbol("");var br=Array.isArray,yv=Array.prototype.indexOf,Sl=Array.from,Bu=Object.keys,no=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,ac=Object.getOwnPropertyDescriptors,Ou=Object.prototype,xv=Array.prototype,Zr=Object.getPrototypeOf;function gs(t){return typeof t=="function"}var ne=()=>{};function wv(t){return t()}function hs(t){for(var e=0;e<t.length;e++)t[e]()}var Cl=[],Hu=[];function Sv(){var t=Cl;Cl=[],hs(t)}function b0(){var t=Hu;Hu=[],hs(t)}function Go(t){Cl.length===0&&queueMicrotask(Sv),Cl.push(t)}function Fu(){Cl.length>0&&Sv(),Hu.length>0&&b0()}function lc(t){return t===this.v}function Ca(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Cv(t,e){return t!==e}function Ta(t){return!Ca(t,this.v)}function Tv(){if(Te){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 Rv(t){if(We){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 Iv(t){if(Te){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(We){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(We){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 kv(){if(Te){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ev(t){if(Te){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 Dv(){if(We){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 Av(){if(Te){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 Ov(){if(We){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 Pv(){if(Te){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 Hv(){if(We){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 Fv(t){if(We){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 Mv(){if(Te){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Lv(t){if(Te){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 Uv(t){if(We){let e=new Error(`rune_outside_svelte
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 Vv(t){if(Te){let e=new Error(`props_rest_readonly
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 Rv(t){if(Te){let e=new Error(`rune_outside_svelte
19
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
20
- 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 zv(){if(We){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 Wv(){if(We){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(We){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 Kv(){if(We){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 Jr=!1,es=!1;function Qv(){Jr=!0}var qa="[",aa="[!",la="]",vs={};var Zi=Symbol(),Si=Symbol("filename"),Gv=Symbol("hmr"),da="http://www.w3.org/2000/svg";var hd=null;function gs(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 Nv(){if(Te){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Dv(){if(Te){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Bv(){if(Te){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Ov(){if(Te){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Or=!1,Hr=!1;function Hv(){Or=!0}var Tl=null;function Xr(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
21
23
  `),n=[`
22
- `];for(let r=0;r<o.length;r++){let l=o[r];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;co(e,"stack",{value:n.join(`
23
- `)}),co(e,"name",{value:`${t}Error`})}return e}var ca="font-weight: bold",ua="font-weight: normal";function jv(t,e,i){We?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;no(e,"stack",{value:n.join(`
25
+ `)}),no(e,"name",{value:`${t}Error`})}return e}var Bs=new Set,Ia=new Map;function Ku(t){Bs=t}function Hi(t,e){var i={f:0,v:t,reactions:null,equals:lc,rv:0,wv:0};return Te&&Hr&&(i.created=e!=null?e:Xr("CreatedAt"),i.debug=null),i}function te(t){return $0(Hi(t))}function es(t,e=!1){var o,n;let i=Hi(t);return e||(i.equals=Ta),Or&&Ct!==null&&Ct.l!==null&&((n=(o=Ct.l).s)!=null?n:o.s=[]).push(i),i}function $0(t){return Dt!==null&&!Un&&(Dt.f&2)!==0&&($r===null?zv([t]):$r.push(t)),t}function O(t,e){return Dt!==null&&!Un&&Fr()&&(Dt.f&18)!==0&&($r===null||!$r.includes(t))&&Ov(),ka(t,e)}function ka(t,e){var o;if(!t.equals(e)){var i=t.v;if(Hs?Ia.set(t,e):Ia.set(t,i),t.v=e,t.wv=kl(),Te&&Hr&&(t.updated=Xr("UpdatedAt"),yt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),Uv(t,2048),Fr()&&yt!==null&&(yt.f&1024)!==0&&(yt.f&96)===0&&(Fn===null?qv([t]):Fn.push(t)),Te&&Bs.size>0){let n=Array.from(Bs);for(let a of n)(a.f&1024)!==0&&Zo(a,4096),_s(a)&&Ea(a);Bs.clear()}}return e}function Uv(t,e){var i=t.reactions;if(i!==null)for(var o=Fr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===yt)){if(Te&&(d&262144)!==0){Bs.add(s);continue}Zo(s,e),(d&1280)!==0&&((d&2)!==0?Uv(s,4096):Aa(s))}}}function m(t){var e=2050,i=Dt!==null&&(Dt.f&2)!==0?Dt:null;yt===null||i!==null&&(i.f&256)!==0?e|=256:yt.f|=1048576;let o={ctx:Ct,deps:null,effects:null,equals:lc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:yt};return Te&&Hr&&(o.created=Xr("CreatedAt")),o}function xr(t){let e=m(t);return e.equals=Ta,e}function dc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)so(e[i])}}var Wu=[];function y0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function x0(t){var e,i=yt;if(ro(y0(t)),Te){let o=Bs;Ku(new Set);try{Wu.includes(t)&&Tv(),Wu.push(t),dc(t),e=cc(t)}finally{ro(i),Ku(o),Wu.pop()}}else try{dc(t),e=cc(t)}finally{ro(i)}return e}function Gu(t){var e=x0(t),i=(ts||(t.f&256)!==0)&&t.deps!==null?4096:1024;Zo(t,i),t.equals(e)||(t.v=e,t.wv=kl())}var Fs="font-weight: bold",Us="font-weight: normal";function Kv(t,e,i){Te?console.warn(`%c[svelte] hydration_attribute_changed
24
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
25
- https://svelte.dev/e/hydration_attribute_changed`,ca,ua):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Zv(t){We?console.warn(`%c[svelte] hydration_html_changed
27
+ https://svelte.dev/e/hydration_attribute_changed`,Fs,Us):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Wv(t){Te?console.warn(`%c[svelte] hydration_html_changed
26
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"}
27
- https://svelte.dev/e/hydration_html_changed`,ca,ua):console.warn("https://svelte.dev/e/hydration_html_changed")}function pa(t){We?console.warn(`%c[svelte] hydration_mismatch
29
+ https://svelte.dev/e/hydration_html_changed`,Fs,Us):console.warn("https://svelte.dev/e/hydration_html_changed")}function zs(t){Te?console.warn(`%c[svelte] hydration_mismatch
28
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"}
29
- https://svelte.dev/e/hydration_mismatch`,ca,ua):console.warn("https://svelte.dev/e/hydration_mismatch")}function Xv(){We?console.warn(`%c[svelte] lifecycle_double_unmount
31
+ https://svelte.dev/e/hydration_mismatch`,Fs,Us):console.warn("https://svelte.dev/e/hydration_mismatch")}function Qv(){Te?console.warn(`%c[svelte] lifecycle_double_unmount
30
32
  %cTried to unmount a component that was not mounted
31
- https://svelte.dev/e/lifecycle_double_unmount`,ca,ua):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Jv(t,e,i){We?console.warn(`%c[svelte] ownership_invalid_binding
33
+ https://svelte.dev/e/lifecycle_double_unmount`,Fs,Us):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Gv(t,e,i){Te?console.warn(`%c[svelte] ownership_invalid_binding
32
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}
33
- https://svelte.dev/e/ownership_invalid_binding`,ca,ua):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Lf(t,e){We?console.warn(`%c[svelte] ownership_invalid_mutation
35
+ https://svelte.dev/e/ownership_invalid_binding`,Fs,Us):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Yu(t,e){Te?console.warn(`%c[svelte] ownership_invalid_mutation
34
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"}
35
- https://svelte.dev/e/ownership_invalid_mutation`,ca,ua):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function xc(t){We?console.warn(`%c[svelte] state_proxy_equality_mismatch
37
+ https://svelte.dev/e/ownership_invalid_mutation`,Fs,Us):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function uc(t){Te?console.warn(`%c[svelte] state_proxy_equality_mismatch
36
38
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
37
- https://svelte.dev/e/state_proxy_equality_mismatch`,ca,ua):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var l$={},d$=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,c$=/@(.+):(\d+):(\d+)$/;function u$(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
38
- `)){let n=(i=d$.exec(o))!=null?i:c$.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function eg(){var e;let t=(e=u$())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=l$[o.file];if(!n){if(i===0)return null;continue}for(let r of n){if(r.end==null)return null;if(r.start.line<o.line&&r.end.line>o.line)return r.component}}return null}var wc=Symbol("ADD_OWNER");function Rf(t,e,i=!1,o=!1){if(t&&!i){let n=en,r=t[fs];if(r&&!Bf(r,n)){let l=Df(r);e&&e[Si]!==n[Si]&&!o&&Jv(n[Si],e[Si],l[Si])}}Vf(t,e,new Set)}function Nf(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 Vf(t,e,i){let o=t==null?void 0:t[fs];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),wc in t&&t[wc])Ao(()=>{t[wc](e)});else{var n=ms(t);if(n===Object.prototype)for(let r in t)Vf(t[r],e,i);else if(n===Array.prototype)for(let r=0;r<t.length;r+=1)Vf(t[r],e,i)}}}function Bf(t,e){return t.owners===null?!0:t.owners.has(e)||[...t.owners].some(i=>i[Si]===(e==null?void 0:e[Si]))||t.parent!==null&&Bf(t.parent,e)}function Df(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Df(t.parent)}var p$=!1;function tg(t){if(p$)return;let e=eg();if(e&&!Bf(t,e)){let i=Df(t);i[Si]!==e[Si]?Lf(e[Si],i[Si]):Lf()}}function Qa(t){if(We){let e=new Error(`lifecycle_outside_component
39
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Fs,Us):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var je=!1;function ao(t){je=t}var mt;function vi(t){if(t===null)throw zs(),Yr;return mt=t}function Ni(){return vi(Eo(mt))}function g(t){if(je){if(Eo(mt)!==null)throw zs(),Yr;mt=t}}function be(t=1){if(je){for(var e=t,i=mt;e--;)i=Eo(i);mt=i}}function Pa(){for(var t=0,e=mt;;){if(e.nodeType===8){var i=e.data;if(i===Ds){if(t===0)return e;t-=1}else(i===vs||i===Ns)&&(t+=1)}var o=Eo(e);e.remove(),e=o}}function pe(t,e=null,i){var u,f;var o=null;if(Te&&Hr&&(o=Xr("CreatedAt")),typeof t!="object"||t===null||Bo in t)return t;let n=Zr(t);if(n!==Ou&&n!==xv)return t;var a=new Map,s=br(t),d=Hi(0);s&&a.set("length",Hi(t.length,o));var l;if(Te)if(l={parent:e,owners:null},i){let _=(f=(u=i.v)==null?void 0:u[jr])==null?void 0:f.owners;l.owners=_?new Set(_):null}else l.owners=e===null?Ct!==null?new Set([Ct.function]):null:new Set;return new Proxy(t,{defineProperty(_,p,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&Nv();var y=a.get(p);return y===void 0?(y=Hi($.value,o),a.set(p,y)):O(y,pe($.value,l)),!0},deleteProperty(_,p){var $=a.get(p);if($===void 0)p in _&&a.set(p,Hi(Ai,o));else{if(s&&typeof p=="string"){var y=a.get("length"),w=Number(p);Number.isInteger(w)&&w<y.v&&O(y,w)}O($,Ai),Yv(d)}return!0},get(_,p,$){var A;if(Te&&p===jr)return l;if(p===Bo)return t;var y=a.get(p),w=p in _;if(y===void 0&&(!w||(A=Hn(_,p))!=null&&A.writable)&&(y=Hi(pe(w?_[p]:Ai,l),o),a.set(p,y)),y!==void 0){var S=r(y);if(Te){var I=S==null?void 0:S[jr];I&&(I==null?void 0:I.parent)!==l&&ju(l,I)}return S===Ai?void 0:S}return Reflect.get(_,p,$)},getOwnPropertyDescriptor(_,p){var $=Reflect.getOwnPropertyDescriptor(_,p);if($&&"value"in $){var y=a.get(p);y&&($.value=r(y))}else if($===void 0){var w=a.get(p),S=w==null?void 0:w.v;if(w!==void 0&&S!==Ai)return{enumerable:!0,configurable:!0,value:S,writable:!0}}return $},has(_,p){var S;if(Te&&p===jr||p===Bo)return!0;var $=a.get(p),y=$!==void 0&&$.v!==Ai||Reflect.has(_,p);if($!==void 0||yt!==null&&(!y||(S=Hn(_,p))!=null&&S.writable)){$===void 0&&($=Hi(y?pe(_[p],l):Ai,o),a.set(p,$));var w=r($);if(w===Ai)return!1}return y},set(_,p,$,y){var z;var w=a.get(p),S=p in _;if(s&&p==="length")for(var I=$;I<w.v;I+=1){var A=a.get(I+"");A!==void 0?O(A,Ai):I in _&&(A=Hi(Ai,o),a.set(I+"",A))}if(w===void 0?(!S||(z=Hn(_,p))!=null&&z.writable)&&(w=Hi(void 0,o),O(w,pe($,l)),a.set(p,w)):(S=w.v!==Ai,O(w,pe($,l))),Te){var P=$==null?void 0:$[jr];P&&(P==null?void 0:P.parent)!==l&&ju(l,P),jv(l)}var E=Reflect.getOwnPropertyDescriptor(_,p);if(E!=null&&E.set&&E.set.call(y,$),!S){if(s&&typeof p=="string"){var T=a.get("length"),R=Number(p);Number.isInteger(R)&&R>=T.v&&O(T,R+1)}Yv(d)}return!0},ownKeys(_){r(d);var p=Reflect.ownKeys(_).filter(w=>{var S=a.get(w);return S===void 0||S.v!==Ai});for(var[$,y]of a)y.v!==Ai&&!($ in _)&&p.push($);return p},setPrototypeOf(){Dv()}})}function Yv(t,e=1){O(t,t.v+e)}function pc(t){return t!==null&&typeof t=="object"&&Bo in t?t[Bo]:t}function Zv(){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(pc(this[l])===a){uc("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(pc(this[l])===a){uc("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(pc(this[l])===a){uc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var qs,Xv,El,Jv,eg;function fc(){if(qs===void 0){qs=window,Xv=document,El=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;Jv=Hn(e,"firstChild").get,eg=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,Te&&(t.__svelte_meta=null,Zv())}}function Xo(t=""){return document.createTextNode(t)}function gi(t){return Jv.call(t)}function Eo(t){return eg.call(t)}function h(t,e){if(!je)return gi(t);var i=gi(mt);if(i===null)i=mt.appendChild(Xo());else if(e&&i.nodeType!==3){var o=Xo();return i==null||i.before(o),vi(o),o}return vi(i),i}function ve(t,e){var n,a;if(!je){var i=gi(t);return i.nodeType===8&&i.data===""?Eo(i):i}if(e&&((n=mt)==null?void 0:n.nodeType)!==3){var o=Xo();return(a=mt)==null||a.before(o),vi(o),o}return mt}function M(t,e=1,i=!1){let o=je?mt:t;for(var n;e--;)n=o,o=Eo(o);if(!je)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=Xo();return o===null?n==null||n.after(s):o.before(s),vi(s),s}return vi(o),o}function Al(t){t.textContent=""}var tg=new WeakSet,mc=!1,Ll=!1,Pl=null,Ks=!1,Hs=!1;function Ju(t){Hs=t}var Ml=[],gc=[],Dt=null,Un=!1;function $o(t){Dt=t}var yt=null;function ro(t){yt=t}var $r=null;function zv(t){$r=t}var Jo=null,qn=0,Fn=null;function qv(t){Fn=t}var sg=1,hc=0,ts=!1,Il=null;function kl(){return++sg}function _s(t){var _,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,a,s=(e&512)!==0,d=o&&yt!==null&&!ts,l=i.length;if(s||d){var u=t,f=u.parent;for(n=0;n<l;n++)a=i[n],(s||!((_=a==null?void 0:a.reactions)!=null&&_.includes(u)))&&((p=a.reactions)!=null?p:a.reactions=[]).push(u);s&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<l;n++)if(a=i[n],_s(a)&&Gu(a),a.wv>t.wv)return!0}(!o||yt!==null&&!ts)&&Zo(t,1024)}return!1}function ig(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 mc=!1,t}function og(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function La(t,e,i,o){var f,_;if(mc){if(i===null&&(mc=!1),og(e))throw t;return}if(i!==null&&(mc=!0),!Te||o===null||!(t instanceof Error)||tg.has(t)){ig(t,e);return}tg.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let s=o;for(;s!==null;){if(Te){var d=(_=s.function)==null?void 0:_[mi];if(d){let p=d.split("/").pop();n.push(p)}}s=s.p}let l=El?" ":" ";no(t,"message",{value:t.message+`
40
+ ${n.map(p=>`
41
+ ${l}in ${p}`).join("")}
42
+ `}),no(t,"component_stack",{value:n});let u=t.stack;if(u){let p=u.split(`
43
+ `),$=[];for(let y=0;y<p.length;y++){let w=p[y];w.includes("svelte/src/internal")||$.push(w)}no(t,"stack",{value:$.join(`
44
+ `)})}if(ig(t,e),og(e))throw t}function ag(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?ag(a,e,!1):e===a&&(i?Zo(a,2048):(a.f&1024)!==0&&Zo(a,4096),Aa(a))}}function cc(t){var $,y;var e=Jo,i=qn,o=Fn,n=Dt,a=ts,s=$r,d=Ct,l=Un,u=t.f;Jo=null,qn=0,Fn=null,ts=(u&256)!==0&&(Un||!Ks||Dt===null),Dt=(u&96)===0?t:null,$r=null,Rl(t.ctx),Un=!1,hc++;try{var f=(0,t.fn)(),_=t.deps;if(Jo!==null){var p;if(Vl(t,qn),_!==null&&qn>0)for(_.length=qn+Jo.length,p=0;p<Jo.length;p++)_[qn+p]=Jo[p];else t.deps=_=Jo;if(!ts)for(p=qn;p<_.length;p++)((y=($=_[p]).reactions)!=null?y:$.reactions=[]).push(t)}else _!==null&&qn<_.length&&(Vl(t,qn),_.length=qn);if(Fr()&&Fn!==null&&!Un&&_!==null&&(t.f&6146)===0)for(p=0;p<Fn.length;p++)ag(Fn[p],t);return n!==null&&(hc++,Fn!==null&&(o===null?o=Fn:o.push(...Fn))),f}finally{Jo=e,qn=i,Fn=o,Dt=n,ts=a,$r=s,Rl(d),Un=l}}function w0(t,e){let i=e.reactions;if(i!==null){var o=yv.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(Jo===null||!Jo.includes(e))&&(Zo(e,4096),(e.f&768)===0&&(e.f^=512),dc(e),Vl(e,0))}function Vl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)w0(t,i[o])}function Ea(t){var e=t.f;if((e&16384)===0){Zo(t,1024);var i=yt,o=Ct,n=Ks;if(yt=t,Ks=!0,Te){var a=en;Nl(t.component_function)}try{(e&16)!==0?lg(t):tp(t),ep(t);var s=cc(t);t.teardown=typeof s=="function"?s:null,t.wv=sg;var d=t.deps;if(Te&&Hr&&(t.f&2048)!==0&&d!==null)for(let u=0;u<d.length;u++){var l=d[u];l.trace_need_increase&&(l.wv=kl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Te&&gc.push(t)}catch(u){La(u,t,i,o||t.ctx)}finally{Ks=n,yt=i,Te&&Nl(a)}}}function ng(){console.error("Last ten effects were: ",gc.slice(-10).map(t=>t.fn)),gc=[]}function S0(){try{Av()}catch(t){if(Te&&no(t,"stack",{value:""}),Pl!==null)if(Te)try{La(t,Pl,null,null)}catch(e){throw ng(),e}else La(t,Pl,null,null);else throw Te&&ng(),t}}function Zu(){var t=Ks;try{var e=0;for(Ks=!0;Ml.length>0;){e++>1e3&&S0();var i=Ml,o=i.length;Ml=[];for(var n=0;n<o;n++){var a=T0(i[n]);C0(a)}}}finally{Ll=!1,Ks=t,Pl=null,Te&&(gc=[]),Ia.clear()}}function C0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if((o.f&24576)===0)try{_s(o)&&(Ea(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?ip(o):o.fn=null))}catch(n){La(n,o,null,o.ctx)}}}function Aa(t){Ll||(Ll=!0,queueMicrotask(Zu));for(var e=Pl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Ml.push(e)}function T0(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=Dt;try{Dt=i,_s(i)&&Ea(i)}catch(u){La(u,i,null,i.ctx)}finally{Dt=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 Va(t){var e;for(t&&(Ll=!0,Zu(),e=t()),Fu();Ml.length>0;)Ll=!0,Zu(),Fu();return e}function yo(){return St(this,null,function*(){yield Promise.resolve(),Va()})}function r(t){var e=t.f,i=(e&2)!==0;if(Il!==null&&Il.add(t),Dt!==null&&!Un){$r!==null&&$r.includes(t)&&Bv();var o=Dt.deps;t.rv<hc&&(t.rv=hc,Jo===null&&o!==null&&o[qn]===t?qn++:Jo===null?Jo=[t]:(!ts||!Jo.includes(t))&&Jo.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,a=n.parent;a!==null&&(a.f&256)===0&&(n.f^=256)}if(i&&(n=t,_s(n)&&Gu(n)),Te&&Hr&&Tl!==null&&Dt!==null&&Tl.reaction===Dt){if(t.debug)t.debug();else if(t.created){var s=Tl.entries.get(t);s===void 0&&(s={read:[]},Tl.entries.set(t,s)),s.read.push(Xr("TracedAt"))}}return Hs&&Ia.has(t)?Ia.get(t):t.v}function bt(t){var e=Un;try{return Un=!0,t()}finally{Un=e}}var I0=-7169;function Zo(t,e){t.f=t.f&I0|e}function bc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Bo in t)_c(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Bo in i&&_c(i)}}}function _c(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{_c(t[o],e)}catch(n){}let i=Zr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=ac(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function np(t){yt===null&&Dt===null&&Ev(t),Dt!==null&&(Dt.f&256)!==0&&yt===null&&kv(),Hs&&Iv(t)}function k0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Ws(t,e,i,o=!0){var l;var n=yt;if(Te)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Ct,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Te&&(a.component_function=en),i)try{Ea(a),a.f|=32768}catch(u){throw so(a),u}else e!==null&&Aa(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&&k0(a,n),Dt!==null&&(Dt.f&2)!==0)){var d=Dt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function tn(t){let e=Ws(8,null,!1);return Zo(e,1024),e.teardown=t,e}function Ze(t){var n;np("$effect");var e=yt!==null&&(yt.f&32)!==0&&Ct!==null&&!Ct.m;if(Te&&no(t,"name",{value:"$effect"}),e){var i=Ct;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:yt,reaction:Dt})}else{var o=gn(t);return o}}function Ra(t){return np("$effect.pre"),Te&&no(t,"name",{value:"$effect.pre"}),xo(t)}function yc(t){let e=Ws(64,t,!0);return()=>{so(e)}}function cg(t){let e=Ws(64,t,!0);return(i={})=>new Promise(o=>{i.outro?hn(e,()=>{so(e),o(void 0)}):(so(e),o(void 0))})}function gn(t){return Ws(4,t,!1)}function xo(t){return Ws(8,t,!0)}function k(t,e=[],i=m){let o=e.map(i),n=()=>t(...o.map(r));return Te&&no(n,"name",{value:"{expression}"}),lo(n)}function lo(t,e=0){return Ws(24|e,t,!0)}function Fi(t,e=!0){return Ws(40,t,!0,e)}function ep(t){var e=t.teardown;if(e!==null){let i=Hs,o=Dt;Ju(!0),$o(null);try{e.call(null)}finally{Ju(i),$o(o)}}}function tp(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:so(i,e),i=o}}function lg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&so(e),e=i}}function so(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:Eo(o);o.remove(),o=a}i=!0}tp(t,e&&!i),Vl(t,0),Zo(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();ep(t);var d=t.parent;d!==null&&d.first!==null&&ip(t),Te&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function ip(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function hn(t,e){var i=[];xc(t,i,!0),rp(i,()=>{so(t),e&&e()})}function rp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function xc(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;xc(o,e,a?i:!1),o=n}}}function is(t){ug(t,!0)}function ug(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),_s(t)&&(Zo(t,2048),Aa(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;ug(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var E0={},A0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,P0=/@(.+):(\d+):(\d+)$/;function M0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
+ `)){let n=(i=A0.exec(o))!=null?i:P0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function pg(){var e;let t=(e=M0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=E0[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 wc=Symbol("ADD_OWNER");function sp(t,e,i=!1,o=!1){if(t&&!i){let n=en,a=t[jr];if(a&&!ap(a,n)){let s=lp(a);e&&e[mi]!==n[mi]&&!o&&Gv(n[mi],e[mi],s[mi])}}Sc(t,e,new Set)}function ju(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 Sc(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),wc in t&&t[wc])xo(()=>{t[wc](e)});else{var n=Zr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ai;xo(()=>{let l=t[s];d!==l&&(d=l,Sc(l,e,i))})}else Sc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)Sc(t[s],e,i)}}}function ap(t,e){return t.owners===null?!0:t.owners.has(e)||mi in e&&[...t.owners].some(i=>i[mi]===e[mi])||t.parent!==null&&ap(t.parent,e)}function lp(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:lp(t.parent)}var L0=!1;function jv(t){if(L0)return;let e=pg();if(e&&!ap(t,e)){let i=lp(t);i[mi]!==e[mi]?Yu(e[mi],i[mi]):Yu()}}function Na(t){if(Te){let e=new Error(`lifecycle_outside_component
39
46
  \`${t}(...)\` can only be used during component initialisation
40
- https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Bt=null;function $d(t){Bt=t}var en=null;function bd(t){en=t}function Ga(t){return Of("getContext").get(t)}function Ya(t,e){let i=Of("setContext");return We&&Pt(()=>Rf(e,null,!0)),i.set(t,e),e}function yd(){return Of("getAllContexts")}function P(t,e=!1,i){Bt={p:Bt,c:null,e:null,m:!1,s:t,x:null,l:null},Jr&&!e&&(Bt.l={s:null,u:null,r1:[],r2:Ui(!1)}),We&&(Bt.function=i,en=i)}function A(t){var l,d;let e=Bt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=At,o=jt;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];Fi(r.effect),yo(r.reaction),vn(r.fn)}}finally{Fi(i),yo(o)}}Bt=e.p,We&&(en=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ts(){return!Jr||Bt!==null&&Bt.l===null}function Of(t){var e;return Bt===null&&Qa(t),(e=Bt.c)!=null?e:Bt.c=new Map(m$(Bt)||void 0)}function m$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var fa=new Set;function Ff(t){fa=t}function Ui(t,e){var i={f:0,v:t,reactions:null,equals:yc,rv:0,wv:0};return We&&es&&(i.created=e!=null?e:gs("CreatedAt"),i.debug=null),i}function pe(t){return v$(Ui(t))}function hs(t,e=!1){var o,n;let i=Ui(t);return e||(i.equals=Wa),Jr&&Bt!==null&&Bt.l!==null&&((n=(o=Bt.l).s)!=null?n:o.s=[]).push(i),i}function v$(t){return jt!==null&&!Br&&jt.f&2&&(Nr===null?og([t]):Nr.push(t)),t}function Y(t,e){return jt!==null&&!Br&&ts()&&jt.f&18&&(Nr===null||!Nr.includes(t))&&Kv(),Za(t,e)}function Za(t,e){var n;if(!t.equals(e)){var i=t.v;if(t.v=e,t.wv=xd(),We&&es&&(t.updated=gs("UpdatedAt"),At!=null&&(t.trace_need_increase=!0,(n=t.trace_v)!=null||(t.trace_v=i))),ig(t,2048),ts()&&At!==null&&At.f&1024&&!(At.f&96)&&(is===null?ng([t]):is.push(t)),We&&fa.size>0){let r=Array.from(fa);var o=_s;ja(!0);try{for(let l of r)l.f&1024&&tn(l,4096),Bs(l)&&Xa(l)}finally{ja(o)}fa.clear()}}return e}function Cc(t,e=1){var i=s(t),o=e===1?i++:i--;return Y(t,i),o}function ig(t,e){var i=t.reactions;if(i!==null)for(var o=ts(),n=i.length,r=0;r<n;r++){var l=i[r],d=l.f;if(!(d&2048)&&!(!o&&l===At)){if(We&&d&262144){fa.add(l);continue}tn(l,e),d&1280&&(d&2?ig(l,4096):Ja(l))}}}function b(t){var e=2050,i=jt!==null&&jt.f&2?jt:null;At===null||i!==null&&i.f&256?e|=256:At.f|=1048576;let o={ctx:Bt,deps:null,effects:null,equals:yc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:At};return We&&es&&(o.created=gs("CreatedAt")),o}function Dr(t){let e=b(t);return e.equals=Wa,e}function Sc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)uo(e[i])}}var Uf=[];function g$(t){for(var e=t.parent;e!==null;){if(!(e.f&2))return e;e=e.parent}return null}function h$(t){var e,i=At;if(Fi(g$(t)),We){let o=fa;Ff(new Set);try{Uf.includes(t)&&Vv(),Uf.push(t),Sc(t),e=Tc(t)}finally{Fi(i),Ff(o),Uf.pop()}}else try{Sc(t),e=Tc(t)}finally{Fi(i)}return e}function Wf(t){var e=h$(t),i=($s||t.f&256)&&t.deps!==null?4096:1024;tn(t,i),t.equals(e)||(t.v=e,t.wv=xd())}var cg=0,_$=1,rg=new WeakSet,Ic=!1,kc=cg,wd=!1,el=null,_s=!1,Mc=!1;function ja(t){_s=t}function Kf(t){Mc=t}var va=[],tl=0,Cd=[],jt=null,Br=!1;function yo(t){jt=t}var At=null;function Fi(t){At=t}var Nr=null;function og(t){Nr=t}var on=null,Nn=0,is=null;function ng(t){is=t}var ug=1,Pc=0,$s=!1,_d=null;function xd(){return++ug}function Bs(t){var c,f;var e=t.f;if(e&2048)return!0;if(e&4096){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,r,l=(e&512)!==0,d=o&&At!==null&&!$s,a=i.length;if(l||d){for(n=0;n<a;n++)r=i[n],(l||!((c=r==null?void 0:r.reactions)!=null&&c.includes(t)))&&((f=r.reactions)!=null?f:r.reactions=[]).push(t);l&&(t.f^=512)}for(n=0;n<a;n++)if(r=i[n],Bs(r)&&Wf(r),r.wv>t.wv)return!0}(!o||At!==null&&!$s)&&tn(t,1024)}return!1}function sg(t,e){for(var i=e;i!==null;){if(i.f&128)try{i.fn(t);return}catch(o){i.f^=128}i=i.parent}throw Ic=!1,t}function ag(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function ol(t,e,i,o){var f,g;if(Ic){if(i===null&&(Ic=!1),ag(e))throw t;return}if(i!==null&&(Ic=!0),!We||o===null||!(t instanceof Error)||rg.has(t)){sg(t,e);return}rg.add(t);let n=[],r=(f=e.fn)==null?void 0:f.name;r&&n.push(r);let l=o;for(;l!==null;){if(We){var d=(g=l.function)==null?void 0:g[Si];if(d){let m=d.split("/").pop();n.push(m)}}l=l.p}let a=/Firefox/.test(navigator.userAgent)?" ":" ";co(t,"message",{value:t.message+`
41
- ${n.map(m=>`
42
- ${a}in ${m}`).join("")}
43
- `}),co(t,"component_stack",{value:n});let c=t.stack;if(c){let m=c.split(`
44
- `),h=[];for(let _=0;_<m.length;_++){let x=m[_];x.includes("svelte/src/internal")||h.push(x)}co(t,"stack",{value:h.join(`
45
- `)})}if(sg(t,e),ag(e))throw t}function pg(t,e,i=0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];r.f&2?pg(r,e,i+1):e===r&&(i===0?tn(r,2048):r.f&1024&&tn(r,4096),Ja(r))}}function Tc(t){var h,_;var e=on,i=Nn,o=is,n=jt,r=$s,l=Nr,d=Bt,a=Br,c=t.f;on=null,Nn=0,is=null,jt=c&96?null:t,$s=(c&256)!==0&&(!_s||n===null||a),Nr=null,$d(t.ctx),Br=!1,Pc++;try{var f=(0,t.fn)(),g=t.deps;if(on!==null){var m;if(Sd(t,Nn),g!==null&&Nn>0)for(g.length=Nn+on.length,m=0;m<on.length;m++)g[Nn+m]=on[m];else t.deps=g=on;if(!$s)for(m=Nn;m<g.length;m++)((_=(h=g[m]).reactions)!=null?_:h.reactions=[]).push(t)}else g!==null&&Nn<g.length&&(Sd(t,Nn),g.length=Nn);if(ts()&&is!==null&&!(t.f&6146))for(m=0;m<is.length;m++)pg(is[m],t);return n!==null&&Pc++,f}finally{on=e,Nn=i,is=o,jt=n,$s=r,Nr=l,$d(d),Br=a}}function $$(t,e){let i=e.reactions;if(i!==null){var o=Tv.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&&(on===null||!on.includes(e))&&(tn(e,4096),e.f&768||(e.f^=512),Sc(e),Sd(e,0))}function Sd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)$$(t,i[o])}function Xa(t){var e=t.f;if(!(e&16384)){tn(t,1024);var i=At,o=Bt;if(At=t,We){var n=en;bd(t.component_function)}try{e&16?gg(t):Gf(t),Qf(t);var r=Tc(t);t.teardown=typeof r=="function"?r:null,t.wv=ug;var l=t.deps;if(We&&es&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=xd(),d.trace_need_increase=void 0,d.trace_v=void 0)}We&&Cd.push(t)}catch(a){ol(a,t,i,o||t.ctx)}finally{At=i,We&&bd(n)}}}function lg(){console.error("Last ten effects were: ",Cd.slice(-10).map(t=>t.fn)),Cd=[]}function fg(){if(tl>1e3){tl=0;try{Dv()}catch(t){if(We&&co(t,"stack",{value:""}),el!==null)if(We)try{ol(t,el,null,null)}catch(e){throw lg(),e}else ol(t,el,null,null);else throw We&&lg(),t}}tl++}function mg(t){var e=t.length;if(e!==0){fg();var i=_s;_s=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];vg(n,r),b$(r)}}finally{_s=i}}}function b$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{Bs(o)&&(Xa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Yf(o):o.fn=null))}catch(n){ol(n,o,null,o.ctx)}}}function y$(){if(wd=!1,tl>1001)return;let t=va;va=[],mg(t),wd||(tl=0,el=null,We&&(Cd=[]))}function Ja(t){kc===cg&&(wd||(wd=!0,queueMicrotask(y$))),el=t;for(var e=t;e.parent!==null;){e=e.parent;var i=e.f;if(i&96){if(!(i&1024))return;e.f^=1024}}va.push(e)}function vg(t,e){var i=t.first,o=[];e:for(;i!==null;){var n=i.f,r=(n&32)!==0,l=r&&(n&1024)!==0,d=i.next;if(!l&&!(n&8192))if(n&8){if(r)i.f^=1024;else{var a=jt;try{jt=i,Bs(i)&&Xa(i)}catch(m){ol(m,i,null,i.ctx)}finally{jt=a}}var c=i.first;if(c!==null){i=c;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var f=m.next;if(f!==null){i=f;continue e}m=m.parent}}i=d}for(var g=0;g<o.length;g++)c=o[g],e.push(c),vg(c,e)}function u(t){var e=kc,i=va;try{fg();let n=[];kc=_$,va=n,wd=!1,mg(i);var o=t==null?void 0:t();return Mv(),(va.length>0||n.length>0)&&u(),tl=0,el=null,We&&(Cd=[]),o}finally{kc=e,va=i}}function xo(){return Ct(this,null,function*(){yield Promise.resolve(),u()})}function s(t){var e=t.f,i=(e&2)!==0;if(_d!==null&&_d.add(t),jt!==null&&!Br){Nr!==null&&Nr.includes(t)&&qv();var o=jt.deps;t.rv<Pc&&(t.rv=Pc,on===null&&o!==null&&o[Nn]===t?Nn++:on===null?on=[t]:(!$s||!on.includes(t))&&on.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&!(r.f&256)&&(n.f^=256)}if(i&&(n=t,Bs(n)&&Wf(n)),We&&es&&hd!==null&&jt!==null&&hd.reaction===jt){if(t.debug)t.debug();else if(t.created){var l=hd.entries.get(t);l===void 0&&(l={read:[]},hd.entries.set(t,l)),l.read.push(gs("TracedAt"))}}return t.v}function Pt(t){var e=Br;try{return Br=!0,t()}finally{Br=e}}var x$=-7169;function tn(t,e){t.f=t.f&x$|e}function Lc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Oo in t)Ac(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Oo in i&&Ac(i)}}}function Ac(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{Ac(t[o],e)}catch(n){}let i=ms(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=$c(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}var ct=!1;function po(t){ct=t}var It;function gi(t){if(t===null)throw pa(),vs;return It=t}function Ni(){return gi(Mo(It))}function y(t){if(ct){if(Mo(It)!==null)throw pa(),vs;It=t}}function Ve(t=1){if(ct){for(var e=t,i=It;e--;)i=Mo(i);It=i}}function rl(){for(var t=0,e=It;;){if(e.nodeType===8){var i=e.data;if(i===la){if(t===0)return e;t-=1}else(i===qa||i===aa)&&(t+=1)}var o=Mo(e);e.remove(),e=o}}function Le(t,e=null,i){var c,f;var o=null;if(We&&es&&(o=gs("CreatedAt")),typeof t!="object"||t===null||Oo in t)return t;let n=ms(t);if(n!==Ef&&n!==Iv)return t;var r=new Map,l=Rr(t),d=Ui(0);l&&r.set("length",Ui(t.length,o));var a;if(We)if(a={parent:e,owners:null},i){let g=(f=(c=i.v)==null?void 0:c[fs])==null?void 0:f.owners;a.owners=g?new Set(g):null}else a.owners=e===null?Bt!==null?new Set([Bt.function]):null:new Set;return new Proxy(t,{defineProperty(g,m,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&zv();var _=r.get(m);return _===void 0?(_=Ui(h.value,o),r.set(m,_)):Y(_,Le(h.value,a)),!0},deleteProperty(g,m){var h=r.get(m);if(h===void 0)m in g&&r.set(m,Ui(Zi,o));else{if(l&&typeof m=="string"){var _=r.get("length"),x=Number(m);Number.isInteger(x)&&x<_.v&&Y(_,x)}Y(h,Zi),hg(d)}return!0},get(g,m,h){var D;if(We&&m===fs)return a;if(m===Oo)return t;var _=r.get(m),x=m in g;if(_===void 0&&(!x||(D=Mn(g,m))!=null&&D.writable)&&(_=Ui(Le(x?g[m]:Zi,a),o),r.set(m,_)),_!==void 0){var T=s(_);if(We){var V=T==null?void 0:T[fs];V&&(V==null?void 0:V.parent)!==a&&Nf(a,V)}return T===Zi?void 0:T}return Reflect.get(g,m,h)},getOwnPropertyDescriptor(g,m){var h=Reflect.getOwnPropertyDescriptor(g,m);if(h&&"value"in h){var _=r.get(m);_&&(h.value=s(_))}else if(h===void 0){var x=r.get(m),T=x==null?void 0:x.v;if(x!==void 0&&T!==Zi)return{enumerable:!0,configurable:!0,value:T,writable:!0}}return h},has(g,m){var T;if(We&&m===fs||m===Oo)return!0;var h=r.get(m),_=h!==void 0&&h.v!==Zi||Reflect.has(g,m);if(h!==void 0||At!==null&&(!_||(T=Mn(g,m))!=null&&T.writable)){h===void 0&&(h=Ui(_?Le(g[m],a):Zi,o),r.set(m,h));var x=s(h);if(x===Zi)return!1}return _},set(g,m,h,_){var Q;var x=r.get(m),T=m in g;if(l&&m==="length")for(var V=h;V<x.v;V+=1){var D=r.get(V+"");D!==void 0?Y(D,Zi):V in g&&(D=Ui(Zi,o),r.set(V+"",D))}if(x===void 0?(!T||(Q=Mn(g,m))!=null&&Q.writable)&&(x=Ui(void 0,o),Y(x,Le(h,a)),r.set(m,x)):(T=x.v!==Zi,Y(x,Le(h,a))),We){var R=h==null?void 0:h[fs];R&&(R==null?void 0:R.parent)!==a&&Nf(a,R),tg(a)}var B=Reflect.getOwnPropertyDescriptor(g,m);if(B!=null&&B.set&&B.set.call(_,h),!T){if(l&&typeof m=="string"){var I=r.get("length"),z=Number(m);Number.isInteger(z)&&z>=I.v&&Y(I,z+1)}hg(d)}return!0},ownKeys(g){s(d);var m=Reflect.ownKeys(g).filter(x=>{var T=r.get(x);return T===void 0||T.v!==Zi});for(var[h,_]of r)_.v!==Zi&&!(h in g)&&m.push(h);return m},setPrototypeOf(){Wv()}})}function hg(t,e=1){Y(t,t.v+e)}function Vc(t){return t!==null&&typeof t=="object"&&Oo in t?t[Oo]:t}function _g(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Vc(this[a])===r){xc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Vc(this[a])===r){xc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Vc(this[a])===r){xc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ga,$g,bg,yg;function Rc(){if(ga===void 0){ga=window,$g=document;var t=Element.prototype,e=Node.prototype;bg=Mn(e,"firstChild").get,yg=Mn(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,We&&(t.__svelte_meta=null,_g())}}function nn(t=""){return document.createTextNode(t)}function hi(t){return bg.call(t)}function Mo(t){return yg.call(t)}function w(t,e){if(!ct)return hi(t);var i=hi(It);if(i===null)i=It.appendChild(nn());else if(e&&i.nodeType!==3){var o=nn();return i==null||i.before(o),gi(o),o}return gi(i),i}function Ee(t,e){var n,r;if(!ct){var i=hi(t);return i.nodeType===8&&i.data===""?Mo(i):i}if(e&&((n=It)==null?void 0:n.nodeType)!==3){var o=nn();return(r=It)==null||r.before(o),gi(o),o}return It}function H(t,e=1,i=!1){let o=ct?It:t;for(var n;e--;)n=o,o=Mo(o);if(!ct)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=nn();return o===null?n==null||n.after(l):o.before(l),gi(l),l}return gi(o),o}function Id(t){t.textContent=""}function Zf(t){At===null&&jt===null&&Bv(t),jt!==null&&jt.f&256&&At===null&&Nv(),Mc&&Rv(t)}function w$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ha(t,e,i,o=!0){var f;var n=(t&64)!==0,r=At;if(We)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:Bt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n?null:r,prev:null,teardown:null,transitions:null,wv:0};if(We&&(l.component_function=en),i){var d=_s;try{ja(!0),Xa(l),l.f|=32768}catch(g){throw uo(l),g}finally{ja(d)}}else e!==null&&Ja(l);var a=i&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&1048704)===0;if(!a&&!n&&o&&(r!==null&&w$(l,r),jt!==null&&jt.f&2)){var c=jt;((f=c.effects)!=null?f:c.effects=[]).push(l)}return l}function Bn(t){let e=ha(8,null,!1);return tn(e,1024),e.teardown=t,e}function lt(t){var n;Zf("$effect");var e=At!==null&&(At.f&32)!==0&&Bt!==null&&!Bt.m;if(We&&co(t,"name",{value:"$effect"}),e){var i=Bt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:At,reaction:jt})}else{var o=vn(t);return o}}function Ka(t){return Zf("$effect.pre"),We&&co(t,"name",{value:"$effect.pre"}),Ao(t)}function Nc(t){let e=ha(64,t,!0);return()=>{uo(e)}}function wg(t){let e=ha(64,t,!0);return(i={})=>new Promise(o=>{i.outro?_n(e,()=>{uo(e),o(void 0)}):(uo(e),o(void 0))})}function vn(t){return ha(4,t,!1)}function Ao(t){return ha(8,t,!0)}function N(t,e=[],i=b){let o=e.map(i),n=()=>t(...o.map(s));return We&&co(n,"name",{value:"{expression}"}),fo(n)}function fo(t,e=0){return ha(24|e,t,!0)}function Xi(t,e=!0){return ha(40,t,!0,e)}function Qf(t){var e=t.teardown;if(e!==null){let i=Mc,o=jt;Kf(!0),yo(null);try{e.call(null)}finally{Kf(i),yo(o)}}}function Gf(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;uo(i,e),i=o}}function gg(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||uo(e),e=i}}function uo(t,e=!0){var i=!1;if((e||t.f&524288)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var r=o===n?null:Mo(o);o.remove(),o=r}i=!0}Gf(t,e&&!i),Sd(t,0),tn(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();Qf(t);var d=t.parent;d!==null&&d.first!==null&&Yf(t),We&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Yf(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 _n(t,e){var i=[];Bc(t,i,!0),Xf(i,()=>{uo(t),e&&e()})}function Xf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Bc(t,e,i){if(!(t.f&8192)){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;Bc(o,e,r?i:!1),o=n}}}function bs(t){Cg(t,!0)}function Cg(t,e){if(t.f&8192){t.f^=8192,t.f&1024||(t.f^=1024),Bs(t)&&(tn(t,2048),Ja(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Cg(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function Jf(t,e){if(e){let i=document.body;t.autofocus=!0,Xo(()=>{document.activeElement===i&&t.focus()})}}function em(t){var e=jt,i=At;yo(null),Fi(null);try{return t()}finally{yo(e),Fi(i)}}var tm=new Set,Dc=new Set;function _a(t){if(!ct)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 im(t,e,i,o={}){function n(r){if(o.capture||sl.call(e,r),!r.cancelBubble)return em(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Xo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Kt(t,e,i,o,n){var r={capture:o,passive:n},l=im(t,e,i,r);(e===document.body||e===window||e===document)&&Bn(()=>{e.removeEventListener(t,l,r)})}function xt(t){for(var e=0;e<t.length;e++)tm.add(t[e]);for(var i of Dc)i(t)}function sl(t){var D;var e=this,i=e.ownerDocument,o=t.type,n=((D=t.composedPath)==null?void 0:D.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;a<=c&&(l=a)}if(r=n[l]||t.target,r!==e){co(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=jt,g=At;yo(null),Fi(null);try{for(var m,h=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var x=r["__"+o];if(x!==void 0&&!r.disabled)if(Rr(x)){var[T,...V]=x;T.apply(r,[t,...V])}else x.call(r,t)}catch(R){m?h.push(R):m=R}if(t.cancelBubble||_===e||_===null)break;r=_}if(m){for(let R of h)queueMicrotask(()=>{throw R});throw m}}finally{t.__root=e,delete t.currentTarget,yo(f),Fi(g)}}}var S$;function Sg(){S$=void 0}function al(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function wo(t,e){var i=At;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function U(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(ct)return wo(It,null),It;n===void 0&&(n=al(r?t:"<!>"+t),i||(n=hi(n)));var l=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=hi(l),a=l.lastChild;wo(d,a)}else wo(l,l);return l}}function Re(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(ct)return wo(It,null),It;if(!l){var d=al(r),a=hi(d);if(n)for(l=document.createDocumentFragment();hi(a);)l.appendChild(hi(a));else l=hi(a)}var c=l.cloneNode(!0);if(n){var f=hi(c),g=c.lastChild;wo(f,g)}else wo(c,c);return c}}function dr(t=""){if(!ct){var e=nn(t+"");return wo(e,e),e}var i=It;return i.nodeType!==3&&(i.before(i=nn()),gi(i)),wo(i,i),i}function Xe(){if(ct)return wo(It,null),It;var t=document.createDocumentFragment(),e=document.createComment(""),i=nn();return t.append(e,i),wo(e,i),t}function C(t,e){if(ct){At.nodes_end=It,Ni();return}t!==null&&t.before(e)}var I$=/\r/g;function Ig(t){t=t.replace(I$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function kg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var k$=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Eg(t){return k$.includes(t)}var E$=["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 P$={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 Pg(t){var e;return t=t.toLowerCase(),(e=P$[t])!=null?e:t}var Ow=[...E$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var A$=["touchstart","touchmove"];function Ag(t){return A$.includes(t)}var M$=["textarea","script","style","title"];function Mg(t){return M$.includes(t)}function om(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var kd=!0;function Oc(t){kd=t}function Pe(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 Hc(t,e){return Lg(t,e)}function rm(t,e){var l;Rc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=ct,n=It;try{for(var r=hi(i);r&&(r.nodeType!==8||r.data!==qa);)r=Mo(r);if(!r)throw vs;po(!0),gi(r),Ni();let d=Lg(t,zt($({},e),{anchor:r}));if(It===null||It.nodeType!==8||It.data!==la)throw pa(),vs;return po(!1),d}catch(d){if(d===vs)return e.recover===!1&&Ov(),Rc(),Id(i),po(!1),Hc(t,e);throw d}finally{po(o),gi(n),Sg()}}var ll=new Map;function Lg(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){Rc();var d=new Set,a=g=>{for(var m=0;m<g.length;m++){var h=g[m];if(!d.has(h)){d.add(h);var _=Ag(h);e.addEventListener(h,sl,{passive:_});var x=ll.get(h);x===void 0?(document.addEventListener(h,sl,{passive:_}),ll.set(h,1)):ll.set(h,x+1)}}};a(gd(tm)),Dc.add(a);var c=void 0,f=wg(()=>{var g=i!=null?i:e.appendChild(nn());return Xi(()=>{if(r){P({});var m=Bt;m.c=r}n&&(o.$$events=n),ct&&wo(g,null),kd=l,c=t(g,o)||{},kd=!0,ct&&(At.nodes_end=It),r&&A()}),()=>{var _;for(var m of d){e.removeEventListener(m,sl);var h=ll.get(m);--h===0?(document.removeEventListener(m,sl),ll.delete(m)):ll.set(m,h)}Dc.delete(a),g!==i&&((_=g.parentNode)==null||_.removeChild(g))}});return nm.set(c,f),c}var nm=new WeakMap;function sm(t,e){let i=nm.get(t);return i?(nm.delete(t),i(e)):(We&&Xv(),Promise.resolve())}var lm;function E(t){return lm=t.target,new am(t)}var ys,cr,am=class{constructor(e){Vs(this,ys);Vs(this,cr);var r,l;var i=new Map,o=(d,a)=>{var c=hs(a);return i.set(d,c),c};let n=new Proxy(zt($({},e.props||{}),{$$events:{}}),{get(d,a){var c;return s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a)))},has(d,a){var c;return a===vd?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var f;return Y((f=i.get(a))!=null?f:o(a,c),c),Reflect.set(d,a,c)}});Ua(this,cr,(e.hydrate?rm:Hc)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&u(),Ua(this,ys,n.$$events);for(let d of Object.keys(Ri(this,cr)))d==="$set"||d==="$destroy"||d==="$on"||co(this,d,{get(){return Ri(this,cr)[d]},set(a){Ri(this,cr)[d]=a},enumerable:!0});Ri(this,cr).$set=d=>{Object.assign(n,d)},Ri(this,cr).$destroy=()=>{sm(Ri(this,cr))}}$set(e){Ri(this,cr).$set(e)}$on(e,i){Ri(this,ys)[e]=Ri(this,ys)[e]||[];let o=(...n)=>i.call(this,...n);return Ri(this,ys)[e].push(o),()=>{Ri(this,ys)[e]=Ri(this,ys)[e].filter(n=>n!==o)}}$destroy(){Ri(this,cr).$destroy()}};ys=new WeakMap,cr=new WeakMap;var Vg="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Vg);var Rg=new Map;function Ng(t,e){var i=Rg.get(t);i||(i=new Set,Rg.set(t,i)),i.add(e)}function q(t,e,i=!1){ct&&Ni();var o=t,n=null,r=null,l=Zi,d=i?65536:0,a=!1;let c=(g,m=!0)=>{a=!0,f(m,g)},f=(g,m)=>{if(l===(l=g))return;let h=!1;if(ct){let _=o.data===aa;!!l===_&&(o=rl(),gi(o),po(!1),h=!0)}l?(n?bs(n):m&&(n=Xi(()=>m(o))),r&&_n(r,()=>{r=null})):(r?bs(r):m&&(r=Xi(()=>m(o))),n&&_n(n,()=>{n=null})),h&&po(!0)};fo(()=>{a=!1,e(c),a||f(null,null)},d),ct&&(o=It)}function Ed(t,e,i){ct&&Ni();var o=t,n=Zi,r,l=ts()?Lv:za;fo(()=>{l(n,n=e())&&(r&&_n(r),r=Xi(()=>i(o)))}),ct&&(o=It)}var Os=null;function um(t){Os=t}function so(t,e){return e}function F$(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)Bc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Id(a),a.append(i),o.clear(),Ds(t,e[0].prev,e[r-1].next)}Xf(n,()=>{for(var c=0;c<r;c++){var f=e[c];d||(o.delete(f.k),Ds(t,f.prev,f.next)),uo(f.e,!d)}})}function Ei(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var c=t;l=ct?gi(hi(c)):c.appendChild(nn())}ct&&Ni();var f=null,g=!1,m=Dr(()=>{var h=i();return Rr(h)?h:h==null?[]:gd(h)});fo(()=>{var h=s(m),_=h.length;if(g&&_===0)return;g=_===0;let x=!1;if(ct){var T=l.data===aa;T!==(_===0)&&(l=rl(),gi(l),po(!1),x=!0)}if(ct){for(var V=null,D,R=0;R<_;R++){if(It.nodeType===8&&It.data===la){l=It,x=!0,po(!1);break}var B=h[R],I=o(B,R);D=Og(It,d,V,null,B,I,R,n,e,i),d.items.set(I,D),V=D}_>0&&gi(rl())}ct||U$(h,d,l,n,e,o,i),r!==null&&(_===0?f?bs(f):f=Xi(()=>r(l)):f!==null&&_n(f,()=>{f=null})),x&&po(!0),s(m)}),ct&&(l=It)}function U$(t,e,i,o,n,r,l){var Se,ne,ie,be;var d=(n&8)!==0,a=(n&3)!==0,c=t.length,f=e.items,g=e.first,m=g,h,_=null,x,T=[],V=[],D,R,B,I;if(d)for(I=0;I<c;I+=1)D=t[I],R=r(D,I),B=f.get(R),B!==void 0&&((Se=B.a)==null||Se.measure(),(x!=null?x:x=new Set).add(B));for(I=0;I<c;I+=1){if(D=t[I],R=r(D,I),B=f.get(R),B===void 0){var z=m?m.e.nodes_start:i;_=Og(z,e,_,_===null?e.first:_.next,D,R,I,o,n,l),f.set(R,_),T=[],V=[],m=_.next;continue}if(a&&z$(B,D,I,n),B.e.f&8192&&(bs(B.e),d&&((ne=B.a)==null||ne.unfix(),(x!=null?x:x=new Set).delete(B))),B!==m){if(h!==void 0&&h.has(B)){if(T.length<V.length){var Q=V[0],F;_=Q.prev;var G=T[0],J=T[T.length-1];for(F=0;F<T.length;F+=1)Bg(T[F],Q,i);for(F=0;F<V.length;F+=1)h.delete(V[F]);Ds(e,G.prev,J.next),Ds(e,_,G),Ds(e,J,Q),m=Q,_=J,I-=1,T=[],V=[]}else h.delete(B),Bg(B,m,i),Ds(e,B.prev,B.next),Ds(e,B,_===null?e.first:_.next),Ds(e,_,B),_=B;continue}for(T=[],V=[];m!==null&&m.k!==R;)m.e.f&8192||(h!=null?h:h=new Set).add(m),V.push(m),m=m.next;if(m===null)continue;B=m}T.push(B),_=B,m=B.next}if(m!==null||h!==void 0){for(var ce=h===void 0?[]:gd(h);m!==null;)m.e.f&8192||ce.push(m),m=m.next;var ee=ce.length;if(ee>0){var Ce=n&4&&c===0?i:null;if(d){for(I=0;I<ee;I+=1)(ie=ce[I].a)==null||ie.measure();for(I=0;I<ee;I+=1)(be=ce[I].a)==null||be.fix()}F$(e,ce,Ce,f)}}d&&Xo(()=>{var j;if(x!==void 0)for(B of x)(j=B.a)==null||j.apply()}),At.first=e.first&&e.first.e,At.last=_&&_.e}function z$(t,e,i,o){o&1&&Za(t.v,e),o&2?Za(t.i,i):t.i=i}function Og(t,e,i,o,n,r,l,d,a,c){var f=Os,g=(a&1)!==0,m=(a&16)===0,h=g?m?hs(n):Ui(n):n,_=a&2?Ui(l):l;We&&g&&(h.debug=()=>{var T=typeof _=="number"?l:_.v;c()[T]});var x={i:_,v:h,k:r,a:null,e:null,prev:i,next:o};Os=x;try{return x.e=Xi(()=>d(t,h,_,c),ct),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Os=f}}function Bg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Mo(r);n.before(r),r=l}}function Ds(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 W$(t,e,i){var r,l;if(!e||e===Ig(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=en)!=null&&l[Si]&&(o=`in ${en[Si]}`),Zv(om(o))}function Pd(t,e,i,o,n){var r=t,l="",d;fo(()=>{var a;if(l===(l=(a=e())!=null?a:"")){ct&&Ni();return}d!==void 0&&(uo(d),d=void 0),l!==""&&(d=Xi(()=>{if(ct){for(var c=It.data,f=Ni(),g=f;f!==null&&(f.nodeType!==8||f.data!=="");)g=f,f=Mo(f);if(f===null)throw pa(),vs;We&&!n&&W$(f.parentNode,c,l),wo(It,g),r=gi(f);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var h=al(m);if((i||o)&&(h=hi(h)),wo(hi(h),h.lastChild),i||o)for(;hi(h);)r.before(hi(h));else r.before(h)}))})}function Ue(t,e,i,o,n){var d;ct&&Ni();var r=(d=e.$$slots)==null?void 0:d[i],l=!1;r===!0&&(r=e[i==="default"?"children":i],l=!0),r===void 0?n!==null&&n(t):r(t,l?()=>o:o)}function Co(t,e,...i){var o=t,n=Yt,r;fo(()=>{n!==(n=e())&&(r&&(uo(r),r=null),We&&n==null&&Hv(),r=Xi(()=>n(o,...i)))},65536),ct&&(o=It)}function zi(t,e,i){ct&&Ni();var o=t,n,r;fo(()=>{n!==(n=e())&&(r&&(_n(r),r=null),n&&(r=Xi(()=>i(o,n))))},65536),ct&&(o=It)}function Ad(t,e,i,o,n,r){var _;let l=ct;ct&&Ni();var d=We&&r&&((_=Bt)==null?void 0:_.function[Si]),a,c,f=null;ct&&It.nodeType===1&&(f=It,Ni());var g=ct?It:t,m,h=Os;fo(()=>{let x=e()||null;var T=n?n():i||x==="svg"?da:null;if(x!==a){var V=Os;um(h),m&&(x===null?_n(m,()=>{m=null,c=null}):x===c?bs(m):(uo(m),Oc(!1))),x&&x!==c&&(m=Xi(()=>{if(f=ct?f:T?document.createElementNS(T,x):document.createElement(x),We&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),wo(f,f),o){ct&&Mg(x)&&f.append(document.createComment(""));var D=ct?hi(f):f.appendChild(nn());ct&&(D===null?po(!1):gi(D)),o(f,D)}At.nodes_end=f,g.before(f)})),a=x,a&&(c=a),Oc(!0),um(V)}},65536),l&&(po(!0),gi(g))}function se(t,e){Xo(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=lm)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),We&&Ng(e.hash,d)}})}function Hg(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=Hg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Fg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Hg(t))&&(o&&(o+=" "),o+=e);return o}function Md(t){return typeof t=="object"?Fg(t):t!=null?t:""}function Wg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ve(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(ct&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||q$(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[wv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&qg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Oe(t,e,i,o,n=!1,r=!1,l=!1){var R;let d=ct&&r;d&&po(!1);var a=e||{},c=t.tagName==="OPTION";for(var f in e)f in i||(i[f]=null);i.class&&(i.class=Md(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var g=qg(t),m=(R=t.__attributes)!=null?R:t.__attributes={};for(let B in i){let I=i[B];if(c&&B==="value"&&I==null){t.value=t.__value="",a[B]=I;continue}var h=a[B];if(I!==h){a[B]=I;var _=B[0]+B[1];if(_!=="$$"){if(_==="on"){let z={},Q="$$"+B,F=B.slice(2);var x=Eg(F);if(kg(F)&&(F=F.slice(0,-7),z.capture=!0),!x&&h){if(I!=null)continue;t.removeEventListener(F,a[Q],z),a[Q]=null}if(I!=null)if(x)t[`__${F}`]=I,xt([F]);else{let G=function(J){a[B].call(this,J)};var D=G;a[Q]=im(F,t,G,z)}else x&&(t[`__${F}`]=void 0)}else if(B==="style"&&I!=null)t.style.cssText=I+"";else if(B==="autofocus")Jf(t,!!I);else if(!r&&(B==="__value"||B==="value"&&I!=null))t.value=t.__value=I;else if(B==="selected"&&c)Wg(t,I);else{var T=B;n||(T=Pg(T));var V=T==="defaultValue"||T==="defaultChecked";if(I==null&&!r&&!V)if(m[B]=null,T==="value"||T==="checked"){let z=t;if(T==="value"){let Q=z.defaultValue;z.removeAttribute(T),z.defaultValue=Q}else{let Q=z.defaultChecked;z.removeAttribute(T),z.defaultChecked=Q}}else t.removeAttribute(B);else V||g.includes(T)&&(r||typeof I!="string")?t[T]=I:typeof I!="function"&&ve(t,T,I)}B==="style"&&"__styles"in t&&(t.__styles={})}}}return d&&po(!0),a}var Ug=new Map;function qg(t){var e=Ug.get(t.nodeName);if(e)return e;Ug.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=$c(o);for(var r in i)i[r].set&&e.push(r);o=ms(o)}return e}function q$(t,e,i){var o;We&&(e==="srcset"&&K$(t,i)||pm((o=t.getAttribute(e))!=null?o:"",i)||jv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function pm(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function zg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function K$(t,e){var i=zg(t.srcset),o=zg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(pm(i[l][0],n)||pm(n,i[l][0])))}function rn(t,e,i){var o=t.__className,n=Q$(e,i);ct&&t.className===n?t.__className=n:(o!==n||ct&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function Q$(t,e){return(t==null?"":t)+(e?" "+e:"")}function ae(t,e,i){if(i){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var G$=_c?()=>performance.now():()=>Date.now(),Hr={tick:t=>(_c?requestAnimationFrame:Yt)(t),now:()=>G$(),tasks:new Set};function Kg(){let t=Hr.now();Hr.tasks.forEach(e=>{e.c(t)||(Hr.tasks.delete(e),e.f())}),Hr.tasks.size!==0&&Hr.tick(Kg)}function Qg(t){let e;return Hr.tasks.size===0&&Hr.tick(Kg),{promise:new Promise(i=>{Hr.tasks.add(e={c:t,f:i})}),abort(){Hr.tasks.delete(e)}}}function Fc(t,e){t.dispatchEvent(new CustomEvent(e))}function X$(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Gg(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=X$(n.trim());e[l]=r.trim()}return e}var J$=t=>t;function mm(t,e,i,o){var R;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",c,f=e.inert,g=e.style.overflow,m,h;function _(){var z;var B=jt,I=At;yo(null),Fi(null);try{return c!=null?c:c=i()(e,(z=o==null?void 0:o())!=null?z:{},{direction:a})}finally{yo(B),Fi(I)}}var x={is_global:d,in(){var B;if(e.inert=f,!n){h==null||h.abort(),(B=h==null?void 0:h.reset)==null||B.call(h);return}r||m==null||m.abort(),Fc(e,"introstart"),m=fm(e,_(),h,1,()=>{Fc(e,"introend"),m==null||m.abort(),m=c=void 0,e.style.overflow=g})},out(B){if(!r){B==null||B(),c=void 0;return}e.inert=!0,Fc(e,"outrostart"),h=fm(e,_(),m,0,()=>{Fc(e,"outroend"),B==null||B()})},stop:()=>{m==null||m.abort(),h==null||h.abort()}},T=At;if(((R=T.transitions)!=null?R:T.transitions=[]).push(x),n&&kd){var V=d;if(!V){for(var D=T.parent;D&&D.f&65536;)for(;(D=D.parent)&&!(D.f&16););V=!D||(D.f&32768)!==0}V&&vn(()=>{Pt(()=>x.in())})}}function fm(t,e,i,o,n){var r=o===1;if(Rs(e)){var l,d=!1;return Xo(()=>{if(!d){var T=e({direction:r?"in":"out"});l=fm(t,T,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:Yt,deactivate:Yt,reset:Yt,t:()=>o};let{delay:a=0,css:c,tick:f,easing:g=J$}=e;var m=[];if(r&&i===void 0&&(f&&f(0,1),c)){var h=Gg(c(0,1));m.push(h,h)}var _=()=>1-o,x=t.animate(m,{duration:a});return x.onfinish=()=>{var G;var T=(G=i==null?void 0:i.t())!=null?G:1-o;i==null||i.abort();var V=o-T,D=e.duration*Math.abs(V),R=[];if(D>0){var B=!1;if(c)for(var I=Math.ceil(D/16.666666666666668),z=0;z<=I;z+=1){var Q=T+V*g(z/I),F=Gg(c(Q,1-Q));R.push(F),B||(B=F.overflow==="hidden")}B&&(t.style.overflow="hidden"),_=()=>{var J=x.currentTime;return T+V*g(J/D)},f&&Qg(()=>{if(x.playState!=="running")return!1;var J=_();return f(J,1-J),!0})}x=t.animate(R,{duration:D,fill:"forwards"}),x.onfinish=()=>{_=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=Yt)},deactivate:()=>{n=Yt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>_()}}var Hs,dl,Ld,zc,Yg,Wc=class Wc{constructor(e){Vs(this,zc);Vs(this,Hs,new WeakMap);Vs(this,dl);Vs(this,Ld);Ua(this,Ld,e)}observe(e,i){var o=Ri(this,Hs).get(e)||new Set;return o.add(i),Ri(this,Hs).set(e,o),xv(this,zc,Yg).call(this).observe(e,Ri(this,Ld)),()=>{var n=Ri(this,Hs).get(e);n.delete(i),n.size===0&&(Ri(this,Hs).delete(e),Ri(this,dl).unobserve(e))}}};Hs=new WeakMap,dl=new WeakMap,Ld=new WeakMap,zc=new WeakSet,Yg=function(){var e;return(e=Ri(this,dl))!=null?e:Ua(this,dl,new ResizeObserver(i=>{for(var o of i){Wc.entries.set(o.target,o);for(var n of Ri(this,Hs).get(o.target)||[])n(o)}}))},An(Wc,"entries",new WeakMap);var vm=Wc;var i1=new vm({box:"border-box"});function ns(t,e,i){var o=i1.observe(t,()=>i(t[e]));vn(()=>(Pt(()=>i(t[e])),o))}function jg(t,e){return t===e||(t==null?void 0:t[Oo])===e}function St(t={},e,i,o){return vn(()=>{var n,r;return Ao(()=>{n=r,r=(o==null?void 0:o())||[],Pt(()=>{t!==i(...r)&&(e(t,...r),n&&jg(i(...n),t)&&e(null,...n))})}),()=>{Xo(()=>{r&&jg(i(...r),t)&&e(null,...r)})}}),t}function Fr(t=!1){let e=Bt,i=e.l.u;if(!i)return;let o=()=>Lc(e.s);if(t){let n=0,r={},l=b(()=>{let d=!1,a=e.s;for(let c in a)a[c]!==r[c]&&(r[c]=a[c],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Ka(()=>{Zg(e,o),Ns(i.b)}),lt(()=>{let n=Pt(()=>i.m.map(kv));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&lt(()=>{Zg(e,o),Ns(i.a)})}function Zg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function M(t,e,i){var o;t.$$events||(t.$$events={}),(o=t.$$events)[e]||(o[e]=[]),t.$$events[e].push(i)}function L(t){for(var e in t)e in this&&(this[e]=t[e])}if(We){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Uv(e)},set:o=>{i=o}})}};n1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var n1;function Zt(t){Bt===null&&Qa("onMount"),Jr&&Bt.l!==null?o1(Bt).m.push(t):lt(()=>{let e=Pt(t);if(typeof e=="function")return e})}function ur(t){Bt===null&&Qa("onDestroy"),Zt(()=>()=>Pt(t))}function o1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Vd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Yt;let o=Pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var cl=[];function pr(t,e){return{subscribe:Ie(t,e).subscribe}}function Ie(t,e=Yt){let i=null,o=new Set;function n(d){if(za(t,d)&&(t=d,i)){let a=!cl.length;for(let c of o)c[1](),cl.push(c,t);if(a){for(let c=0;c<cl.length;c+=2)cl[c][0](cl[c+1]);cl.length=0}}}function r(d){n(d(t))}function l(d,a=Yt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Yt),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function _i(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return pr(i,(l,d)=>{let a=!1,c=[],f=0,g=Yt,m=()=>{if(f)return;g();let _=e(o?c[0]:c,l,d);r?l(_):g=typeof _=="function"?_:Yt},h=n.map((_,x)=>Vd(_,T=>{c[x]=T,f&=~(1<<x),a&&m()},()=>{f|=1<<x}));return a=!0,m(),function(){Ns(h),g(),a=!1}})}function De(t){let e;return Vd(t,i=>e=i)(),e}var qc=!1,gm=Symbol();function k(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:hs(void 0),unsubscribe:Yt};if(o.store!==t&&!(gm in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Yt;else{var n=!0;o.unsubscribe=Vd(t,l=>{n?o.source.v=l:Y(o.source,l)}),n=!1}return t&&gm in i?De(t):s(o.source)}function tt(){let t={};function e(){Bn(()=>{for(var i in t)t[i].unsubscribe();co(t,gm,{enumerable:!1,value:!0})})}return[t,e]}function hm(t){var e=qc;try{return qc=!1,[t(),qc]}finally{qc=e}}var d1={get(t,e){if(!t.exclude.includes(e))return s(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,i){return e in t.special||(t.special[e]=p({get[e](){return t.props[e]}},e,4)),t.special[e](i),Cc(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),Cc(t.version)),!0},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 ze(t,e){return new Proxy({props:t,exclude:e,special:{},version:Ui(0)},d1)}var c1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Rs(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];Rs(n)&&(n=n());let r=Mn(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Rs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Mn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Oo||e===vd)return!1;for(let i of t.props)if(Rs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Rs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function xs(...t){return new Proxy({props:t},c1)}function Xg(t){for(var e=At,i=At;e!==null&&!(e.f&96);)e=e.parent;try{return Fi(e),t()}finally{Fi(i)}}function p(t,e,i,o){var Q,F;var n=(i&1)!==0,r=!Jr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=hm(()=>t[e]):c=t[e];var f=Oo in t||vd in t,g=l&&((F=(Q=Mn(t,e))==null?void 0:Q.set)!=null?F:f&&e in t&&(G=>t[e]=G))||void 0,m=o,h=!0,_=!1,x=()=>(_=!0,h&&(h=!1,d?m=Pt(o):m=o),m);c===void 0&&o!==void 0&&(g&&r&&Fv(e),c=x(),g&&g(c));var T;if(r)T=()=>{var G=t[e];return G===void 0?x():(h=!0,_=!1,G)};else{var V=Xg(()=>(n?b:Dr)(()=>t[e]));V.f|=131072,T=()=>{var G=s(V);return G!==void 0&&(m=void 0),G===void 0?m:G}}if(!(i&4))return T;if(g){var D=t.$$legacy;return function(G,J){return arguments.length>0?((!r||!J||D||a)&&g(J?T():G),G):T()}}var R=!1,B=!1,I=hs(c),z=Xg(()=>b(()=>{var G=T(),J=s(I);return R?(R=!1,B=!0,J):(B=!1,I.v=G)}));return n||(z.equals=Wa),function(G,J){if(_d!==null&&(R=B,T(),s(I)),arguments.length>0){let ce=J?s(z):r&&l?Le(G):G;return z.equals(ce)||(R=!0,Y(I,ce),_&&m!==void 0&&(m=ce),Pt(()=>s(z))),G}return s(z)}}var u1;typeof HTMLElement=="function"&&(u1=class extends HTMLElement{constructor(e,i,o){super();An(this,"$$ctor");An(this,"$$s");An(this,"$$c");An(this,"$$cn",!1);An(this,"$$d",{});An(this,"$$r",!1);An(this,"$$p_d",{});An(this,"$$l",{});An(this,"$$l_u",new Map);An(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return Ct(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),C(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=p1(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=_m(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=E({component:this.$$ctor,target:this.shadowRoot||this,props:zt($({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Nc(()=>{Ao(()=>{var r;this.$$r=!0;for(let l of kf(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=_m(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=_m(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 kf(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function _m(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.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 p1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var O_=require("@vkontakte/videoplayer-core/es2015"),oJ=require("@vkontakte/videoplayer-core/es2015"),Es=require("@vkontakte/videoplayer-shared/es2015"),H_=require("@vkontakte/videoplayer-statistics/es2015");var $a=require("@vkontakte/videoplayer-shared/es2015");var m1={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:$a.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:$a.VideoQuality.Q_480P,highQualityLimit:$a.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},eh=t=>(0,$a.fillWithDefault)(t,m1),th=t=>Ya("ui-config",t),oi=()=>Ga("ui-config");var Rd="vk_player_debug_panel_opened";var ih="videoplayer",oh="videoplayer";var rs={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},nh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),rh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),sh=new Set(["ShiftRight","ShiftLeft"]);var ah=["TIMELINE"],Nd=[...ah,"GRAPH_BUTTON"],$m=[...ah,"PLAY_BUTTON"],Bd=[...Nd,"PLAY_BUTTON"];var Ur=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Ur||{}),ya={xs:0,s:1,m:2,l:3,xl:4};var Dd=require("@vkontakte/videoplayer-shared/es2015"),lh=require("@vkontakte/videoplayer-core/es2015"),dh=require("@vkontakte/videoplayer-statistics/es2015");var Kc="prod",xa="1.1.60-dev.48d7e486.0";var wa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var ch=Symbol("storeContext"),uh=Symbol("microStoresContext"),ph=(t,e)=>{Ya(ch,t),Ya(uh,e),Kc==="dev"&&(window.app={store:t,microStores:e})},Fe=()=>{let t=Ga(ch);return(0,Dd.assertNonNullable)(t,"Store context is empty!"),t},mo=()=>{let t=Ga(uh);return(0,Dd.assertNonNullable)(t,"MicroStores context is empty!"),t},ri=(t,e)=>Gc(t,t.getValue(),e),Gc=(t,e,i)=>pr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),fh=(t,e,i)=>{var V,D,R,B,I,z;let o=t.info,{width:n,height:r}=De(i.ui.playerSize),l=(D=(V=o.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?D:0,d=(B=(R=o.rttEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?B:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${xa} (core: ${lh.VERSION}, stat: ${dh.VERSION}, shared: ${Dd.VERSION})`,f=De(i.state.errorLog$),g=f.length?`
46
- `+f.map((Q,F)=>{var ee;let G=`${F}) Type: ${Q.id}
47
- `,J=`Message: ${Q.message} (${Q.thrown})
48
- `,ce=`Trace: ${(ee=Q.thrown)==null?void 0:ee.stack}
49
- `;return G+J+ce}).join(`
50
- `):void 0,m=i.state.isAudioDisabled?"disabled":De(i.state.isAudioAvailable$)?void 0:"unavailable",h=t.info.currentVideoStream$.getValue(),_=t.info.currentAudioStream$.getValue(),x=[];h&&x.push(`Video: ${(I=h==null?void 0:h.codec)!=null?I:""}`+(h!=null&&h.hdr?" (HDR)":"")),_&&x.push(`Audio: ${(z=_==null?void 0:_.codec)!=null?z:""}`+(_!=null&&_.language?` (${_.language})`:""));let T={Version:c,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:De(i.vsid),"Content host":o.hostname$.getValue(),"Connection type":o.httpConnectionType$.getValue()+(o.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${d}ms RTT`,Format:o.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:x.join(", "),Quality:`${a} ${o.currentQuality$.getValue()}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:m,Position:`${De(i.state.positionExact$)}s`,State:`${De(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${r}`,URL:window.location.href,Errors:g};return Object.entries(T).filter(([Q,F])=>F!==void 0).map(([Q,F])=>`${Q}: ${F}`).join(`
51
- `)},mh=(t,e,i)=>{var Q,F,G,J;let o=t.info,{width:n,height:r}=De(i.ui.playerSize),l={version:xa,viewport:`${n}x${r}`,volume:Math.round(De(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let c=o.intrinsicVideoSize$.getValue();c&&(l.videoSize=`${c.width}x${c.height}`);let f=o.currentBuffer$.getValue(),g=o.isLive$.getValue(),m=o.liveBufferTime$.getValue();f&&(g&&m?l.buffer=f.end-m:l.buffer=Math.max(f.end-De(i.state.positionExact$),0));let h=o.throughputEstimation$.getValue();h&&(l.speed=h);let _=o.videoBitrate$.getValue();_&&(l.bitrate=_);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let T=o.currentVideoSegmentLength$.getValue();T&&(l.currentVideoSegmentLength=T);let V=o.currentAudioSegmentLength$.getValue();V&&(l.currentAudioSegmentLength=V);let D=De(i.vsid);typeof D=="string"&&(l.vsid=D);let R=(Q=t.info.currentVideoStream$.getValue())==null?void 0:Q.codec;R&&(l.videoCodec=R);let B=(F=t.info.currentAudioStream$.getValue())==null?void 0:F.codec;B&&(l.audioCodec=B),((G=t.info.currentVideoStream$.getValue())==null?void 0:G.hdr)&&(l.hdr=!0);let z=(J=t.info.currentAudioStream$.getValue())==null?void 0:J.language;return z&&(l.audioLanguage=z),l},vh=(t,e)=>wa(t,e,"mp4"),gh=t=>!t.type,hh=t=>!!t.type,_h=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Qc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return Ct(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var Bi=require("@vkontakte/videoplayer-shared/es2015"),TE=require("@vkontakte/videoplayer-core/es2015");var $h="vk_player_prefer_traffic_saving_enabled",bh="vk_player_preferred_volume",yh="vk_player_prefer_volume_mute",xm="vk_player_preferred_quality",bm="vk_player_preferred_default_quality_settings",ym="vk_player_preferred_quality_settings_by_video",xh="vk_player_preferred_stream_language",wh="vk_player_preferred_rate",Ch="vk_player_preferred_autoplay_next",Sh=t=>t>1?1:t<0?0:t,wm=t=>Bi.safeStorage.set(bh,Sh(t).toString(10)),Yc=()=>{let t=Bi.safeStorage.get(bh);return(0,Bi.isNullable)(t)?void 0:Sh(parseFloat(t))},Cm=(t,e)=>Bi.safeStorage.set(xm,JSON.stringify({videoId:t,value:e})),Hd=()=>Bi.safeStorage.remove(xm),Sm=t=>{let e=Bi.safeStorage.get(xm);if((0,Bi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Hd();return}return o},Tm=(t,e)=>{e?Bi.safeStorage.set(t,"true"):Bi.safeStorage.remove(t)},Im=t=>Bi.safeStorage.get(t)==="true",km=t=>Tm(yh,t),Th=()=>Im(yh),Od=t=>Tm($h,t),Em=()=>Im($h),Ih=()=>Bi.safeStorage.get(xh),Pm=t=>Bi.safeStorage.set(xh,t),kh=t=>Bi.safeStorage.set(wh,JSON.stringify({rate:t})),Eh=()=>{let t=Bi.safeStorage.get(wh);if((0,Bi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Ph=t=>Tm(Ch,t),Ah=()=>Im(Ch),v1=()=>{let t=f=>{Bi.safeStorage.set(bm,JSON.stringify(f))},e=()=>{try{let f=Bi.safeStorage.get(bm);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Bi.safeStorage.get(ym);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Bi.safeStorage.set(ym,JSON.stringify(f))},n=f=>{c(f);let g=f?i():null;if(g&&(g==null?void 0:g.videoId)===f)return zt($({},g),{appliesTo:"to-video"});g&&r();let m=e();return m?zt($({},m),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},r=()=>{Bi.safeStorage.remove(ym)},l=()=>{Bi.safeStorage.remove(bm)},d=(f,g="as-default")=>{f.type==="exact_quality"?o(f):g==="as-default"?t(f):o(f)},a=f=>{let g=n(f);if(g){switch(g.type){case"traffic_saving":Od(!0);break;case"exact_quality":Cm(f,g.quality)}r(),l()}},c=f=>{let g=Sm(f);if(g){o({type:"exact_quality",videoId:f,quality:g});return}Em()&&t({type:"traffic_saving",videoId:f}),Od(!1),Hd()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Mh,migrateSettingsToLegacyWay:Lh,savePreferredQualitySettings:jc,savePreferredDefaultQualitySettings:IE,removePreferredQualitySettingsByVideo:kE,getPreferredDefaultQualitySettings:Zc}=v1();var mv=require("@vkontakte/videoplayer-core/es2015");Qv();var g1=Re('<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 ul(t,e){if(new.target)return E($({component:ul},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=g1();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var pl=require("@vkontakte/videoplayer-shared/es2015");var h1={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
47
+ https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Ct=null;function Rl(t){Ct=t}var en=null;function Nl(t){en=t}function Da(t){return dp("getContext").get(t)}function Ba(t,e){let i=dp("setContext");return Te&&bt(()=>sp(e,null,!0)),i.set(t,e),e}function Bl(){return dp("getAllContexts")}function K(t,e=!1,i){var o=Ct={p:Ct,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Or&&!e&&(Ct.l={s:null,u:null,r1:[],r2:Hi(!1)}),tn(()=>{o.d=!0}),Te&&(Ct.function=i,en=i)}function W(t){var s,d;let e=Ct;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=yt,o=Dt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];ro(a.effect),$o(a.reaction),gn(a.fn)}}finally{ro(i),$o(o)}}Ct=e.p,Te&&(en=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Fr(){return!Or||Ct!==null&&Ct.l===null}function dp(t){var e;return Ct===null&&Na(t),(e=Ct.c)!=null?e:Ct.c=new Map(R0(Ct)||void 0)}function R0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var N0=/\r/g;function fg(t){t=t.replace(N0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function mg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var D0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function vg(t){return D0.includes(t)}var B0=["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 O0={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 gg(t){var e;return t=t.toLowerCase(),(e=O0[t])!=null?e:t}var $w=[...B0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var H0=["touchstart","touchmove"];function hg(t){return H0.includes(t)}var F0=["textarea","script","style","title"];function _g(t){return F0.includes(t)}function cp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var bg=new Map;function $g(t,e){var i=bg.get(t);i||(i=new Set,bg.set(t,i)),i.add(e)}function up(t,e){if(e){let i=document.body;t.autofocus=!0,Go(()=>{document.activeElement===i&&t.focus()})}}function Ol(t){var e=Dt,i=yt;$o(null),ro(null);try{return t()}finally{$o(e),ro(i)}}var pp=new Set,Cc=new Set;function Qs(t){if(!je)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function fp(t,e,i,o={}){function n(a){if(o.capture||Oa.call(e,a),!a.cancelBubble)return Ol(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Go(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Bt(t,e,i,o,n){var a={capture:o,passive:n},s=fp(t,e,i,a);(e===document.body||e===window||e===document)&&tn(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)pp.add(t[e]);for(var i of Cc)i(t)}function Oa(t){var A;var e=this,i=e.ownerDocument,o=t.type,n=((A=t.composedPath)==null?void 0:A.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){no(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Dt,_=yt;$o(null),ro(null);try{for(var p,$=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var w=a["__"+o];if(w!=null&&(!a.disabled||t.target===a))if(br(w)){var[S,...I]=w;S.apply(a,[t,...I])}else w.call(a,t)}catch(P){p?$.push(P):p=P}if(t.cancelBubble||y===e||y===null)break;a=y}if(p){for(let P of $)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,$o(f),ro(_)}}}var z0;function yg(){z0=void 0}function Ha(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function wo(t,e){var i=yt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(je)return wo(mt,null),mt;n===void 0&&(n=Ha(a?t:"<!>"+t),i||(n=gi(n)));var s=o||El?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=gi(s),l=s.lastChild;wo(d,l)}else wo(s,s);return s}}function $e(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(je)return wo(mt,null),mt;if(!s){var d=Ha(a),l=gi(d);if(n)for(s=document.createDocumentFragment();gi(l);)s.appendChild(gi(l));else s=gi(l)}var u=s.cloneNode(!0);if(n){var f=gi(u),_=u.lastChild;wo(f,_)}else wo(u,u);return u}}function nr(t=""){if(!je){var e=Xo(t+"");return wo(e,e),e}var i=mt;return i.nodeType!==3&&(i.before(i=Xo()),vi(i)),wo(i,i),i}function ze(){if(je)return wo(mt,null),mt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Xo();return t.append(e,i),wo(e,i),t}function b(t,e){if(je){yt.nodes_end=mt,Ni();return}t!==null&&t.before(e)}var Hl=!0;function Tc(t){Hl=t}function fe(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function os(t,e){return wg(t,e)}function vp(t,e){var s;fc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=je,n=mt;try{for(var a=gi(i);a&&(a.nodeType!==8||a.data!==vs);)a=Eo(a);if(!a)throw Yr;ao(!0),vi(a),Ni();let d=wg(t,Vt(q({},e),{anchor:a}));if(mt===null||mt.nodeType!==8||mt.data!==Ds)throw zs(),Yr;return ao(!1),d}catch(d){if(d===Yr)return e.recover===!1&&Pv(),fc(),Al(i),ao(!1),os(t,e);throw d}finally{ao(o),vi(n),yg()}}var Fa=new Map;function wg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){fc();var d=new Set,l=_=>{for(var p=0;p<_.length;p++){var $=_[p];if(!d.has($)){d.add($);var y=hg($);e.addEventListener($,Oa,{passive:y});var w=Fa.get($);w===void 0?(document.addEventListener($,Oa,{passive:y}),Fa.set($,1)):Fa.set($,w+1)}}};l(Sl(pp)),Cc.add(l);var u=void 0,f=cg(()=>{var _=i!=null?i:e.appendChild(Xo());return Fi(()=>{if(a){K({});var p=Ct;p.c=a}n&&(o.$$events=n),je&&wo(_,null),Hl=s,u=t(_,o)||{},Hl=!0,je&&(yt.nodes_end=mt),a&&W()}),()=>{var y;for(var p of d){e.removeEventListener(p,Oa);var $=Fa.get(p);--$===0?(document.removeEventListener(p,Oa),Fa.delete(p)):Fa.set(p,$)}Cc.delete(l),_!==i&&((y=_.parentNode)==null||y.removeChild(_))}});return mp.set(u,f),u}var mp=new WeakMap;function Gs(t,e){let i=mp.get(t);return i?(mp.delete(t),i(e)):(Te&&Qv(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){je&&i===0&&Ni();var n=t,a=null,s=null,d=Ai,l=i>0?65536:0,u=!1;let f=(p,$=!0)=>{u=!0,_($,p)},_=(p,$)=>{if(d===(d=p))return;let y=!1;if(je&&o!==-1){if(i===0){let S=n.data;S===vs?o=0:S===Ns?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let w=o>i;!!d===w&&(n=Pa(),vi(n),ao(!1),y=!0,o=-1)}d?(a?is(a):$&&(a=Fi(()=>$(n))),s&&hn(s,()=>{s=null})):(s?is(s):$&&(s=Fi(()=>$(n,[i+1,o]))),a&&hn(a,()=>{a=null})),y&&ao(!0)};lo(()=>{u=!1,e(f),u||_(null,null)},l),je&&(n=mt)}function Fl(t,e,i){je&&Ni();var o=t,n=Ai,a,s=Fr()?Cv:Ca;lo(()=>{s(n,n=e())&&(a&&hn(a),a=Fi(()=>i(o)))}),je&&(o=mt)}var $s=null;function _p(t){$s=t}function Ul(t,e){return e}function Q0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)xc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Al(l),l.append(i),o.clear(),bs(t,e[0].prev,e[a-1].next)}rp(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),bs(t,f.prev,f.next)),so(f.e,!d)}})}function yi(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var u=t;s=je?vi(gi(u)):u.appendChild(Xo())}je&&Ni();var f=null,_=!1,p=xr(()=>{var $=i();return br($)?$:$==null?[]:Sl($)});lo(()=>{var $=r(p),y=$.length;if(_&&y===0)return;_=y===0;let w=!1;if(je){var S=s.data===Ns;S!==(y===0)&&(s=Pa(),vi(s),ao(!1),w=!0)}if(je){for(var I=null,A,P=0;P<y;P++){if(mt.nodeType===8&&mt.data===Ds){s=mt,w=!0,ao(!1);break}var E=$[P],T=o(E,P);A=Tg(mt,d,I,null,E,T,P,n,e,i),d.items.set(T,A),I=A}y>0&&vi(Pa())}je||G0($,d,s,n,e,o,i),a!==null&&(y===0?f?is(f):f=Fi(()=>a(s)):f!==null&&hn(f,()=>{f=null})),w&&ao(!0),r(p)}),je&&(s=mt)}function G0(t,e,i,o,n,a,s){var re,Pe,qe,ie;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,_=e.first,p=_,$,y=null,w,S=[],I=[],A,P,E,T;if(d)for(T=0;T<u;T+=1)A=t[T],P=a(A,T),E=f.get(P),E!==void 0&&((re=E.a)==null||re.measure(),(w!=null?w:w=new Set).add(E));for(T=0;T<u;T+=1){if(A=t[T],P=a(A,T),E=f.get(P),E===void 0){var R=p?p.e.nodes_start:i;y=Tg(R,e,y,y===null?e.first:y.next,A,P,T,o,n,s),f.set(P,y),S=[],I=[],p=y.next;continue}if(l&&Y0(E,A,T,n),(E.e.f&8192)!==0&&(is(E.e),d&&((Pe=E.a)==null||Pe.unfix(),(w!=null?w:w=new Set).delete(E))),E!==p){if($!==void 0&&$.has(E)){if(S.length<I.length){var z=I[0],Z;y=z.prev;var U=S[0],Q=S[S.length-1];for(Z=0;Z<S.length;Z+=1)Sg(S[Z],z,i);for(Z=0;Z<I.length;Z+=1)$.delete(I[Z]);bs(e,U.prev,Q.next),bs(e,y,U),bs(e,Q,z),p=z,y=Q,T-=1,S=[],I=[]}else $.delete(E),Sg(E,p,i),bs(e,E.prev,E.next),bs(e,E,y===null?e.first:y.next),bs(e,y,E),y=E;continue}for(S=[],I=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&($!=null?$:$=new Set).add(p),I.push(p),p=p.next;if(p===null)continue;E=p}S.push(E),y=E,p=E.next}if(p!==null||$!==void 0){for(var ee=$===void 0?[]:Sl($);p!==null;)(p.e.f&8192)===0&&ee.push(p),p=p.next;var ae=ee.length;if(ae>0){var _e=(n&4)!==0&&u===0?i:null;if(d){for(T=0;T<ae;T+=1)(qe=ee[T].a)==null||qe.measure();for(T=0;T<ae;T+=1)(ie=ee[T].a)==null||ie.fix()}Q0(e,ee,_e,f)}}d&&Go(()=>{var Le;if(w!==void 0)for(E of w)(Le=E.a)==null||Le.apply()}),yt.first=e.first&&e.first.e,yt.last=y&&y.e}function Y0(t,e,i,o){(o&1)!==0&&ka(t.v,e),(o&2)!==0?ka(t.i,i):t.i=i}function Tg(t,e,i,o,n,a,s,d,l,u){var f=$s,_=(l&1)!==0,p=(l&16)===0,$=_?p?es(n):Hi(n):n,y=(l&2)===0?s:Hi(s);Te&&_&&($.debug=()=>{var S=typeof y=="number"?s:y.v;u()[S]});var w={i:y,v:$,k:a,a:null,e:null,prev:i,next:o};$s=w;try{return w.e=Fi(()=>d(t,$,y,u),je),w.e.prev=i&&i.e,w.e.next=o&&o.e,i===null?e.first=w:(i.next=w,i.e.next=w.e),o!==null&&(o.prev=w,o.e.prev=w.e),w}finally{$s=f}}function Sg(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=Eo(a);n.before(a),a=s}}function bs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function j0(t,e,i){var a,s;if(!e||e===fg(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=en)!=null&&s[mi]&&(o=`in ${en[mi]}`),Wv(cp(o))}function zl(t,e,i,o,n){var a=t,s="",d;lo(()=>{var l;if(s===(s=(l=e())!=null?l:"")){je&&Ni();return}d!==void 0&&(so(d),d=void 0),s!==""&&(d=Fi(()=>{if(je){for(var u=mt.data,f=Ni(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=Eo(f);if(f===null)throw zs(),Yr;Te&&!n&&j0(f.parentNode,u,s),wo(mt,_),a=vi(f);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var $=Ha(p);if((i||o)&&($=gi($)),wo(gi($),$.lastChild),i||o)for(;gi($);)a.before(gi($));else a.before($)}))})}function me(t,e,...i){var o=t,n=ne,a;lo(()=>{n!==(n=e())&&(a&&(so(a),a=null),Te&&n==null&&Mv(),a=Fi(()=>n(o,...i)))},65536),je&&(o=mt)}function Di(t,e,i){je&&Ni();var o=t,n,a;lo(()=>{n!==(n=e())&&(a&&(hn(a),a=null),n&&(a=Fi(()=>i(o,n))))},65536),je&&(o=mt)}function ql(t,e,i,o,n,a){var y;let s=je;je&&Ni();var d=Te&&a&&((y=Ct)==null?void 0:y.function[mi]),l,u,f=null;je&&mt.nodeType===1&&(f=mt,Ni());var _=je?mt:t,p,$=$s;lo(()=>{let w=e()||null;var S=n?n():i||w==="svg"?Nu:null;if(w!==l){var I=$s;_p($),p&&(w===null?hn(p,()=>{p=null,u=null}):w===u?is(p):(so(p),Tc(!1))),w&&w!==u&&(p=Fi(()=>{if(f=je?f:S?document.createElementNS(S,w):document.createElement(w),Te&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),wo(f,f),o){je&&_g(w)&&f.append(document.createComment(""));var A=je?gi(f):f.appendChild(Xo());je&&(A===null?ao(!1):vi(A)),o(f,A)}yt.nodes_end=f,_.before(f)})),l=w,l&&(u=l),Tc(!0),_p(I)}},65536),s&&(ao(!0),vi(_))}var $p;function Ig(t){return $p=t.target,new bp(t)}var ns,rr,bp=class{constructor(e){ms(this,ns);ms(this,rr);var a,s;var i=new Map,o=(d,l)=>{var u=es(l);return i.set(d,u),u};let n=new Proxy(Vt(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===wl?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var f;return O((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});Sa(this,rr,(e.hydrate?vp:os)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Va(),Sa(this,ns,n.$$events);for(let d of Object.keys(Ei(this,rr)))d==="$set"||d==="$destroy"||d==="$on"||no(this,d,{get(){return Ei(this,rr)[d]},set(l){Ei(this,rr)[d]=l},enumerable:!0});Ei(this,rr).$set=d=>{Object.assign(n,d)},Ei(this,rr).$destroy=()=>{Gs(Ei(this,rr))}}$set(e){Ei(this,rr).$set(e)}$on(e,i){Ei(this,ns)[e]=Ei(this,ns)[e]||[];let o=(...n)=>i.call(this,...n);return Ei(this,ns)[e].push(o),()=>{Ei(this,ns)[e]=Ei(this,ns)[e].filter(n=>n!==o)}}$destroy(){Ei(this,rr).$destroy()}};ns=new WeakMap,rr=new WeakMap;function G(t,e){Go(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=$p)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Te&&$g(e.hash,d)}})}function kg(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=kg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Eg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=kg(t))&&(o&&(o+=" "),o+=e);return o}function Kl(t){return typeof t=="object"?Eg(t):t!=null?t:""}var Ag=[...`
48
+ \r\f\xA0\v\uFEFF`];function Mg(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||Ag.includes(o[s-1]))&&(d===o.length||Ag.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Pg(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 yp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Lg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(yp)),n&&l.push(...Object.keys(n).map(yp));var u=0,f=-1;let w=t.length;for(var _=0;_<w;_++){var p=t[_];if(d?p==="/"&&t[_-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[_+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=_;else if(p===";"||_===w-1){if(f!==-1){var $=yp(t.substring(u,f).trim());if(!l.includes($)){p!==";"&&_++;var y=t.substring(u,_).trim();i+=" "+y+";"}}u=_+1,f=-1}}}}return o&&(i+=Pg(o)),n&&(i+=Pg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function oe(t,e,i,o,n,a){var s=t.__className;if(je||s!==i){var d=Mg(i,o,a);(!je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function xp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function nt(t,e,i,o){var n=t.__style;if(je||n!==e){var a=Lg(e,o);(!je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(xp(t,i==null?void 0:i[0],o[0]),xp(t,i==null?void 0:i[1],o[1],"important")):xp(t,i,o));return o}var Ua=Symbol("class"),za=Symbol("style"),Ng=Symbol("is custom element"),Dg=Symbol("is html");function Bg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=Og(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||o_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[$v]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Hg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Se(t,e,i,o,n=!1){var E;var a=Og(t),s=a[Ng],d=!a[Dg];let l=je&&s;l&&ao(!1);var u=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Kl(i.class):(o||i[Ua])&&(i.class=null),i[za]&&((E=i.style)!=null||(i.style=null));var p=Hg(t);for(let T in i){let R=i[T];if(f&&T==="value"&&R==null){t.value=t.__value="",u[T]=R;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";oe(t,$,R,o,e==null?void 0:e[Ua],i[Ua]),u[T]=R,u[Ua]=i[Ua];continue}if(T==="style"){nt(t,R,e==null?void 0:e[za],i[za]),u[T]=R,u[za]=i[za];continue}var y=u[T];if(R!==y){u[T]=R;var w=T[0]+T[1];if(w!=="$$")if(w==="on"){let z={},Z="$$"+T,U=T.slice(2);var S=vg(U);if(mg(U)&&(U=U.slice(0,-7),z.capture=!0),!S&&y){if(R!=null)continue;t.removeEventListener(U,u[Z],z),u[Z]=null}if(R!=null)if(S)t[`__${U}`]=R,at([U]);else{let Q=function(ee){u[T].call(this,ee)};var P=Q;u[Z]=fp(U,t,Q,z)}else S&&(t[`__${U}`]=void 0)}else if(T==="style")De(t,T,R);else if(T==="autofocus")up(t,!!R);else if(!s&&(T==="__value"||T==="value"&&R!=null))t.value=t.__value=R;else if(T==="selected"&&f)Bg(t,R);else{var I=T;d||(I=gg(I));var A=I==="defaultValue"||I==="defaultChecked";if(R==null&&!s&&!A)if(a[T]=null,I==="value"||I==="checked"){let z=t,Z=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=Z?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=Z?U:!1}}else t.removeAttribute(T);else A||p.includes(I)&&(s||typeof R!="string")?t[I]=R:typeof R!="function"&&De(t,I,R,n)}}}return l&&ao(!0),u}function Og(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Ng]:t.nodeName.includes("-"),[Dg]:t.namespaceURI===hv}}var Vg=new Map;function Hg(t){var e=Vg.get(t.nodeName);if(e)return e;Vg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=ac(o);for(var a in i)i[a].set&&e.push(a);o=Zr(o)}return e}function o_(t,e,i){var o;Te&&(e==="srcset"&&n_(t,i)||wp((o=t.getAttribute(e))!=null?o:"",i)||Kv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function wp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Rg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function n_(t,e){var i=Rg(t.srcset),o=Rg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(wp(i[s][0],n)||wp(n,i[s][0])))}var r_=sc?()=>performance.now():()=>Date.now(),Sr={tick:t=>(sc?requestAnimationFrame:ne)(t),now:()=>r_(),tasks:new Set};function Fg(){let t=Sr.now();Sr.tasks.forEach(e=>{e.c(t)||(Sr.tasks.delete(e),e.f())}),Sr.tasks.size!==0&&Sr.tick(Fg)}function Ug(t){let e;return Sr.tasks.size===0&&Sr.tick(Fg),{promise:new Promise(i=>{Sr.tasks.add(e={c:t,f:i})}),abort(){Sr.tasks.delete(e)}}}function Ic(t,e){Ol(()=>{t.dispatchEvent(new CustomEvent(e))})}function d_(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 zg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=d_(n.trim());e[s]=a.trim()}return e}var c_=t=>t;function Cp(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,_=e.style.overflow,p,$;function y(){var R;var E=Dt,T=yt;$o(null),ro(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{$o(E),ro(T)}}var w={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||p==null||p.abort(),Ic(e,"introstart"),p=Sp(e,y(),$,1,()=>{Ic(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,Ic(e,"outrostart"),$=Sp(e,y(),p,0,()=>{Ic(e,"outroend"),E==null||E()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},S=yt;if(((P=S.transitions)!=null?P:S.transitions=[]).push(w),n&&Hl){var I=d;if(!I){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);I=!A||(A.f&32768)!==0}I&&gn(()=>{bt(()=>w.in())})}}function Sp(t,e,i,o,n){var a=o===1;if(gs(e)){var s,d=!1;return Go(()=>{if(!d){var S=e({direction:a?"in":"out"});s=Sp(t,S,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ne,deactivate:ne,reset:ne,t:()=>o};let{delay:l=0,css:u,tick:f,easing:_=c_}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=zg(u(0,1));p.push($,$)}var y=()=>1-o,w=t.animate(p,{duration:l});return w.onfinish=()=>{var U;var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-S,A=e.duration*Math.abs(I),P=[];if(A>0){var E=!1;if(u)for(var T=Math.ceil(A/16.666666666666668),R=0;R<=T;R+=1){var z=S+I*_(R/T),Z=zg(u(z,1-z));P.push(Z),E||(E=Z.overflow==="hidden")}E&&(t.style.overflow="hidden"),y=()=>{var Q=w.currentTime;return S+I*_(Q/A)},f&&Ug(()=>{if(w.playState!=="running")return!1;var Q=y();return f(Q,1-Q),!0})}w=t.animate(P,{duration:A,fill:"forwards"}),w.onfinish=()=>{y=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=ne)},deactivate:()=>{n=ne},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}var ys,qa,Wl,Ec,qg,Ac=class Ac{constructor(e){ms(this,Ec);ms(this,ys,new WeakMap);ms(this,qa);ms(this,Wl);Sa(this,Wl,e)}observe(e,i){var o=Ei(this,ys).get(e)||new Set;return o.add(i),Ei(this,ys).set(e,o),vv(this,Ec,qg).call(this).observe(e,Ei(this,Wl)),()=>{var n=Ei(this,ys).get(e);n.delete(i),n.size===0&&(Ei(this,ys).delete(e),Ei(this,qa).unobserve(e))}}};ys=new WeakMap,qa=new WeakMap,Wl=new WeakMap,Ec=new WeakSet,qg=function(){var e;return(e=Ei(this,qa))!=null?e:Sa(this,qa,new ResizeObserver(i=>{for(var o of i){Ac.entries.set(o.target,o);for(var n of Ei(this,ys).get(o.target)||[])n(o)}}))},On(Ac,"entries",new WeakMap);var Tp=Ac;var f_=new Tp({box:"border-box"});function Ur(t,e,i){var o=f_.observe(t,()=>i(t[e]));gn(()=>(bt(()=>i(t[e])),o))}function Kg(t,e){return t===e||(t==null?void 0:t[Bo])===e}function ut(t={},e,i,o){return gn(()=>{var n,a;return xo(()=>{n=a,a=(o==null?void 0:o())||[],bt(()=>{t!==i(...a)&&(e(t,...a),n&&Kg(i(...n),t)&&e(null,...n))})}),()=>{Go(()=>{a&&Kg(i(...a),t)&&e(null,...a)})}}),t}function Cr(t=!1){let e=Ct,i=e.l.u;if(!i)return;let o=()=>bc(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&&Ra(()=>{Wg(e,o),hs(i.b)}),Ze(()=>{let n=bt(()=>i.m.map(wv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ze(()=>{Wg(e,o),hs(i.a)})}function Wg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Te){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Rv(e)},set:o=>{i=o}})}};v_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var v_;function Ft(t){Ct===null&&Na("onMount"),Or&&Ct.l!==null?m_(Ct).m.push(t):Ze(()=>{let e=bt(t);if(typeof e=="function")return e})}function sr(t){Ct===null&&Na("onDestroy"),Ft(()=>()=>bt(t))}function m_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Ql(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ne;let o=bt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ka=[];function ar(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=ne){let i=null,o=new Set;function n(d){if(Ca(t,d)&&(t=d,i)){let l=!Ka.length;for(let u of o)u[1](),Ka.push(u,t);if(l){for(let u=0;u<Ka.length;u+=2)Ka[u][0](Ka[u+1]);Ka.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 hi(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=[],f=0,_=ne,p=()=>{if(f)return;_();let y=e(o?u[0]:u,s,d);a?s(y):_=typeof y=="function"?y:ne},$=n.map((y,w)=>Ql(y,S=>{u[w]=S,f&=~(1<<w),l&&p()},()=>{f|=1<<w}));return l=!0,p(),function(){hs($),_(),l=!1}})}function we(t){let e;return Ql(t,i=>e=i)(),e}var Pc=!1,Ip=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:es(void 0),unsubscribe:ne};if(o.store!==t&&!(Ip 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=Ql(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&Ip in i?we(t):r(o.source)}function Fe(){let t={};function e(){tn(()=>{for(var i in t)t[i].unsubscribe();no(t,Ip,{enumerable:!1,value:!0})})}return[t,e]}function kp(t){var e=Pc;try{return Pc=!1,[t(),Pc]}finally{Pc=e}}var x_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Te&&Vv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function ke(t,e,i){return new Proxy(Te?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},x_)}var w_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(gs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];gs(n)&&(n=n());let a=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(gs(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===Bo||e===wl)return!1;for(let i of t.props)if(gs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){gs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function rs(...t){return new Proxy({props:t},w_)}function Qg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var z,Z;var n=(i&1)!==0,a=!Or||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=kp(()=>t[e]):u=t[e];var f=Bo in t||wl in t,_=s&&((Z=(z=Hn(t,e))==null?void 0:z.set)!=null?Z:f&&e in t&&(U=>t[e]=U))||void 0,p=o,$=!0,y=!1,w=()=>(y=!0,$&&($=!1,d?p=bt(o):p=o),p);u===void 0&&o!==void 0&&(_&&a&&Lv(e),u=w(),_&&_(u));var S;if(a)S=()=>{var U=t[e];return U===void 0?w():($=!0,y=!1,U)};else{var I=(n?m:xr)(()=>t[e]);I.f|=131072,S=()=>{var U=r(I);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0)return S;if(_){var A=t.$$legacy;return function(U,Q){return arguments.length>0?((!a||!Q||A||l)&&_(Q?S():U),U):S()}}var P=!1,E=!1,T=es(u),R=m(()=>{var U=S(),Q=r(T);return P?(P=!1,E=!0,Q):(E=!1,T.v=U)});return s&&r(R),n||(R.equals=Ta),function(U,Q){if(Il!==null&&(P=E,S(),r(T)),arguments.length>0){let ee=Q?r(R):a&&s?pe(U):U;if(!R.equals(ee)){if(P=!0,O(T,ee),y&&p!==void 0&&(p=ee),Qg(R))return U;bt(()=>r(R))}return U}return Qg(R)?R.v:r(R)}}var S_;typeof HTMLElement=="function"&&(S_=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 St(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=C_(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]=Ep(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Ig({component:this.$$ctor,target:this.shadowRoot||this,props:Vt(q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=yc(()=>{xo(()=>{var a;this.$$r=!0;for(let s of Bu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Ep(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]=Ep(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Bu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Ep(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 C_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Gg="5";var Yg,jg,Zg;typeof window!="undefined"&&((Zg=(jg=(Yg=window.__svelte)!=null?Yg:window.__svelte={}).v)!=null?Zg:jg.v=new Set).add(Gg);var Y1=require("@vkontakte/videoplayer-core/es2015"),lG=require("@vkontakte/videoplayer-core/es2015"),ba=require("@vkontakte/videoplayer-shared/es2015"),j1=require("@vkontakte/videoplayer-statistics/es2015");var Ys=require("@vkontakte/videoplayer-shared/es2015");var I_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Ys.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:Ys.VideoQuality.Q_480P,highQualityLimit:Ys.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Xg=t=>(0,Ys.fillWithDefault)(t,I_),Jg=t=>Ba("ui-config",t),Gt=()=>Da("ui-config");var Gl="vk_player_debug_panel_opened";var eh="videoplayer",th="videoplayer";var zr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ih=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),oh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),nh=new Set(["ShiftRight","ShiftLeft"]);var rh=["TIMELINE"],Yl=[...rh,"GRAPH_BUTTON"],Ap=[...rh,"PLAY_BUTTON"],jl=[...Yl,"PLAY_BUTTON"];var Tr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Tr||{}),Zs={xs:0,s:1,m:2,l:3,xl:4};var Zl=require("@vkontakte/videoplayer-shared/es2015"),sh=require("@vkontakte/videoplayer-core/es2015"),ah=require("@vkontakte/videoplayer-statistics/es2015");var Mc="prod",Xs="1.1.60-dev.e2ea22dc.0";var Js=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var lh=Symbol("storeContext"),dh=Symbol("microStoresContext"),ch=(t,e)=>{Ba(lh,t),Ba(dh,e),Mc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Da(lh);return(0,Zl.assertNonNullable)(t,"Store context is empty!"),t},co=()=>{let t=Da(dh);return(0,Zl.assertNonNullable)(t,"MicroStores context is empty!"),t},Xt=(t,e)=>Vc(t,t.getValue(),e),Vc=(t,e,i)=>ar(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),uh=(t,e,i)=>{var I,A,P,E,T,R;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s=(A=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?A:0,d=(E=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Xs} (core: ${sh.VERSION}, stat: ${ah.VERSION}, shared: ${Zl.VERSION})`,f=we(i.state.errorLog$),_=f.length?`
49
+ `+f.map((z,Z)=>{var ae;let U=`${Z}) Type: ${z.id}
50
+ `,Q=`Message: ${z.message} (${z.thrown})
51
+ `,ee=`Trace: ${(ae=z.thrown)==null?void 0:ae.stack}
52
+ `;return U+Q+ee}).join(`
53
+ `):void 0,p=i.state.isAudioDisabled?"disabled":we(i.state.isAudioAvailable$)?void 0:"unavailable",$=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),w=[];$&&w.push(`Video: ${(T=$==null?void 0:$.codec)!=null?T:""}`+($!=null&&$.hdr?" (HDR)":"")),y&&w.push(`Audio: ${(R=y==null?void 0:y.codec)!=null?R:""}`+(y!=null&&y.language?` (${y.language})`:""));let S={Version:u,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:we(i.vsid),"Content host":o.hostname$.getValue(),"Connection type":o.httpConnectionType$.getValue()+(o.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${s}Kbps @ ${d}ms RTT`,Format:o.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:w.join(", "),Quality:`${l} ${o.currentQuality$.getValue()}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:p,Position:`${we(i.state.positionExact$)}s`,State:`${we(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:_};return Object.entries(S).filter(([z,Z])=>Z!==void 0).map(([z,Z])=>`${z}: ${Z}`).join(`
54
+ `)},ph=(t,e,i)=>{var z,Z,U,Q;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s={version:Xs,viewport:`${n}x${a}`,volume:Math.round(we(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),_=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(_&&p?s.buffer=f.end-p:s.buffer=Math.max(f.end-we(i.state.positionExact$),0));let $=o.throughputEstimation$.getValue();$&&(s.speed=$);let y=o.videoBitrate$.getValue();y&&(s.bitrate=y);let w=o.liveLatency$.getValue();w&&(s.liveLatency=w);let S=o.currentVideoSegmentLength$.getValue();S&&(s.currentVideoSegmentLength=S);let I=o.currentAudioSegmentLength$.getValue();I&&(s.currentAudioSegmentLength=I);let A=we(i.vsid);typeof A=="string"&&(s.vsid=A);let P=(z=t.info.currentVideoStream$.getValue())==null?void 0:z.codec;P&&(s.videoCodec=P);let E=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.codec;E&&(s.audioCodec=E),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(s.hdr=!0);let R=(Q=t.info.currentAudioStream$.getValue())==null?void 0:Q.language;return R&&(s.audioLanguage=R),s},fh=(t,e)=>Js(t,e,"mp4"),mh=t=>!t.type,vh=t=>!!t.type,gh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Lc=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 Pi=require("@vkontakte/videoplayer-shared/es2015"),KE=require("@vkontakte/videoplayer-core/es2015");var hh="vk_player_prefer_traffic_saving_enabled",_h="vk_player_preferred_volume",bh="vk_player_prefer_volume_mute",Lp="vk_player_preferred_quality",Pp="vk_player_preferred_default_quality_settings",Mp="vk_player_preferred_quality_settings_by_video",$h="vk_player_preferred_stream_language",yh="vk_player_preferred_rate",xh="vk_player_preferred_autoplay_next",wh=t=>t>1?1:t<0?0:t,Vp=t=>Pi.safeStorage.set(_h,wh(t).toString(10)),Rc=()=>{let t=Pi.safeStorage.get(_h);return(0,Pi.isNullable)(t)?void 0:wh(parseFloat(t))},Rp=(t,e)=>Pi.safeStorage.set(Lp,JSON.stringify({videoId:t,value:e})),Jl=()=>Pi.safeStorage.remove(Lp),Np=t=>{let e=Pi.safeStorage.get(Lp);if((0,Pi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Jl();return}return o},Dp=(t,e)=>{e?Pi.safeStorage.set(t,"true"):Pi.safeStorage.remove(t)},Bp=t=>Pi.safeStorage.get(t)==="true",Op=t=>Dp(bh,t),Sh=()=>Bp(bh),Xl=t=>Dp(hh,t),Hp=()=>Bp(hh),Ch=()=>Pi.safeStorage.get($h),Fp=t=>Pi.safeStorage.set($h,t),Th=t=>Pi.safeStorage.set(yh,JSON.stringify({rate:t})),Ih=()=>{let t=Pi.safeStorage.get(yh);if((0,Pi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},kh=t=>Dp(xh,t),Eh=()=>Bp(xh),k_=()=>{let t=f=>{Pi.safeStorage.set(Pp,JSON.stringify(f))},e=()=>{try{let f=Pi.safeStorage.get(Pp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Pi.safeStorage.get(Mp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Pi.safeStorage.set(Mp,JSON.stringify(f))},n=f=>{u(f);let _=f?i():null;if(_&&(_==null?void 0:_.videoId)===f)return Vt(q({},_),{appliesTo:"to-video"});_&&a();let p=e();return p?Vt(q({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Pi.safeStorage.remove(Mp)},s=()=>{Pi.safeStorage.remove(Pp)},d=(f,_="as-default")=>{f.type==="exact_quality"?o(f):_==="as-default"?t(f):o(f)},l=f=>{let _=n(f);if(_){switch(_.type){case"traffic_saving":Xl(!0);break;case"exact_quality":Rp(f,_.quality)}a(),s()}},u=f=>{let _=Np(f);if(_){o({type:"exact_quality",videoId:f,quality:_});return}Hp()&&t({type:"traffic_saving",videoId:f}),Xl(!1),Jl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Ah,migrateSettingsToLegacyWay:Ph,savePreferredQualitySettings:Nc,savePreferredDefaultQualitySettings:WE,removePreferredQualitySettingsByVideo:QE,getPreferredDefaultQualitySettings:Dc}=k_();var Wm=require("@vkontakte/videoplayer-core/es2015");var E_=$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 ed(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=E_();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(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 Wa=require("@vkontakte/videoplayer-shared/es2015");var A_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
52
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 -
53
- \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`},Vh=h1;var _1={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
56
+ \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Mh=A_;var P_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
54
57
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
55
- Try switching the\xA0quality to\xA0Auto.`},Rh=_1;var ws=new Map;ws.set(pl.InterfaceLanguage.EN,Rh);ws.set(pl.InterfaceLanguage.RU,Vh);var Nh=new Map,Am=({language:t,pack:e,fallback:i})=>{if(ws.has(t)){let o=ws.get(t);ws.set(t,$($({},o),e))}else ws.set(t,e);Nh.set(t,i)},Mm=t=>ws.has(t),Lm=(t,e,i,o)=>{var l;let n=ws.get(t),r=n==null?void 0:n[e];if((0,pl.isNullable)(r)){let d=(l=Nh.get(t))!=null?l:o,a=d?ws.get(d):void 0;r=a==null?void 0:a[e]}return(0,pl.isNullable)(r)?e+Object.values(i!=null?i:{}).join(" "):i?r.replaceAll(/{(\w+?)}/g,(d,a)=>{var c;return(c=i[a])!=null?c:""}):r},X=(t,e)=>{let{interfaceLanguage$:i}=Fe(),o=De(i),n=oi();return Lm(o,t,e,n.defaultLanguage)};var iP=require("@vkontakte/videoplayer-core/es2015");var fl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(fl||(fl={}));var $1=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,b1=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,y1=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Xc="?",x1="X-Sentry-Auth",w1=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function C1(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
56
- `),o,n;for(let r=0;r<i.length;++r){if(o=$1.exec(i[r]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Xc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=y1.exec(i[r]))n={filename:o[2],function:o[1]||Xc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=b1.exec(i[r]))r===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Xc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Xc),e.push(n)}return e.length?{value:Bh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Bh(t){return(t&&t.message||"No error message").split(`
57
- `).filter(i=>!!i)[0]}function S1(t){try{let e=C1(t);if(e)return e}catch(e){}return{value:Bh(t),type:t&&t.name,stacktrace:{frames:[]}}}function T1(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Jc=class{constructor(e){if(e&&e.dsn){let i=w1.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),r=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(r?"/"+r:"")+"/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 zt($({},this.getRequestBlank()),{exception:{values:[S1(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(x1,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:T1(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Dh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function I1(){return window}var eu=class t extends Jc{constructor(e,i=I1()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=c=>c,beforeBreadcrumb:r=c=>c,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(c=>new c(this)),this.beforeSend=n,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",$({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",$({},e)),this}setUser(e){return this.setKeyState("user",$({},e)),this}clone(){let e=new t(zt($({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[$({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(zt($({},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=>Dh(i,o))):!1}getRequestBlank(){return $(zt($({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend($({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Dh(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],r=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return zt($({},i),{[o]:r||d?[...r||[],...d||[]]:$($({},typeof n!="string"?n:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var Ca=require("@vkontakte/videoplayer-shared/es2015");var tu=null,Sa=class{constructor(e,i,o={}){!tu&&e.dsn&&(this.sentryClient=new eu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Ca.Subscription,this.options=e,this.context=o,tu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),tu=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:r,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:c=[],blackErrorIdList:f,blackErrorCategoryList:g}=l,{errorType:m,category:h}=i;if((0,Ca.isNonNullable)(h)&&g.includes(h)||(0,Ca.isNonNullable)(m)&&f.includes(m))return;if(Math.random()<=d||(0,Ca.isNonNullable)(h)&&c.includes(h)||(0,Ca.isNonNullable)(m)&&a.includes(m)){Object.keys(i).length&&n.setTags($({version:this.version},i)),(Object.keys(r).length||Object.keys(o).length)&&n.setExtras($($({},r),o));try{m&&n.captureMessage(m,i.fatal?fl.fatal:fl.error),n.report(e)}catch(x){console.error(x)}}}static getInstance(){return tu}};var Fs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Fs||{});var iu=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()},ou=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Oh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Fd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Us=()=>!!Fd(),nu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ru=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Hh=t=>{let e=window.screen;return(n=>Ct(void 0,null,function*(){return e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject()}))(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var Vm=require("@vkontakte/videoplayer-core/es2015"),Fh=()=>({title:X("hotkey_map_modal_title"),closeBtnText:X("hotkey_map_modal_close_btn_text"),groups:[{title:X("hotkey_map_group_title_common"),items:[{description:X("hotkey_map_item_mute_description"),value:X("hotkey_map_item_mute_value")},{description:X("hotkey_map_item_volume_up_description"),value:X("hotkey_map_item_volume_up_value")},{description:X("hotkey_map_item_volume_down_description"),value:X("hotkey_map_item_volume_down_value")},{description:X("hotkey_map_item_pip_description"),value:X("hotkey_map_item_pip_value")},{description:X("hotkey_map_item_full_screen_description"),value:X("hotkey_map_item_full_screen_value")},{description:X("hotkey_map_item_show_context_menu_description"),value:X("hotkey_map_item_show_context_menu_value")},{description:X("hotkey_map_item_show_hotkey_map_description"),value:X("hotkey_map_item_show_hotkey_map_value")}]},{title:X("hotkey_map_group_title_playback"),items:[{description:X("hotkey_map_item_play_toggle_description"),value:X("hotkey_map_item_play_toggle_value")},{description:X("hotkey_map_item_seek_backward_description"),value:X("hotkey_map_item_seek_backward_value")},{description:X("hotkey_map_item_seek_forward_description"),value:X("hotkey_map_item_seek_forward_value")},{description:X("hotkey_map_item_fast_seek_backward_description"),value:X("hotkey_map_item_fast_seek_backward_value")},{description:X("hotkey_map_item_fast_seek_forward_description"),value:X("hotkey_map_item_fast_seek_forward_value")},{description:X("hotkey_map_item_rate_down_description"),value:X("hotkey_map_item_rate_down_value")},{description:X("hotkey_map_item_rate_up_description"),value:X("hotkey_map_item_rate_up_value")},{description:X("hotkey_map_item_prev_frame_description"),value:X("hotkey_map_item_prev_frame_value")},{description:X("hotkey_map_item_next_frame_description"),value:X("hotkey_map_item_next_frame_value")},{description:X("hotkey_map_item_jump_seek_description"),value:X("hotkey_map_item_jump_seek_value")},{description:X("hotkey_map_item_next_video_description"),value:X("hotkey_map_item_next_video_value")},{description:X("hotkey_map_item_prev_video_description"),value:X("hotkey_map_item_prev_video_value")}]},{title:X("hotkey_map_group_title_subtitles"),items:[{description:X("hotkey_map_item_subtitles_toggle_description"),value:X("hotkey_map_item_subtitles_toggle_value")}]},{title:X("hotkey_map_group_title_episodes"),items:[{description:X("hotkey_map_item_prev_episode_description"),value:Vm.clientChecker.device.isApple?X("hotkey_map_item_prev_episode_mac_value"):X("hotkey_map_item_prev_episode_pc_value")},{description:X("hotkey_map_item_next_episode_description"),value:Vm.clientChecker.device.isApple?X("hotkey_map_item_next_episode_mac_value"):X("hotkey_map_item_next_episode_pc_value")}]}]});var ml=require("@vkontakte/videoplayer-shared/es2015");var Ta=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,ml.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new ml.ValueSubject(!1),isEnabled$:new ml.ValueSubject(!1),type:0};this.info.isEnabled$=new ml.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return Ct(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return Ct(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return Ct(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=$({},e)}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return Ct(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).enterpictureinpicture)==null||r.call(n,e))}onLeavePictureInPicture(e){var n,r,l;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).leavepictureinpicture)==null||r.call(n,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Ia(t){return t instanceof Ta}var vl=require("@vkontakte/videoplayer-shared/es2015");function su(t,e){if(new.target)return E($({component:su},t));P(e,!1);let i=Fe();return Zt(()=>{i.getAdmanWrapper().startPostroll()}),Fr(),A({$set:L,$on:(o,n)=>M(e,o,n)})}var Bm=require("@vkontakte/videoplayer-shared/es2015");var k1=(t,e)=>{t.stopPropagation(),e()()},E1=U('<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>'),P1=U('<div class="container svelte-1k4i25s"><!></div>'),A1={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 au(t,e){if(new.target)return E($({component:au},t));P(e,!0),se(t,A1);let[i,o]=tt(),n=()=>k(c,"$isMobile",i),r=p(e,"position",7,0),l=p(e,"secondsToWatchBeforeSkip",7,0),d=p(e,"skipAd",7,Bm.noop),c=Fe().ui.isMobile,f=b(()=>r()>0&&r()>=l());var g=P1(),m=w(g);{var h=T=>{var V=E1();V.__click=[k1,d];var D=w(V);Ve(),y(V),N(R=>Pe(D,`${R!=null?R:""} `),[()=>X("skip_ads_now")]),C(T,V)},_=T=>{var V=dr();N(D=>Pe(V,D),[()=>X("skip_ads_after",{time:Math.ceil(l()-r()).toFixed(0)})]),C(T,V)};q(m,T=>{s(f)?T(h):T(_,!1)})}y(g),N(()=>{ae(g,"container-mobile",n()),ae(g,"skippable",s(f))}),C(t,g);var x=A({get position(){return r()},set position(T=0){r(T),u()},get secondsToWatchBeforeSkip(){return l()},set secondsToWatchBeforeSkip(T=0){l(T),u()},get skipAd(){return d()},set skipAd(T=Bm.noop){d(T),u()},$set:L,$on:(T,V)=>M(e,T,V)});return o(),x}xt(["click"]);var M1=U('<button class="svelte-1wy3dql"> </button>'),L1={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 lu(t,e){if(new.target)return E($({component:lu},t));P(e,!1),se(t,L1),Fr();var i=M1(),o=w(i,!0);return y(i),N(n=>Pe(o,n),[()=>X("visit_advertiser")],Dr),C(t,i),A({$set:L,$on:(n,r)=>M(e,n,r)})}var V1=U('<div class="top-gradient-mobile svelte-354ajf"></div>'),R1=U('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),N1={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.`},Lh=P_;var ss=new Map;ss.set(Wa.InterfaceLanguage.EN,Lh);ss.set(Wa.InterfaceLanguage.RU,Mh);var Vh=new Map,Up=({language:t,pack:e,fallback:i})=>{if(ss.has(t)){let o=ss.get(t);ss.set(t,q(q({},o),e))}else ss.set(t,e);Vh.set(t,i)},zp=t=>ss.has(t),qp=(t,e,i,o)=>{var s;let n=ss.get(t),a=n==null?void 0:n[e];if((0,Wa.isNullable)(a)){let d=(s=Vh.get(t))!=null?s:o,l=d?ss.get(d):void 0;a=l==null?void 0:l[e]}return(0,Wa.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=we(i),n=Gt();return qp(o,t,e,n.defaultLanguage)};var _A=require("@vkontakte/videoplayer-core/es2015");var Qa;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Qa||(Qa={}));var M_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,L_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,V_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Bc="?",R_="X-Sentry-Auth",N_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function D_(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=M_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Bc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=V_.exec(i[a]))n={filename:o[2],function:o[1]||Bc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=L_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Bc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Bc),e.push(n)}return e.length?{value:Rh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Rh(t){return(t&&t.message||"No error message").split(`
60
+ `).filter(i=>!!i)[0]}function B_(t){try{let e=D_(t);if(e)return e}catch(e){}return{value:Rh(t),type:t&&t.name,stacktrace:{frames:[]}}}function O_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Oc=class{constructor(e){if(e&&e.dsn){let i=N_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return Vt(q({},this.getRequestBlank()),{exception:{values:[B_(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(R_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:O_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Nh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function H_(){return window}var Hc=class t extends Oc{constructor(e,i=H_()){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(Vt(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(Vt(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=>Nh(i,o))):!1}getRequestBlank(){return q(Vt(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=>Nh(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 Vt(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 ea=require("@vkontakte/videoplayer-shared/es2015");var Fc=null,ta=class{constructor(e,i,o={}){!Fc&&e.dsn&&(this.sentryClient=new Hc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ea.Subscription,this.options=e,this.context=o,Fc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Fc=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:a,options:s}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:_}=s,{errorType:p,category:$}=i;if((0,ea.isNonNullable)($)&&_.includes($)||(0,ea.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,ea.isNonNullable)($)&&u.includes($)||(0,ea.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?Qa.fatal:Qa.error),n.report(e)}catch(w){console.error(w)}}}static getInstance(){return Fc}};var xs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(xs||{});var Uc=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()},zc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Dh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},td=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ws=()=>!!td(),qc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Kc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Bh=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 Kp=require("@vkontakte/videoplayer-core/es2015"),Oh=()=>({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:Kp.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:Kp.clientChecker.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});var Ga=require("@vkontakte/videoplayer-shared/es2015");var ia=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,Ga.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Ga.ValueSubject(!1),isEnabled$:new Ga.ValueSubject(!1),type:0};this.info.isEnabled$=new Ga.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=q({},e)}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return St(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function oa(t){return t instanceof ia}var Ya=require("@vkontakte/videoplayer-shared/es2015");Hv();function Gp(t,e){K(e,!1);let i=Ie();Ft(()=>{i.getAdmanWrapper().startPostroll()}),Cr(),W()}var Hh=require("@vkontakte/videoplayer-shared/es2015");var F_=(t,e)=>{t.stopPropagation(),e()()},U_=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>"),q_={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 Yp(t,e){K(e,!0),G(t,q_);let[i,o]=Fe(),n=()=>C(u,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,Hh.noop),u=Ie().ui.isMobile,f=m(()=>a()>0&&a()>=s());var _=z_();let p;var $=h(_);{var y=S=>{var I=U_();I.__click=[F_,d];var A=h(I);be(),g(I),k(P=>fe(A,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),b(S,I)},w=S=>{var I=nr();k(A=>fe(I,A),[()=>F("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(S,I)};V($,S=>{r(f)?S(y):S(w,!1)})}g(_),k(S=>p=oe(_,1,"container svelte-1k4i25s",null,p,S),[()=>({"container-mobile":n(),skippable:r(f)})]),b(t,_),W(),o()}at(["click"]);var K_=L('<button class="svelte-1wy3dql"> </button>'),W_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function jp(t,e){K(e,!1),G(t,W_),Cr();var i=K_(),o=h(i,!0);g(i),k(n=>fe(o,n),[()=>F("visit_advertiser")],xr),b(t,i),W()}var Q_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),G_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Y_={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
61
  360deg,
59
62
  rgba(0, 0, 0, 0) 0%,
60
63
  rgba(0, 0, 0, 0.05) 12%,
@@ -64,7 +67,7 @@ Try switching the\xA0quality to\xA0Auto.`},Rh=_1;var ws=new Map;ws.set(pl.Interf
64
67
  rgba(0, 0, 0, 0.5) 77%,
65
68
  rgba(0, 0, 0, 0.55) 88%,
66
69
  rgba(0, 0, 0, 0.65) 100%
67
- );}`};function gl(t,e){if(new.target)return E($({component:gl},t));P(e,!0),se(t,N1);let[i,o]=tt(),n=()=>k(z,"$adPlaybackState",i),r=()=>k(V,"$isMobile",i),l=()=>k(F,"$adPosition",i),d=()=>k(G,"$secondsToWatchBeforeSkipAd",i),a=()=>k(T,"$isVideoEnded",i),c=p(e,"adsSlotId",7,void 0),f=p(e,"adsParams",7,void 0),g=p(e,"adsPreviewParam",7,void 0),m=p(e,"adsAutoplayParam",7,void 0),h=p(e,"duration",7,0),_=Fe(),x=oi(),T=_.state.isEnded$,V=_.ui.isMobile,D=x.ads.isMobileGoToSiteButton,R=pe(void 0),B=pe(void 0),I=!1,z=_.ads.playbackState,Q=_.ads.canSkip,F=_.ads.position,G=_.ads.secondsToWatchBeforeSkip,J=b(()=>Q&&n()!=="inactive"),ce=b(()=>r()&&n()!=="inactive"&&D);Zt(()=>{var _e;let fe=_.getAdmanWrapper();if(vl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,vl.now)(),c()]}),!c()){fe.onAdmanLoadingError();return}let Te=me=>{fe.initAdman(me),I=!0},Ye=new AbortController,Z=()=>{Ye.abort()},{width:ue,height:le}=De(_.ui.playerSize),He=De(_.ui.isFullscreen),et=(_e=m())!=null?_e:De(_.ui.isAutoplay),dt={width:ue,height:le,isFullscreen:He,isAutoplay:et,adsContainer:s(R),adsVideoElement:s(B),slotId:c(),params:f(),previewParam:g(),duration:h()};return window.AdmanHTML?Te(dt):fe.loadAdman(Ye.signal).then(()=>{Te(dt)}).catch(()=>{fe.onAdmanLoadingError()}),()=>{vl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,vl.now)(),c()]}),!I&&Z()}});var ee=R1(),Ce=w(ee);{var Se=fe=>{var Te=V1();C(fe,Te)};q(Ce,fe=>{r()&&fe(Se)})}var ne=H(Ce,2);St(ne,fe=>Y(B,fe),()=>s(B));var ie=H(ne,2);{var be=fe=>{au(fe,{get position(){return l()},get secondsToWatchBeforeSkip(){return d()},get skipAd(){return _.actions.internal.skipAd}})};q(ie,fe=>{s(J)&&fe(be)})}var j=H(ie,2);{var re=fe=>{su(fe,{})};q(j,fe=>{a()&&fe(re)})}var K=H(j,2);{var qe=fe=>{lu(fe,{})};q(K,fe=>{s(ce)&&fe(qe)})}y(ee),St(ee,fe=>Y(R,fe),()=>s(R)),C(t,ee);var Be=A({get adsSlotId(){return c()},set adsSlotId(fe=void 0){c(fe),u()},get adsParams(){return f()},set adsParams(fe=void 0){f(fe),u()},get adsPreviewParam(){return g()},set adsPreviewParam(fe=void 0){g(fe),u()},get adsAutoplayParam(){return m()},set adsAutoplayParam(fe=void 0){m(fe),u()},get duration(){return h()},set duration(fe=0){h(fe),u()},$set:L,$on:(fe,Te)=>M(e,fe,Te)});return o(),Be}var fr=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(r=>String(r).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var B1=Re('<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 du(t,e){if(new.target)return E($({component:du},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=B1();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var D1=Re('<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 cu(t,e){if(new.target)return E($({component:cu},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=D1();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}function hl(t,e){if(new.target)return E($({component:hl},t));P(e,!0);let i=p(e,"isActive",7,!1);var o=Xe(),n=Ee(o);{var r=d=>{cu(d,{})},l=d=>{du(d,{})};q(n,d=>{i()?d(r):d(l,!1)})}return C(t,o),A({get isActive(){return i()},set isActive(d=!1){i(d),u()},$set:L,$on:(d,a)=>M(e,d,a)})}var O1=U('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),H1=U('<div role="timer" class="thumb-timer svelte-opbced" data-testid="thumb-timer"><div class="thumb-timer-equalizer svelte-opbced"><div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div></div> <span class="thumb-timer-text svelte-opbced"><!></span></div>'),F1={hash:"svelte-opbced",code:`.thumb-timer.svelte-opbced {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration);}.thumb-timer.live.svelte-opbced {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);}.thumb-timer.hidden.svelte-opbced {visibility:hidden;opacity:0;}.thumb-timer.svelte-opbced:after {
70
+ );}`};function id(t,e){K(e,!0),G(t,Y_);let[i,o]=Fe(),n=()=>C(R,"$adPlaybackState",i),a=()=>C(I,"$isMobile",i),s=()=>C(Z,"$adPosition",i),d=()=>C(U,"$secondsToWatchBeforeSkipAd",i),l=()=>C(S,"$isVideoEnded",i),u=v(e,"adsSlotId",3,void 0),f=v(e,"adsParams",3,void 0),_=v(e,"adsPreviewParam",3,void 0),p=v(e,"adsAutoplayParam",3,void 0),$=v(e,"duration",3,0),y=Ie(),w=Gt(),S=y.state.isEnded$,I=y.ui.isMobile,A=w.ads.isMobileGoToSiteButton,P=te(void 0),E=te(void 0),T=!1,R=y.ads.playbackState,z=y.ads.canSkip,Z=y.ads.position,U=y.ads.secondsToWatchBeforeSkip,Q=m(()=>z&&n()!=="inactive"),ee=m(()=>a()&&n()!=="inactive"&&A);Ft(()=>{var Ae;let X=y.getAdmanWrapper();if(Ya.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Ya.now)(),u()]}),!u()){X.onAdmanLoadingError();return}let Ge=ye=>{X.initAdman(ye),T=!0},Re=new AbortController,ue=()=>{Re.abort()},{width:B,height:ce}=we(y.ui.playerSize),Ee=we(y.ui.isFullscreen),Ke=(Ae=p())!=null?Ae:we(y.ui.isAutoplay),lt={width:B,height:ce,isFullscreen:Ee,isAutoplay:Ke,adsContainer:r(P),adsVideoElement:r(E),slotId:u(),params:f(),previewParam:_(),duration:$()};return window.AdmanHTML?Ge(lt):X.loadAdman(Re.signal).then(()=>{Ge(lt)}).catch(()=>{X.onAdmanLoadingError()}),()=>{Ya.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Ya.now)(),u()]}),!T&&ue()}});var ae=G_(),_e=h(ae);{var re=X=>{var Ge=Q_();b(X,Ge)};V(_e,X=>{a()&&X(re)})}var Pe=M(_e,2);ut(Pe,X=>O(E,X),()=>r(E));var qe=M(Pe,2);{var ie=X=>{Yp(X,{get position(){return s()},get secondsToWatchBeforeSkip(){return d()},get skipAd(){return y.actions.internal.skipAd}})};V(qe,X=>{r(Q)&&X(ie)})}var Le=M(qe,2);{var J=X=>{Gp(X,{})};V(Le,X=>{l()&&X(J)})}var D=M(Le,2);{var Be=X=>{jp(X,{})};V(D,X=>{r(ee)&&X(Be)})}g(ae),ut(ae,X=>O(P,X),()=>r(P)),b(t,ae),W(),o()}var lr=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var j_=$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 Zp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=j_();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(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 Z_=$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 Xp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Z_();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(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 od(t,e){let i=v(e,"isActive",3,!1);var o=ze(),n=ve(o);{var a=d=>{Xp(d,{})},s=d=>{Zp(d,{})};V(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var X_=L('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),J_=L('<div role="timer" data-testid="thumb-timer"><div class="thumb-timer-equalizer svelte-opbced"><div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div></div> <span class="thumb-timer-text svelte-opbced"><!></span></div>'),eb={hash:"svelte-opbced",code:`.thumb-timer.svelte-opbced {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration);}.thumb-timer.live.svelte-opbced {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);}.thumb-timer.hidden.svelte-opbced {visibility:hidden;opacity:0;}.thumb-timer.svelte-opbced:after {
68
71
  /* safari fix */content:'';display:inline-block;vertical-align:middle;height:100%;}.thumb-timer-live-icon.svelte-opbced {display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px;}.thumb-timer-equalizer.svelte-opbced {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) {margin-top:-2px;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
69
72
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.thumb-timer.playing.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) .col:where(.svelte-opbced) {animation-play-state:running;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(1) {left:0;
70
73
  animation-name: svelte-opbced-thumb-timer-equalizer-col1;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(2) {left:3px;
@@ -135,9 +138,9 @@ Try switching the\xA0quality to\xA0Auto.`},Rh=_1;var ws=new Map;ws.set(pl.Interf
135
138
  100% {
136
139
  transform: scaleY(0.6);
137
140
  }
138
- }.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function _l(t,e){if(new.target)return E($({component:_l},t));P(e,!0),se(t,F1);let i=p(e,"isHidden",7,!1),o=p(e,"isLive",7,!1),n=p(e,"isPlaying",7,!1),r=p(e,"position",7),l=p(e,"duration",7);var d=H1(),a=H(w(d),2),c=w(a);{var f=m=>{var h=O1(),_=w(h);hl(_,{isActive:!0}),y(h),C(m,h)},g=m=>{var h=dr();N(_=>Pe(h,_),[()=>fr(l()-r())]),C(m,h)};q(c,m=>{o()?m(f):m(g,!1)})}return y(a),y(d),N(()=>{ae(d,"live",o()),ae(d,"hidden",i()),ae(d,"playing",n())}),C(t,d),A({get isHidden(){return i()},set isHidden(m=!1){i(m),u()},get isLive(){return o()},set isLive(m=!1){o(m),u()},get isPlaying(){return n()},set isPlaying(m=!1){n(m),u()},get position(){return r()},set position(m){r(m),u()},get duration(){return l()},set duration(m){l(m),u()},$set:L,$on:(m,h)=>M(e,m,h)})}var $l=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 jh=require("@vkontakte/videoplayer-core/es2015");var Dm=require("@vkontakte/videoplayer-core/es2015");var mr=t=>{t.stopPropagation(),t.preventDefault()},z1=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},W1=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},q1=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},K1=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Uh=t=>t.code==="Escape",Q1=t=>t.code==="ArrowLeft",Ud=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},zh=t=>{if(q1(t)){mr(t),W1(t.target);return}K1(t)&&(mr(t),z1(t.target))},qs=t=>!Dm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Dm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",bl=(t,e,i)=>Ct(void 0,null,function*(){yield xo(),t&&!t.classList.contains("opened")&&!e&&De(i)&&(yield xo(),i.set(!1),t.focus())}),Wh=(t,e,i)=>Ct(void 0,null,function*(){yield xo(),t&&!e&&De(i)&&(i.set(!1),t.focus())}),ss=(t,e,i)=>Ct(void 0,null,function*(){var n;yield xo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),qh=(t,e)=>Ct(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),uu=(t,e)=>{zh(t),Uh(t)&&(mr(t),e())},pu=(t,e)=>Ct(void 0,null,function*(){Ud(t,["ArrowRight"])&&(mr(t),e())}),Kh=(t,e,i)=>Ct(void 0,null,function*(){if(zh(t),Q1(t)){mr(t),e();return}Uh(t)&&(mr(t),i())}),yl=(t,e)=>{Ud(t)&&(mr(t),e())},Qh=(t,e,i)=>{if(Ud(t))mr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),mr(t);return}o==="ArrowRight"&&!e&&(i(!0),mr(t))}},Gh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Yh=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 Pa=require("@vkontakte/videoplayer-shared/es2015");var zr={"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 zd=require("@vkontakte/videoplayer-shared/es2015");var Y1=(t,e)=>{yl(t,()=>e())},j1=U('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Z1={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 fu(t,e){if(new.target)return E($({component:fu},t));P(e,!0),se(t,Z1);let i=p(e,"id",7),o=p(e,"onClick",7,zd.noop),n=p(e,"closeContextMenu",7,zd.noop),r=p(e,"label",7),l=p(e,"ariaLabel",7),d=f=>{f==null||f.stopPropagation(),o()(),n()()};var a=j1();a.__click=d,a.__keydown=[Y1,d];var c=w(a,!0);return y(a),N(()=>{var f;ve(a,"aria-label",(f=l())!=null?f:r()),ve(a,"data-testid",i()),Pe(c,r())}),C(t,a),A({get id(){return i()},set id(f){i(f),u()},get onClick(){return o()},set onClick(f=zd.noop){o(f),u()},get closeContextMenu(){return n()},set closeContextMenu(f=zd.noop){n(f),u()},get label(){return r()},set label(f){r(f),u()},get ariaLabel(){return l()},set ariaLabel(f){l(f),u()},$set:L,$on:(f,g)=>M(e,f,g)})}xt(["click","keydown"]);var Ea=(t,e)=>t.weight-e.weight;var xl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(xl||{});var X1=(t,e)=>{uu(t,e)},J1=t=>{t.preventDefault()},e0=U('<ul role="menu" class="svelte-1p5ukkp"></ul>'),t0={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 mu(t,e){if(new.target)return E($({component:mu},t));P(e,!0),se(t,t0);let[i,o]=tt(),n=()=>k(Se,"$isLive$",i),r=()=>k(j,"$isPiPEnabled$",i),l=()=>k(Ce,"$chromecastState$",i),d=()=>k(re,"$pictureInPictureApiIsActive$",i),a=()=>k(be,"$isLooped$",i),c=()=>k(ne,"$positionExact$",i),f=()=>k(G,"$debugPanelVisible",i),g=()=>k(J,"$additionalContextMenuItems$",i),m=p(e,"visible",7,!1),h=p(e,"supportLink",7),_=p(e,"position",23,()=>({top:0,left:0})),x=p(e,"playerContainerRef",7,void 0),T=p(e,"controlsContainerRef",7,void 0),V=p(e,"menuElementRef",15,void 0),D=p(e,"returnFocus",7),R=pe(0),B=pe(0),I=Fe(),{pictureInPicture$:z}=mo(),Q=oi(),F=I.ui.contextMenu.visible$,G=I.ui.debugPanelVisible,J=I.ui.additionalContextMenuItems$,ce=I.ui.t,ee=I.actions.internal.togglePictureInPicture,Ce=I.state.chromecastState$,Se=I.state.isLive$,ne=I.state.positionExact$,ie=I.state.isInteractive,be=I.state.looped$,{isEnabled$:j,isActive$:re}=z,K=b(()=>{var Ke;return Q.features.copyVideoLink&&((Ke=I.callbacks)==null?void 0:Ke.onCopyVideoLink)}),qe=b(()=>s(K)&&!n()&&!ie),Be=b(()=>{var Ke;return!!((Ke=I.callbacks)!=null&&Ke.onCopyEmbedCodeClicked)}),fe=b(()=>r()&&l()!==jh.ChromecastState.CONNECTED&&!ie),Te=b(()=>Q.features.videoRotate&&!ie),Ye=b(()=>Q.showSupport&&!d()),Z=b(()=>Q.features.saveTraceInfoToFile),ue=()=>{var Ke;F.set(!1),(Ke=D())==null||Ke()},le=(Ke,ut)=>{if(!V()||!x()||!T())return;let $t=V().getBoundingClientRect(),Mt=x().getBoundingClientRect();Y(R,Ke-Mt.left),Y(B,ut-Mt.top),s(R)+$t.width>Mt.width&&Y(R,Mt.width-$t.width),s(B)+$t.height>Mt.height&&Y(B,Mt.height-$t.height),Y(R,Le(Math.max(s(R),0))),Y(B,Le(Math.max(s(B),0)))};lt(()=>{Ct(this,null,function*(){if(V()&&x()&&T()){yield xo();let{top:ut,left:$t,bottom:Mt,right:Qe}=_(),Gt=$t!=null?$t:0,si=ut!=null?ut:0,ai=V().getBoundingClientRect();(0,Pa.isNullable)($t)&&!(0,Pa.isNullable)(Qe)&&(Gt=Qe-ai.width),(0,Pa.isNullable)(ut)&&!(0,Pa.isNullable)(Mt)&&(si=Mt-ai.height),Gt=Math.max(Gt,0),si=Math.max(si,0),le(Gt,si)}})});let He=()=>{I.actions.internal.videoRotate()},et=()=>{(0,Pa.isValidURL)(h())&&window.open(h(),"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},dt=()=>{let Ke=I.actions.internal.getDebugTextData();if(Q.features.saveDebugInfoToFile){let ut=new Blob([...Ke],{type:"plain/text"}),$t=window.URL.createObjectURL(ut);wa($t,"vk_player_debug_info","txt")}else $l(I.actions.internal.getDebugTextData())},_e=()=>{let Ke=I.actions.internal.getTraceTextData(),ut=new Blob([...Ke],{type:"application/json"}),$t=window.URL.createObjectURL(ut);wa($t,"vk_player_trace_info","json")},me=()=>{G.set(!0)},Je=()=>Ct(this,null,function*(){var Ke;try{ee()}finally{(Ke=D())==null||Ke()}}),mt=()=>{I.actions.internal.setLooped(!a())},ge=()=>{var Ke,ut;if(s(Be)){let $t=(ut=(Ke=I.callbacks)==null?void 0:Ke.onCopyEmbedCodeClicked)==null?void 0:ut.call(Ke);$t&&$l($t)}},je=(Ke=!1)=>{var ut,$t;if((ut=I.callbacks)!=null&&ut.onCopyVideoLink){let Mt=($t=I.callbacks)==null?void 0:$t.onCopyVideoLink(Ke,c());Mt&&$l(Mt)}},Tt=b(()=>Q.features.saveDebugInfoToFile?ce("menu_save_debug"):ce("menu_copy_debug")),te=b(()=>s(K)?{id:"copy-link",weight:zr["copy-link"],label:ce("menu_copy_video_link"),onClick:()=>je()}:void 0),it=b(()=>s(qe)?{id:"copy-link-timestamp",weight:zr["copy-link-timestamp"],label:ce("menu_copy_video_link_with_timestamp"),onClick:()=>je(!0)}:void 0),bt=b(()=>s(Be)?{id:"copy-embed-code",weight:zr["copy-embed-code"],label:ce("menu_copy_embed_code"),onClick:ge}:void 0),gt=b(()=>s(fe)?{id:"pip",weight:zr.pip,label:ce("menu_pip"),onClick:Je}:void 0),xe=b(()=>({id:"video-loop",weight:zr["video-loop"],label:a()?ce("menu_video_loop_off"):ce("menu_video_loop_on"),ariaLabel:ce("aria_label_menu_loop"),onClick:mt})),Me=b(()=>s(Te)?{id:"rotate",weight:zr.rotate,label:ce("menu_video_rotate"),ariaLabel:ce("aria_label_menu_rotate"),onClick:He}:void 0),we=b(()=>s(Ye)?{id:"report",weight:zr.report,label:ce("menu_report"),ariaLabel:`${ce("menu_report")}. ${ce("aria_label_new_tab_alert")}`,onClick:et}:void 0),Ze=b(()=>({id:"save-debug",weight:zr["save-debug"],label:s(Tt),onClick:dt})),vt=b(()=>s(Z)?{id:"save-trace",weight:zr["save-trace"],label:ce("menu_save_debug"),onClick:_e}:void 0),Ne=b(()=>({id:"debug-info",weight:zr["debug-info"],label:ce("menu_debug_overlay"),ariaLabel:f()?ce("aria_label_menu_debug_overlay_disable"):ce("aria_label_menu_debug_overlay_enable"),onClick:me})),yt=b(()=>[s(te),s(it),s(bt),s(gt),s(xe),s(Me),s(we),s(Ze),s(vt),s(Ne),...g()].filter(Ke=>!!Ke).sort(Ea));var he=Xe(),Ft=Ee(he);{var Qt=Ke=>{var ut=e0();ut.__contextmenu=[J1],ut.__keydown=[X1,ue],Ei(ut,21,()=>s(yt),so,($t,Mt)=>{fu($t,{get id(){return s(Mt).id},get label(){return s(Mt).label},get ariaLabel(){return s(Mt).ariaLabel},get onClick(){return s(Mt).onClick},closeContextMenu:ue})}),y(ut),St(ut,$t=>V($t),()=>V()),N(()=>{var $t,Mt;return ve(ut,"style",`top: ${($t=s(B))!=null?$t:""}px; left: ${(Mt=s(R))!=null?Mt:""}px;`)}),C(Ke,ut)};q(Ft,Ke=>{m()&&Ke(Qt)})}C(t,he);var ti=A({get visible(){return m()},set visible(Ke=!1){m(Ke),u()},get supportLink(){return h()},set supportLink(Ke){h(Ke),u()},get position(){return _()},set position(Ke={top:0,left:0}){_(Ke),u()},get playerContainerRef(){return x()},set playerContainerRef(Ke=void 0){x(Ke),u()},get controlsContainerRef(){return T()},set controlsContainerRef(Ke=void 0){T(Ke),u()},get menuElementRef(){return V()},set menuElementRef(Ke=void 0){V(Ke),u()},get returnFocus(){return D()},set returnFocus(Ke){D(Ke),u()},$set:L,$on:(Ke,ut)=>M(e,Ke,ut)});return o(),ti}xt(["contextmenu","keydown"]);var vu=class{constructor(e){this.value=e,this.next=null}};var wl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new vu(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 i0=U('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),o0={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 Cl(t,e){if(new.target)return E($({component:Cl},t));P(e,!0),se(t,o0);let i=p(e,"values",23,()=>[]),o=pe(void 0),n=pe(null),r=16,l=120,d=60,a=l/d;Zt(()=>{s(o).width=l,s(o).height=r,Y(n,Le(s(o).getContext("2d")))});function c(m,h,_,x,T){T===0&&(T=1),m.fillStyle="#fff",m.fillRect(h,_,x,T)}lt(()=>{let m="";if(s(n)){let h=i()[0];for(let x=1;x<i().length;x++)i()[x]>h&&(h=i()[x]);s(n).clearRect(0,0,l,r);let _=d-1;for(let x=i().length-1;x>=0;x--){let T=_*a,V=h>0?r*(i()[x]/h):0;c(s(n),T,0,a,V),m=V+" "+m,_--}}});var f=i0(),g=w(f);return St(g,m=>Y(o,m),()=>s(o)),y(f),C(t,f),A({get values(){return i()},set values(m=[]){i(m),u()},$set:L,$on:(m,h)=>M(e,m,h)})}var Om=require("@vkontakte/videoplayer-shared/es2015");var n0=(t,e)=>{t.stopPropagation(),Om.safeStorage.remove(Rd),e.set(!1)},r0=U('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),s0=U('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),a0=U('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),l0=U('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),d0=U('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),c0=U('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),u0=U('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),p0=U('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),f0=U('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),m0=U('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),v0=U('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),g0=U('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),h0=U('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),_0=U('<div class="container svelte-4deykz" 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>'),$0={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 Sl(t,e){if(new.target)return E($({component:Sl},t));P(e,!0),se(t,$0);let[i,o]=tt(),n=()=>k(d,"$isMobile",i),r=Fe(),l=r.ui.debugPanelVisible,d=r.ui.isMobile,a=pe(Le(r.actions.internal.getDebugPanelData())),c=r.actions.internal.getVideoElement(),f=pe(0),g=pe(0),m=pe(0),h=new wl(60),_=new wl(60),x=new wl(60),T=pe(Le([])),V=pe(Le([])),D=pe(Le([])),R=X("aria_label_debug_panel");Zt(()=>{Om.safeStorage.set(Rd,"true"),r.actions.internal.startLogging(),c&&(Y(g,Le(c.getVideoPlaybackQuality().droppedVideoFrames)),Y(f,Le(c.getVideoPlaybackQuality().totalVideoFrames)));let Me=window.setInterval(()=>{Y(a,Le(r.actions.internal.getDebugPanelData()))},500),we;return c&&(we=window.setInterval(()=>{if(c){Y(g,Le(c.getVideoPlaybackQuality().droppedVideoFrames));let Ze=c.getVideoPlaybackQuality().totalVideoFrames;Y(m,Ze-s(f)),Y(f,Le(Ze)),h.push(s(m)),s(a).speed&&_.push(s(a).speed),s(a).bitrate&&x.push(s(a).bitrate),Y(T,Le(h.getValuesFromBottom())),Y(V,Le(_.getValuesFromBottom())),Y(D,Le(x.getValuesFromBottom()))}},1e3)),()=>{r.actions.internal.stopLogging(),clearInterval(Me),we&&clearInterval(we)}});var B=_0();ve(B,"aria-label",R);var I=w(B);I.__click=[n0,l];var z=H(I,2),Q=w(z),F=H(w(Q),2),G=w(F,!0);y(F),y(Q);var J=H(Q,2);{var ce=Me=>{var we=r0(),Ze=H(w(we),2),vt=w(Ze,!0);y(Ze),y(we),N(()=>Pe(vt,s(a).id)),C(Me,we)};q(J,Me=>{s(a).id&&Me(ce)})}var ee=H(J,2);{var Ce=Me=>{var we=s0(),Ze=H(w(we),2),vt=w(Ze,!0);y(Ze),y(we),N(()=>Pe(vt,s(a).vsid)),C(Me,we)};q(ee,Me=>{s(a).vsid&&Me(Ce)})}var Se=H(ee,2);{var ne=Me=>{var we=a0(),Ze=H(w(we),2),vt=w(Ze,!0);y(Ze),y(we),N(()=>Pe(vt,s(a).provider)),C(Me,we)};q(Se,Me=>{s(a).provider&&Me(ne)})}var ie=H(Se,2);{var be=Me=>{var we=l0(),Ze=H(w(we),2),vt=w(Ze);y(Ze),y(we),N(()=>{var Ne,yt;return Pe(vt,`Video: ${s(a).videoCodec||""} ${(Ne=s(a).hdr?"(HDR)":"")!=null?Ne:""}
141
+ }.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function nd(t,e){K(e,!0),G(t,eb);let i=v(e,"isHidden",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var a=J_();let s;var d=M(h(a),2),l=h(d);{var u=_=>{var p=X_(),$=h(p);od($,{isActive:!0}),g(p),b(_,p)},f=_=>{var p=nr();k($=>fe(p,$),[()=>lr(e.duration-e.position)]),b(_,p)};V(l,_=>{o()?_(u):_(f,!1)})}g(d),g(a),k(_=>s=oe(a,1,"thumb-timer svelte-opbced",null,s,_),[()=>({live:o(),hidden:i(),playing:n()})]),b(t,a),W()}var ja=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 Yh=require("@vkontakte/videoplayer-core/es2015");var Jp=require("@vkontakte/videoplayer-core/es2015");var dr=t=>{t.stopPropagation(),t.preventDefault()},ib=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},ob=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},nb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},rb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Fh=t=>t.code==="Escape",sb=t=>t.code==="ArrowLeft",rd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Uh=t=>{if(nb(t)){dr(t),ob(t.target);return}rb(t)&&(dr(t),ib(t.target))},Ts=t=>!Jp.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Jp.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Za=(t,e,i)=>St(void 0,null,function*(){yield yo(),t&&!t.classList.contains("opened")&&!e&&we(i)&&(yield yo(),i.set(!1),t.focus())}),zh=(t,e,i)=>St(void 0,null,function*(){yield yo(),t&&!e&&we(i)&&(i.set(!1),t.focus())}),Xa=(t,e,i)=>St(void 0,null,function*(){var n;yield yo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),qh=(t,e)=>St(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Wc=(t,e)=>{Uh(t),Fh(t)&&(dr(t),e())},Qc=(t,e)=>St(void 0,null,function*(){rd(t,["ArrowRight"])&&(dr(t),e())}),Kh=(t,e,i)=>St(void 0,null,function*(){if(Uh(t),sb(t)){dr(t),e();return}Fh(t)&&(dr(t),i())}),Ja=(t,e)=>{rd(t)&&(dr(t),e())},Wh=(t,e,i)=>{if(rd(t))dr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),dr(t);return}o==="ArrowRight"&&!e&&(i(!0),dr(t))}},Qh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Gh=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 sa=require("@vkontakte/videoplayer-shared/es2015");var Ir={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var ef=require("@vkontakte/videoplayer-shared/es2015");var lb=(t,e)=>{Ja(t,()=>e())},db=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 tf(t,e){K(e,!0),G(t,cb);let i=v(e,"onClick",3,ef.noop),o=v(e,"closeContextMenu",3,ef.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=db();a.__click=n,a.__keydown=[lb,n];var s=h(a,!0);g(a),k(()=>{var d;De(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(a,"data-testid",e.id),fe(s,e.label)}),b(t,a),W()}at(["click","keydown"]);var ra=(t,e)=>t.weight-e.weight;var el=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(el||{});var ub=(t,e)=>{Wc(t,e)},pb=t=>{t.preventDefault()},fb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),mb={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function of(t,e){K(e,!0),G(t,mb);let[i,o]=Fe(),n=()=>C(ae,"$isLive$",i),a=()=>C(qe,"$isPiPEnabled$",i),s=()=>C(ee,"$chromecastState$",i),d=()=>C(ie,"$pictureInPictureApiIsActive$",i),l=()=>C(Pe,"$isLooped$",i),u=()=>C(_e,"$positionExact$",i),f=()=>C(z,"$debugPanelVisible",i),_=()=>C(Z,"$additionalContextMenuItems$",i),p=v(e,"visible",3,!1),$=v(e,"position",19,()=>({top:0,left:0})),y=v(e,"playerContainerRef",3,void 0),w=v(e,"controlsContainerRef",3,void 0),S=v(e,"menuElementRef",15,void 0),I=te(0),A=te(0),P=Ie(),{pictureInPicture$:E}=co(),T=Gt(),R=P.ui.contextMenu.visible$,z=P.ui.debugPanelVisible,Z=P.ui.additionalContextMenuItems$,U=P.ui.t,Q=P.actions.internal.togglePictureInPicture,ee=P.state.chromecastState$,ae=P.state.isLive$,_e=P.state.positionExact$,re=P.state.isInteractive,Pe=P.state.looped$,{isEnabled$:qe,isActive$:ie}=E,Le=m(()=>{var Ye;return T.features.copyVideoLink&&((Ye=P.callbacks)==null?void 0:Ye.onCopyVideoLink)}),J=m(()=>r(Le)&&!n()&&!re),D=m(()=>{var Ye;return!!((Ye=P.callbacks)!=null&&Ye.onCopyEmbedCodeClicked)}),Be=m(()=>a()&&s()!==Yh.ChromecastState.CONNECTED&&!re),X=m(()=>T.features.videoRotate&&!re),Ge=m(()=>T.showSupport&&!d()),Re=m(()=>T.features.saveTraceInfoToFile),ue=()=>{var Ye;R.set(!1),(Ye=e.returnFocus)==null||Ye.call(e)},B=(Ye,dt)=>{if(!S()||!y()||!w())return;let Je=S().getBoundingClientRect(),It=y().getBoundingClientRect();O(I,Ye-It.left),O(A,dt-It.top),r(I)+Je.width>It.width&&O(I,It.width-Je.width),r(A)+Je.height>It.height&&O(A,It.height-Je.height),O(I,pe(Math.max(r(I),0))),O(A,pe(Math.max(r(A),0)))};Ze(()=>{St(this,null,function*(){if(S()&&y()&&w()){yield yo();let{top:dt,left:Je,bottom:It,right:ei}=$(),We=Je!=null?Je:0,ct=dt!=null?dt:0,oi=S().getBoundingClientRect();(0,sa.isNullable)(Je)&&!(0,sa.isNullable)(ei)&&(We=ei-oi.width),(0,sa.isNullable)(dt)&&!(0,sa.isNullable)(It)&&(ct=It-oi.height),We=Math.max(We,0),ct=Math.max(ct,0),B(We,ct)}})});let ce=()=>{P.actions.internal.videoRotate()},Ee=()=>{(0,sa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Ke=()=>{let Ye=P.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let dt=new Blob([...Ye],{type:"plain/text"}),Je=window.URL.createObjectURL(dt);Js(Je,"vk_player_debug_info","txt")}else ja(P.actions.internal.getDebugTextData())},lt=()=>{let Ye=P.actions.internal.getTraceTextData(),dt=new Blob([...Ye],{type:"application/json"}),Je=window.URL.createObjectURL(dt);Js(Je,"vk_player_trace_info","json")},Ae=()=>{z.set(!0)},ye=()=>St(this,null,function*(){var Ye;try{Q()}finally{(Ye=e.returnFocus)==null||Ye.call(e)}}),Me=()=>{P.actions.internal.setLooped(!l())},rt=()=>{var Ye,dt;if(r(D)){let Je=(dt=(Ye=P.callbacks)==null?void 0:Ye.onCopyEmbedCodeClicked)==null?void 0:dt.call(Ye);Je&&ja(Je)}},vt=(Ye=!1)=>{var dt,Je;if((dt=P.callbacks)!=null&&dt.onCopyVideoLink){let It=(Je=P.callbacks)==null?void 0:Je.onCopyVideoLink(Ye,u());It&&ja(It)}},tt=m(()=>T.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),Ot=m(()=>r(Le)?{id:"copy-link",weight:Ir["copy-link"],label:U("menu_copy_video_link"),onClick:()=>vt()}:void 0),st=m(()=>r(J)?{id:"copy-link-timestamp",weight:Ir["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>vt(!0)}:void 0),gt=m(()=>r(D)?{id:"copy-embed-code",weight:Ir["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:rt}:void 0),qt=m(()=>r(Be)?{id:"pip",weight:Ir.pip,label:U("menu_pip"),onClick:ye}:void 0),Qt=m(()=>({id:"video-loop",weight:Ir["video-loop"],label:l()?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:Me})),Ve=m(()=>r(X)?{id:"rotate",weight:Ir.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:ce}:void 0),se=m(()=>r(Ge)?{id:"report",weight:Ir.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:Ee}:void 0),j=m(()=>({id:"save-debug",weight:Ir["save-debug"],label:r(tt),onClick:Ke})),le=m(()=>r(Re)?{id:"save-trace",weight:Ir["save-trace"],label:U("menu_save_debug"),onClick:lt}:void 0),ge=m(()=>({id:"debug-info",weight:Ir["debug-info"],label:U("menu_debug_overlay"),ariaLabel:f()?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"),onClick:Ae})),Ce=m(()=>[r(Ot),r(st),r(gt),r(qt),r(Qt),r(Ve),r(se),r(j),r(le),r(ge),..._()].filter(Ye=>!!Ye).sort(ra));var Ne=ze(),pt=ve(Ne);{var Kt=Ye=>{var dt=fb();dt.__contextmenu=[pb],dt.__keydown=[ub,ue],yi(dt,21,()=>r(Ce),Je=>Je.id,(Je,It)=>{tf(Je,{get id(){return r(It).id},get label(){return r(It).label},get ariaLabel(){return r(It).ariaLabel},get onClick(){return r(It).onClick},closeContextMenu:ue})}),g(dt),ut(dt,Je=>S(Je),()=>S()),k(()=>{var Je,It;return nt(dt,`top: ${(Je=r(A))!=null?Je:""}px; left: ${(It=r(I))!=null?It:""}px;`)}),b(Ye,dt)};V(pt,Ye=>{p()&&Ye(Kt)})}b(t,Ne),W(),o()}at(["contextmenu","keydown"]);var Gc=class{constructor(e){this.value=e,this.next=null}};var tl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Gc(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 vb=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),gb={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 sd(t,e){K(e,!0),G(t,gb);let i=v(e,"values",19,()=>[]),o=te(void 0),n=te(null),a=16,s=120,d=60,l=s/d;Ft(()=>{r(o).width=s,r(o).height=a,O(n,pe(r(o).getContext("2d")))});function u(p,$,y,w,S){S===0&&(S=1),p.fillStyle="#fff",p.fillRect($,y,w,S)}Ze(()=>{let p="";if(r(n)){let $=i()[0];for(let w=1;w<i().length;w++)i()[w]>$&&($=i()[w]);r(n).clearRect(0,0,s,a);let y=d-1;for(let w=i().length-1;w>=0;w--){let S=y*l,I=$>0?a*(i()[w]/$):0;u(r(n),S,0,l,I),p=I+" "+p,y--}}});var f=vb(),_=h(f);ut(_,p=>O(o,p),()=>r(o)),g(f),b(t,f),W()}var nf=require("@vkontakte/videoplayer-shared/es2015");var hb=(t,e)=>{t.stopPropagation(),nf.safeStorage.remove(Gl),e.set(!1)},_b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),bb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),$b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),yb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),xb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),wb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),kb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Pb=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>'),Mb={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 ad(t,e){K(e,!0),G(t,Mb);let[i,o]=Fe(),n=()=>C(d,"$isMobile",i),a=Ie(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=te(pe(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=te(0),_=te(0),p=te(0),$=new tl(60),y=new tl(60),w=new tl(60),S=te(pe([])),I=te(pe([])),A=te(pe([])),P=F("aria_label_debug_panel");Ft(()=>{nf.safeStorage.set(Gl,"true"),a.actions.internal.startLogging(),u&&(O(_,pe(u.getVideoPlaybackQuality().droppedVideoFrames)),O(f,pe(u.getVideoPlaybackQuality().totalVideoFrames)));let j=window.setInterval(()=>{O(l,pe(a.actions.internal.getDebugPanelData()))},500),le;return u&&(le=window.setInterval(()=>{if(u){O(_,pe(u.getVideoPlaybackQuality().droppedVideoFrames));let ge=u.getVideoPlaybackQuality().totalVideoFrames;O(p,ge-r(f)),O(f,pe(ge)),$.push(r(p)),r(l).speed&&y.push(r(l).speed),r(l).bitrate&&w.push(r(l).bitrate),O(S,pe($.getValuesFromBottom())),O(I,pe(y.getValuesFromBottom())),O(A,pe(w.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(j),le&&clearInterval(le)}});var E=Pb();let T;De(E,"aria-label",P);var R=h(E);R.__click=[hb,s];var z=M(R,2),Z=h(z),U=M(h(Z),2),Q=h(U,!0);g(U),g(Z);var ee=M(Z,2);{var ae=j=>{var le=_b(),ge=M(h(le),2),Ce=h(ge,!0);g(ge),g(le),k(()=>fe(Ce,r(l).id)),b(j,le)};V(ee,j=>{r(l).id&&j(ae)})}var _e=M(ee,2);{var re=j=>{var le=bb(),ge=M(h(le),2),Ce=h(ge,!0);g(ge),g(le),k(()=>fe(Ce,r(l).vsid)),b(j,le)};V(_e,j=>{r(l).vsid&&j(re)})}var Pe=M(_e,2);{var qe=j=>{var le=$b(),ge=M(h(le),2),Ce=h(ge,!0);g(ge),g(le),k(()=>fe(Ce,r(l).provider)),b(j,le)};V(Pe,j=>{r(l).provider&&j(qe)})}var ie=M(Pe,2);{var Le=j=>{var le=yb(),ge=M(h(le),2),Ce=h(ge);g(ge),g(le),k(()=>{var Ne,pt;return fe(Ce,`Video: ${r(l).videoCodec||""} ${(Ne=r(l).hdr?"(HDR)":"")!=null?Ne:""}
139
142
  &
140
- Audio: ${s(a).audioCodec||""} ${(yt=s(a).audioLanguage?`(${s(a).audioLanguage})`:"")!=null?yt:""}`)}),C(Me,we)};q(ie,Me=>{(s(a).videoCodec||s(a).audioCodec)&&Me(be)})}var j=H(ie,2);{var re=Me=>{var we=d0(),Ze=H(w(we),2),vt=w(Ze,!0);y(Ze),y(we),N(()=>Pe(vt,s(a).viewport)),C(Me,we)};q(j,Me=>{s(a).viewport&&Me(re)})}var K=H(j,2);{var qe=Me=>{var we=c0(),Ze=H(w(we),2),vt=w(Ze,!0);y(Ze),y(we),N(()=>Pe(vt,s(a).videoSize)),C(Me,we)};q(K,Me=>{s(a).videoSize&&Me(qe)})}var Be=H(K,2);{var fe=Me=>{var we=u0(),Ze=H(w(we),2),vt=w(Ze,!0);y(Ze),y(we),N(()=>Pe(vt,s(a).cdn)),C(Me,we)};q(Be,Me=>{s(a).cdn&&Me(fe)})}var Te=H(Be,2);{var Ye=Me=>{var we=p0(),Ze=H(w(we),2),vt=w(Ze);y(Ze),y(we),N(()=>{var Ne;return Pe(vt,`${(Ne=s(a).volume)!=null?Ne:""} %`)}),C(Me,we)};q(Te,Me=>{s(a).volume&&Me(Ye)})}var Z=H(Te,2);{var ue=Me=>{var we=f0(),Ze=H(w(we),2),vt=w(Ze);y(Ze),y(we),N(Ne=>Pe(vt,`${Ne!=null?Ne:""} s`),[()=>s(a).buffer.toFixed(2)]),C(Me,we)};q(Z,Me=>{s(a).buffer&&Me(ue)})}var le=H(Z,2);{var He=Me=>{var we=m0(),Ze=H(w(we),2),vt=w(Ze);y(Ze),y(we),N(Ne=>Pe(vt,`${Ne!=null?Ne:""} s`),[()=>s(a).liveLatency.toFixed(2)]),C(Me,we)};q(le,Me=>{s(a).liveLatency&&Me(He)})}var et=H(le,2);{var dt=Me=>{var we=v0(),Ze=H(w(we),2),vt=w(Ze,!0);y(Ze),y(we),N(Ne=>Pe(vt,Ne),[()=>[{value:s(a).currentVideoSegmentLength,title:"Video:"},{value:s(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ne})=>Ne).map(({value:Ne,title:yt})=>`${yt} ${((Ne!=null?Ne:0)/1e3).toFixed(2)} s`).join(" & ")]),C(Me,we)};q(et,Me=>{(s(a).currentVideoSegmentLength||s(a).currentAudioSegmentLength)&&Me(dt)})}var _e=H(et,2),me=H(w(_e),2),Je=w(me);y(me),y(_e);var mt=H(_e,2);{var ge=Me=>{var we=g0(),Ze=H(w(we),2);Cl(Ze,{get values(){return s(V)}});var vt=H(Ze,2),Ne=w(vt);y(vt),y(we),N(yt=>Pe(Ne,`${yt!=null?yt:""} Kbps`),[()=>s(a).speed.toFixed(2)]),C(Me,we)};q(mt,Me=>{s(a).speed&&Me(ge)})}var je=H(mt,2);{var Tt=Me=>{var we=h0(),Ze=H(w(we),2);Cl(Ze,{get values(){return s(D)}});var vt=H(Ze,2),Ne=w(vt);y(vt),y(we),N(yt=>Pe(Ne,`${yt!=null?yt:""} Kbps`),[()=>s(a).bitrate.toFixed(2)]),C(Me,we)};q(je,Me=>{s(a).bitrate&&Me(Tt)})}var te=H(je,2),it=H(w(te),2);Cl(it,{get values(){return s(T)}});var bt=H(it,2),gt=w(bt,!0);y(bt),y(te),y(z),y(B),N(()=>{var Me,we;ae(B,"container-mobile",n()),Pe(G,s(a).version),Pe(Je,`${(Me=s(g))!=null?Me:""} / ${(we=s(f))!=null?we:""} frames`),Pe(gt,s(m))}),C(t,B);var xe=A({$set:L,$on:(Me,we)=>M(e,Me,we)});return o(),xe}xt(["click"]);var Hm=require("@vkontakte/videoplayer-shared/es2015");var b0=(t,e)=>{t.stopPropagation(),e()()},y0=U('<div class="close svelte-1ome55p"></div>'),x0={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 Ks(t,e){if(new.target)return E($({component:Ks},t));P(e,!0),se(t,x0);let i=p(e,"onClick",7,Hm.noop);var o=y0();return o.__click=[b0,i],C(t,o),A({get onClick(){return i()},set onClick(n=Hm.noop){i(n),u()},$set:L,$on:(n,r)=>M(e,n,r)})}xt(["click"]);var Fm=require("@vkontakte/videoplayer-shared/es2015");var w0=U('<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>'),C0={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 Tl(t,e){if(new.target)return E($({component:Tl},t));P(e,!0),se(t,C0);let i=p(e,"isRunning",7,!0),o=p(e,"onTimerEnded",7,Fm.noop),n=5e3,r=pe(void 0),l,d,a=pe(0),c;lt(()=>{i()&&(d=Date.now(),Y(a,Le(requestAnimationFrame(f))))});let f=()=>{i()&&(c=(Date.now()-d)/n,c<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),l==null||l.stroke(),Y(a,Le(requestAnimationFrame(f)))):o()())};Zt(()=>{if(l=s(r).getContext("2d"),!!l)return l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff",()=>{cancelAnimationFrame(s(a))}});var g=w0(),m=w(g);return St(m,h=>Y(r,h),()=>s(r)),Ve(2),y(g),C(t,g),A({get isRunning(){return i()},set isRunning(h=!0){i(h),u()},get onTimerEnded(){return o()},set onTimerEnded(h=Fm.noop){o(h),u()},$set:L,$on:(h,_)=>M(e,h,_)})}var S0=(t,e,i)=>{e(!1),i()},T0=U('<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 class="thumb-overlay svelte-jfbaax"></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),I0={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 gu(t,e){if(new.target)return E($({component:gu},t));P(e,!0),se(t,I0);let[i,o]=tt(),n=()=>k(g,"$autoplayNextEnabled$",i),r=()=>k(m,"$timerNextVideoRunning$",i),l=p(e,"title",7),d=p(e,"thumb",7),a=p(e,"clickCloseIcon",7),c=p(e,"isHide",7),f=Fe(),g=f.ui.autoplayNextEnabled$,m=f.ui.timerNextVideoRunning$,h=f.actions.internal.nextVideoClick,_=f.actions.internal.nextVideoAnnouncementShow,x=f.actions.internal.nextVideoAnnouncementClick,T=f.actions.internal.nextVideoAnnouncementAuto,V=f.actions.internal.nextVideoAnnouncementCancel,D=()=>{h(!1),T()},R=()=>{a()(),V()};Zt(()=>{c()||_(),c()&&n()&&(h(!1),T())});var B=Xe(),I=Ee(B);{var z=F=>{var G=T0(),J=H(Ee(G),2),ce=w(J),ee=w(ce),Ce=w(ee,!0);y(ee);var Se=H(ee,2);Ks(Se,{onClick:R}),y(ce);var ne=H(ce,2);ne.__click=[S0,h,x];var ie=w(ne),be=w(ie),j=w(be),re=H(j,2);{var K=Te=>{Tl(Te,{get isRunning(){return r()},onTimerEnded:D})};q(re,Te=>{n()&&Te(K)})}y(be),y(ie);var qe=H(ie,2),Be=w(qe),fe=w(Be,!0);y(Be),y(qe),y(ne),y(J),N(Te=>{Pe(Ce,Te),ve(be,"style",`background-image: url('${d()}')`),ae(j,"withOpacity",n()),Pe(fe,l())},[()=>X("end_screen_next_video")]),C(F,G)};q(I,F=>{c()||F(z)})}C(t,B);var Q=A({get title(){return l()},set title(F){l(F),u()},get thumb(){return d()},set thumb(F){d(F),u()},get clickCloseIcon(){return a()},set clickCloseIcon(F){a(F),u()},get isHide(){return c()},set isHide(F){c(F),u()},$set:L,$on:(F,G)=>M(e,F,G)});return o(),Q}xt(["click"]);var Gs=require("@vkontakte/videoplayer-core/es2015"),Zh=require("@vkontakte/videoplayer-shared/es2015"),sn=require("@vkontakte/videoplayer-statistics/es2015");var Um=(t,e)=>Math.min(+(t+e).toFixed(2),1),zm=(t,e)=>Math.max(+(t-e).toFixed(2),0),hu=(t,e,i)=>{let o=Um(e,i);e<1&&t.actions.internal.setVolume(o)},_u=(t,e,i)=>{let o=zm(e,i);e>0&&t.actions.internal.setVolume(o)};var Qs=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var E0=U('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),P0={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function $u(t,e){var Ne,yt;if(new.target)return E($({component:$u},t));P(e,!0),se(t,P0);let[i,o]=tt(),n=()=>k(ne,"$playbackState$",i),r=()=>k(ie,"$adPlaybackState",i),l=()=>k(K,"$disabledControls$",i),d=()=>k(be,"$positionExact$",i),a=()=>k(j,"$duration$",i),c=()=>k(me,"$isAudioAvailable$",i),f=()=>k(re,"$volume$",i),g=()=>k(Te,"$availablePlaybackRates$",i),m=()=>k(fe,"$currentPlaybackRate$",i),h=()=>k(mt,"$isInteractiveTime$",i),_=()=>k(ge,"$showInteractiveTimeIndicatorTooltip$",i),x=()=>k(He,"$isEnded$",i),T=()=>k(qe,"$muted$",i),V=()=>k(Be,"$currentSubtitle$",i),D=()=>k(et,"$overlayContainer$",i),R=p(e,"isAds",7),B=p(e,"hideContextMenu",7),I=p(e,"toggleFullscreen",7),z=p(e,"showHotKeyHelpers",7),Q=p(e,"showKeyMap",7),F=p(e,"fakePlayButtonHandler",7),G=p(e,"children",7),J=p(e,"nextButtonActive",7,!1),ce=p(e,"prevButtonActive",7,!1),ee=Fe(),Ce=oi(),Se=ee.getLogger().createComponentLog("KeyboardControls component"),ne=ee.state.playbackState$,ie=ee.ads.playbackState,be=ee.state.positionExact$,j=ee.state.duration$,re=ee.state.volume$,K=ee.ui.controls.disabledControls$,qe=ee.state.muted$,Be=ee.state.currentSubtitle$,fe=ee.state.currentPlaybackRate$,Te=ee.state.availablePlaybackRates$,Ye=ee.ui.contextMenu.openedByHotKey$,Z=ee.ui.contextMenu.lastActiveElem$,ue=ee.ui.contextMenu.visible$,le=ee.ui.contextMenu.position$,He=ee.state.isEnded$,et=ee.ui.overlayContainer$,dt=(Ne=ee.callbacks)==null?void 0:Ne.onAudioDoesNotExistHint,_e=(yt=ee.callbacks)==null?void 0:yt.onAudioDisabledHint,me=ee.state.isAudioAvailable$,Je=ee.state.isAudioDisabled,mt=ee.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:ge}=mo(),je=0,Tt=!0,te=pe(void 0),it=()=>{var he;return(he=s(te))==null?void 0:he.focus()},bt=he=>(he!==Tt&&(Tt=he,je=0),je+=1,(Ce.controls.seekStepKeyboard+Ce.controls.seekStepKeyboard*je)/1e3),gt=he=>{var ai,bi;let Ft=he.target,Qt=(ai=Ft==null?void 0:Ft.getAttribute("role"))==null?void 0:ai.includes("menuitem"),ti=Ft.classList.contains("btn"),Ke=he.code;if(ti&&Ke==="Space")return;let ut=rh.has(Ke);if(Qt&&ut)return;let $t=!nh.has(Ke);if(he.ctrlKey&&$t||he.altKey&&$t||he.metaKey)return;let Mt=Qt&&Ke==="Escape";sh.has(Ke)||Mt||B()();let Qe=n()===Gs.PlaybackState.PLAYING||n()===Gs.PlaybackState.PAUSED,Gt=R()&&(r()==="paused"||r()==="playing"),si=!Gt&&!l().has("TIMELINE");if(Qe||Gt)switch(Se({message:`key down, code: ${Ke}`}),Ke){case"KeyJ":case"ArrowLeft":{if(!si)break;if(he.ctrlKey||he.altKey){let ht=ee.actions.internal.getPrevEpisode();ee.actions.internal.seekToPrevEpisode(ht),ht&&z()({type:"EPISODE_PREV",text:ht.text}),he.preventDefault()}else{let ht=he.shiftKey?bt(!1):Ce.controls.seekStepKeyboard/1e3,_t=Math.max(d()-ht,0);d()>0&&(ee.actions.internal.seekTime(_t,sn.SeekAction.DOUBLE_TAP),z()({type:"BACKWARD_SEEK",text:ht.toString()}),he.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!si)break;if(he.ctrlKey||he.altKey){let ht=ee.actions.internal.getNextEpisode();ee.actions.internal.seekToNextEpisode(ht),ht&&z()({type:"EPISODE_NEXT",text:ht.text}),he.preventDefault()}else{let ht=he.shiftKey?bt(!0):Ce.controls.seekStepKeyboard/1e3,_t=Math.min(d()+ht,a());Math.round(d())<Math.round(a())&&(ee.actions.internal.seekTime(_t,sn.SeekAction.DOUBLE_TAP),z()({type:"FORWARD_SEEK",text:ht.toString()}),he.preventDefault())}break}case"ArrowUp":{if(Qs({isAudioDisabled:Je,audioDisabledHintCallback:_e,isAudioAvailable:c(),audioIsNotExistHintCallback:dt})){let ht=f(),_t=Ce.controls.volumeStepKeyboard,pt=ht<=1;if(hu(ee,ht,_t),pt){let O=Math.round(Um(ht,_t)*100).toString();z()({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:O}})}}he.preventDefault();break}case"ArrowDown":{if(Qs({isAudioDisabled:Je,audioDisabledHintCallback:_e,isAudioAvailable:c(),audioIsNotExistHintCallback:dt})){let ht=f(),_t=Ce.controls.volumeStepKeyboard,pt=ht>=0;if(_u(ee,ht,_t),pt){let O=Math.round(zm(ht,_t)*100).toString();z()({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:O}})}}he.preventDefault();break}case"Comma":{if(he.shiftKey){ee.actions.internal.decrementPlaybackRate();let ht=g().find(_t=>_t.value===m());z()({type:"RATE_DOWN",text:ht==null?void 0:ht.displayValue}),he.preventDefault()}else{if(Gt||n()!==Gs.PlaybackState.PAUSED)break;let ht=Math.max(d()-Ce.controls.seekStepFrame/1e3,0);d()>0&&(z()({type:"BACKWARD_SEEK"}),ee.actions.internal.clearDelayedBufferingCheckTimeout(),ee.actions.internal.seekTime(ht,sn.SeekAction.DOUBLE_TAP),he.preventDefault())}break}case"Period":{if(he.shiftKey){ee.actions.internal.incrementPlaybackRate();let ht=g().find(_t=>_t.value===m());z()({type:"RATE_UP",text:ht==null?void 0:ht.displayValue}),he.preventDefault()}else{if(Gt||n()!==Gs.PlaybackState.PAUSED)break;let ht=Math.min(d()+Ce.controls.seekStepFrame/1e3,a());d()<a()&&(z()({type:"FORWARD_SEEK"}),ee.actions.internal.clearDelayedBufferingCheckTimeout(),ee.actions.internal.seekTime(ht,sn.SeekAction.DOUBLE_TAP),he.preventDefault())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(h()&&_()&&ge.set(!1),F())F()();else{ee.actions.internal.togglePlay();let ht="PLAY";n()===Gs.PlaybackState.PAUSED?ht="PAUSE":x()&&(ht="REPLAY"),z()({type:ht})}he.preventDefault();break;case"KeyM":{Qs({isAudioDisabled:Je,audioDisabledHintCallback:_e,isAudioAvailable:c(),audioIsNotExistHintCallback:dt})&&(z()({type:T()?"VOLUME":"MUTE"}),ee.actions.internal.toggleMuted()),he.preventDefault();break}case"KeyF":I()(),he.preventDefault();break;case"KeyC":ee.actions.internal.toggleSubtitle(),V().value!=="off"?z()({type:"SUBTITLES_ON",text:(bi=V())==null?void 0:bi.displayValue}):z()({type:"SUBTITLES_OFF"}),he.preventDefault();break;case"KeyI":ee.actions.internal.togglePictureInPicture(),he.preventDefault();break;case"Digit1":case"Numpad1":if(he.shiftKey){let ht=Yh(D());le.set(ht),Z.set(Ft),Ye.set(!0),ue.set(!0),he.preventDefault();break}z()(),ee.actions.internal.seekToPercent(.1,sn.SeekAction.DOUBLE_TAP),he.preventDefault();break;case"Digit2":case"Numpad2":z()(),ee.actions.internal.seekToPercent(.2,sn.SeekAction.DOUBLE_TAP),he.preventDefault();break;case"Digit3":case"Numpad3":z()(),ee.actions.internal.seekToPercent(.3,sn.SeekAction.DOUBLE_TAP),he.preventDefault();break;case"Digit4":case"Numpad4":z()(),ee.actions.internal.seekToPercent(.4,sn.SeekAction.DOUBLE_TAP),he.preventDefault();break;case"Digit5":case"Numpad5":z()(),ee.actions.internal.seekToPercent(.5,sn.SeekAction.DOUBLE_TAP),he.preventDefault();break;case"Digit6":case"Numpad6":z()(),ee.actions.internal.seekToPercent(.6,sn.SeekAction.DOUBLE_TAP),he.preventDefault();break;case"Digit7":case"Numpad7":z()(),ee.actions.internal.seekToPercent(.7,sn.SeekAction.DOUBLE_TAP),he.preventDefault();break;case"Digit8":case"Numpad8":z()(),ee.actions.internal.seekToPercent(.8,sn.SeekAction.DOUBLE_TAP),he.preventDefault();break;case"Digit9":case"Numpad9":z()(),ee.actions.internal.seekToPercent(.9,sn.SeekAction.DOUBLE_TAP),he.preventDefault();break;case"Digit0":case"Numpad0":z()(),ee.actions.internal.seekToPercent(0,sn.SeekAction.DOUBLE_TAP),he.preventDefault();break;case"Slash":{he.shiftKey&&Ce.features.hotKeyMapModal&&(Q()(),he.preventDefault());break}case"KeyN":he.shiftKey&&J()&&ee.actions.internal.nextVideoClick();break;case"KeyP":he.shiftKey&&ce()&&ee.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":he.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,Zh.checkNever)(Ke);break}},xe=he=>{let Ft=he.code;if(he.ctrlKey||he.altKey||he.metaKey)return;let Qt=n()===Gs.PlaybackState.PLAYING||n()===Gs.PlaybackState.PAUSED,ti=R()&&(r()==="paused"||r()==="playing");if(Qt||ti)switch(Ft){case"ShiftLeft":case"ShiftRight":je=0;break}},Me=X("aria_label_video_player");var we=E0();we.__keyup=xe,we.__keydown=gt,ve(we,"aria-label",Me);var Ze=w(we);Co(Ze,()=>{var he;return(he=G())!=null?he:Yt}),y(we),St(we,he=>Y(te,he),()=>s(te)),C(t,we);var vt=A({focus:it,get isAds(){return R()},set isAds(he){R(he),u()},get hideContextMenu(){return B()},set hideContextMenu(he){B(he),u()},get toggleFullscreen(){return I()},set toggleFullscreen(he){I(he),u()},get showHotKeyHelpers(){return z()},set showHotKeyHelpers(he){z(he),u()},get showKeyMap(){return Q()},set showKeyMap(he){Q(he),u()},get fakePlayButtonHandler(){return F()},set fakePlayButtonHandler(he){F(he),u()},get children(){return G()},set children(he){G(he),u()},get nextButtonActive(){return J()},set nextButtonActive(he=!1){J(he),u()},get prevButtonActive(){return ce()},set prevButtonActive(he=!1){ce(he),u()},$set:L,$on:(he,Ft)=>M(e,he,Ft)});return o(),vt}xt(["keyup","keydown"]);var A0=U('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),M0={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
143
+ Audio: ${r(l).audioCodec||""} ${(pt=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?pt:""}`)}),b(j,le)};V(ie,j=>{(r(l).videoCodec||r(l).audioCodec)&&j(Le)})}var J=M(ie,2);{var D=j=>{var le=xb(),ge=M(h(le),2),Ce=h(ge,!0);g(ge),g(le),k(()=>fe(Ce,r(l).viewport)),b(j,le)};V(J,j=>{r(l).viewport&&j(D)})}var Be=M(J,2);{var X=j=>{var le=wb(),ge=M(h(le),2),Ce=h(ge,!0);g(ge),g(le),k(()=>fe(Ce,r(l).videoSize)),b(j,le)};V(Be,j=>{r(l).videoSize&&j(X)})}var Ge=M(Be,2);{var Re=j=>{var le=Sb(),ge=M(h(le),2),Ce=h(ge,!0);g(ge),g(le),k(()=>fe(Ce,r(l).cdn)),b(j,le)};V(Ge,j=>{r(l).cdn&&j(Re)})}var ue=M(Ge,2);{var B=j=>{var le=Cb(),ge=M(h(le),2),Ce=h(ge);g(ge),g(le),k(()=>{var Ne;return fe(Ce,`${(Ne=r(l).volume)!=null?Ne:""} %`)}),b(j,le)};V(ue,j=>{r(l).volume&&j(B)})}var ce=M(ue,2);{var Ee=j=>{var le=Tb(),ge=M(h(le),2),Ce=h(ge);g(ge),g(le),k(Ne=>fe(Ce,`${Ne!=null?Ne:""} s`),[()=>r(l).buffer.toFixed(2)]),b(j,le)};V(ce,j=>{r(l).buffer&&j(Ee)})}var Ke=M(ce,2);{var lt=j=>{var le=Ib(),ge=M(h(le),2),Ce=h(ge);g(ge),g(le),k(Ne=>fe(Ce,`${Ne!=null?Ne:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(j,le)};V(Ke,j=>{r(l).liveLatency&&j(lt)})}var Ae=M(Ke,2);{var ye=j=>{var le=kb(),ge=M(h(le),2),Ce=h(ge,!0);g(ge),g(le),k(Ne=>fe(Ce,Ne),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ne})=>Ne).map(({value:Ne,title:pt})=>`${pt} ${((Ne!=null?Ne:0)/1e3).toFixed(2)} s`).join(" & ")]),b(j,le)};V(Ae,j=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&j(ye)})}var Me=M(Ae,2),rt=M(h(Me),2),vt=h(rt);g(rt),g(Me);var tt=M(Me,2);{var Ot=j=>{var le=Eb(),ge=M(h(le),2);sd(ge,{get values(){return r(I)}});var Ce=M(ge,2),Ne=h(Ce);g(Ce),g(le),k(pt=>fe(Ne,`${pt!=null?pt:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(j,le)};V(tt,j=>{r(l).speed&&j(Ot)})}var st=M(tt,2);{var gt=j=>{var le=Ab(),ge=M(h(le),2);sd(ge,{get values(){return r(A)}});var Ce=M(ge,2),Ne=h(Ce);g(Ce),g(le),k(pt=>fe(Ne,`${pt!=null?pt:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(j,le)};V(st,j=>{r(l).bitrate&&j(gt)})}var qt=M(st,2),Qt=M(h(qt),2);sd(Qt,{get values(){return r(S)}});var Ve=M(Qt,2),se=h(Ve,!0);g(Ve),g(qt),g(z),g(E),k(j=>{var le,ge;T=oe(E,1,"container svelte-4deykz",null,T,j),fe(Q,r(l).version),fe(vt,`${(le=r(_))!=null?le:""} / ${(ge=r(f))!=null?ge:""} frames`),fe(se,r(p))},[()=>({"container-mobile":n()})]),b(t,E),W(),o()}at(["click"]);var jh=require("@vkontakte/videoplayer-shared/es2015"),Lb=(t,e)=>{t.stopPropagation(),e()()},Vb=L('<div class="close svelte-1ome55p"></div>'),Rb={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 aa(t,e){K(e,!0),G(t,Rb);let i=v(e,"onClick",3,jh.noop);var o=Vb();o.__click=[Lb,i],b(t,o),W()}at(["click"]);var Zh=require("@vkontakte/videoplayer-shared/es2015"),Nb=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>'),Db={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 ld(t,e){K(e,!0),G(t,Db);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,Zh.noop),n=5e3,a=te(void 0),s,d,l=te(0),u;Ze(()=>{i()&&(d=Date.now(),O(l,pe(requestAnimationFrame(f))))});let f=()=>{i()&&(u=(Date.now()-d)/n,u<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),s==null||s.stroke(),O(l,pe(requestAnimationFrame(f)))):o()())};Ft(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{cancelAnimationFrame(r(l))}});var _=Nb(),p=h(_);ut(p,$=>O(a,$),()=>r(a)),be(2),g(_),b(t,_),W()}var Bb=(t,e,i)=>{e(!1),i()},Ob=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),Hb={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 rf(t,e){K(e,!0),G(t,Hb);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=Ie(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),p()},w=()=>{e.clickCloseIcon(),$()};Ft(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=ze(),I=ve(S);{var A=P=>{var E=Ob(),T=M(ve(E),2),R=h(T),z=h(R),Z=h(z,!0);g(z);var U=M(z,2);aa(U,{onClick:w}),g(R);var Q=M(R,2);Q.__click=[Bb,u,_];var ee=h(Q),ae=h(ee),_e=h(ae);let re;var Pe=M(_e,2);{var qe=D=>{ld(D,{get isRunning(){return a()},onTimerEnded:y})};V(Pe,D=>{n()&&D(qe)})}g(ae),g(ee);var ie=M(ee,2),Le=h(ie),J=h(Le,!0);g(Le),g(ie),g(Q),g(T),k((D,Be)=>{fe(Z,D),nt(ae,`background-image: url('${e.thumb}')`),re=oe(_e,1,"thumb-overlay svelte-jfbaax",null,re,Be),fe(J,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,E)};V(I,P=>{e.isHide||P(A)})}b(t,S),W(),o()}at(["click"]);var ks=require("@vkontakte/videoplayer-core/es2015"),Xh=require("@vkontakte/videoplayer-shared/es2015"),on=require("@vkontakte/videoplayer-statistics/es2015");var sf=(t,e)=>Math.min(+(t+e).toFixed(2),1),af=(t,e)=>Math.max(+(t-e).toFixed(2),0),Yc=(t,e,i)=>{let o=sf(e,i);e<1&&t.actions.internal.setVolume(o)},jc=(t,e,i)=>{let o=af(e,i);e>0&&t.actions.internal.setVolume(o)};var Is=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var Ub=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),zb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function lf(t,e){var Qt,Ve;K(e,!0),G(t,zb);let[i,o]=Fe(),n=()=>C(Z,"$playbackState$",i),a=()=>C(U,"$adPlaybackState",i),s=()=>C(_e,"$disabledControls$",i),d=()=>C(Q,"$positionExact$",i),l=()=>C(ee,"$duration$",i),u=()=>C(B,"$isAudioAvailable$",i),f=()=>C(ae,"$volume$",i),_=()=>C(ie,"$availablePlaybackRates$",i),p=()=>C(qe,"$currentPlaybackRate$",i),$=()=>C(Ee,"$isInteractiveTime$",i),y=()=>C(Ke,"$showInteractiveTimeIndicatorTooltip$",i),w=()=>C(X,"$isEnded$",i),S=()=>C(re,"$muted$",i),I=()=>C(Pe,"$currentSubtitle$",i),A=()=>C(Ge,"$overlayContainer$",i),P=v(e,"nextButtonActive",3,!1),E=v(e,"prevButtonActive",3,!1),T=Ie(),R=Gt(),z=T.getLogger().createComponentLog("KeyboardControls component"),Z=T.state.playbackState$,U=T.ads.playbackState,Q=T.state.positionExact$,ee=T.state.duration$,ae=T.state.volume$,_e=T.ui.controls.disabledControls$,re=T.state.muted$,Pe=T.state.currentSubtitle$,qe=T.state.currentPlaybackRate$,ie=T.state.availablePlaybackRates$,Le=T.ui.contextMenu.openedByHotKey$,J=T.ui.contextMenu.lastActiveElem$,D=T.ui.contextMenu.visible$,Be=T.ui.contextMenu.position$,X=T.state.isEnded$,Ge=T.ui.overlayContainer$,Re=(Qt=T.callbacks)==null?void 0:Qt.onAudioDoesNotExistHint,ue=(Ve=T.callbacks)==null?void 0:Ve.onAudioDisabledHint,B=T.state.isAudioAvailable$,ce=T.state.isAudioDisabled,Ee=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ke}=co(),lt=0,Ae=!0,ye=te(void 0),Me=()=>{var se;return(se=r(ye))==null?void 0:se.focus()},rt=se=>(se!==Ae&&(Ae=se,lt=0),lt+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*lt)/1e3),vt=se=>{var It,ei;let j=se.target,le=(It=j==null?void 0:j.getAttribute("role"))==null?void 0:It.includes("menuitem"),ge=j.classList.contains("btn"),Ce=se.code;if(ge&&Ce==="Space")return;let Ne=oh.has(Ce);if(le&&Ne)return;let pt=!ih.has(Ce);if(se.ctrlKey&&pt||se.altKey&&pt||se.metaKey)return;let Kt=le&&Ce==="Escape";nh.has(Ce)||Kt||e.hideContextMenu();let Ye=n()===ks.PlaybackState.PLAYING||n()===ks.PlaybackState.PAUSED,dt=e.isAds&&(a()==="paused"||a()==="playing"),Je=!dt&&!s().has("TIMELINE");if(Ye||dt)switch(z({message:`key down, code: ${Ce}`}),Ce){case"KeyJ":case"ArrowLeft":{if(!Je)break;if(se.ctrlKey||se.altKey){let We=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(We),We&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:We.text}),se.preventDefault()}else{let We=se.shiftKey?rt(!1):R.controls.seekStepKeyboard/1e3,ct=Math.max(d()-We,0);d()>0&&(T.actions.internal.seekTime(ct,on.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:We.toString()}),se.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Je)break;if(se.ctrlKey||se.altKey){let We=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(We),We&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:We.text}),se.preventDefault()}else{let We=se.shiftKey?rt(!0):R.controls.seekStepKeyboard/1e3,ct=Math.min(d()+We,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(ct,on.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:We.toString()}),se.preventDefault())}break}case"ArrowUp":{if(Is({isAudioDisabled:ce,audioDisabledHintCallback:ue,isAudioAvailable:u(),audioIsNotExistHintCallback:Re})){let We=f(),ct=R.controls.volumeStepKeyboard,oi=We<=1;if(Yc(T,We,ct),oi){let Bi=Math.round(sf(We,ct)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Bi}})}}se.preventDefault();break}case"ArrowDown":{if(Is({isAudioDisabled:ce,audioDisabledHintCallback:ue,isAudioAvailable:u(),audioIsNotExistHintCallback:Re})){let We=f(),ct=R.controls.volumeStepKeyboard,oi=We>=0;if(jc(T,We,ct),oi){let Bi=Math.round(af(We,ct)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Bi}})}}se.preventDefault();break}case"Comma":{if(se.shiftKey){T.actions.internal.decrementPlaybackRate();let We=_().find(ct=>ct.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:We==null?void 0:We.displayValue}),se.preventDefault()}else{if(dt||n()!==ks.PlaybackState.PAUSED)break;let We=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(We,on.SeekAction.DOUBLE_TAP),se.preventDefault())}break}case"Period":{if(se.shiftKey){T.actions.internal.incrementPlaybackRate();let We=_().find(ct=>ct.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:We==null?void 0:We.displayValue}),se.preventDefault()}else{if(dt||n()!==ks.PlaybackState.PAUSED)break;let We=Math.min(d()+R.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(We,on.SeekAction.DOUBLE_TAP),se.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&y()&&Ke.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let We="PLAY";n()===ks.PlaybackState.PAUSED?We="PAUSE":w()&&(We="REPLAY"),e.showHotKeyHelpers({type:We})}se.preventDefault();break;case"KeyM":{Is({isAudioDisabled:ce,audioDisabledHintCallback:ue,isAudioAvailable:u(),audioIsNotExistHintCallback:Re})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),T.actions.internal.toggleMuted()),se.preventDefault();break}case"KeyF":e.toggleFullscreen(),se.preventDefault();break;case"KeyC":T.actions.internal.toggleSubtitle(),I().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ei=I())==null?void 0:ei.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),se.preventDefault();break;case"KeyI":T.actions.internal.togglePictureInPicture(),se.preventDefault();break;case"Digit1":case"Numpad1":if(se.shiftKey){let We=Gh(A());Be.set(We),J.set(j),Le.set(!0),D.set(!0),se.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,on.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,on.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,on.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,on.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,on.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,on.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,on.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,on.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,on.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,on.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Slash":{se.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),se.preventDefault());break}case"KeyN":se.shiftKey&&P()&&T.actions.internal.nextVideoClick();break;case"KeyP":se.shiftKey&&E()&&T.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":se.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,Xh.checkNever)(Ce);break}},tt=se=>{let j=se.code;if(se.ctrlKey||se.altKey||se.metaKey)return;let le=n()===ks.PlaybackState.PLAYING||n()===ks.PlaybackState.PAUSED,ge=e.isAds&&(a()==="paused"||a()==="playing");if(le||ge)switch(j){case"ShiftLeft":case"ShiftRight":lt=0;break}},Ot=F("aria_label_video_player");var st=Ub();st.__keyup=tt,st.__keydown=vt,De(st,"aria-label",Ot);var gt=h(st);me(gt,()=>{var se;return(se=e.children)!=null?se:ne}),g(st),ut(st,se=>O(ye,se),()=>r(ye)),b(t,st);var qt=W({focus:Me});return o(),qt}at(["keyup","keydown"]);var qb=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),Kb={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
141
144
 
142
145
  @keyframes svelte-1dbnjb1-dot_animation {
143
146
  0% {
@@ -150,7 +153,7 @@ Try switching the\xA0quality to\xA0Auto.`},Rh=_1;var ws=new Map;ws.set(pl.Interf
150
153
  opacity: 0.2;
151
154
  }
152
155
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
153
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Ys(t,e){if(new.target)return E($({component:Ys},t));P(e,!0),se(t,M0);let i=p(e,"style",7,"");var o=A0();return N(()=>ve(o,"style",i())),C(t,o),A({get style(){return i()},set style(n=""){i(n),u()},$set:L,$on:(n,r)=>M(e,n,r)})}var L0=Re('<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 bu(t,e){if(new.target)return E($({component:bu},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=L0();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var as=require("@vkontakte/videoplayer-shared/es2015");var V0=t=>{t.stopPropagation()},R0=U("<button><!></button>"),N0={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
156
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function la(t,e){G(t,Kb);let i=v(e,"style",3,"");var o=qb();k(()=>nt(o,i())),b(t,o)}var Wb=$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 df(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(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 da=require("@vkontakte/videoplayer-shared/es2015"),Qb=t=>{t.stopPropagation()},Gb=L("<button><!></button>"),Yb={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;}
154
157
 
155
158
  /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
156
159
 
@@ -158,22 +161,22 @@ Try switching the\xA0quality to\xA0Auto.`},Rh=_1;var ws=new Map;ws.set(pl.Interf
158
161
  /* mobile */
159
162
  /* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
160
163
  .btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
161
- /* \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 Wt(t,e){if(new.target)return E($({component:Wt},t));P(e,!0),se(t,N0);let i=p(e,"className",7,""),o=p(e,"style",7,""),n=p(e,"disabled",7,void 0),r=p(e,"testId",7,void 0),l=p(e,"ariaHidden",7,void 0),d=p(e,"ariaLabel",7,void 0),a=p(e,"ref",15,void 0),c=p(e,"ariaKeyShortCut",7,void 0),f=p(e,"ariaExpanded",7,void 0),g=p(e,"tabIndex",7,0),m=p(e,"click",7,as.noop),h=p(e,"focus",7,as.noop),_=p(e,"blur",7,as.noop),x=p(e,"children",7),T=b(()=>m()===as.noop?null:I=>{I.stopPropagation(),m()(I)}),V=b(()=>h()===as.noop?null:I=>{I.preventDefault(),h()()}),D=b(()=>_()===as.noop?null:I=>{I.preventDefault(),_()()});var R=R0();R.__pointerdown=[V0],R.__click=function(...I){var z;(z=s(T))==null||z.apply(this,I)};var B=w(R);return Co(B,()=>{var I;return(I=x())!=null?I:Yt}),y(R),St(R,I=>a(I),()=>a()),N(()=>{var I,z,Q,F,G,J,ce;rn(R,`btn ${(I=i())!=null?I:""} svelte-wr0kwr`),ve(R,"style",o()||null),R.disabled=(z=n())!=null?z:null,ve(R,"aria-hidden",(Q=l())!=null?Q:null),ve(R,"aria-label",(F=d())!=null?F:null),ve(R,"aria-keyshortcuts",(G=c())!=null?G:null),ve(R,"aria-expanded",(J=f())!=null?J:null),ve(R,"data-testid",(ce=r())!=null?ce:null),ve(R,"tabindex",g())}),Kt("focus",R,function(...I){var z;(z=s(V))==null||z.apply(this,I)}),Kt("blur",R,function(...I){var z;(z=s(D))==null||z.apply(this,I)}),C(t,R),A({get className(){return i()},set className(I=""){i(I),u()},get style(){return o()},set style(I=""){o(I),u()},get disabled(){return n()},set disabled(I=void 0){n(I),u()},get testId(){return r()},set testId(I=void 0){r(I),u()},get ariaHidden(){return l()},set ariaHidden(I=void 0){l(I),u()},get ariaLabel(){return d()},set ariaLabel(I=void 0){d(I),u()},get ref(){return a()},set ref(I=void 0){a(I),u()},get ariaKeyShortCut(){return c()},set ariaKeyShortCut(I=void 0){c(I),u()},get ariaExpanded(){return f()},set ariaExpanded(I=void 0){f(I),u()},get tabIndex(){return g()},set tabIndex(I=0){g(I),u()},get click(){return m()},set click(I=as.noop){m(I),u()},get focus(){return h()},set focus(I=as.noop){h(I),u()},get blur(){return _()},set blur(I=as.noop){_(I),u()},get children(){return x()},set children(I){x(I),u()},$set:L,$on:(I,z)=>M(e,I,z)})}xt(["pointerdown","click"]);var B0=U('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),D0=U('<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>'),O0={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 yu(t,e){if(new.target)return E($({component:yu},t));P(e,!0),se(t,O0);let i=p(e,"onClose",7),o=p(e,"showHeader",7,!0),n=p(e,"showCloseCross",7,!0),r=p(e,"title",7),l=p(e,"children",7),d=X("hotkey_map_modal_close_btn_text");var a=D0(),c=w(a),f=w(c);{var g=x=>{var T=B0(),V=w(T),D=w(V,!0);y(V);var R=H(V,2);{var B=I=>{Wt(I,{get click(){return i()},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:d,children:(z,Q)=>{bu(z,{})},$$slots:{default:!0}})};q(R,I=>{n()&&I(B)})}y(T),N(()=>Pe(D,r())),C(x,T)};q(f,x=>{o()&&x(g)})}var m=H(f,2),h=w(m),_=w(h);return Co(_,()=>{var x;return(x=l())!=null?x:Yt}),y(h),y(m),y(c),y(a),C(t,a),A({get onClose(){return i()},set onClose(x){i(x),u()},get showHeader(){return o()},set showHeader(x=!0){o(x),u()},get showCloseCross(){return n()},set showCloseCross(x=!0){n(x),u()},get title(){return r()},set title(x){r(x),u()},get children(){return l()},set children(x){l(x),u()},$set:L,$on:(x,T)=>M(e,x,T)})}var H0=new Set(["BR"]),Xh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],l=r.tagName;H0.has(l)||(n=r.parentElement)==null||n.removeChild(r)}return e.innerHTML};var F0=U('<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>'),U0=U('<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>'),z0=U('<div class="hot-key-map svelte-quklnq"></div>'),W0={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
164
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function At(t,e){K(e,!0),G(t,Yb);let i=v(e,"className",3,""),o=v(e,"style",3,""),n=v(e,"disabled",3,void 0),a=v(e,"testId",3,void 0),s=v(e,"ariaHidden",3,void 0),d=v(e,"ariaLabel",3,void 0),l=v(e,"ref",15,void 0),u=v(e,"ariaKeyShortCut",3,void 0),f=v(e,"ariaExpanded",3,void 0),_=v(e,"tabIndex",3,0),p=v(e,"click",3,da.noop),$=v(e,"focus",3,da.noop),y=v(e,"blur",3,da.noop),w=m(()=>p()===da.noop?null:E=>{E.stopPropagation(),p()(E)}),S=m(()=>$()===da.noop?null:E=>{E.preventDefault(),$()()}),I=m(()=>y()===da.noop?null:E=>{E.preventDefault(),y()()});var A=Gb();A.__pointerdown=[Qb],A.__click=function(...E){var T;(T=r(w))==null||T.apply(this,E)};var P=h(A);me(P,()=>{var E;return(E=e.children)!=null?E:ne}),g(A),ut(A,E=>l(E),()=>l()),k(()=>{var E,T,R,z,Z,U,Q;oe(A,1,`btn ${(E=i())!=null?E:""}`,"svelte-wr0kwr"),nt(A,o()||null),A.disabled=(T=n())!=null?T:null,De(A,"aria-hidden",(R=s())!=null?R:null),De(A,"aria-label",(z=d())!=null?z:null),De(A,"aria-keyshortcuts",(Z=u())!=null?Z:null),De(A,"aria-expanded",(U=f())!=null?U:null),De(A,"data-testid",(Q=a())!=null?Q:null),De(A,"tabindex",_())}),Bt("focus",A,function(...E){var T;(T=r(S))==null||T.apply(this,E)}),Bt("blur",A,function(...E){var T;(T=r(I))==null||T.apply(this,E)}),b(t,A),W()}at(["pointerdown","click"]);var jb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Zb=L('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),Xb={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function cf(t,e){K(e,!0),G(t,Xb);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=Zb(),s=h(a),d=h(s);{var l=p=>{var $=jb(),y=h($),w=h(y,!0);g(y);var S=M(y,2);{var I=A=>{At(A,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,E)=>{df(P,{})},$$slots:{default:!0}})};V(S,A=>{o()&&A(I)})}g($),k(()=>fe(w,e.title)),b(p,$)};V(d,p=>{i()&&p(l)})}var u=M(d,2),f=h(u),_=h(f);me(_,()=>{var p;return(p=e.children)!=null?p:ne}),g(f),g(u),g(s),g(a),b(t,a),W()}var Jb=new Set(["BR"]),Jh=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;Jb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var e$=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>'),t$=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>'),i$=L('<div class="hot-key-map svelte-quklnq"></div>'),o$={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,
162
165
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
163
- .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 xu(t,e){if(new.target)return E($({component:xu},t));P(e,!1),se(t,W0);let[i,o]=tt(),n=()=>k(l,"$data",i),r=Fe(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Fr(),yu(t,{get title(){return n().title},onClose:a,children:(f,g)=>{var m=z0();Ei(m,5,()=>n().groups,so,(h,_)=>{let x=()=>s(_).title,T=()=>s(_).items;var V=U0(),D=w(V),R=w(D,!0);y(D);var B=H(D,2);Ei(B,5,T,so,(I,z)=>{let Q=()=>s(z).description,F=()=>s(z).value;var G=F0(),J=w(G),ce=w(J);Pd(ce,()=>Xh(Q()),!1,!1),y(J);var ee=H(J,2),Ce=w(ee,!0);y(ee),y(G),N(()=>Pe(Ce,F())),C(I,G)}),y(B),y(V),N(()=>Pe(R,x())),C(h,V)}),y(m),C(f,m)},$$slots:{default:!0}});var c=A({$set:L,$on:(f,g)=>M(e,f,g)});return o(),c}var Yd=require("@vkontakte/videoplayer-shared/es2015");var Ra=require("@vkontakte/videoplayer-core/es2015");var hV=require("@vkontakte/videoplayer-shared/es2015");var q0=U('<div class="pillow svelte-1oe0j8n"><!></div>'),K0={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 wu(t,e){if(new.target)return E($({component:wu},t));P(e,!0),se(t,K0);let i=p(e,"children",7);var o=q0(),n=w(o);return Co(n,()=>{var r;return(r=i())!=null?r:Yt}),y(o),C(t,o),A({get children(){return i()},set children(r){i(r),u()},$set:L,$on:(r,l)=>M(e,r,l)})}var El=require("@vkontakte/videoplayer-shared/es2015");var Q0=Re('<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 Cu(t,e){if(new.target)return E($({component:Cu},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Q0();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var G0=Re('<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 Su(t,e){if(new.target)return E($({component:Su},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=G0();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var Y0=Re('<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 Tu(t,e){if(new.target)return E($({component:Tu},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Y0();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var j0=Re('<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 Il(t,e){if(new.target)return E($({component:Il},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=j0();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var Z0=Re('<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 kl(t,e){if(new.target)return E($({component:kl},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Z0();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var Iu=t=>{switch(t){case El.VideoQuality.Q_720P:return Tu;case El.VideoQuality.Q_1080P:return Il;case El.VideoQuality.Q_1440P:return kl;case El.VideoQuality.Q_2160P:return Cu;case El.VideoQuality.Q_4320P:return Su}};var X0=Re('<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 ku(t,e){if(new.target)return E($({component:ku},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=X0();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var J0=Re('<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 Eu(t,e){if(new.target)return E($({component:Eu},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=J0();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var eb=U('<div class="icon svelte-8t5w85" aria-hidden="true"><!> <!></div>'),tb={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 Pl(t,e){if(new.target)return E($({component:Pl},t));P(e,!0),se(t,tb);let i=p(e,"isMobile",7,!1),o=p(e,"currentQuality",7,void 0),n=b(()=>Iu(o())),r=b(()=>!!s(n)&&[Il,kl].includes(s(n)));var l=Xe(),d=Ee(l);{var a=f=>{ku(f,{})},c=f=>{var g=eb(),m=w(g);{var h=T=>{wu(T,{children:(V,D)=>{var R=Xe(),B=Ee(R);zi(B,()=>s(n),(I,z)=>{z(I,{})}),C(V,R)},$$slots:{default:!0}})};q(m,T=>{s(n)&&T(h)})}var _=H(m,2);let x=b(()=>s(n)?"settings-icon--labeled":"settings-icon");Eu(_,{get"data-testid"(){return s(x)},fill:"var(--btn-color, #fff)"}),y(g),N(()=>ae(g,"triple",s(r))),C(f,g)};q(d,f=>{i()?f(a):f(c,!1)})}return C(t,l),A({get isMobile(){return i()},set isMobile(f=!1){i(f),u()},get currentQuality(){return o()},set currentQuality(f=void 0){o(f),u()},$set:L,$on:(f,g)=>M(e,f,g)})}var ib=U('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),ob={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Aa(t,e){if(new.target)return E($({component:Aa},t));P(e,!0),se(t,ob);let[i,o]=tt(),n=()=>k(f,"$settingsMenuVisible",i),r=()=>k(h,"$isMobile",i),l=()=>k(c,"$currentQuality",i),d=p(e,"ref$",7),a=Fe(),c=a.state.currentQuality$,f=a.ui.settingsMenu.visible$,g=a.actions.internal.openSettingsMenu,m=a.actions.internal.closeSettingsMenu,h=a.ui.isMobile,_=a.ui.t,x=pe(void 0);lt(()=>{d()&&Pt(()=>{d().set(s(x))})});let T=b(()=>n()?_("tooltip_settings_on"):_("tooltip_settings_off"));function V(B){return Ct(this,null,function*(){let I=qs(B);n()?m():g(I,xo)})}let D=b(()=>n()?"opened":"");Wt(t,{get className(){return s(D)},testId:"btn-settings",click:V,get ariaLabel(){return s(T)},get ariaExpanded(){return n()},get ref(){return s(x)},set ref(B){Y(x,Le(B))},children:(B,I)=>{var z=ib(),Q=w(z);Pl(Q,{get isMobile(){return r()},get currentQuality(){return l()}}),y(z),C(B,z)},$$slots:{default:!0}});var R=A({get ref$(){return d()},set ref$(B){d(B),u()},$set:L,$on:(B,I)=>M(e,B,I)});return o(),R}var nb=Re('<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 Pu(t,e){if(new.target)return E($({component:Pu},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=nb();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var rb=Re('<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 Al(t,e){if(new.target)return E($({component:Al},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=rb();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}function Au(t,e){if(new.target)return E($({component:Au},t));P(e,!0);let i=p(e,"isSubtitlesEnabled",7,!1),o=p(e,"click",7),r=Fe().ui.t,l=b(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));return Wt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(l)},get click(){return o()},get ariaKeyShortCut(){return rs.KeyC},children:(d,a)=>{var c=Xe(),f=Ee(c);{var g=h=>{Pu(h,{})},m=h=>{Al(h,{})};q(f,h=>{i()?h(g):h(m,!1)})}C(d,c)},$$slots:{default:!0}}),A({get isSubtitlesEnabled(){return i()},set isSubtitlesEnabled(d=!1){i(d),u()},get click(){return o()},set click(d){o(d),u()},$set:L,$on:(d,a)=>M(e,d,a)})}var sb=U('<span class="duration svelte-sz9er7"> </span>'),ab=U('<div class="time svelte-sz9er7"><span class="current svelte-sz9er7"> </span> <!></div>'),lb={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 Ml(t,e){if(new.target)return E($({component:Ml},t));P(e,!0),se(t,lb);let i=p(e,"isMobile",7,!1),o=p(e,"duration",7),n=p(e,"position",7),r=p(e,"showDuration",7,!0),l=p(e,"ref",15),d=b(()=>fr(o())),a=b(()=>fr(n()));var c=ab(),f=w(c),g=w(f,!0);y(f);var m=H(f,2);{var h=_=>{var x=sb(),T=w(x,!0);y(x),N(()=>Pe(T,s(d))),C(_,x)};q(m,_=>{r()&&_(h)})}return y(c),St(c,_=>l(_),()=>l()),N(()=>{ae(c,"mobile",i()),Pe(g,s(a))}),C(t,c),A({get isMobile(){return i()},set isMobile(_=!1){i(_),u()},get duration(){return o()},set duration(_){o(_),u()},get position(){return n()},set position(_){n(_),u()},get showDuration(){return r()},set showDuration(_=!0){r(_),u()},get ref(){return l()},set ref(_){l(_),u()},$set:L,$on:(_,x)=>M(e,_,x)})}var Wd=require("@vkontakte/videoplayer-shared/es2015");var db=Re('<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>'),cb={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
166
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function uf(t,e){K(e,!1),G(t,o$);let[i,o]=Fe(),n=()=>C(s,"$data",i),a=Ie(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Cr(),cf(t,{get title(){return n().title},onClose:l,children:(u,f)=>{var _=i$();yi(_,5,()=>n().groups,({title:p,items:$})=>p,(p,$)=>{let y=()=>r($).title,w=()=>r($).items;var S=t$(),I=h(S),A=h(I,!0);g(I);var P=M(I,2);yi(P,5,w,({description:E,value:T})=>T,(E,T)=>{let R=()=>r(T).description,z=()=>r(T).value;var Z=e$(),U=h(Z),Q=h(U);zl(Q,()=>Jh(R()),!1,!1),g(U);var ee=M(U,2),ae=h(ee,!0);g(ee),g(Z),k(()=>fe(ae,z())),b(E,Z)}),g(P),g(S),k(()=>fe(A,y())),b(p,S)}),g(_),b(u,_)},$$slots:{default:!0}}),W(),o()}var sm=require("@vkontakte/videoplayer-shared/es2015");var ga=require("@vkontakte/videoplayer-core/es2015");var AL=require("@vkontakte/videoplayer-shared/es2015");var n$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),r$={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 pf(t,e){G(t,r$);var i=n$(),o=h(i);me(o,()=>{var n;return(n=e.children)!=null?n:ne}),g(i),b(t,i)}var il=require("@vkontakte/videoplayer-shared/es2015");var s$=$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 ff(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=s$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var a$=$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 mf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=a$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var l$=$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 vf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=l$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var d$=$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 dd(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=d$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i))),b(t,o)}var c$=$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 cd(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=c$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i))),b(t,o)}var Zc=t=>{switch(t){case il.VideoQuality.Q_720P:return vf;case il.VideoQuality.Q_1080P:return dd;case il.VideoQuality.Q_1440P:return cd;case il.VideoQuality.Q_2160P:return ff;case il.VideoQuality.Q_4320P:return mf}};var u$=$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 gf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=u$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 p$=$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 hf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=p$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(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 f$=L('<div aria-hidden="true"><!> <!></div>'),m$={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 ud(t,e){K(e,!0),G(t,m$);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=m(()=>Zc(o())),a=m(()=>!!r(n)&&[dd,cd].includes(r(n)));var s=ze(),d=ve(s);{var l=f=>{gf(f,{})},u=f=>{var _=f$();let p;var $=h(_);{var y=I=>{pf(I,{children:(A,P)=>{var E=ze(),T=ve(E);Di(T,()=>r(n),(R,z)=>{z(R,{})}),b(A,E)},$$slots:{default:!0}})};V($,I=>{r(n)&&I(y)})}var w=M($,2);let S=m(()=>r(n)?"settings-icon--labeled":"settings-icon");hf(w,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),g(_),k(I=>p=oe(_,1,"icon svelte-8t5w85",null,p,I),[()=>({triple:r(a)})]),b(f,_)};V(d,f=>{i()?f(l):f(u,!1)})}b(t,s),W()}var v$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),g$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ol(t,e){K(e,!0),G(t,g$);let[i,o]=Fe(),n=()=>C(u,"$settingsMenuVisible",i),a=()=>C(p,"$isMobile",i),s=()=>C(l,"$currentQuality",i),d=Ie(),l=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,_=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,$=d.ui.t,y=te(void 0);Ze(()=>{e.ref$&&bt(()=>{e.ref$.set(r(y))})});let w=m(()=>n()?$("tooltip_settings_on"):$("tooltip_settings_off"));function S(A){return St(this,null,function*(){let P=Ts(A);n()?_():f(P,yo)})}let I=m(()=>n()?"opened":"");At(t,{get className(){return r(I)},testId:"btn-settings",click:S,get ariaLabel(){return r(w)},get ariaExpanded(){return n()},get ref(){return r(y)},set ref(A){O(y,pe(A))},children:(A,P)=>{var E=v$(),T=h(E);ud(T,{get isMobile(){return a()},get currentQuality(){return s()}}),g(E),b(A,E)},$$slots:{default:!0}}),W(),o()}var h$=$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 _f(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=h$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img"},i))),b(t,o)}var _$=$e('<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 pd(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=_$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 bf(t,e){K(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Ie().ui.t,a=m(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));At(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return zr.KeyC},children:(s,d)=>{var l=ze(),u=ve(l);{var f=p=>{_f(p,{})},_=p=>{pd(p,{})};V(u,p=>{i()?p(f):p(_,!1)})}b(s,l)},$$slots:{default:!0}}),W()}var b$=L('<span class="duration svelte-sz9er7"> </span>'),$$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),y$={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function fd(t,e){K(e,!0),G(t,y$);let i=v(e,"isMobile",3,!1),o=v(e,"showDuration",3,!0),n=v(e,"ref",15),a=m(()=>lr(e.duration)),s=m(()=>lr(e.position));var d=$$();let l;var u=h(d),f=h(u,!0);g(u);var _=M(u,2);{var p=$=>{var y=b$(),w=h(y,!0);g(y),k(()=>fe(w,r(a))),b($,y)};V(_,$=>{o()&&$(p)})}g(d),ut(d,$=>n($),()=>n()),k($=>{l=oe(d,1,"time svelte-sz9er7",null,l,$),fe(f,r(s))},[()=>({mobile:i()})]),b(t,d),W()}var vd=require("@vkontakte/videoplayer-shared/es2015");var x$=$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>'),w$={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),
164
167
  .icon[data-value='off'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:visible;}.icon[data-value='mid'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua),
165
- .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Cs(t,e){if(new.target)return E($({component:Cs},t));P(e,!0),se(t,cb);let i=p(e,"volume",7,1),o=p(e,"muted",7,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",r=b(()=>n(i(),o()));var l=db();return N(()=>{var d;ve(l,"data-value",s(r)),ve(l,"data-testid",`volume-${(d=s(r))!=null?d:""}-icon`)}),C(t,l),A({get volume(){return i()},set volume(d=1){i(d),u()},get muted(){return o()},set muted(d=!1){o(d),u()},$set:L,$on:(d,a)=>M(e,d,a)})}var $i=require("@vkontakte/videoplayer-shared/es2015");var qm=require("@vkontakte/videoplayer-shared/es2015");var Wm=require("@vkontakte/videoplayer-shared/es2015");var ub=U('<div class="overlay"><!></div>');function Mu(t,e){if(new.target)return E($({component:Mu},t));P(e,!0);let[i,o]=tt(),n=()=>k(d,"$overlayContainer$",i),r=p(e,"children",7),d=Fe().ui.overlayContainer$,a=pe(void 0),c=_=>{!_||!s(a)||!_.contains(s(a))||_.removeChild(s(a))},f=_=>{!_||!s(a)||_.contains(s(a))||_.appendChild(s(a))};lt(()=>{f(n())}),Zt(()=>(f(n()),()=>c(n())));var g=ub(),m=w(g);Co(m,()=>{var _;return(_=r())!=null?_:Yt}),y(g),St(g,_=>Y(a,_),()=>s(a)),C(t,g);var h=A({get children(){return r()},set children(_){r(_),u()},$set:L,$on:(_,x)=>M(e,_,x)});return o(),h}var pb=U('<div class="tooltip svelte-1jbbzcj"><div class="content svelte-1jbbzcj"> </div> <div class="tooltip-pointer svelte-1jbbzcj"></div></div>'),fb=U('<div class="tooltip-wrapper svelte-1jbbzcj"><!></div> <!>',1),mb={hash:"svelte-1jbbzcj",code:'.tooltip-wrapper.svelte-1jbbzcj {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-1jbbzcj {width:100%;}.tooltip.svelte-1jbbzcj {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-1jbbzcj {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip.active.svelte-1jbbzcj {opacity:1;visibility:visible;}.tooltip-pointer.svelte-1jbbzcj {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function js(t,e){if(new.target)return E($({component:js},t));P(e,!0),se(t,mb);let[i,o]=tt(),n=()=>k(ce,"$overlayContainer$",i),r=()=>k(J,"$containerSize",i),l=p(e,"isMobile",7,!1),d=p(e,"content",7,""),a=p(e,"active",15,!1),c=p(e,"translateX",7,0),f=p(e,"translateY",7,0),g=p(e,"isFullWidthWrapper",7,!1),m=p(e,"maxTooltipWidth",7,void 0),h=p(e,"placement",7,"top"),_=p(e,"onVisibilityChange",7,Wm.noop),x=p(e,"children",7),T=5,V=pe(void 0),D=pe(void 0),R,B=pe(0),I=pe(0),z=pe(0),Q=pe(0),F=oi(),G=Fe(),J=G.ui.playerSize,ce=G.ui.overlayContainer$;lt(()=>{Pt(()=>{_()(a())})});let ee=G.getLogger().createComponentLog("Tooltip component"),Ce=()=>{if(!n()||!s(D)||!s(V))return;Y(I,T);let _e=n().getBoundingClientRect(),me=s(V).getBoundingClientRect(),Je=me.width,mt=s(D).clientWidth,ge=r().width,je=(Je-mt)/2,Tt=me.left+c()-_e.left,te=Tt+je,it=me.top+f()-_e.top,bt=mt/2-T,gt=te<8,xe=te+mt>ge-8;gt&&(te=8,bt=Tt+me.width/2-2.5*T),xe&&(te=ge-8-mt,bt=me.left-_e.left+me.width/2-te-T),Y(z,Le(te)),Y(Q,it),Y(B,Le(bt))},Se=()=>{!n()||!s(D)||!s(V)||Y(I,-T)},ne=()=>{if(!n()||!s(D)||!s(V))return;Y(B,T);let _e=n().getBoundingClientRect(),me=s(V).getBoundingClientRect(),Je=me.height,mt=s(D).clientHeight,ge=(Je-mt)/2+mt,je=me.left+c()-_e.left-s(D).clientWidth,Tt=2,te=je-T;te<8&&(te=8);let bt=me.top+f()-_e.top+ge,gt=Tt-ge/2,xe=Tt-T;Y(z,Le(te)),Y(Q,bt),Y(I,gt),Y(B,xe)},ie=()=>{!n()||!s(D)||!s(V)||Y(B,-T)},be=()=>{switch(h()){case"top":Ce();break;case"bottom":Se();break;case"left":ne();break;default:ie()}},j=()=>{try{if(!n()||!s(V))return;be(),a(!0)}catch(_e){ee({message:String(_e)})}},re=()=>{a(!1)},K=()=>{s(D)&&(R||(R=window.setTimeout(j,F.controls.hideTimeoutTooltips)),a()&&j())},qe=()=>{re(),window.clearTimeout(R),R=void 0},Be=(_e,me)=>{let Je="";switch(h()){case"top":Je=`transform: translate(${_e}px, ${me}px);`;break;case"bottom":Je=`transform: translate(${_e}px, ${me}px); top: auto; bottom: 100%;`;break;case"left":Je=`transform: translate(${_e}px, ${me}px); left: 0; right: auto;`;break;default:Je=`transform: translate(${_e}px, ${me}px);`}return Je+=` max-width: ${m()===void 0?"auto":`${m()}px`};`,Je},fe=(_e,me)=>{let Je="";switch(h()){case"top":Je=`transform: translate(${_e}px, ${me}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Je=`transform: translate(${_e}px, ${me}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Je=`transform: translate(${_e}px, ${me}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Je=`transform: translate(${_e}px, ${me}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Je},Te=b(()=>Be(s(z),s(Q))),Ye=b(()=>fe(s(B),s(I)));Zt(be),ur(()=>window.clearTimeout(R));var Z=fb(),ue=Ee(Z);ue.__mousemove=K,ue.__mousedown=qe,ue.__mouseup=K;var le=w(ue);Co(le,()=>{var _e;return(_e=x())!=null?_e:Yt}),y(ue),St(ue,_e=>Y(V,_e),()=>s(V));var He=H(ue,2);{var et=_e=>{Mu(_e,{children:(me,Je)=>{var mt=pb(),ge=w(mt),je=w(ge,!0);y(ge);var Tt=H(ge,2);y(mt),St(mt,te=>Y(D,te),()=>s(D)),N(()=>{ve(mt,"style",s(Te)),ae(mt,"active",a()),Pe(je,d()),ve(Tt,"style",s(Ye))}),C(me,mt)},$$slots:{default:!0}})};q(He,_e=>{d()&&!l()&&_e(et)})}N(()=>ae(ue,"full-width",g())),Kt("mouseenter",ue,K),Kt("mouseleave",ue,qe),C(t,Z);var dt=A({get isMobile(){return l()},set isMobile(_e=!1){l(_e),u()},get content(){return d()},set content(_e=""){d(_e),u()},get active(){return a()},set active(_e=!1){a(_e),u()},get translateX(){return c()},set translateX(_e=0){c(_e),u()},get translateY(){return f()},set translateY(_e=0){f(_e),u()},get isFullWidthWrapper(){return g()},set isFullWidthWrapper(_e=!1){g(_e),u()},get maxTooltipWidth(){return m()},set maxTooltipWidth(_e=void 0){m(_e),u()},get placement(){return h()},set placement(_e="top"){h(_e),u()},get onVisibilityChange(){return _()},set onVisibilityChange(_e=Wm.noop){_(_e),u()},get children(){return x()},set children(_e){x(_e),u()},$set:L,$on:(_e,me)=>M(e,_e,me)});return o(),dt}xt(["mousemove","mousedown","mouseup"]);var Jh=t=>{t.stopPropagation()},vb=U("<div><!></div>"),gb={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 So(t,e){if(new.target)return E($({component:So},t));P(e,!0),se(t,gb);let[i,o]=tt(),n=()=>k(c,"$isGraphOpened$",i),r=()=>k(a,"$isMobile",i),l=Fe(),d=mo(),a=l.ui.isMobile,c=d.graphIsOpened$,f=l.ui.t,g=p(e,"className",7,""),m=p(e,"disabled",7,!1),h=p(e,"hasTooltip",7,!0),_=p(e,"ref",15,void 0),x=p(e,"width",15,void 0),T=p(e,"isFullWidthTooltip",7,!0),V=p(e,"tooltipContent",7,""),D=p(e,"tooltipActive",7,!1),R=p(e,"tooltipPlacement",7,"top"),B=p(e,"disabledTooltipContent",23,()=>f("tooltip_button_disabled")),I=p(e,"isAriaHidden",7,!1),z=p(e,"onTooltipVisibilityChange",7,qm.noop),Q=p(e,"initialTranslateXPx",7,0),F=p(e,"initialTranslateYPx",23,()=>-18),G=p(e,"children",7),J=b(()=>m()?n()?f("tooltip_disabled_when_graph_on"):B():V());var ce=vb();ce.__pointerdown=[Jh],ce.__click=[Jh];var ee=w(ce);{var Ce=ie=>{js(ie,{get content(){return s(J)},get translateX(){return Q()},get translateY(){return F()},get isFullWidthWrapper(){return T()},get active(){return D()},get placement(){return R()},get onVisibilityChange(){return z()},children:(be,j)=>{var re=Xe(),K=Ee(re);Co(K,()=>{var qe;return(qe=G())!=null?qe:Yt}),C(be,re)},$$slots:{default:!0}})},Se=ie=>{var be=Xe(),j=Ee(be);Co(j,()=>{var re;return(re=G())!=null?re:Yt}),C(ie,be)};q(ee,ie=>{h()&&s(J)&&!r()?ie(Ce):ie(Se,!1)})}y(ce),St(ce,ie=>_(ie),()=>_()),N(()=>{var ie;rn(ce,`btn-container ${(ie=g())!=null?ie:""} svelte-p9r045`),ve(ce,"aria-hidden",I()||null)}),ns(ce,"clientWidth",x),C(t,ce);var ne=A({get className(){return g()},set className(ie=""){g(ie),u()},get disabled(){return m()},set disabled(ie=!1){m(ie),u()},get hasTooltip(){return h()},set hasTooltip(ie=!0){h(ie),u()},get ref(){return _()},set ref(ie=void 0){_(ie),u()},get width(){return x()},set width(ie=void 0){x(ie),u()},get isFullWidthTooltip(){return T()},set isFullWidthTooltip(ie=!0){T(ie),u()},get tooltipContent(){return V()},set tooltipContent(ie=""){V(ie),u()},get tooltipActive(){return D()},set tooltipActive(ie=!1){D(ie),u()},get tooltipPlacement(){return R()},set tooltipPlacement(ie="top"){R(ie),u()},get disabledTooltipContent(){return B()},set disabledTooltipContent(ie=f("tooltip_button_disabled")){B(ie),u()},get isAriaHidden(){return I()},set isAriaHidden(ie=!1){I(ie),u()},get onTooltipVisibilityChange(){return z()},set onTooltipVisibilityChange(ie=qm.noop){z(ie),u()},get initialTranslateXPx(){return Q()},set initialTranslateXPx(ie=0){Q(ie),u()},get initialTranslateYPx(){return F()},set initialTranslateYPx(ie=-18){F(ie),u()},get children(){return G()},set children(ie){G(ie),u()},$set:L,$on:(ie,be)=>M(e,ie,be)});return o(),ne}xt(["pointerdown","click"]);var hb=Re('<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 Ll(t,e){if(new.target)return E($({component:Ll},t));P(e,!0);let i=p(e,"completed",7);var o=hb(),n=w(o),r=H(n);return y(o),N(()=>{ve(o,"data-testid",(i(),"interactive-episode-completed-icon")),ve(n,"fill-opacity",i()?1:.24),ve(r,"fill",i()?"var(--interactive-episode-complete)":"white")}),C(t,o),A({get completed(){return i()},set completed(l){i(l),u()},$set:L,$on:(l,d)=>M(e,l,d)})}var _b=U('<div class="interactive-episode-icon svelte-bklhpe"><!></div>'),$b={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 Lu(t,e){if(new.target)return E($({component:Lu},t));P(e,!0),se(t,$b);let i=p(e,"videoEpisode",7),o=p(e,"disabled",7),r=Fe().ui.t,l=pe(0),d=b(()=>r(i().completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));return So(t,{get tooltipContent(){return s(d)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return o()},get width(){return s(l)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(a,c)=>{var f=_b(),g=w(f);let m=b(()=>!!i().completed);Ll(g,{get completed(){return s(m)}}),y(f),N(()=>{ve(f,"style",`left: ${i().from+i().width/2}%`),ae(f,"disabled",o())}),ns(f,"clientWidth",h=>Y(l,h)),C(a,f)},$$slots:{default:!0}}),A({get videoEpisode(){return i()},set videoEpisode(a){i(a),u()},get disabled(){return o()},set disabled(a){o(a),u()},$set:L,$on:(a,c)=>M(e,a,c)})}var bb=U('<div class="video-episode svelte-1u6kv8l"><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div class="video-episode-filled svelte-1u6kv8l"></div></div></div>'),yb=U('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),xb={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
168
+ .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Es(t,e){G(t,w$);let i=v(e,"volume",3,1),o=v(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=m(()=>n(i(),o()));var s=x$();k(()=>{var d;De(s,"data-value",r(a)),De(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),b(t,s)}var nn=require("@vkontakte/videoplayer-shared/es2015");var i1=require("@vkontakte/videoplayer-shared/es2015");var e1=require("@vkontakte/videoplayer-shared/es2015");var S$=L('<div class="overlay"><!></div>');function $f(t,e){K(e,!0);let[i,o]=Fe(),n=()=>C(s,"$overlayContainer$",i),s=Ie().ui.overlayContainer$,d=te(void 0),l=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};Ze(()=>{u(n())}),Ft(()=>(u(n()),()=>l(n())));var f=S$(),_=h(f);me(_,()=>{var p;return(p=e.children)!=null?p:ne}),g(f),ut(f,p=>O(d,p),()=>r(d)),b(t,f),W(),o()}var C$=L('<div><div class="content svelte-1jbbzcj"> </div> <div class="tooltip-pointer svelte-1jbbzcj"></div></div>'),T$=L("<div><!></div> <!>",1),I$={hash:"svelte-1jbbzcj",code:'.tooltip-wrapper.svelte-1jbbzcj {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-1jbbzcj {width:100%;}.tooltip.svelte-1jbbzcj {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-1jbbzcj {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip.active.svelte-1jbbzcj {opacity:1;visibility:visible;}.tooltip-pointer.svelte-1jbbzcj {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function ca(t,e){K(e,!0),G(t,I$);let[i,o]=Fe(),n=()=>C(Q,"$overlayContainer$",i),a=()=>C(U,"$containerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"content",3,""),l=v(e,"active",15,!1),u=v(e,"translateX",3,0),f=v(e,"translateY",3,0),_=v(e,"isFullWidthWrapper",3,!1),p=v(e,"maxTooltipWidth",3,void 0),$=v(e,"placement",3,"top"),y=v(e,"onVisibilityChange",3,e1.noop),w=5,S=te(void 0),I=te(void 0),A,P=te(0),E=te(0),T=te(0),R=te(0),z=Gt(),Z=Ie(),U=Z.ui.playerSize,Q=Z.ui.overlayContainer$;Ze(()=>{bt(()=>{y()(l())})});let ee=Z.getLogger().createComponentLog("Tooltip component"),ae=()=>{if(!n()||!r(I)||!r(S))return;O(E,w);let Ae=n().getBoundingClientRect(),ye=r(S).getBoundingClientRect(),Me=ye.width,rt=r(I).clientWidth,vt=a().width,tt=(Me-rt)/2,Ot=ye.left+u()-Ae.left,st=Ot+tt,gt=ye.top+f()-Ae.top,qt=rt/2-w,Qt=st<8,Ve=st+rt>vt-8;Qt&&(st=8,qt=Ot+ye.width/2-2.5*w),Ve&&(st=vt-8-rt,qt=ye.left-Ae.left+ye.width/2-st-w),O(T,pe(st)),O(R,gt),O(P,pe(qt))},_e=()=>{!n()||!r(I)||!r(S)||O(E,-w)},re=()=>{if(!n()||!r(I)||!r(S))return;O(P,w);let Ae=n().getBoundingClientRect(),ye=r(S).getBoundingClientRect(),Me=ye.height,rt=r(I).clientHeight,vt=(Me-rt)/2+rt,tt=ye.left+u()-Ae.left-r(I).clientWidth,Ot=2,st=tt-w;st<8&&(st=8);let qt=ye.top+f()-Ae.top+vt,Qt=Ot-vt/2,Ve=Ot-w;O(T,pe(st)),O(R,qt),O(E,Qt),O(P,Ve)},Pe=()=>{!n()||!r(I)||!r(S)||O(P,-w)},qe=()=>{switch($()){case"top":ae();break;case"bottom":_e();break;case"left":re();break;default:Pe()}},ie=()=>{try{if(!n()||!r(S))return;qe(),l(!0)}catch(Ae){ee({message:String(Ae)})}},Le=()=>{l(!1)},J=()=>{r(I)&&(A||(A=window.setTimeout(ie,z.controls.hideTimeoutTooltips)),l()&&ie())},D=()=>{Le(),window.clearTimeout(A),A=void 0},Be=(Ae,ye)=>{let Me="";switch($()){case"top":Me=`transform: translate(${Ae}px, ${ye}px);`;break;case"bottom":Me=`transform: translate(${Ae}px, ${ye}px); top: auto; bottom: 100%;`;break;case"left":Me=`transform: translate(${Ae}px, ${ye}px); left: 0; right: auto;`;break;default:Me=`transform: translate(${Ae}px, ${ye}px);`}return Me+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Me},X=(Ae,ye)=>{let Me="";switch($()){case"top":Me=`transform: translate(${Ae}px, ${ye}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Me=`transform: translate(${Ae}px, ${ye}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Me=`transform: translate(${Ae}px, ${ye}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Me=`transform: translate(${Ae}px, ${ye}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Me},Ge=m(()=>Be(r(T),r(R))),Re=m(()=>X(r(P),r(E)));Ft(qe),sr(()=>window.clearTimeout(A));var ue=T$(),B=ve(ue);let ce;B.__mousemove=J,B.__mousedown=D,B.__mouseup=J;var Ee=h(B);me(Ee,()=>{var Ae;return(Ae=e.children)!=null?Ae:ne}),g(B),ut(B,Ae=>O(S,Ae),()=>r(S));var Ke=M(B,2);{var lt=Ae=>{$f(Ae,{children:(ye,Me)=>{var rt=C$();let vt;var tt=h(rt),Ot=h(tt,!0);g(tt);var st=M(tt,2);g(rt),ut(rt,gt=>O(I,gt),()=>r(I)),k(gt=>{vt=oe(rt,1,"tooltip svelte-1jbbzcj",null,vt,gt),nt(rt,r(Ge)),fe(Ot,d()),nt(st,r(Re))},[()=>({active:l()})]),b(ye,rt)},$$slots:{default:!0}})};V(Ke,Ae=>{d()&&!s()&&Ae(lt)})}k(Ae=>ce=oe(B,1,"tooltip-wrapper svelte-1jbbzcj",null,ce,Ae),[()=>({"full-width":_()})]),Bt("mouseenter",B,J),Bt("mouseleave",B,D),b(t,ue),W(),o()}at(["mousemove","mousedown","mouseup"]);var t1=t=>{t.stopPropagation()},k$=L("<div><!></div>"),E$={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Ao(t,e){K(e,!0),G(t,E$);let[i,o]=Fe(),n=()=>C(u,"$isGraphOpened$",i),a=()=>C(l,"$isMobile",i),s=Ie(),d=co(),l=s.ui.isMobile,u=d.graphIsOpened$,f=s.ui.t,_=v(e,"className",3,""),p=v(e,"disabled",3,!1),$=v(e,"hasTooltip",3,!0),y=v(e,"ref",15,void 0),w=v(e,"width",15,void 0),S=v(e,"isFullWidthTooltip",3,!0),I=v(e,"tooltipContent",3,""),A=v(e,"tooltipActive",3,!1),P=v(e,"tooltipPlacement",3,"top"),E=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),T=v(e,"isAriaHidden",3,!1),R=v(e,"onTooltipVisibilityChange",3,i1.noop),z=v(e,"initialTranslateXPx",3,0),Z=v(e,"initialTranslateYPx",19,()=>-18),U=m(()=>p()?n()?f("tooltip_disabled_when_graph_on"):E():I());var Q=k$();Q.__pointerdown=[t1],Q.__click=[t1];var ee=h(Q);{var ae=re=>{ca(re,{get content(){return r(U)},get translateX(){return z()},get translateY(){return Z()},get isFullWidthWrapper(){return S()},get active(){return A()},get placement(){return P()},get onVisibilityChange(){return R()},children:(Pe,qe)=>{var ie=ze(),Le=ve(ie);me(Le,()=>{var J;return(J=e.children)!=null?J:ne}),b(Pe,ie)},$$slots:{default:!0}})},_e=re=>{var Pe=ze(),qe=ve(Pe);me(qe,()=>{var ie;return(ie=e.children)!=null?ie:ne}),b(re,Pe)};V(ee,re=>{$()&&r(U)&&!a()?re(ae):re(_e,!1)})}g(Q),ut(Q,re=>y(re),()=>y()),k(()=>{var re;oe(Q,1,`btn-container ${(re=_())!=null?re:""}`,"svelte-p9r045"),De(Q,"aria-hidden",T()||null)}),Ur(Q,"clientWidth",w),b(t,Q),W(),o()}at(["pointerdown","click"]);var A$=$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 md(t,e){"use strict";var i=A$(),o=h(i),n=M(o);g(i),k(()=>{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")}),b(t,i)}var P$=L("<div><!></div>"),M$={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 yf(t,e){K(e,!0),G(t,M$);let o=Ie().ui.t,n=te(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Ao(t,{get tooltipContent(){return r(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(s,d)=>{var l=P$();let u;var f=h(l);let _=m(()=>!!e.videoEpisode.completed);md(f,{get completed(){return r(_)}}),g(l),k(p=>{u=oe(l,1,"interactive-episode-icon svelte-bklhpe",null,u,p),nt(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Ur(l,"clientWidth",p=>O(n,p)),b(s,l)},$$slots:{default:!0}}),W()}var L$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),V$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),R$={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,
166
169
  .video-episode-loaded.svelte-1u6kv8l,
167
- .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 Vu(t,e){if(new.target)return E($({component:Vu},t));P(e,!0),se(t,xb);let i=p(e,"videoEpisodes",23,()=>[]),o=p(e,"isMobile",7),n=p(e,"disabled",7);var r=yb();return Ei(r,21,i,so,(l,d)=>{var a=bb(),c=w(a),f=w(c),g=H(f,2);y(c),y(a),N(()=>{ve(a,"style",`left: ${s(d).from}%; width: ${s(d).width}%`),ae(a,"disabled",n()),ae(a,"mobile",o()),ve(f,"style",`transform: translateX(${s(d).loadedWidth/s(d).width*100}%)`),ve(g,"style",`transform: translateX(${s(d).filledWidth/s(d).width*100}%)`),ae(g,"mobile",o())}),C(l,a)}),y(r),C(t,r),A({get videoEpisodes(){return i()},set videoEpisodes(l=[]){i(l),u()},get isMobile(){return o()},set isMobile(l){o(l),u()},get disabled(){return n()},set disabled(l){n(l),u()},$set:L,$on:(l,d)=>M(e,l,d)})}function wb(t,e,i,o,n,r,l){if(t.preventDefault(),e()&&Y(i,Le(e().getBoundingClientRect())),o()||s(n)||!e())return;Y(n,!0);let d=r(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function Cb(t,e,i,o,n,r,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),c=o(t.clientX);n()(a,c,s(r).width),s(l)&&d()(a)}function Sb(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;Y(i,!1);let r=o(t.clientX,t.clientY);n()(r)}function Tb(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var Ib=U('<div class="interactive-icons svelte-1tpemng"></div>'),kb=U('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div class="filled svelte-1tpemng"></div></div>'),Eb=U('<!> <div role="slider" tabindex="0"><!> <div class="handleWrap svelte-1tpemng"><div class="handle svelte-1tpemng"></div></div></div>',1),Pb={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
170
+ .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function xf(t,e){G(t,R$);let i=v(e,"videoEpisodes",19,()=>[]);var o=V$();yi(o,21,i,n=>n.from,(n,a)=>{var s=L$();let d;var l=h(s),u=h(l),f=M(u,2);let _;g(l),g(s),k((p,$)=>{d=oe(s,1,"video-episode svelte-1u6kv8l",null,d,p),nt(s,`left: ${r(a).from}%; width: ${r(a).width}%`),nt(u,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),_=oe(f,1,"video-episode-filled svelte-1u6kv8l",null,_,$),nt(f,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,s)}),g(o),b(t,o)}function N$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&O(i,pe(e().getBoundingClientRect())),o()||r(n)||!e())return;O(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function D$(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 B$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function O$(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var H$=L("<div></div>"),F$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),U$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),z$={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 {
168
171
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
169
172
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
170
173
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
171
174
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
172
- .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 Zs(t,e){if(new.target)return E($({component:Zs},t));P(e,!0),se(t,Pb);let i=p(e,"ref",15,void 0),o=p(e,"className",7,""),n=p(e,"testId",7,void 0),r=p(e,"isHidden",7,!1),l=p(e,"isVertical",7,!1),d=p(e,"isActiveLive",7,!1),a=p(e,"isMobile",7,!1),c=p(e,"squareBorders",7,!1),f=p(e,"videoEpisodes",23,()=>[]),g=p(e,"withWheelHandler",7,!1),m=p(e,"isInteractive",7,!1),h=p(e,"disabled",7,!1),_=p(e,"hideHandel",7,!1),x=p(e,"onPointerDown",7,$i.noop),T=p(e,"onHandleMove",7,$i.noop),V=p(e,"onPointerUp",7,$i.noop),D=p(e,"onPointerEnter",7,$i.noop),R=p(e,"onPointerMove",7,$i.noop),B=p(e,"onPointerLeave",7,$i.noop),I=p(e,"onWheelUp",7,$i.noop),z=p(e,"onWheelDown",7,$i.noop),Q=p(e,"onWheelLeft",7,$i.noop),F=p(e,"onWheelRight",7,$i.noop),G=p(e,"onDisabledClick",7,$i.noop),J=p(e,"loadedProgress",7,0),ce=p(e,"filledProgress",7,0),ee=p(e,"handleProgress",7,0),Ce=p(e,"ariaLabel",7,""),Se=p(e,"ariaValueMin",7,void 0),ne=p(e,"ariaValueMax",7,void 0),ie=p(e,"ariaValueNow",7,void 0),be=p(e,"ariaValueText",7,""),j=oi(),re=pe(void 0),K=pe(!1),qe=b(()=>{var te;return(te=ne())!=null?te:0}),Be=b(()=>{var te;return(0,$i.isNonNullable)(f())&&((te=f()[f().length-1])==null?void 0:te.time)<s(qe)}),fe=b(()=>(0,$i.isNonNullable)(f())&&f().length&&s(Be)&&s(qe)?He(J()*100,ce()*100):[]);function Te(te){if(te.preventDefault(),i()&&Y(re,Le(i().getBoundingClientRect())),h())return;let it=ue(te.clientX,te.clientY),bt=le(te.clientX);D()(it,bt,s(re).width)}function Ye(te){te.preventDefault(),!h()&&B()()}function Z(te){h()||g()&&(te.preventDefault(),te.deltaY<0?I()():te.deltaY>0?z()():te.deltaX>0?F()():Q()())}function ue(te,it){return l()?Math.max(0,Math.min(1,(s(re).height-(it-s(re).top))/s(re).height)):Math.min(Math.max(te-s(re).x,0),s(re).width)/s(re).width}function le(te){return Math.min(Math.max(te-s(re).x,0),s(re).width)}function He(te,it){let bt=j.features.episodesClustering&&!m()?j.episodeMinWidthPc:0,gt=[],xe=f()[0].time/s(qe)*100,Me=0,we=0;for(let Ne=1;Ne<f().length;Ne++)Me=f()[Ne].time/s(qe)*100,Me-xe>bt&&(gt.push({from:xe,width:Math.max(0,Me-xe),loadedWidth:Math.max(0,Math.min(Me,te)-xe),filledWidth:Math.max(0,Math.min(Me,it)-xe),interactive:f()[Ne-1].interactive,completed:f()[Ne-1].completed}),xe=f()[Ne].time/s(qe)*100,we++);let Ze={from:xe,width:Math.max(0,100-xe),loadedWidth:Math.max(0,Math.min(te,100)-xe),filledWidth:Math.max(0,Math.min(it,100)-xe),interactive:f()[we].interactive,completed:f()[we].completed};100-xe<bt?(we-=1,gt[we].width+=100-xe,gt[we].loadedWidth+=Math.max(0,Math.min(te,100)-xe),gt[we].filledWidth+=Math.max(0,Math.min(it,100)-xe)):gt[we]=Ze;let vt=f()[0].time;if(vt!==0){let Ne=vt/s(qe)*100;gt.unshift({from:0,width:Ne,loadedWidth:Math.min(Ne,te),filledWidth:Math.min(Ne,it)})}return gt}var et=Eb(),dt=Ee(et);{var _e=te=>{var it=Ib();Ei(it,21,()=>s(fe),so,(bt,gt)=>{var xe=Xe(),Me=Ee(xe);{var we=Ze=>{Lu(Ze,{get videoEpisode(){return s(gt)},get disabled(){return h()}})};q(Me,Ze=>{s(gt).interactive&&Ze(we)})}C(bt,xe)}),y(it),N(()=>{ae(it,"mobile",a()),ae(it,"hidden",a()&&!s(K))}),C(te,it)};q(dt,te=>{m()&&te(_e)})}var me=H(dt,2);me.__pointerdown=[wb,i,re,h,K,ue,x],me.__pointermove=[Cb,h,ue,le,R,re,K,T],me.__pointerup=[Sb,h,K,ue,V],me.__click=[Tb,h,G,ue];var Je=w(me);{var mt=te=>{Vu(te,{get videoEpisodes(){return s(fe)},get disabled(){return h()},get isMobile(){return a()}})},ge=te=>{var it=kb(),bt=w(it),gt=H(bt,2);y(it),N(()=>{ve(bt,"style",`transform: translateX(${J()*100}%);`),ve(gt,"style",`transform: translateX(${ce()*100}%);`),ae(gt,"active-live",d())}),C(te,it)};q(Je,te=>{s(fe).length?te(mt):te(ge,!1)})}var je=H(Je,2),Tt=w(je);return y(je),y(me),St(me,te=>i(te),()=>i()),N(()=>{var te,it;rn(me,`slider ${(te=o())!=null?te:""} svelte-1tpemng`),ve(me,"aria-label",Ce()),ve(me,"aria-valuemin",Se()),ve(me,"aria-valuemax",ne()),ve(me,"aria-valuenow",ie()),ve(me,"aria-valuetext",be()),ve(me,"data-testid",(it=n())!=null?it:null),ae(me,"disabled",h()),ae(me,"slider-dragging",s(K)),ae(me,"hidden",r()),ae(me,"slider-vertical",l()),ae(me,"no-handle",_()),ae(me,"square",c()),ve(je,"style",`transform: translateX(${ee()*100}%);`),ae(je,"hidden",_()),ae(Tt,"active-live",d())}),Kt("pointerenter",me,Te),Kt("pointerleave",me,Ye),Kt("wheel",me,Z),C(t,et),A({get ref(){return i()},set ref(te=void 0){i(te),u()},get className(){return o()},set className(te=""){o(te),u()},get testId(){return n()},set testId(te=void 0){n(te),u()},get isHidden(){return r()},set isHidden(te=!1){r(te),u()},get isVertical(){return l()},set isVertical(te=!1){l(te),u()},get isActiveLive(){return d()},set isActiveLive(te=!1){d(te),u()},get isMobile(){return a()},set isMobile(te=!1){a(te),u()},get squareBorders(){return c()},set squareBorders(te=!1){c(te),u()},get videoEpisodes(){return f()},set videoEpisodes(te=[]){f(te),u()},get withWheelHandler(){return g()},set withWheelHandler(te=!1){g(te),u()},get isInteractive(){return m()},set isInteractive(te=!1){m(te),u()},get disabled(){return h()},set disabled(te=!1){h(te),u()},get hideHandel(){return _()},set hideHandel(te=!1){_(te),u()},get onPointerDown(){return x()},set onPointerDown(te=$i.noop){x(te),u()},get onHandleMove(){return T()},set onHandleMove(te=$i.noop){T(te),u()},get onPointerUp(){return V()},set onPointerUp(te=$i.noop){V(te),u()},get onPointerEnter(){return D()},set onPointerEnter(te=$i.noop){D(te),u()},get onPointerMove(){return R()},set onPointerMove(te=$i.noop){R(te),u()},get onPointerLeave(){return B()},set onPointerLeave(te=$i.noop){B(te),u()},get onWheelUp(){return I()},set onWheelUp(te=$i.noop){I(te),u()},get onWheelDown(){return z()},set onWheelDown(te=$i.noop){z(te),u()},get onWheelLeft(){return Q()},set onWheelLeft(te=$i.noop){Q(te),u()},get onWheelRight(){return F()},set onWheelRight(te=$i.noop){F(te),u()},get onDisabledClick(){return G()},set onDisabledClick(te=$i.noop){G(te),u()},get loadedProgress(){return J()},set loadedProgress(te=0){J(te),u()},get filledProgress(){return ce()},set filledProgress(te=0){ce(te),u()},get handleProgress(){return ee()},set handleProgress(te=0){ee(te),u()},get ariaLabel(){return Ce()},set ariaLabel(te=""){Ce(te),u()},get ariaValueMin(){return Se()},set ariaValueMin(te=void 0){Se(te),u()},get ariaValueMax(){return ne()},set ariaValueMax(te=void 0){ne(te),u()},get ariaValueNow(){return ie()},set ariaValueNow(te=void 0){ie(te),u()},get ariaValueText(){return be()},set ariaValueText(te=""){be(te),u()},$set:L,$on:(te,it)=>M(e,te,it)})}xt(["pointerdown","pointermove","pointerup","click"]);var Ji=(t,e)=>ya[t]>=ya[e],e_=(t,e)=>ya[t]<ya[e],Xs=(t,e)=>ya[t]<=ya[e],t_=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Ab=U('<div class="volumeBar svelte-1auih1j"><!></div>'),Mb=U('<div class="volumeBar-container svelte-1auih1j"><!> <!></div>'),Lb={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 Ru(t,e){var dt,_e;if(new.target)return E($({component:Ru},t));P(e,!0),se(t,Lb);let[i,o]=tt(),n=()=>k(R,"$isAudioAvailable$",i),r=()=>k(m,"$muted$",i),l=()=>k(g,"$volume$",i),d=()=>k(T,"$currentGridType$",i),a=p(e,"click",7),c=Fe(),f=oi(),g=c.state.volume$,m=c.state.muted$,{setVolume:h,startVolumeChanging:_,stopVolumeChanging:x}=c.actions.internal,T=c.ui.currentGridType$,V=(dt=c.callbacks)==null?void 0:dt.onAudioDoesNotExistHint,D=(_e=c.callbacks)==null?void 0:_e.onAudioDisabledHint,R=c.state.isAudioAvailable$,B=c.state.isAudioDisabled,I=c.ui.t,z=pe(!1),Q,F=b(()=>!n()||r()||l()===0),G=b(()=>Xs(d(),"s")),J=b(()=>s(G)?"":s(F)?I("tooltip_volume"):I("tooltip_volume_muted")),ce=b(()=>s(F)?I("tooltip_volume"):I("tooltip_volume_muted")),ee=b(()=>s(F)?0:l()),Ce=!1,Se=b(()=>n()?B&&!D:!V);function ne(me){_(),h(me)}function ie(){hu(c,l(),f.controls.volumeStepWheel)}function be(){_u(c,l(),f.controls.volumeStepWheel)}function j(me){h(me)}function re(me){h(me),x()}function K(){Ce=!0}function qe(){Ce=!1,Te()}function Be(){clearTimeout(Q),Y(z,!0)}function fe(){Te()}function Te(){Q=window.setTimeout(()=>{Ce||Y(z,!1)},f.controls.volumeBarTimeout)}function Ye(me){me.preventDefault(),me.deltaY<0?ie():me.deltaY>0&&be()}var Z=Mb(),ue=w(Z);js(ue,{get content(){return s(J)},translateY:-18,children:(me,Je)=>{let mt=b(()=>s(G)?"btn-volume-vertical":"btn-volume-horizontal");Wt(me,{className:"btn-full-opacity",get disabled(){return s(Se)},get testId(){return s(mt)},get ariaLabel(){return s(ce)},get click(){return a()},get ariaKeyShortCut(){return rs.KeyM},children:(ge,je)=>{Cs(ge,{get volume(){return l()},get muted(){return s(F)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var le=H(ue,2);{var He=me=>{var Je=Ab(),mt=w(Je);let ge=b(()=>s(G)?"volumeBar-slider-vertical":""),je=b(()=>s(G)&&!s(z)),Tt=b(()=>s(G)?K:Wd.noop),te=b(()=>s(G)?qe:Wd.noop),it=b(()=>Math.round(s(ee)*100)),bt=b(()=>`${Math.round(s(ee)*100)}%`),gt=b(()=>s(G)?"volume-slider-vertical":"volume-slider");Zs(mt,{get className(){return s(ge)},get isHidden(){return s(je)},get isVertical(){return s(G)},withWheelHandler:!0,onWheelUp:ie,onWheelDown:be,onPointerDown:ne,onHandleMove:j,onPointerUp:re,get onPointerEnter(){return s(Tt)},get onPointerLeave(){return s(te)},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 s(it)},get ariaValueText(){return s(bt)},get filledProgress(){return s(ee)},get handleProgress(){return s(ee)},get testId(){return s(gt)}}),y(Je),N(()=>ae(Je,"volumeBar-vertical",s(G))),C(me,Je)};q(le,me=>{n()&&me(He)})}y(Z),N(()=>ae(Z,"vertical",s(G))),Kt("mouseenter",Z,function(...me){var Je;(Je=s(G)?Be:Wd.noop)==null||Je.apply(this,me)}),Kt("mouseleave",Z,function(...me){var Je;(Je=s(G)?fe:Wd.noop)==null||Je.apply(this,me)}),Kt("wheel",Z,Ye),C(t,Z);var et=A({get click(){return a()},set click(me){a(me),u()},$set:L,$on:(me,Je)=>M(e,me,Je)});return o(),et}var Km=require("@vkontakte/videoplayer-shared/es2015");var Vb=Re('<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 Nu(t,e){if(new.target)return E($({component:Nu},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Vb();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var Rb={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Bu(t,e){if(new.target)return E($({component:Bu},t));P(e,!1),se(t,Rb);let i=p(e,"isFullscreen",12,!1),o=Dr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");return Nu(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"}),A({get isFullscreen(){return i()},set isFullscreen(n){i(n),u()},$set:L,$on:(n,r)=>M(e,n,r)})}function Vl(t,e){if(new.target)return E($({component:Vl},t));P(e,!0);let i=p(e,"isFullscreen",7,!1),o=p(e,"click",7,Km.noop),n=Fe(),r=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=b(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));return Wt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:c=>{let f=qs(c);r.set(f),o()()},get ariaKeyShortCut(){return rs.KeyF},children:(c,f)=>{Bu(c,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),A({get isFullscreen(){return i()},set isFullscreen(c=!1){i(c),u()},get click(){return o()},set click(c=Km.noop){o(c),u()},$set:L,$on:(c,f)=>M(e,c,f)})}var Nb=Re('<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 Du(t,e){if(new.target)return E($({component:Du},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Nb();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var Bb=Re('<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 Ou(t,e){if(new.target)return E($({component:Ou},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Bb();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(4),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var Db={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
175
+ .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function ua(t,e){K(e,!0),G(t,z$);let i=v(e,"ref",15,void 0),o=v(e,"className",3,""),n=v(e,"testId",3,void 0),a=v(e,"isHidden",3,!1),s=v(e,"isVertical",3,!1),d=v(e,"isActiveLive",3,!1),l=v(e,"isMobile",3,!1),u=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),_=v(e,"withWheelHandler",3,!1),p=v(e,"isInteractive",3,!1),$=v(e,"disabled",3,!1),y=v(e,"hideHandel",3,!1),w=v(e,"onPointerDown",3,nn.noop),S=v(e,"onHandleMove",3,nn.noop),I=v(e,"onPointerUp",3,nn.noop),A=v(e,"onPointerEnter",3,nn.noop),P=v(e,"onPointerMove",3,nn.noop),E=v(e,"onPointerLeave",3,nn.noop),T=v(e,"onWheelUp",3,nn.noop),R=v(e,"onWheelDown",3,nn.noop),z=v(e,"onWheelLeft",3,nn.noop),Z=v(e,"onWheelRight",3,nn.noop),U=v(e,"onDisabledClick",3,nn.noop),Q=v(e,"loadedProgress",3,0),ee=v(e,"filledProgress",3,0),ae=v(e,"handleProgress",3,0),_e=v(e,"ariaLabel",3,""),re=v(e,"ariaValueMin",3,void 0),Pe=v(e,"ariaValueMax",3,void 0),qe=v(e,"ariaValueNow",3,void 0),ie=v(e,"ariaValueText",3,""),Le=Gt(),J=te(void 0),D=te(!1),Be=m(()=>{var Ve;return(Ve=Pe())!=null?Ve:0}),X=m(()=>{var Ve;return(0,nn.isNonNullable)(f())&&((Ve=f()[f().length-1])==null?void 0:Ve.time)<r(Be)}),Ge=m(()=>(0,nn.isNonNullable)(f())&&f().length&&r(X)&&r(Be)?Ke(Q()*100,ee()*100):[]);function Re(Ve){if(Ve.preventDefault(),i()&&O(J,pe(i().getBoundingClientRect())),$())return;let se=ce(Ve.clientX,Ve.clientY),j=Ee(Ve.clientX);A()(se,j,r(J).width)}function ue(Ve){Ve.preventDefault(),!$()&&E()()}function B(Ve){$()||_()&&(Ve.preventDefault(),Ve.deltaY<0?T()():Ve.deltaY>0?R()():Ve.deltaX>0?Z()():z()())}function ce(Ve,se){return s()?Math.max(0,Math.min(1,(r(J).height-(se-r(J).top))/r(J).height)):Math.min(Math.max(Ve-r(J).x,0),r(J).width)/r(J).width}function Ee(Ve){return Math.min(Math.max(Ve-r(J).x,0),r(J).width)}function Ke(Ve,se){let j=Le.features.episodesClustering&&!p()?Le.episodeMinWidthPc:0,le=[],ge=f()[0].time/r(Be)*100,Ce=0,Ne=0;for(let Ye=1;Ye<f().length;Ye++)Ce=f()[Ye].time/r(Be)*100,Ce-ge>j&&(le.push({from:ge,width:Math.max(0,Ce-ge),loadedWidth:Math.max(0,Math.min(Ce,Ve)-ge),filledWidth:Math.max(0,Math.min(Ce,se)-ge),interactive:f()[Ye-1].interactive,completed:f()[Ye-1].completed}),ge=f()[Ye].time/r(Be)*100,Ne++);let pt={from:ge,width:Math.max(0,100-ge),loadedWidth:Math.max(0,Math.min(Ve,100)-ge),filledWidth:Math.max(0,Math.min(se,100)-ge),interactive:f()[Ne].interactive,completed:f()[Ne].completed};100-ge<j?(Ne-=1,le[Ne].width+=100-ge,le[Ne].loadedWidth+=Math.max(0,Math.min(Ve,100)-ge),le[Ne].filledWidth+=Math.max(0,Math.min(se,100)-ge)):le[Ne]=pt;let Kt=f()[0].time;if(Kt!==0){let Ye=Kt/r(Be)*100;le.unshift({from:0,width:Ye,loadedWidth:Math.min(Ye,Ve),filledWidth:Math.min(Ye,se)})}return le}var lt=U$(),Ae=ve(lt);{var ye=Ve=>{var se=H$();let j;yi(se,21,()=>r(Ge),le=>le.from,(le,ge)=>{var Ce=ze(),Ne=ve(Ce);{var pt=Kt=>{yf(Kt,{get videoEpisode(){return r(ge)},get disabled(){return $()}})};V(Ne,Kt=>{r(ge).interactive&&Kt(pt)})}b(le,Ce)}),g(se),k(le=>j=oe(se,1,"interactive-icons svelte-1tpemng",null,j,le),[()=>({mobile:l(),hidden:l()&&!r(D)})]),b(Ve,se)};V(Ae,Ve=>{p()&&Ve(ye)})}var Me=M(Ae,2);let rt;Me.__pointerdown=[N$,i,J,$,D,ce,w],Me.__pointermove=[D$,$,ce,Ee,P,J,D,S],Me.__pointerup=[B$,$,D,ce,I],Me.__click=[O$,$,U,ce];var vt=h(Me);{var tt=Ve=>{xf(Ve,{get videoEpisodes(){return r(Ge)},get disabled(){return $()},get isMobile(){return l()}})},Ot=Ve=>{var se=F$(),j=h(se),le=M(j,2);let ge;g(se),k(Ce=>{nt(j,`transform: translateX(${Q()*100}%);`),ge=oe(le,1,"filled svelte-1tpemng",null,ge,Ce),nt(le,`transform: translateX(${ee()*100}%);`)},[()=>({"active-live":d()})]),b(Ve,se)};V(vt,Ve=>{r(Ge).length?Ve(tt):Ve(Ot,!1)})}var st=M(vt,2);let gt;var qt=h(st);let Qt;g(st),g(Me),ut(Me,Ve=>i(Ve),()=>i()),k((Ve,se,j)=>{var le,ge;rt=oe(Me,1,`slider ${(le=o())!=null?le:""}`,"svelte-1tpemng",rt,Ve),De(Me,"aria-label",_e()),De(Me,"aria-valuemin",re()),De(Me,"aria-valuemax",Pe()),De(Me,"aria-valuenow",qe()),De(Me,"aria-valuetext",ie()),De(Me,"data-testid",(ge=n())!=null?ge:null),gt=oe(st,1,"handleWrap svelte-1tpemng",null,gt,se),nt(st,`transform: translateX(${ae()*100}%);`),Qt=oe(qt,1,"handle svelte-1tpemng",null,Qt,j)},[()=>({disabled:$(),"slider-dragging":r(D),hidden:a(),"slider-vertical":s(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>({"active-live":d()})]),Bt("pointerenter",Me,Re),Bt("pointerleave",Me,ue),Bt("wheel",Me,B),b(t,lt),W()}at(["pointerdown","pointermove","pointerup","click"]);var Ui=(t,e)=>Zs[t]>=Zs[e],o1=(t,e)=>Zs[t]<Zs[e],As=(t,e)=>Zs[t]<=Zs[e],n1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var q$=L("<div><!></div>"),K$=L("<div><!> <!></div>"),W$={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 wf(t,e){var lt,Ae;K(e,!0),G(t,W$);let[i,o]=Fe(),n=()=>C(A,"$isAudioAvailable$",i),a=()=>C(_,"$muted$",i),s=()=>C(f,"$volume$",i),d=()=>C(w,"$currentGridType$",i),l=Ie(),u=Gt(),f=l.state.volume$,_=l.state.muted$,{setVolume:p,startVolumeChanging:$,stopVolumeChanging:y}=l.actions.internal,w=l.ui.currentGridType$,S=(lt=l.callbacks)==null?void 0:lt.onAudioDoesNotExistHint,I=(Ae=l.callbacks)==null?void 0:Ae.onAudioDisabledHint,A=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,E=l.ui.t,T=te(!1),R,z=m(()=>!n()||a()||s()===0),Z=m(()=>As(d(),"s")),U=m(()=>r(Z)?"":r(z)?E("tooltip_volume"):E("tooltip_volume_muted")),Q=m(()=>r(z)?E("tooltip_volume"):E("tooltip_volume_muted")),ee=m(()=>r(z)?0:s()),ae=!1,_e=m(()=>n()?P&&!I:!S);function re(ye){$(),p(ye)}function Pe(){Yc(l,s(),u.controls.volumeStepWheel)}function qe(){jc(l,s(),u.controls.volumeStepWheel)}function ie(ye){p(ye)}function Le(ye){p(ye),y()}function J(){ae=!0}function D(){ae=!1,Ge()}function Be(){clearTimeout(R),O(T,!0)}function X(){Ge()}function Ge(){R=window.setTimeout(()=>{ae||O(T,!1)},u.controls.volumeBarTimeout)}function Re(ye){ye.preventDefault(),ye.deltaY<0?Pe():ye.deltaY>0&&qe()}var ue=K$();let B;var ce=h(ue);ca(ce,{get content(){return r(U)},translateY:-18,children:(ye,Me)=>{let rt=m(()=>r(Z)?"btn-volume-vertical":"btn-volume-horizontal");At(ye,{className:"btn-full-opacity",get disabled(){return r(_e)},get testId(){return r(rt)},get ariaLabel(){return r(Q)},get click(){return e.click},get ariaKeyShortCut(){return zr.KeyM},children:(vt,tt)=>{Es(vt,{get volume(){return s()},get muted(){return r(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ee=M(ce,2);{var Ke=ye=>{var Me=q$();let rt;var vt=h(Me);let tt=m(()=>r(Z)?"volumeBar-slider-vertical":""),Ot=m(()=>r(Z)&&!r(T)),st=m(()=>r(Z)?J:vd.noop),gt=m(()=>r(Z)?D:vd.noop),qt=m(()=>Math.round(r(ee)*100)),Qt=m(()=>`${Math.round(r(ee)*100)}%`),Ve=m(()=>r(Z)?"volume-slider-vertical":"volume-slider");ua(vt,{get className(){return r(tt)},get isHidden(){return r(Ot)},get isVertical(){return r(Z)},withWheelHandler:!0,onWheelUp:Pe,onWheelDown:qe,onPointerDown:re,onHandleMove:ie,onPointerUp:Le,get onPointerEnter(){return r(st)},get onPointerLeave(){return r(gt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(qt)},get ariaValueText(){return r(Qt)},get filledProgress(){return r(ee)},get handleProgress(){return r(ee)},get testId(){return r(Ve)}}),g(Me),k(se=>rt=oe(Me,1,"volumeBar svelte-1auih1j",null,rt,se),[()=>({"volumeBar-vertical":r(Z)})]),b(ye,Me)};V(Ee,ye=>{n()&&ye(Ke)})}g(ue),k(ye=>B=oe(ue,1,"volumeBar-container svelte-1auih1j",null,B,ye),[()=>({vertical:r(Z)})]),Bt("mouseenter",ue,function(...ye){var Me;(Me=r(Z)?Be:vd.noop)==null||Me.apply(this,ye)}),Bt("mouseleave",ue,function(...ye){var Me;(Me=r(Z)?X:vd.noop)==null||Me.apply(this,ye)}),Bt("wheel",ue,Re),b(t,ue),W(),o()}var r1=require("@vkontakte/videoplayer-shared/es2015");var Q$=$e('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function Sf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Q$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 G$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
176
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Cf(t,e){G(t,G$);let i=v(e,"isFullscreen",8,!1),o=xr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Sf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function gd(t,e){K(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,r1.noop),n=Ie(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=m(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));At(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=Ts(u);a.set(f),o()()},get ariaKeyShortCut(){return zr.KeyF},children:(u,f)=>{Cf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),W()}var Y$=$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 Tf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Y$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 j$=$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 If(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=j$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(4),g(o),k(()=>n=Se(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 Z$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
174
177
  svg[data-testid="vk-video-logo-icon--short"] ._en,
175
178
  svg[data-testid="vk-video-logo-icon"] ._en,
176
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Hu(t,e){if(new.target)return E($({component:Hu},t));P(e,!0),se(t,Db);let i=p(e,"short",7,!1),o=p(e,"isCyrillic",7,!0),n="vk-video-logo-icon--short",r=21,l=b(()=>!o()&&!i()?91:i()?r:95),d=b(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=b(()=>`0 0 ${s(l)+1} 24`);return Ou(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}}),A({get short(){return i()},set short(c=!1){i(c),u()},get isCyrillic(){return o()},set isCyrillic(c=!0){o(c),u()},$set:L,$on:(c,f)=>M(e,c,f)})}function Rl(t,e){if(new.target)return E($({component:Rl},t));P(e,!0);let[i,o]=tt(),n=()=>k(_,"$isMobile",i),r=()=>k(h,"$currentGridType$",i),l=()=>k(T,"$isCyrillicRelatedInterface$",i),d=p(e,"ref",15,void 0),a=p(e,"logoClickable",7,!1),c=p(e,"targetUrl",7,""),f=p(e,"click",7),g=oi(),m=Fe(),h=m.ui.currentGridType$,_=m.ui.isMobile,x=m.ui.t,T=m.isCyrillicRelatedInterface$,V=b(()=>g.logoType==="vk_video"?x("tooltip_vk_video_logo"):x("tooltip_vk_logo")),D=b(()=>g.logoType==="vk_video"||g.logoType==="vk_video_mobile"),R=b(()=>(n()||Xs(r(),"l"))&&s(D)),B=()=>{var F,G;f()(),(F=m.callbacks)!=null&&F.onLogoClicked?(G=m.callbacks)==null||G.onLogoClicked():c()&&window.open(c(),"_blank")},I=b(()=>!a()),z=b(()=>s(D)?"btn-vk-video-logo":"btn-vk-logo");Wt(t,{className:"btn-full-opacity",get disabled(){return s(I)},click:B,get testId(){return s(z)},get ariaLabel(){return s(V)},get ref(){return d()},set ref(F){d(F)},children:(F,G)=>{var J=Xe(),ce=Ee(J);{var ee=Se=>{Hu(Se,{get short(){return s(R)},get isCyrillic(){return l()}})},Ce=Se=>{Du(Se,{})};q(ce,Se=>{s(D)?Se(ee):Se(Ce,!1)})}C(F,J)},$$slots:{default:!0}});var Q=A({get ref(){return d()},set ref(F=void 0){d(F),u()},get logoClickable(){return a()},set logoClickable(F=!1){a(F),u()},get targetUrl(){return c()},set targetUrl(F=""){c(F),u()},get click(){return f()},set click(F){f(F),u()},$set:L,$on:(F,G)=>M(e,F,G)});return o(),Q}var i_=require("@vkontakte/videoplayer-core/es2015");var Qm=require("@vkontakte/videoplayer-core/es2015");var Hb=Re('<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>'),Fb=Re('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon" class="svelte-8z1bf5"><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)" class="svelte-8z1bf5"></path></g></svg>'),Ub={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
179
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function kf(t,e){G(t,Z$);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=m(()=>!o()&&!i()?91:i()?a:95),d=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=m(()=>`0 0 ${r(s)+1} 24`);If(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function hd(t,e){K(e,!0);let[i,o]=Fe(),n=()=>C($,"$isMobile",i),a=()=>C(p,"$currentGridType$",i),s=()=>C(w,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),l=v(e,"logoClickable",3,!1),u=v(e,"targetUrl",3,""),f=Gt(),_=Ie(),p=_.ui.currentGridType$,$=_.ui.isMobile,y=_.ui.t,w=_.isCyrillicRelatedInterface$,S=m(()=>f.logoType==="vk_video"?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),I=m(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),A=m(()=>(n()||As(a(),"l"))&&r(I)),P=()=>{var R,z;e.click(),(R=_.callbacks)!=null&&R.onLogoClicked?(z=_.callbacks)==null||z.onLogoClicked():u()&&window.open(u(),"_blank")},E=m(()=>!l()),T=m(()=>r(I)?"btn-vk-video-logo":"btn-vk-logo");At(t,{className:"btn-full-opacity",get disabled(){return r(E)},click:P,get testId(){return r(T)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(R){d(R)},children:(R,z)=>{var Z=ze(),U=ve(Z);{var Q=ae=>{kf(ae,{get short(){return r(A)},get isCyrillic(){return s()}})},ee=ae=>{Tf(ae,{})};V(U,ae=>{r(I)?ae(Q):ae(ee,!1)})}b(R,Z)},$$slots:{default:!0}}),W(),o()}var s1=require("@vkontakte/videoplayer-core/es2015");var Ef=require("@vkontakte/videoplayer-core/es2015"),J$=$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>'),e2=$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>'),t2={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) {
177
180
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
178
181
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
179
182
  animation-name: svelte-8z1bf5-wave3;}
@@ -221,9 +224,9 @@ Try switching the\xA0quality to\xA0Auto.`},Rh=_1;var ws=new Map;ws.set(pl.Interf
221
224
  100% {
222
225
  opacity: 1;
223
226
  }
224
- }`};function Fu(t,e){if(new.target)return E($({component:Fu},t));P(e,!0),se(t,Ub);let i=p(e,"isMobile",7,!1),o=p(e,"iconState",7),n=b(()=>o()===Qm.ChromecastState.CONNECTED),r=b(()=>o()===Qm.ChromecastState.CONNECTING);var l=Xe(),d=Ee(l);{var a=f=>{var g=Hb(),m=w(g),h=w(m),_=w(h);Ve(),y(h);var x=H(h);Ve(),y(m);var T=H(m),V=w(T),D=w(V);y(V),Ve(),y(T),y(g),N(()=>{ve(_,"fill",s(n)?"#2688EB":"var(--btn-color, #fff)"),ve(x,"fill",s(n)?"#2688EB":"var(--btn-color, #fff)"),ve(D,"fill",s(n)?"#2688EB":"var(--btn-color, #fff)")}),C(f,g)},c=f=>{var g=Fb(),m=w(g),h=H(w(m),5);y(m),y(g),N(()=>{ae(g,"connecting",s(r)),ae(h,"hidden",!s(n))}),C(f,g)};q(d,f=>{i()?f(a):f(c,!1)})}return C(t,l),A({get isMobile(){return i()},set isMobile(f=!1){i(f),u()},get iconState(){return o()},set iconState(f){o(f),u()},$set:L,$on:(f,g)=>M(e,f,g)})}var Gm=require("@vkontakte/videoplayer-shared/es2015");function Nl(t,e){if(new.target)return E($({component:Nl},t));P(e,!0);let i=p(e,"ref",15,void 0),o=p(e,"isMobile",7,!1),n=p(e,"state",7),r=p(e,"click",7,Gm.noop),d=Fe().ui.t,a=b(()=>n()===i_.ChromecastState.CONNECTED?d("tooltip_chromecast_on"):d("tooltip_chromecast_off"));return Wt(t,{get ariaLabel(){return s(a)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(c){i(c)},children:(c,f)=>{Fu(c,{get isMobile(){return o()},get iconState(){return n()}})},$$slots:{default:!0}}),A({get ref(){return i()},set ref(c=void 0){i(c),u()},get isMobile(){return o()},set isMobile(c=!1){o(c),u()},get state(){return n()},set state(c){n(c),u()},get click(){return r()},set click(c=Gm.noop){r(c),u()},$set:L,$on:(c,f)=>M(e,c,f)})}var zb=U('<div class="tooltip-wrapper svelte-5ygsa2"><div class="tooltip svelte-5ygsa2"><!></div></div>'),Wb={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 Uu(t,e){if(new.target)return E($({component:Uu},t));P(e,!0),se(t,Wb);let i=p(e,"active",7,!1),o=p(e,"pointer",7,!1),n=p(e,"translateXPx",7,0),r=p(e,"translateYPx",7,0),l=p(e,"containerWidth",7),d=p(e,"children",7),a=pe(void 0),c=pe(void 0);function f(x){if(!s(c))return 0;let{width:T}=s(c).getBoundingClientRect(),V=T/2;return x<V?V:x>l()-V?l()-V:x}let g=b(()=>f(n()));var m=zb(),h=w(m),_=w(h);return Co(_,()=>{var x;return(x=d())!=null?x:Yt}),y(h),St(h,x=>Y(c,x),()=>s(c)),y(m),St(m,x=>Y(a,x),()=>s(a)),N(()=>{ve(m,"style",`transform: translate(${s(g)}px, ${r()}px);`),ae(h,"active",i()),ae(h,"pointer",o())}),C(t,m),A({get active(){return i()},set active(x=!1){i(x),u()},get pointer(){return o()},set pointer(x=!1){o(x),u()},get translateXPx(){return n()},set translateXPx(x=0){n(x),u()},get translateYPx(){return r()},set translateYPx(x=0){r(x),u()},get containerWidth(){return l()},set containerWidth(x){l(x),u()},get children(){return d()},set children(x){d(x),u()},$set:L,$on:(x,T)=>M(e,x,T)})}var zu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var o_=t=>!!(Math.round(Math.abs(t)/90)%2),n_=t=>Math.abs(t)/90%4===1;var qb=U('<div class="preview svelte-1wqg760"></div>'),Kb=U('<div class="time svelte-1wqg760"> </div>'),Qb=U('<div class="timeline-preview svelte-1wqg760"><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),Gb={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 Wu(t,e){if(new.target)return E($({component:Wu},t));P(e,!0),se(t,Gb);let[i,o]=tt(),n=()=>k(x,"$rotateAlpha",i),r=()=>k(T,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=p(e,"time",7,""),a=p(e,"isMobile",7,!1),c=p(e,"videoEpisodes",23,()=>[]),f=p(e,"previewThumbsData",7),g=p(e,"progress",7,0),m=p(e,"duration",7,0),h=p(e,"isInteractive",7,!1),_=Fe(),x=_.ui.rotateAlpha,T=_.ui.playerSize,V=pe(0),D=pe(0),R=pe(""),B=pe(0),I=pe(0),z=pe(0),Q=pe(0),F=b(()=>zu(g(),m(),c())),G=b(()=>o_(n())),J=b(()=>n_(n())),ce=b(Se),ee=b(()=>(s(J)?1:-1)*(s(V)/2-s(D)/2)),Ce=b(()=>s(ee)*-1);lt(()=>{(ue=>(Y(V,Le(ue.width)),Y(D,Le(ue.height))))(ie())}),lt(()=>{(ue=>(Y(R,Le(ue.imgSrc)),Y(B,Le(ue.imgWidth)),Y(I,Le(ue.imgHeight)),Y(z,Le(ue.imgOffsetX)),Y(Q,Le(ue.imgOffsetY))))(be(g()))});function Se(){var et;let ue=a()?l.MOBILE:l.DESKTOP,{isVertical:le}=ne(),He=30;return(et=s(F))!=null&&et.text&&(He+=16),(le||s(G))&&(He+=18,He+=50),Math.min(Math.max(r().height-He,0),ue)}function ne(){let ue=f().frameWidth,le=f().frameHeight,He=le>ue;return{width:ue,height:le,isHorizontal:!He,isVertical:He}}function ie(){let{height:ue,isHorizontal:le,isVertical:He,width:et}=ne();return le&&(ue=ue/et*s(ce),et=s(ce)),He&&(et=et/ue*s(ce),ue=s(ce)),{width:et,height:ue}}function be(ue){let le;f().isUV?le=Math.floor(m()*ue/f().frequency):le=Math.min(f().countTotal,Math.max(0,Math.floor(f().countTotal*ue)));let He=Math.floor(le/f().countPerImage),et=Math.floor(le%f().countPerImage/f().countPerRow),dt=le%f().countPerRow,_e=Math.floor(f().countPerImage/f().countPerRow);!f().isUV&&He===Math.floor(f().countTotal/f().countPerImage)&&(_e=Math.floor(f().countTotal%f().countPerImage/f().countPerRow),f().countTotal%f().countPerImage%f().countPerRow>0&&_e++);let me=f().countPerRow;!f().isUV&&He===Math.floor(f().countTotal/f().countPerImage)&&f().countTotal%f().countPerImage>0&&(me=Math.min(f().countPerRow,f().countTotal%f().countPerImage));let Je=s(V)*me,mt=s(D)*_e,ge=-dt*s(V),je=-et*s(D);return{imgSrc:f().links[He],imgWidth:Je,imgHeight:mt,imgOffsetX:ge,imgOffsetY:je}}var j=Qb(),re=w(j);{var K=ue=>{var le=qb();N(()=>ve(le,"style",`width: ${s(V)}px; height: ${s(D)}px; background-image: url(${s(R)}); background-size: ${s(B)}px ${s(I)}px; background-position: ${s(z)}px ${s(Q)}px;
225
- transform: rotate(${n()}deg) ${s(G)?`translate(${s(ee)}px, ${s(Ce)}px)`:""};
226
- `)),C(ue,le)};q(re,ue=>{s(R)&&ue(K)})}var qe=H(re,2),Be=w(qe);{var fe=ue=>{var le=Xe(),He=Ee(le);{var et=_e=>{var me=dr();N(Je=>Pe(me,Je),[()=>X("tooltip_episode_unfinished")]),C(_e,me)},dt=_e=>{var me=dr();N(()=>Pe(me,s(F).text||"")),C(_e,me)};q(He,_e=>{h()&&s(F).completed===!1?_e(et):_e(dt,!1)})}C(ue,le)};q(Be,ue=>{s(F)&&ue(fe)})}y(qe);var Te=H(qe,2);{var Ye=ue=>{var le=Kb(),He=w(le,!0);y(le),N(()=>Pe(He,d())),C(ue,le)};q(Te,ue=>{h()||ue(Ye)})}y(j),N(()=>{ve(j,"style",`width: ${s(G)?s(D):s(V)}px;`),ae(j,"mobile",a())}),C(t,j);var Z=A({get time(){return d()},set time(ue=""){d(ue),u()},get isMobile(){return a()},set isMobile(ue=!1){a(ue),u()},get videoEpisodes(){return c()},set videoEpisodes(ue=[]){c(ue),u()},get previewThumbsData(){return f()},set previewThumbsData(ue){f(ue),u()},get progress(){return g()},set progress(ue=0){g(ue),u()},get duration(){return m()},set duration(ue=0){m(ue),u()},get isInteractive(){return h()},set isInteractive(ue=!1){h(ue),u()},$set:L,$on:(ue,le)=>M(e,ue,le)});return o(),Z}var Yb=U('<span class="time svelte-1jr6obn"> </span>'),jb=U("<!> <!>",1),Zb={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 qu(t,e){var vt;if(new.target)return E($({component:qu},t));P(e,!0),se(t,Zb);let[i,o]=tt(),n=()=>k(J,"$interactiveEpisodes$",i),r=()=>k(B,"$duration$",i),l=()=>k(R,"$position$",i),d=()=>k(Ce,"$isInteractiveExpectation$",i),a=()=>k(ee,"$isInteractiveTime$",i),c=()=>k(I,"$isLive$",i),f=()=>k(Q,"$isMobile",i),g=()=>k(z,"$isActiveLive$",i),m=()=>k(D,"$bufferedProgress$",i),h=()=>k(ie,"$disabledControls$",i),_=p(e,"showTimeline",7,!1),x=p(e,"ref",15,void 0),T=Fe(),V=oi(),D=T.state.bufferedProgress$,R=T.state.positionWithScrubbing$,B=T.state.duration$,I=T.state.isLive$,z=T.state.isActiveLive$,Q=T.ui.isMobile,F=V.features.episodes?T.actions.internal.getVideoEpisodes():void 0,G=T.actions.internal.getPreviewThumbsData(),J=T.state.interactiveEpisodes$,ce=T.state.isInteractive,ee=T.state.isInteractiveTime$,Ce=T.state.isInteractiveExpectation$,Se=T.actions.internal.correctSeekTimeToInteractive,ne=(vt=T.callbacks)==null?void 0:vt.onDisabledTimelineClick,ie=T.ui.controls.disabledControls$,be=T.ui.t,j=V.features.interactiveResponsiveUi,re=b(()=>ce?n():F),K=b(()=>fr(r())),qe=b(()=>fr(l())),Be=b(()=>l()/r()),fe=b(()=>d()||a()),Te=pe(!1),Ye=pe(""),Z=pe(0),ue=pe(0),le=pe(0),He=b(()=>({containerWidth:s(ue),translateXPx:s(Z),translateYPx:ce&&G?-36:-16,active:s(Te)&&_()&&!s(fe)&&!j,pointer:!V.features.timelinePreview||!G||c()})),et=be("aria_timeline"),dt=b(()=>be("aria_timeline_value",{position:s(qe),duration:s(K)}));function _e(Ne){return!Se||!ce?Ne:Se(Ne*r())/r()}function me(Ne){T.actions.internal.startScrubbing(_e(Ne))}function Je(Ne){a()||T.actions.internal.progressScrubbing(_e(Ne))}function mt(Ne){T.actions.internal.completeScrubbing(_e(Ne)),Y(Te,!1)}function ge(Ne,yt,he){te(Ne,yt,he),Y(Te,!0)}function je(Ne,yt,he){te(Ne,yt,he),Y(Te,!0)}function Tt(){Y(Te,!1)}function te(Ne,yt,he){Y(le,Le(_e(Ne))),Y(Z,Le(yt)),he&&Y(ue,Le(he)),Y(Ye,Le(it(Ne)))}function it(Ne){let yt=fr((c()?1-Ne:Ne)*r());return c()?`-${yt}`:yt}var bt=jb(),gt=Ee(bt);Uu(gt,xs(()=>s(He),{children:(Ne,yt)=>{var he=Xe(),Ft=Ee(he);{var Qt=Ke=>{Wu(Ke,{get time(){return s(Ye)},get isMobile(){return f()},get videoEpisodes(){return s(re)},previewThumbsData:G,get progress(){return s(le)},get duration(){return r()},isInteractive:ce})},ti=Ke=>{var ut=Yb(),$t=w(ut,!0);y(ut),N(()=>Pe($t,s(Ye))),C(Ke,ut)};q(Ft,Ke=>{V.features.timelinePreview&&G&&!c()?Ke(Qt):Ke(ti,!1)})}C(Ne,he)},$$slots:{default:!0}}));var xe=H(gt,2);let Me=b(()=>Math.round(s(Be)*100)),we=b(()=>h().has("TIMELINE"));Zs(xe,{className:"timeline-slider",get isActiveLive(){return g()},get isMobile(){return f()},ariaLabel:et,ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return s(Me)},get ariaValueText(){return s(dt)},get loadedProgress(){return m()},get filledProgress(){return s(Be)},get handleProgress(){return s(Be)},get videoEpisodes(){return s(re)},onPointerDown:me,onHandleMove:Je,onPointerMove:je,onPointerUp:mt,onPointerEnter:ge,onPointerLeave:Tt,onDisabledClick:ne,isInteractive:ce,get disabled(){return s(we)},get hideHandel(){return a()},get ref(){return x()},set ref(Ne){x(Ne)}}),C(t,bt);var Ze=A({get showTimeline(){return _()},set showTimeline(Ne=!1){_(Ne),u()},get ref(){return x()},set ref(Ne=void 0){x(Ne),u()},$set:L,$on:(Ne,yt)=>M(e,Ne,yt)});return o(),Ze}var Xb={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 Bl(t,e){if(new.target)return E($({component:Bl},t));P(e,!0),se(t,Xb);let[i,o]=tt(),n=()=>k(a,"$isMobile",i),r=p(e,"position",7,0),l=p(e,"duration",7,0),d=Fe(),a=d.ui.isMobile,c=d.ui.t,f=b(()=>fr(l())),g=b(()=>fr(r())),m=b(()=>r()/l()),h=b(()=>c("aria_timeline_value",{position:s(g),duration:s(f)})),_=b(()=>Math.round(s(m)*100));Zs(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return s(_)},get ariaValueText(){return s(h)},get filledProgress(){return s(m)},hideHandel:!0,get squareBorders(){return n()}});var x=A({get position(){return r()},set position(T=0){r(T),u()},get duration(){return l()},set duration(T=0){l(T),u()},$set:L,$on:(T,V)=>M(e,T,V)});return o(),x}var Jb=U('<div class="timeline svelte-1gqonyf"><!></div>'),ey=U('<div class="timeline-stub svelte-1gqonyf"></div>'),ty={hash:"svelte-1gqonyf",code:".timeline.svelte-1gqonyf {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1gqonyf {height:16px;padding:6px 12px 7px;margin-top:6px;}.timeline-stub.svelte-1gqonyf {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1gqonyf {height:8px;}"};function Dl(t,e){if(new.target)return E($({component:Dl},t));P(e,!0),se(t,ty);let[i,o]=tt(),n=()=>k(_,"$isLive$",i),r=()=>k(V,"$isMobile",i),l=()=>k(T,"$adPosition",i),d=()=>k(x,"$adDuration",i),a=p(e,"isAds",7,!1),c=p(e,"canRewindLive",7),f=p(e,"isRewindableLive",7),g=p(e,"isHidden",7,!1),m=p(e,"ref",15,void 0),h=Fe(),_=h.state.isLive$,x=h.ads.duration,T=h.ads.position,V=h.ui.isMobile,D=b(()=>!g()&&(!n()||n()&&c()&&f()||a()));var R=Xe(),B=Ee(R);{var I=F=>{var G=Jb(),J=w(G);{var ce=Ce=>{Bl(Ce,{get position(){return l()},get duration(){return d()}})},ee=Ce=>{qu(Ce,{get showTimeline(){return s(D)},get ref(){return m()},set ref(Se){m(Se)}})};q(J,Ce=>{a()?Ce(ce):Ce(ee,!1)})}y(G),N(()=>ae(G,"mobile",r())),C(F,G)},z=F=>{var G=ey();N(()=>ae(G,"mobile",r())),C(F,G)};q(B,F=>{s(D)?F(I):F(z,!1)})}C(t,R);var Q=A({get isAds(){return a()},set isAds(F=!1){a(F),u()},get canRewindLive(){return c()},set canRewindLive(F){c(F),u()},get isRewindableLive(){return f()},set isRewindableLive(F){f(F),u()},get isHidden(){return g()},set isHidden(F=!1){g(F),u()},get ref(){return m()},set ref(F=void 0){m(F),u()},$set:L,$on:(F,G)=>M(e,F,G)});return o(),Q}var r_=require("@vkontakte/videoplayer-shared/es2015");var iy=Re('<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 Ku(t,e){if(new.target)return E($({component:Ku},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=iy();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(3),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var oy=Re('<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 Qu(t,e){if(new.target)return E($({component:Qu},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=oy();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var ny=U('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),ry=U('<span class="text svelte-1yhs2ga"> </span>'),sy=U('<span class="text count svelte-1yhs2ga"> </span>'),ay=U("<!> <!>",1),ly={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 Ol(t,e){var ne,ie,be;if(new.target)return E($({component:Ol},t));P(e,!0),se(t,ly);let[i,o]=tt(),n=()=>k(_,"$currentGridType$",i),r=()=>k(x,"$openedByKeyboard$",i),l=()=>k(T,"$panelOpened$",i),d=()=>k(V,"$isMobile",i),a=p(e,"position",7,0),c=p(e,"duration",7,0),f=p(e,"timeCodes",23,()=>[]),g=Fe(),m=(ie=(ne=g.callbacks)==null?void 0:ne.onEpisodeChanged)!=null?ie:r_.noop,h=!!((be=g.callbacks)!=null&&be.onEpisodeClicked),_=g.ui.currentGridType$,x=g.ui.episodes.openedByKeyboard$,T=g.ui.episodes.panelOpened$,V=g.ui.isMobile,D=g.ui.t,R=pe(void 0),B=j=>{var K,qe,Be;if(!!((K=g.callbacks)!=null&&K.onEpisodeClicked)){let fe=qs(j);x.set(fe),T.set(!0),(Be=(qe=g.callbacks)==null?void 0:qe.onEpisodeClicked)==null||Be.call(qe,fe)}},I=pe(null),z=b(()=>a()/c());lt(()=>{var re;let j=zu(s(z),c(),f());j?((re=s(I))==null?void 0:re.time)!==j.time&&(m(j),Y(I,Le(j))):Y(I,null)});let Q=b(()=>{var j;return((j=s(I))==null?void 0:j.text)||""}),F=b(()=>Ji(n(),"xl")?"FULL":Ji(n(),"m")&&e_(n(),"xl")?"COUNT":"SHORT"),G=b(()=>`${D("tooltip_episodes")}: ${s(Q)}`),J=(j,re,K)=>Ct(this,null,function*(){yield xo(),(j==null?void 0:j.getAttribute("aria-expanded"))==="false"&&re&&!K&&Pt(()=>{x.set(!1),j.focus()})});lt(()=>{J(s(R),r(),l())});var ce=Xe(),ee=Ee(ce);{var Ce=j=>{let re=b(()=>d()?"px-0":"");Wt(j,{get className(){var K;return`w-max btn-full-opacity btn-jc-l ${(K=s(re))!=null?K:""}`},testId:"btn-episodes",click:B,disabled:!h,get ariaExpanded(){return l()},get ariaLabel(){return s(G)},get ref(){return s(R)},set ref(K){Y(R,Le(K))},children:(K,qe)=>{var Be=Xe(),fe=Ee(Be);{var Te=Z=>{var ue=ny(),le=Ee(ue),He=w(le,!0);y(le);var et=H(le,2),dt=w(et);Qu(dt,{}),y(et),N(()=>Pe(He,s(Q))),C(Z,ue)},Ye=Z=>{var ue=ay(),le=Ee(ue);Ku(le,{});var He=H(le,2);{var et=_e=>{var me=ry(),Je=w(me,!0);y(me),N(()=>Pe(Je,s(Q))),C(_e,me)},dt=_e=>{var me=Xe(),Je=Ee(me);{var mt=ge=>{var je=sy(),Tt=w(je,!0);y(je),N(()=>Pe(Tt,f().length)),C(ge,je)};q(Je,ge=>{s(F)==="COUNT"&&ge(mt)},!0)}C(_e,me)};q(He,_e=>{s(F)==="FULL"?_e(et):_e(dt,!1)})}C(Z,ue)};q(fe,Z=>{d()?Z(Te):Z(Ye,!1)})}C(K,Be)},$$slots:{default:!0}})};q(ee,j=>{s(I)&&j(Ce)})}C(t,ce);var Se=A({get position(){return a()},set position(j=0){a(j),u()},get duration(){return c()},set duration(j=0){c(j),u()},get timeCodes(){return f()},set timeCodes(j=[]){f(j),u()},$set:L,$on:(j,re)=>M(e,j,re)});return o(),Se}var g_=require("@vkontakte/videoplayer-shared/es2015");var ci=require("@vkontakte/videoplayer-core/es2015"),Et=require("@vkontakte/videoplayer-shared/es2015"),ds=require("@vkontakte/videoplayer-statistics/es2015");var ot=require("@vkontakte/videoplayer-shared/es2015"),eo=require("@vkontakte/videoplayer-shared/es2015");var s_=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var dy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Gu=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 eo.Subject,loadStarted$:new eo.Subject,loadEnded$:new eo.Subject,loadError$:new eo.Subject,ready$:new eo.Subject,slotRequested$:new eo.Subject,started$:new eo.Subject,timeRemained$:new eo.Subject,paused$:new eo.Subject,resumed$:new eo.Subject,ended$:new eo.Subject,empty$:new eo.Subject,skipped$:new eo.Subject,clicked$:new eo.Subject,closed$:new eo.Subject,error$:new eo.Subject};this.loadAdman=e=>(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,ot.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,ot.now)()]}),i(),this.events.loadEnded$.next()):(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,ot.now)()]}),o())};(0,eo.addScript)(dy,e,this.loadTimeout).then(()=>{ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,ot.now)()]}),window.AdmanHTML?(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,ot.now)()]}),i(),this.events.loadEnded$.next()):(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,ot.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,ot.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,ot.now)()]}),i(),this.events.loadEnded$.next()):(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,ot.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,ot.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,ot.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,ot.now)()]}),!d&&(window.AdmanHTML?(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,ot.now)()]}),i(),this.events.loadEnded$.next()):(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,ot.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,ot.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,ot.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"}),De(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;ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ot.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;ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ot.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(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,ot.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;ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ot.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ot.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ot.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;ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ot.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")=>{ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,ot.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,ot.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 R;if(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,ot.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:r,adsContainer:l,adsVideoElement:d,slotId:a,params:c={},duration:f,previewParam:g}=e,m,h=this.playerState&&De(this.playerState.vsid);h&&(this.isVsidOriginal?m=h:m=parseInt(h,36));let{isEmbed:_,immediateOrigin:x}=(0,ot.detectEmbed)(),T=(R=_?x:window.location.href)!=null?R:window.location.href,V=zt($(zt($({},c),{dl:encodeURIComponent(T),autoplay:r?1:0,player_width:i,player_height:o,preview:g}),m?{request_id:m}:{}),{duration:f,puid10:s_(i,o),puid11:n?0:1});g||delete V.preview;let D={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:V,browser:{mobile:!1}};try{let B=new window.AdmanHTML;B.setDebug(!1),B.onReady(this.onAdsReady),B.onStarted(this.onAdStarted),B.onPlayed(this.onAdPlayed),B.onPaused(this.onAdPaused),B.adMidrollPoint(this.onAdMidrollPoint),B.onClosed(this.onAdClosed),B.onSkipped(this.onAdSkipped),B.onClicked(this.onAdClicked),B.onTimeRemained(this.onAdTimeRemained),B.onCompleted(this.onAdCompleted),B.onError(this.onAdError),B.init(D),this.adman=B,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(D)}`})}catch(B){ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(B)],numbers:[(0,ot.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,ot.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 l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(r=(n=this.actions).switchFromAdsToVideo)==null||r.call(n,!i)}}togglePlay(){var e;if(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ot.now)()]}),this.adsState){this.log({message:"toggle play"});let i=De(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(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,ot.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(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ot.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(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ot.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(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ot.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(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ot.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;ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,ot.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.destroy(),this.videoElement&&(0,eo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var a_=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 Ym=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 r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let c=new Yu,{startTime:f,endTime:g}=c.parse(a);l.startTime=f,l.endTime=g}else if(a.trim()!==""){let c=new jm,{texts:f}=c.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Yu=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 r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},jm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let c=["<",">"].reduce((f,g)=>{let m=l.indexOf(g,d);return f===-1||f>m?m:f},-1);if(c===-1){a.push(l.substring(d));break}a.push(l.substring(d,c)),d=c+1}return a}}),r=new Yu;for(let l of n)r.isTime(l)?i.texts.push({type:"timestamp",value:r.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},l_=Ym;var Zu=require("@vkontakte/videoplayer-shared/es2015"),Ma,Pi,Zm=0,Xm=!1,d_="",c_=(t,e=0,i=0)=>t<e&&t<i,ju=(t,e=0,i=0)=>t>=e&&t<=i,cy=(t,e=0,i=0)=>t>e&&t>i,u_=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:c,endTime:f})=>ju(t,c,f));let r=t>=Zm,l=t<Zm;if(Zm=t,l&&(Xm=!1),(0,Zu.isNonNullable)(Ma)&&ju(t,Ma.startTime,Ma.endTime)&&d_===e.value)return Ma;if(!(0,Zu.isNonNullable)(Pi)&&(n!=null&&n.length)&&!Xm){Pi=n.find(({startTime:c,endTime:f})=>ju(t,c,f)||r&&c_(t,c,f)),Ma=void 0,!(0,Zu.isNonNullable)(Pi)&&n[n.length-1].endTime<t&&(Xm=!0);return}else{if(ju(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return Ma=Pi,Pi=void 0,d_=e.value,Ma;(r&&cy(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||l&&c_(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=void 0)}};var p_={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"},uy={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"},Xu=t=>{var e,i;return(i=(e=p_[t])!=null?e:p_[uy[t]])!=null?i:void 0};var f_=require("@vkontakte/videoplayer-shared/es2015"),OD=require("@vkontakte/videoplayer-statistics/es2015"),Ju=class{constructor(e,i=new f_.Subscription){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var qd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(qd||{});var ls=t=>t!=null?t:0,Hl=(t,e)=>{var n,r;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(ls(i==null?void 0:i.top)-ls(o==null?void 0:o.top)),left:Math.round(ls(i==null?void 0:i.left)-ls(o==null?void 0:o.left)),bottom:Math.round(ls(i==null?void 0:i.bottom)-ls(o==null?void 0:o.top)),right:Math.round(ls(i==null?void 0:i.right)-ls(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:ls(e==null?void 0:e.width),height:ls(e==null?void 0:e.height)}};var m_=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:c,videoEpisodes:f,previewThumbsData:g,uiConfig:m,coreConfig:h,player:_,disabledControls:x,isInteractive:T,interactiveRanges$:V,isInteractiveTime$:D,replayInteractive:R,stopPlayer:B,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:z,additionalButtons:Q,additionalSettingsMenuItems:F,additionalContextMenuItems:G,playPrevVideo:J,playNextVideo:ce,looped:ee=!1,statistics:Ce,saveRate:Se,internalsExposure:ne})=>{var gc,fd,hc;let ie=zt($({},h),{configName:[...(gc=h.configName)!=null?gc:[],"ui"],isAudioDisabled:l,live:zt($({},(fd=h.live)!=null?fd:{}),{isLiveCatchUpMode:!!n})}),be=m,j=Et.Tracer.createRootTracer(be.features.saveTraceInfoToFile),re=j.createComponentTracer("Store"),K=_||new ci.Player(ie,j);ne==null||ne.expose({corePlayer:K});let qe=new Et.Logger,Be=new Gu(qe,{loadTimeout:be.ads.loadTimeout,initTimeout:be.ads.initTimeout,runtimeTimeout:be.ads.runtimeTimeout,useAdmanFromNPM:be.ads.useAdmanFromNPM,volumeMultiplier:be.ads.volumeMultiplier,isVsidOriginal:be.ads.isVsidOriginal}),fe=Sa.getInstance(),Te=c==null?void 0:c.pictureInPictureApi,Ye=c==null?void 0:c.annotationsApi,Z=qe.createComponentLog("Store"),ue,le,He={},et=new Qc,dt=Ce?ri(Ce.oneStat.vsid$):pr(void 0),_e=Ie(Us()),me=Ie(!1),Je=(hc=Te==null?void 0:Te.info.isActive$)!=null?hc:new Et.ValueSubject(!1),mt=Ie(0),ge=Ie([]),je=(0,Et.merge)(K.events.fatalError$,K.events.managedError$).subscribe(v=>ge.update(S=>[...S,v])),Tt=pr(!1,v=>{let S=K.events.fatalError$.subscribe(()=>v(!0));return()=>S.unsubscribe()}),te=v=>Ct(void 0,null,function*(){var Ae;let S=Object.values(Et.InterfaceLanguage).includes(v);if(be.downloadVKLanguages&&(S&&be.updateBuiltinLanguages||!Mm(v))){let st;try{st=yield(0,Et.loadVKLangPack)(v,ih,oh)}catch(ye){(Ae=Ce==null?void 0:Ce.oneStat)==null||Ae.logError({errorType:"VKLangPack",fatal:!1}),fe==null||fe.report(ye,{errorType:"VKLangPack",fatal:!1})}st&&(Am({language:v,pack:st,fallback:be.defaultLanguage}),it.set(v))}Mm(v)&&it.set(v)}),it=Ie(t),bt=Ie(e);te(t);let gt=(v,S)=>{let W=De(it);return Lm(W,v,S,be.defaultLanguage)},xe=Ie("thumb"),Me=(()=>{let v=_i([Tt,xe],([S,W])=>S?"crashed":W);return zt($({},v),{is:S=>De(v)===S})})(),we=(()=>{let v=Ie(new Set(x));return zt($({},v),{add:S=>{v.update(W=>new Set([...W].concat(S)))},remove:S=>{v.update(W=>{let Ae=[...W];return new Set(Array.isArray(S)?Ae.filter(st=>!S.includes(st)):Ae.filter(st=>st!==S))})},includes:S=>{let W=De(v);return Array.isArray(S)?S.every(Ae=>W.has(Ae)):W.has(S)}})})();re.log("create store"),Z({message:"create store"});let Ze=v=>{let S=v.container;S.append(K.experimental.element$.getValue()),ti=new MutationObserver(W=>{let{removedNodes:Ae}=W[0];Ae.length&&S.append(K.experimental.element$.getValue())}),ti.observe(S,{childList:!0})},vt=v=>{Z({message:`init video, config: ${JSON.stringify(v)}`}),T?Ze(v):(Et.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,Et.now)()]}),K.initVideo(v)),re.log("init video",{isInteractive:T}),v.subtitles&&K.setExternalTextTracks(v.subtitles),ue=v},Ne=new Et.Subject,yt=v=>Ne.next(v),he=new Et.Subject,Ft=new Et.Subject,Qt=new Et.Subject,ti=null,Ke={actionRewind$:he,actionSeek$:Ft,inPiP$:Je,inFullscreen$:new Et.Observable(v=>_e.subscribe(S=>v.next(S))),actionSetSubtitle$:Qt,nextMovie$:Ne};if(Ce){let{oneStat:v,statSubscription:S}=Ce;T||S.add(v.attachTo(K)),S.add(v.attachToUi(Ke)),S.add(v.attachToAds(Be.events)),v.authorize(r).catch(W=>{Z({message:`onestat auth error ${String(W)}`})})}if(fe){let v=new Et.Subscription,S=(W,Ae)=>v.add(W.subscribe(Ae));if(S(K.events.managedError$,W=>{fe.logIError(W)}),S(K.events.fatalError$,W=>{fe.logIError(W,!0)}),Ce){let{oneStat:W}=Ce;S(W.experimental.error$,Ae=>{fe.logIError(Ae)})}fe.sentrySubscription.add(v)}let ut=()=>{ci.clientChecker.device.isIOS&&le&&Oh(le).catch(v=>{Z({message:`exitIosSafariFullscreen failed: ${v}`})})},$t=new Et.Subscription().add(K.experimental.element$.subscribe(v=>{v&&(le=v,v.classList.add("player-media"),Ia(Te)&&(Te.updateVideoElement(),Te.registryEventHandlers()),T&&v.setAttribute("pip","false"))})).add(K.events.ended$.subscribe(()=>{var v;ut(),(v=a==null?void 0:a.onEnded)==null||v.call(a)})).add(K.events.looped$.subscribe(()=>{var v;(v=a==null?void 0:a.onLooped)==null||v.call(a)})).add(K.events.started$.subscribe(()=>Ct(void 0,null,function*(){var S,W;Ia(Te)&&(yield Te==null?void 0:Te.revealPictureInPicture());let v=K.info.muted$.getValue();(S=a==null?void 0:a.onStarted)==null||S.call(a),(W=He.onStarted)==null||W.call(He,v)}))).add(K.events.willSeek$.subscribe(({from:v,to:S})=>{var W;(W=a==null?void 0:a.onSeek)==null||W.call(a,v,S)})).add(K.events.autoplaySoundProhibited$.subscribe(()=>{var v;(v=a==null?void 0:a.onAutoplaySoundProhibited)==null||v.call(a)})).add(K.info.position$.subscribe(v=>{var W;let S=K.info.duration$.getValue();isFinite(S)&&S>0&&((W=a==null?void 0:a.onTimeupdate)==null||W.call(a,S,v),Be.setPosition(v,S))})).add(K.events.fatalError$.subscribe(v=>{var S;(S=a==null?void 0:a.onCrashed)==null||S.call(a,v?`${v.id}: ${v.message}`:void 0)})).add(K.events.fetcherRecoverableError$.subscribe(v=>{var S;(S=a==null?void 0:a.onRecoverableError)==null||S.call(a,v?`${v.id}: ${v.message}`:void 0)})).add(K.events.loadedMetadata$.subscribe(()=>{Vt.state.loadedMetadata$.set(!0)})).add(K.info.is3DVideo$.subscribe(v=>{Vt.ui.is3DVideo.set(v)})).add(K.info.isEnded$.subscribe(v=>{T&&(v?(D!=null&&D.getValue()&&we.add(Bd),we.add("PLAY_BUTTON")):we.remove("PLAY_BUTTON"))})).add(K.info.liveTime$.subscribe(v=>{var S;(S=a==null?void 0:a.onLiveTime)==null||S.call(a,v)})).add(K.info.isStalled$.subscribe(v=>{var S;(S=a==null?void 0:a.onStalledChanged)==null||S.call(a,v)})).add(K.info.isLiveEnded$.subscribe(v=>{var S;return v&&((S=a==null?void 0:a.onLiveEnded)==null?void 0:S.call(a))})).add(Be.events.loadStarted$.subscribe(()=>{var v,S;return(S=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onLoadStarted)==null?void 0:S.call(v)})).add(Be.events.loadEnded$.subscribe(()=>{var v,S;return(S=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onLoadEnded)==null?void 0:S.call(v)})).add(Be.events.loadError$.subscribe(()=>{var v,S;return(S=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onLoadError)==null?void 0:S.call(v)})).add(Be.events.init$.subscribe(()=>{var v,S;return(S=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onInit)==null?void 0:S.call(v)})).add(Be.events.ready$.subscribe(()=>{var v,S;return(S=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onReady)==null?void 0:S.call(v)})).add(Be.events.started$.subscribe(v=>{var S,W;return(W=(S=a==null?void 0:a.adsInfo)==null?void 0:S.onStarted)==null?void 0:W.call(S,v)})).add(Be.events.timeRemained$.subscribe(v=>{var S,W;return(W=(S=a==null?void 0:a.adsInfo)==null?void 0:S.onTimeRemained)==null?void 0:W.call(S,v)})).add(Be.events.ended$.subscribe(v=>{var S,W;return(W=(S=a==null?void 0:a.adsInfo)==null?void 0:S.onCompleted)==null?void 0:W.call(S,v)})).add(Be.events.empty$.subscribe(()=>{var v,S;return(S=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onEmpty)==null?void 0:S.call(v)})).add(Be.events.clicked$.subscribe(v=>{var S,W;return(W=(S=a==null?void 0:a.adsInfo)==null?void 0:S.onClicked)==null?void 0:W.call(S,v)})).add(Be.events.closed$.subscribe(v=>{var S,W;return(W=(S=a==null?void 0:a.adsInfo)==null?void 0:S.onClosed)==null?void 0:W.call(S,v)})).add(Be.events.error$.subscribe(v=>{var S,W;return(W=(S=a==null?void 0:a.adsInfo)==null?void 0:S.onError)==null?void 0:W.call(S,v)})).add(Be.events.paused$.subscribe(()=>{var v,S;return(S=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onPaused)==null?void 0:S.call(v)})).add(Be.events.resumed$.subscribe(()=>{var v,S;return(S=(v=a==null?void 0:a.adsInfo)==null?void 0:v.onResumed)==null?void 0:S.call(v)})),Mt=new Et.Subscription,Qe=()=>{var ye,at,kt;let{debugLog:v}=be,S,W="#9df7b7",Ae="#efd169";if(v&&v!==!0){let{colors:Ht}=v;S=v.tag,W=(ye=Ht==null?void 0:Ht[0])!=null?ye:W,Ae=(kt=(at=Ht==null?void 0:Ht[1])!=null?at:Ht==null?void 0:Ht[0])!=null?kt:Ae}let st=S?`: ${S}`:"";Mt.add(K.events.log$.subscribe(Ht=>{console.debug(`%c sdk${st} `,`background:${W};`,`sdk component: ${Ht.component}`,Ht.message)})).add(qe.log$.subscribe(Ht=>{console.debug(`%c ui${st} `,`background:${Ae};`,`ui component: ${Ht.component}.`,Ht.message)}))},Gt=()=>{Mt.unsubscribe()},si=(v,S)=>{re.log("start camera manual rotation",{mx:v,my:S}),K.startCameraManualRotation(v,S)},ai=(v=!1)=>{re.log("stop camera manual rotation",{immediate:v}),K.stopCameraManualRotation(v)},bi=(v,S,W)=>{re.log("move camera focus px",{xpx:v,ypx:S,dt:W}),K.moveCameraFocusPX(v,S,W)},ht=()=>{K.holdCamera()},_t=()=>{K.releaseCamera()},pt=pr(K.info.position$.getValue(),v=>{let S,W,Ae=()=>{let st=K.info.playbackState$.getValue(),ye=K.info.isLive$.getValue(),at=K.info.duration$.getValue(),kt=K.info.position$.getValue();if(st&&[ci.PlaybackState.PLAYING,ci.PlaybackState.PAUSED].includes(st)){let Ht=ye?kt-at:K.getExactTime();Ht!==W&&v(Ht),W=Ht}S=requestAnimationFrame(Ae)};return Ae(),()=>cancelAnimationFrame(S)}),O=ri(K.info.playbackState$),ei=ri(K.info.currentBuffer$),ui=ri(K.info.isEnded$),Ai=ri(K.info.isLive$),pi=be.features.playbackRate?ri(K.info.canChangePlaybackSpeed$):pr(!1),Ti=ri(K.info.liveBufferTime$),Ii=ri(K.info.volume$),vo=ri(K.info.muted$),di=Gc(K.info.predefinedQualityLimitType$.pipe((0,Et.map)(v=>v===ci.PredefinedQualityLimits.TRAFFIC_SAVING)),K.info.predefinedQualityLimitType$.getValue()===ci.PredefinedQualityLimits.TRAFFIC_SAVING),To=Gc(K.info.predefinedQualityLimitType$.pipe((0,Et.map)(v=>v===ci.PredefinedQualityLimits.HIGH_QUALITY)),K.info.predefinedQualityLimitType$.getValue()===ci.PredefinedQualityLimits.HIGH_QUALITY),$n=ri(K.info.autoQualityLimitingAvailable$),vr=ri(K.info.availableQualities$),On=ri(K.info.availableQualitiesFps$),Fo=ri(K.info.chromecastState$),nt=ri(K.info.chromecastDeviceName$),Rt=ri(K.info.currentFormat$),go=ri(K.info.throughputEstimation$),Lo=ri(K.info.videoBitrate$),Uo=ri(K.info.intrinsicVideoSize$),Wi=ri(K.info.duration$),Dt=ri(K.info.isAudioAvailable$),Mi=null,qi=K.info.isBuffering$,Vo=pr(qi.getValue(),v=>{let S=qi.subscribe(W=>{W&&Mi===null?Mi=window.setTimeout(()=>{v(qi.getValue()),Mi=null},be.loaderDelay):v(W)});return()=>{S.unsubscribe(),Mi&&clearTimeout(Mi)}}),Xt=()=>{Mi&&clearTimeout(Mi),Mi=null},io=_i([Wi,Ai],([v,S])=>S?-v:v),ho=_i([O],([v])=>v===ci.PlaybackState.PLAYING),fi=ri(K.info.atLiveEdge$),Hn=ri(K.info.atLiveDurationEdge$),an=ri(K.info.position$),_o=_i([an,Wi],([v,S])=>isFinite(v)&&isFinite(S)&&!!S),mi=_i([Fo],([v])=>v===ci.ChromecastState.CONNECTED),Fn=ri(K.info.availableVideoStreams$),Un=be.features.audioLanguages?ri(K.info.availableAudioStreams$):pr([]),Ro=ri(K.info.currentVideoStream$),zn=ri(K.info.currentAudioStream$),zo=v=>{v.language&&Pm(v.language),K.setVideoStream(v)},oo=v=>{v.language&&Pm(v.language),K.setAudioStream(v)},qr=v=>{let S;if(v.length===1&&(S=v.at(0)),S!=null||(S=v.find(Ae=>"isDefault"in Ae&&Ae.isDefault)),S)return S;let W=Ih();return W&&(S=v.find(({language:Ae})=>W===Ae)),S!=null||(S=v.at(0)),S},Wo=!1;$t.add(K.info.availableAudioStreams$.subscribe(v=>{if(!Wo&&v.length){let S=qr(v);S&&(K.setAudioStream(S),Wo=!0)}}));let gr=!1;$t.add(K.info.availableVideoStreams$.subscribe(v=>{if(!gr&&v.length){let S=qr(v);S&&(K.setVideoStream(S),gr=!0)}}));let ln=Ie(void 0),hr=ri(K.info.isAutoQualityEnabled$,v=>v&&ln.set(void 0)),_r=ri(K.info.currentQuality$,()=>ln.set(void 0)),$r=_i([ln,_r],([v,S])=>v!=null?v:S),Wn=_i(Rt,v=>v!==ci.VideoFormat.MPEG),Io=_i([vr,On,hr,$r,Wn],([v,S,W,Ae,st])=>{let ye=[];st&&ye.push({value:"auto",displayValue:gt("auto_quality_option"),selected:W});let at=v.filter(kt=>!(0,Et.isInvariantQuality)(kt));for(let kt of at){let Ht=S[kt];ye.push({value:kt,displayValue:`${kt}${Ht?a_(Ht):""}`,selected:W?!1:kt===Ae})}return ye}),qn=ri(K.info.currentPlaybackRate$),Kn=_i([qn,fi,Hn],([v,S,W])=>{let Ae=W||T?1:be.controls.playbackRateMin,st=S?1:be.controls.playbackRateMax,ye=be.controls.playbackRateStep,at=[];for(let kt=Ae;kt<=st;kt+=ye)at.push({value:kt,displayValue:kt===1?gt("playback_rate_1"):gt("playback_rate",{multiplier:kt.toString(10)}),selected:v===kt});return at}),Li={displayValue:gt("subtitles_off"),value:"off"},$o=Ie($({},Li)),bn=be.features.subtitles?ri(K.info.availableTextTracks$):pr([]),yn=_h(),Qn=_i([bn,$o],([v,S],W)=>{var ye;let Ae=[],st=v.find(({id:at})=>at===S.value);if(st!=null&&st.url){let[,at]=(ye=yn.find(st.url))!=null?ye:[];if(at){W(at);return}et.download(st.url).then(kt=>{if(!kt||et.isDestroyed())return;let Ht=new l_,no=st.language;if(no){let j_=!!st.isAuto,Z_=Ht.parse(kt,no);Ae.push({lang:no,subtitles:Z_,isAuto:j_,id:st.id})}yn.add(st.url,Ae),De($o).value===S.value&&W(Ae)}).catch(kt=>{var Ht;(Ht=Ce==null?void 0:Ce.oneStat)==null||Ht.logError({errorType:"Subtitles download",fatal:!1}),fe==null||fe.report(kt,{errorType:"Subtitles download",fatal:!1})})}W(Ae)}),Gn=_i([qn,ho,$o],([v,S,W],Ae)=>{let at;if(K.info.isLive$.getValue()&&S&&W.value!==Li.value){let Ht=()=>{let no=1e3/(3*v);at=setTimeout(Ht,no),Ae(Date.now())};return Ht(),()=>clearTimeout(at)}}),dn=_i([bn,$o],([v,S])=>{if(!v.length)return[];let W=[];for(let{language:Ae,isAuto:st,id:ye}of v){let at=Ae&&Xu(Ae);Ae&&at&&W.push({displayValue:st?gt("subtitles_auto",{language:at}):at,value:ye,selected:(S==null?void 0:S.value)===ye,isAuto:st})}return W.length?(W.unshift(zt($({},Li),{selected:(S==null?void 0:S.value)===Li.value})),W):[]}),Di={available:[],prev:[]},xn=()=>{var S,W;let v=K.experimental.getCurrentTime$.getValue();return(W=(S=v==null?void 0:v())!=null?S:le==null?void 0:le.currentTime)!=null?W:0},wt=_i([pt,$o,Qn,Gn],([v,S,W,Ae])=>{var ye;let st=K.info.isLive$.getValue();if(st&&Di.prev!==W){let at=W.find(({id:Ht})=>Ht===S.value),kt=Di.prev.find(({id:Ht})=>Ht===S.value);if(at){let Ht=zt($({},at),{subtitles:[...(ye=kt==null?void 0:kt.subtitles)!=null?ye:[],...at.subtitles]});Di.available=[Ht],Di.prev=W}}if(S&&S.value!==Li.value){let at=st?xn():v,kt=st?Di.available:W;return u_(at,S,kt,st)}}),Yn=_i([wt],([v])=>v!=null&&v.texts?v.texts:[]),br=Ie(!0),jn=_i([ei,io,an,Ti],([v,S,W,Ae])=>{var kt;let st=(kt=v==null?void 0:v.end)!=null?kt:0;if(!Ae)return st/S;let at=-W+Ae-S;return(st-at)/S}),cn=ri(K.info.availableSources$),yr=_i([cn],([v])=>Object.keys((v==null?void 0:v[ci.VideoFormat.MPEG])||{}).length>0),qo=()=>{var W,Ae,st;let v=Object.keys(((Ae=(W=K.info.availableSources$)==null?void 0:W.getValue())==null?void 0:Ae[ci.VideoFormat.MPEG])||{}),S=(0,Et.getHighestQuality)(v)||Et.VideoQuality.Q_144P;return(st=ue.sources[ci.VideoFormat.MPEG])==null?void 0:st[S]},Kr=()=>{var S;let v=qo();if(v)re.log("download video",{url:v}),vh(v,((S=ue==null?void 0:ue.meta)==null?void 0:S.title)||"video");else{let W="There is no URL for download video";re.log("download video",{message:W}),Z({message:W})}},Zn=()=>{Z({message:"toggle muted"});let v=K.info.muted$.getValue();K.info.volume$.getValue()===0&&!v?Ko(ko()):ao(!v)},xr=()=>{var v;if(Vt.ui.settingsMenu.visible$.set(!1),!De(Vt.ui.settingsSubMenu.visible$)){let S=De(Vt.ui.settingsMenu.ref$);if((v=a==null?void 0:a.uiInfo)!=null&&v.onSettingsMenu&&S){let Ae=Fl(S),st={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:Ae,position:st,name:"settings"})}}re.log("close settings menu")},wn=(v,S=()=>Promise.resolve())=>Ct(void 0,null,function*(){var st;Vt.ui.settingsMenu.openedByBtnKeyboard$.set(!!v),Vt.ui.settingsMenu.visible$.set(!0),yield S();let W=De(Vt.ui.settingsMenu.ref$),Ae=As();if((st=a==null?void 0:a.uiInfo)!=null&&st.onSettingsMenu&&W&&Ae){let at=Fl(W),kt=Hl(W,Ae);a.uiInfo.onSettingsMenu({visible:!0,size:at,position:kt,name:"settings"})}re.log("open settings menu",{wasOpenedByKeyboard:v})}),Xn=(v,S=!1)=>{var ye;Vt.ui.settingsSubMenu.visible$.set(!1);let W=De(Vt.ui.settingsMenu.ref$),Ae=As(),st=De(Vt.ui.settingsMenu.visible$);if((ye=a==null?void 0:a.uiInfo)!=null&&ye.onSettingsMenu&&W&&Ae)if(st&&!S){let kt=Fl(W),Ht=Hl(W,Ae);a.uiInfo.onSettingsMenu({visible:!0,size:kt,position:Ht,name:"settings"})}else{let kt=Fl(v),Ht={top:0,left:0,bottom:0,right:0},no=De(Vt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:kt,position:Ht,name:no})}re.log("close settings sub menu")},Jn=(v,S)=>{var Ae;Vt.ui.settingsSubMenu.visible$.set(!0),Vt.ui.settingsSubMenu.ref$.set(S),Vt.ui.settingsSubMenu.name$.set(v);let W=As();if((Ae=a==null?void 0:a.uiInfo)!=null&&Ae.onSettingsMenu&&S&&W){let ye=Fl(S),at=Hl(S,W);a.uiInfo.onSettingsMenu({visible:!0,name:v,size:ye,position:at})}re.log("open settings sub menu",{name:v})},ko=()=>{var S;let v=Math.max(be.volumeMinRestore,(S=Yc())!=null?S:0);return v===0?be.volumeDefault:v},Ko=v=>{let S=v===0?ko():v,W=K.info.muted$.getValue();Z({message:`set volume, volume: ${v}, preferredVolume: ${S}`}),W&&v>0&&!l&&(W=!1,km(!1)),K.setVolume(v,W),Be.setVolume(v),wm(S)},ao=v=>{let S=K.info.volume$.getValue();if(Z({message:`set muted, currentVolume: ${S}, mute: ${v}`}),K.setMuted(v),Be.setVolume(v?0:S),km(v),!v&&S===0){let W=ko();K.setVolume(W),wm(W),Be.setVolume(W)}},Qo=Ie(!1),Ki=v=>{re.log("set looped",{isLooped:v}),Qo.set(v),K.setLooped(v)};Ki(ee);let Qi=()=>{var v,S;(S=(v=a==null?void 0:a.uiInfo)==null?void 0:v.onReportProblem)==null||S.call(v)},wr=(v,S=!1)=>{var W;Z({message:`set autoplayNextEnabled, value: ${v}`}),re.log("set autoplay next enabled",{autoplayNextEnabled:v}),Vt.ui.autoplayNextEnabled$.set(v),Ph(v),S&&((W=a==null?void 0:a.onSetAutoplayNextEnabled)==null||W.call(a,v))},un=v=>{Z({message:`set timerNextVideoRunning, value: ${v}`}),re.log("set timer next video running",{timerNextVideoRunning:v}),Vt.ui.timerNextVideoRunning$.set(v)},Qr=(v=!0)=>{var W;let S=!0;if(v&&(a!=null&&a.onPrevVideoClick))try{S=(W=a==null?void 0:a.onPrevVideoClick)==null?void 0:W.call(a)}catch(Ae){Z({message:"onPrevVideoClick callback failed to execute"})}S&&J()},Cn=(v=!0)=>{var W;let S=!0;if(v&&(a!=null&&a.onNextVideoClick))try{S=(W=a==null?void 0:a.onNextVideoClick)==null?void 0:W.call(a)}catch(Ae){Z({message:"onNextVideoClick callback failed to execute"})}S&&ce()},Cr=()=>{var v;(v=a==null?void 0:a.onNextVideoAnnouncementShow)==null||v.call(a)},er=()=>{var v;(v=a==null?void 0:a.onNextVideoAnnouncementClick)==null||v.call(a)},Sn=()=>{var v;(v=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||v.call(a)},Gr=()=>{var v;(v=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||v.call(a)},tr=()=>{K.prepare()},ir=()=>{(0,Et.assertNonNullable)(Vt);let v=De(Vt.ui.controls.disabledControls$),S=De(Vt.playerPhase),W={playerPhase:S,isInteractive:T,isVideoEnded:!1,action:"none"};if(v.has("PLAY_BUTTON"))return;if(Z({message:"toggle play"}),S==="ads"){W.action="play",re.log("toggle adman play",W),Be.togglePlay();return}let Ae=()=>{var ye;Z({message:"toggle play, call player.play"}),W.action="play",K.play(),(ye=a==null?void 0:a.onPlay)==null||ye.call(a)},st=()=>{var ye;Z({message:"toggle play, call player.pause"}),W.action="pause",K.pause(),(ye=a==null?void 0:a.onPause)==null||ye.call(a)};if(K.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),he.next(),Ft.next(ds.SeekAction.REWIND),T){R==null||R();return}K.seekTime(0),Ae()}else K.info.playbackState$.getValue()!==ci.PlaybackState.PLAYING?Ae():st();re.log("toggle play",W)},yi=(v,{changeReason:S="default",appliesTo:W="to-video"}={})=>{Z({message:`set quality, quality: ${v}`}),re.log("set quality",{quality:v}),K.setAutoQuality(v==="auto"),v!=="auto"?(be.features.qualityDetailsSubMenuEnabled?(jc({type:"exact_quality",quality:v,videoId:i},W),Hd(),K.setPredefinedQualityLimits(ci.PredefinedQualityLimits.UNKNOWN)):Cm(i,v),ln.set(v),K.setQuality(v)):be.features.qualityDetailsSubMenuEnabled?S==="default"&&(Yr("auto_quality",W),De(di)&&Sr(!1),De(To)&&Tn(!1)):Hd()},Sr=(v,S="as-default")=>{Z({message:`set trafficSavingEnabled, value: ${v}`}),re.log("set traffic saving enabled",{trafficSavingEnabled:v});let W=v?ci.PredefinedQualityLimits.TRAFFIC_SAVING:ci.PredefinedQualityLimits.UNKNOWN;be.features.qualityDetailsSubMenuEnabled?(Go(W,S),Od(!1)):(K.setPredefinedQualityLimits(W),Od(v))},Tn=(v,S="as-default")=>{Z({message:`set highQualityEnabled, value: ${v}`}),re.log("set high quality enabled",{highQualityEnabled:v}),Go(v?ci.PredefinedQualityLimits.HIGH_QUALITY:ci.PredefinedQualityLimits.UNKNOWN,S)},Go=(v,S)=>{v!==ci.PredefinedQualityLimits.UNKNOWN&&(De($n)&&!De(hr)&&yi("auto",{appliesTo:S,changeReason:"limit-changed"}),Yr(v,S)),K.setPredefinedQualityLimits(v)},Yr=(v,S)=>{jc({type:v,videoId:i},S),S==="as-default"&&jc({type:v,videoId:i},"to-video")},or=v=>{re.log("set playback rate",{playbackRate:v}),K.setPlaybackRate(v),be.features.saveRate&&Se&&!K.info.isLive$.getValue()&&kh(v)},No=()=>{let v=De(Kn),S=v.findIndex(({selected:Ae})=>Ae);if(S===v.length-1)return;let W=v[S+1];or(W.value)},ke=()=>{let v=De(Kn),S=v.findIndex(({selected:Ae})=>Ae);if(S===0)return;let W=v[S-1];or(W.value)},Ut=(v=zt($({},Li),{selected:!1}))=>{re.log("set subtitles",$({},v)),v&&v.value!==Li.value&&Qt.next(v.isAuto?v.value+"_auto":v.value),$o.set(v)},Vi=()=>{re.log("toggle subtitles");let v=De(dn),S=De($o),W=De(it);if((S==null?void 0:S.value)===Li.value){let Ae=v.filter(st=>st.value!==Li.value).find(st=>st.value===W)||v[1];Ut(Ae)}else Ut()},xi=(v,S,W=!0)=>{var Ae;if(Z({message:`seek to time, time: ${v}`}),re.log("seek to time",{time:v,action:S,forcePrecise:W}),Ft.next(S),K.info.isLive$.getValue()){let st=K.info.duration$.getValue(),ye=Math.min(0,st+v);K.seekTime(ye,W)}else{if(D!=null&&D.getValue())return;K.info.isEnded$.getValue()&&(Z({message:"seek after ended, call callbacks.onPlay"}),(Ae=a==null?void 0:a.onPlay)==null||Ae.call(a)),K.seekTime(fc(v),W)}},pn=v=>{Z({message:`seek to episode start time: ${v}`}),re.log("seek to episode start time",{time:v}),xi(v,ds.SeekAction.EPISODE,!0)},Eo=(v,S)=>{Z({message:`seek to percent, percent: ${v}`}),re.log("seek to percent",{percent:v,action:S});let W=De(io)*v;xi(W,S,!1)},Oi=v=>{Z({message:`seek external, time: ${v}`}),re.log("seek external",{time:v}),Ft.next(ds.SeekAction.UNKNOWN),K.seekTime(K.info.isLive$.getValue()?-v:v)},$e=v=>{var Ae,st;let S=(Ae=v.max)!=null?Ae:"none",W=(st=v.min)!=null?st:"none";Z({message:`set auto quality limitation. Max: ${S}. Min: ${W}`}),re.log("set auto quality limits",{max:S,min:W}),K.setAutoQualityLimits(v)},Ot=v=>{Z({message:`seek external to episode start time: ${v}`}),re.log("seek external to episode start time",{time:v}),xi(v,ds.SeekAction.EPISODE,!0)},wi=v=>{Z({message:`set playback rate to: ${v}`}),re.log("set playback rate external",{playbackRate:v}),K.setPlaybackRate(v)},Gi=Ie(void 0),li=Ie(!1),bo=v=>{Z({message:`start scrubbing, progress: ${v}`}),re.log("start scrubbing",{progress:v}),li.set(!0),lo(v)},lo=v=>{Gi.set(v)},Bo,Yi,fn=()=>{Gi.set(void 0),li.set(!1)},Yo=()=>{clearTimeout(Yi),clearTimeout(Bo),Bo=window.setTimeout(()=>{fn()},500),le==null||le.removeEventListener("seeked",Yo)},In=v=>{Z({message:`complete scrubbing, progress: ${v}`}),re.log("complete scrubbing",{progress:v}),Eo(v,ds.SeekAction.SLIDER),De(Vt.ui.isMobile)&&De(Vt.state.currentFormat$)===ci.VideoFormat.HLS?(le==null||le.addEventListener("seeked",Yo),Yi=window.setTimeout(()=>{Yo()},300)):fn()},Tr=_i([pt,io,Gi],([v,S,W],Ae)=>{Ae((0,Et.isNonNullable)(W)?W*S:v)}),Ir=Ie(!1),kr=()=>{Ir.set(!0)},us=()=>{Ir.set(!1)},mn=Ie({width:0,height:0}),Er=_i([mn],([{width:v}],S)=>{let W=t_(v);S(W)}),Po=Ie(!1),nr=Q.filter(v=>gh(v)),Pr=_i([Er,Po],([v,S])=>S?nr.filter(W=>!W.hideOnMobile):nr.filter(W=>{var Ae;return!((Ae=W.hideOnDesktopGridTypes)!=null&&Ae.includes(v))})),jo=Ie(Q.filter(v=>hh(v))),ft=_i([jo,Er],([v,S])=>v.filter(W=>{var Ae;return!((Ae=W.hideOnDesktopGridTypes)!=null&&Ae.includes(S))})),ni=_i([ft,Pr],([v,S])=>[...be.features.additionalButtonsDesktopControlPanelRight?v.filter(W=>W.type==="desktop-control-panel-right"):[],...be.features.additionalButtons?S.map((W,Ae)=>{var st;return{id:Ae,weight:Ae,type:"desktop-control-panel-right",testId:W.testId,icon:W.iconUrl,onClick:W.onClick,ariaLabel:(st=W.ariaLabel)!=null?st:W.tooltip,tooltipText:W.tooltip}}):[]]),Ci=Ie(F),Ar=_i([Ci],([v])=>be.features.additionalSettingsMenuItems?v.map(S=>S.type==="SWITCH"?zt($({},S),{onClick:S.onChangeEnabled}):S):[]),kn=(v,S)=>{let W=De(jo).map(Ae=>Ae.id!==v?Ae:$($({},Ae),S));jo.set(W)},Mr=v=>{let S=De(jo);if(S.some(W=>W.id===v.id)){Z({message:`Additional button with id: "${v.id}" was exist! Can't add more with the same id`});return}S.push(v),jo.set(S)},oe=v=>{let S=De(jo);if(!S.some(W=>W.id===v)){Z({message:`Can't find additional button with id: "${v}"! Can't remove item with this id`});return}S=S.filter(W=>W.id!==v),jo.set(S)},qt=v=>{Ft.next(ds.SeekAction.LIVE),Z({message:"live switch to low latency "+v}),re.log("live switch to low latency "+v),K.setLiveLowLatency(v)},Jt=(v,S)=>{let W=De(Ci).map(Ae=>Ae.id!==v?Ae:$($({},Ae),S));Ci.set(W)},Lt=v=>{let S=De(Ci);if(S.some(W=>W.id===v.id)){Z({message:`Settings menu item with id: "${v.id}" was exist! Can't add more with the same id`});return}S.push(v),Ci.set(S)},Hi=v=>{let S=De(Ci);if(!S.some(W=>W.id===v)){Z({message:`Can't find settings menu item with id: "${v}"! Can't remove item with this id`});return}S=S.filter(W=>W.id!==v),Ci.set(S)},vi=Ie(G),ji=_i([vi],([v])=>be.features.additionalContextMenuItems?v:[]),jr=(v,S)=>{let W=De(vi).map(Ae=>Ae.id!==v?Ae:$($({},Ae),S));vi.set(W)},rr=v=>{let S=De(vi);if(S.some(W=>W.id===v.id)){Z({message:`Context menu item with id: "${v.id}" was exist! Can't add more with the same id`});return}S.push(v),vi.set(S)},Do=v=>{let S=De(vi);if(!S.some(W=>W.id===v)){Z({message:`Can't find context menu item with id: "${v}"! Can't remove item with this id`});return}S=S.filter(W=>W.id!==v),vi.set(S)},ps=_i([Po,Tt],([v,S],W)=>{W(v&&S)}),rt=()=>{Ft.next(ds.SeekAction.LIVE),Z({message:"switch to active live"}),re.log("switch to active live"),K.seekTime(0),K.info.playbackState$.getValue()!==ci.PlaybackState.PLAYING&&Vt.actions.internal.togglePlay()},ii=()=>{re.log("skip adman"),Be.skip()},ki=(v=!0)=>{(0,Et.assertNonNullable)(Vt),Z({message:`switch from ads to video, callPlay: ${v}`}),re.log("switch from ads to video",{callPlay:v}),xe.set("video"),v&&K.play()},En=()=>{(0,Et.assertNonNullable)(Vt),Z({message:"switch from video to ads"}),re.log("switch from video to ads"),Vt.actions.internal.pause(),ut(),xe.set("ads")},sr=v=>{(0,Et.assertNonNullable)(Vt);let S=v?"LiveWaitingStart":"thumb";re.log("set live waiting start",{state:v,playerPhase:S}),xe.set(S)},Ps=v=>{(0,Et.assertNonNullable)(Vt);let S=v?"LiveWaitingRecover":"thumb";re.log("set live waiting recover",{state:v,playerPhase:S}),xe.set(S)},Pn=v=>{(0,Et.assertNonNullable)(Vt);let S=v?"LiveWaitingRecord":"thumb";re.log("set live waiting record",{state:v,playerPhase:S}),xe.set(S)},Zr=()=>((0,Et.assertNonNullable)(Vt),re.log("get debug text data"),fh(K,ue,Vt)),Da=()=>((0,Et.assertNonNullable)(Vt),JSON.stringify(j.getFinishedSpans())),Oa=()=>((0,Et.assertNonNullable)(Vt),mh(K,ue,Vt)),As=()=>le,Ha=()=>{Z({message:"toggle chromecast"}),re.log("toggle chromecast"),K.toggleChromecast()},ra=v=>{var W;if((0,Et.assertNonNullable)(Vt),K.info.isEnded$.getValue())return;let S=!v;if(De(Vt.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${S}`}),re.log("pause ads",{internalCall:S}),Be.pause();return}Z({message:`pause video, internalCall: ${S}`}),re.log("pause video",{internalCall:S}),S&&((W=a==null?void 0:a.onPause)==null||W.call(a)),K.pause()},Ms=v=>{var W;(0,Et.assertNonNullable)(Vt);let S=!v;if(De(Vt.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${S}`}),re.log("play ads",{internalCall:S}),Be.play();return}Z({message:`play video, internalCall: ${S}`}),re.log("play video",{internalCall:S}),S&&((W=a==null?void 0:a.onPlay)==null||W.call(a)),K.play()},Ge=v=>{(0,Et.assertNonNullable)(Vt);let S=!v;if(De(Vt.playerPhase)==="ads"){Z({message:"player cannot be stopped during ads via external method"});return}Z({message:`player will be stopped, internalCall: ${S}`}),B==null||B()},Nt=(v,S)=>{(0,Et.assertNonNullable)(Vt),Z({message:`first start, show ads: ${v}, internalCall: ${!S}`}),re.log("first start",{showAds:v,external:S}),v?xe.set("ads"):(xe.set("video"),S?K.play():Vt.actions.internal.togglePlay())},Zo=()=>(Z({message:"getting time codes"}),f),Lr=()=>{let v=Zo();if(!v||[0,1].includes(v.length))return;let S=K.info.position$.getValue();return v.find(W=>W.time>S)},sa=v=>{let S=v;S||(S=Lr());let W=K.info.position$.getValue();re.log("seek to next episode",$({currentTime:W},S)),S&&(Z({message:"seek to next episode"}),xi(S.time,ds.SeekAction.EPISODE,!0))},Vr=()=>{let v=Zo();if(!v||[0,1].includes(v.length))return;let S=K.info.position$.getValue(),W=v.findIndex(st=>st.time>S),Ae=W===-1?v.length-2:W-2;if(!(Ae<0))return v[Ae]},Xr=v=>{let S=v;S||(S=Vr());let W=K.info.position$.getValue();re.log("seek to prev episode",$({currentTime:W},S)),S&&(Z({message:"seek to prev episode"}),xi(S.time,ds.SeekAction.EPISODE,!0))},Ls=()=>(Z({message:"getting preview thumbs data"}),re.log("get preview thumbs data",$({},g)),g),pd=()=>Ct(void 0,null,function*(){let v=Te==null?void 0:Te.isActive(),S="none";Te!=null&&Te.isActive()?(S="remove",yield Te==null?void 0:Te.remove()):(S="request",yield Te==null?void 0:Te.request()),re.log("toggle picture in picture",{isActive:v,action:S})}),uc=(v=-90)=>{re.log("rotate video",{alphaDiff:v}),mt.update(S=>S+v)},Fa=Ie([]);V==null||V.subscribe(v=>{let S=[];for(let W=0;W<v.length;W++){let{range:[Ae,st],subjects:ye}=v[W];W===0&&Ae!==0&&S.push({time:0,text:"",interactive:!1,completed:!0}),S.push({time:Ae/1e3,text:"",interactive:!0,completed:be.features.interactiveTimeOpenUri?!ye.length||ye.every(at=>at.isRemoved):!ye.length}),st!==1/0&&S.push({time:st/1e3,text:"",interactive:!1,completed:!0})}Fa.set(S)});let pc=Ie(!1);D==null||D.subscribe(v=>{v&&De(li)&&fn()});let fc=v=>{if(!T)return v;let S=De(Fa),W=De(io),st=De(an)/W,ye=S.find(at=>at.interactive&&!at.completed&&at.time>st);return typeof(ye==null?void 0:ye.time)=="number"?Math.min(v,ye.time-.05):v},mc=()=>{Vt.ui.episodes.panelOpened$.set(!1)},vc=()=>{re.log("destroy store"),clearTimeout(Yi),clearTimeout(Bo),$t.unsubscribe(),Mt.unsubscribe(),K.destroy(),Be.destroy(),Ce==null||Ce.destroy(),fe==null||fe.destroy(),je.unsubscribe(),ti==null||ti.disconnect(),ti=null,et.destroy()},Vt={interfaceLanguage$:it,isCyrillicRelatedInterface$:bt,initVideo:vt,videoId:i,isClip:o,playerPhase:Me,vsid:dt,state:{positionExact$:pt,positionWithScrubbing$:Tr,duration$:io,playbackState$:O,isPlaying$:ho,isLoaderVisible:Vo,bufferedProgress$:jn,isLive$:Ai,canChangePlaybackSpeed$:pi,isActiveLive$:fi,isOldestAvailableLive$:Hn,isRewindableLive$:_o,isEnded$:ui,muted$:vo,volume$:Ii,trafficSavingEnabled$:di,highQualityEnabled$:To,autoQualityLimitingAvailable$:$n,availableVideoStreams$:Fn,availableAudioStreams$:Un,videoStream$:Ro,audioStream$:zn,currentQuality$:$r,isAutoQualityEnabled$:hr,availableQualities$:Io,currentPlaybackRate$:qn,availablePlaybackRates$:Kn,currentSubtitle$:$o,availableTextTracks$:bn,availableSubtitlesList$:dn,currentSubtitleCaptions$:Yn,isAutoSubtitleCaptionVisible$:br,chromecastState$:Fo,chromecastDeviceName$:nt,chromecastConnected$:mi,currentFormat$:Rt,throughputEstimation$:go,videoBitrate$:Lo,videoSize$:Uo,errorLog$:ge,crashed$:Tt,isAudioAvailable$:Dt,isAudioDisabled:!!l,canDownload:be.features.download&&!!d,availableSources$:cn,hasMpegSources$:yr,isInteractive:T,showInteractiveGraph:be.features.interactiveGraph,showSeekToInteractive:be.features.seekToInteractive,showPlayPrevChapter:be.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:be.features.interactiveTimeIndicator&&!!De(Fa).length,interactiveEpisodes$:Fa,isInteractiveTime$:D?ri(D):Ie(!1),isInteractiveExpectation$:pc,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:z,looped$:Qo,loadedMetadata$:Ie(!1),isAutoQualityAvailable$:Wn},ui:{t:gt,controlsVisible:Ie(!1),touched:Ie(!1),controls:{prevButton:Ie(void 0),playButton:Ie(void 0),replayButton:Ie(void 0),nextButton:Ie(void 0),playPrevChapterButton:Ie(void 0),seekToInteractiveButton:Ie(void 0),interactiveGraphButton:Ie(void 0),liveButton:Ie(void 0),time:Ie(void 0),episodes:Ie(void 0),volume:Ie(void 0),subtitles:Ie(void 0),settings:Ie(void 0),context:Ie(void 0),chromecast:Ie(void 0),pip:Ie(void 0),fullscreen:Ie(void 0),vkLogo:Ie(void 0),interactiveTimeIndicator:Ie(void 0),timeline:Ie(void 0),autoplayNextToggle:Ie(void 0),additionalButtons:Q.length?Q.reduce(v=>[...v,Ie(void 0)],[]):[],disabledControls$:we},modals:{hotKeyMap:{show:Ie(!1),data:Ie({title:"",closeBtnText:"",groups:[]})}},isFullscreen:_e,isFullscreenOpenedByKeyboard:me,rotateAlpha:mt,isAutoplay:Ie(!1),debugPanelVisible:Ie(!1),episodes:{panelOpened$:Ie(!1),openedByKeyboard$:Ie(!1)},contextMenu:{visible$:Ie(!1),btnRef$:Ie(void 0),openedByBtnKeyboard$:Ie(!1),openedByHotKey$:Ie(!1),lastActiveElem$:Ie(void 0),showContextMenuBtn$:Ie(!1),position$:Ie({top:0,left:0})},playerSize:mn,isMobile:Po,mobileNotReportControlHidden$:ps,mobileUnmuteButtonExpanded:Ie(!1),mobileUnmuteButtonVisible:Ie(!1),icon3DVideoVisible:Ie(!1),scrubbingInProgress:li,volumeChangingInProgress:Ir,is3DVideo:Ie(!1),currentGridType$:Er,additionalButtonsDeprecated$:Pr,additionalDesktopControlPanelRightButtons$:ni,additionalSettingsMenuItems$:Ar,additionalContextMenuItems$:ji,interactiveHideMobileControls:Ie(!1),overlayContainer$:Ie(void 0),startedByKeyboard$:Ie(!1),autoplayNextEnabled$:Ie(!1),timerNextVideoRunning$:Ie(!0),settingsMenu:{visible$:Ie(!1),ref$:Ie(void 0),openedByBtnKeyboard$:Ie(!1)},settingsSubMenu:{visible$:Ie(!1),ref$:Ie(void 0),name$:Ie(void 0)}},ads:{position:Ie(0),duration:Ie(0),playbackState:Ie("inactive"),canSkip:Ie(!1),secondsToWatchBeforeSkip:Ie(0),postrollPassed:Ie(!1)},webApi:{pictureInPictureApi:Te,annotationsApi:Ye},actions:{internal:{preload:tr,firstStart:v=>Nt(v,!1),play:()=>Ms(!1),pause:()=>ra(!1),togglePlay:ir,toggleMuted:Zn,openSettingsMenu:wn,closeSettingsMenu:xr,openSettingsSubMenu:Jn,closeSettingsSubMenu:Xn,setVolume:Ko,startVolumeChanging:kr,stopVolumeChanging:us,setVideoStream:zo,setAudioStream:oo,setQuality:yi,setTrafficSavingEnabled:Sr,setHighQualityEnabled:Tn,setPlaybackRate:or,incrementPlaybackRate:No,decrementPlaybackRate:ke,setSubtitle:Ut,toggleSubtitle:Vi,togglePictureInPicture:pd,startScrubbing:bo,progressScrubbing:lo,completeScrubbing:In,toggleChromecast:Ha,switchToActiveLive:rt,switchFromAdsToVideo:ki,switchFromVideoToAds:En,skipAd:ii,setLiveWaitingStart:sr,setLiveWaitingRecover:Ps,setLiveWaitingRecord:Pn,getDebugTextData:Zr,getTraceTextData:Da,getDebugPanelData:Oa,getVideoElement:As,seekTime:(v,S,W)=>xi(v,S,W),clearDelayedBufferingCheckTimeout:Xt,seekEpisodeStartTime:pn,seekToPercent:Eo,getNextEpisode:Lr,seekToNextEpisode:sa,getPrevEpisode:Vr,seekToPrevEpisode:Xr,startLogging:Qe,stopLogging:Gt,startCameraManualRotation:si,stopCameraManualRotation:ai,moveCameraFocusPX:bi,holdCamera:ht,releaseCamera:_t,getVideoEpisodes:Zo,getPreviewThumbsData:Ls,downloadVideo:Kr,addLanguage:Am,setLanguage:te,nextMovie:yt,videoRotate:uc,correctSeekTimeToInteractive:fc,replayInteractive:R,setLooped:Ki,reportProblem:Qi,setAutoplayNextEnabled:wr,setTimerNextVideoRunning:un,prevVideoClick:Qr,nextVideoClick:Cn,nextVideoAnnouncementShow:Cr,nextVideoAnnouncementClick:er,nextVideoAnnouncementAuto:Sn,nextVideoAnnouncementCancel:Gr},external:{firstStart:v=>Nt(v,!0),play:()=>Ms(!0),pause:()=>ra(!0),stop:()=>Ge(!0),seekTime:v=>Oi(v),seekEpisodeStartTime:v=>Ot(v),setPlaybackRate:v=>wi(v),setAutoQualityLimits:v=>$e(v),setMuted:ao,setVolume:Ko,returnFocusToEpisodes:mc,updateAdditionalSettingsItem:Jt,addAdditionalSettingsItem:Lt,removeAdditionalSettingsItem:Hi,updateAdditionalContextItem:jr,addAdditionalContextItem:rr,removeAdditionalContextItem:Do,updateAdditionalButton:kn,addAdditionalButton:Mr,removeAdditionalButton:oe,setLiveLowLatency:qt}},callbacks:a,setUiCallbacks:v=>{He=$({},v)},getAdmanWrapper:()=>Be,getLogger:()=>qe,getPlayer:()=>K,destroy:vc};return Vt};var ep=(t,e,i,o)=>{var l;if(!t)return;let n=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"];for(let[d,a]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(d)){let c=(l=i[d])==null?void 0:l.getBoundingClientRect(),f=(o||r.includes(d))&&!!c&&!!(c.right-c.left),{top:g,left:m,bottom:h,right:_}=Hl(i[d],t);a.set({positionStartX:0,positionEndX:0,left:f?m:0,right:f?_:0,top:f?g:0,bottom:f?h:0,isDisplayed:f})}};var tp=(t,e,i)=>Ct(void 0,null,function*(){yield xo(),e&&i&&(i.focus(),t.set(!1))});var py=Re('<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 ip(t,e){if(new.target)return E($({component:ip},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=py();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}function op(t,e){if(new.target)return E($({component:op},t));P(e,!0);let[i,o]=tt(),n=()=>k(a,"$contextMenuVisible$",i),r=p(e,"disabled",7,!1),l=p(e,"ariaLabel",7,""),d=Fe(),a=d.ui.contextMenu.visible$,c=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,g=d.ui.contextMenu.position$,m=d.ui.contextMenu.btnRef$,h=pe(void 0);lt(()=>{s(h)&&Pt(()=>{m.set(s(h))})});let _=R=>{let B=qs(R),I=Gh(s(h));g.set(I),c.set(B),a.set(!n())},x=()=>{f.set(!0)},T=()=>{f.set(!1)},V=b(()=>n()?"opened":"");Wt(t,{get className(){return s(V)},testId:"btn-context-menu",get disabled(){return r()},get ariaLabel(){return l()},click:_,focus:x,blur:T,get ariaExpanded(){return n()},get ref(){return s(h)},set ref(R){Y(h,Le(R))},children:(R,B)=>{ip(R,{})},$$slots:{default:!0}});var D=A({get disabled(){return r()},set disabled(R=!1){r(R),u()},get ariaLabel(){return l()},set ariaLabel(R=""){l(R),u()},$set:L,$on:(R,B)=>M(e,R,B)});return o(),D}var fy=t=>{t.stopPropagation()},my=U('<div class="interactive-episode-icon-animated svelte-od3veb"><!> <div class="ref-block svelte-od3veb"></div> <div class="pulse svelte-od3veb"></div></div>'),vy={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
227
+ }`};function Af(t,e){K(e,!0),G(t,t2);let i=v(e,"isMobile",3,!1),o=m(()=>e.iconState===Ef.ChromecastState.CONNECTED),n=m(()=>e.iconState===Ef.ChromecastState.CONNECTING);var a=ze(),s=ve(a);{var d=u=>{var f=J$(),_=h(f),p=h(_),$=h(p);be(),g(p);var y=M(p);be(),g(_);var w=M(_),S=h(w),I=h(S);g(S),be(),g(w),g(f),k(()=>{De($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),De(y,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),De(I,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},l=u=>{var f=e2();let _;var p=h(f),$=M(h(p),5);let y;g(p),g(f),k((w,S)=>{_=oe(f,0,"svelte-8z1bf5",null,_,w),y=oe($,0,"svelte-8z1bf5",null,y,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(u,f)};V(s,u=>{i()?u(d):u(l,!1)})}b(t,a),W()}var a1=require("@vkontakte/videoplayer-shared/es2015");function _d(t,e){K(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,a1.noop),s=Ie().ui.t,d=m(()=>e.state===s1.ChromecastState.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));At(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)=>{Af(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),W()}var i2=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),o2={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function Pf(t,e){G(t,o2);let i=v(e,"active",3,!1),o=v(e,"pointer",3,!1),n=v(e,"translateXPx",3,0),a=v(e,"translateYPx",3,0),s=te(void 0),d=te(void 0);function l(y){if(!r(d))return 0;let{width:w}=r(d).getBoundingClientRect(),S=w/2;return y<S?S:y>e.containerWidth-S?e.containerWidth-S:y}let u=m(()=>l(n()));var f=i2(),_=h(f);let p;var $=h(_);me($,()=>{var y;return(y=e.children)!=null?y:ne}),g(_),ut(_,y=>O(d,y),()=>r(d)),g(f),ut(f,y=>O(s,y),()=>r(s)),k(y=>{nt(f,`transform: translate(${r(u)}px, ${a()}px);`),p=oe(_,1,"tooltip svelte-5ygsa2",null,p,y)},[()=>({active:i(),pointer:o()})]),b(t,f)}var Xc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var l1=t=>!!(Math.round(Math.abs(t)/90)%2),d1=t=>Math.abs(t)/90%4===1;var n2=L('<div class="preview svelte-1wqg760"></div>'),r2=L('<div class="time svelte-1wqg760"> </div>'),s2=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),a2={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function Mf(t,e){K(e,!0),G(t,a2);let[i,o]=Fe(),n=()=>C(y,"$rotateAlpha",i),a=()=>C(w,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=v(e,"time",3,""),l=v(e,"isMobile",3,!1),u=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),_=v(e,"duration",3,0),p=v(e,"isInteractive",3,!1),$=Ie(),y=$.ui.rotateAlpha,w=$.ui.playerSize,S=te(0),I=te(0),A=te(""),P=te(0),E=te(0),T=te(0),R=te(0),z=m(()=>Xc(f(),_(),u())),Z=m(()=>l1(n())),U=m(()=>d1(n())),Q=m(_e),ee=m(()=>(r(U)?1:-1)*(r(S)/2-r(I)/2)),ae=m(()=>r(ee)*-1);Ze(()=>{(B=>(O(S,pe(B.width)),O(I,pe(B.height))))(Pe())}),Ze(()=>{(B=>(O(A,pe(B.imgSrc)),O(P,pe(B.imgWidth)),O(E,pe(B.imgHeight)),O(T,pe(B.imgOffsetX)),O(R,pe(B.imgOffsetY))))(qe(f()))});function _e(){var Ke;let B=l()?s.MOBILE:s.DESKTOP,{isVertical:ce}=re(),Ee=30;return(Ke=r(z))!=null&&Ke.text&&(Ee+=16),(ce||r(Z))&&(Ee+=18,Ee+=50),Math.min(Math.max(a().height-Ee,0),B)}function re(){let B=e.previewThumbsData.frameWidth,ce=e.previewThumbsData.frameHeight,Ee=ce>B;return{width:B,height:ce,isHorizontal:!Ee,isVertical:Ee}}function Pe(){let{height:B,isHorizontal:ce,isVertical:Ee,width:Ke}=re();return ce&&(B=B/Ke*r(Q),Ke=r(Q)),Ee&&(Ke=Ke/B*r(Q),B=r(Q)),{width:Ke,height:B}}function qe(B){let ce;e.previewThumbsData.isUV?ce=Math.floor(_()*B/e.previewThumbsData.frequency):ce=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*B)));let Ee=Math.floor(ce/e.previewThumbsData.countPerImage),Ke=Math.floor(ce%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),lt=ce%e.previewThumbsData.countPerRow,Ae=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Ae=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Ae++);let ye=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ye=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Me=r(S)*ye,rt=r(I)*Ae,vt=-lt*r(S),tt=-Ke*r(I);return{imgSrc:e.previewThumbsData.links[Ee],imgWidth:Me,imgHeight:rt,imgOffsetX:vt,imgOffsetY:tt}}var ie=s2();let Le;var J=h(ie);{var D=B=>{var ce=n2();k(()=>nt(ce,`width: ${r(S)}px; height: ${r(I)}px; background-image: url(${r(A)}); background-size: ${r(P)}px ${r(E)}px; background-position: ${r(T)}px ${r(R)}px;
228
+ transform: rotate(${n()}deg) ${r(Z)?`translate(${r(ee)}px, ${r(ae)}px)`:""};
229
+ `)),b(B,ce)};V(J,B=>{r(A)&&B(D)})}var Be=M(J,2),X=h(Be);{var Ge=B=>{var ce=ze(),Ee=ve(ce);{var Ke=Ae=>{var ye=nr();k(Me=>fe(ye,Me),[()=>F("tooltip_episode_unfinished")]),b(Ae,ye)},lt=Ae=>{var ye=nr();k(()=>fe(ye,r(z).text||"")),b(Ae,ye)};V(Ee,Ae=>{p()&&r(z).completed===!1?Ae(Ke):Ae(lt,!1)})}b(B,ce)};V(X,B=>{r(z)&&B(Ge)})}g(Be);var Re=M(Be,2);{var ue=B=>{var ce=r2(),Ee=h(ce,!0);g(ce),k(()=>fe(Ee,d())),b(B,ce)};V(Re,B=>{p()||B(ue)})}g(ie),k(B=>{Le=oe(ie,1,"timeline-preview svelte-1wqg760",null,Le,B),nt(ie,`width: ${r(Z)?r(I):r(S)}px;`)},[()=>({mobile:l()})]),b(t,ie),W(),o()}var l2=L('<span class="time svelte-1jr6obn"> </span>'),d2=L("<!> <!>",1),c2={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 Lf(t,e){var ge;K(e,!0),G(t,c2);let[i,o]=Fe(),n=()=>C(Q,"$interactiveEpisodes$",i),a=()=>C(E,"$duration$",i),s=()=>C(P,"$position$",i),d=()=>C(_e,"$isInteractiveExpectation$",i),l=()=>C(ae,"$isInteractiveTime$",i),u=()=>C(T,"$isLive$",i),f=()=>C(z,"$isMobile",i),_=()=>C(R,"$isActiveLive$",i),p=()=>C(A,"$bufferedProgress$",i),$=()=>C(qe,"$disabledControls$",i),y=v(e,"showTimeline",3,!1),w=v(e,"ref",15,void 0),S=Ie(),I=Gt(),A=S.state.bufferedProgress$,P=S.state.positionWithScrubbing$,E=S.state.duration$,T=S.state.isLive$,R=S.state.isActiveLive$,z=S.ui.isMobile,Z=I.features.episodes?S.actions.internal.getVideoEpisodes():void 0,U=S.actions.internal.getPreviewThumbsData(),Q=S.state.interactiveEpisodes$,ee=S.state.isInteractive,ae=S.state.isInteractiveTime$,_e=S.state.isInteractiveExpectation$,re=S.actions.internal.correctSeekTimeToInteractive,Pe=(ge=S.callbacks)==null?void 0:ge.onDisabledTimelineClick,qe=S.ui.controls.disabledControls$,ie=S.ui.t,Le=I.features.interactiveResponsiveUi,J=m(()=>ee?n():Z),D=m(()=>lr(a())),Be=m(()=>lr(s())),X=m(()=>s()/a()),Ge=m(()=>d()||l()),Re=te(!1),ue=te(""),B=te(0),ce=te(0),Ee=te(0),Ke=m(()=>({containerWidth:r(ce),translateXPx:r(B),translateYPx:ee&&U?-36:-16,active:r(Re)&&y()&&!r(Ge)&&!Le,pointer:!I.features.timelinePreview||!U||u()})),lt=ie("aria_timeline"),Ae=m(()=>ie("aria_timeline_value",{position:r(Be),duration:r(D)}));function ye(Ce){return!re||!ee?Ce:re(Ce*a())/a()}function Me(Ce){S.actions.internal.startScrubbing(ye(Ce))}function rt(Ce){l()||S.actions.internal.progressScrubbing(ye(Ce))}function vt(Ce){S.actions.internal.completeScrubbing(ye(Ce)),O(Re,!1)}function tt(Ce,Ne,pt){gt(Ce,Ne,pt),O(Re,!0)}function Ot(Ce,Ne,pt){gt(Ce,Ne,pt),O(Re,!0)}function st(){O(Re,!1)}function gt(Ce,Ne,pt){O(Ee,pe(ye(Ce))),O(B,pe(Ne)),pt&&O(ce,pe(pt)),O(ue,pe(qt(Ce)))}function qt(Ce){let Ne=lr((u()?1-Ce:Ce)*a());return u()?`-${Ne}`:Ne}var Qt=d2(),Ve=ve(Qt);Pf(Ve,rs(()=>r(Ke),{children:(Ce,Ne)=>{var pt=ze(),Kt=ve(pt);{var Ye=Je=>{Mf(Je,{get time(){return r(ue)},get isMobile(){return f()},get videoEpisodes(){return r(J)},previewThumbsData:U,get progress(){return r(Ee)},get duration(){return a()},isInteractive:ee})},dt=Je=>{var It=l2(),ei=h(It,!0);g(It),k(()=>fe(ei,r(ue))),b(Je,It)};V(Kt,Je=>{I.features.timelinePreview&&U&&!u()?Je(Ye):Je(dt,!1)})}b(Ce,pt)},$$slots:{default:!0}}));var se=M(Ve,2);let j=m(()=>Math.round(r(X)*100)),le=m(()=>$().has("TIMELINE"));ua(se,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return f()},ariaLabel:lt,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(j)},get ariaValueText(){return r(Ae)},get loadedProgress(){return p()},get filledProgress(){return r(X)},get handleProgress(){return r(X)},get videoEpisodes(){return r(J)},onPointerDown:Me,onHandleMove:rt,onPointerMove:Ot,onPointerUp:vt,onPointerEnter:tt,onPointerLeave:st,onDisabledClick:Pe,isInteractive:ee,get disabled(){return r(le)},get hideHandel(){return l()},get ref(){return w()},set ref(Ce){w(Ce)}}),b(t,Qt),W(),o()}var u2={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 bd(t,e){K(e,!0),G(t,u2);let[i,o]=Fe(),n=()=>C(l,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"duration",3,0),d=Ie(),l=d.ui.isMobile,u=d.ui.t,f=m(()=>lr(s())),_=m(()=>lr(a())),p=m(()=>a()/s()),$=m(()=>u("aria_timeline_value",{position:r(_),duration:r(f)})),y=m(()=>Math.round(r(p)*100));ua(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(y)},get ariaValueText(){return r($)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),W(),o()}var p2=L("<div><!></div>"),f2=L("<div></div>"),m2={hash:"svelte-1gqonyf",code:".timeline.svelte-1gqonyf {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1gqonyf {height:16px;padding:6px 12px 7px;margin-top:6px;}.timeline-stub.svelte-1gqonyf {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1gqonyf {height:8px;}"};function $d(t,e){K(e,!0),G(t,m2);let[i,o]=Fe(),n=()=>C(p,"$isLive$",i),a=()=>C(w,"$isMobile",i),s=()=>C(y,"$adPosition",i),d=()=>C($,"$adDuration",i),l=v(e,"isAds",3,!1),u=v(e,"isHidden",3,!1),f=v(e,"ref",15,void 0),_=Ie(),p=_.state.isLive$,$=_.ads.duration,y=_.ads.position,w=_.ui.isMobile,S=m(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=ze(),A=ve(I);{var P=T=>{var R=p2();let z;var Z=h(R);{var U=ee=>{bd(ee,{get position(){return s()},get duration(){return d()}})},Q=ee=>{Lf(ee,{get showTimeline(){return r(S)},get ref(){return f()},set ref(ae){f(ae)}})};V(Z,ee=>{l()?ee(U):ee(Q,!1)})}g(R),k(ee=>z=oe(R,1,"timeline svelte-1gqonyf",null,z,ee),[()=>({mobile:a()})]),b(T,R)},E=T=>{var R=f2();let z;k(Z=>z=oe(R,1,"timeline-stub svelte-1gqonyf",null,z,Z),[()=>({mobile:a()})]),b(T,R)};V(A,T=>{r(S)?T(P):T(E,!1)})}b(t,I),W(),o()}var c1=require("@vkontakte/videoplayer-shared/es2015");var v2=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function Vf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=v2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(3),g(o),k(()=>n=Se(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 g2=$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 Rf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=g2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 h2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),_2=L('<span class="text svelte-1yhs2ga"> </span>'),b2=L('<span class="text count svelte-1yhs2ga"> </span>'),$2=L("<!> <!>",1),y2={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 yd(t,e){var re,Pe,qe;K(e,!0),G(t,y2);let[i,o]=Fe(),n=()=>C(y,"$currentGridType$",i),a=()=>C(w,"$openedByKeyboard$",i),s=()=>C(S,"$panelOpened$",i),d=()=>C(I,"$isMobile",i),l=v(e,"position",3,0),u=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),_=Ie(),p=(Pe=(re=_.callbacks)==null?void 0:re.onEpisodeChanged)!=null?Pe:c1.noop,$=!!((qe=_.callbacks)!=null&&qe.onEpisodeClicked),y=_.ui.currentGridType$,w=_.ui.episodes.openedByKeyboard$,S=_.ui.episodes.panelOpened$,I=_.ui.isMobile,A=_.ui.t,P=te(void 0),E=ie=>{var J,D,Be;if(!!((J=_.callbacks)!=null&&J.onEpisodeClicked)){let X=Ts(ie);w.set(X),S.set(!0),(Be=(D=_.callbacks)==null?void 0:D.onEpisodeClicked)==null||Be.call(D,X)}},T=te(null),R=m(()=>l()/u());Ze(()=>{var Le;let ie=Xc(r(R),u(),f());ie?((Le=r(T))==null?void 0:Le.time)!==ie.time&&(p(ie),O(T,pe(ie))):O(T,null)});let z=m(()=>{var ie;return((ie=r(T))==null?void 0:ie.text)||""}),Z=m(()=>Ui(n(),"xl")?"FULL":Ui(n(),"m")&&o1(n(),"xl")?"COUNT":"SHORT"),U=m(()=>`${A("tooltip_episodes")}: ${r(z)}`),Q=(ie,Le,J)=>St(this,null,function*(){yield yo(),(ie==null?void 0:ie.getAttribute("aria-expanded"))==="false"&&Le&&!J&&bt(()=>{w.set(!1),ie.focus()})});Ze(()=>{Q(r(P),a(),s())});var ee=ze(),ae=ve(ee);{var _e=ie=>{let Le=m(()=>d()?"px-0":"");At(ie,{get className(){var J;return`w-max btn-full-opacity btn-jc-l ${(J=r(Le))!=null?J:""}`},testId:"btn-episodes",click:E,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(U)},get ref(){return r(P)},set ref(J){O(P,pe(J))},children:(J,D)=>{var Be=ze(),X=ve(Be);{var Ge=ue=>{var B=h2(),ce=ve(B),Ee=h(ce,!0);g(ce);var Ke=M(ce,2),lt=h(Ke);Rf(lt,{}),g(Ke),k(()=>fe(Ee,r(z))),b(ue,B)},Re=ue=>{var B=$2(),ce=ve(B);Vf(ce,{});var Ee=M(ce,2);{var Ke=Ae=>{var ye=_2(),Me=h(ye,!0);g(ye),k(()=>fe(Me,r(z))),b(Ae,ye)},lt=(Ae,ye)=>{{var Me=rt=>{var vt=b2(),tt=h(vt,!0);g(vt),k(()=>fe(tt,f().length)),b(rt,vt)};V(Ae,rt=>{r(Z)==="COUNT"&&rt(Me)},ye)}};V(Ee,Ae=>{r(Z)==="FULL"?Ae(Ke):Ae(lt,!1)})}b(ue,B)};V(X,ue=>{d()?ue(Ge):ue(Re,!1)})}b(J,Be)},$$slots:{default:!0}})};V(ae,ie=>{r(T)&&ie(_e)})}b(t,ee),W(),o()}var w1=require("@vkontakte/videoplayer-shared/es2015");var ai=require("@vkontakte/videoplayer-core/es2015"),_t=require("@vkontakte/videoplayer-shared/es2015"),Kr=require("@vkontakte/videoplayer-statistics/es2015");var Ue=require("@vkontakte/videoplayer-shared/es2015"),zi=require("@vkontakte/videoplayer-shared/es2015");var u1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var x2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Jc=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=>(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ue.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?(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ue.now)()]}),i(),this.events.loadEnded$.next()):(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ue.now)()]}),o())};(0,zi.addScript)(x2,e,this.loadTimeout).then(()=>{Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ue.now)()]}),window.AdmanHTML?(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ue.now)()]}),i(),this.events.loadEnded$.next()):(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ue.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[(0,Ue.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?(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ue.now)()]}),i(),this.events.loadEnded$.next()):(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ue.now)()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ue.now)()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ue.now)()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ue.now)()]}),!d&&(window.AdmanHTML?(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ue.now)()]}),i(),this.events.loadEnded$.next()):(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ue.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ue.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ue.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"}),we(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ue.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;Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ue.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(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ue.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;Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ue.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ue.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ue.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;Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ue.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")=>{Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ue.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ue.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(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ue.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:_}=e,p,$=this.playerState&&we(this.playerState.vsid);$&&(this.isVsidOriginal?p=$:p=parseInt($,36));let{isEmbed:y,immediateOrigin:w}=(0,Ue.detectEmbed)(),S=(P=y?w:window.location.href)!=null?P:window.location.href,I=Vt(q(Vt(q({},u),{dl:encodeURIComponent(S),autoplay:a?1:0,player_width:i,player_height:o,preview:_}),p?{request_id:p}:{}),{duration:f,puid10:u1(i,o),puid11:n?0:1});_||delete I.preview;let A={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:I,browser:{mobile:!1}};try{let E=new window.AdmanHTML;E.setDebug(!1),E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.init(A),this.adman=E,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(A)}`})}catch(E){Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,Ue.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ue.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(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ue.now)()]}),this.adsState){this.log({message:"toggle play"});let i=we(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ue.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(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ue.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(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ue.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(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ue.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(Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ue.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;Ue.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ue.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.destroy(),this.videoElement&&(0,zi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var p1=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 Nf=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 eu,{startTime:f,endTime:_}=u.parse(l);s.startTime=f,s.endTime=_}else if(l.trim()!==""){let u=new Df,{texts:f}=u.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},eu=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}},Df=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let d=0,l=[];for(;d<s.length;){let u=["<",">"].reduce((f,_)=>{let p=s.indexOf(_,d);return f===-1||f>p?p:f},-1);if(u===-1){l.push(s.substring(d));break}l.push(s.substring(d,u)),d=u+1}return l}}),a=new eu;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}},f1=Nf;var iu=require("@vkontakte/videoplayer-shared/es2015"),pa,xi,Bf=0,Of=!1,m1="",v1=(t,e=0,i=0)=>t<e&&t<i,tu=(t,e=0,i=0)=>t>=e&&t<=i,w2=(t,e=0,i=0)=>t>e&&t>i,g1=(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})=>tu(t,u,f));let a=t>=Bf,s=t<Bf;if(Bf=t,s&&(Of=!1),(0,iu.isNonNullable)(pa)&&tu(t,pa.startTime,pa.endTime)&&m1===e.value)return pa;if(!(0,iu.isNonNullable)(xi)&&(n!=null&&n.length)&&!Of){xi=n.find(({startTime:u,endTime:f})=>tu(t,u,f)||a&&v1(t,u,f)),pa=void 0,!(0,iu.isNonNullable)(xi)&&n[n.length-1].endTime<t&&(Of=!0);return}else{if(tu(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))return pa=xi,xi=void 0,m1=e.value,pa;(a&&w2(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime)||s&&v1(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))&&(xi=void 0)}};var h1={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"},S2={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"},ou=t=>{var e,i;return(i=(e=h1[t])!=null?e:h1[S2[t]])!=null?i:void 0};var _1=require("@vkontakte/videoplayer-shared/es2015"),KN=require("@vkontakte/videoplayer-statistics/es2015"),nu=class{constructor(e,i=new _1.Subscription){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var xd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(xd||{});var qr=t=>t!=null?t:0,nl=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(qr(i==null?void 0:i.top)-qr(o==null?void 0:o.top)),left:Math.round(qr(i==null?void 0:i.left)-qr(o==null?void 0:o.left)),bottom:Math.round(qr(i==null?void 0:i.bottom)-qr(o==null?void 0:o.top)),right:Math.round(qr(i==null?void 0:i.right)-qr(o==null?void 0:o.left))}},rl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:qr(e==null?void 0:e.width),height:qr(e==null?void 0:e.height)}};var b1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:u,videoEpisodes:f,previewThumbsData:_,uiConfig:p,coreConfig:$,player:y,disabledControls:w,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:A,replayInteractive:P,stopPlayer:E,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:R,additionalButtons:z,additionalSettingsMenuItems:Z,additionalContextMenuItems:U,playPrevVideo:Q,playNextVideo:ee,looped:ae=!1,statistics:_e,saveRate:re,internalsExposure:Pe})=>{var av,lv,dv;let qe=Vt(q({},$),{configName:[...(av=$.configName)!=null?av:[],"ui"],isAudioDisabled:s,live:Vt(q({},(lv=$.live)!=null?lv:{}),{isLiveCatchUpMode:!!n})}),ie=p,Le=_t.Tracer.createRootTracer(ie.features.saveTraceInfoToFile),J=Le.createComponentTracer("Store"),D=y||new ai.Player(qe,Le);Pe==null||Pe.expose({corePlayer:D});let Be=new _t.Logger,X=new Jc(Be,{loadTimeout:ie.ads.loadTimeout,initTimeout:ie.ads.initTimeout,runtimeTimeout:ie.ads.runtimeTimeout,useAdmanFromNPM:ie.ads.useAdmanFromNPM,volumeMultiplier:ie.ads.volumeMultiplier,isVsidOriginal:ie.ads.isVsidOriginal}),Ge=ta.getInstance(),Re=u==null?void 0:u.pictureInPictureApi,ue=u==null?void 0:u.annotationsApi,B=Be.createComponentLog("Store"),ce,Ee,Ke={},lt=new Lc,Ae=_e?Xt(_e.oneStat.vsid$):ar(void 0),ye=de(ws()),Me=de(!1),rt=(dv=Re==null?void 0:Re.info.isActive$)!=null?dv:new _t.ValueSubject(!1),vt=de(0),tt=de([]),Ot=(0,_t.merge)(D.events.fatalError$,D.events.managedError$).subscribe(c=>tt.update(x=>[...x,c])),st=ar(!1,c=>{let x=D.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),gt=c=>St(void 0,null,function*(){var he;let x=Object.values(_t.InterfaceLanguage).includes(c);if(ie.downloadVKLanguages&&(x&&ie.updateBuiltinLanguages||!zp(c))){let Qe;try{Qe=yield(0,_t.loadVKLangPack)(c,eh,th)}catch(wt){(he=_e==null?void 0:_e.oneStat)==null||he.logError({errorType:"VKLangPack",fatal:!1}),Ge==null||Ge.report(wt,{errorType:"VKLangPack",fatal:!1})}Qe&&(Up({language:c,pack:Qe,fallback:ie.defaultLanguage}),qt.set(c))}zp(c)&&qt.set(c)}),qt=de(t),Qt=de(e);gt(t);let Ve=(c,x)=>{let N=we(qt);return qp(N,c,x,ie.defaultLanguage)},se=de("thumb"),j=(()=>{let c=hi([st,se],([x,N])=>x?"crashed":N);return Vt(q({},c),{is:x=>we(c)===x})})(),le=(()=>{let c=de(new Set(w));return Vt(q({},c),{add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let he=[...N];return new Set(Array.isArray(x)?he.filter(Qe=>!x.includes(Qe)):he.filter(Qe=>Qe!==x))})},includes:x=>{let N=we(c);return Array.isArray(x)?x.every(he=>N.has(he)):N.has(x)}})})();J.log("create store"),B({message:"create store"});let ge=c=>{let x=c.container;x.append(D.experimental.element$.getValue()),Je=new MutationObserver(N=>{let{removedNodes:he}=N[0];he.length&&x.append(D.experimental.element$.getValue())}),Je.observe(x,{childList:!0})},Ce=c=>{B({message:`init video, config: ${JSON.stringify(c)}`}),S?ge(c):(_t.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,_t.now)()]}),D.initVideo(c)),J.log("init video",{isInteractive:S}),c.subtitles&&D.setExternalTextTracks(c.subtitles),ce=c},Ne=new _t.Subject,pt=c=>Ne.next(c),Kt=new _t.Subject,Ye=new _t.Subject,dt=new _t.Subject,Je=null,It={actionRewind$:Kt,actionSeek$:Ye,inPiP$:rt,inFullscreen$:new _t.Observable(c=>ye.subscribe(x=>c.next(x))),actionSetSubtitle$:dt,nextMovie$:Ne};if(_e){let{oneStat:c,statSubscription:x}=_e;S||x.add(c.attachTo(D)),x.add(c.attachToUi(It)),x.add(c.attachToAds(X.events)),c.authorize(a).catch(N=>{B({message:`onestat auth error ${String(N)}`})})}if(Ge){let c=new _t.Subscription,x=(N,he)=>c.add(N.subscribe(he));if(x(D.events.managedError$,N=>{Ge.logIError(N)}),x(D.events.fatalError$,N=>{Ge.logIError(N,!0)}),_e){let{oneStat:N}=_e;x(N.experimental.error$,he=>{Ge.logIError(he)})}Ge.sentrySubscription.add(c)}let ei=()=>{ai.clientChecker.device.isIOS&&Ee&&Dh(Ee).catch(c=>{B({message:`exitIosSafariFullscreen failed: ${c}`})})},We=new _t.Subscription().add(D.experimental.element$.subscribe(c=>{c&&(Ee=c,c.classList.add("player-media"),oa(Re)&&(Re.updateVideoElement(),Re.registryEventHandlers()),S&&c.setAttribute("pip","false"))})).add(D.events.ended$.subscribe(()=>{var c;ei(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(D.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(D.events.started$.subscribe(()=>St(void 0,null,function*(){var x,N;oa(Re)&&(yield Re==null?void 0:Re.revealPictureInPicture());let c=D.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=Ke.onStarted)==null||N.call(Ke,c)}))).add(D.events.willSeek$.subscribe(({from:c,to:x})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,x)})).add(D.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(D.info.position$.subscribe(c=>{var N;let x=D.info.duration$.getValue();isFinite(x)&&x>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,x,c),X.setPosition(c,x))})).add(D.events.fatalError$.subscribe(c=>{var x;(x=l==null?void 0:l.onCrashed)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=l==null?void 0:l.onRecoverableError)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.loadedMetadata$.subscribe(()=>{kt.state.loadedMetadata$.set(!0)})).add(D.info.is3DVideo$.subscribe(c=>{kt.ui.is3DVideo.set(c)})).add(D.info.isEnded$.subscribe(c=>{S&&(c?(A!=null&&A.getValue()&&le.add(jl),le.add("PLAY_BUTTON")):le.remove("PLAY_BUTTON"))})).add(D.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(D.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(D.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(X.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(X.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(X.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(X.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(X.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(X.events.started$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:N.call(x,c)})).add(X.events.timeRemained$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:N.call(x,c)})).add(X.events.ended$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:N.call(x,c)})).add(X.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(X.events.clicked$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:N.call(x,c)})).add(X.events.closed$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:N.call(x,c)})).add(X.events.error$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:N.call(x,c)})).add(X.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(X.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)})),ct=new _t.Subscription,oi=()=>{var wt,Rt,zt;let{debugLog:c}=ie,x,N="#9df7b7",he="#efd169";if(c&&c!==!0){let{colors:Nt}=c;x=c.tag,N=(wt=Nt==null?void 0:Nt[0])!=null?wt:N,he=(zt=(Rt=Nt==null?void 0:Nt[1])!=null?Rt:Nt==null?void 0:Nt[0])!=null?zt:he}let Qe=x?`: ${x}`:"";ct.add(D.events.log$.subscribe(Nt=>{console.debug(`%c sdk${Qe} `,`background:${N};`,`sdk component: ${Nt.component}`,Nt.message)})).add(Be.log$.subscribe(Nt=>{console.debug(`%c ui${Qe} `,`background:${he};`,`ui component: ${Nt.component}.`,Nt.message)}))},Bi=()=>{ct.unsubscribe()},Po=(c,x)=>{J.log("start camera manual rotation",{mx:c,my:x}),D.startCameraManualRotation(c,x)},Ki=(c=!1)=>{J.log("stop camera manual rotation",{immediate:c}),D.stopCameraManualRotation(c)},Mo=(c,x,N)=>{J.log("move camera focus px",{xpx:c,ypx:x,dt:N}),D.moveCameraFocusPX(c,x,N)},Lo=()=>{D.holdCamera()},Pt=()=>{D.releaseCamera()},ht=ar(D.info.position$.getValue(),c=>{let x,N,he=()=>{let Qe=D.info.playbackState$.getValue(),wt=D.info.isLive$.getValue(),Rt=D.info.duration$.getValue(),zt=D.info.position$.getValue();if(Qe&&[ai.PlaybackState.PLAYING,ai.PlaybackState.PAUSED].includes(Qe)){let Nt=wt?zt-Rt:D.getExactTime();Nt!==N&&c(Nt),N=Nt}x=requestAnimationFrame(he)};return he(),()=>cancelAnimationFrame(x)}),H=Xt(D.info.playbackState$),Yt=Xt(D.info.currentBuffer$),Wi=Xt(D.info.isEnded$),Oi=Xt(D.info.isLive$),si=ie.features.playbackRate?Xt(D.info.canChangePlaybackSpeed$):ar(!1),ci=Xt(D.info.liveBufferTime$),uo=Xt(D.info.volume$),po=Xt(D.info.muted$),Zi=Vc(D.info.predefinedQualityLimitType$.pipe((0,_t.map)(c=>c===ai.PredefinedQualityLimits.TRAFFIC_SAVING)),D.info.predefinedQualityLimitType$.getValue()===ai.PredefinedQualityLimits.TRAFFIC_SAVING),Ho=Vc(D.info.predefinedQualityLimitType$.pipe((0,_t.map)(c=>c===ai.PredefinedQualityLimits.HIGH_QUALITY)),D.info.predefinedQualityLimitType$.getValue()===ai.PredefinedQualityLimits.HIGH_QUALITY),Ht=Xt(D.info.autoQualityLimitingAvailable$),ui=Xt(D.info.availableQualities$),xt=Xt(D.info.availableQualitiesFps$),Wt=Xt(D.info.chromecastState$),fo=Xt(D.info.chromecastDeviceName$),Jt=Xt(D.info.currentFormat$),Wn=Xt(D.info.throughputEstimation$),So=Xt(D.info.videoBitrate$),Fo=Xt(D.info.intrinsicVideoSize$),pi=Xt(D.info.duration$),$t=Xt(D.info.isAudioAvailable$),fi=null,mo=D.info.isBuffering$,_i=ar(mo.getValue(),c=>{let x=mo.subscribe(N=>{N&&fi===null?fi=window.setTimeout(()=>{c(mo.getValue()),fi=null},ie.loaderDelay):c(N)});return()=>{x.unsubscribe(),fi&&clearTimeout(fi)}}),_n=()=>{fi&&clearTimeout(fi),fi=null},wi=hi([pi,Oi],([c,x])=>x?-c:c),Co=hi([H],([c])=>c===ai.PlaybackState.PLAYING),Uo=Xt(D.info.atLiveEdge$),bn=Xt(D.info.atLiveDurationEdge$),Si=Xt(D.info.position$),Qn=hi([Si,pi],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),rn=hi([Wt],([c])=>c===ai.ChromecastState.CONNECTED),Vo=Xt(D.info.availableVideoStreams$),sn=ie.features.audioLanguages?Xt(D.info.availableAudioStreams$):ar([]),Er=Xt(D.info.currentVideoStream$),cr=Xt(D.info.currentAudioStream$),Gn=c=>{c.language&&Fp(c.language),D.setVideoStream(c)},$n=c=>{c.language&&Fp(c.language),D.setAudioStream(c)},an=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(he=>"isDefault"in he&&he.isDefault)),x)return x;let N=Ch();return N&&(x=c.find(({language:he})=>N===he)),x!=null||(x=c.at(0)),x},yn=!1;We.add(D.info.availableAudioStreams$.subscribe(c=>{if(!yn&&c.length){let x=an(c);x&&(D.setAudioStream(x),yn=!0)}}));let vo=!1;We.add(D.info.availableVideoStreams$.subscribe(c=>{if(!vo&&c.length){let x=an(c);x&&(D.setVideoStream(x),vo=!0)}}));let et=de(void 0),ln=Xt(D.info.isAutoQualityEnabled$,c=>c&&et.set(void 0)),Yn=Xt(D.info.currentQuality$,()=>et.set(void 0)),jn=hi([et,Yn],([c,x])=>c!=null?c:x),xn=hi(Jt,c=>c!==ai.VideoFormat.MPEG),dn=hi([ui,xt,ln,jn,xn],([c,x,N,he,Qe])=>{let wt=[];Qe&&wt.push({value:"auto",displayValue:Ve("auto_quality_option"),selected:N});let Rt=c.filter(zt=>!(0,_t.isInvariantQuality)(zt));for(let zt of Rt){let Nt=x[zt];wt.push({value:zt,displayValue:`${zt}${Nt?p1(Nt):""}`,selected:N?!1:zt===he})}return wt}),cn=Xt(D.info.currentPlaybackRate$),zo=hi([cn,Uo,bn],([c,x,N])=>{let he=N||S?1:ie.controls.playbackRateMin,Qe=x?1:ie.controls.playbackRateMax,wt=ie.controls.playbackRateStep,Rt=[];for(let zt=he;zt<=Qe;zt+=wt)Rt.push({value:zt,displayValue:zt===1?Ve("playback_rate_1"):Ve("playback_rate",{multiplier:zt.toString(10)}),selected:c===zt});return Rt}),Qi={displayValue:Ve("subtitles_off"),value:"off"},Gi=de(q({},Qi)),Zn=ie.features.subtitles?Xt(D.info.availableTextTracks$):ar([]),wn=gh(),Xn=hi([Zn,Gi],([c,x],N)=>{var wt;let he=[],Qe=c.find(({id:Rt})=>Rt===x.value);if(Qe!=null&&Qe.url){let[,Rt]=(wt=wn.find(Qe.url))!=null?wt:[];if(Rt){N(Rt);return}lt.download(Qe.url).then(zt=>{if(!zt||lt.isDestroyed())return;let Nt=new f1,fs=Qe.language;if(fs){let l0=!!Qe.isAuto,d0=Nt.parse(zt,fs);he.push({lang:fs,subtitles:d0,isAuto:l0,id:Qe.id})}wn.add(Qe.url,he),we(Gi).value===x.value&&N(he)}).catch(zt=>{var Nt;(Nt=_e==null?void 0:_e.oneStat)==null||Nt.logError({errorType:"Subtitles download",fatal:!1}),Ge==null||Ge.report(zt,{errorType:"Subtitles download",fatal:!1})})}N(he)}),ur=hi([cn,Co,Gi],([c,x,N],he)=>{let Rt;if(D.info.isLive$.getValue()&&x&&N.value!==Qi.value){let Nt=()=>{let fs=1e3/(3*c);Rt=setTimeout(Nt,fs),he(Date.now())};return Nt(),()=>clearTimeout(Rt)}}),Xi=hi([Zn,Gi],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:he,isAuto:Qe,id:wt}of c){let Rt=he&&ou(he);he&&Rt&&N.push({displayValue:Qe?Ve("subtitles_auto",{language:Rt}):Rt,value:wt,selected:(x==null?void 0:x.value)===wt,isAuto:Qe})}return N.length?(N.unshift(Vt(q({},Qi),{selected:(x==null?void 0:x.value)===Qi.value})),N):[]}),Ji={available:[],prev:[]},Sn=()=>{var x,N;let c=D.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:Ee==null?void 0:Ee.currentTime)!=null?N:0},Cn=hi([ht,Gi,Xn,ur],([c,x,N,he])=>{var wt;let Qe=D.info.isLive$.getValue();if(Qe&&Ji.prev!==N){let Rt=N.find(({id:Nt})=>Nt===x.value),zt=Ji.prev.find(({id:Nt})=>Nt===x.value);if(Rt){let Nt=Vt(q({},Rt),{subtitles:[...(wt=zt==null?void 0:zt.subtitles)!=null?wt:[],...Rt.subtitles]});Ji.available=[Nt],Ji.prev=N}}if(x&&x.value!==Qi.value){let Rt=Qe?Sn():c,zt=Qe?Ji.available:N;return g1(Rt,x,zt,Qe)}}),go=hi([Cn],([c])=>c!=null&&c.texts?c.texts:[]),eo=de(!0),Tn=hi([Yt,wi,Si,ci],([c,x,N,he])=>{var zt;let Qe=(zt=c==null?void 0:c.end)!=null?zt:0;if(!he)return Qe/x;let Rt=-N+he-x;return(Qe-Rt)/x}),Ro=Xt(D.info.availableSources$),Ar=hi([Ro],([c])=>Object.keys((c==null?void 0:c[ai.VideoFormat.MPEG])||{}).length>0),In=()=>{var N,he,Qe;let c=Object.keys(((he=(N=D.info.availableSources$)==null?void 0:N.getValue())==null?void 0:he[ai.VideoFormat.MPEG])||{}),x=(0,_t.getHighestQuality)(c)||_t.VideoQuality.Q_144P;return(Qe=ce.sources[ai.VideoFormat.MPEG])==null?void 0:Qe[x]},pr=()=>{var x;let c=In();if(c)J.log("download video",{url:c}),fh(c,((x=ce==null?void 0:ce.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";J.log("download video",{message:N}),B({message:N})}},kn=()=>{B({message:"toggle muted"});let c=D.info.muted$.getValue();D.info.volume$.getValue()===0&&!c?An(er()):di(!c)},En=()=>{var c;if(kt.ui.settingsMenu.visible$.set(!1),!we(kt.ui.settingsSubMenu.visible$)){let x=we(kt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let he=rl(x),Qe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:he,position:Qe,name:"settings"})}}J.log("close settings menu")},Pr=(c,x=()=>Promise.resolve())=>St(void 0,null,function*(){var Qe;kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),kt.ui.settingsMenu.visible$.set(!0),yield x();let N=we(kt.ui.settingsMenu.ref$),he=Rs();if((Qe=l==null?void 0:l.uiInfo)!=null&&Qe.onSettingsMenu&&N&&he){let Rt=rl(N),zt=nl(N,he);l.uiInfo.onSettingsMenu({visible:!0,size:Rt,position:zt,name:"settings"})}J.log("open settings menu",{wasOpenedByKeyboard:c})}),Jn=(c,x=!1)=>{var wt;kt.ui.settingsSubMenu.visible$.set(!1);let N=we(kt.ui.settingsMenu.ref$),he=Rs(),Qe=we(kt.ui.settingsMenu.visible$);if((wt=l==null?void 0:l.uiInfo)!=null&&wt.onSettingsMenu&&N&&he)if(Qe&&!x){let zt=rl(N),Nt=nl(N,he);l.uiInfo.onSettingsMenu({visible:!0,size:zt,position:Nt,name:"settings"})}else{let zt=rl(c),Nt={top:0,left:0,bottom:0,right:0},fs=we(kt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:zt,position:Nt,name:fs})}J.log("close settings sub menu")},fr=(c,x)=>{var he;kt.ui.settingsSubMenu.visible$.set(!0),kt.ui.settingsSubMenu.ref$.set(x),kt.ui.settingsSubMenu.name$.set(c);let N=Rs();if((he=l==null?void 0:l.uiInfo)!=null&&he.onSettingsMenu&&x&&N){let wt=rl(x),Rt=nl(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:wt,position:Rt})}J.log("open settings sub menu",{name:c})},er=()=>{var x;let c=Math.max(ie.volumeMinRestore,(x=Rc())!=null?x:0);return c===0?ie.volumeDefault:c},An=c=>{let x=c===0?er():c,N=D.info.muted$.getValue();B({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),N&&c>0&&!s&&(N=!1,Op(!1)),D.setVolume(c,N),X.setVolume(c),Vp(x)},di=c=>{let x=D.info.volume$.getValue();if(B({message:`set muted, currentVolume: ${x}, mute: ${c}`}),D.setMuted(c),X.setVolume(c?0:x),Op(c),!c&&x===0){let N=er();D.setVolume(N),Vp(N),X.setVolume(N)}},qo=de(!1),mr=c=>{J.log("set looped",{isLooped:c}),qo.set(c),D.setLooped(c)};mr(ae);let Mr=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},ot=(c,x=!1)=>{var N;B({message:`set autoplayNextEnabled, value: ${c}`}),J.log("set autoplay next enabled",{autoplayNextEnabled:c}),kt.ui.autoplayNextEnabled$.set(c),kh(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},ft=c=>{B({message:`set timerNextVideoRunning, value: ${c}`}),J.log("set timer next video running",{timerNextVideoRunning:c}),kt.ui.timerNextVideoRunning$.set(c)},Ci=(c=!0)=>{var N;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(N=l==null?void 0:l.onPrevVideoClick)==null?void 0:N.call(l)}catch(he){B({message:"onPrevVideoClick callback failed to execute"})}x&&Q()},to=(c=!0)=>{var N;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(N=l==null?void 0:l.onNextVideoClick)==null?void 0:N.call(l)}catch(he){B({message:"onNextVideoClick callback failed to execute"})}x&&ee()},io=()=>{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)},No=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Do=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Io=()=>{D.prepare()},Xe=()=>{(0,_t.assertNonNullable)(kt);let c=we(kt.ui.controls.disabledControls$),x=we(kt.playerPhase),N={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(B({message:"toggle play"}),x==="ads"){N.action="play",J.log("toggle adman play",N),X.togglePlay();return}let he=()=>{var wt;B({message:"toggle play, call player.play"}),N.action="play",D.play(),(wt=l==null?void 0:l.onPlay)==null||wt.call(l)},Qe=()=>{var wt;B({message:"toggle play, call player.pause"}),N.action="pause",D.pause(),(wt=l==null?void 0:l.onPause)==null||wt.call(l)};if(D.info.isEnded$.getValue()){if(B({message:"toggle play, video ended, seek to 0"}),Kt.next(),Ye.next(Kr.SeekAction.REWIND),S){P==null||P();return}D.seekTime(0),he()}else D.info.playbackState$.getValue()!==ai.PlaybackState.PLAYING?he():Qe();J.log("toggle play",N)},Mt=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{B({message:`set quality, quality: ${c}`}),J.log("set quality",{quality:c}),D.setAutoQuality(c==="auto"),c!=="auto"?(ie.features.qualityDetailsSubMenuEnabled?(Nc({type:"exact_quality",quality:c,videoId:i},N),Jl(),D.setPredefinedQualityLimits(ai.PredefinedQualityLimits.UNKNOWN)):Rp(i,c),et.set(c),D.setQuality(c)):ie.features.qualityDetailsSubMenuEnabled?x==="default"&&(Ii("auto_quality",N),we(Zi)&&Mi(!1),we(Ho)&&oo(!1)):Jl()},Mi=(c,x="as-default")=>{B({message:`set trafficSavingEnabled, value: ${c}`}),J.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?ai.PredefinedQualityLimits.TRAFFIC_SAVING:ai.PredefinedQualityLimits.UNKNOWN;ie.features.qualityDetailsSubMenuEnabled?(Ti(N,x),Xl(!1)):(D.setPredefinedQualityLimits(N),Xl(c))},oo=(c,x="as-default")=>{B({message:`set highQualityEnabled, value: ${c}`}),J.log("set high quality enabled",{highQualityEnabled:c}),Ti(c?ai.PredefinedQualityLimits.HIGH_QUALITY:ai.PredefinedQualityLimits.UNKNOWN,x)},Ti=(c,x)=>{c!==ai.PredefinedQualityLimits.UNKNOWN&&(we(Ht)&&!we(ln)&&Mt("auto",{appliesTo:x,changeReason:"limit-changed"}),Ii(c,x)),D.setPredefinedQualityLimits(c)},Ii=(c,x)=>{Nc({type:c,videoId:i},x),x==="as-default"&&Nc({type:c,videoId:i},"to-video")},Li=c=>{J.log("set playback rate",{playbackRate:c}),D.setPlaybackRate(c),ie.features.saveRate&&re&&!D.info.isLive$.getValue()&&Th(c)},Pn=()=>{let c=we(zo),x=c.findIndex(({selected:he})=>he);if(x===c.length-1)return;let N=c[x+1];Li(N.value)},Yi=()=>{let c=we(zo),x=c.findIndex(({selected:he})=>he);if(x===0)return;let N=c[x-1];Li(N.value)},Mn=(c=Vt(q({},Qi),{selected:!1}))=>{J.log("set subtitles",q({},c)),c&&c.value!==Qi.value&&dt.next(c.isAuto?c.value+"_auto":c.value),Gi.set(c)},Ln=()=>{J.log("toggle subtitles");let c=we(Xi),x=we(Gi),N=we(qt);if((x==null?void 0:x.value)===Qi.value){let he=c.filter(Qe=>Qe.value!==Qi.value).find(Qe=>Qe.value===N)||c[1];Mn(he)}else Mn()},Ko=(c,x,N=!0)=>{var he;if(B({message:`seek to time, time: ${c}`}),J.log("seek to time",{time:c,action:x,forcePrecise:N}),Ye.next(x),D.info.isLive$.getValue()){let Qe=D.info.duration$.getValue(),wt=Math.min(0,Qe+c);D.seekTime(wt,N)}else{if(A!=null&&A.getValue())return;D.info.isEnded$.getValue()&&(B({message:"seek after ended, call callbacks.onPlay"}),(he=l==null?void 0:l.onPlay)==null||he.call(l)),D.seekTime(ps(c),N)}},Vn=c=>{B({message:`seek to episode start time: ${c}`}),J.log("seek to episode start time",{time:c}),Ko(c,Kr.SeekAction.EPISODE,!0)},vr=(c,x)=>{B({message:`seek to percent, percent: ${c}`}),J.log("seek to percent",{percent:c,action:x});let N=we(wi)*c;Ko(N,x,!1)},gr=c=>{B({message:`seek external, time: ${c}`}),J.log("seek external",{time:c}),Ye.next(Kr.SeekAction.UNKNOWN),D.seekTime(D.info.isLive$.getValue()?-c:c)},Lr=c=>{var he,Qe;let x=(he=c.max)!=null?he:"none",N=(Qe=c.min)!=null?Qe:"none";B({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),J.log("set auto quality limits",{max:x,min:N}),D.setAutoQualityLimits(c)},hr=c=>{B({message:`seek external to episode start time: ${c}`}),J.log("seek external to episode start time",{time:c}),Ko(c,Kr.SeekAction.EPISODE,!0)},un=c=>{B({message:`set playback rate to: ${c}`}),J.log("set playback rate external",{playbackRate:c}),D.setPlaybackRate(c)},pn=de(void 0),tr=de(!1),Vr=c=>{B({message:`start scrubbing, progress: ${c}`}),J.log("start scrubbing",{progress:c}),tr.set(!0),ho(c)},ho=c=>{pn.set(c)},Rn,_r,it=()=>{pn.set(void 0),tr.set(!1)},Ut=()=>{clearTimeout(_r),clearTimeout(Rn),Rn=window.setTimeout(()=>{it()},500),Ee==null||Ee.removeEventListener("seeked",Ut)},xe=c=>{B({message:`complete scrubbing, progress: ${c}`}),J.log("complete scrubbing",{progress:c}),vr(c,Kr.SeekAction.SLIDER),we(kt.ui.isMobile)&&we(kt.state.currentFormat$)===ai.VideoFormat.HLS?(Ee==null||Ee.addEventListener("seeked",Ut),_r=window.setTimeout(()=>{Ut()},300)):it()},Lt=hi([ht,wi,pn],([c,x,N],he)=>{he((0,_t.isNonNullable)(N)?N*x:c)}),ti=de(!1),ni=()=>{ti.set(!0)},_o=()=>{ti.set(!1)},Vi=de({width:0,height:0}),ri=hi([Vi],([{width:c}],x)=>{let N=n1(c);x(N)}),li=de(!1),bi=z.filter(c=>mh(c)),ji=hi([ri,li],([c,x])=>x?bi.filter(N=>!N.hideOnMobile):bi.filter(N=>{var he;return!((he=N.hideOnDesktopGridTypes)!=null&&he.includes(c))})),Ri=de(z.filter(c=>vh(c))),ki=hi([Ri,ri],([c,x])=>c.filter(N=>{var he;return!((he=N.hideOnDesktopGridTypes)!=null&&he.includes(x))})),Qr=hi([ki,ji],([c,x])=>[...ie.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...ie.features.additionalButtons?x.map((N,he)=>{var Qe;return{id:he,weight:he,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(Qe=N.ariaLabel)!=null?Qe:N.tooltip,tooltipText:N.tooltip}}):[]]),Oe=de(Z),jt=hi([Oe],([c])=>ie.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?Vt(q({},x),{onClick:x.onChangeEnabled}):x):[]),$i=(c,x)=>{let N=we(Ri).map(he=>he.id!==c?he:q(q({},he),x));Ri.set(N)},ko=c=>{let x=we(Ri);if(x.some(N=>N.id===c.id)){B({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Ri.set(x)},fn=c=>{let x=we(Ri);if(!x.some(N=>N.id===c)){B({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Ri.set(x)},Gr=c=>{Ye.next(Kr.SeekAction.LIVE),B({message:"live switch to low latency "+c}),J.log("live switch to low latency "+c),D.setLiveLowLatency(c)},Nn=(c,x)=>{let N=we(Oe).map(he=>he.id!==c?he:q(q({},he),x));Oe.set(N)},Rr=c=>{let x=we(Oe);if(x.some(N=>N.id===c.id)){B({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Oe.set(x)},hl=c=>{let x=we(Oe);if(!x.some(N=>N.id===c)){B({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Oe.set(x)},Dn=de(U),_l=hi([Dn],([c])=>ie.features.additionalContextMenuItems?c:[]),ya=(c,x)=>{let N=we(Dn).map(he=>he.id!==c?he:q(q({},he),x));Dn.set(N)},xa=c=>{let x=we(Dn);if(x.some(N=>N.id===c.id)){B({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Dn.set(x)},Ls=c=>{let x=we(Dn);if(!x.some(N=>N.id===c)){B({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Dn.set(x)},Tt=hi([li,st],([c,x],N)=>{N(c&&x)}),Et=()=>{Ye.next(Kr.SeekAction.LIVE),B({message:"switch to active live"}),J.log("switch to active live"),D.seekTime(0),D.info.playbackState$.getValue()!==ai.PlaybackState.PLAYING&&kt.actions.internal.togglePlay()},Bn=()=>{J.log("skip adman"),X.skip()},Nr=(c=!0)=>{(0,_t.assertNonNullable)(kt),B({message:`switch from ads to video, callPlay: ${c}`}),J.log("switch from ads to video",{callPlay:c}),se.set("video"),c&&D.play()},Vs=()=>{(0,_t.assertNonNullable)(kt),B({message:"switch from video to ads"}),J.log("switch from video to ads"),kt.actions.internal.pause(),ei(),se.set("ads")},Dr=c=>{(0,_t.assertNonNullable)(kt);let x=c?"LiveWaitingStart":"thumb";J.log("set live waiting start",{state:c,playerPhase:x}),se.set(x)},Br=c=>{(0,_t.assertNonNullable)(kt);let x=c?"LiveWaitingRecover":"thumb";J.log("set live waiting recover",{state:c,playerPhase:x}),se.set(x)},us=c=>{(0,_t.assertNonNullable)(kt);let x=c?"LiveWaitingRecord":"thumb";J.log("set live waiting record",{state:c,playerPhase:x}),se.set(x)},bl=()=>((0,_t.assertNonNullable)(kt),J.log("get debug text data"),uh(D,ce,kt)),Jd=()=>((0,_t.assertNonNullable)(kt),JSON.stringify(Le.getFinishedSpans())),Au=()=>((0,_t.assertNonNullable)(kt),ph(D,ce,kt)),Rs=()=>Ee,Pu=()=>{B({message:"toggle chromecast"}),J.log("toggle chromecast"),D.toggleChromecast()},$l=c=>{var N;if((0,_t.assertNonNullable)(kt),D.info.isEnded$.getValue())return;let x=!c;if(we(kt.playerPhase)==="ads"){B({message:`pause ads, internalCall: ${x}`}),J.log("pause ads",{internalCall:x}),X.pause();return}B({message:`pause video, internalCall: ${x}`}),J.log("pause video",{internalCall:x}),x&&((N=l==null?void 0:l.onPause)==null||N.call(l)),D.pause()},yl=c=>{var N;(0,_t.assertNonNullable)(kt);let x=!c;if(we(kt.playerPhase)==="ads"){B({message:`play ads, internalCall: ${x}`}),J.log("play ads",{internalCall:x}),X.play();return}B({message:`play video, internalCall: ${x}`}),J.log("play video",{internalCall:x}),x&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),D.play()},ec=c=>{(0,_t.assertNonNullable)(kt);let x=!c;if(we(kt.playerPhase)==="ads"){B({message:"player cannot be stopped during ads via external method"});return}B({message:`player will be stopped, internalCall: ${x}`}),E==null||E()},tc=(c,x)=>{(0,_t.assertNonNullable)(kt),B({message:`first start, show ads: ${c}, internalCall: ${!x}`}),J.log("first start",{showAds:c,external:x}),c?se.set("ads"):(se.set("video"),x?D.play():kt.actions.internal.togglePlay())},wa=()=>(B({message:"getting time codes"}),f),ic=()=>{let c=wa();if(!c||[0,1].includes(c.length))return;let x=D.info.position$.getValue();return c.find(N=>N.time>x)},oc=c=>{let x=c;x||(x=ic());let N=D.info.position$.getValue();J.log("seek to next episode",q({currentTime:N},x)),x&&(B({message:"seek to next episode"}),Ko(x.time,Kr.SeekAction.EPISODE,!0))},nc=()=>{let c=wa();if(!c||[0,1].includes(c.length))return;let x=D.info.position$.getValue(),N=c.findIndex(Qe=>Qe.time>x),he=N===-1?c.length-2:N-2;if(!(he<0))return c[he]},rc=c=>{let x=c;x||(x=nc());let N=D.info.position$.getValue();J.log("seek to prev episode",q({currentTime:N},x)),x&&(B({message:"seek to prev episode"}),Ko(x.time,Kr.SeekAction.EPISODE,!0))},Mu=()=>(B({message:"getting preview thumbs data"}),J.log("get preview thumbs data",q({},_)),_),Lu=()=>St(void 0,null,function*(){let c=Re==null?void 0:Re.isActive(),x="none";Re!=null&&Re.isActive()?(x="remove",yield Re==null?void 0:Re.remove()):(x="request",yield Re==null?void 0:Re.request()),J.log("toggle picture in picture",{isActive:c,action:x})}),He=(c=-90)=>{J.log("rotate video",{alphaDiff:c}),vt.update(x=>x+c)},Zt=de([]);I==null||I.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[he,Qe],subjects:wt}=c[N];N===0&&he!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:he/1e3,text:"",interactive:!0,completed:ie.features.interactiveTimeOpenUri?!wt.length||wt.every(Rt=>Rt.isRemoved):!wt.length}),Qe!==1/0&&x.push({time:Qe/1e3,text:"",interactive:!1,completed:!0})}Zt.set(x)});let Wo=de(!1);A==null||A.subscribe(c=>{c&&we(tr)&&it()});let ps=c=>{if(!S)return c;let x=we(Zt),N=we(wi),Qe=we(Si)/N,wt=x.find(Rt=>Rt.interactive&&!Rt.completed&&Rt.time>Qe);return typeof(wt==null?void 0:wt.time)=="number"?Math.min(c,wt.time-.05):c},Qo=()=>{kt.ui.episodes.panelOpened$.set(!1)},a0=()=>{J.log("destroy store"),clearTimeout(_r),clearTimeout(Rn),We.unsubscribe(),ct.unsubscribe(),D.destroy(),X.destroy(),_e==null||_e.destroy(),Ge==null||Ge.destroy(),Ot.unsubscribe(),Je==null||Je.disconnect(),Je=null,lt.destroy()},kt={interfaceLanguage$:qt,isCyrillicRelatedInterface$:Qt,initVideo:Ce,videoId:i,isClip:o,playerPhase:j,vsid:Ae,state:{positionExact$:ht,positionWithScrubbing$:Lt,duration$:wi,playbackState$:H,isPlaying$:Co,isLoaderVisible:_i,bufferedProgress$:Tn,isLive$:Oi,canChangePlaybackSpeed$:si,isActiveLive$:Uo,isOldestAvailableLive$:bn,isRewindableLive$:Qn,isEnded$:Wi,muted$:po,volume$:uo,trafficSavingEnabled$:Zi,highQualityEnabled$:Ho,autoQualityLimitingAvailable$:Ht,availableVideoStreams$:Vo,availableAudioStreams$:sn,videoStream$:Er,audioStream$:cr,currentQuality$:jn,isAutoQualityEnabled$:ln,availableQualities$:dn,currentPlaybackRate$:cn,availablePlaybackRates$:zo,currentSubtitle$:Gi,availableTextTracks$:Zn,availableSubtitlesList$:Xi,currentSubtitleCaptions$:go,isAutoSubtitleCaptionVisible$:eo,chromecastState$:Wt,chromecastDeviceName$:fo,chromecastConnected$:rn,currentFormat$:Jt,throughputEstimation$:Wn,videoBitrate$:So,videoSize$:Fo,errorLog$:tt,crashed$:st,isAudioAvailable$:$t,isAudioDisabled:!!s,canDownload:ie.features.download&&!!d,availableSources$:Ro,hasMpegSources$:Ar,isInteractive:S,showInteractiveGraph:ie.features.interactiveGraph,showSeekToInteractive:ie.features.seekToInteractive,showPlayPrevChapter:ie.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ie.features.interactiveTimeIndicator&&!!we(Zt).length,interactiveEpisodes$:Zt,isInteractiveTime$:A?Xt(A):de(!1),isInteractiveExpectation$:Wo,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:R,looped$:qo,loadedMetadata$:de(!1),isAutoQualityAvailable$:xn},ui:{t:Ve,controlsVisible:de(!1),touched:de(!1),controls:{prevButton:de(void 0),playButton:de(void 0),replayButton:de(void 0),nextButton:de(void 0),playPrevChapterButton:de(void 0),seekToInteractiveButton:de(void 0),interactiveGraphButton:de(void 0),liveButton:de(void 0),time:de(void 0),episodes:de(void 0),volume:de(void 0),subtitles:de(void 0),settings:de(void 0),context:de(void 0),chromecast:de(void 0),pip:de(void 0),fullscreen:de(void 0),vkLogo:de(void 0),interactiveTimeIndicator:de(void 0),timeline:de(void 0),autoplayNextToggle:de(void 0),additionalButtons:z.length?z.reduce(c=>[...c,de(void 0)],[]):[],disabledControls$:le},modals:{hotKeyMap:{show:de(!1),data:de({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ye,isFullscreenOpenedByKeyboard:Me,rotateAlpha:vt,isAutoplay:de(!1),debugPanelVisible:de(!1),episodes:{panelOpened$:de(!1),openedByKeyboard$:de(!1)},contextMenu:{visible$:de(!1),btnRef$:de(void 0),openedByBtnKeyboard$:de(!1),openedByHotKey$:de(!1),lastActiveElem$:de(void 0),showContextMenuBtn$:de(!1),position$:de({top:0,left:0})},playerSize:Vi,isMobile:li,mobileNotReportControlHidden$:Tt,mobileUnmuteButtonExpanded:de(!1),mobileUnmuteButtonVisible:de(!1),icon3DVideoVisible:de(!1),scrubbingInProgress:tr,volumeChangingInProgress:ti,is3DVideo:de(!1),currentGridType$:ri,additionalButtonsDeprecated$:ji,additionalDesktopControlPanelRightButtons$:Qr,additionalSettingsMenuItems$:jt,additionalContextMenuItems$:_l,interactiveHideMobileControls:de(!1),overlayContainer$:de(void 0),startedByKeyboard$:de(!1),autoplayNextEnabled$:de(!1),timerNextVideoRunning$:de(!0),settingsMenu:{visible$:de(!1),ref$:de(void 0),openedByBtnKeyboard$:de(!1)},settingsSubMenu:{visible$:de(!1),ref$:de(void 0),name$:de(void 0)}},ads:{position:de(0),duration:de(0),playbackState:de("inactive"),canSkip:de(!1),secondsToWatchBeforeSkip:de(0),postrollPassed:de(!1)},webApi:{pictureInPictureApi:Re,annotationsApi:ue},actions:{internal:{preload:Io,firstStart:c=>tc(c,!1),play:()=>yl(!1),pause:()=>$l(!1),togglePlay:Xe,toggleMuted:kn,openSettingsMenu:Pr,closeSettingsMenu:En,openSettingsSubMenu:fr,closeSettingsSubMenu:Jn,setVolume:An,startVolumeChanging:ni,stopVolumeChanging:_o,setVideoStream:Gn,setAudioStream:$n,setQuality:Mt,setTrafficSavingEnabled:Mi,setHighQualityEnabled:oo,setPlaybackRate:Li,incrementPlaybackRate:Pn,decrementPlaybackRate:Yi,setSubtitle:Mn,toggleSubtitle:Ln,togglePictureInPicture:Lu,startScrubbing:Vr,progressScrubbing:ho,completeScrubbing:xe,toggleChromecast:Pu,switchToActiveLive:Et,switchFromAdsToVideo:Nr,switchFromVideoToAds:Vs,skipAd:Bn,setLiveWaitingStart:Dr,setLiveWaitingRecover:Br,setLiveWaitingRecord:us,getDebugTextData:bl,getTraceTextData:Jd,getDebugPanelData:Au,getVideoElement:Rs,seekTime:(c,x,N)=>Ko(c,x,N),clearDelayedBufferingCheckTimeout:_n,seekEpisodeStartTime:Vn,seekToPercent:vr,getNextEpisode:ic,seekToNextEpisode:oc,getPrevEpisode:nc,seekToPrevEpisode:rc,startLogging:oi,stopLogging:Bi,startCameraManualRotation:Po,stopCameraManualRotation:Ki,moveCameraFocusPX:Mo,holdCamera:Lo,releaseCamera:Pt,getVideoEpisodes:wa,getPreviewThumbsData:Mu,downloadVideo:pr,addLanguage:Up,setLanguage:gt,nextMovie:pt,videoRotate:He,correctSeekTimeToInteractive:ps,replayInteractive:P,setLooped:mr,reportProblem:Mr,setAutoplayNextEnabled:ot,setTimerNextVideoRunning:ft,prevVideoClick:Ci,nextVideoClick:to,nextVideoAnnouncementShow:io,nextVideoAnnouncementClick:To,nextVideoAnnouncementAuto:No,nextVideoAnnouncementCancel:Do},external:{firstStart:c=>tc(c,!0),play:()=>yl(!0),pause:()=>$l(!0),stop:()=>ec(!0),seekTime:c=>gr(c),seekEpisodeStartTime:c=>hr(c),setPlaybackRate:c=>un(c),setAutoQualityLimits:c=>Lr(c),setMuted:di,setVolume:An,returnFocusToEpisodes:Qo,updateAdditionalSettingsItem:Nn,addAdditionalSettingsItem:Rr,removeAdditionalSettingsItem:hl,updateAdditionalContextItem:ya,addAdditionalContextItem:xa,removeAdditionalContextItem:Ls,updateAdditionalButton:$i,addAdditionalButton:ko,removeAdditionalButton:fn,setLiveLowLatency:Gr}},callbacks:l,setUiCallbacks:c=>{Ke=q({},c)},getAdmanWrapper:()=>X,getLogger:()=>Be,getPlayer:()=>D,destroy:a0};return kt};var ru=(t,e,i,o)=>{var s;if(!t)return;let n=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],a=["interactiveTimeIndicator"];for(let[d,l]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(d)){let u=(s=i[d])==null?void 0:s.getBoundingClientRect(),f=(o||a.includes(d))&&!!u&&!!(u.right-u.left),{top:_,left:p,bottom:$,right:y}=nl(i[d],t);l.set({positionStartX:0,positionEndX:0,left:f?p:0,right:f?y:0,top:f?_:0,bottom:f?$:0,isDisplayed:f})}};var su=(t,e,i)=>St(void 0,null,function*(){yield yo(),e&&i&&(i.focus(),t.set(!1))});var C2=$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 Hf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=C2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 Ff(t,e){K(e,!0);let[i,o]=Fe(),n=()=>C(l,"$contextMenuVisible$",i),a=v(e,"disabled",3,!1),s=v(e,"ariaLabel",3,""),d=Ie(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,$=te(void 0);Ze(()=>{r($)&&bt(()=>{p.set(r($))})});let y=A=>{let P=Ts(A),E=Qh(r($));_.set(E),u.set(P),l.set(!n())},w=()=>{f.set(!0)},S=()=>{f.set(!1)},I=m(()=>n()?"opened":"");At(t,{get className(){return r(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:y,focus:w,blur:S,get ariaExpanded(){return n()},get ref(){return r($)},set ref(A){O($,pe(A))},children:(A,P)=>{Hf(A,{})},$$slots:{default:!0}}),W(),o()}var T2=t=>{t.stopPropagation()},I2=L("<div><!> <div></div> <div></div></div>"),k2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
227
230
 
228
231
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
229
232
  }
@@ -248,8 +251,8 @@ Try switching the\xA0quality to\xA0Auto.`},Rh=_1;var ws=new Map;ws.set(pl.Interf
248
251
  opacity: 0;
249
252
  }
250
253
  }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
251
- 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 Ul(t,e){var Te;if(new.target)return E($({component:Ul},t));P(e,!0),se(t,vy);let[i,o]=tt(),n=()=>k(T,"$isMobile",i),r=()=>k(B,"$areControlsVisible",i),l=()=>k(z,"$currentGridType$",i),d=()=>k(D,"$isInteractiveTime$",i),a=()=>k(x,"$interactiveControlsOpacity$",i),c=()=>k(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>k(V,"$isFullscreen",i),g=p(e,"ref",15,void 0),m=pe(void 0),h=Fe(),_=mo(),{interactiveControlsOpacity$:x}=_,T=h.ui.isMobile,V=h.ui.isFullscreen,D=h.state.isInteractiveTime$,R=_.showInteractiveTimeIndicatorTooltip$,B=h.ui.controlsVisible,I=(Te=h.callbacks)==null?void 0:Te.onInteractiveTimeIndicatorClick,z=h.ui.currentGridType$,Q=b(()=>!n()&&r()),F=b(()=>Xs(l(),"s")),G=b(()=>!d()||!!a()||s(Q)),J=pe(!1);lt(()=>{Y(J,Le(s(G)))});let ce=()=>{Y(J,!0)},ee=()=>{var Ye;Ce(),(Ye=s(m))==null||Ye.addEventListener("animationiteration",ce,{once:!0})},Ce=()=>{var Ye;Y(J,!1),(Ye=s(m))==null||Ye.removeEventListener("animationiteration",ce)},Se=Ye=>{R.set(Ye)},ne=b(()=>c()&&!s(G));lt(()=>{c()?ee():Ce()});let ie=()=>{s(G)||(R.set(!0),I==null||I())};ur(()=>{R.clearTimeout(),Ce()});let be=()=>{R.set(!1)},j=X("tooltip_interactive_interaction_time_indicator");var re=my();re.__mousemove=[fy],re.__click=ie;var K=w(re);So(K,{tooltipContent:j,get tooltipActive(){return s(ne)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:Se,get ref(){return g()},set ref(Ye){g(Ye)},children:(Ye,Z)=>{Ll(Ye,{completed:!0})},$$slots:{default:!0}});var qe=H(K,2);St(qe,Ye=>g(Ye),()=>g());var Be=H(qe,2);St(Be,Ye=>Y(m,Ye),()=>s(m)),y(re),N(()=>{ae(re,"mobile",n()),ae(re,"fullscreen",f()),ae(re,"invisible",s(G)),ae(re,"icon-small",s(F)),ae(qe,"hidden",s(G)),ae(Be,"paused",s(J))}),Kt("mouseleave",re,be),C(t,re);var fe=A({get ref(){return g()},set ref(Ye=void 0){g(Ye),u()},$set:L,$on:(Ye,Z)=>M(e,Ye,Z)});return o(),fe}xt(["mousemove","click"]);function Qd(t,e){if(new.target)return E($({component:Qd},t));P(e,!0);let i=p(e,"buttonComponent",7),o=p(e,"buttonComponentProps",7),n=p(e,"tooltipText",7),r=p(e,"disabledTooltipContent",7),l=p(e,"disabled",7,!1),d=p(e,"className",7,void 0),a=p(e,"ref",15);return So(t,{get disabled(){return l()},get tooltipContent(){return n()},get disabledTooltipContent(){return r()},get className(){return d()},get ref(){return a()},set ref(c){a(c)},children:(c,f)=>{var g=Xe();let m=b(i);var h=Ee(g);zi(h,()=>s(m),(_,x)=>{x(_,xs(()=>{var T;return(T=o())!=null?T:{}}))}),C(c,g)},$$slots:{default:!0}}),A({get buttonComponent(){return i()},set buttonComponent(c){i(c),u()},get buttonComponentProps(){return o()},set buttonComponentProps(c){o(c),u()},get tooltipText(){return n()},set tooltipText(c){n(c),u()},get disabledTooltipContent(){return r()},set disabledTooltipContent(c){r(c),u()},get disabled(){return l()},set disabled(c=!1){l(c),u()},get className(){return d()},set className(c=void 0){d(c),u()},get ref(){return a()},set ref(c){a(c),u()},$set:L,$on:(c,f)=>M(e,c,f)})}var Ss={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var hy=Re('<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 np(t,e){if(new.target)return E($({component:np},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=hy();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}function rp(t,e){if(new.target)return E($({component:rp},t));P(e,!0);let i=p(e,"isPrev",7,!1),o=p(e,"isMobile",7,!1),n=b(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),r=b(()=>i()?"prev-icon":"next-icon");return np(t,{get style(){return s(n)},get"data-testid"(){return s(r)}}),A({get isPrev(){return i()},set isPrev(l=!1){i(l),u()},get isMobile(){return o()},set isMobile(l=!1){o(l),u()},$set:L,$on:(l,d)=>M(e,l,d)})}var _y=U('<div class="icon-background-mobile svelte-xtk2k4"></div>'),$y=U("<!> <!>",1),by={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 Js(t,e){if(new.target)return E($({component:Js},t));P(e,!0),se(t,by);let i=p(e,"ref",15,void 0),o=p(e,"isMobile",7,!1),n=p(e,"disabled",7,!1),r=p(e,"type",7),l=p(e,"click",7),a=Fe().ui.t,c=b(()=>r()==="prev"?a("tooltip_previous"):a("tooltip_next")),f=b(()=>r()==="prev"?a("hotkey_map_item_prev_video_value"):a("hotkey_map_item_next_video_value")),g=b(()=>`btn-${o()?"m":"d"}--${r()}`);return Wt(t,{get className(){return s(g)},get testId(){var m;return`btn-${(m=r())!=null?m:""}`},get disabled(){return n()},get ariaLabel(){return s(c)},get click(){return l()},get ariaKeyShortCut(){return s(f)},get ref(){return i()},set ref(m){i(m)},children:(m,h)=>{var _=$y(),x=Ee(_);{var T=R=>{var B=_y();C(R,B)};q(x,R=>{o()&&R(T)})}var V=H(x,2);let D=b(()=>r()==="prev");rp(V,{get isMobile(){return o()},get isPrev(){return s(D)}}),C(m,_)},$$slots:{default:!0}}),A({get ref(){return i()},set ref(m=void 0){i(m),u()},get isMobile(){return o()},set isMobile(m=!1){o(m),u()},get disabled(){return n()},set disabled(m=!1){n(m),u()},get type(){return r()},set type(m){r(m),u()},get click(){return l()},set click(m){l(m),u()},$set:L,$on:(m,h)=>M(e,m,h)})}var yy=Re('<svg><!><path fill="var(--btn-color, #fff)" d="M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function zl(t,e){if(new.target)return E($({component:zl},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=yy();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var Jm=require("@vkontakte/videoplayer-shared/es2015");var xy=U('<div class="icon-background-mobile svelte-1ot3duq"></div>'),wy=U('<!> <div class="svelte-1ot3duq"><!></div>',1),Cy={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 La(t,e){if(new.target)return E($({component:La},t));P(e,!0),se(t,Cy);let i=p(e,"ref",15,void 0),o=p(e,"isMobile",7,!1),n=p(e,"disabled",7,!1),r=p(e,"className",7,""),l=p(e,"click",7,Jm.noop),d=X("tooltip_restart"),a=b(()=>`${o()?"btn-m--play":""} ${r()}`);return Wt(t,{get className(){return s(a)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return rs.KeyK},get ref(){return i()},set ref(c){i(c)},children:(c,f)=>{var g=wy(),m=Ee(g);{var h=T=>{var V=xy();C(T,V)};q(m,T=>{o()&&T(h)})}var _=H(m,2),x=w(_);zl(x,{}),y(_),N(()=>ae(_,"mobile",o())),C(c,g)},$$slots:{default:!0}}),A({get ref(){return i()},set ref(c=void 0){i(c),u()},get isMobile(){return o()},set isMobile(c=!1){o(c),u()},get disabled(){return n()},set disabled(c=!1){n(c),u()},get className(){return r()},set className(c=""){r(c),u()},get click(){return l()},set click(c=Jm.noop){l(c),u()},$set:L,$on:(c,f)=>M(e,c,f)})}var Sy=Re('<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 cs(t,e){if(new.target)return E($({component:cs},t));P(e,!0);let i=p(e,"width",7,"24"),o=p(e,"height",7,"24"),n=p(e,"viewBox",7,"0 0 24 24"),r=p(e,"fill",7,"var(--btn-color)");var l=Sy(),d=w(l);return y(l),N(()=>{ve(l,"width",i()),ve(l,"height",o()),ve(l,"viewBox",n()),ve(d,"fill",r())}),C(t,l),A({get width(){return i()},set width(a="24"){i(a),u()},get height(){return o()},set height(a="24"){o(a),u()},get viewBox(){return n()},set viewBox(a="0 0 24 24"){n(a),u()},get fill(){return r()},set fill(a="var(--btn-color)"){r(a),u()},$set:L,$on:(a,c)=>M(e,a,c)})}var Ty=Re('<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 ea(t,e){if(new.target)return E($({component:ea},t));P(e,!0);let i=p(e,"width",7,"24"),o=p(e,"height",7,"24"),n=p(e,"viewBox",7,"0 0 24 24"),r=p(e,"fill",7,"var(--btn-color)");var l=Ty(),d=w(l);return y(l),N(()=>{ve(l,"width",i()),ve(l,"height",o()),ve(l,"viewBox",n()),ve(d,"fill",r())}),C(t,l),A({get width(){return i()},set width(a="24"){i(a),u()},get height(){return o()},set height(a="24"){o(a),u()},get viewBox(){return n()},set viewBox(a="0 0 24 24"){n(a),u()},get fill(){return r()},set fill(a="var(--btn-color)"){r(a),u()},$set:L,$on:(a,c)=>M(e,a,c)})}var ev=require("@vkontakte/videoplayer-shared/es2015");var Iy=U('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ky=U('<!> <div class="svelte-1ot3duq"><!></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 Va(t,e){if(new.target)return E($({component:Va},t));P(e,!0),se(t,Ey);let[i,o]=tt(),n=()=>k(r,"$fakeIsPlaying$",i),{fakeIsPlaying$:r}=mo(),l=p(e,"ref",15,void 0),d=p(e,"isMobile",7,!1),a=p(e,"isPlaying",7,!1),c=p(e,"disabled",7,!1),f=p(e,"className",7,""),g=p(e,"click",7,ev.noop),h=Fe().ui.t,{toggle:_}=r,x=b(()=>_),T=b(()=>n()!==null),V=b(()=>s(T)?n():a()),D=b(()=>s(V)?h("tooltip_pause"):h("tooltip_play")),R=b(()=>s(V)?ea:cs),B=b(()=>`${d()?"btn-m--play":""} ${f()}`),I=b(()=>s(T)?s(x):g());Wt(t,{get className(){return s(B)},testId:"btn-play",get click(){return s(I)},get disabled(){return c()},get ariaLabel(){return s(D)},get ariaKeyShortCut(){return rs.KeyK},get ref(){return l()},set ref(Q){l(Q)},children:(Q,F)=>{var G=ky();let J=b(()=>s(R));var ce=Ee(G);{var ee=ne=>{var ie=Iy();C(ne,ie)};q(ce,ne=>{d()&&ne(ee)})}var Ce=H(ce,2),Se=w(Ce);zi(Se,()=>s(J),(ne,ie)=>{ie(ne,{})}),y(Ce),N(()=>ae(Ce,"mobile",d())),C(Q,G)},$$slots:{default:!0}});var z=A({get ref(){return l()},set ref(Q=void 0){l(Q),u()},get isMobile(){return d()},set isMobile(Q=!1){d(Q),u()},get isPlaying(){return a()},set isPlaying(Q=!1){a(Q),u()},get disabled(){return c()},set disabled(Q=!1){c(Q),u()},get className(){return f()},set className(Q=""){f(Q),u()},get click(){return g()},set click(Q=ev.noop){g(Q),u()},$set:L,$on:(Q,F)=>M(e,Q,F)});return o(),z}var Py=Re('<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 sp(t,e){if(new.target)return E($({component:sp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Py();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}function Wl(t,e){if(new.target)return E($({component:Wl},t));P(e,!0);let i=p(e,"ref",15,void 0),o=p(e,"hidden",7,!1),n=p(e,"disabled",7,!1),r=p(e,"click",7),l=X("tooltip_interactive_go_back"),d=b(()=>o()?"hidden":"");return Wt(t,{get className(){return s(d)},testId:"btn-play-prev-chapter",ariaLabel:l,get disabled(){return n()},get click(){return r()},get ref(){return i()},set ref(a){i(a)},children:(a,c)=>{sp(a,{})},$$slots:{default:!0}}),A({get ref(){return i()},set ref(a=void 0){i(a),u()},get hidden(){return o()},set hidden(a=!1){o(a),u()},get disabled(){return n()},set disabled(a=!1){n(a),u()},get click(){return r()},set click(a){r(a),u()},$set:L,$on:(a,c)=>M(e,a,c)})}var Ay=U('<span class="gutter svelte-et3q1q"><span class="toggler svelte-et3q1q"><!></span></span>'),My={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 ql(t,e){if(new.target)return E($({component:ql},t));P(e,!0),se(t,My);let[i,o]=tt(),n=()=>k(d,"$autoplayNextEnabled$",i),r=p(e,"ref",15,void 0),l=Fe(),d=l.ui.autoplayNextEnabled$,a=l.actions.internal.setAutoplayNextEnabled;Wt(t,{click:()=>{a(!n(),!0)},get ref(){return r()},set ref(g){r(g)},children:(g,m)=>{var h=Ay(),_=w(h),x=w(_);{var T=D=>{cs(D,{width:"14",height:"14",fill:"#000"})},V=D=>{ea(D,{width:"14",height:"14",fill:"#000"})};q(x,D=>{n()?D(T):D(V,!1)})}y(_),y(h),N(()=>ae(_,"enabled",n())),C(g,h)},$$slots:{default:!0}});var f=A({get ref(){return r()},set ref(g=void 0){r(g),u()},$set:L,$on:(g,m)=>M(e,g,m)});return o(),f}var Ly=Re('<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 ap(t,e){if(new.target)return E($({component:ap},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Ly();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}function Kl(t,e){if(new.target)return E($({component:Kl},t));P(e,!0);let i=p(e,"ref",15,void 0),o=p(e,"hidden",7,!1),n=p(e,"disabled",7,!1),r=p(e,"click",7),l=X("tooltip_interactive_seek"),d=b(()=>o()?"hidden":"");return Wt(t,{get className(){return s(d)},testId:"btn-seek-to-interactive",ariaLabel:l,get disabled(){return n()},get click(){return r()},get ref(){return i()},set ref(a){i(a)},children:(a,c)=>{ap(a,{})},$$slots:{default:!0}}),A({get ref(){return i()},set ref(a=void 0){i(a),u()},get hidden(){return o()},set hidden(a=!1){o(a),u()},get disabled(){return n()},set disabled(a=!1){n(a),u()},get click(){return r()},set click(a){r(a),u()},$set:L,$on:(a,c)=>M(e,a,c)})}var Vy=Re('<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 lp(t,e){if(new.target)return E($({component:lp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Vy();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var Ry={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function dp(t,e){if(new.target)return E($({component:dp},t));P(e,!0),se(t,Ry);let i=p(e,"isOpened",7,!1),o=b(()=>i()?"graph-close-icon":"graph-open-icon");return lp(t,{get"data-testid"(){return s(o)}}),A({get isOpened(){return i()},set isOpened(n=!1){i(n),u()},$set:L,$on:(n,r)=>M(e,n,r)})}function Ql(t,e){if(new.target)return E($({component:Ql},t));P(e,!0);let i=p(e,"ref",15,void 0),o=p(e,"hidden",7,!1),n=p(e,"disabled",7,!1),r=p(e,"graphIsOpened",7,!1),l=p(e,"click",7),a=Fe().ui.t,c=b(()=>r()?a("tooltip_interactive_graph_on"):a("tooltip_interactive_graph_off")),f=b(()=>o()?"hidden":"");return Wt(t,{get className(){return s(f)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(c)},get click(){return l()},get ref(){return i()},set ref(g){i(g)},children:(g,m)=>{let h=b(()=>!!r());dp(g,{get isOpened(){return s(h)}})},$$slots:{default:!0}}),A({get ref(){return i()},set ref(g=void 0){i(g),u()},get hidden(){return o()},set hidden(g=!1){o(g),u()},get disabled(){return n()},set disabled(g=!1){n(g),u()},get graphIsOpened(){return r()},set graphIsOpened(g=!1){r(g),u()},get click(){return l()},set click(g){l(g),u()},$set:L,$on:(g,m)=>M(e,g,m)})}var tv=require("@vkontakte/videoplayer-core/es2015");function Gl(t,e){if(new.target)return E($({component:Gl},t));P(e,!0);let[i,o]=tt(),n=()=>k(c,"$playbackState$",i),r=p(e,"isMobile",7,!1),l=p(e,"isLiveActive",7,!1),d=p(e,"ariaLabel",7,""),a=Fe(),c=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,g=a.actions.internal.togglePlay,m=b(()=>()=>{if(!l()){f();return}n()===tv.PlaybackState.PAUSED&&g()}),h=b(()=>r()?"":"btn--live btn-full-opacity"),_=b(()=>l()?"btn-live":"btn-live-offset"),x=b(()=>l()&&n()===tv.PlaybackState.PLAYING);Wt(t,{get className(){return s(h)},get testId(){return s(_)},get disabled(){return s(x)},get ariaLabel(){return d()},get click(){return s(m)},children:(V,D)=>{hl(V,{get isActive(){return l()}})},$$slots:{default:!0}});var T=A({get isMobile(){return r()},set isMobile(V=!1){r(V),u()},get isLiveActive(){return l()},set isLiveActive(V=!1){l(V),u()},get ariaLabel(){return d()},set ariaLabel(V=""){d(V),u()},$set:L,$on:(V,D)=>M(e,V,D)});return o(),T}var cp=require("@vkontakte/videoplayer-shared/es2015");var Ny=U('<div class="icon icon-error-stub"><div class="inner"></div></div>'),By=U('<img class="icon" aria-hidden="true">');function ta(t,e){if(new.target)return E($({component:ta},t));P(e,!0);let i=p(e,"icon",7),o=pe(!1),n=()=>{Y(o,!0)};var r=Xe(),l=Ee(r);{var d=c=>{var f=Ny();C(c,f)},a=c=>{var f=By();N(()=>ve(f,"src",i())),Kt("error",f,n),_a(f),C(c,f)};q(l,c=>{s(o)?c(d):c(a,!1)})}return C(t,r),A({get icon(){return i()},set icon(c){i(c),u()},$set:L,$on:(c,f)=>M(e,c,f)})}function up(t,e){if(new.target)return E($({component:up},t));P(e,!0);let i=p(e,"id",7),o=p(e,"testId",7),n=p(e,"icon",7),r=p(e,"ariaLabel",7),l=p(e,"tooltipText",7),d=p(e,"disabledTooltipContent",7),a=p(e,"disabled",7,!1),c=p(e,"onClick",7,cp.noop),f=p(e,"ref",15),g=b(()=>c()===cp.noop),m=b(()=>s(g)||a()),h=b(()=>s(g)?"btn-full-opacity":"");return So(t,{get disabled(){return s(m)},get tooltipContent(){return l()},get disabledTooltipContent(){return d()},width:40,get ref(){return f()},set ref(_){f(_)},children:(_,x)=>{let T=b(()=>{var V;return(V=o())!=null?V:i()});Wt(_,{get className(){return s(h)},get ariaLabel(){return r()},get click(){return c()},get disabled(){return s(m)},get testId(){return s(T)},children:(V,D)=>{ta(V,{get icon(){return n()}})},$$slots:{default:!0}})},$$slots:{default:!0}}),A({get id(){return i()},set id(_){i(_),u()},get testId(){return o()},set testId(_){o(_),u()},get icon(){return n()},set icon(_){n(_),u()},get ariaLabel(){return r()},set ariaLabel(_){r(_),u()},get tooltipText(){return l()},set tooltipText(_){l(_),u()},get disabledTooltipContent(){return d()},set disabledTooltipContent(_){d(_),u()},get disabled(){return a()},set disabled(_=!1){a(_),u()},get onClick(){return c()},set onClick(_=cp.noop){c(_),u()},get ref(){return f()},set ref(_){f(_),u()},$set:L,$on:(_,x)=>M(e,_,x)})}var v_=t=>!!t.buttonComponent;var Ts={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Hy=U('<div class="wrapper-bottom svelte-1iedtj3"><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),Fy={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 pp(t,e){var ra,Ms;if(new.target)return E($({component:pp},t));P(e,!0),se(t,Fy);let[i,o]=tt(),n=()=>k(Wi,"$disabledControls$",i),r=()=>k(fi,"$adPlaybackState",i),l=()=>k(Ai,"$playbackState$",i),d=()=>k(Uo,"$currentSubtitle$",i),a=()=>k(Ii,"$isEnded$",i),c=()=>k(_o,"$currentGridType$",i),f=()=>k(vo,"$isLive$",i),g=()=>k(go,"$chromecastState$",i),m=()=>k($n,"$isPictureInPictureActive",i),h=()=>k(vr,"$pictureInPictureType$",i),_=()=>k(Lo,"$availableSubtitlesList$",i),x=()=>k(qi,"$contextMenuOpenedByKeyboard$",i),T=()=>k(Mi,"$showContextMenuBtn$",i),V=()=>k(an,"$playerSize",i),D=()=>k(To,"$isRewindableLive$",i),R=()=>k(di,"$isActiveLive$",i),B=()=>k(Wn,"$graphIsOpened$",i),I=()=>k(Dt,"$contextMenuVisible$",i),z=()=>k(Hn,"$isFullscreen",i),Q=()=>k(Fn,"$autoplayNextEnabled",i),F=()=>k(s(Sr),"$prevButton",i),G=()=>k(s(Tn),"$replayButton",i),J=()=>k(s(Go),"$playButton",i),ce=()=>k(s(Yr),"$nextButton",i),ee=()=>k(s(or),"$playPrevChapterButton",i),Ce=()=>k(s(No),"$seekToInteractiveButton",i),Se=()=>k(s(ke),"$interactiveGraphButton",i),ne=()=>k(s(Ut),"$liveButton",i),ie=()=>k(s(Vi),"$time",i),be=()=>k(s(xi),"$episodes",i),j=()=>k(s(pn),"$vkLogo",i),re=()=>k(s(Eo),"$volume",i),K=()=>k(s(Oi),"$subtitles",i),qe=()=>k(s($e),"$settings",i),Be=()=>k(s(Ot),"$context",i),fe=()=>k(s(wi),"$fullscreen",i),Te=()=>k(s(Gi),"$chromecast",i),Ye=()=>k(mi,"$additionalDesktopControlPanelRightButtons$",i),Z=()=>k(qr,"$isInteractiveTime$",i),ue=()=>k(On,"$settingsMenuVisible",i),le=()=>k(Yo,"$settingButtonRef$",i),He=()=>k(Fo,"$settingsMenuOpenedByKeyboard",i),et=()=>k(Vo,"$startedByKeyboard$",i),dt=()=>k(pi,"$isAudioAvailable$",i),_e=()=>k(Mt,"$fakeIsPlaying$",i),me=()=>k($r,"$seekToInteractiveDisabledTooltip$",i),Je=()=>k(ho,"$adPosition",i),mt=()=>k(ui,"$position$",i),ge=()=>k(io,"$adDuration",i),je=()=>k(ei,"$duration$",i),Tt=p(e,"bottomHidden",7),te=p(e,"bottomNoSmooth",7),it=p(e,"showControls",7),bt=p(e,"playerControlsWrapperRef",15,void 0),gt=p(e,"playerControlsRef",15,void 0),xe=p(e,"isAds",7,!1),Me=p(e,"canRewindLive",7),we=p(e,"logoClickable",7),Ze=p(e,"logoHidden",7),vt=p(e,"logoTargetUrl",7,""),Ne=p(e,"showAutoplayNext",7),yt=p(e,"showNextPrevButtons",7),he=p(e,"nextButtonActive",7),Ft=p(e,"prevButtonActive",7),Qt=p(e,"isOneVideoPlaylist",7,!1),ti=p(e,"customFullscreenSupported",7,!0),Ke=p(e,"toggleFullscreen",7),ut=p(e,"seekToInteractive",7),$t=p(e,"playPrevChapter",7),{fakeIsPlaying$:Mt}=mo(),Qe=Fe(),Gt=mo(),si=oi(),ai=Qe.actions.internal.toggleMuted,bi=Qe.actions.internal.togglePlay,ht=Qe.actions.internal.pause,_t=Qe.actions.internal.toggleSubtitle,pt=(ra=Qe.callbacks)==null?void 0:ra.onAudioDoesNotExistHint,O=(Ms=Qe.callbacks)==null?void 0:Ms.onAudioDisabledHint,ei=Qe.state.duration$,ui=Qe.state.positionWithScrubbing$,Ai=Qe.state.playbackState$,pi=Qe.state.isAudioAvailable$,Ti=Qe.state.isAudioDisabled,Ii=Qe.state.isEnded$,vo=Qe.state.isLive$,di=Qe.state.isActiveLive$,To=Qe.state.isRewindableLive$,{isActive$:$n,type$:vr}=Gt.pictureInPicture$,On=Qe.ui.settingsMenu.visible$,Fo=Qe.ui.settingsMenu.openedByBtnKeyboard$,nt=Qe.ui.controls,Rt=Qe.actions.internal.getVideoEpisodes(),go=Qe.state.chromecastState$,Lo=Qe.state.availableSubtitlesList$,Uo=Qe.state.currentSubtitle$,Wi=nt.disabledControls$,Dt=Qe.ui.contextMenu.visible$,Mi=Qe.ui.contextMenu.showContextMenuBtn$,qi=Qe.ui.contextMenu.openedByBtnKeyboard$,Vo=Qe.ui.startedByKeyboard$,Xt=Qe.ui.t,io=Qe.ads.duration,ho=Qe.ads.position,fi=Qe.ads.playbackState,Hn=Qe.ui.isFullscreen,an=Qe.ui.playerSize,_o=Qe.ui.currentGridType$,mi=Qe.ui.additionalDesktopControlPanelRightButtons$,Fn=Qe.ui.autoplayNextEnabled$,Un=Qe.actions.internal.getVideoElement,Ro=Qe.actions.internal.replayInteractive,zn=Qe.actions.internal.prevVideoClick,zo=Qe.actions.internal.nextVideoClick,oo=Qe.state.isInteractive,qr=Qe.state.isInteractiveTime$,Wo=Qe.state.showInteractiveGraph,gr=Qe.state.showSeekToInteractive,ln=Qe.state.showPlayPrevChapter,hr=Qe.state.showInteractiveTimeIndicator,_r=Qe.state.playPrevChapterDisabledTooltip,$r=Gt.seekToInteractiveDisabledTooltip$,Wn=Gt.graphIsOpened$,Io=si.features.interactiveResponsiveUi,qn=b(()=>n().has("EPISODE_BUTTON")),Kn=b(()=>n().has("GRAPH_BUTTON")),Li=b(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),$o=b(()=>n().has("PLAY_BUTTON")),bn=b(()=>n().has("REPLAY_BUTTON")),yn=b(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Qn=()=>Qe.actions.internal.toggleChromecast(),Gn=b(()=>xe()?r()==="playing":l()===Ra.PlaybackState.PLAYING),dn=b(()=>d().value!=="off"),Di=b(()=>a()&&!xe()||oo),xn=b(()=>Io?s(Di)&&Ji(c(),"m"):s(Di)),wt=b(()=>!a()||oo||xe()),Yn=b(()=>Ji(c(),"m")),br=b(()=>yt()&&Ji(c(),"m")&&!xe()&&he()),jn=b(()=>yt()&&Ji(c(),"m")&&!xe()&&Ft()),cn=b(()=>!xe()&&!!f()),yr=b(()=>g()!==Ra.ChromecastState.NOT_AVAILABLE&&!(m()&&h()===1)&&Ji(c(),"m")&&!oo),qo=b(()=>Ne()&&!Qt()&&Ji(c(),"s")),Kr=b(()=>_().length>0&&Ji(c(),"m")),Zn=b(()=>x()||T()),xr=b(()=>Ji(c(),"s")&&!xe()),wn=b(()=>!Ze()&&!xe()),Xn=b(()=>si.features.fullscreen&&(Ze()||Ji(c(),Io?"xs":"s"))&&!(m()&&h()===1)&&(oo?ti():!0)),Jn=b(()=>(!f()||xe())&&!(si.features.interactiveHideTime&&oo)),ko=b(()=>V().width>100),Ko=b(()=>Wo&&Ji(c(),"m")),ao=b(()=>Io?gr&&Ji(c(),"s"):gr),Qo=b(()=>Io?ln&&Ji(c(),"s"):ln),Ki=b(()=>!xe()&&!f()&&!!(Rt!=null&&Rt.length)&&s(Yn)&&!s(qn)),Qi=b(()=>!D()||!!R()),wr=b(()=>B()?Xt("tooltip_interactive_graph_on"):Xt("tooltip_interactive_graph_off")),un=b(()=>I()?Xt("aria_label_context_menu_close"):Xt("aria_label_context_menu_open")),Qr=(Ge,Nt)=>Ge?Nt&&Nt===Ra.PlaybackState.PAUSED?Xt("tooltip_play"):"":Xt("tooltip_live"),Cn=b(()=>Qr(s(Qi),l())),Cr=b(()=>si.logoType==="vk_video"?Xt("tooltip_vk_video_logo"):Xt("tooltip_vk_logo")),er=b(()=>s(dn)?Xt("tooltip_subtitles_on"):Xt("tooltip_subtitles_off")),Sn=b(()=>z()?Xt("tooltip_fullscreen_on"):Xt("tooltip_fullscreen_off")),Gr=b(()=>g()===Ra.ChromecastState.CONNECTED?Xt("tooltip_chromecast_on"):Xt("tooltip_chromecast_off")),tr=b(()=>Q()?Xt("tooltip_autoplay_on"):Xt("tooltip_autoplay_off")),ir=pe(0),yi=pe(Le({})),Sr=b(()=>nt.prevButton),Tn=b(()=>nt.replayButton),Go=b(()=>nt.playButton),Yr=b(()=>nt.nextButton),or=b(()=>nt.playPrevChapterButton),No=b(()=>nt.seekToInteractiveButton),ke=b(()=>nt.interactiveGraphButton),Ut=b(()=>nt.liveButton),Vi=b(()=>nt.time),xi=b(()=>nt.episodes),pn=b(()=>nt.vkLogo),Eo=b(()=>nt.volume),Oi=b(()=>nt.subtitles),$e=b(()=>nt.settings),Ot=b(()=>nt.context),wi=b(()=>nt.fullscreen),Gi=b(()=>nt.chromecast),li=b(()=>({prevButton:F()?F().right-F().left:0,replayButton:G()?G().right-G().left:0,playButton:J()?J().right-J().left:0,nextButton:ce()?ce().right-ce().left:0,playPrevChapterButton:ee()?ee().right-ee().left:0,seekToInteractiveButton:Ce()?Ce().right-Ce().left:0,interactiveGraphButton:Se()?Se().right-Se().left:0,liveButton:ne()?ne().right-ne().left:0,time:ie()?ie().right-ie().left:0,episodes:be()?be().right-be().left:0,vkLogo:j()?j().right-j().left:0,volume:re()?re().right-re().left:0,subtitles:K()?K().right-K().left:0,settings:qe()?qe().right-qe().left:0,context:Be()?Be().right-Be().left:0,fullscreen:fe()?fe().right-fe().left:0,chromecast:Te()?Te().right-Te().left:0,additionalButtons:Ye().length?Ye().reduce(Ge=>[...Ge,40],[]):[]})),bo=pe(0);lt(()=>{(!s(bo)||s(bo)<s(li).time)&&Pt(()=>Y(bo,Le(s(li).time)))});let lo=pe(!1);lt(()=>{let Ge=0;s(Ki)&&(Ji(c(),"xl")?Ge=s(li).time:Ge=60);let Nt=s(li).prevButton+s(li).playButton+s(li).nextButton+s(li).seekToInteractiveButton+s(li).interactiveGraphButton+s(li).liveButton+s(bo)+Ge;Y(lo,Le(s(Jn)&&s(ir)>=Nt))});let Bo=b(()=>s(lo)&&Ji(c(),"m")),Yi=(0,g_.debounceFn)(ep,260);lt(()=>{V(),Z(),Yi(Un(),nt,s(yi),it())});let fn,Yo=Ie();lt(()=>{ue(),le()&&Pt(()=>bl(le(),ue(),Fo))}),lt(()=>{ue(),He(),Pt(()=>ss(fn,ue(),He()))});let In=pe(void 0);lt(()=>{et(),s(In),Pt(()=>tp(Vo,et(),s(In)))});function Tr(){Qs({isAudioDisabled:Ti,audioDisabledHintCallback:O,isAudioAvailable:dt(),audioIsNotExistHintCallback:pt})&&ai()}let Ir=oo?Ro:bi,kr=b(()=>_e()!==null),us=b(()=>s(kr)?_e():s(Gn)),mn=b(()=>s(us)?Xt("tooltip_pause"):Xt("tooltip_play")),Er=Xt("tooltip_episodes"),Po=b(()=>s(jn)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ss.prevButton,buttonComponent:Js,buttonComponentProps:{disabled:!Ft(),type:"prev",click:zn.bind(null,!0)},tooltipText:Xt("tooltip_previous"),disabled:!Ft()}:void 0),nr=b(()=>s(xn)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ss.replayButton,buttonComponent:La,buttonComponentProps:{disabled:s(bn),click:Ir},tooltipText:Xt("tooltip_restart"),disabled:s(bn)}:void 0),Pr=b(()=>s(wt)?{id:"playButton",type:"desktop-control-panel-left",weight:Ss.playButton,buttonComponent:Va,buttonComponentProps:{disabled:s($o),isPlaying:s(Gn),click:bi},tooltipText:s(mn),disabled:s($o)}:void 0),jo=b(()=>s(br)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ss.nextButton,buttonComponent:Js,buttonComponentProps:{disabled:!he(),type:"next",click:zo.bind(null,!0)},tooltipText:Xt("tooltip_next"),disabled:!he()}:void 0),ft=b(()=>oo&&s(Qo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ss.playPrevChapterButton,buttonComponent:Wl,buttonComponentProps:{disabled:s(yn),click:$t()},tooltipText:Xt("tooltip_interactive_go_back"),disabledTooltipContent:Xt(_r),disabled:s(yn)}:void 0),ni=b(()=>oo&&s(ao)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ss.seekToInteractiveButton,buttonComponent:Kl,buttonComponentProps:{disabled:s(Li),click:ut()},tooltipText:Xt("tooltip_interactive_seek"),disabled:s(Li),disabledTooltipContent:Xt(me())}:void 0),Ci=b(()=>oo&&s(Ko)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ss.interactiveGraphButton,buttonComponent:Ql,buttonComponentProps:{disabled:s(Kn),click:Wn.toggle,graphIsOpened:B()},tooltipText:s(wr)}:void 0),Ar=b(()=>s(cn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ss.liveButton,buttonComponent:Gl,buttonComponentProps:{isLiveActive:s(Qi),ariaLabel:s(Cn)},tooltipText:s(Cn),disabled:s(Qi)&&l()===Ra.PlaybackState.PLAYING}:void 0),kn=b(()=>[s(Po),s(nr),s(Pr),s(jo),s(ft),s(ni),s(Ci),s(Ar)].filter(Ge=>!!Ge).sort(Ea)),Mr=b(()=>s(wn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ts.vkLogo,buttonComponent:Rl,buttonComponentProps:{targetUrl:vt(),logoClickable:we(),click:ht},tooltipText:s(Cr),disabledTooltipContent:"",disabled:!we()}:void 0),oe=b(()=>s(qo)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ts.autoplayNext,buttonComponent:ql,tooltipText:s(tr)}:void 0),qt=b(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ts.volume,buttonComponent:Ru,buttonComponentProps:{click:Tr}})),Jt=b(()=>s(Kr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ts.subtitles,buttonComponent:Au,buttonComponentProps:{isSubtitlesEnabled:s(dn),click:_t},tooltipText:s(er)}:void 0),Lt=b(()=>s(xr)?{id:"settings",type:"desktop-control-panel-right",weight:Ts.settings,buttonComponent:Aa,buttonComponentProps:{ref$:Yo},tooltipText:ue()?void 0:Xt("tooltip_settings_off")}:void 0),Hi=b(()=>si.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ts.context,buttonComponent:op,buttonComponentProps:{click:Ke(),ariaLabel:s(un)},className:s(Zn)?"":"out-of-view",tooltipText:s(un)}:void 0),vi=b(()=>s(Xn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ts.fullscreen,buttonComponent:Vl,buttonComponentProps:{isFullscreen:z(),click:Ke()},tooltipText:s(Sn)}:void 0),ji=b(()=>s(yr)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ts.chromecast,buttonComponent:Nl,buttonComponentProps:{state:g(),click:Qn},tooltipText:s(Gr)}:void 0),jr=b(()=>[s(Mr),s(oe),s(qt),s(Jt),s(Lt),s(Hi),s(vi),s(ji),...Ye()].filter(Ge=>!!Ge).sort(Ea));var rr=Hy(),Do=Ee(rr),ps=w(Do);let rt=b(()=>!s(ko));Dl(ps,{get isHidden(){return s(rt)},get isAds(){return xe()},get canRewindLive(){return Me()},get isRewindableLive(){return D()},get ref(){return s(yi).timeline},set ref(Ge){s(yi).timeline=Ge}});var ii=H(ps,2),ki=w(ii),En=w(ki);Ei(En,17,()=>s(kn),Ge=>Ge.id,(Ge,Nt)=>{Qd(Ge,{get buttonComponent(){return s(Nt).buttonComponent},get buttonComponentProps(){return s(Nt).buttonComponentProps},get tooltipText(){return s(Nt).tooltipText},get disabledTooltipContent(){return s(Nt).disabledTooltipContent},get disabled(){return s(Nt).disabled},get className(){return s(Nt).className},get ref(){return s(yi)[s(Nt).id]},set ref(Zo){s(yi)[s(Nt).id]=Zo}})});var sr=H(En,2);{var Ps=Ge=>{let Nt=b(()=>xe()?Je():mt()),Zo=b(()=>xe()?ge():je());Ml(Ge,{isMobile:!1,get showDuration(){return s(Bo)},get position(){return s(Nt)},get duration(){return s(Zo)},get ref(){return s(yi).time},set ref(Lr){s(yi).time=Lr}})};q(sr,Ge=>{s(Jn)&&Ge(Ps)})}var Pn=H(sr,2);let Zr=b(()=>!s(Ki));So(Pn,{className:"w-max",get disabled(){return s(Zr)},tooltipContent:Er,get ref(){return s(yi).episodes},set ref(Ge){s(yi).episodes=Ge},children:(Ge,Nt)=>{var Zo=Xe(),Lr=Ee(Zo);{var sa=Vr=>{Ol(Vr,{get position(){return mt()},get duration(){return je()},timeCodes:Rt})};q(Lr,Vr=>{s(Ki)&&Vr(sa)})}C(Ge,Zo)},$$slots:{default:!0}}),y(ki);var Da=H(ki,2);Ei(Da,21,()=>s(jr),Ge=>Ge.id,(Ge,Nt)=>{var Zo=Xe(),Lr=Ee(Zo);{var sa=Xr=>{Qd(Xr,{get buttonComponent(){return s(Nt).buttonComponent},get buttonComponentProps(){return s(Nt).buttonComponentProps},get tooltipText(){return s(Nt).tooltipText},get disabledTooltipContent(){return s(Nt).disabledTooltipContent},get disabled(){return s(Nt).disabled},get className(){return s(Nt).className},get ref(){return s(yi)[s(Nt).id]},set ref(Ls){s(yi)[s(Nt).id]=Ls}})},Vr=Xr=>{let Ls=b(()=>!!s(Nt).disabled);up(Xr,{get id(){return s(Nt).id},get testId(){return s(Nt).testId},get icon(){return s(Nt).icon},get ariaLabel(){return s(Nt).ariaLabel},get tooltipText(){return s(Nt).tooltipText},get disabledTooltipContent(){return s(Nt).disabledTooltipContent},get disabled(){return s(Ls)},get onClick(){return s(Nt).onClick},get ref(){return s(yi)[s(Nt).id]},set ref(pd){s(yi)[s(Nt).id]=pd}})};q(Lr,Xr=>{v_(s(Nt))?Xr(sa):Xr(Vr,!1)})}C(Ge,Zo)}),y(Da),y(ii),St(ii,Ge=>gt(Ge),()=>gt()),y(Do),St(Do,Ge=>bt(Ge),()=>bt());var Oa=H(Do,2);{var As=Ge=>{Ul(Ge,{get ref(){return s(yi).interactiveTimeIndicator},set ref(Nt){s(yi).interactiveTimeIndicator=Nt}})};q(Oa,Ge=>{hr&&Ge(As)})}N(()=>{ae(Do,"hidden",Tt()),ae(Do,"controls-hidden",!it()),ae(Do,"no-smooth",te())}),ns(ki,"clientWidth",Ge=>Y(ir,Ge)),C(t,rr);var Ha=A({get bottomHidden(){return Tt()},set bottomHidden(Ge){Tt(Ge),u()},get bottomNoSmooth(){return te()},set bottomNoSmooth(Ge){te(Ge),u()},get showControls(){return it()},set showControls(Ge){it(Ge),u()},get playerControlsWrapperRef(){return bt()},set playerControlsWrapperRef(Ge=void 0){bt(Ge),u()},get playerControlsRef(){return gt()},set playerControlsRef(Ge=void 0){gt(Ge),u()},get isAds(){return xe()},set isAds(Ge=!1){xe(Ge),u()},get canRewindLive(){return Me()},set canRewindLive(Ge){Me(Ge),u()},get logoClickable(){return we()},set logoClickable(Ge){we(Ge),u()},get logoHidden(){return Ze()},set logoHidden(Ge){Ze(Ge),u()},get logoTargetUrl(){return vt()},set logoTargetUrl(Ge=""){vt(Ge),u()},get showAutoplayNext(){return Ne()},set showAutoplayNext(Ge){Ne(Ge),u()},get showNextPrevButtons(){return yt()},set showNextPrevButtons(Ge){yt(Ge),u()},get nextButtonActive(){return he()},set nextButtonActive(Ge){he(Ge),u()},get prevButtonActive(){return Ft()},set prevButtonActive(Ge){Ft(Ge),u()},get isOneVideoPlaylist(){return Qt()},set isOneVideoPlaylist(Ge=!1){Qt(Ge),u()},get customFullscreenSupported(){return ti()},set customFullscreenSupported(Ge=!0){ti(Ge),u()},get toggleFullscreen(){return Ke()},set toggleFullscreen(Ge){Ke(Ge),u()},get seekToInteractive(){return ut()},set seekToInteractive(Ge){ut(Ge),u()},get playPrevChapter(){return $t()},set playPrevChapter(Ge){$t(Ge),u()},$set:L,$on:(Ge,Nt)=>M(e,Ge,Nt)});return o(),Ha}var Yl=require("@vkontakte/videoplayer-core/es2015");var fp=require("@vkontakte/videoplayer-shared/es2015");var Uy=U('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),zy=U('<img class="icon svelte-167ouw6" aria-hidden="true">'),Wy={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 mp(t,e){if(new.target)return E($({component:mp},t));P(e,!0),se(t,Wy);let i=p(e,"iconUrl",7),o=p(e,"ariaLabel",7),n=p(e,"disabled",7,!1),r=p(e,"testId",7),l=p(e,"onClick",7,fp.noop),d=b(()=>l()===fp.noop),a=b(()=>s(d)||n()),c=pe(!1),f=()=>{Y(c,!0)},g=b(()=>s(d)?"btn-full-opacity":"");return Wt(t,{get className(){return s(g)},get ariaLabel(){return o()},get click(){return l()},get disabled(){return s(a)},get testId(){return r()},children:(m,h)=>{var _=Xe(),x=Ee(_);{var T=D=>{var R=Uy();C(D,R)},V=D=>{var R=zy();N(()=>ve(R,"src",i())),Kt("error",R,f),_a(R),C(D,R)};q(x,D=>{s(c)?D(T):D(V,!1)})}C(m,_)},$$slots:{default:!0}}),A({get iconUrl(){return i()},set iconUrl(m){i(m),u()},get ariaLabel(){return o()},set ariaLabel(m){o(m),u()},get disabled(){return n()},set disabled(m=!1){n(m),u()},get testId(){return r()},set testId(m){r(m),u()},get onClick(){return l()},set onClick(m=fp.noop){l(m),u()},$set:L,$on:(m,h)=>M(e,m,h)})}var qy=Re('<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 vp(t,e){if(new.target)return E($({component:vp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=qy();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var ov=require("@vkontakte/videoplayer-shared/es2015");var Ky=U('<span class="text svelte-6gmlbk"> </span>'),Qy=U('<div class="container svelte-6gmlbk" aria-hidden="true"><!> <!></div>'),Gy={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function Gd(t,e){if(new.target)return E($({component:Gd},t));P(e,!0),se(t,Gy);let i=p(e,"muted",7,!1),o=p(e,"expanded",7,!1),n=p(e,"click",7,ov.noop),r=p(e,"ref",15,void 0),d=Fe().ui.t,a=b(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),c=b(()=>o()?Cs:vp),f=b(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");return Wt(t,{get testId(){return s(f)},get click(){return n()},get ariaLabel(){return s(a)},get ref(){return r()},set ref(g){r(g)},children:(g,m)=>{var h=Qy();let _=b(()=>s(c));var x=w(h);zi(x,()=>s(_),(D,R)=>{R(D,{})});var T=H(x,2);{var V=D=>{var R=Ky(),B=w(R,!0);y(R),N(I=>Pe(B,I),[()=>d("mobile_unmute")]),C(D,R)};q(T,D=>{o()&&D(V)})}y(h),N(()=>ae(h,"expanded",o())),C(g,h)},$$slots:{default:!0}}),A({get muted(){return i()},set muted(g=!1){i(g),u()},get expanded(){return o()},set expanded(g=!1){o(g),u()},get click(){return n()},set click(g=ov.noop){n(g),u()},get ref(){return r()},set ref(g=void 0){r(g),u()},$set:L,$on:(g,m)=>M(e,g,m)})}var Yy=Re('<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 gp(t,e){if(new.target)return E($({component:gp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Yy();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(3),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var jy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function hp(t,e){if(new.target)return E($({component:hp},t));P(e,!0),se(t,jy);let i=p(e,"isActive",7,!1),o=b(()=>i()?"color: #2688EB;":"color: #fff;"),n=b(()=>i()?"pip-icon--active":"pip-icon");return gp(t,{get style(){return s(o)},get"data-testid"(){return s(n)}}),A({get isActive(){return i()},set isActive(r=!1){i(r),u()},$set:L,$on:(r,l)=>M(e,r,l)})}var nv=require("@vkontakte/videoplayer-shared/es2015");function _p(t,e){if(new.target)return E($({component:_p},t));P(e,!0);let i=p(e,"ref",15,void 0),o=p(e,"isPictureInPictureActive",7,!1),n=p(e,"click",7,nv.noop),r=X("menu_pip");return Wt(t,{testId:"btn-pip",ariaLabel:r,get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{hp(l,{get isActive(){return o()}})},$$slots:{default:!0}}),A({get ref(){return i()},set ref(l=void 0){i(l),u()},get isPictureInPictureActive(){return o()},set isPictureInPictureActive(l=!1){o(l),u()},get click(){return n()},set click(l=nv.noop){n(l),u()},$set:L,$on:(l,d)=>M(e,l,d)})}var h_=require("@vkontakte/videoplayer-shared/es2015");var Zy=(t,e,i,o)=>{s(e)&&i()(s(o))},Xy=(t,e,i,o)=>{s(e)&&i()(s(o))},Jy=U('<div class="wrapper-middle-left svelte-1afsgkw"><!></div>'),e2=U("<div><!></div>"),t2=U('<div class="wrapper-middle-right svelte-1afsgkw"><!></div>'),i2=U("<!> <!> <!>",1),o2=U('<div class="overlay-mobile svelte-1afsgkw"></div> <div class="wrapper-top-left svelte-1afsgkw"><!></div> <div class="wrapper-top-right svelte-1afsgkw"><!> <!> <!> <!> <!> <!></div> <div class="wrapper-middle svelte-1afsgkw"><!> <!> <!> <!></div> <!>',1),n2=U('<div class="wrapper-top-right svelte-1afsgkw"><!></div>'),r2=U('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),s2=U('<!> <!> <div class="wrapper-bottom ads-timeline-mobile svelte-1afsgkw"><!></div>',1),a2=U('<div aria-hidden="true">\xB7</div> <!>',1),l2=U('<!> <!> <div class="wrapper-bottom svelte-1afsgkw"><div class="controls-wrapper svelte-1afsgkw"><div class="controls svelte-1afsgkw"><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>',1),d2={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-1afsgkw {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
254
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Sd(t,e){var B;K(e,!0),G(t,k2);let[i,o]=Fe(),n=()=>C(S,"$isMobile",i),a=()=>C(E,"$areControlsVisible",i),s=()=>C(R,"$currentGridType$",i),d=()=>C(A,"$isInteractiveTime$",i),l=()=>C(w,"$interactiveControlsOpacity$",i),u=()=>C(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(I,"$isFullscreen",i),_=v(e,"ref",15,void 0),p=te(void 0),$=Ie(),y=co(),{interactiveControlsOpacity$:w}=y,S=$.ui.isMobile,I=$.ui.isFullscreen,A=$.state.isInteractiveTime$,P=y.showInteractiveTimeIndicatorTooltip$,E=$.ui.controlsVisible,T=(B=$.callbacks)==null?void 0:B.onInteractiveTimeIndicatorClick,R=$.ui.currentGridType$,z=m(()=>!n()&&a()),Z=m(()=>As(s(),"s")),U=m(()=>!d()||!!l()||r(z)),Q=te(!1);Ze(()=>{O(Q,pe(r(U)))});let ee=()=>{O(Q,!0)},ae=()=>{var ce;_e(),(ce=r(p))==null||ce.addEventListener("animationiteration",ee,{once:!0})},_e=()=>{var ce;O(Q,!1),(ce=r(p))==null||ce.removeEventListener("animationiteration",ee)},re=ce=>{P.set(ce)},Pe=m(()=>u()&&!r(U));Ze(()=>{u()?ae():_e()});let qe=()=>{r(U)||(P.set(!0),T==null||T())};sr(()=>{P.clearTimeout(),_e()});let ie=()=>{P.set(!1)},Le=F("tooltip_interactive_interaction_time_indicator");var J=I2();let D;J.__mousemove=[T2],J.__click=qe;var Be=h(J);Ao(Be,{tooltipContent:Le,get tooltipActive(){return r(Pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:re,get ref(){return _()},set ref(ce){_(ce)},children:(ce,Ee)=>{md(ce,{completed:!0})},$$slots:{default:!0}});var X=M(Be,2);let Ge;ut(X,ce=>_(ce),()=>_());var Re=M(X,2);let ue;ut(Re,ce=>O(p,ce),()=>r(p)),g(J),k((ce,Ee,Ke)=>{D=oe(J,1,"interactive-episode-icon-animated svelte-od3veb",null,D,ce),Ge=oe(X,1,"ref-block svelte-od3veb",null,Ge,Ee),ue=oe(Re,1,"pulse svelte-od3veb",null,ue,Ke)},[()=>({mobile:n(),fullscreen:f(),invisible:r(U),"icon-small":r(Z)}),()=>({hidden:r(U)}),()=>({paused:r(Q)})]),Bt("mouseleave",J,ie),b(t,J),W(),o()}at(["mousemove","click"]);function au(t,e){K(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"className",3,void 0),n=v(e,"ref",15);Ao(t,{get disabled(){return i()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get className(){return o()},get ref(){return n()},set ref(a){n(a)},children:(a,s)=>{var d=ze();let l=m(()=>e.buttonComponent);var u=ve(d);Di(u,()=>r(l),(f,_)=>{_(f,rs(()=>{var p;return(p=e.buttonComponentProps)!=null?p:{}}))}),b(a,d)},$$slots:{default:!0}}),W()}var as={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var A2=$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 Uf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=A2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 zf(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),a=m(()=>i()?"prev-icon":"next-icon");Uf(t,{get style(){return r(n)},get"data-testid"(){return r(a)}})}var P2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),M2=L("<!> <!>",1),L2={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 fa(t,e){K(e,!0),G(t,L2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=Ie().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}`);At(t,{get className(){return r(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(f){i(f)},children:(f,_)=>{var p=M2(),$=ve(p);{var y=I=>{var A=P2();b(I,A)};V($,I=>{o()&&I(y)})}var w=M($,2);let S=m(()=>e.type==="prev");zf(w,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(f,p)},$$slots:{default:!0}}),W()}var V2=$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 Cd(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=V2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 $1=require("@vkontakte/videoplayer-shared/es2015");var R2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),N2=L("<!> <div><!></div>",1),D2={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 sl(t,e){K(e,!0),G(t,D2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),a=v(e,"className",3,""),s=v(e,"click",3,$1.noop),d=F("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);At(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 _=N2(),p=ve(_);{var $=I=>{var A=R2();b(I,A)};V(p,I=>{o()&&I($)})}var y=M(p,2);let w;var S=h(y);Cd(S,{}),g(y),k(I=>w=oe(y,1,"svelte-1ot3duq",null,w,I),[()=>({mobile:o()})]),b(u,_)},$$slots:{default:!0}}),W()}var B2=$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 ls(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=B2(),d=h(s);g(s),k(()=>{De(s,"width",i()),De(s,"height",o()),De(s,"viewBox",n()),De(d,"fill",a())}),b(t,s)}var O2=$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 ma(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=O2(),d=h(s);g(s),k(()=>{De(s,"width",i()),De(s,"height",o()),De(s,"viewBox",n()),De(d,"fill",a())}),b(t,s)}var y1=require("@vkontakte/videoplayer-shared/es2015");var H2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),F2=L("<!> <div><!></div>",1),U2={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 al(t,e){K(e,!0),G(t,U2);let[i,o]=Fe(),n=()=>C(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=co(),s=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),l=v(e,"isPlaying",3,!1),u=v(e,"disabled",3,!1),f=v(e,"className",3,""),_=v(e,"click",3,y1.noop),$=Ie().ui.t,{toggle:y}=a,w=m(()=>y),S=m(()=>n()!==null),I=m(()=>r(S)?n():l()),A=m(()=>r(I)?$("tooltip_pause"):$("tooltip_play")),P=m(()=>r(I)?ma:ls),E=m(()=>`${d()?"btn-m--play":""} ${f()}`),T=m(()=>r(S)?r(w):_());At(t,{get className(){return r(E)},testId:"btn-play",get click(){return r(T)},get disabled(){return u()},get ariaLabel(){return r(A)},get ariaKeyShortCut(){return zr.KeyK},get ref(){return s()},set ref(R){s(R)},children:(R,z)=>{var Z=F2();let U=m(()=>r(P));var Q=ve(Z);{var ee=Pe=>{var qe=H2();b(Pe,qe)};V(Q,Pe=>{d()&&Pe(ee)})}var ae=M(Q,2);let _e;var re=h(ae);Di(re,()=>r(U),(Pe,qe)=>{qe(Pe,{})}),g(ae),k(Pe=>_e=oe(ae,1,"svelte-1ot3duq",null,_e,Pe),[()=>({mobile:d()})]),b(R,Z)},$$slots:{default:!0}}),W(),o()}var z2=$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 qf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=z2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 Td(t,e){K(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),s=m(()=>o()?"hidden":"");At(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)=>{qf(d,{})},$$slots:{default:!0}}),W()}var q2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),K2={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 Id(t,e){K(e,!0),G(t,K2);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=v(e,"ref",15,void 0),s=Ie(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;At(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,_)=>{var p=q2(),$=h(p);let y;var w=h($);{var S=A=>{ls(A,{width:"14",height:"14",fill:"#000"})},I=A=>{ma(A,{width:"14",height:"14",fill:"#000"})};V(w,A=>{n()?A(S):A(I,!1)})}g($),g(p),k(A=>y=oe($,1,"toggler svelte-et3q1q",null,y,A),[()=>({enabled:n()})]),b(f,p)},$$slots:{default:!0}}),W(),o()}var W2=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Kf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=W2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(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 kd(t,e){K(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),s=m(()=>o()?"hidden":"");At(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Kf(d,{})},$$slots:{default:!0}}),W()}var Q2=$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 Wf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(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 G2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Qf(t,e){G(t,G2);let i=v(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Wf(t,{get"data-testid"(){return r(o)}})}function Ed(t,e){K(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=v(e,"graphIsOpened",3,!1),d=Ie().ui.t,l=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");At(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,_)=>{let p=m(()=>!!a());Qf(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),W()}var Gf=require("@vkontakte/videoplayer-core/es2015");function Ad(t,e){K(e,!0);let[i,o]=Fe(),n=()=>C(u,"$playbackState$",i),a=v(e,"isMobile",3,!1),s=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),l=Ie(),u=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,p=m(()=>()=>{if(!s()){f();return}n()===Gf.PlaybackState.PAUSED&&_()}),$=m(()=>a()?"":"btn--live btn-full-opacity"),y=m(()=>s()?"btn-live":"btn-live-offset"),w=m(()=>s()&&n()===Gf.PlaybackState.PLAYING);At(t,{get className(){return r($)},get testId(){return r(y)},get disabled(){return r(w)},get ariaLabel(){return d()},get click(){return r(p)},children:(S,I)=>{od(S,{get isActive(){return s()}})},$$slots:{default:!0}}),W(),o()}var Yf=require("@vkontakte/videoplayer-shared/es2015");var Y2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),j2=L('<img class="icon" aria-hidden="true">');function va(t,e){"use strict";let i=te(!1),o=()=>{O(i,!0)};var n=ze(),a=ve(n);{var s=l=>{var u=Y2();b(l,u)},d=l=>{var u=j2();k(()=>De(u,"src",e.icon)),Bt("error",u,o),Qs(u),b(l,u)};V(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function jf(t,e){K(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Yf.noop),n=v(e,"ref",15),a=m(()=>o()===Yf.noop),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");Ao(t,{get disabled(){return r(s)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,u)=>{let f=m(()=>{var _;return(_=e.testId)!=null?_:e.id});At(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(f)},children:(_,p)=>{va(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),W()}var x1=t=>!!t.buttonComponent;var ds={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var J2=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),ey={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 Xf(t,e){var xa,Ls;K(e,!0),G(t,ey);let[i,o]=Fe(),n=()=>C(ci,"$disabledControls$",i),a=()=>C(Wt,"$adPlaybackState",i),s=()=>C(ei,"$playbackState$",i),d=()=>C(si,"$currentSubtitle$",i),l=()=>C(oi,"$isEnded$",i),u=()=>C(Wn,"$currentGridType$",i),f=()=>C(Bi,"$isLive$",i),_=()=>C(Wi,"$chromecastState$",i),p=()=>C(Mo,"$isPictureInPictureActive",i),$=()=>C(Lo,"$pictureInPictureType$",i),y=()=>C(Oi,"$availableSubtitlesList$",i),w=()=>C(Zi,"$contextMenuOpenedByKeyboard$",i),S=()=>C(po,"$showContextMenuBtn$",i),I=()=>C(Jt,"$playerSize",i),A=()=>C(Ki,"$isRewindableLive$",i),P=()=>C(Po,"$isActiveLive$",i),E=()=>C(rn,"$graphIsOpened$",i),T=()=>C(uo,"$contextMenuVisible$",i),R=()=>C(fo,"$isFullscreen",i),z=()=>C(Fo,"$autoplayNextEnabled",i),Z=()=>C(r(qo),"$prevButton",i),U=()=>C(r(mr),"$replayButton",i),Q=()=>C(r(Mr),"$playButton",i),ee=()=>C(r(ot),"$nextButton",i),ae=()=>C(r(ft),"$playPrevChapterButton",i),_e=()=>C(r(Ci),"$seekToInteractiveButton",i),re=()=>C(r(to),"$interactiveGraphButton",i),Pe=()=>C(r(io),"$liveButton",i),qe=()=>C(r(To),"$time",i),ie=()=>C(r(No),"$episodes",i),Le=()=>C(r(Do),"$vkLogo",i),J=()=>C(r(Io),"$volume",i),D=()=>C(r(Xe),"$subtitles",i),Be=()=>C(r(Mt),"$settings",i),X=()=>C(r(Mi),"$context",i),Ge=()=>C(r(oo),"$fullscreen",i),Re=()=>C(r(Ti),"$chromecast",i),ue=()=>C(So,"$additionalDesktopControlPanelRightButtons$",i),B=()=>C(_n,"$isInteractiveTime$",i),ce=()=>C(Pt,"$settingsMenuVisible",i),Ee=()=>C(Ln,"$settingButtonRef$",i),Ke=()=>C(Ho,"$startedByKeyboard$",i),lt=()=>C(We,"$isAudioAvailable$",i),Ae=()=>C(se,"$fakeIsPlaying$",i),ye=()=>C(Qn,"$seekToInteractiveDisabledTooltip$",i),Me=()=>C(xt,"$adPosition",i),rt=()=>C(It,"$position$",i),vt=()=>C(ui,"$adDuration",i),tt=()=>C(Je,"$duration$",i),Ot=v(e,"playerControlsWrapperRef",15,void 0),st=v(e,"playerControlsRef",15,void 0),gt=v(e,"isAds",3,!1),qt=v(e,"logoTargetUrl",3,""),Qt=v(e,"isOneVideoPlaylist",3,!1),Ve=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:se}=co(),j=Ie(),le=co(),ge=Gt(),Ce=j.actions.internal.toggleMuted,Ne=j.actions.internal.togglePlay,pt=j.actions.internal.pause,Kt=j.actions.internal.toggleSubtitle,Ye=(xa=j.callbacks)==null?void 0:xa.onAudioDoesNotExistHint,dt=(Ls=j.callbacks)==null?void 0:Ls.onAudioDisabledHint,Je=j.state.duration$,It=j.state.positionWithScrubbing$,ei=j.state.playbackState$,We=j.state.isAudioAvailable$,ct=j.state.isAudioDisabled,oi=j.state.isEnded$,Bi=j.state.isLive$,Po=j.state.isActiveLive$,Ki=j.state.isRewindableLive$,{isActive$:Mo,type$:Lo}=le.pictureInPicture$,Pt=j.ui.settingsMenu.visible$,ht=j.ui.settingsMenu.openedByBtnKeyboard$,H=j.ui.controls,Yt=j.actions.internal.getVideoEpisodes(),Wi=j.state.chromecastState$,Oi=j.state.availableSubtitlesList$,si=j.state.currentSubtitle$,ci=H.disabledControls$,uo=j.ui.contextMenu.visible$,po=j.ui.contextMenu.showContextMenuBtn$,Zi=j.ui.contextMenu.openedByBtnKeyboard$,Ho=j.ui.startedByKeyboard$,Ht=j.ui.t,ui=j.ads.duration,xt=j.ads.position,Wt=j.ads.playbackState,fo=j.ui.isFullscreen,Jt=j.ui.playerSize,Wn=j.ui.currentGridType$,So=j.ui.additionalDesktopControlPanelRightButtons$,Fo=j.ui.autoplayNextEnabled$,pi=j.actions.internal.getVideoElement,$t=j.actions.internal.replayInteractive,fi=j.actions.internal.prevVideoClick,mo=j.actions.internal.nextVideoClick,_i=j.state.isInteractive,_n=j.state.isInteractiveTime$,wi=j.state.showInteractiveGraph,Co=j.state.showSeekToInteractive,Uo=j.state.showPlayPrevChapter,bn=j.state.showInteractiveTimeIndicator,Si=j.state.playPrevChapterDisabledTooltip,Qn=le.seekToInteractiveDisabledTooltip$,rn=le.graphIsOpened$,Vo=ge.features.interactiveResponsiveUi,sn=m(()=>n().has("EPISODE_BUTTON")),Er=m(()=>n().has("GRAPH_BUTTON")),cr=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Gn=m(()=>n().has("PLAY_BUTTON")),$n=m(()=>n().has("REPLAY_BUTTON")),an=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),yn=()=>j.actions.internal.toggleChromecast(),vo=m(()=>gt()?a()==="playing":s()===ga.PlaybackState.PLAYING),et=m(()=>d().value!=="off"),ln=m(()=>l()&&!gt()||_i),Yn=m(()=>Vo?r(ln)&&Ui(u(),"m"):r(ln)),jn=m(()=>!l()||_i||gt()),xn=m(()=>Ui(u(),"m")),dn=m(()=>e.showNextPrevButtons&&Ui(u(),"m")&&!gt()&&e.nextButtonActive),cn=m(()=>e.showNextPrevButtons&&Ui(u(),"m")&&!gt()&&e.prevButtonActive),zo=m(()=>!gt()&&!!f()),Qi=m(()=>_()!==ga.ChromecastState.NOT_AVAILABLE&&!(p()&&$()===1)&&Ui(u(),"m")&&!_i),Gi=m(()=>e.showAutoplayNext&&!Qt()&&Ui(u(),"s")),Zn=m(()=>y().length>0&&Ui(u(),"m")),wn=m(()=>w()||S()),Xn=m(()=>Ui(u(),"s")&&!gt()),ur=m(()=>!e.logoHidden&&!gt()),Xi=m(()=>ge.features.fullscreen&&(e.logoHidden||Ui(u(),Vo?"xs":"s"))&&!(p()&&$()===1)&&(_i?Ve():!0)),Ji=m(()=>(!f()||gt())&&!(ge.features.interactiveHideTime&&_i)),Sn=m(()=>I().width>100),Cn=m(()=>wi&&Ui(u(),"m")),go=m(()=>Vo?Co&&Ui(u(),"s"):Co),eo=m(()=>Vo?Uo&&Ui(u(),"s"):Uo),Tn=m(()=>!gt()&&!f()&&!!(Yt!=null&&Yt.length)&&r(xn)&&!r(sn)),Ro=m(()=>!A()||!!P()),Ar=m(()=>E()?Ht("tooltip_interactive_graph_on"):Ht("tooltip_interactive_graph_off")),In=m(()=>T()?Ht("aria_label_context_menu_close"):Ht("aria_label_context_menu_open")),pr=(Tt,Et)=>Tt?Et&&Et===ga.PlaybackState.PAUSED?Ht("tooltip_play"):"":Ht("tooltip_live"),kn=m(()=>pr(r(Ro),s())),En=m(()=>ge.logoType==="vk_video"?Ht("tooltip_vk_video_logo"):Ht("tooltip_vk_logo")),Pr=m(()=>r(et)?Ht("tooltip_subtitles_on"):Ht("tooltip_subtitles_off")),Jn=m(()=>R()?Ht("tooltip_fullscreen_on"):Ht("tooltip_fullscreen_off")),fr=m(()=>_()===ga.ChromecastState.CONNECTED?Ht("tooltip_chromecast_on"):Ht("tooltip_chromecast_off")),er=m(()=>z()?Ht("tooltip_autoplay_on"):Ht("tooltip_autoplay_off")),An=te(0),di=pe({}),qo=m(()=>H.prevButton),mr=m(()=>H.replayButton),Mr=m(()=>H.playButton),ot=m(()=>H.nextButton),ft=m(()=>H.playPrevChapterButton),Ci=m(()=>H.seekToInteractiveButton),to=m(()=>H.interactiveGraphButton),io=m(()=>H.liveButton),To=m(()=>H.time),No=m(()=>H.episodes),Do=m(()=>H.vkLogo),Io=m(()=>H.volume),Xe=m(()=>H.subtitles),Mt=m(()=>H.settings),Mi=m(()=>H.context),oo=m(()=>H.fullscreen),Ti=m(()=>H.chromecast),Ii=m(()=>({prevButton:Z()?Z().right-Z().left:0,replayButton:U()?U().right-U().left:0,playButton:Q()?Q().right-Q().left:0,nextButton:ee()?ee().right-ee().left:0,playPrevChapterButton:ae()?ae().right-ae().left:0,seekToInteractiveButton:_e()?_e().right-_e().left:0,interactiveGraphButton:re()?re().right-re().left:0,liveButton:Pe()?Pe().right-Pe().left:0,time:qe()?qe().right-qe().left:0,episodes:ie()?ie().right-ie().left:0,vkLogo:Le()?Le().right-Le().left:0,volume:J()?J().right-J().left:0,subtitles:D()?D().right-D().left:0,settings:Be()?Be().right-Be().left:0,context:X()?X().right-X().left:0,fullscreen:Ge()?Ge().right-Ge().left:0,chromecast:Re()?Re().right-Re().left:0,additionalButtons:ue().length?ue().reduce(Tt=>[...Tt,40],[]):[]})),Li=te(0);Ze(()=>{(!r(Li)||r(Li)<r(Ii).time)&&bt(()=>O(Li,pe(r(Ii).time)))});let Pn=te(!1);Ze(()=>{let Tt=0;r(Tn)&&(Ui(u(),"xl")?Tt=r(Ii).time:Tt=60);let Et=r(Ii).prevButton+r(Ii).playButton+r(Ii).nextButton+r(Ii).seekToInteractiveButton+r(Ii).interactiveGraphButton+r(Ii).liveButton+r(Li)+Tt;O(Pn,pe(r(Ji)&&r(An)>=Et))});let Yi=m(()=>r(Pn)&&Ui(u(),"m")),Mn=(0,w1.debounceFn)(ru,260);Ze(()=>{I(),B(),Mn(pi(),H,di,e.showControls)});let Ln=de();Ze(()=>{ce(),Ee()&&bt(()=>Za(Ee(),ce(),ht))});let Ko;Ze(()=>{Ke(),Ke(),bt(()=>su(Ho,Ke(),Ko))});function Vn(){Is({isAudioDisabled:ct,audioDisabledHintCallback:dt,isAudioAvailable:lt(),audioIsNotExistHintCallback:Ye})&&Ce()}let vr=_i?$t:Ne,gr=m(()=>Ae()!==null),Lr=m(()=>r(gr)?Ae():r(vo)),hr=m(()=>r(Lr)?Ht("tooltip_pause"):Ht("tooltip_play")),un=Ht("tooltip_episodes"),pn=m(()=>r(cn)?{id:"prevButton",type:"desktop-control-panel-left",weight:as.prevButton,buttonComponent:fa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:fi.bind(null,!0)},tooltipText:Ht("tooltip_previous"),disabled:!e.prevButtonActive}:void 0),tr=m(()=>r(Yn)?{id:"replayButton",type:"desktop-control-panel-left",weight:as.replayButton,buttonComponent:sl,buttonComponentProps:{disabled:r($n),click:vr},tooltipText:Ht("tooltip_restart"),disabled:r($n)}:void 0),Vr=m(()=>r(jn)?{id:"playButton",type:"desktop-control-panel-left",weight:as.playButton,buttonComponent:al,buttonComponentProps:{disabled:r(Gn),isPlaying:r(vo),click:Ne},tooltipText:r(hr),disabled:r(Gn)}:void 0),ho=m(()=>r(dn)?{id:"nextButton",type:"desktop-control-panel-left",weight:as.nextButton,buttonComponent:fa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:mo.bind(null,!0)},tooltipText:Ht("tooltip_next"),disabled:!e.nextButtonActive}:void 0),Rn=m(()=>_i&&r(eo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:as.playPrevChapterButton,buttonComponent:Td,buttonComponentProps:{disabled:r(an),click:e.playPrevChapter},tooltipText:Ht("tooltip_interactive_go_back"),disabledTooltipContent:Ht(Si),disabled:r(an)}:void 0),_r=m(()=>_i&&r(go)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:as.seekToInteractiveButton,buttonComponent:kd,buttonComponentProps:{disabled:r(cr),click:e.seekToInteractive},tooltipText:Ht("tooltip_interactive_seek"),disabled:r(cr),disabledTooltipContent:Ht(ye())}:void 0),it=m(()=>_i&&r(Cn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:as.interactiveGraphButton,buttonComponent:Ed,buttonComponentProps:{disabled:r(Er),click:rn.toggle,graphIsOpened:E()},tooltipText:r(Ar)}:void 0),Ut=m(()=>r(zo)?{id:"liveButton",type:"desktop-control-panel-left",weight:as.liveButton,buttonComponent:Ad,buttonComponentProps:{isLiveActive:r(Ro),ariaLabel:r(kn)},tooltipText:r(kn),disabled:r(Ro)&&s()===ga.PlaybackState.PLAYING}:void 0),xe=m(()=>[r(pn),r(tr),r(Vr),r(ho),r(Rn),r(_r),r(it),r(Ut)].filter(Tt=>!!Tt).sort(ra)),Lt=m(()=>r(ur)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ds.vkLogo,buttonComponent:hd,buttonComponentProps:{targetUrl:qt(),logoClickable:e.logoClickable,click:pt},tooltipText:r(En),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ti=m(()=>r(Gi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ds.autoplayNext,buttonComponent:Id,tooltipText:r(er)}:void 0),ni=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:ds.volume,buttonComponent:wf,buttonComponentProps:{click:Vn}})),_o=m(()=>r(Zn)?{id:"subtitles",type:"desktop-control-panel-right",weight:ds.subtitles,buttonComponent:bf,buttonComponentProps:{isSubtitlesEnabled:r(et),click:Kt},tooltipText:r(Pr)}:void 0),Vi=m(()=>r(Xn)?{id:"settings",type:"desktop-control-panel-right",weight:ds.settings,buttonComponent:ol,buttonComponentProps:{ref$:Ln},tooltipText:ce()?void 0:Ht("tooltip_settings_off")}:void 0),ri=m(()=>ge.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ds.context,buttonComponent:Ff,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(In)},className:r(wn)?"":"out-of-view",tooltipText:r(In)}:void 0),li=m(()=>r(Xi)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ds.fullscreen,buttonComponent:gd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(Jn)}:void 0),bi=m(()=>r(Qi)?{id:"chromecast",type:"desktop-control-panel-right",weight:ds.chromecast,buttonComponent:_d,buttonComponentProps:{state:_(),click:yn},tooltipText:r(fr)}:void 0),ji=m(()=>[r(Lt),r(ti),r(ni),r(_o),r(Vi),r(ri),r(li),r(bi),...ue()].filter(Tt=>!!Tt).sort(ra));var Ri=J2(),ki=ve(Ri);let Qr;var Oe=h(ki);let jt=m(()=>!r(Sn));$d(Oe,{get isHidden(){return r(jt)},get isAds(){return gt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return A()},get ref(){return di.timeline},set ref(Tt){di.timeline=Tt}});var $i=M(Oe,2),ko=h($i),fn=h(ko);yi(fn,17,()=>r(xe),Tt=>Tt.id,(Tt,Et)=>{au(Tt,{get buttonComponent(){return r(Et).buttonComponent},get buttonComponentProps(){return r(Et).buttonComponentProps},get tooltipText(){return r(Et).tooltipText},get disabledTooltipContent(){return r(Et).disabledTooltipContent},get disabled(){return r(Et).disabled},get className(){return r(Et).className},get ref(){return di[r(Et).id]},set ref(Bn){di[r(Et).id]=Bn}})});var Gr=M(fn,2);{var Nn=Tt=>{let Et=m(()=>gt()?Me():rt()),Bn=m(()=>gt()?vt():tt());fd(Tt,{isMobile:!1,get showDuration(){return r(Yi)},get position(){return r(Et)},get duration(){return r(Bn)},get ref(){return di.time},set ref(Nr){di.time=Nr}})};V(Gr,Tt=>{r(Ji)&&Tt(Nn)})}var Rr=M(Gr,2);let hl=m(()=>!r(Tn));Ao(Rr,{className:"w-max",get disabled(){return r(hl)},tooltipContent:un,get ref(){return di.episodes},set ref(Tt){di.episodes=Tt},children:(Tt,Et)=>{var Bn=ze(),Nr=ve(Bn);{var Vs=Dr=>{yd(Dr,{get position(){return rt()},get duration(){return tt()},timeCodes:Yt})};V(Nr,Dr=>{r(Tn)&&Dr(Vs)})}b(Tt,Bn)},$$slots:{default:!0}}),g(ko);var Dn=M(ko,2);yi(Dn,21,()=>r(ji),Tt=>Tt.id,(Tt,Et)=>{var Bn=ze(),Nr=ve(Bn);{var Vs=Br=>{au(Br,{get buttonComponent(){return r(Et).buttonComponent},get buttonComponentProps(){return r(Et).buttonComponentProps},get tooltipText(){return r(Et).tooltipText},get disabledTooltipContent(){return r(Et).disabledTooltipContent},get disabled(){return r(Et).disabled},get className(){return r(Et).className},get ref(){return di[r(Et).id]},set ref(us){di[r(Et).id]=us}})},Dr=Br=>{let us=m(()=>!!r(Et).disabled);jf(Br,{get id(){return r(Et).id},get testId(){return r(Et).testId},get icon(){return r(Et).icon},get ariaLabel(){return r(Et).ariaLabel},get tooltipText(){return r(Et).tooltipText},get disabledTooltipContent(){return r(Et).disabledTooltipContent},get disabled(){return r(us)},get onClick(){return r(Et).onClick},get ref(){return di[r(Et).id]},set ref(bl){di[r(Et).id]=bl}})};V(Nr,Br=>{x1(r(Et))?Br(Vs):Br(Dr,!1)})}b(Tt,Bn)}),g(Dn),g($i),ut($i,Tt=>st(Tt),()=>st()),g(ki),ut(ki,Tt=>Ot(Tt),()=>Ot());var _l=M(ki,2);{var ya=Tt=>{Sd(Tt,{get ref(){return di.interactiveTimeIndicator},set ref(Et){di.interactiveTimeIndicator=Et}})};V(_l,Tt=>{bn&&Tt(ya)})}k(Tt=>Qr=oe(ki,1,"wrapper-bottom svelte-1iedtj3",null,Qr,Tt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Ur(ko,"clientWidth",Tt=>O(An,Tt)),b(t,Ri),W(),o()}var ll=require("@vkontakte/videoplayer-core/es2015");var Jf=require("@vkontakte/videoplayer-shared/es2015");var ty=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),iy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),oy={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 em(t,e){G(t,oy);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Jf.noop),n=m(()=>o()===Jf.noop),a=m(()=>r(n)||i()),s=te(!1),d=()=>{O(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");At(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(u,f)=>{var _=ze(),p=ve(_);{var $=w=>{var S=ty();b(w,S)},y=w=>{var S=iy();k(()=>De(S,"src",e.iconUrl)),Bt("error",S,d),Qs(S),b(w,S)};V(p,w=>{r(s)?w($):w(y,!1)})}b(u,_)},$$slots:{default:!0}})}var ny=$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 tm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=ny();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 S1=require("@vkontakte/videoplayer-shared/es2015");var ry=L('<span class="text svelte-6gmlbk"> </span>'),sy=L('<div aria-hidden="true"><!> <!></div>'),ay={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 lu(t,e){K(e,!0),G(t,ay);let i=v(e,"muted",3,!1),o=v(e,"expanded",3,!1),n=v(e,"click",3,S1.noop),a=v(e,"ref",15,void 0),d=Ie().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=m(()=>o()?Es:tm),f=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");At(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(_){a(_)},children:(_,p)=>{var $=sy();let y=m(()=>r(u)),w;var S=h($);Di(S,()=>r(y),(P,E)=>{E(P,{})});var I=M(S,2);{var A=P=>{var E=ry(),T=h(E,!0);g(E),k(R=>fe(T,R),[()=>d("mobile_unmute")]),b(P,E)};V(I,P=>{o()&&P(A)})}g($),k(P=>w=oe($,1,"container svelte-6gmlbk",null,w,P),[()=>({expanded:o()})]),b(_,$)},$$slots:{default:!0}}),W()}var ly=$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 im(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=ly();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(3),g(o),k(()=>n=Se(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i))),b(t,o)}var dy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
255
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function om(t,e){G(t,dy);let i=v(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),n=m(()=>i()?"pip-icon--active":"pip-icon");im(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var C1=require("@vkontakte/videoplayer-shared/es2015");function nm(t,e){K(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,C1.noop),a=F("menu_pip");At(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{om(s,{get isActive(){return o()}})},$$slots:{default:!0}}),W()}var T1=require("@vkontakte/videoplayer-shared/es2015");var cy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},uy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},py=L("<div><!></div>"),fy=L("<div><!></div>"),my=L("<div><!></div>"),vy=L("<!> <!> <!>",1),gy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),hy=L("<div><!></div>"),_y=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),by=L("<!> <!> <div><!></div>",1),$y=L('<div aria-hidden="true">\xB7</div> <!>',1),yy=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),xy={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,
253
256
  .wrapper-middle-left-second.svelte-1afsgkw,
254
257
  .wrapper-middle-right.svelte-1afsgkw {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-1afsgkw {left:12px;}.wrapper-middle-left-second.svelte-1afsgkw {left:64px;}.wrapper-middle-right.svelte-1afsgkw {right:12px;}.controls.svelte-1afsgkw {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;}.controls.svelte-1afsgkw > *:not(:first-child) {margin-left:8px;}.hidden.svelte-1afsgkw {visibility:hidden;opacity:0;}.controls-hidden.svelte-1afsgkw {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1afsgkw {transition:none;}.overlay-mobile.svelte-1afsgkw {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
255
258
 
@@ -257,7 +260,7 @@ Try switching the\xA0quality to\xA0Auto.`},Rh=_1;var ws=new Map;ws.set(pl.Interf
257
260
  }
258
261
 
259
262
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-1afsgkw {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-1afsgkw {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-1afsgkw {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw {left:96px;}.wrapper-middle-right.fullscreen.svelte-1afsgkw {right:44px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
260
- }`};function $p(t,e){var or,No;if(new.target)return E($({component:$p},t));P(e,!0),se(t,d2);let[i,o]=tt(),n=()=>k(Hn,"$seekToInteractiveDisabledTooltip$",i),r=()=>k(vr,"$disabledControls$",i),l=()=>k($t,"$playbackState$",i),d=()=>k(go,"$adPlaybackState",i),a=()=>k(Gt,"$isEnded$",i),c=()=>k(Uo,"$playerSize",i),f=()=>k(_t,"$scrubbingInProgress",i),g=()=>k(To,"$chromecastState$",i),m=()=>k(O,"$isPictureInPictureActive",i),h=()=>k(ei,"$pictureInPictureType$",i),_=()=>k(pt,"$mobileNotReportControlHidden$",i),x=()=>k(ti,"$playerPhase",i),T=()=>k(Fo,"$currentGridType$",i),V=()=>k(si,"$isLive$",i),D=()=>k(pi,"$settingsMenuVisible",i),R=()=>k(ht,"$isRewindableLive$",i),B=()=>k(bi,"$isActiveLive$",i),I=()=>k(Vo,"$isInteractiveTime$",i),z=()=>k(Mt,"$isAudioAvailable$",i),Q=()=>k(xr,"$settingButtonRef$",i),F=()=>k(Ti,"$settingsMenuOpenedByKeyboard",i),G=()=>k(On,"$startedByKeyboard$",i),J=()=>k(Lo,"$isFullscreen",i),ce=()=>k(Ai,"$mobileUnmuteButtonVisible",i),ee=()=>k(ai,"$muted$",i),Ce=()=>k(ui,"$mobileUnmuteButtonExpanded",i),Se=()=>k(Wi,"$additionalButtons$",i),ne=()=>k($n,"$crashed$",i),ie=()=>k(an,"$graphIsOpened$",i),be=()=>k(Rt,"$adPosition",i),j=()=>k(nt,"$adDuration",i),re=()=>k(ut,"$position$",i),K=()=>k(Ke,"$duration$",i),qe=p(e,"bottomHidden",7),Be=p(e,"bottomNoSmooth",7),fe=p(e,"showControls",7),Te=p(e,"playerControlsWrapperRef",15,void 0),Ye=p(e,"playerControlsRef",15,void 0),Z=p(e,"isAds",7,!1),ue=p(e,"canRewindLive",7),le=p(e,"logoClickable",7),He=p(e,"logoHidden",7),et=p(e,"logoTargetUrl",7,""),dt=p(e,"showNextPrevButtons",7),_e=p(e,"nextButtonActive",7),me=p(e,"prevButtonActive",7),Je=p(e,"isOneVideoPlaylist",7,!1),mt=p(e,"customFullscreenSupported",7,!0),ge=p(e,"endScreenShown",7),je=p(e,"showAutoplayNext",7),Tt=p(e,"toggleFullscreen",7),te=p(e,"seekToInteractive",7),it=p(e,"playPrevChapter",7),bt=p(e,"onDisabledPlayPrevChapterClick",7),gt=p(e,"onDisabledSeekToInteractiveClick",7),xe=Fe(),Me=mo(),we=oi(),Ze=xe.actions.internal.toggleMuted,vt=xe.actions.internal.togglePlay,Ne=xe.actions.internal.pause,yt=xe.actions.internal.prevVideoClick,he=xe.actions.internal.nextVideoClick,Ft=(or=xe.callbacks)==null?void 0:or.onAudioDoesNotExistHint,Qt=(No=xe.callbacks)==null?void 0:No.onAudioDisabledHint,ti=xe.playerPhase,Ke=xe.state.duration$,ut=xe.state.positionWithScrubbing$,$t=xe.state.playbackState$,Mt=xe.state.isAudioAvailable$,Qe=xe.state.isAudioDisabled,Gt=xe.state.isEnded$,si=xe.state.isLive$,ai=xe.state.muted$,bi=xe.state.isActiveLive$,ht=xe.state.isRewindableLive$,_t=xe.ui.scrubbingInProgress,pt=xe.ui.mobileNotReportControlHidden$,{isActive$:O,type$:ei}=Me.pictureInPicture$,ui=xe.ui.mobileUnmuteButtonExpanded,Ai=xe.ui.mobileUnmuteButtonVisible,pi=xe.ui.settingsMenu.visible$,Ti=xe.ui.settingsMenu.openedByBtnKeyboard$,Ii=xe.ui.controls,vo=xe.actions.internal.getVideoEpisodes(),di=xe.webApi.pictureInPictureApi,To=xe.state.chromecastState$,$n=xe.state.crashed$,vr=Ii.disabledControls$,On=xe.ui.startedByKeyboard$,Fo=xe.ui.currentGridType$,nt=xe.ads.duration,Rt=xe.ads.position,go=xe.ads.playbackState,Lo=xe.ui.isFullscreen,Uo=xe.ui.playerSize,Wi=xe.ui.additionalButtonsDeprecated$,Dt=xe.actions.internal.getVideoElement,Mi=xe.actions.internal.replayInteractive,qi=xe.state.isInteractive,Vo=xe.state.isInteractiveTime$,Xt=xe.state.showInteractiveGraph,io=xe.state.showSeekToInteractive,ho=xe.state.showPlayPrevChapter,fi=xe.state.showInteractiveTimeIndicator,Hn=Me.seekToInteractiveDisabledTooltip$,an=Me.graphIsOpened$,_o=b(()=>X(xe.state.playPrevChapterDisabledTooltip)),mi=b(()=>X(n())),Fn=b(()=>r().has("EPISODE_BUTTON")),Un=b(()=>r().has("GRAPH_BUTTON")),Ro=b(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),zn=b(()=>r().has("PLAY_BUTTON")),zo=b(()=>r().has("REPLAY_BUTTON")),oo=b(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),qr=b(()=>l()===Yl.PlaybackState.PLAYING),Wo=b(()=>d()==="paused"),gr=b(()=>a()&&!Z()&&!qi),ln=b(()=>!a()||Z()),hr=b(()=>dt()&&!Z()&&me()),_r=b(()=>dt()&&!Z()&&_e()),$r=b(()=>c().width>300),Wn=b(()=>c().width>400),Io=b(f),qn=b(()=>g()!==Yl.ChromecastState.NOT_AVAILABLE&&!(m()&&h()===1)&&!_()&&!qi),Kn=b(()=>x()==="LiveWaitingStart"),Li=b(()=>!!di&&g()!==Yl.ChromecastState.CONNECTED&&!_()&&(h()===1&&s(Kn)||!s(Kn))&&!s(Io)&&!qi),$o=b(()=>!s(Io)&&Ji(T(),"s")),bn=b(()=>!He()&&c().width>350),yn=b(()=>we.features.fullscreen&&!(m()&&h()===1)&&(qi?mt():!0)&&!s(Io)),Qn=b(()=>(!V()||Z())&&c().width>260&&!s(Io)&&!(we.features.interactiveHideTime&&qi)),Gn=b(()=>D()||fe()),dn=b(()=>!Z()&&!V()&&!!(vo!=null&&vo.length)&&s($r)&&!s(Fn)&&!s(Io)),Di=b(()=>!R()||!!B()),xn=b(()=>Xt&&Ji(T(),"m")),wt=pe(Le({})),Yn=(0,h_.debounceFn)(ep,260);lt(()=>{c(),I(),Yn(Dt(),Ii,s(wt),fe())});let br=()=>xe.actions.internal.toggleChromecast();function jn(){Qs({isAudioDisabled:Qe,audioDisabledHintCallback:Qt,isAudioAvailable:z(),audioIsNotExistHintCallback:Ft})&&Ze()}function cn(){return Ct(this,null,function*(){di!=null&&di.isActive()?yield di==null?void 0:di.remove():yield di==null?void 0:di.request()})}function yr(){!Qe&&z()&&Ai.set(!1),jn()}let qo=pe(""),Kr=(ke,Ut)=>{if(!ke){Y(qo,Le(X("tooltip_live")));return}Ut&&Ut===Yl.PlaybackState.PAUSED&&Y(qo,Le(X("tooltip_play")))};lt(()=>{Kr(s(Di),l())});let Zn,xr=Ie();lt(()=>{Q()&&bl(Q(),D(),Ti)}),lt(()=>{ss(Zn,D(),F())}),lt(()=>{tp(On,G(),s(wt).playButton)});var wn=l2(),Xn=Ee(wn);{var Jn=ke=>{var Ut=o2(),Vi=Ee(Ut),xi=H(Vi,2),pn=w(xi);{var Eo=ft=>{let ni=b(()=>z()&&!Qe&&Ce());Gd(ft,{get muted(){return ee()},get expanded(){return s(ni)},click:yr,get ref(){return s(wt).volume},set ref(Ci){s(wt).volume=Ci}})};q(pn,ft=>{(!z()||ce())&&ft(Eo)})}y(xi);var Oi=H(xi,2),$e=w(Oi);Ei($e,1,Se,so,(ft,ni)=>{let Ci=()=>s(ni).iconUrl,Ar=()=>s(ni).ariaLabel,kn=()=>s(ni).testId,Mr=()=>s(ni).onClick,oe=()=>s(ni).tooltip,qt=b(()=>{var Jt;return(Jt=Ar())!=null?Jt:oe()});mp(ft,{get iconUrl(){return Ci()},get ariaLabel(){return s(qt)},get testId(){return kn()},get onClick(){return Mr()}})});var Ot=H($e,2);{var wi=ft=>{ql(ft,{get ref(){return s(wt).autoplayNextToggle},set ref(ni){s(wt).autoplayNextToggle=ni}})};q(Ot,ft=>{je()&&!Je()&&ft(wi)})}var Gi=H(Ot,2);{var li=ft=>{Nl(ft,{isMobile:!0,click:br,get state(){return g()},get ref(){return s(wt).chromecast},set ref(ni){s(wt).chromecast=ni}})};q(Gi,ft=>{s(qn)&&ft(li)})}var bo=H(Gi,2);{var lo=ft=>{_p(ft,{click:cn,get isPictureInPictureActive(){return m()},get ref(){return s(wt).pip},set ref(ni){s(wt).pip=ni}})};q(bo,ft=>{s(Li)&&ft(lo)})}var Bo=H(bo,2);{var Yi=ft=>{Aa(ft,{ref$:xr})};q(Bo,ft=>{ne()&&ft(Yi)})}var fn=H(Bo,2);{var Yo=ft=>{Rl(ft,{click:Ne,get targetUrl(){return et()},get logoClickable(){return le()},get ref(){return s(wt).vkLogo},set ref(ni){s(wt).vkLogo=ni}})};q(fn,ft=>{s(bn)&&ft(Yo)})}y(Oi);var In=H(Oi,2),Tr=w(In);{var Ir=ft=>{let ni=b(()=>yt.bind(null,!0));Js(ft,{get click(){return s(ni)},type:"prev",isMobile:!0,get ref(){return s(wt).prevButton},set ref(Ci){s(wt).prevButton=Ci}})};q(Tr,ft=>{s(hr)&&ft(Ir)})}var kr=H(Tr,2);{var us=ft=>{Va(ft,{get disabled(){return s(zn)},click:vt,isMobile:!0,get isPlaying(){return s(qr)},get ref(){return s(wt).playButton},set ref(ni){s(wt).playButton=ni}})};q(kr,ft=>{s(ln)&&ft(us)})}var mn=H(kr,2);{var Er=ft=>{La(ft,{get disabled(){return s(zo)},click:vt,isMobile:!0,get ref(){return s(wt).replayButton},set ref(ni){s(wt).replayButton=ni}})};q(mn,ft=>{s(gr)&&ft(Er)})}var Po=H(mn,2);{var nr=ft=>{let ni=b(()=>he.bind(null,!0));Js(ft,{get click(){return s(ni)},type:"next",isMobile:!0,get ref(){return s(wt).nextButton},set ref(Ci){s(wt).nextButton=Ci}})};q(Po,ft=>{s(_r)&&ft(nr)})}y(In);var Pr=H(In,2);{var jo=ft=>{var ni=i2(),Ci=Ee(ni);{var Ar=Jt=>{var Lt=Jy();Lt.__click=[Zy,oo,bt,_o];var Hi=w(Lt);let vi=b(()=>!fe());Wl(Hi,{get hidden(){return s(vi)},get disabled(){return s(oo)},get click(){return it()},get ref(){return s(wt).playPrevChapterButton},set ref(ji){s(wt).playPrevChapterButton=ji}}),y(Lt),N(()=>{ae(Lt,"fullscreen",J()),ae(Lt,"hidden",!fe())}),C(Jt,Lt)};q(Ci,Jt=>{ho&&Jt(Ar)})}var kn=H(Ci,2);{var Mr=Jt=>{var Lt=e2();rn(Lt,Md(ho?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw");var Hi=w(Lt);let vi=b(()=>!fe()&&!ie());Ql(Hi,{get hidden(){return s(vi)},get disabled(){return s(Un)},get click(){return an.toggle},get graphIsOpened(){return ie()},get ref(){return s(wt).interactiveGraphButton},set ref(ji){s(wt).interactiveGraphButton=ji}}),y(Lt),N(()=>{ae(Lt,"fullscreen",J()),ae(Lt,"hidden",!fe()&&!ie())}),C(Jt,Lt)};q(kn,Jt=>{s(xn)&&Jt(Mr)})}var oe=H(kn,2);{var qt=Jt=>{var Lt=t2();Lt.__click=[Xy,Ro,gt,mi];var Hi=w(Lt);let vi=b(()=>!fe());Kl(Hi,{get hidden(){return s(vi)},get disabled(){return s(Ro)},get click(){return te()},get ref(){return s(wt).seekToInteractiveButton},set ref(ji){s(wt).seekToInteractiveButton=ji}}),y(Lt),N(()=>{ae(Lt,"fullscreen",J()),ae(Lt,"hidden",!fe())}),C(Jt,Lt)};q(oe,Jt=>{io&&Jt(qt)})}C(ft,ni)};q(Pr,ft=>{qi&&!f()&&ft(jo)})}N(()=>{ae(Vi,"hidden",!s(Gn)),ae(xi,"hidden",!fe()),ae(xi,"fullscreen",J()),ae(Oi,"hidden",!fe()&&!_()),ae(Oi,"fullscreen",J()),ae(In,"hidden",!fe()||f()||ge()&&dt())}),C(ke,Ut)};q(Xn,ke=>{Z()||ke(Jn)})}var ko=H(Xn,2);{var Ko=ke=>{var Ut=s2(),Vi=Ee(Ut);{var xi=Ot=>{var wi=n2(),Gi=w(wi);Gd(Gi,{get muted(){return ee()},expanded:!1,click:yr,get ref(){return s(wt).volume},set ref(li){s(wt).volume=li}}),y(wi),N(()=>ae(wi,"fullscreen",J())),C(Ot,wi)};q(Vi,Ot=>{ce()&&Ot(xi)})}var pn=H(Vi,2);{var Eo=Ot=>{var wi=r2(),Gi=w(wi);let li=b(()=>!s(Wo));Va(Gi,{get disabled(){return s(zn)},click:vt,isMobile:!0,get isPlaying(){return s(li)},get ref(){return s(wt).playButton},set ref(bo){s(wt).playButton=bo}}),y(wi),C(Ot,wi)};q(pn,Ot=>{s(Wo)&&Ot(Eo)})}var Oi=H(pn,2),$e=w(Oi);Bl($e,{get position(){return be()},get duration(){return j()}}),y(Oi),N(()=>ae(Oi,"fullscreen",J())),C(ke,Ut)};q(ko,ke=>{Z()&&d()!=="inactive"&&ke(Ko)})}var ao=H(ko,2);ae(ao,"mobile",!0);var Qo=w(ao),Ki=w(Qo);ae(Ki,"mobile",!0);var Qi=w(Ki);{var wr=ke=>{So(ke,{get disabled(){return s(zo)},get ref(){return s(wt).replayButton},set ref(Ut){s(wt).replayButton=Ut},children:(Ut,Vi)=>{La(Ut,{get disabled(){return s(zo)},click:Mi})},$$slots:{default:!0}})};q(Qi,ke=>{qi&&ke(wr)})}var un=H(Qi,2);{var Qr=ke=>{So(ke,{get ref(){return s(wt).liveButton},set ref(Ut){s(wt).liveButton=Ut},children:(Ut,Vi)=>{Gl(Ut,{get isLiveActive(){return s(Di)},isMobile:!0,get ariaLabel(){return s(qo)}})},$$slots:{default:!0}})};q(un,ke=>{!Z()&&V()&&ke(Qr)})}var Cn=H(un,2);{var Cr=ke=>{let Ut=b(()=>Z()?be():re()),Vi=b(()=>Z()?j():K());Ml(ke,{get showDuration(){return s(Wn)},get position(){return s(Ut)},get duration(){return s(Vi)},isMobile:!0,get ref(){return s(wt).time},set ref(xi){s(wt).time=xi}})};q(Cn,ke=>{s(Qn)&&ke(Cr)})}var er=H(Cn,2);let Sn=b(()=>!s(dn));So(er,{className:"w-max",get disabled(){return s(Sn)},get ref(){return s(wt).episodes},set ref(ke){s(wt).episodes=ke},children:(ke,Ut)=>{var Vi=Xe(),xi=Ee(Vi);{var pn=Eo=>{var Oi=a2(),$e=H(Ee(Oi),2);Ol($e,{get position(){return re()},get duration(){return K()},timeCodes:vo}),C(Eo,Oi)};q(xi,Eo=>{s(dn)&&Eo(pn)})}C(ke,Vi)},$$slots:{default:!0}});var Gr=H(er,2);{var tr=ke=>{So(ke,{get ref(){return s(wt).settings},set ref(Ut){s(wt).settings=Ut},children:(Ut,Vi)=>{Aa(Ut,{ref$:xr})},$$slots:{default:!0}})};q(Gr,ke=>{s($o)&&ke(tr)})}var ir=H(Gr,2);{var yi=ke=>{So(ke,{get ref(){return s(wt).fullscreen},set ref(Ut){s(wt).fullscreen=Ut},children:(Ut,Vi)=>{Vl(Ut,{get click(){return Tt()},get isFullscreen(){return J()}})},$$slots:{default:!0}})};q(ir,ke=>{s(yn)&&ke(yi)})}y(Ki),St(Ki,ke=>Ye(ke),()=>Ye());var Sr=H(Ki,2);Dl(Sr,{get isAds(){return Z()},get canRewindLive(){return ue()},get isRewindableLive(){return R()},get ref(){return s(wt).timeline},set ref(ke){s(wt).timeline=ke}}),y(Qo),y(ao),St(ao,ke=>Te(ke),()=>Te());var Tn=H(ao,2);{var Go=ke=>{Ul(ke,{get ref(){return s(wt).interactiveTimeIndicator},set ref(Ut){s(wt).interactiveTimeIndicator=Ut}})};q(Tn,ke=>{fi&&ke(Go)})}N(()=>{ae(ao,"hidden",qe()),ae(ao,"controls-hidden",!fe()),ae(ao,"no-smooth",Be()),ae(Qo,"fullscreen",J())}),C(t,wn);var Yr=A({get bottomHidden(){return qe()},set bottomHidden(ke){qe(ke),u()},get bottomNoSmooth(){return Be()},set bottomNoSmooth(ke){Be(ke),u()},get showControls(){return fe()},set showControls(ke){fe(ke),u()},get playerControlsWrapperRef(){return Te()},set playerControlsWrapperRef(ke=void 0){Te(ke),u()},get playerControlsRef(){return Ye()},set playerControlsRef(ke=void 0){Ye(ke),u()},get isAds(){return Z()},set isAds(ke=!1){Z(ke),u()},get canRewindLive(){return ue()},set canRewindLive(ke){ue(ke),u()},get logoClickable(){return le()},set logoClickable(ke){le(ke),u()},get logoHidden(){return He()},set logoHidden(ke){He(ke),u()},get logoTargetUrl(){return et()},set logoTargetUrl(ke=""){et(ke),u()},get showNextPrevButtons(){return dt()},set showNextPrevButtons(ke){dt(ke),u()},get nextButtonActive(){return _e()},set nextButtonActive(ke){_e(ke),u()},get prevButtonActive(){return me()},set prevButtonActive(ke){me(ke),u()},get isOneVideoPlaylist(){return Je()},set isOneVideoPlaylist(ke=!1){Je(ke),u()},get customFullscreenSupported(){return mt()},set customFullscreenSupported(ke=!0){mt(ke),u()},get endScreenShown(){return ge()},set endScreenShown(ke){ge(ke),u()},get showAutoplayNext(){return je()},set showAutoplayNext(ke){je(ke),u()},get toggleFullscreen(){return Tt()},set toggleFullscreen(ke){Tt(ke),u()},get seekToInteractive(){return te()},set seekToInteractive(ke){te(ke),u()},get playPrevChapter(){return it()},set playPrevChapter(ke){it(ke),u()},get onDisabledPlayPrevChapterClick(){return bt()},set onDisabledPlayPrevChapterClick(ke){bt(ke),u()},get onDisabledSeekToInteractiveClick(){return gt()},set onDisabledSeekToInteractiveClick(ke){gt(ke),u()},$set:L,$on:(ke,Ut)=>M(e,ke,Ut)});return o(),Yr}xt(["click"]);function jl(t,e){if(new.target)return E($({component:jl},t));P(e,!0);let[i,o]=tt(),n=()=>k(ee,"$isMobile",i),r=p(e,"bottomHidden",7),l=p(e,"bottomNoSmooth",7,!1),d=p(e,"showControls",7),a=p(e,"playerControlsWrapperRef",15,void 0),c=p(e,"playerControlsRef",15,void 0),f=p(e,"isAds",7,!1),g=p(e,"canRewindLive",7),m=p(e,"logoClickable",7),h=p(e,"logoHidden",7),_=p(e,"logoTargetUrl",7,""),x=p(e,"showNextPrevButtons",7),T=p(e,"showAutoplayNext",7,!1),V=p(e,"nextButtonActive",7),D=p(e,"prevButtonActive",7),R=p(e,"isOneVideoPlaylist",7,!1),B=p(e,"customFullscreenSupported",7,!0),I=p(e,"endScreenShown",7,!1),z=p(e,"toggleFullscreen",7),Q=p(e,"seekToInteractive",7),F=p(e,"playPrevChapter",7),G=p(e,"onDisabledPlayPrevChapterClick",7,Yd.noop),J=p(e,"onDisabledSeekToInteractiveClick",7,Yd.noop),ee=Fe().ui.isMobile,Ce=pe(!1);Zt(()=>{let j=setTimeout(()=>Y(Ce,!0),0);return()=>clearTimeout(j)});var Se=Xe(),ne=Ee(Se);{var ie=j=>{var re=Xe(),K=Ee(re);{var qe=fe=>{$p(fe,{get bottomHidden(){return r()},get bottomNoSmooth(){return l()},get showControls(){return d()},get isAds(){return f()},get canRewindLive(){return g()},get logoClickable(){return m()},get logoHidden(){return h()},get logoTargetUrl(){return _()},get showAutoplayNext(){return T()},get showNextPrevButtons(){return x()},get nextButtonActive(){return V()},get prevButtonActive(){return D()},get isOneVideoPlaylist(){return R()},get customFullscreenSupported(){return B()},get endScreenShown(){return I()},get toggleFullscreen(){return z()},get seekToInteractive(){return Q()},get playPrevChapter(){return F()},get onDisabledPlayPrevChapterClick(){return G()},get onDisabledSeekToInteractiveClick(){return J()},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(Te){a(Te)},get playerControlsRef(){return c()},set playerControlsRef(Te){c(Te)}})},Be=fe=>{pp(fe,{get bottomHidden(){return r()},get bottomNoSmooth(){return l()},get showControls(){return d()},get isAds(){return f()},get canRewindLive(){return g()},get logoClickable(){return m()},get logoHidden(){return h()},get logoTargetUrl(){return _()},get isOneVideoPlaylist(){return R()},get showAutoplayNext(){return T()},get showNextPrevButtons(){return x()},get nextButtonActive(){return V()},get prevButtonActive(){return D()},get customFullscreenSupported(){return B()},get toggleFullscreen(){return z()},get seekToInteractive(){return Q()},get playPrevChapter(){return F()},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(Te){a(Te)},get playerControlsRef(){return c()},set playerControlsRef(Te){c(Te)}})};q(K,fe=>{n()?fe(qe):fe(Be,!1)})}C(j,re)};q(ne,j=>{s(Ce)&&j(ie)})}C(t,Se);var be=A({get bottomHidden(){return r()},set bottomHidden(j){r(j),u()},get bottomNoSmooth(){return l()},set bottomNoSmooth(j=!1){l(j),u()},get showControls(){return d()},set showControls(j){d(j),u()},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(j=void 0){a(j),u()},get playerControlsRef(){return c()},set playerControlsRef(j=void 0){c(j),u()},get isAds(){return f()},set isAds(j=!1){f(j),u()},get canRewindLive(){return g()},set canRewindLive(j){g(j),u()},get logoClickable(){return m()},set logoClickable(j){m(j),u()},get logoHidden(){return h()},set logoHidden(j){h(j),u()},get logoTargetUrl(){return _()},set logoTargetUrl(j=""){_(j),u()},get showNextPrevButtons(){return x()},set showNextPrevButtons(j){x(j),u()},get showAutoplayNext(){return T()},set showAutoplayNext(j=!1){T(j),u()},get nextButtonActive(){return V()},set nextButtonActive(j){V(j),u()},get prevButtonActive(){return D()},set prevButtonActive(j){D(j),u()},get isOneVideoPlaylist(){return R()},set isOneVideoPlaylist(j=!1){R(j),u()},get customFullscreenSupported(){return B()},set customFullscreenSupported(j=!0){B(j),u()},get endScreenShown(){return I()},set endScreenShown(j=!1){I(j),u()},get toggleFullscreen(){return z()},set toggleFullscreen(j){z(j),u()},get seekToInteractive(){return Q()},set seekToInteractive(j){Q(j),u()},get playPrevChapter(){return F()},set playPrevChapter(j){F(j),u()},get onDisabledPlayPrevChapterClick(){return G()},set onDisabledPlayPrevChapterClick(j=Yd.noop){G(j),u()},get onDisabledSeekToInteractiveClick(){return J()},set onDisabledSeekToInteractiveClick(j=Yd.noop){J(j),u()},$set:L,$on:(j,re)=>M(e,j,re)});return o(),be}var c2=Re('<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 bp(t,e){if(new.target)return E($({component:bp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=c2();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}function yp(t,e){if(new.target)return E($({component:yp},t));P(e,!0);let i=p(e,"reversed",7,!1),o=b(()=>i()?"transform: scaleX(-1);":void 0);return bp(t,{get style(){return s(o)}}),A({get reversed(){return i()},set reversed(n=!1){i(n),u()},$set:L,$on:(n,r)=>M(e,n,r)})}var u2=Re('<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 xp(t,e){if(new.target)return E($({component:xp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=u2();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var p2=Re('<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 wp(t,e){if(new.target)return E($({component:wp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=p2();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}function jd(t,e){if(new.target)return E($({component:jd},t));P(e,!0);let i=p(e,"isOff",7,!1);var o=Xe(),n=Ee(o);{var r=d=>{wp(d,{})},l=d=>{xp(d,{})};q(n,d=>{i()?d(r):d(l,!1)})}return C(t,o),A({get isOff(){return i()},set isOff(d=!1){i(d),u()},$set:L,$on:(d,a)=>M(e,d,a)})}var f2=Re('<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 Cp(t,e){if(new.target)return E($({component:Cp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=f2();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}function Sp(t,e){if(new.target)return E($({component:Sp},t));P(e,!0);let i=p(e,"reversed",7,!1),o=b(()=>i()?"transform: scaleX(-1);":void 0);return Cp(t,{get style(){return s(o)}}),A({get reversed(){return i()},set reversed(n=!1){i(n),u()},$set:L,$on:(n,r)=>M(e,n,r)})}var m2=Re('<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 Tp(t,e){if(new.target)return E($({component:Tp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=m2();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(2),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}function Ip(t,e){if(new.target)return E($({component:Ip},t));P(e,!0);let i=p(e,"reversed",7,!1),o=b(()=>i()?"transform: scaleX(-1);":void 0);return Tp(t,{get style(){return s(o)}}),A({get reversed(){return i()},set reversed(n=!1){i(n),u()},$set:L,$on:(n,r)=>M(e,n,r)})}var v2=U('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),g2=U('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),h2=U('<div class="hot-key-helpers-container svelte-1ad3n06"><!></div>'),_2={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
263
+ }`};function rm(t,e){var mr,Mr;K(e,!0),G(t,xy);let[i,o]=Fe(),n=()=>C(ui,"$seekToInteractiveDisabledTooltip$",i),a=()=>C(Po,"$disabledControls$",i),s=()=>C(gt,"$playbackState$",i),d=()=>C(ht,"$adPlaybackState",i),l=()=>C(Ve,"$isEnded$",i),u=()=>C(Yt,"$playerSize",i),f=()=>C(Ce,"$scrubbingInProgress",i),_=()=>C(oi,"$chromecastState$",i),p=()=>C(pt,"$isPictureInPictureActive",i),$=()=>C(Kt,"$pictureInPictureType$",i),y=()=>C(Ne,"$mobileNotReportControlHidden$",i),w=()=>C(tt,"$playerPhase",i),S=()=>C(Mo,"$currentGridType$",i),I=()=>C(se,"$isLive$",i),A=()=>C(Je,"$settingsMenuVisible",i),P=()=>C(ge,"$isRewindableLive$",i),E=()=>C(le,"$isActiveLive$",i),T=()=>C(uo,"$isInteractiveTime$",i),R=()=>C(qt,"$isAudioAvailable$",i),z=()=>C(Qi,"$settingButtonRef$",i),Z=()=>C(Ki,"$startedByKeyboard$",i),U=()=>C(H,"$isFullscreen",i),Q=()=>C(dt,"$mobileUnmuteButtonVisible",i),ee=()=>C(j,"$muted$",i),ae=()=>C(Ye,"$mobileUnmuteButtonExpanded",i),_e=()=>C(Wi,"$additionalButtons$",i),re=()=>C(Bi,"$crashed$",i),Pe=()=>C(xt,"$graphIsOpened$",i),qe=()=>C(Pt,"$adPosition",i),ie=()=>C(Lo,"$adDuration",i),Le=()=>C(st,"$position$",i),J=()=>C(Ot,"$duration$",i),D=v(e,"playerControlsWrapperRef",15,void 0),Be=v(e,"playerControlsRef",15,void 0),X=v(e,"isAds",3,!1),Ge=v(e,"logoTargetUrl",3,""),Re=v(e,"isOneVideoPlaylist",3,!1),ue=v(e,"customFullscreenSupported",3,!0),B=Ie(),ce=co(),Ee=Gt(),Ke=B.actions.internal.toggleMuted,lt=B.actions.internal.togglePlay,Ae=B.actions.internal.pause,ye=B.actions.internal.prevVideoClick,Me=B.actions.internal.nextVideoClick,rt=(mr=B.callbacks)==null?void 0:mr.onAudioDoesNotExistHint,vt=(Mr=B.callbacks)==null?void 0:Mr.onAudioDisabledHint,tt=B.playerPhase,Ot=B.state.duration$,st=B.state.positionWithScrubbing$,gt=B.state.playbackState$,qt=B.state.isAudioAvailable$,Qt=B.state.isAudioDisabled,Ve=B.state.isEnded$,se=B.state.isLive$,j=B.state.muted$,le=B.state.isActiveLive$,ge=B.state.isRewindableLive$,Ce=B.ui.scrubbingInProgress,Ne=B.ui.mobileNotReportControlHidden$,{isActive$:pt,type$:Kt}=ce.pictureInPicture$,Ye=B.ui.mobileUnmuteButtonExpanded,dt=B.ui.mobileUnmuteButtonVisible,Je=B.ui.settingsMenu.visible$,It=B.ui.settingsMenu.openedByBtnKeyboard$,ei=B.ui.controls,We=B.actions.internal.getVideoEpisodes(),ct=B.webApi.pictureInPictureApi,oi=B.state.chromecastState$,Bi=B.state.crashed$,Po=ei.disabledControls$,Ki=B.ui.startedByKeyboard$,Mo=B.ui.currentGridType$,Lo=B.ads.duration,Pt=B.ads.position,ht=B.ads.playbackState,H=B.ui.isFullscreen,Yt=B.ui.playerSize,Wi=B.ui.additionalButtonsDeprecated$,Oi=B.actions.internal.getVideoElement,si=B.actions.internal.replayInteractive,ci=B.state.isInteractive,uo=B.state.isInteractiveTime$,po=B.state.showInteractiveGraph,Zi=B.state.showSeekToInteractive,Ho=B.state.showPlayPrevChapter,Ht=B.state.showInteractiveTimeIndicator,ui=ce.seekToInteractiveDisabledTooltip$,xt=ce.graphIsOpened$,Wt=m(()=>F(B.state.playPrevChapterDisabledTooltip)),fo=m(()=>F(n())),Jt=m(()=>a().has("EPISODE_BUTTON")),Wn=m(()=>a().has("GRAPH_BUTTON")),So=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Fo=m(()=>a().has("PLAY_BUTTON")),pi=m(()=>a().has("REPLAY_BUTTON")),$t=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),fi=m(()=>s()===ll.PlaybackState.PLAYING),mo=m(()=>d()==="paused"),_i=m(()=>l()&&!X()&&!ci),_n=m(()=>!l()||X()),wi=m(()=>e.showNextPrevButtons&&!X()&&e.prevButtonActive),Co=m(()=>e.showNextPrevButtons&&!X()&&e.nextButtonActive),Uo=m(()=>u().width>300),bn=m(()=>u().width>400),Si=m(f),Qn=m(()=>_()!==ll.ChromecastState.NOT_AVAILABLE&&!(p()&&$()===1)&&!y()&&!ci),rn=m(()=>w()==="LiveWaitingStart"),Vo=m(()=>!!ct&&_()!==ll.ChromecastState.CONNECTED&&!y()&&($()===1&&r(rn)||!r(rn))&&!r(Si)&&!ci),sn=m(()=>!r(Si)&&Ui(S(),"s")),Er=m(()=>!e.logoHidden&&u().width>350),cr=m(()=>Ee.features.fullscreen&&!(p()&&$()===1)&&(ci?ue():!0)&&!r(Si)),Gn=m(()=>(!I()||X())&&u().width>260&&!r(Si)&&!(Ee.features.interactiveHideTime&&ci)),$n=m(()=>A()||e.showControls),an=m(()=>!X()&&!I()&&!!(We!=null&&We.length)&&r(Uo)&&!r(Jt)&&!r(Si)),yn=m(()=>!P()||!!E()),vo=m(()=>po&&Ui(S(),"m")),et=pe({}),ln=(0,T1.debounceFn)(ru,260);Ze(()=>{u(),T(),ln(Oi(),ei,et,e.showControls)});let Yn=()=>B.actions.internal.toggleChromecast();function jn(){Is({isAudioDisabled:Qt,audioDisabledHintCallback:vt,isAudioAvailable:R(),audioIsNotExistHintCallback:rt})&&Ke()}function xn(){return St(this,null,function*(){ct!=null&&ct.isActive()?yield ct==null?void 0:ct.remove():yield ct==null?void 0:ct.request()})}function dn(){!Qt&&R()&&dt.set(!1),jn()}let cn=te(""),zo=(ot,ft)=>{if(!ot){O(cn,pe(F("tooltip_live")));return}ft&&ft===ll.PlaybackState.PAUSED&&O(cn,pe(F("tooltip_play")))};Ze(()=>{zo(r(yn),s())});let Qi=de();Ze(()=>{z()&&Za(z(),A(),It)}),Ze(()=>{su(Ki,Z(),et.playButton)});var Gi=yy(),Zn=ve(Gi);{var wn=ot=>{var ft=gy(),Ci=ve(ft);let to;var io=M(Ci,2);let To;var No=h(io);{var Do=it=>{let Ut=m(()=>R()&&!Qt&&ae());lu(it,{get muted(){return ee()},get expanded(){return r(Ut)},click:dn,get ref(){return et.volume},set ref(xe){et.volume=xe}})};V(No,it=>{(!R()||Q())&&it(Do)})}g(io);var Io=M(io,2);let Xe;var Mt=h(Io);yi(Mt,1,_e,({iconUrl:it,ariaLabel:Ut,testId:xe,onClick:Lt,tooltip:ti})=>it,(it,Ut)=>{let xe=()=>r(Ut).iconUrl,Lt=()=>r(Ut).ariaLabel,ti=()=>r(Ut).testId,ni=()=>r(Ut).onClick,_o=()=>r(Ut).tooltip,Vi=m(()=>{var ri;return(ri=Lt())!=null?ri:_o()});em(it,{get iconUrl(){return xe()},get ariaLabel(){return r(Vi)},get testId(){return ti()},get onClick(){return ni()}})});var Mi=M(Mt,2);{var oo=it=>{Id(it,{get ref(){return et.autoplayNextToggle},set ref(Ut){et.autoplayNextToggle=Ut}})};V(Mi,it=>{e.showAutoplayNext&&!Re()&&it(oo)})}var Ti=M(Mi,2);{var Ii=it=>{_d(it,{isMobile:!0,click:Yn,get state(){return _()},get ref(){return et.chromecast},set ref(Ut){et.chromecast=Ut}})};V(Ti,it=>{r(Qn)&&it(Ii)})}var Li=M(Ti,2);{var Pn=it=>{nm(it,{click:xn,get isPictureInPictureActive(){return p()},get ref(){return et.pip},set ref(Ut){et.pip=Ut}})};V(Li,it=>{r(Vo)&&it(Pn)})}var Yi=M(Li,2);{var Mn=it=>{ol(it,{ref$:Qi})};V(Yi,it=>{re()&&it(Mn)})}var Ln=M(Yi,2);{var Ko=it=>{hd(it,{click:Ae,get targetUrl(){return Ge()},get logoClickable(){return e.logoClickable},get ref(){return et.vkLogo},set ref(Ut){et.vkLogo=Ut}})};V(Ln,it=>{r(Er)&&it(Ko)})}g(Io);var Vn=M(Io,2);let vr;var gr=h(Vn);{var Lr=it=>{let Ut=m(()=>ye.bind(null,!0));fa(it,{get click(){return r(Ut)},type:"prev",isMobile:!0,get ref(){return et.prevButton},set ref(xe){et.prevButton=xe}})};V(gr,it=>{r(wi)&&it(Lr)})}var hr=M(gr,2);{var un=it=>{al(it,{get disabled(){return r(Fo)},click:lt,isMobile:!0,get isPlaying(){return r(fi)},get ref(){return et.playButton},set ref(Ut){et.playButton=Ut}})};V(hr,it=>{r(_n)&&it(un)})}var pn=M(hr,2);{var tr=it=>{sl(it,{get disabled(){return r(pi)},click:lt,isMobile:!0,get ref(){return et.replayButton},set ref(Ut){et.replayButton=Ut}})};V(pn,it=>{r(_i)&&it(tr)})}var Vr=M(pn,2);{var ho=it=>{let Ut=m(()=>Me.bind(null,!0));fa(it,{get click(){return r(Ut)},type:"next",isMobile:!0,get ref(){return et.nextButton},set ref(xe){et.nextButton=xe}})};V(Vr,it=>{r(Co)&&it(ho)})}g(Vn);var Rn=M(Vn,2);{var _r=it=>{var Ut=vy(),xe=ve(Ut);{var Lt=ri=>{var li=py();let bi;li.__click=[cy,$t,e,Wt];var ji=h(li);let Ri=m(()=>!e.showControls);Td(ji,{get hidden(){return r(Ri)},get disabled(){return r($t)},get click(){return e.playPrevChapter},get ref(){return et.playPrevChapterButton},set ref(ki){et.playPrevChapterButton=ki}}),g(li),k(ki=>bi=oe(li,1,"wrapper-middle-left svelte-1afsgkw",null,bi,ki),[()=>({fullscreen:U(),hidden:!e.showControls})]),b(ri,li)};V(xe,ri=>{Ho&&ri(Lt)})}var ti=M(xe,2);{var ni=ri=>{var li=fy();let bi;var ji=h(li);let Ri=m(()=>!e.showControls&&!Pe());Ed(ji,{get hidden(){return r(Ri)},get disabled(){return r(Wn)},get click(){return xt.toggle},get graphIsOpened(){return Pe()},get ref(){return et.interactiveGraphButton},set ref(ki){et.interactiveGraphButton=ki}}),g(li),k(ki=>bi=oe(li,1,Kl(Ho?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",bi,ki),[()=>({fullscreen:U(),hidden:!e.showControls&&!Pe()})]),b(ri,li)};V(ti,ri=>{r(vo)&&ri(ni)})}var _o=M(ti,2);{var Vi=ri=>{var li=my();let bi;li.__click=[uy,So,e,fo];var ji=h(li);let Ri=m(()=>!e.showControls);kd(ji,{get hidden(){return r(Ri)},get disabled(){return r(So)},get click(){return e.seekToInteractive},get ref(){return et.seekToInteractiveButton},set ref(ki){et.seekToInteractiveButton=ki}}),g(li),k(ki=>bi=oe(li,1,"wrapper-middle-right svelte-1afsgkw",null,bi,ki),[()=>({fullscreen:U(),hidden:!e.showControls})]),b(ri,li)};V(_o,ri=>{Zi&&ri(Vi)})}b(it,Ut)};V(Rn,it=>{ci&&!f()&&it(_r)})}k((it,Ut,xe,Lt)=>{to=oe(Ci,1,"overlay-mobile svelte-1afsgkw",null,to,it),To=oe(io,1,"wrapper-top-left svelte-1afsgkw",null,To,Ut),Xe=oe(Io,1,"wrapper-top-right svelte-1afsgkw",null,Xe,xe),vr=oe(Vn,1,"wrapper-middle svelte-1afsgkw",null,vr,Lt)},[()=>({hidden:!r($n)}),()=>({hidden:!e.showControls,fullscreen:U()}),()=>({hidden:!e.showControls&&!y(),fullscreen:U()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(ot,ft)};V(Zn,ot=>{X()||ot(wn)})}var Xn=M(Zn,2);{var ur=ot=>{var ft=by(),Ci=ve(ft);{var to=Xe=>{var Mt=hy();let Mi;var oo=h(Mt);lu(oo,{get muted(){return ee()},expanded:!1,click:dn,get ref(){return et.volume},set ref(Ti){et.volume=Ti}}),g(Mt),k(Ti=>Mi=oe(Mt,1,"wrapper-top-right svelte-1afsgkw",null,Mi,Ti),[()=>({fullscreen:U()})]),b(Xe,Mt)};V(Ci,Xe=>{Q()&&Xe(to)})}var io=M(Ci,2);{var To=Xe=>{var Mt=_y(),Mi=h(Mt);let oo=m(()=>!r(mo));al(Mi,{get disabled(){return r(Fo)},click:lt,isMobile:!0,get isPlaying(){return r(oo)},get ref(){return et.playButton},set ref(Ti){et.playButton=Ti}}),g(Mt),b(Xe,Mt)};V(io,Xe=>{r(mo)&&Xe(To)})}var No=M(io,2);let Do;var Io=h(No);bd(Io,{get position(){return qe()},get duration(){return ie()}}),g(No),k(Xe=>Do=oe(No,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Do,Xe),[()=>({fullscreen:U()})]),b(ot,ft)};V(Xn,ot=>{X()&&d()!=="inactive"&&ot(ur)})}var Xi=M(Xn,2);let Ji;var Sn=h(Xi);let Cn;var go=h(Sn);oe(go,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var eo=h(go);{var Tn=ot=>{Ao(ot,{get disabled(){return r(pi)},get ref(){return et.replayButton},set ref(ft){et.replayButton=ft},children:(ft,Ci)=>{sl(ft,{get disabled(){return r(pi)},click:si})},$$slots:{default:!0}})};V(eo,ot=>{ci&&ot(Tn)})}var Ro=M(eo,2);{var Ar=ot=>{Ao(ot,{get ref(){return et.liveButton},set ref(ft){et.liveButton=ft},children:(ft,Ci)=>{Ad(ft,{get isLiveActive(){return r(yn)},isMobile:!0,get ariaLabel(){return r(cn)}})},$$slots:{default:!0}})};V(Ro,ot=>{!X()&&I()&&ot(Ar)})}var In=M(Ro,2);{var pr=ot=>{let ft=m(()=>X()?qe():Le()),Ci=m(()=>X()?ie():J());fd(ot,{get showDuration(){return r(bn)},get position(){return r(ft)},get duration(){return r(Ci)},isMobile:!0,get ref(){return et.time},set ref(to){et.time=to}})};V(In,ot=>{r(Gn)&&ot(pr)})}var kn=M(In,2);let En=m(()=>!r(an));Ao(kn,{className:"w-max",get disabled(){return r(En)},get ref(){return et.episodes},set ref(ot){et.episodes=ot},children:(ot,ft)=>{var Ci=ze(),to=ve(Ci);{var io=To=>{var No=$y(),Do=M(ve(No),2);yd(Do,{get position(){return Le()},get duration(){return J()},timeCodes:We}),b(To,No)};V(to,To=>{r(an)&&To(io)})}b(ot,Ci)},$$slots:{default:!0}});var Pr=M(kn,2);{var Jn=ot=>{Ao(ot,{get ref(){return et.settings},set ref(ft){et.settings=ft},children:(ft,Ci)=>{ol(ft,{ref$:Qi})},$$slots:{default:!0}})};V(Pr,ot=>{r(sn)&&ot(Jn)})}var fr=M(Pr,2);{var er=ot=>{Ao(ot,{get ref(){return et.fullscreen},set ref(ft){et.fullscreen=ft},children:(ft,Ci)=>{gd(ft,{get click(){return e.toggleFullscreen},get isFullscreen(){return U()}})},$$slots:{default:!0}})};V(fr,ot=>{r(cr)&&ot(er)})}g(go),ut(go,ot=>Be(ot),()=>Be());var An=M(go,2);$d(An,{get isAds(){return X()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return et.timeline},set ref(ot){et.timeline=ot}}),g(Sn),g(Xi),ut(Xi,ot=>D(ot),()=>D());var di=M(Xi,2);{var qo=ot=>{Sd(ot,{get ref(){return et.interactiveTimeIndicator},set ref(ft){et.interactiveTimeIndicator=ft}})};V(di,ot=>{Ht&&ot(qo)})}k((ot,ft)=>{Ji=oe(Xi,1,"wrapper-bottom svelte-1afsgkw",null,Ji,ot),Cn=oe(Sn,1,"controls-wrapper svelte-1afsgkw",null,Cn,ft)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:U()})]),b(t,Gi),W(),o()}at(["click"]);function Pd(t,e){K(e,!0);let[i,o]=Fe(),n=()=>C(I,"$isMobile",i),a=v(e,"bottomNoSmooth",3,!1),s=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),l=v(e,"isAds",3,!1),u=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),_=v(e,"isOneVideoPlaylist",3,!1),p=v(e,"customFullscreenSupported",3,!0),$=v(e,"endScreenShown",3,!1),y=v(e,"onDisabledPlayPrevChapterClick",3,sm.noop),w=v(e,"onDisabledSeekToInteractiveClick",3,sm.noop),I=Ie().ui.isMobile,A=te(!1);Ft(()=>{let R=setTimeout(()=>O(A,!0),0);return()=>clearTimeout(R)});var P=ze(),E=ve(P);{var T=R=>{var z=ze(),Z=ve(z);{var U=ee=>{rm(ee,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return _()},get customFullscreenSupported(){return p()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return w()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(ae){s(ae)},get playerControlsRef(){return d()},set playerControlsRef(ae){d(ae)}})},Q=ee=>{Xf(ee,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return _()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(ae){s(ae)},get playerControlsRef(){return d()},set playerControlsRef(ae){d(ae)}})};V(Z,ee=>{n()?ee(U):ee(Q,!1)})}b(R,z)};V(E,R=>{r(A)&&R(T)})}b(t,P),W(),o()}var wy=$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 am(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=wy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(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 lm(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);am(t,{get style(){return r(o)}})}var Sy=$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 dm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Sy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(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 Cy=$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 cm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(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 du(t,e){let i=v(e,"isOff",3,!1);var o=ze(),n=ve(o);{var a=d=>{cm(d,{})},s=d=>{dm(d,{})};V(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var Ty=$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 um(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(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 pm(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);um(t,{get style(){return r(o)}})}var Iy=$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 fm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Se(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 mm(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);fm(t,{get style(){return r(o)}})}var ky=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Ey=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Ay=L("<div><!></div>"),Py={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;
261
264
  animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
262
265
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
263
266
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -272,21 +275,21 @@ Try switching the\xA0quality to\xA0Auto.`},Rh=_1;var ws=new Map;ws.set(pl.Interf
272
275
  @keyframes svelte-1ad3n06-fadeOut {
273
276
  0% {opacity:1;}
274
277
  100% {opacity:0;}
275
- }`};function kp(t,e){if(new.target)return E($({component:kp},t));P(e,!0),se(t,_2);let[i,o]=tt(),n=()=>k(r(),"$data",i),r=p(e,"data",7),d=Fe().ui.t,a=b(()=>!n()),c=b(()=>{var V;return((V=n())==null?void 0:V.type)==="BACKWARD_SEEK"}),f=b(()=>{var V;return((V=n())==null?void 0:V.type)==="FORWARD_SEEK"}),g=b(()=>{var V;return(V=n())==null?void 0:V.type}),m=b(()=>{var V,D;return(V=n())!=null&&V.t?d(n().t.key,{value:n().t.value||""}):(D=n())==null?void 0:D.text});var h=h2(),_=w(h);{var x=V=>{var D=g2(),R=Ee(D),B=w(R);{var I=Z=>{let ue=b(()=>s(g)==="FORWARD_SEEK");yp(Z,{get reversed(){return s(ue)}})};q(B,Z=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(g))&&Z(I)})}var z=H(B,2);{var Q=Z=>{ea(Z,{})};q(z,Z=>{s(g)==="PAUSE"&&Z(Q)})}var F=H(z,2);{var G=Z=>{cs(Z,{})};q(F,Z=>{s(g)==="PLAY"&&Z(G)})}var J=H(F,2);{var ce=Z=>{zl(Z,{})};q(J,Z=>{s(g)==="REPLAY"&&Z(ce)})}var ee=H(J,2);{var Ce=Z=>{jd(Z,{isOff:!0})};q(ee,Z=>{s(g)==="SUBTITLES_OFF"&&Z(Ce)})}var Se=H(ee,2);{var ne=Z=>{jd(Z,{})};q(Se,Z=>{s(g)==="SUBTITLES_ON"&&Z(ne)})}var ie=H(Se,2);{var be=Z=>{let ue=b(()=>s(g)==="RATE_UP");Sp(Z,{get reversed(){return s(ue)}})};q(ie,Z=>{["RATE_DOWN","RATE_UP"].includes(s(g))&&Z(be)})}var j=H(ie,2);{var re=Z=>{let ue=b(()=>s(g)==="EPISODE_NEXT");Ip(Z,{get reversed(){return s(ue)}})};q(j,Z=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(g))&&Z(re)})}var K=H(j,2);{var qe=Z=>{Cs(Z,{volume:0})};q(K,Z=>{s(g)==="MUTE"&&Z(qe)})}var Be=H(K,2);{var fe=Z=>{Cs(Z,{volume:1})};q(Be,Z=>{s(g)==="VOLUME"&&Z(fe)})}y(R);var Te=H(R,2);{var Ye=Z=>{var ue=v2(),le=w(ue,!0);y(ue),N(()=>Pe(le,s(m))),C(Z,ue)};q(Te,Z=>{s(m)&&Z(Ye)})}C(V,D)};q(_,V=>{!s(a)&&s(g)&&V(x)})}y(h),N(()=>{ae(h,"hidden",s(a)),ae(h,"hot-key-helpers-container--left",s(c)),ae(h,"hot-key-helpers-container--right",s(f))}),C(t,h);var T=A({get data(){return r()},set data(V){r(V),u()},$set:L,$on:(V,D)=>M(e,V,D)});return o(),T}var $2=Re('<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 Ep(t,e){if(new.target)return E($({component:Ep},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=$2();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var b2=Re('<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 Pp(t,e){if(new.target)return E($({component:Pp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=b2();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}function Is(t,e){if(new.target)return E($({component:Is},t));P(e,!0);let i=p(e,"direction",7,"left"),o=p(e,"useBtnColor",7,!1),n=b(()=>["up","down"].includes(i())),r=b(()=>["right","down"].includes(i())),l=b(()=>(()=>{let g="";return s(r)&&(g+="transform: rotate(180deg);"),o()&&(g+="color: var(--btn-color, #fff);"),g.length?g:void 0})());var d=Xe(),a=Ee(d);{var c=g=>{let m=b(()=>s(r)?"chevron-icon--down":"chevron-icon--up");Ep(g,{get style(){return s(l)},get"data-testid"(){return s(m)}})},f=g=>{let m=b(()=>s(r)?"chevron-icon--right":"chevron-icon--left");Pp(g,{get style(){return s(l)},get"data-testid"(){return s(m)}})};q(a,g=>{s(n)?g(c):g(f,!1)})}return C(t,d),A({get direction(){return i()},set direction(g="left"){i(g),u()},get useBtnColor(){return o()},set useBtnColor(g=!1){o(g),u()},$set:L,$on:(g,m)=>M(e,g,m)})}var y2=(t,e,i,o,n,r)=>{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":r();break}},x2=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},w2=U('<div class="immersive-controls svelte-1yzc86r" 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>'),C2={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 Zl(t,e){if(new.target)return E($({component:Zl},t));P(e,!0),se(t,C2);let i=p(e,"isShifted",7,!1),o=Fe(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),f=X("aria_label_spherical_control");var g=w2();g.__keydown=[y2,n,r,l,a,d],g.__keyup=[x2,n,c],ve(g,"aria-label",f);var m=w(g),h=w(m),_=w(h);_.__mousedown=r,_.__mouseup=c;var x=w(_);Is(x,{direction:"up",useBtnColor:!0}),y(_);var T=H(_,2);T.__mousedown=d,T.__mouseup=c;var V=w(T);Is(V,{direction:"up",useBtnColor:!0}),y(T),y(h);var D=H(h,2),R=w(D);R.__mousedown=a,R.__mouseup=c;var B=w(R);Is(B,{direction:"up",useBtnColor:!0}),y(R);var I=H(R,2);I.__mousedown=l,I.__mouseup=c;var z=w(I);return Is(z,{direction:"up",useBtnColor:!0}),y(I),y(D),y(m),y(g),N(()=>ae(g,"m-shifted",i())),Kt("mouseleave",_,c),Kt("mouseleave",T,c),Kt("mouseleave",R,c),Kt("mouseleave",I,c),C(t,g),A({get isShifted(){return i()},set isShifted(Q=!1){i(Q),u()},$set:L,$on:(Q,F)=>M(e,Q,F)})}xt(["keydown","keyup","mousedown","mouseup"]);var ks=require("@vkontakte/videoplayer-shared/es2015");var __=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Ap=class{constructor(){this.flickeringTimeout=__(1e3);this.subscriptions=new ks.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new ks.ValueSubject([]);this.captionsPrepared$=new ks.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,ks.filter)(()=>this.isEnabled()),(0,ks.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:r,value:l},d)=>(o&&!d||(r==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var S2=U('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),T2=U('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),I2=U('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),k2=U('<div class="subtitles-caption svelte-c2x749"><span class="caption svelte-c2x749"><!></span></div>'),E2=U('<div class="subtitles-container svelte-c2x749"><!></div>'),P2={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;
276
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Xl(t,e){if(new.target)return E($({component:Xl},t));P(e,!0),se(t,P2);let[i,o]=tt(),n=()=>k(x,"$currentSubtitle$",i),r=()=>k(V,"$isLive$",i),l=()=>k(D,"$isFullscreen",i),d=()=>k(T,"$isAutoSubtitleCaptionVisible$",i),a=p(e,"shifted",7),c=p(e,"captions",7),f=p(e,"position",7),g=p(e,"playerSize",7),m=p(e,"isMobile",7,!1),h=Fe(),_=oi(),x=h.state.currentSubtitle$,T=h.state.isAutoSubtitleCaptionVisible$,V=h.state.isLive$,D=h.ui.isFullscreen,R=b(()=>!!n().isAuto),B=b(()=>!!r()),I=b(()=>g().width*.02),z=b(()=>m()&&!l()||s(I)<=_.minSubtitlesFontSize?_.minSubtitlesFontSize:s(I)),Q=pe(null);lt(()=>{var Se,ne,ie;(Se=s(Q))==null||Se.setIsAuto(s(R)),(ne=s(Q))==null||ne.setIsLive(s(B)),(ie=s(Q))==null||ie.setCaptions(c())});let F=pe(Le([[]]));Zt(()=>{Y(Q,Le(new Ap().subscribe()));let Se=s(Q).captionsPrepared$.subscribe(ne=>{Y(F,Le(ne))});return()=>{var ne;(ne=s(Q))==null||ne.destroy(),Se.unsubscribe()}}),Zt(()=>{if(s(R)){let Se=window.setTimeout(()=>{T.set(!1)},_.autoSubtitlesTimeout);return()=>{window.clearTimeout(Se)}}else T.set(!1)});let G=b(()=>g().width<400?10:g().width<550?14:24);var J=E2(),ce=w(J);{var ee=Se=>{var ne=k2(),ie=w(ne),be=w(ie);{var j=K=>{var qe=S2(),Be=w(qe),fe=w(Be,!0);y(Be),y(qe),N(Te=>{var Ye;ve(Be,"style",`font-size: ${(Ye=s(z))!=null?Ye:""}px`),Pe(fe,Te)},[()=>X("subtitles_auto_caption")]),C(K,qe)},re=K=>{var qe=Xe(),Be=Ee(qe);{var fe=Ye=>{var Z=Xe(),ue=Ee(Z);Ei(ue,17,()=>s(F),so,(le,He)=>{var et=T2(),dt=w(et);Ei(dt,21,()=>s(He),so,(_e,me)=>{let Je=()=>s(me).value,mt=()=>s(me).timeAppeared;var ge=Xe(),je=Ee(ge);{var Tt=te=>{var it=dr();N(()=>Pe(it,Je())),C(te,it)};q(je,te=>{(!mt()||mt()<=f())&&te(Tt)})}C(_e,ge)}),y(dt),y(et),N(()=>{var _e;return ve(dt,"style",`font-size: ${(_e=s(z))!=null?_e:""}px`)}),C(le,et)}),C(Ye,Z)},Te=Ye=>{var Z=Xe(),ue=Ee(Z);Ei(ue,17,c,so,(le,He)=>{let et=()=>s(He).value;var dt=I2(),_e=w(dt),me=w(_e,!0);y(_e),y(dt),N(()=>{var Je;ve(_e,"style",`font-size: ${(Je=s(z))!=null?Je:""}px`),Pe(me,et())}),C(le,dt)}),C(Ye,Z)};q(Be,Ye=>{var Z;s(R)&&((Z=s(F))!=null&&Z.length)?Ye(fe):Ye(Te,!1)},!0)}C(K,qe)};q(be,K=>{s(R)&&d()?K(j):K(re,!1)})}y(ie),y(ne),N(()=>{var K;ve(ne,"style",`--subtitles-caption-margin: ${(K=s(G))!=null?K:""}%`),ae(ne,"mobile",m())}),C(Se,ne)};q(ce,Se=>{var ne;(c().length||(ne=s(F))!=null&&ne.length)&&Se(ee)})}y(J),N(()=>{ae(J,"shifted",a()),ae(J,"auto",s(R)&&!s(B)&&!d())}),C(t,J);var Ce=A({get shifted(){return a()},set shifted(Se){a(Se),u()},get captions(){return c()},set captions(Se){c(Se),u()},get position(){return f()},set position(Se){f(Se),u()},get playerSize(){return g()},set playerSize(Se){g(Se),u()},get isMobile(){return m()},set isMobile(Se=!1){m(Se),u()},$set:L,$on:(Se,ne)=>M(e,Se,ne)});return o(),Ce}var A2=U('<div class="text svelte-raurnb"> </div>'),M2=U('<div class="wrapper svelte-raurnb"><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>'),L2={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 Jl(t,e){if(new.target)return E($({component:Jl},t));P(e,!0),se(t,L2);let i=p(e,"thumbUrl",7),o=p(e,"chromecastDeviceName",7),n=oi();var r=M2(),l=H(w(r),2);{var d=a=>{var c=A2(),f=w(c);y(c),N(()=>{var g;return Pe(f,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(g=o())!=null?g:""}`)}),C(a,c)};q(l,a=>{o()&&a(d)})}return y(r),N(()=>{ve(r,"style",`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i()||""}')`),ae(r,"bgCover",n.features.previewNoEmptySpace)}),C(t,r),A({get thumbUrl(){return i()},set thumbUrl(a){i(a),u()},get chromecastDeviceName(){return o()},set chromecastDeviceName(a){o(a),u()},$set:L,$on:(a,c)=>M(e,a,c)})}var V2=Re('<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 Mp(t,e){if(new.target)return E($({component:Mp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=V2();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var R2=U('<div class="container svelte-13zpvm8"><!></div>'),N2={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 ed(t,e){if(new.target)return E($({component:ed},t));P(e,!1),se(t,N2);var i=R2(),o=w(i);return Mp(o,{}),y(i),C(t,i),A({$set:L,$on:(n,r)=>M(e,n,r)})}var B2=U('<div class="container svelte-1xnh9dd"><div class="playButton svelte-1xnh9dd" tabindex="0" role="button"><div class="playButtonBackground svelte-1xnh9dd"></div> <!></div></div>'),D2={hash:"svelte-1xnh9dd",code:".container.svelte-1xnh9dd {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1xnh9dd {opacity:0;visibility:hidden;}.container.bgCover.svelte-1xnh9dd {background-size:cover;}.playButton.svelte-1xnh9dd {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1xnh9dd {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1xnh9dd:hover .playButtonBackground:where(.svelte-1xnh9dd) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1xnh9dd svg {transform:scale(2);}"};function td(t,e){if(new.target)return E($({component:td},t));P(e,!0),se(t,D2);let i=p(e,"thumbUrl",7),o=p(e,"hidden",7),n=p(e,"startVideo",7),r=Fe(),l=oi(),d=r.ui.startedByKeyboard$,a=X("tooltip_play"),c=_=>{let x=_.code;["Enter","Space"].includes(x)&&(_.stopPropagation(),_.preventDefault(),d.set(!0),n()())},f=_=>{_.stopPropagation(),n()()};var g=B2();g.__click=f;var m=w(g);m.__keydown=c,ve(m,"aria-label",a);var h=H(w(m),2);return cs(h,{}),y(m),y(g),N(()=>{ve(g,"style",`background-color: #222; background-image: url('${i()||""}')`),ae(g,"hidden",o()),ae(g,"bgCover",l.features.previewNoEmptySpace)}),C(t,g),A({handlePressKey:c,handleClick:f,get thumbUrl(){return i()},set thumbUrl(_){i(_),u()},get hidden(){return o()},set hidden(_){o(_),u()},get startVideo(){return n()},set startVideo(_){n(_),u()},$set:L,$on:(_,x)=>M(e,_,x)})}xt(["click","keydown"]);var O2=U('<div class="title svelte-1bcvcf2"> </div>'),H2={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
278
+ }`};function vm(t,e){K(e,!0),G(t,Py);let[i,o]=Fe(),n=()=>C(e.data,"$data",i),s=Ie().ui.t,d=m(()=>!n()),l=m(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),u=m(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=m(()=>{var S;return(S=n())==null?void 0:S.type}),_=m(()=>{var S,I;return(S=n())!=null&&S.t?s(n().t.key,{value:n().t.value||""}):(I=n())==null?void 0:I.text});var p=Ay();let $;var y=h(p);{var w=S=>{var I=Ey(),A=ve(I),P=h(A);{var E=ue=>{let B=m(()=>r(f)==="FORWARD_SEEK");lm(ue,{get reversed(){return r(B)}})};V(P,ue=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&ue(E)})}var T=M(P,2);{var R=ue=>{ma(ue,{})};V(T,ue=>{r(f)==="PAUSE"&&ue(R)})}var z=M(T,2);{var Z=ue=>{ls(ue,{})};V(z,ue=>{r(f)==="PLAY"&&ue(Z)})}var U=M(z,2);{var Q=ue=>{Cd(ue,{})};V(U,ue=>{r(f)==="REPLAY"&&ue(Q)})}var ee=M(U,2);{var ae=ue=>{du(ue,{isOff:!0})};V(ee,ue=>{r(f)==="SUBTITLES_OFF"&&ue(ae)})}var _e=M(ee,2);{var re=ue=>{du(ue,{})};V(_e,ue=>{r(f)==="SUBTITLES_ON"&&ue(re)})}var Pe=M(_e,2);{var qe=ue=>{let B=m(()=>r(f)==="RATE_UP");pm(ue,{get reversed(){return r(B)}})};V(Pe,ue=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ue(qe)})}var ie=M(Pe,2);{var Le=ue=>{let B=m(()=>r(f)==="EPISODE_NEXT");mm(ue,{get reversed(){return r(B)}})};V(ie,ue=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ue(Le)})}var J=M(ie,2);{var D=ue=>{Es(ue,{volume:0})};V(J,ue=>{r(f)==="MUTE"&&ue(D)})}var Be=M(J,2);{var X=ue=>{Es(ue,{volume:1})};V(Be,ue=>{r(f)==="VOLUME"&&ue(X)})}g(A);var Ge=M(A,2);{var Re=ue=>{var B=ky(),ce=h(B,!0);g(B),k(()=>fe(ce,r(_))),b(ue,B)};V(Ge,ue=>{r(_)&&ue(Re)})}b(S,I)};V(y,S=>{!r(d)&&r(f)&&S(w)})}g(p),k(S=>$=oe(p,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(u)})]),b(t,p),W(),o()}var My=$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 gm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=My();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 Ly=$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 hm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Ly();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 Ps(t,e){K(e,!0);let i=v(e,"direction",3,"left"),o=v(e,"useBtnColor",3,!1),n=m(()=>["up","down"].includes(i())),a=m(()=>["right","down"].includes(i())),s=m(()=>(()=>{let _="";return r(a)&&(_+="transform: rotate(180deg);"),o()&&(_+="color: var(--btn-color, #fff);"),_.length?_:void 0})());var d=ze(),l=ve(d);{var u=_=>{let p=m(()=>r(a)?"chevron-icon--down":"chevron-icon--up");gm(_,{get style(){return r(s)},get"data-testid"(){return r(p)}})},f=_=>{let p=m(()=>r(a)?"chevron-icon--right":"chevron-icon--left");hm(_,{get style(){return r(s)},get"data-testid"(){return r(p)}})};V(l,_=>{r(n)?_(u):_(f,!1)})}b(t,d),W()}var Vy=(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}},Ry=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Ny=L('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),Dy={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function Md(t,e){K(e,!0),G(t,Dy);let i=v(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 _=Ny();let p;_.__keydown=[Vy,n,a,s,l,d],_.__keyup=[Ry,n,u],De(_,"aria-label",f);var $=h(_),y=h($),w=h(y);w.__mousedown=a,w.__mouseup=u;var S=h(w);Ps(S,{direction:"up",useBtnColor:!0}),g(w);var I=M(w,2);I.__mousedown=d,I.__mouseup=u;var A=h(I);Ps(A,{direction:"up",useBtnColor:!0}),g(I),g(y);var P=M(y,2),E=h(P);E.__mousedown=l,E.__mouseup=u;var T=h(E);Ps(T,{direction:"up",useBtnColor:!0}),g(E);var R=M(E,2);R.__mousedown=s,R.__mouseup=u;var z=h(R);Ps(z,{direction:"up",useBtnColor:!0}),g(R),g(P),g($),g(_),k(Z=>p=oe(_,1,"immersive-controls svelte-1yzc86r",null,p,Z),[()=>({"m-shifted":i()})]),Bt("mouseleave",w,u),Bt("mouseleave",I,u),Bt("mouseleave",E,u),Bt("mouseleave",R,u),b(t,_),W()}at(["keydown","keyup","mousedown","mouseup"]);var cs=require("@vkontakte/videoplayer-shared/es2015");var I1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var cu=class{constructor(){this.flickeringTimeout=I1(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 By=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Oy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),Hy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Fy=L('<div><span class="caption svelte-c2x749"><!></span></div>'),Uy=L("<div><!></div>"),zy={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
279
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ld(t,e){K(e,!0),G(t,zy);let[i,o]=Fe(),n=()=>C(_,"$currentSubtitle$",i),a=()=>C($,"$isLive$",i),s=()=>C(y,"$isFullscreen",i),d=()=>C(p,"$isAutoSubtitleCaptionVisible$",i),l=v(e,"isMobile",3,!1),u=Ie(),f=Gt(),_=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,$=u.state.isLive$,y=u.ui.isFullscreen,w=m(()=>!!n().isAuto),S=m(()=>!!a()),I=m(()=>e.playerSize.width*.02),A=m(()=>l()&&!s()||r(I)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(I)),P=te(null);Ze(()=>{var Q,ee,ae;(Q=r(P))==null||Q.setIsAuto(r(w)),(ee=r(P))==null||ee.setIsLive(r(S)),(ae=r(P))==null||ae.setCaptions(e.captions)});let E=te(pe([[]]));Ft(()=>{O(P,pe(new cu().subscribe()));let Q=r(P).captionsPrepared$.subscribe(ee=>{O(E,pe(ee))});return()=>{var ee;(ee=r(P))==null||ee.destroy(),Q.unsubscribe()}}),Ft(()=>{if(r(w)){let Q=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Q)}}else p.set(!1)});let T=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=Uy();let z;var Z=h(R);{var U=Q=>{var ee=Fy();let ae;var _e=h(ee),re=h(_e);{var Pe=ie=>{var Le=By(),J=h(Le),D=h(J,!0);g(J),g(Le),k(Be=>{var X;nt(J,`font-size: ${(X=r(A))!=null?X:""}px`),fe(D,Be)},[()=>F("subtitles_auto_caption")]),b(ie,Le)},qe=(ie,Le)=>{{var J=Be=>{var X=ze(),Ge=ve(X);yi(Ge,17,()=>r(E),Ul,(Re,ue)=>{var B=Oy(),ce=h(B);yi(ce,21,()=>r(ue),({value:Ee,timeAppeared:Ke})=>Ke,(Ee,Ke)=>{let lt=()=>r(Ke).value,Ae=()=>r(Ke).timeAppeared;var ye=ze(),Me=ve(ye);{var rt=vt=>{var tt=nr();k(()=>fe(tt,lt())),b(vt,tt)};V(Me,vt=>{(!Ae()||Ae()<=e.position)&&vt(rt)})}b(Ee,ye)}),g(ce),g(B),k(()=>{var Ee;return nt(ce,`font-size: ${(Ee=r(A))!=null?Ee:""}px`)}),b(Re,B)}),b(Be,X)},D=Be=>{var X=ze(),Ge=ve(X);yi(Ge,17,()=>e.captions,({value:Re})=>Re,(Re,ue)=>{let B=()=>r(ue).value;var ce=Hy(),Ee=h(ce),Ke=h(Ee,!0);g(Ee),g(ce),k(()=>{var lt;nt(Ee,`font-size: ${(lt=r(A))!=null?lt:""}px`),fe(Ke,B())}),b(Re,ce)}),b(Be,X)};V(ie,Be=>{var X;r(w)&&((X=r(E))!=null&&X.length)?Be(J):Be(D,!1)},Le)}};V(re,ie=>{r(w)&&d()?ie(Pe):ie(qe,!1)})}g(_e),g(ee),k(ie=>{var Le;ae=oe(ee,1,"subtitles-caption svelte-c2x749",null,ae,ie),nt(ee,`--subtitles-caption-margin: ${(Le=r(T))!=null?Le:""}%`)},[()=>({mobile:l()})]),b(Q,ee)};V(Z,Q=>{var ee;(e.captions.length||(ee=r(E))!=null&&ee.length)&&Q(U)})}g(R),k(Q=>z=oe(R,1,"subtitles-container svelte-c2x749",null,z,Q),[()=>({shifted:e.shifted,auto:r(w)&&!r(S)&&!d()})]),b(t,R),W(),o()}var qy=L('<div class="text svelte-raurnb"> </div>'),Ky=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>'),Wy={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 Vd(t,e){K(e,!0),G(t,Wy);let i=Gt();var o=Ky();let n;var a=M(h(o),2);{var s=d=>{var l=qy(),u=h(l);g(l),k(()=>{var f;return fe(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,l)};V(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),k(d=>{n=oe(o,1,"wrapper svelte-raurnb",null,n,d),nt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),W()}var Qy=$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 _m(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 Gy=L('<div class="container svelte-13zpvm8"><!></div>'),Yy={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 Rd(t){G(t,Yy);var e=Gy(),i=h(e);_m(i,{}),g(e),b(t,e)}var jy=L('<div><div class="playButton svelte-1xnh9dd" tabindex="0" role="button"><div class="playButtonBackground svelte-1xnh9dd"></div> <!></div></div>'),Zy={hash:"svelte-1xnh9dd",code:".container.svelte-1xnh9dd {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1xnh9dd {opacity:0;visibility:hidden;}.container.bgCover.svelte-1xnh9dd {background-size:cover;}.playButton.svelte-1xnh9dd {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1xnh9dd {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1xnh9dd:hover .playButtonBackground:where(.svelte-1xnh9dd) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1xnh9dd svg {transform:scale(2);}"};function Nd(t,e){K(e,!0),G(t,Zy);let i=Ie(),o=Gt(),n=i.ui.startedByKeyboard$,a=F("tooltip_play"),s=p=>{let $=p.code;["Enter","Space"].includes($)&&(p.stopPropagation(),p.preventDefault(),n.set(!0),e.startVideo())},d=p=>{p.stopPropagation(),e.startVideo()};var l=jy();let u;l.__click=d;var f=h(l);f.__keydown=s,De(f,"aria-label",a);var _=M(h(f),2);return ls(_,{}),g(f),g(l),k(p=>{u=oe(l,1,"container svelte-1xnh9dd",null,u,p),nt(l,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:o.features.previewNoEmptySpace})]),b(t,l),W({handlePressKey:s,handleClick:d})}at(["click","keydown"]);var Xy=L("<div> </div>"),Jy={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(
277
280
  0deg,
278
281
  rgba(0, 0, 0, 0) 0%,
279
282
  rgba(0, 0, 0, 0.02) 19%,
280
283
  rgba(0, 0, 0, 0.10) 34%,
281
284
  rgba(0, 0, 0, 0.40) 60%,
282
285
  rgba(0, 0, 0, 0.60) 100%
283
- );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Lp(t,e){if(new.target)return E($({component:Lp},t));P(e,!0),se(t,H2);let i=p(e,"title",7,""),o=p(e,"isHidden",7,!1);var n=O2(),r=w(n,!0);return y(n),N(()=>{ae(n,"hidden",o()),Pe(r,i())}),C(t,n),A({get title(){return i()},set title(l=""){i(l),u()},get isHidden(){return o()},set isHidden(l=!1){o(l),u()},$set:L,$on:(l,d)=>M(e,l,d)})}var F2=U('<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),U2=U('<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),z2=U('<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),W2=U('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),q2=U('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),K2={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 Vp(t,e){if(new.target)return E($({component:Vp},t));P(e,!0),se(t,K2);let i=p(e,"startTime",7),o=p(e,"onTimerOver",7),n=pe(""),r=pe(""),l=pe(""),d=pe(""),a,c=I=>String(I).padStart(2,"0"),f=I=>{let z=Math.floor(I/86400);z&&(I-=z*86400,Y(n,Le(c(z))));let Q=Math.floor(I/3600);Y(r,Le(c(Q)));let F=Math.floor(I/60)%60;Y(l,Le(c(F)));let G=I%60;Y(d,Le(c(G)))},g=()=>{let I=Math.floor(Date.now()/1e3),z=i()-I;f(z),z>=1?a=requestAnimationFrame(g):o()()};Zt(()=>{a=requestAnimationFrame(g)}),ur(()=>{cancelAnimationFrame(a)});var m=q2(),h=w(m);{var _=I=>{var z=F2(),Q=Ee(z),F=w(Q),G=w(F,!0);y(F);var J=H(F,2),ce=w(J,!0);y(J),y(Q);var ee=H(Q,2),Ce=w(ee,!0);y(ee),N((Se,ne)=>{Pe(G,s(n)),Pe(ce,Se),Pe(Ce,ne)},[()=>X("waiting_live_day_value"),()=>X("waiting_live_colon")]),C(I,z)};q(h,I=>{s(n)&&I(_)})}var x=H(h,2);{var T=I=>{var z=U2(),Q=Ee(z),F=w(Q),G=w(F,!0);y(F);var J=H(F,2),ce=w(J,!0);y(J),y(Q);var ee=H(Q,2),Ce=w(ee,!0);y(ee),N((Se,ne)=>{Pe(G,s(r)),Pe(ce,Se),Pe(Ce,ne)},[()=>X("waiting_live_hour_value"),()=>X("waiting_live_colon")]),C(I,z)};q(x,I=>{s(r)&&I(T)})}var V=H(x,2);{var D=I=>{var z=z2(),Q=Ee(z),F=w(Q),G=w(F,!0);y(F);var J=H(F,2),ce=w(J,!0);y(J),y(Q);var ee=H(Q,2),Ce=w(ee,!0);y(ee),N((Se,ne)=>{Pe(G,s(l)),Pe(ce,Se),Pe(Ce,ne)},[()=>X("waiting_live_minute_value"),()=>X("waiting_live_colon")]),C(I,z)};q(V,I=>{s(l)&&I(D)})}var R=H(V,2);{var B=I=>{var z=W2(),Q=w(z),F=w(Q,!0);y(Q);var G=H(Q,2),J=w(G,!0);y(G),y(z),N(ce=>{Pe(F,s(d)),Pe(J,ce)},[()=>X("waiting_live_second_value")]),C(I,z)};q(R,I=>{s(d)&&I(B)})}return y(m),C(t,m),A({get startTime(){return i()},set startTime(I){i(I),u()},get onTimerOver(){return o()},set onTimerOver(I){o(I),u()},$set:L,$on:(I,z)=>M(e,I,z)})}var Q2=Re('<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 Rp(t,e){if(new.target)return E($({component:Rp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Q2();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(4),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var G2=U('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),Y2=U('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),j2=U('<div class="waiting-container svelte-15pewff"><!></div>'),Z2={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 id(t,e){if(new.target)return E($({component:id},t));P(e,!0),se(t,Z2);let i=p(e,"thumbUrl",7),o=p(e,"startTime",7),n=pe(!1);lt(()=>{Y(n,Le(o()===void 0||o()<Math.floor(Date.now()/1e3)))});var r=j2(),l=w(r);{var d=c=>{var f=G2(),g=w(f),m=w(g);Rp(m,{}),y(g);var h=H(g,2),_=w(h,!0);y(h),y(f),N(x=>Pe(_,x),[()=>X("waiting_live_upcoming_title")]),C(c,f)},a=c=>{var f=Y2(),g=w(f),m=w(g,!0);y(g);var h=H(g,2);let _=b(()=>o()||0);Vp(h,{get startTime(){return s(_)},onTimerOver:()=>Y(n,!0)}),y(f),N(x=>Pe(m,x),[()=>X("waiting_live_timer_title")]),C(c,f)};q(l,c=>{s(n)?c(d):c(a,!1)})}return y(r),N(()=>ve(r,"style",`background-image: url(${s(n)?"":i()})`)),C(t,r),A({get thumbUrl(){return i()},set thumbUrl(c){i(c),u()},get startTime(){return o()},set startTime(c){o(c),u()},$set:L,$on:(c,f)=>M(e,c,f)})}var X2=U('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),J2={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 ia(t,e){if(new.target)return E($({component:ia},t));P(e,!0),se(t,J2);let i=p(e,"thumbUrl",7,""),o=p(e,"kind",7),n={recover:X("waiting_live_recover_title"),record:X("waiting_record_title")},r=b(()=>n[o()]||"");var l=X2(),d=w(l),a=w(d);Ys(a,{style:"position: static; transform: translate(0, 0)"});var c=H(a,2),f=w(c,!0);return y(c),y(d),y(l),N(()=>{ve(l,"style",`background-image: url('${i()}')`),Pe(f,s(r))}),C(t,l),A({get thumbUrl(){return i()},set thumbUrl(g=""){i(g),u()},get kind(){return o()},set kind(g){o(g),u()},$set:L,$on:(g,m)=>M(e,g,m)})}var e4=Re('<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 Np(t,e){if(new.target)return E($({component:Np},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=e4();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var t4=U('<div class="select-icon svelte-124aexk"><!></div>'),i4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function od(t,e){if(new.target)return E($({component:od},t));P(e,!1),se(t,i4);var i=t4(),o=w(i);return Np(o,{}),y(i),C(t,i),A({$set:L,$on:(n,r)=>M(e,n,r)})}var o4=(t,e)=>{t.stopPropagation(),e().selectItem(e().value)},n4=(t,e)=>{yl(t,()=>e().selectItem(e().value))},r4=U('<p class="label svelte-1t7rx2m"> </p>'),s4=U('<p class="sublabel svelte-1t7rx2m"> </p>'),a4=U('<li class="item" role="menuitem" tabindex="0"><!> <div class="menu-item-value svelte-1t7rx2m"><!> <!></div></li>'),l4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
286
+ );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function bm(t,e){G(t,Jy);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1);var n=Xy();let a;var s=h(n,!0);g(n),k(d=>{a=oe(n,1,"title svelte-1bcvcf2",null,a,d),fe(s,i())},[()=>({hidden:o()})]),b(t,n)}var e4=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),t4=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),i4=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),o4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),n4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),r4={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 $m(t,e){K(e,!0),G(t,r4);let i=te(""),o=te(""),n=te(""),a=te(""),s,d=P=>String(P).padStart(2,"0"),l=P=>{let E=Math.floor(P/86400);E&&(P-=E*86400,O(i,pe(d(E))));let T=Math.floor(P/3600);O(o,pe(d(T)));let R=Math.floor(P/60)%60;O(n,pe(d(R)));let z=P%60;O(a,pe(d(z)))},u=()=>{let P=Math.floor(Date.now()/1e3),E=e.startTime-P;l(E),E>=1?s=requestAnimationFrame(u):e.onTimerOver()};Ft(()=>{s=requestAnimationFrame(u)}),sr(()=>{cancelAnimationFrame(s)});var f=n4(),_=h(f);{var p=P=>{var E=e4(),T=ve(E),R=h(T),z=h(R,!0);g(R);var Z=M(R,2),U=h(Z,!0);g(Z),g(T);var Q=M(T,2),ee=h(Q,!0);g(Q),k((ae,_e)=>{fe(z,r(i)),fe(U,ae),fe(ee,_e)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(P,E)};V(_,P=>{r(i)&&P(p)})}var $=M(_,2);{var y=P=>{var E=t4(),T=ve(E),R=h(T),z=h(R,!0);g(R);var Z=M(R,2),U=h(Z,!0);g(Z),g(T);var Q=M(T,2),ee=h(Q,!0);g(Q),k((ae,_e)=>{fe(z,r(o)),fe(U,ae),fe(ee,_e)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(P,E)};V($,P=>{r(o)&&P(y)})}var w=M($,2);{var S=P=>{var E=i4(),T=ve(E),R=h(T),z=h(R,!0);g(R);var Z=M(R,2),U=h(Z,!0);g(Z),g(T);var Q=M(T,2),ee=h(Q,!0);g(Q),k((ae,_e)=>{fe(z,r(n)),fe(U,ae),fe(ee,_e)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(P,E)};V(w,P=>{r(n)&&P(S)})}var I=M(w,2);{var A=P=>{var E=o4(),T=h(E),R=h(T,!0);g(T);var z=M(T,2),Z=h(z,!0);g(z),g(E),k(U=>{fe(R,r(a)),fe(Z,U)},[()=>F("waiting_live_second_value")]),b(P,E)};V(I,P=>{r(a)&&P(A)})}g(f),b(t,f),W()}var s4=$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 ym(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=s4();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(4),g(o),k(()=>n=Se(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 a4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),l4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),d4=L('<div class="waiting-container svelte-15pewff"><!></div>'),c4={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function Dd(t,e){K(e,!0),G(t,c4);let i=te(!1);Ze(()=>{O(i,pe(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=d4(),n=h(o);{var a=d=>{var l=a4(),u=h(l),f=h(u);ym(f,{}),g(u);var _=M(u,2),p=h(_,!0);g(_),g(l),k($=>fe(p,$),[()=>F("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=l4(),u=h(l),f=h(u,!0);g(u);var _=M(u,2);let p=m(()=>e.startTime||0);$m(_,{get startTime(){return r(p)},onTimerOver:()=>O(i,!0)}),g(l),k($=>fe(f,$),[()=>F("waiting_live_timer_title")]),b(d,l)};V(n,d=>{r(i)?d(a):d(s,!1)})}g(o),k(()=>nt(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),b(t,o),W()}var u4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),p4={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 ha(t,e){K(e,!0),G(t,p4);let i=v(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=m(()=>o[e.kind]||"");var a=u4(),s=h(a),d=h(s);la(d,{style:"position: static; transform: translate(0, 0)"});var l=M(d,2),u=h(l,!0);g(l),g(s),g(a),k(()=>{nt(a,`background-image: url('${i()}')`),fe(u,r(n))}),b(t,a),W()}var f4=$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 xm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=f4();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 m4=L('<div class="select-icon svelte-124aexk"><!></div>'),v4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Bd(t){G(t,v4);var e=m4(),i=h(e);xm(i,{}),g(e),b(t,e)}var g4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},h4=(t,e)=>{Ja(t,()=>e.item.selectItem(e.item.value))},_4=L("<p> </p>"),b4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),$4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),y4={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;
284
287
 
285
288
  /**
286
289
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
287
290
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
288
291
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
289
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Bp(t,e){if(new.target)return E($({component:Bp},t));P(e,!0),se(t,l4);let i=p(e,"isMobile",7,!1),o=p(e,"item",7);var n=a4();n.__click=[o4,o],n.__keydown=[n4,o];var r=w(n);{var l=h=>{od(h,{})};q(r,h=>{o().selected&&h(l)})}var d=H(r,2),a=w(d);{var c=h=>{var _=Xe(),x=Ee(_);zi(x,()=>o().valueComponent,(T,V)=>{V(T,xs(()=>{var D;return(D=o().valueComponentParams)!=null?D:{}}))}),C(h,_)},f=h=>{var _=r4(),x=w(_,!0);y(_),N(()=>{var T;ae(_,"mobile",i()),Pe(x,(T=o().label)!=null?T:o().value)}),C(h,_)};q(a,h=>{o().valueComponent?h(c):h(f,!1)})}var g=H(a,2);{var m=h=>{var _=s4(),x=w(_,!0);y(_),N(()=>Pe(x,o().sublabel)),C(h,_)};q(g,h=>{o().sublabel&&h(m)})}return y(d),y(n),N(h=>{ve(n,"data-value",o().value),ve(n,"aria-label",h),ae(n,"mobile",i()),ve(d,"data-selected",o().selected),ae(d,"submenu-value-mobile",i())},[()=>{var h,_;return(_=(h=o().ariaLabel)!=null?h:o().label)!=null?_:o().value.toString()}]),C(t,n),A({get isMobile(){return i()},set isMobile(h=!1){i(h),u()},get item(){return o()},set item(h){o(h),u()},$set:L,$on:(h,_)=>M(e,h,_)})}xt(["click","keydown"]);var d4=U('<li class="item" role="menuitem" tabindex="0" aria-haspopup="true"><!> <div class="menu-item-value"><!></div></li>');function Dp(t,e){if(new.target)return E($({component:Dp},t));P(e,!0);let i=p(e,"isMobile",7,!1),o=p(e,"item",7),n=p(e,"openSubMenuList",7),r=p(e,"refMenuItems",15),l=b(()=>()=>n()(o().children)),d=b(()=>x=>pu(x,s(l)));var a=d4();a.__click=function(...x){var T;(T=s(l))==null||T.apply(this,x)},a.__keydown=function(...x){var T;(T=s(d))==null||T.apply(this,x)};var c=w(a);{var f=x=>{od(x,{})};q(c,x=>{o().selected&&x(f)})}var g=H(c,2),m=w(g);{var h=x=>{var T=Xe();let V=b(()=>o().valueComponent);var D=Ee(T);zi(D,()=>s(V),(R,B)=>{B(R,xs(()=>{var I;return(I=o().valueComponentParams)!=null?I:{}}))}),C(x,T)},_=x=>{var T=dr();N(()=>Pe(T,o().label)),C(x,T)};q(m,x=>{o().valueComponent?x(h):x(_,!1)})}return y(g),y(a),St(a,x=>r(r()[o().id]=x,!0),()=>{var x;return(x=r())==null?void 0:x[o().id]}),N(()=>{var x;ve(a,"aria-label",(x=o().ariaLabel)!=null?x:o().label),ve(a,"data-testid",o().id),ae(a,"mobile",i()),ae(a,"bottomBordered",o().bottomBordered),ae(g,"submenu-value-mobile",i())}),C(t,a),A({get isMobile(){return i()},set isMobile(x=!1){i(x),u()},get item(){return o()},set item(x){o(x),u()},get openSubMenuList(){return n()},set openSubMenuList(x){n(x),u()},get refMenuItems(){return r()},set refMenuItems(x){r(x),u()},$set:L,$on:(x,T)=>M(e,x,T)})}xt(["click","keydown"]);var Wr={"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 u4=(t,e,i)=>{Kh(t,e(),i())},p4=(t,e)=>{t.stopPropagation(),e()()},f4=(t,e)=>{Ud(t)&&(mr(t),e()())},m4=U('<div class="sub-menu menu svelte-7dfsuh"><ul class="items svelte-7dfsuh" role="menu"><li class="item header back svelte-7dfsuh" role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),v4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
292
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function wm(t,e){K(e,!0),G(t,y4);let i=v(e,"isMobile",3,!1);var o=$4();let n;o.__click=[g4,e],o.__keydown=[h4,e];var a=h(o);{var s=y=>{Bd(y,{})};V(a,y=>{e.item.selected&&y(s)})}var d=M(a,2);let l;var u=h(d);{var f=y=>{var w=ze(),S=ve(w);Di(S,()=>e.item.valueComponent,(I,A)=>{A(I,rs(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b(y,w)},_=y=>{var w=_4();let S;var I=h(w,!0);g(w),k(A=>{var P;S=oe(w,1,"label svelte-1t7rx2m",null,S,A),fe(I,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),b(y,w)};V(u,y=>{e.item.valueComponent?y(f):y(_,!1)})}var p=M(u,2);{var $=y=>{var w=b4(),S=h(w,!0);g(w),k(()=>fe(S,e.item.sublabel)),b(y,w)};V(p,y=>{e.item.sublabel&&y($)})}g(d),g(o),k((y,w,S)=>{n=oe(o,1,"item",null,n,y),De(o,"data-value",e.item.value),De(o,"aria-label",w),l=oe(d,1,"menu-item-value svelte-1t7rx2m",null,l,S),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,w;return(w=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?w:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),W()}at(["click","keydown"]);var x4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Sm(t,e){K(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>w=>Qc(w,r(n)));var s=x4();let d;s.__click=function(...w){var S;(S=r(n))==null||S.apply(this,w)},s.__keydown=function(...w){var S;(S=r(a))==null||S.apply(this,w)};var l=h(s);{var u=w=>{Bd(w,{})};V(l,w=>{e.item.selected&&w(u)})}var f=M(l,2);let _;var p=h(f);{var $=w=>{var S=ze();let I=m(()=>e.item.valueComponent);var A=ve(S);Di(A,()=>r(I),(P,E)=>{E(P,rs(()=>{var T;return(T=e.item.valueComponentParams)!=null?T:{}}))}),b(w,S)},y=w=>{var S=nr();k(()=>fe(S,e.item.label)),b(w,S)};V(p,w=>{e.item.valueComponent?w($):w(y,!1)})}g(f),g(s),ut(s,w=>o(o()[e.item.id]=w,!0),()=>{var w;return(w=o())==null?void 0:w[e.item.id]}),k((w,S)=>{var I;d=oe(s,1,"item",null,d,w),De(s,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),De(s,"data-testid",e.item.id),_=oe(f,1,"menu-item-value",null,_,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,s),W()}at(["click","keydown"]);var kr={"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 S4=(t,e)=>{Kh(t,e.returnFromSubMenu,e.closeSettingsMenu)},C4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},T4=(t,e)=>{rd(t)&&(dr(t),e.returnFromSubMenu())},I4=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),k4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
290
293
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
291
294
  /**
292
295
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -296,16 +299,16 @@ Try switching the\xA0quality to\xA0Auto.`},Rh=_1;var ws=new Map;ws.set(pl.Interf
296
299
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
297
300
  1px
298
301
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
299
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Op(t,e){if(new.target)return E($({component:Op},t));P(e,!0),se(t,v4);let[i,o]=tt(),n=()=>k(R,"$isFullscreen",i),r=()=>k(B,"$playerSize",i),l=p(e,"id",7),d=p(e,"isMobile",7,!1),a=p(e,"playerControlsHeight",7,0),c=p(e,"returnFromSubMenu",7),f=p(e,"ariaLabelReturnFromSubMenu",23,()=>X("aria_label_submenu_back")),g=p(e,"title",7),m=p(e,"listRef",15),h=p(e,"closeSettingsMenu",7),_=p(e,"openSubMenuList",7),x=p(e,"items",7),T=p(e,"minWidth",7),V=p(e,"refMenuItems",7);Zt(()=>{let j=x().findIndex(re=>re.selected);m().children[j+1].focus()});let D=Fe(),R=D.ui.isFullscreen,B=D.ui.playerSize,I=pe(void 0),z=pe(0),Q=pe(0),F=b(()=>d()&&n()?`max-height: ${Math.round(r().height*.6)}px`:d()?"":`max-height: ${r().height-32-s(Q)-a()}px; overflow: auto;`),G=b(()=>Math.max(T(),s(z)));var J=m4(),ce=w(J);ce.__keydown=[u4,c,h];var ee=w(ce);ee.__click=[p4,c],ee.__keydown=[f4,c];var Ce=w(ee);Is(Ce,{direction:"left"});var Se=H(Ce,2),ne=w(Se,!0);y(Se),y(ee),St(ee,j=>Y(I,j),()=>s(I));var ie=H(ee,2);Ei(ie,17,x,so,(j,re)=>{var K=Xe(),qe=Ee(K);{var Be=Te=>{Bp(Te,{get item(){return s(re)},get isMobile(){return d()}})},fe=Te=>{var Ye=Xe(),Z=Ee(Ye);{var ue=le=>{Dp(le,{get isMobile(){return d()},get item(){return s(re)},get openSubMenuList(){return _()},get refMenuItems(){return V()}})};q(Z,le=>{s(re).type==="OPEN_SUB_MENU"&&le(ue)},!0)}C(Te,Ye)};q(qe,Te=>{s(re).type==="SELECT_VALUE"?Te(Be):Te(fe,!1)})}C(j,K)}),y(ce),St(ce,j=>m(j),()=>m()),y(J),N(()=>{ve(J,"data-testid",`sub-menu-${l()}`),ve(J,"style",`min-width: ${s(G)}px`),ae(J,"desktop",!d()),ae(J,"mobile",d()),ve(ce,"style",s(F)),ae(ce,"mobile",d()),ve(ee,"aria-label",f()),ae(ee,"mobile",d()),Pe(ne,g())}),ns(ee,"clientWidth",j=>Y(z,j)),ns(ee,"clientHeight",j=>Y(Q,j)),C(t,J);var be=A({get id(){return l()},set id(j){l(j),u()},get isMobile(){return d()},set isMobile(j=!1){d(j),u()},get playerControlsHeight(){return a()},set playerControlsHeight(j=0){a(j),u()},get returnFromSubMenu(){return c()},set returnFromSubMenu(j){c(j),u()},get ariaLabelReturnFromSubMenu(){return f()},set ariaLabelReturnFromSubMenu(j=X("aria_label_submenu_back")){f(j),u()},get title(){return g()},set title(j){g(j),u()},get listRef(){return m()},set listRef(j){m(j),u()},get closeSettingsMenu(){return h()},set closeSettingsMenu(j){h(j),u()},get openSubMenuList(){return _()},set openSubMenuList(j){_(j),u()},get items(){return x()},set items(j){x(j),u()},get minWidth(){return T()},set minWidth(j){T(j),u()},get refMenuItems(){return V()},set refMenuItems(j){V(j),u()},$set:L,$on:(j,re)=>M(e,j,re)});return o(),be}xt(["keydown","click"]);var sv=require("@vkontakte/videoplayer-shared/es2015");var g4=(t,e)=>pu(t,e()),h4=(t,e)=>{t.stopPropagation(),e()()},_4=U('<div class="value svelte-1ikfjte"> </div>'),$4=U('<li class="item" role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),b4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Hp(t,e){if(new.target)return E($({component:Hp},t));P(e,!0),se(t,b4);let i=p(e,"id",7),o=p(e,"isMobile",7,!1),n=p(e,"onClick",7,sv.noop),r=p(e,"label",7),l=p(e,"ariaLabel",7),d=p(e,"value",7),a=p(e,"valueComponent",7,void 0),c=p(e,"ref",15),f=p(e,"icon",7);var g=$4();g.__click=[h4,n],g.__keydown=[g4,n];var m=w(g),h=w(m);{var _=I=>{ta(I,{get icon(){return f()}})},x=I=>{var z=Xe();let Q=b(f);var F=Ee(z);zi(F,()=>s(Q),(G,J)=>{J(G,{})}),C(I,z)};q(h,I=>{typeof f()=="string"?I(_):I(x,!1)})}y(m);var T=H(m,2),V=w(T,!0);y(T);var D=H(T,2);{var R=I=>{var z=Xe();let Q=b(a);var F=Ee(z);zi(F,()=>s(Q),(G,J)=>{J(G,{})}),C(I,z)},B=I=>{var z=_4(),Q=w(z,!0);y(z),N(()=>Pe(Q,d())),C(I,z)};q(D,I=>{a()?I(R):I(B,!1)})}return y(g),St(g,I=>c(I),()=>c()),N(()=>{ve(g,"aria-label",l()),ve(g,"data-testid",i()),ae(g,"mobile",o()),Pe(V,r())}),C(t,g),A({get id(){return i()},set id(I){i(I),u()},get isMobile(){return o()},set isMobile(I=!1){o(I),u()},get onClick(){return n()},set onClick(I=sv.noop){n(I),u()},get label(){return r()},set label(I){r(I),u()},get ariaLabel(){return l()},set ariaLabel(I){l(I),u()},get value(){return d()},set value(I){d(I),u()},get valueComponent(){return a()},set valueComponent(I=void 0){a(I),u()},get ref(){return c()},set ref(I){c(I),u()},get icon(){return f()},set icon(I){f(I),u()},$set:L,$on:(I,z)=>M(e,I,z)})}xt(["click","keydown"]);var Zd=require("@vkontakte/videoplayer-shared/es2015");var y4=(t,e)=>{yl(t,()=>e())},x4=U('<div class="icon icon-error-stub"><div class="inner"></div></div>'),w4=U('<img class="icon" aria-hidden="true">'),C4=U('<li class="item" role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),S4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Fp(t,e){if(new.target)return E($({component:Fp},t));P(e,!0),se(t,S4);let i=p(e,"id",7),o=p(e,"isMobile",7,!1),n=p(e,"onClick",7,Zd.noop),r=p(e,"closeSettings",7,Zd.noop),l=p(e,"label",7),d=p(e,"ariaLabel",7),a=p(e,"icon",7),c=pe(!1),f=()=>{Y(c,!0)},g=R=>{R==null||R.stopPropagation(),n()(),r()()};var m=C4();m.__click=g,m.__keydown=[y4,g];var h=w(m),_=w(h);{var x=R=>{var B=Xe(),I=Ee(B);{var z=F=>{var G=x4();C(F,G)},Q=F=>{var G=w4();N(()=>ve(G,"src",a())),Kt("error",G,f),_a(G),C(F,G)};q(I,F=>{s(c)?F(z):F(Q,!1)})}C(R,B)},T=R=>{var B=Xe();let I=b(a);var z=Ee(B);zi(z,()=>s(I),(Q,F)=>{F(Q,{})}),C(R,B)};q(_,R=>{typeof a()=="string"?R(x):R(T,!1)})}y(h);var V=H(h,2),D=w(V,!0);return y(V),y(m),N(()=>{var R;ve(m,"aria-label",(R=d())!=null?R:l()),ve(m,"data-testid",i()),ae(m,"mobile",o()),Pe(D,l())}),C(t,m),A({get id(){return i()},set id(R){i(R),u()},get isMobile(){return o()},set isMobile(R=!1){o(R),u()},get onClick(){return n()},set onClick(R=Zd.noop){n(R),u()},get closeSettings(){return r()},set closeSettings(R=Zd.noop){r(R),u()},get label(){return l()},set label(R){l(R),u()},get ariaLabel(){return d()},set ariaLabel(R){d(R),u()},get icon(){return a()},set icon(R){a(R),u()},$set:L,$on:(R,B)=>M(e,R,B)})}xt(["click","keydown"]);var av=require("@vkontakte/videoplayer-shared/es2015");var T4=U('<div class="toggle_wrap svelte-17wbjko"><div class="toggle svelte-17wbjko"></div> <div class="toggle-label svelte-17wbjko"></div></div>'),I4={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 Up(t,e){if(new.target)return E($({component:Up},t));P(e,!0),se(t,I4);let i=p(e,"enabled",7,!1);var o=T4(),n=w(o);return Ve(2),y(o),N(()=>ae(n,"on",i())),C(t,o),A({get enabled(){return i()},set enabled(r=!1){i(r),u()},$set:L,$on:(r,l)=>M(e,r,l)})}var k4=(t,e,i)=>{Qh(t,e(),o=>i()(o))},E4=(t,e,i)=>{t.stopPropagation(),e()(!i())},P4=U('<div class="switch-wrapper"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),A4=U('<li class="item switch-item" role="menuitem" tabindex="0"><!></li>');function zp(t,e){if(new.target)return E($({component:zp},t));P(e,!0);let i=p(e,"id",7),o=p(e,"isMobile",7,!1),n=p(e,"onClick",7,av.noop),r=p(e,"label",7),l=p(e,"ariaLabel",7),d=p(e,"icon",7),a=p(e,"enabled",7,!1),c=p(e,"tooltipText",7,void 0),f=p(e,"maxTooltipWidth",7,void 0);var g=A4();g.__click=[E4,n,a],g.__keydown=[k4,a,n];var m=w(g);return js(m,{get content(){return c()},get isMobile(){return o()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return f()},children:(h,_)=>{var x=P4(),T=w(x),V=w(T);{var D=Q=>{ta(Q,{get icon(){return d()}})},R=Q=>{var F=Xe();let G=b(d);var J=Ee(F);zi(J,()=>s(G),(ce,ee)=>{ee(ce,{})}),C(Q,F)};q(V,Q=>{typeof d()=="string"?Q(D):Q(R,!1)})}y(T);var B=H(T,2),I=w(B,!0);y(B);var z=H(B,2);Up(z,{get enabled(){return a()}}),y(x),N(()=>{ae(x,"mobile",o()),Pe(I,r())}),C(h,x)},$$slots:{default:!0}}),y(g),N(()=>{var h;ve(g,"aria-label",(h=l())!=null?h:r()),ve(g,"data-testid",i()),ae(g,"mobile",o())}),C(t,g),A({get id(){return i()},set id(h){i(h),u()},get isMobile(){return o()},set isMobile(h=!1){o(h),u()},get onClick(){return n()},set onClick(h=av.noop){n(h),u()},get label(){return r()},set label(h){r(h),u()},get ariaLabel(){return l()},set ariaLabel(h){l(h),u()},get icon(){return d()},set icon(h){d(h),u()},get enabled(){return a()},set enabled(h=!1){a(h),u()},get tooltipText(){return c()},set tooltipText(h=void 0){c(h),u()},get maxTooltipWidth(){return f()},set maxTooltipWidth(h=void 0){f(h),u()},$set:L,$on:(h,_)=>M(e,h,_)})}xt(["click","keydown"]);var Jd=require("@vkontakte/videoplayer-shared/es2015");var lv=Object.defineProperty,M4=Object.getOwnPropertyDescriptor,L4=Object.getOwnPropertyNames,V4=Object.prototype.hasOwnProperty,R4=(t,e)=>{for(var i in e)lv(t,i,{get:e[i],enumerable:!0})},N4=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of L4(e))!V4.call(t,n)&&n!==i&&lv(t,n,{get:()=>e[n],enumerable:!(o=M4(e,n))||o.enumerable});return t},B4=t=>N4(lv({},"__esModule",{value:!0}),t),b_={};R4(b_,{getSubMenusStack:()=>D4});module.exports=B4(b_);var D4=()=>{let t=pe(Le([])),e=b(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{Y(t,Le(s(t).slice(0,-1)))},popAllSubMenus:()=>{Y(t,Le([]))}}};var O4=U('<div class="quality-icon svelte-t2qk8t"><!></div>'),H4=U('<div class="quality-label svelte-t2qk8t"><span class="svelte-t2qk8t"> </span> <!></div>'),F4={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 oa(t,e){if(new.target)return E($({component:oa},t));P(e,!0),se(t,F4);let i=p(e,"quality",7),o=p(e,"label",7),n=p(e,"isMobile",7),r=p(e,"isSubCase",7,!1),l=b(()=>Iu(i()));var d=H4(),a=w(d),c=w(a,!0);y(a);var f=H(a,2);{var g=m=>{var h=O4();let _=b(()=>s(l));var x=w(h);zi(x,()=>s(_),(T,V)=>{V(T,{})}),y(h),C(m,h)};q(f,m=>{s(l)&&!n()&&m(g)})}return y(d),N(()=>{ae(a,"sub",!r()),ae(a,"quality",!n()),Pe(c,o())}),C(t,d),A({get quality(){return i()},set quality(m){i(m),u()},get label(){return o()},set label(m){o(m),u()},get isMobile(){return n()},set isMobile(m){n(m),u()},get isSubCase(){return r()},set isSubCase(m=!1){r(m),u()},$set:L,$on:(m,h)=>M(e,m,h)})}var C_=require("@vkontakte/videoplayer-shared/es2015");var dv=require("@vkontakte/videoplayer-core/es2015");var y_=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},x_=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=y_({quality:t,availableQualities:e});return i?t===dv.VideoQuality.INVARIANT?X("auto_quality_invariant"):X("auto_quality",{actual:o}):o},w_=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===dv.VideoQuality.INVARIANT?i:`${i}${y_({quality:t,availableQualities:e})}`:"...";var U4=U('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),z4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Na(t,e){if(new.target)return E($({component:Na},t));P(e,!0),se(t,z4);let[i,o]=tt(),n=()=>k(f,"$currentQuality$",i),r=()=>k(g,"$availableQualities$",i),l=()=>k(m,"$isMobile$",i),d=Fe(),a=p(e,"selected",7),c=p(e,"prefix",7),f=d.state.currentQuality$,g=d.state.availableQualities$,m=d.ui.isMobile,h=" \xB7 ",_=b(()=>c()+(a()&&n()!==C_.VideoQuality.INVARIANT?h:"")),x=b(()=>w_({prefix:s(_),quality:n(),availableQualities:r(),onlyPrefix:!a()}));var T=U4(),V=w(T);let D=b(()=>a()?n():void 0);oa(V,{get quality(){return s(D)},get label(){return s(x)},get isMobile(){return l()},isSubCase:!0}),y(T),C(t,T);var R=A({get selected(){return a()},set selected(B){a(B),u()},get prefix(){return c()},set prefix(B){c(B),u()},$set:L,$on:(B,I)=>M(e,B,I)});return o(),R}var W4=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",r=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${r}`,"g")},q4={br:!0,span:!0},cv=(t,e={})=>{var d,a,c,f,g,m,h;if(!t)return t;let i=$($({},q4),e),o=Object.keys(i);if(!o.length)return t;let n=W4(o),r=[],l=0;for(let _ of t.matchAll(n)){let x=_[0],T=((d=_.groups)==null?void 0:d.keyhtml)||((a=_.groups)==null?void 0:a.keyi18n)||((c=_.groups)==null?void 0:c.keyhtmlself)||((f=_.groups)==null?void 0:f.keyi18nself)||"",{index:V}=_;if(!i[T]){r.push(t.slice(l,V)),l=V+x.length;continue}let D=(g=_.groups)!=null&&g.childrenhtml?cv(_.groups.childrenhtml,i):"",R=(m=_.groups)!=null&&m.childrenhtml?x.replace(new RegExp((h=_.groups)==null?void 0:h.childrenhtml),()=>D||""):x;r.push(t.slice(l,V),R),l=V+x.length}return l===0?t:(r.push(t.slice(l)),r.join(""))};function nd(t,e){if(new.target)return E($({component:nd},t));P(e,!1);let i=p(e,"message",12),o=cv(i());Fr();var n=Xe(),r=Ee(n);{var l=d=>{var a=Xe(),c=Ee(a);Pd(c,()=>o,!1,!1),C(d,a)};q(r,d=>{o&&d(l)})}return C(t,n),A({get message(){return i()},set message(d){i(d),u()},$set:L,$on:(d,a)=>M(e,d,a)})}var K4=U('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),Q4={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 Wp(t,e){if(new.target)return E($({component:Wp},t));P(e,!1),se(t,Q4),Fr();var i=K4(),o=w(i);let n=Dr(()=>X("quality_applience",{action:`<span>${X("quality_applience_action")}</span>`}));return nd(o,{get message(){return s(n)}}),y(i),C(t,i),A({$set:L,$on:(r,l)=>M(e,r,l)})}var T_=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Na,valueComponentParams:{prefix:X("other_quality"),selected:o},children:"QUALITY"}},uv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:X("auto_quality_limit"),valueComponent:e?Na:void 0,valueComponentParams:{prefix:X("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),I_=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Wp,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),pv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:X("high_quality"),valueComponent:t?Na:void 0,valueComponentParams:{prefix:X("high_quality"),selected:i},sublabel:X("high_quality_description")}),fv=({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:X("traffic_saving_quality"),valueComponent:t?Na:void 0,valueComponentParams:{prefix:X("traffic_saving_quality"),selected:i},sublabel:X("traffic_saving_quality_description")});var qp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Kp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Xu(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return X("audio_stream_display_language_label",{language:n,label:o});{let a=qp(t,d);return X("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=qp(t,d);return X("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=qp(t,d);return X("audio_stream_display_language_index",{language:n,index:a})}}let r=qp(t,e);return X("audio_stream_display_unknown",{index:r})};var G4={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:uv,selected:e&&!o&&!n||!1}),r.push({handler:fv,selected:o},{handler:pv,selected:n}),{title:X("submenu_quality"),id:"QUALITY_DETAILS",items:[I_(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),T_(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:X("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:oa,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:X("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:uv,selected:((i=Zc())==null?void 0:i.type)==="auto_quality"},{handler:fv,selected:((o=Zc())==null?void 0:o.type)==="traffic_saving"},{handler:pv,selected:((n=Zc())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:X("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:Kp(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:X("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:X("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},k_=({subMenuId:t,context:e})=>t?[G4[t](e)]:[];var Y4=Re('<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 Qp(t,e){if(new.target)return E($({component:Qp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Y4();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var j4=Re('<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 Gp(t,e){if(new.target)return E($({component:Gp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=j4();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var Z4=Re('<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 Yp(t,e){if(new.target)return E($({component:Yp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Z4();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var X4=Re('<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 jp(t,e){if(new.target)return E($({component:jp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=X4();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var J4=Re('<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 Zp(t,e){if(new.target)return E($({component:Zp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=J4();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var ex=Re('<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 Xd(t,e){if(new.target)return E($({component:Xd},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=ex();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var tx=Re('<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 Xp(t,e){if(new.target)return E($({component:Xp},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=tx();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var ix=U('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),ox={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Jp(t,e){if(new.target)return E($({component:Jp},t));P(e,!0),se(t,ox);let[i,o]=tt(),n=()=>k(c,"$currentQuality$",i),r=()=>k(f,"$availableQualities$",i),l=()=>k(g,"$isAutoQualityEnabled$",i),d=()=>k(m,"$isMobile$",i),a=Fe(),c=a.state.currentQuality$,f=a.state.availableQualities$,g=a.state.isAutoQualityEnabled$,m=a.ui.isMobile,h=b(()=>x_({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var _=ix(),x=w(_);oa(x,{get quality(){return n()},get label(){return s(h)},get isMobile(){return d()}}),y(_),C(t,_);var T=A({$set:L,$on:(V,D)=>M(e,V,D)});return o(),T}var rx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?X("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:X("aria_label_menu_quality",{actual:o}),icon:Pl,label:X("menu_quality"),value:e,valueComponent:Jp,weight:Wr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Wr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?X("aria_label_submenu_traffic_saving_off"):`${X("aria_label_submenu_traffic_saving_on")}. ${X("traffic_saving_helper_text")}`,icon:Qp,label:X("menu_traffic_saving"),enabled:t,tooltipText:X("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Kp(t,e);return{id:"AUDIO_LANGUAGES",weight:Wr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:X("aria_label_menu_audio_languages",{actual:i}),icon:Gp,label:X("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:Wr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:X("aria_label_menu_rate",{actual:i}),icon:Yp,label:X("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Wr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:X("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Al,label:X("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Wr.download,type:"CLICK",onClick:t,label:X("download_video_caption"),ariaLabel:X("aria_label_menu_download"),icon:jp}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Wr.report,type:"CLICK",onClick:t,label:X("menu_report"),ariaLabel:`${X("menu_report")}. ${X("aria_label_new_tab_alert")}`,icon:Zp,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Wr["copy-data"],type:"CLICK",onClick:t,label:X("menu_copy_debug"),ariaLabel:X("menu_copy_debug"),icon:Xd,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Wr["save-trace-info"],type:"CLICK",onClick:t,label:X("menu_save_debug"),ariaLabel:X("menu_save_debug"),icon:Xd,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Wr["debug-info"],type:"CLICK",onClick:t,label:e?X("aria_label_menu_debug_overlay_disable"):X("aria_label_menu_debug_overlay_enable"),ariaLabel:X("menu_debug_overlay"),icon:Xp,isHiddenFor:["desktop"]})},E_=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>rx[n](e)),...i.map(n=>zt($({},n),{isAdditional:!0}))].filter(n=>{var r,l,d;return!((r=n==null?void 0:n.isHiddenFor)!=null&&r.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ea)};var ax=(t,e)=>{uu(t,e)},lx=U('<div class="item header svelte-17or3al"><div> </div> <div class="close svelte-17or3al"></div></div>'),dx=U('<div class="settings-menu menu svelte-17or3al" data-testid="settings-menu"><!> <ul class="items" role="menu"></ul></div>'),cx=U('<div class="settings-menu-container svelte-17or3al"><!> <!></div>'),ux={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
302
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Tm(t,e){K(e,!0),G(t,k4);let[i,o]=Fe(),n=()=>C(_,"$isFullscreen",i),a=()=>C(p,"$playerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),l=v(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),u=v(e,"listRef",15);Ft(()=>{let ae=e.items.findIndex(_e=>_e.selected);u().children[ae+1].focus()});let f=Ie(),_=f.ui.isFullscreen,p=f.ui.playerSize,$=te(void 0),y=te(0),w=te(0),S=m(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(w)-d()}px; overflow: auto;`),I=m(()=>Math.max(e.minWidth,r(y)));var A=I4();let P;var E=h(A);let T;E.__keydown=[S4,e];var R=h(E);let z;R.__click=[C4,e],R.__keydown=[T4,e];var Z=h(R);Ps(Z,{direction:"left"});var U=M(Z,2),Q=h(U,!0);g(U),g(R),ut(R,ae=>O($,ae),()=>r($));var ee=M(R,2);yi(ee,17,()=>e.items,Ul,(ae,_e)=>{var re=ze(),Pe=ve(re);{var qe=Le=>{wm(Le,{get item(){return r(_e)},get isMobile(){return s()}})},ie=(Le,J)=>{{var D=Be=>{Sm(Be,{get isMobile(){return s()},get item(){return r(_e)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Le,Be=>{r(_e).type==="OPEN_SUB_MENU"&&Be(D)},J)}};V(Pe,Le=>{r(_e).type==="SELECT_VALUE"?Le(qe):Le(ie,!1)})}b(ae,re)}),g(E),ut(E,ae=>u(ae),()=>u()),g(A),k((ae,_e,re)=>{P=oe(A,1,"sub-menu menu svelte-7dfsuh",null,P,ae),De(A,"data-testid",`sub-menu-${e.id}`),nt(A,`min-width: ${r(I)}px`),T=oe(E,1,"items svelte-7dfsuh",null,T,_e),nt(E,r(S)),z=oe(R,1,"item header back svelte-7dfsuh",null,z,re),De(R,"aria-label",l()),fe(Q,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Ur(R,"clientWidth",ae=>O(y,ae)),Ur(R,"clientHeight",ae=>O(w,ae)),b(t,A),W(),o()}at(["keydown","click"]);var E1=require("@vkontakte/videoplayer-shared/es2015");var E4=(t,e)=>Qc(t,e()),A4=(t,e)=>{t.stopPropagation(),e()()},P4=L('<div class="value svelte-1ikfjte"> </div>'),M4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),L4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Im(t,e){K(e,!0),G(t,L4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,E1.noop),n=v(e,"valueComponent",3,void 0),a=v(e,"ref",15);var s=M4();let d;s.__click=[A4,o],s.__keydown=[E4,o];var l=h(s),u=h(l);{var f=I=>{va(I,{get icon(){return e.icon}})},_=I=>{var A=ze();let P=m(()=>e.icon);var E=ve(A);Di(E,()=>r(P),(T,R)=>{R(T,{})}),b(I,A)};V(u,I=>{typeof e.icon=="string"?I(f):I(_,!1)})}g(l);var p=M(l,2),$=h(p,!0);g(p);var y=M(p,2);{var w=I=>{var A=ze();let P=m(n);var E=ve(A);Di(E,()=>r(P),(T,R)=>{R(T,{})}),b(I,A)},S=I=>{var A=P4(),P=h(A,!0);g(A),k(()=>fe(P,e.value)),b(I,A)};V(y,I=>{n()?I(w):I(S,!1)})}g(s),ut(s,I=>a(I),()=>a()),k(I=>{d=oe(s,1,"item",null,d,I),De(s,"aria-label",e.ariaLabel),De(s,"data-testid",e.id),fe($,e.label)},[()=>({mobile:i()})]),b(t,s),W()}at(["click","keydown"]);var km=require("@vkontakte/videoplayer-shared/es2015");var V4=(t,e)=>{Ja(t,()=>e())},R4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),N4=L('<img class="icon" aria-hidden="true">'),D4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),B4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Em(t,e){K(e,!0),G(t,B4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,km.noop),n=v(e,"closeSettings",3,km.noop),a=te(!1),s=()=>{O(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var l=D4();let u;l.__click=d,l.__keydown=[V4,d];var f=h(l),_=h(f);{var p=S=>{var I=ze(),A=ve(I);{var P=T=>{var R=R4();b(T,R)},E=T=>{var R=N4();k(()=>De(R,"src",e.icon)),Bt("error",R,s),Qs(R),b(T,R)};V(A,T=>{r(a)?T(P):T(E,!1)})}b(S,I)},$=S=>{var I=ze();let A=m(()=>e.icon);var P=ve(I);Di(P,()=>r(A),(E,T)=>{T(E,{})}),b(S,I)};V(_,S=>{typeof e.icon=="string"?S(p):S($,!1)})}g(f);var y=M(f,2),w=h(y,!0);g(y),g(l),k(S=>{var I;u=oe(l,1,"item",null,u,S),De(l,"aria-label",(I=e.ariaLabel)!=null?I:e.label),De(l,"data-testid",e.id),fe(w,e.label)},[()=>({mobile:i()})]),b(t,l),W()}at(["click","keydown"]);var A1=require("@vkontakte/videoplayer-shared/es2015");var O4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),H4={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 Am(t,e){G(t,H4);let i=v(e,"enabled",3,!1);var o=O4(),n=h(o);let a;be(2),g(o),k(s=>a=oe(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var F4=(t,e,i)=>{Wh(t,e(),o=>i()(o))},U4=(t,e,i)=>{t.stopPropagation(),e()(!i())},z4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),q4=L('<li role="menuitem" tabindex="0"><!></li>');function Pm(t,e){K(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,A1.noop),n=v(e,"enabled",3,!1),a=v(e,"tooltipText",3,void 0),s=v(e,"maxTooltipWidth",3,void 0);var d=q4();let l;d.__click=[U4,o,n],d.__keydown=[F4,n,o];var u=h(d);ca(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(f,_)=>{var p=z4();let $;var y=h(p),w=h(y);{var S=T=>{va(T,{get icon(){return e.icon}})},I=T=>{var R=ze();let z=m(()=>e.icon);var Z=ve(R);Di(Z,()=>r(z),(U,Q)=>{Q(U,{})}),b(T,R)};V(w,T=>{typeof e.icon=="string"?T(S):T(I,!1)})}g(y);var A=M(y,2),P=h(A,!0);g(A);var E=M(A,2);Am(E,{get enabled(){return n()}}),g(p),k(T=>{$=oe(p,1,"switch-wrapper",null,$,T),fe(P,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),g(d),k(f=>{var _;l=oe(d,1,"item switch-item",null,l,f),De(d,"aria-label",(_=e.ariaLabel)!=null?_:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),W()}at(["click","keydown"]);var Hd=require("@vkontakte/videoplayer-shared/es2015");var P1=()=>{let t=te(pe([])),e=m(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,pe(r(t).slice(0,-1)))},popAllSubMenus:()=>{O(t,pe([]))}}};var K4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),W4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),Q4={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 _a(t,e){K(e,!0),G(t,Q4);let i=v(e,"isSubCase",3,!1),o=m(()=>Zc(e.quality));var n=W4(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var u=f=>{var _=K4();let p=m(()=>r(o));var $=h(_);Di($,()=>r(p),(y,w)=>{w(y,{})}),g(_),b(f,_)};V(l,f=>{r(o)&&!e.isMobile&&f(u)})}g(n),k(f=>{s=oe(a,1,"svelte-t2qk8t",null,s,f),fe(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),W()}var R1=require("@vkontakte/videoplayer-shared/es2015");var Mm=require("@vkontakte/videoplayer-core/es2015");var M1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},L1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=M1({quality:t,availableQualities:e});return i?t===Mm.VideoQuality.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},V1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Mm.VideoQuality.INVARIANT?i:`${i}${M1({quality:t,availableQualities:e})}`:"...";var G4=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Y4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function dl(t,e){K(e,!0),G(t,Y4);let[i,o]=Fe(),n=()=>C(l,"$currentQuality$",i),a=()=>C(u,"$availableQualities$",i),s=()=>C(f,"$isMobile$",i),d=Ie(),l=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,_=" \xB7 ",p=m(()=>e.prefix+(e.selected&&n()!==R1.VideoQuality.INVARIANT?_:"")),$=m(()=>V1({prefix:r(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var y=G4(),w=h(y);let S=m(()=>e.selected?n():void 0);_a(w,{get quality(){return r(S)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(y),b(t,y),W(),o()}var j4=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")},Z4={br:!0,span:!0},Lm=(t,e={})=>{var d,l,u,f,_,p,$;if(!t)return t;let i=q(q({},Z4),e),o=Object.keys(i);if(!o.length)return t;let n=j4(o),a=[],s=0;for(let y of t.matchAll(n)){let w=y[0],S=((d=y.groups)==null?void 0:d.keyhtml)||((l=y.groups)==null?void 0:l.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((f=y.groups)==null?void 0:f.keyi18nself)||"",{index:I}=y;if(!i[S]){a.push(t.slice(s,I)),s=I+w.length;continue}let A=(_=y.groups)!=null&&_.childrenhtml?Lm(y.groups.childrenhtml,i):"",P=(p=y.groups)!=null&&p.childrenhtml?w.replace(new RegExp(($=y.groups)==null?void 0:$.childrenhtml),()=>A||""):w;a.push(t.slice(s,I),P),s=I+w.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Od(t,e){K(e,!1);let i=v(e,"message",8),o=Lm(i());Cr();var n=ze(),a=ve(n);{var s=d=>{var l=ze(),u=ve(l);zl(u,()=>o,!1,!1),b(d,l)};V(a,d=>{o&&d(s)})}b(t,n),W()}var X4=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),J4={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function Vm(t,e){K(e,!1),G(t,J4),Cr();var i=X4(),o=h(i);let n=xr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Od(o,{get message(){return r(n)}}),g(i),b(t,i),W()}var D1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:dl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},Rm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?dl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),B1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Vm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Nm=({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?dl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),Dm=({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?dl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var uu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),pu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=ou(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=uu(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=uu(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=uu(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=uu(t,e);return F("audio_stream_display_unknown",{index:a})};var e3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Rm,selected:e&&!o&&!n||!1}),a.push({handler:Dm,selected:o},{handler:Nm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[B1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),D1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:_a,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:Rm,selected:((i=Dc())==null?void 0:i.type)==="auto_quality"},{handler:Dm,selected:((o=Dc())==null?void 0:o.type)==="traffic_saving"},{handler:Nm,selected:((n=Dc())==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:pu(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}))})},O1=({subMenuId:t,context:e})=>t?[e3[t](e)]:[];var t3=$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 Bm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=t3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 i3=$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 Om(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=i3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 o3=$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 Hm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=o3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 n3=$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 Fm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=n3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 r3=$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 Um(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=r3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 s3=$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 fu(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=s3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 a3=$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 zm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=a3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 l3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),d3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function qm(t,e){K(e,!0),G(t,d3);let[i,o]=Fe(),n=()=>C(u,"$currentQuality$",i),a=()=>C(f,"$availableQualities$",i),s=()=>C(_,"$isAutoQualityEnabled$",i),d=()=>C(p,"$isMobile$",i),l=Ie(),u=l.state.currentQuality$,f=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,$=m(()=>L1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var y=l3(),w=h(y);_a(w,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(y),b(t,y),W(),o()}var u3={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:ud,label:F("menu_quality"),value:e,valueComponent:qm,weight:kr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:kr["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:Bm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=pu(t,e);return{id:"AUDIO_LANGUAGES",weight:kr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:Om,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:kr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:Hm,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:kr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:pd,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:kr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:Fm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:kr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:Um,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:kr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:fu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:kr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:fu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:kr["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:zm,isHiddenFor:["desktop"]})},H1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>u3[n](e)),...i.map(n=>Vt(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(ra)};var f3=(t,e)=>{Wc(t,e)},m3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),v3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),g3=L("<div><!> <!></div>"),h3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
300
303
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
301
304
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
302
305
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
303
- .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 rd(t,e){if(new.target)return E($({component:rd},t));P(e,!0),se(t,ux);let[i,o]=tt(),n=()=>k(dt,"$settingsMenuVisible",i),r=()=>k(_e,"$settingsMenuOpenedByKeyboard",i),l=()=>k(it,"$debugPanelVisible",i),d=()=>k(Je,"$isMobile",i),a=()=>k(te,"$playerSize",i),c=()=>k(et,"$hasMpegSources$",i),f=()=>k(mt,"$mobileNotReportControlHidden$",i),g=()=>k(Be,"$autoQualityLimitingAvailable$",i),m=()=>k(le,"$availableSubtitlesList$",i),h=()=>k(ge,"$isLiveWithPlaybackSpeed",i),_=()=>k(re,"$availableAudioStreams$",i),x=()=>k(Z,"$availablePlaybackRates$",i),T=()=>k(j,"$currentAudioStream$",i),V=()=>k(Ye,"$currentPlaybackRate$",i),D=()=>k(je,"$trafficSavingEnabled",i),R=()=>k(K,"$currentQuality$",i),B=()=>k(fe,"$isAutoQualityEnabled$",i),I=()=>k(ue,"$currentSubtitle$",i),z=()=>k(gt,"$additionalSettingsMenuItems$",i),Q=()=>k(Te,"$isAutoQualityAvailable$",i),F=()=>k(qe,"$availableQualities$",i),G=()=>k(Tt,"$highQualityEnabled",i),J=p(e,"ref",15,void 0),ce=p(e,"supportLink",7),ee=p(e,"playerControlsHeight",7,0),Ce=p(e,"returnFocus",7),Se=pe(Le({})),ne=pe(Le({})),ie=Fe(),be=oi(),j=ie.state.audioStream$,re=ie.state.availableAudioStreams$,K=ie.state.currentQuality$,qe=ie.state.availableQualities$,Be=ie.state.autoQualityLimitingAvailable$,fe=ie.state.isAutoQualityEnabled$,Te=ie.state.isAutoQualityAvailable$,Ye=ie.state.currentPlaybackRate$,Z=ie.state.availablePlaybackRates$,ue=ie.state.currentSubtitle$,le=ie.state.availableSubtitlesList$,He=ie.state.canDownload,et=ie.state.hasMpegSources$,dt=ie.ui.settingsMenu.visible$,_e=ie.ui.settingsMenu.openedByBtnKeyboard$,me=ie.ui.settingsMenu.ref$,Je=ie.ui.isMobile,mt=ie.ui.mobileNotReportControlHidden$,ge=ie.state.canChangePlaybackSpeed$,je=ie.state.trafficSavingEnabled$,Tt=ie.state.highQualityEnabled$,te=ie.ui.playerSize,it=ie.ui.debugPanelVisible,bt=ie.state.isInteractiveTime$,gt=ie.ui.additionalSettingsMenuItems$,xe=ie.ui.t,Me=ie.actions.internal.downloadVideo,we=ie.actions.internal.closeSettingsMenu,Ze=ie.actions.internal.openSettingsSubMenu,vt=ie.actions.internal.closeSettingsSubMenu,Ne=pe(!1),yt=pe(void 0),he=(void 0)();lt(()=>{!n()&&he.current&&(vt(s(ne)[he.current]),he.popAllSubMenus())}),lt(()=>{n()||Y(yt,void 0)}),lt(()=>{!he.current&&s(yt)&&qh(s(Se),s(yt))}),lt(()=>{J()&&me.set(J())});function Ft(nt){return Ct(this,null,function*(){he.pushSubMenu(nt),yield xo(),Ze(nt,s(ne)[nt])})}function Qt(nt){var Rt;nt==null||nt.stopPropagation(),r()||(Rt=Ce())==null||Rt(),we(),Y(Ne,!1)}function ti(nt,Rt){ie.actions.internal.setQuality(nt,{appliesTo:Rt}),Qt()}function Ke(nt){ie.actions.internal.setAudioStream(nt),Qt()}function ut(nt,Rt){ie.actions.internal.setTrafficSavingEnabled(nt,Rt),be.features.qualityDetailsSubMenuEnabled&&Qt()}function $t(nt,Rt){ie.actions.internal.setHighQualityEnabled(nt,Rt),Qt()}function Mt(nt){ie.actions.internal.setPlaybackRate(nt),Qt()}function Qe(nt){ie.actions.internal.setSubtitle(nt),Qt()}function Gt(){Me()}function si(){(0,Jd.isValidURL)(ce())&&window.open(ce(),"_blank"),ie.actions.internal.reportProblem(),ie.actions.internal.pause()}function ai(){$l(ie.actions.internal.getDebugTextData())}let bi=()=>{let nt=ie.actions.internal.getTraceTextData(),Rt=new Blob([...nt],{type:"application/json"}),go=window.URL.createObjectURL(Rt);wa(go,"vk_player_trace_info","json")};function ht(){it.set(!l())}function _t(){Y(Ne,!0)}function pt(){Y(Ne,!1)}function O(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-ee()}px; overflow: auto;`}let ei=b(()=>He&&c()&&!f()),ui=b(()=>be.features.trafficSaving&&!f()&&g()&&!be.features.qualityDetailsSubMenuEnabled),Ai=b(()=>m().length>0&&!f()),pi=b(()=>!!h()&&!f()),Ti=b(()=>be.features.audioLanguages&&_().length>=2&&!f()),Ii=b(()=>!f());Zt(()=>bt.subscribe(nt=>{nt&&!d()&&!s(Ne)&&!r()&&Qt()}));let vo=b(()=>{let nt=[s(Ii)&&"QUALITY_SETTINGS",s(Ti)&&"AUDIO_LANGUAGES",s(pi)&&"PLAYBACK_RATE",s(Ai)&&"SUBTITLES",s(ui)&&"TRAFFIC_SAVING_SWITCH",s(ei)&&"DOWNLOAD",be.showSupport&&"SHOW_SUPPORT","COPY_DATA",be.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Rt=>!!Rt);return E_({items:nt,context:{qualityDetailsSubMenuEnabled:be.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:T(),availableAudioStreams:_(),currentPlaybackRate:V(),selectPlaybackRate:Mt,trafficSavingEnabled:D(),toggleTrafficSaving:ut,currentQuality:R()||Jd.VideoQuality.INVARIANT,isAutoQualityEnabled:B()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:Gt,debugPanelVisible:l(),onCopyDataClick:ai,onReportProblemClick:si,onSaveTraceDataClick:bi,toggleShowDebugInfo:ht},additionalSettingsMenuItems:z()})}),di=b(()=>k_({subMenuId:he.current,context:{availablePlaybackRates:x(),selectPlaybackRate:Mt,trafficSavingEnabled:D(),toggleTrafficSaving:ut,currentQuality:R()||Jd.VideoQuality.INVARIANT,isAutoQualityEnabled:B()||!1,isAutoQualityAvailable:Q()||!1,availableQualities:F(),highQualityEnabled:G(),toggleHighQuality:$t,availableAudioStreams:_(),availableSubtitlesList:m(),closeSettingsMenu:we,currentAudioStream:T(),isMobile:d(),selectAudioLanguage:Ke,selectQuality:ti,selectSubtitle:Qe}}));var To=cx(),$n=w(To);{var vr=nt=>{var Rt=dx();Rt.__keydown=[ax,we];var go=w(Rt);{var Lo=Wi=>{var Dt=lx(),Mi=w(Dt),qi=w(Mi,!0);y(Mi);var Vo=H(Mi,2);Vo.__click=Qt,y(Dt),N(Xt=>{ae(Dt,"mobile",d()),Pe(qi,Xt)},[()=>xe("submenu_settings")]),C(Wi,Dt)};q(go,Wi=>{d()&&Wi(Lo)})}var Uo=H(go,2);Ei(Uo,21,()=>s(vo),so,(Wi,Dt)=>{var Mi=Xe(),qi=Ee(Mi);{var Vo=io=>{Hp(io,{get isMobile(){return d()},get id(){return s(Dt).id},get icon(){return s(Dt).icon},get label(){return s(Dt).label},get ariaLabel(){return s(Dt).ariaLabel},get value(){return s(Dt).value},get valueComponent(){return s(Dt).valueComponent},onClick:()=>{Ft(s(Dt).children),Y(yt,Le(s(Dt).id))},get ref(){return s(Se)[s(Dt).id]},set ref(ho){s(Se)[s(Dt).id]=ho}})},Xt=io=>{var ho=Xe(),fi=Ee(ho);{var Hn=_o=>{Fp(_o,{get isMobile(){return d()},get id(){return s(Dt).id},get onClick(){return s(Dt).onClick},get icon(){return s(Dt).icon},get label(){return s(Dt).label},get ariaLabel(){return s(Dt).ariaLabel},closeSettings:Qt})},an=_o=>{var mi=Xe(),Fn=Ee(mi);{var Un=Ro=>{zp(Ro,{get isMobile(){return d()},get id(){return s(Dt).id},get onClick(){return s(Dt).onClick},get icon(){return s(Dt).icon},get label(){return s(Dt).label},get ariaLabel(){return s(Dt).ariaLabel},get enabled(){return s(Dt).enabled},get tooltipText(){return s(Dt).tooltipText},get maxTooltipWidth(){return s(Dt).maxTooltipWidth}})};q(Fn,Ro=>{s(Dt).type==="SWITCH"&&Ro(Un)},!0)}C(_o,mi)};q(fi,_o=>{s(Dt).type==="CLICK"?_o(Hn):_o(an,!1)},!0)}C(io,ho)};q(qi,io=>{s(Dt).type==="OPEN_SUB_MENU"?io(Vo):io(Xt,!1)})}C(Wi,Mi)}),y(Uo),St(Uo,Wi=>J(Wi),()=>J()),y(Rt),N(Wi=>{ae(Rt,"desktop",!d()),ae(Rt,"mobile",d()),ae(Rt,"hidden",!!he.current),ve(Uo,"style",Wi),ae(Uo,"mobile",d())},[O]),Kt("mouseenter",Rt,_t),Kt("mouseleave",Rt,pt),C(nt,Rt)};q($n,nt=>{n()&&nt(vr)})}var On=H($n,2);Ei(On,17,()=>s(di),nt=>nt.id,(nt,Rt)=>{let go=b(()=>{var Lo;return(Lo=s(Rt).minWidth)!=null?Lo:137});Op(nt,{get isMobile(){return d()},get playerControlsHeight(){return ee()},get returnFromSubMenu(){return he.popSubMenu},get id(){return s(Rt).id},get title(){return s(Rt).title},closeSettingsMenu:we,openSubMenuList:Ft,get items(){return s(Rt).items},get minWidth(){return s(go)},get refMenuItems(){return s(Se)},get listRef(){return s(ne)[s(Rt).id]},set listRef(Lo){s(ne)[s(Rt).id]=Lo}})}),y(To),N(()=>{ae(To,"mobile",d()),ae(To,"hidden",!n())}),C(t,To);var Fo=A({get ref(){return J()},set ref(nt=void 0){J(nt),u()},get supportLink(){return ce()},set supportLink(nt){ce(nt),u()},get playerControlsHeight(){return ee()},set playerControlsHeight(nt=0){ee(nt),u()},get returnFocus(){return Ce()},set returnFocus(nt){Ce(nt),u()},$set:L,$on:(nt,Rt)=>M(e,nt,Rt)});return o(),Fo}xt(["keydown","click"]);var px=t=>t;function A_(t,{delay:e=0,duration:i=400,easing:o=px}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:r=>`opacity: ${r*n}`}}var fx=U('<button class="button svelte-1sbbskl"> </button>'),mx={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 ef(t,e){if(new.target)return E($({component:ef},t));P(e,!0),se(t,mx);let i=p(e,"label",7),o=p(e,"onClick",7);var n=fx();n.__click=function(...l){var d;(d=o())==null||d.apply(this,l)};var r=w(n,!0);return y(n),N(()=>Pe(r,i())),C(t,n),A({get label(){return i()},set label(l){i(l),u()},get onClick(){return o()},set onClick(l){o(l),u()},$set:L,$on:(l,d)=>M(e,l,d)})}xt(["click"]);var vx=U('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),gx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
306
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Fd(t,e){K(e,!0),G(t,h3);let[i,o]=Fe(),n=()=>C(Ke,"$settingsMenuVisible",i),a=()=>C(lt,"$settingsMenuOpenedByKeyboard",i),s=()=>C(st,"$debugPanelVisible",i),d=()=>C(ye,"$isMobile",i),l=()=>C(Ot,"$playerSize",i),u=()=>C(Ee,"$hasMpegSources$",i),f=()=>C(Me,"$mobileNotReportControlHidden$",i),_=()=>C(D,"$autoQualityLimitingAvailable$",i),p=()=>C(B,"$availableSubtitlesList$",i),$=()=>C(rt,"$isLiveWithPlaybackSpeed",i),y=()=>C(ie,"$availableAudioStreams$",i),w=()=>C(Re,"$availablePlaybackRates$",i),S=()=>C(qe,"$currentAudioStream$",i),I=()=>C(Ge,"$currentPlaybackRate$",i),A=()=>C(vt,"$trafficSavingEnabled",i),P=()=>C(Le,"$currentQuality$",i),E=()=>C(Be,"$isAutoQualityEnabled$",i),T=()=>C(ue,"$currentSubtitle$",i),R=()=>C(qt,"$additionalSettingsMenuItems$",i),z=()=>C(X,"$isAutoQualityAvailable$",i),Z=()=>C(J,"$availableQualities$",i),U=()=>C(tt,"$highQualityEnabled",i),Q=v(e,"ref",15,void 0),ee=v(e,"playerControlsHeight",3,0),ae=pe({}),_e=pe({}),re=Ie(),Pe=Gt(),qe=re.state.audioStream$,ie=re.state.availableAudioStreams$,Le=re.state.currentQuality$,J=re.state.availableQualities$,D=re.state.autoQualityLimitingAvailable$,Be=re.state.isAutoQualityEnabled$,X=re.state.isAutoQualityAvailable$,Ge=re.state.currentPlaybackRate$,Re=re.state.availablePlaybackRates$,ue=re.state.currentSubtitle$,B=re.state.availableSubtitlesList$,ce=re.state.canDownload,Ee=re.state.hasMpegSources$,Ke=re.ui.settingsMenu.visible$,lt=re.ui.settingsMenu.openedByBtnKeyboard$,Ae=re.ui.settingsMenu.ref$,ye=re.ui.isMobile,Me=re.ui.mobileNotReportControlHidden$,rt=re.state.canChangePlaybackSpeed$,vt=re.state.trafficSavingEnabled$,tt=re.state.highQualityEnabled$,Ot=re.ui.playerSize,st=re.ui.debugPanelVisible,gt=re.state.isInteractiveTime$,qt=re.ui.additionalSettingsMenuItems$,Qt=re.ui.t,Ve=re.actions.internal.downloadVideo,se=re.actions.internal.closeSettingsMenu,j=re.actions.internal.openSettingsSubMenu,le=re.actions.internal.closeSettingsSubMenu,ge=te(!1),Ce=te(void 0),Ne=P1();Ze(()=>{!n()&&Ne.current&&(le(_e[Ne.current]),Ne.popAllSubMenus())}),Ze(()=>{n()||O(Ce,void 0)}),Ze(()=>{!Ne.current&&r(Ce)&&qh(ae,r(Ce))}),Ze(()=>{Q()&&Ae.set(Q())});function pt(xt){return St(this,null,function*(){Ne.pushSubMenu(xt),yield yo(),j(xt,_e[xt])})}function Kt(xt){var Wt;xt==null||xt.stopPropagation(),a()||(Wt=e.returnFocus)==null||Wt.call(e),se(),O(ge,!1)}function Ye(xt,Wt){re.actions.internal.setQuality(xt,{appliesTo:Wt}),Kt()}function dt(xt){re.actions.internal.setAudioStream(xt),Kt()}function Je(xt,Wt){re.actions.internal.setTrafficSavingEnabled(xt,Wt),Pe.features.qualityDetailsSubMenuEnabled&&Kt()}function It(xt,Wt){re.actions.internal.setHighQualityEnabled(xt,Wt),Kt()}function ei(xt){re.actions.internal.setPlaybackRate(xt),Kt()}function We(xt){re.actions.internal.setSubtitle(xt),Kt()}function ct(){Ve()}function oi(){(0,Hd.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),re.actions.internal.reportProblem(),re.actions.internal.pause()}function Bi(){ja(re.actions.internal.getDebugTextData())}let Po=()=>{let xt=re.actions.internal.getTraceTextData(),Wt=new Blob([...xt],{type:"application/json"}),fo=window.URL.createObjectURL(Wt);Js(fo,"vk_player_trace_info","json")};function Ki(){st.set(!s())}function Mo(){O(ge,!0)}function Lo(){O(ge,!1)}function Pt(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-ee()}px; overflow: auto;`}let ht=m(()=>ce&&u()&&!f()),H=m(()=>Pe.features.trafficSaving&&!f()&&_()&&!Pe.features.qualityDetailsSubMenuEnabled),Yt=m(()=>p().length>0&&!f()),Wi=m(()=>!!$()&&!f()),Oi=m(()=>Pe.features.audioLanguages&&y().length>=2&&!f()),si=m(()=>!f());Ft(()=>gt.subscribe(xt=>{xt&&!d()&&!r(ge)&&!a()&&Kt()}));let ci=m(()=>{let xt=[r(si)&&"QUALITY_SETTINGS",r(Oi)&&"AUDIO_LANGUAGES",r(Wi)&&"PLAYBACK_RATE",r(Yt)&&"SUBTITLES",r(H)&&"TRAFFIC_SAVING_SWITCH",r(ht)&&"DOWNLOAD",Pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",Pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Wt=>!!Wt);return H1({items:xt,context:{qualityDetailsSubMenuEnabled:Pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:w(),currentAudioStream:S(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:ei,trafficSavingEnabled:A(),toggleTrafficSaving:Je,currentQuality:P()||Hd.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:T(),isMobile:d(),onDownloadClick:ct,debugPanelVisible:s(),onCopyDataClick:Bi,onReportProblemClick:oi,onSaveTraceDataClick:Po,toggleShowDebugInfo:Ki},additionalSettingsMenuItems:R()})}),uo=m(()=>O1({subMenuId:Ne.current,context:{availablePlaybackRates:w(),selectPlaybackRate:ei,trafficSavingEnabled:A(),toggleTrafficSaving:Je,currentQuality:P()||Hd.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:z()||!1,availableQualities:Z(),highQualityEnabled:U(),toggleHighQuality:It,availableAudioStreams:y(),availableSubtitlesList:p(),closeSettingsMenu:se,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:dt,selectQuality:Ye,selectSubtitle:We}}));var po=g3();let Zi;var Ho=h(po);{var Ht=xt=>{var Wt=v3();let fo;Wt.__keydown=[f3,se];var Jt=h(Wt);{var Wn=pi=>{var $t=m3();let fi;var mo=h($t),_i=h(mo,!0);g(mo);var _n=M(mo,2);_n.__click=Kt,g($t),k((wi,Co)=>{fi=oe($t,1,"item header svelte-17or3al",null,fi,wi),fe(_i,Co)},[()=>({mobile:d()}),()=>Qt("submenu_settings")]),b(pi,$t)};V(Jt,pi=>{d()&&pi(Wn)})}var So=M(Jt,2);let Fo;yi(So,21,()=>r(ci),pi=>pi.id,(pi,$t)=>{var fi=ze(),mo=ve(fi);{var _i=wi=>{Im(wi,{get isMobile(){return d()},get id(){return r($t).id},get icon(){return r($t).icon},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},get value(){return r($t).value},get valueComponent(){return r($t).valueComponent},onClick:()=>{pt(r($t).children),O(Ce,pe(r($t).id))},get ref(){return ae[r($t).id]},set ref(Co){ae[r($t).id]=Co}})},_n=(wi,Co)=>{{var Uo=Si=>{Em(Si,{get isMobile(){return d()},get id(){return r($t).id},get onClick(){return r($t).onClick},get icon(){return r($t).icon},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},closeSettings:Kt})},bn=(Si,Qn)=>{{var rn=Vo=>{Pm(Vo,{get isMobile(){return d()},get id(){return r($t).id},get onClick(){return r($t).onClick},get icon(){return r($t).icon},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},get enabled(){return r($t).enabled},get tooltipText(){return r($t).tooltipText},get maxTooltipWidth(){return r($t).maxTooltipWidth}})};V(Si,Vo=>{r($t).type==="SWITCH"&&Vo(rn)},Qn)}};V(wi,Si=>{r($t).type==="CLICK"?Si(Uo):Si(bn,!1)},Co)}};V(mo,wi=>{r($t).type==="OPEN_SUB_MENU"?wi(_i):wi(_n,!1)})}b(pi,fi)}),g(So),ut(So,pi=>Q(pi),()=>Q()),g(Wt),k((pi,$t,fi)=>{fo=oe(Wt,1,"settings-menu menu svelte-17or3al",null,fo,pi),Fo=oe(So,1,"items",null,Fo,$t),nt(So,fi)},[()=>({desktop:!d(),mobile:d(),hidden:!!Ne.current}),()=>({mobile:d()}),Pt]),Bt("mouseenter",Wt,Mo),Bt("mouseleave",Wt,Lo),b(xt,Wt)};V(Ho,xt=>{n()&&xt(Ht)})}var ui=M(Ho,2);yi(ui,17,()=>r(uo),xt=>xt.id,(xt,Wt)=>{let fo=m(()=>{var Jt;return(Jt=r(Wt).minWidth)!=null?Jt:137});Tm(xt,{get isMobile(){return d()},get playerControlsHeight(){return ee()},get returnFromSubMenu(){return Ne.popSubMenu},get id(){return r(Wt).id},get title(){return r(Wt).title},closeSettingsMenu:se,openSubMenuList:pt,get items(){return r(Wt).items},get minWidth(){return r(fo)},get refMenuItems(){return ae},get listRef(){return _e[r(Wt).id]},set listRef(Jt){_e[r(Wt).id]=Jt}})}),g(po),k(xt=>Zi=oe(po,1,"settings-menu-container svelte-17or3al",null,Zi,xt),[()=>({mobile:d(),hidden:!n()})]),b(t,po),W(),o()}at(["keydown","click"]);var _3=t=>t;function F1(t,{delay:e=0,duration:i=400,easing:o=_3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var b3=L('<button class="button svelte-1sbbskl"> </button>'),$3={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Km(t,e){G(t,$3);var i=b3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),k(()=>fe(o,e.label)),b(t,i)}at(["click"]);var y3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),x3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
304
307
  /**
305
308
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
306
- */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 sd(t,e){if(new.target)return E($({component:sd},t));P(e,!0),se(t,gx);let i=340,o=p(e,"onClose",7),n=p(e,"onSelectAutoQuality",7),{features:{forceAutoQualityWhenSevereStallHappens:r}}=oi(),{ui:{t:l}}=Fe(),d=l(r?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var a=vx(),c=w(a),f=w(c),g=w(f),m=w(g);nd(m,{message:d}),y(g);var h=H(g,2);{var _=T=>{let V=b(()=>l("slow_video_notification_button"));ef(T,{get label(){return s(V)},get onClick(){return n()}})};q(h,T=>{r||T(_)})}y(f);var x=H(f,2);return Ks(x,{get onClick(){return o()}}),y(c),y(a),mm(3,c,()=>A_,()=>({duration:i})),C(t,a),A({get onClose(){return o()},set onClose(T){o(T),u()},get onSelectAutoQuality(){return n()},set onSelectAutoQuality(T){n(T),u()},$set:L,$on:(T,V)=>M(e,T,V)})}var ec="annotation",tf=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",ec),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="var(--video-container-z-index)";break;case"over_controls":e.style.zIndex="var(--controls-container-z-index)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var hx=(t,e,i,o,n,r)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(r().controls.hideTimeoutCursor))},_x=(t,e,i,o,n,r,l,d,a,c,f,g,m,h,_,x,T,V,D)=>{var R;if(t.preventDefault(),e()||o()){r();return}if(!(l()&&!a)){if(s(c))return f();if((R=g())==null||R.focus(),!m()){h()(),_(x().controls.hideTimeoutCursor);return}(!x().preventPauseOnVideoClick||T()!==mv.PlaybackState.PLAYING)&&D().actions.internal.togglePlay(),_(x().controls.hideTimeoutCursor)}},$x=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},bx=U('<div class="ads-container svelte-1b9vdl1"><!></div>'),yx=U('<div class="spherical-video-icon svelte-1b9vdl1"><!></div>'),xx=U("<div><!></div>"),wx=U('<div class="settings-menu svelte-1b9vdl1"><!></div>'),Cx=U("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Sx=U('<div class="video-wrapper svelte-1b9vdl1"><div class="video-container svelte-1b9vdl1" data-testid="video-container"></div></div> <!>',1),Tx=U('<div class="player-wrapper svelte-1b9vdl1"><!> <div class="overlay-container"></div></div>'),Ix={hash:"svelte-1b9vdl1",code:`.player-wrapper.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1b9vdl1 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-1b9vdl1 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-1b9vdl1,
309
+ */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Ud(t,e){K(e,!0),G(t,x3);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=y3(),d=h(s),l=h(d),u=h(l),f=h(u);Od(f,{message:a}),g(u);var _=M(u,2);{var p=y=>{let w=m(()=>n("slow_video_notification_button"));Km(y,{get label(){return r(w)},get onClick(){return e.onSelectAutoQuality}})};V(_,y=>{o||y(p)})}g(l);var $=M(l,2);aa($,{get onClick(){return e.onClose}}),g(d),g(s),Cp(3,d,()=>F1,()=>({duration:i})),b(t,s),W()}var zd="annotation",mu=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",zd),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="var(--video-container-z-index)";break;case"over_controls":e.style.zIndex="var(--controls-container-z-index)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var w3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},S3=(t,e,i,o,n,a,s,d,l,u,f,_,p,$,y,w,S)=>{var I;if(t.preventDefault(),e()||o()){a();return}if(!(s()&&!l)){if(r(u))return f();if((I=_())==null||I.focus(),!p()){$.firstStart(),y($.uiConfig.controls.hideTimeoutCursor);return}(!$.uiConfig.preventPauseOnVideoClick||w()!==Wm.PlaybackState.PLAYING)&&$.store.actions.internal.togglePlay(),y($.uiConfig.controls.hideTimeoutCursor)}},C3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},T3=L("<div><!></div>"),I3=L('<div class="spherical-video-icon svelte-1b9vdl1"><!></div>'),k3=L("<div><!></div>"),E3=L('<div class="settings-menu svelte-1b9vdl1"><!></div>'),A3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),P3=L('<div><div data-testid="video-container"></div></div> <!>',1),M3=L('<div class="player-wrapper svelte-1b9vdl1"><!> <div class="overlay-container"></div></div>'),L3={hash:"svelte-1b9vdl1",code:`.player-wrapper.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1b9vdl1 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-1b9vdl1 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-1b9vdl1,
307
310
  .video-container.svelte-1b9vdl1,
308
- .ads-container.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1b9vdl1 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1b9vdl1 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1b9vdl1 {transition:none;}.nocursor.svelte-1b9vdl1 {cursor:none;}.ads-container.svelte-1b9vdl1 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-1b9vdl1 {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}`};function of(t,e){if(new.target)return E($({component:of},t));P(e,!0),se(t,Ix);let[i,o]=tt(),n=()=>k(qo,"$notificationsToShow$",i),r=()=>k(On,"$playerPhase",i),l=()=>k(qi,"$isLoaderVisible",i),d=()=>k(To,"$adPlaybackState",i),a=()=>k(an,"$crashed",i),c=()=>k(gr,"$isInteractiveTime$",i),f=()=>k(go,"$settingsMenuVisible",i),g=()=>k(ln,"$isInteractiveExpectation$",i),m=()=>k(Rt,"$controlsVisible",i),h=()=>k(_r,"$touched",i),_=()=>k(dn,"$graphIsOpened$",i),x=()=>k(Fo,"$isFullscreen",i),T=()=>k(yn,"$autoplayNextEnabled$",i),V=()=>k(ho,"$postrollPassed",i),D=()=>k(Vo,"$isEnded$",i),R=()=>k(ao,"$cursorInside",i),B=()=>k(qr,"$rotateAlpha",i),I=()=>k(zn,"$playerSize",i),z=()=>k(Qn,"$fakeIsPlaying$",i),Q=()=>k(Xn,"$bottomNoSmooth",i),F=()=>k(qn,"$interactiveTimeIndicator",i),G=()=>k(zo,"$is3DVideo",i),J=()=>k(Dt,"$contextMenuVisible$",i),ce=()=>k(di,"$playbackState$",i),ee=()=>k($r,"$hotKeyMapData",i),Ce=()=>k(Uo,"$scrubbingInProgress",i),Se=()=>k(Wi,"$volumeChangingInProgress",i),ne=()=>k(Xt,"$chromecastConnected$",i),ie=()=>k(ko,"$controlsTimeoutActive",i),be=()=>k(Lo,"$settingsMenuOpenedByKeyboard",i),j=()=>k(mn,"$contextMenuOpenedByKeyboard$",i),re=()=>k(Er,"$contextMenuButtonRef$",i),K=()=>k(nr,"$contextMenuOpenedByHotKey$",i),qe=()=>k(Pr,"$contextMenuLastActiveElem$",i),Be=()=>k(nt,"$isFullscreenOpenedByKeyboard",i),fe=()=>k(Hn,"$isPlaying$",i),Te=()=>k(vo,"$language$",i),Ye=()=>k(oo,"$icon3DVideoVisible",i),Z=()=>k(io,"$chromecastDeviceName$",i),ue=()=>k(Fn,"$currentSubtitle$",i),le=()=>k(Un,"$currentSubtitleCaptions$",i),He=()=>k($n,"$position$",i),et=()=>k(Ro,"$realDuration$",i),dt=()=>k(fi,"$isLive$",i),_e=()=>k(vr,"$duration$",i),me=()=>k(Li,"$contextMenuPosition$",i),Je=()=>k(Wn,"$showHotKeyMap",i),mt=()=>k(Mi,"$debugPanelVisible",i),ge=p(e,"store",7),je=p(e,"uiConfig",7),Tt=p(e,"title",7),te=p(e,"thumbUrl",7),it=p(e,"videoContainer",15),bt=p(e,"interactiveContainer",7),gt=p(e,"live",7),xe=p(e,"autoplay",7),Me=p(e,"canRewindLive",7),we=p(e,"showAds",7),Ze=p(e,"adsSlotId",7,void 0),vt=p(e,"adsParams",7,void 0),Ne=p(e,"adsPreviewParam",7,void 0),yt=p(e,"adsAutoplayParam",7,void 0),he=p(e,"duration",7,void 0),Ft=p(e,"logoClickable",7),Qt=p(e,"logoHidden",7),ti=p(e,"logoTargetUrl",7,""),Ke=p(e,"showNextPrevButtons",7,!1),ut=p(e,"nextButtonActive",7,!1),$t=p(e,"prevButtonActive",7,!1),Mt=p(e,"endScreenVideoTitle",7,void 0),Qe=p(e,"endScreenVideoThumb",7,void 0),Gt=p(e,"isOneVideoPlaylist",7,!1),si=p(e,"supportLink",7),ai=p(e,"shadowRootContainer",7,void 0),bi=p(e,"outerContainerRef",7,void 0),ht=p(e,"playerStarted",7,!1),_t=p(e,"fullScreenTarget",7,void 0),pt=p(e,"showMiniTimer",7,!1),O=p(e,"showEndScreen",7,!0),ei=p(e,"showAutoplayNext",7),ui=p(e,"keyboardControls",15),Ai=p(e,"seekToInteractive",7),pi=p(e,"playPrevChapter",7),Ti=p(e,"firstStart",7),Ii=ge().getLogger().createComponentLog("Root component"),vo=ge().interfaceLanguage$,di=ge().state.playbackState$,To=ge().ads.playbackState,$n=ge().state.positionWithScrubbing$,vr=ge().state.duration$,On=ge().playerPhase,Fo=ge().ui.isFullscreen,nt=ge().ui.isFullscreenOpenedByKeyboard,Rt=ge().ui.controlsVisible,go=ge().ui.settingsMenu.visible$,Lo=ge().ui.settingsMenu.openedByBtnKeyboard$,Uo=ge().ui.scrubbingInProgress,Wi=ge().ui.volumeChangingInProgress,Dt=ge().ui.contextMenu.visible$,Mi=ge().ui.debugPanelVisible,qi=ge().state.isLoaderVisible,Vo=ge().state.isEnded$,Xt=ge().state.chromecastConnected$,io=ge().state.chromecastDeviceName$,ho=ge().ads.postrollPassed,fi=ge().state.isLive$,Hn=ge().state.isPlaying$,an=ge().state.crashed$,_o=ge().webApi.annotationsApi,mi=ge().webApi.pictureInPictureApi,Fn=ge().state.currentSubtitle$,Un=ge().state.currentSubtitleCaptions$,Ro=ge().state.duration$,zn=ge().ui.playerSize,zo=ge().ui.is3DVideo,oo=ge().ui.icon3DVideoVisible,qr=ge().ui.rotateAlpha,Wo=ge().state.isInteractive,gr=ge().state.isInteractiveTime$,ln=ge().state.isInteractiveExpectation$,hr=ge().state.hasInteractiveBranches,_r=ge().ui.touched,$r=ge().ui.modals.hotKeyMap.data,Wn=ge().ui.modals.hotKeyMap.show,Io=ge().ui.overlayContainer$,qn=ge().ui.controls.interactiveTimeIndicator,Kn=ge().state.showInteractiveTimeIndicator,Li=ge().ui.contextMenu.position$,$o=ge().actions.internal.setQuality,bn=ge().actions.internal.closeSettingsMenu,yn=ge().ui.autoplayNextEnabled$,{fakeIsPlaying$:Qn,notifications$:Gn,graphIsOpened$:dn}=mo(),Di=pe(void 0),xn=pe(void 0),wt=pe(void 0),Yn=pe(void 0),br,jn,cn;$r.set(Fh());let{closeNotification:yr,notificationsToShow$:qo}=Gn,Kr=b(()=>!!n().slow_video),Zn=()=>yr("slow_video"),xr=b(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),wn=pe(void 0),Xn=Ie(!1),Jn,ko=Ie(!1),Ko=Ie(),ao=Ie(!1),Qo=pe(!1),Ki=pe(!1),Qi=pe(!1),wr=pe(!(xe()&&!je().controls.showOnStartupAtAutoplay)),un=b(()=>c()&&!f()&&!(s(Qo)||s(Ki))&&!(s(Qi)&&!g())),Qr=!0,Cn=b(()=>je().features.thumbTimer&&pt()&&r()==="video"&&!m()&&!a()&&!Wo&&(je().hideThumbTimerAfterTouch&&!h()||!je().hideThumbTimerAfterTouch)),Cr=b(()=>r()==="video"&&!_()&&x()),er=pe(!1),Sn=b(()=>(O()||ei()&&T())&&!!Mt()&&!!Qe()&&(we()&&V()||!we())&&D()&&!a()&&!s(er)),Gr=b(()=>R()&&!(m()||s(Sn))&&!c()),tr=pe(!1),ir=b(()=>it()&&B()%180?I().height/I().width:1),yi=b(()=>z()!==null),{toggle:Sr}=Qn,Tn=!1,Go=null;mi==null||mi.setContext(yd());let Yr=()=>{xe()&&!Wo&&je().controls.showOnStartupAtAutoplay&&ke(je().controls.hideTimeout)};ge().setUiCallbacks({onStarted:Yr});let or=()=>{window.clearTimeout(br),ko.set(!1)},No=()=>{window.clearTimeout(jn),Ko.set(null)},ke=oe=>{or(),ko.set(!0),br=window.setTimeout(()=>ko.set(!1),oe);let qt=oe-100;Jn=window.setTimeout(()=>{Q()&&Xn.set(!1)},qt>0?qt:oe)},Ut=(oe,qt)=>{No(),Ko.set(qt),jn=window.setTimeout(()=>Ko.set(null),oe)},Vi=zo.subscribe(oe=>{oo.set(oe),oe&&(window.clearTimeout(cn),cn=window.setTimeout(()=>oo.set(!1),je().controls.hide360IconTimeout))}),xi=()=>Ct(this,null,function*(){var qt,Jt,Lt,Hi;let oe=Us();if(oe){let vi=Fd(),ji=Oi();oe=vi===ji||vi===ai()}if(oe){ke(je().controls.hideTimeoutFullscreen);try{yield mi==null?void 0:mi.remove()}catch(vi){Ii({message:String(vi)})}}Fo.set(oe),ge().getAdmanWrapper().setFullscreen(oe),x()?(Jt=(qt=ge().callbacks)==null?void 0:qt.onFullscreenEnter)==null||Jt.call(qt):(Hi=(Lt=ge().callbacks)==null?void 0:Lt.onFullscreenExit)==null||Hi.call(Lt)}),pn=oe=>{let{width:qt,height:Jt}=oe.target;zn.set({width:qt,height:Jt})},Eo=()=>{let{width:oe,height:qt}=s(Di).getBoundingClientRect();zn.set({width:oe,height:qt})};Zt(()=>{var qt;return nu(xi),je().features.annotationsInside&&(_o==null||_o.init(s(Di))),Ia(mi)&&(mi==null||mi.assignPlayerContainer(s(Di)),mi==null||mi.registryExternalEventHandlers({resize:pn,leavepictureinpicture:Eo})),bt()&&((qt=it().parentElement)==null||qt.insertBefore(bt(),it().nextSibling)),()=>{window.clearTimeout(br),window.clearTimeout(Jn),window.clearTimeout(jn),window.clearTimeout(cn),Vi(),mi==null||mi.dispose().catch(Jt=>{Ii({message:String(Jt)})}),ru(xi)}});let Oi=()=>{let oe=je().features.fullscreenInternalTargetPlayerContainer||!bi()?s(Di):bi(),qt=oe.getRootNode(),Jt=qt instanceof ShadowRoot?qt.host:qt,Lt=_t()instanceof HTMLElement&&_t().contains(Jt);return je().allowChangingFullscreenTarget&&_t()&&Lt?_t():oe},$e=()=>Ct(this,null,function*(){Us()?(yield ou(document),Ii({message:"exit fullscreen"})):(Ii({message:"request fullscreen"}),yield iu(Oi()))}),Ot=()=>{bn(),Dt.set(!1)},wi=oe=>{_()||(oe.preventDefault(),Dt.set(!0),Li.set({left:oe.clientX,top:oe.clientY}))};function Gi(){ao.set(!0),Wo||ke(je().controls.hideTimeoutCursor)}function li(){Wo||(Xn.set(!0),ke(je().controls.hideTimeoutCursor))}function bo(){ao.set(!1),Y(Ki,!1),Y(Qo,!1),Tn=!1,ge().actions.internal.releaseCamera(),ke(je().controls.hideTimeout)}function lo(oe){return oe?oe.offsetTop+lo(oe.offsetParent):0}function Bo(oe){return oe?oe.offsetLeft+Bo(oe.offsetParent):0}function Yi(oe){if(F()&&Kn){let qt=oe.currentTarget,Jt=lo(qt),Lt=Bo(qt),Hi=oe.pageX-Lt,vi=oe.pageY-Jt,{left:ji,bottom:jr,right:rr}=F(),Do=rr-ji;return Hi>=ji-Do&&vi<=jr+Do}}function fn(oe){if(s(Di)){let qt=lo(oe.currentTarget),Jt=I().height,Lt=oe.pageY-qt;if(Yi(oe)){Y(Ki,!1);return}Lt<40?Y(Ki,!0):Lt>Jt-40?Y(Qo,!0):(Y(Ki,!1),f()||Y(Qo,!1))}}function Yo(oe){fn(oe),s(un)||ke(je().controls.hideTimeoutCursor),G()&&Tn&&Go&&ge().actions.internal.moveCameraFocusPX(Go.clientX-oe.clientX,Go.clientY-oe.clientY,oe.timeStamp-Go.timeStamp),Go=oe}let In=oe=>{oe.preventDefault(),oe.button===0&&(Tn=!0,ge().actions.internal.holdCamera()),ke(je().controls.hideTimeoutCursor)},Tr=oe=>{oe.preventDefault(),oe.button===0&&(Go=oe,Tn=!1,ge().actions.internal.releaseCamera()),ke(je().controls.hideTimeoutCursor)},Ir=oe=>{Ot(),_r.set(!0),ke(je().controls.hideTimeout),oe&&Ut(je().controls.hideHotKeyHelpers,oe)},kr=()=>{var oe,qt;Ot(),(oe=ge().callbacks)!=null&&oe.onOpenHotKeyMap?(qt=ge().callbacks)==null||qt.onOpenHotKeyMap(ee()):Wn.update(Jt=>!Jt)},us=()=>{_r.set(!0)},mn=ge().ui.contextMenu.openedByBtnKeyboard$,Er=ge().ui.contextMenu.btnRef$,Po=pe(void 0),nr=ge().ui.contextMenu.openedByHotKey$,Pr=ge().ui.contextMenu.lastActiveElem$;lt(()=>{Io.set(s(wn))}),lt(()=>{Y(Qi,Le(s(wr)&&ce()!==mv.PlaybackState.PLAYING)),s(wr)||Pt(()=>Y(wr,!0))}),lt(()=>{Rt.set((s(Qi)||D()||f()||Ce()||Se()||ne()||ie())&&!s(un)&&(r()==="video"||r()==="ads")&&!a())}),lt(()=>{!Ce()&&s(tr)&&!c()&&ke(je().controls.hideTimeoutCursor),Pt(()=>Y(tr,Le(Ce())))}),lt(()=>{s(Yn),f(),be(),Pt(()=>ss(s(Yn),f(),be()))}),lt(()=>{s(Po),J(),j(),Pt(()=>ss(s(Po),J(),j()))}),lt(()=>{let oe=re();oe&&(J(),Pt(()=>bl(oe,J(),mn)))}),lt(()=>{s(Po),J(),K(),Pt(()=>ss(s(Po),J(),K()))}),lt(()=>{let oe=qe();oe&&(J(),Pt(()=>Wh(oe,J(),nr)))}),lt(()=>{var oe;!Be()&&x()&&(Pt(()=>nt.set(!1)),(oe=ui())==null||oe.focus())}),lt(()=>{_()&&Ot()});let jo=X("video360");var ft=Tx();Kt("blur",ga,Ot),ft.__mousemove=Yo;var ni=w(ft);let Ci=b(()=>r()==="ads"),Ar=b(()=>s(yi)?Sr:void 0);St($u(ni,{toggleFullscreen:$e,hideContextMenu:Ot,showHotKeyHelpers:Ir,showKeyMap:kr,get isAds(){return s(Ci)},get fakePlayButtonHandler(){return s(Ar)},get nextButtonActive(){return ut()},get prevButtonActive(){return $t()},children:(oe,qt)=>{var Jt=Sx(),Lt=Ee(Jt);Lt.__contextmenu=wi,Lt.__mousedown=In,Lt.__mouseup=Tr,Lt.__click=[_x,J,Dt,f,go,Ot,D,Vo,hr,yi,Sr,ui,ht,Ti,ke,je,ce,di,ge],Lt.__dblclick=[hx,Qr,Ii,$e,ke,je];var Hi=w(Lt);St(Hi,ji=>it(ji),()=>it()),y(Lt);var vi=H(Lt,2);Ed(vi,Te,ji=>{var jr=Cx(),rr=Ee(jr);let Do=b(()=>r()!=="thumb"||a()||Wo&&xe());td(rr,{get hidden(){return s(Do)},get thumbUrl(){return te()},get startVideo(){return Ti()}});var ps=H(rr,2);{var rt=ye=>{let at=b(()=>{var kt;return(kt=gt())==null?void 0:kt.startTime});id(ye,{get thumbUrl(){return te()},get startTime(){return s(at)}})};q(ps,ye=>{r()==="LiveWaitingStart"&&ye(rt)})}var ii=H(ps,2);{var ki=ye=>{ia(ye,{kind:"recover",get thumbUrl(){return te()}})};q(ii,ye=>{r()==="LiveWaitingRecover"&&ye(ki)})}var En=H(ii,2);{var sr=ye=>{ia(ye,{kind:"record",get thumbUrl(){return te()}})};q(En,ye=>{r()==="LiveWaitingRecord"&&ye(sr)})}var Ps=H(En,2);{var Pn=ye=>{var at=bx(),kt=w(at);gl(kt,{get adsSlotId(){return Ze()},get adsParams(){return vt()},get adsPreviewParam(){return Ne()},get adsAutoplayParam(){return yt()},get duration(){return he()}}),y(at),N(()=>ae(at,"hidden",r()!=="ads")),C(ye,at)};q(Ps,ye=>{we()&&ht()&&ye(Pn)})}var Zr=H(Ps,2);{var Da=ye=>{let at=b(()=>!O()&&ei()&&T());gu(ye,{get title(){return Mt()},get thumb(){return Qe()},get isHide(){return s(at)},clickCloseIcon:()=>Y(er,!0)})};q(Zr,ye=>{s(Sn)&&Mt()&&Qe()&&ye(Da)})}var Oa=H(Zr,2);{var As=ye=>{let at=b(()=>!m());Lp(ye,{get title(){return Tt()},get isHidden(){return s(at)}})};q(Oa,ye=>{s(Cr)&&ye(As)})}var Ha=H(Oa,2);{var ra=ye=>{let at=b(()=>r()==="video"&&m());Zl(ye,{get isShifted(){return s(at)}})};q(Ha,ye=>{G()&&ye(ra)})}var Ms=H(Ha,2);{var Ge=ye=>{var at=yx(),kt=w(at);ul(kt,{"aria-label":jo}),y(at),C(ye,at)};q(Ms,ye=>{Ye()&&ye(Ge)})}var Nt=H(Ms,2);{var Zo=ye=>{Jl(ye,{get thumbUrl(){return te()},get chromecastDeviceName(){return Z()}})};q(Nt,ye=>{ne()&&ye(Zo)})}var Lr=H(Nt,2);{var sa=ye=>{Xl(ye,{get shifted(){return m()},get captions(){return le()},get position(){return He()},get playerSize(){return I()}})};q(Lr,ye=>{ue().value!=="off"&&ye(sa)})}var Vr=H(Lr,2);{var Xr=ye=>{var at=xx();at.__contextmenu=wi,at.__click=[$x,J,Dt,f,go,Ot];var kt=w(at);ed(kt,{}),y(at),C(ye,at)};q(Vr,ye=>{a()&&ye(Xr)})}var Ls=H(Vr,2);{var pd=ye=>{let at=b(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),kt=b(()=>r()==="ads"),Ht=b(()=>Me()&&et()!==0);jl(ye,{get bottomHidden(){return s(at)},get bottomNoSmooth(){return Q()},get showControls(){return m()},get isAds(){return s(kt)},get canRewindLive(){return s(Ht)},get logoClickable(){return Ft()},get logoHidden(){return Qt()},get logoTargetUrl(){return ti()},get showAutoplayNext(){return ei()},get showNextPrevButtons(){return Ke()},get nextButtonActive(){return ut()},get prevButtonActive(){return $t()},get isOneVideoPlaylist(){return Gt()},customFullscreenSupported:Qr,toggleFullscreen:$e,get seekToInteractive(){return Ai()},get playPrevChapter(){return pi()},get playerControlsWrapperRef(){return s(xn)},set playerControlsWrapperRef(no){Y(xn,Le(no))},get playerControlsRef(){return s(wt)},set playerControlsRef(no){Y(wt,Le(no))}})};q(Ls,ye=>{ht()&&ye(pd)})}var uc=H(Ls,2);{var Fa=ye=>{var at=wx(),kt=w(at);let Ht=b(()=>{var no;return(no=s(wt))==null?void 0:no.clientHeight});rd(kt,{get supportLink(){return si()},get playerControlsHeight(){return s(Ht)},returnFocus:()=>{var no;return(no=ui())==null?void 0:no.focus()},get ref(){return s(Yn)},set ref(no){Y(Yn,Le(no))}}),y(at),C(ye,at)};q(uc,ye=>{!ne()&&r()!=="ads"&&ye(Fa)})}var pc=H(uc,2);let fc=b(()=>!s(Cn));_l(pc,{get isLive(){return dt()},get isHidden(){return s(fc)},get isPlaying(){return fe()},get position(){return He()},get duration(){return _e()}});var mc=H(pc,2);kp(mc,{data:Ko});var vc=H(mc,2);mu(vc,{get supportLink(){return si()},returnFocus:()=>{var ye;return(ye=ui())==null?void 0:ye.focus()},get visible(){return J()},get playerContainerRef(){return s(Di)},get controlsContainerRef(){return s(xn)},get position(){return me()},get menuElementRef(){return s(Po)},set menuElementRef(ye){Y(Po,Le(ye))}});var Vt=H(vc,2);{var gc=ye=>{sd(ye,{onClose:Zn,onSelectAutoQuality:()=>{$o("auto"),Zn()}})};q(Vt,ye=>{s(Kr)&&ye(gc)})}var fd=H(Vt,2);{var hc=ye=>{Ys(ye,{})};q(fd,ye=>{s(xr)&&ye(hc)})}var v=H(fd,2);{var S=ye=>{xu(ye,{})};q(v,ye=>{Je()&&ye(S)})}var W=H(v,2);{var Ae=ye=>{Sl(ye,{})};q(W,ye=>{mt()&&ye(Ae)})}var st=H(W,2);Ad(st,()=>"slot",!1,(ye,at)=>{Oe(ye,null,{name:ec},"svelte-1b9vdl1",ye.namespaceURI===da,ye.nodeName.includes("-"))}),C(ji,jr)}),N(()=>{ae(Lt,"hidden",r()!=="video"),ae(Lt,"nocursor",s(Gr)),ve(Hi,"style",`transform: rotate(${B()}deg) scale(${s(ir)})`),ve(Hi,"data-is-playing",fe()),ae(Hi,"fast-rotate",!je().isSmoothVideoRotate)}),C(oe,Jt)},$$slots:{default:!0}}),oe=>ui(oe),()=>ui());var kn=H(ni,2);St(kn,oe=>Y(wn,oe),()=>s(wn)),y(ft),St(ft,oe=>Y(Di,oe),()=>s(Di)),Kt("mouseenter",ft,Gi),Kt("mouseleave",ft,bo),Kt("click",ft,us,!0),Kt("focusin",ft,li,!0),C(t,ft);var Mr=A({get store(){return ge()},set store(oe){ge(oe),u()},get uiConfig(){return je()},set uiConfig(oe){je(oe),u()},get title(){return Tt()},set title(oe){Tt(oe),u()},get thumbUrl(){return te()},set thumbUrl(oe){te(oe),u()},get videoContainer(){return it()},set videoContainer(oe){it(oe),u()},get interactiveContainer(){return bt()},set interactiveContainer(oe){bt(oe),u()},get live(){return gt()},set live(oe){gt(oe),u()},get autoplay(){return xe()},set autoplay(oe){xe(oe),u()},get canRewindLive(){return Me()},set canRewindLive(oe){Me(oe),u()},get showAds(){return we()},set showAds(oe){we(oe),u()},get adsSlotId(){return Ze()},set adsSlotId(oe=void 0){Ze(oe),u()},get adsParams(){return vt()},set adsParams(oe=void 0){vt(oe),u()},get adsPreviewParam(){return Ne()},set adsPreviewParam(oe=void 0){Ne(oe),u()},get adsAutoplayParam(){return yt()},set adsAutoplayParam(oe=void 0){yt(oe),u()},get duration(){return he()},set duration(oe=void 0){he(oe),u()},get logoClickable(){return Ft()},set logoClickable(oe){Ft(oe),u()},get logoHidden(){return Qt()},set logoHidden(oe){Qt(oe),u()},get logoTargetUrl(){return ti()},set logoTargetUrl(oe=""){ti(oe),u()},get showNextPrevButtons(){return Ke()},set showNextPrevButtons(oe=!1){Ke(oe),u()},get nextButtonActive(){return ut()},set nextButtonActive(oe=!1){ut(oe),u()},get prevButtonActive(){return $t()},set prevButtonActive(oe=!1){$t(oe),u()},get endScreenVideoTitle(){return Mt()},set endScreenVideoTitle(oe=void 0){Mt(oe),u()},get endScreenVideoThumb(){return Qe()},set endScreenVideoThumb(oe=void 0){Qe(oe),u()},get isOneVideoPlaylist(){return Gt()},set isOneVideoPlaylist(oe=!1){Gt(oe),u()},get supportLink(){return si()},set supportLink(oe){si(oe),u()},get shadowRootContainer(){return ai()},set shadowRootContainer(oe=void 0){ai(oe),u()},get outerContainerRef(){return bi()},set outerContainerRef(oe=void 0){bi(oe),u()},get playerStarted(){return ht()},set playerStarted(oe=!1){ht(oe),u()},get fullScreenTarget(){return _t()},set fullScreenTarget(oe=void 0){_t(oe),u()},get showMiniTimer(){return pt()},set showMiniTimer(oe=!1){pt(oe),u()},get showEndScreen(){return O()},set showEndScreen(oe=!0){O(oe),u()},get showAutoplayNext(){return ei()},set showAutoplayNext(oe){ei(oe),u()},get keyboardControls(){return ui()},set keyboardControls(oe){ui(oe),u()},get seekToInteractive(){return Ai()},set seekToInteractive(oe){Ai(oe),u()},get playPrevChapter(){return pi()},set playPrevChapter(oe){pi(oe),u()},get firstStart(){return Ti()},set firstStart(oe){Ti(oe),u()},$set:L,$on:(oe,qt)=>M(e,oe,qt)});return o(),Mr}xt(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);var na=require("@vkontakte/videoplayer-core/es2015"),D_=require("@vkontakte/videoplayer-shared/es2015");var kx=U('<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),Ex=U("<div><!></div>"),Px={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;
311
+ .ads-container.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1b9vdl1 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1b9vdl1 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1b9vdl1 {transition:none;}.nocursor.svelte-1b9vdl1 {cursor:none;}.ads-container.svelte-1b9vdl1 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-1b9vdl1 {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}`};function Qm(t,e){K(e,!0),G(t,L3);let[i,o]=Fe(),n=()=>C(zo,"$notificationsToShow$",i),a=()=>C(Mo,"$playerPhase",i),s=()=>C(uo,"$isLoaderVisible",i),d=()=>C(Bi,"$adPlaybackState",i),l=()=>C(Wt,"$crashed",i),u=()=>C(_n,"$isInteractiveTime$",i),f=()=>C(H,"$settingsMenuVisible",i),_=()=>C(wi,"$isInteractiveExpectation$",i),p=()=>C(ht,"$controlsVisible",i),$=()=>C(Uo,"$touched",i),y=()=>C(yn,"$graphIsOpened$",i),w=()=>C(Lo,"$isFullscreen",i),S=()=>C(Gn,"$autoplayNextEnabled$",i),I=()=>C(Ht,"$postrollPassed",i),A=()=>C(po,"$isEnded$",i),P=()=>C(Sn,"$cursorInside",i),E=()=>C(mo,"$rotateAlpha",i),T=()=>C(pi,"$playerSize",i),R=()=>C($n,"$fakeIsPlaying$",i),z=()=>C(Xn,"$bottomNoSmooth",i),Z=()=>C(rn,"$interactiveTimeIndicator",i),U=()=>C($t,"$is3DVideo",i),Q=()=>C(si,"$contextMenuVisible$",i),ee=()=>C(oi,"$playbackState$",i),ae=()=>C(bn,"$hotKeyMapData",i),_e=()=>C(Wi,"$scrubbingInProgress",i),re=()=>C(Oi,"$volumeChangingInProgress",i),Pe=()=>C(Zi,"$chromecastConnected$",i),qe=()=>C(Xi,"$controlsTimeoutActive",i),ie=()=>C(Yt,"$settingsMenuOpenedByKeyboard",i),Le=()=>C(Lr,"$contextMenuOpenedByKeyboard$",i),J=()=>C(hr,"$contextMenuButtonRef$",i),D=()=>C(pn,"$contextMenuOpenedByHotKey$",i),Be=()=>C(tr,"$contextMenuLastActiveElem$",i),X=()=>C(Pt,"$isFullscreenOpenedByKeyboard",i),Ge=()=>C(xt,"$isPlaying$",i),Re=()=>C(ct,"$language$",i),ue=()=>C(fi,"$icon3DVideoVisible",i),B=()=>C(Ho,"$chromecastDeviceName$",i),ce=()=>C(Wn,"$currentSubtitle$",i),Ee=()=>C(So,"$currentSubtitleCaptions$",i),Ke=()=>C(Po,"$position$",i),lt=()=>C(Fo,"$realDuration$",i),Ae=()=>C(ui,"$isLive$",i),ye=()=>C(Ki,"$duration$",i),Me=()=>C(sn,"$contextMenuPosition$",i),rt=()=>C(Si,"$showHotKeyMap",i),vt=()=>C(ci,"$debugPanelVisible",i),tt=v(e,"videoContainer",15),Ot=v(e,"adsSlotId",3,void 0),st=v(e,"adsParams",3,void 0),gt=v(e,"adsPreviewParam",3,void 0),qt=v(e,"adsAutoplayParam",3,void 0),Qt=v(e,"duration",3,void 0),Ve=v(e,"logoTargetUrl",3,""),se=v(e,"showNextPrevButtons",3,!1),j=v(e,"nextButtonActive",3,!1),le=v(e,"prevButtonActive",3,!1),ge=v(e,"endScreenVideoTitle",3,void 0),Ce=v(e,"endScreenVideoThumb",3,void 0),Ne=v(e,"isOneVideoPlaylist",3,!1),pt=v(e,"shadowRootContainer",3,void 0),Kt=v(e,"outerContainerRef",3,void 0),Ye=v(e,"playerStarted",3,!1),dt=v(e,"fullScreenTarget",3,void 0),Je=v(e,"showMiniTimer",3,!1),It=v(e,"showEndScreen",3,!0),ei=v(e,"keyboardControls",15),We=e.store.getLogger().createComponentLog("Root component"),ct=e.store.interfaceLanguage$,oi=e.store.state.playbackState$,Bi=e.store.ads.playbackState,Po=e.store.state.positionWithScrubbing$,Ki=e.store.state.duration$,Mo=e.store.playerPhase,Lo=e.store.ui.isFullscreen,Pt=e.store.ui.isFullscreenOpenedByKeyboard,ht=e.store.ui.controlsVisible,H=e.store.ui.settingsMenu.visible$,Yt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Wi=e.store.ui.scrubbingInProgress,Oi=e.store.ui.volumeChangingInProgress,si=e.store.ui.contextMenu.visible$,ci=e.store.ui.debugPanelVisible,uo=e.store.state.isLoaderVisible,po=e.store.state.isEnded$,Zi=e.store.state.chromecastConnected$,Ho=e.store.state.chromecastDeviceName$,Ht=e.store.ads.postrollPassed,ui=e.store.state.isLive$,xt=e.store.state.isPlaying$,Wt=e.store.state.crashed$,fo=e.store.webApi.annotationsApi,Jt=e.store.webApi.pictureInPictureApi,Wn=e.store.state.currentSubtitle$,So=e.store.state.currentSubtitleCaptions$,Fo=e.store.state.duration$,pi=e.store.ui.playerSize,$t=e.store.ui.is3DVideo,fi=e.store.ui.icon3DVideoVisible,mo=e.store.ui.rotateAlpha,_i=e.store.state.isInteractive,_n=e.store.state.isInteractiveTime$,wi=e.store.state.isInteractiveExpectation$,Co=e.store.state.hasInteractiveBranches,Uo=e.store.ui.touched,bn=e.store.ui.modals.hotKeyMap.data,Si=e.store.ui.modals.hotKeyMap.show,Qn=e.store.ui.overlayContainer$,rn=e.store.ui.controls.interactiveTimeIndicator,Vo=e.store.state.showInteractiveTimeIndicator,sn=e.store.ui.contextMenu.position$,Er=e.store.actions.internal.setQuality,cr=e.store.actions.internal.closeSettingsMenu,Gn=e.store.ui.autoplayNextEnabled$,{fakeIsPlaying$:$n,notifications$:an,graphIsOpened$:yn}=co(),vo=te(void 0),et=te(void 0),ln=te(void 0),Yn=te(void 0),jn,xn,dn;bn.set(Oh());let{closeNotification:cn,notificationsToShow$:zo}=an,Qi=m(()=>!!n().slow_video),Gi=()=>cn("slow_video"),Zn=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),wn=te(void 0),Xn=de(!1),ur,Xi=de(!1),Ji=de(),Sn=de(!1),Cn=te(!1),go=te(!1),eo=te(!1),Tn=te(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Ro=m(()=>u()&&!f()&&!(r(Cn)||r(go))&&!(r(eo)&&!_())),Ar=!0,In=m(()=>e.uiConfig.features.thumbTimer&&Je()&&a()==="video"&&!p()&&!l()&&!_i&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),pr=m(()=>a()==="video"&&!y()&&w()),kn=te(!1),En=m(()=>(It()||e.showAutoplayNext&&S())&&!!ge()&&!!Ce()&&(e.showAds&&I()||!e.showAds)&&A()&&!l()&&!r(kn)),Pr=m(()=>P()&&!(p()||r(En))&&!u()),Jn=te(!1),fr=m(()=>tt()&&E()%180?T().height/T().width:1),er=m(()=>R()!==null),{toggle:An}=$n,di=!1,qo=null;Jt==null||Jt.setContext(Bl());let mr=()=>{e.autoplay&&!_i&&e.uiConfig.controls.showOnStartupAtAutoplay&&ft(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:mr});let Mr=()=>{window.clearTimeout(jn),Xi.set(!1)},ot=()=>{window.clearTimeout(xn),Ji.set(null)},ft=xe=>{Mr(),Xi.set(!0),jn=window.setTimeout(()=>Xi.set(!1),xe);let Lt=xe-100;ur=window.setTimeout(()=>{z()&&Xn.set(!1)},Lt>0?Lt:xe)},Ci=(xe,Lt)=>{ot(),Ji.set(Lt),xn=window.setTimeout(()=>Ji.set(null),xe)},to=$t.subscribe(xe=>{fi.set(xe),xe&&(window.clearTimeout(dn),dn=window.setTimeout(()=>fi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),io=()=>St(this,null,function*(){var Lt,ti,ni,_o;let xe=ws();if(xe){let Vi=td(),ri=Do();xe=Vi===ri||Vi===pt()}if(xe){ft(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Jt==null?void 0:Jt.remove()}catch(Vi){We({message:String(Vi)})}}Lo.set(xe),e.store.getAdmanWrapper().setFullscreen(xe),w()?(ti=(Lt=e.store.callbacks)==null?void 0:Lt.onFullscreenEnter)==null||ti.call(Lt):(_o=(ni=e.store.callbacks)==null?void 0:ni.onFullscreenExit)==null||_o.call(ni)}),To=xe=>{let{width:Lt,height:ti}=xe.target;pi.set({width:Lt,height:ti})},No=()=>{let{width:xe,height:Lt}=r(vo).getBoundingClientRect();pi.set({width:xe,height:Lt})};Ft(()=>{var Lt;return qc(io),e.uiConfig.features.annotationsInside&&(fo==null||fo.init(r(vo))),oa(Jt)&&(Jt==null||Jt.assignPlayerContainer(r(vo)),Jt==null||Jt.registryExternalEventHandlers({resize:To,leavepictureinpicture:No})),e.interactiveContainer&&((Lt=tt().parentElement)==null||Lt.insertBefore(e.interactiveContainer,tt().nextSibling)),()=>{window.clearTimeout(jn),window.clearTimeout(ur),window.clearTimeout(xn),window.clearTimeout(dn),to(),Jt==null||Jt.dispose().catch(ti=>{We({message:String(ti)})}),Kc(io)}});let Do=()=>{let xe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Kt()?r(vo):Kt(),Lt=xe.getRootNode(),ti=Lt instanceof ShadowRoot?Lt.host:Lt,ni=dt()instanceof HTMLElement&&dt().contains(ti);return e.uiConfig.allowChangingFullscreenTarget&&dt()&&ni?dt():xe},Io=()=>St(this,null,function*(){ws()?(yield zc(document),We({message:"exit fullscreen"})):(We({message:"request fullscreen"}),yield Uc(Do()))}),Xe=()=>{cr(),si.set(!1)},Mt=xe=>{y()||(xe.preventDefault(),si.set(!0),sn.set({left:xe.clientX,top:xe.clientY}))};function Mi(){Sn.set(!0),_i||ft(e.uiConfig.controls.hideTimeoutCursor)}function oo(){_i||(Xn.set(!0),ft(e.uiConfig.controls.hideTimeoutCursor))}function Ti(){Sn.set(!1),O(go,!1),O(Cn,!1),di=!1,e.store.actions.internal.releaseCamera(),ft(e.uiConfig.controls.hideTimeout)}function Ii(xe){return xe?xe.offsetTop+Ii(xe.offsetParent):0}function Li(xe){return xe?xe.offsetLeft+Li(xe.offsetParent):0}function Pn(xe){if(Z()&&Vo){let Lt=xe.currentTarget,ti=Ii(Lt),ni=Li(Lt),_o=xe.pageX-ni,Vi=xe.pageY-ti,{left:ri,bottom:li,right:bi}=Z(),ji=bi-ri;return _o>=ri-ji&&Vi<=li+ji}}function Yi(xe){if(r(vo)){let Lt=Ii(xe.currentTarget),ti=T().height,ni=xe.pageY-Lt;if(Pn(xe)){O(go,!1);return}ni<40?O(go,!0):ni>ti-40?O(Cn,!0):(O(go,!1),f()||O(Cn,!1))}}function Mn(xe){Yi(xe),r(Ro)||ft(e.uiConfig.controls.hideTimeoutCursor),U()&&di&&qo&&e.store.actions.internal.moveCameraFocusPX(qo.clientX-xe.clientX,qo.clientY-xe.clientY,xe.timeStamp-qo.timeStamp),qo=xe}let Ln=xe=>{xe.preventDefault(),xe.button===0&&(di=!0,e.store.actions.internal.holdCamera()),ft(e.uiConfig.controls.hideTimeoutCursor)},Ko=xe=>{xe.preventDefault(),xe.button===0&&(qo=xe,di=!1,e.store.actions.internal.releaseCamera()),ft(e.uiConfig.controls.hideTimeoutCursor)},Vn=xe=>{Xe(),Uo.set(!0),ft(e.uiConfig.controls.hideTimeout),xe&&Ci(e.uiConfig.controls.hideHotKeyHelpers,xe)},vr=()=>{var xe,Lt;Xe(),(xe=e.store.callbacks)!=null&&xe.onOpenHotKeyMap?(Lt=e.store.callbacks)==null||Lt.onOpenHotKeyMap(ae()):Si.update(ti=>!ti)},gr=()=>{Uo.set(!0)},Lr=e.store.ui.contextMenu.openedByBtnKeyboard$,hr=e.store.ui.contextMenu.btnRef$,un=te(void 0),pn=e.store.ui.contextMenu.openedByHotKey$,tr=e.store.ui.contextMenu.lastActiveElem$;Ze(()=>{Qn.set(r(wn))}),Ze(()=>{O(eo,pe(r(Tn)&&ee()!==Wm.PlaybackState.PLAYING)),r(Tn)||bt(()=>O(Tn,!0))}),Ze(()=>{ht.set((r(eo)||A()||f()||_e()||re()||Pe()||qe())&&!r(Ro)&&(a()==="video"||a()==="ads")&&!l())}),Ze(()=>{!_e()&&r(Jn)&&!u()&&ft(e.uiConfig.controls.hideTimeoutCursor),bt(()=>O(Jn,pe(_e())))}),Ze(()=>{r(Yn),f(),ie(),bt(()=>Xa(r(Yn),f(),ie()))}),Ze(()=>{r(un),Q(),Le(),bt(()=>Xa(r(un),Q(),Le()))}),Ze(()=>{let xe=J();xe&&(Q(),bt(()=>Za(xe,Q(),Lr)))}),Ze(()=>{r(un),Q(),D(),bt(()=>Xa(r(un),Q(),D()))}),Ze(()=>{let xe=Be();xe&&(Q(),bt(()=>zh(xe,Q(),pn)))}),Ze(()=>{var xe;!X()&&w()&&(bt(()=>Pt.set(!1)),(xe=ei())==null||xe.focus())}),Ze(()=>{y()&&Xe()});let Vr=F("video360");var ho=M3();Bt("blur",qs,Xe),ho.__mousemove=Mn;var Rn=h(ho);let _r=m(()=>a()==="ads"),it=m(()=>r(er)?An:void 0);ut(lf(Rn,{toggleFullscreen:Io,hideContextMenu:Xe,showHotKeyHelpers:Vn,showKeyMap:vr,get isAds(){return r(_r)},get fakePlayButtonHandler(){return r(it)},get nextButtonActive(){return j()},get prevButtonActive(){return le()},children:(xe,Lt)=>{var ti=P3(),ni=ve(ti);let _o;ni.__contextmenu=Mt,ni.__mousedown=Ln,ni.__mouseup=Ko,ni.__click=[S3,Q,si,f,H,Xe,A,po,Co,er,An,ei,Ye,e,ft,ee,oi],ni.__dblclick=[w3,Ar,We,Io,ft,e];var Vi=h(ni);let ri;ut(Vi,bi=>tt(bi),()=>tt()),g(ni);var li=M(ni,2);Fl(li,Re,bi=>{var ji=A3(),Ri=ve(ji);let ki=m(()=>a()!=="thumb"||l()||_i&&e.autoplay);Nd(Ri,{get hidden(){return r(ki)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Qr=M(Ri,2);{var Oe=He=>{let Zt=m(()=>{var Wo;return(Wo=e.live)==null?void 0:Wo.startTime});Dd(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Zt)}})};V(Qr,He=>{a()==="LiveWaitingStart"&&He(Oe)})}var jt=M(Qr,2);{var $i=He=>{ha(He,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(jt,He=>{a()==="LiveWaitingRecover"&&He($i)})}var ko=M(jt,2);{var fn=He=>{ha(He,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(ko,He=>{a()==="LiveWaitingRecord"&&He(fn)})}var Gr=M(ko,2);{var Nn=He=>{var Zt=T3();let Wo;var ps=h(Zt);id(ps,{get adsSlotId(){return Ot()},get adsParams(){return st()},get adsPreviewParam(){return gt()},get adsAutoplayParam(){return qt()},get duration(){return Qt()}}),g(Zt),k(Qo=>Wo=oe(Zt,1,"ads-container svelte-1b9vdl1",null,Wo,Qo),[()=>({hidden:a()!=="ads"})]),b(He,Zt)};V(Gr,He=>{e.showAds&&Ye()&&He(Nn)})}var Rr=M(Gr,2);{var hl=He=>{let Zt=m(()=>!It()&&e.showAutoplayNext&&S());rf(He,{get title(){return ge()},get thumb(){return Ce()},get isHide(){return r(Zt)},clickCloseIcon:()=>O(kn,!0)})};V(Rr,He=>{r(En)&&ge()&&Ce()&&He(hl)})}var Dn=M(Rr,2);{var _l=He=>{let Zt=m(()=>!p());bm(He,{get title(){return e.title},get isHidden(){return r(Zt)}})};V(Dn,He=>{r(pr)&&He(_l)})}var ya=M(Dn,2);{var xa=He=>{let Zt=m(()=>a()==="video"&&p());Md(He,{get isShifted(){return r(Zt)}})};V(ya,He=>{U()&&He(xa)})}var Ls=M(ya,2);{var Tt=He=>{var Zt=I3(),Wo=h(Zt);ed(Wo,{"aria-label":Vr}),g(Zt),b(He,Zt)};V(Ls,He=>{ue()&&He(Tt)})}var Et=M(Ls,2);{var Bn=He=>{Vd(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return B()}})};V(Et,He=>{Pe()&&He(Bn)})}var Nr=M(Et,2);{var Vs=He=>{Ld(He,{get shifted(){return p()},get captions(){return Ee()},get position(){return Ke()},get playerSize(){return T()}})};V(Nr,He=>{ce().value!=="off"&&He(Vs)})}var Dr=M(Nr,2);{var Br=He=>{var Zt=k3();Zt.__contextmenu=Mt,Zt.__click=[C3,Q,si,f,H,Xe];var Wo=h(Zt);Rd(Wo,{}),g(Zt),b(He,Zt)};V(Dr,He=>{l()&&He(Br)})}var us=M(Dr,2);{var bl=He=>{let Zt=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Wo=m(()=>a()==="ads"),ps=m(()=>e.canRewindLive&&lt()!==0);Pd(He,{get bottomHidden(){return r(Zt)},get bottomNoSmooth(){return z()},get showControls(){return p()},get isAds(){return r(Wo)},get canRewindLive(){return r(ps)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ve()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return se()},get nextButtonActive(){return j()},get prevButtonActive(){return le()},get isOneVideoPlaylist(){return Ne()},customFullscreenSupported:Ar,toggleFullscreen:Io,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(et)},set playerControlsWrapperRef(Qo){O(et,pe(Qo))},get playerControlsRef(){return r(ln)},set playerControlsRef(Qo){O(ln,pe(Qo))}})};V(us,He=>{Ye()&&He(bl)})}var Jd=M(us,2);{var Au=He=>{var Zt=E3(),Wo=h(Zt);let ps=m(()=>{var Qo;return(Qo=r(ln))==null?void 0:Qo.clientHeight});Fd(Wo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(ps)},returnFocus:()=>{var Qo;return(Qo=ei())==null?void 0:Qo.focus()},get ref(){return r(Yn)},set ref(Qo){O(Yn,pe(Qo))}}),g(Zt),b(He,Zt)};V(Jd,He=>{!Pe()&&a()!=="ads"&&He(Au)})}var Rs=M(Jd,2);let Pu=m(()=>!r(In));nd(Rs,{get isLive(){return Ae()},get isHidden(){return r(Pu)},get isPlaying(){return Ge()},get position(){return Ke()},get duration(){return ye()}});var $l=M(Rs,2);vm($l,{data:Ji});var yl=M($l,2);of(yl,{get supportLink(){return e.supportLink},returnFocus:()=>{var He;return(He=ei())==null?void 0:He.focus()},get visible(){return Q()},get playerContainerRef(){return r(vo)},get controlsContainerRef(){return r(et)},get position(){return Me()},get menuElementRef(){return r(un)},set menuElementRef(He){O(un,pe(He))}});var ec=M(yl,2);{var tc=He=>{Ud(He,{onClose:Gi,onSelectAutoQuality:()=>{Er("auto"),Gi()}})};V(ec,He=>{r(Qi)&&He(tc)})}var wa=M(ec,2);{var ic=He=>{la(He,{})};V(wa,He=>{r(Zn)&&He(ic)})}var oc=M(wa,2);{var nc=He=>{uf(He,{})};V(oc,He=>{rt()&&He(nc)})}var rc=M(oc,2);{var Mu=He=>{ad(He,{})};V(rc,He=>{vt()&&He(Mu)})}var Lu=M(rc,2);ql(Lu,()=>"slot",!1,(He,Zt)=>{Se(He,null,{name:zd})}),b(bi,ji)}),k((bi,ji)=>{_o=oe(ni,1,"video-wrapper svelte-1b9vdl1",null,_o,bi),ri=oe(Vi,1,"video-container svelte-1b9vdl1",null,ri,ji),nt(Vi,`transform: rotate(${E()}deg) scale(${r(fr)})`),De(Vi,"data-is-playing",Ge())},[()=>({hidden:a()!=="video",nocursor:r(Pr)}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),b(xe,ti)},$$slots:{default:!0}}),xe=>ei(xe),()=>ei());var Ut=M(Rn,2);ut(Ut,xe=>O(wn,xe),()=>r(wn)),g(ho),ut(ho,xe=>O(vo,xe),()=>r(vo)),Bt("mouseenter",ho,Mi),Bt("mouseleave",ho,Ti),Bt("click",ho,gr,!0),Bt("focusin",ho,oo,!0),b(t,ho),W(),o()}at(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);var Ms=require("@vkontakte/videoplayer-core/es2015"),G1=require("@vkontakte/videoplayer-shared/es2015");var V3=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),R3=L("<div><!></div>"),N3={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
309
312
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
310
313
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
311
314
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -321,9 +324,9 @@ Try switching the\xA0quality to\xA0Auto.`},Rh=_1;var ws=new Map;ws.set(pl.Interf
321
324
  100% {
322
325
  opacity: 0;
323
326
  }
324
- }.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 tc(t,e){if(new.target)return E($({component:tc},t));P(e,!0),se(t,Px);let i=p(e,"side",7),o=p(e,"seekStep",7,0),n=p(e,"handleSingleFirstClick",7),r=p(e,"handleSecondClick",7),l=pe(!1),d=0,a=0,c=pe(Le(o())),f=_=>{_.stopPropagation(),a+=1,Y(c,o()*(a-1)),a===1?n()(_):(Y(l,!0),r()()),window.clearTimeout(d),d=window.setTimeout(()=>{a=0,Y(l,!1)},300)};ur(()=>{window.clearTimeout(d)});var g=Ex();g.__click=f;var m=w(g);{var h=_=>{var x=kx(),T=Ee(x),V=H(T,2),D=w(V),R=w(D),B=H(R,2),I=H(B,2);y(D);var z=H(D,2),Q=w(z,!0);y(z),y(V),N(F=>{var G,J,ce,ee;rn(T,`semicircle ${(G=i())!=null?G:""} svelte-nhq2ld`),rn(R,`triangle ${(J=i())!=null?J:""} svelte-nhq2ld`),rn(B,`triangle ${(ce=i())!=null?ce:""} svelte-nhq2ld`),rn(I,`triangle ${(ee=i())!=null?ee:""} svelte-nhq2ld`),Pe(Q,F)},[()=>X("doubletap_seek_step",{seconds:s(c).toFixed(0)})]),C(_,x)};q(m,_=>{s(l)&&_(h)})}return y(g),N(()=>{var _;return rn(g,`double-click-area ${(_=i())!=null?_:""} svelte-nhq2ld`)}),C(t,g),A({get side(){return i()},set side(_){i(_),u()},get seekStep(){return o()},set seekStep(_=0){o(_),u()},get handleSingleFirstClick(){return n()},set handleSingleFirstClick(_){n(_),u()},get handleSecondClick(){return r()},set handleSecondClick(_){r(_),u()},$set:L,$on:(_,x)=>M(e,_,x)})}xt(["click"]);var Ax=(t,e,i)=>{e(!1),i()},Mx=U('<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 class="thumb-overlay svelte-1qdxi6t"></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),Lx={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function nf(t,e){if(new.target)return E($({component:nf},t));P(e,!0),se(t,Lx);let[i,o]=tt(),n=()=>k(g,"$autoplayNextEnabled$",i),r=()=>k(m,"$timerNextVideoRunning$",i),l=p(e,"title",7),d=p(e,"thumb",7),a=p(e,"isHide",7),c=p(e,"clickCloseIcon",7),f=Fe(),g=f.ui.autoplayNextEnabled$,m=f.ui.timerNextVideoRunning$,h=f.actions.internal.nextVideoClick,_=f.actions.internal.nextVideoAnnouncementShow,x=f.actions.internal.nextVideoAnnouncementClick,T=f.actions.internal.nextVideoAnnouncementAuto,V=f.actions.internal.nextVideoAnnouncementCancel,D=()=>{h(!1),T()},R=()=>{c()(),V()};Zt(()=>{a()||_(),a()&&n()&&(h(!1),T())});var B=Xe(),I=Ee(B);{var z=F=>{var G=Mx(),J=H(Ee(G),2),ce=w(J),ee=w(ce),Ce=w(ee,!0);y(ee);var Se=H(ee,2);Ks(Se,{onClick:R}),y(ce);var ne=H(ce,2);ne.__click=[Ax,h,x];var ie=w(ne),be=w(ie),j=w(be),re=H(j,2);{var K=Te=>{Tl(Te,{get isRunning(){return r()},onTimerEnded:D})};q(re,Te=>{n()&&Te(K)})}y(be),y(ie);var qe=H(ie,2),Be=w(qe),fe=w(Be,!0);y(Be),y(qe),y(ne),y(J),N(Te=>{Pe(Ce,Te),ve(be,"style",`background-image: url('${d()}')`),ae(j,"withOpacity",n()),Pe(fe,l())},[()=>n()?X("end_screen_next_video"):X("end_screen_recommended_video")]),C(F,G)};q(I,F=>{a()||F(z)})}C(t,B);var Q=A({get title(){return l()},set title(F){l(F),u()},get thumb(){return d()},set thumb(F){d(F),u()},get isHide(){return a()},set isHide(F){a(F),u()},get clickCloseIcon(){return c()},set clickCloseIcon(F){c(F),u()},$set:L,$on:(F,G)=>M(e,F,G)});return o(),Q}xt(["click"]);var L_=require("@vkontakte/videoplayer-core/es2015");var V_=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Zt(()=>{L_.clientChecker.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),ur(()=>{i==null||i(),clearTimeout(o)})};var R_=require("@vkontakte/videoplayer-core/es2015");var rf=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 N_=require("@vkontakte/videoplayer-core/es2015"),B_=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:r,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,c=()=>e().querySelector("video"),f=()=>N_.clientChecker.device.isIOS&&De(l)===R_.VideoFormat.DASH_LIVE_CMAF,g=()=>{a==null||a(),a=null},m=h=>{if(g(),!f()||!h)return;let _=c();if(!_)return;let x=new rf(_),T=De(d),V=De(r),D=De(n);for(let I of T)V.some(Q=>Q.value===I.id)&&x.attach(I,D.value===I.id);let R=d.subscribe(I=>{for(let z of I)x.updateSrc(z)}),B=()=>{let I=x.getCurrentShowingId();o(De(r).find(z=>z.value===I))};_.textTracks.addEventListener("change",B),a=()=>{R(),x.detachAll(),_.textTracks.removeEventListener("change",B)}};Zt(()=>i.subscribe(m)),ur(g)};var Vx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Rx=U("<!> <!>",1),Nx=U('<div class="ads-container svelte-dtyj47"><!></div>'),Bx=U('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),Dx=U("<div><!></div>"),Ox=U('<div class="settings-mobile svelte-dtyj47"><!></div>'),Hx=U("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Fx=U('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><div class="video-wrapper svelte-dtyj47"><div class="video-container svelte-dtyj47" data-testid="video-container"></div></div> <!> <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);}.video-wrapper.svelte-dtyj47,
327
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function vu(t,e){K(e,!0),G(t,N3);let i=v(e,"seekStep",3,0),o=te(!1),n=0,a=0,s=te(pe(i())),d=_=>{_.stopPropagation(),a+=1,O(s,i()*(a-1)),a===1?e.handleSingleFirstClick(_):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,O(o,!1)},300)};sr(()=>{window.clearTimeout(n)});var l=R3();l.__click=d;var u=h(l);{var f=_=>{var p=V3(),$=ve(p),y=M($,2),w=h(y),S=h(w),I=M(S,2),A=M(I,2);g(w);var P=M(w,2),E=h(P,!0);g(P),g(y),k(T=>{var R,z,Z,U;oe($,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),oe(S,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),oe(I,1,`triangle ${(Z=e.side)!=null?Z:""}`,"svelte-nhq2ld"),oe(A,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),fe(E,T)},[()=>F("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b(_,p)};V(u,_=>{r(o)&&_(f)})}g(l),k(()=>{var _;return oe(l,1,`double-click-area ${(_=e.side)!=null?_:""}`,"svelte-nhq2ld")}),b(t,l),W()}at(["click"]);var D3=(t,e,i)=>{e(!1),i()},B3=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),O3={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 Gm(t,e){K(e,!0),G(t,O3);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=Ie(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),p()},w=()=>{e.clickCloseIcon(),$()};Ft(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=ze(),I=ve(S);{var A=P=>{var E=B3(),T=M(ve(E),2),R=h(T),z=h(R),Z=h(z,!0);g(z);var U=M(z,2);aa(U,{onClick:w}),g(R);var Q=M(R,2);Q.__click=[D3,u,_];var ee=h(Q),ae=h(ee),_e=h(ae);let re;var Pe=M(_e,2);{var qe=D=>{ld(D,{get isRunning(){return a()},onTimerEnded:y})};V(Pe,D=>{n()&&D(qe)})}g(ae),g(ee);var ie=M(ee,2),Le=h(ie),J=h(Le,!0);g(Le),g(ie),g(Q),g(T),k((D,Be)=>{fe(Z,D),nt(ae,`background-image: url('${e.thumb}')`),re=oe(_e,1,"thumb-overlay svelte-1qdxi6t",null,re,Be),fe(J,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(P,E)};V(I,P=>{e.isHide||P(A)})}b(t,S),W(),o()}at(["click"]);var z1=require("@vkontakte/videoplayer-core/es2015");var q1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ft(()=>{z1.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))}),sr(()=>{i==null||i(),clearTimeout(o)})};var K1=require("@vkontakte/videoplayer-core/es2015");var gu=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 W1=require("@vkontakte/videoplayer-core/es2015"),Q1=({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=()=>W1.clientChecker.device.isIOS&&we(s)===K1.VideoFormat.DASH_LIVE_CMAF,_=()=>{l==null||l(),l=null},p=$=>{if(_(),!f()||!$)return;let y=u();if(!y)return;let w=new gu(y),S=we(d),I=we(a),A=we(n);for(let T of S)I.some(z=>z.value===T.id)&&w.attach(T,A.value===T.id);let P=d.subscribe(T=>{for(let R of T)w.updateSrc(R)}),E=()=>{let T=w.getCurrentShowingId();o(we(a).find(R=>R.value===T))};y.textTracks.addEventListener("change",E),l=()=>{P(),w.detachAll(),y.textTracks.removeEventListener("change",E)}};Ft(()=>i.subscribe(p)),sr(_)};var H3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},F3=L("<!> <!>",1),U3=L("<div><!></div>"),z3=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),q3=L("<div><!></div>"),K3=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),W3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Q3=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><div><div data-testid="video-container"></div></div> <!> <div class="overlay-container"></div></div>'),G3={hash:"svelte-dtyj47",code:`.player-wrapper.svelte-dtyj47 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-dtyj47 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-dtyj47 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-dtyj47,
325
328
  .video-container.svelte-dtyj47,
326
- .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function sf(t,e){var Eo,Oi;if(new.target)return E($({component:sf},t));P(e,!0),se(t,Ux);let[i,o]=tt(),n=()=>k(Ti,"$playerPhase",i),r=()=>k(nt,"$isLoaderVisible",i),l=()=>k(ui,"$adPlaybackState",i),d=()=>k(io,"$crashed",i),a=()=>k(Yn,"$notificationsToShow$",i),c=()=>k(ei,"$playbackState$",i),f=()=>k(_t,"$graphIsOpened$",i),g=()=>k(di,"$interactiveHideMobileControls",i),m=()=>k(Rt,"$isEnded$",i),h=()=>k(qr,"$isInteractiveExpectation$",i),_=()=>k(vo,"$controlsVisible",i),x=()=>k(ln,"$touched",i),T=()=>k(_r,"$autoplayNextEnabled$",i),V=()=>k(Uo,"$postrollPassed",i),D=()=>k(zn,"$rotateAlpha",i),R=()=>k(Fn,"$playerSize",i),B=()=>k(cn,"$bottomNoSmooth",i),I=()=>k(Hn,"$videoSize",i),z=()=>k(Ii,"$isFullscreen",i),Q=()=>k(Ai,"$position$",i),F=()=>k(pi,"$duration$",i),G=()=>k($r,"$loadedMetadata",i),J=()=>k(To,"$settingsMenuVisible",i),ce=()=>k(vr,"$scrubbingInProgress",i),ee=()=>k(On,"$volumeChangingInProgress",i),Ce=()=>k(go,"$chromecastConnected$",i),Se=()=>k(oo,"$isInteractiveTime$",i),ne=()=>k(Vo,"$isActiveLive",i),ie=()=>k($n,"$settingsMenuOpenedByKeyboard",i),be=()=>k(qi,"$isPlaying$",i),j=()=>k(O,"$language$",i),re=()=>k(gr,"$disabledControls$",i),K=()=>k(Un,"$is3DVideo",i),qe=()=>k(Ro,"$icon3DVideoVisible",i),Be=()=>k(Lo,"$chromecastDeviceName$",i),fe=()=>k(an,"$currentSubtitle$",i),Te=()=>k(_o,"$currentSubtitleCaptions$",i),Ye=()=>k(mi,"$realDuration$",i),Z=()=>k(Mi,"$isLive$",i),ue=()=>k(Fo,"$debugPanelVisible",i),le=p(e,"store",7),He=p(e,"uiConfig",7),et=p(e,"thumbUrl",7),dt=p(e,"videoContainer",15),_e=p(e,"interactiveContainer",7),me=p(e,"live",7),Je=p(e,"autoplay",7),mt=p(e,"canRewindLive",7),ge=p(e,"showAds",7),je=p(e,"adsSlotId",7,void 0),Tt=p(e,"adsParams",7,void 0),te=p(e,"adsPreviewParam",7,void 0),it=p(e,"adsAutoplayParam",7,void 0),bt=p(e,"duration",7,void 0),gt=p(e,"logoClickable",7),xe=p(e,"logoHidden",7),Me=p(e,"logoTargetUrl",7,""),we=p(e,"showNextPrevButtons",7,!1),Ze=p(e,"nextButtonActive",7,!1),vt=p(e,"prevButtonActive",7,!1),Ne=p(e,"endScreenVideoTitle",7,void 0),yt=p(e,"endScreenVideoThumb",7,void 0),he=p(e,"isOneVideoPlaylist",7,!1),Ft=p(e,"supportLink",7),Qt=p(e,"shadowRootContainer",7,void 0),ti=p(e,"outerContainerRef",7,void 0),Ke=p(e,"showMiniTimer",7,!1),ut=p(e,"fullScreenTarget",7,void 0),$t=p(e,"playerStarted",7,!1),Mt=p(e,"showEndScreen",7,!0),Qe=p(e,"showAutoplayNext",7),Gt=p(e,"seekToInteractive",7),si=p(e,"playPrevChapter",7),ai=p(e,"firstStart",7),bi=p(e,"seekTime",7),{notifications$:ht,graphIsOpened$:_t}=mo(),pt=le().getLogger().createComponentLog("Root component"),O=le().interfaceLanguage$,ei=le().state.playbackState$,ui=le().ads.playbackState,Ai=le().state.positionWithScrubbing$,pi=le().state.duration$,Ti=le().playerPhase,Ii=le().ui.isFullscreen,vo=le().ui.controlsVisible,di=le().ui.interactiveHideMobileControls,To=le().ui.settingsMenu.visible$,$n=le().ui.settingsMenu.openedByBtnKeyboard$,vr=le().ui.scrubbingInProgress,On=le().ui.volumeChangingInProgress,Fo=le().ui.debugPanelVisible,nt=le().state.isLoaderVisible,Rt=le().state.isEnded$,go=le().state.chromecastConnected$,Lo=le().state.chromecastDeviceName$,Uo=le().ads.postrollPassed,Wi=le().ui.mobileUnmuteButtonExpanded,Dt=le().ui.mobileUnmuteButtonVisible,Mi=le().state.isLive$,qi=le().state.isPlaying$,Vo=le().state.isActiveLive$,Xt=le().state.isRewindableLive$,io=le().state.crashed$,ho=le().webApi.annotationsApi,fi=le().webApi.pictureInPictureApi,Hn=le().state.videoSize$,an=le().state.currentSubtitle$,_o=le().state.currentSubtitleCaptions$,mi=le().state.duration$,Fn=le().ui.playerSize,Un=le().ui.is3DVideo,Ro=le().ui.icon3DVideoVisible,zn=le().ui.rotateAlpha,zo=le().state.isInteractive,oo=le().state.isInteractiveTime$,qr=le().state.isInteractiveExpectation$,Wo=le().state.hasInteractiveBranches,gr=le().ui.controls.disabledControls$,ln=le().ui.touched,hr=le().ui.overlayContainer$,_r=le().ui.autoplayNextEnabled$,$r=le().state.loadedMetadata$,Wn=le().actions.internal.closeSettingsMenu,Io=(Eo=le().callbacks)==null?void 0:Eo.onDisabledPlayPrevChapterClick,qn=(Oi=le().callbacks)==null?void 0:Oi.onDisabledSeekToInteractiveClick,Kn=le().actions.internal.setQuality,Li=pe(void 0),$o=pe(void 0),bn=pe(void 0),yn=pe(void 0),Qn,Gn,dn,Di=b(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),xn=pe(void 0),{closeNotification:wt,notificationsToShow$:Yn}=ht,br=b(()=>!!a().slow_video),jn=()=>wt("slow_video"),cn=Ie(!1),yr,qo=pe(!1),Kr=b(()=>c()!==na.PlaybackState.PLAYING),Zn=pe(!1),xr=b(()=>f()||g()||!s(qo)&&(m()&&!!Wo||s(Kr)&&h())),wn=pe(!0),Xn=b(()=>He().features.thumbTimer&&Ke()&&n()==="video"&&!_()&&!d()&&!zo&&(He().hideThumbTimerAfterTouch&&!x()||!He().hideThumbTimerAfterTouch)),Jn=pe(!1),ko=b(()=>(Mt()||Qe()&&T())&&!!Ne()&&!!yt()&&(ge()&&V()||!ge())&&m()&&!d()&&!s(Jn)),Ko=pe(!1),ao=b(()=>dt()&&D()%180?R().height/R().width:1);fi==null||fi.setContext(yd());let Qo=$e=>{clearTimeout(Gn),$e&&(Dt.set(!0),Wi.set(!0),Gn=setTimeout(()=>{Wi.set(!1)},He().controls.collapseMobileUnmute),zo||Qi(He().controls.hideTimeoutMobile))};le().setUiCallbacks({onStarted:Qo});let Ki=()=>{clearTimeout(Qn),Y(qo,!1),g()&&di.set(!1)},Qi=$e=>{Ki(),Y(qo,!0),Qn=setTimeout(()=>Y(qo,!1),$e);let Ot=$e-100;yr=setTimeout(()=>{B()&&cn.set(!1)},Ot>0?Ot:$e)},wr=Un.subscribe($e=>{Ro.set($e),$e&&(clearTimeout(dn),dn=setTimeout(()=>Ro.set(!1),He().controls.hide360IconTimeout))}),un=(...Ot)=>Ct(this,[...Ot],function*($e=Us()){var wi,Gi,li,bo,lo,Bo;if($e&&!na.clientChecker.device.isIOS){let Yi=Fd(),fn=Sn(),Yo=na.clientChecker.browser.isSamsungBrowser&&Yi===Qt();$e=Yi===fn||Yo}if($e){Qi(He().controls.hideTimeoutFullscreen);try{yield fi==null?void 0:fi.remove()}catch(Yi){pt({message:String(Yi)})}try{let Yi=(wi=I())!=null&&wi.width&&((Gi=I())!=null&&Gi.height)?I():R();yield Hh(Yi)}catch(Yi){pt({message:String(Yi)})}}Ii.set($e),le().getAdmanWrapper().setFullscreen($e),z()?(bo=(li=le().callbacks)==null?void 0:li.onFullscreenEnter)==null||bo.call(li):(Bo=(lo=le().callbacks)==null?void 0:lo.onFullscreenExit)==null||Bo.call(lo)}),Qr=$e=>{let Ot=$e;Fn.set({width:Ot.target.width,height:Ot.target.height})};Zt(()=>{var $e;return nu(un),He().features.annotationsInside&&(ho==null||ho.init(s(Li))),Ia(fi)&&(fi==null||fi.assignPlayerContainer(s(Li)),fi==null||fi.registryExternalEventHandlers({resize:Qr})),Y(wn,!na.clientChecker.device.isIphoneOrOldIpad),_e()&&(($e=dt().parentElement)==null||$e.insertBefore(_e(),dt().nextSibling)),()=>{clearTimeout(Qn),clearTimeout(yr),clearTimeout(Gn),clearTimeout(dn),wr(),fi==null||fi.dispose().catch(Ot=>{pt({message:String(Ot)})}),ru(un)}});let Cn=pe(!0),Cr=pe(!0),er=$e=>{let Ot=Q()+($e==="forward"?1:-1)*He().controls.seekStepMobile/1e3;Ot<0?(Y(Cn,!1),Ot=0):Ot>=F()&&(Y(Cr,!1),Ot=F()),Y(Zn,!0),bi()(Ot)},Sn=()=>{let $e=na.clientChecker.device.isIOS||He().features.fullscreenInternalTargetPlayerContainer||!ti()?s(Li):ti(),Ot=$e.getRootNode(),wi=Ot instanceof ShadowRoot?Ot.host:Ot,Gi=ut()instanceof HTMLElement&&ut().contains(wi);return He().allowChangingFullscreenTarget&&ut()&&Gi?ut():$e},Gr=()=>Ct(this,null,function*(){try{if(Us())yield ou(document),pt({message:"exit fullscreen"});else{if(pt({message:"request fullscreen"}),na.clientChecker.device.isIOS&&!G())return;yield iu(Sn())}}catch($e){pt({message:String($e)})}}),tr=()=>{Wn()},ir=$e=>{if($e.preventDefault(),J()){tr();return}if(!$t()){ai()(),Qi(He().controls.hideTimeoutCursor);return}Y(Zn,!1),_()?Ki():Qi(He().controls.hideTimeoutMobile)},yi=()=>{ln.set(!0)},Sr=()=>{zo||(cn.set(!0),Qi(He().controls.hideTimeoutCursor))},Tn=$e=>{Io&&(Io($e),Qi(He().controls.hideTimeoutMobile))},Go=$e=>{qn&&(qn($e),Qi(He().controls.hideTimeoutMobile))};lt(()=>{hr.set(s(xn))}),lt(()=>{vo.set((s(Kr)||J()||ce()||ee()||Ce()||!s(ko)&&(m()||s(qo)&&!s(Zn)))&&!s(xr)&&n()==="video"&&!d())}),lt(()=>{!ce()&&s(Ko)&&!Se()&&Qi(He().controls.hideTimeoutMobile),Y(Ko,Le(ce()))}),lt(()=>{Y(Cn,Q()>0),Y(Cr,Le(!ne()&&Q()<F()))}),lt(()=>{ss(s(yn),J(),ie())});let Yr=X("aria_label_video_player"),or=X("video360");V_({fullScreenChangeHandler:un,getFullscreenTarget:Sn}),B_({store:le(),getFullscreenTarget:Sn});var No=Fx();Kt("blur",ga,tr),ve(No,"aria-label",Yr);var ke=w(No);ke.__click=ir;var Ut=w(ke);St(Ut,$e=>dt($e),()=>dt()),y(ke);var Vi=H(ke,2);Ed(Vi,j,$e=>{var Ot=Hx(),wi=Ee(Ot);let Gi=b(()=>n()!=="thumb"||d()||zo&&Je());td(wi,{get hidden(){return s(Gi)},get thumbUrl(){return et()},get startVideo(){return ai()}});var li=H(wi,2);{var bo=rt=>{var ii=Rx(),ki=Ee(ii);{var En=Pn=>{let Zr=b(()=>He().controls.seekStepMobile/1e3);tc(Pn,{side:"left",get seekStep(){return s(Zr)},handleSingleFirstClick:ir,handleSecondClick:()=>er("backward")})};q(ki,Pn=>{s(Cn)&&Pn(En)})}var sr=H(ki,2);{var Ps=Pn=>{let Zr=b(()=>He().controls.seekStepMobile/1e3);tc(Pn,{side:"right",get seekStep(){return s(Zr)},handleSingleFirstClick:ir,handleSecondClick:()=>er("forward")})};q(sr,Pn=>{s(Cr)&&Pn(Ps)})}C(rt,ii)};q(li,rt=>{mt()&&Xt&&!re().has("TIMELINE")&&rt(bo)})}var lo=H(li,2);{var Bo=rt=>{let ii=b(()=>{var ki;return(ki=me())==null?void 0:ki.startTime});id(rt,{get thumbUrl(){return et()},get startTime(){return s(ii)}})};q(lo,rt=>{n()==="LiveWaitingStart"&&rt(Bo)})}var Yi=H(lo,2);{var fn=rt=>{ia(rt,{kind:"recover",get thumbUrl(){return et()}})};q(Yi,rt=>{n()==="LiveWaitingRecover"&&rt(fn)})}var Yo=H(Yi,2);{var In=rt=>{ia(rt,{kind:"record",get thumbUrl(){return et()}})};q(Yo,rt=>{n()==="LiveWaitingRecord"&&rt(In)})}var Tr=H(Yo,2);{var Ir=rt=>{var ii=Nx(),ki=w(ii);gl(ki,{get adsSlotId(){return je()},get adsParams(){return Tt()},get adsPreviewParam(){return te()},get adsAutoplayParam(){return it()},get duration(){return bt()}}),y(ii),N(()=>ae(ii,"hidden",n()!=="ads")),C(rt,ii)};q(Tr,rt=>{ge()&&$t()&&rt(Ir)})}var kr=H(Tr,2);{var us=rt=>{let ii=b(()=>!Mt()&&Qe()&&T());nf(rt,{get title(){return Ne()},get thumb(){return yt()},get isHide(){return s(ii)},clickCloseIcon:()=>Y(Jn,!0)})};q(kr,rt=>{s(ko)&&Ne()&&yt()&&rt(us)})}var mn=H(kr,2);{var Er=rt=>{Zl(rt,{})};q(mn,rt=>{K()&&rt(Er)})}var Po=H(mn,2);{var nr=rt=>{var ii=Bx(),ki=w(ii);ul(ki,{"aria-label":or}),y(ii),C(rt,ii)};q(Po,rt=>{qe()&&rt(nr)})}var Pr=H(Po,2);{var jo=rt=>{Jl(rt,{get thumbUrl(){return et()},get chromecastDeviceName(){return Be()}})};q(Pr,rt=>{Ce()&&rt(jo)})}var ft=H(Pr,2);{var ni=rt=>{Xl(rt,{get shifted(){return _()},get captions(){return Te()},get position(){return Q()},get playerSize(){return R()},isMobile:!0})};q(ft,rt=>{fe().value!=="off"&&rt(ni)})}var Ci=H(ft,2);{var Ar=rt=>{var ii=Dx();ii.__click=[Vx,J,To,tr];var ki=w(ii);ed(ki,{}),y(ii),C(rt,ii)};q(Ci,rt=>{d()&&rt(Ar)})}var kn=H(Ci,2);{var Mr=rt=>{let ii=b(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),ki=b(()=>n()==="ads"),En=b(()=>mt()&&Ye()!==0);jl(rt,{get bottomHidden(){return s(ii)},get showControls(){return _()},get bottomNoSmooth(){return B()},get isAds(){return s(ki)},get canRewindLive(){return s(En)},get logoClickable(){return gt()},get logoHidden(){return xe()},get logoTargetUrl(){return Me()},get showAutoplayNext(){return Qe()},get showNextPrevButtons(){return we()},get nextButtonActive(){return Ze()},get prevButtonActive(){return vt()},get isOneVideoPlaylist(){return he()},get customFullscreenSupported(){return s(wn)},get endScreenShown(){return s(ko)},toggleFullscreen:Gr,get seekToInteractive(){return Gt()},get playPrevChapter(){return si()},onDisabledPlayPrevChapterClick:Tn,onDisabledSeekToInteractiveClick:Go,get playerControlsWrapperRef(){return s($o)},set playerControlsWrapperRef(sr){Y($o,Le(sr))},get playerControlsRef(){return s(bn)},set playerControlsRef(sr){Y(bn,Le(sr))}})};q(kn,rt=>{$t()&&rt(Mr)})}var oe=H(kn,2);{var qt=rt=>{var ii=Ox(),ki=w(ii);rd(ki,{get supportLink(){return Ft()},returnFocus:D_.noop,get ref(){return s(yn)},set ref(En){Y(yn,Le(En))}}),y(ii),C(rt,ii)};q(oe,rt=>{J()&&rt(qt)})}var Jt=H(oe,2);let Lt=b(()=>!s(Xn));_l(Jt,{get isLive(){return Z()},get isHidden(){return s(Lt)},get isPlaying(){return be()},get position(){return Q()},get duration(){return F()}});var Hi=H(Jt,2);{var vi=rt=>{Ys(rt,{})};q(Hi,rt=>{s(Di)&&rt(vi)})}var ji=H(Hi,2);{var jr=rt=>{Sl(rt,{})};q(ji,rt=>{ue()&&rt(jr)})}var rr=H(ji,2);{var Do=rt=>{sd(rt,{onClose:jn,onSelectAutoQuality:()=>{Kn("auto"),jn()}})};q(rr,rt=>{s(br)&&rt(Do)})}var ps=H(rr,2);Ad(ps,()=>"slot",!1,(rt,ii)=>{Oe(rt,null,{name:ec},"svelte-dtyj47",rt.namespaceURI===da,rt.nodeName.includes("-"))}),C($e,Ot)});var xi=H(Vi,2);St(xi,$e=>Y(xn,$e),()=>s(xn)),y(No),St(No,$e=>Y(Li,$e),()=>s(Li)),N(()=>{ae(ke,"hidden",n()!=="video"),ve(Ut,"style",`transform: rotate(${D()}deg) scale(${s(ao)})`),ve(Ut,"data-is-playing",be()),ae(Ut,"fast-rotate",!He().isSmoothVideoRotate)}),Kt("click",No,yi,!0),Kt("focusin",No,Sr,!0),C(t,No);var pn=A({get store(){return le()},set store($e){le($e),u()},get uiConfig(){return He()},set uiConfig($e){He($e),u()},get thumbUrl(){return et()},set thumbUrl($e){et($e),u()},get videoContainer(){return dt()},set videoContainer($e){dt($e),u()},get interactiveContainer(){return _e()},set interactiveContainer($e){_e($e),u()},get live(){return me()},set live($e){me($e),u()},get autoplay(){return Je()},set autoplay($e){Je($e),u()},get canRewindLive(){return mt()},set canRewindLive($e){mt($e),u()},get showAds(){return ge()},set showAds($e){ge($e),u()},get adsSlotId(){return je()},set adsSlotId($e=void 0){je($e),u()},get adsParams(){return Tt()},set adsParams($e=void 0){Tt($e),u()},get adsPreviewParam(){return te()},set adsPreviewParam($e=void 0){te($e),u()},get adsAutoplayParam(){return it()},set adsAutoplayParam($e=void 0){it($e),u()},get duration(){return bt()},set duration($e=void 0){bt($e),u()},get logoClickable(){return gt()},set logoClickable($e){gt($e),u()},get logoHidden(){return xe()},set logoHidden($e){xe($e),u()},get logoTargetUrl(){return Me()},set logoTargetUrl($e=""){Me($e),u()},get showNextPrevButtons(){return we()},set showNextPrevButtons($e=!1){we($e),u()},get nextButtonActive(){return Ze()},set nextButtonActive($e=!1){Ze($e),u()},get prevButtonActive(){return vt()},set prevButtonActive($e=!1){vt($e),u()},get endScreenVideoTitle(){return Ne()},set endScreenVideoTitle($e=void 0){Ne($e),u()},get endScreenVideoThumb(){return yt()},set endScreenVideoThumb($e=void 0){yt($e),u()},get isOneVideoPlaylist(){return he()},set isOneVideoPlaylist($e=!1){he($e),u()},get supportLink(){return Ft()},set supportLink($e){Ft($e),u()},get shadowRootContainer(){return Qt()},set shadowRootContainer($e=void 0){Qt($e),u()},get outerContainerRef(){return ti()},set outerContainerRef($e=void 0){ti($e),u()},get showMiniTimer(){return Ke()},set showMiniTimer($e=!1){Ke($e),u()},get fullScreenTarget(){return ut()},set fullScreenTarget($e=void 0){ut($e),u()},get playerStarted(){return $t()},set playerStarted($e=!1){$t($e),u()},get showEndScreen(){return Mt()},set showEndScreen($e=!0){Mt($e),u()},get showAutoplayNext(){return Qe()},set showAutoplayNext($e){Qe($e),u()},get seekToInteractive(){return Gt()},set seekToInteractive($e){Gt($e),u()},get playPrevChapter(){return si()},set playPrevChapter($e){si($e),u()},get firstStart(){return ai()},set firstStart($e){ai($e),u()},get seekTime(){return bi()},set seekTime($e){bi($e),u()},$set:L,$on:($e,Ot)=>M(e,$e,Ot)});return o(),pn}xt(["click"]);function af(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 zx=U('<div class="root svelte-1cnbt6x"><!></div>'),Wx={hash:"svelte-1cnbt6x",code:`.root.svelte-1cnbt6x {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
329
+ .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function Ym(t,e){var Do,Io;K(e,!0),G(t,G3);let[i,o]=Fe(),n=()=>C(ei,"$playerPhase",i),a=()=>C(Pt,"$isLoaderVisible",i),s=()=>C(dt,"$adPlaybackState",i),d=()=>C(Ho,"$crashed",i),l=()=>C(Yn,"$notificationsToShow$",i),u=()=>C(Ye,"$playbackState$",i),f=()=>C(Ne,"$graphIsOpened$",i),_=()=>C(oi,"$interactiveHideMobileControls",i),p=()=>C(ht,"$isEnded$",i),$=()=>C(mo,"$isInteractiveExpectation$",i),y=()=>C(ct,"$controlsVisible",i),w=()=>C(wi,"$touched",i),S=()=>C(Uo,"$autoplayNextEnabled$",i),I=()=>C(Wi,"$postrollPassed",i),A=()=>C(pi,"$rotateAlpha",i),P=()=>C(Wn,"$playerSize",i),E=()=>C(dn,"$bottomNoSmooth",i),T=()=>C(xt,"$videoSize",i),R=()=>C(We,"$isFullscreen",i),z=()=>C(Je,"$position$",i),Z=()=>C(It,"$duration$",i),U=()=>C(bn,"$loadedMetadata",i),Q=()=>C(Bi,"$settingsMenuVisible",i),ee=()=>C(Ki,"$scrubbingInProgress",i),ae=()=>C(Mo,"$volumeChangingInProgress",i),_e=()=>C(H,"$chromecastConnected$",i),re=()=>C(fi,"$isInteractiveTime$",i),Pe=()=>C(po,"$isActiveLive",i),qe=()=>C(Po,"$settingsMenuOpenedByKeyboard",i),ie=()=>C(uo,"$isPlaying$",i),Le=()=>C(Kt,"$language$",i),J=()=>C(_n,"$disabledControls$",i),D=()=>C(So,"$is3DVideo",i),Be=()=>C(Fo,"$icon3DVideoVisible",i),X=()=>C(Yt,"$chromecastDeviceName$",i),Ge=()=>C(Wt,"$currentSubtitle$",i),Re=()=>C(fo,"$currentSubtitleCaptions$",i),ue=()=>C(Jt,"$realDuration$",i),B=()=>C(ci,"$isLive$",i),ce=()=>C(Lo,"$debugPanelVisible",i),Ee=v(e,"videoContainer",15),Ke=v(e,"adsSlotId",3,void 0),lt=v(e,"adsParams",3,void 0),Ae=v(e,"adsPreviewParam",3,void 0),ye=v(e,"adsAutoplayParam",3,void 0),Me=v(e,"duration",3,void 0),rt=v(e,"logoTargetUrl",3,""),vt=v(e,"showNextPrevButtons",3,!1),tt=v(e,"nextButtonActive",3,!1),Ot=v(e,"prevButtonActive",3,!1),st=v(e,"endScreenVideoTitle",3,void 0),gt=v(e,"endScreenVideoThumb",3,void 0),qt=v(e,"isOneVideoPlaylist",3,!1),Qt=v(e,"shadowRootContainer",3,void 0),Ve=v(e,"outerContainerRef",3,void 0),se=v(e,"showMiniTimer",3,!1),j=v(e,"fullScreenTarget",3,void 0),le=v(e,"playerStarted",3,!1),ge=v(e,"showEndScreen",3,!0),{notifications$:Ce,graphIsOpened$:Ne}=co(),pt=e.store.getLogger().createComponentLog("Root component"),Kt=e.store.interfaceLanguage$,Ye=e.store.state.playbackState$,dt=e.store.ads.playbackState,Je=e.store.state.positionWithScrubbing$,It=e.store.state.duration$,ei=e.store.playerPhase,We=e.store.ui.isFullscreen,ct=e.store.ui.controlsVisible,oi=e.store.ui.interactiveHideMobileControls,Bi=e.store.ui.settingsMenu.visible$,Po=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ki=e.store.ui.scrubbingInProgress,Mo=e.store.ui.volumeChangingInProgress,Lo=e.store.ui.debugPanelVisible,Pt=e.store.state.isLoaderVisible,ht=e.store.state.isEnded$,H=e.store.state.chromecastConnected$,Yt=e.store.state.chromecastDeviceName$,Wi=e.store.ads.postrollPassed,Oi=e.store.ui.mobileUnmuteButtonExpanded,si=e.store.ui.mobileUnmuteButtonVisible,ci=e.store.state.isLive$,uo=e.store.state.isPlaying$,po=e.store.state.isActiveLive$,Zi=e.store.state.isRewindableLive$,Ho=e.store.state.crashed$,Ht=e.store.webApi.annotationsApi,ui=e.store.webApi.pictureInPictureApi,xt=e.store.state.videoSize$,Wt=e.store.state.currentSubtitle$,fo=e.store.state.currentSubtitleCaptions$,Jt=e.store.state.duration$,Wn=e.store.ui.playerSize,So=e.store.ui.is3DVideo,Fo=e.store.ui.icon3DVideoVisible,pi=e.store.ui.rotateAlpha,$t=e.store.state.isInteractive,fi=e.store.state.isInteractiveTime$,mo=e.store.state.isInteractiveExpectation$,_i=e.store.state.hasInteractiveBranches,_n=e.store.ui.controls.disabledControls$,wi=e.store.ui.touched,Co=e.store.ui.overlayContainer$,Uo=e.store.ui.autoplayNextEnabled$,bn=e.store.state.loadedMetadata$,Si=e.store.actions.internal.closeSettingsMenu,Qn=(Do=e.store.callbacks)==null?void 0:Do.onDisabledPlayPrevChapterClick,rn=(Io=e.store.callbacks)==null?void 0:Io.onDisabledSeekToInteractiveClick,Vo=e.store.actions.internal.setQuality,sn=te(void 0),Er=te(void 0),cr=te(void 0),Gn=te(void 0),$n,an,yn,vo=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),et=te(void 0),{closeNotification:ln,notificationsToShow$:Yn}=Ce,jn=m(()=>!!l().slow_video),xn=()=>ln("slow_video"),dn=de(!1),cn,zo=te(!1),Qi=m(()=>u()!==Ms.PlaybackState.PLAYING),Gi=te(!1),Zn=m(()=>f()||_()||!r(zo)&&(p()&&!!_i||r(Qi)&&$())),wn=te(!0),Xn=m(()=>e.uiConfig.features.thumbTimer&&se()&&n()==="video"&&!y()&&!d()&&!$t&&(e.uiConfig.hideThumbTimerAfterTouch&&!w()||!e.uiConfig.hideThumbTimerAfterTouch)),ur=te(!1),Xi=m(()=>(ge()||e.showAutoplayNext&&S())&&!!st()&&!!gt()&&(e.showAds&&I()||!e.showAds)&&p()&&!d()&&!r(ur)),Ji=te(!1),Sn=m(()=>Ee()&&A()%180?P().height/P().width:1);ui==null||ui.setContext(Bl());let Cn=Xe=>{clearTimeout(an),Xe&&(si.set(!0),Oi.set(!0),an=setTimeout(()=>{Oi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),$t||eo(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Cn});let go=()=>{clearTimeout($n),O(zo,!1),_()&&oi.set(!1)},eo=Xe=>{go(),O(zo,!0),$n=setTimeout(()=>O(zo,!1),Xe);let Mt=Xe-100;cn=setTimeout(()=>{E()&&dn.set(!1)},Mt>0?Mt:Xe)},Tn=So.subscribe(Xe=>{Fo.set(Xe),Xe&&(clearTimeout(yn),yn=setTimeout(()=>Fo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ro=(...Mt)=>St(this,[...Mt],function*(Xe=ws()){var Mi,oo,Ti,Ii,Li,Pn;if(Xe&&!Ms.clientChecker.device.isIOS){let Yi=td(),Mn=En(),Ln=Ms.clientChecker.browser.isSamsungBrowser&&Yi===Qt();Xe=Yi===Mn||Ln}if(Xe){eo(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ui==null?void 0:ui.remove()}catch(Yi){pt({message:String(Yi)})}try{let Yi=(Mi=T())!=null&&Mi.width&&((oo=T())!=null&&oo.height)?T():P();yield Bh(Yi)}catch(Yi){pt({message:String(Yi)})}}We.set(Xe),e.store.getAdmanWrapper().setFullscreen(Xe),R()?(Ii=(Ti=e.store.callbacks)==null?void 0:Ti.onFullscreenEnter)==null||Ii.call(Ti):(Pn=(Li=e.store.callbacks)==null?void 0:Li.onFullscreenExit)==null||Pn.call(Li)}),Ar=Xe=>{let Mt=Xe;Wn.set({width:Mt.target.width,height:Mt.target.height})};Ft(()=>{var Xe;return qc(Ro),e.uiConfig.features.annotationsInside&&(Ht==null||Ht.init(r(sn))),oa(ui)&&(ui==null||ui.assignPlayerContainer(r(sn)),ui==null||ui.registryExternalEventHandlers({resize:Ar})),O(wn,!Ms.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((Xe=Ee().parentElement)==null||Xe.insertBefore(e.interactiveContainer,Ee().nextSibling)),()=>{clearTimeout($n),clearTimeout(cn),clearTimeout(an),clearTimeout(yn),Tn(),ui==null||ui.dispose().catch(Mt=>{pt({message:String(Mt)})}),Kc(Ro)}});let In=te(!0),pr=te(!0),kn=Xe=>{let Mt=z()+(Xe==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Mt<0?(O(In,!1),Mt=0):Mt>=Z()&&(O(pr,!1),Mt=Z()),O(Gi,!0),e.seekTime(Mt)},En=()=>{let Xe=Ms.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ve()?r(sn):Ve(),Mt=Xe.getRootNode(),Mi=Mt instanceof ShadowRoot?Mt.host:Mt,oo=j()instanceof HTMLElement&&j().contains(Mi);return e.uiConfig.allowChangingFullscreenTarget&&j()&&oo?j():Xe},Pr=()=>St(this,null,function*(){try{if(ws())yield zc(document),pt({message:"exit fullscreen"});else{if(pt({message:"request fullscreen"}),Ms.clientChecker.device.isIOS&&!U())return;yield Uc(En())}}catch(Xe){pt({message:String(Xe)})}}),Jn=()=>{Si()},fr=Xe=>{if(Xe.preventDefault(),Q()){Jn();return}if(!le()){e.firstStart(),eo(e.uiConfig.controls.hideTimeoutCursor);return}O(Gi,!1),y()?go():eo(e.uiConfig.controls.hideTimeoutMobile)},er=()=>{wi.set(!0)},An=()=>{$t||(dn.set(!0),eo(e.uiConfig.controls.hideTimeoutCursor))},di=Xe=>{Qn&&(Qn(Xe),eo(e.uiConfig.controls.hideTimeoutMobile))},qo=Xe=>{rn&&(rn(Xe),eo(e.uiConfig.controls.hideTimeoutMobile))};Ze(()=>{Co.set(r(et))}),Ze(()=>{ct.set((r(Qi)||Q()||ee()||ae()||_e()||!r(Xi)&&(p()||r(zo)&&!r(Gi)))&&!r(Zn)&&n()==="video"&&!d())}),Ze(()=>{!ee()&&r(Ji)&&!re()&&eo(e.uiConfig.controls.hideTimeoutMobile),O(Ji,pe(ee()))}),Ze(()=>{O(In,z()>0),O(pr,pe(!Pe()&&z()<Z()))}),Ze(()=>{Xa(r(Gn),Q(),qe())});let mr=F("aria_label_video_player"),Mr=F("video360");q1({fullScreenChangeHandler:Ro,getFullscreenTarget:En}),Q1({store:e.store,getFullscreenTarget:En});var ot=Q3();Bt("blur",qs,Jn),De(ot,"aria-label",mr);var ft=h(ot);let Ci;ft.__click=fr;var to=h(ft);let io;ut(to,Xe=>Ee(Xe),()=>Ee()),g(ft);var To=M(ft,2);Fl(To,Le,Xe=>{var Mt=W3(),Mi=ve(Mt);let oo=m(()=>n()!=="thumb"||d()||$t&&e.autoplay);Nd(Mi,{get hidden(){return r(oo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ti=M(Mi,2);{var Ii=Oe=>{var jt=F3(),$i=ve(jt);{var ko=Nn=>{let Rr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);vu(Nn,{side:"left",get seekStep(){return r(Rr)},handleSingleFirstClick:fr,handleSecondClick:()=>kn("backward")})};V($i,Nn=>{r(In)&&Nn(ko)})}var fn=M($i,2);{var Gr=Nn=>{let Rr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);vu(Nn,{side:"right",get seekStep(){return r(Rr)},handleSingleFirstClick:fr,handleSecondClick:()=>kn("forward")})};V(fn,Nn=>{r(pr)&&Nn(Gr)})}b(Oe,jt)};V(Ti,Oe=>{e.canRewindLive&&Zi&&!J().has("TIMELINE")&&Oe(Ii)})}var Li=M(Ti,2);{var Pn=Oe=>{let jt=m(()=>{var $i;return($i=e.live)==null?void 0:$i.startTime});Dd(Oe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(jt)}})};V(Li,Oe=>{n()==="LiveWaitingStart"&&Oe(Pn)})}var Yi=M(Li,2);{var Mn=Oe=>{ha(Oe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Yi,Oe=>{n()==="LiveWaitingRecover"&&Oe(Mn)})}var Ln=M(Yi,2);{var Ko=Oe=>{ha(Oe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Ln,Oe=>{n()==="LiveWaitingRecord"&&Oe(Ko)})}var Vn=M(Ln,2);{var vr=Oe=>{var jt=U3();let $i;var ko=h(jt);id(ko,{get adsSlotId(){return Ke()},get adsParams(){return lt()},get adsPreviewParam(){return Ae()},get adsAutoplayParam(){return ye()},get duration(){return Me()}}),g(jt),k(fn=>$i=oe(jt,1,"ads-container svelte-dtyj47",null,$i,fn),[()=>({hidden:n()!=="ads"})]),b(Oe,jt)};V(Vn,Oe=>{e.showAds&&le()&&Oe(vr)})}var gr=M(Vn,2);{var Lr=Oe=>{let jt=m(()=>!ge()&&e.showAutoplayNext&&S());Gm(Oe,{get title(){return st()},get thumb(){return gt()},get isHide(){return r(jt)},clickCloseIcon:()=>O(ur,!0)})};V(gr,Oe=>{r(Xi)&&st()&&gt()&&Oe(Lr)})}var hr=M(gr,2);{var un=Oe=>{Md(Oe,{})};V(hr,Oe=>{D()&&Oe(un)})}var pn=M(hr,2);{var tr=Oe=>{var jt=z3(),$i=h(jt);ed($i,{"aria-label":Mr}),g(jt),b(Oe,jt)};V(pn,Oe=>{Be()&&Oe(tr)})}var Vr=M(pn,2);{var ho=Oe=>{Vd(Oe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return X()}})};V(Vr,Oe=>{_e()&&Oe(ho)})}var Rn=M(Vr,2);{var _r=Oe=>{Ld(Oe,{get shifted(){return y()},get captions(){return Re()},get position(){return z()},get playerSize(){return P()},isMobile:!0})};V(Rn,Oe=>{Ge().value!=="off"&&Oe(_r)})}var it=M(Rn,2);{var Ut=Oe=>{var jt=q3();jt.__click=[H3,Q,Bi,Jn];var $i=h(jt);Rd($i,{}),g(jt),b(Oe,jt)};V(it,Oe=>{d()&&Oe(Ut)})}var xe=M(it,2);{var Lt=Oe=>{let jt=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),$i=m(()=>n()==="ads"),ko=m(()=>e.canRewindLive&&ue()!==0);Pd(Oe,{get bottomHidden(){return r(jt)},get showControls(){return y()},get bottomNoSmooth(){return E()},get isAds(){return r($i)},get canRewindLive(){return r(ko)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return rt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return vt()},get nextButtonActive(){return tt()},get prevButtonActive(){return Ot()},get isOneVideoPlaylist(){return qt()},get customFullscreenSupported(){return r(wn)},get endScreenShown(){return r(Xi)},toggleFullscreen:Pr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:di,onDisabledSeekToInteractiveClick:qo,get playerControlsWrapperRef(){return r(Er)},set playerControlsWrapperRef(fn){O(Er,pe(fn))},get playerControlsRef(){return r(cr)},set playerControlsRef(fn){O(cr,pe(fn))}})};V(xe,Oe=>{le()&&Oe(Lt)})}var ti=M(xe,2);{var ni=Oe=>{var jt=K3(),$i=h(jt);Fd($i,{get supportLink(){return e.supportLink},returnFocus:G1.noop,get ref(){return r(Gn)},set ref(ko){O(Gn,pe(ko))}}),g(jt),b(Oe,jt)};V(ti,Oe=>{Q()&&Oe(ni)})}var _o=M(ti,2);let Vi=m(()=>!r(Xn));nd(_o,{get isLive(){return B()},get isHidden(){return r(Vi)},get isPlaying(){return ie()},get position(){return z()},get duration(){return Z()}});var ri=M(_o,2);{var li=Oe=>{la(Oe,{})};V(ri,Oe=>{r(vo)&&Oe(li)})}var bi=M(ri,2);{var ji=Oe=>{ad(Oe,{})};V(bi,Oe=>{ce()&&Oe(ji)})}var Ri=M(bi,2);{var ki=Oe=>{Ud(Oe,{onClose:xn,onSelectAutoQuality:()=>{Vo("auto"),xn()}})};V(Ri,Oe=>{r(jn)&&Oe(ki)})}var Qr=M(Ri,2);ql(Qr,()=>"slot",!1,(Oe,jt)=>{Se(Oe,null,{name:zd})}),b(Xe,Mt)});var No=M(To,2);ut(No,Xe=>O(et,Xe),()=>r(et)),g(ot),ut(ot,Xe=>O(sn,Xe),()=>r(sn)),k((Xe,Mt)=>{Ci=oe(ft,1,"video-wrapper svelte-dtyj47",null,Ci,Xe),io=oe(to,1,"video-container svelte-dtyj47",null,io,Mt),nt(to,`transform: rotate(${A()}deg) scale(${r(Sn)})`),De(to,"data-is-playing",ie())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),Bt("click",ot,er,!0),Bt("focusin",ot,An,!0),b(t,ot),W(),o()}at(["click"]);function hu(t){let e="";return Kn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Kn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Kn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Kn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Kn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Kn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Kn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Kn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Kn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Kn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Kn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Kn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Kn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Kn(t){return typeof t=="string"&&!t.includes(";")}var Y3=L('<div class="root svelte-1cnbt6x"><!></div>'),j3={hash:"svelte-1cnbt6x",code:`.root.svelte-1cnbt6x {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
327
330
 
328
331
  /* USER DEFINED COLORS */
329
332
 
@@ -357,5 +360,5 @@ Try switching the\xA0quality to\xA0Auto.`},Rh=_1;var ws=new Map;ws.set(pl.Interf
357
360
  /* --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);}
358
361
  /* 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);}
359
362
 
360
- /* \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 lf(t,e){if(new.target)return E($({component:lf},t));P(e,!0),se(t,Wx);let[i,o]=tt(),n=()=>k(it,"$isLive$",i),r=p(e,"sources",7),l=p(e,"store",7),d=p(e,"microStoresRoot",7),a=p(e,"videoConfig",7),c=p(e,"uiConfig",7),f=p(e,"title",7),g=p(e,"thumbUrl",7),m=p(e,"interactiveContainer",7),h=p(e,"interactiveController",7),_=p(e,"subtitles",7),x=p(e,"live",7),T=p(e,"preload",7),V=p(e,"autoplay",7),D=p(e,"volume",7,void 0),R=p(e,"muted",7,void 0),B=p(e,"fromTime",7),I=p(e,"canRewindLive",7),z=p(e,"showAds",7),Q=p(e,"adsSlotId",7,void 0),F=p(e,"adsParams",7,void 0),G=p(e,"adsPreviewParam",7,void 0),J=p(e,"adsAutoplayParam",7,void 0),ce=p(e,"duration",7,void 0),ee=p(e,"logoClickable",7),Ce=p(e,"logoHidden",7),Se=p(e,"isMobile",7),ne=p(e,"showNextPrevButtons",7,!1),ie=p(e,"nextButtonActive",7,!1),be=p(e,"prevButtonActive",7,!1),j=p(e,"endScreenVideoTitle",7,void 0),re=p(e,"endScreenVideoThumb",7,void 0),K=p(e,"isOneVideoPlaylist",7,!1),qe=p(e,"supportLink",7),Be=p(e,"shadowRootContainer",7,void 0),fe=p(e,"outerContainerRef",7,void 0),Te=p(e,"fullScreenTarget",7,void 0),Ye=p(e,"failoverHosts",7,void 0),Z=p(e,"showMiniTimer",7,!1),ue=p(e,"saveRate",7),le=p(e,"seekToInteractive",7,Es.noop),He=p(e,"playPrevChapter",7,Es.noop),et=p(e,"volumeMultiplier",7),dt=p(e,"showAutoplayNext",7),_e=p(e,"showEndScreen",7,!0),me=p(e,"keyboardControls",15,void 0),{subscribers:Je,stores:mt}=d();th(c());let ge=oi(),je=c().logoLink,Tt=l().ui.debugPanelVisible,te=l().ui.playerSize,it=l().state.isLive$,gt=l().state.isInteractive&&O_.clientChecker.device.isAndroid,xe=pe(void 0),Me=null,we=pe(!1);l().getAdmanWrapper().init({switchFromAdsToVideo:l().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l().actions.internal.switchFromVideoToAds,setMuted:l().actions.external.setMuted},l().ads,{isMobile:l().ui.isMobile,mobileUnmuteButtonVisible:l().ui.mobileUnmuteButtonVisible,vsid:l().vsid}),ph(l(),mt),lt(()=>{l().ui.isMobile.set(Se())});let Ze=(O=!1)=>{Y(we,!0),O?l().actions.external.firstStart(z()):l().actions.internal.firstStart(z())},vt=()=>{if(ge.features.qualityDetailsSubMenuEnabled){let O=Mh(l().videoId);if(O)switch(O.type){case"high_quality":l().actions.internal.setHighQualityEnabled(!0,O.appliesTo);break;case"traffic_saving":l().actions.internal.setTrafficSavingEnabled(!0,O.appliesTo);break;case"exact_quality":l().actions.internal.setQuality(O.quality);break}}else{Lh(l().videoId),Em()&&l().actions.internal.setTrafficSavingEnabled(!0);let ei=Sm(l().videoId);ei&&l().actions.internal.setQuality(ei)}};function Ne(O){var Ti,Ii,vo;let ei=r()||O;ei&&l().initVideo({container:s(xe),sources:ei,failoverHosts:Ye(),subtitles:_(),volumeMultiplier:et()});let ui=Es.safeStorage.get(Rd)==="true";Tt.set(ui),B()>0&&l().actions.external.seekTime(B());let Ai=Se()?ge.volumeDefault:(Ii=(Ti=D())!=null?Ti:Yc())!=null?Ii:ge.volumeDefault,pi=(vo=R())!=null?vo:Th();if(l().actions.external.setVolume(Ai),l().actions.external.setMuted(pi),l().getAdmanWrapper().setInitialVolume(pi?0:Ai),vt(),ge.features.saveRate&&ue()){let di=Eh();di&&!n()&&l().actions.internal.setPlaybackRate(di)}if(dt()){let di=Ah();di&&l().actions.internal.setAutoplayNextEnabled(di)}l().ui.isAutoplay.set(V()),V()?Ze():T()&&ge.features.preload&&l().actions.internal.preload()}let yt=O=>{if(window.ResizeObserver){let ei,ui;Me=new ResizeObserver((0,Es.throttleFn)(Ai=>{let pi=Ai[0];if(pi.contentBoxSize){let Ti=Array.isArray(pi.contentBoxSize)?pi.contentBoxSize[0]:pi.contentBoxSize;ei=Ti.inlineSize,ui=Ti.blockSize}else pi.contentRect&&(ei=pi.contentRect.width,ui=pi.contentRect.height);te.set({width:ei,height:ui})},300)),Me.observe(O)}te.set({width:O.clientWidth,height:O.clientHeight})},he=()=>{document.hidden&&l().actions.external.stop()};Zt(()=>{var ui,Ai,pi,Ti;gt&&document.addEventListener("visibilitychange",he),ge.debugLog&&l().actions.internal.startLogging(),yt(s(xe));let O=Je.map(Ii=>Ii.init({store:l(),microStores:mt,config:a(),interactiveController:h(),uiConfig:c()})),ei=()=>{gt&&document.removeEventListener("visibilitychange",he),Me==null||Me.disconnect(),O.forEach(Ii=>Ii.unsubscribe()),l().destroy()};return((ui=x())==null?void 0:ui.status)==="upcoming"?(l().actions.internal.setLiveWaitingStart(!0),ei):((Ai=x())==null?void 0:Ai.status)==="waiting"?(l().actions.internal.setLiveWaitingRecover(!0),ei):(((pi=x())==null?void 0:pi.status)==="finished"||((Ti=x())==null?void 0:Ti.status)==="postlive")&&!Object.keys(r()||[]).length?(l().actions.internal.setLiveWaitingRecord(!0),ei):(Ne(),ei)});function Ft(){s(we)?l().actions.external.play():Ze(!0)}function Qt(){l().actions.external.pause()}function ti(O){l().actions.external.setMuted(O)}function Ke(O){Se()||O>=0&&O<=1&&l().actions.external.setVolume(O)}function ut(O){l().actions.internal.seekTime(O,H_.SeekAction.UNKNOWN)}function $t(O){l().actions.external.seekEpisodeStartTime(O)}function Mt(){l().actions.external.returnFocusToEpisodes()}function Qe(O){l().actions.external.setPlaybackRate(O)}function Gt(O){l().actions.external.setAutoQualityLimits(O)}let si=af(ge.view);var ai=zx();ve(ai,"style",si);var bi=w(ai);{var ht=O=>{sf(O,{get store(){return l()},uiConfig:ge,get thumbUrl(){return g()},get interactiveContainer(){return m()},get live(){return x()},get autoplay(){return V()},get canRewindLive(){return I()},get showAds(){return z()},get adsSlotId(){return Q()},get adsParams(){return F()},get adsPreviewParam(){return G()},get adsAutoplayParam(){return J()},get duration(){return ce()},get logoClickable(){return ee()},get logoHidden(){return Ce()},logoTargetUrl:je,get nextButtonActive(){return ie()},get prevButtonActive(){return be()},get endScreenVideoTitle(){return j()},get endScreenVideoThumb(){return re()},get isOneVideoPlaylist(){return K()},get supportLink(){return qe()},get shadowRootContainer(){return Be()},get outerContainerRef(){return fe()},get fullScreenTarget(){return Te()},get showMiniTimer(){return Z()},get playerStarted(){return s(we)},get seekToInteractive(){return le()},get playPrevChapter(){return He()},firstStart:Ze,seekTime:ut,get showEndScreen(){return _e()},get showAutoplayNext(){return dt()},get showNextPrevButtons(){return ne()},get videoContainer(){return s(xe)},set videoContainer(ei){Y(xe,Le(ei))}})},_t=O=>{of(O,{get store(){return l()},uiConfig:ge,get title(){return f()},get thumbUrl(){return g()},get interactiveContainer(){return m()},get live(){return x()},get autoplay(){return V()},get canRewindLive(){return I()},get showAds(){return z()},get adsSlotId(){return Q()},get adsParams(){return F()},get adsPreviewParam(){return G()},get adsAutoplayParam(){return J()},get duration(){return ce()},get logoClickable(){return ee()},get logoHidden(){return Ce()},logoTargetUrl:je,get nextButtonActive(){return ie()},get prevButtonActive(){return be()},get endScreenVideoTitle(){return j()},get endScreenVideoThumb(){return re()},get isOneVideoPlaylist(){return K()},get supportLink(){return qe()},get shadowRootContainer(){return Be()},get outerContainerRef(){return fe()},get fullScreenTarget(){return Te()},get showMiniTimer(){return Z()},get playerStarted(){return s(we)},get seekToInteractive(){return le()},get playPrevChapter(){return He()},firstStart:Ze,get showEndScreen(){return _e()},get showAutoplayNext(){return dt()},get showNextPrevButtons(){return ne()},get videoContainer(){return s(xe)},set videoContainer(ei){Y(xe,Le(ei))},get keyboardControls(){return me()},set keyboardControls(ei){me(ei)}})};q(bi,O=>{Se()?O(ht):O(_t,!1)})}y(ai),C(t,ai);var pt=A({initVideo:Ne,play:Ft,pause:Qt,setMuted:ti,setVolume:Ke,seekTime:ut,seekEpisodeStartTime:$t,returnFocusToEpisodes:Mt,setPlaybackRate:Qe,setAutoQualityLimits:Gt,get sources(){return r()},set sources(O){r(O)},get store(){return l()},set store(O){l(O)},get microStoresRoot(){return d()},set microStoresRoot(O){d(O)},get videoConfig(){return a()},set videoConfig(O){a(O)},get uiConfig(){return c()},set uiConfig(O){c(O)},get title(){return f()},set title(O){f(O)},get thumbUrl(){return g()},set thumbUrl(O){g(O)},get interactiveContainer(){return m()},set interactiveContainer(O){m(O)},get interactiveController(){return h()},set interactiveController(O){h(O)},get subtitles(){return _()},set subtitles(O){_(O)},get live(){return x()},set live(O){x(O)},get preload(){return T()},set preload(O){T(O)},get autoplay(){return V()},set autoplay(O){V(O)},get volume(){return D()},set volume(O){D(O)},get muted(){return R()},set muted(O){R(O)},get fromTime(){return B()},set fromTime(O){B(O)},get canRewindLive(){return I()},set canRewindLive(O){I(O)},get showAds(){return z()},set showAds(O){z(O)},get adsSlotId(){return Q()},set adsSlotId(O){Q(O)},get adsParams(){return F()},set adsParams(O){F(O)},get adsPreviewParam(){return G()},set adsPreviewParam(O){G(O)},get adsAutoplayParam(){return J()},set adsAutoplayParam(O){J(O)},get duration(){return ce()},set duration(O){ce(O)},get logoClickable(){return ee()},set logoClickable(O){ee(O)},get logoHidden(){return Ce()},set logoHidden(O){Ce(O)},get isMobile(){return Se()},set isMobile(O){Se(O)},get showNextPrevButtons(){return ne()},set showNextPrevButtons(O){ne(O)},get nextButtonActive(){return ie()},set nextButtonActive(O){ie(O)},get prevButtonActive(){return be()},set prevButtonActive(O){be(O)},get endScreenVideoTitle(){return j()},set endScreenVideoTitle(O){j(O)},get endScreenVideoThumb(){return re()},set endScreenVideoThumb(O){re(O)},get isOneVideoPlaylist(){return K()},set isOneVideoPlaylist(O){K(O)},get supportLink(){return qe()},set supportLink(O){qe(O)},get shadowRootContainer(){return Be()},set shadowRootContainer(O){Be(O)},get outerContainerRef(){return fe()},set outerContainerRef(O){fe(O)},get fullScreenTarget(){return Te()},set fullScreenTarget(O){Te(O)},get failoverHosts(){return Ye()},set failoverHosts(O){Ye(O)},get showMiniTimer(){return Z()},set showMiniTimer(O){Z(O)},get saveRate(){return ue()},set saveRate(O){ue(O)},get showAutoplayNext(){return dt()},set showAutoplayNext(O){dt(O)},get seekToInteractive(){return le()},set seekToInteractive(O){le(O)},get playPrevChapter(){return He()},set playPrevChapter(O){He(O)},get volumeMultiplier(){return et()},set volumeMultiplier(O){et(O)},get showEndScreen(){return _e()},set showEndScreen(O){_e(O)},get keyboardControls(){return me()},set keyboardControls(O){me(O)},get sources(){return r()},set sources(O){r(O),u()},get store(){return l()},set store(O){l(O),u()},get microStoresRoot(){return d()},set microStoresRoot(O){d(O),u()},get videoConfig(){return a()},set videoConfig(O){a(O),u()},get uiConfig(){return c()},set uiConfig(O){c(O),u()},get title(){return f()},set title(O){f(O),u()},get thumbUrl(){return g()},set thumbUrl(O){g(O),u()},get interactiveContainer(){return m()},set interactiveContainer(O){m(O),u()},get interactiveController(){return h()},set interactiveController(O){h(O),u()},get subtitles(){return _()},set subtitles(O){_(O),u()},get live(){return x()},set live(O){x(O),u()},get preload(){return T()},set preload(O){T(O),u()},get autoplay(){return V()},set autoplay(O){V(O),u()},get volume(){return D()},set volume(O=void 0){D(O),u()},get muted(){return R()},set muted(O=void 0){R(O),u()},get fromTime(){return B()},set fromTime(O){B(O),u()},get canRewindLive(){return I()},set canRewindLive(O){I(O),u()},get showAds(){return z()},set showAds(O){z(O),u()},get adsSlotId(){return Q()},set adsSlotId(O=void 0){Q(O),u()},get adsParams(){return F()},set adsParams(O=void 0){F(O),u()},get adsPreviewParam(){return G()},set adsPreviewParam(O=void 0){G(O),u()},get adsAutoplayParam(){return J()},set adsAutoplayParam(O=void 0){J(O),u()},get duration(){return ce()},set duration(O=void 0){ce(O),u()},get logoClickable(){return ee()},set logoClickable(O){ee(O),u()},get logoHidden(){return Ce()},set logoHidden(O){Ce(O),u()},get isMobile(){return Se()},set isMobile(O){Se(O),u()},get showNextPrevButtons(){return ne()},set showNextPrevButtons(O=!1){ne(O),u()},get nextButtonActive(){return ie()},set nextButtonActive(O=!1){ie(O),u()},get prevButtonActive(){return be()},set prevButtonActive(O=!1){be(O),u()},get endScreenVideoTitle(){return j()},set endScreenVideoTitle(O=void 0){j(O),u()},get endScreenVideoThumb(){return re()},set endScreenVideoThumb(O=void 0){re(O),u()},get isOneVideoPlaylist(){return K()},set isOneVideoPlaylist(O=!1){K(O),u()},get supportLink(){return qe()},set supportLink(O){qe(O),u()},get shadowRootContainer(){return Be()},set shadowRootContainer(O=void 0){Be(O),u()},get outerContainerRef(){return fe()},set outerContainerRef(O=void 0){fe(O),u()},get fullScreenTarget(){return Te()},set fullScreenTarget(O=void 0){Te(O),u()},get failoverHosts(){return Ye()},set failoverHosts(O=void 0){Ye(O),u()},get showMiniTimer(){return Z()},set showMiniTimer(O=!1){Z(O),u()},get saveRate(){return ue()},set saveRate(O){ue(O),u()},get seekToInteractive(){return le()},set seekToInteractive(O=Es.noop){le(O),u()},get playPrevChapter(){return He()},set playPrevChapter(O=Es.noop){He(O),u()},get volumeMultiplier(){return et()},set volumeMultiplier(O){et(O),u()},get showAutoplayNext(){return dt()},set showAutoplayNext(O){dt(O),u()},get showEndScreen(){return _e()},set showEndScreen(O=!0){_e(O),u()},get keyboardControls(){return me()},set keyboardControls(O=void 0){me(O),u()},$set:L,$on:(O,ei)=>M(e,O,ei)});return o(),pt}var qx=Re('<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 df(t,e){if(new.target)return E($({component:df},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=qx();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}function cf(t,e){if(new.target)return E($({component:cf},t));P(e,!0);let i=p(e,"isWhite",7,!1),o=b(()=>i()?"color: #fff;":"color: #909499;");return df(t,{get style(){return s(o)}}),A({get isWhite(){return i()},set isWhite(n=!1){i(n),u()},$set:L,$on:(n,r)=>M(e,n,r)})}var Kx=U('<div class="title svelte-1y9fytq"> </div>'),Qx=U('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Gx={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 uf(t,e){if(new.target)return E($({component:uf},t));P(e,!0),se(t,Gx);let i=p(e,"title",7),o=p(e,"thumbUrl",7);var n=Qx(),r=w(n);{var l=c=>{var f=Kx(),g=w(f,!0);y(f),N(()=>Pe(g,i())),C(c,f)};q(r,c=>{i()&&c(l)})}var d=H(r,2);{var a=c=>{let f=b(()=>!!o());cf(c,{get isWhite(){return s(f)}})};q(d,c=>{(!i()||!o())&&c(a)})}return y(n),N(()=>ve(n,"style",o()?`background-image: url('${o()}')`:"")),C(t,n),A({get title(){return i()},set title(c){i(c),u()},get thumbUrl(){return o()},set thumbUrl(c){o(c),u()},$set:L,$on:(c,f)=>M(e,c,f)})}var G_=require("@vkontakte/videoplayer-shared/es2015"),to=require("@vkontakte/videoplayer-shared/es2015"),cc=require("@vkontakte/videoplayer-core/es2015"),Y_=require("@vkontakte/videoplayer-statistics/es2015");var ff=require("@vkontakte/videoplayer-shared/es2015"),pf=class{constructor(){this.subscription=new ff.Subscription,this.logger=new ff.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",i=>null],["seekbackward",i=>null],["seekforward",i=>null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(i=>{var r,l;let o=De(e.state.currentPlaybackRate$),n=De(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(r=navigator.mediaSession).setPositionState)==null||l.call(r,{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 ad=require("@vkontakte/videoplayer-shared/es2015");var Yx=Re('<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 mf(t,e){if(new.target)return E($({component:mf},t));let i=ze(e,["children","$$slots","$$events","$$legacy"]);P(e,!1);var o=Yx();let n;var r=w(o);return Ue(r,e,"default",{},null),Ve(),y(o),N(()=>n=Oe(o,n,$({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i),void 0,!0)),C(t,o),A({$set:L,$on:(l,d)=>M(e,l,d)})}var jx=U('<div class="player-pip-dummy svelte-1pbsod4"><div class="dummy-image svelte-1pbsod4"><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Zx={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 vf(t,e){if(new.target)return E($({component:vf},t));P(e,!0),se(t,Zx);let[i,o]=tt(),n=()=>k(c,"$interfaceLanguage$",i),r=()=>k(f,"$isMobile$",i),l=Fe(),d=oi(),a=!!l.webApi.pictureInPictureApi,c=l.interfaceLanguage$,f=l.ui.isMobile,g=l.ui.t,m=b(()=>n()&&g("pip_dummy_title")),h=af(d.view);var _=jx();ve(_,"style",h),ae(_,"is-pip-api",a);var x=w(_),T=w(x);mf(T,{}),y(x);var V=H(x,2),D=w(V,!0);y(V),y(_),N(()=>{ae(x,"desktop",!r()),Pe(D,s(m))}),C(t,_);var R=A({$set:L,$on:(B,I)=>M(e,B,I)});return o(),R}var Xx=460,Jx=280,ic=class{constructor({enabled:e=!0}={enabled:!0}){this.info={isActive$:new ad.ValueSubject(!1),isEnabled$:new ad.ValueSubject(!1),type:1};this.info.isEnabled$=new ad.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,ad.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 Ct(this,null,function*(){var r,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Xx,height:Jx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(d=>[...d.cssRules].map(a=>a.cssText).join(" ")).filter(Boolean).join(`
361
- `),i=document.createElement("style");i.textContent=e;let o=this.createStretchedContainer(),n=o.attachShadow({mode:"open"});n.append(i),n.append(this.playerDomElement),this.playerDummyElement=E({component:vf,target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(o),this.info.isActive$.next(!0),(l=this.pipWindow)==null||l.addEventListener("unload",d=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return Ct(this,null,function*(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})})}dispose(){return Ct(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 F_(t){return t instanceof ic}var gf=class{static getLatestSupportedVersion(e){let i=new Ta,o=new ic(e);if(o.isSupported())return o;if(i.isSupported())return i}};function hf(t,e){var n,r;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(r=(n=e[l])!=null?n:t[l])!=null?r:void 0;return o}var U_="Inner error. Unexpectedly root annotation container null reference exception",z_="Annotation with such name already exists",W_="Annotation with such name does not exist";var ld=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var dd=require("@vkontakte/videoplayer-shared/es2015"),e3="1",t3=100,_f=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new dd.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,dd.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"},t3);this.subscriptions.add((0,dd.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 ld(U_);if(this.annotations.has(e))throw new ld(z_);i.style.zIndex=(o=i.style.zIndex)!=null?o:e3,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 ld(W_);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,r=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||r<0||r+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Ba=require("@vkontakte/videoplayer-shared/es2015"),Ho=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Ba.assertNonNullable)(e),(0,Ba.assertNonNullable)(i),(0,Ba.assertNonNullable)(n),n.interactiveData&&(0,Ba.assertNonNullable)(o),this.subscription=new Ba.Subscription,this.subscription}};var oc=class extends Ho{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=zt($({},Ie(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(r=>{this.state$.set(r?!0:null)})),o}};var nc=class extends Ho{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=zt($({},Ie(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:r}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=r.state,{controlsVisible:c,isMobile:f}=r.ui,g=De(f),m=()=>g&&De(c);return o.add(c.subscribe(h=>{if(!g)return;let _=De(l);De(a)?this.state$.set(h):_!==null&&this.state$.set(!_||h)})),o.add(a.subscribe(h=>{this.state$.set(!h||m())})),o.add(l.subscribe(h=>{if(h===null)return;let _=De(d);if(m()){this.state$.set(!0);return}_&&this.state$.set(!h)})),o}};var rc=class extends Ho{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Ie("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var q_=require("@vkontakte/videoplayer-shared/es2015");var vv=Ie(!1),$f=null,sc=class extends Ho{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=zt($({},vv),{set:(i,o=!1)=>{i!==De(vv)&&(this.clearTimeout(),vv.set(i),!i&&$f&&($f=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:r}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:c}=n.ui.controls;o.add(a.subscribe(g=>{De(l)&&g&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,q_.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:c}).subscribe(({isPlaying$:g,isInteractiveTime$:m,interactiveTimeIndicator:h})=>{var _,x;if(!(!g||!(h!=null&&h.isDisplayed))){if(!m)return this.state$.set(!1);f.tooltipHelpHintActive&&$f===null&&($f=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(x=(_=n.callbacks)==null?void 0:_.onInteractiveTimeIndicatorHintDeactivated)==null||x.call(_))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var bf=require("@vkontakte/videoplayer-shared/es2015");var ac=class extends Ho{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=zt($({},Ie(null)),{toggle:bf.noop});this.checkIfShouldHide=i=>Xs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:r}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>Ct(this,null,function*(){if(this.checkIfShouldHide(De(l)))return;let a=De(this.state$),{isEnded$:c,playbackState$:f}=n.state,{disabledControls$:g}=n.ui.controls,m=De(c),h=De(f);if(a)try{yield r==null?void 0:r.toggleGraphView(!1),this.state$.set(!1),g.remove($m),!m&&this.graphMadePause&&n.actions.internal.play()}catch(_){d({message:"Cant hide graph"})}else{this.graphMadePause=h==="playing";try{yield r==null?void 0:r.toggleGraphView(!0),this.state$.set(!0),g.add($m),!m&&this.graphMadePause&&n.actions.internal.pause()}catch(_){d({message:"Cant show graph"})}}}),o.add((0,bf.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>Ct(this,[f],function*({graphIsOpened:a,currentGridType:c}){if(this.checkIfShouldHide(c)&&a)try{yield r==null?void 0:r.toggleGraphView(!1),this.state$.set(!1)}catch(m){d({message:"Cant hide graph"})}}))),o}};var gv=require("@vkontakte/videoplayer-shared/es2015"),lc=class extends Ho{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:Ie(!1),isEnabled$:Ie(!1),type$:Ie(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:r,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new gv.ValueSubject(!1),isEnabled$:new gv.ValueSubject(!1)}};return o.add(r.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var xf=require("@vkontakte/videoplayer-shared/es2015");var yf=require("@vkontakte/videoplayer-shared/es2015");var K_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?i3({maxCount:t}):void 0,e!==0?o3({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},i3=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,yf.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}}},o3=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(yf.safeStorage.get(e)||"{}")}catch(r){return{}}},o=r=>yf.safeStorage.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o(zt($({},i()),{[r]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:r=>{let l=i()[r];if(l){let d=Date.now()-l.launchTime>t;return d&&n(r),d}else return!0}}};var dc=class extends Ho{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:Ie({}),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:r,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=K_({maxShowCount:r,timeout:l});let c=n.getPlayer();return o.add(c.events.severeStallOccured$.pipe((0,xf.filterChanged)(),(0,xf.filter)(f=>f)).subscribe(()=>{d&&!c.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var Q_=()=>[oc,nc,rc,sc,ac,lc,dc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:zt($({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var cd=require("@vkontakte/videoplayer-shared/es2015");var n3={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:to.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,cc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},wf=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.internalsExposure=null;this.createOneStat=(i,o={})=>{var I,z,Q,F;let{albumId:n,statPlace:r,statUserSalt:l,statTrackCode:d,statVKAppId:a,refreshStatAuthToken:c,autoplay:f,isMobile:g,isTouch:m,refDomain:h,deviceId:_,interactiveData:x}=hf(this.videoConfig,o),T=(I=x==null?void 0:x.projectInfo)==null?void 0:I.pid,V=(Q=(z=this.interactiveController)==null?void 0:z.state.isReplay$.getValue())!=null?Q:!1;V&&(this.prevIsid=void 0);let{unitedVideoId:D,isClip:R=!1}=i;if(this.uiConfig.features.statistics&&D)return new Y_.OneStat($({movieId:D,albumId:n,place:r,trackCode:d,vkAppId:a,autoplay:(F=f&&!this.interactiveController)!=null?F:!1,mobile:m!=null?m:g,clip:R,refDomain:h,deviceId:_},T&&(!this.isInited||V)&&{projectId:Number(T)}),$({refreshAuthToken:c,userSalt:l,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))};cd.devNull.create("ui"),this.logger=new to.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new to.Subscription,this.interactiveSubscription=new to.Subscription,this.graphMadePause=!1}connectedCallback(){var n,r;if(this.isInited)return;this.initPlayerRootContainers();let i=(n=this.getAttribute("stub-title"))!=null?n:void 0,o=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=E({component:uf,target:this.playerContainer,props:{title:i,thumbUrl:o}})}disconnectedCallback(){var i,o,n,r,l,d,a;(i=this.annotationsApi)==null||i.destroy(),(o=this.mediaSessionApi)==null||o.destroy(),(n=this.svelteRootComponent)==null||n.$destroy(),(r=this.svelteStubComponent)==null||r.$destroy(),this.subscription.unsubscribe(),(l=this.unsubscribePlayerPhaseSubscription)==null||l.call(this),(d=this.interactiveController)==null||d.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),cd.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(i){var n;let o=(n=this.store)==null?void 0:n.ui.controls.disabledControls$;return(o==null?void 0:o.includes(i))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let i=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:i.title,nextVideoThumb:i.thumbUrl}}createPlayer(i,o={},n){var he,Ft,Qt,ti,Ke,ut,$t,Mt;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statAuthToken:d,preload:a,autoplay:c,volume:f,muted:g,fromTime:m,canRewindLive:h,supportLink:_,showAds:x,adsSlotId:T,adsParams:V={},adsPreviewParam:D,adsAutoplayParam:R,interfaceLanguage:B,isCyrillicRelatedInterface:I,logoClickable:z,logoHidden:Q,isMobile:F,isTouch:G,isAudioDisabled:J,isLiveCatchUpMode:ce,fullScreenTarget:ee,failoverHosts:Ce,canDownload:Se,callbacks:ne,interactiveData:ie,showThumbTimer:be,additionalButtons:j=[],additionalSettingsMenuItems:re=[],additionalContextMenuItems:K=[],repeat:qe,saveRate:Be,volumeMultiplier:fe,showEndScreen:Te,showAutoplayNext:Ye}=hf(this.videoConfig,o),{sources:Z,title:ue,thumbUrl:le,unitedVideoId:He,isClip:et=!1,duration:dt,adsParams:_e={},videoEpisodes:me,previewThumbsData:Je,subtitles:mt,live:ge}=i,je=$($({},V),_e),Tt=this.getNextVideoInfo(),te={sources:Z,title:ue,thumbUrl:le,subtitles:mt,unitedVideoId:He,isClip:et,live:ge,albumId:r,statPlace:l,autoplay:c,muted:g,volume:f,fromTime:m,canRewindLive:h,showAds:x,adsSlotId:T,adsParams:je,adsPreviewParam:D,adsAutoplayParam:R,duration:dt,logoClickable:z,logoHidden:Q,isTouch:G!=null?G:F,repeat:qe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Tt.nextVideoTitle,endScreenVideoThumb:Tt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},it={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(te)}`});let bt=(he=this.interactiveController)==null?void 0:he.state.statistics$.getValue(),gt=(bt==null?void 0:bt.oneStat)||this.createOneStat(i,o);gt&&(this.statistics=new Ju(gt,bt==null?void 0:bt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Sa(this.uiConfig.sentry,{version:xa,env:Kc},{movieId:He,albumId:r,place:l,autoplay:(Ft=c&&!this.interactiveController)!=null?Ft:!1,mobile:G!=null?G:F,clip:et}),this.interactiveController&&((ti=this.prevIsid)!=null||(this.prevIsid=(Qt=this.statistics)==null?void 0:Qt.oneStat.isid$.getValue())),this.sentry=$($({},this.sentry),Sa.getInstance());let Me=!!ie,we=[],Ze="tooltip_interactive_go_back_disabled_first";if(Me&&this.interactiveController){let Qe=this.interactiveController.state.isInitialChapter$.getValue(),Gt=this.interactiveController.getHistoryState();Qe&&we.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||we.push("SEEK_TO_INTERACTIVE_BUTTON"),Gt.hasPrevChapter$.getValue()||(we.push("PLAY_PREV_CHAPTER_BUTTON"),Qe||(Gt.isGoBackLimited$.getValue()?Ze="tooltip_interactive_go_back_disabled_limit":Ze="tooltip_interactive_go_back_disabled"))}let vt=()=>{var Gt;this.isInited=!1,this.prevIsid=void 0;let Qe=(n==null?void 0:n.info.isEnded$.getValue())&&((Gt=this.interactiveController)==null?void 0:Gt.state.isEndChapter$.getValue());ne.onReplayInteractiveVideo&&!Qe?ne.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=m_({player:n,interfaceLanguage:B,isCyrillicRelatedInterface:I,videoId:He,isClip:et,isLiveCatchUpMode:ce,isAudioDisabled:J,statAuthToken:d,callbacks:ne,webApi:it,videoEpisodes:me,previewThumbsData:Je,canDownload:Se,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:we,isInteractive:Me,saveRate:Be,interactiveRanges$:(Ke=this.interactiveController)==null?void 0:Ke.state.interactiveRanges$,isInteractiveTime$:(ut=this.interactiveController)==null?void 0:ut.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:vt,playPrevChapterDisabledTooltip:Ze,hasInteractiveBranches:!!((Mt=($t=this.interactiveController)==null?void 0:$t.getChapterBranches())!=null&&Mt.length),additionalButtons:this.uiConfig.features.additionalButtons?j:[],additionalSettingsMenuItems:re!=null?re:[],additionalContextMenuItems:K!=null?K:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:qe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:Ne}=this.microStoresRoot=Q_(),yt=()=>{var Qe,Gt,si,ai,bi,ht;!this.store||!this.microStoresRoot||!this.videoConfig||(this.subscription.add(this.store.state.currentFormat$.subscribe(_t=>{var pt;return(pt=ne==null?void 0:ne.onCurrentFormatChanged)==null?void 0:pt.call(ne,_t)})),this.subscription.add(Ne.interactiveControlsOpacity$.subscribe(_t=>{var pt;_t!==null&&((pt=this==null?void 0:this.interactiveController)==null||pt.setDisabledControls(_t))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(_t=>{var pt;return(pt=ne==null?void 0:ne.onThroughputEstimationChanged)==null?void 0:pt.call(ne,_t)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(_t=>{var pt;return(pt=ne==null?void 0:ne.onTrafficSavingEnabledChanged)==null?void 0:pt.call(ne,_t)})),this.subscription.add(new to.Observable(_t=>{var pt;(pt=this.store)==null||pt.state.currentPlaybackRate$.subscribe(O=>_t.next(O))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,to.skip)(1):_t=>_t).subscribe(_t=>{var pt;return(pt=ne==null?void 0:ne.onCurrentPlaybackRateChanged)==null?void 0:pt.call(ne,_t)})),this.subscription.add(this.store.state.volume$.subscribe(_t=>{var pt;return(pt=ne==null?void 0:ne.onVolumeChange)==null?void 0:pt.call(ne,_t)})),this.subscription.add(this.store.state.muted$.subscribe(_t=>{var pt,O;return _t?(pt=ne==null?void 0:ne.onMute)==null?void 0:pt.call(ne):(O=ne==null?void 0:ne.onUnmute)==null?void 0:O.call(ne)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(_t=>{var pt;return(pt=ne==null?void 0:ne.onVideoBitrateChanged)==null?void 0:pt.call(ne,_t)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(_t=>{var O;let pt=(O=this.store)==null?void 0:O.ui.controls.disabledControls$;pt&&(_t&&!pt.includes(Nd)&&pt.add(Nd),_t||pt.remove(Nd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(_t=>Ct(this,null,function*(){var O;if(!cc.clientChecker.browser.isSamsungBrowser||!_t||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((O=this.videoConfig)==null?void 0:O.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(_t=>{var pt;return(pt=ne==null?void 0:ne.onVSIDChanged)==null?void 0:pt.call(ne,_t)})),this.initMediaSession(),this.svelteRootComponent=E({component:lf,target:this.playerContainer,props:{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Z,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ue,thumbUrl:le,subtitles:mt,live:ge,preload:a,autoplay:c,muted:g,volume:f,fromTime:m,canRewindLive:h,supportLink:_,showAds:x,adsSlotId:T,adsParams:je,adsPreviewParam:D,adsAutoplayParam:R,duration:dt,logoClickable:z,logoHidden:Q,isMobile:G!=null?G:F,failoverHosts:Ce,fullScreenTarget:ee,saveRate:Be,shadowRootContainer:this.shadowRootContainer,showMiniTimer:be,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Tt.nextVideoTitle,endScreenVideoThumb:Tt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:fe,showEndScreen:Te,showAutoplayNext:Ye}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(si=(Gt=(Qe=this.videoConfig)==null?void 0:Qe.callbacks)==null?void 0:Gt.onInited)==null||si.call(Gt)),(ai=this.internalsExposure)==null||ai.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ht=(bi=this.videoConfig)==null?void 0:bi.callbacks)!=null&&ht.onDevNullLog)?cd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):cd.devNull.destroy("ui"))};this.coreConfig.asyncResolveClientChecker?cc.clientChecker.isInited$.subscribe(Qe=>{Qe&&(console.log("UI SDK async start"),yt())}):yt()}addPlayerInfoSubscriptions(){var l,d;let i=this.store,o=(l=this.microStoresRoot)==null?void 0:l.stores;if(!i||!o)return;let n=(d=this.videoConfig)==null?void 0:d.callbacks;n&&this.subscription.add(i.playerPhase.subscribe(a=>{var c;return(c=n.onPlayerPhaseChanged)==null?void 0:c.call(n,a)})).add(i.state.playbackState$.subscribe(a=>{var c;return a&&((c=n.onPlaybackStateChanged)==null?void 0:c.call(n,a))})).add(i.state.isLive$.subscribe(a=>{var c;return(c=n.onIsLiveChanged)==null?void 0:c.call(n,a)})).add(i.state.isActiveLive$.subscribe(a=>{var c;return(c=n.onIsActiveLiveChanged)==null?void 0:c.call(n,a)})).add(i.state.isAudioAvailable$.subscribe(a=>{var c;return(c=n.onIsAudioAvailableChanged)==null?void 0:c.call(n,a)})).add(i.state.currentQuality$.subscribe(a=>{var c;return(c=n.onCurrentQualityChanged)==null?void 0:c.call(n,a)})).add(i.state.availableQualities$.subscribe(a=>{var c;return(c=n.onAvailableQualitiesChanged)==null?void 0:c.call(n,a.map(({value:f})=>f).filter(f=>f!=="auto"))})).add(i.state.availableAudioStreams$.subscribe(a=>{a.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(o.pictureInPicture$.isActive$.subscribe(a=>{var c,f;return a?(c=n.onPiPEnter)==null?void 0:c.call(n):(f=n.onPiPExit)==null?void 0:f.call(n)}));let r=n==null?void 0:n.uiInfo;r&&this.subscription.add(i.ui.controlsVisible.subscribe(a=>{var c;return(c=r.onControlsVisibleChanged)==null?void 0:c.call(r,a)})).add(i.ui.isMobile.subscribe(a=>{var c;return(c=r.onIsMobileChanged)==null?void 0:c.call(r,a)})).add(i.ui.playerSize.subscribe(a=>{var c;return(c=r.onPlayerSizeChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.prevButton.subscribe(a=>{var c;return(c=r.onPrevButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.playButton.subscribe(a=>{var c;return(c=r.onPlayButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.replayButton.subscribe(a=>{var c;return(c=r.onReplayButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.nextButton.subscribe(a=>{var c;return(c=r.onNextButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.playPrevChapterButton.subscribe(a=>{var c;return(c=r.onPlayPrevChapterChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.seekToInteractiveButton.subscribe(a=>{var c;return(c=r.onSeekToInteractiveButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.interactiveGraphButton.subscribe(a=>{var c;return(c=r.onGraphButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.liveButton.subscribe(a=>{var c;return(c=r.onLiveButtonChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.time.subscribe(a=>{var c;return(c=r.onTimeUpdateChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.episodes.subscribe(a=>{var c;return(c=r.onEpisodesChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.subtitles.subscribe(a=>{var c;return(c=r.onSubtitlesChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.settings.subscribe(a=>{var c;return(c=r.onSettingsChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.fullscreen.subscribe(a=>{var c;return(c=r.onFullscreenChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.chromecast.subscribe(a=>{var c;return(c=r.onChromecastChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.pip.subscribe(a=>{var c;return(c=r.onPipChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.vkLogo.subscribe(a=>{var c;return(c=r.onVkLogoChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.interactiveTimeIndicator.subscribe(a=>{var c;return(c=r.onInteractiveTimeIndicatorChanged)==null?void 0:c.call(r,a)})).add(i.ui.controls.timeline.subscribe(a=>{var c;return(c=r.onTimelineChanged)==null?void 0:c.call(r,a)}))}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(i,o=!0){var r;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,to.isNonNullable)(n.unitedVideoId)&&this.store.actions.internal.nextMovie(n.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(n,{autoplay:o,fromTime:0},i)}playPrevChapter(){var i;(i=this.interactiveController)==null||i.playPrevChapter()}seekToInteractive(){var o;let i=(o=this.interactiveController)==null?void 0:o.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return Ct(this,null,function*(){var i,o,n,r;if((i=this.videoConfig)!=null&&i.interactiveData)try{let{Interactives:l}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let d=(o=this.store)==null?void 0:o.interfaceLanguage$,a=d?De(d):this.videoConfig.interfaceLanguage,{projectInfo:c,initChapterId:f,historyApi:g,videoLoader:m}=this.videoConfig.interactiveData;this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:a,graph:this.uiConfig.features.interactiveGraph,projectInfo:c,initChapterId:f,historyApi:g,vkVideoLoader:m,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});let{isInteractiveExpectation$:h,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(T=>{if(!this.isInited)return;let V=this.store;T?V.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):V.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(h.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=zt($({},T.config),{title:(c==null?void 0:c.title)||T.config.title});let V=x?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,V),x&&(x=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:V})=>{var R,B,I,z,Q,F;if(!this.store||!this.microStoresRoot)return;let D=h.getValue();if(T==="action-choice"&&V==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Bd)),T==="action-choice-canceled"){let G=De(this.store.state.isPlaying$)||D;if(((I=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?I:(B=this.videoConfig)!=null&&B.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(F=(z=this.videoConfig)==null?void 0:(Q=z.callbacks).onDisabledInteractiveClick)==null||F.call(Q)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:V})=>{this.store&&T==="container-fake-removed"&&V&&this.store.ui.controls.disabledControls$.remove(Bd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(n=this.videoConfig)==null?void 0:n.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(V=>{var D,R,B;V.length&&((B=(R=(D=this.videoConfig)==null?void 0:D.callbacks)==null?void 0:R.onInteractiveHistoryChanged)==null||B.call(R,V))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,V,D,R;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(R=(V=this.videoConfig)==null?void 0:(D=V.callbacks).onInteractiveTimeIndicatorClick)==null||R.call(D)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(l){this.log({message:l.message})}})}initPlayer(i,o={}){var n,r,l,d,a,c,f,g,m,h,_,x,T,V,D,R,B,I,z,Q,F,G,J,ce,ee,Ce,Se,ne,ie;if(!Array.isArray(i.videos)||i.videos.length===0&&!i.interactiveData)throw new Error("empty videos");if(this.videoConfig=hf(n3,(0,to.cloneDeepWith)(i,be=>be instanceof HTMLElement?be:void 0)),this.uiConfig=eh((n=o.ui)!=null?n:{}),this.coreConfig=(r=o.core)!=null?r:{configName:[]},this.statisticsConfig=(l=o.statistics)!=null?l:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.sentry={config:(d=this.uiConfig.sentry)!=null?d:{}},this.uiConfig.features.exposeInternalsToGlobal&&((a=this.internalsExposure)!=null||(this.internalsExposure=new to.InternalsExposure("UI"))),cd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((c=this.videoConfig)==null?void 0:c.showAds)],numbers:[(0,G_.now)()]}),(0,to.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(g=(f=this.uiConfig.features.mediaSession)!=null?f:this.videoConfig.isMediaSessionEnabled)!=null?g:!0),(0,to.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(h=(m=this.uiConfig.features.pip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0,this.uiConfig.features.dpip=(x=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?x:!0),this.videoConfig.isTouch=(V=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?V:this.videoConfig.isMobile,(D=this.videoConfig).autoplay&&(D.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(R=this.uiConfig.ads.enable)!=null?R:this.videoConfig.showAds,this.videoConfig.adsSlotId=(B=this.uiConfig.ads.slot)!=null?B:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((z=this.uiConfig.showLogo)!=null?z:!this.videoConfig.logoHidden),(Q=this.videoConfig).canRewindLive&&(Q.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(F=this.videoConfig.supportLink)!=null?F:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(G=this.uiConfig.features.endScreen)!=null?G:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(J=this.uiConfig.features.autoplayNext)!=null?J:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(ce=this.uiConfig.features.nextPrevButtons)!=null?ce:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ee=this.videoConfig.videos)!=null&&ee[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let be={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=gf.getLatestSupportedVersion(be):this.pictureInPictureApi=new Ta(be)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new pf:void 0,this.slotsApi=this.uiConfig.features.slots?new tf:void 0,this.annotationsApi=this.uiConfig.features.annotations?new _f(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&((Ce=this.annotationsApi)==null||Ce.init(this.rootContainer)),(Se=this.slotsApi)==null||Se.init(this.shadowRootContainer),(ne=this.svelteStubComponent)==null||ne.$destroy(),(ie=this.svelteRootComponent)==null||ie.$destroy(),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]),F_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(i,o){var r;if(!this.videoConfig)return;this.log({message:`update ${o} videos, videos: ${JSON.stringify(i)}`}),o==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...i),this.currentPlayingVideoIndex=i.length):o==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...i));let n=this.getNextVideoInfo();(r=this.svelteRootComponent)==null||r.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}updatePrevVideos(i){this.updateVideos(i,"prev")}updateNextVideos(i){this.updateVideos(i,"next")}initMediaSession(){var i,o;this.mediaSessionApi&&((i=this.unsubscribePlayerPhaseSubscription)==null||i.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(o=this.store)==null?void 0:o.playerPhase.subscribe(n=>{n==="video"?this.setupMediaSessionForVideo():n==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:i,thumbUrl:o}=$({},this.videoConfig.videos[this.currentPlayingVideoIndex]),n=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&n.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&n.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:i,thumbUrl:o}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(i){this.log({message:i.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let i="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",o=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(i){this.log({message:i.message})}}play(){var i,o,n,r;this.isControlDisabled("PLAY_BUTTON")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingStart")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecover")||(n=this.store)!=null&&n.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var i;this.log({message:"pause"}),(i=this.svelteRootComponent)==null||i.pause()}stop(){var n,r,l;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()),(n=this.svelteStubComponent)==null||n.$destroy(),(r=this.mediaSessionApi)==null||r.destroy();let o=this.videoConfig.videos[0];o&&((l=this.svelteRootComponent)==null||l.$destroy(),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(i){var o;this.log({message:`set muted, muted: ${i}`}),(o=this.svelteRootComponent)==null||o.setMuted(i)}setPiPEnabled(i){var o,n;(n=(o=this.store)==null?void 0:o.webApi.pictureInPictureApi)==null||n.setEnabled(i)}setVolume(i){var o;this.log({message:`set volume, volume: ${i}`}),(o=this.svelteRootComponent)==null||o.setVolume(i)}setRepeat(i){var o;this.log({message:`set repeat, repeat: ${i}`}),this.needToRepeatPlaylist=i,(o=this.svelteRootComponent)==null||o.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(i){var o;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${i}`}),(o=this.svelteRootComponent)==null||o.seekTime(i))}seekEpisodeStartTime(i){var o;this.log({message:`seek episode start time, time: ${i}`}),(o=this.svelteRootComponent)==null||o.seekEpisodeStartTime(i)}returnFocusToEpisodes(){var i;this.log({message:"return focus to episodes button"}),(i=this.svelteRootComponent)==null||i.returnFocusToEpisodes()}setPlaybackRate(i){var o;this.log({message:`set playback rate to: ${i}`}),(o=this.svelteRootComponent)==null||o.setPlaybackRate(i)}setAutoQualityLimits(i){var o,n,r;this.log({message:`set auto quality limitation. Max: ${(o=i.max)!=null?o:"none"}. Min: ${(n=i.min)!=null?n:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(i)}addLanguage(i){var o;(o=this.store)==null||o.actions.internal.addLanguage(i)}setLanguage(i){return Ct(this,null,function*(){var o;yield(o=this.store)==null?void 0:o.actions.internal.setLanguage(i)})}setLiveStart(i){var o,n,r;this.log({message:"live started"}),(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingStart(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(i,{autoplay:!0})}setLiveWaitingRecover(){var i;this.log({message:"live waiting"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!0),(n=this.store)==null||n.destroy()})}setLiveWaitingRecord(){var i;this.log({message:"post live"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecord(!0),(n=this.store)==null||n.destroy()})}setLiveEnd(i){var o;this.log({message:"live ended"}),(o=this.store)!=null&&o.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var n,r,l;(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(r=this.store)==null||r.actions.internal.setLiveWaitingRecord(!1),(l=this.svelteRootComponent)==null||l.$destroy(),this.createPlayer(i,{autoplay:!1})})}setLiveLowLatency(i){var o;this.log({message:"live switch to low latency "+i}),(o=this.store)==null||o.actions.external.setLiveLowLatency(i)}getDeviceId(){var i,o;return(o=(i=this.statistics)==null?void 0:i.oneStat.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(i){return Ct(this,null,function*(){var o;if(this.interactiveController&&((o=this.store)!=null&&o.state.positionExact$)){let n=De(this.store.state.positionExact$),l=De(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,to.once)()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),i==null||i()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:d.chapter.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(i,o=!1){var n;(n=this.microStoresRoot)==null||n.stores.showInteractiveTimeIndicatorTooltip$.set(i,o)}switchToActiveLive(){var i;(i=this.store)==null||i.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(i,o){var n;(n=this.store)==null||n.actions.external.updateAdditionalSettingsItem(i,o)}addAdditionalSettingsItem(i){var o;(o=this.store)==null||o.actions.external.addAdditionalSettingsItem(i)}removeAdditionalSettingsItem(i){var o;(o=this.store)==null||o.actions.external.removeAdditionalSettingsItem(i)}updateAdditionalContextItem(i,o){var n;(n=this.store)==null||n.actions.external.updateAdditionalContextItem(i,o)}addAdditionalContextItem(i){var o;(o=this.store)==null||o.actions.external.addAdditionalContextItem(i)}removeAdditionalContextItem(i){var o;(o=this.store)==null||o.actions.external.removeAdditionalContextItem(i)}updateAdditionalButton(i,o){var n;(n=this.store)==null||n.actions.external.updateAdditionalButton(i,o)}addAdditionalButton(i){var o;(o=this.store)==null||o.actions.external.addAdditionalButton(i)}removeAdditionalButton(i){var o;(o=this.store)==null||o.actions.external.removeAdditionalButton(i)}updateStatContext(i){this.statistics&&this.statistics.oneStat.updateContext(i)}handleTimerNextVideo(i){var o;(o=this.store)==null||o.actions.internal.setTimerNextVideoRunning(i)}focus(){var i,o,n;(n=(o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)==null?void 0:o.focus)==null||n.call(o)}};var ud=require("@vkontakte/videoplayer-shared/es2015"),Cf=require("@vkontakte/videoplayer-core/es2015"),r3=()=>{window.customElements.define("vk-video-player",wf)};
363
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function jm(t,e){K(e,!0),G(t,j3);let[i,o]=Fe(),n=()=>C(qt,"$isLive$",i),a=v(e,"sources",7),s=v(e,"store",7),d=v(e,"microStoresRoot",7),l=v(e,"videoConfig",7),u=v(e,"uiConfig",7),f=v(e,"title",7),_=v(e,"thumbUrl",7),p=v(e,"interactiveContainer",7),$=v(e,"interactiveController",7),y=v(e,"subtitles",7),w=v(e,"live",7),S=v(e,"preload",7),I=v(e,"autoplay",7),A=v(e,"volume",7,void 0),P=v(e,"muted",7,void 0),E=v(e,"fromTime",7),T=v(e,"canRewindLive",7),R=v(e,"showAds",7),z=v(e,"adsSlotId",7,void 0),Z=v(e,"adsParams",7,void 0),U=v(e,"adsPreviewParam",7,void 0),Q=v(e,"adsAutoplayParam",7,void 0),ee=v(e,"duration",7,void 0),ae=v(e,"logoClickable",7),_e=v(e,"logoHidden",7),re=v(e,"isMobile",7),Pe=v(e,"showNextPrevButtons",7,!1),qe=v(e,"nextButtonActive",7,!1),ie=v(e,"prevButtonActive",7,!1),Le=v(e,"endScreenVideoTitle",7,void 0),J=v(e,"endScreenVideoThumb",7,void 0),D=v(e,"isOneVideoPlaylist",7,!1),Be=v(e,"supportLink",7),X=v(e,"shadowRootContainer",7,void 0),Ge=v(e,"outerContainerRef",7,void 0),Re=v(e,"fullScreenTarget",7,void 0),ue=v(e,"failoverHosts",7,void 0),B=v(e,"showMiniTimer",7,!1),ce=v(e,"saveRate",7),Ee=v(e,"seekToInteractive",7,ba.noop),Ke=v(e,"playPrevChapter",7,ba.noop),lt=v(e,"volumeMultiplier",7),Ae=v(e,"showAutoplayNext",7),ye=v(e,"showEndScreen",7,!0),Me=v(e,"keyboardControls",15,void 0),{subscribers:rt,stores:vt}=d();Jg(u());let tt=Gt(),Ot=u().logoLink,st=s().ui.debugPanelVisible,gt=s().ui.playerSize,qt=s().state.isLive$,Ve=s().state.isInteractive&&Y1.clientChecker.device.isAndroid,se=te(void 0),j=null,le=te(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),ch(s(),vt),Ze(()=>{s().ui.isMobile.set(re())});let ge=(H=!1)=>{O(le,!0),H?s().actions.external.firstStart(R()):s().actions.internal.firstStart(R())},Ce=()=>{if(tt.features.qualityDetailsSubMenuEnabled){let H=Ah(s().videoId);if(H)switch(H.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,H.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,H.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(H.quality);break}}else{Ph(s().videoId),Hp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Yt=Np(s().videoId);Yt&&s().actions.internal.setQuality(Yt)}};function Ne(H){var ci,uo,po;let Yt=a()||H;Yt&&s().initVideo({container:r(se),sources:Yt,failoverHosts:ue(),subtitles:y(),volumeMultiplier:lt()});let Wi=ba.safeStorage.get(Gl)==="true";st.set(Wi),E()>0&&s().actions.external.seekTime(E());let Oi=re()?tt.volumeDefault:(uo=(ci=A())!=null?ci:Rc())!=null?uo:tt.volumeDefault,si=(po=P())!=null?po:Sh();if(s().actions.external.setVolume(Oi),s().actions.external.setMuted(si),s().getAdmanWrapper().setInitialVolume(si?0:Oi),Ce(),tt.features.saveRate&&ce()){let Zi=Ih();Zi&&!n()&&s().actions.internal.setPlaybackRate(Zi)}if(Ae()){let Zi=Eh();Zi&&s().actions.internal.setAutoplayNextEnabled(Zi)}s().ui.isAutoplay.set(I()),I()?ge():S()&&tt.features.preload&&s().actions.internal.preload()}let pt=H=>{if(window.ResizeObserver){let Yt,Wi;j=new ResizeObserver((0,ba.throttleFn)(Oi=>{let si=Oi[0];if(si.contentBoxSize){let ci=Array.isArray(si.contentBoxSize)?si.contentBoxSize[0]:si.contentBoxSize;Yt=ci.inlineSize,Wi=ci.blockSize}else si.contentRect&&(Yt=si.contentRect.width,Wi=si.contentRect.height);gt.set({width:Yt,height:Wi})},300)),j.observe(H)}gt.set({width:H.clientWidth,height:H.clientHeight})},Kt=()=>{document.hidden&&s().actions.external.stop()};Ft(()=>{var Wi,Oi,si,ci;Ve&&document.addEventListener("visibilitychange",Kt),tt.debugLog&&s().actions.internal.startLogging(),pt(r(se));let H=rt.map(uo=>uo.init({store:s(),microStores:vt,config:l(),interactiveController:$(),uiConfig:u()})),Yt=()=>{Ve&&document.removeEventListener("visibilitychange",Kt),j==null||j.disconnect(),H.forEach(uo=>uo.unsubscribe()),s().destroy()};return((Wi=w())==null?void 0:Wi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Yt):((Oi=w())==null?void 0:Oi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Yt):(((si=w())==null?void 0:si.status)==="finished"||((ci=w())==null?void 0:ci.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Yt):(Ne(),Yt)});function Ye(){r(le)?s().actions.external.play():ge(!0)}function dt(){s().actions.external.pause()}function Je(H){s().actions.external.setMuted(H)}function It(H){re()||H>=0&&H<=1&&s().actions.external.setVolume(H)}function ei(H){s().actions.internal.seekTime(H,j1.SeekAction.UNKNOWN)}function We(H){s().actions.external.seekEpisodeStartTime(H)}function ct(){s().actions.external.returnFocusToEpisodes()}function oi(H){s().actions.external.setPlaybackRate(H)}function Bi(H){s().actions.external.setAutoQualityLimits(H)}let Po=hu(tt.view);var Ki=Y3();nt(Ki,Po);var Mo=h(Ki);{var Lo=H=>{Ym(H,{get store(){return s()},uiConfig:tt,get thumbUrl(){return _()},get interactiveContainer(){return p()},get live(){return w()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return R()},get adsSlotId(){return z()},get adsParams(){return Z()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Q()},get duration(){return ee()},get logoClickable(){return ae()},get logoHidden(){return _e()},logoTargetUrl:Ot,get nextButtonActive(){return qe()},get prevButtonActive(){return ie()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return J()},get isOneVideoPlaylist(){return D()},get supportLink(){return Be()},get shadowRootContainer(){return X()},get outerContainerRef(){return Ge()},get fullScreenTarget(){return Re()},get showMiniTimer(){return B()},get playerStarted(){return r(le)},get seekToInteractive(){return Ee()},get playPrevChapter(){return Ke()},firstStart:ge,seekTime:ei,get showEndScreen(){return ye()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Pe()},get videoContainer(){return r(se)},set videoContainer(Yt){O(se,pe(Yt))}})},Pt=H=>{Qm(H,{get store(){return s()},uiConfig:tt,get title(){return f()},get thumbUrl(){return _()},get interactiveContainer(){return p()},get live(){return w()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return R()},get adsSlotId(){return z()},get adsParams(){return Z()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Q()},get duration(){return ee()},get logoClickable(){return ae()},get logoHidden(){return _e()},logoTargetUrl:Ot,get nextButtonActive(){return qe()},get prevButtonActive(){return ie()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return J()},get isOneVideoPlaylist(){return D()},get supportLink(){return Be()},get shadowRootContainer(){return X()},get outerContainerRef(){return Ge()},get fullScreenTarget(){return Re()},get showMiniTimer(){return B()},get playerStarted(){return r(le)},get seekToInteractive(){return Ee()},get playPrevChapter(){return Ke()},firstStart:ge,get showEndScreen(){return ye()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Pe()},get videoContainer(){return r(se)},set videoContainer(Yt){O(se,pe(Yt))},get keyboardControls(){return Me()},set keyboardControls(Yt){Me(Yt)}})};V(Mo,H=>{re()?H(Lo):H(Pt,!1)})}g(Ki),b(t,Ki);var ht=W({initVideo:Ne,play:Ye,pause:dt,setMuted:Je,setVolume:It,seekTime:ei,seekEpisodeStartTime:We,returnFocusToEpisodes:ct,setPlaybackRate:oi,setAutoQualityLimits:Bi,get sources(){return a()},set sources(H){a(H)},get store(){return s()},set store(H){s(H)},get microStoresRoot(){return d()},set microStoresRoot(H){d(H)},get videoConfig(){return l()},set videoConfig(H){l(H)},get uiConfig(){return u()},set uiConfig(H){u(H)},get title(){return f()},set title(H){f(H)},get thumbUrl(){return _()},set thumbUrl(H){_(H)},get interactiveContainer(){return p()},set interactiveContainer(H){p(H)},get interactiveController(){return $()},set interactiveController(H){$(H)},get subtitles(){return y()},set subtitles(H){y(H)},get live(){return w()},set live(H){w(H)},get preload(){return S()},set preload(H){S(H)},get autoplay(){return I()},set autoplay(H){I(H)},get volume(){return A()},set volume(H){A(H)},get muted(){return P()},set muted(H){P(H)},get fromTime(){return E()},set fromTime(H){E(H)},get canRewindLive(){return T()},set canRewindLive(H){T(H)},get showAds(){return R()},set showAds(H){R(H)},get adsSlotId(){return z()},set adsSlotId(H){z(H)},get adsParams(){return Z()},set adsParams(H){Z(H)},get adsPreviewParam(){return U()},set adsPreviewParam(H){U(H)},get adsAutoplayParam(){return Q()},set adsAutoplayParam(H){Q(H)},get duration(){return ee()},set duration(H){ee(H)},get logoClickable(){return ae()},set logoClickable(H){ae(H)},get logoHidden(){return _e()},set logoHidden(H){_e(H)},get isMobile(){return re()},set isMobile(H){re(H)},get showNextPrevButtons(){return Pe()},set showNextPrevButtons(H){Pe(H)},get nextButtonActive(){return qe()},set nextButtonActive(H){qe(H)},get prevButtonActive(){return ie()},set prevButtonActive(H){ie(H)},get endScreenVideoTitle(){return Le()},set endScreenVideoTitle(H){Le(H)},get endScreenVideoThumb(){return J()},set endScreenVideoThumb(H){J(H)},get isOneVideoPlaylist(){return D()},set isOneVideoPlaylist(H){D(H)},get supportLink(){return Be()},set supportLink(H){Be(H)},get shadowRootContainer(){return X()},set shadowRootContainer(H){X(H)},get outerContainerRef(){return Ge()},set outerContainerRef(H){Ge(H)},get fullScreenTarget(){return Re()},set fullScreenTarget(H){Re(H)},get failoverHosts(){return ue()},set failoverHosts(H){ue(H)},get showMiniTimer(){return B()},set showMiniTimer(H){B(H)},get saveRate(){return ce()},set saveRate(H){ce(H)},get showAutoplayNext(){return Ae()},set showAutoplayNext(H){Ae(H)},get seekToInteractive(){return Ee()},set seekToInteractive(H){Ee(H)},get playPrevChapter(){return Ke()},set playPrevChapter(H){Ke(H)},get volumeMultiplier(){return lt()},set volumeMultiplier(H){lt(H)},get showEndScreen(){return ye()},set showEndScreen(H){ye(H)},get keyboardControls(){return Me()},set keyboardControls(H){Me(H)}});return o(),ht}var Z3=$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 Zm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Z3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 Xm(t,e){let i=v(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");Zm(t,{get style(){return r(o)}})}var X3=L('<div class="title svelte-1y9fytq"> </div>'),J3=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),ex={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function Jm(t,e){G(t,ex);var i=J3(),o=h(i);{var n=d=>{var l=X3(),u=h(l,!0);g(l),k(()=>fe(u,e.title)),b(d,l)};V(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=m(()=>!!e.thumbUrl);Xm(d,{get isWhite(){return r(l)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),k(()=>nt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var r0=require("@vkontakte/videoplayer-shared/es2015"),qi=require("@vkontakte/videoplayer-shared/es2015"),Xd=require("@vkontakte/videoplayer-core/es2015"),s0=require("@vkontakte/videoplayer-statistics/es2015");var bu=require("@vkontakte/videoplayer-shared/es2015"),_u=class{constructor(){this.subscription=new bu.Subscription,this.logger=new bu.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",i=>null],["seekbackward",i=>null],["seekforward",i=>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.subscription.add(e.state.positionExact$.subscribe(i=>{var a,s;let o=we(e.state.currentPlaybackRate$),n=we(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var ul=require("@vkontakte/videoplayer-shared/es2015");var tx=$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 ev(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=tx();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Se(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 ix=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),ox={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function tv(t,e){K(e,!0),G(t,ox);let[i,o]=Fe(),n=()=>C(u,"$interfaceLanguage$",i),a=()=>C(f,"$isMobile$",i),s=Ie(),d=Gt(),l=!!s.webApi.pictureInPictureApi,u=s.interfaceLanguage$,f=s.ui.isMobile,_=s.ui.t,p=m(()=>n()&&_("pip_dummy_title")),$=hu(d.view);var y=ix();oe(y,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),nt(y,$);var w=h(y);let S;var I=h(w);ev(I,{}),g(w);var A=M(w,2),P=h(A,!0);g(A),g(y),k(E=>{S=oe(w,1,"dummy-image svelte-1pbsod4",null,S,E),fe(P,r(p))},[()=>({desktop:!a()})]),b(t,y),W(),o()}var nx=Object.defineProperty,rx=(t,e,i)=>e in t?nx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,cl=(t,e,i)=>rx(t,typeof e!="symbol"?e+"":e,i),iv=(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())}),sx=460,ax=280,qd=class{constructor({enabled:e=!0}={enabled:!0}){cl(this,"playerDomElement"),cl(this,"playerParentShadowRoot"),cl(this,"playerDummyElement"),cl(this,"svelteContext"),cl(this,"pipWindow"),cl(this,"info",{isActive$:new ul.ValueSubject(!1),isEnabled$:new ul.ValueSubject(!1),type:1}),this.info.isEnabled$=new ul.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,ul.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 iv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:sx,height:ax,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
364
+ `),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=os(tv,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||(Gs(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return iv(this,null,function*(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})})}dispose(){return iv(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 Z1(t){return t instanceof qd}var $u=class{static getLatestSupportedVersion(e){let i=new ia,o=new qd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function yu(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 X1="Inner error. Unexpectedly root annotation container null reference exception",J1="Annotation with such name already exists",e0="Annotation with such name does not exist";var pl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var fl=require("@vkontakte/videoplayer-shared/es2015"),lx="1",dx=100,xu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new fl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,fl.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"},dx);this.subscriptions.add((0,fl.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 pl(X1);if(this.annotations.has(e))throw new pl(J1);i.style.zIndex=(o=i.style.zIndex)!=null?o:lx,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 pl(e0);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 $a=require("@vkontakte/videoplayer-shared/es2015"),Oo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,$a.assertNonNullable)(e),(0,$a.assertNonNullable)(i),(0,$a.assertNonNullable)(n),n.interactiveData&&(0,$a.assertNonNullable)(o),this.subscription=new $a.Subscription,this.subscription}};var Kd=class extends Oo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Vt(q({},de(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Wd=class extends Oo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Vt(q({},de(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:u,isMobile:f}=a.ui,_=we(f),p=()=>_&&we(u);return o.add(u.subscribe($=>{if(!_)return;let y=we(s);we(l)?this.state$.set($):y!==null&&this.state$.set(!y||$)})),o.add(l.subscribe($=>{this.state$.set(!$||p())})),o.add(s.subscribe($=>{if($===null)return;let y=we(d);if(p()){this.state$.set(!0);return}y&&this.state$.set(!$)})),o}};var Qd=class extends Oo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=de("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var t0=require("@vkontakte/videoplayer-shared/es2015");var ov=de(!1),wu=null,Gd=class extends Oo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Vt(q({},ov),{set:(i,o=!1)=>{i!==we(ov)&&(this.clearTimeout(),ov.set(i),!i&&wu&&(wu=!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(_=>{we(s)&&_&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,t0.combine)({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:_,isInteractiveTime$:p,interactiveTimeIndicator:$})=>{var y,w;if(!(!_||!($!=null&&$.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&wu===null&&(wu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(w=(y=n.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||w.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Su=require("@vkontakte/videoplayer-shared/es2015");var Yd=class extends Oo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Vt(q({},de(null)),{toggle:Su.noop});this.checkIfShouldHide=i=>As(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(we(s)))return;let l=we(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:_}=n.ui.controls,p=we(u),$=we(f);if(l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),_.remove(Ap),!p&&this.graphMadePause&&n.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),_.add(Ap),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,Su.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 nv=require("@vkontakte/videoplayer-shared/es2015"),jd=class extends Oo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:de(!1),isEnabled$:de(!1),type$:de(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new nv.ValueSubject(!1),isEnabled$:new nv.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 Tu=require("@vkontakte/videoplayer-shared/es2015");var Cu=require("@vkontakte/videoplayer-shared/es2015");var i0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?cx({maxCount:t}):void 0,e!==0?ux({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},cx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Cu.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}}},ux=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Cu.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Cu.safeStorage.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o(Vt(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 Zd=class extends Oo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:de({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=i0({maxShowCount:a,timeout:s});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Tu.filterChanged)(),(0,Tu.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 o0=()=>[Kd,Wd,Qd,Gd,Yd,jd,Zd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Vt(q({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var vl=require("@vkontakte/videoplayer-shared/es2015");var px=Object.defineProperty,fx=Object.defineProperties,mx=Object.getOwnPropertyDescriptors,n0=Object.getOwnPropertySymbols,vx=Object.prototype.hasOwnProperty,gx=Object.prototype.propertyIsEnumerable,sv=(t,e,i)=>e in t?px(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Wr=(t,e)=>{for(var i in e||(e={}))vx.call(e,i)&&sv(t,i,e[i]);if(n0)for(var i of n0(e))gx.call(e,i)&&sv(t,i,e[i]);return t},rv=(t,e)=>fx(t,mx(e)),ii=(t,e,i)=>sv(t,typeof e!="symbol"?e+"":e,i),Iu=(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:qi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Xd.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},ml=te(void 0),ku=class extends HTMLElement{constructor(){super(),ii(this,"svelteStubComponent"),ii(this,"svelteRootComponent"),ii(this,"store"),ii(this,"microStoresRoot"),ii(this,"statistics"),ii(this,"sentry"),ii(this,"_shadowRoot"),ii(this,"playerContainer"),ii(this,"rootContainer"),ii(this,"shadowRootContainer"),ii(this,"uiConfig"),ii(this,"coreConfig"),ii(this,"statisticsConfig"),ii(this,"interactiveController"),ii(this,"interactiveContainer"),ii(this,"graphMadePause"),ii(this,"currentPlayingVideoIndex",0),ii(this,"needToRepeatPlaylist",!1),ii(this,"videoConfig"),ii(this,"pictureInPictureApi"),ii(this,"mediaSessionApi"),ii(this,"unsubscribePlayerPhaseSubscription"),ii(this,"logger"),ii(this,"log"),ii(this,"subscription"),ii(this,"interactiveSubscription"),ii(this,"annotationsApi"),ii(this,"slotsApi"),ii(this,"prevIsid"),ii(this,"isInited",!1),ii(this,"internalsExposure",null),ii(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:f,statVKAppId:_,refreshStatAuthToken:p,autoplay:$,isMobile:y,isTouch:w,refDomain:S,deviceId:I,interactiveData:A}=yu(this.videoConfig,i),P=(o=A==null?void 0:A.projectInfo)==null?void 0:o.pid,E=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:T,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&T)return new s0.OneStat(Wr({movieId:T,albumId:d,place:l,trackCode:f,vkAppId:_,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:w!=null?w:y,clip:R,refDomain:S,deviceId:I},P&&(!this.isInited||E)&&{projectId:Number(P)}),Wr({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}),vl.devNull.create("ui"),this.logger=new qi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new qi.Subscription,this.interactiveSubscription=new qi.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=pe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=os(Jm,s)}disconnectedCallback(){var e,i,o,n,a;(e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),vl.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,_;if(!this.videoConfig)return;let{albumId:p,statPlace:$,statAuthToken:y,preload:w,autoplay:S,volume:I,muted:A,fromTime:P,canRewindLive:E,supportLink:T,showAds:R,adsSlotId:z,adsParams:Z={},adsPreviewParam:U,adsAutoplayParam:Q,interfaceLanguage:ee,isCyrillicRelatedInterface:ae,logoClickable:_e,logoHidden:re,isMobile:Pe,isTouch:qe,isAudioDisabled:ie,isLiveCatchUpMode:Le,fullScreenTarget:J,failoverHosts:D,canDownload:Be,callbacks:X,interactiveData:Ge,showThumbTimer:Re,additionalButtons:ue=[],additionalSettingsMenuItems:B=[],additionalContextMenuItems:ce=[],repeat:Ee,saveRate:Ke,volumeMultiplier:lt,showEndScreen:Ae,showAutoplayNext:ye}=yu(this.videoConfig,i),{sources:Me,title:rt,thumbUrl:vt,unitedVideoId:tt,isClip:Ot=!1,duration:st,adsParams:gt={},videoEpisodes:qt,previewThumbsData:Qt,subtitles:Ve,live:se}=e,j=Wr(Wr({},Z),gt),le=this.getNextVideoInfo(),ge={sources:Me,title:rt,thumbUrl:vt,subtitles:Ve,unitedVideoId:tt,isClip:Ot,live:se,albumId:p,statPlace:$,autoplay:S,muted:A,volume:I,fromTime:P,canRewindLive:E,showAds:R,adsSlotId:z,adsParams:j,adsPreviewParam:U,adsAutoplayParam:Q,duration:st,logoClickable:_e,logoHidden:re,isTouch:qe!=null?qe:Pe,repeat:Ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ce={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(ge)}`});let Ne=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),pt=(Ne==null?void 0:Ne.oneStat)||this.createOneStat(e,i);pt&&(this.statistics=new nu(pt,Ne==null?void 0:Ne.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ta(this.uiConfig.sentry,{version:Xs,env:Mc},{movieId:tt,albumId:p,place:$,autoplay:(a=S&&!this.interactiveController)!=null?a:!1,mobile:qe!=null?qe:Pe,clip:Ot}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry=Wr(Wr({},this.sentry),ta.getInstance());let Ye=!!Ge,dt=[],Je="tooltip_interactive_go_back_disabled_first";if(Ye&&this.interactiveController){let ct=this.interactiveController.state.isInitialChapter$.getValue(),oi=this.interactiveController.getHistoryState();ct&&dt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||dt.push("SEEK_TO_INTERACTIVE_BUTTON"),oi.hasPrevChapter$.getValue()||(dt.push("PLAY_PREV_CHAPTER_BUTTON"),ct||(oi.isGoBackLimited$.getValue()?Je="tooltip_interactive_go_back_disabled_limit":Je="tooltip_interactive_go_back_disabled"))}let It=()=>{var ct;this.isInited=!1,this.prevIsid=void 0;let oi=(o==null?void 0:o.info.isEnded$.getValue())&&((ct=this.interactiveController)==null?void 0:ct.state.isEndChapter$.getValue());X.onReplayInteractiveVideo&&!oi?X.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=b1({player:o,interfaceLanguage:ee,isCyrillicRelatedInterface:ae,videoId:tt,isClip:Ot,isLiveCatchUpMode:Le,isAudioDisabled:ie,statAuthToken:y,callbacks:X,webApi:Ce,videoEpisodes:qt,previewThumbsData:Qt,canDownload:Be,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:dt,isInteractive:Ye,saveRate:Ke,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(u=this.interactiveController)==null?void 0:u.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:It,playPrevChapterDisabledTooltip:Je,hasInteractiveBranches:!!((_=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?ue:[],additionalSettingsMenuItems:B!=null?B:[],additionalContextMenuItems:ce!=null?ce:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ee&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:ei}=this.microStoresRoot=o0(),We=()=>{var ct,oi,Bi,Po,Ki,Mo;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Pt=>{var ht;return(ht=X==null?void 0:X.onCurrentFormatChanged)==null?void 0:ht.call(X,Pt)})),this.subscription.add(ei.interactiveControlsOpacity$.subscribe(Pt=>{var ht;Pt!==null&&((ht=this==null?void 0:this.interactiveController)==null||ht.setDisabledControls(Pt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Pt=>{var ht;return(ht=X==null?void 0:X.onThroughputEstimationChanged)==null?void 0:ht.call(X,Pt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Pt=>{var ht;return(ht=X==null?void 0:X.onTrafficSavingEnabledChanged)==null?void 0:ht.call(X,Pt)})),this.subscription.add(new qi.Observable(Pt=>{var ht;(ht=this.store)==null||ht.state.currentPlaybackRate$.subscribe(H=>Pt.next(H))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,qi.skip)(1):Pt=>Pt).subscribe(Pt=>{var ht;return(ht=X==null?void 0:X.onCurrentPlaybackRateChanged)==null?void 0:ht.call(X,Pt)})),this.subscription.add(this.store.state.volume$.subscribe(Pt=>{var ht;return(ht=X==null?void 0:X.onVolumeChange)==null?void 0:ht.call(X,Pt)})),this.subscription.add(this.store.state.muted$.subscribe(Pt=>{var ht,H;return Pt?(ht=X==null?void 0:X.onMute)==null?void 0:ht.call(X):(H=X==null?void 0:X.onUnmute)==null?void 0:H.call(X)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Pt=>{var ht;return(ht=X==null?void 0:X.onVideoBitrateChanged)==null?void 0:ht.call(X,Pt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Pt=>{var ht;let H=(ht=this.store)==null?void 0:ht.ui.controls.disabledControls$;H&&(Pt&&!H.includes(Yl)&&H.add(Yl),Pt||H.remove(Yl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Pt=>Iu(this,null,function*(){var ht;if(!Xd.clientChecker.browser.isSamsungBrowser||!Pt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((ht=this.videoConfig)==null?void 0:ht.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Pt=>{var ht;return(ht=X==null?void 0:X.onVSIDChanged)==null?void 0:ht.call(X,Pt)})),this.initMediaSession(),O(ml,pe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Me,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:rt,thumbUrl:vt,subtitles:Ve,live:se,preload:w,autoplay:S,muted:A,volume:I,fromTime:P,canRewindLive:E,supportLink:T,showAds:R,adsSlotId:z,adsParams:j,adsPreviewParam:U,adsAutoplayParam:Q,duration:st,logoClickable:_e,logoHidden:re,isMobile:qe!=null?qe:Pe,failoverHosts:D,fullScreenTarget:J,saveRate:Ke,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Re,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:lt,showEndScreen:Ae,showAutoplayNext:ye}));let Lo={target:this.playerContainer,props:r(ml)};this.svelteRootComponent=os(jm,Lo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Bi=(oi=(ct=this.videoConfig)==null?void 0:ct.callbacks)==null?void 0:oi.onInited)==null||Bi.call(oi)),(Po=this.internalsExposure)==null||Po.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Mo=(Ki=this.videoConfig)==null?void 0:Ki.callbacks)!=null&&Mo.onDevNullLog)?vl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):vl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Xd.clientChecker.isInited$.subscribe(ct=>{ct&&(console.log("UI SDK async start"),We())}):We()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,u;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(u=a.onPiPExit)==null?void 0:u.call(a)}));let s=a==null?void 0:a.uiInfo;s&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=s.onControlsVisibleChanged)==null?void 0:l.call(s,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=s.onIsMobileChanged)==null?void 0:l.call(s,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=s.onPlayerSizeChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=s.onPrevButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=s.onPlayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=s.onReplayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=s.onNextButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=s.onPlayPrevChapterChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=s.onSeekToInteractiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=s.onGraphButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=s.onLiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=s.onTimeUpdateChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=s.onEpisodesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=s.onSubtitlesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=s.onSettingsChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=s.onFullscreenChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=s.onChromecastChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=s.onPipChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=s.onVkLogoChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=s.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=s.onTimelineChanged)==null?void 0:l.call(s,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,qi.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.unmountComponent(this.svelteRootComponent),this.createPlayer(o,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return Iu(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?we(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:u,historyApi:f,videoLoader:_}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:u,historyApi:f,vkVideoLoader:_,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation}});let{isInteractiveExpectation$:p,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(w=>{if(!this.isInited)return;let S=this.store;w?S.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):S.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(w=>{this.store&&this.store.state.isInteractiveExpectation$.set(w)}));let y=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(w=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=rv(Wr({},w.config),{title:(l==null?void 0:l.title)||w.config.title});let S=y?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(w.player,S),y&&(y=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:w,actionType:S})=>{var I,A,P,E,T,R;if(!this.store||!this.microStoresRoot)return;let z=p.getValue();if(w==="action-choice"&&S==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(jl)),w==="action-choice-canceled"){let Z=we(this.store.state.isPlaying$)||z;if(((P=(I=this.videoConfig)==null?void 0:I.isTouch)!=null?P:(A=this.videoConfig)!=null&&A.isMobile)&&Z){this.store.ui.interactiveHideMobileControls.set(!0);return}(R=(E=this.videoConfig)==null?void 0:(T=E.callbacks).onDisabledInteractiveClick)==null||R.call(T)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:w,removeAllOpenURI:S})=>{this.store&&w==="container-fake-removed"&&S&&this.store.ui.controls.disabledControls$.remove(jl)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let w=this.interactiveController.getHistoryState();this.subscription.add(w.history$.subscribe(S=>{var I,A,P;S.length&&((P=(A=(I=this.videoConfig)==null?void 0:I.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||P.call(A,S))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var w,S,I,A;(w=this.microStoresRoot)==null||w.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(S=this.videoConfig)==null?void 0:(I=S.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(I)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(w=>{this.log({message:w.toString()})}))}catch(a){this.log({message:a.message})}})}initPlayer(e,i={}){var o,n,a,s,d,l,u,f,_,p,$,y,w,S,I,A,P,E,T,R,z,Z,U,Q,ee,ae,_e;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=yu(hx,(0,qi.cloneDeepWith)(e,re=>re instanceof HTMLElement?re:void 0)),this.uiConfig=Xg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new qi.InternalsExposure("UI"))),vl.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,r0.now)()]}),(0,qi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,qi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=(_=this.uiConfig.features.pip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?p:!0,this.uiConfig.features.dpip=(y=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0),this.videoConfig.isTouch=(S=(w=this.uiConfig.isMobile)!=null?w:this.videoConfig.isTouch)!=null?S:this.videoConfig.isMobile,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(A=this.uiConfig.ads.enable)!=null?A:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(E=this.uiConfig.ads.preview)!=null?E:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((T=this.uiConfig.showLogo)!=null?T:!this.videoConfig.logoHidden),(R=this.videoConfig).canRewindLive&&(R.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Z=this.uiConfig.features.endScreen)!=null?Z:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(U=this.uiConfig.features.autoplayNext)!=null?U:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Q=this.uiConfig.features.nextPrevButtons)!=null?Q:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ee=this.videoConfig.videos)!=null&&ee[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let re={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=$u.getLatestSupportedVersion(re):this.pictureInPictureApi=new ia(re)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new _u:void 0,this.slotsApi=this.uiConfig.features.slots?new mu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new xu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&((ae=this.annotationsApi)==null||ae.init(this.rootContainer)),(_e=this.slotsApi)==null||_e.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]),Z1(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();O(ml,pe(rv(Wr({},r(ml)),{showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:o.nextVideoTitle,endScreenVideoThumb:o.nextVideoThumb,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}=Wr({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,O(ml,pe(rv(Wr({},r(ml)),{needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),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 Iu(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingRecover(){var e;this.log({message:"live waiting"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}getDeviceId(){var e,i;return(i=(e=this.statistics)==null?void 0:e.oneStat.getDeviceId())!=null?i:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Iu(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=we(this.store.state.positionExact$),s=we(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe((0,qi.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)}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&&Gs(e)}};var gl=require("@vkontakte/videoplayer-shared/es2015"),Eu=require("@vkontakte/videoplayer-core/es2015"),_x=()=>{window.customElements.define("vk-video-player",ku)};