@vkontakte/videoplayer 1.1.74-dev.7dc0bee9.0 → 1.1.74-dev.e771e267.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,59 +1,59 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.74-dev.7dc0bee9.0
3
- * Fri, 10 Oct 2025 13:05:48 GMT
2
+ * @vkontakte/videoplayer v1.1.74-dev.e771e267.0
3
+ * Tue, 21 Oct 2025 08:11:40 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-74/doc/
5
5
  */
6
- "use strict";var o_=Object.create;var Wl=Object.defineProperty,n_=Object.defineProperties,r_=Object.getOwnPropertyDescriptor,s_=Object.getOwnPropertyDescriptors,a_=Object.getOwnPropertyNames,Jv=Object.getOwnPropertySymbols,l_=Object.getPrototypeOf,eg=Object.prototype.hasOwnProperty,d_=Object.prototype.propertyIsEnumerable;var tg=t=>{throw TypeError(t)};var _p=(t,e,i)=>e in t?Wl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,W=(t,e)=>{for(var i in e||(e={}))eg.call(e,i)&&_p(t,i,e[i]);if(Jv)for(var i of Jv(e))d_.call(e,i)&&_p(t,i,e[i]);return t},Dt=(t,e)=>n_(t,s_(e));var c_=(t,e)=>{for(var i in e)Wl(t,i,{get:e[i],enumerable:!0})},ig=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of a_(e))!eg.call(t,n)&&n!==i&&Wl(t,n,{get:()=>e[n],enumerable:!(o=r_(e,n))||o.enumerable});return t};var og=(t,e,i)=>(i=t!=null?o_(l_(t)):{},ig(e||!t||!t.__esModule?Wl(i,"default",{value:t,enumerable:!0}):i,t)),u_=t=>ig(Wl({},"__esModule",{value:!0}),t);var ir=(t,e,i)=>_p(t,typeof e!="symbol"?e+"":e,i),bp=(t,e,i)=>e.has(t)||tg("Cannot "+i);var Ri=(t,e,i)=>(bp(t,e,"read from private field"),i?i.call(t):e.get(t)),Vs=(t,e,i)=>e.has(t)?tg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ga=(t,e,i,o)=>(bp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),ng=(t,e,i)=>(bp(t,e,"access private method"),i);var _t=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())});var A5={};c_(A5,{ControlButtonType:()=>Qd,GridTypes:()=>Kr,InterfaceLanguage:()=>zl.InterfaceLanguage,MenuItemType:()=>Cl,PlayerPhase:()=>as,VERSION:()=>_a,VKNumericLanguage:()=>zl.VKNumericLanguage,VideoFormat:()=>cp.VideoFormat,VideoQuality:()=>cp.VideoQuality,loadVKLangPack:()=>zl.loadVKLangPack,registerPlayerWebComponent:()=>k5});module.exports=u_(A5);var Rs="[",Ns="[!",ea="]",Jr={};var Yi=Symbol(),Hn=Symbol("filename"),rg=Symbol("hmr"),sg="http://www.w3.org/1999/xhtml",Mc="http://www.w3.org/2000/svg";var $p="@attach";var Lc=!0;var lg,dg,ag=(dg=(lg=globalThis.process)==null?void 0:lg.env)==null?void 0:dg.NODE_ENV,Le=ag&&!ag.toLowerCase().startsWith("prod");var or=Array.isArray,cg=Array.prototype.indexOf,Kl=Array.from,yp=Object.keys,oo=Object.defineProperty,sn=Object.getOwnPropertyDescriptor,Vc=Object.getOwnPropertyDescriptors,xp=Object.prototype,ug=Array.prototype,ta=Object.getPrototypeOf,wp=Object.isExtensible;function Os(t){return typeof t=="function"}var le=()=>{};function pg(t){return t()}function Bs(t){for(var e=0;e<t.length;e++)t[e]()}var Uo=Symbol("$state"),ja=Symbol("legacy props"),fg=Symbol(""),Rc=Symbol("proxy path"),Nc=1,Ya=3,nr=8;function Oc(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 mg(t,e){return t!==e}function Xa(t){return!Za(t,this.v)}function vg(){if(Le){let t=new Error(`derived_references_self
6
+ "use strict";var m_=Object.create;var Gl=Object.defineProperty,v_=Object.defineProperties,g_=Object.getOwnPropertyDescriptor,h_=Object.getOwnPropertyDescriptors,__=Object.getOwnPropertyNames,vg=Object.getOwnPropertySymbols,b_=Object.getPrototypeOf,gg=Object.prototype.hasOwnProperty,$_=Object.prototype.propertyIsEnumerable;var hg=t=>{throw TypeError(t)};var Ip=(t,e,i)=>e in t?Gl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,K=(t,e)=>{for(var i in e||(e={}))gg.call(e,i)&&Ip(t,i,e[i]);if(vg)for(var i of vg(e))$_.call(e,i)&&Ip(t,i,e[i]);return t},Ut=(t,e)=>v_(t,h_(e));var y_=(t,e)=>{for(var i in e)Gl(t,i,{get:e[i],enumerable:!0})},_g=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of __(e))!gg.call(t,n)&&n!==i&&Gl(t,n,{get:()=>e[n],enumerable:!(o=g_(e,n))||o.enumerable});return t};var bg=(t,e,i)=>(i=t!=null?m_(b_(t)):{},_g(e||!t||!t.__esModule?Gl(i,"default",{value:t,enumerable:!0}):i,t)),x_=t=>_g(Gl({},"__esModule",{value:!0}),t);var nr=(t,e,i)=>Ip(t,typeof e!="symbol"?e+"":e,i),kp=(t,e,i)=>e.has(t)||hg("Cannot "+i);var Ni=(t,e,i)=>(kp(t,e,"read from private field"),i?i.call(t):e.get(t)),Rs=(t,e,i)=>e.has(t)?hg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Qa=(t,e,i,o)=>(kp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),$g=(t,e,i)=>(kp(t,e,"access private method"),i);var Ct=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())});var G5={};y_(G5,{ControlButtonType:()=>Zd,GridTypes:()=>Gr,InterfaceLanguage:()=>Ul.InterfaceLanguage,MenuItemType:()=>Sl,PlayerPhase:()=>ps,VERSION:()=>ha,VKNumericLanguage:()=>Ul.VKNumericLanguage,VideoFormat:()=>gp.VideoFormat,VideoQuality:()=>gp.VideoQuality,loadVKLangPack:()=>Ul.loadVKLangPack,registerPlayerWebComponent:()=>Q5});module.exports=x_(G5);var Os="[",Ns="[!",ea="]",rs={};var eo=Symbol(),Ln=Symbol("filename"),yg=Symbol("hmr"),xg="http://www.w3.org/1999/xhtml",Bc="http://www.w3.org/2000/svg";var Ap="@attach";var Dc=!0;var Sg,Cg,wg=(Cg=(Sg=globalThis.process)==null?void 0:Sg.env)==null?void 0:Cg.NODE_ENV,Le=wg&&!wg.toLowerCase().startsWith("prod");var rr=Array.isArray,Tg=Array.prototype.indexOf,jl=Array.from,Pp=Object.keys,so=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,Fc=Object.getOwnPropertyDescriptors,Lp=Object.prototype,Eg=Array.prototype,ta=Object.getPrototypeOf,Mp=Object.isExtensible;function Bs(t){return typeof t=="function"}var de=()=>{};function Ig(t){return t()}function Ds(t){for(var e=0;e<t.length;e++)t[e]()}var Uo=Symbol("$state"),Ga=Symbol("legacy props"),kg=Symbol(""),Hc=Symbol("proxy path"),Uc=1,ja=3,sr=8;function zc(t){return t===this.v}function Ya(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ag(t,e){return t!==e}function Za(t){return!Ya(t,this.v)}function Pg(){if(Le){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 gg(t){if(Le){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 Lg(t){if(Le){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 hg(){if(Le){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 _g(t){if(Le){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 Mg(){if(Le){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 Vg(t){if(Le){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 bg(){if(Le){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 Rg(){if(Le){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 $g(){if(Le){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 Og(){if(Le){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 yg(){if(Le){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 xg(t){if(Le){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 Ng(){if(Le){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 Bg(t){if(Le){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 wg(t){if(Le){let e=new Error(`props_rest_readonly
18
+ https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function Dg(t){if(Le){let e=new Error(`props_rest_readonly
19
19
  Rest element properties of \`$props()\` such as \`${t}\` are readonly
20
- https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Sg(t){if(Le){let e=new Error(`rune_outside_svelte
20
+ https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Fg(t){if(Le){let e=new Error(`rune_outside_svelte
21
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
22
- https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Cg(){if(Le){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 Tg(){if(Le){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 Eg(){if(Le){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` 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 es=!1,ts=!1;function Ig(){es=!0}var ql=null;function hs(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 Hg(){if(Le){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 Ug(){if(Le){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 zg(){if(Le){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` 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 ss=!1,as=!1;function Wg(){ss=!0}var Yl=null;function gs(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let s=0;s<o.length;s++){let l=o[s];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;oo(e,"stack",{value:n.join(`
25
- `)}),oo(e,"name",{value:`${t}Error`})}return e}function Br(t,e){return t.label=e,Bc(t.v,e),t}function Bc(t,e){var i;return(i=t==null?void 0:t[Rc])==null||i.call(t,e),t}function Ja(t){if(Le){let e=new Error(`lifecycle_outside_component
24
+ `];for(let s=0;s<o.length;s++){let l=o[s];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;so(e,"stack",{value:n.join(`
25
+ `)}),so(e,"name",{value:`${t}Error`})}return e}function Fr(t,e){return t.label=e,Wc(t.v,e),t}function Wc(t,e){var i;return(i=t==null?void 0:t[Hc])==null||i.call(t,e),t}function Xa(t){if(Le){let e=new Error(`lifecycle_outside_component
26
26
  \`${t}(...)\` can only be used during component initialisation
27
- 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 Ot=null;function Ql(t){Ot=t}var rr=null;function Gl(t){rr=t}function el(t){return Tp("getContext").get(t)}function tl(t,e){return Tp("setContext").set(t,e),e}function jl(){return Tp("getAllContexts")}function U(t,e=!1,i){var o=Ot={p:Ot,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};es&&!e&&(Ot.l={s:null,u:null,r1:[],r2:xr(!1)}),zo(()=>{o.d=!0}),Le&&(Ot.function=i,rr=i)}function z(t){var l,d;let e=Ot;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=$t,o=At;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];no(s.effect),Wi(s.reaction),So(s.fn)}}finally{no(i),Wi(o)}}Ot=e.p,Le&&(rr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function is(){return!es||Ot!==null&&Ot.l===null}function Tp(t){var e;return Ot===null&&Ja(t),(e=Ot.c)!=null?e:Ot.c=new Map(f_(Ot)||void 0)}function f_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var m_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ni(t){if(typeof t!="object"||t===null||Uo in t)return t;let e=ta(t);if(e!==xp&&e!==ug)return t;var i=new Map,o=or(t),n=Z(0),s=Le&&ts?hs("CreatedAt"):null,l=At,d=f=>{var v=At;Wi(l);var p=f();return Wi(v),p};o&&i.set("length",Z(t.length,s));var a="";function u(f){a=f,Br(n,`${a} version`);for(let[v,p]of i)Br(p,ia(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Cg();var x=i.get(v);return x===void 0?x=d(()=>{var w=Z(p.value,s);return i.set(v,w),Le&&typeof v=="string"&&Br(w,ia(a,v)),w}):B(x,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let y=d(()=>Z(Yi,s));i.set(v,y),Ep(n),Le&&Br(y,ia(a,v))}}else{if(o&&typeof v=="string"){var x=i.get("length"),w=Number(v);Number.isInteger(w)&&w<x.v&&B(x,w)}B(p,Yi),Ep(n)}return!0},get(f,v,p){var C;if(v===Uo)return t;if(Le&&v===Rc)return u;var x=i.get(v),w=v in f;if(x===void 0&&(!w||(C=sn(f,v))!=null&&C.writable)&&(x=d(()=>{var T=ni(w?f[v]:Yi),E=Z(T,s);return Le&&Br(E,ia(a,v)),E}),i.set(v,x)),x!==void 0){var y=r(x);return y===Yi?void 0:y}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var x=i.get(v);x&&(p.value=r(x))}else if(p===void 0){var w=i.get(v),y=w==null?void 0:w.v;if(w!==void 0&&y!==Yi)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return p},has(f,v){var y;if(v===Uo)return!0;var p=i.get(v),x=p!==void 0&&p.v!==Yi||Reflect.has(f,v);if(p!==void 0||$t!==null&&(!x||(y=sn(f,v))!=null&&y.writable)){p===void 0&&(p=d(()=>{var C=x?ni(f[v]):Yi,T=Z(C,s);return Le&&Br(T,ia(a,v)),T}),i.set(v,p));var w=r(p);if(w===Yi)return!1}return x},set(f,v,p,x){var V;var w=i.get(v),y=v in f;if(o&&v==="length")for(var C=p;C<w.v;C+=1){var T=i.get(C+"");T!==void 0?B(T,Yi):C in f&&(T=d(()=>Z(Yi,s)),i.set(C+"",T),Le&&Br(T,ia(a,C)))}if(w===void 0)(!y||(V=sn(f,v))!=null&&V.writable)&&(w=d(()=>Z(void 0,s)),B(w,ni(p)),i.set(v,w),Le&&Br(w,ia(a,v)));else{y=w.v!==Yi;var E=d(()=>ni(p));B(w,E)}var L=Reflect.getOwnPropertyDescriptor(f,v);if(L!=null&&L.set&&L.set.call(x,p),!y){if(o&&typeof v=="string"){var k=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=k.v&&B(k,I+1)}Ep(n)}return!0},ownKeys(f){r(n);var v=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==Yi});for(var[p,x]of i)x.v!==Yi&&!(p in f)&&v.push(p);return v},setPrototypeOf(){Tg()}})}function ia(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:m_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Ep(t,e=1){B(t,t.v+e)}function il(t){try{if(t!==null&&typeof t=="object"&&Uo in t)return t[Uo]}catch(e){}return t}function Ip(t,e){return Object.is(il(t),il(e))}function Dr(t){var e=2050,i=At!==null&&(At.f&2)!==0?At:null;$t===null||i!==null&&(i.f&256)!==0?e|=256:$t.f|=1048576;let o={ctx:Ot,deps:null,effects:null,equals:Oc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:$t};return Le&&ts&&(o.created=hs("CreatedAt")),o}function g(t){let e=Dr(t);return Fc(e),e}function Hr(t){let e=Dr(t);return e.equals=Xa,e}function Dc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ki(e[i])}}var kp=[];function v_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Mp(t){var e,i=$t;if(no(v_(t)),Le){let o=oa;Ap(new Set);try{kp.includes(t)&&vg(),kp.push(t),Dc(t),e=Hc(t)}finally{no(i),Ap(o),kp.pop()}}else try{Dc(t),e=Hc(t)}finally{no(i)}return e}function Lp(t){var e=Mp(t);if(t.equals(e)||(t.v=e,t.wv=Yl()),!_s){var i=(bs||(t.f&256)!==0)&&t.deps!==null?4096:1024;Sn(t,i)}}var oa=new Set,ol=new Map;function Ap(t){oa=t}function xr(t,e){var i={f:0,v:t,reactions:null,equals:Oc,rv:0,wv:0};return Le&&ts&&(i.created=e!=null?e:hs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Z(t,e){let i=xr(t,e);return Fc(i),i}function os(t,e=!1,i=!0){var n,s;let o=xr(t);return e||(o.equals=Xa),es&&i&&Ot!==null&&Ot.l!==null&&((s=(n=Ot.l).s)!=null?s:n.s=[]).push(o),o}function B(t,e,i=!1){var n;At!==null&&(!lr||(At.f&262144)!==0)&&is()&&(At.f&262162)!==0&&!((n=Ko)!=null&&n[1].includes(t)&&Ko[0]===At)&&Eg();let o=i?ni(e):e;return Le&&Bc(o,t.label),nl(t,o)}function nl(t,e){if(!t.equals(e)){var i=t.v;if(_s?ol.set(t,e):ol.set(t,i),t.v=e,Le&&ts&&(t.updated=hs("UpdatedAt"),$t!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Mp(t),Sn(t,(t.f&256)===0?1024:4096)),t.wv=Yl(),Ag(t,2048),is()&&$t!==null&&($t.f&1024)!==0&&($t.f&96)===0&&(ar===null?Pg([t]):ar.push(t)),Le&&oa.size>0){let o=Array.from(oa);for(let n of o)(n.f&1024)!==0&&Sn(n,4096),ra(n)&&rl(n);oa.clear()}}return e}function Ag(t,e){var i=t.reactions;if(i!==null)for(var o=is(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===$t)){if(Le&&(d&262144)!==0){oa.add(l);continue}Sn(l,e),(d&1280)!==0&&((d&2)!==0?Ag(l,4096):Xl(l))}}}var sl="font-weight: bold",al="font-weight: normal";function Mg(t,e,i){Le?console.warn(`%c[svelte] hydration_attribute_changed
27
+ 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 Zl(t){Bt=t}var ar=null;function Xl(t){ar=t}function Ja(t){return Op("getContext").get(t)}function el(t,e){return Op("setContext").set(t,e),e}function Jl(){return Op("getAllContexts")}function z(t,e=!1,i){var o=Bt={p:Bt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ss&&!e&&(Bt.l={s:null,u:null,r1:[],r2:Er(!1)}),zo(()=>{o.d=!0}),Le&&(Bt.function=i,ar=i)}function W(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=bt,o=Pt;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];ao(s.effect),qi(s.reaction),xo(s.fn)}}finally{ao(i),qi(o)}}Bt=e.p,Le&&(ar=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ls(){return!ss||Bt!==null&&Bt.l===null}function Op(t){var e;return Bt===null&&Xa(t),(e=Bt.c)!=null?e:Bt.c=new Map(S_(Bt)||void 0)}function S_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var C_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ii(t){if(typeof t!="object"||t===null||Uo in t)return t;let e=ta(t);if(e!==Lp&&e!==Eg)return t;var i=new Map,o=rr(t),n=J(0),s=Le&&as?gs("CreatedAt"):null,l=Pt,d=f=>{var m=Pt;qi(l);var p=f();return qi(m),p};o&&i.set("length",J(t.length,s));var a="";function u(f){a=f,Fr(n,`${a} version`);for(let[m,p]of i)Fr(p,ia(a,m))}return new Proxy(t,{defineProperty(f,m,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Hg();var x=i.get(m);return x===void 0?x=d(()=>{var y=J(p.value,s);return i.set(m,y),Le&&typeof m=="string"&&Fr(y,ia(a,m)),y}):N(x,p.value,!0),!0},deleteProperty(f,m){var p=i.get(m);if(p===void 0){if(m in f){let w=d(()=>J(eo,s));i.set(m,w),Np(n),Le&&Fr(w,ia(a,m))}}else{if(o&&typeof m=="string"){var x=i.get("length"),y=Number(m);Number.isInteger(y)&&y<x.v&&N(x,y)}N(p,eo),Np(n)}return!0},get(f,m,p){var T;if(m===Uo)return t;if(Le&&m===Hc)return u;var x=i.get(m),y=m in f;if(x===void 0&&(!y||(T=nn(f,m))!=null&&T.writable)&&(x=d(()=>{var C=ii(y?f[m]:eo),E=J(C,s);return Le&&Fr(E,ia(a,m)),E}),i.set(m,x)),x!==void 0){var w=r(x);return w===eo?void 0:w}return Reflect.get(f,m,p)},getOwnPropertyDescriptor(f,m){var p=Reflect.getOwnPropertyDescriptor(f,m);if(p&&"value"in p){var x=i.get(m);x&&(p.value=r(x))}else if(p===void 0){var y=i.get(m),w=y==null?void 0:y.v;if(y!==void 0&&w!==eo)return{enumerable:!0,configurable:!0,value:w,writable:!0}}return p},has(f,m){var w;if(m===Uo)return!0;var p=i.get(m),x=p!==void 0&&p.v!==eo||Reflect.has(f,m);if(p!==void 0||bt!==null&&(!x||(w=nn(f,m))!=null&&w.writable)){p===void 0&&(p=d(()=>{var T=x?ii(f[m]):eo,C=J(T,s);return Le&&Fr(C,ia(a,m)),C}),i.set(m,p));var y=r(p);if(y===eo)return!1}return x},set(f,m,p,x){var B;var y=i.get(m),w=m in f;if(o&&m==="length")for(var T=p;T<y.v;T+=1){var C=i.get(T+"");C!==void 0?N(C,eo):T in f&&(C=d(()=>J(eo,s)),i.set(T+"",C),Le&&Fr(C,ia(a,T)))}if(y===void 0)(!w||(B=nn(f,m))!=null&&B.writable)&&(y=d(()=>J(void 0,s)),N(y,ii(p)),i.set(m,y),Le&&Fr(y,ia(a,m)));else{w=y.v!==eo;var E=d(()=>ii(p));N(y,E)}var V=Reflect.getOwnPropertyDescriptor(f,m);if(V!=null&&V.set&&V.set.call(x,p),!w){if(o&&typeof m=="string"){var I=i.get("length"),L=Number(m);Number.isInteger(L)&&L>=I.v&&N(I,L+1)}Np(n)}return!0},ownKeys(f){r(n);var m=Reflect.ownKeys(f).filter(y=>{var w=i.get(y);return w===void 0||w.v!==eo});for(var[p,x]of i)x.v!==eo&&!(p in f)&&m.push(p);return m},setPrototypeOf(){Ug()}})}function ia(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:C_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Np(t,e=1){N(t,t.v+e)}function tl(t){try{if(t!==null&&typeof t=="object"&&Uo in t)return t[Uo]}catch(e){}return t}function Bp(t,e){return Object.is(tl(t),tl(e))}function Hr(t){var e=2050,i=Pt!==null&&(Pt.f&2)!==0?Pt:null;bt===null||i!==null&&(i.f&256)!==0?e|=256:bt.f|=1048576;let o={ctx:Bt,deps:null,effects:null,equals:zc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:bt};return Le&&as&&(o.created=gs("CreatedAt")),o}function g(t){let e=Hr(t);return Qc(e),e}function Ur(t){let e=Hr(t);return e.equals=Za,e}function Kc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Qi(e[i])}}var Dp=[];function T_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Up(t){var e,i=bt;if(ao(T_(t)),Le){let o=oa;Fp(new Set);try{Dp.includes(t)&&Pg(),Dp.push(t),Kc(t),e=qc(t)}finally{ao(i),Fp(o),Dp.pop()}}else try{Kc(t),e=qc(t)}finally{ao(i)}return e}function zp(t){var e=Up(t);if(t.equals(e)||(t.v=e,t.wv=ed()),!hs){var i=(_s||(t.f&256)!==0)&&t.deps!==null?4096:1024;vn(t,i)}}var oa=new Set,il=new Map;function Fp(t){oa=t}function Er(t,e){var i={f:0,v:t,reactions:null,equals:zc,rv:0,wv:0};return Le&&as&&(i.created=e!=null?e:gs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function J(t,e){let i=Er(t,e);return Qc(i),i}function ds(t,e=!1,i=!0){var n,s;let o=Er(t);return e||(o.equals=Za),ss&&i&&Bt!==null&&Bt.l!==null&&((s=(n=Bt.l).s)!=null?s:n.s=[]).push(o),o}function N(t,e,i=!1){var n;Pt!==null&&(!cr||(Pt.f&262144)!==0)&&ls()&&(Pt.f&262162)!==0&&!((n=Ko)!=null&&n[1].includes(t)&&Ko[0]===Pt)&&zg();let o=i?ii(e):e;return Le&&Wc(o,t.label),ol(t,o)}function ol(t,e){if(!t.equals(e)){var i=t.v;if(hs?il.set(t,e):il.set(t,i),t.v=e,Le&&as&&(t.updated=gs("UpdatedAt"),bt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Up(t),vn(t,(t.f&256)===0?1024:4096)),t.wv=ed(),qg(t,2048),ls()&&bt!==null&&(bt.f&1024)!==0&&(bt.f&96)===0&&(dr===null?Qg([t]):dr.push(t)),Le&&oa.size>0){let o=Array.from(oa);for(let n of o)(n.f&1024)!==0&&vn(n,4096),ra(n)&&nl(n);oa.clear()}}return e}function qg(t,e){var i=t.reactions;if(i!==null)for(var o=ls(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===bt)){if(Le&&(d&262144)!==0){oa.add(l);continue}vn(l,e),(d&1280)!==0&&((d&2)!==0?qg(l,4096):id(l))}}}var rl="font-weight: bold",sl="font-weight: normal";function Gg(t,e,i){Le?console.warn(`%c[svelte] hydration_attribute_changed
28
28
  %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
29
- https://svelte.dev/e/hydration_attribute_changed`,sl,al):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Lg(t){Le?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,rl,sl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function jg(t){Le?console.warn(`%c[svelte] hydration_html_changed
30
30
  %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"}
31
- https://svelte.dev/e/hydration_html_changed`,sl,al):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ds(t){Le?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,rl,sl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Fs(t){Le?console.warn(`%c[svelte] hydration_mismatch
32
32
  %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"}
33
- https://svelte.dev/e/hydration_mismatch`,sl,al):console.warn("https://svelte.dev/e/hydration_mismatch")}function Vg(){Le?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,rl,sl):console.warn("https://svelte.dev/e/hydration_mismatch")}function Yg(){Le?console.warn(`%c[svelte] lifecycle_double_unmount
34
34
  %cTried to unmount a component that was not mounted
35
- https://svelte.dev/e/lifecycle_double_unmount`,sl,al):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Rg(){Le?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",sl,al):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Uc(t){Le?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,rl,sl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Zg(){Le?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",rl,sl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Gc(t){Le?console.warn(`%c[svelte] state_proxy_equality_mismatch
36
36
  %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`,sl,al):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var tt=!1;function ro(t){tt=t}var yt;function $i(t){if(t===null)throw Ds(),Jr;return yt=t}function qi(){return $i(qo(yt))}function h(t){if(tt){if(qo(yt)!==null)throw Ds(),Jr;yt=t}}function Ce(t=1){if(tt){for(var e=t,i=yt;e--;)i=qo(i);yt=i}}function sa(){for(var t=0,e=yt;;){if(e.nodeType===nr){var i=e.data;if(i===ea){if(t===0)return e;t-=1}else(i===Rs||i===Ns)&&(t+=1)}var o=qo(e);e.remove(),e=o}}function zc(t){if(!t||t.nodeType!==nr)throw Ds(),Jr;return t.data}function Ng(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(il(this[a])===s){Uc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(il(this[a])===s){Uc("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=n.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(il(this[a])===s){Uc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var aa,Og,Jl,Bg,Dg;function Wc(){if(aa===void 0){aa=window,Og=document,Jl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Bg=sn(e,"firstChild").get,Dg=sn(e,"nextSibling").get,wp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),wp(i)&&(i.__t=void 0),Le&&(t.__svelte_meta=null,Ng())}}function Cn(t=""){return document.createTextNode(t)}function Si(t){return Bg.call(t)}function qo(t){return Dg.call(t)}function _(t,e){if(!tt)return Si(t);var i=Si(yt);if(i===null)i=yt.appendChild(Cn());else if(e&&i.nodeType!==Ya){var o=Cn();return i==null||i.before(o),$i(o),o}return $i(i),i}function he(t,e){var n,s;if(!tt){var i=Si(t);return i.nodeType===8&&i.data===""?qo(i):i}if(e&&((n=yt)==null?void 0:n.nodeType)!==Ya){var o=Cn();return(s=yt)==null||s.before(o),$i(o),o}return yt}function A(t,e=1,i=!1){let o=tt?yt:t;for(var n;e--;)n=o,o=qo(o);if(!tt)return o;if(i&&(o==null?void 0:o.nodeType)!==Ya){var s=Cn();return o===null?n==null||n.after(s):o.before(s),$i(s),s}return $i(o),o}function ed(t){t.textContent=""}function Np(t){$t===null&&At===null&&_g(t),At!==null&&(At.f&256)!==0&&$t===null&&hg(),_s&&gg(t)}function g_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function la(t,e,i,o=!0){var a;var n=$t;if(Le)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Ot,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(Le&&(s.component_function=rr),i)try{rl(s),s.f|=32768}catch(u){throw Ki(s),u}else e!==null&&Xl(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(n!==null&&g_(s,n),At!==null&&(At.f&2)!==0)){var d=At;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function zo(t){let e=la(8,null,!1);return Sn(e,1024),e.teardown=t,e}function qe(t){var n;Np("$effect");var e=$t!==null&&($t.f&32)!==0&&Ot!==null&&!Ot.m;if(Le&&oo(t,"name",{value:"$effect"}),e){var i=Ot;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:$t,reaction:At})}else{var o=So(t);return o}}function od(t){return Np("$effect.pre"),Le&&oo(t,"name",{value:"$effect.pre"}),Qo(t)}function Qc(t){let e=la(64,t,!0);return()=>{Ki(e)}}function Fg(t){let e=la(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Wn(e,()=>{Ki(e),o(void 0)}):(Ki(e),o(void 0))})}function So(t){return la(4,t,!1)}function Qo(t){return la(8,t,!0)}function D(t,e=[],i=Dr){if(Le)return Qo(()=>{var n=$t,s=()=>t(...l.map(r));oo(n.fn,"name",{value:"{expression}"}),oo(s,"name",{value:"{expression}"});let l=e.map(i);Qi(s)});let o=e.map(i);return Qi(()=>t(...o.map(r)))}function Qi(t,e=0){return la(24|e,t,!0)}function Ni(t,e=!0){return la(40,t,!0,e)}function Op(t){var e=t.teardown;if(e!==null){let i=_s,o=At;Vp(!0),Wi(null);try{e.call(null)}finally{Vp(i),Wi(o)}}}function Bp(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:Ki(i,e),i=o}}function Ug(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ki(e),e=i}}function Ki(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Dp(t.nodes_start,t.nodes_end),i=!0),Bp(t,e&&!i),nd(t,0),Sn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Op(t);var n=t.parent;n!==null&&n.first!==null&&Hp(t),Le&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Dp(t,e){for(;t!==null;){var i=t===e?null:qo(t);t.remove(),t=i}}function Hp(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 Wn(t,e){var i=[];Gc(t,i,!0),Fp(i,()=>{Ki(t),e&&e()})}function Fp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Gc(t,e,i){if((t.f&8192)===0){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,s=(o.f&65536)!==0||(o.f&32)!==0;Gc(o,e,s?i:!1),o=n}}}function ys(t){zg(t,!0)}function zg(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;zg(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var rd=[],Up=[];function Wg(){var t=rd;rd=[],Bs(t)}function h_(){var t=Up;Up=[],Bs(t)}function Tn(t){rd.length===0&&queueMicrotask(Wg),rd.push(t)}function Kg(){rd.length>0&&Wg(),Up.length>0&&h_()}function Qg(t){var e=$t;if(Le&&t instanceof Error&&__(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else sd(t,e)}function sd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var qg=new WeakSet;function __(t,e){var l,d;if(qg.has(t))return;qg.add(t);let i=sn(t,"message");if(!(i&&!i.configurable)){for(var o=Jl?" ":" ",n=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,rl,sl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Xe=!1;function lo(t){Xe=t}var $t;function yi(t){if(t===null)throw Fs(),rs;return $t=t}function Gi(){return yi(qo($t))}function h(t){if(Xe){if(qo($t)!==null)throw Fs(),rs;$t=t}}function xe(t=1){if(Xe){for(var e=t,i=$t;e--;)i=qo(i);$t=i}}function sa(){for(var t=0,e=$t;;){if(e.nodeType===sr){var i=e.data;if(i===ea){if(t===0)return e;t-=1}else(i===Os||i===Ns)&&(t+=1)}var o=qo(e);e.remove(),e=o}}function jc(t){if(!t||t.nodeType!==sr)throw Fs(),rs;return t.data}function Xg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(tl(this[a])===s){Gc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(tl(this[a])===s){Gc("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=n.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(tl(this[a])===s){Gc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var aa,Jg,od,eh,th;function Yc(){if(aa===void 0){aa=window,Jg=document,od=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;eh=nn(e,"firstChild").get,th=nn(e,"nextSibling").get,Mp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Mp(i)&&(i.__t=void 0),Le&&(t.__svelte_meta=null,Xg())}}function gn(t=""){return document.createTextNode(t)}function Ei(t){return eh.call(t)}function qo(t){return th.call(t)}function _(t,e){if(!Xe)return Ei(t);var i=Ei($t);if(i===null)i=$t.appendChild(gn());else if(e&&i.nodeType!==ja){var o=gn();return i==null||i.before(o),yi(o),o}return yi(i),i}function me(t,e){var n,s;if(!Xe){var i=Ei(t);return i.nodeType===8&&i.data===""?qo(i):i}if(e&&((n=$t)==null?void 0:n.nodeType)!==ja){var o=gn();return(s=$t)==null||s.before(o),yi(o),o}return $t}function k(t,e=1,i=!1){let o=Xe?$t:t;for(var n;e--;)n=o,o=qo(o);if(!Xe)return o;if(i&&(o==null?void 0:o.nodeType)!==ja){var s=gn();return o===null?n==null||n.after(s):o.before(s),yi(s),s}return yi(o),o}function nd(t){t.textContent=""}function qp(t){bt===null&&Pt===null&&Vg(t),Pt!==null&&(Pt.f&256)!==0&&bt===null&&Mg(),hs&&Lg(t)}function E_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function la(t,e,i,o=!0){var a;var n=bt;if(Le)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Bt,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(Le&&(s.component_function=ar),i)try{nl(s),s.f|=32768}catch(u){throw Qi(s),u}else e!==null&&id(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(n!==null&&E_(s,n),Pt!==null&&(Pt.f&2)!==0)){var d=Pt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function zo(t){let e=la(8,null,!1);return vn(e,1024),e.teardown=t,e}function qe(t){var n;qp("$effect");var e=bt!==null&&(bt.f&32)!==0&&Bt!==null&&!Bt.m;if(Le&&so(t,"name",{value:"$effect"}),e){var i=Bt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:bt,reaction:Pt})}else{var o=xo(t);return o}}function ad(t){return qp("$effect.pre"),Le&&so(t,"name",{value:"$effect.pre"}),Qo(t)}function Jc(t){let e=la(64,t,!0);return()=>{Qi(e)}}function oh(t){let e=la(64,t,!0);return(i={})=>new Promise(o=>{i.outro?On(e,()=>{Qi(e),o(void 0)}):(Qi(e),o(void 0))})}function xo(t){return la(4,t,!1)}function Qo(t){return la(8,t,!0)}function D(t,e=[],i=Hr){if(Le)return Qo(()=>{var n=bt,s=()=>t(...l.map(r));so(n.fn,"name",{value:"{expression}"}),so(s,"name",{value:"{expression}"});let l=e.map(i);ji(s)});let o=e.map(i);return ji(()=>t(...o.map(r)))}function ji(t,e=0){return la(24|e,t,!0)}function Bi(t,e=!0){return la(40,t,!0,e)}function Qp(t){var e=t.teardown;if(e!==null){let i=hs,o=Pt;Wp(!0),qi(null);try{e.call(null)}finally{Wp(i),qi(o)}}}function Gp(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:Qi(i,e),i=o}}function nh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Qi(e),e=i}}function Qi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(jp(t.nodes_start,t.nodes_end),i=!0),Gp(t,e&&!i),ld(t,0),vn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Qp(t);var n=t.parent;n!==null&&n.first!==null&&Yp(t),Le&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function jp(t,e){for(;t!==null;){var i=t===e?null:qo(t);t.remove(),t=i}}function Yp(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 On(t,e){var i=[];eu(t,i,!0),Zp(i,()=>{Qi(t),e&&e()})}function Zp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function eu(t,e,i){if((t.f&8192)===0){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,s=(o.f&65536)!==0||(o.f&32)!==0;eu(o,e,s?i:!1),o=n}}}function $s(t){rh(t,!0)}function rh(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;rh(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var dd=[],Xp=[];function sh(){var t=dd;dd=[],Ds(t)}function I_(){var t=Xp;Xp=[],Ds(t)}function hn(t){dd.length===0&&queueMicrotask(sh),dd.push(t)}function ah(){dd.length>0&&sh(),Xp.length>0&&I_()}function dh(t){var e=bt;if(Le&&t instanceof Error&&k_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else cd(t,e)}function cd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var lh=new WeakSet;function k_(t,e){var l,d;if(lh.has(t))return;lh.add(t);let i=nn(t,"message");if(!(i&&!i.configurable)){for(var o=od?" ":" ",n=`
38
38
  ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)n+=`
39
- ${o}in ${(d=s.function)==null?void 0:d[Hn].split("/").pop()}`,s=s.p;oo(t,"message",{value:t.message+`
39
+ ${o}in ${(d=s.function)==null?void 0:d[Ln].split("/").pop()}`,s=s.p;so(t,"message",{value:t.message+`
40
40
  ${n}
41
- `}),t.stack&&oo(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&so(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var da=!1,ll=null,ca=!1,_s=!1;function Vp(t){_s=t}var ad=[],ld=[],At=null,lr=!1;function Wi(t){At=t}var $t=null;function no(t){$t=t}var Ko=null;function Fc(t){At!==null&&At.f&2097152&&(Ko===null?Ko=[At,[t]]:Ko[1].push(t))}var En=null,dr=0,ar=null;function Pg(t){ar=t}var Yg=1,Yc=0,bs=!1,Zc=null;function Yl(){return++Yg}function ra(t){var v,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,s,l=(e&512)!==0,d=o&&$t!==null&&!bs,a=i.length;if(l||d){var u=t,f=u.parent;for(n=0;n<a;n++)s=i[n],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<a;n++)if(s=i[n],ra(s)&&Lp(s),s.wv>t.wv)return!0}(!o||$t!==null&&!bs)&&Sn(t,1024)}return!1}function Zg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];Ko!=null&&Ko[1].includes(t)&&Ko[0]===At||((s.f&2)!==0?Zg(s,e,!1):e===s&&(i?Sn(s,2048):(s.f&1024)!==0&&Sn(s,4096),Xl(s)))}}function Hc(t){var x,w;var e=En,i=dr,o=ar,n=At,s=bs,l=Ko,d=Ot,a=lr,u=t.f;En=null,dr=0,ar=null,bs=(u&256)!==0&&(lr||!ca||At===null),At=(u&96)===0?t:null,Ko=null,Ql(t.ctx),lr=!1,Yc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(En!==null){var p;if(nd(t,dr),v!==null&&dr>0)for(v.length=dr+En.length,p=0;p<En.length;p++)v[dr+p]=En[p];else t.deps=v=En;if(!bs||(u&2)!==0&&t.reactions!==null)for(p=dr;p<v.length;p++)((w=(x=v[p]).reactions)!=null?w:x.reactions=[]).push(t)}else v!==null&&dr<v.length&&(nd(t,dr),v.length=dr);if(is()&&ar!==null&&!lr&&v!==null&&(t.f&6146)===0)for(p=0;p<ar.length;p++)Zg(ar[p],t);return n!==null&&n!==t&&(Yc++,ar!==null&&(o===null?o=ar:o.push(...ar))),f}catch(y){Qg(y)}finally{En=e,dr=i,ar=o,At=n,bs=s,Ko=l,Ql(d),lr=a,t.f^=2097152}}function b_(t,e){let i=e.reactions;if(i!==null){var o=cg.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&&(En===null||!En.includes(e))&&(Sn(e,4096),(e.f&768)===0&&(e.f^=512),Dc(e),nd(e,0))}function nd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)b_(t,i[o])}function rl(t){var e=t.f;if((e&16384)===0){Sn(t,1024);var i=$t,o=ca;if($t=t,ca=!0,Le){var n=rr;Gl(t.component_function)}try{(e&16)!==0?Ug(t):Bp(t),Op(t);var s=Hc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Yg,Le&&ts&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Yl(),l.set_during_effect=!1);Le&&ld.push(t)}finally{ca=o,$t=i,Le&&Gl(n)}}}function Gg(){console.error("Last ten effects were: ",ld.slice(-10).map(t=>t.fn)),ld=[]}function $_(){try{bg()}catch(t){if(Le&&oo(t,"stack",{value:""}),ll!==null)if(Le)try{sd(t,ll)}catch(e){throw Gg(),e}else sd(t,ll);else throw Le&&Gg(),t}}function Wp(){var t=ca;try{var e=0;for(ca=!0;ad.length>0;){e++>1e3&&$_();var i=ad,o=i.length;ad=[];for(var n=0;n<o;n++){var s=x_(i[n]);y_(s)}ol.clear()}}finally{da=!1,ca=t,ll=null,Le&&(ld=[])}}function y_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ra(o)&&(rl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Hp(o):o.fn=null))}}function Xl(t){da||(da=!0,queueMicrotask(Wp));for(var e=ll=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}ad.push(e)}function x_(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,s=n&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:ra(i)&&rl(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function dl(t){var e;for(t&&(da=!0,Wp(),da=!0,e=t());;){if(Kg(),ad.length===0)return da=!1,ll=null,Le&&(ld=[]),e;da=!0,Wp()}}function Co(){return _t(this,null,function*(){yield Promise.resolve(),dl()})}function r(t){var e=t.f,i=(e&2)!==0;if(Zc!==null&&Zc.add(t),At!==null&&!lr){if(!(Ko!=null&&Ko[1].includes(t))||Ko[0]!==At){var o=At.deps;t.rv<Yc&&(t.rv=Yc,En===null&&o!==null&&o[dr]===t?dr++:En===null?En=[t]:(!bs||!En.includes(t))&&En.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,s=n.parent;s!==null&&(s.f&256)===0&&(n.f^=256)}if(i&&(n=t,ra(n)&&Lp(n)),Le&&ts&&!lr&&ql!==null&&At!==null&&ql.reaction===At)if(t.trace)t.trace();else{var l=hs("TracedAt");if(l){var d=ql.entries.get(t);d===void 0&&(d={traces:[]},ql.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return _s&&ol.has(t)?ol.get(t):t.v}function Et(t){var e=lr;try{return lr=!0,t()}finally{lr=e}}var w_=-7169;function Sn(t,e){t.f=t.f&w_|e}function Jc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Uo in t)Xc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Uo in i&&Xc(i)}}}function Xc(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{Xc(t[o],e)}catch(n){}let i=ta(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Vc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function Kp(t,e){if(e){let i=document.body;t.autofocus=!0,Tn(()=>{document.activeElement===i&&t.focus()})}}function dd(t){var e=At,i=$t;Wi(null),no(null);try{return t()}finally{Wi(e),no(i)}}var qp=new Set,eu=new Set;function ua(t){if(!tt)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Qp(t,e,i,o={}){function n(s){if(o.capture||cl.call(e,s),!s.cancelBubble)return dd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Tn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function kt(t,e,i,o,n){var s={capture:o,passive:n},l=Qp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&zo(()=>{e.removeEventListener(t,l,s)})}function pt(t){for(var e=0;e<t.length;e++)qp.add(t[e]);for(var i of eu)i(t)}function cl(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],s=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 u=n.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=n[l]||t.target,s!==e){oo(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=At,v=$t;Wi(null),no(null);try{for(var p,x=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+o];if(y!=null&&(!s.disabled||t.target===s))if(or(y)){var[C,...T]=y;C.apply(s,[t,...T])}else y.call(s,t)}catch(L){p?x.push(L):p=L}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let L of x)queueMicrotask(()=>{throw L});throw p}}finally{t.__root=e,delete t.currentTarget,Wi(f),no(v)}}}var C_;function Xg(){C_=void 0}function ul(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function To(t,e){var i=$t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(tt)return To(yt,null),yt;n===void 0&&(n=ul(s?t:"<!>"+t),i||(n=Si(n)));var l=o||Jl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=Si(l),a=l.lastChild;To(d,a)}else To(l,l);return l}}function I_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(tt)return To(yt,null),yt;if(!l){var d=ul(s),a=Si(d);if(n)for(l=document.createDocumentFragment();Si(a);)l.appendChild(Si(a));else l=Si(a)}var u=l.cloneNode(!0);if(n){var f=Si(u),v=u.lastChild;To(f,v)}else To(u,u);return u}}function Te(t,e){return I_(t,e,"svg")}function ns(t=""){if(!tt){var e=Cn(t+"");return To(e,e),e}var i=yt;return i.nodeType!==Ya&&(i.before(i=Cn()),$i(i)),To(i,i),i}function Qe(){if(tt)return To(yt,null),yt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Cn();return t.append(e,i),To(e,i),t}function $(t,e){if(tt){$t.nodes_end=yt,qi();return}t!==null&&t.before(e)}var k_=/\r/g;function eh(t){t=t.replace(k_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function th(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var A_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ih(t){return A_.includes(t)}var P_=["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 M_={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 oh(t){var e;return t=t.toLowerCase(),(e=M_[t])!=null?e:t}var bS=[...P_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var L_=["touchstart","touchmove"];function nh(t){return L_.includes(t)}var V_=["$state","$state.raw","$derived","$derived.by"],$S=[...V_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var R_=["textarea","script","style","title"];function rh(t){return R_.includes(t)}function tu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var cd=!0;function iu(t){cd=t}function $e(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 rs(t,e){return sh(t,e)}function jp(t,e){var l;Wc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=tt,n=yt;try{for(var s=Si(i);s&&(s.nodeType!==nr||s.data!==Rs);)s=qo(s);if(!s)throw Jr;ro(!0),$i(s),qi();let d=sh(t,Dt(W({},e),{anchor:s}));if(yt===null||yt.nodeType!==nr||yt.data!==ea)throw Ds(),Jr;return ro(!1),d}catch(d){if(d===Jr)return e.recover===!1&&$g(),Wc(),ed(i),ro(!1),rs(t,e);throw d}finally{ro(o),$i(n),Xg()}}var pl=new Map;function sh(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){Wc();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var x=v[p];if(!d.has(x)){d.add(x);var w=nh(x);e.addEventListener(x,cl,{passive:w});var y=pl.get(x);y===void 0?(document.addEventListener(x,cl,{passive:w}),pl.set(x,1)):pl.set(x,y+1)}}};a(Kl(qp)),eu.add(a);var u=void 0,f=Fg(()=>{var v=i!=null?i:e.appendChild(Cn());return Ni(()=>{if(s){U({});var p=Ot;p.c=s}n&&(o.$$events=n),tt&&To(v,null),cd=l,u=t(v,o)||{},cd=!0,tt&&($t.nodes_end=yt),s&&z()}),()=>{var w;for(var p of d){e.removeEventListener(p,cl);var x=pl.get(p);--x===0?(document.removeEventListener(p,cl),pl.delete(p)):pl.set(p,x)}eu.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return Gp.set(u,f),u}var Gp=new WeakMap;function pa(t,e){let i=Gp.get(t);return i?(Gp.delete(t),i(e)):(Le&&Vg(),Promise.resolve())}function xe(t,e,...i){var o=t,n=le,s;Qi(()=>{n!==(n=e())&&(s&&(Ki(s),s=null),Le&&n==null&&yg(),s=Ni(()=>n(o,...i)))},65536),tt&&(o=yt)}if(Le){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Sg(e)},set:o=>{i=o}})}};D_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var D_;function Rt(t){Ot===null&&Ja("onMount"),es&&Ot.l!==null?B_(Ot).m.push(t):qe(()=>{let e=Et(t);if(typeof e=="function")return e})}function dn(t){Ot===null&&Ja("onDestroy"),Rt(()=>()=>Et(t))}function B_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var ah=new Map;function lh(t,e){var i=ah.get(t);i||(i=new Set,ah.set(t,i)),i.add(e)}function R(t,e,[i,o]=[0,0]){tt&&i===0&&qi();var n=t,s=null,l=null,d=Yi,a=i>0?65536:0,u=!1;let f=(p,x=!0)=>{u=!0,v(x,p)},v=(p,x)=>{if(d===(d=p))return;let w=!1;if(tt&&o!==-1){if(i===0){let C=zc(n);C===Rs?o=0:C===Ns?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=sa(),$i(n),ro(!1),w=!0,o=-1)}d?(s?ys(s):x&&(s=Ni(()=>x(n))),l&&Wn(l,()=>{l=null})):(l?ys(l):x&&(l=Ni(()=>x(n,[i+1,o]))),s&&Wn(s,()=>{s=null})),w&&ro(!0)};Qi(()=>{u=!1,e(f),u||v(null,null)},a),tt&&(n=yt)}function fa(t,e,i){tt&&qi();var o=t,n=Yi,s,l=is()?mg:Za;Qi(()=>{l(n,n=e())&&(s&&Wn(s),s=Ni(()=>i(o)))}),tt&&(o=yt)}var Fs=null;function Xp(t){Fs=t}function ud(t,e){return e}function U_(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)Gc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;ed(a),a.append(i),o.clear(),Hs(t,e[0].prev,e[s-1].next)}Fp(n,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Hs(t,f.prev,f.next)),Ki(f.e,!d)}})}function Ii(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=tt?$i(Si(u)):u.appendChild(Cn())}tt&&qi();var f=null,v=!1,p=Hr(()=>{var x=i();return or(x)?x:x==null?[]:Kl(x)});Qi(()=>{var x=r(p),w=x.length;if(v&&w===0)return;v=w===0;let y=!1;if(tt){var C=zc(l)===Ns;C!==(w===0)&&(l=sa(),$i(l),ro(!1),y=!0)}if(tt){for(var T=null,E,L=0;L<w;L++){if(yt.nodeType===nr&&yt.data===ea){l=yt,y=!0,ro(!1);break}var k=x[L],I=o(k,L);E=uh(yt,d,T,null,k,I,L,n,e,i),d.items.set(I,E),T=E}w>0&&$i(sa())}tt||z_(x,d,l,n,e,o,i),s!==null&&(w===0?f?ys(f):f=Ni(()=>s(l)):f!==null&&Wn(f,()=>{f=null})),y&&ro(!0),r(p)}),tt&&(l=yt)}function z_(t,e,i,o,n,s,l){var oe,fe,_e,pe;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,v=e.first,p=v,x,w=null,y,C=[],T=[],E,L,k,I;if(d)for(I=0;I<u;I+=1)E=t[I],L=s(E,I),k=f.get(L),k!==void 0&&((oe=k.a)==null||oe.measure(),(y!=null?y:y=new Set).add(k));for(I=0;I<u;I+=1){if(E=t[I],L=s(E,I),k=f.get(L),k===void 0){var V=p?p.e.nodes_start:i;w=uh(V,e,w,w===null?e.first:w.next,E,L,I,o,n,l),f.set(L,w),C=[],T=[],p=w.next;continue}if(a&&W_(k,E,I,n),(k.e.f&8192)!==0&&(ys(k.e),d&&((fe=k.a)==null||fe.unfix(),(y!=null?y:y=new Set).delete(k))),k!==p){if(x!==void 0&&x.has(k)){if(C.length<T.length){var j=T[0],H;w=j.prev;var F=C[0],K=C[C.length-1];for(H=0;H<C.length;H+=1)dh(C[H],j,i);for(H=0;H<T.length;H+=1)x.delete(T[H]);Hs(e,F.prev,K.next),Hs(e,w,F),Hs(e,K,j),p=j,w=K,I-=1,C=[],T=[]}else x.delete(k),dh(k,p,i),Hs(e,k.prev,k.next),Hs(e,k,w===null?e.first:w.next),Hs(e,w,k),w=k;continue}for(C=[],T=[];p!==null&&p.k!==L;)(p.e.f&8192)===0&&(x!=null?x:x=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;k=p}C.push(k),w=k,p=k.next}if(p!==null||x!==void 0){for(var ee=x===void 0?[]:Kl(x);p!==null;)(p.e.f&8192)===0&&ee.push(p),p=p.next;var Y=ee.length;if(Y>0){var de=(n&4)!==0&&u===0?i:null;if(d){for(I=0;I<Y;I+=1)(_e=ee[I].a)==null||_e.measure();for(I=0;I<Y;I+=1)(pe=ee[I].a)==null||pe.fix()}U_(e,ee,de,f)}}d&&Tn(()=>{var Oe;if(y!==void 0)for(k of y)(Oe=k.a)==null||Oe.apply()}),$t.first=e.first&&e.first.e,$t.last=w&&w.e}function W_(t,e,i,o){(o&1)!==0&&nl(t.v,e),(o&2)!==0?nl(t.i,i):t.i=i}function uh(t,e,i,o,n,s,l,d,a,u){var f=Fs,v=(a&1)!==0,p=(a&16)===0,x=v?p?os(n,!1,!1):xr(n):n,w=(a&2)===0?l:xr(l);Le&&v&&(x.trace=()=>{var C=typeof w=="number"?l:w.v;u()[C]});var y={i:w,v:x,k:s,a:null,e:null,prev:i,next:o};Fs=y;try{return y.e=Ni(()=>d(t,x,w,u),tt),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Fs=f}}function dh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=qo(s);n.before(s),s=l}}function Hs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function K_(t,e,i){var s,l;if(!e||e===eh(String(i!=null?i:"")))return;let o,n=(s=t.__svelte_meta)==null?void 0:s.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=rr)!=null&&l[Hn]&&(o=`in ${rr[Hn]}`),Lg(tu(o))}function pd(t,e,i=!1,o=!1,n=!1){var s=t,l="";D(()=>{var x;var d=$t;if(l===(l=(x=e())!=null?x:"")){tt&&qi();return}if(d.nodes_start!==null&&(Dp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(tt){for(var a=yt.data,u=qi(),f=u;u!==null&&(u.nodeType!==nr||u.data!=="");)f=u,u=qo(u);if(u===null)throw Ds(),Jr;Le&&!n&&K_(u.parentNode,a,l),To(yt,f),s=$i(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=ul(v);if((i||o)&&(p=Si(p)),To(Si(p),p.lastChild),i||o)for(;Si(p);)s.before(Si(p));else s.before(p)}})}function ki(t,e,i){tt&&qi();var o=t,n,s;Qi(()=>{n!==(n=e())&&(s&&(Wn(s),s=null),n&&(s=Ni(()=>i(o,n))))},65536),tt&&(o=yt)}function ma(t,e,i,o,n,s){var w;let l=tt;tt&&qi();var d=Le&&s&&((w=Ot)==null?void 0:w.function[Hn]),a,u,f=null;tt&&yt.nodeType===Nc&&(f=yt,qi());var v=tt?yt:t,p,x=Fs;Qi(()=>{let y=e()||null;var C=n?n():i||y==="svg"?Mc:null;if(y!==a){var T=Fs;Xp(x),p&&(y===null?Wn(p,()=>{p=null,u=null}):y===u?ys(p):(Ki(p),iu(!1))),y&&y!==u&&(p=Ni(()=>{if(f=tt?f:C?document.createElementNS(C,y):document.createElement(y),Le&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),To(f,f),o){tt&&rh(y)&&f.append(document.createComment(""));var E=tt?Si(f):f.appendChild(Cn());tt&&(E===null?ro(!1):$i(E)),o(f,E)}$t.nodes_end=f,v.before(f)})),a=y,a&&(u=a),iu(!0),Xp(T)}},65536),l&&(ro(!0),$i(v))}var ef;function ph(t){return ef=t.target,new Jp(t)}var xs,wr,Jp=class{constructor(e){Vs(this,xs);Vs(this,wr);var s,l;var i=new Map,o=(d,a)=>{var u=os(a,!1,!1);return i.set(d,u),u};let n=new Proxy(Dt(W({},e.props||{}),{$$events:{}}),{get(d,a){var u;return r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===ja?!0:(r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return B((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});Ga(this,wr,(e.hydrate?jp:rs)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&dl(),Ga(this,xs,n.$$events);for(let d of Object.keys(Ri(this,wr)))d==="$set"||d==="$destroy"||d==="$on"||oo(this,d,{get(){return Ri(this,wr)[d]},set(a){Ri(this,wr)[d]=a},enumerable:!0});Ri(this,wr).$set=d=>{Object.assign(n,d)},Ri(this,wr).$destroy=()=>{pa(Ri(this,wr))}}$set(e){Ri(this,wr).$set(e)}$on(e,i){Ri(this,xs)[e]=Ri(this,xs)[e]||[];let o=(...n)=>i.call(this,...n);return Ri(this,xs)[e].push(o),()=>{Ri(this,xs)[e]=Ri(this,xs)[e].filter(n=>n!==o)}}$destroy(){Ri(this,wr).$destroy()}};xs=new WeakMap,wr=new WeakMap;function Q(t,e){Tn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=ef)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Le&&lh(e.hash,d)}})}function ws(t,e){var i=void 0,o;Qi(()=>{i!==(i=e())&&(o&&(Ki(o),o=null),i&&(o=Ni(()=>{So(()=>i(t))})))})}function fh(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=fh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function mh(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=fh(t))&&(o&&(o+=" "),o+=e);return o}function fd(t){return typeof t=="object"?mh(t):t!=null?t:""}var vh=[...`
44
- \r\f\xA0\v\uFEFF`];function hh(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 s=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+s;(l===0||vh.includes(o[l-1]))&&(d===o.length||vh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function gh(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var s=t[n];s!=null&&s!==""&&(o+=" "+n+": "+s+i)}return o}function tf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function _h(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 s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(tf)),n&&a.push(...Object.keys(n).map(tf));var u=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===y-1){if(f!==-1){var x=tf(t.substring(u,f).trim());if(!a.includes(x)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=gh(o)),n&&(i+=gh(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ie(t,e,i,o,n,s){var l=t.__className;if(tt||l!==i||l===void 0){var d=hh(i,o,s);(!tt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var u=!!s[a];(n==null||u!==!!n[a])&&t.classList.toggle(a,u)}return s}function of(t,e={},i,o){for(var n in i){var s=i[n];e[n]!==s&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,s,o))}}function at(t,e,i,o){var n=t.__style;if(tt||n!==e){var s=_h(e,o);(!tt||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(of(t,i==null?void 0:i[0],o[0]),of(t,i==null?void 0:i[1],o[1],"important")):of(t,i,o));return o}function md(t,e,i){if(t.multiple){if(e==null)return;if(!or(e))return Rg();for(var o of t.options)o.selected=e.includes(bh(o));return}for(o of t.options){var n=bh(o);if(Ip(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function nf(t){var e=new MutationObserver(()=>{md(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),zo(()=>{e.disconnect()})}function bh(t){return"__value"in t?t.__value:t.value}var fl=Symbol("class"),ml=Symbol("style"),xh=Symbol("is custom element"),wh=Symbol("is html");function Sh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ue(t,e,i,o){var n=Th(t);if(tt&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||J_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[fg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Eh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ch(t,e,i,o,n=!1){var k;var s=Th(t),l=s[xh],d=!s[wh];let a=tt&&l;a&&ro(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=fd(i.class):(o||i[fl])&&(i.class=null),i[ml]&&((k=i.style)!=null||(i.style=null));var p=Eh(t);for(let I in i){let V=i[I];if(f&&I==="value"&&V==null){t.value=t.__value="",u[I]=V;continue}if(I==="class"){var x=t.namespaceURI==="http://www.w3.org/1999/xhtml";ie(t,x,V,o,e==null?void 0:e[fl],i[fl]),u[I]=V,u[fl]=i[fl];continue}if(I==="style"){at(t,V,e==null?void 0:e[ml],i[ml]),u[I]=V,u[ml]=i[ml];continue}var w=u[I];if(!(V===w&&!(V===void 0&&t.hasAttribute(I)))){u[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let j={},H="$$"+I,F=I.slice(2);var C=ih(F);if(th(F)&&(F=F.slice(0,-7),j.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(F,u[H],j),u[H]=null}if(V!=null)if(C)t[`__${F}`]=V,pt([F]);else{let K=function(ee){u[I].call(this,ee)};var L=K;u[H]=Qp(F,t,K,j)}else C&&(t[`__${F}`]=void 0)}else if(I==="style")Ue(t,I,V);else if(I==="autofocus")Kp(t,!!V);else if(!l&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&f)Sh(t,V);else{var T=I;d||(T=oh(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let j=t,H=e===void 0;if(T==="value"){let F=j.defaultValue;j.removeAttribute(T),j.defaultValue=F,j.value=j.__value=H?F:null}else{let F=j.defaultChecked;j.removeAttribute(T),j.defaultChecked=F,j.checked=H?F:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(l||typeof V!="string")?t[T]=V:typeof V!="function"&&Ue(t,T,V,n)}}}return a&&ro(!0),u}function Pe(t,e,i=[],o,n=!1,s=Dr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Qi(()=>{var p=e(...l.map(r)),x=Ch(t,d,p,o,n);f&&u&&"value"in p&&md(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||Ki(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var w=p[y];y.description===$p&&(!d||w!==d[y])&&(a[y]&&Ki(a[y]),a[y]=Ni(()=>ws(t,()=>w))),x[y]=w}d=x}),u){var v=t;So(()=>{md(v,d.value),nf(v)})}f=!0}function Th(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[xh]:t.nodeName.includes("-"),[wh]:t.namespaceURI===sg}}var $h=new Map;function Eh(t){var e=$h.get(t.nodeName);if(e)return e;$h.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Vc(o);for(var s in i)i[s].set&&e.push(s);o=ta(o)}return e}function J_(t,e,i){var o;Le&&(e==="srcset"&&eb(t,i)||rf((o=t.getAttribute(e))!=null?o:"",i)||Mg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function rf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function yh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function eb(t,e){var i=yh(t.srcset),o=yh(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(rf(i[l][0],n)||rf(n,i[l][0])))}var tb=Lc?()=>performance.now():()=>Date.now(),zr={tick:t=>(Lc?requestAnimationFrame:le)(t),now:()=>tb(),tasks:new Set};function Ih(){let t=zr.now();zr.tasks.forEach(e=>{e.c(t)||(zr.tasks.delete(e),e.f())}),zr.tasks.size!==0&&zr.tick(Ih)}function kh(t){let e;return zr.tasks.size===0&&zr.tick(Ih),{promise:new Promise(i=>{zr.tasks.add(e={c:t,f:i})}),abort(){zr.tasks.delete(e)}}}function ou(t,e){dd(()=>{t.dispatchEvent(new CustomEvent(e))})}function rb(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 Ah(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=rb(n.trim());e[l]=s.trim()}return e}var sb=t=>t;function af(t,e,i,o){var L;var n=(t&1)!==0,s=(t&2)!==0,l=n&&s,d=(t&4)!==0,a=l?"both":n?"in":"out",u,f=e.inert,v=e.style.overflow,p,x;function w(){var V;var k=At,I=$t;Wi(null),no(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:a})}finally{Wi(k),no(I)}}var y={is_global:d,in(){var k;if(e.inert=f,!n){x==null||x.abort(),(k=x==null?void 0:x.reset)==null||k.call(x);return}s||p==null||p.abort(),ou(e,"introstart"),p=sf(e,w(),x,1,()=>{ou(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(k){if(!s){k==null||k(),u=void 0;return}e.inert=!0,ou(e,"outrostart"),x=sf(e,w(),p,0,()=>{ou(e,"outroend"),k==null||k()})},stop:()=>{p==null||p.abort(),x==null||x.abort()}},C=$t;if(((L=C.transitions)!=null?L:C.transitions=[]).push(y),n&&cd){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&So(()=>{Et(()=>y.in())})}}function sf(t,e,i,o,n){var s=o===1;if(Os(e)){var l,d=!1;return Tn(()=>{if(!d){var C=e({direction:s?"in":"out"});l=sf(t,C,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:le,deactivate:le,reset:le,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=sb}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var x=Ah(u(0,1));p.push(x,x)}var w=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var F;y.cancel();var C=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),L=[];if(E>0){var k=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),V=0;V<=I;V+=1){var j=C+T*v(V/I),H=Ah(u(j,1-j));L.push(H),k||(k=H.overflow==="hidden")}k&&(t.style.overflow="hidden"),w=()=>{var K=y.currentTime;return C+T*v(K/E)},f&&kh(()=>{if(y.playState!=="running")return!1;var K=w();return f(K,1-K),!0})}y=t.animate(L,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=le)},deactivate:()=>{n=le},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Us,vl,vd,ru,Ph,su=class su{constructor(e){Vs(this,ru);Vs(this,Us,new WeakMap);Vs(this,vl);Vs(this,vd);Ga(this,vd,e)}observe(e,i){var o=Ri(this,Us).get(e)||new Set;return o.add(i),Ri(this,Us).set(e,o),ng(this,ru,Ph).call(this).observe(e,Ri(this,vd)),()=>{var n=Ri(this,Us).get(e);n.delete(i),n.size===0&&(Ri(this,Us).delete(e),Ri(this,vl).unobserve(e))}}};Us=new WeakMap,vl=new WeakMap,vd=new WeakMap,ru=new WeakSet,Ph=function(){var e;return(e=Ri(this,vl))!=null?e:Ga(this,vl,new ResizeObserver(i=>{for(var o of i){su.entries.set(o.target,o);for(var n of Ri(this,Us).get(o.target)||[])n(o)}}))},ir(su,"entries",new WeakMap);var lf=su;var ab=new lf({box:"border-box"});function cr(t,e,i){var o=ab.observe(t,()=>i(t[e]));So(()=>(Et(()=>i(t[e])),o))}function Mh(t,e){return t===e||(t==null?void 0:t[Uo])===e}function nt(t={},e,i,o){return So(()=>{var n,s;return Qo(()=>{n=s,s=(o==null?void 0:o())||[],Et(()=>{t!==i(...s)&&(e(t,...s),n&&Mh(i(...n),t)&&e(null,...n))})}),()=>{Tn(()=>{s&&Mh(i(...s),t)&&e(null,...s)})}}),t}function Wr(t=!1){let e=Ot,i=e.l.u;if(!i)return;let o=()=>Jc(e.s);if(t){let n=0,s={},l=Dr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&od(()=>{Lh(e,o),Bs(i.b)}),qe(()=>{let n=Et(()=>i.m.map(pg));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&qe(()=>{Lh(e,o),Bs(i.a)})}function Lh(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function gd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),le;let o=Et(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var gl=[];function Sr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=le){let i=null,o=new Set;function n(d){if(Za(t,d)&&(t=d,i)){let a=!gl.length;for(let u of o)u[1](),gl.push(u,t);if(a){for(let u=0;u<gl.length;u+=2)gl[u][0](gl[u+1]);gl.length=0}}}function s(d){n(d(t))}function l(d,a=le){let u=[d,a];return o.add(u),o.size===1&&(i=e(n,s)||le),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function Ci(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return Sr(i,(l,d)=>{let a=!1,u=[],f=0,v=le,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);s?l(w):v=typeof w=="function"?w:le},x=n.map((w,y)=>gd(w,C=>{u[y]=C,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){Bs(x),v(),a=!1}})}function ye(t){let e;return gd(t,i=>e=i)(),e}var au=!1,df=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:os(void 0),unsubscribe:le};if(o.store!==t&&!(df in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=le;else{var n=!0;o.unsubscribe=gd(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&df in i?ye(t):r(o.source)}function Fe(){let t={};function e(){zo(()=>{for(var i in t)t[i].unsubscribe();oo(t,df,{enumerable:!1,value:!0})})}return[t,e]}function cf(t){var e=au;try{return au=!1,[t(),au]}finally{au=e}}var mb={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Le&&wg(`${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 Be(t,e,i){return new Proxy(Le?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},mb)}var vb={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Os(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];Os(n)&&(n=n());let s=sn(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Os(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=sn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Uo||e===ja)return!1;for(let i of t.props)if(Os(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Os(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function Ss(...t){return new Proxy({props:t},vb)}function Vh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var j,H;var n=(i&1)!==0,s=!es||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=cf(()=>t[e]):u=t[e];var f=Uo in t||ja in t,v=l&&((H=(j=sn(t,e))==null?void 0:j.set)!=null?H:f&&e in t&&(F=>t[e]=F))||void 0,p=o,x=!0,w=!1,y=()=>(w=!0,x&&(x=!1,d?p=Et(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&xg(e),u=y(),v&&v(u));var C;if(s)C=()=>{var F=t[e];return F===void 0?y():(x=!0,w=!1,F)};else{var T=(n?Dr:Hr)(()=>t[e]);T.f|=131072,C=()=>{var F=r(T);return F!==void 0&&(p=void 0),F===void 0?p:F}}if((i&4)===0&&s)return C;if(v){var E=t.$$legacy;return function(F,K){return arguments.length>0?((!s||!K||E||a)&&v(K?C():F),F):C()}}var L=!1,k=!1,I=os(u),V=Dr(()=>{var F=C(),K=r(I);return L?(L=!1,k=!0,K):(k=!1,I.v=F)});return l&&r(V),n||(V.equals=Xa),function(F,K){if(Zc!==null&&(L=k,C(),r(I)),arguments.length>0){let ee=K?r(V):s&&l?ni(F):F;if(!V.equals(ee)){if(L=!0,B(I,ee),w&&p!==void 0&&(p=ee),Vh(V))return F;Et(()=>r(V))}return F}return Vh(V)?V.v:r(V)}}var gb;typeof HTMLElement=="function"&&(gb=class extends HTMLElement{constructor(e,i,o){super();ir(this,"$$ctor");ir(this,"$$s");ir(this,"$$c");ir(this,"$$cn",!1);ir(this,"$$d",{});ir(this,"$$r",!1);ir(this,"$$p_d",{});ir(this,"$$l",{});ir(this,"$$l_u",new Map);ir(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 _t(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),$(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=hb(this);for(let s of this.$$s)s in n&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=uf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=ph({component:this.$$ctor,target:this.shadowRoot||this,props:Dt(W({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Qc(()=>{Qo(()=>{var s;this.$$r=!0;for(let l of yp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=uf(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 s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,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]=uf(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 yp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function uf(t,e,i,o){var s;let n=(s=i[t])==null?void 0:s.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 hb(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Rh="5";var Nh,Oh,Bh;typeof window!="undefined"&&((Bh=(Oh=(Nh=window.__svelte)!=null?Nh:window.__svelte={}).v)!=null?Bh:Oh.v=new Set).add(Rh);var Nl=require("@vkontakte/videoplayer-core/es2015"),dZ=require("@vkontakte/videoplayer-core/es2015"),Ka=require("@vkontakte/videoplayer-shared/es2015"),B0=require("@vkontakte/videoplayer-statistics/es2015");var va=require("@vkontakte/videoplayer-shared/es2015");var _b={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:va.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:va.VideoQuality.Q_480P,highQualityLimit:va.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,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,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,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!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,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1,usePuid:!0,debug:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0"},Dh=t=>(0,va.fillWithDefault)(t,_b),Hh=t=>tl("ui-config",t),Mt=()=>el("ui-config");var hd="vk_player_debug_panel_opened";var Fh="videoplayer",Uh="videoplayer";var ss={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},zh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Wh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Kh=new Set(["ShiftRight","ShiftLeft"]);var qh=["TIMELINE"],_d=[...qh,"GRAPH_BUTTON"],pf=[...qh,"PLAY_BUTTON"],bd=[..._d,"PLAY_BUTTON"];var Kr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Kr||{}),ha={xs:0,s:1,m:2,l:3,xl:4};var $d=require("@vkontakte/videoplayer-shared/es2015"),Qh=require("@vkontakte/videoplayer-core/es2015"),Gh=require("@vkontakte/videoplayer-statistics/es2015");var lu="prod",_a="1.1.74-dev.7dc0bee9.0";var ba=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var jh=Symbol("storeContext"),Yh=Symbol("microStoresContext"),Zh=(t,e)=>{tl(jh,t),tl(Yh,e),lu==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=el(jh);return(0,$d.assertNonNullable)(t,"Store context is empty!"),t},vo=()=>{let t=el(Yh);return(0,$d.assertNonNullable)(t,"MicroStores context is empty!"),t},oi=(t,e)=>cu(t,t.getValue(),e),cu=(t,e,i)=>Sr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),Xh=(t,e,i,o)=>{var V,j,H,F,K,ee,Y,de;let n=t.info,{width:s,height:l}=ye(i.ui.playerSize),d=(j=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?j:0,a=(F=(H=n.rttEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?F:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${_a} (core: ${Qh.VERSION}, stat: ${Gh.VERSION}, shared: ${$d.VERSION})`,v=ye(i.state.errorLog$),p=v.length?`
45
- `+v.map((oe,fe)=>{var ne;let _e=`${fe}) Type: ${oe.id}
46
- `,pe=`Message: ${oe.message} (${oe.thrown})
47
- `,Oe=`Trace: ${(ne=oe.thrown)==null?void 0:ne.stack}
48
- `;return _e+pe+Oe}).join(`
49
- `):void 0,x=i.state.isAudioDisabled?"disabled":ye(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(K=w==null?void 0:w.codec)!=null?K:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&C.push(`Audio: ${(ee=y==null?void 0:y.codec)!=null?ee:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=n.currentQuality$.getValue(),E="";if(T){let oe=n.availableQualitiesFps$.getValue()[T];E=oe?`${oe}fps`:""}let L=(de=(Y=n.currentBuffer$.getValue())==null?void 0:Y.end)!=null?de:0,k=Math.max(L-ye(i.state.positionExact$),0),I={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:ye(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${u} ${T} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:x,Position:`${ye(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${ye(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(I).filter(([oe,fe])=>fe!==void 0).map(([oe,fe])=>`${oe}: ${fe}`).join(`
50
- `)},Jh=(t,e,i)=>{var j,H,F,K;let o=t.info,{width:n,height:s}=ye(i.ui.playerSize),l={version:_a,viewport:`${n}x${s}`,volume:Math.round(ye(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 u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(v&&p?l.buffer=f.end-p:l.buffer=Math.max(f.end-ye(i.state.positionExact$),0)),l.position=ye(i.state.positionExact$);let x=o.throughputEstimation$.getValue();x&&(l.speed=x);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=ye(i.vsid);typeof E=="string"&&(l.vsid=E);let L=(j=t.info.currentVideoStream$.getValue())==null?void 0:j.codec;L&&(l.videoCodec=L);let k=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;k&&(l.audioCodec=k),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(l.hdr=!0);let V=(K=t.info.currentAudioStream$.getValue())==null?void 0:K.language;return V&&(l.audioLanguage=V),l},e1=(t,e)=>ba(t,e,"mp4"),t1=t=>!t.type,i1=t=>!!t.type,o1=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},du=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return _t(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"),FP=require("@vkontakte/videoplayer-core/es2015");var n1="vk_player_prefer_traffic_saving_enabled",r1="vk_player_preferred_volume",s1="vk_player_prefer_volume_mute",gf="vk_player_preferred_quality",ff="vk_player_preferred_default_quality_settings",mf="vk_player_preferred_quality_settings_by_video",a1="vk_player_preferred_stream_language",l1="vk_player_preferred_rate",d1="vk_player_preferred_autoplay_next",vf="vk_player_preferred_subtitles_language",c1="vk_player_user_video_prefs",u1=t=>t>1?1:t<0?0:t,hf=t=>bi.safeStorage.set(r1,u1(t).toString(10)),uu=()=>{let t=bi.safeStorage.get(r1);return(0,bi.isNullable)(t)?void 0:u1(parseFloat(t))},_f=(t,e)=>bi.safeStorage.set(gf,JSON.stringify({videoId:t,value:e})),pu=()=>bi.safeStorage.remove(gf),bf=t=>{let e=bi.safeStorage.get(gf);if((0,bi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){pu();return}return o},$f=(t,e)=>{e?bi.safeStorage.set(t,"true"):bi.safeStorage.remove(t)},yf=t=>bi.safeStorage.get(t)==="true",xf=t=>$f(s1,t),p1=()=>yf(s1),yd=t=>$f(n1,t),wf=()=>yf(n1),f1=()=>bi.safeStorage.get(a1),Sf=t=>bi.safeStorage.set(a1,t),Cf=()=>bi.safeStorage.get(vf),Tf=t=>{t?bi.safeStorage.set(vf,t):bi.safeStorage.remove(vf)},m1=t=>bi.safeStorage.set(l1,JSON.stringify({rate:t})),v1=()=>{let t=bi.safeStorage.get(l1);if((0,bi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},g1=t=>$f(d1,t),h1=()=>yf(d1),bb=()=>{let t=f=>{bi.safeStorage.set(ff,JSON.stringify(f))},e=()=>{try{let f=bi.safeStorage.get(ff);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=bi.safeStorage.get(mf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{bi.safeStorage.set(mf,JSON.stringify(f))},n=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return Dt(W({},v),{appliesTo:"to-video"});v&&s();let p=e();return p?Dt(W({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{bi.safeStorage.remove(mf)},l=()=>{bi.safeStorage.remove(ff)},d=(f,v="as-default")=>{f.type==="exact_quality"||v==="to-video"?o(f):t(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":yd(!0);break;case"exact_quality":_f(f,v.quality)}s(),l()}},u=f=>{let v=bf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}wf()&&t({type:"traffic_saving",videoId:f}),yd(!1),pu()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Cf,savePreferredSubtitlesLanguage:Tf}},{getPreferredQualitySettings:_1,migrateSettingsToLegacyWay:b1,savePreferredQualitySettings:fu,savePreferredDefaultQualitySettings:UP,removePreferredQualitySettingsByVideo:zP,getPreferredDefaultQualitySettings:mu}=bb(),$b=3,yb=3,$1=()=>{let t=bi.safeStorage.get(c1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},vu=(t,e)=>{var n,s;let i=$1();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},Ef=(t,e,i)=>{var l,d,a;let o=(l=$1())!=null?l:{},n=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(n,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=n;let s=xb(o);bi.safeStorage.set(c1,JSON.stringify(s))};function xb(t){let e=Object.entries(t).reduce((o,[n,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([n,l]),o},[]);return e.sort(([,o],[,n])=>o>n?-1:1),e.splice(yb),e.reduce((o,[n])=>(o[n]=wb(t[n]),o),{})}function wb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice($b),Object.fromEntries(e)}var Mv=require("@vkontakte/videoplayer-core/es2015");var Sb=Te('<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 xd(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Sb();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}var hl=require("@vkontakte/videoplayer-shared/es2015");var Cb={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_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",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",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",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,
43
+ `)})}}var da=!1,al=null,ca=!1,hs=!1;function Wp(t){hs=t}var ud=[],pd=[],Pt=null,cr=!1;function qi(t){Pt=t}var bt=null;function ao(t){bt=t}var Ko=null;function Qc(t){Pt!==null&&Pt.f&2097152&&(Ko===null?Ko=[Pt,[t]]:Ko[1].push(t))}var _n=null,ur=0,dr=null;function Qg(t){dr=t}var ph=1,iu=0,_s=!1,ou=null;function ed(){return++ph}function ra(t){var m,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,s,l=(e&512)!==0,d=o&&bt!==null&&!_s,a=i.length;if(l||d){var u=t,f=u.parent;for(n=0;n<a;n++)s=i[n],(l||!((m=s==null?void 0:s.reactions)!=null&&m.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<a;n++)if(s=i[n],ra(s)&&zp(s),s.wv>t.wv)return!0}(!o||bt!==null&&!_s)&&vn(t,1024)}return!1}function fh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];Ko!=null&&Ko[1].includes(t)&&Ko[0]===Pt||((s.f&2)!==0?fh(s,e,!1):e===s&&(i?vn(s,2048):(s.f&1024)!==0&&vn(s,4096),id(s)))}}function qc(t){var x,y;var e=_n,i=ur,o=dr,n=Pt,s=_s,l=Ko,d=Bt,a=cr,u=t.f;_n=null,ur=0,dr=null,_s=(u&256)!==0&&(cr||!ca||Pt===null),Pt=(u&96)===0?t:null,Ko=null,Zl(t.ctx),cr=!1,iu++,t.f|=2097152;try{var f=(0,t.fn)(),m=t.deps;if(_n!==null){var p;if(ld(t,ur),m!==null&&ur>0)for(m.length=ur+_n.length,p=0;p<_n.length;p++)m[ur+p]=_n[p];else t.deps=m=_n;if(!_s||(u&2)!==0&&t.reactions!==null)for(p=ur;p<m.length;p++)((y=(x=m[p]).reactions)!=null?y:x.reactions=[]).push(t)}else m!==null&&ur<m.length&&(ld(t,ur),m.length=ur);if(ls()&&dr!==null&&!cr&&m!==null&&(t.f&6146)===0)for(p=0;p<dr.length;p++)fh(dr[p],t);return n!==null&&n!==t&&(iu++,dr!==null&&(o===null?o=dr:o.push(...dr))),f}catch(w){dh(w)}finally{_n=e,ur=i,dr=o,Pt=n,_s=s,Ko=l,Zl(d),cr=a,t.f^=2097152}}function A_(t,e){let i=e.reactions;if(i!==null){var o=Tg.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&&(_n===null||!_n.includes(e))&&(vn(e,4096),(e.f&768)===0&&(e.f^=512),Kc(e),ld(e,0))}function ld(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)A_(t,i[o])}function nl(t){var e=t.f;if((e&16384)===0){vn(t,1024);var i=bt,o=ca;if(bt=t,ca=!0,Le){var n=ar;Xl(t.component_function)}try{(e&16)!==0?nh(t):Gp(t),Qp(t);var s=qc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=ph,Le&&as&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=ed(),l.set_during_effect=!1);Le&&pd.push(t)}finally{ca=o,bt=i,Le&&Xl(n)}}}function ch(){console.error("Last ten effects were: ",pd.slice(-10).map(t=>t.fn)),pd=[]}function P_(){try{Rg()}catch(t){if(Le&&so(t,"stack",{value:""}),al!==null)if(Le)try{cd(t,al)}catch(e){throw ch(),e}else cd(t,al);else throw Le&&ch(),t}}function ef(){var t=ca;try{var e=0;for(ca=!0;ud.length>0;){e++>1e3&&P_();var i=ud,o=i.length;ud=[];for(var n=0;n<o;n++){var s=M_(i[n]);L_(s)}il.clear()}}finally{da=!1,ca=t,al=null,Le&&(pd=[])}}function L_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ra(o)&&(nl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Yp(o):o.fn=null))}}function id(t){da||(da=!0,queueMicrotask(ef));for(var e=al=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}ud.push(e)}function M_(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,s=n&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:ra(i)&&nl(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function ll(t){var e;for(t&&(da=!0,ef(),da=!0,e=t());;){if(ah(),ud.length===0)return da=!1,al=null,Le&&(pd=[]),e;da=!0,ef()}}function wo(){return Ct(this,null,function*(){yield Promise.resolve(),ll()})}function r(t){var e=t.f,i=(e&2)!==0;if(ou!==null&&ou.add(t),Pt!==null&&!cr){if(!(Ko!=null&&Ko[1].includes(t))||Ko[0]!==Pt){var o=Pt.deps;t.rv<iu&&(t.rv=iu,_n===null&&o!==null&&o[ur]===t?ur++:_n===null?_n=[t]:(!_s||!_n.includes(t))&&_n.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,s=n.parent;s!==null&&(s.f&256)===0&&(n.f^=256)}if(i&&(n=t,ra(n)&&zp(n)),Le&&as&&!cr&&Yl!==null&&Pt!==null&&Yl.reaction===Pt)if(t.trace)t.trace();else{var l=gs("TracedAt");if(l){var d=Yl.entries.get(t);d===void 0&&(d={traces:[]},Yl.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return hs&&il.has(t)?il.get(t):t.v}function Tt(t){var e=cr;try{return cr=!0,t()}finally{cr=e}}var V_=-7169;function vn(t,e){t.f=t.f&V_|e}function ru(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Uo in t)nu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Uo in i&&nu(i)}}}function nu(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{nu(t[o],e)}catch(n){}let i=ta(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Fc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function tf(t,e){if(e){let i=document.body;t.autofocus=!0,hn(()=>{document.activeElement===i&&t.focus()})}}function fd(t){var e=Pt,i=bt;qi(null),ao(null);try{return t()}finally{qi(e),ao(i)}}var of=new Set,su=new Set;function ua(t){if(!Xe)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function nf(t,e,i,o={}){function n(s){if(o.capture||dl.call(e,s),!s.cancelBubble)return fd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?hn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function It(t,e,i,o,n){var s={capture:o,passive:n},l=nf(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&zo(()=>{e.removeEventListener(t,l,s)})}function ct(t){for(var e=0;e<t.length;e++)of.add(t[e]);for(var i of su)i(t)}function dl(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],s=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 u=n.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=n[l]||t.target,s!==e){so(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Pt,m=bt;qi(null),ao(null);try{for(var p,x=[];s!==null;){var y=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+o];if(w!=null&&(!s.disabled||t.target===s))if(rr(w)){var[T,...C]=w;T.apply(s,[t,...C])}else w.call(s,t)}catch(V){p?x.push(V):p=V}if(t.cancelBubble||y===e||y===null)break;s=y}if(p){for(let V of x)queueMicrotask(()=>{throw V});throw p}}finally{t.__root=e,delete t.currentTarget,qi(f),ao(m)}}}var O_;function mh(){O_=void 0}function cl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function So(t,e){var i=bt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function P(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(Xe)return So($t,null),$t;n===void 0&&(n=cl(s?t:"<!>"+t),i||(n=Ei(n)));var l=o||od?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=Ei(l),a=l.lastChild;So(d,a)}else So(l,l);return l}}function D_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Xe)return So($t,null),$t;if(!l){var d=cl(s),a=Ei(d);if(n)for(l=document.createDocumentFragment();Ei(a);)l.appendChild(Ei(a));else l=Ei(a)}var u=l.cloneNode(!0);if(n){var f=Ei(u),m=u.lastChild;So(f,m)}else So(u,u);return u}}function we(t,e){return D_(t,e,"svg")}function cs(t=""){if(!Xe){var e=gn(t+"");return So(e,e),e}var i=$t;return i.nodeType!==ja&&(i.before(i=gn()),yi(i)),So(i,i),i}function Ue(){if(Xe)return So($t,null),$t;var t=document.createDocumentFragment(),e=document.createComment(""),i=gn();return t.append(e,i),So(e,i),t}function $(t,e){if(Xe){bt.nodes_end=$t,Gi();return}t!==null&&t.before(e)}var F_=/\r/g;function gh(t){t=t.replace(F_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function hh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var H_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function _h(t){return H_.includes(t)}var U_=["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 z_={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 bh(t){var e;return t=t.toLowerCase(),(e=z_[t])!=null?e:t}var NS=[...U_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var W_=["touchstart","touchmove"];function $h(t){return W_.includes(t)}var K_=["$state","$state.raw","$derived","$derived.by"],BS=[...K_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var q_=["textarea","script","style","title"];function yh(t){return q_.includes(t)}function au(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var md=!0;function lu(t){md=t}function ge(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Kr(t,e){return xh(t,e)}function sf(t,e){var l;Yc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Xe,n=$t;try{for(var s=Ei(i);s&&(s.nodeType!==sr||s.data!==Os);)s=qo(s);if(!s)throw rs;lo(!0),yi(s),Gi();let d=xh(t,Ut(K({},e),{anchor:s}));if($t===null||$t.nodeType!==sr||$t.data!==ea)throw Fs(),rs;return lo(!1),d}catch(d){if(d===rs)return e.recover===!1&&Og(),Yc(),nd(i),lo(!1),Kr(t,e);throw d}finally{lo(o),yi(n),mh()}}var ul=new Map;function xh(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){Yc();var d=new Set,a=m=>{for(var p=0;p<m.length;p++){var x=m[p];if(!d.has(x)){d.add(x);var y=$h(x);e.addEventListener(x,dl,{passive:y});var w=ul.get(x);w===void 0?(document.addEventListener(x,dl,{passive:y}),ul.set(x,1)):ul.set(x,w+1)}}};a(jl(of)),su.add(a);var u=void 0,f=oh(()=>{var m=i!=null?i:e.appendChild(gn());return Bi(()=>{if(s){z({});var p=Bt;p.c=s}n&&(o.$$events=n),Xe&&So(m,null),md=l,u=t(m,o)||{},md=!0,Xe&&(bt.nodes_end=$t),s&&W()}),()=>{var y;for(var p of d){e.removeEventListener(p,dl);var x=ul.get(p);--x===0?(document.removeEventListener(p,dl),ul.delete(p)):ul.set(p,x)}su.delete(a),m!==i&&((y=m.parentNode)==null||y.removeChild(m))}});return rf.set(u,f),u}var rf=new WeakMap;function pa(t,e){let i=rf.get(t);return i?(rf.delete(t),i(e)):(Le&&Yg(),Promise.resolve())}function he(t,e,...i){var o=t,n=de,s;ji(()=>{n!==(n=e())&&(s&&(Qi(s),s=null),Le&&n==null&&Ng(),s=Bi(()=>n(o,...i)))},65536),Xe&&(o=$t)}if(Le){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Fg(e)},set:o=>{i=o}})}};Y_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var Y_;function Rt(t){Bt===null&&Xa("onMount"),ss&&Bt.l!==null?j_(Bt).m.push(t):qe(()=>{let e=Tt(t);if(typeof e=="function")return e})}function an(t){Bt===null&&Xa("onDestroy"),Rt(()=>()=>Tt(t))}function j_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var wh=new Map;function Sh(t,e){var i=wh.get(t);i||(i=new Set,wh.set(t,i)),i.add(e)}function R(t,e,[i,o]=[0,0]){Xe&&i===0&&Gi();var n=t,s=null,l=null,d=eo,a=i>0?65536:0,u=!1;let f=(p,x=!0)=>{u=!0,m(x,p)},m=(p,x)=>{if(d===(d=p))return;let y=!1;if(Xe&&o!==-1){if(i===0){let T=jc(n);T===Os?o=0:T===Ns?o=1/0:(o=parseInt(T.substring(1)),o!==o&&(o=d?1/0:-1))}let w=o>i;!!d===w&&(n=sa(),yi(n),lo(!1),y=!0,o=-1)}d?(s?$s(s):x&&(s=Bi(()=>x(n))),l&&On(l,()=>{l=null})):(l?$s(l):x&&(l=Bi(()=>x(n,[i+1,o]))),s&&On(s,()=>{s=null})),y&&lo(!0)};ji(()=>{u=!1,e(f),u||m(null,null)},a),Xe&&(n=$t)}function ys(t,e,i){Xe&&Gi();var o=t,n=eo,s,l=ls()?Ag:Ya;ji(()=>{l(n,n=e())&&(s&&On(s),s=Bi(()=>i(o)))}),Xe&&(o=$t)}var Us=null;function df(t){Us=t}function vd(t,e){return e}function J_(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)eu(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;nd(a),a.append(i),o.clear(),Hs(t,e[0].prev,e[s-1].next)}Zp(n,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Hs(t,f.prev,f.next)),Qi(f.e,!d)}})}function Li(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=Xe?yi(Ei(u)):u.appendChild(gn())}Xe&&Gi();var f=null,m=!1,p=Ur(()=>{var x=i();return rr(x)?x:x==null?[]:jl(x)});ji(()=>{var x=r(p),y=x.length;if(m&&y===0)return;m=y===0;let w=!1;if(Xe){var T=jc(l)===Ns;T!==(y===0)&&(l=sa(),yi(l),lo(!1),w=!0)}if(Xe){for(var C=null,E,V=0;V<y;V++){if($t.nodeType===sr&&$t.data===ea){l=$t,w=!0,lo(!1);break}var I=x[V],L=o(I,V);E=Eh($t,d,C,null,I,L,V,n,e,i),d.items.set(L,E),C=E}y>0&&yi(sa())}Xe||eb(x,d,l,n,e,o,i),s!==null&&(y===0?f?$s(f):f=Bi(()=>s(l)):f!==null&&On(f,()=>{f=null})),w&&lo(!0),r(p)}),Xe&&(l=$t)}function eb(t,e,i,o,n,s,l){var ee,pe,ve,ue;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,m=e.first,p=m,x,y=null,w,T=[],C=[],E,V,I,L;if(d)for(L=0;L<u;L+=1)E=t[L],V=s(E,L),I=f.get(V),I!==void 0&&((ee=I.a)==null||ee.measure(),(w!=null?w:w=new Set).add(I));for(L=0;L<u;L+=1){if(E=t[L],V=s(E,L),I=f.get(V),I===void 0){var B=p?p.e.nodes_start:i;y=Eh(B,e,y,y===null?e.first:y.next,E,V,L,o,n,l),f.set(V,y),T=[],C=[],p=y.next;continue}if(a&&tb(I,E,L,n),(I.e.f&8192)!==0&&($s(I.e),d&&((pe=I.a)==null||pe.unfix(),(w!=null?w:w=new Set).delete(I))),I!==p){if(x!==void 0&&x.has(I)){if(T.length<C.length){var F=C[0],H;y=F.prev;var U=T[0],Z=T[T.length-1];for(H=0;H<T.length;H+=1)Ch(T[H],F,i);for(H=0;H<C.length;H+=1)x.delete(C[H]);Hs(e,U.prev,Z.next),Hs(e,y,U),Hs(e,Z,F),p=F,y=Z,L-=1,T=[],C=[]}else x.delete(I),Ch(I,p,i),Hs(e,I.prev,I.next),Hs(e,I,y===null?e.first:y.next),Hs(e,y,I),y=I;continue}for(T=[],C=[];p!==null&&p.k!==V;)(p.e.f&8192)===0&&(x!=null?x:x=new Set).add(p),C.push(p),p=p.next;if(p===null)continue;I=p}T.push(I),y=I,p=I.next}if(p!==null||x!==void 0){for(var re=x===void 0?[]:jl(x);p!==null;)(p.e.f&8192)===0&&re.push(p),p=p.next;var G=re.length;if(G>0){var be=(n&4)!==0&&u===0?i:null;if(d){for(L=0;L<G;L+=1)(ve=re[L].a)==null||ve.measure();for(L=0;L<G;L+=1)(ue=re[L].a)==null||ue.fix()}J_(e,re,be,f)}}d&&hn(()=>{var Me;if(w!==void 0)for(I of w)(Me=I.a)==null||Me.apply()}),bt.first=e.first&&e.first.e,bt.last=y&&y.e}function tb(t,e,i,o){(o&1)!==0&&ol(t.v,e),(o&2)!==0?ol(t.i,i):t.i=i}function Eh(t,e,i,o,n,s,l,d,a,u){var f=Us,m=(a&1)!==0,p=(a&16)===0,x=m?p?ds(n,!1,!1):Er(n):n,y=(a&2)===0?l:Er(l);Le&&m&&(x.trace=()=>{var T=typeof y=="number"?l:y.v;u()[T]});var w={i:y,v:x,k:s,a:null,e:null,prev:i,next:o};Us=w;try{return w.e=Bi(()=>d(t,x,y,u),Xe),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{Us=f}}function Ch(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=qo(s);n.before(s),s=l}}function Hs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function ib(t,e,i){var s,l;if(!e||e===gh(String(i!=null?i:"")))return;let o,n=(s=t.__svelte_meta)==null?void 0:s.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=ar)!=null&&l[Ln]&&(o=`in ${ar[Ln]}`),jg(au(o))}function gd(t,e,i=!1,o=!1,n=!1){var s=t,l="";D(()=>{var x;var d=bt;if(l===(l=(x=e())!=null?x:"")){Xe&&Gi();return}if(d.nodes_start!==null&&(jp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Xe){for(var a=$t.data,u=Gi(),f=u;u!==null&&(u.nodeType!==sr||u.data!=="");)f=u,u=qo(u);if(u===null)throw Fs(),rs;Le&&!n&&ib(u.parentNode,a,l),So($t,f),s=yi(u);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var p=cl(m);if((i||o)&&(p=Ei(p)),So(Ei(p),p.lastChild),i||o)for(;Ei(p);)s.before(Ei(p));else s.before(p)}})}function Mi(t,e,i){Xe&&Gi();var o=t,n,s;ji(()=>{n!==(n=e())&&(s&&(On(s),s=null),n&&(s=Bi(()=>i(o,n))))},65536),Xe&&(o=$t)}function fa(t,e,i,o,n,s){var y;let l=Xe;Xe&&Gi();var d=Le&&s&&((y=Bt)==null?void 0:y.function[Ln]),a,u,f=null;Xe&&$t.nodeType===Uc&&(f=$t,Gi());var m=Xe?$t:t,p,x=Us;ji(()=>{let w=e()||null;var T=n?n():i||w==="svg"?Bc:null;if(w!==a){var C=Us;df(x),p&&(w===null?On(p,()=>{p=null,u=null}):w===u?$s(p):(Qi(p),lu(!1))),w&&w!==u&&(p=Bi(()=>{if(f=Xe?f:T?document.createElementNS(T,w):document.createElement(w),Le&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),So(f,f),o){Xe&&yh(w)&&f.append(document.createComment(""));var E=Xe?Ei(f):f.appendChild(gn());Xe&&(E===null?lo(!1):yi(E)),o(f,E)}bt.nodes_end=f,m.before(f)})),a=w,a&&(u=a),lu(!0),df(C)}},65536),l&&(lo(!0),yi(m))}var uf;function Ih(t){return uf=t.target,new cf(t)}var xs,Ir,cf=class{constructor(e){Rs(this,xs);Rs(this,Ir);var s,l;var i=new Map,o=(d,a)=>{var u=ds(a,!1,!1);return i.set(d,u),u};let n=new Proxy(Ut(K({},e.props||{}),{$$events:{}}),{get(d,a){var u;return r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===Ga?!0:(r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return N((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});Qa(this,Ir,(e.hydrate?sf:Kr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&ll(),Qa(this,xs,n.$$events);for(let d of Object.keys(Ni(this,Ir)))d==="$set"||d==="$destroy"||d==="$on"||so(this,d,{get(){return Ni(this,Ir)[d]},set(a){Ni(this,Ir)[d]=a},enumerable:!0});Ni(this,Ir).$set=d=>{Object.assign(n,d)},Ni(this,Ir).$destroy=()=>{pa(Ni(this,Ir))}}$set(e){Ni(this,Ir).$set(e)}$on(e,i){Ni(this,xs)[e]=Ni(this,xs)[e]||[];let o=(...n)=>i.call(this,...n);return Ni(this,xs)[e].push(o),()=>{Ni(this,xs)[e]=Ni(this,xs)[e].filter(n=>n!==o)}}$destroy(){Ni(this,Ir).$destroy()}};xs=new WeakMap,Ir=new WeakMap;function q(t,e){hn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=uf)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Le&&Sh(e.hash,d)}})}function ws(t,e){var i=void 0,o;ji(()=>{i!==(i=e())&&(o&&(Qi(o),o=null),i&&(o=Bi(()=>{xo(()=>i(t))})))})}function kh(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=kh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Ah(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=kh(t))&&(o&&(o+=" "),o+=e);return o}function hd(t){return typeof t=="object"?Ah(t):t!=null?t:""}var Ph=[...`
44
+ \r\f\xA0\v\uFEFF`];function Mh(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 s=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+s;(l===0||Ph.includes(o[l-1]))&&(d===o.length||Ph.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Lh(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var s=t[n];s!=null&&s!==""&&(o+=" "+n+": "+s+i)}return o}function pf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Vh(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 s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(pf)),n&&a.push(...Object.keys(n).map(pf));var u=0,f=-1;let w=t.length;for(var m=0;m<w;m++){var p=t[m];if(d?p==="/"&&t[m-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[m+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=m;else if(p===";"||m===w-1){if(f!==-1){var x=pf(t.substring(u,f).trim());if(!a.includes(x)){p!==";"&&m++;var y=t.substring(u,m).trim();i+=" "+y+";"}}u=m+1,f=-1}}}}return o&&(i+=Lh(o)),n&&(i+=Lh(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function se(t,e,i,o,n,s){var l=t.__className;if(Xe||l!==i||l===void 0){var d=Mh(i,o,s);(!Xe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var u=!!s[a];(n==null||u!==!!n[a])&&t.classList.toggle(a,u)}return s}function ff(t,e={},i,o){for(var n in i){var s=i[n];e[n]!==s&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,s,o))}}function at(t,e,i,o){var n=t.__style;if(Xe||n!==e){var s=Vh(e,o);(!Xe||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(ff(t,i==null?void 0:i[0],o[0]),ff(t,i==null?void 0:i[1],o[1],"important")):ff(t,i,o));return o}function _d(t,e,i){if(t.multiple){if(e==null)return;if(!rr(e))return Zg();for(var o of t.options)o.selected=e.includes(Rh(o));return}for(o of t.options){var n=Rh(o);if(Bp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function mf(t){var e=new MutationObserver(()=>{_d(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),zo(()=>{e.disconnect()})}function Rh(t){return"__value"in t?t.__value:t.value}var pl=Symbol("class"),fl=Symbol("style"),Bh=Symbol("is custom element"),Dh=Symbol("is html");function Fh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ze(t,e,i,o){var n=Uh(t);if(Xe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||cb(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[kg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&zh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Hh(t,e,i,o,n=!1){var I;var s=Uh(t),l=s[Bh],d=!s[Dh];let a=Xe&&l;a&&lo(!1);var u=e||{},f=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=hd(i.class):(o||i[pl])&&(i.class=null),i[fl]&&((I=i.style)!=null||(i.style=null));var p=zh(t);for(let L in i){let B=i[L];if(f&&L==="value"&&B==null){t.value=t.__value="",u[L]=B;continue}if(L==="class"){var x=t.namespaceURI==="http://www.w3.org/1999/xhtml";se(t,x,B,o,e==null?void 0:e[pl],i[pl]),u[L]=B,u[pl]=i[pl];continue}if(L==="style"){at(t,B,e==null?void 0:e[fl],i[fl]),u[L]=B,u[fl]=i[fl];continue}var y=u[L];if(!(B===y&&!(B===void 0&&t.hasAttribute(L)))){u[L]=B;var w=L[0]+L[1];if(w!=="$$")if(w==="on"){let F={},H="$$"+L,U=L.slice(2);var T=_h(U);if(hh(U)&&(U=U.slice(0,-7),F.capture=!0),!T&&y){if(B!=null)continue;t.removeEventListener(U,u[H],F),u[H]=null}if(B!=null)if(T)t[`__${U}`]=B,ct([U]);else{let Z=function(re){u[L].call(this,re)};var V=Z;u[H]=nf(U,t,Z,F)}else T&&(t[`__${U}`]=void 0)}else if(L==="style")ze(t,L,B);else if(L==="autofocus")tf(t,!!B);else if(!l&&(L==="__value"||L==="value"&&B!=null))t.value=t.__value=B;else if(L==="selected"&&f)Fh(t,B);else{var C=L;d||(C=bh(C));var E=C==="defaultValue"||C==="defaultChecked";if(B==null&&!l&&!E)if(s[L]=null,C==="value"||C==="checked"){let F=t,H=e===void 0;if(C==="value"){let U=F.defaultValue;F.removeAttribute(C),F.defaultValue=U,F.value=F.__value=H?U:null}else{let U=F.defaultChecked;F.removeAttribute(C),F.defaultChecked=U,F.checked=H?U:!1}}else t.removeAttribute(L);else E||p.includes(C)&&(l||typeof B!="string")?t[C]=B:typeof B!="function"&&ze(t,C,B,n)}}}return a&&lo(!0),u}function ke(t,e,i=[],o,n=!1,s=Hr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(ji(()=>{var p=e(...l.map(r)),x=Hh(t,d,p,o,n);f&&u&&"value"in p&&_d(t,p.value,!1);for(let w of Object.getOwnPropertySymbols(a))p[w]||Qi(a[w]);for(let w of Object.getOwnPropertySymbols(p)){var y=p[w];w.description===Ap&&(!d||y!==d[w])&&(a[w]&&Qi(a[w]),a[w]=Bi(()=>ws(t,()=>y))),x[w]=y}d=x}),u){var m=t;xo(()=>{_d(m,d.value),mf(m)})}f=!0}function Uh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Bh]:t.nodeName.includes("-"),[Dh]:t.namespaceURI===xg}}var Oh=new Map;function zh(t){var e=Oh.get(t.nodeName);if(e)return e;Oh.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Fc(o);for(var s in i)i[s].set&&e.push(s);o=ta(o)}return e}function cb(t,e,i){var o;Le&&(e==="srcset"&&ub(t,i)||vf((o=t.getAttribute(e))!=null?o:"",i)||Gg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function vf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Nh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function ub(t,e){var i=Nh(t.srcset),o=Nh(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(vf(i[l][0],n)||vf(n,i[l][0])))}var pb=Dc?()=>performance.now():()=>Date.now(),qr={tick:t=>(Dc?requestAnimationFrame:de)(t),now:()=>pb(),tasks:new Set};function Wh(){let t=qr.now();qr.tasks.forEach(e=>{e.c(t)||(qr.tasks.delete(e),e.f())}),qr.tasks.size!==0&&qr.tick(Wh)}function Kh(t){let e;return qr.tasks.size===0&&qr.tick(Wh),{promise:new Promise(i=>{qr.tasks.add(e={c:t,f:i})}),abort(){qr.tasks.delete(e)}}}function du(t,e){fd(()=>{t.dispatchEvent(new CustomEvent(e))})}function gb(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 qh(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=gb(n.trim());e[l]=s.trim()}return e}var hb=t=>t;function hf(t,e,i,o){var V;var n=(t&1)!==0,s=(t&2)!==0,l=n&&s,d=(t&4)!==0,a=l?"both":n?"in":"out",u,f=e.inert,m=e.style.overflow,p,x;function y(){var B;var I=Pt,L=bt;qi(null),ao(null);try{return u!=null?u:u=i()(e,(B=o==null?void 0:o())!=null?B:{},{direction:a})}finally{qi(I),ao(L)}}var w={is_global:d,in(){var I;if(e.inert=f,!n){x==null||x.abort(),(I=x==null?void 0:x.reset)==null||I.call(x);return}s||p==null||p.abort(),du(e,"introstart"),p=gf(e,y(),x,1,()=>{du(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=m})},out(I){if(!s){I==null||I(),u=void 0;return}e.inert=!0,du(e,"outrostart"),x=gf(e,y(),p,0,()=>{du(e,"outroend"),I==null||I()})},stop:()=>{p==null||p.abort(),x==null||x.abort()}},T=bt;if(((V=T.transitions)!=null?V:T.transitions=[]).push(w),n&&md){var C=d;if(!C){for(var E=T.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);C=!E||(E.f&32768)!==0}C&&xo(()=>{Tt(()=>w.in())})}}function gf(t,e,i,o,n){var s=o===1;if(Bs(e)){var l,d=!1;return hn(()=>{if(!d){var T=e({direction:s?"in":"out"});l=gf(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:de,deactivate:de,reset:de,t:()=>o};let{delay:a=0,css:u,tick:f,easing:m=hb}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var x=qh(u(0,1));p.push(x,x)}var y=()=>1-o,w=t.animate(p,{duration:a,fill:"forwards"});return w.onfinish=()=>{var U;w.cancel();var T=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var C=o-T,E=e.duration*Math.abs(C),V=[];if(E>0){var I=!1;if(u)for(var L=Math.ceil(E/16.666666666666668),B=0;B<=L;B+=1){var F=T+C*m(B/L),H=qh(u(F,1-F));V.push(H),I||(I=H.overflow==="hidden")}I&&(t.style.overflow="hidden"),y=()=>{var Z=w.currentTime;return T+C*m(Z/E)},f&&Kh(()=>{if(w.playState!=="running")return!1;var Z=y();return f(Z,1-Z),!0})}w=t.animate(V,{duration:E,fill:"forwards"}),w.onfinish=()=>{y=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=de)},deactivate:()=>{n=de},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}var zs,ml,bd,uu,Qh,pu=class pu{constructor(e){Rs(this,uu);Rs(this,zs,new WeakMap);Rs(this,ml);Rs(this,bd);Qa(this,bd,e)}observe(e,i){var o=Ni(this,zs).get(e)||new Set;return o.add(i),Ni(this,zs).set(e,o),$g(this,uu,Qh).call(this).observe(e,Ni(this,bd)),()=>{var n=Ni(this,zs).get(e);n.delete(i),n.size===0&&(Ni(this,zs).delete(e),Ni(this,ml).unobserve(e))}}};zs=new WeakMap,ml=new WeakMap,bd=new WeakMap,uu=new WeakSet,Qh=function(){var e;return(e=Ni(this,ml))!=null?e:Qa(this,ml,new ResizeObserver(i=>{for(var o of i){pu.entries.set(o.target,o);for(var n of Ni(this,zs).get(o.target)||[])n(o)}}))},nr(pu,"entries",new WeakMap);var _f=pu;var _b=new _f({box:"border-box"});function pr(t,e,i){var o=_b.observe(t,()=>i(t[e]));xo(()=>(Tt(()=>i(t[e])),o))}function Gh(t,e){return t===e||(t==null?void 0:t[Uo])===e}function rt(t={},e,i,o){return xo(()=>{var n,s;return Qo(()=>{n=s,s=(o==null?void 0:o())||[],Tt(()=>{t!==i(...s)&&(e(t,...s),n&&Gh(i(...n),t)&&e(null,...n))})}),()=>{hn(()=>{s&&Gh(i(...s),t)&&e(null,...s)})}}),t}function Qr(t=!1){let e=Bt,i=e.l.u;if(!i)return;let o=()=>ru(e.s);if(t){let n=0,s={},l=Hr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&ad(()=>{jh(e,o),Ds(i.b)}),qe(()=>{let n=Tt(()=>i.m.map(Ig));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&qe(()=>{jh(e,o),Ds(i.a)})}function jh(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function $d(t,e,i){if(t==null)return e(void 0),i&&i(void 0),de;let o=Tt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var vl=[];function kr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=de){let i=null,o=new Set;function n(d){if(Ya(t,d)&&(t=d,i)){let a=!vl.length;for(let u of o)u[1](),vl.push(u,t);if(a){for(let u=0;u<vl.length;u+=2)vl[u][0](vl[u+1]);vl.length=0}}}function s(d){n(d(t))}function l(d,a=de){let u=[d,a];return o.add(u),o.size===1&&(i=e(n,s)||de),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function xi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return kr(i,(l,d)=>{let a=!1,u=[],f=0,m=de,p=()=>{if(f)return;m();let y=e(o?u[0]:u,l,d);s?l(y):m=typeof y=="function"?y:de},x=n.map((y,w)=>$d(y,T=>{u[w]=T,f&=~(1<<w),a&&p()},()=>{f|=1<<w}));return a=!0,p(),function(){Ds(x),m(),a=!1}})}function _e(t){let e;return $d(t,i=>e=i)(),e}var fu=!1,bf=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:ds(void 0),unsubscribe:de};if(o.store!==t&&!(bf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=de;else{var n=!0;o.unsubscribe=$d(t,l=>{n?o.source.v=l:N(o.source,l)}),n=!1}return t&&bf in i?_e(t):r(o.source)}function He(){let t={};function e(){zo(()=>{for(var i in t)t[i].unsubscribe();so(t,bf,{enumerable:!1,value:!0})})}return[t,e]}function $f(t){var e=fu;try{return fu=!1,[t(),fu]}finally{fu=e}}var Cb={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Le&&Dg(`${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 Re(t,e,i){return new Proxy(Le?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Cb)}var Tb={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Bs(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];Bs(n)&&(n=n());let s=nn(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Bs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=nn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Uo||e===Ga)return!1;for(let i of t.props)if(Bs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Bs(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function Ss(...t){return new Proxy({props:t},Tb)}function Yh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var F,H;var n=(i&1)!==0,s=!ss||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=$f(()=>t[e]):u=t[e];var f=Uo in t||Ga in t,m=l&&((H=(F=nn(t,e))==null?void 0:F.set)!=null?H:f&&e in t&&(U=>t[e]=U))||void 0,p=o,x=!0,y=!1,w=()=>(y=!0,x&&(x=!1,d?p=Tt(o):p=o),p);u===void 0&&o!==void 0&&(m&&s&&Bg(e),u=w(),m&&m(u));var T;if(s)T=()=>{var U=t[e];return U===void 0?w():(x=!0,y=!1,U)};else{var C=(n?Hr:Ur)(()=>t[e]);C.f|=131072,T=()=>{var U=r(C);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0&&s)return T;if(m){var E=t.$$legacy;return function(U,Z){return arguments.length>0?((!s||!Z||E||a)&&m(Z?T():U),U):T()}}var V=!1,I=!1,L=ds(u),B=Hr(()=>{var U=T(),Z=r(L);return V?(V=!1,I=!0,Z):(I=!1,L.v=U)});return l&&r(B),n||(B.equals=Za),function(U,Z){if(ou!==null&&(V=I,T(),r(L)),arguments.length>0){let re=Z?r(B):s&&l?ii(U):U;if(!B.equals(re)){if(V=!0,N(L,re),y&&p!==void 0&&(p=re),Yh(B))return U;Tt(()=>r(B))}return U}return Yh(B)?B.v:r(B)}}var Eb;typeof HTMLElement=="function"&&(Eb=class extends HTMLElement{constructor(e,i,o){super();nr(this,"$$ctor");nr(this,"$$s");nr(this,"$$c");nr(this,"$$cn",!1);nr(this,"$$d",{});nr(this,"$$r",!1);nr(this,"$$p_d",{});nr(this,"$$l",{});nr(this,"$$l_u",new Map);nr(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(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),$(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=Ib(this);for(let s of this.$$s)s in n&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=yf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Ih({component:this.$$ctor,target:this.shadowRoot||this,props:Ut(K({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Jc(()=>{Qo(()=>{var s;this.$$r=!0;for(let l of Pp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=yf(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 s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,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]=yf(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 Pp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function yf(t,e,i,o){var s;let n=(s=i[t])==null?void 0:s.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 Ib(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Zh="5";var Xh,Jh,e1;typeof window!="undefined"&&((e1=(Jh=(Xh=window.__svelte)!=null?Xh:window.__svelte={}).v)!=null?e1:Jh.v=new Set).add(Zh);var Rl=require("@vkontakte/videoplayer-core/es2015"),OZ=require("@vkontakte/videoplayer-core/es2015"),Wa=require("@vkontakte/videoplayer-shared/es2015"),e_=require("@vkontakte/videoplayer-statistics/es2015");var ma=require("@vkontakte/videoplayer-shared/es2015");var kb={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:ma.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:ma.VideoQuality.Q_480P,highQualityLimit:ma.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,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,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,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!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,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1,usePuid:!0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3},t1=t=>(0,ma.fillWithDefault)(t,kb),i1=t=>el("ui-config",t),kt=()=>Ja("ui-config");var yd="vk_player_debug_panel_opened";var o1="videoplayer",n1="videoplayer";var us={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},r1=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),s1=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),a1=new Set(["ShiftRight","ShiftLeft"]);var l1=["TIMELINE"],xd=[...l1,"GRAPH_BUTTON"],xf=[...l1,"PLAY_BUTTON"],wd=[...xd,"PLAY_BUTTON"];var Gr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Gr||{}),ga={xs:0,s:1,m:2,l:3,xl:4};var Sd=require("@vkontakte/videoplayer-shared/es2015"),d1=require("@vkontakte/videoplayer-core/es2015"),c1=require("@vkontakte/videoplayer-statistics/es2015");var mu="prod",ha="1.1.74-dev.e771e267.0";var _a=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var u1=Symbol("storeContext"),p1=Symbol("microStoresContext"),f1=(t,e)=>{el(u1,t),el(p1,e),mu==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=Ja(u1);return(0,Sd.assertNonNullable)(t,"Store context is empty!"),t},go=()=>{let t=Ja(p1);return(0,Sd.assertNonNullable)(t,"MicroStores context is empty!"),t},oi=(t,e)=>gu(t,t.getValue(),e),gu=(t,e,i)=>kr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),m1=(t,e,i,o)=>{var B,F,H,U,Z,re,G,be;let n=t.info,{width:s,height:l}=_e(i.ui.playerSize),d=(F=(B=n.throughputEstimation$.getValue())==null?void 0:B.toFixed(0))!=null?F:0,a=(U=(H=n.rttEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?U:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${ha} (core: ${d1.VERSION}, stat: ${c1.VERSION}, shared: ${Sd.VERSION})`,m=_e(i.state.errorLog$),p=m.length?`
45
+ `+m.map((ee,pe)=>{var Oe;let ve=`${pe}) Type: ${ee.id}
46
+ `,ue=`Message: ${ee.message} (${ee.thrown})
47
+ `,Me=`Trace: ${(Oe=ee.thrown)==null?void 0:Oe.stack}
48
+ `;return ve+ue+Me}).join(`
49
+ `):void 0,x=i.state.isAudioDisabled?"disabled":_e(i.state.isAudioAvailable$)?void 0:"unavailable",y=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),T=[];y&&T.push(`Video: ${(Z=y==null?void 0:y.codec)!=null?Z:""}`+(y!=null&&y.hdr?" (HDR)":"")),w&&T.push(`Audio: ${(re=w==null?void 0:w.codec)!=null?re:""}`+(w!=null&&w.language?` (${w.language})`:""));let C=n.currentQuality$.getValue(),E="";if(C){let ee=n.availableQualitiesFps$.getValue()[C];E=ee?`${ee}fps`:""}let V=(be=(G=n.currentBuffer$.getValue())==null?void 0:G.end)!=null?be:0,I=Math.max(V-_e(i.state.positionExact$),0),L={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:_e(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:T.join(", "),Quality:`${u} ${C} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:x,Position:`${_e(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${_e(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(L).filter(([ee,pe])=>pe!==void 0).map(([ee,pe])=>`${ee}: ${pe}`).join(`
50
+ `)},v1=(t,e,i)=>{var F,H,U,Z;let o=t.info,{width:n,height:s}=_e(i.ui.playerSize),l={version:ha,viewport:`${n}x${s}`,volume:Math.round(_e(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 u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),m=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(m&&p?l.buffer=f.end-p:l.buffer=Math.max(f.end-_e(i.state.positionExact$),0)),l.position=_e(i.state.positionExact$);let x=o.throughputEstimation$.getValue();x&&(l.speed=x);let y=o.videoBitrate$.getValue();y&&(l.bitrate=y);let w=o.liveLatency$.getValue();w&&(l.liveLatency=w);let T=o.currentVideoSegmentLength$.getValue();T&&(l.currentVideoSegmentLength=T);let C=o.currentAudioSegmentLength$.getValue();C&&(l.currentAudioSegmentLength=C);let E=_e(i.vsid);typeof E=="string"&&(l.vsid=E);let V=(F=t.info.currentVideoStream$.getValue())==null?void 0:F.codec;V&&(l.videoCodec=V);let I=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;I&&(l.audioCodec=I),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(l.hdr=!0);let B=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return B&&(l.audioLanguage=B),l},g1=(t,e)=>_a(t,e,"mp4"),h1=t=>!t.type,_1=t=>!!t.type,b1=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},vu=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 hi=require("@vkontakte/videoplayer-shared/es2015"),rL=require("@vkontakte/videoplayer-core/es2015");var $1="vk_player_prefer_traffic_saving_enabled",y1="vk_player_preferred_volume",x1="vk_player_prefer_volume_mute",Tf="vk_player_preferred_quality",wf="vk_player_preferred_default_quality_settings",Sf="vk_player_preferred_quality_settings_by_video",w1="vk_player_preferred_stream_language",S1="vk_player_preferred_rate",C1="vk_player_preferred_autoplay_next",Cf="vk_player_preferred_subtitles_language",T1="vk_player_user_video_prefs",E1=t=>t>1?1:t<0?0:t,Ef=t=>hi.safeStorage.set(y1,E1(t).toString(10)),hu=()=>{let t=hi.safeStorage.get(y1);return(0,hi.isNullable)(t)?void 0:E1(parseFloat(t))},If=(t,e)=>hi.safeStorage.set(Tf,JSON.stringify({videoId:t,value:e})),_u=()=>hi.safeStorage.remove(Tf),kf=t=>{let e=hi.safeStorage.get(Tf);if((0,hi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){_u();return}return o},Af=(t,e)=>{e?hi.safeStorage.set(t,"true"):hi.safeStorage.remove(t)},Pf=t=>hi.safeStorage.get(t)==="true",Lf=t=>Af(x1,t),I1=()=>Pf(x1),Cd=t=>Af($1,t),Mf=()=>Pf($1),k1=()=>hi.safeStorage.get(w1),Vf=t=>hi.safeStorage.set(w1,t),Rf=()=>hi.safeStorage.get(Cf),Of=t=>{t?hi.safeStorage.set(Cf,t):hi.safeStorage.remove(Cf)},A1=t=>hi.safeStorage.set(S1,JSON.stringify({rate:t})),P1=()=>{let t=hi.safeStorage.get(S1);if((0,hi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},L1=t=>Af(C1,t),M1=()=>Pf(C1),Ab=()=>{let t=f=>{hi.safeStorage.set(wf,JSON.stringify(f))},e=()=>{try{let f=hi.safeStorage.get(wf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=hi.safeStorage.get(Sf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{hi.safeStorage.set(Sf,JSON.stringify(f))},n=f=>{u(f);let m=f?i():null;if(m&&(m==null?void 0:m.videoId)===f)return Ut(K({},m),{appliesTo:"to-video"});m&&s();let p=e();return p?Ut(K({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{hi.safeStorage.remove(Sf)},l=()=>{hi.safeStorage.remove(wf)},d=(f,m="as-default")=>{f.type==="exact_quality"||m==="to-video"?o(f):t(f)},a=f=>{let m=n(f);if(m){switch(m.type){case"traffic_saving":Cd(!0);break;case"exact_quality":If(f,m.quality)}s(),l()}},u=f=>{let m=kf(f);if(m){o({type:"exact_quality",videoId:f,quality:m});return}Mf()&&t({type:"traffic_saving",videoId:f}),Cd(!1),_u()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Rf,savePreferredSubtitlesLanguage:Of}},{getPreferredQualitySettings:V1,migrateSettingsToLegacyWay:R1,savePreferredQualitySettings:bu,savePreferredDefaultQualitySettings:sL,removePreferredQualitySettingsByVideo:aL,getPreferredDefaultQualitySettings:$u}=Ab(),Pb=3,Lb=3,O1=()=>{let t=hi.safeStorage.get(T1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},yu=(t,e)=>{var n,s;let i=O1();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},Nf=(t,e,i)=>{var l,d,a;let o=(l=O1())!=null?l:{},n=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(n,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=n;let s=Mb(o);hi.safeStorage.set(T1,JSON.stringify(s))};function Mb(t){let e=Object.entries(t).reduce((o,[n,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([n,l]),o},[]);return e.sort(([,o],[,n])=>o>n?-1:1),e.splice(Lb),e.reduce((o,[n])=>(o[n]=Vb(t[n]),o),{})}function Vb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(Pb),Object.fromEntries(e)}var Kv=require("@vkontakte/videoplayer-core/es2015");var Rb=we('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function Td(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Rb();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var gl=require("@vkontakte/videoplayer-shared/es2015");var Ob={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_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",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",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",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,
51
51
  \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 -
52
- \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`},y1=Cb;var Tb={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_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",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,
52
+ \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`,double_forward_label:"2x"},N1=Ob;var Nb={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_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",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,
53
53
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
- Try switching the\xA0quality to\xA0Auto.`},x1=Tb;var Cs=new Map;Cs.set(hl.InterfaceLanguage.EN,x1);Cs.set(hl.InterfaceLanguage.RU,y1);var w1=new Map,If=({language:t,pack:e,fallback:i})=>{if(Cs.has(t)){let o=Cs.get(t);Cs.set(t,W(W({},o),e))}else Cs.set(t,e);w1.set(t,i)},kf=t=>Cs.has(t),Af=(t,e,i,o)=>{var l;let n=Cs.get(t),s=n==null?void 0:n[e];if((0,hl.isNullable)(s)){let d=(l=w1.get(t))!=null?l:o,a=d?Cs.get(d):void 0;s=a==null?void 0:a[e]}return(0,hl.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},q=(t,e)=>{let{interfaceLanguage$:i}=Ie(),o=ye(i),n=Mt();return Af(o,t,e,n.defaultLanguage)};var mM=require("@vkontakte/videoplayer-core/es2015");var _l;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(_l||(_l={}));var Eb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ib=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,kb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,gu="?",Ab="X-Sentry-Auth",Pb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Mb(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
- `),o,n;for(let s=0;s<i.length;++s){if(o=Eb.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||gu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=kb.exec(i[s]))n={filename:o[2],function:o[1]||gu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Ib.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||gu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=gu),e.push(n)}return e.length?{value:S1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function S1(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function Lb(t){try{let e=Mb(t);if(e)return e}catch(e){}return{value:S1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Vb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var hu=class{constructor(e){if(e&&e.dsn){let i=Pb.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),s=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/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 Dt(W({},this.getRequestBlank()),{exception:{values:[Lb(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(Ab,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Vb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function C1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Rb(){return window}var _u=class t extends hu{constructor(e,i=Rb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",W({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",W({},e)),this}setUser(e){return this.setKeyState("user",W({},e)),this}clone(){let e=new t(Dt(W({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[W({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Dt(W({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>C1(i,o))):!1}getRequestBlank(){return W(Dt(W({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(W({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>C1(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],s=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return Dt(W({},i),{[o]:s||d?[...s||[],...d||[]]:W(W({},typeof n!="string"?n:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var $a=require("@vkontakte/videoplayer-shared/es2015");var bu=null,ya=class{constructor(e,i,o={}){!bu&&e.dsn&&(this.sentryClient=new _u({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new $a.Subscription,this.options=e,this.context=o,bu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),bu=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:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:x}=i;if((0,$a.isNonNullable)(x)&&v.includes(x)||(0,$a.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,$a.isNonNullable)(x)&&u.includes(x)||(0,$a.isNonNullable)(p)&&a.includes(p)){Object.keys(i).length&&n.setTags(W({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras(W(W({},s),o));try{p&&n.captureMessage(p,i.fatal?_l.fatal:_l.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return bu}};var as=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(as||{});var $u=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.resolve()):Promise.reject()},yu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),T1=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,E1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},wd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},zs=()=>!!wd(),xu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},wu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},I1=t=>{let e=window.screen;return(n=>_t(null,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 Pf=require("@vkontakte/videoplayer-core/es2015"),k1=()=>({title:q("hotkey_map_modal_title"),closeBtnText:q("hotkey_map_modal_close_btn_text"),groups:[{title:q("hotkey_map_group_title_common"),items:[{description:q("hotkey_map_item_mute_description"),value:q("hotkey_map_item_mute_value")},{description:q("hotkey_map_item_volume_up_description"),value:q("hotkey_map_item_volume_up_value")},{description:q("hotkey_map_item_volume_down_description"),value:q("hotkey_map_item_volume_down_value")},{description:q("hotkey_map_item_pip_description"),value:q("hotkey_map_item_pip_value")},{description:q("hotkey_map_item_full_screen_description"),value:q("hotkey_map_item_full_screen_value")},{description:q("hotkey_map_item_show_context_menu_description"),value:q("hotkey_map_item_show_context_menu_value")},{description:q("hotkey_map_item_show_hotkey_map_description"),value:q("hotkey_map_item_show_hotkey_map_value")}]},{title:q("hotkey_map_group_title_playback"),items:[{description:q("hotkey_map_item_play_toggle_description"),value:q("hotkey_map_item_play_toggle_value")},{description:q("hotkey_map_item_seek_backward_description"),value:q("hotkey_map_item_seek_backward_value")},{description:q("hotkey_map_item_seek_forward_description"),value:q("hotkey_map_item_seek_forward_value")},{description:q("hotkey_map_item_fast_seek_backward_description"),value:q("hotkey_map_item_fast_seek_backward_value")},{description:q("hotkey_map_item_fast_seek_forward_description"),value:q("hotkey_map_item_fast_seek_forward_value")},{description:q("hotkey_map_item_rate_down_description"),value:q("hotkey_map_item_rate_down_value")},{description:q("hotkey_map_item_rate_up_description"),value:q("hotkey_map_item_rate_up_value")},{description:q("hotkey_map_item_prev_frame_description"),value:q("hotkey_map_item_prev_frame_value")},{description:q("hotkey_map_item_next_frame_description"),value:q("hotkey_map_item_next_frame_value")},{description:q("hotkey_map_item_jump_seek_description"),value:q("hotkey_map_item_jump_seek_value")},{description:q("hotkey_map_item_next_video_description"),value:q("hotkey_map_item_next_video_value")},{description:q("hotkey_map_item_prev_video_description"),value:q("hotkey_map_item_prev_video_value")}]},{title:q("hotkey_map_group_title_subtitles"),items:[{description:q("hotkey_map_item_subtitles_toggle_description"),value:q("hotkey_map_item_subtitles_toggle_value")}]},{title:q("hotkey_map_group_title_episodes"),items:[{description:q("hotkey_map_item_prev_episode_description"),value:Pf.clientChecker.device.isApple?q("hotkey_map_item_prev_episode_mac_value"):q("hotkey_map_item_prev_episode_pc_value")},{description:q("hotkey_map_item_next_episode_description"),value:Pf.clientChecker.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});var bl=require("@vkontakte/videoplayer-shared/es2015");var xa=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,bl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new bl.ValueSubject(!1),isEnabled$:new bl.ValueSubject(!1),type:0};this.info.isEnabled$=new bl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return _t(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return _t(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}})}exit(){return _t(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=W({},e)}removeEventHandlers(){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 _t(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).enterpictureinpicture)==null||s.call(n,e))}onLeavePictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).leavepictureinpicture)==null||s.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function wa(t){return t instanceof xa}var $l=require("@vkontakte/videoplayer-shared/es2015");Ig();function Lf(t,e){U(e,!1);let i=Ie();Rt(()=>{i.getAdmanWrapper().startPostroll()}),Wr(),z()}var A1=require("@vkontakte/videoplayer-shared/es2015");var Nb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},Ob=M('<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>'),Bb=M("<div><!></div>"),Db={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 Vf(t,e){U(e,!0),Q(t,Db);let[i,o]=Fe(),n=()=>S(u,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,A1.noop),u=Ie().ui.isMobile,f=g(()=>s()>0&&s()>=l());var v=Bb();let p;v.__click=[Nb,f,d];var x=_(v);{var w=C=>{var T=Ob(),E=_(T);Ce(),h(T),D(L=>$e(E,`${L!=null?L:""} `),[()=>q("skip_ads_now")]),$(C,T)},y=C=>{var T=ns();D(E=>$e(T,E),[()=>q("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(C,T)};R(x,C=>{r(f)?C(w):C(y,!1)})}h(v),D(C=>p=ie(v,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,v),z(),o()}pt(["click"]);var Hb=M('<button class="svelte-1wy3dql"> </button>'),Fb={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Rf(t,e){U(e,!1),Q(t,Fb),Wr();var i=Hb(),o=_(i,!0);h(i),D(n=>$e(o,n),[()=>q("visit_advertiser")],Hr),$(t,i),z()}var Ub=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),zb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Wb={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(
54
+ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},B1=Nb;var Cs=new Map;Cs.set(gl.InterfaceLanguage.EN,B1);Cs.set(gl.InterfaceLanguage.RU,N1);var D1=new Map,Bf=({language:t,pack:e,fallback:i})=>{if(Cs.has(t)){let o=Cs.get(t);Cs.set(t,K(K({},o),e))}else Cs.set(t,e);D1.set(t,i)},Df=t=>Cs.has(t),Ff=(t,e,i,o)=>{var l;let n=Cs.get(t),s=n==null?void 0:n[e];if((0,gl.isNullable)(s)){let d=(l=D1.get(t))!=null?l:o,a=d?Cs.get(d):void 0;s=a==null?void 0:a[e]}return(0,gl.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},Q=(t,e)=>{let{interfaceLanguage$:i}=Te(),o=_e(i),n=kt();return Ff(o,t,e,n.defaultLanguage)};var LL=require("@vkontakte/videoplayer-core/es2015");var hl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(hl||(hl={}));var Bb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Db=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Fb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,xu="?",Hb="X-Sentry-Auth",Ub=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function zb(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,n;for(let s=0;s<i.length;++s){if(o=Bb.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||xu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=Fb.exec(i[s]))n={filename:o[2],function:o[1]||xu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Db.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||xu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=xu),e.push(n)}return e.length?{value:F1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function F1(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function Wb(t){try{let e=zb(t);if(e)return e}catch(e){}return{value:F1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Kb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var wu=class{constructor(e){if(e&&e.dsn){let i=Ub.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),s=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/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 Ut(K({},this.getRequestBlank()),{exception:{values:[Wb(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(Hb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Kb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function H1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function qb(){return window}var Su=class t extends wu{constructor(e,i=qb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",K({},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",K({},e)),this}setUser(e){return this.setKeyState("user",K({},e)),this}clone(){let e=new t(Ut(K({},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:[K({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Ut(K({},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=>H1(i,o))):!1}getRequestBlank(){return K(Ut(K({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(K({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=>H1(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],s=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return Ut(K({},i),{[o]:s||d?[...s||[],...d||[]]:K(K({},typeof n!="string"?n:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var ba=require("@vkontakte/videoplayer-shared/es2015");var Cu=null,$a=class{constructor(e,i,o={}){!Cu&&e.dsn&&(this.sentryClient=new Su({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ba.Subscription,this.options=e,this.context=o,Cu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Cu=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:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:m}=l,{errorType:p,category:x}=i;if((0,ba.isNonNullable)(x)&&m.includes(x)||(0,ba.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,ba.isNonNullable)(x)&&u.includes(x)||(0,ba.isNonNullable)(p)&&a.includes(p)){Object.keys(i).length&&n.setTags(K({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras(K(K({},s),o));try{p&&n.captureMessage(p,i.fatal?hl.fatal:hl.error),n.report(e)}catch(w){console.error(w)}}}static getInstance(){return Cu}};var ps=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ps||{});var Tu=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.resolve()):Promise.reject()},Eu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),U1=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,z1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Ed=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ws=()=>!!Ed(),Iu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ku=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},W1=t=>{let e=window.screen;return(n=>Ct(null,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 Hf=require("@vkontakte/videoplayer-core/es2015"),K1=()=>({title:Q("hotkey_map_modal_title"),closeBtnText:Q("hotkey_map_modal_close_btn_text"),groups:[{title:Q("hotkey_map_group_title_common"),items:[{description:Q("hotkey_map_item_mute_description"),value:Q("hotkey_map_item_mute_value")},{description:Q("hotkey_map_item_volume_up_description"),value:Q("hotkey_map_item_volume_up_value")},{description:Q("hotkey_map_item_volume_down_description"),value:Q("hotkey_map_item_volume_down_value")},{description:Q("hotkey_map_item_pip_description"),value:Q("hotkey_map_item_pip_value")},{description:Q("hotkey_map_item_full_screen_description"),value:Q("hotkey_map_item_full_screen_value")},{description:Q("hotkey_map_item_show_context_menu_description"),value:Q("hotkey_map_item_show_context_menu_value")},{description:Q("hotkey_map_item_show_hotkey_map_description"),value:Q("hotkey_map_item_show_hotkey_map_value")}]},{title:Q("hotkey_map_group_title_playback"),items:[{description:Q("hotkey_map_item_play_toggle_description"),value:Q("hotkey_map_item_play_toggle_value")},{description:Q("hotkey_map_item_seek_backward_description"),value:Q("hotkey_map_item_seek_backward_value")},{description:Q("hotkey_map_item_seek_forward_description"),value:Q("hotkey_map_item_seek_forward_value")},{description:Q("hotkey_map_item_fast_seek_backward_description"),value:Q("hotkey_map_item_fast_seek_backward_value")},{description:Q("hotkey_map_item_fast_seek_forward_description"),value:Q("hotkey_map_item_fast_seek_forward_value")},{description:Q("hotkey_map_item_rate_down_description"),value:Q("hotkey_map_item_rate_down_value")},{description:Q("hotkey_map_item_rate_up_description"),value:Q("hotkey_map_item_rate_up_value")},{description:Q("hotkey_map_item_prev_frame_description"),value:Q("hotkey_map_item_prev_frame_value")},{description:Q("hotkey_map_item_next_frame_description"),value:Q("hotkey_map_item_next_frame_value")},{description:Q("hotkey_map_item_jump_seek_description"),value:Q("hotkey_map_item_jump_seek_value")},{description:Q("hotkey_map_item_next_video_description"),value:Q("hotkey_map_item_next_video_value")},{description:Q("hotkey_map_item_prev_video_description"),value:Q("hotkey_map_item_prev_video_value")}]},{title:Q("hotkey_map_group_title_subtitles"),items:[{description:Q("hotkey_map_item_subtitles_toggle_description"),value:Q("hotkey_map_item_subtitles_toggle_value")}]},{title:Q("hotkey_map_group_title_episodes"),items:[{description:Q("hotkey_map_item_prev_episode_description"),value:Hf.clientChecker.device.isApple?Q("hotkey_map_item_prev_episode_mac_value"):Q("hotkey_map_item_prev_episode_pc_value")},{description:Q("hotkey_map_item_next_episode_description"),value:Hf.clientChecker.device.isApple?Q("hotkey_map_item_next_episode_mac_value"):Q("hotkey_map_item_next_episode_pc_value")}]}]});var _l=require("@vkontakte/videoplayer-shared/es2015");var ya=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,_l.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new _l.ValueSubject(!1),isEnabled$:new _l.ValueSubject(!1),type:0};this.info.isEnabled$=new _l.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return Ct(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}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}})}exit(){return Ct(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var e;this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers()})}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=K({},e)}removeEventHandlers(){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.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).enterpictureinpicture)==null||s.call(n,e))}onLeavePictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).leavepictureinpicture)==null||s.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function xa(t){return t instanceof ya}var bl=require("@vkontakte/videoplayer-shared/es2015");Wg();function zf(t,e){z(e,!1);let i=Te();Rt(()=>{i.getAdmanWrapper().startPostroll()}),Qr(),W()}var q1=require("@vkontakte/videoplayer-shared/es2015");var Qb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},Gb=P('<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>'),jb=P("<div><!></div>"),Yb={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 Wf(t,e){z(e,!0),q(t,Yb);let[i,o]=He(),n=()=>S(u,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,q1.noop),u=Te().ui.isMobile,f=g(()=>s()>0&&s()>=l());var m=jb();let p;m.__click=[Qb,f,d];var x=_(m);{var y=T=>{var C=Gb(),E=_(C);xe(),h(C),D(V=>ge(E,`${V!=null?V:""} `),[()=>Q("skip_ads_now")]),$(T,C)},w=T=>{var C=cs();D(E=>ge(C,E),[()=>Q("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(T,C)};R(x,T=>{r(f)?T(y):T(w,!1)})}h(m),D(T=>p=se(m,1,"container svelte-1k4i25s",null,p,T),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,m),W(),o()}ct(["click"]);var Zb=P('<button class="svelte-1wy3dql"> </button>'),Xb={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 Kf(t,e){z(e,!1),q(t,Xb),Qr();var i=Zb(),o=_(i,!0);h(i),D(n=>ge(o,n),[()=>Q("visit_advertiser")],Ur),$(t,i),W()}var Jb=P('<div class="top-gradient-mobile svelte-354ajf"></div>'),e$=P('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),t$={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
57
57
  360deg,
58
58
  rgba(0, 0, 0, 0) 0%,
59
59
  rgba(0, 0, 0, 0.05) 12%,
@@ -63,7 +63,7 @@ Try switching the\xA0quality to\xA0Auto.`},x1=Tb;var Cs=new Map;Cs.set(hl.Interf
63
63
  rgba(0, 0, 0, 0.5) 77%,
64
64
  rgba(0, 0, 0, 0.55) 88%,
65
65
  rgba(0, 0, 0, 0.65) 100%
66
- );}`};function Cd(t,e){U(e,!0),Q(t,Wb);let[i,o]=Fe(),n=()=>S(H,"$canSkipAd",i),s=()=>S(j,"$adPlaybackState",i),l=()=>S(E,"$isMobile",i),d=()=>S(F,"$adPosition",i),a=()=>S(K,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),p=m(e,"adsAutoplayParam",3,void 0),x=m(e,"duration",3,0),w=m(e,"adsExternalApi",3,void 0),y=Ie(),C=Mt(),T=y.state.isEnded$,E=y.ui.isMobile,L=C.ads.isMobileGoToSiteButton,k=Z(void 0),I=Z(void 0),V=!1,j=y.ads.playbackState,H=y.ads.canSkip,F=y.ads.position,K=y.ads.secondsToWatchBeforeSkip,ee=g(()=>n()&&s()!=="inactive"),Y=g(()=>l()&&s()!=="inactive"&&L);Rt(()=>{var ke;let ue=y.getAdmanWrapper();if($l.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,$l.now)(),f()]}),!f()){ue.onAdmanLoadingError();return}let Ve=ze=>_t(null,null,function*(){yield ue.initAdman(ze),V=!0}),ge=new AbortController,te=()=>{ge.abort()},{width:ve,height:He}=ye(y.ui.playerSize),me=ye(y.ui.isFullscreen),ct=(ke=p())!=null?ke:ye(y.ui.isAutoplay),X=C.ads.paramsOverride,Me={width:ve,height:He,isFullscreen:me,isAutoplay:ct,adsContainer:r(k),adsVideoElement:r(I),slotId:f(),params:v(),paramsOverride:X,duration:x(),externalApi:w()};return window.AdmanHTML?Ve(Me):ue.loadAdman(ge.signal).then(()=>Ve(Me)).catch(()=>{ue.onAdmanLoadingError()}),()=>{$l.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,$l.now)(),f()]}),!V&&te()}});var de=zb(),oe=_(de);{var fe=ue=>{var Ve=Ub();$(ue,Ve)};R(oe,ue=>{l()&&ue(fe)})}var _e=A(oe,2);nt(_e,ue=>B(I,ue),()=>r(I));var pe=A(_e,2);{var Oe=ue=>{Vf(ue,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};R(pe,ue=>{r(ee)&&ue(Oe)})}var ne=A(pe,2);{var Re=ue=>{Lf(ue,{})};R(ne,ue=>{u()&&ue(Re)})}var re=A(ne,2);{var O=ue=>{Rf(ue,{})};R(re,ue=>{r(Y)&&ue(O)})}h(de),nt(de,ue=>B(k,ue),()=>r(k)),$(t,de),z(),o()}var In=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(s=>String(s).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var Kb=Te('<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 Nf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Kb();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}var qb=Te('<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 Of(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=qb();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}function Td(t,e){let i=m(e,"isActive",3,!1);var o=Qe(),n=he(o);{var s=d=>{Of(d,{})},l=d=>{Nf(d,{})};R(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var Qb=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),Gb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),jb=M('<span class="text svelte-1s15d2i"> </span>'),Yb=M("<div><!> <!></div>"),Zb={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
66
+ );}`};function kd(t,e){z(e,!0),q(t,t$);let[i,o]=He(),n=()=>S(F,"$canSkipAd",i),s=()=>S(B,"$adPlaybackState",i),l=()=>S(C,"$isMobile",i),d=()=>S(H,"$adPosition",i),a=()=>S(U,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=v(e,"adsSlotId",3,void 0),m=v(e,"adsParams",3,void 0),p=v(e,"adsAutoplayParam",3,void 0),x=v(e,"duration",3,0),y=Te(),w=kt(),T=y.state.isEnded$,C=y.ui.isMobile,E=w.ads.isMobileGoToSiteButton,V=J(void 0),I=J(void 0),L=!1,B=y.ads.playbackState,F=y.ads.canSkip,H=y.ads.position,U=y.ads.secondsToWatchBeforeSkip,Z=g(()=>n()&&s()!=="inactive"),re=g(()=>l()&&s()!=="inactive"&&E);Rt(()=>{var Se;let X=y.getAdmanWrapper();if(bl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,bl.now)(),f()]}),!f()){X.onAdmanLoadingError();return}let M=Ee=>{X.initAdman(Ee),L=!0},st=new AbortController,Fe=()=>{st.abort()},{width:j,height:oe}=_e(y.ui.playerSize),Be=_e(y.ui.isFullscreen),Je=(Se=p())!=null?Se:_e(y.ui.isAutoplay),$e=w.ads.paramsOverride,ie={width:j,height:oe,isFullscreen:Be,isAutoplay:Je,adsContainer:r(V),adsVideoElement:r(I),slotId:f(),params:m(),paramsOverride:$e,duration:x()};return window.AdmanHTML?M(ie):X.loadAdman(st.signal).then(()=>{M(ie)}).catch(()=>{X.onAdmanLoadingError()}),()=>{bl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,bl.now)(),f()]}),!L&&Fe()}});var G=e$(),be=_(G);{var ee=X=>{var M=Jb();$(X,M)};R(be,X=>{l()&&X(ee)})}var pe=k(be,2);rt(pe,X=>N(I,X),()=>r(I));var ve=k(pe,2);{var ue=X=>{Wf(X,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};R(ve,X=>{r(Z)&&X(ue)})}var Me=k(ve,2);{var Oe=X=>{zf(X,{})};R(Me,X=>{u()&&X(Oe)})}var le=k(Me,2);{var De=X=>{Kf(X,{})};R(le,X=>{r(re)&&X(De)})}h(G),rt(G,X=>N(V,X),()=>r(V)),$(t,G),W(),o()}var bn=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(s=>String(s).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var i$=we('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function qf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=i$();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var o$=we('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function Qf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=o$();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function Ad(t,e){let i=v(e,"isActive",3,!1);var o=Ue(),n=me(o);{var s=d=>{Qf(d,{})},l=d=>{qf(d,{})};R(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var n$=P('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),r$=P('<div class="live-icon svelte-1s15d2i"><!></div>'),s$=P('<span class="text svelte-1s15d2i"> </span>'),a$=P("<div><!> <!></div>"),l$={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
67
67
  opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
68
68
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
69
69
  animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
@@ -134,10 +134,10 @@ Try switching the\xA0quality to\xA0Auto.`},x1=Tb;var Cs=new Map;Cs.set(hl.Interf
134
134
  100% {
135
135
  transform: scaleY(0.6);
136
136
  }
137
- }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Ed(t,e){Q(t,Zb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var s=Yb();let l;var d=_(s);{var a=p=>{var x=Qb();$(p,x)};R(d,p=>{i()&&p(a)})}var u=A(d,2);{var f=p=>{var x=Gb(),w=_(x);Td(w,{isActive:!0}),h(x),$(p,x)},v=p=>{var x=jb(),w=_(x,!0);h(x),D(()=>$e(w,e.time)),$(p,x)};R(u,p=>{o()?p(f):p(v,!1)})}h(s),D(p=>l=ie(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:n()})]),$(t,s)}var yl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Xb=M('<div role="timer" data-testid="thumb-timer"><!></div>'),Jb={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
- opacity var(--controls-transition-duration);}`};function Id(t,e){U(e,!0),Q(t,Jb);let[i,o]=Fe(),n=()=>S(f,"$disabled",i),s=m(e,"isHidden",3,!1),l=m(e,"isLive",3,!1),d=m(e,"isPlaying",3,!1),a=Mt(),u=g(()=>In(e.duration-e.position)),f=ae(!1);var v=Xb();let p;var x=_(v);Ed(x,{get time(){return r(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(v),ws(v,()=>yl(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(w=>p=ie(v,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":n(),hidden:s()})]),$(t,v),z(),o()}var xl=t=>{if(!navigator.clipboard){P1(t);return}navigator.clipboard.writeText(t).catch(()=>P1(t))};function P1(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 H1=require("@vkontakte/videoplayer-core/es2015");var Df=require("@vkontakte/videoplayer-core/es2015");var Bf="focus-hidden";var Cr=t=>{t.stopPropagation(),t.preventDefault()},Hf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Bf)},t$=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},i$=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},o$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},n$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},M1=t=>t.code==="Escape",r$=t=>t.code==="ArrowLeft",kd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},L1=t=>{o$(t)?(Cr(t),i$(t.target)):n$(t)&&(Cr(t),t$(t.target))},qs=t=>!Df.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Df.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",wl=(t,e,i)=>_t(null,null,function*(){yield Co(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(yield Co(),i.set(!1),t.focus())}),V1=(t,e,i)=>_t(null,null,function*(){yield Co(),t&&!e&&ye(i)&&(i.set(!1),t.focus())}),Ad=(t,e,i,o=!1)=>_t(null,null,function*(){if(yield Co(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Bf,!i),s==null||s.focus()}}),R1=(t,e)=>_t(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Su=(t,e)=>{L1(t),Hf(t.target),M1(t)&&(Cr(t),e())},Cu=(t,e)=>_t(null,null,function*(){kd(t,["ArrowRight"])&&(Cr(t),e())}),N1=(t,e,i)=>_t(null,null,function*(){if(L1(t),r$(t)){Cr(t),e();return}M1(t)&&(Cr(t),i())}),Sl=(t,e)=>{kd(t)&&(Cr(t),e())},O1=(t,e,i)=>{if(kd(t))Cr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Cr(t);return}o==="ArrowRight"&&!e&&(i(!0),Cr(t))}},B1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},D1=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 Ta=require("@vkontakte/videoplayer-shared/es2015");var qr={"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 Ff=require("@vkontakte/videoplayer-shared/es2015");var a$=(t,e)=>{Sl(t,()=>e())},l$=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),d$={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function Uf(t,e){U(e,!0),Q(t,d$);let i=m(e,"onClick",3,Ff.noop),o=m(e,"closeContextMenu",3,Ff.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=l$();s.__click=n,s.__keydown=[a$,n];var l=_(s,!0);h(s),D(()=>{var d;Ue(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ue(s,"data-testid",e.id),$e(l,e.label)}),$(t,s),z()}pt(["click","keydown"]);var Ca=(t,e)=>t.weight-e.weight;var Cl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Cl||{});var c$=(t,e)=>{Su(t,e)},u$=t=>{t.preventDefault()},p$=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),f$={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 zf(t,e){U(e,!0),Q(t,f$);let[i,o]=Fe(),n=()=>S(ee,"$isLive$",i),s=()=>S(fe,"$isPiPEnabled$",i),l=()=>S(K,"$chromecastState$",i),d=()=>S(_e,"$pictureInPictureApiIsActive$",i),a=()=>S(oe,"$isLooped$",i),u=()=>S(Y,"$positionExact$",i),f=()=>S(j,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),x=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),C=Z(0),T=Z(0),E=Ie(),{pictureInPicture$:L}=vo(),k=Mt(),I=E.ui.contextMenu.visible$,V=E.ui.debugPanelVisible,j=E.ui.additionalContextMenuItems$,H=E.ui.t,F=E.actions.internal.togglePictureInPicture,K=E.state.chromecastState$,ee=E.state.isLive$,Y=E.state.positionExact$,de=E.state.isInteractive,oe=E.state.looped$,{isEnabled$:fe,isActive$:_e}=L,pe=g(()=>{var Ae;return k.features.copyVideoLink&&((Ae=E.callbacks)==null?void 0:Ae.onCopyVideoLink)}),Oe=g(()=>r(pe)&&!n()&&!de),ne=g(()=>{var Ae;return!!((Ae=E.callbacks)!=null&&Ae.onCopyEmbedCodeClicked)}),Re=g(()=>s()&&l()!==H1.ChromecastState.CONNECTED&&!de),re=g(()=>!de),O=g(()=>k.features.videoRotate&&!de),ue=g(()=>k.showSupport&&!d()),Ve=g(()=>k.features.saveTraceInfoToFile),ge=()=>{var Ae;I.set(!1),(Ae=e.returnFocus)==null||Ae.call(e)},te=(Ae,Ge)=>{if(!y()||!x()||!w())return;let Ne=y().getBoundingClientRect(),Ze=x().getBoundingClientRect();B(C,Ae-Ze.left),B(T,Ge-Ze.top),r(C)+Ne.width>Ze.width&&B(C,Ze.width-Ne.width),r(T)+Ne.height>Ze.height&&B(T,Ze.height-Ne.height),B(C,Math.max(r(C),0),!0),B(T,Math.max(r(T),0),!0)};qe(()=>{_t(null,null,function*(){if(y()&&x()&&w()){yield Co();let{top:Ge,left:Ne,bottom:Ze,right:Lt}=p(),Qt=Ne!=null?Ne:0,ot=Ge!=null?Ge:0,ai=y().getBoundingClientRect();(0,Ta.isNullable)(Ne)&&!(0,Ta.isNullable)(Lt)&&(Qt=Lt-ai.width),(0,Ta.isNullable)(Ge)&&!(0,Ta.isNullable)(Ze)&&(ot=Ze-ai.height),Qt=Math.max(Qt,0),ot=Math.max(ot,0),te(Qt,ot)}})});let ve=()=>{E.actions.internal.videoRotate()},He=()=>{(0,Ta.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},me=()=>{let Ae=E.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let Ge=new Blob([...Ae],{type:"plain/text"}),Ne=window.URL.createObjectURL(Ge);ba(Ne,"vk_player_debug_info","txt")}else xl(E.actions.internal.getDebugTextData())},ct=()=>{let Ae=E.actions.internal.getTraceTextData(),Ge=new Blob([...Ae],{type:"application/json"}),Ne=window.URL.createObjectURL(Ge);ba(Ne,"vk_player_trace_info","json")},X=()=>{V.set(!0)},Me=()=>_t(null,null,function*(){var Ae;try{F()}finally{(Ae=e.returnFocus)==null||Ae.call(e)}}),ke=()=>{E.actions.internal.setLooped(!a())},ze=()=>{var Ae,Ge;if(r(ne)){let Ne=(Ge=(Ae=E.callbacks)==null?void 0:Ae.onCopyEmbedCodeClicked)==null?void 0:Ge.call(Ae);Ne&&xl(Ne)}},rt=(Ae=!1)=>{var Ge,Ne;if((Ge=E.callbacks)!=null&&Ge.onCopyVideoLink){let Ze=(Ne=E.callbacks)==null?void 0:Ne.onCopyVideoLink(Ae,u());Ze&&xl(Ze)}},mt=g(()=>k.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),vt=g(()=>r(pe)?{id:"copy-link",weight:qr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>rt()}:void 0),Tt=g(()=>r(Oe)?{id:"copy-link-timestamp",weight:qr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>rt(!0)}:void 0),Je=g(()=>r(ne)?{id:"copy-embed-code",weight:qr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:ze}:void 0),zt=g(()=>r(Re)?{id:"pip",weight:qr.pip,label:d()?H("menu_pip_close"):H("menu_pip"),onClick:Me}:void 0),Yt=g(()=>r(re)?{id:"video-loop",weight:qr["video-loop"],label:a()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:ke}:void 0),Zt=g(()=>r(O)?{id:"rotate",weight:qr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:ve}:void 0),Wt=g(()=>r(ue)?{id:"report",weight:qr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:He}:void 0),se=g(()=>({id:"save-debug",weight:qr["save-debug"],label:r(mt),onClick:me})),Ft=g(()=>r(Ve)?{id:"save-trace",weight:qr["save-trace"],label:H("menu_save_debug"),onClick:ct}:void 0),be=g(()=>({id:"debug-info",weight:qr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:X})),we=g(()=>[r(vt),r(Tt),r(Je),r(zt),r(Yt),r(Zt),r(Wt),r(se),r(Ft),r(be),...f()].filter(Ae=>!!Ae).sort(Ca));var ce=Qe(),De=he(ce);{var Ke=Ae=>{var Ge=p$();Ge.__contextmenu=[u$],Ge.__keydown=[c$,ge],Ii(Ge,21,()=>r(we),Ne=>Ne.id,(Ne,Ze)=>{Uf(Ne,{get id(){return r(Ze).id},get label(){return r(Ze).label},get ariaLabel(){return r(Ze).ariaLabel},get onClick(){return r(Ze).onClick},closeContextMenu:ge})}),h(Ge),nt(Ge,Ne=>y(Ne),()=>y()),D(()=>{var Ne,Ze;return at(Ge,`top: ${(Ne=r(T))!=null?Ne:""}px; left: ${(Ze=r(C))!=null?Ze:""}px;`)}),$(Ae,Ge)};R(De,Ae=>{v()&&Ae(Ke)})}$(t,ce),z(),o()}pt(["contextmenu","keydown"]);var Tu=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 Tu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var m$=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),v$={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 Pd(t,e){U(e,!0),Q(t,v$);let i=m(e,"values",19,()=>[]),o=Z(void 0),n=Z(null),s=16,l=120,d=60,a=l/d;Rt(()=>{r(o).width=l,r(o).height=s,B(n,r(o).getContext("2d"),!0)});function u(p,x,w,y,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(x,w,y,C)}qe(()=>{let p="";if(r(n)){let x=i()[0];for(let y=1;y<i().length;y++)i()[y]>x&&(x=i()[y]);r(n).clearRect(0,0,l,s);let w=d-1;for(let y=i().length-1;y>=0;y--){let C=w*a,T=x>0?s*(i()[y]/x):0;u(r(n),C,0,a,T),p=T+" "+p,w--}}});var f=m$(),v=_(f);nt(v,p=>B(o,p),()=>r(o)),h(f),$(t,f),z()}var Wf=require("@vkontakte/videoplayer-shared/es2015");var g$=(t,e)=>{t.stopPropagation(),Wf.safeStorage.remove(hd),e.set(!1)},h$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),_$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),b$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),$$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),y$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),x$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),w$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),S$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),C$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),T$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),E$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),I$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),k$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),A$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),P$=M('<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>'),M$={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 Md(t,e){U(e,!0),Q(t,M$);let[i,o]=Fe(),n=()=>S(d,"$isMobile",i),s=Ie(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Z(ni(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=Z(0),v=Z(0),p=Z(0),x=new Tl(60),w=new Tl(60),y=new Tl(60),C=Z(ni([])),T=Z(ni([])),E=Z(ni([])),L=q("aria_label_debug_panel");Rt(()=>{Wf.safeStorage.set(hd,"true"),s.actions.internal.startLogging(),u&&(B(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let be=window.setInterval(()=>{B(a,s.actions.internal.getDebugPanelData(),!0)},500),we;return u&&(we=window.setInterval(()=>{if(u){B(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ce=u.getVideoPlaybackQuality().totalVideoFrames;B(p,ce-r(f)),B(f,ce,!0),x.push(r(p)),r(a).speed&&w.push(r(a).speed),r(a).bitrate&&y.push(r(a).bitrate),B(C,x.getValuesFromBottom(),!0),B(T,w.getValuesFromBottom(),!0),B(E,y.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(be),we&&clearInterval(we)}});var k=P$();let I;var V=_(k);V.__click=[g$,l];var j=A(V,2),H=_(j),F=A(_(H),2),K=_(F,!0);h(F),h(H);var ee=A(H,2);{var Y=be=>{var we=h$(),ce=A(_(we),2),De=_(ce,!0);h(ce),h(we),D(()=>$e(De,r(a).id)),$(be,we)};R(ee,be=>{r(a).id&&be(Y)})}var de=A(ee,2);{var oe=be=>{var we=_$(),ce=A(_(we),2),De=_(ce,!0);h(ce),h(we),D(()=>$e(De,r(a).vsid)),$(be,we)};R(de,be=>{r(a).vsid&&be(oe)})}var fe=A(de,2);{var _e=be=>{var we=b$(),ce=A(_(we),2),De=_(ce,!0);h(ce),h(we),D(()=>$e(De,r(a).provider)),$(be,we)};R(fe,be=>{r(a).provider&&be(_e)})}var pe=A(fe,2);{var Oe=be=>{var we=$$(),ce=A(_(we),2),De=_(ce);h(ce),h(we),D(()=>{var Ke,Ae;return $e(De,`Video: ${(Ke=r(a).videoCodec||"")!=null?Ke:""} ${r(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Pd(t,e){q(t,l$);let i=v(e,"withEqualizer",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var s=a$();let l;var d=_(s);{var a=p=>{var x=n$();$(p,x)};R(d,p=>{i()&&p(a)})}var u=k(d,2);{var f=p=>{var x=r$(),y=_(x);Ad(y,{isActive:!0}),h(x),$(p,x)},m=p=>{var x=s$(),y=_(x,!0);h(x),D(()=>ge(y,e.time)),$(p,x)};R(u,p=>{o()?p(f):p(m,!1)})}h(s),D(p=>l=se(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:n()})]),$(t,s)}var $l=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var d$=P('<div role="timer" data-testid="thumb-timer"><!></div>'),c$={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
+ opacity var(--controls-transition-duration);}`};function Ld(t,e){z(e,!0),q(t,c$);let[i,o]=He(),n=()=>S(f,"$disabled",i),s=v(e,"isHidden",3,!1),l=v(e,"isLive",3,!1),d=v(e,"isPlaying",3,!1),a=kt(),u=g(()=>bn(e.duration-e.position)),f=ae(!1);var m=d$();let p;var x=_(m);Pd(x,{get time(){return r(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(m),ws(m,()=>$l(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(y=>p=se(m,1,"thumb-timer svelte-c6gowj",null,p,y),[()=>({"out-of-flow":n(),hidden:s()})]),$(t,m),W(),o()}var yl=t=>{if(!navigator.clipboard){Q1(t);return}navigator.clipboard.writeText(t).catch(()=>Q1(t))};function Q1(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 i0=require("@vkontakte/videoplayer-core/es2015");var jf=require("@vkontakte/videoplayer-core/es2015");var Gf="focus-hidden";var Ar=t=>{t.stopPropagation(),t.preventDefault()},Yf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Gf)},p$=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},f$=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},m$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},v$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},G1=t=>t.code==="Escape",g$=t=>t.code==="ArrowLeft",Md=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},j1=t=>{m$(t)?(Ar(t),f$(t.target)):v$(t)&&(Ar(t),p$(t.target))},Qs=t=>!jf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||jf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",xl=(t,e,i)=>Ct(null,null,function*(){yield wo(),t&&!t.classList.contains("opened")&&!e&&_e(i)&&(yield wo(),i.set(!1),t.focus())}),Y1=(t,e,i)=>Ct(null,null,function*(){yield wo(),t&&!e&&_e(i)&&(i.set(!1),t.focus())}),Vd=(t,e,i,o=!1)=>Ct(null,null,function*(){if(yield wo(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Gf,!i),s==null||s.focus()}}),Z1=(t,e)=>Ct(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Au=(t,e)=>{j1(t),Yf(t.target),G1(t)&&(Ar(t),e())},Pu=(t,e)=>Ct(null,null,function*(){Md(t,["ArrowRight"])&&(Ar(t),e())}),X1=(t,e,i)=>Ct(null,null,function*(){if(j1(t),g$(t)){Ar(t),e();return}G1(t)&&(Ar(t),i())}),wl=(t,e)=>{Md(t)&&(Ar(t),e())},J1=(t,e,i)=>{if(Md(t))Ar(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Ar(t);return}o==="ArrowRight"&&!e&&(i(!0),Ar(t))}},e0=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},t0=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 Ca=require("@vkontakte/videoplayer-shared/es2015");var jr={"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 Zf=require("@vkontakte/videoplayer-shared/es2015");var _$=(t,e)=>{wl(t,()=>e())},b$=P('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),$$={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 Xf(t,e){z(e,!0),q(t,$$);let i=v(e,"onClick",3,Zf.noop),o=v(e,"closeContextMenu",3,Zf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=b$();s.__click=n,s.__keydown=[_$,n];var l=_(s,!0);h(s),D(()=>{var d;ze(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),ze(s,"data-testid",e.id),ge(l,e.label)}),$(t,s),W()}ct(["click","keydown"]);var Sa=(t,e)=>t.weight-e.weight;var Sl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Sl||{});var y$=(t,e)=>{Au(t,e)},x$=t=>{t.preventDefault()},w$=P('<ul role="menu" class="svelte-1p5ukkp"></ul>'),S$={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 Jf(t,e){z(e,!0),q(t,S$);let[i,o]=He(),n=()=>S(re,"$isLive$",i),s=()=>S(pe,"$isPiPEnabled$",i),l=()=>S(Z,"$chromecastState$",i),d=()=>S(ve,"$pictureInPictureApiIsActive$",i),a=()=>S(ee,"$isLooped$",i),u=()=>S(G,"$positionExact$",i),f=()=>S(F,"$additionalContextMenuItems$",i),m=v(e,"visible",3,!1),p=v(e,"position",19,()=>({top:0,left:0})),x=v(e,"playerContainerRef",3,void 0),y=v(e,"controlsContainerRef",3,void 0),w=v(e,"menuElementRef",15,void 0),T=J(0),C=J(0),E=Te(),{pictureInPicture$:V}=go(),I=kt(),L=E.ui.contextMenu.visible$,B=E.ui.debugPanelVisible,F=E.ui.additionalContextMenuItems$,H=E.ui.t,U=E.actions.internal.togglePictureInPicture,Z=E.state.chromecastState$,re=E.state.isLive$,G=E.state.positionExact$,be=E.state.isInteractive,ee=E.state.looped$,{isEnabled$:pe,isActive$:ve}=V,ue=g(()=>{var Ve;return I.features.copyVideoLink&&((Ve=E.callbacks)==null?void 0:Ve.onCopyVideoLink)}),Me=g(()=>r(ue)&&!n()&&!be),Oe=g(()=>{var Ve;return!!((Ve=E.callbacks)!=null&&Ve.onCopyEmbedCodeClicked)}),le=g(()=>s()&&l()!==i0.ChromecastState.CONNECTED&&!be),De=g(()=>!be),X=g(()=>I.features.videoRotate&&!be),M=g(()=>I.showSupport&&!d()),st=g(()=>I.features.saveTraceInfoToFile),Fe=()=>{var Ve;L.set(!1),(Ve=e.returnFocus)==null||Ve.call(e)},j=(Ve,Ne)=>{if(!w()||!x()||!y())return;let ye=w().getBoundingClientRect(),Ye=x().getBoundingClientRect();N(T,Ve-Ye.left),N(C,Ne-Ye.top),r(T)+ye.width>Ye.width&&N(T,Ye.width-ye.width),r(C)+ye.height>Ye.height&&N(C,Ye.height-ye.height),N(T,Math.max(r(T),0),!0),N(C,Math.max(r(C),0),!0)};qe(()=>{Ct(null,null,function*(){if(w()&&x()&&y()){yield wo();let{top:Ne,left:ye,bottom:Ye,right:yt}=p(),Xt=ye!=null?ye:0,Lt=Ne!=null?Ne:0,_i=w().getBoundingClientRect();(0,Ca.isNullable)(ye)&&!(0,Ca.isNullable)(yt)&&(Xt=yt-_i.width),(0,Ca.isNullable)(Ne)&&!(0,Ca.isNullable)(Ye)&&(Lt=Ye-_i.height),Xt=Math.max(Xt,0),Lt=Math.max(Lt,0),j(Xt,Lt)}})});let oe=()=>{E.actions.internal.videoRotate()},Be=()=>{(0,Ca.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},Je=()=>{let Ve=E.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let Ne=new Blob([...Ve],{type:"plain/text"}),ye=window.URL.createObjectURL(Ne);_a(ye,"vk_player_debug_info","txt")}else yl(E.actions.internal.getDebugTextData())},$e=()=>{let Ve=E.actions.internal.getTraceTextData(),Ne=new Blob([...Ve],{type:"application/json"}),ye=window.URL.createObjectURL(Ne);_a(ye,"vk_player_trace_info","json")},ie=()=>{B.set(!0)},Se=()=>Ct(null,null,function*(){var Ve;try{U()}finally{(Ve=e.returnFocus)==null||Ve.call(e)}}),Ee=()=>{E.actions.internal.setLooped(!a())},Qe=()=>{var Ve,Ne;if(r(Oe)){let ye=(Ne=(Ve=E.callbacks)==null?void 0:Ve.onCopyEmbedCodeClicked)==null?void 0:Ne.call(Ve);ye&&yl(ye)}},tt=(Ve=!1)=>{var Ne,ye;if((Ne=E.callbacks)!=null&&Ne.onCopyVideoLink){let Ye=(ye=E.callbacks)==null?void 0:ye.onCopyVideoLink(Ve,u());Ye&&yl(Ye)}},gt=g(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),dt=g(()=>r(ue)?{id:"copy-link",weight:jr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>tt()}:void 0),ht=g(()=>r(Me)?{id:"copy-link-timestamp",weight:jr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>tt(!0)}:void 0),it=g(()=>r(Oe)?{id:"copy-embed-code",weight:jr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:Qe}:void 0),Wt=g(()=>r(le)?{id:"pip",weight:jr.pip,label:d()?H("menu_pip_close"):H("menu_pip"),onClick:Se}:void 0),Yt=g(()=>r(De)?{id:"video-loop",weight:jr["video-loop"],label:a()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Ee}:void 0),ei=g(()=>r(X)?{id:"rotate",weight:jr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:oe}:void 0),Zt=g(()=>r(M)?{id:"report",weight:jr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:Be}:void 0),Ae=g(()=>({id:"save-debug",weight:jr["save-debug"],label:r(gt),onClick:Je})),Ft=g(()=>r(st)?{id:"save-trace",weight:jr["save-trace"],label:H("menu_save_debug"),onClick:$e}:void 0),Ce=g(()=>({id:"debug-info",weight:jr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:ie})),Ie=g(()=>[r(dt),r(ht),r(it),r(Wt),r(Yt),r(ei),r(Zt),r(Ae),r(Ft),r(Ce),...f()].filter(Ve=>!!Ve).sort(Sa));var ce=Ue(),Ke=me(ce);{var fe=Ve=>{var Ne=w$();Ne.__contextmenu=[x$],Ne.__keydown=[y$,Fe],Li(Ne,21,()=>r(Ie),ye=>ye.id,(ye,Ye)=>{Xf(ye,{get id(){return r(Ye).id},get label(){return r(Ye).label},get ariaLabel(){return r(Ye).ariaLabel},get onClick(){return r(Ye).onClick},closeContextMenu:Fe})}),h(Ne),rt(Ne,ye=>w(ye),()=>w()),D(()=>{var ye,Ye;return at(Ne,`top: ${(ye=r(C))!=null?ye:""}px; left: ${(Ye=r(T))!=null?Ye:""}px;`)}),$(Ve,Ne)};R(Ke,Ve=>{m()&&Ve(fe)})}$(t,ce),W(),o()}ct(["contextmenu","keydown"]);var Lu=class{constructor(e){this.value=e,this.next=null}};var Cl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Lu(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 C$=P('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),T$={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 Rd(t,e){z(e,!0),q(t,T$);let i=v(e,"values",19,()=>[]),o=J(void 0),n=J(null),s=16,l=120,d=60,a=l/d;Rt(()=>{r(o).width=l,r(o).height=s,N(n,r(o).getContext("2d"),!0)});function u(p,x,y,w,T){T===0&&(T=1),p.fillStyle="#fff",p.fillRect(x,y,w,T)}qe(()=>{let p="";if(r(n)){let x=i()[0];for(let w=1;w<i().length;w++)i()[w]>x&&(x=i()[w]);r(n).clearRect(0,0,l,s);let y=d-1;for(let w=i().length-1;w>=0;w--){let T=y*a,C=x>0?s*(i()[w]/x):0;u(r(n),T,0,a,C),p=C+" "+p,y--}}});var f=C$(),m=_(f);rt(m,p=>N(o,p),()=>r(o)),h(f),$(t,f),W()}var em=require("@vkontakte/videoplayer-shared/es2015");var E$=(t,e)=>{t.stopPropagation(),em.safeStorage.remove(yd),e.set(!1)},I$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),k$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),A$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),P$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),L$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),M$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),V$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),R$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),O$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),N$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),B$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),D$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),F$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),H$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),U$=P('<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>'),z$={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 Od(t,e){z(e,!0),q(t,z$);let[i,o]=He(),n=()=>S(d,"$isMobile",i),s=Te(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=J(ii(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=J(0),m=J(0),p=J(0),x=new Cl(60),y=new Cl(60),w=new Cl(60),T=J(ii([])),C=J(ii([])),E=J(ii([])),V=Q("aria_label_debug_panel");Rt(()=>{em.safeStorage.set(yd,"true"),s.actions.internal.startLogging(),u&&(N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Ce=window.setInterval(()=>{N(a,s.actions.internal.getDebugPanelData(),!0)},500),Ie;return u&&(Ie=window.setInterval(()=>{if(u){N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ce=u.getVideoPlaybackQuality().totalVideoFrames;N(p,ce-r(f)),N(f,ce,!0),x.push(r(p)),r(a).speed&&y.push(r(a).speed),r(a).bitrate&&w.push(r(a).bitrate),N(T,x.getValuesFromBottom(),!0),N(C,y.getValuesFromBottom(),!0),N(E,w.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Ce),Ie&&clearInterval(Ie)}});var I=U$();let L;var B=_(I);B.__click=[E$,l];var F=k(B,2),H=_(F),U=k(_(H),2),Z=_(U,!0);h(U),h(H);var re=k(H,2);{var G=Ce=>{var Ie=I$(),ce=k(_(Ie),2),Ke=_(ce,!0);h(ce),h(Ie),D(()=>ge(Ke,r(a).id)),$(Ce,Ie)};R(re,Ce=>{r(a).id&&Ce(G)})}var be=k(re,2);{var ee=Ce=>{var Ie=k$(),ce=k(_(Ie),2),Ke=_(ce,!0);h(ce),h(Ie),D(()=>ge(Ke,r(a).vsid)),$(Ce,Ie)};R(be,Ce=>{r(a).vsid&&Ce(ee)})}var pe=k(be,2);{var ve=Ce=>{var Ie=A$(),ce=k(_(Ie),2),Ke=_(ce,!0);h(ce),h(Ie),D(()=>ge(Ke,r(a).provider)),$(Ce,Ie)};R(pe,Ce=>{r(a).provider&&Ce(ve)})}var ue=k(pe,2);{var Me=Ce=>{var Ie=P$(),ce=k(_(Ie),2),Ke=_(ce);h(ce),h(Ie),D(()=>{var fe,Ve;return ge(Ke,`Video: ${(fe=r(a).videoCodec||"")!=null?fe:""} ${r(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(Ae=r(a).audioCodec||"")!=null?Ae:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(be,we)};R(pe,be=>{(r(a).videoCodec||r(a).audioCodec)&&be(Oe)})}var ne=A(pe,2);{var Re=be=>{var we=y$(),ce=A(_(we),2),De=_(ce,!0);h(ce),h(we),D(()=>$e(De,r(a).viewport)),$(be,we)};R(ne,be=>{r(a).viewport&&be(Re)})}var re=A(ne,2);{var O=be=>{var we=x$(),ce=A(_(we),2),De=_(ce,!0);h(ce),h(we),D(()=>$e(De,r(a).videoSize)),$(be,we)};R(re,be=>{r(a).videoSize&&be(O)})}var ue=A(re,2);{var Ve=be=>{var we=w$(),ce=A(_(we),2),De=_(ce,!0);h(ce),h(we),D(()=>$e(De,r(a).cdn)),$(be,we)};R(ue,be=>{r(a).cdn&&be(Ve)})}var ge=A(ue,2);{var te=be=>{var we=S$(),ce=A(_(we),2),De=_(ce);h(ce),h(we),D(()=>{var Ke;return $e(De,`${(Ke=r(a).volume)!=null?Ke:""} %`)}),$(be,we)};R(ge,be=>{r(a).volume&&be(te)})}var ve=A(ge,2);{var He=be=>{var we=C$(),ce=A(_(we),2),De=_(ce);h(ce),h(we),D(Ke=>$e(De,`${Ke!=null?Ke:""} s`),[()=>r(a).position.toFixed(2)]),$(be,we)};R(ve,be=>{r(a).position&&be(He)})}var me=A(ve,2);{var ct=be=>{var we=T$(),ce=A(_(we),2),De=_(ce);h(ce),h(we),D(Ke=>$e(De,`${Ke!=null?Ke:""} s`),[()=>r(a).buffer.toFixed(2)]),$(be,we)};R(me,be=>{r(a).buffer&&be(ct)})}var X=A(me,2);{var Me=be=>{var we=E$(),ce=A(_(we),2),De=_(ce);h(ce),h(we),D(Ke=>$e(De,`${Ke!=null?Ke:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(be,we)};R(X,be=>{r(a).liveLatency&&be(Me)})}var ke=A(X,2);{var ze=be=>{var we=I$(),ce=A(_(we),2),De=_(ce,!0);h(ce),h(we),D(Ke=>$e(De,Ke),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ke})=>Ke).map(({value:Ke,title:Ae})=>`${Ae} ${((Ke!=null?Ke:0)/1e3).toFixed(2)} s`).join(" & ")]),$(be,we)};R(ke,be=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&be(ze)})}var rt=A(ke,2),mt=A(_(rt),2),vt=_(mt);h(mt),h(rt);var Tt=A(rt,2);{var Je=be=>{var we=k$(),ce=A(_(we),2);Pd(ce,{get values(){return r(T)}});var De=A(ce,2),Ke=_(De);h(De),h(we),D(Ae=>$e(Ke,`${Ae!=null?Ae:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(be,we)};R(Tt,be=>{r(a).speed&&be(Je)})}var zt=A(Tt,2);{var Yt=be=>{var we=A$(),ce=A(_(we),2);Pd(ce,{get values(){return r(E)}});var De=A(ce,2),Ke=_(De);h(De),h(we),D(Ae=>$e(Ke,`${Ae!=null?Ae:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(be,we)};R(zt,be=>{r(a).bitrate&&be(Yt)})}var Zt=A(zt,2),Wt=A(_(Zt),2);Pd(Wt,{get values(){return r(C)}});var se=A(Wt,2),Ft=_(se,!0);h(se),h(Zt),h(j),h(k),D(be=>{var we,ce;I=ie(k,1,"container svelte-4deykz",null,I,be),Ue(k,"aria-label",L),$e(K,r(a).version),$e(vt,`${(we=r(v))!=null?we:""} / ${(ce=r(f))!=null?ce:""} frames`),$e(Ft,r(p))},[()=>({"container-mobile":n()})]),$(t,k),z(),o()}pt(["click"]);var F1=require("@vkontakte/videoplayer-shared/es2015"),L$=(t,e)=>{t.stopPropagation(),e()()},V$=M('<div class="close svelte-1ome55p"></div>'),R$={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 Ea(t,e){U(e,!0),Q(t,R$);let i=m(e,"onClick",3,F1.noop);var o=V$();o.__click=[L$,i],$(t,o),z()}pt(["click"]);var U1=require("@vkontakte/videoplayer-shared/es2015"),N$=M('<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>'),O$={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){U(e,!0),Q(t,O$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,U1.noop),n=5e3,s=Z(void 0),l,d,a=0,u;qe(()=>{i()&&Et(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(u=(Date.now()-d)/n,u<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*u),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Rt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),dn(()=>{f()});var p=N$(),x=_(p);nt(x,w=>B(s,w),()=>r(s)),Ce(2),h(p),$(t,p),z()}var B$=(t,e,i)=>{e(!1),i()},D$=M('<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),H$={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 Kf(t,e){U(e,!0),Q(t,H$);let[i,o]=Fe(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=Ie(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),x()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Qe(),T=he(C);{var E=L=>{var k=D$(),I=A(he(k),2),V=_(I),j=_(V),H=_(j,!0);h(j);var F=A(j,2);Ea(F,{onClick:y}),h(V);var K=A(V,2);K.__click=[B$,u,v];var ee=_(K),Y=_(ee),de=_(Y);let oe;var fe=A(de,2);{var _e=Re=>{let re=g(()=>s()&&n());Ld(Re,{get isRunning(){return r(re)},onTimerEnded:w})};R(fe,Re=>{n()&&Re(_e)})}h(Y),h(ee);var pe=A(ee,2),Oe=_(pe),ne=_(Oe,!0);h(Oe),h(pe),h(K),h(I),D((Re,re)=>{$e(H,Re),at(Y,`background-image: url('${e.thumb}')`),oe=ie(de,1,"thumb-overlay svelte-jfbaax",null,oe,re),$e(ne,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:n()})]),$(L,k)};R(T,L=>{e.isHide||L(E)})}$(t,C),z(),o()}pt(["click"]);var Gs=require("@vkontakte/videoplayer-core/es2015"),z1=require("@vkontakte/videoplayer-shared/es2015"),kn=require("@vkontakte/videoplayer-statistics/es2015");var qf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Qf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Eu=(t,e,i)=>{let o=qf(e,i);e<1?t.actions.internal.setVolume(o):ye(t.state.muted$)&&t.actions.internal.setMuted(!1)},Iu=(t,e,i)=>{let o=Qf(e,i);e>0&&t.actions.internal.setVolume(o)};var Qs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var U$=(t,e)=>{e(t)},z$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),W$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Gf(t,e){var Zt,Wt;U(e,!0),Q(t,W$);let[i,o]=Fe(),n=()=>S(H,"$playbackState$",i),s=()=>S(F,"$adPlaybackState",i),l=()=>S(de,"$disabledControls$",i),d=()=>S(K,"$positionExact$",i),a=()=>S(ee,"$duration$",i),u=()=>S(te,"$isAudioAvailable$",i),f=()=>S(Y,"$volume$",i),v=()=>S(pe,"$availablePlaybackRates$",i),p=()=>S(_e,"$currentPlaybackRate$",i),x=()=>S(He,"$isInteractiveTime$",i),w=()=>S(me,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(O,"$isEnded$",i),C=()=>S(oe,"$muted$",i),T=()=>S(fe,"$currentSubtitle$",i),E=()=>S(ue,"$overlayContainer$",i),L=m(e,"nextButtonActive",3,!1),k=m(e,"prevButtonActive",3,!1),I=Ie(),V=Mt(),j=I.getLogger().createComponentLog("KeyboardControls component"),H=I.state.playbackState$,F=I.ads.playbackState,K=I.state.positionExact$,ee=I.state.duration$,Y=I.state.volume$,de=I.ui.controls.disabledControls$,oe=I.state.muted$,fe=I.state.currentSubtitle$,_e=I.state.currentPlaybackRate$,pe=I.state.availablePlaybackRates$,Oe=I.ui.contextMenu.openedByHotKey$,ne=I.ui.contextMenu.lastActiveElem$,Re=I.ui.contextMenu.visible$,re=I.ui.contextMenu.position$,O=I.state.isEnded$,ue=I.ui.overlayContainer$,Ve=(Zt=I.callbacks)==null?void 0:Zt.onAudioDoesNotExistHint,ge=(Wt=I.callbacks)==null?void 0:Wt.onAudioDisabledHint,te=I.state.isAudioAvailable$,ve=I.state.isAudioDisabled,He=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:me}=vo(),ct=0,X=!0,Me=Z(void 0),ke=se=>(se!==X&&(X=se,ct=0),ct+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*ct)/1e3),ze=(se,Ft=!1)=>{var ai,li;let be=se.target,we=(ai=be==null?void 0:be.getAttribute("role"))==null?void 0:ai.includes("menuitem"),ce=be.classList.contains("btn"),De=se.code;if(ce&&De==="Space")return!1;let Ke=Wh.has(De);if(we&&Ke)return!1;let Ae=!zh.has(De);if(se.ctrlKey&&Ae||se.altKey&&Ae||se.metaKey)return!1;let Ge=we&&De==="Escape";Kh.has(De)||Ge||e.hideContextMenu();let Ne=n()===Gs.PlaybackState.PLAYING||n()===Gs.PlaybackState.PAUSED,Ze=e.isAds&&(s()==="paused"||s()==="playing"),Lt=!Ze&&!l().has("TIMELINE");if(!(Ne||Ze))return!1;j({message:`key down, code: ${De}, isExternal = ${Ft}`});let Qt=!1,ot=()=>{Qt=!0,Ft||se.preventDefault()};switch(De){case"KeyJ":case"ArrowLeft":{if(!Lt)break;if(se.ctrlKey||se.altKey){let ut=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(ut),ut&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:ut.text}),ot()}else{let ut=se.shiftKey?ke(!1):V.controls.seekStepKeyboard/1e3,ri=Math.max(d()-ut,0);d()>0&&(I.actions.internal.seekTime(ri,kn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:ut.toString()}),ot())}break}case"KeyL":case"ArrowRight":{if(!Lt)break;if(se.ctrlKey||se.altKey){let ut=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(ut),ut&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:ut.text}),ot()}else{let ut=se.shiftKey?ke(!0):V.controls.seekStepKeyboard/1e3,ri=Math.min(d()+ut,a());Math.round(d())<Math.round(a())&&(I.actions.internal.seekTime(ri,kn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:ut.toString()}),ot())}break}case"ArrowUp":{if(Qs({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:Ve,isAds:e.isAds})){let ut=f(),ri=V.controls.volumeStepKeyboard,eo=ut<=1;if(Eu(I,ut,ri),eo){let Gi=Math.round(qf(ut,ri)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Gi}})}}ot();break}case"ArrowDown":{if(Qs({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:Ve,isAds:e.isAds})){let ut=f(),ri=V.controls.volumeStepKeyboard,eo=ut>=0;if(Iu(I,ut,ri),eo){let Gi=Math.round(Qf(ut,ri)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Gi}})}}ot();break}case"Comma":{if(se.shiftKey){I.actions.internal.decrementPlaybackRate();let ut=v().find(ri=>ri.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:ut==null?void 0:ut.displayValue}),ot()}else{if(Ze||n()!==Gs.PlaybackState.PAUSED)break;let ut=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(ut,kn.SeekAction.DOUBLE_TAP),ot())}break}case"Period":{if(se.shiftKey){I.actions.internal.incrementPlaybackRate();let ut=v().find(ri=>ri.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:ut==null?void 0:ut.displayValue}),ot()}else{if(Ze||n()!==Gs.PlaybackState.PAUSED)break;let ut=Math.min(d()+V.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(ut,kn.SeekAction.DOUBLE_TAP),ot())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(x()&&w()&&me.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let ut="PLAY";n()===Gs.PlaybackState.PAUSED?ut="PAUSE":y()&&(ut="REPLAY"),e.showHotKeyHelpers({type:ut})}ot();break;case"KeyM":{Qs({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:Ve,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),ot();break}case"KeyF":e.toggleFullscreen(),ot();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(li=T())==null?void 0:li.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ot();break;case"KeyI":I.actions.internal.togglePictureInPicture(),ot();break;case"Digit1":case"Numpad1":if(se.shiftKey){let ut=D1(E());re.set(ut),ne.set(be),Oe.set(!0),Re.set(!0),ot();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,kn.SeekAction.DOUBLE_TAP),ot();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,kn.SeekAction.DOUBLE_TAP),ot();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,kn.SeekAction.DOUBLE_TAP),ot();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,kn.SeekAction.DOUBLE_TAP),ot();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,kn.SeekAction.DOUBLE_TAP),ot();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,kn.SeekAction.DOUBLE_TAP),ot();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,kn.SeekAction.DOUBLE_TAP),ot();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,kn.SeekAction.DOUBLE_TAP),ot();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,kn.SeekAction.DOUBLE_TAP),ot();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,kn.SeekAction.DOUBLE_TAP),ot();break;case"Slash":{se.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),ot());break}case"KeyN":se.shiftKey&&L()&&(I.actions.internal.nextVideoClick(),ot());break;case"KeyP":se.shiftKey&&k()&&(I.actions.internal.prevVideoClick(),ot());break;case"ShiftLeft":case"ShiftRight":ot();break;case"Tab":case"Escape":case"Enter":break;default:(0,z1.checkNever)(De);break}return Qt},rt=se=>{let Ft=se.code;if(se.ctrlKey||se.altKey||se.metaKey)return;let be=n()===Gs.PlaybackState.PLAYING||n()===Gs.PlaybackState.PAUSED,we=e.isAds&&(s()==="paused"||s()==="playing");if(be||we)switch(Ft){case"ShiftLeft":case"ShiftRight":ct=0;break}},mt=q("aria_label_video_player"),vt=()=>{var se;return(se=r(Me))==null?void 0:se.focus()},Tt=se=>se.type==="keydown"?ze(se,!0):(se.type==="keyup"&&rt(se),!1);var Je=z$();Je.__keyup=rt,Je.__keydown=[U$,ze];var zt=_(Je);xe(zt,()=>{var se;return(se=e.children)!=null?se:le}),h(Je),nt(Je,se=>B(Me,se),()=>r(Me)),D(()=>Ue(Je,"aria-label",mt)),$(t,Je);var Yt=z({focus:vt,handleExternalKeyboardEvent:Tt});return o(),Yt}pt(["keyup","keydown"]);var K$=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),q$={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);}
140
+ Audio: ${(Ve=r(a).audioCodec||"")!=null?Ve:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(Ce,Ie)};R(ue,Ce=>{(r(a).videoCodec||r(a).audioCodec)&&Ce(Me)})}var Oe=k(ue,2);{var le=Ce=>{var Ie=L$(),ce=k(_(Ie),2),Ke=_(ce,!0);h(ce),h(Ie),D(()=>ge(Ke,r(a).viewport)),$(Ce,Ie)};R(Oe,Ce=>{r(a).viewport&&Ce(le)})}var De=k(Oe,2);{var X=Ce=>{var Ie=M$(),ce=k(_(Ie),2),Ke=_(ce,!0);h(ce),h(Ie),D(()=>ge(Ke,r(a).videoSize)),$(Ce,Ie)};R(De,Ce=>{r(a).videoSize&&Ce(X)})}var M=k(De,2);{var st=Ce=>{var Ie=V$(),ce=k(_(Ie),2),Ke=_(ce,!0);h(ce),h(Ie),D(()=>ge(Ke,r(a).cdn)),$(Ce,Ie)};R(M,Ce=>{r(a).cdn&&Ce(st)})}var Fe=k(M,2);{var j=Ce=>{var Ie=R$(),ce=k(_(Ie),2),Ke=_(ce);h(ce),h(Ie),D(()=>{var fe;return ge(Ke,`${(fe=r(a).volume)!=null?fe:""} %`)}),$(Ce,Ie)};R(Fe,Ce=>{r(a).volume&&Ce(j)})}var oe=k(Fe,2);{var Be=Ce=>{var Ie=O$(),ce=k(_(Ie),2),Ke=_(ce);h(ce),h(Ie),D(fe=>ge(Ke,`${fe!=null?fe:""} s`),[()=>r(a).position.toFixed(2)]),$(Ce,Ie)};R(oe,Ce=>{r(a).position&&Ce(Be)})}var Je=k(oe,2);{var $e=Ce=>{var Ie=N$(),ce=k(_(Ie),2),Ke=_(ce);h(ce),h(Ie),D(fe=>ge(Ke,`${fe!=null?fe:""} s`),[()=>r(a).buffer.toFixed(2)]),$(Ce,Ie)};R(Je,Ce=>{r(a).buffer&&Ce($e)})}var ie=k(Je,2);{var Se=Ce=>{var Ie=B$(),ce=k(_(Ie),2),Ke=_(ce);h(ce),h(Ie),D(fe=>ge(Ke,`${fe!=null?fe:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(Ce,Ie)};R(ie,Ce=>{r(a).liveLatency&&Ce(Se)})}var Ee=k(ie,2);{var Qe=Ce=>{var Ie=D$(),ce=k(_(Ie),2),Ke=_(ce,!0);h(ce),h(Ie),D(fe=>ge(Ke,fe),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:fe})=>fe).map(({value:fe,title:Ve})=>`${Ve} ${((fe!=null?fe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Ce,Ie)};R(Ee,Ce=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&Ce(Qe)})}var tt=k(Ee,2),gt=k(_(tt),2),dt=_(gt);h(gt),h(tt);var ht=k(tt,2);{var it=Ce=>{var Ie=F$(),ce=k(_(Ie),2);Rd(ce,{get values(){return r(C)}});var Ke=k(ce,2),fe=_(Ke);h(Ke),h(Ie),D(Ve=>ge(fe,`${Ve!=null?Ve:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(Ce,Ie)};R(ht,Ce=>{r(a).speed&&Ce(it)})}var Wt=k(ht,2);{var Yt=Ce=>{var Ie=H$(),ce=k(_(Ie),2);Rd(ce,{get values(){return r(E)}});var Ke=k(ce,2),fe=_(Ke);h(Ke),h(Ie),D(Ve=>ge(fe,`${Ve!=null?Ve:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(Ce,Ie)};R(Wt,Ce=>{r(a).bitrate&&Ce(Yt)})}var ei=k(Wt,2),Zt=k(_(ei),2);Rd(Zt,{get values(){return r(T)}});var Ae=k(Zt,2),Ft=_(Ae,!0);h(Ae),h(ei),h(F),h(I),D(Ce=>{var Ie,ce;L=se(I,1,"container svelte-4deykz",null,L,Ce),ze(I,"aria-label",V),ge(Z,r(a).version),ge(dt,`${(Ie=r(m))!=null?Ie:""} / ${(ce=r(f))!=null?ce:""} frames`),ge(Ft,r(p))},[()=>({"container-mobile":n()})]),$(t,I),W(),o()}ct(["click"]);var o0=require("@vkontakte/videoplayer-shared/es2015"),W$=(t,e)=>{t.stopPropagation(),e()()},K$=P('<div class="close svelte-1ome55p"></div>'),q$={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function Ta(t,e){z(e,!0),q(t,q$);let i=v(e,"onClick",3,o0.noop);var o=K$();o.__click=[W$,i],$(t,o),W()}ct(["click"]);var n0=require("@vkontakte/videoplayer-shared/es2015"),Q$=P('<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>'),G$={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 Nd(t,e){z(e,!0),q(t,G$);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,n0.noop),n=5e3,s=J(void 0),l,d,a=0,u;qe(()=>{i()&&Tt(()=>{d=Date.now(),a=requestAnimationFrame(m)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},m=()=>{f(),i()&&(u=(Date.now()-d)/n,u<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*u),l==null||l.stroke(),a=requestAnimationFrame(m)):o()())};Rt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),an(()=>{f()});var p=Q$(),x=_(p);rt(x,y=>N(s,y),()=>r(s)),xe(2),h(p),$(t,p),W()}var j$=(t,e,i)=>{e(!1),i()},Y$=P('<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),Z$={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 tm(t,e){z(e,!0),q(t,Z$);let[i,o]=He(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=Te(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{n()&&(u(!1),p())},w=()=>{e.clickCloseIcon(),x()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var T=Ue(),C=me(T);{var E=V=>{var I=Y$(),L=k(me(I),2),B=_(L),F=_(B),H=_(F,!0);h(F);var U=k(F,2);Ta(U,{onClick:w}),h(B);var Z=k(B,2);Z.__click=[j$,u,m];var re=_(Z),G=_(re),be=_(G);let ee;var pe=k(be,2);{var ve=le=>{let De=g(()=>s()&&n());Nd(le,{get isRunning(){return r(De)},onTimerEnded:y})};R(pe,le=>{n()&&le(ve)})}h(G),h(re);var ue=k(re,2),Me=_(ue),Oe=_(Me,!0);h(Me),h(ue),h(Z),h(L),D((le,De)=>{ge(H,le),at(G,`background-image: url('${e.thumb}')`),ee=se(be,1,"thumb-overlay svelte-jfbaax",null,ee,De),ge(Oe,e.title)},[()=>Q("end_screen_next_video"),()=>({withOpacity:n()})]),$(V,I)};R(C,V=>{e.isHide||V(E)})}$(t,T),W(),o()}ct(["click"]);var js=require("@vkontakte/videoplayer-core/es2015"),r0=require("@vkontakte/videoplayer-shared/es2015"),$n=require("@vkontakte/videoplayer-statistics/es2015");var im=(t,e)=>Math.min(+(t+e).toFixed(2),1),om=(t,e)=>Math.max(+(t-e).toFixed(2),0),Mu=(t,e,i)=>{let o=im(e,i);e<1&&t.actions.internal.setVolume(o)},Vu=(t,e,i)=>{let o=om(e,i);e>0&&t.actions.internal.setVolume(o)};var Gs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var J$=(t,e)=>{e(t)},e2=P('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),t2={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function nm(t,e){var ce,Ke;z(e,!0),q(t,t2);let[i,o]=He(),n=()=>S(pe,"$disabledControls$",i),s=()=>S(Se,"$isInteractiveTime$",i),l=()=>S(Ee,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>S(Z,"$playbackState$",i),a=()=>S(j,"$isEnded$",i),u=()=>S(st,"$doubleForwardAvailable$",i),f=()=>S(M,"$doubleForwardOn$",i),m=()=>S(re,"$adPlaybackState",i),p=()=>S(G,"$positionExact$",i),x=()=>S(be,"$duration$",i),y=()=>S($e,"$isAudioAvailable$",i),w=()=>S(ee,"$volume$",i),T=()=>S(Oe,"$availablePlaybackRates$",i),C=()=>S(Me,"$currentPlaybackRate$",i),E=()=>S(ve,"$muted$",i),V=()=>S(ue,"$currentSubtitle$",i),I=()=>S(oe,"$overlayContainer$",i),L=v(e,"nextButtonActive",3,!1),B=v(e,"prevButtonActive",3,!1),F=Te(),H=kt(),U=F.getLogger().createComponentLog("KeyboardControls component"),Z=F.state.playbackState$,re=F.ads.playbackState,G=F.state.positionExact$,be=F.state.duration$,ee=F.state.volume$,pe=F.ui.controls.disabledControls$,ve=F.state.muted$,ue=F.state.currentSubtitle$,Me=F.state.currentPlaybackRate$,Oe=F.state.availablePlaybackRates$,le=F.ui.contextMenu.openedByHotKey$,De=F.ui.contextMenu.lastActiveElem$,X=F.ui.contextMenu.visible$,M=F.ui.doubleForwardOn$,st=F.ui.doubleForwardAvailable$,Fe=F.ui.contextMenu.position$,j=F.state.isEnded$,oe=F.ui.overlayContainer$,Be=(ce=F.callbacks)==null?void 0:ce.onAudioDoesNotExistHint,Je=(Ke=F.callbacks)==null?void 0:Ke.onAudioDisabledHint,$e=F.state.isAudioAvailable$,ie=F.state.isAudioDisabled,Se=F.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ee}=go(),Qe=0,tt=!0,gt=J(void 0),dt=fe=>(fe!==tt&&(tt=fe,Qe=0),Qe+=1,(H.controls.seekStepKeyboard+H.controls.seekStepKeyboard*Qe)/1e3),ht=!0,it=({type:fe,repeat:Ve,disableDoubleForward:Ne})=>{let ye=()=>{if(!n().has("PLAY_BUTTON"))if(s()&&l()&&Ee.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{F.actions.internal.togglePlay();let yt="PLAY";d()===js.PlaybackState.PAUSED?yt="PAUSE":a()&&(yt="REPLAY"),e.showHotKeyHelpers({type:yt})}},Ye=fe==="down";if(!u()||Ne){Ye&&ye(),ht=!0;return}if(Ye)ht=!1;else if(ht)return;if(Ye){!Ve&&e.startDoubleForwardActivationTimer();return}f()||ye(),e.stopDoubleForward(),ht=!0},Wt=(fe,Ve=!1)=>{var ti,ui;let Ne=fe.target,ye=(ti=Ne==null?void 0:Ne.getAttribute("role"))==null?void 0:ti.includes("menuitem"),Ye=Ne.classList.contains("btn"),yt=fe.code;if(Ye&&yt==="Space")return!1;let Xt=s1.has(yt);if(ye&&Xt)return!1;let Lt=!r1.has(yt);if(fe.ctrlKey&&Lt||fe.altKey&&Lt||fe.metaKey)return!1;let _i=ye&&yt==="Escape";a1.has(yt)||_i||e.hideContextMenu();let ni=d()===js.PlaybackState.PLAYING||d()===js.PlaybackState.PAUSED,bi=e.isAds&&(m()==="paused"||m()==="playing"),Fi=!bi&&!n().has("TIMELINE");if(!(ni||bi))return!1;U({message:`key down, code: ${yt}, isExternal = ${Ve}`});let ho=!1,At=()=>{ho=!0,Ve||fe.preventDefault()};switch(yt){case"KeyJ":case"ArrowLeft":{if(!Fi)break;if(fe.ctrlKey||fe.altKey){let _t=F.actions.internal.getPrevEpisode();F.actions.internal.seekToPrevEpisode(_t),_t&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:_t.text}),At()}else{let _t=fe.shiftKey?dt(!1):H.controls.seekStepKeyboard/1e3,pt=Math.max(p()-_t,0);p()>0&&(F.actions.internal.seekTime(pt,$n.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:_t.toString()}),At())}break}case"KeyL":case"ArrowRight":{if(!Fi)break;if(fe.ctrlKey||fe.altKey){let _t=F.actions.internal.getNextEpisode();F.actions.internal.seekToNextEpisode(_t),_t&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:_t.text}),At()}else{let _t=fe.shiftKey?dt(!0):H.controls.seekStepKeyboard/1e3,pt=Math.min(p()+_t,x());Math.round(p())<Math.round(x())&&(F.actions.internal.seekTime(pt,$n.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:_t.toString()}),At())}break}case"ArrowUp":{if(Gs({isAudioDisabled:ie,audioDisabledHintCallback:Je,isAudioAvailable:y(),audioIsNotExistHintCallback:Be,isAds:e.isAds})){let _t=w(),pt=H.controls.volumeStepKeyboard,Jt=_t<=1;if(Mu(F,_t,pt),Jt){let Ii=Math.round(im(_t,pt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ii}})}}At();break}case"ArrowDown":{if(Gs({isAudioDisabled:ie,audioDisabledHintCallback:Je,isAudioAvailable:y(),audioIsNotExistHintCallback:Be,isAds:e.isAds})){let _t=w(),pt=H.controls.volumeStepKeyboard,Jt=_t>=0;if(Vu(F,_t,pt),Jt){let Ii=Math.round(om(_t,pt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ii}})}}At();break}case"Comma":{if(fe.shiftKey){if(!f()){F.actions.internal.decrementPlaybackRate();let _t=T().find(pt=>pt.value===C());e.showHotKeyHelpers({type:"RATE_DOWN",text:_t==null?void 0:_t.displayValue}),At()}}else{if(bi||d()!==js.PlaybackState.PAUSED)break;let _t=Math.max(p()-H.controls.seekStepFrame/1e3,0);p()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),F.actions.internal.clearDelayedBufferingCheckTimeout(),F.actions.internal.seekTime(_t,$n.SeekAction.DOUBLE_TAP),At())}break}case"Period":{if(fe.shiftKey){if(!f()){F.actions.internal.incrementPlaybackRate();let _t=T().find(pt=>pt.value===C());e.showHotKeyHelpers({type:"RATE_UP",text:_t==null?void 0:_t.displayValue}),At()}}else{if(bi||d()!==js.PlaybackState.PAUSED)break;let _t=Math.min(p()+H.controls.seekStepFrame/1e3,x());p()<x()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),F.actions.internal.clearDelayedBufferingCheckTimeout(),F.actions.internal.seekTime(_t,$n.SeekAction.DOUBLE_TAP),At())}break}case"KeyK":case"Space":it({type:"down",repeat:fe.repeat,disableDoubleForward:"KeyK"===yt}),At();break;case"KeyM":{Gs({isAudioDisabled:ie,audioDisabledHintCallback:Je,isAudioAvailable:y(),audioIsNotExistHintCallback:Be,isAds:e.isAds})&&(e.showHotKeyHelpers({type:E()?"VOLUME":"MUTE"}),F.actions.internal.toggleMuted()),At();break}case"KeyF":e.toggleFullscreen(),At();break;case"KeyC":F.actions.internal.toggleSubtitle(),V().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ui=V())==null?void 0:ui.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),At();break;case"KeyI":F.actions.internal.togglePictureInPicture(),At();break;case"Digit1":case"Numpad1":if(fe.shiftKey){let _t=t0(I());Fe.set(_t),De.set(Ne),le.set(!0),X.set(!0),At();break}e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.1,$n.SeekAction.DOUBLE_TAP),At();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.2,$n.SeekAction.DOUBLE_TAP),At();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.3,$n.SeekAction.DOUBLE_TAP),At();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.4,$n.SeekAction.DOUBLE_TAP),At();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.5,$n.SeekAction.DOUBLE_TAP),At();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.6,$n.SeekAction.DOUBLE_TAP),At();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.7,$n.SeekAction.DOUBLE_TAP),At();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.8,$n.SeekAction.DOUBLE_TAP),At();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.9,$n.SeekAction.DOUBLE_TAP),At();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(0,$n.SeekAction.DOUBLE_TAP),At();break;case"Slash":{fe.shiftKey&&H.features.hotKeyMapModal&&(e.showKeyMap(),At());break}case"KeyN":fe.shiftKey&&L()&&(F.actions.internal.nextVideoClick(),At());break;case"KeyP":fe.shiftKey&&B()&&(F.actions.internal.prevVideoClick(),At());break;case"ShiftLeft":case"ShiftRight":At();break;case"Tab":case"Escape":case"Enter":break;default:(0,r0.checkNever)(yt);break}return ho},Yt=fe=>{let Ve=fe.code;if(fe.ctrlKey||fe.altKey||fe.metaKey)return;let Ne=d()===js.PlaybackState.PLAYING||d()===js.PlaybackState.PAUSED,ye=e.isAds&&(m()==="paused"||m()==="playing");if(Ne||ye)switch(Ve){case"ShiftLeft":case"ShiftRight":Qe=0;break;case"Space":it({type:"up"});break}},ei=Q("aria_label_video_player"),Zt=()=>{var fe;return(fe=r(gt))==null?void 0:fe.focus()},Ae=fe=>fe.type==="keydown"?Wt(fe,!0):(fe.type==="keyup"&&Yt(fe),!1);var Ft=e2();Ft.__keyup=Yt,Ft.__keydown=[J$,Wt];var Ce=_(Ft);he(Ce,()=>{var fe;return(fe=e.children)!=null?fe:de}),h(Ft),rt(Ft,fe=>N(gt,fe),()=>r(gt)),D(()=>ze(Ft,"aria-label",ei)),$(t,Ft);var Ie=W({focus:Zt,handleExternalKeyboardEvent:Ae});return o(),Ie}ct(["keyup","keydown"]);var i2=P('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),o2={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
141
 
142
142
  @keyframes svelte-1dbnjb1-dot_animation {
143
143
  0% {
@@ -150,29 +150,34 @@ Try switching the\xA0quality to\xA0Auto.`},x1=Tb;var Cs=new Map;Cs.set(hl.Interf
150
150
  opacity: 0.2;
151
151
  }
152
152
  }.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 Ia(t,e){Q(t,q$);let i=m(e,"style",3,"");var o=K$();D(()=>at(o,i())),$(t,o)}var Q$=Te('<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 jf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Q$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}var ka=require("@vkontakte/videoplayer-shared/es2015"),G$=t=>{t.stopPropagation()},j$=M("<button><!></button>"),Y$={hash:"svelte-ut3f27",code:`.btn.svelte-ut3f27 {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Ea(t,e){q(t,o2);let i=v(e,"style",3,"");var o=i2();D(()=>at(o,i())),$(t,o)}var n2=we('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function rm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=n2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var Ia=require("@vkontakte/videoplayer-shared/es2015"),r2=t=>{t.stopPropagation()},s2=P("<button><!></button>"),a2={hash:"svelte-8rib52",code:`.btn.svelte-8rib52 {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;
154
+ /**
155
+ * \u0412 \u0441\u0430\u0444\u0430\u0440\u0438 \u043F\u0440\u0438 \u0445\u043E\u0432\u0435\u0440\u0435 \u043F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u043F\u0430\u0441\u0438\u0442\u0438, \u0432\u0438\u0434\u0438\u043C\u043E, \u0441\u0430\u0444\u0430\u0440\u0438 \u043A\u0440\u0438\u0432\u043E \u0432\u044B\u043D\u043E\u0441\u0438\u0442 \u044D\u0442\u043E \u0432 \u043E\u0442\u0434\u0435\u043B\u044C\u043D\u044B\u0439 \u0441\u043B\u043E\u0439
156
+ * \u0438\u0437 \u0437\u0430 \u044D\u0442\u043E\u0433\u043E \u043C\u043E\u0436\u0435\u0442 \u043E\u0431\u0440\u0435\u0437\u0430\u0442\u044C\u0441\u044F \u0448\u0438\u043B\u0434\u0438\u043A \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0432\u044B\u043B\u0430\u0437\u0438\u0435\u0442 \u0437\u0430 \u043F\u0440\u0435\u0434\u0435\u043B\u044B \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430.
157
+ * \u0424\u043E\u0440\u0441 \u0432\u044B\u043D\u043E\u0441\u0430 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0432 \u0441\u043B\u043E\u0439, \u043A\u0430\u043A \u0442\u043E \u043F\u043E\u043C\u043E\u0433\u0430\u0435\u0442 \u0441\u0430\u0444\u0430\u0440\u0438.
158
+ */will-change:opacity;}
154
159
 
155
- /* \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-ut3f27 {width:100%;}.btn--live.svelte-ut3f27 {padding:10px 4px;}.btn-jc-l.svelte-ut3f27 {justify-content:left;}
160
+ /* \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-8rib52 {width:100%;}.btn--live.svelte-8rib52 {padding:10px 4px;}.btn-jc-l.svelte-8rib52 {justify-content:left;}
156
161
 
157
162
  /* mobile */
158
- /* container mobile */.btn-m.svelte-ut3f27 {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-ut3f27 {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-ut3f27 svg {transform:scale(2);}.btn-m--prev.svelte-ut3f27,
159
- .btn-m--next.svelte-ut3f27 {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-ut3f27 {right:calc(100% + 35px);}.btn-m--next.svelte-ut3f27 {left:calc(100% + 35px);}.btn.svelte-ut3f27:disabled {cursor:default;
160
- /* \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-ut3f27:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-ut3f27:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-ut3f27 {padding-right:0;}.pl-0.svelte-ut3f27 {padding-left:0;}`};function Bt(t,e){U(e,!0),Q(t,Y$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),s=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),u=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),p=m(e,"click",3,ka.noop),x=m(e,"focus",3,ka.noop),w=m(e,"blur",3,ka.noop),y=g(()=>p()===ka.noop?null:k=>{k.stopPropagation(),p()(k)}),C=g(()=>x()===ka.noop?null:k=>{k.preventDefault(),x()()}),T=g(()=>w()===ka.noop?null:k=>{k.preventDefault(),w()()});var E=j$();E.__pointerdown=[G$],E.__click=function(...k){var I;(I=r(y))==null||I.apply(this,k)};var L=_(E);xe(L,()=>{var k;return(k=e.children)!=null?k:le}),h(E),nt(E,k=>a(k),()=>a()),D(()=>{var k,I,V,j,H,F,K,ee;ie(E,1,`btn ${(k=i())!=null?k:""}`,"svelte-ut3f27"),at(E,o()||null),E.disabled=(I=n())!=null?I:null,Ue(E,"aria-hidden",(V=l())!=null?V:null),Ue(E,"aria-label",(j=d())!=null?j:null),Ue(E,"aria-keyshortcuts",(H=u())!=null?H:null),Ue(E,"aria-expanded",(F=f())!=null?F:null),Ue(E,"data-testid",(K=s())!=null?K:null),Ue(E,"tabindex",v()),Ue(E,"role",e.role),Ue(E,"aria-checked",(ee=e.areaChecked)!=null?ee:null)}),kt("focus",E,function(...k){var I;(I=r(C))==null||I.apply(this,k)}),kt("blur",E,function(...k){var I;(I=r(T))==null||I.apply(this,k)}),$(t,E),z()}pt(["pointerdown","click"]);var Z$=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),X$=M('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),J$={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {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-ijitjb {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-ijitjb {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-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function Yf(t,e){U(e,!0),Q(t,J$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=q("hotkey_map_modal_close_btn_text");var s=X$(),l=_(s),d=_(l);{var a=p=>{var x=Z$(),w=_(x),y=_(w,!0);h(w);var C=A(w,2);{var T=E=>{Bt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(L,k)=>{jf(L,{})},$$slots:{default:!0}})};R(C,E=>{o()&&E(T)})}h(x),D(()=>$e(y,e.title)),$(p,x)};R(d,p=>{i()&&p(a)})}var u=A(d,2),f=_(u),v=_(f);xe(v,()=>{var p;return(p=e.children)!=null?p:le}),h(f),h(u),h(l),h(s),$(t,s),z()}var e2=new Set(["BR"]),W1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;e2.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var t2=M('<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>'),i2=M('<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>'),o2=M('<div class="hot-key-map svelte-quklnq"></div>'),n2={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,
163
+ /* container mobile */.btn-m.svelte-8rib52 {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-8rib52 {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-8rib52 svg {transform:scale(2);}.btn-m--prev.svelte-8rib52,
164
+ .btn-m--next.svelte-8rib52 {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-8rib52 {right:calc(100% + 35px);}.btn-m--next.svelte-8rib52 {left:calc(100% + 35px);}.btn.svelte-8rib52:disabled {cursor:default;
165
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-8rib52:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-8rib52:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-8rib52 {padding-right:0;}.pl-0.svelte-8rib52 {padding-left:0;}`};function Dt(t,e){z(e,!0),q(t,a2);let i=v(e,"className",3,""),o=v(e,"style",3,""),n=v(e,"disabled",3,void 0),s=v(e,"testId",3,void 0),l=v(e,"ariaHidden",3,void 0),d=v(e,"ariaLabel",3,void 0),a=v(e,"ref",15,void 0),u=v(e,"ariaKeyShortCut",3,void 0),f=v(e,"ariaExpanded",3,void 0),m=v(e,"tabIndex",3,0),p=v(e,"click",3,Ia.noop),x=v(e,"focus",3,Ia.noop),y=v(e,"blur",3,Ia.noop),w=g(()=>p()===Ia.noop?null:I=>{I.stopPropagation(),p()(I)}),T=g(()=>x()===Ia.noop?null:I=>{I.preventDefault(),x()()}),C=g(()=>y()===Ia.noop?null:I=>{I.preventDefault(),y()()});var E=s2();E.__pointerdown=[r2],E.__click=function(...I){var L;(L=r(w))==null||L.apply(this,I)};var V=_(E);he(V,()=>{var I;return(I=e.children)!=null?I:de}),h(E),rt(E,I=>a(I),()=>a()),D(()=>{var I,L,B,F,H,U,Z,re;se(E,1,`btn ${(I=i())!=null?I:""}`,"svelte-8rib52"),at(E,o()||null),E.disabled=(L=n())!=null?L:null,ze(E,"aria-hidden",(B=l())!=null?B:null),ze(E,"aria-label",(F=d())!=null?F:null),ze(E,"aria-keyshortcuts",(H=u())!=null?H:null),ze(E,"aria-expanded",(U=f())!=null?U:null),ze(E,"data-testid",(Z=s())!=null?Z:null),ze(E,"tabindex",m()),ze(E,"role",e.role),ze(E,"aria-checked",(re=e.areaChecked)!=null?re:null)}),It("focus",E,function(...I){var L;(L=r(T))==null||L.apply(this,I)}),It("blur",E,function(...I){var L;(L=r(C))==null||L.apply(this,I)}),$(t,E),W()}ct(["pointerdown","click"]);var l2=P('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),d2=P('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),c2={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {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-ijitjb {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-ijitjb {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-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function sm(t,e){z(e,!0),q(t,c2);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=Q("hotkey_map_modal_close_btn_text");var s=d2(),l=_(s),d=_(l);{var a=p=>{var x=l2(),y=_(x),w=_(y,!0);h(y);var T=k(y,2);{var C=E=>{Dt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(V,I)=>{rm(V,{})},$$slots:{default:!0}})};R(T,E=>{o()&&E(C)})}h(x),D(()=>ge(w,e.title)),$(p,x)};R(d,p=>{i()&&p(a)})}var u=k(d,2),f=_(u),m=_(f);he(m,()=>{var p;return(p=e.children)!=null?p:de}),h(f),h(u),h(l),h(s),$(t,s),W()}var u2=new Set(["BR"]),s0=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;u2.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var p2=P('<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>'),f2=P('<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>'),m2=P('<div class="hot-key-map svelte-quklnq"></div>'),v2={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,
161
166
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
162
- .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 Zf(t,e){U(e,!1),Q(t,n2);let[i,o]=Fe(),n=()=>S(l,"$data",i),s=Ie(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Wr(),Yf(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var v=o2();Ii(v,5,()=>n().groups,({title:p,items:x})=>p,(p,x)=>{let w=()=>r(x).title,y=()=>r(x).items;var C=i2(),T=_(C),E=_(T,!0);h(T);var L=A(T,2);Ii(L,5,y,({description:k,value:I})=>I,(k,I)=>{let V=()=>r(I).description,j=()=>r(I).value;var H=t2(),F=_(H),K=_(F);pd(K,()=>W1(V())),h(F);var ee=A(F,2),Y=_(ee,!0);h(ee),h(H),D(()=>$e(Y,j())),$(k,H)}),h(L),h(C),D(()=>$e(E,w())),$(p,C)}),h(v),$(u,v)},$$slots:{default:!0}}),z(),o()}var qm=require("@vkontakte/videoplayer-shared/es2015");var Na=require("@vkontakte/videoplayer-core/es2015");var RR=require("@vkontakte/videoplayer-shared/es2015");var r2=M('<div class="pillow svelte-1oe0j8n"><!></div>'),s2={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 Xf(t,e){Q(t,s2);var i=r2(),o=_(i);xe(o,()=>{var n;return(n=e.children)!=null?n:le}),h(i),$(t,i)}var El=require("@vkontakte/videoplayer-shared/es2015");var a2=Te('<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 Jf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=a2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}var l2=Te('<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 em(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=l2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}var d2=Te('<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 tm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=d2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var c2=Te('<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 Vd(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=c2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var u2=Te('<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 Rd(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=u2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}var ku=t=>{switch(t){case El.VideoQuality.Q_720P:return tm;case El.VideoQuality.Q_1080P:return Vd;case El.VideoQuality.Q_1440P:return Rd;case El.VideoQuality.Q_2160P:return Jf;case El.VideoQuality.Q_4320P:return em}};var p2=Te('<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 im(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=p2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var f2=Te('<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 om(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=f2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}var m2=M('<div aria-hidden="true"><!> <!></div>'),v2={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 Nd(t,e){U(e,!0),Q(t,v2);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>ku(o())),s=g(()=>!!r(n)&&[Vd,Rd].includes(r(n)));var l=Qe(),d=he(l);{var a=f=>{im(f,{})},u=f=>{var v=m2();let p;var x=_(v);{var w=T=>{Xf(T,{children:(E,L)=>{var k=Qe(),I=he(k);ki(I,()=>r(n),(V,j)=>{j(V,{})}),$(E,k)},$$slots:{default:!0}})};R(x,T=>{r(n)&&T(w)})}var y=A(x,2);let C=g(()=>r(n)?"settings-icon--labeled":"settings-icon");om(y,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),h(v),D(T=>p=ie(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:r(s)})]),$(f,v)};R(d,f=>{i()?f(a):f(u,!1)})}$(t,l),z()}var g2=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),h2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Il(t,e){U(e,!0),Q(t,h2);let[i,o]=Fe(),n=()=>S(u,"$settingsMenuVisible",i),s=()=>S(p,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=Ie(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,x=d.ui.t,w=Z(void 0);qe(()=>{r(w)&&Et(()=>{e.ref$.set(r(w))})});let y=x("aria_label_settings");function C(E){return _t(this,null,function*(){let L=qs(E);n()?v():f(L,Co)})}let T=g(()=>n()?"opened":"");Bt(t,{get className(){return r(T)},testId:"btn-settings",click:C,get ariaLabel(){return y},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(E){B(w,E,!0)},children:(E,L)=>{var k=g2(),I=_(k);Nd(I,{get isMobile(){return s()},get currentQuality(){return l()}}),h(k),$(E,k)},$$slots:{default:!0}}),z(),o()}var _2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function nm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=_2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var b2=Te('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function Od(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=b2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}function rm(t,e){U(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ie().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Bt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return ss.KeyC},role:"button",children:(l,d)=>{var a=Qe(),u=he(a);{var f=p=>{nm(p,{})},v=p=>{Od(p,{})};R(u,p=>{i()?p(f):p(v,!1)})}$(l,a)},$$slots:{default:!0}}),z()}var $2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),y2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),x2={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 Bd(t,e){U(e,!0),Q(t,x2);let i=m(e,"isMobile",3,!1),o=m(e,"isHidden",3,!1),n=m(e,"showDuration",3,!0),s=m(e,"ref",15),l=Mt(),d=ae(!1),a=g(()=>In(e.duration)),u=g(()=>In(e.position));var f=y2();let v;var p=_(f),x=_(p,!0);h(p);var w=A(p,2);{var y=C=>{var T=$2(),E=_(T,!0);h(T),D(()=>$e(E,r(a))),$(C,T)};R(w,C=>{n()&&C(y)})}h(f),ws(f,()=>yl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),nt(f,C=>s(C),()=>s()),D(C=>{v=ie(f,1,"time svelte-sz9er7",null,v,C),$e(x,r(u))},[()=>({mobile:i()})]),$(t,f),z()}var Hd=require("@vkontakte/videoplayer-shared/es2015");var w2=Te('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),S2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
167
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function am(t,e){z(e,!1),q(t,v2);let[i,o]=He(),n=()=>S(l,"$data",i),s=Te(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Qr(),sm(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var m=m2();Li(m,5,()=>n().groups,({title:p,items:x})=>p,(p,x)=>{let y=()=>r(x).title,w=()=>r(x).items;var T=f2(),C=_(T),E=_(C,!0);h(C);var V=k(C,2);Li(V,5,w,({description:I,value:L})=>L,(I,L)=>{let B=()=>r(L).description,F=()=>r(L).value;var H=p2(),U=_(H),Z=_(U);gd(Z,()=>s0(B())),h(U);var re=k(U,2),G=_(re,!0);h(re),h(H),D(()=>ge(G,F())),$(I,H)}),h(V),h(T),D(()=>ge(E,y())),$(p,T)}),h(m),$(u,m)},$$slots:{default:!0}}),W(),o()}var iv=require("@vkontakte/videoplayer-shared/es2015");var Ra=require("@vkontakte/videoplayer-core/es2015");var ZR=require("@vkontakte/videoplayer-shared/es2015");var g2=P('<div class="pillow svelte-1oe0j8n"><!></div>'),h2={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 lm(t,e){q(t,h2);var i=g2(),o=_(i);he(o,()=>{var n;return(n=e.children)!=null?n:de}),h(i),$(t,i)}var Tl=require("@vkontakte/videoplayer-shared/es2015");var _2=we('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function dm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=_2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var b2=we('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function cm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=b2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var $2=we('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function um(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=$2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var y2=we('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function Bd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=y2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var x2=we('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Dd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=x2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var Ru=t=>{switch(t){case Tl.VideoQuality.Q_720P:return um;case Tl.VideoQuality.Q_1080P:return Bd;case Tl.VideoQuality.Q_1440P:return Dd;case Tl.VideoQuality.Q_2160P:return dm;case Tl.VideoQuality.Q_4320P:return cm}};var w2=we('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function pm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=w2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var S2=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function fm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=S2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var C2=P('<div aria-hidden="true"><!> <!></div>'),T2={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 Fd(t,e){z(e,!0),q(t,T2);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=g(()=>Ru(o())),s=g(()=>!!r(n)&&[Bd,Dd].includes(r(n)));var l=Ue(),d=me(l);{var a=f=>{pm(f,{})},u=f=>{var m=C2();let p;var x=_(m);{var y=C=>{lm(C,{children:(E,V)=>{var I=Ue(),L=me(I);Mi(L,()=>r(n),(B,F)=>{F(B,{})}),$(E,I)},$$slots:{default:!0}})};R(x,C=>{r(n)&&C(y)})}var w=k(x,2);let T=g(()=>r(n)?"settings-icon--labeled":"settings-icon");fm(w,{get"data-testid"(){return r(T)},fill:"var(--btn-color, #fff)"}),h(m),D(C=>p=se(m,1,"icon svelte-8t5w85",null,p,C),[()=>({triple:r(s)})]),$(f,m)};R(d,f=>{i()?f(a):f(u,!1)})}$(t,l),W()}var E2=P('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),I2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function El(t,e){z(e,!0),q(t,I2);let[i,o]=He(),n=()=>S(u,"$settingsMenuVisible",i),s=()=>S(p,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=Te(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,m=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,x=d.ui.t,y=J(void 0);qe(()=>{r(y)&&Tt(()=>{e.ref$.set(r(y))})});let w=x("aria_label_settings");function T(E){return Ct(this,null,function*(){let V=Qs(E);n()?m():f(V,wo)})}let C=g(()=>n()?"opened":"");Dt(t,{get className(){return r(C)},testId:"btn-settings",click:T,get ariaLabel(){return w},get ariaExpanded(){return n()},get ref(){return r(y)},set ref(E){N(y,E,!0)},children:(E,V)=>{var I=E2(),L=_(I);Fd(L,{get isMobile(){return s()},get currentQuality(){return l()}}),h(I),$(E,I)},$$slots:{default:!0}}),W(),o()}var k2=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function mm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=k2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var A2=we('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function Hd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=A2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function vm(t,e){z(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Te().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Dt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return us.KeyC},role:"button",children:(l,d)=>{var a=Ue(),u=me(a);{var f=p=>{mm(p,{})},m=p=>{Hd(p,{})};R(u,p=>{i()?p(f):p(m,!1)})}$(l,a)},$$slots:{default:!0}}),W()}var P2=P('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),L2=P('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),M2={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 Ud(t,e){z(e,!0),q(t,M2);let i=v(e,"isMobile",3,!1),o=v(e,"isHidden",3,!1),n=v(e,"showDuration",3,!0),s=v(e,"ref",15),l=kt(),d=ae(!1),a=g(()=>bn(e.duration)),u=g(()=>bn(e.position));var f=L2();let m;var p=_(f),x=_(p,!0);h(p);var y=k(p,2);{var w=T=>{var C=P2(),E=_(C,!0);h(C),D(()=>ge(E,r(a))),$(T,C)};R(y,T=>{n()&&T(w)})}h(f),ws(f,()=>$l(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),rt(f,T=>s(T),()=>s()),D(T=>{m=se(f,1,"time svelte-sz9er7",null,m,T),ge(x,r(u))},[()=>({mobile:i()})]),$(t,f),W()}var Wd=require("@vkontakte/videoplayer-shared/es2015");var V2=we('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),R2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
163
168
  .icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
164
- .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function js(t,e){Q(t,S2);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=g(()=>n(i(),o()));var l=w2();D(()=>{var d;Ue(l,"data-value",r(s)),Ue(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}var Io=require("@vkontakte/videoplayer-shared/es2015");var Au=require("@vkontakte/videoplayer-shared/es2015");var K1=require("@vkontakte/videoplayer-shared/es2015");var C2=M('<div class="overlay"><!></div>');function sm(t,e){U(e,!0);let[i,o]=Fe(),n=()=>S(l,"$overlayContainer$",i),l=Ie().ui.overlayContainer$,d=Z(void 0),a=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))};qe(()=>{u(n())}),Rt(()=>(u(n()),()=>a(n())));var f=C2(),v=_(f);xe(v,()=>{var p;return(p=e.children)!=null?p:le}),h(f),nt(f,p=>B(d,p),()=>r(d)),$(t,f),z(),o()}var T2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),E2=M("<div><!></div> <!>",1),I2={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Aa(t,e){U(e,!0),Q(t,I2);let[i,o]=Fe(),n=()=>S(K,"$overlayContainer$",i),s=()=>S(F,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),u=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),p=m(e,"maxTooltipWidth",3,void 0),x=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,K1.noop),y=5,C=Z(void 0),T=Z(void 0),E,L=Z(0),k=Z(0),I=Z(0),V=Z(0),j=Mt(),H=Ie(),F=H.ui.playerSize,K=H.ui.overlayContainer$;qe(()=>{Et(()=>{w()(a())})});let ee=H.getLogger().createComponentLog("Tooltip component"),Y=()=>{if(!n()||!r(T)||!r(C))return;B(k,y);let X=n().getBoundingClientRect(),Me=r(C).getBoundingClientRect(),ke=Me.width,ze=r(T).clientWidth,rt=s().width,mt=(ke-ze)/2,vt=Me.left+u()-X.left,Tt=vt+mt,Je=Me.top+f()-X.top,zt=ze/2-y,Yt=Tt<8,Zt=Tt+ze>rt-8;Yt&&(Tt=8,zt=vt+Me.width/2-2.5*y),Zt&&(Tt=rt-8-ze,zt=Me.left-X.left+Me.width/2-Tt-y),B(I,Tt,!0),B(V,Je),B(L,zt,!0)},de=()=>{!n()||!r(T)||!r(C)||B(k,-y)},oe=()=>{if(!n()||!r(T)||!r(C))return;B(L,y);let X=n().getBoundingClientRect(),Me=r(C).getBoundingClientRect(),ke=Me.height,ze=r(T).clientHeight,rt=(ke-ze)/2+ze,mt=Me.left+u()-X.left-r(T).clientWidth,vt=2,Tt=mt-y;Tt<8&&(Tt=8);let zt=Me.top+f()-X.top+rt,Yt=vt-rt/2,Zt=vt-y;B(I,Tt,!0),B(V,zt),B(k,Yt),B(L,Zt)},fe=()=>{!n()||!r(T)||!r(C)||B(L,-y)},_e=()=>{switch(x()){case"top":Y();break;case"bottom":de();break;case"left":oe();break;default:fe()}},pe=()=>{try{if(!n()||!r(C))return;_e(),a(!0)}catch(X){ee({message:String(X)})}},Oe=()=>{a(!1)},ne=()=>{r(T)&&(E||(E=window.setTimeout(pe,j.controls.hideTimeoutTooltips)),a()&&pe())},Re=()=>{Oe(),window.clearTimeout(E),E=void 0},re=(X,Me,ke)=>{let ze="";switch(x()){case"top":ze=`transform: translate(${X}px, ${Me}px);`;break;case"bottom":ze=`transform: translate(${X}px, ${Me}px); top: auto; bottom: 100%;`;break;case"left":ze=`transform: translate(${X}px, ${Me}px); left: 0; right: auto;`;break;default:ze=`transform: translate(${X}px, ${Me}px);`}return ze+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,ze+=` opacity: ${ke?1:0}; visibility: ${ke?"visible":"hidden"}`,ze},O=(X,Me)=>{let ke="";switch(x()){case"top":ke=`transform: translate(${X}px, ${Me}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":ke=`transform: translate(${X}px, ${Me}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":ke=`transform: translate(${X}px, ${Me}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:ke=`transform: translate(${X}px, ${Me}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return ke},ue=g(()=>re(r(I),r(V),a())),Ve=g(()=>O(r(L),r(k)));Rt(_e),dn(()=>window.clearTimeout(E));var ge=E2(),te=he(ge);let ve;te.__mousemove=ne,te.__mousedown=Re,te.__mouseup=function(...X){var Me;(Me=e.disableMouseupTooltipShow?void 0:ne)==null||Me.apply(this,X)};var He=_(te);xe(He,()=>{var X;return(X=e.children)!=null?X:le}),h(te),nt(te,X=>B(C,X),()=>r(C));var me=A(te,2);{var ct=X=>{sm(X,{children:(Me,ke)=>{var ze=T2(),rt=_(ze),mt=_(rt,!0);h(rt);var vt=A(rt,2);h(ze),nt(ze,Tt=>B(T,Tt),()=>r(T)),D(()=>{at(ze,r(ue)),$e(mt,d()),at(vt,r(Ve))}),$(Me,ze)},$$slots:{default:!0}})};R(me,X=>{d()&&!l()&&X(ct)})}D(X=>ve=ie(te,1,"tooltip-wrapper svelte-hxlyne",null,ve,X),[()=>({"full-width":v()})]),kt("mouseenter",te,ne),kt("mouseleave",te,Re),$(t,ge),z(),o()}pt(["mousemove","mousedown","mouseup"]);var q1=t=>{t.stopPropagation()},k2=M("<div><!></div>"),A2={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Eo(t,e){U(e,!0),Q(t,A2);let[i,o]=Fe(),n=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=Ie(),d=vo(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),p=m(e,"disabled",3,!1),x=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),y=m(e,"width",15,void 0),C=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),E=m(e,"tooltipActive",3,!1),L=m(e,"tooltipPlacement",3,"top"),k=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=m(e,"isAriaHidden",3,!1),V=m(e,"onTooltipVisibilityChange",3,Au.noop),j=m(e,"initialTranslateXPx",3,0),H=m(e,"initialTranslateYPx",19,()=>-18),F=m(e,"mouseEnter",3,Au.noop),K=m(e,"mouseLeave",3,Au.noop),ee=g(()=>p()?n()?f("tooltip_disabled_when_graph_on"):k():T());var Y=k2();Y.__pointerdown=[q1],Y.__click=[q1];var de=_(Y);{var oe=_e=>{Aa(_e,{get content(){return r(ee)},get translateX(){return j()},get translateY(){return H()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return L()},get onVisibilityChange(){return V()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(pe,Oe)=>{var ne=Qe(),Re=he(ne);xe(Re,()=>{var re;return(re=e.children)!=null?re:le}),$(pe,ne)},$$slots:{default:!0}})},fe=_e=>{var pe=Qe(),Oe=he(pe);xe(Oe,()=>{var ne;return(ne=e.children)!=null?ne:le}),$(_e,pe)};R(de,_e=>{x()&&r(ee)&&!s()?_e(oe):_e(fe,!1)})}h(Y),nt(Y,_e=>w(_e),()=>w()),D(()=>{var _e;ie(Y,1,`btn-container ${(_e=v())!=null?_e:""}`,"svelte-p9r045"),Ue(Y,"aria-hidden",I()||null)}),kt("mouseenter",Y,function(..._e){var pe;(pe=F())==null||pe.apply(this,_e)}),kt("mouseleave",Y,function(..._e){var pe;(pe=K())==null||pe.apply(this,_e)}),cr(Y,"clientWidth",y),$(t,Y),z(),o()}pt(["pointerdown","click"]);var P2=Te('<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 Dd(t,e){"use strict";var i=P2(),o=_(i),n=A(o);h(i),D(()=>{Ue(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ue(o,"fill-opacity",e.completed?1:.24),Ue(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var M2=M("<div><!></div>"),L2={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 am(t,e){U(e,!0),Q(t,L2);let o=Ie().ui.t,n=Z(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Eo(t,{get tooltipContent(){return r(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=M2();let u;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);Dd(f,{get completed(){return r(v)}}),h(a),D(p=>{u=ie(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),at(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),cr(a,"clientWidth",p=>B(n,p)),$(l,a)},$$slots:{default:!0}}),z()}var V2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),R2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),N2={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
169
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ys(t,e){q(t,R2);let i=v(e,"volume",3,1),o=v(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=g(()=>n(i(),o()));var l=V2();D(()=>{var d;ze(l,"data-value",r(s)),ze(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}var To=require("@vkontakte/videoplayer-shared/es2015");var Ou=require("@vkontakte/videoplayer-shared/es2015");var a0=require("@vkontakte/videoplayer-shared/es2015");var O2=P('<div class="overlay"><!></div>');function gm(t,e){z(e,!0);let[i,o]=He(),n=()=>S(l,"$overlayContainer$",i),l=Te().ui.overlayContainer$,d=J(void 0),a=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))};qe(()=>{u(n())}),Rt(()=>(u(n()),()=>a(n())));var f=O2(),m=_(f);he(m,()=>{var p;return(p=e.children)!=null?p:de}),h(f),rt(f,p=>N(d,p),()=>r(d)),$(t,f),W(),o()}var N2=P('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),B2=P("<div><!></div> <!>",1),D2={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function ka(t,e){z(e,!0),q(t,D2);let[i,o]=He(),n=()=>S(Z,"$overlayContainer$",i),s=()=>S(U,"$containerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"content",3,""),a=v(e,"active",15,!1),u=v(e,"translateX",3,0),f=v(e,"translateY",3,0),m=v(e,"isFullWidthWrapper",3,!1),p=v(e,"maxTooltipWidth",3,void 0),x=v(e,"placement",3,"top"),y=v(e,"onVisibilityChange",3,a0.noop),w=5,T=J(void 0),C=J(void 0),E,V=J(0),I=J(0),L=J(0),B=J(0),F=kt(),H=Te(),U=H.ui.playerSize,Z=H.ui.overlayContainer$;qe(()=>{Tt(()=>{y()(a())})});let re=H.getLogger().createComponentLog("Tooltip component"),G=()=>{if(!n()||!r(C)||!r(T))return;N(I,w);let ie=n().getBoundingClientRect(),Se=r(T).getBoundingClientRect(),Ee=Se.width,Qe=r(C).clientWidth,tt=s().width,gt=(Ee-Qe)/2,dt=Se.left+u()-ie.left,ht=dt+gt,it=Se.top+f()-ie.top,Wt=Qe/2-w,Yt=ht<8,ei=ht+Qe>tt-8;Yt&&(ht=8,Wt=dt+Se.width/2-2.5*w),ei&&(ht=tt-8-Qe,Wt=Se.left-ie.left+Se.width/2-ht-w),N(L,ht,!0),N(B,it),N(V,Wt,!0)},be=()=>{!n()||!r(C)||!r(T)||N(I,-w)},ee=()=>{if(!n()||!r(C)||!r(T))return;N(V,w);let ie=n().getBoundingClientRect(),Se=r(T).getBoundingClientRect(),Ee=Se.height,Qe=r(C).clientHeight,tt=(Ee-Qe)/2+Qe,gt=Se.left+u()-ie.left-r(C).clientWidth,dt=2,ht=gt-w;ht<8&&(ht=8);let Wt=Se.top+f()-ie.top+tt,Yt=dt-tt/2,ei=dt-w;N(L,ht,!0),N(B,Wt),N(I,Yt),N(V,ei)},pe=()=>{!n()||!r(C)||!r(T)||N(V,-w)},ve=()=>{switch(x()){case"top":G();break;case"bottom":be();break;case"left":ee();break;default:pe()}},ue=()=>{try{if(!n()||!r(T))return;ve(),a(!0)}catch(ie){re({message:String(ie)})}},Me=()=>{a(!1)},Oe=()=>{r(C)&&(E||(E=window.setTimeout(ue,F.controls.hideTimeoutTooltips)),a()&&ue())},le=()=>{Me(),window.clearTimeout(E),E=void 0},De=(ie,Se,Ee)=>{let Qe="";switch(x()){case"top":Qe=`transform: translate(${ie}px, ${Se}px);`;break;case"bottom":Qe=`transform: translate(${ie}px, ${Se}px); top: auto; bottom: 100%;`;break;case"left":Qe=`transform: translate(${ie}px, ${Se}px); left: 0; right: auto;`;break;default:Qe=`transform: translate(${ie}px, ${Se}px);`}return Qe+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Qe+=` opacity: ${Ee?1:0}; visibility: ${Ee?"visible":"hidden"}`,Qe},X=(ie,Se)=>{let Ee="";switch(x()){case"top":Ee=`transform: translate(${ie}px, ${Se}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ee=`transform: translate(${ie}px, ${Se}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ee=`transform: translate(${ie}px, ${Se}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ee=`transform: translate(${ie}px, ${Se}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ee},M=g(()=>De(r(L),r(B),a())),st=g(()=>X(r(V),r(I)));Rt(ve),an(()=>window.clearTimeout(E));var Fe=B2(),j=me(Fe);let oe;j.__mousemove=Oe,j.__mousedown=le,j.__mouseup=function(...ie){var Se;(Se=e.disableMouseupTooltipShow?void 0:Oe)==null||Se.apply(this,ie)};var Be=_(j);he(Be,()=>{var ie;return(ie=e.children)!=null?ie:de}),h(j),rt(j,ie=>N(T,ie),()=>r(T));var Je=k(j,2);{var $e=ie=>{gm(ie,{children:(Se,Ee)=>{var Qe=N2(),tt=_(Qe),gt=_(tt,!0);h(tt);var dt=k(tt,2);h(Qe),rt(Qe,ht=>N(C,ht),()=>r(C)),D(()=>{at(Qe,r(M)),ge(gt,d()),at(dt,r(st))}),$(Se,Qe)},$$slots:{default:!0}})};R(Je,ie=>{d()&&!l()&&ie($e)})}D(ie=>oe=se(j,1,"tooltip-wrapper svelte-hxlyne",null,oe,ie),[()=>({"full-width":m()})]),It("mouseenter",j,Oe),It("mouseleave",j,le),$(t,Fe),W(),o()}ct(["mousemove","mousedown","mouseup"]);var l0=t=>{t.stopPropagation()},F2=P("<div><!></div>"),H2={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 Co(t,e){z(e,!0),q(t,H2);let[i,o]=He(),n=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=Te(),d=go(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,m=v(e,"className",3,""),p=v(e,"disabled",3,!1),x=v(e,"hasTooltip",3,!0),y=v(e,"ref",15,void 0),w=v(e,"width",15,void 0),T=v(e,"isFullWidthTooltip",3,!0),C=v(e,"tooltipContent",3,""),E=v(e,"tooltipActive",3,!1),V=v(e,"tooltipPlacement",3,"top"),I=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),L=v(e,"isAriaHidden",3,!1),B=v(e,"onTooltipVisibilityChange",3,Ou.noop),F=v(e,"initialTranslateXPx",3,0),H=v(e,"initialTranslateYPx",19,()=>-18),U=v(e,"mouseEnter",3,Ou.noop),Z=v(e,"mouseLeave",3,Ou.noop),re=g(()=>p()?n()?f("tooltip_disabled_when_graph_on"):I():C());var G=F2();G.__pointerdown=[l0],G.__click=[l0];var be=_(G);{var ee=ve=>{ka(ve,{get content(){return r(re)},get translateX(){return F()},get translateY(){return H()},get isFullWidthWrapper(){return T()},get active(){return E()},get placement(){return V()},get onVisibilityChange(){return B()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(ue,Me)=>{var Oe=Ue(),le=me(Oe);he(le,()=>{var De;return(De=e.children)!=null?De:de}),$(ue,Oe)},$$slots:{default:!0}})},pe=ve=>{var ue=Ue(),Me=me(ue);he(Me,()=>{var Oe;return(Oe=e.children)!=null?Oe:de}),$(ve,ue)};R(be,ve=>{x()&&r(re)&&!s()?ve(ee):ve(pe,!1)})}h(G),rt(G,ve=>y(ve),()=>y()),D(()=>{var ve;se(G,1,`btn-container ${(ve=m())!=null?ve:""}`,"svelte-p9r045"),ze(G,"aria-hidden",L()||null)}),It("mouseenter",G,function(...ve){var ue;(ue=U())==null||ue.apply(this,ve)}),It("mouseleave",G,function(...ve){var ue;(ue=Z())==null||ue.apply(this,ve)}),pr(G,"clientWidth",w),$(t,G),W(),o()}ct(["pointerdown","click"]);var U2=we('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function zd(t,e){"use strict";var i=U2(),o=_(i),n=k(o);h(i),D(()=>{ze(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),ze(o,"fill-opacity",e.completed?1:.24),ze(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var z2=P("<div><!></div>"),W2={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 hm(t,e){z(e,!0),q(t,W2);let o=Te().ui.t,n=J(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Co(t,{get tooltipContent(){return r(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=z2();let u;var f=_(a);let m=g(()=>!!e.videoEpisode.completed);zd(f,{get completed(){return r(m)}}),h(a),D(p=>{u=se(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),at(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),pr(a,"clientWidth",p=>N(n,p)),$(l,a)},$$slots:{default:!0}}),W()}var K2=P('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),q2=P('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),Q2={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,
165
170
  .video-episode-loaded.svelte-1u6kv8l,
166
- .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 lm(t,e){Q(t,N2);let i=m(e,"videoEpisodes",19,()=>[]);var o=R2();Ii(o,21,i,n=>n.from,(n,s)=>{var l=V2();let d;var a=_(l),u=_(a),f=A(u,2);let v;h(a),h(l),D((p,x)=>{d=ie(l,1,"video-episode svelte-1u6kv8l",null,d,p),at(l,`left: ${r(s).from}%; width: ${r(s).width}%`),at(u,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),v=ie(f,1,"video-episode-filled svelte-1u6kv8l",null,v,x),at(f,`transform: translateX(${r(s).filledWidth/r(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,l)}),h(o),$(t,o)}function O2(t,e,i,o,n,s,l){if(t.preventDefault(),e()&&B(i,e().getBoundingClientRect(),!0),o()||r(n)||!e())return;B(n,!0);let d=s(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function B2(t,e,i,o,n,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);n()(a,u,r(s).width),r(l)&&d()(a)}function D2(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;B(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function H2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function F2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),B(n,!1),s()(l)}var U2=M("<div></div>"),z2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),W2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),K2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
171
+ .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function _m(t,e){q(t,Q2);let i=v(e,"videoEpisodes",19,()=>[]);var o=q2();Li(o,21,i,n=>n.from,(n,s)=>{var l=K2();let d;var a=_(l),u=_(a),f=k(u,2);let m;h(a),h(l),D((p,x)=>{d=se(l,1,"video-episode svelte-1u6kv8l",null,d,p),at(l,`left: ${r(s).from}%; width: ${r(s).width}%`),at(u,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),m=se(f,1,"video-episode-filled svelte-1u6kv8l",null,m,x),at(f,`transform: translateX(${r(s).filledWidth/r(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,l)}),h(o),$(t,o)}function G2(t,e,i,o,n,s,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||r(n)||!e())return;N(n,!0);let d=s(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function j2(t,e,i,o,n,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);n()(a,u,r(s).width),r(l)&&d()(a)}function Y2(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;N(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function Z2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function X2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),N(n,!1),s()(l)}var J2=P("<div></div>"),ey=P('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),ty=P('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),iy={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 {
167
172
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
168
173
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
169
174
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
170
175
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
171
- .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 Pa(t,e){U(e,!0),Q(t,K2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),s=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),u=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),x=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,Io.noop),C=m(e,"onHandleMove",3,Io.noop),T=m(e,"onPointerUp",3,Io.noop),E=m(e,"onPointerEnter",3,Io.noop),L=m(e,"onPointerMove",3,Io.noop),k=m(e,"onPointerLeave",3,Io.noop),I=m(e,"onMouseEnter",3,Io.noop),V=m(e,"onMouseLeave",3,Io.noop),j=m(e,"onWheelUp",3,Io.noop),H=m(e,"onWheelDown",3,Io.noop),F=m(e,"onWheelLeft",3,Io.noop),K=m(e,"onWheelRight",3,Io.noop),ee=m(e,"onDisabledClick",3,Io.noop),Y=m(e,"loadedProgress",3,0),de=m(e,"filledProgress",3,0),oe=m(e,"handleProgress",3,0),fe=m(e,"ariaLabel",3,""),_e=m(e,"ariaValueMin",3,void 0),pe=m(e,"ariaValueMax",3,void 0),Oe=m(e,"ariaValueNow",3,void 0),ne=m(e,"ariaValueText",3,""),Re=m(e,"onContextMenu",3,Io.noop),re=Mt(),O=Z(void 0),ue=Z(!1),Ve=g(()=>{var ce;return(ce=pe())!=null?ce:0}),ge=g(()=>{var ce;return(0,Io.isNonNullable)(f())&&((ce=f()[f().length-1])==null?void 0:ce.time)<r(Ve)}),te=g(()=>(0,Io.isNonNullable)(f())&&f().length&&r(ge)&&r(Ve)?ze(Y()*100,de()*100):[]);function ve(ce){if(ce.preventDefault(),i()&&B(O,i().getBoundingClientRect(),!0),x())return;let De=Me(ce.clientX,ce.clientY),Ke=ke(ce.clientX);E()(De,Ke,r(O).width)}function He(ce){ce.preventDefault(),!x()&&k()()}function me(){I()()}function ct(){V()()}function X(ce){x()||v()&&(ce.preventDefault(),ce.deltaY<0?j()():ce.deltaY>0?H()():ce.deltaX>0?K()():F()())}function Me(ce,De){return l()?Math.max(0,Math.min(1,(r(O).height-(De-r(O).top))/r(O).height)):Math.min(Math.max(ce-r(O).x,0),r(O).width)/r(O).width}function ke(ce){return Math.min(Math.max(ce-r(O).x,0),r(O).width)}function ze(ce,De){let Ke=re.features.episodesClustering&&!p()?re.episodeMinWidthPc:0,Ae=[],Ge=f()[0].time/r(Ve)*100,Ne=0,Ze=0;for(let ot=1;ot<f().length;ot++)Ne=f()[ot].time/r(Ve)*100,Ne-Ge>Ke&&(Ae.push({from:Ge,width:Math.max(0,Ne-Ge),loadedWidth:Math.max(0,Math.min(Ne,ce)-Ge),filledWidth:Math.max(0,Math.min(Ne,De)-Ge),interactive:f()[ot-1].interactive,completed:f()[ot-1].completed}),Ge=f()[ot].time/r(Ve)*100,Ze++);let Lt={from:Ge,width:Math.max(0,100-Ge),loadedWidth:Math.max(0,Math.min(ce,100)-Ge),filledWidth:Math.max(0,Math.min(De,100)-Ge),interactive:f()[Ze].interactive,completed:f()[Ze].completed};100-Ge<Ke?(Ze-=1,Ae[Ze].width+=100-Ge,Ae[Ze].loadedWidth+=Math.max(0,Math.min(ce,100)-Ge),Ae[Ze].filledWidth+=Math.max(0,Math.min(De,100)-Ge)):Ae[Ze]=Lt;let Qt=f()[0].time;if(Qt!==0){let ot=Qt/r(Ve)*100;Ae.unshift({from:0,width:ot,loadedWidth:Math.min(ot,ce),filledWidth:Math.min(ot,De)})}return Ae}function rt(ce){return Math.max(0,Math.min(100,ce*100))}var mt=W2(),vt=he(mt);{var Tt=ce=>{var De=U2();let Ke;Ii(De,21,()=>r(te),Ae=>Ae.from,(Ae,Ge)=>{var Ne=Qe(),Ze=he(Ne);{var Lt=Qt=>{am(Qt,{get videoEpisode(){return r(Ge)},get disabled(){return x()}})};R(Ze,Qt=>{r(Ge).interactive&&Qt(Lt)})}$(Ae,Ne)}),h(De),D(Ae=>Ke=ie(De,1,"interactive-icons svelte-1tpemng",null,Ke,Ae),[()=>({mobile:a(),hidden:a()&&!r(ue)})]),$(ce,De)};R(vt,ce=>{p()&&ce(Tt)})}var Je=A(vt,2);let zt;Je.__pointerdown=[O2,i,O,x,ue,Me,y],Je.__pointermove=[B2,x,Me,ke,L,O,ue,C],Je.__pointerup=[D2,x,ue,Me,T],Je.__click=[H2,x,ee,Me],Je.__contextmenu=[F2,Me,x,ee,ue,Re];var Yt=_(Je);{var Zt=ce=>{lm(ce,{get videoEpisodes(){return r(te)},get disabled(){return x()},get isMobile(){return a()}})},Wt=ce=>{var De=z2(),Ke=_(De),Ae=A(Ke,2);let Ge;h(De),D((Ne,Ze,Lt)=>{at(Ke,Ne),Ge=ie(Ae,1,"filled svelte-1tpemng",null,Ge,Ze),at(Ae,Lt)},[()=>`transform: translateX(${rt(Y())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${rt(de())}%);`]),$(ce,De)};R(Yt,ce=>{r(te).length?ce(Zt):ce(Wt,!1)})}var se=A(Yt,2);let Ft;var be=_(se);let we;h(se),h(Je),nt(Je,ce=>i(ce),()=>i()),D((ce,De,Ke,Ae)=>{var Ge,Ne;zt=ie(Je,1,`slider ${(Ge=o())!=null?Ge:""}`,"svelte-1tpemng",zt,ce),Ue(Je,"aria-label",fe()),Ue(Je,"aria-valuemin",_e()),Ue(Je,"aria-valuemax",pe()),Ue(Je,"aria-valuenow",Oe()),Ue(Je,"aria-valuetext",ne()),Ue(Je,"data-testid",(Ne=n())!=null?Ne:null),Ft=ie(se,1,"handleWrap svelte-1tpemng",null,Ft,De),at(se,Ke),we=ie(be,1,"handle svelte-1tpemng",null,we,Ae)},[()=>({disabled:x(),"slider-dragging":r(ue),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${rt(oe())}%);`,()=>({"active-live":d()})]),kt("pointerenter",Je,ve),kt("pointerleave",Je,He),kt("mouseenter",Je,me),kt("mouseleave",Je,ct),kt("wheel",Je,X),$(t,mt),z()}pt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Zi=(t,e)=>ha[t]>=ha[e],Q1=(t,e)=>ha[t]<ha[e],Ys=(t,e)=>ha[t]<=ha[e],G1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Q2=M("<div><!></div>"),G2=M("<div><!> <!></div>"),j2={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 dm(t,e){var X,Me;U(e,!0),Q(t,j2);let[i,o]=Fe(),n=()=>S(E,"$isAudioAvailable$",i),s=()=>S(v,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(y,"$currentGridType$",i),a=Ie(),u=Mt(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:x,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,C=(X=a.callbacks)==null?void 0:X.onAudioDoesNotExistHint,T=(Me=a.callbacks)==null?void 0:Me.onAudioDisabledHint,E=a.state.isAudioAvailable$,L=a.state.isAudioDisabled,k=a.ui.t,I=Z(!1),V,j=g(()=>e.isAds||n()),H=g(()=>!r(j)||s()||l()===0),F=g(()=>Ys(d(),"s")),K=g(()=>r(F)?"":r(H)?!n()||L?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),ee=g(()=>r(H)?k("tooltip_volume"):k("tooltip_volume_muted")),Y=g(()=>r(H)?0:l()),de=!1,oe=g(()=>e.isAds?!1:L?!T:n()?!1:!C);function fe(ke){x(),p(ke)}function _e(){Eu(a,l(),u.controls.volumeStepWheel)}function pe(){Iu(a,l(),u.controls.volumeStepWheel)}function Oe(ke){p(ke)}function ne(ke){p(ke),w()}function Re(){de=!0}function re(){de=!1,Ve()}function O(){clearTimeout(V),B(I,!0)}function ue(){Ve()}function Ve(){V=window.setTimeout(()=>{de||B(I,!1)},u.controls.volumeBarTimeout)}function ge(ke){ke.preventDefault(),ke.deltaY<0?_e():ke.deltaY>0&&pe()}var te=G2();let ve;var He=_(te);Aa(He,{get content(){return r(K)},translateY:-18,children:(ke,ze)=>{let rt=g(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Bt(ke,{className:"btn-full-opacity",get disabled(){return r(oe)},get testId(){return r(rt)},get ariaLabel(){return r(ee)},get click(){return e.click},get ariaKeyShortCut(){return ss.KeyM},role:"button",children:(mt,vt)=>{js(mt,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var me=A(He,2);{var ct=ke=>{var ze=Q2();let rt;var mt=_(ze);let vt=g(()=>r(F)?"volumeBar-slider-vertical":""),Tt=g(()=>r(F)&&!r(I)),Je=g(()=>r(F)?Re:Hd.noop),zt=g(()=>r(F)?re:Hd.noop),Yt=g(()=>Math.round(r(Y)*100)),Zt=g(()=>`${Math.round(r(Y)*100)}%`),Wt=g(()=>r(F)?"volume-slider-vertical":"volume-slider");Pa(mt,{get className(){return r(vt)},get isHidden(){return r(Tt)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:_e,onWheelDown:pe,onPointerDown:fe,onHandleMove:Oe,onPointerUp:ne,get onPointerEnter(){return r(Je)},get onPointerLeave(){return r(zt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Yt)},get ariaValueText(){return r(Zt)},get filledProgress(){return r(Y)},get handleProgress(){return r(Y)},get testId(){return r(Wt)}}),h(ze),D(se=>rt=ie(ze,1,"volumeBar svelte-1auih1j",null,rt,se),[()=>({"volumeBar-vertical":r(F)})]),$(ke,ze)};R(me,ke=>{r(j)&&ke(ct)})}h(te),D(ke=>ve=ie(te,1,"volumeBar-container svelte-1auih1j",null,ve,ke),[()=>({vertical:r(F)})]),kt("mouseenter",te,function(...ke){var ze;(ze=r(F)?O:Hd.noop)==null||ze.apply(this,ke)}),kt("mouseleave",te,function(...ke){var ze;(ze=r(F)?ue:Hd.noop)==null||ze.apply(this,ke)}),kt("wheel",te,ge),$(t,te),z(),o()}var j1=require("@vkontakte/videoplayer-shared/es2015");var Y2=Te('<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 cm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var Z2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
172
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function um(t,e){Q(t,Z2);let i=m(e,"isFullscreen",8,!1),o=Hr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");cm(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Fd(t,e){U(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,j1.noop),n=Ie(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Bt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=qs(u);s.set(f),o()()},get ariaKeyShortCut(){return ss.KeyF},role:"button",children:(u,f)=>{um(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var X2=Te('<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 pm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=X2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var J2=Te('<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 fm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=J2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(4),h(o),$(t,o)}var ey={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
176
+ .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function Aa(t,e){z(e,!0),q(t,iy);let i=v(e,"ref",15,void 0),o=v(e,"className",3,""),n=v(e,"testId",3,void 0),s=v(e,"isHidden",3,!1),l=v(e,"isVertical",3,!1),d=v(e,"isActiveLive",3,!1),a=v(e,"isMobile",3,!1),u=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),m=v(e,"withWheelHandler",3,!1),p=v(e,"isInteractive",3,!1),x=v(e,"disabled",3,!1),y=v(e,"hideHandel",3,!1),w=v(e,"onPointerDown",3,To.noop),T=v(e,"onHandleMove",3,To.noop),C=v(e,"onPointerUp",3,To.noop),E=v(e,"onPointerEnter",3,To.noop),V=v(e,"onPointerMove",3,To.noop),I=v(e,"onPointerLeave",3,To.noop),L=v(e,"onMouseEnter",3,To.noop),B=v(e,"onMouseLeave",3,To.noop),F=v(e,"onWheelUp",3,To.noop),H=v(e,"onWheelDown",3,To.noop),U=v(e,"onWheelLeft",3,To.noop),Z=v(e,"onWheelRight",3,To.noop),re=v(e,"onDisabledClick",3,To.noop),G=v(e,"loadedProgress",3,0),be=v(e,"filledProgress",3,0),ee=v(e,"handleProgress",3,0),pe=v(e,"ariaLabel",3,""),ve=v(e,"ariaValueMin",3,void 0),ue=v(e,"ariaValueMax",3,void 0),Me=v(e,"ariaValueNow",3,void 0),Oe=v(e,"ariaValueText",3,""),le=v(e,"onContextMenu",3,To.noop),De=kt(),X=J(void 0),M=J(!1),st=g(()=>{var ce;return(ce=ue())!=null?ce:0}),Fe=g(()=>{var ce;return(0,To.isNonNullable)(f())&&((ce=f()[f().length-1])==null?void 0:ce.time)<r(st)}),j=g(()=>(0,To.isNonNullable)(f())&&f().length&&r(Fe)&&r(st)?Qe(G()*100,be()*100):[]);function oe(ce){if(ce.preventDefault(),i()&&N(X,i().getBoundingClientRect(),!0),x())return;let Ke=Se(ce.clientX,ce.clientY),fe=Ee(ce.clientX);E()(Ke,fe,r(X).width)}function Be(ce){ce.preventDefault(),!x()&&I()()}function Je(){L()()}function $e(){B()()}function ie(ce){x()||m()&&(ce.preventDefault(),ce.deltaY<0?F()():ce.deltaY>0?H()():ce.deltaX>0?Z()():U()())}function Se(ce,Ke){return l()?Math.max(0,Math.min(1,(r(X).height-(Ke-r(X).top))/r(X).height)):Math.min(Math.max(ce-r(X).x,0),r(X).width)/r(X).width}function Ee(ce){return Math.min(Math.max(ce-r(X).x,0),r(X).width)}function Qe(ce,Ke){let fe=De.features.episodesClustering&&!p()?De.episodeMinWidthPc:0,Ve=[],Ne=f()[0].time/r(st)*100,ye=0,Ye=0;for(let Lt=1;Lt<f().length;Lt++)ye=f()[Lt].time/r(st)*100,ye-Ne>fe&&(Ve.push({from:Ne,width:Math.max(0,ye-Ne),loadedWidth:Math.max(0,Math.min(ye,ce)-Ne),filledWidth:Math.max(0,Math.min(ye,Ke)-Ne),interactive:f()[Lt-1].interactive,completed:f()[Lt-1].completed}),Ne=f()[Lt].time/r(st)*100,Ye++);let yt={from:Ne,width:Math.max(0,100-Ne),loadedWidth:Math.max(0,Math.min(ce,100)-Ne),filledWidth:Math.max(0,Math.min(Ke,100)-Ne),interactive:f()[Ye].interactive,completed:f()[Ye].completed};100-Ne<fe?(Ye-=1,Ve[Ye].width+=100-Ne,Ve[Ye].loadedWidth+=Math.max(0,Math.min(ce,100)-Ne),Ve[Ye].filledWidth+=Math.max(0,Math.min(Ke,100)-Ne)):Ve[Ye]=yt;let Xt=f()[0].time;if(Xt!==0){let Lt=Xt/r(st)*100;Ve.unshift({from:0,width:Lt,loadedWidth:Math.min(Lt,ce),filledWidth:Math.min(Lt,Ke)})}return Ve}function tt(ce){return Math.max(0,Math.min(100,ce*100))}var gt=ty(),dt=me(gt);{var ht=ce=>{var Ke=J2();let fe;Li(Ke,21,()=>r(j),Ve=>Ve.from,(Ve,Ne)=>{var ye=Ue(),Ye=me(ye);{var yt=Xt=>{hm(Xt,{get videoEpisode(){return r(Ne)},get disabled(){return x()}})};R(Ye,Xt=>{r(Ne).interactive&&Xt(yt)})}$(Ve,ye)}),h(Ke),D(Ve=>fe=se(Ke,1,"interactive-icons svelte-1tpemng",null,fe,Ve),[()=>({mobile:a(),hidden:a()&&!r(M)})]),$(ce,Ke)};R(dt,ce=>{p()&&ce(ht)})}var it=k(dt,2);let Wt;it.__pointerdown=[G2,i,X,x,M,Se,w],it.__pointermove=[j2,x,Se,Ee,V,X,M,T],it.__pointerup=[Y2,x,M,Se,C],it.__click=[Z2,x,re,Se],it.__contextmenu=[X2,Se,x,re,M,le];var Yt=_(it);{var ei=ce=>{_m(ce,{get videoEpisodes(){return r(j)},get disabled(){return x()},get isMobile(){return a()}})},Zt=ce=>{var Ke=ey(),fe=_(Ke),Ve=k(fe,2);let Ne;h(Ke),D((ye,Ye,yt)=>{at(fe,ye),Ne=se(Ve,1,"filled svelte-1tpemng",null,Ne,Ye),at(Ve,yt)},[()=>`transform: translateX(${tt(G())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${tt(be())}%);`]),$(ce,Ke)};R(Yt,ce=>{r(j).length?ce(ei):ce(Zt,!1)})}var Ae=k(Yt,2);let Ft;var Ce=_(Ae);let Ie;h(Ae),h(it),rt(it,ce=>i(ce),()=>i()),D((ce,Ke,fe,Ve)=>{var Ne,ye;Wt=se(it,1,`slider ${(Ne=o())!=null?Ne:""}`,"svelte-1tpemng",Wt,ce),ze(it,"aria-label",pe()),ze(it,"aria-valuemin",ve()),ze(it,"aria-valuemax",ue()),ze(it,"aria-valuenow",Me()),ze(it,"aria-valuetext",Oe()),ze(it,"data-testid",(ye=n())!=null?ye:null),Ft=se(Ae,1,"handleWrap svelte-1tpemng",null,Ft,Ke),at(Ae,fe),Ie=se(Ce,1,"handle svelte-1tpemng",null,Ie,Ve)},[()=>({disabled:x(),"slider-dragging":r(M),hidden:s(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${tt(ee())}%);`,()=>({"active-live":d()})]),It("pointerenter",it,oe),It("pointerleave",it,Be),It("mouseenter",it,Je),It("mouseleave",it,$e),It("wheel",it,ie),$(t,gt),W()}ct(["pointerdown","pointermove","pointerup","click","contextmenu"]);var to=(t,e)=>ga[t]>=ga[e],d0=(t,e)=>ga[t]<ga[e],Zs=(t,e)=>ga[t]<=ga[e],c0=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var ny=P("<div><!></div>"),ry=P("<div><!> <!></div>"),sy={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 bm(t,e){var ie,Se;z(e,!0),q(t,sy);let[i,o]=He(),n=()=>S(E,"$isAudioAvailable$",i),s=()=>S(m,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(w,"$currentGridType$",i),a=Te(),u=kt(),f=a.state.volume$,m=a.state.muted$,{setVolume:p,startVolumeChanging:x,stopVolumeChanging:y}=a.actions.internal,w=a.ui.currentGridType$,T=(ie=a.callbacks)==null?void 0:ie.onAudioDoesNotExistHint,C=(Se=a.callbacks)==null?void 0:Se.onAudioDisabledHint,E=a.state.isAudioAvailable$,V=a.state.isAudioDisabled,I=a.ui.t,L=J(!1),B,F=g(()=>e.isAds||n()),H=g(()=>!r(F)||s()||l()===0),U=g(()=>Zs(d(),"s")),Z=g(()=>r(U)?"":r(H)?!n()||V?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),re=g(()=>r(H)?I("tooltip_volume"):I("tooltip_volume_muted")),G=g(()=>r(H)?0:l()),be=!1,ee=g(()=>e.isAds?!1:V?!C:n()?!1:!T);function pe(Ee){x(),p(Ee)}function ve(){Mu(a,l(),u.controls.volumeStepWheel)}function ue(){Vu(a,l(),u.controls.volumeStepWheel)}function Me(Ee){p(Ee)}function Oe(Ee){p(Ee),y()}function le(){be=!0}function De(){be=!1,st()}function X(){clearTimeout(B),N(L,!0)}function M(){st()}function st(){B=window.setTimeout(()=>{be||N(L,!1)},u.controls.volumeBarTimeout)}function Fe(Ee){Ee.preventDefault(),Ee.deltaY<0?ve():Ee.deltaY>0&&ue()}var j=ry();let oe;var Be=_(j);ka(Be,{get content(){return r(Z)},translateY:-18,children:(Ee,Qe)=>{let tt=g(()=>r(U)?"btn-volume-vertical":"btn-volume-horizontal");Dt(Ee,{className:"btn-full-opacity",get disabled(){return r(ee)},get testId(){return r(tt)},get ariaLabel(){return r(re)},get click(){return e.click},get ariaKeyShortCut(){return us.KeyM},role:"button",children:(gt,dt)=>{Ys(gt,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Je=k(Be,2);{var $e=Ee=>{var Qe=ny();let tt;var gt=_(Qe);let dt=g(()=>r(U)?"volumeBar-slider-vertical":""),ht=g(()=>r(U)&&!r(L)),it=g(()=>r(U)?le:Wd.noop),Wt=g(()=>r(U)?De:Wd.noop),Yt=g(()=>Math.round(r(G)*100)),ei=g(()=>`${Math.round(r(G)*100)}%`),Zt=g(()=>r(U)?"volume-slider-vertical":"volume-slider");Aa(gt,{get className(){return r(dt)},get isHidden(){return r(ht)},get isVertical(){return r(U)},withWheelHandler:!0,onWheelUp:ve,onWheelDown:ue,onPointerDown:pe,onHandleMove:Me,onPointerUp:Oe,get onPointerEnter(){return r(it)},get onPointerLeave(){return r(Wt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Yt)},get ariaValueText(){return r(ei)},get filledProgress(){return r(G)},get handleProgress(){return r(G)},get testId(){return r(Zt)}}),h(Qe),D(Ae=>tt=se(Qe,1,"volumeBar svelte-1auih1j",null,tt,Ae),[()=>({"volumeBar-vertical":r(U)})]),$(Ee,Qe)};R(Je,Ee=>{r(F)&&Ee($e)})}h(j),D(Ee=>oe=se(j,1,"volumeBar-container svelte-1auih1j",null,oe,Ee),[()=>({vertical:r(U)})]),It("mouseenter",j,function(...Ee){var Qe;(Qe=r(U)?X:Wd.noop)==null||Qe.apply(this,Ee)}),It("mouseleave",j,function(...Ee){var Qe;(Qe=r(U)?M:Wd.noop)==null||Qe.apply(this,Ee)}),It("wheel",j,Fe),$(t,j),W(),o()}var u0=require("@vkontakte/videoplayer-shared/es2015");var ay=we('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function $m(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=ay();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var ly={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function ym(t,e){q(t,ly);let i=v(e,"isFullscreen",8,!1),o=Ur(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");$m(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Kd(t,e){z(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,u0.noop),n=Te(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Dt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=Qs(u);s.set(f),o()()},get ariaKeyShortCut(){return us.KeyF},role:"button",children:(u,f)=>{ym(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),W()}var dy=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function xm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=dy();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var cy=we('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function wm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=cy();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(4),h(o),$(t,o)}var uy={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
173
178
  svg[data-testid="vk-video-logo-icon--short"] ._en,
174
179
  svg[data-testid="vk-video-logo-icon"] ._en,
175
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function mm(t,e){Q(t,ey);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",s=21,l=g(()=>!o()&&!i()?91:i()?s:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${r(l)+1} 24`);fm(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function Ud(t,e){U(e,!0);let[i,o]=Fe(),n=()=>S(x,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=Mt(),v=Ie(),p=v.ui.currentGridType$,x=v.ui.isMobile,w=v.ui.t,y=v.isCyrillicRelatedInterface$,C=g(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),E=g(()=>(n()||Ys(s(),"l"))&&r(T)),L=()=>{var V,j;e.click(),(V=v.callbacks)!=null&&V.onLogoClicked?(j=v.callbacks)==null||j.onLogoClicked():u()&&window.open(u(),"_blank")},k=g(()=>!a()),I=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Bt(t,{className:"btn-full-opacity",get disabled(){return r(k)},click:L,get testId(){return r(I)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(V){d(V)},children:(V,j)=>{var H=Qe(),F=he(H);{var K=Y=>{mm(Y,{get short(){return r(E)},get isCyrillic(){return l()}})},ee=Y=>{pm(Y,{})};R(F,Y=>{r(T)?Y(K):Y(ee,!1)})}$(V,H)},$$slots:{default:!0}}),z(),o()}var Y1=require("@vkontakte/videoplayer-core/es2015");var vm=require("@vkontakte/videoplayer-core/es2015"),iy=Te('<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>'),oy=Te('<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>'),ny={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
180
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Sm(t,e){q(t,uy);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",s=21,l=g(()=>!o()&&!i()?91:i()?s:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${r(l)+1} 24`);wm(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function qd(t,e){z(e,!0);let[i,o]=He(),n=()=>S(x,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S(w,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),a=v(e,"logoClickable",3,!1),u=v(e,"targetUrl",3,""),f=kt(),m=Te(),p=m.ui.currentGridType$,x=m.ui.isMobile,y=m.ui.t,w=m.isCyrillicRelatedInterface$,T=g(()=>f.logoType==="vk_video"?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),C=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),E=g(()=>(n()||Zs(s(),"l"))&&r(C)),V=()=>{var B,F;e.click(),(B=m.callbacks)!=null&&B.onLogoClicked?(F=m.callbacks)==null||F.onLogoClicked():u()&&window.open(u(),"_blank")},I=g(()=>!a()),L=g(()=>r(C)?"btn-vk-video-logo":"btn-vk-logo");Dt(t,{className:"btn-full-opacity",get disabled(){return r(I)},click:V,get testId(){return r(L)},get ariaLabel(){return r(T)},get ref(){return d()},set ref(B){d(B)},children:(B,F)=>{var H=Ue(),U=me(H);{var Z=G=>{Sm(G,{get short(){return r(E)},get isCyrillic(){return l()}})},re=G=>{xm(G,{})};R(U,G=>{r(C)?G(Z):G(re,!1)})}$(B,H)},$$slots:{default:!0}}),W(),o()}var p0=require("@vkontakte/videoplayer-core/es2015");var Cm=require("@vkontakte/videoplayer-core/es2015"),fy=we('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),my=we('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),vy={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) {
176
181
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
177
182
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
178
183
  animation-name: svelte-8z1bf5-wave3;}
@@ -220,10 +225,9 @@ Try switching the\xA0quality to\xA0Auto.`},x1=Tb;var Cs=new Map;Cs.set(hl.Interf
220
225
  100% {
221
226
  opacity: 1;
222
227
  }
223
- }`};function gm(t,e){U(e,!0),Q(t,ny);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===vm.ChromecastState.CONNECTED),n=g(()=>e.iconState===vm.ChromecastState.CONNECTING);var s=Qe(),l=he(s);{var d=u=>{var f=iy(),v=_(f),p=_(v),x=_(p);Ce(),h(p);var w=A(p);Ce(),h(v);var y=A(v),C=_(y),T=_(C);h(C),Ce(),h(y),h(f),D(()=>{Ue(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ue(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ue(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},a=u=>{var f=oy();let v;var p=_(f),x=A(_(p),5);let w;h(p),h(f),D((y,C)=>{v=ie(f,0,"svelte-8z1bf5",null,v,y),w=ie(x,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(u,f)};R(l,u=>{i()?u(d):u(a,!1)})}$(t,s),z()}var Z1=require("@vkontakte/videoplayer-shared/es2015");function zd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,Z1.noop),l=Ie().ui.t,d=g(()=>e.state===Y1.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Bt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{gm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var ry=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),sy={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 hm(t,e){Q(t,sy);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),s=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=Z(void 0),u=Z(void 0);function f(C){if(!r(u))return 0;let{width:T}=r(u).getBoundingClientRect(),E=T/2;return C<E?E+l():C>e.containerWidth-E?e.containerWidth-E-d():C}let v=g(()=>f(n()));var p=ry(),x=_(p);let w;var y=_(x);xe(y,()=>{var C;return(C=e.children)!=null?C:le}),h(x),nt(x,C=>B(u,C),()=>r(u)),h(p),nt(p,C=>B(a,C),()=>r(a)),D(C=>{at(p,`transform: translate(${r(v)}px, ${s()}px);`),w=ie(x,1,"tooltip svelte-5ygsa2",null,w,C),at(x,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,p)}var Pu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var X1=t=>!!(Math.round(Math.abs(t)/90)%2),J1=t=>Math.abs(t)/90%4===1;var ay=M('<div class="preview svelte-1wqg760"></div>'),ly=M('<div class="time svelte-1wqg760"> </div>'),dy=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),cy={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 _m(t,e){U(e,!0),Q(t,cy);let[i,o]=Fe(),n=()=>S(w,"$rotateAlpha",i),s=()=>S(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),u=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),p=m(e,"isInteractive",3,!1),x=Ie(),w=x.ui.rotateAlpha,y=x.ui.playerSize,C=Z(0),T=Z(0),E=Z(""),L=Z(0),k=Z(0),I=Z(0),V=Z(0),j=g(()=>Pu(f(),v(),u())),H=g(()=>X1(n())),F=g(()=>J1(n())),K=g(de),ee=g(()=>(r(F)?1:-1)*(r(C)/2-r(T)/2)),Y=g(()=>r(ee)*-1);qe(()=>{(te=>{B(C,te.width,!0),B(T,te.height,!0)})(fe())}),qe(()=>{(te=>{B(E,te.imgSrc,!0),B(L,te.imgWidth,!0),B(k,te.imgHeight,!0),B(I,te.imgOffsetX,!0),B(V,te.imgOffsetY,!0)})(_e(f()))});function de(){var me;let te=a()?l.MOBILE:l.DESKTOP,{isVertical:ve}=oe(),He=30;return(me=r(j))!=null&&me.text&&(He+=16),(ve||r(H))&&(He+=18,He+=50),Math.min(Math.max(s().height-He,0),te)}function oe(){let te=e.previewThumbsData.frameWidth,ve=e.previewThumbsData.frameHeight,He=ve>te;return{width:te,height:ve,isHorizontal:!He,isVertical:He}}function fe(){let{height:te,isHorizontal:ve,isVertical:He,width:me}=oe();return ve&&(te=te/me*r(K),me=r(K)),He&&(me=me/te*r(K),te=r(K)),{width:me,height:te}}function _e(te){let ve;e.previewThumbsData.isUV?ve=Math.floor(v()*te/e.previewThumbsData.frequency):ve=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*te)));let He=Math.floor(ve/e.previewThumbsData.countPerImage),me=Math.floor(ve%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ct=ve%e.previewThumbsData.countPerRow,X=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(X=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&X++);let Me=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Me=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let ke=r(C)*Me,ze=r(T)*X,rt=-ct*r(C),mt=-me*r(T);return{imgSrc:e.previewThumbsData.links[He],imgWidth:ke,imgHeight:ze,imgOffsetX:rt,imgOffsetY:mt}}var pe=dy();let Oe;var ne=_(pe);{var Re=te=>{var ve=ay();D(()=>at(ve,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(E)}); background-size: ${r(L)}px ${r(k)}px; background-position: ${r(I)}px ${r(V)}px;
224
- transform: rotate(${n()}deg) ${r(H)?`translate(${r(ee)}px, ${r(Y)}px)`:""};
225
- `)),$(te,ve)};R(ne,te=>{r(E)&&te(Re)})}var re=A(ne,2),O=_(re);{var ue=te=>{var ve=Qe(),He=he(ve);{var me=X=>{var Me=ns();D(ke=>$e(Me,ke),[()=>q("tooltip_episode_unfinished")]),$(X,Me)},ct=X=>{var Me=ns();D(()=>$e(Me,r(j).text||"")),$(X,Me)};R(He,X=>{p()&&r(j).completed===!1?X(me):X(ct,!1)})}$(te,ve)};R(O,te=>{r(j)&&te(ue)})}h(re);var Ve=A(re,2);{var ge=te=>{var ve=ly(),He=_(ve,!0);h(ve),D(()=>$e(He,d())),$(te,ve)};R(Ve,te=>{p()||te(ge)})}h(pe),D(te=>{Oe=ie(pe,1,"timeline-preview svelte-1wqg760",null,Oe,te),at(pe,`width: ${r(H)?r(T):r(C)}px;`)},[()=>({mobile:a()})]),$(t,pe),z(),o()}var uy=M('<span class="time svelte-1jr6obn"> </span>'),py=M("<!> <!>",1),fy={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 bm(t,e){var ce,De,Ke,Ae,Ge;U(e,!0),Q(t,fy);let[i,o]=Fe(),n=()=>S(ee,"$interactiveEpisodes$",i),s=()=>S(I,"$duration$",i),l=()=>S(k,"$position$",i),d=()=>S(oe,"$isInteractiveExpectation$",i),a=()=>S(de,"$isInteractiveTime$",i),u=()=>S(V,"$isLive$",i),f=()=>S(H,"$isMobile",i),v=()=>S(j,"$isActiveLive$",i),p=()=>S(L,"$bufferedProgress$",i),x=()=>S(pe,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=Ie(),E=Mt(),L=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,I=T.state.duration$,V=T.state.isLive$,j=T.state.isActiveLive$,H=T.ui.isMobile,F=E.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,K=T.actions.internal.getPreviewThumbsData(),ee=T.state.interactiveEpisodes$,Y=T.state.isInteractive,de=T.state.isInteractiveTime$,oe=T.state.isInteractiveExpectation$,fe=T.actions.internal.correctSeekTimeToInteractive,_e=(ce=T.callbacks)==null?void 0:ce.onDisabledTimelineClick,pe=T.ui.controls.disabledControls$,Oe=(Ke=(De=T.callbacks)==null?void 0:De.uiInfo)==null?void 0:Ke.onTimelineMouseEnter,ne=(Ge=(Ae=T.callbacks)==null?void 0:Ae.uiInfo)==null?void 0:Ge.onTimelineMouseLeave,Re=T.ui.t,re=E.features.interactiveResponsiveUi,O=g(()=>Y?n():F),ue=g(()=>In(s())),Ve=g(()=>In(l())),ge=g(()=>l()/s()),te=g(()=>d()||a()),ve=Z(!1),He=Z(""),me=Z(0),ct=Z(0),X=Z(0),Me=g(()=>({containerWidth:r(ct),translateXPx:r(me),translateYPx:Y&&K?-36:-16,active:r(ve)&&w()&&!r(te)&&!re,pointer:!E.features.timelinePreview||!K||u()})),ke=Re("aria_timeline"),ze=g(()=>Re("aria_timeline_value",{position:r(Ve),duration:r(ue)}));function rt(Ne){return!fe||!Y?Ne:fe(Ne*s())/s()}function mt(Ne){T.actions.internal.startScrubbing(rt(Ne))}function vt(Ne){a()||T.actions.internal.progressScrubbing(rt(Ne))}function Tt(Ne){T.actions.internal.completeScrubbing(rt(Ne)),B(ve,!1)}function Je(Ne,Ze,Lt){Zt(Ne,Ze,Lt),B(ve,!0)}function zt(Ne,Ze,Lt){Zt(Ne,Ze,Lt),B(ve,!0)}function Yt(){B(ve,!1)}function Zt(Ne,Ze,Lt){B(X,rt(Ne),!0),B(me,Ze,!0),Lt&&B(ct,Lt,!0),B(He,Wt(Ne),!0)}function Wt(Ne){let Ze=In((u()?1-Ne:Ne)*s());return u()?`-${Ze}`:Ze}var se=py(),Ft=he(se);hm(Ft,Ss(()=>r(Me),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Ne,Ze)=>{var Lt=Qe(),Qt=he(Lt);{var ot=li=>{_m(li,{get time(){return r(He)},get isMobile(){return f()},get videoEpisodes(){return r(O)},get previewThumbsData(){return K},get progress(){return r(X)},get duration(){return s()},get isInteractive(){return Y}})},ai=li=>{var ut=uy(),ri=_(ut,!0);h(ut),D(()=>$e(ri,r(He))),$(li,ut)};R(Qt,li=>{E.features.timelinePreview&&K&&!u()?li(ot):li(ai,!1)})}$(Ne,Lt)},$$slots:{default:!0}}));var be=A(Ft,2);let we=g(()=>x().has("TIMELINE"));Pa(be,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return ke},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(ze)},get loadedProgress(){return p()},get filledProgress(){return r(ge)},get handleProgress(){return r(ge)},get videoEpisodes(){return r(O)},onPointerDown:mt,onHandleMove:vt,onPointerMove:zt,onPointerUp:Tt,onPointerEnter:Je,onPointerLeave:Yt,get onMouseEnter(){return Oe},get onMouseLeave(){return ne},get onDisabledClick(){return _e},get isInteractive(){return Y},get disabled(){return r(we)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:Tt,get ref(){return C()},set ref(Ne){C(Ne)}}),$(t,se),z(),o()}var my={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 Wd(t,e){U(e,!0),Q(t,my);let[i,o]=Fe(),n=()=>S(a,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ie(),a=d.ui.isMobile,u=d.ui.t,f=g(()=>In(l())),v=g(()=>In(s())),p=g(()=>s()/l()),x=g(()=>u("aria_timeline_value",{position:r(v),duration:r(f)})),w=g(()=>Math.round(r(p)*100));Pa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(x)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var vy=M("<div><!></div>"),gy=M("<div></div>"),hy={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function Ma(t,e){U(e,!0),Q(t,hy);let[i,o]=Fe(),n=()=>S(C,"$isLive$",i),s=()=>S(L,"$isMobile",i),l=()=>S(k,"$disabled",i),d=()=>S(E,"$adPosition",i),a=()=>S(T,"$adDuration",i),u=m(e,"isAds",3,!1),f=m(e,"isHidden",3,!1),v=m(e,"timelineNotAvailable",3,!1),p=m(e,"needPadding",3,!0),x=m(e,"ref",15,void 0),w=Ie(),y=Mt(),C=w.state.isLive$,T=w.ads.duration,E=w.ads.position,L=w.ui.isMobile,k=ae(!1),I=g(()=>!v()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||u()));var V=Qe(),j=he(V);{var H=K=>{var ee=vy();let Y;var de=_(ee);{var oe=_e=>{Wd(_e,{get position(){return d()},get duration(){return a()}})},fe=_e=>{bm(_e,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(I)},get withEpisodes(){return e.withEpisodes},get ref(){return x()},set ref(pe){x(pe)}})};R(de,_e=>{u()?_e(oe):_e(fe,!1)})}h(ee),ws(ee,()=>yl(f()&&y.features.usePerformanceFix,k,y.disableInvisibleComponentsTimeout)),D(_e=>Y=ie(ee,1,"timeline svelte-41cp6d",null,Y,_e),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),$(K,ee)},F=K=>{var ee=gy();let Y;D(de=>Y=ie(ee,1,"timeline-stub svelte-41cp6d",null,Y,de),[()=>({mobile:s()})]),$(K,ee)};R(j,K=>{r(I)?K(H):K(F,!1)})}$(t,V),z(),o()}var e0=require("@vkontakte/videoplayer-shared/es2015");var _y=Te('<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 $m(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=_y();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(3),h(o),$(t,o)}var by=Te('<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 ym(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=by();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var $y=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),yy=M('<span class="text svelte-1yhs2ga"> </span>'),xy=M('<span class="text count svelte-1yhs2ga"> </span>'),wy=M("<!> <!>",1),Sy={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Kd(t,e){var oe,fe,_e;U(e,!0),Q(t,Sy);let[i,o]=Fe(),n=()=>S(w,"$currentGridType$",i),s=()=>S(y,"$openedByKeyboard$",i),l=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),a=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ie(),p=(fe=(oe=v.callbacks)==null?void 0:oe.onEpisodeChanged)!=null?fe:e0.noop,x=!!((_e=v.callbacks)!=null&&_e.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,L=Z(void 0),k=pe=>{var ne,Re,re;if(!!((ne=v.callbacks)!=null&&ne.onEpisodeClicked)){let O=qs(pe);y.set(O),C.set(!0),(re=(Re=v.callbacks)==null?void 0:Re.onEpisodeClicked)==null||re.call(Re,O)}},I=Z(null),V=g(()=>a()/u());qe(()=>{var Oe;let pe=Pu(r(V),u(),f());pe?((Oe=r(I))==null?void 0:Oe.time)!==pe.time&&(p(pe),B(I,pe,!0)):B(I,null)});let j=g(()=>{var pe;return((pe=r(I))==null?void 0:pe.text)||""}),H=g(()=>Zi(n(),"xl")?"FULL":Zi(n(),"m")&&Q1(n(),"xl")?"COUNT":"SHORT"),F=g(()=>`${E("tooltip_episodes")}: ${r(j)}`),K=(pe,Oe,ne)=>_t(null,null,function*(){yield Co(),(pe==null?void 0:pe.getAttribute("aria-expanded"))==="false"&&Oe&&!ne&&Et(()=>{y.set(!1),pe.focus()})});qe(()=>{K(r(L),s(),l())});var ee=Qe(),Y=he(ee);{var de=pe=>{let Oe=g(()=>d()?"px-0":""),ne=g(()=>!x);Bt(pe,{get className(){var Re;return`w-max btn-full-opacity btn-jc-l ${(Re=r(Oe))!=null?Re:""}`},testId:"btn-episodes",click:k,get disabled(){return r(ne)},get ariaExpanded(){return l()},get ariaLabel(){return r(F)},get ref(){return r(L)},set ref(Re){B(L,Re,!0)},children:(Re,re)=>{var O=Qe(),ue=he(O);{var Ve=te=>{var ve=$y(),He=he(ve),me=_(He,!0);h(He);var ct=A(He,2),X=_(ct);ym(X,{}),h(ct),D(()=>$e(me,r(j))),$(te,ve)},ge=te=>{var ve=wy(),He=he(ve);$m(He,{});var me=A(He,2);{var ct=Me=>{var ke=yy(),ze=_(ke,!0);h(ke),D(()=>$e(ze,r(j))),$(Me,ke)},X=(Me,ke)=>{{var ze=rt=>{var mt=xy(),vt=_(mt,!0);h(mt),D(()=>$e(vt,f().length)),$(rt,mt)};R(Me,rt=>{r(H)==="COUNT"&&rt(ze)},ke)}};R(me,Me=>{r(H)==="FULL"?Me(ct):Me(X,!1)})}$(te,ve)};R(ue,te=>{d()?te(Ve):te(ge,!1)})}$(Re,O)},$$slots:{default:!0}})};R(Y,pe=>{r(I)&&pe(de)})}$(t,ee),z(),o()}var Nm=require("@vkontakte/videoplayer-shared/es2015");var ui=require("@vkontakte/videoplayer-core/es2015"),ft=require("@vkontakte/videoplayer-shared/es2015"),ds=require("@vkontakte/videoplayer-statistics/es2015");var je=require("@vkontakte/videoplayer-shared/es2015"),Xi=require("@vkontakte/videoplayer-shared/es2015");var t0=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var Cy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Mu=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 Xi.Subject,loadStarted$:new Xi.Subject,loadEnded$:new Xi.Subject,loadError$:new Xi.Subject,ready$:new Xi.Subject,slotRequested$:new Xi.Subject,started$:new Xi.Subject,timeRemained$:new Xi.Subject,paused$:new Xi.Subject,resumed$:new Xi.Subject,ended$:new Xi.Subject,empty$:new Xi.Subject,skipped$:new Xi.Subject,clicked$:new Xi.Subject,closed$:new Xi.Subject,error$:new Xi.Subject};this.loadAdman=e=>(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,je.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,je.now)()]}),o())};(0,Xi.addScript)(Cy,e,this.loadTimeout).then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,je.now)()]}),window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,je.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,je.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,je.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,je.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,je.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,je.now)()]}),!d&&(window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,je.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,je.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,je.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"})),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(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?ye(this.adsState.playbackState):void 0)!=="inactive"&&(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;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,je.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;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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")=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,je.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,je.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,this.usePuid=i.usePuid,this.debug=i.debug}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){return _t(this,null,function*(){var k,I;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,je.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:s,adsContainer:l,adsVideoElement:d,slotId:a,params:u={},paramsOverride:f={},duration:v,externalApi:p}=e;this.externalApi=p;let x,w=this.playerState&&ye(this.playerState.vsid);w&&(this.isVsidOriginal?x=w:x=parseInt(w,36));let{isEmbed:y,immediateOrigin:C}=(0,je.detectEmbed)(),T=(k=y?C:window.location.href)!=null?k:window.location.href,E=W(W(Dt(W(Dt(W({},u),{dl:encodeURIComponent(T),autoplay:s?1:0,player_width:i,player_height:o}),x?{request_id:x}:{}),{duration:v}),this.usePuid?{puid10:t0(i,o),puid11:n?0:1}:{}),f);E=Object.fromEntries(Object.entries(E).filter(([V,j])=>(0,je.isNonNullable)(j)));let L={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:E,browser:{mobile:!1}};try{let V=new window.AdmanHTML;if(V.setDebug(this.debug),V.onReady(this.onAdsReady),V.onStarted(this.onAdStarted),V.onPlayed(this.onAdPlayed),V.onPaused(this.onAdPaused),V.adMidrollPoint(this.onAdMidrollPoint),V.onClosed(this.onAdClosed),V.onSkipped(this.onAdSkipped),V.onClicked(this.onAdClicked),V.onTimeRemained(this.onAdTimeRemained),V.onCompleted(this.onAdCompleted),V.onError(this.onAdError),(I=this.externalApi)!=null&&I.videoGetAds){let j=yield this.safeExternalCall(this.externalApi.videoGetAds,E);j&&(delete L.slot,delete L.params,Object.assign(L,{json:j}))}console.warn(`adman config
226
- `,L),V.init(L),this.adman=V,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(L)}`})}catch(V){je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(V)],numbers:[(0,je.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,n,s;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,je.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.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(n=this.actions).switchFromAdsToVideo)==null||s.call(n,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adsState){this.log({message:"toggle play"});let i=ye(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,je.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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,s,l,d,a,u,f,v,p;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,je.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,Xi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return _t(this,null,function*(){var o;try{return yield e(...i)}catch(n){return this.onAdError((o=n==null?void 0:n.message)!=null?o:"External call failed"),null}})}};var i0=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 xm=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 s of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new Lu,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new wm,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Lu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return s+l+d+a}},wm=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 u=["<",">"].reduce((f,v)=>{let p=l.indexOf(v,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new Lu;for(let l of n)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},o0=xm;var Ru=require("@vkontakte/videoplayer-shared/es2015"),La,Ai,Sm=0,Cm=!1,n0="",r0=(t,e=0,i=0)=>t<e&&t<i,Vu=(t,e=0,i=0)=>t>=e&&t<=i,Ty=(t,e=0,i=0)=>t>e&&t>i,s0=(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:u,endTime:f})=>Vu(t,u,f));let s=t>=Sm,l=t<Sm;if(Sm=t,l&&(Cm=!1),(0,Ru.isNonNullable)(La)&&Vu(t,La.startTime,La.endTime)&&n0===e.value)return La;if(!(0,Ru.isNonNullable)(Ai)&&(n!=null&&n.length)&&!Cm){Ai=n.find(({startTime:u,endTime:f})=>Vu(t,u,f)||s&&r0(t,u,f)),La=void 0,!(0,Ru.isNonNullable)(Ai)&&n[n.length-1].endTime<t&&(Cm=!0);return}else{if(Vu(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime))return La=Ai,Ai=void 0,n0=e.value,La;(s&&Ty(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime)||l&&r0(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime))&&(Ai=void 0)}};var Nu={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"},Ey={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"},qd=t=>{var e,i;return(i=(e=Nu[t])!=null?e:Nu[Ey[t]])!=null?i:void 0};var a0=require("@vkontakte/videoplayer-shared/es2015"),tD=require("@vkontakte/videoplayer-statistics/es2015"),Ou=class{constructor(e,i,o,n=new a0.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.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,Ts=(t,e)=>{var n,s;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.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))}},kl=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 Bu="off";var l0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:x,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:L,stopPlayer:k,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,additionalButtons:j,additionalSettingsMenuItems:H,additionalContextMenuItems:F,playPrevVideo:K,playNextVideo:ee,looped:Y=!1,statistics:de,saveRate:oe,internalsExposure:fe,playerView:_e,playerId:pe})=>{var Yv,Zv,Xv;let Oe=Dt(W({},x),{configName:[...(Yv=x.configName)!=null?Yv:[],"ui"],isAudioDisabled:l,live:Dt(W({},(Zv=x.live)!=null?Zv:{}),{isLiveCatchUpMode:!!n})}),ne=p,Re=ft.TracerFactory.createRootTracer(ne.features.tracer),re=Re.createComponentTracer("Store"),O=w||new ui.Player(Oe,Re,{playerId:pe});fe==null||fe.expose({corePlayer:O});let ue=new ft.Logger,Ve=new Mu(ue,{loadTimeout:ne.ads.loadTimeout,initTimeout:ne.ads.initTimeout,runtimeTimeout:ne.ads.runtimeTimeout,useAdmanFromNPM:ne.ads.useAdmanFromNPM,volumeMultiplier:ne.ads.volumeMultiplier,isVsidOriginal:ne.ads.isVsidOriginal,usePuid:ne.ads.usePuid,debug:ne.ads.debug}),ge=ya.getInstance(),te=u==null?void 0:u.pictureInPictureApi,ve=u==null?void 0:u.annotationsApi,He=u==null?void 0:u.slotsApi,me=ue.createComponentLog("Store"),ct,X,Me={},ke=new du,ze=new ft.Subscription,rt="",mt=ae(!1),vt=de&&de.oneStat?oi(de.oneStat.vsid$):Sr(void 0),Tt=ae(zs()),Je=ae(!1),zt=()=>T1(document,ui.clientChecker.device.isIOS),Yt=(Xv=te==null?void 0:te.info.isActive$)!=null?Xv:new ft.ValueSubject(!1),Zt=ae(0),Wt=ae(!1),se=ae(!1),Ft=ae([]),be=(0,ft.merge)(O.events.fatalError$,O.events.managedError$).subscribe(c=>Ft.update(b=>[...b,c])),we=Sr(!1,c=>{let b=O.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),ce=c=>_t(null,null,function*(){var J;let b=Object.values(ft.InterfaceLanguage).includes(c);if(ne.downloadVKLanguages&&(b&&ne.updateBuiltinLanguages||!kf(c))){let Ee;try{Ee=yield(0,ft.loadVKLangPack)(c,Fh,Uh)}catch(it){(J=de==null?void 0:de.oneStat)==null||J.logError({errorType:"VKLangPack",fatal:!1}),ge==null||ge.report(it,{errorType:"VKLangPack",fatal:!1})}Ee&&(If({language:c,pack:Ee,fallback:ne.defaultLanguage}),De.set(c))}kf(c)&&De.set(c)}),De=ae(t),Ke=ae(e);ce(t);let Ae=(c,b)=>{let P=ye(De);return Af(P,c,b,ne.defaultLanguage)},Ge=ae("thumb");Ge.subscribe(c=>{c==="ads"&&O.info.playbackState$.getValue()&&Lt()});let Ne=(()=>{let c=Ci([we,Ge],([b,P])=>b?"crashed":P);return Dt(W({},c),{is:b=>ye(c)===b})})(),Ze=ae(),Lt=()=>{Ze.set({muted:O.info.muted$.getValue()})},Qt=(()=>{let c=ae(new Set(y));return Dt(W({},c),{add:b=>{c.update(P=>new Set([...P].concat(b)))},remove:b=>{c.update(P=>{let J=[...P];return new Set(Array.isArray(b)?J.filter(Ee=>!b.includes(Ee)):J.filter(Ee=>Ee!==b))})},includes:b=>{let P=ye(c);return Array.isArray(b)?b.every(J=>P.has(J)):P.has(b)}})})(),ot=ae({width:0,height:0}),ai=null,li=O.info.isBuffering$,ut=Sr(li.getValue(),c=>{let b=li.subscribe(P=>{P&&ai===null?ai=window.setTimeout(()=>{c(li.getValue()),ai=null},ne.loaderDelay):c(P)});return()=>{b.unsubscribe(),ai&&clearTimeout(ai)}});re.log("create store"),me({message:"create store"});let ri=c=>{let b=c.container,P=()=>{Xt=new MutationObserver(Ee=>{let{removedNodes:it}=Ee[0];it.length&&b.append(O.experimental.element$.getValue())}),Xt.observe(b,{childList:!0})},J=O.experimental.element$.getValue();if(J)b.append(J),P();else{let Ee=O.experimental.element$.pipe((0,ft.filter)(it=>!!it),(0,ft.once)()).subscribe(it=>{b.append(it),P()});ze.add(Ee)}},eo=c=>{me({message:`init video, config: ${JSON.stringify(c)}`}),C?ri(c):(ft.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ft.now)()]}),O.initVideo(c)),re.log("init video",{isInteractive:C}),c.subtitles&&O.setExternalTextTracks(c.subtitles),ct=c,rt=c.subtitlesForcedLanguage||""},Gi=new ft.Subject,ko=c=>Gi.next(c),pi=new ft.Subject,gi=new ft.Subject,Kt=new ft.Subject,Xt=null,so={actionRewind$:pi,actionSeek$:gi,inPiP$:Yt,inFullscreen$:new ft.Observable(c=>Tt.subscribe(b=>c.next(b))),actionSetSubtitle$:Kt,nextMovie$:Gi},Ao={actionSeek$:gi,playerSize$:new ft.Observable(c=>ot.subscribe(b=>c.next(b))),inPiP$:Yt,inFullscreen$:new ft.Observable(c=>Tt.subscribe(b=>c.next(b))),isLoaderVisible$:new ft.Observable(c=>ut.subscribe(b=>c.next(b)))};if(de){let{oneStat:c,thinOneStat:b,mediascopePixel:P,statSubscription:J}=de;c&&(C||J.add(c.attachTo(O)),J.add(c.attachToUi(so)),J.add(c.attachToAds(Ve.events)),c.authorize(s).catch(Ee=>{me({message:`onestat auth error ${String(Ee)}`})}),P&&P.attachTo(O)),b&&(J.add(b.attachTo(O,Ve.events)),J.add(b.attachToUi(Ao)),J.add(b.attachToAds(Ve.events)),b.updateContext({isMobile:ye(mt)}),b.authorize(s))}if(ge){let c=new ft.Subscription,b=(P,J)=>c.add(P.subscribe(J));if(b(O.events.managedError$,P=>{ge.logIError(P)}),b(O.events.fatalError$,P=>{ge.logIError(P,!0)}),de){let{oneStat:P}=de;P&&b(P.experimental.error$,J=>{ge.logIError(J)})}ge.sentrySubscription.add(c)}let Go=()=>{if(ui.clientChecker.device.isIOS&&X)try{E1(X)}catch(c){me({message:`exitIosSafariFullscreen failed: ${c}`})}};ze.add(O.experimental.element$.subscribe(c=>{c&&(X=c,c.classList.add("player-media"),wa(te)&&te.updateVideoElement(),C&&c.setAttribute("pip","false"),_e==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(O.events.ended$.subscribe(()=>{var c;Go(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(O.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(O.events.started$.subscribe(()=>_t(null,null,function*(){var b,P;wa(te)&&(yield te==null?void 0:te.revealPictureInPicture());let c=O.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(P=Me.onStarted)==null||P.call(Me,c)}))).add(O.events.willSeek$.subscribe(({from:c,to:b})=>{var P;(P=a==null?void 0:a.onSeek)==null||P.call(a,c,b)})).add(O.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(O.info.position$.subscribe(c=>{var P;let b=O.info.duration$.getValue();isFinite(b)&&b>0&&((P=a==null?void 0:a.onTimeupdate)==null||P.call(a,b,c),Ve.setPosition(c,b))})).add(O.events.fatalError$.subscribe(c=>{var b;(b=a==null?void 0:a.onCrashed)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(O.events.fetcherRecoverableError$.subscribe(c=>{var b;(b=a==null?void 0:a.onRecoverableError)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(O.events.loadedMetadata$.subscribe(()=>{Wt.set(!0)})).add(O.info.is3DVideo$.subscribe(c=>{se.set(c)})).add(O.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&Qt.add(bd),Qt.add("PLAY_BUTTON")):Qt.remove("PLAY_BUTTON"))})).add(O.info.liveTime$.subscribe(c=>{var b;(b=a==null?void 0:a.onLiveTime)==null||b.call(a,c)})).add(O.info.isStalled$.subscribe(c=>{var b;(b=a==null?void 0:a.onStalledChanged)==null||b.call(a,c)})).add(O.info.isLiveEnded$.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onLiveEnded)==null?void 0:b.call(a))})).add(Ve.events.loadStarted$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:b.call(c)})).add(Ve.events.loadEnded$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:b.call(c)})).add(Ve.events.loadError$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:b.call(c)})).add(Ve.events.init$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:b.call(c)})).add(Ve.events.ready$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:b.call(c)})).add(Ve.events.started$.subscribe(c=>{var b,P;return(P=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onStarted)==null?void 0:P.call(b,c)})).add(Ve.events.timeRemained$.subscribe(c=>{var b,P;return(P=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onTimeRemained)==null?void 0:P.call(b,c)})).add(Ve.events.ended$.subscribe(c=>{var b,P;return(P=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onCompleted)==null?void 0:P.call(b,c)})).add(Ve.events.empty$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:b.call(c)})).add(Ve.events.clicked$.subscribe(c=>{var b,P;return(P=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClicked)==null?void 0:P.call(b,c)})).add(Ve.events.closed$.subscribe(c=>{var b,P;return(P=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClosed)==null?void 0:P.call(b,c)})).add(Ve.events.error$.subscribe(c=>{var b,P;return(P=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onError)==null?void 0:P.call(b,c)})).add(Ve.events.paused$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:b.call(c)})).add(Ve.events.resumed$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:b.call(c)}));let wt=new ft.Subscription,Xe=()=>{var it,It,Nt;let{debugLog:c}=ne,b,P="#9df7b7",J="#efd169";if(c&&c!==!0){let{colors:Ht}=c;b=c.tag,P=(it=Ht==null?void 0:Ht[0])!=null?it:P,J=(Nt=(It=Ht==null?void 0:Ht[1])!=null?It:Ht==null?void 0:Ht[0])!=null?Nt:J}let Ee=b?`: ${b}`:"";wt.add(O.events.log$.subscribe(Ht=>{console.debug(`%c sdk${Ee} `,`background:${P};`,`sdk component: ${Ht.component}`,Ht.message)})).add(ue.log$.subscribe(Ht=>{console.debug(`%c ui${Ee} `,`background:${J};`,`ui component: ${Ht.component}.`,Ht.message)}))},Pi=()=>{wt.unsubscribe()},Po=(c,b)=>{re.log("start camera manual rotation",{mx:c,my:b}),O.startCameraManualRotation(c,b)},Mo=(c=!1)=>{re.log("stop camera manual rotation",{immediate:c}),O.stopCameraManualRotation(c)},un=(c,b,P)=>{re.log("move camera focus px",{xpx:c,ypx:b,dt:P}),O.moveCameraFocusPX(c,b,P)},N=()=>{O.holdCamera()},et=()=>{O.releaseCamera()},bt=Sr(O.info.position$.getValue(),c=>{let b,P,J=()=>{let Ee=O.info.playbackState$.getValue(),it=O.info.isLive$.getValue(),It=O.info.duration$.getValue(),Nt=O.info.position$.getValue();if(Ee&&[ui.PlaybackState.PLAYING,ui.PlaybackState.PAUSED].includes(Ee)){let Ht=it?Nt-It:O.getExactTime();Ht!==P&&c(Ht),P=Ht}b=requestAnimationFrame(J)};return J(),()=>cancelAnimationFrame(b)}),ti=oi(O.info.playbackState$),Ut=oi(O.info.currentBuffer$),Jt=oi(O.info.isEnded$),hi=oi(O.info.isLive$),yi=ne.features.playbackRate?oi(O.info.canChangePlaybackSpeed$):Sr(!1),gt=oi(O.info.liveBufferTime$),Bi=oi(O.info.volume$),pn=oi(O.info.muted$),fn=cu(O.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===ui.PredefinedQualityLimits.TRAFFIC_SAVING)),O.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.TRAFFIC_SAVING),jo=cu(O.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===ui.PredefinedQualityLimits.HIGH_QUALITY)),O.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.HIGH_QUALITY),fi=oi(O.info.autoQualityLimitingAvailable$),Lo=oi(O.info.availableQualities$),Tr=oi(O.info.availableQualitiesFps$),ao=oi(O.info.chromecastState$),lo=oi(O.info.chromecastDeviceName$),mn=oi(O.info.currentFormat$),vn=oi(O.info.throughputEstimation$),Yo=oi(O.info.videoBitrate$),ur=oi(O.info.intrinsicVideoSize$),An=oi(O.info.duration$),Er=oi(O.info.isAudioAvailable$),cs=()=>{ai&&clearTimeout(ai),ai=null},Pn=Ci([An,hi],([c,b])=>b?-c:c),Ir=Ci([ti],([c])=>c===ui.PlaybackState.PLAYING),Qn=oi(O.info.atLiveEdge$),Gn=oi(O.info.atLiveDurationEdge$),Vo=oi(O.info.position$),Di=Ci([Vo,An],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),Mn=Ci([ao],([c])=>c===ui.ChromecastState.CONNECTED),Ln=oi(O.info.availableVideoStreams$),Vn=ne.features.audioLanguages?oi(O.info.availableAudioStreams$):Sr([]),pr=oi(O.info.currentVideoStream$),fr=oi(O.info.currentAudioStream$),mr=c=>{c.language&&Sf(c.language),O.setVideoStream(c)},vr=(c,b)=>{O.setAudioStream(c),_i(b)&&(c.language&&Sf(c.language),ne.features.userVideoPrefs&&i&&Ef(ne.userSalt,String(i),{audioTrackId:c.id}))},kr=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(J=>"isDefault"in J&&J.isDefault)),ne.features.userVideoPrefs&&i){let J=vu(ne.userSalt,String(i));if(J!=null&&J.audioTrackId){let Ee=c.find(it=>it.id===J.audioTrackId);b=Ee!=null?Ee:b}}let P=f1();return P&&(b!=null||(b=c.find(({language:J})=>P===J))),b!=null||(b=c.at(0)),b},us=c=>{re.log("change audio stream",{id:c});let b=O.info.availableAudioStreams$.getValue().find(P=>P.id===c);b&&vr(b,!0)},jn=!1;ze.add(O.info.availableAudioStreams$.subscribe(c=>{if(!jn&&c.length){let b=kr(c);b&&(O.setAudioStream(b),jn=!0)}})),Vn.subscribe(c=>{var b;(b=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||b.call(a,c.map(({label:P="",id:J="",language:Ee=""})=>({label:P,language:Ee,id:J})))}),fr.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onAudioStreamChanged)==null?void 0:b.call(a,c.id))});let go=!1;ze.add(O.info.availableVideoStreams$.subscribe(c=>{if(!go&&c.length){let b=kr(c);b&&(O.setVideoStream(b),go=!0)}}));let Rn=ae(void 0),gn=oi(O.info.isAutoQualityEnabled$,c=>c&&Rn.set(void 0)),ht=oi(O.info.currentQuality$,()=>Rn.set(void 0)),ii=Ci([Rn,ht],([c,b])=>c!=null?c:b),Zo=Ci(mn,c=>c!==ui.VideoFormat.MPEG),Yn=Ci([Lo,Tr,gn,ii,Zo],([c,b,P,J,Ee])=>{let it=[];Ee&&it.push({value:"auto",displayValue:Ae("auto_quality_option"),selected:P});let It=c.filter(Nt=>!(0,ft.isInvariantQuality)(Nt));for(let Nt of It){let Ht=b[Nt];it.push({value:Nt,displayValue:`${Nt}${Ht?i0(Ht):""}`,selected:P?!1:Nt===J})}return it}),hn=oi(O.info.currentPlaybackRate$),ho=Ci([hn,Qn,Gn],([c,b,P])=>{let J=P||C?1:ne.controls.playbackRateMin,Ee=b?1:ne.controls.playbackRateMax,it=ne.controls.playbackRateStep,It=[];for(let Nt=J;Nt<=Ee;Nt+=it)It.push({value:Nt,displayValue:Nt===1?Ae("playback_rate_1"):Ae("playback_rate",{multiplier:Nt.toString(10)}),selected:c===Nt});return It}),Mi={displayValue:Ae("subtitles_off"),value:Bu,language:""},Ti=ae(W({},Mi)),Xo=ne.features.subtitles?oi(O.info.availableTextTracks$):Sr([]),Zn=o1(),jr=Ci([Xo,Ti],([c,b],P)=>{var it;let J=[],Ee=c.find(({id:It})=>It===b.value);if(Ee!=null&&Ee.url){let[,It]=(it=Zn.find(Ee.url))!=null?it:[];if(It){P(It);return}ke.download(Ee.url).then(Nt=>{if(!Nt||ke.isDestroyed())return;let Ht=new o0,Ls=Ee.language;if(Ls){let t_=!!Ee.isAuto,i_=Ht.parse(Nt,Ls);J.push({lang:Ls,subtitles:i_,isAuto:t_,id:Ee.id})}Zn.add(Ee.url,J),ye(Ti).value===b.value&&P(J)}).catch(Nt=>{var Ht;(Ht=de==null?void 0:de.oneStat)==null||Ht.logError({errorType:"Subtitles download",fatal:!1}),ge==null||ge.report(Nt,{errorType:"Subtitles download",fatal:!1})})}P(J)}),Yr=Ci([hn,Ir,Ti],([c,b,P],J)=>{let It;if(O.info.isLive$.getValue()&&b&&P.value!==Mi.value){let Ht=()=>{let Ls=1e3/(3*c);It=setTimeout(Ht,Ls),J(Date.now())};return Ht(),()=>clearTimeout(It)}}),gr=Ci([Xo,Ti],([c,b])=>{if(!c.length)return[];let P=[];for(let{language:J,isAuto:Ee,id:it}of c){let It=J&&qd(J);J&&It&&P.push({displayValue:Ee?Ae("subtitles_auto",{language:It}):It,value:it,selected:(b==null?void 0:b.value)===it,isAuto:Ee,language:J})}return P.length?(P.unshift(Dt(W({},Mi),{selected:(b==null?void 0:b.value)===Mi.value})),P):[]}),_n={available:[],prev:[]},ps=()=>{var b,P;let c=O.experimental.getCurrentTime$.getValue();return(P=(b=c==null?void 0:c())!=null?b:X==null?void 0:X.currentTime)!=null?P:0},Nn=Ci([bt,Ti,jr,Yr],([c,b,P,J])=>{var it;let Ee=O.info.isLive$.getValue();if(Ee&&_n.prev!==P){let It=P.find(({id:Ht})=>Ht===b.value),Nt=_n.prev.find(({id:Ht})=>Ht===b.value);if(It){let Ht=Dt(W({},It),{subtitles:[...(it=Nt==null?void 0:Nt.subtitles)!=null?it:[],...It.subtitles]});_n.available=[Ht],_n.prev=P}}if(b&&b.value!==Mi.value){let It=Ee?ps():c,Nt=Ee?_n.available:P;return s0(It,b,Nt,Ee)}}),Ro=Ci([Nn],([c])=>c!=null&&c.texts?c.texts:[]);ze.add(Ti.subscribe(c=>{var b,P;if(c.value===Mi.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let J=Object.entries(Nu).find(([Ee,it])=>it===c.displayValue);(P=a==null?void 0:a.onSubtitleOn)==null||P.call(a,J?J[0]:"",c.value)}}));let Xn=ae(!0),bn=Ci([Ut,Pn,Vo,gt],([c,b,P,J])=>{var Nt;let Ee=(Nt=c==null?void 0:c.end)!=null?Nt:0;if(!J)return Ee/b;let It=-P+J-b;return(Ee-It)/b}),Gt=oi(O.info.availableSources$),Jn=Ci([Gt],([c])=>Object.keys((c==null?void 0:c[ui.VideoFormat.MPEG])||{}).length>0),Ar=()=>{var P,J,Ee;let c=Object.keys(((J=(P=O.info.availableSources$)==null?void 0:P.getValue())==null?void 0:J[ui.VideoFormat.MPEG])||{}),b=(0,ft.getHighestQuality)(c)||ft.VideoQuality.Q_144P;return(Ee=ct.sources[ui.VideoFormat.MPEG])==null?void 0:Ee[b]},Zr=()=>{var b;let c=Ar();if(c)re.log("download video",{url:c}),e1(c,((b=ct==null?void 0:ct.meta)==null?void 0:b.title)||"video");else{let P="There is no URL for download video";re.log("download video",{message:P}),me({message:P})}},lt=()=>{me({message:"toggle muted"});let c=O.info.muted$.getValue();O.info.volume$.getValue()===0&&!c?Jo(Bo(),!1):vi(!c,!1)},mi=()=>{var c;if(Vt.ui.settingsMenu.visible$.set(!1),!ye(Vt.ui.settingsSubMenu.visible$)){let b=ye(Vt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let J=kl(b),Ee={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:J,position:Ee,name:"settings"})}}re.log("close settings menu")},co=(c,b=()=>Promise.resolve())=>_t(null,null,function*(){var Ee;Vt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Vt.ui.settingsMenu.visible$.set(!0),yield b();let P=ye(Vt.ui.settingsMenu.ref$),J=Qa();if((Ee=a==null?void 0:a.uiInfo)!=null&&Ee.onSettingsMenu&&P&&J){let It=kl(P),Nt=Ts(P,J);a.uiInfo.onSettingsMenu({visible:!0,size:It,position:Nt,name:"settings"})}re.log("open settings menu",{wasOpenedByKeyboard:c})}),No=(c,b=!1)=>{var it;Vt.ui.settingsSubMenu.visible$.set(!1);let P=ye(Vt.ui.settingsMenu.ref$),J=Qa(),Ee=ye(Vt.ui.settingsMenu.visible$);if((it=a==null?void 0:a.uiInfo)!=null&&it.onSettingsMenu&&P&&J)if(Ee&&!b){let Nt=kl(P),Ht=Ts(P,J);a.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:Ht,name:"settings"})}else{let Nt=kl(c),Ht={top:0,left:0,bottom:0,right:0},Ls=ye(Vt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Nt,position:Ht,name:Ls})}re.log("close settings sub menu")},Oo=(c,b)=>{var J;Vt.ui.settingsSubMenu.visible$.set(!0),Vt.ui.settingsSubMenu.ref$.set(b),Vt.ui.settingsSubMenu.name$.set(c);let P=Qa();if((J=a==null?void 0:a.uiInfo)!=null&&J.onSettingsMenu&&b&&P){let it=kl(b),It=Ts(b,P);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:it,position:It})}re.log("open settings sub menu",{name:c})},Bo=()=>{var b;let c=Math.max(ne.volumeMinRestore,(b=uu())!=null?b:0);return c===0?ne.volumeDefault:c},_i=c=>{let b=ne.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},Jo=(c,b)=>{let P=c===0?Bo():c,J=O.info.muted$.getValue();me({message:`set volume, volume: ${c}, preferredVolume: ${P}`});let Ee=!l||Ne.is("ads");J&&c>0&&Ee&&(J=!1,_i(b)&&xf(!1)),O.setVolume(c,J),Ve.setVolume(c),_i(b)&&hf(P)},vi=(c,b)=>{let P=O.info.volume$.getValue();me({message:`set muted, currentVolume: ${P}, mute: ${c}`});let J=Ne.is("ads");if(O.setMuted(c,J),Ve.setVolume(c?0:P),_i(b)&&(!J||!c)&&xf(c),!c&&P===0){let Ee=Bo();O.setVolume(Ee),_i(b)&&hf(Ee),Ve.setVolume(Ee)}},$n=ae(!1),On=c=>{var b,P;re.log("set looped",{isLooped:c}),$n.set(c),O.setLooped(c),(P=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||P.call(b,c)};On(Y);let fs=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},Xr=(c,b=!1)=>{var P;me({message:`set autoplayNextEnabled, value: ${c}`}),re.log("set autoplay next enabled",{autoplayNextEnabled:c}),Vt.ui.autoplayNextEnabled$.set(c),g1(c),b&&((P=a==null?void 0:a.onSetAutoplayNextEnabled)==null||P.call(a,c))},ms=c=>{me({message:`set timerNextVideoRunning, value: ${c}`}),re.log("set timer next video running",{timerNextVideoRunning:c}),Vt.ui.timerNextVideoRunning$.set(c)},hr=(c=!0)=>{var J;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(J=a==null?void 0:a.onPrevVideoClick)==null?void 0:J.call(a)}catch(Ee){me({message:"onPrevVideoClick callback failed to execute"})}if(!b)return;c&&Bn("prev")||K()},_o=(c=!0)=>{var J;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(J=a==null?void 0:a.onNextVideoClick)==null?void 0:J.call(a)}catch(Ee){me({message:"onNextVideoClick callback failed to execute"})}if(!b)return;c&&Bn("next")||ee()},Bn=c=>{let{isMobile:b,features:{playbackStatusNextVideoShow:P,playbackStatusShow:J}}=ne;return P&&J&&!b?(Vt.ui.aboutToGoNextVideo.set(c),Vt.ui.userActionsDisabled.set(!0),!0):!1},Pr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Mr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},st=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Pt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},xi=()=>{O.prepare()},uo=()=>{(0,ft.assertNonNullable)(Vt);let c=ye(Vt.ui.controls.disabledControls$),b=ye(Vt.playerPhase),P={playerPhase:b,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(me({message:"toggle play"}),b==="ads"){P.action="play",re.log("toggle adman play",P),Ve.togglePlay();return}let J=()=>{var it;me({message:"toggle play, call player.play"}),P.action="play",O.play(),(it=a==null?void 0:a.onPlay)==null||it.call(a)},Ee=()=>{var it;me({message:"toggle play, call player.pause"}),P.action="pause",O.pause(),(it=a==null?void 0:a.onPause)==null||it.call(a)};if(O.info.isEnded$.getValue()){if(me({message:"toggle play, video ended, seek to 0"}),pi.next(),gi.next(ds.SeekAction.REWIND),C){L==null||L();return}O.seekTime(0),J()}else O.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING?J():Ee();re.log("toggle play",P)},po=(c,{changeReason:b="default",appliesTo:P="to-video"}={},J)=>{me({message:`set quality, quality: ${c}`}),re.log("set quality",{quality:c}),O.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ee}=ne.features;pu(),c!=="auto"?(Ee?(fu({type:"exact_quality",quality:c,videoId:i},P),O.setPredefinedQualityLimits(ui.PredefinedQualityLimits.UNKNOWN)):_f(i,c),Rn.set(c),O.setQuality(c)):Ee&&b==="default"&&(Dn("auto_quality",P,J),ye(fn)&&to(!1,void 0,J),ye(jo)&&io(!1,void 0,J))},to=(c,b="as-default",P)=>{me({message:`set trafficSavingEnabled, value: ${c}`}),re.log("set traffic saving enabled",{trafficSavingEnabled:c});let J=c?ui.PredefinedQualityLimits.TRAFFIC_SAVING:ui.PredefinedQualityLimits.UNKNOWN;ne.features.qualityDetailsSubMenuEnabled?(fo(J,b,P),yd(!1)):(O.setPredefinedQualityLimits(J),_i(P)&&yd(c))},io=(c,b="as-default",P)=>{me({message:`set highQualityEnabled, value: ${c}`}),re.log("set high quality enabled",{highQualityEnabled:c}),fo(c?ui.PredefinedQualityLimits.HIGH_QUALITY:ui.PredefinedQualityLimits.UNKNOWN,b,P)},fo=(c,b,P)=>{c!==ui.PredefinedQualityLimits.UNKNOWN&&(ye(fi)&&!ye(gn)&&po("auto",{appliesTo:b,changeReason:"limit-changed"},P),Dn(c,b,P)),O.setPredefinedQualityLimits(c)},Dn=(c,b,P)=>{_i(P)&&(fu({type:c,videoId:i},b),b==="as-default"&&fu({type:c,videoId:i},"to-video"))},bo=c=>{re.log("set playback rate",{playbackRate:c}),O.setPlaybackRate(c),ne.features.saveRate&&oe&&!O.info.isLive$.getValue()&&m1(c)},$o=()=>{let c=ye(ho),b=c.findIndex(({selected:J})=>J);if(b===c.length-1)return;let P=c[b+1];bo(P.value)},Do=()=>{let c=ye(ho),b=c.findIndex(({selected:J})=>J);if(b===0)return;let P=c[b-1];bo(P.value)},er=(c=Dt(W({},Mi),{selected:!1}),b)=>{re.log("set subtitles",W({},c)),c.value!==Mi.value&&Kt.next(c.isAuto?c.value+"_auto":c.value),Ti.set(c),_i(b)&&(Tf(c.value===Mi.value?void 0:c.language),ne.features.userVideoPrefs&&i&&Ef(ne.userSalt,String(i),{subtitleTrackId:c.value===Mi.value?void 0:c.value}))},en=c=>{re.log("toggle subtitles");let b=ye(Ti);(b==null?void 0:b.value)===Mi.value?_r(c):Vr(c)},Lr=(c,b)=>{re.log("change subtitle",{enabled:c}),c?_r(!0,b):Vr(!0)},_r=(c,b)=>{re.log("subtitle on");let P=ye(gr),J=ye(De),Ee=rt!=null?rt:J,it;b&&(it=P.find(It=>It.value===b)),it!=null||(it=P.filter(It=>It.value!==Mi.value).find(It=>It.language===Ee)),er(it!=null?it:P[1],c)},Vr=c=>{re.log("subtitle off"),er(void 0,c)};ze.add(O.info.availableTextTracks$.subscribe(c=>{var P;function b(){let J=[];for(let{language:Ee,isAuto:it,id:It}of c){let Nt=Ee&&qd(Ee);Ee&&Nt&&J.push({id:It,language:Ee,title:it?Ae("subtitles_auto",{language:Nt}):Nt})}return J}(P=a==null?void 0:a.onAvailableSubtitlesChanged)==null||P.call(a,b())}));let yo=ae(!0),Rr=c=>{yo.set(c)},We=(c,b,P=!0)=>{var J;if(me({message:`seek to time, time: ${c}`}),re.log("seek to time",{time:c,action:b,forcePrecise:P}),gi.next(b),O.info.isLive$.getValue()){let Ee=O.info.duration$.getValue(),it=Math.min(0,Ee+c);O.seekTime(it,P)}else{if(E!=null&&E.getValue())return;O.info.isEnded$.getValue()&&(me({message:"seek after ended, call callbacks.onPlay"}),(J=a==null?void 0:a.onPlay)==null||J.call(a)),O.seekTime(jv(c),P)}},ei=c=>{me({message:`seek to episode start time: ${c}`}),re.log("seek to episode start time",{time:c}),We(c,ds.SeekAction.EPISODE,!0)},wi=(c,b)=>{me({message:`seek to percent, percent: ${c}`}),re.log("seek to percent",{percent:c,action:b});let P=ye(Pn)*c;We(P,b,!1)},yn=c=>{me({message:`seek external, time: ${c}`}),re.log("seek external",{time:c}),gi.next(ds.SeekAction.UNKNOWN),O.seekTime(O.info.isLive$.getValue()?-c:c)},tn=c=>{var J,Ee;let b=(J=c.max)!=null?J:"none",P=(Ee=c.min)!=null?Ee:"none";me({message:`set auto quality limitation. Max: ${b}. Min: ${P}`}),re.log("set auto quality limits",{max:b,min:P}),O.setAutoQualityLimits(c)},Se=c=>{me({message:`seek external to episode start time: ${c}`}),re.log("seek external to episode start time",{time:c}),We(c,ds.SeekAction.EPISODE,!0)},St=c=>{me({message:`set playback rate to: ${c}`}),re.log("set playback rate external",{playbackRate:c}),O.setPlaybackRate(c)},si=ae(void 0),Ei=ae(!1),on=c=>{me({message:`start scrubbing, progress: ${c}`}),re.log("start scrubbing",{progress:c}),Ei.set(!0),Hi(c)},Hi=c=>{si.set(c)},Fi,dt,qt=()=>{si.set(void 0),Ei.set(!1)},Ui=()=>{clearTimeout(dt),clearTimeout(Fi),Fi=window.setTimeout(()=>{qt()},500),X==null||X.removeEventListener("seeked",Ui)},xn=c=>{me({message:`complete scrubbing, progress: ${c}`}),re.log("complete scrubbing",{progress:c}),wi(c,ds.SeekAction.SLIDER),ye(Vt.ui.isMobile)&&ye(Vt.state.currentFormat$)===ui.VideoFormat.HLS?(X==null||X.addEventListener("seeked",Ui),dt=window.setTimeout(()=>{Ui()},300)):qt()},wn=Ci([bt,Pn,si],([c,b,P],J)=>{J((0,ft.isNonNullable)(P)?P*b:c)}),br=ae(!1),Nr=()=>{br.set(!0)},vs=()=>{br.set(!1)},Li=Ci([ot],([{width:c}],b)=>{let P=G1(c);b(P)}),Vi=j.filter(c=>t1(c)),Ho=Ci([Li,mt],([c,b])=>b?Vi.filter(P=>!P.hideOnMobile):Vi.filter(P=>{var J;return!((J=P.hideOnDesktopGridTypes)!=null&&J.includes(c))})),Fo=ae(j.filter(c=>i1(c))),$r=Ci([Fo,Li],([c,b])=>c.filter(P=>{var J;return!((J=P.hideOnDesktopGridTypes)!=null&&J.includes(b))})),xo=Ci([$r,Ho],([c,b])=>[...ne.features.additionalButtonsDesktopControlPanelRight?c.filter(P=>P.type==="desktop-control-panel-right"):[],...ne.features.additionalButtons?b.map((P,J)=>{var Ee;return{id:J,weight:J,type:"desktop-control-panel-right",testId:P.testId,icon:P.iconUrl,onClick:P.onClick,ariaLabel:(Ee=P.ariaLabel)!=null?Ee:P.tooltip,tooltipText:P.tooltip}}):[]]),tr=ae(H),Ct=Ci([tr],([c])=>ne.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?Dt(W({},b),{onClick:b.onChangeEnabled}):b):[]),xt=(c,b)=>{let P=ye(Fo).map(J=>J.id!==c?J:W(W({},J),b));Fo.set(P)},mo=c=>{let b=ye(Fo);if(b.some(P=>P.id===c.id)){me({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Fo.set(b)},nn=c=>{let b=ye(Fo);if(!b.some(P=>P.id===c)){me({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(P=>P.id!==c),Fo.set(b)},ji=c=>{gi.next(ds.SeekAction.LIVE),me({message:"live switch to low latency "+c}),re.log("live switch to low latency "+c),O.setLiveLowLatency(c)},di=(c,b)=>{let P=ye(tr).map(J=>J.id!==c?J:W(W({},J),b));tr.set(P)},zi=c=>{let b=ye(tr);if(b.some(P=>P.id===c.id)){me({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),tr.set(b)},Ms=c=>{let b=ye(tr);if(!b.some(P=>P.id===c)){me({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(P=>P.id!==c),tr.set(b)},Or=ae(F),yc=Ci([Or],([c])=>ne.features.additionalContextMenuItems?c:[]),up=(c,b)=>{let P=ye(Or).map(J=>J.id!==c?J:W(W({},J),b));Or.set(P)},xc=c=>{let b=ye(Or);if(b.some(P=>P.id===c.id)){me({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Or.set(b)},pp=c=>{let b=ye(Or);if(!b.some(P=>P.id===c)){me({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(P=>P.id!==c),Or.set(b)},wc=Ci([mt,we],([c,b],P)=>{P(c&&b)}),fp=()=>{gi.next(ds.SeekAction.LIVE),me({message:"switch to active live"}),re.log("switch to active live"),O.seekTime(0),O.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING&&Vt.actions.internal.togglePlay()},Sc=()=>{re.log("skip adman"),Ve.skip()},mp=(c=!0)=>{var J;(0,ft.assertNonNullable)(Vt),me({message:`switch from ads to video, callPlay: ${c}`}),re.log("switch from ads to video",{callPlay:c}),Ge.set("video"),c&&O.play(),l&&vi(!0,!0);let b=(J=ye(Ze))==null?void 0:J.muted,P=!O.info.muted$.getValue();b!==void 0&&!P&&vi(b,!0),Ze.set(void 0)},Cc=()=>{(0,ft.assertNonNullable)(Vt),me({message:"switch from video to ads"}),re.log("switch from video to ads"),Vt.actions.internal.pause(),Go(),Ge.set("ads")},Tc=c=>{(0,ft.assertNonNullable)(Vt);let b=c?"LiveWaitingStart":"thumb";re.log("set live waiting start",{state:c,playerPhase:b}),Ge.set(b)},Ec=c=>{(0,ft.assertNonNullable)(Vt);let b=c?"LiveWaitingRecover":"thumb";re.log("set live waiting recover",{state:c,playerPhase:b}),Ge.set(b)},vp=c=>{(0,ft.assertNonNullable)(Vt);let b=c?"LiveWaitingRecord":"thumb";re.log("set live waiting record",{state:c,playerPhase:b}),Ge.set(b)},Ic=()=>((0,ft.assertNonNullable)(Vt),re.log("get debug text data"),Xh(O,ct,Vt,Re.getTraceId())),gp=()=>((0,ft.assertNonNullable)(Vt),JSON.stringify(Re.getFinishedSpans())),kc=()=>((0,ft.assertNonNullable)(Vt),Jh(O,ct,Vt)),Qa=()=>X,hp=()=>{me({message:"toggle chromecast"}),re.log("toggle chromecast"),O.toggleChromecast()},Ac=c=>{var P;if((0,ft.assertNonNullable)(Vt),O.info.isEnded$.getValue())return;let b=!c;if(ye(Vt.playerPhase)==="ads"){me({message:`pause ads, internalCall: ${b}`}),re.log("pause ads",{internalCall:b}),Ve.pause();return}me({message:`pause video, internalCall: ${b}`}),re.log("pause video",{internalCall:b}),b&&((P=a==null?void 0:a.onPause)==null||P.call(a)),O.pause()},Ye=c=>{var P;(0,ft.assertNonNullable)(Vt);let b=!c;if(ye(Vt.playerPhase)==="ads"){me({message:`play ads, internalCall: ${b}`}),re.log("play ads",{internalCall:b}),Ve.play();return}me({message:`play video, internalCall: ${b}`}),re.log("play video",{internalCall:b}),b&&((P=a==null?void 0:a.onPlay)==null||P.call(a)),O.play()},ci=c=>{(0,ft.assertNonNullable)(Vt);let b=!c;if(ye(Vt.playerPhase)==="ads"){me({message:"player cannot be stopped during ads via external method"});return}me({message:`player will be stopped, internalCall: ${b}`}),k==null||k()},wo=(c,b)=>{(0,ft.assertNonNullable)(Vt),me({message:`first start, show ads: ${c}, internalCall: ${!b}`}),re.log("first start",{showAds:c,external:b}),c?Ge.set("ads"):(Ge.set("video"),b?O.play():Vt.actions.internal.togglePlay())},gs=()=>(me({message:"getting time codes"}),f),rn=()=>{let c=gs();if(!c||[0,1].includes(c.length))return;let b=O.info.position$.getValue();return c.find(P=>P.time>b)},Q0=c=>{let b=c;b||(b=rn());let P=O.info.position$.getValue();re.log("seek to next episode",W({currentTime:P},b)),b&&(me({message:"seek to next episode"}),We(b.time,ds.SeekAction.EPISODE,!0))},Gv=()=>{let c=gs();if(!c||[0,1].includes(c.length))return;let b=O.info.position$.getValue(),P=c.findIndex(Ee=>Ee.time>b),J=P===-1?c.length-2:P-2;if(!(J<0))return c[J]},G0=c=>{let b=c;b||(b=Gv());let P=O.info.position$.getValue();re.log("seek to prev episode",W({currentTime:P},b)),b&&(me({message:"seek to prev episode"}),We(b.time,ds.SeekAction.EPISODE,!0))},j0=()=>(me({message:"getting preview thumbs data"}),re.log("get preview thumbs data",W({},v)),v),Y0=()=>_t(null,null,function*(){let c=te==null?void 0:te.isActive(),b="none";te!=null&&te.isActive()?(b="exit",yield te==null?void 0:te.exit()):(b="request",yield te==null?void 0:te.request()),re.log("toggle picture in picture",{isActive:c,action:b})}),Z0=(c=-90)=>{re.log("rotate video",{alphaDiff:c}),Zt.update(b=>b+c)},Pc=ae([]);T==null||T.subscribe(c=>{let b=[];for(let P=0;P<c.length;P++){let{range:[J,Ee],subjects:it}=c[P];P===0&&J!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:J/1e3,text:"",interactive:!0,completed:ne.features.interactiveTimeOpenUri?!it.length||it.every(It=>It.isRemoved):!it.length}),Ee!==1/0&&b.push({time:Ee/1e3,text:"",interactive:!1,completed:!0})}Pc.set(b)});let X0=ae(!1);E==null||E.subscribe(c=>{c&&ye(Ei)&&qt()});let jv=c=>{if(!C)return c;let b=ye(Pc),P=ye(Pn),Ee=ye(Vo)/P,it=b.find(It=>It.interactive&&!It.completed&&It.time>Ee);return typeof(it==null?void 0:it.time)=="number"?Math.min(c,it.time-.05):c},J0=()=>{Vt.ui.episodes.panelOpened$.set(!1)},e_=()=>{re.log("destroy store"),clearTimeout(dt),clearTimeout(Fi),ze.unsubscribe(),wt.unsubscribe(),O.destroy(),Ve.destroy(),de==null||de.destroy(),ge==null||ge.destroy(),be.unsubscribe(),Xt==null||Xt.disconnect(),Xt=null,ke.destroy()},Vt={interfaceLanguage$:De,isCyrillicRelatedInterface$:Ke,initVideo:eo,videoId:i,isClip:o,playerPhase:Ne,vsid:vt,state:{positionExact$:bt,positionWithScrubbing$:wn,duration$:Pn,playbackState$:ti,isPlaying$:Ir,isLoaderVisible:ut,bufferedProgress$:bn,isLive$:hi,canChangePlaybackSpeed$:yi,isActiveLive$:Qn,isOldestAvailableLive$:Gn,isRewindableLive$:Di,isEnded$:Jt,muted$:pn,volume$:Bi,trafficSavingEnabled$:fn,highQualityEnabled$:jo,autoQualityLimitingAvailable$:fi,availableVideoStreams$:Ln,availableAudioStreams$:Vn,videoStream$:pr,audioStream$:fr,currentQuality$:ii,isAutoQualityEnabled$:gn,availableQualities$:Yn,currentPlaybackRate$:hn,availablePlaybackRates$:ho,currentSubtitle$:Ti,availableTextTracks$:Xo,availableSubtitlesList$:gr,currentSubtitleCaptions$:Ro,isAutoSubtitleCaptionVisible$:Xn,chromecastState$:ao,chromecastDeviceName$:lo,chromecastConnected$:Mn,currentFormat$:mn,throughputEstimation$:vn,videoBitrate$:Yo,videoSize$:ur,errorLog$:Ft,crashed$:we,isAudioAvailable$:Er,isAudioDisabled:!!l,canDownload:ne.features.download&&!!d,availableSources$:Gt,hasMpegSources$:Jn,isInteractive:C,showInteractiveGraph:ne.features.interactiveGraph,showSeekToInteractive:ne.features.seekToInteractive,showPlayPrevChapter:ne.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ne.features.interactiveTimeIndicator&&!!ye(Pc).length,interactiveEpisodes$:Pc,isInteractiveTime$:E?oi(E):ae(!1),isInteractiveExpectation$:X0,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,looped$:$n,loadedMetadata$:Wt,isAutoQualityAvailable$:Zo},ui:{t:Ae,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:j.length?j.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:Qt},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Tt,isFullscreenOpenedByKeyboard:Je,rotateAlpha:Zt,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:ot,isMobile:mt,mobileNotReportControlHidden$:wc,icon3DVideoVisible:ae(!1),scrubbingInProgress:Ei,volumeChangingInProgress:br,is3DVideo:se,currentGridType$:Li,additionalButtonsDeprecated$:Ho,additionalDesktopControlPanelRightButtons$:xo,additionalSettingsMenuItems$:Ct,additionalContextMenuItems$:yc,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},aboutToGoNextVideo:ae(void 0),userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:yo,controlBlocks:{topLeft:ae(void 0),topRight:ae(void 0),middle:ae(void 0),bottom:ae(void 0),bottomLeft:ae(void 0),bottomRight:ae(void 0)},videoTitleInfo:ae(void 0)},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:te,annotationsApi:ve,slotsApi:He},actions:{internal:{preload:xi,firstStart:c=>wo(c,!1),play:()=>Ye(!1),pause:()=>Ac(!1),togglePlay:uo,toggleMuted:lt,openSettingsMenu:co,closeSettingsMenu:mi,openSettingsSubMenu:Oo,closeSettingsSubMenu:No,setVolume:c=>Jo(c,!1),setMuted:c=>vi(c,!1),startVolumeChanging:Nr,stopVolumeChanging:vs,setVideoStream:mr,setAudioStream:c=>vr(c,!1),setQuality:(c,b)=>po(c,b,!1),setTrafficSavingEnabled:(c,b)=>to(c,b,!1),setHighQualityEnabled:(c,b)=>io(c,b,!1),setPlaybackRate:bo,incrementPlaybackRate:$o,decrementPlaybackRate:Do,setSubtitle:c=>er(c,!1),toggleSubtitle:()=>en(!1),togglePictureInPicture:Y0,startScrubbing:on,progressScrubbing:Hi,completeScrubbing:xn,toggleChromecast:hp,switchToActiveLive:fp,switchFromAdsToVideo:mp,switchFromVideoToAds:Cc,skipAd:Sc,setLiveWaitingStart:Tc,setLiveWaitingRecover:Ec,setLiveWaitingRecord:vp,getDebugTextData:Ic,getTraceTextData:gp,getDebugPanelData:kc,getVideoElement:Qa,seekTime:(c,b,P)=>We(c,b,P),clearDelayedBufferingCheckTimeout:cs,seekEpisodeStartTime:ei,seekToPercent:wi,getNextEpisode:rn,seekToNextEpisode:Q0,getPrevEpisode:Gv,seekToPrevEpisode:G0,startLogging:Xe,stopLogging:Pi,startCameraManualRotation:Po,stopCameraManualRotation:Mo,moveCameraFocusPX:un,holdCamera:N,releaseCamera:et,getVideoEpisodes:gs,getPreviewThumbsData:j0,downloadVideo:Zr,addLanguage:If,setLanguage:ce,nextMovie:ko,videoRotate:Z0,correctSeekTimeToInteractive:jv,replayInteractive:L,setLooped:On,reportProblem:fs,setAutoplayNextEnabled:Xr,setTimerNextVideoRunning:ms,prevVideoClick:hr,nextVideoClick:_o,nextVideoAnnouncementShow:Pr,nextVideoAnnouncementClick:Mr,nextVideoAnnouncementAuto:st,nextVideoAnnouncementCancel:Pt,checkFullscreenSupport:zt},external:{firstStart:c=>wo(c,!0),play:()=>Ye(!0),pause:()=>Ac(!0),stop:()=>ci(!0),seekTime:c=>yn(c),seekEpisodeStartTime:c=>Se(c),setPlaybackRate:c=>St(c),setAutoQualityLimits:c=>tn(c),setMuted:c=>vi(c,!0),toggleSubtitle:()=>en(!0),changeSubtitle:Lr,setVolume:c=>Jo(c,!0),returnFocusToEpisodes:J0,updateAdditionalSettingsItem:di,addAdditionalSettingsItem:zi,removeAdditionalSettingsItem:Ms,updateAdditionalContextItem:up,addAdditionalContextItem:xc,removeAdditionalContextItem:pp,updateAdditionalButton:xt,addAdditionalButton:mo,removeAdditionalButton:nn,setLiveLowLatency:ji,hideControls:()=>Rr(!1),showControls:()=>Rr(!0),setQuality:c=>po(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>to(c,"to-video",!0),setHighQualityEnabled:c=>io(c,"to-video",!0),changeAudioStream:us}},callbacks:a,setUiCallbacks:c=>{Me=W({},c)},getAdmanWrapper:()=>Ve,getLogger:()=>ue,getPlayer:()=>O,destroy:e_};return Vt};function Kn(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:u}=Ts(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var Iy=["disabledControls$","additionalButtons"],ky=["interactiveTimeIndicator"],Pl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!Iy.includes(n)){let l=o||ky.includes(n);s.set(Kn(t,i,n,l))}}};var Du=(t,e,i)=>_t(null,null,function*(){yield Co(),e&&i&&(i.focus(),t.set(!1))});var Ay=Te('<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 Tm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}function Em(t,e){U(e,!0);let[i,o]=Fe(),n=()=>S(a,"$contextMenuVisible$",i),s=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ie(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,x=Z(void 0);qe(()=>{r(x)&&Et(()=>{p.set(r(x))})});let w=E=>{let L=qs(E),k=B1(r(x));v.set(k),u.set(L),a.set(!n())},y=()=>{f.set(!0)},C=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Bt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:y,blur:C,get ariaExpanded(){return n()},get ref(){return r(x)},set ref(E){B(x,E,!0)},children:(E,L)=>{Tm(E,{})},$$slots:{default:!0}}),z(),o()}var Py=t=>{t.stopPropagation()},My=M("<div><!> <div></div> <div></div></div>"),Ly={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
228
+ }`};function Tm(t,e){z(e,!0),q(t,vy);let i=v(e,"isMobile",3,!1),o=g(()=>e.iconState===Cm.ChromecastState.CONNECTED),n=g(()=>e.iconState===Cm.ChromecastState.CONNECTING);var s=Ue(),l=me(s);{var d=u=>{var f=fy(),m=_(f),p=_(m),x=_(p);xe(),h(p);var y=k(p);xe(),h(m);var w=k(m),T=_(w),C=_(T);h(T),xe(),h(w),h(f),D(()=>{ze(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),ze(y,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),ze(C,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},a=u=>{var f=my();let m;var p=_(f),x=k(_(p),5);let y;h(p),h(f),D((w,T)=>{m=se(f,0,"svelte-8z1bf5",null,m,w),y=se(x,0,"svelte-8z1bf5",null,y,T)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(u,f)};R(l,u=>{i()?u(d):u(a,!1)})}$(t,s),W()}var f0=require("@vkontakte/videoplayer-shared/es2015");function Qd(t,e){z(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,f0.noop),l=Te().ui.t,d=g(()=>e.state===p0.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Dt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{Tm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),W()}var gy=P('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),hy={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 Em(t,e){q(t,hy);let i=v(e,"active",3,!1),o=v(e,"pointer",3,!1),n=v(e,"translateXPx",3,0),s=v(e,"translateYPx",3,0),l=v(e,"leftOffset",3,0),d=v(e,"rightOffset",3,0),a=J(void 0),u=J(void 0);function f(T){if(!r(u))return 0;let{width:C}=r(u).getBoundingClientRect(),E=C/2;return T<E?E+l():T>e.containerWidth-E?e.containerWidth-E-d():T}let m=g(()=>f(n()));var p=gy(),x=_(p);let y;var w=_(x);he(w,()=>{var T;return(T=e.children)!=null?T:de}),h(x),rt(x,T=>N(u,T),()=>r(u)),h(p),rt(p,T=>N(a,T),()=>r(a)),D(T=>{at(p,`transform: translate(${r(m)}px, ${s()}px);`),y=se(x,1,"tooltip svelte-5ygsa2",null,y,T),at(x,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,p)}var Nu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var m0=t=>!!(Math.round(Math.abs(t)/90)%2),v0=t=>Math.abs(t)/90%4===1;var _y=P('<div class="preview svelte-1wqg760"></div>'),by=P('<div class="time svelte-1wqg760"> </div>'),$y=P('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),yy={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 Im(t,e){z(e,!0),q(t,yy);let[i,o]=He(),n=()=>S(y,"$rotateAlpha",i),s=()=>S(w,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=v(e,"time",3,""),a=v(e,"isMobile",3,!1),u=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),m=v(e,"duration",3,0),p=v(e,"isInteractive",3,!1),x=Te(),y=x.ui.rotateAlpha,w=x.ui.playerSize,T=J(0),C=J(0),E=J(""),V=J(0),I=J(0),L=J(0),B=J(0),F=g(()=>Nu(f(),m(),u())),H=g(()=>m0(n())),U=g(()=>v0(n())),Z=g(be),re=g(()=>(r(U)?1:-1)*(r(T)/2-r(C)/2)),G=g(()=>r(re)*-1);qe(()=>{(j=>{N(T,j.width,!0),N(C,j.height,!0)})(pe())}),qe(()=>{(j=>{N(E,j.imgSrc,!0),N(V,j.imgWidth,!0),N(I,j.imgHeight,!0),N(L,j.imgOffsetX,!0),N(B,j.imgOffsetY,!0)})(ve(f()))});function be(){var Je;let j=a()?l.MOBILE:l.DESKTOP,{isVertical:oe}=ee(),Be=30;return(Je=r(F))!=null&&Je.text&&(Be+=16),(oe||r(H))&&(Be+=18,Be+=50),Math.min(Math.max(s().height-Be,0),j)}function ee(){let j=e.previewThumbsData.frameWidth,oe=e.previewThumbsData.frameHeight,Be=oe>j;return{width:j,height:oe,isHorizontal:!Be,isVertical:Be}}function pe(){let{height:j,isHorizontal:oe,isVertical:Be,width:Je}=ee();return oe&&(j=j/Je*r(Z),Je=r(Z)),Be&&(Je=Je/j*r(Z),j=r(Z)),{width:Je,height:j}}function ve(j){let oe;e.previewThumbsData.isUV?oe=Math.floor(m()*j/e.previewThumbsData.frequency):oe=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*j)));let Be=Math.floor(oe/e.previewThumbsData.countPerImage),Je=Math.floor(oe%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),$e=oe%e.previewThumbsData.countPerRow,ie=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Be===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ie=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ie++);let Se=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Be===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Se=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ee=r(T)*Se,Qe=r(C)*ie,tt=-$e*r(T),gt=-Je*r(C);return{imgSrc:e.previewThumbsData.links[Be],imgWidth:Ee,imgHeight:Qe,imgOffsetX:tt,imgOffsetY:gt}}var ue=$y();let Me;var Oe=_(ue);{var le=j=>{var oe=_y();D(()=>at(oe,`width: ${r(T)}px; height: ${r(C)}px; background-image: url(${r(E)}); background-size: ${r(V)}px ${r(I)}px; background-position: ${r(L)}px ${r(B)}px;
229
+ transform: rotate(${n()}deg) ${r(H)?`translate(${r(re)}px, ${r(G)}px)`:""};
230
+ `)),$(j,oe)};R(Oe,j=>{r(E)&&j(le)})}var De=k(Oe,2),X=_(De);{var M=j=>{var oe=Ue(),Be=me(oe);{var Je=ie=>{var Se=cs();D(Ee=>ge(Se,Ee),[()=>Q("tooltip_episode_unfinished")]),$(ie,Se)},$e=ie=>{var Se=cs();D(()=>ge(Se,r(F).text||"")),$(ie,Se)};R(Be,ie=>{p()&&r(F).completed===!1?ie(Je):ie($e,!1)})}$(j,oe)};R(X,j=>{r(F)&&j(M)})}h(De);var st=k(De,2);{var Fe=j=>{var oe=by(),Be=_(oe,!0);h(oe),D(()=>ge(Be,d())),$(j,oe)};R(st,j=>{p()||j(Fe)})}h(ue),D(j=>{Me=se(ue,1,"timeline-preview svelte-1wqg760",null,Me,j),at(ue,`width: ${r(H)?r(C):r(T)}px;`)},[()=>({mobile:a()})]),$(t,ue),W(),o()}var xy=P('<span class="time svelte-1jr6obn"> </span>'),wy=P("<!> <!>",1),Sy={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 km(t,e){var ce,Ke,fe,Ve,Ne;z(e,!0),q(t,Sy);let[i,o]=He(),n=()=>S(re,"$interactiveEpisodes$",i),s=()=>S(L,"$duration$",i),l=()=>S(I,"$position$",i),d=()=>S(ee,"$isInteractiveExpectation$",i),a=()=>S(be,"$isInteractiveTime$",i),u=()=>S(B,"$isLive$",i),f=()=>S(H,"$isMobile",i),m=()=>S(F,"$isActiveLive$",i),p=()=>S(V,"$bufferedProgress$",i),x=()=>S(ue,"$disabledControls$",i),y=v(e,"showTimeline",3,!1),w=v(e,"withEpisodes",3,!0),T=v(e,"ref",15,void 0),C=Te(),E=kt(),V=C.state.bufferedProgress$,I=C.state.positionWithScrubbing$,L=C.state.duration$,B=C.state.isLive$,F=C.state.isActiveLive$,H=C.ui.isMobile,U=E.features.episodes&&w()?C.actions.internal.getVideoEpisodes():void 0,Z=C.actions.internal.getPreviewThumbsData(),re=C.state.interactiveEpisodes$,G=C.state.isInteractive,be=C.state.isInteractiveTime$,ee=C.state.isInteractiveExpectation$,pe=C.actions.internal.correctSeekTimeToInteractive,ve=(ce=C.callbacks)==null?void 0:ce.onDisabledTimelineClick,ue=C.ui.controls.disabledControls$,Me=(fe=(Ke=C.callbacks)==null?void 0:Ke.uiInfo)==null?void 0:fe.onTimelineMouseEnter,Oe=(Ne=(Ve=C.callbacks)==null?void 0:Ve.uiInfo)==null?void 0:Ne.onTimelineMouseLeave,le=C.ui.t,De=E.features.interactiveResponsiveUi,X=g(()=>G?n():U),M=g(()=>bn(s())),st=g(()=>bn(l())),Fe=g(()=>l()/s()),j=g(()=>d()||a()),oe=J(!1),Be=J(""),Je=J(0),$e=J(0),ie=J(0),Se=g(()=>({containerWidth:r($e),translateXPx:r(Je),translateYPx:G&&Z?-36:-16,active:r(oe)&&y()&&!r(j)&&!De,pointer:!E.features.timelinePreview||!Z||u()})),Ee=le("aria_timeline"),Qe=g(()=>le("aria_timeline_value",{position:r(st),duration:r(M)}));function tt(ye){return!pe||!G?ye:pe(ye*s())/s()}function gt(ye){C.actions.internal.startScrubbing(tt(ye))}function dt(ye){a()||C.actions.internal.progressScrubbing(tt(ye))}function ht(ye){C.actions.internal.completeScrubbing(tt(ye)),N(oe,!1)}function it(ye,Ye,yt){ei(ye,Ye,yt),N(oe,!0)}function Wt(ye,Ye,yt){ei(ye,Ye,yt),N(oe,!0)}function Yt(){N(oe,!1)}function ei(ye,Ye,yt){N(ie,tt(ye),!0),N(Je,Ye,!0),yt&&N($e,yt,!0),N(Be,Zt(ye),!0)}function Zt(ye){let Ye=bn((u()?1-ye:ye)*s());return u()?`-${Ye}`:Ye}var Ae=wy(),Ft=me(Ae);Em(Ft,Ss(()=>r(Se),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(ye,Ye)=>{var yt=Ue(),Xt=me(yt);{var Lt=ni=>{Im(ni,{get time(){return r(Be)},get isMobile(){return f()},get videoEpisodes(){return r(X)},get previewThumbsData(){return Z},get progress(){return r(ie)},get duration(){return s()},get isInteractive(){return G}})},_i=ni=>{var bi=xy(),Fi=_(bi,!0);h(bi),D(()=>ge(Fi,r(Be))),$(ni,bi)};R(Xt,ni=>{E.features.timelinePreview&&Z&&!u()?ni(Lt):ni(_i,!1)})}$(ye,yt)},$$slots:{default:!0}}));var Ce=k(Ft,2);let Ie=g(()=>x().has("TIMELINE"));Aa(Ce,{className:"timeline-slider",get isActiveLive(){return m()},get isMobile(){return f()},get ariaLabel(){return Ee},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(Qe)},get loadedProgress(){return p()},get filledProgress(){return r(Fe)},get handleProgress(){return r(Fe)},get videoEpisodes(){return r(X)},onPointerDown:gt,onHandleMove:dt,onPointerMove:Wt,onPointerUp:ht,onPointerEnter:it,onPointerLeave:Yt,get onMouseEnter(){return Me},get onMouseLeave(){return Oe},get onDisabledClick(){return ve},get isInteractive(){return G},get disabled(){return r(Ie)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:ht,get ref(){return T()},set ref(ye){T(ye)}}),$(t,Ae),W(),o()}var Cy={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 Gd(t,e){z(e,!0),q(t,Cy);let[i,o]=He(),n=()=>S(a,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"duration",3,0),d=Te(),a=d.ui.isMobile,u=d.ui.t,f=g(()=>bn(l())),m=g(()=>bn(s())),p=g(()=>s()/l()),x=g(()=>u("aria_timeline_value",{position:r(m),duration:r(f)})),y=g(()=>Math.round(r(p)*100));Aa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(y)},get ariaValueText(){return r(x)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),W(),o()}var Ty=P("<div><!></div>"),Ey=P("<div></div>"),Iy={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function Pa(t,e){z(e,!0),q(t,Iy);let[i,o]=He(),n=()=>S(T,"$isLive$",i),s=()=>S(V,"$isMobile",i),l=()=>S(I,"$disabled",i),d=()=>S(E,"$adPosition",i),a=()=>S(C,"$adDuration",i),u=v(e,"isAds",3,!1),f=v(e,"isHidden",3,!1),m=v(e,"timelineNotAvailable",3,!1),p=v(e,"needPadding",3,!0),x=v(e,"ref",15,void 0),y=Te(),w=kt(),T=y.state.isLive$,C=y.ads.duration,E=y.ads.position,V=y.ui.isMobile,I=ae(!1),L=g(()=>!m()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||u()));var B=Ue(),F=me(B);{var H=Z=>{var re=Ty();let G;var be=_(re);{var ee=ve=>{Gd(ve,{get position(){return d()},get duration(){return a()}})},pe=ve=>{km(ve,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(L)},get withEpisodes(){return e.withEpisodes},get ref(){return x()},set ref(ue){x(ue)}})};R(be,ve=>{u()?ve(ee):ve(pe,!1)})}h(re),ws(re,()=>$l(f()&&w.features.usePerformanceFix,I,w.disableInvisibleComponentsTimeout)),D(ve=>G=se(re,1,"timeline svelte-41cp6d",null,G,ve),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),$(Z,re)},U=Z=>{var re=Ey();let G;D(be=>G=se(re,1,"timeline-stub svelte-41cp6d",null,G,be),[()=>({mobile:s()})]),$(Z,re)};R(F,Z=>{r(L)?Z(H):Z(U,!1)})}$(t,B),W(),o()}var g0=require("@vkontakte/videoplayer-shared/es2015");var ky=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function Am(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=ky();ke(o,()=>K({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));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(3),h(o),$(t,o)}var Ay=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function Pm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var Py=P('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),Ly=P('<span class="text svelte-1yhs2ga"> </span>'),My=P('<span class="text count svelte-1yhs2ga"> </span>'),Vy=P("<!> <!>",1),Ry={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 jd(t,e){var ee,pe,ve;z(e,!0),q(t,Ry);let[i,o]=He(),n=()=>S(y,"$currentGridType$",i),s=()=>S(w,"$openedByKeyboard$",i),l=()=>S(T,"$panelOpened$",i),d=()=>S(C,"$isMobile",i),a=v(e,"position",3,0),u=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),m=Te(),p=(pe=(ee=m.callbacks)==null?void 0:ee.onEpisodeChanged)!=null?pe:g0.noop,x=!!((ve=m.callbacks)!=null&&ve.onEpisodeClicked),y=m.ui.currentGridType$,w=m.ui.episodes.openedByKeyboard$,T=m.ui.episodes.panelOpened$,C=m.ui.isMobile,E=m.ui.t,V=J(void 0),I=ue=>{var Oe,le,De;if(!!((Oe=m.callbacks)!=null&&Oe.onEpisodeClicked)){let X=Qs(ue);w.set(X),T.set(!0),(De=(le=m.callbacks)==null?void 0:le.onEpisodeClicked)==null||De.call(le,X)}},L=J(null),B=g(()=>a()/u());qe(()=>{var Me;let ue=Nu(r(B),u(),f());ue?((Me=r(L))==null?void 0:Me.time)!==ue.time&&(p(ue),N(L,ue,!0)):N(L,null)});let F=g(()=>{var ue;return((ue=r(L))==null?void 0:ue.text)||""}),H=g(()=>to(n(),"xl")?"FULL":to(n(),"m")&&d0(n(),"xl")?"COUNT":"SHORT"),U=g(()=>`${E("tooltip_episodes")}: ${r(F)}`),Z=(ue,Me,Oe)=>Ct(null,null,function*(){yield wo(),(ue==null?void 0:ue.getAttribute("aria-expanded"))==="false"&&Me&&!Oe&&Tt(()=>{w.set(!1),ue.focus()})});qe(()=>{Z(r(V),s(),l())});var re=Ue(),G=me(re);{var be=ue=>{let Me=g(()=>d()?"px-0":""),Oe=g(()=>!x);Dt(ue,{get className(){var le;return`w-max btn-full-opacity btn-jc-l ${(le=r(Me))!=null?le:""}`},testId:"btn-episodes",click:I,get disabled(){return r(Oe)},get ariaExpanded(){return l()},get ariaLabel(){return r(U)},get ref(){return r(V)},set ref(le){N(V,le,!0)},children:(le,De)=>{var X=Ue(),M=me(X);{var st=j=>{var oe=Py(),Be=me(oe),Je=_(Be,!0);h(Be);var $e=k(Be,2),ie=_($e);Pm(ie,{}),h($e),D(()=>ge(Je,r(F))),$(j,oe)},Fe=j=>{var oe=Vy(),Be=me(oe);Am(Be,{});var Je=k(Be,2);{var $e=Se=>{var Ee=Ly(),Qe=_(Ee,!0);h(Ee),D(()=>ge(Qe,r(F))),$(Se,Ee)},ie=(Se,Ee)=>{{var Qe=tt=>{var gt=My(),dt=_(gt,!0);h(gt),D(()=>ge(dt,f().length)),$(tt,gt)};R(Se,tt=>{r(H)==="COUNT"&&tt(Qe)},Ee)}};R(Je,Se=>{r(H)==="FULL"?Se($e):Se(ie,!1)})}$(j,oe)};R(M,j=>{d()?j(st):j(Fe,!1)})}$(le,X)},$$slots:{default:!0}})};R(G,ue=>{r(L)&&ue(be)})}$(t,re),W(),o()}var qm=require("@vkontakte/videoplayer-shared/es2015");var ci=require("@vkontakte/videoplayer-core/es2015"),ut=require("@vkontakte/videoplayer-shared/es2015"),ms=require("@vkontakte/videoplayer-statistics/es2015");var Ge=require("@vkontakte/videoplayer-shared/es2015"),io=require("@vkontakte/videoplayer-shared/es2015");var h0=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var Oy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Bu=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 io.Subject,loadStarted$:new io.Subject,loadEnded$:new io.Subject,loadError$:new io.Subject,ready$:new io.Subject,slotRequested$:new io.Subject,started$:new io.Subject,timeRemained$:new io.Subject,paused$:new io.Subject,resumed$:new io.Subject,ended$:new io.Subject,empty$:new io.Subject,skipped$:new io.Subject,clicked$:new io.Subject,closed$:new io.Subject,error$:new io.Subject};this.loadAdman=e=>(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ge.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ge.now)()]}),o())};(0,io.addScript)(Oy,e,this.loadTimeout).then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ge.now)()]}),window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ge.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ge.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ge.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ge.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ge.now)()]}),!d&&(window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ge.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ge.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),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=>{var o;((o=this.adsState)!=null&&o.playbackState?_e(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ge.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ge.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ge.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal,this.usePuid=i.usePuid}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var V;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ge.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:s,adsContainer:l,adsVideoElement:d,slotId:a,params:u={},paramsOverride:f={},duration:m}=e,p,x=this.playerState&&_e(this.playerState.vsid);x&&(this.isVsidOriginal?p=x:p=parseInt(x,36));let{isEmbed:y,immediateOrigin:w}=(0,Ge.detectEmbed)(),T=(V=y?w:window.location.href)!=null?V:window.location.href,C=K(K(Ut(K(Ut(K({},u),{dl:encodeURIComponent(T),autoplay:s?1:0,player_width:i,player_height:o}),p?{request_id:p}:{}),{duration:m}),this.usePuid?{puid10:h0(i,o),puid11:n?0:1}:{}),f);C=Object.fromEntries(Object.entries(C).filter(([I,L])=>(0,Ge.isNonNullable)(L)));let E={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:C,browser:{mobile:!1}};try{let I=new window.AdmanHTML;I.setDebug(!1),I.onReady(this.onAdsReady),I.onStarted(this.onAdStarted),I.onPlayed(this.onAdPlayed),I.onPaused(this.onAdPaused),I.adMidrollPoint(this.onAdMidrollPoint),I.onClosed(this.onAdClosed),I.onSkipped(this.onAdSkipped),I.onClicked(this.onAdClicked),I.onTimeRemained(this.onAdTimeRemained),I.onCompleted(this.onAdCompleted),I.onError(this.onAdError),I.init(E),this.adman=I,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(I){Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[(0,Ge.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ge.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(n=this.actions).switchFromAdsToVideo)==null||s.call(n,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adsState){this.log({message:"toggle play"});let i=_e(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ge.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,s,l,d,a,u,f,m,p;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ge.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(m=this.adman)==null||m.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,io.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var _0=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 Lm=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 s of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new Du,{startTime:f,endTime:m}=u.parse(a);l.startTime=f,l.endTime=m}else if(a.trim()!==""){let u=new Mm,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Du=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 s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return s+l+d+a}},Mm=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 u=["<",">"].reduce((f,m)=>{let p=l.indexOf(m,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new Du;for(let l of n)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},b0=Lm;var Hu=require("@vkontakte/videoplayer-shared/es2015"),La,Vi,Vm=0,Rm=!1,$0="",y0=(t,e=0,i=0)=>t<e&&t<i,Fu=(t,e=0,i=0)=>t>=e&&t<=i,Ny=(t,e=0,i=0)=>t>e&&t>i,x0=(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:u,endTime:f})=>Fu(t,u,f));let s=t>=Vm,l=t<Vm;if(Vm=t,l&&(Rm=!1),(0,Hu.isNonNullable)(La)&&Fu(t,La.startTime,La.endTime)&&$0===e.value)return La;if(!(0,Hu.isNonNullable)(Vi)&&(n!=null&&n.length)&&!Rm){Vi=n.find(({startTime:u,endTime:f})=>Fu(t,u,f)||s&&y0(t,u,f)),La=void 0,!(0,Hu.isNonNullable)(Vi)&&n[n.length-1].endTime<t&&(Rm=!0);return}else{if(Fu(t,Vi==null?void 0:Vi.startTime,Vi==null?void 0:Vi.endTime))return La=Vi,Vi=void 0,$0=e.value,La;(s&&Ny(t,Vi==null?void 0:Vi.startTime,Vi==null?void 0:Vi.endTime)||l&&y0(t,Vi==null?void 0:Vi.startTime,Vi==null?void 0:Vi.endTime))&&(Vi=void 0)}};var Uu={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},By={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"},Yd=t=>{var e,i;return(i=(e=Uu[t])!=null?e:Uu[By[t]])!=null?i:void 0};var w0=require("@vkontakte/videoplayer-shared/es2015"),hD=require("@vkontakte/videoplayer-statistics/es2015"),zu=class{constructor(e,i,o,n=new w0.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var Zd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Zd||{});var fs=t=>t!=null?t:0,Ts=(t,e)=>{var n,s;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(fs(i==null?void 0:i.top)-fs(o==null?void 0:o.top)),left:Math.round(fs(i==null?void 0:i.left)-fs(o==null?void 0:o.left)),bottom:Math.round(fs(i==null?void 0:i.bottom)-fs(o==null?void 0:o.top)),right:Math.round(fs(i==null?void 0:i.right)-fs(o==null?void 0:o.left))}},Il=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:fs(e==null?void 0:e.width),height:fs(e==null?void 0:e.height)}};var Wu="off";var S0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:m,uiConfig:p,coreConfig:x,player:y,disabledControls:w,isInteractive:T,interactiveRanges$:C,isInteractiveTime$:E,replayInteractive:V,stopPlayer:I,hasInteractiveBranches:L,playPrevChapterDisabledTooltip:B,additionalButtons:F,additionalSettingsMenuItems:H,additionalContextMenuItems:U,playPrevVideo:Z,playNextVideo:re,onVideoChanged:G,looped:be=!1,statistics:ee,saveRate:pe,internalsExposure:ve,playerView:ue,playerId:Me})=>{var pg,fg,mg;let Oe=Ut(K({},x),{configName:[...(pg=x.configName)!=null?pg:[],"ui"],isAudioDisabled:l,live:Ut(K({},(fg=x.live)!=null?fg:{}),{isLiveCatchUpMode:!!n})}),le=p,De=ut.TracerFactory.createRootTracer(le.features.tracer),X=De.createComponentTracer("Store"),M=y||new ci.Player(Oe,De,{playerId:Me});ve==null||ve.expose({corePlayer:M});let st=new ut.Logger,Fe=new Bu(st,{loadTimeout:le.ads.loadTimeout,initTimeout:le.ads.initTimeout,runtimeTimeout:le.ads.runtimeTimeout,useAdmanFromNPM:le.ads.useAdmanFromNPM,volumeMultiplier:le.ads.volumeMultiplier,isVsidOriginal:le.ads.isVsidOriginal,usePuid:le.ads.usePuid}),j=$a.getInstance(),oe=u==null?void 0:u.pictureInPictureApi,Be=u==null?void 0:u.annotationsApi,Je=u==null?void 0:u.slotsApi,$e=st.createComponentLog("Store"),ie,Se,Ee={},Qe=new vu,tt=new ut.Subscription,gt="",dt=ae(!1),ht=ee&&ee.oneStat?oi(ee.oneStat.vsid$):kr(void 0),it=ae(Ws()),Wt=ae(!1),Yt=()=>U1(document,ci.clientChecker.device.isIOS),ei=(mg=oe==null?void 0:oe.info.isActive$)!=null?mg:new ut.ValueSubject(!1),Zt=ae(0),Ae=ae(!1),Ft=ae(!1),Ce=ae([]),Ie=(0,ut.merge)(M.events.fatalError$,M.events.managedError$).subscribe(c=>Ce.update(b=>[...b,c])),ce=kr(!1,c=>{let b=M.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),Ke=c=>Ct(null,null,function*(){var ne;let b=Object.values(ut.InterfaceLanguage).includes(c);if(le.downloadVKLanguages&&(b&&le.updateBuiltinLanguages||!Df(c))){let Pe;try{Pe=yield(0,ut.loadVKLangPack)(c,o1,n1)}catch(ot){(ne=ee==null?void 0:ee.oneStat)==null||ne.logError({errorType:"VKLangPack",fatal:!1}),j==null||j.report(ot,{errorType:"VKLangPack",fatal:!1})}Pe&&(Bf({language:c,pack:Pe,fallback:le.defaultLanguage}),fe.set(c))}Df(c)&&fe.set(c)}),fe=ae(t),Ve=ae(e);Ke(t);let Ne=(c,b)=>{let A=_e(fe);return Ff(A,c,b,le.defaultLanguage)},ye=ae("thumb");ye.subscribe(c=>{c==="ads"&&M.info.playbackState$.getValue()&&Xt()});let Ye=(()=>{let c=xi([ce,ye],([b,A])=>b?"crashed":A);return Ut(K({},c),{is:b=>_e(c)===b})})(),yt=ae(),Xt=()=>{yt.set({muted:M.info.muted$.getValue()})},Lt=(()=>{let c=ae(new Set(w));return Ut(K({},c),{add:b=>{c.update(A=>new Set([...A].concat(b)))},remove:b=>{c.update(A=>{let ne=[...A];return new Set(Array.isArray(b)?ne.filter(Pe=>!b.includes(Pe)):ne.filter(Pe=>Pe!==b))})},includes:b=>{let A=_e(c);return Array.isArray(b)?b.every(ne=>A.has(ne)):A.has(b)}})})(),_i=ae({width:0,height:0}),ni=null,bi=M.info.isBuffering$,Fi=kr(bi.getValue(),c=>{let b=bi.subscribe(A=>{A&&ni===null?ni=window.setTimeout(()=>{c(bi.getValue()),ni=null},le.loaderDelay):c(A)});return()=>{b.unsubscribe(),ni&&clearTimeout(ni)}});X.log("create store"),$e({message:"create store"});let ho=c=>{let b=c.container,A=()=>{Ii=new MutationObserver(Pe=>{let{removedNodes:ot}=Pe[0];ot.length&&b.append(M.experimental.element$.getValue())}),Ii.observe(b,{childList:!0})},ne=M.experimental.element$.getValue();if(ne)b.append(ne),A();else{let Pe=M.experimental.element$.pipe((0,ut.filter)(ot=>!!ot),(0,ut.once)()).subscribe(ot=>{b.append(ot),A()});tt.add(Pe)}},At=c=>{$e({message:`init video, config: ${JSON.stringify(c)}`}),T?ho(c):(ut.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ut.now)()]}),M.initVideo(c)),X.log("init video",{isInteractive:T}),c.subtitles&&M.setExternalTextTracks(c.subtitles),ie=c,gt=c.subtitlesForcedLanguage||""},ti=new ut.Subject,ui=c=>ti.next(c),_t=new ut.Subject,pt=new ut.Subject,Jt=new ut.Subject,Ii=null,Go={actionRewind$:_t,actionSeek$:pt,inPiP$:ei,inFullscreen$:new ut.Observable(c=>it.subscribe(b=>c.next(b))),actionSetSubtitle$:Jt,nextMovie$:ti},Mt={actionSeek$:pt,playerSize$:new ut.Observable(c=>_i.subscribe(b=>c.next(b))),inPiP$:ei,inFullscreen$:new ut.Observable(c=>it.subscribe(b=>c.next(b))),isLoaderVisible$:new ut.Observable(c=>Fi.subscribe(b=>c.next(b)))};if(ee){let{oneStat:c,thinOneStat:b,mediascopePixel:A,statSubscription:ne}=ee;c&&(T||ne.add(c.attachTo(M)),ne.add(c.attachToUi(Go)),ne.add(c.attachToAds(Fe.events)),c.authorize(s).catch(Pe=>{$e({message:`onestat auth error ${String(Pe)}`})}),A&&A.attachTo(M)),b&&(ne.add(b.attachTo(M,Fe.events)),ne.add(b.attachToUi(Mt)),ne.add(b.attachToAds(Fe.events)),b.updateContext({isMobile:_e(dt)}),b.authorize(s))}if(j){let c=new ut.Subscription,b=(A,ne)=>c.add(A.subscribe(ne));if(b(M.events.managedError$,A=>{j.logIError(A)}),b(M.events.fatalError$,A=>{j.logIError(A,!0)}),ee){let{oneStat:A}=ee;A&&b(A.experimental.error$,ne=>{j.logIError(ne)})}j.sentrySubscription.add(c)}let lt=()=>{if(ci.clientChecker.device.isIOS&&Se)try{z1(Se)}catch(c){$e({message:`exitIosSafariFullscreen failed: ${c}`})}};tt.add(M.experimental.element$.subscribe(c=>{c&&(Se=c,c.classList.add("player-media"),xa(oe)&&oe.updateVideoElement(),T&&c.setAttribute("pip","false"),ue==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(M.events.ended$.subscribe(()=>{var c;lt(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(M.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(M.events.started$.subscribe(()=>Ct(null,null,function*(){var b,A;xa(oe)&&(yield oe==null?void 0:oe.revealPictureInPicture());let c=M.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(A=Ee.onStarted)==null||A.call(Ee,c)}))).add(M.events.willSeek$.subscribe(({from:c,to:b})=>{var A;(A=a==null?void 0:a.onSeek)==null||A.call(a,c,b)})).add(M.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(M.info.position$.subscribe(c=>{var A;let b=M.info.duration$.getValue();isFinite(b)&&b>0&&((A=a==null?void 0:a.onTimeupdate)==null||A.call(a,b,c),Fe.setPosition(c,b))})).add(M.events.fatalError$.subscribe(c=>{var b;(b=a==null?void 0:a.onCrashed)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(M.events.fetcherRecoverableError$.subscribe(c=>{var b;(b=a==null?void 0:a.onRecoverableError)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(M.events.loadedMetadata$.subscribe(()=>{Ae.set(!0)})).add(M.info.is3DVideo$.subscribe(c=>{Ft.set(c)})).add(M.info.isEnded$.subscribe(c=>{T&&(c?(E!=null&&E.getValue()&&Lt.add(wd),Lt.add("PLAY_BUTTON")):Lt.remove("PLAY_BUTTON"))})).add(M.info.liveTime$.subscribe(c=>{var b;(b=a==null?void 0:a.onLiveTime)==null||b.call(a,c)})).add(M.info.isStalled$.subscribe(c=>{var b;(b=a==null?void 0:a.onStalledChanged)==null||b.call(a,c)})).add(M.info.isLiveEnded$.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onLiveEnded)==null?void 0:b.call(a))})).add(Fe.events.loadStarted$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:b.call(c)})).add(Fe.events.loadEnded$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:b.call(c)})).add(Fe.events.loadError$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:b.call(c)})).add(Fe.events.init$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:b.call(c)})).add(Fe.events.ready$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:b.call(c)})).add(Fe.events.started$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onStarted)==null?void 0:A.call(b,c)})).add(Fe.events.timeRemained$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onTimeRemained)==null?void 0:A.call(b,c)})).add(Fe.events.ended$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onCompleted)==null?void 0:A.call(b,c)})).add(Fe.events.empty$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:b.call(c)})).add(Fe.events.clicked$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClicked)==null?void 0:A.call(b,c)})).add(Fe.events.closed$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClosed)==null?void 0:A.call(b,c)})).add(Fe.events.error$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onError)==null?void 0:A.call(b,c)})).add(Fe.events.paused$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:b.call(c)})).add(Fe.events.resumed$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:b.call(c)}));let Ot=new ut.Subscription,Eo=()=>{var ot,Et,Nt;let{debugLog:c}=le,b,A="#9df7b7",ne="#efd169";if(c&&c!==!0){let{colors:zt}=c;b=c.tag,A=(ot=zt==null?void 0:zt[0])!=null?ot:A,ne=(Nt=(Et=zt==null?void 0:zt[1])!=null?Et:zt==null?void 0:zt[0])!=null?Nt:ne}let Pe=b?`: ${b}`:"";Ot.add(M.events.log$.subscribe(zt=>{console.debug(`%c sdk${Pe} `,`background:${A};`,`sdk component: ${zt.component}`,zt.message)})).add(st.log$.subscribe(zt=>{console.debug(`%c ui${Pe} `,`background:${ne};`,`ui component: ${zt.component}.`,zt.message)}))},Io=()=>{Ot.unsubscribe()},jo=(c,b)=>{X.log("start camera manual rotation",{mx:c,my:b}),M.startCameraManualRotation(c,b)},Dn=(c=!1)=>{X.log("stop camera manual rotation",{immediate:c}),M.stopCameraManualRotation(c)},O=(c,b,A)=>{X.log("move camera focus px",{xpx:c,ypx:b,dt:A}),M.moveCameraFocusPX(c,b,A)},et=()=>{M.holdCamera()},Qt=()=>{M.releaseCamera()},Gt=kr(M.info.position$.getValue(),c=>{let b,A,ne=()=>{let Pe=M.info.playbackState$.getValue(),ot=M.info.isLive$.getValue(),Et=M.info.duration$.getValue(),Nt=M.info.position$.getValue();if(Pe&&[ci.PlaybackState.PLAYING,ci.PlaybackState.PAUSED].includes(Pe)){let zt=ot?Nt-Et:M.getExactTime();zt!==A&&c(zt),A=zt}b=requestAnimationFrame(ne)};return ne(),()=>cancelAnimationFrame(b)}),vt=oi(M.info.playbackState$),ri=oi(M.info.currentBuffer$),wi=oi(M.info.isEnded$),$i=oi(M.info.isLive$),xt=le.features.playbackRate?oi(M.info.canChangePlaybackSpeed$):kr(!1),Ai=oi(M.info.liveBufferTime$),co=oi(M.info.volume$),yn=oi(M.info.muted$),xn=gu(M.info.predefinedQualityLimitType$.pipe((0,ut.map)(c=>c===ci.PredefinedQualityLimits.TRAFFIC_SAVING)),M.info.predefinedQualityLimitType$.getValue()===ci.PredefinedQualityLimits.TRAFFIC_SAVING),vi=gu(M.info.predefinedQualityLimitType$.pipe((0,ut.map)(c=>c===ci.PredefinedQualityLimits.HIGH_QUALITY)),M.info.predefinedQualityLimitType$.getValue()===ci.PredefinedQualityLimits.HIGH_QUALITY),uo=oi(M.info.autoQualityLimitingAvailable$),fr=oi(M.info.availableQualities$),po=oi(M.info.availableQualitiesFps$),no=oi(M.info.chromecastState$),Fn=oi(M.info.chromecastDeviceName$),Yo=oi(M.info.currentFormat$),ko=oi(M.info.throughputEstimation$),mr=oi(M.info.videoBitrate$),Hn=oi(M.info.intrinsicVideoSize$),vr=oi(M.info.duration$),vs=oi(M.info.isAudioAvailable$),Xr=()=>{ni&&clearTimeout(ni),ni=null},wn=xi([vr,$i],([c,b])=>b?-c:c),Un=xi([vt],([c])=>c===ci.PlaybackState.PLAYING),Sn=oi(M.info.atLiveEdge$),Zo=oi(M.info.atLiveDurationEdge$),Xo=oi(M.info.position$),zn=xi([Xo,vr],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),gr=xi([no],([c])=>c===ci.ChromecastState.CONNECTED),Jr=oi(M.info.availableVideoStreams$),fo=le.features.audioLanguages?oi(M.info.availableAudioStreams$):kr([]),Pr=oi(M.info.currentVideoStream$),Wn=oi(M.info.currentAudioStream$),Cn=c=>{c.language&&Vf(c.language),M.setVideoStream(c)},Kn=(c,b)=>{M.setAudioStream(c),Yi(b)&&(c.language&&Vf(c.language),le.features.userVideoPrefs&&i&&Nf(le.userSalt,String(i),{audioTrackId:c.id}))},hr=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(ne=>"isDefault"in ne&&ne.isDefault)),le.features.userVideoPrefs&&i){let ne=yu(le.userSalt,String(i));if(ne!=null&&ne.audioTrackId){let Pe=c.find(ot=>ot.id===ne.audioTrackId);b=Pe!=null?Pe:b}}let A=k1();return A&&(b!=null||(b=c.find(({language:ne})=>A===ne))),b!=null||(b=c.at(0)),b},qn=c=>{X.log("change audio stream",{id:c});let b=M.info.availableAudioStreams$.getValue().find(A=>A.id===c);b&&Kn(b,!0)},_o=!1;tt.add(M.info.availableAudioStreams$.subscribe(c=>{if(!_o&&c.length){let b=hr(c);b&&(M.setAudioStream(b),_o=!0)}})),fo.subscribe(c=>{var b;(b=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||b.call(a,c.map(({label:A="",id:ne="",language:Pe=""})=>({label:A,language:Pe,id:ne})))}),Wn.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onAudioStreamChanged)==null?void 0:b.call(a,c.id))});let es=!1;tt.add(M.info.availableVideoStreams$.subscribe(c=>{if(!es&&c.length){let b=hr(c);b&&(M.setVideoStream(b),es=!0)}}));let Tn=ae(void 0),ft=oi(M.info.isAutoQualityEnabled$,c=>c&&Tn.set(void 0)),ai=oi(M.info.currentQuality$,()=>Tn.set(void 0)),dn=xi([Tn,ai],([c,b])=>c!=null?c:b),En=xi(Yo,c=>c!==ci.VideoFormat.MPEG),Lr=xi([fr,po,ft,dn,En],([c,b,A,ne,Pe])=>{let ot=[];Pe&&ot.push({value:"auto",displayValue:Ne("auto_quality_option"),selected:A});let Et=c.filter(Nt=>!(0,ut.isInvariantQuality)(Nt));for(let Nt of Et){let zt=b[Nt];ot.push({value:Nt,displayValue:`${Nt}${zt?_0(zt):""}`,selected:A?!1:Nt===ne})}return ot}),Ao=oi(M.info.currentPlaybackRate$),cn=xi([Ao,Sn,Zo],([c,b,A])=>{let ne=A||T?1:le.controls.playbackRateMin,Pe=b?1:le.controls.playbackRateMax,ot=le.controls.playbackRateStep,Et=[];for(let Nt=ne;Nt<=Pe;Nt+=ot)Et.push({value:Nt,displayValue:Nt===1?Ne("playback_rate_1"):Ne("playback_rate",{multiplier:Nt.toString(10)}),selected:c===Nt});return Et}),gi={displayValue:Ne("subtitles_off"),value:Wu,language:""},Pi=ae(K({},gi)),Po=le.features.subtitles?oi(M.info.availableTextTracks$):kr([]),Qn=b1(),_r=xi([Po,Pi],([c,b],A)=>{var ot;let ne=[],Pe=c.find(({id:Et})=>Et===b.value);if(Pe!=null&&Pe.url){let[,Et]=(ot=Qn.find(Pe.url))!=null?ot:[];if(Et){A(Et);return}Qe.download(Pe.url).then(Nt=>{if(!Nt||Qe.isDestroyed())return;let zt=new b0,Vs=Pe.language;if(Vs){let p_=!!Pe.isAuto,f_=zt.parse(Nt,Vs);ne.push({lang:Vs,subtitles:f_,isAuto:p_,id:Pe.id})}Qn.add(Pe.url,ne),_e(Pi).value===b.value&&A(ne)}).catch(Nt=>{var zt;(zt=ee==null?void 0:ee.oneStat)==null||zt.logError({errorType:"Subtitles download",fatal:!1}),j==null||j.report(Nt,{errorType:"Subtitles download",fatal:!1})})}A(ne)}),Mr=xi([Ao,Un,Pi],([c,b,A],ne)=>{let Et;if(M.info.isLive$.getValue()&&b&&A.value!==gi.value){let zt=()=>{let Vs=1e3/(3*c);Et=setTimeout(zt,Vs),ne(Date.now())};return zt(),()=>clearTimeout(Et)}}),br=xi([Po,Pi],([c,b])=>{if(!c.length)return[];let A=[];for(let{language:ne,isAuto:Pe,id:ot}of c){let Et=ne&&Yd(ne);ne&&Et&&A.push({displayValue:Pe?Ne("subtitles_auto",{language:Et}):Et,value:ot,selected:(b==null?void 0:b.value)===ot,isAuto:Pe,language:ne})}return A.length?(A.unshift(Ut(K({},gi),{selected:(b==null?void 0:b.value)===gi.value})),A):[]}),Gn={available:[],prev:[]},jn=()=>{var b,A;let c=M.experimental.getCurrentTime$.getValue();return(A=(b=c==null?void 0:c())!=null?b:Se==null?void 0:Se.currentTime)!=null?A:0},Lo=xi([Gt,Pi,_r,Mr],([c,b,A,ne])=>{var ot;let Pe=M.info.isLive$.getValue();if(Pe&&Gn.prev!==A){let Et=A.find(({id:zt})=>zt===b.value),Nt=Gn.prev.find(({id:zt})=>zt===b.value);if(Et){let zt=Ut(K({},Et),{subtitles:[...(ot=Nt==null?void 0:Nt.subtitles)!=null?ot:[],...Et.subtitles]});Gn.available=[zt],Gn.prev=A}}if(b&&b.value!==gi.value){let Et=Pe?jn():c,Nt=Pe?Gn.available:A;return x0(Et,b,Nt,Pe)}}),Yn=xi([Lo],([c])=>c!=null&&c.texts?c.texts:[]);tt.add(Pi.subscribe(c=>{var b,A;if(c.value===gi.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let ne=Object.entries(Uu).find(([Pe,ot])=>ot===c.displayValue);(A=a==null?void 0:a.onSubtitleOn)==null||A.call(a,ne?ne[0]:"",c.value)}}));let $r=ae(!0),si=xi([ri,wn,Xo,Ai],([c,b,A,ne])=>{var Nt;let Pe=(Nt=c==null?void 0:c.end)!=null?Nt:0;if(!ne)return Pe/b;let Et=-A+ne-b;return(Pe-Et)/b}),un=oi(M.info.availableSources$),yr=xi([un],([c])=>Object.keys((c==null?void 0:c[ci.VideoFormat.MPEG])||{}).length>0),In=()=>{var A,ne,Pe;let c=Object.keys(((ne=(A=M.info.availableSources$)==null?void 0:A.getValue())==null?void 0:ne[ci.VideoFormat.MPEG])||{}),b=(0,ut.getHighestQuality)(c)||ut.VideoQuality.Q_144P;return(Pe=ie.sources[ci.VideoFormat.MPEG])==null?void 0:Pe[b]},mt=()=>{var b;let c=In();if(c)X.log("download video",{url:c}),g1(c,((b=ie==null?void 0:ie.meta)==null?void 0:b.title)||"video");else{let A="There is no URL for download video";X.log("download video",{message:A}),$e({message:A})}},pi=()=>{$e({message:"toggle muted"});let c=M.info.muted$.getValue();M.info.volume$.getValue()===0&&!c?Zi(Hi(),!1):en(!c,!1)},ro=()=>{var c;if(Ht.ui.settingsMenu.visible$.set(!1),!_e(Ht.ui.settingsSubMenu.visible$)){let b=_e(Ht.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let ne=Il(b),Pe={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ne,position:Pe,name:"settings"})}}X.log("close settings menu")},Jo=(c,b=()=>Promise.resolve())=>Ct(null,null,function*(){var Pe;Ht.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Ht.ui.settingsMenu.visible$.set(!0),yield b();let A=_e(Ht.ui.settingsMenu.ref$),ne=qa();if((Pe=a==null?void 0:a.uiInfo)!=null&&Pe.onSettingsMenu&&A&&ne){let Et=Il(A),Nt=Ts(A,ne);a.uiInfo.onSettingsMenu({visible:!0,size:Et,position:Nt,name:"settings"})}X.log("open settings menu",{wasOpenedByKeyboard:c})}),fi=(c,b=!1)=>{var ot;Ht.ui.settingsSubMenu.visible$.set(!1);let A=_e(Ht.ui.settingsMenu.ref$),ne=qa(),Pe=_e(Ht.ui.settingsMenu.visible$);if((ot=a==null?void 0:a.uiInfo)!=null&&ot.onSettingsMenu&&A&&ne)if(Pe&&!b){let Nt=Il(A),zt=Ts(A,ne);a.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:zt,name:"settings"})}else{let Nt=Il(c),zt={top:0,left:0,bottom:0,right:0},Vs=_e(Ht.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Nt,position:zt,name:Vs})}X.log("close settings sub menu")},pn=(c,b)=>{var ne;Ht.ui.settingsSubMenu.visible$.set(!0),Ht.ui.settingsSubMenu.ref$.set(b),Ht.ui.settingsSubMenu.name$.set(c);let A=qa();if((ne=a==null?void 0:a.uiInfo)!=null&&ne.onSettingsMenu&&b&&A){let ot=Il(b),Et=Ts(b,A);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:ot,position:Et})}X.log("open settings sub menu",{name:c})},Hi=()=>{var b;let c=Math.max(le.volumeMinRestore,(b=hu())!=null?b:0);return c===0?le.volumeDefault:c},Yi=c=>{let b=le.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},Zi=(c,b)=>{let A=c===0?Hi():c,ne=M.info.muted$.getValue();$e({message:`set volume, volume: ${c}, preferredVolume: ${A}`});let Pe=!l||Ye.is("ads");ne&&c>0&&Pe&&(ne=!1,Yi(b)&&Lf(!1)),M.setVolume(c,ne),Fe.setVolume(c),Yi(b)&&Ef(A)},en=(c,b)=>{let A=M.info.volume$.getValue();$e({message:`set muted, currentVolume: ${A}, mute: ${c}`});let ne=Ye.is("ads");if(M.setMuted(c,ne),Fe.setVolume(c?0:A),Yi(b)&&(!ne||!c)&&Lf(c),!c&&A===0){let Pe=Hi();M.setVolume(Pe),Yi(b)&&Ef(Pe),Fe.setVolume(Pe)}},kn=ae(!1),Vr=c=>{var b,A;X.log("set looped",{isLooped:c}),kn.set(c),M.setLooped(c),(A=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||A.call(b,c)};Vr(be);let tn=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},Rr=(c,b=!1)=>{var A;$e({message:`set autoplayNextEnabled, value: ${c}`}),X.log("set autoplay next enabled",{autoplayNextEnabled:c}),Ht.ui.autoplayNextEnabled$.set(c),L1(c),b&&((A=a==null?void 0:a.onSetAutoplayNextEnabled)==null||A.call(a,c))},Or=c=>{$e({message:`set timerNextVideoRunning, value: ${c}`}),X.log("set timer next video running",{timerNextVideoRunning:c}),Ht.ui.timerNextVideoRunning$.set(c)},Mo=(c=!0)=>{var A;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(A=a==null?void 0:a.onPrevVideoClick)==null?void 0:A.call(a)}catch(ne){$e({message:"onPrevVideoClick callback failed to execute"})}G(!0),b&&Z()},Zn=(c=!0)=>{var A;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(A=a==null?void 0:a.onNextVideoClick)==null?void 0:A.call(a)}catch(ne){$e({message:"onNextVideoClick callback failed to execute"})}G(!1),b&&re()},Nr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Xn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},nt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Vt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Si=()=>{M.prepare()},mo=()=>{(0,ut.assertNonNullable)(Ht);let c=_e(Ht.ui.controls.disabledControls$),b=_e(Ht.playerPhase),A={playerPhase:b,isInteractive:T,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if($e({message:"toggle play"}),b==="ads"){A.action="play",X.log("toggle adman play",A),Fe.togglePlay();return}let ne=()=>{var ot;$e({message:"toggle play, call player.play"}),A.action="play",M.play(),(ot=a==null?void 0:a.onPlay)==null||ot.call(a)},Pe=()=>{var ot;$e({message:"toggle play, call player.pause"}),A.action="pause",M.pause(),(ot=a==null?void 0:a.onPause)==null||ot.call(a)};if(M.info.isEnded$.getValue()){if($e({message:"toggle play, video ended, seek to 0"}),_t.next(),pt.next(ms.SeekAction.REWIND),T){V==null||V();return}M.seekTime(0),ne()}else M.info.playbackState$.getValue()!==ci.PlaybackState.PLAYING?ne():Pe();X.log("toggle play",A)},Ri=(c,{changeReason:b="default",appliesTo:A="to-video"}={},ne)=>{$e({message:`set quality, quality: ${c}`}),X.log("set quality",{quality:c}),M.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Pe}=le.features;_u(),c!=="auto"?(Pe?(bu({type:"exact_quality",quality:c,videoId:i},A),M.setPredefinedQualityLimits(ci.PredefinedQualityLimits.UNKNOWN)):If(i,c),Tn.set(c),M.setQuality(c)):Pe&&b==="default"&&(An("auto_quality",A,ne),_e(xn)&&Xi(!1,void 0,ne),_e(vi)&&Oi(!1,void 0,ne))},Xi=(c,b="as-default",A)=>{$e({message:`set trafficSavingEnabled, value: ${c}`}),X.log("set traffic saving enabled",{trafficSavingEnabled:c});let ne=c?ci.PredefinedQualityLimits.TRAFFIC_SAVING:ci.PredefinedQualityLimits.UNKNOWN;le.features.qualityDetailsSubMenuEnabled?(bo(ne,b,A),Cd(!1)):(M.setPredefinedQualityLimits(ne),Yi(A)&&Cd(c))},Oi=(c,b="as-default",A)=>{$e({message:`set highQualityEnabled, value: ${c}`}),X.log("set high quality enabled",{highQualityEnabled:c}),bo(c?ci.PredefinedQualityLimits.HIGH_QUALITY:ci.PredefinedQualityLimits.UNKNOWN,b,A)},bo=(c,b,A)=>{c!==ci.PredefinedQualityLimits.UNKNOWN&&(_e(uo)&&!_e(ft)&&Ri("auto",{appliesTo:b,changeReason:"limit-changed"},A),An(c,b,A)),M.setPredefinedQualityLimits(c)},An=(c,b,A)=>{Yi(A)&&(bu({type:c,videoId:i},b),b==="as-default"&&bu({type:c,videoId:i},"to-video"))},Vo=(c,b=!0)=>{X.log("set playback rate",{playbackRate:c}),M.setPlaybackRate(c),le.features.saveRate&&pe&&!M.info.isLive$.getValue()&&b&&A1(c)},Ro=()=>{let c=_e(cn),b=c.findIndex(({selected:ne})=>ne);if(b===c.length-1)return;let A=c[b+1];Vo(A.value)},Oo=()=>{let c=_e(cn),b=c.findIndex(({selected:ne})=>ne);if(b===0)return;let A=c[b-1];Vo(A.value)},Jn=(c=Ut(K({},gi),{selected:!1}),b)=>{X.log("set subtitles",K({},c)),c.value!==gi.value&&Jt.next(c.isAuto?c.value+"_auto":c.value),Pi.set(c),Yi(b)&&(Of(c.value===gi.value?void 0:c.language),le.features.userVideoPrefs&&i&&Nf(le.userSalt,String(i),{subtitleTrackId:c.value===gi.value?void 0:c.value}))},Pn=c=>{X.log("toggle subtitles");let b=_e(Pi);(b==null?void 0:b.value)===gi.value?wr(c):er(c)},xr=(c,b)=>{X.log("change subtitle",{enabled:c}),c?wr(!0,b):er(!0)},wr=(c,b)=>{X.log("subtitle on");let A=_e(br),ne=_e(fe),Pe=gt!=null?gt:ne,ot;b&&(ot=A.find(Et=>Et.value===b)),ot!=null||(ot=A.filter(Et=>Et.value!==gi.value).find(Et=>Et.language===Pe)),Jn(ot!=null?ot:A[1],c)},er=c=>{X.log("subtitle off"),Jn(void 0,c)};tt.add(M.info.availableTextTracks$.subscribe(c=>{var A;function b(){let ne=[];for(let{language:Pe,isAuto:ot,id:Et}of c){let Nt=Pe&&Yd(Pe);Pe&&Nt&&ne.push({id:Et,language:Pe,title:ot?Ne("subtitles_auto",{language:Nt}):Nt})}return ne}(A=a==null?void 0:a.onAvailableSubtitlesChanged)==null||A.call(a,b())}));let Br=ae(!0),ts=c=>{Br.set(c)},We=(c,b,A=!0)=>{var ne;if($e({message:`seek to time, time: ${c}`}),X.log("seek to time",{time:c,action:b,forcePrecise:A}),pt.next(b),M.info.isLive$.getValue()){let Pe=M.info.duration$.getValue(),ot=Math.min(0,Pe+c);M.seekTime(ot,A)}else{if(E!=null&&E.getValue())return;M.info.isEnded$.getValue()&&($e({message:"seek after ended, call callbacks.onPlay"}),(ne=a==null?void 0:a.onPlay)==null||ne.call(a)),M.seekTime(dg(c),A)}},jt=c=>{$e({message:`seek to episode start time: ${c}`}),X.log("seek to episode start time",{time:c}),We(c,ms.SeekAction.EPISODE,!0)},Ci=(c,b)=>{$e({message:`seek to percent, percent: ${c}`}),X.log("seek to percent",{percent:c,action:b});let A=_e(wn)*c;We(A,b,!1)},fn=c=>{$e({message:`seek external, time: ${c}`}),X.log("seek external",{time:c}),pt.next(ms.SeekAction.UNKNOWN),M.seekTime(M.info.isLive$.getValue()?-c:c)},No=c=>{var ne,Pe;let b=(ne=c.max)!=null?ne:"none",A=(Pe=c.min)!=null?Pe:"none";$e({message:`set auto quality limitation. Max: ${b}. Min: ${A}`}),X.log("set auto quality limits",{max:b,min:A}),M.setAutoQualityLimits(c)},Bo=c=>{$e({message:`seek external to episode start time: ${c}`}),X.log("seek external to episode start time",{time:c}),We(c,ms.SeekAction.EPISODE,!0)},Do=c=>{$e({message:`set playback rate to: ${c}`}),X.log("set playback rate external",{playbackRate:c}),M.setPlaybackRate(c)},tr=ae(void 0),is=ae(!1),Ls=c=>{$e({message:`start scrubbing, progress: ${c}`}),X.log("start scrubbing",{progress:c}),is.set(!0),Sr(c)},Sr=c=>{tr.set(c)},os,te,Ze=()=>{tr.set(void 0),is.set(!1)},Kt=()=>{clearTimeout(te),clearTimeout(os),os=window.setTimeout(()=>{Ze()},500),Se==null||Se.removeEventListener("seeked",Kt)},mi=c=>{$e({message:`complete scrubbing, progress: ${c}`}),X.log("complete scrubbing",{progress:c}),Ci(c,ms.SeekAction.SLIDER),_e(Ht.ui.isMobile)&&_e(Ht.state.currentFormat$)===ci.VideoFormat.HLS?(Se==null||Se.addEventListener("seeked",Kt),te=window.setTimeout(()=>{Kt()},300)):Ze()},Ui=xi([Gt,wn,tr],([c,b,A],ne)=>{ne((0,ut.isNonNullable)(A)?A*b:c)}),zi=ae(!1),Wi=()=>{zi.set(!0)},ir=()=>{zi.set(!1)},ki=xi([_i],([{width:c}],b)=>{let A=c0(c);b(A)}),Ti=F.filter(c=>h1(c)),Fo=xi([ki,dt],([c,b])=>b?Ti.filter(A=>!A.hideOnMobile):Ti.filter(A=>{var ne;return!((ne=A.hideOnDesktopGridTypes)!=null&&ne.includes(c))})),$o=ae(F.filter(c=>_1(c))),Cr=xi([$o,ki],([c,b])=>c.filter(A=>{var ne;return!((ne=A.hideOnDesktopGridTypes)!=null&&ne.includes(b))})),yo=xi([Cr,Fo],([c,b])=>[...le.features.additionalButtonsDesktopControlPanelRight?c.filter(A=>A.type==="desktop-control-panel-right"):[],...le.features.additionalButtons?b.map((A,ne)=>{var Pe;return{id:ne,weight:ne,type:"desktop-control-panel-right",testId:A.testId,icon:A.iconUrl,onClick:A.onClick,ariaLabel:(Pe=A.ariaLabel)!=null?Pe:A.tooltip,tooltipText:A.tooltip}}):[]]),or=ae(H),St=xi([or],([c])=>le.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?Ut(K({},b),{onClick:b.onChangeEnabled}):b):[]),wt=(c,b)=>{let A=_e($o).map(ne=>ne.id!==c?ne:K(K({},ne),b));$o.set(A)},vo=c=>{let b=_e($o);if(b.some(A=>A.id===c.id)){$e({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),$o.set(b)},on=c=>{let b=_e($o);if(!b.some(A=>A.id===c)){$e({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),$o.set(b)},Ji=c=>{pt.next(ms.SeekAction.LIVE),$e({message:"live switch to low latency "+c}),X.log("live switch to low latency "+c),M.setLiveLowLatency(c)},li=(c,b)=>{let A=_e(or).map(ne=>ne.id!==c?ne:K(K({},ne),b));or.set(A)},Ki=c=>{let b=_e(or);if(b.some(A=>A.id===c.id)){$e({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),or.set(b)},Ms=c=>{let b=_e(or);if(!b.some(A=>A.id===c)){$e({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),or.set(b)},Dr=ae(U),Ec=xi([Dr],([c])=>le.features.additionalContextMenuItems?c:[]),hp=(c,b)=>{let A=_e(Dr).map(ne=>ne.id!==c?ne:K(K({},ne),b));Dr.set(A)},Ic=c=>{let b=_e(Dr);if(b.some(A=>A.id===c.id)){$e({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Dr.set(b)},_p=c=>{let b=_e(Dr);if(!b.some(A=>A.id===c)){$e({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),Dr.set(b)},kc=xi([dt,ce],([c,b],A)=>{A(c&&b)}),bp=()=>{pt.next(ms.SeekAction.LIVE),$e({message:"switch to active live"}),X.log("switch to active live"),M.seekTime(0),M.info.playbackState$.getValue()!==ci.PlaybackState.PLAYING&&Ht.actions.internal.togglePlay()},Ac=()=>{X.log("skip adman"),Fe.skip()},$p=(c=!0)=>{var ne;(0,ut.assertNonNullable)(Ht),$e({message:`switch from ads to video, callPlay: ${c}`}),X.log("switch from ads to video",{callPlay:c}),ye.set("video"),c&&M.play(),l&&en(!0,!0);let b=(ne=_e(yt))==null?void 0:ne.muted,A=!M.info.muted$.getValue();b!==void 0&&!A&&en(b,!0),yt.set(void 0)},Pc=()=>{(0,ut.assertNonNullable)(Ht),$e({message:"switch from video to ads"}),X.log("switch from video to ads"),Ht.actions.internal.pause(),lt(),ye.set("ads")},yp=c=>{(0,ut.assertNonNullable)(Ht);let b=c?"LiveWaitingStart":"thumb";X.log("set live waiting start",{state:c,playerPhase:b}),ye.set(b)},Lc=c=>{(0,ut.assertNonNullable)(Ht);let b=c?"LiveWaitingRecover":"thumb";X.log("set live waiting recover",{state:c,playerPhase:b}),ye.set(b)},xp=c=>{(0,ut.assertNonNullable)(Ht);let b=c?"LiveWaitingRecord":"thumb";X.log("set live waiting record",{state:c,playerPhase:b}),ye.set(b)},Mc=()=>((0,ut.assertNonNullable)(Ht),X.log("get debug text data"),m1(M,ie,Ht,De.getTraceId())),wp=()=>((0,ut.assertNonNullable)(Ht),JSON.stringify(De.getFinishedSpans())),Vc=()=>((0,ut.assertNonNullable)(Ht),v1(M,ie,Ht)),qa=()=>Se,Rc=()=>{$e({message:"toggle chromecast"}),X.log("toggle chromecast"),M.toggleChromecast()},zl=c=>{var A;if((0,ut.assertNonNullable)(Ht),M.info.isEnded$.getValue())return;let b=!c;if(_e(Ht.playerPhase)==="ads"){$e({message:`pause ads, internalCall: ${b}`}),X.log("pause ads",{internalCall:b}),Fe.pause();return}$e({message:`pause video, internalCall: ${b}`}),X.log("pause video",{internalCall:b}),b&&((A=a==null?void 0:a.onPause)==null||A.call(a)),M.pause()},Wl=c=>{var A;(0,ut.assertNonNullable)(Ht);let b=!c;if(_e(Ht.playerPhase)==="ads"){$e({message:`play ads, internalCall: ${b}`}),X.log("play ads",{internalCall:b}),Fe.play();return}$e({message:`play video, internalCall: ${b}`}),X.log("play video",{internalCall:b}),b&&((A=a==null?void 0:a.onPlay)==null||A.call(a)),M.play()},Sp=c=>{(0,ut.assertNonNullable)(Ht);let b=!c;if(_e(Ht.playerPhase)==="ads"){$e({message:"player cannot be stopped during ads via external method"});return}$e({message:`player will be stopped, internalCall: ${b}`}),I==null||I()},Kl=(c,b)=>{(0,ut.assertNonNullable)(Ht),$e({message:`first start, show ads: ${c}, internalCall: ${!b}`}),X.log("first start",{showAds:c,external:b}),c?ye.set("ads"):(ye.set("video"),b?M.play():Ht.actions.internal.togglePlay())},ql=()=>($e({message:"getting time codes"}),f),Ql=()=>{let c=ql();if(!c||[0,1].includes(c.length))return;let b=M.info.position$.getValue();return c.find(A=>A.time>b)},Cp=c=>{let b=c;b||(b=Ql());let A=M.info.position$.getValue();X.log("seek to next episode",K({currentTime:A},b)),b&&($e({message:"seek to next episode"}),We(b.time,ms.SeekAction.EPISODE,!0))},Oc=()=>{let c=ql();if(!c||[0,1].includes(c.length))return;let b=M.info.position$.getValue(),A=c.findIndex(Pe=>Pe.time>b),ne=A===-1?c.length-2:A-2;if(!(ne<0))return c[ne]},Tp=c=>{let b=c;b||(b=Oc());let A=M.info.position$.getValue();X.log("seek to prev episode",K({currentTime:A},b)),b&&($e({message:"seek to prev episode"}),We(b.time,ms.SeekAction.EPISODE,!0))},je=()=>($e({message:"getting preview thumbs data"}),X.log("get preview thumbs data",K({},m)),m),di=()=>Ct(null,null,function*(){let c=oe==null?void 0:oe.isActive(),b="none";oe!=null&&oe.isActive()?(b="exit",yield oe==null?void 0:oe.exit()):(b="request",yield oe==null?void 0:oe.request()),X.log("toggle picture in picture",{isActive:c,action:b})}),Ho=(c=-90)=>{X.log("rotate video",{alphaDiff:c}),Zt.update(b=>b+c)},ns=ae([]);C==null||C.subscribe(c=>{let b=[];for(let A=0;A<c.length;A++){let{range:[ne,Pe],subjects:ot}=c[A];A===0&&ne!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:ne/1e3,text:"",interactive:!0,completed:le.features.interactiveTimeOpenUri?!ot.length||ot.every(Et=>Et.isRemoved):!ot.length}),Pe!==1/0&&b.push({time:Pe/1e3,text:"",interactive:!1,completed:!0})}ns.set(b)});let mn=ae(!1);E==null||E.subscribe(c=>{c&&_e(is)&&Ze()});let dg=c=>{if(!T)return c;let b=_e(ns),A=_e(wn),Pe=_e(Xo)/A,ot=b.find(Et=>Et.interactive&&!Et.completed&&Et.time>Pe);return typeof(ot==null?void 0:ot.time)=="number"?Math.min(c,ot.time-.05):c},d_=()=>{Ht.ui.episodes.panelOpened$.set(!1)},c_=()=>{X.log("destroy store"),clearTimeout(te),clearTimeout(os),tt.unsubscribe(),Ot.unsubscribe(),M.destroy(),Fe.destroy(),ee==null||ee.destroy(),j==null||j.destroy(),Ie.unsubscribe(),Ii==null||Ii.disconnect(),Ii=null,Qe.destroy()},u_=xi([Sn,Ye,xt],([c,b,A])=>p.features.doubleForwardAvailable&&!c&&b==="video"&&A),Ep=ae(!1),cg=2,Nc=null,ug=c=>{if(!_e(Un)&&c)return;let b=M.info.currentPlaybackRate$.getValue();c?b!==cg&&(Nc=b,Vo(cg,!1),Ep.set(!0)):(Nc&&Vo(Nc,!1),Ep.set(!1),Nc=null)};Ye.subscribe(c=>{c!=="video"&&ug(!1)});let Ht={interfaceLanguage$:fe,isCyrillicRelatedInterface$:Ve,initVideo:At,videoId:i,isClip:o,playerPhase:Ye,vsid:ht,state:{positionExact$:Gt,positionWithScrubbing$:Ui,duration$:wn,playbackState$:vt,isPlaying$:Un,isLoaderVisible:Fi,bufferedProgress$:si,isLive$:$i,canChangePlaybackSpeed$:xt,isActiveLive$:Sn,isOldestAvailableLive$:Zo,isRewindableLive$:zn,isEnded$:wi,muted$:yn,volume$:co,trafficSavingEnabled$:xn,highQualityEnabled$:vi,autoQualityLimitingAvailable$:uo,availableVideoStreams$:Jr,availableAudioStreams$:fo,videoStream$:Pr,audioStream$:Wn,currentQuality$:dn,isAutoQualityEnabled$:ft,availableQualities$:Lr,currentPlaybackRate$:Ao,availablePlaybackRates$:cn,currentSubtitle$:Pi,availableTextTracks$:Po,availableSubtitlesList$:br,currentSubtitleCaptions$:Yn,isAutoSubtitleCaptionVisible$:$r,chromecastState$:no,chromecastDeviceName$:Fn,chromecastConnected$:gr,currentFormat$:Yo,throughputEstimation$:ko,videoBitrate$:mr,videoSize$:Hn,errorLog$:Ce,crashed$:ce,isAudioAvailable$:vs,isAudioDisabled:!!l,canDownload:le.features.download&&!!d,availableSources$:un,hasMpegSources$:yr,isInteractive:T,showInteractiveGraph:le.features.interactiveGraph,showSeekToInteractive:le.features.seekToInteractive,showPlayPrevChapter:le.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:le.features.interactiveTimeIndicator&&!!_e(ns).length,interactiveEpisodes$:ns,isInteractiveTime$:E?oi(E):ae(!1),isInteractiveExpectation$:mn,hasInteractiveBranches:L,playPrevChapterDisabledTooltip:B,looped$:kn,loadedMetadata$:Ae,isAutoQualityAvailable$:En},ui:{t:Ne,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:F.length?F.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:Lt},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:it,isFullscreenOpenedByKeyboard:Wt,rotateAlpha:Zt,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:_i,isMobile:dt,mobileNotReportControlHidden$:kc,icon3DVideoVisible:ae(!1),scrubbingInProgress:is,volumeChangingInProgress:zi,is3DVideo:Ft,currentGridType$:ki,additionalButtonsDeprecated$:Fo,additionalDesktopControlPanelRightButtons$:yo,additionalSettingsMenuItems$:St,additionalContextMenuItems$:Ec,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:Br,controlBlocks:{topLeft:ae(void 0),topRight:ae(void 0),middle:ae(void 0),bottom:ae(void 0),bottomLeft:ae(void 0),bottomRight:ae(void 0)},videoTitleInfo:ae(void 0),doubleForwardOn$:Ep,doubleForwardAvailable$:u_},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:oe,annotationsApi:Be,slotsApi:Je},actions:{internal:{preload:Si,firstStart:c=>Kl(c,!1),play:()=>Wl(!1),pause:()=>zl(!1),togglePlay:mo,toggleMuted:pi,openSettingsMenu:Jo,closeSettingsMenu:ro,openSettingsSubMenu:pn,closeSettingsSubMenu:fi,setVolume:c=>Zi(c,!1),setMuted:c=>en(c,!1),startVolumeChanging:Wi,stopVolumeChanging:ir,setVideoStream:Cn,setAudioStream:c=>Kn(c,!1),setQuality:(c,b)=>Ri(c,b,!1),setTrafficSavingEnabled:(c,b)=>Xi(c,b,!1),setHighQualityEnabled:(c,b)=>Oi(c,b,!1),setPlaybackRate:Vo,incrementPlaybackRate:Ro,decrementPlaybackRate:Oo,setSubtitle:c=>Jn(c,!1),toggleSubtitle:()=>Pn(!1),togglePictureInPicture:di,startScrubbing:Ls,progressScrubbing:Sr,completeScrubbing:mi,toggleChromecast:Rc,switchToActiveLive:bp,switchFromAdsToVideo:$p,switchFromVideoToAds:Pc,skipAd:Ac,setLiveWaitingStart:yp,setLiveWaitingRecover:Lc,setLiveWaitingRecord:xp,getDebugTextData:Mc,getTraceTextData:wp,getDebugPanelData:Vc,getVideoElement:qa,seekTime:(c,b,A)=>We(c,b,A),clearDelayedBufferingCheckTimeout:Xr,seekEpisodeStartTime:jt,seekToPercent:Ci,getNextEpisode:Ql,seekToNextEpisode:Cp,getPrevEpisode:Oc,seekToPrevEpisode:Tp,startLogging:Eo,stopLogging:Io,startCameraManualRotation:jo,stopCameraManualRotation:Dn,moveCameraFocusPX:O,holdCamera:et,releaseCamera:Qt,getVideoEpisodes:ql,getPreviewThumbsData:je,downloadVideo:mt,addLanguage:Bf,setLanguage:Ke,nextMovie:ui,videoRotate:Ho,correctSeekTimeToInteractive:dg,replayInteractive:V,setLooped:Vr,reportProblem:tn,setAutoplayNextEnabled:Rr,setTimerNextVideoRunning:Or,prevVideoClick:Mo,nextVideoClick:Zn,nextVideoAnnouncementShow:Nr,nextVideoAnnouncementClick:Xn,nextVideoAnnouncementAuto:nt,nextVideoAnnouncementCancel:Vt,checkFullscreenSupport:Yt,changeDoubleForwardOn:ug},external:{firstStart:c=>Kl(c,!0),play:()=>Wl(!0),pause:()=>zl(!0),stop:()=>Sp(!0),seekTime:c=>fn(c),seekEpisodeStartTime:c=>Bo(c),setPlaybackRate:c=>Do(c),setAutoQualityLimits:c=>No(c),setMuted:c=>en(c,!0),toggleSubtitle:()=>Pn(!0),changeSubtitle:xr,setVolume:c=>Zi(c,!0),returnFocusToEpisodes:d_,updateAdditionalSettingsItem:li,addAdditionalSettingsItem:Ki,removeAdditionalSettingsItem:Ms,updateAdditionalContextItem:hp,addAdditionalContextItem:Ic,removeAdditionalContextItem:_p,updateAdditionalButton:wt,addAdditionalButton:vo,removeAdditionalButton:on,setLiveLowLatency:Ji,hideControls:()=>ts(!1),showControls:()=>ts(!0),setQuality:c=>Ri(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Xi(c,"to-video",!0),setHighQualityEnabled:c=>Oi(c,"to-video",!0),changeAudioStream:qn}},callbacks:a,setUiCallbacks:c=>{Ee=K({},c)},getAdmanWrapper:()=>Fe,getLogger:()=>st,getPlayer:()=>M,destroy:c_};return Ht};function Nn(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:u}=Ts(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var Dy=["disabledControls$","additionalButtons"],Fy=["interactiveTimeIndicator"],Al=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!Dy.includes(n)){let l=o||Fy.includes(n);s.set(Nn(t,i,n,l))}}};var Ku=(t,e,i)=>Ct(null,null,function*(){yield wo(),e&&i&&(i.focus(),t.set(!1))});var Hy=we('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Om(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Hy();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function Nm(t,e){z(e,!0);let[i,o]=He(),n=()=>S(a,"$contextMenuVisible$",i),s=v(e,"disabled",3,!1),l=v(e,"ariaLabel",3,""),d=Te(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,m=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,x=J(void 0);qe(()=>{r(x)&&Tt(()=>{p.set(r(x))})});let y=E=>{let V=Qs(E),I=e0(r(x));m.set(I),u.set(V),a.set(!n())},w=()=>{f.set(!0)},T=()=>{f.set(!1)},C=g(()=>n()?"opened":"");Dt(t,{get className(){return r(C)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:y,focus:w,blur:T,get ariaExpanded(){return n()},get ref(){return r(x)},set ref(E){N(x,E,!0)},children:(E,V)=>{Om(E,{})},$$slots:{default:!0}}),W(),o()}var Uy=t=>{t.stopPropagation()},zy=P("<div><!> <div></div> <div></div></div>"),Wy={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
231
 
228
232
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
229
233
  }
@@ -248,8 +252,8 @@ Try switching the\xA0quality to\xA0Auto.`},x1=Tb;var Cs=new Map;Cs.set(hl.Interf
248
252
  opacity: 0;
249
253
  }
250
254
  }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
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 Gd(t,e){var te;U(e,!0),Q(t,Ly);let[i,o]=Fe(),n=()=>S(C,"$isMobile",i),s=()=>S(k,"$areControlsVisible",i),l=()=>S(V,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(y,"$interactiveControlsOpacity$",i),u=()=>S(L,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),p=Z(void 0),x=Ie(),w=vo(),{interactiveControlsOpacity$:y}=w,C=x.ui.isMobile,T=x.ui.isFullscreen,E=x.state.isInteractiveTime$,L=w.showInteractiveTimeIndicatorTooltip$,k=x.ui.controlsVisible,I=(te=x.callbacks)==null?void 0:te.onInteractiveTimeIndicatorClick,V=x.ui.currentGridType$,j=g(()=>!n()&&s()),H=g(()=>Ys(l(),"s")),F=g(()=>!d()||!!a()||r(j)),K=Z(!1);qe(()=>{B(K,r(F),!0)});let ee=()=>{B(K,!0)},Y=()=>{var ve;de(),(ve=r(p))==null||ve.addEventListener("animationiteration",ee,{once:!0})},de=()=>{var ve;B(K,!1),(ve=r(p))==null||ve.removeEventListener("animationiteration",ee)},oe=ve=>{L.set(ve)},fe=g(()=>u()&&!r(F));qe(()=>{u()?Y():de()});let _e=()=>{r(F)||(L.set(!0),I==null||I())};dn(()=>{L.clearTimeout(),de()});let pe=()=>{L.set(!1)},Oe=q("tooltip_interactive_interaction_time_indicator");var ne=My();let Re;ne.__mousemove=[Py],ne.__click=_e;var re=_(ne);Eo(re,{get tooltipContent(){return Oe},get tooltipActive(){return r(fe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:oe,get ref(){return v()},set ref(ve){v(ve)},children:(ve,He)=>{Dd(ve,{completed:!0})},$$slots:{default:!0}});var O=A(re,2);let ue;nt(O,ve=>v(ve),()=>v());var Ve=A(O,2);let ge;nt(Ve,ve=>B(p,ve),()=>r(p)),h(ne),D((ve,He,me)=>{Re=ie(ne,1,"interactive-episode-icon-animated svelte-od3veb",null,Re,ve),ue=ie(O,1,"ref-block svelte-od3veb",null,ue,He),ge=ie(Ve,1,"pulse svelte-od3veb",null,ge,me)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(H)}),()=>({hidden:r(F)}),()=>({paused:r(K)})]),kt("mouseleave",ne,pe),$(t,ne),z(),o()}pt(["mousemove","click"]);function Hu(t,e){U(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),s=m(e,"ref",15);Eo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=Qe();let u=g(()=>e.buttonComponent);var f=he(a);ki(f,()=>r(u),(v,p)=>{p(v,Ss(()=>{var x;return(x=e.buttonComponentProps)!=null?x:{}}))}),$(l,a)},$$slots:{default:!0}}),z()}var Es={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Ry=Te('<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 Im(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}function Zs(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),s=m(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");Im(t,{get style(){return r(l)},get width(){return n()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var Ny=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Oy=M("<!> <!>",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 Va(t,e){U(e,!0),Q(t,By);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ie().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Bt(t,{get className(){return r(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=Oy(),x=he(p);{var w=T=>{var E=Ny();$(T,E)};R(x,T=>{o()&&T(w)})}var y=A(x,2);let C=g(()=>e.type==="prev");Zs(y,{get isMobile(){return o()},get isPrev(){return r(C)}}),$(f,p)},$$slots:{default:!0}}),z()}var Dy=Te('<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 jd(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var d0=require("@vkontakte/videoplayer-shared/es2015");var Hy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Fy=M("<!> <div><!></div>",1),Uy={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 Ml(t,e){U(e,!0),Q(t,Uy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=m(e,"className",3,""),l=m(e,"click",3,d0.noop),d=q("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Bt(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return ss.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=Fy(),p=he(v);{var x=T=>{var E=Hy();$(T,E)};R(p,T=>{o()&&T(x)})}var w=A(p,2);let y;var C=_(w);jd(C,{}),h(w),D(T=>y=ie(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(u,v)},$$slots:{default:!0}}),z()}var zy=Te('<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 Qr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=zy(),d=_(l);h(l),D(()=>{Ue(l,"width",i()),Ue(l,"height",o()),Ue(l,"viewBox",n()),Ue(d,"fill",s())}),$(t,l)}var Wy=Te('<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 Is(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=Wy(),d=_(l);h(l),D(()=>{Ue(l,"width",i()),Ue(l,"height",o()),Ue(l,"viewBox",n()),Ue(d,"fill",s())}),$(t,l)}var c0=require("@vkontakte/videoplayer-shared/es2015");var Ky=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),qy=M("<!> <div><!></div>",1),Qy={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 Ll(t,e){U(e,!0),Q(t,Qy);let[i,o]=Fe(),n=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=vo(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,c0.noop),x=Ie().ui.t,{toggle:w}=s,y=g(()=>w),C=g(()=>n()!==null),T=g(()=>r(C)?n():a()),E=g(()=>r(T)?x("tooltip_pause"):x("tooltip_play")),L=g(()=>r(T)?Is:Qr),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),I=g(()=>r(C)?r(y):v());Bt(t,{get className(){return r(k)},testId:"btn-play",get click(){return r(I)},get disabled(){return u()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return ss.KeyK},get ref(){return l()},set ref(V){l(V)},children:(V,j)=>{var H=qy();let F=g(()=>r(L));var K=he(H);{var ee=fe=>{var _e=Ky();$(fe,_e)};R(K,fe=>{d()&&fe(ee)})}var Y=A(K,2);let de;var oe=_(Y);ki(oe,()=>r(F),(fe,_e)=>{_e(fe,{})}),h(Y),D(fe=>de=ie(Y,1,"svelte-1ot3duq",null,de,fe),[()=>({mobile:d()})]),$(V,H)},$$slots:{default:!0}}),z(),o()}var Gy=Te('<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 km(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}function Yd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=q("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Bt(t,{get className(){return r(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{km(d,{})},$$slots:{default:!0}}),z()}var jy=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Yy={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 Zd(t,e){U(e,!0),Q(t,Yy);let[i,o]=Fe(),n=()=>S(a,"$autoplayNextEnabled$",i),s=m(e,"ref",15,void 0),l=Ie(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!n(),!0)},v=d("aria_label_autoplay"),p=g(()=>n()?"true":"false");Bt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return r(p)},get ref(){return s()},set ref(x){s(x)},children:(x,w)=>{var y=jy(),C=_(y);let T;var E=_(C);{var L=I=>{Qr(I,{width:"14",height:"14",fill:"#000"})},k=I=>{Is(I,{width:"14",height:"14",fill:"#000"})};R(E,I=>{n()?I(L):I(k,!1)})}h(C),h(y),D(I=>T=ie(C,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:n()})]),$(x,y)},$$slots:{default:!0}}),z(),o()}var Zy=Te('<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 Am(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}function Xd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=q("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Bt(t,{get className(){return r(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Am(d,{})},$$slots:{default:!0}}),z()}var Xy=Te('<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 Pm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Xy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}var Jy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Mm(t,e){Q(t,Jy);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");Pm(t,{get"data-testid"(){return r(o)}})}function Jd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=m(e,"graphIsOpened",3,!1),d=Ie().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=g(()=>o()?"hidden":"");Bt(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=g(()=>!!s());Mm(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),z()}var Lm=require("@vkontakte/videoplayer-core/es2015");function ec(t,e){U(e,!0);let[i,o]=Fe(),n=()=>S(u,"$playbackState$",i),s=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ie(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=g(()=>()=>{if(!l()){f();return}n()===Lm.PlaybackState.PAUSED&&v()}),x=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),y=g(()=>l()&&n()===Lm.PlaybackState.PLAYING);Bt(t,{get className(){return r(x)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(p)},children:(C,T)=>{Td(C,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}var Vm=require("@vkontakte/videoplayer-shared/es2015");var e4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),t4=M('<img class="icon" aria-hidden="true"/>');function Ra(t,e){"use strict";let i=Z(!1),o=()=>{B(i,!0)};var n=Qe(),s=he(n);{var l=a=>{var u=e4();$(a,u)},d=a=>{var u=t4();D(()=>Ue(u,"src",e.icon)),kt("error",u,o),ua(u),$(a,u)};R(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function Rm(t,e){U(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Vm.noop),n=m(e,"ref",15),s=g(()=>o()===Vm.noop),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Eo(t,{get disabled(){return r(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,u)=>{let f=g(()=>{var v;return(v=e.testId)!=null?v:e.id});Bt(a,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(l)},get testId(){return r(f)},children:(v,p)=>{Ra(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var u0=t=>!!t.buttonComponent;var ks={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Fu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Kn(t,i,n,o))};var n4=M('<div><!> <div class="controls svelte-1iiubm3" data-testid="player_controls"><div class="controls-left svelte-1iiubm3"><!> <!> <!></div> <div class="controls-right svelte-1iiubm3"></div></div></div> <!>',1),r4={hash:"svelte-1iiubm3",code:".wrapper-bottom.svelte-1iiubm3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;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-1iiubm3::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1iiubm3 > :where(.svelte-1iiubm3) {pointer-events:auto;}.controls.svelte-1iiubm3 {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-1iiubm3, .controls-right.svelte-1iiubm3 {display:flex;align-content:center;}.controls-left.svelte-1iiubm3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iiubm3 > *:not(:first-child), .controls-right.svelte-1iiubm3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iiubm3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iiubm3 {transition:none;}"};function Om(t,e){var xo,tr;U(e,!0),Q(t,r4);let[i,o]=Fe(),n=()=>S(wt,"$disabledControls$",i),s=()=>S(ti,"$adPlaybackState",i),l=()=>S(Qt,"$playbackState$",i),d=()=>S(Go,"$currentSubtitle$",i),a=()=>S(li,"$isEnded$",i),u=()=>S(hi,"$currentGridType$",i),f=()=>S(ut,"$isLive$",i),v=()=>S(so,"$chromecastState$",i),p=()=>S(Gi,"$isPictureInPictureActive",i),x=()=>S(ko,"$pictureInPictureType$",i),w=()=>S(Ao,"$availableSubtitlesList$",i),y=()=>S(Po,"$contextMenuOpenedByKeyboard$",i),C=()=>S(Pi,"$showContextMenuBtn$",i),T=()=>S(Jt,"$playerSize",i),E=()=>S(eo,"$isRewindableLive$",i),L=()=>S(ri,"$isActiveLive$",i),k=()=>S(ur,"$graphIsOpened$",i),I=()=>S(Xe,"$contextMenuVisible$",i),V=()=>S(Ut,"$isFullscreen",i),j=()=>S(gt,"$autoplayNextEnabled",i),H=()=>S(r(Ar),"$prevButton",i),F=()=>S(r(Zr),"$replayButton",i),K=()=>S(r(lt),"$playButton",i),ee=()=>S(r(mi),"$nextButton",i),Y=()=>S(r(co),"$playPrevChapterButton",i),de=()=>S(r(No),"$seekToInteractiveButton",i),oe=()=>S(r(Oo),"$interactiveGraphButton",i),fe=()=>S(r(Bo),"$liveButton",i),_e=()=>S(r(_i),"$time",i),pe=()=>S(r(Jo),"$episodes",i),Oe=()=>S(r(vi),"$vkLogo",i),ne=()=>S(r($n),"$volume",i),Re=()=>S(r(On),"$subtitles",i),re=()=>S(r(fs),"$settings",i),O=()=>S(r(Xr),"$context",i),ue=()=>S(r(ms),"$fullscreen",i),Ve=()=>S(r(hr),"$chromecast",i),ge=()=>S(yi,"$additionalDesktopControlPanelRightButtons$",i),te=()=>S(Lo,"$isInteractiveTime$",i),ve=()=>S(pi,"$settingsMenuVisible",i),He=()=>S(xi,"$settingButtonRef$",i),me=()=>S(Mo,"$startedByKeyboard$",i),ct=()=>S(ot,"$isAudioAvailable$",i),X=()=>S(Wt,"$fakeIsPlaying$",i),Me=()=>S(Yo,"$seekToInteractiveDisabledTooltip$",i),ke=()=>S(bt,"$adPosition",i),ze=()=>S(Lt,"$position$",i),rt=()=>S(et,"$adDuration",i),mt=()=>S(Ze,"$duration$",i),vt=m(e,"playerControlsWrapperRef",15,void 0),Tt=m(e,"playerControlsRef",15,void 0),Je=m(e,"isAds",3,!1),zt=m(e,"logoTargetUrl",3,""),Yt=m(e,"isOneVideoPlaylist",3,!1),Zt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Wt}=vo(),se=Ie(),Ft=vo(),be=Mt(),we=se.actions.internal.toggleMuted,ce=se.actions.internal.togglePlay,De=se.actions.internal.pause,Ke=se.actions.internal.toggleSubtitle,Ae=se.actions.internal.checkFullscreenSupport,Ge=(xo=se.callbacks)==null?void 0:xo.onAudioDoesNotExistHint,Ne=(tr=se.callbacks)==null?void 0:tr.onAudioDisabledHint,Ze=se.state.duration$,Lt=se.state.positionWithScrubbing$,Qt=se.state.playbackState$,ot=se.state.isAudioAvailable$,ai=se.state.isAudioDisabled,li=se.state.isEnded$,ut=se.state.isLive$,ri=se.state.isActiveLive$,eo=se.state.isRewindableLive$,{isActive$:Gi,type$:ko}=Ft.pictureInPicture$,pi=se.ui.settingsMenu.visible$,gi=se.ui.settingsMenu.openedByBtnKeyboard$,Kt=se.ui.controls,Xt=se.actions.internal.getVideoEpisodes(),so=se.state.chromecastState$,Ao=se.state.availableSubtitlesList$,Go=se.state.currentSubtitle$,wt=Kt.disabledControls$,Xe=se.ui.contextMenu.visible$,Pi=se.ui.contextMenu.showContextMenuBtn$,Po=se.ui.contextMenu.openedByBtnKeyboard$,Mo=se.ui.startedByKeyboard$,un=se.ui.controlBlocks,N=se.ui.t,et=se.ads.duration,bt=se.ads.position,ti=se.ads.playbackState,Ut=se.ui.isFullscreen,Jt=se.ui.playerSize,hi=se.ui.currentGridType$,yi=se.ui.additionalDesktopControlPanelRightButtons$,gt=se.ui.autoplayNextEnabled$,Bi=se.actions.internal.getVideoElement,pn=se.actions.internal.replayInteractive,fn=se.actions.internal.prevVideoClick,jo=se.actions.internal.nextVideoClick,fi=se.state.isInteractive,Lo=se.state.isInteractiveTime$,Tr=se.state.showInteractiveGraph,ao=se.state.showSeekToInteractive,lo=se.state.showPlayPrevChapter,mn=se.state.showInteractiveTimeIndicator,vn=se.state.playPrevChapterDisabledTooltip,Yo=Ft.seekToInteractiveDisabledTooltip$,ur=Ft.graphIsOpened$,An=be.features.interactiveResponsiveUi,Er=g(()=>n().has("EPISODE_BUTTON")),cs=g(()=>n().has("GRAPH_BUTTON")),Pn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Ir=g(()=>n().has("PLAY_BUTTON")),Qn=g(()=>n().has("REPLAY_BUTTON")),Gn=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Vo=()=>se.actions.internal.toggleChromecast(),Di=g(()=>Je()?s()==="playing":l()===Na.PlaybackState.PLAYING),Mn=g(()=>d().value!=="off"),Ln=g(()=>a()&&!Je()||fi),Vn=g(()=>An?r(Ln)&&Zi(u(),"m"):r(Ln)),pr=g(()=>!a()||fi||Je()),fr=g(()=>Zi(u(),"m")),mr=g(()=>e.showNextPrevButtons&&Zi(u(),"m")&&!Je()&&e.nextButtonActive),vr=g(()=>e.showNextPrevButtons&&Zi(u(),"m")&&!Je()&&e.prevButtonActive),kr=g(()=>!Je()&&!!f()),us=g(()=>v()!==Na.ChromecastState.NOT_AVAILABLE&&!(p()&&x()===1)&&Zi(u(),"m")&&!fi),jn=g(()=>e.showAutoplayNext&&!Yt()&&Zi(u(),"s")),go=g(()=>w().length>0&&Zi(u(),"m")),Rn=g(()=>y()||C()),gn=g(()=>Zi(u(),"s")&&!Je()),ht=g(()=>!e.logoHidden&&!Je()),ii=g(()=>be.features.fullscreen&&Ae()&&(e.logoHidden||Zi(u(),An?"xs":"s"))&&!(p()&&x()===1)&&(fi?Zt():!0)),Zo=g(()=>(!f()||Je())&&!(be.features.interactiveHideTime&&fi)),Yn=g(()=>T().width>100),hn=g(()=>Tr&&Zi(u(),"m")),ho=g(()=>An?ao&&Zi(u(),"s"):ao),Mi=g(()=>An?lo&&Zi(u(),"s"):lo),Ti=g(()=>!Je()&&!f()&&!!(Xt!=null&&Xt.length)&&r(fr)&&!r(Er)),Xo=g(()=>!E()||!!L()),Zn=g(()=>k()?N("tooltip_interactive_graph_on"):N("tooltip_interactive_graph_off")),jr=g(()=>I()?N("tooltip_context_menu_close"):N("tooltip_context_menu_open")),Yr=(Ct,xt)=>Ct?xt&&xt===Na.PlaybackState.PAUSED?N("tooltip_play"):"":N("tooltip_live"),gr=g(()=>Yr(r(Xo),l())),_n=g(()=>be.logoType==="vk_video"?N("tooltip_vk_video_logo"):N("tooltip_vk_logo")),ps=g(()=>r(Mn)?N("tooltip_subtitles_on"):N("tooltip_subtitles_off")),Nn=g(()=>V()?N("tooltip_fullscreen_on"):N("tooltip_fullscreen_off")),Ro=g(()=>v()===Na.ChromecastState.CONNECTED?N("tooltip_chromecast_on"):N("tooltip_chromecast_off")),Xn=g(()=>j()?N("tooltip_autoplay_on"):N("tooltip_autoplay_off")),bn=Z(0),Gt=ni({}),Jn=ni({}),Ar=g(()=>Kt.prevButton),Zr=g(()=>Kt.replayButton),lt=g(()=>Kt.playButton),mi=g(()=>Kt.nextButton),co=g(()=>Kt.playPrevChapterButton),No=g(()=>Kt.seekToInteractiveButton),Oo=g(()=>Kt.interactiveGraphButton),Bo=g(()=>Kt.liveButton),_i=g(()=>Kt.time),Jo=g(()=>Kt.episodes),vi=g(()=>Kt.vkLogo),$n=g(()=>Kt.volume),On=g(()=>Kt.subtitles),fs=g(()=>Kt.settings),Xr=g(()=>Kt.context),ms=g(()=>Kt.fullscreen),hr=g(()=>Kt.chromecast),_o=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:F()?F().right-F().left:0,playButton:K()?K().right-K().left:0,nextButton:ee()?ee().right-ee().left:0,playPrevChapterButton:Y()?Y().right-Y().left:0,seekToInteractiveButton:de()?de().right-de().left:0,interactiveGraphButton:oe()?oe().right-oe().left:0,liveButton:fe()?fe().right-fe().left:0,time:_e()?_e().right-_e().left:0,episodes:pe()?pe().right-pe().left:0,vkLogo:Oe()?Oe().right-Oe().left:0,volume:ne()?ne().right-ne().left:0,subtitles:Re()?Re().right-Re().left:0,settings:re()?re().right-re().left:0,context:O()?O().right-O().left:0,fullscreen:ue()?ue().right-ue().left:0,chromecast:Ve()?Ve().right-Ve().left:0,additionalButtons:ge().length?ge().reduce(Ct=>[...Ct,40],[]):[]})),Bn=Z(0);qe(()=>{(!r(Bn)||r(Bn)<r(_o).time)&&Et(()=>B(Bn,r(_o).time,!0))});let Pr=Z(!1);qe(()=>{let Ct=0;r(Ti)&&(Zi(u(),"xl")?Ct=r(_o).time:Ct=60);let xt=r(_o).prevButton+r(_o).playButton+r(_o).nextButton+r(_o).seekToInteractiveButton+r(_o).interactiveGraphButton+r(_o).liveButton+r(Bn)+Ct;B(Pr,r(Zo)&&r(bn)>=xt,!0)});let Mr=g(()=>r(Pr)&&Zi(u(),"m")),st=(0,Nm.debounceFn)(Pl,260),Pt=(0,Nm.debounceFn)(Fu,260);qe(()=>{T(),te(),st(Bi(),Kt,Gt,e.showControls),Pt(Bi(),un,Jn,e.showControls)}),qe(()=>{Jn.bottom=vt()});let xi=ae();qe(()=>{ve(),He()&&Et(()=>wl(He(),ve(),gi))});let uo;qe(()=>{me(),Et(()=>Du(Mo,me(),uo))});function po(){Qs({isAudioDisabled:ai,isAudioAvailable:ct(),isAds:Je(),audioIsNotExistHintCallback:Ge,audioDisabledHintCallback:Ne})&&we()}let to=fi?pn:ce,io=g(()=>X()!==null),fo=g(()=>r(io)?X():r(Di)),Dn=g(()=>r(fo)?N("tooltip_pause"):N("tooltip_play")),bo=N("tooltip_episodes"),$o=g(()=>{var Ct,xt,mo,nn;return r(vr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Es.prevButton,buttonComponent:Va,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:fn.bind(null,!0)},tooltipEnabled:!((xt=(Ct=se.callbacks)==null?void 0:Ct.uiInfo)!=null&&xt.onPrevButtonMouseEnter)&&!((nn=(mo=se.callbacks)==null?void 0:mo.uiInfo)!=null&&nn.onPrevButtonMouseLeave),mouseEnter:()=>{var ji,di,zi;(zi=(di=(ji=se.callbacks)==null?void 0:ji.uiInfo)==null?void 0:di.onPrevButtonMouseEnter)==null||zi.call(di,Kn(Bi(),Gt,"prevButton",e.showControls))},mouseLeave:()=>{var ji,di,zi;(zi=(di=(ji=se.callbacks)==null?void 0:ji.uiInfo)==null?void 0:di.onPrevButtonMouseLeave)==null||zi.call(di,Kn(Bi(),Gt,"prevButton",e.showControls))},tooltipText:N("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Do=g(()=>r(Vn)?{id:"replayButton",type:"desktop-control-panel-left",weight:Es.replayButton,buttonComponent:Ml,buttonComponentProps:{disabled:r(Qn),click:to},tooltipText:N("tooltip_restart"),disabled:r(Qn)}:void 0),er=g(()=>r(pr)?{id:"playButton",type:"desktop-control-panel-left",weight:Es.playButton,buttonComponent:Ll,buttonComponentProps:{disabled:r(Ir),isPlaying:r(Di),click:ce},tooltipText:r(Dn),disabled:r(Ir)}:void 0),en=g(()=>{var Ct,xt,mo,nn;return r(mr)?{id:"nextButton",type:"desktop-control-panel-left",weight:Es.nextButton,buttonComponent:Va,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:jo.bind(null,!0)},tooltipEnabled:!((xt=(Ct=se.callbacks)==null?void 0:Ct.uiInfo)!=null&&xt.onNextButtonMouseEnter)&&!((nn=(mo=se.callbacks)==null?void 0:mo.uiInfo)!=null&&nn.onNextButtonMouseLeave),mouseEnter:()=>{var ji,di,zi;(zi=(di=(ji=se.callbacks)==null?void 0:ji.uiInfo)==null?void 0:di.onNextButtonMouseEnter)==null||zi.call(di,Kn(Bi(),Gt,"nextButton",e.showControls))},mouseLeave:()=>{var ji,di,zi;(zi=(di=(ji=se.callbacks)==null?void 0:ji.uiInfo)==null?void 0:di.onNextButtonMouseLeave)==null||zi.call(di,Kn(Bi(),Gt,"nextButton",e.showControls))},tooltipText:N("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Lr=g(()=>fi&&r(Mi)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Es.playPrevChapterButton,buttonComponent:Yd,buttonComponentProps:{disabled:r(Gn),click:e.playPrevChapter},tooltipText:N("tooltip_interactive_go_back"),disabledTooltipContent:N(vn),disabled:r(Gn)}:void 0),_r=g(()=>fi&&r(ho)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Es.seekToInteractiveButton,buttonComponent:Xd,buttonComponentProps:{disabled:r(Pn),click:e.seekToInteractive},tooltipText:N("tooltip_interactive_seek"),disabled:r(Pn),disabledTooltipContent:N(Me())}:void 0),Vr=g(()=>fi&&r(hn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Es.interactiveGraphButton,buttonComponent:Jd,buttonComponentProps:{disabled:r(cs),click:ur.toggle,graphIsOpened:k()},tooltipText:r(Zn)}:void 0),yo=g(()=>r(kr)?{id:"liveButton",type:"desktop-control-panel-left",weight:Es.liveButton,buttonComponent:ec,buttonComponentProps:{isLiveActive:r(Xo),ariaLabel:r(gr)},tooltipText:r(gr),disabled:r(Xo)&&l()===Na.PlaybackState.PLAYING}:void 0),Rr=g(()=>[r($o),r(Do),r(er),r(en),r(Lr),r(_r),r(Vr),r(yo)].filter(Ct=>!!Ct).sort(Ca)),We=g(()=>r(ht)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ks.vkLogo,buttonComponent:Ud,buttonComponentProps:{targetUrl:zt(),logoClickable:e.logoClickable,click:De},tooltipText:r(_n),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ei=g(()=>r(jn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ks.autoplayNext,buttonComponent:Zd,tooltipText:r(Xn)}:void 0),wi=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:ks.volume,buttonComponent:dm,buttonComponentProps:{click:po,isAds:Je()}})),yn=g(()=>r(go)?{id:"subtitles",type:"desktop-control-panel-right",weight:ks.subtitles,buttonComponent:rm,buttonComponentProps:{isSubtitlesEnabled:r(Mn),click:Ke},tooltipText:r(ps)}:void 0),tn=g(()=>r(gn)?{id:"settings",type:"desktop-control-panel-right",weight:ks.settings,buttonComponent:Il,buttonComponentProps:{ref$:xi},tooltipText:ve()?void 0:N("tooltip_settings_off")}:void 0),Se=g(()=>be.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ks.context,buttonComponent:Em,buttonComponentProps:{ariaLabel:N("aria_label_context_menu")},className:r(Rn)?"":"out-of-view",tooltipText:r(jr)}:void 0),St=g(()=>r(ii)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ks.fullscreen,buttonComponent:Fd,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Nn)}:void 0),si=g(()=>r(us)?{id:"chromecast",type:"desktop-control-panel-right",weight:ks.chromecast,buttonComponent:zd,buttonComponentProps:{state:v(),click:Vo},tooltipText:r(Ro)}:void 0),Ei=g(()=>[r(We),r(ei),r(wi),r(yn),r(tn),r(Se),r(St),r(si),...ge()].filter(Ct=>!!Ct).sort(Ca));var on=n4(),Hi=he(on);let Fi;var dt=_(Hi);let qt=g(()=>!e.showControls),Ui=g(()=>!r(Yn));Ma(dt,{get isHidden(){return r(qt)},get timelineNotAvailable(){return r(Ui)},get isAds(){return Je()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return Gt.timeline},set ref(Ct){Gt.timeline=Ct}});var xn=A(dt,2),wn=_(xn),br=_(wn);Ii(br,17,()=>r(Rr),Ct=>Ct.id,(Ct,xt)=>{Hu(Ct,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get tooltipEnabled(){return r(xt).tooltipEnabled},get mouseEnter(){return r(xt).mouseEnter},get mouseLeave(){return r(xt).mouseLeave},get ref(){return Gt[r(xt).id]},set ref(mo){Gt[r(xt).id]=mo}})});var Nr=A(br,2);{var vs=Ct=>{let xt=g(()=>!e.showControls),mo=g(()=>Je()?ke():ze()),nn=g(()=>Je()?rt():mt());Bd(Ct,{get isHidden(){return r(xt)},isMobile:!1,get showDuration(){return r(Mr)},get position(){return r(mo)},get duration(){return r(nn)},get ref(){return Gt.time},set ref(ji){Gt.time=ji}})};R(Nr,Ct=>{r(Zo)&&Ct(vs)})}var Li=A(Nr,2);let Vi=g(()=>!r(Ti));Eo(Li,{className:"w-max",get disabled(){return r(Vi)},get tooltipContent(){return bo},get ref(){return Gt.episodes},set ref(Ct){Gt.episodes=Ct},children:(Ct,xt)=>{var mo=Qe(),nn=he(mo);{var ji=di=>{Kd(di,{get position(){return ze()},get duration(){return mt()},get timeCodes(){return Xt}})};R(nn,di=>{r(Ti)&&di(ji)})}$(Ct,mo)},$$slots:{default:!0}}),h(wn);var Ho=A(wn,2);Ii(Ho,21,()=>r(Ei),Ct=>Ct.id,(Ct,xt)=>{var mo=Qe(),nn=he(mo);{var ji=zi=>{Hu(zi,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get ref(){return Gt[r(xt).id]},set ref(Ms){Gt[r(xt).id]=Ms}})},di=zi=>{let Ms=g(()=>!!r(xt).disabled);Rm(zi,{get id(){return r(xt).id},get testId(){return r(xt).testId},get icon(){return r(xt).icon},get ariaLabel(){return r(xt).ariaLabel},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(Ms)},get onClick(){return r(xt).onClick},get disableMouseupTooltipShow(){return r(xt).disableMouseupTooltipShow},get ref(){return Gt[r(xt).id]},set ref(Or){Gt[r(xt).id]=Or}})};R(nn,zi=>{u0(r(xt))?zi(ji):zi(di,!1)})}$(Ct,mo)}),h(Ho),h(xn),nt(xn,Ct=>Tt(Ct),()=>Tt()),h(Hi),nt(Hi,Ct=>vt(Ct),()=>vt());var Fo=A(Hi,2);{var $r=Ct=>{Gd(Ct,{get ref(){return Gt.interactiveTimeIndicator},set ref(xt){Gt.interactiveTimeIndicator=xt}})};R(Fo,Ct=>{mn&&Ct($r)})}D(Ct=>Fi=ie(Hi,1,"wrapper-bottom svelte-1iiubm3",null,Fi,Ct),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),cr(wn,"clientWidth",Ct=>B(bn,Ct)),$(t,on),z(),o()}var Vl=require("@vkontakte/videoplayer-core/es2015");var Bm=require("@vkontakte/videoplayer-shared/es2015");var s4=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),a4=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),l4={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 Dm(t,e){Q(t,l4);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Bm.noop),n=g(()=>o()===Bm.noop),s=g(()=>r(n)||i()),l=Z(!1),d=()=>{B(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Bt(t,{get className(){return r(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return e.testId},children:(u,f)=>{var v=Qe(),p=he(v);{var x=y=>{var C=s4();$(y,C)},w=y=>{var C=a4();D(()=>Ue(C,"src",e.iconUrl)),kt("error",C,d),ua(C),$(y,C)};R(p,y=>{r(l)?y(x):y(w,!1)})}$(u,v)},$$slots:{default:!0}})}var d4=Te('<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 Hm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=d4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var p0=require("@vkontakte/videoplayer-shared/es2015");var c4=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),u4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Uu(t,e){U(e,!0),Q(t,u4);let i=m(e,"muted",3,!1),o=m(e,"click",3,p0.noop),n=m(e,"ref",15,void 0),l=Ie().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?Hm:js),u=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Bt(t,{get testId(){return r(u)},get click(){return o()},get ariaLabel(){return r(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,v)=>{var p=c4();let x=g(()=>r(a));var w=_(p);ki(w,()=>r(x),(y,C)=>{C(y,{})}),h(p),$(f,p)},$$slots:{default:!0}}),z()}var p4=Te('<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 Fm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=p4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(3),h(o),$(t,o)}var f4={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 Um(t,e){Q(t,f4);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");Fm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var f0=require("@vkontakte/videoplayer-shared/es2015");function zm(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,f0.noop),s=q("menu_pip");Bt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Um(l,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}var Wm=require("@vkontakte/videoplayer-shared/es2015");var m4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},v4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},g4=M("<div><!></div>"),h4=M("<div><!></div>"),_4=M("<div><!></div>"),b4=M("<!> <!> <!>",1),$4=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),y4=M('<div class="wrapper-middle svelte-tg0ura"><!></div>'),x4=M("<div><!></div> <!> <div><!></div>",1),w4=M('<div aria-hidden="true">\xB7</div> <!>',1),S4=M('<!> <!> <div><div><div class="controls mobile svelte-tg0ura"><div class="controls-group contain svelte-tg0ura"><!> <!> <!> <!></div> <div class="controls-group svelte-tg0ura"><!> <!> <!></div></div> <!></div></div> <!>',1),C4={hash:"svelte-tg0ura",code:`.wrapper-bottom.svelte-tg0ura {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;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-tg0ura::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-tg0ura > :where(.svelte-tg0ura) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-tg0ura {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-tg0ura {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-tg0ura {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-tg0ura {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-tg0ura,
255
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Xd(t,e){var j;z(e,!0),q(t,Wy);let[i,o]=He(),n=()=>S(T,"$isMobile",i),s=()=>S(I,"$areControlsVisible",i),l=()=>S(B,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(w,"$interactiveControlsOpacity$",i),u=()=>S(V,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(C,"$isFullscreen",i),m=v(e,"ref",15,void 0),p=J(void 0),x=Te(),y=go(),{interactiveControlsOpacity$:w}=y,T=x.ui.isMobile,C=x.ui.isFullscreen,E=x.state.isInteractiveTime$,V=y.showInteractiveTimeIndicatorTooltip$,I=x.ui.controlsVisible,L=(j=x.callbacks)==null?void 0:j.onInteractiveTimeIndicatorClick,B=x.ui.currentGridType$,F=g(()=>!n()&&s()),H=g(()=>Zs(l(),"s")),U=g(()=>!d()||!!a()||r(F)),Z=J(!1);qe(()=>{N(Z,r(U),!0)});let re=()=>{N(Z,!0)},G=()=>{var oe;be(),(oe=r(p))==null||oe.addEventListener("animationiteration",re,{once:!0})},be=()=>{var oe;N(Z,!1),(oe=r(p))==null||oe.removeEventListener("animationiteration",re)},ee=oe=>{V.set(oe)},pe=g(()=>u()&&!r(U));qe(()=>{u()?G():be()});let ve=()=>{r(U)||(V.set(!0),L==null||L())};an(()=>{V.clearTimeout(),be()});let ue=()=>{V.set(!1)},Me=Q("tooltip_interactive_interaction_time_indicator");var Oe=zy();let le;Oe.__mousemove=[Uy],Oe.__click=ve;var De=_(Oe);Co(De,{get tooltipContent(){return Me},get tooltipActive(){return r(pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ee,get ref(){return m()},set ref(oe){m(oe)},children:(oe,Be)=>{zd(oe,{completed:!0})},$$slots:{default:!0}});var X=k(De,2);let M;rt(X,oe=>m(oe),()=>m());var st=k(X,2);let Fe;rt(st,oe=>N(p,oe),()=>r(p)),h(Oe),D((oe,Be,Je)=>{le=se(Oe,1,"interactive-episode-icon-animated svelte-od3veb",null,le,oe),M=se(X,1,"ref-block svelte-od3veb",null,M,Be),Fe=se(st,1,"pulse svelte-od3veb",null,Fe,Je)},[()=>({mobile:n(),fullscreen:f(),invisible:r(U),"icon-small":r(H)}),()=>({hidden:r(U)}),()=>({paused:r(Z)})]),It("mouseleave",Oe,ue),$(t,Oe),W(),o()}ct(["mousemove","click"]);function qu(t,e){z(e,!0);let i=v(e,"tooltipEnabled",3,!0),o=v(e,"disabled",3,!1),n=v(e,"className",3,void 0),s=v(e,"ref",15);Co(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=Ue();let u=g(()=>e.buttonComponent);var f=me(a);Mi(f,()=>r(u),(m,p)=>{p(m,Ss(()=>{var x;return(x=e.buttonComponentProps)!=null?x:{}}))}),$(l,a)},$$slots:{default:!0}}),W()}var Es={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var qy=we('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Bm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=qy();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function Jd(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=v(e,"width",3,"24"),s=v(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");Bm(t,{get style(){return r(l)},get width(){return n()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var Qy=P('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Gy=P("<!> <!>",1),jy={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 Ma(t,e){z(e,!0),q(t,jy);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),l=Te().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Dt(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(a)},get ref(){return i()},set ref(f){i(f)},children:(f,m)=>{var p=Gy(),x=me(p);{var y=C=>{var E=Qy();$(C,E)};R(x,C=>{o()&&C(y)})}var w=k(x,2);let T=g(()=>e.type==="prev");Jd(w,{get isMobile(){return o()},get isPrev(){return r(T)}}),$(f,p)},$$slots:{default:!0}}),W()}var Yy=we('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function ec(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var C0=require("@vkontakte/videoplayer-shared/es2015");var Zy=P('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Xy=P("<!> <div><!></div>",1),Jy={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 Pl(t,e){z(e,!0),q(t,Jy);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=v(e,"className",3,""),l=v(e,"click",3,C0.noop),d=Q("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Dt(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return us.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var m=Xy(),p=me(m);{var x=C=>{var E=Zy();$(C,E)};R(p,C=>{o()&&C(x)})}var y=k(p,2);let w;var T=_(y);ec(T,{}),h(y),D(C=>w=se(y,1,"svelte-1ot3duq",null,w,C),[()=>({mobile:o()})]),$(u,m)},$$slots:{default:!0}}),W()}var e4=we('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Yr(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"),s=v(e,"fill",3,"var(--btn-color)");var l=e4(),d=_(l);h(l),D(()=>{ze(l,"width",i()),ze(l,"height",o()),ze(l,"viewBox",n()),ze(d,"fill",s())}),$(t,l)}var t4=we('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function Is(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"),s=v(e,"fill",3,"var(--btn-color)");var l=t4(),d=_(l);h(l),D(()=>{ze(l,"width",i()),ze(l,"height",o()),ze(l,"viewBox",n()),ze(d,"fill",s())}),$(t,l)}var T0=require("@vkontakte/videoplayer-shared/es2015");var i4=P('<div class="icon-background-mobile svelte-1ot3duq"></div>'),o4=P("<!> <div><!></div>",1),n4={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 Ll(t,e){z(e,!0),q(t,n4);let[i,o]=He(),n=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=go(),l=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),a=v(e,"isPlaying",3,!1),u=v(e,"disabled",3,!1),f=v(e,"className",3,""),m=v(e,"click",3,T0.noop),x=Te().ui.t,{toggle:y}=s,w=g(()=>y),T=g(()=>n()!==null),C=g(()=>r(T)?n():a()),E=g(()=>r(C)?x("tooltip_pause"):x("tooltip_play")),V=g(()=>r(C)?Is:Yr),I=g(()=>`${d()?"btn-m--play":""} ${f()}`),L=g(()=>r(T)?r(w):m());Dt(t,{get className(){return r(I)},testId:"btn-play",get click(){return r(L)},get disabled(){return u()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return us.KeyK},get ref(){return l()},set ref(B){l(B)},children:(B,F)=>{var H=o4();let U=g(()=>r(V));var Z=me(H);{var re=pe=>{var ve=i4();$(pe,ve)};R(Z,pe=>{d()&&pe(re)})}var G=k(Z,2);let be;var ee=_(G);Mi(ee,()=>r(U),(pe,ve)=>{ve(pe,{})}),h(G),D(pe=>be=se(G,1,"svelte-1ot3duq",null,be,pe),[()=>({mobile:d()})]),$(B,H)},$$slots:{default:!0}}),W(),o()}var r4=we('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Dm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=r4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function tc(t,e){z(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=Q("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Dt(t,{get className(){return r(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Dm(d,{})},$$slots:{default:!0}}),W()}var s4=P('<span class="gutter svelte-et3q1q"><span><!></span></span>'),a4={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 ic(t,e){z(e,!0),q(t,a4);let[i,o]=He(),n=()=>S(a,"$autoplayNextEnabled$",i),s=v(e,"ref",15,void 0),l=Te(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!n(),!0)},m=d("aria_label_autoplay"),p=g(()=>n()?"true":"false");Dt(t,{click:f,get ariaLabel(){return m},role:"switch",get areaChecked(){return r(p)},get ref(){return s()},set ref(x){s(x)},children:(x,y)=>{var w=s4(),T=_(w);let C;var E=_(T);{var V=L=>{Yr(L,{width:"14",height:"14",fill:"#000"})},I=L=>{Is(L,{width:"14",height:"14",fill:"#000"})};R(E,L=>{n()?L(V):L(I,!1)})}h(T),h(w),D(L=>C=se(T,1,"toggler svelte-et3q1q",null,C,L),[()=>({enabled:n()})]),$(x,w)},$$slots:{default:!0}}),W(),o()}var l4=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Fm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=l4();ke(o,()=>K({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));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function oc(t,e){z(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=Q("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Dt(t,{get className(){return r(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Fm(d,{})},$$slots:{default:!0}}),W()}var d4=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Hm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=d4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var c4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Um(t,e){q(t,c4);let i=v(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");Hm(t,{get"data-testid"(){return r(o)}})}function nc(t,e){z(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=v(e,"graphIsOpened",3,!1),d=Te().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=g(()=>o()?"hidden":"");Dt(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,m)=>{let p=g(()=>!!s());Um(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),W()}var zm=require("@vkontakte/videoplayer-core/es2015");function rc(t,e){z(e,!0);let[i,o]=He(),n=()=>S(u,"$playbackState$",i),s=v(e,"isMobile",3,!1),l=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),a=Te(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,m=a.actions.internal.togglePlay,p=g(()=>()=>{if(!l()){f();return}n()===zm.PlaybackState.PAUSED&&m()}),x=g(()=>s()?"":"btn--live btn-full-opacity"),y=g(()=>l()?"btn-live":"btn-live-offset"),w=g(()=>l()&&n()===zm.PlaybackState.PLAYING);Dt(t,{get className(){return r(x)},get testId(){return r(y)},get disabled(){return r(w)},get ariaLabel(){return d()},get click(){return r(p)},children:(T,C)=>{Ad(T,{get isActive(){return l()}})},$$slots:{default:!0}}),W(),o()}var Wm=require("@vkontakte/videoplayer-shared/es2015");var u4=P('<div class="icon icon-error-stub"><div class="inner"></div></div>'),p4=P('<img class="icon" aria-hidden="true"/>');function Va(t,e){"use strict";let i=J(!1),o=()=>{N(i,!0)};var n=Ue(),s=me(n);{var l=a=>{var u=u4();$(a,u)},d=a=>{var u=p4();D(()=>ze(u,"src",e.icon)),It("error",u,o),ua(u),$(a,u)};R(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function Km(t,e){z(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Wm.noop),n=v(e,"ref",15),s=g(()=>o()===Wm.noop),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Co(t,{get disabled(){return r(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,u)=>{let f=g(()=>{var m;return(m=e.testId)!=null?m:e.id});Dt(a,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(l)},get testId(){return r(f)},children:(m,p)=>{Va(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),W()}var E0=t=>!!t.buttonComponent;var ks={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Qu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Nn(t,i,n,o))};var v4=P('<div><!> <div class="controls svelte-1iiubm3" data-testid="player_controls"><div class="controls-left svelte-1iiubm3"><!> <!> <!></div> <div class="controls-right svelte-1iiubm3"></div></div></div> <!>',1),g4={hash:"svelte-1iiubm3",code:".wrapper-bottom.svelte-1iiubm3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;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-1iiubm3::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1iiubm3 > :where(.svelte-1iiubm3) {pointer-events:auto;}.controls.svelte-1iiubm3 {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-1iiubm3, .controls-right.svelte-1iiubm3 {display:flex;align-content:center;}.controls-left.svelte-1iiubm3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iiubm3 > *:not(:first-child), .controls-right.svelte-1iiubm3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iiubm3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iiubm3 {transition:none;}"};function Qm(t,e){var yo,or;z(e,!0),q(t,g4);let[i,o]=He(),n=()=>S(lt,"$disabledControls$",i),s=()=>S(Gt,"$adPlaybackState",i),l=()=>S(Xt,"$playbackState$",i),d=()=>S(Mt,"$currentSubtitle$",i),a=()=>S(ni,"$isEnded$",i),u=()=>S(wi,"$currentGridType$",i),f=()=>S(bi,"$isLive$",i),m=()=>S(Ii,"$chromecastState$",i),p=()=>S(At,"$isPictureInPictureActive",i),x=()=>S(ti,"$pictureInPictureType$",i),y=()=>S(Go,"$availableSubtitlesList$",i),w=()=>S(Io,"$contextMenuOpenedByKeyboard$",i),T=()=>S(Eo,"$showContextMenuBtn$",i),C=()=>S(ri,"$playerSize",i),E=()=>S(ho,"$isRewindableLive$",i),V=()=>S(Fi,"$isActiveLive$",i),I=()=>S(mr,"$graphIsOpened$",i),L=()=>S(Ot,"$contextMenuVisible$",i),B=()=>S(vt,"$isFullscreen",i),F=()=>S(xt,"$autoplayNextEnabled",i),H=()=>S(r(yr),"$prevButton",i),U=()=>S(r(In),"$replayButton",i),Z=()=>S(r(mt),"$playButton",i),re=()=>S(r(pi),"$nextButton",i),G=()=>S(r(ro),"$playPrevChapterButton",i),be=()=>S(r(Jo),"$seekToInteractiveButton",i),ee=()=>S(r(fi),"$interactiveGraphButton",i),pe=()=>S(r(pn),"$liveButton",i),ve=()=>S(r(Hi),"$time",i),ue=()=>S(r(Yi),"$episodes",i),Me=()=>S(r(Zi),"$vkLogo",i),Oe=()=>S(r(en),"$volume",i),le=()=>S(r(kn),"$subtitles",i),De=()=>S(r(Vr),"$settings",i),X=()=>S(r(tn),"$context",i),M=()=>S(r(Rr),"$fullscreen",i),st=()=>S(r(Or),"$chromecast",i),Fe=()=>S($i,"$additionalDesktopControlPanelRightButtons$",i),j=()=>S(uo,"$isInteractiveTime$",i),oe=()=>S(ui,"$settingsMenuVisible",i),Be=()=>S(Si,"$settingButtonRef$",i),Je=()=>S(jo,"$startedByKeyboard$",i),$e=()=>S(Lt,"$isAudioAvailable$",i),ie=()=>S(Zt,"$fakeIsPlaying$",i),Se=()=>S(ko,"$seekToInteractiveDisabledTooltip$",i),Ee=()=>S(Qt,"$adPosition",i),Qe=()=>S(yt,"$position$",i),tt=()=>S(et,"$adDuration",i),gt=()=>S(Ye,"$duration$",i),dt=v(e,"playerControlsWrapperRef",15,void 0),ht=v(e,"playerControlsRef",15,void 0),it=v(e,"isAds",3,!1),Wt=v(e,"logoTargetUrl",3,""),Yt=v(e,"isOneVideoPlaylist",3,!1),ei=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Zt}=go(),Ae=Te(),Ft=go(),Ce=kt(),Ie=Ae.actions.internal.toggleMuted,ce=Ae.actions.internal.togglePlay,Ke=Ae.actions.internal.pause,fe=Ae.actions.internal.toggleSubtitle,Ve=Ae.actions.internal.checkFullscreenSupport,Ne=(yo=Ae.callbacks)==null?void 0:yo.onAudioDoesNotExistHint,ye=(or=Ae.callbacks)==null?void 0:or.onAudioDisabledHint,Ye=Ae.state.duration$,yt=Ae.state.positionWithScrubbing$,Xt=Ae.state.playbackState$,Lt=Ae.state.isAudioAvailable$,_i=Ae.state.isAudioDisabled,ni=Ae.state.isEnded$,bi=Ae.state.isLive$,Fi=Ae.state.isActiveLive$,ho=Ae.state.isRewindableLive$,{isActive$:At,type$:ti}=Ft.pictureInPicture$,ui=Ae.ui.settingsMenu.visible$,_t=Ae.ui.settingsMenu.openedByBtnKeyboard$,pt=Ae.ui.controls,Jt=Ae.actions.internal.getVideoEpisodes(),Ii=Ae.state.chromecastState$,Go=Ae.state.availableSubtitlesList$,Mt=Ae.state.currentSubtitle$,lt=pt.disabledControls$,Ot=Ae.ui.contextMenu.visible$,Eo=Ae.ui.contextMenu.showContextMenuBtn$,Io=Ae.ui.contextMenu.openedByBtnKeyboard$,jo=Ae.ui.startedByKeyboard$,Dn=Ae.ui.controlBlocks,O=Ae.ui.t,et=Ae.ads.duration,Qt=Ae.ads.position,Gt=Ae.ads.playbackState,vt=Ae.ui.isFullscreen,ri=Ae.ui.playerSize,wi=Ae.ui.currentGridType$,$i=Ae.ui.additionalDesktopControlPanelRightButtons$,xt=Ae.ui.autoplayNextEnabled$,Ai=Ae.actions.internal.getVideoElement,co=Ae.actions.internal.replayInteractive,yn=Ae.actions.internal.prevVideoClick,xn=Ae.actions.internal.nextVideoClick,vi=Ae.state.isInteractive,uo=Ae.state.isInteractiveTime$,fr=Ae.state.showInteractiveGraph,po=Ae.state.showSeekToInteractive,no=Ae.state.showPlayPrevChapter,Fn=Ae.state.showInteractiveTimeIndicator,Yo=Ae.state.playPrevChapterDisabledTooltip,ko=Ft.seekToInteractiveDisabledTooltip$,mr=Ft.graphIsOpened$,Hn=Ce.features.interactiveResponsiveUi,vr=g(()=>n().has("EPISODE_BUTTON")),vs=g(()=>n().has("GRAPH_BUTTON")),Xr=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),wn=g(()=>n().has("PLAY_BUTTON")),Un=g(()=>n().has("REPLAY_BUTTON")),Sn=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Zo=()=>Ae.actions.internal.toggleChromecast(),Xo=g(()=>it()?s()==="playing":l()===Ra.PlaybackState.PLAYING),zn=g(()=>d().value!=="off"),gr=g(()=>a()&&!it()||vi),Jr=g(()=>Hn?r(gr)&&to(u(),"m"):r(gr)),fo=g(()=>!a()||vi||it()),Pr=g(()=>to(u(),"m")),Wn=g(()=>e.showNextPrevButtons&&to(u(),"m")&&!it()&&e.nextButtonActive),Cn=g(()=>e.showNextPrevButtons&&to(u(),"m")&&!it()&&e.prevButtonActive),Kn=g(()=>!it()&&!!f()),hr=g(()=>m()!==Ra.ChromecastState.NOT_AVAILABLE&&!(p()&&x()===1)&&to(u(),"m")&&!vi),qn=g(()=>e.showAutoplayNext&&!Yt()&&to(u(),"s")),_o=g(()=>y().length>0&&to(u(),"m")),es=g(()=>w()||T()),Tn=g(()=>to(u(),"s")&&!it()),ft=g(()=>!e.logoHidden&&!it()),ai=g(()=>Ce.features.fullscreen&&Ve()&&(e.logoHidden||to(u(),Hn?"xs":"s"))&&!(p()&&x()===1)&&(vi?ei():!0)),dn=g(()=>(!f()||it())&&!(Ce.features.interactiveHideTime&&vi)),En=g(()=>C().width>100),Lr=g(()=>fr&&to(u(),"m")),Ao=g(()=>Hn?po&&to(u(),"s"):po),cn=g(()=>Hn?no&&to(u(),"s"):no),gi=g(()=>!it()&&!f()&&!!(Jt!=null&&Jt.length)&&r(Pr)&&!r(vr)),Pi=g(()=>!E()||!!V()),Po=g(()=>I()?O("tooltip_interactive_graph_on"):O("tooltip_interactive_graph_off")),Qn=g(()=>L()?O("tooltip_context_menu_close"):O("tooltip_context_menu_open")),_r=(St,wt)=>St?wt&&wt===Ra.PlaybackState.PAUSED?O("tooltip_play"):"":O("tooltip_live"),Mr=g(()=>_r(r(Pi),l())),br=g(()=>Ce.logoType==="vk_video"?O("tooltip_vk_video_logo"):O("tooltip_vk_logo")),Gn=g(()=>r(zn)?O("tooltip_subtitles_on"):O("tooltip_subtitles_off")),jn=g(()=>B()?O("tooltip_fullscreen_on"):O("tooltip_fullscreen_off")),Lo=g(()=>m()===Ra.ChromecastState.CONNECTED?O("tooltip_chromecast_on"):O("tooltip_chromecast_off")),Yn=g(()=>F()?O("tooltip_autoplay_on"):O("tooltip_autoplay_off")),$r=J(0),si=ii({}),un=ii({}),yr=g(()=>pt.prevButton),In=g(()=>pt.replayButton),mt=g(()=>pt.playButton),pi=g(()=>pt.nextButton),ro=g(()=>pt.playPrevChapterButton),Jo=g(()=>pt.seekToInteractiveButton),fi=g(()=>pt.interactiveGraphButton),pn=g(()=>pt.liveButton),Hi=g(()=>pt.time),Yi=g(()=>pt.episodes),Zi=g(()=>pt.vkLogo),en=g(()=>pt.volume),kn=g(()=>pt.subtitles),Vr=g(()=>pt.settings),tn=g(()=>pt.context),Rr=g(()=>pt.fullscreen),Or=g(()=>pt.chromecast),Mo=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:U()?U().right-U().left:0,playButton:Z()?Z().right-Z().left:0,nextButton:re()?re().right-re().left:0,playPrevChapterButton:G()?G().right-G().left:0,seekToInteractiveButton:be()?be().right-be().left:0,interactiveGraphButton:ee()?ee().right-ee().left:0,liveButton:pe()?pe().right-pe().left:0,time:ve()?ve().right-ve().left:0,episodes:ue()?ue().right-ue().left:0,vkLogo:Me()?Me().right-Me().left:0,volume:Oe()?Oe().right-Oe().left:0,subtitles:le()?le().right-le().left:0,settings:De()?De().right-De().left:0,context:X()?X().right-X().left:0,fullscreen:M()?M().right-M().left:0,chromecast:st()?st().right-st().left:0,additionalButtons:Fe().length?Fe().reduce(St=>[...St,40],[]):[]})),Zn=J(0);qe(()=>{(!r(Zn)||r(Zn)<r(Mo).time)&&Tt(()=>N(Zn,r(Mo).time,!0))});let Nr=J(!1);qe(()=>{let St=0;r(gi)&&(to(u(),"xl")?St=r(Mo).time:St=60);let wt=r(Mo).prevButton+r(Mo).playButton+r(Mo).nextButton+r(Mo).seekToInteractiveButton+r(Mo).interactiveGraphButton+r(Mo).liveButton+r(Zn)+St;N(Nr,r(dn)&&r($r)>=wt,!0)});let Xn=g(()=>r(Nr)&&to(u(),"m")),nt=(0,qm.debounceFn)(Al,260),Vt=(0,qm.debounceFn)(Qu,260);qe(()=>{C(),j(),nt(Ai(),pt,si,e.showControls),Vt(Ai(),Dn,un,e.showControls)}),qe(()=>{un.bottom=dt()});let Si=ae();qe(()=>{oe(),Be()&&Tt(()=>xl(Be(),oe(),_t))});let mo;qe(()=>{Je(),Tt(()=>Ku(jo,Je(),mo))});function Ri(){Gs({isAudioDisabled:_i,isAudioAvailable:$e(),isAds:it(),audioIsNotExistHintCallback:Ne,audioDisabledHintCallback:ye})&&Ie()}let Xi=vi?co:ce,Oi=g(()=>ie()!==null),bo=g(()=>r(Oi)?ie():r(Xo)),An=g(()=>r(bo)?O("tooltip_pause"):O("tooltip_play")),Vo=O("tooltip_episodes"),Ro=g(()=>{var St,wt,vo,on;return r(Cn)?{id:"prevButton",type:"desktop-control-panel-left",weight:Es.prevButton,buttonComponent:Ma,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:yn.bind(null,!0)},tooltipEnabled:!((wt=(St=Ae.callbacks)==null?void 0:St.uiInfo)!=null&&wt.onPrevButtonMouseEnter)&&!((on=(vo=Ae.callbacks)==null?void 0:vo.uiInfo)!=null&&on.onPrevButtonMouseLeave),mouseEnter:()=>{var Ji,li,Ki;(Ki=(li=(Ji=Ae.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:li.onPrevButtonMouseEnter)==null||Ki.call(li,Nn(Ai(),si,"prevButton",e.showControls))},mouseLeave:()=>{var Ji,li,Ki;(Ki=(li=(Ji=Ae.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:li.onPrevButtonMouseLeave)==null||Ki.call(li,Nn(Ai(),si,"prevButton",e.showControls))},tooltipText:O("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Oo=g(()=>r(Jr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Es.replayButton,buttonComponent:Pl,buttonComponentProps:{disabled:r(Un),click:Xi},tooltipText:O("tooltip_restart"),disabled:r(Un)}:void 0),Jn=g(()=>r(fo)?{id:"playButton",type:"desktop-control-panel-left",weight:Es.playButton,buttonComponent:Ll,buttonComponentProps:{disabled:r(wn),isPlaying:r(Xo),click:ce},tooltipText:r(An),disabled:r(wn)}:void 0),Pn=g(()=>{var St,wt,vo,on;return r(Wn)?{id:"nextButton",type:"desktop-control-panel-left",weight:Es.nextButton,buttonComponent:Ma,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:xn.bind(null,!0)},tooltipEnabled:!((wt=(St=Ae.callbacks)==null?void 0:St.uiInfo)!=null&&wt.onNextButtonMouseEnter)&&!((on=(vo=Ae.callbacks)==null?void 0:vo.uiInfo)!=null&&on.onNextButtonMouseLeave),mouseEnter:()=>{var Ji,li,Ki;(Ki=(li=(Ji=Ae.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:li.onNextButtonMouseEnter)==null||Ki.call(li,Nn(Ai(),si,"nextButton",e.showControls))},mouseLeave:()=>{var Ji,li,Ki;(Ki=(li=(Ji=Ae.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:li.onNextButtonMouseLeave)==null||Ki.call(li,Nn(Ai(),si,"nextButton",e.showControls))},tooltipText:O("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),xr=g(()=>vi&&r(cn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Es.playPrevChapterButton,buttonComponent:tc,buttonComponentProps:{disabled:r(Sn),click:e.playPrevChapter},tooltipText:O("tooltip_interactive_go_back"),disabledTooltipContent:O(Yo),disabled:r(Sn)}:void 0),wr=g(()=>vi&&r(Ao)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Es.seekToInteractiveButton,buttonComponent:oc,buttonComponentProps:{disabled:r(Xr),click:e.seekToInteractive},tooltipText:O("tooltip_interactive_seek"),disabled:r(Xr),disabledTooltipContent:O(Se())}:void 0),er=g(()=>vi&&r(Lr)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Es.interactiveGraphButton,buttonComponent:nc,buttonComponentProps:{disabled:r(vs),click:mr.toggle,graphIsOpened:I()},tooltipText:r(Po)}:void 0),Br=g(()=>r(Kn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Es.liveButton,buttonComponent:rc,buttonComponentProps:{isLiveActive:r(Pi),ariaLabel:r(Mr)},tooltipText:r(Mr),disabled:r(Pi)&&l()===Ra.PlaybackState.PLAYING}:void 0),ts=g(()=>[r(Ro),r(Oo),r(Jn),r(Pn),r(xr),r(wr),r(er),r(Br)].filter(St=>!!St).sort(Sa)),We=g(()=>r(ft)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ks.vkLogo,buttonComponent:qd,buttonComponentProps:{targetUrl:Wt(),logoClickable:e.logoClickable,click:Ke},tooltipText:r(br),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),jt=g(()=>r(qn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ks.autoplayNext,buttonComponent:ic,tooltipText:r(Yn)}:void 0),Ci=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:ks.volume,buttonComponent:bm,buttonComponentProps:{click:Ri,isAds:it()}})),fn=g(()=>r(_o)?{id:"subtitles",type:"desktop-control-panel-right",weight:ks.subtitles,buttonComponent:vm,buttonComponentProps:{isSubtitlesEnabled:r(zn),click:fe},tooltipText:r(Gn)}:void 0),No=g(()=>r(Tn)?{id:"settings",type:"desktop-control-panel-right",weight:ks.settings,buttonComponent:El,buttonComponentProps:{ref$:Si},tooltipText:oe()?void 0:O("tooltip_settings_off")}:void 0),Bo=g(()=>Ce.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ks.context,buttonComponent:Nm,buttonComponentProps:{ariaLabel:O("aria_label_context_menu")},className:r(es)?"":"out-of-view",tooltipText:r(Qn)}:void 0),Do=g(()=>r(ai)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ks.fullscreen,buttonComponent:Kd,buttonComponentProps:{isFullscreen:B(),click:e.toggleFullscreen},tooltipText:r(jn)}:void 0),tr=g(()=>r(hr)?{id:"chromecast",type:"desktop-control-panel-right",weight:ks.chromecast,buttonComponent:Qd,buttonComponentProps:{state:m(),click:Zo},tooltipText:r(Lo)}:void 0),is=g(()=>[r(We),r(jt),r(Ci),r(fn),r(No),r(Bo),r(Do),r(tr),...Fe()].filter(St=>!!St).sort(Sa));var Ls=v4(),Sr=me(Ls);let os;var te=_(Sr);let Ze=g(()=>!e.showControls),Kt=g(()=>!r(En));Pa(te,{get isHidden(){return r(Ze)},get timelineNotAvailable(){return r(Kt)},get isAds(){return it()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return si.timeline},set ref(St){si.timeline=St}});var mi=k(te,2),Ui=_(mi),zi=_(Ui);Li(zi,17,()=>r(ts),St=>St.id,(St,wt)=>{qu(St,{get buttonComponent(){return r(wt).buttonComponent},get buttonComponentProps(){return r(wt).buttonComponentProps},get tooltipText(){return r(wt).tooltipText},get disabledTooltipContent(){return r(wt).disabledTooltipContent},get disabled(){return r(wt).disabled},get className(){return r(wt).className},get tooltipEnabled(){return r(wt).tooltipEnabled},get mouseEnter(){return r(wt).mouseEnter},get mouseLeave(){return r(wt).mouseLeave},get ref(){return si[r(wt).id]},set ref(vo){si[r(wt).id]=vo}})});var Wi=k(zi,2);{var ir=St=>{let wt=g(()=>!e.showControls),vo=g(()=>it()?Ee():Qe()),on=g(()=>it()?tt():gt());Ud(St,{get isHidden(){return r(wt)},isMobile:!1,get showDuration(){return r(Xn)},get position(){return r(vo)},get duration(){return r(on)},get ref(){return si.time},set ref(Ji){si.time=Ji}})};R(Wi,St=>{r(dn)&&St(ir)})}var ki=k(Wi,2);let Ti=g(()=>!r(gi));Co(ki,{className:"w-max",get disabled(){return r(Ti)},get tooltipContent(){return Vo},get ref(){return si.episodes},set ref(St){si.episodes=St},children:(St,wt)=>{var vo=Ue(),on=me(vo);{var Ji=li=>{jd(li,{get position(){return Qe()},get duration(){return gt()},get timeCodes(){return Jt}})};R(on,li=>{r(gi)&&li(Ji)})}$(St,vo)},$$slots:{default:!0}}),h(Ui);var Fo=k(Ui,2);Li(Fo,21,()=>r(is),St=>St.id,(St,wt)=>{var vo=Ue(),on=me(vo);{var Ji=Ki=>{qu(Ki,{get buttonComponent(){return r(wt).buttonComponent},get buttonComponentProps(){return r(wt).buttonComponentProps},get tooltipText(){return r(wt).tooltipText},get disabledTooltipContent(){return r(wt).disabledTooltipContent},get disabled(){return r(wt).disabled},get className(){return r(wt).className},get ref(){return si[r(wt).id]},set ref(Ms){si[r(wt).id]=Ms}})},li=Ki=>{let Ms=g(()=>!!r(wt).disabled);Km(Ki,{get id(){return r(wt).id},get testId(){return r(wt).testId},get icon(){return r(wt).icon},get ariaLabel(){return r(wt).ariaLabel},get tooltipText(){return r(wt).tooltipText},get disabledTooltipContent(){return r(wt).disabledTooltipContent},get disabled(){return r(Ms)},get onClick(){return r(wt).onClick},get disableMouseupTooltipShow(){return r(wt).disableMouseupTooltipShow},get ref(){return si[r(wt).id]},set ref(Dr){si[r(wt).id]=Dr}})};R(on,Ki=>{E0(r(wt))?Ki(Ji):Ki(li,!1)})}$(St,vo)}),h(Fo),h(mi),rt(mi,St=>ht(St),()=>ht()),h(Sr),rt(Sr,St=>dt(St),()=>dt());var $o=k(Sr,2);{var Cr=St=>{Xd(St,{get ref(){return si.interactiveTimeIndicator},set ref(wt){si.interactiveTimeIndicator=wt}})};R($o,St=>{Fn&&St(Cr)})}D(St=>os=se(Sr,1,"wrapper-bottom svelte-1iiubm3",null,os,St),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),pr(Ui,"clientWidth",St=>N($r,St)),$(t,Ls),W(),o()}var Ml=require("@vkontakte/videoplayer-core/es2015");var Gm=require("@vkontakte/videoplayer-shared/es2015");var h4=P('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),_4=P('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),b4={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 jm(t,e){q(t,b4);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Gm.noop),n=g(()=>o()===Gm.noop),s=g(()=>r(n)||i()),l=J(!1),d=()=>{N(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Dt(t,{get className(){return r(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return e.testId},children:(u,f)=>{var m=Ue(),p=me(m);{var x=w=>{var T=h4();$(w,T)},y=w=>{var T=_4();D(()=>ze(T,"src",e.iconUrl)),It("error",T,d),ua(T),$(w,T)};R(p,w=>{r(l)?w(x):w(y,!1)})}$(u,m)},$$slots:{default:!0}})}var $4=we('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Ym(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=$4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var I0=require("@vkontakte/videoplayer-shared/es2015");var y4=P('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),x4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Gu(t,e){z(e,!0),q(t,x4);let i=v(e,"muted",3,!1),o=v(e,"click",3,I0.noop),n=v(e,"ref",15,void 0),l=Te().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?Ym:Ys),u=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Dt(t,{get testId(){return r(u)},get click(){return o()},get ariaLabel(){return r(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,m)=>{var p=y4();let x=g(()=>r(a));var y=_(p);Mi(y,()=>r(x),(w,T)=>{T(w,{})}),h(p),$(f,p)},$$slots:{default:!0}}),W()}var w4=we('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Zm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=w4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(3),h(o),$(t,o)}var S4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
256
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Xm(t,e){q(t,S4);let i=v(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");Zm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var k0=require("@vkontakte/videoplayer-shared/es2015");function Jm(t,e){z(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,k0.noop),s=Q("menu_pip");Dt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Xm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),W()}var ev=require("@vkontakte/videoplayer-shared/es2015");var C4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},T4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},E4=P("<div><!></div>"),I4=P("<div><!></div>"),k4=P("<div><!></div>"),A4=P("<!> <!> <!>",1),P4=P("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),L4=P('<div class="wrapper-middle svelte-tg0ura"><!></div>'),M4=P("<div><!></div> <!> <div><!></div>",1),V4=P('<div aria-hidden="true">\xB7</div> <!>',1),R4=P('<!> <!> <div><div><div class="controls mobile svelte-tg0ura"><div class="controls-group contain svelte-tg0ura"><!> <!> <!> <!></div> <div class="controls-group svelte-tg0ura"><!> <!> <!></div></div> <!></div></div> <!>',1),O4={hash:"svelte-tg0ura",code:`.wrapper-bottom.svelte-tg0ura {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;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-tg0ura::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-tg0ura > :where(.svelte-tg0ura) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-tg0ura {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-tg0ura {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-tg0ura {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-tg0ura {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-tg0ura,
253
257
  .wrapper-middle-left-second.svelte-tg0ura,
254
258
  .wrapper-middle-right.svelte-tg0ura {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-tg0ura {left:12px;}.wrapper-middle-left-second.svelte-tg0ura {left:64px;}.wrapper-middle-right.svelte-tg0ura {right:12px;}.controls.svelte-tg0ura {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;justify-content:space-between;}.controls-group.svelte-tg0ura {display:flex;}.controls-group.contain.svelte-tg0ura {min-width:0;}.controls-group.svelte-tg0ura > *:not(:first-child) {margin-left:8px;}.hidden.svelte-tg0ura {visibility:hidden;opacity:0;}.controls-hidden.svelte-tg0ura {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-tg0ura {transition:none;}.overlay-mobile.svelte-tg0ura {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
255
259
 
@@ -257,7 +261,7 @@ Try switching the\xA0quality to\xA0Auto.`},x1=Tb;var Cs=new Map;Cs.set(hl.Interf
257
261
  }
258
262
 
259
263
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-tg0ura {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-tg0ura {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-tg0ura {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-tg0ura {left:96px;}.wrapper-middle-right.fullscreen.svelte-tg0ura {right:44px;}.controls-wrapper.fullscreen.svelte-tg0ura {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
260
- }`};function Km(t,e){var Pr,Mr;U(e,!0),Q(t,C4);let[i,o]=Fe(),n=()=>S(pn,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(Go,"$disabledControls$",i),l=()=>S(Ft,"$playbackState$",i),d=()=>S(Mo,"$adPlaybackState",i),a=()=>S(ce,"$isEnded$",i),u=()=>S(N,"$playerSize",i),f=()=>S(Ze,"$scrubbingInProgress",i),v=()=>S(so,"$chromecastState$",i),p=()=>S(Qt,"$isPictureInPictureActive",i),x=()=>S(ot,"$pictureInPictureType$",i),w=()=>S(Lt,"$mobileNotReportControlHidden$",i),y=()=>S(gi,"$chromecastHidden",i),C=()=>S(Zt,"$playerPhase",i),T=()=>S(ko,"$pipHidden",i),E=()=>S(Xe,"$currentGridType$",i),L=()=>S(eo,"$vkLogoHidden",i),k=()=>S(ri,"$volumeHidden",i),I=()=>S(De,"$isLive$",i),V=()=>S(ai,"$settingsMenuVisible",i),j=()=>S(Ne,"$isRewindableLive$",i),H=()=>S(Ge,"$isActiveLive$",i),F=()=>S(be,"$isAudioAvailable$",i),K=()=>S(Ae,"$muted$",i),ee=()=>S(Ke,"$volume$",i),Y=()=>S(Jt,"$isInteractiveTime$",i),de=()=>S(Zn,"$settingButtonRef$",i),oe=()=>S(wt,"$startedByKeyboard$",i),fe=()=>S(un,"$isFullscreen",i),_e=()=>S(et,"$additionalButtons$",i),pe=()=>S(Gi,"$autoplayNextToggleHidden",i),Oe=()=>S(Ao,"$crashed$",i),ne=()=>S(pi,"$settingsHidden",i),Re=()=>S(fn,"$graphIsOpened$",i),re=()=>S(Po,"$adPosition",i),O=()=>S(Pi,"$adDuration",i),ue=()=>S(se,"$position$",i),Ve=()=>S(Wt,"$duration$",i),ge=m(e,"playerControlsWrapperRef",15,void 0),te=m(e,"playerControlsRef",15,void 0),ve=m(e,"isAds",3,!1),He=m(e,"logoTargetUrl",3,""),me=m(e,"isOneVideoPlaylist",3,!1),ct=m(e,"customFullscreenSupported",3,!0),X=Ie(),Me=vo(),ke=Mt(),ze=X.actions.internal.toggleMuted,rt=X.actions.internal.togglePlay,mt=X.actions.internal.pause,vt=X.actions.internal.prevVideoClick,Tt=X.actions.internal.nextVideoClick,Je=X.actions.internal.checkFullscreenSupport,zt=(Pr=X.callbacks)==null?void 0:Pr.onAudioDoesNotExistHint,Yt=(Mr=X.callbacks)==null?void 0:Mr.onAudioDisabledHint,Zt=X.playerPhase,Wt=X.state.duration$,se=X.state.positionWithScrubbing$,Ft=X.state.playbackState$,be=X.state.isAudioAvailable$,we=X.state.isAudioDisabled,ce=X.state.isEnded$,De=X.state.isLive$,Ke=X.state.volume$,Ae=X.state.muted$,Ge=X.state.isActiveLive$,Ne=X.state.isRewindableLive$,Ze=X.ui.scrubbingInProgress,Lt=X.ui.mobileNotReportControlHidden$,{isActive$:Qt,type$:ot}=Me.pictureInPicture$,ai=X.ui.settingsMenu.visible$,li=X.ui.settingsMenu.openedByBtnKeyboard$,ut=X.ui.controls,{volume:ri,vkLogo:eo,autoplayNextToggle:Gi,pip:ko,settings:pi,chromecast:gi}=X.ui.hiddenControls,Kt=X.actions.internal.getVideoEpisodes(),Xt=X.webApi.pictureInPictureApi,so=X.state.chromecastState$,Ao=X.state.crashed$,Go=ut.disabledControls$,wt=X.ui.startedByKeyboard$,Xe=X.ui.currentGridType$,Pi=X.ads.duration,Po=X.ads.position,Mo=X.ads.playbackState,un=X.ui.isFullscreen,N=X.ui.playerSize,et=X.ui.additionalButtonsDeprecated$,bt=X.actions.internal.getVideoElement,ti=X.actions.internal.replayInteractive,Ut=X.state.isInteractive,Jt=X.state.isInteractiveTime$,hi=X.state.showInteractiveGraph,yi=X.state.showSeekToInteractive,gt=X.state.showPlayPrevChapter,Bi=X.state.showInteractiveTimeIndicator,pn=Me.seekToInteractiveDisabledTooltip$,fn=Me.graphIsOpened$,jo=X.ui.controlBlocks,fi=g(()=>q(X.state.playPrevChapterDisabledTooltip)),Lo=g(()=>q(n())),Tr=g(()=>s().has("EPISODE_BUTTON")),ao=g(()=>s().has("GRAPH_BUTTON")),lo=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),mn=g(()=>s().has("PLAY_BUTTON")),vn=g(()=>s().has("REPLAY_BUTTON")),Yo=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),ur=g(()=>l()===Vl.PlaybackState.PLAYING),An=g(()=>d()==="paused"),Er=g(()=>a()&&!ve()&&!Ut),cs=g(()=>!a()||ve()),Pn=g(()=>e.showNextPrevButtons&&!ve()&&e.prevButtonActive),Ir=g(()=>e.showNextPrevButtons&&!ve()&&e.nextButtonActive),Qn=g(()=>u().width>300),Gn=g(()=>u().width>400),Vo=g(f),Di=g(()=>v()!==Vl.ChromecastState.NOT_AVAILABLE&&!(p()&&x()===1)&&!w()&&!Ut&&!y()),Mn=g(()=>C()==="LiveWaitingStart"),Ln=g(()=>!!Xt&&v()!==Vl.ChromecastState.CONNECTED&&!w()&&(x()===1&&r(Mn)||!r(Mn))&&!r(Vo)&&!Ut&&!T()),Vn=Z(!1);Rt(()=>{let st=Xt==null?void 0:Xt.info.isActive$.subscribe(Pt=>B(Vn,Pt,!0));return()=>st==null?void 0:st.unsubscribe()});let pr=g(()=>!r(Vo)&&Zi(E(),"s")),fr=g(()=>!e.logoHidden&&u().width>350&&!L()),mr=g(()=>ke.features.fullscreen&&Je()&&!(p()&&x()===1)&&(Ut?ct():!0)&&!r(Vo)&&!r(Vn)),vr=g(()=>!k()&&!r(Vo)),kr=g(()=>(!I()||ve())&&u().width>260&&!r(Vo)&&!(ke.features.interactiveHideTime&&Ut)),us=g(()=>V()||e.showControls),jn=g(()=>!ve()&&!I()&&!!(Kt!=null&&Kt.length)&&r(Qn)&&!r(Tr)&&!r(Vo)),go=g(()=>!j()||!!H()),Rn=g(()=>hi&&Zi(E(),"m")),gn=g(()=>!F()||K()||ee()===0),ht=ni({}),ii=ni({}),Zo=(0,Wm.debounceFn)(Pl,260),Yn=(0,Wm.debounceFn)(Fu,260);qe(()=>{u(),Y(),Zo(bt(),ut,ht,e.showControls),Yn(bt(),jo,ii,e.showControls)});let hn=()=>X.actions.internal.toggleChromecast();function ho(){return _t(this,null,function*(){Xt!=null&&Xt.isActive()?yield Xt==null?void 0:Xt.exit():yield Xt==null?void 0:Xt.request()})}function Mi(){Qs({isAudioDisabled:we,audioDisabledHintCallback:Yt,isAudioAvailable:F(),audioIsNotExistHintCallback:zt,isAds:ve()})&&ze()}let Ti=Z(""),Xo=(st,Pt)=>{if(!st){B(Ti,q("tooltip_live"),!0);return}Pt&&Pt===Vl.PlaybackState.PAUSED&&B(Ti,q("tooltip_play"),!0)};qe(()=>{Xo(r(go),l())});let Zn=ae();qe(()=>{de()&&wl(de(),V(),li)}),qe(()=>{Du(wt,oe(),ht.playButton)}),qe(()=>{ii.bottom=ge()});var jr=S4(),Yr=he(jr);{var gr=st=>{var Pt=$4(),xi=he(Pt);let uo;var po=A(xi,2);let to;nt(po,dt=>ii.topLeft=dt,()=>ii==null?void 0:ii.topLeft);var io=A(po,2);let fo;var Dn=_(io);Ii(Dn,1,_e,({iconUrl:dt,ariaLabel:qt,testId:Ui,onClick:xn,tooltip:wn})=>dt,(dt,qt)=>{let Ui=()=>r(qt).iconUrl,xn=()=>r(qt).ariaLabel,wn=()=>r(qt).testId,br=()=>r(qt).onClick,Nr=()=>r(qt).tooltip,vs=g(()=>{var Li;return(Li=xn())!=null?Li:Nr()});Dm(dt,{get iconUrl(){return Ui()},get ariaLabel(){return r(vs)},get testId(){return wn()},get onClick(){return br()}})});var bo=A(Dn,2);{var $o=dt=>{Zd(dt,{get ref(){return ht.autoplayNextToggle},set ref(qt){ht.autoplayNextToggle=qt}})};R(bo,dt=>{e.showAutoplayNext&&!me()&&!pe()&&dt($o)})}var Do=A(bo,2);{var er=dt=>{zd(dt,{isMobile:!0,click:hn,get state(){return v()},get ref(){return ht.chromecast},set ref(qt){ht.chromecast=qt}})};R(Do,dt=>{r(Di)&&dt(er)})}var en=A(Do,2);{var Lr=dt=>{zm(dt,{click:ho,get isPictureInPictureActive(){return p()},get ref(){return ht.pip},set ref(qt){ht.pip=qt}})};R(en,dt=>{r(Ln)&&dt(Lr)})}var _r=A(en,2);{var Vr=dt=>{Il(dt,{get ref$(){return Zn}})};R(_r,dt=>{Oe()&&!ne()&&dt(Vr)})}var yo=A(_r,2);{var Rr=dt=>{Ud(dt,{get click(){return mt},get targetUrl(){return He()},get logoClickable(){return e.logoClickable},get ref(){return ht.vkLogo},set ref(qt){ht.vkLogo=qt}})};R(yo,dt=>{r(fr)&&dt(Rr)})}h(io),nt(io,dt=>ii.topRight=dt,()=>ii==null?void 0:ii.topRight);var We=A(io,2);let ei;var wi=_(We);{var yn=dt=>{let qt=g(()=>vt.bind(null,!0));Va(dt,{get click(){return r(qt)},type:"prev",isMobile:!0,get ref(){return ht.prevButton},set ref(Ui){ht.prevButton=Ui}})};R(wi,dt=>{r(Pn)&&dt(yn)})}var tn=A(wi,2);{var Se=dt=>{Ll(dt,{get disabled(){return r(mn)},get click(){return rt},isMobile:!0,get isPlaying(){return r(ur)},get ref(){return ht.playButton},set ref(qt){ht.playButton=qt}})};R(tn,dt=>{r(cs)&&dt(Se)})}var St=A(tn,2);{var si=dt=>{Ml(dt,{get disabled(){return r(vn)},get click(){return rt},isMobile:!0,get ref(){return ht.replayButton},set ref(qt){ht.replayButton=qt}})};R(St,dt=>{r(Er)&&dt(si)})}var Ei=A(St,2);{var on=dt=>{let qt=g(()=>Tt.bind(null,!0));Va(dt,{get click(){return r(qt)},type:"next",isMobile:!0,get ref(){return ht.nextButton},set ref(Ui){ht.nextButton=Ui}})};R(Ei,dt=>{r(Ir)&&dt(on)})}h(We),nt(We,dt=>ii.middle=dt,()=>ii==null?void 0:ii.middle);var Hi=A(We,2);{var Fi=dt=>{var qt=b4(),Ui=he(qt);{var xn=Li=>{var Vi=g4();let Ho;Vi.__click=[m4,Yo,e,fi];var Fo=_(Vi);let $r=g(()=>!e.showControls);Yd(Fo,{get hidden(){return r($r)},get disabled(){return r(Yo)},get click(){return e.playPrevChapter},get ref(){return ht.playPrevChapterButton},set ref(xo){ht.playPrevChapterButton=xo}}),h(Vi),D(xo=>Ho=ie(Vi,1,"wrapper-middle-left svelte-tg0ura",null,Ho,xo),[()=>({fullscreen:fe(),hidden:!e.showControls})]),$(Li,Vi)};R(Ui,Li=>{gt&&Li(xn)})}var wn=A(Ui,2);{var br=Li=>{var Vi=h4();let Ho;var Fo=_(Vi);let $r=g(()=>!e.showControls&&!Re());Jd(Fo,{get hidden(){return r($r)},get disabled(){return r(ao)},get click(){return fn.toggle},get graphIsOpened(){return Re()},get ref(){return ht.interactiveGraphButton},set ref(xo){ht.interactiveGraphButton=xo}}),h(Vi),D(xo=>Ho=ie(Vi,1,fd(gt?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",Ho,xo),[()=>({fullscreen:fe(),hidden:!e.showControls&&!Re()})]),$(Li,Vi)};R(wn,Li=>{r(Rn)&&Li(br)})}var Nr=A(wn,2);{var vs=Li=>{var Vi=_4();let Ho;Vi.__click=[v4,lo,e,Lo];var Fo=_(Vi);let $r=g(()=>!e.showControls);Xd(Fo,{get hidden(){return r($r)},get disabled(){return r(lo)},get click(){return e.seekToInteractive},get ref(){return ht.seekToInteractiveButton},set ref(xo){ht.seekToInteractiveButton=xo}}),h(Vi),D(xo=>Ho=ie(Vi,1,"wrapper-middle-right svelte-tg0ura",null,Ho,xo),[()=>({fullscreen:fe(),hidden:!e.showControls})]),$(Li,Vi)};R(Nr,Li=>{yi&&Li(vs)})}$(dt,qt)};R(Hi,dt=>{Ut&&!f()&&dt(Fi)})}D((dt,qt,Ui,xn)=>{uo=ie(xi,1,"overlay-mobile svelte-tg0ura",null,uo,dt),to=ie(po,1,"wrapper-top-left svelte-tg0ura",null,to,qt),fo=ie(io,1,"wrapper-top-right svelte-tg0ura",null,fo,Ui),ei=ie(We,1,"wrapper-middle svelte-tg0ura",null,ei,xn)},[()=>({hidden:!r(us)}),()=>({hidden:!e.showControls,fullscreen:fe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:fe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(st,Pt)};R(Yr,st=>{ve()||st(gr)})}var _n=A(Yr,2);{var ps=st=>{var Pt=x4(),xi=he(Pt);let uo;var po=_(xi);Uu(po,{get muted(){return K()},click:Mi,get ref(){return ht.volume},set ref($o){ht.volume=$o}}),h(xi);var to=A(xi,2);{var io=$o=>{var Do=y4(),er=_(Do);let en=g(()=>!r(An));Ll(er,{get disabled(){return r(mn)},get click(){return rt},isMobile:!0,get isPlaying(){return r(en)},get ref(){return ht.playButton},set ref(Lr){ht.playButton=Lr}}),h(Do),$($o,Do)};R(to,$o=>{r(An)&&$o(io)})}var fo=A(to,2);let Dn;var bo=_(fo);Wd(bo,{get position(){return re()},get duration(){return O()}}),h(fo),D(($o,Do)=>{uo=ie(xi,1,"wrapper-top-right svelte-tg0ura",null,uo,$o),Dn=ie(fo,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,Dn,Do)},[()=>({fullscreen:fe()}),()=>({fullscreen:fe()})]),$(st,Pt)};R(_n,st=>{ve()&&d()!=="inactive"&&st(ps)})}var Nn=A(_n,2);let Ro;var Xn=_(Nn);let bn;var Gt=_(Xn),Jn=_(Gt),Ar=_(Jn);{var Zr=st=>{Eo(st,{get disabled(){return r(vn)},get ref(){return ht.replayButton},set ref(Pt){ht.replayButton=Pt},children:(Pt,xi)=>{Ml(Pt,{get disabled(){return r(vn)},get click(){return ti}})},$$slots:{default:!0}})};R(Ar,st=>{Ut&&st(Zr)})}var lt=A(Ar,2);{var mi=st=>{Eo(st,{get ref(){return ht.liveButton},set ref(Pt){ht.liveButton=Pt},children:(Pt,xi)=>{ec(Pt,{get isLiveActive(){return r(go)},isMobile:!0,get ariaLabel(){return r(Ti)}})},$$slots:{default:!0}})};R(lt,st=>{!ve()&&I()&&st(mi)})}var co=A(lt,2);{var No=st=>{let Pt=g(()=>ve()?re():ue()),xi=g(()=>ve()?O():Ve()),uo=g(()=>!e.showControls);Bd(st,{get showDuration(){return r(Gn)},get position(){return r(Pt)},get duration(){return r(xi)},isMobile:!0,get isHidden(){return r(uo)},get ref(){return ht.time},set ref(po){ht.time=po}})};R(co,st=>{r(kr)&&st(No)})}var Oo=A(co,2);let Bo=g(()=>!r(jn));Eo(Oo,{className:"w-max",get disabled(){return r(Bo)},get ref(){return ht.episodes},set ref(st){ht.episodes=st},children:(st,Pt)=>{var xi=Qe(),uo=he(xi);{var po=to=>{var io=w4(),fo=A(he(io),2);Kd(fo,{get position(){return ue()},get duration(){return Ve()},get timeCodes(){return Kt}}),$(to,io)};R(uo,to=>{r(jn)&&to(po)})}$(st,xi)},$$slots:{default:!0}}),h(Jn),nt(Jn,st=>ii.bottomLeft=st,()=>ii==null?void 0:ii.bottomLeft);var _i=A(Jn,2),Jo=_(_i);{var vi=st=>{Eo(st,{get ref(){return ht.volume},set ref(Pt){ht.volume=Pt},children:(Pt,xi)=>{Uu(Pt,{get muted(){return r(gn)},click:Mi})},$$slots:{default:!0}})};R(Jo,st=>{r(vr)&&st(vi)})}var $n=A(Jo,2);{var On=st=>{Eo(st,{get ref(){return ht.settings},set ref(Pt){ht.settings=Pt},children:(Pt,xi)=>{Il(Pt,{get ref$(){return Zn}})},$$slots:{default:!0}})};R($n,st=>{r(pr)&&st(On)})}var fs=A($n,2);{var Xr=st=>{Eo(st,{get ref(){return ht.fullscreen},set ref(Pt){ht.fullscreen=Pt},children:(Pt,xi)=>{Fd(Pt,{get click(){return e.toggleFullscreen},get isFullscreen(){return fe()}})},$$slots:{default:!0}})};R(fs,st=>{r(mr)&&st(Xr)})}h(_i),nt(_i,st=>ii.bottomRight=st,()=>ii==null?void 0:ii.bottomRight),h(Gt),nt(Gt,st=>te(st),()=>te());var ms=A(Gt,2);let hr=g(()=>!e.showControls);Ma(ms,{get isHidden(){return r(hr)},get isAds(){return ve()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return j()},get ref(){return ht.timeline},set ref(st){ht.timeline=st}}),h(Xn),h(Nn),nt(Nn,st=>ge(st),()=>ge());var _o=A(Nn,2);{var Bn=st=>{Gd(st,{get ref(){return ht.interactiveTimeIndicator},set ref(Pt){ht.interactiveTimeIndicator=Pt}})};R(_o,st=>{Bi&&st(Bn)})}D((st,Pt)=>{Ro=ie(Nn,1,"wrapper-bottom mobile svelte-tg0ura",null,Ro,st),bn=ie(Xn,1,"controls-wrapper svelte-tg0ura",null,bn,Pt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:fe()})]),$(t,jr),z(),o()}pt(["click"]);function tc(t,e){U(e,!0);let[i,o]=Fe(),n=()=>S(T,"$isMobile",i),s=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),x=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,qm.noop),y=m(e,"onDisabledSeekToInteractiveClick",3,qm.noop),T=Ie().ui.isMobile,E=Z(!1);Rt(()=>{let V=setTimeout(()=>B(E,!0),0);return()=>clearTimeout(V)});var L=Qe(),k=he(L);{var I=V=>{var j=Qe(),H=he(j);{var F=ee=>{Km(ee,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},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 v()},get customFullscreenSupported(){return p()},get endScreenShown(){return x()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})},K=ee=>{Om(ee,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return v()},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 l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})};R(H,ee=>{n()?ee(F):ee(K,!1)})}$(V,j)};R(k,V=>{r(E)&&V(I)})}$(t,L),z(),o()}var T4=Te('<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 Qm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=T4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}function Gm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Qm(t,{get style(){return r(o)}})}var E4=Te('<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 jm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=E4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}var I4=Te('<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 Ym(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=I4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}function zu(t,e){let i=m(e,"isOff",3,!1);var o=Qe(),n=he(o);{var s=d=>{Ym(d,{})},l=d=>{jm(d,{})};R(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var k4=Te('<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 Zm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=k4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}function Xm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Zm(t,{get style(){return r(o)}})}var A4=Te('<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 Jm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=A4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(2),h(o),$(t,o)}function ev(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Jm(t,{get style(){return r(o)}})}var P4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),M4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),L4=M("<div><!></div>"),V4={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
264
+ }`};function tv(t,e){var Nr,Xn;z(e,!0),q(t,O4);let[i,o]=He(),n=()=>S(co,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(Mt,"$disabledControls$",i),l=()=>S(Ft,"$playbackState$",i),d=()=>S(jo,"$adPlaybackState",i),a=()=>S(ce,"$isEnded$",i),u=()=>S(O,"$playerSize",i),f=()=>S(Ye,"$scrubbingInProgress",i),m=()=>S(Ii,"$chromecastState$",i),p=()=>S(Xt,"$isPictureInPictureActive",i),x=()=>S(Lt,"$pictureInPictureType$",i),y=()=>S(yt,"$mobileNotReportControlHidden$",i),w=()=>S(_t,"$chromecastHidden",i),T=()=>S(ei,"$playerPhase",i),C=()=>S(ti,"$pipHidden",i),E=()=>S(Ot,"$currentGridType$",i),V=()=>S(ho,"$vkLogoHidden",i),I=()=>S(Fi,"$volumeHidden",i),L=()=>S(Ke,"$isLive$",i),B=()=>S(_i,"$settingsMenuVisible",i),F=()=>S(ye,"$isRewindableLive$",i),H=()=>S(Ne,"$isActiveLive$",i),U=()=>S(Ce,"$isAudioAvailable$",i),Z=()=>S(Ve,"$muted$",i),re=()=>S(fe,"$volume$",i),G=()=>S(ri,"$isInteractiveTime$",i),be=()=>S(Po,"$settingButtonRef$",i),ee=()=>S(lt,"$startedByKeyboard$",i),pe=()=>S(Dn,"$isFullscreen",i),ve=()=>S(et,"$additionalButtons$",i),ue=()=>S(At,"$autoplayNextToggleHidden",i),Me=()=>S(Go,"$crashed$",i),Oe=()=>S(ui,"$settingsHidden",i),le=()=>S(yn,"$graphIsOpened$",i),De=()=>S(Io,"$adPosition",i),X=()=>S(Eo,"$adDuration",i),M=()=>S(Ae,"$position$",i),st=()=>S(Zt,"$duration$",i),Fe=v(e,"playerControlsWrapperRef",15,void 0),j=v(e,"playerControlsRef",15,void 0),oe=v(e,"isAds",3,!1),Be=v(e,"logoTargetUrl",3,""),Je=v(e,"isOneVideoPlaylist",3,!1),$e=v(e,"customFullscreenSupported",3,!0),ie=Te(),Se=go(),Ee=kt(),Qe=ie.actions.internal.toggleMuted,tt=ie.actions.internal.togglePlay,gt=ie.actions.internal.pause,dt=ie.actions.internal.prevVideoClick,ht=ie.actions.internal.nextVideoClick,it=ie.actions.internal.checkFullscreenSupport,Wt=(Nr=ie.callbacks)==null?void 0:Nr.onAudioDoesNotExistHint,Yt=(Xn=ie.callbacks)==null?void 0:Xn.onAudioDisabledHint,ei=ie.playerPhase,Zt=ie.state.duration$,Ae=ie.state.positionWithScrubbing$,Ft=ie.state.playbackState$,Ce=ie.state.isAudioAvailable$,Ie=ie.state.isAudioDisabled,ce=ie.state.isEnded$,Ke=ie.state.isLive$,fe=ie.state.volume$,Ve=ie.state.muted$,Ne=ie.state.isActiveLive$,ye=ie.state.isRewindableLive$,Ye=ie.ui.scrubbingInProgress,yt=ie.ui.mobileNotReportControlHidden$,{isActive$:Xt,type$:Lt}=Se.pictureInPicture$,_i=ie.ui.settingsMenu.visible$,ni=ie.ui.settingsMenu.openedByBtnKeyboard$,bi=ie.ui.controls,{volume:Fi,vkLogo:ho,autoplayNextToggle:At,pip:ti,settings:ui,chromecast:_t}=ie.ui.hiddenControls,pt=ie.actions.internal.getVideoEpisodes(),Jt=ie.webApi.pictureInPictureApi,Ii=ie.state.chromecastState$,Go=ie.state.crashed$,Mt=bi.disabledControls$,lt=ie.ui.startedByKeyboard$,Ot=ie.ui.currentGridType$,Eo=ie.ads.duration,Io=ie.ads.position,jo=ie.ads.playbackState,Dn=ie.ui.isFullscreen,O=ie.ui.playerSize,et=ie.ui.additionalButtonsDeprecated$,Qt=ie.actions.internal.getVideoElement,Gt=ie.actions.internal.replayInteractive,vt=ie.state.isInteractive,ri=ie.state.isInteractiveTime$,wi=ie.state.showInteractiveGraph,$i=ie.state.showSeekToInteractive,xt=ie.state.showPlayPrevChapter,Ai=ie.state.showInteractiveTimeIndicator,co=Se.seekToInteractiveDisabledTooltip$,yn=Se.graphIsOpened$,xn=ie.ui.controlBlocks,vi=g(()=>Q(ie.state.playPrevChapterDisabledTooltip)),uo=g(()=>Q(n())),fr=g(()=>s().has("EPISODE_BUTTON")),po=g(()=>s().has("GRAPH_BUTTON")),no=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Fn=g(()=>s().has("PLAY_BUTTON")),Yo=g(()=>s().has("REPLAY_BUTTON")),ko=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),mr=g(()=>l()===Ml.PlaybackState.PLAYING),Hn=g(()=>d()==="paused"),vr=g(()=>a()&&!oe()&&!vt),vs=g(()=>!a()||oe()),Xr=g(()=>e.showNextPrevButtons&&!oe()&&e.prevButtonActive),wn=g(()=>e.showNextPrevButtons&&!oe()&&e.nextButtonActive),Un=g(()=>u().width>300),Sn=g(()=>u().width>400),Zo=g(f),Xo=g(()=>m()!==Ml.ChromecastState.NOT_AVAILABLE&&!(p()&&x()===1)&&!y()&&!vt&&!w()),zn=g(()=>T()==="LiveWaitingStart"),gr=g(()=>!!Jt&&m()!==Ml.ChromecastState.CONNECTED&&!y()&&(x()===1&&r(zn)||!r(zn))&&!r(Zo)&&!vt&&!C()),Jr=J(!1);Rt(()=>{let nt=Jt==null?void 0:Jt.info.isActive$.subscribe(Vt=>N(Jr,Vt,!0));return()=>nt==null?void 0:nt.unsubscribe()});let fo=g(()=>!r(Zo)&&to(E(),"s")),Pr=g(()=>!e.logoHidden&&u().width>350&&!V()),Wn=g(()=>Ee.features.fullscreen&&it()&&!(p()&&x()===1)&&(vt?$e():!0)&&!r(Zo)&&!r(Jr)),Cn=g(()=>!I()&&!r(Zo)),Kn=g(()=>(!L()||oe())&&u().width>260&&!r(Zo)&&!(Ee.features.interactiveHideTime&&vt)),hr=g(()=>B()||e.showControls),qn=g(()=>!oe()&&!L()&&!!(pt!=null&&pt.length)&&r(Un)&&!r(fr)&&!r(Zo)),_o=g(()=>!F()||!!H()),es=g(()=>wi&&to(E(),"m")),Tn=g(()=>!U()||Z()||re()===0),ft=ii({}),ai=ii({}),dn=(0,ev.debounceFn)(Al,260),En=(0,ev.debounceFn)(Qu,260);qe(()=>{u(),G(),dn(Qt(),bi,ft,e.showControls),En(Qt(),xn,ai,e.showControls)});let Lr=()=>ie.actions.internal.toggleChromecast();function Ao(){return Ct(this,null,function*(){Jt!=null&&Jt.isActive()?yield Jt==null?void 0:Jt.exit():yield Jt==null?void 0:Jt.request()})}function cn(){Gs({isAudioDisabled:Ie,audioDisabledHintCallback:Yt,isAudioAvailable:U(),audioIsNotExistHintCallback:Wt,isAds:oe()})&&Qe()}let gi=J(""),Pi=(nt,Vt)=>{if(!nt){N(gi,Q("tooltip_live"),!0);return}Vt&&Vt===Ml.PlaybackState.PAUSED&&N(gi,Q("tooltip_play"),!0)};qe(()=>{Pi(r(_o),l())});let Po=ae();qe(()=>{be()&&xl(be(),B(),ni)}),qe(()=>{Ku(lt,ee(),ft.playButton)}),qe(()=>{ai.bottom=Fe()});var Qn=R4(),_r=me(Qn);{var Mr=nt=>{var Vt=P4(),Si=me(Vt);let mo;var Ri=k(Si,2);let Xi;rt(Ri,te=>ai.topLeft=te,()=>ai==null?void 0:ai.topLeft);var Oi=k(Ri,2);let bo;var An=_(Oi);Li(An,1,ve,({iconUrl:te,ariaLabel:Ze,testId:Kt,onClick:mi,tooltip:Ui})=>te,(te,Ze)=>{let Kt=()=>r(Ze).iconUrl,mi=()=>r(Ze).ariaLabel,Ui=()=>r(Ze).testId,zi=()=>r(Ze).onClick,Wi=()=>r(Ze).tooltip,ir=g(()=>{var ki;return(ki=mi())!=null?ki:Wi()});jm(te,{get iconUrl(){return Kt()},get ariaLabel(){return r(ir)},get testId(){return Ui()},get onClick(){return zi()}})});var Vo=k(An,2);{var Ro=te=>{ic(te,{get ref(){return ft.autoplayNextToggle},set ref(Ze){ft.autoplayNextToggle=Ze}})};R(Vo,te=>{e.showAutoplayNext&&!Je()&&!ue()&&te(Ro)})}var Oo=k(Vo,2);{var Jn=te=>{Qd(te,{isMobile:!0,click:Lr,get state(){return m()},get ref(){return ft.chromecast},set ref(Ze){ft.chromecast=Ze}})};R(Oo,te=>{r(Xo)&&te(Jn)})}var Pn=k(Oo,2);{var xr=te=>{Jm(te,{click:Ao,get isPictureInPictureActive(){return p()},get ref(){return ft.pip},set ref(Ze){ft.pip=Ze}})};R(Pn,te=>{r(gr)&&te(xr)})}var wr=k(Pn,2);{var er=te=>{El(te,{get ref$(){return Po}})};R(wr,te=>{Me()&&!Oe()&&te(er)})}var Br=k(wr,2);{var ts=te=>{qd(te,{get click(){return gt},get targetUrl(){return Be()},get logoClickable(){return e.logoClickable},get ref(){return ft.vkLogo},set ref(Ze){ft.vkLogo=Ze}})};R(Br,te=>{r(Pr)&&te(ts)})}h(Oi),rt(Oi,te=>ai.topRight=te,()=>ai==null?void 0:ai.topRight);var We=k(Oi,2);let jt;var Ci=_(We);{var fn=te=>{let Ze=g(()=>dt.bind(null,!0));Ma(te,{get click(){return r(Ze)},type:"prev",isMobile:!0,get ref(){return ft.prevButton},set ref(Kt){ft.prevButton=Kt}})};R(Ci,te=>{r(Xr)&&te(fn)})}var No=k(Ci,2);{var Bo=te=>{Ll(te,{get disabled(){return r(Fn)},get click(){return tt},isMobile:!0,get isPlaying(){return r(mr)},get ref(){return ft.playButton},set ref(Ze){ft.playButton=Ze}})};R(No,te=>{r(vs)&&te(Bo)})}var Do=k(No,2);{var tr=te=>{Pl(te,{get disabled(){return r(Yo)},get click(){return tt},isMobile:!0,get ref(){return ft.replayButton},set ref(Ze){ft.replayButton=Ze}})};R(Do,te=>{r(vr)&&te(tr)})}var is=k(Do,2);{var Ls=te=>{let Ze=g(()=>ht.bind(null,!0));Ma(te,{get click(){return r(Ze)},type:"next",isMobile:!0,get ref(){return ft.nextButton},set ref(Kt){ft.nextButton=Kt}})};R(is,te=>{r(wn)&&te(Ls)})}h(We),rt(We,te=>ai.middle=te,()=>ai==null?void 0:ai.middle);var Sr=k(We,2);{var os=te=>{var Ze=A4(),Kt=me(Ze);{var mi=ki=>{var Ti=E4();let Fo;Ti.__click=[C4,ko,e,vi];var $o=_(Ti);let Cr=g(()=>!e.showControls);tc($o,{get hidden(){return r(Cr)},get disabled(){return r(ko)},get click(){return e.playPrevChapter},get ref(){return ft.playPrevChapterButton},set ref(yo){ft.playPrevChapterButton=yo}}),h(Ti),D(yo=>Fo=se(Ti,1,"wrapper-middle-left svelte-tg0ura",null,Fo,yo),[()=>({fullscreen:pe(),hidden:!e.showControls})]),$(ki,Ti)};R(Kt,ki=>{xt&&ki(mi)})}var Ui=k(Kt,2);{var zi=ki=>{var Ti=I4();let Fo;var $o=_(Ti);let Cr=g(()=>!e.showControls&&!le());nc($o,{get hidden(){return r(Cr)},get disabled(){return r(po)},get click(){return yn.toggle},get graphIsOpened(){return le()},get ref(){return ft.interactiveGraphButton},set ref(yo){ft.interactiveGraphButton=yo}}),h(Ti),D(yo=>Fo=se(Ti,1,hd(xt?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",Fo,yo),[()=>({fullscreen:pe(),hidden:!e.showControls&&!le()})]),$(ki,Ti)};R(Ui,ki=>{r(es)&&ki(zi)})}var Wi=k(Ui,2);{var ir=ki=>{var Ti=k4();let Fo;Ti.__click=[T4,no,e,uo];var $o=_(Ti);let Cr=g(()=>!e.showControls);oc($o,{get hidden(){return r(Cr)},get disabled(){return r(no)},get click(){return e.seekToInteractive},get ref(){return ft.seekToInteractiveButton},set ref(yo){ft.seekToInteractiveButton=yo}}),h(Ti),D(yo=>Fo=se(Ti,1,"wrapper-middle-right svelte-tg0ura",null,Fo,yo),[()=>({fullscreen:pe(),hidden:!e.showControls})]),$(ki,Ti)};R(Wi,ki=>{$i&&ki(ir)})}$(te,Ze)};R(Sr,te=>{vt&&!f()&&te(os)})}D((te,Ze,Kt,mi)=>{mo=se(Si,1,"overlay-mobile svelte-tg0ura",null,mo,te),Xi=se(Ri,1,"wrapper-top-left svelte-tg0ura",null,Xi,Ze),bo=se(Oi,1,"wrapper-top-right svelte-tg0ura",null,bo,Kt),jt=se(We,1,"wrapper-middle svelte-tg0ura",null,jt,mi)},[()=>({hidden:!r(hr)}),()=>({hidden:!e.showControls,fullscreen:pe()}),()=>({hidden:!e.showControls&&!y(),fullscreen:pe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(nt,Vt)};R(_r,nt=>{oe()||nt(Mr)})}var br=k(_r,2);{var Gn=nt=>{var Vt=M4(),Si=me(Vt);let mo;var Ri=_(Si);Gu(Ri,{get muted(){return Z()},click:cn,get ref(){return ft.volume},set ref(Ro){ft.volume=Ro}}),h(Si);var Xi=k(Si,2);{var Oi=Ro=>{var Oo=L4(),Jn=_(Oo);let Pn=g(()=>!r(Hn));Ll(Jn,{get disabled(){return r(Fn)},get click(){return tt},isMobile:!0,get isPlaying(){return r(Pn)},get ref(){return ft.playButton},set ref(xr){ft.playButton=xr}}),h(Oo),$(Ro,Oo)};R(Xi,Ro=>{r(Hn)&&Ro(Oi)})}var bo=k(Xi,2);let An;var Vo=_(bo);Gd(Vo,{get position(){return De()},get duration(){return X()}}),h(bo),D((Ro,Oo)=>{mo=se(Si,1,"wrapper-top-right svelte-tg0ura",null,mo,Ro),An=se(bo,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,An,Oo)},[()=>({fullscreen:pe()}),()=>({fullscreen:pe()})]),$(nt,Vt)};R(br,nt=>{oe()&&d()!=="inactive"&&nt(Gn)})}var jn=k(br,2);let Lo;var Yn=_(jn);let $r;var si=_(Yn),un=_(si),yr=_(un);{var In=nt=>{Co(nt,{get disabled(){return r(Yo)},get ref(){return ft.replayButton},set ref(Vt){ft.replayButton=Vt},children:(Vt,Si)=>{Pl(Vt,{get disabled(){return r(Yo)},get click(){return Gt}})},$$slots:{default:!0}})};R(yr,nt=>{vt&&nt(In)})}var mt=k(yr,2);{var pi=nt=>{Co(nt,{get ref(){return ft.liveButton},set ref(Vt){ft.liveButton=Vt},children:(Vt,Si)=>{rc(Vt,{get isLiveActive(){return r(_o)},isMobile:!0,get ariaLabel(){return r(gi)}})},$$slots:{default:!0}})};R(mt,nt=>{!oe()&&L()&&nt(pi)})}var ro=k(mt,2);{var Jo=nt=>{let Vt=g(()=>oe()?De():M()),Si=g(()=>oe()?X():st()),mo=g(()=>!e.showControls);Ud(nt,{get showDuration(){return r(Sn)},get position(){return r(Vt)},get duration(){return r(Si)},isMobile:!0,get isHidden(){return r(mo)},get ref(){return ft.time},set ref(Ri){ft.time=Ri}})};R(ro,nt=>{r(Kn)&&nt(Jo)})}var fi=k(ro,2);let pn=g(()=>!r(qn));Co(fi,{className:"w-max",get disabled(){return r(pn)},get ref(){return ft.episodes},set ref(nt){ft.episodes=nt},children:(nt,Vt)=>{var Si=Ue(),mo=me(Si);{var Ri=Xi=>{var Oi=V4(),bo=k(me(Oi),2);jd(bo,{get position(){return M()},get duration(){return st()},get timeCodes(){return pt}}),$(Xi,Oi)};R(mo,Xi=>{r(qn)&&Xi(Ri)})}$(nt,Si)},$$slots:{default:!0}}),h(un),rt(un,nt=>ai.bottomLeft=nt,()=>ai==null?void 0:ai.bottomLeft);var Hi=k(un,2),Yi=_(Hi);{var Zi=nt=>{Co(nt,{get ref(){return ft.volume},set ref(Vt){ft.volume=Vt},children:(Vt,Si)=>{Gu(Vt,{get muted(){return r(Tn)},click:cn})},$$slots:{default:!0}})};R(Yi,nt=>{r(Cn)&&nt(Zi)})}var en=k(Yi,2);{var kn=nt=>{Co(nt,{get ref(){return ft.settings},set ref(Vt){ft.settings=Vt},children:(Vt,Si)=>{El(Vt,{get ref$(){return Po}})},$$slots:{default:!0}})};R(en,nt=>{r(fo)&&nt(kn)})}var Vr=k(en,2);{var tn=nt=>{Co(nt,{get ref(){return ft.fullscreen},set ref(Vt){ft.fullscreen=Vt},children:(Vt,Si)=>{Kd(Vt,{get click(){return e.toggleFullscreen},get isFullscreen(){return pe()}})},$$slots:{default:!0}})};R(Vr,nt=>{r(Wn)&&nt(tn)})}h(Hi),rt(Hi,nt=>ai.bottomRight=nt,()=>ai==null?void 0:ai.bottomRight),h(si),rt(si,nt=>j(nt),()=>j());var Rr=k(si,2);let Or=g(()=>!e.showControls);Pa(Rr,{get isHidden(){return r(Or)},get isAds(){return oe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return F()},get ref(){return ft.timeline},set ref(nt){ft.timeline=nt}}),h(Yn),h(jn),rt(jn,nt=>Fe(nt),()=>Fe());var Mo=k(jn,2);{var Zn=nt=>{Xd(nt,{get ref(){return ft.interactiveTimeIndicator},set ref(Vt){ft.interactiveTimeIndicator=Vt}})};R(Mo,nt=>{Ai&&nt(Zn)})}D((nt,Vt)=>{Lo=se(jn,1,"wrapper-bottom mobile svelte-tg0ura",null,Lo,nt),$r=se(Yn,1,"controls-wrapper svelte-tg0ura",null,$r,Vt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:pe()})]),$(t,Qn),W(),o()}ct(["click"]);function sc(t,e){z(e,!0);let[i,o]=He(),n=()=>S(C,"$isMobile",i),s=v(e,"bottomNoSmooth",3,!1),l=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),a=v(e,"isAds",3,!1),u=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),m=v(e,"isOneVideoPlaylist",3,!1),p=v(e,"customFullscreenSupported",3,!0),x=v(e,"endScreenShown",3,!1),y=v(e,"onDisabledPlayPrevChapterClick",3,iv.noop),w=v(e,"onDisabledSeekToInteractiveClick",3,iv.noop),C=Te().ui.isMobile,E=J(!1);Rt(()=>{let B=setTimeout(()=>N(E,!0),0);return()=>clearTimeout(B)});var V=Ue(),I=me(V);{var L=B=>{var F=Ue(),H=me(F);{var U=re=>{tv(re,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},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 m()},get customFullscreenSupported(){return p()},get endScreenShown(){return x()},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 l()},set playerControlsWrapperRef(G){l(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})},Z=re=>{Qm(re,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return m()},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 l()},set playerControlsWrapperRef(G){l(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})};R(H,re=>{n()?re(U):re(Z,!1)})}$(B,F)};R(I,B=>{r(E)&&B(L)})}$(t,V),W(),o()}var N4=we('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function ov(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=N4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function nv(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);ov(t,{get style(){return r(o)}})}var B4=we('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function rv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=B4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var D4=we('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function sv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=D4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function ju(t,e){let i=v(e,"isOff",3,!1);var o=Ue(),n=me(o);{var s=d=>{sv(d,{})},l=d=>{rv(d,{})};R(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var F4=we('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function av(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=F4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function lv(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);av(t,{get style(){return r(o)}})}var H4=we('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function dv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=H4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function cv(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);dv(t,{get style(){return r(o)}})}var U4=P('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),z4=P('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),W4=P("<div><!></div>"),K4={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
265
  animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
262
266
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
263
267
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -272,23 +276,23 @@ Try switching the\xA0quality to\xA0Auto.`},x1=Tb;var Cs=new Map;Cs.set(hl.Interf
272
276
  @keyframes svelte-1ad3n06-fadeOut {
273
277
  0% {opacity:1;}
274
278
  100% {opacity:0;}
275
- }`};function tv(t,e){U(e,!0),Q(t,V4);let[i,o]=Fe(),n=()=>S(e.data,"$data",i),l=Ie().ui.t,d=g(()=>!n()),a=g(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),u=g(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),f=g(()=>{var C;return(C=n())==null?void 0:C.type}),v=g(()=>{var C,T;return(C=n())!=null&&C.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var p=L4();let x;var w=_(p);{var y=C=>{var T=M4(),E=he(T),L=_(E);{var k=ge=>{let te=g(()=>r(f)==="FORWARD_SEEK");Gm(ge,{get reversed(){return r(te)}})};R(L,ge=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&ge(k)})}var I=A(L,2);{var V=ge=>{Is(ge,{})};R(I,ge=>{r(f)==="PAUSE"&&ge(V)})}var j=A(I,2);{var H=ge=>{Qr(ge,{})};R(j,ge=>{r(f)==="PLAY"&&ge(H)})}var F=A(j,2);{var K=ge=>{jd(ge,{})};R(F,ge=>{r(f)==="REPLAY"&&ge(K)})}var ee=A(F,2);{var Y=ge=>{zu(ge,{isOff:!0})};R(ee,ge=>{r(f)==="SUBTITLES_OFF"&&ge(Y)})}var de=A(ee,2);{var oe=ge=>{zu(ge,{})};R(de,ge=>{r(f)==="SUBTITLES_ON"&&ge(oe)})}var fe=A(de,2);{var _e=ge=>{let te=g(()=>r(f)==="RATE_UP");Xm(ge,{get reversed(){return r(te)}})};R(fe,ge=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ge(_e)})}var pe=A(fe,2);{var Oe=ge=>{let te=g(()=>r(f)==="EPISODE_NEXT");ev(ge,{get reversed(){return r(te)}})};R(pe,ge=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ge(Oe)})}var ne=A(pe,2);{var Re=ge=>{js(ge,{volume:0})};R(ne,ge=>{r(f)==="MUTE"&&ge(Re)})}var re=A(ne,2);{var O=ge=>{js(ge,{volume:1})};R(re,ge=>{r(f)==="VOLUME"&&ge(O)})}h(E);var ue=A(E,2);{var Ve=ge=>{var te=P4(),ve=_(te,!0);h(te),D(()=>$e(ve,r(v))),$(ge,te)};R(ue,ge=>{r(v)&&ge(Ve)})}$(C,T)};R(w,C=>{!r(d)&&r(f)&&C(y)})}h(p),D(C=>x=ie(p,1,"hot-key-helpers-container svelte-1ad3n06",null,x,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(a),"hot-key-helpers-container--right":r(u)})]),$(t,p),z(),o()}var R4=Te('<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 iv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=R4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var N4=Te('<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 ov(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=N4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}function Xs(t,e){U(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),s=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let v="";return r(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Qe(),a=he(d);{var u=v=>{let p=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");iv(v,{get style(){return r(l)},get"data-testid"(){return r(p)}})},f=v=>{let p=g(()=>r(s)?"chevron-icon--right":"chevron-icon--left");ov(v,{get style(){return r(l)},get"data-testid"(){return r(p)}})};R(a,v=>{r(n)?v(u):v(f,!1)})}$(t,d),z()}var O4=(t,e,i,o,n,s)=>{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":s();break}},B4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},D4=M('<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>'),H4={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 ic(t,e){U(e,!0),Q(t,H4);let i=m(e,"isShifted",3,!1),o=Ie(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{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)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=q("aria_label_spherical_control");var v=D4();let p;v.__keydown=[O4,n,s,l,a,d],v.__keyup=[B4,n,u];var x=_(v),w=_(x),y=_(w);y.__mousedown=s,y.__mouseup=u;var C=_(y);Xs(C,{direction:"up",useBtnColor:!0}),h(y);var T=A(y,2);T.__mousedown=d,T.__mouseup=u;var E=_(T);Xs(E,{direction:"up",useBtnColor:!0}),h(T),h(w);var L=A(w,2),k=_(L);k.__mousedown=a,k.__mouseup=u;var I=_(k);Xs(I,{direction:"up",useBtnColor:!0}),h(k);var V=A(k,2);V.__mousedown=l,V.__mouseup=u;var j=_(V);Xs(j,{direction:"up",useBtnColor:!0}),h(V),h(L),h(x),h(v),D(H=>{p=ie(v,1,"immersive-controls svelte-1yzc86r",null,p,H),Ue(v,"aria-label",f)},[()=>({"m-shifted":i()})]),kt("mouseleave",y,u),kt("mouseleave",T,u),kt("mouseleave",k,u),kt("mouseleave",V,u),$(t,v),z()}pt(["keydown","keyup","mousedown","mouseup"]);var As=require("@vkontakte/videoplayer-shared/es2015");var m0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Wu=class{constructor(){this.flickeringTimeout=m0(1e3);this.subscriptions=new As.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new As.ValueSubject([]);this.captionsPrepared$=new As.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,As.filter)(()=>this.isEnabled()),(0,As.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:s,value:l},d)=>(o&&!d||(s==="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 F4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),U4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),z4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),W4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),K4=M("<div><!></div>"),q4={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 Ba(t,e){U(e,!0),Q(t,q4);let[i,o]=Fe(),n=()=>S(v,"$currentSubtitle$",i),s=()=>S(x,"$isLive$",i),l=()=>S(w,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),u=Ie(),f=Mt(),v=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,x=u.state.isLive$,w=u.ui.isFullscreen,y=g(()=>!!n().isAuto),C=g(()=>!!s()),T=g(()=>e.playerSize.width*.02),E=g(()=>a()&&!l()||r(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(T)),L=Z(null);qe(()=>{var K,ee,Y;(K=r(L))==null||K.setIsAuto(r(y)),(ee=r(L))==null||ee.setIsLive(r(C)),(Y=r(L))==null||Y.setCaptions(e.captions)});let k=Z(ni([[]]));Rt(()=>{B(L,new Wu().subscribe(),!0);let K=r(L).captionsPrepared$.subscribe(ee=>{B(k,ee,!0)});return()=>{var ee;(ee=r(L))==null||ee.destroy(),K.unsubscribe()}}),Rt(()=>{if(r(y)){let K=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(K)}}else p.set(!1)});let I=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=K4();let j;var H=_(V);{var F=K=>{var ee=W4();let Y;var de=_(ee),oe=_(de);{var fe=pe=>{var Oe=F4(),ne=_(Oe),Re=_(ne,!0);h(ne),h(Oe),D(re=>{var O;at(ne,`font-size: ${(O=r(E))!=null?O:""}px`),$e(Re,re)},[()=>q("subtitles_auto_caption")]),$(pe,Oe)},_e=(pe,Oe)=>{{var ne=re=>{var O=Qe(),ue=he(O);Ii(ue,17,()=>r(k),ud,(Ve,ge)=>{var te=U4(),ve=_(te);Ii(ve,21,()=>r(ge),({value:He,timeAppeared:me})=>me,(He,me)=>{let ct=()=>r(me).value,X=()=>r(me).timeAppeared;var Me=Qe(),ke=he(Me);{var ze=rt=>{var mt=ns();D(()=>$e(mt,ct())),$(rt,mt)};R(ke,rt=>{(!X()||X()<=e.position)&&rt(ze)})}$(He,Me)}),h(ve),h(te),D(()=>{var He;return at(ve,`font-size: ${(He=r(E))!=null?He:""}px`)}),$(Ve,te)}),$(re,O)},Re=re=>{var O=Qe(),ue=he(O);Ii(ue,17,()=>e.captions,({value:Ve})=>Ve,(Ve,ge)=>{let te=()=>r(ge).value;var ve=z4(),He=_(ve),me=_(He,!0);h(He),h(ve),D(()=>{var ct;at(He,`font-size: ${(ct=r(E))!=null?ct:""}px`),$e(me,te())}),$(Ve,ve)}),$(re,O)};R(pe,re=>{var O;r(y)&&((O=r(k))!=null&&O.length)?re(ne):re(Re,!1)},Oe)}};R(oe,pe=>{r(y)&&d()?pe(fe):pe(_e,!1)})}h(de),h(ee),D(pe=>{var Oe;Y=ie(ee,1,"subtitles-caption svelte-c2x749",null,Y,pe),at(ee,`--subtitles-caption-margin: ${(Oe=r(I))!=null?Oe:""}%`)},[()=>({mobile:a()})]),$(K,ee)};R(H,K=>{var ee;(e.captions.length||(ee=r(k))!=null&&ee.length)&&K(F)})}h(V),D(K=>j=ie(V,1,"subtitles-container svelte-c2x749",null,j,K),[()=>({shifted:e.shifted,auto:r(y)&&!r(C)&&!d()})]),$(t,V),z(),o()}var Q4=M('<div class="text svelte-raurnb"> </div>'),G4=M('<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>'),j4={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 oc(t,e){U(e,!0),Q(t,j4);let i=Mt();var o=G4();let n;var s=A(_(o),2);{var l=d=>{var a=Q4(),u=_(a);h(a),D(()=>{var f;return $e(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:""}`)}),$(d,a)};R(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),D(d=>{n=ie(o,1,"wrapper svelte-raurnb",null,n,d),at(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),z()}var Y4=Te('<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 nv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Y4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var Z4=M('<div class="container svelte-13zpvm8"><!></div>'),X4={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 Da(t){Q(t,X4);var e=Z4(),i=_(e);nv(i,{}),h(e),$(t,e)}var J4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),e3=M("<div><!></div>"),t3={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
279
+ }`};function uv(t,e){z(e,!0),q(t,K4);let[i,o]=He(),n=()=>S(e.data,"$data",i),s=Te(),{features:l}=kt(),d=s.ui.t,a=g(()=>!n()),u=g(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),f=g(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),m=g(()=>{var C;return(C=n())==null?void 0:C.type}),p=g(()=>{var C,E;return(C=n())!=null&&C.t?d(n().t.key,{value:n().t.value||""}):(E=n())==null?void 0:E.text});var x=W4();let y;var w=_(x);{var T=C=>{var E=z4(),V=me(E),I=_(V);{var L=j=>{let oe=g(()=>r(m)==="FORWARD_SEEK");nv(j,{get reversed(){return r(oe)}})};R(I,j=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(m))&&j(L)})}var B=k(I,2);{var F=j=>{Is(j,{})};R(B,j=>{r(m)==="PAUSE"&&!l.playbackStatusShow&&j(F)})}var H=k(B,2);{var U=j=>{Yr(j,{})};R(H,j=>{r(m)==="PLAY"&&!l.playbackStatusShow&&j(U)})}var Z=k(H,2);{var re=j=>{ec(j,{})};R(Z,j=>{r(m)==="REPLAY"&&!l.playbackStatusShow&&j(re)})}var G=k(Z,2);{var be=j=>{ju(j,{isOff:!0})};R(G,j=>{r(m)==="SUBTITLES_OFF"&&j(be)})}var ee=k(G,2);{var pe=j=>{ju(j,{})};R(ee,j=>{r(m)==="SUBTITLES_ON"&&j(pe)})}var ve=k(ee,2);{var ue=j=>{let oe=g(()=>r(m)==="RATE_UP");lv(j,{get reversed(){return r(oe)}})};R(ve,j=>{["RATE_DOWN","RATE_UP"].includes(r(m))&&j(ue)})}var Me=k(ve,2);{var Oe=j=>{let oe=g(()=>r(m)==="EPISODE_NEXT");cv(j,{get reversed(){return r(oe)}})};R(Me,j=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(m))&&j(Oe)})}var le=k(Me,2);{var De=j=>{Ys(j,{volume:0})};R(le,j=>{r(m)==="MUTE"&&j(De)})}var X=k(le,2);{var M=j=>{Ys(j,{volume:1})};R(X,j=>{r(m)==="VOLUME"&&j(M)})}h(V);var st=k(V,2);{var Fe=j=>{var oe=U4(),Be=_(oe,!0);h(oe),D(()=>ge(Be,r(p))),$(j,oe)};R(st,j=>{r(p)&&j(Fe)})}$(C,E)};R(w,C=>{!r(a)&&r(m)&&C(T)})}h(x),D(C=>y=se(x,1,"hot-key-helpers-container svelte-1ad3n06",null,y,C),[()=>({hidden:r(a),"hot-key-helpers-container--left":r(u),"hot-key-helpers-container--right":r(f)})]),$(t,x),W(),o()}var q4=we('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function pv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=q4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var Q4=we('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function fv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Q4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function Xs(t,e){z(e,!0);let i=v(e,"direction",3,"left"),o=v(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),s=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let m="";return r(s)&&(m+="transform: rotate(180deg);"),o()&&(m+="color: var(--btn-color, #fff);"),m.length?m:void 0})());var d=Ue(),a=me(d);{var u=m=>{let p=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");pv(m,{get style(){return r(l)},get"data-testid"(){return r(p)}})},f=m=>{let p=g(()=>r(s)?"chevron-icon--right":"chevron-icon--left");fv(m,{get style(){return r(l)},get"data-testid"(){return r(p)}})};R(a,m=>{r(n)?m(u):m(f,!1)})}$(t,d),W()}var G4=(t,e,i,o,n,s)=>{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":s();break}},j4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Y4=P('<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>'),Z4={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 ac(t,e){z(e,!0),q(t,Z4);let i=v(e,"isShifted",3,!1),o=Te(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{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)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=Q("aria_label_spherical_control");var m=Y4();let p;m.__keydown=[G4,n,s,l,a,d],m.__keyup=[j4,n,u];var x=_(m),y=_(x),w=_(y);w.__mousedown=s,w.__mouseup=u;var T=_(w);Xs(T,{direction:"up",useBtnColor:!0}),h(w);var C=k(w,2);C.__mousedown=d,C.__mouseup=u;var E=_(C);Xs(E,{direction:"up",useBtnColor:!0}),h(C),h(y);var V=k(y,2),I=_(V);I.__mousedown=a,I.__mouseup=u;var L=_(I);Xs(L,{direction:"up",useBtnColor:!0}),h(I);var B=k(I,2);B.__mousedown=l,B.__mouseup=u;var F=_(B);Xs(F,{direction:"up",useBtnColor:!0}),h(B),h(V),h(x),h(m),D(H=>{p=se(m,1,"immersive-controls svelte-1yzc86r",null,p,H),ze(m,"aria-label",f)},[()=>({"m-shifted":i()})]),It("mouseleave",w,u),It("mouseleave",C,u),It("mouseleave",I,u),It("mouseleave",B,u),$(t,m),W()}ct(["keydown","keyup","mousedown","mouseup"]);var As=require("@vkontakte/videoplayer-shared/es2015");var A0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Yu=class{constructor(){this.flickeringTimeout=A0(1e3);this.subscriptions=new As.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new As.ValueSubject([]);this.captionsPrepared$=new As.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,As.filter)(()=>this.isEnabled()),(0,As.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:s,value:l},d)=>(o&&!d||(s==="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 X4=P('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),J4=P('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),e3=P('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),t3=P('<div><span class="caption svelte-c2x749"><!></span></div>'),i3=P("<div><!></div>"),o3={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
280
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Na(t,e){z(e,!0),q(t,o3);let[i,o]=He(),n=()=>S(m,"$currentSubtitle$",i),s=()=>S(x,"$isLive$",i),l=()=>S(y,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),a=v(e,"isMobile",3,!1),u=Te(),f=kt(),m=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,x=u.state.isLive$,y=u.ui.isFullscreen,w=g(()=>!!n().isAuto),T=g(()=>!!s()),C=g(()=>e.playerSize.width*.02),E=g(()=>a()&&!l()||r(C)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(C)),V=J(null);qe(()=>{var Z,re,G;(Z=r(V))==null||Z.setIsAuto(r(w)),(re=r(V))==null||re.setIsLive(r(T)),(G=r(V))==null||G.setCaptions(e.captions)});let I=J(ii([[]]));Rt(()=>{N(V,new Yu().subscribe(),!0);let Z=r(V).captionsPrepared$.subscribe(re=>{N(I,re,!0)});return()=>{var re;(re=r(V))==null||re.destroy(),Z.unsubscribe()}}),Rt(()=>{if(r(w)){let Z=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Z)}}else p.set(!1)});let L=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=i3();let F;var H=_(B);{var U=Z=>{var re=t3();let G;var be=_(re),ee=_(be);{var pe=ue=>{var Me=X4(),Oe=_(Me),le=_(Oe,!0);h(Oe),h(Me),D(De=>{var X;at(Oe,`font-size: ${(X=r(E))!=null?X:""}px`),ge(le,De)},[()=>Q("subtitles_auto_caption")]),$(ue,Me)},ve=(ue,Me)=>{{var Oe=De=>{var X=Ue(),M=me(X);Li(M,17,()=>r(I),vd,(st,Fe)=>{var j=J4(),oe=_(j);Li(oe,21,()=>r(Fe),({value:Be,timeAppeared:Je})=>Je,(Be,Je)=>{let $e=()=>r(Je).value,ie=()=>r(Je).timeAppeared;var Se=Ue(),Ee=me(Se);{var Qe=tt=>{var gt=cs();D(()=>ge(gt,$e())),$(tt,gt)};R(Ee,tt=>{(!ie()||ie()<=e.position)&&tt(Qe)})}$(Be,Se)}),h(oe),h(j),D(()=>{var Be;return at(oe,`font-size: ${(Be=r(E))!=null?Be:""}px`)}),$(st,j)}),$(De,X)},le=De=>{var X=Ue(),M=me(X);Li(M,17,()=>e.captions,({value:st})=>st,(st,Fe)=>{let j=()=>r(Fe).value;var oe=e3(),Be=_(oe),Je=_(Be,!0);h(Be),h(oe),D(()=>{var $e;at(Be,`font-size: ${($e=r(E))!=null?$e:""}px`),ge(Je,j())}),$(st,oe)}),$(De,X)};R(ue,De=>{var X;r(w)&&((X=r(I))!=null&&X.length)?De(Oe):De(le,!1)},Me)}};R(ee,ue=>{r(w)&&d()?ue(pe):ue(ve,!1)})}h(be),h(re),D(ue=>{var Me;G=se(re,1,"subtitles-caption svelte-c2x749",null,G,ue),at(re,`--subtitles-caption-margin: ${(Me=r(L))!=null?Me:""}%`)},[()=>({mobile:a()})]),$(Z,re)};R(H,Z=>{var re;(e.captions.length||(re=r(I))!=null&&re.length)&&Z(U)})}h(B),D(Z=>F=se(B,1,"subtitles-container svelte-c2x749",null,F,Z),[()=>({shifted:e.shifted,auto:r(w)&&!r(T)&&!d()})]),$(t,B),W(),o()}var n3=P('<div class="text svelte-raurnb"> </div>'),r3=P('<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>'),s3={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 lc(t,e){z(e,!0),q(t,s3);let i=kt();var o=r3();let n;var s=k(_(o),2);{var l=d=>{var a=n3(),u=_(a);h(a),D(()=>{var f;return ge(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,a)};R(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),D(d=>{n=se(o,1,"wrapper svelte-raurnb",null,n,d),at(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),W()}var a3=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function mv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=a3();ke(o,()=>K({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));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var l3=P('<div class="container svelte-13zpvm8"><!></div>'),d3={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 Ba(t){q(t,d3);var e=l3(),i=_(e);mv(i,{}),h(e),$(t,e)}var c3=P('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),u3=P("<div><!></div>"),p3={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
277
281
  visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
278
- transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Ha(t,e){U(e,!0),Q(t,t3);let i=m(e,"iconVisible",3,!0),o=Ie(),n=Mt(),s=o.ui.startedByKeyboard$,l=q("tooltip_play"),d=x=>{var y;let w=x.code;["Enter","Space"].includes(w)&&(x.stopPropagation(),x.preventDefault(),s.set(!0),(y=e.startVideo)==null||y.call(e))},a=x=>{var w;x.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var u=e3();let f;u.__click=a;var v=_(u);{var p=x=>{var w=J4();w.__keydown=d;var y=A(_(w),2);Qr(y,{}),h(w),D(()=>Ue(w,"aria-label",l)),$(x,w)};R(v,x=>{i()&&x(p)})}return h(u),D(x=>{f=ie(u,1,"container svelte-1ciju45",null,f,x),at(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,u),z({handlePressKey:d,handleClick:a})}pt(["click","keydown"]);var i3=M('<div data-testid="video_title"><span> </span></div>'),o3={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
282
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Da(t,e){z(e,!0),q(t,p3);let i=v(e,"iconVisible",3,!0),o=Te(),n=kt(),s=o.ui.startedByKeyboard$,l=Q("tooltip_play"),d=x=>{var w;let y=x.code;["Enter","Space"].includes(y)&&(x.stopPropagation(),x.preventDefault(),s.set(!0),(w=e.startVideo)==null||w.call(e))},a=x=>{var y;x.stopPropagation(),(y=e.startVideo)==null||y.call(e)};var u=u3();let f;u.__click=a;var m=_(u);{var p=x=>{var y=c3();y.__keydown=d;var w=k(_(y),2);Yr(w,{}),h(y),D(()=>ze(y,"aria-label",l)),$(x,y)};R(m,x=>{i()&&x(p)})}return h(u),D(x=>{f=se(u,1,"container svelte-1ciju45",null,f,x),at(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,u),W({handlePressKey:d,handleClick:a})}ct(["click","keydown"]);var f3=P('<div data-testid="video_title"><span> </span></div>'),m3={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
279
283
  0deg,
280
284
  rgba(0, 0, 0, 0) 0%,
281
285
  rgba(0, 0, 0, 0.02) 19%,
282
286
  rgba(0, 0, 0, 0.1) 34%,
283
287
  rgba(0, 0, 0, 0.4) 60%,
284
288
  rgba(0, 0, 0, 0.6) 100%
285
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function rv(t,e){U(e,!0),Q(t,o3);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),s=Z(void 0);Rt(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var x;p.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!o()))}return(v=r(s))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=r(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=i3();let d;var a=_(l),u=_(a,!0);h(a),nt(a,f=>n(f),()=>n()),h(l),nt(l,f=>B(s,f),()=>r(s)),D(f=>{d=ie(l,1,"title svelte-14hk510",null,d,f),$e(u,i())},[()=>({hidden:o()})]),$(t,l),z()}var v0=require("@vkontakte/videoplayer-shared/es2015");var n3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),r3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),s3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),a3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),l3=M("<div><!> <!> <!> <!></div>"),d3={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function sv(t,e){U(e,!0),Q(t,d3);let i=Z(""),o=Z(""),n=Z(""),s=Z(""),l,d=32,a=d/2,u=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),v=H=>`${(e.isSmallSize?a:d)*f(H)}px`,p=H=>{let F=Math.floor(H/86400);F&&(H-=F*86400,B(i,u(F),!0));let K=Math.floor(H/3600);B(o,u(K),!0);let ee=Math.floor(H/60)%60;B(n,u(ee),!0);let Y=H%60;B(s,u(Y),!0)},x=()=>{let H=Math.floor(Date.now()/1e3),F=e.startTime-H;p(F),F>=1?l=requestAnimationFrame(x):e.onTimerOver()};Rt(()=>{l=requestAnimationFrame(x)}),dn(()=>{cancelAnimationFrame(l)});var w=l3();let y;var C=_(w);{var T=H=>{var F=n3(),K=he(F);let ee;var Y=_(K),de=_(Y,!0);h(Y);var oe=A(Y,2),fe=_(oe,!0);h(oe),h(K);var _e=A(K,2),pe=_(_e,!0);h(_e),D((Oe,ne,Re)=>{ee=at(K,"",ee,{width:Oe}),$e(de,r(i)),$e(fe,ne),$e(pe,Re)},[()=>v(r(i)),()=>q("waiting_live_day_value"),()=>q("waiting_live_colon")]),$(H,F)};R(C,H=>{r(i)&&H(T)})}var E=A(C,2);{var L=H=>{var F=r3(),K=he(F);let ee;var Y=_(K),de=_(Y,!0);h(Y);var oe=A(Y,2),fe=_(oe,!0);h(oe),h(K);var _e=A(K,2),pe=_(_e,!0);h(_e),D((Oe,ne,Re)=>{ee=at(K,"",ee,{width:Oe}),$e(de,r(o)),$e(fe,ne),$e(pe,Re)},[()=>v(r(o)),()=>q("waiting_live_hour_value"),()=>q("waiting_live_colon")]),$(H,F)};R(E,H=>{r(o)&&H(L)})}var k=A(E,2);{var I=H=>{var F=s3(),K=he(F);let ee;var Y=_(K),de=_(Y,!0);h(Y);var oe=A(Y,2),fe=_(oe,!0);h(oe),h(K);var _e=A(K,2),pe=_(_e,!0);h(_e),D((Oe,ne,Re)=>{ee=at(K,"",ee,{width:Oe}),$e(de,r(n)),$e(fe,ne),$e(pe,Re)},[()=>v(r(n)),()=>q("waiting_live_minute_value"),()=>q("waiting_live_colon")]),$(H,F)};R(k,H=>{r(n)&&H(I)})}var V=A(k,2);{var j=H=>{var F=a3();let K;var ee=_(F),Y=_(ee,!0);h(ee);var de=A(ee,2),oe=_(de,!0);h(de),h(F),D((fe,_e)=>{K=at(F,"",K,{width:fe}),$e(Y,r(s)),$e(oe,_e)},[()=>v(r(s)),()=>q("waiting_live_second_value")]),$(H,F)};R(V,H=>{r(s)&&H(j)})}h(w),D(H=>y=ie(w,1,"timer__container svelte-gt98rn",null,y,H),[()=>({small:e.isSmallSize})]),$(t,w),z()}var c3=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),u3=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),p3=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),f3={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function nc(t,e){U(e,!0),Q(t,f3);let i=m(e,"startTime",3,0),o=g(()=>i()<Math.floor(Date.now()/1e3)),n=Z(void 0),s=Z(void 0),l=0,d=Z(void 0),a=Z(void 0),u=g(()=>{var C,T;return((C=r(d))!=null?C:1/0)<=509||((T=r(a))!=null?T:1/0)<=320}),f=g(()=>{var C,T;return!r(u)&&(((C=r(d))!=null?C:1/0)<=699||((T=r(a))!=null?T:1/0)<=599)}),v=e.onUpcomingLiveViewStateChanged?(0,v0.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let C={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"},T=r(o)?r(n):r(s);e.onUpcomingLiveViewStateChanged(C,T)})},300):void 0;qe(()=>{r(a),r(d),r(o),v==null||v()}),dn(()=>{if(cancelAnimationFrame(l),v==null||v.cancel(),e.onUpcomingLiveViewStateChanged){let C={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(C)}});var p=p3(),x=_(p);{var w=C=>{var T=c3(),E=_(T);let L;var k=_(E,!0);h(E),h(T),nt(T,I=>B(n,I),()=>r(n)),D((I,V)=>{L=ie(E,1,"waiting__title svelte-17m8dcd",null,L,I),$e(k,V)},[()=>({medium:r(f),small:r(u)}),()=>q("waiting_live_upcoming_title")]),$(C,T)},y=C=>{var T=u3(),E=_(T);let L;var k=_(E,!0);h(E);var I=A(E,2);let V=g(()=>r(u)||r(f)),j=g(()=>i()||0);sv(I,{get isSmallSize(){return r(V)},get startTime(){return r(j)},onTimerOver:()=>B(o,!0)}),h(T),nt(T,H=>B(s,H),()=>r(s)),D((H,F)=>{L=ie(E,1,"timer__title svelte-17m8dcd",null,L,H),$e(k,F)},[()=>({medium:r(f),small:r(u)}),()=>q("waiting_live_timer_title")]),$(C,T)};R(x,C=>{r(o)?C(w):C(y,!1)})}h(p),D(()=>at(p,`background-image: url(${e.thumbUrl})`)),cr(p,"clientWidth",C=>B(d,C)),cr(p,"clientHeight",C=>B(a,C)),$(t,p),z()}var m3=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),v3={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 Fa(t,e){U(e,!0),Q(t,v3);let i=m(e,"thumbUrl",3,""),o={recover:q("waiting_live_recover_title"),record:q("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=m3(),l=_(s),d=_(l);Ia(d,{style:"position: static; transform: translate(0, 0)"});var a=A(d,2),u=_(a,!0);h(a),h(l),h(s),D(()=>{at(s,`background-image: url('${i()}')`),$e(u,r(n))}),$(t,s),z()}var g3=Te('<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 av(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=g3();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var h3=M('<div class="select-icon svelte-124aexk"><!></div>'),_3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function rc(t){Q(t,_3);var e=h3(),i=_(e);av(i,{}),h(e),$(t,e)}var b3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},$3=(t,e)=>{Sl(t,()=>e.item.selectItem(e.item.value))},y3=M("<p> </p>"),x3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),w3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),S3={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
289
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function vv(t,e){z(e,!0),q(t,m3);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1),n=v(e,"ref",15),s=J(void 0);Rt(()=>{var m;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var x;p.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!o()))}return(m=r(s))==null||m.addEventListener("transitionend",f),()=>{var p;return(p=r(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=f3();let d;var a=_(l),u=_(a,!0);h(a),rt(a,f=>n(f),()=>n()),h(l),rt(l,f=>N(s,f),()=>r(s)),D(f=>{d=se(l,1,"title svelte-14hk510",null,d,f),ge(u,i())},[()=>({hidden:o()})]),$(t,l),W()}var P0=require("@vkontakte/videoplayer-shared/es2015");var v3=P('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),g3=P('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),h3=P('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),_3=P('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),b3=P("<div><!> <!> <!> <!></div>"),$3={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function gv(t,e){z(e,!0),q(t,$3);let i=J(""),o=J(""),n=J(""),s=J(""),l,d=32,a=d/2,u=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),m=H=>`${(e.isSmallSize?a:d)*f(H)}px`,p=H=>{let U=Math.floor(H/86400);U&&(H-=U*86400,N(i,u(U),!0));let Z=Math.floor(H/3600);N(o,u(Z),!0);let re=Math.floor(H/60)%60;N(n,u(re),!0);let G=H%60;N(s,u(G),!0)},x=()=>{let H=Math.floor(Date.now()/1e3),U=e.startTime-H;p(U),U>=1?l=requestAnimationFrame(x):e.onTimerOver()};Rt(()=>{l=requestAnimationFrame(x)}),an(()=>{cancelAnimationFrame(l)});var y=b3();let w;var T=_(y);{var C=H=>{var U=v3(),Z=me(U);let re;var G=_(Z),be=_(G,!0);h(G);var ee=k(G,2),pe=_(ee,!0);h(ee),h(Z);var ve=k(Z,2),ue=_(ve,!0);h(ve),D((Me,Oe,le)=>{re=at(Z,"",re,{width:Me}),ge(be,r(i)),ge(pe,Oe),ge(ue,le)},[()=>m(r(i)),()=>Q("waiting_live_day_value"),()=>Q("waiting_live_colon")]),$(H,U)};R(T,H=>{r(i)&&H(C)})}var E=k(T,2);{var V=H=>{var U=g3(),Z=me(U);let re;var G=_(Z),be=_(G,!0);h(G);var ee=k(G,2),pe=_(ee,!0);h(ee),h(Z);var ve=k(Z,2),ue=_(ve,!0);h(ve),D((Me,Oe,le)=>{re=at(Z,"",re,{width:Me}),ge(be,r(o)),ge(pe,Oe),ge(ue,le)},[()=>m(r(o)),()=>Q("waiting_live_hour_value"),()=>Q("waiting_live_colon")]),$(H,U)};R(E,H=>{r(o)&&H(V)})}var I=k(E,2);{var L=H=>{var U=h3(),Z=me(U);let re;var G=_(Z),be=_(G,!0);h(G);var ee=k(G,2),pe=_(ee,!0);h(ee),h(Z);var ve=k(Z,2),ue=_(ve,!0);h(ve),D((Me,Oe,le)=>{re=at(Z,"",re,{width:Me}),ge(be,r(n)),ge(pe,Oe),ge(ue,le)},[()=>m(r(n)),()=>Q("waiting_live_minute_value"),()=>Q("waiting_live_colon")]),$(H,U)};R(I,H=>{r(n)&&H(L)})}var B=k(I,2);{var F=H=>{var U=_3();let Z;var re=_(U),G=_(re,!0);h(re);var be=k(re,2),ee=_(be,!0);h(be),h(U),D((pe,ve)=>{Z=at(U,"",Z,{width:pe}),ge(G,r(s)),ge(ee,ve)},[()=>m(r(s)),()=>Q("waiting_live_second_value")]),$(H,U)};R(B,H=>{r(s)&&H(F)})}h(y),D(H=>w=se(y,1,"timer__container svelte-gt98rn",null,w,H),[()=>({small:e.isSmallSize})]),$(t,y),W()}var y3=P('<div class="waiting svelte-17m8dcd"><span> </span></div>'),x3=P('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),w3=P('<div class="waiting-container svelte-17m8dcd"><!></div>'),S3={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function dc(t,e){z(e,!0),q(t,S3);let i=v(e,"startTime",3,0),o=g(()=>i()<Math.floor(Date.now()/1e3)),n=J(void 0),s=J(void 0),l=0,d=J(void 0),a=J(void 0),u=g(()=>{var T,C;return((T=r(d))!=null?T:1/0)<=509||((C=r(a))!=null?C:1/0)<=320}),f=g(()=>{var T,C;return!r(u)&&(((T=r(d))!=null?T:1/0)<=699||((C=r(a))!=null?C:1/0)<=599)}),m=e.onUpcomingLiveViewStateChanged?(0,P0.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let T={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"},C=r(o)?r(n):r(s);e.onUpcomingLiveViewStateChanged(T,C)})},300):void 0;qe(()=>{r(a),r(d),r(o),m==null||m()}),an(()=>{if(cancelAnimationFrame(l),m==null||m.cancel(),e.onUpcomingLiveViewStateChanged){let T={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(T)}});var p=w3(),x=_(p);{var y=T=>{var C=y3(),E=_(C);let V;var I=_(E,!0);h(E),h(C),rt(C,L=>N(n,L),()=>r(n)),D((L,B)=>{V=se(E,1,"waiting__title svelte-17m8dcd",null,V,L),ge(I,B)},[()=>({medium:r(f),small:r(u)}),()=>Q("waiting_live_upcoming_title")]),$(T,C)},w=T=>{var C=x3(),E=_(C);let V;var I=_(E,!0);h(E);var L=k(E,2);let B=g(()=>r(u)||r(f)),F=g(()=>i()||0);gv(L,{get isSmallSize(){return r(B)},get startTime(){return r(F)},onTimerOver:()=>N(o,!0)}),h(C),rt(C,H=>N(s,H),()=>r(s)),D((H,U)=>{V=se(E,1,"timer__title svelte-17m8dcd",null,V,H),ge(I,U)},[()=>({medium:r(f),small:r(u)}),()=>Q("waiting_live_timer_title")]),$(T,C)};R(x,T=>{r(o)?T(y):T(w,!1)})}h(p),D(()=>at(p,`background-image: url(${e.thumbUrl})`)),pr(p,"clientWidth",T=>N(d,T)),pr(p,"clientHeight",T=>N(a,T)),$(t,p),W()}var C3=P('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),T3={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 Fa(t,e){z(e,!0),q(t,T3);let i=v(e,"thumbUrl",3,""),o={recover:Q("waiting_live_recover_title"),record:Q("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=C3(),l=_(s),d=_(l);Ea(d,{style:"position: static; transform: translate(0, 0)"});var a=k(d,2),u=_(a,!0);h(a),h(l),h(s),D(()=>{at(s,`background-image: url('${i()}')`),ge(u,r(n))}),$(t,s),W()}var E3=we('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function hv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=E3();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var I3=P('<div class="select-icon svelte-124aexk"><!></div>'),k3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function cc(t){q(t,k3);var e=I3(),i=_(e);hv(i,{}),h(e),$(t,e)}var A3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},P3=(t,e)=>{wl(t,()=>e.item.selectItem(e.item.value))},L3=P("<p> </p>"),M3=P('<p class="sublabel svelte-1t7rx2m"> </p>'),V3=P('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),R3={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
290
 
287
291
  /**
288
292
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
289
293
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
290
294
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
291
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function lv(t,e){U(e,!0),Q(t,S3);let i=m(e,"isMobile",3,!1);var o=w3();let n;o.__click=[b3,e],o.__keydown=[$3,e];var s=_(o);{var l=w=>{rc(w,{})};R(s,w=>{e.item.selected&&w(l)})}var d=A(s,2);let a;var u=_(d);{var f=w=>{var y=Qe(),C=he(y);ki(C,()=>e.item.valueComponent,(T,E)=>{E(T,Ss(()=>{var L;return(L=e.item.valueComponentParams)!=null?L:{}}))}),$(w,y)},v=w=>{var y=y3();let C;var T=_(y,!0);h(y),D(E=>{var L;C=ie(y,1,"label svelte-1t7rx2m",null,C,E),$e(T,(L=e.item.label)!=null?L:e.item.value)},[()=>({mobile:i()})]),$(w,y)};R(u,w=>{e.item.valueComponent?w(f):w(v,!1)})}var p=A(u,2);{var x=w=>{var y=x3(),C=_(y,!0);h(y),D(()=>$e(C,e.item.sublabel)),$(w,y)};R(p,w=>{e.item.sublabel&&w(x)})}h(d),h(o),D((w,y,C)=>{n=ie(o,1,"item",null,n,w),Ue(o,"data-value",e.item.value),Ue(o,"aria-label",y),Ue(o,"data-testid",e.item.dataTestid),a=ie(d,1,"menu-item-value svelte-1t7rx2m",null,a,C),Ue(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),z()}pt(["click","keydown"]);var C3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function dv(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>y=>Cu(y,r(n)));var l=C3();let d;l.__click=function(...y){var C;(C=r(n))==null||C.apply(this,y)},l.__keydown=function(...y){var C;(C=r(s))==null||C.apply(this,y)};var a=_(l);{var u=y=>{rc(y,{})};R(a,y=>{e.item.selected&&y(u)})}var f=A(a,2);let v;var p=_(f);{var x=y=>{var C=Qe();let T=g(()=>e.item.valueComponent);var E=he(C);ki(E,()=>r(T),(L,k)=>{k(L,Ss(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),$(y,C)},w=y=>{var C=ns();D(()=>$e(C,e.item.label)),$(y,C)};R(p,y=>{e.item.valueComponent?y(x):y(w,!1)})}h(f),h(l),nt(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),D((y,C)=>{var T;d=ie(l,1,"item",null,d,y),Ue(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Ue(l,"data-testid",e.item.id),v=ie(f,1,"menu-item-value",null,v,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),z()}pt(["click","keydown"]);var Gr={"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 E3=(t,e)=>{N1(t,e.returnFromSubMenu,e.closeSettingsMenu)},I3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},k3=(t,e)=>{kd(t)&&(Cr(t),e.returnFromSubMenu())},A3=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),P3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
295
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function _v(t,e){z(e,!0),q(t,R3);let i=v(e,"isMobile",3,!1);var o=V3();let n;o.__click=[A3,e],o.__keydown=[P3,e];var s=_(o);{var l=y=>{cc(y,{})};R(s,y=>{e.item.selected&&y(l)})}var d=k(s,2);let a;var u=_(d);{var f=y=>{var w=Ue(),T=me(w);Mi(T,()=>e.item.valueComponent,(C,E)=>{E(C,Ss(()=>{var V;return(V=e.item.valueComponentParams)!=null?V:{}}))}),$(y,w)},m=y=>{var w=L3();let T;var C=_(w,!0);h(w),D(E=>{var V;T=se(w,1,"label svelte-1t7rx2m",null,T,E),ge(C,(V=e.item.label)!=null?V:e.item.value)},[()=>({mobile:i()})]),$(y,w)};R(u,y=>{e.item.valueComponent?y(f):y(m,!1)})}var p=k(u,2);{var x=y=>{var w=M3(),T=_(w,!0);h(w),D(()=>ge(T,e.item.sublabel)),$(y,w)};R(p,y=>{e.item.sublabel&&y(x)})}h(d),h(o),D((y,w,T)=>{n=se(o,1,"item",null,n,y),ze(o,"data-value",e.item.value),ze(o,"aria-label",w),ze(o,"data-testid",e.item.dataTestid),a=se(d,1,"menu-item-value svelte-1t7rx2m",null,a,T),ze(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()})]),$(t,o),W()}ct(["click","keydown"]);var O3=P('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function bv(t,e){z(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>w=>Pu(w,r(n)));var l=O3();let d;l.__click=function(...w){var T;(T=r(n))==null||T.apply(this,w)},l.__keydown=function(...w){var T;(T=r(s))==null||T.apply(this,w)};var a=_(l);{var u=w=>{cc(w,{})};R(a,w=>{e.item.selected&&w(u)})}var f=k(a,2);let m;var p=_(f);{var x=w=>{var T=Ue();let C=g(()=>e.item.valueComponent);var E=me(T);Mi(E,()=>r(C),(V,I)=>{I(V,Ss(()=>{var L;return(L=e.item.valueComponentParams)!=null?L:{}}))}),$(w,T)},y=w=>{var T=cs();D(()=>ge(T,e.item.label)),$(w,T)};R(p,w=>{e.item.valueComponent?w(x):w(y,!1)})}h(f),h(l),rt(l,w=>o(o()[e.item.id]=w,!0),()=>{var w;return(w=o())==null?void 0:w[e.item.id]}),D((w,T)=>{var C;d=se(l,1,"item",null,d,w),ze(l,"aria-label",(C=e.item.ariaLabel)!=null?C:e.item.label),ze(l,"data-testid",e.item.id),m=se(f,1,"menu-item-value",null,m,T)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),W()}ct(["click","keydown"]);var Zr={"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 B3=(t,e)=>{X1(t,e.returnFromSubMenu,e.closeSettingsMenu)},D3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},F3=(t,e)=>{Md(t)&&(Ar(t),e.returnFromSubMenu())},H3=P('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),U3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
292
296
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
293
297
  /**
294
298
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -298,18 +302,18 @@ Try switching the\xA0quality to\xA0Auto.`},x1=Tb;var Cs=new Map;Cs.set(hl.Interf
298
302
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
299
303
  1px
300
304
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
301
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function uv(t,e){U(e,!0),Q(t,P3);let[i,o]=Fe(),n=()=>S(v,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>q("aria_label_submenu_back")),u=m(e,"listRef",15);Rt(()=>{let Y=e.items.findIndex(de=>de.selected);u().children[Y+1].focus()});let f=Ie(),v=f.ui.isFullscreen,p=f.ui.playerSize,x=Z(void 0),w=Z(0),y=Z(0),C=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(y)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,r(w)));var E=A3();let L;var k=_(E);let I;k.__keydown=[E3,e];var V=_(k);let j;V.__click=[I3,e],V.__keydown=[k3,e];var H=_(V);Xs(H,{direction:"left"});var F=A(H,2),K=_(F,!0);h(F),h(V),nt(V,Y=>B(x,Y),()=>r(x));var ee=A(V,2);Ii(ee,17,()=>e.items,ud,(Y,de)=>{var oe=Qe(),fe=he(oe);{var _e=Oe=>{lv(Oe,{get item(){return r(de)},get isMobile(){return l()}})},pe=(Oe,ne)=>{{var Re=re=>{dv(re,{get isMobile(){return l()},get item(){return r(de)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(Oe,re=>{r(de).type==="OPEN_SUB_MENU"&&re(Re)},ne)}};R(fe,Oe=>{r(de).type==="SELECT_VALUE"?Oe(_e):Oe(pe,!1)})}$(Y,oe)}),h(k),nt(k,Y=>u(Y),()=>u()),h(E),D((Y,de,oe)=>{L=ie(E,1,"sub-menu menu svelte-7dfsuh",null,L,Y),Ue(E,"data-testid",`sub-menu-${e.id}`),at(E,`min-width: ${r(T)}px`),I=ie(k,1,"items svelte-7dfsuh",null,I,de),at(k,r(C)),j=ie(V,1,"item header back svelte-7dfsuh",null,j,oe),Ue(V,"aria-label",a()),$e(K,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),cr(V,"clientWidth",Y=>B(w,Y)),cr(V,"clientHeight",Y=>B(y,Y)),$(t,E),z(),o()}pt(["keydown","click"]);var h0=require("@vkontakte/videoplayer-shared/es2015");var M3=(t,e)=>Cu(t,e()),L3=(t,e)=>{t.stopPropagation(),e()()},V3=M('<div class="value svelte-1ikfjte"> </div>'),R3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),N3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function pv(t,e){U(e,!0),Q(t,N3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,h0.noop),n=m(e,"valueComponent",3,void 0),s=m(e,"ref",15);var l=R3();let d;l.__click=[L3,o],l.__keydown=[M3,o];var a=_(l),u=_(a);{var f=T=>{Ra(T,{get icon(){return e.icon}})},v=T=>{var E=Qe();let L=g(()=>e.icon);var k=he(E);ki(k,()=>r(L),(I,V)=>{V(I,{})}),$(T,E)};R(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}h(a);var p=A(a,2),x=_(p,!0);h(p);var w=A(p,2);{var y=T=>{var E=Qe();let L=g(n);var k=he(E);ki(k,()=>r(L),(I,V)=>{V(I,{})}),$(T,E)},C=T=>{var E=V3(),L=_(E,!0);h(E),D(()=>$e(L,e.value)),$(T,E)};R(w,T=>{n()?T(y):T(C,!1)})}h(l),nt(l,T=>s(T),()=>s()),D(T=>{d=ie(l,1,"item",null,d,T),Ue(l,"aria-label",e.ariaLabel),Ue(l,"data-testid",e.id),$e(x,e.label)},[()=>({mobile:i()})]),$(t,l),z()}pt(["click","keydown"]);var fv=require("@vkontakte/videoplayer-shared/es2015");var O3=(t,e)=>{Sl(t,()=>e())},B3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),D3=M('<img class="icon" aria-hidden="true"/>'),H3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),F3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function mv(t,e){U(e,!0),Q(t,F3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,fv.noop),n=m(e,"closeSettings",3,fv.noop),s=Z(!1),l=()=>{B(s,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var a=H3();let u;a.__click=d,a.__keydown=[O3,d];var f=_(a),v=_(f);{var p=C=>{var T=Qe(),E=he(T);{var L=I=>{var V=B3();$(I,V)},k=I=>{var V=D3();D(()=>Ue(V,"src",e.icon)),kt("error",V,l),ua(V),$(I,V)};R(E,I=>{r(s)?I(L):I(k,!1)})}$(C,T)},x=C=>{var T=Qe();let E=g(()=>e.icon);var L=he(T);ki(L,()=>r(E),(k,I)=>{I(k,{})}),$(C,T)};R(v,C=>{typeof e.icon=="string"?C(p):C(x,!1)})}h(f);var w=A(f,2),y=_(w,!0);h(w),h(a),D(C=>{var T;u=ie(a,1,"item",null,u,C),Ue(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ue(a,"data-testid",e.id),$e(y,e.label)},[()=>({mobile:i()})]),$(t,a),z()}pt(["click","keydown"]);var _0=require("@vkontakte/videoplayer-shared/es2015");var U3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),z3={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 vv(t,e){Q(t,z3);let i=m(e,"enabled",3,!1);var o=U3(),n=_(o);let s;Ce(2),h(o),D(l=>s=ie(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var W3=(t,e,i)=>{O1(t,e(),o=>i()(o))},K3=(t,e,i)=>{t.stopPropagation(),e()(!i())},q3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),Q3=M('<li role="menuitem" tabindex="0"><!></li>');function gv(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,_0.noop),n=m(e,"enabled",3,!1),s=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=Q3();let a;d.__click=[K3,o,n],d.__keydown=[W3,n,o];var u=_(d);Aa(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=q3();let x;var w=_(p),y=_(w);{var C=I=>{Ra(I,{get icon(){return e.icon}})},T=I=>{var V=Qe();let j=g(()=>e.icon);var H=he(V);ki(H,()=>r(j),(F,K)=>{K(F,{})}),$(I,V)};R(y,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}h(w);var E=A(w,2),L=_(E,!0);h(E);var k=A(E,2);vv(k,{get enabled(){return n()}}),h(p),D(I=>{x=ie(p,1,"switch-wrapper",null,x,I),$e(L,e.label)},[()=>({mobile:i()})]),$(f,p)},$$slots:{default:!0}}),h(d),D(f=>{var v;a=ie(d,1,"item switch-item",null,a,f),Ue(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Ue(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),z()}pt(["click","keydown"]);var ac=require("@vkontakte/videoplayer-shared/es2015");var b0=()=>{let t=Z(ni([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{B(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var G3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),j3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),Y3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Ua(t,e){U(e,!0),Q(t,Y3);let i=m(e,"isSubCase",3,!1),o=g(()=>ku(e.quality));var n=j3(),s=_(n);let l;var d=_(s,!0);h(s);var a=A(s,2);{var u=f=>{var v=G3();let p=g(()=>r(o));var x=_(v);ki(x,()=>r(p),(w,y)=>{y(w,{})}),h(v),$(f,v)};R(a,f=>{r(o)&&!e.isMobile&&f(u)})}h(n),D(f=>{l=ie(s,1,"svelte-t2qk8t",null,l,f),$e(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}var w0=require("@vkontakte/videoplayer-shared/es2015");var hv=require("@vkontakte/videoplayer-core/es2015");var $0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},y0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=$0({quality:t,availableQualities:e});return i?t===hv.VideoQuality.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},x0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===hv.VideoQuality.INVARIANT?i:`${i}${$0({quality:t,availableQualities:e})}`:"...";var Z3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),X3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Rl(t,e){U(e,!0),Q(t,X3);let[i,o]=Fe(),n=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=Ie(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=g(()=>e.prefix+(e.selected&&n()!==w0.VideoQuality.INVARIANT?v:"")),x=g(()=>x0({prefix:r(p),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=Z3(),y=_(w);let C=g(()=>e.selected?n():void 0);Ua(y,{get quality(){return r(C)},get label(){return r(x)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),z(),o()}var J3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${s}`,"g")},ex={br:!0,span:!0},_v=(t,e={})=>{var d,a,u,f,v,p,x;if(!t)return t;let i=W(W({},ex),e),o=Object.keys(i);if(!o.length)return t;let n=J3(o),s=[],l=0;for(let w of t.matchAll(n)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){s.push(t.slice(l,T)),l=T+y.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?_v(w.groups.childrenhtml,i):"",L=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp((x=w.groups)==null?void 0:x.childrenhtml),()=>E||""):y;s.push(t.slice(l,T),L),l=T+y.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function sc(t,e){U(e,!1);let i=m(e,"message",8),o=_v(i());Wr();var n=Qe(),s=he(n);{var l=d=>{var a=Qe(),u=he(a);pd(u,()=>o),$(d,a)};R(s,d=>{o&&d(l)})}$(t,n),z()}var tx=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),ix={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 bv(t,e){U(e,!1),Q(t,ix),Wr();var i=tx(),o=_(i);let n=Hr(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));sc(o,{get message(){return r(n)}}),h(i),$(t,i),z()}var C0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Rl,valueComponentParams:{prefix:q("other_quality"),selected:o},children:"QUALITY"}},$v=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:q("auto_quality_limit"),valueComponent:e?Rl:void 0,valueComponentParams:{prefix:q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),T0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:bv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),yv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:q("high_quality"),valueComponent:t?Rl:void 0,valueComponentParams:{prefix:q("high_quality"),selected:i},sublabel:q("high_quality_description")}),xv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:q("traffic_saving_quality"),valueComponent:t?Rl:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var Ku=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),qu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=qd(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return q("audio_stream_display_language_label",{language:n,label:o});{let a=Ku(t,d);return q("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=Ku(t,d);return q("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=Ku(t,d);return q("audio_stream_display_language_index",{language:n,index:a})}}let s=Ku(t,e);return q("audio_stream_display_unknown",{index:s})};var ox={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:$v,selected:e&&!o&&!n||!1}),s.push({handler:xv,selected:o},{handler:yv,selected:n}),{title:q("submenu_quality"),id:"QUALITY_DETAILS",items:[T0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),C0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:q("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ua,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:$v,selected:((i=mu())==null?void 0:i.type)==="auto_quality"},{handler:xv,selected:((o=mu())==null?void 0:o.type)==="traffic_saving"},{handler:yv,selected:((n=mu())==null?void 0:n.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:qu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:q("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Bu?"sub_off":void 0}))})},E0=({subMenuId:t,context:e})=>t?[ox[t](e)]:[];var nx=Te('<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 wv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=nx();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var rx=Te('<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 Sv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=rx();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var sx=Te('<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 Cv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=sx();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var ax=Te('<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 Tv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=ax();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var lx=Te('<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 Ev(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=lx();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var dx=Te('<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 Qu(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=dx();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var cx=Te('<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 Iv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=cx();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var ux=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),px={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function kv(t,e){U(e,!0),Q(t,px);let[i,o]=Fe(),n=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(v,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=Ie(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,x=g(()=>y0({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=ux(),y=_(w);Ua(y,{get quality(){return n()},get label(){return r(x)},get isMobile(){return d()}}),h(w),$(t,w),z(),o()}var mx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?q("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_quality",{actual:o}),icon:Nd,label:q("menu_quality"),value:e,valueComponent:kv,weight:Gr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Gr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:q("aria_label_submenu_traffic_saving"),icon:wv,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=qu(t,e);return{id:"AUDIO_LANGUAGES",weight:Gr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_audio_languages",{actual:i}),icon:Sv,label:q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Gr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_rate",{actual:i}),icon:Cv,label:q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Gr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Od,label:q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Gr.download,type:"CLICK",onClick:t,label:q("download_video_caption"),ariaLabel:q("aria_label_menu_download"),icon:Tv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Gr.report,type:"CLICK",onClick:t,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,icon:Ev,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Gr["copy-data"],type:"CLICK",onClick:t,label:q("menu_copy_debug"),ariaLabel:q("menu_copy_debug"),icon:Qu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Gr["save-trace-info"],type:"CLICK",onClick:t,label:q("menu_save_debug"),ariaLabel:q("menu_save_debug"),icon:Qu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Gr["debug-info"],type:"CLICK",onClick:t,ariaLabel:q("aria_label_menu_debug_overlay"),label:q("menu_debug_overlay"),icon:Iv,isHiddenFor:["desktop"]})},I0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>mx[n](e)),...i.map(n=>Dt(W({},n),{isAdditional:!0}))].filter(n=>{var s,l,d;return!((s=n==null?void 0:n.isHiddenFor)!=null&&s.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(Ca)};var gx=(t,e)=>{Su(t,e)},hx=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),_x=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),bx=M("<div><!> <!></div>"),$x={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
305
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function yv(t,e){z(e,!0),q(t,U3);let[i,o]=He(),n=()=>S(m,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),a=v(e,"ariaLabelReturnFromSubMenu",19,()=>Q("aria_label_submenu_back")),u=v(e,"listRef",15);Rt(()=>{let G=e.items.findIndex(be=>be.selected);u().children[G+1].focus()});let f=Te(),m=f.ui.isFullscreen,p=f.ui.playerSize,x=J(void 0),y=J(0),w=J(0),T=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(w)-d()}px; overflow: auto;`),C=g(()=>Math.max(e.minWidth,r(y)));var E=H3();let V;var I=_(E);let L;I.__keydown=[B3,e];var B=_(I);let F;B.__click=[D3,e],B.__keydown=[F3,e];var H=_(B);Xs(H,{direction:"left"});var U=k(H,2),Z=_(U,!0);h(U),h(B),rt(B,G=>N(x,G),()=>r(x));var re=k(B,2);Li(re,17,()=>e.items,vd,(G,be)=>{var ee=Ue(),pe=me(ee);{var ve=Me=>{_v(Me,{get item(){return r(be)},get isMobile(){return l()}})},ue=(Me,Oe)=>{{var le=De=>{bv(De,{get isMobile(){return l()},get item(){return r(be)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(Me,De=>{r(be).type==="OPEN_SUB_MENU"&&De(le)},Oe)}};R(pe,Me=>{r(be).type==="SELECT_VALUE"?Me(ve):Me(ue,!1)})}$(G,ee)}),h(I),rt(I,G=>u(G),()=>u()),h(E),D((G,be,ee)=>{V=se(E,1,"sub-menu menu svelte-7dfsuh",null,V,G),ze(E,"data-testid",`sub-menu-${e.id}`),at(E,`min-width: ${r(C)}px`),L=se(I,1,"items svelte-7dfsuh",null,L,be),at(I,r(T)),F=se(B,1,"item header back svelte-7dfsuh",null,F,ee),ze(B,"aria-label",a()),ge(Z,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),pr(B,"clientWidth",G=>N(y,G)),pr(B,"clientHeight",G=>N(w,G)),$(t,E),W(),o()}ct(["keydown","click"]);var M0=require("@vkontakte/videoplayer-shared/es2015");var z3=(t,e)=>Pu(t,e()),W3=(t,e)=>{t.stopPropagation(),e()()},K3=P('<div class="value svelte-1ikfjte"> </div>'),q3=P('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),Q3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function xv(t,e){z(e,!0),q(t,Q3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,M0.noop),n=v(e,"valueComponent",3,void 0),s=v(e,"ref",15);var l=q3();let d;l.__click=[W3,o],l.__keydown=[z3,o];var a=_(l),u=_(a);{var f=C=>{Va(C,{get icon(){return e.icon}})},m=C=>{var E=Ue();let V=g(()=>e.icon);var I=me(E);Mi(I,()=>r(V),(L,B)=>{B(L,{})}),$(C,E)};R(u,C=>{typeof e.icon=="string"?C(f):C(m,!1)})}h(a);var p=k(a,2),x=_(p,!0);h(p);var y=k(p,2);{var w=C=>{var E=Ue();let V=g(n);var I=me(E);Mi(I,()=>r(V),(L,B)=>{B(L,{})}),$(C,E)},T=C=>{var E=K3(),V=_(E,!0);h(E),D(()=>ge(V,e.value)),$(C,E)};R(y,C=>{n()?C(w):C(T,!1)})}h(l),rt(l,C=>s(C),()=>s()),D(C=>{d=se(l,1,"item",null,d,C),ze(l,"aria-label",e.ariaLabel),ze(l,"data-testid",e.id),ge(x,e.label)},[()=>({mobile:i()})]),$(t,l),W()}ct(["click","keydown"]);var wv=require("@vkontakte/videoplayer-shared/es2015");var G3=(t,e)=>{wl(t,()=>e())},j3=P('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Y3=P('<img class="icon" aria-hidden="true"/>'),Z3=P('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),X3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Sv(t,e){z(e,!0),q(t,X3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,wv.noop),n=v(e,"closeSettings",3,wv.noop),s=J(!1),l=()=>{N(s,!0)},d=T=>{T==null||T.stopPropagation(),o()(),n()()};var a=Z3();let u;a.__click=d,a.__keydown=[G3,d];var f=_(a),m=_(f);{var p=T=>{var C=Ue(),E=me(C);{var V=L=>{var B=j3();$(L,B)},I=L=>{var B=Y3();D(()=>ze(B,"src",e.icon)),It("error",B,l),ua(B),$(L,B)};R(E,L=>{r(s)?L(V):L(I,!1)})}$(T,C)},x=T=>{var C=Ue();let E=g(()=>e.icon);var V=me(C);Mi(V,()=>r(E),(I,L)=>{L(I,{})}),$(T,C)};R(m,T=>{typeof e.icon=="string"?T(p):T(x,!1)})}h(f);var y=k(f,2),w=_(y,!0);h(y),h(a),D(T=>{var C;u=se(a,1,"item",null,u,T),ze(a,"aria-label",(C=e.ariaLabel)!=null?C:e.label),ze(a,"data-testid",e.id),ge(w,e.label)},[()=>({mobile:i()})]),$(t,a),W()}ct(["click","keydown"]);var V0=require("@vkontakte/videoplayer-shared/es2015");var J3=P('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),ex={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 Cv(t,e){q(t,ex);let i=v(e,"enabled",3,!1);var o=J3(),n=_(o);let s;xe(2),h(o),D(l=>s=se(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var tx=(t,e,i)=>{J1(t,e(),o=>i()(o))},ix=(t,e,i)=>{t.stopPropagation(),e()(!i())},ox=P('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),nx=P('<li role="menuitem" tabindex="0"><!></li>');function Tv(t,e){z(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,V0.noop),n=v(e,"enabled",3,!1),s=v(e,"tooltipText",3,void 0),l=v(e,"maxTooltipWidth",3,void 0);var d=nx();let a;d.__click=[ix,o,n],d.__keydown=[tx,n,o];var u=_(d);ka(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,m)=>{var p=ox();let x;var y=_(p),w=_(y);{var T=L=>{Va(L,{get icon(){return e.icon}})},C=L=>{var B=Ue();let F=g(()=>e.icon);var H=me(B);Mi(H,()=>r(F),(U,Z)=>{Z(U,{})}),$(L,B)};R(w,L=>{typeof e.icon=="string"?L(T):L(C,!1)})}h(y);var E=k(y,2),V=_(E,!0);h(E);var I=k(E,2);Cv(I,{get enabled(){return n()}}),h(p),D(L=>{x=se(p,1,"switch-wrapper",null,x,L),ge(V,e.label)},[()=>({mobile:i()})]),$(f,p)},$$slots:{default:!0}}),h(d),D(f=>{var m;a=se(d,1,"item switch-item",null,a,f),ze(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),ze(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),W()}ct(["click","keydown"]);var pc=require("@vkontakte/videoplayer-shared/es2015");var R0=()=>{let t=J(ii([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{N(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var rx=P('<div class="quality-icon svelte-t2qk8t"><!></div>'),sx=P('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),ax={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 Ha(t,e){z(e,!0),q(t,ax);let i=v(e,"isSubCase",3,!1),o=g(()=>Ru(e.quality));var n=sx(),s=_(n);let l;var d=_(s,!0);h(s);var a=k(s,2);{var u=f=>{var m=rx();let p=g(()=>r(o));var x=_(m);Mi(x,()=>r(p),(y,w)=>{w(y,{})}),h(m),$(f,m)};R(a,f=>{r(o)&&!e.isMobile&&f(u)})}h(n),D(f=>{l=se(s,1,"svelte-t2qk8t",null,l,f),ge(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),W()}var D0=require("@vkontakte/videoplayer-shared/es2015");var Ev=require("@vkontakte/videoplayer-core/es2015");var O0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},N0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=O0({quality:t,availableQualities:e});return i?t===Ev.VideoQuality.INVARIANT?Q("auto_quality_invariant"):Q("auto_quality",{actual:o}):o},B0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Ev.VideoQuality.INVARIANT?i:`${i}${O0({quality:t,availableQualities:e})}`:"...";var lx=P('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),dx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Vl(t,e){z(e,!0),q(t,dx);let[i,o]=He(),n=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=Te(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,m=" \xB7 ",p=g(()=>e.prefix+(e.selected&&n()!==D0.VideoQuality.INVARIANT?m:"")),x=g(()=>B0({prefix:r(p),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var y=lx(),w=_(y);let T=g(()=>e.selected?n():void 0);Ha(w,{get quality(){return r(T)},get label(){return r(x)},get isMobile(){return l()},isSubCase:!0}),h(y),$(t,y),W(),o()}var cx=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${s}`,"g")},ux={br:!0,span:!0},Iv=(t,e={})=>{var d,a,u,f,m,p,x;if(!t)return t;let i=K(K({},ux),e),o=Object.keys(i);if(!o.length)return t;let n=cx(o),s=[],l=0;for(let y of t.matchAll(n)){let w=y[0],T=((d=y.groups)==null?void 0:d.keyhtml)||((a=y.groups)==null?void 0:a.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((f=y.groups)==null?void 0:f.keyi18nself)||"",{index:C}=y;if(!i[T]){s.push(t.slice(l,C)),l=C+w.length;continue}let E=(m=y.groups)!=null&&m.childrenhtml?Iv(y.groups.childrenhtml,i):"",V=(p=y.groups)!=null&&p.childrenhtml?w.replace(new RegExp((x=y.groups)==null?void 0:x.childrenhtml),()=>E||""):w;s.push(t.slice(l,C),V),l=C+w.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function uc(t,e){z(e,!1);let i=v(e,"message",8),o=Iv(i());Qr();var n=Ue(),s=me(n);{var l=d=>{var a=Ue(),u=me(a);gd(u,()=>o),$(d,a)};R(s,d=>{o&&d(l)})}$(t,n),W()}var px=P('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),fx={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 kv(t,e){z(e,!1),q(t,fx),Qr();var i=px(),o=_(i);let n=Ur(()=>Q("quality_applience",{action:`<span>${Q("quality_applience_action")}</span>`}));uc(o,{get message(){return r(n)}}),h(i),$(t,i),W()}var H0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Vl,valueComponentParams:{prefix:Q("other_quality"),selected:o},children:"QUALITY"}},Av=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:Q("auto_quality_limit"),valueComponent:e?Vl:void 0,valueComponentParams:{prefix:Q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),U0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:kv,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:Q("high_quality"),valueComponent:t?Vl:void 0,valueComponentParams:{prefix:Q("high_quality"),selected:i},sublabel:Q("high_quality_description")}),Lv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:Q("traffic_saving_quality"),valueComponent:t?Vl:void 0,valueComponentParams:{prefix:Q("traffic_saving_quality"),selected:i},sublabel:Q("traffic_saving_quality_description")});var Zu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Xu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Yd(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return Q("audio_stream_display_language_label",{language:n,label:o});{let a=Zu(t,d);return Q("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=Zu(t,d);return Q("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=Zu(t,d);return Q("audio_stream_display_language_index",{language:n,index:a})}}let s=Zu(t,e);return Q("audio_stream_display_unknown",{index:s})};var mx={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:Av,selected:e&&!o&&!n||!1}),s.push({handler:Lv,selected:o},{handler:Pv,selected:n}),{title:Q("submenu_quality"),id:"QUALITY_DETAILS",items:[U0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),H0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:Q("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ha,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:Q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Av,selected:((i=$u())==null?void 0:i.type)==="auto_quality"},{handler:Lv,selected:((o=$u())==null?void 0:o.type)==="traffic_saving"},{handler:Pv,selected:((n=$u())==null?void 0:n.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:Q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Xu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:Q("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:Q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Wu?"sub_off":void 0}))})},z0=({subMenuId:t,context:e})=>t?[mx[t](e)]:[];var vx=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Mv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=vx();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var gx=we('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Vv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=gx();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var hx=we('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Rv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=hx();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var _x=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Ov(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=_x();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var bx=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function Nv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=bx();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var $x=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function Ju(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=$x();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var yx=we('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Bv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=yx();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var xx=P('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),wx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Dv(t,e){z(e,!0),q(t,wx);let[i,o]=He(),n=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(m,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=Te(),u=a.state.currentQuality$,f=a.state.availableQualities$,m=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,x=g(()=>N0({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var y=xx(),w=_(y);Ha(w,{get quality(){return n()},get label(){return r(x)},get isMobile(){return d()}}),h(y),$(t,y),W(),o()}var Cx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?Q("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_quality",{actual:o}),icon:Fd,label:Q("menu_quality"),value:e,valueComponent:Dv,weight:Zr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Zr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Q("aria_label_submenu_traffic_saving"),icon:Mv,label:Q("menu_traffic_saving"),enabled:t,tooltipText:Q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Xu(t,e);return{id:"AUDIO_LANGUAGES",weight:Zr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_audio_languages",{actual:i}),icon:Vv,label:Q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Zr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_rate",{actual:i}),icon:Rv,label:Q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Zr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Hd,label:Q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Zr.download,type:"CLICK",onClick:t,label:Q("download_video_caption"),ariaLabel:Q("aria_label_menu_download"),icon:Ov}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Zr.report,type:"CLICK",onClick:t,label:Q("menu_report"),ariaLabel:`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`,icon:Nv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Zr["copy-data"],type:"CLICK",onClick:t,label:Q("menu_copy_debug"),ariaLabel:Q("menu_copy_debug"),icon:Ju,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Zr["save-trace-info"],type:"CLICK",onClick:t,label:Q("menu_save_debug"),ariaLabel:Q("menu_save_debug"),icon:Ju,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Zr["debug-info"],type:"CLICK",onClick:t,ariaLabel:Q("aria_label_menu_debug_overlay"),label:Q("menu_debug_overlay"),icon:Bv,isHiddenFor:["desktop"]})},W0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>Cx[n](e)),...i.map(n=>Ut(K({},n),{isAdditional:!0}))].filter(n=>{var s,l,d;return!((s=n==null?void 0:n.isHiddenFor)!=null&&s.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(Sa)};var Ex=(t,e)=>{Au(t,e)},Ix=P('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),kx=P('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),Ax=P("<div><!> <!></div>"),Px={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
306
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
303
307
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
304
308
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
305
- .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 lc(t,e){U(e,!0),Q(t,$x);let[i,o]=Fe(),n=()=>S(me,"$settingsMenuVisible",i),s=()=>S(ct,"$settingsMenuOpenedByKeyboard",i),l=()=>S(Tt,"$debugPanelVisible",i),d=()=>S(Me,"$isMobile",i),a=()=>S(vt,"$playerSize",i),u=()=>S(He,"$hasMpegSources$",i),f=()=>S(ke,"$mobileNotReportControlHidden$",i),v=()=>S(Re,"$autoQualityLimitingAvailable$",i),p=()=>S(te,"$availableSubtitlesList$",i),x=()=>S(ze,"$isLiveWithPlaybackSpeed",i),w=()=>S(pe,"$availableAudioStreams$",i),y=()=>S(Ve,"$availablePlaybackRates$",i),C=()=>S(_e,"$currentAudioStream$",i),T=()=>S(ue,"$currentPlaybackRate$",i),E=()=>S(rt,"$trafficSavingEnabled",i),L=()=>S(Oe,"$currentQuality$",i),k=()=>S(re,"$isAutoQualityEnabled$",i),I=()=>S(ge,"$currentSubtitle$",i),V=()=>S(zt,"$additionalSettingsMenuItems$",i),j=()=>S(O,"$isAutoQualityAvailable$",i),H=()=>S(ne,"$availableQualities$",i),F=()=>S(mt,"$highQualityEnabled",i),K=m(e,"ref",15,void 0),ee=m(e,"playerControlsHeight",3,0),Y=ni({}),de=ni({}),oe=Ie(),fe=Mt(),_e=oe.state.audioStream$,pe=oe.state.availableAudioStreams$,Oe=oe.state.currentQuality$,ne=oe.state.availableQualities$,Re=oe.state.autoQualityLimitingAvailable$,re=oe.state.isAutoQualityEnabled$,O=oe.state.isAutoQualityAvailable$,ue=oe.state.currentPlaybackRate$,Ve=oe.state.availablePlaybackRates$,ge=oe.state.currentSubtitle$,te=oe.state.availableSubtitlesList$,ve=oe.state.canDownload,He=oe.state.hasMpegSources$,me=oe.ui.settingsMenu.visible$,ct=oe.ui.settingsMenu.openedByBtnKeyboard$,X=oe.ui.settingsMenu.ref$,Me=oe.ui.isMobile,ke=oe.ui.mobileNotReportControlHidden$,ze=oe.state.canChangePlaybackSpeed$,rt=oe.state.trafficSavingEnabled$,mt=oe.state.highQualityEnabled$,vt=oe.ui.playerSize,Tt=oe.ui.debugPanelVisible,Je=oe.state.isInteractiveTime$,zt=oe.ui.additionalSettingsMenuItems$,Yt=oe.ui.t,Zt=oe.actions.internal.downloadVideo,Wt=oe.actions.internal.closeSettingsMenu,se=oe.actions.internal.openSettingsSubMenu,Ft=oe.actions.internal.closeSettingsSubMenu,be=Z(!1),we=Z(void 0),ce=b0();qe(()=>{!n()&&ce.current&&(Ft(de[ce.current]),ce.popAllSubMenus())}),qe(()=>{n()||B(we,void 0)}),qe(()=>{!ce.current&&r(we)&&R1(Y,r(we))}),qe(()=>{K()&&X.set(K())});function De(N){return _t(this,null,function*(){var bt;ce.pushSubMenu(N),yield Co(),se(N,de[N]);let et=(bt=K())==null?void 0:bt.firstElementChild;et&&Hf(et)})}function Ke(N){var et;N==null||N.stopPropagation(),s()||(et=e.returnFocus)==null||et.call(e),Wt(),B(be,!1)}function Ae(N,et){oe.actions.internal.setQuality(N,{appliesTo:et}),Ke()}function Ge(N){oe.actions.internal.setAudioStream(N),Ke()}function Ne(N,et){oe.actions.internal.setTrafficSavingEnabled(N,et),fe.features.qualityDetailsSubMenuEnabled&&Ke()}function Ze(N,et){oe.actions.internal.setHighQualityEnabled(N,et),Ke()}function Lt(N){oe.actions.internal.setPlaybackRate(N),Ke()}function Qt(N){oe.actions.internal.setSubtitle(N),Ke()}function ot(){Zt()}function ai(){(0,ac.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),oe.actions.internal.reportProblem(),oe.actions.internal.pause()}function li(){xl(oe.actions.internal.getDebugTextData())}let ut=()=>{let N=oe.actions.internal.getTraceTextData(),et=new Blob([...N],{type:"application/json"}),bt=window.URL.createObjectURL(et);ba(bt,"vk_player_trace_info","json")};function ri(){Tt.set(!l())}function eo(){B(be,!0)}function Gi(){B(be,!1)}function ko(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-ee()}px; overflow: auto;`}let pi=g(()=>ve&&u()&&!f()),gi=g(()=>fe.features.trafficSaving&&!f()&&v()&&!fe.features.qualityDetailsSubMenuEnabled),Kt=g(()=>p().length>0&&!f()),Xt=g(()=>!!x()&&!f()),so=g(()=>fe.features.audioLanguages&&w().length>=2&&!f()),Ao=g(()=>!f());Rt(()=>Je.subscribe(N=>{N&&!d()&&!r(be)&&!s()&&Ke()}));let Go=g(()=>{let N=[r(Ao)&&"QUALITY_SETTINGS",r(so)&&"AUDIO_LANGUAGES",r(Xt)&&"PLAYBACK_RATE",r(Kt)&&"SUBTITLES",r(gi)&&"TRAFFIC_SAVING_SWITCH",r(pi)&&"DOWNLOAD",fe.showSupport&&"SHOW_SUPPORT","COPY_DATA",fe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(et=>!!et);return I0({items:N,context:{qualityDetailsSubMenuEnabled:fe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Lt,trafficSavingEnabled:E(),toggleTrafficSaving:Ne,currentQuality:L()||ac.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:ot,onCopyDataClick:li,onReportProblemClick:ai,onSaveTraceDataClick:ut,toggleShowDebugInfo:ri},additionalSettingsMenuItems:V()})}),wt=g(()=>E0({subMenuId:ce.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Lt,trafficSavingEnabled:E(),toggleTrafficSaving:Ne,currentQuality:L()||ac.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:j()||!1,availableQualities:H(),highQualityEnabled:F(),toggleHighQuality:Ze,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Wt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Ge,selectQuality:Ae,selectSubtitle:Qt}}));var Xe=bx();let Pi;var Po=_(Xe);{var Mo=N=>{var et=_x();let bt;et.__keydown=[gx,Wt];var ti=_(et);{var Ut=yi=>{var gt=hx();let Bi;var pn=_(gt),fn=_(pn,!0);h(pn);var jo=A(pn,2);jo.__click=Ke,h(gt),D((fi,Lo)=>{Bi=ie(gt,1,"item header svelte-17or3al",null,Bi,fi),$e(fn,Lo)},[()=>({mobile:d()}),()=>Yt("submenu_settings")]),$(yi,gt)};R(ti,yi=>{d()&&yi(Ut)})}var Jt=A(ti,2);let hi;Ii(Jt,21,()=>r(Go),yi=>yi.id,(yi,gt)=>{var Bi=Qe(),pn=he(Bi);{var fn=fi=>{pv(fi,{get isMobile(){return d()},get id(){return r(gt).id},get icon(){return r(gt).icon},get label(){return r(gt).label},get ariaLabel(){return r(gt).ariaLabel},get value(){return r(gt).value},get valueComponent(){return r(gt).valueComponent},onClick:()=>{De(r(gt).children),B(we,r(gt).id,!0)},get ref(){return Y[r(gt).id]},set ref(Lo){Y[r(gt).id]=Lo}})},jo=(fi,Lo)=>{{var Tr=lo=>{mv(lo,{get isMobile(){return d()},get id(){return r(gt).id},get onClick(){return r(gt).onClick},get icon(){return r(gt).icon},get label(){return r(gt).label},get ariaLabel(){return r(gt).ariaLabel},closeSettings:Ke})},ao=(lo,mn)=>{{var vn=Yo=>{gv(Yo,{get isMobile(){return d()},get id(){return r(gt).id},get onClick(){return r(gt).onClick},get icon(){return r(gt).icon},get label(){return r(gt).label},get ariaLabel(){return r(gt).ariaLabel},get enabled(){return r(gt).enabled},get tooltipText(){return r(gt).tooltipText},get maxTooltipWidth(){return r(gt).maxTooltipWidth}})};R(lo,Yo=>{r(gt).type==="SWITCH"&&Yo(vn)},mn)}};R(fi,lo=>{r(gt).type==="CLICK"?lo(Tr):lo(ao,!1)},Lo)}};R(pn,fi=>{r(gt).type==="OPEN_SUB_MENU"?fi(fn):fi(jo,!1)})}$(yi,Bi)}),h(Jt),nt(Jt,yi=>K(yi),()=>K()),h(et),D((yi,gt,Bi)=>{bt=ie(et,1,"settings-menu menu svelte-17or3al",null,bt,yi),hi=ie(Jt,1,"items",null,hi,gt),at(Jt,Bi)},[()=>({desktop:!d(),mobile:d(),hidden:!!ce.current}),()=>({mobile:d()}),ko]),kt("mouseenter",et,eo),kt("mouseleave",et,Gi),$(N,et)};R(Po,N=>{n()&&N(Mo)})}var un=A(Po,2);Ii(un,17,()=>r(wt),N=>N.id,(N,et)=>{let bt=g(()=>{var ti;return(ti=r(et).minWidth)!=null?ti:137});uv(N,{get isMobile(){return d()},get playerControlsHeight(){return ee()},get returnFromSubMenu(){return ce.popSubMenu},get id(){return r(et).id},get title(){return r(et).title},get closeSettingsMenu(){return Wt},openSubMenuList:De,get items(){return r(et).items},get minWidth(){return r(bt)},get refMenuItems(){return Y},get listRef(){return de[r(et).id]},set listRef(ti){de[r(et).id]=ti}})}),h(Xe),D(N=>Pi=ie(Xe,1,"settings-menu-container svelte-17or3al",null,Pi,N),[()=>({mobile:d(),hidden:!n()})]),$(t,Xe),z(),o()}pt(["keydown","click"]);var yx=t=>t;function k0(t,{delay:e=0,duration:i=400,easing:o=yx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var xx=M('<button class="button svelte-1sbbskl"> </button>'),wx={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 Av(t,e){Q(t,wx);var i=xx();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),D(()=>$e(o,e.label)),$(t,i)}pt(["click"]);var Sx=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),Cx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
309
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function fc(t,e){z(e,!0),q(t,Px);let[i,o]=He(),n=()=>S(Je,"$settingsMenuVisible",i),s=()=>S($e,"$settingsMenuOpenedByKeyboard",i),l=()=>S(ht,"$debugPanelVisible",i),d=()=>S(Se,"$isMobile",i),a=()=>S(dt,"$playerSize",i),u=()=>S(Be,"$hasMpegSources$",i),f=()=>S(Ee,"$mobileNotReportControlHidden$",i),m=()=>S(le,"$autoQualityLimitingAvailable$",i),p=()=>S(j,"$availableSubtitlesList$",i),x=()=>S(Qe,"$isLiveWithPlaybackSpeed",i),y=()=>S(ue,"$availableAudioStreams$",i),w=()=>S(st,"$availablePlaybackRates$",i),T=()=>S(ve,"$currentAudioStream$",i),C=()=>S(M,"$currentPlaybackRate$",i),E=()=>S(tt,"$trafficSavingEnabled",i),V=()=>S(Me,"$currentQuality$",i),I=()=>S(De,"$isAutoQualityEnabled$",i),L=()=>S(Fe,"$currentSubtitle$",i),B=()=>S(Wt,"$additionalSettingsMenuItems$",i),F=()=>S(X,"$isAutoQualityAvailable$",i),H=()=>S(Oe,"$availableQualities$",i),U=()=>S(gt,"$highQualityEnabled",i),Z=v(e,"ref",15,void 0),re=v(e,"playerControlsHeight",3,0),G=ii({}),be=ii({}),ee=Te(),pe=kt(),ve=ee.state.audioStream$,ue=ee.state.availableAudioStreams$,Me=ee.state.currentQuality$,Oe=ee.state.availableQualities$,le=ee.state.autoQualityLimitingAvailable$,De=ee.state.isAutoQualityEnabled$,X=ee.state.isAutoQualityAvailable$,M=ee.state.currentPlaybackRate$,st=ee.state.availablePlaybackRates$,Fe=ee.state.currentSubtitle$,j=ee.state.availableSubtitlesList$,oe=ee.state.canDownload,Be=ee.state.hasMpegSources$,Je=ee.ui.settingsMenu.visible$,$e=ee.ui.settingsMenu.openedByBtnKeyboard$,ie=ee.ui.settingsMenu.ref$,Se=ee.ui.isMobile,Ee=ee.ui.mobileNotReportControlHidden$,Qe=ee.state.canChangePlaybackSpeed$,tt=ee.state.trafficSavingEnabled$,gt=ee.state.highQualityEnabled$,dt=ee.ui.playerSize,ht=ee.ui.debugPanelVisible,it=ee.state.isInteractiveTime$,Wt=ee.ui.additionalSettingsMenuItems$,Yt=ee.ui.t,ei=ee.actions.internal.downloadVideo,Zt=ee.actions.internal.closeSettingsMenu,Ae=ee.actions.internal.openSettingsSubMenu,Ft=ee.actions.internal.closeSettingsSubMenu,Ce=J(!1),Ie=J(void 0),ce=R0();qe(()=>{!n()&&ce.current&&(Ft(be[ce.current]),ce.popAllSubMenus())}),qe(()=>{n()||N(Ie,void 0)}),qe(()=>{!ce.current&&r(Ie)&&Z1(G,r(Ie))}),qe(()=>{Z()&&ie.set(Z())});function Ke(O){return Ct(this,null,function*(){var Qt;ce.pushSubMenu(O),yield wo(),Ae(O,be[O]);let et=(Qt=Z())==null?void 0:Qt.firstElementChild;et&&Yf(et)})}function fe(O){var et;O==null||O.stopPropagation(),s()||(et=e.returnFocus)==null||et.call(e),Zt(),N(Ce,!1)}function Ve(O,et){ee.actions.internal.setQuality(O,{appliesTo:et}),fe()}function Ne(O){ee.actions.internal.setAudioStream(O),fe()}function ye(O,et){ee.actions.internal.setTrafficSavingEnabled(O,et),pe.features.qualityDetailsSubMenuEnabled&&fe()}function Ye(O,et){ee.actions.internal.setHighQualityEnabled(O,et),fe()}function yt(O){ee.actions.internal.setPlaybackRate(O),fe()}function Xt(O){ee.actions.internal.setSubtitle(O),fe()}function Lt(){ei()}function _i(){(0,pc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),ee.actions.internal.reportProblem(),ee.actions.internal.pause()}function ni(){yl(ee.actions.internal.getDebugTextData())}let bi=()=>{let O=ee.actions.internal.getTraceTextData(),et=new Blob([...O],{type:"application/json"}),Qt=window.URL.createObjectURL(et);_a(Qt,"vk_player_trace_info","json")};function Fi(){ht.set(!l())}function ho(){N(Ce,!0)}function At(){N(Ce,!1)}function ti(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-re()}px; overflow: auto;`}let ui=g(()=>oe&&u()&&!f()),_t=g(()=>pe.features.trafficSaving&&!f()&&m()&&!pe.features.qualityDetailsSubMenuEnabled),pt=g(()=>p().length>0&&!f()),Jt=g(()=>!!x()&&!f()),Ii=g(()=>pe.features.audioLanguages&&y().length>=2&&!f()),Go=g(()=>!f());Rt(()=>it.subscribe(O=>{O&&!d()&&!r(Ce)&&!s()&&fe()}));let Mt=g(()=>{let O=[r(Go)&&"QUALITY_SETTINGS",r(Ii)&&"AUDIO_LANGUAGES",r(Jt)&&"PLAYBACK_RATE",r(pt)&&"SUBTITLES",r(_t)&&"TRAFFIC_SAVING_SWITCH",r(ui)&&"DOWNLOAD",pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(et=>!!et);return W0({items:O,context:{qualityDetailsSubMenuEnabled:pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:w(),currentAudioStream:T(),availableAudioStreams:y(),currentPlaybackRate:C(),selectPlaybackRate:yt,trafficSavingEnabled:E(),toggleTrafficSaving:ye,currentQuality:V()||pc.VideoQuality.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:L(),isMobile:d(),onDownloadClick:Lt,onCopyDataClick:ni,onReportProblemClick:_i,onSaveTraceDataClick:bi,toggleShowDebugInfo:Fi},additionalSettingsMenuItems:B()})}),lt=g(()=>z0({subMenuId:ce.current,context:{availablePlaybackRates:w(),selectPlaybackRate:yt,trafficSavingEnabled:E(),toggleTrafficSaving:ye,currentQuality:V()||pc.VideoQuality.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:F()||!1,availableQualities:H(),highQualityEnabled:U(),toggleHighQuality:Ye,availableAudioStreams:y(),availableSubtitlesList:p(),closeSettingsMenu:Zt,currentAudioStream:T(),isMobile:d(),selectAudioLanguage:Ne,selectQuality:Ve,selectSubtitle:Xt}}));var Ot=Ax();let Eo;var Io=_(Ot);{var jo=O=>{var et=kx();let Qt;et.__keydown=[Ex,Zt];var Gt=_(et);{var vt=$i=>{var xt=Ix();let Ai;var co=_(xt),yn=_(co,!0);h(co);var xn=k(co,2);xn.__click=fe,h(xt),D((vi,uo)=>{Ai=se(xt,1,"item header svelte-17or3al",null,Ai,vi),ge(yn,uo)},[()=>({mobile:d()}),()=>Yt("submenu_settings")]),$($i,xt)};R(Gt,$i=>{d()&&$i(vt)})}var ri=k(Gt,2);let wi;Li(ri,21,()=>r(Mt),$i=>$i.id,($i,xt)=>{var Ai=Ue(),co=me(Ai);{var yn=vi=>{xv(vi,{get isMobile(){return d()},get id(){return r(xt).id},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get value(){return r(xt).value},get valueComponent(){return r(xt).valueComponent},onClick:()=>{Ke(r(xt).children),N(Ie,r(xt).id,!0)},get ref(){return G[r(xt).id]},set ref(uo){G[r(xt).id]=uo}})},xn=(vi,uo)=>{{var fr=no=>{Sv(no,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},closeSettings:fe})},po=(no,Fn)=>{{var Yo=ko=>{Tv(ko,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get enabled(){return r(xt).enabled},get tooltipText(){return r(xt).tooltipText},get maxTooltipWidth(){return r(xt).maxTooltipWidth}})};R(no,ko=>{r(xt).type==="SWITCH"&&ko(Yo)},Fn)}};R(vi,no=>{r(xt).type==="CLICK"?no(fr):no(po,!1)},uo)}};R(co,vi=>{r(xt).type==="OPEN_SUB_MENU"?vi(yn):vi(xn,!1)})}$($i,Ai)}),h(ri),rt(ri,$i=>Z($i),()=>Z()),h(et),D(($i,xt,Ai)=>{Qt=se(et,1,"settings-menu menu svelte-17or3al",null,Qt,$i),wi=se(ri,1,"items",null,wi,xt),at(ri,Ai)},[()=>({desktop:!d(),mobile:d(),hidden:!!ce.current}),()=>({mobile:d()}),ti]),It("mouseenter",et,ho),It("mouseleave",et,At),$(O,et)};R(Io,O=>{n()&&O(jo)})}var Dn=k(Io,2);Li(Dn,17,()=>r(lt),O=>O.id,(O,et)=>{let Qt=g(()=>{var Gt;return(Gt=r(et).minWidth)!=null?Gt:137});yv(O,{get isMobile(){return d()},get playerControlsHeight(){return re()},get returnFromSubMenu(){return ce.popSubMenu},get id(){return r(et).id},get title(){return r(et).title},get closeSettingsMenu(){return Zt},openSubMenuList:Ke,get items(){return r(et).items},get minWidth(){return r(Qt)},get refMenuItems(){return G},get listRef(){return be[r(et).id]},set listRef(Gt){be[r(et).id]=Gt}})}),h(Ot),D(O=>Eo=se(Ot,1,"settings-menu-container svelte-17or3al",null,Eo,O),[()=>({mobile:d(),hidden:!n()})]),$(t,Ot),W(),o()}ct(["keydown","click"]);var Lx=t=>t;function K0(t,{delay:e=0,duration:i=400,easing:o=Lx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var Mx=P('<button class="button svelte-1sbbskl"> </button>'),Vx={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 Fv(t,e){q(t,Vx);var i=Mx();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),D(()=>ge(o,e.label)),$(t,i)}ct(["click"]);var Rx=P('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),Ox={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
306
310
  /**
307
311
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
308
- */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 dc(t,e){U(e,!0),Q(t,Cx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Mt(),{ui:{t:n}}=Ie(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=Sx(),d=_(l),a=_(d),u=_(a),f=_(u);sc(f,{get message(){return s}}),h(u);var v=A(u,2);{var p=w=>{let y=g(()=>n("slow_video_notification_button"));Av(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};R(v,w=>{o||w(p)})}h(a);var x=A(a,2);Ea(x,{get onClick(){return e.onClose}}),h(d),h(l),af(3,d,()=>k0,()=>({duration:i})),$(t,l),z()}var cc=require("@vkontakte/videoplayer-shared/es2015");var za="annotation",Gu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",za),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(n,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(n,s){return _t(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var p;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:a,hiddenControls:u}=((p=this.store)==null?void 0:p.ui)||{},f=new MutationObserver(x=>x.forEach(()=>{let w=Ts(d,this.shadowRootContainer);o.forEach(y=>{let C=a==null?void 0:a[y],T=C?ye(C):null,E=u==null?void 0:u[y];T&&(E==null||E.set((0,cc.isIntersecting)(T,w)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let v=new cc.Subscription;o.forEach(x=>{a&&v.add(a[x].subscribe(w=>{let y=u==null?void 0:u[x];w&&w.isDisplayed?y==null||y.set((0,cc.isIntersecting)(w,Ts(d,this.shadowRootContainer))):y==null||y.set(!1)}))}),l.subs=v})}findSlotElement(e,i,o){return _t(this,null,function*(){return new Promise(n=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,s].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var p,x;(x=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||x.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var Tx=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),Ex={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
312
+ */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function mc(t,e){z(e,!0),q(t,Ox);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=kt(),{ui:{t:n}}=Te(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=Rx(),d=_(l),a=_(d),u=_(a),f=_(u);uc(f,{get message(){return s}}),h(u);var m=k(u,2);{var p=y=>{let w=g(()=>n("slow_video_notification_button"));Fv(y,{get label(){return r(w)},get onClick(){return e.onSelectAutoQuality}})};R(m,y=>{o||y(p)})}h(a);var x=k(a,2);Ta(x,{get onClick(){return e.onClose}}),h(d),h(l),hf(3,d,()=>K0,()=>({duration:i})),$(t,l),W()}var vc=require("@vkontakte/videoplayer-shared/es2015");var Ua="annotation",ep=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",Ua),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(n,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(n,s){return Ct(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var p;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:a,hiddenControls:u}=((p=this.store)==null?void 0:p.ui)||{},f=new MutationObserver(x=>x.forEach(()=>{let y=Ts(d,this.shadowRootContainer);o.forEach(w=>{let T=a==null?void 0:a[w],C=T?_e(T):null,E=u==null?void 0:u[w];C&&(E==null||E.set((0,vc.isIntersecting)(C,y)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let m=new vc.Subscription;o.forEach(x=>{a&&m.add(a[x].subscribe(y=>{let w=u==null?void 0:u[x];y&&y.isDisplayed?w==null||w.set((0,vc.isIntersecting)(y,Ts(d,this.shadowRootContainer))):w==null||w.set(!1)}))}),l.subs=m})}findSlotElement(e,i,o){return Ct(this,null,function*(){return new Promise(n=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,s].forEach(m=>m==null?void 0:m.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(m=>{var p,x;(x=(p=this.store)==null?void 0:p.ui.hiddenControls[m])==null||x.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var Nx=P('<div class="container svelte-16aykgd"><!></div>'),Bx={hash:"svelte-16aykgd",code:`.container.svelte-16aykgd {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
309
313
 
310
- animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
314
+ animation-name: svelte-16aykgd-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
311
315
 
312
- @keyframes svelte-f47ws8-videoPlayerStatusIconPopup {
316
+ @keyframes svelte-16aykgd-videoPlayerStatusIconPopup {
313
317
  from {
314
318
  opacity: 0;
315
319
  scale: 0.6;
@@ -336,8 +340,8 @@ Try switching the\xA0quality to\xA0Auto.`},x1=Tb;var Cs=new Map;Cs.set(hl.Interf
336
340
  opacity: 0;
337
341
  scale: 0;
338
342
  }
339
- }`};function Pv(t,e){U(e,!0),Q(t,Ex);let[i,o]=Fe(),n=()=>S(l,"$isPlaying$",i),s=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ie(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=Mt(),p=0,x=Z(null),w=Z(!1);qe(()=>{B(x,n()?Qr:Is,!0)}),qe(()=>{B(x,s()?Zs:null,!0)}),qe(()=>{if(u)return p=window.setTimeout(()=>{p=0,s()&&r(x)===Zs&&(s()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B(x,null)},r(x)!==Zs?f:v),()=>{p&&(window.clearTimeout(p),p=0)}}),qe(()=>{n()&&!r(w)&&(B(w,!0),B(x,null))});var y=Qe(),C=he(y);{var T=E=>{var L=Qe(),k=he(L);fa(k,()=>r(x),I=>{var V=Tx(),j=_(V),H=_(j);let F=g(()=>s()==="prev");ki(H,()=>r(x),(K,ee)=>{ee(K,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),h(j),h(V),D(()=>at(j,`animation-duration: ${r(x)!==Zs?f:v}ms`)),$(I,V)}),$(E,L)};R(C,E=>{r(x)&&u&&E(T)})}$(t,y),z(),o()}var Ix=M('<div><div data-testid="video-container"></div></div>'),kx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
340
- .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Wa(t,e){U(e,!0),Q(t,kx);let[i,o]=Fe(),n=()=>S(f,"$rotateAlpha",i),s=()=>S(v,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=Ie(),{isSmoothVideoRotate:x}=Mt(),w=g(()=>a()&&n()%180?s().height/s().width:1);var y=Ix();let C;y.__contextmenu=function(...L){var k;(k=e.onContextMenu)==null||k.apply(this,L)},y.__mousedown=function(...L){var k;(k=e.onMouseDown)==null||k.apply(this,L)},y.__mouseup=function(...L){var k;(k=e.onMouseUp)==null||k.apply(this,L)},y.__click=function(...L){var k;(k=e.onClick)==null||k.apply(this,L)},y.__dblclick=function(...L){var k;(k=e.onDblClick)==null||k.apply(this,L)};var T=_(y);let E;nt(T,L=>a(L),()=>a()),h(y),D((L,k)=>{C=ie(y,1,"video-wrapper svelte-1czns9r",null,C,L),E=ie(T,1,"video-container svelte-1czns9r",null,E,k),at(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Ue(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!x})]),$(t,y),z(),o()}pt(["contextmenu","mousedown","mouseup","click","dblclick"]);var Ax=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},Px=M("<div><!></div>"),Mx=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Lx=M("<div><!></div>"),Vx=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),Rx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Nx=M("<!> <!> <!>",1),Ox=M('<div class="blocked svelte-jtgjmv"></div>'),Bx=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Dx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Lv(t,e){U(e,!0),Q(t,Dx);let[i,o]=Fe(),n=()=>S(kr,"$notificationsToShow$",i),s=()=>S(ri,"$playerPhase",i),l=()=>S(Go,"$isLoaderVisible",i),d=()=>S(ai,"$adPlaybackState",i),a=()=>S(N,"$crashed",i),u=()=>S(Bi,"$isInteractiveTime$",i),f=()=>S(pi,"$settingsMenuVisible",i),v=()=>S(pn,"$isInteractiveExpectation$",i),p=()=>S(ko,"$controlsVisible",i),x=()=>S(jo,"$touched",i),w=()=>S(Vo,"$graphIsOpened$",i),y=()=>S(eo,"$isFullscreen",i),C=()=>S(ur,"$autoplayNextEnabled$",i),T=()=>S(Po,"$postrollPassed",i),E=()=>S(wt,"$isEnded$",i),L=()=>S(Yn,"$cursorInside",i),k=()=>S(Er,"$isControlsAvailable",i),I=()=>S(Qn,"$fakeIsPlaying$",i),V=()=>S(gn,"$bottomNoSmooth",i),j=()=>S(ao,"$interactiveTimeIndicator",i),H=()=>S(Jt,"$playerSize",i),F=()=>S(hi,"$is3DVideo",i),K=()=>S(so,"$contextMenuVisible$",i),ee=()=>S(ot,"$playbackState$",i),Y=()=>S(fi,"$hotKeyMapData",i),de=()=>S(Kt,"$scrubbingInProgress",i),oe=()=>S(Xt,"$volumeChangingInProgress",i),fe=()=>S(Xe,"$chromecastConnected$",i),_e=()=>S(ii,"$controlsTimeoutActive",i),pe=()=>S(gi,"$settingsMenuOpenedByKeyboard",i),Oe=()=>S(fo,"$contextMenuOpenedByKeyboard$",i),ne=()=>S($o,"$contextMenuOpenedByHotKey$",i),Re=()=>S(Dn,"$contextMenuButtonRef$",i),re=()=>S(Do,"$contextMenuLastActiveElem$",i),O=()=>S(Gi,"$isFullscreenOpenedByKeyboard",i),ue=()=>S(Qt,"$language$",i),Ve=()=>S(yi,"$icon3DVideoVisible",i),ge=()=>S(Pi,"$chromecastDeviceName$",i),te=()=>S(ti,"$currentSubtitle$",i),ve=()=>S(Ut,"$currentSubtitleCaptions$",i),He=()=>S(li,"$position$",i),me=()=>S(ut,"$duration$",i),ct=()=>S(Mo,"$isLive$",i),X=()=>S(un,"$isPlaying$",i),Me=()=>S(mn,"$contextMenuPosition$",i),ke=()=>S(Lo,"$showHotKeyMap",i),ze=()=>S(Ao,"$debugPanelVisible",i),rt=()=>S(An,"$userActionsDisabled$",i),mt=m(e,"videoContainer",15),vt=m(e,"adsSlotId",3,void 0),Tt=m(e,"adsParams",3,void 0),Je=m(e,"adsAutoplayParam",3,void 0),zt=m(e,"duration",3,void 0),Yt=m(e,"logoTargetUrl",3,""),Zt=m(e,"showNextPrevButtons",3,!1),Wt=m(e,"nextButtonActive",3,!1),se=m(e,"prevButtonActive",3,!1),Ft=m(e,"endScreenVideoTitle",3,void 0),be=m(e,"endScreenVideoThumb",3,void 0),we=m(e,"isOneVideoPlaylist",3,!1),ce=m(e,"shadowRootContainer",3,void 0),De=m(e,"outerContainerRef",3,void 0),Ke=m(e,"playerStarted",3,!1),Ae=m(e,"fullScreenTarget",3,void 0),Ge=m(e,"showMiniTimer",3,!1),Ne=m(e,"showEndScreen",3,!0),Ze=m(e,"keyboardControls",15),Lt=e.store.getLogger().createComponentLog("Root component"),Qt=e.store.interfaceLanguage$,ot=e.store.state.playbackState$,ai=e.store.ads.playbackState,li=e.store.state.positionWithScrubbing$,ut=e.store.state.duration$,ri=e.store.playerPhase,eo=e.store.ui.isFullscreen,Gi=e.store.ui.isFullscreenOpenedByKeyboard,ko=e.store.ui.controlsVisible,pi=e.store.ui.settingsMenu.visible$,gi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Kt=e.store.ui.scrubbingInProgress,Xt=e.store.ui.volumeChangingInProgress,so=e.store.ui.contextMenu.visible$,Ao=e.store.ui.debugPanelVisible,Go=e.store.state.isLoaderVisible,wt=e.store.state.isEnded$,Xe=e.store.state.chromecastConnected$,Pi=e.store.state.chromecastDeviceName$,Po=e.store.ads.postrollPassed,Mo=e.store.state.isLive$,un=e.store.state.isPlaying$,N=e.store.state.crashed$,et=e.store.webApi.annotationsApi,bt=e.store.webApi.pictureInPictureApi,ti=e.store.state.currentSubtitle$,Ut=e.store.state.currentSubtitleCaptions$,Jt=e.store.ui.playerSize,hi=e.store.ui.is3DVideo,yi=e.store.ui.icon3DVideoVisible,gt=e.store.state.isInteractive,Bi=e.store.state.isInteractiveTime$,pn=e.store.state.isInteractiveExpectation$,fn=e.store.state.hasInteractiveBranches,jo=e.store.ui.touched,fi=e.store.ui.modals.hotKeyMap.data,Lo=e.store.ui.modals.hotKeyMap.show,Tr=e.store.ui.overlayContainer$,ao=e.store.ui.controls.interactiveTimeIndicator,lo=e.store.state.showInteractiveTimeIndicator,mn=e.store.ui.contextMenu.position$,vn=e.store.actions.internal.setQuality,Yo=e.store.actions.internal.closeSettingsMenu,ur=e.store.ui.autoplayNextEnabled$,An=e.store.ui.userActionsDisabled,Er=e.store.ui.isControlsAvailable,cs=e.store.ui.videoTitleInfo,Pn=e.store.actions.internal.getVideoElement,Ir=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Qn,notifications$:Gn,graphIsOpened$:Vo}=vo(),Di=Z(void 0),Mn=Z(void 0),Ln=Z(void 0),Vn=Z(void 0),pr,fr,mr;fi.set(k1());let{closeNotification:vr,notificationsToShow$:kr}=Gn,us=g(()=>!!n().slow_video),jn=()=>vr("slow_video"),go=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),Rn=Z(void 0),gn=ae(!1),ht,ii=ae(!1),Zo=ae(),Yn=ae(!1),hn=Z(!1),ho=Z(!1),Mi=Z(!1),Ti=Z(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Xo=g(()=>u()&&!f()&&!(r(hn)||r(ho))&&!(r(Mi)&&!v())),Zn=!0,jr=g(()=>e.uiConfig.features.thumbTimer&&Ge()&&s()==="video"&&!p()&&!a()&&!gt&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Yr=g(()=>s()==="video"&&!w()&&y()),gr=Z(!1),_n=g(()=>(Ne()||e.showAutoplayNext&&C())&&!!Ft()&&!!be()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!r(gr)),ps=g(()=>L()&&!(p()||r(_n))&&!u()&&k()),Nn=Z(!1),Ro=g(()=>I()!==null),{toggle:Xn}=Qn,bn=!1,Gt=null;bt==null||bt.setContext(jl());let Jn=()=>{e.autoplay&&!gt&&e.uiConfig.controls.showOnStartupAtAutoplay&&lt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Jn});let Ar=()=>{window.clearTimeout(pr),ii.set(!1)},Zr=()=>{window.clearTimeout(fr),Zo.set(null)},lt=Se=>{Ar(),ii.set(!0),pr=window.setTimeout(()=>ii.set(!1),Se);let St=Se-100;ht=window.setTimeout(()=>{V()&&gn.set(!1)},St>0?St:Se)},mi=(Se,St)=>{Zr(),Zo.set(St),fr=window.setTimeout(()=>Zo.set(null),Se)},co=hi.subscribe(Se=>{yi.set(Se),Se&&(window.clearTimeout(mr),mr=window.setTimeout(()=>yi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),No=()=>_t(null,null,function*(){var St,si,Ei,on;let Se=zs();if(Se){let Hi=wd(),Fi=_i();Se=Hi===Fi||Hi===ce()}if(Se){lt(e.uiConfig.controls.hideTimeoutFullscreen);try{yield bt==null?void 0:bt.exit()}catch(Hi){Lt({message:String(Hi)})}}eo.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),y()?(si=(St=e.store.callbacks)==null?void 0:St.onFullscreenEnter)==null||si.call(St):(on=(Ei=e.store.callbacks)==null?void 0:Ei.onFullscreenExit)==null||on.call(Ei)}),Oo=Se=>{let{width:St,height:si}=Se.target;Jt.set({width:St,height:si})},Bo=()=>{let{width:Se,height:St}=r(Di).getBoundingClientRect();Jt.set({width:Se,height:St})};Rt(()=>{var St;return xu(No),e.uiConfig.features.annotationsInside&&(et==null||et.init(r(Di))),wa(bt)&&(bt==null||bt.assignPlayerContainer(r(Di)),bt==null||bt.setExternalEventHandlers({resize:Oo,leavepictureinpicture:Bo})),e.interactiveContainer&&((St=mt().parentElement)==null||St.insertBefore(e.interactiveContainer,mt().nextSibling)),()=>{window.clearTimeout(pr),window.clearTimeout(ht),window.clearTimeout(fr),window.clearTimeout(mr),co(),bt==null||bt.dispose().catch(si=>{Lt({message:String(si)})}),wu(No)}});let _i=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!De()?r(Di):De(),St=Se.getRootNode(),si=St instanceof ShadowRoot?St.host:St,Ei=Ae()instanceof HTMLElement&&Ae().contains(si);return e.uiConfig.allowChangingFullscreenTarget&&Ae()&&Ei?Ae():Se},Jo=()=>{so.set(!1)},vi=()=>{Yo(),Jo()},$n=()=>_t(null,null,function*(){if(!Ir()){Lt({message:"fullscreen disabled"});return}Jo(),zs()?(yield yu(document),Lt({message:"exit fullscreen"})):(Lt({message:"request fullscreen"}),yield $u(_i()))}),On=Se=>{w()||(Se.preventDefault(),so.set(!0),mn.set({left:Se.clientX,top:Se.clientY}))};function fs(){Yn.set(!0),gt||lt(e.uiConfig.controls.hideTimeoutCursor)}function Xr(){gt||(gn.set(!0),lt(e.uiConfig.controls.hideTimeoutCursor))}function ms(){Yn.set(!1),B(ho,!1),B(hn,!1),bn=!1,e.store.actions.internal.releaseCamera(),lt(e.uiConfig.controls.hideTimeout)}function hr(Se){return Se?Se.offsetTop+hr(Se.offsetParent):0}function _o(Se){return Se?Se.offsetLeft+_o(Se.offsetParent):0}function Bn(Se){if(j()&&lo){let St=Se.currentTarget,si=hr(St),Ei=_o(St),on=Se.pageX-Ei,Hi=Se.pageY-si,{left:Fi,bottom:dt,right:qt}=j(),Ui=qt-Fi;return on>=Fi-Ui&&Hi<=dt+Ui}}function Pr(Se){if(r(Di)){let St=hr(Se.currentTarget),si=H().height,Ei=Se.pageY-St;if(Bn(Se)){B(ho,!1);return}Ei<40?B(ho,!0):Ei>si-40?B(hn,!0):(B(ho,!1),f()||B(hn,!1))}}function Mr(Se){Pr(Se),r(Xo)||lt(e.uiConfig.controls.hideTimeoutCursor),F()&&bn&&Gt&&e.store.actions.internal.moveCameraFocusPX(Gt.clientX-Se.clientX,Gt.clientY-Se.clientY,Se.timeStamp-Gt.timeStamp),Gt=Se}let st=Se=>{Se.preventDefault(),Se.button===0&&(bn=!0,e.store.actions.internal.holdCamera()),lt(e.uiConfig.controls.hideTimeoutCursor)},Pt=Se=>{Se.preventDefault(),Se.button===0&&(Gt=Se,bn=!1,e.store.actions.internal.releaseCamera()),lt(e.uiConfig.controls.hideTimeoutCursor)},xi=Se=>{Se.preventDefault(),Zn&&(Lt({message:"double click on video"}),$n(),lt(e.uiConfig.controls.hideTimeoutCursor))},uo=Se=>{var St;if(Se.preventDefault(),K()||f()){vi();return}if(!(E()&&!fn)){if(r(Ro))return Xn();if((St=Ze())==null||St.focus(),!Ke()){e.firstStart(),lt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ee()!==Mv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),lt(e.uiConfig.controls.hideTimeoutCursor)}},po=Se=>{vi(),jo.set(!0),lt(e.uiConfig.controls.hideTimeout),Se&&mi(e.uiConfig.controls.hideHotKeyHelpers,Se)},to=()=>{var Se,St;vi(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(St=e.store.callbacks)==null||St.onOpenHotKeyMap(Y()):Lo.update(si=>!si)},io=()=>{jo.set(!0)},fo=e.store.ui.contextMenu.openedByBtnKeyboard$,Dn=e.store.ui.contextMenu.btnRef$,bo=Z(void 0),$o=e.store.ui.contextMenu.openedByHotKey$,Do=e.store.ui.contextMenu.lastActiveElem$;qe(()=>{Tr.set(r(Rn))}),qe(()=>{B(Mi,r(Ti)&&ee()!==Mv.PlaybackState.PLAYING,!0),r(Ti)||Et(()=>B(Ti,!0))}),qe(()=>{ko.set((r(Mi)||E()||f()||de()||oe()||fe()||_e())&&!r(Xo)&&(s()==="video"||s()==="ads")&&!a()&&k())}),qe(()=>{!de()&&r(Nn)&&!u()&&lt(e.uiConfig.controls.hideTimeoutCursor),Et(()=>B(Nn,de(),!0))}),qe(()=>{r(Vn),f(),pe(),Et(()=>Ad(r(Vn),f(),pe()))}),qe(()=>{r(bo),K(),Oe(),ne(),Et(()=>{let Se=Oe()||ne();Ad(r(bo),K(),Se)})}),qe(()=>{let Se=Re();Se&&(K(),Et(()=>wl(Se,K(),fo)))}),qe(()=>{let Se=re();Se&&(K(),Et(()=>V1(Se,K(),$o)))}),qe(()=>{var Se;!O()&&y()&&(Et(()=>Gi.set(!1)),(Se=Ze())==null||Se.focus())}),qe(()=>{w()&&vi()});let er=q("video360"),en=Z(void 0),Lr=Se=>{cs.set(Kn(Pn(),{title:r(en)},"title",Se))},_r=(Se,St)=>{var Hi,Fi;let si=(Fi=(Hi=e.store.callbacks)==null?void 0:Hi.uiInfo)==null?void 0:Fi.onUpcomingLiveViewStateChanged;if(!si)return;let Ei=!!St,on=W(W({},Kn(r(Di),{upcomingLiveScreen:St},"upcomingLiveScreen",Ei)),Se);si(on)};var Vr=Bx();kt("blur",aa,vi);var yo=he(Vr);yo.__mousemove=Mr;var Rr=_(yo);let We=g(()=>s()==="ads"),ei=g(()=>r(Ro)?Xn:void 0);nt(Gf(Rr,{toggleFullscreen:$n,hideContextMenu:vi,showHotKeyHelpers:po,showKeyMap:to,get isAds(){return r(We)},get fakePlayButtonHandler(){return r(ei)},get nextButtonActive(){return Wt()},get prevButtonActive(){return se()},children:(Se,St)=>{var si=Nx(),Ei=he(si);Wa(Ei,{get hideCursor(){return r(ps)},onClick:uo,onContextMenu:On,onMouseDown:st,onMouseUp:Pt,onDblClick:xi,get videoContainer(){return mt()},set videoContainer(Fi){mt(Fi)}});var on=A(Ei,2);ma(on,()=>"slot",!1,(Fi,dt)=>{Pe(Fi,()=>({name:za}))});var Hi=A(on,2);fa(Hi,ue,Fi=>{var dt=Rx(),qt=he(dt);let Ui=g(()=>s()!=="thumb"||a()||gt&&e.autoplay);Ha(qt,{get hidden(){return r(Ui)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var xn=A(qt,2);Pv(xn,{});var wn=A(xn,2);{var br=Ye=>{let ci=g(()=>{var wo;return(wo=e.live)==null?void 0:wo.startTime});nc(Ye,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ci)},onUpcomingLiveViewStateChanged:_r})};R(wn,Ye=>{s()==="LiveWaitingStart"&&Ye(br)})}var Nr=A(wn,2);{var vs=Ye=>{Fa(Ye,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Nr,Ye=>{s()==="LiveWaitingRecover"&&Ye(vs)})}var Li=A(Nr,2);{var Vi=Ye=>{Fa(Ye,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Li,Ye=>{s()==="LiveWaitingRecord"&&Ye(Vi)})}var Ho=A(Li,2);{var Fo=Ye=>{var ci=Px();let wo;var gs=_(ci);Cd(gs,{get adsSlotId(){return vt()},get adsParams(){return Tt()},get adsAutoplayParam(){return Je()},get duration(){return zt()},get adsExternalApi(){return e.adsExternalApi}}),h(ci),D(rn=>wo=ie(ci,1,"ads-container svelte-jtgjmv",null,wo,rn),[()=>({hidden:s()!=="ads"})]),$(Ye,ci)};R(Ho,Ye=>{e.showAds&&Ke()&&Ye(Fo)})}var $r=A(Ho,2);{var xo=Ye=>{let ci=g(()=>!Ne()&&e.showAutoplayNext&&C());Kf(Ye,{get title(){return Ft()},get thumb(){return be()},get isHide(){return r(ci)},clickCloseIcon:()=>B(gr,!0)})};R($r,Ye=>{r(_n)&&Ft()&&be()&&Ye(xo)})}var tr=A($r,2);{var Ct=Ye=>{let ci=g(()=>!p());rv(Ye,{get title(){return e.title},get isHidden(){return r(ci)},onVisibilityChanged:Lr,get ref(){return r(en)},set ref(wo){B(en,wo,!0)}})};R(tr,Ye=>{r(Yr)&&Ye(Ct)})}var xt=A(tr,2);{var mo=Ye=>{let ci=g(()=>s()==="video"&&p());ic(Ye,{get isShifted(){return r(ci)}})};R(xt,Ye=>{F()&&Ye(mo)})}var nn=A(xt,2);{var ji=Ye=>{var ci=Mx(),wo=_(ci);xd(wo,{get"aria-label"(){return er}}),h(ci),$(Ye,ci)};R(nn,Ye=>{Ve()&&Ye(ji)})}var di=A(nn,2);{var zi=Ye=>{oc(Ye,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ge()}})};R(di,Ye=>{fe()&&Ye(zi)})}var Ms=A(di,2);{var Or=Ye=>{Ba(Ye,{get shifted(){return p()},get captions(){return ve()},get position(){return He()},get playerSize(){return H()}})};R(Ms,Ye=>{te().value!=="off"&&Ye(Or)})}var yc=A(Ms,2);{var up=Ye=>{var ci=Lx();ci.__contextmenu=On,ci.__click=[Ax,K,so,f,pi,vi];var wo=_(ci);Da(wo,{}),h(ci),$(Ye,ci)};R(yc,Ye=>{a()&&Ye(up)})}var xc=A(yc,2);{var pp=Ye=>{let ci=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),wo=g(()=>s()==="ads"),gs=g(()=>e.canRewindLive&&me()!==0);tc(Ye,{get bottomHidden(){return r(ci)},get bottomNoSmooth(){return V()},get showControls(){return p()},get isAds(){return r(wo)},get canRewindLive(){return r(gs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Yt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Zt()},get nextButtonActive(){return Wt()},get prevButtonActive(){return se()},get isOneVideoPlaylist(){return we()},customFullscreenSupported:Zn,toggleFullscreen:$n,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Mn)},set playerControlsWrapperRef(rn){B(Mn,rn,!0)},get playerControlsRef(){return r(Ln)},set playerControlsRef(rn){B(Ln,rn,!0)}})};R(xc,Ye=>{Ke()&&Ye(pp)})}var wc=A(xc,2);{var fp=Ye=>{var ci=Vx(),wo=_(ci);let gs=g(()=>{var rn;return(rn=r(Ln))==null?void 0:rn.clientHeight});lc(wo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(gs)},returnFocus:()=>{var rn;return(rn=Ze())==null?void 0:rn.focus()},get ref(){return r(Vn)},set ref(rn){B(Vn,rn,!0)}}),h(ci),$(Ye,ci)};R(wc,Ye=>{!fe()&&s()!=="ads"&&Ye(fp)})}var Sc=A(wc,2);let mp=g(()=>!r(jr));Id(Sc,{get isLive(){return ct()},get isHidden(){return r(mp)},get isPlaying(){return X()},get position(){return He()},get duration(){return me()}});var Cc=A(Sc,2);tv(Cc,{get data(){return Zo}});var Tc=A(Cc,2);zf(Tc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ye;return(Ye=Ze())==null?void 0:Ye.focus()},get visible(){return K()},get playerContainerRef(){return r(Di)},get controlsContainerRef(){return r(Mn)},get position(){return Me()},get menuElementRef(){return r(bo)},set menuElementRef(Ye){B(bo,Ye,!0)}});var Ec=A(Tc,2);{var vp=Ye=>{dc(Ye,{onClose:jn,onSelectAutoQuality:()=>{vn("auto"),jn()}})};R(Ec,Ye=>{r(us)&&Ye(vp)})}var Ic=A(Ec,2);{var gp=Ye=>{Ia(Ye,{})};R(Ic,Ye=>{r(go)&&Ye(gp)})}var kc=A(Ic,2);{var Qa=Ye=>{Zf(Ye,{})};R(kc,Ye=>{ke()&&Ye(Qa)})}var hp=A(kc,2);{var Ac=Ye=>{Md(Ye,{})};R(hp,Ye=>{ze()&&Ye(Ac)})}$(Fi,dt)}),$(Se,si)},$$slots:{default:!0}}),Se=>Ze(Se),()=>Ze());var wi=A(Rr,2);nt(wi,Se=>B(Rn,Se),()=>r(Rn)),h(yo),nt(yo,Se=>B(Di,Se),()=>r(Di));var yn=A(yo,2);{var tn=Se=>{var St=Ox();$(Se,St)};R(yn,Se=>{rt()&&Se(tn)})}kt("mouseenter",yo,fs),kt("mouseleave",yo,ms),kt("click",yo,io,!0),kt("focusin",yo,Xr,!0),$(t,Vr),z(),o()}pt(["mousemove","contextmenu","click"]);var Js=require("@vkontakte/videoplayer-core/es2015"),N0=require("@vkontakte/videoplayer-shared/es2015");var Hx=M('<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),Fx=M("<div><!></div>"),Ux={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
343
+ }`};function gc(t,e){q(t,Bx);let i=v(e,"isPrev",3,!1);var o=Ue(),n=me(o);ys(n,()=>e.Icon,s=>{var l=Nx(),d=_(l);Mi(d,()=>e.Icon,(a,u)=>{u(a,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return i()}})}),h(l),D(()=>at(l,`animation-duration: ${e.duration}ms`)),$(s,l)}),$(t,o)}var Hv=require("@vkontakte/videoplayer-core/es2015"),Dx=P('<div class="container svelte-1sw36pi"><!></div>'),Fx={hash:"svelte-1sw36pi",code:".container.svelte-1sw36pi {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}"};function Uv(t,e){z(e,!0),q(t,Fx);let[i,o]=He(),n=()=>S(l,"$playbackState$",i),s=()=>S(d,"$isPlaying$",i),{state:{playbackState$:l,isPlaying$:d}}=Te(),{features:{playbackStatusShow:a},playbackStatusAnimationDuration:u}=kt(),f=0,m=J(null),p=J(!1);qe(()=>{n()===Hv.PlaybackState.PLAYING?N(m,Yr,!0):n()===Hv.PlaybackState.PAUSED?N(m,Is,!0):N(m,null)}),qe(()=>{if(a)return f=window.setTimeout(()=>{f=0,N(m,null)},u),()=>{f&&(window.clearTimeout(f),f=0)}}),qe(()=>{s()&&!r(p)&&(N(p,!0),N(m,null))});var x=Ue(),y=me(x);{var w=T=>{var C=Dx(),E=_(C);gc(E,{get duration(){return u},get Icon(){return r(m)}}),h(C),$(T,C)};R(y,T=>{r(m)&&a&&T(w)})}$(t,x),W(),o()}var Hx=P('<div><div data-testid="video-container"></div></div>'),Ux={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
344
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function za(t,e){z(e,!0),q(t,Ux);let[i,o]=He(),n=()=>S(f,"$rotateAlpha",i),s=()=>S(m,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=v(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:m},state:{isPlaying$:p}}=Te(),{isSmoothVideoRotate:x}=kt(),y=g(()=>a()&&n()%180?s().height/s().width:1);var w=Hx();let T;w.__contextmenu=function(...V){var I;(I=e.onContextMenu)==null||I.apply(this,V)},w.__mousedown=function(...V){var I;(I=e.onMouseDown)==null||I.apply(this,V)},w.__mouseup=function(...V){var I;(I=e.onMouseUp)==null||I.apply(this,V)},w.__click=function(...V){var I;(I=e.onClick)==null||I.apply(this,V)},w.__dblclick=function(...V){var I;(I=e.onDblClick)==null||I.apply(this,V)};var C=_(w);let E;rt(C,V=>a(V),()=>a()),h(w),D((V,I)=>{T=se(w,1,"video-wrapper svelte-1czns9r",null,T,V),E=se(C,1,"video-container svelte-1czns9r",null,E,I),at(C,`transform: rotate(${n()}deg) scale(${r(y)})`),ze(C,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!x})]),$(t,w),W(),o()}ct(["contextmenu","mousedown","mouseup","click","dblclick"]);var zx=we('<svg><!><path fill="currentColor" d="M8 7.389V5.725c0-.52.57-.84 1.015-.569l3.721 2.275a.667.667 0 0 1 0 1.138l-3.721 2.275A.667.667 0 0 1 8 10.275V8.611l-3.652 2.233a.667.667 0 0 1-1.014-.569v-4.55c0-.52.57-.84 1.014-.569z"></path></svg>');function zv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=zx();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var Wx=P('<div><span class="text svelte-1gi6268"> </span> <!></div>'),Kx={hash:"svelte-1gi6268",code:".root.svelte-1gi6268 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:var(--white);display:flex;border-radius:100px;position:absolute;top:24px;left:50%;transform:translateX(-50%);transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden;opacity:0;pointer-events:none;}.root.visible.svelte-1gi6268 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1gi6268 {font-size:13px;line-height:16px;font-weight:600;}"};function Wv(t,e){z(e,!0),q(t,Kx);let{ui:{t:i}}=Te();var o=Wx();let n;var s=_(o),l=_(s,!0);h(s);var d=k(s,2);zv(d,{}),h(o),D((a,u)=>{n=se(o,1,"root svelte-1gi6268",null,n,a),ge(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),W()}var qx=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},Qx=P("<div><!></div>"),Gx=P('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),jx=P("<div><!></div>"),Yx=P('<div class="settings-menu svelte-jtgjmv"><!></div>'),Zx=P("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Xx=P("<!> <!> <!>",1),Jx=P('<div class="blocked svelte-jtgjmv"></div>'),e5=P('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),t5={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function qv(t,e){z(e,!0),q(t,t5);let[i,o]=He(),n=()=>S(es,"$notificationsToShow$",i),s=()=>S(At,"$playerPhase",i),l=()=>S(Ot,"$isLoaderVisible",i),d=()=>S(bi,"$adPlaybackState",i),a=()=>S(Qt,"$crashed",i),u=()=>S(yn,"$isInteractiveTime$",i),f=()=>S(pt,"$settingsMenuVisible",i),m=()=>S(xn,"$isInteractiveExpectation$",i),p=()=>S(_t,"$controlsVisible",i),x=()=>S(uo,"$touched",i),y=()=>S(Jr,"$graphIsOpened$",i),w=()=>S(ti,"$isFullscreen",i),T=()=>S(vr,"$autoplayNextEnabled$",i),C=()=>S(Dn,"$postrollPassed",i),E=()=>S(Eo,"$isEnded$",i),V=()=>S(gi,"$cursorInside",i),I=()=>S(Xr,"$isControlsAvailable",i),L=()=>S(Un,"$doubleForwardOn$",i),B=()=>S(zn,"$fakeIsPlaying$",i),F=()=>S(En,"$bottomNoSmooth",i),H=()=>S(Fn,"$interactiveTimeIndicator",i),U=()=>S($i,"$playerSize",i),Z=()=>S(xt,"$is3DVideo",i),re=()=>S(Sn,"$doubleForwardAvailable$",i),G=()=>S(Mt,"$contextMenuVisible$",i),be=()=>S(ni,"$playbackState$",i),ee=()=>S(fr,"$hotKeyMapData",i),pe=()=>S(Ii,"$scrubbingInProgress",i),ve=()=>S(Go,"$volumeChangingInProgress",i),ue=()=>S(Io,"$chromecastConnected$",i),Me=()=>S(Ao,"$controlsTimeoutActive",i),Oe=()=>S(Jt,"$settingsMenuOpenedByKeyboard",i),le=()=>S(xr,"$contextMenuOpenedByKeyboard$",i),De=()=>S(Br,"$contextMenuOpenedByHotKey$",i),X=()=>S(wr,"$contextMenuButtonRef$",i),M=()=>S(ts,"$contextMenuLastActiveElem$",i),st=()=>S(ui,"$isFullscreenOpenedByKeyboard",i),Fe=()=>S(_i,"$language$",i),j=()=>S(Ai,"$icon3DVideoVisible",i),oe=()=>S(jo,"$chromecastDeviceName$",i),Be=()=>S(ri,"$currentSubtitle$",i),Je=()=>S(wi,"$currentSubtitleCaptions$",i),$e=()=>S(Fi,"$position$",i),ie=()=>S(ho,"$duration$",i),Se=()=>S(O,"$isLive$",i),Ee=()=>S(et,"$isPlaying$",i),Qe=()=>S(ko,"$contextMenuPosition$",i),tt=()=>S(po,"$showHotKeyMap",i),gt=()=>S(lt,"$debugPanelVisible",i),dt=()=>S(vs,"$userActionsDisabled$",i),ht=v(e,"videoContainer",15),it=v(e,"adsSlotId",3,void 0),Wt=v(e,"adsParams",3,void 0),Yt=v(e,"adsAutoplayParam",3,void 0),ei=v(e,"duration",3,void 0),Zt=v(e,"logoTargetUrl",3,""),Ae=v(e,"showNextPrevButtons",3,!1),Ft=v(e,"nextButtonActive",3,!1),Ce=v(e,"prevButtonActive",3,!1),Ie=v(e,"endScreenVideoTitle",3,void 0),ce=v(e,"endScreenVideoThumb",3,void 0),Ke=v(e,"isOneVideoPlaylist",3,!1),fe=v(e,"shadowRootContainer",3,void 0),Ve=v(e,"outerContainerRef",3,void 0),Ne=v(e,"playerStarted",3,!1),ye=v(e,"fullScreenTarget",3,void 0),Ye=v(e,"showMiniTimer",3,!1),yt=v(e,"showEndScreen",3,!0),Xt=v(e,"keyboardControls",15),Lt=e.store.getLogger().createComponentLog("Root component"),_i=e.store.interfaceLanguage$,ni=e.store.state.playbackState$,bi=e.store.ads.playbackState,Fi=e.store.state.positionWithScrubbing$,ho=e.store.state.duration$,At=e.store.playerPhase,ti=e.store.ui.isFullscreen,ui=e.store.ui.isFullscreenOpenedByKeyboard,_t=e.store.ui.controlsVisible,pt=e.store.ui.settingsMenu.visible$,Jt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ii=e.store.ui.scrubbingInProgress,Go=e.store.ui.volumeChangingInProgress,Mt=e.store.ui.contextMenu.visible$,lt=e.store.ui.debugPanelVisible,Ot=e.store.state.isLoaderVisible,Eo=e.store.state.isEnded$,Io=e.store.state.chromecastConnected$,jo=e.store.state.chromecastDeviceName$,Dn=e.store.ads.postrollPassed,O=e.store.state.isLive$,et=e.store.state.isPlaying$,Qt=e.store.state.crashed$,Gt=e.store.webApi.annotationsApi,vt=e.store.webApi.pictureInPictureApi,ri=e.store.state.currentSubtitle$,wi=e.store.state.currentSubtitleCaptions$,$i=e.store.ui.playerSize,xt=e.store.ui.is3DVideo,Ai=e.store.ui.icon3DVideoVisible,co=e.store.state.isInteractive,yn=e.store.state.isInteractiveTime$,xn=e.store.state.isInteractiveExpectation$,vi=e.store.state.hasInteractiveBranches,uo=e.store.ui.touched,fr=e.store.ui.modals.hotKeyMap.data,po=e.store.ui.modals.hotKeyMap.show,no=e.store.ui.overlayContainer$,Fn=e.store.ui.controls.interactiveTimeIndicator,Yo=e.store.state.showInteractiveTimeIndicator,ko=e.store.ui.contextMenu.position$,mr=e.store.actions.internal.setQuality,Hn=e.store.actions.internal.closeSettingsMenu,vr=e.store.ui.autoplayNextEnabled$,vs=e.store.ui.userActionsDisabled,Xr=e.store.ui.isControlsAvailable,wn=e.store.ui.videoTitleInfo,Un=e.store.ui.doubleForwardOn$,Sn=e.store.ui.doubleForwardAvailable$,Zo=e.store.actions.internal.getVideoElement,Xo=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:zn,notifications$:gr,graphIsOpened$:Jr}=go(),fo=J(void 0),Pr=J(void 0),Wn=J(void 0),Cn=J(void 0),Kn,hr,qn;fr.set(K1());let{closeNotification:_o,notificationsToShow$:es}=gr,Tn=g(()=>!!n().slow_video),ft=()=>_o("slow_video"),ai=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),dn=J(void 0),En=ae(!1),Lr,Ao=ae(!1),cn=ae(),gi=ae(!1),Pi=J(!1),Po=J(!1),Qn=J(!1),_r=J(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Mr=g(()=>u()&&!f()&&!(r(Pi)||r(Po))&&!(r(Qn)&&!m())),br=!0,Gn=g(()=>e.uiConfig.features.thumbTimer&&Ye()&&s()==="video"&&!p()&&!a()&&!co&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),jn=g(()=>s()==="video"&&!y()&&w()),Lo=J(!1),Yn=g(()=>(yt()||e.showAutoplayNext&&T())&&!!Ie()&&!!ce()&&(e.showAds&&C()||!e.showAds)&&E()&&!a()&&!r(Lo)),$r=g(()=>V()&&!(p()||r(Yn))&&!u()&&I()&&!L()),si=J(!1),un=g(()=>B()!==null),{toggle:yr}=zn,In=!1,mt=null;vt==null||vt.setContext(Jl());let pi=()=>{e.autoplay&&!co&&e.uiConfig.controls.showOnStartupAtAutoplay&&fi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:pi});let ro=()=>{window.clearTimeout(Kn),Ao.set(!1)},Jo=()=>{window.clearTimeout(hr),cn.set(null)},fi=te=>{ro(),Ao.set(!0),Kn=window.setTimeout(()=>Ao.set(!1),te);let Ze=te-100;Lr=window.setTimeout(()=>{F()&&En.set(!1)},Ze>0?Ze:te)},pn=(te,Ze)=>{Jo(),cn.set(Ze),hr=window.setTimeout(()=>cn.set(null),te)},Hi=xt.subscribe(te=>{Ai.set(te),te&&(window.clearTimeout(qn),qn=window.setTimeout(()=>Ai.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Yi=()=>Ct(null,null,function*(){var Ze,Kt,mi,Ui;let te=Ws();if(te){let zi=Ed(),Wi=kn();te=zi===Wi||zi===fe()}if(te){fi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield vt==null?void 0:vt.exit()}catch(zi){Lt({message:String(zi)})}}ti.set(te),e.store.getAdmanWrapper().setFullscreen(te),w()?(Kt=(Ze=e.store.callbacks)==null?void 0:Ze.onFullscreenEnter)==null||Kt.call(Ze):(Ui=(mi=e.store.callbacks)==null?void 0:mi.onFullscreenExit)==null||Ui.call(mi)}),Zi=te=>{let{width:Ze,height:Kt}=te.target;$i.set({width:Ze,height:Kt})},en=()=>{let{width:te,height:Ze}=r(fo).getBoundingClientRect();$i.set({width:te,height:Ze})};Rt(()=>{var Ze;return Iu(Yi),e.uiConfig.features.annotationsInside&&(Gt==null||Gt.init(r(fo))),xa(vt)&&(vt==null||vt.assignPlayerContainer(r(fo)),vt==null||vt.setExternalEventHandlers({resize:Zi,leavepictureinpicture:en})),e.interactiveContainer&&((Ze=ht().parentElement)==null||Ze.insertBefore(e.interactiveContainer,ht().nextSibling)),()=>{window.clearTimeout(Kn),window.clearTimeout(Lr),window.clearTimeout(hr),window.clearTimeout(qn),Hi(),vt==null||vt.dispose().catch(Kt=>{Lt({message:String(Kt)})}),ku(Yi)}});let kn=()=>{let te=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ve()?r(fo):Ve(),Ze=te.getRootNode(),Kt=Ze instanceof ShadowRoot?Ze.host:Ze,mi=ye()instanceof HTMLElement&&ye().contains(Kt);return e.uiConfig.allowChangingFullscreenTarget&&ye()&&mi?ye():te},Vr=()=>{Mt.set(!1)},tn=()=>{Hn(),Vr()},Rr=()=>Ct(null,null,function*(){if(!Xo()){Lt({message:"fullscreen disabled"});return}Vr(),Ws()?(yield Eu(document),Lt({message:"exit fullscreen"})):(Lt({message:"request fullscreen"}),yield Tu(kn()))}),Or=te=>{y()||(te.preventDefault(),Mt.set(!0),ko.set({left:te.clientX,top:te.clientY}))};function Mo(){gi.set(!0),co||fi(e.uiConfig.controls.hideTimeoutCursor)}function Zn(){co||(En.set(!0),fi(e.uiConfig.controls.hideTimeoutCursor))}function Nr(){gi.set(!1),N(Po,!1),N(Pi,!1),In=!1,e.store.actions.internal.releaseCamera(),fi(e.uiConfig.controls.hideTimeout),L()&&Oi()}function Xn(te){return te?te.offsetTop+Xn(te.offsetParent):0}function nt(te){return te?te.offsetLeft+nt(te.offsetParent):0}function Vt(te){if(H()&&Yo){let Ze=te.currentTarget,Kt=Xn(Ze),mi=nt(Ze),Ui=te.pageX-mi,zi=te.pageY-Kt,{left:Wi,bottom:ir,right:ki}=H(),Ti=ki-Wi;return Ui>=Wi-Ti&&zi<=ir+Ti}}function Si(te){if(r(fo)){let Ze=Xn(te.currentTarget),Kt=U().height,mi=te.pageY-Ze;if(Vt(te)){N(Po,!1);return}mi<40?N(Po,!0):mi>Kt-40?N(Pi,!0):(N(Po,!1),f()||N(Pi,!1))}}function mo(te){Si(te),!r(Mr)&&!L()&&fi(e.uiConfig.controls.hideTimeoutCursor),Z()&&In&&mt&&e.store.actions.internal.moveCameraFocusPX(mt.clientX-te.clientX,mt.clientY-te.clientY,te.timeStamp-mt.timeStamp),mt=te}let Ri=null,Xi=()=>{Ri=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),ro()},e.uiConfig.doubleForwardActivationTime)},Oi=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Ri&&clearTimeout(Ri),Ri=null},bo=te=>{te.preventDefault(),te.button===0&&(In=!0,e.store.actions.internal.holdCamera(),re()&&Xi()),!In&&fi(e.uiConfig.controls.hideTimeoutCursor)},An=te=>{te.preventDefault(),te.button===0&&(mt=te,In=!1,e.store.actions.internal.releaseCamera()),!L()&&fi(e.uiConfig.controls.hideTimeoutCursor)},Vo=te=>{te.preventDefault(),br&&(Lt({message:"double click on video"}),Rr(),fi(e.uiConfig.controls.hideTimeoutCursor))},Ro=te=>{var Ze;if(te.preventDefault(),L()){Oi();return}if(Ri&&Oi(),G()||f()){tn();return}if(!(E()&&!vi)){if(r(un))return yr();if((Ze=Xt())==null||Ze.focus(),!Ne()){e.firstStart(),fi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||be()!==Kv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),fi(e.uiConfig.controls.hideTimeoutCursor)}},Oo=te=>{tn(),uo.set(!0),fi(e.uiConfig.controls.hideTimeout),te&&pn(e.uiConfig.controls.hideHotKeyHelpers,te)},Jn=()=>{var te,Ze;tn(),(te=e.store.callbacks)!=null&&te.onOpenHotKeyMap?(Ze=e.store.callbacks)==null||Ze.onOpenHotKeyMap(ee()):po.update(Kt=>!Kt)},Pn=()=>{uo.set(!0)},xr=e.store.ui.contextMenu.openedByBtnKeyboard$,wr=e.store.ui.contextMenu.btnRef$,er=J(void 0),Br=e.store.ui.contextMenu.openedByHotKey$,ts=e.store.ui.contextMenu.lastActiveElem$;qe(()=>{no.set(r(dn))}),qe(()=>{N(Qn,r(_r)&&be()!==Kv.PlaybackState.PLAYING,!0),r(_r)||Tt(()=>N(_r,!0))}),qe(()=>{_t.set((r(Qn)||E()||f()||pe()||ve()||ue()||Me())&&!r(Mr)&&(s()==="video"||s()==="ads")&&!a()&&I())}),qe(()=>{!pe()&&r(si)&&!u()&&fi(e.uiConfig.controls.hideTimeoutCursor),Tt(()=>N(si,pe(),!0))}),qe(()=>{r(Cn),f(),Oe(),Tt(()=>Vd(r(Cn),f(),Oe()))}),qe(()=>{r(er),G(),le(),De(),Tt(()=>{let te=le()||De();Vd(r(er),G(),te)})}),qe(()=>{let te=X();te&&(G(),Tt(()=>xl(te,G(),xr)))}),qe(()=>{let te=M();te&&(G(),Tt(()=>Y1(te,G(),Br)))}),qe(()=>{var te;!st()&&w()&&(Tt(()=>ui.set(!1)),(te=Xt())==null||te.focus())}),qe(()=>{y()&&tn()});let We=Q("video360"),jt=J(void 0),Ci=te=>{wn.set(Nn(Zo(),{title:r(jt)},"title",te))},fn=(te,Ze)=>{var zi,Wi;let Kt=(Wi=(zi=e.store.callbacks)==null?void 0:zi.uiInfo)==null?void 0:Wi.onUpcomingLiveViewStateChanged;if(!Kt)return;let mi=!!Ze,Ui=K(K({},Nn(r(fo),{upcomingLiveScreen:Ze},"upcomingLiveScreen",mi)),te);Kt(Ui)};var No=e5();It("blur",aa,tn);var Bo=me(No);Bo.__mousemove=mo;var Do=_(Bo);let tr=g(()=>s()==="ads"),is=g(()=>r(un)?yr:void 0);rt(nm(Do,{startDoubleForwardActivationTimer:Xi,stopDoubleForward:Oi,toggleFullscreen:Rr,hideContextMenu:tn,showHotKeyHelpers:Oo,showKeyMap:Jn,get isAds(){return r(tr)},get fakePlayButtonHandler(){return r(is)},get nextButtonActive(){return Ft()},get prevButtonActive(){return Ce()},children:(te,Ze)=>{var Kt=Xx(),mi=me(Kt);za(mi,{get hideCursor(){return r($r)},onClick:Ro,onContextMenu:Or,onMouseDown:bo,onMouseUp:An,onDblClick:Vo,get videoContainer(){return ht()},set videoContainer(Wi){ht(Wi)}});var Ui=k(mi,2);fa(Ui,()=>"slot",!1,(Wi,ir)=>{ke(Wi,()=>({name:Ua}))});var zi=k(Ui,2);ys(zi,Fe,Wi=>{var ir=Zx(),ki=me(ir);let Ti=g(()=>s()!=="thumb"||a()||co&&e.autoplay);Da(ki,{get hidden(){return r(Ti)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Fo=k(ki,2);Uv(Fo,{});var $o=k(Fo,2);Wv($o,{get isVisible(){return L()}});var Cr=k($o,2);{var yo=je=>{let di=g(()=>{var Ho;return(Ho=e.live)==null?void 0:Ho.startTime});dc(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(di)},onUpcomingLiveViewStateChanged:fn})};R(Cr,je=>{s()==="LiveWaitingStart"&&je(yo)})}var or=k(Cr,2);{var St=je=>{Fa(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(or,je=>{s()==="LiveWaitingRecover"&&je(St)})}var wt=k(or,2);{var vo=je=>{Fa(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(wt,je=>{s()==="LiveWaitingRecord"&&je(vo)})}var on=k(wt,2);{var Ji=je=>{var di=Qx();let Ho;var ns=_(di);kd(ns,{get adsSlotId(){return it()},get adsParams(){return Wt()},get adsAutoplayParam(){return Yt()},get duration(){return ei()}}),h(di),D(mn=>Ho=se(di,1,"ads-container svelte-jtgjmv",null,Ho,mn),[()=>({hidden:s()!=="ads"})]),$(je,di)};R(on,je=>{e.showAds&&Ne()&&je(Ji)})}var li=k(on,2);{var Ki=je=>{let di=g(()=>!yt()&&e.showAutoplayNext&&T());tm(je,{get title(){return Ie()},get thumb(){return ce()},get isHide(){return r(di)},clickCloseIcon:()=>N(Lo,!0)})};R(li,je=>{r(Yn)&&Ie()&&ce()&&je(Ki)})}var Ms=k(li,2);{var Dr=je=>{let di=g(()=>!p());vv(je,{get title(){return e.title},get isHidden(){return r(di)},onVisibilityChanged:Ci,get ref(){return r(jt)},set ref(Ho){N(jt,Ho,!0)}})};R(Ms,je=>{r(jn)&&je(Dr)})}var Ec=k(Ms,2);{var hp=je=>{let di=g(()=>s()==="video"&&p());ac(je,{get isShifted(){return r(di)}})};R(Ec,je=>{Z()&&je(hp)})}var Ic=k(Ec,2);{var _p=je=>{var di=Gx(),Ho=_(di);Td(Ho,{get"aria-label"(){return We}}),h(di),$(je,di)};R(Ic,je=>{j()&&je(_p)})}var kc=k(Ic,2);{var bp=je=>{lc(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return oe()}})};R(kc,je=>{ue()&&je(bp)})}var Ac=k(kc,2);{var $p=je=>{Na(je,{get shifted(){return p()},get captions(){return Je()},get position(){return $e()},get playerSize(){return U()}})};R(Ac,je=>{Be().value!=="off"&&je($p)})}var Pc=k(Ac,2);{var yp=je=>{var di=jx();di.__contextmenu=Or,di.__click=[qx,G,Mt,f,pt,tn];var Ho=_(di);Ba(Ho,{}),h(di),$(je,di)};R(Pc,je=>{a()&&je(yp)})}var Lc=k(Pc,2);{var xp=je=>{let di=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Ho=g(()=>s()==="ads"),ns=g(()=>e.canRewindLive&&ie()!==0);sc(je,{get bottomHidden(){return r(di)},get bottomNoSmooth(){return F()},get showControls(){return p()},get isAds(){return r(Ho)},get canRewindLive(){return r(ns)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Zt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ae()},get nextButtonActive(){return Ft()},get prevButtonActive(){return Ce()},get isOneVideoPlaylist(){return Ke()},customFullscreenSupported:br,toggleFullscreen:Rr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Pr)},set playerControlsWrapperRef(mn){N(Pr,mn,!0)},get playerControlsRef(){return r(Wn)},set playerControlsRef(mn){N(Wn,mn,!0)}})};R(Lc,je=>{Ne()&&je(xp)})}var Mc=k(Lc,2);{var wp=je=>{var di=Yx(),Ho=_(di);let ns=g(()=>{var mn;return(mn=r(Wn))==null?void 0:mn.clientHeight});fc(Ho,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(ns)},returnFocus:()=>{var mn;return(mn=Xt())==null?void 0:mn.focus()},get ref(){return r(Cn)},set ref(mn){N(Cn,mn,!0)}}),h(di),$(je,di)};R(Mc,je=>{!ue()&&s()!=="ads"&&je(wp)})}var Vc=k(Mc,2);let qa=g(()=>!r(Gn));Ld(Vc,{get isLive(){return Se()},get isHidden(){return r(qa)},get isPlaying(){return Ee()},get position(){return $e()},get duration(){return ie()}});var Rc=k(Vc,2);uv(Rc,{get data(){return cn}});var zl=k(Rc,2);Jf(zl,{get supportLink(){return e.supportLink},returnFocus:()=>{var je;return(je=Xt())==null?void 0:je.focus()},get visible(){return G()},get playerContainerRef(){return r(fo)},get controlsContainerRef(){return r(Pr)},get position(){return Qe()},get menuElementRef(){return r(er)},set menuElementRef(je){N(er,je,!0)}});var Wl=k(zl,2);{var Sp=je=>{mc(je,{onClose:ft,onSelectAutoQuality:()=>{mr("auto"),ft()}})};R(Wl,je=>{r(Tn)&&je(Sp)})}var Kl=k(Wl,2);{var ql=je=>{Ea(je,{})};R(Kl,je=>{r(ai)&&je(ql)})}var Ql=k(Kl,2);{var Cp=je=>{am(je,{})};R(Ql,je=>{tt()&&je(Cp)})}var Oc=k(Ql,2);{var Tp=je=>{Od(je,{})};R(Oc,je=>{gt()&&je(Tp)})}$(Wi,ir)}),$(te,Kt)},$$slots:{default:!0}}),te=>Xt(te),()=>Xt());var Ls=k(Do,2);rt(Ls,te=>N(dn,te),()=>r(dn)),h(Bo),rt(Bo,te=>N(fo,te),()=>r(fo));var Sr=k(Bo,2);{var os=te=>{var Ze=Jx();$(te,Ze)};R(Sr,te=>{dt()&&te(os)})}It("mouseenter",Bo,Mo),It("mouseleave",Bo,Nr),It("click",Bo,Pn,!0),It("focusin",Bo,Zn,!0),$(t,No),W(),o()}ct(["mousemove","contextmenu","click"]);var Js=require("@vkontakte/videoplayer-core/es2015"),X0=require("@vkontakte/videoplayer-shared/es2015");var i5=P('<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),o5=P("<div><!></div>"),n5={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;
341
345
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
342
346
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
343
347
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -353,7 +357,7 @@ Try switching the\xA0quality to\xA0Auto.`},x1=Tb;var Cs=new Map;Cs.set(hl.Interf
353
357
  100% {
354
358
  opacity: 0;
355
359
  }
356
- }.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 ju(t,e){U(e,!0),Q(t,Ux);let i=m(e,"seekStep",3,0),o=Z(!1),n=0,s=0,l=Z(ni(i())),d=v=>{v.stopPropagation(),s+=1,B(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,B(o,!1)},300)};dn(()=>{window.clearTimeout(n)});var a=Fx();a.__click=d;var u=_(a);{var f=v=>{var p=Hx(),x=he(p),w=A(x,2),y=_(w),C=_(y),T=A(C,2),E=A(T,2);h(y);var L=A(y,2),k=_(L,!0);h(L),h(w),D(I=>{var V,j,H,F;ie(x,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),ie(C,1,`triangle ${(j=e.side)!=null?j:""}`,"svelte-nhq2ld"),ie(T,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ie(E,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),$e(k,I)},[()=>q("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(v,p)};R(u,v=>{r(o)&&v(f)})}h(a),D(()=>{var v;return ie(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),$(t,a),z()}pt(["click"]);var zx=(t,e,i)=>{e(!1),i()},Wx=M('<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),Kx={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 Vv(t,e){U(e,!0),Q(t,Kx);let[i,o]=Fe(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=Ie(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),x()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Qe(),T=he(C);{var E=L=>{var k=Wx(),I=A(he(k),2),V=_(I),j=_(V),H=_(j,!0);h(j);var F=A(j,2);Ea(F,{onClick:y}),h(V);var K=A(V,2);K.__click=[zx,u,v];var ee=_(K),Y=_(ee),de=_(Y);let oe;var fe=A(de,2);{var _e=Re=>{Ld(Re,{get isRunning(){return s()},onTimerEnded:w})};R(fe,Re=>{n()&&Re(_e)})}h(Y),h(ee);var pe=A(ee,2),Oe=_(pe),ne=_(Oe,!0);h(Oe),h(pe),h(K),h(I),D((Re,re)=>{$e(H,Re),at(Y,`background-image: url('${e.thumb}')`),oe=ie(de,1,"thumb-overlay svelte-1qdxi6t",null,oe,re),$e(ne,e.title)},[()=>n()?q("end_screen_next_video"):q("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(L,k)};R(T,L=>{e.isHide||L(E)})}$(t,C),z(),o()}pt(["click"]);var P0=require("@vkontakte/videoplayer-core/es2015");var M0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Rt(()=>{P0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),dn(()=>{i==null||i(),clearTimeout(o)})};var L0=require("@vkontakte/videoplayer-core/es2015");var Yu=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 V0=require("@vkontakte/videoplayer-core/es2015"),R0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>V0.clientChecker.device.isIOS&&ye(l)===L0.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=x=>{if(v(),!f()||!x)return;let w=u();if(!w)return;let y=new Yu(w),C=ye(d),T=ye(s),E=ye(n);for(let I of C)T.some(j=>j.value===I.id)&&y.attach(I,E.value===I.id);let L=d.subscribe(I=>{for(let V of I)y.updateSrc(V)}),k=()=>{let I=y.getCurrentShowingId();o(ye(s).find(V=>V.value===I))};w.textTracks.addEventListener("change",k),a=()=>{L(),y.detachAll(),w.textTracks.removeEventListener("change",k)}};Rt(()=>i.subscribe(p)),dn(v)};var qx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Qx=M("<!> <!>",1),Gx=M("<div><!></div>"),jx=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Yx=M("<div><!></div>"),Zx=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Xx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Jx=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),e5={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Rv(t,e){var Ar,Zr;U(e,!0),Q(t,e5);let[i,o]=Fe(),n=()=>S(Ge,"$playerPhase",i),s=()=>S(eo,"$isLoaderVisible",i),l=()=>S(De,"$adPlaybackState",i),d=()=>S(Go,"$crashed",i),a=()=>S(Pn,"$notificationsToShow$",i),u=()=>S(ce,"$playbackState$",i),f=()=>S(Ft,"$graphIsOpened$",i),v=()=>S(Qt,"$interactiveHideMobileControls",i),p=()=>S(Gi,"$isEnded$",i),x=()=>S(Jt,"$isInteractiveExpectation$",i),w=()=>S(Ze,"$controlsVisible",i),y=()=>S(gt,"$touched",i),C=()=>S(pn,"$autoplayNextEnabled$",i),T=()=>S(gi,"$postrollPassed",i),E=()=>S(Gn,"$bottomNoSmooth",i),L=()=>S(Pi,"$videoSize",i),k=()=>S(N,"$playerSize",i),I=()=>S(Ne,"$isFullscreen",i),V=()=>S(Ke,"$position$",i),j=()=>S(Ae,"$duration$",i),H=()=>S(fn,"$loadedMetadata",i),F=()=>S(ot,"$settingsMenuVisible",i),K=()=>S(li,"$scrubbingInProgress",i),ee=()=>S(ut,"$volumeChangingInProgress",i),Y=()=>S(ko,"$chromecastConnected$",i),de=()=>S(Lt,"$isControlsAvailable",i),oe=()=>S(Ut,"$isInteractiveTime$",i),fe=()=>S(so,"$isActiveLive",i),_e=()=>S(ai,"$settingsMenuOpenedByKeyboard",i),pe=()=>S(we,"$language$",i),Oe=()=>S(yi,"$disabledControls$",i),ne=()=>S(et,"$is3DVideo",i),Re=()=>S(bt,"$icon3DVideoVisible",i),re=()=>S(pi,"$chromecastDeviceName$",i),O=()=>S(Po,"$currentSubtitle$",i),ue=()=>S(Mo,"$currentSubtitleCaptions$",i),Ve=()=>S(un,"$realDuration$",i),ge=()=>S(Kt,"$isLive$",i),te=()=>S(Xt,"$isPlaying$",i),ve=()=>S(ri,"$debugPanelVisible",i),He=m(e,"videoContainer",15),me=m(e,"adsSlotId",3,void 0),ct=m(e,"adsParams",3,void 0),X=m(e,"adsAutoplayParam",3,void 0),Me=m(e,"duration",3,void 0),ke=m(e,"logoTargetUrl",3,""),ze=m(e,"showNextPrevButtons",3,!1),rt=m(e,"nextButtonActive",3,!1),mt=m(e,"prevButtonActive",3,!1),vt=m(e,"endScreenVideoTitle",3,void 0),Tt=m(e,"endScreenVideoThumb",3,void 0),Je=m(e,"isOneVideoPlaylist",3,!1),zt=m(e,"showMiniTimer",3,!1),Yt=m(e,"fullScreenTarget",3,void 0),Zt=m(e,"playerStarted",3,!1),Wt=m(e,"showEndScreen",3,!0),{notifications$:se,graphIsOpened$:Ft}=vo(),be=e.store.getLogger().createComponentLog("Root component"),we=e.store.interfaceLanguage$,ce=e.store.state.playbackState$,De=e.store.ads.playbackState,Ke=e.store.state.positionWithScrubbing$,Ae=e.store.state.duration$,Ge=e.store.playerPhase,Ne=e.store.ui.isFullscreen,Ze=e.store.ui.controlsVisible,Lt=e.store.ui.isControlsAvailable,Qt=e.store.ui.interactiveHideMobileControls,ot=e.store.ui.settingsMenu.visible$,ai=e.store.ui.settingsMenu.openedByBtnKeyboard$,li=e.store.ui.scrubbingInProgress,ut=e.store.ui.volumeChangingInProgress,ri=e.store.ui.debugPanelVisible,eo=e.store.state.isLoaderVisible,Gi=e.store.state.isEnded$,ko=e.store.state.chromecastConnected$,pi=e.store.state.chromecastDeviceName$,gi=e.store.ads.postrollPassed,Kt=e.store.state.isLive$,Xt=e.store.state.isPlaying$,so=e.store.state.isActiveLive$,Ao=e.store.state.isRewindableLive$,Go=e.store.state.crashed$,wt=e.store.webApi.annotationsApi,Xe=e.store.webApi.pictureInPictureApi,Pi=e.store.state.videoSize$,Po=e.store.state.currentSubtitle$,Mo=e.store.state.currentSubtitleCaptions$,un=e.store.state.duration$,N=e.store.ui.playerSize,et=e.store.ui.is3DVideo,bt=e.store.ui.icon3DVideoVisible,ti=e.store.state.isInteractive,Ut=e.store.state.isInteractiveTime$,Jt=e.store.state.isInteractiveExpectation$,hi=e.store.state.hasInteractiveBranches,yi=e.store.ui.controls.disabledControls$,gt=e.store.ui.touched,Bi=e.store.ui.overlayContainer$,pn=e.store.ui.autoplayNextEnabled$,fn=e.store.state.loadedMetadata$,jo=e.store.actions.internal.closeSettingsMenu,fi=(Ar=e.store.callbacks)==null?void 0:Ar.onDisabledPlayPrevChapterClick,Lo=(Zr=e.store.callbacks)==null?void 0:Zr.onDisabledSeekToInteractiveClick,Tr=e.store.actions.internal.setQuality,ao=Z(void 0),lo=Z(void 0),mn=Z(void 0),vn=Z(void 0),Yo,ur,An=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),Er=Z(void 0),{closeNotification:cs,notificationsToShow$:Pn}=se,Ir=g(()=>!!a().slow_video),Qn=()=>cs("slow_video"),Gn=ae(!1),Vo,Di=Z(!1),Mn=g(()=>u()!==Js.PlaybackState.PLAYING),Ln=Z(!1),Vn=g(()=>f()||v()||!r(Di)&&(p()&&!!hi||r(Mn)&&x())),pr=Z(!0),fr=g(()=>e.uiConfig.features.thumbTimer&&zt()&&n()==="video"&&!w()&&!d()&&!ti&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),mr=Z(!1),vr=g(()=>(Wt()||e.showAutoplayNext&&C())&&!!vt()&&!!Tt()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(mr)),kr=Z(!1);Xe==null||Xe.setContext(jl());let us=lt=>{lt&&!ti&&go(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:us});let jn=()=>{clearTimeout(Yo),B(Di,!1),v()&&Qt.set(!1)},go=lt=>{jn(),B(Di,!0),Yo=setTimeout(()=>B(Di,!1),lt);let mi=lt-100;Vo=setTimeout(()=>{E()&&Gn.set(!1)},mi>0?mi:lt)},Rn=et.subscribe(lt=>{bt.set(lt),lt&&(clearTimeout(ur),ur=setTimeout(()=>bt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),gn=(...mi)=>_t(null,[...mi],function*(lt=zs()){var co,No,Oo,Bo,_i,Jo;if(lt&&!Js.clientChecker.device.isIOS){let vi=wd(),$n=ho(),On=Js.clientChecker.browser.isSamsungBrowser&&vi===e.shadowRootContainer;lt=vi===$n||On}if(lt){go(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Xe==null?void 0:Xe.exit()}catch(vi){be({message:String(vi)})}try{let vi=(co=L())!=null&&co.width&&((No=L())!=null&&No.height)?L():k();yield I1(vi)}catch(vi){be({message:String(vi)})}}Ne.set(lt),e.store.getAdmanWrapper().setFullscreen(lt),I()?(Bo=(Oo=e.store.callbacks)==null?void 0:Oo.onFullscreenEnter)==null||Bo.call(Oo):(Jo=(_i=e.store.callbacks)==null?void 0:_i.onFullscreenExit)==null||Jo.call(_i)}),ht=lt=>{let mi=lt,{width:co,height:No}=mi.target;N.set({width:co,height:No})},ii=()=>{let{width:lt,height:mi}=r(ao).getBoundingClientRect();N.set({width:lt,height:mi})};Rt(()=>{var lt;return xu(gn),e.uiConfig.features.annotationsInside&&(wt==null||wt.init(r(ao))),wa(Xe)&&(Xe==null||Xe.assignPlayerContainer(r(ao)),Xe==null||Xe.setExternalEventHandlers({resize:ht,leavepictureinpicture:ii})),B(pr,!Js.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((lt=He().parentElement)==null||lt.insertBefore(e.interactiveContainer,He().nextSibling)),()=>{clearTimeout(Yo),clearTimeout(Vo),clearTimeout(ur),Rn(),Xe==null||Xe.dispose().catch(mi=>{be({message:String(mi)})}),wu(gn)}});let Zo=Z(!0),Yn=Z(!0),hn=lt=>{let mi=V()+(lt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;mi<0?(B(Zo,!1),mi=0):mi>=j()&&(B(Yn,!1),mi=j()),B(Ln,!0),e.seekTime(mi)},ho=()=>Js.clientChecker.device.isIOS?r(ao):!e.uiConfig.allowChangingFullscreenTarget||!Yt()?e.outerContainerRef:Yt().contains(e.outerContainerRef)?Yt():e.outerContainerRef,Mi=()=>_t(null,null,function*(){try{if(zs())yield yu(document),be({message:"exit fullscreen"});else{if(be({message:"request fullscreen"}),Js.clientChecker.device.isIOS&&!H())return;yield $u(ho())}}catch(lt){be({message:String(lt)})}}),Ti=()=>{jo()},Xo=lt=>{if(lt.preventDefault(),F()){Ti();return}if(!Zt()){e.firstStart(),go(e.uiConfig.controls.hideTimeoutCursor);return}B(Ln,!1),w()?jn():go(e.uiConfig.controls.hideTimeoutMobile)},Zn=()=>{gt.set(!0)},jr=()=>{ti||(Gn.set(!0),go(e.uiConfig.controls.hideTimeoutCursor))},Yr=lt=>{fi&&(fi(lt),go(e.uiConfig.controls.hideTimeoutMobile))},gr=lt=>{Lo&&(Lo(lt),go(e.uiConfig.controls.hideTimeoutMobile))};qe(()=>{Bi.set(r(Er))}),qe(()=>{Ze.set((r(Mn)||F()||K()||ee()||Y()||!r(vr)&&(p()||r(Di)&&!r(Ln)))&&!r(Vn)&&n()==="video"&&!d()&&de())}),qe(()=>{!K()&&r(kr)&&!oe()&&go(e.uiConfig.controls.hideTimeoutMobile),B(kr,K(),!0)}),qe(()=>{B(Zo,V()>0),B(Yn,!fe()&&V()<j(),!0)}),qe(()=>{Ad(r(vn),F(),_e(),!0)});let _n=q("aria_label_video_player"),ps=q("video360");M0({fullScreenChangeHandler:gn,getFullscreenTarget:ho}),R0({store:e.store,getFullscreenTarget:ho});let Nn=(lt,mi)=>{var Bo,_i;let co=(_i=(Bo=e.store.callbacks)==null?void 0:Bo.uiInfo)==null?void 0:_i.onUpcomingLiveViewStateChanged;if(!co)return;let No=!!mi,Oo=W(W({},Kn(r(ao),{upcomingLiveScreen:mi},"upcomingLiveScreen",No)),lt);co(Oo)};var Ro=Jx();kt("blur",aa,Ti);var Xn=_(Ro);Wa(Xn,{onClick:Xo,get videoContainer(){return He()},set videoContainer(lt){He(lt)}});var bn=A(Xn,2);ma(bn,()=>"slot",!1,(lt,mi)=>{Pe(lt,()=>({name:za}))});var Gt=A(bn,2);fa(Gt,pe,lt=>{var mi=Xx(),co=he(mi);let No=g(()=>n()!=="thumb"||d()||ti&&e.autoplay);Ha(co,{get hidden(){return r(No)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Oo=A(co,2);{var Bo=We=>{var ei=Qx(),wi=he(ei);{var yn=St=>{let si=g(()=>e.uiConfig.controls.seekStepMobile/1e3);ju(St,{side:"left",get seekStep(){return r(si)},handleSingleFirstClick:Xo,handleSecondClick:()=>hn("backward")})};R(wi,St=>{r(Zo)&&St(yn)})}var tn=A(wi,2);{var Se=St=>{let si=g(()=>e.uiConfig.controls.seekStepMobile/1e3);ju(St,{side:"right",get seekStep(){return r(si)},handleSingleFirstClick:Xo,handleSecondClick:()=>hn("forward")})};R(tn,St=>{r(Yn)&&St(Se)})}$(We,ei)};R(Oo,We=>{e.canRewindLive&&Ao&&!Oe().has("TIMELINE")&&We(Bo)})}var _i=A(Oo,2);{var Jo=We=>{let ei=g(()=>{var wi;return(wi=e.live)==null?void 0:wi.startTime});nc(We,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ei)},onUpcomingLiveViewStateChanged:Nn})};R(_i,We=>{n()==="LiveWaitingStart"&&We(Jo)})}var vi=A(_i,2);{var $n=We=>{Fa(We,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(vi,We=>{n()==="LiveWaitingRecover"&&We($n)})}var On=A(vi,2);{var fs=We=>{Fa(We,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(On,We=>{n()==="LiveWaitingRecord"&&We(fs)})}var Xr=A(On,2);{var ms=We=>{var ei=Gx();let wi;var yn=_(ei);Cd(yn,{get adsSlotId(){return me()},get adsParams(){return ct()},get adsAutoplayParam(){return X()},get duration(){return Me()},get adsExternalApi(){return e.adsExternalApi}}),h(ei),D(tn=>wi=ie(ei,1,"ads-container svelte-7yl31d",null,wi,tn),[()=>({hidden:n()!=="ads"})]),$(We,ei)};R(Xr,We=>{e.showAds&&Zt()&&We(ms)})}var hr=A(Xr,2);{var _o=We=>{let ei=g(()=>!Wt()&&e.showAutoplayNext&&C());Vv(We,{get title(){return vt()},get thumb(){return Tt()},get isHide(){return r(ei)},clickCloseIcon:()=>B(mr,!0)})};R(hr,We=>{r(vr)&&vt()&&Tt()&&We(_o)})}var Bn=A(hr,2);{var Pr=We=>{ic(We,{})};R(Bn,We=>{ne()&&We(Pr)})}var Mr=A(Bn,2);{var st=We=>{var ei=jx(),wi=_(ei);xd(wi,{get"aria-label"(){return ps}}),h(ei),$(We,ei)};R(Mr,We=>{Re()&&We(st)})}var Pt=A(Mr,2);{var xi=We=>{oc(We,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return re()}})};R(Pt,We=>{Y()&&We(xi)})}var uo=A(Pt,2);{var po=We=>{Ba(We,{get shifted(){return w()},get captions(){return ue()},get position(){return V()},get playerSize(){return k()},isMobile:!0})};R(uo,We=>{O().value!=="off"&&We(po)})}var to=A(uo,2);{var io=We=>{var ei=Yx();ei.__click=[qx,F,ot,Ti];var wi=_(ei);Da(wi,{}),h(ei),$(We,ei)};R(to,We=>{d()&&We(io)})}var fo=A(to,2);{var Dn=We=>{let ei=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),wi=g(()=>n()==="ads"),yn=g(()=>e.canRewindLive&&Ve()!==0);tc(We,{get bottomHidden(){return r(ei)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(wi)},get canRewindLive(){return r(yn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return ke()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ze()},get nextButtonActive(){return rt()},get prevButtonActive(){return mt()},get isOneVideoPlaylist(){return Je()},get customFullscreenSupported(){return r(pr)},get endScreenShown(){return r(vr)},toggleFullscreen:Mi,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Yr,onDisabledSeekToInteractiveClick:gr,get playerControlsWrapperRef(){return r(lo)},set playerControlsWrapperRef(tn){B(lo,tn,!0)},get playerControlsRef(){return r(mn)},set playerControlsRef(tn){B(mn,tn,!0)}})};R(fo,We=>{Zt()&&We(Dn)})}var bo=A(fo,2);{var $o=We=>{var ei=Zx(),wi=_(ei);lc(wi,{get supportLink(){return e.supportLink},get returnFocus(){return N0.noop},get ref(){return r(vn)},set ref(yn){B(vn,yn,!0)}}),h(ei),$(We,ei)};R(bo,We=>{F()&&We($o)})}var Do=A(bo,2);let er=g(()=>!r(fr));Id(Do,{get isLive(){return ge()},get isHidden(){return r(er)},get isPlaying(){return te()},get position(){return V()},get duration(){return j()}});var en=A(Do,2);{var Lr=We=>{Ia(We,{})};R(en,We=>{r(An)&&We(Lr)})}var _r=A(en,2);{var Vr=We=>{Md(We,{})};R(_r,We=>{ve()&&We(Vr)})}var yo=A(_r,2);{var Rr=We=>{dc(We,{onClose:Qn,onSelectAutoQuality:()=>{Tr("auto"),Qn()}})};R(yo,We=>{r(Ir)&&We(Rr)})}$(lt,mi)});var Jn=A(Gt,2);nt(Jn,lt=>B(Er,lt),()=>r(Er)),h(Ro),nt(Ro,lt=>B(ao,lt),()=>r(ao)),D(()=>Ue(Ro,"aria-label",_n)),kt("click",Ro,Zn,!0),kt("focusin",Ro,jr,!0),$(t,Ro),z(),o()}pt(["click"]);function Zu(t){let e="";return Ji(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Ji(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Ji(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Ji(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Ji(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Ji(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Ji(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Ji(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Ji(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Ji(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Ji(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Ji(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Ji(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Ji(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Ji(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Ji(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Ji(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Ji(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Ji(t.font)&&(e+=`--font:${t.font};`),Ji(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Ji(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Ji(t){return typeof t=="string"&&!t.includes(";")}var O0=require("@vkontakte/videoplayer-shared/es2015");var t5=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),i5={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function Nv(t,e){U(e,!0),Q(t,i5);let[i,o]=Fe(),n=()=>S(ee,"$playerSize",i),s=()=>S(I,"$isPlaying$",i),l=()=>S(L,"$duration$",i),d=()=>S(H,"$positionWithScrubbing$",i),a=()=>S(T,"$playerPhase",i),u=()=>S(E,"$crashed$",i),f=()=>S(V,"$currentSubtitle$",i),v=()=>S(j,"$currentSubtitleCaptions$",i),p=()=>S(k,"$positionExact$",i),x=()=>S(F,"$isLive$",i),w=()=>S(K,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:L,positionExact$:k,isPlaying$:I,currentSubtitle$:V,currentSubtitleCaptions$:j,positionWithScrubbing$:H,isLive$:F,isRewindableLive$:K},ui:{playerSize:ee,controls:Y},actions:{internal:{getVideoElement:de}}}=Ie(),oe=8,fe=Z(!1),_e=ni({}),pe=()=>{B(fe,!0)},Oe=()=>{B(fe,!1)},ne=(0,O0.debounceFn)(Pl,260);qe(()=>{n(),ne(de(),Y,_e,r(fe))});let Re=g(()=>s()?In(l()-d()):In(isFinite(l())?l():y()));var re=t5(),O=_(re);Wa(O,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(ke){C(ke)}});var ue=A(O,2);ma(ue,()=>"slot",!1,(ke,ze)=>{Pe(ke,()=>({name:za}))});var Ve=A(ue,2);let ge=g(()=>a()!=="thumb"||u());Ha(Ve,{get hidden(){return r(ge)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var te=A(Ve,2);{var ve=ke=>{Ba(ke,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return n()}})};R(te,ke=>{f().value!=="off"&&ke(ve)})}var He=A(te,2),me=_(He);Ed(me,{get isLive(){return x()},get isPlaying(){return s()},get time(){return r(Re)}}),h(He);var ct=A(He,2);let X;var Me=_(ct);Ma(Me,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:oe,tooltipRightOffset:oe,get ref(){return _e.timeline},set ref(ke){_e.timeline=ke}}),h(ct),h(re),D(ke=>X=ie(ct,1,"timeline svelte-1qfjf44",null,X,ke),[()=>({visible:r(fe)})]),kt("mouseenter",re,pe),kt("mouseleave",re,Oe),$(t,re),z(),o()}var o5=M("<div><!></div>"),n5={hash:"svelte-16kg8zb",code:`.root.svelte-16kg8zb {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
360
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function tp(t,e){z(e,!0),q(t,n5);let i=v(e,"seekStep",3,0),o=J(!1),n=0,s=0,l=J(ii(i())),d=m=>{m.stopPropagation(),s+=1,N(l,i()*(s-1)),s===1?e.handleSingleFirstClick(m):(N(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,N(o,!1)},300)};an(()=>{window.clearTimeout(n)});var a=o5();a.__click=d;var u=_(a);{var f=m=>{var p=i5(),x=me(p),y=k(x,2),w=_(y),T=_(w),C=k(T,2),E=k(C,2);h(w);var V=k(w,2),I=_(V,!0);h(V),h(y),D(L=>{var B,F,H,U;se(x,1,`semicircle ${(B=e.side)!=null?B:""}`,"svelte-nhq2ld"),se(T,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),se(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),se(E,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),ge(I,L)},[()=>Q("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(m,p)};R(u,m=>{r(o)&&m(f)})}h(a),D(()=>{var m;return se(a,1,`double-click-area ${(m=e.side)!=null?m:""}`,"svelte-nhq2ld")}),$(t,a),W()}ct(["click"]);var r5=(t,e,i)=>{e(!1),i()},s5=P('<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),a5={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 Qv(t,e){z(e,!0),q(t,a5);let[i,o]=He(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=Te(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),p()},w=()=>{e.clickCloseIcon(),x()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var T=Ue(),C=me(T);{var E=V=>{var I=s5(),L=k(me(I),2),B=_(L),F=_(B),H=_(F,!0);h(F);var U=k(F,2);Ta(U,{onClick:w}),h(B);var Z=k(B,2);Z.__click=[r5,u,m];var re=_(Z),G=_(re),be=_(G);let ee;var pe=k(be,2);{var ve=le=>{Nd(le,{get isRunning(){return s()},onTimerEnded:y})};R(pe,le=>{n()&&le(ve)})}h(G),h(re);var ue=k(re,2),Me=_(ue),Oe=_(Me,!0);h(Me),h(ue),h(Z),h(L),D((le,De)=>{ge(H,le),at(G,`background-image: url('${e.thumb}')`),ee=se(be,1,"thumb-overlay svelte-1qdxi6t",null,ee,De),ge(Oe,e.title)},[()=>n()?Q("end_screen_next_video"):Q("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(V,I)};R(C,V=>{e.isHide||V(E)})}$(t,T),W(),o()}ct(["click"]);var Q0=require("@vkontakte/videoplayer-core/es2015");var G0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Rt(()=>{Q0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),an(()=>{i==null||i(),clearTimeout(o)})};var j0=require("@vkontakte/videoplayer-core/es2015");var ip=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 Y0=require("@vkontakte/videoplayer-core/es2015"),Z0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>Y0.clientChecker.device.isIOS&&_e(l)===j0.VideoFormat.DASH_LIVE_CMAF,m=()=>{a==null||a(),a=null},p=x=>{if(m(),!f()||!x)return;let y=u();if(!y)return;let w=new ip(y),T=_e(d),C=_e(s),E=_e(n);for(let L of T)C.some(F=>F.value===L.id)&&w.attach(L,E.value===L.id);let V=d.subscribe(L=>{for(let B of L)w.updateSrc(B)}),I=()=>{let L=w.getCurrentShowingId();o(_e(s).find(B=>B.value===L))};y.textTracks.addEventListener("change",I),a=()=>{V(),w.detachAll(),y.textTracks.removeEventListener("change",I)}};Rt(()=>i.subscribe(p)),an(m)};var l5=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},d5=P("<!> <!>",1),c5=P("<div><!></div>"),u5=P('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),p5=P("<div><!></div>"),f5=P('<div class="settings-mobile svelte-7yl31d"><!></div>'),m5=P("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),v5=P('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),g5={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Gv(t,e){var yr,In;z(e,!0),q(t,g5);let[i,o]=He(),n=()=>S(Ne,"$playerPhase",i),s=()=>S(ho,"$isLoaderVisible",i),l=()=>S(Ke,"$adPlaybackState",i),d=()=>S(Mt,"$crashed",i),a=()=>S(Xr,"$notificationsToShow$",i),u=()=>S(ce,"$playbackState$",i),f=()=>S(Ft,"$graphIsOpened$",i),m=()=>S(Xt,"$interactiveHideMobileControls",i),p=()=>S(At,"$isEnded$",i),x=()=>S(ri,"$isInteractiveExpectation$",i),y=()=>S(Ye,"$controlsVisible",i),w=()=>S(xt,"$touched",i),T=()=>S(co,"$autoplayNextEnabled$",i),C=()=>S(_t,"$postrollPassed",i),E=()=>S(Sn,"$bottomNoSmooth",i),V=()=>S(Eo,"$videoSize",i),I=()=>S(O,"$playerSize",i),L=()=>S(ye,"$isFullscreen",i),B=()=>S(fe,"$position$",i),F=()=>S(Ve,"$duration$",i),H=()=>S(yn,"$loadedMetadata",i),U=()=>S(Lt,"$settingsMenuVisible",i),Z=()=>S(ni,"$scrubbingInProgress",i),re=()=>S(bi,"$volumeChangingInProgress",i),G=()=>S(ti,"$chromecastConnected$",i),be=()=>S(yt,"$isControlsAvailable",i),ee=()=>S(vt,"$isInteractiveTime$",i),pe=()=>S(Ii,"$isActiveLive",i),ve=()=>S(_i,"$settingsMenuOpenedByKeyboard",i),ue=()=>S(Ie,"$language$",i),Me=()=>S($i,"$disabledControls$",i),Oe=()=>S(et,"$is3DVideo",i),le=()=>S(Qt,"$icon3DVideoVisible",i),De=()=>S(ui,"$chromecastDeviceName$",i),X=()=>S(Io,"$currentSubtitle$",i),M=()=>S(jo,"$currentSubtitleCaptions$",i),st=()=>S(Dn,"$realDuration$",i),Fe=()=>S(pt,"$isLive$",i),j=()=>S(Jt,"$isPlaying$",i),oe=()=>S(Fi,"$debugPanelVisible",i),Be=v(e,"videoContainer",15),Je=v(e,"adsSlotId",3,void 0),$e=v(e,"adsParams",3,void 0),ie=v(e,"adsAutoplayParam",3,void 0),Se=v(e,"duration",3,void 0),Ee=v(e,"logoTargetUrl",3,""),Qe=v(e,"showNextPrevButtons",3,!1),tt=v(e,"nextButtonActive",3,!1),gt=v(e,"prevButtonActive",3,!1),dt=v(e,"endScreenVideoTitle",3,void 0),ht=v(e,"endScreenVideoThumb",3,void 0),it=v(e,"isOneVideoPlaylist",3,!1),Wt=v(e,"showMiniTimer",3,!1),Yt=v(e,"fullScreenTarget",3,void 0),ei=v(e,"playerStarted",3,!1),Zt=v(e,"showEndScreen",3,!0),{notifications$:Ae,graphIsOpened$:Ft}=go(),Ce=e.store.getLogger().createComponentLog("Root component"),Ie=e.store.interfaceLanguage$,ce=e.store.state.playbackState$,Ke=e.store.ads.playbackState,fe=e.store.state.positionWithScrubbing$,Ve=e.store.state.duration$,Ne=e.store.playerPhase,ye=e.store.ui.isFullscreen,Ye=e.store.ui.controlsVisible,yt=e.store.ui.isControlsAvailable,Xt=e.store.ui.interactiveHideMobileControls,Lt=e.store.ui.settingsMenu.visible$,_i=e.store.ui.settingsMenu.openedByBtnKeyboard$,ni=e.store.ui.scrubbingInProgress,bi=e.store.ui.volumeChangingInProgress,Fi=e.store.ui.debugPanelVisible,ho=e.store.state.isLoaderVisible,At=e.store.state.isEnded$,ti=e.store.state.chromecastConnected$,ui=e.store.state.chromecastDeviceName$,_t=e.store.ads.postrollPassed,pt=e.store.state.isLive$,Jt=e.store.state.isPlaying$,Ii=e.store.state.isActiveLive$,Go=e.store.state.isRewindableLive$,Mt=e.store.state.crashed$,lt=e.store.webApi.annotationsApi,Ot=e.store.webApi.pictureInPictureApi,Eo=e.store.state.videoSize$,Io=e.store.state.currentSubtitle$,jo=e.store.state.currentSubtitleCaptions$,Dn=e.store.state.duration$,O=e.store.ui.playerSize,et=e.store.ui.is3DVideo,Qt=e.store.ui.icon3DVideoVisible,Gt=e.store.state.isInteractive,vt=e.store.state.isInteractiveTime$,ri=e.store.state.isInteractiveExpectation$,wi=e.store.state.hasInteractiveBranches,$i=e.store.ui.controls.disabledControls$,xt=e.store.ui.touched,Ai=e.store.ui.overlayContainer$,co=e.store.ui.autoplayNextEnabled$,yn=e.store.state.loadedMetadata$,xn=e.store.actions.internal.closeSettingsMenu,vi=(yr=e.store.callbacks)==null?void 0:yr.onDisabledPlayPrevChapterClick,uo=(In=e.store.callbacks)==null?void 0:In.onDisabledSeekToInteractiveClick,fr=e.store.actions.internal.setQuality,po=J(void 0),no=J(void 0),Fn=J(void 0),Yo=J(void 0),ko,mr,Hn=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),vr=J(void 0),{closeNotification:vs,notificationsToShow$:Xr}=Ae,wn=g(()=>!!a().slow_video),Un=()=>vs("slow_video"),Sn=ae(!1),Zo,Xo=J(!1),zn=g(()=>u()!==Js.PlaybackState.PLAYING),gr=J(!1),Jr=g(()=>f()||m()||!r(Xo)&&(p()&&!!wi||r(zn)&&x())),fo=J(!0),Pr=g(()=>e.uiConfig.features.thumbTimer&&Wt()&&n()==="video"&&!y()&&!d()&&!Gt&&(e.uiConfig.hideThumbTimerAfterTouch&&!w()||!e.uiConfig.hideThumbTimerAfterTouch)),Wn=J(!1),Cn=g(()=>(Zt()||e.showAutoplayNext&&T())&&!!dt()&&!!ht()&&(e.showAds&&C()||!e.showAds)&&p()&&!d()&&!r(Wn)),Kn=J(!1);Ot==null||Ot.setContext(Jl());let hr=mt=>{mt&&!Gt&&_o(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:hr});let qn=()=>{clearTimeout(ko),N(Xo,!1),m()&&Xt.set(!1)},_o=mt=>{qn(),N(Xo,!0),ko=setTimeout(()=>N(Xo,!1),mt);let pi=mt-100;Zo=setTimeout(()=>{E()&&Sn.set(!1)},pi>0?pi:mt)},es=et.subscribe(mt=>{Qt.set(mt),mt&&(clearTimeout(mr),mr=setTimeout(()=>Qt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Tn=(...pi)=>Ct(null,[...pi],function*(mt=Ws()){var ro,Jo,fi,pn,Hi,Yi;if(mt&&!Js.clientChecker.device.isIOS){let Zi=Ed(),en=Ao(),kn=Js.clientChecker.browser.isSamsungBrowser&&Zi===e.shadowRootContainer;mt=Zi===en||kn}if(mt){_o(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Ot==null?void 0:Ot.exit()}catch(Zi){Ce({message:String(Zi)})}try{let Zi=(ro=V())!=null&&ro.width&&((Jo=V())!=null&&Jo.height)?V():I();yield W1(Zi)}catch(Zi){Ce({message:String(Zi)})}}ye.set(mt),e.store.getAdmanWrapper().setFullscreen(mt),L()?(pn=(fi=e.store.callbacks)==null?void 0:fi.onFullscreenEnter)==null||pn.call(fi):(Yi=(Hi=e.store.callbacks)==null?void 0:Hi.onFullscreenExit)==null||Yi.call(Hi)}),ft=mt=>{let pi=mt,{width:ro,height:Jo}=pi.target;O.set({width:ro,height:Jo})},ai=()=>{let{width:mt,height:pi}=r(po).getBoundingClientRect();O.set({width:mt,height:pi})};Rt(()=>{var mt;return Iu(Tn),e.uiConfig.features.annotationsInside&&(lt==null||lt.init(r(po))),xa(Ot)&&(Ot==null||Ot.assignPlayerContainer(r(po)),Ot==null||Ot.setExternalEventHandlers({resize:ft,leavepictureinpicture:ai})),N(fo,!Js.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((mt=Be().parentElement)==null||mt.insertBefore(e.interactiveContainer,Be().nextSibling)),()=>{clearTimeout(ko),clearTimeout(Zo),clearTimeout(mr),es(),Ot==null||Ot.dispose().catch(pi=>{Ce({message:String(pi)})}),ku(Tn)}});let dn=J(!0),En=J(!0),Lr=mt=>{let pi=B()+(mt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;pi<0?(N(dn,!1),pi=0):pi>=F()&&(N(En,!1),pi=F()),N(gr,!0),e.seekTime(pi)},Ao=()=>Js.clientChecker.device.isIOS?r(po):!e.uiConfig.allowChangingFullscreenTarget||!Yt()?e.outerContainerRef:Yt().contains(e.outerContainerRef)?Yt():e.outerContainerRef,cn=()=>Ct(null,null,function*(){try{if(Ws())yield Eu(document),Ce({message:"exit fullscreen"});else{if(Ce({message:"request fullscreen"}),Js.clientChecker.device.isIOS&&!H())return;yield Tu(Ao())}}catch(mt){Ce({message:String(mt)})}}),gi=()=>{xn()},Pi=mt=>{if(mt.preventDefault(),U()){gi();return}if(!ei()){e.firstStart(),_o(e.uiConfig.controls.hideTimeoutCursor);return}N(gr,!1),y()?qn():_o(e.uiConfig.controls.hideTimeoutMobile)},Po=()=>{xt.set(!0)},Qn=()=>{Gt||(Sn.set(!0),_o(e.uiConfig.controls.hideTimeoutCursor))},_r=mt=>{vi&&(vi(mt),_o(e.uiConfig.controls.hideTimeoutMobile))},Mr=mt=>{uo&&(uo(mt),_o(e.uiConfig.controls.hideTimeoutMobile))};qe(()=>{Ai.set(r(vr))}),qe(()=>{Ye.set((r(zn)||U()||Z()||re()||G()||!r(Cn)&&(p()||r(Xo)&&!r(gr)))&&!r(Jr)&&n()==="video"&&!d()&&be())}),qe(()=>{!Z()&&r(Kn)&&!ee()&&_o(e.uiConfig.controls.hideTimeoutMobile),N(Kn,Z(),!0)}),qe(()=>{N(dn,B()>0),N(En,!pe()&&B()<F(),!0)}),qe(()=>{Vd(r(Yo),U(),ve(),!0)});let br=Q("aria_label_video_player"),Gn=Q("video360");G0({fullScreenChangeHandler:Tn,getFullscreenTarget:Ao}),Z0({store:e.store,getFullscreenTarget:Ao});let jn=(mt,pi)=>{var pn,Hi;let ro=(Hi=(pn=e.store.callbacks)==null?void 0:pn.uiInfo)==null?void 0:Hi.onUpcomingLiveViewStateChanged;if(!ro)return;let Jo=!!pi,fi=K(K({},Nn(r(po),{upcomingLiveScreen:pi},"upcomingLiveScreen",Jo)),mt);ro(fi)};var Lo=v5();It("blur",aa,gi);var Yn=_(Lo);za(Yn,{onClick:Pi,get videoContainer(){return Be()},set videoContainer(mt){Be(mt)}});var $r=k(Yn,2);fa($r,()=>"slot",!1,(mt,pi)=>{ke(mt,()=>({name:Ua}))});var si=k($r,2);ys(si,ue,mt=>{var pi=m5(),ro=me(pi);let Jo=g(()=>n()!=="thumb"||d()||Gt&&e.autoplay);Da(ro,{get hidden(){return r(Jo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var fi=k(ro,2);{var pn=We=>{var jt=d5(),Ci=me(jt);{var fn=Do=>{let tr=g(()=>e.uiConfig.controls.seekStepMobile/1e3);tp(Do,{side:"left",get seekStep(){return r(tr)},handleSingleFirstClick:Pi,handleSecondClick:()=>Lr("backward")})};R(Ci,Do=>{r(dn)&&Do(fn)})}var No=k(Ci,2);{var Bo=Do=>{let tr=g(()=>e.uiConfig.controls.seekStepMobile/1e3);tp(Do,{side:"right",get seekStep(){return r(tr)},handleSingleFirstClick:Pi,handleSecondClick:()=>Lr("forward")})};R(No,Do=>{r(En)&&Do(Bo)})}$(We,jt)};R(fi,We=>{e.canRewindLive&&Go&&!Me().has("TIMELINE")&&We(pn)})}var Hi=k(fi,2);{var Yi=We=>{let jt=g(()=>{var Ci;return(Ci=e.live)==null?void 0:Ci.startTime});dc(We,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(jt)},onUpcomingLiveViewStateChanged:jn})};R(Hi,We=>{n()==="LiveWaitingStart"&&We(Yi)})}var Zi=k(Hi,2);{var en=We=>{Fa(We,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Zi,We=>{n()==="LiveWaitingRecover"&&We(en)})}var kn=k(Zi,2);{var Vr=We=>{Fa(We,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(kn,We=>{n()==="LiveWaitingRecord"&&We(Vr)})}var tn=k(kn,2);{var Rr=We=>{var jt=c5();let Ci;var fn=_(jt);kd(fn,{get adsSlotId(){return Je()},get adsParams(){return $e()},get adsAutoplayParam(){return ie()},get duration(){return Se()}}),h(jt),D(No=>Ci=se(jt,1,"ads-container svelte-7yl31d",null,Ci,No),[()=>({hidden:n()!=="ads"})]),$(We,jt)};R(tn,We=>{e.showAds&&ei()&&We(Rr)})}var Or=k(tn,2);{var Mo=We=>{let jt=g(()=>!Zt()&&e.showAutoplayNext&&T());Qv(We,{get title(){return dt()},get thumb(){return ht()},get isHide(){return r(jt)},clickCloseIcon:()=>N(Wn,!0)})};R(Or,We=>{r(Cn)&&dt()&&ht()&&We(Mo)})}var Zn=k(Or,2);{var Nr=We=>{ac(We,{})};R(Zn,We=>{Oe()&&We(Nr)})}var Xn=k(Zn,2);{var nt=We=>{var jt=u5(),Ci=_(jt);Td(Ci,{get"aria-label"(){return Gn}}),h(jt),$(We,jt)};R(Xn,We=>{le()&&We(nt)})}var Vt=k(Xn,2);{var Si=We=>{lc(We,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return De()}})};R(Vt,We=>{G()&&We(Si)})}var mo=k(Vt,2);{var Ri=We=>{Na(We,{get shifted(){return y()},get captions(){return M()},get position(){return B()},get playerSize(){return I()},isMobile:!0})};R(mo,We=>{X().value!=="off"&&We(Ri)})}var Xi=k(mo,2);{var Oi=We=>{var jt=p5();jt.__click=[l5,U,Lt,gi];var Ci=_(jt);Ba(Ci,{}),h(jt),$(We,jt)};R(Xi,We=>{d()&&We(Oi)})}var bo=k(Xi,2);{var An=We=>{let jt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Ci=g(()=>n()==="ads"),fn=g(()=>e.canRewindLive&&st()!==0);sc(We,{get bottomHidden(){return r(jt)},get showControls(){return y()},get bottomNoSmooth(){return E()},get isAds(){return r(Ci)},get canRewindLive(){return r(fn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ee()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Qe()},get nextButtonActive(){return tt()},get prevButtonActive(){return gt()},get isOneVideoPlaylist(){return it()},get customFullscreenSupported(){return r(fo)},get endScreenShown(){return r(Cn)},toggleFullscreen:cn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:_r,onDisabledSeekToInteractiveClick:Mr,get playerControlsWrapperRef(){return r(no)},set playerControlsWrapperRef(No){N(no,No,!0)},get playerControlsRef(){return r(Fn)},set playerControlsRef(No){N(Fn,No,!0)}})};R(bo,We=>{ei()&&We(An)})}var Vo=k(bo,2);{var Ro=We=>{var jt=f5(),Ci=_(jt);fc(Ci,{get supportLink(){return e.supportLink},get returnFocus(){return X0.noop},get ref(){return r(Yo)},set ref(fn){N(Yo,fn,!0)}}),h(jt),$(We,jt)};R(Vo,We=>{U()&&We(Ro)})}var Oo=k(Vo,2);let Jn=g(()=>!r(Pr));Ld(Oo,{get isLive(){return Fe()},get isHidden(){return r(Jn)},get isPlaying(){return j()},get position(){return B()},get duration(){return F()}});var Pn=k(Oo,2);{var xr=We=>{Ea(We,{})};R(Pn,We=>{r(Hn)&&We(xr)})}var wr=k(Pn,2);{var er=We=>{Od(We,{})};R(wr,We=>{oe()&&We(er)})}var Br=k(wr,2);{var ts=We=>{mc(We,{onClose:Un,onSelectAutoQuality:()=>{fr("auto"),Un()}})};R(Br,We=>{r(wn)&&We(ts)})}$(mt,pi)});var un=k(si,2);rt(un,mt=>N(vr,mt),()=>r(vr)),h(Lo),rt(Lo,mt=>N(po,mt),()=>r(po)),D(()=>ze(Lo,"aria-label",br)),It("click",Lo,Po,!0),It("focusin",Lo,Qn,!0),$(t,Lo),W(),o()}ct(["click"]);function op(t){let e="";return oo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),oo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),oo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),oo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),oo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),oo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),oo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),oo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),oo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),oo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),oo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),oo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),oo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),oo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),oo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),oo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),oo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),oo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),oo(t.font)&&(e+=`--font:${t.font};`),oo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),oo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function oo(t){return typeof t=="string"&&!t.includes(";")}var J0=require("@vkontakte/videoplayer-shared/es2015");var h5=P('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),_5={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function jv(t,e){z(e,!0),q(t,_5);let[i,o]=He(),n=()=>S(re,"$playerSize",i),s=()=>S(L,"$isPlaying$",i),l=()=>S(V,"$duration$",i),d=()=>S(H,"$positionWithScrubbing$",i),a=()=>S(C,"$playerPhase",i),u=()=>S(E,"$crashed$",i),f=()=>S(B,"$currentSubtitle$",i),m=()=>S(F,"$currentSubtitleCaptions$",i),p=()=>S(I,"$positionExact$",i),x=()=>S(U,"$isLive$",i),y=()=>S(Z,"$isRewindableLive$",i),w=v(e,"outsideDuration",3,0),T=v(e,"videoContainer",15),{playerPhase:C,state:{crashed$:E,duration$:V,positionExact$:I,isPlaying$:L,currentSubtitle$:B,currentSubtitleCaptions$:F,positionWithScrubbing$:H,isLive$:U,isRewindableLive$:Z},ui:{playerSize:re,controls:G},actions:{internal:{getVideoElement:be}}}=Te(),ee=8,pe=J(!1),ve=ii({}),ue=()=>{N(pe,!0)},Me=()=>{N(pe,!1)},Oe=(0,J0.debounceFn)(Al,260);qe(()=>{n(),Oe(be(),G,ve,r(pe))});let le=g(()=>s()?bn(l()-d()):bn(isFinite(l())?l():w()));var De=h5(),X=_(De);za(X,{hideCursor:!1,get videoContainer(){return T()},set videoContainer(Ee){T(Ee)}});var M=k(X,2);fa(M,()=>"slot",!1,(Ee,Qe)=>{ke(Ee,()=>({name:Ua}))});var st=k(M,2);let Fe=g(()=>a()!=="thumb"||u());Da(st,{get hidden(){return r(Fe)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var j=k(st,2);{var oe=Ee=>{Na(Ee,{shifted:!1,get captions(){return m()},get position(){return p()},get playerSize(){return n()}})};R(j,Ee=>{f().value!=="off"&&Ee(oe)})}var Be=k(j,2),Je=_(Be);Pd(Je,{get isLive(){return x()},get isPlaying(){return s()},get time(){return r(le)}}),h(Be);var $e=k(Be,2);let ie;var Se=_($e);Pa(Se,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return y()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ee,tooltipRightOffset:ee,get ref(){return ve.timeline},set ref(Ee){ve.timeline=Ee}}),h($e),h(De),D(Ee=>ie=se($e,1,"timeline svelte-1qfjf44",null,ie,Ee),[()=>({visible:r(pe)})]),It("mouseenter",De,ue),It("mouseleave",De,Me),$(t,De),W(),o()}var b5=P("<div><!></div>"),$5={hash:"svelte-1tzrpvc",code:`.root.svelte-1tzrpvc {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
357
361
 
358
362
  /* USER DEFINED COLORS */
359
363
 
@@ -379,12 +383,12 @@ Try switching the\xA0quality to\xA0Auto.`},x1=Tb;var Cs=new Map;Cs.set(hl.Interf
379
383
  rgba(9, 9, 9, 0.46) 80%,
380
384
  rgba(10, 10, 10, 0.48) 86.67%,
381
385
  rgba(10, 10, 10, 0.50) 100%
382
- );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
383
- /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-16kg8zb {color-scheme:light dark;}.root.visible-outside.svelte-16kg8zb {overflow:visible;}
386
+ );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);--double-forward-bg: rgba(0, 0, 0, 0.6);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
387
+ /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-1tzrpvc {color-scheme:light dark;}.root.visible-outside.svelte-1tzrpvc {overflow:visible;}
384
388
 
385
389
  /* css reset start */* {-webkit-tap-highlight-color:transparent;}button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}p {margin:0;}svg:not(.interactive-root svg) {pointer-events:none;}.interactive-root {
386
390
  /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}*.focus-hidden:focus-visible {box-shadow:none;}
387
391
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.out-of-flow {content-visibility:hidden !important;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
388
392
 
389
- /* \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 Ov(t,e){U(e,!0),Q(t,n5);let[i,o]=Fe(),n=()=>S(Yt,"$isLive$",i),s=()=>S(Go,"$availableSubtitlesList$",i),l=m(e,"sources",7),d=m(e,"store",7),a=m(e,"microStoresRoot",7),u=m(e,"videoConfig",7),f=m(e,"uiConfig",7),v=m(e,"title",7),p=m(e,"thumbUrl",7),x=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),y=m(e,"subtitles",7),C=m(e,"subtitlesForcedLanguage",7),T=m(e,"live",7),E=m(e,"preload",7),L=m(e,"autoplay",7),k=m(e,"volume",7,void 0),I=m(e,"muted",7,void 0),V=m(e,"fromTime",7),j=m(e,"canRewindLive",7),H=m(e,"showAds",7),F=m(e,"adsSlotId",7,void 0),K=m(e,"adsParams",7,void 0),ee=m(e,"adsAutoplayParam",7,void 0),Y=m(e,"duration",7,void 0),de=m(e,"logoClickable",7),oe=m(e,"logoHidden",7),fe=m(e,"isMobile",7),_e=m(e,"showNextPrevButtons",7,!1),pe=m(e,"nextButtonActive",7,!1),Oe=m(e,"prevButtonActive",7,!1),ne=m(e,"endScreenVideoTitle",7,void 0),Re=m(e,"endScreenVideoThumb",7,void 0),re=m(e,"isOneVideoPlaylist",7,!1),O=m(e,"supportLink",7),ue=m(e,"shadowRootContainer",7),Ve=m(e,"outerContainerRef",7),ge=m(e,"fullScreenTarget",7,void 0),te=m(e,"failoverHosts",7,void 0),ve=m(e,"showMiniTimer",7,!1),He=m(e,"saveRate",7),me=m(e,"seekToInteractive",7,Ka.noop),ct=m(e,"playPrevChapter",7,Ka.noop),X=m(e,"volumeMultiplier",7),Me=m(e,"showAutoplayNext",7),ke=m(e,"showEndScreen",7,!0),ze=m(e,"keyboardControls",15,void 0),{subscribers:rt,stores:mt}=a();Hh(f());let vt=Mt(),Tt=f().logoLink,Je=d().ui.debugPanelVisible,zt=d().ui.playerSize,Yt=d().state.isLive$,Wt=d().state.isInteractive&&Nl.clientChecker.device.isAndroid,se=Z(void 0),Ft=null,be=Z(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),Zh(d(),mt),qe(()=>{var N,et;d().ui.isMobile.set(fe()),(et=(N=u().callbacks)==null?void 0:N.onDomReady)==null||et.call(N)});let we=(N=!1)=>{B(be,!0),N?d().actions.external.firstStart(H()):d().actions.internal.firstStart(H())},ce=()=>{if(vt.features.qualityDetailsSubMenuEnabled){let N=_1(d().videoId);if(N)switch(N.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,N.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,N.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(N.quality);break}}else{b1(d().videoId),wf()&&d().actions.internal.setTrafficSavingEnabled(!0);let et=bf(d().videoId);et&&d().actions.internal.setQuality(et)}};function De(N){var Jt,hi,yi;let et=l()||N;et&&d().initVideo({container:r(se),sources:et,failoverHosts:te(),subtitles:y(),subtitlesForcedLanguage:C(),volumeMultiplier:X()});let bt=Ka.safeStorage.get(hd)==="true";Je.set(bt),V()>0&&d().actions.external.seekTime(V());let ti=fe()?vt.volumeDefault:(hi=(Jt=k())!=null?Jt:uu())!=null?hi:vt.volumeDefault,Ut=(yi=I())!=null?yi:p1();if(d().actions.external.setVolume(ti),d().actions.external.setMuted(Ut),d().getAdmanWrapper().setInitialVolume(Ut?0:ti),ce(),vt.features.saveRate&&He()){let gt=v1();gt&&!n()&&d().actions.internal.setPlaybackRate(gt)}if(Me()){let gt=h1();gt&&d().actions.internal.setAutoplayNextEnabled(gt)}d().ui.isAutoplay.set(L()),L()&&we(),E()&&vt.features.preload&&d().actions.internal.preload()}let Ke=N=>{if(window.ResizeObserver){let et,bt;Ft=new ResizeObserver((0,Ka.throttleFn)(ti=>{let Ut=ti[0];if(Ut.contentBoxSize){let Jt=Array.isArray(Ut.contentBoxSize)?Ut.contentBoxSize[0]:Ut.contentBoxSize;et=Jt.inlineSize,bt=Jt.blockSize}else Ut.contentRect&&(et=Ut.contentRect.width,bt=Ut.contentRect.height);zt.set({width:et,height:bt})},300)),Ft.observe(N)}zt.set({width:N.clientWidth,height:N.clientHeight})},Ae=()=>{document.hidden&&d().actions.external.stop()};Rt(()=>{var bt,ti,Ut,Jt;Wt&&document.addEventListener("visibilitychange",Ae),vt.debugLog&&d().actions.internal.startLogging(),Ke(r(se));let N=rt.map(hi=>hi.init({store:d(),microStores:mt,config:u(),interactiveController:w(),uiConfig:f()})),et=()=>{Wt&&document.removeEventListener("visibilitychange",Ae),Ft==null||Ft.disconnect(),N.forEach(hi=>hi.unsubscribe()),d().destroy()};return((bt=T())==null?void 0:bt.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),et):((ti=T())==null?void 0:ti.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),et):(((Ut=T())==null?void 0:Ut.status)==="finished"||((Jt=T())==null?void 0:Jt.status)==="postlive")&&!(l()&&(0,Nl.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),et):(De(),et)});function Ge(){r(be)?d().actions.external.play():we(!0)}function Ne(){d().actions.external.pause()}function Ze(N){d().actions.external.setMuted(N)}function Lt(){d().actions.external.toggleSubtitle()}function Qt(N,et){d().actions.external.changeSubtitle(N,et)}function ot(N){d().actions.external.changeAudioStream(N)}function ai(){var N;(N=d().webApi.slotsApi)!=null&&N.haveSlots()&&d().actions.external.hideControls()}function li(){var N;(N=d().webApi.slotsApi)!=null&&N.haveSlots()&&d().actions.external.showControls()}function ut(N){fe()||N>=0&&N<=1&&d().actions.external.setVolume(N)}function ri(N){d().actions.internal.seekTime(N,B0.SeekAction.UNKNOWN)}function eo(N){d().actions.external.seekEpisodeStartTime(N)}function Gi(){d().actions.external.returnFocusToEpisodes()}function ko(N){d().actions.external.setPlaybackRate(N)}function pi(N){d().actions.external.setAutoQualityLimits(N)}function gi(){d().actions.external.setQuality("auto")}function Kt(N){d().actions.external.setTrafficSavingEnabled(N)}function Xt(N){d().actions.external.setHighQualityEnabled(N)}let so=Zu(vt.view),Ao=u().playerView==="preview",Go=d().state.availableSubtitlesList$;if(vt.features.initSubtitles){let N=!1;qe(()=>{var et;if(!N&&s().length){N=!0;let bt;if(vt.features.userVideoPrefs&&d().videoId){let Ut=vu(vt.userSalt,String(d().videoId));Ut!=null&&Ut.subtitleTrackId&&(bt=s().find(Jt=>Jt.value===Ut.subtitleTrackId))}let ti=(et=C())!=null?et:Cf();ti&&(bt=s().find(Ut=>Ut.language===ti)),d().actions.internal.setSubtitle(bt)}})}var wt=o5();let Xe;var Pi=_(wt);{var Po=N=>{Rv(N,{get store(){return d()},get uiConfig(){return vt},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return T()},get autoplay(){return L()},get canRewindLive(){return j()},get showAds(){return H()},get adsSlotId(){return F()},get adsParams(){return K()},get adsAutoplayParam(){return ee()},get duration(){return Y()},get logoClickable(){return de()},get logoHidden(){return oe()},get logoTargetUrl(){return Tt},get nextButtonActive(){return pe()},get prevButtonActive(){return Oe()},get endScreenVideoTitle(){return ne()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return re()},get supportLink(){return O()},get shadowRootContainer(){return ue()},get outerContainerRef(){return Ve()},get fullScreenTarget(){return ge()},get showMiniTimer(){return ve()},get playerStarted(){return r(be)},get seekToInteractive(){return me()},get playPrevChapter(){return ct()},firstStart:we,seekTime:ri,get showEndScreen(){return ke()},get showAutoplayNext(){return Me()},get showNextPrevButtons(){return _e()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return r(se)},set videoContainer(et){B(se,et,!0)}})},Mo=N=>{var et=Qe(),bt=he(et);{var ti=Jt=>{Nv(Jt,{get thumbUrl(){return p()},get outsideDuration(){return Y()},get canRewindLive(){return j()},get videoContainer(){return r(se)},set videoContainer(hi){B(se,hi,!0)}})},Ut=Jt=>{Lv(Jt,{get store(){return d()},get uiConfig(){return vt},get title(){return v()},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return T()},get autoplay(){return L()},get canRewindLive(){return j()},get showAds(){return H()},get adsSlotId(){return F()},get adsParams(){return K()},get adsAutoplayParam(){return ee()},get duration(){return Y()},get logoClickable(){return de()},get logoHidden(){return oe()},get logoTargetUrl(){return Tt},get nextButtonActive(){return pe()},get prevButtonActive(){return Oe()},get endScreenVideoTitle(){return ne()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return re()},get supportLink(){return O()},get shadowRootContainer(){return ue()},get outerContainerRef(){return Ve()},get fullScreenTarget(){return ge()},get showMiniTimer(){return ve()},get playerStarted(){return r(be)},get seekToInteractive(){return me()},get playPrevChapter(){return ct()},firstStart:we,get showEndScreen(){return ke()},get showAutoplayNext(){return Me()},get showNextPrevButtons(){return _e()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return r(se)},set videoContainer(hi){B(se,hi,!0)},get keyboardControls(){return ze()},set keyboardControls(hi){ze(hi)}})};R(bt,Jt=>{Ao?Jt(ti):Jt(Ut,!1)})}$(N,et)};R(Pi,N=>{fe()?N(Po):N(Mo,!1)})}h(wt),D(N=>{Xe=ie(wt,1,"root svelte-16kg8zb",null,Xe,N),at(wt,so)},[()=>({"root--miui-browser":Nl.clientChecker.device.isMobile&&Nl.clientChecker.browser.isMiuiBrowser,"visible-outside":Ao})]),$(t,wt);var un=z({initVideo:De,play:Ge,pause:Ne,setMuted:Ze,toggleSubtitle:Lt,changeSubtitle:Qt,changeAudioStream:ot,hideControls:ai,showControls:li,setVolume:ut,seekTime:ri,seekEpisodeStartTime:eo,returnFocusToEpisodes:Gi,setPlaybackRate:ko,setAutoQualityLimits:pi,setAutoQuality:gi,toggleTrafficSaving:Kt,toggleHighQuality:Xt,get sources(){return l()},set sources(N){l(N)},get store(){return d()},set store(N){d(N)},get microStoresRoot(){return a()},set microStoresRoot(N){a(N)},get videoConfig(){return u()},set videoConfig(N){u(N)},get uiConfig(){return f()},set uiConfig(N){f(N)},get title(){return v()},set title(N){v(N)},get thumbUrl(){return p()},set thumbUrl(N){p(N)},get interactiveContainer(){return x()},set interactiveContainer(N){x(N)},get interactiveController(){return w()},set interactiveController(N){w(N)},get subtitles(){return y()},set subtitles(N){y(N)},get subtitlesForcedLanguage(){return C()},set subtitlesForcedLanguage(N){C(N)},get live(){return T()},set live(N){T(N)},get preload(){return E()},set preload(N){E(N)},get autoplay(){return L()},set autoplay(N){L(N)},get volume(){return k()},set volume(N){k(N)},get muted(){return I()},set muted(N){I(N)},get fromTime(){return V()},set fromTime(N){V(N)},get canRewindLive(){return j()},set canRewindLive(N){j(N)},get showAds(){return H()},set showAds(N){H(N)},get adsSlotId(){return F()},set adsSlotId(N){F(N)},get adsParams(){return K()},set adsParams(N){K(N)},get adsAutoplayParam(){return ee()},set adsAutoplayParam(N){ee(N)},get duration(){return Y()},set duration(N){Y(N)},get logoClickable(){return de()},set logoClickable(N){de(N)},get logoHidden(){return oe()},set logoHidden(N){oe(N)},get isMobile(){return fe()},set isMobile(N){fe(N)},get showNextPrevButtons(){return _e()},set showNextPrevButtons(N){_e(N)},get nextButtonActive(){return pe()},set nextButtonActive(N){pe(N)},get prevButtonActive(){return Oe()},set prevButtonActive(N){Oe(N)},get endScreenVideoTitle(){return ne()},set endScreenVideoTitle(N){ne(N)},get endScreenVideoThumb(){return Re()},set endScreenVideoThumb(N){Re(N)},get isOneVideoPlaylist(){return re()},set isOneVideoPlaylist(N){re(N)},get supportLink(){return O()},set supportLink(N){O(N)},get shadowRootContainer(){return ue()},set shadowRootContainer(N){ue(N)},get outerContainerRef(){return Ve()},set outerContainerRef(N){Ve(N)},get fullScreenTarget(){return ge()},set fullScreenTarget(N){ge(N)},get failoverHosts(){return te()},set failoverHosts(N){te(N)},get showMiniTimer(){return ve()},set showMiniTimer(N){ve(N)},get saveRate(){return He()},set saveRate(N){He(N)},get showAutoplayNext(){return Me()},set showAutoplayNext(N){Me(N)},get seekToInteractive(){return me()},set seekToInteractive(N){me(N)},get playPrevChapter(){return ct()},set playPrevChapter(N){ct(N)},get volumeMultiplier(){return X()},set volumeMultiplier(N){X(N)},get showEndScreen(){return ke()},set showEndScreen(N){ke(N)},get keyboardControls(){return ze()},set keyboardControls(N){ze(N)}});return o(),un}var r5=Te('<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 Bv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=r5();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}function Dv(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Bv(t,{get style(){return r(o)}})}var s5=M('<div class="title svelte-1y9fytq"> </div>'),a5=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),l5={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 Hv(t,e){Q(t,l5);var i=a5(),o=_(i);{var n=d=>{var a=s5(),u=_(a,!0);h(a),D(()=>$e(u,e.title)),$(d,a)};R(o,d=>{e.title&&d(n)})}var s=A(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);Dv(d,{get isWhite(){return r(a)}})};R(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),D(()=>at(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var d5=M('<div class="playerError svelte-m5iv29"><!></div>'),c5={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {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;}"};function Fv(t){Q(t,c5);var e=d5(),i=_(e);Da(i,{}),h(e),$(t,e)}var dp=require("@vkontakte/videoplayer-shared/es2015"),Oi=require("@vkontakte/videoplayer-shared/es2015"),$c=require("@vkontakte/videoplayer-core/es2015"),Ul=require("@vkontakte/videoplayer-statistics/es2015");var Ju=require("@vkontakte/videoplayer-shared/es2015"),Xu=class{constructor(){this.subscription=new Ju.Subscription,this.logger=new Ju.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,s)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=ye(e.state.currentPlaybackRate$),n=ye(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{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 Bl=require("@vkontakte/videoplayer-shared/es2015");var u5=Te('<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 Uv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=u5();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:le}),Ce(),h(o),$(t,o)}var p5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),f5={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 zv(t,e){U(e,!0),Q(t,f5);let[i,o]=Fe(),n=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=Ie(),d=Mt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=g(()=>n()&&v("pip_dummy_title")),x=Zu(d.view);var w=p5();let y;var C=_(w);let T;var E=_(C);Uv(E,{}),h(C);var L=A(C,2),k=_(L,!0);h(L),h(w),D((I,V)=>{y=ie(w,1,"player-pip-dummy svelte-1pbsod4",null,y,I),at(w,x),T=ie(C,1,"dummy-image svelte-1pbsod4",null,T,V),$e(k,r(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),z(),o()}var m5=Object.defineProperty,v5=(t,e,i)=>e in t?m5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ol=(t,e,i)=>v5(t,typeof e!="symbol"?e+"":e,i),Wv=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),g5=460,h5=280,uc=class{constructor({enabled:e=!0}={enabled:!0}){Ol(this,"playerDomElement"),Ol(this,"playerParentShadowRoot"),Ol(this,"playerDummyElement"),Ol(this,"svelteContext"),Ol(this,"pipWindow"),Ol(this,"info",{isActive$:new Bl.ValueSubject(!1),isEnabled$:new Bl.ValueSubject(!1),type:1}),this.info.isEnabled$=new Bl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Bl.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return Wv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:g5,height:h5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
390
- `),n=document.createElement("style");n.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=rs(zv,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(pa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return Wv(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return Wv(this,null,function*(){yield this.exit()})}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 D0(t){return t instanceof uc}var ep=class{static getLatestSupportedVersion(e){let i=new xa(e),o=new uc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function pc(t,e){var n,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(n=e[l])!=null?n:t[l])!=null?s:void 0;return o}var H0="Inner error. Unexpectedly root annotation container null reference exception",F0="Annotation with such name already exists",U0="Annotation with such name does not exist";var Dl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Hl=require("@vkontakte/videoplayer-shared/es2015"),_5="1",b5=100,tp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Hl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Hl.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"},b5);this.subscriptions.add((0,Hl.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 Dl(H0);if(this.annotations.has(e))throw new Dl(F0);i.style.zIndex=(o=i.style.zIndex)!=null?o:_5,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 Dl(U0);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,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||s<0||s+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var qa=require("@vkontakte/videoplayer-shared/es2015"),cn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,qa.assertNonNullable)(e),(0,qa.assertNonNullable)(i),(0,qa.assertNonNullable)(n),n.interactiveData&&(0,qa.assertNonNullable)(o),this.subscription=new qa.Subscription,this.subscription}};var fc=class extends cn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Dt(W({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var mc=class extends cn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Dt(W({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:s}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,v=ye(f),p=()=>v&&ye(u);return o.add(u.subscribe(x=>{if(!v)return;let w=ye(l);ye(a)?this.state$.set(x):w!==null&&this.state$.set(!w||x)})),o.add(a.subscribe(x=>{this.state$.set(!x||p())})),o.add(l.subscribe(x=>{if(x===null)return;let w=ye(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!x)})),o}};var vc=class extends cn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var z0=require("@vkontakte/videoplayer-shared/es2015");var Kv=ae(!1),ip=null,gc=class extends cn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Dt(W({},Kv),{set:(i,o=!1)=>{i!==ye(Kv)&&(this.clearTimeout(),Kv.set(i),!i&&ip&&(ip=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(a.subscribe(v=>{ye(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,z0.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:x})=>{var w,y;if(!(!v||!(x!=null&&x.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&ip===null&&(ip=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var op=require("@vkontakte/videoplayer-shared/es2015");var hc=class extends cn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Dt(W({},ae(null)),{toggle:op.noop});this.checkIfShouldHide=i=>Ys(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:s}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>_t(this,null,function*(){if(this.checkIfShouldHide(ye(l)))return;let a=ye(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,p=ye(u),x=ye(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),v.remove(pf),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=x==="playing";try{yield s==null?void 0:s.toggleGraphView(!0),this.state$.set(!0),v.add(pf),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add((0,op.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>_t(this,[f],function*({graphIsOpened:a,currentGridType:u}){if(this.checkIfShouldHide(u)&&a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};var qv=require("@vkontakte/videoplayer-shared/es2015"),_c=class extends cn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new qv.ValueSubject(!1),isEnabled$:new qv.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var rp=require("@vkontakte/videoplayer-shared/es2015");var np=require("@vkontakte/videoplayer-shared/es2015");var W0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?$5({maxCount:t}):void 0,e!==0?y5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},$5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,np.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}}},y5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(np.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>np.safeStorage.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(Dt(W({},i()),{[s]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&n(s),d}else return!0}}};var bc=class extends cn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=W0({maxShowCount:s,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,rp.filterChanged)(),(0,rp.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var K0=()=>[fc,mc,vc,gc,hc,_c,bc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Dt(W({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var Fl=require("@vkontakte/videoplayer-shared/es2015");var sp=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var x5=Object.defineProperty,w5=Object.defineProperties,S5=Object.getOwnPropertyDescriptors,q0=Object.getOwnPropertySymbols,C5=Object.prototype.hasOwnProperty,T5=Object.prototype.propertyIsEnumerable,Qv=(t,e,i)=>e in t?x5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ps=(t,e)=>{for(var i in e||(e={}))C5.call(e,i)&&Qv(t,i,e[i]);if(q0)for(var i of q0(e))T5.call(e,i)&&Qv(t,i,e[i]);return t},E5=(t,e)=>w5(t,S5(e)),jt=(t,e,i)=>Qv(t,typeof e!="symbol"?e+"":e,i),ap=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),I5={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Oi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,$c.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},qn=Z(void 0),lp=class extends HTMLElement{constructor(){super(),jt(this,"svelteStubComponent"),jt(this,"svelteRootComponent"),jt(this,"svelteErrorComponent"),jt(this,"store"),jt(this,"microStoresRoot"),jt(this,"statistics"),jt(this,"sentry"),jt(this,"_shadowRoot"),jt(this,"playerContainer"),jt(this,"rootContainer"),jt(this,"shadowRootContainer"),jt(this,"playerId"),jt(this,"uiConfig"),jt(this,"coreConfig"),jt(this,"statisticsConfig"),jt(this,"interactiveController"),jt(this,"interactiveContainer"),jt(this,"graphMadePause"),jt(this,"currentPlayingVideoIndex",0),jt(this,"needToRepeatPlaylist",!1),jt(this,"videoConfig"),jt(this,"pictureInPictureApi"),jt(this,"mediaSessionApi"),jt(this,"unsubscribePlayerPhaseSubscription"),jt(this,"logger"),jt(this,"log"),jt(this,"subscription"),jt(this,"interactiveSubscription"),jt(this,"annotationsApi"),jt(this,"slotsApi"),jt(this,"focusManager"),jt(this,"prevIsid"),jt(this,"isInited",!1),jt(this,"internalsExposure",null),jt(this,"shadowDOMCallbacksDisabled",!1),jt(this,"fatalError$",new dp.ValueSubject(null)),jt(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:x,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:E}=pc(this.videoConfig,i),L=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,k=(s=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?s:!1;k&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new Ul.OneStat(Ps({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=x&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:V,refDomain:C,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview"},L&&(!this.isInited||k)&&{projectId:Number(L)}),Ps({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(H){console.error(H),this.log({message:H.message})}}),Fl.devNull.create("ui"),this.logger=new Oi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Oi.Subscription,this.interactiveSubscription=new Oi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=rs(Fv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)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,s=ni({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=rs(Hv,l)}disconnectedCallback(){var e,i,o,n,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Fl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:s}=pc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Ul.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:n,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var n,s,l,d,a,u,f,v,p,x;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:C,preload:T,autoplay:E,volume:L,muted:k,fromTime:I,canRewindLive:V,supportLink:j,showAds:H,adsSlotId:F,adsParams:K={},adsAutoplayParam:ee,interfaceLanguage:Y,isCyrillicRelatedInterface:de,logoClickable:oe,logoHidden:fe,isMobile:_e,isTouch:pe,isAudioDisabled:Oe,isLiveCatchUpMode:ne,fullScreenTarget:Re,failoverHosts:re,canDownload:O,callbacks:ue,interactiveData:Ve,showThumbTimer:ge,additionalButtons:te=[],additionalSettingsMenuItems:ve=[],additionalContextMenuItems:He=[],repeat:me,loop:ct,saveRate:X,volumeMultiplier:Me,showEndScreen:ke,showAutoplayNext:ze,mediascopePixels:rt}=pc(this.videoConfig,i),{sources:mt,title:vt,thumbUrl:Tt,unitedVideoId:Je,isClip:zt=!1,duration:Yt,adsParams:Zt={},videoEpisodes:Wt,previewThumbsData:se,subtitles:Ft,subtitlesForcedLanguage:be,live:we,adsExternalApi:ce}=e;if(!mt&&!we){let pi=new Error("empty sources and live");this.fatalError$.next(pi),(n=ue.onCrashed)==null||n.call(ue,pi.message);return}let De=Ps(Ps({},K),Zt),Ke=this.getNextVideoInfo(),Ae={sources:mt,title:vt,thumbUrl:Tt,subtitles:Ft,subtitlesForcedLanguage:be,unitedVideoId:Je,isClip:zt,live:we,albumId:w,statPlace:y,autoplay:E,muted:k,volume:L,fromTime:I,canRewindLive:V,showAds:H,adsSlotId:F,adsParams:De,adsAutoplayParam:ee,duration:Yt,logoClickable:oe,logoHidden:fe,isTouch:pe!=null?pe:_e,repeat:me,loop:ct,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ke.nextVideoTitle,endScreenVideoThumb:Ke.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ge={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Ae)}`});let Ne=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),Ze=(Ne==null?void 0:Ne.oneStat)||this.createOneStat(e,i),Lt=this.createThinOneStat(e,i),Qt;rt&&(Qt=new Ul.MediascopePixel({pixels:rt})),(Ze||Lt)&&(this.statistics=new Ou(Ze,Lt,Qt,Ne==null?void 0:Ne.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ya(this.uiConfig.sentry,{version:_a,env:lu},{movieId:Je,albumId:w,place:y,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:pe!=null?pe:_e,clip:zt}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry=Ps(Ps({},this.sentry),ya.getInstance());let ai=!!Ve,li=[],ut="tooltip_interactive_go_back_disabled_first";if(ai&&this.interactiveController){let pi=this.interactiveController.state.isInitialChapter$.getValue(),gi=this.interactiveController.getHistoryState();pi&&li.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||li.push("SEEK_TO_INTERACTIVE_BUTTON"),gi.hasPrevChapter$.getValue()||(li.push("PLAY_PREV_CHAPTER_BUTTON"),pi||(gi.isGoBackLimited$.getValue()?ut="tooltip_interactive_go_back_disabled_limit":ut="tooltip_interactive_go_back_disabled"))}let ri=()=>{var pi;this.isInited=!1,this.prevIsid=void 0;let gi=(o==null?void 0:o.info.isEnded$.getValue())&&((pi=this.interactiveController)==null?void 0:pi.state.isEndChapter$.getValue());ue.onReplayInteractiveVideo&&!gi?ue.onReplayInteractiveVideo():this.replayInteractiveVideo()},eo=me&&this.videoConfig.videos.length===1;this.store=l0({player:o,interfaceLanguage:Y,isCyrillicRelatedInterface:de,videoId:Je,isClip:zt,isLiveCatchUpMode:ne,isAudioDisabled:Oe,statAuthToken:C,callbacks:ue,webApi:Ge,videoEpisodes:Wt,previewThumbsData:se,canDownload:O,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:li,isInteractive:ai,saveRate:X,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ri,playPrevChapterDisabledTooltip:ut,hasInteractiveBranches:!!((x=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&x.length),additionalButtons:this.uiConfig.features.additionalButtons?te:[],additionalSettingsMenuItems:ve!=null?ve:[],additionalContextMenuItems:He!=null?He:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:this.uiConfig.features.useLoopSetting?ct:eo,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Gi}=this.microStoresRoot=K0(),ko=()=>{var pi,gi,Kt,Xt,so,Ao;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(wt=>{var Xe;return(Xe=ue==null?void 0:ue.onCurrentFormatChanged)==null?void 0:Xe.call(ue,wt)})),this.subscription.add(Gi.interactiveControlsOpacity$.subscribe(wt=>{var Xe;wt!==null&&((Xe=this==null?void 0:this.interactiveController)==null||Xe.setDisabledControls(wt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(wt=>{var Xe;return(Xe=ue==null?void 0:ue.onThroughputEstimationChanged)==null?void 0:Xe.call(ue,wt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(wt=>{var Xe;return(Xe=ue==null?void 0:ue.onTrafficSavingEnabledChanged)==null?void 0:Xe.call(ue,wt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(wt=>{var Xe;return(Xe=ue==null?void 0:ue.onHighQualityEnabledChanged)==null?void 0:Xe.call(ue,wt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(wt=>{var Xe;return(Xe=ue==null?void 0:ue.onAutoQualityEnabledChanged)==null?void 0:Xe.call(ue,!!wt)})),this.subscription.add(new Oi.Observable(wt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Xe=>wt.next(Xe)))}).pipe((0,Oi.skip)(1)).subscribe(wt=>{var Xe;return(Xe=ue==null?void 0:ue.onCurrentPlaybackRateChanged)==null?void 0:Xe.call(ue,wt)})),this.subscription.add(this.store.state.volume$.subscribe(wt=>{var Xe;return(Xe=ue==null?void 0:ue.onVolumeChange)==null?void 0:Xe.call(ue,wt)})),this.subscription.add(this.store.state.muted$.subscribe(wt=>{var Xe,Pi,Po,Mo;if(wt)(Xe=ue==null?void 0:ue.onMute)==null||Xe.call(ue);else{let un=(Po=((Pi=this.store)==null?void 0:Pi.state.volume$)&&ye(this.store.state.volume$))!=null?Po:0;(Mo=ue==null?void 0:ue.onUnmute)==null||Mo.call(ue,un)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(wt=>{var Xe;return(Xe=ue==null?void 0:ue.onVideoBitrateChanged)==null?void 0:Xe.call(ue,wt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(wt=>{var Xe;let Pi=(Xe=this.store)==null?void 0:Xe.ui.controls.disabledControls$;Pi&&(wt&&!Pi.includes(_d)&&Pi.add(_d),wt||Pi.remove(_d))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(wt=>ap(this,null,function*(){var Xe;if(!$c.clientChecker.browser.isSamsungBrowser||!wt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Xe=this.videoConfig)==null?void 0:Xe.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(wt=>{var Xe;return(Xe=ue==null?void 0:ue.onVSIDChanged)==null?void 0:Xe.call(ue,wt)})),this.initMediaSession(),B(qn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:mt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:vt,thumbUrl:Tt,subtitles:Ft,subtitlesForcedLanguage:be,live:we,preload:T,autoplay:E,muted:k,volume:L,fromTime:I,canRewindLive:V,supportLink:j,showAds:H,adsSlotId:F,adsParams:De,adsAutoplayParam:ee,duration:Yt,logoClickable:oe,logoHidden:fe,isMobile:pe!=null?pe:_e,failoverHosts:re,fullScreenTarget:Re,saveRate:X,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ge,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ke.nextVideoTitle,endScreenVideoThumb:Ke.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Me,showEndScreen:ke,showAutoplayNext:ze,adsExternalApi:ce},!0);let Go={target:this.playerContainer,props:r(qn)};this.svelteRootComponent=rs(Ov,Go),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Kt=(gi=(pi=this.videoConfig)==null?void 0:pi.callbacks)==null?void 0:gi.onInited)==null||Kt.call(gi)),(Xt=this.internalsExposure)==null||Xt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ao=(so=this.videoConfig)==null?void 0:so.callbacks)!=null&&Ao.onDevNullLog)?Fl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Fl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?$c.clientChecker.isInited$.subscribe(pi=>{pi&&(console.log("UI SDK async start"),ko())}):ko()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,Oi.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return ap(this,null,function*(){var e,i,o,n,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?ye(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:x}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:p,vkVideoLoader:x,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let C=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=E5(Ps({},T.config),{title:(f==null?void 0:f.title)||T.config.title});let E=C?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),C&&(C=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var L,k,I,V,j,H;if(!this.store||!this.microStoresRoot)return;let F=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(bd)),T==="action-choice-canceled"){let K=ye(this.store.state.isPlaying$)||F;if(((I=(L=this.videoConfig)==null?void 0:L.isTouch)!=null?I:(k=this.videoConfig)!=null&&k.isMobile)&&K){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(V=this.videoConfig)==null?void 0:(j=V.callbacks).onDisabledInteractiveClick)==null||H.call(j)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(bd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var L,k,I;E.length&&((I=(k=(L=this.videoConfig)==null?void 0:L.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||I.call(k,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,L,k;(k=(E=this.videoConfig)==null?void 0:(L=E.callbacks).onInteractiveChapterChanged)==null||k.call(L,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,L,k;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(E=this.videoConfig)==null?void 0:(L=E.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(L)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,n,s,l,d,a,u,f,v,p,x,w,y,C,T,E,L,k,I,V,j,H,F,K,ee,Y,de,oe;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let fe=new Error("empty videos");this.fatalError$.next(fe),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,fe.message);return}else this.fatalError$.next(null);if(this.videoConfig=pc(I5,(0,Oi.cloneDeepWith)(e,fe=>fe instanceof HTMLElement?fe:void 0)),this.playerId=(0,Oi.getPlayerId)(e.playerId),this.uiConfig=Dh((s=i.ui)!=null?s:{}),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Oi.InternalsExposure("ui",this.playerId))),Fl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,dp.now)()]}),(0,Oi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),(0,Oi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(x=this.uiConfig.features.pip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(C=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.uiConfig.ads.paramsOverride=Ps({preview:(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(L=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?L:this.videoConfig.isMobile,(k=this.videoConfig).autoplay&&(k.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(V=this.uiConfig.ads.slot)!=null?V:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((j=this.uiConfig.showLogo)!=null?j:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(F=this.videoConfig.supportLink)!=null?F:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(K=this.uiConfig.features.endScreen)!=null?K:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(ee=this.uiConfig.features.autoplayNext)!=null?ee:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Y=this.uiConfig.features.nextPrevButtons)!=null?Y:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((de=this.videoConfig.videos)!=null&&de[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let fe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ep.getLatestSupportedVersion(fe):this.pictureInPictureApi=new xa(fe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Xu:void 0,this.slotsApi=this.uiConfig.features.slots?new Gu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new tp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),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]),D0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(oe=this.slotsApi)==null||oe.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new sp(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(qn)&&(r(qn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(qn).nextButtonActive=this.isNextButtonActive(),r(qn).prevButtonActive=this.isPrevButtonActive(),r(qn).endScreenVideoTitle=o.nextVideoTitle,r(qn).endScreenVideoThumb=o.nextVideoThumb,r(qn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=Ps({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(qn)&&(r(qn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(qn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(qn).nextButtonActive=this.isNextButtonActive(),r(qn).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)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return ap(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;let n=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${n}`}),n||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||n(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return ap(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=ye(this.store.state.positionExact$),l=ye(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Oi.once)()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&pa(e)}};var zl=require("@vkontakte/videoplayer-shared/es2015"),cp=require("@vkontakte/videoplayer-core/es2015"),k5=()=>{window.customElements.define("vk-video-player",lp)};
393
+ /* \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 Yv(t,e){z(e,!0),q(t,$5);let[i,o]=He(),n=()=>S(Yt,"$isLive$",i),s=()=>S(Mt,"$availableSubtitlesList$",i),l=v(e,"sources",7),d=v(e,"store",7),a=v(e,"microStoresRoot",7),u=v(e,"videoConfig",7),f=v(e,"uiConfig",7),m=v(e,"title",7),p=v(e,"thumbUrl",7),x=v(e,"interactiveContainer",7),y=v(e,"interactiveController",7),w=v(e,"subtitles",7),T=v(e,"subtitlesForcedLanguage",7),C=v(e,"live",7),E=v(e,"preload",7),V=v(e,"autoplay",7),I=v(e,"volume",7,void 0),L=v(e,"muted",7,void 0),B=v(e,"fromTime",7),F=v(e,"canRewindLive",7),H=v(e,"showAds",7),U=v(e,"adsSlotId",7,void 0),Z=v(e,"adsParams",7,void 0),re=v(e,"adsAutoplayParam",7,void 0),G=v(e,"duration",7,void 0),be=v(e,"logoClickable",7),ee=v(e,"logoHidden",7),pe=v(e,"isMobile",7),ve=v(e,"showNextPrevButtons",7,!1),ue=v(e,"nextButtonActive",7,!1),Me=v(e,"prevButtonActive",7,!1),Oe=v(e,"endScreenVideoTitle",7,void 0),le=v(e,"endScreenVideoThumb",7,void 0),De=v(e,"isOneVideoPlaylist",7,!1),X=v(e,"supportLink",7),M=v(e,"shadowRootContainer",7),st=v(e,"outerContainerRef",7),Fe=v(e,"fullScreenTarget",7,void 0),j=v(e,"failoverHosts",7,void 0),oe=v(e,"showMiniTimer",7,!1),Be=v(e,"saveRate",7),Je=v(e,"seekToInteractive",7,Wa.noop),$e=v(e,"playPrevChapter",7,Wa.noop),ie=v(e,"volumeMultiplier",7),Se=v(e,"showAutoplayNext",7),Ee=v(e,"showEndScreen",7,!0),Qe=v(e,"keyboardControls",15,void 0),{subscribers:tt,stores:gt}=a();i1(f());let dt=kt(),ht=f().logoLink,it=d().ui.debugPanelVisible,Wt=d().ui.playerSize,Yt=d().state.isLive$,Zt=d().state.isInteractive&&Rl.clientChecker.device.isAndroid,Ae=J(void 0),Ft=null,Ce=J(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),f1(d(),gt),qe(()=>{var O,et;d().ui.isMobile.set(pe()),(et=(O=u().callbacks)==null?void 0:O.onDomReady)==null||et.call(O)});let Ie=(O=!1)=>{N(Ce,!0),O?d().actions.external.firstStart(H()):d().actions.internal.firstStart(H())},ce=()=>{if(dt.features.qualityDetailsSubMenuEnabled){let O=V1(d().videoId);if(O)switch(O.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,O.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,O.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(O.quality);break}}else{R1(d().videoId),Mf()&&d().actions.internal.setTrafficSavingEnabled(!0);let et=kf(d().videoId);et&&d().actions.internal.setQuality(et)}};function Ke(O){var ri,wi,$i;let et=l()||O;et&&d().initVideo({container:r(Ae),sources:et,failoverHosts:j(),subtitles:w(),subtitlesForcedLanguage:T(),volumeMultiplier:ie()});let Qt=Wa.safeStorage.get(yd)==="true";it.set(Qt),B()>0&&d().actions.external.seekTime(B());let Gt=pe()?dt.volumeDefault:(wi=(ri=I())!=null?ri:hu())!=null?wi:dt.volumeDefault,vt=($i=L())!=null?$i:I1();if(d().actions.external.setVolume(Gt),d().actions.external.setMuted(vt),d().getAdmanWrapper().setInitialVolume(vt?0:Gt),ce(),dt.features.saveRate&&Be()){let xt=P1();xt&&!n()&&d().actions.internal.setPlaybackRate(xt)}if(Se()){let xt=M1();xt&&d().actions.internal.setAutoplayNextEnabled(xt)}d().ui.isAutoplay.set(V()),V()&&Ie(),E()&&dt.features.preload&&d().actions.internal.preload()}let fe=O=>{if(window.ResizeObserver){let et,Qt;Ft=new ResizeObserver((0,Wa.throttleFn)(Gt=>{let vt=Gt[0];if(vt.contentBoxSize){let ri=Array.isArray(vt.contentBoxSize)?vt.contentBoxSize[0]:vt.contentBoxSize;et=ri.inlineSize,Qt=ri.blockSize}else vt.contentRect&&(et=vt.contentRect.width,Qt=vt.contentRect.height);Wt.set({width:et,height:Qt})},300)),Ft.observe(O)}Wt.set({width:O.clientWidth,height:O.clientHeight})},Ve=()=>{document.hidden&&d().actions.external.stop()};Rt(()=>{var Qt,Gt,vt,ri;Zt&&document.addEventListener("visibilitychange",Ve),dt.debugLog&&d().actions.internal.startLogging(),fe(r(Ae));let O=tt.map(wi=>wi.init({store:d(),microStores:gt,config:u(),interactiveController:y(),uiConfig:f()})),et=()=>{Zt&&document.removeEventListener("visibilitychange",Ve),Ft==null||Ft.disconnect(),O.forEach(wi=>wi.unsubscribe()),d().destroy()};return((Qt=C())==null?void 0:Qt.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),et):((Gt=C())==null?void 0:Gt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),et):(((vt=C())==null?void 0:vt.status)==="finished"||((ri=C())==null?void 0:ri.status)==="postlive")&&!(l()&&(0,Rl.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),et):(Ke(),et)});function Ne(){r(Ce)?d().actions.external.play():Ie(!0)}function ye(){d().actions.external.pause()}function Ye(O){d().actions.external.setMuted(O)}function yt(){d().actions.external.toggleSubtitle()}function Xt(O,et){d().actions.external.changeSubtitle(O,et)}function Lt(O){d().actions.external.changeAudioStream(O)}function _i(){var O;(O=d().webApi.slotsApi)!=null&&O.haveSlots()&&d().actions.external.hideControls()}function ni(){var O;(O=d().webApi.slotsApi)!=null&&O.haveSlots()&&d().actions.external.showControls()}function bi(O){pe()||O>=0&&O<=1&&d().actions.external.setVolume(O)}function Fi(O){d().actions.internal.seekTime(O,e_.SeekAction.UNKNOWN)}function ho(O){d().actions.external.seekEpisodeStartTime(O)}function At(){d().actions.external.returnFocusToEpisodes()}function ti(O){d().actions.external.setPlaybackRate(O)}function ui(O){d().actions.external.setAutoQualityLimits(O)}function _t(){d().actions.external.setQuality("auto")}function pt(O){d().actions.external.setTrafficSavingEnabled(O)}function Jt(O){d().actions.external.setHighQualityEnabled(O)}let Ii=op(dt.view),Go=u().playerView==="preview",Mt=d().state.availableSubtitlesList$;if(dt.features.initSubtitles){let O=!1;qe(()=>{var et;if(!O&&s().length){O=!0;let Qt;if(dt.features.userVideoPrefs&&d().videoId){let vt=yu(dt.userSalt,String(d().videoId));vt!=null&&vt.subtitleTrackId&&(Qt=s().find(ri=>ri.value===vt.subtitleTrackId))}let Gt=(et=T())!=null?et:Rf();Gt&&(Qt=s().find(vt=>vt.language===Gt)),d().actions.internal.setSubtitle(Qt)}})}var lt=b5();let Ot;var Eo=_(lt);{var Io=O=>{Gv(O,{get store(){return d()},get uiConfig(){return dt},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return C()},get autoplay(){return V()},get canRewindLive(){return F()},get showAds(){return H()},get adsSlotId(){return U()},get adsParams(){return Z()},get adsAutoplayParam(){return re()},get duration(){return G()},get logoClickable(){return be()},get logoHidden(){return ee()},get logoTargetUrl(){return ht},get nextButtonActive(){return ue()},get prevButtonActive(){return Me()},get endScreenVideoTitle(){return Oe()},get endScreenVideoThumb(){return le()},get isOneVideoPlaylist(){return De()},get supportLink(){return X()},get shadowRootContainer(){return M()},get outerContainerRef(){return st()},get fullScreenTarget(){return Fe()},get showMiniTimer(){return oe()},get playerStarted(){return r(Ce)},get seekToInteractive(){return Je()},get playPrevChapter(){return $e()},firstStart:Ie,seekTime:Fi,get showEndScreen(){return Ee()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return ve()},get videoContainer(){return r(Ae)},set videoContainer(et){N(Ae,et,!0)}})},jo=O=>{var et=Ue(),Qt=me(et);{var Gt=ri=>{jv(ri,{get thumbUrl(){return p()},get outsideDuration(){return G()},get canRewindLive(){return F()},get videoContainer(){return r(Ae)},set videoContainer(wi){N(Ae,wi,!0)}})},vt=ri=>{qv(ri,{get store(){return d()},get uiConfig(){return dt},get title(){return m()},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return C()},get autoplay(){return V()},get canRewindLive(){return F()},get showAds(){return H()},get adsSlotId(){return U()},get adsParams(){return Z()},get adsAutoplayParam(){return re()},get duration(){return G()},get logoClickable(){return be()},get logoHidden(){return ee()},get logoTargetUrl(){return ht},get nextButtonActive(){return ue()},get prevButtonActive(){return Me()},get endScreenVideoTitle(){return Oe()},get endScreenVideoThumb(){return le()},get isOneVideoPlaylist(){return De()},get supportLink(){return X()},get shadowRootContainer(){return M()},get outerContainerRef(){return st()},get fullScreenTarget(){return Fe()},get showMiniTimer(){return oe()},get playerStarted(){return r(Ce)},get seekToInteractive(){return Je()},get playPrevChapter(){return $e()},firstStart:Ie,get showEndScreen(){return Ee()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return ve()},get videoContainer(){return r(Ae)},set videoContainer(wi){N(Ae,wi,!0)},get keyboardControls(){return Qe()},set keyboardControls(wi){Qe(wi)}})};R(Qt,ri=>{Go?ri(Gt):ri(vt,!1)})}$(O,et)};R(Eo,O=>{pe()?O(Io):O(jo,!1)})}h(lt),D(O=>{Ot=se(lt,1,"root svelte-1tzrpvc",null,Ot,O),at(lt,Ii)},[()=>({"root--miui-browser":Rl.clientChecker.device.isMobile&&Rl.clientChecker.browser.isMiuiBrowser,"visible-outside":Go})]),$(t,lt);var Dn=W({initVideo:Ke,play:Ne,pause:ye,setMuted:Ye,toggleSubtitle:yt,changeSubtitle:Xt,changeAudioStream:Lt,hideControls:_i,showControls:ni,setVolume:bi,seekTime:Fi,seekEpisodeStartTime:ho,returnFocusToEpisodes:At,setPlaybackRate:ti,setAutoQualityLimits:ui,setAutoQuality:_t,toggleTrafficSaving:pt,toggleHighQuality:Jt,get sources(){return l()},set sources(O){l(O)},get store(){return d()},set store(O){d(O)},get microStoresRoot(){return a()},set microStoresRoot(O){a(O)},get videoConfig(){return u()},set videoConfig(O){u(O)},get uiConfig(){return f()},set uiConfig(O){f(O)},get title(){return m()},set title(O){m(O)},get thumbUrl(){return p()},set thumbUrl(O){p(O)},get interactiveContainer(){return x()},set interactiveContainer(O){x(O)},get interactiveController(){return y()},set interactiveController(O){y(O)},get subtitles(){return w()},set subtitles(O){w(O)},get subtitlesForcedLanguage(){return T()},set subtitlesForcedLanguage(O){T(O)},get live(){return C()},set live(O){C(O)},get preload(){return E()},set preload(O){E(O)},get autoplay(){return V()},set autoplay(O){V(O)},get volume(){return I()},set volume(O){I(O)},get muted(){return L()},set muted(O){L(O)},get fromTime(){return B()},set fromTime(O){B(O)},get canRewindLive(){return F()},set canRewindLive(O){F(O)},get showAds(){return H()},set showAds(O){H(O)},get adsSlotId(){return U()},set adsSlotId(O){U(O)},get adsParams(){return Z()},set adsParams(O){Z(O)},get adsAutoplayParam(){return re()},set adsAutoplayParam(O){re(O)},get duration(){return G()},set duration(O){G(O)},get logoClickable(){return be()},set logoClickable(O){be(O)},get logoHidden(){return ee()},set logoHidden(O){ee(O)},get isMobile(){return pe()},set isMobile(O){pe(O)},get showNextPrevButtons(){return ve()},set showNextPrevButtons(O){ve(O)},get nextButtonActive(){return ue()},set nextButtonActive(O){ue(O)},get prevButtonActive(){return Me()},set prevButtonActive(O){Me(O)},get endScreenVideoTitle(){return Oe()},set endScreenVideoTitle(O){Oe(O)},get endScreenVideoThumb(){return le()},set endScreenVideoThumb(O){le(O)},get isOneVideoPlaylist(){return De()},set isOneVideoPlaylist(O){De(O)},get supportLink(){return X()},set supportLink(O){X(O)},get shadowRootContainer(){return M()},set shadowRootContainer(O){M(O)},get outerContainerRef(){return st()},set outerContainerRef(O){st(O)},get fullScreenTarget(){return Fe()},set fullScreenTarget(O){Fe(O)},get failoverHosts(){return j()},set failoverHosts(O){j(O)},get showMiniTimer(){return oe()},set showMiniTimer(O){oe(O)},get saveRate(){return Be()},set saveRate(O){Be(O)},get showAutoplayNext(){return Se()},set showAutoplayNext(O){Se(O)},get seekToInteractive(){return Je()},set seekToInteractive(O){Je(O)},get playPrevChapter(){return $e()},set playPrevChapter(O){$e(O)},get volumeMultiplier(){return ie()},set volumeMultiplier(O){ie(O)},get showEndScreen(){return Ee()},set showEndScreen(O){Ee(O)},get keyboardControls(){return Qe()},set keyboardControls(O){Qe(O)}});return o(),Dn}var y5=we('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Zv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=y5();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function Xv(t,e){let i=v(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Zv(t,{get style(){return r(o)}})}var x5=P('<div class="title svelte-1y9fytq"> </div>'),w5=P('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),S5={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 Jv(t,e){q(t,S5);var i=w5(),o=_(i);{var n=d=>{var a=x5(),u=_(a,!0);h(a),D(()=>ge(u,e.title)),$(d,a)};R(o,d=>{e.title&&d(n)})}var s=k(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);Xv(d,{get isWhite(){return r(a)}})};R(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),D(()=>at(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var C5=P('<div class="playerError svelte-m5iv29"><!></div>'),T5={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {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;}"};function eg(t){q(t,T5);var e=C5(),i=_(e);Ba(i,{}),h(e),$(t,e)}var vp=require("@vkontakte/videoplayer-shared/es2015"),Di=require("@vkontakte/videoplayer-shared/es2015"),Tc=require("@vkontakte/videoplayer-core/es2015"),Hl=require("@vkontakte/videoplayer-statistics/es2015");var rp=require("@vkontakte/videoplayer-shared/es2015"),np=class{constructor(){this.subscription=new rp.Subscription,this.logger=new rp.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,s)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=_e(e.state.currentPlaybackRate$),n=_e(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{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 Nl=require("@vkontakte/videoplayer-shared/es2015");var E5=we('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function tg(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=E5();ke(o,()=>K({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));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var I5=P('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),k5={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 ig(t,e){z(e,!0),q(t,k5);let[i,o]=He(),n=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=Te(),d=kt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,m=l.ui.t,p=g(()=>n()&&m("pip_dummy_title")),x=op(d.view);var y=I5();let w;var T=_(y);let C;var E=_(T);tg(E,{}),h(T);var V=k(T,2),I=_(V,!0);h(V),h(y),D((L,B)=>{w=se(y,1,"player-pip-dummy svelte-1pbsod4",null,w,L),at(y,x),C=se(T,1,"dummy-image svelte-1pbsod4",null,C,B),ge(I,r(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,y),W(),o()}var A5=Object.defineProperty,P5=(t,e,i)=>e in t?A5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ol=(t,e,i)=>P5(t,typeof e!="symbol"?e+"":e,i),og=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),L5=460,M5=280,hc=class{constructor({enabled:e=!0}={enabled:!0}){Ol(this,"playerDomElement"),Ol(this,"playerParentShadowRoot"),Ol(this,"playerDummyElement"),Ol(this,"svelteContext"),Ol(this,"pipWindow"),Ol(this,"info",{isActive$:new Nl.ValueSubject(!1),isEnabled$:new Nl.ValueSubject(!1),type:1}),this.info.isEnabled$=new Nl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Nl.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return og(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:L5,height:M5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
394
+ `),n=document.createElement("style");n.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Kr(ig,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(pa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return og(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return og(this,null,function*(){yield this.exit()})}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 t_(t){return t instanceof hc}var sp=class{static getLatestSupportedVersion(e){let i=new ya(e),o=new hc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function _c(t,e){var n,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(n=e[l])!=null?n:t[l])!=null?s:void 0;return o}var i_="Inner error. Unexpectedly root annotation container null reference exception",o_="Annotation with such name already exists",n_="Annotation with such name does not exist";var Bl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Dl=require("@vkontakte/videoplayer-shared/es2015"),V5="1",R5=100,ap=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Dl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Dl.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"},R5);this.subscriptions.add((0,Dl.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 Bl(i_);if(this.annotations.has(e))throw new Bl(o_);i.style.zIndex=(o=i.style.zIndex)!=null?o:V5,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 Bl(n_);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,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||s<0||s+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Ka=require("@vkontakte/videoplayer-shared/es2015"),ln=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Ka.assertNonNullable)(e),(0,Ka.assertNonNullable)(i),(0,Ka.assertNonNullable)(n),n.interactiveData&&(0,Ka.assertNonNullable)(o),this.subscription=new Ka.Subscription,this.subscription}};var bc=class extends ln{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Ut(K({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var $c=class extends ln{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Ut(K({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:s}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,m=_e(f),p=()=>m&&_e(u);return o.add(u.subscribe(x=>{if(!m)return;let y=_e(l);_e(a)?this.state$.set(x):y!==null&&this.state$.set(!y||x)})),o.add(a.subscribe(x=>{this.state$.set(!x||p())})),o.add(l.subscribe(x=>{if(x===null)return;let y=_e(d);if(p()){this.state$.set(!0);return}y&&this.state$.set(!x)})),o}};var yc=class extends ln{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var r_=require("@vkontakte/videoplayer-shared/es2015");var ng=ae(!1),lp=null,xc=class extends ln{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Ut(K({},ng),{set:(i,o=!1)=>{i!==_e(ng)&&(this.clearTimeout(),ng.set(i),!i&&lp&&(lp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(a.subscribe(m=>{_e(l)&&m&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,r_.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:p,interactiveTimeIndicator:x})=>{var y,w;if(!(!m||!(x!=null&&x.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&lp===null&&(lp=!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 dp=require("@vkontakte/videoplayer-shared/es2015");var wc=class extends ln{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Ut(K({},ae(null)),{toggle:dp.noop});this.checkIfShouldHide=i=>Zs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:s}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>Ct(this,null,function*(){if(this.checkIfShouldHide(_e(l)))return;let a=_e(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:m}=n.ui.controls,p=_e(u),x=_e(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),m.remove(xf),!p&&this.graphMadePause&&n.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=x==="playing";try{yield s==null?void 0:s.toggleGraphView(!0),this.state$.set(!0),m.add(xf),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,dp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>Ct(this,[f],function*({graphIsOpened:a,currentGridType:u}){if(this.checkIfShouldHide(u)&&a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};var rg=require("@vkontakte/videoplayer-shared/es2015"),Sc=class extends ln{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new rg.ValueSubject(!1),isEnabled$:new rg.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var up=require("@vkontakte/videoplayer-shared/es2015");var cp=require("@vkontakte/videoplayer-shared/es2015");var s_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?O5({maxCount:t}):void 0,e!==0?N5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},O5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,cp.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}}},N5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(cp.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>cp.safeStorage.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(Ut(K({},i()),{[s]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&n(s),d}else return!0}}};var Cc=class extends ln{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=s_({maxShowCount:s,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,up.filterChanged)(),(0,up.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var a_=()=>[bc,$c,yc,xc,wc,Sc,Cc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Ut(K({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var Fl=require("@vkontakte/videoplayer-shared/es2015");var pp=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var B5=P('<div class="root svelte-9ubj1t"><!></div>'),D5={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function sg(t,e){z(e,!0),q(t,D5);let i=null,o=J(null);qe(()=>(r(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function n(a){e.playbackStatusShow&&N(o,a?"prev":"next",!0)}var s=Ue(),l=me(s);{var d=a=>{var u=Ue(),f=me(u);ys(f,()=>r(o),m=>{var p=B5(),x=_(p);let y=g(()=>r(o)==="prev");gc(x,{get duration(){return e.animationDuration},get Icon(){return Jd},get isPrev(){return r(y)}}),h(p),$(m,p)}),$(a,u)};R(l,a=>{e.playbackStatusShow&&r(o)&&a(d)})}return $(t,s),W({startVideoChangedAnimation:n})}var F5=Object.defineProperty,H5=Object.defineProperties,U5=Object.getOwnPropertyDescriptors,l_=Object.getOwnPropertySymbols,z5=Object.prototype.hasOwnProperty,W5=Object.prototype.propertyIsEnumerable,lg=(t,e,i)=>e in t?F5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ps=(t,e)=>{for(var i in e||(e={}))z5.call(e,i)&&lg(t,i,e[i]);if(l_)for(var i of l_(e))W5.call(e,i)&&lg(t,i,e[i]);return t},K5=(t,e)=>H5(t,U5(e)),qt=(t,e,i)=>lg(t,typeof e!="symbol"?e+"":e,i),fp=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),q5={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Di.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Tc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Bn=J(void 0),ag=ii({animationDuration:0,playbackStatusShow:!1}),mp=class extends HTMLElement{constructor(){super(),qt(this,"svelteStubComponent"),qt(this,"svelteRootComponent"),qt(this,"sveltePersistentLayerComponent"),qt(this,"svelteErrorComponent"),qt(this,"store"),qt(this,"microStoresRoot"),qt(this,"statistics"),qt(this,"sentry"),qt(this,"_shadowRoot"),qt(this,"playerContainer"),qt(this,"rootContainer"),qt(this,"shadowRootContainer"),qt(this,"playerId"),qt(this,"uiConfig"),qt(this,"coreConfig"),qt(this,"statisticsConfig"),qt(this,"interactiveController"),qt(this,"interactiveContainer"),qt(this,"graphMadePause"),qt(this,"currentPlayingVideoIndex",0),qt(this,"needToRepeatPlaylist",!1),qt(this,"videoConfig"),qt(this,"pictureInPictureApi"),qt(this,"mediaSessionApi"),qt(this,"unsubscribePlayerPhaseSubscription"),qt(this,"logger"),qt(this,"log"),qt(this,"subscription"),qt(this,"interactiveSubscription"),qt(this,"annotationsApi"),qt(this,"slotsApi"),qt(this,"focusManager"),qt(this,"prevIsid"),qt(this,"isInited",!1),qt(this,"internalsExposure",null),qt(this,"shadowDOMCallbacksDisabled",!1),qt(this,"fatalError$",new vp.ValueSubject(null)),qt(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:m,refreshStatAuthToken:p,autoplay:x,isMobile:y,isTouch:w,refDomain:T,deviceId:C,interactiveData:E}=_c(this.videoConfig,i),V=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,I=(s=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?s:!1;I&&(this.prevIsid=void 0);let{unitedVideoId:L,isClip:B=!1}=e;if(this.uiConfig.features.statistics&&L)try{return new Hl.OneStat(Ps({movieId:L,albumId:d,place:a,trackCode:f,vkAppId:m,autoplay:(l=x&&!this.interactiveController)!=null?l:!1,mobile:w!=null?w:y,clip:B,refDomain:T,deviceId:C,isPreviewPlayerView:this.videoConfig.playerView==="preview"},V&&(!this.isInited||I)&&{projectId:Number(V)}),Ps({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(H){console.error(H),this.log({message:H.message})}}),Fl.devNull.create("ui"),this.logger=new Di.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Di.Subscription,this.interactiveSubscription=new Di.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Kr(eg,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)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,s=ii({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Kr(Jv,l),this.sveltePersistentLayerComponent=Kr(sg,{target:this.playerContainer,props:ag})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;ag.animationDuration=e,ag.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,n,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Fl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:s}=_c(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Hl.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:n,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var n,s,l,d,a,u,f,m,p,x;if(!this.videoConfig)return;let{albumId:y,statPlace:w,statAuthToken:T,preload:C,autoplay:E,volume:V,muted:I,fromTime:L,canRewindLive:B,supportLink:F,showAds:H,adsSlotId:U,adsParams:Z={},adsAutoplayParam:re,interfaceLanguage:G,isCyrillicRelatedInterface:be,logoClickable:ee,logoHidden:pe,isMobile:ve,isTouch:ue,isAudioDisabled:Me,isLiveCatchUpMode:Oe,fullScreenTarget:le,failoverHosts:De,canDownload:X,callbacks:M,interactiveData:st,showThumbTimer:Fe,additionalButtons:j=[],additionalSettingsMenuItems:oe=[],additionalContextMenuItems:Be=[],repeat:Je,loop:$e,saveRate:ie,volumeMultiplier:Se,showEndScreen:Ee,showAutoplayNext:Qe,mediascopePixels:tt}=_c(this.videoConfig,i),{sources:gt,title:dt,thumbUrl:ht,unitedVideoId:it,isClip:Wt=!1,duration:Yt,adsParams:ei={},videoEpisodes:Zt,previewThumbsData:Ae,subtitles:Ft,subtitlesForcedLanguage:Ce,live:Ie}=e;if(!gt&&!Ie){let ti=new Error("empty sources and live");this.fatalError$.next(ti),(n=M.onCrashed)==null||n.call(M,ti.message);return}let ce=Ps(Ps({},Z),ei),Ke=this.getNextVideoInfo(),fe={sources:gt,title:dt,thumbUrl:ht,subtitles:Ft,subtitlesForcedLanguage:Ce,unitedVideoId:it,isClip:Wt,live:Ie,albumId:y,statPlace:w,autoplay:E,muted:I,volume:V,fromTime:L,canRewindLive:B,showAds:H,adsSlotId:U,adsParams:ce,adsAutoplayParam:re,duration:Yt,logoClickable:ee,logoHidden:pe,isTouch:ue!=null?ue:ve,repeat:Je,loop:$e,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ke.nextVideoTitle,endScreenVideoThumb:Ke.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ve={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(fe)}`});let Ne=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),ye=(Ne==null?void 0:Ne.oneStat)||this.createOneStat(e,i),Ye=this.createThinOneStat(e,i),yt;tt&&(yt=new Hl.MediascopePixel({pixels:tt})),(ye||Ye)&&(this.statistics=new zu(ye,Ye,yt,Ne==null?void 0:Ne.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new $a(this.uiConfig.sentry,{version:ha,env:mu},{movieId:it,albumId:y,place:w,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:ue!=null?ue:ve,clip:Wt}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry=Ps(Ps({},this.sentry),$a.getInstance());let Lt=!!st,_i=[],ni="tooltip_interactive_go_back_disabled_first";if(Lt&&this.interactiveController){let ti=this.interactiveController.state.isInitialChapter$.getValue(),ui=this.interactiveController.getHistoryState();ti&&_i.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||_i.push("SEEK_TO_INTERACTIVE_BUTTON"),ui.hasPrevChapter$.getValue()||(_i.push("PLAY_PREV_CHAPTER_BUTTON"),ti||(ui.isGoBackLimited$.getValue()?ni="tooltip_interactive_go_back_disabled_limit":ni="tooltip_interactive_go_back_disabled"))}let bi=()=>{var ti;this.isInited=!1,this.prevIsid=void 0;let ui=(o==null?void 0:o.info.isEnded$.getValue())&&((ti=this.interactiveController)==null?void 0:ti.state.isEndChapter$.getValue());M.onReplayInteractiveVideo&&!ui?M.onReplayInteractiveVideo():this.replayInteractiveVideo()},Fi=Je&&this.videoConfig.videos.length===1;this.store=S0({player:o,interfaceLanguage:G,isCyrillicRelatedInterface:be,videoId:it,isClip:Wt,isLiveCatchUpMode:Oe,isAudioDisabled:Me,statAuthToken:T,callbacks:M,webApi:Ve,videoEpisodes:Zt,previewThumbsData:Ae,canDownload:X,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:_i,isInteractive:Lt,saveRate:ie,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:bi,playPrevChapterDisabledTooltip:ni,hasInteractiveBranches:!!((x=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&x.length),additionalButtons:this.uiConfig.features.additionalButtons?j:[],additionalSettingsMenuItems:oe!=null?oe:[],additionalContextMenuItems:Be!=null?Be:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ti=>{var ui;return(ui=this.sveltePersistentLayerComponent)==null?void 0:ui.startVideoChangedAnimation(ti)},looped:this.uiConfig.features.useLoopSetting?$e:Fi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:ho}=this.microStoresRoot=a_(),At=()=>{var ti,ui,_t,pt,Jt,Ii;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Mt=>{var lt;return(lt=M==null?void 0:M.onCurrentFormatChanged)==null?void 0:lt.call(M,Mt)})),this.subscription.add(ho.interactiveControlsOpacity$.subscribe(Mt=>{var lt;Mt!==null&&((lt=this==null?void 0:this.interactiveController)==null||lt.setDisabledControls(Mt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Mt=>{var lt;return(lt=M==null?void 0:M.onThroughputEstimationChanged)==null?void 0:lt.call(M,Mt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Mt=>{var lt;return(lt=M==null?void 0:M.onTrafficSavingEnabledChanged)==null?void 0:lt.call(M,Mt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Mt=>{var lt;return(lt=M==null?void 0:M.onHighQualityEnabledChanged)==null?void 0:lt.call(M,Mt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Mt=>{var lt;return(lt=M==null?void 0:M.onAutoQualityEnabledChanged)==null?void 0:lt.call(M,!!Mt)})),this.subscription.add(new Di.Observable(Mt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(lt=>Mt.next(lt)))}).pipe((0,Di.skip)(1)).subscribe(Mt=>{var lt;return(lt=M==null?void 0:M.onCurrentPlaybackRateChanged)==null?void 0:lt.call(M,Mt)})),this.subscription.add(this.store.state.volume$.subscribe(Mt=>{var lt;return(lt=M==null?void 0:M.onVolumeChange)==null?void 0:lt.call(M,Mt)})),this.subscription.add(this.store.state.muted$.subscribe(Mt=>{var lt,Ot,Eo,Io;if(Mt)(lt=M==null?void 0:M.onMute)==null||lt.call(M);else{let jo=(Eo=((Ot=this.store)==null?void 0:Ot.state.volume$)&&_e(this.store.state.volume$))!=null?Eo:0;(Io=M==null?void 0:M.onUnmute)==null||Io.call(M,jo)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Mt=>{var lt;return(lt=M==null?void 0:M.onVideoBitrateChanged)==null?void 0:lt.call(M,Mt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Mt=>{var lt;let Ot=(lt=this.store)==null?void 0:lt.ui.controls.disabledControls$;Ot&&(Mt&&!Ot.includes(xd)&&Ot.add(xd),Mt||Ot.remove(xd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Mt=>fp(this,null,function*(){var lt;if(!Tc.clientChecker.browser.isSamsungBrowser||!Mt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((lt=this.videoConfig)==null?void 0:lt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Mt=>{var lt;return(lt=M==null?void 0:M.onVSIDChanged)==null?void 0:lt.call(M,Mt)})),this.initMediaSession(),N(Bn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:gt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:dt,thumbUrl:ht,subtitles:Ft,subtitlesForcedLanguage:Ce,live:Ie,preload:C,autoplay:E,muted:I,volume:V,fromTime:L,canRewindLive:B,supportLink:F,showAds:H,adsSlotId:U,adsParams:ce,adsAutoplayParam:re,duration:Yt,logoClickable:ee,logoHidden:pe,isMobile:ue!=null?ue:ve,failoverHosts:De,fullScreenTarget:le,saveRate:ie,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Fe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ke.nextVideoTitle,endScreenVideoThumb:Ke.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Se,showEndScreen:Ee,showAutoplayNext:Qe},!0);let Go={target:this.playerContainer,props:r(Bn)};this.svelteRootComponent=Kr(Yv,Go),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(_t=(ui=(ti=this.videoConfig)==null?void 0:ti.callbacks)==null?void 0:ui.onInited)==null||_t.call(ui)),(pt=this.internalsExposure)==null||pt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ii=(Jt=this.videoConfig)==null?void 0:Jt.callbacks)!=null&&Ii.onDevNullLog)?Fl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Fl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Tc.clientChecker.isInited$.subscribe(ti=>{ti&&(console.log("UI SDK async start"),At())}):At()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,Di.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return fp(this,null,function*(){var e,i,o,n,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?_e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:m,historyApi:p,videoLoader:x}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:m,historyApi:p,vkVideoLoader:x,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:y,isSeekable$:w}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(w.subscribe(C=>{if(!this.isInited)return;let E=this.store;C?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(C=>{this.store&&this.store.state.isInteractiveExpectation$.set(C)}));let T=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(C=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=K5(Ps({},C.config),{title:(f==null?void 0:f.title)||C.config.title});let E=T?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(C.player,E),T&&(T=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:C,actionType:E})=>{var V,I,L,B,F,H;if(!this.store||!this.microStoresRoot)return;let U=y.getValue();if(C==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(wd)),C==="action-choice-canceled"){let Z=_e(this.store.state.isPlaying$)||U;if(((L=(V=this.videoConfig)==null?void 0:V.isTouch)!=null?L:(I=this.videoConfig)!=null&&I.isMobile)&&Z){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(B=this.videoConfig)==null?void 0:(F=B.callbacks).onDisabledInteractiveClick)==null||H.call(F)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:C,removeAllOpenURI:E})=>{this.store&&C==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(wd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let C=this.interactiveController.getHistoryState();this.subscription.add(C.history$.subscribe(E=>{var V,I,L;E.length&&((L=(I=(V=this.videoConfig)==null?void 0:V.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||L.call(I,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(C=>{var E,V,I;(I=(E=this.videoConfig)==null?void 0:(V=E.callbacks).onInteractiveChapterChanged)==null||I.call(V,C.chapter,C.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var C,E,V,I;(C=this.microStoresRoot)==null||C.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(E=this.videoConfig)==null?void 0:(V=E.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(V)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(C=>{this.log({message:C.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,n,s,l,d,a,u,f,m,p,x,y,w,T,C,E,V,I,L,B,F,H,U,Z,re,G,be,ee;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let pe=new Error("empty videos");this.fatalError$.next(pe),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,pe.message);return}else this.fatalError$.next(null);if(this.videoConfig=_c(q5,(0,Di.cloneDeepWith)(e,pe=>pe instanceof HTMLElement?pe:void 0)),this.playerId=(0,Di.getPlayerId)(e.playerId),this.uiConfig=t1((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Di.InternalsExposure("ui",this.playerId))),Fl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,vp.now)()]}),(0,Di.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),(0,Di.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=(x=this.uiConfig.features.pip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0,this.uiConfig.features.dpip=(T=(w=this.uiConfig.features.dpip)!=null?w:this.videoConfig.isPictureInPictureEnabled)!=null?T:!0),this.uiConfig.ads.paramsOverride=Ps({preview:(C=this.uiConfig.ads.preview)!=null?C:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(V=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?V:this.videoConfig.isMobile,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(L=this.uiConfig.ads.enable)!=null?L:this.videoConfig.showAds,this.videoConfig.adsSlotId=(B=this.uiConfig.ads.slot)!=null?B:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((F=this.uiConfig.showLogo)!=null?F:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(U=this.videoConfig.supportLink)!=null?U:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Z=this.uiConfig.features.endScreen)!=null?Z:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(re=this.uiConfig.features.autoplayNext)!=null?re:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(G=this.uiConfig.features.nextPrevButtons)!=null?G:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((be=this.videoConfig.videos)!=null&&be[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let pe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=sp.getLatestSupportedVersion(pe):this.pictureInPictureApi=new ya(pe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new np:void 0,this.slotsApi=this.uiConfig.features.slots?new ep:void 0,this.annotationsApi=this.uiConfig.features.annotations?new ap(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),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]),t_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(ee=this.slotsApi)==null||ee.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new pp(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(Bn)&&(r(Bn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Bn).nextButtonActive=this.isNextButtonActive(),r(Bn).prevButtonActive=this.isPrevButtonActive(),r(Bn).endScreenVideoTitle=o.nextVideoTitle,r(Bn).endScreenVideoThumb=o.nextVideoThumb,r(Bn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=Ps({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(Bn)&&(r(Bn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Bn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Bn).nextButtonActive=this.isNextButtonActive(),r(Bn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return fp(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;let n=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${n}`}),n||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||n(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return fp(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=_e(this.store.state.positionExact$),l=_e(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Di.once)()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&pa(e)}};var Ul=require("@vkontakte/videoplayer-shared/es2015"),gp=require("@vkontakte/videoplayer-core/es2015"),Q5=()=>{window.customElements.define("vk-video-player",mp)};