@vkontakte/videoplayer 1.1.72-dev.752fa0a9.0 → 1.1.72-dev.95df362c.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/esnext.cjs.js CHANGED
@@ -1,59 +1,59 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.72-dev.752fa0a9.0
3
- * Mon, 22 Sep 2025 10:11:23 GMT
2
+ * @vkontakte/videoplayer v1.1.72-dev.95df362c.0
3
+ * Tue, 23 Sep 2025 09:42:39 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-72/doc/
5
5
  */
6
- "use strict";var x0=Object.create;var _c=Object.defineProperty;var w0=Object.getOwnPropertyDescriptor;var S0=Object.getOwnPropertyNames;var C0=Object.getPrototypeOf,T0=Object.prototype.hasOwnProperty;var k0=(t,e)=>{for(var i in e)_c(t,i,{get:e[i],enumerable:!0})},Ov=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of S0(e))!T0.call(t,r)&&r!==i&&_c(t,r,{get:()=>e[r],enumerable:!(o=w0(e,r))||o.enumerable});return t};var Bv=(t,e,i)=>(i=t!=null?x0(C0(t)):{},Ov(e||!t||!t.__esModule?_c(i,"default",{value:t,enumerable:!0}):i,t)),I0=t=>Ov(_c({},"__esModule",{value:!0}),t);var Ux={};k0(Ux,{ControlButtonType:()=>Md,GridTypes:()=>Mr,InterfaceLanguage:()=>Cl.InterfaceLanguage,MenuItemType:()=>ll,PlayerPhase:()=>Jr,VERSION:()=>oa,VKNumericLanguage:()=>Cl.VKNumericLanguage,VideoFormat:()=>Gu.VideoFormat,VideoQuality:()=>Gu.VideoQuality,loadVKLangPack:()=>Cl.loadVKLangPack,registerPlayerWebComponent:()=>Fx});module.exports=I0(Ux);var ys="[",xs="[!",Ds="]",Kr={};var Mi=Symbol(),gn=Symbol("filename"),Dv=Symbol("hmr"),Hv="http://www.w3.org/1999/xhtml",bc="http://www.w3.org/2000/svg";var lp="@attach";var $c=!0;var Fv=globalThis.process?.env?.NODE_ENV,ke=Fv&&!Fv.toLowerCase().startsWith("prod");var Hn=Array.isArray,Uv=Array.prototype.indexOf,Al=Array.from,dp=Object.keys,zi=Object.defineProperty,Mo=Object.getOwnPropertyDescriptor,yc=Object.getOwnPropertyDescriptors,cp=Object.prototype,zv=Array.prototype,Hs=Object.getPrototypeOf,up=Object.isExtensible;function ws(t){return typeof t=="function"}var oe=()=>{};function Wv(t){return t()}function Ss(t){for(var e=0;e<t.length;e++)t[e]()}var $o=Symbol("$state"),La=Symbol("legacy props"),Kv=Symbol(""),xc=Symbol("proxy path"),wc=1,Va=3,Fn=8;function Sc(t){return t===this.v}function Ra(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function qv(t,e){return t!==e}function Na(t){return!Ra(t,this.v)}function Qv(){if(ke){let t=new Error(`derived_references_self
6
+ "use strict";var g0=Object.create;var fc=Object.defineProperty;var h0=Object.getOwnPropertyDescriptor;var _0=Object.getOwnPropertyNames;var b0=Object.getPrototypeOf,$0=Object.prototype.hasOwnProperty;var y0=(t,e)=>{for(var i in e)fc(t,i,{get:e[i],enumerable:!0})},kv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of _0(e))!$0.call(t,r)&&r!==i&&fc(t,r,{get:()=>e[r],enumerable:!(o=h0(e,r))||o.enumerable});return t};var Iv=(t,e,i)=>(i=t!=null?g0(b0(t)):{},kv(e||!t||!t.__esModule?fc(i,"default",{value:t,enumerable:!0}):i,t)),x0=t=>kv(fc({},"__esModule",{value:!0}),t);var Lx={};y0(Lx,{ControlButtonType:()=>Id,GridTypes:()=>Mr,InterfaceLanguage:()=>Cl.InterfaceLanguage,MenuItemType:()=>ll,PlayerPhase:()=>Jr,VERSION:()=>na,VKNumericLanguage:()=>Cl.VKNumericLanguage,VideoFormat:()=>zu.VideoFormat,VideoQuality:()=>zu.VideoQuality,loadVKLangPack:()=>Cl.loadVKLangPack,registerPlayerWebComponent:()=>Mx});module.exports=x0(Lx);var $s="[",ys="[!",Hs="]",Kr={};var Ii=Symbol(),bn=Symbol("filename"),Ev=Symbol("hmr"),Pv="http://www.w3.org/1999/xhtml",mc="http://www.w3.org/2000/svg";var ep="@attach";var vc=!0;var Av=globalThis.process?.env?.NODE_ENV,ke=Av&&!Av.toLowerCase().startsWith("prod");var Hn=Array.isArray,Mv=Array.prototype.indexOf,kl=Array.from,tp=Object.keys,Hi=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,gc=Object.getOwnPropertyDescriptors,ip=Object.prototype,Lv=Array.prototype,Fs=Object.getPrototypeOf,op=Object.isExtensible;function xs(t){return typeof t=="function"}var ne=()=>{};function Vv(t){return t()}function ws(t){for(var e=0;e<t.length;e++)t[e]()}var vo=Symbol("$state"),La=Symbol("legacy props"),Rv=Symbol(""),hc=Symbol("proxy path"),_c=1,Va=3,Fn=8;function bc(t){return t===this.v}function Ra(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Nv(t,e){return t!==e}function Na(t){return!Ra(t,this.v)}function Bv(){if(ke){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 Gv(t){if(ke){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 Ov(t){if(ke){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 jv(){if(ke){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 Yv(t){if(ke){let e=new Error(`effect_orphan
10
+ https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Dv(){if(ke){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 Hv(t){if(ke){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 Zv(){if(ke){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 Fv(){if(ke){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 Xv(){if(ke){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 Uv(){if(ke){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 Jv(){if(ke){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 eg(t){if(ke){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 zv(){if(ke){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 Wv(t){if(ke){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 tg(t){if(ke){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 Kv(t){if(ke){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 ig(t){if(ke){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 qv(t){if(ke){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 og(){if(ke){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 ng(){if(ke){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 rg(){if(ke){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 qr=!1,Qr=!1;function sg(){qr=!0}var Ml=null;function ss(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 Qv(){if(ke){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 Gv(){if(ke){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 jv(){if(ke){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 qr=!1,Qr=!1;function Yv(){qr=!0}var Il=null;function ss(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),r=[`
24
- `];for(let s=0;s<o.length;s++){let a=o[s];if(a!=="Error"){if(a.includes("validate_each_keys"))return null;a.includes("svelte/src/internal")||r.push(a)}}if(r.length===1)return null;zi(e,"stack",{value:r.join(`
25
- `)}),zi(e,"name",{value:`${t}Error`})}return e}function Cr(t,e){return t.label=e,Cc(t.v,e),t}function Cc(t,e){return t?.[xc]?.(e),t}function Oa(t){if(ke){let e=new Error(`lifecycle_outside_component
24
+ `];for(let s=0;s<o.length;s++){let a=o[s];if(a!=="Error"){if(a.includes("validate_each_keys"))return null;a.includes("svelte/src/internal")||r.push(a)}}if(r.length===1)return null;Hi(e,"stack",{value:r.join(`
25
+ `)}),Hi(e,"name",{value:`${t}Error`})}return e}function Cr(t,e){return t.label=e,$c(t.v,e),t}function $c(t,e){return t?.[hc]?.(e),t}function Ba(t){if(ke){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 Lt=null;function Ll(t){Lt=t}var Un=null;function Vl(t){Un=t}function Ba(t){return mp("getContext").get(t)}function Da(t,e){return mp("setContext").set(t,e),e}function Rl(){return mp("getAllContexts")}function F(t,e=!1,i){var o=Lt={p:Lt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};qr&&!e&&(Lt.l={s:null,u:null,r1:[],r2:sr(!1)}),yo(()=>{o.d=!0}),ke&&(Lt.function=i,Un=i)}function U(t){let e=Lt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=ft,o=St;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];Wi(s.effect),xi(s.reaction),co(s.fn)}}finally{Wi(i),xi(o)}}Lt=e.p,ke&&(Un=e.p?.function??null),e.m=!0}return t||{}}function Gr(){return!qr||Lt!==null&&Lt.l===null}function mp(t){return Lt===null&&Oa(t),Lt.c??=new Map(P0(Lt)||void 0)}function P0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var A0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Xt(t){if(typeof t!="object"||t===null||$o in t)return t;let e=Hs(t);if(e!==cp&&e!==zv)return t;var i=new Map,o=Hn(t),r=G(0),s=ke&&Qr?ss("CreatedAt"):null,a=St,l=p=>{var g=St;xi(a);var u=p();return xi(g),u};o&&i.set("length",G(t.length,s));var d="";function f(p){d=p,Cr(r,`${d} version`);for(let[g,u]of i)Cr(u,Fs(d,g))}return new Proxy(t,{defineProperty(p,g,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&og();var y=i.get(g);return y===void 0?y=l(()=>{var x=G(u.value,s);return i.set(g,x),ke&&typeof g=="string"&&Cr(x,Fs(d,g)),x}):N(y,u.value,!0),!0},deleteProperty(p,g){var u=i.get(g);if(u===void 0){if(g in p){let w=l(()=>G(Mi,s));i.set(g,w),vp(r),ke&&Cr(w,Fs(d,g))}}else{if(o&&typeof g=="string"){var y=i.get("length"),x=Number(g);Number.isInteger(x)&&x<y.v&&N(y,x)}N(u,Mi),vp(r)}return!0},get(p,g,u){if(g===$o)return t;if(ke&&g===xc)return f;var y=i.get(g),x=g in p;if(y===void 0&&(!x||Mo(p,g)?.writable)&&(y=l(()=>{var S=Xt(x?p[g]:Mi),T=G(S,s);return ke&&Cr(T,Fs(d,g)),T}),i.set(g,y)),y!==void 0){var w=n(y);return w===Mi?void 0:w}return Reflect.get(p,g,u)},getOwnPropertyDescriptor(p,g){var u=Reflect.getOwnPropertyDescriptor(p,g);if(u&&"value"in u){var y=i.get(g);y&&(u.value=n(y))}else if(u===void 0){var x=i.get(g),w=x?.v;if(x!==void 0&&w!==Mi)return{enumerable:!0,configurable:!0,value:w,writable:!0}}return u},has(p,g){if(g===$o)return!0;var u=i.get(g),y=u!==void 0&&u.v!==Mi||Reflect.has(p,g);if(u!==void 0||ft!==null&&(!y||Mo(p,g)?.writable)){u===void 0&&(u=l(()=>{var w=y?Xt(p[g]):Mi,S=G(w,s);return ke&&Cr(S,Fs(d,g)),S}),i.set(g,u));var x=n(u);if(x===Mi)return!1}return y},set(p,g,u,y){var x=i.get(g),w=g in p;if(o&&g==="length")for(var S=u;S<x.v;S+=1){var T=i.get(S+"");T!==void 0?N(T,Mi):S in p&&(T=l(()=>G(Mi,s)),i.set(S+"",T),ke&&Cr(T,Fs(d,S)))}if(x===void 0)(!w||Mo(p,g)?.writable)&&(x=l(()=>G(void 0,s)),N(x,Xt(u)),i.set(g,x),ke&&Cr(x,Fs(d,g)));else{w=x.v!==Mi;var k=l(()=>Xt(u));N(x,k)}var V=Reflect.getOwnPropertyDescriptor(p,g);if(V?.set&&V.set.call(y,u),!w){if(o&&typeof g=="string"){var A=i.get("length"),L=Number(g);Number.isInteger(L)&&L>=A.v&&N(A,L+1)}vp(r)}return!0},ownKeys(p){n(r);var g=Reflect.ownKeys(p).filter(x=>{var w=i.get(x);return w===void 0||w.v!==Mi});for(var[u,y]of i)y.v!==Mi&&!(u in p)&&g.push(u);return g},setPrototypeOf(){ng()}})}function Fs(t,e){return typeof e=="symbol"?`${t}[Symbol(${e.description??""})]`:A0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function vp(t,e=1){N(t,t.v+e)}function Ha(t){try{if(t!==null&&typeof t=="object"&&$o in t)return t[$o]}catch{}return t}function gp(t,e){return Object.is(Ha(t),Ha(e))}function Tr(t){var e=2050,i=St!==null&&(St.f&2)!==0?St:null;ft===null||i!==null&&(i.f&256)!==0?e|=256:ft.f|=1048576;let o={ctx:Lt,deps:null,effects:null,equals:Sc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i??ft};return ke&&Qr&&(o.created=ss("CreatedAt")),o}function v(t){let e=Tr(t);return Ic(e),e}function kr(t){let e=Tr(t);return e.equals=Na,e}function Tc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)wi(e[i])}}var hp=[];function M0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function $p(t){var e,i=ft;if(Wi(M0(t)),ke){let o=Us;_p(new Set);try{hp.includes(t)&&Qv(),hp.push(t),Tc(t),e=kc(t)}finally{Wi(i),_p(o),hp.pop()}}else try{Tc(t),e=kc(t)}finally{Wi(i)}return e}function yp(t){var e=$p(t);if(t.equals(e)||(t.v=e,t.wv=Nl()),!as){var i=(ls||(t.f&256)!==0)&&t.deps!==null?4096:1024;Go(t,i)}}var Us=new Set,Fa=new Map;function _p(t){Us=t}function sr(t,e){var i={f:0,v:t,reactions:null,equals:Sc,rv:0,wv:0};return ke&&Qr&&(i.created=e??ss("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function G(t,e){let i=sr(t,e);return Ic(i),i}function jr(t,e=!1,i=!0){let o=sr(t);return e||(o.equals=Na),qr&&i&&Lt!==null&&Lt.l!==null&&(Lt.l.s??=[]).push(o),o}function N(t,e,i=!1){St!==null&&(!qn||(St.f&262144)!==0)&&Gr()&&(St.f&262162)!==0&&!(Wn?.[1].includes(t)&&Wn[0]===St)&&rg();let o=i?Xt(e):e;return ke&&Cc(o,t.label),Ua(t,o)}function Ua(t,e){if(!t.equals(e)){var i=t.v;if(as?Fa.set(t,e):Fa.set(t,i),t.v=e,ke&&Qr&&(t.updated=ss("UpdatedAt"),ft!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&$p(t),Go(t,(t.f&256)===0?1024:4096)),t.wv=Nl(),lg(t,2048),Gr()&&ft!==null&&(ft.f&1024)!==0&&(ft.f&96)===0&&(Kn===null?dg([t]):Kn.push(t)),ke&&Us.size>0){let o=Array.from(Us);for(let r of o)(r.f&1024)!==0&&Go(r,4096),Ws(r)&&za(r);Us.clear()}}return e}function lg(t,e){var i=t.reactions;if(i!==null)for(var o=Gr(),r=i.length,s=0;s<r;s++){var a=i[s],l=a.f;if((l&2048)===0&&!(!o&&a===ft)){if(ke&&(l&262144)!==0){Us.add(a);continue}Go(a,e),(l&1280)!==0&&((l&2)!==0?lg(a,4096):Bl(a))}}}var Wa="font-weight: bold",Ka="font-weight: normal";function cg(t,e,i){ke?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 Rt=null;function El(t){Rt=t}var Un=null;function Pl(t){Un=t}function Oa(t){return sp("getContext").get(t)}function Da(t,e){return sp("setContext").set(t,e),e}function Al(){return sp("getAllContexts")}function F(t,e=!1,i){var o=Rt={p:Rt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};qr&&!e&&(Rt.l={s:null,u:null,r1:[],r2:dr(!1)}),go(()=>{o.d=!0}),ke&&(Rt.function=i,Un=i)}function U(t){let e=Rt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=mt,o=St;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];Fi(s.effect),bi(s.reaction),so(s.fn)}}finally{Fi(i),bi(o)}}Rt=e.p,ke&&(Un=e.p?.function??null),e.m=!0}return t||{}}function Gr(){return!qr||Rt!==null&&Rt.l===null}function sp(t){return Rt===null&&Ba(t),Rt.c??=new Map(S0(Rt)||void 0)}function S0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var C0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function qt(t){if(typeof t!="object"||t===null||vo in t)return t;let e=Fs(t);if(e!==ip&&e!==Lv)return t;var i=new Map,o=Hn(t),r=Q(0),s=ke&&Qr?ss("CreatedAt"):null,a=St,l=p=>{var g=St;bi(a);var u=p();return bi(g),u};o&&i.set("length",Q(t.length,s));var d="";function f(p){d=p,Cr(r,`${d} version`);for(let[g,u]of i)Cr(u,Us(d,g))}return new Proxy(t,{defineProperty(p,g,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Qv();var y=i.get(g);return y===void 0?y=l(()=>{var x=Q(u.value,s);return i.set(g,x),ke&&typeof g=="string"&&Cr(x,Us(d,g)),x}):V(y,u.value,!0),!0},deleteProperty(p,g){var u=i.get(g);if(u===void 0){if(g in p){let w=l(()=>Q(Ii,s));i.set(g,w),ap(r),ke&&Cr(w,Us(d,g))}}else{if(o&&typeof g=="string"){var y=i.get("length"),x=Number(g);Number.isInteger(x)&&x<y.v&&V(y,x)}V(u,Ii),ap(r)}return!0},get(p,g,u){if(g===vo)return t;if(ke&&g===hc)return f;var y=i.get(g),x=g in p;if(y===void 0&&(!x||Lo(p,g)?.writable)&&(y=l(()=>{var S=qt(x?p[g]:Ii),T=Q(S,s);return ke&&Cr(T,Us(d,g)),T}),i.set(g,y)),y!==void 0){var w=n(y);return w===Ii?void 0:w}return Reflect.get(p,g,u)},getOwnPropertyDescriptor(p,g){var u=Reflect.getOwnPropertyDescriptor(p,g);if(u&&"value"in u){var y=i.get(g);y&&(u.value=n(y))}else if(u===void 0){var x=i.get(g),w=x?.v;if(x!==void 0&&w!==Ii)return{enumerable:!0,configurable:!0,value:w,writable:!0}}return u},has(p,g){if(g===vo)return!0;var u=i.get(g),y=u!==void 0&&u.v!==Ii||Reflect.has(p,g);if(u!==void 0||mt!==null&&(!y||Lo(p,g)?.writable)){u===void 0&&(u=l(()=>{var w=y?qt(p[g]):Ii,S=Q(w,s);return ke&&Cr(S,Us(d,g)),S}),i.set(g,u));var x=n(u);if(x===Ii)return!1}return y},set(p,g,u,y){var x=i.get(g),w=g in p;if(o&&g==="length")for(var S=u;S<x.v;S+=1){var T=i.get(S+"");T!==void 0?V(T,Ii):S in p&&(T=l(()=>Q(Ii,s)),i.set(S+"",T),ke&&Cr(T,Us(d,S)))}if(x===void 0)(!w||Lo(p,g)?.writable)&&(x=l(()=>Q(void 0,s)),V(x,qt(u)),i.set(g,x),ke&&Cr(x,Us(d,g)));else{w=x.v!==Ii;var k=l(()=>qt(u));V(x,k)}var L=Reflect.getOwnPropertyDescriptor(p,g);if(L?.set&&L.set.call(y,u),!w){if(o&&typeof g=="string"){var A=i.get("length"),I=Number(g);Number.isInteger(I)&&I>=A.v&&V(A,I+1)}ap(r)}return!0},ownKeys(p){n(r);var g=Reflect.ownKeys(p).filter(x=>{var w=i.get(x);return w===void 0||w.v!==Ii});for(var[u,y]of i)y.v!==Ii&&!(u in p)&&g.push(u);return g},setPrototypeOf(){Gv()}})}function Us(t,e){return typeof e=="symbol"?`${t}[Symbol(${e.description??""})]`:C0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function ap(t,e=1){V(t,t.v+e)}function Ha(t){try{if(t!==null&&typeof t=="object"&&vo in t)return t[vo]}catch{}return t}function lp(t,e){return Object.is(Ha(t),Ha(e))}function Tr(t){var e=2050,i=St!==null&&(St.f&2)!==0?St:null;mt===null||i!==null&&(i.f&256)!==0?e|=256:mt.f|=1048576;let o={ctx:Rt,deps:null,effects:null,equals:bc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i??mt};return ke&&Qr&&(o.created=ss("CreatedAt")),o}function v(t){let e=Tr(t);return wc(e),e}function kr(t){let e=Tr(t);return e.equals=Na,e}function yc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)$i(e[i])}}var dp=[];function T0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function pp(t){var e,i=mt;if(Fi(T0(t)),ke){let o=zs;cp(new Set);try{dp.includes(t)&&Bv(),dp.push(t),yc(t),e=xc(t)}finally{Fi(i),cp(o),dp.pop()}}else try{yc(t),e=xc(t)}finally{Fi(i)}return e}function fp(t){var e=pp(t);if(t.equals(e)||(t.v=e,t.wv=Ml()),!as){var i=(ls||(t.f&256)!==0)&&t.deps!==null?4096:1024;Yo(t,i)}}var zs=new Set,Fa=new Map;function cp(t){zs=t}function dr(t,e){var i={f:0,v:t,reactions:null,equals:bc,rv:0,wv:0};return ke&&Qr&&(i.created=e??ss("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Q(t,e){let i=dr(t,e);return wc(i),i}function jr(t,e=!1,i=!0){let o=dr(t);return e||(o.equals=Na),qr&&i&&Rt!==null&&Rt.l!==null&&(Rt.l.s??=[]).push(o),o}function V(t,e,i=!1){St!==null&&(!qn||(St.f&262144)!==0)&&Gr()&&(St.f&262162)!==0&&!(Wn?.[1].includes(t)&&Wn[0]===St)&&jv();let o=i?qt(e):e;return ke&&$c(o,t.label),Ua(t,o)}function Ua(t,e){if(!t.equals(e)){var i=t.v;if(as?Fa.set(t,e):Fa.set(t,i),t.v=e,ke&&Qr&&(t.updated=ss("UpdatedAt"),mt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&pp(t),Yo(t,(t.f&256)===0?1024:4096)),t.wv=Ml(),Xv(t,2048),Gr()&&mt!==null&&(mt.f&1024)!==0&&(mt.f&96)===0&&(Kn===null?Jv([t]):Kn.push(t)),ke&&zs.size>0){let o=Array.from(zs);for(let r of o)(r.f&1024)!==0&&Yo(r,4096),Ks(r)&&za(r);zs.clear()}}return e}function Xv(t,e){var i=t.reactions;if(i!==null)for(var o=Gr(),r=i.length,s=0;s<r;s++){var a=i[s],l=a.f;if((l&2048)===0&&!(!o&&a===mt)){if(ke&&(l&262144)!==0){zs.add(a);continue}Yo(a,e),(l&1280)!==0&&((l&2)!==0?Xv(a,4096):Vl(a))}}}var Wa="font-weight: bold",Ka="font-weight: normal";function eg(t,e,i){ke?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`,Wa,Ka):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function ug(t){ke?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,Wa,Ka):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function tg(t){ke?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`,Wa,Ka):console.warn("https://svelte.dev/e/hydration_html_changed")}function Cs(t){ke?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,Wa,Ka):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ss(t){ke?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`,Wa,Ka):console.warn("https://svelte.dev/e/hydration_mismatch")}function pg(){ke?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,Wa,Ka):console.warn("https://svelte.dev/e/hydration_mismatch")}function ig(){ke?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`,Wa,Ka):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function fg(){ke?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",Wa,Ka):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Ec(t){ke?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,Wa,Ka):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function og(){ke?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",Wa,Ka):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Sc(t){ke?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`,Wa,Ka):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var je=!1;function Ki(t){je=t}var mt;function si(t){if(t===null)throw Cs(),Kr;return mt=t}function Si(){return si(wo(mt))}function h(t){if(je){if(wo(mt)!==null)throw Cs(),Kr;mt=t}}function be(t=1){if(je){for(var e=t,i=mt;e--;)i=wo(i);mt=i}}function Ks(){for(var t=0,e=mt;;){if(e.nodeType===Fn){var i=e.data;if(i===Ds){if(t===0)return e;t-=1}else(i===ys||i===xs)&&(t+=1)}var o=wo(e);e.remove(),e=o}}function Pc(t){if(!t||t.nodeType!==Fn)throw Cs(),Kr;return t.data}function mg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,a){let l=i.call(this,s,a);if(l===-1){for(let d=a??0;d<this.length;d+=1)if(Ha(this[d])===s){Ec("array.indexOf(...)");break}}return l},t.lastIndexOf=function(s,a){let l=o.call(this,s,a??this.length-1);if(l===-1){for(let d=0;d<=(a??this.length-1);d+=1)if(Ha(this[d])===s){Ec("array.lastIndexOf(...)");break}}return l},t.includes=function(s,a){let l=r.call(this,s,a);if(!l){for(let d=0;d<this.length;d+=1)if(Ha(this[d])===s){Ec("array.includes(...)");break}}return l},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var qs,vg,Dl,gg,hg;function Ac(){if(qs===void 0){qs=window,vg=document,Dl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;gg=Mo(e,"firstChild").get,hg=Mo(e,"nextSibling").get,up(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),up(i)&&(i.__t=void 0),ke&&(t.__svelte_meta=null,mg())}}function jo(t=""){return document.createTextNode(t)}function ai(t){return gg.call(t)}function wo(t){return hg.call(t)}function _(t,e){if(!je)return ai(t);var i=ai(mt);if(i===null)i=mt.appendChild(jo());else if(e&&i.nodeType!==Va){var o=jo();return i?.before(o),si(o),o}return si(i),i}function de(t,e){if(!je){var i=ai(t);return i.nodeType===8&&i.data===""?wo(i):i}if(e&&mt?.nodeType!==Va){var o=jo();return mt?.before(o),si(o),o}return mt}function I(t,e=1,i=!1){let o=je?mt:t;for(var r;e--;)r=o,o=wo(o);if(!je)return o;if(i&&o?.nodeType!==Va){var s=jo();return o===null?r?.after(s):o.before(s),si(s),s}return si(o),o}function Hl(t){t.textContent=""}function Sp(t){ft===null&&St===null&&Yv(t),St!==null&&(St.f&256)!==0&&ft===null&&jv(),as&&Gv(t)}function L0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Qs(t,e,i,o=!0){var r=ft;if(ke)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:Lt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(ke&&(s.component_function=Un),i)try{za(s),s.f|=32768}catch(d){throw wi(s),d}else e!==null&&Bl(s);var a=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!a&&o&&(r!==null&&L0(s,r),St!==null&&(St.f&2)!==0)){var l=St;(l.effects??=[]).push(s)}return s}function yo(t){let e=Qs(8,null,!1);return Go(e,1024),e.teardown=t,e}function Be(t){Sp("$effect");var e=ft!==null&&(ft.f&32)!==0&&Lt!==null&&!Lt.m;if(ke&&zi(t,"name",{value:"$effect"}),e){var i=Lt;(i.e??=[]).push({fn:t,effect:ft,reaction:St})}else{var o=co(t);return o}}function zl(t){return Sp("$effect.pre"),ke&&zi(t,"name",{value:"$effect.pre"}),So(t)}function Vc(t){let e=Qs(64,t,!0);return()=>{wi(e)}}function bg(t){let e=Qs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?$n(e,()=>{wi(e),o(void 0)}):(wi(e),o(void 0))})}function co(t){return Qs(4,t,!1)}function So(t){return Qs(8,t,!0)}function O(t,e=[],i=Tr){if(ke)return So(()=>{var r=ft,s=()=>t(...a.map(n));zi(r.fn,"name",{value:"{expression}"}),zi(s,"name",{value:"{expression}"});let a=e.map(i);Ci(s)});let o=e.map(i);return Ci(()=>t(...o.map(n)))}function Ci(t,e=0){return Qs(24|e,t,!0)}function vi(t,e=!0){return Qs(40,t,!0,e)}function Cp(t){var e=t.teardown;if(e!==null){let i=as,o=St;xp(!0),xi(null);try{e.call(null)}finally{xp(i),xi(o)}}}function Tp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:wi(i,e),i=o}}function $g(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&wi(e),e=i}}function wi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(kp(t.nodes_start,t.nodes_end),i=!0),Tp(t,e&&!i),Wl(t,0),Go(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Cp(t);var r=t.parent;r!==null&&r.first!==null&&Ip(t),ke&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function kp(t,e){for(;t!==null;){var i=t===e?null:wo(t);t.remove(),t=i}}function Ip(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function $n(t,e){var i=[];Rc(t,i,!0),Ep(i,()=>{wi(t),e&&e()})}function Ep(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function Rc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let a of t.transitions)(a.is_global||i)&&e.push(a);for(var o=t.first;o!==null;){var r=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;Rc(o,e,s?i:!1),o=r}}}function cs(t){yg(t,!0)}function yg(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;yg(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Kl=[],Pp=[];function xg(){var t=Kl;Kl=[],Ss(t)}function V0(){var t=Pp;Pp=[],Ss(t)}function Yo(t){Kl.length===0&&queueMicrotask(xg),Kl.push(t)}function wg(){Kl.length>0&&xg(),Pp.length>0&&V0()}function Cg(t){var e=ft;if(ke&&t instanceof Error&&R0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else ql(t,e)}function ql(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch{}e=e.parent}throw t}var Sg=new WeakSet;function R0(t,e){if(Sg.has(t))return;Sg.add(t);let i=Mo(t,"message");if(!(i&&!i.configurable)){for(var o=Dl?" ":" ",r=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Wa,Ka):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var je=!1;function Ui(t){je=t}var vt;function Jt(t){if(t===null)throw Ss(),Kr;return vt=t}function yi(){return Jt(_o(vt))}function h(t){if(je){if(_o(vt)!==null)throw Ss(),Kr;vt=t}}function xe(t=1){if(je){for(var e=t,i=vt;e--;)i=_o(i);vt=i}}function qs(){for(var t=0,e=vt;;){if(e.nodeType===Fn){var i=e.data;if(i===Hs){if(t===0)return e;t-=1}else(i===$s||i===ys)&&(t+=1)}var o=_o(e);e.remove(),e=o}}function Cc(t){if(!t||t.nodeType!==Fn)throw Ss(),Kr;return t.data}function ng(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,a){let l=i.call(this,s,a);if(l===-1){for(let d=a??0;d<this.length;d+=1)if(Ha(this[d])===s){Sc("array.indexOf(...)");break}}return l},t.lastIndexOf=function(s,a){let l=o.call(this,s,a??this.length-1);if(l===-1){for(let d=0;d<=(a??this.length-1);d+=1)if(Ha(this[d])===s){Sc("array.lastIndexOf(...)");break}}return l},t.includes=function(s,a){let l=r.call(this,s,a);if(!l){for(let d=0;d<this.length;d+=1)if(Ha(this[d])===s){Sc("array.includes(...)");break}}return l},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var Qs,rg,Rl,sg,ag;function Tc(){if(Qs===void 0){Qs=window,rg=document,Rl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;sg=Lo(e,"firstChild").get,ag=Lo(e,"nextSibling").get,op(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),op(i)&&(i.__t=void 0),ke&&(t.__svelte_meta=null,ng())}}function Zo(t=""){return document.createTextNode(t)}function ei(t){return sg.call(t)}function _o(t){return ag.call(t)}function _(t,e){if(!je)return ei(t);var i=ei(vt);if(i===null)i=vt.appendChild(Zo());else if(e&&i.nodeType!==Va){var o=Zo();return i?.before(o),Jt(o),o}return Jt(i),i}function ce(t,e){if(!je){var i=ei(t);return i.nodeType===8&&i.data===""?_o(i):i}if(e&&vt?.nodeType!==Va){var o=Zo();return vt?.before(o),Jt(o),o}return vt}function E(t,e=1,i=!1){let o=je?vt:t;for(var r;e--;)r=o,o=_o(o);if(!je)return o;if(i&&o?.nodeType!==Va){var s=Zo();return o===null?r?.after(s):o.before(s),Jt(s),s}return Jt(o),o}function Nl(t){t.textContent=""}function gp(t){mt===null&&St===null&&Hv(t),St!==null&&(St.f&256)!==0&&mt===null&&Dv(),as&&Ov(t)}function k0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Gs(t,e,i,o=!0){var r=mt;if(ke)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:Rt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(ke&&(s.component_function=Un),i)try{za(s),s.f|=32768}catch(d){throw $i(s),d}else e!==null&&Vl(s);var a=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!a&&o&&(r!==null&&k0(s,r),St!==null&&(St.f&2)!==0)){var l=St;(l.effects??=[]).push(s)}return s}function go(t){let e=Gs(8,null,!1);return Yo(e,1024),e.teardown=t,e}function De(t){gp("$effect");var e=mt!==null&&(mt.f&32)!==0&&Rt!==null&&!Rt.m;if(ke&&Hi(t,"name",{value:"$effect"}),e){var i=Rt;(i.e??=[]).push({fn:t,effect:mt,reaction:St})}else{var o=so(t);return o}}function Dl(t){return gp("$effect.pre"),ke&&Hi(t,"name",{value:"$effect.pre"}),bo(t)}function Ec(t){let e=Gs(64,t,!0);return()=>{$i(e)}}function dg(t){let e=Gs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?wn(e,()=>{$i(e),o(void 0)}):($i(e),o(void 0))})}function so(t){return Gs(4,t,!1)}function bo(t){return Gs(8,t,!0)}function N(t,e=[],i=Tr){if(ke)return bo(()=>{var r=mt,s=()=>t(...a.map(n));Hi(r.fn,"name",{value:"{expression}"}),Hi(s,"name",{value:"{expression}"});let a=e.map(i);xi(s)});let o=e.map(i);return xi(()=>t(...o.map(n)))}function xi(t,e=0){return Gs(24|e,t,!0)}function pi(t,e=!0){return Gs(40,t,!0,e)}function hp(t){var e=t.teardown;if(e!==null){let i=as,o=St;mp(!0),bi(null);try{e.call(null)}finally{mp(i),bi(o)}}}function _p(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:$i(i,e),i=o}}function cg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&$i(e),e=i}}function $i(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(bp(t.nodes_start,t.nodes_end),i=!0),_p(t,e&&!i),Hl(t,0),Yo(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();hp(t);var r=t.parent;r!==null&&r.first!==null&&$p(t),ke&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function bp(t,e){for(;t!==null;){var i=t===e?null:_o(t);t.remove(),t=i}}function $p(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=[];Pc(t,i,!0),yp(i,()=>{$i(t),e&&e()})}function yp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function Pc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let a of t.transitions)(a.is_global||i)&&e.push(a);for(var o=t.first;o!==null;){var r=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;Pc(o,e,s?i:!1),o=r}}}function cs(t){ug(t,!0)}function ug(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;ug(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Fl=[],xp=[];function pg(){var t=Fl;Fl=[],ws(t)}function I0(){var t=xp;xp=[],ws(t)}function Xo(t){Fl.length===0&&queueMicrotask(pg),Fl.push(t)}function fg(){Fl.length>0&&pg(),xp.length>0&&I0()}function vg(t){var e=mt;if(ke&&t instanceof Error&&E0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Ul(t,e)}function Ul(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch{}e=e.parent}throw t}var mg=new WeakSet;function E0(t,e){if(mg.has(t))return;mg.add(t);let i=Lo(t,"message");if(!(i&&!i.configurable)){for(var o=Rl?" ":" ",r=`
38
38
  ${o}in ${e.fn?.name||"<unknown>"}`,s=e.ctx;s!==null;)r+=`
39
- ${o}in ${s.function?.[gn].split("/").pop()}`,s=s.p;zi(t,"message",{value:t.message+`
39
+ ${o}in ${s.function?.[bn].split("/").pop()}`,s=s.p;Hi(t,"message",{value:t.message+`
40
40
  ${r}
41
- `}),t.stack&&zi(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&Hi(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var Gs=!1,qa=null,js=!1,as=!1;function xp(t){as=t}var Ql=[],Gl=[],St=null,qn=!1;function xi(t){St=t}var ft=null;function Wi(t){ft=t}var Wn=null;function Ic(t){St!==null&&St.f&2097152&&(Wn===null?Wn=[St,[t]]:Wn[1].push(t))}var Zo=null,Qn=0,Kn=null;function dg(t){Kn=t}var Ig=1,Oc=0,ls=!1,Bc=null;function Nl(){return++Ig}function Ws(t){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 r,s,a=(e&512)!==0,l=o&&ft!==null&&!ls,d=i.length;if(a||l){var f=t,p=f.parent;for(r=0;r<d;r++)s=i[r],(a||!s?.reactions?.includes(f))&&(s.reactions??=[]).push(f);a&&(f.f^=512),l&&p!==null&&(p.f&256)===0&&(f.f^=256)}for(r=0;r<d;r++)if(s=i[r],Ws(s)&&yp(s),s.wv>t.wv)return!0}(!o||ft!==null&&!ls)&&Go(t,1024)}return!1}function Eg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];Wn?.[1].includes(t)&&Wn[0]===St||((s.f&2)!==0?Eg(s,e,!1):e===s&&(i?Go(s,2048):(s.f&1024)!==0&&Go(s,4096),Bl(s)))}}function kc(t){var e=Zo,i=Qn,o=Kn,r=St,s=ls,a=Wn,l=Lt,d=qn,f=t.f;Zo=null,Qn=0,Kn=null,ls=(f&256)!==0&&(qn||!js||St===null),St=(f&96)===0?t:null,Wn=null,Ll(t.ctx),qn=!1,Oc++,t.f|=2097152;try{var p=(0,t.fn)(),g=t.deps;if(Zo!==null){var u;if(Wl(t,Qn),g!==null&&Qn>0)for(g.length=Qn+Zo.length,u=0;u<Zo.length;u++)g[Qn+u]=Zo[u];else t.deps=g=Zo;if(!ls||(f&2)!==0&&t.reactions!==null)for(u=Qn;u<g.length;u++)(g[u].reactions??=[]).push(t)}else g!==null&&Qn<g.length&&(Wl(t,Qn),g.length=Qn);if(Gr()&&Kn!==null&&!qn&&g!==null&&(t.f&6146)===0)for(u=0;u<Kn.length;u++)Eg(Kn[u],t);return r!==null&&r!==t&&(Oc++,Kn!==null&&(o===null?o=Kn:o.push(...Kn))),p}catch(y){Cg(y)}finally{Zo=e,Qn=i,Kn=o,St=r,ls=s,Wn=a,Ll(l),qn=d,t.f^=2097152}}function N0(t,e){let i=e.reactions;if(i!==null){var o=Uv.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(Zo===null||!Zo.includes(e))&&(Go(e,4096),(e.f&768)===0&&(e.f^=512),Tc(e),Wl(e,0))}function Wl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)N0(t,i[o])}function za(t){var e=t.f;if((e&16384)===0){Go(t,1024);var i=ft,o=js;if(ft=t,js=!0,ke){var r=Un;Vl(t.component_function)}try{(e&16)!==0?$g(t):Tp(t),Cp(t);var s=kc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Ig,ke&&Qr&&(t.f&2048)!==0&&t.deps!==null)for(var a of t.deps)a.set_during_effect&&(a.wv=Nl(),a.set_during_effect=!1);ke&&Gl.push(t)}finally{js=o,ft=i,ke&&Vl(r)}}}function Tg(){console.error("Last ten effects were: ",Gl.slice(-10).map(t=>t.fn)),Gl=[]}function O0(){try{Zv()}catch(t){if(ke&&zi(t,"stack",{value:""}),qa!==null)if(ke)try{ql(t,qa)}catch(e){throw Tg(),e}else ql(t,qa);else throw ke&&Tg(),t}}function Mp(){var t=js;try{var e=0;for(js=!0;Ql.length>0;){e++>1e3&&O0();var i=Ql,o=i.length;Ql=[];for(var r=0;r<o;r++){var s=D0(i[r]);B0(s)}Fa.clear()}}finally{Gs=!1,js=t,qa=null,ke&&(Gl=[])}}function B0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ws(o)&&(za(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Ip(o):o.fn=null))}}function Bl(t){Gs||(Gs=!0,queueMicrotask(Mp));for(var e=qa=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Ql.push(e)}function D0(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:Ws(i)&&za(i);var a=i.first;if(a!==null){i=a;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function Qa(t){var e;for(t&&(Gs=!0,Mp(),Gs=!0,e=t());;){if(wg(),Ql.length===0)return Gs=!1,qa=null,ke&&(Gl=[]),e;Gs=!0,Mp()}}async function uo(){await Promise.resolve(),Qa()}function n(t){var e=t.f,i=(e&2)!==0;if(Bc!==null&&Bc.add(t),St!==null&&!qn){if(!Wn?.[1].includes(t)||Wn[0]!==St){var o=St.deps;t.rv<Oc&&(t.rv=Oc,Zo===null&&o!==null&&o[Qn]===t?Qn++:Zo===null?Zo=[t]:(!ls||!Zo.includes(t))&&Zo.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,Ws(r)&&yp(r)),ke&&Qr&&!qn&&Ml!==null&&St!==null&&Ml.reaction===St)if(t.trace)t.trace();else{var a=ss("TracedAt");if(a){var l=Ml.entries.get(t);l===void 0&&(l={traces:[]},Ml.entries.set(t,l));var d=l.traces[l.traces.length-1];a.stack!==d?.stack&&l.traces.push(a)}}return as&&Fa.has(t)?Fa.get(t):t.v}function ht(t){var e=qn;try{return qn=!0,t()}finally{qn=e}}var H0=-7169;function Go(t,e){t.f=t.f&H0|e}function Hc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if($o in t)Dc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&$o in i&&Dc(i)}}}function Dc(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{Dc(t[o],e)}catch{}let i=Hs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=yc(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch{}}}}}function Lp(t,e){if(e){let i=document.body;t.autofocus=!0,Yo(()=>{document.activeElement===i&&t.focus()})}}function jl(t){var e=St,i=ft;xi(null),Wi(null);try{return t()}finally{xi(e),Wi(i)}}var Vp=new Set,Fc=new Set;function Ys(t){if(!je)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 Rp(t,e,i,o={}){function r(s){if(o.capture||Ga.call(e,s),!s.cancelBubble)return jl(()=>i?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Yo(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function bt(t,e,i,o,r){var s={capture:o,passive:r},a=Rp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&yo(()=>{e.removeEventListener(t,a,s)})}function st(t){for(var e=0;e<t.length;e++)Vp.add(t[e]);for(var i of Fc)i(t)}function Ga(t){var e=this,i=e.ownerDocument,o=t.type,r=t.composedPath?.()||[],s=r[0]||t.target,a=0,l=t.__root;if(l){var d=r.indexOf(l);if(d!==-1&&(e===document||e===window)){t.__root=e;return}var f=r.indexOf(e);if(f===-1)return;d<=f&&(a=d)}if(s=r[a]||t.target,s!==e){zi(t,"currentTarget",{configurable:!0,get(){return s||i}});var p=St,g=ft;xi(null),Wi(null);try{for(var u,y=[];s!==null;){var x=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+o];if(w!=null&&(!s.disabled||t.target===s))if(Hn(w)){var[S,...T]=w;S.apply(s,[t,...T])}else w.call(s,t)}catch(k){u?y.push(k):u=k}if(t.cancelBubble||x===e||x===null)break;s=x}if(u){for(let k of y)queueMicrotask(()=>{throw k});throw u}}finally{t.__root=e,delete t.currentTarget,xi(p),Wi(g)}}}var U0;function Pg(){U0=void 0}function ja(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function po(t,e){var i=ft;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function E(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,s=!t.startsWith("<!>");return()=>{if(je)return po(mt,null),mt;r===void 0&&(r=ja(s?t:"<!>"+t),i||(r=ai(r)));var a=o||Dl?document.importNode(r,!0):r.cloneNode(!0);if(i){var l=ai(a),d=a.lastChild;po(l,d)}else po(a,a);return a}}function K0(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,a;return()=>{if(je)return po(mt,null),mt;if(!a){var l=ja(s),d=ai(l);if(r)for(a=document.createDocumentFragment();ai(d);)a.appendChild(ai(d));else a=ai(d)}var f=a.cloneNode(!0);if(r){var p=ai(f),g=f.lastChild;po(p,g)}else po(f,f);return f}}function $e(t,e){return K0(t,e,"svg")}function Yr(t=""){if(!je){var e=jo(t+"");return po(e,e),e}var i=mt;return i.nodeType!==Va&&(i.before(i=jo()),si(i)),po(i,i),i}function Oe(){if(je)return po(mt,null),mt;var t=document.createDocumentFragment(),e=document.createComment(""),i=jo();return t.append(e,i),po(e,i),t}function b(t,e){if(je){ft.nodes_end=mt,Si();return}t!==null&&t.before(e)}var q0=/\r/g;function Mg(t){t=t.replace(q0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Lg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var Q0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Vg(t){return Q0.includes(t)}var G0=["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 j0={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 Rg(t){return t=t.toLowerCase(),j0[t]??t}var P6=[...G0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Y0=["touchstart","touchmove"];function Ng(t){return Y0.includes(t)}var Z0=["$state","$state.raw","$derived","$derived.by"],A6=[...Z0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var X0=["textarea","script","style","title"];function Og(t){return X0.includes(t)}function Uc(t){return t?.replace(/\//g,"/\u200B")}var Yl=!0;function zc(t){Yl=t}function pe(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Zr(t,e){return Bg(t,e)}function Op(t,e){Ac(),e.intro=e.intro??!1;let i=e.target,o=je,r=mt;try{for(var s=ai(i);s&&(s.nodeType!==Fn||s.data!==ys);)s=wo(s);if(!s)throw Kr;Ki(!0),si(s),Si();let a=Bg(t,{...e,anchor:s});if(mt===null||mt.nodeType!==Fn||mt.data!==Ds)throw Cs(),Kr;return Ki(!1),a}catch(a){if(a===Kr)return e.recover===!1&&Xv(),Ac(),Hl(i),Ki(!1),Zr(t,e);throw a}finally{Ki(o),si(r),Pg()}}var Ya=new Map;function Bg(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:a=!0}){Ac();var l=new Set,d=g=>{for(var u=0;u<g.length;u++){var y=g[u];if(!l.has(y)){l.add(y);var x=Ng(y);e.addEventListener(y,Ga,{passive:x});var w=Ya.get(y);w===void 0?(document.addEventListener(y,Ga,{passive:x}),Ya.set(y,1)):Ya.set(y,w+1)}}};d(Al(Vp)),Fc.add(d);var f=void 0,p=bg(()=>{var g=i??e.appendChild(jo());return vi(()=>{if(s){F({});var u=Lt;u.c=s}r&&(o.$$events=r),je&&po(g,null),Yl=a,f=t(g,o)||{},Yl=!0,je&&(ft.nodes_end=mt),s&&U()}),()=>{for(var u of l){e.removeEventListener(u,Ga);var y=Ya.get(u);--y===0?(document.removeEventListener(u,Ga),Ya.delete(u)):Ya.set(u,y)}Fc.delete(d),g!==i&&g.parentNode?.removeChild(g)}});return Np.set(f,p),f}var Np=new WeakMap;function Zs(t,e){let i=Np.get(t);return i?(Np.delete(t),i(e)):(ke&&pg(),Promise.resolve())}function fe(t,e,...i){var o=t,r=oe,s;Ci(()=>{r!==(r=e())&&(s&&(wi(s),s=null),ke&&r==null&&Jv(),s=vi(()=>r(o,...i)))},65536),je&&(o=mt)}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;ig(e)},set:o=>{i=o}})}};i_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var i_;function Et(t){Lt===null&&Oa("onMount"),qr&&Lt.l!==null?t_(Lt).m.push(t):Be(()=>{let e=ht(t);if(typeof e=="function")return e})}function Ro(t){Lt===null&&Oa("onDestroy"),Et(()=>()=>ht(t))}function t_(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}var Dg=new Map;function Hg(t,e){var i=Dg.get(t);i||(i=new Set,Dg.set(t,i)),i.add(e)}function M(t,e,[i,o]=[0,0]){je&&i===0&&Si();var r=t,s=null,a=null,l=Mi,d=i>0?65536:0,f=!1;let p=(u,y=!0)=>{f=!0,g(y,u)},g=(u,y)=>{if(l===(l=u))return;let x=!1;if(je&&o!==-1){if(i===0){let S=Pc(r);S===ys?o=0:S===xs?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=l?1/0:-1))}let w=o>i;!!l===w&&(r=Ks(),si(r),Ki(!1),x=!0,o=-1)}l?(s?cs(s):y&&(s=vi(()=>y(r))),a&&$n(a,()=>{a=null})):(a?cs(a):y&&(a=vi(()=>y(r,[i+1,o]))),s&&$n(s,()=>{s=null})),x&&Ki(!0)};Ci(()=>{f=!1,e(p),f||g(null,null)},d),je&&(r=mt)}function Xs(t,e,i){je&&Si();var o=t,r=Mi,s,a=Gr()?qv:Ra;Ci(()=>{a(r,r=e())&&(s&&$n(s),s=vi(()=>i(o)))}),je&&(o=mt)}var ks=null;function Hp(t){ks=t}function Zl(t,e){return e}function r_(t,e,i,o){for(var r=[],s=e.length,a=0;a<s;a++)Rc(e[a].e,r,!0);var l=s>0&&r.length===0&&i!==null;if(l){var d=i.parentNode;Hl(d),d.append(i),o.clear(),Ts(t,e[0].prev,e[s-1].next)}Ep(r,()=>{for(var f=0;f<s;f++){var p=e[f];l||(o.delete(p.k),Ts(t,p.prev,p.next)),wi(p.e,!l)}})}function pi(t,e,i,o,r,s=null){var a=t,l={flags:e,items:new Map,first:null},d=(e&4)!==0;if(d){var f=t;a=je?si(ai(f)):f.appendChild(jo())}je&&Si();var p=null,g=!1,u=kr(()=>{var y=i();return Hn(y)?y:y==null?[]:Al(y)});Ci(()=>{var y=n(u),x=y.length;if(g&&x===0)return;g=x===0;let w=!1;if(je){var S=Pc(a)===xs;S!==(x===0)&&(a=Ks(),si(a),Ki(!1),w=!0)}if(je){for(var T=null,k,V=0;V<x;V++){if(mt.nodeType===Fn&&mt.data===Ds){a=mt,w=!0,Ki(!1);break}var A=y[V],L=o(A,V);k=zg(mt,l,T,null,A,L,V,r,e,i),l.items.set(L,k),T=k}x>0&&si(Ks())}je||s_(y,l,a,r,e,o,i),s!==null&&(x===0?p?cs(p):p=vi(()=>s(a)):p!==null&&$n(p,()=>{p=null})),w&&Ki(!0),n(u)}),je&&(a=mt)}function s_(t,e,i,o,r,s,a){var l=(r&8)!==0,d=(r&3)!==0,f=t.length,p=e.items,g=e.first,u=g,y,x=null,w,S=[],T=[],k,V,A,L;if(l)for(L=0;L<f;L+=1)k=t[L],V=s(k,L),A=p.get(V),A!==void 0&&(A.a?.measure(),(w??=new Set).add(A));for(L=0;L<f;L+=1){if(k=t[L],V=s(k,L),A=p.get(V),A===void 0){var P=u?u.e.nodes_start:i;x=zg(P,e,x,x===null?e.first:x.next,k,V,L,o,r,a),p.set(V,x),S=[],T=[],u=x.next;continue}if(d&&a_(A,k,L,r),(A.e.f&8192)!==0&&(cs(A.e),l&&(A.a?.unfix(),(w??=new Set).delete(A))),A!==u){if(y!==void 0&&y.has(A)){if(S.length<T.length){var Q=T[0],D;x=Q.prev;var J=S[0],ie=S[S.length-1];for(D=0;D<S.length;D+=1)Fg(S[D],Q,i);for(D=0;D<T.length;D+=1)y.delete(T[D]);Ts(e,J.prev,ie.next),Ts(e,x,J),Ts(e,ie,Q),u=Q,x=ie,L-=1,S=[],T=[]}else y.delete(A),Fg(A,u,i),Ts(e,A.prev,A.next),Ts(e,A,x===null?e.first:x.next),Ts(e,x,A),x=A;continue}for(S=[],T=[];u!==null&&u.k!==V;)(u.e.f&8192)===0&&(y??=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;A=u}S.push(A),x=A,u=A.next}if(u!==null||y!==void 0){for(var re=y===void 0?[]:Al(y);u!==null;)(u.e.f&8192)===0&&re.push(u),u=u.next;var Z=re.length;if(Z>0){var ue=(r&4)!==0&&f===0?i:null;if(l){for(L=0;L<Z;L+=1)re[L].a?.measure();for(L=0;L<Z;L+=1)re[L].a?.fix()}r_(e,re,ue,p)}}l&&Yo(()=>{if(w!==void 0)for(A of w)A.a?.apply()}),ft.first=e.first&&e.first.e,ft.last=x&&x.e}function a_(t,e,i,o){(o&1)!==0&&Ua(t.v,e),(o&2)!==0?Ua(t.i,i):t.i=i}function zg(t,e,i,o,r,s,a,l,d,f){var p=ks,g=(d&1)!==0,u=(d&16)===0,y=g?u?jr(r,!1,!1):sr(r):r,x=(d&2)===0?a:sr(a);ke&&g&&(y.trace=()=>{var S=typeof x=="number"?a:x.v;f()[S]});var w={i:x,v:y,k:s,a:null,e:null,prev:i,next:o};ks=w;try{return w.e=vi(()=>l(t,y,x,f),je),w.e.prev=i&&i.e,w.e.next=o&&o.e,i===null?e.first=w:(i.next=w,i.e.next=w.e),o!==null&&(o.prev=w,o.e.prev=w.e),w}finally{ks=p}}function Fg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var a=wo(s);r.before(s),s=a}}function Ts(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 l_(t,e,i){if(!e||e===Mg(String(i??"")))return;let o,r=t.__svelte_meta?.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:Un?.[gn]&&(o=`in ${Un[gn]}`),ug(Uc(o))}function Xl(t,e,i=!1,o=!1,r=!1){var s=t,a="";O(()=>{var l=ft;if(a===(a=e()??"")){je&&Si();return}if(l.nodes_start!==null&&(kp(l.nodes_start,l.nodes_end),l.nodes_start=l.nodes_end=null),a!==""){if(je){for(var d=mt.data,f=Si(),p=f;f!==null&&(f.nodeType!==Fn||f.data!=="");)p=f,f=wo(f);if(f===null)throw Cs(),Kr;ke&&!r&&l_(f.parentNode,d,a),po(mt,p),s=si(f);return}var g=a+"";i?g=`<svg>${g}</svg>`:o&&(g=`<math>${g}</math>`);var u=ja(g);if((i||o)&&(u=ai(u)),po(ai(u),u.lastChild),i||o)for(;ai(u);)s.before(ai(u));else s.before(u)}})}function fi(t,e,i){je&&Si();var o=t,r,s;Ci(()=>{r!==(r=e())&&(s&&($n(s),s=null),r&&(s=vi(()=>i(o,r))))},65536),je&&(o=mt)}function Js(t,e,i,o,r,s){let a=je;je&&Si();var l=ke&&s&&Lt?.function[gn],d,f,p=null;je&&mt.nodeType===wc&&(p=mt,Si());var g=je?mt:t,u,y=ks;Ci(()=>{let x=e()||null;var w=r?r():i||x==="svg"?bc:null;if(x!==d){var S=ks;Hp(y),u&&(x===null?$n(u,()=>{u=null,f=null}):x===f?cs(u):(wi(u),zc(!1))),x&&x!==f&&(u=vi(()=>{if(p=je?p:w?document.createElementNS(w,x):document.createElement(x),ke&&s&&(p.__svelte_meta={loc:{file:l,line:s[0],column:s[1]}}),po(p,p),o){je&&Og(x)&&p.append(document.createComment(""));var T=je?ai(p):p.appendChild(jo());je&&(T===null?Ki(!1):si(T)),o(p,T)}ft.nodes_end=p,g.before(p)})),d=x,d&&(f=d),zc(!0),Hp(S)}},65536),a&&(Ki(!0),si(g))}var Up;function Wg(t){return Up=t.target,new Fp(t)}var Fp=class{#t;#e;constructor(e){var i=new Map,o=(s,a)=>{var l=jr(a,!1,!1);return i.set(s,l),l};let r=new Proxy({...e.props||{},$$events:{}},{get(s,a){return n(i.get(a)??o(a,Reflect.get(s,a)))},has(s,a){return a===La?!0:(n(i.get(a)??o(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return N(i.get(a)??o(a,l),l),Reflect.set(s,a,l)}});this.#e=(e.hydrate?Op:Zr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Qa(),this.#t=r.$$events;for(let s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||zi(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(r,s)},this.#e.$destroy=()=>{Zs(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...r)=>i.call(this,...r);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(r=>r!==o)}}$destroy(){this.#e.$destroy()}};function W(t,e){Yo(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??Up?.parentNode;if(!o?.querySelector("#"+e.hash)){let r=document.createElement("style");r.id=e.hash,r.textContent=e.code,o.appendChild(r),ke&&Hg(e.hash,r)}})}function us(t,e){var i=void 0,o;Ci(()=>{i!==(i=e())&&(o&&(wi(o),o=null),i&&(o=vi(()=>{co(()=>i(t))})))})}function Kg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Kg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function qg(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Kg(t))&&(o&&(o+=" "),o+=e);return o}function Jl(t){return typeof t=="object"?qg(t):t??""}var Qg=[...`
44
- \r\f\xA0\v\uFEFF`];function jg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var s=r.length,a=0;(a=o.indexOf(r,a))>=0;){var l=a+s;(a===0||Qg.includes(o[a-1]))&&(l===o.length||Qg.includes(o[l]))?o=(a===0?"":o.substring(0,a))+o.substring(l+1):a=l}}return o===""?null:o}function Gg(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function zp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Yg(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,a=0,l=!1,d=[];o&&d.push(...Object.keys(o).map(zp)),r&&d.push(...Object.keys(r).map(zp));var f=0,p=-1;let w=t.length;for(var g=0;g<w;g++){var u=t[g];if(l?u==="/"&&t[g-1]==="*"&&(l=!1):s?s===u&&(s=!1):u==="/"&&t[g+1]==="*"?l=!0:u==='"'||u==="'"?s=u:u==="("?a++:u===")"&&a--,!l&&s===!1&&a===0){if(u===":"&&p===-1)p=g;else if(u===";"||g===w-1){if(p!==-1){var y=zp(t.substring(f,p).trim());if(!d.includes(y)){u!==";"&&g++;var x=t.substring(f,g).trim();i+=" "+x+";"}}f=g+1,p=-1}}}}return o&&(i+=Gg(o)),r&&(i+=Gg(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function X(t,e,i,o,r,s){var a=t.__className;if(je||a!==i||a===void 0){var l=jg(i,o,s);(!je||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):e?t.className=l:t.setAttribute("class",l)),t.__className=i}else if(s&&r!==s)for(var d in s){var f=!!s[d];(r==null||f!==!!r[d])&&t.classList.toggle(d,f)}return s}function Wp(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function it(t,e,i,o){var r=t.__style;if(je||r!==e){var s=Yg(e,o);(!je||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Wp(t,i?.[0],o[0]),Wp(t,i?.[1],o[1],"important")):Wp(t,i,o));return o}function ed(t,e,i){if(t.multiple){if(e==null)return;if(!Hn(e))return fg();for(var o of t.options)o.selected=e.includes(Zg(o));return}for(o of t.options){var r=Zg(o);if(gp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Kp(t){var e=new MutationObserver(()=>{ed(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),yo(()=>{e.disconnect()})}function Zg(t){return"__value"in t?t.__value:t.value}var Za=Symbol("class"),Xa=Symbol("style"),eh=Symbol("is custom element"),th=Symbol("is html");function ih(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ne(t,e,i,o){var r=nh(t);if(je&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||g_(t,e,i??"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Kv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&rh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function oh(t,e,i,o,r=!1){var s=nh(t),a=s[eh],l=!s[th];let d=je&&a;d&&Ki(!1);var f=e||{},p=t.tagName==="OPTION";for(var g in e)g in i||(i[g]=null);i.class?i.class=Jl(i.class):(o||i[Za])&&(i.class=null),i[Xa]&&(i.style??=null);var u=rh(t);for(let A in i){let L=i[A];if(p&&A==="value"&&L==null){t.value=t.__value="",f[A]=L;continue}if(A==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";X(t,y,L,o,e?.[Za],i[Za]),f[A]=L,f[Za]=i[Za];continue}if(A==="style"){it(t,L,e?.[Xa],i[Xa]),f[A]=L,f[Xa]=i[Xa];continue}var x=f[A];if(!(L===x&&!(L===void 0&&t.hasAttribute(A)))){f[A]=L;var w=A[0]+A[1];if(w!=="$$")if(w==="on"){let P={},Q="$$"+A,D=A.slice(2);var S=Vg(D);if(Lg(D)&&(D=D.slice(0,-7),P.capture=!0),!S&&x){if(L!=null)continue;t.removeEventListener(D,f[Q],P),f[Q]=null}if(L!=null)if(S)t[`__${D}`]=L,st([D]);else{let J=function(ie){f[A].call(this,ie)};var V=J;f[Q]=Rp(D,t,J,P)}else S&&(t[`__${D}`]=void 0)}else if(A==="style")Ne(t,A,L);else if(A==="autofocus")Lp(t,!!L);else if(!a&&(A==="__value"||A==="value"&&L!=null))t.value=t.__value=L;else if(A==="selected"&&p)ih(t,L);else{var T=A;l||(T=Rg(T));var k=T==="defaultValue"||T==="defaultChecked";if(L==null&&!a&&!k)if(s[A]=null,T==="value"||T==="checked"){let P=t,Q=e===void 0;if(T==="value"){let D=P.defaultValue;P.removeAttribute(T),P.defaultValue=D,P.value=P.__value=Q?D:null}else{let D=P.defaultChecked;P.removeAttribute(T),P.defaultChecked=D,P.checked=Q?D:!1}}else t.removeAttribute(A);else k||u.includes(T)&&(a||typeof L!="string")?t[T]=L:typeof L!="function"&&Ne(t,T,L,r)}}}return d&&Ki(!0),f}function Se(t,e,i=[],o,r=!1,s=Tr){let a=i.map(s);var l=void 0,d={},f=t.nodeName==="SELECT",p=!1;if(Ci(()=>{var u=e(...a.map(n)),y=oh(t,l,u,o,r);p&&f&&"value"in u&&ed(t,u.value,!1);for(let w of Object.getOwnPropertySymbols(d))u[w]||wi(d[w]);for(let w of Object.getOwnPropertySymbols(u)){var x=u[w];w.description===lp&&(!l||x!==l[w])&&(d[w]&&wi(d[w]),d[w]=vi(()=>us(t,()=>x))),y[w]=x}l=y}),f){var g=t;co(()=>{ed(g,l.value),Kp(g)})}p=!0}function nh(t){return t.__attributes??={[eh]:t.nodeName.includes("-"),[th]:t.namespaceURI===Hv}}var Xg=new Map;function rh(t){var e=Xg.get(t.nodeName);if(e)return e;Xg.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=yc(o);for(var s in i)i[s].set&&e.push(s);o=Hs(o)}return e}function g_(t,e,i){ke&&(e==="srcset"&&h_(t,i)||qp(t.getAttribute(e)??"",i)||cg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function qp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Jg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function h_(t,e){var i=Jg(t.srcset),o=Jg(e);return o.length===i.length&&o.every(([r,s],a)=>s===i[a][1]&&(qp(i[a][0],r)||qp(r,i[a][0])))}var __=$c?()=>performance.now():()=>Date.now(),Pr={tick:t=>($c?requestAnimationFrame:oe)(t),now:()=>__(),tasks:new Set};function sh(){let t=Pr.now();Pr.tasks.forEach(e=>{e.c(t)||(Pr.tasks.delete(e),e.f())}),Pr.tasks.size!==0&&Pr.tick(sh)}function ah(t){let e;return Pr.tasks.size===0&&Pr.tick(sh),{promise:new Promise(i=>{Pr.tasks.add(e={c:t,f:i})}),abort(){Pr.tasks.delete(e)}}}function Wc(t,e){jl(()=>{t.dispatchEvent(new CustomEvent(e))})}function x_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function lh(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let a=x_(r.trim());e[a]=s.trim()}return e}var w_=t=>t;function Gp(t,e,i,o){var r=(t&1)!==0,s=(t&2)!==0,a=r&&s,l=(t&4)!==0,d=a?"both":r?"in":"out",f,p=e.inert,g=e.style.overflow,u,y;function x(){var V=St,A=ft;xi(null),Wi(null);try{return f??=i()(e,o?.()??{},{direction:d})}finally{xi(V),Wi(A)}}var w={is_global:l,in(){if(e.inert=p,!r){y?.abort(),y?.reset?.();return}s||u?.abort(),Wc(e,"introstart"),u=Qp(e,x(),y,1,()=>{Wc(e,"introend"),u?.abort(),u=f=void 0,e.style.overflow=g})},out(V){if(!s){V?.(),f=void 0;return}e.inert=!0,Wc(e,"outrostart"),y=Qp(e,x(),u,0,()=>{Wc(e,"outroend"),V?.()})},stop:()=>{u?.abort(),y?.abort()}},S=ft;if((S.transitions??=[]).push(w),r&&Yl){var T=l;if(!T){for(var k=S.parent;k&&(k.f&65536)!==0;)for(;(k=k.parent)&&(k.f&16)===0;);T=!k||(k.f&32768)!==0}T&&co(()=>{ht(()=>w.in())})}}function Qp(t,e,i,o,r){var s=o===1;if(ws(e)){var a,l=!1;return Yo(()=>{if(!l){var S=e({direction:s?"in":"out"});a=Qp(t,S,i,o,r)}}),{abort:()=>{l=!0,a?.abort()},deactivate:()=>a.deactivate(),reset:()=>a.reset(),t:()=>a.t()}}if(i?.deactivate(),!e?.duration)return r(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:d=0,css:f,tick:p,easing:g=w_}=e;var u=[];if(s&&i===void 0&&(p&&p(0,1),f)){var y=lh(f(0,1));u.push(y,y)}var x=()=>1-o,w=t.animate(u,{duration:d,fill:"forwards"});return w.onfinish=()=>{w.cancel();var S=i?.t()??1-o;i?.abort();var T=o-S,k=e.duration*Math.abs(T),V=[];if(k>0){var A=!1;if(f)for(var L=Math.ceil(k/16.666666666666668),P=0;P<=L;P+=1){var Q=S+T*g(P/L),D=lh(f(Q,1-Q));V.push(D),A||=D.overflow==="hidden"}A&&(t.style.overflow="hidden"),x=()=>{var J=w.currentTime;return S+T*g(J/k)},p&&ah(()=>{if(w.playState!=="running")return!1;var J=x();return p(J,1-J),!0})}w=t.animate(V,{duration:k,fill:"forwards"}),w.onfinish=()=>{x=()=>o,p?.(o,1-o),r()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=oe)},deactivate:()=>{r=oe},reset:()=>{o===0&&p?.(1,0)},t:()=>x()}}var jp=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var r=this.#t.get(e);r.delete(i),r.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var S_=new jp({box:"border-box"});function Gn(t,e,i){var o=S_.observe(t,()=>i(t[e]));co(()=>(ht(()=>i(t[e])),o))}function dh(t,e){return t===e||t?.[$o]===e}function tt(t={},e,i,o){return co(()=>{var r,s;return So(()=>{r=s,s=o?.()||[],ht(()=>{t!==i(...s)&&(e(t,...s),r&&dh(i(...r),t)&&e(null,...r))})}),()=>{Yo(()=>{s&&dh(i(...s),t)&&e(null,...s)})}}),t}function Ar(t=!1){let e=Lt,i=e.l.u;if(!i)return;let o=()=>Hc(e.s);if(t){let r=0,s={},a=Tr(()=>{let l=!1,d=e.s;for(let f in d)d[f]!==s[f]&&(s[f]=d[f],l=!0);return l&&r++,r});o=()=>n(a)}i.b.length&&zl(()=>{ch(e,o),Ss(i.b)}),Be(()=>{let r=ht(()=>i.m.map(Wv));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&Be(()=>{ch(e,o),Ss(i.a)})}function ch(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function td(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=ht(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ja=[];function ar(t,e){return{subscribe:te(t,e).subscribe}}function te(t,e=oe){let i=null,o=new Set;function r(l){if(Ra(t,l)&&(t=l,i)){let d=!Ja.length;for(let f of o)f[1](),Ja.push(f,t);if(d){for(let f=0;f<Ja.length;f+=2)Ja[f][0](Ja[f+1]);Ja.length=0}}}function s(l){r(l(t))}function a(l,d=oe){let f=[l,d];return o.add(f),o.size===1&&(i=e(r,s)||oe),l(t),()=>{o.delete(f),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:a}}function li(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return ar(i,(a,l)=>{let d=!1,f=[],p=0,g=oe,u=()=>{if(p)return;g();let x=e(o?f[0]:f,a,l);s?a(x):g=typeof x=="function"?x:oe},y=r.map((x,w)=>td(x,S=>{f[w]=S,p&=~(1<<w),d&&u()},()=>{p|=1<<w}));return d=!0,u(),function(){Ss(y),g(),d=!1}})}function ve(t){let e;return td(t,i=>e=i)(),e}var qc=!1,Yp=Symbol();function $(t,e,i){let o=i[e]??={store:null,source:jr(void 0),unsubscribe:oe};if(o.store!==t&&!(Yp in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var r=!0;o.unsubscribe=td(t,s=>{r?o.source.v=s:N(o.source,s)}),r=!1}return t&&Yp in i?ve(t):n(o.source)}function Ve(){let t={};function e(){yo(()=>{for(var i in t)t[i].unsubscribe();zi(t,Yp,{enumerable:!1,value:!0})})}return[t,e]}function Zp(t){var e=qc;try{return qc=!1,[t(),qc]}finally{qc=e}}var A_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&tg(`${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 Ie(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},A_)}var M_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ws(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 r=t.props[o];ws(r)&&(r=r());let s=Mo(r,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(ws(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Mo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===$o||e===La)return!1;for(let i of t.props)if(ws(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(ws(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 ps(...t){return new Proxy({props:t},M_)}function uh(t){return t.ctx?.d??!1}function m(t,e,i,o){var r=(i&1)!==0,s=!qr||(i&2)!==0,a=(i&8)!==0,l=(i&16)!==0,d=!1,f;a?[f,d]=Zp(()=>t[e]):f=t[e];var p=$o in t||La in t,g=a&&(Mo(t,e)?.set??(p&&e in t&&(Q=>t[e]=Q)))||void 0,u=o,y=!0,x=!1,w=()=>(x=!0,y&&(y=!1,l?u=ht(o):u=o),u);f===void 0&&o!==void 0&&(g&&s&&eg(e),f=w(),g&&g(f));var S;if(s)S=()=>{var Q=t[e];return Q===void 0?w():(y=!0,x=!1,Q)};else{var T=(r?Tr:kr)(()=>t[e]);T.f|=131072,S=()=>{var Q=n(T);return Q!==void 0&&(u=void 0),Q===void 0?u:Q}}if((i&4)===0&&s)return S;if(g){var k=t.$$legacy;return function(Q,D){return arguments.length>0?((!s||!D||k||d)&&g(D?S():Q),Q):S()}}var V=!1,A=!1,L=jr(f),P=Tr(()=>{var Q=S(),D=n(L);return V?(V=!1,A=!0,D):(A=!1,L.v=Q)});return a&&n(P),r||(P.equals=Na),function(Q,D){if(Bc!==null&&(V=A,S(),n(L)),arguments.length>0){let J=D?n(P):s&&a?Xt(Q):Q;if(!P.equals(J)){if(V=!0,N(L,J),x&&u!==void 0&&(u=J),uh(P))return Q;ht(()=>n(P))}return Q}return uh(P)?P.v:n(P)}}var L_;typeof HTMLElement=="function"&&(L_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{let a=document.createElement("slot");r!=="default"&&(a.name=r),b(s,a)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=V_(this);for(let r of this.$$s)r in o&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),i.default=!0):i[r]=e(r));for(let r of this.attributes){let s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Xp(s,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Wg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Vc(()=>{So(()=>{this.$$r=!0;for(let r of dp(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];let s=Xp(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(let r in this.$$l)for(let s of this.$$l[r]){let a=this.$$c.$on(r,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Xp(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return dp(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Xp(t,e,i,o){let r=i[t]?.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function V_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var ph="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ph);var bl=require("@vkontakte/videoplayer-core"),cj=require("@vkontakte/videoplayer-core"),Pa=require("@vkontakte/videoplayer-shared"),u0=require("@vkontakte/videoplayer-statistics");var ea=require("@vkontakte/videoplayer-shared");var R_={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:ea.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:ea.VideoQuality.Q_480P,highQualityLimit:ea.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,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,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"},fh=t=>(0,ea.fillWithDefault)(t,R_),mh=t=>Da("ui-config",t),Tt=()=>Ba("ui-config");var id="vk_player_debug_panel_opened";var vh="videoplayer",gh="videoplayer";var Xr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},hh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),_h=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),bh=new Set(["ShiftRight","ShiftLeft"]);var $h=["TIMELINE"],od=[...$h,"GRAPH_BUTTON"],Jp=[...$h,"PLAY_BUTTON"],nd=[...od,"PLAY_BUTTON"];var Mr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Mr||{}),ia={xs:0,s:1,m:2,l:3,xl:4};var rd=require("@vkontakte/videoplayer-shared"),yh=require("@vkontakte/videoplayer-core"),xh=require("@vkontakte/videoplayer-statistics");var Qc="prod",oa="1.1.72-dev.752fa0a9.0";var na=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var wh=Symbol("storeContext"),Sh=Symbol("microStoresContext"),Ch=(t,e)=>{Da(wh,t),Da(Sh,e),Qc==="dev"&&(window.app={store:t,microStores:e})},xe=()=>{let t=Ba(wh);return(0,rd.assertNonNullable)(t,"Store context is empty!"),t},Ji=()=>{let t=Ba(Sh);return(0,rd.assertNonNullable)(t,"MicroStores context is empty!"),t},jt=(t,e)=>jc(t,t.getValue(),e),jc=(t,e,i)=>ar(e,o=>{let r=t.subscribe(s=>{o(s),i?.(s)});return()=>r.unsubscribe()}),Th=(t,e,i,o)=>{let r=t.info,{width:s,height:a}=ve(i.ui.playerSize),l=r.throughputEstimation$.getValue()?.toFixed(0)??0,d=r.rttEstimation$.getValue()?.toFixed(0)??0,f=r.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${oa} (core: ${yh.VERSION}, stat: ${xh.VERSION}, shared: ${rd.VERSION})`,g=ve(i.state.errorLog$),u=g.length?`
45
- `+g.map((P,Q)=>{let D=`${Q}) Type: ${P.id}
46
- `,J=`Message: ${P.message} (${P.thrown})
47
- `,ie=`Trace: ${P.thrown?.stack}
48
- `;return D+J+ie}).join(`
49
- `):void 0,y=i.state.isAudioDisabled?"disabled":ve(i.state.isAudioAvailable$)?void 0:"unavailable",x=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),S=[];x&&S.push(`Video: ${x?.codec??""}`+(x?.hdr?" (HDR)":"")),w&&S.push(`Audio: ${w?.codec??""}`+(w?.language?` (${w.language})`:""));let T=r.currentQuality$.getValue(),k="";if(T){let P=r.availableQualitiesFps$.getValue()[T];k=P?`${P}fps`:""}let V=r.currentBuffer$.getValue()?.end??0,A=Math.max(V-ve(i.state.positionExact$),0),L={Version:p,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:ve(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":r.httpConnectionType$.getValue()+(r.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${d}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${f} ${T} ${k}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:y,Position:`${ve(i.state.positionExact$)}s`,Buffer:`${A}s`,State:`${ve(i.playerPhase)} ${r.playbackState$.getValue()}`,"Player size":`${s}x${a}`,URL:window.location.href,Errors:u};return Object.entries(L).filter(([P,Q])=>Q!==void 0).map(([P,Q])=>`${P}: ${Q}`).join(`
50
- `)},kh=(t,e,i)=>{let o=t.info,{width:r,height:s}=ve(i.ui.playerSize),a={version:oa,viewport:`${r}x${s}`,volume:Math.round(ve(i.state.volume$)*100)};a.id=i.videoId,o.currentFormat$.getValue()&&(a.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(a.cdn=o.hostname$.getValue());let f=o.intrinsicVideoSize$.getValue();f&&(a.videoSize=`${f.width}x${f.height}`);let p=o.currentBuffer$.getValue(),g=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();p&&(g&&u?a.buffer=p.end-u:a.buffer=Math.max(p.end-ve(i.state.positionExact$),0)),a.position=ve(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(a.speed=y);let x=o.videoBitrate$.getValue();x&&(a.bitrate=x);let w=o.liveLatency$.getValue();w&&(a.liveLatency=w);let S=o.currentVideoSegmentLength$.getValue();S&&(a.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(a.currentAudioSegmentLength=T);let k=ve(i.vsid);typeof k=="string"&&(a.vsid=k);let V=t.info.currentVideoStream$.getValue()?.codec;V&&(a.videoCodec=V);let A=t.info.currentAudioStream$.getValue()?.codec;A&&(a.audioCodec=A),t.info.currentVideoStream$.getValue()?.hdr&&(a.hdr=!0);let P=t.info.currentAudioStream$.getValue()?.language;return P&&(a.audioLanguage=P),a},Ih=(t,e)=>na(t,e,"mp4"),Eh=t=>!t.type,Ph=t=>!!t.type,Ah=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Gc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var ii=require("@vkontakte/videoplayer-shared"),QP=require("@vkontakte/videoplayer-core"),Mh="vk_player_prefer_traffic_saving_enabled",Lh="vk_player_preferred_volume",Vh="vk_player_prefer_volume_mute",nf="vk_player_preferred_quality",ef="vk_player_preferred_default_quality_settings",tf="vk_player_preferred_quality_settings_by_video",Rh="vk_player_preferred_stream_language",Nh="vk_player_preferred_rate",Oh="vk_player_preferred_autoplay_next",of="vk_player_preferred_subtitles_language",Bh="vk_player_user_video_prefs",Dh=t=>t>1?1:t<0?0:t,rf=t=>ii.safeStorage.set(Lh,Dh(t).toString(10)),Yc=()=>{let t=ii.safeStorage.get(Lh);return(0,ii.isNullable)(t)?void 0:Dh(parseFloat(t))},sf=(t,e)=>ii.safeStorage.set(nf,JSON.stringify({videoId:t,value:e})),Zc=()=>ii.safeStorage.remove(nf),af=t=>{let e=ii.safeStorage.get(nf);if((0,ii.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Zc();return}return o},lf=(t,e)=>{e?ii.safeStorage.set(t,"true"):ii.safeStorage.remove(t)},df=t=>ii.safeStorage.get(t)==="true",cf=t=>lf(Vh,t),Hh=()=>df(Vh),sd=t=>lf(Mh,t),uf=()=>df(Mh),Fh=()=>ii.safeStorage.get(Rh),pf=t=>ii.safeStorage.set(Rh,t),ff=()=>ii.safeStorage.get(of),mf=t=>{t?ii.safeStorage.set(of,t):ii.safeStorage.remove(of)},Uh=t=>ii.safeStorage.set(Nh,JSON.stringify({rate:t})),zh=()=>{let t=ii.safeStorage.get(Nh);if((0,ii.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Wh=t=>lf(Oh,t),Kh=()=>df(Oh),N_=()=>{let t=p=>{ii.safeStorage.set(ef,JSON.stringify(p))},e=()=>{try{let p=ii.safeStorage.get(ef);return p?JSON.parse(p):null}catch{return null}},i=()=>{try{let p=ii.safeStorage.get(tf);return p?JSON.parse(p):null}catch{return null}},o=p=>{ii.safeStorage.set(tf,JSON.stringify(p))},r=p=>{f(p);let g=p?i():null;if(g&&g?.videoId===p)return{...g,appliesTo:"to-video"};g&&s();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{ii.safeStorage.remove(tf)},a=()=>{ii.safeStorage.remove(ef)},l=(p,g="as-default")=>{p.type==="exact_quality"||g==="to-video"?o(p):t(p)},d=p=>{let g=r(p);if(g){switch(g.type){case"traffic_saving":sd(!0);break;case"exact_quality":sf(p,g.quality)}s(),a()}},f=p=>{let g=af(p);if(g){o({type:"exact_quality",videoId:p,quality:g});return}uf()&&t({type:"traffic_saving",videoId:p}),sd(!1),Zc()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:d,savePreferredQualitySettings:l,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:ff,savePreferredSubtitlesLanguage:mf}},{getPreferredQualitySettings:qh,migrateSettingsToLegacyWay:Qh,savePreferredQualitySettings:Xc,savePreferredDefaultQualitySettings:GP,removePreferredQualitySettingsByVideo:jP,getPreferredDefaultQualitySettings:Jc}=N_(),O_=3,B_=3,Gh=()=>{let t=ii.safeStorage.get(Bh);if(t)try{return JSON.parse(t)}catch{return null}return null},eu=(t,e)=>Gh()?.[t]?.[e]??null,vf=(t,e,i)=>{let o=Gh()??{},r=o[t]?.[e]??{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=D_(o);ii.safeStorage.set(Bh,JSON.stringify(s))};function D_(t){let e=Object.entries(t).reduce((o,[r,s])=>{let a=0;return Object.values(s).forEach(l=>{a<l.updatedTs&&(a=l.updatedTs)}),o.push([r,a]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(B_),e.reduce((o,[r])=>(o[r]=H_(t[r]),o),{})}function H_(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(O_),Object.fromEntries(e)}var xv=require("@vkontakte/videoplayer-core");var F_=$e('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function ad(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=F_();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}var el=require("@vkontakte/videoplayer-shared");var U_={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 js=!1,qa=null,Ys=!1,as=!1;function mp(t){as=t}var zl=[],Wl=[],St=null,qn=!1;function bi(t){St=t}var mt=null;function Fi(t){mt=t}var Wn=null;function wc(t){St!==null&&St.f&2097152&&(Wn===null?Wn=[St,[t]]:Wn[1].push(t))}var Jo=null,Qn=0,Kn=null;function Jv(t){Kn=t}var _g=1,Mc=0,ls=!1,Lc=null;function Ml(){return++_g}function Ks(t){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 r,s,a=(e&512)!==0,l=o&&mt!==null&&!ls,d=i.length;if(a||l){var f=t,p=f.parent;for(r=0;r<d;r++)s=i[r],(a||!s?.reactions?.includes(f))&&(s.reactions??=[]).push(f);a&&(f.f^=512),l&&p!==null&&(p.f&256)===0&&(f.f^=256)}for(r=0;r<d;r++)if(s=i[r],Ks(s)&&fp(s),s.wv>t.wv)return!0}(!o||mt!==null&&!ls)&&Yo(t,1024)}return!1}function bg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];Wn?.[1].includes(t)&&Wn[0]===St||((s.f&2)!==0?bg(s,e,!1):e===s&&(i?Yo(s,2048):(s.f&1024)!==0&&Yo(s,4096),Vl(s)))}}function xc(t){var e=Jo,i=Qn,o=Kn,r=St,s=ls,a=Wn,l=Rt,d=qn,f=t.f;Jo=null,Qn=0,Kn=null,ls=(f&256)!==0&&(qn||!Ys||St===null),St=(f&96)===0?t:null,Wn=null,El(t.ctx),qn=!1,Mc++,t.f|=2097152;try{var p=(0,t.fn)(),g=t.deps;if(Jo!==null){var u;if(Hl(t,Qn),g!==null&&Qn>0)for(g.length=Qn+Jo.length,u=0;u<Jo.length;u++)g[Qn+u]=Jo[u];else t.deps=g=Jo;if(!ls||(f&2)!==0&&t.reactions!==null)for(u=Qn;u<g.length;u++)(g[u].reactions??=[]).push(t)}else g!==null&&Qn<g.length&&(Hl(t,Qn),g.length=Qn);if(Gr()&&Kn!==null&&!qn&&g!==null&&(t.f&6146)===0)for(u=0;u<Kn.length;u++)bg(Kn[u],t);return r!==null&&r!==t&&(Mc++,Kn!==null&&(o===null?o=Kn:o.push(...Kn))),p}catch(y){vg(y)}finally{Jo=e,Qn=i,Kn=o,St=r,ls=s,Wn=a,El(l),qn=d,t.f^=2097152}}function P0(t,e){let i=e.reactions;if(i!==null){var o=Mv.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(Jo===null||!Jo.includes(e))&&(Yo(e,4096),(e.f&768)===0&&(e.f^=512),yc(e),Hl(e,0))}function Hl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)P0(t,i[o])}function za(t){var e=t.f;if((e&16384)===0){Yo(t,1024);var i=mt,o=Ys;if(mt=t,Ys=!0,ke){var r=Un;Pl(t.component_function)}try{(e&16)!==0?cg(t):_p(t),hp(t);var s=xc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=_g,ke&&Qr&&(t.f&2048)!==0&&t.deps!==null)for(var a of t.deps)a.set_during_effect&&(a.wv=Ml(),a.set_during_effect=!1);ke&&Wl.push(t)}finally{Ys=o,mt=i,ke&&Pl(r)}}}function gg(){console.error("Last ten effects were: ",Wl.slice(-10).map(t=>t.fn)),Wl=[]}function A0(){try{Fv()}catch(t){if(ke&&Hi(t,"stack",{value:""}),qa!==null)if(ke)try{Ul(t,qa)}catch(e){throw gg(),e}else Ul(t,qa);else throw ke&&gg(),t}}function Sp(){var t=Ys;try{var e=0;for(Ys=!0;zl.length>0;){e++>1e3&&A0();var i=zl,o=i.length;zl=[];for(var r=0;r<o;r++){var s=L0(i[r]);M0(s)}Fa.clear()}}finally{js=!1,Ys=t,qa=null,ke&&(Wl=[])}}function M0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ks(o)&&(za(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?$p(o):o.fn=null))}}function Vl(t){js||(js=!0,queueMicrotask(Sp));for(var e=qa=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}zl.push(e)}function L0(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:Ks(i)&&za(i);var a=i.first;if(a!==null){i=a;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function Qa(t){var e;for(t&&(js=!0,Sp(),js=!0,e=t());;){if(fg(),zl.length===0)return js=!1,qa=null,ke&&(Wl=[]),e;js=!0,Sp()}}async function ao(){await Promise.resolve(),Qa()}function n(t){var e=t.f,i=(e&2)!==0;if(Lc!==null&&Lc.add(t),St!==null&&!qn){if(!Wn?.[1].includes(t)||Wn[0]!==St){var o=St.deps;t.rv<Mc&&(t.rv=Mc,Jo===null&&o!==null&&o[Qn]===t?Qn++:Jo===null?Jo=[t]:(!ls||!Jo.includes(t))&&Jo.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,Ks(r)&&fp(r)),ke&&Qr&&!qn&&Il!==null&&St!==null&&Il.reaction===St)if(t.trace)t.trace();else{var a=ss("TracedAt");if(a){var l=Il.entries.get(t);l===void 0&&(l={traces:[]},Il.entries.set(t,l));var d=l.traces[l.traces.length-1];a.stack!==d?.stack&&l.traces.push(a)}}return as&&Fa.has(t)?Fa.get(t):t.v}function $t(t){var e=qn;try{return qn=!0,t()}finally{qn=e}}var V0=-7169;function Yo(t,e){t.f=t.f&V0|e}function Rc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(vo in t)Vc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&vo in i&&Vc(i)}}}function Vc(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{Vc(t[o],e)}catch{}let i=Fs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=gc(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch{}}}}}function Cp(t,e){if(e){let i=document.body;t.autofocus=!0,Xo(()=>{document.activeElement===i&&t.focus()})}}function Kl(t){var e=St,i=mt;bi(null),Fi(null);try{return t()}finally{bi(e),Fi(i)}}var Tp=new Set,Nc=new Set;function Zs(t){if(!je)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 kp(t,e,i,o={}){function r(s){if(o.capture||Ga.call(e,s),!s.cancelBubble)return Kl(()=>i?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Xo(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function yt(t,e,i,o,r){var s={capture:o,passive:r},a=kp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&go(()=>{e.removeEventListener(t,a,s)})}function dt(t){for(var e=0;e<t.length;e++)Tp.add(t[e]);for(var i of Nc)i(t)}function Ga(t){var e=this,i=e.ownerDocument,o=t.type,r=t.composedPath?.()||[],s=r[0]||t.target,a=0,l=t.__root;if(l){var d=r.indexOf(l);if(d!==-1&&(e===document||e===window)){t.__root=e;return}var f=r.indexOf(e);if(f===-1)return;d<=f&&(a=d)}if(s=r[a]||t.target,s!==e){Hi(t,"currentTarget",{configurable:!0,get(){return s||i}});var p=St,g=mt;bi(null),Fi(null);try{for(var u,y=[];s!==null;){var x=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+o];if(w!=null&&(!s.disabled||t.target===s))if(Hn(w)){var[S,...T]=w;S.apply(s,[t,...T])}else w.call(s,t)}catch(k){u?y.push(k):u=k}if(t.cancelBubble||x===e||x===null)break;s=x}if(u){for(let k of y)queueMicrotask(()=>{throw k});throw u}}finally{t.__root=e,delete t.currentTarget,bi(p),Fi(g)}}}var N0;function $g(){N0=void 0}function ja(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function lo(t,e){var i=mt;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,r,s=!t.startsWith("<!>");return()=>{if(je)return lo(vt,null),vt;r===void 0&&(r=ja(s?t:"<!>"+t),i||(r=ei(r)));var a=o||Rl?document.importNode(r,!0):r.cloneNode(!0);if(i){var l=ei(a),d=a.lastChild;lo(l,d)}else lo(a,a);return a}}function D0(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,a;return()=>{if(je)return lo(vt,null),vt;if(!a){var l=ja(s),d=ei(l);if(r)for(a=document.createDocumentFragment();ei(d);)a.appendChild(ei(d));else a=ei(d)}var f=a.cloneNode(!0);if(r){var p=ei(f),g=f.lastChild;lo(p,g)}else lo(f,f);return f}}function we(t,e){return D0(t,e,"svg")}function Yr(t=""){if(!je){var e=Zo(t+"");return lo(e,e),e}var i=vt;return i.nodeType!==Va&&(i.before(i=Zo()),Jt(i)),lo(i,i),i}function Be(){if(je)return lo(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Zo();return t.append(e,i),lo(e,i),t}function b(t,e){if(je){mt.nodes_end=vt,yi();return}t!==null&&t.before(e)}var H0=/\r/g;function xg(t){t=t.replace(H0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function wg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var F0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Sg(t){return F0.includes(t)}var U0=["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 z0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Cg(t){return t=t.toLowerCase(),z0[t]??t}var y6=[...U0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var W0=["touchstart","touchmove"];function Tg(t){return W0.includes(t)}var K0=["$state","$state.raw","$derived","$derived.by"],x6=[...K0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var q0=["textarea","script","style","title"];function kg(t){return q0.includes(t)}function Bc(t){return t?.replace(/\//g,"/\u200B")}var ql=!0;function Oc(t){ql=t}function fe(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Zr(t,e){return Ig(t,e)}function Ep(t,e){Tc(),e.intro=e.intro??!1;let i=e.target,o=je,r=vt;try{for(var s=ei(i);s&&(s.nodeType!==Fn||s.data!==$s);)s=_o(s);if(!s)throw Kr;Ui(!0),Jt(s),yi();let a=Ig(t,{...e,anchor:s});if(vt===null||vt.nodeType!==Fn||vt.data!==Hs)throw Ss(),Kr;return Ui(!1),a}catch(a){if(a===Kr)return e.recover===!1&&Uv(),Tc(),Nl(i),Ui(!1),Zr(t,e);throw a}finally{Ui(o),Jt(r),$g()}}var Ya=new Map;function Ig(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:a=!0}){Tc();var l=new Set,d=g=>{for(var u=0;u<g.length;u++){var y=g[u];if(!l.has(y)){l.add(y);var x=Tg(y);e.addEventListener(y,Ga,{passive:x});var w=Ya.get(y);w===void 0?(document.addEventListener(y,Ga,{passive:x}),Ya.set(y,1)):Ya.set(y,w+1)}}};d(kl(Tp)),Nc.add(d);var f=void 0,p=dg(()=>{var g=i??e.appendChild(Zo());return pi(()=>{if(s){F({});var u=Rt;u.c=s}r&&(o.$$events=r),je&&lo(g,null),ql=a,f=t(g,o)||{},ql=!0,je&&(mt.nodes_end=vt),s&&U()}),()=>{for(var u of l){e.removeEventListener(u,Ga);var y=Ya.get(u);--y===0?(document.removeEventListener(u,Ga),Ya.delete(u)):Ya.set(u,y)}Nc.delete(d),g!==i&&g.parentNode?.removeChild(g)}});return Ip.set(f,p),f}var Ip=new WeakMap;function Xs(t,e){let i=Ip.get(t);return i?(Ip.delete(t),i(e)):(ke&&ig(),Promise.resolve())}function me(t,e,...i){var o=t,r=ne,s;xi(()=>{r!==(r=e())&&(s&&($i(s),s=null),ke&&r==null&&zv(),s=pi(()=>r(o,...i)))},65536),je&&(o=vt)}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;qv(e)},set:o=>{i=o}})}};Y0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var Y0;function At(t){Rt===null&&Ba("onMount"),qr&&Rt.l!==null?j0(Rt).m.push(t):De(()=>{let e=$t(t);if(typeof e=="function")return e})}function No(t){Rt===null&&Ba("onDestroy"),At(()=>()=>$t(t))}function j0(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}var Eg=new Map;function Pg(t,e){var i=Eg.get(t);i||(i=new Set,Eg.set(t,i)),i.add(e)}function M(t,e,[i,o]=[0,0]){je&&i===0&&yi();var r=t,s=null,a=null,l=Ii,d=i>0?65536:0,f=!1;let p=(u,y=!0)=>{f=!0,g(y,u)},g=(u,y)=>{if(l===(l=u))return;let x=!1;if(je&&o!==-1){if(i===0){let S=Cc(r);S===$s?o=0:S===ys?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=l?1/0:-1))}let w=o>i;!!l===w&&(r=qs(),Jt(r),Ui(!1),x=!0,o=-1)}l?(s?cs(s):y&&(s=pi(()=>y(r))),a&&wn(a,()=>{a=null})):(a?cs(a):y&&(a=pi(()=>y(r,[i+1,o]))),s&&wn(s,()=>{s=null})),x&&Ui(!0)};xi(()=>{f=!1,e(p),f||g(null,null)},d),je&&(r=vt)}function Js(t,e,i){je&&yi();var o=t,r=Ii,s,a=Gr()?Nv:Ra;xi(()=>{a(r,r=e())&&(s&&wn(s),s=pi(()=>i(o)))}),je&&(o=vt)}var Ts=null;function Mp(t){Ts=t}function Ql(t,e){return e}function J0(t,e,i,o){for(var r=[],s=e.length,a=0;a<s;a++)Pc(e[a].e,r,!0);var l=s>0&&r.length===0&&i!==null;if(l){var d=i.parentNode;Nl(d),d.append(i),o.clear(),Cs(t,e[0].prev,e[s-1].next)}yp(r,()=>{for(var f=0;f<s;f++){var p=e[f];l||(o.delete(p.k),Cs(t,p.prev,p.next)),$i(p.e,!l)}})}function ai(t,e,i,o,r,s=null){var a=t,l={flags:e,items:new Map,first:null},d=(e&4)!==0;if(d){var f=t;a=je?Jt(ei(f)):f.appendChild(Zo())}je&&yi();var p=null,g=!1,u=kr(()=>{var y=i();return Hn(y)?y:y==null?[]:kl(y)});xi(()=>{var y=n(u),x=y.length;if(g&&x===0)return;g=x===0;let w=!1;if(je){var S=Cc(a)===ys;S!==(x===0)&&(a=qs(),Jt(a),Ui(!1),w=!0)}if(je){for(var T=null,k,L=0;L<x;L++){if(vt.nodeType===Fn&&vt.data===Hs){a=vt,w=!0,Ui(!1);break}var A=y[L],I=o(A,L);k=Lg(vt,l,T,null,A,I,L,r,e,i),l.items.set(I,k),T=k}x>0&&Jt(qs())}je||e_(y,l,a,r,e,o,i),s!==null&&(x===0?p?cs(p):p=pi(()=>s(a)):p!==null&&wn(p,()=>{p=null})),w&&Ui(!0),n(u)}),je&&(a=vt)}function e_(t,e,i,o,r,s,a){var l=(r&8)!==0,d=(r&3)!==0,f=t.length,p=e.items,g=e.first,u=g,y,x=null,w,S=[],T=[],k,L,A,I;if(l)for(I=0;I<f;I+=1)k=t[I],L=s(k,I),A=p.get(L),A!==void 0&&(A.a?.measure(),(w??=new Set).add(A));for(I=0;I<f;I+=1){if(k=t[I],L=s(k,I),A=p.get(L),A===void 0){var O=u?u.e.nodes_start:i;x=Lg(O,e,x,x===null?e.first:x.next,k,L,I,o,r,a),p.set(L,x),S=[],T=[],u=x.next;continue}if(d&&t_(A,k,I,r),(A.e.f&8192)!==0&&(cs(A.e),l&&(A.a?.unfix(),(w??=new Set).delete(A))),A!==u){if(y!==void 0&&y.has(A)){if(S.length<T.length){var G=T[0],D;x=G.prev;var ee=S[0],X=S[S.length-1];for(D=0;D<S.length;D+=1)Ag(S[D],G,i);for(D=0;D<T.length;D+=1)y.delete(T[D]);Cs(e,ee.prev,X.next),Cs(e,x,ee),Cs(e,X,G),u=G,x=X,I-=1,S=[],T=[]}else y.delete(A),Ag(A,u,i),Cs(e,A.prev,A.next),Cs(e,A,x===null?e.first:x.next),Cs(e,x,A),x=A;continue}for(S=[],T=[];u!==null&&u.k!==L;)(u.e.f&8192)===0&&(y??=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;A=u}S.push(A),x=A,u=A.next}if(u!==null||y!==void 0){for(var ae=y===void 0?[]:kl(y);u!==null;)(u.e.f&8192)===0&&ae.push(u),u=u.next;var j=ae.length;if(j>0){var ue=(r&4)!==0&&f===0?i:null;if(l){for(I=0;I<j;I+=1)ae[I].a?.measure();for(I=0;I<j;I+=1)ae[I].a?.fix()}J0(e,ae,ue,p)}}l&&Xo(()=>{if(w!==void 0)for(A of w)A.a?.apply()}),mt.first=e.first&&e.first.e,mt.last=x&&x.e}function t_(t,e,i,o){(o&1)!==0&&Ua(t.v,e),(o&2)!==0?Ua(t.i,i):t.i=i}function Lg(t,e,i,o,r,s,a,l,d,f){var p=Ts,g=(d&1)!==0,u=(d&16)===0,y=g?u?jr(r,!1,!1):dr(r):r,x=(d&2)===0?a:dr(a);ke&&g&&(y.trace=()=>{var S=typeof x=="number"?a:x.v;f()[S]});var w={i:x,v:y,k:s,a:null,e:null,prev:i,next:o};Ts=w;try{return w.e=pi(()=>l(t,y,x,f),je),w.e.prev=i&&i.e,w.e.next=o&&o.e,i===null?e.first=w:(i.next=w,i.e.next=w.e),o!==null&&(o.prev=w,o.e.prev=w.e),w}finally{Ts=p}}function Ag(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var a=_o(s);r.before(s),s=a}}function Cs(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 i_(t,e,i){if(!e||e===xg(String(i??"")))return;let o,r=t.__svelte_meta?.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:Un?.[bn]&&(o=`in ${Un[bn]}`),tg(Bc(o))}function Gl(t,e,i=!1,o=!1,r=!1){var s=t,a="";N(()=>{var l=mt;if(a===(a=e()??"")){je&&yi();return}if(l.nodes_start!==null&&(bp(l.nodes_start,l.nodes_end),l.nodes_start=l.nodes_end=null),a!==""){if(je){for(var d=vt.data,f=yi(),p=f;f!==null&&(f.nodeType!==Fn||f.data!=="");)p=f,f=_o(f);if(f===null)throw Ss(),Kr;ke&&!r&&i_(f.parentNode,d,a),lo(vt,p),s=Jt(f);return}var g=a+"";i?g=`<svg>${g}</svg>`:o&&(g=`<math>${g}</math>`);var u=ja(g);if((i||o)&&(u=ei(u)),lo(ei(u),u.lastChild),i||o)for(;ei(u);)s.before(ei(u));else s.before(u)}})}function li(t,e,i){je&&yi();var o=t,r,s;xi(()=>{r!==(r=e())&&(s&&(wn(s),s=null),r&&(s=pi(()=>i(o,r))))},65536),je&&(o=vt)}function ea(t,e,i,o,r,s){let a=je;je&&yi();var l=ke&&s&&Rt?.function[bn],d,f,p=null;je&&vt.nodeType===_c&&(p=vt,yi());var g=je?vt:t,u,y=Ts;xi(()=>{let x=e()||null;var w=r?r():i||x==="svg"?mc:null;if(x!==d){var S=Ts;Mp(y),u&&(x===null?wn(u,()=>{u=null,f=null}):x===f?cs(u):($i(u),Oc(!1))),x&&x!==f&&(u=pi(()=>{if(p=je?p:w?document.createElementNS(w,x):document.createElement(x),ke&&s&&(p.__svelte_meta={loc:{file:l,line:s[0],column:s[1]}}),lo(p,p),o){je&&kg(x)&&p.append(document.createComment(""));var T=je?ei(p):p.appendChild(Zo());je&&(T===null?Ui(!1):Jt(T)),o(p,T)}mt.nodes_end=p,g.before(p)})),d=x,d&&(f=d),Oc(!0),Mp(S)}},65536),a&&(Ui(!0),Jt(g))}var Vp;function Vg(t){return Vp=t.target,new Lp(t)}var Lp=class{#t;#e;constructor(e){var i=new Map,o=(s,a)=>{var l=jr(a,!1,!1);return i.set(s,l),l};let r=new Proxy({...e.props||{},$$events:{}},{get(s,a){return n(i.get(a)??o(a,Reflect.get(s,a)))},has(s,a){return a===La?!0:(n(i.get(a)??o(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return V(i.get(a)??o(a,l),l),Reflect.set(s,a,l)}});this.#e=(e.hydrate?Ep:Zr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Qa(),this.#t=r.$$events;for(let s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Hi(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(r,s)},this.#e.$destroy=()=>{Xs(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...r)=>i.call(this,...r);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(r=>r!==o)}}$destroy(){this.#e.$destroy()}};function W(t,e){Xo(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??Vp?.parentNode;if(!o?.querySelector("#"+e.hash)){let r=document.createElement("style");r.id=e.hash,r.textContent=e.code,o.appendChild(r),ke&&Pg(e.hash,r)}})}function us(t,e){var i=void 0,o;xi(()=>{i!==(i=e())&&(o&&($i(o),o=null),i&&(o=pi(()=>{so(()=>i(t))})))})}function Rg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Rg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Ng(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Rg(t))&&(o&&(o+=" "),o+=e);return o}function jl(t){return typeof t=="object"?Ng(t):t??""}var Bg=[...`
44
+ \r\f\xA0\v\uFEFF`];function Dg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var s=r.length,a=0;(a=o.indexOf(r,a))>=0;){var l=a+s;(a===0||Bg.includes(o[a-1]))&&(l===o.length||Bg.includes(o[l]))?o=(a===0?"":o.substring(0,a))+o.substring(l+1):a=l}}return o===""?null:o}function Og(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function Rp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Hg(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,a=0,l=!1,d=[];o&&d.push(...Object.keys(o).map(Rp)),r&&d.push(...Object.keys(r).map(Rp));var f=0,p=-1;let w=t.length;for(var g=0;g<w;g++){var u=t[g];if(l?u==="/"&&t[g-1]==="*"&&(l=!1):s?s===u&&(s=!1):u==="/"&&t[g+1]==="*"?l=!0:u==='"'||u==="'"?s=u:u==="("?a++:u===")"&&a--,!l&&s===!1&&a===0){if(u===":"&&p===-1)p=g;else if(u===";"||g===w-1){if(p!==-1){var y=Rp(t.substring(f,p).trim());if(!d.includes(y)){u!==";"&&g++;var x=t.substring(f,g).trim();i+=" "+x+";"}}f=g+1,p=-1}}}}return o&&(i+=Og(o)),r&&(i+=Og(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,r,s){var a=t.__className;if(je||a!==i||a===void 0){var l=Dg(i,o,s);(!je||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):e?t.className=l:t.setAttribute("class",l)),t.__className=i}else if(s&&r!==s)for(var d in s){var f=!!s[d];(r==null||f!==!!r[d])&&t.classList.toggle(d,f)}return s}function Np(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function nt(t,e,i,o){var r=t.__style;if(je||r!==e){var s=Hg(e,o);(!je||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Np(t,i?.[0],o[0]),Np(t,i?.[1],o[1],"important")):Np(t,i,o));return o}function Yl(t,e,i){if(t.multiple){if(e==null)return;if(!Hn(e))return og();for(var o of t.options)o.selected=e.includes(Fg(o));return}for(o of t.options){var r=Fg(o);if(lp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Bp(t){var e=new MutationObserver(()=>{Yl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),go(()=>{e.disconnect()})}function Fg(t){return"__value"in t?t.__value:t.value}var Za=Symbol("class"),Xa=Symbol("style"),Wg=Symbol("is custom element"),Kg=Symbol("is html");function qg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Re(t,e,i,o){var r=Gg(t);if(je&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||c_(t,e,i??"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Rv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&jg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Qg(t,e,i,o,r=!1){var s=Gg(t),a=s[Wg],l=!s[Kg];let d=je&&a;d&&Ui(!1);var f=e||{},p=t.tagName==="OPTION";for(var g in e)g in i||(i[g]=null);i.class?i.class=jl(i.class):(o||i[Za])&&(i.class=null),i[Xa]&&(i.style??=null);var u=jg(t);for(let A in i){let I=i[A];if(p&&A==="value"&&I==null){t.value=t.__value="",f[A]=I;continue}if(A==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,y,I,o,e?.[Za],i[Za]),f[A]=I,f[Za]=i[Za];continue}if(A==="style"){nt(t,I,e?.[Xa],i[Xa]),f[A]=I,f[Xa]=i[Xa];continue}var x=f[A];if(!(I===x&&!(I===void 0&&t.hasAttribute(A)))){f[A]=I;var w=A[0]+A[1];if(w!=="$$")if(w==="on"){let O={},G="$$"+A,D=A.slice(2);var S=Sg(D);if(wg(D)&&(D=D.slice(0,-7),O.capture=!0),!S&&x){if(I!=null)continue;t.removeEventListener(D,f[G],O),f[G]=null}if(I!=null)if(S)t[`__${D}`]=I,dt([D]);else{let ee=function(X){f[A].call(this,X)};var L=ee;f[G]=kp(D,t,ee,O)}else S&&(t[`__${D}`]=void 0)}else if(A==="style")Re(t,A,I);else if(A==="autofocus")Cp(t,!!I);else if(!a&&(A==="__value"||A==="value"&&I!=null))t.value=t.__value=I;else if(A==="selected"&&p)qg(t,I);else{var T=A;l||(T=Cg(T));var k=T==="defaultValue"||T==="defaultChecked";if(I==null&&!a&&!k)if(s[A]=null,T==="value"||T==="checked"){let O=t,G=e===void 0;if(T==="value"){let D=O.defaultValue;O.removeAttribute(T),O.defaultValue=D,O.value=O.__value=G?D:null}else{let D=O.defaultChecked;O.removeAttribute(T),O.defaultChecked=D,O.checked=G?D:!1}}else t.removeAttribute(A);else k||u.includes(T)&&(a||typeof I!="string")?t[T]=I:typeof I!="function"&&Re(t,T,I,r)}}}return d&&Ui(!0),f}function Te(t,e,i=[],o,r=!1,s=Tr){let a=i.map(s);var l=void 0,d={},f=t.nodeName==="SELECT",p=!1;if(xi(()=>{var u=e(...a.map(n)),y=Qg(t,l,u,o,r);p&&f&&"value"in u&&Yl(t,u.value,!1);for(let w of Object.getOwnPropertySymbols(d))u[w]||$i(d[w]);for(let w of Object.getOwnPropertySymbols(u)){var x=u[w];w.description===ep&&(!l||x!==l[w])&&(d[w]&&$i(d[w]),d[w]=pi(()=>us(t,()=>x))),y[w]=x}l=y}),f){var g=t;so(()=>{Yl(g,l.value),Bp(g)})}p=!0}function Gg(t){return t.__attributes??={[Wg]:t.nodeName.includes("-"),[Kg]:t.namespaceURI===Pv}}var Ug=new Map;function jg(t){var e=Ug.get(t.nodeName);if(e)return e;Ug.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=gc(o);for(var s in i)i[s].set&&e.push(s);o=Fs(o)}return e}function c_(t,e,i){ke&&(e==="srcset"&&u_(t,i)||Op(t.getAttribute(e)??"",i)||eg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Op(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function zg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function u_(t,e){var i=zg(t.srcset),o=zg(e);return o.length===i.length&&o.every(([r,s],a)=>s===i[a][1]&&(Op(i[a][0],r)||Op(r,i[a][0])))}var p_=vc?()=>performance.now():()=>Date.now(),Pr={tick:t=>(vc?requestAnimationFrame:ne)(t),now:()=>p_(),tasks:new Set};function Yg(){let t=Pr.now();Pr.tasks.forEach(e=>{e.c(t)||(Pr.tasks.delete(e),e.f())}),Pr.tasks.size!==0&&Pr.tick(Yg)}function Zg(t){let e;return Pr.tasks.size===0&&Pr.tick(Yg),{promise:new Promise(i=>{Pr.tasks.add(e={c:t,f:i})}),abort(){Pr.tasks.delete(e)}}}function Dc(t,e){Kl(()=>{t.dispatchEvent(new CustomEvent(e))})}function g_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Xg(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let a=g_(r.trim());e[a]=s.trim()}return e}var h_=t=>t;function Hp(t,e,i,o){var r=(t&1)!==0,s=(t&2)!==0,a=r&&s,l=(t&4)!==0,d=a?"both":r?"in":"out",f,p=e.inert,g=e.style.overflow,u,y;function x(){var L=St,A=mt;bi(null),Fi(null);try{return f??=i()(e,o?.()??{},{direction:d})}finally{bi(L),Fi(A)}}var w={is_global:l,in(){if(e.inert=p,!r){y?.abort(),y?.reset?.();return}s||u?.abort(),Dc(e,"introstart"),u=Dp(e,x(),y,1,()=>{Dc(e,"introend"),u?.abort(),u=f=void 0,e.style.overflow=g})},out(L){if(!s){L?.(),f=void 0;return}e.inert=!0,Dc(e,"outrostart"),y=Dp(e,x(),u,0,()=>{Dc(e,"outroend"),L?.()})},stop:()=>{u?.abort(),y?.abort()}},S=mt;if((S.transitions??=[]).push(w),r&&ql){var T=l;if(!T){for(var k=S.parent;k&&(k.f&65536)!==0;)for(;(k=k.parent)&&(k.f&16)===0;);T=!k||(k.f&32768)!==0}T&&so(()=>{$t(()=>w.in())})}}function Dp(t,e,i,o,r){var s=o===1;if(xs(e)){var a,l=!1;return Xo(()=>{if(!l){var S=e({direction:s?"in":"out"});a=Dp(t,S,i,o,r)}}),{abort:()=>{l=!0,a?.abort()},deactivate:()=>a.deactivate(),reset:()=>a.reset(),t:()=>a.t()}}if(i?.deactivate(),!e?.duration)return r(),{abort:ne,deactivate:ne,reset:ne,t:()=>o};let{delay:d=0,css:f,tick:p,easing:g=h_}=e;var u=[];if(s&&i===void 0&&(p&&p(0,1),f)){var y=Xg(f(0,1));u.push(y,y)}var x=()=>1-o,w=t.animate(u,{duration:d,fill:"forwards"});return w.onfinish=()=>{w.cancel();var S=i?.t()??1-o;i?.abort();var T=o-S,k=e.duration*Math.abs(T),L=[];if(k>0){var A=!1;if(f)for(var I=Math.ceil(k/16.666666666666668),O=0;O<=I;O+=1){var G=S+T*g(O/I),D=Xg(f(G,1-G));L.push(D),A||=D.overflow==="hidden"}A&&(t.style.overflow="hidden"),x=()=>{var ee=w.currentTime;return S+T*g(ee/k)},p&&Zg(()=>{if(w.playState!=="running")return!1;var ee=x();return p(ee,1-ee),!0})}w=t.animate(L,{duration:k,fill:"forwards"}),w.onfinish=()=>{x=()=>o,p?.(o,1-o),r()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=ne)},deactivate:()=>{r=ne},reset:()=>{o===0&&p?.(1,0)},t:()=>x()}}var Fp=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var r=this.#t.get(e);r.delete(i),r.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var __=new Fp({box:"border-box"});function Gn(t,e,i){var o=__.observe(t,()=>i(t[e]));so(()=>($t(()=>i(t[e])),o))}function Jg(t,e){return t===e||t?.[vo]===e}function it(t={},e,i,o){return so(()=>{var r,s;return bo(()=>{r=s,s=o?.()||[],$t(()=>{t!==i(...s)&&(e(t,...s),r&&Jg(i(...r),t)&&e(null,...r))})}),()=>{Xo(()=>{s&&Jg(i(...s),t)&&e(null,...s)})}}),t}function Ar(t=!1){let e=Rt,i=e.l.u;if(!i)return;let o=()=>Rc(e.s);if(t){let r=0,s={},a=Tr(()=>{let l=!1,d=e.s;for(let f in d)d[f]!==s[f]&&(s[f]=d[f],l=!0);return l&&r++,r});o=()=>n(a)}i.b.length&&Dl(()=>{eh(e,o),ws(i.b)}),De(()=>{let r=$t(()=>i.m.map(Vv));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&De(()=>{eh(e,o),ws(i.a)})}function eh(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Zl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ne;let o=$t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ja=[];function cr(t,e){return{subscribe:ie(t,e).subscribe}}function ie(t,e=ne){let i=null,o=new Set;function r(l){if(Ra(t,l)&&(t=l,i)){let d=!Ja.length;for(let f of o)f[1](),Ja.push(f,t);if(d){for(let f=0;f<Ja.length;f+=2)Ja[f][0](Ja[f+1]);Ja.length=0}}}function s(l){r(l(t))}function a(l,d=ne){let f=[l,d];return o.add(f),o.size===1&&(i=e(r,s)||ne),l(t),()=>{o.delete(f),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:a}}function ti(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return cr(i,(a,l)=>{let d=!1,f=[],p=0,g=ne,u=()=>{if(p)return;g();let x=e(o?f[0]:f,a,l);s?a(x):g=typeof x=="function"?x:ne},y=r.map((x,w)=>Zl(x,S=>{f[w]=S,p&=~(1<<w),d&&u()},()=>{p|=1<<w}));return d=!0,u(),function(){ws(y),g(),d=!1}})}function ve(t){let e;return Zl(t,i=>e=i)(),e}var Fc=!1,Up=Symbol();function $(t,e,i){let o=i[e]??={store:null,source:jr(void 0),unsubscribe:ne};if(o.store!==t&&!(Up in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=ne;else{var r=!0;o.unsubscribe=Zl(t,s=>{r?o.source.v=s:V(o.source,s)}),r=!1}return t&&Up in i?ve(t):n(o.source)}function Ve(){let t={};function e(){go(()=>{for(var i in t)t[i].unsubscribe();Hi(t,Up,{enumerable:!1,value:!0})})}return[t,e]}function zp(t){var e=Fc;try{return Fc=!1,[t(),Fc]}finally{Fc=e}}var C_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Kv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ae(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},C_)}var T_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(xs(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 r=t.props[o];xs(r)&&(r=r());let s=Lo(r,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(xs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Lo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===vo||e===La)return!1;for(let i of t.props)if(xs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(xs(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 ps(...t){return new Proxy({props:t},T_)}function th(t){return t.ctx?.d??!1}function m(t,e,i,o){var r=(i&1)!==0,s=!qr||(i&2)!==0,a=(i&8)!==0,l=(i&16)!==0,d=!1,f;a?[f,d]=zp(()=>t[e]):f=t[e];var p=vo in t||La in t,g=a&&(Lo(t,e)?.set??(p&&e in t&&(G=>t[e]=G)))||void 0,u=o,y=!0,x=!1,w=()=>(x=!0,y&&(y=!1,l?u=$t(o):u=o),u);f===void 0&&o!==void 0&&(g&&s&&Wv(e),f=w(),g&&g(f));var S;if(s)S=()=>{var G=t[e];return G===void 0?w():(y=!0,x=!1,G)};else{var T=(r?Tr:kr)(()=>t[e]);T.f|=131072,S=()=>{var G=n(T);return G!==void 0&&(u=void 0),G===void 0?u:G}}if((i&4)===0&&s)return S;if(g){var k=t.$$legacy;return function(G,D){return arguments.length>0?((!s||!D||k||d)&&g(D?S():G),G):S()}}var L=!1,A=!1,I=jr(f),O=Tr(()=>{var G=S(),D=n(I);return L?(L=!1,A=!0,D):(A=!1,I.v=G)});return a&&n(O),r||(O.equals=Na),function(G,D){if(Lc!==null&&(L=A,S(),n(I)),arguments.length>0){let ee=D?n(O):s&&a?qt(G):G;if(!O.equals(ee)){if(L=!0,V(I,ee),x&&u!==void 0&&(u=ee),th(O))return G;$t(()=>n(O))}return G}return th(O)?O.v:n(O)}}var k_;typeof HTMLElement=="function"&&(k_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{let a=document.createElement("slot");r!=="default"&&(a.name=r),b(s,a)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=I_(this);for(let r of this.$$s)r in o&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),i.default=!0):i[r]=e(r));for(let r of this.attributes){let s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Wp(s,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Vg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Ec(()=>{bo(()=>{this.$$r=!0;for(let r of tp(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];let s=Wp(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(let r in this.$$l)for(let s of this.$$l[r]){let a=this.$$c.$on(r,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Wp(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return tp(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Wp(t,e,i,o){let r=i[t]?.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function I_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var ih="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ih);var bl=require("@vkontakte/videoplayer-core"),GG=require("@vkontakte/videoplayer-core"),Aa=require("@vkontakte/videoplayer-shared"),t0=require("@vkontakte/videoplayer-statistics");var ta=require("@vkontakte/videoplayer-shared");var E_={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:ta.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:ta.VideoQuality.Q_480P,highQualityLimit:ta.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},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1,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"},oh=t=>(0,ta.fillWithDefault)(t,E_),nh=t=>Da("ui-config",t),It=()=>Oa("ui-config");var Xl="vk_player_debug_panel_opened";var rh="videoplayer",sh="videoplayer";var Xr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ah=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),lh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),dh=new Set(["ShiftRight","ShiftLeft"]);var ch=["TIMELINE"],Jl=[...ch,"GRAPH_BUTTON"],Kp=[...ch,"PLAY_BUTTON"],ed=[...Jl,"PLAY_BUTTON"];var Mr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Mr||{}),oa={xs:0,s:1,m:2,l:3,xl:4};var td=require("@vkontakte/videoplayer-shared"),uh=require("@vkontakte/videoplayer-core"),ph=require("@vkontakte/videoplayer-statistics");var Uc="prod",na="1.1.72-dev.95df362c.0";var ra=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var fh=Symbol("storeContext"),mh=Symbol("microStoresContext"),vh=(t,e)=>{Da(fh,t),Da(mh,e),Uc==="dev"&&(window.app={store:t,microStores:e})},Se=()=>{let t=Oa(fh);return(0,td.assertNonNullable)(t,"Store context is empty!"),t},Yi=()=>{let t=Oa(mh);return(0,td.assertNonNullable)(t,"MicroStores context is empty!"),t},Kt=(t,e)=>Wc(t,t.getValue(),e),Wc=(t,e,i)=>cr(e,o=>{let r=t.subscribe(s=>{o(s),i?.(s)});return()=>r.unsubscribe()}),gh=(t,e,i,o)=>{let r=t.info,{width:s,height:a}=ve(i.ui.playerSize),l=r.throughputEstimation$.getValue()?.toFixed(0)??0,d=r.rttEstimation$.getValue()?.toFixed(0)??0,f=r.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${na} (core: ${uh.VERSION}, stat: ${ph.VERSION}, shared: ${td.VERSION})`,g=ve(i.state.errorLog$),u=g.length?`
45
+ `+g.map((O,G)=>{let D=`${G}) Type: ${O.id}
46
+ `,ee=`Message: ${O.message} (${O.thrown})
47
+ `,X=`Trace: ${O.thrown?.stack}
48
+ `;return D+ee+X}).join(`
49
+ `):void 0,y=i.state.isAudioDisabled?"disabled":ve(i.state.isAudioAvailable$)?void 0:"unavailable",x=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),S=[];x&&S.push(`Video: ${x?.codec??""}`+(x?.hdr?" (HDR)":"")),w&&S.push(`Audio: ${w?.codec??""}`+(w?.language?` (${w.language})`:""));let T=r.currentQuality$.getValue(),k="";if(T){let O=r.availableQualitiesFps$.getValue()[T];k=O?`${O}fps`:""}let L=r.currentBuffer$.getValue()?.end??0,A=Math.max(L-ve(i.state.positionExact$),0),I={Version:p,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:ve(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":r.httpConnectionType$.getValue()+(r.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${d}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${f} ${T} ${k}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:y,Position:`${ve(i.state.positionExact$)}s`,Buffer:`${A}s`,State:`${ve(i.playerPhase)} ${r.playbackState$.getValue()}`,"Player size":`${s}x${a}`,URL:window.location.href,Errors:u};return Object.entries(I).filter(([O,G])=>G!==void 0).map(([O,G])=>`${O}: ${G}`).join(`
50
+ `)},hh=(t,e,i)=>{let o=t.info,{width:r,height:s}=ve(i.ui.playerSize),a={version:na,viewport:`${r}x${s}`,volume:Math.round(ve(i.state.volume$)*100)};a.id=i.videoId,o.currentFormat$.getValue()&&(a.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(a.cdn=o.hostname$.getValue());let f=o.intrinsicVideoSize$.getValue();f&&(a.videoSize=`${f.width}x${f.height}`);let p=o.currentBuffer$.getValue(),g=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();p&&(g&&u?a.buffer=p.end-u:a.buffer=Math.max(p.end-ve(i.state.positionExact$),0)),a.position=ve(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(a.speed=y);let x=o.videoBitrate$.getValue();x&&(a.bitrate=x);let w=o.liveLatency$.getValue();w&&(a.liveLatency=w);let S=o.currentVideoSegmentLength$.getValue();S&&(a.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(a.currentAudioSegmentLength=T);let k=ve(i.vsid);typeof k=="string"&&(a.vsid=k);let L=t.info.currentVideoStream$.getValue()?.codec;L&&(a.videoCodec=L);let A=t.info.currentAudioStream$.getValue()?.codec;A&&(a.audioCodec=A),t.info.currentVideoStream$.getValue()?.hdr&&(a.hdr=!0);let O=t.info.currentAudioStream$.getValue()?.language;return O&&(a.audioLanguage=O),a},_h=(t,e)=>ra(t,e,"mp4"),bh=t=>!t.type,$h=t=>!!t.type,yh=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},zc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var Xt=require("@vkontakte/videoplayer-shared"),OP=require("@vkontakte/videoplayer-core"),xh="vk_player_prefer_traffic_saving_enabled",wh="vk_player_preferred_volume",Sh="vk_player_prefer_volume_mute",jp="vk_player_preferred_quality",qp="vk_player_preferred_default_quality_settings",Qp="vk_player_preferred_quality_settings_by_video",Ch="vk_player_preferred_stream_language",Th="vk_player_preferred_rate",kh="vk_player_preferred_autoplay_next",Gp="vk_player_preferred_subtitles_language",Ih="vk_player_user_video_prefs",Eh=t=>t>1?1:t<0?0:t,Yp=t=>Xt.safeStorage.set(wh,Eh(t).toString(10)),Kc=()=>{let t=Xt.safeStorage.get(wh);return(0,Xt.isNullable)(t)?void 0:Eh(parseFloat(t))},Zp=(t,e)=>Xt.safeStorage.set(jp,JSON.stringify({videoId:t,value:e})),qc=()=>Xt.safeStorage.remove(jp),Xp=t=>{let e=Xt.safeStorage.get(jp);if((0,Xt.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){qc();return}return o},Jp=(t,e)=>{e?Xt.safeStorage.set(t,"true"):Xt.safeStorage.remove(t)},ef=t=>Xt.safeStorage.get(t)==="true",tf=t=>Jp(Sh,t),Ph=()=>ef(Sh),id=t=>Jp(xh,t),of=()=>ef(xh),Ah=()=>Xt.safeStorage.get(Ch),nf=t=>Xt.safeStorage.set(Ch,t),rf=()=>Xt.safeStorage.get(Gp),sf=t=>{t?Xt.safeStorage.set(Gp,t):Xt.safeStorage.remove(Gp)},Mh=t=>Xt.safeStorage.set(Th,JSON.stringify({rate:t})),Lh=()=>{let t=Xt.safeStorage.get(Th);if((0,Xt.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Vh=t=>Jp(kh,t),Rh=()=>ef(kh),P_=()=>{let t=p=>{Xt.safeStorage.set(qp,JSON.stringify(p))},e=()=>{try{let p=Xt.safeStorage.get(qp);return p?JSON.parse(p):null}catch{return null}},i=()=>{try{let p=Xt.safeStorage.get(Qp);return p?JSON.parse(p):null}catch{return null}},o=p=>{Xt.safeStorage.set(Qp,JSON.stringify(p))},r=p=>{f(p);let g=p?i():null;if(g&&g?.videoId===p)return{...g,appliesTo:"to-video"};g&&s();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{Xt.safeStorage.remove(Qp)},a=()=>{Xt.safeStorage.remove(qp)},l=(p,g="as-default")=>{p.type==="exact_quality"||g==="to-video"?o(p):t(p)},d=p=>{let g=r(p);if(g){switch(g.type){case"traffic_saving":id(!0);break;case"exact_quality":Zp(p,g.quality)}s(),a()}},f=p=>{let g=Xp(p);if(g){o({type:"exact_quality",videoId:p,quality:g});return}of()&&t({type:"traffic_saving",videoId:p}),id(!1),qc()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:d,savePreferredQualitySettings:l,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:rf,savePreferredSubtitlesLanguage:sf}},{getPreferredQualitySettings:Nh,migrateSettingsToLegacyWay:Bh,savePreferredQualitySettings:Qc,savePreferredDefaultQualitySettings:DP,removePreferredQualitySettingsByVideo:HP,getPreferredDefaultQualitySettings:Gc}=P_(),A_=3,M_=3,Oh=()=>{let t=Xt.safeStorage.get(Ih);if(t)try{return JSON.parse(t)}catch{return null}return null},jc=(t,e)=>Oh()?.[t]?.[e]??null,af=(t,e,i)=>{let o=Oh()??{},r=o[t]?.[e]??{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=L_(o);Xt.safeStorage.set(Ih,JSON.stringify(s))};function L_(t){let e=Object.entries(t).reduce((o,[r,s])=>{let a=0;return Object.values(s).forEach(l=>{a<l.updatedTs&&(a=l.updatedTs)}),o.push([r,a]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(M_),e.reduce((o,[r])=>(o[r]=V_(t[r]),o),{})}function V_(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(A_),Object.fromEntries(e)}var pv=require("@vkontakte/videoplayer-core");var R_=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 od(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=R_();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}var el=require("@vkontakte/videoplayer-shared");var N_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_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`,double_forward_label:"2x"},jh=U_;var z_={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`},Dh=N_;var B_={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.`,double_forward_label:"2x"},Yh=z_;var fs=new Map;fs.set(el.InterfaceLanguage.EN,Yh);fs.set(el.InterfaceLanguage.RU,jh);var Zh=new Map,gf=({language:t,pack:e,fallback:i})=>{if(fs.has(t)){let o=fs.get(t);fs.set(t,{...o,...e})}else fs.set(t,e);Zh.set(t,i)},hf=t=>fs.has(t),_f=(t,e,i,o)=>{let s=fs.get(t)?.[e];if((0,el.isNullable)(s)){let a=Zh.get(t)??o;s=(a?fs.get(a):void 0)?.[e]}return(0,el.isNullable)(s)?e+Object.values(i??{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(a,l)=>i[l]??""):s},z=(t,e)=>{let{interfaceLanguage$:i}=xe(),o=ve(i),r=Tt();return _f(o,t,e,r.defaultLanguage)};var mA=require("@vkontakte/videoplayer-core");var tl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(tl||(tl={}));var W_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,K_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,q_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tu="?",Q_="X-Sentry-Auth",G_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function j_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
- `),o,r;for(let s=0;s<i.length;++s){if(o=W_.exec(i[s]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||tu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=q_.exec(i[s]))r={filename:o[2],function:o[1]||tu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=K_.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||tu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=tu),e.push(r)}return e.length?{value:Xh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Xh(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function Y_(t){try{let e=j_(t);if(e)return e}catch{}return{value:Xh(t),type:t&&t.name,stacktrace:{frames:[]}}}function Z_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var iu=class{constructor(e){if(e&&e.dsn){let i=G_.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[Y_(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(Q_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Z_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Jh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function X_(){return window}var ou=class t extends iu{constructor(e,i=X_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=f=>f,beforeBreadcrumb:s=f=>f,blacklistUrls:a=[],ignoreErrors:l=[],release:d=void 0}=this.options||{};this.plugins=o.map(f=>new f(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=a,this.ignoreErrors=l,this.release=d}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Jh(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Jh(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{return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],s=Array.isArray(r)?r:null,a=e[o],l=Array.isArray(a)?a:null;return{...i,[o]:s||l?[...s||[],...l||[]]:{...typeof r!="string"?r:{},...typeof a!="string"?a:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var ra=require("@vkontakte/videoplayer-shared");var nu=null,sa=class{constructor(e,i,o={}){!nu&&e.dsn&&(this.sentryClient=new ou({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ra.Subscription,this.options=e,this.context=o,nu=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),nu=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:r,context:s,options:a}=this,{sampleRate:l=0,whiteErrorIdList:d,whiteErrorCategoryList:f=[],blackErrorIdList:p,blackErrorCategoryList:g}=a,{errorType:u,category:y}=i;if((0,ra.isNonNullable)(y)&&g.includes(y)||(0,ra.isNonNullable)(u)&&p.includes(u))return;if(Math.random()<=l||(0,ra.isNonNullable)(y)&&f.includes(y)||(0,ra.isNonNullable)(u)&&d.includes(u)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras({...s,...o});try{u&&r.captureMessage(u,i.fatal?tl.fatal:tl.error),r.report(e)}catch(w){console.error(w)}}}static getInstance(){return nu}};var Jr=(l=>(l.Thumb="thumb",l.Video="video",l.Ads="ads",l.Crashed="crashed",l.LiveWaitingStart="LiveWaitingStart",l.LiveWaitingRecover="LiveWaitingRecover",l.LiveWaitingRecord="LiveWaitingRecord",l))(Jr||{});var ru=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?.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},su=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),e1=t=>{let e=t;e?.webkitExitFullscreen&&e?.webkitExitFullscreen()},ld=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Is=()=>!!ld(),au=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},lu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},t1=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var bf=require("@vkontakte/videoplayer-core"),i1=()=>({title:z("hotkey_map_modal_title"),closeBtnText:z("hotkey_map_modal_close_btn_text"),groups:[{title:z("hotkey_map_group_title_common"),items:[{description:z("hotkey_map_item_mute_description"),value:z("hotkey_map_item_mute_value")},{description:z("hotkey_map_item_volume_up_description"),value:z("hotkey_map_item_volume_up_value")},{description:z("hotkey_map_item_volume_down_description"),value:z("hotkey_map_item_volume_down_value")},{description:z("hotkey_map_item_pip_description"),value:z("hotkey_map_item_pip_value")},{description:z("hotkey_map_item_full_screen_description"),value:z("hotkey_map_item_full_screen_value")},{description:z("hotkey_map_item_show_context_menu_description"),value:z("hotkey_map_item_show_context_menu_value")},{description:z("hotkey_map_item_show_hotkey_map_description"),value:z("hotkey_map_item_show_hotkey_map_value")}]},{title:z("hotkey_map_group_title_playback"),items:[{description:z("hotkey_map_item_play_toggle_description"),value:z("hotkey_map_item_play_toggle_value")},{description:z("hotkey_map_item_seek_backward_description"),value:z("hotkey_map_item_seek_backward_value")},{description:z("hotkey_map_item_seek_forward_description"),value:z("hotkey_map_item_seek_forward_value")},{description:z("hotkey_map_item_fast_seek_backward_description"),value:z("hotkey_map_item_fast_seek_backward_value")},{description:z("hotkey_map_item_fast_seek_forward_description"),value:z("hotkey_map_item_fast_seek_forward_value")},{description:z("hotkey_map_item_rate_down_description"),value:z("hotkey_map_item_rate_down_value")},{description:z("hotkey_map_item_rate_up_description"),value:z("hotkey_map_item_rate_up_value")},{description:z("hotkey_map_item_prev_frame_description"),value:z("hotkey_map_item_prev_frame_value")},{description:z("hotkey_map_item_next_frame_description"),value:z("hotkey_map_item_next_frame_value")},{description:z("hotkey_map_item_jump_seek_description"),value:z("hotkey_map_item_jump_seek_value")},{description:z("hotkey_map_item_next_video_description"),value:z("hotkey_map_item_next_video_value")},{description:z("hotkey_map_item_prev_video_description"),value:z("hotkey_map_item_prev_video_value")}]},{title:z("hotkey_map_group_title_subtitles"),items:[{description:z("hotkey_map_item_subtitles_toggle_description"),value:z("hotkey_map_item_subtitles_toggle_value")}]},{title:z("hotkey_map_group_title_episodes"),items:[{description:z("hotkey_map_item_prev_episode_description"),value:bf.clientChecker.device.isApple?z("hotkey_map_item_prev_episode_mac_value"):z("hotkey_map_item_prev_episode_pc_value")},{description:z("hotkey_map_item_next_episode_description"),value:bf.clientChecker.device.isApple?z("hotkey_map_item_next_episode_mac_value"):z("hotkey_map_item_next_episode_pc_value")}]}]});var il=require("@vkontakte/videoplayer-shared"),aa=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,il.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new il.ValueSubject(!1),isEnabled$:new il.ValueSubject(!1),type:0};this.info.isEnabled$=new il.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.removeEventHandlers(),this.videoElement=this.playerContainer?.querySelector("video"),this.addEventHandlers())}addEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e)}onResize(e){this.externalEventHandlers.resize?.(e)}setEnabled(e){this.info.isEnabled$.next(e)}};function la(t){return t instanceof aa}var ol=require("@vkontakte/videoplayer-shared");sg();function yf(t,e){F(e,!1);let i=xe();Et(()=>{i.getAdmanWrapper().startPostroll()}),Ar(),U()}var o1=require("@vkontakte/videoplayer-shared");var J_=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},eb=E('<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>'),tb=E("<div><!></div>"),ib={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 xf(t,e){F(e,!0),W(t,ib);let[i,o]=Ve(),r=()=>$(f,"$isMobile",i),s=m(e,"position",3,0),a=m(e,"secondsToWatchBeforeSkip",3,0),l=m(e,"skipAd",3,o1.noop),f=xe().ui.isMobile,p=v(()=>s()>0&&s()>=a());var g=tb();let u;g.__click=[J_,p,l];var y=_(g);{var x=S=>{var T=eb(),k=_(T);be(),h(T),O(V=>pe(k,`${V??""} `),[()=>z("skip_ads_now")]),b(S,T)},w=S=>{var T=Yr();O(k=>pe(T,k),[()=>z("skip_ads_after",{time:Math.ceil(a()-s()).toFixed(0)})]),b(S,T)};M(y,S=>{n(p)?S(x):S(w,!1)})}h(g),O(S=>u=X(g,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":r(),skippable:n(p)})]),b(t,g),U(),o()}st(["click"]);var ob=E('<button class="svelte-1wy3dql"> </button>'),nb={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 wf(t,e){F(e,!1),W(t,nb),Ar();var i=ob(),o=_(i,!0);h(i),O(r=>pe(o,r),[()=>z("visit_advertiser")],kr),b(t,i),U()}var rb=E('<div class="top-gradient-mobile svelte-354ajf"></div>'),sb=E('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),ab={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.`},Hh=B_;var fs=new Map;fs.set(el.InterfaceLanguage.EN,Hh);fs.set(el.InterfaceLanguage.RU,Dh);var Fh=new Map,lf=({language:t,pack:e,fallback:i})=>{if(fs.has(t)){let o=fs.get(t);fs.set(t,{...o,...e})}else fs.set(t,e);Fh.set(t,i)},df=t=>fs.has(t),cf=(t,e,i,o)=>{let s=fs.get(t)?.[e];if((0,el.isNullable)(s)){let a=Fh.get(t)??o;s=(a?fs.get(a):void 0)?.[e]}return(0,el.isNullable)(s)?e+Object.values(i??{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(a,l)=>i[l]??""):s},z=(t,e)=>{let{interfaceLanguage$:i}=Se(),o=ve(i),r=It();return cf(o,t,e,r.defaultLanguage)};var rA=require("@vkontakte/videoplayer-core");var tl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(tl||(tl={}));var O_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,D_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,H_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Yc="?",F_="X-Sentry-Auth",U_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function z_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,r;for(let s=0;s<i.length;++s){if(o=O_.exec(i[s]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Yc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=H_.exec(i[s]))r={filename:o[2],function:o[1]||Yc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=D_.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||Yc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=Yc),e.push(r)}return e.length?{value:Uh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Uh(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function W_(t){try{let e=z_(t);if(e)return e}catch{}return{value:Uh(t),type:t&&t.name,stacktrace:{frames:[]}}}function K_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Zc=class{constructor(e){if(e&&e.dsn){let i=U_.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[W_(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(F_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:K_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function zh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function q_(){return window}var Xc=class t extends Zc{constructor(e,i=q_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=f=>f,beforeBreadcrumb:s=f=>f,blacklistUrls:a=[],ignoreErrors:l=[],release:d=void 0}=this.options||{};this.plugins=o.map(f=>new f(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=a,this.ignoreErrors=l,this.release=d}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>zh(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>zh(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{return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],s=Array.isArray(r)?r:null,a=e[o],l=Array.isArray(a)?a:null;return{...i,[o]:s||l?[...s||[],...l||[]]:{...typeof r!="string"?r:{},...typeof a!="string"?a:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var sa=require("@vkontakte/videoplayer-shared");var Jc=null,aa=class{constructor(e,i,o={}){!Jc&&e.dsn&&(this.sentryClient=new Xc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new sa.Subscription,this.options=e,this.context=o,Jc=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),Jc=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:r,context:s,options:a}=this,{sampleRate:l=0,whiteErrorIdList:d,whiteErrorCategoryList:f=[],blackErrorIdList:p,blackErrorCategoryList:g}=a,{errorType:u,category:y}=i;if((0,sa.isNonNullable)(y)&&g.includes(y)||(0,sa.isNonNullable)(u)&&p.includes(u))return;if(Math.random()<=l||(0,sa.isNonNullable)(y)&&f.includes(y)||(0,sa.isNonNullable)(u)&&d.includes(u)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras({...s,...o});try{u&&r.captureMessage(u,i.fatal?tl.fatal:tl.error),r.report(e)}catch(w){console.error(w)}}}static getInstance(){return Jc}};var Jr=(l=>(l.Thumb="thumb",l.Video="video",l.Ads="ads",l.Crashed="crashed",l.LiveWaitingStart="LiveWaitingStart",l.LiveWaitingRecover="LiveWaitingRecover",l.LiveWaitingRecord="LiveWaitingRecord",l))(Jr||{});var eu=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?.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},tu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Wh=t=>{let e=t;e?.webkitExitFullscreen&&e?.webkitExitFullscreen()},nd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ks=()=>!!nd(),iu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ou=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Kh=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var uf=require("@vkontakte/videoplayer-core"),qh=()=>({title:z("hotkey_map_modal_title"),closeBtnText:z("hotkey_map_modal_close_btn_text"),groups:[{title:z("hotkey_map_group_title_common"),items:[{description:z("hotkey_map_item_mute_description"),value:z("hotkey_map_item_mute_value")},{description:z("hotkey_map_item_volume_up_description"),value:z("hotkey_map_item_volume_up_value")},{description:z("hotkey_map_item_volume_down_description"),value:z("hotkey_map_item_volume_down_value")},{description:z("hotkey_map_item_pip_description"),value:z("hotkey_map_item_pip_value")},{description:z("hotkey_map_item_full_screen_description"),value:z("hotkey_map_item_full_screen_value")},{description:z("hotkey_map_item_show_context_menu_description"),value:z("hotkey_map_item_show_context_menu_value")},{description:z("hotkey_map_item_show_hotkey_map_description"),value:z("hotkey_map_item_show_hotkey_map_value")}]},{title:z("hotkey_map_group_title_playback"),items:[{description:z("hotkey_map_item_play_toggle_description"),value:z("hotkey_map_item_play_toggle_value")},{description:z("hotkey_map_item_seek_backward_description"),value:z("hotkey_map_item_seek_backward_value")},{description:z("hotkey_map_item_seek_forward_description"),value:z("hotkey_map_item_seek_forward_value")},{description:z("hotkey_map_item_fast_seek_backward_description"),value:z("hotkey_map_item_fast_seek_backward_value")},{description:z("hotkey_map_item_fast_seek_forward_description"),value:z("hotkey_map_item_fast_seek_forward_value")},{description:z("hotkey_map_item_rate_down_description"),value:z("hotkey_map_item_rate_down_value")},{description:z("hotkey_map_item_rate_up_description"),value:z("hotkey_map_item_rate_up_value")},{description:z("hotkey_map_item_prev_frame_description"),value:z("hotkey_map_item_prev_frame_value")},{description:z("hotkey_map_item_next_frame_description"),value:z("hotkey_map_item_next_frame_value")},{description:z("hotkey_map_item_jump_seek_description"),value:z("hotkey_map_item_jump_seek_value")},{description:z("hotkey_map_item_next_video_description"),value:z("hotkey_map_item_next_video_value")},{description:z("hotkey_map_item_prev_video_description"),value:z("hotkey_map_item_prev_video_value")}]},{title:z("hotkey_map_group_title_subtitles"),items:[{description:z("hotkey_map_item_subtitles_toggle_description"),value:z("hotkey_map_item_subtitles_toggle_value")}]},{title:z("hotkey_map_group_title_episodes"),items:[{description:z("hotkey_map_item_prev_episode_description"),value:uf.clientChecker.device.isApple?z("hotkey_map_item_prev_episode_mac_value"):z("hotkey_map_item_prev_episode_pc_value")},{description:z("hotkey_map_item_next_episode_description"),value:uf.clientChecker.device.isApple?z("hotkey_map_item_next_episode_mac_value"):z("hotkey_map_item_next_episode_pc_value")}]}]});var il=require("@vkontakte/videoplayer-shared"),la=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,il.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new il.ValueSubject(!1),isEnabled$:new il.ValueSubject(!1),type:0};this.info.isEnabled$=new il.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.removeEventHandlers(),this.videoElement=this.playerContainer?.querySelector("video"),this.addEventHandlers())}addEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e)}onResize(e){this.externalEventHandlers.resize?.(e)}setEnabled(e){this.info.isEnabled$.next(e)}};function da(t){return t instanceof la}var ol=require("@vkontakte/videoplayer-shared");Yv();function ff(t,e){F(e,!1);let i=Se();At(()=>{i.getAdmanWrapper().startPostroll()}),Ar(),U()}var Qh=require("@vkontakte/videoplayer-shared");var Q_=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},G_=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>'),j_=P("<div><!></div>"),Y_={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function mf(t,e){F(e,!0),W(t,Y_);let[i,o]=Ve(),r=()=>$(f,"$isMobile",i),s=m(e,"position",3,0),a=m(e,"secondsToWatchBeforeSkip",3,0),l=m(e,"skipAd",3,Qh.noop),f=Se().ui.isMobile,p=v(()=>s()>0&&s()>=a());var g=j_();let u;g.__click=[Q_,p,l];var y=_(g);{var x=S=>{var T=G_(),k=_(T);xe(),h(T),N(L=>fe(k,`${L??""} `),[()=>z("skip_ads_now")]),b(S,T)},w=S=>{var T=Yr();N(k=>fe(T,k),[()=>z("skip_ads_after",{time:Math.ceil(a()-s()).toFixed(0)})]),b(S,T)};M(y,S=>{n(p)?S(x):S(w,!1)})}h(g),N(S=>u=J(g,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":r(),skippable:n(p)})]),b(t,g),U(),o()}dt(["click"]);var Z_=P('<button class="svelte-1wy3dql"> </button>'),X_={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 vf(t,e){F(e,!1),W(t,X_),Ar();var i=Z_(),o=_(i,!0);h(i),N(r=>fe(o,r),[()=>z("visit_advertiser")],kr),b(t,i),U()}var J_=P('<div class="top-gradient-mobile svelte-354ajf"></div>'),eb=P('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),tb={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.`,double_forward_label:"2x"},Yh=z_;var f
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){F(e,!0),W(t,ab);let[i,o]=Ve(),r=()=>$(D,"$canSkipAd",i),s=()=>$(Q,"$adPlaybackState",i),a=()=>$(k,"$isMobile",i),l=()=>$(J,"$adPosition",i),d=()=>$(ie,"$secondsToWatchBeforeSkipAd",i),f=()=>$(T,"$isVideoEnded",i),p=m(e,"adsSlotId",3,void 0),g=m(e,"adsParams",3,void 0),u=m(e,"adsPreviewParam",3,void 0),y=m(e,"adsAutoplayParam",3,void 0),x=m(e,"duration",3,0),w=xe(),S=Tt(),T=w.state.isEnded$,k=w.ui.isMobile,V=S.ads.isMobileGoToSiteButton,A=G(void 0),L=G(void 0),P=!1,Q=w.ads.playbackState,D=w.ads.canSkip,J=w.ads.position,ie=w.ads.secondsToWatchBeforeSkip,re=v(()=>r()&&s()!=="inactive"),Z=v(()=>a()&&s()!=="inactive"&&V);Et(()=>{let Pe=w.getAdmanWrapper();if(ol.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,ol.now)(),p()]}),!p()){Pe.onAdmanLoadingError();return}let Te=Ae=>{Pe.initAdman(Ae),P=!0},ce=new AbortController,ee=()=>{ce.abort()},{width:ye,height:De}=ve(w.ui.playerSize),le=ve(w.ui.isFullscreen),at=y()??ve(w.ui.isAutoplay),K={width:ye,height:De,isFullscreen:le,isAutoplay:at,adsContainer:n(A),adsVideoElement:n(L),slotId:p(),params:g(),previewParam:u(),duration:x()};return window.AdmanHTML?Te(K):Pe.loadAdman(ce.signal).then(()=>{Te(K)}).catch(()=>{Pe.onAdmanLoadingError()}),()=>{ol.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,ol.now)(),p()]}),!P&&ee()}});var ue=sb(),Y=_(ue);{var we=Pe=>{var Te=rb();b(Pe,Te)};M(Y,Pe=>{a()&&Pe(we)})}var _e=I(Y,2);tt(_e,Pe=>N(L,Pe),()=>n(L));var Ee=I(_e,2);{var He=Pe=>{xf(Pe,{get position(){return l()},get secondsToWatchBeforeSkip(){return d()},get skipAd(){return w.actions.internal.skipAd}})};M(Ee,Pe=>{n(re)&&Pe(He)})}var ae=I(Ee,2);{var Re=Pe=>{yf(Pe,{})};M(ae,Pe=>{f()&&Pe(Re)})}var ne=I(ae,2);{var R=Pe=>{wf(Pe,{})};M(ne,Pe=>{n(Z)&&Pe(R)})}h(ue),tt(ue,Pe=>N(A,Pe),()=>n(A)),b(t,ue),U(),o()}var Xo=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 r=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var lb=$e('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function Sf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=lb();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}var db=$e('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function Cf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=db();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}function ud(t,e){let i=m(e,"isActive",3,!1);var o=Oe(),r=de(o);{var s=l=>{Cf(l,{})},a=l=>{Sf(l,{})};M(r,l=>{i()?l(s):l(a,!1)})}b(t,o)}var cb=E('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),ub=E('<div class="live-icon svelte-1s15d2i"><!></div>'),pb=E('<span class="text svelte-1s15d2i"> </span>'),fb=E("<div><!> <!></div>"),mb={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 sd(t,e){F(e,!0),W(t,tb);let[i,o]=Ve(),r=()=>$(D,"$canSkipAd",i),s=()=>$(G,"$adPlaybackState",i),a=()=>$(k,"$isMobile",i),l=()=>$(ee,"$adPosition",i),d=()=>$(X,"$secondsToWatchBeforeSkipAd",i),f=()=>$(T,"$isVideoEnded",i),p=m(e,"adsSlotId",3,void 0),g=m(e,"adsParams",3,void 0),u=m(e,"adsPreviewParam",3,void 0),y=m(e,"adsAutoplayParam",3,void 0),x=m(e,"duration",3,0),w=Se(),S=It(),T=w.state.isEnded$,k=w.ui.isMobile,L=S.ads.isMobileGoToSiteButton,A=Q(void 0),I=Q(void 0),O=!1,G=w.ads.playbackState,D=w.ads.canSkip,ee=w.ads.position,X=w.ads.secondsToWatchBeforeSkip,ae=v(()=>r()&&s()!=="inactive"),j=v(()=>a()&&s()!=="inactive"&&L);At(()=>{let Ee=w.getAdmanWrapper();if(ol.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,ol.now)(),p()]}),!p()){Ee.onAdmanLoadingError();return}let Ce=Me=>{Ee.initAdman(Me),O=!0},de=new AbortController,te=()=>{de.abort()},{width:be,height:Oe}=ve(w.ui.playerSize),le=ve(w.ui.isFullscreen),lt=y()??ve(w.ui.isAutoplay),K={width:be,height:Oe,isFullscreen:le,isAutoplay:lt,adsContainer:n(A),adsVideoElement:n(I),slotId:p(),params:g(),previewParam:u(),duration:x()};return window.AdmanHTML?Ce(K):Ee.loadAdman(de.signal).then(()=>{Ce(K)}).catch(()=>{Ee.onAdmanLoadingError()}),()=>{ol.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,ol.now)(),p()]}),!O&&te()}});var ue=eb(),Y=_(ue);{var he=Ee=>{var Ce=J_();b(Ee,Ce)};M(Y,Ee=>{a()&&Ee(he)})}var _e=E(Y,2);it(_e,Ee=>V(I,Ee),()=>n(I));var Ie=E(_e,2);{var Fe=Ee=>{mf(Ee,{get position(){return l()},get secondsToWatchBeforeSkip(){return d()},get skipAd(){return w.actions.internal.skipAd}})};M(Ie,Ee=>{n(ae)&&Ee(Fe)})}var se=E(Ie,2);{var Ne=Ee=>{ff(Ee,{})};M(se,Ee=>{f()&&Ee(Ne)})}var oe=E(se,2);{var R=Ee=>{vf(Ee,{})};M(oe,Ee=>{n(j)&&Ee(R)})}h(ue),it(ue,Ee=>V(A,Ee),()=>n(A)),b(t,ue),U(),o()}var en=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 r=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var ib=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 gf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=ib();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}var ob=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 hf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=ob();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}function ad(t,e){let i=m(e,"isActive",3,!1);var o=Be(),r=ce(o);{var s=l=>{hf(l,{})},a=l=>{gf(l,{})};M(r,l=>{i()?l(s):l(a,!1)})}b(t,o)}var nb=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>'),rb=P('<div class="live-icon svelte-1s15d2i"><!></div>'),sb=P('<span class="text svelte-1s15d2i"> </span>'),ab=P("<div><!> <!></div>"),lb={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.`,double_forward_label:"2x"},Yh=z_;var f
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 pd(t,e){W(t,mb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),r=m(e,"isPlaying",3,!1);var s=fb();let a;var l=_(s);{var d=u=>{var y=cb();b(u,y)};M(l,u=>{i()&&u(d)})}var f=I(l,2);{var p=u=>{var y=ub(),x=_(y);ud(x,{isActive:!0}),h(y),b(u,y)},g=u=>{var y=pb(),x=_(y,!0);h(y),O(()=>pe(x,e.time)),b(u,y)};M(f,u=>{o()?u(p):u(g,!1)})}h(s),O(u=>a=X(s,1,"wrapper svelte-1s15d2i",null,a,u),[()=>({live:o(),playing:r()})]),b(t,s)}var nl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var vb=E('<div role="timer" data-testid="thumb-timer"><!></div>'),gb={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 fd(t,e){F(e,!0),W(t,gb);let[i,o]=Ve(),r=()=>$(p,"$disabled",i),s=m(e,"isHidden",3,!1),a=m(e,"isLive",3,!1),l=m(e,"isPlaying",3,!1),d=Tt(),f=v(()=>Xo(e.duration-e.position)),p=te(!1);var g=vb();let u;var y=_(g);pd(y,{get time(){return n(f)},get isLive(){return a()},get isPlaying(){return l()},withEqualizer:!0}),h(g),us(g,()=>nl(s()&&d.features.usePerformanceFix,p,d.disableInvisibleComponentsTimeout)),O(x=>u=X(g,1,"thumb-timer svelte-c6gowj",null,u,x),[()=>({"out-of-flow":r(),hidden:s()})]),b(t,g),U(),o()}var rl=t=>{if(!navigator.clipboard){n1(t);return}navigator.clipboard.writeText(t).catch(()=>n1(t))};function n1(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 f1=require("@vkontakte/videoplayer-core");var kf=require("@vkontakte/videoplayer-core");var Tf="focus-hidden";var lr=t=>{t.stopPropagation(),t.preventDefault()},If=t=>{t.parentNode?.firstElementChild?.classList.remove(Tf)},_b=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},bb=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},$b=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},yb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},r1=t=>t.code==="Escape",xb=t=>t.code==="ArrowLeft",md=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},s1=t=>{$b(t)?(lr(t),bb(t.target)):yb(t)&&(lr(t),_b(t.target))},As=t=>!kf.clientChecker.device.isAndroid&&t?.detail===0||kf.clientChecker.device.isAndroid&&t?.pointerType==="",sl=async(t,e,i)=>{await uo(),t&&!t.classList.contains("opened")&&!e&&ve(i)&&(await uo(),i.set(!1),t.focus())},a1=async(t,e,i)=>{await uo(),t&&!e&&ve(i)&&(i.set(!1),t.focus())},vd=async(t,e,i,o=!1)=>{if(await uo(),!!t&&e&&!o){let s=t.children[0];s?.classList.toggle(Tf,!i),s?.focus()}},l1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},du=(t,e)=>{s1(t),If(t.target),r1(t)&&(lr(t),e())},cu=async(t,e)=>{md(t,["ArrowRight"])&&(lr(t),e())},d1=async(t,e,i)=>{if(s1(t),xb(t)){lr(t),e();return}r1(t)&&(lr(t),i())},al=(t,e)=>{md(t)&&(lr(t),e())},c1=(t,e,i)=>{if(md(t))lr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),lr(t);return}o==="ArrowRight"&&!e&&(i(!0),lr(t))}},u1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},p1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var ua=require("@vkontakte/videoplayer-shared");var Lr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var Ef=require("@vkontakte/videoplayer-shared");var Sb=(t,e)=>{al(t,()=>e())},Cb=E('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Tb={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 Pf(t,e){F(e,!0),W(t,Tb);let i=m(e,"onClick",3,Ef.noop),o=m(e,"closeContextMenu",3,Ef.noop),r=l=>{l?.stopPropagation(),i()(),o()()};var s=Cb();s.__click=r,s.__keydown=[Sb,r];var a=_(s,!0);h(s),O(()=>{Ne(s,"aria-label",e.ariaLabel??e.label),Ne(s,"data-testid",e.id),pe(a,e.label)}),b(t,s),U()}st(["click","keydown"]);var ca=(t,e)=>t.weight-e.weight;var ll=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ll||{});var kb=(t,e)=>{du(t,e)},Ib=t=>{t.preventDefault()},Eb=E('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Pb={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 Af(t,e){F(e,!0),W(t,Pb);let[i,o]=Ve(),r=()=>$(re,"$isLive$",i),s=()=>$(we,"$isPiPEnabled$",i),a=()=>$(ie,"$chromecastState$",i),l=()=>$(_e,"$pictureInPictureApiIsActive$",i),d=()=>$(Y,"$isLooped$",i),f=()=>$(Z,"$positionExact$",i),p=()=>$(Q,"$additionalContextMenuItems$",i),g=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),y=m(e,"playerContainerRef",3,void 0),x=m(e,"controlsContainerRef",3,void 0),w=m(e,"menuElementRef",15,void 0),S=G(0),T=G(0),k=xe(),{pictureInPicture$:V}=Ji(),A=Tt(),L=k.ui.contextMenu.visible$,P=k.ui.debugPanelVisible,Q=k.ui.additionalContextMenuItems$,D=k.ui.t,J=k.actions.internal.togglePictureInPicture,ie=k.state.chromecastState$,re=k.state.isLive$,Z=k.state.positionExact$,ue=k.state.isInteractive,Y=k.state.looped$,{isEnabled$:we,isActive$:_e}=V,Ee=v(()=>A.features.copyVideoLink&&k.callbacks?.onCopyVideoLink),He=v(()=>n(Ee)&&!r()&&!ue),ae=v(()=>!!k.callbacks?.onCopyEmbedCodeClicked),Re=v(()=>s()&&a()!==f1.ChromecastState.CONNECTED&&!ue),ne=v(()=>!ue),R=v(()=>A.features.videoRotate&&!ue),Pe=v(()=>A.showSupport&&!l()),Te=v(()=>A.features.saveTraceInfoToFile),ce=()=>{L.set(!1),e.returnFocus?.()},ee=(Xe,Ke)=>{if(!w()||!y()||!x())return;let Le=w().getBoundingClientRect(),ot=y().getBoundingClientRect();N(S,Xe-ot.left),N(T,Ke-ot.top),n(S)+Le.width>ot.width&&N(S,ot.width-Le.width),n(T)+Le.height>ot.height&&N(T,ot.height-Le.height),N(S,Math.max(n(S),0),!0),N(T,Math.max(n(T),0),!0)};Be(()=>{(async()=>{if(w()&&y()&&x()){await uo();let{top:Ke,left:Le,bottom:ot,right:qt}=u(),Ut=Le??0,Rt=Ke??0,$t=w().getBoundingClientRect();(0,ua.isNullable)(Le)&&!(0,ua.isNullable)(qt)&&(Ut=qt-$t.width),(0,ua.isNullable)(Ke)&&!(0,ua.isNullable)(ot)&&(Rt=ot-$t.height),Ut=Math.max(Ut,0),Rt=Math.max(Rt,0),ee(Ut,Rt)}})()});let ye=()=>{k.actions.internal.videoRotate()},De=()=>{(0,ua.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),k.actions.internal.reportProblem(),k.actions.internal.pause()},le=()=>{let Xe=k.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let Ke=new Blob([...Xe],{type:"plain/text"}),Le=window.URL.createObjectURL(Ke);na(Le,"vk_player_debug_info","txt")}else rl(k.actions.internal.getDebugTextData())},at=()=>{let Xe=k.actions.internal.getTraceTextData(),Ke=new Blob([...Xe],{type:"application/json"}),Le=window.URL.createObjectURL(Ke);na(Le,"vk_player_trace_info","json")},K=()=>{P.set(!0)},Ae=async()=>{try{J()}finally{e.returnFocus?.()}},Fe=()=>{k.actions.internal.setLooped(!d())},Ye=()=>{if(n(ae)){let Xe=k.callbacks?.onCopyEmbedCodeClicked?.();Xe&&rl(Xe)}},dt=(Xe=!1)=>{if(k.callbacks?.onCopyVideoLink){let Ke=k.callbacks?.onCopyVideoLink(Xe,f());Ke&&rl(Ke)}},Ct=v(()=>A.features.saveDebugInfoToFile?D("menu_save_debug"):D("menu_copy_debug")),ut=v(()=>n(Ee)?{id:"copy-link",weight:Lr["copy-link"],label:D("menu_copy_video_link"),onClick:()=>dt()}:void 0),vt=v(()=>n(He)?{id:"copy-link-timestamp",weight:Lr["copy-link-timestamp"],label:D("menu_copy_video_link_with_timestamp"),onClick:()=>dt(!0)}:void 0),Je=v(()=>n(ae)?{id:"copy-embed-code",weight:Lr["copy-embed-code"],label:D("menu_copy_embed_code"),onClick:Ye}:void 0),Nt=v(()=>n(Re)?{id:"pip",weight:Lr.pip,label:l()?D("menu_pip_close"):D("menu_pip"),onClick:Ae}:void 0),Kt=v(()=>n(ne)?{id:"video-loop",weight:Lr["video-loop"],label:d()?D("menu_video_loop_off"):D("menu_video_loop_on"),ariaLabel:D("aria_label_menu_loop"),onClick:Fe}:void 0),At=v(()=>n(R)?{id:"rotate",weight:Lr.rotate,label:D("menu_video_rotate"),ariaLabel:D("aria_label_menu_rotate"),onClick:ye}:void 0),Ft=v(()=>n(Pe)?{id:"report",weight:Lr.report,label:D("menu_report"),ariaLabel:`${D("menu_report")}. ${D("aria_label_new_tab_alert")}`,onClick:De}:void 0),Ce=v(()=>({id:"save-debug",weight:Lr["save-debug"],label:n(Ct),onClick:le})),Ze=v(()=>n(Te)?{id:"save-trace",weight:Lr["save-trace"],label:D("menu_save_debug"),onClick:at}:void 0),he=v(()=>({id:"debug-info",weight:Lr["debug-info"],label:D("menu_debug_overlay"),ariaLabel:D("aria_label_menu_debug_overlay"),onClick:K})),me=v(()=>[n(ut),n(vt),n(Je),n(Nt),n(Kt),n(At),n(Ft),n(Ce),n(Ze),n(he),...p()].filter(Xe=>!!Xe).sort(ca));var j=Oe(),Me=de(j);{var Ue=Xe=>{var Ke=Eb();Ke.__contextmenu=[Ib],Ke.__keydown=[kb,ce],pi(Ke,21,()=>n(me),Le=>Le.id,(Le,ot)=>{Pf(Le,{get id(){return n(ot).id},get label(){return n(ot).label},get ariaLabel(){return n(ot).ariaLabel},get onClick(){return n(ot).onClick},closeContextMenu:ce})}),h(Ke),tt(Ke,Le=>w(Le),()=>w()),O(()=>it(Ke,`top: ${n(T)??""}px; left: ${n(S)??""}px;`)),b(Xe,Ke)};M(Me,Xe=>{g()&&Xe(Ue)})}b(t,j),U(),o()}st(["contextmenu","keydown"]);var uu=class{constructor(e){this.value=e,this.next=null}};var dl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new uu(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 Ab=E('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Mb={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 gd(t,e){F(e,!0),W(t,Mb);let i=m(e,"values",19,()=>[]),o=G(void 0),r=G(null),s=16,a=120,l=60,d=a/l;Et(()=>{n(o).width=a,n(o).height=s,N(r,n(o).getContext("2d"),!0)});function f(u,y,x,w,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect(y,x,w,S)}Be(()=>{let u="";if(n(r)){let y=i()[0];for(let w=1;w<i().length;w++)i()[w]>y&&(y=i()[w]);n(r).clearRect(0,0,a,s);let x=l-1;for(let w=i().length-1;w>=0;w--){let S=x*d,T=y>0?s*(i()[w]/y):0;f(n(r),S,0,d,T),u=T+" "+u,x--}}});var p=Ab(),g=_(p);tt(g,u=>N(o,u),()=>n(o)),h(p),b(t,p),U()}var Mf=require("@vkontakte/videoplayer-shared");var Lb=(t,e)=>{t.stopPropagation(),Mf.safeStorage.remove(id),e.set(!1)},Vb=E('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Rb=E('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Nb=E('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Ob=E('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Bb=E('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Db=E('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Hb=E('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Fb=E('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Ub=E('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),zb=E('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Wb=E('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Kb=E('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),qb=E('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Qb=E('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Gb=E('<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>'),jb={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 hd(t,e){F(e,!0),W(t,jb);let[i,o]=Ve(),r=()=>$(l,"$isMobile",i),s=xe(),a=s.ui.debugPanelVisible,l=s.ui.isMobile,d=G(Xt(s.actions.internal.getDebugPanelData())),f=s.actions.internal.getVideoElement(),p=G(0),g=G(0),u=G(0),y=new dl(60),x=new dl(60),w=new dl(60),S=G(Xt([])),T=G(Xt([])),k=G(Xt([])),V=z("aria_label_debug_panel");Et(()=>{Mf.safeStorage.set(id,"true"),s.actions.internal.startLogging(),f&&(N(g,f.getVideoPlaybackQuality().droppedVideoFrames,!0),N(p,f.getVideoPlaybackQuality().totalVideoFrames,!0));let he=window.setInterval(()=>{N(d,s.actions.internal.getDebugPanelData(),!0)},500),me;return f&&(me=window.setInterval(()=>{if(f){N(g,f.getVideoPlaybackQuality().droppedVideoFrames,!0);let j=f.getVideoPlaybackQuality().totalVideoFrames;N(u,j-n(p)),N(p,j,!0),y.push(n(u)),n(d).speed&&x.push(n(d).speed),n(d).bitrate&&w.push(n(d).bitrate),N(S,y.getValuesFromBottom(),!0),N(T,x.getValuesFromBottom(),!0),N(k,w.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(he),me&&clearInterval(me)}});var A=Gb();let L;var P=_(A);P.__click=[Lb,a];var Q=I(P,2),D=_(Q),J=I(_(D),2),ie=_(J,!0);h(J),h(D);var re=I(D,2);{var Z=he=>{var me=Vb(),j=I(_(me),2),Me=_(j,!0);h(j),h(me),O(()=>pe(Me,n(d).id)),b(he,me)};M(re,he=>{n(d).id&&he(Z)})}var ue=I(re,2);{var Y=he=>{var me=Rb(),j=I(_(me),2),Me=_(j,!0);h(j),h(me),O(()=>pe(Me,n(d).vsid)),b(he,me)};M(ue,he=>{n(d).vsid&&he(Y)})}var we=I(ue,2);{var _e=he=>{var me=Nb(),j=I(_(me),2),Me=_(j,!0);h(j),h(me),O(()=>pe(Me,n(d).provider)),b(he,me)};M(we,he=>{n(d).provider&&he(_e)})}var Ee=I(we,2);{var He=he=>{var me=Ob(),j=I(_(me),2),Me=_(j);h(j),h(me),O(()=>pe(Me,`Video: ${(n(d).videoCodec||"")??""} ${n(d).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function ld(t,e){W(t,lb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),r=m(e,"isPlaying",3,!1);var s=ab();let a;var l=_(s);{var d=u=>{var y=nb();b(u,y)};M(l,u=>{i()&&u(d)})}var f=E(l,2);{var p=u=>{var y=rb(),x=_(y);ad(x,{isActive:!0}),h(y),b(u,y)},g=u=>{var y=sb(),x=_(y,!0);h(y),N(()=>fe(x,e.time)),b(u,y)};M(f,u=>{o()?u(p):u(g,!1)})}h(s),N(u=>a=J(s,1,"wrapper svelte-1s15d2i",null,a,u),[()=>({live:o(),playing:r()})]),b(t,s)}var nl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var db=P('<div role="timer" data-testid="thumb-timer"><!></div>'),cb={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 dd(t,e){F(e,!0),W(t,cb);let[i,o]=Ve(),r=()=>$(p,"$disabled",i),s=m(e,"isHidden",3,!1),a=m(e,"isLive",3,!1),l=m(e,"isPlaying",3,!1),d=It(),f=v(()=>en(e.duration-e.position)),p=ie(!1);var g=db();let u;var y=_(g);ld(y,{get time(){return n(f)},get isLive(){return a()},get isPlaying(){return l()},withEqualizer:!0}),h(g),us(g,()=>nl(s()&&d.features.usePerformanceFix,p,d.disableInvisibleComponentsTimeout)),N(x=>u=J(g,1,"thumb-timer svelte-c6gowj",null,u,x),[()=>({"out-of-flow":r(),hidden:s()})]),b(t,g),U(),o()}var rl=t=>{if(!navigator.clipboard){Gh(t);return}navigator.clipboard.writeText(t).catch(()=>Gh(t))};function Gh(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 o1=require("@vkontakte/videoplayer-core");var bf=require("@vkontakte/videoplayer-core");var _f="focus-hidden";var ur=t=>{t.stopPropagation(),t.preventDefault()},$f=t=>{t.parentNode?.firstElementChild?.classList.remove(_f)},pb=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},fb=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},mb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},vb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},jh=t=>t.code==="Escape",gb=t=>t.code==="ArrowLeft",cd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Yh=t=>{mb(t)?(ur(t),fb(t.target)):vb(t)&&(ur(t),pb(t.target))},Ps=t=>!bf.clientChecker.device.isAndroid&&t?.detail===0||bf.clientChecker.device.isAndroid&&t?.pointerType==="",sl=async(t,e,i)=>{await ao(),t&&!t.classList.contains("opened")&&!e&&ve(i)&&(await ao(),i.set(!1),t.focus())},Zh=async(t,e,i)=>{await ao(),t&&!e&&ve(i)&&(i.set(!1),t.focus())},ud=async(t,e,i,o=!1)=>{if(await ao(),!!t&&e&&!o){let s=t.children[0];s?.classList.toggle(_f,!i),s?.focus()}},Xh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},nu=(t,e)=>{Yh(t),$f(t.target),jh(t)&&(ur(t),e())},ru=async(t,e)=>{cd(t,["ArrowRight"])&&(ur(t),e())},Jh=async(t,e,i)=>{if(Yh(t),gb(t)){ur(t),e();return}jh(t)&&(ur(t),i())},al=(t,e)=>{cd(t)&&(ur(t),e())},e1=(t,e,i)=>{if(cd(t))ur(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),ur(t);return}o==="ArrowRight"&&!e&&(i(!0),ur(t))}},t1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},i1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var pa=require("@vkontakte/videoplayer-shared");var Lr={"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 yf=require("@vkontakte/videoplayer-shared");var _b=(t,e)=>{al(t,()=>e())},bb=P('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),$b={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function xf(t,e){F(e,!0),W(t,$b);let i=m(e,"onClick",3,yf.noop),o=m(e,"closeContextMenu",3,yf.noop),r=l=>{l?.stopPropagation(),i()(),o()()};var s=bb();s.__click=r,s.__keydown=[_b,r];var a=_(s,!0);h(s),N(()=>{Re(s,"aria-label",e.ariaLabel??e.label),Re(s,"data-testid",e.id),fe(a,e.label)}),b(t,s),U()}dt(["click","keydown"]);var ua=(t,e)=>t.weight-e.weight;var ll=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ll||{});var yb=(t,e)=>{nu(t,e)},xb=t=>{t.preventDefault()},wb=P('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Sb={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 wf(t,e){F(e,!0),W(t,Sb);let[i,o]=Ve(),r=()=>$(ae,"$isLive$",i),s=()=>$(he,"$isPiPEnabled$",i),a=()=>$(X,"$chromecastState$",i),l=()=>$(_e,"$pictureInPictureApiIsActive$",i),d=()=>$(Y,"$isLooped$",i),f=()=>$(j,"$positionExact$",i),p=()=>$(G,"$additionalContextMenuItems$",i),g=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),y=m(e,"playerContainerRef",3,void 0),x=m(e,"controlsContainerRef",3,void 0),w=m(e,"menuElementRef",15,void 0),S=Q(0),T=Q(0),k=Se(),{pictureInPicture$:L}=Yi(),A=It(),I=k.ui.contextMenu.visible$,O=k.ui.debugPanelVisible,G=k.ui.additionalContextMenuItems$,D=k.ui.t,ee=k.actions.internal.togglePictureInPicture,X=k.state.chromecastState$,ae=k.state.isLive$,j=k.state.positionExact$,ue=k.state.isInteractive,Y=k.state.looped$,{isEnabled$:he,isActive$:_e}=L,Ie=v(()=>A.features.copyVideoLink&&k.callbacks?.onCopyVideoLink),Fe=v(()=>n(Ie)&&!r()&&!ue),se=v(()=>!!k.callbacks?.onCopyEmbedCodeClicked),Ne=v(()=>s()&&a()!==o1.ChromecastState.CONNECTED&&!ue),oe=v(()=>!ue),R=v(()=>A.features.videoRotate&&!ue),Ee=v(()=>A.showSupport&&!l()),Ce=v(()=>A.features.saveTraceInfoToFile),de=()=>{I.set(!1),e.returnFocus?.()},te=(Je,He)=>{if(!w()||!y()||!x())return;let Le=w().getBoundingClientRect(),ot=y().getBoundingClientRect();V(S,Je-ot.left),V(T,He-ot.top),n(S)+Le.width>ot.width&&V(S,ot.width-Le.width),n(T)+Le.height>ot.height&&V(T,ot.height-Le.height),V(S,Math.max(n(S),0),!0),V(T,Math.max(n(T),0),!0)};De(()=>{(async()=>{if(w()&&y()&&x()){await ao();let{top:He,left:Le,bottom:ot,right:rt}=u(),tt=Le??0,Et=He??0,wi=w().getBoundingClientRect();(0,pa.isNullable)(Le)&&!(0,pa.isNullable)(rt)&&(tt=rt-wi.width),(0,pa.isNullable)(He)&&!(0,pa.isNullable)(ot)&&(Et=ot-wi.height),tt=Math.max(tt,0),Et=Math.max(Et,0),te(tt,Et)}})()});let be=()=>{k.actions.internal.videoRotate()},Oe=()=>{(0,pa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),k.actions.internal.reportProblem(),k.actions.internal.pause()},le=()=>{let Je=k.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let He=new Blob([...Je],{type:"plain/text"}),Le=window.URL.createObjectURL(He);ra(Le,"vk_player_debug_info","txt")}else rl(k.actions.internal.getDebugTextData())},lt=()=>{let Je=k.actions.internal.getTraceTextData(),He=new Blob([...Je],{type:"application/json"}),Le=window.URL.createObjectURL(He);ra(Le,"vk_player_trace_info","json")},K=()=>{O.set(!0)},Me=async()=>{try{ee()}finally{e.returnFocus?.()}},Ue=()=>{k.actions.internal.setLooped(!d())},Ze=()=>{if(n(se)){let Je=k.callbacks?.onCopyEmbedCodeClicked?.();Je&&rl(Je)}},ut=(Je=!1)=>{if(k.callbacks?.onCopyVideoLink){let He=k.callbacks?.onCopyVideoLink(Je,f());He&&rl(He)}},xt=v(()=>A.features.saveDebugInfoToFile?D("menu_save_debug"):D("menu_copy_debug")),gt=v(()=>n(Ie)?{id:"copy-link",weight:Lr["copy-link"],label:D("menu_copy_video_link"),onClick:()=>ut()}:void 0),_t=v(()=>n(Fe)?{id:"copy-link-timestamp",weight:Lr["copy-link-timestamp"],label:D("menu_copy_video_link_with_timestamp"),onClick:()=>ut(!0)}:void 0),Qe=v(()=>n(se)?{id:"copy-embed-code",weight:Lr["copy-embed-code"],label:D("menu_copy_embed_code"),onClick:Ze}:void 0),Dt=v(()=>n(Ne)?{id:"pip",weight:Lr.pip,label:l()?D("menu_pip_close"):D("menu_pip"),onClick:Me}:void 0),zt=v(()=>n(oe)?{id:"video-loop",weight:Lr["video-loop"],label:d()?D("menu_video_loop_off"):D("menu_video_loop_on"),ariaLabel:D("aria_label_menu_loop"),onClick:Ue}:void 0),Xe=v(()=>n(R)?{id:"rotate",weight:Lr.rotate,label:D("menu_video_rotate"),ariaLabel:D("aria_label_menu_rotate"),onClick:be}:void 0),Bt=v(()=>n(Ee)?{id:"report",weight:Lr.report,label:D("menu_report"),ariaLabel:`${D("menu_report")}. ${D("aria_label_new_tab_alert")}`,onClick:Oe}:void 0),$e=v(()=>({id:"save-debug",weight:Lr["save-debug"],label:n(xt),onClick:le})),Ht=v(()=>n(Ce)?{id:"save-trace",weight:Lr["save-trace"],label:D("menu_save_debug"),onClick:lt}:void 0),ye=v(()=>({id:"debug-info",weight:Lr["debug-info"],label:D("menu_debug_overlay"),ariaLabel:D("aria_label_menu_debug_overlay"),onClick:K})),pe=v(()=>[n(gt),n(_t),n(Qe),n(Dt),n(zt),n(Xe),n(Bt),n($e),n(Ht),n(ye),...p()].filter(Je=>!!Je).sort(ua));var Z=Be(),Pe=ce(Z);{var Ye=Je=>{var He=wb();He.__contextmenu=[xb],He.__keydown=[yb,de],ai(He,21,()=>n(pe),Le=>Le.id,(Le,ot)=>{xf(Le,{get id(){return n(ot).id},get label(){return n(ot).label},get ariaLabel(){return n(ot).ariaLabel},get onClick(){return n(ot).onClick},closeContextMenu:de})}),h(He),it(He,Le=>w(Le),()=>w()),N(()=>nt(He,`top: ${n(T)??""}px; left: ${n(S)??""}px;`)),b(Je,He)};M(Pe,Je=>{g()&&Je(Ye)})}b(t,Z),U(),o()}dt(["contextmenu","keydown"]);var su=class{constructor(e){this.value=e,this.next=null}};var dl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new su(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 Cb=P('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Tb={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){F(e,!0),W(t,Tb);let i=m(e,"values",19,()=>[]),o=Q(void 0),r=Q(null),s=16,a=120,l=60,d=a/l;At(()=>{n(o).width=a,n(o).height=s,V(r,n(o).getContext("2d"),!0)});function f(u,y,x,w,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect(y,x,w,S)}De(()=>{let u="";if(n(r)){let y=i()[0];for(let w=1;w<i().length;w++)i()[w]>y&&(y=i()[w]);n(r).clearRect(0,0,a,s);let x=l-1;for(let w=i().length-1;w>=0;w--){let S=x*d,T=y>0?s*(i()[w]/y):0;f(n(r),S,0,d,T),u=T+" "+u,x--}}});var p=Cb(),g=_(p);it(g,u=>V(o,u),()=>n(o)),h(p),b(t,p),U()}var Sf=require("@vkontakte/videoplayer-shared");var kb=(t,e)=>{t.stopPropagation(),Sf.safeStorage.remove(Xl),e.set(!1)},Ib=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Eb=P('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Pb=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Ab=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Mb=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Lb=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Vb=P('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Rb=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Nb=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Bb=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Ob=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Db=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Hb=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Fb=P('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Ub=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>'),zb={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 fd(t,e){F(e,!0),W(t,zb);let[i,o]=Ve(),r=()=>$(l,"$isMobile",i),s=Se(),a=s.ui.debugPanelVisible,l=s.ui.isMobile,d=Q(qt(s.actions.internal.getDebugPanelData())),f=s.actions.internal.getVideoElement(),p=Q(0),g=Q(0),u=Q(0),y=new dl(60),x=new dl(60),w=new dl(60),S=Q(qt([])),T=Q(qt([])),k=Q(qt([])),L=z("aria_label_debug_panel");At(()=>{Sf.safeStorage.set(Xl,"true"),s.actions.internal.startLogging(),f&&(V(g,f.getVideoPlaybackQuality().droppedVideoFrames,!0),V(p,f.getVideoPlaybackQuality().totalVideoFrames,!0));let ye=window.setInterval(()=>{V(d,s.actions.internal.getDebugPanelData(),!0)},500),pe;return f&&(pe=window.setInterval(()=>{if(f){V(g,f.getVideoPlaybackQuality().droppedVideoFrames,!0);let Z=f.getVideoPlaybackQuality().totalVideoFrames;V(u,Z-n(p)),V(p,Z,!0),y.push(n(u)),n(d).speed&&x.push(n(d).speed),n(d).bitrate&&w.push(n(d).bitrate),V(S,y.getValuesFromBottom(),!0),V(T,x.getValuesFromBottom(),!0),V(k,w.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(ye),pe&&clearInterval(pe)}});var A=Ub();let I;var O=_(A);O.__click=[kb,a];var G=E(O,2),D=_(G),ee=E(_(D),2),X=_(ee,!0);h(ee),h(D);var ae=E(D,2);{var j=ye=>{var pe=Ib(),Z=E(_(pe),2),Pe=_(Z,!0);h(Z),h(pe),N(()=>fe(Pe,n(d).id)),b(ye,pe)};M(ae,ye=>{n(d).id&&ye(j)})}var ue=E(ae,2);{var Y=ye=>{var pe=Eb(),Z=E(_(pe),2),Pe=_(Z,!0);h(Z),h(pe),N(()=>fe(Pe,n(d).vsid)),b(ye,pe)};M(ue,ye=>{n(d).vsid&&ye(Y)})}var he=E(ue,2);{var _e=ye=>{var pe=Pb(),Z=E(_(pe),2),Pe=_(Z,!0);h(Z),h(pe),N(()=>fe(Pe,n(d).provider)),b(ye,pe)};M(he,ye=>{n(d).provider&&ye(_e)})}var Ie=E(he,2);{var Fe=ye=>{var pe=Ab(),Z=E(_(pe),2),Pe=_(Z);h(Z),h(pe),N(()=>fe(Pe,`Video: ${(n(d).videoCodec||"")??""} ${n(d).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(n(d).audioCodec||"")??""} ${n(d).audioLanguage?`(${n(d).audioLanguage})`:""}`)),b(he,me)};M(Ee,he=>{(n(d).videoCodec||n(d).audioCodec)&&he(He)})}var ae=I(Ee,2);{var Re=he=>{var me=Bb(),j=I(_(me),2),Me=_(j,!0);h(j),h(me),O(()=>pe(Me,n(d).viewport)),b(he,me)};M(ae,he=>{n(d).viewport&&he(Re)})}var ne=I(ae,2);{var R=he=>{var me=Db(),j=I(_(me),2),Me=_(j,!0);h(j),h(me),O(()=>pe(Me,n(d).videoSize)),b(he,me)};M(ne,he=>{n(d).videoSize&&he(R)})}var Pe=I(ne,2);{var Te=he=>{var me=Hb(),j=I(_(me),2),Me=_(j,!0);h(j),h(me),O(()=>pe(Me,n(d).cdn)),b(he,me)};M(Pe,he=>{n(d).cdn&&he(Te)})}var ce=I(Pe,2);{var ee=he=>{var me=Fb(),j=I(_(me),2),Me=_(j);h(j),h(me),O(()=>pe(Me,`${n(d).volume??""} %`)),b(he,me)};M(ce,he=>{n(d).volume&&he(ee)})}var ye=I(ce,2);{var De=he=>{var me=Ub(),j=I(_(me),2),Me=_(j);h(j),h(me),O(Ue=>pe(Me,`${Ue??""} s`),[()=>n(d).position.toFixed(2)]),b(he,me)};M(ye,he=>{n(d).position&&he(De)})}var le=I(ye,2);{var at=he=>{var me=zb(),j=I(_(me),2),Me=_(j);h(j),h(me),O(Ue=>pe(Me,`${Ue??""} s`),[()=>n(d).buffer.toFixed(2)]),b(he,me)};M(le,he=>{n(d).buffer&&he(at)})}var K=I(le,2);{var Ae=he=>{var me=Wb(),j=I(_(me),2),Me=_(j);h(j),h(me),O(Ue=>pe(Me,`${Ue??""} s`),[()=>n(d).liveLatency.toFixed(2)]),b(he,me)};M(K,he=>{n(d).liveLatency&&he(Ae)})}var Fe=I(K,2);{var Ye=he=>{var me=Kb(),j=I(_(me),2),Me=_(j,!0);h(j),h(me),O(Ue=>pe(Me,Ue),[()=>[{value:n(d).currentVideoSegmentLength,title:"Video:"},{value:n(d).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ue})=>Ue).map(({value:Ue,title:Xe})=>`${Xe} ${((Ue??0)/1e3).toFixed(2)} s`).join(" & ")]),b(he,me)};M(Fe,he=>{(n(d).currentVideoSegmentLength||n(d).currentAudioSegmentLength)&&he(Ye)})}var dt=I(Fe,2),Ct=I(_(dt),2),ut=_(Ct);h(Ct),h(dt);var vt=I(dt,2);{var Je=he=>{var me=qb(),j=I(_(me),2);gd(j,{get values(){return n(T)}});var Me=I(j,2),Ue=_(Me);h(Me),h(me),O(Xe=>pe(Ue,`${Xe??""} Kbps`),[()=>n(d).speed.toFixed(2)]),b(he,me)};M(vt,he=>{n(d).speed&&he(Je)})}var Nt=I(vt,2);{var Kt=he=>{var me=Qb(),j=I(_(me),2);gd(j,{get values(){return n(k)}});var Me=I(j,2),Ue=_(Me);h(Me),h(me),O(Xe=>pe(Ue,`${Xe??""} Kbps`),[()=>n(d).bitrate.toFixed(2)]),b(he,me)};M(Nt,he=>{n(d).bitrate&&he(Kt)})}var At=I(Nt,2),Ft=I(_(At),2);gd(Ft,{get values(){return n(S)}});var Ce=I(Ft,2),Ze=_(Ce,!0);h(Ce),h(At),h(Q),h(A),O(he=>{L=X(A,1,"container svelte-4deykz",null,L,he),Ne(A,"aria-label",V),pe(ie,n(d).version),pe(ut,`${n(g)??""} / ${n(p)??""} frames`),pe(Ze,n(u))},[()=>({"container-mobile":r()})]),b(t,A),U(),o()}st(["click"]);var m1=require("@vkontakte/videoplayer-shared"),Yb=(t,e)=>{t.stopPropagation(),e()()},Zb=E('<div class="close svelte-1ome55p"></div>'),Xb={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 pa(t,e){F(e,!0),W(t,Xb);let i=m(e,"onClick",3,m1.noop);var o=Zb();o.__click=[Yb,i],b(t,o),U()}st(["click"]);var v1=require("@vkontakte/videoplayer-shared"),Jb=E('<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>'),e$={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 _d(t,e){F(e,!0),W(t,e$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,v1.noop),r=5e3,s=G(void 0),a,l,d=0,f;Be(()=>{i()&&ht(()=>{l=Date.now(),d=requestAnimationFrame(g)})});let p=()=>{d&&(cancelAnimationFrame(d),d=0)},g=()=>{p(),i()&&(f=(Date.now()-l)/r,f<1?(a?.clearRect(0,0,100,100),a?.beginPath(),a?.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a?.stroke(),d=requestAnimationFrame(g)):o()())};Et(()=>{a=n(s).getContext("2d"),a&&(a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff")}),Ro(()=>{p()});var u=Jb(),y=_(u);tt(y,x=>N(s,x),()=>n(s)),be(2),h(u),b(t,u),U()}var t$=(t,e,i)=>{e(!1),i()},i$=E('<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),o$={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 Lf(t,e){F(e,!0),W(t,o$);let[i,o]=Ve(),r=()=>$(l,"$autoplayNextEnabled$",i),s=()=>$(d,"$timerNextVideoRunning$",i),a=xe(),l=a.ui.autoplayNextEnabled$,d=a.ui.timerNextVideoRunning$,f=a.actions.internal.nextVideoClick,p=a.actions.internal.nextVideoAnnouncementShow,g=a.actions.internal.nextVideoAnnouncementClick,u=a.actions.internal.nextVideoAnnouncementAuto,y=a.actions.internal.nextVideoAnnouncementCancel,x=()=>{r()&&(f(!1),u())},w=()=>{e.clickCloseIcon(),y()};Et(()=>{e.isHide||p(),e.isHide&&r()&&(f(!1),u())});var S=Oe(),T=de(S);{var k=V=>{var A=i$(),L=I(de(A),2),P=_(L),Q=_(P),D=_(Q,!0);h(Q);var J=I(Q,2);pa(J,{onClick:w}),h(P);var ie=I(P,2);ie.__click=[t$,f,g];var re=_(ie),Z=_(re),ue=_(Z);let Y;var we=I(ue,2);{var _e=Re=>{let ne=v(()=>s()&&r());_d(Re,{get isRunning(){return n(ne)},onTimerEnded:x})};M(we,Re=>{r()&&Re(_e)})}h(Z),h(re);var Ee=I(re,2),He=_(Ee),ae=_(He,!0);h(He),h(Ee),h(ie),h(L),O((Re,ne)=>{pe(D,Re),it(Z,`background-image: url('${e.thumb}')`),Y=X(ue,1,"thumb-overlay svelte-jfbaax",null,Y,ne),pe(ae,e.title)},[()=>z("end_screen_next_video"),()=>({withOpacity:r()})]),b(V,A)};M(T,V=>{e.isHide||V(k)})}b(t,S),U(),o()}st(["click"]);var Ls=require("@vkontakte/videoplayer-core"),g1=require("@vkontakte/videoplayer-shared"),Jo=require("@vkontakte/videoplayer-statistics");var Vf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Rf=(t,e)=>Math.max(+(t-e).toFixed(2),0),pu=(t,e,i)=>{let o=Vf(e,i);e<1?t.actions.internal.setVolume(o):ve(t.state.muted$)&&t.actions.internal.setMuted(!1)},fu=(t,e,i)=>{let o=Rf(e,i);e>0&&t.actions.internal.setVolume(o)};var Ms=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o?.(),!1):e?!0:(r?.(),!1);var r$=(t,e)=>{e(t)},s$=E('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),a$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Nf(t,e){F(e,!0),W(t,a$);let[i,o]=Ve(),r=()=>$(Y,"$disabledControls$",i),s=()=>$(R,"$doubleForwardOn$",i),a=()=>$(at,"$isInteractiveTime$",i),l=()=>$(K,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>$(J,"$playbackState$",i),f=()=>$(Te,"$isEnded$",i),p=()=>$(ie,"$adPlaybackState",i),g=()=>$(re,"$positionExact$",i),u=()=>$(Z,"$duration$",i),y=()=>$(De,"$isAudioAvailable$",i),x=()=>$(ue,"$volume$",i),w=()=>$(He,"$availablePlaybackRates$",i),S=()=>$(Ee,"$currentPlaybackRate$",i),T=()=>$(we,"$muted$",i),k=()=>$(_e,"$currentSubtitle$",i),V=()=>$(ce,"$overlayContainer$",i),A=m(e,"nextButtonActive",3,!1),L=m(e,"prevButtonActive",3,!1),P=xe(),Q=Tt(),D=P.getLogger().createComponentLog("KeyboardControls component"),J=P.state.playbackState$,ie=P.ads.playbackState,re=P.state.positionExact$,Z=P.state.duration$,ue=P.state.volume$,Y=P.ui.controls.disabledControls$,we=P.state.muted$,_e=P.state.currentSubtitle$,Ee=P.state.currentPlaybackRate$,He=P.state.availablePlaybackRates$,ae=P.ui.contextMenu.openedByHotKey$,Re=P.ui.contextMenu.lastActiveElem$,ne=P.ui.contextMenu.visible$,R=P.ui.doubleForwardOn$,Pe=P.ui.contextMenu.position$,Te=P.state.isEnded$,ce=P.ui.overlayContainer$,ee=P.callbacks?.onAudioDoesNotExistHint,ye=P.callbacks?.onAudioDisabledHint,De=P.state.isAudioAvailable$,le=P.state.isAudioDisabled,at=P.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:K}=Ji(),Ae=0,Fe=!0,Ye=G(void 0),dt=Ze=>(Ze!==Fe&&(Fe=Ze,Ae=0),Ae+=1,(Q.controls.seekStepKeyboard+Q.controls.seekStepKeyboard*Ae)/1e3),Ct=(Ze,he)=>{let me=()=>{if(!r().has("PLAY_BUTTON")&&!s())if(a()&&l()&&K.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{P.actions.internal.togglePlay();let j="PLAY";d()===Ls.PlaybackState.PAUSED?j="PAUSE":f()&&(j="REPLAY"),e.showHotKeyHelpers({type:j})}};if(!Q.features.doubleForwardAvailable){me();return}Ze==="down"?!he&&e.startDoubleForwardActivationTimer():(e.stopDoubleForward(),me())},ut=(Ze,he=!1)=>{let me=Ze.target,j=me?.getAttribute("role")?.includes("menuitem"),Me=me.classList.contains("btn"),Ue=Ze.code;if(Me&&Ue==="Space")return!1;let Xe=_h.has(Ue);if(j&&Xe)return!1;let Ke=!hh.has(Ue);if(Ze.ctrlKey&&Ke||Ze.altKey&&Ke||Ze.metaKey)return!1;let Le=j&&Ue==="Escape";bh.has(Ue)||Le||e.hideContextMenu();let ot=d()===Ls.PlaybackState.PLAYING||d()===Ls.PlaybackState.PAUSED,qt=e.isAds&&(p()==="paused"||p()==="playing"),Ut=!qt&&!r().has("TIMELINE");if(!(ot||qt))return!1;D({message:`key down, code: ${Ue}, isExternal = ${he}`});let Rt=!1,$t=()=>{Rt=!0,he||Ze.preventDefault()};switch(Ue){case"KeyJ":case"ArrowLeft":{if(!Ut)break;if(Ze.ctrlKey||Ze.altKey){let yt=P.actions.internal.getPrevEpisode();P.actions.internal.seekToPrevEpisode(yt),yt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:yt.text}),$t()}else{let yt=Ze.shiftKey?dt(!1):Q.controls.seekStepKeyboard/1e3,Qt=Math.max(g()-yt,0);g()>0&&(P.actions.internal.seekTime(Qt,Jo.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:yt.toString()}),$t())}break}case"KeyL":case"ArrowRight":{if(!Ut)break;if(Ze.ctrlKey||Ze.altKey){let yt=P.actions.internal.getNextEpisode();P.actions.internal.seekToNextEpisode(yt),yt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:yt.text}),$t()}else{let yt=Ze.shiftKey?dt(!0):Q.controls.seekStepKeyboard/1e3,Qt=Math.min(g()+yt,u());Math.round(g())<Math.round(u())&&(P.actions.internal.seekTime(Qt,Jo.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:yt.toString()}),$t())}break}case"ArrowUp":{if(Ms({isAudioDisabled:le,audioDisabledHintCallback:ye,isAudioAvailable:y(),audioIsNotExistHintCallback:ee,isAds:e.isAds})){let yt=x(),Qt=Q.controls.volumeStepKeyboard,eo=yt<=1;if(pu(P,yt,Qt),eo){let Ni=Math.round(Vf(yt,Qt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ni}})}}$t();break}case"ArrowDown":{if(Ms({isAudioDisabled:le,audioDisabledHintCallback:ye,isAudioAvailable:y(),audioIsNotExistHintCallback:ee,isAds:e.isAds})){let yt=x(),Qt=Q.controls.volumeStepKeyboard,eo=yt>=0;if(fu(P,yt,Qt),eo){let Ni=Math.round(Rf(yt,Qt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ni}})}}$t();break}case"Comma":{if(Ze.shiftKey){P.actions.internal.decrementPlaybackRate();let yt=w().find(Qt=>Qt.value===S());e.showHotKeyHelpers({type:"RATE_DOWN",text:yt?.displayValue}),$t()}else{if(qt||d()!==Ls.PlaybackState.PAUSED)break;let yt=Math.max(g()-Q.controls.seekStepFrame/1e3,0);g()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),P.actions.internal.clearDelayedBufferingCheckTimeout(),P.actions.internal.seekTime(yt,Jo.SeekAction.DOUBLE_TAP),$t())}break}case"Period":{if(Ze.shiftKey){P.actions.internal.incrementPlaybackRate();let yt=w().find(Qt=>Qt.value===S());e.showHotKeyHelpers({type:"RATE_UP",text:yt?.displayValue}),$t()}else{if(qt||d()!==Ls.PlaybackState.PAUSED)break;let yt=Math.min(g()+Q.controls.seekStepFrame/1e3,u());g()<u()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),P.actions.internal.clearDelayedBufferingCheckTimeout(),P.actions.internal.seekTime(yt,Jo.SeekAction.DOUBLE_TAP),$t())}break}case"KeyK":case"Space":Ct("down",Ze.repeat),$t();break;case"KeyM":{Ms({isAudioDisabled:le,audioDisabledHintCallback:ye,isAudioAvailable:y(),audioIsNotExistHintCallback:ee,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),P.actions.internal.toggleMuted()),$t();break}case"KeyF":e.toggleFullscreen(),$t();break;case"KeyC":P.actions.internal.toggleSubtitle(),k().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:k()?.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),$t();break;case"KeyI":P.actions.internal.togglePictureInPicture(),$t();break;case"Digit1":case"Numpad1":if(Ze.shiftKey){let yt=p1(V());Pe.set(yt),Re.set(me),ae.set(!0),ne.set(!0),$t();break}e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.1,Jo.SeekAction.DOUBLE_TAP),$t();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.2,Jo.SeekAction.DOUBLE_TAP),$t();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.3,Jo.SeekAction.DOUBLE_TAP),$t();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.4,Jo.SeekAction.DOUBLE_TAP),$t();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.5,Jo.SeekAction.DOUBLE_TAP),$t();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.6,Jo.SeekAction.DOUBLE_TAP),$t();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.7,Jo.SeekAction.DOUBLE_TAP),$t();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.8,Jo.SeekAction.DOUBLE_TAP),$t();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.9,Jo.SeekAction.DOUBLE_TAP),$t();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(0,Jo.SeekAction.DOUBLE_TAP),$t();break;case"Slash":{Ze.shiftKey&&Q.features.hotKeyMapModal&&(e.showKeyMap(),$t());break}case"KeyN":Ze.shiftKey&&A()&&(P.actions.internal.nextVideoClick(),$t());break;case"KeyP":Ze.shiftKey&&L()&&(P.actions.internal.prevVideoClick(),$t());break;case"ShiftLeft":case"ShiftRight":$t();break;case"Tab":case"Escape":case"Enter":break;default:(0,g1.checkNever)(Ue);break}return Rt},vt=Ze=>{let he=Ze.code;if(Ze.ctrlKey||Ze.altKey||Ze.metaKey)return;let me=d()===Ls.PlaybackState.PLAYING||d()===Ls.PlaybackState.PAUSED,j=e.isAds&&(p()==="paused"||p()==="playing");if(me||j)switch(he){case"ShiftLeft":case"ShiftRight":Ae=0;break;case"Space":Ct("up");break}},Je=z("aria_label_video_player"),Nt=()=>n(Ye)?.focus(),Kt=Ze=>Ze.type==="keydown"?ut(Ze,!0):(Ze.type==="keyup"&&vt(Ze),!1);var At=s$();At.__keyup=vt,At.__keydown=[r$,ut];var Ft=_(At);fe(Ft,()=>e.children??oe),h(At),tt(At,Ze=>N(Ye,Ze),()=>n(Ye)),O(()=>Ne(At,"aria-label",Je)),b(t,At);var Ce=U({focus:Nt,handleExternalKeyboardEvent:Kt});return o(),Ce}st(["keyup","keydown"]);var l$=E('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),d$={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: ${(n(d).audioCodec||"")??""} ${n(d).audioLanguage?`(${n(d).audioLanguage})`:""}`)),b(ye,pe)};M(Ie,ye=>{(n(d).videoCodec||n(d).audioCodec)&&ye(Fe)})}var se=E(Ie,2);{var Ne=ye=>{var pe=Mb(),Z=E(_(pe),2),Pe=_(Z,!0);h(Z),h(pe),N(()=>fe(Pe,n(d).viewport)),b(ye,pe)};M(se,ye=>{n(d).viewport&&ye(Ne)})}var oe=E(se,2);{var R=ye=>{var pe=Lb(),Z=E(_(pe),2),Pe=_(Z,!0);h(Z),h(pe),N(()=>fe(Pe,n(d).videoSize)),b(ye,pe)};M(oe,ye=>{n(d).videoSize&&ye(R)})}var Ee=E(oe,2);{var Ce=ye=>{var pe=Vb(),Z=E(_(pe),2),Pe=_(Z,!0);h(Z),h(pe),N(()=>fe(Pe,n(d).cdn)),b(ye,pe)};M(Ee,ye=>{n(d).cdn&&ye(Ce)})}var de=E(Ee,2);{var te=ye=>{var pe=Rb(),Z=E(_(pe),2),Pe=_(Z);h(Z),h(pe),N(()=>fe(Pe,`${n(d).volume??""} %`)),b(ye,pe)};M(de,ye=>{n(d).volume&&ye(te)})}var be=E(de,2);{var Oe=ye=>{var pe=Nb(),Z=E(_(pe),2),Pe=_(Z);h(Z),h(pe),N(Ye=>fe(Pe,`${Ye??""} s`),[()=>n(d).position.toFixed(2)]),b(ye,pe)};M(be,ye=>{n(d).position&&ye(Oe)})}var le=E(be,2);{var lt=ye=>{var pe=Bb(),Z=E(_(pe),2),Pe=_(Z);h(Z),h(pe),N(Ye=>fe(Pe,`${Ye??""} s`),[()=>n(d).buffer.toFixed(2)]),b(ye,pe)};M(le,ye=>{n(d).buffer&&ye(lt)})}var K=E(le,2);{var Me=ye=>{var pe=Ob(),Z=E(_(pe),2),Pe=_(Z);h(Z),h(pe),N(Ye=>fe(Pe,`${Ye??""} s`),[()=>n(d).liveLatency.toFixed(2)]),b(ye,pe)};M(K,ye=>{n(d).liveLatency&&ye(Me)})}var Ue=E(K,2);{var Ze=ye=>{var pe=Db(),Z=E(_(pe),2),Pe=_(Z,!0);h(Z),h(pe),N(Ye=>fe(Pe,Ye),[()=>[{value:n(d).currentVideoSegmentLength,title:"Video:"},{value:n(d).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ye})=>Ye).map(({value:Ye,title:Je})=>`${Je} ${((Ye??0)/1e3).toFixed(2)} s`).join(" & ")]),b(ye,pe)};M(Ue,ye=>{(n(d).currentVideoSegmentLength||n(d).currentAudioSegmentLength)&&ye(Ze)})}var ut=E(Ue,2),xt=E(_(ut),2),gt=_(xt);h(xt),h(ut);var _t=E(ut,2);{var Qe=ye=>{var pe=Hb(),Z=E(_(pe),2);pd(Z,{get values(){return n(T)}});var Pe=E(Z,2),Ye=_(Pe);h(Pe),h(pe),N(Je=>fe(Ye,`${Je??""} Kbps`),[()=>n(d).speed.toFixed(2)]),b(ye,pe)};M(_t,ye=>{n(d).speed&&ye(Qe)})}var Dt=E(_t,2);{var zt=ye=>{var pe=Fb(),Z=E(_(pe),2);pd(Z,{get values(){return n(k)}});var Pe=E(Z,2),Ye=_(Pe);h(Pe),h(pe),N(Je=>fe(Ye,`${Je??""} Kbps`),[()=>n(d).bitrate.toFixed(2)]),b(ye,pe)};M(Dt,ye=>{n(d).bitrate&&ye(zt)})}var Xe=E(Dt,2),Bt=E(_(Xe),2);pd(Bt,{get values(){return n(S)}});var $e=E(Bt,2),Ht=_($e,!0);h($e),h(Xe),h(G),h(A),N(ye=>{I=J(A,1,"container svelte-4deykz",null,I,ye),Re(A,"aria-label",L),fe(X,n(d).version),fe(gt,`${n(g)??""} / ${n(p)??""} frames`),fe(Ht,n(u))},[()=>({"container-mobile":r()})]),b(t,A),U(),o()}dt(["click"]);var n1=require("@vkontakte/videoplayer-shared"),Wb=(t,e)=>{t.stopPropagation(),e()()},Kb=P('<div class="close svelte-1ome55p"></div>'),qb={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function fa(t,e){F(e,!0),W(t,qb);let i=m(e,"onClick",3,n1.noop);var o=Kb();o.__click=[Wb,i],b(t,o),U()}dt(["click"]);var r1=require("@vkontakte/videoplayer-shared"),Qb=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>'),Gb={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 md(t,e){F(e,!0),W(t,Gb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,r1.noop),r=5e3,s=Q(void 0),a,l,d=0,f;De(()=>{i()&&$t(()=>{l=Date.now(),d=requestAnimationFrame(g)})});let p=()=>{d&&(cancelAnimationFrame(d),d=0)},g=()=>{p(),i()&&(f=(Date.now()-l)/r,f<1?(a?.clearRect(0,0,100,100),a?.beginPath(),a?.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a?.stroke(),d=requestAnimationFrame(g)):o()())};At(()=>{a=n(s).getContext("2d"),a&&(a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff")}),No(()=>{p()});var u=Qb(),y=_(u);it(y,x=>V(s,x),()=>n(s)),xe(2),h(u),b(t,u),U()}var jb=(t,e,i)=>{e(!1),i()},Yb=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),Zb={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 Cf(t,e){F(e,!0),W(t,Zb);let[i,o]=Ve(),r=()=>$(l,"$autoplayNextEnabled$",i),s=()=>$(d,"$timerNextVideoRunning$",i),a=Se(),l=a.ui.autoplayNextEnabled$,d=a.ui.timerNextVideoRunning$,f=a.actions.internal.nextVideoClick,p=a.actions.internal.nextVideoAnnouncementShow,g=a.actions.internal.nextVideoAnnouncementClick,u=a.actions.internal.nextVideoAnnouncementAuto,y=a.actions.internal.nextVideoAnnouncementCancel,x=()=>{r()&&(f(!1),u())},w=()=>{e.clickCloseIcon(),y()};At(()=>{e.isHide||p(),e.isHide&&r()&&(f(!1),u())});var S=Be(),T=ce(S);{var k=L=>{var A=Yb(),I=E(ce(A),2),O=_(I),G=_(O),D=_(G,!0);h(G);var ee=E(G,2);fa(ee,{onClick:w}),h(O);var X=E(O,2);X.__click=[jb,f,g];var ae=_(X),j=_(ae),ue=_(j);let Y;var he=E(ue,2);{var _e=Ne=>{let oe=v(()=>s()&&r());md(Ne,{get isRunning(){return n(oe)},onTimerEnded:x})};M(he,Ne=>{r()&&Ne(_e)})}h(j),h(ae);var Ie=E(ae,2),Fe=_(Ie),se=_(Fe,!0);h(Fe),h(Ie),h(X),h(I),N((Ne,oe)=>{fe(D,Ne),nt(j,`background-image: url('${e.thumb}')`),Y=J(ue,1,"thumb-overlay svelte-jfbaax",null,Y,oe),fe(se,e.title)},[()=>z("end_screen_next_video"),()=>({withOpacity:r()})]),b(L,A)};M(T,L=>{e.isHide||L(k)})}b(t,S),U(),o()}dt(["click"]);var Ms=require("@vkontakte/videoplayer-core"),s1=require("@vkontakte/videoplayer-shared"),tn=require("@vkontakte/videoplayer-statistics");var Tf=(t,e)=>Math.min(+(t+e).toFixed(2),1),kf=(t,e)=>Math.max(+(t-e).toFixed(2),0),au=(t,e,i)=>{let o=Tf(e,i);e<1?t.actions.internal.setVolume(o):ve(t.state.muted$)&&t.actions.internal.setMuted(!1)},lu=(t,e,i)=>{let o=kf(e,i);e>0&&t.actions.internal.setVolume(o)};var As=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o?.(),!1):e?!0:(r?.(),!1);var Jb=(t,e)=>{e(t)},e$=P('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),t$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function If(t,e){F(e,!0),W(t,t$);let[i,o]=Ve(),r=()=>$(D,"$playbackState$",i),s=()=>$(ee,"$adPlaybackState",i),a=()=>$(ue,"$disabledControls$",i),l=()=>$(X,"$positionExact$",i),d=()=>$(ae,"$duration$",i),f=()=>$(te,"$isAudioAvailable$",i),p=()=>$(j,"$volume$",i),g=()=>$(Ie,"$availablePlaybackRates$",i),u=()=>$(_e,"$currentPlaybackRate$",i),y=()=>$(Oe,"$isInteractiveTime$",i),x=()=>$(le,"$showInteractiveTimeIndicatorTooltip$",i),w=()=>$(R,"$isEnded$",i),S=()=>$(Y,"$muted$",i),T=()=>$(he,"$currentSubtitle$",i),k=()=>$(Ee,"$overlayContainer$",i),L=m(e,"nextButtonActive",3,!1),A=m(e,"prevButtonActive",3,!1),I=Se(),O=It(),G=I.getLogger().createComponentLog("KeyboardControls component"),D=I.state.playbackState$,ee=I.ads.playbackState,X=I.state.positionExact$,ae=I.state.duration$,j=I.state.volume$,ue=I.ui.controls.disabledControls$,Y=I.state.muted$,he=I.state.currentSubtitle$,_e=I.state.currentPlaybackRate$,Ie=I.state.availablePlaybackRates$,Fe=I.ui.contextMenu.openedByHotKey$,se=I.ui.contextMenu.lastActiveElem$,Ne=I.ui.contextMenu.visible$,oe=I.ui.contextMenu.position$,R=I.state.isEnded$,Ee=I.ui.overlayContainer$,Ce=I.callbacks?.onAudioDoesNotExistHint,de=I.callbacks?.onAudioDisabledHint,te=I.state.isAudioAvailable$,be=I.state.isAudioDisabled,Oe=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:le}=Yi(),lt=0,K=!0,Me=Q(void 0),Ue=Xe=>(Xe!==K&&(K=Xe,lt=0),lt+=1,(O.controls.seekStepKeyboard+O.controls.seekStepKeyboard*lt)/1e3),Ze=(Xe,Bt=!1)=>{let $e=Xe.target,Ht=$e?.getAttribute("role")?.includes("menuitem"),ye=$e.classList.contains("btn"),pe=Xe.code;if(ye&&pe==="Space")return!1;let Z=lh.has(pe);if(Ht&&Z)return!1;let Pe=!ah.has(pe);if(Xe.ctrlKey&&Pe||Xe.altKey&&Pe||Xe.metaKey)return!1;let Ye=Ht&&pe==="Escape";dh.has(pe)||Ye||e.hideContextMenu();let Je=r()===Ms.PlaybackState.PLAYING||r()===Ms.PlaybackState.PAUSED,He=e.isAds&&(s()==="paused"||s()==="playing"),Le=!He&&!a().has("TIMELINE");if(!(Je||He))return!1;G({message:`key down, code: ${pe}, isExternal = ${Bt}`});let ot=!1,rt=()=>{ot=!0,Bt||Xe.preventDefault()};switch(pe){case"KeyJ":case"ArrowLeft":{if(!Le)break;if(Xe.ctrlKey||Xe.altKey){let tt=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(tt),tt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:tt.text}),rt()}else{let tt=Xe.shiftKey?Ue(!1):O.controls.seekStepKeyboard/1e3,Et=Math.max(l()-tt,0);l()>0&&(I.actions.internal.seekTime(Et,tn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:tt.toString()}),rt())}break}case"KeyL":case"ArrowRight":{if(!Le)break;if(Xe.ctrlKey||Xe.altKey){let tt=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(tt),tt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:tt.text}),rt()}else{let tt=Xe.shiftKey?Ue(!0):O.controls.seekStepKeyboard/1e3,Et=Math.min(l()+tt,d());Math.round(l())<Math.round(d())&&(I.actions.internal.seekTime(Et,tn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:tt.toString()}),rt())}break}case"ArrowUp":{if(As({isAudioDisabled:be,audioDisabledHintCallback:de,isAudioAvailable:f(),audioIsNotExistHintCallback:Ce,isAds:e.isAds})){let tt=p(),Et=O.controls.volumeStepKeyboard,wi=tt<=1;if(au(I,tt,Et),wi){let zi=Math.round(Tf(tt,Et)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zi}})}}rt();break}case"ArrowDown":{if(As({isAudioDisabled:be,audioDisabledHintCallback:de,isAudioAvailable:f(),audioIsNotExistHintCallback:Ce,isAds:e.isAds})){let tt=p(),Et=O.controls.volumeStepKeyboard,wi=tt>=0;if(lu(I,tt,Et),wi){let zi=Math.round(kf(tt,Et)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zi}})}}rt();break}case"Comma":{if(Xe.shiftKey){I.actions.internal.decrementPlaybackRate();let tt=g().find(Et=>Et.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:tt?.displayValue}),rt()}else{if(He||r()!==Ms.PlaybackState.PAUSED)break;let tt=Math.max(l()-O.controls.seekStepFrame/1e3,0);l()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(tt,tn.SeekAction.DOUBLE_TAP),rt())}break}case"Period":{if(Xe.shiftKey){I.actions.internal.incrementPlaybackRate();let tt=g().find(Et=>Et.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:tt?.displayValue}),rt()}else{if(He||r()!==Ms.PlaybackState.PAUSED)break;let tt=Math.min(l()+O.controls.seekStepFrame/1e3,d());l()<d()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(tt,tn.SeekAction.DOUBLE_TAP),rt())}break}case"KeyK":case"Space":if(!a().has("PLAY_BUTTON"))if(y()&&x()&&le.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let tt="PLAY";r()===Ms.PlaybackState.PAUSED?tt="PAUSE":w()&&(tt="REPLAY"),e.showHotKeyHelpers({type:tt})}rt();break;case"KeyM":{As({isAudioDisabled:be,audioDisabledHintCallback:de,isAudioAvailable:f(),audioIsNotExistHintCallback:Ce,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),rt();break}case"KeyF":e.toggleFullscreen(),rt();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:T()?.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),rt();break;case"KeyI":I.actions.internal.togglePictureInPicture(),rt();break;case"Digit1":case"Numpad1":if(Xe.shiftKey){let tt=i1(k());oe.set(tt),se.set($e),Fe.set(!0),Ne.set(!0),rt();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,tn.SeekAction.DOUBLE_TAP),rt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,tn.SeekAction.DOUBLE_TAP),rt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,tn.SeekAction.DOUBLE_TAP),rt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,tn.SeekAction.DOUBLE_TAP),rt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,tn.SeekAction.DOUBLE_TAP),rt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,tn.SeekAction.DOUBLE_TAP),rt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,tn.SeekAction.DOUBLE_TAP),rt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,tn.SeekAction.DOUBLE_TAP),rt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,tn.SeekAction.DOUBLE_TAP),rt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,tn.SeekAction.DOUBLE_TAP),rt();break;case"Slash":{Xe.shiftKey&&O.features.hotKeyMapModal&&(e.showKeyMap(),rt());break}case"KeyN":Xe.shiftKey&&L()&&(I.actions.internal.nextVideoClick(),rt());break;case"KeyP":Xe.shiftKey&&A()&&(I.actions.internal.prevVideoClick(),rt());break;case"ShiftLeft":case"ShiftRight":rt();break;case"Tab":case"Escape":case"Enter":break;default:(0,s1.checkNever)(pe);break}return ot},ut=Xe=>{let Bt=Xe.code;if(Xe.ctrlKey||Xe.altKey||Xe.metaKey)return;let $e=r()===Ms.PlaybackState.PLAYING||r()===Ms.PlaybackState.PAUSED,Ht=e.isAds&&(s()==="paused"||s()==="playing");if($e||Ht)switch(Bt){case"ShiftLeft":case"ShiftRight":lt=0;break}},xt=z("aria_label_video_player"),gt=()=>n(Me)?.focus(),_t=Xe=>Xe.type==="keydown"?Ze(Xe,!0):(Xe.type==="keyup"&&ut(Xe),!1);var Qe=e$();Qe.__keyup=ut,Qe.__keydown=[Jb,Ze];var Dt=_(Qe);me(Dt,()=>e.children??ne),h(Qe),it(Qe,Xe=>V(Me,Xe),()=>n(Me)),N(()=>Re(Qe,"aria-label",xt)),b(t,Qe);var zt=U({focus:gt,handleExternalKeyboardEvent:_t});return o(),zt}dt(["keyup","keydown"]);var i$=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>'),o$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
141
141
 
142
142
  @keyframes svelte-1dbnjb1-dot_animation {
143
143
  0% {
@@ -150,29 +150,29 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Yh=z_;var f
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 fa(t,e){W(t,d$);let i=m(e,"style",3,"");var o=l$();O(()=>it(o,i())),b(t,o)}var c$=$e('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function Of(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=c$();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}var ma=require("@vkontakte/videoplayer-shared"),u$=t=>{t.stopPropagation()},p$=E("<button><!></button>"),f$={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 ma(t,e){W(t,o$);let i=m(e,"style",3,"");var o=i$();N(()=>nt(o,i())),b(t,o)}var n$=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 Ef(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=n$();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}var va=require("@vkontakte/videoplayer-shared"),r$=t=>{t.stopPropagation()},s$=P("<button><!></button>"),a$={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;}
154
154
 
155
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;}
156
156
 
157
157
  /* mobile */
158
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
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 Pt(t,e){F(e,!0),W(t,f$);let i=m(e,"className",3,""),o=m(e,"style",3,""),r=m(e,"disabled",3,void 0),s=m(e,"testId",3,void 0),a=m(e,"ariaHidden",3,void 0),l=m(e,"ariaLabel",3,void 0),d=m(e,"ref",15,void 0),f=m(e,"ariaKeyShortCut",3,void 0),p=m(e,"ariaExpanded",3,void 0),g=m(e,"tabIndex",3,0),u=m(e,"click",3,ma.noop),y=m(e,"focus",3,ma.noop),x=m(e,"blur",3,ma.noop),w=v(()=>u()===ma.noop?null:A=>{A.stopPropagation(),u()(A)}),S=v(()=>y()===ma.noop?null:A=>{A.preventDefault(),y()()}),T=v(()=>x()===ma.noop?null:A=>{A.preventDefault(),x()()});var k=p$();k.__pointerdown=[u$],k.__click=function(...A){n(w)?.apply(this,A)};var V=_(k);fe(V,()=>e.children??oe),h(k),tt(k,A=>d(A),()=>d()),O(()=>{X(k,1,`btn ${i()??""}`,"svelte-ut3f27"),it(k,o()||null),k.disabled=r()??null,Ne(k,"aria-hidden",a()??null),Ne(k,"aria-label",l()??null),Ne(k,"aria-keyshortcuts",f()??null),Ne(k,"aria-expanded",p()??null),Ne(k,"data-testid",s()??null),Ne(k,"tabindex",g()),Ne(k,"role",e.role),Ne(k,"aria-checked",e.areaChecked??null)}),bt("focus",k,function(...A){n(S)?.apply(this,A)}),bt("blur",k,function(...A){n(T)?.apply(this,A)}),b(t,k),U()}st(["pointerdown","click"]);var m$=E('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),v$=E('<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>'),g$={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 Bf(t,e){F(e,!0),W(t,g$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),r=z("hotkey_map_modal_close_btn_text");var s=v$(),a=_(s),l=_(a);{var d=u=>{var y=m$(),x=_(y),w=_(x,!0);h(x);var S=I(x,2);{var T=k=>{Pt(k,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(V,A)=>{Of(V,{})},$$slots:{default:!0}})};M(S,k=>{o()&&k(T)})}h(y),O(()=>pe(w,e.title)),b(u,y)};M(l,u=>{i()&&u(d)})}var f=I(l,2),p=_(f),g=_(p);fe(g,()=>e.children??oe),h(p),h(f),h(a),h(s),b(t,s),U()}var h$=new Set(["BR"]),h1=t=>{let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],s=r.tagName;h$.has(s)||r.parentElement?.removeChild(r)}return e.innerHTML};var _$=E('<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>'),b$=E('<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>'),$$=E('<div class="hot-key-map svelte-quklnq"></div>'),y$={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,
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 Mt(t,e){F(e,!0),W(t,a$);let i=m(e,"className",3,""),o=m(e,"style",3,""),r=m(e,"disabled",3,void 0),s=m(e,"testId",3,void 0),a=m(e,"ariaHidden",3,void 0),l=m(e,"ariaLabel",3,void 0),d=m(e,"ref",15,void 0),f=m(e,"ariaKeyShortCut",3,void 0),p=m(e,"ariaExpanded",3,void 0),g=m(e,"tabIndex",3,0),u=m(e,"click",3,va.noop),y=m(e,"focus",3,va.noop),x=m(e,"blur",3,va.noop),w=v(()=>u()===va.noop?null:A=>{A.stopPropagation(),u()(A)}),S=v(()=>y()===va.noop?null:A=>{A.preventDefault(),y()()}),T=v(()=>x()===va.noop?null:A=>{A.preventDefault(),x()()});var k=s$();k.__pointerdown=[r$],k.__click=function(...A){n(w)?.apply(this,A)};var L=_(k);me(L,()=>e.children??ne),h(k),it(k,A=>d(A),()=>d()),N(()=>{J(k,1,`btn ${i()??""}`,"svelte-ut3f27"),nt(k,o()||null),k.disabled=r()??null,Re(k,"aria-hidden",a()??null),Re(k,"aria-label",l()??null),Re(k,"aria-keyshortcuts",f()??null),Re(k,"aria-expanded",p()??null),Re(k,"data-testid",s()??null),Re(k,"tabindex",g()),Re(k,"role",e.role),Re(k,"aria-checked",e.areaChecked??null)}),yt("focus",k,function(...A){n(S)?.apply(this,A)}),yt("blur",k,function(...A){n(T)?.apply(this,A)}),b(t,k),U()}dt(["pointerdown","click"]);var l$=P('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),d$=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>'),c$={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 Pf(t,e){F(e,!0),W(t,c$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),r=z("hotkey_map_modal_close_btn_text");var s=d$(),a=_(s),l=_(a);{var d=u=>{var y=l$(),x=_(y),w=_(x,!0);h(x);var S=E(x,2);{var T=k=>{Mt(k,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(L,A)=>{Ef(L,{})},$$slots:{default:!0}})};M(S,k=>{o()&&k(T)})}h(y),N(()=>fe(w,e.title)),b(u,y)};M(l,u=>{i()&&u(d)})}var f=E(l,2),p=_(f),g=_(p);me(g,()=>e.children??ne),h(p),h(f),h(a),h(s),b(t,s),U()}var u$=new Set(["BR"]),a1=t=>{let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],s=r.tagName;u$.has(s)||r.parentElement?.removeChild(r)}return e.innerHTML};var p$=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>'),f$=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>'),m$=P('<div class="hot-key-map svelte-quklnq"></div>'),v$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
161
161
  .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 Df(t,e){F(e,!1),W(t,y$);let[i,o]=Ve(),r=()=>$(a,"$data",i),s=xe(),{data:a,show:l}=s.ui.modals.hotKeyMap,d=()=>{l.set(!1)};Ar(),Bf(t,{get title(){return r().title},onClose:d,children:(f,p)=>{var g=$$();pi(g,5,()=>r().groups,({title:u,items:y})=>u,(u,y)=>{let x=()=>n(y).title,w=()=>n(y).items;var S=b$(),T=_(S),k=_(T,!0);h(T);var V=I(T,2);pi(V,5,w,({description:A,value:L})=>L,(A,L)=>{let P=()=>n(L).description,Q=()=>n(L).value;var D=_$(),J=_(D),ie=_(J);Xl(ie,()=>h1(P())),h(J);var re=I(J,2),Z=_(re,!0);h(re),h(D),O(()=>pe(Z,Q())),b(A,D)}),h(V),h(S),O(()=>pe(k,x())),b(u,S)}),h(g),b(f,g)},$$slots:{default:!0}}),U(),o()}var Vm=require("@vkontakte/videoplayer-shared");var ya=require("@vkontakte/videoplayer-core");var $V=require("@vkontakte/videoplayer-shared");var x$=E('<div class="pillow svelte-1oe0j8n"><!></div>'),w$={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 Hf(t,e){W(t,w$);var i=x$(),o=_(i);fe(o,()=>e.children??oe),h(i),b(t,i)}var cl=require("@vkontakte/videoplayer-shared");var S$=$e('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function Ff(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=S$();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}var C$=$e('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function Uf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=C$();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}var T$=$e('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function zf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=T$();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var k$=$e('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function bd(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=k$();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var I$=$e('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function $d(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=I$();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}var mu=t=>{switch(t){case cl.VideoQuality.Q_720P:return zf;case cl.VideoQuality.Q_1080P:return bd;case cl.VideoQuality.Q_1440P:return $d;case cl.VideoQuality.Q_2160P:return Ff;case cl.VideoQuality.Q_4320P:return Uf}};var E$=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function Wf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=E$();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var P$=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function Kf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=P$();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}var A$=E('<div aria-hidden="true"><!> <!></div>'),M$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function yd(t,e){F(e,!0),W(t,M$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),r=v(()=>mu(o())),s=v(()=>!!n(r)&&[bd,$d].includes(n(r)));var a=Oe(),l=de(a);{var d=p=>{Wf(p,{})},f=p=>{var g=A$();let u;var y=_(g);{var x=T=>{Hf(T,{children:(k,V)=>{var A=Oe(),L=de(A);fi(L,()=>n(r),(P,Q)=>{Q(P,{})}),b(k,A)},$$slots:{default:!0}})};M(y,T=>{n(r)&&T(x)})}var w=I(y,2);let S=v(()=>n(r)?"settings-icon--labeled":"settings-icon");Kf(w,{get"data-testid"(){return n(S)},fill:"var(--btn-color, #fff)"}),h(g),O(T=>u=X(g,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:n(s)})]),b(p,g)};M(l,p=>{i()?p(d):p(f,!1)})}b(t,a),U()}var L$=E('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),V$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ul(t,e){F(e,!0),W(t,V$);let[i,o]=Ve(),r=()=>$(f,"$settingsMenuVisible",i),s=()=>$(u,"$isMobile",i),a=()=>$(d,"$currentQuality",i),l=xe(),d=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,p=l.actions.internal.openSettingsMenu,g=l.actions.internal.closeSettingsMenu,u=l.ui.isMobile,y=l.ui.t,x=G(void 0);Be(()=>{n(x)&&ht(()=>{e.ref$.set(n(x))})});let w=y("aria_label_settings");async function S(k){let V=As(k);r()?g():p(V,uo)}let T=v(()=>r()?"opened":"");Pt(t,{get className(){return n(T)},testId:"btn-settings",click:S,get ariaLabel(){return w},get ariaExpanded(){return r()},get ref(){return n(x)},set ref(k){N(x,k,!0)},children:(k,V)=>{var A=L$(),L=_(A);yd(L,{get isMobile(){return s()},get currentQuality(){return a()}}),h(A),b(k,A)},$$slots:{default:!0}}),U(),o()}var R$=$e('<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 qf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=R$();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var N$=$e('<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 xd(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=N$();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}function Qf(t,e){F(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),r=xe().ui.t,s=v(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Pt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return Xr.KeyC},role:"button",children:(a,l)=>{var d=Oe(),f=de(d);{var p=u=>{qf(u,{})},g=u=>{xd(u,{})};M(f,u=>{i()?u(p):u(g,!1)})}b(a,d)},$$slots:{default:!0}}),U()}var O$=E('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),B$=E('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),D$={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 wd(t,e){F(e,!0),W(t,D$);let i=m(e,"isMobile",3,!1),o=m(e,"isHidden",3,!1),r=m(e,"showDuration",3,!0),s=m(e,"ref",15),a=Tt(),l=te(!1),d=v(()=>Xo(e.duration)),f=v(()=>Xo(e.position));var p=B$();let g;var u=_(p),y=_(u,!0);h(u);var x=I(u,2);{var w=S=>{var T=O$(),k=_(T,!0);h(T),O(()=>pe(k,n(d))),b(S,T)};M(x,S=>{r()&&S(w)})}h(p),us(p,()=>nl(o()&&a.features.usePerformanceFix,l,a.disableInvisibleComponentsTimeout)),tt(p,S=>s(S),()=>s()),O(S=>{g=X(p,1,"time svelte-sz9er7",null,g,S),pe(y,n(f))},[()=>({mobile:i()})]),b(t,p),U()}var Cd=require("@vkontakte/videoplayer-shared");var H$=$e('<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>'),F$={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),
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 Af(t,e){F(e,!1),W(t,v$);let[i,o]=Ve(),r=()=>$(a,"$data",i),s=Se(),{data:a,show:l}=s.ui.modals.hotKeyMap,d=()=>{l.set(!1)};Ar(),Pf(t,{get title(){return r().title},onClose:d,children:(f,p)=>{var g=m$();ai(g,5,()=>r().groups,({title:u,items:y})=>u,(u,y)=>{let x=()=>n(y).title,w=()=>n(y).items;var S=f$(),T=_(S),k=_(T,!0);h(T);var L=E(T,2);ai(L,5,w,({description:A,value:I})=>I,(A,I)=>{let O=()=>n(I).description,G=()=>n(I).value;var D=p$(),ee=_(D),X=_(ee);Gl(X,()=>a1(O())),h(ee);var ae=E(ee,2),j=_(ae,!0);h(ae),h(D),N(()=>fe(j,G())),b(A,D)}),h(L),h(S),N(()=>fe(k,x())),b(u,S)}),h(g),b(f,g)},$$slots:{default:!0}}),U(),o()}var Tm=require("@vkontakte/videoplayer-shared");var xa=require("@vkontakte/videoplayer-core");var uV=require("@vkontakte/videoplayer-shared");var g$=P('<div class="pillow svelte-1oe0j8n"><!></div>'),h$={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function Mf(t,e){W(t,h$);var i=g$(),o=_(i);me(o,()=>e.children??ne),h(i),b(t,i)}var cl=require("@vkontakte/videoplayer-shared");var _$=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 Lf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=_$();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}var b$=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 Vf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=b$();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}var $$=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 Rf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=$$();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var y$=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 vd(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=y$();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var x$=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 gd(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=x$();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}var du=t=>{switch(t){case cl.VideoQuality.Q_720P:return Rf;case cl.VideoQuality.Q_1080P:return vd;case cl.VideoQuality.Q_1440P:return gd;case cl.VideoQuality.Q_2160P:return Lf;case cl.VideoQuality.Q_4320P:return Vf}};var w$=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 Nf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=w$();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var S$=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 Bf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=S$();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}var C$=P('<div aria-hidden="true"><!> <!></div>'),T$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function hd(t,e){F(e,!0),W(t,T$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),r=v(()=>du(o())),s=v(()=>!!n(r)&&[vd,gd].includes(n(r)));var a=Be(),l=ce(a);{var d=p=>{Nf(p,{})},f=p=>{var g=C$();let u;var y=_(g);{var x=T=>{Mf(T,{children:(k,L)=>{var A=Be(),I=ce(A);li(I,()=>n(r),(O,G)=>{G(O,{})}),b(k,A)},$$slots:{default:!0}})};M(y,T=>{n(r)&&T(x)})}var w=E(y,2);let S=v(()=>n(r)?"settings-icon--labeled":"settings-icon");Bf(w,{get"data-testid"(){return n(S)},fill:"var(--btn-color, #fff)"}),h(g),N(T=>u=J(g,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:n(s)})]),b(p,g)};M(l,p=>{i()?p(d):p(f,!1)})}b(t,a),U()}var k$=P('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),I$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ul(t,e){F(e,!0),W(t,I$);let[i,o]=Ve(),r=()=>$(f,"$settingsMenuVisible",i),s=()=>$(u,"$isMobile",i),a=()=>$(d,"$currentQuality",i),l=Se(),d=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,p=l.actions.internal.openSettingsMenu,g=l.actions.internal.closeSettingsMenu,u=l.ui.isMobile,y=l.ui.t,x=Q(void 0);De(()=>{n(x)&&$t(()=>{e.ref$.set(n(x))})});let w=y("aria_label_settings");async function S(k){let L=Ps(k);r()?g():p(L,ao)}let T=v(()=>r()?"opened":"");Mt(t,{get className(){return n(T)},testId:"btn-settings",click:S,get ariaLabel(){return w},get ariaExpanded(){return r()},get ref(){return n(x)},set ref(k){V(x,k,!0)},children:(k,L)=>{var A=k$(),I=_(A);hd(I,{get isMobile(){return s()},get currentQuality(){return a()}}),h(A),b(k,A)},$$slots:{default:!0}}),U(),o()}var E$=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 Of(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=E$();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var P$=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 _d(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=P$();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}function Df(t,e){F(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),r=Se().ui.t,s=v(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Mt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return Xr.KeyC},role:"button",children:(a,l)=>{var d=Be(),f=ce(d);{var p=u=>{Of(u,{})},g=u=>{_d(u,{})};M(f,u=>{i()?u(p):u(g,!1)})}b(a,d)},$$slots:{default:!0}}),U()}var A$=P('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),M$=P('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),L$={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function bd(t,e){F(e,!0),W(t,L$);let i=m(e,"isMobile",3,!1),o=m(e,"isHidden",3,!1),r=m(e,"showDuration",3,!0),s=m(e,"ref",15),a=It(),l=ie(!1),d=v(()=>en(e.duration)),f=v(()=>en(e.position));var p=M$();let g;var u=_(p),y=_(u,!0);h(u);var x=E(u,2);{var w=S=>{var T=A$(),k=_(T,!0);h(T),N(()=>fe(k,n(d))),b(S,T)};M(x,S=>{r()&&S(w)})}h(p),us(p,()=>nl(o()&&a.features.usePerformanceFix,l,a.disableInvisibleComponentsTimeout)),it(p,S=>s(S),()=>s()),N(S=>{g=J(p,1,"time svelte-sz9er7",null,g,S),fe(y,n(f))},[()=>({mobile:i()})]),b(t,p),U()}var yd=require("@vkontakte/videoplayer-shared");var V$=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>'),R$={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
163
  .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 Vs(t,e){W(t,F$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),r=(l,d)=>d?"off":l>.5?"max":l>.2?"mid":l>0?"min":"off",s=v(()=>r(i(),o()));var a=H$();O(()=>{Ne(a,"data-value",n(s)),Ne(a,"data-testid",`volume-${n(s)??""}-icon`)}),b(t,a)}var mo=require("@vkontakte/videoplayer-shared");var vu=require("@vkontakte/videoplayer-shared");var _1=require("@vkontakte/videoplayer-shared");var U$=E('<div class="overlay"><!></div>');function Gf(t,e){F(e,!0);let[i,o]=Ve(),r=()=>$(a,"$overlayContainer$",i),a=xe().ui.overlayContainer$,l=G(void 0),d=u=>{!u||!n(l)||!u.contains(n(l))||u.removeChild(n(l))},f=u=>{!u||!n(l)||u.contains(n(l))||u.appendChild(n(l))};Be(()=>{f(r())}),Et(()=>(f(r()),()=>d(r())));var p=U$(),g=_(p);fe(g,()=>e.children??oe),h(p),tt(p,u=>N(l,u),()=>n(l)),b(t,p),U(),o()}var z$=E('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),W$=E("<div><!></div> <!>",1),K$={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 va(t,e){F(e,!0),W(t,K$);let[i,o]=Ve(),r=()=>$(ie,"$overlayContainer$",i),s=()=>$(J,"$containerSize",i),a=m(e,"isMobile",3,!1),l=m(e,"content",3,""),d=m(e,"active",15,!1),f=m(e,"translateX",3,0),p=m(e,"translateY",3,0),g=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),y=m(e,"placement",3,"top"),x=m(e,"onVisibilityChange",3,_1.noop),w=5,S=G(void 0),T=G(void 0),k,V=G(0),A=G(0),L=G(0),P=G(0),Q=Tt(),D=xe(),J=D.ui.playerSize,ie=D.ui.overlayContainer$;Be(()=>{ht(()=>{x()(d())})});let re=D.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!r()||!n(T)||!n(S))return;N(A,w);let K=r().getBoundingClientRect(),Ae=n(S).getBoundingClientRect(),Fe=Ae.width,Ye=n(T).clientWidth,dt=s().width,Ct=(Fe-Ye)/2,ut=Ae.left+f()-K.left,vt=ut+Ct,Je=Ae.top+p()-K.top,Nt=Ye/2-w,Kt=vt<8,At=vt+Ye>dt-8;Kt&&(vt=8,Nt=ut+Ae.width/2-2.5*w),At&&(vt=dt-8-Ye,Nt=Ae.left-K.left+Ae.width/2-vt-w),N(L,vt,!0),N(P,Je),N(V,Nt,!0)},ue=()=>{!r()||!n(T)||!n(S)||N(A,-w)},Y=()=>{if(!r()||!n(T)||!n(S))return;N(V,w);let K=r().getBoundingClientRect(),Ae=n(S).getBoundingClientRect(),Fe=Ae.height,Ye=n(T).clientHeight,dt=(Fe-Ye)/2+Ye,Ct=Ae.left+f()-K.left-n(T).clientWidth,ut=2,vt=Ct-w;vt<8&&(vt=8);let Nt=Ae.top+p()-K.top+dt,Kt=ut-dt/2,At=ut-w;N(L,vt,!0),N(P,Nt),N(A,Kt),N(V,At)},we=()=>{!r()||!n(T)||!n(S)||N(V,-w)},_e=()=>{switch(y()){case"top":Z();break;case"bottom":ue();break;case"left":Y();break;default:we()}},Ee=()=>{try{if(!r()||!n(S))return;_e(),d(!0)}catch(K){re({message:String(K)})}},He=()=>{d(!1)},ae=()=>{n(T)&&(k||(k=window.setTimeout(Ee,Q.controls.hideTimeoutTooltips)),d()&&Ee())},Re=()=>{He(),window.clearTimeout(k),k=void 0},ne=(K,Ae,Fe)=>{let Ye="";switch(y()){case"top":Ye=`transform: translate(${K}px, ${Ae}px);`;break;case"bottom":Ye=`transform: translate(${K}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":Ye=`transform: translate(${K}px, ${Ae}px); left: 0; right: auto;`;break;default:Ye=`transform: translate(${K}px, ${Ae}px);`}return Ye+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ye+=` opacity: ${Fe?1:0}; visibility: ${Fe?"visible":"hidden"}`,Ye},R=(K,Ae)=>{let Fe="";switch(y()){case"top":Fe=`transform: translate(${K}px, ${Ae}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Fe=`transform: translate(${K}px, ${Ae}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Fe=`transform: translate(${K}px, ${Ae}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Fe=`transform: translate(${K}px, ${Ae}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Fe},Pe=v(()=>ne(n(L),n(P),d())),Te=v(()=>R(n(V),n(A)));Et(_e),Ro(()=>window.clearTimeout(k));var ce=W$(),ee=de(ce);let ye;ee.__mousemove=ae,ee.__mousedown=Re,ee.__mouseup=function(...K){(e.disableMouseupTooltipShow?void 0:ae)?.apply(this,K)};var De=_(ee);fe(De,()=>e.children??oe),h(ee),tt(ee,K=>N(S,K),()=>n(S));var le=I(ee,2);{var at=K=>{Gf(K,{children:(Ae,Fe)=>{var Ye=z$(),dt=_(Ye),Ct=_(dt,!0);h(dt);var ut=I(dt,2);h(Ye),tt(Ye,vt=>N(T,vt),()=>n(T)),O(()=>{it(Ye,n(Pe)),pe(Ct,l()),it(ut,n(Te))}),b(Ae,Ye)},$$slots:{default:!0}})};M(le,K=>{l()&&!a()&&K(at)})}O(K=>ye=X(ee,1,"tooltip-wrapper svelte-hxlyne",null,ye,K),[()=>({"full-width":g()})]),bt("mouseenter",ee,ae),bt("mouseleave",ee,Re),b(t,ce),U(),o()}st(["mousemove","mousedown","mouseup"]);var b1=t=>{t.stopPropagation()},q$=E("<div><!></div>"),Q$={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 fo(t,e){F(e,!0),W(t,Q$);let[i,o]=Ve(),r=()=>$(f,"$isGraphOpened$",i),s=()=>$(d,"$isMobile",i),a=xe(),l=Ji(),d=a.ui.isMobile,f=l.graphIsOpened$,p=a.ui.t,g=m(e,"className",3,""),u=m(e,"disabled",3,!1),y=m(e,"hasTooltip",3,!0),x=m(e,"ref",15,void 0),w=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),k=m(e,"tooltipActive",3,!1),V=m(e,"tooltipPlacement",3,"top"),A=m(e,"disabledTooltipContent",19,()=>p("tooltip_button_disabled")),L=m(e,"isAriaHidden",3,!1),P=m(e,"onTooltipVisibilityChange",3,vu.noop),Q=m(e,"initialTranslateXPx",3,0),D=m(e,"initialTranslateYPx",19,()=>-18),J=m(e,"mouseEnter",3,vu.noop),ie=m(e,"mouseLeave",3,vu.noop),re=v(()=>u()?r()?p("tooltip_disabled_when_graph_on"):A():T());var Z=q$();Z.__pointerdown=[b1],Z.__click=[b1];var ue=_(Z);{var Y=_e=>{va(_e,{get content(){return n(re)},get translateX(){return Q()},get translateY(){return D()},get isFullWidthWrapper(){return S()},get active(){return k()},get placement(){return V()},get onVisibilityChange(){return P()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(Ee,He)=>{var ae=Oe(),Re=de(ae);fe(Re,()=>e.children??oe),b(Ee,ae)},$$slots:{default:!0}})},we=_e=>{var Ee=Oe(),He=de(Ee);fe(He,()=>e.children??oe),b(_e,Ee)};M(ue,_e=>{y()&&n(re)&&!s()?_e(Y):_e(we,!1)})}h(Z),tt(Z,_e=>x(_e),()=>x()),O(()=>{X(Z,1,`btn-container ${g()??""}`,"svelte-p9r045"),Ne(Z,"aria-hidden",L()||null)}),bt("mouseenter",Z,function(..._e){J()?.apply(this,_e)}),bt("mouseleave",Z,function(..._e){ie()?.apply(this,_e)}),Gn(Z,"clientWidth",w),b(t,Z),U(),o()}st(["pointerdown","click"]);var G$=$e('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function Sd(t,e){"use strict";var i=G$(),o=_(i),r=I(o);h(i),O(()=>{Ne(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ne(o,"fill-opacity",e.completed?1:.24),Ne(r,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var j$=E("<div><!></div>"),Y$={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 jf(t,e){F(e,!0),W(t,Y$);let o=xe().ui.t,r=G(0),s=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));fo(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(a,l)=>{var d=j$();let f;var p=_(d);let g=v(()=>!!e.videoEpisode.completed);Sd(p,{get completed(){return n(g)}}),h(d),O(u=>{f=X(d,1,"interactive-episode-icon svelte-bklhpe",null,f,u),it(d,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Gn(d,"clientWidth",u=>N(r,u)),b(a,d)},$$slots:{default:!0}}),U()}var Z$=E('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),X$=E('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),J$={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,
164
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ls(t,e){W(t,R$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),r=(l,d)=>d?"off":l>.5?"max":l>.2?"mid":l>0?"min":"off",s=v(()=>r(i(),o()));var a=V$();N(()=>{Re(a,"data-value",n(s)),Re(a,"data-testid",`volume-${n(s)??""}-icon`)}),b(t,a)}var uo=require("@vkontakte/videoplayer-shared");var cu=require("@vkontakte/videoplayer-shared");var l1=require("@vkontakte/videoplayer-shared");var N$=P('<div class="overlay"><!></div>');function Hf(t,e){F(e,!0);let[i,o]=Ve(),r=()=>$(a,"$overlayContainer$",i),a=Se().ui.overlayContainer$,l=Q(void 0),d=u=>{!u||!n(l)||!u.contains(n(l))||u.removeChild(n(l))},f=u=>{!u||!n(l)||u.contains(n(l))||u.appendChild(n(l))};De(()=>{f(r())}),At(()=>(f(r()),()=>d(r())));var p=N$(),g=_(p);me(g,()=>e.children??ne),h(p),it(p,u=>V(l,u),()=>n(l)),b(t,p),U(),o()}var B$=P('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),O$=P("<div><!></div> <!>",1),D$={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 ga(t,e){F(e,!0),W(t,D$);let[i,o]=Ve(),r=()=>$(X,"$overlayContainer$",i),s=()=>$(ee,"$containerSize",i),a=m(e,"isMobile",3,!1),l=m(e,"content",3,""),d=m(e,"active",15,!1),f=m(e,"translateX",3,0),p=m(e,"translateY",3,0),g=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),y=m(e,"placement",3,"top"),x=m(e,"onVisibilityChange",3,l1.noop),w=5,S=Q(void 0),T=Q(void 0),k,L=Q(0),A=Q(0),I=Q(0),O=Q(0),G=It(),D=Se(),ee=D.ui.playerSize,X=D.ui.overlayContainer$;De(()=>{$t(()=>{x()(d())})});let ae=D.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!r()||!n(T)||!n(S))return;V(A,w);let K=r().getBoundingClientRect(),Me=n(S).getBoundingClientRect(),Ue=Me.width,Ze=n(T).clientWidth,ut=s().width,xt=(Ue-Ze)/2,gt=Me.left+f()-K.left,_t=gt+xt,Qe=Me.top+p()-K.top,Dt=Ze/2-w,zt=_t<8,Xe=_t+Ze>ut-8;zt&&(_t=8,Dt=gt+Me.width/2-2.5*w),Xe&&(_t=ut-8-Ze,Dt=Me.left-K.left+Me.width/2-_t-w),V(I,_t,!0),V(O,Qe),V(L,Dt,!0)},ue=()=>{!r()||!n(T)||!n(S)||V(A,-w)},Y=()=>{if(!r()||!n(T)||!n(S))return;V(L,w);let K=r().getBoundingClientRect(),Me=n(S).getBoundingClientRect(),Ue=Me.height,Ze=n(T).clientHeight,ut=(Ue-Ze)/2+Ze,xt=Me.left+f()-K.left-n(T).clientWidth,gt=2,_t=xt-w;_t<8&&(_t=8);let Dt=Me.top+p()-K.top+ut,zt=gt-ut/2,Xe=gt-w;V(I,_t,!0),V(O,Dt),V(A,zt),V(L,Xe)},he=()=>{!r()||!n(T)||!n(S)||V(L,-w)},_e=()=>{switch(y()){case"top":j();break;case"bottom":ue();break;case"left":Y();break;default:he()}},Ie=()=>{try{if(!r()||!n(S))return;_e(),d(!0)}catch(K){ae({message:String(K)})}},Fe=()=>{d(!1)},se=()=>{n(T)&&(k||(k=window.setTimeout(Ie,G.controls.hideTimeoutTooltips)),d()&&Ie())},Ne=()=>{Fe(),window.clearTimeout(k),k=void 0},oe=(K,Me,Ue)=>{let Ze="";switch(y()){case"top":Ze=`transform: translate(${K}px, ${Me}px);`;break;case"bottom":Ze=`transform: translate(${K}px, ${Me}px); top: auto; bottom: 100%;`;break;case"left":Ze=`transform: translate(${K}px, ${Me}px); left: 0; right: auto;`;break;default:Ze=`transform: translate(${K}px, ${Me}px);`}return Ze+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ze+=` opacity: ${Ue?1:0}; visibility: ${Ue?"visible":"hidden"}`,Ze},R=(K,Me)=>{let Ue="";switch(y()){case"top":Ue=`transform: translate(${K}px, ${Me}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ue=`transform: translate(${K}px, ${Me}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ue=`transform: translate(${K}px, ${Me}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ue=`transform: translate(${K}px, ${Me}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ue},Ee=v(()=>oe(n(I),n(O),d())),Ce=v(()=>R(n(L),n(A)));At(_e),No(()=>window.clearTimeout(k));var de=O$(),te=ce(de);let be;te.__mousemove=se,te.__mousedown=Ne,te.__mouseup=function(...K){(e.disableMouseupTooltipShow?void 0:se)?.apply(this,K)};var Oe=_(te);me(Oe,()=>e.children??ne),h(te),it(te,K=>V(S,K),()=>n(S));var le=E(te,2);{var lt=K=>{Hf(K,{children:(Me,Ue)=>{var Ze=B$(),ut=_(Ze),xt=_(ut,!0);h(ut);var gt=E(ut,2);h(Ze),it(Ze,_t=>V(T,_t),()=>n(T)),N(()=>{nt(Ze,n(Ee)),fe(xt,l()),nt(gt,n(Ce))}),b(Me,Ze)},$$slots:{default:!0}})};M(le,K=>{l()&&!a()&&K(lt)})}N(K=>be=J(te,1,"tooltip-wrapper svelte-hxlyne",null,be,K),[()=>({"full-width":g()})]),yt("mouseenter",te,se),yt("mouseleave",te,Ne),b(t,de),U(),o()}dt(["mousemove","mousedown","mouseup"]);var d1=t=>{t.stopPropagation()},H$=P("<div><!></div>"),F$={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function co(t,e){F(e,!0),W(t,F$);let[i,o]=Ve(),r=()=>$(f,"$isGraphOpened$",i),s=()=>$(d,"$isMobile",i),a=Se(),l=Yi(),d=a.ui.isMobile,f=l.graphIsOpened$,p=a.ui.t,g=m(e,"className",3,""),u=m(e,"disabled",3,!1),y=m(e,"hasTooltip",3,!0),x=m(e,"ref",15,void 0),w=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),k=m(e,"tooltipActive",3,!1),L=m(e,"tooltipPlacement",3,"top"),A=m(e,"disabledTooltipContent",19,()=>p("tooltip_button_disabled")),I=m(e,"isAriaHidden",3,!1),O=m(e,"onTooltipVisibilityChange",3,cu.noop),G=m(e,"initialTranslateXPx",3,0),D=m(e,"initialTranslateYPx",19,()=>-18),ee=m(e,"mouseEnter",3,cu.noop),X=m(e,"mouseLeave",3,cu.noop),ae=v(()=>u()?r()?p("tooltip_disabled_when_graph_on"):A():T());var j=H$();j.__pointerdown=[d1],j.__click=[d1];var ue=_(j);{var Y=_e=>{ga(_e,{get content(){return n(ae)},get translateX(){return G()},get translateY(){return D()},get isFullWidthWrapper(){return S()},get active(){return k()},get placement(){return L()},get onVisibilityChange(){return O()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(Ie,Fe)=>{var se=Be(),Ne=ce(se);me(Ne,()=>e.children??ne),b(Ie,se)},$$slots:{default:!0}})},he=_e=>{var Ie=Be(),Fe=ce(Ie);me(Fe,()=>e.children??ne),b(_e,Ie)};M(ue,_e=>{y()&&n(ae)&&!s()?_e(Y):_e(he,!1)})}h(j),it(j,_e=>x(_e),()=>x()),N(()=>{J(j,1,`btn-container ${g()??""}`,"svelte-p9r045"),Re(j,"aria-hidden",I()||null)}),yt("mouseenter",j,function(..._e){ee()?.apply(this,_e)}),yt("mouseleave",j,function(..._e){X()?.apply(this,_e)}),Gn(j,"clientWidth",w),b(t,j),U(),o()}dt(["pointerdown","click"]);var U$=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 $d(t,e){"use strict";var i=U$(),o=_(i),r=E(o);h(i),N(()=>{Re(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Re(o,"fill-opacity",e.completed?1:.24),Re(r,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var z$=P("<div><!></div>"),W$={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 Ff(t,e){F(e,!0),W(t,W$);let o=Se().ui.t,r=Q(0),s=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));co(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(a,l)=>{var d=z$();let f;var p=_(d);let g=v(()=>!!e.videoEpisode.completed);$d(p,{get completed(){return n(g)}}),h(d),N(u=>{f=J(d,1,"interactive-episode-icon svelte-bklhpe",null,f,u),nt(d,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Gn(d,"clientWidth",u=>V(r,u)),b(a,d)},$$slots:{default:!0}}),U()}var K$=P('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),q$=P('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),Q$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
165
165
  .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 Yf(t,e){W(t,J$);let i=m(e,"videoEpisodes",19,()=>[]);var o=X$();pi(o,21,i,r=>r.from,(r,s)=>{var a=Z$();let l;var d=_(a),f=_(d),p=I(f,2);let g;h(d),h(a),O((u,y)=>{l=X(a,1,"video-episode svelte-1u6kv8l",null,l,u),it(a,`left: ${n(s).from}%; width: ${n(s).width}%`),it(f,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),g=X(p,1,"video-episode-filled svelte-1u6kv8l",null,g,y),it(p,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,a)}),h(o),b(t,o)}function ey(t,e,i,o,r,s,a){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let l=s(t.clientX,t.clientY);a()(l),e().setPointerCapture(t.pointerId)}function ty(t,e,i,o,r,s,a,l){if(t.preventDefault(),e())return;let d=i(t.clientX,t.clientY),f=o(t.clientX);r()(d,f,n(s).width),n(a)&&l()(d)}function iy(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let s=o(t.clientX,t.clientY);r()(s)}function oy(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function ny(t,e,i,o,r,s){let a=e(t.clientX,t.clientY);i()&&o()(a),N(r,!1),s()(a)}var ry=E("<div></div>"),sy=E('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),ay=E('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),ly={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 {
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 Uf(t,e){W(t,Q$);let i=m(e,"videoEpisodes",19,()=>[]);var o=q$();ai(o,21,i,r=>r.from,(r,s)=>{var a=K$();let l;var d=_(a),f=_(d),p=E(f,2);let g;h(d),h(a),N((u,y)=>{l=J(a,1,"video-episode svelte-1u6kv8l",null,l,u),nt(a,`left: ${n(s).from}%; width: ${n(s).width}%`),nt(f,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),g=J(p,1,"video-episode-filled svelte-1u6kv8l",null,g,y),nt(p,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,a)}),h(o),b(t,o)}function G$(t,e,i,o,r,s,a){if(t.preventDefault(),e()&&V(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;V(r,!0);let l=s(t.clientX,t.clientY);a()(l),e().setPointerCapture(t.pointerId)}function j$(t,e,i,o,r,s,a,l){if(t.preventDefault(),e())return;let d=i(t.clientX,t.clientY),f=o(t.clientX);r()(d,f,n(s).width),n(a)&&l()(d)}function Y$(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;V(i,!1);let s=o(t.clientX,t.clientY);r()(s)}function Z$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function X$(t,e,i,o,r,s){let a=e(t.clientX,t.clientY);i()&&o()(a),V(r,!1),s()(a)}var J$=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
167
  /* 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
168
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
169
169
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
170
170
  .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 ga(t,e){F(e,!0),W(t,ly);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),r=m(e,"testId",3,void 0),s=m(e,"isHidden",3,!1),a=m(e,"isVertical",3,!1),l=m(e,"isActiveLive",3,!1),d=m(e,"isMobile",3,!1),f=m(e,"squareBorders",3,!1),p=m(e,"videoEpisodes",19,()=>[]),g=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),y=m(e,"disabled",3,!1),x=m(e,"hideHandel",3,!1),w=m(e,"onPointerDown",3,mo.noop),S=m(e,"onHandleMove",3,mo.noop),T=m(e,"onPointerUp",3,mo.noop),k=m(e,"onPointerEnter",3,mo.noop),V=m(e,"onPointerMove",3,mo.noop),A=m(e,"onPointerLeave",3,mo.noop),L=m(e,"onMouseEnter",3,mo.noop),P=m(e,"onMouseLeave",3,mo.noop),Q=m(e,"onWheelUp",3,mo.noop),D=m(e,"onWheelDown",3,mo.noop),J=m(e,"onWheelLeft",3,mo.noop),ie=m(e,"onWheelRight",3,mo.noop),re=m(e,"onDisabledClick",3,mo.noop),Z=m(e,"loadedProgress",3,0),ue=m(e,"filledProgress",3,0),Y=m(e,"handleProgress",3,0),we=m(e,"ariaLabel",3,""),_e=m(e,"ariaValueMin",3,void 0),Ee=m(e,"ariaValueMax",3,void 0),He=m(e,"ariaValueNow",3,void 0),ae=m(e,"ariaValueText",3,""),Re=m(e,"onContextMenu",3,mo.noop),ne=Tt(),R=G(void 0),Pe=G(!1),Te=v(()=>Ee()??0),ce=v(()=>(0,mo.isNonNullable)(p())&&p()[p().length-1]?.time<n(Te)),ee=v(()=>(0,mo.isNonNullable)(p())&&p().length&&n(ce)&&n(Te)?Ye(Z()*100,ue()*100):[]);function ye(j){if(j.preventDefault(),i()&&N(R,i().getBoundingClientRect(),!0),y())return;let Me=Ae(j.clientX,j.clientY),Ue=Fe(j.clientX);k()(Me,Ue,n(R).width)}function De(j){j.preventDefault(),!y()&&A()()}function le(){L()()}function at(){P()()}function K(j){y()||g()&&(j.preventDefault(),j.deltaY<0?Q()():j.deltaY>0?D()():j.deltaX>0?ie()():J()())}function Ae(j,Me){return a()?Math.max(0,Math.min(1,(n(R).height-(Me-n(R).top))/n(R).height)):Math.min(Math.max(j-n(R).x,0),n(R).width)/n(R).width}function Fe(j){return Math.min(Math.max(j-n(R).x,0),n(R).width)}function Ye(j,Me){let Ue=ne.features.episodesClustering&&!u()?ne.episodeMinWidthPc:0,Xe=[],Ke=p()[0].time/n(Te)*100,Le=0,ot=0;for(let Rt=1;Rt<p().length;Rt++)Le=p()[Rt].time/n(Te)*100,Le-Ke>Ue&&(Xe.push({from:Ke,width:Math.max(0,Le-Ke),loadedWidth:Math.max(0,Math.min(Le,j)-Ke),filledWidth:Math.max(0,Math.min(Le,Me)-Ke),interactive:p()[Rt-1].interactive,completed:p()[Rt-1].completed}),Ke=p()[Rt].time/n(Te)*100,ot++);let qt={from:Ke,width:Math.max(0,100-Ke),loadedWidth:Math.max(0,Math.min(j,100)-Ke),filledWidth:Math.max(0,Math.min(Me,100)-Ke),interactive:p()[ot].interactive,completed:p()[ot].completed};100-Ke<Ue?(ot-=1,Xe[ot].width+=100-Ke,Xe[ot].loadedWidth+=Math.max(0,Math.min(j,100)-Ke),Xe[ot].filledWidth+=Math.max(0,Math.min(Me,100)-Ke)):Xe[ot]=qt;let Ut=p()[0].time;if(Ut!==0){let Rt=Ut/n(Te)*100;Xe.unshift({from:0,width:Rt,loadedWidth:Math.min(Rt,j),filledWidth:Math.min(Rt,Me)})}return Xe}function dt(j){return Math.max(0,Math.min(100,j*100))}var Ct=ay(),ut=de(Ct);{var vt=j=>{var Me=ry();let Ue;pi(Me,21,()=>n(ee),Xe=>Xe.from,(Xe,Ke)=>{var Le=Oe(),ot=de(Le);{var qt=Ut=>{jf(Ut,{get videoEpisode(){return n(Ke)},get disabled(){return y()}})};M(ot,Ut=>{n(Ke).interactive&&Ut(qt)})}b(Xe,Le)}),h(Me),O(Xe=>Ue=X(Me,1,"interactive-icons svelte-1tpemng",null,Ue,Xe),[()=>({mobile:d(),hidden:d()&&!n(Pe)})]),b(j,Me)};M(ut,j=>{u()&&j(vt)})}var Je=I(ut,2);let Nt;Je.__pointerdown=[ey,i,R,y,Pe,Ae,w],Je.__pointermove=[ty,y,Ae,Fe,V,R,Pe,S],Je.__pointerup=[iy,y,Pe,Ae,T],Je.__click=[oy,y,re,Ae],Je.__contextmenu=[ny,Ae,y,re,Pe,Re];var Kt=_(Je);{var At=j=>{Yf(j,{get videoEpisodes(){return n(ee)},get disabled(){return y()},get isMobile(){return d()}})},Ft=j=>{var Me=sy(),Ue=_(Me),Xe=I(Ue,2);let Ke;h(Me),O((Le,ot,qt)=>{it(Ue,Le),Ke=X(Xe,1,"filled svelte-1tpemng",null,Ke,ot),it(Xe,qt)},[()=>`transform: translateX(${dt(Z())}%);`,()=>({"active-live":l()}),()=>`transform: translateX(${dt(ue())}%);`]),b(j,Me)};M(Kt,j=>{n(ee).length?j(At):j(Ft,!1)})}var Ce=I(Kt,2);let Ze;var he=_(Ce);let me;h(Ce),h(Je),tt(Je,j=>i(j),()=>i()),O((j,Me,Ue,Xe)=>{Nt=X(Je,1,`slider ${o()??""}`,"svelte-1tpemng",Nt,j),Ne(Je,"aria-label",we()),Ne(Je,"aria-valuemin",_e()),Ne(Je,"aria-valuemax",Ee()),Ne(Je,"aria-valuenow",He()),Ne(Je,"aria-valuetext",ae()),Ne(Je,"data-testid",r()??null),Ze=X(Ce,1,"handleWrap svelte-1tpemng",null,Ze,Me),it(Ce,Ue),me=X(he,1,"handle svelte-1tpemng",null,me,Xe)},[()=>({disabled:y(),"slider-dragging":n(Pe),hidden:s(),"slider-vertical":a(),"no-handle":x(),square:f()}),()=>({hidden:x()}),()=>`transform: translateX(${dt(Y())}%);`,()=>({"active-live":l()})]),bt("pointerenter",Je,ye),bt("pointerleave",Je,De),bt("mouseenter",Je,le),bt("mouseleave",Je,at),bt("wheel",Je,K),b(t,Ct),U()}st(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Li=(t,e)=>ia[t]>=ia[e],$1=(t,e)=>ia[t]<ia[e],Rs=(t,e)=>ia[t]<=ia[e],y1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var cy=E("<div><!></div>"),uy=E("<div><!> <!></div>"),py={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 Zf(t,e){F(e,!0),W(t,py);let[i,o]=Ve(),r=()=>$(k,"$isAudioAvailable$",i),s=()=>$(g,"$muted$",i),a=()=>$(p,"$volume$",i),l=()=>$(w,"$currentGridType$",i),d=xe(),f=Tt(),p=d.state.volume$,g=d.state.muted$,{setVolume:u,startVolumeChanging:y,stopVolumeChanging:x}=d.actions.internal,w=d.ui.currentGridType$,S=d.callbacks?.onAudioDoesNotExistHint,T=d.callbacks?.onAudioDisabledHint,k=d.state.isAudioAvailable$,V=d.state.isAudioDisabled,A=d.ui.t,L=G(!1),P,Q=v(()=>e.isAds||r()),D=v(()=>!n(Q)||s()||a()===0),J=v(()=>Rs(l(),"s")),ie=v(()=>n(J)?"":n(D)?!r()||V?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),re=v(()=>n(D)?A("tooltip_volume"):A("tooltip_volume_muted")),Z=v(()=>n(D)?0:a()),ue=!1,Y=v(()=>e.isAds?!1:V?!T:r()?!1:!S);function we(K){y(),u(K)}function _e(){pu(d,a(),f.controls.volumeStepWheel)}function Ee(){fu(d,a(),f.controls.volumeStepWheel)}function He(K){u(K)}function ae(K){u(K),x()}function Re(){ue=!0}function ne(){ue=!1,Te()}function R(){clearTimeout(P),N(L,!0)}function Pe(){Te()}function Te(){P=window.setTimeout(()=>{ue||N(L,!1)},f.controls.volumeBarTimeout)}function ce(K){K.preventDefault(),K.deltaY<0?_e():K.deltaY>0&&Ee()}var ee=uy();let ye;var De=_(ee);va(De,{get content(){return n(ie)},translateY:-18,children:(K,Ae)=>{let Fe=v(()=>n(J)?"btn-volume-vertical":"btn-volume-horizontal");Pt(K,{className:"btn-full-opacity",get disabled(){return n(Y)},get testId(){return n(Fe)},get ariaLabel(){return n(re)},get click(){return e.click},get ariaKeyShortCut(){return Xr.KeyM},role:"button",children:(Ye,dt)=>{Vs(Ye,{get volume(){return a()},get muted(){return n(D)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var le=I(De,2);{var at=K=>{var Ae=cy();let Fe;var Ye=_(Ae);let dt=v(()=>n(J)?"volumeBar-slider-vertical":""),Ct=v(()=>n(J)&&!n(L)),ut=v(()=>n(J)?Re:Cd.noop),vt=v(()=>n(J)?ne:Cd.noop),Je=v(()=>Math.round(n(Z)*100)),Nt=v(()=>`${Math.round(n(Z)*100)}%`),Kt=v(()=>n(J)?"volume-slider-vertical":"volume-slider");ga(Ye,{get className(){return n(dt)},get isHidden(){return n(Ct)},get isVertical(){return n(J)},withWheelHandler:!0,onWheelUp:_e,onWheelDown:Ee,onPointerDown:we,onHandleMove:He,onPointerUp:ae,get onPointerEnter(){return n(ut)},get onPointerLeave(){return n(vt)},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 n(Je)},get ariaValueText(){return n(Nt)},get filledProgress(){return n(Z)},get handleProgress(){return n(Z)},get testId(){return n(Kt)}}),h(Ae),O(At=>Fe=X(Ae,1,"volumeBar svelte-1auih1j",null,Fe,At),[()=>({"volumeBar-vertical":n(J)})]),b(K,Ae)};M(le,K=>{n(Q)&&K(at)})}h(ee),O(K=>ye=X(ee,1,"volumeBar-container svelte-1auih1j",null,ye,K),[()=>({vertical:n(J)})]),bt("mouseenter",ee,function(...K){(n(J)?R:Cd.noop)?.apply(this,K)}),bt("mouseleave",ee,function(...K){(n(J)?Pe:Cd.noop)?.apply(this,K)}),bt("wheel",ee,ce),b(t,ee),U(),o()}var x1=require("@vkontakte/videoplayer-shared");var fy=$e('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function Xf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=fy();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var my={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
172
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Jf(t,e){W(t,my);let i=m(e,"isFullscreen",8,!1),o=kr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Xf(t,{get"data-testid"(){return n(o)},fill:"var(--btn-color, #fff)"})}function Td(t,e){F(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,x1.noop),r=xe(),s=r.ui.isFullscreenOpenedByKeyboard,a=r.ui.t,l=v(()=>i()?a("tooltip_fullscreen_on"):a("tooltip_fullscreen_off"));Pt(t,{testId:"btn-fullscreen",get ariaLabel(){return n(l)},click:f=>{let p=As(f);s.set(p),o()()},get ariaKeyShortCut(){return Xr.KeyF},role:"button",children:(f,p)=>{Jf(f,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var vy=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function em(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=vy();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var gy=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function tm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=gy();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(4),h(o),b(t,o)}var hy={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
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 ha(t,e){F(e,!0),W(t,iy);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),r=m(e,"testId",3,void 0),s=m(e,"isHidden",3,!1),a=m(e,"isVertical",3,!1),l=m(e,"isActiveLive",3,!1),d=m(e,"isMobile",3,!1),f=m(e,"squareBorders",3,!1),p=m(e,"videoEpisodes",19,()=>[]),g=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),y=m(e,"disabled",3,!1),x=m(e,"hideHandel",3,!1),w=m(e,"onPointerDown",3,uo.noop),S=m(e,"onHandleMove",3,uo.noop),T=m(e,"onPointerUp",3,uo.noop),k=m(e,"onPointerEnter",3,uo.noop),L=m(e,"onPointerMove",3,uo.noop),A=m(e,"onPointerLeave",3,uo.noop),I=m(e,"onMouseEnter",3,uo.noop),O=m(e,"onMouseLeave",3,uo.noop),G=m(e,"onWheelUp",3,uo.noop),D=m(e,"onWheelDown",3,uo.noop),ee=m(e,"onWheelLeft",3,uo.noop),X=m(e,"onWheelRight",3,uo.noop),ae=m(e,"onDisabledClick",3,uo.noop),j=m(e,"loadedProgress",3,0),ue=m(e,"filledProgress",3,0),Y=m(e,"handleProgress",3,0),he=m(e,"ariaLabel",3,""),_e=m(e,"ariaValueMin",3,void 0),Ie=m(e,"ariaValueMax",3,void 0),Fe=m(e,"ariaValueNow",3,void 0),se=m(e,"ariaValueText",3,""),Ne=m(e,"onContextMenu",3,uo.noop),oe=It(),R=Q(void 0),Ee=Q(!1),Ce=v(()=>Ie()??0),de=v(()=>(0,uo.isNonNullable)(p())&&p()[p().length-1]?.time<n(Ce)),te=v(()=>(0,uo.isNonNullable)(p())&&p().length&&n(de)&&n(Ce)?Ze(j()*100,ue()*100):[]);function be(Z){if(Z.preventDefault(),i()&&V(R,i().getBoundingClientRect(),!0),y())return;let Pe=Me(Z.clientX,Z.clientY),Ye=Ue(Z.clientX);k()(Pe,Ye,n(R).width)}function Oe(Z){Z.preventDefault(),!y()&&A()()}function le(){I()()}function lt(){O()()}function K(Z){y()||g()&&(Z.preventDefault(),Z.deltaY<0?G()():Z.deltaY>0?D()():Z.deltaX>0?X()():ee()())}function Me(Z,Pe){return a()?Math.max(0,Math.min(1,(n(R).height-(Pe-n(R).top))/n(R).height)):Math.min(Math.max(Z-n(R).x,0),n(R).width)/n(R).width}function Ue(Z){return Math.min(Math.max(Z-n(R).x,0),n(R).width)}function Ze(Z,Pe){let Ye=oe.features.episodesClustering&&!u()?oe.episodeMinWidthPc:0,Je=[],He=p()[0].time/n(Ce)*100,Le=0,ot=0;for(let Et=1;Et<p().length;Et++)Le=p()[Et].time/n(Ce)*100,Le-He>Ye&&(Je.push({from:He,width:Math.max(0,Le-He),loadedWidth:Math.max(0,Math.min(Le,Z)-He),filledWidth:Math.max(0,Math.min(Le,Pe)-He),interactive:p()[Et-1].interactive,completed:p()[Et-1].completed}),He=p()[Et].time/n(Ce)*100,ot++);let rt={from:He,width:Math.max(0,100-He),loadedWidth:Math.max(0,Math.min(Z,100)-He),filledWidth:Math.max(0,Math.min(Pe,100)-He),interactive:p()[ot].interactive,completed:p()[ot].completed};100-He<Ye?(ot-=1,Je[ot].width+=100-He,Je[ot].loadedWidth+=Math.max(0,Math.min(Z,100)-He),Je[ot].filledWidth+=Math.max(0,Math.min(Pe,100)-He)):Je[ot]=rt;let tt=p()[0].time;if(tt!==0){let Et=tt/n(Ce)*100;Je.unshift({from:0,width:Et,loadedWidth:Math.min(Et,Z),filledWidth:Math.min(Et,Pe)})}return Je}function ut(Z){return Math.max(0,Math.min(100,Z*100))}var xt=ty(),gt=ce(xt);{var _t=Z=>{var Pe=J$();let Ye;ai(Pe,21,()=>n(te),Je=>Je.from,(Je,He)=>{var Le=Be(),ot=ce(Le);{var rt=tt=>{Ff(tt,{get videoEpisode(){return n(He)},get disabled(){return y()}})};M(ot,tt=>{n(He).interactive&&tt(rt)})}b(Je,Le)}),h(Pe),N(Je=>Ye=J(Pe,1,"interactive-icons svelte-1tpemng",null,Ye,Je),[()=>({mobile:d(),hidden:d()&&!n(Ee)})]),b(Z,Pe)};M(gt,Z=>{u()&&Z(_t)})}var Qe=E(gt,2);let Dt;Qe.__pointerdown=[G$,i,R,y,Ee,Me,w],Qe.__pointermove=[j$,y,Me,Ue,L,R,Ee,S],Qe.__pointerup=[Y$,y,Ee,Me,T],Qe.__click=[Z$,y,ae,Me],Qe.__contextmenu=[X$,Me,y,ae,Ee,Ne];var zt=_(Qe);{var Xe=Z=>{Uf(Z,{get videoEpisodes(){return n(te)},get disabled(){return y()},get isMobile(){return d()}})},Bt=Z=>{var Pe=ey(),Ye=_(Pe),Je=E(Ye,2);let He;h(Pe),N((Le,ot,rt)=>{nt(Ye,Le),He=J(Je,1,"filled svelte-1tpemng",null,He,ot),nt(Je,rt)},[()=>`transform: translateX(${ut(j())}%);`,()=>({"active-live":l()}),()=>`transform: translateX(${ut(ue())}%);`]),b(Z,Pe)};M(zt,Z=>{n(te).length?Z(Xe):Z(Bt,!1)})}var $e=E(zt,2);let Ht;var ye=_($e);let pe;h($e),h(Qe),it(Qe,Z=>i(Z),()=>i()),N((Z,Pe,Ye,Je)=>{Dt=J(Qe,1,`slider ${o()??""}`,"svelte-1tpemng",Dt,Z),Re(Qe,"aria-label",he()),Re(Qe,"aria-valuemin",_e()),Re(Qe,"aria-valuemax",Ie()),Re(Qe,"aria-valuenow",Fe()),Re(Qe,"aria-valuetext",se()),Re(Qe,"data-testid",r()??null),Ht=J($e,1,"handleWrap svelte-1tpemng",null,Ht,Pe),nt($e,Ye),pe=J(ye,1,"handle svelte-1tpemng",null,pe,Je)},[()=>({disabled:y(),"slider-dragging":n(Ee),hidden:s(),"slider-vertical":a(),"no-handle":x(),square:f()}),()=>({hidden:x()}),()=>`transform: translateX(${ut(Y())}%);`,()=>({"active-live":l()})]),yt("pointerenter",Qe,be),yt("pointerleave",Qe,Oe),yt("mouseenter",Qe,le),yt("mouseleave",Qe,lt),yt("wheel",Qe,K),b(t,xt),U()}dt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Ei=(t,e)=>oa[t]>=oa[e],c1=(t,e)=>oa[t]<oa[e],Vs=(t,e)=>oa[t]<=oa[e],u1=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 zf(t,e){F(e,!0),W(t,sy);let[i,o]=Ve(),r=()=>$(k,"$isAudioAvailable$",i),s=()=>$(g,"$muted$",i),a=()=>$(p,"$volume$",i),l=()=>$(w,"$currentGridType$",i),d=Se(),f=It(),p=d.state.volume$,g=d.state.muted$,{setVolume:u,startVolumeChanging:y,stopVolumeChanging:x}=d.actions.internal,w=d.ui.currentGridType$,S=d.callbacks?.onAudioDoesNotExistHint,T=d.callbacks?.onAudioDisabledHint,k=d.state.isAudioAvailable$,L=d.state.isAudioDisabled,A=d.ui.t,I=Q(!1),O,G=v(()=>e.isAds||r()),D=v(()=>!n(G)||s()||a()===0),ee=v(()=>Vs(l(),"s")),X=v(()=>n(ee)?"":n(D)?!r()||L?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),ae=v(()=>n(D)?A("tooltip_volume"):A("tooltip_volume_muted")),j=v(()=>n(D)?0:a()),ue=!1,Y=v(()=>e.isAds?!1:L?!T:r()?!1:!S);function he(K){y(),u(K)}function _e(){au(d,a(),f.controls.volumeStepWheel)}function Ie(){lu(d,a(),f.controls.volumeStepWheel)}function Fe(K){u(K)}function se(K){u(K),x()}function Ne(){ue=!0}function oe(){ue=!1,Ce()}function R(){clearTimeout(O),V(I,!0)}function Ee(){Ce()}function Ce(){O=window.setTimeout(()=>{ue||V(I,!1)},f.controls.volumeBarTimeout)}function de(K){K.preventDefault(),K.deltaY<0?_e():K.deltaY>0&&Ie()}var te=ry();let be;var Oe=_(te);ga(Oe,{get content(){return n(X)},translateY:-18,children:(K,Me)=>{let Ue=v(()=>n(ee)?"btn-volume-vertical":"btn-volume-horizontal");Mt(K,{className:"btn-full-opacity",get disabled(){return n(Y)},get testId(){return n(Ue)},get ariaLabel(){return n(ae)},get click(){return e.click},get ariaKeyShortCut(){return Xr.KeyM},role:"button",children:(Ze,ut)=>{Ls(Ze,{get volume(){return a()},get muted(){return n(D)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var le=E(Oe,2);{var lt=K=>{var Me=ny();let Ue;var Ze=_(Me);let ut=v(()=>n(ee)?"volumeBar-slider-vertical":""),xt=v(()=>n(ee)&&!n(I)),gt=v(()=>n(ee)?Ne:yd.noop),_t=v(()=>n(ee)?oe:yd.noop),Qe=v(()=>Math.round(n(j)*100)),Dt=v(()=>`${Math.round(n(j)*100)}%`),zt=v(()=>n(ee)?"volume-slider-vertical":"volume-slider");ha(Ze,{get className(){return n(ut)},get isHidden(){return n(xt)},get isVertical(){return n(ee)},withWheelHandler:!0,onWheelUp:_e,onWheelDown:Ie,onPointerDown:he,onHandleMove:Fe,onPointerUp:se,get onPointerEnter(){return n(gt)},get onPointerLeave(){return n(_t)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Qe)},get ariaValueText(){return n(Dt)},get filledProgress(){return n(j)},get handleProgress(){return n(j)},get testId(){return n(zt)}}),h(Me),N(Xe=>Ue=J(Me,1,"volumeBar svelte-1auih1j",null,Ue,Xe),[()=>({"volumeBar-vertical":n(ee)})]),b(K,Me)};M(le,K=>{n(G)&&K(lt)})}h(te),N(K=>be=J(te,1,"volumeBar-container svelte-1auih1j",null,be,K),[()=>({vertical:n(ee)})]),yt("mouseenter",te,function(...K){(n(ee)?R:yd.noop)?.apply(this,K)}),yt("mouseleave",te,function(...K){(n(ee)?Ee:yd.noop)?.apply(this,K)}),yt("wheel",te,de),b(t,te),U(),o()}var p1=require("@vkontakte/videoplayer-shared");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 Wf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=ay();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var ly={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
172
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Kf(t,e){W(t,ly);let i=m(e,"isFullscreen",8,!1),o=kr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Wf(t,{get"data-testid"(){return n(o)},fill:"var(--btn-color, #fff)"})}function xd(t,e){F(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,p1.noop),r=Se(),s=r.ui.isFullscreenOpenedByKeyboard,a=r.ui.t,l=v(()=>i()?a("tooltip_fullscreen_on"):a("tooltip_fullscreen_off"));Mt(t,{testId:"btn-fullscreen",get ariaLabel(){return n(l)},click:f=>{let p=Ps(f);s.set(p),o()()},get ariaKeyShortCut(){return Xr.KeyF},role:"button",children:(f,p)=>{Kf(f,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}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 qf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=dy();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(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 Qf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=cy();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(4),h(o),b(t,o)}var uy={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
173
173
  svg[data-testid="vk-video-logo-icon--short"] ._en,
174
174
  svg[data-testid="vk-video-logo-icon"] ._en,
175
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function im(t,e){W(t,hy);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),r="vk-video-logo-icon--short",s=21,a=v(()=>!o()&&!i()?91:i()?s:95),l=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?r:"vk-video-logo-icon"),d=v(()=>`0 0 ${n(a)+1} 24`);tm(t,{get width(){return n(a)},height:"24",get viewBox(){return n(d)},get"data-testid"(){return n(l)}})}function kd(t,e){F(e,!0);let[i,o]=Ve(),r=()=>$(y,"$isMobile",i),s=()=>$(u,"$currentGridType$",i),a=()=>$(w,"$isCyrillicRelatedInterface$",i),l=m(e,"ref",15,void 0),d=m(e,"logoClickable",3,!1),f=m(e,"targetUrl",3,""),p=Tt(),g=xe(),u=g.ui.currentGridType$,y=g.ui.isMobile,x=g.ui.t,w=g.isCyrillicRelatedInterface$,S=v(()=>p.logoType==="vk_video"?x("tooltip_vk_video_logo"):x("tooltip_vk_logo")),T=v(()=>p.logoType==="vk_video"||p.logoType==="vk_video_mobile"),k=v(()=>(r()||Rs(s(),"l"))&&n(T)),V=()=>{e.click(),g.callbacks?.onLogoClicked?g.callbacks?.onLogoClicked():f()&&window.open(f(),"_blank")},A=v(()=>!d()),L=v(()=>n(T)?"btn-vk-video-logo":"btn-vk-logo");Pt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:V,get testId(){return n(L)},get ariaLabel(){return n(S)},get ref(){return l()},set ref(P){l(P)},children:(P,Q)=>{var D=Oe(),J=de(D);{var ie=Z=>{im(Z,{get short(){return n(k)},get isCyrillic(){return a()}})},re=Z=>{em(Z,{})};M(J,Z=>{n(T)?Z(ie):Z(re,!1)})}b(P,D)},$$slots:{default:!0}}),U(),o()}var w1=require("@vkontakte/videoplayer-core");var om=require("@vkontakte/videoplayer-core"),by=$e('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),$y=$e('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),yy={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) {
175
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Gf(t,e){W(t,uy);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),r="vk-video-logo-icon--short",s=21,a=v(()=>!o()&&!i()?91:i()?s:95),l=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?r:"vk-video-logo-icon"),d=v(()=>`0 0 ${n(a)+1} 24`);Qf(t,{get width(){return n(a)},height:"24",get viewBox(){return n(d)},get"data-testid"(){return n(l)}})}function wd(t,e){F(e,!0);let[i,o]=Ve(),r=()=>$(y,"$isMobile",i),s=()=>$(u,"$currentGridType$",i),a=()=>$(w,"$isCyrillicRelatedInterface$",i),l=m(e,"ref",15,void 0),d=m(e,"logoClickable",3,!1),f=m(e,"targetUrl",3,""),p=It(),g=Se(),u=g.ui.currentGridType$,y=g.ui.isMobile,x=g.ui.t,w=g.isCyrillicRelatedInterface$,S=v(()=>p.logoType==="vk_video"?x("tooltip_vk_video_logo"):x("tooltip_vk_logo")),T=v(()=>p.logoType==="vk_video"||p.logoType==="vk_video_mobile"),k=v(()=>(r()||Vs(s(),"l"))&&n(T)),L=()=>{e.click(),g.callbacks?.onLogoClicked?g.callbacks?.onLogoClicked():f()&&window.open(f(),"_blank")},A=v(()=>!d()),I=v(()=>n(T)?"btn-vk-video-logo":"btn-vk-logo");Mt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:L,get testId(){return n(I)},get ariaLabel(){return n(S)},get ref(){return l()},set ref(O){l(O)},children:(O,G)=>{var D=Be(),ee=ce(D);{var X=j=>{Gf(j,{get short(){return n(k)},get isCyrillic(){return a()}})},ae=j=>{qf(j,{})};M(ee,j=>{n(T)?j(X):j(ae,!1)})}b(O,D)},$$slots:{default:!0}}),U(),o()}var f1=require("@vkontakte/videoplayer-core");var jf=require("@vkontakte/videoplayer-core"),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
176
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
177
177
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
178
178
  animation-name: svelte-8z1bf5-wave3;}
@@ -220,9 +220,9 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Yh=z_;var f
220
220
  100% {
221
221
  opacity: 1;
222
222
  }
223
- }`};function nm(t,e){F(e,!0),W(t,yy);let i=m(e,"isMobile",3,!1),o=v(()=>e.iconState===om.ChromecastState.CONNECTED),r=v(()=>e.iconState===om.ChromecastState.CONNECTING);var s=Oe(),a=de(s);{var l=f=>{var p=by(),g=_(p),u=_(g),y=_(u);be(),h(u);var x=I(u);be(),h(g);var w=I(g),S=_(w),T=_(S);h(S),be(),h(w),h(p),O(()=>{Ne(y,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(x,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(T,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)")}),b(f,p)},d=f=>{var p=$y();let g;var u=_(p),y=I(_(u),5);let x;h(u),h(p),O((w,S)=>{g=X(p,0,"svelte-8z1bf5",null,g,w),x=X(y,0,"svelte-8z1bf5",null,x,S)},[()=>({connecting:n(r)}),()=>({hidden:!n(o)})]),b(f,p)};M(a,f=>{i()?f(l):f(d,!1)})}b(t,s),U()}var S1=require("@vkontakte/videoplayer-shared");function Id(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),r=m(e,"click",3,S1.noop),a=xe().ui.t,l=v(()=>e.state===w1.ChromecastState.CONNECTED?a("tooltip_chromecast_on"):a("tooltip_chromecast_off"));Pt(t,{get ariaLabel(){return n(l)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(d){i(d)},children:(d,f)=>{nm(d,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var xy=E('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),wy={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 rm(t,e){W(t,wy);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),r=m(e,"translateXPx",3,0),s=m(e,"translateYPx",3,0),a=m(e,"leftOffset",3,0),l=m(e,"rightOffset",3,0),d=G(void 0),f=G(void 0);function p(S){if(!n(f))return 0;let{width:T}=n(f).getBoundingClientRect(),k=T/2;return S<k?k+a():S>e.containerWidth-k?e.containerWidth-k-l():S}let g=v(()=>p(r()));var u=xy(),y=_(u);let x;var w=_(y);fe(w,()=>e.children??oe),h(y),tt(y,S=>N(f,S),()=>n(f)),h(u),tt(u,S=>N(d,S),()=>n(d)),O(S=>{it(u,`transform: translate(${n(g)}px, ${s()}px);`),x=X(y,1,"tooltip svelte-5ygsa2",null,x,S),it(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,u)}var gu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var C1=t=>!!(Math.round(Math.abs(t)/90)%2),T1=t=>Math.abs(t)/90%4===1;var Sy=E('<div class="preview svelte-1wqg760"></div>'),Cy=E('<div class="time svelte-1wqg760"> </div>'),Ty=E('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),ky={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 sm(t,e){F(e,!0),W(t,ky);let[i,o]=Ve(),r=()=>$(x,"$rotateAlpha",i),s=()=>$(w,"$playerSize",i),a={MOBILE:150,DESKTOP:278},l=m(e,"time",3,""),d=m(e,"isMobile",3,!1),f=m(e,"videoEpisodes",19,()=>[]),p=m(e,"progress",3,0),g=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),y=xe(),x=y.ui.rotateAlpha,w=y.ui.playerSize,S=G(0),T=G(0),k=G(""),V=G(0),A=G(0),L=G(0),P=G(0),Q=v(()=>gu(p(),g(),f())),D=v(()=>C1(r())),J=v(()=>T1(r())),ie=v(ue),re=v(()=>(n(J)?1:-1)*(n(S)/2-n(T)/2)),Z=v(()=>n(re)*-1);Be(()=>{(ee=>{N(S,ee.width,!0),N(T,ee.height,!0)})(we())}),Be(()=>{(ee=>{N(k,ee.imgSrc,!0),N(V,ee.imgWidth,!0),N(A,ee.imgHeight,!0),N(L,ee.imgOffsetX,!0),N(P,ee.imgOffsetY,!0)})(_e(p()))});function ue(){let ee=d()?a.MOBILE:a.DESKTOP,{isVertical:ye}=Y(),De=30;return n(Q)?.text&&(De+=16),(ye||n(D))&&(De+=18,De+=50),Math.min(Math.max(s().height-De,0),ee)}function Y(){let ee=e.previewThumbsData.frameWidth,ye=e.previewThumbsData.frameHeight,De=ye>ee;return{width:ee,height:ye,isHorizontal:!De,isVertical:De}}function we(){let{height:ee,isHorizontal:ye,isVertical:De,width:le}=Y();return ye&&(ee=ee/le*n(ie),le=n(ie)),De&&(le=le/ee*n(ie),ee=n(ie)),{width:le,height:ee}}function _e(ee){let ye;e.previewThumbsData.isUV?ye=Math.floor(g()*ee/e.previewThumbsData.frequency):ye=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ee)));let De=Math.floor(ye/e.previewThumbsData.countPerImage),le=Math.floor(ye%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),at=ye%e.previewThumbsData.countPerRow,K=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(K=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&K++);let Ae=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ae=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Fe=n(S)*Ae,Ye=n(T)*K,dt=-at*n(S),Ct=-le*n(T);return{imgSrc:e.previewThumbsData.links[De],imgWidth:Fe,imgHeight:Ye,imgOffsetX:dt,imgOffsetY:Ct}}var Ee=Ty();let He;var ae=_(Ee);{var Re=ee=>{var ye=Sy();O(()=>it(ye,`width: ${n(S)}px; height: ${n(T)}px; background-image: url(${n(k)}); background-size: ${n(V)}px ${n(A)}px; background-position: ${n(L)}px ${n(P)}px;
224
- transform: rotate(${r()}deg) ${n(D)?`translate(${n(re)}px, ${n(Z)}px)`:""};
225
- `)),b(ee,ye)};M(ae,ee=>{n(k)&&ee(Re)})}var ne=I(ae,2),R=_(ne);{var Pe=ee=>{var ye=Oe(),De=de(ye);{var le=K=>{var Ae=Yr();O(Fe=>pe(Ae,Fe),[()=>z("tooltip_episode_unfinished")]),b(K,Ae)},at=K=>{var Ae=Yr();O(()=>pe(Ae,n(Q).text||"")),b(K,Ae)};M(De,K=>{u()&&n(Q).completed===!1?K(le):K(at,!1)})}b(ee,ye)};M(R,ee=>{n(Q)&&ee(Pe)})}h(ne);var Te=I(ne,2);{var ce=ee=>{var ye=Cy(),De=_(ye,!0);h(ye),O(()=>pe(De,l())),b(ee,ye)};M(Te,ee=>{u()||ee(ce)})}h(Ee),O(ee=>{He=X(Ee,1,"timeline-preview svelte-1wqg760",null,He,ee),it(Ee,`width: ${n(D)?n(T):n(S)}px;`)},[()=>({mobile:d()})]),b(t,Ee),U(),o()}var Iy=E('<span class="time svelte-1jr6obn"> </span>'),Ey=E("<!> <!>",1),Py={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 am(t,e){F(e,!0),W(t,Py);let[i,o]=Ve(),r=()=>$(re,"$interactiveEpisodes$",i),s=()=>$(L,"$duration$",i),a=()=>$(A,"$position$",i),l=()=>$(Y,"$isInteractiveExpectation$",i),d=()=>$(ue,"$isInteractiveTime$",i),f=()=>$(P,"$isLive$",i),p=()=>$(D,"$isMobile",i),g=()=>$(Q,"$isActiveLive$",i),u=()=>$(V,"$bufferedProgress$",i),y=()=>$(Ee,"$disabledControls$",i),x=m(e,"showTimeline",3,!1),w=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=xe(),k=Tt(),V=T.state.bufferedProgress$,A=T.state.positionWithScrubbing$,L=T.state.duration$,P=T.state.isLive$,Q=T.state.isActiveLive$,D=T.ui.isMobile,J=k.features.episodes&&w()?T.actions.internal.getVideoEpisodes():void 0,ie=T.actions.internal.getPreviewThumbsData(),re=T.state.interactiveEpisodes$,Z=T.state.isInteractive,ue=T.state.isInteractiveTime$,Y=T.state.isInteractiveExpectation$,we=T.actions.internal.correctSeekTimeToInteractive,_e=T.callbacks?.onDisabledTimelineClick,Ee=T.ui.controls.disabledControls$,He=T.callbacks?.uiInfo?.onTimelineMouseEnter,ae=T.callbacks?.uiInfo?.onTimelineMouseLeave,Re=T.ui.t,ne=k.features.interactiveResponsiveUi,R=v(()=>Z?r():J),Pe=v(()=>Xo(s())),Te=v(()=>Xo(a())),ce=v(()=>a()/s()),ee=v(()=>l()||d()),ye=G(!1),De=G(""),le=G(0),at=G(0),K=G(0),Ae=v(()=>({containerWidth:n(at),translateXPx:n(le),translateYPx:Z&&ie?-36:-16,active:n(ye)&&x()&&!n(ee)&&!ne,pointer:!k.features.timelinePreview||!ie||f()})),Fe=Re("aria_timeline"),Ye=v(()=>Re("aria_timeline_value",{position:n(Te),duration:n(Pe)}));function dt(j){return!we||!Z?j:we(j*s())/s()}function Ct(j){T.actions.internal.startScrubbing(dt(j))}function ut(j){d()||T.actions.internal.progressScrubbing(dt(j))}function vt(j){T.actions.internal.completeScrubbing(dt(j)),N(ye,!1)}function Je(j,Me,Ue){At(j,Me,Ue),N(ye,!0)}function Nt(j,Me,Ue){At(j,Me,Ue),N(ye,!0)}function Kt(){N(ye,!1)}function At(j,Me,Ue){N(K,dt(j),!0),N(le,Me,!0),Ue&&N(at,Ue,!0),N(De,Ft(j),!0)}function Ft(j){let Me=Xo((f()?1-j:j)*s());return f()?`-${Me}`:Me}var Ce=Ey(),Ze=de(Ce);rm(Ze,ps(()=>n(Ae),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(j,Me)=>{var Ue=Oe(),Xe=de(Ue);{var Ke=ot=>{sm(ot,{get time(){return n(De)},get isMobile(){return p()},get videoEpisodes(){return n(R)},get previewThumbsData(){return ie},get progress(){return n(K)},get duration(){return s()},get isInteractive(){return Z}})},Le=ot=>{var qt=Iy(),Ut=_(qt,!0);h(qt),O(()=>pe(Ut,n(De))),b(ot,qt)};M(Xe,ot=>{k.features.timelinePreview&&ie&&!f()?ot(Ke):ot(Le,!1)})}b(j,Ue)},$$slots:{default:!0}}));var he=I(Ze,2);let me=v(()=>y().has("TIMELINE"));ga(he,{className:"timeline-slider",get isActiveLive(){return g()},get isMobile(){return p()},get ariaLabel(){return Fe},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return a()},get ariaValueText(){return n(Ye)},get loadedProgress(){return u()},get filledProgress(){return n(ce)},get handleProgress(){return n(ce)},get videoEpisodes(){return n(R)},onPointerDown:Ct,onHandleMove:ut,onPointerMove:Nt,onPointerUp:vt,onPointerEnter:Je,onPointerLeave:Kt,get onMouseEnter(){return He},get onMouseLeave(){return ae},get onDisabledClick(){return _e},get isInteractive(){return Z},get disabled(){return n(me)},get hideHandel(){return d()},testId:"progress_bar",onContextMenu:vt,get ref(){return S()},set ref(j){S(j)}}),b(t,Ce),U(),o()}var Ay={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 Ed(t,e){F(e,!0),W(t,Ay);let[i,o]=Ve(),r=()=>$(d,"$isMobile",i),s=m(e,"position",3,0),a=m(e,"duration",3,0),l=xe(),d=l.ui.isMobile,f=l.ui.t,p=v(()=>Xo(a())),g=v(()=>Xo(s())),u=v(()=>s()/a()),y=v(()=>f("aria_timeline_value",{position:n(g),duration:n(p)})),x=v(()=>Math.round(n(u)*100));ga(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return n(x)},get ariaValueText(){return n(y)},get filledProgress(){return n(u)},hideHandel:!0,get squareBorders(){return r()}}),U(),o()}var My=E("<div><!></div>"),Ly=E("<div></div>"),Vy={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 ha(t,e){F(e,!0),W(t,Vy);let[i,o]=Ve(),r=()=>$(S,"$isLive$",i),s=()=>$(V,"$isMobile",i),a=()=>$(A,"$disabled",i),l=()=>$(k,"$adPosition",i),d=()=>$(T,"$adDuration",i),f=m(e,"isAds",3,!1),p=m(e,"isHidden",3,!1),g=m(e,"timelineNotAvailable",3,!1),u=m(e,"needPadding",3,!0),y=m(e,"ref",15,void 0),x=xe(),w=Tt(),S=x.state.isLive$,T=x.ads.duration,k=x.ads.position,V=x.ui.isMobile,A=te(!1),L=v(()=>!g()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||f()));var P=Oe(),Q=de(P);{var D=ie=>{var re=My();let Z;var ue=_(re);{var Y=_e=>{Ed(_e,{get position(){return l()},get duration(){return d()}})},we=_e=>{am(_e,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(L)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(Ee){y(Ee)}})};M(ue,_e=>{f()?_e(Y):_e(we,!1)})}h(re),us(re,()=>nl(p()&&w.features.usePerformanceFix,A,w.disableInvisibleComponentsTimeout)),O(_e=>Z=X(re,1,"timeline svelte-41cp6d",null,Z,_e),[()=>({withoutPadding:!u(),mobile:s(),"out-of-flow":a()})]),b(ie,re)},J=ie=>{var re=Ly();let Z;O(ue=>Z=X(re,1,"timeline-stub svelte-41cp6d",null,Z,ue),[()=>({mobile:s()})]),b(ie,re)};M(Q,ie=>{n(L)?ie(D):ie(J,!1)})}b(t,P),U(),o()}var k1=require("@vkontakte/videoplayer-shared");var Ry=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function lm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(3),h(o),b(t,o)}var Ny=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function dm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var Oy=E('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),By=E('<span class="text svelte-1yhs2ga"> </span>'),Dy=E('<span class="text count svelte-1yhs2ga"> </span>'),Hy=E("<!> <!>",1),Fy={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 Pd(t,e){F(e,!0),W(t,Fy);let[i,o]=Ve(),r=()=>$(x,"$currentGridType$",i),s=()=>$(w,"$openedByKeyboard$",i),a=()=>$(S,"$panelOpened$",i),l=()=>$(T,"$isMobile",i),d=m(e,"position",3,0),f=m(e,"duration",3,0),p=m(e,"timeCodes",19,()=>[]),g=xe(),u=g.callbacks?.onEpisodeChanged??k1.noop,y=!!g.callbacks?.onEpisodeClicked,x=g.ui.currentGridType$,w=g.ui.episodes.openedByKeyboard$,S=g.ui.episodes.panelOpened$,T=g.ui.isMobile,k=g.ui.t,V=G(void 0),A=Y=>{if(!!g.callbacks?.onEpisodeClicked){let _e=As(Y);w.set(_e),S.set(!0),g.callbacks?.onEpisodeClicked?.(_e)}},L=G(null),P=v(()=>d()/f());Be(()=>{let Y=gu(n(P),f(),p());Y?n(L)?.time!==Y.time&&(u(Y),N(L,Y,!0)):N(L,null)});let Q=v(()=>n(L)?.text||""),D=v(()=>Li(r(),"xl")?"FULL":Li(r(),"m")&&$1(r(),"xl")?"COUNT":"SHORT"),J=v(()=>`${k("tooltip_episodes")}: ${n(Q)}`),ie=async(Y,we,_e)=>{await uo(),Y?.getAttribute("aria-expanded")==="false"&&we&&!_e&&ht(()=>{w.set(!1),Y.focus()})};Be(()=>{ie(n(V),s(),a())});var re=Oe(),Z=de(re);{var ue=Y=>{let we=v(()=>l()?"px-0":""),_e=v(()=>!y);Pt(Y,{get className(){return`w-max btn-full-opacity btn-jc-l ${n(we)??""}`},testId:"btn-episodes",click:A,get disabled(){return n(_e)},get ariaExpanded(){return a()},get ariaLabel(){return n(J)},get ref(){return n(V)},set ref(Ee){N(V,Ee,!0)},children:(Ee,He)=>{var ae=Oe(),Re=de(ae);{var ne=Pe=>{var Te=Oy(),ce=de(Te),ee=_(ce,!0);h(ce);var ye=I(ce,2),De=_(ye);dm(De,{}),h(ye),O(()=>pe(ee,n(Q))),b(Pe,Te)},R=Pe=>{var Te=Hy(),ce=de(Te);lm(ce,{});var ee=I(ce,2);{var ye=le=>{var at=By(),K=_(at,!0);h(at),O(()=>pe(K,n(Q))),b(le,at)},De=(le,at)=>{{var K=Ae=>{var Fe=Dy(),Ye=_(Fe,!0);h(Fe),O(()=>pe(Ye,p().length)),b(Ae,Fe)};M(le,Ae=>{n(D)==="COUNT"&&Ae(K)},at)}};M(ee,le=>{n(D)==="FULL"?le(ye):le(De,!1)})}b(Pe,Te)};M(Re,Pe=>{l()?Pe(ne):Pe(R,!1)})}b(Ee,ae)},$$slots:{default:!0}})};M(Z,Y=>{n(L)&&Y(ue)})}b(t,re),U(),o()}var Sm=require("@vkontakte/videoplayer-shared");var ti=require("@vkontakte/videoplayer-core"),lt=require("@vkontakte/videoplayer-shared"),ts=require("@vkontakte/videoplayer-statistics");var We=require("@vkontakte/videoplayer-shared"),Vi=require("@vkontakte/videoplayer-shared");var I1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var Uy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",hu=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 Vi.Subject,loadStarted$:new Vi.Subject,loadEnded$:new Vi.Subject,loadError$:new Vi.Subject,ready$:new Vi.Subject,slotRequested$:new Vi.Subject,started$:new Vi.Subject,timeRemained$:new Vi.Subject,paused$:new Vi.Subject,resumed$:new Vi.Subject,ended$:new Vi.Subject,empty$:new Vi.Subject,skipped$:new Vi.Subject,clicked$:new Vi.Subject,closed$:new Vi.Subject,error$:new Vi.Subject};this.loadAdman=e=>(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,We.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,We.now)()]}),o())};(0,Vi.addScript)(Uy,e,this.loadTimeout).then(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,We.now)()]}),window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,We.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(a=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(a)],numbers:[(0,We.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,We.now)()]}),o())},a=()=>{l=!0,o()},l=!1,d=window.setTimeout(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,We.now)()]}),a()},this.loadTimeout);e.addEventListener("abort",a),e.aborted&&(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,We.now)()]}),a()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(l)],numbers:[(0,We.now)()]}),!l&&(window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,We.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},a).finally(()=>{clearTimeout(r),clearTimeout(d),e.removeEventListener("abort",a)})});this.onAdsReady=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,We.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,We.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=>{(this.adsState?.playbackState?ve(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=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",this.currentAdSection??""],numbers:[(0,We.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=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",this.currentAdSection??""],numbers:[(0,We.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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,We.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",this.currentAdSection??""],numbers:[(0,We.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=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.log({message:"ad clicked"}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,We.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog(),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)};this.log=e.createComponentLog("AdmanWrapper"),We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,We.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){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,We.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:r,isAutoplay:s,adsContainer:a,adsVideoElement:l,slotId:d,params:f={},duration:p,previewParam:g}=e,u,y=this.playerState&&ve(this.playerState.vsid);y&&(this.isVsidOriginal?u=y:u=parseInt(y,36));let{isEmbed:x,immediateOrigin:w}=(0,We.detectEmbed)(),S=(x?w:window.location.href)??window.location.href,T={...f,dl:encodeURIComponent(S),autoplay:s?1:0,player_width:i,player_height:o,preview:g,...u?{request_id:u}:{},duration:p,...this.usePuid?{puid10:I1(i,o),puid11:r?0:1}:{}};g||delete T.preview;let k={slot:d,wrapper:a,videoEl:l,videoQuality:o,params:T,browser:{mobile:!1}};try{let V=new window.AdmanHTML;V.setDebug(!1),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),V.init(k),this.adman=V,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(V){We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(V)],numbers:[(0,We.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",this.currentAdSection??"","force: "+e],numbers:[(0,We.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 o="Switch to video: Adman state was not updated correctly";this.log({message:o}),this.events.error$.next(o)}this.actions.switchFromAdsToVideo?.(!i)}}setPostrollPassed(e){this.adsState?.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adsState){this.log({message:"toggle play"});let e=ve(this.adsState.playbackState);e==="playing"?this.pause():e==="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{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{this.onAdError("could not set ad fullscreen")}}startPreroll(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,We.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{this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{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(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,We.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.onReady(void 0),this.adman?.onStarted(void 0),this.adman?.onPlayed(void 0),this.adman?.onPaused(void 0),this.adman?.adMidrollPoint(void 0),this.adman?.onClosed(void 0),this.adman?.onSkipped(void 0),this.adman?.onClicked(void 0),this.adman?.onTimeRemained(void 0),this.adman?.onCompleted(void 0),this.adman?.onError(void 0),this.adman?.destroy(),this.videoElement&&(0,Vi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var E1=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 cm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let s of r){let a={startTime:0,endTime:0,texts:[],lang:i},l=s.split(this.oneLineRegExp);for(let d of l)if(!a.startTime&&!a.endTime){let f=new _u,{startTime:p,endTime:g}=f.parse(d);a.startTime=p,a.endTime=g}else if(d.trim()!==""){let f=new um,{texts:p}=f.parse(d);a.texts=[...a.texts,...p]}(a.startTime||a.endTime)&&a.texts.length>0&&o.push(a)}return o}},_u=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",r="0"){let s=Number(e)*60*60,a=Number(i)*60,l=Number(o),d=+`0.${r}`;return s+a+l+d}},um=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](a){let l=0,d=[];for(;l<a.length;){let f=["<",">"].reduce((p,g)=>{let u=a.indexOf(g,l);return p===-1||p>u?u:p},-1);if(f===-1){d.push(a.substring(l));break}d.push(a.substring(l,f)),l=f+1}return d}}),s=new _u;for(let a of r)s.isTime(a)?i.texts.push({type:"timestamp",value:s.parseTime(a)}):i.texts.push({type:"text",value:a});return i}},P1=cm;var $u=require("@vkontakte/videoplayer-shared"),_a,dr,pm=0,fm=!1,A1="",M1=(t,e=0,i=0)=>t<e&&t<i,bu=(t,e=0,i=0)=>t>=e&&t<=i,zy=(t,e=0,i=0)=>t>e&&t>i,L1=(t,e,i,o=!1)=>{let r=i.find(({id:l})=>l===e.value)?.subtitles;if(o)return r?.find(({startTime:d,endTime:f})=>bu(t,d,f));let s=t>=pm,a=t<pm;if(pm=t,a&&(fm=!1),(0,$u.isNonNullable)(_a)&&bu(t,_a.startTime,_a.endTime)&&A1===e.value)return _a;if(!(0,$u.isNonNullable)(dr)&&r?.length&&!fm){dr=r.find(({startTime:d,endTime:f})=>bu(t,d,f)||s&&M1(t,d,f)),_a=void 0,!(0,$u.isNonNullable)(dr)&&r[r.length-1].endTime<t&&(fm=!0);return}else{if(bu(t,dr?.startTime,dr?.endTime))return _a=dr,dr=void 0,A1=e.value,_a;(s&&zy(t,dr?.startTime,dr?.endTime)||a&&M1(t,dr?.startTime,dr?.endTime))&&(dr=void 0)}};var yu={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"},Wy={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"},Ad=t=>yu[t]??yu[Wy[t]]??void 0;var V1=require("@vkontakte/videoplayer-shared"),PO=require("@vkontakte/videoplayer-statistics"),xu=class{constructor(e,i,o,r=new V1.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){this.oneStat?.destroy(),this.thinOneStat?.destroy(),this.mediascopePixel?.destroy(),this.statSubscription.unsubscribe()}};var Md=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Md||{});var es=t=>t??0,ms=(t,e)=>{let i=t?.getBoundingClientRect?.(),o=e?.getBoundingClientRect?.();return{top:Math.round(es(i?.top)-es(o?.top)),left:Math.round(es(i?.left)-es(o?.left)),bottom:Math.round(es(i?.bottom)-es(o?.top)),right:Math.round(es(i?.right)-es(o?.left))}},pl=t=>{let e=t?.getBoundingClientRect?.();return{width:es(e?.width),height:es(e?.height)}};var wu="off";var R1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:a,canDownload:l,callbacks:d,webApi:f,videoEpisodes:p,previewThumbsData:g,uiConfig:u,coreConfig:y,player:x,disabledControls:w,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:k,replayInteractive:V,stopPlayer:A,hasInteractiveBranches:L,playPrevChapterDisabledTooltip:P,additionalButtons:Q,additionalSettingsMenuItems:D,additionalContextMenuItems:J,playPrevVideo:ie,playNextVideo:re,looped:Z=!1,statistics:ue,saveRate:Y,internalsExposure:we,playerView:_e,playerId:Ee})=>{let He={...y,configName:[...y.configName??[],"ui"],isAudioDisabled:a,live:{...y.live??{},isLiveCatchUpMode:!!r}},ae=u,Re=lt.TracerFactory.createRootTracer(ae.features.tracer),ne=Re.createComponentTracer("Store"),R=x||new ti.Player(He,Re,{playerId:Ee});we?.expose({corePlayer:R});let Pe=new lt.Logger,Te=new hu(Pe,{loadTimeout:ae.ads.loadTimeout,initTimeout:ae.ads.initTimeout,runtimeTimeout:ae.ads.runtimeTimeout,useAdmanFromNPM:ae.ads.useAdmanFromNPM,volumeMultiplier:ae.ads.volumeMultiplier,isVsidOriginal:ae.ads.isVsidOriginal,usePuid:ae.ads.usePuid}),ce=sa.getInstance(),ee=f?.pictureInPictureApi,ye=f?.annotationsApi,De=f?.slotsApi,le=Pe.createComponentLog("Store"),at,K,Ae={},Fe=new Gc,Ye=new lt.Subscription,dt=ue&&ue.oneStat?jt(ue.oneStat.vsid$):ar(void 0),Ct=te(Is()),ut=te(!1),vt=ee?.info.isActive$??new lt.ValueSubject(!1),Je=te(0),Nt=te(!1),Kt=te(!1),At=te([]),Ft=(0,lt.merge)(R.events.fatalError$,R.events.managedError$).subscribe(c=>At.update(C=>[...C,c])),Ce=ar(!1,c=>{let C=R.events.fatalError$.subscribe(()=>c(!0));return()=>C.unsubscribe()}),Ze=async c=>{let C=Object.values(lt.InterfaceLanguage).includes(c);if(ae.downloadVKLanguages&&(C&&ae.updateBuiltinLanguages||!hf(c))){let se;try{se=await(0,lt.loadVKLangPack)(c,vh,gh)}catch(ze){ue?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),ce?.report(ze,{errorType:"VKLangPack",fatal:!1})}se&&(gf({language:c,pack:se,fallback:ae.defaultLanguage}),he.set(c))}hf(c)&&he.set(c)},he=te(t),me=te(e);Ze(t);let j=(c,C)=>{let B=ve(he);return _f(B,c,C,ae.defaultLanguage)},Me=te("thumb");Me.subscribe(c=>{c==="ads"&&R.info.playbackState$.getValue()&&Ke()});let Ue=(()=>{let c=li([Ce,Me],([C,B])=>C?"crashed":B);return{...c,is:C=>ve(c)===C}})(),Xe=te(),Ke=()=>{Xe.set({muted:R.info.muted$.getValue()})},Le=(()=>{let c=te(new Set(w));return{...c,add:C=>{c.update(B=>new Set([...B].concat(C)))},remove:C=>{c.update(B=>{let se=[...B];return new Set(Array.isArray(C)?se.filter(ze=>!C.includes(ze)):se.filter(ze=>ze!==C))})},includes:C=>{let B=ve(c);return Array.isArray(C)?C.every(se=>B.has(se)):B.has(C)}}})(),ot=te({width:0,height:0});ne.log("create store"),le({message:"create store"});let qt=c=>{let C=c.container,B=()=>{Ni=new MutationObserver(ze=>{let{removedNodes:rt}=ze[0];rt.length&&C.append(R.experimental.element$.getValue())}),Ni.observe(C,{childList:!0})},se=R.experimental.element$.getValue();if(se)C.append(se),B();else{let ze=R.experimental.element$.pipe((0,lt.filter)(rt=>!!rt),(0,lt.once)()).subscribe(rt=>{C.append(rt),B()});Ye.add(ze)}},Ut=c=>{le({message:`init video, config: ${JSON.stringify(c)}`}),S?qt(c):(lt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,lt.now)()]}),R.initVideo(c)),ne.log("init video",{isInteractive:S}),c.subtitles&&R.setExternalTextTracks(c.subtitles),at=c},Rt=new lt.Subject,$t=c=>Rt.next(c),yt=new lt.Subject,Qt=new lt.Subject,eo=new lt.Subject,Ni=null,wn={actionRewind$:yt,actionSeek$:Qt,inPiP$:vt,inFullscreen$:new lt.Observable(c=>Ct.subscribe(C=>c.next(C))),actionSetSubtitle$:eo,nextMovie$:Rt},en={actionSeek$:Qt,playerSize$:new lt.Observable(c=>ot.subscribe(C=>c.next(C)))};if(ue){let{oneStat:c,thinOneStat:C,mediascopePixel:B,statSubscription:se}=ue;c&&(S||se.add(c.attachTo(R)),se.add(c.attachToUi(wn)),se.add(c.attachToAds(Te.events)),c.authorize(s).catch(ze=>{le({message:`onestat auth error ${String(ze)}`})}),B&&B.attachTo(R)),C&&(se.add(C.attachTo(R,Te.events)),se.add(C.attachToUi(en)),se.add(C.attachToAds(Te.events)),C.authorize(s))}if(ce){let c=new lt.Subscription,C=(B,se)=>c.add(B.subscribe(se));if(C(R.events.managedError$,B=>{ce.logIError(B)}),C(R.events.fatalError$,B=>{ce.logIError(B,!0)}),ue){let{oneStat:B}=ue;B&&C(B.experimental.error$,se=>{ce.logIError(se)})}ce.sentrySubscription.add(c)}let Oo=()=>{if(ti.clientChecker.device.isIOS&&K)try{e1(K)}catch(c){le({message:`exitIosSafariFullscreen failed: ${c}`})}};Ye.add(R.experimental.element$.subscribe(c=>{c&&(K=c,c.classList.add("player-media"),la(ee)&&ee.updateVideoElement(),S&&c.setAttribute("pip","false"),_e==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(R.events.ended$.subscribe(()=>{Oo(),d?.onEnded?.()})).add(R.events.looped$.subscribe(()=>{d?.onLooped?.()})).add(R.events.started$.subscribe(async()=>{la(ee)&&await ee?.revealPictureInPicture();let c=R.info.muted$.getValue();d?.onStarted?.(),Ae.onStarted?.(c)})).add(R.events.willSeek$.subscribe(({from:c,to:C})=>{d?.onSeek?.(c,C)})).add(R.events.autoplaySoundProhibited$.subscribe(()=>{d?.onAutoplaySoundProhibited?.()})).add(R.info.position$.subscribe(c=>{let C=R.info.duration$.getValue();isFinite(C)&&C>0&&(d?.onTimeupdate?.(C,c),Te.setPosition(c,C))})).add(R.events.fatalError$.subscribe(c=>{d?.onCrashed?.(c?`${c.id}: ${c.message}`:void 0)})).add(R.events.fetcherRecoverableError$.subscribe(c=>{d?.onRecoverableError?.(c?`${c.id}: ${c.message}`:void 0)})).add(R.events.loadedMetadata$.subscribe(()=>{Nt.set(!0)})).add(R.info.is3DVideo$.subscribe(c=>{Kt.set(c)})).add(R.info.isEnded$.subscribe(c=>{S&&(c?(k?.getValue()&&Le.add(nd),Le.add("PLAY_BUTTON")):Le.remove("PLAY_BUTTON"))})).add(R.info.liveTime$.subscribe(c=>{d?.onLiveTime?.(c)})).add(R.info.isStalled$.subscribe(c=>{d?.onStalledChanged?.(c)})).add(R.info.isLiveEnded$.subscribe(c=>c&&d?.onLiveEnded?.())).add(Te.events.loadStarted$.subscribe(()=>d?.adsInfo?.onLoadStarted?.())).add(Te.events.loadEnded$.subscribe(()=>d?.adsInfo?.onLoadEnded?.())).add(Te.events.loadError$.subscribe(()=>d?.adsInfo?.onLoadError?.())).add(Te.events.init$.subscribe(()=>d?.adsInfo?.onInit?.())).add(Te.events.ready$.subscribe(()=>d?.adsInfo?.onReady?.())).add(Te.events.started$.subscribe(c=>d?.adsInfo?.onStarted?.(c))).add(Te.events.timeRemained$.subscribe(c=>d?.adsInfo?.onTimeRemained?.(c))).add(Te.events.ended$.subscribe(c=>d?.adsInfo?.onCompleted?.(c))).add(Te.events.empty$.subscribe(()=>d?.adsInfo?.onEmpty?.())).add(Te.events.clicked$.subscribe(c=>d?.adsInfo?.onClicked?.(c))).add(Te.events.closed$.subscribe(c=>d?.adsInfo?.onClosed?.(c))).add(Te.events.error$.subscribe(c=>d?.adsInfo?.onError?.(c))).add(Te.events.paused$.subscribe(()=>d?.adsInfo?.onPaused?.())).add(Te.events.resumed$.subscribe(()=>d?.adsInfo?.onResumed?.()));let zt=new lt.Subscription,qi=()=>{let{debugLog:c}=ae,C,B="#9df7b7",se="#efd169";if(c&&c!==!0){let{colors:rt}=c;C=c.tag,B=rt?.[0]??B,se=rt?.[1]??rt?.[0]??se}let ze=C?`: ${C}`:"";zt.add(R.events.log$.subscribe(rt=>{console.debug(`%c sdk${ze} `,`background:${B};`,`sdk component: ${rt.component}`,rt.message)})).add(Pe.log$.subscribe(rt=>{console.debug(`%c ui${ze} `,`background:${se};`,`ui component: ${rt.component}.`,rt.message)}))},Sn=()=>{zt.unsubscribe()},tn=(c,C)=>{ne.log("start camera manual rotation",{mx:c,my:C}),R.startCameraManualRotation(c,C)},Cn=(c=!1)=>{ne.log("stop camera manual rotation",{immediate:c}),R.stopCameraManualRotation(c)},Ti=(c,C,B)=>{ne.log("move camera focus px",{xpx:c,ypx:C,dt:B}),R.moveCameraFocusPX(c,C,B)},on=()=>{R.holdCamera()},Co=()=>{R.releaseCamera()},ki=ar(R.info.position$.getValue(),c=>{let C,B,se=()=>{let ze=R.info.playbackState$.getValue(),rt=R.info.isLive$.getValue(),Vt=R.info.duration$.getValue(),ei=R.info.position$.getValue();if(ze&&[ti.PlaybackState.PLAYING,ti.PlaybackState.PAUSED].includes(ze)){let Ao=rt?ei-Vt:R.getExactTime();Ao!==B&&c(Ao),B=Ao}C=requestAnimationFrame(se)};return se(),()=>cancelAnimationFrame(C)}),To=jt(R.info.playbackState$),Tn=jt(R.info.currentBuffer$),H=jt(R.info.isEnded$),qe=jt(R.info.isLive$),ct=ae.features.playbackRate?jt(R.info.canChangePlaybackSpeed$):ar(!1),Jt=jt(R.info.liveBufferTime$),Ot=jt(R.info.volume$),Wt=jt(R.info.muted$),hi=jc(R.info.predefinedQualityLimitType$.pipe((0,lt.map)(c=>c===ti.PredefinedQualityLimits.TRAFFIC_SAVING)),R.info.predefinedQualityLimitType$.getValue()===ti.PredefinedQualityLimits.TRAFFIC_SAVING),kn=jc(R.info.predefinedQualityLimitType$.pipe((0,lt.map)(c=>c===ti.PredefinedQualityLimits.HIGH_QUALITY)),R.info.predefinedQualityLimitType$.getValue()===ti.PredefinedQualityLimits.HIGH_QUALITY),di=jt(R.info.autoQualityLimitingAvailable$),_t=jt(R.info.availableQualities$),Oi=jt(R.info.availableQualitiesFps$),Ii=jt(R.info.chromecastState$),In=jt(R.info.chromecastDeviceName$),_i=jt(R.info.currentFormat$),to=jt(R.info.throughputEstimation$),io=jt(R.info.videoBitrate$),nn=jt(R.info.intrinsicVideoSize$),Bo=jt(R.info.duration$),mi=jt(R.info.isAudioAvailable$),Ei=null,Do=R.info.isBuffering$,vo=ar(Do.getValue(),c=>{let C=Do.subscribe(B=>{B&&Ei===null?Ei=window.setTimeout(()=>{c(Do.getValue()),Ei=null},ae.loaderDelay):c(B)});return()=>{C.unsubscribe(),Ei&&clearTimeout(Ei)}}),Ho=()=>{Ei&&clearTimeout(Ei),Ei=null},Fo=li([Bo,qe],([c,C])=>C?-c:c),cr=li([To],([c])=>c===ti.PlaybackState.PLAYING),En=jt(R.info.atLiveEdge$),ur=jt(R.info.atLiveDurationEdge$),jn=jt(R.info.position$),Nr=li([jn,Bo],([c,C])=>isFinite(c)&&isFinite(C)&&!!C),Uo=li([Ii],([c])=>c===ti.ChromecastState.CONNECTED),Pn=jt(R.info.availableVideoStreams$),Yn=ae.features.audioLanguages?jt(R.info.availableAudioStreams$):ar([]),rn=jt(R.info.currentVideoStream$),Qi=jt(R.info.currentAudioStream$),An=c=>{c.language&&pf(c.language),R.setVideoStream(c)},pr=(c,C)=>{R.setAudioStream(c),Gt(C)&&(c.language&&pf(c.language),ae.features.userVideoPrefs&&i&&vf(ae.userSalt,String(i),{audioTrackId:c.id}))},sn=c=>{let C;if(c.length===1&&(C=c.at(0)),C??=c.find(se=>"isDefault"in se&&se.isDefault),ae.features.userVideoPrefs&&i){let se=eu(ae.userSalt,String(i));se?.audioTrackId&&(C=c.find(rt=>rt.id===se.audioTrackId)??C)}let B=Fh();return B&&(C??=c.find(({language:se})=>B===se)),C??=c.at(0),C},Zn=!1;Ye.add(R.info.availableAudioStreams$.subscribe(c=>{if(!Zn&&c.length){let C=sn(c);C&&(R.setAudioStream(C),Zn=!0)}}));let Mn=!1;Ye.add(R.info.availableVideoStreams$.subscribe(c=>{if(!Mn&&c.length){let C=sn(c);C&&(R.setVideoStream(C),Mn=!0)}}));let ko=te(void 0),Ln=jt(R.info.isAutoQualityEnabled$,c=>c&&ko.set(void 0)),Or=jt(R.info.currentQuality$,()=>ko.set(void 0)),fr=li([ko,Or],([c,C])=>c??C),oo=li(_i,c=>c!==ti.VideoFormat.MPEG),pt=li([_t,Oi,Ln,fr,oo],([c,C,B,se,ze])=>{let rt=[];ze&&rt.push({value:"auto",displayValue:j("auto_quality_option"),selected:B});let Vt=c.filter(ei=>!(0,lt.isInvariantQuality)(ei));for(let ei of Vt){let Ao=C[ei];rt.push({value:ei,displayValue:`${ei}${Ao?E1(Ao):""}`,selected:B?!1:ei===se})}return rt}),ci=jt(R.info.currentPlaybackRate$),an=li([ci,En,ur],([c,C,B])=>{let se=B||S?1:ae.controls.playbackRateMin,ze=C?1:ae.controls.playbackRateMax,rt=ae.controls.playbackRateStep,Vt=[];for(let ei=se;ei<=ze;ei+=rt)Vt.push({value:ei,displayValue:ei===1?j("playback_rate_1"):j("playback_rate",{multiplier:ei.toString(10)}),selected:c===ei});return Vt}),Pi={displayValue:j("subtitles_off"),value:wu,language:""},bi=te({...Pi}),Io=ae.features.subtitles?jt(R.info.availableTextTracks$):ar([]),ln=Ah(),Gi=li([Io,bi],([c,C],B)=>{let se=[],ze=c.find(({id:rt})=>rt===C.value);if(ze?.url){let[,rt]=ln.find(ze.url)??[];if(rt){B(rt);return}Fe.download(ze.url).then(Vt=>{if(!Vt||Fe.isDestroyed())return;let ei=new P1,Ao=ze.language;if(Ao){let ap=!!ze.isAuto,y0=ei.parse(Vt,Ao);se.push({lang:Ao,subtitles:y0,isAuto:ap,id:ze.id})}ln.add(ze.url,se),ve(bi).value===C.value&&B(se)}).catch(Vt=>{ue?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),ce?.report(Vt,{errorType:"Subtitles download",fatal:!1})})}B(se)}),zo=li([ci,cr,bi],([c,C,B],se)=>{let Vt;if(R.info.isLive$.getValue()&&C&&B.value!==Pi.value){let Ao=()=>{let ap=1e3/(3*c);Vt=setTimeout(Ao,ap),se(Date.now())};return Ao(),()=>clearTimeout(Vt)}}),Eo=li([Io,bi],([c,C])=>{if(!c.length)return[];let B=[];for(let{language:se,isAuto:ze,id:rt}of c){let Vt=se&&Ad(se);se&&Vt&&B.push({displayValue:ze?j("subtitles_auto",{language:Vt}):Vt,value:rt,selected:C?.value===rt,isAuto:ze,language:se})}return B.length?(B.unshift({...Pi,selected:C?.value===Pi.value}),B):[]}),no={available:[],prev:[]},mr=()=>R.experimental.getCurrentTime$.getValue()?.()??K?.currentTime??0,vr=li([ki,bi,Gi,zo],([c,C,B,se])=>{let ze=R.info.isLive$.getValue();if(ze&&no.prev!==B){let rt=B.find(({id:ei})=>ei===C.value),Vt=no.prev.find(({id:ei})=>ei===C.value);if(rt){let ei={...rt,subtitles:[...Vt?.subtitles??[],...rt.subtitles]};no.available=[ei],no.prev=B}}if(C&&C.value!==Pi.value){let rt=ze?mr():c,Vt=ze?no.available:B;return L1(rt,C,Vt,ze)}}),Br=li([vr],([c])=>c?.texts?c.texts:[]);Ye.add(bi.subscribe(c=>{if(c.value===Pi.value)d?.onSubtitleOff?.();else{let C=Object.entries(yu).find(([B,se])=>se===c.displayValue);d?.onSubtitleOn?.(C?C[0]:"",c.value)}}));let is=te(!0),dn=li([Tn,Fo,jn,Jt],([c,C,B,se])=>{let ze=c?.end??0;if(!se)return ze/C;let Vt=-B+se-C;return(ze-Vt)/C}),Xn=jt(R.info.availableSources$),gr=li([Xn],([c])=>Object.keys(c?.[ti.VideoFormat.MPEG]||{}).length>0),ro=()=>{let c=Object.keys(R.info.availableSources$?.getValue()?.[ti.VideoFormat.MPEG]||{}),C=(0,lt.getHighestQuality)(c)||lt.VideoQuality.Q_144P;return at.sources[ti.VideoFormat.MPEG]?.[C]},Yt=()=>{let c=ro();if(c)ne.log("download video",{url:c}),Ih(c,at?.meta?.title||"video");else{let C="There is no URL for download video";ne.log("download video",{message:C}),le({message:C})}},Wo=()=>{le({message:"toggle muted"});let c=R.info.muted$.getValue();R.info.volume$.getValue()===0&&!c?un(Bi(),!1):Vn(!c,!1)},Ko=()=>{if(It.ui.settingsMenu.visible$.set(!1),!ve(It.ui.settingsSubMenu.visible$)){let c=ve(It.ui.settingsMenu.ref$);if(d?.uiInfo?.onSettingsMenu&&c){let B=pl(c),se={top:0,left:0,bottom:0,right:0};d.uiInfo.onSettingsMenu({visible:!1,size:B,position:se,name:"settings"})}}ne.log("close settings menu")},cn=async(c,C=()=>Promise.resolve())=>{It.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),It.ui.settingsMenu.visible$.set(!0),await C();let B=ve(It.ui.settingsMenu.ref$),se=Ma();if(d?.uiInfo?.onSettingsMenu&&B&&se){let rt=pl(B),Vt=ms(B,se);d.uiInfo.onSettingsMenu({visible:!0,size:rt,position:Vt,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})},gt=(c,C=!1)=>{It.ui.settingsSubMenu.visible$.set(!1);let B=ve(It.ui.settingsMenu.ref$),se=Ma(),ze=ve(It.ui.settingsMenu.visible$);if(d?.uiInfo?.onSettingsMenu&&B&&se)if(ze&&!C){let Vt=pl(B),ei=ms(B,se);d.uiInfo.onSettingsMenu({visible:!0,size:Vt,position:ei,name:"settings"})}else{let Vt=pl(c),ei={top:0,left:0,bottom:0,right:0},Ao=ve(It.ui.settingsSubMenu.name$);d.uiInfo.onSettingsMenu({visible:!1,size:Vt,position:ei,name:Ao})}ne.log("close settings sub menu")},Bt=(c,C)=>{It.ui.settingsSubMenu.visible$.set(!0),It.ui.settingsSubMenu.ref$.set(C),It.ui.settingsSubMenu.name$.set(c);let B=Ma();if(d?.uiInfo?.onSettingsMenu&&C&&B){let ze=pl(C),rt=ms(C,B);d.uiInfo.onSettingsMenu({visible:!0,name:c,size:ze,position:rt})}ne.log("open settings sub menu",{name:c})},Bi=()=>{let c=Math.max(ae.volumeMinRestore,Yc()??0);return c===0?ae.volumeDefault:c},Gt=c=>{let C=ae.features.savePreferredStatesOnUserActionOnly;return!C||C&&!c},un=(c,C)=>{let B=c===0?Bi():c,se=R.info.muted$.getValue();le({message:`set volume, volume: ${c}, preferredVolume: ${B}`});let ze=!a||Ue.is("ads");se&&c>0&&ze&&(se=!1,Gt(C)&&cf(!1)),R.setVolume(c,se),Te.setVolume(c),Gt(C)&&rf(B)},Vn=(c,C)=>{let B=R.info.volume$.getValue();le({message:`set muted, currentVolume: ${B}, mute: ${c}`});let se=Ue.is("ads");if(R.setMuted(c,se),Te.setVolume(c?0:B),Gt(C)&&(!se||!c)&&cf(c),!c&&B===0){let ze=Bi();R.setVolume(ze),Gt(C)&&rf(ze),Te.setVolume(ze)}},pn=te(!1),hr=c=>{ne.log("set looped",{isLooped:c}),pn.set(c),R.setLooped(c),d?.uiInfo?.onLoopedChanged?.(c)};hr(Z);let Dr=()=>{d?.uiInfo?.onReportProblem?.()},_r=(c,C=!1)=>{le({message:`set autoplayNextEnabled, value: ${c}`}),ne.log("set autoplay next enabled",{autoplayNextEnabled:c}),It.ui.autoplayNextEnabled$.set(c),Wh(c),C&&d?.onSetAutoplayNextEnabled?.(c)},br=c=>{le({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),It.ui.timerNextVideoRunning$.set(c)},qo=(c=!0)=>{let C=!0;if(c&&d?.onPrevVideoClick)try{C=d?.onPrevVideoClick?.()}catch{le({message:"onPrevVideoClick callback failed to execute"})}if(!C)return;c&&$r("prev")||ie()},Jn=(c=!0)=>{let C=!0;if(c&&d?.onNextVideoClick)try{C=d?.onNextVideoClick?.()}catch{le({message:"onNextVideoClick callback failed to execute"})}if(!C)return;c&&$r("next")||re()},$r=c=>{let{isMobile:C,features:{playbackStatusNextVideoShow:B,playbackStatusShow:se}}=ae;return B&&se&&!C?(It.ui.aboutToGoNextVideo.set(c),It.ui.userActionsDisabled.set(!0),!0):!1},Hr=()=>{d?.onNextVideoAnnouncementShow?.()},go=()=>{d?.onNextVideoAnnouncementClick?.()},Rn=()=>{d?.onNextVideoAnnouncementAuto?.()},et=()=>{d?.onNextVideoAnnouncementCancel?.()},xt=()=>{R.prepare()},ui=()=>{(0,lt.assertNonNullable)(It);let c=ve(It.ui.controls.disabledControls$),C=ve(It.playerPhase),B={playerPhase:C,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(le({message:"toggle play"}),C==="ads"){B.action="play",ne.log("toggle adman play",B),Te.togglePlay();return}let se=()=>{le({message:"toggle play, call player.play"}),B.action="play",R.play(),d?.onPlay?.()},ze=()=>{le({message:"toggle play, call player.pause"}),B.action="pause",R.pause(),d?.onPause?.()};if(R.info.isEnded$.getValue()){if(le({message:"toggle play, video ended, seek to 0"}),yt.next(),Qt.next(ts.SeekAction.REWIND),S){V?.();return}R.seekTime(0),se()}else R.info.playbackState$.getValue()!==ti.PlaybackState.PLAYING?se():ze();ne.log("toggle play",B)},Di=(c,{changeReason:C="default",appliesTo:B="to-video"}={},se)=>{le({message:`set quality, quality: ${c}`}),ne.log("set quality",{quality:c}),R.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:ze}=ae.features;Zc(),c!=="auto"?(ze?(Xc({type:"exact_quality",quality:c,videoId:i},B),R.setPredefinedQualityLimits(ti.PredefinedQualityLimits.UNKNOWN)):sf(i,c),ko.set(c),R.setQuality(c)):ze&&C==="default"&&(Yi("auto_quality",B,se),ve(hi)&&Hi(!1,void 0,se),ve(kn)&&$i(!1,void 0,se))},Hi=(c,C="as-default",B)=>{le({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let se=c?ti.PredefinedQualityLimits.TRAFFIC_SAVING:ti.PredefinedQualityLimits.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(ji(se,C,B),sd(!1)):(R.setPredefinedQualityLimits(se),Gt(B)&&sd(c))},$i=(c,C="as-default",B)=>{le({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),ji(c?ti.PredefinedQualityLimits.HIGH_QUALITY:ti.PredefinedQualityLimits.UNKNOWN,C,B)},ji=(c,C,B)=>{c!==ti.PredefinedQualityLimits.UNKNOWN&&(ve(di)&&!ve(Ln)&&Di("auto",{appliesTo:C,changeReason:"limit-changed"},B),Yi(c,C,B)),R.setPredefinedQualityLimits(c)},Yi=(c,C,B)=>{Gt(B)&&(Xc({type:c,videoId:i},C),C==="as-default"&&Xc({type:c,videoId:i},"to-video"))},so=(c,C=!0)=>{ne.log("set playback rate",{playbackRate:c}),R.setPlaybackRate(c),ae.features.saveRate&&Y&&!R.info.isLive$.getValue()&&C&&Uh(c)},Nn=()=>{let c=ve(an),C=c.findIndex(({selected:se})=>se);if(C===c.length-1)return;let B=c[C+1];so(B.value)},ho=()=>{let c=ve(an),C=c.findIndex(({selected:se})=>se);if(C===0)return;let B=c[C-1];so(B.value)},Zi=(c={...Pi,selected:!1},C)=>{ne.log("set subtitles",{...c}),c.value!==Pi.value&&eo.next(c.isAuto?c.value+"_auto":c.value),bi.set(c),Gt(C)&&(mf(c.value===Pi.value?void 0:c.language),ae.features.userVideoPrefs&&i&&vf(ae.userSalt,String(i),{subtitleTrackId:c.value===Pi.value?void 0:c.value}))},er=c=>{ne.log("toggle subtitles"),ve(bi)?.value===Pi.value?tr(c):ir(c)},On=(c,C)=>{ne.log("change subtitle",{enabled:c}),c?tr(!0,C):ir(!0)},tr=(c,C)=>{ne.log("subtitle on");let B=ve(Eo),se=ve(he),ze;C&&(ze=B.find(rt=>rt.value===C)),ze??=B.filter(rt=>rt.value!==Pi.value).find(rt=>rt.value===se)||B[1],Zi(ze,c)},ir=c=>{ne.log("subtitle off"),Zi(void 0,c)};R.info.availableTextTracks$.subscribe(c=>{function C(){let B=[];for(let{language:se,isAuto:ze,id:rt}of c){let Vt=se&&Ad(se);se&&Vt&&B.push({id:rt,language:se,title:ze?j("subtitles_auto",{language:Vt}):Vt})}return B}d?.onAvailableSubtitlesChanged?.(C())});let yr=te(!0),xr=c=>{yr.set(c)},_o=(c,C,B=!0)=>{if(le({message:`seek to time, time: ${c}`}),ne.log("seek to time",{time:c,action:C,forcePrecise:B}),Qt.next(C),R.info.isLive$.getValue()){let se=R.info.duration$.getValue(),ze=Math.min(0,se+c);R.seekTime(ze,B)}else{if(k?.getValue())return;R.info.isEnded$.getValue()&&(le({message:"seek after ended, call callbacks.onPlay"}),d?.onPlay?.()),R.seekTime($s(c),B)}},fn=c=>{le({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),_o(c,ts.SeekAction.EPISODE,!0)},wr=(c,C)=>{le({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:C});let B=ve(Fo)*c;_o(B,C,!1)},Qe=c=>{le({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),Qt.next(ts.SeekAction.UNKNOWN),R.seekTime(R.info.isLive$.getValue()?-c:c)},Dt=c=>{let C=c.max??"none",B=c.min??"none";le({message:`set auto quality limitation. Max: ${C}. Min: ${B}`}),ne.log("set auto quality limits",{max:C,min:B}),R.setAutoQualityLimits(c)},yi=c=>{le({message:`seek external to episode start time: ${c}`}),ne.log("seek external to episode start time",{time:c}),_o(c,ts.SeekAction.EPISODE,!0)},Qo=c=>{le({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),R.setPlaybackRate(c)},Xi=te(void 0),Fi=te(!1),Po=c=>{le({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),Fi.set(!0),or(c)},or=c=>{Xi.set(c)},os,Fr,nt=()=>{Xi.set(void 0),Fi.set(!1)},Ht=()=>{clearTimeout(Fr),clearTimeout(os),os=window.setTimeout(()=>{nt()},500),K?.removeEventListener("seeked",Ht)},ge=c=>{le({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),wr(c,ts.SeekAction.SLIDER),ve(It.ui.isMobile)&&ve(It.state.currentFormat$)===ti.VideoFormat.HLS?(K?.addEventListener("seeked",Ht),Fr=window.setTimeout(()=>{Ht()},300)):nt()},Mt=li([ki,Fo,Xi],([c,C,B],se)=>{se((0,lt.isNonNullable)(B)?B*C:c)}),oi=te(!1),Ai=()=>{oi.set(!0)},bo=()=>{oi.set(!1)},mn=li([ot],([{width:c}],C)=>{let B=y1(c);C(B)}),ni=te(!1),ri=Q.filter(c=>Eh(c)),ao=li([mn,ni],([c,C])=>C?ri.filter(B=>!B.hideOnMobile):ri.filter(B=>!B.hideOnDesktopGridTypes?.includes(c))),Ui=te(Q.filter(c=>Ph(c))),Bn=li([Ui,mn],([c,C])=>c.filter(B=>!B.hideOnDesktopGridTypes?.includes(C))),lo=li([Bn,ao],([c,C])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(B=>B.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?C.map((B,se)=>({id:se,weight:se,type:"desktop-control-panel-right",testId:B.testId,icon:B.iconUrl,onClick:B.onClick,ariaLabel:B.ariaLabel??B.tooltip,tooltipText:B.tooltip})):[]]),nr=te(D),kt=li([nr],([c])=>ae.features.additionalSettingsMenuItems?c.map(C=>C.type==="SWITCH"?{...C,onClick:C.onChangeEnabled}:C):[]),wt=(c,C)=>{let B=ve(Ui).map(se=>se.id!==c?se:{...se,...C});Ui.set(B)},Dn=c=>{let C=ve(Ui);if(C.some(B=>B.id===c.id)){le({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}C.push(c),Ui.set(C)},Ur=c=>{let C=ve(Ui);if(!C.some(B=>B.id===c)){le({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}C=C.filter(B=>B.id!==c),Ui.set(C)},ns=c=>{Qt.next(ts.SeekAction.LIVE),le({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),R.setLiveLowLatency(c)},zr=(c,C)=>{let B=ve(nr).map(se=>se.id!==c?se:{...se,...C});nr.set(B)},Wr=c=>{let C=ve(nr);if(C.some(B=>B.id===c.id)){le({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}C.push(c),nr.set(C)},bs=c=>{let C=ve(nr);if(!C.some(B=>B.id===c)){le({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}C=C.filter(B=>B.id!==c),nr.set(C)},Sr=te(J),sc=li([Sr],([c])=>ae.features.additionalContextMenuItems?c:[]),ju=(c,C)=>{let B=ve(Sr).map(se=>se.id!==c?se:{...se,...C});Sr.set(B)},ac=c=>{let C=ve(Sr);if(C.some(B=>B.id===c.id)){le({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}C.push(c),Sr.set(C)},Yu=c=>{let C=ve(Sr);if(!C.some(B=>B.id===c)){le({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}C=C.filter(B=>B.id!==c),Sr.set(C)},lc=li([ni,Ce],([c,C],B)=>{B(c&&C)}),Zu=()=>{Qt.next(ts.SeekAction.LIVE),le({message:"switch to active live"}),ne.log("switch to active live"),R.seekTime(0),R.info.playbackState$.getValue()!==ti.PlaybackState.PLAYING&&It.actions.internal.togglePlay()},dc=()=>{ne.log("skip adman"),Te.skip()},Xu=(c=!0)=>{(0,lt.assertNonNullable)(It),le({message:`switch from ads to video, callPlay: ${c}`}),ne.log("switch from ads to video",{callPlay:c}),Me.set("video"),c&&R.play(),a&&Vn(!0,!0);let C=ve(Xe)?.muted,B=!R.info.muted$.getValue();C!==void 0&&!B&&Vn(C,!0),Xe.set(void 0)},cc=()=>{(0,lt.assertNonNullable)(It),le({message:"switch from video to ads"}),ne.log("switch from video to ads"),It.actions.internal.pause(),Oo(),Me.set("ads")},Ju=c=>{(0,lt.assertNonNullable)(It);let C=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:C}),Me.set(C)},uc=c=>{(0,lt.assertNonNullable)(It);let C=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:C}),Me.set(C)},ep=c=>{(0,lt.assertNonNullable)(It);let C=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:C}),Me.set(C)},pc=()=>((0,lt.assertNonNullable)(It),ne.log("get debug text data"),Th(R,at,It,Re.getTraceId())),tp=()=>((0,lt.assertNonNullable)(It),JSON.stringify(Re.getFinishedSpans())),fc=()=>((0,lt.assertNonNullable)(It),kh(R,at,It)),Ma=()=>K,mc=()=>{le({message:"toggle chromecast"}),ne.log("toggle chromecast"),R.toggleChromecast()},vc=c=>{if((0,lt.assertNonNullable)(It),R.info.isEnded$.getValue())return;let C=!c;if(ve(It.playerPhase)==="ads"){le({message:`pause ads, internalCall: ${C}`}),ne.log("pause ads",{internalCall:C}),Te.pause();return}le({message:`pause video, internalCall: ${C}`}),ne.log("pause video",{internalCall:C}),C&&d?.onPause?.(),R.pause()},Tl=c=>{(0,lt.assertNonNullable)(It);let C=!c;if(ve(It.playerPhase)==="ads"){le({message:`play ads, internalCall: ${C}`}),ne.log("play ads",{internalCall:C}),Te.play();return}le({message:`play video, internalCall: ${C}`}),ne.log("play video",{internalCall:C}),C&&d?.onPlay?.(),R.play()},gc=c=>{(0,lt.assertNonNullable)(It);let C=!c;if(ve(It.playerPhase)==="ads"){le({message:"player cannot be stopped during ads via external method"});return}le({message:`player will be stopped, internalCall: ${C}`}),A?.()},kl=(c,C)=>{(0,lt.assertNonNullable)(It),le({message:`first start, show ads: ${c}, internalCall: ${!C}`}),ne.log("first start",{showAds:c,external:C}),c?Me.set("ads"):(Me.set("video"),C?R.play():It.actions.internal.togglePlay())},Il=()=>(le({message:"getting time codes"}),p),El=()=>{let c=Il();if(!c||[0,1].includes(c.length))return;let C=R.info.position$.getValue();return c.find(B=>B.time>C)},ip=c=>{let C=c;C||(C=El());let B=R.info.position$.getValue();ne.log("seek to next episode",{currentTime:B,...C}),C&&(le({message:"seek to next episode"}),_o(C.time,ts.SeekAction.EPISODE,!0))},Pl=()=>{let c=Il();if(!c||[0,1].includes(c.length))return;let C=R.info.position$.getValue(),B=c.findIndex(ze=>ze.time>C),se=B===-1?c.length-2:B-2;if(!(se<0))return c[se]},op=c=>{let C=c;C||(C=Pl());let B=R.info.position$.getValue();ne.log("seek to prev episode",{currentTime:B,...C}),C&&(le({message:"seek to prev episode"}),_o(C.time,ts.SeekAction.EPISODE,!0))},np=()=>(le({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",{...g}),g),rp=async()=>{let c=ee?.isActive(),C="none";ee?.isActive()?(C="exit",await ee?.exit()):(C="request",await ee?.request()),ne.log("toggle picture in picture",{isActive:c,action:C})},Ge=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),Je.update(C=>C+c)},Zt=te([]);T?.subscribe(c=>{let C=[];for(let B=0;B<c.length;B++){let{range:[se,ze],subjects:rt}=c[B];B===0&&se!==0&&C.push({time:0,text:"",interactive:!1,completed:!0}),C.push({time:se/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!rt.length||rt.every(Vt=>Vt.isRemoved):!rt.length}),ze!==1/0&&C.push({time:ze/1e3,text:"",interactive:!1,completed:!0})}Zt.set(C)});let vn=te(!1);k?.subscribe(c=>{c&&ve(Fi)&&nt()});let $s=c=>{if(!S)return c;let C=ve(Zt),B=ve(Fo),ze=ve(jn)/B,rt=C.find(Vt=>Vt.interactive&&!Vt.completed&&Vt.time>ze);return typeof rt?.time=="number"?Math.min(c,rt.time-.05):c},rs=()=>{It.ui.episodes.panelOpened$.set(!1)},b0=()=>{ne.log("destroy store"),clearTimeout(Fr),clearTimeout(os),Ye.unsubscribe(),zt.unsubscribe(),R.destroy(),Te.destroy(),ue?.destroy(),ce?.destroy(),Ft.unsubscribe(),Ni?.disconnect(),Ni=null,Fe.destroy()},sp=te(!1),Nv=2,hc=null,$0=c=>{if(!ve(cr))return;let C=R.info.currentPlaybackRate$.getValue();c?C!==Nv&&(hc=C,so(Nv,!1),sp.set(!0)):(hc&&so(hc,!1),sp.set(!1),hc=null)},It={interfaceLanguage$:he,isCyrillicRelatedInterface$:me,initVideo:Ut,videoId:i,isClip:o,playerPhase:Ue,vsid:dt,state:{positionExact$:ki,positionWithScrubbing$:Mt,duration$:Fo,playbackState$:To,isPlaying$:cr,isLoaderVisible:vo,bufferedProgress$:dn,isLive$:qe,canChangePlaybackSpeed$:ct,isActiveLive$:En,isOldestAvailableLive$:ur,isRewindableLive$:Nr,isEnded$:H,muted$:Wt,volume$:Ot,trafficSavingEnabled$:hi,highQualityEnabled$:kn,autoQualityLimitingAvailable$:di,availableVideoStreams$:Pn,availableAudioStreams$:Yn,videoStream$:rn,audioStream$:Qi,currentQuality$:fr,isAutoQualityEnabled$:Ln,availableQualities$:pt,currentPlaybackRate$:ci,availablePlaybackRates$:an,currentSubtitle$:bi,availableTextTracks$:Io,availableSubtitlesList$:Eo,currentSubtitleCaptions$:Br,isAutoSubtitleCaptionVisible$:is,chromecastState$:Ii,chromecastDeviceName$:In,chromecastConnected$:Uo,currentFormat$:_i,throughputEstimation$:to,videoBitrate$:io,videoSize$:nn,errorLog$:At,crashed$:Ce,isAudioAvailable$:mi,isAudioDisabled:!!a,canDownload:ae.features.download&&!!l,availableSources$:Xn,hasMpegSources$:gr,isInteractive:S,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!ve(Zt).length,interactiveEpisodes$:Zt,isInteractiveTime$:k?jt(k):te(!1),isInteractiveExpectation$:vn,hasInteractiveBranches:L,playPrevChapterDisabledTooltip:P,looped$:pn,loadedMetadata$:Nt,isAutoQualityAvailable$:oo},ui:{t:j,controlsVisible:te(!1),touched:te(!1),controls:{prevButton:te(void 0),playButton:te(void 0),replayButton:te(void 0),nextButton:te(void 0),playPrevChapterButton:te(void 0),seekToInteractiveButton:te(void 0),interactiveGraphButton:te(void 0),liveButton:te(void 0),time:te(void 0),episodes:te(void 0),volume:te(void 0),subtitles:te(void 0),settings:te(void 0),context:te(void 0),chromecast:te(void 0),pip:te(void 0),fullscreen:te(void 0),vkLogo:te(void 0),interactiveTimeIndicator:te(void 0),timeline:te(void 0),autoplayNextToggle:te(void 0),additionalButtons:Q.length?Q.reduce(c=>[...c,te(void 0)],[]):[],disabledControls$:Le},modals:{hotKeyMap:{show:te(!1),data:te({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ct,isFullscreenOpenedByKeyboard:ut,rotateAlpha:Je,isAutoplay:te(!1),debugPanelVisible:te(!1),episodes:{panelOpened$:te(!1),openedByKeyboard$:te(!1)},contextMenu:{visible$:te(!1),btnRef$:te(void 0),openedByBtnKeyboard$:te(!1),openedByHotKey$:te(!1),lastActiveElem$:te(void 0),showContextMenuBtn$:te(!1),position$:te({top:0,left:0})},playerSize:ot,isMobile:ni,mobileNotReportControlHidden$:lc,icon3DVideoVisible:te(!1),scrubbingInProgress:Fi,volumeChangingInProgress:oi,is3DVideo:Kt,currentGridType$:mn,additionalButtonsDeprecated$:ao,additionalDesktopControlPanelRightButtons$:lo,additionalSettingsMenuItems$:kt,additionalContextMenuItems$:sc,interactiveHideMobileControls:te(!1),overlayContainer$:te(void 0),startedByKeyboard$:te(!1),autoplayNextEnabled$:te(!1),timerNextVideoRunning$:te(!0),settingsMenu:{visible$:te(!1),ref$:te(void 0),openedByBtnKeyboard$:te(!1)},settingsSubMenu:{visible$:te(!1),ref$:te(void 0),name$:te(void 0)},aboutToGoNextVideo:te(void 0),userActionsDisabled:te(!1),hiddenControls:{volume:te(!1),vkLogo:te(!1),pip:te(!1),chromecast:te(!1),settings:te(!1)},isControlsAvailable:yr,controlBlocks:{topLeft:te(void 0),topRight:te(void 0),middle:te(void 0),bottom:te(void 0),bottomLeft:te(void 0),bottomRight:te(void 0)},videoTitleInfo:te(void 0),doubleForwardOn$:sp},ads:{position:te(0),duration:te(0),playbackState:te("inactive"),canSkip:te(!1),secondsToWatchBeforeSkip:te(0),postrollPassed:te(!1)},webApi:{pictureInPictureApi:ee,annotationsApi:ye,slotsApi:De},actions:{internal:{preload:xt,firstStart:c=>kl(c,!1),play:()=>Tl(!1),pause:()=>vc(!1),togglePlay:ui,toggleMuted:Wo,openSettingsMenu:cn,closeSettingsMenu:Ko,openSettingsSubMenu:Bt,closeSettingsSubMenu:gt,setVolume:c=>un(c,!1),setMuted:c=>Vn(c,!1),startVolumeChanging:Ai,stopVolumeChanging:bo,setVideoStream:An,setAudioStream:c=>pr(c,!1),setQuality:(c,C)=>Di(c,C,!1),setTrafficSavingEnabled:(c,C)=>Hi(c,C,!1),setHighQualityEnabled:(c,C)=>$i(c,C,!1),setPlaybackRate:so,incrementPlaybackRate:Nn,decrementPlaybackRate:ho,setSubtitle:c=>Zi(c,!1),toggleSubtitle:()=>er(!1),togglePictureInPicture:rp,startScrubbing:Po,progressScrubbing:or,completeScrubbing:ge,toggleChromecast:mc,switchToActiveLive:Zu,switchFromAdsToVideo:Xu,switchFromVideoToAds:cc,skipAd:dc,setLiveWaitingStart:Ju,setLiveWaitingRecover:uc,setLiveWaitingRecord:ep,getDebugTextData:pc,getTraceTextData:tp,getDebugPanelData:fc,getVideoElement:Ma,seekTime:(c,C,B)=>_o(c,C,B),clearDelayedBufferingCheckTimeout:Ho,seekEpisodeStartTime:fn,seekToPercent:wr,getNextEpisode:El,seekToNextEpisode:ip,getPrevEpisode:Pl,seekToPrevEpisode:op,startLogging:qi,stopLogging:Sn,startCameraManualRotation:tn,stopCameraManualRotation:Cn,moveCameraFocusPX:Ti,holdCamera:on,releaseCamera:Co,getVideoEpisodes:Il,getPreviewThumbsData:np,downloadVideo:Yt,addLanguage:gf,setLanguage:Ze,nextMovie:$t,videoRotate:Ge,correctSeekTimeToInteractive:$s,replayInteractive:V,setLooped:hr,reportProblem:Dr,setAutoplayNextEnabled:_r,setTimerNextVideoRunning:br,prevVideoClick:qo,nextVideoClick:Jn,nextVideoAnnouncementShow:Hr,nextVideoAnnouncementClick:go,nextVideoAnnouncementAuto:Rn,nextVideoAnnouncementCancel:et,changeDoubleForwardOn:$0},external:{firstStart:c=>kl(c,!0),play:()=>Tl(!0),pause:()=>vc(!0),stop:()=>gc(!0),seekTime:c=>Qe(c),seekEpisodeStartTime:c=>yi(c),setPlaybackRate:c=>Qo(c),setAutoQualityLimits:c=>Dt(c),setMuted:c=>Vn(c,!0),toggleSubtitle:()=>er(!0),changeSubtitle:On,setVolume:c=>un(c,!0),returnFocusToEpisodes:rs,updateAdditionalSettingsItem:zr,addAdditionalSettingsItem:Wr,removeAdditionalSettingsItem:bs,updateAdditionalContextItem:ju,addAdditionalContextItem:ac,removeAdditionalContextItem:Yu,updateAdditionalButton:wt,addAdditionalButton:Dn,removeAdditionalButton:Ur,setLiveLowLatency:ns,hideControls:()=>xr(!1),showControls:()=>xr(!0),setQuality:c=>Di(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Hi(c,"to-video",!0),setHighQualityEnabled:c=>$i(c,"to-video",!0)}},callbacks:d,setUiCallbacks:c=>{Ae={...c}},getAdmanWrapper:()=>Te,getLogger:()=>Pe,getPlayer:()=>R,destroy:b0};return It};function yn(t,e,i,o){let r=e[i]?.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:a,left:l,bottom:d,right:f}=ms(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?a:0,bottom:s?d:0,isDisplayed:s}}var Ky=["disabledControls$","additionalButtons"],qy=["interactiveTimeIndicator"],ml=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!Ky.includes(r)){let a=o||qy.includes(r);s.set(yn(t,i,r,a))}}};var Su=async(t,e,i)=>{await uo(),e&&i&&(i.focus(),t.set(!1))};var Qy=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function mm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}function vm(t,e){F(e,!0);let[i,o]=Ve(),r=()=>$(d,"$contextMenuVisible$",i),s=m(e,"disabled",3,!1),a=m(e,"ariaLabel",3,""),l=xe(),d=l.ui.contextMenu.visible$,f=l.ui.contextMenu.openedByBtnKeyboard$,p=l.ui.contextMenu.showContextMenuBtn$,g=l.ui.contextMenu.position$,u=l.ui.contextMenu.btnRef$,y=G(void 0);Be(()=>{n(y)&&ht(()=>{u.set(n(y))})});let x=k=>{let V=As(k),A=u1(n(y));g.set(A),f.set(V),d.set(!r())},w=()=>{p.set(!0)},S=()=>{p.set(!1)},T=v(()=>r()?"opened":"");Pt(t,{get className(){return n(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return a()},click:x,focus:w,blur:S,get ariaExpanded(){return r()},get ref(){return n(y)},set ref(k){N(y,k,!0)},children:(k,V)=>{mm(k,{})},$$slots:{default:!0}}),U(),o()}var Gy=t=>{t.stopPropagation()},jy=E("<div><!> <div></div> <div></div></div>"),Yy={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;}
223
+ }`};function Yf(t,e){F(e,!0),W(t,vy);let i=m(e,"isMobile",3,!1),o=v(()=>e.iconState===jf.ChromecastState.CONNECTED),r=v(()=>e.iconState===jf.ChromecastState.CONNECTING);var s=Be(),a=ce(s);{var l=f=>{var p=fy(),g=_(p),u=_(g),y=_(u);xe(),h(u);var x=E(u);xe(),h(g);var w=E(g),S=_(w),T=_(S);h(S),xe(),h(w),h(p),N(()=>{Re(y,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Re(x,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Re(T,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)")}),b(f,p)},d=f=>{var p=my();let g;var u=_(p),y=E(_(u),5);let x;h(u),h(p),N((w,S)=>{g=J(p,0,"svelte-8z1bf5",null,g,w),x=J(y,0,"svelte-8z1bf5",null,x,S)},[()=>({connecting:n(r)}),()=>({hidden:!n(o)})]),b(f,p)};M(a,f=>{i()?f(l):f(d,!1)})}b(t,s),U()}var m1=require("@vkontakte/videoplayer-shared");function Sd(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),r=m(e,"click",3,m1.noop),a=Se().ui.t,l=v(()=>e.state===f1.ChromecastState.CONNECTED?a("tooltip_chromecast_on"):a("tooltip_chromecast_off"));Mt(t,{get ariaLabel(){return n(l)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(d){i(d)},children:(d,f)=>{Yf(d,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}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 Zf(t,e){W(t,hy);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),r=m(e,"translateXPx",3,0),s=m(e,"translateYPx",3,0),a=m(e,"leftOffset",3,0),l=m(e,"rightOffset",3,0),d=Q(void 0),f=Q(void 0);function p(S){if(!n(f))return 0;let{width:T}=n(f).getBoundingClientRect(),k=T/2;return S<k?k+a():S>e.containerWidth-k?e.containerWidth-k-l():S}let g=v(()=>p(r()));var u=gy(),y=_(u);let x;var w=_(y);me(w,()=>e.children??ne),h(y),it(y,S=>V(f,S),()=>n(f)),h(u),it(u,S=>V(d,S),()=>n(d)),N(S=>{nt(u,`transform: translate(${n(g)}px, ${s()}px);`),x=J(y,1,"tooltip svelte-5ygsa2",null,x,S),nt(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,u)}var uu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var v1=t=>!!(Math.round(Math.abs(t)/90)%2),g1=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 Xf(t,e){F(e,!0),W(t,yy);let[i,o]=Ve(),r=()=>$(x,"$rotateAlpha",i),s=()=>$(w,"$playerSize",i),a={MOBILE:150,DESKTOP:278},l=m(e,"time",3,""),d=m(e,"isMobile",3,!1),f=m(e,"videoEpisodes",19,()=>[]),p=m(e,"progress",3,0),g=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),y=Se(),x=y.ui.rotateAlpha,w=y.ui.playerSize,S=Q(0),T=Q(0),k=Q(""),L=Q(0),A=Q(0),I=Q(0),O=Q(0),G=v(()=>uu(p(),g(),f())),D=v(()=>v1(r())),ee=v(()=>g1(r())),X=v(ue),ae=v(()=>(n(ee)?1:-1)*(n(S)/2-n(T)/2)),j=v(()=>n(ae)*-1);De(()=>{(te=>{V(S,te.width,!0),V(T,te.height,!0)})(he())}),De(()=>{(te=>{V(k,te.imgSrc,!0),V(L,te.imgWidth,!0),V(A,te.imgHeight,!0),V(I,te.imgOffsetX,!0),V(O,te.imgOffsetY,!0)})(_e(p()))});function ue(){let te=d()?a.MOBILE:a.DESKTOP,{isVertical:be}=Y(),Oe=30;return n(G)?.text&&(Oe+=16),(be||n(D))&&(Oe+=18,Oe+=50),Math.min(Math.max(s().height-Oe,0),te)}function Y(){let te=e.previewThumbsData.frameWidth,be=e.previewThumbsData.frameHeight,Oe=be>te;return{width:te,height:be,isHorizontal:!Oe,isVertical:Oe}}function he(){let{height:te,isHorizontal:be,isVertical:Oe,width:le}=Y();return be&&(te=te/le*n(X),le=n(X)),Oe&&(le=le/te*n(X),te=n(X)),{width:le,height:te}}function _e(te){let be;e.previewThumbsData.isUV?be=Math.floor(g()*te/e.previewThumbsData.frequency):be=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*te)));let Oe=Math.floor(be/e.previewThumbsData.countPerImage),le=Math.floor(be%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),lt=be%e.previewThumbsData.countPerRow,K=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(K=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&K++);let Me=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Oe===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 Ue=n(S)*Me,Ze=n(T)*K,ut=-lt*n(S),xt=-le*n(T);return{imgSrc:e.previewThumbsData.links[Oe],imgWidth:Ue,imgHeight:Ze,imgOffsetX:ut,imgOffsetY:xt}}var Ie=$y();let Fe;var se=_(Ie);{var Ne=te=>{var be=_y();N(()=>nt(be,`width: ${n(S)}px; height: ${n(T)}px; background-image: url(${n(k)}); background-size: ${n(L)}px ${n(A)}px; background-position: ${n(I)}px ${n(O)}px;
224
+ transform: rotate(${r()}deg) ${n(D)?`translate(${n(ae)}px, ${n(j)}px)`:""};
225
+ `)),b(te,be)};M(se,te=>{n(k)&&te(Ne)})}var oe=E(se,2),R=_(oe);{var Ee=te=>{var be=Be(),Oe=ce(be);{var le=K=>{var Me=Yr();N(Ue=>fe(Me,Ue),[()=>z("tooltip_episode_unfinished")]),b(K,Me)},lt=K=>{var Me=Yr();N(()=>fe(Me,n(G).text||"")),b(K,Me)};M(Oe,K=>{u()&&n(G).completed===!1?K(le):K(lt,!1)})}b(te,be)};M(R,te=>{n(G)&&te(Ee)})}h(oe);var Ce=E(oe,2);{var de=te=>{var be=by(),Oe=_(be,!0);h(be),N(()=>fe(Oe,l())),b(te,be)};M(Ce,te=>{u()||te(de)})}h(Ie),N(te=>{Fe=J(Ie,1,"timeline-preview svelte-1wqg760",null,Fe,te),nt(Ie,`width: ${n(D)?n(T):n(S)}px;`)},[()=>({mobile:d()})]),b(t,Ie),U(),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 Jf(t,e){F(e,!0),W(t,Sy);let[i,o]=Ve(),r=()=>$(ae,"$interactiveEpisodes$",i),s=()=>$(I,"$duration$",i),a=()=>$(A,"$position$",i),l=()=>$(Y,"$isInteractiveExpectation$",i),d=()=>$(ue,"$isInteractiveTime$",i),f=()=>$(O,"$isLive$",i),p=()=>$(D,"$isMobile",i),g=()=>$(G,"$isActiveLive$",i),u=()=>$(L,"$bufferedProgress$",i),y=()=>$(Ie,"$disabledControls$",i),x=m(e,"showTimeline",3,!1),w=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=Se(),k=It(),L=T.state.bufferedProgress$,A=T.state.positionWithScrubbing$,I=T.state.duration$,O=T.state.isLive$,G=T.state.isActiveLive$,D=T.ui.isMobile,ee=k.features.episodes&&w()?T.actions.internal.getVideoEpisodes():void 0,X=T.actions.internal.getPreviewThumbsData(),ae=T.state.interactiveEpisodes$,j=T.state.isInteractive,ue=T.state.isInteractiveTime$,Y=T.state.isInteractiveExpectation$,he=T.actions.internal.correctSeekTimeToInteractive,_e=T.callbacks?.onDisabledTimelineClick,Ie=T.ui.controls.disabledControls$,Fe=T.callbacks?.uiInfo?.onTimelineMouseEnter,se=T.callbacks?.uiInfo?.onTimelineMouseLeave,Ne=T.ui.t,oe=k.features.interactiveResponsiveUi,R=v(()=>j?r():ee),Ee=v(()=>en(s())),Ce=v(()=>en(a())),de=v(()=>a()/s()),te=v(()=>l()||d()),be=Q(!1),Oe=Q(""),le=Q(0),lt=Q(0),K=Q(0),Me=v(()=>({containerWidth:n(lt),translateXPx:n(le),translateYPx:j&&X?-36:-16,active:n(be)&&x()&&!n(te)&&!oe,pointer:!k.features.timelinePreview||!X||f()})),Ue=Ne("aria_timeline"),Ze=v(()=>Ne("aria_timeline_value",{position:n(Ce),duration:n(Ee)}));function ut(Z){return!he||!j?Z:he(Z*s())/s()}function xt(Z){T.actions.internal.startScrubbing(ut(Z))}function gt(Z){d()||T.actions.internal.progressScrubbing(ut(Z))}function _t(Z){T.actions.internal.completeScrubbing(ut(Z)),V(be,!1)}function Qe(Z,Pe,Ye){Xe(Z,Pe,Ye),V(be,!0)}function Dt(Z,Pe,Ye){Xe(Z,Pe,Ye),V(be,!0)}function zt(){V(be,!1)}function Xe(Z,Pe,Ye){V(K,ut(Z),!0),V(le,Pe,!0),Ye&&V(lt,Ye,!0),V(Oe,Bt(Z),!0)}function Bt(Z){let Pe=en((f()?1-Z:Z)*s());return f()?`-${Pe}`:Pe}var $e=wy(),Ht=ce($e);Zf(Ht,ps(()=>n(Me),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Z,Pe)=>{var Ye=Be(),Je=ce(Ye);{var He=ot=>{Xf(ot,{get time(){return n(Oe)},get isMobile(){return p()},get videoEpisodes(){return n(R)},get previewThumbsData(){return X},get progress(){return n(K)},get duration(){return s()},get isInteractive(){return j}})},Le=ot=>{var rt=xy(),tt=_(rt,!0);h(rt),N(()=>fe(tt,n(Oe))),b(ot,rt)};M(Je,ot=>{k.features.timelinePreview&&X&&!f()?ot(He):ot(Le,!1)})}b(Z,Ye)},$$slots:{default:!0}}));var ye=E(Ht,2);let pe=v(()=>y().has("TIMELINE"));ha(ye,{className:"timeline-slider",get isActiveLive(){return g()},get isMobile(){return p()},get ariaLabel(){return Ue},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return a()},get ariaValueText(){return n(Ze)},get loadedProgress(){return u()},get filledProgress(){return n(de)},get handleProgress(){return n(de)},get videoEpisodes(){return n(R)},onPointerDown:xt,onHandleMove:gt,onPointerMove:Dt,onPointerUp:_t,onPointerEnter:Qe,onPointerLeave:zt,get onMouseEnter(){return Fe},get onMouseLeave(){return se},get onDisabledClick(){return _e},get isInteractive(){return j},get disabled(){return n(pe)},get hideHandel(){return d()},testId:"progress_bar",onContextMenu:_t,get ref(){return S()},set ref(Z){S(Z)}}),b(t,$e),U(),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 Cd(t,e){F(e,!0),W(t,Cy);let[i,o]=Ve(),r=()=>$(d,"$isMobile",i),s=m(e,"position",3,0),a=m(e,"duration",3,0),l=Se(),d=l.ui.isMobile,f=l.ui.t,p=v(()=>en(a())),g=v(()=>en(s())),u=v(()=>s()/a()),y=v(()=>f("aria_timeline_value",{position:n(g),duration:n(p)})),x=v(()=>Math.round(n(u)*100));ha(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return n(x)},get ariaValueText(){return n(y)},get filledProgress(){return n(u)},hideHandel:!0,get squareBorders(){return r()}}),U(),o()}var Ty=P("<div><!></div>"),ky=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 _a(t,e){F(e,!0),W(t,Iy);let[i,o]=Ve(),r=()=>$(S,"$isLive$",i),s=()=>$(L,"$isMobile",i),a=()=>$(A,"$disabled",i),l=()=>$(k,"$adPosition",i),d=()=>$(T,"$adDuration",i),f=m(e,"isAds",3,!1),p=m(e,"isHidden",3,!1),g=m(e,"timelineNotAvailable",3,!1),u=m(e,"needPadding",3,!0),y=m(e,"ref",15,void 0),x=Se(),w=It(),S=x.state.isLive$,T=x.ads.duration,k=x.ads.position,L=x.ui.isMobile,A=ie(!1),I=v(()=>!g()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||f()));var O=Be(),G=ce(O);{var D=X=>{var ae=Ty();let j;var ue=_(ae);{var Y=_e=>{Cd(_e,{get position(){return l()},get duration(){return d()}})},he=_e=>{Jf(_e,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(I)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(Ie){y(Ie)}})};M(ue,_e=>{f()?_e(Y):_e(he,!1)})}h(ae),us(ae,()=>nl(p()&&w.features.usePerformanceFix,A,w.disableInvisibleComponentsTimeout)),N(_e=>j=J(ae,1,"timeline svelte-41cp6d",null,j,_e),[()=>({withoutPadding:!u(),mobile:s(),"out-of-flow":a()})]),b(X,ae)},ee=X=>{var ae=ky();let j;N(ue=>j=J(ae,1,"timeline-stub svelte-41cp6d",null,j,ue),[()=>({mobile:s()})]),b(X,ae)};M(G,X=>{n(I)?X(D):X(ee,!1)})}b(t,O),U(),o()}var h1=require("@vkontakte/videoplayer-shared");var Ey=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 em(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(3),h(o),b(t,o)}var Py=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 tm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Py();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var Ay=P('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),My=P('<span class="text svelte-1yhs2ga"> </span>'),Ly=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 Td(t,e){F(e,!0),W(t,Ry);let[i,o]=Ve(),r=()=>$(x,"$currentGridType$",i),s=()=>$(w,"$openedByKeyboard$",i),a=()=>$(S,"$panelOpened$",i),l=()=>$(T,"$isMobile",i),d=m(e,"position",3,0),f=m(e,"duration",3,0),p=m(e,"timeCodes",19,()=>[]),g=Se(),u=g.callbacks?.onEpisodeChanged??h1.noop,y=!!g.callbacks?.onEpisodeClicked,x=g.ui.currentGridType$,w=g.ui.episodes.openedByKeyboard$,S=g.ui.episodes.panelOpened$,T=g.ui.isMobile,k=g.ui.t,L=Q(void 0),A=Y=>{if(!!g.callbacks?.onEpisodeClicked){let _e=Ps(Y);w.set(_e),S.set(!0),g.callbacks?.onEpisodeClicked?.(_e)}},I=Q(null),O=v(()=>d()/f());De(()=>{let Y=uu(n(O),f(),p());Y?n(I)?.time!==Y.time&&(u(Y),V(I,Y,!0)):V(I,null)});let G=v(()=>n(I)?.text||""),D=v(()=>Ei(r(),"xl")?"FULL":Ei(r(),"m")&&c1(r(),"xl")?"COUNT":"SHORT"),ee=v(()=>`${k("tooltip_episodes")}: ${n(G)}`),X=async(Y,he,_e)=>{await ao(),Y?.getAttribute("aria-expanded")==="false"&&he&&!_e&&$t(()=>{w.set(!1),Y.focus()})};De(()=>{X(n(L),s(),a())});var ae=Be(),j=ce(ae);{var ue=Y=>{let he=v(()=>l()?"px-0":""),_e=v(()=>!y);Mt(Y,{get className(){return`w-max btn-full-opacity btn-jc-l ${n(he)??""}`},testId:"btn-episodes",click:A,get disabled(){return n(_e)},get ariaExpanded(){return a()},get ariaLabel(){return n(ee)},get ref(){return n(L)},set ref(Ie){V(L,Ie,!0)},children:(Ie,Fe)=>{var se=Be(),Ne=ce(se);{var oe=Ee=>{var Ce=Ay(),de=ce(Ce),te=_(de,!0);h(de);var be=E(de,2),Oe=_(be);tm(Oe,{}),h(be),N(()=>fe(te,n(G))),b(Ee,Ce)},R=Ee=>{var Ce=Vy(),de=ce(Ce);em(de,{});var te=E(de,2);{var be=le=>{var lt=My(),K=_(lt,!0);h(lt),N(()=>fe(K,n(G))),b(le,lt)},Oe=(le,lt)=>{{var K=Me=>{var Ue=Ly(),Ze=_(Ue,!0);h(Ue),N(()=>fe(Ze,p().length)),b(Me,Ue)};M(le,Me=>{n(D)==="COUNT"&&Me(K)},lt)}};M(te,le=>{n(D)==="FULL"?le(be):le(Oe,!1)})}b(Ee,Ce)};M(Ne,Ee=>{l()?Ee(oe):Ee(R,!1)})}b(Ie,se)},$$slots:{default:!0}})};M(j,Y=>{n(I)&&Y(ue)})}b(t,ae),U(),o()}var gm=require("@vkontakte/videoplayer-shared");var Zt=require("@vkontakte/videoplayer-core"),ct=require("@vkontakte/videoplayer-shared"),ts=require("@vkontakte/videoplayer-statistics");var We=require("@vkontakte/videoplayer-shared"),Pi=require("@vkontakte/videoplayer-shared");var _1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var Ny="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",pu=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 Pi.Subject,loadStarted$:new Pi.Subject,loadEnded$:new Pi.Subject,loadError$:new Pi.Subject,ready$:new Pi.Subject,slotRequested$:new Pi.Subject,started$:new Pi.Subject,timeRemained$:new Pi.Subject,paused$:new Pi.Subject,resumed$:new Pi.Subject,ended$:new Pi.Subject,empty$:new Pi.Subject,skipped$:new Pi.Subject,clicked$:new Pi.Subject,closed$:new Pi.Subject,error$:new Pi.Subject};this.loadAdman=e=>(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,We.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,We.now)()]}),o())};(0,Pi.addScript)(Ny,e,this.loadTimeout).then(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,We.now)()]}),window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,We.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(a=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(a)],numbers:[(0,We.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,We.now)()]}),o())},a=()=>{l=!0,o()},l=!1,d=window.setTimeout(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,We.now)()]}),a()},this.loadTimeout);e.addEventListener("abort",a),e.aborted&&(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,We.now)()]}),a()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(l)],numbers:[(0,We.now)()]}),!l&&(window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,We.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},a).finally(()=>{clearTimeout(r),clearTimeout(d),e.removeEventListener("abort",a)})});this.onAdsReady=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,We.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,We.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=>{(this.adsState?.playbackState?ve(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=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",this.currentAdSection??""],numbers:[(0,We.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=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",this.currentAdSection??""],numbers:[(0,We.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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,We.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",this.currentAdSection??""],numbers:[(0,We.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=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.log({message:"ad clicked"}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,We.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog(),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)};this.log=e.createComponentLog("AdmanWrapper"),We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,We.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){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,We.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:r,isAutoplay:s,adsContainer:a,adsVideoElement:l,slotId:d,params:f={},duration:p,previewParam:g}=e,u,y=this.playerState&&ve(this.playerState.vsid);y&&(this.isVsidOriginal?u=y:u=parseInt(y,36));let{isEmbed:x,immediateOrigin:w}=(0,We.detectEmbed)(),S=(x?w:window.location.href)??window.location.href,T={...f,dl:encodeURIComponent(S),autoplay:s?1:0,player_width:i,player_height:o,preview:g,...u?{request_id:u}:{},duration:p,...this.usePuid?{puid10:_1(i,o),puid11:r?0:1}:{}};g||delete T.preview;let k={slot:d,wrapper:a,videoEl:l,videoQuality:o,params:T,browser:{mobile:!1}};try{let L=new window.AdmanHTML;L.setDebug(!1),L.onReady(this.onAdsReady),L.onStarted(this.onAdStarted),L.onPlayed(this.onAdPlayed),L.onPaused(this.onAdPaused),L.adMidrollPoint(this.onAdMidrollPoint),L.onClosed(this.onAdClosed),L.onSkipped(this.onAdSkipped),L.onClicked(this.onAdClicked),L.onTimeRemained(this.onAdTimeRemained),L.onCompleted(this.onAdCompleted),L.onError(this.onAdError),L.init(k),this.adman=L,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(L){We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(L)],numbers:[(0,We.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",this.currentAdSection??"","force: "+e],numbers:[(0,We.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 o="Switch to video: Adman state was not updated correctly";this.log({message:o}),this.events.error$.next(o)}this.actions.switchFromAdsToVideo?.(!i)}}setPostrollPassed(e){this.adsState?.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adsState){this.log({message:"toggle play"});let e=ve(this.adsState.playbackState);e==="playing"?this.pause():e==="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{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{this.onAdError("could not set ad fullscreen")}}startPreroll(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,We.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{this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{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(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,We.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.onReady(void 0),this.adman?.onStarted(void 0),this.adman?.onPlayed(void 0),this.adman?.onPaused(void 0),this.adman?.adMidrollPoint(void 0),this.adman?.onClosed(void 0),this.adman?.onSkipped(void 0),this.adman?.onClicked(void 0),this.adman?.onTimeRemained(void 0),this.adman?.onCompleted(void 0),this.adman?.onError(void 0),this.adman?.destroy(),this.videoElement&&(0,Pi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var b1=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 im=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let s of r){let a={startTime:0,endTime:0,texts:[],lang:i},l=s.split(this.oneLineRegExp);for(let d of l)if(!a.startTime&&!a.endTime){let f=new fu,{startTime:p,endTime:g}=f.parse(d);a.startTime=p,a.endTime=g}else if(d.trim()!==""){let f=new om,{texts:p}=f.parse(d);a.texts=[...a.texts,...p]}(a.startTime||a.endTime)&&a.texts.length>0&&o.push(a)}return o}},fu=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",r="0"){let s=Number(e)*60*60,a=Number(i)*60,l=Number(o),d=+`0.${r}`;return s+a+l+d}},om=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](a){let l=0,d=[];for(;l<a.length;){let f=["<",">"].reduce((p,g)=>{let u=a.indexOf(g,l);return p===-1||p>u?u:p},-1);if(f===-1){d.push(a.substring(l));break}d.push(a.substring(l,f)),l=f+1}return d}}),s=new fu;for(let a of r)s.isTime(a)?i.texts.push({type:"timestamp",value:s.parseTime(a)}):i.texts.push({type:"text",value:a});return i}},$1=im;var vu=require("@vkontakte/videoplayer-shared"),ba,pr,nm=0,rm=!1,y1="",x1=(t,e=0,i=0)=>t<e&&t<i,mu=(t,e=0,i=0)=>t>=e&&t<=i,By=(t,e=0,i=0)=>t>e&&t>i,w1=(t,e,i,o=!1)=>{let r=i.find(({id:l})=>l===e.value)?.subtitles;if(o)return r?.find(({startTime:d,endTime:f})=>mu(t,d,f));let s=t>=nm,a=t<nm;if(nm=t,a&&(rm=!1),(0,vu.isNonNullable)(ba)&&mu(t,ba.startTime,ba.endTime)&&y1===e.value)return ba;if(!(0,vu.isNonNullable)(pr)&&r?.length&&!rm){pr=r.find(({startTime:d,endTime:f})=>mu(t,d,f)||s&&x1(t,d,f)),ba=void 0,!(0,vu.isNonNullable)(pr)&&r[r.length-1].endTime<t&&(rm=!0);return}else{if(mu(t,pr?.startTime,pr?.endTime))return ba=pr,pr=void 0,y1=e.value,ba;(s&&By(t,pr?.startTime,pr?.endTime)||a&&x1(t,pr?.startTime,pr?.endTime))&&(pr=void 0)}};var gu={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"},Oy={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"},kd=t=>gu[t]??gu[Oy[t]]??void 0;var S1=require("@vkontakte/videoplayer-shared"),yB=require("@vkontakte/videoplayer-statistics"),hu=class{constructor(e,i,o,r=new S1.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){this.oneStat?.destroy(),this.thinOneStat?.destroy(),this.mediascopePixel?.destroy(),this.statSubscription.unsubscribe()}};var Id=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Id||{});var es=t=>t??0,ms=(t,e)=>{let i=t?.getBoundingClientRect?.(),o=e?.getBoundingClientRect?.();return{top:Math.round(es(i?.top)-es(o?.top)),left:Math.round(es(i?.left)-es(o?.left)),bottom:Math.round(es(i?.bottom)-es(o?.top)),right:Math.round(es(i?.right)-es(o?.left))}},pl=t=>{let e=t?.getBoundingClientRect?.();return{width:es(e?.width),height:es(e?.height)}};var _u="off";var C1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:a,canDownload:l,callbacks:d,webApi:f,videoEpisodes:p,previewThumbsData:g,uiConfig:u,coreConfig:y,player:x,disabledControls:w,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:k,replayInteractive:L,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:O,additionalButtons:G,additionalSettingsMenuItems:D,additionalContextMenuItems:ee,playPrevVideo:X,playNextVideo:ae,looped:j=!1,statistics:ue,saveRate:Y,internalsExposure:he,playerView:_e,playerId:Ie})=>{let Fe={...y,configName:[...y.configName??[],"ui"],isAudioDisabled:a,live:{...y.live??{},isLiveCatchUpMode:!!r}},se=u,Ne=ct.TracerFactory.createRootTracer(se.features.tracer),oe=Ne.createComponentTracer("Store"),R=x||new Zt.Player(Fe,Ne,{playerId:Ie});he?.expose({corePlayer:R});let Ee=new ct.Logger,Ce=new pu(Ee,{loadTimeout:se.ads.loadTimeout,initTimeout:se.ads.initTimeout,runtimeTimeout:se.ads.runtimeTimeout,useAdmanFromNPM:se.ads.useAdmanFromNPM,volumeMultiplier:se.ads.volumeMultiplier,isVsidOriginal:se.ads.isVsidOriginal,usePuid:se.ads.usePuid}),de=aa.getInstance(),te=f?.pictureInPictureApi,be=f?.annotationsApi,Oe=f?.slotsApi,le=Ee.createComponentLog("Store"),lt,K,Me={},Ue=new zc,Ze=new ct.Subscription,ut=ue&&ue.oneStat?Kt(ue.oneStat.vsid$):cr(void 0),xt=ie(ks()),gt=ie(!1),_t=te?.info.isActive$??new ct.ValueSubject(!1),Qe=ie(0),Dt=ie(!1),zt=ie(!1),Xe=ie([]),Bt=(0,ct.merge)(R.events.fatalError$,R.events.managedError$).subscribe(c=>Xe.update(C=>[...C,c])),$e=cr(!1,c=>{let C=R.events.fatalError$.subscribe(()=>c(!0));return()=>C.unsubscribe()}),Ht=async c=>{let C=Object.values(ct.InterfaceLanguage).includes(c);if(se.downloadVKLanguages&&(C&&se.updateBuiltinLanguages||!df(c))){let re;try{re=await(0,ct.loadVKLangPack)(c,rh,sh)}catch(ze){ue?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),de?.report(ze,{errorType:"VKLangPack",fatal:!1})}re&&(lf({language:c,pack:re,fallback:se.defaultLanguage}),ye.set(c))}df(c)&&ye.set(c)},ye=ie(t),pe=ie(e);Ht(t);let Z=(c,C)=>{let B=ve(ye);return cf(B,c,C,se.defaultLanguage)},Pe=ie("thumb");Pe.subscribe(c=>{c==="ads"&&R.info.playbackState$.getValue()&&He()});let Ye=(()=>{let c=ti([$e,Pe],([C,B])=>C?"crashed":B);return{...c,is:C=>ve(c)===C}})(),Je=ie(),He=()=>{Je.set({muted:R.info.muted$.getValue()})},Le=(()=>{let c=ie(new Set(w));return{...c,add:C=>{c.update(B=>new Set([...B].concat(C)))},remove:C=>{c.update(B=>{let re=[...B];return new Set(Array.isArray(C)?re.filter(ze=>!C.includes(ze)):re.filter(ze=>ze!==C))})},includes:C=>{let B=ve(c);return Array.isArray(C)?C.every(re=>B.has(re)):B.has(C)}}})(),ot=ie({width:0,height:0});oe.log("create store"),le({message:"create store"});let rt=c=>{let C=c.container,B=()=>{$o=new MutationObserver(ze=>{let{removedNodes:at}=ze[0];at.length&&C.append(R.experimental.element$.getValue())}),$o.observe(C,{childList:!0})},re=R.experimental.element$.getValue();if(re)C.append(re),B();else{let ze=R.experimental.element$.pipe((0,ct.filter)(at=>!!at),(0,ct.once)()).subscribe(at=>{C.append(at),B()});Ze.add(ze)}},tt=c=>{le({message:`init video, config: ${JSON.stringify(c)}`}),S?rt(c):(ct.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ct.now)()]}),R.initVideo(c)),oe.log("init video",{isInteractive:S}),c.subtitles&&R.setExternalTextTracks(c.subtitles),lt=c},Et=new ct.Subject,wi=c=>Et.next(c),zi=new ct.Subject,Mi=new ct.Subject,on=new ct.Subject,$o=null,nn={actionRewind$:zi,actionSeek$:Mi,inPiP$:_t,inFullscreen$:new ct.Observable(c=>xt.subscribe(C=>c.next(C))),actionSetSubtitle$:on,nextMovie$:Et},rn={actionSeek$:Mi,playerSize$:new ct.Observable(c=>ot.subscribe(C=>c.next(C)))};if(ue){let{oneStat:c,thinOneStat:C,mediascopePixel:B,statSubscription:re}=ue;c&&(S||re.add(c.attachTo(R)),re.add(c.attachToUi(nn)),re.add(c.attachToAds(Ce.events)),c.authorize(s).catch(ze=>{le({message:`onestat auth error ${String(ze)}`})}),B&&B.attachTo(R)),C&&(re.add(C.attachTo(R,Ce.events)),re.add(C.attachToUi(rn)),re.add(C.attachToAds(Ce.events)),C.authorize(s))}if(de){let c=new ct.Subscription,C=(B,re)=>c.add(B.subscribe(re));if(C(R.events.managedError$,B=>{de.logIError(B)}),C(R.events.fatalError$,B=>{de.logIError(B,!0)}),ue){let{oneStat:B}=ue;B&&C(B.experimental.error$,re=>{de.logIError(re)})}de.sentrySubscription.add(c)}let Oo=()=>{if(Zt.clientChecker.device.isIOS&&K)try{Wh(K)}catch(c){le({message:`exitIosSafariFullscreen failed: ${c}`})}};Ze.add(R.experimental.element$.subscribe(c=>{c&&(K=c,c.classList.add("player-media"),da(te)&&te.updateVideoElement(),S&&c.setAttribute("pip","false"),_e==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(R.events.ended$.subscribe(()=>{Oo(),d?.onEnded?.()})).add(R.events.looped$.subscribe(()=>{d?.onLooped?.()})).add(R.events.started$.subscribe(async()=>{da(te)&&await te?.revealPictureInPicture();let c=R.info.muted$.getValue();d?.onStarted?.(),Me.onStarted?.(c)})).add(R.events.willSeek$.subscribe(({from:c,to:C})=>{d?.onSeek?.(c,C)})).add(R.events.autoplaySoundProhibited$.subscribe(()=>{d?.onAutoplaySoundProhibited?.()})).add(R.info.position$.subscribe(c=>{let C=R.info.duration$.getValue();isFinite(C)&&C>0&&(d?.onTimeupdate?.(C,c),Ce.setPosition(c,C))})).add(R.events.fatalError$.subscribe(c=>{d?.onCrashed?.(c?`${c.id}: ${c.message}`:void 0)})).add(R.events.fetcherRecoverableError$.subscribe(c=>{d?.onRecoverableError?.(c?`${c.id}: ${c.message}`:void 0)})).add(R.events.loadedMetadata$.subscribe(()=>{Dt.set(!0)})).add(R.info.is3DVideo$.subscribe(c=>{zt.set(c)})).add(R.info.isEnded$.subscribe(c=>{S&&(c?(k?.getValue()&&Le.add(ed),Le.add("PLAY_BUTTON")):Le.remove("PLAY_BUTTON"))})).add(R.info.liveTime$.subscribe(c=>{d?.onLiveTime?.(c)})).add(R.info.isStalled$.subscribe(c=>{d?.onStalledChanged?.(c)})).add(R.info.isLiveEnded$.subscribe(c=>c&&d?.onLiveEnded?.())).add(Ce.events.loadStarted$.subscribe(()=>d?.adsInfo?.onLoadStarted?.())).add(Ce.events.loadEnded$.subscribe(()=>d?.adsInfo?.onLoadEnded?.())).add(Ce.events.loadError$.subscribe(()=>d?.adsInfo?.onLoadError?.())).add(Ce.events.init$.subscribe(()=>d?.adsInfo?.onInit?.())).add(Ce.events.ready$.subscribe(()=>d?.adsInfo?.onReady?.())).add(Ce.events.started$.subscribe(c=>d?.adsInfo?.onStarted?.(c))).add(Ce.events.timeRemained$.subscribe(c=>d?.adsInfo?.onTimeRemained?.(c))).add(Ce.events.ended$.subscribe(c=>d?.adsInfo?.onCompleted?.(c))).add(Ce.events.empty$.subscribe(()=>d?.adsInfo?.onEmpty?.())).add(Ce.events.clicked$.subscribe(c=>d?.adsInfo?.onClicked?.(c))).add(Ce.events.closed$.subscribe(c=>d?.adsInfo?.onClosed?.(c))).add(Ce.events.error$.subscribe(c=>d?.adsInfo?.onError?.(c))).add(Ce.events.paused$.subscribe(()=>d?.adsInfo?.onPaused?.())).add(Ce.events.resumed$.subscribe(()=>d?.adsInfo?.onResumed?.()));let Ft=new ct.Subscription,Zi=()=>{let{debugLog:c}=se,C,B="#9df7b7",re="#efd169";if(c&&c!==!0){let{colors:at}=c;C=c.tag,B=at?.[0]??B,re=at?.[1]??at?.[0]??re}let ze=C?`: ${C}`:"";Ft.add(R.events.log$.subscribe(at=>{console.debug(`%c sdk${ze} `,`background:${B};`,`sdk component: ${at.component}`,at.message)})).add(Ee.log$.subscribe(at=>{console.debug(`%c ui${ze} `,`background:${re};`,`ui component: ${at.component}.`,at.message)}))},Tn=()=>{Ft.unsubscribe()},sn=(c,C)=>{oe.log("start camera manual rotation",{mx:c,my:C}),R.startCameraManualRotation(c,C)},yo=(c=!1)=>{oe.log("stop camera manual rotation",{immediate:c}),R.stopCameraManualRotation(c)},Xi=(c,C,B)=>{oe.log("move camera focus px",{xpx:c,ypx:C,dt:B}),R.moveCameraFocusPX(c,C,B)},an=()=>{R.holdCamera()},xo=()=>{R.releaseCamera()},Si=cr(R.info.position$.getValue(),c=>{let C,B,re=()=>{let ze=R.info.playbackState$.getValue(),at=R.info.isLive$.getValue(),Nt=R.info.duration$.getValue(),Yt=R.info.position$.getValue();if(ze&&[Zt.PlaybackState.PLAYING,Zt.PlaybackState.PAUSED].includes(ze)){let Mo=at?Yt-Nt:R.getExactTime();Mo!==B&&c(Mo),B=Mo}C=requestAnimationFrame(re)};return re(),()=>cancelAnimationFrame(C)}),wo=Kt(R.info.playbackState$),kn=Kt(R.info.currentBuffer$),H=Kt(R.info.isEnded$),Ge=Kt(R.info.isLive$),pt=se.features.playbackRate?Kt(R.info.canChangePlaybackSpeed$):cr(!1),jt=Kt(R.info.liveBufferTime$),Lt=Kt(R.info.volume$),Gt=Kt(R.info.muted$),mi=Wc(R.info.predefinedQualityLimitType$.pipe((0,ct.map)(c=>c===Zt.PredefinedQualityLimits.TRAFFIC_SAVING)),R.info.predefinedQualityLimitType$.getValue()===Zt.PredefinedQualityLimits.TRAFFIC_SAVING),Do=Wc(R.info.predefinedQualityLimitType$.pipe((0,ct.map)(c=>c===Zt.PredefinedQualityLimits.HIGH_QUALITY)),R.info.predefinedQualityLimitType$.getValue()===Zt.PredefinedQualityLimits.HIGH_QUALITY),ni=Kt(R.info.autoQualityLimitingAvailable$),bt=Kt(R.info.availableQualities$),vi=Kt(R.info.availableQualitiesFps$),po=Kt(R.info.chromecastState$),In=Kt(R.info.chromecastDeviceName$),gi=Kt(R.info.currentFormat$),Li=Kt(R.info.throughputEstimation$),fo=Kt(R.info.videoBitrate$),ln=Kt(R.info.intrinsicVideoSize$),dn=Kt(R.info.duration$),di=Kt(R.info.isAudioAvailable$),Ci=null,So=R.info.isBuffering$,Co=cr(So.getValue(),c=>{let C=So.subscribe(B=>{B&&Ci===null?Ci=window.setTimeout(()=>{c(So.getValue()),Ci=null},se.loaderDelay):c(B)});return()=>{C.unsubscribe(),Ci&&clearTimeout(Ci)}}),Ho=()=>{Ci&&clearTimeout(Ci),Ci=null},Fo=ti([dn,Ge],([c,C])=>C?-c:c),Nr=ti([wo],([c])=>c===Zt.PlaybackState.PLAYING),En=Kt(R.info.atLiveEdge$),fr=Kt(R.info.atLiveDurationEdge$),jn=Kt(R.info.position$),mr=ti([jn,dn],([c,C])=>isFinite(c)&&isFinite(C)&&!!C),Uo=ti([po],([c])=>c===Zt.ChromecastState.CONNECTED),Yn=Kt(R.info.availableVideoStreams$),Vi=se.features.audioLanguages?Kt(R.info.availableAudioStreams$):cr([]),To=Kt(R.info.currentVideoStream$),Pn=Kt(R.info.currentAudioStream$),cn=c=>{c.language&&nf(c.language),R.setVideoStream(c)},vr=(c,C)=>{R.setAudioStream(c),hi(C)&&(c.language&&nf(c.language),se.features.userVideoPrefs&&i&&af(se.userSalt,String(i),{audioTrackId:c.id}))},An=c=>{let C;if(c.length===1&&(C=c.at(0)),C??=c.find(re=>"isDefault"in re&&re.isDefault),se.features.userVideoPrefs&&i){let re=jc(se.userSalt,String(i));re?.audioTrackId&&(C=c.find(at=>at.id===re.audioTrackId)??C)}let B=Ah();return B&&(C??=c.find(({language:re})=>B===re)),C??=c.at(0),C},Zn=!1;Ze.add(R.info.availableAudioStreams$.subscribe(c=>{if(!Zn&&c.length){let C=An(c);C&&(R.setAudioStream(C),Zn=!0)}}));let gr=!1;Ze.add(R.info.availableVideoStreams$.subscribe(c=>{if(!gr&&c.length){let C=An(c);C&&(R.setVideoStream(C),gr=!0)}}));let un=ie(void 0),Mn=Kt(R.info.isAutoQualityEnabled$,c=>c&&un.set(void 0)),hr=Kt(R.info.currentQuality$,()=>un.set(void 0)),_r=ti([un,hr],([c,C])=>c??C),Wi=ti(gi,c=>c!==Zt.VideoFormat.MPEG),ft=ti([bt,vi,Mn,_r,Wi],([c,C,B,re,ze])=>{let at=[];ze&&at.push({value:"auto",displayValue:Z("auto_quality_option"),selected:B});let Nt=c.filter(Yt=>!(0,ct.isInvariantQuality)(Yt));for(let Yt of Nt){let Mo=C[Yt];at.push({value:Yt,displayValue:`${Yt}${Mo?b1(Mo):""}`,selected:B?!1:Yt===re})}return at}),ri=Kt(R.info.currentPlaybackRate$),zo=ti([ri,En,fr],([c,C,B])=>{let re=B||S?1:se.controls.playbackRateMin,ze=C?1:se.controls.playbackRateMax,at=se.controls.playbackRateStep,Nt=[];for(let Yt=re;Yt<=ze;Yt+=at)Nt.push({value:Yt,displayValue:Yt===1?Z("playback_rate_1"):Z("playback_rate",{multiplier:Yt.toString(10)}),selected:c===Yt});return Nt}),ci={displayValue:Z("subtitles_off"),value:_u,language:""},Ti=ie({...ci}),ko=se.features.subtitles?Kt(R.info.availableTextTracks$):cr([]),Io=yh(),Ji=ti([ko,Ti],([c,C],B)=>{let re=[],ze=c.find(({id:at})=>at===C.value);if(ze?.url){let[,at]=Io.find(ze.url)??[];if(at){B(at);return}Ue.download(ze.url).then(Nt=>{if(!Nt||Ue.isDestroyed())return;let Yt=new $1,Mo=ze.language;if(Mo){let Ju=!!ze.isAuto,v0=Yt.parse(Nt,Mo);re.push({lang:Mo,subtitles:v0,isAuto:Ju,id:ze.id})}Io.add(ze.url,re),ve(Ti).value===C.value&&B(re)}).catch(Nt=>{ue?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),de?.report(Nt,{errorType:"Subtitles download",fatal:!1})})}B(re)}),Ln=ti([ri,Nr,Ti],([c,C,B],re)=>{let Nt;if(R.info.isLive$.getValue()&&C&&B.value!==ci.value){let Mo=()=>{let Ju=1e3/(3*c);Nt=setTimeout(Mo,Ju),re(Date.now())};return Mo(),()=>clearTimeout(Nt)}}),Wo=ti([ko,Ti],([c,C])=>{if(!c.length)return[];let B=[];for(let{language:re,isAuto:ze,id:at}of c){let Nt=re&&kd(re);re&&Nt&&B.push({displayValue:ze?Z("subtitles_auto",{language:Nt}):Nt,value:at,selected:C?.value===at,isAuto:ze,language:re})}return B.length?(B.unshift({...ci,selected:C?.value===ci.value}),B):[]}),mo={available:[],prev:[]},Br=()=>R.experimental.getCurrentTime$.getValue()?.()??K?.currentTime??0,Or=ti([Si,Ti,Ji,Ln],([c,C,B,re])=>{let ze=R.info.isLive$.getValue();if(ze&&mo.prev!==B){let at=B.find(({id:Yt})=>Yt===C.value),Nt=mo.prev.find(({id:Yt})=>Yt===C.value);if(at){let Yt={...at,subtitles:[...Nt?.subtitles??[],...at.subtitles]};mo.available=[Yt],mo.prev=B}}if(C&&C.value!==ci.value){let at=ze?Br():c,Nt=ze?mo.available:B;return w1(at,C,Nt,ze)}}),br=ti([Or],([c])=>c?.texts?c.texts:[]);Ze.add(Ti.subscribe(c=>{if(c.value===ci.value)d?.onSubtitleOff?.();else{let C=Object.entries(gu).find(([B,re])=>re===c.displayValue);d?.onSubtitleOn?.(C?C[0]:"",c.value)}}));let Dr=ie(!0),Vn=ti([kn,Fo,jn,jt],([c,C,B,re])=>{let ze=c?.end??0;if(!re)return ze/C;let Nt=-B+re-C;return(ze-Nt)/C}),Xn=Kt(R.info.availableSources$),Jn=ti([Xn],([c])=>Object.keys(c?.[Zt.VideoFormat.MPEG]||{}).length>0),eo=()=>{let c=Object.keys(R.info.availableSources$?.getValue()?.[Zt.VideoFormat.MPEG]||{}),C=(0,ct.getHighestQuality)(c)||ct.VideoQuality.Q_144P;return lt.sources[Zt.VideoFormat.MPEG]?.[C]},Ut=()=>{let c=eo();if(c)oe.log("download video",{url:c}),_h(c,lt?.meta?.title||"video");else{let C="There is no URL for download video";oe.log("download video",{message:C}),le({message:C})}},Ki=()=>{le({message:"toggle muted"});let c=R.info.muted$.getValue();R.info.volume$.getValue()===0&&!c?Ko(Ri(),!1):Rn(!c,!1)},$r=()=>{if(Pt.ui.settingsMenu.visible$.set(!1),!ve(Pt.ui.settingsSubMenu.visible$)){let c=ve(Pt.ui.settingsMenu.ref$);if(d?.uiInfo?.onSettingsMenu&&c){let B=pl(c),re={top:0,left:0,bottom:0,right:0};d.uiInfo.onSettingsMenu({visible:!1,size:B,position:re,name:"settings"})}}oe.log("close settings menu")},is=async(c,C=()=>Promise.resolve())=>{Pt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Pt.ui.settingsMenu.visible$.set(!0),await C();let B=ve(Pt.ui.settingsMenu.ref$),re=Ds();if(d?.uiInfo?.onSettingsMenu&&B&&re){let at=pl(B),Nt=ms(B,re);d.uiInfo.onSettingsMenu({visible:!0,size:at,position:Nt,name:"settings"})}oe.log("open settings menu",{wasOpenedByKeyboard:c})},ht=(c,C=!1)=>{Pt.ui.settingsSubMenu.visible$.set(!1);let B=ve(Pt.ui.settingsMenu.ref$),re=Ds(),ze=ve(Pt.ui.settingsMenu.visible$);if(d?.uiInfo?.onSettingsMenu&&B&&re)if(ze&&!C){let Nt=pl(B),Yt=ms(B,re);d.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:Yt,name:"settings"})}else{let Nt=pl(c),Yt={top:0,left:0,bottom:0,right:0},Mo=ve(Pt.ui.settingsSubMenu.name$);d.uiInfo.onSettingsMenu({visible:!1,size:Nt,position:Yt,name:Mo})}oe.log("close settings sub menu")},wt=(c,C)=>{Pt.ui.settingsSubMenu.visible$.set(!0),Pt.ui.settingsSubMenu.ref$.set(C),Pt.ui.settingsSubMenu.name$.set(c);let B=Ds();if(d?.uiInfo?.onSettingsMenu&&C&&B){let ze=pl(C),at=ms(C,B);d.uiInfo.onSettingsMenu({visible:!0,name:c,size:ze,position:at})}oe.log("open settings sub menu",{name:c})},Ri=()=>{let c=Math.max(se.volumeMinRestore,Kc()??0);return c===0?se.volumeDefault:c},hi=c=>{let C=se.features.savePreferredStatesOnUserActionOnly;return!C||C&&!c},Ko=(c,C)=>{let B=c===0?Ri():c,re=R.info.muted$.getValue();le({message:`set volume, volume: ${c}, preferredVolume: ${B}`});let ze=!a||Ye.is("ads");re&&c>0&&ze&&(re=!1,hi(C)&&tf(!1)),R.setVolume(c,re),Ce.setVolume(c),hi(C)&&Yp(B)},Rn=(c,C)=>{let B=R.info.volume$.getValue();le({message:`set muted, currentVolume: ${B}, mute: ${c}`});let re=Ye.is("ads");if(R.setMuted(c,re),Ce.setVolume(c?0:B),hi(C)&&(!re||!c)&&tf(c),!c&&B===0){let ze=Ri();R.setVolume(ze),hi(C)&&Yp(ze),Ce.setVolume(ze)}},Nn=ie(!1),er=c=>{oe.log("set looped",{isLooped:c}),Nn.set(c),R.setLooped(c),d?.uiInfo?.onLoopedChanged?.(c)};er(j);let yr=()=>{d?.uiInfo?.onReportProblem?.()},Eo=(c,C=!1)=>{le({message:`set autoplayNextEnabled, value: ${c}`}),oe.log("set autoplay next enabled",{autoplayNextEnabled:c}),Pt.ui.autoplayNextEnabled$.set(c),Vh(c),C&&d?.onSetAutoplayNextEnabled?.(c)},tr=c=>{le({message:`set timerNextVideoRunning, value: ${c}`}),oe.log("set timer next video running",{timerNextVideoRunning:c}),Pt.ui.timerNextVideoRunning$.set(c)},Hr=(c=!0)=>{let C=!0;if(c&&d?.onPrevVideoClick)try{C=d?.onPrevVideoClick?.()}catch{le({message:"onPrevVideoClick callback failed to execute"})}if(!C)return;c&&Ur("prev")||X()},Fr=(c=!0)=>{let C=!0;if(c&&d?.onNextVideoClick)try{C=d?.onNextVideoClick?.()}catch{le({message:"onNextVideoClick callback failed to execute"})}if(!C)return;c&&Ur("next")||ae()},Ur=c=>{let{isMobile:C,features:{playbackStatusNextVideoShow:B,playbackStatusShow:re}}=se;return B&&re&&!C?(Pt.ui.aboutToGoNextVideo.set(c),Pt.ui.userActionsDisabled.set(!0),!0):!1},zr=()=>{d?.onNextVideoAnnouncementShow?.()},qi=()=>{d?.onNextVideoAnnouncementClick?.()},pn=()=>{d?.onNextVideoAnnouncementAuto?.()},st=()=>{d?.onNextVideoAnnouncementCancel?.()},Ct=()=>{R.prepare()},ii=()=>{(0,ct.assertNonNullable)(Pt);let c=ve(Pt.ui.controls.disabledControls$),C=ve(Pt.playerPhase),B={playerPhase:C,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(le({message:"toggle play"}),C==="ads"){B.action="play",oe.log("toggle adman play",B),Ce.togglePlay();return}let re=()=>{le({message:"toggle play, call player.play"}),B.action="play",R.play(),d?.onPlay?.()},ze=()=>{le({message:"toggle play, call player.pause"}),B.action="pause",R.pause(),d?.onPause?.()};if(R.info.isEnded$.getValue()){if(le({message:"toggle play, video ended, seek to 0"}),zi.next(),Mi.next(ts.SeekAction.REWIND),S){L?.();return}R.seekTime(0),re()}else R.info.playbackState$.getValue()!==Zt.PlaybackState.PLAYING?re():ze();oe.log("toggle play",B)},Ni=(c,{changeReason:C="default",appliesTo:B="to-video"}={},re)=>{le({message:`set quality, quality: ${c}`}),oe.log("set quality",{quality:c}),R.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:ze}=se.features;qc(),c!=="auto"?(ze?(Qc({type:"exact_quality",quality:c,videoId:i},B),R.setPredefinedQualityLimits(Zt.PredefinedQualityLimits.UNKNOWN)):Zp(i,c),un.set(c),R.setQuality(c)):ze&&C==="default"&&(to("auto_quality",B,re),ve(mi)&&Bi(!1,void 0,re),ve(Do)&&ki(!1,void 0,re))},Bi=(c,C="as-default",B)=>{le({message:`set trafficSavingEnabled, value: ${c}`}),oe.log("set traffic saving enabled",{trafficSavingEnabled:c});let re=c?Zt.PredefinedQualityLimits.TRAFFIC_SAVING:Zt.PredefinedQualityLimits.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(Qi(re,C,B),id(!1)):(R.setPredefinedQualityLimits(re),hi(B)&&id(c))},ki=(c,C="as-default",B)=>{le({message:`set highQualityEnabled, value: ${c}`}),oe.log("set high quality enabled",{highQualityEnabled:c}),Qi(c?Zt.PredefinedQualityLimits.HIGH_QUALITY:Zt.PredefinedQualityLimits.UNKNOWN,C,B)},Qi=(c,C,B)=>{c!==Zt.PredefinedQualityLimits.UNKNOWN&&(ve(ni)&&!ve(Mn)&&Ni("auto",{appliesTo:C,changeReason:"limit-changed"},B),to(c,C,B)),R.setPredefinedQualityLimits(c)},to=(c,C,B)=>{hi(B)&&(Qc({type:c,videoId:i},C),C==="as-default"&&Qc({type:c,videoId:i},"to-video"))},qo=c=>{oe.log("set playback rate",{playbackRate:c}),R.setPlaybackRate(c),se.features.saveRate&&Y&&!R.info.isLive$.getValue()&&Mh(c)},Bn=()=>{let c=ve(zo),C=c.findIndex(({selected:re})=>re);if(C===c.length-1)return;let B=c[C+1];qo(B.value)},io=()=>{let c=ve(zo),C=c.findIndex(({selected:re})=>re);if(C===0)return;let B=c[C-1];qo(B.value)},Gi=(c={...ci,selected:!1},C)=>{oe.log("set subtitles",{...c}),c.value!==ci.value&&on.next(c.isAuto?c.value+"_auto":c.value),Ti.set(c),hi(C)&&(sf(c.value===ci.value?void 0:c.language),se.features.userVideoPrefs&&i&&af(se.userSalt,String(i),{subtitleTrackId:c.value===ci.value?void 0:c.value}))},Qo=c=>{oe.log("toggle subtitles"),ve(Ti)?.value===ci.value?ir(c):or(c)},fn=(c,C)=>{oe.log("change subtitle",{enabled:c}),c?ir(!0,C):or(!0)},ir=(c,C)=>{oe.log("subtitle on");let B=ve(Wo),re=ve(ye),ze;C&&(ze=B.find(at=>at.value===C)),ze??=B.filter(at=>at.value!==ci.value).find(at=>at.value===re)||B[1],Gi(ze,c)},or=c=>{oe.log("subtitle off"),Gi(void 0,c)};R.info.availableTextTracks$.subscribe(c=>{function C(){let B=[];for(let{language:re,isAuto:ze,id:at}of c){let Nt=re&&kd(re);re&&Nt&&B.push({id:at,language:re,title:ze?Z("subtitles_auto",{language:Nt}):Nt})}return B}d?.onAvailableSubtitlesChanged?.(C())});let nr=ie(!0),xr=c=>{nr.set(c)},mn=(c,C,B=!0)=>{if(le({message:`seek to time, time: ${c}`}),oe.log("seek to time",{time:c,action:C,forcePrecise:B}),Mi.next(C),R.info.isLive$.getValue()){let re=R.info.duration$.getValue(),ze=Math.min(0,re+c);R.seekTime(ze,B)}else{if(k?.getValue())return;R.info.isEnded$.getValue()&&(le({message:"seek after ended, call callbacks.onPlay"}),d?.onPlay?.()),R.seekTime(Tv(c),B)}},vn=c=>{le({message:`seek to episode start time: ${c}`}),oe.log("seek to episode start time",{time:c}),mn(c,ts.SeekAction.EPISODE,!0)},ji=(c,C)=>{le({message:`seek to percent, percent: ${c}`}),oe.log("seek to percent",{percent:c,action:C});let B=ve(Fo)*c;mn(B,C,!1)},Ke=c=>{le({message:`seek external, time: ${c}`}),oe.log("seek external",{time:c}),Mi.next(ts.SeekAction.UNKNOWN),R.seekTime(R.info.isLive$.getValue()?-c:c)},Wt=c=>{let C=c.max??"none",B=c.min??"none";le({message:`set auto quality limitation. Max: ${C}. Min: ${B}`}),oe.log("set auto quality limits",{max:C,min:B}),R.setAutoQualityLimits(c)},_i=c=>{le({message:`seek external to episode start time: ${c}`}),oe.log("seek external to episode start time",{time:c}),mn(c,ts.SeekAction.EPISODE,!0)},Go=c=>{le({message:`set playback rate to: ${c}`}),oe.log("set playback rate external",{playbackRate:c}),R.setPlaybackRate(c)},oo=ie(void 0),rr=ie(!1),ge=c=>{le({message:`start scrubbing, progress: ${c}`}),oe.log("start scrubbing",{progress:c}),rr.set(!0),Vt(c)},Vt=c=>{oo.set(c)},ui,Oi,et=()=>{oo.set(void 0),rr.set(!1)},Ot=()=>{clearTimeout(Oi),clearTimeout(ui),ui=window.setTimeout(()=>{et()},500),K?.removeEventListener("seeked",Ot)},oi=c=>{le({message:`complete scrubbing, progress: ${c}`}),oe.log("complete scrubbing",{progress:c}),ji(c,ts.SeekAction.SLIDER),ve(Pt.ui.isMobile)&&ve(Pt.state.currentFormat$)===Zt.VideoFormat.HLS?(K?.addEventListener("seeked",Ot),Oi=window.setTimeout(()=>{Ot()},300)):et()},Po=ti([Si,Fo,oo],([c,C,B],re)=>{re((0,ct.isNonNullable)(B)?B*C:c)}),Ao=ie(!1),gn=()=>{Ao.set(!0)},On=()=>{Ao.set(!1)},Dn=ti([ot],([{width:c}],C)=>{let B=u1(c);C(B)}),Di=ie(!1),si=G.filter(c=>bh(c)),jo=ti([Dn,Di],([c,C])=>C?si.filter(B=>!B.hideOnMobile):si.filter(B=>!B.hideOnDesktopGridTypes?.includes(c))),no=ie(G.filter(c=>$h(c))),sr=ti([no,Dn],([c,C])=>c.filter(B=>!B.hideOnDesktopGridTypes?.includes(C))),ro=ti([sr,jo],([c,C])=>[...se.features.additionalButtonsDesktopControlPanelRight?c.filter(B=>B.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?C.map((B,re)=>({id:re,weight:re,type:"desktop-control-panel-right",testId:B.testId,icon:B.iconUrl,onClick:B.onClick,ariaLabel:B.ariaLabel??B.tooltip,tooltipText:B.tooltip})):[]]),wr=ie(D),Tt=ti([wr],([c])=>se.features.additionalSettingsMenuItems?c.map(C=>C.type==="SWITCH"?{...C,onClick:C.onChangeEnabled}:C):[]),kt=(c,C)=>{let B=ve(no).map(re=>re.id!==c?re:{...re,...C});no.set(B)},hn=c=>{let C=ve(no);if(C.some(B=>B.id===c.id)){le({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}C.push(c),no.set(C)},os=c=>{let C=ve(no);if(!C.some(B=>B.id===c)){le({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}C=C.filter(B=>B.id!==c),no.set(C)},Wr=c=>{Mi.next(ts.SeekAction.LIVE),le({message:"live switch to low latency "+c}),oe.log("live switch to low latency "+c),R.setLiveLowLatency(c)},ns=(c,C)=>{let B=ve(wr).map(re=>re.id!==c?re:{...re,...C});wr.set(B)},Sr=c=>{let C=ve(wr);if(C.some(B=>B.id===c.id)){le({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}C.push(c),wr.set(C)},Os=c=>{let C=ve(wr);if(!C.some(B=>B.id===c)){le({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}C=C.filter(B=>B.id!==c),wr.set(C)},ar=ie(ee),Wu=ti([ar],([c])=>se.features.additionalContextMenuItems?c:[]),ic=(c,C)=>{let B=ve(ar).map(re=>re.id!==c?re:{...re,...C});ar.set(B)},Ku=c=>{let C=ve(ar);if(C.some(B=>B.id===c.id)){le({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}C.push(c),ar.set(C)},oc=c=>{let C=ve(ar);if(!C.some(B=>B.id===c)){le({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}C=C.filter(B=>B.id!==c),ar.set(C)},qu=ti([Di,$e],([c,C],B)=>{B(c&&C)}),nc=()=>{Mi.next(ts.SeekAction.LIVE),le({message:"switch to active live"}),oe.log("switch to active live"),R.seekTime(0),R.info.playbackState$.getValue()!==Zt.PlaybackState.PLAYING&&Pt.actions.internal.togglePlay()},Qu=()=>{oe.log("skip adman"),Ce.skip()},rc=(c=!0)=>{(0,ct.assertNonNullable)(Pt),le({message:`switch from ads to video, callPlay: ${c}`}),oe.log("switch from ads to video",{callPlay:c}),Pe.set("video"),c&&R.play(),a&&Rn(!0,!0);let C=ve(Je)?.muted,B=!R.info.muted$.getValue();C!==void 0&&!B&&Rn(C,!0),Je.set(void 0)},Gu=()=>{(0,ct.assertNonNullable)(Pt),le({message:"switch from video to ads"}),oe.log("switch from video to ads"),Pt.actions.internal.pause(),Oo(),Pe.set("ads")},sc=c=>{(0,ct.assertNonNullable)(Pt);let C=c?"LiveWaitingStart":"thumb";oe.log("set live waiting start",{state:c,playerPhase:C}),Pe.set(C)},ju=c=>{(0,ct.assertNonNullable)(Pt);let C=c?"LiveWaitingRecover":"thumb";oe.log("set live waiting recover",{state:c,playerPhase:C}),Pe.set(C)},ac=c=>{(0,ct.assertNonNullable)(Pt);let C=c?"LiveWaitingRecord":"thumb";oe.log("set live waiting record",{state:c,playerPhase:C}),Pe.set(C)},lc=()=>((0,ct.assertNonNullable)(Pt),oe.log("get debug text data"),gh(R,lt,Pt,Ne.getTraceId())),dc=()=>((0,ct.assertNonNullable)(Pt),JSON.stringify(Ne.getFinishedSpans())),Yu=()=>((0,ct.assertNonNullable)(Pt),hh(R,lt,Pt)),Ds=()=>K,Zu=()=>{le({message:"toggle chromecast"}),oe.log("toggle chromecast"),R.toggleChromecast()},Tl=c=>{if((0,ct.assertNonNullable)(Pt),R.info.isEnded$.getValue())return;let C=!c;if(ve(Pt.playerPhase)==="ads"){le({message:`pause ads, internalCall: ${C}`}),oe.log("pause ads",{internalCall:C}),Ce.pause();return}le({message:`pause video, internalCall: ${C}`}),oe.log("pause video",{internalCall:C}),C&&d?.onPause?.(),R.pause()},cc=c=>{(0,ct.assertNonNullable)(Pt);let C=!c;if(ve(Pt.playerPhase)==="ads"){le({message:`play ads, internalCall: ${C}`}),oe.log("play ads",{internalCall:C}),Ce.play();return}le({message:`play video, internalCall: ${C}`}),oe.log("play video",{internalCall:C}),C&&d?.onPlay?.(),R.play()},Xu=c=>{(0,ct.assertNonNullable)(Pt);let C=!c;if(ve(Pt.playerPhase)==="ads"){le({message:"player cannot be stopped during ads via external method"});return}le({message:`player will be stopped, internalCall: ${C}`}),A?.()},uc=(c,C)=>{(0,ct.assertNonNullable)(Pt),le({message:`first start, show ads: ${c}, internalCall: ${!C}`}),oe.log("first start",{showAds:c,external:C}),c?Pe.set("ads"):(Pe.set("video"),C?R.play():Pt.actions.internal.togglePlay())},qe=()=>(le({message:"getting time codes"}),p),Qt=()=>{let c=qe();if(!c||[0,1].includes(c.length))return;let C=R.info.position$.getValue();return c.find(B=>B.time>C)},_n=c=>{let C=c;C||(C=Qt());let B=R.info.position$.getValue();oe.log("seek to next episode",{currentTime:B,...C}),C&&(le({message:"seek to next episode"}),mn(C.time,ts.SeekAction.EPISODE,!0))},bs=()=>{let c=qe();if(!c||[0,1].includes(c.length))return;let C=R.info.position$.getValue(),B=c.findIndex(ze=>ze.time>C),re=B===-1?c.length-2:B-2;if(!(re<0))return c[re]},rs=c=>{let C=c;C||(C=bs());let B=R.info.position$.getValue();oe.log("seek to prev episode",{currentTime:B,...C}),C&&(le({message:"seek to prev episode"}),mn(C.time,ts.SeekAction.EPISODE,!0))},d0=()=>(le({message:"getting preview thumbs data"}),oe.log("get preview thumbs data",{...g}),g),c0=async()=>{let c=te?.isActive(),C="none";te?.isActive()?(C="exit",await te?.exit()):(C="request",await te?.request()),oe.log("toggle picture in picture",{isActive:c,action:C})},u0=(c=-90)=>{oe.log("rotate video",{alphaDiff:c}),Qe.update(C=>C+c)},pc=ie([]);T?.subscribe(c=>{let C=[];for(let B=0;B<c.length;B++){let{range:[re,ze],subjects:at}=c[B];B===0&&re!==0&&C.push({time:0,text:"",interactive:!1,completed:!0}),C.push({time:re/1e3,text:"",interactive:!0,completed:se.features.interactiveTimeOpenUri?!at.length||at.every(Nt=>Nt.isRemoved):!at.length}),ze!==1/0&&C.push({time:ze/1e3,text:"",interactive:!1,completed:!0})}pc.set(C)});let p0=ie(!1);k?.subscribe(c=>{c&&ve(rr)&&et()});let Tv=c=>{if(!S)return c;let C=ve(pc),B=ve(Fo),ze=ve(jn)/B,at=C.find(Nt=>Nt.interactive&&!Nt.completed&&Nt.time>ze);return typeof at?.time=="number"?Math.min(c,at.time-.05):c},f0=()=>{Pt.ui.episodes.panelOpened$.set(!1)},m0=()=>{oe.log("destroy store"),clearTimeout(Oi),clearTimeout(ui),Ze.unsubscribe(),Ft.unsubscribe(),R.destroy(),Ce.destroy(),ue?.destroy(),de?.destroy(),Bt.unsubscribe(),$o?.disconnect(),$o=null,Ue.destroy()},Pt={interfaceLanguage$:ye,isCyrillicRelatedInterface$:pe,initVideo:tt,videoId:i,isClip:o,playerPhase:Ye,vsid:ut,state:{positionExact$:Si,positionWithScrubbing$:Po,duration$:Fo,playbackState$:wo,isPlaying$:Nr,isLoaderVisible:Co,bufferedProgress$:Vn,isLive$:Ge,canChangePlaybackSpeed$:pt,isActiveLive$:En,isOldestAvailableLive$:fr,isRewindableLive$:mr,isEnded$:H,muted$:Gt,volume$:Lt,trafficSavingEnabled$:mi,highQualityEnabled$:Do,autoQualityLimitingAvailable$:ni,availableVideoStreams$:Yn,availableAudioStreams$:Vi,videoStream$:To,audioStream$:Pn,currentQuality$:_r,isAutoQualityEnabled$:Mn,availableQualities$:ft,currentPlaybackRate$:ri,availablePlaybackRates$:zo,currentSubtitle$:Ti,availableTextTracks$:ko,availableSubtitlesList$:Wo,currentSubtitleCaptions$:br,isAutoSubtitleCaptionVisible$:Dr,chromecastState$:po,chromecastDeviceName$:In,chromecastConnected$:Uo,currentFormat$:gi,throughputEstimation$:Li,videoBitrate$:fo,videoSize$:ln,errorLog$:Xe,crashed$:$e,isAudioAvailable$:di,isAudioDisabled:!!a,canDownload:se.features.download&&!!l,availableSources$:Xn,hasMpegSources$:Jn,isInteractive:S,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!ve(pc).length,interactiveEpisodes$:pc,isInteractiveTime$:k?Kt(k):ie(!1),isInteractiveExpectation$:p0,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:O,looped$:Nn,loadedMetadata$:Dt,isAutoQualityAvailable$:Wi},ui:{t:Z,controlsVisible:ie(!1),touched:ie(!1),controls:{prevButton:ie(void 0),playButton:ie(void 0),replayButton:ie(void 0),nextButton:ie(void 0),playPrevChapterButton:ie(void 0),seekToInteractiveButton:ie(void 0),interactiveGraphButton:ie(void 0),liveButton:ie(void 0),time:ie(void 0),episodes:ie(void 0),volume:ie(void 0),subtitles:ie(void 0),settings:ie(void 0),context:ie(void 0),chromecast:ie(void 0),pip:ie(void 0),fullscreen:ie(void 0),vkLogo:ie(void 0),interactiveTimeIndicator:ie(void 0),timeline:ie(void 0),autoplayNextToggle:ie(void 0),additionalButtons:G.length?G.reduce(c=>[...c,ie(void 0)],[]):[],disabledControls$:Le},modals:{hotKeyMap:{show:ie(!1),data:ie({title:"",closeBtnText:"",groups:[]})}},isFullscreen:xt,isFullscreenOpenedByKeyboard:gt,rotateAlpha:Qe,isAutoplay:ie(!1),debugPanelVisible:ie(!1),episodes:{panelOpened$:ie(!1),openedByKeyboard$:ie(!1)},contextMenu:{visible$:ie(!1),btnRef$:ie(void 0),openedByBtnKeyboard$:ie(!1),openedByHotKey$:ie(!1),lastActiveElem$:ie(void 0),showContextMenuBtn$:ie(!1),position$:ie({top:0,left:0})},playerSize:ot,isMobile:Di,mobileNotReportControlHidden$:qu,icon3DVideoVisible:ie(!1),scrubbingInProgress:rr,volumeChangingInProgress:Ao,is3DVideo:zt,currentGridType$:Dn,additionalButtonsDeprecated$:jo,additionalDesktopControlPanelRightButtons$:ro,additionalSettingsMenuItems$:Tt,additionalContextMenuItems$:Wu,interactiveHideMobileControls:ie(!1),overlayContainer$:ie(void 0),startedByKeyboard$:ie(!1),autoplayNextEnabled$:ie(!1),timerNextVideoRunning$:ie(!0),settingsMenu:{visible$:ie(!1),ref$:ie(void 0),openedByBtnKeyboard$:ie(!1)},settingsSubMenu:{visible$:ie(!1),ref$:ie(void 0),name$:ie(void 0)},aboutToGoNextVideo:ie(void 0),userActionsDisabled:ie(!1),hiddenControls:{volume:ie(!1),vkLogo:ie(!1),pip:ie(!1),chromecast:ie(!1),settings:ie(!1)},isControlsAvailable:nr,controlBlocks:{topLeft:ie(void 0),topRight:ie(void 0),middle:ie(void 0),bottom:ie(void 0),bottomLeft:ie(void 0),bottomRight:ie(void 0)},videoTitleInfo:ie(void 0)},ads:{position:ie(0),duration:ie(0),playbackState:ie("inactive"),canSkip:ie(!1),secondsToWatchBeforeSkip:ie(0),postrollPassed:ie(!1)},webApi:{pictureInPictureApi:te,annotationsApi:be,slotsApi:Oe},actions:{internal:{preload:Ct,firstStart:c=>uc(c,!1),play:()=>cc(!1),pause:()=>Tl(!1),togglePlay:ii,toggleMuted:Ki,openSettingsMenu:is,closeSettingsMenu:$r,openSettingsSubMenu:wt,closeSettingsSubMenu:ht,setVolume:c=>Ko(c,!1),setMuted:c=>Rn(c,!1),startVolumeChanging:gn,stopVolumeChanging:On,setVideoStream:cn,setAudioStream:c=>vr(c,!1),setQuality:(c,C)=>Ni(c,C,!1),setTrafficSavingEnabled:(c,C)=>Bi(c,C,!1),setHighQualityEnabled:(c,C)=>ki(c,C,!1),setPlaybackRate:qo,incrementPlaybackRate:Bn,decrementPlaybackRate:io,setSubtitle:c=>Gi(c,!1),toggleSubtitle:()=>Qo(!1),togglePictureInPicture:c0,startScrubbing:ge,progressScrubbing:Vt,completeScrubbing:oi,toggleChromecast:Zu,switchToActiveLive:nc,switchFromAdsToVideo:rc,switchFromVideoToAds:Gu,skipAd:Qu,setLiveWaitingStart:sc,setLiveWaitingRecover:ju,setLiveWaitingRecord:ac,getDebugTextData:lc,getTraceTextData:dc,getDebugPanelData:Yu,getVideoElement:Ds,seekTime:(c,C,B)=>mn(c,C,B),clearDelayedBufferingCheckTimeout:Ho,seekEpisodeStartTime:vn,seekToPercent:ji,getNextEpisode:Qt,seekToNextEpisode:_n,getPrevEpisode:bs,seekToPrevEpisode:rs,startLogging:Zi,stopLogging:Tn,startCameraManualRotation:sn,stopCameraManualRotation:yo,moveCameraFocusPX:Xi,holdCamera:an,releaseCamera:xo,getVideoEpisodes:qe,getPreviewThumbsData:d0,downloadVideo:Ut,addLanguage:lf,setLanguage:Ht,nextMovie:wi,videoRotate:u0,correctSeekTimeToInteractive:Tv,replayInteractive:L,setLooped:er,reportProblem:yr,setAutoplayNextEnabled:Eo,setTimerNextVideoRunning:tr,prevVideoClick:Hr,nextVideoClick:Fr,nextVideoAnnouncementShow:zr,nextVideoAnnouncementClick:qi,nextVideoAnnouncementAuto:pn,nextVideoAnnouncementCancel:st},external:{firstStart:c=>uc(c,!0),play:()=>cc(!0),pause:()=>Tl(!0),stop:()=>Xu(!0),seekTime:c=>Ke(c),seekEpisodeStartTime:c=>_i(c),setPlaybackRate:c=>Go(c),setAutoQualityLimits:c=>Wt(c),setMuted:c=>Rn(c,!0),toggleSubtitle:()=>Qo(!0),changeSubtitle:fn,setVolume:c=>Ko(c,!0),returnFocusToEpisodes:f0,updateAdditionalSettingsItem:ns,addAdditionalSettingsItem:Sr,removeAdditionalSettingsItem:Os,updateAdditionalContextItem:ic,addAdditionalContextItem:Ku,removeAdditionalContextItem:oc,updateAdditionalButton:kt,addAdditionalButton:hn,removeAdditionalButton:os,setLiveLowLatency:Wr,hideControls:()=>xr(!1),showControls:()=>xr(!0),setQuality:c=>Ni(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Bi(c,"to-video",!0),setHighQualityEnabled:c=>ki(c,"to-video",!0)}},callbacks:d,setUiCallbacks:c=>{Me={...c}},getAdmanWrapper:()=>Ce,getLogger:()=>Ee,getPlayer:()=>R,destroy:m0};return Pt};function Sn(t,e,i,o){let r=e[i]?.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:a,left:l,bottom:d,right:f}=ms(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?a:0,bottom:s?d:0,isDisplayed:s}}var Dy=["disabledControls$","additionalButtons"],Hy=["interactiveTimeIndicator"],ml=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!Dy.includes(r)){let a=o||Hy.includes(r);s.set(Sn(t,i,r,a))}}};var bu=async(t,e,i)=>{await ao(),e&&i&&(i.focus(),t.set(!1))};var Fy=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 sm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}function am(t,e){F(e,!0);let[i,o]=Ve(),r=()=>$(d,"$contextMenuVisible$",i),s=m(e,"disabled",3,!1),a=m(e,"ariaLabel",3,""),l=Se(),d=l.ui.contextMenu.visible$,f=l.ui.contextMenu.openedByBtnKeyboard$,p=l.ui.contextMenu.showContextMenuBtn$,g=l.ui.contextMenu.position$,u=l.ui.contextMenu.btnRef$,y=Q(void 0);De(()=>{n(y)&&$t(()=>{u.set(n(y))})});let x=k=>{let L=Ps(k),A=t1(n(y));g.set(A),f.set(L),d.set(!r())},w=()=>{p.set(!0)},S=()=>{p.set(!1)},T=v(()=>r()?"opened":"");Mt(t,{get className(){return n(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return a()},click:x,focus:w,blur:S,get ariaExpanded(){return r()},get ref(){return n(y)},set ref(k){V(y,k,!0)},children:(k,L)=>{sm(k,{})},$$slots:{default:!0}}),U(),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;}
226
226
 
227
227
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
228
228
  }
@@ -247,8 +247,8 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Yh=z_;var f
247
247
  opacity: 0;
248
248
  }
249
249
  }.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);
250
- 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 Ld(t,e){F(e,!0),W(t,Yy);let[i,o]=Ve(),r=()=>$(S,"$isMobile",i),s=()=>$(A,"$areControlsVisible",i),a=()=>$(P,"$currentGridType$",i),l=()=>$(k,"$isInteractiveTime$",i),d=()=>$(w,"$interactiveControlsOpacity$",i),f=()=>$(V,"$showInteractiveTimeIndicatorTooltip$",i),p=()=>$(T,"$isFullscreen",i),g=m(e,"ref",15,void 0),u=G(void 0),y=xe(),x=Ji(),{interactiveControlsOpacity$:w}=x,S=y.ui.isMobile,T=y.ui.isFullscreen,k=y.state.isInteractiveTime$,V=x.showInteractiveTimeIndicatorTooltip$,A=y.ui.controlsVisible,L=y.callbacks?.onInteractiveTimeIndicatorClick,P=y.ui.currentGridType$,Q=v(()=>!r()&&s()),D=v(()=>Rs(a(),"s")),J=v(()=>!l()||!!d()||n(Q)),ie=G(!1);Be(()=>{N(ie,n(J),!0)});let re=()=>{N(ie,!0)},Z=()=>{ue(),n(u)?.addEventListener("animationiteration",re,{once:!0})},ue=()=>{N(ie,!1),n(u)?.removeEventListener("animationiteration",re)},Y=ee=>{V.set(ee)},we=v(()=>f()&&!n(J));Be(()=>{f()?Z():ue()});let _e=()=>{n(J)||(V.set(!0),L?.())};Ro(()=>{V.clearTimeout(),ue()});let Ee=()=>{V.set(!1)},He=z("tooltip_interactive_interaction_time_indicator");var ae=jy();let Re;ae.__mousemove=[Gy],ae.__click=_e;var ne=_(ae);fo(ne,{get tooltipContent(){return He},get tooltipActive(){return n(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:Y,get ref(){return g()},set ref(ee){g(ee)},children:(ee,ye)=>{Sd(ee,{completed:!0})},$$slots:{default:!0}});var R=I(ne,2);let Pe;tt(R,ee=>g(ee),()=>g());var Te=I(R,2);let ce;tt(Te,ee=>N(u,ee),()=>n(u)),h(ae),O((ee,ye,De)=>{Re=X(ae,1,"interactive-episode-icon-animated svelte-od3veb",null,Re,ee),Pe=X(R,1,"ref-block svelte-od3veb",null,Pe,ye),ce=X(Te,1,"pulse svelte-od3veb",null,ce,De)},[()=>({mobile:r(),fullscreen:p(),invisible:n(J),"icon-small":n(D)}),()=>({hidden:n(J)}),()=>({paused:n(ie)})]),bt("mouseleave",ae,Ee),b(t,ae),U(),o()}st(["mousemove","click"]);function Cu(t,e){F(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),r=m(e,"className",3,void 0),s=m(e,"ref",15);fo(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 r()},get ref(){return s()},set ref(a){s(a)},children:(a,l)=>{var d=Oe();let f=v(()=>e.buttonComponent);var p=de(d);fi(p,()=>n(f),(g,u)=>{u(g,ps(()=>e.buttonComponentProps??{}))}),b(a,d)},$$slots:{default:!0}}),U()}var vs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Xy=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function gm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Xy();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}function Ns(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),r=m(e,"width",3,"24"),s=m(e,"height",3,"24"),a=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),l=v(()=>i()?"prev-icon":"next-icon");gm(t,{get style(){return n(a)},get width(){return r()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return n(l)}})}var Jy=E('<div class="icon-background-mobile svelte-xtk2k4"></div>'),e2=E("<!> <!>",1),t2={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 ba(t,e){F(e,!0),W(t,t2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),r=m(e,"disabled",3,!1),a=xe().ui.t,l=v(()=>e.type==="prev"?a("tooltip_previous"):a("tooltip_next")),d=v(()=>e.type==="prev"?a("hotkey_map_item_prev_video_value"):a("hotkey_map_item_next_video_value")),f=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Pt(t,{get className(){return n(f)},get testId(){return`btn-${e.type??""}`},get disabled(){return r()},get ariaLabel(){return n(l)},get click(){return e.click},get ariaKeyShortCut(){return n(d)},get ref(){return i()},set ref(p){i(p)},children:(p,g)=>{var u=e2(),y=de(u);{var x=T=>{var k=Jy();b(T,k)};M(y,T=>{o()&&T(x)})}var w=I(y,2);let S=v(()=>e.type==="prev");Ns(w,{get isMobile(){return o()},get isPrev(){return n(S)}}),b(p,u)},$$slots:{default:!0}}),U()}var i2=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function Vd(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=i2();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var N1=require("@vkontakte/videoplayer-shared");var o2=E('<div class="icon-background-mobile svelte-1ot3duq"></div>'),n2=E("<!> <div><!></div>",1),r2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function vl(t,e){F(e,!0),W(t,r2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),r=m(e,"disabled",3,!1),s=m(e,"className",3,""),a=m(e,"click",3,N1.noop),l=z("tooltip_restart"),d=v(()=>`${o()?"btn-m--play":""} ${s()}`);Pt(t,{get className(){return n(d)},testId:"btn-replay",get ariaLabel(){return l},get disabled(){return r()},get click(){return a()},get ariaKeyShortCut(){return Xr.KeyK},get ref(){return i()},set ref(f){i(f)},children:(f,p)=>{var g=n2(),u=de(g);{var y=T=>{var k=o2();b(T,k)};M(u,T=>{o()&&T(y)})}var x=I(u,2);let w;var S=_(x);Vd(S,{}),h(x),O(T=>w=X(x,1,"svelte-1ot3duq",null,w,T),[()=>({mobile:o()})]),b(f,g)},$$slots:{default:!0}}),U()}var s2=$e('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Vr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),r=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var a=s2(),l=_(a);h(a),O(()=>{Ne(a,"width",i()),Ne(a,"height",o()),Ne(a,"viewBox",r()),Ne(l,"fill",s())}),b(t,a)}var a2=$e('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function gs(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),r=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var a=a2(),l=_(a);h(a),O(()=>{Ne(a,"width",i()),Ne(a,"height",o()),Ne(a,"viewBox",r()),Ne(l,"fill",s())}),b(t,a)}var O1=require("@vkontakte/videoplayer-shared");var l2=E('<div class="icon-background-mobile svelte-1ot3duq"></div>'),d2=E("<!> <div><!></div>",1),c2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function gl(t,e){F(e,!0),W(t,c2);let[i,o]=Ve(),r=()=>$(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=Ji(),a=m(e,"ref",15,void 0),l=m(e,"isMobile",3,!1),d=m(e,"isPlaying",3,!1),f=m(e,"disabled",3,!1),p=m(e,"className",3,""),g=m(e,"click",3,O1.noop),y=xe().ui.t,{toggle:x}=s,w=v(()=>x),S=v(()=>r()!==null),T=v(()=>n(S)?r():d()),k=v(()=>n(T)?y("tooltip_pause"):y("tooltip_play")),V=v(()=>n(T)?gs:Vr),A=v(()=>`${l()?"btn-m--play":""} ${p()}`),L=v(()=>n(S)?n(w):g());Pt(t,{get className(){return n(A)},testId:"btn-play",get click(){return n(L)},get disabled(){return f()},get ariaLabel(){return n(k)},get ariaKeyShortCut(){return Xr.KeyK},get ref(){return a()},set ref(P){a(P)},children:(P,Q)=>{var D=d2();let J=v(()=>n(V));var ie=de(D);{var re=we=>{var _e=l2();b(we,_e)};M(ie,we=>{l()&&we(re)})}var Z=I(ie,2);let ue;var Y=_(Z);fi(Y,()=>n(J),(we,_e)=>{_e(we,{})}),h(Z),O(we=>ue=X(Z,1,"svelte-1ot3duq",null,ue,we),[()=>({mobile:l()})]),b(P,D)},$$slots:{default:!0}}),U(),o()}var u2=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function hm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=u2();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}function Rd(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),r=m(e,"disabled",3,!1),s=z("tooltip_interactive_go_back"),a=v(()=>o()?"hidden":"");Pt(t,{get className(){return n(a)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{hm(l,{})},$$slots:{default:!0}}),U()}var p2=E('<span class="gutter svelte-et3q1q"><span><!></span></span>'),f2={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 Nd(t,e){F(e,!0),W(t,f2);let[i,o]=Ve(),r=()=>$(d,"$autoplayNextEnabled$",i),s=m(e,"ref",15,void 0),a=xe(),l=a.ui.t,d=a.ui.autoplayNextEnabled$,f=a.actions.internal.setAutoplayNextEnabled,p=()=>{f(!r(),!0)},g=l("aria_label_autoplay"),u=v(()=>r()?"true":"false");Pt(t,{click:p,get ariaLabel(){return g},role:"switch",get areaChecked(){return n(u)},get ref(){return s()},set ref(y){s(y)},children:(y,x)=>{var w=p2(),S=_(w);let T;var k=_(S);{var V=L=>{Vr(L,{width:"14",height:"14",fill:"#000"})},A=L=>{gs(L,{width:"14",height:"14",fill:"#000"})};M(k,L=>{r()?L(V):L(A,!1)})}h(S),h(w),O(L=>T=X(S,1,"toggler svelte-et3q1q",null,T,L),[()=>({enabled:r()})]),b(y,w)},$$slots:{default:!0}}),U(),o()}var m2=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function _m(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=m2();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}function Od(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),r=m(e,"disabled",3,!1),s=z("tooltip_interactive_seek"),a=v(()=>o()?"hidden":"");Pt(t,{get className(){return n(a)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{_m(l,{})},$$slots:{default:!0}}),U()}var v2=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function bm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=v2();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}var g2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function $m(t,e){W(t,g2);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");bm(t,{get"data-testid"(){return n(o)}})}function Bd(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),r=m(e,"disabled",3,!1),s=m(e,"graphIsOpened",3,!1),l=xe().ui.t,d=v(()=>s()?l("tooltip_interactive_graph_on"):l("tooltip_interactive_graph_off")),f=v(()=>o()?"hidden":"");Pt(t,{get className(){return n(f)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ref(){return i()},set ref(p){i(p)},children:(p,g)=>{let u=v(()=>!!s());$m(p,{get isOpened(){return n(u)}})},$$slots:{default:!0}}),U()}var ym=require("@vkontakte/videoplayer-core");function Dd(t,e){F(e,!0);let[i,o]=Ve(),r=()=>$(f,"$playbackState$",i),s=m(e,"isMobile",3,!1),a=m(e,"isLiveActive",3,!1),l=m(e,"ariaLabel",3,""),d=xe(),f=d.state.playbackState$,p=d.actions.internal.switchToActiveLive,g=d.actions.internal.togglePlay,u=v(()=>()=>{if(!a()){p();return}r()===ym.PlaybackState.PAUSED&&g()}),y=v(()=>s()?"":"btn--live btn-full-opacity"),x=v(()=>a()?"btn-live":"btn-live-offset"),w=v(()=>a()&&r()===ym.PlaybackState.PLAYING);Pt(t,{get className(){return n(y)},get testId(){return n(x)},get disabled(){return n(w)},get ariaLabel(){return l()},get click(){return n(u)},children:(S,T)=>{ud(S,{get isActive(){return a()}})},$$slots:{default:!0}}),U(),o()}var xm=require("@vkontakte/videoplayer-shared");var h2=E('<div class="icon icon-error-stub"><div class="inner"></div></div>'),_2=E('<img class="icon" aria-hidden="true"/>');function $a(t,e){"use strict";let i=G(!1),o=()=>{N(i,!0)};var r=Oe(),s=de(r);{var a=d=>{var f=h2();b(d,f)},l=d=>{var f=_2();O(()=>Ne(f,"src",e.icon)),bt("error",f,o),Ys(f),b(d,f)};M(s,d=>{n(i)?d(a):d(l,!1)})}b(t,r)}function wm(t,e){F(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,xm.noop),r=m(e,"ref",15),s=v(()=>o()===xm.noop),a=v(()=>n(s)||i()),l=v(()=>n(s)?"btn-full-opacity":"");fo(t,{get disabled(){return n(a)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return r()},set ref(d){r(d)},children:(d,f)=>{let p=v(()=>e.testId??e.id);Pt(d,{get className(){return n(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return n(p)},children:(g,u)=>{$a(g,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var B1=t=>!!t.buttonComponent;var hs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Tu=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(yn(t,i,r,o))};var y2=E('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),x2={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {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-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function Cm(t,e){F(e,!0),W(t,x2);let[i,o]=Ve(),r=()=>$(Ti,"$disabledControls$",i),s=()=>$(Jt,"$adPlaybackState",i),a=()=>$(qt,"$playbackState$",i),l=()=>$(Cn,"$currentSubtitle$",i),d=()=>$($t,"$isEnded$",i),f=()=>$(hi,"$currentGridType$",i),p=()=>$(yt,"$isLive$",i),g=()=>$(Sn,"$chromecastState$",i),u=()=>$(Ni,"$isPictureInPictureActive",i),y=()=>$(wn,"$pictureInPictureType$",i),x=()=>$(tn,"$availableSubtitlesList$",i),w=()=>$(ki,"$contextMenuOpenedByKeyboard$",i),S=()=>$(Co,"$showContextMenuBtn$",i),T=()=>$(Wt,"$playerSize",i),k=()=>$(eo,"$isRewindableLive$",i),V=()=>$(Qt,"$isActiveLive$",i),A=()=>$(vo,"$graphIsOpened$",i),L=()=>$(on,"$contextMenuVisible$",i),P=()=>$(Ot,"$isFullscreen",i),Q=()=>$(di,"$autoplayNextEnabled",i),D=()=>$(n(Ko),"$prevButton",i),J=()=>$(n(cn),"$replayButton",i),ie=()=>$(n(gt),"$playButton",i),re=()=>$(n(Bt),"$nextButton",i),Z=()=>$(n(Bi),"$playPrevChapterButton",i),ue=()=>$(n(Gt),"$seekToInteractiveButton",i),Y=()=>$(n(un),"$interactiveGraphButton",i),we=()=>$(n(Vn),"$liveButton",i),_e=()=>$(n(pn),"$time",i),Ee=()=>$(n(hr),"$episodes",i),He=()=>$(n(Dr),"$vkLogo",i),ae=()=>$(n(_r),"$volume",i),Re=()=>$(n(br),"$subtitles",i),ne=()=>$(n(qo),"$settings",i),R=()=>$(n(Jn),"$context",i),Pe=()=>$(n($r),"$fullscreen",i),Te=()=>$(n(Hr),"$chromecast",i),ce=()=>$(kn,"$additionalDesktopControlPanelRightButtons$",i),ee=()=>$(to,"$isInteractiveTime$",i),ye=()=>$(en,"$settingsMenuVisible",i),De=()=>$(Hi,"$settingButtonRef$",i),le=()=>$(To,"$startedByKeyboard$",i),at=()=>$(Ut,"$isAudioAvailable$",i),K=()=>$(Ft,"$fakeIsPlaying$",i),Ae=()=>$(Do,"$seekToInteractiveDisabledTooltip$",i),Fe=()=>$(ct,"$adPosition",i),Ye=()=>$(ot,"$position$",i),dt=()=>$(qe,"$adDuration",i),Ct=()=>$(Le,"$duration$",i),ut=m(e,"playerControlsWrapperRef",15,void 0),vt=m(e,"playerControlsRef",15,void 0),Je=m(e,"isAds",3,!1),Nt=m(e,"logoTargetUrl",3,""),Kt=m(e,"isOneVideoPlaylist",3,!1),At=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Ft}=Ji(),Ce=xe(),Ze=Ji(),he=Tt(),me=Ce.actions.internal.toggleMuted,j=Ce.actions.internal.togglePlay,Me=Ce.actions.internal.pause,Ue=Ce.actions.internal.toggleSubtitle,Xe=Ce.callbacks?.onAudioDoesNotExistHint,Ke=Ce.callbacks?.onAudioDisabledHint,Le=Ce.state.duration$,ot=Ce.state.positionWithScrubbing$,qt=Ce.state.playbackState$,Ut=Ce.state.isAudioAvailable$,Rt=Ce.state.isAudioDisabled,$t=Ce.state.isEnded$,yt=Ce.state.isLive$,Qt=Ce.state.isActiveLive$,eo=Ce.state.isRewindableLive$,{isActive$:Ni,type$:wn}=Ze.pictureInPicture$,en=Ce.ui.settingsMenu.visible$,Oo=Ce.ui.settingsMenu.openedByBtnKeyboard$,zt=Ce.ui.controls,qi=Ce.actions.internal.getVideoEpisodes(),Sn=Ce.state.chromecastState$,tn=Ce.state.availableSubtitlesList$,Cn=Ce.state.currentSubtitle$,Ti=zt.disabledControls$,on=Ce.ui.contextMenu.visible$,Co=Ce.ui.contextMenu.showContextMenuBtn$,ki=Ce.ui.contextMenu.openedByBtnKeyboard$,To=Ce.ui.startedByKeyboard$,Tn=Ce.ui.controlBlocks,H=Ce.ui.t,qe=Ce.ads.duration,ct=Ce.ads.position,Jt=Ce.ads.playbackState,Ot=Ce.ui.isFullscreen,Wt=Ce.ui.playerSize,hi=Ce.ui.currentGridType$,kn=Ce.ui.additionalDesktopControlPanelRightButtons$,di=Ce.ui.autoplayNextEnabled$,_t=Ce.actions.internal.getVideoElement,Oi=Ce.actions.internal.replayInteractive,Ii=Ce.actions.internal.prevVideoClick,In=Ce.actions.internal.nextVideoClick,_i=Ce.state.isInteractive,to=Ce.state.isInteractiveTime$,io=Ce.state.showInteractiveGraph,nn=Ce.state.showSeekToInteractive,Bo=Ce.state.showPlayPrevChapter,mi=Ce.state.showInteractiveTimeIndicator,Ei=Ce.state.playPrevChapterDisabledTooltip,Do=Ze.seekToInteractiveDisabledTooltip$,vo=Ze.graphIsOpened$,Ho=he.features.interactiveResponsiveUi,Fo=v(()=>r().has("EPISODE_BUTTON")),cr=v(()=>r().has("GRAPH_BUTTON")),En=v(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),ur=v(()=>r().has("PLAY_BUTTON")),jn=v(()=>r().has("REPLAY_BUTTON")),Nr=v(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Uo=()=>Ce.actions.internal.toggleChromecast(),Pn=v(()=>Je()?s()==="playing":a()===ya.PlaybackState.PLAYING),Yn=v(()=>l().value!=="off"),rn=v(()=>d()&&!Je()||_i),Qi=v(()=>Ho?n(rn)&&Li(f(),"m"):n(rn)),An=v(()=>!d()||_i||Je()),pr=v(()=>Li(f(),"m")),sn=v(()=>e.showNextPrevButtons&&Li(f(),"m")&&!Je()&&e.nextButtonActive),Zn=v(()=>e.showNextPrevButtons&&Li(f(),"m")&&!Je()&&e.prevButtonActive),Mn=v(()=>!Je()&&!!p()),ko=v(()=>g()!==ya.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&Li(f(),"m")&&!_i),Ln=v(()=>e.showAutoplayNext&&!Kt()&&Li(f(),"s")),Or=v(()=>x().length>0&&Li(f(),"m")),fr=v(()=>w()||S()),oo=v(()=>Li(f(),"s")&&!Je()),pt=v(()=>!e.logoHidden&&!Je()),ci=v(()=>he.features.fullscreen&&(e.logoHidden||Li(f(),Ho?"xs":"s"))&&!(u()&&y()===1)&&(_i?At():!0)),an=v(()=>(!p()||Je())&&!(he.features.interactiveHideTime&&_i)),Pi=v(()=>T().width>100),bi=v(()=>io&&Li(f(),"m")),Io=v(()=>Ho?nn&&Li(f(),"s"):nn),ln=v(()=>Ho?Bo&&Li(f(),"s"):Bo),Gi=v(()=>!Je()&&!p()&&!!qi?.length&&n(pr)&&!n(Fo)),zo=v(()=>!k()||!!V()),Eo=v(()=>A()?H("tooltip_interactive_graph_on"):H("tooltip_interactive_graph_off")),no=v(()=>L()?H("tooltip_context_menu_close"):H("tooltip_context_menu_open")),mr=(kt,wt)=>kt?wt&&wt===ya.PlaybackState.PAUSED?H("tooltip_play"):"":H("tooltip_live"),vr=v(()=>mr(n(zo),a())),Br=v(()=>he.logoType==="vk_video"?H("tooltip_vk_video_logo"):H("tooltip_vk_logo")),is=v(()=>n(Yn)?H("tooltip_subtitles_on"):H("tooltip_subtitles_off")),dn=v(()=>P()?H("tooltip_fullscreen_on"):H("tooltip_fullscreen_off")),Xn=v(()=>g()===ya.ChromecastState.CONNECTED?H("tooltip_chromecast_on"):H("tooltip_chromecast_off")),gr=v(()=>Q()?H("tooltip_autoplay_on"):H("tooltip_autoplay_off")),ro=G(0),Yt=Xt({}),Wo=Xt({}),Ko=v(()=>zt.prevButton),cn=v(()=>zt.replayButton),gt=v(()=>zt.playButton),Bt=v(()=>zt.nextButton),Bi=v(()=>zt.playPrevChapterButton),Gt=v(()=>zt.seekToInteractiveButton),un=v(()=>zt.interactiveGraphButton),Vn=v(()=>zt.liveButton),pn=v(()=>zt.time),hr=v(()=>zt.episodes),Dr=v(()=>zt.vkLogo),_r=v(()=>zt.volume),br=v(()=>zt.subtitles),qo=v(()=>zt.settings),Jn=v(()=>zt.context),$r=v(()=>zt.fullscreen),Hr=v(()=>zt.chromecast),go=v(()=>({prevButton:D()?D().right-D().left:0,replayButton:J()?J().right-J().left:0,playButton:ie()?ie().right-ie().left:0,nextButton:re()?re().right-re().left:0,playPrevChapterButton:Z()?Z().right-Z().left:0,seekToInteractiveButton:ue()?ue().right-ue().left:0,interactiveGraphButton:Y()?Y().right-Y().left:0,liveButton:we()?we().right-we().left:0,time:_e()?_e().right-_e().left:0,episodes:Ee()?Ee().right-Ee().left:0,vkLogo:He()?He().right-He().left:0,volume:ae()?ae().right-ae().left:0,subtitles:Re()?Re().right-Re().left:0,settings:ne()?ne().right-ne().left:0,context:R()?R().right-R().left:0,fullscreen:Pe()?Pe().right-Pe().left:0,chromecast:Te()?Te().right-Te().left:0,additionalButtons:ce().length?ce().reduce(kt=>[...kt,40],[]):[]})),Rn=G(0);Be(()=>{(!n(Rn)||n(Rn)<n(go).time)&&ht(()=>N(Rn,n(go).time,!0))});let et=G(!1);Be(()=>{let kt=0;n(Gi)&&(Li(f(),"xl")?kt=n(go).time:kt=60);let wt=n(go).prevButton+n(go).playButton+n(go).nextButton+n(go).seekToInteractiveButton+n(go).interactiveGraphButton+n(go).liveButton+n(Rn)+kt;N(et,n(an)&&n(ro)>=wt,!0)});let xt=v(()=>n(et)&&Li(f(),"m")),ui=(0,Sm.debounceFn)(ml,260),Di=(0,Sm.debounceFn)(Tu,260);Be(()=>{T(),ee(),ui(_t(),zt,Yt,e.showControls),Di(_t(),Tn,Wo,e.showControls)}),Be(()=>{Wo.bottom=ut()});let Hi=te();Be(()=>{ye(),De()&&ht(()=>sl(De(),ye(),Oo))});let $i;Be(()=>{le(),ht(()=>Su(To,le(),$i))});function ji(){Ms({isAudioDisabled:Rt,isAudioAvailable:at(),isAds:Je(),audioIsNotExistHintCallback:Xe,audioDisabledHintCallback:Ke})&&me()}let Yi=_i?Oi:j,so=v(()=>K()!==null),Nn=v(()=>n(so)?K():n(Pn)),ho=v(()=>n(Nn)?H("tooltip_pause"):H("tooltip_play")),Zi=H("tooltip_episodes"),er=v(()=>n(Zn)?{id:"prevButton",type:"desktop-control-panel-left",weight:vs.prevButton,buttonComponent:ba,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ii.bind(null,!0)},tooltipEnabled:!Ce.callbacks?.uiInfo?.onPrevButtonMouseEnter&&!Ce.callbacks?.uiInfo?.onPrevButtonMouseLeave,mouseEnter:()=>{Ce.callbacks?.uiInfo?.onPrevButtonMouseEnter?.(yn(_t(),Yt,"prevButton",e.showControls))},mouseLeave:()=>{Ce.callbacks?.uiInfo?.onPrevButtonMouseLeave?.(yn(_t(),Yt,"prevButton",e.showControls))},tooltipText:H("tooltip_previous"),disabled:!e.prevButtonActive}:void 0),On=v(()=>n(Qi)?{id:"replayButton",type:"desktop-control-panel-left",weight:vs.replayButton,buttonComponent:vl,buttonComponentProps:{disabled:n(jn),click:Yi},tooltipText:H("tooltip_restart"),disabled:n(jn)}:void 0),tr=v(()=>n(An)?{id:"playButton",type:"desktop-control-panel-left",weight:vs.playButton,buttonComponent:gl,buttonComponentProps:{disabled:n(ur),isPlaying:n(Pn),click:j},tooltipText:n(ho),disabled:n(ur)}:void 0),ir=v(()=>n(sn)?{id:"nextButton",type:"desktop-control-panel-left",weight:vs.nextButton,buttonComponent:ba,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:In.bind(null,!0)},tooltipEnabled:!Ce.callbacks?.uiInfo?.onNextButtonMouseEnter&&!Ce.callbacks?.uiInfo?.onNextButtonMouseLeave,mouseEnter:()=>{Ce.callbacks?.uiInfo?.onNextButtonMouseEnter?.(yn(_t(),Yt,"nextButton",e.showControls))},mouseLeave:()=>{Ce.callbacks?.uiInfo?.onNextButtonMouseLeave?.(yn(_t(),Yt,"nextButton",e.showControls))},tooltipText:H("tooltip_next"),disabled:!e.nextButtonActive}:void 0),yr=v(()=>_i&&n(ln)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:vs.playPrevChapterButton,buttonComponent:Rd,buttonComponentProps:{disabled:n(Nr),click:e.playPrevChapter},tooltipText:H("tooltip_interactive_go_back"),disabledTooltipContent:H(Ei),disabled:n(Nr)}:void 0),xr=v(()=>_i&&n(Io)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:vs.seekToInteractiveButton,buttonComponent:Od,buttonComponentProps:{disabled:n(En),click:e.seekToInteractive},tooltipText:H("tooltip_interactive_seek"),disabled:n(En),disabledTooltipContent:H(Ae())}:void 0),_o=v(()=>_i&&n(bi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:vs.interactiveGraphButton,buttonComponent:Bd,buttonComponentProps:{disabled:n(cr),click:vo.toggle,graphIsOpened:A()},tooltipText:n(Eo)}:void 0),fn=v(()=>n(Mn)?{id:"liveButton",type:"desktop-control-panel-left",weight:vs.liveButton,buttonComponent:Dd,buttonComponentProps:{isLiveActive:n(zo),ariaLabel:n(vr)},tooltipText:n(vr),disabled:n(zo)&&a()===ya.PlaybackState.PLAYING}:void 0),wr=v(()=>[n(er),n(On),n(tr),n(ir),n(yr),n(xr),n(_o),n(fn)].filter(kt=>!!kt).sort(ca)),Qe=v(()=>n(pt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:hs.vkLogo,buttonComponent:kd,buttonComponentProps:{targetUrl:Nt(),logoClickable:e.logoClickable,click:Me},tooltipText:n(Br),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Dt=v(()=>n(Ln)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:hs.autoplayNext,buttonComponent:Nd,tooltipText:n(gr)}:void 0),yi=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:hs.volume,buttonComponent:Zf,buttonComponentProps:{click:ji,isAds:Je()}})),Qo=v(()=>n(Or)?{id:"subtitles",type:"desktop-control-panel-right",weight:hs.subtitles,buttonComponent:Qf,buttonComponentProps:{isSubtitlesEnabled:n(Yn),click:Ue},tooltipText:n(is)}:void 0),Xi=v(()=>n(oo)?{id:"settings",type:"desktop-control-panel-right",weight:hs.settings,buttonComponent:ul,buttonComponentProps:{ref$:Hi},tooltipText:ye()?void 0:H("tooltip_settings_off")}:void 0),Fi=v(()=>he.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:hs.context,buttonComponent:vm,buttonComponentProps:{ariaLabel:H("aria_label_context_menu")},className:n(fr)?"":"out-of-view",tooltipText:n(no)}:void 0),Po=v(()=>n(ci)?{id:"fullscreen",type:"desktop-control-panel-right",weight:hs.fullscreen,buttonComponent:Td,buttonComponentProps:{isFullscreen:P(),click:e.toggleFullscreen},tooltipText:n(dn)}:void 0),or=v(()=>n(ko)?{id:"chromecast",type:"desktop-control-panel-right",weight:hs.chromecast,buttonComponent:Id,buttonComponentProps:{state:g(),click:Uo},tooltipText:n(Xn)}:void 0),os=v(()=>[n(Qe),n(Dt),n(yi),n(Qo),n(Xi),n(Fi),n(Po),n(or),...ce()].filter(kt=>!!kt).sort(ca));var Fr=y2(),nt=de(Fr);let Ht;var ge=_(nt);let Mt=v(()=>!e.showControls),oi=v(()=>!n(Pi));ha(ge,{get isHidden(){return n(Mt)},get timelineNotAvailable(){return n(oi)},get isAds(){return Je()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return k()},get ref(){return Yt.timeline},set ref(kt){Yt.timeline=kt}});var Ai=I(ge,2),bo=_(Ai),mn=_(bo);pi(mn,17,()=>n(wr),kt=>kt.id,(kt,wt)=>{Cu(kt,{get buttonComponent(){return n(wt).buttonComponent},get buttonComponentProps(){return n(wt).buttonComponentProps},get tooltipText(){return n(wt).tooltipText},get disabledTooltipContent(){return n(wt).disabledTooltipContent},get disabled(){return n(wt).disabled},get className(){return n(wt).className},get tooltipEnabled(){return n(wt).tooltipEnabled},get mouseEnter(){return n(wt).mouseEnter},get mouseLeave(){return n(wt).mouseLeave},get ref(){return Yt[n(wt).id]},set ref(Dn){Yt[n(wt).id]=Dn}})});var ni=I(mn,2);{var ri=kt=>{let wt=v(()=>!e.showControls),Dn=v(()=>Je()?Fe():Ye()),Ur=v(()=>Je()?dt():Ct());wd(kt,{get isHidden(){return n(wt)},isMobile:!1,get showDuration(){return n(xt)},get position(){return n(Dn)},get duration(){return n(Ur)},get ref(){return Yt.time},set ref(ns){Yt.time=ns}})};M(ni,kt=>{n(an)&&kt(ri)})}var ao=I(ni,2);let Ui=v(()=>!n(Gi));fo(ao,{className:"w-max",get disabled(){return n(Ui)},get tooltipContent(){return Zi},get ref(){return Yt.episodes},set ref(kt){Yt.episodes=kt},children:(kt,wt)=>{var Dn=Oe(),Ur=de(Dn);{var ns=zr=>{Pd(zr,{get position(){return Ye()},get duration(){return Ct()},get timeCodes(){return qi}})};M(Ur,zr=>{n(Gi)&&zr(ns)})}b(kt,Dn)},$$slots:{default:!0}}),h(bo);var Bn=I(bo,2);pi(Bn,21,()=>n(os),kt=>kt.id,(kt,wt)=>{var Dn=Oe(),Ur=de(Dn);{var ns=Wr=>{Cu(Wr,{get buttonComponent(){return n(wt).buttonComponent},get buttonComponentProps(){return n(wt).buttonComponentProps},get tooltipText(){return n(wt).tooltipText},get disabledTooltipContent(){return n(wt).disabledTooltipContent},get disabled(){return n(wt).disabled},get className(){return n(wt).className},get ref(){return Yt[n(wt).id]},set ref(bs){Yt[n(wt).id]=bs}})},zr=Wr=>{let bs=v(()=>!!n(wt).disabled);wm(Wr,{get id(){return n(wt).id},get testId(){return n(wt).testId},get icon(){return n(wt).icon},get ariaLabel(){return n(wt).ariaLabel},get tooltipText(){return n(wt).tooltipText},get disabledTooltipContent(){return n(wt).disabledTooltipContent},get disabled(){return n(bs)},get onClick(){return n(wt).onClick},get disableMouseupTooltipShow(){return n(wt).disableMouseupTooltipShow},get ref(){return Yt[n(wt).id]},set ref(Sr){Yt[n(wt).id]=Sr}})};M(Ur,Wr=>{B1(n(wt))?Wr(ns):Wr(zr,!1)})}b(kt,Dn)}),h(Bn),h(Ai),tt(Ai,kt=>vt(kt),()=>vt()),h(nt),tt(nt,kt=>ut(kt),()=>ut());var lo=I(nt,2);{var nr=kt=>{Ld(kt,{get ref(){return Yt.interactiveTimeIndicator},set ref(wt){Yt.interactiveTimeIndicator=wt}})};M(lo,kt=>{mi&&kt(nr)})}O(kt=>Ht=X(nt,1,"wrapper-bottom svelte-f6e8ix",null,Ht,kt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Gn(bo,"clientWidth",kt=>N(ro,kt)),b(t,Fr),U(),o()}var hl=require("@vkontakte/videoplayer-core");var Tm=require("@vkontakte/videoplayer-shared");var w2=E('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),S2=E('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),C2={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 km(t,e){W(t,C2);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Tm.noop),r=v(()=>o()===Tm.noop),s=v(()=>n(r)||i()),a=G(!1),l=()=>{N(a,!0)},d=v(()=>n(r)?"btn-full-opacity":"");Pt(t,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(f,p)=>{var g=Oe(),u=de(g);{var y=w=>{var S=w2();b(w,S)},x=w=>{var S=S2();O(()=>Ne(S,"src",e.iconUrl)),bt("error",S,l),Ys(S),b(w,S)};M(u,w=>{n(a)?w(y):w(x,!1)})}b(f,g)},$$slots:{default:!0}})}var T2=$e('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Im(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=T2();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var D1=require("@vkontakte/videoplayer-shared");var k2=E('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),I2={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function ku(t,e){F(e,!0),W(t,I2);let i=m(e,"muted",3,!1),o=m(e,"click",3,D1.noop),r=m(e,"ref",15,void 0),a=xe().ui.t,l=v(()=>i()?a("tooltip_volume"):a("tooltip_volume_muted")),d=v(()=>i()?Im:Vs),f=v(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Pt(t,{get testId(){return n(f)},get click(){return o()},get ariaLabel(){return n(l)},role:"button",get ref(){return r()},set ref(p){r(p)},children:(p,g)=>{var u=k2();let y=v(()=>n(d));var x=_(u);fi(x,()=>n(y),(w,S)=>{S(w,{})}),h(u),b(p,u)},$$slots:{default:!0}}),U()}var E2=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Em(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=E2();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(3),h(o),b(t,o)}var P2={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
251
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Pm(t,e){W(t,P2);let i=m(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),r=v(()=>i()?"pip-icon--active":"pip-icon");Em(t,{get style(){return n(o)},get"data-testid"(){return n(r)}})}var H1=require("@vkontakte/videoplayer-shared");function Am(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),r=m(e,"click",3,H1.noop),s=z("menu_pip");Pt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(a){i(a)},children:(a,l)=>{Pm(a,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}var Mm=require("@vkontakte/videoplayer-shared");var A2=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},M2=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},L2=E("<div><!></div>"),V2=E("<div><!></div>"),R2=E("<div><!></div>"),N2=E("<!> <!> <!>",1),O2=E("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),B2=E('<div class="wrapper-middle svelte-68kopu"><!></div>'),D2=E("<div><!></div> <!> <div><!></div>",1),H2=E('<div aria-hidden="true">\xB7</div> <!>',1),F2=E('<!> <!> <div><div><div><div class="controls-group contain svelte-68kopu"><!> <!> <!> <!></div> <div class="controls-group svelte-68kopu"><!> <!> <!></div></div> <!></div></div> <!>',1),U2={hash:"svelte-68kopu",code:`.wrapper-bottom.svelte-68kopu {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-68kopu > :where(.svelte-68kopu) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-68kopu {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-68kopu {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-68kopu {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-68kopu {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-68kopu,
250
+ 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 Ed(t,e){F(e,!0),W(t,Wy);let[i,o]=Ve(),r=()=>$(S,"$isMobile",i),s=()=>$(A,"$areControlsVisible",i),a=()=>$(O,"$currentGridType$",i),l=()=>$(k,"$isInteractiveTime$",i),d=()=>$(w,"$interactiveControlsOpacity$",i),f=()=>$(L,"$showInteractiveTimeIndicatorTooltip$",i),p=()=>$(T,"$isFullscreen",i),g=m(e,"ref",15,void 0),u=Q(void 0),y=Se(),x=Yi(),{interactiveControlsOpacity$:w}=x,S=y.ui.isMobile,T=y.ui.isFullscreen,k=y.state.isInteractiveTime$,L=x.showInteractiveTimeIndicatorTooltip$,A=y.ui.controlsVisible,I=y.callbacks?.onInteractiveTimeIndicatorClick,O=y.ui.currentGridType$,G=v(()=>!r()&&s()),D=v(()=>Vs(a(),"s")),ee=v(()=>!l()||!!d()||n(G)),X=Q(!1);De(()=>{V(X,n(ee),!0)});let ae=()=>{V(X,!0)},j=()=>{ue(),n(u)?.addEventListener("animationiteration",ae,{once:!0})},ue=()=>{V(X,!1),n(u)?.removeEventListener("animationiteration",ae)},Y=te=>{L.set(te)},he=v(()=>f()&&!n(ee));De(()=>{f()?j():ue()});let _e=()=>{n(ee)||(L.set(!0),I?.())};No(()=>{L.clearTimeout(),ue()});let Ie=()=>{L.set(!1)},Fe=z("tooltip_interactive_interaction_time_indicator");var se=zy();let Ne;se.__mousemove=[Uy],se.__click=_e;var oe=_(se);co(oe,{get tooltipContent(){return Fe},get tooltipActive(){return n(he)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:Y,get ref(){return g()},set ref(te){g(te)},children:(te,be)=>{$d(te,{completed:!0})},$$slots:{default:!0}});var R=E(oe,2);let Ee;it(R,te=>g(te),()=>g());var Ce=E(R,2);let de;it(Ce,te=>V(u,te),()=>n(u)),h(se),N((te,be,Oe)=>{Ne=J(se,1,"interactive-episode-icon-animated svelte-od3veb",null,Ne,te),Ee=J(R,1,"ref-block svelte-od3veb",null,Ee,be),de=J(Ce,1,"pulse svelte-od3veb",null,de,Oe)},[()=>({mobile:r(),fullscreen:p(),invisible:n(ee),"icon-small":n(D)}),()=>({hidden:n(ee)}),()=>({paused:n(X)})]),yt("mouseleave",se,Ie),b(t,se),U(),o()}dt(["mousemove","click"]);function $u(t,e){F(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),r=m(e,"className",3,void 0),s=m(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 r()},get ref(){return s()},set ref(a){s(a)},children:(a,l)=>{var d=Be();let f=v(()=>e.buttonComponent);var p=ce(d);li(p,()=>n(f),(g,u)=>{u(g,ps(()=>e.buttonComponentProps??{}))}),b(a,d)},$$slots:{default:!0}}),U()}var vs={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 lm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=qy();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}function Rs(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),r=m(e,"width",3,"24"),s=m(e,"height",3,"24"),a=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),l=v(()=>i()?"prev-icon":"next-icon");lm(t,{get style(){return n(a)},get width(){return r()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return n(l)}})}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 $a(t,e){F(e,!0),W(t,jy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),r=m(e,"disabled",3,!1),a=Se().ui.t,l=v(()=>e.type==="prev"?a("tooltip_previous"):a("tooltip_next")),d=v(()=>e.type==="prev"?a("hotkey_map_item_prev_video_value"):a("hotkey_map_item_next_video_value")),f=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Mt(t,{get className(){return n(f)},get testId(){return`btn-${e.type??""}`},get disabled(){return r()},get ariaLabel(){return n(l)},get click(){return e.click},get ariaKeyShortCut(){return n(d)},get ref(){return i()},set ref(p){i(p)},children:(p,g)=>{var u=Gy(),y=ce(u);{var x=T=>{var k=Qy();b(T,k)};M(y,T=>{o()&&T(x)})}var w=E(y,2);let S=v(()=>e.type==="prev");Rs(w,{get isMobile(){return o()},get isPrev(){return n(S)}}),b(p,u)},$$slots:{default:!0}}),U()}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 Pd(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var T1=require("@vkontakte/videoplayer-shared");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 vl(t,e){F(e,!0),W(t,Jy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),r=m(e,"disabled",3,!1),s=m(e,"className",3,""),a=m(e,"click",3,T1.noop),l=z("tooltip_restart"),d=v(()=>`${o()?"btn-m--play":""} ${s()}`);Mt(t,{get className(){return n(d)},testId:"btn-replay",get ariaLabel(){return l},get disabled(){return r()},get click(){return a()},get ariaKeyShortCut(){return Xr.KeyK},get ref(){return i()},set ref(f){i(f)},children:(f,p)=>{var g=Xy(),u=ce(g);{var y=T=>{var k=Zy();b(T,k)};M(u,T=>{o()&&T(y)})}var x=E(u,2);let w;var S=_(x);Pd(S,{}),h(x),N(T=>w=J(x,1,"svelte-1ot3duq",null,w,T),[()=>({mobile:o()})]),b(f,g)},$$slots:{default:!0}}),U()}var e2=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 Vr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),r=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var a=e2(),l=_(a);h(a),N(()=>{Re(a,"width",i()),Re(a,"height",o()),Re(a,"viewBox",r()),Re(l,"fill",s())}),b(t,a)}var t2=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 gs(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),r=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var a=t2(),l=_(a);h(a),N(()=>{Re(a,"width",i()),Re(a,"height",o()),Re(a,"viewBox",r()),Re(l,"fill",s())}),b(t,a)}var k1=require("@vkontakte/videoplayer-shared");var i2=P('<div class="icon-background-mobile svelte-1ot3duq"></div>'),o2=P("<!> <div><!></div>",1),n2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function gl(t,e){F(e,!0),W(t,n2);let[i,o]=Ve(),r=()=>$(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=Yi(),a=m(e,"ref",15,void 0),l=m(e,"isMobile",3,!1),d=m(e,"isPlaying",3,!1),f=m(e,"disabled",3,!1),p=m(e,"className",3,""),g=m(e,"click",3,k1.noop),y=Se().ui.t,{toggle:x}=s,w=v(()=>x),S=v(()=>r()!==null),T=v(()=>n(S)?r():d()),k=v(()=>n(T)?y("tooltip_pause"):y("tooltip_play")),L=v(()=>n(T)?gs:Vr),A=v(()=>`${l()?"btn-m--play":""} ${p()}`),I=v(()=>n(S)?n(w):g());Mt(t,{get className(){return n(A)},testId:"btn-play",get click(){return n(I)},get disabled(){return f()},get ariaLabel(){return n(k)},get ariaKeyShortCut(){return Xr.KeyK},get ref(){return a()},set ref(O){a(O)},children:(O,G)=>{var D=o2();let ee=v(()=>n(L));var X=ce(D);{var ae=he=>{var _e=i2();b(he,_e)};M(X,he=>{l()&&he(ae)})}var j=E(X,2);let ue;var Y=_(j);li(Y,()=>n(ee),(he,_e)=>{_e(he,{})}),h(j),N(he=>ue=J(j,1,"svelte-1ot3duq",null,ue,he),[()=>({mobile:l()})]),b(O,D)},$$slots:{default:!0}}),U(),o()}var r2=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=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=r2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}function Ad(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),r=m(e,"disabled",3,!1),s=z("tooltip_interactive_go_back"),a=v(()=>o()?"hidden":"");Mt(t,{get className(){return n(a)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{dm(l,{})},$$slots:{default:!0}}),U()}var s2=P('<span class="gutter svelte-et3q1q"><span><!></span></span>'),a2={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 Md(t,e){F(e,!0),W(t,a2);let[i,o]=Ve(),r=()=>$(d,"$autoplayNextEnabled$",i),s=m(e,"ref",15,void 0),a=Se(),l=a.ui.t,d=a.ui.autoplayNextEnabled$,f=a.actions.internal.setAutoplayNextEnabled,p=()=>{f(!r(),!0)},g=l("aria_label_autoplay"),u=v(()=>r()?"true":"false");Mt(t,{click:p,get ariaLabel(){return g},role:"switch",get areaChecked(){return n(u)},get ref(){return s()},set ref(y){s(y)},children:(y,x)=>{var w=s2(),S=_(w);let T;var k=_(S);{var L=I=>{Vr(I,{width:"14",height:"14",fill:"#000"})},A=I=>{gs(I,{width:"14",height:"14",fill:"#000"})};M(k,I=>{r()?I(L):I(A,!1)})}h(S),h(w),N(I=>T=J(S,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:r()})]),b(y,w)},$$slots:{default:!0}}),U(),o()}var l2=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 cm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=l2();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}function Ld(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),r=m(e,"disabled",3,!1),s=z("tooltip_interactive_seek"),a=v(()=>o()?"hidden":"");Mt(t,{get className(){return n(a)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{cm(l,{})},$$slots:{default:!0}}),U()}var d2=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 um(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=d2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}var c2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function pm(t,e){W(t,c2);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");um(t,{get"data-testid"(){return n(o)}})}function Vd(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),r=m(e,"disabled",3,!1),s=m(e,"graphIsOpened",3,!1),l=Se().ui.t,d=v(()=>s()?l("tooltip_interactive_graph_on"):l("tooltip_interactive_graph_off")),f=v(()=>o()?"hidden":"");Mt(t,{get className(){return n(f)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ref(){return i()},set ref(p){i(p)},children:(p,g)=>{let u=v(()=>!!s());pm(p,{get isOpened(){return n(u)}})},$$slots:{default:!0}}),U()}var fm=require("@vkontakte/videoplayer-core");function Rd(t,e){F(e,!0);let[i,o]=Ve(),r=()=>$(f,"$playbackState$",i),s=m(e,"isMobile",3,!1),a=m(e,"isLiveActive",3,!1),l=m(e,"ariaLabel",3,""),d=Se(),f=d.state.playbackState$,p=d.actions.internal.switchToActiveLive,g=d.actions.internal.togglePlay,u=v(()=>()=>{if(!a()){p();return}r()===fm.PlaybackState.PAUSED&&g()}),y=v(()=>s()?"":"btn--live btn-full-opacity"),x=v(()=>a()?"btn-live":"btn-live-offset"),w=v(()=>a()&&r()===fm.PlaybackState.PLAYING);Mt(t,{get className(){return n(y)},get testId(){return n(x)},get disabled(){return n(w)},get ariaLabel(){return l()},get click(){return n(u)},children:(S,T)=>{ad(S,{get isActive(){return a()}})},$$slots:{default:!0}}),U(),o()}var mm=require("@vkontakte/videoplayer-shared");var u2=P('<div class="icon icon-error-stub"><div class="inner"></div></div>'),p2=P('<img class="icon" aria-hidden="true"/>');function ya(t,e){"use strict";let i=Q(!1),o=()=>{V(i,!0)};var r=Be(),s=ce(r);{var a=d=>{var f=u2();b(d,f)},l=d=>{var f=p2();N(()=>Re(f,"src",e.icon)),yt("error",f,o),Zs(f),b(d,f)};M(s,d=>{n(i)?d(a):d(l,!1)})}b(t,r)}function vm(t,e){F(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,mm.noop),r=m(e,"ref",15),s=v(()=>o()===mm.noop),a=v(()=>n(s)||i()),l=v(()=>n(s)?"btn-full-opacity":"");co(t,{get disabled(){return n(a)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return r()},set ref(d){r(d)},children:(d,f)=>{let p=v(()=>e.testId??e.id);Mt(d,{get className(){return n(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return n(p)},children:(g,u)=>{ya(g,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var I1=t=>!!t.buttonComponent;var hs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var yu=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(Sn(t,i,r,o))};var v2=P('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),g2={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {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-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function hm(t,e){F(e,!0),W(t,g2);let[i,o]=Ve(),r=()=>$(Xi,"$disabledControls$",i),s=()=>$(jt,"$adPlaybackState",i),a=()=>$(rt,"$playbackState$",i),l=()=>$(yo,"$currentSubtitle$",i),d=()=>$(wi,"$isEnded$",i),f=()=>$(mi,"$currentGridType$",i),p=()=>$(zi,"$isLive$",i),g=()=>$(Tn,"$chromecastState$",i),u=()=>$($o,"$isPictureInPictureActive",i),y=()=>$(nn,"$pictureInPictureType$",i),x=()=>$(sn,"$availableSubtitlesList$",i),w=()=>$(Si,"$contextMenuOpenedByKeyboard$",i),S=()=>$(xo,"$showContextMenuBtn$",i),T=()=>$(Gt,"$playerSize",i),k=()=>$(on,"$isRewindableLive$",i),L=()=>$(Mi,"$isActiveLive$",i),A=()=>$(Co,"$graphIsOpened$",i),I=()=>$(an,"$contextMenuVisible$",i),O=()=>$(Lt,"$isFullscreen",i),G=()=>$(ni,"$autoplayNextEnabled",i),D=()=>$(n($r),"$prevButton",i),ee=()=>$(n(is),"$replayButton",i),X=()=>$(n(ht),"$playButton",i),ae=()=>$(n(wt),"$nextButton",i),j=()=>$(n(Ri),"$playPrevChapterButton",i),ue=()=>$(n(hi),"$seekToInteractiveButton",i),Y=()=>$(n(Ko),"$interactiveGraphButton",i),he=()=>$(n(Rn),"$liveButton",i),_e=()=>$(n(Nn),"$time",i),Ie=()=>$(n(er),"$episodes",i),Fe=()=>$(n(yr),"$vkLogo",i),se=()=>$(n(Eo),"$volume",i),Ne=()=>$(n(tr),"$subtitles",i),oe=()=>$(n(Hr),"$settings",i),R=()=>$(n(Fr),"$context",i),Ee=()=>$(n(Ur),"$fullscreen",i),Ce=()=>$(n(zr),"$chromecast",i),de=()=>$(Do,"$additionalDesktopControlPanelRightButtons$",i),te=()=>$(Li,"$isInteractiveTime$",i),be=()=>$(rn,"$settingsMenuVisible",i),Oe=()=>$(Bi,"$settingButtonRef$",i),le=()=>$(wo,"$startedByKeyboard$",i),lt=()=>$(tt,"$isAudioAvailable$",i),K=()=>$(Bt,"$fakeIsPlaying$",i),Me=()=>$(So,"$seekToInteractiveDisabledTooltip$",i),Ue=()=>$(pt,"$adPosition",i),Ze=()=>$(ot,"$position$",i),ut=()=>$(Ge,"$adDuration",i),xt=()=>$(Le,"$duration$",i),gt=m(e,"playerControlsWrapperRef",15,void 0),_t=m(e,"playerControlsRef",15,void 0),Qe=m(e,"isAds",3,!1),Dt=m(e,"logoTargetUrl",3,""),zt=m(e,"isOneVideoPlaylist",3,!1),Xe=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Bt}=Yi(),$e=Se(),Ht=Yi(),ye=It(),pe=$e.actions.internal.toggleMuted,Z=$e.actions.internal.togglePlay,Pe=$e.actions.internal.pause,Ye=$e.actions.internal.toggleSubtitle,Je=$e.callbacks?.onAudioDoesNotExistHint,He=$e.callbacks?.onAudioDisabledHint,Le=$e.state.duration$,ot=$e.state.positionWithScrubbing$,rt=$e.state.playbackState$,tt=$e.state.isAudioAvailable$,Et=$e.state.isAudioDisabled,wi=$e.state.isEnded$,zi=$e.state.isLive$,Mi=$e.state.isActiveLive$,on=$e.state.isRewindableLive$,{isActive$:$o,type$:nn}=Ht.pictureInPicture$,rn=$e.ui.settingsMenu.visible$,Oo=$e.ui.settingsMenu.openedByBtnKeyboard$,Ft=$e.ui.controls,Zi=$e.actions.internal.getVideoEpisodes(),Tn=$e.state.chromecastState$,sn=$e.state.availableSubtitlesList$,yo=$e.state.currentSubtitle$,Xi=Ft.disabledControls$,an=$e.ui.contextMenu.visible$,xo=$e.ui.contextMenu.showContextMenuBtn$,Si=$e.ui.contextMenu.openedByBtnKeyboard$,wo=$e.ui.startedByKeyboard$,kn=$e.ui.controlBlocks,H=$e.ui.t,Ge=$e.ads.duration,pt=$e.ads.position,jt=$e.ads.playbackState,Lt=$e.ui.isFullscreen,Gt=$e.ui.playerSize,mi=$e.ui.currentGridType$,Do=$e.ui.additionalDesktopControlPanelRightButtons$,ni=$e.ui.autoplayNextEnabled$,bt=$e.actions.internal.getVideoElement,vi=$e.actions.internal.replayInteractive,po=$e.actions.internal.prevVideoClick,In=$e.actions.internal.nextVideoClick,gi=$e.state.isInteractive,Li=$e.state.isInteractiveTime$,fo=$e.state.showInteractiveGraph,ln=$e.state.showSeekToInteractive,dn=$e.state.showPlayPrevChapter,di=$e.state.showInteractiveTimeIndicator,Ci=$e.state.playPrevChapterDisabledTooltip,So=Ht.seekToInteractiveDisabledTooltip$,Co=Ht.graphIsOpened$,Ho=ye.features.interactiveResponsiveUi,Fo=v(()=>r().has("EPISODE_BUTTON")),Nr=v(()=>r().has("GRAPH_BUTTON")),En=v(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),fr=v(()=>r().has("PLAY_BUTTON")),jn=v(()=>r().has("REPLAY_BUTTON")),mr=v(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Uo=()=>$e.actions.internal.toggleChromecast(),Yn=v(()=>Qe()?s()==="playing":a()===xa.PlaybackState.PLAYING),Vi=v(()=>l().value!=="off"),To=v(()=>d()&&!Qe()||gi),Pn=v(()=>Ho?n(To)&&Ei(f(),"m"):n(To)),cn=v(()=>!d()||gi||Qe()),vr=v(()=>Ei(f(),"m")),An=v(()=>e.showNextPrevButtons&&Ei(f(),"m")&&!Qe()&&e.nextButtonActive),Zn=v(()=>e.showNextPrevButtons&&Ei(f(),"m")&&!Qe()&&e.prevButtonActive),gr=v(()=>!Qe()&&!!p()),un=v(()=>g()!==xa.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&Ei(f(),"m")&&!gi),Mn=v(()=>e.showAutoplayNext&&!zt()&&Ei(f(),"s")),hr=v(()=>x().length>0&&Ei(f(),"m")),_r=v(()=>w()||S()),Wi=v(()=>Ei(f(),"s")&&!Qe()),ft=v(()=>!e.logoHidden&&!Qe()),ri=v(()=>ye.features.fullscreen&&(e.logoHidden||Ei(f(),Ho?"xs":"s"))&&!(u()&&y()===1)&&(gi?Xe():!0)),zo=v(()=>(!p()||Qe())&&!(ye.features.interactiveHideTime&&gi)),ci=v(()=>T().width>100),Ti=v(()=>fo&&Ei(f(),"m")),ko=v(()=>Ho?ln&&Ei(f(),"s"):ln),Io=v(()=>Ho?dn&&Ei(f(),"s"):dn),Ji=v(()=>!Qe()&&!p()&&!!Zi?.length&&n(vr)&&!n(Fo)),Ln=v(()=>!k()||!!L()),Wo=v(()=>A()?H("tooltip_interactive_graph_on"):H("tooltip_interactive_graph_off")),mo=v(()=>I()?H("tooltip_context_menu_close"):H("tooltip_context_menu_open")),Br=(Tt,kt)=>Tt?kt&&kt===xa.PlaybackState.PAUSED?H("tooltip_play"):"":H("tooltip_live"),Or=v(()=>Br(n(Ln),a())),br=v(()=>ye.logoType==="vk_video"?H("tooltip_vk_video_logo"):H("tooltip_vk_logo")),Dr=v(()=>n(Vi)?H("tooltip_subtitles_on"):H("tooltip_subtitles_off")),Vn=v(()=>O()?H("tooltip_fullscreen_on"):H("tooltip_fullscreen_off")),Xn=v(()=>g()===xa.ChromecastState.CONNECTED?H("tooltip_chromecast_on"):H("tooltip_chromecast_off")),Jn=v(()=>G()?H("tooltip_autoplay_on"):H("tooltip_autoplay_off")),eo=Q(0),Ut=qt({}),Ki=qt({}),$r=v(()=>Ft.prevButton),is=v(()=>Ft.replayButton),ht=v(()=>Ft.playButton),wt=v(()=>Ft.nextButton),Ri=v(()=>Ft.playPrevChapterButton),hi=v(()=>Ft.seekToInteractiveButton),Ko=v(()=>Ft.interactiveGraphButton),Rn=v(()=>Ft.liveButton),Nn=v(()=>Ft.time),er=v(()=>Ft.episodes),yr=v(()=>Ft.vkLogo),Eo=v(()=>Ft.volume),tr=v(()=>Ft.subtitles),Hr=v(()=>Ft.settings),Fr=v(()=>Ft.context),Ur=v(()=>Ft.fullscreen),zr=v(()=>Ft.chromecast),qi=v(()=>({prevButton:D()?D().right-D().left:0,replayButton:ee()?ee().right-ee().left:0,playButton:X()?X().right-X().left:0,nextButton:ae()?ae().right-ae().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:ue()?ue().right-ue().left:0,interactiveGraphButton:Y()?Y().right-Y().left:0,liveButton:he()?he().right-he().left:0,time:_e()?_e().right-_e().left:0,episodes:Ie()?Ie().right-Ie().left:0,vkLogo:Fe()?Fe().right-Fe().left:0,volume:se()?se().right-se().left:0,subtitles:Ne()?Ne().right-Ne().left:0,settings:oe()?oe().right-oe().left:0,context:R()?R().right-R().left:0,fullscreen:Ee()?Ee().right-Ee().left:0,chromecast:Ce()?Ce().right-Ce().left:0,additionalButtons:de().length?de().reduce(Tt=>[...Tt,40],[]):[]})),pn=Q(0);De(()=>{(!n(pn)||n(pn)<n(qi).time)&&$t(()=>V(pn,n(qi).time,!0))});let st=Q(!1);De(()=>{let Tt=0;n(Ji)&&(Ei(f(),"xl")?Tt=n(qi).time:Tt=60);let kt=n(qi).prevButton+n(qi).playButton+n(qi).nextButton+n(qi).seekToInteractiveButton+n(qi).interactiveGraphButton+n(qi).liveButton+n(pn)+Tt;V(st,n(zo)&&n(eo)>=kt,!0)});let Ct=v(()=>n(st)&&Ei(f(),"m")),ii=(0,gm.debounceFn)(ml,260),Ni=(0,gm.debounceFn)(yu,260);De(()=>{T(),te(),ii(bt(),Ft,Ut,e.showControls),Ni(bt(),kn,Ki,e.showControls)}),De(()=>{Ki.bottom=gt()});let Bi=ie();De(()=>{be(),Oe()&&$t(()=>sl(Oe(),be(),Oo))});let ki;De(()=>{le(),$t(()=>bu(wo,le(),ki))});function Qi(){As({isAudioDisabled:Et,isAudioAvailable:lt(),isAds:Qe(),audioIsNotExistHintCallback:Je,audioDisabledHintCallback:He})&&pe()}let to=gi?vi:Z,qo=v(()=>K()!==null),Bn=v(()=>n(qo)?K():n(Yn)),io=v(()=>n(Bn)?H("tooltip_pause"):H("tooltip_play")),Gi=H("tooltip_episodes"),Qo=v(()=>n(Zn)?{id:"prevButton",type:"desktop-control-panel-left",weight:vs.prevButton,buttonComponent:$a,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:po.bind(null,!0)},tooltipEnabled:!$e.callbacks?.uiInfo?.onPrevButtonMouseEnter&&!$e.callbacks?.uiInfo?.onPrevButtonMouseLeave,mouseEnter:()=>{$e.callbacks?.uiInfo?.onPrevButtonMouseEnter?.(Sn(bt(),Ut,"prevButton",e.showControls))},mouseLeave:()=>{$e.callbacks?.uiInfo?.onPrevButtonMouseLeave?.(Sn(bt(),Ut,"prevButton",e.showControls))},tooltipText:H("tooltip_previous"),disabled:!e.prevButtonActive}:void 0),fn=v(()=>n(Pn)?{id:"replayButton",type:"desktop-control-panel-left",weight:vs.replayButton,buttonComponent:vl,buttonComponentProps:{disabled:n(jn),click:to},tooltipText:H("tooltip_restart"),disabled:n(jn)}:void 0),ir=v(()=>n(cn)?{id:"playButton",type:"desktop-control-panel-left",weight:vs.playButton,buttonComponent:gl,buttonComponentProps:{disabled:n(fr),isPlaying:n(Yn),click:Z},tooltipText:n(io),disabled:n(fr)}:void 0),or=v(()=>n(An)?{id:"nextButton",type:"desktop-control-panel-left",weight:vs.nextButton,buttonComponent:$a,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:In.bind(null,!0)},tooltipEnabled:!$e.callbacks?.uiInfo?.onNextButtonMouseEnter&&!$e.callbacks?.uiInfo?.onNextButtonMouseLeave,mouseEnter:()=>{$e.callbacks?.uiInfo?.onNextButtonMouseEnter?.(Sn(bt(),Ut,"nextButton",e.showControls))},mouseLeave:()=>{$e.callbacks?.uiInfo?.onNextButtonMouseLeave?.(Sn(bt(),Ut,"nextButton",e.showControls))},tooltipText:H("tooltip_next"),disabled:!e.nextButtonActive}:void 0),nr=v(()=>gi&&n(Io)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:vs.playPrevChapterButton,buttonComponent:Ad,buttonComponentProps:{disabled:n(mr),click:e.playPrevChapter},tooltipText:H("tooltip_interactive_go_back"),disabledTooltipContent:H(Ci),disabled:n(mr)}:void 0),xr=v(()=>gi&&n(ko)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:vs.seekToInteractiveButton,buttonComponent:Ld,buttonComponentProps:{disabled:n(En),click:e.seekToInteractive},tooltipText:H("tooltip_interactive_seek"),disabled:n(En),disabledTooltipContent:H(Me())}:void 0),mn=v(()=>gi&&n(Ti)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:vs.interactiveGraphButton,buttonComponent:Vd,buttonComponentProps:{disabled:n(Nr),click:Co.toggle,graphIsOpened:A()},tooltipText:n(Wo)}:void 0),vn=v(()=>n(gr)?{id:"liveButton",type:"desktop-control-panel-left",weight:vs.liveButton,buttonComponent:Rd,buttonComponentProps:{isLiveActive:n(Ln),ariaLabel:n(Or)},tooltipText:n(Or),disabled:n(Ln)&&a()===xa.PlaybackState.PLAYING}:void 0),ji=v(()=>[n(Qo),n(fn),n(ir),n(or),n(nr),n(xr),n(mn),n(vn)].filter(Tt=>!!Tt).sort(ua)),Ke=v(()=>n(ft)?{id:"vkLogo",type:"desktop-control-panel-right",weight:hs.vkLogo,buttonComponent:wd,buttonComponentProps:{targetUrl:Dt(),logoClickable:e.logoClickable,click:Pe},tooltipText:n(br),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Wt=v(()=>n(Mn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:hs.autoplayNext,buttonComponent:Md,tooltipText:n(Jn)}:void 0),_i=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:hs.volume,buttonComponent:zf,buttonComponentProps:{click:Qi,isAds:Qe()}})),Go=v(()=>n(hr)?{id:"subtitles",type:"desktop-control-panel-right",weight:hs.subtitles,buttonComponent:Df,buttonComponentProps:{isSubtitlesEnabled:n(Vi),click:Ye},tooltipText:n(Dr)}:void 0),oo=v(()=>n(Wi)?{id:"settings",type:"desktop-control-panel-right",weight:hs.settings,buttonComponent:ul,buttonComponentProps:{ref$:Bi},tooltipText:be()?void 0:H("tooltip_settings_off")}:void 0),rr=v(()=>ye.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:hs.context,buttonComponent:am,buttonComponentProps:{ariaLabel:H("aria_label_context_menu")},className:n(_r)?"":"out-of-view",tooltipText:n(mo)}:void 0),ge=v(()=>n(ri)?{id:"fullscreen",type:"desktop-control-panel-right",weight:hs.fullscreen,buttonComponent:xd,buttonComponentProps:{isFullscreen:O(),click:e.toggleFullscreen},tooltipText:n(Vn)}:void 0),Vt=v(()=>n(un)?{id:"chromecast",type:"desktop-control-panel-right",weight:hs.chromecast,buttonComponent:Sd,buttonComponentProps:{state:g(),click:Uo},tooltipText:n(Xn)}:void 0),ui=v(()=>[n(Ke),n(Wt),n(_i),n(Go),n(oo),n(rr),n(ge),n(Vt),...de()].filter(Tt=>!!Tt).sort(ua));var Oi=v2(),et=ce(Oi);let Ot;var oi=_(et);let Po=v(()=>!e.showControls),Ao=v(()=>!n(ci));_a(oi,{get isHidden(){return n(Po)},get timelineNotAvailable(){return n(Ao)},get isAds(){return Qe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return k()},get ref(){return Ut.timeline},set ref(Tt){Ut.timeline=Tt}});var gn=E(oi,2),On=_(gn),Dn=_(On);ai(Dn,17,()=>n(ji),Tt=>Tt.id,(Tt,kt)=>{$u(Tt,{get buttonComponent(){return n(kt).buttonComponent},get buttonComponentProps(){return n(kt).buttonComponentProps},get tooltipText(){return n(kt).tooltipText},get disabledTooltipContent(){return n(kt).disabledTooltipContent},get disabled(){return n(kt).disabled},get className(){return n(kt).className},get tooltipEnabled(){return n(kt).tooltipEnabled},get mouseEnter(){return n(kt).mouseEnter},get mouseLeave(){return n(kt).mouseLeave},get ref(){return Ut[n(kt).id]},set ref(hn){Ut[n(kt).id]=hn}})});var Di=E(Dn,2);{var si=Tt=>{let kt=v(()=>!e.showControls),hn=v(()=>Qe()?Ue():Ze()),os=v(()=>Qe()?ut():xt());bd(Tt,{get isHidden(){return n(kt)},isMobile:!1,get showDuration(){return n(Ct)},get position(){return n(hn)},get duration(){return n(os)},get ref(){return Ut.time},set ref(Wr){Ut.time=Wr}})};M(Di,Tt=>{n(zo)&&Tt(si)})}var jo=E(Di,2);let no=v(()=>!n(Ji));co(jo,{className:"w-max",get disabled(){return n(no)},get tooltipContent(){return Gi},get ref(){return Ut.episodes},set ref(Tt){Ut.episodes=Tt},children:(Tt,kt)=>{var hn=Be(),os=ce(hn);{var Wr=ns=>{Td(ns,{get position(){return Ze()},get duration(){return xt()},get timeCodes(){return Zi}})};M(os,ns=>{n(Ji)&&ns(Wr)})}b(Tt,hn)},$$slots:{default:!0}}),h(On);var sr=E(On,2);ai(sr,21,()=>n(ui),Tt=>Tt.id,(Tt,kt)=>{var hn=Be(),os=ce(hn);{var Wr=Sr=>{$u(Sr,{get buttonComponent(){return n(kt).buttonComponent},get buttonComponentProps(){return n(kt).buttonComponentProps},get tooltipText(){return n(kt).tooltipText},get disabledTooltipContent(){return n(kt).disabledTooltipContent},get disabled(){return n(kt).disabled},get className(){return n(kt).className},get ref(){return Ut[n(kt).id]},set ref(Os){Ut[n(kt).id]=Os}})},ns=Sr=>{let Os=v(()=>!!n(kt).disabled);vm(Sr,{get id(){return n(kt).id},get testId(){return n(kt).testId},get icon(){return n(kt).icon},get ariaLabel(){return n(kt).ariaLabel},get tooltipText(){return n(kt).tooltipText},get disabledTooltipContent(){return n(kt).disabledTooltipContent},get disabled(){return n(Os)},get onClick(){return n(kt).onClick},get disableMouseupTooltipShow(){return n(kt).disableMouseupTooltipShow},get ref(){return Ut[n(kt).id]},set ref(ar){Ut[n(kt).id]=ar}})};M(os,Sr=>{I1(n(kt))?Sr(Wr):Sr(ns,!1)})}b(Tt,hn)}),h(sr),h(gn),it(gn,Tt=>_t(Tt),()=>_t()),h(et),it(et,Tt=>gt(Tt),()=>gt());var ro=E(et,2);{var wr=Tt=>{Ed(Tt,{get ref(){return Ut.interactiveTimeIndicator},set ref(kt){Ut.interactiveTimeIndicator=kt}})};M(ro,Tt=>{di&&Tt(wr)})}N(Tt=>Ot=J(et,1,"wrapper-bottom svelte-f6e8ix",null,Ot,Tt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Gn(On,"clientWidth",Tt=>V(eo,Tt)),b(t,Oi),U(),o()}var hl=require("@vkontakte/videoplayer-core");var _m=require("@vkontakte/videoplayer-shared");var h2=P('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),_2=P('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),b2={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 bm(t,e){W(t,b2);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,_m.noop),r=v(()=>o()===_m.noop),s=v(()=>n(r)||i()),a=Q(!1),l=()=>{V(a,!0)},d=v(()=>n(r)?"btn-full-opacity":"");Mt(t,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(f,p)=>{var g=Be(),u=ce(g);{var y=w=>{var S=h2();b(w,S)},x=w=>{var S=_2();N(()=>Re(S,"src",e.iconUrl)),yt("error",S,l),Zs(S),b(w,S)};M(u,w=>{n(a)?w(y):w(x,!1)})}b(f,g)},$$slots:{default:!0}})}var $2=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 $m(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=$2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var E1=require("@vkontakte/videoplayer-shared");var y2=P('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),x2={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function xu(t,e){F(e,!0),W(t,x2);let i=m(e,"muted",3,!1),o=m(e,"click",3,E1.noop),r=m(e,"ref",15,void 0),a=Se().ui.t,l=v(()=>i()?a("tooltip_volume"):a("tooltip_volume_muted")),d=v(()=>i()?$m:Ls),f=v(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Mt(t,{get testId(){return n(f)},get click(){return o()},get ariaLabel(){return n(l)},role:"button",get ref(){return r()},set ref(p){r(p)},children:(p,g)=>{var u=y2();let y=v(()=>n(d));var x=_(u);li(x,()=>n(y),(w,S)=>{S(w,{})}),h(u),b(p,u)},$$slots:{default:!0}}),U()}var w2=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 ym(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=w2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(3),h(o),b(t,o)}var S2={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
251
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function xm(t,e){W(t,S2);let i=m(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),r=v(()=>i()?"pip-icon--active":"pip-icon");ym(t,{get style(){return n(o)},get"data-testid"(){return n(r)}})}var P1=require("@vkontakte/videoplayer-shared");function wm(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),r=m(e,"click",3,P1.noop),s=z("menu_pip");Mt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(a){i(a)},children:(a,l)=>{xm(a,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}var Sm=require("@vkontakte/videoplayer-shared");var C2=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},T2=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},k2=P("<div><!></div>"),I2=P("<div><!></div>"),E2=P("<div><!></div>"),P2=P("<!> <!> <!>",1),A2=P("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),M2=P('<div class="wrapper-middle svelte-68kopu"><!></div>'),L2=P("<div><!></div> <!> <div><!></div>",1),V2=P('<div aria-hidden="true">\xB7</div> <!>',1),R2=P('<!> <!> <div><div><div><div class="controls-group contain svelte-68kopu"><!> <!> <!> <!></div> <div class="controls-group svelte-68kopu"><!> <!> <!></div></div> <!></div></div> <!>',1),N2={hash:"svelte-68kopu",code:`.wrapper-bottom.svelte-68kopu {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-68kopu > :where(.svelte-68kopu) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-68kopu {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-68kopu {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-68kopu {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-68kopu {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-68kopu,
252
252
  .wrapper-middle-left-second.svelte-68kopu,
253
253
  .wrapper-middle-right.svelte-68kopu {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-68kopu {left:12px;}.wrapper-middle-left-second.svelte-68kopu {left:64px;}.wrapper-middle-right.svelte-68kopu {right:12px;}.controls.svelte-68kopu {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-68kopu {display:flex;}.controls-group.contain.svelte-68kopu {min-width:0;}.controls-group.svelte-68kopu > *:not(:first-child) {margin-left:8px;}.hidden.svelte-68kopu {visibility:hidden;opacity:0;}.controls-hidden.svelte-68kopu {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-68kopu {transition:none;}.overlay-mobile.svelte-68kopu {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);}
254
254
 
@@ -256,7 +256,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Yh=z_;var f
256
256
  }
257
257
 
258
258
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-68kopu {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-68kopu {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-68kopu {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-68kopu {left:96px;}.wrapper-middle-right.fullscreen.svelte-68kopu {right:44px;}.controls-wrapper.fullscreen.svelte-68kopu {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
259
- }`};function Lm(t,e){F(e,!0),W(t,U2);let[i,o]=Ve(),r=()=>$(Oi,"$seekToInteractiveDisabledTooltip$",i),s=()=>$(Cn,"$disabledControls$",i),a=()=>$(Ce,"$playbackState$",i),l=()=>$(To,"$adPlaybackState",i),d=()=>$(me,"$isEnded$",i),f=()=>$(H,"$playerSize",i),p=()=>$(Le,"$scrubbingInProgress",i),g=()=>$(Sn,"$chromecastState$",i),u=()=>$(qt,"$isPictureInPictureActive",i),y=()=>$(Ut,"$pictureInPictureType$",i),x=()=>$(ot,"$mobileNotReportControlHidden$",i),w=()=>$(Oo,"$chromecastHidden",i),S=()=>$(Kt,"$playerPhase",i),T=()=>$(wn,"$pipHidden",i),k=()=>$(on,"$currentGridType$",i),V=()=>$(eo,"$vkLogoHidden",i),A=()=>$(Qt,"$volumeHidden",i),L=()=>$(j,"$isLive$",i),P=()=>$(Rt,"$settingsMenuVisible",i),Q=()=>$(Ke,"$isRewindableLive$",i),D=()=>$(Xe,"$isActiveLive$",i),J=()=>$(Ze,"$isAudioAvailable$",i),ie=()=>$(Ue,"$muted$",i),re=()=>$(Me,"$volume$",i),Z=()=>$(Wt,"$isInteractiveTime$",i),ue=()=>$(Eo,"$settingButtonRef$",i),Y=()=>$(Ti,"$startedByKeyboard$",i),we=()=>$(Tn,"$isFullscreen",i),_e=()=>$(qe,"$additionalButtons$",i),Ee=()=>$(Ni,"$autoplayNextToggleHidden",i),He=()=>$(tn,"$crashed$",i),ae=()=>$(en,"$settingsHidden",i),Re=()=>$(Ii,"$graphIsOpened$",i),ne=()=>$(ki,"$adPosition",i),R=()=>$(Co,"$adDuration",i),Pe=()=>$(Ft,"$position$",i),Te=()=>$(At,"$duration$",i),ce=m(e,"playerControlsWrapperRef",15,void 0),ee=m(e,"playerControlsRef",15,void 0),ye=m(e,"isAds",3,!1),De=m(e,"logoTargetUrl",3,""),le=m(e,"isOneVideoPlaylist",3,!1),at=m(e,"customFullscreenSupported",3,!0),K=xe(),Ae=Ji(),Fe=Tt(),Ye=K.actions.internal.toggleMuted,dt=K.actions.internal.togglePlay,Ct=K.actions.internal.pause,ut=K.actions.internal.prevVideoClick,vt=K.actions.internal.nextVideoClick,Je=K.callbacks?.onAudioDoesNotExistHint,Nt=K.callbacks?.onAudioDisabledHint,Kt=K.playerPhase,At=K.state.duration$,Ft=K.state.positionWithScrubbing$,Ce=K.state.playbackState$,Ze=K.state.isAudioAvailable$,he=K.state.isAudioDisabled,me=K.state.isEnded$,j=K.state.isLive$,Me=K.state.volume$,Ue=K.state.muted$,Xe=K.state.isActiveLive$,Ke=K.state.isRewindableLive$,Le=K.ui.scrubbingInProgress,ot=K.ui.mobileNotReportControlHidden$,{isActive$:qt,type$:Ut}=Ae.pictureInPicture$,Rt=K.ui.settingsMenu.visible$,$t=K.ui.settingsMenu.openedByBtnKeyboard$,yt=K.ui.controls,{volume:Qt,vkLogo:eo,autoplayNextToggle:Ni,pip:wn,settings:en,chromecast:Oo}=K.ui.hiddenControls,zt=K.actions.internal.getVideoEpisodes(),qi=K.webApi.pictureInPictureApi,Sn=K.state.chromecastState$,tn=K.state.crashed$,Cn=yt.disabledControls$,Ti=K.ui.startedByKeyboard$,on=K.ui.currentGridType$,Co=K.ads.duration,ki=K.ads.position,To=K.ads.playbackState,Tn=K.ui.isFullscreen,H=K.ui.playerSize,qe=K.ui.additionalButtonsDeprecated$,ct=K.actions.internal.getVideoElement,Jt=K.actions.internal.replayInteractive,Ot=K.state.isInteractive,Wt=K.state.isInteractiveTime$,hi=K.state.showInteractiveGraph,kn=K.state.showSeekToInteractive,di=K.state.showPlayPrevChapter,_t=K.state.showInteractiveTimeIndicator,Oi=Ae.seekToInteractiveDisabledTooltip$,Ii=Ae.graphIsOpened$,In=K.ui.controlBlocks,_i=v(()=>z(K.state.playPrevChapterDisabledTooltip)),to=v(()=>z(r())),io=v(()=>s().has("EPISODE_BUTTON")),nn=v(()=>s().has("GRAPH_BUTTON")),Bo=v(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),mi=v(()=>s().has("PLAY_BUTTON")),Ei=v(()=>s().has("REPLAY_BUTTON")),Do=v(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),vo=v(()=>a()===hl.PlaybackState.PLAYING),Ho=v(()=>l()==="paused"),Fo=v(()=>d()&&!ye()&&!Ot),cr=v(()=>!d()||ye()),En=v(()=>e.showNextPrevButtons&&!ye()&&e.prevButtonActive),ur=v(()=>e.showNextPrevButtons&&!ye()&&e.nextButtonActive),jn=v(()=>f().width>300),Nr=v(()=>f().width>400),Uo=v(p),Pn=v(()=>g()!==hl.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&!x()&&!Ot&&!w()),Yn=v(()=>S()==="LiveWaitingStart"),rn=v(()=>!!qi&&g()!==hl.ChromecastState.CONNECTED&&!x()&&(y()===1&&n(Yn)||!n(Yn))&&!n(Uo)&&!Ot&&!T()),Qi=G(!1);Et(()=>{let et=qi?.info.isActive$.subscribe(xt=>N(Qi,xt,!0));return()=>et?.unsubscribe()});let An=v(()=>!n(Uo)&&Li(k(),"s")),pr=v(()=>!e.logoHidden&&f().width>350&&!V()),sn=v(()=>Fe.features.fullscreen&&!(u()&&y()===1)&&(Ot?at():!0)&&!n(Uo)&&!n(Qi)),Zn=v(()=>!A()&&!n(Uo)),Mn=v(()=>(!L()||ye())&&f().width>260&&!n(Uo)&&!(Fe.features.interactiveHideTime&&Ot)),ko=v(()=>P()||e.showControls),Ln=v(()=>!ye()&&!L()&&!!zt?.length&&n(jn)&&!n(io)&&!n(Uo)),Or=v(()=>!Q()||!!D()),fr=v(()=>hi&&Li(k(),"m")),oo=v(()=>!J()||ie()||re()===0),pt=Xt({}),ci=Xt({}),an=(0,Mm.debounceFn)(ml,260),Pi=(0,Mm.debounceFn)(Tu,260);Be(()=>{f(),Z(),an(ct(),yt,pt,e.showControls),Pi(ct(),In,ci,e.showControls)});let bi=()=>K.actions.internal.toggleChromecast();async function Io(){qi?.isActive()?await qi?.exit():await qi?.request()}function ln(){Ms({isAudioDisabled:he,audioDisabledHintCallback:Nt,isAudioAvailable:J(),audioIsNotExistHintCallback:Je,isAds:ye()})&&Ye()}let Gi=G(""),zo=(et,xt)=>{if(!et){N(Gi,z("tooltip_live"),!0);return}xt&&xt===hl.PlaybackState.PAUSED&&N(Gi,z("tooltip_play"),!0)};Be(()=>{zo(n(Or),a())});let Eo=te();Be(()=>{ue()&&sl(ue(),P(),$t)}),Be(()=>{Su(Ti,Y(),pt.playButton)});var no=F2(),mr=de(no);{var vr=et=>{var xt=O2(),ui=de(xt);let Di;var Hi=I(ui,2);let $i;tt(Hi,nt=>ci.topLeft=nt,()=>ci?.topLeft);var ji=I(Hi,2);let Yi;var so=_(ji);pi(so,1,_e,({iconUrl:nt,ariaLabel:Ht,testId:ge,onClick:Mt,tooltip:oi})=>nt,(nt,Ht)=>{let ge=()=>n(Ht).iconUrl,Mt=()=>n(Ht).ariaLabel,oi=()=>n(Ht).testId,Ai=()=>n(Ht).onClick,bo=()=>n(Ht).tooltip,mn=v(()=>Mt()??bo());km(nt,{get iconUrl(){return ge()},get ariaLabel(){return n(mn)},get testId(){return oi()},get onClick(){return Ai()}})});var Nn=I(so,2);{var ho=nt=>{Nd(nt,{get ref(){return pt.autoplayNextToggle},set ref(Ht){pt.autoplayNextToggle=Ht}})};M(Nn,nt=>{e.showAutoplayNext&&!le()&&!Ee()&&nt(ho)})}var Zi=I(Nn,2);{var er=nt=>{Id(nt,{isMobile:!0,click:bi,get state(){return g()},get ref(){return pt.chromecast},set ref(Ht){pt.chromecast=Ht}})};M(Zi,nt=>{n(Pn)&&nt(er)})}var On=I(Zi,2);{var tr=nt=>{Am(nt,{click:Io,get isPictureInPictureActive(){return u()},get ref(){return pt.pip},set ref(Ht){pt.pip=Ht}})};M(On,nt=>{n(rn)&&nt(tr)})}var ir=I(On,2);{var yr=nt=>{ul(nt,{get ref$(){return Eo}})};M(ir,nt=>{He()&&!ae()&&nt(yr)})}var xr=I(ir,2);{var _o=nt=>{kd(nt,{get click(){return Ct},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return pt.vkLogo},set ref(Ht){pt.vkLogo=Ht}})};M(xr,nt=>{n(pr)&&nt(_o)})}h(ji),tt(ji,nt=>ci.topRight=nt,()=>ci?.topRight);var fn=I(ji,2);let wr;var Qe=_(fn);{var Dt=nt=>{let Ht=v(()=>ut.bind(null,!0));ba(nt,{get click(){return n(Ht)},type:"prev",isMobile:!0,get ref(){return pt.prevButton},set ref(ge){pt.prevButton=ge}})};M(Qe,nt=>{n(En)&&nt(Dt)})}var yi=I(Qe,2);{var Qo=nt=>{gl(nt,{get disabled(){return n(mi)},get click(){return dt},isMobile:!0,get isPlaying(){return n(vo)},get ref(){return pt.playButton},set ref(Ht){pt.playButton=Ht}})};M(yi,nt=>{n(cr)&&nt(Qo)})}var Xi=I(yi,2);{var Fi=nt=>{vl(nt,{get disabled(){return n(Ei)},get click(){return dt},isMobile:!0,get ref(){return pt.replayButton},set ref(Ht){pt.replayButton=Ht}})};M(Xi,nt=>{n(Fo)&&nt(Fi)})}var Po=I(Xi,2);{var or=nt=>{let Ht=v(()=>vt.bind(null,!0));ba(nt,{get click(){return n(Ht)},type:"next",isMobile:!0,get ref(){return pt.nextButton},set ref(ge){pt.nextButton=ge}})};M(Po,nt=>{n(ur)&&nt(or)})}h(fn),tt(fn,nt=>ci.middle=nt,()=>ci?.middle);var os=I(fn,2);{var Fr=nt=>{var Ht=N2(),ge=de(Ht);{var Mt=ni=>{var ri=L2();let ao;ri.__click=[A2,Do,e,_i];var Ui=_(ri);let Bn=v(()=>!e.showControls);Rd(Ui,{get hidden(){return n(Bn)},get disabled(){return n(Do)},get click(){return e.playPrevChapter},get ref(){return pt.playPrevChapterButton},set ref(lo){pt.playPrevChapterButton=lo}}),h(ri),O(lo=>ao=X(ri,1,"wrapper-middle-left svelte-68kopu",null,ao,lo),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(ni,ri)};M(ge,ni=>{di&&ni(Mt)})}var oi=I(ge,2);{var Ai=ni=>{var ri=V2();let ao;var Ui=_(ri);let Bn=v(()=>!e.showControls&&!Re());Bd(Ui,{get hidden(){return n(Bn)},get disabled(){return n(nn)},get click(){return Ii.toggle},get graphIsOpened(){return Re()},get ref(){return pt.interactiveGraphButton},set ref(lo){pt.interactiveGraphButton=lo}}),h(ri),O(lo=>ao=X(ri,1,Jl(di?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-68kopu",ao,lo),[()=>({fullscreen:we(),hidden:!e.showControls&&!Re()})]),b(ni,ri)};M(oi,ni=>{n(fr)&&ni(Ai)})}var bo=I(oi,2);{var mn=ni=>{var ri=R2();let ao;ri.__click=[M2,Bo,e,to];var Ui=_(ri);let Bn=v(()=>!e.showControls);Od(Ui,{get hidden(){return n(Bn)},get disabled(){return n(Bo)},get click(){return e.seekToInteractive},get ref(){return pt.seekToInteractiveButton},set ref(lo){pt.seekToInteractiveButton=lo}}),h(ri),O(lo=>ao=X(ri,1,"wrapper-middle-right svelte-68kopu",null,ao,lo),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(ni,ri)};M(bo,ni=>{kn&&ni(mn)})}b(nt,Ht)};M(os,nt=>{Ot&&!p()&&nt(Fr)})}O((nt,Ht,ge,Mt)=>{Di=X(ui,1,"overlay-mobile svelte-68kopu",null,Di,nt),$i=X(Hi,1,"wrapper-top-left svelte-68kopu",null,$i,Ht),Yi=X(ji,1,"wrapper-top-right svelte-68kopu",null,Yi,ge),wr=X(fn,1,"wrapper-middle svelte-68kopu",null,wr,Mt)},[()=>({hidden:!n(ko)}),()=>({hidden:!e.showControls,fullscreen:we()}),()=>({hidden:!e.showControls&&!x(),fullscreen:we()}),()=>({hidden:!e.showControls||p()||e.endScreenShown&&e.showNextPrevButtons})]),b(et,xt)};M(mr,et=>{ye()||et(vr)})}var Br=I(mr,2);{var is=et=>{var xt=D2(),ui=de(xt);let Di;var Hi=_(ui);ku(Hi,{get muted(){return ie()},click:ln,get ref(){return pt.volume},set ref(ho){pt.volume=ho}}),h(ui);var $i=I(ui,2);{var ji=ho=>{var Zi=B2(),er=_(Zi);let On=v(()=>!n(Ho));gl(er,{get disabled(){return n(mi)},get click(){return dt},isMobile:!0,get isPlaying(){return n(On)},get ref(){return pt.playButton},set ref(tr){pt.playButton=tr}}),h(Zi),b(ho,Zi)};M($i,ho=>{n(Ho)&&ho(ji)})}var Yi=I($i,2);let so;var Nn=_(Yi);Ed(Nn,{get position(){return ne()},get duration(){return R()}}),h(Yi),O((ho,Zi)=>{Di=X(ui,1,"wrapper-top-right svelte-68kopu",null,Di,ho),so=X(Yi,1,"wrapper-bottom ads-timeline-mobile svelte-68kopu",null,so,Zi)},[()=>({fullscreen:we()}),()=>({fullscreen:we()})]),b(et,xt)};M(Br,et=>{ye()&&l()!=="inactive"&&et(is)})}var dn=I(Br,2);let Xn;var gr=_(dn);let ro;var Yt=_(gr);X(Yt,1,"controls svelte-68kopu",null,{},{mobile:!0});var Wo=_(Yt),Ko=_(Wo);{var cn=et=>{fo(et,{get disabled(){return n(Ei)},get ref(){return pt.replayButton},set ref(xt){pt.replayButton=xt},children:(xt,ui)=>{vl(xt,{get disabled(){return n(Ei)},get click(){return Jt}})},$$slots:{default:!0}})};M(Ko,et=>{Ot&&et(cn)})}var gt=I(Ko,2);{var Bt=et=>{fo(et,{get ref(){return pt.liveButton},set ref(xt){pt.liveButton=xt},children:(xt,ui)=>{Dd(xt,{get isLiveActive(){return n(Or)},isMobile:!0,get ariaLabel(){return n(Gi)}})},$$slots:{default:!0}})};M(gt,et=>{!ye()&&L()&&et(Bt)})}var Bi=I(gt,2);{var Gt=et=>{let xt=v(()=>ye()?ne():Pe()),ui=v(()=>ye()?R():Te()),Di=v(()=>!e.showControls);wd(et,{get showDuration(){return n(Nr)},get position(){return n(xt)},get duration(){return n(ui)},isMobile:!0,get isHidden(){return n(Di)},get ref(){return pt.time},set ref(Hi){pt.time=Hi}})};M(Bi,et=>{n(Mn)&&et(Gt)})}var un=I(Bi,2);let Vn=v(()=>!n(Ln));fo(un,{className:"w-max",get disabled(){return n(Vn)},get ref(){return pt.episodes},set ref(et){pt.episodes=et},children:(et,xt)=>{var ui=Oe(),Di=de(ui);{var Hi=$i=>{var ji=H2(),Yi=I(de(ji),2);Pd(Yi,{get position(){return Pe()},get duration(){return Te()},get timeCodes(){return zt}}),b($i,ji)};M(Di,$i=>{n(Ln)&&$i(Hi)})}b(et,ui)},$$slots:{default:!0}}),h(Wo),tt(Wo,et=>ci.bottomRight=et,()=>ci?.bottomRight);var pn=I(Wo,2),hr=_(pn);{var Dr=et=>{fo(et,{get ref(){return pt.volume},set ref(xt){pt.volume=xt},children:(xt,ui)=>{ku(xt,{get muted(){return n(oo)},click:ln})},$$slots:{default:!0}})};M(hr,et=>{n(Zn)&&et(Dr)})}var _r=I(hr,2);{var br=et=>{fo(et,{get ref(){return pt.settings},set ref(xt){pt.settings=xt},children:(xt,ui)=>{ul(xt,{get ref$(){return Eo}})},$$slots:{default:!0}})};M(_r,et=>{n(An)&&et(br)})}var qo=I(_r,2);{var Jn=et=>{fo(et,{get ref(){return pt.fullscreen},set ref(xt){pt.fullscreen=xt},children:(xt,ui)=>{Td(xt,{get click(){return e.toggleFullscreen},get isFullscreen(){return we()}})},$$slots:{default:!0}})};M(qo,et=>{n(sn)&&et(Jn)})}h(pn),tt(pn,et=>ci.bottomRight=et,()=>ci?.bottomRight),h(Yt),tt(Yt,et=>ee(et),()=>ee());var $r=I(Yt,2);let Hr=v(()=>!e.showControls);ha($r,{get isHidden(){return n(Hr)},get isAds(){return ye()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Q()},get ref(){return pt.timeline},set ref(et){pt.timeline=et}}),h(gr),h(dn),tt(dn,et=>ce(et),()=>ce());var go=I(dn,2);{var Rn=et=>{Ld(et,{get ref(){return pt.interactiveTimeIndicator},set ref(xt){pt.interactiveTimeIndicator=xt}})};M(go,et=>{_t&&et(Rn)})}O((et,xt)=>{Xn=X(dn,1,"wrapper-bottom svelte-68kopu",null,Xn,et),ro=X(gr,1,"controls-wrapper svelte-68kopu",null,ro,xt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:we()})]),b(t,no),U(),o()}st(["click"]);function Hd(t,e){F(e,!0);let[i,o]=Ve(),r=()=>$(T,"$isMobile",i),s=m(e,"bottomNoSmooth",3,!1),a=m(e,"playerControlsWrapperRef",15,void 0),l=m(e,"playerControlsRef",15,void 0),d=m(e,"isAds",3,!1),f=m(e,"logoTargetUrl",3,""),p=m(e,"showAutoplayNext",3,!1),g=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),y=m(e,"endScreenShown",3,!1),x=m(e,"onDisabledPlayPrevChapterClick",3,Vm.noop),w=m(e,"onDisabledSeekToInteractiveClick",3,Vm.noop),T=xe().ui.isMobile,k=G(!1);Et(()=>{let P=setTimeout(()=>N(k,!0),0);return()=>clearTimeout(P)});var V=Oe(),A=de(V);{var L=P=>{var Q=Oe(),D=de(Q);{var J=re=>{Lm(re,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return d()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return f()},get showAutoplayNext(){return p()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return g()},get customFullscreenSupported(){return u()},get endScreenShown(){return y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return x()},get onDisabledSeekToInteractiveClick(){return w()},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(Z){a(Z)},get playerControlsRef(){return l()},set playerControlsRef(Z){l(Z)}})},ie=re=>{Cm(re,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return d()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return f()},get isOneVideoPlaylist(){return g()},get showAutoplayNext(){return p()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(Z){a(Z)},get playerControlsRef(){return l()},set playerControlsRef(Z){l(Z)}})};M(D,re=>{r()?re(J):re(ie,!1)})}b(P,Q)};M(A,P=>{n(k)&&P(L)})}b(t,V),U(),o()}var z2=$e('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Rm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=z2();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}function Nm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Rm(t,{get style(){return n(o)}})}var W2=$e('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function Om(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=W2();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}var K2=$e('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Bm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=K2();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}function Iu(t,e){let i=m(e,"isOff",3,!1);var o=Oe(),r=de(o);{var s=l=>{Bm(l,{})},a=l=>{Om(l,{})};M(r,l=>{i()?l(s):l(a,!1)})}b(t,o)}var q2=$e('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function Dm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=q2();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}function Hm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Dm(t,{get style(){return n(o)}})}var Q2=$e('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function Fm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(2),h(o),b(t,o)}function Um(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Fm(t,{get style(){return n(o)}})}var G2=E('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),j2=E('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Y2=E("<div><!></div>"),Z2={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;
259
+ }`};function Cm(t,e){F(e,!0),W(t,N2);let[i,o]=Ve(),r=()=>$(vi,"$seekToInteractiveDisabledTooltip$",i),s=()=>$(yo,"$disabledControls$",i),a=()=>$($e,"$playbackState$",i),l=()=>$(wo,"$adPlaybackState",i),d=()=>$(pe,"$isEnded$",i),f=()=>$(H,"$playerSize",i),p=()=>$(Le,"$scrubbingInProgress",i),g=()=>$(Tn,"$chromecastState$",i),u=()=>$(rt,"$isPictureInPictureActive",i),y=()=>$(tt,"$pictureInPictureType$",i),x=()=>$(ot,"$mobileNotReportControlHidden$",i),w=()=>$(Oo,"$chromecastHidden",i),S=()=>$(zt,"$playerPhase",i),T=()=>$(nn,"$pipHidden",i),k=()=>$(an,"$currentGridType$",i),L=()=>$(on,"$vkLogoHidden",i),A=()=>$(Mi,"$volumeHidden",i),I=()=>$(Z,"$isLive$",i),O=()=>$(Et,"$settingsMenuVisible",i),G=()=>$(He,"$isRewindableLive$",i),D=()=>$(Je,"$isActiveLive$",i),ee=()=>$(Ht,"$isAudioAvailable$",i),X=()=>$(Ye,"$muted$",i),ae=()=>$(Pe,"$volume$",i),j=()=>$(Gt,"$isInteractiveTime$",i),ue=()=>$(Wo,"$settingButtonRef$",i),Y=()=>$(Xi,"$startedByKeyboard$",i),he=()=>$(kn,"$isFullscreen",i),_e=()=>$(Ge,"$additionalButtons$",i),Ie=()=>$($o,"$autoplayNextToggleHidden",i),Fe=()=>$(sn,"$crashed$",i),se=()=>$(rn,"$settingsHidden",i),Ne=()=>$(po,"$graphIsOpened$",i),oe=()=>$(Si,"$adPosition",i),R=()=>$(xo,"$adDuration",i),Ee=()=>$(Bt,"$position$",i),Ce=()=>$(Xe,"$duration$",i),de=m(e,"playerControlsWrapperRef",15,void 0),te=m(e,"playerControlsRef",15,void 0),be=m(e,"isAds",3,!1),Oe=m(e,"logoTargetUrl",3,""),le=m(e,"isOneVideoPlaylist",3,!1),lt=m(e,"customFullscreenSupported",3,!0),K=Se(),Me=Yi(),Ue=It(),Ze=K.actions.internal.toggleMuted,ut=K.actions.internal.togglePlay,xt=K.actions.internal.pause,gt=K.actions.internal.prevVideoClick,_t=K.actions.internal.nextVideoClick,Qe=K.callbacks?.onAudioDoesNotExistHint,Dt=K.callbacks?.onAudioDisabledHint,zt=K.playerPhase,Xe=K.state.duration$,Bt=K.state.positionWithScrubbing$,$e=K.state.playbackState$,Ht=K.state.isAudioAvailable$,ye=K.state.isAudioDisabled,pe=K.state.isEnded$,Z=K.state.isLive$,Pe=K.state.volume$,Ye=K.state.muted$,Je=K.state.isActiveLive$,He=K.state.isRewindableLive$,Le=K.ui.scrubbingInProgress,ot=K.ui.mobileNotReportControlHidden$,{isActive$:rt,type$:tt}=Me.pictureInPicture$,Et=K.ui.settingsMenu.visible$,wi=K.ui.settingsMenu.openedByBtnKeyboard$,zi=K.ui.controls,{volume:Mi,vkLogo:on,autoplayNextToggle:$o,pip:nn,settings:rn,chromecast:Oo}=K.ui.hiddenControls,Ft=K.actions.internal.getVideoEpisodes(),Zi=K.webApi.pictureInPictureApi,Tn=K.state.chromecastState$,sn=K.state.crashed$,yo=zi.disabledControls$,Xi=K.ui.startedByKeyboard$,an=K.ui.currentGridType$,xo=K.ads.duration,Si=K.ads.position,wo=K.ads.playbackState,kn=K.ui.isFullscreen,H=K.ui.playerSize,Ge=K.ui.additionalButtonsDeprecated$,pt=K.actions.internal.getVideoElement,jt=K.actions.internal.replayInteractive,Lt=K.state.isInteractive,Gt=K.state.isInteractiveTime$,mi=K.state.showInteractiveGraph,Do=K.state.showSeekToInteractive,ni=K.state.showPlayPrevChapter,bt=K.state.showInteractiveTimeIndicator,vi=Me.seekToInteractiveDisabledTooltip$,po=Me.graphIsOpened$,In=K.ui.controlBlocks,gi=v(()=>z(K.state.playPrevChapterDisabledTooltip)),Li=v(()=>z(r())),fo=v(()=>s().has("EPISODE_BUTTON")),ln=v(()=>s().has("GRAPH_BUTTON")),dn=v(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),di=v(()=>s().has("PLAY_BUTTON")),Ci=v(()=>s().has("REPLAY_BUTTON")),So=v(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),Co=v(()=>a()===hl.PlaybackState.PLAYING),Ho=v(()=>l()==="paused"),Fo=v(()=>d()&&!be()&&!Lt),Nr=v(()=>!d()||be()),En=v(()=>e.showNextPrevButtons&&!be()&&e.prevButtonActive),fr=v(()=>e.showNextPrevButtons&&!be()&&e.nextButtonActive),jn=v(()=>f().width>300),mr=v(()=>f().width>400),Uo=v(p),Yn=v(()=>g()!==hl.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&!x()&&!Lt&&!w()),Vi=v(()=>S()==="LiveWaitingStart"),To=v(()=>!!Zi&&g()!==hl.ChromecastState.CONNECTED&&!x()&&(y()===1&&n(Vi)||!n(Vi))&&!n(Uo)&&!Lt&&!T()),Pn=Q(!1);At(()=>{let st=Zi?.info.isActive$.subscribe(Ct=>V(Pn,Ct,!0));return()=>st?.unsubscribe()});let cn=v(()=>!n(Uo)&&Ei(k(),"s")),vr=v(()=>!e.logoHidden&&f().width>350&&!L()),An=v(()=>Ue.features.fullscreen&&!(u()&&y()===1)&&(Lt?lt():!0)&&!n(Uo)&&!n(Pn)),Zn=v(()=>!A()&&!n(Uo)),gr=v(()=>(!I()||be())&&f().width>260&&!n(Uo)&&!(Ue.features.interactiveHideTime&&Lt)),un=v(()=>O()||e.showControls),Mn=v(()=>!be()&&!I()&&!!Ft?.length&&n(jn)&&!n(fo)&&!n(Uo)),hr=v(()=>!G()||!!D()),_r=v(()=>mi&&Ei(k(),"m")),Wi=v(()=>!ee()||X()||ae()===0),ft=qt({}),ri=qt({}),zo=(0,Sm.debounceFn)(ml,260),ci=(0,Sm.debounceFn)(yu,260);De(()=>{f(),j(),zo(pt(),zi,ft,e.showControls),ci(pt(),In,ri,e.showControls)});let Ti=()=>K.actions.internal.toggleChromecast();async function ko(){Zi?.isActive()?await Zi?.exit():await Zi?.request()}function Io(){As({isAudioDisabled:ye,audioDisabledHintCallback:Dt,isAudioAvailable:ee(),audioIsNotExistHintCallback:Qe,isAds:be()})&&Ze()}let Ji=Q(""),Ln=(st,Ct)=>{if(!st){V(Ji,z("tooltip_live"),!0);return}Ct&&Ct===hl.PlaybackState.PAUSED&&V(Ji,z("tooltip_play"),!0)};De(()=>{Ln(n(hr),a())});let Wo=ie();De(()=>{ue()&&sl(ue(),O(),wi)}),De(()=>{bu(Xi,Y(),ft.playButton)});var mo=R2(),Br=ce(mo);{var Or=st=>{var Ct=A2(),ii=ce(Ct);let Ni;var Bi=E(ii,2);let ki;it(Bi,et=>ri.topLeft=et,()=>ri?.topLeft);var Qi=E(Bi,2);let to;var qo=_(Qi);ai(qo,1,_e,({iconUrl:et,ariaLabel:Ot,testId:oi,onClick:Po,tooltip:Ao})=>et,(et,Ot)=>{let oi=()=>n(Ot).iconUrl,Po=()=>n(Ot).ariaLabel,Ao=()=>n(Ot).testId,gn=()=>n(Ot).onClick,On=()=>n(Ot).tooltip,Dn=v(()=>Po()??On());bm(et,{get iconUrl(){return oi()},get ariaLabel(){return n(Dn)},get testId(){return Ao()},get onClick(){return gn()}})});var Bn=E(qo,2);{var io=et=>{Md(et,{get ref(){return ft.autoplayNextToggle},set ref(Ot){ft.autoplayNextToggle=Ot}})};M(Bn,et=>{e.showAutoplayNext&&!le()&&!Ie()&&et(io)})}var Gi=E(Bn,2);{var Qo=et=>{Sd(et,{isMobile:!0,click:Ti,get state(){return g()},get ref(){return ft.chromecast},set ref(Ot){ft.chromecast=Ot}})};M(Gi,et=>{n(Yn)&&et(Qo)})}var fn=E(Gi,2);{var ir=et=>{wm(et,{click:ko,get isPictureInPictureActive(){return u()},get ref(){return ft.pip},set ref(Ot){ft.pip=Ot}})};M(fn,et=>{n(To)&&et(ir)})}var or=E(fn,2);{var nr=et=>{ul(et,{get ref$(){return Wo}})};M(or,et=>{Fe()&&!se()&&et(nr)})}var xr=E(or,2);{var mn=et=>{wd(et,{get click(){return xt},get targetUrl(){return Oe()},get logoClickable(){return e.logoClickable},get ref(){return ft.vkLogo},set ref(Ot){ft.vkLogo=Ot}})};M(xr,et=>{n(vr)&&et(mn)})}h(Qi),it(Qi,et=>ri.topRight=et,()=>ri?.topRight);var vn=E(Qi,2);let ji;var Ke=_(vn);{var Wt=et=>{let Ot=v(()=>gt.bind(null,!0));$a(et,{get click(){return n(Ot)},type:"prev",isMobile:!0,get ref(){return ft.prevButton},set ref(oi){ft.prevButton=oi}})};M(Ke,et=>{n(En)&&et(Wt)})}var _i=E(Ke,2);{var Go=et=>{gl(et,{get disabled(){return n(di)},get click(){return ut},isMobile:!0,get isPlaying(){return n(Co)},get ref(){return ft.playButton},set ref(Ot){ft.playButton=Ot}})};M(_i,et=>{n(Nr)&&et(Go)})}var oo=E(_i,2);{var rr=et=>{vl(et,{get disabled(){return n(Ci)},get click(){return ut},isMobile:!0,get ref(){return ft.replayButton},set ref(Ot){ft.replayButton=Ot}})};M(oo,et=>{n(Fo)&&et(rr)})}var ge=E(oo,2);{var Vt=et=>{let Ot=v(()=>_t.bind(null,!0));$a(et,{get click(){return n(Ot)},type:"next",isMobile:!0,get ref(){return ft.nextButton},set ref(oi){ft.nextButton=oi}})};M(ge,et=>{n(fr)&&et(Vt)})}h(vn),it(vn,et=>ri.middle=et,()=>ri?.middle);var ui=E(vn,2);{var Oi=et=>{var Ot=P2(),oi=ce(Ot);{var Po=Di=>{var si=k2();let jo;si.__click=[C2,So,e,gi];var no=_(si);let sr=v(()=>!e.showControls);Ad(no,{get hidden(){return n(sr)},get disabled(){return n(So)},get click(){return e.playPrevChapter},get ref(){return ft.playPrevChapterButton},set ref(ro){ft.playPrevChapterButton=ro}}),h(si),N(ro=>jo=J(si,1,"wrapper-middle-left svelte-68kopu",null,jo,ro),[()=>({fullscreen:he(),hidden:!e.showControls})]),b(Di,si)};M(oi,Di=>{ni&&Di(Po)})}var Ao=E(oi,2);{var gn=Di=>{var si=I2();let jo;var no=_(si);let sr=v(()=>!e.showControls&&!Ne());Vd(no,{get hidden(){return n(sr)},get disabled(){return n(ln)},get click(){return po.toggle},get graphIsOpened(){return Ne()},get ref(){return ft.interactiveGraphButton},set ref(ro){ft.interactiveGraphButton=ro}}),h(si),N(ro=>jo=J(si,1,jl(ni?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-68kopu",jo,ro),[()=>({fullscreen:he(),hidden:!e.showControls&&!Ne()})]),b(Di,si)};M(Ao,Di=>{n(_r)&&Di(gn)})}var On=E(Ao,2);{var Dn=Di=>{var si=E2();let jo;si.__click=[T2,dn,e,Li];var no=_(si);let sr=v(()=>!e.showControls);Ld(no,{get hidden(){return n(sr)},get disabled(){return n(dn)},get click(){return e.seekToInteractive},get ref(){return ft.seekToInteractiveButton},set ref(ro){ft.seekToInteractiveButton=ro}}),h(si),N(ro=>jo=J(si,1,"wrapper-middle-right svelte-68kopu",null,jo,ro),[()=>({fullscreen:he(),hidden:!e.showControls})]),b(Di,si)};M(On,Di=>{Do&&Di(Dn)})}b(et,Ot)};M(ui,et=>{Lt&&!p()&&et(Oi)})}N((et,Ot,oi,Po)=>{Ni=J(ii,1,"overlay-mobile svelte-68kopu",null,Ni,et),ki=J(Bi,1,"wrapper-top-left svelte-68kopu",null,ki,Ot),to=J(Qi,1,"wrapper-top-right svelte-68kopu",null,to,oi),ji=J(vn,1,"wrapper-middle svelte-68kopu",null,ji,Po)},[()=>({hidden:!n(un)}),()=>({hidden:!e.showControls,fullscreen:he()}),()=>({hidden:!e.showControls&&!x(),fullscreen:he()}),()=>({hidden:!e.showControls||p()||e.endScreenShown&&e.showNextPrevButtons})]),b(st,Ct)};M(Br,st=>{be()||st(Or)})}var br=E(Br,2);{var Dr=st=>{var Ct=L2(),ii=ce(Ct);let Ni;var Bi=_(ii);xu(Bi,{get muted(){return X()},click:Io,get ref(){return ft.volume},set ref(io){ft.volume=io}}),h(ii);var ki=E(ii,2);{var Qi=io=>{var Gi=M2(),Qo=_(Gi);let fn=v(()=>!n(Ho));gl(Qo,{get disabled(){return n(di)},get click(){return ut},isMobile:!0,get isPlaying(){return n(fn)},get ref(){return ft.playButton},set ref(ir){ft.playButton=ir}}),h(Gi),b(io,Gi)};M(ki,io=>{n(Ho)&&io(Qi)})}var to=E(ki,2);let qo;var Bn=_(to);Cd(Bn,{get position(){return oe()},get duration(){return R()}}),h(to),N((io,Gi)=>{Ni=J(ii,1,"wrapper-top-right svelte-68kopu",null,Ni,io),qo=J(to,1,"wrapper-bottom ads-timeline-mobile svelte-68kopu",null,qo,Gi)},[()=>({fullscreen:he()}),()=>({fullscreen:he()})]),b(st,Ct)};M(br,st=>{be()&&l()!=="inactive"&&st(Dr)})}var Vn=E(br,2);let Xn;var Jn=_(Vn);let eo;var Ut=_(Jn);J(Ut,1,"controls svelte-68kopu",null,{},{mobile:!0});var Ki=_(Ut),$r=_(Ki);{var is=st=>{co(st,{get disabled(){return n(Ci)},get ref(){return ft.replayButton},set ref(Ct){ft.replayButton=Ct},children:(Ct,ii)=>{vl(Ct,{get disabled(){return n(Ci)},get click(){return jt}})},$$slots:{default:!0}})};M($r,st=>{Lt&&st(is)})}var ht=E($r,2);{var wt=st=>{co(st,{get ref(){return ft.liveButton},set ref(Ct){ft.liveButton=Ct},children:(Ct,ii)=>{Rd(Ct,{get isLiveActive(){return n(hr)},isMobile:!0,get ariaLabel(){return n(Ji)}})},$$slots:{default:!0}})};M(ht,st=>{!be()&&I()&&st(wt)})}var Ri=E(ht,2);{var hi=st=>{let Ct=v(()=>be()?oe():Ee()),ii=v(()=>be()?R():Ce()),Ni=v(()=>!e.showControls);bd(st,{get showDuration(){return n(mr)},get position(){return n(Ct)},get duration(){return n(ii)},isMobile:!0,get isHidden(){return n(Ni)},get ref(){return ft.time},set ref(Bi){ft.time=Bi}})};M(Ri,st=>{n(gr)&&st(hi)})}var Ko=E(Ri,2);let Rn=v(()=>!n(Mn));co(Ko,{className:"w-max",get disabled(){return n(Rn)},get ref(){return ft.episodes},set ref(st){ft.episodes=st},children:(st,Ct)=>{var ii=Be(),Ni=ce(ii);{var Bi=ki=>{var Qi=V2(),to=E(ce(Qi),2);Td(to,{get position(){return Ee()},get duration(){return Ce()},get timeCodes(){return Ft}}),b(ki,Qi)};M(Ni,ki=>{n(Mn)&&ki(Bi)})}b(st,ii)},$$slots:{default:!0}}),h(Ki),it(Ki,st=>ri.bottomRight=st,()=>ri?.bottomRight);var Nn=E(Ki,2),er=_(Nn);{var yr=st=>{co(st,{get ref(){return ft.volume},set ref(Ct){ft.volume=Ct},children:(Ct,ii)=>{xu(Ct,{get muted(){return n(Wi)},click:Io})},$$slots:{default:!0}})};M(er,st=>{n(Zn)&&st(yr)})}var Eo=E(er,2);{var tr=st=>{co(st,{get ref(){return ft.settings},set ref(Ct){ft.settings=Ct},children:(Ct,ii)=>{ul(Ct,{get ref$(){return Wo}})},$$slots:{default:!0}})};M(Eo,st=>{n(cn)&&st(tr)})}var Hr=E(Eo,2);{var Fr=st=>{co(st,{get ref(){return ft.fullscreen},set ref(Ct){ft.fullscreen=Ct},children:(Ct,ii)=>{xd(Ct,{get click(){return e.toggleFullscreen},get isFullscreen(){return he()}})},$$slots:{default:!0}})};M(Hr,st=>{n(An)&&st(Fr)})}h(Nn),it(Nn,st=>ri.bottomRight=st,()=>ri?.bottomRight),h(Ut),it(Ut,st=>te(st),()=>te());var Ur=E(Ut,2);let zr=v(()=>!e.showControls);_a(Ur,{get isHidden(){return n(zr)},get isAds(){return be()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return G()},get ref(){return ft.timeline},set ref(st){ft.timeline=st}}),h(Jn),h(Vn),it(Vn,st=>de(st),()=>de());var qi=E(Vn,2);{var pn=st=>{Ed(st,{get ref(){return ft.interactiveTimeIndicator},set ref(Ct){ft.interactiveTimeIndicator=Ct}})};M(qi,st=>{bt&&st(pn)})}N((st,Ct)=>{Xn=J(Vn,1,"wrapper-bottom svelte-68kopu",null,Xn,st),eo=J(Jn,1,"controls-wrapper svelte-68kopu",null,eo,Ct)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:he()})]),b(t,mo),U(),o()}dt(["click"]);function Nd(t,e){F(e,!0);let[i,o]=Ve(),r=()=>$(T,"$isMobile",i),s=m(e,"bottomNoSmooth",3,!1),a=m(e,"playerControlsWrapperRef",15,void 0),l=m(e,"playerControlsRef",15,void 0),d=m(e,"isAds",3,!1),f=m(e,"logoTargetUrl",3,""),p=m(e,"showAutoplayNext",3,!1),g=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),y=m(e,"endScreenShown",3,!1),x=m(e,"onDisabledPlayPrevChapterClick",3,Tm.noop),w=m(e,"onDisabledSeekToInteractiveClick",3,Tm.noop),T=Se().ui.isMobile,k=Q(!1);At(()=>{let O=setTimeout(()=>V(k,!0),0);return()=>clearTimeout(O)});var L=Be(),A=ce(L);{var I=O=>{var G=Be(),D=ce(G);{var ee=ae=>{Cm(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return d()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return f()},get showAutoplayNext(){return p()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return g()},get customFullscreenSupported(){return u()},get endScreenShown(){return y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return x()},get onDisabledSeekToInteractiveClick(){return w()},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(j){a(j)},get playerControlsRef(){return l()},set playerControlsRef(j){l(j)}})},X=ae=>{hm(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return d()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return f()},get isOneVideoPlaylist(){return g()},get showAutoplayNext(){return p()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(j){a(j)},get playerControlsRef(){return l()},set playerControlsRef(j){l(j)}})};M(D,ae=>{r()?ae(ee):ae(X,!1)})}b(O,G)};M(A,O=>{n(k)&&O(I)})}b(t,L),U(),o()}var B2=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 km(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=B2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}function Im(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);km(t,{get style(){return n(o)}})}var O2=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 Em(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=O2();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}var D2=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 Pm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=D2();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}function wu(t,e){let i=m(e,"isOff",3,!1);var o=Be(),r=ce(o);{var s=l=>{Pm(l,{})},a=l=>{Em(l,{})};M(r,l=>{i()?l(s):l(a,!1)})}b(t,o)}var H2=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 Am(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=H2();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}function Mm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Am(t,{get style(){return n(o)}})}var F2=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 Lm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=F2();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(2),h(o),b(t,o)}function Vm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Lm(t,{get style(){return n(o)}})}var U2=P('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),z2=P('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),W2=P("<div><!></div>"),K2={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;
260
260
  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"],
261
261
  .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"],
262
262
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -271,23 +271,23 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Yh=z_;var f
271
271
  @keyframes svelte-1ad3n06-fadeOut {
272
272
  0% {opacity:1;}
273
273
  100% {opacity:0;}
274
- }`};function zm(t,e){F(e,!0),W(t,Z2);let[i,o]=Ve(),r=()=>$(e.data,"$data",i),a=xe().ui.t,l=v(()=>!r()),d=v(()=>r()?.type==="BACKWARD_SEEK"),f=v(()=>r()?.type==="FORWARD_SEEK"),p=v(()=>r()?.type),g=v(()=>r()?.t?a(r().t.key,{value:r().t.value||""}):r()?.text);var u=Y2();let y;var x=_(u);{var w=S=>{var T=j2(),k=de(T),V=_(k);{var A=ce=>{let ee=v(()=>n(p)==="FORWARD_SEEK");Nm(ce,{get reversed(){return n(ee)}})};M(V,ce=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&ce(A)})}var L=I(V,2);{var P=ce=>{gs(ce,{})};M(L,ce=>{n(p)==="PAUSE"&&ce(P)})}var Q=I(L,2);{var D=ce=>{Vr(ce,{})};M(Q,ce=>{n(p)==="PLAY"&&ce(D)})}var J=I(Q,2);{var ie=ce=>{Vd(ce,{})};M(J,ce=>{n(p)==="REPLAY"&&ce(ie)})}var re=I(J,2);{var Z=ce=>{Iu(ce,{isOff:!0})};M(re,ce=>{n(p)==="SUBTITLES_OFF"&&ce(Z)})}var ue=I(re,2);{var Y=ce=>{Iu(ce,{})};M(ue,ce=>{n(p)==="SUBTITLES_ON"&&ce(Y)})}var we=I(ue,2);{var _e=ce=>{let ee=v(()=>n(p)==="RATE_UP");Hm(ce,{get reversed(){return n(ee)}})};M(we,ce=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&ce(_e)})}var Ee=I(we,2);{var He=ce=>{let ee=v(()=>n(p)==="EPISODE_NEXT");Um(ce,{get reversed(){return n(ee)}})};M(Ee,ce=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&ce(He)})}var ae=I(Ee,2);{var Re=ce=>{Vs(ce,{volume:0})};M(ae,ce=>{n(p)==="MUTE"&&ce(Re)})}var ne=I(ae,2);{var R=ce=>{Vs(ce,{volume:1})};M(ne,ce=>{n(p)==="VOLUME"&&ce(R)})}h(k);var Pe=I(k,2);{var Te=ce=>{var ee=G2(),ye=_(ee,!0);h(ee),O(()=>pe(ye,n(g))),b(ce,ee)};M(Pe,ce=>{n(g)&&ce(Te)})}b(S,T)};M(x,S=>{!n(l)&&n(p)&&S(w)})}h(u),O(S=>y=X(u,1,"hot-key-helpers-container svelte-1ad3n06",null,y,S),[()=>({hidden:n(l),"hot-key-helpers-container--left":n(d),"hot-key-helpers-container--right":n(f)})]),b(t,u),U(),o()}var X2=$e('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function Wm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=X2();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var J2=$e('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function Km(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=J2();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}function Os(t,e){F(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),r=v(()=>["up","down"].includes(i())),s=v(()=>["right","down"].includes(i())),a=v(()=>(()=>{let g="";return n(s)&&(g+="transform: rotate(180deg);"),o()&&(g+="color: var(--btn-color, #fff);"),g.length?g:void 0})());var l=Oe(),d=de(l);{var f=g=>{let u=v(()=>n(s)?"chevron-icon--down":"chevron-icon--up");Wm(g,{get style(){return n(a)},get"data-testid"(){return n(u)}})},p=g=>{let u=v(()=>n(s)?"chevron-icon--right":"chevron-icon--left");Km(g,{get style(){return n(a)},get"data-testid"(){return n(u)}})};M(d,g=>{n(r)?g(f):g(p,!1)})}b(t,l),U()}var e4=(t,e,i,o,r,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":s();break}},t4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},i4=E('<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>'),o4={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function Fd(t,e){F(e,!0),W(t,o4);let i=m(e,"isShifted",3,!1),o=xe(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},l=()=>{o.actions.internal.startCameraManualRotation(1,0)},d=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),p=z("aria_label_spherical_control");var g=i4();let u;g.__keydown=[e4,r,s,a,d,l],g.__keyup=[t4,r,f];var y=_(g),x=_(y),w=_(x);w.__mousedown=s,w.__mouseup=f;var S=_(w);Os(S,{direction:"up",useBtnColor:!0}),h(w);var T=I(w,2);T.__mousedown=l,T.__mouseup=f;var k=_(T);Os(k,{direction:"up",useBtnColor:!0}),h(T),h(x);var V=I(x,2),A=_(V);A.__mousedown=d,A.__mouseup=f;var L=_(A);Os(L,{direction:"up",useBtnColor:!0}),h(A);var P=I(A,2);P.__mousedown=a,P.__mouseup=f;var Q=_(P);Os(Q,{direction:"up",useBtnColor:!0}),h(P),h(V),h(y),h(g),O(D=>{u=X(g,1,"immersive-controls svelte-1yzc86r",null,u,D),Ne(g,"aria-label",p)},[()=>({"m-shifted":i()})]),bt("mouseleave",w,f),bt("mouseleave",T,f),bt("mouseleave",A,f),bt("mouseleave",P,f),b(t,g),U()}st(["keydown","keyup","mousedown","mouseup"]);var _s=require("@vkontakte/videoplayer-shared");var F1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Eu=class{constructor(){this.flickeringTimeout=F1(1e3);this.subscriptions=new _s.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new _s.ValueSubject([]);this.captionsPrepared$=new _s.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,_s.filter)(()=>this.isEnabled()),(0,_s.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((r,{type:s,value:a},l)=>(o&&!l||(s==="timestamp"?r.push({timeAppeared:Number(a),value:""}):r.length===0?r.push({value:String(a)}):r[r.length-1].value=String(a)),r),[])),this.captionsPrepared$.next(i)}};var n4=E('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),r4=E('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),s4=E('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),a4=E('<div><span class="caption svelte-c2x749"><!></span></div>'),l4=E("<div><!></div>"),d4={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;
275
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function wa(t,e){F(e,!0),W(t,d4);let[i,o]=Ve(),r=()=>$(g,"$currentSubtitle$",i),s=()=>$(y,"$isLive$",i),a=()=>$(x,"$isFullscreen",i),l=()=>$(u,"$isAutoSubtitleCaptionVisible$",i),d=m(e,"isMobile",3,!1),f=xe(),p=Tt(),g=f.state.currentSubtitle$,u=f.state.isAutoSubtitleCaptionVisible$,y=f.state.isLive$,x=f.ui.isFullscreen,w=v(()=>!!r().isAuto),S=v(()=>!!s()),T=v(()=>e.playerSize.width*.02),k=v(()=>d()&&!a()||n(T)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(T)),V=G(null);Be(()=>{n(V)?.setIsAuto(n(w)),n(V)?.setIsLive(n(S)),n(V)?.setCaptions(e.captions)});let A=G(Xt([[]]));Et(()=>{N(V,new Eu().subscribe(),!0);let ie=n(V).captionsPrepared$.subscribe(re=>{N(A,re,!0)});return()=>{n(V)?.destroy(),ie.unsubscribe()}}),Et(()=>{if(n(w)){let ie=window.setTimeout(()=>{u.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(ie)}}else u.set(!1)});let L=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var P=l4();let Q;var D=_(P);{var J=ie=>{var re=a4();let Z;var ue=_(re),Y=_(ue);{var we=Ee=>{var He=n4(),ae=_(He),Re=_(ae,!0);h(ae),h(He),O(ne=>{it(ae,`font-size: ${n(k)??""}px`),pe(Re,ne)},[()=>z("subtitles_auto_caption")]),b(Ee,He)},_e=(Ee,He)=>{{var ae=ne=>{var R=Oe(),Pe=de(R);pi(Pe,17,()=>n(A),Zl,(Te,ce)=>{var ee=r4(),ye=_(ee);pi(ye,21,()=>n(ce),({value:De,timeAppeared:le})=>le,(De,le)=>{let at=()=>n(le).value,K=()=>n(le).timeAppeared;var Ae=Oe(),Fe=de(Ae);{var Ye=dt=>{var Ct=Yr();O(()=>pe(Ct,at())),b(dt,Ct)};M(Fe,dt=>{(!K()||K()<=e.position)&&dt(Ye)})}b(De,Ae)}),h(ye),h(ee),O(()=>it(ye,`font-size: ${n(k)??""}px`)),b(Te,ee)}),b(ne,R)},Re=ne=>{var R=Oe(),Pe=de(R);pi(Pe,17,()=>e.captions,({value:Te})=>Te,(Te,ce)=>{let ee=()=>n(ce).value;var ye=s4(),De=_(ye),le=_(De,!0);h(De),h(ye),O(()=>{it(De,`font-size: ${n(k)??""}px`),pe(le,ee())}),b(Te,ye)}),b(ne,R)};M(Ee,ne=>{n(w)&&n(A)?.length?ne(ae):ne(Re,!1)},He)}};M(Y,Ee=>{n(w)&&l()?Ee(we):Ee(_e,!1)})}h(ue),h(re),O(Ee=>{Z=X(re,1,"subtitles-caption svelte-c2x749",null,Z,Ee),it(re,`--subtitles-caption-margin: ${n(L)??""}%`)},[()=>({mobile:d()})]),b(ie,re)};M(D,ie=>{(e.captions.length||n(A)?.length)&&ie(J)})}h(P),O(ie=>Q=X(P,1,"subtitles-container svelte-c2x749",null,Q,ie),[()=>({shifted:e.shifted,auto:n(w)&&!n(S)&&!l()})]),b(t,P),U(),o()}var c4=E('<div class="text svelte-raurnb"> </div>'),u4=E('<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>'),p4={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function Ud(t,e){F(e,!0),W(t,p4);let i=Tt();var o=u4();let r;var s=I(_(o),2);{var a=l=>{var d=c4(),f=_(d);h(d),O(()=>pe(f,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${e.chromecastDeviceName??""}`)),b(l,d)};M(s,l=>{e.chromecastDeviceName&&l(a)})}h(o),O(l=>{r=X(o,1,"wrapper svelte-raurnb",null,r,l),it(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),U()}var f4=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function qm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=f4();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var m4=E('<div class="container svelte-13zpvm8"><!></div>'),v4={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 Sa(t){W(t,v4);var e=m4(),i=_(e);qm(i,{}),h(e),b(t,e)}var g4=E('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),h4=E("<div><!></div>"),_4={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,
274
+ }`};function Rm(t,e){F(e,!0),W(t,K2);let[i,o]=Ve(),r=()=>$(e.data,"$data",i),a=Se().ui.t,l=v(()=>!r()),d=v(()=>r()?.type==="BACKWARD_SEEK"),f=v(()=>r()?.type==="FORWARD_SEEK"),p=v(()=>r()?.type),g=v(()=>r()?.t?a(r().t.key,{value:r().t.value||""}):r()?.text);var u=W2();let y;var x=_(u);{var w=S=>{var T=z2(),k=ce(T),L=_(k);{var A=de=>{let te=v(()=>n(p)==="FORWARD_SEEK");Im(de,{get reversed(){return n(te)}})};M(L,de=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&de(A)})}var I=E(L,2);{var O=de=>{gs(de,{})};M(I,de=>{n(p)==="PAUSE"&&de(O)})}var G=E(I,2);{var D=de=>{Vr(de,{})};M(G,de=>{n(p)==="PLAY"&&de(D)})}var ee=E(G,2);{var X=de=>{Pd(de,{})};M(ee,de=>{n(p)==="REPLAY"&&de(X)})}var ae=E(ee,2);{var j=de=>{wu(de,{isOff:!0})};M(ae,de=>{n(p)==="SUBTITLES_OFF"&&de(j)})}var ue=E(ae,2);{var Y=de=>{wu(de,{})};M(ue,de=>{n(p)==="SUBTITLES_ON"&&de(Y)})}var he=E(ue,2);{var _e=de=>{let te=v(()=>n(p)==="RATE_UP");Mm(de,{get reversed(){return n(te)}})};M(he,de=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&de(_e)})}var Ie=E(he,2);{var Fe=de=>{let te=v(()=>n(p)==="EPISODE_NEXT");Vm(de,{get reversed(){return n(te)}})};M(Ie,de=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&de(Fe)})}var se=E(Ie,2);{var Ne=de=>{Ls(de,{volume:0})};M(se,de=>{n(p)==="MUTE"&&de(Ne)})}var oe=E(se,2);{var R=de=>{Ls(de,{volume:1})};M(oe,de=>{n(p)==="VOLUME"&&de(R)})}h(k);var Ee=E(k,2);{var Ce=de=>{var te=U2(),be=_(te,!0);h(te),N(()=>fe(be,n(g))),b(de,te)};M(Ee,de=>{n(g)&&de(Ce)})}b(S,T)};M(x,S=>{!n(l)&&n(p)&&S(w)})}h(u),N(S=>y=J(u,1,"hot-key-helpers-container svelte-1ad3n06",null,y,S),[()=>({hidden:n(l),"hot-key-helpers-container--left":n(d),"hot-key-helpers-container--right":n(f)})]),b(t,u),U(),o()}var q2=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 Nm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=q2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var Q2=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 Bm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}function Ns(t,e){F(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),r=v(()=>["up","down"].includes(i())),s=v(()=>["right","down"].includes(i())),a=v(()=>(()=>{let g="";return n(s)&&(g+="transform: rotate(180deg);"),o()&&(g+="color: var(--btn-color, #fff);"),g.length?g:void 0})());var l=Be(),d=ce(l);{var f=g=>{let u=v(()=>n(s)?"chevron-icon--down":"chevron-icon--up");Nm(g,{get style(){return n(a)},get"data-testid"(){return n(u)}})},p=g=>{let u=v(()=>n(s)?"chevron-icon--right":"chevron-icon--left");Bm(g,{get style(){return n(a)},get"data-testid"(){return n(u)}})};M(d,g=>{n(r)?g(f):g(p,!1)})}b(t,l),U()}var G2=(t,e,i,o,r,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":s();break}},j2=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Y2=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>'),Z2={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 Bd(t,e){F(e,!0),W(t,Z2);let i=m(e,"isShifted",3,!1),o=Se(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},l=()=>{o.actions.internal.startCameraManualRotation(1,0)},d=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),p=z("aria_label_spherical_control");var g=Y2();let u;g.__keydown=[G2,r,s,a,d,l],g.__keyup=[j2,r,f];var y=_(g),x=_(y),w=_(x);w.__mousedown=s,w.__mouseup=f;var S=_(w);Ns(S,{direction:"up",useBtnColor:!0}),h(w);var T=E(w,2);T.__mousedown=l,T.__mouseup=f;var k=_(T);Ns(k,{direction:"up",useBtnColor:!0}),h(T),h(x);var L=E(x,2),A=_(L);A.__mousedown=d,A.__mouseup=f;var I=_(A);Ns(I,{direction:"up",useBtnColor:!0}),h(A);var O=E(A,2);O.__mousedown=a,O.__mouseup=f;var G=_(O);Ns(G,{direction:"up",useBtnColor:!0}),h(O),h(L),h(y),h(g),N(D=>{u=J(g,1,"immersive-controls svelte-1yzc86r",null,u,D),Re(g,"aria-label",p)},[()=>({"m-shifted":i()})]),yt("mouseleave",w,f),yt("mouseleave",T,f),yt("mouseleave",A,f),yt("mouseleave",O,f),b(t,g),U()}dt(["keydown","keyup","mousedown","mouseup"]);var _s=require("@vkontakte/videoplayer-shared");var A1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Su=class{constructor(){this.flickeringTimeout=A1(1e3);this.subscriptions=new _s.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new _s.ValueSubject([]);this.captionsPrepared$=new _s.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,_s.filter)(()=>this.isEnabled()),(0,_s.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((r,{type:s,value:a},l)=>(o&&!l||(s==="timestamp"?r.push({timeAppeared:Number(a),value:""}):r.length===0?r.push({value:String(a)}):r[r.length-1].value=String(a)),r),[])),this.captionsPrepared$.next(i)}};var X2=P('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),J2=P('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),e4=P('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),t4=P('<div><span class="caption svelte-c2x749"><!></span></div>'),i4=P("<div><!></div>"),o4={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;
275
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Sa(t,e){F(e,!0),W(t,o4);let[i,o]=Ve(),r=()=>$(g,"$currentSubtitle$",i),s=()=>$(y,"$isLive$",i),a=()=>$(x,"$isFullscreen",i),l=()=>$(u,"$isAutoSubtitleCaptionVisible$",i),d=m(e,"isMobile",3,!1),f=Se(),p=It(),g=f.state.currentSubtitle$,u=f.state.isAutoSubtitleCaptionVisible$,y=f.state.isLive$,x=f.ui.isFullscreen,w=v(()=>!!r().isAuto),S=v(()=>!!s()),T=v(()=>e.playerSize.width*.02),k=v(()=>d()&&!a()||n(T)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(T)),L=Q(null);De(()=>{n(L)?.setIsAuto(n(w)),n(L)?.setIsLive(n(S)),n(L)?.setCaptions(e.captions)});let A=Q(qt([[]]));At(()=>{V(L,new Su().subscribe(),!0);let X=n(L).captionsPrepared$.subscribe(ae=>{V(A,ae,!0)});return()=>{n(L)?.destroy(),X.unsubscribe()}}),At(()=>{if(n(w)){let X=window.setTimeout(()=>{u.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(X)}}else u.set(!1)});let I=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var O=i4();let G;var D=_(O);{var ee=X=>{var ae=t4();let j;var ue=_(ae),Y=_(ue);{var he=Ie=>{var Fe=X2(),se=_(Fe),Ne=_(se,!0);h(se),h(Fe),N(oe=>{nt(se,`font-size: ${n(k)??""}px`),fe(Ne,oe)},[()=>z("subtitles_auto_caption")]),b(Ie,Fe)},_e=(Ie,Fe)=>{{var se=oe=>{var R=Be(),Ee=ce(R);ai(Ee,17,()=>n(A),Ql,(Ce,de)=>{var te=J2(),be=_(te);ai(be,21,()=>n(de),({value:Oe,timeAppeared:le})=>le,(Oe,le)=>{let lt=()=>n(le).value,K=()=>n(le).timeAppeared;var Me=Be(),Ue=ce(Me);{var Ze=ut=>{var xt=Yr();N(()=>fe(xt,lt())),b(ut,xt)};M(Ue,ut=>{(!K()||K()<=e.position)&&ut(Ze)})}b(Oe,Me)}),h(be),h(te),N(()=>nt(be,`font-size: ${n(k)??""}px`)),b(Ce,te)}),b(oe,R)},Ne=oe=>{var R=Be(),Ee=ce(R);ai(Ee,17,()=>e.captions,({value:Ce})=>Ce,(Ce,de)=>{let te=()=>n(de).value;var be=e4(),Oe=_(be),le=_(Oe,!0);h(Oe),h(be),N(()=>{nt(Oe,`font-size: ${n(k)??""}px`),fe(le,te())}),b(Ce,be)}),b(oe,R)};M(Ie,oe=>{n(w)&&n(A)?.length?oe(se):oe(Ne,!1)},Fe)}};M(Y,Ie=>{n(w)&&l()?Ie(he):Ie(_e,!1)})}h(ue),h(ae),N(Ie=>{j=J(ae,1,"subtitles-caption svelte-c2x749",null,j,Ie),nt(ae,`--subtitles-caption-margin: ${n(I)??""}%`)},[()=>({mobile:d()})]),b(X,ae)};M(D,X=>{(e.captions.length||n(A)?.length)&&X(ee)})}h(O),N(X=>G=J(O,1,"subtitles-container svelte-c2x749",null,G,X),[()=>({shifted:e.shifted,auto:n(w)&&!n(S)&&!l()})]),b(t,O),U(),o()}var n4=P('<div class="text svelte-raurnb"> </div>'),r4=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>'),s4={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 Od(t,e){F(e,!0),W(t,s4);let i=It();var o=r4();let r;var s=E(_(o),2);{var a=l=>{var d=n4(),f=_(d);h(d),N(()=>fe(f,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${e.chromecastDeviceName??""}`)),b(l,d)};M(s,l=>{e.chromecastDeviceName&&l(a)})}h(o),N(l=>{r=J(o,1,"wrapper svelte-raurnb",null,r,l),nt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),U()}var a4=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 Om(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=a4();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var l4=P('<div class="container svelte-13zpvm8"><!></div>'),d4={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 Ca(t){W(t,d4);var e=l4(),i=_(e);Om(i,{}),h(e),b(t,e)}var c4=P('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),u4=P("<div><!></div>"),p4={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,
276
276
  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,
277
- transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Ca(t,e){F(e,!0),W(t,_4);let i=m(e,"iconVisible",3,!0),o=xe(),r=Tt(),s=o.ui.startedByKeyboard$,a=z("tooltip_play"),l=y=>{let x=y.code;["Enter","Space"].includes(x)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),e.startVideo?.())},d=y=>{y.stopPropagation(),e.startVideo?.()};var f=h4();let p;f.__click=d;var g=_(f);{var u=y=>{var x=g4();x.__keydown=l;var w=I(_(x),2);Vr(w,{}),h(x),O(()=>Ne(x,"aria-label",a)),b(y,x)};M(g,y=>{i()&&y(u)})}return h(f),O(y=>{p=X(f,1,"container svelte-1ciju45",null,p,y),it(f,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,f),U({handlePressKey:l,handleClick:d})}st(["click","keydown"]);var b4=E('<div data-testid="video_title"><span> </span></div>'),$4={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(
277
+ 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 Ta(t,e){F(e,!0),W(t,p4);let i=m(e,"iconVisible",3,!0),o=Se(),r=It(),s=o.ui.startedByKeyboard$,a=z("tooltip_play"),l=y=>{let x=y.code;["Enter","Space"].includes(x)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),e.startVideo?.())},d=y=>{y.stopPropagation(),e.startVideo?.()};var f=u4();let p;f.__click=d;var g=_(f);{var u=y=>{var x=c4();x.__keydown=l;var w=E(_(x),2);Vr(w,{}),h(x),N(()=>Re(x,"aria-label",a)),b(y,x)};M(g,y=>{i()&&y(u)})}return h(f),N(y=>{p=J(f,1,"container svelte-1ciju45",null,p,y),nt(f,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,f),U({handlePressKey:l,handleClick:d})}dt(["click","keydown"]);var f4=P('<div data-testid="video_title"><span> </span></div>'),m4={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(
278
278
  0deg,
279
279
  rgba(0, 0, 0, 0) 0%,
280
280
  rgba(0, 0, 0, 0.02) 19%,
281
281
  rgba(0, 0, 0, 0.1) 34%,
282
282
  rgba(0, 0, 0, 0.4) 60%,
283
283
  rgba(0, 0, 0, 0.6) 100%
284
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Qm(t,e){F(e,!0),W(t,$4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),r=m(e,"ref",15),s=G(void 0);Et(()=>{requestAnimationFrame(()=>{e.onVisibilityChanged?.(!0)});function p(g){g.propertyName==="transform"&&e.onVisibilityChanged?.(!o())}return n(s)?.addEventListener("transitionend",p),()=>n(s)?.removeEventListener("transitionend",p)});var a=b4();let l;var d=_(a),f=_(d,!0);h(d),tt(d,p=>r(p),()=>r()),h(a),tt(a,p=>N(s,p),()=>n(s)),O(p=>{l=X(a,1,"title svelte-14hk510",null,l,p),pe(f,i())},[()=>({hidden:o()})]),b(t,a),U()}var U1=require("@vkontakte/videoplayer-shared");var y4=E('<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),x4=E('<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),w4=E('<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),S4=E('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),C4=E("<div><!> <!> <!> <!></div>"),T4={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 Gm(t,e){F(e,!0),W(t,T4);let i=G(""),o=G(""),r=G(""),s=G(""),a,l=32,d=l/2,f=D=>String(D).padStart(2,"0"),p=D=>Math.max(D.length,1),g=D=>`${(e.isSmallSize?d:l)*p(D)}px`,u=D=>{let J=Math.floor(D/86400);J&&(D-=J*86400,N(i,f(J),!0));let ie=Math.floor(D/3600);N(o,f(ie),!0);let re=Math.floor(D/60)%60;N(r,f(re),!0);let Z=D%60;N(s,f(Z),!0)},y=()=>{let D=Math.floor(Date.now()/1e3),J=e.startTime-D;u(J),J>=1?a=requestAnimationFrame(y):e.onTimerOver()};Et(()=>{a=requestAnimationFrame(y)}),Ro(()=>{cancelAnimationFrame(a)});var x=C4();let w;var S=_(x);{var T=D=>{var J=y4(),ie=de(J);let re;var Z=_(ie),ue=_(Z,!0);h(Z);var Y=I(Z,2),we=_(Y,!0);h(Y),h(ie);var _e=I(ie,2),Ee=_(_e,!0);h(_e),O((He,ae,Re)=>{re=it(ie,"",re,{width:He}),pe(ue,n(i)),pe(we,ae),pe(Ee,Re)},[()=>g(n(i)),()=>z("waiting_live_day_value"),()=>z("waiting_live_colon")]),b(D,J)};M(S,D=>{n(i)&&D(T)})}var k=I(S,2);{var V=D=>{var J=x4(),ie=de(J);let re;var Z=_(ie),ue=_(Z,!0);h(Z);var Y=I(Z,2),we=_(Y,!0);h(Y),h(ie);var _e=I(ie,2),Ee=_(_e,!0);h(_e),O((He,ae,Re)=>{re=it(ie,"",re,{width:He}),pe(ue,n(o)),pe(we,ae),pe(Ee,Re)},[()=>g(n(o)),()=>z("waiting_live_hour_value"),()=>z("waiting_live_colon")]),b(D,J)};M(k,D=>{n(o)&&D(V)})}var A=I(k,2);{var L=D=>{var J=w4(),ie=de(J);let re;var Z=_(ie),ue=_(Z,!0);h(Z);var Y=I(Z,2),we=_(Y,!0);h(Y),h(ie);var _e=I(ie,2),Ee=_(_e,!0);h(_e),O((He,ae,Re)=>{re=it(ie,"",re,{width:He}),pe(ue,n(r)),pe(we,ae),pe(Ee,Re)},[()=>g(n(r)),()=>z("waiting_live_minute_value"),()=>z("waiting_live_colon")]),b(D,J)};M(A,D=>{n(r)&&D(L)})}var P=I(A,2);{var Q=D=>{var J=S4();let ie;var re=_(J),Z=_(re,!0);h(re);var ue=I(re,2),Y=_(ue,!0);h(ue),h(J),O((we,_e)=>{ie=it(J,"",ie,{width:we}),pe(Z,n(s)),pe(Y,_e)},[()=>g(n(s)),()=>z("waiting_live_second_value")]),b(D,J)};M(P,D=>{n(s)&&D(Q)})}h(x),O(D=>w=X(x,1,"timer__container svelte-gt98rn",null,w,D),[()=>({small:e.isSmallSize})]),b(t,x),U()}var k4=E('<div class="waiting svelte-17m8dcd"><span> </span></div>'),I4=E('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),E4=E('<div class="waiting-container svelte-17m8dcd"><!></div>'),P4={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 zd(t,e){F(e,!0),W(t,P4);let i=m(e,"startTime",3,0),o=v(()=>i()<Math.floor(Date.now()/1e3)),r=G(void 0),s=G(void 0),a=0,l=G(void 0),d=G(void 0),f=v(()=>(n(l)??1/0)<=509||(n(d)??1/0)<=320),p=v(()=>!n(f)&&((n(l)??1/0)<=699||(n(d)??1/0)<=599)),g=e.onUpcomingLiveViewStateChanged?(0,U1.throttleFn)(()=>{cancelAnimationFrame(a),a=requestAnimationFrame(()=>{let S={type:n(o)?"expired":"default",size:n(f)?"s":n(p)?"m":"l"},T=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(S,T)})},300):void 0;Be(()=>{n(d),n(l),n(o),g?.()}),Ro(()=>{if(cancelAnimationFrame(a),g?.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:n(o)?"expired":"default",size:n(f)?"s":n(p)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var u=E4(),y=_(u);{var x=S=>{var T=k4(),k=_(T);let V;var A=_(k,!0);h(k),h(T),tt(T,L=>N(r,L),()=>n(r)),O((L,P)=>{V=X(k,1,"waiting__title svelte-17m8dcd",null,V,L),pe(A,P)},[()=>({medium:n(p),small:n(f)}),()=>z("waiting_live_upcoming_title")]),b(S,T)},w=S=>{var T=I4(),k=_(T);let V;var A=_(k,!0);h(k);var L=I(k,2);let P=v(()=>n(f)||n(p)),Q=v(()=>i()||0);Gm(L,{get isSmallSize(){return n(P)},get startTime(){return n(Q)},onTimerOver:()=>N(o,!0)}),h(T),tt(T,D=>N(s,D),()=>n(s)),O((D,J)=>{V=X(k,1,"timer__title svelte-17m8dcd",null,V,D),pe(A,J)},[()=>({medium:n(p),small:n(f)}),()=>z("waiting_live_timer_title")]),b(S,T)};M(y,S=>{n(o)?S(x):S(w,!1)})}h(u),O(()=>it(u,`background-image: url(${e.thumbUrl})`)),Gn(u,"clientWidth",S=>N(l,S)),Gn(u,"clientHeight",S=>N(d,S)),b(t,u),U()}var A4=E('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),M4={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 Ta(t,e){F(e,!0),W(t,M4);let i=m(e,"thumbUrl",3,""),o={recover:z("waiting_live_recover_title"),record:z("waiting_record_title")},r=v(()=>o[e.kind]||"");var s=A4(),a=_(s),l=_(a);fa(l,{style:"position: static; transform: translate(0, 0)"});var d=I(l,2),f=_(d,!0);h(d),h(a),h(s),O(()=>{it(s,`background-image: url('${i()}')`),pe(f,n(r))}),b(t,s),U()}var L4=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function jm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=L4();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var V4=E('<div class="select-icon svelte-124aexk"><!></div>'),R4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Wd(t){W(t,R4);var e=V4(),i=_(e);jm(i,{}),h(e),b(t,e)}var N4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},O4=(t,e)=>{al(t,()=>e.item.selectItem(e.item.value))},B4=E("<p> </p>"),D4=E('<p class="sublabel svelte-1t7rx2m"> </p>'),H4=E('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),F4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
284
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Dm(t,e){F(e,!0),W(t,m4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),r=m(e,"ref",15),s=Q(void 0);At(()=>{requestAnimationFrame(()=>{e.onVisibilityChanged?.(!0)});function p(g){g.propertyName==="transform"&&e.onVisibilityChanged?.(!o())}return n(s)?.addEventListener("transitionend",p),()=>n(s)?.removeEventListener("transitionend",p)});var a=f4();let l;var d=_(a),f=_(d,!0);h(d),it(d,p=>r(p),()=>r()),h(a),it(a,p=>V(s,p),()=>n(s)),N(p=>{l=J(a,1,"title svelte-14hk510",null,l,p),fe(f,i())},[()=>({hidden:o()})]),b(t,a),U()}var M1=require("@vkontakte/videoplayer-shared");var v4=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),g4=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),h4=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),_4=P('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),b4=P("<div><!> <!> <!> <!></div>"),$4={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 Hm(t,e){F(e,!0),W(t,$4);let i=Q(""),o=Q(""),r=Q(""),s=Q(""),a,l=32,d=l/2,f=D=>String(D).padStart(2,"0"),p=D=>Math.max(D.length,1),g=D=>`${(e.isSmallSize?d:l)*p(D)}px`,u=D=>{let ee=Math.floor(D/86400);ee&&(D-=ee*86400,V(i,f(ee),!0));let X=Math.floor(D/3600);V(o,f(X),!0);let ae=Math.floor(D/60)%60;V(r,f(ae),!0);let j=D%60;V(s,f(j),!0)},y=()=>{let D=Math.floor(Date.now()/1e3),ee=e.startTime-D;u(ee),ee>=1?a=requestAnimationFrame(y):e.onTimerOver()};At(()=>{a=requestAnimationFrame(y)}),No(()=>{cancelAnimationFrame(a)});var x=b4();let w;var S=_(x);{var T=D=>{var ee=v4(),X=ce(ee);let ae;var j=_(X),ue=_(j,!0);h(j);var Y=E(j,2),he=_(Y,!0);h(Y),h(X);var _e=E(X,2),Ie=_(_e,!0);h(_e),N((Fe,se,Ne)=>{ae=nt(X,"",ae,{width:Fe}),fe(ue,n(i)),fe(he,se),fe(Ie,Ne)},[()=>g(n(i)),()=>z("waiting_live_day_value"),()=>z("waiting_live_colon")]),b(D,ee)};M(S,D=>{n(i)&&D(T)})}var k=E(S,2);{var L=D=>{var ee=g4(),X=ce(ee);let ae;var j=_(X),ue=_(j,!0);h(j);var Y=E(j,2),he=_(Y,!0);h(Y),h(X);var _e=E(X,2),Ie=_(_e,!0);h(_e),N((Fe,se,Ne)=>{ae=nt(X,"",ae,{width:Fe}),fe(ue,n(o)),fe(he,se),fe(Ie,Ne)},[()=>g(n(o)),()=>z("waiting_live_hour_value"),()=>z("waiting_live_colon")]),b(D,ee)};M(k,D=>{n(o)&&D(L)})}var A=E(k,2);{var I=D=>{var ee=h4(),X=ce(ee);let ae;var j=_(X),ue=_(j,!0);h(j);var Y=E(j,2),he=_(Y,!0);h(Y),h(X);var _e=E(X,2),Ie=_(_e,!0);h(_e),N((Fe,se,Ne)=>{ae=nt(X,"",ae,{width:Fe}),fe(ue,n(r)),fe(he,se),fe(Ie,Ne)},[()=>g(n(r)),()=>z("waiting_live_minute_value"),()=>z("waiting_live_colon")]),b(D,ee)};M(A,D=>{n(r)&&D(I)})}var O=E(A,2);{var G=D=>{var ee=_4();let X;var ae=_(ee),j=_(ae,!0);h(ae);var ue=E(ae,2),Y=_(ue,!0);h(ue),h(ee),N((he,_e)=>{X=nt(ee,"",X,{width:he}),fe(j,n(s)),fe(Y,_e)},[()=>g(n(s)),()=>z("waiting_live_second_value")]),b(D,ee)};M(O,D=>{n(s)&&D(G)})}h(x),N(D=>w=J(x,1,"timer__container svelte-gt98rn",null,w,D),[()=>({small:e.isSmallSize})]),b(t,x),U()}var y4=P('<div class="waiting svelte-17m8dcd"><span> </span></div>'),x4=P('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),w4=P('<div class="waiting-container svelte-17m8dcd"><!></div>'),S4={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 Dd(t,e){F(e,!0),W(t,S4);let i=m(e,"startTime",3,0),o=v(()=>i()<Math.floor(Date.now()/1e3)),r=Q(void 0),s=Q(void 0),a=0,l=Q(void 0),d=Q(void 0),f=v(()=>(n(l)??1/0)<=509||(n(d)??1/0)<=320),p=v(()=>!n(f)&&((n(l)??1/0)<=699||(n(d)??1/0)<=599)),g=e.onUpcomingLiveViewStateChanged?(0,M1.throttleFn)(()=>{cancelAnimationFrame(a),a=requestAnimationFrame(()=>{let S={type:n(o)?"expired":"default",size:n(f)?"s":n(p)?"m":"l"},T=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(S,T)})},300):void 0;De(()=>{n(d),n(l),n(o),g?.()}),No(()=>{if(cancelAnimationFrame(a),g?.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:n(o)?"expired":"default",size:n(f)?"s":n(p)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var u=w4(),y=_(u);{var x=S=>{var T=y4(),k=_(T);let L;var A=_(k,!0);h(k),h(T),it(T,I=>V(r,I),()=>n(r)),N((I,O)=>{L=J(k,1,"waiting__title svelte-17m8dcd",null,L,I),fe(A,O)},[()=>({medium:n(p),small:n(f)}),()=>z("waiting_live_upcoming_title")]),b(S,T)},w=S=>{var T=x4(),k=_(T);let L;var A=_(k,!0);h(k);var I=E(k,2);let O=v(()=>n(f)||n(p)),G=v(()=>i()||0);Hm(I,{get isSmallSize(){return n(O)},get startTime(){return n(G)},onTimerOver:()=>V(o,!0)}),h(T),it(T,D=>V(s,D),()=>n(s)),N((D,ee)=>{L=J(k,1,"timer__title svelte-17m8dcd",null,L,D),fe(A,ee)},[()=>({medium:n(p),small:n(f)}),()=>z("waiting_live_timer_title")]),b(S,T)};M(y,S=>{n(o)?S(x):S(w,!1)})}h(u),N(()=>nt(u,`background-image: url(${e.thumbUrl})`)),Gn(u,"clientWidth",S=>V(l,S)),Gn(u,"clientHeight",S=>V(d,S)),b(t,u),U()}var C4=P('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),T4={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 ka(t,e){F(e,!0),W(t,T4);let i=m(e,"thumbUrl",3,""),o={recover:z("waiting_live_recover_title"),record:z("waiting_record_title")},r=v(()=>o[e.kind]||"");var s=C4(),a=_(s),l=_(a);ma(l,{style:"position: static; transform: translate(0, 0)"});var d=E(l,2),f=_(d,!0);h(d),h(a),h(s),N(()=>{nt(s,`background-image: url('${i()}')`),fe(f,n(r))}),b(t,s),U()}var k4=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 Fm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=k4();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var I4=P('<div class="select-icon svelte-124aexk"><!></div>'),E4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Hd(t){W(t,E4);var e=I4(),i=_(e);Fm(i,{}),h(e),b(t,e)}var P4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},A4=(t,e)=>{al(t,()=>e.item.selectItem(e.item.value))},M4=P("<p> </p>"),L4=P('<p class="sublabel svelte-1t7rx2m"> </p>'),V4=P('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),R4={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;
285
285
 
286
286
  /**
287
287
  * \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
288
288
  * \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.
289
289
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
290
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Ym(t,e){F(e,!0),W(t,F4);let i=m(e,"isMobile",3,!1);var o=H4();let r;o.__click=[N4,e],o.__keydown=[O4,e];var s=_(o);{var a=x=>{Wd(x,{})};M(s,x=>{e.item.selected&&x(a)})}var l=I(s,2);let d;var f=_(l);{var p=x=>{var w=Oe(),S=de(w);fi(S,()=>e.item.valueComponent,(T,k)=>{k(T,ps(()=>e.item.valueComponentParams??{}))}),b(x,w)},g=x=>{var w=B4();let S;var T=_(w,!0);h(w),O(k=>{S=X(w,1,"label svelte-1t7rx2m",null,S,k),pe(T,e.item.label??e.item.value)},[()=>({mobile:i()})]),b(x,w)};M(f,x=>{e.item.valueComponent?x(p):x(g,!1)})}var u=I(f,2);{var y=x=>{var w=D4(),S=_(w,!0);h(w),O(()=>pe(S,e.item.sublabel)),b(x,w)};M(u,x=>{e.item.sublabel&&x(y)})}h(l),h(o),O((x,w,S)=>{r=X(o,1,"item",null,r,x),Ne(o,"data-value",e.item.value),Ne(o,"aria-label",w),Ne(o,"data-testid",e.item.dataTestid),d=X(l,1,"menu-item-value svelte-1t7rx2m",null,d,S),Ne(l,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>e.item.ariaLabel??e.item.label??e.item.value.toString(),()=>({"submenu-value-mobile":i()})]),b(t,o),U()}st(["click","keydown"]);var U4=E('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Zm(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),r=v(()=>()=>e.openSubMenuList(e.item.children)),s=v(()=>w=>cu(w,n(r)));var a=U4();let l;a.__click=function(...w){n(r)?.apply(this,w)},a.__keydown=function(...w){n(s)?.apply(this,w)};var d=_(a);{var f=w=>{Wd(w,{})};M(d,w=>{e.item.selected&&w(f)})}var p=I(d,2);let g;var u=_(p);{var y=w=>{var S=Oe();let T=v(()=>e.item.valueComponent);var k=de(S);fi(k,()=>n(T),(V,A)=>{A(V,ps(()=>e.item.valueComponentParams??{}))}),b(w,S)},x=w=>{var S=Yr();O(()=>pe(S,e.item.label)),b(w,S)};M(u,w=>{e.item.valueComponent?w(y):w(x,!1)})}h(p),h(a),tt(a,w=>o(o()[e.item.id]=w,!0),()=>o()?.[e.item.id]),O((w,S)=>{l=X(a,1,"item",null,l,w),Ne(a,"aria-label",e.item.ariaLabel??e.item.label),Ne(a,"data-testid",e.item.id),g=X(p,1,"menu-item-value",null,g,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,a),U()}st(["click","keydown"]);var Rr={"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 W4=(t,e)=>{d1(t,e.returnFromSubMenu,e.closeSettingsMenu)},K4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},q4=(t,e)=>{md(t)&&(lr(t),e.returnFromSubMenu())},Q4=E('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),G4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
290
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Um(t,e){F(e,!0),W(t,R4);let i=m(e,"isMobile",3,!1);var o=V4();let r;o.__click=[P4,e],o.__keydown=[A4,e];var s=_(o);{var a=x=>{Hd(x,{})};M(s,x=>{e.item.selected&&x(a)})}var l=E(s,2);let d;var f=_(l);{var p=x=>{var w=Be(),S=ce(w);li(S,()=>e.item.valueComponent,(T,k)=>{k(T,ps(()=>e.item.valueComponentParams??{}))}),b(x,w)},g=x=>{var w=M4();let S;var T=_(w,!0);h(w),N(k=>{S=J(w,1,"label svelte-1t7rx2m",null,S,k),fe(T,e.item.label??e.item.value)},[()=>({mobile:i()})]),b(x,w)};M(f,x=>{e.item.valueComponent?x(p):x(g,!1)})}var u=E(f,2);{var y=x=>{var w=L4(),S=_(w,!0);h(w),N(()=>fe(S,e.item.sublabel)),b(x,w)};M(u,x=>{e.item.sublabel&&x(y)})}h(l),h(o),N((x,w,S)=>{r=J(o,1,"item",null,r,x),Re(o,"data-value",e.item.value),Re(o,"aria-label",w),Re(o,"data-testid",e.item.dataTestid),d=J(l,1,"menu-item-value svelte-1t7rx2m",null,d,S),Re(l,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>e.item.ariaLabel??e.item.label??e.item.value.toString(),()=>({"submenu-value-mobile":i()})]),b(t,o),U()}dt(["click","keydown"]);var N4=P('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function zm(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),r=v(()=>()=>e.openSubMenuList(e.item.children)),s=v(()=>w=>ru(w,n(r)));var a=N4();let l;a.__click=function(...w){n(r)?.apply(this,w)},a.__keydown=function(...w){n(s)?.apply(this,w)};var d=_(a);{var f=w=>{Hd(w,{})};M(d,w=>{e.item.selected&&w(f)})}var p=E(d,2);let g;var u=_(p);{var y=w=>{var S=Be();let T=v(()=>e.item.valueComponent);var k=ce(S);li(k,()=>n(T),(L,A)=>{A(L,ps(()=>e.item.valueComponentParams??{}))}),b(w,S)},x=w=>{var S=Yr();N(()=>fe(S,e.item.label)),b(w,S)};M(u,w=>{e.item.valueComponent?w(y):w(x,!1)})}h(p),h(a),it(a,w=>o(o()[e.item.id]=w,!0),()=>o()?.[e.item.id]),N((w,S)=>{l=J(a,1,"item",null,l,w),Re(a,"aria-label",e.item.ariaLabel??e.item.label),Re(a,"data-testid",e.item.id),g=J(p,1,"menu-item-value",null,g,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,a),U()}dt(["click","keydown"]);var Rr={"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 O4=(t,e)=>{Jh(t,e.returnFromSubMenu,e.closeSettingsMenu)},D4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},H4=(t,e)=>{cd(t)&&(ur(t),e.returnFromSubMenu())},F4=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>'),U4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
291
291
  /*\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 {
292
292
  /**
293
293
  * \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.
@@ -297,14 +297,14 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Yh=z_;var f
297
297
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
298
298
  1px
299
299
  );}.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,
300
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Jm(t,e){F(e,!0),W(t,G4);let[i,o]=Ve(),r=()=>$(g,"$isFullscreen",i),s=()=>$(u,"$playerSize",i),a=m(e,"isMobile",3,!1),l=m(e,"playerControlsHeight",3,0),d=m(e,"ariaLabelReturnFromSubMenu",19,()=>z("aria_label_submenu_back")),f=m(e,"listRef",15);Et(()=>{let Z=e.items.findIndex(ue=>ue.selected);f().children[Z+1].focus()});let p=xe(),g=p.ui.isFullscreen,u=p.ui.playerSize,y=G(void 0),x=G(0),w=G(0),S=v(()=>a()&&r()?`max-height: ${Math.round(s().height*.6)}px`:a()?"":`max-height: ${s().height-32-n(w)-l()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,n(x)));var k=Q4();let V;var A=_(k);let L;A.__keydown=[W4,e];var P=_(A);let Q;P.__click=[K4,e],P.__keydown=[q4,e];var D=_(P);Os(D,{direction:"left"});var J=I(D,2),ie=_(J,!0);h(J),h(P),tt(P,Z=>N(y,Z),()=>n(y));var re=I(P,2);pi(re,17,()=>e.items,Zl,(Z,ue)=>{var Y=Oe(),we=de(Y);{var _e=He=>{Ym(He,{get item(){return n(ue)},get isMobile(){return a()}})},Ee=(He,ae)=>{{var Re=ne=>{Zm(ne,{get isMobile(){return a()},get item(){return n(ue)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};M(He,ne=>{n(ue).type==="OPEN_SUB_MENU"&&ne(Re)},ae)}};M(we,He=>{n(ue).type==="SELECT_VALUE"?He(_e):He(Ee,!1)})}b(Z,Y)}),h(A),tt(A,Z=>f(Z),()=>f()),h(k),O((Z,ue,Y)=>{V=X(k,1,"sub-menu menu svelte-7dfsuh",null,V,Z),Ne(k,"data-testid",`sub-menu-${e.id}`),it(k,`min-width: ${n(T)}px`),L=X(A,1,"items svelte-7dfsuh",null,L,ue),it(A,n(S)),Q=X(P,1,"item header back svelte-7dfsuh",null,Q,Y),Ne(P,"aria-label",d()),pe(ie,e.title)},[()=>({desktop:!a(),mobile:a()}),()=>({mobile:a()}),()=>({mobile:a()})]),Gn(P,"clientWidth",Z=>N(x,Z)),Gn(P,"clientHeight",Z=>N(w,Z)),b(t,k),U(),o()}st(["keydown","click"]);var W1=require("@vkontakte/videoplayer-shared");var j4=(t,e)=>cu(t,e()),Y4=(t,e)=>{t.stopPropagation(),e()()},Z4=E('<div class="value svelte-1ikfjte"> </div>'),X4=E('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),J4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function ev(t,e){F(e,!0),W(t,J4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,W1.noop),r=m(e,"valueComponent",3,void 0),s=m(e,"ref",15);var a=X4();let l;a.__click=[Y4,o],a.__keydown=[j4,o];var d=_(a),f=_(d);{var p=T=>{$a(T,{get icon(){return e.icon}})},g=T=>{var k=Oe();let V=v(()=>e.icon);var A=de(k);fi(A,()=>n(V),(L,P)=>{P(L,{})}),b(T,k)};M(f,T=>{typeof e.icon=="string"?T(p):T(g,!1)})}h(d);var u=I(d,2),y=_(u,!0);h(u);var x=I(u,2);{var w=T=>{var k=Oe();let V=v(r);var A=de(k);fi(A,()=>n(V),(L,P)=>{P(L,{})}),b(T,k)},S=T=>{var k=Z4(),V=_(k,!0);h(k),O(()=>pe(V,e.value)),b(T,k)};M(x,T=>{r()?T(w):T(S,!1)})}h(a),tt(a,T=>s(T),()=>s()),O(T=>{l=X(a,1,"item",null,l,T),Ne(a,"aria-label",e.ariaLabel),Ne(a,"data-testid",e.id),pe(y,e.label)},[()=>({mobile:i()})]),b(t,a),U()}st(["click","keydown"]);var tv=require("@vkontakte/videoplayer-shared");var e3=(t,e)=>{al(t,()=>e())},t3=E('<div class="icon icon-error-stub"><div class="inner"></div></div>'),i3=E('<img class="icon" aria-hidden="true"/>'),o3=E('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),n3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function iv(t,e){F(e,!0),W(t,n3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,tv.noop),r=m(e,"closeSettings",3,tv.noop),s=G(!1),a=()=>{N(s,!0)},l=S=>{S?.stopPropagation(),o()(),r()()};var d=o3();let f;d.__click=l,d.__keydown=[e3,l];var p=_(d),g=_(p);{var u=S=>{var T=Oe(),k=de(T);{var V=L=>{var P=t3();b(L,P)},A=L=>{var P=i3();O(()=>Ne(P,"src",e.icon)),bt("error",P,a),Ys(P),b(L,P)};M(k,L=>{n(s)?L(V):L(A,!1)})}b(S,T)},y=S=>{var T=Oe();let k=v(()=>e.icon);var V=de(T);fi(V,()=>n(k),(A,L)=>{L(A,{})}),b(S,T)};M(g,S=>{typeof e.icon=="string"?S(u):S(y,!1)})}h(p);var x=I(p,2),w=_(x,!0);h(x),h(d),O(S=>{f=X(d,1,"item",null,f,S),Ne(d,"aria-label",e.ariaLabel??e.label),Ne(d,"data-testid",e.id),pe(w,e.label)},[()=>({mobile:i()})]),b(t,d),U()}st(["click","keydown"]);var K1=require("@vkontakte/videoplayer-shared");var r3=E('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),s3={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 ov(t,e){W(t,s3);let i=m(e,"enabled",3,!1);var o=r3(),r=_(o);let s;be(2),h(o),O(a=>s=X(r,1,"toggle svelte-17wbjko",null,s,a),[()=>({on:i()})]),b(t,o)}var a3=(t,e,i)=>{c1(t,e(),o=>i()(o))},l3=(t,e,i)=>{t.stopPropagation(),e()(!i())},d3=E('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),c3=E('<li role="menuitem" tabindex="0"><!></li>');function nv(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,K1.noop),r=m(e,"enabled",3,!1),s=m(e,"tooltipText",3,void 0),a=m(e,"maxTooltipWidth",3,void 0);var l=c3();let d;l.__click=[l3,o,r],l.__keydown=[a3,r,o];var f=_(l);va(f,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return a()},children:(p,g)=>{var u=d3();let y;var x=_(u),w=_(x);{var S=L=>{$a(L,{get icon(){return e.icon}})},T=L=>{var P=Oe();let Q=v(()=>e.icon);var D=de(P);fi(D,()=>n(Q),(J,ie)=>{ie(J,{})}),b(L,P)};M(w,L=>{typeof e.icon=="string"?L(S):L(T,!1)})}h(x);var k=I(x,2),V=_(k,!0);h(k);var A=I(k,2);ov(A,{get enabled(){return r()}}),h(u),O(L=>{y=X(u,1,"switch-wrapper",null,y,L),pe(V,e.label)},[()=>({mobile:i()})]),b(p,u)},$$slots:{default:!0}}),h(l),O(p=>{d=X(l,1,"item switch-item",null,d,p),Ne(l,"aria-label",e.ariaLabel??e.label),Ne(l,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,l),U()}st(["click","keydown"]);var qd=require("@vkontakte/videoplayer-shared");var q1=()=>{let t=G(Xt([])),e=v(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var u3=E('<div class="quality-icon svelte-t2qk8t"><!></div>'),p3=E('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),f3={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 ka(t,e){F(e,!0),W(t,f3);let i=m(e,"isSubCase",3,!1),o=v(()=>mu(e.quality));var r=p3(),s=_(r);let a;var l=_(s,!0);h(s);var d=I(s,2);{var f=p=>{var g=u3();let u=v(()=>n(o));var y=_(g);fi(y,()=>n(u),(x,w)=>{w(x,{})}),h(g),b(p,g)};M(d,p=>{n(o)&&!e.isMobile&&p(f)})}h(r),O(p=>{a=X(s,1,"svelte-t2qk8t",null,a,p),pe(l,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,r),U()}var Y1=require("@vkontakte/videoplayer-shared");var rv=require("@vkontakte/videoplayer-core");var Q1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},G1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Q1({quality:t,availableQualities:e});return i?t===rv.VideoQuality.INVARIANT?z("auto_quality_invariant"):z("auto_quality",{actual:o}):o},j1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===rv.VideoQuality.INVARIANT?i:`${i}${Q1({quality:t,availableQualities:e})}`:"...";var m3=E('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),v3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function _l(t,e){F(e,!0),W(t,v3);let[i,o]=Ve(),r=()=>$(d,"$currentQuality$",i),s=()=>$(f,"$availableQualities$",i),a=()=>$(p,"$isMobile$",i),l=xe(),d=l.state.currentQuality$,f=l.state.availableQualities$,p=l.ui.isMobile,g=" \xB7 ",u=v(()=>e.prefix+(e.selected&&r()!==Y1.VideoQuality.INVARIANT?g:"")),y=v(()=>j1({prefix:n(u),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var x=m3(),w=_(x);let S=v(()=>e.selected?r():void 0);ka(w,{get quality(){return n(S)},get label(){return n(y)},get isMobile(){return a()},isSubCase:!0}),h(x),b(t,x),U(),o()}var g3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},h3={br:!0,span:!0},sv=(t,e={})=>{if(!t)return t;let i={...h3,...e},o=Object.keys(i);if(!o.length)return t;let r=g3(o),s=[],a=0;for(let l of t.matchAll(r)){let d=l[0],f=l.groups?.keyhtml||l.groups?.keyi18n||l.groups?.keyhtmlself||l.groups?.keyi18nself||"",{index:p}=l;if(!i[f]){s.push(t.slice(a,p)),a=p+d.length;continue}let g=l.groups?.childrenhtml?sv(l.groups.childrenhtml,i):"",u=l.groups?.childrenhtml?d.replace(new RegExp(l.groups?.childrenhtml),()=>g||""):d;s.push(t.slice(a,p),u),a=p+d.length}return a===0?t:(s.push(t.slice(a)),s.join(""))};function Kd(t,e){F(e,!1);let i=m(e,"message",8),o=sv(i());Ar();var r=Oe(),s=de(r);{var a=l=>{var d=Oe(),f=de(d);Xl(f,()=>o),b(l,d)};M(s,l=>{o&&l(a)})}b(t,r),U()}var _3=E('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),b3={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function av(t,e){F(e,!1),W(t,b3),Ar();var i=_3(),o=_(i);let r=kr(()=>z("quality_applience",{action:`<span>${z("quality_applience_action")}</span>`}));Kd(o,{get message(){return n(r)}}),h(i),b(t,i),U()}var X1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:_l,valueComponentParams:{prefix:z("other_quality"),selected:o},children:"QUALITY"}},lv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:z("auto_quality_limit"),valueComponent:e?_l:void 0,valueComponentParams:{prefix:z("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),J1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:av,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),dv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:z("high_quality"),valueComponent:t?_l:void 0,valueComponentParams:{prefix:z("high_quality"),selected:i},sublabel:z("high_quality_description")}),cv=({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:z("traffic_saving_quality"),valueComponent:t?_l:void 0,valueComponentParams:{prefix:z("traffic_saving_quality"),selected:i},sublabel:z("traffic_saving_quality_description")});var Pu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Au=(t,e)=>{if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=Ad(i)??i),o&&i&&r){let a=e.filter(l=>l.label===o&&l.language===i);if(a.length===1)return z("audio_stream_display_language_label",{language:r,label:o});{let l=Pu(t,a);return z("audio_stream_display_language_label_index",{language:r,label:o,index:l})}}if(o){let a=e.filter(l=>l.label===o);if(a.length===1)return o;{let l=Pu(t,a);return z("audio_stream_display_label_index",{label:o,index:l})}}if(i&&r){let a=e.filter(l=>l.language===i);if(a.length===1)return r;{let l=Pu(t,a);return z("audio_stream_display_language_index",{language:r,index:l})}}let s=Pu(t,e);return z("audio_stream_display_unknown",{index:s})};var $3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:lv,selected:e&&!o&&!r||!1}),s.push({handler:cv,selected:o},{handler:dv,selected:r}),{title:z("submenu_quality"),id:"QUALITY_DETAILS",items:[J1(t),...s.map(({handler:a,selected:l})=>a({labelWithQuality:!0,appliesTo:"to-video",selected:l},t)),X1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:z("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:ka,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:z("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:lv,selected:Jc()?.type==="auto_quality"},{handler:cv,selected:Jc()?.type==="traffic_saving"},{handler:dv,selected:Jc()?.type==="high_quality"}].map(({handler:i,selected:o})=>i({labelWithQuality:!1,appliesTo:"as-default",selected:o},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:z("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===i?.id,label:Au(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:z("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:z("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}))})},e0=({subMenuId:t,context:e})=>t?[$3[t](e)]:[];var y3=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function uv(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=y3();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var x3=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function pv(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=x3();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var w3=$e('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function fv(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=w3();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var S3=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function mv(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=S3();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var C3=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function vv(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=C3();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var T3=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function Mu(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=T3();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var k3=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function gv(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=k3();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var I3=E('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),E3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function hv(t,e){F(e,!0),W(t,E3);let[i,o]=Ve(),r=()=>$(f,"$currentQuality$",i),s=()=>$(p,"$availableQualities$",i),a=()=>$(g,"$isAutoQualityEnabled$",i),l=()=>$(u,"$isMobile$",i),d=xe(),f=d.state.currentQuality$,p=d.state.availableQualities$,g=d.state.isAutoQualityEnabled$,u=d.ui.isMobile,y=v(()=>G1({quality:r(),availableQualities:s(),isAutoQualityEnabled:a()}));var x=I3(),w=_(x);ka(w,{get quality(){return r()},get label(){return n(y)},get isMobile(){return l()}}),h(x),b(t,x),U(),o()}var A3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?z("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_quality",{actual:o}),icon:yd,label:z("menu_quality"),value:e,valueComponent:hv,weight:Rr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Rr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:z("aria_label_submenu_traffic_saving"),icon:uv,label:z("menu_traffic_saving"),enabled:t,tooltipText:z("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Au(t,e);return{id:"AUDIO_LANGUAGES",weight:Rr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_audio_languages",{actual:i}),icon:pv,label:z("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{let i=t.find(o=>o.value===e)?.displayValue||"";return{id:"PLAYBACK_RATE",weight:Rr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_rate",{actual:i}),icon:fv,label:z("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Rr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_subtitle",{actual:t.displayValue}),icon:xd,label:z("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Rr.download,type:"CLICK",onClick:t,label:z("download_video_caption"),ariaLabel:z("aria_label_menu_download"),icon:mv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Rr.report,type:"CLICK",onClick:t,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,icon:vv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Rr["copy-data"],type:"CLICK",onClick:t,label:z("menu_copy_debug"),ariaLabel:z("menu_copy_debug"),icon:Mu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Rr["save-trace-info"],type:"CLICK",onClick:t,label:z("menu_save_debug"),ariaLabel:z("menu_save_debug"),icon:Mu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Rr["debug-info"],type:"CLICK",onClick:t,ariaLabel:z("aria_label_menu_debug_overlay"),label:z("menu_debug_overlay"),icon:gv,isHiddenFor:["desktop"]})},t0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>A3[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>!r?.isHiddenFor?.length||!r?.isHiddenFor?.includes("desktop")&&!o||!r?.isHiddenFor?.includes("mobile")&&o).sort(ca)};var L3=(t,e)=>{du(t,e)},V3=E('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),R3=E('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),N3=E("<div><!> <!></div>"),O3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
300
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Km(t,e){F(e,!0),W(t,U4);let[i,o]=Ve(),r=()=>$(g,"$isFullscreen",i),s=()=>$(u,"$playerSize",i),a=m(e,"isMobile",3,!1),l=m(e,"playerControlsHeight",3,0),d=m(e,"ariaLabelReturnFromSubMenu",19,()=>z("aria_label_submenu_back")),f=m(e,"listRef",15);At(()=>{let j=e.items.findIndex(ue=>ue.selected);f().children[j+1].focus()});let p=Se(),g=p.ui.isFullscreen,u=p.ui.playerSize,y=Q(void 0),x=Q(0),w=Q(0),S=v(()=>a()&&r()?`max-height: ${Math.round(s().height*.6)}px`:a()?"":`max-height: ${s().height-32-n(w)-l()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,n(x)));var k=F4();let L;var A=_(k);let I;A.__keydown=[O4,e];var O=_(A);let G;O.__click=[D4,e],O.__keydown=[H4,e];var D=_(O);Ns(D,{direction:"left"});var ee=E(D,2),X=_(ee,!0);h(ee),h(O),it(O,j=>V(y,j),()=>n(y));var ae=E(O,2);ai(ae,17,()=>e.items,Ql,(j,ue)=>{var Y=Be(),he=ce(Y);{var _e=Fe=>{Um(Fe,{get item(){return n(ue)},get isMobile(){return a()}})},Ie=(Fe,se)=>{{var Ne=oe=>{zm(oe,{get isMobile(){return a()},get item(){return n(ue)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};M(Fe,oe=>{n(ue).type==="OPEN_SUB_MENU"&&oe(Ne)},se)}};M(he,Fe=>{n(ue).type==="SELECT_VALUE"?Fe(_e):Fe(Ie,!1)})}b(j,Y)}),h(A),it(A,j=>f(j),()=>f()),h(k),N((j,ue,Y)=>{L=J(k,1,"sub-menu menu svelte-7dfsuh",null,L,j),Re(k,"data-testid",`sub-menu-${e.id}`),nt(k,`min-width: ${n(T)}px`),I=J(A,1,"items svelte-7dfsuh",null,I,ue),nt(A,n(S)),G=J(O,1,"item header back svelte-7dfsuh",null,G,Y),Re(O,"aria-label",d()),fe(X,e.title)},[()=>({desktop:!a(),mobile:a()}),()=>({mobile:a()}),()=>({mobile:a()})]),Gn(O,"clientWidth",j=>V(x,j)),Gn(O,"clientHeight",j=>V(w,j)),b(t,k),U(),o()}dt(["keydown","click"]);var V1=require("@vkontakte/videoplayer-shared");var z4=(t,e)=>ru(t,e()),W4=(t,e)=>{t.stopPropagation(),e()()},K4=P('<div class="value svelte-1ikfjte"> </div>'),q4=P('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),Q4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function qm(t,e){F(e,!0),W(t,Q4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,V1.noop),r=m(e,"valueComponent",3,void 0),s=m(e,"ref",15);var a=q4();let l;a.__click=[W4,o],a.__keydown=[z4,o];var d=_(a),f=_(d);{var p=T=>{ya(T,{get icon(){return e.icon}})},g=T=>{var k=Be();let L=v(()=>e.icon);var A=ce(k);li(A,()=>n(L),(I,O)=>{O(I,{})}),b(T,k)};M(f,T=>{typeof e.icon=="string"?T(p):T(g,!1)})}h(d);var u=E(d,2),y=_(u,!0);h(u);var x=E(u,2);{var w=T=>{var k=Be();let L=v(r);var A=ce(k);li(A,()=>n(L),(I,O)=>{O(I,{})}),b(T,k)},S=T=>{var k=K4(),L=_(k,!0);h(k),N(()=>fe(L,e.value)),b(T,k)};M(x,T=>{r()?T(w):T(S,!1)})}h(a),it(a,T=>s(T),()=>s()),N(T=>{l=J(a,1,"item",null,l,T),Re(a,"aria-label",e.ariaLabel),Re(a,"data-testid",e.id),fe(y,e.label)},[()=>({mobile:i()})]),b(t,a),U()}dt(["click","keydown"]);var Qm=require("@vkontakte/videoplayer-shared");var G4=(t,e)=>{al(t,()=>e())},j4=P('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Y4=P('<img class="icon" aria-hidden="true"/>'),Z4=P('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),X4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Gm(t,e){F(e,!0),W(t,X4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Qm.noop),r=m(e,"closeSettings",3,Qm.noop),s=Q(!1),a=()=>{V(s,!0)},l=S=>{S?.stopPropagation(),o()(),r()()};var d=Z4();let f;d.__click=l,d.__keydown=[G4,l];var p=_(d),g=_(p);{var u=S=>{var T=Be(),k=ce(T);{var L=I=>{var O=j4();b(I,O)},A=I=>{var O=Y4();N(()=>Re(O,"src",e.icon)),yt("error",O,a),Zs(O),b(I,O)};M(k,I=>{n(s)?I(L):I(A,!1)})}b(S,T)},y=S=>{var T=Be();let k=v(()=>e.icon);var L=ce(T);li(L,()=>n(k),(A,I)=>{I(A,{})}),b(S,T)};M(g,S=>{typeof e.icon=="string"?S(u):S(y,!1)})}h(p);var x=E(p,2),w=_(x,!0);h(x),h(d),N(S=>{f=J(d,1,"item",null,f,S),Re(d,"aria-label",e.ariaLabel??e.label),Re(d,"data-testid",e.id),fe(w,e.label)},[()=>({mobile:i()})]),b(t,d),U()}dt(["click","keydown"]);var R1=require("@vkontakte/videoplayer-shared");var J4=P('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),e3={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 jm(t,e){W(t,e3);let i=m(e,"enabled",3,!1);var o=J4(),r=_(o);let s;xe(2),h(o),N(a=>s=J(r,1,"toggle svelte-17wbjko",null,s,a),[()=>({on:i()})]),b(t,o)}var t3=(t,e,i)=>{e1(t,e(),o=>i()(o))},i3=(t,e,i)=>{t.stopPropagation(),e()(!i())},o3=P('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),n3=P('<li role="menuitem" tabindex="0"><!></li>');function Ym(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,R1.noop),r=m(e,"enabled",3,!1),s=m(e,"tooltipText",3,void 0),a=m(e,"maxTooltipWidth",3,void 0);var l=n3();let d;l.__click=[i3,o,r],l.__keydown=[t3,r,o];var f=_(l);ga(f,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return a()},children:(p,g)=>{var u=o3();let y;var x=_(u),w=_(x);{var S=I=>{ya(I,{get icon(){return e.icon}})},T=I=>{var O=Be();let G=v(()=>e.icon);var D=ce(O);li(D,()=>n(G),(ee,X)=>{X(ee,{})}),b(I,O)};M(w,I=>{typeof e.icon=="string"?I(S):I(T,!1)})}h(x);var k=E(x,2),L=_(k,!0);h(k);var A=E(k,2);jm(A,{get enabled(){return r()}}),h(u),N(I=>{y=J(u,1,"switch-wrapper",null,y,I),fe(L,e.label)},[()=>({mobile:i()})]),b(p,u)},$$slots:{default:!0}}),h(l),N(p=>{d=J(l,1,"item switch-item",null,d,p),Re(l,"aria-label",e.ariaLabel??e.label),Re(l,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,l),U()}dt(["click","keydown"]);var Ud=require("@vkontakte/videoplayer-shared");var N1=()=>{let t=Q(qt([])),e=v(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{V(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{V(t,[],!0)}}};var r3=P('<div class="quality-icon svelte-t2qk8t"><!></div>'),s3=P('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),a3={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 Ia(t,e){F(e,!0),W(t,a3);let i=m(e,"isSubCase",3,!1),o=v(()=>du(e.quality));var r=s3(),s=_(r);let a;var l=_(s,!0);h(s);var d=E(s,2);{var f=p=>{var g=r3();let u=v(()=>n(o));var y=_(g);li(y,()=>n(u),(x,w)=>{w(x,{})}),h(g),b(p,g)};M(d,p=>{n(o)&&!e.isMobile&&p(f)})}h(r),N(p=>{a=J(s,1,"svelte-t2qk8t",null,a,p),fe(l,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,r),U()}var H1=require("@vkontakte/videoplayer-shared");var Zm=require("@vkontakte/videoplayer-core");var B1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},O1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=B1({quality:t,availableQualities:e});return i?t===Zm.VideoQuality.INVARIANT?z("auto_quality_invariant"):z("auto_quality",{actual:o}):o},D1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Zm.VideoQuality.INVARIANT?i:`${i}${B1({quality:t,availableQualities:e})}`:"...";var l3=P('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),d3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function _l(t,e){F(e,!0),W(t,d3);let[i,o]=Ve(),r=()=>$(d,"$currentQuality$",i),s=()=>$(f,"$availableQualities$",i),a=()=>$(p,"$isMobile$",i),l=Se(),d=l.state.currentQuality$,f=l.state.availableQualities$,p=l.ui.isMobile,g=" \xB7 ",u=v(()=>e.prefix+(e.selected&&r()!==H1.VideoQuality.INVARIANT?g:"")),y=v(()=>D1({prefix:n(u),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var x=l3(),w=_(x);let S=v(()=>e.selected?r():void 0);Ia(w,{get quality(){return n(S)},get label(){return n(y)},get isMobile(){return a()},isSubCase:!0}),h(x),b(t,x),U(),o()}var c3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},u3={br:!0,span:!0},Xm=(t,e={})=>{if(!t)return t;let i={...u3,...e},o=Object.keys(i);if(!o.length)return t;let r=c3(o),s=[],a=0;for(let l of t.matchAll(r)){let d=l[0],f=l.groups?.keyhtml||l.groups?.keyi18n||l.groups?.keyhtmlself||l.groups?.keyi18nself||"",{index:p}=l;if(!i[f]){s.push(t.slice(a,p)),a=p+d.length;continue}let g=l.groups?.childrenhtml?Xm(l.groups.childrenhtml,i):"",u=l.groups?.childrenhtml?d.replace(new RegExp(l.groups?.childrenhtml),()=>g||""):d;s.push(t.slice(a,p),u),a=p+d.length}return a===0?t:(s.push(t.slice(a)),s.join(""))};function Fd(t,e){F(e,!1);let i=m(e,"message",8),o=Xm(i());Ar();var r=Be(),s=ce(r);{var a=l=>{var d=Be(),f=ce(d);Gl(f,()=>o),b(l,d)};M(s,l=>{o&&l(a)})}b(t,r),U()}var p3=P('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),f3={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 Jm(t,e){F(e,!1),W(t,f3),Ar();var i=p3(),o=_(i);let r=kr(()=>z("quality_applience",{action:`<span>${z("quality_applience_action")}</span>`}));Fd(o,{get message(){return n(r)}}),h(i),b(t,i),U()}var U1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:_l,valueComponentParams:{prefix:z("other_quality"),selected:o},children:"QUALITY"}},ev=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:z("auto_quality_limit"),valueComponent:e?_l:void 0,valueComponentParams:{prefix:z("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),z1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Jm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),tv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:z("high_quality"),valueComponent:t?_l:void 0,valueComponentParams:{prefix:z("high_quality"),selected:i},sublabel:z("high_quality_description")}),iv=({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:z("traffic_saving_quality"),valueComponent:t?_l:void 0,valueComponentParams:{prefix:z("traffic_saving_quality"),selected:i},sublabel:z("traffic_saving_quality_description")});var Cu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Tu=(t,e)=>{if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=kd(i)??i),o&&i&&r){let a=e.filter(l=>l.label===o&&l.language===i);if(a.length===1)return z("audio_stream_display_language_label",{language:r,label:o});{let l=Cu(t,a);return z("audio_stream_display_language_label_index",{language:r,label:o,index:l})}}if(o){let a=e.filter(l=>l.label===o);if(a.length===1)return o;{let l=Cu(t,a);return z("audio_stream_display_label_index",{label:o,index:l})}}if(i&&r){let a=e.filter(l=>l.language===i);if(a.length===1)return r;{let l=Cu(t,a);return z("audio_stream_display_language_index",{language:r,index:l})}}let s=Cu(t,e);return z("audio_stream_display_unknown",{index:s})};var m3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:ev,selected:e&&!o&&!r||!1}),s.push({handler:iv,selected:o},{handler:tv,selected:r}),{title:z("submenu_quality"),id:"QUALITY_DETAILS",items:[z1(t),...s.map(({handler:a,selected:l})=>a({labelWithQuality:!0,appliesTo:"to-video",selected:l},t)),U1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:z("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:Ia,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:z("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:ev,selected:Gc()?.type==="auto_quality"},{handler:iv,selected:Gc()?.type==="traffic_saving"},{handler:tv,selected:Gc()?.type==="high_quality"}].map(({handler:i,selected:o})=>i({labelWithQuality:!1,appliesTo:"as-default",selected:o},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:z("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===i?.id,label:Tu(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:z("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:z("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===_u?"sub_off":void 0}))})},W1=({subMenuId:t,context:e})=>t?[m3[t](e)]:[];var v3=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 ov(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=v3();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var g3=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 nv(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=g3();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var h3=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=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=h3();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var _3=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 sv(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=_3();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var b3=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 av(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=b3();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var $3=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 ku(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=$3();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var y3=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 lv(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=y3();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var x3=P('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),w3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function dv(t,e){F(e,!0),W(t,w3);let[i,o]=Ve(),r=()=>$(f,"$currentQuality$",i),s=()=>$(p,"$availableQualities$",i),a=()=>$(g,"$isAutoQualityEnabled$",i),l=()=>$(u,"$isMobile$",i),d=Se(),f=d.state.currentQuality$,p=d.state.availableQualities$,g=d.state.isAutoQualityEnabled$,u=d.ui.isMobile,y=v(()=>O1({quality:r(),availableQualities:s(),isAutoQualityEnabled:a()}));var x=x3(),w=_(x);Ia(w,{get quality(){return r()},get label(){return n(y)},get isMobile(){return l()}}),h(x),b(t,x),U(),o()}var C3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?z("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_quality",{actual:o}),icon:hd,label:z("menu_quality"),value:e,valueComponent:dv,weight:Rr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Rr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:z("aria_label_submenu_traffic_saving"),icon:ov,label:z("menu_traffic_saving"),enabled:t,tooltipText:z("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Tu(t,e);return{id:"AUDIO_LANGUAGES",weight:Rr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_audio_languages",{actual:i}),icon:nv,label:z("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{let i=t.find(o=>o.value===e)?.displayValue||"";return{id:"PLAYBACK_RATE",weight:Rr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_rate",{actual:i}),icon:rv,label:z("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Rr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_subtitle",{actual:t.displayValue}),icon:_d,label:z("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Rr.download,type:"CLICK",onClick:t,label:z("download_video_caption"),ariaLabel:z("aria_label_menu_download"),icon:sv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Rr.report,type:"CLICK",onClick:t,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,icon:av,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Rr["copy-data"],type:"CLICK",onClick:t,label:z("menu_copy_debug"),ariaLabel:z("menu_copy_debug"),icon:ku,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Rr["save-trace-info"],type:"CLICK",onClick:t,label:z("menu_save_debug"),ariaLabel:z("menu_save_debug"),icon:ku,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Rr["debug-info"],type:"CLICK",onClick:t,ariaLabel:z("aria_label_menu_debug_overlay"),label:z("menu_debug_overlay"),icon:lv,isHiddenFor:["desktop"]})},K1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>C3[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>!r?.isHiddenFor?.length||!r?.isHiddenFor?.includes("desktop")&&!o||!r?.isHiddenFor?.includes("mobile")&&o).sort(ua)};var k3=(t,e)=>{nu(t,e)},I3=P('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),E3=P('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),P3=P("<div><!> <!></div>"),A3={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 {
301
301
  /* \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),
302
302
  .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),
303
303
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
304
- .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Qd(t,e){F(e,!0),W(t,O3);let[i,o]=Ve(),r=()=>$(le,"$settingsMenuVisible",i),s=()=>$(at,"$settingsMenuOpenedByKeyboard",i),a=()=>$(vt,"$debugPanelVisible",i),l=()=>$(Ae,"$isMobile",i),d=()=>$(ut,"$playerSize",i),f=()=>$(De,"$hasMpegSources$",i),p=()=>$(Fe,"$mobileNotReportControlHidden$",i),g=()=>$(Re,"$autoQualityLimitingAvailable$",i),u=()=>$(ee,"$availableSubtitlesList$",i),y=()=>$(Ye,"$isLiveWithPlaybackSpeed",i),x=()=>$(Ee,"$availableAudioStreams$",i),w=()=>$(Te,"$availablePlaybackRates$",i),S=()=>$(_e,"$currentAudioStream$",i),T=()=>$(Pe,"$currentPlaybackRate$",i),k=()=>$(dt,"$trafficSavingEnabled",i),V=()=>$(He,"$currentQuality$",i),A=()=>$(ne,"$isAutoQualityEnabled$",i),L=()=>$(ce,"$currentSubtitle$",i),P=()=>$(Nt,"$additionalSettingsMenuItems$",i),Q=()=>$(R,"$isAutoQualityAvailable$",i),D=()=>$(ae,"$availableQualities$",i),J=()=>$(Ct,"$highQualityEnabled",i),ie=m(e,"ref",15,void 0),re=m(e,"playerControlsHeight",3,0),Z=Xt({}),ue=Xt({}),Y=xe(),we=Tt(),_e=Y.state.audioStream$,Ee=Y.state.availableAudioStreams$,He=Y.state.currentQuality$,ae=Y.state.availableQualities$,Re=Y.state.autoQualityLimitingAvailable$,ne=Y.state.isAutoQualityEnabled$,R=Y.state.isAutoQualityAvailable$,Pe=Y.state.currentPlaybackRate$,Te=Y.state.availablePlaybackRates$,ce=Y.state.currentSubtitle$,ee=Y.state.availableSubtitlesList$,ye=Y.state.canDownload,De=Y.state.hasMpegSources$,le=Y.ui.settingsMenu.visible$,at=Y.ui.settingsMenu.openedByBtnKeyboard$,K=Y.ui.settingsMenu.ref$,Ae=Y.ui.isMobile,Fe=Y.ui.mobileNotReportControlHidden$,Ye=Y.state.canChangePlaybackSpeed$,dt=Y.state.trafficSavingEnabled$,Ct=Y.state.highQualityEnabled$,ut=Y.ui.playerSize,vt=Y.ui.debugPanelVisible,Je=Y.state.isInteractiveTime$,Nt=Y.ui.additionalSettingsMenuItems$,Kt=Y.ui.t,At=Y.actions.internal.downloadVideo,Ft=Y.actions.internal.closeSettingsMenu,Ce=Y.actions.internal.openSettingsSubMenu,Ze=Y.actions.internal.closeSettingsSubMenu,he=G(!1),me=G(void 0),j=q1();Be(()=>{!r()&&j.current&&(Ze(ue[j.current]),j.popAllSubMenus())}),Be(()=>{r()||N(me,void 0)}),Be(()=>{!j.current&&n(me)&&l1(Z,n(me))}),Be(()=>{ie()&&K.set(ie())});async function Me(qe){j.pushSubMenu(qe),await uo(),Ce(qe,ue[qe]);let ct=ie()?.firstElementChild;ct&&If(ct)}function Ue(qe){qe?.stopPropagation(),s()||e.returnFocus?.(),Ft(),N(he,!1)}function Xe(qe,ct){Y.actions.internal.setQuality(qe,{appliesTo:ct}),Ue()}function Ke(qe){Y.actions.internal.setAudioStream(qe),Ue()}function Le(qe,ct){Y.actions.internal.setTrafficSavingEnabled(qe,ct),we.features.qualityDetailsSubMenuEnabled&&Ue()}function ot(qe,ct){Y.actions.internal.setHighQualityEnabled(qe,ct),Ue()}function qt(qe){Y.actions.internal.setPlaybackRate(qe),Ue()}function Ut(qe){Y.actions.internal.setSubtitle(qe),Ue()}function Rt(){At()}function $t(){(0,qd.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),Y.actions.internal.reportProblem(),Y.actions.internal.pause()}function yt(){rl(Y.actions.internal.getDebugTextData())}let Qt=()=>{let qe=Y.actions.internal.getTraceTextData(),ct=new Blob([...qe],{type:"application/json"}),Jt=window.URL.createObjectURL(ct);na(Jt,"vk_player_trace_info","json")};function eo(){vt.set(!a())}function Ni(){N(he,!0)}function wn(){N(he,!1)}function en(){return l()?`max-height: ${Math.round(d().height*.6)}px`:`max-height: ${d().height-32-re()}px; overflow: auto;`}let Oo=v(()=>ye&&f()&&!p()),zt=v(()=>we.features.trafficSaving&&!p()&&g()&&!we.features.qualityDetailsSubMenuEnabled),qi=v(()=>u().length>0&&!p()),Sn=v(()=>!!y()&&!p()),tn=v(()=>we.features.audioLanguages&&x().length>=2&&!p()),Cn=v(()=>!p());Et(()=>Je.subscribe(qe=>{qe&&!l()&&!n(he)&&!s()&&Ue()}));let Ti=v(()=>{let qe=[n(Cn)&&"QUALITY_SETTINGS",n(tn)&&"AUDIO_LANGUAGES",n(Sn)&&"PLAYBACK_RATE",n(qi)&&"SUBTITLES",n(zt)&&"TRAFFIC_SAVING_SWITCH",n(Oo)&&"DOWNLOAD",we.showSupport&&"SHOW_SUPPORT","COPY_DATA",we.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(ct=>!!ct);return t0({items:qe,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:w(),currentAudioStream:S(),availableAudioStreams:x(),currentPlaybackRate:T(),selectPlaybackRate:qt,trafficSavingEnabled:k(),toggleTrafficSaving:Le,currentQuality:V()||qd.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:L(),isMobile:l(),onDownloadClick:Rt,onCopyDataClick:yt,onReportProblemClick:$t,onSaveTraceDataClick:Qt,toggleShowDebugInfo:eo},additionalSettingsMenuItems:P()})}),on=v(()=>e0({subMenuId:j.current,context:{availablePlaybackRates:w(),selectPlaybackRate:qt,trafficSavingEnabled:k(),toggleTrafficSaving:Le,currentQuality:V()||qd.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:Q()||!1,availableQualities:D(),highQualityEnabled:J(),toggleHighQuality:ot,availableAudioStreams:x(),availableSubtitlesList:u(),closeSettingsMenu:Ft,currentAudioStream:S(),isMobile:l(),selectAudioLanguage:Ke,selectQuality:Xe,selectSubtitle:Ut}}));var Co=N3();let ki;var To=_(Co);{var Tn=qe=>{var ct=R3();let Jt;ct.__keydown=[L3,Ft];var Ot=_(ct);{var Wt=di=>{var _t=V3();let Oi;var Ii=_(_t),In=_(Ii,!0);h(Ii);var _i=I(Ii,2);_i.__click=Ue,h(_t),O((to,io)=>{Oi=X(_t,1,"item header svelte-17or3al",null,Oi,to),pe(In,io)},[()=>({mobile:l()}),()=>Kt("submenu_settings")]),b(di,_t)};M(Ot,di=>{l()&&di(Wt)})}var hi=I(Ot,2);let kn;pi(hi,21,()=>n(Ti),di=>di.id,(di,_t)=>{var Oi=Oe(),Ii=de(Oi);{var In=to=>{ev(to,{get isMobile(){return l()},get id(){return n(_t).id},get icon(){return n(_t).icon},get label(){return n(_t).label},get ariaLabel(){return n(_t).ariaLabel},get value(){return n(_t).value},get valueComponent(){return n(_t).valueComponent},onClick:()=>{Me(n(_t).children),N(me,n(_t).id,!0)},get ref(){return Z[n(_t).id]},set ref(io){Z[n(_t).id]=io}})},_i=(to,io)=>{{var nn=mi=>{iv(mi,{get isMobile(){return l()},get id(){return n(_t).id},get onClick(){return n(_t).onClick},get icon(){return n(_t).icon},get label(){return n(_t).label},get ariaLabel(){return n(_t).ariaLabel},closeSettings:Ue})},Bo=(mi,Ei)=>{{var Do=vo=>{nv(vo,{get isMobile(){return l()},get id(){return n(_t).id},get onClick(){return n(_t).onClick},get icon(){return n(_t).icon},get label(){return n(_t).label},get ariaLabel(){return n(_t).ariaLabel},get enabled(){return n(_t).enabled},get tooltipText(){return n(_t).tooltipText},get maxTooltipWidth(){return n(_t).maxTooltipWidth}})};M(mi,vo=>{n(_t).type==="SWITCH"&&vo(Do)},Ei)}};M(to,mi=>{n(_t).type==="CLICK"?mi(nn):mi(Bo,!1)},io)}};M(Ii,to=>{n(_t).type==="OPEN_SUB_MENU"?to(In):to(_i,!1)})}b(di,Oi)}),h(hi),tt(hi,di=>ie(di),()=>ie()),h(ct),O((di,_t,Oi)=>{Jt=X(ct,1,"settings-menu menu svelte-17or3al",null,Jt,di),kn=X(hi,1,"items",null,kn,_t),it(hi,Oi)},[()=>({desktop:!l(),mobile:l(),hidden:!!j.current}),()=>({mobile:l()}),en]),bt("mouseenter",ct,Ni),bt("mouseleave",ct,wn),b(qe,ct)};M(To,qe=>{r()&&qe(Tn)})}var H=I(To,2);pi(H,17,()=>n(on),qe=>qe.id,(qe,ct)=>{let Jt=v(()=>n(ct).minWidth??137);Jm(qe,{get isMobile(){return l()},get playerControlsHeight(){return re()},get returnFromSubMenu(){return j.popSubMenu},get id(){return n(ct).id},get title(){return n(ct).title},get closeSettingsMenu(){return Ft},openSubMenuList:Me,get items(){return n(ct).items},get minWidth(){return n(Jt)},get refMenuItems(){return Z},get listRef(){return ue[n(ct).id]},set listRef(Ot){ue[n(ct).id]=Ot}})}),h(Co),O(qe=>ki=X(Co,1,"settings-menu-container svelte-17or3al",null,ki,qe),[()=>({mobile:l(),hidden:!r()})]),b(t,Co),U(),o()}st(["keydown","click"]);var B3=t=>t;function i0(t,{delay:e=0,duration:i=400,easing:o=B3}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var D3=E('<button class="button svelte-1sbbskl"> </button>'),H3={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function _v(t,e){W(t,H3);var i=D3();i.__click=function(...r){e.onClick?.apply(this,r)};var o=_(i,!0);h(i),O(()=>pe(o,e.label)),b(t,i)}st(["click"]);var F3=E('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),U3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
304
+ .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 zd(t,e){F(e,!0),W(t,A3);let[i,o]=Ve(),r=()=>$(le,"$settingsMenuVisible",i),s=()=>$(lt,"$settingsMenuOpenedByKeyboard",i),a=()=>$(_t,"$debugPanelVisible",i),l=()=>$(Me,"$isMobile",i),d=()=>$(gt,"$playerSize",i),f=()=>$(Oe,"$hasMpegSources$",i),p=()=>$(Ue,"$mobileNotReportControlHidden$",i),g=()=>$(Ne,"$autoQualityLimitingAvailable$",i),u=()=>$(te,"$availableSubtitlesList$",i),y=()=>$(Ze,"$isLiveWithPlaybackSpeed",i),x=()=>$(Ie,"$availableAudioStreams$",i),w=()=>$(Ce,"$availablePlaybackRates$",i),S=()=>$(_e,"$currentAudioStream$",i),T=()=>$(Ee,"$currentPlaybackRate$",i),k=()=>$(ut,"$trafficSavingEnabled",i),L=()=>$(Fe,"$currentQuality$",i),A=()=>$(oe,"$isAutoQualityEnabled$",i),I=()=>$(de,"$currentSubtitle$",i),O=()=>$(Dt,"$additionalSettingsMenuItems$",i),G=()=>$(R,"$isAutoQualityAvailable$",i),D=()=>$(se,"$availableQualities$",i),ee=()=>$(xt,"$highQualityEnabled",i),X=m(e,"ref",15,void 0),ae=m(e,"playerControlsHeight",3,0),j=qt({}),ue=qt({}),Y=Se(),he=It(),_e=Y.state.audioStream$,Ie=Y.state.availableAudioStreams$,Fe=Y.state.currentQuality$,se=Y.state.availableQualities$,Ne=Y.state.autoQualityLimitingAvailable$,oe=Y.state.isAutoQualityEnabled$,R=Y.state.isAutoQualityAvailable$,Ee=Y.state.currentPlaybackRate$,Ce=Y.state.availablePlaybackRates$,de=Y.state.currentSubtitle$,te=Y.state.availableSubtitlesList$,be=Y.state.canDownload,Oe=Y.state.hasMpegSources$,le=Y.ui.settingsMenu.visible$,lt=Y.ui.settingsMenu.openedByBtnKeyboard$,K=Y.ui.settingsMenu.ref$,Me=Y.ui.isMobile,Ue=Y.ui.mobileNotReportControlHidden$,Ze=Y.state.canChangePlaybackSpeed$,ut=Y.state.trafficSavingEnabled$,xt=Y.state.highQualityEnabled$,gt=Y.ui.playerSize,_t=Y.ui.debugPanelVisible,Qe=Y.state.isInteractiveTime$,Dt=Y.ui.additionalSettingsMenuItems$,zt=Y.ui.t,Xe=Y.actions.internal.downloadVideo,Bt=Y.actions.internal.closeSettingsMenu,$e=Y.actions.internal.openSettingsSubMenu,Ht=Y.actions.internal.closeSettingsSubMenu,ye=Q(!1),pe=Q(void 0),Z=N1();De(()=>{!r()&&Z.current&&(Ht(ue[Z.current]),Z.popAllSubMenus())}),De(()=>{r()||V(pe,void 0)}),De(()=>{!Z.current&&n(pe)&&Xh(j,n(pe))}),De(()=>{X()&&K.set(X())});async function Pe(Ge){Z.pushSubMenu(Ge),await ao(),$e(Ge,ue[Ge]);let pt=X()?.firstElementChild;pt&&$f(pt)}function Ye(Ge){Ge?.stopPropagation(),s()||e.returnFocus?.(),Bt(),V(ye,!1)}function Je(Ge,pt){Y.actions.internal.setQuality(Ge,{appliesTo:pt}),Ye()}function He(Ge){Y.actions.internal.setAudioStream(Ge),Ye()}function Le(Ge,pt){Y.actions.internal.setTrafficSavingEnabled(Ge,pt),he.features.qualityDetailsSubMenuEnabled&&Ye()}function ot(Ge,pt){Y.actions.internal.setHighQualityEnabled(Ge,pt),Ye()}function rt(Ge){Y.actions.internal.setPlaybackRate(Ge),Ye()}function tt(Ge){Y.actions.internal.setSubtitle(Ge),Ye()}function Et(){Xe()}function wi(){(0,Ud.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),Y.actions.internal.reportProblem(),Y.actions.internal.pause()}function zi(){rl(Y.actions.internal.getDebugTextData())}let Mi=()=>{let Ge=Y.actions.internal.getTraceTextData(),pt=new Blob([...Ge],{type:"application/json"}),jt=window.URL.createObjectURL(pt);ra(jt,"vk_player_trace_info","json")};function on(){_t.set(!a())}function $o(){V(ye,!0)}function nn(){V(ye,!1)}function rn(){return l()?`max-height: ${Math.round(d().height*.6)}px`:`max-height: ${d().height-32-ae()}px; overflow: auto;`}let Oo=v(()=>be&&f()&&!p()),Ft=v(()=>he.features.trafficSaving&&!p()&&g()&&!he.features.qualityDetailsSubMenuEnabled),Zi=v(()=>u().length>0&&!p()),Tn=v(()=>!!y()&&!p()),sn=v(()=>he.features.audioLanguages&&x().length>=2&&!p()),yo=v(()=>!p());At(()=>Qe.subscribe(Ge=>{Ge&&!l()&&!n(ye)&&!s()&&Ye()}));let Xi=v(()=>{let Ge=[n(yo)&&"QUALITY_SETTINGS",n(sn)&&"AUDIO_LANGUAGES",n(Tn)&&"PLAYBACK_RATE",n(Zi)&&"SUBTITLES",n(Ft)&&"TRAFFIC_SAVING_SWITCH",n(Oo)&&"DOWNLOAD",he.showSupport&&"SHOW_SUPPORT","COPY_DATA",he.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(pt=>!!pt);return K1({items:Ge,context:{qualityDetailsSubMenuEnabled:he.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:w(),currentAudioStream:S(),availableAudioStreams:x(),currentPlaybackRate:T(),selectPlaybackRate:rt,trafficSavingEnabled:k(),toggleTrafficSaving:Le,currentQuality:L()||Ud.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:l(),onDownloadClick:Et,onCopyDataClick:zi,onReportProblemClick:wi,onSaveTraceDataClick:Mi,toggleShowDebugInfo:on},additionalSettingsMenuItems:O()})}),an=v(()=>W1({subMenuId:Z.current,context:{availablePlaybackRates:w(),selectPlaybackRate:rt,trafficSavingEnabled:k(),toggleTrafficSaving:Le,currentQuality:L()||Ud.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:G()||!1,availableQualities:D(),highQualityEnabled:ee(),toggleHighQuality:ot,availableAudioStreams:x(),availableSubtitlesList:u(),closeSettingsMenu:Bt,currentAudioStream:S(),isMobile:l(),selectAudioLanguage:He,selectQuality:Je,selectSubtitle:tt}}));var xo=P3();let Si;var wo=_(xo);{var kn=Ge=>{var pt=E3();let jt;pt.__keydown=[k3,Bt];var Lt=_(pt);{var Gt=ni=>{var bt=I3();let vi;var po=_(bt),In=_(po,!0);h(po);var gi=E(po,2);gi.__click=Ye,h(bt),N((Li,fo)=>{vi=J(bt,1,"item header svelte-17or3al",null,vi,Li),fe(In,fo)},[()=>({mobile:l()}),()=>zt("submenu_settings")]),b(ni,bt)};M(Lt,ni=>{l()&&ni(Gt)})}var mi=E(Lt,2);let Do;ai(mi,21,()=>n(Xi),ni=>ni.id,(ni,bt)=>{var vi=Be(),po=ce(vi);{var In=Li=>{qm(Li,{get isMobile(){return l()},get id(){return n(bt).id},get icon(){return n(bt).icon},get label(){return n(bt).label},get ariaLabel(){return n(bt).ariaLabel},get value(){return n(bt).value},get valueComponent(){return n(bt).valueComponent},onClick:()=>{Pe(n(bt).children),V(pe,n(bt).id,!0)},get ref(){return j[n(bt).id]},set ref(fo){j[n(bt).id]=fo}})},gi=(Li,fo)=>{{var ln=di=>{Gm(di,{get isMobile(){return l()},get id(){return n(bt).id},get onClick(){return n(bt).onClick},get icon(){return n(bt).icon},get label(){return n(bt).label},get ariaLabel(){return n(bt).ariaLabel},closeSettings:Ye})},dn=(di,Ci)=>{{var So=Co=>{Ym(Co,{get isMobile(){return l()},get id(){return n(bt).id},get onClick(){return n(bt).onClick},get icon(){return n(bt).icon},get label(){return n(bt).label},get ariaLabel(){return n(bt).ariaLabel},get enabled(){return n(bt).enabled},get tooltipText(){return n(bt).tooltipText},get maxTooltipWidth(){return n(bt).maxTooltipWidth}})};M(di,Co=>{n(bt).type==="SWITCH"&&Co(So)},Ci)}};M(Li,di=>{n(bt).type==="CLICK"?di(ln):di(dn,!1)},fo)}};M(po,Li=>{n(bt).type==="OPEN_SUB_MENU"?Li(In):Li(gi,!1)})}b(ni,vi)}),h(mi),it(mi,ni=>X(ni),()=>X()),h(pt),N((ni,bt,vi)=>{jt=J(pt,1,"settings-menu menu svelte-17or3al",null,jt,ni),Do=J(mi,1,"items",null,Do,bt),nt(mi,vi)},[()=>({desktop:!l(),mobile:l(),hidden:!!Z.current}),()=>({mobile:l()}),rn]),yt("mouseenter",pt,$o),yt("mouseleave",pt,nn),b(Ge,pt)};M(wo,Ge=>{r()&&Ge(kn)})}var H=E(wo,2);ai(H,17,()=>n(an),Ge=>Ge.id,(Ge,pt)=>{let jt=v(()=>n(pt).minWidth??137);Km(Ge,{get isMobile(){return l()},get playerControlsHeight(){return ae()},get returnFromSubMenu(){return Z.popSubMenu},get id(){return n(pt).id},get title(){return n(pt).title},get closeSettingsMenu(){return Bt},openSubMenuList:Pe,get items(){return n(pt).items},get minWidth(){return n(jt)},get refMenuItems(){return j},get listRef(){return ue[n(pt).id]},set listRef(Lt){ue[n(pt).id]=Lt}})}),h(xo),N(Ge=>Si=J(xo,1,"settings-menu-container svelte-17or3al",null,Si,Ge),[()=>({mobile:l(),hidden:!r()})]),b(t,xo),U(),o()}dt(["keydown","click"]);var M3=t=>t;function q1(t,{delay:e=0,duration:i=400,easing:o=M3}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var L3=P('<button class="button svelte-1sbbskl"> </button>'),V3={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 cv(t,e){W(t,V3);var i=L3();i.__click=function(...r){e.onClick?.apply(this,r)};var o=_(i,!0);h(i),N(()=>fe(o,e.label)),b(t,i)}dt(["click"]);var R3=P('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),N3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
305
305
  /**
306
306
  * \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.
307
- */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Gd(t,e){F(e,!0),W(t,U3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Tt(),{ui:{t:r}}=xe(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var a=F3(),l=_(a),d=_(l),f=_(d),p=_(f);Kd(p,{get message(){return s}}),h(f);var g=I(f,2);{var u=x=>{let w=v(()=>r("slow_video_notification_button"));_v(x,{get label(){return n(w)},get onClick(){return e.onSelectAutoQuality}})};M(g,x=>{o||x(u)})}h(d);var y=I(d,2);pa(y,{get onClick(){return e.onClose}}),h(l),h(a),Gp(3,l,()=>i0,()=>({duration:i})),b(t,a),U()}var jd=require("@vkontakte/videoplayer-shared"),Ia="annotation",Lu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:a}=i;e.setAttribute("slot",Ia),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),a&&this.store?.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"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){let r=this.slots.get(e);if(!r)return;let s=await this.findSlotElement(r.rootElement,i,e),{controls:a,hiddenControls:l}=this.store?.ui||{},d=new MutationObserver(p=>p.forEach(()=>{let g=ms(s,this.shadowRootContainer);o.forEach(u=>{let y=a?.[u],x=y?ve(y):null,w=l?.[u];x&&w?.set((0,jd.isIntersecting)(x,g))})}));d.observe(s,{childList:!0,subtree:!0}),r.observer=d;let f=new jd.Subscription;o.forEach(p=>{a&&f.add(a[p].subscribe(g=>{let u=l?.[p];g&&g.isDisplayed?u?.set((0,jd.isIntersecting)(g,ms(s,this.shadowRootContainer))):u?.set(!1)}))}),r.subs=f}async findSlotElement(e,i,o){return new Promise(r=>{let s=null,a=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){a.disconnect();let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=void 0),r(s)}});a.observe(e,{childList:!0,subtree:!0});let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=a)})}remove(e){let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:a,options:{controlsBehaviour:l,hideAllControls:d}}=i;o&&o.remove(),[r,s].forEach(f=>f?.disconnect()),a?.unsubscribe(),this.slots.delete(e),d&&this.store?.ui.isControlsAvailable.set(!0),l?.controlsToObserve?.forEach(f=>{this.store?.ui.hiddenControls[f]?.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var z3=E('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),W3={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;
307
+ */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 Wd(t,e){F(e,!0),W(t,N3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=It(),{ui:{t:r}}=Se(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var a=R3(),l=_(a),d=_(l),f=_(d),p=_(f);Fd(p,{get message(){return s}}),h(f);var g=E(f,2);{var u=x=>{let w=v(()=>r("slow_video_notification_button"));cv(x,{get label(){return n(w)},get onClick(){return e.onSelectAutoQuality}})};M(g,x=>{o||x(u)})}h(d);var y=E(d,2);fa(y,{get onClick(){return e.onClose}}),h(l),h(a),Hp(3,l,()=>q1,()=>({duration:i})),b(t,a),U()}var Kd=require("@vkontakte/videoplayer-shared"),Ea="annotation",Iu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:a}=i;e.setAttribute("slot",Ea),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),a&&this.store?.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"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){let r=this.slots.get(e);if(!r)return;let s=await this.findSlotElement(r.rootElement,i,e),{controls:a,hiddenControls:l}=this.store?.ui||{},d=new MutationObserver(p=>p.forEach(()=>{let g=ms(s,this.shadowRootContainer);o.forEach(u=>{let y=a?.[u],x=y?ve(y):null,w=l?.[u];x&&w?.set((0,Kd.isIntersecting)(x,g))})}));d.observe(s,{childList:!0,subtree:!0}),r.observer=d;let f=new Kd.Subscription;o.forEach(p=>{a&&f.add(a[p].subscribe(g=>{let u=l?.[p];g&&g.isDisplayed?u?.set((0,Kd.isIntersecting)(g,ms(s,this.shadowRootContainer))):u?.set(!1)}))}),r.subs=f}async findSlotElement(e,i,o){return new Promise(r=>{let s=null,a=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){a.disconnect();let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=void 0),r(s)}});a.observe(e,{childList:!0,subtree:!0});let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=a)})}remove(e){let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:a,options:{controlsBehaviour:l,hideAllControls:d}}=i;o&&o.remove(),[r,s].forEach(f=>f?.disconnect()),a?.unsubscribe(),this.slots.delete(e),d&&this.store?.ui.isControlsAvailable.set(!0),l?.controlsToObserve?.forEach(f=>{this.store?.ui.hiddenControls[f]?.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var B3=P('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),O3={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;
308
308
 
309
309
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
310
310
 
@@ -335,8 +335,8 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Yh=z_;var f
335
335
  opacity: 0;
336
336
  scale: 0;
337
337
  }
338
- }`};function bv(t,e){F(e,!0),W(t,W3);let[i,o]=Ve(),r=()=>$(a,"$isPlaying$",i),s=()=>$(l,"$aboutToGoNextVideo",i),{state:{isPlaying$:a},ui:{aboutToGoNextVideo:l},actions:d}=xe(),{features:{playbackStatusShow:f,playbackStatusAnimationDuration:p,playbackStatusNextVideoAnimationDuration:g}}=Tt(),u=0,y=G(null),x=G(!1);Be(()=>{N(y,r()?Vr:gs,!0)}),Be(()=>{N(y,s()?Ns:null,!0)}),Be(()=>{if(f)return u=window.setTimeout(()=>{u=0,s()&&n(y)===Ns&&(s()==="next"?d.internal.nextVideoClick(!1):d.internal.prevVideoClick(!1)),N(y,null)},n(y)!==Ns?p:g),()=>{u&&(window.clearTimeout(u),u=0)}}),Be(()=>{r()&&!n(x)&&(N(x,!0),N(y,null))});var w=Oe(),S=de(w);{var T=k=>{var V=Oe(),A=de(V);Xs(A,()=>n(y),L=>{var P=z3(),Q=_(P),D=_(Q);let J=v(()=>s()==="prev");fi(D,()=>n(y),(ie,re)=>{re(ie,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return n(J)}})}),h(Q),h(P),O(()=>it(Q,`animation-duration: ${n(y)!==Ns?p:g}ms`)),b(L,P)}),b(k,V)};M(S,k=>{n(y)&&f&&k(T)})}b(t,w),U(),o()}var K3=E('<div><div data-testid="video-container"></div></div>'),q3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
339
- .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 Ea(t,e){F(e,!0),W(t,q3);let[i,o]=Ve(),r=()=>$(p,"$rotateAlpha",i),s=()=>$(g,"$playerSize",i),a=()=>$(f,"$playerPhase",i),l=()=>$(u,"$isPlaying$",i),d=m(e,"videoContainer",15),{playerPhase:f,ui:{rotateAlpha:p,playerSize:g},state:{isPlaying$:u}}=xe(),{isSmoothVideoRotate:y}=Tt(),x=v(()=>d()&&r()%180?s().height/s().width:1);var w=K3();let S;w.__contextmenu=function(...V){e.onContextMenu?.apply(this,V)},w.__mousedown=function(...V){e.onMouseDown?.apply(this,V)},w.__mouseup=function(...V){e.onMouseUp?.apply(this,V)},w.__click=function(...V){e.onClick?.apply(this,V)},w.__dblclick=function(...V){e.onDblClick?.apply(this,V)};var T=_(w);let k;tt(T,V=>d(V),()=>d()),h(w),O((V,A)=>{S=X(w,1,"video-wrapper svelte-1czns9r",null,S,V),k=X(T,1,"video-container svelte-1czns9r",null,k,A),it(T,`transform: rotate(${r()}deg) scale(${n(x)})`),Ne(T,"data-is-playing",l())},[()=>({hidden:a()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),b(t,w),U(),o()}st(["contextmenu","mousedown","mouseup","click","dblclick"]);var Q3=$e('<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 $v(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Q3();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var G3=E('<div><span class="text svelte-1tixim0"> </span> <!></div>'),j3={hash:"svelte-1tixim0",code:".root.svelte-1tixim0 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:#FFFFFF;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;}.root.visible.svelte-1tixim0 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1tixim0 {font-size:13px;line-height:16px;font-weight:600;}"};function yv(t,e){F(e,!0),W(t,j3);let{ui:{t:i}}=xe();var o=G3();let r;var s=_(o),a=_(s,!0);h(s);var l=I(s,2);$v(l,{}),h(o),O((d,f)=>{r=X(o,1,"root svelte-1tixim0",null,r,d),pe(a,f)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),U()}var Y3=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},Z3=E("<div><!></div>"),X3=E('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),J3=E("<div><!></div>"),ex=E('<div class="settings-menu svelte-jtgjmv"><!></div>'),tx=E("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ix=E("<!> <!> <!>",1),ox=E('<div class="blocked svelte-jtgjmv"></div>'),nx=E('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),rx={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 wv(t,e){F(e,!0),W(t,rx);let[i,o]=Ve(),r=()=>$(Or,"$notificationsToShow$",i),s=()=>$(wn,"$playerPhase",i),a=()=>$(Co,"$isLoaderVisible",i),l=()=>$(Qt,"$adPlaybackState",i),d=()=>$(Jt,"$crashed",i),f=()=>$(In,"$isInteractiveTime$",i),p=()=>$(qi,"$settingsMenuVisible",i),g=()=>$(_i,"$isInteractiveExpectation$",i),u=()=>$(zt,"$controlsVisible",i),y=()=>$(io,"$touched",i),x=()=>$(rn,"$graphIsOpened$",i),w=()=>$(en,"$isFullscreen",i),S=()=>$(cr,"$autoplayNextEnabled$",i),T=()=>$(H,"$postrollPassed",i),k=()=>$(ki,"$isEnded$",i),V=()=>$(ln,"$cursorInside",i),A=()=>$(ur,"$isControlsAvailable",i),L=()=>$(Nr,"$doubleForwardOn$",i),P=()=>$(Pn,"$fakeIsPlaying$",i),Q=()=>$(an,"$bottomNoSmooth",i),D=()=>$(Ei,"$interactiveTimeIndicator",i),J=()=>$(di,"$playerSize",i),ie=()=>$(_t,"$is3DVideo",i),re=()=>$(Ti,"$contextMenuVisible$",i),Z=()=>$(yt,"$playbackState$",i),ue=()=>$(nn,"$hotKeyMapData",i),Y=()=>$(tn,"$scrubbingInProgress",i),we=()=>$(Cn,"$volumeChangingInProgress",i),_e=()=>$(To,"$chromecastConnected$",i),Ee=()=>$(bi,"$controlsTimeoutActive",i),He=()=>$(Sn,"$settingsMenuOpenedByKeyboard",i),ae=()=>$(yr,"$contextMenuOpenedByKeyboard$",i),Re=()=>$(fn,"$contextMenuOpenedByHotKey$",i),ne=()=>$(xr,"$contextMenuButtonRef$",i),R=()=>$(wr,"$contextMenuLastActiveElem$",i),Pe=()=>$(Oo,"$isFullscreenOpenedByKeyboard",i),Te=()=>$($t,"$language$",i),ce=()=>$(Oi,"$icon3DVideoVisible",i),ee=()=>$(Tn,"$chromecastDeviceName$",i),ye=()=>$(hi,"$currentSubtitle$",i),De=()=>$(kn,"$currentSubtitleCaptions$",i),le=()=>$(eo,"$position$",i),at=()=>$(Ni,"$duration$",i),K=()=>$(qe,"$isLive$",i),Ae=()=>$(ct,"$isPlaying$",i),Fe=()=>$(vo,"$contextMenuPosition$",i),Ye=()=>$(Bo,"$showHotKeyMap",i),dt=()=>$(on,"$debugPanelVisible",i),Ct=()=>$(En,"$userActionsDisabled$",i),ut=m(e,"videoContainer",15),vt=m(e,"adsSlotId",3,void 0),Je=m(e,"adsParams",3,void 0),Nt=m(e,"adsPreviewParam",3,void 0),Kt=m(e,"adsAutoplayParam",3,void 0),At=m(e,"duration",3,void 0),Ft=m(e,"logoTargetUrl",3,""),Ce=m(e,"showNextPrevButtons",3,!1),Ze=m(e,"nextButtonActive",3,!1),he=m(e,"prevButtonActive",3,!1),me=m(e,"endScreenVideoTitle",3,void 0),j=m(e,"endScreenVideoThumb",3,void 0),Me=m(e,"isOneVideoPlaylist",3,!1),Ue=m(e,"shadowRootContainer",3,void 0),Xe=m(e,"outerContainerRef",3,void 0),Ke=m(e,"playerStarted",3,!1),Le=m(e,"fullScreenTarget",3,void 0),ot=m(e,"showMiniTimer",3,!1),qt=m(e,"showEndScreen",3,!0),Ut=m(e,"keyboardControls",15),Rt=e.store.getLogger().createComponentLog("Root component"),$t=e.store.interfaceLanguage$,yt=e.store.state.playbackState$,Qt=e.store.ads.playbackState,eo=e.store.state.positionWithScrubbing$,Ni=e.store.state.duration$,wn=e.store.playerPhase,en=e.store.ui.isFullscreen,Oo=e.store.ui.isFullscreenOpenedByKeyboard,zt=e.store.ui.controlsVisible,qi=e.store.ui.settingsMenu.visible$,Sn=e.store.ui.settingsMenu.openedByBtnKeyboard$,tn=e.store.ui.scrubbingInProgress,Cn=e.store.ui.volumeChangingInProgress,Ti=e.store.ui.contextMenu.visible$,on=e.store.ui.debugPanelVisible,Co=e.store.state.isLoaderVisible,ki=e.store.state.isEnded$,To=e.store.state.chromecastConnected$,Tn=e.store.state.chromecastDeviceName$,H=e.store.ads.postrollPassed,qe=e.store.state.isLive$,ct=e.store.state.isPlaying$,Jt=e.store.state.crashed$,Ot=e.store.webApi.annotationsApi,Wt=e.store.webApi.pictureInPictureApi,hi=e.store.state.currentSubtitle$,kn=e.store.state.currentSubtitleCaptions$,di=e.store.ui.playerSize,_t=e.store.ui.is3DVideo,Oi=e.store.ui.icon3DVideoVisible,Ii=e.store.state.isInteractive,In=e.store.state.isInteractiveTime$,_i=e.store.state.isInteractiveExpectation$,to=e.store.state.hasInteractiveBranches,io=e.store.ui.touched,nn=e.store.ui.modals.hotKeyMap.data,Bo=e.store.ui.modals.hotKeyMap.show,mi=e.store.ui.overlayContainer$,Ei=e.store.ui.controls.interactiveTimeIndicator,Do=e.store.state.showInteractiveTimeIndicator,vo=e.store.ui.contextMenu.position$,Ho=e.store.actions.internal.setQuality,Fo=e.store.actions.internal.closeSettingsMenu,cr=e.store.ui.autoplayNextEnabled$,En=e.store.ui.userActionsDisabled,ur=e.store.ui.isControlsAvailable,jn=e.store.ui.videoTitleInfo,Nr=e.store.ui.doubleForwardOn$,Uo=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Pn,notifications$:Yn,graphIsOpened$:rn}=Ji(),Qi=G(void 0),An=G(void 0),pr=G(void 0),sn=G(void 0),Zn,Mn,ko;nn.set(i1());let{closeNotification:Ln,notificationsToShow$:Or}=Yn,fr=v(()=>!!r().slow_video),oo=()=>Ln("slow_video"),pt=v(()=>(s()==="video"&&a()||s()==="ads"&&l()==="inactive")&&!d()),ci=G(void 0),an=te(!1),Pi,bi=te(!1),Io=te(),ln=te(!1),Gi=G(!1),zo=G(!1),Eo=G(!1),no=G(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),mr=v(()=>f()&&!p()&&!(n(Gi)||n(zo))&&!(n(Eo)&&!g())),vr=!0,Br=v(()=>e.uiConfig.features.thumbTimer&&ot()&&s()==="video"&&!u()&&!d()&&!Ii&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),is=v(()=>s()==="video"&&!x()&&w()),dn=G(!1),Xn=v(()=>(qt()||e.showAutoplayNext&&S())&&!!me()&&!!j()&&(e.showAds&&T()||!e.showAds)&&k()&&!d()&&!n(dn)),gr=v(()=>V()&&!(u()||n(Xn))&&!f()&&A()&&!L()),ro=G(!1),Yt=v(()=>P()!==null),{toggle:Wo}=Pn,Ko=!1,cn=null;Wt?.setContext(Rl());let gt=()=>{e.autoplay&&!Ii&&e.uiConfig.controls.showOnStartupAtAutoplay&&Gt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:gt});let Bt=()=>{window.clearTimeout(Zn),bi.set(!1)},Bi=()=>{window.clearTimeout(Mn),Io.set(null)},Gt=ge=>{Bt(),bi.set(!0),Zn=window.setTimeout(()=>bi.set(!1),ge);let Mt=ge-100;Pi=window.setTimeout(()=>{Q()&&an.set(!1)},Mt>0?Mt:ge)},un=(ge,Mt)=>{Bi(),Io.set(Mt),Mn=window.setTimeout(()=>Io.set(null),ge)},Vn=_t.subscribe(ge=>{Oi.set(ge),ge&&(window.clearTimeout(ko),ko=window.setTimeout(()=>Oi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),pn=async()=>{let ge=Is();if(ge){let Mt=ld(),oi=_r();ge=Mt===oi||Mt===Ue()}if(ge){Gt(e.uiConfig.controls.hideTimeoutFullscreen);try{await Wt?.exit()}catch(Mt){Rt({message:String(Mt)})}}en.set(ge),e.store.getAdmanWrapper().setFullscreen(ge),w()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},hr=ge=>{let{width:Mt,height:oi}=ge.target;di.set({width:Mt,height:oi})},Dr=()=>{let{width:ge,height:Mt}=n(Qi).getBoundingClientRect();di.set({width:ge,height:Mt})};Et(()=>(au(pn),e.uiConfig.features.annotationsInside&&Ot?.init(n(Qi)),la(Wt)&&(Wt?.assignPlayerContainer(n(Qi)),Wt?.setExternalEventHandlers({resize:hr,leavepictureinpicture:Dr})),e.interactiveContainer&&ut().parentElement?.insertBefore(e.interactiveContainer,ut().nextSibling),()=>{window.clearTimeout(Zn),window.clearTimeout(Pi),window.clearTimeout(Mn),window.clearTimeout(ko),Vn(),Wt?.dispose().catch(Mt=>{Rt({message:String(Mt)})}),lu(pn)}));let _r=()=>{let ge=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Xe()?n(Qi):Xe(),Mt=ge.getRootNode(),oi=Mt instanceof ShadowRoot?Mt.host:Mt,Ai=Le()instanceof HTMLElement&&Le().contains(oi);return e.uiConfig.allowChangingFullscreenTarget&&Le()&&Ai?Le():ge},br=()=>{Ti.set(!1)},qo=()=>{Fo(),br()},Jn=async()=>{br(),Is()?(await su(document),Rt({message:"exit fullscreen"})):(Rt({message:"request fullscreen"}),await ru(_r()))},$r=ge=>{x()||(ge.preventDefault(),Ti.set(!0),vo.set({left:ge.clientX,top:ge.clientY}))};function Hr(){ln.set(!0),Ii||Gt(e.uiConfig.controls.hideTimeoutCursor)}function go(){Ii||(an.set(!0),Gt(e.uiConfig.controls.hideTimeoutCursor))}function Rn(){ln.set(!1),N(zo,!1),N(Gi,!1),Ko=!1,e.store.actions.internal.releaseCamera(),Gt(e.uiConfig.controls.hideTimeout)}function et(ge){return ge?ge.offsetTop+et(ge.offsetParent):0}function xt(ge){return ge?ge.offsetLeft+xt(ge.offsetParent):0}function ui(ge){if(D()&&Do){let Mt=ge.currentTarget,oi=et(Mt),Ai=xt(Mt),bo=ge.pageX-Ai,mn=ge.pageY-oi,{left:ni,bottom:ri,right:ao}=D(),Ui=ao-ni;return bo>=ni-Ui&&mn<=ri+Ui}}function Di(ge){if(n(Qi)){let Mt=et(ge.currentTarget),oi=J().height,Ai=ge.pageY-Mt;if(ui(ge)){N(zo,!1);return}Ai<40?N(zo,!0):Ai>oi-40?N(Gi,!0):(N(zo,!1),p()||N(Gi,!1))}}function Hi(ge){Di(ge),!n(mr)&&!L()&&Gt(e.uiConfig.controls.hideTimeoutCursor),ie()&&Ko&&cn&&e.store.actions.internal.moveCameraFocusPX(cn.clientX-ge.clientX,cn.clientY-ge.clientY,ge.timeStamp-cn.timeStamp),cn=ge}let $i=0,ji=600,Yi=()=>{$i=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Bt()},ji)},so=()=>{setTimeout(()=>e.store.actions.internal.changeDoubleForwardOn(!1),0),clearTimeout($i)},Nn=ge=>{ge.preventDefault(),ge.button===0&&(Ko=!0,e.store.actions.internal.holdCamera(),e.uiConfig.features.doubleForwardAvailable&&Yi()),!Ko&&Gt(e.uiConfig.controls.hideTimeoutCursor)},ho=ge=>{ge.preventDefault(),ge.button===0&&(cn=ge,Ko=!1,e.store.actions.internal.releaseCamera(),e.uiConfig.features.doubleForwardAvailable&&so()),!L()&&Gt(e.uiConfig.controls.hideTimeoutCursor)},Zi=ge=>{ge.preventDefault(),vr&&(Rt({message:"double click on video"}),Jn(),Gt(e.uiConfig.controls.hideTimeoutCursor))},er=ge=>{if(ge.preventDefault(),re()||p()){qo();return}if(!L()&&!(k()&&!to)){if(n(Yt))return Wo();if(Ut()?.focus(),!Ke()){e.firstStart(),Gt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||Z()!==xv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Gt(e.uiConfig.controls.hideTimeoutCursor)}},On=ge=>{qo(),io.set(!0),Gt(e.uiConfig.controls.hideTimeout),ge&&un(e.uiConfig.controls.hideHotKeyHelpers,ge)},tr=()=>{qo(),e.store.callbacks?.onOpenHotKeyMap?e.store.callbacks?.onOpenHotKeyMap(ue()):Bo.update(ge=>!ge)},ir=()=>{io.set(!0)},yr=e.store.ui.contextMenu.openedByBtnKeyboard$,xr=e.store.ui.contextMenu.btnRef$,_o=G(void 0),fn=e.store.ui.contextMenu.openedByHotKey$,wr=e.store.ui.contextMenu.lastActiveElem$;Be(()=>{mi.set(n(ci))}),Be(()=>{N(Eo,n(no)&&Z()!==xv.PlaybackState.PLAYING,!0),n(no)||ht(()=>N(no,!0))}),Be(()=>{zt.set((n(Eo)||k()||p()||Y()||we()||_e()||Ee())&&!n(mr)&&(s()==="video"||s()==="ads")&&!d()&&A())}),Be(()=>{!Y()&&n(ro)&&!f()&&Gt(e.uiConfig.controls.hideTimeoutCursor),ht(()=>N(ro,Y(),!0))}),Be(()=>{n(sn),p(),He(),ht(()=>vd(n(sn),p(),He()))}),Be(()=>{n(_o),re(),ae(),Re(),ht(()=>{let ge=ae()||Re();vd(n(_o),re(),ge)})}),Be(()=>{let ge=ne();ge&&(re(),ht(()=>sl(ge,re(),yr)))}),Be(()=>{let ge=R();ge&&(re(),ht(()=>a1(ge,re(),fn)))}),Be(()=>{!Pe()&&w()&&(ht(()=>Oo.set(!1)),Ut()?.focus())}),Be(()=>{x()&&qo()});let Qe=z("video360"),Dt=G(void 0),yi=ge=>{jn.set(yn(Uo(),{title:n(Dt)},"title",ge))},Qo=(ge,Mt)=>{let oi=e.store.callbacks?.uiInfo?.onUpcomingLiveViewStateChanged;if(!oi)return;let Ai=!!Mt,bo={...yn(n(Qi),{upcomingLiveScreen:Mt},"upcomingLiveScreen",Ai),...ge};oi(bo)};var Xi=nx();bt("blur",qs,qo);var Fi=de(Xi);Fi.__mousemove=Hi;var Po=_(Fi);let or=v(()=>s()==="ads"),os=v(()=>n(Yt)?Wo:void 0);tt(Nf(Po,{startDoubleForwardActivationTimer:Yi,stopDoubleForward:so,toggleFullscreen:Jn,hideContextMenu:qo,showHotKeyHelpers:On,showKeyMap:tr,get isAds(){return n(or)},get fakePlayButtonHandler(){return n(os)},get nextButtonActive(){return Ze()},get prevButtonActive(){return he()},children:(ge,Mt)=>{var oi=ix(),Ai=de(oi);Ea(Ai,{get hideCursor(){return n(gr)},onClick:er,onContextMenu:$r,onMouseDown:Nn,onMouseUp:ho,onDblClick:Zi,get videoContainer(){return ut()},set videoContainer(ni){ut(ni)}});var bo=I(Ai,2);Js(bo,()=>"slot",!1,(ni,ri)=>{Se(ni,()=>({name:Ia}))});var mn=I(bo,2);Xs(mn,Te,ni=>{var ri=tx(),ao=de(ri);let Ui=v(()=>s()!=="thumb"||d()||Ii&&e.autoplay);Ca(ao,{get hidden(){return n(Ui)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Bn=I(ao,2);bv(Bn,{});var lo=I(Bn,2);yv(lo,{get isVisible(){return L()}});var nr=I(lo,2);{var kt=Ge=>{let Zt=v(()=>e.live?.startTime);zd(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Zt)},onUpcomingLiveViewStateChanged:Qo})};M(nr,Ge=>{s()==="LiveWaitingStart"&&Ge(kt)})}var wt=I(nr,2);{var Dn=Ge=>{Ta(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};M(wt,Ge=>{s()==="LiveWaitingRecover"&&Ge(Dn)})}var Ur=I(wt,2);{var ns=Ge=>{Ta(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};M(Ur,Ge=>{s()==="LiveWaitingRecord"&&Ge(ns)})}var zr=I(Ur,2);{var Wr=Ge=>{var Zt=Z3();let vn;var $s=_(Zt);cd($s,{get adsSlotId(){return vt()},get adsParams(){return Je()},get adsPreviewParam(){return Nt()},get adsAutoplayParam(){return Kt()},get duration(){return At()}}),h(Zt),O(rs=>vn=X(Zt,1,"ads-container svelte-jtgjmv",null,vn,rs),[()=>({hidden:s()!=="ads"})]),b(Ge,Zt)};M(zr,Ge=>{e.showAds&&Ke()&&Ge(Wr)})}var bs=I(zr,2);{var Sr=Ge=>{let Zt=v(()=>!qt()&&e.showAutoplayNext&&S());Lf(Ge,{get title(){return me()},get thumb(){return j()},get isHide(){return n(Zt)},clickCloseIcon:()=>N(dn,!0)})};M(bs,Ge=>{n(Xn)&&me()&&j()&&Ge(Sr)})}var sc=I(bs,2);{var ju=Ge=>{let Zt=v(()=>!u());Qm(Ge,{get title(){return e.title},get isHidden(){return n(Zt)},onVisibilityChanged:yi,get ref(){return n(Dt)},set ref(vn){N(Dt,vn,!0)}})};M(sc,Ge=>{n(is)&&Ge(ju)})}var ac=I(sc,2);{var Yu=Ge=>{let Zt=v(()=>s()==="video"&&u());Fd(Ge,{get isShifted(){return n(Zt)}})};M(ac,Ge=>{ie()&&Ge(Yu)})}var lc=I(ac,2);{var Zu=Ge=>{var Zt=X3(),vn=_(Zt);ad(vn,{get"aria-label"(){return Qe}}),h(Zt),b(Ge,Zt)};M(lc,Ge=>{ce()&&Ge(Zu)})}var dc=I(lc,2);{var Xu=Ge=>{Ud(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ee()}})};M(dc,Ge=>{_e()&&Ge(Xu)})}var cc=I(dc,2);{var Ju=Ge=>{wa(Ge,{get shifted(){return u()},get captions(){return De()},get position(){return le()},get playerSize(){return J()}})};M(cc,Ge=>{ye().value!=="off"&&Ge(Ju)})}var uc=I(cc,2);{var ep=Ge=>{var Zt=J3();Zt.__contextmenu=$r,Zt.__click=[Y3,re,Ti,p,qi,qo];var vn=_(Zt);Sa(vn,{}),h(Zt),b(Ge,Zt)};M(uc,Ge=>{d()&&Ge(ep)})}var pc=I(uc,2);{var tp=Ge=>{let Zt=v(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),vn=v(()=>s()==="ads"),$s=v(()=>e.canRewindLive&&at()!==0);Hd(Ge,{get bottomHidden(){return n(Zt)},get bottomNoSmooth(){return Q()},get showControls(){return u()},get isAds(){return n(vn)},get canRewindLive(){return n($s)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ft()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ce()},get nextButtonActive(){return Ze()},get prevButtonActive(){return he()},get isOneVideoPlaylist(){return Me()},customFullscreenSupported:vr,toggleFullscreen:Jn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(An)},set playerControlsWrapperRef(rs){N(An,rs,!0)},get playerControlsRef(){return n(pr)},set playerControlsRef(rs){N(pr,rs,!0)}})};M(pc,Ge=>{Ke()&&Ge(tp)})}var fc=I(pc,2);{var Ma=Ge=>{var Zt=ex(),vn=_(Zt);let $s=v(()=>n(pr)?.clientHeight);Qd(vn,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n($s)},returnFocus:()=>Ut()?.focus(),get ref(){return n(sn)},set ref(rs){N(sn,rs,!0)}}),h(Zt),b(Ge,Zt)};M(fc,Ge=>{!_e()&&s()!=="ads"&&Ge(Ma)})}var mc=I(fc,2);let vc=v(()=>!n(Br));fd(mc,{get isLive(){return K()},get isHidden(){return n(vc)},get isPlaying(){return Ae()},get position(){return le()},get duration(){return at()}});var Tl=I(mc,2);zm(Tl,{get data(){return Io}});var gc=I(Tl,2);Af(gc,{get supportLink(){return e.supportLink},returnFocus:()=>Ut()?.focus(),get visible(){return re()},get playerContainerRef(){return n(Qi)},get controlsContainerRef(){return n(An)},get position(){return Fe()},get menuElementRef(){return n(_o)},set menuElementRef(Ge){N(_o,Ge,!0)}});var kl=I(gc,2);{var Il=Ge=>{Gd(Ge,{onClose:oo,onSelectAutoQuality:()=>{Ho("auto"),oo()}})};M(kl,Ge=>{n(fr)&&Ge(Il)})}var El=I(kl,2);{var ip=Ge=>{fa(Ge,{})};M(El,Ge=>{n(pt)&&Ge(ip)})}var Pl=I(El,2);{var op=Ge=>{Df(Ge,{})};M(Pl,Ge=>{Ye()&&Ge(op)})}var np=I(Pl,2);{var rp=Ge=>{hd(Ge,{})};M(np,Ge=>{dt()&&Ge(rp)})}b(ni,ri)}),b(ge,oi)},$$slots:{default:!0}}),ge=>Ut(ge),()=>Ut());var Fr=I(Po,2);tt(Fr,ge=>N(ci,ge),()=>n(ci)),h(Fi),tt(Fi,ge=>N(Qi,ge),()=>n(Qi));var nt=I(Fi,2);{var Ht=ge=>{var Mt=ox();b(ge,Mt)};M(nt,ge=>{Ct()&&ge(Ht)})}bt("mouseenter",Fi,Hr),bt("mouseleave",Fi,Rn),bt("click",Fi,ir,!0),bt("focusin",Fi,go,!0),b(t,Xi),U(),o()}st(["mousemove","contextmenu","click"]);var Bs=require("@vkontakte/videoplayer-core"),d0=require("@vkontakte/videoplayer-shared");var sx=E('<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),ax=E("<div><!></div>"),lx={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;
338
+ }`};function uv(t,e){F(e,!0),W(t,O3);let[i,o]=Ve(),r=()=>$(a,"$isPlaying$",i),s=()=>$(l,"$aboutToGoNextVideo",i),{state:{isPlaying$:a},ui:{aboutToGoNextVideo:l},actions:d}=Se(),{features:{playbackStatusShow:f,playbackStatusAnimationDuration:p,playbackStatusNextVideoAnimationDuration:g}}=It(),u=0,y=Q(null),x=Q(!1);De(()=>{V(y,r()?Vr:gs,!0)}),De(()=>{V(y,s()?Rs:null,!0)}),De(()=>{if(f)return u=window.setTimeout(()=>{u=0,s()&&n(y)===Rs&&(s()==="next"?d.internal.nextVideoClick(!1):d.internal.prevVideoClick(!1)),V(y,null)},n(y)!==Rs?p:g),()=>{u&&(window.clearTimeout(u),u=0)}}),De(()=>{r()&&!n(x)&&(V(x,!0),V(y,null))});var w=Be(),S=ce(w);{var T=k=>{var L=Be(),A=ce(L);Js(A,()=>n(y),I=>{var O=B3(),G=_(O),D=_(G);let ee=v(()=>s()==="prev");li(D,()=>n(y),(X,ae)=>{ae(X,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return n(ee)}})}),h(G),h(O),N(()=>nt(G,`animation-duration: ${n(y)!==Rs?p:g}ms`)),b(I,O)}),b(k,L)};M(S,k=>{n(y)&&f&&k(T)})}b(t,w),U(),o()}var D3=P('<div><div data-testid="video-container"></div></div>'),H3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
339
+ .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 Pa(t,e){F(e,!0),W(t,H3);let[i,o]=Ve(),r=()=>$(p,"$rotateAlpha",i),s=()=>$(g,"$playerSize",i),a=()=>$(f,"$playerPhase",i),l=()=>$(u,"$isPlaying$",i),d=m(e,"videoContainer",15),{playerPhase:f,ui:{rotateAlpha:p,playerSize:g},state:{isPlaying$:u}}=Se(),{isSmoothVideoRotate:y}=It(),x=v(()=>d()&&r()%180?s().height/s().width:1);var w=D3();let S;w.__contextmenu=function(...L){e.onContextMenu?.apply(this,L)},w.__mousedown=function(...L){e.onMouseDown?.apply(this,L)},w.__mouseup=function(...L){e.onMouseUp?.apply(this,L)},w.__click=function(...L){e.onClick?.apply(this,L)},w.__dblclick=function(...L){e.onDblClick?.apply(this,L)};var T=_(w);let k;it(T,L=>d(L),()=>d()),h(w),N((L,A)=>{S=J(w,1,"video-wrapper svelte-1czns9r",null,S,L),k=J(T,1,"video-container svelte-1czns9r",null,k,A),nt(T,`transform: rotate(${r()}deg) scale(${n(x)})`),Re(T,"data-is-playing",l())},[()=>({hidden:a()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),b(t,w),U(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var F3=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},U3=P("<div><!></div>"),z3=P('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),W3=P("<div><!></div>"),K3=P('<div class="settings-menu svelte-jtgjmv"><!></div>'),q3=P("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Q3=P("<!> <!> <!>",1),G3=P('<div class="blocked svelte-jtgjmv"></div>'),j3=P('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Y3={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function fv(t,e){F(e,!0),W(t,Y3);let[i,o]=Ve(),r=()=>$(un,"$notificationsToShow$",i),s=()=>$($o,"$playerPhase",i),a=()=>$(an,"$isLoaderVisible",i),l=()=>$(zi,"$adPlaybackState",i),d=()=>$(pt,"$crashed",i),f=()=>$(po,"$isInteractiveTime$",i),p=()=>$(Ft,"$settingsMenuVisible",i),g=()=>$(In,"$isInteractiveExpectation$",i),u=()=>$(Oo,"$controlsVisible",i),y=()=>$(Li,"$touched",i),x=()=>$(Yn,"$graphIsOpened$",i),w=()=>$(nn,"$isFullscreen",i),S=()=>$(Fo,"$autoplayNextEnabled$",i),T=()=>$(kn,"$postrollPassed",i),k=()=>$(xo,"$isEnded$",i),L=()=>$(Ti,"$cursorInside",i),A=()=>$(En,"$isControlsAvailable",i),I=()=>$(mr,"$fakeIsPlaying$",i),O=()=>$(ft,"$bottomNoSmooth",i),G=()=>$(di,"$interactiveTimeIndicator",i),D=()=>$(Do,"$playerSize",i),ee=()=>$(ni,"$is3DVideo",i),X=()=>$(yo,"$contextMenuVisible$",i),ae=()=>$(wi,"$playbackState$",i),j=()=>$(fo,"$hotKeyMapData",i),ue=()=>$(Tn,"$scrubbingInProgress",i),Y=()=>$(sn,"$volumeChangingInProgress",i),he=()=>$(Si,"$chromecastConnected$",i),_e=()=>$(zo,"$controlsTimeoutActive",i),Ie=()=>$(Zi,"$settingsMenuOpenedByKeyboard",i),Fe=()=>$(io,"$contextMenuOpenedByKeyboard$",i),se=()=>$(fn,"$contextMenuOpenedByHotKey$",i),Ne=()=>$(Gi,"$contextMenuButtonRef$",i),oe=()=>$(ir,"$contextMenuLastActiveElem$",i),R=()=>$(rn,"$isFullscreenOpenedByKeyboard",i),Ee=()=>$(Et,"$language$",i),Ce=()=>$(bt,"$icon3DVideoVisible",i),de=()=>$(wo,"$chromecastDeviceName$",i),te=()=>$(Gt,"$currentSubtitle$",i),be=()=>$(mi,"$currentSubtitleCaptions$",i),Oe=()=>$(Mi,"$position$",i),le=()=>$(on,"$duration$",i),lt=()=>$(H,"$isLive$",i),K=()=>$(Ge,"$isPlaying$",i),Me=()=>$(So,"$contextMenuPosition$",i),Ue=()=>$(ln,"$showHotKeyMap",i),Ze=()=>$(Xi,"$debugPanelVisible",i),ut=()=>$(Nr,"$userActionsDisabled$",i),xt=m(e,"videoContainer",15),gt=m(e,"adsSlotId",3,void 0),_t=m(e,"adsParams",3,void 0),Qe=m(e,"adsPreviewParam",3,void 0),Dt=m(e,"adsAutoplayParam",3,void 0),zt=m(e,"duration",3,void 0),Xe=m(e,"logoTargetUrl",3,""),Bt=m(e,"showNextPrevButtons",3,!1),$e=m(e,"nextButtonActive",3,!1),Ht=m(e,"prevButtonActive",3,!1),ye=m(e,"endScreenVideoTitle",3,void 0),pe=m(e,"endScreenVideoThumb",3,void 0),Z=m(e,"isOneVideoPlaylist",3,!1),Pe=m(e,"shadowRootContainer",3,void 0),Ye=m(e,"outerContainerRef",3,void 0),Je=m(e,"playerStarted",3,!1),He=m(e,"fullScreenTarget",3,void 0),Le=m(e,"showMiniTimer",3,!1),ot=m(e,"showEndScreen",3,!0),rt=m(e,"keyboardControls",15),tt=e.store.getLogger().createComponentLog("Root component"),Et=e.store.interfaceLanguage$,wi=e.store.state.playbackState$,zi=e.store.ads.playbackState,Mi=e.store.state.positionWithScrubbing$,on=e.store.state.duration$,$o=e.store.playerPhase,nn=e.store.ui.isFullscreen,rn=e.store.ui.isFullscreenOpenedByKeyboard,Oo=e.store.ui.controlsVisible,Ft=e.store.ui.settingsMenu.visible$,Zi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Tn=e.store.ui.scrubbingInProgress,sn=e.store.ui.volumeChangingInProgress,yo=e.store.ui.contextMenu.visible$,Xi=e.store.ui.debugPanelVisible,an=e.store.state.isLoaderVisible,xo=e.store.state.isEnded$,Si=e.store.state.chromecastConnected$,wo=e.store.state.chromecastDeviceName$,kn=e.store.ads.postrollPassed,H=e.store.state.isLive$,Ge=e.store.state.isPlaying$,pt=e.store.state.crashed$,jt=e.store.webApi.annotationsApi,Lt=e.store.webApi.pictureInPictureApi,Gt=e.store.state.currentSubtitle$,mi=e.store.state.currentSubtitleCaptions$,Do=e.store.ui.playerSize,ni=e.store.ui.is3DVideo,bt=e.store.ui.icon3DVideoVisible,vi=e.store.state.isInteractive,po=e.store.state.isInteractiveTime$,In=e.store.state.isInteractiveExpectation$,gi=e.store.state.hasInteractiveBranches,Li=e.store.ui.touched,fo=e.store.ui.modals.hotKeyMap.data,ln=e.store.ui.modals.hotKeyMap.show,dn=e.store.ui.overlayContainer$,di=e.store.ui.controls.interactiveTimeIndicator,Ci=e.store.state.showInteractiveTimeIndicator,So=e.store.ui.contextMenu.position$,Co=e.store.actions.internal.setQuality,Ho=e.store.actions.internal.closeSettingsMenu,Fo=e.store.ui.autoplayNextEnabled$,Nr=e.store.ui.userActionsDisabled,En=e.store.ui.isControlsAvailable,fr=e.store.ui.videoTitleInfo,jn=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:mr,notifications$:Uo,graphIsOpened$:Yn}=Yi(),Vi=Q(void 0),To=Q(void 0),Pn=Q(void 0),cn=Q(void 0),vr,An,Zn;fo.set(qh());let{closeNotification:gr,notificationsToShow$:un}=Uo,Mn=v(()=>!!r().slow_video),hr=()=>gr("slow_video"),_r=v(()=>(s()==="video"&&a()||s()==="ads"&&l()==="inactive")&&!d()),Wi=Q(void 0),ft=ie(!1),ri,zo=ie(!1),ci=ie(),Ti=ie(!1),ko=Q(!1),Io=Q(!1),Ji=Q(!1),Ln=Q(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Wo=v(()=>f()&&!p()&&!(n(ko)||n(Io))&&!(n(Ji)&&!g())),mo=!0,Br=v(()=>e.uiConfig.features.thumbTimer&&Le()&&s()==="video"&&!u()&&!d()&&!vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Or=v(()=>s()==="video"&&!x()&&w()),br=Q(!1),Dr=v(()=>(ot()||e.showAutoplayNext&&S())&&!!ye()&&!!pe()&&(e.showAds&&T()||!e.showAds)&&k()&&!d()&&!n(br)),Vn=v(()=>L()&&!(u()||n(Dr))&&!f()&&A()),Xn=Q(!1),Jn=v(()=>I()!==null),{toggle:eo}=mr,Ut=!1,Ki=null;Lt?.setContext(Al());let $r=()=>{e.autoplay&&!vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&wt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:$r});let is=()=>{window.clearTimeout(vr),zo.set(!1)},ht=()=>{window.clearTimeout(An),ci.set(null)},wt=ge=>{is(),zo.set(!0),vr=window.setTimeout(()=>zo.set(!1),ge);let Vt=ge-100;ri=window.setTimeout(()=>{O()&&ft.set(!1)},Vt>0?Vt:ge)},Ri=(ge,Vt)=>{ht(),ci.set(Vt),An=window.setTimeout(()=>ci.set(null),ge)},hi=ni.subscribe(ge=>{bt.set(ge),ge&&(window.clearTimeout(Zn),Zn=window.setTimeout(()=>bt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ko=async()=>{let ge=ks();if(ge){let Vt=nd(),ui=er();ge=Vt===ui||Vt===Pe()}if(ge){wt(e.uiConfig.controls.hideTimeoutFullscreen);try{await Lt?.exit()}catch(Vt){tt({message:String(Vt)})}}nn.set(ge),e.store.getAdmanWrapper().setFullscreen(ge),w()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},Rn=ge=>{let{width:Vt,height:ui}=ge.target;Do.set({width:Vt,height:ui})},Nn=()=>{let{width:ge,height:Vt}=n(Vi).getBoundingClientRect();Do.set({width:ge,height:Vt})};At(()=>(iu(Ko),e.uiConfig.features.annotationsInside&&jt?.init(n(Vi)),da(Lt)&&(Lt?.assignPlayerContainer(n(Vi)),Lt?.setExternalEventHandlers({resize:Rn,leavepictureinpicture:Nn})),e.interactiveContainer&&xt().parentElement?.insertBefore(e.interactiveContainer,xt().nextSibling),()=>{window.clearTimeout(vr),window.clearTimeout(ri),window.clearTimeout(An),window.clearTimeout(Zn),hi(),Lt?.dispose().catch(Vt=>{tt({message:String(Vt)})}),ou(Ko)}));let er=()=>{let ge=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ye()?n(Vi):Ye(),Vt=ge.getRootNode(),ui=Vt instanceof ShadowRoot?Vt.host:Vt,Oi=He()instanceof HTMLElement&&He().contains(ui);return e.uiConfig.allowChangingFullscreenTarget&&He()&&Oi?He():ge},yr=()=>{yo.set(!1)},Eo=()=>{Ho(),yr()},tr=async()=>{yr(),ks()?(await tu(document),tt({message:"exit fullscreen"})):(tt({message:"request fullscreen"}),await eu(er()))},Hr=ge=>{x()||(ge.preventDefault(),yo.set(!0),So.set({left:ge.clientX,top:ge.clientY}))};function Fr(){Ti.set(!0),vi||wt(e.uiConfig.controls.hideTimeoutCursor)}function Ur(){vi||(ft.set(!0),wt(e.uiConfig.controls.hideTimeoutCursor))}function zr(){Ti.set(!1),V(Io,!1),V(ko,!1),Ut=!1,e.store.actions.internal.releaseCamera(),wt(e.uiConfig.controls.hideTimeout)}function qi(ge){return ge?ge.offsetTop+qi(ge.offsetParent):0}function pn(ge){return ge?ge.offsetLeft+pn(ge.offsetParent):0}function st(ge){if(G()&&Ci){let Vt=ge.currentTarget,ui=qi(Vt),Oi=pn(Vt),et=ge.pageX-Oi,Ot=ge.pageY-ui,{left:oi,bottom:Po,right:Ao}=G(),gn=Ao-oi;return et>=oi-gn&&Ot<=Po+gn}}function Ct(ge){if(n(Vi)){let Vt=qi(ge.currentTarget),ui=D().height,Oi=ge.pageY-Vt;if(st(ge)){V(Io,!1);return}Oi<40?V(Io,!0):Oi>ui-40?V(ko,!0):(V(Io,!1),p()||V(ko,!1))}}function ii(ge){Ct(ge),n(Wo)||wt(e.uiConfig.controls.hideTimeoutCursor),ee()&&Ut&&Ki&&e.store.actions.internal.moveCameraFocusPX(Ki.clientX-ge.clientX,Ki.clientY-ge.clientY,ge.timeStamp-Ki.timeStamp),Ki=ge}let Ni=ge=>{ge.preventDefault(),ge.button===0&&(Ut=!0,e.store.actions.internal.holdCamera()),wt(e.uiConfig.controls.hideTimeoutCursor)},Bi=ge=>{ge.preventDefault(),ge.button===0&&(Ki=ge,Ut=!1,e.store.actions.internal.releaseCamera()),wt(e.uiConfig.controls.hideTimeoutCursor)},ki=ge=>{ge.preventDefault(),mo&&(tt({message:"double click on video"}),tr(),wt(e.uiConfig.controls.hideTimeoutCursor))},Qi=ge=>{if(ge.preventDefault(),X()||p()){Eo();return}if(!(k()&&!gi)){if(n(Jn))return eo();if(rt()?.focus(),!Je()){e.firstStart(),wt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ae()!==pv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),wt(e.uiConfig.controls.hideTimeoutCursor)}},to=ge=>{Eo(),Li.set(!0),wt(e.uiConfig.controls.hideTimeout),ge&&Ri(e.uiConfig.controls.hideHotKeyHelpers,ge)},qo=()=>{Eo(),e.store.callbacks?.onOpenHotKeyMap?e.store.callbacks?.onOpenHotKeyMap(j()):ln.update(ge=>!ge)},Bn=()=>{Li.set(!0)},io=e.store.ui.contextMenu.openedByBtnKeyboard$,Gi=e.store.ui.contextMenu.btnRef$,Qo=Q(void 0),fn=e.store.ui.contextMenu.openedByHotKey$,ir=e.store.ui.contextMenu.lastActiveElem$;De(()=>{dn.set(n(Wi))}),De(()=>{V(Ji,n(Ln)&&ae()!==pv.PlaybackState.PLAYING,!0),n(Ln)||$t(()=>V(Ln,!0))}),De(()=>{Oo.set((n(Ji)||k()||p()||ue()||Y()||he()||_e())&&!n(Wo)&&(s()==="video"||s()==="ads")&&!d()&&A())}),De(()=>{!ue()&&n(Xn)&&!f()&&wt(e.uiConfig.controls.hideTimeoutCursor),$t(()=>V(Xn,ue(),!0))}),De(()=>{n(cn),p(),Ie(),$t(()=>ud(n(cn),p(),Ie()))}),De(()=>{n(Qo),X(),Fe(),se(),$t(()=>{let ge=Fe()||se();ud(n(Qo),X(),ge)})}),De(()=>{let ge=Ne();ge&&(X(),$t(()=>sl(ge,X(),io)))}),De(()=>{let ge=oe();ge&&(X(),$t(()=>Zh(ge,X(),fn)))}),De(()=>{!R()&&w()&&($t(()=>rn.set(!1)),rt()?.focus())}),De(()=>{x()&&Eo()});let or=z("video360"),nr=Q(void 0),xr=ge=>{fr.set(Sn(jn(),{title:n(nr)},"title",ge))},mn=(ge,Vt)=>{let ui=e.store.callbacks?.uiInfo?.onUpcomingLiveViewStateChanged;if(!ui)return;let Oi=!!Vt,et={...Sn(n(Vi),{upcomingLiveScreen:Vt},"upcomingLiveScreen",Oi),...ge};ui(et)};var vn=j3();yt("blur",Qs,Eo);var ji=ce(vn);ji.__mousemove=ii;var Ke=_(ji);let Wt=v(()=>s()==="ads"),_i=v(()=>n(Jn)?eo:void 0);it(If(Ke,{toggleFullscreen:tr,hideContextMenu:Eo,showHotKeyHelpers:to,showKeyMap:qo,get isAds(){return n(Wt)},get fakePlayButtonHandler(){return n(_i)},get nextButtonActive(){return $e()},get prevButtonActive(){return Ht()},children:(ge,Vt)=>{var ui=Q3(),Oi=ce(ui);Pa(Oi,{get hideCursor(){return n(Vn)},onClick:Qi,onContextMenu:Hr,onMouseDown:Ni,onMouseUp:Bi,onDblClick:ki,get videoContainer(){return xt()},set videoContainer(oi){xt(oi)}});var et=E(Oi,2);ea(et,()=>"slot",!1,(oi,Po)=>{Te(oi,()=>({name:Ea}))});var Ot=E(et,2);Js(Ot,Ee,oi=>{var Po=q3(),Ao=ce(Po);let gn=v(()=>s()!=="thumb"||d()||vi&&e.autoplay);Ta(Ao,{get hidden(){return n(gn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var On=E(Ao,2);uv(On,{});var Dn=E(On,2);{var Di=qe=>{let Qt=v(()=>e.live?.startTime);Dd(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Qt)},onUpcomingLiveViewStateChanged:mn})};M(Dn,qe=>{s()==="LiveWaitingStart"&&qe(Di)})}var si=E(Dn,2);{var jo=qe=>{ka(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};M(si,qe=>{s()==="LiveWaitingRecover"&&qe(jo)})}var no=E(si,2);{var sr=qe=>{ka(qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};M(no,qe=>{s()==="LiveWaitingRecord"&&qe(sr)})}var ro=E(no,2);{var wr=qe=>{var Qt=U3();let _n;var bs=_(Qt);sd(bs,{get adsSlotId(){return gt()},get adsParams(){return _t()},get adsPreviewParam(){return Qe()},get adsAutoplayParam(){return Dt()},get duration(){return zt()}}),h(Qt),N(rs=>_n=J(Qt,1,"ads-container svelte-jtgjmv",null,_n,rs),[()=>({hidden:s()!=="ads"})]),b(qe,Qt)};M(ro,qe=>{e.showAds&&Je()&&qe(wr)})}var Tt=E(ro,2);{var kt=qe=>{let Qt=v(()=>!ot()&&e.showAutoplayNext&&S());Cf(qe,{get title(){return ye()},get thumb(){return pe()},get isHide(){return n(Qt)},clickCloseIcon:()=>V(br,!0)})};M(Tt,qe=>{n(Dr)&&ye()&&pe()&&qe(kt)})}var hn=E(Tt,2);{var os=qe=>{let Qt=v(()=>!u());Dm(qe,{get title(){return e.title},get isHidden(){return n(Qt)},onVisibilityChanged:xr,get ref(){return n(nr)},set ref(_n){V(nr,_n,!0)}})};M(hn,qe=>{n(Or)&&qe(os)})}var Wr=E(hn,2);{var ns=qe=>{let Qt=v(()=>s()==="video"&&u());Bd(qe,{get isShifted(){return n(Qt)}})};M(Wr,qe=>{ee()&&qe(ns)})}var Sr=E(Wr,2);{var Os=qe=>{var Qt=z3(),_n=_(Qt);od(_n,{get"aria-label"(){return or}}),h(Qt),b(qe,Qt)};M(Sr,qe=>{Ce()&&qe(Os)})}var ar=E(Sr,2);{var Wu=qe=>{Od(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return de()}})};M(ar,qe=>{he()&&qe(Wu)})}var ic=E(ar,2);{var Ku=qe=>{Sa(qe,{get shifted(){return u()},get captions(){return be()},get position(){return Oe()},get playerSize(){return D()}})};M(ic,qe=>{te().value!=="off"&&qe(Ku)})}var oc=E(ic,2);{var qu=qe=>{var Qt=W3();Qt.__contextmenu=Hr,Qt.__click=[F3,X,yo,p,Ft,Eo];var _n=_(Qt);Ca(_n,{}),h(Qt),b(qe,Qt)};M(oc,qe=>{d()&&qe(qu)})}var nc=E(oc,2);{var Qu=qe=>{let Qt=v(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),_n=v(()=>s()==="ads"),bs=v(()=>e.canRewindLive&&le()!==0);Nd(qe,{get bottomHidden(){return n(Qt)},get bottomNoSmooth(){return O()},get showControls(){return u()},get isAds(){return n(_n)},get canRewindLive(){return n(bs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Xe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Bt()},get nextButtonActive(){return $e()},get prevButtonActive(){return Ht()},get isOneVideoPlaylist(){return Z()},customFullscreenSupported:mo,toggleFullscreen:tr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(To)},set playerControlsWrapperRef(rs){V(To,rs,!0)},get playerControlsRef(){return n(Pn)},set playerControlsRef(rs){V(Pn,rs,!0)}})};M(nc,qe=>{Je()&&qe(Qu)})}var rc=E(nc,2);{var Gu=qe=>{var Qt=K3(),_n=_(Qt);let bs=v(()=>n(Pn)?.clientHeight);zd(_n,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(bs)},returnFocus:()=>rt()?.focus(),get ref(){return n(cn)},set ref(rs){V(cn,rs,!0)}}),h(Qt),b(qe,Qt)};M(rc,qe=>{!he()&&s()!=="ads"&&qe(Gu)})}var sc=E(rc,2);let ju=v(()=>!n(Br));dd(sc,{get isLive(){return lt()},get isHidden(){return n(ju)},get isPlaying(){return K()},get position(){return Oe()},get duration(){return le()}});var ac=E(sc,2);Rm(ac,{get data(){return ci}});var lc=E(ac,2);wf(lc,{get supportLink(){return e.supportLink},returnFocus:()=>rt()?.focus(),get visible(){return X()},get playerContainerRef(){return n(Vi)},get controlsContainerRef(){return n(To)},get position(){return Me()},get menuElementRef(){return n(Qo)},set menuElementRef(qe){V(Qo,qe,!0)}});var dc=E(lc,2);{var Yu=qe=>{Wd(qe,{onClose:hr,onSelectAutoQuality:()=>{Co("auto"),hr()}})};M(dc,qe=>{n(Mn)&&qe(Yu)})}var Ds=E(dc,2);{var Zu=qe=>{ma(qe,{})};M(Ds,qe=>{n(_r)&&qe(Zu)})}var Tl=E(Ds,2);{var cc=qe=>{Af(qe,{})};M(Tl,qe=>{Ue()&&qe(cc)})}var Xu=E(Tl,2);{var uc=qe=>{fd(qe,{})};M(Xu,qe=>{Ze()&&qe(uc)})}b(oi,Po)}),b(ge,ui)},$$slots:{default:!0}}),ge=>rt(ge),()=>rt());var Go=E(Ke,2);it(Go,ge=>V(Wi,ge),()=>n(Wi)),h(ji),it(ji,ge=>V(Vi,ge),()=>n(Vi));var oo=E(ji,2);{var rr=ge=>{var Vt=G3();b(ge,Vt)};M(oo,ge=>{ut()&&ge(rr)})}yt("mouseenter",ji,Fr),yt("mouseleave",ji,zr),yt("click",ji,Bn,!0),yt("focusin",ji,Ur,!0),b(t,vn),U(),o()}dt(["mousemove","contextmenu","click"]);var Bs=require("@vkontakte/videoplayer-core"),J1=require("@vkontakte/videoplayer-shared");var Z3=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),X3=P("<div><!></div>"),J3={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
340
340
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
341
341
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
342
342
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -352,7 +352,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Yh=z_;var f
352
352
  100% {
353
353
  opacity: 0;
354
354
  }
355
- }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Vu(t,e){F(e,!0),W(t,lx);let i=m(e,"seekStep",3,0),o=G(!1),r=0,s=0,a=G(Xt(i())),l=g=>{g.stopPropagation(),s+=1,N(a,i()*(s-1)),s===1?e.handleSingleFirstClick(g):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,N(o,!1)},300)};Ro(()=>{window.clearTimeout(r)});var d=ax();d.__click=l;var f=_(d);{var p=g=>{var u=sx(),y=de(u),x=I(y,2),w=_(x),S=_(w),T=I(S,2),k=I(T,2);h(w);var V=I(w,2),A=_(V,!0);h(V),h(x),O(L=>{X(y,1,`semicircle ${e.side??""}`,"svelte-nhq2ld"),X(S,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),X(T,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),X(k,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),pe(A,L)},[()=>z("doubletap_seek_step",{seconds:n(a).toFixed(0)})]),b(g,u)};M(f,g=>{n(o)&&g(p)})}h(d),O(()=>X(d,1,`double-click-area ${e.side??""}`,"svelte-nhq2ld")),b(t,d),U()}st(["click"]);var dx=(t,e,i)=>{e(!1),i()},cx=E('<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),ux={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 Sv(t,e){F(e,!0),W(t,ux);let[i,o]=Ve(),r=()=>$(l,"$autoplayNextEnabled$",i),s=()=>$(d,"$timerNextVideoRunning$",i),a=xe(),l=a.ui.autoplayNextEnabled$,d=a.ui.timerNextVideoRunning$,f=a.actions.internal.nextVideoClick,p=a.actions.internal.nextVideoAnnouncementShow,g=a.actions.internal.nextVideoAnnouncementClick,u=a.actions.internal.nextVideoAnnouncementAuto,y=a.actions.internal.nextVideoAnnouncementCancel,x=()=>{f(!1),u()},w=()=>{e.clickCloseIcon(),y()};Et(()=>{e.isHide||p(),e.isHide&&r()&&(f(!1),u())});var S=Oe(),T=de(S);{var k=V=>{var A=cx(),L=I(de(A),2),P=_(L),Q=_(P),D=_(Q,!0);h(Q);var J=I(Q,2);pa(J,{onClick:w}),h(P);var ie=I(P,2);ie.__click=[dx,f,g];var re=_(ie),Z=_(re),ue=_(Z);let Y;var we=I(ue,2);{var _e=Re=>{_d(Re,{get isRunning(){return s()},onTimerEnded:x})};M(we,Re=>{r()&&Re(_e)})}h(Z),h(re);var Ee=I(re,2),He=_(Ee),ae=_(He,!0);h(He),h(Ee),h(ie),h(L),O((Re,ne)=>{pe(D,Re),it(Z,`background-image: url('${e.thumb}')`),Y=X(ue,1,"thumb-overlay svelte-1qdxi6t",null,Y,ne),pe(ae,e.title)},[()=>r()?z("end_screen_next_video"):z("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(V,A)};M(T,V=>{e.isHide||V(k)})}b(t,S),U(),o()}st(["click"]);var n0=require("@vkontakte/videoplayer-core");var r0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Et(()=>{n0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let a=()=>e(!0),l=()=>e(!1);s.addEventListener("webkitbeginfullscreen",a),s.addEventListener("webkitendfullscreen",l),i=()=>{s.removeEventListener("webkitbeginfullscreen",a),s.removeEventListener("webkitendfullscreen",l)}},0))}),Ro(()=>{i?.(),clearTimeout(o)})};var s0=require("@vkontakte/videoplayer-core");var Ru=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(){return this.getTracksArray().find(e=>e.track.mode==="showing")?.id??null}};var a0=require("@vkontakte/videoplayer-core"),l0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:a,availableTextTracks$:l}=t.state,d=null,f=()=>e().querySelector("video"),p=()=>a0.clientChecker.device.isIOS&&ve(a)===s0.VideoFormat.DASH_LIVE_CMAF,g=()=>{d?.(),d=null},u=y=>{if(g(),!p()||!y)return;let x=f();if(!x)return;let w=new Ru(x),S=ve(l),T=ve(s),k=ve(r);for(let L of S)T.some(Q=>Q.value===L.id)&&w.attach(L,k.value===L.id);let V=l.subscribe(L=>{for(let P of L)w.updateSrc(P)}),A=()=>{let L=w.getCurrentShowingId();o(ve(s).find(P=>P.value===L))};x.textTracks.addEventListener("change",A),d=()=>{V(),w.detachAll(),x.textTracks.removeEventListener("change",A)}};Et(()=>i.subscribe(u)),Ro(g)};var px=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},fx=E("<!> <!>",1),mx=E("<div><!></div>"),vx=E('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),gx=E("<div><!></div>"),hx=E('<div class="settings-mobile svelte-7yl31d"><!></div>'),_x=E("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),bx=E('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),$x={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 Cv(t,e){F(e,!0),W(t,$x);let[i,o]=Ve(),r=()=>$(Le,"$playerPhase",i),s=()=>$(wn,"$isLoaderVisible",i),a=()=>$(Ue,"$adPlaybackState",i),l=()=>$(on,"$crashed",i),d=()=>$(jn,"$notificationsToShow$",i),f=()=>$(Me,"$playbackState$",i),p=()=>$(he,"$graphIsOpened$",i),g=()=>$(Rt,"$interactiveHideMobileControls",i),u=()=>$(en,"$isEnded$",i),y=()=>$(kn,"$isInteractiveExpectation$",i),x=()=>$(qt,"$controlsVisible",i),w=()=>$(Oi,"$touched",i),S=()=>$(In,"$autoplayNextEnabled$",i),T=()=>$(qi,"$postrollPassed",i),k=()=>$(Pn,"$bottomNoSmooth",i),V=()=>$(To,"$videoSize",i),A=()=>$(ct,"$playerSize",i),L=()=>$(ot,"$isFullscreen",i),P=()=>$(Xe,"$position$",i),Q=()=>$(Ke,"$duration$",i),D=()=>$(_i,"$loadedMetadata",i),J=()=>$($t,"$settingsMenuVisible",i),ie=()=>$(Qt,"$scrubbingInProgress",i),re=()=>$(eo,"$volumeChangingInProgress",i),Z=()=>$(Oo,"$chromecastConnected$",i),ue=()=>$(Ut,"$isControlsAvailable",i),Y=()=>$(hi,"$isInteractiveTime$",i),we=()=>$(Cn,"$isActiveLive",i),_e=()=>$(yt,"$settingsMenuOpenedByKeyboard",i),Ee=()=>$(j,"$language$",i),He=()=>$(_t,"$disabledControls$",i),ae=()=>$(Jt,"$is3DVideo",i),Re=()=>$(Ot,"$icon3DVideoVisible",i),ne=()=>$(zt,"$chromecastDeviceName$",i),R=()=>$(Tn,"$currentSubtitle$",i),Pe=()=>$(H,"$currentSubtitleCaptions$",i),Te=()=>$(qe,"$realDuration$",i),ce=()=>$(Sn,"$isLive$",i),ee=()=>$(tn,"$isPlaying$",i),ye=()=>$(Ni,"$debugPanelVisible",i),De=m(e,"videoContainer",15),le=m(e,"adsSlotId",3,void 0),at=m(e,"adsParams",3,void 0),K=m(e,"adsPreviewParam",3,void 0),Ae=m(e,"adsAutoplayParam",3,void 0),Fe=m(e,"duration",3,void 0),Ye=m(e,"logoTargetUrl",3,""),dt=m(e,"showNextPrevButtons",3,!1),Ct=m(e,"nextButtonActive",3,!1),ut=m(e,"prevButtonActive",3,!1),vt=m(e,"endScreenVideoTitle",3,void 0),Je=m(e,"endScreenVideoThumb",3,void 0),Nt=m(e,"isOneVideoPlaylist",3,!1),Kt=m(e,"showMiniTimer",3,!1),At=m(e,"fullScreenTarget",3,void 0),Ft=m(e,"playerStarted",3,!1),Ce=m(e,"showEndScreen",3,!0),{notifications$:Ze,graphIsOpened$:he}=Ji(),me=e.store.getLogger().createComponentLog("Root component"),j=e.store.interfaceLanguage$,Me=e.store.state.playbackState$,Ue=e.store.ads.playbackState,Xe=e.store.state.positionWithScrubbing$,Ke=e.store.state.duration$,Le=e.store.playerPhase,ot=e.store.ui.isFullscreen,qt=e.store.ui.controlsVisible,Ut=e.store.ui.isControlsAvailable,Rt=e.store.ui.interactiveHideMobileControls,$t=e.store.ui.settingsMenu.visible$,yt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Qt=e.store.ui.scrubbingInProgress,eo=e.store.ui.volumeChangingInProgress,Ni=e.store.ui.debugPanelVisible,wn=e.store.state.isLoaderVisible,en=e.store.state.isEnded$,Oo=e.store.state.chromecastConnected$,zt=e.store.state.chromecastDeviceName$,qi=e.store.ads.postrollPassed,Sn=e.store.state.isLive$,tn=e.store.state.isPlaying$,Cn=e.store.state.isActiveLive$,Ti=e.store.state.isRewindableLive$,on=e.store.state.crashed$,Co=e.store.webApi.annotationsApi,ki=e.store.webApi.pictureInPictureApi,To=e.store.state.videoSize$,Tn=e.store.state.currentSubtitle$,H=e.store.state.currentSubtitleCaptions$,qe=e.store.state.duration$,ct=e.store.ui.playerSize,Jt=e.store.ui.is3DVideo,Ot=e.store.ui.icon3DVideoVisible,Wt=e.store.state.isInteractive,hi=e.store.state.isInteractiveTime$,kn=e.store.state.isInteractiveExpectation$,di=e.store.state.hasInteractiveBranches,_t=e.store.ui.controls.disabledControls$,Oi=e.store.ui.touched,Ii=e.store.ui.overlayContainer$,In=e.store.ui.autoplayNextEnabled$,_i=e.store.state.loadedMetadata$,to=e.store.actions.internal.closeSettingsMenu,io=e.store.callbacks?.onDisabledPlayPrevChapterClick,nn=e.store.callbacks?.onDisabledSeekToInteractiveClick,Bo=e.store.actions.internal.setQuality,mi=G(void 0),Ei=G(void 0),Do=G(void 0),vo=G(void 0),Ho,Fo,cr=v(()=>(r()==="video"&&s()||r()==="ads"&&a()==="inactive")&&!l()),En=G(void 0),{closeNotification:ur,notificationsToShow$:jn}=Ze,Nr=v(()=>!!d().slow_video),Uo=()=>ur("slow_video"),Pn=te(!1),Yn,rn=G(!1),Qi=v(()=>f()!==Bs.PlaybackState.PLAYING),An=G(!1),pr=v(()=>p()||g()||!n(rn)&&(u()&&!!di||n(Qi)&&y())),sn=G(!0),Zn=v(()=>e.uiConfig.features.thumbTimer&&Kt()&&r()==="video"&&!x()&&!l()&&!Wt&&(e.uiConfig.hideThumbTimerAfterTouch&&!w()||!e.uiConfig.hideThumbTimerAfterTouch)),Mn=G(!1),ko=v(()=>(Ce()||e.showAutoplayNext&&S())&&!!vt()&&!!Je()&&(e.showAds&&T()||!e.showAds)&&u()&&!l()&&!n(Mn)),Ln=G(!1);ki?.setContext(Rl());let Or=gt=>{gt&&!Wt&&oo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Or});let fr=()=>{clearTimeout(Ho),N(rn,!1),g()&&Rt.set(!1)},oo=gt=>{fr(),N(rn,!0),Ho=setTimeout(()=>N(rn,!1),gt);let Bt=gt-100;Yn=setTimeout(()=>{k()&&Pn.set(!1)},Bt>0?Bt:gt)},pt=Jt.subscribe(gt=>{Ot.set(gt),gt&&(clearTimeout(Fo),Fo=setTimeout(()=>Ot.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ci=async(gt=Is())=>{if(gt&&!Bs.clientChecker.device.isIOS){let Bt=ld(),Bi=Gi(),Gt=Bs.clientChecker.browser.isSamsungBrowser&&Bt===e.shadowRootContainer;gt=Bt===Bi||Gt}if(gt){oo(e.uiConfig.controls.hideTimeoutFullscreen);try{await ki?.exit()}catch(Bt){me({message:String(Bt)})}try{let Bt=V()?.width&&V()?.height?V():A();await t1(Bt)}catch(Bt){me({message:String(Bt)})}}ot.set(gt),e.store.getAdmanWrapper().setFullscreen(gt),L()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},an=gt=>{let Bt=gt,{width:Bi,height:Gt}=Bt.target;ct.set({width:Bi,height:Gt})},Pi=()=>{let{width:gt,height:Bt}=n(mi).getBoundingClientRect();ct.set({width:gt,height:Bt})};Et(()=>(au(ci),e.uiConfig.features.annotationsInside&&Co?.init(n(mi)),la(ki)&&(ki?.assignPlayerContainer(n(mi)),ki?.setExternalEventHandlers({resize:an,leavepictureinpicture:Pi})),N(sn,!Bs.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&De().parentElement?.insertBefore(e.interactiveContainer,De().nextSibling),()=>{clearTimeout(Ho),clearTimeout(Yn),clearTimeout(Fo),pt(),ki?.dispose().catch(gt=>{me({message:String(gt)})}),lu(ci)}));let bi=G(!0),Io=G(!0),ln=gt=>{let Bt=P()+(gt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Bt<0?(N(bi,!1),Bt=0):Bt>=Q()&&(N(Io,!1),Bt=Q()),N(An,!0),e.seekTime(Bt)},Gi=()=>Bs.clientChecker.device.isIOS?n(mi):!e.uiConfig.allowChangingFullscreenTarget||!At()?e.outerContainerRef:At().contains(e.outerContainerRef)?At():e.outerContainerRef,zo=async()=>{try{if(Is())await su(document),me({message:"exit fullscreen"});else{if(me({message:"request fullscreen"}),Bs.clientChecker.device.isIOS&&!D())return;await ru(Gi())}}catch(gt){me({message:String(gt)})}},Eo=()=>{to()},no=gt=>{if(gt.preventDefault(),J()){Eo();return}if(!Ft()){e.firstStart(),oo(e.uiConfig.controls.hideTimeoutCursor);return}N(An,!1),x()?fr():oo(e.uiConfig.controls.hideTimeoutMobile)},mr=()=>{Oi.set(!0)},vr=()=>{Wt||(Pn.set(!0),oo(e.uiConfig.controls.hideTimeoutCursor))},Br=gt=>{io&&(io(gt),oo(e.uiConfig.controls.hideTimeoutMobile))},is=gt=>{nn&&(nn(gt),oo(e.uiConfig.controls.hideTimeoutMobile))};Be(()=>{Ii.set(n(En))}),Be(()=>{qt.set((n(Qi)||J()||ie()||re()||Z()||!n(ko)&&(u()||n(rn)&&!n(An)))&&!n(pr)&&r()==="video"&&!l()&&ue())}),Be(()=>{!ie()&&n(Ln)&&!Y()&&oo(e.uiConfig.controls.hideTimeoutMobile),N(Ln,ie(),!0)}),Be(()=>{N(bi,P()>0),N(Io,!we()&&P()<Q(),!0)}),Be(()=>{vd(n(vo),J(),_e(),!0)});let dn=z("aria_label_video_player"),Xn=z("video360");r0({fullScreenChangeHandler:ci,getFullscreenTarget:Gi}),l0({store:e.store,getFullscreenTarget:Gi});let gr=(gt,Bt)=>{let Bi=e.store.callbacks?.uiInfo?.onUpcomingLiveViewStateChanged;if(!Bi)return;let Gt=!!Bt,un={...yn(n(mi),{upcomingLiveScreen:Bt},"upcomingLiveScreen",Gt),...gt};Bi(un)};var ro=bx();bt("blur",qs,Eo);var Yt=_(ro);Ea(Yt,{onClick:no,get videoContainer(){return De()},set videoContainer(gt){De(gt)}});var Wo=I(Yt,2);Js(Wo,()=>"slot",!1,(gt,Bt)=>{Se(gt,()=>({name:Ia}))});var Ko=I(Wo,2);Xs(Ko,Ee,gt=>{var Bt=_x(),Bi=de(Bt);let Gt=v(()=>r()!=="thumb"||l()||Wt&&e.autoplay);Ca(Bi,{get hidden(){return n(Gt)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var un=I(Bi,2);{var Vn=Qe=>{var Dt=fx(),yi=de(Dt);{var Qo=Po=>{let or=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Vu(Po,{side:"left",get seekStep(){return n(or)},handleSingleFirstClick:no,handleSecondClick:()=>ln("backward")})};M(yi,Po=>{n(bi)&&Po(Qo)})}var Xi=I(yi,2);{var Fi=Po=>{let or=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Vu(Po,{side:"right",get seekStep(){return n(or)},handleSingleFirstClick:no,handleSecondClick:()=>ln("forward")})};M(Xi,Po=>{n(Io)&&Po(Fi)})}b(Qe,Dt)};M(un,Qe=>{e.canRewindLive&&Ti&&!He().has("TIMELINE")&&Qe(Vn)})}var pn=I(un,2);{var hr=Qe=>{let Dt=v(()=>e.live?.startTime);zd(Qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Dt)},onUpcomingLiveViewStateChanged:gr})};M(pn,Qe=>{r()==="LiveWaitingStart"&&Qe(hr)})}var Dr=I(pn,2);{var _r=Qe=>{Ta(Qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};M(Dr,Qe=>{r()==="LiveWaitingRecover"&&Qe(_r)})}var br=I(Dr,2);{var qo=Qe=>{Ta(Qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};M(br,Qe=>{r()==="LiveWaitingRecord"&&Qe(qo)})}var Jn=I(br,2);{var $r=Qe=>{var Dt=mx();let yi;var Qo=_(Dt);cd(Qo,{get adsSlotId(){return le()},get adsParams(){return at()},get adsPreviewParam(){return K()},get adsAutoplayParam(){return Ae()},get duration(){return Fe()}}),h(Dt),O(Xi=>yi=X(Dt,1,"ads-container svelte-7yl31d",null,yi,Xi),[()=>({hidden:r()!=="ads"})]),b(Qe,Dt)};M(Jn,Qe=>{e.showAds&&Ft()&&Qe($r)})}var Hr=I(Jn,2);{var go=Qe=>{let Dt=v(()=>!Ce()&&e.showAutoplayNext&&S());Sv(Qe,{get title(){return vt()},get thumb(){return Je()},get isHide(){return n(Dt)},clickCloseIcon:()=>N(Mn,!0)})};M(Hr,Qe=>{n(ko)&&vt()&&Je()&&Qe(go)})}var Rn=I(Hr,2);{var et=Qe=>{Fd(Qe,{})};M(Rn,Qe=>{ae()&&Qe(et)})}var xt=I(Rn,2);{var ui=Qe=>{var Dt=vx(),yi=_(Dt);ad(yi,{get"aria-label"(){return Xn}}),h(Dt),b(Qe,Dt)};M(xt,Qe=>{Re()&&Qe(ui)})}var Di=I(xt,2);{var Hi=Qe=>{Ud(Qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()}})};M(Di,Qe=>{Z()&&Qe(Hi)})}var $i=I(Di,2);{var ji=Qe=>{wa(Qe,{get shifted(){return x()},get captions(){return Pe()},get position(){return P()},get playerSize(){return A()},isMobile:!0})};M($i,Qe=>{R().value!=="off"&&Qe(ji)})}var Yi=I($i,2);{var so=Qe=>{var Dt=gx();Dt.__click=[px,J,$t,Eo];var yi=_(Dt);Sa(yi,{}),h(Dt),b(Qe,Dt)};M(Yi,Qe=>{l()&&Qe(so)})}var Nn=I(Yi,2);{var ho=Qe=>{let Dt=v(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),yi=v(()=>r()==="ads"),Qo=v(()=>e.canRewindLive&&Te()!==0);Hd(Qe,{get bottomHidden(){return n(Dt)},get showControls(){return x()},get bottomNoSmooth(){return k()},get isAds(){return n(yi)},get canRewindLive(){return n(Qo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ye()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return dt()},get nextButtonActive(){return Ct()},get prevButtonActive(){return ut()},get isOneVideoPlaylist(){return Nt()},get customFullscreenSupported(){return n(sn)},get endScreenShown(){return n(ko)},toggleFullscreen:zo,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Br,onDisabledSeekToInteractiveClick:is,get playerControlsWrapperRef(){return n(Ei)},set playerControlsWrapperRef(Xi){N(Ei,Xi,!0)},get playerControlsRef(){return n(Do)},set playerControlsRef(Xi){N(Do,Xi,!0)}})};M(Nn,Qe=>{Ft()&&Qe(ho)})}var Zi=I(Nn,2);{var er=Qe=>{var Dt=hx(),yi=_(Dt);Qd(yi,{get supportLink(){return e.supportLink},get returnFocus(){return d0.noop},get ref(){return n(vo)},set ref(Qo){N(vo,Qo,!0)}}),h(Dt),b(Qe,Dt)};M(Zi,Qe=>{J()&&Qe(er)})}var On=I(Zi,2);let tr=v(()=>!n(Zn));fd(On,{get isLive(){return ce()},get isHidden(){return n(tr)},get isPlaying(){return ee()},get position(){return P()},get duration(){return Q()}});var ir=I(On,2);{var yr=Qe=>{fa(Qe,{})};M(ir,Qe=>{n(cr)&&Qe(yr)})}var xr=I(ir,2);{var _o=Qe=>{hd(Qe,{})};M(xr,Qe=>{ye()&&Qe(_o)})}var fn=I(xr,2);{var wr=Qe=>{Gd(Qe,{onClose:Uo,onSelectAutoQuality:()=>{Bo("auto"),Uo()}})};M(fn,Qe=>{n(Nr)&&Qe(wr)})}b(gt,Bt)});var cn=I(Ko,2);tt(cn,gt=>N(En,gt),()=>n(En)),h(ro),tt(ro,gt=>N(mi,gt),()=>n(mi)),O(()=>Ne(ro,"aria-label",dn)),bt("click",ro,mr,!0),bt("focusin",ro,vr,!0),b(t,ro),U(),o()}st(["click"]);function Nu(t){let e="";return Ri(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Ri(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Ri(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Ri(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Ri(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Ri(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Ri(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Ri(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Ri(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Ri(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Ri(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Ri(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Ri(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Ri(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Ri(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Ri(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Ri(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Ri(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Ri(t.font)&&(e+=`--font:${t.font};`),Ri(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Ri(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Ri(t){return typeof t=="string"&&!t.includes(";")}var c0=require("@vkontakte/videoplayer-shared");var yx=E('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),xx={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 Tv(t,e){F(e,!0),W(t,xx);let[i,o]=Ve(),r=()=>$(re,"$playerSize",i),s=()=>$(L,"$isPlaying$",i),a=()=>$(V,"$duration$",i),l=()=>$(D,"$positionWithScrubbing$",i),d=()=>$(T,"$playerPhase",i),f=()=>$(k,"$crashed$",i),p=()=>$(P,"$currentSubtitle$",i),g=()=>$(Q,"$currentSubtitleCaptions$",i),u=()=>$(A,"$positionExact$",i),y=()=>$(J,"$isLive$",i),x=()=>$(ie,"$isRewindableLive$",i),w=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:k,duration$:V,positionExact$:A,isPlaying$:L,currentSubtitle$:P,currentSubtitleCaptions$:Q,positionWithScrubbing$:D,isLive$:J,isRewindableLive$:ie},ui:{playerSize:re,controls:Z},actions:{internal:{getVideoElement:ue}}}=xe(),Y=8,we=G(!1),_e=Xt({}),Ee=()=>{N(we,!0)},He=()=>{N(we,!1)},ae=(0,c0.debounceFn)(ml,260);Be(()=>{r(),ae(ue(),Z,_e,n(we))});let Re=v(()=>s()?Xo(a()-l()):Xo(isFinite(a())?a():w()));var ne=yx(),R=_(ne);Ea(R,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Fe){S(Fe)}});var Pe=I(R,2);Js(Pe,()=>"slot",!1,(Fe,Ye)=>{Se(Fe,()=>({name:Ia}))});var Te=I(Pe,2);let ce=v(()=>d()!=="thumb"||f());Ca(Te,{get hidden(){return n(ce)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ee=I(Te,2);{var ye=Fe=>{wa(Fe,{shifted:!1,get captions(){return g()},get position(){return u()},get playerSize(){return r()}})};M(ee,Fe=>{p().value!=="off"&&Fe(ye)})}var De=I(ee,2),le=_(De);pd(le,{get isLive(){return y()},get isPlaying(){return s()},get time(){return n(Re)}}),h(De);var at=I(De,2);let K;var Ae=_(at);ha(Ae,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return x()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:Y,tooltipRightOffset:Y,get ref(){return _e.timeline},set ref(Fe){_e.timeline=Fe}}),h(at),h(ne),O(Fe=>K=X(at,1,"timeline svelte-1qfjf44",null,K,Fe),[()=>({visible:n(we)})]),bt("mouseenter",ne,Ee),bt("mouseleave",ne,He),b(t,ne),U(),o()}var wx=E("<div><!></div>"),Sx={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;
355
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Eu(t,e){F(e,!0),W(t,J3);let i=m(e,"seekStep",3,0),o=Q(!1),r=0,s=0,a=Q(qt(i())),l=g=>{g.stopPropagation(),s+=1,V(a,i()*(s-1)),s===1?e.handleSingleFirstClick(g):(V(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,V(o,!1)},300)};No(()=>{window.clearTimeout(r)});var d=X3();d.__click=l;var f=_(d);{var p=g=>{var u=Z3(),y=ce(u),x=E(y,2),w=_(x),S=_(w),T=E(S,2),k=E(T,2);h(w);var L=E(w,2),A=_(L,!0);h(L),h(x),N(I=>{J(y,1,`semicircle ${e.side??""}`,"svelte-nhq2ld"),J(S,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),J(T,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),J(k,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),fe(A,I)},[()=>z("doubletap_seek_step",{seconds:n(a).toFixed(0)})]),b(g,u)};M(f,g=>{n(o)&&g(p)})}h(d),N(()=>J(d,1,`double-click-area ${e.side??""}`,"svelte-nhq2ld")),b(t,d),U()}dt(["click"]);var ex=(t,e,i)=>{e(!1),i()},tx=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),ix={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function mv(t,e){F(e,!0),W(t,ix);let[i,o]=Ve(),r=()=>$(l,"$autoplayNextEnabled$",i),s=()=>$(d,"$timerNextVideoRunning$",i),a=Se(),l=a.ui.autoplayNextEnabled$,d=a.ui.timerNextVideoRunning$,f=a.actions.internal.nextVideoClick,p=a.actions.internal.nextVideoAnnouncementShow,g=a.actions.internal.nextVideoAnnouncementClick,u=a.actions.internal.nextVideoAnnouncementAuto,y=a.actions.internal.nextVideoAnnouncementCancel,x=()=>{f(!1),u()},w=()=>{e.clickCloseIcon(),y()};At(()=>{e.isHide||p(),e.isHide&&r()&&(f(!1),u())});var S=Be(),T=ce(S);{var k=L=>{var A=tx(),I=E(ce(A),2),O=_(I),G=_(O),D=_(G,!0);h(G);var ee=E(G,2);fa(ee,{onClick:w}),h(O);var X=E(O,2);X.__click=[ex,f,g];var ae=_(X),j=_(ae),ue=_(j);let Y;var he=E(ue,2);{var _e=Ne=>{md(Ne,{get isRunning(){return s()},onTimerEnded:x})};M(he,Ne=>{r()&&Ne(_e)})}h(j),h(ae);var Ie=E(ae,2),Fe=_(Ie),se=_(Fe,!0);h(Fe),h(Ie),h(X),h(I),N((Ne,oe)=>{fe(D,Ne),nt(j,`background-image: url('${e.thumb}')`),Y=J(ue,1,"thumb-overlay svelte-1qdxi6t",null,Y,oe),fe(se,e.title)},[()=>r()?z("end_screen_next_video"):z("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(L,A)};M(T,L=>{e.isHide||L(k)})}b(t,S),U(),o()}dt(["click"]);var G1=require("@vkontakte/videoplayer-core");var j1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;At(()=>{G1.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let a=()=>e(!0),l=()=>e(!1);s.addEventListener("webkitbeginfullscreen",a),s.addEventListener("webkitendfullscreen",l),i=()=>{s.removeEventListener("webkitbeginfullscreen",a),s.removeEventListener("webkitendfullscreen",l)}},0))}),No(()=>{i?.(),clearTimeout(o)})};var Y1=require("@vkontakte/videoplayer-core");var Pu=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(){return this.getTracksArray().find(e=>e.track.mode==="showing")?.id??null}};var Z1=require("@vkontakte/videoplayer-core"),X1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:a,availableTextTracks$:l}=t.state,d=null,f=()=>e().querySelector("video"),p=()=>Z1.clientChecker.device.isIOS&&ve(a)===Y1.VideoFormat.DASH_LIVE_CMAF,g=()=>{d?.(),d=null},u=y=>{if(g(),!p()||!y)return;let x=f();if(!x)return;let w=new Pu(x),S=ve(l),T=ve(s),k=ve(r);for(let I of S)T.some(G=>G.value===I.id)&&w.attach(I,k.value===I.id);let L=l.subscribe(I=>{for(let O of I)w.updateSrc(O)}),A=()=>{let I=w.getCurrentShowingId();o(ve(s).find(O=>O.value===I))};x.textTracks.addEventListener("change",A),d=()=>{L(),w.detachAll(),x.textTracks.removeEventListener("change",A)}};At(()=>i.subscribe(u)),No(g)};var ox=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},nx=P("<!> <!>",1),rx=P("<div><!></div>"),sx=P('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),ax=P("<div><!></div>"),lx=P('<div class="settings-mobile svelte-7yl31d"><!></div>'),dx=P("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),cx=P('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),ux={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 vv(t,e){F(e,!0),W(t,ux);let[i,o]=Ve(),r=()=>$(Le,"$playerPhase",i),s=()=>$(nn,"$isLoaderVisible",i),a=()=>$(Ye,"$adPlaybackState",i),l=()=>$(an,"$crashed",i),d=()=>$(jn,"$notificationsToShow$",i),f=()=>$(Pe,"$playbackState$",i),p=()=>$(ye,"$graphIsOpened$",i),g=()=>$(Et,"$interactiveHideMobileControls",i),u=()=>$(rn,"$isEnded$",i),y=()=>$(Do,"$isInteractiveExpectation$",i),x=()=>$(rt,"$controlsVisible",i),w=()=>$(vi,"$touched",i),S=()=>$(In,"$autoplayNextEnabled$",i),T=()=>$(Zi,"$postrollPassed",i),k=()=>$(Yn,"$bottomNoSmooth",i),L=()=>$(wo,"$videoSize",i),A=()=>$(pt,"$playerSize",i),I=()=>$(ot,"$isFullscreen",i),O=()=>$(Je,"$position$",i),G=()=>$(He,"$duration$",i),D=()=>$(gi,"$loadedMetadata",i),ee=()=>$(wi,"$settingsMenuVisible",i),X=()=>$(Mi,"$scrubbingInProgress",i),ae=()=>$(on,"$volumeChangingInProgress",i),j=()=>$(Oo,"$chromecastConnected$",i),ue=()=>$(tt,"$isControlsAvailable",i),Y=()=>$(mi,"$isInteractiveTime$",i),he=()=>$(yo,"$isActiveLive",i),_e=()=>$(zi,"$settingsMenuOpenedByKeyboard",i),Ie=()=>$(Z,"$language$",i),Fe=()=>$(bt,"$disabledControls$",i),se=()=>$(jt,"$is3DVideo",i),Ne=()=>$(Lt,"$icon3DVideoVisible",i),oe=()=>$(Ft,"$chromecastDeviceName$",i),R=()=>$(kn,"$currentSubtitle$",i),Ee=()=>$(H,"$currentSubtitleCaptions$",i),Ce=()=>$(Ge,"$realDuration$",i),de=()=>$(Tn,"$isLive$",i),te=()=>$(sn,"$isPlaying$",i),be=()=>$($o,"$debugPanelVisible",i),Oe=m(e,"videoContainer",15),le=m(e,"adsSlotId",3,void 0),lt=m(e,"adsParams",3,void 0),K=m(e,"adsPreviewParam",3,void 0),Me=m(e,"adsAutoplayParam",3,void 0),Ue=m(e,"duration",3,void 0),Ze=m(e,"logoTargetUrl",3,""),ut=m(e,"showNextPrevButtons",3,!1),xt=m(e,"nextButtonActive",3,!1),gt=m(e,"prevButtonActive",3,!1),_t=m(e,"endScreenVideoTitle",3,void 0),Qe=m(e,"endScreenVideoThumb",3,void 0),Dt=m(e,"isOneVideoPlaylist",3,!1),zt=m(e,"showMiniTimer",3,!1),Xe=m(e,"fullScreenTarget",3,void 0),Bt=m(e,"playerStarted",3,!1),$e=m(e,"showEndScreen",3,!0),{notifications$:Ht,graphIsOpened$:ye}=Yi(),pe=e.store.getLogger().createComponentLog("Root component"),Z=e.store.interfaceLanguage$,Pe=e.store.state.playbackState$,Ye=e.store.ads.playbackState,Je=e.store.state.positionWithScrubbing$,He=e.store.state.duration$,Le=e.store.playerPhase,ot=e.store.ui.isFullscreen,rt=e.store.ui.controlsVisible,tt=e.store.ui.isControlsAvailable,Et=e.store.ui.interactiveHideMobileControls,wi=e.store.ui.settingsMenu.visible$,zi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Mi=e.store.ui.scrubbingInProgress,on=e.store.ui.volumeChangingInProgress,$o=e.store.ui.debugPanelVisible,nn=e.store.state.isLoaderVisible,rn=e.store.state.isEnded$,Oo=e.store.state.chromecastConnected$,Ft=e.store.state.chromecastDeviceName$,Zi=e.store.ads.postrollPassed,Tn=e.store.state.isLive$,sn=e.store.state.isPlaying$,yo=e.store.state.isActiveLive$,Xi=e.store.state.isRewindableLive$,an=e.store.state.crashed$,xo=e.store.webApi.annotationsApi,Si=e.store.webApi.pictureInPictureApi,wo=e.store.state.videoSize$,kn=e.store.state.currentSubtitle$,H=e.store.state.currentSubtitleCaptions$,Ge=e.store.state.duration$,pt=e.store.ui.playerSize,jt=e.store.ui.is3DVideo,Lt=e.store.ui.icon3DVideoVisible,Gt=e.store.state.isInteractive,mi=e.store.state.isInteractiveTime$,Do=e.store.state.isInteractiveExpectation$,ni=e.store.state.hasInteractiveBranches,bt=e.store.ui.controls.disabledControls$,vi=e.store.ui.touched,po=e.store.ui.overlayContainer$,In=e.store.ui.autoplayNextEnabled$,gi=e.store.state.loadedMetadata$,Li=e.store.actions.internal.closeSettingsMenu,fo=e.store.callbacks?.onDisabledPlayPrevChapterClick,ln=e.store.callbacks?.onDisabledSeekToInteractiveClick,dn=e.store.actions.internal.setQuality,di=Q(void 0),Ci=Q(void 0),So=Q(void 0),Co=Q(void 0),Ho,Fo,Nr=v(()=>(r()==="video"&&s()||r()==="ads"&&a()==="inactive")&&!l()),En=Q(void 0),{closeNotification:fr,notificationsToShow$:jn}=Ht,mr=v(()=>!!d().slow_video),Uo=()=>fr("slow_video"),Yn=ie(!1),Vi,To=Q(!1),Pn=v(()=>f()!==Bs.PlaybackState.PLAYING),cn=Q(!1),vr=v(()=>p()||g()||!n(To)&&(u()&&!!ni||n(Pn)&&y())),An=Q(!0),Zn=v(()=>e.uiConfig.features.thumbTimer&&zt()&&r()==="video"&&!x()&&!l()&&!Gt&&(e.uiConfig.hideThumbTimerAfterTouch&&!w()||!e.uiConfig.hideThumbTimerAfterTouch)),gr=Q(!1),un=v(()=>($e()||e.showAutoplayNext&&S())&&!!_t()&&!!Qe()&&(e.showAds&&T()||!e.showAds)&&u()&&!l()&&!n(gr)),Mn=Q(!1);Si?.setContext(Al());let hr=ht=>{ht&&!Gt&&Wi(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:hr});let _r=()=>{clearTimeout(Ho),V(To,!1),g()&&Et.set(!1)},Wi=ht=>{_r(),V(To,!0),Ho=setTimeout(()=>V(To,!1),ht);let wt=ht-100;Vi=setTimeout(()=>{k()&&Yn.set(!1)},wt>0?wt:ht)},ft=jt.subscribe(ht=>{Lt.set(ht),ht&&(clearTimeout(Fo),Fo=setTimeout(()=>Lt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ri=async(ht=ks())=>{if(ht&&!Bs.clientChecker.device.isIOS){let wt=nd(),Ri=Ji(),hi=Bs.clientChecker.browser.isSamsungBrowser&&wt===e.shadowRootContainer;ht=wt===Ri||hi}if(ht){Wi(e.uiConfig.controls.hideTimeoutFullscreen);try{await Si?.exit()}catch(wt){pe({message:String(wt)})}try{let wt=L()?.width&&L()?.height?L():A();await Kh(wt)}catch(wt){pe({message:String(wt)})}}ot.set(ht),e.store.getAdmanWrapper().setFullscreen(ht),I()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},zo=ht=>{let wt=ht,{width:Ri,height:hi}=wt.target;pt.set({width:Ri,height:hi})},ci=()=>{let{width:ht,height:wt}=n(di).getBoundingClientRect();pt.set({width:ht,height:wt})};At(()=>(iu(ri),e.uiConfig.features.annotationsInside&&xo?.init(n(di)),da(Si)&&(Si?.assignPlayerContainer(n(di)),Si?.setExternalEventHandlers({resize:zo,leavepictureinpicture:ci})),V(An,!Bs.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&Oe().parentElement?.insertBefore(e.interactiveContainer,Oe().nextSibling),()=>{clearTimeout(Ho),clearTimeout(Vi),clearTimeout(Fo),ft(),Si?.dispose().catch(ht=>{pe({message:String(ht)})}),ou(ri)}));let Ti=Q(!0),ko=Q(!0),Io=ht=>{let wt=O()+(ht==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;wt<0?(V(Ti,!1),wt=0):wt>=G()&&(V(ko,!1),wt=G()),V(cn,!0),e.seekTime(wt)},Ji=()=>Bs.clientChecker.device.isIOS?n(di):!e.uiConfig.allowChangingFullscreenTarget||!Xe()?e.outerContainerRef:Xe().contains(e.outerContainerRef)?Xe():e.outerContainerRef,Ln=async()=>{try{if(ks())await tu(document),pe({message:"exit fullscreen"});else{if(pe({message:"request fullscreen"}),Bs.clientChecker.device.isIOS&&!D())return;await eu(Ji())}}catch(ht){pe({message:String(ht)})}},Wo=()=>{Li()},mo=ht=>{if(ht.preventDefault(),ee()){Wo();return}if(!Bt()){e.firstStart(),Wi(e.uiConfig.controls.hideTimeoutCursor);return}V(cn,!1),x()?_r():Wi(e.uiConfig.controls.hideTimeoutMobile)},Br=()=>{vi.set(!0)},Or=()=>{Gt||(Yn.set(!0),Wi(e.uiConfig.controls.hideTimeoutCursor))},br=ht=>{fo&&(fo(ht),Wi(e.uiConfig.controls.hideTimeoutMobile))},Dr=ht=>{ln&&(ln(ht),Wi(e.uiConfig.controls.hideTimeoutMobile))};De(()=>{po.set(n(En))}),De(()=>{rt.set((n(Pn)||ee()||X()||ae()||j()||!n(un)&&(u()||n(To)&&!n(cn)))&&!n(vr)&&r()==="video"&&!l()&&ue())}),De(()=>{!X()&&n(Mn)&&!Y()&&Wi(e.uiConfig.controls.hideTimeoutMobile),V(Mn,X(),!0)}),De(()=>{V(Ti,O()>0),V(ko,!he()&&O()<G(),!0)}),De(()=>{ud(n(Co),ee(),_e(),!0)});let Vn=z("aria_label_video_player"),Xn=z("video360");j1({fullScreenChangeHandler:ri,getFullscreenTarget:Ji}),X1({store:e.store,getFullscreenTarget:Ji});let Jn=(ht,wt)=>{let Ri=e.store.callbacks?.uiInfo?.onUpcomingLiveViewStateChanged;if(!Ri)return;let hi=!!wt,Ko={...Sn(n(di),{upcomingLiveScreen:wt},"upcomingLiveScreen",hi),...ht};Ri(Ko)};var eo=cx();yt("blur",Qs,Wo);var Ut=_(eo);Pa(Ut,{onClick:mo,get videoContainer(){return Oe()},set videoContainer(ht){Oe(ht)}});var Ki=E(Ut,2);ea(Ki,()=>"slot",!1,(ht,wt)=>{Te(ht,()=>({name:Ea}))});var $r=E(Ki,2);Js($r,Ie,ht=>{var wt=dx(),Ri=ce(wt);let hi=v(()=>r()!=="thumb"||l()||Gt&&e.autoplay);Ta(Ri,{get hidden(){return n(hi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ko=E(Ri,2);{var Rn=Ke=>{var Wt=nx(),_i=ce(Wt);{var Go=ge=>{let Vt=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Eu(ge,{side:"left",get seekStep(){return n(Vt)},handleSingleFirstClick:mo,handleSecondClick:()=>Io("backward")})};M(_i,ge=>{n(Ti)&&ge(Go)})}var oo=E(_i,2);{var rr=ge=>{let Vt=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Eu(ge,{side:"right",get seekStep(){return n(Vt)},handleSingleFirstClick:mo,handleSecondClick:()=>Io("forward")})};M(oo,ge=>{n(ko)&&ge(rr)})}b(Ke,Wt)};M(Ko,Ke=>{e.canRewindLive&&Xi&&!Fe().has("TIMELINE")&&Ke(Rn)})}var Nn=E(Ko,2);{var er=Ke=>{let Wt=v(()=>e.live?.startTime);Dd(Ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Wt)},onUpcomingLiveViewStateChanged:Jn})};M(Nn,Ke=>{r()==="LiveWaitingStart"&&Ke(er)})}var yr=E(Nn,2);{var Eo=Ke=>{ka(Ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};M(yr,Ke=>{r()==="LiveWaitingRecover"&&Ke(Eo)})}var tr=E(yr,2);{var Hr=Ke=>{ka(Ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};M(tr,Ke=>{r()==="LiveWaitingRecord"&&Ke(Hr)})}var Fr=E(tr,2);{var Ur=Ke=>{var Wt=rx();let _i;var Go=_(Wt);sd(Go,{get adsSlotId(){return le()},get adsParams(){return lt()},get adsPreviewParam(){return K()},get adsAutoplayParam(){return Me()},get duration(){return Ue()}}),h(Wt),N(oo=>_i=J(Wt,1,"ads-container svelte-7yl31d",null,_i,oo),[()=>({hidden:r()!=="ads"})]),b(Ke,Wt)};M(Fr,Ke=>{e.showAds&&Bt()&&Ke(Ur)})}var zr=E(Fr,2);{var qi=Ke=>{let Wt=v(()=>!$e()&&e.showAutoplayNext&&S());mv(Ke,{get title(){return _t()},get thumb(){return Qe()},get isHide(){return n(Wt)},clickCloseIcon:()=>V(gr,!0)})};M(zr,Ke=>{n(un)&&_t()&&Qe()&&Ke(qi)})}var pn=E(zr,2);{var st=Ke=>{Bd(Ke,{})};M(pn,Ke=>{se()&&Ke(st)})}var Ct=E(pn,2);{var ii=Ke=>{var Wt=sx(),_i=_(Wt);od(_i,{get"aria-label"(){return Xn}}),h(Wt),b(Ke,Wt)};M(Ct,Ke=>{Ne()&&Ke(ii)})}var Ni=E(Ct,2);{var Bi=Ke=>{Od(Ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return oe()}})};M(Ni,Ke=>{j()&&Ke(Bi)})}var ki=E(Ni,2);{var Qi=Ke=>{Sa(Ke,{get shifted(){return x()},get captions(){return Ee()},get position(){return O()},get playerSize(){return A()},isMobile:!0})};M(ki,Ke=>{R().value!=="off"&&Ke(Qi)})}var to=E(ki,2);{var qo=Ke=>{var Wt=ax();Wt.__click=[ox,ee,wi,Wo];var _i=_(Wt);Ca(_i,{}),h(Wt),b(Ke,Wt)};M(to,Ke=>{l()&&Ke(qo)})}var Bn=E(to,2);{var io=Ke=>{let Wt=v(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),_i=v(()=>r()==="ads"),Go=v(()=>e.canRewindLive&&Ce()!==0);Nd(Ke,{get bottomHidden(){return n(Wt)},get showControls(){return x()},get bottomNoSmooth(){return k()},get isAds(){return n(_i)},get canRewindLive(){return n(Go)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ze()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ut()},get nextButtonActive(){return xt()},get prevButtonActive(){return gt()},get isOneVideoPlaylist(){return Dt()},get customFullscreenSupported(){return n(An)},get endScreenShown(){return n(un)},toggleFullscreen:Ln,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:br,onDisabledSeekToInteractiveClick:Dr,get playerControlsWrapperRef(){return n(Ci)},set playerControlsWrapperRef(oo){V(Ci,oo,!0)},get playerControlsRef(){return n(So)},set playerControlsRef(oo){V(So,oo,!0)}})};M(Bn,Ke=>{Bt()&&Ke(io)})}var Gi=E(Bn,2);{var Qo=Ke=>{var Wt=lx(),_i=_(Wt);zd(_i,{get supportLink(){return e.supportLink},get returnFocus(){return J1.noop},get ref(){return n(Co)},set ref(Go){V(Co,Go,!0)}}),h(Wt),b(Ke,Wt)};M(Gi,Ke=>{ee()&&Ke(Qo)})}var fn=E(Gi,2);let ir=v(()=>!n(Zn));dd(fn,{get isLive(){return de()},get isHidden(){return n(ir)},get isPlaying(){return te()},get position(){return O()},get duration(){return G()}});var or=E(fn,2);{var nr=Ke=>{ma(Ke,{})};M(or,Ke=>{n(Nr)&&Ke(nr)})}var xr=E(or,2);{var mn=Ke=>{fd(Ke,{})};M(xr,Ke=>{be()&&Ke(mn)})}var vn=E(xr,2);{var ji=Ke=>{Wd(Ke,{onClose:Uo,onSelectAutoQuality:()=>{dn("auto"),Uo()}})};M(vn,Ke=>{n(mr)&&Ke(ji)})}b(ht,wt)});var is=E($r,2);it(is,ht=>V(En,ht),()=>n(En)),h(eo),it(eo,ht=>V(di,ht),()=>n(di)),N(()=>Re(eo,"aria-label",Vn)),yt("click",eo,Br,!0),yt("focusin",eo,Or,!0),b(t,eo),U(),o()}dt(["click"]);function Au(t){let e="";return Ai(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Ai(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Ai(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Ai(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Ai(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Ai(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Ai(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Ai(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Ai(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Ai(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Ai(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Ai(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Ai(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Ai(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Ai(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Ai(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Ai(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Ai(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Ai(t.font)&&(e+=`--font:${t.font};`),Ai(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Ai(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Ai(t){return typeof t=="string"&&!t.includes(";")}var e0=require("@vkontakte/videoplayer-shared");var px=P('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),fx={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function gv(t,e){F(e,!0),W(t,fx);let[i,o]=Ve(),r=()=>$(ae,"$playerSize",i),s=()=>$(I,"$isPlaying$",i),a=()=>$(L,"$duration$",i),l=()=>$(D,"$positionWithScrubbing$",i),d=()=>$(T,"$playerPhase",i),f=()=>$(k,"$crashed$",i),p=()=>$(O,"$currentSubtitle$",i),g=()=>$(G,"$currentSubtitleCaptions$",i),u=()=>$(A,"$positionExact$",i),y=()=>$(ee,"$isLive$",i),x=()=>$(X,"$isRewindableLive$",i),w=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:k,duration$:L,positionExact$:A,isPlaying$:I,currentSubtitle$:O,currentSubtitleCaptions$:G,positionWithScrubbing$:D,isLive$:ee,isRewindableLive$:X},ui:{playerSize:ae,controls:j},actions:{internal:{getVideoElement:ue}}}=Se(),Y=8,he=Q(!1),_e=qt({}),Ie=()=>{V(he,!0)},Fe=()=>{V(he,!1)},se=(0,e0.debounceFn)(ml,260);De(()=>{r(),se(ue(),j,_e,n(he))});let Ne=v(()=>s()?en(a()-l()):en(isFinite(a())?a():w()));var oe=px(),R=_(oe);Pa(R,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Ue){S(Ue)}});var Ee=E(R,2);ea(Ee,()=>"slot",!1,(Ue,Ze)=>{Te(Ue,()=>({name:Ea}))});var Ce=E(Ee,2);let de=v(()=>d()!=="thumb"||f());Ta(Ce,{get hidden(){return n(de)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var te=E(Ce,2);{var be=Ue=>{Sa(Ue,{shifted:!1,get captions(){return g()},get position(){return u()},get playerSize(){return r()}})};M(te,Ue=>{p().value!=="off"&&Ue(be)})}var Oe=E(te,2),le=_(Oe);ld(le,{get isLive(){return y()},get isPlaying(){return s()},get time(){return n(Ne)}}),h(Oe);var lt=E(Oe,2);let K;var Me=_(lt);_a(Me,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return x()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:Y,tooltipRightOffset:Y,get ref(){return _e.timeline},set ref(Ue){_e.timeline=Ue}}),h(lt),h(oe),N(Ue=>K=J(lt,1,"timeline svelte-1qfjf44",null,K,Ue),[()=>({visible:n(he)})]),yt("mouseenter",oe,Ie),yt("mouseleave",oe,Fe),b(t,oe),U(),o()}var mx=P("<div><!></div>"),vx={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;
356
356
 
357
357
  /* USER DEFINED COLORS */
358
358
 
@@ -378,12 +378,12 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Yh=z_;var f
378
378
  rgba(9, 9, 9, 0.46) 80%,
379
379
  rgba(10, 10, 10, 0.48) 86.67%,
380
380
  rgba(10, 10, 10, 0.50) 100%
381
- );--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;
382
- /* --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;}
381
+ );--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;
382
+ /* --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;}
383
383
 
384
384
  /* 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 {
385
385
  /* --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;}
386
386
  /* 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);}
387
387
 
388
- /* \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 kv(t,e){F(e,!0),W(t,Sx);let[i,o]=Ve(),r=()=>$(Kt,"$isLive$",i),s=()=>$(Cn,"$availableSubtitlesList$",i),a=m(e,"sources",7),l=m(e,"store",7),d=m(e,"microStoresRoot",7),f=m(e,"videoConfig",7),p=m(e,"uiConfig",7),g=m(e,"title",7),u=m(e,"thumbUrl",7),y=m(e,"interactiveContainer",7),x=m(e,"interactiveController",7),w=m(e,"subtitles",7),S=m(e,"live",7),T=m(e,"preload",7),k=m(e,"autoplay",7),V=m(e,"volume",7,void 0),A=m(e,"muted",7,void 0),L=m(e,"fromTime",7),P=m(e,"canRewindLive",7),Q=m(e,"showAds",7),D=m(e,"adsSlotId",7,void 0),J=m(e,"adsParams",7,void 0),ie=m(e,"adsPreviewParam",7,void 0),re=m(e,"adsAutoplayParam",7,void 0),Z=m(e,"duration",7,void 0),ue=m(e,"logoClickable",7),Y=m(e,"logoHidden",7),we=m(e,"isMobile",7),_e=m(e,"showNextPrevButtons",7,!1),Ee=m(e,"nextButtonActive",7,!1),He=m(e,"prevButtonActive",7,!1),ae=m(e,"endScreenVideoTitle",7,void 0),Re=m(e,"endScreenVideoThumb",7,void 0),ne=m(e,"isOneVideoPlaylist",7,!1),R=m(e,"supportLink",7),Pe=m(e,"shadowRootContainer",7),Te=m(e,"outerContainerRef",7),ce=m(e,"fullScreenTarget",7,void 0),ee=m(e,"failoverHosts",7,void 0),ye=m(e,"showMiniTimer",7,!1),De=m(e,"saveRate",7),le=m(e,"seekToInteractive",7,Pa.noop),at=m(e,"playPrevChapter",7,Pa.noop),K=m(e,"volumeMultiplier",7),Ae=m(e,"showAutoplayNext",7),Fe=m(e,"showEndScreen",7,!0),Ye=m(e,"keyboardControls",15,void 0),{subscribers:dt,stores:Ct}=d();mh(p());let ut=Tt(),vt=p().logoLink,Je=l().ui.debugPanelVisible,Nt=l().ui.playerSize,Kt=l().state.isLive$,Ft=l().state.isInteractive&&bl.clientChecker.device.isAndroid,Ce=G(void 0),Ze=null,he=G(!1);l().getAdmanWrapper().init({switchFromAdsToVideo:l().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l().actions.internal.switchFromVideoToAds,setMuted:l().actions.external.setMuted},l().ads,{vsid:l().vsid}),Ch(l(),Ct),Be(()=>{l().ui.isMobile.set(we()),f().callbacks?.onDomReady?.()});let me=(H=!1)=>{N(he,!0),H?l().actions.external.firstStart(Q()):l().actions.internal.firstStart(Q())},j=()=>{if(ut.features.qualityDetailsSubMenuEnabled){let H=qh(l().videoId);if(H)switch(H.type){case"high_quality":l().actions.internal.setHighQualityEnabled(!0,H.appliesTo);break;case"traffic_saving":l().actions.internal.setTrafficSavingEnabled(!0,H.appliesTo);break;case"exact_quality":l().actions.internal.setQuality(H.quality);break}}else{Qh(l().videoId),uf()&&l().actions.internal.setTrafficSavingEnabled(!0);let qe=af(l().videoId);qe&&l().actions.internal.setQuality(qe)}};function Me(H){let qe=a()||H;qe&&l().initVideo({container:n(Ce),sources:qe,failoverHosts:ee(),subtitles:w(),volumeMultiplier:K()});let ct=Pa.safeStorage.get(id)==="true";Je.set(ct),L()>0&&l().actions.external.seekTime(L());let Jt=we()?ut.volumeDefault:V()??Yc()??ut.volumeDefault,Ot=A()??Hh();if(l().actions.external.setVolume(Jt),l().actions.external.setMuted(Ot),l().getAdmanWrapper().setInitialVolume(Ot?0:Jt),j(),ut.features.saveRate&&De()){let Wt=zh();Wt&&!r()&&l().actions.internal.setPlaybackRate(Wt)}if(Ae()){let Wt=Kh();Wt&&l().actions.internal.setAutoplayNextEnabled(Wt)}l().ui.isAutoplay.set(k()),k()&&me(),T()&&ut.features.preload&&l().actions.internal.preload()}let Ue=H=>{if(window.ResizeObserver){let qe,ct;Ze=new ResizeObserver((0,Pa.throttleFn)(Jt=>{let Ot=Jt[0];if(Ot.contentBoxSize){let Wt=Array.isArray(Ot.contentBoxSize)?Ot.contentBoxSize[0]:Ot.contentBoxSize;qe=Wt.inlineSize,ct=Wt.blockSize}else Ot.contentRect&&(qe=Ot.contentRect.width,ct=Ot.contentRect.height);Nt.set({width:qe,height:ct})},300)),Ze.observe(H)}Nt.set({width:H.clientWidth,height:H.clientHeight})},Xe=()=>{document.hidden&&l().actions.external.stop()};Et(()=>{Ft&&document.addEventListener("visibilitychange",Xe),ut.debugLog&&l().actions.internal.startLogging(),Ue(n(Ce));let H=dt.map(ct=>ct.init({store:l(),microStores:Ct,config:f(),interactiveController:x(),uiConfig:p()})),qe=()=>{Ft&&document.removeEventListener("visibilitychange",Xe),Ze?.disconnect(),H.forEach(ct=>ct.unsubscribe()),l().destroy()};return S()?.status==="upcoming"?(l().actions.internal.setLiveWaitingStart(!0),qe):S()?.status==="waiting"?(l().actions.internal.setLiveWaitingRecover(!0),qe):(S()?.status==="finished"||S()?.status==="postlive")&&!(a()&&(0,bl.areValidLiveRecordSources)(a()))?(l().actions.internal.setLiveWaitingRecord(!0),qe):(Me(),qe)});function Ke(){n(he)?l().actions.external.play():me(!0)}function Le(){l().actions.external.pause()}function ot(H){l().actions.external.setMuted(H)}function qt(){l().actions.external.toggleSubtitle()}function Ut(H,qe){l().actions.external.changeSubtitle(H,qe)}function Rt(){l().webApi.slotsApi?.haveSlots()&&l().actions.external.hideControls()}function $t(){l().webApi.slotsApi?.haveSlots()&&l().actions.external.showControls()}function yt(H){we()||H>=0&&H<=1&&l().actions.external.setVolume(H)}function Qt(H){l().actions.internal.seekTime(H,u0.SeekAction.UNKNOWN)}function eo(H){l().actions.external.seekEpisodeStartTime(H)}function Ni(){l().actions.external.returnFocusToEpisodes()}function wn(H){l().actions.external.setPlaybackRate(H)}function en(H){l().actions.external.setAutoQualityLimits(H)}function Oo(){l().actions.external.setQuality("auto")}function zt(H){l().actions.external.setTrafficSavingEnabled(H)}function qi(H){l().actions.external.setHighQualityEnabled(H)}let Sn=Nu(ut.view),tn=f().playerView==="preview",Cn=l().state.availableSubtitlesList$;if(ut.features.initSubtitles){let H=!1;Be(()=>{if(!H&&s().length){H=!0;let qe;if(ut.features.userVideoPrefs&&l().videoId){let Jt=eu(ut.userSalt,String(l().videoId));Jt?.subtitleTrackId&&(qe=s().find(Ot=>Ot.value===Jt.subtitleTrackId))}let ct=ff();ct&&(qe??(qe=s().find(Jt=>Jt.language===ct))),l().actions.internal.setSubtitle(qe)}})}var Ti=wx();let on;var Co=_(Ti);{var ki=H=>{Cv(H,{get store(){return l()},get uiConfig(){return ut},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return k()},get canRewindLive(){return P()},get showAds(){return Q()},get adsSlotId(){return D()},get adsParams(){return J()},get adsPreviewParam(){return ie()},get adsAutoplayParam(){return re()},get duration(){return Z()},get logoClickable(){return ue()},get logoHidden(){return Y()},get logoTargetUrl(){return vt},get nextButtonActive(){return Ee()},get prevButtonActive(){return He()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return ne()},get supportLink(){return R()},get shadowRootContainer(){return Pe()},get outerContainerRef(){return Te()},get fullScreenTarget(){return ce()},get showMiniTimer(){return ye()},get playerStarted(){return n(he)},get seekToInteractive(){return le()},get playPrevChapter(){return at()},firstStart:me,seekTime:Qt,get showEndScreen(){return Fe()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return _e()},get videoContainer(){return n(Ce)},set videoContainer(qe){N(Ce,qe,!0)}})},To=H=>{var qe=Oe(),ct=de(qe);{var Jt=Wt=>{Tv(Wt,{get thumbUrl(){return u()},get outsideDuration(){return Z()},get canRewindLive(){return P()},get videoContainer(){return n(Ce)},set videoContainer(hi){N(Ce,hi,!0)}})},Ot=Wt=>{wv(Wt,{get store(){return l()},get uiConfig(){return ut},get title(){return g()},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return k()},get canRewindLive(){return P()},get showAds(){return Q()},get adsSlotId(){return D()},get adsParams(){return J()},get adsPreviewParam(){return ie()},get adsAutoplayParam(){return re()},get duration(){return Z()},get logoClickable(){return ue()},get logoHidden(){return Y()},get logoTargetUrl(){return vt},get nextButtonActive(){return Ee()},get prevButtonActive(){return He()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return ne()},get supportLink(){return R()},get shadowRootContainer(){return Pe()},get outerContainerRef(){return Te()},get fullScreenTarget(){return ce()},get showMiniTimer(){return ye()},get playerStarted(){return n(he)},get seekToInteractive(){return le()},get playPrevChapter(){return at()},firstStart:me,get showEndScreen(){return Fe()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return _e()},get videoContainer(){return n(Ce)},set videoContainer(hi){N(Ce,hi,!0)},get keyboardControls(){return Ye()},set keyboardControls(hi){Ye(hi)}})};M(ct,Wt=>{tn?Wt(Jt):Wt(Ot,!1)})}b(H,qe)};M(Co,H=>{we()?H(ki):H(To,!1)})}h(Ti),O(H=>{on=X(Ti,1,"root svelte-1tzrpvc",null,on,H),it(Ti,Sn)},[()=>({"root--miui-browser":bl.clientChecker.device.isMobile&&bl.clientChecker.browser.isMiuiBrowser,"visible-outside":tn})]),b(t,Ti);var Tn=U({initVideo:Me,play:Ke,pause:Le,setMuted:ot,toggleSubtitle:qt,changeSubtitle:Ut,hideControls:Rt,showControls:$t,setVolume:yt,seekTime:Qt,seekEpisodeStartTime:eo,returnFocusToEpisodes:Ni,setPlaybackRate:wn,setAutoQualityLimits:en,setAutoQuality:Oo,toggleTrafficSaving:zt,toggleHighQuality:qi,get sources(){return a()},set sources(H){a(H)},get store(){return l()},set store(H){l(H)},get microStoresRoot(){return d()},set microStoresRoot(H){d(H)},get videoConfig(){return f()},set videoConfig(H){f(H)},get uiConfig(){return p()},set uiConfig(H){p(H)},get title(){return g()},set title(H){g(H)},get thumbUrl(){return u()},set thumbUrl(H){u(H)},get interactiveContainer(){return y()},set interactiveContainer(H){y(H)},get interactiveController(){return x()},set interactiveController(H){x(H)},get subtitles(){return w()},set subtitles(H){w(H)},get live(){return S()},set live(H){S(H)},get preload(){return T()},set preload(H){T(H)},get autoplay(){return k()},set autoplay(H){k(H)},get volume(){return V()},set volume(H){V(H)},get muted(){return A()},set muted(H){A(H)},get fromTime(){return L()},set fromTime(H){L(H)},get canRewindLive(){return P()},set canRewindLive(H){P(H)},get showAds(){return Q()},set showAds(H){Q(H)},get adsSlotId(){return D()},set adsSlotId(H){D(H)},get adsParams(){return J()},set adsParams(H){J(H)},get adsPreviewParam(){return ie()},set adsPreviewParam(H){ie(H)},get adsAutoplayParam(){return re()},set adsAutoplayParam(H){re(H)},get duration(){return Z()},set duration(H){Z(H)},get logoClickable(){return ue()},set logoClickable(H){ue(H)},get logoHidden(){return Y()},set logoHidden(H){Y(H)},get isMobile(){return we()},set isMobile(H){we(H)},get showNextPrevButtons(){return _e()},set showNextPrevButtons(H){_e(H)},get nextButtonActive(){return Ee()},set nextButtonActive(H){Ee(H)},get prevButtonActive(){return He()},set prevButtonActive(H){He(H)},get endScreenVideoTitle(){return ae()},set endScreenVideoTitle(H){ae(H)},get endScreenVideoThumb(){return Re()},set endScreenVideoThumb(H){Re(H)},get isOneVideoPlaylist(){return ne()},set isOneVideoPlaylist(H){ne(H)},get supportLink(){return R()},set supportLink(H){R(H)},get shadowRootContainer(){return Pe()},set shadowRootContainer(H){Pe(H)},get outerContainerRef(){return Te()},set outerContainerRef(H){Te(H)},get fullScreenTarget(){return ce()},set fullScreenTarget(H){ce(H)},get failoverHosts(){return ee()},set failoverHosts(H){ee(H)},get showMiniTimer(){return ye()},set showMiniTimer(H){ye(H)},get saveRate(){return De()},set saveRate(H){De(H)},get showAutoplayNext(){return Ae()},set showAutoplayNext(H){Ae(H)},get seekToInteractive(){return le()},set seekToInteractive(H){le(H)},get playPrevChapter(){return at()},set playPrevChapter(H){at(H)},get volumeMultiplier(){return K()},set volumeMultiplier(H){K(H)},get showEndScreen(){return Fe()},set showEndScreen(H){Fe(H)},get keyboardControls(){return Ye()},set keyboardControls(H){Ye(H)}});return o(),Tn}var Cx=$e('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Iv(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Cx();Se(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}function Ev(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Iv(t,{get style(){return n(o)}})}var Tx=E('<div class="title svelte-1y9fytq"> </div>'),kx=E('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Ix={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 Pv(t,e){W(t,Ix);var i=kx(),o=_(i);{var r=l=>{var d=Tx(),f=_(d,!0);h(d),O(()=>pe(f,e.title)),b(l,d)};M(o,l=>{e.title&&l(r)})}var s=I(o,2);{var a=l=>{let d=v(()=>!!e.thumbUrl);Ev(l,{get isWhite(){return n(d)}})};M(s,l=>{(!e.title||!e.thumbUrl)&&l(a)})}h(i),O(()=>it(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var Ex=E('<div class="playerError svelte-m5iv29"><!></div>'),Px={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 Av(t){W(t,Px);var e=Ex(),i=_(e);Sa(i,{}),h(e),b(t,e)}var Qu=require("@vkontakte/videoplayer-shared"),gi=require("@vkontakte/videoplayer-shared"),rc=require("@vkontakte/videoplayer-core"),Sl=require("@vkontakte/videoplayer-statistics");var Bu=require("@vkontakte/videoplayer-shared"),Ou=class{constructor(){this.subscription=new Bu.Subscription,this.logger=new Bu.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[i,o]of e)try{navigator.mediaSession.setActionHandler?.(i,o)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{let o=ve(e.state.currentPlaybackRate$),r=ve(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{navigator.mediaSession.setPositionState?.({position:i,playbackRate:o,duration:r})}catch{this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var $l=require("@vkontakte/videoplayer-shared");var Ax=$e('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Mv(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Ax();Se(o,()=>({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 r=_(o);fe(r,()=>e.children??oe),be(),h(o),b(t,o)}var Mx=E('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Lx={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 Lv(t,e){F(e,!0),W(t,Lx);let[i,o]=Ve(),r=()=>$(f,"$interfaceLanguage$",i),s=()=>$(p,"$isMobile$",i),a=xe(),l=Tt(),d=!!a.webApi.pictureInPictureApi,f=a.interfaceLanguage$,p=a.ui.isMobile,g=a.ui.t,u=v(()=>r()&&g("pip_dummy_title")),y=Nu(l.view);var x=Mx();let w;var S=_(x);let T;var k=_(S);Mv(k,{}),h(S);var V=I(S,2),A=_(V,!0);h(V),h(x),O((L,P)=>{w=X(x,1,"player-pip-dummy svelte-1pbsod4",null,w,L),it(x,y),T=X(S,1,"dummy-image svelte-1pbsod4",null,T,P),pe(A,n(u))},[()=>({"is-pip-api":d}),()=>({desktop:!s()})]),b(t,x),U(),o()}var Vx=460,Rx=280,Yd=class{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new $l.ValueSubject(!1),isEnabled$:new $l.ValueSubject(!1),type:1};constructor({enabled:e=!0}={enabled:!0}){this.info.isEnabled$=new $l.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,$l.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}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Vx,height:Rx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(l=>l.cssText).join(" ")).filter(Boolean).join(`
389
- `),i=document.createElement("style");i.textContent=e;let o=this.createStretchedContainer(),r=o.attachShadow({mode:"open"});r.append(i),r.append(this.playerDomElement);let s={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Zr(Lv,s),this.pipWindow?.document.body.append(o),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Zs(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{this.pipWindow&&documentPictureInPicture.window?.close(),e()})}async dispose(){await 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 p0(t){return t instanceof Yd}var Du=class{static getLatestSupportedVersion(e){let i=new aa(e),o=new Yd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Zd(t,e){let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let r of i)o[r]=e[r]??t[r]??void 0;return o}var f0="Inner error. Unexpectedly root annotation container null reference exception",m0="Annotation with such name already exists",v0="Annotation with such name does not exist";var yl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var xl=require("@vkontakte/videoplayer-shared"),Nx="1",Ox=100,Hu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new xl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,xl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Ox);this.subscriptions.add((0,xl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){if(!this.rootAnnotationsContainer)throw new yl(f0);if(this.annotations.has(e))throw new yl(m0);i.style.zIndex=i.style.zIndex??Nx,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new yl(v0);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(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver?.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let r=e.offsetTop,s=e.offsetLeft,a=e.offsetWidth,l=e.offsetHeight;return r<0||s<0||s+a>i||r+l>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Aa=require("@vkontakte/videoplayer-shared"),No=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,Aa.assertNonNullable)(e),(0,Aa.assertNonNullable)(i),(0,Aa.assertNonNullable)(r),r.interactiveData&&(0,Aa.assertNonNullable)(o),this.subscription=new Aa.Subscription,this.subscription}};var Xd=class extends No{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...te(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Jd=class extends No{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...te(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:a}=r,{isInteractiveExpectation$:l,isPlaying$:d}=s.state,{controlsVisible:f,isMobile:p}=s.ui,g=ve(p),u=()=>g&&ve(f);return o.add(f.subscribe(y=>{if(!g)return;let x=ve(a);ve(d)?this.state$.set(y):x!==null&&this.state$.set(!x||y)})),o.add(d.subscribe(y=>{this.state$.set(!y||u())})),o.add(a.subscribe(y=>{if(y===null)return;let x=ve(l);if(u()){this.state$.set(!0);return}x&&this.state$.set(!y)})),o}};var ec=class extends No{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=te("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(a=>a.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var g0=require("@vkontakte/videoplayer-shared"),Vv=te(!1),Fu=null,tc=class extends No{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Vv,set:(i,o=!1)=>{i!==ve(Vv)&&(this.clearTimeout(),Vv.set(i),!i&&Fu&&(Fu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:a,isPlaying$:l}=r.state,d=r.ui.controlsVisible,{interactiveTimeIndicator:f}=r.ui.controls;o.add(d.subscribe(g=>{ve(a)&&g&&this.state$.set(!1)}));let p=s?.interactiveData||{tooltipHelpHintActive:!1};return o.add((0,g0.combine)({isPlaying$:l,isInteractiveTime$:a,interactiveTimeIndicator:f}).subscribe(({isPlaying$:g,isInteractiveTime$:u,interactiveTimeIndicator:y})=>{if(!(!g||!y?.isDisplayed)){if(!u)return this.state$.set(!1);p.tooltipHelpHintActive&&Fu===null&&(Fu=!0,p.tooltipHelpHintActive=!1,this.state$.set(!0),r.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Uu=require("@vkontakte/videoplayer-shared");var ic=class extends No{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...te(null),toggle:Uu.noop};this.checkIfShouldHide=i=>Rs(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,a=r.ui.currentGridType$,l=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(ve(a)))return;let d=ve(this.state$),{isEnded$:f,playbackState$:p}=r.state,{disabledControls$:g}=r.ui.controls,u=ve(f),y=ve(p);if(d)try{await s?.toggleGraphView(!1),this.state$.set(!1),g.remove(Jp),!u&&this.graphMadePause&&r.actions.internal.play()}catch{l({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await s?.toggleGraphView(!0),this.state$.set(!0),g.add(Jp),!u&&this.graphMadePause&&r.actions.internal.pause()}catch{l({message:"Cant show graph"})}}},o.add((0,Uu.combine)({graphIsOpened:this.state$,currentGridType:a}).subscribe(async({graphIsOpened:d,currentGridType:f})=>{if(this.checkIfShouldHide(f)&&d)try{await s?.toggleGraphView(!1),this.state$.set(!1)}catch{l({message:"Cant hide graph"})}})),o}};var Rv=require("@vkontakte/videoplayer-shared"),oc=class extends No{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:te(!1),isEnabled$:te(!1),type$:te(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:s,isEnabled$:a,type:l}}=r.webApi.pictureInPictureApi||{info:{isActive$:new Rv.ValueSubject(!1),isEnabled$:new Rv.ValueSubject(!1)}};return o.add(s.subscribe(d=>{this.state$.isActive$.set(d)})),o.add(a.subscribe(d=>{this.state$.isEnabled$.set(d)})),this.state$.type$.set(l),o}};var Wu=require("@vkontakte/videoplayer-shared");var zu=require("@vkontakte/videoplayer-shared"),h0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Bx({maxCount:t}):void 0,e!==0?Dx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},Bx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{e[i]=(e[i]??0)+1,zu.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify(e[i]??0))},canShowNotification:i=>(e[i]??0)<t}},Dx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(zu.safeStorage.get(e)||"{}")}catch{return{}}},o=s=>zu.safeStorage.set(e,JSON.stringify(s)),r=s=>{let a=i();delete a[s],o(a)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let a=i()[s];if(a){let l=Date.now()-a.launchTime>t;return l&&r(s),l}else return!0}}};var nc=class extends No{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:te({}),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:r,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:a,showSlowVideoNotification:l,forceAutoQualityWhenSevereStallHappens:d}}}=i;this.notificationManager=h0({maxShowCount:s,timeout:a});let f=r.getPlayer();return o.add(f.events.severeStallOccured$.pipe((0,Wu.filterChanged)(),(0,Wu.filter)(p=>p)).subscribe(()=>{l&&!f.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(d&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var _0=()=>[Xd,Jd,ec,tc,ic,oc,nc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var wl=require("@vkontakte/videoplayer-shared");var Ku=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=()=>{this.lastFocusedNode?.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var Hx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:gi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,rc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},xn=G(void 0),qu=class extends HTMLElement{svelteStubComponent;svelteRootComponent;svelteErrorComponent;store;microStoresRoot;statistics;sentry;_shadowRoot;playerContainer;rootContainer;shadowRootContainer;playerId;uiConfig;coreConfig;statisticsConfig;interactiveController;interactiveContainer;graphMadePause;currentPlayingVideoIndex=0;needToRepeatPlaylist=!1;videoConfig=void 0;pictureInPictureApi=void 0;mediaSessionApi=void 0;unsubscribePlayerPhaseSubscription=void 0;logger;log;subscription;interactiveSubscription;annotationsApi=void 0;slotsApi;focusManager;prevIsid=void 0;isInited=!1;internalsExposure=null;shadowDOMCallbacksDisabled=!1;fatalError$=new Qu.ValueSubject(null);constructor(){super(),wl.devNull.create("ui"),this.logger=new gi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new gi.Subscription,this.interactiveSubscription=new gi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Zr(Av,{target:this.playerContainer}))})}connectedCallback(){if(this.rootContainer)return;this.initPlayerRootContainers();let e=this.getAttribute("stub-title")??void 0,i=this.getAttribute("stub-thumb-url")??void 0,o=Xt({title:e,thumbUrl:i}),r={target:this.playerContainer,props:o};this.svelteStubComponent=Zr(Pv,r)}disconnectedCallback(){this.shadowDOMCallbacksDisabled||(this.annotationsApi?.destroy(),this.slotsApi?.destroy(),this.focusManager?.destroy(),this.mediaSessionApi?.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy(),this.interactiveSubscription.unsubscribe(),this.internalsExposure?.destroy(),wl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){return this.store?.ui.controls.disabledControls$?.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}}createOneStat=(e,i={})=>{if(!this.videoConfig)return;let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,statVKAppId:l,refreshStatAuthToken:d,autoplay:f,isMobile:p,isTouch:g,refDomain:u,deviceId:y,interactiveData:x}=Zd(this.videoConfig,i),w=x?.projectInfo?.pid,S=this.interactiveController?.state.isReplay$.getValue()??!1;S&&(this.prevIsid=void 0);let{unitedVideoId:T,isClip:k=!1}=e;if(this.uiConfig.features.statistics&&T)try{return new Sl.OneStat({movieId:T,albumId:o,place:r,trackCode:a,vkAppId:l,autoplay:(f&&!this.interactiveController)??!1,mobile:g??p,clip:k,refDomain:u,deviceId:y,isPreviewPlayerView:this.videoConfig.playerView==="preview",...w&&(!this.isInited||S)&&{projectId:Number(w)}},{refreshAuthToken:d,userSalt:s,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(A){console.error(A),this.log({message:A.message})}};createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:s}=Zd(this.videoConfig,i),{unitedVideoId:a}=e;if(this.uiConfig.features.thinStatistics&&a)return new Sl.ThinOneStat.ThinOneStat({deviceId:o,movieId:a,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:l,autoplay:d,volume:f,muted:p,fromTime:g,canRewindLive:u,supportLink:y,showAds:x,adsSlotId:w,adsParams:S={},adsPreviewParam:T,adsAutoplayParam:k,interfaceLanguage:V,isCyrillicRelatedInterface:A,logoClickable:L,logoHidden:P,isMobile:Q,isTouch:D,isAudioDisabled:J,isLiveCatchUpMode:ie,fullScreenTarget:re,failoverHosts:Z,canDownload:ue,callbacks:Y,interactiveData:we,showThumbTimer:_e,additionalButtons:Ee=[],additionalSettingsMenuItems:He=[],additionalContextMenuItems:ae=[],repeat:Re,saveRate:ne,volumeMultiplier:R,showEndScreen:Pe,showAutoplayNext:Te,mediascopePixels:ce}=Zd(this.videoConfig,i),{sources:ee,title:ye,thumbUrl:De,unitedVideoId:le,isClip:at=!1,duration:K,adsParams:Ae={},videoEpisodes:Fe,previewThumbsData:Ye,subtitles:dt,live:Ct}=e;if(!ee&&!Ct){let Ke=new Error("empty sources and live");this.fatalError$.next(Ke),Y.onCrashed?.(Ke.message);return}let ut={...S,...Ae},vt=this.getNextVideoInfo(),Je={sources:ee,title:ye,thumbUrl:De,subtitles:dt,unitedVideoId:le,isClip:at,live:Ct,albumId:r,statPlace:s,autoplay:d,muted:p,volume:f,fromTime:g,canRewindLive:u,showAds:x,adsSlotId:w,adsParams:ut,adsPreviewParam:T,adsAutoplayParam:k,duration:K,logoClickable:L,logoHidden:P,isTouch:D??Q,repeat:Re,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:vt.nextVideoTitle,endScreenVideoThumb:vt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Nt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Je)}`});let Kt=this.interactiveController?.state.statistics$.getValue(),At=Kt?.oneStat||this.createOneStat(e,i),Ft=this.createThinOneStat(e,i),Ce;ce&&(Ce=new Sl.MediascopePixel({pixels:ce})),(At||Ft)&&(this.statistics=new xu(At,Ft,Ce,Kt?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new sa(this.uiConfig.sentry,{version:oa,env:Qc},{movieId:le,albumId:r,place:s,autoplay:(d&&!this.interactiveController)??!1,mobile:D??Q,clip:at}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat?.isid$.getValue()),this.sentry={...this.sentry,...sa.getInstance()};let he=!!we,me=[],j="tooltip_interactive_go_back_disabled_first";if(he&&this.interactiveController){let Ke=this.interactiveController.state.isInitialChapter$.getValue(),Le=this.interactiveController.getHistoryState();Ke&&me.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||me.push("SEEK_TO_INTERACTIVE_BUTTON"),Le.hasPrevChapter$.getValue()||(me.push("PLAY_PREV_CHAPTER_BUTTON"),Ke||(Le.isGoBackLimited$.getValue()?j="tooltip_interactive_go_back_disabled_limit":j="tooltip_interactive_go_back_disabled"))}let Me=()=>{this.isInited=!1,this.prevIsid=void 0;let Ke=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();Y.onReplayInteractiveVideo&&!Ke?Y.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=R1({player:o,interfaceLanguage:V,isCyrillicRelatedInterface:A,videoId:le,isClip:at,isLiveCatchUpMode:ie,isAudioDisabled:J,statAuthToken:a,callbacks:Y,webApi:Nt,videoEpisodes:Fe,previewThumbsData:Ye,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:me,isInteractive:he,saveRate:ne,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Me,playPrevChapterDisabledTooltip:j,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?Ee:[],additionalSettingsMenuItems:He??[],additionalContextMenuItems:ae??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Re&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Ue}=this.microStoresRoot=_0(),Xe=()=>{if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Le=>Y?.onCurrentFormatChanged?.(Le))),this.subscription.add(Ue.interactiveControlsOpacity$.subscribe(Le=>{Le!==null&&this?.interactiveController?.setDisabledControls(Le)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Le=>Y?.onThroughputEstimationChanged?.(Le))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Le=>Y?.onTrafficSavingEnabledChanged?.(Le))),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Le=>Y?.onHighQualityEnabledChanged?.(Le))),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Le=>Y?.onAutoQualityEnabledChanged?.(!!Le))),this.subscription.add(new gi.Observable(Le=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ot=>Le.next(ot)))}).pipe((0,gi.skip)(1)).subscribe(Le=>Y?.onCurrentPlaybackRateChanged?.(Le))),this.subscription.add(this.store.state.volume$.subscribe(Le=>Y?.onVolumeChange?.(Le))),this.subscription.add(this.store.state.muted$.subscribe(Le=>{if(Le)Y?.onMute?.();else{let ot=(this.store?.state.volume$&&ve(this.store.state.volume$))??0;Y?.onUnmute?.(ot)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Le=>Y?.onVideoBitrateChanged?.(Le))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Le=>{let ot=this.store?.ui.controls.disabledControls$;ot&&(Le&&!ot.includes(od)&&ot.add(od),Le||ot.remove(od))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Le=>{if(!rc.clientChecker.browser.isSamsungBrowser||!Le||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Le=>Y?.onVSIDChanged?.(Le))),this.initMediaSession(),N(xn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ee,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ye,thumbUrl:De,subtitles:dt,live:Ct,preload:l,autoplay:d,muted:p,volume:f,fromTime:g,canRewindLive:u,supportLink:y,showAds:x,adsSlotId:w,adsParams:ut,adsPreviewParam:T,adsAutoplayParam:k,duration:K,logoClickable:L,logoHidden:P,isMobile:D??Q,failoverHosts:Z,fullScreenTarget:re,saveRate:ne,shadowRootContainer:this.shadowRootContainer,showMiniTimer:_e,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:vt.nextVideoTitle,endScreenVideoThumb:vt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:R,showEndScreen:Pe,showAutoplayNext:Te},!0);let Ke={target:this.playerContainer,props:n(xn)};this.svelteRootComponent=Zr(kv,Ke),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.()),this.internalsExposure?.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&this.videoConfig?.callbacks?.onDevNullLog?wl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):wl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?rc.clientChecker.isInited$.subscribe(Ke=>{Ke&&(console.log("UI SDK async start"),Xe())}):Xe()}addPlayerInfoSubscriptions(){let e=this.store,i=this.microStoresRoot?.stores;if(!e||!i)return;let o=this.videoConfig?.callbacks;o&&this.subscription.add(e.playerPhase.subscribe(s=>o.onPlayerPhaseChanged?.(s))).add(e.state.playbackState$.subscribe(s=>s&&o.onPlaybackStateChanged?.(s))).add(e.state.isLive$.subscribe(s=>o.onIsLiveChanged?.(s))).add(e.state.isActiveLive$.subscribe(s=>o.onIsActiveLiveChanged?.(s))).add(e.state.isAudioAvailable$.subscribe(s=>o.onIsAudioAvailableChanged?.(s))).add(e.state.currentQuality$.subscribe(s=>o.onCurrentQualityChanged?.(s))).add(e.state.availableQualities$.subscribe(s=>o.onAvailableQualitiesChanged?.(s.map(({value:a})=>a).filter(a=>a!=="auto")))).add(e.state.availableAudioStreams$.subscribe(s=>{s.length>1&&o.onAudioLanguagesAvailable&&o.onAudioLanguagesAvailable()})).add(i.pictureInPicture$.isActive$.subscribe(s=>s?o.onPiPEnter?.():o.onPiPExit?.()));let r=o?.uiInfo;r&&this.subscription.add(e.ui.controlsVisible.subscribe(s=>r.onControlsVisibleChanged?.(s))).add(e.ui.isMobile.subscribe(s=>r.onIsMobileChanged?.(s))).add(e.ui.playerSize.subscribe(s=>r.onPlayerSizeChanged?.(s))).add(e.ui.controls.prevButton.subscribe(s=>r.onPrevButtonChanged?.(s))).add(e.ui.controls.playButton.subscribe(s=>r.onPlayButtonChanged?.(s))).add(e.ui.controls.replayButton.subscribe(s=>r.onReplayButtonChanged?.(s))).add(e.ui.controls.nextButton.subscribe(s=>r.onNextButtonChanged?.(s))).add(e.ui.controls.playPrevChapterButton.subscribe(s=>r.onPlayPrevChapterChanged?.(s))).add(e.ui.controls.seekToInteractiveButton.subscribe(s=>r.onSeekToInteractiveButtonChanged?.(s))).add(e.ui.controls.interactiveGraphButton.subscribe(s=>r.onGraphButtonChanged?.(s))).add(e.ui.controls.liveButton.subscribe(s=>r.onLiveButtonChanged?.(s))).add(e.ui.controls.time.subscribe(s=>r.onTimeUpdateChanged?.(s))).add(e.ui.controls.episodes.subscribe(s=>r.onEpisodesChanged?.(s))).add(e.ui.controls.subtitles.subscribe(s=>r.onSubtitlesChanged?.(s))).add(e.ui.controlBlocks.topLeft.subscribe(s=>r.onTopLeftControlBlockChanged?.(s))).add(e.ui.controlBlocks.topRight.subscribe(s=>r.onTopRightControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottomLeft.subscribe(s=>r.onBottomLeftControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottomRight.subscribe(s=>r.onBottomRightControlBlockChanged?.(s))).add(e.ui.controlBlocks.middle.subscribe(s=>r.onMiddleControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottom.subscribe(s=>r.onBottomControlBlockChanged?.(s))).add(e.ui.videoTitleInfo.subscribe(s=>r.onTitleChanged?.(s))).add(e.ui.controls.settings.subscribe(s=>r.onSettingsChanged?.(s))).add(e.ui.controls.fullscreen.subscribe(s=>r.onFullscreenChanged?.(s))).add(e.ui.controls.chromecast.subscribe(s=>r.onChromecastChanged?.(s))).add(e.ui.controls.pip.subscribe(s=>r.onPipChanged?.(s))).add(e.ui.controls.vkLogo.subscribe(s=>r.onVkLogoChanged?.(s))).add(e.ui.controls.interactiveTimeIndicator.subscribe(s=>r.onInteractiveTimeIndicatorChanged?.(s))).add(e.ui.controls.timeline.subscribe(s=>r.onTimelineChanged?.(s)))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,gi.isNonNullable)(o.unitedVideoId)&&this.store?.actions.internal.nextMovie(o.unitedVideoId),this.unmountComponent(this.svelteRootComponent),this.createPlayer(o,{autoplay:i,fromTime:0},e)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let e=this.interactiveController?.getNextInteractiveStartTime();typeof e=="number"&&this.seekTime(e/1e3)}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:e}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let i=this.store?.interfaceLanguage$,o=i?ve(i):this.videoConfig.interfaceLanguage,{projectInfo:r,initChapterId:s,historyApi:a,videoLoader:l}=this.videoConfig.interactiveData;this.interactiveController=new e({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:o,graph:this.uiConfig.features.interactiveGraph,projectInfo:r,initChapterId:s,historyApi:a,vkVideoLoader:l,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$:d,isSeekable$:f}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(f.subscribe(g=>{if(!this.isInited)return;let u=this.store;g?u.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):u.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(d.subscribe(g=>{this.store&&this.store.state.isInteractiveExpectation$.set(g)}));let p=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(g=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...g.config,title:r?.title||g.config.title};let u=p?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(g.player,u),p&&(p=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:g,actionType:u})=>{if(!this.store||!this.microStoresRoot)return;let y=d.getValue();if(g==="action-choice"&&u==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(nd)),g==="action-choice-canceled"){let x=ve(this.store.state.isPlaying$)||y;if((this.videoConfig?.isTouch??this.videoConfig?.isMobile)&&x){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:g,removeAllOpenURI:u})=>{this.store&&g==="container-fake-removed"&&u&&this.store.ui.controls.disabledControls$.remove(nd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let g=this.interactiveController.getHistoryState();this.subscription.add(g.history$.subscribe(u=>{u.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(u)}))}this.videoConfig?.callbacks?.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(g=>{this.videoConfig?.callbacks.onInteractiveChapterChanged?.(g.chapter,g.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(g=>{this.log({message:g.toString()})}))}catch(e){this.log({message:e.message})}}initPlayer(e,i={}){if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let o=new Error("empty videos");this.fatalError$.next(o),e.callbacks?.onCrashed?.(o.message);return}else this.fatalError$.next(null);if(this.videoConfig=Zd(Hx,(0,gi.cloneDeepWith)(e,o=>o instanceof HTMLElement?o:void 0)),this.playerId=(0,gi.getPlayerId)(e.playerId),this.uiConfig=fh(i.ui??{}),this.coreConfig=i.core??{configName:[]},this.statisticsConfig=i.statistics??{},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:this.uiConfig.sentry??{}},this.uiConfig.features.exposeInternalsToGlobal&&(this.internalsExposure??=new gi.InternalsExposure("ui",this.playerId)),wl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+this.videoConfig?.showAds],numbers:[(0,Qu.now)()]}),(0,gi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),(0,gi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isTouch=this.uiConfig.isMobile??this.videoConfig.isTouch??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen??this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext??this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons??this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&this.videoConfig.videos?.[this.videoConfig.videoIndex]?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let o={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Du.getLatestSupportedVersion(o):this.pictureInPictureApi=new aa(o)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ou:void 0,this.slotsApi=this.uiConfig.features.slots?new Lu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Hu(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]),p0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),this.slotsApi?.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Ku(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();n(xn)&&(n(xn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(xn).nextButtonActive=this.isNextButtonActive(),n(xn).prevButtonActive=this.isPrevButtonActive(),n(xn).endScreenVideoTitle=o.nextVideoTitle,n(xn).endScreenVideoThumb=o.nextVideoThumb,n(xn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(e=>{e==="video"?this.setupMediaSessionForVideo():e==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{this.videoConfig?.callbacks?.onNextVideoClick?.()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{this.videoConfig?.callbacks?.onPrevVideoClick?.()}catch{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(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"});let e=!!this.interactiveController;e&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),this.mediaSessionApi?.destroy();let i=this.videoConfig.videos[0];i&&(this.unmountComponent(this.svelteRootComponent),e?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(i))}setMuted(e){this.log({message:`set muted, muted: ${e}`}),this.svelteRootComponent?.setMuted(e)}toggleSubtitle(){this.log({message:"toggle subtitle"}),this.svelteRootComponent?.toggleSubtitle()}changeSubtitle(e,i){this.log({message:"change subtitle"}),this.svelteRootComponent?.changeSubtitle(e,i)}hideControls(){this.log({message:"hide controls"}),this.svelteRootComponent?.hideControls()}showControls(){this.log({message:"show controls"}),this.svelteRootComponent?.showControls()}setPiPEnabled(e){this.store?.webApi.pictureInPictureApi?.setEnabled(e)}setVolume(e){this.log({message:`set volume, volume: ${e}`}),this.svelteRootComponent?.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(xn)&&(n(xn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(xn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(xn).nextButtonActive=this.isNextButtonActive(),n(xn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),this.svelteRootComponent?.seekTime(e))}seekEpisodeStartTime(e){this.log({message:`seek episode start time, time: ${e}`}),this.svelteRootComponent?.seekEpisodeStartTime(e)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(e){this.log({message:`set playback rate to: ${e}`}),this.svelteRootComponent?.setPlaybackRate(e)}setAutoQualityLimits(e){this.log({message:`set auto quality limitation. Max: ${e.max??"none"}. Min: ${e.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(e)}setAutoQuality(){this.svelteRootComponent?.setAutoQuality()}toggleTrafficSaving(e){this.svelteRootComponent?.toggleTrafficSaving(e)}toggleHighQuality(e){this.svelteRootComponent?.toggleHighQuality(e)}addLanguage(e){this.store?.actions.internal.addLanguage(e)}async setLanguage(e){await this.store?.actions.internal.setLanguage(e)}setLiveStart(e){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){let e=this.store?.getPlayer();if(!e)return!1;let{info:i}=e;return i.canPlayLiveTailBuffer$.getValue()&&!i.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){let i=this.isLiveTailPlaying(),o=e||!i;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${i}`});let r=()=>{this.store?.actions.internal.setLiveWaitingRecover(!0)};o&&r(),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{o||r(),this.store?.destroy()})}setLiveWaitingRecord(){let e=this.isLiveTailPlaying(),i=!e;this.log({message:`live waiting record: liveTailPlaying = ${e}`});let o=()=>{this.store?.actions.internal.setLiveWaitingRecord(!0)};i&&o(),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{i||o(),this.store?.destroy()})}setLiveEnd(e){let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live ended: liveTailPlaying = ${i}`});let r=()=>{this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(o){r();return}this.store?.callbacks&&(this.store.callbacks.onLiveEnded=r)}setLiveLowLatency(e){this.log({message:"live switch to low latency "+e}),this.store?.actions.external.setLiveLowLatency(e)}setLooped(e){this.store?.actions.internal.setLooped(e)}getDebugData(){return this.store?.actions.internal.getDebugTextData()??""}getDeviceId(){return this.statistics?.oneStat?.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){if(this.interactiveController&&this.store?.state.positionExact$){let i=ve(this.store.state.positionExact$),r=ve(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,gi.once)()).subscribe(()=>{r&&i>=r.time?this.seekTime(r.time):this.seekTime(i),e?.()});let s=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:s?.chapter?.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){this.store?.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){this.store?.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){this.store?.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){this.store?.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){this.store?.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){this.store?.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){this.store?.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){this.store?.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){this.store?.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){this.store?.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){this.store?.actions.internal.togglePictureInPicture()}focus(){this.svelteRootComponent?.keyboardControls?.focus?.()}restoreFocus(){this.focusManager?.restoreFocus()}handleExternalKeyboardEvent(e){return!!this.svelteRootComponent?.keyboardControls?.handleExternalKeyboardEvent(e)}setAutoplayNext(e){this.store?.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&Zs(e)}};var Cl=require("@vkontakte/videoplayer-shared"),Gu=require("@vkontakte/videoplayer-core"),Fx=()=>{window.customElements.define("vk-video-player",qu)};
388
+ /* \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 hv(t,e){F(e,!0),W(t,vx);let[i,o]=Ve(),r=()=>$(zt,"$isLive$",i),s=()=>$(yo,"$availableSubtitlesList$",i),a=m(e,"sources",7),l=m(e,"store",7),d=m(e,"microStoresRoot",7),f=m(e,"videoConfig",7),p=m(e,"uiConfig",7),g=m(e,"title",7),u=m(e,"thumbUrl",7),y=m(e,"interactiveContainer",7),x=m(e,"interactiveController",7),w=m(e,"subtitles",7),S=m(e,"live",7),T=m(e,"preload",7),k=m(e,"autoplay",7),L=m(e,"volume",7,void 0),A=m(e,"muted",7,void 0),I=m(e,"fromTime",7),O=m(e,"canRewindLive",7),G=m(e,"showAds",7),D=m(e,"adsSlotId",7,void 0),ee=m(e,"adsParams",7,void 0),X=m(e,"adsPreviewParam",7,void 0),ae=m(e,"adsAutoplayParam",7,void 0),j=m(e,"duration",7,void 0),ue=m(e,"logoClickable",7),Y=m(e,"logoHidden",7),he=m(e,"isMobile",7),_e=m(e,"showNextPrevButtons",7,!1),Ie=m(e,"nextButtonActive",7,!1),Fe=m(e,"prevButtonActive",7,!1),se=m(e,"endScreenVideoTitle",7,void 0),Ne=m(e,"endScreenVideoThumb",7,void 0),oe=m(e,"isOneVideoPlaylist",7,!1),R=m(e,"supportLink",7),Ee=m(e,"shadowRootContainer",7),Ce=m(e,"outerContainerRef",7),de=m(e,"fullScreenTarget",7,void 0),te=m(e,"failoverHosts",7,void 0),be=m(e,"showMiniTimer",7,!1),Oe=m(e,"saveRate",7),le=m(e,"seekToInteractive",7,Aa.noop),lt=m(e,"playPrevChapter",7,Aa.noop),K=m(e,"volumeMultiplier",7),Me=m(e,"showAutoplayNext",7),Ue=m(e,"showEndScreen",7,!0),Ze=m(e,"keyboardControls",15,void 0),{subscribers:ut,stores:xt}=d();nh(p());let gt=It(),_t=p().logoLink,Qe=l().ui.debugPanelVisible,Dt=l().ui.playerSize,zt=l().state.isLive$,Bt=l().state.isInteractive&&bl.clientChecker.device.isAndroid,$e=Q(void 0),Ht=null,ye=Q(!1);l().getAdmanWrapper().init({switchFromAdsToVideo:l().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l().actions.internal.switchFromVideoToAds,setMuted:l().actions.external.setMuted},l().ads,{vsid:l().vsid}),vh(l(),xt),De(()=>{l().ui.isMobile.set(he()),f().callbacks?.onDomReady?.()});let pe=(H=!1)=>{V(ye,!0),H?l().actions.external.firstStart(G()):l().actions.internal.firstStart(G())},Z=()=>{if(gt.features.qualityDetailsSubMenuEnabled){let H=Nh(l().videoId);if(H)switch(H.type){case"high_quality":l().actions.internal.setHighQualityEnabled(!0,H.appliesTo);break;case"traffic_saving":l().actions.internal.setTrafficSavingEnabled(!0,H.appliesTo);break;case"exact_quality":l().actions.internal.setQuality(H.quality);break}}else{Bh(l().videoId),of()&&l().actions.internal.setTrafficSavingEnabled(!0);let Ge=Xp(l().videoId);Ge&&l().actions.internal.setQuality(Ge)}};function Pe(H){let Ge=a()||H;Ge&&l().initVideo({container:n($e),sources:Ge,failoverHosts:te(),subtitles:w(),volumeMultiplier:K()});let pt=Aa.safeStorage.get(Xl)==="true";Qe.set(pt),I()>0&&l().actions.external.seekTime(I());let jt=he()?gt.volumeDefault:L()??Kc()??gt.volumeDefault,Lt=A()??Ph();if(l().actions.external.setVolume(jt),l().actions.external.setMuted(Lt),l().getAdmanWrapper().setInitialVolume(Lt?0:jt),Z(),gt.features.saveRate&&Oe()){let Gt=Lh();Gt&&!r()&&l().actions.internal.setPlaybackRate(Gt)}if(Me()){let Gt=Rh();Gt&&l().actions.internal.setAutoplayNextEnabled(Gt)}l().ui.isAutoplay.set(k()),k()&&pe(),T()&&gt.features.preload&&l().actions.internal.preload()}let Ye=H=>{if(window.ResizeObserver){let Ge,pt;Ht=new ResizeObserver((0,Aa.throttleFn)(jt=>{let Lt=jt[0];if(Lt.contentBoxSize){let Gt=Array.isArray(Lt.contentBoxSize)?Lt.contentBoxSize[0]:Lt.contentBoxSize;Ge=Gt.inlineSize,pt=Gt.blockSize}else Lt.contentRect&&(Ge=Lt.contentRect.width,pt=Lt.contentRect.height);Dt.set({width:Ge,height:pt})},300)),Ht.observe(H)}Dt.set({width:H.clientWidth,height:H.clientHeight})},Je=()=>{document.hidden&&l().actions.external.stop()};At(()=>{Bt&&document.addEventListener("visibilitychange",Je),gt.debugLog&&l().actions.internal.startLogging(),Ye(n($e));let H=ut.map(pt=>pt.init({store:l(),microStores:xt,config:f(),interactiveController:x(),uiConfig:p()})),Ge=()=>{Bt&&document.removeEventListener("visibilitychange",Je),Ht?.disconnect(),H.forEach(pt=>pt.unsubscribe()),l().destroy()};return S()?.status==="upcoming"?(l().actions.internal.setLiveWaitingStart(!0),Ge):S()?.status==="waiting"?(l().actions.internal.setLiveWaitingRecover(!0),Ge):(S()?.status==="finished"||S()?.status==="postlive")&&!(a()&&(0,bl.areValidLiveRecordSources)(a()))?(l().actions.internal.setLiveWaitingRecord(!0),Ge):(Pe(),Ge)});function He(){n(ye)?l().actions.external.play():pe(!0)}function Le(){l().actions.external.pause()}function ot(H){l().actions.external.setMuted(H)}function rt(){l().actions.external.toggleSubtitle()}function tt(H,Ge){l().actions.external.changeSubtitle(H,Ge)}function Et(){l().webApi.slotsApi?.haveSlots()&&l().actions.external.hideControls()}function wi(){l().webApi.slotsApi?.haveSlots()&&l().actions.external.showControls()}function zi(H){he()||H>=0&&H<=1&&l().actions.external.setVolume(H)}function Mi(H){l().actions.internal.seekTime(H,t0.SeekAction.UNKNOWN)}function on(H){l().actions.external.seekEpisodeStartTime(H)}function $o(){l().actions.external.returnFocusToEpisodes()}function nn(H){l().actions.external.setPlaybackRate(H)}function rn(H){l().actions.external.setAutoQualityLimits(H)}function Oo(){l().actions.external.setQuality("auto")}function Ft(H){l().actions.external.setTrafficSavingEnabled(H)}function Zi(H){l().actions.external.setHighQualityEnabled(H)}let Tn=Au(gt.view),sn=f().playerView==="preview",yo=l().state.availableSubtitlesList$;if(gt.features.initSubtitles){let H=!1;De(()=>{if(!H&&s().length){H=!0;let Ge;if(gt.features.userVideoPrefs&&l().videoId){let jt=jc(gt.userSalt,String(l().videoId));jt?.subtitleTrackId&&(Ge=s().find(Lt=>Lt.value===jt.subtitleTrackId))}let pt=rf();pt&&(Ge??(Ge=s().find(jt=>jt.language===pt))),l().actions.internal.setSubtitle(Ge)}})}var Xi=mx();let an;var xo=_(Xi);{var Si=H=>{vv(H,{get store(){return l()},get uiConfig(){return gt},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return k()},get canRewindLive(){return O()},get showAds(){return G()},get adsSlotId(){return D()},get adsParams(){return ee()},get adsPreviewParam(){return X()},get adsAutoplayParam(){return ae()},get duration(){return j()},get logoClickable(){return ue()},get logoHidden(){return Y()},get logoTargetUrl(){return _t},get nextButtonActive(){return Ie()},get prevButtonActive(){return Fe()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return oe()},get supportLink(){return R()},get shadowRootContainer(){return Ee()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return de()},get showMiniTimer(){return be()},get playerStarted(){return n(ye)},get seekToInteractive(){return le()},get playPrevChapter(){return lt()},firstStart:pe,seekTime:Mi,get showEndScreen(){return Ue()},get showAutoplayNext(){return Me()},get showNextPrevButtons(){return _e()},get videoContainer(){return n($e)},set videoContainer(Ge){V($e,Ge,!0)}})},wo=H=>{var Ge=Be(),pt=ce(Ge);{var jt=Gt=>{gv(Gt,{get thumbUrl(){return u()},get outsideDuration(){return j()},get canRewindLive(){return O()},get videoContainer(){return n($e)},set videoContainer(mi){V($e,mi,!0)}})},Lt=Gt=>{fv(Gt,{get store(){return l()},get uiConfig(){return gt},get title(){return g()},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return k()},get canRewindLive(){return O()},get showAds(){return G()},get adsSlotId(){return D()},get adsParams(){return ee()},get adsPreviewParam(){return X()},get adsAutoplayParam(){return ae()},get duration(){return j()},get logoClickable(){return ue()},get logoHidden(){return Y()},get logoTargetUrl(){return _t},get nextButtonActive(){return Ie()},get prevButtonActive(){return Fe()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return oe()},get supportLink(){return R()},get shadowRootContainer(){return Ee()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return de()},get showMiniTimer(){return be()},get playerStarted(){return n(ye)},get seekToInteractive(){return le()},get playPrevChapter(){return lt()},firstStart:pe,get showEndScreen(){return Ue()},get showAutoplayNext(){return Me()},get showNextPrevButtons(){return _e()},get videoContainer(){return n($e)},set videoContainer(mi){V($e,mi,!0)},get keyboardControls(){return Ze()},set keyboardControls(mi){Ze(mi)}})};M(pt,Gt=>{sn?Gt(jt):Gt(Lt,!1)})}b(H,Ge)};M(xo,H=>{he()?H(Si):H(wo,!1)})}h(Xi),N(H=>{an=J(Xi,1,"root svelte-16kg8zb",null,an,H),nt(Xi,Tn)},[()=>({"root--miui-browser":bl.clientChecker.device.isMobile&&bl.clientChecker.browser.isMiuiBrowser,"visible-outside":sn})]),b(t,Xi);var kn=U({initVideo:Pe,play:He,pause:Le,setMuted:ot,toggleSubtitle:rt,changeSubtitle:tt,hideControls:Et,showControls:wi,setVolume:zi,seekTime:Mi,seekEpisodeStartTime:on,returnFocusToEpisodes:$o,setPlaybackRate:nn,setAutoQualityLimits:rn,setAutoQuality:Oo,toggleTrafficSaving:Ft,toggleHighQuality:Zi,get sources(){return a()},set sources(H){a(H)},get store(){return l()},set store(H){l(H)},get microStoresRoot(){return d()},set microStoresRoot(H){d(H)},get videoConfig(){return f()},set videoConfig(H){f(H)},get uiConfig(){return p()},set uiConfig(H){p(H)},get title(){return g()},set title(H){g(H)},get thumbUrl(){return u()},set thumbUrl(H){u(H)},get interactiveContainer(){return y()},set interactiveContainer(H){y(H)},get interactiveController(){return x()},set interactiveController(H){x(H)},get subtitles(){return w()},set subtitles(H){w(H)},get live(){return S()},set live(H){S(H)},get preload(){return T()},set preload(H){T(H)},get autoplay(){return k()},set autoplay(H){k(H)},get volume(){return L()},set volume(H){L(H)},get muted(){return A()},set muted(H){A(H)},get fromTime(){return I()},set fromTime(H){I(H)},get canRewindLive(){return O()},set canRewindLive(H){O(H)},get showAds(){return G()},set showAds(H){G(H)},get adsSlotId(){return D()},set adsSlotId(H){D(H)},get adsParams(){return ee()},set adsParams(H){ee(H)},get adsPreviewParam(){return X()},set adsPreviewParam(H){X(H)},get adsAutoplayParam(){return ae()},set adsAutoplayParam(H){ae(H)},get duration(){return j()},set duration(H){j(H)},get logoClickable(){return ue()},set logoClickable(H){ue(H)},get logoHidden(){return Y()},set logoHidden(H){Y(H)},get isMobile(){return he()},set isMobile(H){he(H)},get showNextPrevButtons(){return _e()},set showNextPrevButtons(H){_e(H)},get nextButtonActive(){return Ie()},set nextButtonActive(H){Ie(H)},get prevButtonActive(){return Fe()},set prevButtonActive(H){Fe(H)},get endScreenVideoTitle(){return se()},set endScreenVideoTitle(H){se(H)},get endScreenVideoThumb(){return Ne()},set endScreenVideoThumb(H){Ne(H)},get isOneVideoPlaylist(){return oe()},set isOneVideoPlaylist(H){oe(H)},get supportLink(){return R()},set supportLink(H){R(H)},get shadowRootContainer(){return Ee()},set shadowRootContainer(H){Ee(H)},get outerContainerRef(){return Ce()},set outerContainerRef(H){Ce(H)},get fullScreenTarget(){return de()},set fullScreenTarget(H){de(H)},get failoverHosts(){return te()},set failoverHosts(H){te(H)},get showMiniTimer(){return be()},set showMiniTimer(H){be(H)},get saveRate(){return Oe()},set saveRate(H){Oe(H)},get showAutoplayNext(){return Me()},set showAutoplayNext(H){Me(H)},get seekToInteractive(){return le()},set seekToInteractive(H){le(H)},get playPrevChapter(){return lt()},set playPrevChapter(H){lt(H)},get volumeMultiplier(){return K()},set volumeMultiplier(H){K(H)},get showEndScreen(){return Ue()},set showEndScreen(H){Ue(H)},get keyboardControls(){return Ze()},set keyboardControls(H){Ze(H)}});return o(),kn}var gx=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 _v(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=gx();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}function bv(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");_v(t,{get style(){return n(o)}})}var hx=P('<div class="title svelte-1y9fytq"> </div>'),_x=P('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),bx={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function $v(t,e){W(t,bx);var i=_x(),o=_(i);{var r=l=>{var d=hx(),f=_(d,!0);h(d),N(()=>fe(f,e.title)),b(l,d)};M(o,l=>{e.title&&l(r)})}var s=E(o,2);{var a=l=>{let d=v(()=>!!e.thumbUrl);bv(l,{get isWhite(){return n(d)}})};M(s,l=>{(!e.title||!e.thumbUrl)&&l(a)})}h(i),N(()=>nt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var $x=P('<div class="playerError svelte-m5iv29"><!></div>'),yx={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 yv(t){W(t,yx);var e=$x(),i=_(e);Ca(i,{}),h(e),b(t,e)}var Uu=require("@vkontakte/videoplayer-shared"),fi=require("@vkontakte/videoplayer-shared"),tc=require("@vkontakte/videoplayer-core"),Sl=require("@vkontakte/videoplayer-statistics");var Lu=require("@vkontakte/videoplayer-shared"),Mu=class{constructor(){this.subscription=new Lu.Subscription,this.logger=new Lu.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){if(this.isSupported())for(let[i,o]of e)try{navigator.mediaSession.setActionHandler?.(i,o)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{let o=ve(e.state.currentPlaybackRate$),r=ve(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{navigator.mediaSession.setPositionState?.({position:i,playbackRate:o,duration:r})}catch{this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var $l=require("@vkontakte/videoplayer-shared");var xx=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 xv(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=xx();Te(o,()=>({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 r=_(o);me(r,()=>e.children??ne),xe(),h(o),b(t,o)}var wx=P('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Sx={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 wv(t,e){F(e,!0),W(t,Sx);let[i,o]=Ve(),r=()=>$(f,"$interfaceLanguage$",i),s=()=>$(p,"$isMobile$",i),a=Se(),l=It(),d=!!a.webApi.pictureInPictureApi,f=a.interfaceLanguage$,p=a.ui.isMobile,g=a.ui.t,u=v(()=>r()&&g("pip_dummy_title")),y=Au(l.view);var x=wx();let w;var S=_(x);let T;var k=_(S);xv(k,{}),h(S);var L=E(S,2),A=_(L,!0);h(L),h(x),N((I,O)=>{w=J(x,1,"player-pip-dummy svelte-1pbsod4",null,w,I),nt(x,y),T=J(S,1,"dummy-image svelte-1pbsod4",null,T,O),fe(A,n(u))},[()=>({"is-pip-api":d}),()=>({desktop:!s()})]),b(t,x),U(),o()}var Cx=460,Tx=280,qd=class{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new $l.ValueSubject(!1),isEnabled$:new $l.ValueSubject(!1),type:1};constructor({enabled:e=!0}={enabled:!0}){this.info.isEnabled$=new $l.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,$l.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}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Cx,height:Tx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(l=>l.cssText).join(" ")).filter(Boolean).join(`
389
+ `),i=document.createElement("style");i.textContent=e;let o=this.createStretchedContainer(),r=o.attachShadow({mode:"open"});r.append(i),r.append(this.playerDomElement);let s={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Zr(wv,s),this.pipWindow?.document.body.append(o),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Xs(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{this.pipWindow&&documentPictureInPicture.window?.close(),e()})}async dispose(){await 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 i0(t){return t instanceof qd}var Vu=class{static getLatestSupportedVersion(e){let i=new la(e),o=new qd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Qd(t,e){let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let r of i)o[r]=e[r]??t[r]??void 0;return o}var o0="Inner error. Unexpectedly root annotation container null reference exception",n0="Annotation with such name already exists",r0="Annotation with such name does not exist";var yl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var xl=require("@vkontakte/videoplayer-shared"),kx="1",Ix=100,Ru=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new xl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,xl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Ix);this.subscriptions.add((0,xl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){if(!this.rootAnnotationsContainer)throw new yl(o0);if(this.annotations.has(e))throw new yl(n0);i.style.zIndex=i.style.zIndex??kx,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new yl(r0);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(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver?.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let r=e.offsetTop,s=e.offsetLeft,a=e.offsetWidth,l=e.offsetHeight;return r<0||s<0||s+a>i||r+l>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Ma=require("@vkontakte/videoplayer-shared"),Bo=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,Ma.assertNonNullable)(e),(0,Ma.assertNonNullable)(i),(0,Ma.assertNonNullable)(r),r.interactiveData&&(0,Ma.assertNonNullable)(o),this.subscription=new Ma.Subscription,this.subscription}};var Gd=class extends Bo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ie(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var jd=class extends Bo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ie(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:a}=r,{isInteractiveExpectation$:l,isPlaying$:d}=s.state,{controlsVisible:f,isMobile:p}=s.ui,g=ve(p),u=()=>g&&ve(f);return o.add(f.subscribe(y=>{if(!g)return;let x=ve(a);ve(d)?this.state$.set(y):x!==null&&this.state$.set(!x||y)})),o.add(d.subscribe(y=>{this.state$.set(!y||u())})),o.add(a.subscribe(y=>{if(y===null)return;let x=ve(l);if(u()){this.state$.set(!0);return}x&&this.state$.set(!y)})),o}};var Yd=class extends Bo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ie("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(a=>a.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var s0=require("@vkontakte/videoplayer-shared"),Sv=ie(!1),Nu=null,Zd=class extends Bo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Sv,set:(i,o=!1)=>{i!==ve(Sv)&&(this.clearTimeout(),Sv.set(i),!i&&Nu&&(Nu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:a,isPlaying$:l}=r.state,d=r.ui.controlsVisible,{interactiveTimeIndicator:f}=r.ui.controls;o.add(d.subscribe(g=>{ve(a)&&g&&this.state$.set(!1)}));let p=s?.interactiveData||{tooltipHelpHintActive:!1};return o.add((0,s0.combine)({isPlaying$:l,isInteractiveTime$:a,interactiveTimeIndicator:f}).subscribe(({isPlaying$:g,isInteractiveTime$:u,interactiveTimeIndicator:y})=>{if(!(!g||!y?.isDisplayed)){if(!u)return this.state$.set(!1);p.tooltipHelpHintActive&&Nu===null&&(Nu=!0,p.tooltipHelpHintActive=!1,this.state$.set(!0),r.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Bu=require("@vkontakte/videoplayer-shared");var Xd=class extends Bo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ie(null),toggle:Bu.noop};this.checkIfShouldHide=i=>Vs(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,a=r.ui.currentGridType$,l=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(ve(a)))return;let d=ve(this.state$),{isEnded$:f,playbackState$:p}=r.state,{disabledControls$:g}=r.ui.controls,u=ve(f),y=ve(p);if(d)try{await s?.toggleGraphView(!1),this.state$.set(!1),g.remove(Kp),!u&&this.graphMadePause&&r.actions.internal.play()}catch{l({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await s?.toggleGraphView(!0),this.state$.set(!0),g.add(Kp),!u&&this.graphMadePause&&r.actions.internal.pause()}catch{l({message:"Cant show graph"})}}},o.add((0,Bu.combine)({graphIsOpened:this.state$,currentGridType:a}).subscribe(async({graphIsOpened:d,currentGridType:f})=>{if(this.checkIfShouldHide(f)&&d)try{await s?.toggleGraphView(!1),this.state$.set(!1)}catch{l({message:"Cant hide graph"})}})),o}};var Cv=require("@vkontakte/videoplayer-shared"),Jd=class extends Bo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ie(!1),isEnabled$:ie(!1),type$:ie(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:s,isEnabled$:a,type:l}}=r.webApi.pictureInPictureApi||{info:{isActive$:new Cv.ValueSubject(!1),isEnabled$:new Cv.ValueSubject(!1)}};return o.add(s.subscribe(d=>{this.state$.isActive$.set(d)})),o.add(a.subscribe(d=>{this.state$.isEnabled$.set(d)})),this.state$.type$.set(l),o}};var Du=require("@vkontakte/videoplayer-shared");var Ou=require("@vkontakte/videoplayer-shared"),a0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Ex({maxCount:t}):void 0,e!==0?Px({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},Ex=({maxCount:t})=>{let e={};return{notificationShowed:i=>{e[i]=(e[i]??0)+1,Ou.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify(e[i]??0))},canShowNotification:i=>(e[i]??0)<t}},Px=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ou.safeStorage.get(e)||"{}")}catch{return{}}},o=s=>Ou.safeStorage.set(e,JSON.stringify(s)),r=s=>{let a=i();delete a[s],o(a)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let a=i()[s];if(a){let l=Date.now()-a.launchTime>t;return l&&r(s),l}else return!0}}};var ec=class extends Bo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ie({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:a,showSlowVideoNotification:l,forceAutoQualityWhenSevereStallHappens:d}}}=i;this.notificationManager=a0({maxShowCount:s,timeout:a});let f=r.getPlayer();return o.add(f.events.severeStallOccured$.pipe((0,Du.filterChanged)(),(0,Du.filter)(p=>p)).subscribe(()=>{l&&!f.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(d&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var l0=()=>[Gd,jd,Yd,Zd,Xd,Jd,ec].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var wl=require("@vkontakte/videoplayer-shared");var Hu=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=()=>{this.lastFocusedNode?.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var Ax={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:fi.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},Cn=Q(void 0),Fu=class extends HTMLElement{svelteStubComponent;svelteRootComponent;svelteErrorComponent;store;microStoresRoot;statistics;sentry;_shadowRoot;playerContainer;rootContainer;shadowRootContainer;playerId;uiConfig;coreConfig;statisticsConfig;interactiveController;interactiveContainer;graphMadePause;currentPlayingVideoIndex=0;needToRepeatPlaylist=!1;videoConfig=void 0;pictureInPictureApi=void 0;mediaSessionApi=void 0;unsubscribePlayerPhaseSubscription=void 0;logger;log;subscription;interactiveSubscription;annotationsApi=void 0;slotsApi;focusManager;prevIsid=void 0;isInited=!1;internalsExposure=null;shadowDOMCallbacksDisabled=!1;fatalError$=new Uu.ValueSubject(null);constructor(){super(),wl.devNull.create("ui"),this.logger=new fi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new fi.Subscription,this.interactiveSubscription=new fi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Zr(yv,{target:this.playerContainer}))})}connectedCallback(){if(this.rootContainer)return;this.initPlayerRootContainers();let e=this.getAttribute("stub-title")??void 0,i=this.getAttribute("stub-thumb-url")??void 0,o=qt({title:e,thumbUrl:i}),r={target:this.playerContainer,props:o};this.svelteStubComponent=Zr($v,r)}disconnectedCallback(){this.shadowDOMCallbacksDisabled||(this.annotationsApi?.destroy(),this.slotsApi?.destroy(),this.focusManager?.destroy(),this.mediaSessionApi?.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy(),this.interactiveSubscription.unsubscribe(),this.internalsExposure?.destroy(),wl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){return this.store?.ui.controls.disabledControls$?.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}}createOneStat=(e,i={})=>{if(!this.videoConfig)return;let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,statVKAppId:l,refreshStatAuthToken:d,autoplay:f,isMobile:p,isTouch:g,refDomain:u,deviceId:y,interactiveData:x}=Qd(this.videoConfig,i),w=x?.projectInfo?.pid,S=this.interactiveController?.state.isReplay$.getValue()??!1;S&&(this.prevIsid=void 0);let{unitedVideoId:T,isClip:k=!1}=e;if(this.uiConfig.features.statistics&&T)try{return new Sl.OneStat({movieId:T,albumId:o,place:r,trackCode:a,vkAppId:l,autoplay:(f&&!this.interactiveController)??!1,mobile:g??p,clip:k,refDomain:u,deviceId:y,isPreviewPlayerView:this.videoConfig.playerView==="preview",...w&&(!this.isInited||S)&&{projectId:Number(w)}},{refreshAuthToken:d,userSalt:s,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(A){console.error(A),this.log({message:A.message})}};createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:s}=Qd(this.videoConfig,i),{unitedVideoId:a}=e;if(this.uiConfig.features.thinStatistics&&a)return new Sl.ThinOneStat.ThinOneStat({deviceId:o,movieId:a,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:l,autoplay:d,volume:f,muted:p,fromTime:g,canRewindLive:u,supportLink:y,showAds:x,adsSlotId:w,adsParams:S={},adsPreviewParam:T,adsAutoplayParam:k,interfaceLanguage:L,isCyrillicRelatedInterface:A,logoClickable:I,logoHidden:O,isMobile:G,isTouch:D,isAudioDisabled:ee,isLiveCatchUpMode:X,fullScreenTarget:ae,failoverHosts:j,canDownload:ue,callbacks:Y,interactiveData:he,showThumbTimer:_e,additionalButtons:Ie=[],additionalSettingsMenuItems:Fe=[],additionalContextMenuItems:se=[],repeat:Ne,saveRate:oe,volumeMultiplier:R,showEndScreen:Ee,showAutoplayNext:Ce,mediascopePixels:de}=Qd(this.videoConfig,i),{sources:te,title:be,thumbUrl:Oe,unitedVideoId:le,isClip:lt=!1,duration:K,adsParams:Me={},videoEpisodes:Ue,previewThumbsData:Ze,subtitles:ut,live:xt}=e;if(!te&&!xt){let He=new Error("empty sources and live");this.fatalError$.next(He),Y.onCrashed?.(He.message);return}let gt={...S,...Me},_t=this.getNextVideoInfo(),Qe={sources:te,title:be,thumbUrl:Oe,subtitles:ut,unitedVideoId:le,isClip:lt,live:xt,albumId:r,statPlace:s,autoplay:d,muted:p,volume:f,fromTime:g,canRewindLive:u,showAds:x,adsSlotId:w,adsParams:gt,adsPreviewParam:T,adsAutoplayParam:k,duration:K,logoClickable:I,logoHidden:O,isTouch:D??G,repeat:Ne,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:_t.nextVideoTitle,endScreenVideoThumb:_t.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Dt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Qe)}`});let zt=this.interactiveController?.state.statistics$.getValue(),Xe=zt?.oneStat||this.createOneStat(e,i),Bt=this.createThinOneStat(e,i),$e;de&&($e=new Sl.MediascopePixel({pixels:de})),(Xe||Bt)&&(this.statistics=new hu(Xe,Bt,$e,zt?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new aa(this.uiConfig.sentry,{version:na,env:Uc},{movieId:le,albumId:r,place:s,autoplay:(d&&!this.interactiveController)??!1,mobile:D??G,clip:lt}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat?.isid$.getValue()),this.sentry={...this.sentry,...aa.getInstance()};let ye=!!he,pe=[],Z="tooltip_interactive_go_back_disabled_first";if(ye&&this.interactiveController){let He=this.interactiveController.state.isInitialChapter$.getValue(),Le=this.interactiveController.getHistoryState();He&&pe.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||pe.push("SEEK_TO_INTERACTIVE_BUTTON"),Le.hasPrevChapter$.getValue()||(pe.push("PLAY_PREV_CHAPTER_BUTTON"),He||(Le.isGoBackLimited$.getValue()?Z="tooltip_interactive_go_back_disabled_limit":Z="tooltip_interactive_go_back_disabled"))}let Pe=()=>{this.isInited=!1,this.prevIsid=void 0;let He=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();Y.onReplayInteractiveVideo&&!He?Y.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=C1({player:o,interfaceLanguage:L,isCyrillicRelatedInterface:A,videoId:le,isClip:lt,isLiveCatchUpMode:X,isAudioDisabled:ee,statAuthToken:a,callbacks:Y,webApi:Dt,videoEpisodes:Ue,previewThumbsData:Ze,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:pe,isInteractive:ye,saveRate:oe,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Pe,playPrevChapterDisabledTooltip:Z,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?Ie:[],additionalSettingsMenuItems:Fe??[],additionalContextMenuItems:se??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ne&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Ye}=this.microStoresRoot=l0(),Je=()=>{if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Le=>Y?.onCurrentFormatChanged?.(Le))),this.subscription.add(Ye.interactiveControlsOpacity$.subscribe(Le=>{Le!==null&&this?.interactiveController?.setDisabledControls(Le)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Le=>Y?.onThroughputEstimationChanged?.(Le))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Le=>Y?.onTrafficSavingEnabledChanged?.(Le))),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Le=>Y?.onHighQualityEnabledChanged?.(Le))),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Le=>Y?.onAutoQualityEnabledChanged?.(!!Le))),this.subscription.add(new fi.Observable(Le=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ot=>Le.next(ot)))}).pipe((0,fi.skip)(1)).subscribe(Le=>Y?.onCurrentPlaybackRateChanged?.(Le))),this.subscription.add(this.store.state.volume$.subscribe(Le=>Y?.onVolumeChange?.(Le))),this.subscription.add(this.store.state.muted$.subscribe(Le=>{if(Le)Y?.onMute?.();else{let ot=(this.store?.state.volume$&&ve(this.store.state.volume$))??0;Y?.onUnmute?.(ot)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Le=>Y?.onVideoBitrateChanged?.(Le))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Le=>{let ot=this.store?.ui.controls.disabledControls$;ot&&(Le&&!ot.includes(Jl)&&ot.add(Jl),Le||ot.remove(Jl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Le=>{if(!tc.clientChecker.browser.isSamsungBrowser||!Le||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Le=>Y?.onVSIDChanged?.(Le))),this.initMediaSession(),V(Cn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:te,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:be,thumbUrl:Oe,subtitles:ut,live:xt,preload:l,autoplay:d,muted:p,volume:f,fromTime:g,canRewindLive:u,supportLink:y,showAds:x,adsSlotId:w,adsParams:gt,adsPreviewParam:T,adsAutoplayParam:k,duration:K,logoClickable:I,logoHidden:O,isMobile:D??G,failoverHosts:j,fullScreenTarget:ae,saveRate:oe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:_e,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:_t.nextVideoTitle,endScreenVideoThumb:_t.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:R,showEndScreen:Ee,showAutoplayNext:Ce},!0);let He={target:this.playerContainer,props:n(Cn)};this.svelteRootComponent=Zr(hv,He),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.()),this.internalsExposure?.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&this.videoConfig?.callbacks?.onDevNullLog?wl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):wl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?tc.clientChecker.isInited$.subscribe(He=>{He&&(console.log("UI SDK async start"),Je())}):Je()}addPlayerInfoSubscriptions(){let e=this.store,i=this.microStoresRoot?.stores;if(!e||!i)return;let o=this.videoConfig?.callbacks;o&&this.subscription.add(e.playerPhase.subscribe(s=>o.onPlayerPhaseChanged?.(s))).add(e.state.playbackState$.subscribe(s=>s&&o.onPlaybackStateChanged?.(s))).add(e.state.isLive$.subscribe(s=>o.onIsLiveChanged?.(s))).add(e.state.isActiveLive$.subscribe(s=>o.onIsActiveLiveChanged?.(s))).add(e.state.isAudioAvailable$.subscribe(s=>o.onIsAudioAvailableChanged?.(s))).add(e.state.currentQuality$.subscribe(s=>o.onCurrentQualityChanged?.(s))).add(e.state.availableQualities$.subscribe(s=>o.onAvailableQualitiesChanged?.(s.map(({value:a})=>a).filter(a=>a!=="auto")))).add(e.state.availableAudioStreams$.subscribe(s=>{s.length>1&&o.onAudioLanguagesAvailable&&o.onAudioLanguagesAvailable()})).add(i.pictureInPicture$.isActive$.subscribe(s=>s?o.onPiPEnter?.():o.onPiPExit?.()));let r=o?.uiInfo;r&&this.subscription.add(e.ui.controlsVisible.subscribe(s=>r.onControlsVisibleChanged?.(s))).add(e.ui.isMobile.subscribe(s=>r.onIsMobileChanged?.(s))).add(e.ui.playerSize.subscribe(s=>r.onPlayerSizeChanged?.(s))).add(e.ui.controls.prevButton.subscribe(s=>r.onPrevButtonChanged?.(s))).add(e.ui.controls.playButton.subscribe(s=>r.onPlayButtonChanged?.(s))).add(e.ui.controls.replayButton.subscribe(s=>r.onReplayButtonChanged?.(s))).add(e.ui.controls.nextButton.subscribe(s=>r.onNextButtonChanged?.(s))).add(e.ui.controls.playPrevChapterButton.subscribe(s=>r.onPlayPrevChapterChanged?.(s))).add(e.ui.controls.seekToInteractiveButton.subscribe(s=>r.onSeekToInteractiveButtonChanged?.(s))).add(e.ui.controls.interactiveGraphButton.subscribe(s=>r.onGraphButtonChanged?.(s))).add(e.ui.controls.liveButton.subscribe(s=>r.onLiveButtonChanged?.(s))).add(e.ui.controls.time.subscribe(s=>r.onTimeUpdateChanged?.(s))).add(e.ui.controls.episodes.subscribe(s=>r.onEpisodesChanged?.(s))).add(e.ui.controls.subtitles.subscribe(s=>r.onSubtitlesChanged?.(s))).add(e.ui.controlBlocks.topLeft.subscribe(s=>r.onTopLeftControlBlockChanged?.(s))).add(e.ui.controlBlocks.topRight.subscribe(s=>r.onTopRightControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottomLeft.subscribe(s=>r.onBottomLeftControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottomRight.subscribe(s=>r.onBottomRightControlBlockChanged?.(s))).add(e.ui.controlBlocks.middle.subscribe(s=>r.onMiddleControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottom.subscribe(s=>r.onBottomControlBlockChanged?.(s))).add(e.ui.videoTitleInfo.subscribe(s=>r.onTitleChanged?.(s))).add(e.ui.controls.settings.subscribe(s=>r.onSettingsChanged?.(s))).add(e.ui.controls.fullscreen.subscribe(s=>r.onFullscreenChanged?.(s))).add(e.ui.controls.chromecast.subscribe(s=>r.onChromecastChanged?.(s))).add(e.ui.controls.pip.subscribe(s=>r.onPipChanged?.(s))).add(e.ui.controls.vkLogo.subscribe(s=>r.onVkLogoChanged?.(s))).add(e.ui.controls.interactiveTimeIndicator.subscribe(s=>r.onInteractiveTimeIndicatorChanged?.(s))).add(e.ui.controls.timeline.subscribe(s=>r.onTimelineChanged?.(s)))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,fi.isNonNullable)(o.unitedVideoId)&&this.store?.actions.internal.nextMovie(o.unitedVideoId),this.unmountComponent(this.svelteRootComponent),this.createPlayer(o,{autoplay:i,fromTime:0},e)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let e=this.interactiveController?.getNextInteractiveStartTime();typeof e=="number"&&this.seekTime(e/1e3)}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:e}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let i=this.store?.interfaceLanguage$,o=i?ve(i):this.videoConfig.interfaceLanguage,{projectInfo:r,initChapterId:s,historyApi:a,videoLoader:l}=this.videoConfig.interactiveData;this.interactiveController=new e({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:o,graph:this.uiConfig.features.interactiveGraph,projectInfo:r,initChapterId:s,historyApi:a,vkVideoLoader:l,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$:d,isSeekable$:f}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(f.subscribe(g=>{if(!this.isInited)return;let u=this.store;g?u.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):u.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(d.subscribe(g=>{this.store&&this.store.state.isInteractiveExpectation$.set(g)}));let p=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(g=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...g.config,title:r?.title||g.config.title};let u=p?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(g.player,u),p&&(p=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:g,actionType:u})=>{if(!this.store||!this.microStoresRoot)return;let y=d.getValue();if(g==="action-choice"&&u==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(ed)),g==="action-choice-canceled"){let x=ve(this.store.state.isPlaying$)||y;if((this.videoConfig?.isTouch??this.videoConfig?.isMobile)&&x){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:g,removeAllOpenURI:u})=>{this.store&&g==="container-fake-removed"&&u&&this.store.ui.controls.disabledControls$.remove(ed)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let g=this.interactiveController.getHistoryState();this.subscription.add(g.history$.subscribe(u=>{u.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(u)}))}this.videoConfig?.callbacks?.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(g=>{this.videoConfig?.callbacks.onInteractiveChapterChanged?.(g.chapter,g.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(g=>{this.log({message:g.toString()})}))}catch(e){this.log({message:e.message})}}initPlayer(e,i={}){if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let o=new Error("empty videos");this.fatalError$.next(o),e.callbacks?.onCrashed?.(o.message);return}else this.fatalError$.next(null);if(this.videoConfig=Qd(Ax,(0,fi.cloneDeepWith)(e,o=>o instanceof HTMLElement?o:void 0)),this.playerId=(0,fi.getPlayerId)(e.playerId),this.uiConfig=oh(i.ui??{}),this.coreConfig=i.core??{configName:[]},this.statisticsConfig=i.statistics??{},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:this.uiConfig.sentry??{}},this.uiConfig.features.exposeInternalsToGlobal&&(this.internalsExposure??=new fi.InternalsExposure("ui",this.playerId)),wl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+this.videoConfig?.showAds],numbers:[(0,Uu.now)()]}),(0,fi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),(0,fi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isTouch=this.uiConfig.isMobile??this.videoConfig.isTouch??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen??this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext??this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons??this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&this.videoConfig.videos?.[this.videoConfig.videoIndex]?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let o={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Vu.getLatestSupportedVersion(o):this.pictureInPictureApi=new la(o)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Mu:void 0,this.slotsApi=this.uiConfig.features.slots?new Iu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ru(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]),i0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),this.slotsApi?.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Hu(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();n(Cn)&&(n(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Cn).nextButtonActive=this.isNextButtonActive(),n(Cn).prevButtonActive=this.isPrevButtonActive(),n(Cn).endScreenVideoTitle=o.nextVideoTitle,n(Cn).endScreenVideoThumb=o.nextVideoThumb,n(Cn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(e=>{e==="video"?this.setupMediaSessionForVideo():e==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{this.videoConfig?.callbacks?.onNextVideoClick?.()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{this.videoConfig?.callbacks?.onPrevVideoClick?.()}catch{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(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"});let e=!!this.interactiveController;e&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),this.mediaSessionApi?.destroy();let i=this.videoConfig.videos[0];i&&(this.unmountComponent(this.svelteRootComponent),e?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(i))}setMuted(e){this.log({message:`set muted, muted: ${e}`}),this.svelteRootComponent?.setMuted(e)}toggleSubtitle(){this.log({message:"toggle subtitle"}),this.svelteRootComponent?.toggleSubtitle()}changeSubtitle(e,i){this.log({message:"change subtitle"}),this.svelteRootComponent?.changeSubtitle(e,i)}hideControls(){this.log({message:"hide controls"}),this.svelteRootComponent?.hideControls()}showControls(){this.log({message:"show controls"}),this.svelteRootComponent?.showControls()}setPiPEnabled(e){this.store?.webApi.pictureInPictureApi?.setEnabled(e)}setVolume(e){this.log({message:`set volume, volume: ${e}`}),this.svelteRootComponent?.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Cn)&&(n(Cn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Cn).nextButtonActive=this.isNextButtonActive(),n(Cn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),this.svelteRootComponent?.seekTime(e))}seekEpisodeStartTime(e){this.log({message:`seek episode start time, time: ${e}`}),this.svelteRootComponent?.seekEpisodeStartTime(e)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(e){this.log({message:`set playback rate to: ${e}`}),this.svelteRootComponent?.setPlaybackRate(e)}setAutoQualityLimits(e){this.log({message:`set auto quality limitation. Max: ${e.max??"none"}. Min: ${e.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(e)}setAutoQuality(){this.svelteRootComponent?.setAutoQuality()}toggleTrafficSaving(e){this.svelteRootComponent?.toggleTrafficSaving(e)}toggleHighQuality(e){this.svelteRootComponent?.toggleHighQuality(e)}addLanguage(e){this.store?.actions.internal.addLanguage(e)}async setLanguage(e){await this.store?.actions.internal.setLanguage(e)}setLiveStart(e){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){let e=this.store?.getPlayer();if(!e)return!1;let{info:i}=e;return i.canPlayLiveTailBuffer$.getValue()&&!i.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){let i=this.isLiveTailPlaying(),o=e||!i;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${i}`});let r=()=>{this.store?.actions.internal.setLiveWaitingRecover(!0)};o&&r(),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{o||r(),this.store?.destroy()})}setLiveWaitingRecord(){let e=this.isLiveTailPlaying(),i=!e;this.log({message:`live waiting record: liveTailPlaying = ${e}`});let o=()=>{this.store?.actions.internal.setLiveWaitingRecord(!0)};i&&o(),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{i||o(),this.store?.destroy()})}setLiveEnd(e){let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live ended: liveTailPlaying = ${i}`});let r=()=>{this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(o){r();return}this.store?.callbacks&&(this.store.callbacks.onLiveEnded=r)}setLiveLowLatency(e){this.log({message:"live switch to low latency "+e}),this.store?.actions.external.setLiveLowLatency(e)}setLooped(e){this.store?.actions.internal.setLooped(e)}getDebugData(){return this.store?.actions.internal.getDebugTextData()??""}getDeviceId(){return this.statistics?.oneStat?.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){if(this.interactiveController&&this.store?.state.positionExact$){let i=ve(this.store.state.positionExact$),r=ve(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,fi.once)()).subscribe(()=>{r&&i>=r.time?this.seekTime(r.time):this.seekTime(i),e?.()});let s=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:s?.chapter?.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){this.store?.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){this.store?.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){this.store?.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){this.store?.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){this.store?.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){this.store?.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){this.store?.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){this.store?.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){this.store?.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){this.store?.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){this.store?.actions.internal.togglePictureInPicture()}focus(){this.svelteRootComponent?.keyboardControls?.focus?.()}restoreFocus(){this.focusManager?.restoreFocus()}handleExternalKeyboardEvent(e){return!!this.svelteRootComponent?.keyboardControls?.handleExternalKeyboardEvent(e)}setAutoplayNext(e){this.store?.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&Xs(e)}};var Cl=require("@vkontakte/videoplayer-shared"),zu=require("@vkontakte/videoplayer-core"),Mx=()=>{window.customElements.define("vk-video-player",Fu)};