@vkontakte/videoplayer 1.1.67 → 1.1.68-dev.7fa93348.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +63 -63
- package/es2015.esm.js +63 -63
- package/es2018.cjs.js +63 -63
- package/es2018.esm.js +63 -63
- package/es2024.cjs.js +64 -64
- package/es2024.esm.js +59 -59
- package/esnext.cjs.js +64 -64
- package/esnext.esm.js +59 -59
- package/evergreen.esm.js +59 -59
- package/package.json +1 -1
- package/types/types/index.d.ts +2 -0
- package/types/utils/getControlInfo.d.ts +1 -1
package/es2018.cjs.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.
|
|
3
|
-
*
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-
|
|
2
|
+
* @vkontakte/videoplayer v1.1.68-dev.7fa93348.0
|
|
3
|
+
* Fri, 25 Jul 2025 10:34:16 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-68/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var w0=Object.create;var Dl=Object.defineProperty;var
|
|
6
|
+
"use strict";var w0=Object.create;var Dl=Object.defineProperty;var S0=Object.getOwnPropertyDescriptor;var C0=Object.getOwnPropertyNames;var T0=Object.getPrototypeOf,E0=Object.prototype.hasOwnProperty;var Vv=t=>{throw TypeError(t)};var I0=(t,e,i)=>e in t?Dl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var k0=(t,e)=>{for(var i in e)Dl(t,i,{get:e[i],enumerable:!0})},Rv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of C0(e))!E0.call(t,n)&&n!==i&&Dl(t,n,{get:()=>e[n],enumerable:!(o=S0(e,n))||o.enumerable});return t};var Nv=(t,e,i)=>(i=t!=null?w0(T0(t)):{},Rv(e||!t||!t.__esModule?Dl(i,"default",{value:t,enumerable:!0}):i,t)),P0=t=>Rv(Dl({},"__esModule",{value:!0}),t);var zn=(t,e,i)=>I0(t,typeof e!="symbol"?e+"":e,i),sp=(t,e,i)=>e.has(t)||Vv("Cannot "+i);var Mi=(t,e,i)=>(sp(t,e,"read from private field"),i?i.call(t):e.get(t)),ws=(t,e,i)=>e.has(t)?Vv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ha=(t,e,i,o)=>(sp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Bv=(t,e,i)=>(sp(t,e,"access private method"),i);var Hx={};k0(Hx,{ControlButtonType:()=>Fd,GridTypes:()=>Lr,InterfaceLanguage:()=>Ll.InterfaceLanguage,MenuItemType:()=>gl,PlayerPhase:()=>ts,VERSION:()=>da,VKNumericLanguage:()=>Ll.VKNumericLanguage,VideoFormat:()=>Xu.VideoFormat,VideoQuality:()=>Xu.VideoQuality,loadVKLangPack:()=>Ll.loadVKLangPack,registerPlayerWebComponent:()=>Dx});module.exports=P0(Hx);var Ss="[",Cs="[!",qs="]",Qr={};var Xi=Symbol(),$n=Symbol("filename"),Ov=Symbol("hmr"),Dv="http://www.w3.org/1999/xhtml",wc="http://www.w3.org/2000/svg";var ap="@attach";var Sc=!0;var Fv,Uv,Hv=(Uv=(Fv=globalThis.process)==null?void 0:Fv.env)==null?void 0:Uv.NODE_ENV,Pe=Hv&&!Hv.toLowerCase().startsWith("prod");var Wn=Array.isArray,zv=Array.prototype.indexOf,Hl=Array.from,lp=Object.keys,ao=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,Cc=Object.getOwnPropertyDescriptors,dp=Object.prototype,Wv=Array.prototype,Ks=Object.getPrototypeOf,cp=Object.isExtensible;function Ts(t){return typeof t=="function"}var ne=()=>{};function qv(t){return t()}function Es(t){for(var e=0;e<t.length;e++)t[e]()}var Lo=Symbol("$state"),Fa=Symbol("legacy props"),Kv=Symbol(""),Tc=Symbol("proxy path"),Ec=1,Ua=3,qn=8;function Ic(t){return t===this.v}function za(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Qv(t,e){return t!==e}function Wa(t){return!za(t,this.v)}function Gv(){if(Pe){let t=new Error(`derived_references_self
|
|
7
7
|
A derived value cannot reference itself recursively
|
|
8
|
-
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function
|
|
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 Yv(t){if(Pe){let e=new Error(`effect_in_teardown
|
|
9
9
|
\`${t}\` cannot be used inside an effect cleanup function
|
|
10
|
-
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function
|
|
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(Pe){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Zv(t){if(Pe){let e=new Error(`effect_orphan
|
|
11
11
|
\`${t}\` can only be used inside an effect (e.g. during component initialisation)
|
|
12
|
-
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function
|
|
12
|
+
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Xv(){if(Pe){let t=new Error(`effect_update_depth_exceeded
|
|
13
13
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
14
|
-
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function
|
|
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 Jv(){if(Pe){let t=new Error(`hydration_failed
|
|
15
15
|
Failed to hydrate the application
|
|
16
|
-
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function eg(){if(Pe){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function tg(t){if(Pe){let e=new Error(`props_invalid_value
|
|
17
17
|
Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
|
|
18
|
-
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function
|
|
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 ig(t){if(Pe){let e=new Error(`props_rest_readonly
|
|
19
19
|
Rest element properties of \`$props()\` such as \`${t}\` are readonly
|
|
20
|
-
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function
|
|
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 og(t){if(Pe){let e=new Error(`rune_outside_svelte
|
|
21
21
|
The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
22
|
-
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function
|
|
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 ng(){if(Pe){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rg(){if(Pe){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sg(){if(Pe){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 Gr=!1,Yr=!1;function ag(){Gr=!0}var Fl=null;function as(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
|
|
23
23
|
`),n=[`
|
|
24
|
-
`];for(let r=0;r<o.length;r++){let l=o[r];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;
|
|
25
|
-
`)}),
|
|
24
|
+
`];for(let r=0;r<o.length;r++){let l=o[r];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;ao(e,"stack",{value:n.join(`
|
|
25
|
+
`)}),ao(e,"name",{value:`${t}Error`})}return e}function Tr(t,e){return t.label=e,kc(t.v,e),t}function kc(t,e){var i;return(i=t==null?void 0:t[Tc])==null||i.call(t,e),t}function qa(t){if(Pe){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
|
|
27
|
+
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Bt=null;function Ul(t){Bt=t}var Kn=null;function zl(t){Kn=t}function Ka(t){return fp("getContext").get(t)}function Qa(t,e){return fp("setContext").set(t,e),e}function Wl(){return fp("getAllContexts")}function D(t,e=!1,i){var o=Bt={p:Bt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Gr&&!e&&(Bt.l={s:null,u:null,r1:[],r2:ur(!1)}),Vo(()=>{o.d=!0}),Pe&&(Bt.function=i,Kn=i)}function H(t){var l,d;let e=Bt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=bt,o=Pt;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];lo(r.effect),Fi(r.reaction),wo(r.fn)}}finally{lo(i),Fi(o)}}Bt=e.p,Pe&&(Kn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function jr(){return!Gr||Bt!==null&&Bt.l===null}function fp(t){var e;return Bt===null&&qa(t),(e=Bt.c)!=null?e:Bt.c=new Map(M0(Bt)||void 0)}function M0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var L0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ii(t){if(typeof t!="object"||t===null||Lo in t)return t;let e=Ks(t);if(e!==dp&&e!==Wv)return t;var i=new Map,o=Wn(t),n=j(0),r=Pe&&Yr?as("CreatedAt"):null,l=Pt,d=f=>{var v=Pt;Fi(l);var u=f();return Fi(v),u};o&&i.set("length",j(t.length,r));var a="";function p(f){a=f,Tr(n,`${a} version`);for(let[v,u]of i)Tr(u,Qs(a,v))}return new Proxy(t,{defineProperty(f,v,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&ng();var b=i.get(v);return b===void 0?b=d(()=>{var w=j(u.value,r);return i.set(v,w),Pe&&typeof v=="string"&&Tr(w,Qs(a,v)),w}):B(b,u.value,!0),!0},deleteProperty(f,v){var u=i.get(v);if(u===void 0){if(v in f){let y=d(()=>j(Xi,r));i.set(v,y),mp(n),Pe&&Tr(y,Qs(a,v))}}else{if(o&&typeof v=="string"){var b=i.get("length"),w=Number(v);Number.isInteger(w)&&w<b.v&&B(b,w)}B(u,Xi),mp(n)}return!0},get(f,v,u){var C;if(v===Lo)return t;if(Pe&&v===Tc)return p;var b=i.get(v),w=v in f;if(b===void 0&&(!w||(C=Xo(f,v))!=null&&C.writable)&&(b=d(()=>{var T=ii(w?f[v]:Xi),k=j(T,r);return Pe&&Tr(k,Qs(a,v)),k}),i.set(v,b)),b!==void 0){var y=s(b);return y===Xi?void 0:y}return Reflect.get(f,v,u)},getOwnPropertyDescriptor(f,v){var u=Reflect.getOwnPropertyDescriptor(f,v);if(u&&"value"in u){var b=i.get(v);b&&(u.value=s(b))}else if(u===void 0){var w=i.get(v),y=w==null?void 0:w.v;if(w!==void 0&&y!==Xi)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return u},has(f,v){var y;if(v===Lo)return!0;var u=i.get(v),b=u!==void 0&&u.v!==Xi||Reflect.has(f,v);if(u!==void 0||bt!==null&&(!b||(y=Xo(f,v))!=null&&y.writable)){u===void 0&&(u=d(()=>{var C=b?ii(f[v]):Xi,T=j(C,r);return Pe&&Tr(T,Qs(a,v)),T}),i.set(v,u));var w=s(u);if(w===Xi)return!1}return b},set(f,v,u,b){var L;var w=i.get(v),y=v in f;if(o&&v==="length")for(var C=u;C<w.v;C+=1){var T=i.get(C+"");T!==void 0?B(T,Xi):C in f&&(T=d(()=>j(Xi,r)),i.set(C+"",T),Pe&&Tr(T,Qs(a,C)))}if(w===void 0)(!y||(L=Xo(f,v))!=null&&L.writable)&&(w=d(()=>j(void 0,r)),B(w,ii(u)),i.set(v,w),Pe&&Tr(w,Qs(a,v)));else{y=w.v!==Xi;var k=d(()=>ii(u));B(w,k)}var P=Reflect.getOwnPropertyDescriptor(f,v);if(P!=null&&P.set&&P.set.call(b,u),!y){if(o&&typeof v=="string"){var I=i.get("length"),E=Number(v);Number.isInteger(E)&&E>=I.v&&B(I,E+1)}mp(n)}return!0},ownKeys(f){s(n);var v=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==Xi});for(var[u,b]of i)b.v!==Xi&&!(u in f)&&v.push(u);return v},setPrototypeOf(){rg()}})}function Qs(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:L0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function mp(t,e=1){B(t,t.v+e)}function Ga(t){try{if(t!==null&&typeof t=="object"&&Lo in t)return t[Lo]}catch(e){}return t}function vp(t,e){return Object.is(Ga(t),Ga(e))}function Er(t){var e=2050,i=Pt!==null&&(Pt.f&2)!==0?Pt:null;bt===null||i!==null&&(i.f&256)!==0?e|=256:bt.f|=1048576;let o={ctx:Bt,deps:null,effects:null,equals:Ic,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:bt};return Pe&&Yr&&(o.created=as("CreatedAt")),o}function h(t){let e=Er(t);return Mc(e),e}function Ir(t){let e=Er(t);return e.equals=Wa,e}function Pc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ui(e[i])}}var gp=[];function V0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function bp(t){var e,i=bt;if(lo(V0(t)),Pe){let o=Gs;hp(new Set);try{gp.includes(t)&&Gv(),gp.push(t),Pc(t),e=Ac(t)}finally{lo(i),hp(o),gp.pop()}}else try{Pc(t),e=Ac(t)}finally{lo(i)}return e}function $p(t){var e=bp(t);if(t.equals(e)||(t.v=e,t.wv=ql()),!ls){var i=(ds||(t.f&256)!==0)&&t.deps!==null?4096:1024;cn(t,i)}}var Gs=new Set,Ya=new Map;function hp(t){Gs=t}function ur(t,e){var i={f:0,v:t,reactions:null,equals:Ic,rv:0,wv:0};return Pe&&Yr&&(i.created=e!=null?e:as("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=ur(t,e);return Mc(i),i}function Zr(t,e=!1,i=!0){var n,r;let o=ur(t);return e||(o.equals=Wa),Gr&&i&&Bt!==null&&Bt.l!==null&&((r=(n=Bt.l).s)!=null?r:n.s=[]).push(o),o}function B(t,e,i=!1){var n;Pt!==null&&(!Yn||(Pt.f&262144)!==0)&&jr()&&(Pt.f&262162)!==0&&!((n=No)!=null&&n[1].includes(t)&&No[0]===Pt)&&sg();let o=i?ii(e):e;return Pe&&kc(o,t.label),ja(t,o)}function ja(t,e){if(!t.equals(e)){var i=t.v;if(ls?Ya.set(t,e):Ya.set(t,i),t.v=e,Pe&&Yr&&(t.updated=as("UpdatedAt"),bt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&bp(t),cn(t,(t.f&256)===0?1024:4096)),t.wv=ql(),dg(t,2048),jr()&&bt!==null&&(bt.f&1024)!==0&&(bt.f&96)===0&&(Gn===null?cg([t]):Gn.push(t)),Pe&&Gs.size>0){let o=Array.from(Gs);for(let n of o)(n.f&1024)!==0&&cn(n,4096),js(n)&&Za(n);Gs.clear()}}return e}function dg(t,e){var i=t.reactions;if(i!==null)for(var o=jr(),n=i.length,r=0;r<n;r++){var l=i[r],d=l.f;if((d&2048)===0&&!(!o&&l===bt)){if(Pe&&(d&262144)!==0){Gs.add(l);continue}cn(l,e),(d&1280)!==0&&((d&2)!==0?dg(l,4096):Ql(l))}}}var Xa="font-weight: bold",Ja="font-weight: normal";function ug(t,e,i){Pe?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`,
|
|
29
|
+
https://svelte.dev/e/hydration_attribute_changed`,Xa,Ja):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function pg(t){Pe?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`,
|
|
31
|
+
https://svelte.dev/e/hydration_html_changed`,Xa,Ja):console.warn("https://svelte.dev/e/hydration_html_changed")}function Is(t){Pe?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`,
|
|
33
|
+
https://svelte.dev/e/hydration_mismatch`,Xa,Ja):console.warn("https://svelte.dev/e/hydration_mismatch")}function fg(){Pe?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`,
|
|
35
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Xa,Ja):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function mg(){Pe?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",Xa,Ja):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Lc(t){Pe?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`,
|
|
37
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Xa,Ja):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ze=!1;function co(t){Ze=t}var $t;function pi(t){if(t===null)throw Is(),Qr;return $t=t}function zi(){return pi(Bo($t))}function g(t){if(Ze){if(Bo($t)!==null)throw Is(),Qr;$t=t}}function Se(t=1){if(Ze){for(var e=t,i=$t;e--;)i=Bo(i);$t=i}}function Zs(){for(var t=0,e=$t;;){if(e.nodeType===qn){var i=e.data;if(i===qs){if(t===0)return e;t-=1}else(i===Ss||i===Cs)&&(t+=1)}var o=Bo(e);e.remove(),e=o}}function Vc(t){if(!t||t.nodeType!==qn)throw Is(),Qr;return t.data}function vg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Ga(this[a])===r){Lc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Ga(this[a])===r){Lc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Ga(this[a])===r){Lc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Xs,gg,Gl,hg,_g;function Rc(){if(Xs===void 0){Xs=window,gg=document,Gl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;hg=Xo(e,"firstChild").get,_g=Xo(e,"nextSibling").get,cp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),cp(i)&&(i.__t=void 0),Pe&&(t.__svelte_meta=null,vg())}}function un(t=""){return document.createTextNode(t)}function vi(t){return hg.call(t)}function Bo(t){return _g.call(t)}function _(t,e){if(!Ze)return vi(t);var i=vi($t);if(i===null)i=$t.appendChild(un());else if(e&&i.nodeType!==Ua){var o=un();return i==null||i.before(o),pi(o),o}return pi(i),i}function ve(t,e){var n,r;if(!Ze){var i=vi(t);return i.nodeType===8&&i.data===""?Bo(i):i}if(e&&((n=$t)==null?void 0:n.nodeType)!==Ua){var o=un();return(r=$t)==null||r.before(o),pi(o),o}return $t}function A(t,e=1,i=!1){let o=Ze?$t:t;for(var n;e--;)n=o,o=Bo(o);if(!Ze)return o;if(i&&(o==null?void 0:o.nodeType)!==Ua){var r=un();return o===null?n==null||n.after(r):o.before(r),pi(r),r}return pi(o),o}function Yl(t){t.textContent=""}function wp(t){bt===null&&Pt===null&&Zv(t),Pt!==null&&(Pt.f&256)!==0&&bt===null&&jv(),ls&&Yv(t)}function R0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Js(t,e,i,o=!0){var a;var n=bt;if(Pe)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var r={ctx:Bt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Pe&&(r.component_function=Kn),i)try{Za(r),r.f|=32768}catch(p){throw Ui(r),p}else e!==null&&Ql(r);var l=i&&r.deps===null&&r.first===null&&r.nodes_start===null&&r.teardown===null&&(r.f&1048704)===0;if(!l&&o&&(n!==null&&R0(r,n),Pt!==null&&(Pt.f&2)!==0)){var d=Pt;((a=d.effects)!=null?a:d.effects=[]).push(r)}return r}function Vo(t){let e=Js(8,null,!1);return cn(e,1024),e.teardown=t,e}function ze(t){var n;wp("$effect");var e=bt!==null&&(bt.f&32)!==0&&Bt!==null&&!Bt.m;if(Pe&&ao(t,"name",{value:"$effect"}),e){var i=Bt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:bt,reaction:Pt})}else{var o=wo(t);return o}}function Xl(t){return wp("$effect.pre"),Pe&&ao(t,"name",{value:"$effect.pre"}),Oo(t)}function Oc(t){let e=Js(64,t,!0);return()=>{Ui(e)}}function $g(t){let e=Js(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Sn(e,()=>{Ui(e),o(void 0)}):(Ui(e),o(void 0))})}function wo(t){return Js(4,t,!1)}function Oo(t){return Js(8,t,!0)}function O(t,e=[],i=Er){if(Pe)return Oo(()=>{var n=bt,r=()=>t(...l.map(s));ao(n.fn,"name",{value:"{expression}"}),ao(r,"name",{value:"{expression}"});let l=e.map(i);Wi(r)});let o=e.map(i);return Wi(()=>t(...o.map(s)))}function Wi(t,e=0){return Js(24|e,t,!0)}function Li(t,e=!0){return Js(40,t,!0,e)}function Sp(t){var e=t.teardown;if(e!==null){let i=ls,o=Pt;yp(!0),Fi(null);try{e.call(null)}finally{yp(i),Fi(o)}}}function Cp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Ui(i,e),i=o}}function yg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ui(e),e=i}}function Ui(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Tp(t.nodes_start,t.nodes_end),i=!0),Cp(t,e&&!i),Jl(t,0),cn(t,16384);var o=t.transitions;if(o!==null)for(let r of o)r.stop();Sp(t);var n=t.parent;n!==null&&n.first!==null&&Ep(t),Pe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Tp(t,e){for(;t!==null;){var i=t===e?null:Bo(t);t.remove(),t=i}}function Ep(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 Sn(t,e){var i=[];Dc(t,i,!0),Ip(i,()=>{Ui(t),e&&e()})}function Ip(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Dc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;Dc(o,e,r?i:!1),o=n}}}function us(t){xg(t,!0)}function xg(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;xg(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}var ed=[],kp=[];function wg(){var t=ed;ed=[],Es(t)}function N0(){var t=kp;kp=[],Es(t)}function pn(t){ed.length===0&&queueMicrotask(wg),ed.push(t)}function Sg(){ed.length>0&&wg(),kp.length>0&&N0()}function Tg(t){var e=bt;if(Pe&&t instanceof Error&&B0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else td(t,e)}function td(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Cg=new WeakSet;function B0(t,e){var l,d;if(Cg.has(t))return;Cg.add(t);let i=Xo(t,"message");if(!(i&&!i.configurable)){for(var o=Gl?" ":" ",n=`
|
|
38
38
|
${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,r=e.ctx;r!==null;)n+=`
|
|
39
|
-
${o}in ${(d=r.function)==null?void 0:d[
|
|
39
|
+
${o}in ${(d=r.function)==null?void 0:d[$n].split("/").pop()}`,r=r.p;ao(t,"message",{value:t.message+`
|
|
40
40
|
${n}
|
|
41
|
-
`}),t.stack&&
|
|
41
|
+
`}),t.stack&&ao(t,"stack",{value:t.stack.split(`
|
|
42
42
|
`).filter(a=>!a.includes("svelte/src/internal")).join(`
|
|
43
|
-
`)})}}var ta=!1,Ja=null,ia=!1,ds=!1;function $p(t){ds=t}var id=[],od=[],kt=null,Jn=!1;function Oi(t){kt=t}var vt=null;function to(t){vt=t}var Vo=null;function Mc(t){kt!==null&&kt.f&2097152&&(Vo===null?Vo=[kt,[t]]:Vo[1].push(t))}var mn=null,er=0,Xn=null;function dg(t){Xn=t}var Ig=1,Fc=0,cs=!1,Uc=null;function ql(){return++Ig}function Zs(t){var v,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,r,l=(e&512)!==0,d=o&&vt!==null&&!cs,a=i.length;if(l||d){var u=t,f=u.parent;for(n=0;n<a;n++)r=i[n],(l||!((v=r==null?void 0:r.reactions)!=null&&v.includes(u)))&&((p=r.reactions)!=null?p:r.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<a;n++)if(r=i[n],Zs(r)&&bp(r),r.wv>t.wv)return!0}(!o||vt!==null&&!cs)&&un(t,1024)}return!1}function kg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];Vo!=null&&Vo[1].includes(t)&&Vo[0]===kt||((r.f&2)!==0?kg(r,e,!1):e===r&&(i?un(r,2048):(r.f&1024)!==0&&un(r,4096),Ql(r)))}}function Ac(t){var $,w;var e=mn,i=er,o=Xn,n=kt,r=cs,l=Vo,d=Nt,a=Jn,u=t.f;mn=null,er=0,Xn=null,cs=(u&256)!==0&&(Jn||!ia||kt===null),kt=(u&96)===0?t:null,Vo=null,Ul(t.ctx),Jn=!1,Fc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(mn!==null){var p;if(Jl(t,er),v!==null&&er>0)for(v.length=er+mn.length,p=0;p<mn.length;p++)v[er+p]=mn[p];else t.deps=v=mn;if(!cs||(u&2)!==0&&t.reactions!==null)for(p=er;p<v.length;p++)((w=($=v[p]).reactions)!=null?w:$.reactions=[]).push(t)}else v!==null&&er<v.length&&(Jl(t,er),v.length=er);if(Zr()&&Xn!==null&&!Jn&&v!==null&&(t.f&6146)===0)for(p=0;p<Xn.length;p++)kg(Xn[p],t);return n!==null&&n!==t&&(Fc++,Xn!==null&&(o===null?o=Xn:o.push(...Xn))),f}catch(y){Sg(y)}finally{mn=e,er=i,Xn=o,kt=n,cs=r,Vo=l,Ul(d),Jn=a,t.f^=2097152}}function O0(t,e){let i=e.reactions;if(i!==null){var o=Uv.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(mn===null||!mn.includes(e))&&(un(e,4096),(e.f&768)===0&&(e.f^=512),Pc(e),Jl(e,0))}function Jl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)O0(t,i[o])}function ja(t){var e=t.f;if((e&16384)===0){un(t,1024);var i=vt,o=ia;if(vt=t,ia=!0,Pe){var n=jn;zl(t.component_function)}try{(e&16)!==0?$g(t):Cp(t),wp(t);var r=Ac(t);if(t.teardown=typeof r=="function"?r:null,t.wv=Ig,Pe&&jr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=ql(),l.set_during_effect=!1);Pe&&od.push(t)}finally{ia=o,vt=i,Pe&&zl(n)}}}function Tg(){console.error("Last ten effects were: ",od.slice(-10).map(t=>t.fn)),od=[]}function D0(){try{Zv()}catch(t){if(Pe&&eo(t,"stack",{value:""}),Ja!==null)if(Pe)try{td(t,Ja)}catch(e){throw Tg(),e}else td(t,Ja);else throw Pe&&Tg(),t}}function Pp(){var t=ia;try{var e=0;for(ia=!0;id.length>0;){e++>1e3&&D0();var i=id,o=i.length;id=[];for(var n=0;n<o;n++){var r=F0(i[n]);H0(r)}Ga.clear()}}finally{ta=!1,ia=t,Ja=null,Pe&&(od=[])}}function H0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Zs(o)&&(ja(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Tp(o):o.fn=null))}}function Ql(t){ta||(ta=!0,queueMicrotask(Pp));for(var e=Ja=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}id.push(e)}function F0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,r=n&&(o&1024)!==0;if(!r&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:Zs(i)&&ja(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function el(t){var e;for(t&&(ta=!0,Pp(),ta=!0,e=t());;){if(wg(),id.length===0)return ta=!1,Ja=null,Pe&&(od=[]),e;ta=!0,Pp()}}async function yo(){await Promise.resolve(),el()}function s(t){var e=t.f,i=(e&2)!==0;if(Uc!==null&&Uc.add(t),kt!==null&&!Jn){if(!(Vo!=null&&Vo[1].includes(t))||Vo[0]!==kt){var o=kt.deps;t.rv<Fc&&(t.rv=Fc,mn===null&&o!==null&&o[er]===t?er++:mn===null?mn=[t]:(!cs||!mn.includes(t))&&mn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&(r.f&256)===0&&(n.f^=256)}if(i&&(n=t,Zs(n)&&bp(n)),Pe&&jr&&!Jn&&Fl!==null&&kt!==null&&Fl.reaction===kt)if(t.trace)t.trace();else{var l=ls("TracedAt");if(l){var d=Fl.entries.get(t);d===void 0&&(d={traces:[]},Fl.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return ds&&Ga.has(t)?Ga.get(t):t.v}function Et(t){var e=Jn;try{return Jn=!0,t()}finally{Jn=e}}var U0=-7169;function un(t,e){t.f=t.f&U0|e}function Wc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ao in t)zc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ao in i&&zc(i)}}}function zc(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{zc(t[o],e)}catch(n){}let i=Qs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Sc(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}function Ap(t,e){if(e){let i=document.body;t.autofocus=!0,fn(()=>{document.activeElement===i&&t.focus()})}}function nd(t){var e=kt,i=vt;Oi(null),to(null);try{return t()}finally{Oi(e),to(i)}}var Mp=new Set,qc=new Set;function oa(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 Lp(t,e,i,o={}){function n(r){if(o.capture||tl.call(e,r),!r.cancelBubble)return nd(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?fn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Ct(t,e,i,o,n){var r={capture:o,passive:n},l=Lp(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Mo(()=>{e.removeEventListener(t,l,r)})}function lt(t){for(var e=0;e<t.length;e++)Mp.add(t[e]);for(var i of qc)i(t)}function tl(t){var k;var e=this,i=e.ownerDocument,o=t.type,n=((k=t.composedPath)==null?void 0:k.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(r=n[l]||t.target,r!==e){eo(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=kt,v=vt;Oi(null),to(null);try{for(var p,$=[];r!==null;){var w=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!=null&&(!r.disabled||t.target===r))if(Gn(y)){var[S,...T]=y;S.apply(r,[t,...T])}else y.call(r,t)}catch(P){p?$.push(P):p=P}if(t.cancelBubble||w===e||w===null)break;r=w}if(p){for(let P of $)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,Oi(f),to(v)}}}var W0;function Pg(){W0=void 0}function il(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function xo(t,e){var i=vt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(je)return xo(gt,null),gt;n===void 0&&(n=il(r?t:"<!>"+t),i||(n=vi(n)));var l=o||Gl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=vi(l),a=l.lastChild;xo(d,a)}else xo(l,l);return l}}function Q0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(je)return xo(gt,null),gt;if(!l){var d=il(r),a=vi(d);if(n)for(l=document.createDocumentFragment();vi(a);)l.appendChild(vi(a));else l=vi(a)}var u=l.cloneNode(!0);if(n){var f=vi(u),v=u.lastChild;xo(f,v)}else xo(u,u);return u}}function Ce(t,e){return Q0(t,e,"svg")}function Jr(t=""){if(!je){var e=pn(t+"");return xo(e,e),e}var i=gt;return i.nodeType!==Fa&&(i.before(i=pn()),pi(i)),xo(i,i),i}function He(){if(je)return xo(gt,null),gt;var t=document.createDocumentFragment(),e=document.createComment(""),i=pn();return t.append(e,i),xo(e,i),t}function b(t,e){if(je){vt.nodes_end=gt,Hi();return}t!==null&&t.before(e)}var G0=/\r/g;function Mg(t){t=t.replace(G0,"");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 Y0=["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 Y0.includes(t)}var j0=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var 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 Rg(t){var e;return t=t.toLowerCase(),(e=Z0[t])!=null?e:t}var I6=[...j0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var X0=["touchstart","touchmove"];function Ng(t){return X0.includes(t)}var J0=["$state","$state.raw","$derived","$derived.by"],k6=[...J0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var e_=["textarea","script","style","title"];function Bg(t){return e_.includes(t)}function Kc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var rd=!0;function Qc(t){rd=t}function he(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function fs(t,e){return Og(t,e)}function Rp(t,e){var l;Rc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=je,n=gt;try{for(var r=vi(i);r&&(r.nodeType!==Yn||r.data!==Ts);)r=Ro(r);if(!r)throw Gr;io(!0),pi(r),Hi();let d=Og(t,{...e,anchor:r});if(gt===null||gt.nodeType!==Yn||gt.data!==Ks)throw Ps(),Gr;return io(!1),d}catch(d){if(d===Gr)return e.recover===!1&&Xv(),Rc(),Yl(i),io(!1),fs(t,e);throw d}finally{io(o),pi(n),Pg()}}var ol=new Map;function Og(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){Rc();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var $=v[p];if(!d.has($)){d.add($);var w=Ng($);e.addEventListener($,tl,{passive:w});var y=ol.get($);y===void 0?(document.addEventListener($,tl,{passive:w}),ol.set($,1)):ol.set($,y+1)}}};a(Hl(Mp)),qc.add(a);var u=void 0,f=bg(()=>{var v=i!=null?i:e.appendChild(pn());return ki(()=>{if(r){D({});var p=Nt;p.c=r}n&&(o.$$events=n),je&&xo(v,null),rd=l,u=t(v,o)||{},rd=!0,je&&(vt.nodes_end=gt),r&&H()}),()=>{var w;for(var p of d){e.removeEventListener(p,tl);var $=ol.get(p);--$===0?(document.removeEventListener(p,tl),ol.delete(p)):ol.set(p,$)}qc.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return Vp.set(u,f),u}var Vp=new WeakMap;function na(t,e){let i=Vp.get(t);return i?(Vp.delete(t),i(e)):(Pe&&pg(),Promise.resolve())}function _e(t,e,...i){var o=t,n=ne,r;Fi(()=>{n!==(n=e())&&(r&&(Di(r),r=null),Pe&&n==null&&Jv(),r=ki(()=>n(o,...i)))},65536),je&&(o=gt)}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;ig(e)},set:o=>{i=o}})}};n_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var n_;function Ot(t){Nt===null&&Wa("onMount"),Yr&&Nt.l!==null?o_(Nt).m.push(t):ze(()=>{let e=Et(t);if(typeof e=="function")return e})}function In(t){Nt===null&&Wa("onDestroy"),Ot(()=>()=>Et(t))}function o_(t){var i;var e=t.l;return(i=e.u)!=null?i: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 V(t,e,[i,o]=[0,0]){je&&i===0&&Hi();var n=t,r=null,l=null,d=Qi,a=i>0?65536:0,u=!1;let f=(p,$=!0)=>{u=!0,v($,p)},v=(p,$)=>{if(d===(d=p))return;let w=!1;if(je&&o!==-1){if(i===0){let S=Vc(n);S===Ts?o=0:S===Es?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Xs(),pi(n),io(!1),w=!0,o=-1)}d?(r?ps(r):$&&(r=ki(()=>$(n))),l&&En(l,()=>{l=null})):(l?ps(l):$&&(l=ki(()=>$(n,[i+1,o]))),r&&En(r,()=>{r=null})),w&&io(!0)};Fi(()=>{u=!1,e(f),u||v(null,null)},a),je&&(n=gt)}function ra(t,e,i){je&&Hi();var o=t,n=Qi,r,l=Zr()?Kv:Ua;Fi(()=>{l(n,n=e())&&(r&&En(r),r=ki(()=>i(o)))}),je&&(o=gt)}var Ms=null;function Op(t){Ms=t}function sd(t,e){return e}function a_(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)Dc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Yl(a),a.append(i),o.clear(),As(t,e[0].prev,e[r-1].next)}Ep(n,()=>{for(var u=0;u<r;u++){var f=e[u];d||(o.delete(f.k),As(t,f.prev,f.next)),Di(f.e,!d)}})}function yi(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=je?pi(vi(u)):u.appendChild(pn())}je&&Hi();var f=null,v=!1,p=kr(()=>{var $=i();return Gn($)?$:$==null?[]:Hl($)});Fi(()=>{var $=s(p),w=$.length;if(v&&w===0)return;v=w===0;let y=!1;if(je){var S=Vc(l)===Es;S!==(w===0)&&(l=Xs(),pi(l),io(!1),y=!0)}if(je){for(var T=null,k,P=0;P<w;P++){if(gt.nodeType===Yn&>.data===Ks){l=gt,y=!0,io(!1);break}var I=$[P],E=o(I,P);k=zg(gt,d,T,null,I,E,P,n,e,i),d.items.set(E,k),T=k}w>0&&pi(Xs())}je||l_($,d,l,n,e,o,i),r!==null&&(w===0?f?ps(f):f=ki(()=>r(l)):f!==null&&En(f,()=>{f=null})),y&&io(!0),s(p)}),je&&(l=gt)}function l_(t,e,i,o,n,r,l){var ae,Ae,Ve,me;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,v=e.first,p=v,$,w=null,y,S=[],T=[],k,P,I,E;if(d)for(E=0;E<u;E+=1)k=t[E],P=r(k,E),I=f.get(P),I!==void 0&&((ae=I.a)==null||ae.measure(),(y!=null?y:y=new Set).add(I));for(E=0;E<u;E+=1){if(k=t[E],P=r(k,E),I=f.get(P),I===void 0){var L=p?p.e.nodes_start:i;w=zg(L,e,w,w===null?e.first:w.next,k,P,E,o,n,l),f.set(P,w),S=[],T=[],p=w.next;continue}if(a&&d_(I,k,E,n),(I.e.f&8192)!==0&&(ps(I.e),d&&((Ae=I.a)==null||Ae.unfix(),(y!=null?y:y=new Set).delete(I))),I!==p){if($!==void 0&&$.has(I)){if(S.length<T.length){var q=T[0],z;w=q.prev;var U=S[0],G=S[S.length-1];for(z=0;z<S.length;z+=1)Fg(S[z],q,i);for(z=0;z<T.length;z+=1)$.delete(T[z]);As(e,U.prev,G.next),As(e,w,U),As(e,G,q),p=q,w=G,E-=1,S=[],T=[]}else $.delete(I),Fg(I,p,i),As(e,I.prev,I.next),As(e,I,w===null?e.first:w.next),As(e,w,I),w=I;continue}for(S=[],T=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&($!=null?$:$=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;I=p}S.push(I),w=I,p=I.next}if(p!==null||$!==void 0){for(var re=$===void 0?[]:Hl($);p!==null;)(p.e.f&8192)===0&&re.push(p),p=p.next;var Y=re.length;if(Y>0){var ce=(n&4)!==0&&u===0?i:null;if(d){for(E=0;E<Y;E+=1)(Ve=re[E].a)==null||Ve.measure();for(E=0;E<Y;E+=1)(me=re[E].a)==null||me.fix()}a_(e,re,ce,f)}}d&&fn(()=>{var ue;if(y!==void 0)for(I of y)(ue=I.a)==null||ue.apply()}),vt.first=e.first&&e.first.e,vt.last=w&&w.e}function d_(t,e,i,o){(o&1)!==0&&Ya(t.v,e),(o&2)!==0?Ya(t.i,i):t.i=i}function zg(t,e,i,o,n,r,l,d,a,u){var f=Ms,v=(a&1)!==0,p=(a&16)===0,$=v?p?Xr(n,!1,!1):mr(n):n,w=(a&2)===0?l:mr(l);Pe&&v&&($.trace=()=>{var S=typeof w=="number"?l:w.v;u()[S]});var y={i:w,v:$,k:r,a:null,e:null,prev:i,next:o};Ms=y;try{return y.e=ki(()=>d(t,$,w,u),je),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Ms=f}}function Fg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Ro(r);n.before(r),r=l}}function As(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 c_(t,e,i){var r,l;if(!e||e===Mg(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=jn)!=null&&l[wn]&&(o=`in ${jn[wn]}`),ug(Kc(o))}function ad(t,e,i=!1,o=!1,n=!1){var r=t,l="";O(()=>{var $;var d=vt;if(l===(l=($=e())!=null?$:"")){je&&Hi();return}if(d.nodes_start!==null&&(Sp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(je){for(var a=gt.data,u=Hi(),f=u;u!==null&&(u.nodeType!==Yn||u.data!=="");)f=u,u=Ro(u);if(u===null)throw Ps(),Gr;Pe&&!n&&c_(u.parentNode,a,l),xo(gt,f),r=pi(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=il(v);if((i||o)&&(p=vi(p)),xo(vi(p),p.lastChild),i||o)for(;vi(p);)r.before(vi(p));else r.before(p)}})}function xi(t,e,i){je&&Hi();var o=t,n,r;Fi(()=>{n!==(n=e())&&(r&&(En(r),r=null),n&&(r=ki(()=>i(o,n))))},65536),je&&(o=gt)}function sa(t,e,i,o,n,r){var w;let l=je;je&&Hi();var d=Pe&&r&&((w=Nt)==null?void 0:w.function[wn]),a,u,f=null;je&>.nodeType===Ec&&(f=gt,Hi());var v=je?gt:t,p,$=Ms;Fi(()=>{let y=e()||null;var S=n?n():i||y==="svg"?wc:null;if(y!==a){var T=Ms;Op($),p&&(y===null?En(p,()=>{p=null,u=null}):y===u?ps(p):(Di(p),Qc(!1))),y&&y!==u&&(p=ki(()=>{if(f=je?f:S?document.createElementNS(S,y):document.createElement(y),Pe&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),xo(f,f),o){je&&Bg(y)&&f.append(document.createComment(""));var k=je?vi(f):f.appendChild(pn());je&&(k===null?io(!1):pi(k)),o(f,k)}vt.nodes_end=f,v.before(f)})),a=y,a&&(u=a),Qc(!0),Op(T)}},65536),l&&(io(!0),pi(v))}var Hp;function Wg(t){return Hp=t.target,new Dp(t)}var ms,vr,Dp=class{constructor(e){Ss(this,ms);Ss(this,vr);var r,l;var i=new Map,o=(d,a)=>{var u=Xr(a,!1,!1);return i.set(d,u),u};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var u;return s((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===Ha?!0:(s((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return B((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});Da(this,vr,(e.hydrate?Rp:fs)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&el(),Da(this,ms,n.$$events);for(let d of Object.keys(Ii(this,vr)))d==="$set"||d==="$destroy"||d==="$on"||eo(this,d,{get(){return Ii(this,vr)[d]},set(a){Ii(this,vr)[d]=a},enumerable:!0});Ii(this,vr).$set=d=>{Object.assign(n,d)},Ii(this,vr).$destroy=()=>{na(Ii(this,vr))}}$set(e){Ii(this,vr).$set(e)}$on(e,i){Ii(this,ms)[e]=Ii(this,ms)[e]||[];let o=(...n)=>i.call(this,...n);return Ii(this,ms)[e].push(o),()=>{Ii(this,ms)[e]=Ii(this,ms)[e].filter(n=>n!==o)}}$destroy(){Ii(this,vr).$destroy()}};ms=new WeakMap,vr=new WeakMap;function W(t,e){fn(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=Hp)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Pe&&Hg(e.hash,d)}})}function Fp(t,e){var i=void 0,o;Fi(()=>{i!==(i=e())&&(o&&(Di(o),o=null),i&&(o=ki(()=>{$o(()=>i(t))})))})}function qg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=qg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Kg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=qg(t))&&(o&&(o+=" "),o+=e);return o}function ld(t){return typeof t=="object"?Kg(t):t!=null?t:""}var Qg=[...`
|
|
44
|
-
\r\f\xA0\v\uFEFF`];function Yg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var r=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+r;(l===0||Qg.includes(o[l-1]))&&(d===o.length||Qg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Gg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var r=t[n];r!=null&&r!==""&&(o+=" "+n+": "+r+i)}return o}function Up(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function jg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var r=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(Up)),n&&a.push(...Object.keys(n).map(Up));var u=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):r?r===p&&(r=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?r=p:p==="("?l++:p===")"&&l--,!d&&r===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===y-1){if(f!==-1){var $=Up(t.substring(u,f).trim());if(!a.includes($)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=Gg(o)),n&&(i+=Gg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,r){var l=t.__className;if(je||l!==i||l===void 0){var d=Yg(i,o,r);(!je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(r&&n!==r)for(var a in r){var u=!!r[a];(n==null||u!==!!n[a])&&t.classList.toggle(a,u)}return r}function zp(t,e={},i,o){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,o))}}function st(t,e,i,o){var n=t.__style;if(je||n!==e){var r=jg(e,o);(!je||r!==t.getAttribute("style"))&&(r==null?t.removeAttribute("style"):t.style.cssText=r),t.__style=e}else o&&(Array.isArray(o)?(zp(t,i==null?void 0:i[0],o[0]),zp(t,i==null?void 0:i[1],o[1],"important")):zp(t,i,o));return o}function dd(t,e,i){if(t.multiple){if(e==null)return;if(!Gn(e))return fg();for(var o of t.options)o.selected=e.includes(Zg(o));return}for(o of t.options){var n=Zg(o);if(mp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Wp(t){var e=new MutationObserver(()=>{dd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Mo(()=>{e.disconnect()})}function Zg(t){return"__value"in t?t.__value:t.value}var nl=Symbol("class"),rl=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 n=nh(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||__(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[qv]=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,n=!1){var I;var r=nh(t),l=r[eh],d=!r[th];let a=je&&l;a&&io(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=ld(i.class):(o||i[nl])&&(i.class=null),i[rl]&&((I=i.style)!=null||(i.style=null));var p=rh(t);for(let E in i){let L=i[E];if(f&&E==="value"&&L==null){t.value=t.__value="",u[E]=L;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,L,o,e==null?void 0:e[nl],i[nl]),u[E]=L,u[nl]=i[nl];continue}if(E==="style"){st(t,L,e==null?void 0:e[rl],i[rl]),u[E]=L,u[rl]=i[rl];continue}var w=u[E];if(!(L===w&&!(L===void 0&&t.hasAttribute(E)))){u[E]=L;var y=E[0]+E[1];if(y!=="$$")if(y==="on"){let q={},z="$$"+E,U=E.slice(2);var S=Vg(U);if(Lg(U)&&(U=U.slice(0,-7),q.capture=!0),!S&&w){if(L!=null)continue;t.removeEventListener(U,u[z],q),u[z]=null}if(L!=null)if(S)t[`__${U}`]=L,lt([U]);else{let G=function(re){u[E].call(this,re)};var P=G;u[z]=Lp(U,t,G,q)}else S&&(t[`__${U}`]=void 0)}else if(E==="style")Ne(t,E,L);else if(E==="autofocus")Ap(t,!!L);else if(!l&&(E==="__value"||E==="value"&&L!=null))t.value=t.__value=L;else if(E==="selected"&&f)ih(t,L);else{var T=E;d||(T=Rg(T));var k=T==="defaultValue"||T==="defaultChecked";if(L==null&&!l&&!k)if(r[E]=null,T==="value"||T==="checked"){let q=t,z=e===void 0;if(T==="value"){let U=q.defaultValue;q.removeAttribute(T),q.defaultValue=U,q.value=q.__value=z?U:null}else{let U=q.defaultChecked;q.removeAttribute(T),q.defaultChecked=U,q.checked=z?U:!1}}else t.removeAttribute(E);else k||p.includes(T)&&(l||typeof L!="string")?t[T]=L:typeof L!="function"&&Ne(t,T,L,n)}}}return a&&io(!0),u}function ke(t,e,i=[],o,n=!1,r=Ir){let l=i.map(r);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Fi(()=>{var p=e(...l.map(s)),$=oh(t,d,p,o,n);f&&u&&"value"in p&&dd(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||Di(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var w=p[y];y.description===sp&&(!d||w!==d[y])&&(a[y]&&Di(a[y]),a[y]=ki(()=>Fp(t,()=>w))),$[y]=w}d=$}),u){var v=t;$o(()=>{dd(v,d.value),Wp(v)})}f=!0}function nh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[eh]:t.nodeName.includes("-"),[th]:t.namespaceURI===Ov}}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,n=Element.prototype;n!==o;){i=Sc(o);for(var r in i)i[r].set&&e.push(r);o=Qs(o)}return e}function __(t,e,i){var o;Pe&&(e==="srcset"&&b_(t,i)||qp((o=t.getAttribute(e))!=null?o:"",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 b_(t,e){var i=Jg(t.srcset),o=Jg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(qp(i[l][0],n)||qp(n,i[l][0])))}var $_=Cc?()=>performance.now():()=>Date.now(),Mr={tick:t=>(Cc?requestAnimationFrame:ne)(t),now:()=>$_(),tasks:new Set};function sh(){let t=Mr.now();Mr.tasks.forEach(e=>{e.c(t)||(Mr.tasks.delete(e),e.f())}),Mr.tasks.size!==0&&Mr.tick(sh)}function ah(t){let e;return Mr.tasks.size===0&&Mr.tick(sh),{promise:new Promise(i=>{Mr.tasks.add(e={c:t,f:i})}),abort(){Mr.tasks.delete(e)}}}function Gc(t,e){nd(()=>{t.dispatchEvent(new CustomEvent(e))})}function C_(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[n,r]=o.split(":");if(!n||r===void 0)break;let l=C_(n.trim());e[l]=r.trim()}return e}var S_=t=>t;function Qp(t,e,i,o){var P;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",u,f=e.inert,v=e.style.overflow,p,$;function w(){var L;var I=kt,E=vt;Oi(null),to(null);try{return u!=null?u:u=i()(e,(L=o==null?void 0:o())!=null?L:{},{direction:a})}finally{Oi(I),to(E)}}var y={is_global:d,in(){var I;if(e.inert=f,!n){$==null||$.abort(),(I=$==null?void 0:$.reset)==null||I.call($);return}r||p==null||p.abort(),Gc(e,"introstart"),p=Kp(e,w(),$,1,()=>{Gc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(I){if(!r){I==null||I(),u=void 0;return}e.inert=!0,Gc(e,"outrostart"),$=Kp(e,w(),p,0,()=>{Gc(e,"outroend"),I==null||I()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},S=vt;if(((P=S.transitions)!=null?P:S.transitions=[]).push(y),n&&rd){var T=d;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&&$o(()=>{Et(()=>y.in())})}}function Kp(t,e,i,o,n){var r=o===1;if(Is(e)){var l,d=!1;return fn(()=>{if(!d){var S=e({direction:r?"in":"out"});l=Kp(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ne,deactivate:ne,reset:ne,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=S_}=e;var p=[];if(r&&i===void 0&&(f&&f(0,1),u)){var $=lh(u(0,1));p.push($,$)}var w=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var U;y.cancel();var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var T=o-S,k=e.duration*Math.abs(T),P=[];if(k>0){var I=!1;if(u)for(var E=Math.ceil(k/16.666666666666668),L=0;L<=E;L+=1){var q=S+T*v(L/E),z=lh(u(q,1-q));P.push(z),I||(I=z.overflow==="hidden")}I&&(t.style.overflow="hidden"),w=()=>{var G=y.currentTime;return S+T*v(G/k)},f&&ah(()=>{if(y.playState!=="running")return!1;var G=w();return f(G,1-G),!0})}y=t.animate(P,{duration:k,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ne)},deactivate:()=>{n=ne},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Ls,sl,cd,jc,dh,Zc=class Zc{constructor(e){Ss(this,jc);Ss(this,Ls,new WeakMap);Ss(this,sl);Ss(this,cd);Da(this,cd,e)}observe(e,i){var o=Ii(this,Ls).get(e)||new Set;return o.add(i),Ii(this,Ls).set(e,o),Nv(this,jc,dh).call(this).observe(e,Ii(this,cd)),()=>{var n=Ii(this,Ls).get(e);n.delete(i),n.size===0&&(Ii(this,Ls).delete(e),Ii(this,sl).unobserve(e))}}};Ls=new WeakMap,sl=new WeakMap,cd=new WeakMap,jc=new WeakSet,dh=function(){var e;return(e=Ii(this,sl))!=null?e:Da(this,sl,new ResizeObserver(i=>{for(var o of i){Zc.entries.set(o.target,o);for(var n of Ii(this,Ls).get(o.target)||[])n(o)}}))},Qn(Zc,"entries",new WeakMap);var Gp=Zc;var T_=new Gp({box:"border-box"});function es(t,e,i){var o=T_.observe(t,()=>i(t[e]));$o(()=>(Et(()=>i(t[e])),o))}function ch(t,e){return t===e||(t==null?void 0:t[Ao])===e}function ot(t={},e,i,o){return $o(()=>{var n,r;return No(()=>{n=r,r=(o==null?void 0:o())||[],Et(()=>{t!==i(...r)&&(e(t,...r),n&&ch(i(...n),t)&&e(null,...n))})}),()=>{fn(()=>{r&&ch(i(...r),t)&&e(null,...r)})}}),t}function Lr(t=!1){let e=Nt,i=e.l.u;if(!i)return;let o=()=>Wc(e.s);if(t){let n=0,r={},l=Ir(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==r[u]&&(r[u]=a[u],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Xl(()=>{uh(e,o),ks(i.b)}),ze(()=>{let n=Et(()=>i.m.map(Wv));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&ze(()=>{uh(e,o),ks(i.a)})}function uh(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function ud(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ne;let o=Et(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var al=[];function gr(t,e){return{subscribe:se(t,e).subscribe}}function se(t,e=ne){let i=null,o=new Set;function n(d){if(Ua(t,d)&&(t=d,i)){let a=!al.length;for(let u of o)u[1](),al.push(u,t);if(a){for(let u=0;u<al.length;u+=2)al[u][0](al[u+1]);al.length=0}}}function r(d){n(d(t))}function l(d,a=ne){let u=[d,a];return o.add(u),o.size===1&&(i=e(n,r)||ne),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function gi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return gr(i,(l,d)=>{let a=!1,u=[],f=0,v=ne,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);r?l(w):v=typeof w=="function"?w:ne},$=n.map((w,y)=>ud(w,S=>{u[y]=S,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){ks($),v(),a=!1}})}function $e(t){let e;return ud(t,i=>e=i)(),e}var Xc=!1,Yp=Symbol();function C(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Xr(void 0),unsubscribe:ne};if(o.store!==t&&!(Yp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ne;else{var n=!0;o.unsubscribe=ud(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&Yp in i?$e(t):s(o.source)}function Be(){let t={};function e(){Mo(()=>{for(var i in t)t[i].unsubscribe();eo(t,Yp,{enumerable:!1,value:!0})})}return[t,e]}function jp(t){var e=Xc;try{return Xc=!1,[t(),Xc]}finally{Xc=e}}var L_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&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 Me(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},L_)}var V_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Is(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Is(n)&&(n=n());let r=Zo(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Is(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Zo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ao||e===Ha)return!1;for(let i of t.props)if(Is(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Is(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 vs(...t){return new Proxy({props:t},V_)}function ph(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var q,z;var n=(i&1)!==0,r=!Yr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=jp(()=>t[e]):u=t[e];var f=Ao in t||Ha in t,v=l&&((z=(q=Zo(t,e))==null?void 0:q.set)!=null?z:f&&e in t&&(U=>t[e]=U))||void 0,p=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?p=Et(o):p=o),p);u===void 0&&o!==void 0&&(v&&r&&eg(e),u=y(),v&&v(u));var S;if(r)S=()=>{var U=t[e];return U===void 0?y():($=!0,w=!1,U)};else{var T=(n?Ir:kr)(()=>t[e]);T.f|=131072,S=()=>{var U=s(T);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0&&r)return S;if(v){var k=t.$$legacy;return function(U,G){return arguments.length>0?((!r||!G||k||a)&&v(G?S():U),U):S()}}var P=!1,I=!1,E=Xr(u),L=Ir(()=>{var U=S(),G=s(E);return P?(P=!1,I=!0,G):(I=!1,E.v=U)});return l&&s(L),n||(L.equals=za),function(U,G){if(Uc!==null&&(P=I,S(),s(E)),arguments.length>0){let re=G?s(L):r&&l?oi(U):U;if(!L.equals(re)){if(P=!0,B(E,re),w&&p!==void 0&&(p=re),ph(L))return U;Et(()=>s(L))}return U}return ph(L)?L.v:s(L)}}var R_;typeof HTMLElement=="function"&&(R_=class extends HTMLElement{constructor(e,i,o){super();Qn(this,"$$ctor");Qn(this,"$$s");Qn(this,"$$c");Qn(this,"$$cn",!1);Qn(this,"$$d",{});Qn(this,"$$r",!1);Qn(this,"$$p_d",{});Qn(this,"$$l",{});Qn(this,"$$l_u",new Map);Qn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=N_(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Zp(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Wg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Oc(()=>{No(()=>{var r;this.$$r=!0;for(let l of ap(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Zp(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Zp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return ap(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Zp(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function N_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var fh="5";var mh,vh,gh;typeof window!="undefined"&&((gh=(vh=(mh=window.__svelte)!=null?mh:window.__svelte={}).v)!=null?gh:vh.v=new Set).add(fh);var Sl=require("@vkontakte/videoplayer-core/es2018"),jG=require("@vkontakte/videoplayer-core/es2018"),Na=require("@vkontakte/videoplayer-shared/es2018"),u0=require("@vkontakte/videoplayer-statistics/es2018");var aa=require("@vkontakte/videoplayer-shared/es2018");var B_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:aa.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:aa.VideoQuality.Q_480P,highQualityLimit:aa.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null}},hh=t=>(0,aa.fillWithDefault)(t,B_),_h=t=>Ka("ui-config",t),Ut=()=>qa("ui-config");var pd="vk_player_debug_panel_opened";var bh="videoplayer",$h="videoplayer";var ts={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},yh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),xh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),wh=new Set(["ShiftRight","ShiftLeft"]);var Ch=["TIMELINE"],fd=[...Ch,"GRAPH_BUTTON"],Xp=[...Ch,"PLAY_BUTTON"],md=[...fd,"PLAY_BUTTON"];var Vr=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Vr||{}),da={xs:0,s:1,m:2,l:3,xl:4};var vd=require("@vkontakte/videoplayer-shared/es2018"),Sh=require("@vkontakte/videoplayer-core/es2018"),Th=require("@vkontakte/videoplayer-statistics/es2018");var Jc="prod",ca="1.1.67";var ua=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Eh=Symbol("storeContext"),Ih=Symbol("microStoresContext"),kh=(t,e)=>{Ka(Eh,t),Ka(Ih,e),Jc==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=qa(Eh);return(0,vd.assertNonNullable)(t,"Store context is empty!"),t},uo=()=>{let t=qa(Ih);return(0,vd.assertNonNullable)(t,"MicroStores context is empty!"),t},Xt=(t,e)=>tu(t,t.getValue(),e),tu=(t,e,i)=>gr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),Ph=(t,e,i,o)=>{var L,q,z,U,G,re,Y,ce;let n=t.info,{width:r,height:l}=$e(i.ui.playerSize),d=(q=(L=n.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?q:0,a=(U=(z=n.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?U:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${ca} (core: ${Sh.VERSION}, stat: ${Th.VERSION}, shared: ${vd.VERSION})`,v=$e(i.state.errorLog$),p=v.length?`
|
|
45
|
-
`+v.map((ae,Ae)=>{var
|
|
43
|
+
`)})}}var ea=!1,el=null,ta=!1,ls=!1;function yp(t){ls=t}var id=[],od=[],Pt=null,Yn=!1;function Fi(t){Pt=t}var bt=null;function lo(t){bt=t}var No=null;function Mc(t){Pt!==null&&Pt.f&2097152&&(No===null?No=[Pt,[t]]:No[1].push(t))}var fn=null,jn=0,Gn=null;function cg(t){Gn=t}var kg=1,Fc=0,ds=!1,Uc=null;function ql(){return++kg}function js(t){var v,u;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,r,l=(e&512)!==0,d=o&&bt!==null&&!ds,a=i.length;if(l||d){var p=t,f=p.parent;for(n=0;n<a;n++)r=i[n],(l||!((v=r==null?void 0:r.reactions)!=null&&v.includes(p)))&&((u=r.reactions)!=null?u:r.reactions=[]).push(p);l&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<a;n++)if(r=i[n],js(r)&&$p(r),r.wv>t.wv)return!0}(!o||bt!==null&&!ds)&&cn(t,1024)}return!1}function Pg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];No!=null&&No[1].includes(t)&&No[0]===Pt||((r.f&2)!==0?Pg(r,e,!1):e===r&&(i?cn(r,2048):(r.f&1024)!==0&&cn(r,4096),Ql(r)))}}function Ac(t){var b,w;var e=fn,i=jn,o=Gn,n=Pt,r=ds,l=No,d=Bt,a=Yn,p=t.f;fn=null,jn=0,Gn=null,ds=(p&256)!==0&&(Yn||!ta||Pt===null),Pt=(p&96)===0?t:null,No=null,Ul(t.ctx),Yn=!1,Fc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(fn!==null){var u;if(Jl(t,jn),v!==null&&jn>0)for(v.length=jn+fn.length,u=0;u<fn.length;u++)v[jn+u]=fn[u];else t.deps=v=fn;if(!ds||(p&2)!==0&&t.reactions!==null)for(u=jn;u<v.length;u++)((w=(b=v[u]).reactions)!=null?w:b.reactions=[]).push(t)}else v!==null&&jn<v.length&&(Jl(t,jn),v.length=jn);if(jr()&&Gn!==null&&!Yn&&v!==null&&(t.f&6146)===0)for(u=0;u<Gn.length;u++)Pg(Gn[u],t);return n!==null&&n!==t&&(Fc++,Gn!==null&&(o===null?o=Gn:o.push(...Gn))),f}catch(y){Tg(y)}finally{fn=e,jn=i,Gn=o,Pt=n,ds=r,No=l,Ul(d),Yn=a,t.f^=2097152}}function O0(t,e){let i=e.reactions;if(i!==null){var o=zv.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(fn===null||!fn.includes(e))&&(cn(e,4096),(e.f&768)===0&&(e.f^=512),Pc(e),Jl(e,0))}function Jl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)O0(t,i[o])}function Za(t){var e=t.f;if((e&16384)===0){cn(t,1024);var i=bt,o=ta;if(bt=t,ta=!0,Pe){var n=Kn;zl(t.component_function)}try{(e&16)!==0?yg(t):Cp(t),Sp(t);var r=Ac(t);if(t.teardown=typeof r=="function"?r:null,t.wv=kg,Pe&&Yr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=ql(),l.set_during_effect=!1);Pe&&od.push(t)}finally{ta=o,bt=i,Pe&&zl(n)}}}function Eg(){console.error("Last ten effects were: ",od.slice(-10).map(t=>t.fn)),od=[]}function D0(){try{Xv()}catch(t){if(Pe&&ao(t,"stack",{value:""}),el!==null)if(Pe)try{td(t,el)}catch(e){throw Eg(),e}else td(t,el);else throw Pe&&Eg(),t}}function Ap(){var t=ta;try{var e=0;for(ta=!0;id.length>0;){e++>1e3&&D0();var i=id,o=i.length;id=[];for(var n=0;n<o;n++){var r=F0(i[n]);H0(r)}Ya.clear()}}finally{ea=!1,ta=t,el=null,Pe&&(od=[])}}function H0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&js(o)&&(Za(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Ep(o):o.fn=null))}}function Ql(t){ea||(ea=!0,queueMicrotask(Ap));for(var e=el=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}id.push(e)}function F0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,r=n&&(o&1024)!==0;if(!r&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:js(i)&&Za(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function tl(t){var e;for(t&&(ea=!0,Ap(),ea=!0,e=t());;){if(Sg(),id.length===0)return ea=!1,el=null,Pe&&(od=[]),e;ea=!0,Ap()}}async function So(){await Promise.resolve(),tl()}function s(t){var e=t.f,i=(e&2)!==0;if(Uc!==null&&Uc.add(t),Pt!==null&&!Yn){if(!(No!=null&&No[1].includes(t))||No[0]!==Pt){var o=Pt.deps;t.rv<Fc&&(t.rv=Fc,fn===null&&o!==null&&o[jn]===t?jn++:fn===null?fn=[t]:(!ds||!fn.includes(t))&&fn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&(r.f&256)===0&&(n.f^=256)}if(i&&(n=t,js(n)&&$p(n)),Pe&&Yr&&!Yn&&Fl!==null&&Pt!==null&&Fl.reaction===Pt)if(t.trace)t.trace();else{var l=as("TracedAt");if(l){var d=Fl.entries.get(t);d===void 0&&(d={traces:[]},Fl.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return ls&&Ya.has(t)?Ya.get(t):t.v}function It(t){var e=Yn;try{return Yn=!0,t()}finally{Yn=e}}var U0=-7169;function cn(t,e){t.f=t.f&U0|e}function Wc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Lo in t)zc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Lo in i&&zc(i)}}}function zc(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{zc(t[o],e)}catch(n){}let i=Ks(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Cc(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}function Mp(t,e){if(e){let i=document.body;t.autofocus=!0,pn(()=>{document.activeElement===i&&t.focus()})}}function nd(t){var e=Pt,i=bt;Fi(null),lo(null);try{return t()}finally{Fi(e),lo(i)}}var Lp=new Set,qc=new Set;function ia(t){if(!Ze)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 Vp(t,e,i,o={}){function n(r){if(o.capture||il.call(e,r),!r.cancelBubble)return nd(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?pn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Ct(t,e,i,o,n){var r={capture:o,passive:n},l=Vp(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Vo(()=>{e.removeEventListener(t,l,r)})}function dt(t){for(var e=0;e<t.length;e++)Lp.add(t[e]);for(var i of qc)i(t)}function il(t){var k;var e=this,i=e.ownerDocument,o=t.type,n=((k=t.composedPath)==null?void 0:k.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;a<=p&&(l=a)}if(r=n[l]||t.target,r!==e){ao(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=Pt,v=bt;Fi(null),lo(null);try{for(var u,b=[];r!==null;){var w=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!=null&&(!r.disabled||t.target===r))if(Wn(y)){var[C,...T]=y;C.apply(r,[t,...T])}else y.call(r,t)}catch(P){u?b.push(P):u=P}if(t.cancelBubble||w===e||w===null)break;r=w}if(u){for(let P of b)queueMicrotask(()=>{throw P});throw u}}finally{t.__root=e,delete t.currentTarget,Fi(f),lo(v)}}}var W0;function Ag(){W0=void 0}function ol(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Co(t,e){var i=bt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(Ze)return Co($t,null),$t;n===void 0&&(n=ol(r?t:"<!>"+t),i||(n=vi(n)));var l=o||Gl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=vi(l),a=l.lastChild;Co(d,a)}else Co(l,l);return l}}function Q0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Ze)return Co($t,null),$t;if(!l){var d=ol(r),a=vi(d);if(n)for(l=document.createDocumentFragment();vi(a);)l.appendChild(vi(a));else l=vi(a)}var p=l.cloneNode(!0);if(n){var f=vi(p),v=p.lastChild;Co(f,v)}else Co(p,p);return p}}function Ce(t,e){return Q0(t,e,"svg")}function Xr(t=""){if(!Ze){var e=un(t+"");return Co(e,e),e}var i=$t;return i.nodeType!==Ua&&(i.before(i=un()),pi(i)),Co(i,i),i}function Fe(){if(Ze)return Co($t,null),$t;var t=document.createDocumentFragment(),e=document.createComment(""),i=un();return t.append(e,i),Co(e,i),t}function $(t,e){if(Ze){bt.nodes_end=$t,zi();return}t!==null&&t.before(e)}var G0=/\r/g;function Lg(t){t=t.replace(G0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Vg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var Y0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Rg(t){return Y0.includes(t)}var j0=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var 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 Ng(t){var e;return t=t.toLowerCase(),(e=Z0[t])!=null?e:t}var I6=[...j0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var X0=["touchstart","touchmove"];function Bg(t){return X0.includes(t)}var J0=["$state","$state.raw","$derived","$derived.by"],k6=[...J0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var e_=["textarea","script","style","title"];function Og(t){return e_.includes(t)}function Kc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var rd=!0;function Qc(t){rd=t}function _e(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function ps(t,e){return Dg(t,e)}function Np(t,e){var l;Rc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Ze,n=$t;try{for(var r=vi(i);r&&(r.nodeType!==qn||r.data!==Ss);)r=Bo(r);if(!r)throw Qr;co(!0),pi(r),zi();let d=Dg(t,{...e,anchor:r});if($t===null||$t.nodeType!==qn||$t.data!==qs)throw Is(),Qr;return co(!1),d}catch(d){if(d===Qr)return e.recover===!1&&Jv(),Rc(),Yl(i),co(!1),ps(t,e);throw d}finally{co(o),pi(n),Ag()}}var nl=new Map;function Dg(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){Rc();var d=new Set,a=v=>{for(var u=0;u<v.length;u++){var b=v[u];if(!d.has(b)){d.add(b);var w=Bg(b);e.addEventListener(b,il,{passive:w});var y=nl.get(b);y===void 0?(document.addEventListener(b,il,{passive:w}),nl.set(b,1)):nl.set(b,y+1)}}};a(Hl(Lp)),qc.add(a);var p=void 0,f=$g(()=>{var v=i!=null?i:e.appendChild(un());return Li(()=>{if(r){D({});var u=Bt;u.c=r}n&&(o.$$events=n),Ze&&Co(v,null),rd=l,p=t(v,o)||{},rd=!0,Ze&&(bt.nodes_end=$t),r&&H()}),()=>{var w;for(var u of d){e.removeEventListener(u,il);var b=nl.get(u);--b===0?(document.removeEventListener(u,il),nl.delete(u)):nl.set(u,b)}qc.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return Rp.set(p,f),p}var Rp=new WeakMap;function oa(t,e){let i=Rp.get(t);return i?(Rp.delete(t),i(e)):(Pe&&fg(),Promise.resolve())}function be(t,e,...i){var o=t,n=ne,r;Wi(()=>{n!==(n=e())&&(r&&(Ui(r),r=null),Pe&&n==null&&eg(),r=Li(()=>n(o,...i)))},65536),Ze&&(o=$t)}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;og(e)},set:o=>{i=o}})}};n_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var n_;function Dt(t){Bt===null&&qa("onMount"),Gr&&Bt.l!==null?o_(Bt).m.push(t):ze(()=>{let e=It(t);if(typeof e=="function")return e})}function Cn(t){Bt===null&&qa("onDestroy"),Dt(()=>()=>It(t))}function o_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Hg=new Map;function Fg(t,e){var i=Hg.get(t);i||(i=new Set,Hg.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Ze&&i===0&&zi();var n=t,r=null,l=null,d=Xi,a=i>0?65536:0,p=!1;let f=(u,b=!0)=>{p=!0,v(b,u)},v=(u,b)=>{if(d===(d=u))return;let w=!1;if(Ze&&o!==-1){if(i===0){let C=Vc(n);C===Ss?o=0:C===Cs?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Zs(),pi(n),co(!1),w=!0,o=-1)}d?(r?us(r):b&&(r=Li(()=>b(n))),l&&Sn(l,()=>{l=null})):(l?us(l):b&&(l=Li(()=>b(n,[i+1,o]))),r&&Sn(r,()=>{r=null})),w&&co(!0)};Wi(()=>{p=!1,e(f),p||v(null,null)},a),Ze&&(n=$t)}function na(t,e,i){Ze&&zi();var o=t,n=Xi,r,l=jr()?Qv:za;Wi(()=>{l(n,n=e())&&(r&&Sn(r),r=Li(()=>i(o)))}),Ze&&(o=$t)}var Ps=null;function Dp(t){Ps=t}function sd(t,e){return e}function a_(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)Dc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Yl(a),a.append(i),o.clear(),ks(t,e[0].prev,e[r-1].next)}Ip(n,()=>{for(var p=0;p<r;p++){var f=e[p];d||(o.delete(f.k),ks(t,f.prev,f.next)),Ui(f.e,!d)}})}function wi(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var p=t;l=Ze?pi(vi(p)):p.appendChild(un())}Ze&&zi();var f=null,v=!1,u=Ir(()=>{var b=i();return Wn(b)?b:b==null?[]:Hl(b)});Wi(()=>{var b=s(u),w=b.length;if(v&&w===0)return;v=w===0;let y=!1;if(Ze){var C=Vc(l)===Cs;C!==(w===0)&&(l=Zs(),pi(l),co(!1),y=!0)}if(Ze){for(var T=null,k,P=0;P<w;P++){if($t.nodeType===qn&&$t.data===qs){l=$t,y=!0,co(!1);break}var I=b[P],E=o(I,P);k=Wg($t,d,T,null,I,E,P,n,e,i),d.items.set(E,k),T=k}w>0&&pi(Zs())}Ze||l_(b,d,l,n,e,o,i),r!==null&&(w===0?f?us(f):f=Li(()=>r(l)):f!==null&&Sn(f,()=>{f=null})),y&&co(!0),s(u)}),Ze&&(l=$t)}function l_(t,e,i,o,n,r,l){var ae,Ae,Re,me;var d=(n&8)!==0,a=(n&3)!==0,p=t.length,f=e.items,v=e.first,u=v,b,w=null,y,C=[],T=[],k,P,I,E;if(d)for(E=0;E<p;E+=1)k=t[E],P=r(k,E),I=f.get(P),I!==void 0&&((ae=I.a)==null||ae.measure(),(y!=null?y:y=new Set).add(I));for(E=0;E<p;E+=1){if(k=t[E],P=r(k,E),I=f.get(P),I===void 0){var L=u?u.e.nodes_start:i;w=Wg(L,e,w,w===null?e.first:w.next,k,P,E,o,n,l),f.set(P,w),C=[],T=[],u=w.next;continue}if(a&&d_(I,k,E,n),(I.e.f&8192)!==0&&(us(I.e),d&&((Ae=I.a)==null||Ae.unfix(),(y!=null?y:y=new Set).delete(I))),I!==u){if(b!==void 0&&b.has(I)){if(C.length<T.length){var q=T[0],z;w=q.prev;var U=C[0],G=C[C.length-1];for(z=0;z<C.length;z+=1)Ug(C[z],q,i);for(z=0;z<T.length;z+=1)b.delete(T[z]);ks(e,U.prev,G.next),ks(e,w,U),ks(e,G,q),u=q,w=G,E-=1,C=[],T=[]}else b.delete(I),Ug(I,u,i),ks(e,I.prev,I.next),ks(e,I,w===null?e.first:w.next),ks(e,w,I),w=I;continue}for(C=[],T=[];u!==null&&u.k!==P;)(u.e.f&8192)===0&&(b!=null?b:b=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;I=u}C.push(I),w=I,u=I.next}if(u!==null||b!==void 0){for(var re=b===void 0?[]:Hl(b);u!==null;)(u.e.f&8192)===0&&re.push(u),u=u.next;var Y=re.length;if(Y>0){var ce=(n&4)!==0&&p===0?i:null;if(d){for(E=0;E<Y;E+=1)(Re=re[E].a)==null||Re.measure();for(E=0;E<Y;E+=1)(me=re[E].a)==null||me.fix()}a_(e,re,ce,f)}}d&&pn(()=>{var ue;if(y!==void 0)for(I of y)(ue=I.a)==null||ue.apply()}),bt.first=e.first&&e.first.e,bt.last=w&&w.e}function d_(t,e,i,o){(o&1)!==0&&ja(t.v,e),(o&2)!==0?ja(t.i,i):t.i=i}function Wg(t,e,i,o,n,r,l,d,a,p){var f=Ps,v=(a&1)!==0,u=(a&16)===0,b=v?u?Zr(n,!1,!1):ur(n):n,w=(a&2)===0?l:ur(l);Pe&&v&&(b.trace=()=>{var C=typeof w=="number"?l:w.v;p()[C]});var y={i:w,v:b,k:r,a:null,e:null,prev:i,next:o};Ps=y;try{return y.e=Li(()=>d(t,b,w,p),Ze),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Ps=f}}function Ug(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Bo(r);n.before(r),r=l}}function ks(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 c_(t,e,i){var r,l;if(!e||e===Lg(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Kn)!=null&&l[$n]&&(o=`in ${Kn[$n]}`),pg(Kc(o))}function ad(t,e,i=!1,o=!1,n=!1){var r=t,l="";O(()=>{var b;var d=bt;if(l===(l=(b=e())!=null?b:"")){Ze&&zi();return}if(d.nodes_start!==null&&(Tp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Ze){for(var a=$t.data,p=zi(),f=p;p!==null&&(p.nodeType!==qn||p.data!=="");)f=p,p=Bo(p);if(p===null)throw Is(),Qr;Pe&&!n&&c_(p.parentNode,a,l),Co($t,f),r=pi(p);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var u=ol(v);if((i||o)&&(u=vi(u)),Co(vi(u),u.lastChild),i||o)for(;vi(u);)r.before(vi(u));else r.before(u)}})}function Si(t,e,i){Ze&&zi();var o=t,n,r;Wi(()=>{n!==(n=e())&&(r&&(Sn(r),r=null),n&&(r=Li(()=>i(o,n))))},65536),Ze&&(o=$t)}function ra(t,e,i,o,n,r){var w;let l=Ze;Ze&&zi();var d=Pe&&r&&((w=Bt)==null?void 0:w.function[$n]),a,p,f=null;Ze&&$t.nodeType===Ec&&(f=$t,zi());var v=Ze?$t:t,u,b=Ps;Wi(()=>{let y=e()||null;var C=n?n():i||y==="svg"?wc:null;if(y!==a){var T=Ps;Dp(b),u&&(y===null?Sn(u,()=>{u=null,p=null}):y===p?us(u):(Ui(u),Qc(!1))),y&&y!==p&&(u=Li(()=>{if(f=Ze?f:C?document.createElementNS(C,y):document.createElement(y),Pe&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),Co(f,f),o){Ze&&Og(y)&&f.append(document.createComment(""));var k=Ze?vi(f):f.appendChild(un());Ze&&(k===null?co(!1):pi(k)),o(f,k)}bt.nodes_end=f,v.before(f)})),a=y,a&&(p=a),Qc(!0),Dp(T)}},65536),l&&(co(!0),pi(v))}var Fp;function qg(t){return Fp=t.target,new Hp(t)}var fs,pr,Hp=class{constructor(e){ws(this,fs);ws(this,pr);var r,l;var i=new Map,o=(d,a)=>{var p=Zr(a,!1,!1);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var p;return s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a)))},has(d,a){var p;return a===Fa?!0:(s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,p){var f;return B((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});Ha(this,pr,(e.hydrate?Np:ps)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&tl(),Ha(this,fs,n.$$events);for(let d of Object.keys(Mi(this,pr)))d==="$set"||d==="$destroy"||d==="$on"||ao(this,d,{get(){return Mi(this,pr)[d]},set(a){Mi(this,pr)[d]=a},enumerable:!0});Mi(this,pr).$set=d=>{Object.assign(n,d)},Mi(this,pr).$destroy=()=>{oa(Mi(this,pr))}}$set(e){Mi(this,pr).$set(e)}$on(e,i){Mi(this,fs)[e]=Mi(this,fs)[e]||[];let o=(...n)=>i.call(this,...n);return Mi(this,fs)[e].push(o),()=>{Mi(this,fs)[e]=Mi(this,fs)[e].filter(n=>n!==o)}}$destroy(){Mi(this,pr).$destroy()}};fs=new WeakMap,pr=new WeakMap;function W(t,e){pn(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=Fp)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Pe&&Fg(e.hash,d)}})}function Up(t,e){var i=void 0,o;Wi(()=>{i!==(i=e())&&(o&&(Ui(o),o=null),i&&(o=Li(()=>{wo(()=>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 n=t.length;for(e=0;e<n;e++)t[e]&&(i=Kg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Qg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Kg(t))&&(o&&(o+=" "),o+=e);return o}function ld(t){return typeof t=="object"?Qg(t):t!=null?t:""}var Gg=[...`
|
|
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 n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var r=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+r;(l===0||Gg.includes(o[l-1]))&&(d===o.length||Gg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Yg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var r=t[n];r!=null&&r!==""&&(o+=" "+n+": "+r+i)}return o}function zp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Zg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var r=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(zp)),n&&a.push(...Object.keys(n).map(zp));var p=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var u=t[v];if(d?u==="/"&&t[v-1]==="*"&&(d=!1):r?r===u&&(r=!1):u==="/"&&t[v+1]==="*"?d=!0:u==='"'||u==="'"?r=u:u==="("?l++:u===")"&&l--,!d&&r===!1&&l===0){if(u===":"&&f===-1)f=v;else if(u===";"||v===y-1){if(f!==-1){var b=zp(t.substring(p,f).trim());if(!a.includes(b)){u!==";"&&v++;var w=t.substring(p,v).trim();i+=" "+w+";"}}p=v+1,f=-1}}}}return o&&(i+=Yg(o)),n&&(i+=Yg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,r){var l=t.__className;if(Ze||l!==i||l===void 0){var d=jg(i,o,r);(!Ze||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(r&&n!==r)for(var a in r){var p=!!r[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return r}function Wp(t,e={},i,o){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,o))}}function at(t,e,i,o){var n=t.__style;if(Ze||n!==e){var r=Zg(e,o);(!Ze||r!==t.getAttribute("style"))&&(r==null?t.removeAttribute("style"):t.style.cssText=r),t.__style=e}else o&&(Array.isArray(o)?(Wp(t,i==null?void 0:i[0],o[0]),Wp(t,i==null?void 0:i[1],o[1],"important")):Wp(t,i,o));return o}function dd(t,e,i){if(t.multiple){if(e==null)return;if(!Wn(e))return mg();for(var o of t.options)o.selected=e.includes(Xg(o));return}for(o of t.options){var n=Xg(o);if(vp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function qp(t){var e=new MutationObserver(()=>{dd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Vo(()=>{e.disconnect()})}function Xg(t){return"__value"in t?t.__value:t.value}var rl=Symbol("class"),sl=Symbol("style"),th=Symbol("is custom element"),ih=Symbol("is html");function oh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Oe(t,e,i,o){var n=rh(t);if(Ze&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||__(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Kv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&sh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function nh(t,e,i,o,n=!1){var I;var r=rh(t),l=r[th],d=!r[ih];let a=Ze&&l;a&&co(!1);var p=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=ld(i.class):(o||i[rl])&&(i.class=null),i[sl]&&((I=i.style)!=null||(i.style=null));var u=sh(t);for(let E in i){let L=i[E];if(f&&E==="value"&&L==null){t.value=t.__value="",p[E]=L;continue}if(E==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,b,L,o,e==null?void 0:e[rl],i[rl]),p[E]=L,p[rl]=i[rl];continue}if(E==="style"){at(t,L,e==null?void 0:e[sl],i[sl]),p[E]=L,p[sl]=i[sl];continue}var w=p[E];if(!(L===w&&!(L===void 0&&t.hasAttribute(E)))){p[E]=L;var y=E[0]+E[1];if(y!=="$$")if(y==="on"){let q={},z="$$"+E,U=E.slice(2);var C=Rg(U);if(Vg(U)&&(U=U.slice(0,-7),q.capture=!0),!C&&w){if(L!=null)continue;t.removeEventListener(U,p[z],q),p[z]=null}if(L!=null)if(C)t[`__${U}`]=L,dt([U]);else{let G=function(re){p[E].call(this,re)};var P=G;p[z]=Vp(U,t,G,q)}else C&&(t[`__${U}`]=void 0)}else if(E==="style")Oe(t,E,L);else if(E==="autofocus")Mp(t,!!L);else if(!l&&(E==="__value"||E==="value"&&L!=null))t.value=t.__value=L;else if(E==="selected"&&f)oh(t,L);else{var T=E;d||(T=Ng(T));var k=T==="defaultValue"||T==="defaultChecked";if(L==null&&!l&&!k)if(r[E]=null,T==="value"||T==="checked"){let q=t,z=e===void 0;if(T==="value"){let U=q.defaultValue;q.removeAttribute(T),q.defaultValue=U,q.value=q.__value=z?U:null}else{let U=q.defaultChecked;q.removeAttribute(T),q.defaultChecked=U,q.checked=z?U:!1}}else t.removeAttribute(E);else k||u.includes(T)&&(l||typeof L!="string")?t[T]=L:typeof L!="function"&&Oe(t,T,L,n)}}}return a&&co(!0),p}function ke(t,e,i=[],o,n=!1,r=Er){let l=i.map(r);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(Wi(()=>{var u=e(...l.map(s)),b=nh(t,d,u,o,n);f&&p&&"value"in u&&dd(t,u.value,!1);for(let y of Object.getOwnPropertySymbols(a))u[y]||Ui(a[y]);for(let y of Object.getOwnPropertySymbols(u)){var w=u[y];y.description===ap&&(!d||w!==d[y])&&(a[y]&&Ui(a[y]),a[y]=Li(()=>Up(t,()=>w))),b[y]=w}d=b}),p){var v=t;wo(()=>{dd(v,d.value),qp(v)})}f=!0}function rh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[th]:t.nodeName.includes("-"),[ih]:t.namespaceURI===Dv}}var Jg=new Map;function sh(t){var e=Jg.get(t.nodeName);if(e)return e;Jg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Cc(o);for(var r in i)i[r].set&&e.push(r);o=Ks(o)}return e}function __(t,e,i){var o;Pe&&(e==="srcset"&&b_(t,i)||Kp((o=t.getAttribute(e))!=null?o:"",i)||ug(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Kp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function eh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function b_(t,e){var i=eh(t.srcset),o=eh(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(Kp(i[l][0],n)||Kp(n,i[l][0])))}var $_=Sc?()=>performance.now():()=>Date.now(),Ar={tick:t=>(Sc?requestAnimationFrame:ne)(t),now:()=>$_(),tasks:new Set};function ah(){let t=Ar.now();Ar.tasks.forEach(e=>{e.c(t)||(Ar.tasks.delete(e),e.f())}),Ar.tasks.size!==0&&Ar.tick(ah)}function lh(t){let e;return Ar.tasks.size===0&&Ar.tick(ah),{promise:new Promise(i=>{Ar.tasks.add(e={c:t,f:i})}),abort(){Ar.tasks.delete(e)}}}function Gc(t,e){nd(()=>{t.dispatchEvent(new CustomEvent(e))})}function S_(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 dh(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=S_(n.trim());e[l]=r.trim()}return e}var C_=t=>t;function Gp(t,e,i,o){var P;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",p,f=e.inert,v=e.style.overflow,u,b;function w(){var L;var I=Pt,E=bt;Fi(null),lo(null);try{return p!=null?p:p=i()(e,(L=o==null?void 0:o())!=null?L:{},{direction:a})}finally{Fi(I),lo(E)}}var y={is_global:d,in(){var I;if(e.inert=f,!n){b==null||b.abort(),(I=b==null?void 0:b.reset)==null||I.call(b);return}r||u==null||u.abort(),Gc(e,"introstart"),u=Qp(e,w(),b,1,()=>{Gc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=v})},out(I){if(!r){I==null||I(),p=void 0;return}e.inert=!0,Gc(e,"outrostart"),b=Qp(e,w(),u,0,()=>{Gc(e,"outroend"),I==null||I()})},stop:()=>{u==null||u.abort(),b==null||b.abort()}},C=bt;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&rd){var T=d;if(!T){for(var k=C.parent;k&&(k.f&65536)!==0;)for(;(k=k.parent)&&(k.f&16)===0;);T=!k||(k.f&32768)!==0}T&&wo(()=>{It(()=>y.in())})}}function Qp(t,e,i,o,n){var r=o===1;if(Ts(e)){var l,d=!1;return pn(()=>{if(!d){var C=e({direction:r?"in":"out"});l=Qp(t,C,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ne,deactivate:ne,reset:ne,t:()=>o};let{delay:a=0,css:p,tick:f,easing:v=C_}=e;var u=[];if(r&&i===void 0&&(f&&f(0,1),p)){var b=dh(p(0,1));u.push(b,b)}var w=()=>1-o,y=t.animate(u,{duration:a,fill:"forwards"});return y.onfinish=()=>{var U;y.cancel();var C=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var T=o-C,k=e.duration*Math.abs(T),P=[];if(k>0){var I=!1;if(p)for(var E=Math.ceil(k/16.666666666666668),L=0;L<=E;L+=1){var q=C+T*v(L/E),z=dh(p(q,1-q));P.push(z),I||(I=z.overflow==="hidden")}I&&(t.style.overflow="hidden"),w=()=>{var G=y.currentTime;return C+T*v(G/k)},f&&lh(()=>{if(y.playState!=="running")return!1;var G=w();return f(G,1-G),!0})}y=t.animate(P,{duration:k,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ne)},deactivate:()=>{n=ne},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var As,al,cd,jc,ch,Zc=class Zc{constructor(e){ws(this,jc);ws(this,As,new WeakMap);ws(this,al);ws(this,cd);Ha(this,cd,e)}observe(e,i){var o=Mi(this,As).get(e)||new Set;return o.add(i),Mi(this,As).set(e,o),Bv(this,jc,ch).call(this).observe(e,Mi(this,cd)),()=>{var n=Mi(this,As).get(e);n.delete(i),n.size===0&&(Mi(this,As).delete(e),Mi(this,al).unobserve(e))}}};As=new WeakMap,al=new WeakMap,cd=new WeakMap,jc=new WeakSet,ch=function(){var e;return(e=Mi(this,al))!=null?e:Ha(this,al,new ResizeObserver(i=>{for(var o of i){Zc.entries.set(o.target,o);for(var n of Mi(this,As).get(o.target)||[])n(o)}}))},zn(Zc,"entries",new WeakMap);var Yp=Zc;var T_=new Yp({box:"border-box"});function Jr(t,e,i){var o=T_.observe(t,()=>i(t[e]));wo(()=>(It(()=>i(t[e])),o))}function uh(t,e){return t===e||(t==null?void 0:t[Lo])===e}function tt(t={},e,i,o){return wo(()=>{var n,r;return Oo(()=>{n=r,r=(o==null?void 0:o())||[],It(()=>{t!==i(...r)&&(e(t,...r),n&&uh(i(...n),t)&&e(null,...n))})}),()=>{pn(()=>{r&&uh(i(...r),t)&&e(null,...r)})}}),t}function Mr(t=!1){let e=Bt,i=e.l.u;if(!i)return;let o=()=>Wc(e.s);if(t){let n=0,r={},l=Er(()=>{let d=!1,a=e.s;for(let p in a)a[p]!==r[p]&&(r[p]=a[p],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Xl(()=>{ph(e,o),Es(i.b)}),ze(()=>{let n=It(()=>i.m.map(qv));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&ze(()=>{ph(e,o),Es(i.a)})}function ph(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function ud(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ne;let o=It(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var ll=[];function fr(t,e){return{subscribe:se(t,e).subscribe}}function se(t,e=ne){let i=null,o=new Set;function n(d){if(za(t,d)&&(t=d,i)){let a=!ll.length;for(let p of o)p[1](),ll.push(p,t);if(a){for(let p=0;p<ll.length;p+=2)ll[p][0](ll[p+1]);ll.length=0}}}function r(d){n(d(t))}function l(d,a=ne){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,r)||ne),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function gi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return fr(i,(l,d)=>{let a=!1,p=[],f=0,v=ne,u=()=>{if(f)return;v();let w=e(o?p[0]:p,l,d);r?l(w):v=typeof w=="function"?w:ne},b=n.map((w,y)=>ud(w,C=>{p[y]=C,f&=~(1<<y),a&&u()},()=>{f|=1<<y}));return a=!0,u(),function(){Es(b),v(),a=!1}})}function ye(t){let e;return ud(t,i=>e=i)(),e}var Xc=!1,jp=Symbol();function S(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Zr(void 0),unsubscribe:ne};if(o.store!==t&&!(jp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ne;else{var n=!0;o.unsubscribe=ud(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&jp in i?ye(t):s(o.source)}function Be(){let t={};function e(){Vo(()=>{for(var i in t)t[i].unsubscribe();ao(t,jp,{enumerable:!1,value:!0})})}return[t,e]}function Zp(t){var e=Xc;try{return Xc=!1,[t(),Xc]}finally{Xc=e}}var L_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&ig(`${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 Me(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},L_)}var V_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ts(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Ts(n)&&(n=n());let r=Xo(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ts(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Xo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Lo||e===Fa)return!1;for(let i of t.props)if(Ts(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ts(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 ms(...t){return new Proxy({props:t},V_)}function fh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var q,z;var n=(i&1)!==0,r=!Gr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=Zp(()=>t[e]):p=t[e];var f=Lo in t||Fa in t,v=l&&((z=(q=Xo(t,e))==null?void 0:q.set)!=null?z:f&&e in t&&(U=>t[e]=U))||void 0,u=o,b=!0,w=!1,y=()=>(w=!0,b&&(b=!1,d?u=It(o):u=o),u);p===void 0&&o!==void 0&&(v&&r&&tg(e),p=y(),v&&v(p));var C;if(r)C=()=>{var U=t[e];return U===void 0?y():(b=!0,w=!1,U)};else{var T=(n?Er:Ir)(()=>t[e]);T.f|=131072,C=()=>{var U=s(T);return U!==void 0&&(u=void 0),U===void 0?u:U}}if((i&4)===0&&r)return C;if(v){var k=t.$$legacy;return function(U,G){return arguments.length>0?((!r||!G||k||a)&&v(G?C():U),U):C()}}var P=!1,I=!1,E=Zr(p),L=Er(()=>{var U=C(),G=s(E);return P?(P=!1,I=!0,G):(I=!1,E.v=U)});return l&&s(L),n||(L.equals=Wa),function(U,G){if(Uc!==null&&(P=I,C(),s(E)),arguments.length>0){let re=G?s(L):r&&l?ii(U):U;if(!L.equals(re)){if(P=!0,B(E,re),w&&u!==void 0&&(u=re),fh(L))return U;It(()=>s(L))}return U}return fh(L)?L.v:s(L)}}var R_;typeof HTMLElement=="function"&&(R_=class extends HTMLElement{constructor(e,i,o){super();zn(this,"$$ctor");zn(this,"$$s");zn(this,"$$c");zn(this,"$$cn",!1);zn(this,"$$d",{});zn(this,"$$r",!1);zn(this,"$$p_d",{});zn(this,"$$l",{});zn(this,"$$l_u",new Map);zn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),$(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=N_(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Xp(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=qg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Oc(()=>{Oo(()=>{var r;this.$$r=!0;for(let l of lp(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Xp(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Xp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return lp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Xp(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function N_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var mh="5";var vh,gh,hh;typeof window!="undefined"&&((hh=(gh=(vh=window.__svelte)!=null?vh:window.__svelte={}).v)!=null?hh:gh.v=new Set).add(mh);var Tl=require("@vkontakte/videoplayer-core/es2018"),ZG=require("@vkontakte/videoplayer-core/es2018"),Ra=require("@vkontakte/videoplayer-shared/es2018"),p0=require("@vkontakte/videoplayer-statistics/es2018");var sa=require("@vkontakte/videoplayer-shared/es2018");var B_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:sa.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:sa.VideoQuality.Q_480P,highQualityLimit:sa.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null}},_h=t=>(0,sa.fillWithDefault)(t,B_),bh=t=>Qa("ui-config",t),zt=()=>Ka("ui-config");var pd="vk_player_debug_panel_opened";var $h="videoplayer",yh="videoplayer";var es={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},xh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),wh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Sh=new Set(["ShiftRight","ShiftLeft"]);var Ch=["TIMELINE"],fd=[...Ch,"GRAPH_BUTTON"],Jp=[...Ch,"PLAY_BUTTON"],md=[...fd,"PLAY_BUTTON"];var Lr=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Lr||{}),la={xs:0,s:1,m:2,l:3,xl:4};var vd=require("@vkontakte/videoplayer-shared/es2018"),Th=require("@vkontakte/videoplayer-core/es2018"),Eh=require("@vkontakte/videoplayer-statistics/es2018");var Jc="prod",da="1.1.68-dev.7fa93348.0";var ca=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Ih=Symbol("storeContext"),kh=Symbol("microStoresContext"),Ph=(t,e)=>{Qa(Ih,t),Qa(kh,e),Jc==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=Ka(Ih);return(0,vd.assertNonNullable)(t,"Store context is empty!"),t},go=()=>{let t=Ka(kh);return(0,vd.assertNonNullable)(t,"MicroStores context is empty!"),t},Jt=(t,e)=>tu(t,t.getValue(),e),tu=(t,e,i)=>fr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),Ah=(t,e,i,o)=>{var L,q,z,U,G,re,Y,ce;let n=t.info,{width:r,height:l}=ye(i.ui.playerSize),d=(q=(L=n.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?q:0,a=(U=(z=n.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?U:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${da} (core: ${Th.VERSION}, stat: ${Eh.VERSION}, shared: ${vd.VERSION})`,v=ye(i.state.errorLog$),u=v.length?`
|
|
45
|
+
`+v.map((ae,Ae)=>{var Ve;let Re=`${Ae}) Type: ${ae.id}
|
|
46
46
|
`,me=`Message: ${ae.message} (${ae.thrown})
|
|
47
|
-
`,ue=`Trace: ${(
|
|
48
|
-
`;return
|
|
49
|
-
`):void 0
|
|
50
|
-
`)},Ah=(t,e,i)=>{var q,z,U,G;let o=t.info,{width:n,height:r}=$e(i.ui.playerSize),l={version:ca,viewport:`${n}x${r}`,volume:Math.round($e(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(v&&p?l.buffer=f.end-p:l.buffer=Math.max(f.end-$e(i.state.positionExact$),0)),l.position=$e(i.state.positionExact$);let $=o.throughputEstimation$.getValue();$&&(l.speed=$);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let k=$e(i.vsid);typeof k=="string"&&(l.vsid=k);let P=(q=t.info.currentVideoStream$.getValue())==null?void 0:q.codec;P&&(l.videoCodec=P);let I=(z=t.info.currentAudioStream$.getValue())==null?void 0:z.codec;I&&(l.audioCodec=I),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(l.hdr=!0);let L=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.language;return L&&(l.audioLanguage=L),l},Mh=(t,e)=>ua(t,e,"mp4"),Lh=t=>!t.type,Vh=t=>!!t.type,Rh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},eu=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 Pi=require("@vkontakte/videoplayer-shared/es2018"),GP=require("@vkontakte/videoplayer-core/es2018"),Nh="vk_player_prefer_traffic_saving_enabled",Bh="vk_player_preferred_volume",Oh="vk_player_prefer_volume_mute",tf="vk_player_preferred_quality",Jp="vk_player_preferred_default_quality_settings",ef="vk_player_preferred_quality_settings_by_video",Dh="vk_player_preferred_stream_language",Hh="vk_player_preferred_rate",Fh="vk_player_preferred_autoplay_next",Uh=t=>t>1?1:t<0?0:t,of=t=>Pi.safeStorage.set(Bh,Uh(t).toString(10)),iu=()=>{let t=Pi.safeStorage.get(Bh);return(0,Pi.isNullable)(t)?void 0:Uh(parseFloat(t))},nf=(t,e)=>Pi.safeStorage.set(tf,JSON.stringify({videoId:t,value:e})),hd=()=>Pi.safeStorage.remove(tf),rf=t=>{let e=Pi.safeStorage.get(tf);if((0,Pi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){hd();return}return o},sf=(t,e)=>{e?Pi.safeStorage.set(t,"true"):Pi.safeStorage.remove(t)},af=t=>Pi.safeStorage.get(t)==="true",lf=t=>sf(Oh,t),zh=()=>af(Oh),gd=t=>sf(Nh,t),df=()=>af(Nh),Wh=()=>Pi.safeStorage.get(Dh),cf=t=>Pi.safeStorage.set(Dh,t),qh=t=>Pi.safeStorage.set(Hh,JSON.stringify({rate:t})),Kh=()=>{let t=Pi.safeStorage.get(Hh);if((0,Pi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Qh=t=>sf(Fh,t),Gh=()=>af(Fh),O_=()=>{let t=f=>{Pi.safeStorage.set(Jp,JSON.stringify(f))},e=()=>{try{let f=Pi.safeStorage.get(Jp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Pi.safeStorage.get(ef);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Pi.safeStorage.set(ef,JSON.stringify(f))},n=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return{...v,appliesTo:"to-video"};v&&r();let p=e();return p?{...p,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},r=()=>{Pi.safeStorage.remove(ef)},l=()=>{Pi.safeStorage.remove(Jp)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":gd(!0);break;case"exact_quality":nf(f,v.quality)}r(),l()}},u=f=>{let v=rf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}df()&&t({type:"traffic_saving",videoId:f}),gd(!1),hd()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Yh,migrateSettingsToLegacyWay:jh,savePreferredQualitySettings:ou,savePreferredDefaultQualitySettings:YP,removePreferredQualitySettingsByVideo:jP,getPreferredDefaultQualitySettings:nu}=O_();var hv=require("@vkontakte/videoplayer-core/es2018");var D_=Ce('<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 _d(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=D_();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(2),g(o),b(t,o)}var ll=require("@vkontakte/videoplayer-shared/es2018");var H_={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",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",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,
|
|
47
|
+
`,ue=`Trace: ${(Ve=ae.thrown)==null?void 0:Ve.stack}
|
|
48
|
+
`;return Re+me+ue}).join(`
|
|
49
|
+
`):void 0,b=i.state.isAudioDisabled?"disabled":ye(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(G=w==null?void 0:w.codec)!=null?G:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&C.push(`Audio: ${(re=y==null?void 0:y.codec)!=null?re:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=n.currentQuality$.getValue(),k="";if(T){let ae=n.availableQualitiesFps$.getValue()[T];k=ae?`${ae}fps`:""}let P=(ce=(Y=n.currentBuffer$.getValue())==null?void 0:Y.end)!=null?ce:0,I=Math.max(P-ye(i.state.positionExact$),0),E={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:ye(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${p} ${T} ${k}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:b,Position:`${ye(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${ye(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${r}x${l}`,URL:window.location.href,Errors:u};return Object.entries(E).filter(([ae,Ae])=>Ae!==void 0).map(([ae,Ae])=>`${ae}: ${Ae}`).join(`
|
|
50
|
+
`)},Mh=(t,e,i)=>{var q,z,U,G;let o=t.info,{width:n,height:r}=ye(i.ui.playerSize),l={version:da,viewport:`${n}x${r}`,volume:Math.round(ye(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(l.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(v&&u?l.buffer=f.end-u:l.buffer=Math.max(f.end-ye(i.state.positionExact$),0)),l.position=ye(i.state.positionExact$);let b=o.throughputEstimation$.getValue();b&&(l.speed=b);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let k=ye(i.vsid);typeof k=="string"&&(l.vsid=k);let P=(q=t.info.currentVideoStream$.getValue())==null?void 0:q.codec;P&&(l.videoCodec=P);let I=(z=t.info.currentAudioStream$.getValue())==null?void 0:z.codec;I&&(l.audioCodec=I),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(l.hdr=!0);let L=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.language;return L&&(l.audioLanguage=L),l},Lh=(t,e)=>ca(t,e,"mp4"),Vh=t=>!t.type,Rh=t=>!!t.type,Nh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},eu=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 Vi=require("@vkontakte/videoplayer-shared/es2018"),GP=require("@vkontakte/videoplayer-core/es2018"),Bh="vk_player_prefer_traffic_saving_enabled",Oh="vk_player_preferred_volume",Dh="vk_player_prefer_volume_mute",of="vk_player_preferred_quality",ef="vk_player_preferred_default_quality_settings",tf="vk_player_preferred_quality_settings_by_video",Hh="vk_player_preferred_stream_language",Fh="vk_player_preferred_rate",Uh="vk_player_preferred_autoplay_next",zh=t=>t>1?1:t<0?0:t,nf=t=>Vi.safeStorage.set(Oh,zh(t).toString(10)),iu=()=>{let t=Vi.safeStorage.get(Oh);return(0,Vi.isNullable)(t)?void 0:zh(parseFloat(t))},rf=(t,e)=>Vi.safeStorage.set(of,JSON.stringify({videoId:t,value:e})),hd=()=>Vi.safeStorage.remove(of),sf=t=>{let e=Vi.safeStorage.get(of);if((0,Vi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){hd();return}return o},af=(t,e)=>{e?Vi.safeStorage.set(t,"true"):Vi.safeStorage.remove(t)},lf=t=>Vi.safeStorage.get(t)==="true",df=t=>af(Dh,t),Wh=()=>lf(Dh),gd=t=>af(Bh,t),cf=()=>lf(Bh),qh=()=>Vi.safeStorage.get(Hh),uf=t=>Vi.safeStorage.set(Hh,t),Kh=t=>Vi.safeStorage.set(Fh,JSON.stringify({rate:t})),Qh=()=>{let t=Vi.safeStorage.get(Fh);if((0,Vi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Gh=t=>af(Uh,t),Yh=()=>lf(Uh),O_=()=>{let t=f=>{Vi.safeStorage.set(ef,JSON.stringify(f))},e=()=>{try{let f=Vi.safeStorage.get(ef);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Vi.safeStorage.get(tf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Vi.safeStorage.set(tf,JSON.stringify(f))},n=f=>{p(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return{...v,appliesTo:"to-video"};v&&r();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},r=()=>{Vi.safeStorage.remove(tf)},l=()=>{Vi.safeStorage.remove(ef)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":gd(!0);break;case"exact_quality":rf(f,v.quality)}r(),l()}},p=f=>{let v=sf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}cf()&&t({type:"traffic_saving",videoId:f}),gd(!1),hd()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:jh,migrateSettingsToLegacyWay:Zh,savePreferredQualitySettings:ou,savePreferredDefaultQualitySettings:YP,removePreferredQualitySettingsByVideo:jP,getPreferredDefaultQualitySettings:nu}=O_();var _v=require("@vkontakte/videoplayer-core/es2018");var D_=Ce('<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 _d(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=D_();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}var dl=require("@vkontakte/videoplayer-shared/es2018");var H_={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",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",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`},
|
|
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`},Xh=H_;var F_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_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.`},
|
|
55
|
-
`),o,n;for(let r=0;r<i.length;++r){if(o=U_.exec(i[r]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||ru,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=W_.exec(i[r]))n={filename:o[2],function:o[1]||ru,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=z_.exec(i[r]))r===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||ru,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=ru),e.push(n)}return e.length?{value:
|
|
56
|
-
`).filter(i=>!!i)[0]}function G_(t){try{let e=Q_(t);if(e)return e}catch(e){}return{value:e1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Y_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var su=class{constructor(e){if(e&&e.dsn){let i=K_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),r=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(r?"/"+r:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[G_(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:Y_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function t1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function j_(){return window}var au=class t extends su{constructor(e,i=j_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...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=>t1(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(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>t1(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],r=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:r||d?[...r||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var pa=require("@vkontakte/videoplayer-shared/es2018");var lu=null,fa=class{constructor(e,i,o={}){!lu&&e.dsn&&(this.sentryClient=new au({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new pa.Subscription,this.options=e,this.context=o,lu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),lu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:r,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:$}=i;if((0,pa.isNonNullable)($)&&v.includes($)||(0,pa.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,pa.isNonNullable)($)&&u.includes($)||(0,pa.isNonNullable)(p)&&a.includes(p)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(r).length||Object.keys(o).length)&&n.setExtras({...r,...o});try{p&&n.captureMessage(p,i.fatal?dl.fatal:dl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return lu}};var is=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(is||{});var du=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},cu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),i1=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},bd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Vs=()=>!!bd(),uu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},pu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},o1=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var mf=require("@vkontakte/videoplayer-core/es2018"),n1=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:mf.clientChecker.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:mf.clientChecker.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});var cl=require("@vkontakte/videoplayer-shared/es2018");var ma=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,cl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new cl.ValueSubject(!1),isEnabled$:new cl.ValueSubject(!1),type:0};this.info.isEnabled$=new cl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).enterpictureinpicture)==null||r.call(n,e))}onLeavePictureInPicture(e){var n,r,l;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).leavepictureinpicture)==null||r.call(n,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function va(t){return t instanceof ma}var ul=require("@vkontakte/videoplayer-shared/es2018");sg();function hf(t,e){D(e,!1);let i=Ee();Ot(()=>{i.getAdmanWrapper().startPostroll()}),Lr(),H()}var r1=require("@vkontakte/videoplayer-shared/es2018");var Z_=(t,e)=>{t.stopPropagation(),e()()},X_=M('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),J_=M("<div><!></div>"),eb={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 _f(t,e){D(e,!0),W(t,eb);let[i,o]=Be(),n=()=>C(u,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,r1.noop),u=Ee().ui.isMobile,f=h(()=>r()>0&&r()>=l());var v=J_();let p;var $=_(v);{var w=S=>{var T=X_();T.__click=[Z_,d];var k=_(T);we(),g(T),O(P=>he(k,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),b(S,T)},y=S=>{var T=Jr();O(k=>he(T,k),[()=>F("skip_ads_after",{time:Math.ceil(l()-r()).toFixed(0)})]),b(S,T)};V($,S=>{s(f)?S(w):S(y,!1)})}g(v),O(S=>p=J(v,1,"container svelte-1k4i25s",null,p,S),[()=>({"container-mobile":n(),skippable:s(f)})]),b(t,v),H(),o()}lt(["click"]);var tb=M('<button class="svelte-1wy3dql"> </button>'),ib={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 bf(t,e){D(e,!1),W(t,ib),Lr();var i=tb(),o=_(i,!0);g(i),O(n=>he(o,n),[()=>F("visit_advertiser")],kr),b(t,i),H()}var ob=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),nb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),rb={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.`},Jh=F_;var vs=new Map;vs.set(dl.InterfaceLanguage.EN,Jh);vs.set(dl.InterfaceLanguage.RU,Xh);var e1=new Map,pf=({language:t,pack:e,fallback:i})=>{if(vs.has(t)){let o=vs.get(t);vs.set(t,{...o,...e})}else vs.set(t,e);e1.set(t,i)},ff=t=>vs.has(t),mf=(t,e,i,o)=>{var l;let n=vs.get(t),r=n==null?void 0:n[e];if((0,dl.isNullable)(r)){let d=(l=e1.get(t))!=null?l:o,a=d?vs.get(d):void 0;r=a==null?void 0:a[e]}return(0,dl.isNullable)(r)?e+Object.values(i!=null?i:{}).join(" "):i?r.replaceAll(/{(\w+?)}/g,(d,a)=>{var p;return(p=i[a])!=null?p:""}):r},F=(t,e)=>{let{interfaceLanguage$:i}=Ee(),o=ye(i),n=zt();return mf(o,t,e,n.defaultLanguage)};var vA=require("@vkontakte/videoplayer-core/es2018");var cl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(cl||(cl={}));var U_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,z_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,W_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ru="?",q_="X-Sentry-Auth",K_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Q_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
|
|
55
|
+
`),o,n;for(let r=0;r<i.length;++r){if(o=U_.exec(i[r]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||ru,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=W_.exec(i[r]))n={filename:o[2],function:o[1]||ru,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=z_.exec(i[r]))r===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||ru,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=ru),e.push(n)}return e.length?{value:t1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function t1(t){return(t&&t.message||"No error message").split(`
|
|
56
|
+
`).filter(i=>!!i)[0]}function G_(t){try{let e=Q_(t);if(e)return e}catch(e){}return{value:t1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Y_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var su=class{constructor(e){if(e&&e.dsn){let i=K_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),r=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(r?"/"+r:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[G_(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:Y_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function i1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function j_(){return window}var au=class t extends su{constructor(e,i=j_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:r=p=>p,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...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=>i1(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(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>i1(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],r=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:r||d?[...r||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var ua=require("@vkontakte/videoplayer-shared/es2018");var lu=null,pa=class{constructor(e,i,o={}){!lu&&e.dsn&&(this.sentryClient=new au({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ua.Subscription,this.options=e,this.context=o,lu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),lu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:r,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:u,category:b}=i;if((0,ua.isNonNullable)(b)&&v.includes(b)||(0,ua.isNonNullable)(u)&&f.includes(u))return;if(Math.random()<=d||(0,ua.isNonNullable)(b)&&p.includes(b)||(0,ua.isNonNullable)(u)&&a.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(r).length||Object.keys(o).length)&&n.setExtras({...r,...o});try{u&&n.captureMessage(u,i.fatal?cl.fatal:cl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return lu}};var ts=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ts||{});var du=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},cu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),o1=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},bd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ms=()=>!!bd(),uu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},pu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},n1=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var vf=require("@vkontakte/videoplayer-core/es2018"),r1=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:vf.clientChecker.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:vf.clientChecker.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});var ul=require("@vkontakte/videoplayer-shared/es2018");var fa=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,ul.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new ul.ValueSubject(!1),isEnabled$:new ul.ValueSubject(!1),type:0};this.info.isEnabled$=new ul.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).enterpictureinpicture)==null||r.call(n,e))}onLeavePictureInPicture(e){var n,r,l;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).leavepictureinpicture)==null||r.call(n,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ma(t){return t instanceof fa}var pl=require("@vkontakte/videoplayer-shared/es2018");ag();function _f(t,e){D(e,!1);let i=Ee();Dt(()=>{i.getAdmanWrapper().startPostroll()}),Mr(),H()}var s1=require("@vkontakte/videoplayer-shared/es2018");var Z_=(t,e)=>{t.stopPropagation(),e()()},X_=M('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),J_=M("<div><!></div>"),eb={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 bf(t,e){D(e,!0),W(t,eb);let[i,o]=Be(),n=()=>S(p,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,s1.noop),p=Ee().ui.isMobile,f=h(()=>r()>0&&r()>=l());var v=J_();let u;var b=_(v);{var w=C=>{var T=X_();T.__click=[Z_,d];var k=_(T);Se(),g(T),O(P=>_e(k,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),$(C,T)},y=C=>{var T=Xr();O(k=>_e(T,k),[()=>F("skip_ads_after",{time:Math.ceil(l()-r()).toFixed(0)})]),$(C,T)};V(b,C=>{s(f)?C(w):C(y,!1)})}g(v),O(C=>u=J(v,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:s(f)})]),$(t,v),H(),o()}dt(["click"]);var tb=M('<button class="svelte-1wy3dql"> </button>'),ib={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 $f(t,e){D(e,!1),W(t,ib),Mr();var i=tb(),o=_(i,!0);g(i),O(n=>_e(o,n),[()=>F("visit_advertiser")],Ir),$(t,i),H()}var ob=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),nb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),rb={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.`},Xh=F_;var gs=new Map;gs.set(ll.Interf
|
|
|
63
63
|
rgba(0, 0, 0, 0.5) 77%,
|
|
64
64
|
rgba(0, 0, 0, 0.55) 88%,
|
|
65
65
|
rgba(0, 0, 0, 0.65) 100%
|
|
66
|
-
);}`};function $d(t,e){D(e,!0),W(t,rb);let[i,o]=Be(),n=()=>
|
|
66
|
+
);}`};function $d(t,e){D(e,!0),W(t,rb);let[i,o]=Be(),n=()=>S(z,"$canSkipAd",i),r=()=>S(q,"$adPlaybackState",i),l=()=>S(k,"$isMobile",i),d=()=>S(U,"$adPosition",i),a=()=>S(G,"$secondsToWatchBeforeSkipAd",i),p=()=>S(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),u=m(e,"adsPreviewParam",3,void 0),b=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),y=Ee(),C=zt(),T=y.state.isEnded$,k=y.ui.isMobile,P=C.ads.isMobileGoToSiteButton,I=j(void 0),E=j(void 0),L=!1,q=y.ads.playbackState,z=y.ads.canSkip,U=y.ads.position,G=y.ads.secondsToWatchBeforeSkip,re=h(()=>n()&&r()!=="inactive"),Y=h(()=>l()&&r()!=="inactive"&&P);Dt(()=>{var oe;let ee=y.getAdmanWrapper();if(pl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,pl.now)(),f()]}),!f()){ee.onAdmanLoadingError();return}let We=Te=>{ee.initAdman(Te),L=!0},le=new AbortController,pe=()=>{le.abort()},{width:$e,height:Z}=ye(y.ui.playerSize),qe=ye(y.ui.isFullscreen),Xe=(oe=b())!=null?oe:ye(y.ui.isAutoplay),Ie={width:$e,height:Z,isFullscreen:qe,isAutoplay:Xe,adsContainer:s(I),adsVideoElement:s(E),slotId:f(),params:v(),previewParam:u(),duration:w()};return window.AdmanHTML?We(Ie):ee.loadAdman(le.signal).then(()=>{We(Ie)}).catch(()=>{ee.onAdmanLoadingError()}),()=>{pl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,pl.now)(),f()]}),!L&&pe()}});var ce=nb(),ae=_(ce);{var Ae=ee=>{var We=ob();$(ee,We)};V(ae,ee=>{l()&&ee(Ae)})}var Re=A(ae,2);tt(Re,ee=>B(E,ee),()=>s(E));var me=A(Re,2);{var ue=ee=>{bf(ee,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};V(me,ee=>{s(re)&&ee(ue)})}var Ve=A(me,2);{var te=ee=>{_f(ee,{})};V(Ve,ee=>{p()&&ee(te)})}var N=A(Ve,2);{var Qe=ee=>{$f(ee,{})};V(N,ee=>{s(Y)&&ee(Qe)})}g(ce),tt(ce,ee=>B(I,ee),()=>s(I)),$(t,ce),H(),o()}var mn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(r=>String(r).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var sb=Ce('<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 yf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=sb();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}var ab=Ce('<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 xf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ab();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}function yd(t,e){let i=m(e,"isActive",3,!1);var o=Fe(),n=ve(o);{var r=d=>{xf(d,{})},l=d=>{yf(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}$(t,o)}var lb=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),db=M('<div class="live-icon svelte-1s15d2i"><!></div>'),cb=M('<span class="text svelte-1s15d2i"> </span>'),ub=M("<div><!> <!></div>"),pb={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.`},Xh=F_;var gs=new Map;gs.set(ll.Interf
|
|
|
134
134
|
100% {
|
|
135
135
|
transform: scaleY(0.6);
|
|
136
136
|
}
|
|
137
|
-
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function xd(t,e){W(t,pb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var r=ub();let l;var d=_(r);{var a=
|
|
138
|
-
opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function wd(t,e){D(e,!0),W(t,mb);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),r=h(()=>vn(e.duration-e.position));var l=fb();let d;var a=_(l);xd(a,{get time(){return s(r)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(l),O(u=>d=J(l,1,"thumb-timer svelte-1b40w20",null,d,u),[()=>({hidden:i()})]),b(t,l),H()}var pl=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 m1=require("@vkontakte/videoplayer-core/es2018");var wf=require("@vkontakte/videoplayer-core/es2018");var xf="focus-hidden";var hr=t=>{t.stopPropagation(),t.preventDefault()},Cf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(xf)},gb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},hb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},_b=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},bb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},s1=t=>t.code==="Escape",$b=t=>t.code==="ArrowLeft",Cd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},a1=t=>{_b(t)?(hr(t),hb(t.target)):bb(t)&&(hr(t),gb(t.target))},Bs=t=>!wf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||wf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",fl=async(t,e,i)=>{await yo(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(await yo(),i.set(!1),t.focus())},l1=async(t,e,i)=>{await yo(),t&&!e&&$e(i)&&(i.set(!1),t.focus())},Sd=async(t,e,i,o=!1)=>{if(await yo(),!!t&&e&&!o){let r=t.children[0];r==null||r.classList.toggle(xf,!i),r==null||r.focus()}},d1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},fu=(t,e)=>{a1(t),Cf(t.target),s1(t)&&(hr(t),e())},mu=async(t,e)=>{Cd(t,["ArrowRight"])&&(hr(t),e())},c1=async(t,e,i)=>{if(a1(t),$b(t)){hr(t),e();return}s1(t)&&(hr(t),i())},ml=(t,e)=>{Cd(t)&&(hr(t),e())},u1=(t,e,i)=>{if(Cd(t))hr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),hr(t);return}o==="ArrowRight"&&!e&&(i(!0),hr(t))}},p1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},f1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var _a=require("@vkontakte/videoplayer-shared/es2018");var Rr={"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 Sf=require("@vkontakte/videoplayer-shared/es2018");var xb=(t,e)=>{ml(t,()=>e())},wb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Cb={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function Tf(t,e){D(e,!0),W(t,Cb);let i=m(e,"onClick",3,Sf.noop),o=m(e,"closeContextMenu",3,Sf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var r=wb();r.__click=n,r.__keydown=[xb,n];var l=_(r,!0);g(r),O(()=>{var d;Ne(r,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ne(r,"data-testid",e.id),he(l,e.label)}),b(t,r),H()}lt(["click","keydown"]);var ha=(t,e)=>t.weight-e.weight;var vl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(vl||{});var Sb=(t,e)=>{fu(t,e)},Tb=t=>{t.preventDefault()},Eb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Ib={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 Ef(t,e){D(e,!0),W(t,Ib);let[i,o]=Be(),n=()=>C(re,"$isLive$",i),r=()=>C(Ae,"$isPiPEnabled$",i),l=()=>C(G,"$chromecastState$",i),d=()=>C(Ve,"$pictureInPictureApiIsActive$",i),a=()=>C(ae,"$isLooped$",i),u=()=>C(Y,"$positionExact$",i),f=()=>C(q,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),$=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),S=j(0),T=j(0),k=Ee(),{pictureInPicture$:P}=uo(),I=Ut(),E=k.ui.contextMenu.visible$,L=k.ui.debugPanelVisible,q=k.ui.additionalContextMenuItems$,z=k.ui.t,U=k.actions.internal.togglePictureInPicture,G=k.state.chromecastState$,re=k.state.isLive$,Y=k.state.positionExact$,ce=k.state.isInteractive,ae=k.state.looped$,{isEnabled$:Ae,isActive$:Ve}=P,me=h(()=>{var fe;return I.features.copyVideoLink&&((fe=k.callbacks)==null?void 0:fe.onCopyVideoLink)}),ue=h(()=>s(me)&&!n()&&!ce),Le=h(()=>{var fe;return!!((fe=k.callbacks)!=null&&fe.onCopyEmbedCodeClicked)}),te=h(()=>r()&&l()!==m1.ChromecastState.CONNECTED&&!ce),N=h(()=>I.features.videoRotate&&!ce),Qe=h(()=>I.showSupport&&!d()),ee=h(()=>I.features.saveTraceInfoToFile),We=()=>{var fe;E.set(!1),(fe=e.returnFocus)==null||fe.call(e)},le=(fe,Re)=>{if(!y()||!$()||!w())return;let Je=y().getBoundingClientRect(),Fe=$().getBoundingClientRect();B(S,fe-Fe.left),B(T,Re-Fe.top),s(S)+Je.width>Fe.width&&B(S,Fe.width-Je.width),s(T)+Je.height>Fe.height&&B(T,Fe.height-Je.height),B(S,Math.max(s(S),0),!0),B(T,Math.max(s(T),0),!0)};ze(()=>{(async()=>{if(y()&&$()&&w()){await yo();let{top:Re,left:Je,bottom:Fe,right:Mt}=p(),Tt=Je!=null?Je:0,xt=Re!=null?Re:0,mt=y().getBoundingClientRect();(0,_a.isNullable)(Je)&&!(0,_a.isNullable)(Mt)&&(Tt=Mt-mt.width),(0,_a.isNullable)(Re)&&!(0,_a.isNullable)(Fe)&&(xt=Fe-mt.height),Tt=Math.max(Tt,0),xt=Math.max(xt,0),le(Tt,xt)}})()});let pe=()=>{k.actions.internal.videoRotate()},be=()=>{(0,_a.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),k.actions.internal.reportProblem(),k.actions.internal.pause()},Z=()=>{let fe=k.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let Re=new Blob([...fe],{type:"plain/text"}),Je=window.URL.createObjectURL(Re);ua(Je,"vk_player_debug_info","txt")}else pl(k.actions.internal.getDebugTextData())},qe=()=>{let fe=k.actions.internal.getTraceTextData(),Re=new Blob([...fe],{type:"application/json"}),Je=window.URL.createObjectURL(Re);ua(Je,"vk_player_trace_info","json")},Ze=()=>{L.set(!0)},Ie=async()=>{var fe;try{U()}finally{(fe=e.returnFocus)==null||fe.call(e)}},oe=()=>{k.actions.internal.setLooped(!a())},Te=()=>{var fe,Re;if(s(Le)){let Je=(Re=(fe=k.callbacks)==null?void 0:fe.onCopyEmbedCodeClicked)==null?void 0:Re.call(fe);Je&&pl(Je)}},Ke=(fe=!1)=>{var Re,Je;if((Re=k.callbacks)!=null&&Re.onCopyVideoLink){let Fe=(Je=k.callbacks)==null?void 0:Je.onCopyVideoLink(fe,u());Fe&&pl(Fe)}},rt=h(()=>I.features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug")),nt=h(()=>s(me)?{id:"copy-link",weight:Rr["copy-link"],label:z("menu_copy_video_link"),onClick:()=>Ke()}:void 0),Lt=h(()=>s(ue)?{id:"copy-link-timestamp",weight:Rr["copy-link-timestamp"],label:z("menu_copy_video_link_with_timestamp"),onClick:()=>Ke(!0)}:void 0),et=h(()=>s(Le)?{id:"copy-embed-code",weight:Rr["copy-embed-code"],label:z("menu_copy_embed_code"),onClick:Te}:void 0),ct=h(()=>s(te)?{id:"pip",weight:Rr.pip,label:d()?z("menu_pip_close"):z("menu_pip"),onClick:Ie}:void 0),Qt=h(()=>({id:"video-loop",weight:Rr["video-loop"],label:a()?z("menu_video_loop_off"):z("menu_video_loop_on"),ariaLabel:z("aria_label_menu_loop"),onClick:oe})),ni=h(()=>s(N)?{id:"rotate",weight:Rr.rotate,label:z("menu_video_rotate"),ariaLabel:z("aria_label_menu_rotate"),onClick:pe}:void 0),Kt=h(()=>s(Qe)?{id:"report",weight:Rr.report,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,onClick:be}:void 0),St=h(()=>({id:"save-debug",weight:Rr["save-debug"],label:s(rt),onClick:Z})),ie=h(()=>s(ee)?{id:"save-trace",weight:Rr["save-trace"],label:z("menu_save_debug"),onClick:qe}:void 0),Vt=h(()=>({id:"debug-info",weight:Rr["debug-info"],label:z("menu_debug_overlay"),ariaLabel:z("aria_label_menu_debug_overlay"),onClick:Ze})),ge=h(()=>[s(nt),s(Lt),s(et),s(ct),s(Qt),s(ni),s(Kt),s(St),s(ie),s(Vt),...f()].filter(fe=>!!fe).sort(ha));var X=He(),xe=ve(X);{var De=fe=>{var Re=Eb();Re.__contextmenu=[Tb],Re.__keydown=[Sb,We],yi(Re,21,()=>s(ge),Je=>Je.id,(Je,Fe)=>{Tf(Je,{get id(){return s(Fe).id},get label(){return s(Fe).label},get ariaLabel(){return s(Fe).ariaLabel},get onClick(){return s(Fe).onClick},closeContextMenu:We})}),g(Re),ot(Re,Je=>y(Je),()=>y()),O(()=>{var Je,Fe;return st(Re,`top: ${(Je=s(T))!=null?Je:""}px; left: ${(Fe=s(S))!=null?Fe:""}px;`)}),b(fe,Re)};V(xe,fe=>{v()&&fe(De)})}b(t,X),H(),o()}lt(["contextmenu","keydown"]);var vu=class{constructor(e){this.value=e,this.next=null}};var gl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new vu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var kb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Pb={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 Td(t,e){D(e,!0),W(t,Pb);let i=m(e,"values",19,()=>[]),o=j(void 0),n=j(null),r=16,l=120,d=60,a=l/d;Ot(()=>{s(o).width=l,s(o).height=r,B(n,s(o).getContext("2d"),!0)});function u(p,$,w,y,S){S===0&&(S=1),p.fillStyle="#fff",p.fillRect($,w,y,S)}ze(()=>{let p="";if(s(n)){let $=i()[0];for(let y=1;y<i().length;y++)i()[y]>$&&($=i()[y]);s(n).clearRect(0,0,l,r);let w=d-1;for(let y=i().length-1;y>=0;y--){let S=w*a,T=$>0?r*(i()[y]/$):0;u(s(n),S,0,a,T),p=T+" "+p,w--}}});var f=kb(),v=_(f);ot(v,p=>B(o,p),()=>s(o)),g(f),b(t,f),H()}var If=require("@vkontakte/videoplayer-shared/es2018");var Ab=(t,e)=>{t.stopPropagation(),If.safeStorage.remove(pd),e.set(!1)},Mb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Lb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Vb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Rb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Nb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Bb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Ob=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Db=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Hb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Fb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Ub=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),zb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Wb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),qb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Kb=M('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Qb={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Ed(t,e){D(e,!0),W(t,Qb);let[i,o]=Be(),n=()=>C(d,"$isMobile",i),r=Ee(),l=r.ui.debugPanelVisible,d=r.ui.isMobile,a=j(oi(r.actions.internal.getDebugPanelData())),u=r.actions.internal.getVideoElement(),f=j(0),v=j(0),p=j(0),$=new gl(60),w=new gl(60),y=new gl(60),S=j(oi([])),T=j(oi([])),k=j(oi([])),P=F("aria_label_debug_panel");Ot(()=>{If.safeStorage.set(pd,"true"),r.actions.internal.startLogging(),u&&(B(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let ge=window.setInterval(()=>{B(a,r.actions.internal.getDebugPanelData(),!0)},500),X;return u&&(X=window.setInterval(()=>{if(u){B(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let xe=u.getVideoPlaybackQuality().totalVideoFrames;B(p,xe-s(f)),B(f,xe,!0),$.push(s(p)),s(a).speed&&w.push(s(a).speed),s(a).bitrate&&y.push(s(a).bitrate),B(S,$.getValuesFromBottom(),!0),B(T,w.getValuesFromBottom(),!0),B(k,y.getValuesFromBottom(),!0)}},1e3)),()=>{r.actions.internal.stopLogging(),clearInterval(ge),X&&clearInterval(X)}});var I=Kb();let E;var L=_(I);L.__click=[Ab,l];var q=A(L,2),z=_(q),U=A(_(z),2),G=_(U,!0);g(U),g(z);var re=A(z,2);{var Y=ge=>{var X=Mb(),xe=A(_(X),2),De=_(xe,!0);g(xe),g(X),O(()=>he(De,s(a).id)),b(ge,X)};V(re,ge=>{s(a).id&&ge(Y)})}var ce=A(re,2);{var ae=ge=>{var X=Lb(),xe=A(_(X),2),De=_(xe,!0);g(xe),g(X),O(()=>he(De,s(a).vsid)),b(ge,X)};V(ce,ge=>{s(a).vsid&&ge(ae)})}var Ae=A(ce,2);{var Ve=ge=>{var X=Vb(),xe=A(_(X),2),De=_(xe,!0);g(xe),g(X),O(()=>he(De,s(a).provider)),b(ge,X)};V(Ae,ge=>{s(a).provider&&ge(Ve)})}var me=A(Ae,2);{var ue=ge=>{var X=Rb(),xe=A(_(X),2),De=_(xe);g(xe),g(X),O(()=>{var fe,Re;return he(De,`Video: ${(fe=s(a).videoCodec||"")!=null?fe:""} ${s(a).hdr?"(HDR)":""}
|
|
137
|
+
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function xd(t,e){W(t,pb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var r=ub();let l;var d=_(r);{var a=u=>{var b=lb();$(u,b)};V(d,u=>{i()&&u(a)})}var p=A(d,2);{var f=u=>{var b=db(),w=_(b);yd(w,{isActive:!0}),g(b),$(u,b)},v=u=>{var b=cb(),w=_(b,!0);g(b),O(()=>_e(w,e.time)),$(u,b)};V(p,u=>{o()?u(f):u(v,!1)})}g(r),O(u=>l=J(r,1,"wrapper svelte-1s15d2i",null,l,u),[()=>({live:o(),playing:n()})]),$(t,r)}var fb=M('<div role="timer" data-testid="thumb-timer"><!></div>'),mb={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
|
|
138
|
+
opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function wd(t,e){D(e,!0),W(t,mb);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),r=h(()=>mn(e.duration-e.position));var l=fb();let d;var a=_(l);xd(a,{get time(){return s(r)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(l),O(p=>d=J(l,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),$(t,l),H()}var fl=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 v1=require("@vkontakte/videoplayer-core/es2018");var Sf=require("@vkontakte/videoplayer-core/es2018");var wf="focus-hidden";var mr=t=>{t.stopPropagation(),t.preventDefault()},Cf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(wf)},gb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},hb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},_b=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},bb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},a1=t=>t.code==="Escape",$b=t=>t.code==="ArrowLeft",Sd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},l1=t=>{_b(t)?(mr(t),hb(t.target)):bb(t)&&(mr(t),gb(t.target))},Rs=t=>!Sf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Sf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",ml=async(t,e,i)=>{await So(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(await So(),i.set(!1),t.focus())},d1=async(t,e,i)=>{await So(),t&&!e&&ye(i)&&(i.set(!1),t.focus())},Cd=async(t,e,i,o=!1)=>{if(await So(),!!t&&e&&!o){let r=t.children[0];r==null||r.classList.toggle(wf,!i),r==null||r.focus()}},c1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},fu=(t,e)=>{l1(t),Cf(t.target),a1(t)&&(mr(t),e())},mu=async(t,e)=>{Sd(t,["ArrowRight"])&&(mr(t),e())},u1=async(t,e,i)=>{if(l1(t),$b(t)){mr(t),e();return}a1(t)&&(mr(t),i())},vl=(t,e)=>{Sd(t)&&(mr(t),e())},p1=(t,e,i)=>{if(Sd(t))mr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),mr(t);return}o==="ArrowRight"&&!e&&(i(!0),mr(t))}},f1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},m1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var ha=require("@vkontakte/videoplayer-shared/es2018");var Vr={"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 Tf=require("@vkontakte/videoplayer-shared/es2018");var xb=(t,e)=>{vl(t,()=>e())},wb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Sb={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 Ef(t,e){D(e,!0),W(t,Sb);let i=m(e,"onClick",3,Tf.noop),o=m(e,"closeContextMenu",3,Tf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var r=wb();r.__click=n,r.__keydown=[xb,n];var l=_(r,!0);g(r),O(()=>{var d;Oe(r,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Oe(r,"data-testid",e.id),_e(l,e.label)}),$(t,r),H()}dt(["click","keydown"]);var ga=(t,e)=>t.weight-e.weight;var gl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(gl||{});var Cb=(t,e)=>{fu(t,e)},Tb=t=>{t.preventDefault()},Eb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Ib={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 If(t,e){D(e,!0),W(t,Ib);let[i,o]=Be(),n=()=>S(re,"$isLive$",i),r=()=>S(Ae,"$isPiPEnabled$",i),l=()=>S(G,"$chromecastState$",i),d=()=>S(Re,"$pictureInPictureApiIsActive$",i),a=()=>S(ae,"$isLooped$",i),p=()=>S(Y,"$positionExact$",i),f=()=>S(q,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),b=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),C=j(0),T=j(0),k=Ee(),{pictureInPicture$:P}=go(),I=zt(),E=k.ui.contextMenu.visible$,L=k.ui.debugPanelVisible,q=k.ui.additionalContextMenuItems$,z=k.ui.t,U=k.actions.internal.togglePictureInPicture,G=k.state.chromecastState$,re=k.state.isLive$,Y=k.state.positionExact$,ce=k.state.isInteractive,ae=k.state.looped$,{isEnabled$:Ae,isActive$:Re}=P,me=h(()=>{var fe;return I.features.copyVideoLink&&((fe=k.callbacks)==null?void 0:fe.onCopyVideoLink)}),ue=h(()=>s(me)&&!n()&&!ce),Ve=h(()=>{var fe;return!!((fe=k.callbacks)!=null&&fe.onCopyEmbedCodeClicked)}),te=h(()=>r()&&l()!==v1.ChromecastState.CONNECTED&&!ce),N=h(()=>I.features.videoRotate&&!ce),Qe=h(()=>I.showSupport&&!d()),ee=h(()=>I.features.saveTraceInfoToFile),We=()=>{var fe;E.set(!1),(fe=e.returnFocus)==null||fe.call(e)},le=(fe,Ne)=>{if(!y()||!b()||!w())return;let Je=y().getBoundingClientRect(),Ue=b().getBoundingClientRect();B(C,fe-Ue.left),B(T,Ne-Ue.top),s(C)+Je.width>Ue.width&&B(C,Ue.width-Je.width),s(T)+Je.height>Ue.height&&B(T,Ue.height-Je.height),B(C,Math.max(s(C),0),!0),B(T,Math.max(s(T),0),!0)};ze(()=>{(async()=>{if(y()&&b()&&w()){await So();let{top:Ne,left:Je,bottom:Ue,right:Lt}=u(),Et=Je!=null?Je:0,St=Ne!=null?Ne:0,_t=y().getBoundingClientRect();(0,ha.isNullable)(Je)&&!(0,ha.isNullable)(Lt)&&(Et=Lt-_t.width),(0,ha.isNullable)(Ne)&&!(0,ha.isNullable)(Ue)&&(St=Ue-_t.height),Et=Math.max(Et,0),St=Math.max(St,0),le(Et,St)}})()});let pe=()=>{k.actions.internal.videoRotate()},$e=()=>{(0,ha.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),k.actions.internal.reportProblem(),k.actions.internal.pause()},Z=()=>{let fe=k.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let Ne=new Blob([...fe],{type:"plain/text"}),Je=window.URL.createObjectURL(Ne);ca(Je,"vk_player_debug_info","txt")}else fl(k.actions.internal.getDebugTextData())},qe=()=>{let fe=k.actions.internal.getTraceTextData(),Ne=new Blob([...fe],{type:"application/json"}),Je=window.URL.createObjectURL(Ne);ca(Je,"vk_player_trace_info","json")},Xe=()=>{L.set(!0)},Ie=async()=>{var fe;try{U()}finally{(fe=e.returnFocus)==null||fe.call(e)}},oe=()=>{k.actions.internal.setLooped(!a())},Te=()=>{var fe,Ne;if(s(Ve)){let Je=(Ne=(fe=k.callbacks)==null?void 0:fe.onCopyEmbedCodeClicked)==null?void 0:Ne.call(fe);Je&&fl(Je)}},Ke=(fe=!1)=>{var Ne,Je;if((Ne=k.callbacks)!=null&&Ne.onCopyVideoLink){let Ue=(Je=k.callbacks)==null?void 0:Je.onCopyVideoLink(fe,p());Ue&&fl(Ue)}},rt=h(()=>I.features.saveDebugInfoToFile?z("menu_save_debug"):z("menu_copy_debug")),nt=h(()=>s(me)?{id:"copy-link",weight:Vr["copy-link"],label:z("menu_copy_video_link"),onClick:()=>Ke()}:void 0),Rt=h(()=>s(ue)?{id:"copy-link-timestamp",weight:Vr["copy-link-timestamp"],label:z("menu_copy_video_link_with_timestamp"),onClick:()=>Ke(!0)}:void 0),et=h(()=>s(Ve)?{id:"copy-embed-code",weight:Vr["copy-embed-code"],label:z("menu_copy_embed_code"),onClick:Te}:void 0),pt=h(()=>s(te)?{id:"pip",weight:Vr.pip,label:d()?z("menu_pip_close"):z("menu_pip"),onClick:Ie}:void 0),Yt=h(()=>({id:"video-loop",weight:Vr["video-loop"],label:a()?z("menu_video_loop_off"):z("menu_video_loop_on"),ariaLabel:z("aria_label_menu_loop"),onClick:oe})),oi=h(()=>s(N)?{id:"rotate",weight:Vr.rotate,label:z("menu_video_rotate"),ariaLabel:z("aria_label_menu_rotate"),onClick:pe}:void 0),Qt=h(()=>s(Qe)?{id:"report",weight:Vr.report,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,onClick:$e}:void 0),Tt=h(()=>({id:"save-debug",weight:Vr["save-debug"],label:s(rt),onClick:Z})),ie=h(()=>s(ee)?{id:"save-trace",weight:Vr["save-trace"],label:z("menu_save_debug"),onClick:qe}:void 0),Nt=h(()=>({id:"debug-info",weight:Vr["debug-info"],label:z("menu_debug_overlay"),ariaLabel:z("aria_label_menu_debug_overlay"),onClick:Xe})),ge=h(()=>[s(nt),s(Rt),s(et),s(pt),s(Yt),s(oi),s(Qt),s(Tt),s(ie),s(Nt),...f()].filter(fe=>!!fe).sort(ga));var X=Fe(),xe=ve(X);{var He=fe=>{var Ne=Eb();Ne.__contextmenu=[Tb],Ne.__keydown=[Cb,We],wi(Ne,21,()=>s(ge),Je=>Je.id,(Je,Ue)=>{Ef(Je,{get id(){return s(Ue).id},get label(){return s(Ue).label},get ariaLabel(){return s(Ue).ariaLabel},get onClick(){return s(Ue).onClick},closeContextMenu:We})}),g(Ne),tt(Ne,Je=>y(Je),()=>y()),O(()=>{var Je,Ue;return at(Ne,`top: ${(Je=s(T))!=null?Je:""}px; left: ${(Ue=s(C))!=null?Ue:""}px;`)}),$(fe,Ne)};V(xe,fe=>{v()&&fe(He)})}$(t,X),H(),o()}dt(["contextmenu","keydown"]);var vu=class{constructor(e){this.value=e,this.next=null}};var hl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new vu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var kb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Pb={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 Td(t,e){D(e,!0),W(t,Pb);let i=m(e,"values",19,()=>[]),o=j(void 0),n=j(null),r=16,l=120,d=60,a=l/d;Dt(()=>{s(o).width=l,s(o).height=r,B(n,s(o).getContext("2d"),!0)});function p(u,b,w,y,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect(b,w,y,C)}ze(()=>{let u="";if(s(n)){let b=i()[0];for(let y=1;y<i().length;y++)i()[y]>b&&(b=i()[y]);s(n).clearRect(0,0,l,r);let w=d-1;for(let y=i().length-1;y>=0;y--){let C=w*a,T=b>0?r*(i()[y]/b):0;p(s(n),C,0,a,T),u=T+" "+u,w--}}});var f=kb(),v=_(f);tt(v,u=>B(o,u),()=>s(o)),g(f),$(t,f),H()}var kf=require("@vkontakte/videoplayer-shared/es2018");var Ab=(t,e)=>{t.stopPropagation(),kf.safeStorage.remove(pd),e.set(!1)},Mb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Lb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Vb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Rb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Nb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Bb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Ob=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Db=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Hb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Fb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Ub=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),zb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Wb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),qb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Kb=M('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Qb={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Ed(t,e){D(e,!0),W(t,Qb);let[i,o]=Be(),n=()=>S(d,"$isMobile",i),r=Ee(),l=r.ui.debugPanelVisible,d=r.ui.isMobile,a=j(ii(r.actions.internal.getDebugPanelData())),p=r.actions.internal.getVideoElement(),f=j(0),v=j(0),u=j(0),b=new hl(60),w=new hl(60),y=new hl(60),C=j(ii([])),T=j(ii([])),k=j(ii([])),P=F("aria_label_debug_panel");Dt(()=>{kf.safeStorage.set(pd,"true"),r.actions.internal.startLogging(),p&&(B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let ge=window.setInterval(()=>{B(a,r.actions.internal.getDebugPanelData(),!0)},500),X;return p&&(X=window.setInterval(()=>{if(p){B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let xe=p.getVideoPlaybackQuality().totalVideoFrames;B(u,xe-s(f)),B(f,xe,!0),b.push(s(u)),s(a).speed&&w.push(s(a).speed),s(a).bitrate&&y.push(s(a).bitrate),B(C,b.getValuesFromBottom(),!0),B(T,w.getValuesFromBottom(),!0),B(k,y.getValuesFromBottom(),!0)}},1e3)),()=>{r.actions.internal.stopLogging(),clearInterval(ge),X&&clearInterval(X)}});var I=Kb();let E;var L=_(I);L.__click=[Ab,l];var q=A(L,2),z=_(q),U=A(_(z),2),G=_(U,!0);g(U),g(z);var re=A(z,2);{var Y=ge=>{var X=Mb(),xe=A(_(X),2),He=_(xe,!0);g(xe),g(X),O(()=>_e(He,s(a).id)),$(ge,X)};V(re,ge=>{s(a).id&&ge(Y)})}var ce=A(re,2);{var ae=ge=>{var X=Lb(),xe=A(_(X),2),He=_(xe,!0);g(xe),g(X),O(()=>_e(He,s(a).vsid)),$(ge,X)};V(ce,ge=>{s(a).vsid&&ge(ae)})}var Ae=A(ce,2);{var Re=ge=>{var X=Vb(),xe=A(_(X),2),He=_(xe,!0);g(xe),g(X),O(()=>_e(He,s(a).provider)),$(ge,X)};V(Ae,ge=>{s(a).provider&&ge(Re)})}var me=A(Ae,2);{var ue=ge=>{var X=Rb(),xe=A(_(X),2),He=_(xe);g(xe),g(X),O(()=>{var fe,Ne;return _e(He,`Video: ${(fe=s(a).videoCodec||"")!=null?fe:""} ${s(a).hdr?"(HDR)":""}
|
|
139
139
|
&
|
|
140
|
-
Audio: ${(Re=s(a).audioCodec||"")!=null?Re:""} ${s(a).audioLanguage?`(${s(a).audioLanguage})`:""}`)}),b(ge,X)};V(me,ge=>{(s(a).videoCodec||s(a).audioCodec)&&ge(ue)})}var Le=A(me,2);{var te=ge=>{var X=Nb(),xe=A(_(X),2),De=_(xe,!0);g(xe),g(X),O(()=>he(De,s(a).viewport)),b(ge,X)};V(Le,ge=>{s(a).viewport&&ge(te)})}var N=A(Le,2);{var Qe=ge=>{var X=Bb(),xe=A(_(X),2),De=_(xe,!0);g(xe),g(X),O(()=>he(De,s(a).videoSize)),b(ge,X)};V(N,ge=>{s(a).videoSize&&ge(Qe)})}var ee=A(N,2);{var We=ge=>{var X=Ob(),xe=A(_(X),2),De=_(xe,!0);g(xe),g(X),O(()=>he(De,s(a).cdn)),b(ge,X)};V(ee,ge=>{s(a).cdn&&ge(We)})}var le=A(ee,2);{var pe=ge=>{var X=Db(),xe=A(_(X),2),De=_(xe);g(xe),g(X),O(()=>{var fe;return he(De,`${(fe=s(a).volume)!=null?fe:""} %`)}),b(ge,X)};V(le,ge=>{s(a).volume&&ge(pe)})}var be=A(le,2);{var Z=ge=>{var X=Hb(),xe=A(_(X),2),De=_(xe);g(xe),g(X),O(fe=>he(De,`${fe!=null?fe:""} s`),[()=>s(a).position.toFixed(2)]),b(ge,X)};V(be,ge=>{s(a).position&&ge(Z)})}var qe=A(be,2);{var Ze=ge=>{var X=Fb(),xe=A(_(X),2),De=_(xe);g(xe),g(X),O(fe=>he(De,`${fe!=null?fe:""} s`),[()=>s(a).buffer.toFixed(2)]),b(ge,X)};V(qe,ge=>{s(a).buffer&&ge(Ze)})}var Ie=A(qe,2);{var oe=ge=>{var X=Ub(),xe=A(_(X),2),De=_(xe);g(xe),g(X),O(fe=>he(De,`${fe!=null?fe:""} s`),[()=>s(a).liveLatency.toFixed(2)]),b(ge,X)};V(Ie,ge=>{s(a).liveLatency&&ge(oe)})}var Te=A(Ie,2);{var Ke=ge=>{var X=zb(),xe=A(_(X),2),De=_(xe,!0);g(xe),g(X),O(fe=>he(De,fe),[()=>[{value:s(a).currentVideoSegmentLength,title:"Video:"},{value:s(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:fe})=>fe).map(({value:fe,title:Re})=>`${Re} ${((fe!=null?fe:0)/1e3).toFixed(2)} s`).join(" & ")]),b(ge,X)};V(Te,ge=>{(s(a).currentVideoSegmentLength||s(a).currentAudioSegmentLength)&&ge(Ke)})}var rt=A(Te,2),nt=A(_(rt),2),Lt=_(nt);g(nt),g(rt);var et=A(rt,2);{var ct=ge=>{var X=Wb(),xe=A(_(X),2);Td(xe,{get values(){return s(T)}});var De=A(xe,2),fe=_(De);g(De),g(X),O(Re=>he(fe,`${Re!=null?Re:""} Kbps`),[()=>s(a).speed.toFixed(2)]),b(ge,X)};V(et,ge=>{s(a).speed&&ge(ct)})}var Qt=A(et,2);{var ni=ge=>{var X=qb(),xe=A(_(X),2);Td(xe,{get values(){return s(k)}});var De=A(xe,2),fe=_(De);g(De),g(X),O(Re=>he(fe,`${Re!=null?Re:""} Kbps`),[()=>s(a).bitrate.toFixed(2)]),b(ge,X)};V(Qt,ge=>{s(a).bitrate&&ge(ni)})}var Kt=A(Qt,2),St=A(_(Kt),2);Td(St,{get values(){return s(S)}});var ie=A(St,2),Vt=_(ie,!0);g(ie),g(Kt),g(q),g(I),O(ge=>{var X,xe;E=J(I,1,"container svelte-4deykz",null,E,ge),Ne(I,"aria-label",P),he(G,s(a).version),he(Lt,`${(X=s(v))!=null?X:""} / ${(xe=s(f))!=null?xe:""} frames`),he(Vt,s(p))},[()=>({"container-mobile":n()})]),b(t,I),H(),o()}lt(["click"]);var v1=require("@vkontakte/videoplayer-shared/es2018"),Gb=(t,e)=>{t.stopPropagation(),e()()},Yb=M('<div class="close svelte-1ome55p"></div>'),jb={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 ba(t,e){D(e,!0),W(t,jb);let i=m(e,"onClick",3,v1.noop);var o=Yb();o.__click=[Gb,i],b(t,o),H()}lt(["click"]);var g1=require("@vkontakte/videoplayer-shared/es2018"),Zb=M('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),Xb={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function Id(t,e){D(e,!0),W(t,Xb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,g1.noop),n=5e3,r=j(void 0),l,d,a=j(0),u;ze(()=>{i()&&(d=Date.now(),B(a,requestAnimationFrame(v),!0))});let f=()=>{s(a)&&(cancelAnimationFrame(s(a)),B(a,0))},v=()=>{if(!i()){f();return}u=(Date.now()-d)/n,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),B(a,requestAnimationFrame(v),!0)):o()()};Ot(()=>{if(l=s(r).getContext("2d"),!!l)return l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff",()=>{f()}}),In(()=>{f()});var p=Zb(),$=_(p);ot($,w=>B(r,w),()=>s(r)),we(2),g(p),b(t,p),H()}var Jb=(t,e,i)=>{e(!1),i()},e$=M('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),t$={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function kf(t,e){D(e,!0),W(t,t$);let[i,o]=Be(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),$()};Ot(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=He(),T=ve(S);{var k=P=>{var I=e$(),E=A(ve(I),2),L=_(E),q=_(L),z=_(q,!0);g(q);var U=A(q,2);ba(U,{onClick:y}),g(L);var G=A(L,2);G.__click=[Jb,u,v];var re=_(G),Y=_(re),ce=_(Y);let ae;var Ae=A(ce,2);{var Ve=te=>{let N=h(()=>r()&&n());Id(te,{get isRunning(){return s(N)},onTimerEnded:w})};V(Ae,te=>{n()&&te(Ve)})}g(Y),g(re);var me=A(re,2),ue=_(me),Le=_(ue,!0);g(ue),g(me),g(G),g(E),O((te,N)=>{he(z,te),st(Y,`background-image: url('${e.thumb}')`),ae=J(ce,1,"thumb-overlay svelte-jfbaax",null,ae,N),he(Le,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,I)};V(T,P=>{e.isHide||P(k)})}b(t,S),H(),o()}lt(["click"]);var Ds=require("@vkontakte/videoplayer-core/es2018"),h1=require("@vkontakte/videoplayer-shared/es2018"),gn=require("@vkontakte/videoplayer-statistics/es2018");var Pf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Af=(t,e)=>Math.max(+(t-e).toFixed(2),0),gu=(t,e,i)=>{let o=Pf(e,i);e<1?t.actions.internal.setVolume(o):$e(t.state.muted$)&&t.actions.external.setMuted(!1)},hu=(t,e,i)=>{let o=Af(e,i);e>0&&t.actions.internal.setVolume(o)};var Os=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var o$=(t,e)=>{e(t)},n$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),r$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Mf(t,e){var Kt,St;D(e,!0),W(t,r$);let[i,o]=Be(),n=()=>C(z,"$playbackState$",i),r=()=>C(U,"$adPlaybackState",i),l=()=>C(ce,"$disabledControls$",i),d=()=>C(G,"$positionExact$",i),a=()=>C(re,"$duration$",i),u=()=>C(pe,"$isAudioAvailable$",i),f=()=>C(Y,"$volume$",i),v=()=>C(me,"$availablePlaybackRates$",i),p=()=>C(Ve,"$currentPlaybackRate$",i),$=()=>C(Z,"$isInteractiveTime$",i),w=()=>C(qe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(Qe,"$isEnded$",i),S=()=>C(ae,"$muted$",i),T=()=>C(Ae,"$currentSubtitle$",i),k=()=>C(ee,"$overlayContainer$",i),P=m(e,"nextButtonActive",3,!1),I=m(e,"prevButtonActive",3,!1),E=Ee(),L=Ut(),q=E.getLogger().createComponentLog("KeyboardControls component"),z=E.state.playbackState$,U=E.ads.playbackState,G=E.state.positionExact$,re=E.state.duration$,Y=E.state.volume$,ce=E.ui.controls.disabledControls$,ae=E.state.muted$,Ae=E.state.currentSubtitle$,Ve=E.state.currentPlaybackRate$,me=E.state.availablePlaybackRates$,ue=E.ui.contextMenu.openedByHotKey$,Le=E.ui.contextMenu.lastActiveElem$,te=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,Qe=E.state.isEnded$,ee=E.ui.overlayContainer$,We=(Kt=E.callbacks)==null?void 0:Kt.onAudioDoesNotExistHint,le=(St=E.callbacks)==null?void 0:St.onAudioDisabledHint,pe=E.state.isAudioAvailable$,be=E.state.isAudioDisabled,Z=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:qe}=uo(),Ze=0,Ie=!0,oe=j(void 0),Te=ie=>(ie!==Ie&&(Ie=ie,Ze=0),Ze+=1,(L.controls.seekStepKeyboard+L.controls.seekStepKeyboard*Ze)/1e3),Ke=(ie,Vt=!1)=>{var Ai,ci;let ge=ie.target,X=(Ai=ge==null?void 0:ge.getAttribute("role"))==null?void 0:Ai.includes("menuitem"),xe=ge.classList.contains("btn"),De=ie.code;if(xe&&De==="Space")return!1;let fe=xh.has(De);if(X&&fe)return!1;let Re=!yh.has(De);if(ie.ctrlKey&&Re||ie.altKey&&Re||ie.metaKey)return!1;let Je=X&&De==="Escape";wh.has(De)||Je||e.hideContextMenu();let Fe=n()===Ds.PlaybackState.PLAYING||n()===Ds.PlaybackState.PAUSED,Mt=e.isAds&&(r()==="paused"||r()==="playing"),Tt=!Mt&&!l().has("TIMELINE");if(!(Fe||Mt))return!1;q({message:`key down, code: ${De}, isExternal = ${Vt}`});let xt=!1,mt=()=>{xt=!0,Vt||ie.preventDefault()};switch(De){case"KeyJ":case"ArrowLeft":{if(!Tt)break;if(ie.ctrlKey||ie.altKey){let it=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(it),it&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:it.text}),mt()}else{let it=ie.shiftKey?Te(!1):L.controls.seekStepKeyboard/1e3,Dt=Math.max(d()-it,0);d()>0&&(E.actions.internal.seekTime(Dt,gn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:it.toString()}),mt())}break}case"KeyL":case"ArrowRight":{if(!Tt)break;if(ie.ctrlKey||ie.altKey){let it=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(it),it&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:it.text}),mt()}else{let it=ie.shiftKey?Te(!0):L.controls.seekStepKeyboard/1e3,Dt=Math.min(d()+it,a());Math.round(d())<Math.round(a())&&(E.actions.internal.seekTime(Dt,gn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:it.toString()}),mt())}break}case"ArrowUp":{if(Os({isAudioDisabled:be,audioDisabledHintCallback:le,isAudioAvailable:u(),audioIsNotExistHintCallback:We,isAds:e.isAds})){let it=f(),Dt=L.controls.volumeStepKeyboard,fi=it<=1;if(gu(E,it,Dt),fi){let Ui=Math.round(Pf(it,Dt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ui}})}}mt();break}case"ArrowDown":{if(Os({isAudioDisabled:be,audioDisabledHintCallback:le,isAudioAvailable:u(),audioIsNotExistHintCallback:We,isAds:e.isAds})){let it=f(),Dt=L.controls.volumeStepKeyboard,fi=it>=0;if(hu(E,it,Dt),fi){let Ui=Math.round(Af(it,Dt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ui}})}}mt();break}case"Comma":{if(ie.shiftKey){E.actions.internal.decrementPlaybackRate();let it=v().find(Dt=>Dt.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:it==null?void 0:it.displayValue}),mt()}else{if(Mt||n()!==Ds.PlaybackState.PAUSED)break;let it=Math.max(d()-L.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(it,gn.SeekAction.DOUBLE_TAP),mt())}break}case"Period":{if(ie.shiftKey){E.actions.internal.incrementPlaybackRate();let it=v().find(Dt=>Dt.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:it==null?void 0:it.displayValue}),mt()}else{if(Mt||n()!==Ds.PlaybackState.PAUSED)break;let it=Math.min(d()+L.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(it,gn.SeekAction.DOUBLE_TAP),mt())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if($()&&w()&&qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let it="PLAY";n()===Ds.PlaybackState.PAUSED?it="PAUSE":y()&&(it="REPLAY"),e.showHotKeyHelpers({type:it})}mt();break;case"KeyM":{Os({isAudioDisabled:be,audioDisabledHintCallback:le,isAudioAvailable:u(),audioIsNotExistHintCallback:We,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),mt();break}case"KeyF":e.toggleFullscreen(),mt();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ci=T())==null?void 0:ci.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),mt();break;case"KeyI":E.actions.internal.togglePictureInPicture(),mt();break;case"Digit1":case"Numpad1":if(ie.shiftKey){let it=f1(k());N.set(it),Le.set(ge),ue.set(!0),te.set(!0),mt();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,gn.SeekAction.DOUBLE_TAP),mt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,gn.SeekAction.DOUBLE_TAP),mt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,gn.SeekAction.DOUBLE_TAP),mt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,gn.SeekAction.DOUBLE_TAP),mt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,gn.SeekAction.DOUBLE_TAP),mt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,gn.SeekAction.DOUBLE_TAP),mt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,gn.SeekAction.DOUBLE_TAP),mt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,gn.SeekAction.DOUBLE_TAP),mt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,gn.SeekAction.DOUBLE_TAP),mt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,gn.SeekAction.DOUBLE_TAP),mt();break;case"Slash":{ie.shiftKey&&L.features.hotKeyMapModal&&(e.showKeyMap(),mt());break}case"KeyN":ie.shiftKey&&P()&&(E.actions.internal.nextVideoClick(),mt());break;case"KeyP":ie.shiftKey&&I()&&(E.actions.internal.prevVideoClick(),mt());break;case"ShiftLeft":case"ShiftRight":mt();break;case"Tab":case"Escape":case"Enter":break;default:(0,h1.checkNever)(De);break}return xt},rt=ie=>{let Vt=ie.code;if(ie.ctrlKey||ie.altKey||ie.metaKey)return;let ge=n()===Ds.PlaybackState.PLAYING||n()===Ds.PlaybackState.PAUSED,X=e.isAds&&(r()==="paused"||r()==="playing");if(ge||X)switch(Vt){case"ShiftLeft":case"ShiftRight":Ze=0;break}},nt=F("aria_label_video_player"),Lt=()=>{var ie;return(ie=s(oe))==null?void 0:ie.focus()},et=ie=>ie.type==="keydown"?Ke(ie,!0):(ie.type==="keyup"&&rt(ie),!1);var ct=n$();ct.__keyup=rt,ct.__keydown=[o$,Ke];var Qt=_(ct);_e(Qt,()=>{var ie;return(ie=e.children)!=null?ie:ne}),g(ct),ot(ct,ie=>B(oe,ie),()=>s(oe)),O(()=>Ne(ct,"aria-label",nt)),b(t,ct);var ni=H({focus:Lt,handleExternalKeyboardEvent:et});return o(),ni}lt(["keyup","keydown"]);var s$=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),a$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
|
|
140
|
+
Audio: ${(Ne=s(a).audioCodec||"")!=null?Ne:""} ${s(a).audioLanguage?`(${s(a).audioLanguage})`:""}`)}),$(ge,X)};V(me,ge=>{(s(a).videoCodec||s(a).audioCodec)&&ge(ue)})}var Ve=A(me,2);{var te=ge=>{var X=Nb(),xe=A(_(X),2),He=_(xe,!0);g(xe),g(X),O(()=>_e(He,s(a).viewport)),$(ge,X)};V(Ve,ge=>{s(a).viewport&&ge(te)})}var N=A(Ve,2);{var Qe=ge=>{var X=Bb(),xe=A(_(X),2),He=_(xe,!0);g(xe),g(X),O(()=>_e(He,s(a).videoSize)),$(ge,X)};V(N,ge=>{s(a).videoSize&&ge(Qe)})}var ee=A(N,2);{var We=ge=>{var X=Ob(),xe=A(_(X),2),He=_(xe,!0);g(xe),g(X),O(()=>_e(He,s(a).cdn)),$(ge,X)};V(ee,ge=>{s(a).cdn&&ge(We)})}var le=A(ee,2);{var pe=ge=>{var X=Db(),xe=A(_(X),2),He=_(xe);g(xe),g(X),O(()=>{var fe;return _e(He,`${(fe=s(a).volume)!=null?fe:""} %`)}),$(ge,X)};V(le,ge=>{s(a).volume&&ge(pe)})}var $e=A(le,2);{var Z=ge=>{var X=Hb(),xe=A(_(X),2),He=_(xe);g(xe),g(X),O(fe=>_e(He,`${fe!=null?fe:""} s`),[()=>s(a).position.toFixed(2)]),$(ge,X)};V($e,ge=>{s(a).position&&ge(Z)})}var qe=A($e,2);{var Xe=ge=>{var X=Fb(),xe=A(_(X),2),He=_(xe);g(xe),g(X),O(fe=>_e(He,`${fe!=null?fe:""} s`),[()=>s(a).buffer.toFixed(2)]),$(ge,X)};V(qe,ge=>{s(a).buffer&&ge(Xe)})}var Ie=A(qe,2);{var oe=ge=>{var X=Ub(),xe=A(_(X),2),He=_(xe);g(xe),g(X),O(fe=>_e(He,`${fe!=null?fe:""} s`),[()=>s(a).liveLatency.toFixed(2)]),$(ge,X)};V(Ie,ge=>{s(a).liveLatency&&ge(oe)})}var Te=A(Ie,2);{var Ke=ge=>{var X=zb(),xe=A(_(X),2),He=_(xe,!0);g(xe),g(X),O(fe=>_e(He,fe),[()=>[{value:s(a).currentVideoSegmentLength,title:"Video:"},{value:s(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:fe})=>fe).map(({value:fe,title:Ne})=>`${Ne} ${((fe!=null?fe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(ge,X)};V(Te,ge=>{(s(a).currentVideoSegmentLength||s(a).currentAudioSegmentLength)&&ge(Ke)})}var rt=A(Te,2),nt=A(_(rt),2),Rt=_(nt);g(nt),g(rt);var et=A(rt,2);{var pt=ge=>{var X=Wb(),xe=A(_(X),2);Td(xe,{get values(){return s(T)}});var He=A(xe,2),fe=_(He);g(He),g(X),O(Ne=>_e(fe,`${Ne!=null?Ne:""} Kbps`),[()=>s(a).speed.toFixed(2)]),$(ge,X)};V(et,ge=>{s(a).speed&&ge(pt)})}var Yt=A(et,2);{var oi=ge=>{var X=qb(),xe=A(_(X),2);Td(xe,{get values(){return s(k)}});var He=A(xe,2),fe=_(He);g(He),g(X),O(Ne=>_e(fe,`${Ne!=null?Ne:""} Kbps`),[()=>s(a).bitrate.toFixed(2)]),$(ge,X)};V(Yt,ge=>{s(a).bitrate&&ge(oi)})}var Qt=A(Yt,2),Tt=A(_(Qt),2);Td(Tt,{get values(){return s(C)}});var ie=A(Tt,2),Nt=_(ie,!0);g(ie),g(Qt),g(q),g(I),O(ge=>{var X,xe;E=J(I,1,"container svelte-4deykz",null,E,ge),Oe(I,"aria-label",P),_e(G,s(a).version),_e(Rt,`${(X=s(v))!=null?X:""} / ${(xe=s(f))!=null?xe:""} frames`),_e(Nt,s(u))},[()=>({"container-mobile":n()})]),$(t,I),H(),o()}dt(["click"]);var g1=require("@vkontakte/videoplayer-shared/es2018"),Gb=(t,e)=>{t.stopPropagation(),e()()},Yb=M('<div class="close svelte-1ome55p"></div>'),jb={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 _a(t,e){D(e,!0),W(t,jb);let i=m(e,"onClick",3,g1.noop);var o=Yb();o.__click=[Gb,i],$(t,o),H()}dt(["click"]);var h1=require("@vkontakte/videoplayer-shared/es2018"),Zb=M('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),Xb={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function Id(t,e){D(e,!0),W(t,Xb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,h1.noop),n=5e3,r=j(void 0),l,d,a=j(0),p;ze(()=>{i()&&(d=Date.now(),B(a,requestAnimationFrame(v),!0))});let f=()=>{s(a)&&(cancelAnimationFrame(s(a)),B(a,0))},v=()=>{if(!i()){f();return}p=(Date.now()-d)/n,p<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),l==null||l.stroke(),B(a,requestAnimationFrame(v),!0)):o()()};Dt(()=>{if(l=s(r).getContext("2d"),!!l)return l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff",()=>{f()}}),Cn(()=>{f()});var u=Zb(),b=_(u);tt(b,w=>B(r,w),()=>s(r)),Se(2),g(u),$(t,u),H()}var Jb=(t,e,i)=>{e(!1),i()},e$=M('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),t$={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Pf(t,e){D(e,!0),W(t,t$);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),r=()=>S(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),b()};Dt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var C=Fe(),T=ve(C);{var k=P=>{var I=e$(),E=A(ve(I),2),L=_(E),q=_(L),z=_(q,!0);g(q);var U=A(q,2);_a(U,{onClick:y}),g(L);var G=A(L,2);G.__click=[Jb,p,v];var re=_(G),Y=_(re),ce=_(Y);let ae;var Ae=A(ce,2);{var Re=te=>{let N=h(()=>r()&&n());Id(te,{get isRunning(){return s(N)},onTimerEnded:w})};V(Ae,te=>{n()&&te(Re)})}g(Y),g(re);var me=A(re,2),ue=_(me),Ve=_(ue,!0);g(ue),g(me),g(G),g(E),O((te,N)=>{_e(z,te),at(Y,`background-image: url('${e.thumb}')`),ae=J(ce,1,"thumb-overlay svelte-jfbaax",null,ae,N),_e(Ve,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),$(P,I)};V(T,P=>{e.isHide||P(k)})}$(t,C),H(),o()}dt(["click"]);var Bs=require("@vkontakte/videoplayer-core/es2018"),_1=require("@vkontakte/videoplayer-shared/es2018"),vn=require("@vkontakte/videoplayer-statistics/es2018");var Af=(t,e)=>Math.min(+(t+e).toFixed(2),1),Mf=(t,e)=>Math.max(+(t-e).toFixed(2),0),gu=(t,e,i)=>{let o=Af(e,i);e<1?t.actions.internal.setVolume(o):ye(t.state.muted$)&&t.actions.external.setMuted(!1)},hu=(t,e,i)=>{let o=Mf(e,i);e>0&&t.actions.internal.setVolume(o)};var Ns=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var o$=(t,e)=>{e(t)},n$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),r$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Lf(t,e){var Qt,Tt;D(e,!0),W(t,r$);let[i,o]=Be(),n=()=>S(z,"$playbackState$",i),r=()=>S(U,"$adPlaybackState",i),l=()=>S(ce,"$disabledControls$",i),d=()=>S(G,"$positionExact$",i),a=()=>S(re,"$duration$",i),p=()=>S(pe,"$isAudioAvailable$",i),f=()=>S(Y,"$volume$",i),v=()=>S(me,"$availablePlaybackRates$",i),u=()=>S(Re,"$currentPlaybackRate$",i),b=()=>S(Z,"$isInteractiveTime$",i),w=()=>S(qe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(Qe,"$isEnded$",i),C=()=>S(ae,"$muted$",i),T=()=>S(Ae,"$currentSubtitle$",i),k=()=>S(ee,"$overlayContainer$",i),P=m(e,"nextButtonActive",3,!1),I=m(e,"prevButtonActive",3,!1),E=Ee(),L=zt(),q=E.getLogger().createComponentLog("KeyboardControls component"),z=E.state.playbackState$,U=E.ads.playbackState,G=E.state.positionExact$,re=E.state.duration$,Y=E.state.volume$,ce=E.ui.controls.disabledControls$,ae=E.state.muted$,Ae=E.state.currentSubtitle$,Re=E.state.currentPlaybackRate$,me=E.state.availablePlaybackRates$,ue=E.ui.contextMenu.openedByHotKey$,Ve=E.ui.contextMenu.lastActiveElem$,te=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,Qe=E.state.isEnded$,ee=E.ui.overlayContainer$,We=(Qt=E.callbacks)==null?void 0:Qt.onAudioDoesNotExistHint,le=(Tt=E.callbacks)==null?void 0:Tt.onAudioDisabledHint,pe=E.state.isAudioAvailable$,$e=E.state.isAudioDisabled,Z=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:qe}=go(),Xe=0,Ie=!0,oe=j(void 0),Te=ie=>(ie!==Ie&&(Ie=ie,Xe=0),Xe+=1,(L.controls.seekStepKeyboard+L.controls.seekStepKeyboard*Xe)/1e3),Ke=(ie,Nt=!1)=>{var Ri,ci;let ge=ie.target,X=(Ri=ge==null?void 0:ge.getAttribute("role"))==null?void 0:Ri.includes("menuitem"),xe=ge.classList.contains("btn"),He=ie.code;if(xe&&He==="Space")return!1;let fe=wh.has(He);if(X&&fe)return!1;let Ne=!xh.has(He);if(ie.ctrlKey&&Ne||ie.altKey&&Ne||ie.metaKey)return!1;let Je=X&&He==="Escape";Sh.has(He)||Je||e.hideContextMenu();let Ue=n()===Bs.PlaybackState.PLAYING||n()===Bs.PlaybackState.PAUSED,Lt=e.isAds&&(r()==="paused"||r()==="playing"),Et=!Lt&&!l().has("TIMELINE");if(!(Ue||Lt))return!1;q({message:`key down, code: ${He}, isExternal = ${Nt}`});let St=!1,_t=()=>{St=!0,Nt||ie.preventDefault()};switch(He){case"KeyJ":case"ArrowLeft":{if(!Et)break;if(ie.ctrlKey||ie.altKey){let ot=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(ot),ot&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:ot.text}),_t()}else{let ot=ie.shiftKey?Te(!1):L.controls.seekStepKeyboard/1e3,Ht=Math.max(d()-ot,0);d()>0&&(E.actions.internal.seekTime(Ht,vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:ot.toString()}),_t())}break}case"KeyL":case"ArrowRight":{if(!Et)break;if(ie.ctrlKey||ie.altKey){let ot=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(ot),ot&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:ot.text}),_t()}else{let ot=ie.shiftKey?Te(!0):L.controls.seekStepKeyboard/1e3,Ht=Math.min(d()+ot,a());Math.round(d())<Math.round(a())&&(E.actions.internal.seekTime(Ht,vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:ot.toString()}),_t())}break}case"ArrowUp":{if(Ns({isAudioDisabled:$e,audioDisabledHintCallback:le,isAudioAvailable:p(),audioIsNotExistHintCallback:We,isAds:e.isAds})){let ot=f(),Ht=L.controls.volumeStepKeyboard,fi=ot<=1;if(gu(E,ot,Ht),fi){let qi=Math.round(Af(ot,Ht)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:qi}})}}_t();break}case"ArrowDown":{if(Ns({isAudioDisabled:$e,audioDisabledHintCallback:le,isAudioAvailable:p(),audioIsNotExistHintCallback:We,isAds:e.isAds})){let ot=f(),Ht=L.controls.volumeStepKeyboard,fi=ot>=0;if(hu(E,ot,Ht),fi){let qi=Math.round(Mf(ot,Ht)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:qi}})}}_t();break}case"Comma":{if(ie.shiftKey){E.actions.internal.decrementPlaybackRate();let ot=v().find(Ht=>Ht.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:ot==null?void 0:ot.displayValue}),_t()}else{if(Lt||n()!==Bs.PlaybackState.PAUSED)break;let ot=Math.max(d()-L.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(ot,vn.SeekAction.DOUBLE_TAP),_t())}break}case"Period":{if(ie.shiftKey){E.actions.internal.incrementPlaybackRate();let ot=v().find(Ht=>Ht.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:ot==null?void 0:ot.displayValue}),_t()}else{if(Lt||n()!==Bs.PlaybackState.PAUSED)break;let ot=Math.min(d()+L.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(ot,vn.SeekAction.DOUBLE_TAP),_t())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(b()&&w()&&qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let ot="PLAY";n()===Bs.PlaybackState.PAUSED?ot="PAUSE":y()&&(ot="REPLAY"),e.showHotKeyHelpers({type:ot})}_t();break;case"KeyM":{Ns({isAudioDisabled:$e,audioDisabledHintCallback:le,isAudioAvailable:p(),audioIsNotExistHintCallback:We,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),_t();break}case"KeyF":e.toggleFullscreen(),_t();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ci=T())==null?void 0:ci.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),_t();break;case"KeyI":E.actions.internal.togglePictureInPicture(),_t();break;case"Digit1":case"Numpad1":if(ie.shiftKey){let ot=m1(k());N.set(ot),Ve.set(ge),ue.set(!0),te.set(!0),_t();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,vn.SeekAction.DOUBLE_TAP),_t();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,vn.SeekAction.DOUBLE_TAP),_t();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,vn.SeekAction.DOUBLE_TAP),_t();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,vn.SeekAction.DOUBLE_TAP),_t();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,vn.SeekAction.DOUBLE_TAP),_t();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,vn.SeekAction.DOUBLE_TAP),_t();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,vn.SeekAction.DOUBLE_TAP),_t();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,vn.SeekAction.DOUBLE_TAP),_t();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,vn.SeekAction.DOUBLE_TAP),_t();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,vn.SeekAction.DOUBLE_TAP),_t();break;case"Slash":{ie.shiftKey&&L.features.hotKeyMapModal&&(e.showKeyMap(),_t());break}case"KeyN":ie.shiftKey&&P()&&(E.actions.internal.nextVideoClick(),_t());break;case"KeyP":ie.shiftKey&&I()&&(E.actions.internal.prevVideoClick(),_t());break;case"ShiftLeft":case"ShiftRight":_t();break;case"Tab":case"Escape":case"Enter":break;default:(0,_1.checkNever)(He);break}return St},rt=ie=>{let Nt=ie.code;if(ie.ctrlKey||ie.altKey||ie.metaKey)return;let ge=n()===Bs.PlaybackState.PLAYING||n()===Bs.PlaybackState.PAUSED,X=e.isAds&&(r()==="paused"||r()==="playing");if(ge||X)switch(Nt){case"ShiftLeft":case"ShiftRight":Xe=0;break}},nt=F("aria_label_video_player"),Rt=()=>{var ie;return(ie=s(oe))==null?void 0:ie.focus()},et=ie=>ie.type==="keydown"?Ke(ie,!0):(ie.type==="keyup"&&rt(ie),!1);var pt=n$();pt.__keyup=rt,pt.__keydown=[o$,Ke];var Yt=_(pt);be(Yt,()=>{var ie;return(ie=e.children)!=null?ie:ne}),g(pt),tt(pt,ie=>B(oe,ie),()=>s(oe)),O(()=>Oe(pt,"aria-label",nt)),$(t,pt);var oi=H({focus:Rt,handleExternalKeyboardEvent:et});return o(),oi}dt(["keyup","keydown"]);var s$=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),a$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
|
|
141
141
|
|
|
142
142
|
@keyframes svelte-1dbnjb1-dot_animation {
|
|
143
143
|
0% {
|
|
@@ -150,7 +150,7 @@ Try switching the\xA0quality to\xA0Auto.`},Xh=F_;var gs=new Map;gs.set(ll.Interf
|
|
|
150
150
|
opacity: 0.2;
|
|
151
151
|
}
|
|
152
152
|
}.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
|
|
153
|
-
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function
|
|
153
|
+
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ba(t,e){W(t,a$);let i=m(e,"style",3,"");var o=s$();O(()=>at(o,i())),$(t,o)}var l$=Ce('<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 Vf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=l$();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}var $a=require("@vkontakte/videoplayer-shared/es2018"),d$=t=>{t.stopPropagation()},c$=M("<button><!></button>"),u$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
|
|
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-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
|
|
156
156
|
|
|
@@ -158,22 +158,22 @@ Try switching the\xA0quality to\xA0Auto.`},Xh=F_;var gs=new Map;gs.set(ll.Interf
|
|
|
158
158
|
/* mobile */
|
|
159
159
|
/* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
|
|
160
160
|
.btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
|
|
161
|
-
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function
|
|
161
|
+
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Ot(t,e){D(e,!0),W(t,u$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),r=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),p=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),u=m(e,"click",3,$a.noop),b=m(e,"focus",3,$a.noop),w=m(e,"blur",3,$a.noop),y=h(()=>u()===$a.noop?null:I=>{I.stopPropagation(),u()(I)}),C=h(()=>b()===$a.noop?null:I=>{I.preventDefault(),b()()}),T=h(()=>w()===$a.noop?null:I=>{I.preventDefault(),w()()});var k=c$();k.__pointerdown=[d$],k.__click=function(...I){var E;(E=s(y))==null||E.apply(this,I)};var P=_(k);be(P,()=>{var I;return(I=e.children)!=null?I:ne}),g(k),tt(k,I=>a(I),()=>a()),O(()=>{var I,E,L,q,z,U,G,re;J(k,1,`btn ${(I=i())!=null?I:""}`,"svelte-wr0kwr"),at(k,o()||null),k.disabled=(E=n())!=null?E:null,Oe(k,"aria-hidden",(L=l())!=null?L:null),Oe(k,"aria-label",(q=d())!=null?q:null),Oe(k,"aria-keyshortcuts",(z=p())!=null?z:null),Oe(k,"aria-expanded",(U=f())!=null?U:null),Oe(k,"data-testid",(G=r())!=null?G:null),Oe(k,"tabindex",v()),Oe(k,"role",e.role),Oe(k,"aria-checked",(re=e.areaChecked)!=null?re:null)}),Ct("focus",k,function(...I){var E;(E=s(C))==null||E.apply(this,I)}),Ct("blur",k,function(...I){var E;(E=s(T))==null||E.apply(this,I)}),$(t,k),H()}dt(["pointerdown","click"]);var p$=M('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),f$=M('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),m$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function Rf(t,e){D(e,!0),W(t,m$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var r=f$(),l=_(r),d=_(l);{var a=u=>{var b=p$(),w=_(b),y=_(w,!0);g(w);var C=A(w,2);{var T=k=>{Ot(k,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(P,I)=>{Vf(P,{})},$$slots:{default:!0}})};V(C,k=>{o()&&k(T)})}g(b),O(()=>_e(y,e.title)),$(u,b)};V(d,u=>{i()&&u(a)})}var p=A(d,2),f=_(p),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:ne}),g(f),g(p),g(l),g(r),$(t,r),H()}var v$=new Set(["BR"]),b1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],l=r.tagName;v$.has(l)||(n=r.parentElement)==null||n.removeChild(r)}return e.innerHTML};var g$=M('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),h$=M('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),_$=M('<div class="hot-key-map svelte-quklnq"></div>'),b$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
|
|
162
162
|
.hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
|
|
163
|
-
.hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Rf(t,e){D(e,!1),W(t,b$);let[i,o]=Be(),n=()=>C(l,"$data",i),r=Ee(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Lr(),Vf(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var v=_$();yi(v,5,()=>n().groups,({title:p,items:$})=>p,(p,$)=>{let w=()=>s($).title,y=()=>s($).items;var S=h$(),T=_(S),k=_(T,!0);g(T);var P=A(T,2);yi(P,5,y,({description:I,value:E})=>E,(I,E)=>{let L=()=>s(E).description,q=()=>s(E).value;var z=g$(),U=_(z),G=_(U);ad(G,()=>_1(L())),g(U);var re=A(U,2),Y=_(re,!0);g(re),g(z),O(()=>he(Y,q())),b(I,z)}),g(P),g(S),O(()=>he(k,w())),b(p,S)}),g(v),b(u,v)},$$slots:{default:!0}}),H(),o()}var Pm=require("@vkontakte/videoplayer-shared/es2018");var Ia=require("@vkontakte/videoplayer-core/es2018");var bV=require("@vkontakte/videoplayer-shared/es2018");var $$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),y$={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function Nf(t,e){W(t,y$);var i=$$(),o=_(i);_e(o,()=>{var n;return(n=e.children)!=null?n:ne}),g(i),b(t,i)}var hl=require("@vkontakte/videoplayer-shared/es2018");var x$=Ce('<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 Bf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=x$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(2),g(o),b(t,o)}var w$=Ce('<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 Of(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=w$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(2),g(o),b(t,o)}var C$=Ce('<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 Df(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=C$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var S$=Ce('<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 kd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=S$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var T$=Ce('<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 Pd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=T$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(2),g(o),b(t,o)}var _u=t=>{switch(t){case hl.VideoQuality.Q_720P:return Df;case hl.VideoQuality.Q_1080P:return kd;case hl.VideoQuality.Q_1440P:return Pd;case hl.VideoQuality.Q_2160P:return Bf;case hl.VideoQuality.Q_4320P:return Of}};var E$=Ce('<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 Hf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=E$();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var I$=Ce('<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 Ff(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=I$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(2),g(o),b(t,o)}var k$=M('<div aria-hidden="true"><!> <!></div>'),P$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function Ad(t,e){D(e,!0),W(t,P$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=h(()=>_u(o())),r=h(()=>!!s(n)&&[kd,Pd].includes(s(n)));var l=He(),d=ve(l);{var a=f=>{Hf(f,{})},u=f=>{var v=k$();let p;var $=_(v);{var w=T=>{Nf(T,{children:(k,P)=>{var I=He(),E=ve(I);xi(E,()=>s(n),(L,q)=>{q(L,{})}),b(k,I)},$$slots:{default:!0}})};V($,T=>{s(n)&&T(w)})}var y=A($,2);let S=h(()=>s(n)?"settings-icon--labeled":"settings-icon");Ff(y,{get"data-testid"(){return s(S)},fill:"var(--btn-color, #fff)"}),g(v),O(T=>p=J(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:s(r)})]),b(f,v)};V(d,f=>{i()?f(a):f(u,!1)})}b(t,l),H()}var A$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),M$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function _l(t,e){D(e,!0),W(t,M$);let[i,o]=Be(),n=()=>C(e.ref$,"$ref$",i),r=()=>C(f,"$settingsMenuVisible",i),l=()=>C($,"$isMobile",i),d=()=>C(u,"$currentQuality",i),a=Ee(),u=a.state.currentQuality$,f=a.ui.settingsMenu.visible$,v=a.actions.internal.openSettingsMenu,p=a.actions.internal.closeSettingsMenu,$=a.ui.isMobile,w=a.ui.t,y=j(void 0);ze(()=>{n()&&Et(()=>{e.ref$.set(s(y))})});let S=w("aria_label_settings");async function T(P){let I=Bs(P);r()?p():v(I,yo)}let k=h(()=>r()?"opened":"");Bt(t,{get className(){return s(k)},testId:"btn-settings",click:T,get ariaLabel(){return S},get ariaExpanded(){return r()},get ref(){return s(y)},set ref(P){B(y,P,!0)},children:(P,I)=>{var E=A$(),L=_(E);Ad(L,{get isMobile(){return l()},get currentQuality(){return d()}}),g(E),b(P,E)},$$slots:{default:!0}}),H(),o()}var L$=Ce('<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 Uf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=L$();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var V$=Ce('<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 Md(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=V$();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}function zf(t,e){D(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,r=h(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Bt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(r)},get click(){return e.click},get ariaKeyShortCut(){return ts.KeyC},role:"button",children:(l,d)=>{var a=He(),u=ve(a);{var f=p=>{Uf(p,{})},v=p=>{Md(p,{})};V(u,p=>{i()?p(f):p(v,!1)})}b(l,a)},$$slots:{default:!0}}),H()}var R$=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),N$=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),B$={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function Ld(t,e){D(e,!0),W(t,B$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),r=h(()=>vn(e.duration)),l=h(()=>vn(e.position));var d=N$();let a;var u=_(d),f=_(u,!0);g(u);var v=A(u,2);{var p=$=>{var w=R$(),y=_(w,!0);g(w),O(()=>he(y,s(r))),b($,w)};V(v,$=>{o()&&$(p)})}g(d),ot(d,$=>n($),()=>n()),O($=>{a=J(d,1,"time svelte-sz9er7",null,a,$),he(f,s(l))},[()=>({mobile:i()})]),b(t,d),H()}var Rd=require("@vkontakte/videoplayer-shared/es2018");var O$=Ce('<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>'),D$={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
|
+
.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 Nf(t,e){D(e,!1),W(t,b$);let[i,o]=Be(),n=()=>S(l,"$data",i),r=Ee(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Mr(),Rf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var v=_$();wi(v,5,()=>n().groups,({title:u,items:b})=>u,(u,b)=>{let w=()=>s(b).title,y=()=>s(b).items;var C=h$(),T=_(C),k=_(T,!0);g(T);var P=A(T,2);wi(P,5,y,({description:I,value:E})=>E,(I,E)=>{let L=()=>s(E).description,q=()=>s(E).value;var z=g$(),U=_(z),G=_(U);ad(G,()=>b1(L())),g(U);var re=A(U,2),Y=_(re,!0);g(re),g(z),O(()=>_e(Y,q())),$(I,z)}),g(P),g(C),O(()=>_e(k,w())),$(u,C)}),g(v),$(p,v)},$$slots:{default:!0}}),H(),o()}var Am=require("@vkontakte/videoplayer-shared/es2018");var Ea=require("@vkontakte/videoplayer-core/es2018");var bV=require("@vkontakte/videoplayer-shared/es2018");var $$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),y$={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function Bf(t,e){W(t,y$);var i=$$(),o=_(i);be(o,()=>{var n;return(n=e.children)!=null?n:ne}),g(i),$(t,i)}var _l=require("@vkontakte/videoplayer-shared/es2018");var x$=Ce('<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 Of(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=x$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}var w$=Ce('<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 Df(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=w$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}var S$=Ce('<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 Hf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=S$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var C$=Ce('<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 kd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=C$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var T$=Ce('<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 Pd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=T$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}var _u=t=>{switch(t){case _l.VideoQuality.Q_720P:return Hf;case _l.VideoQuality.Q_1080P:return kd;case _l.VideoQuality.Q_1440P:return Pd;case _l.VideoQuality.Q_2160P:return Of;case _l.VideoQuality.Q_4320P:return Df}};var E$=Ce('<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 Ff(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=E$();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var I$=Ce('<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 Uf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=I$();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}var k$=M('<div aria-hidden="true"><!> <!></div>'),P$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function Ad(t,e){D(e,!0),W(t,P$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=h(()=>_u(o())),r=h(()=>!!s(n)&&[kd,Pd].includes(s(n)));var l=Fe(),d=ve(l);{var a=f=>{Ff(f,{})},p=f=>{var v=k$();let u;var b=_(v);{var w=T=>{Bf(T,{children:(k,P)=>{var I=Fe(),E=ve(I);Si(E,()=>s(n),(L,q)=>{q(L,{})}),$(k,I)},$$slots:{default:!0}})};V(b,T=>{s(n)&&T(w)})}var y=A(b,2);let C=h(()=>s(n)?"settings-icon--labeled":"settings-icon");Uf(y,{get"data-testid"(){return s(C)},fill:"var(--btn-color, #fff)"}),g(v),O(T=>u=J(v,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:s(r)})]),$(f,v)};V(d,f=>{i()?f(a):f(p,!1)})}$(t,l),H()}var A$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),M$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function bl(t,e){D(e,!0),W(t,M$);let[i,o]=Be(),n=()=>S(e.ref$,"$ref$",i),r=()=>S(f,"$settingsMenuVisible",i),l=()=>S(b,"$isMobile",i),d=()=>S(p,"$currentQuality",i),a=Ee(),p=a.state.currentQuality$,f=a.ui.settingsMenu.visible$,v=a.actions.internal.openSettingsMenu,u=a.actions.internal.closeSettingsMenu,b=a.ui.isMobile,w=a.ui.t,y=j(void 0);ze(()=>{n()&&It(()=>{e.ref$.set(s(y))})});let C=w("aria_label_settings");async function T(P){let I=Rs(P);r()?u():v(I,So)}let k=h(()=>r()?"opened":"");Ot(t,{get className(){return s(k)},testId:"btn-settings",click:T,get ariaLabel(){return C},get ariaExpanded(){return r()},get ref(){return s(y)},set ref(P){B(y,P,!0)},children:(P,I)=>{var E=A$(),L=_(E);Ad(L,{get isMobile(){return l()},get currentQuality(){return d()}}),g(E),$(P,E)},$$slots:{default:!0}}),H(),o()}var L$=Ce('<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 zf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=L$();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var V$=Ce('<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 Md(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=V$();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}function Wf(t,e){D(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,r=h(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Ot(t,{testId:"btn-Subtitles",get ariaLabel(){return s(r)},get click(){return e.click},get ariaKeyShortCut(){return es.KeyC},role:"button",children:(l,d)=>{var a=Fe(),p=ve(a);{var f=u=>{zf(u,{})},v=u=>{Md(u,{})};V(p,u=>{i()?u(f):u(v,!1)})}$(l,a)},$$slots:{default:!0}}),H()}var R$=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),N$=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),B$={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function Ld(t,e){D(e,!0),W(t,B$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),r=h(()=>mn(e.duration)),l=h(()=>mn(e.position));var d=N$();let a;var p=_(d),f=_(p,!0);g(p);var v=A(p,2);{var u=b=>{var w=R$(),y=_(w,!0);g(w),O(()=>_e(y,s(r))),$(b,w)};V(v,b=>{o()&&b(u)})}g(d),tt(d,b=>n(b),()=>n()),O(b=>{a=J(d,1,"time svelte-sz9er7",null,a,b),_e(f,s(l))},[()=>({mobile:i()})]),$(t,d),H()}var Rd=require("@vkontakte/videoplayer-shared/es2018");var O$=Ce('<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>'),D$={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),
|
|
164
164
|
.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),
|
|
165
|
-
.icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function
|
|
165
|
+
.icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Os(t,e){W(t,D$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",r=h(()=>n(i(),o()));var l=O$();O(()=>{var d;Oe(l,"data-value",s(r)),Oe(l,"data-testid",`volume-${(d=s(r))!=null?d:""}-icon`)}),$(t,l)}var Ho=require("@vkontakte/videoplayer-shared/es2018");var bu=require("@vkontakte/videoplayer-shared/es2018");var $1=require("@vkontakte/videoplayer-shared/es2018");var H$=M('<div class="overlay"><!></div>');function qf(t,e){D(e,!0);let[i,o]=Be(),n=()=>S(l,"$overlayContainer$",i),l=Ee().ui.overlayContainer$,d=j(void 0),a=u=>{!u||!s(d)||!u.contains(s(d))||u.removeChild(s(d))},p=u=>{!u||!s(d)||u.contains(s(d))||u.appendChild(s(d))};ze(()=>{p(n())}),Dt(()=>(p(n()),()=>a(n())));var f=H$(),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:ne}),g(f),tt(f,u=>B(d,u),()=>s(d)),$(t,f),H(),o()}var F$=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),U$=M("<div><!></div> <!>",1),z$={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function ya(t,e){D(e,!0),W(t,z$);let[i,o]=Be(),n=()=>S(G,"$overlayContainer$",i),r=()=>S(U,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),p=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),b=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,$1.noop),y=5,C=j(void 0),T=j(void 0),k,P=j(0),I=j(0),E=j(0),L=j(0),q=zt(),z=Ee(),U=z.ui.playerSize,G=z.ui.overlayContainer$;ze(()=>{It(()=>{w()(a())})});let re=z.getLogger().createComponentLog("Tooltip component"),Y=()=>{if(!n()||!s(T)||!s(C))return;B(I,y);let Ie=n().getBoundingClientRect(),oe=s(C).getBoundingClientRect(),Te=oe.width,Ke=s(T).clientWidth,rt=r().width,nt=(Te-Ke)/2,Rt=oe.left+p()-Ie.left,et=Rt+nt,pt=oe.top+f()-Ie.top,Yt=Ke/2-y,oi=et<8,Qt=et+Ke>rt-8;oi&&(et=8,Yt=Rt+oe.width/2-2.5*y),Qt&&(et=rt-8-Ke,Yt=oe.left-Ie.left+oe.width/2-et-y),B(E,et,!0),B(L,pt),B(P,Yt,!0)},ce=()=>{!n()||!s(T)||!s(C)||B(I,-y)},ae=()=>{if(!n()||!s(T)||!s(C))return;B(P,y);let Ie=n().getBoundingClientRect(),oe=s(C).getBoundingClientRect(),Te=oe.height,Ke=s(T).clientHeight,rt=(Te-Ke)/2+Ke,nt=oe.left+p()-Ie.left-s(T).clientWidth,Rt=2,et=nt-y;et<8&&(et=8);let Yt=oe.top+f()-Ie.top+rt,oi=Rt-rt/2,Qt=Rt-y;B(E,et,!0),B(L,Yt),B(I,oi),B(P,Qt)},Ae=()=>{!n()||!s(T)||!s(C)||B(P,-y)},Re=()=>{switch(b()){case"top":Y();break;case"bottom":ce();break;case"left":ae();break;default:Ae()}},me=()=>{try{if(!n()||!s(C))return;Re(),a(!0)}catch(Ie){re({message:String(Ie)})}},ue=()=>{a(!1)},Ve=()=>{s(T)&&(k||(k=window.setTimeout(me,q.controls.hideTimeoutTooltips)),a()&&me())},te=()=>{ue(),window.clearTimeout(k),k=void 0},N=(Ie,oe,Te)=>{let Ke="";switch(b()){case"top":Ke=`transform: translate(${Ie}px, ${oe}px);`;break;case"bottom":Ke=`transform: translate(${Ie}px, ${oe}px); top: auto; bottom: 100%;`;break;case"left":Ke=`transform: translate(${Ie}px, ${oe}px); left: 0; right: auto;`;break;default:Ke=`transform: translate(${Ie}px, ${oe}px);`}return Ke+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ke+=` opacity: ${Te?1:0}; visibility: ${Te?"visible":"hidden"}`,Ke},Qe=(Ie,oe)=>{let Te="";switch(b()){case"top":Te=`transform: translate(${Ie}px, ${oe}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Te=`transform: translate(${Ie}px, ${oe}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Te=`transform: translate(${Ie}px, ${oe}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Te=`transform: translate(${Ie}px, ${oe}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Te},ee=h(()=>N(s(E),s(L),a())),We=h(()=>Qe(s(P),s(I)));Dt(Re),Cn(()=>window.clearTimeout(k));var le=U$(),pe=ve(le);let $e;pe.__mousemove=Ve,pe.__mousedown=te,pe.__mouseup=Ve;var Z=_(pe);be(Z,()=>{var Ie;return(Ie=e.children)!=null?Ie:ne}),g(pe),tt(pe,Ie=>B(C,Ie),()=>s(C));var qe=A(pe,2);{var Xe=Ie=>{qf(Ie,{children:(oe,Te)=>{var Ke=F$(),rt=_(Ke),nt=_(rt,!0);g(rt);var Rt=A(rt,2);g(Ke),tt(Ke,et=>B(T,et),()=>s(T)),O(()=>{at(Ke,s(ee)),_e(nt,d()),at(Rt,s(We))}),$(oe,Ke)},$$slots:{default:!0}})};V(qe,Ie=>{d()&&!l()&&Ie(Xe)})}O(Ie=>$e=J(pe,1,"tooltip-wrapper svelte-hxlyne",null,$e,Ie),[()=>({"full-width":v()})]),Ct("mouseenter",pe,Ve),Ct("mouseleave",pe,te),$(t,le),H(),o()}dt(["mousemove","mousedown","mouseup"]);var y1=t=>{t.stopPropagation()},W$=M("<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 Do(t,e){D(e,!0),W(t,q$);let[i,o]=Be(),n=()=>S(p,"$isGraphOpened$",i),r=()=>S(a,"$isMobile",i),l=Ee(),d=go(),a=l.ui.isMobile,p=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),u=m(e,"disabled",3,!1),b=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),y=m(e,"width",15,void 0),C=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),k=m(e,"tooltipActive",3,!1),P=m(e,"tooltipPlacement",3,"top"),I=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),L=m(e,"onTooltipVisibilityChange",3,bu.noop),q=m(e,"initialTranslateXPx",3,0),z=m(e,"initialTranslateYPx",19,()=>-18),U=m(e,"mouseEnter",3,bu.noop),G=m(e,"mouseLeave",3,bu.noop),re=h(()=>u()?n()?f("tooltip_disabled_when_graph_on"):I():T());var Y=W$();Y.__pointerdown=[y1],Y.__click=[y1];var ce=_(Y);{var ae=Re=>{ya(Re,{get content(){return s(re)},get translateX(){return q()},get translateY(){return z()},get isFullWidthWrapper(){return C()},get active(){return k()},get placement(){return P()},get onVisibilityChange(){return L()},children:(me,ue)=>{var Ve=Fe(),te=ve(Ve);be(te,()=>{var N;return(N=e.children)!=null?N:ne}),$(me,Ve)},$$slots:{default:!0}})},Ae=Re=>{var me=Fe(),ue=ve(me);be(ue,()=>{var Ve;return(Ve=e.children)!=null?Ve:ne}),$(Re,me)};V(ce,Re=>{b()&&s(re)&&!r()?Re(ae):Re(Ae,!1)})}g(Y),tt(Y,Re=>w(Re),()=>w()),O(()=>{var Re;J(Y,1,`btn-container ${(Re=v())!=null?Re:""}`,"svelte-p9r045"),Oe(Y,"aria-hidden",E()||null)}),Ct("mouseenter",Y,function(...Re){var me;(me=U())==null||me.apply(this,Re)}),Ct("mouseleave",Y,function(...Re){var me;(me=G())==null||me.apply(this,Re)}),Jr(Y,"clientWidth",y),$(t,Y),H(),o()}dt(["pointerdown","click"]);var K$=Ce('<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 Vd(t,e){"use strict";var i=K$(),o=_(i),n=A(o);g(i),O(()=>{Oe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Oe(o,"fill-opacity",e.completed?1:.24),Oe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var Q$=M("<div><!></div>"),G$={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function Kf(t,e){D(e,!0),W(t,G$);let o=Ee().ui.t,n=j(0),r=h(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Do(t,{get tooltipContent(){return s(r)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return s(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=Q$();let p;var f=_(a);let v=h(()=>!!e.videoEpisode.completed);Vd(f,{get completed(){return s(v)}}),g(a),O(u=>{p=J(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),at(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Jr(a,"clientWidth",u=>B(n,u)),$(l,a)},$$slots:{default:!0}}),H()}var Y$=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),j$=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),Z$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
|
|
166
166
|
.video-episode-loaded.svelte-1u6kv8l,
|
|
167
|
-
.video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function
|
|
167
|
+
.video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Qf(t,e){W(t,Z$);let i=m(e,"videoEpisodes",19,()=>[]);var o=j$();wi(o,21,i,n=>n.from,(n,r)=>{var l=Y$();let d;var a=_(l),p=_(a),f=A(p,2);let v;g(a),g(l),O((u,b)=>{d=J(l,1,"video-episode svelte-1u6kv8l",null,d,u),at(l,`left: ${s(r).from}%; width: ${s(r).width}%`),at(p,`transform: translateX(${s(r).loadedWidth/s(r).width*100}%)`),v=J(f,1,"video-episode-filled svelte-1u6kv8l",null,v,b),at(f,`transform: translateX(${s(r).filledWidth/s(r).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,l)}),g(o),$(t,o)}function X$(t,e,i,o,n,r,l){if(t.preventDefault(),e()&&B(i,e().getBoundingClientRect(),!0),o()||s(n)||!e())return;B(n,!0);let d=r(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function J$(t,e,i,o,n,r,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),p=o(t.clientX);n()(a,p,s(r).width),s(l)&&d()(a)}function e2(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;B(i,!1);let r=o(t.clientX,t.clientY);n()(r)}function t2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var i2=M("<div></div>"),o2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),n2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),r2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
|
|
168
168
|
/* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
|
|
169
169
|
.slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
|
|
170
170
|
.slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
|
|
171
171
|
.slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
|
|
172
|
-
.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function wa(t,e){D(e,!0),W(t,r2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),r=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),u=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),$=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,Oo.noop),S=m(e,"onHandleMove",3,Oo.noop),T=m(e,"onPointerUp",3,Oo.noop),k=m(e,"onPointerEnter",3,Oo.noop),P=m(e,"onPointerMove",3,Oo.noop),I=m(e,"onPointerLeave",3,Oo.noop),E=m(e,"onMouseEnter",3,Oo.noop),L=m(e,"onMouseLeave",3,Oo.noop),q=m(e,"onWheelUp",3,Oo.noop),z=m(e,"onWheelDown",3,Oo.noop),U=m(e,"onWheelLeft",3,Oo.noop),G=m(e,"onWheelRight",3,Oo.noop),re=m(e,"onDisabledClick",3,Oo.noop),Y=m(e,"loadedProgress",3,0),ce=m(e,"filledProgress",3,0),ae=m(e,"handleProgress",3,0),Ae=m(e,"ariaLabel",3,""),Ve=m(e,"ariaValueMin",3,void 0),me=m(e,"ariaValueMax",3,void 0),ue=m(e,"ariaValueNow",3,void 0),Le=m(e,"ariaValueText",3,""),te=Ut(),N=j(void 0),Qe=j(!1),ee=h(()=>{var X;return(X=me())!=null?X:0}),We=h(()=>{var X;return(0,Oo.isNonNullable)(f())&&((X=f()[f().length-1])==null?void 0:X.time)<s(ee)}),le=h(()=>(0,Oo.isNonNullable)(f())&&f().length&&s(We)&&s(ee)?Te(Y()*100,ce()*100):[]);function pe(X){if(X.preventDefault(),i()&&B(N,i().getBoundingClientRect(),!0),$())return;let xe=Ie(X.clientX,X.clientY),De=oe(X.clientX);k()(xe,De,s(N).width)}function be(X){X.preventDefault(),!$()&&I()()}function Z(){E()()}function qe(){L()()}function Ze(X){$()||v()&&(X.preventDefault(),X.deltaY<0?q()():X.deltaY>0?z()():X.deltaX>0?G()():U()())}function Ie(X,xe){return l()?Math.max(0,Math.min(1,(s(N).height-(xe-s(N).top))/s(N).height)):Math.min(Math.max(X-s(N).x,0),s(N).width)/s(N).width}function oe(X){return Math.min(Math.max(X-s(N).x,0),s(N).width)}function Te(X,xe){let De=te.features.episodesClustering&&!p()?te.episodeMinWidthPc:0,fe=[],Re=f()[0].time/s(ee)*100,Je=0,Fe=0;for(let xt=1;xt<f().length;xt++)Je=f()[xt].time/s(ee)*100,Je-Re>De&&(fe.push({from:Re,width:Math.max(0,Je-Re),loadedWidth:Math.max(0,Math.min(Je,X)-Re),filledWidth:Math.max(0,Math.min(Je,xe)-Re),interactive:f()[xt-1].interactive,completed:f()[xt-1].completed}),Re=f()[xt].time/s(ee)*100,Fe++);let Mt={from:Re,width:Math.max(0,100-Re),loadedWidth:Math.max(0,Math.min(X,100)-Re),filledWidth:Math.max(0,Math.min(xe,100)-Re),interactive:f()[Fe].interactive,completed:f()[Fe].completed};100-Re<De?(Fe-=1,fe[Fe].width+=100-Re,fe[Fe].loadedWidth+=Math.max(0,Math.min(X,100)-Re),fe[Fe].filledWidth+=Math.max(0,Math.min(xe,100)-Re)):fe[Fe]=Mt;let Tt=f()[0].time;if(Tt!==0){let xt=Tt/s(ee)*100;fe.unshift({from:0,width:xt,loadedWidth:Math.min(xt,X),filledWidth:Math.min(xt,xe)})}return fe}function Ke(X){return Math.max(0,Math.min(100,X*100))}var rt=n2(),nt=ve(rt);{var Lt=X=>{var xe=i2();let De;yi(xe,21,()=>s(le),fe=>fe.from,(fe,Re)=>{var Je=He(),Fe=ve(Je);{var Mt=Tt=>{qf(Tt,{get videoEpisode(){return s(Re)},get disabled(){return $()}})};V(Fe,Tt=>{s(Re).interactive&&Tt(Mt)})}b(fe,Je)}),g(xe),O(fe=>De=J(xe,1,"interactive-icons svelte-1tpemng",null,De,fe),[()=>({mobile:a(),hidden:a()&&!s(Qe)})]),b(X,xe)};V(nt,X=>{p()&&X(Lt)})}var et=A(nt,2);let ct;et.__pointerdown=[X$,i,N,$,Qe,Ie,y],et.__pointermove=[J$,$,Ie,oe,P,N,Qe,S],et.__pointerup=[e2,$,Qe,Ie,T],et.__click=[t2,$,re,Ie];var Qt=_(et);{var ni=X=>{Kf(X,{get videoEpisodes(){return s(le)},get disabled(){return $()},get isMobile(){return a()}})},Kt=X=>{var xe=o2(),De=_(xe),fe=A(De,2);let Re;g(xe),O((Je,Fe,Mt)=>{st(De,Je),Re=J(fe,1,"filled svelte-1tpemng",null,Re,Fe),st(fe,Mt)},[()=>`transform: translateX(${Ke(Y())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Ke(ce())}%);`]),b(X,xe)};V(Qt,X=>{s(le).length?X(ni):X(Kt,!1)})}var St=A(Qt,2);let ie;var Vt=_(St);let ge;g(St),g(et),ot(et,X=>i(X),()=>i()),O((X,xe,De,fe)=>{var Re,Je;ct=J(et,1,`slider ${(Re=o())!=null?Re:""}`,"svelte-1tpemng",ct,X),Ne(et,"aria-label",Ae()),Ne(et,"aria-valuemin",Ve()),Ne(et,"aria-valuemax",me()),Ne(et,"aria-valuenow",ue()),Ne(et,"aria-valuetext",Le()),Ne(et,"data-testid",(Je=n())!=null?Je:null),ie=J(St,1,"handleWrap svelte-1tpemng",null,ie,xe),st(St,De),ge=J(Vt,1,"handle svelte-1tpemng",null,ge,fe)},[()=>({disabled:$(),"slider-dragging":s(Qe),hidden:r(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${Ke(ae())}%);`,()=>({"active-live":d()})]),Ct("pointerenter",et,pe),Ct("pointerleave",et,be),Ct("mouseenter",et,Z),Ct("mouseleave",et,qe),Ct("wheel",et,Ze),b(t,rt),H()}lt(["pointerdown","pointermove","pointerup","click"]);var Gi=(t,e)=>da[t]>=da[e],y1=(t,e)=>da[t]<da[e],Fs=(t,e)=>da[t]<=da[e],x1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var s2=M("<div><!></div>"),a2=M("<div><!> <!></div>"),l2={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function Qf(t,e){var Ie,oe;D(e,!0),W(t,l2);let[i,o]=Be(),n=()=>C(k,"$isAudioAvailable$",i),r=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),a=Ee(),u=Ut(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:$,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,S=(Ie=a.callbacks)==null?void 0:Ie.onAudioDoesNotExistHint,T=(oe=a.callbacks)==null?void 0:oe.onAudioDisabledHint,k=a.state.isAudioAvailable$,P=a.state.isAudioDisabled,I=a.ui.t,E=j(!1),L,q=h(()=>e.isAds||n()),z=h(()=>!s(q)||r()||l()===0),U=h(()=>Fs(d(),"s")),G=h(()=>s(U)?"":s(z)?!n()||P?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),re=h(()=>s(z)?I("tooltip_volume"):I("tooltip_volume_muted")),Y=h(()=>s(z)?0:l()),ce=!1,ae=h(()=>e.isAds?!1:P?!T:n()?!1:!S);function Ae(Te){$(),p(Te)}function Ve(){gu(a,l(),u.controls.volumeStepWheel)}function me(){hu(a,l(),u.controls.volumeStepWheel)}function ue(Te){p(Te)}function Le(Te){p(Te),w()}function te(){ce=!0}function N(){ce=!1,We()}function Qe(){clearTimeout(L),B(E,!0)}function ee(){We()}function We(){L=window.setTimeout(()=>{ce||B(E,!1)},u.controls.volumeBarTimeout)}function le(Te){Te.preventDefault(),Te.deltaY<0?Ve():Te.deltaY>0&&me()}var pe=a2();let be;var Z=_(pe);xa(Z,{get content(){return s(G)},translateY:-18,children:(Te,Ke)=>{let rt=h(()=>s(U)?"btn-volume-vertical":"btn-volume-horizontal");Bt(Te,{className:"btn-full-opacity",get disabled(){return s(ae)},get testId(){return s(rt)},get ariaLabel(){return s(re)},get click(){return e.click},get ariaKeyShortCut(){return ts.KeyM},role:"button",children:(nt,Lt)=>{Hs(nt,{get volume(){return l()},get muted(){return s(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var qe=A(Z,2);{var Ze=Te=>{var Ke=s2();let rt;var nt=_(Ke);let Lt=h(()=>s(U)?"volumeBar-slider-vertical":""),et=h(()=>s(U)&&!s(E)),ct=h(()=>s(U)?te:Rd.noop),Qt=h(()=>s(U)?N:Rd.noop),ni=h(()=>Math.round(s(Y)*100)),Kt=h(()=>`${Math.round(s(Y)*100)}%`),St=h(()=>s(U)?"volume-slider-vertical":"volume-slider");wa(nt,{get className(){return s(Lt)},get isHidden(){return s(et)},get isVertical(){return s(U)},withWheelHandler:!0,onWheelUp:Ve,onWheelDown:me,onPointerDown:Ae,onHandleMove:ue,onPointerUp:Le,get onPointerEnter(){return s(ct)},get onPointerLeave(){return s(Qt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(ni)},get ariaValueText(){return s(Kt)},get filledProgress(){return s(Y)},get handleProgress(){return s(Y)},get testId(){return s(St)}}),g(Ke),O(ie=>rt=J(Ke,1,"volumeBar svelte-1auih1j",null,rt,ie),[()=>({"volumeBar-vertical":s(U)})]),b(Te,Ke)};V(qe,Te=>{s(q)&&Te(Ze)})}g(pe),O(Te=>be=J(pe,1,"volumeBar-container svelte-1auih1j",null,be,Te),[()=>({vertical:s(U)})]),Ct("mouseenter",pe,function(...Te){var Ke;(Ke=s(U)?Qe:Rd.noop)==null||Ke.apply(this,Te)}),Ct("mouseleave",pe,function(...Te){var Ke;(Ke=s(U)?ee:Rd.noop)==null||Ke.apply(this,Te)}),Ct("wheel",pe,le),b(t,pe),H(),o()}var w1=require("@vkontakte/videoplayer-shared/es2018");var d2=Ce('<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 Gf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=d2();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var c2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
173
|
-
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function
|
|
172
|
+
.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function xa(t,e){D(e,!0),W(t,r2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),r=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),p=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),b=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,Ho.noop),C=m(e,"onHandleMove",3,Ho.noop),T=m(e,"onPointerUp",3,Ho.noop),k=m(e,"onPointerEnter",3,Ho.noop),P=m(e,"onPointerMove",3,Ho.noop),I=m(e,"onPointerLeave",3,Ho.noop),E=m(e,"onMouseEnter",3,Ho.noop),L=m(e,"onMouseLeave",3,Ho.noop),q=m(e,"onWheelUp",3,Ho.noop),z=m(e,"onWheelDown",3,Ho.noop),U=m(e,"onWheelLeft",3,Ho.noop),G=m(e,"onWheelRight",3,Ho.noop),re=m(e,"onDisabledClick",3,Ho.noop),Y=m(e,"loadedProgress",3,0),ce=m(e,"filledProgress",3,0),ae=m(e,"handleProgress",3,0),Ae=m(e,"ariaLabel",3,""),Re=m(e,"ariaValueMin",3,void 0),me=m(e,"ariaValueMax",3,void 0),ue=m(e,"ariaValueNow",3,void 0),Ve=m(e,"ariaValueText",3,""),te=zt(),N=j(void 0),Qe=j(!1),ee=h(()=>{var X;return(X=me())!=null?X:0}),We=h(()=>{var X;return(0,Ho.isNonNullable)(f())&&((X=f()[f().length-1])==null?void 0:X.time)<s(ee)}),le=h(()=>(0,Ho.isNonNullable)(f())&&f().length&&s(We)&&s(ee)?Te(Y()*100,ce()*100):[]);function pe(X){if(X.preventDefault(),i()&&B(N,i().getBoundingClientRect(),!0),b())return;let xe=Ie(X.clientX,X.clientY),He=oe(X.clientX);k()(xe,He,s(N).width)}function $e(X){X.preventDefault(),!b()&&I()()}function Z(){E()()}function qe(){L()()}function Xe(X){b()||v()&&(X.preventDefault(),X.deltaY<0?q()():X.deltaY>0?z()():X.deltaX>0?G()():U()())}function Ie(X,xe){return l()?Math.max(0,Math.min(1,(s(N).height-(xe-s(N).top))/s(N).height)):Math.min(Math.max(X-s(N).x,0),s(N).width)/s(N).width}function oe(X){return Math.min(Math.max(X-s(N).x,0),s(N).width)}function Te(X,xe){let He=te.features.episodesClustering&&!u()?te.episodeMinWidthPc:0,fe=[],Ne=f()[0].time/s(ee)*100,Je=0,Ue=0;for(let St=1;St<f().length;St++)Je=f()[St].time/s(ee)*100,Je-Ne>He&&(fe.push({from:Ne,width:Math.max(0,Je-Ne),loadedWidth:Math.max(0,Math.min(Je,X)-Ne),filledWidth:Math.max(0,Math.min(Je,xe)-Ne),interactive:f()[St-1].interactive,completed:f()[St-1].completed}),Ne=f()[St].time/s(ee)*100,Ue++);let Lt={from:Ne,width:Math.max(0,100-Ne),loadedWidth:Math.max(0,Math.min(X,100)-Ne),filledWidth:Math.max(0,Math.min(xe,100)-Ne),interactive:f()[Ue].interactive,completed:f()[Ue].completed};100-Ne<He?(Ue-=1,fe[Ue].width+=100-Ne,fe[Ue].loadedWidth+=Math.max(0,Math.min(X,100)-Ne),fe[Ue].filledWidth+=Math.max(0,Math.min(xe,100)-Ne)):fe[Ue]=Lt;let Et=f()[0].time;if(Et!==0){let St=Et/s(ee)*100;fe.unshift({from:0,width:St,loadedWidth:Math.min(St,X),filledWidth:Math.min(St,xe)})}return fe}function Ke(X){return Math.max(0,Math.min(100,X*100))}var rt=n2(),nt=ve(rt);{var Rt=X=>{var xe=i2();let He;wi(xe,21,()=>s(le),fe=>fe.from,(fe,Ne)=>{var Je=Fe(),Ue=ve(Je);{var Lt=Et=>{Kf(Et,{get videoEpisode(){return s(Ne)},get disabled(){return b()}})};V(Ue,Et=>{s(Ne).interactive&&Et(Lt)})}$(fe,Je)}),g(xe),O(fe=>He=J(xe,1,"interactive-icons svelte-1tpemng",null,He,fe),[()=>({mobile:a(),hidden:a()&&!s(Qe)})]),$(X,xe)};V(nt,X=>{u()&&X(Rt)})}var et=A(nt,2);let pt;et.__pointerdown=[X$,i,N,b,Qe,Ie,y],et.__pointermove=[J$,b,Ie,oe,P,N,Qe,C],et.__pointerup=[e2,b,Qe,Ie,T],et.__click=[t2,b,re,Ie];var Yt=_(et);{var oi=X=>{Qf(X,{get videoEpisodes(){return s(le)},get disabled(){return b()},get isMobile(){return a()}})},Qt=X=>{var xe=o2(),He=_(xe),fe=A(He,2);let Ne;g(xe),O((Je,Ue,Lt)=>{at(He,Je),Ne=J(fe,1,"filled svelte-1tpemng",null,Ne,Ue),at(fe,Lt)},[()=>`transform: translateX(${Ke(Y())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Ke(ce())}%);`]),$(X,xe)};V(Yt,X=>{s(le).length?X(oi):X(Qt,!1)})}var Tt=A(Yt,2);let ie;var Nt=_(Tt);let ge;g(Tt),g(et),tt(et,X=>i(X),()=>i()),O((X,xe,He,fe)=>{var Ne,Je;pt=J(et,1,`slider ${(Ne=o())!=null?Ne:""}`,"svelte-1tpemng",pt,X),Oe(et,"aria-label",Ae()),Oe(et,"aria-valuemin",Re()),Oe(et,"aria-valuemax",me()),Oe(et,"aria-valuenow",ue()),Oe(et,"aria-valuetext",Ve()),Oe(et,"data-testid",(Je=n())!=null?Je:null),ie=J(Tt,1,"handleWrap svelte-1tpemng",null,ie,xe),at(Tt,He),ge=J(Nt,1,"handle svelte-1tpemng",null,ge,fe)},[()=>({disabled:b(),"slider-dragging":s(Qe),hidden:r(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${Ke(ae())}%);`,()=>({"active-live":d()})]),Ct("pointerenter",et,pe),Ct("pointerleave",et,$e),Ct("mouseenter",et,Z),Ct("mouseleave",et,qe),Ct("wheel",et,Xe),$(t,rt),H()}dt(["pointerdown","pointermove","pointerup","click"]);var Ji=(t,e)=>la[t]>=la[e],x1=(t,e)=>la[t]<la[e],Ds=(t,e)=>la[t]<=la[e],w1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var s2=M("<div><!></div>"),a2=M("<div><!> <!></div>"),l2={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function Gf(t,e){var Ie,oe;D(e,!0),W(t,l2);let[i,o]=Be(),n=()=>S(k,"$isAudioAvailable$",i),r=()=>S(v,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(y,"$currentGridType$",i),a=Ee(),p=zt(),f=a.state.volume$,v=a.state.muted$,{setVolume:u,startVolumeChanging:b,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,C=(Ie=a.callbacks)==null?void 0:Ie.onAudioDoesNotExistHint,T=(oe=a.callbacks)==null?void 0:oe.onAudioDisabledHint,k=a.state.isAudioAvailable$,P=a.state.isAudioDisabled,I=a.ui.t,E=j(!1),L,q=h(()=>e.isAds||n()),z=h(()=>!s(q)||r()||l()===0),U=h(()=>Ds(d(),"s")),G=h(()=>s(U)?"":s(z)?!n()||P?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),re=h(()=>s(z)?I("tooltip_volume"):I("tooltip_volume_muted")),Y=h(()=>s(z)?0:l()),ce=!1,ae=h(()=>e.isAds?!1:P?!T:n()?!1:!C);function Ae(Te){b(),u(Te)}function Re(){gu(a,l(),p.controls.volumeStepWheel)}function me(){hu(a,l(),p.controls.volumeStepWheel)}function ue(Te){u(Te)}function Ve(Te){u(Te),w()}function te(){ce=!0}function N(){ce=!1,We()}function Qe(){clearTimeout(L),B(E,!0)}function ee(){We()}function We(){L=window.setTimeout(()=>{ce||B(E,!1)},p.controls.volumeBarTimeout)}function le(Te){Te.preventDefault(),Te.deltaY<0?Re():Te.deltaY>0&&me()}var pe=a2();let $e;var Z=_(pe);ya(Z,{get content(){return s(G)},translateY:-18,children:(Te,Ke)=>{let rt=h(()=>s(U)?"btn-volume-vertical":"btn-volume-horizontal");Ot(Te,{className:"btn-full-opacity",get disabled(){return s(ae)},get testId(){return s(rt)},get ariaLabel(){return s(re)},get click(){return e.click},get ariaKeyShortCut(){return es.KeyM},role:"button",children:(nt,Rt)=>{Os(nt,{get volume(){return l()},get muted(){return s(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var qe=A(Z,2);{var Xe=Te=>{var Ke=s2();let rt;var nt=_(Ke);let Rt=h(()=>s(U)?"volumeBar-slider-vertical":""),et=h(()=>s(U)&&!s(E)),pt=h(()=>s(U)?te:Rd.noop),Yt=h(()=>s(U)?N:Rd.noop),oi=h(()=>Math.round(s(Y)*100)),Qt=h(()=>`${Math.round(s(Y)*100)}%`),Tt=h(()=>s(U)?"volume-slider-vertical":"volume-slider");xa(nt,{get className(){return s(Rt)},get isHidden(){return s(et)},get isVertical(){return s(U)},withWheelHandler:!0,onWheelUp:Re,onWheelDown:me,onPointerDown:Ae,onHandleMove:ue,onPointerUp:Ve,get onPointerEnter(){return s(pt)},get onPointerLeave(){return s(Yt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(oi)},get ariaValueText(){return s(Qt)},get filledProgress(){return s(Y)},get handleProgress(){return s(Y)},get testId(){return s(Tt)}}),g(Ke),O(ie=>rt=J(Ke,1,"volumeBar svelte-1auih1j",null,rt,ie),[()=>({"volumeBar-vertical":s(U)})]),$(Te,Ke)};V(qe,Te=>{s(q)&&Te(Xe)})}g(pe),O(Te=>$e=J(pe,1,"volumeBar-container svelte-1auih1j",null,$e,Te),[()=>({vertical:s(U)})]),Ct("mouseenter",pe,function(...Te){var Ke;(Ke=s(U)?Qe:Rd.noop)==null||Ke.apply(this,Te)}),Ct("mouseleave",pe,function(...Te){var Ke;(Ke=s(U)?ee:Rd.noop)==null||Ke.apply(this,Te)}),Ct("wheel",pe,le),$(t,pe),H(),o()}var S1=require("@vkontakte/videoplayer-shared/es2018");var d2=Ce('<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 Yf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=d2();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var c2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
173
|
+
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function jf(t,e){W(t,c2);let i=m(e,"isFullscreen",8,!1),o=Ir(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Yf(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function Nd(t,e){D(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,S1.noop),n=Ee(),r=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=h(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ot(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:p=>{let f=Rs(p);r.set(f),o()()},get ariaKeyShortCut(){return es.KeyF},role:"button",children:(p,f)=>{jf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var u2=Ce('<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 Zf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=u2();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var p2=Ce('<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 Xf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=p2();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(4),g(o),$(t,o)}var f2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
|
|
174
174
|
svg[data-testid="vk-video-logo-icon--short"] ._en,
|
|
175
175
|
svg[data-testid="vk-video-logo-icon"] ._en,
|
|
176
|
-
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Xf(t,e){W(t,f2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",r=21,l=h(()=>!o()&&!i()?91:i()?r:95),d=h(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=h(()=>`0 0 ${s(l)+1} 24`);Zf(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}})}function Bd(t,e){D(e,!0);let[i,o]=Be(),n=()=>C($,"$isMobile",i),r=()=>C(p,"$currentGridType$",i),l=()=>C(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=Ut(),v=Ee(),p=v.ui.currentGridType$,$=v.ui.isMobile,w=v.ui.t,y=v.isCyrillicRelatedInterface$,S=h(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=h(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),k=h(()=>(n()||Fs(r(),"l"))&&s(T)),P=()=>{var L,q;e.click(),(L=v.callbacks)!=null&&L.onLogoClicked?(q=v.callbacks)==null||q.onLogoClicked():u()&&window.open(u(),"_blank")},I=h(()=>!a()),E=h(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Bt(t,{className:"btn-full-opacity",get disabled(){return s(I)},click:P,get testId(){return s(E)},get ariaLabel(){return s(S)},get ref(){return d()},set ref(L){d(L)},children:(L,q)=>{var z=He(),U=ve(z);{var G=Y=>{Xf(Y,{get short(){return s(k)},get isCyrillic(){return l()}})},re=Y=>{jf(Y,{})};V(U,Y=>{s(T)?Y(G):Y(re,!1)})}b(L,z)},$$slots:{default:!0}}),H(),o()}var C1=require("@vkontakte/videoplayer-core/es2018");var Jf=require("@vkontakte/videoplayer-core/es2018"),v2=Ce('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),g2=Ce('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),h2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
|
|
176
|
+
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Jf(t,e){W(t,f2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",r=21,l=h(()=>!o()&&!i()?91:i()?r:95),d=h(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=h(()=>`0 0 ${s(l)+1} 24`);Xf(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}})}function Bd(t,e){D(e,!0);let[i,o]=Be(),n=()=>S(b,"$isMobile",i),r=()=>S(u,"$currentGridType$",i),l=()=>S(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),p=m(e,"targetUrl",3,""),f=zt(),v=Ee(),u=v.ui.currentGridType$,b=v.ui.isMobile,w=v.ui.t,y=v.isCyrillicRelatedInterface$,C=h(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=h(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),k=h(()=>(n()||Ds(r(),"l"))&&s(T)),P=()=>{var L,q;e.click(),(L=v.callbacks)!=null&&L.onLogoClicked?(q=v.callbacks)==null||q.onLogoClicked():p()&&window.open(p(),"_blank")},I=h(()=>!a()),E=h(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Ot(t,{className:"btn-full-opacity",get disabled(){return s(I)},click:P,get testId(){return s(E)},get ariaLabel(){return s(C)},get ref(){return d()},set ref(L){d(L)},children:(L,q)=>{var z=Fe(),U=ve(z);{var G=Y=>{Jf(Y,{get short(){return s(k)},get isCyrillic(){return l()}})},re=Y=>{Zf(Y,{})};V(U,Y=>{s(T)?Y(G):Y(re,!1)})}$(L,z)},$$slots:{default:!0}}),H(),o()}var C1=require("@vkontakte/videoplayer-core/es2018");var em=require("@vkontakte/videoplayer-core/es2018"),v2=Ce('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),g2=Ce('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),h2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
|
|
177
177
|
animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
|
|
178
178
|
animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
|
|
179
179
|
animation-name: svelte-8z1bf5-wave3;}
|
|
@@ -221,9 +221,9 @@ Try switching the\xA0quality to\xA0Auto.`},Xh=F_;var gs=new Map;gs.set(ll.Interf
|
|
|
221
221
|
100% {
|
|
222
222
|
opacity: 1;
|
|
223
223
|
}
|
|
224
|
-
}`};function
|
|
224
|
+
}`};function tm(t,e){D(e,!0),W(t,h2);let i=m(e,"isMobile",3,!1),o=h(()=>e.iconState===em.ChromecastState.CONNECTED),n=h(()=>e.iconState===em.ChromecastState.CONNECTING);var r=Fe(),l=ve(r);{var d=p=>{var f=v2(),v=_(f),u=_(v),b=_(u);Se(),g(u);var w=A(u);Se(),g(v);var y=A(v),C=_(y),T=_(C);g(C),Se(),g(y),g(f),O(()=>{Oe(b,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(w,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(T,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)")}),$(p,f)},a=p=>{var f=g2();let v;var u=_(f),b=A(_(u),5);let w;g(u),g(f),O((y,C)=>{v=J(f,0,"svelte-8z1bf5",null,v,y),w=J(b,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:s(n)}),()=>({hidden:!s(o)})]),$(p,f)};V(l,p=>{i()?p(d):p(a,!1)})}$(t,r),H()}var T1=require("@vkontakte/videoplayer-shared/es2018");function Od(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,T1.noop),l=Ee().ui.t,d=h(()=>e.state===C1.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ot(t,{get ariaLabel(){return s(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,p)=>{tm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var _2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),b2={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function im(t,e){W(t,b2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),r=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=j(void 0),p=j(void 0);function f(C){if(!s(p))return 0;let{width:T}=s(p).getBoundingClientRect(),k=T/2;return C<k?k+l():C>e.containerWidth-k?e.containerWidth-k-d():C}let v=h(()=>f(n()));var u=_2(),b=_(u);let w;var y=_(b);be(y,()=>{var C;return(C=e.children)!=null?C:ne}),g(b),tt(b,C=>B(p,C),()=>s(p)),g(u),tt(u,C=>B(a,C),()=>s(a)),O(C=>{at(u,`transform: translate(${s(v)}px, ${r()}px);`),w=J(b,1,"tooltip svelte-5ygsa2",null,w,C),at(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,u)}var $u=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var E1=t=>!!(Math.round(Math.abs(t)/90)%2),I1=t=>Math.abs(t)/90%4===1;var $2=M('<div class="preview svelte-1wqg760"></div>'),y2=M('<div class="time svelte-1wqg760"> </div>'),x2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),w2={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function om(t,e){D(e,!0),W(t,w2);let[i,o]=Be(),n=()=>S(w,"$rotateAlpha",i),r=()=>S(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),p=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),b=Ee(),w=b.ui.rotateAlpha,y=b.ui.playerSize,C=j(0),T=j(0),k=j(""),P=j(0),I=j(0),E=j(0),L=j(0),q=h(()=>$u(f(),v(),p())),z=h(()=>E1(n())),U=h(()=>I1(n())),G=h(ce),re=h(()=>(s(U)?1:-1)*(s(C)/2-s(T)/2)),Y=h(()=>s(re)*-1);ze(()=>{(pe=>{B(C,pe.width,!0),B(T,pe.height,!0)})(Ae())}),ze(()=>{(pe=>{B(k,pe.imgSrc,!0),B(P,pe.imgWidth,!0),B(I,pe.imgHeight,!0),B(E,pe.imgOffsetX,!0),B(L,pe.imgOffsetY,!0)})(Re(f()))});function ce(){var qe;let pe=a()?l.MOBILE:l.DESKTOP,{isVertical:$e}=ae(),Z=30;return(qe=s(q))!=null&&qe.text&&(Z+=16),($e||s(z))&&(Z+=18,Z+=50),Math.min(Math.max(r().height-Z,0),pe)}function ae(){let pe=e.previewThumbsData.frameWidth,$e=e.previewThumbsData.frameHeight,Z=$e>pe;return{width:pe,height:$e,isHorizontal:!Z,isVertical:Z}}function Ae(){let{height:pe,isHorizontal:$e,isVertical:Z,width:qe}=ae();return $e&&(pe=pe/qe*s(G),qe=s(G)),Z&&(qe=qe/pe*s(G),pe=s(G)),{width:qe,height:pe}}function Re(pe){let $e;e.previewThumbsData.isUV?$e=Math.floor(v()*pe/e.previewThumbsData.frequency):$e=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*pe)));let Z=Math.floor($e/e.previewThumbsData.countPerImage),qe=Math.floor($e%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Xe=$e%e.previewThumbsData.countPerRow,Ie=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Ie=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Ie++);let oe=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(oe=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Te=s(C)*oe,Ke=s(T)*Ie,rt=-Xe*s(C),nt=-qe*s(T);return{imgSrc:e.previewThumbsData.links[Z],imgWidth:Te,imgHeight:Ke,imgOffsetX:rt,imgOffsetY:nt}}var me=x2();let ue;var Ve=_(me);{var te=pe=>{var $e=$2();O(()=>at($e,`width: ${s(C)}px; height: ${s(T)}px; background-image: url(${s(k)}); background-size: ${s(P)}px ${s(I)}px; background-position: ${s(E)}px ${s(L)}px;
|
|
225
225
|
transform: rotate(${n()}deg) ${s(z)?`translate(${s(re)}px, ${s(Y)}px)`:""};
|
|
226
|
-
`)),b(pe,be)};V(Le,pe=>{s(k)&&pe(te)})}var N=A(Le,2),Qe=_(N);{var ee=pe=>{var be=He(),Z=ve(be);{var qe=Ie=>{var oe=Jr();O(Te=>he(oe,Te),[()=>F("tooltip_episode_unfinished")]),b(Ie,oe)},Ze=Ie=>{var oe=Jr();O(()=>he(oe,s(q).text||"")),b(Ie,oe)};V(Z,Ie=>{p()&&s(q).completed===!1?Ie(qe):Ie(Ze,!1)})}b(pe,be)};V(Qe,pe=>{s(q)&&pe(ee)})}g(N);var We=A(N,2);{var le=pe=>{var be=y2(),Z=_(be,!0);g(be),O(()=>he(Z,d())),b(pe,be)};V(We,pe=>{p()||pe(le)})}g(me),O(pe=>{ue=J(me,1,"timeline-preview svelte-1wqg760",null,ue,pe),st(me,`width: ${s(z)?s(T):s(S)}px;`)},[()=>({mobile:a()})]),b(t,me),H(),o()}var C2=M('<span class="time svelte-1jr6obn"> </span>'),S2=M("<!> <!>",1),T2={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function om(t,e){var xe,De,fe,Re,Je;D(e,!0),W(t,T2);let[i,o]=Be(),n=()=>C(re,"$interactiveEpisodes$",i),r=()=>C(E,"$duration$",i),l=()=>C(I,"$position$",i),d=()=>C(ae,"$isInteractiveExpectation$",i),a=()=>C(ce,"$isInteractiveTime$",i),u=()=>C(L,"$isLive$",i),f=()=>C(z,"$isMobile",i),v=()=>C(q,"$isActiveLive$",i),p=()=>C(P,"$bufferedProgress$",i),$=()=>C(me,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=Ee(),k=Ut(),P=T.state.bufferedProgress$,I=T.state.positionWithScrubbing$,E=T.state.duration$,L=T.state.isLive$,q=T.state.isActiveLive$,z=T.ui.isMobile,U=k.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,G=T.actions.internal.getPreviewThumbsData(),re=T.state.interactiveEpisodes$,Y=T.state.isInteractive,ce=T.state.isInteractiveTime$,ae=T.state.isInteractiveExpectation$,Ae=T.actions.internal.correctSeekTimeToInteractive,Ve=(xe=T.callbacks)==null?void 0:xe.onDisabledTimelineClick,me=T.ui.controls.disabledControls$,ue=(fe=(De=T.callbacks)==null?void 0:De.uiInfo)==null?void 0:fe.onTimelineMouseEnter,Le=(Je=(Re=T.callbacks)==null?void 0:Re.uiInfo)==null?void 0:Je.onTimelineMouseLeave,te=T.ui.t,N=k.features.interactiveResponsiveUi,Qe=h(()=>Y?n():U),ee=h(()=>vn(r())),We=h(()=>vn(l())),le=h(()=>l()/r()),pe=h(()=>d()||a()),be=j(!1),Z=j(""),qe=j(0),Ze=j(0),Ie=j(0),oe=h(()=>({containerWidth:s(Ze),translateXPx:s(qe),translateYPx:Y&&G?-36:-16,active:s(be)&&w()&&!s(pe)&&!N,pointer:!k.features.timelinePreview||!G||u()})),Te=te("aria_timeline"),Ke=h(()=>te("aria_timeline_value",{position:s(We),duration:s(ee)}));function rt(Fe){return!Ae||!Y?Fe:Ae(Fe*r())/r()}function nt(Fe){T.actions.internal.startScrubbing(rt(Fe))}function Lt(Fe){a()||T.actions.internal.progressScrubbing(rt(Fe))}function et(Fe){T.actions.internal.completeScrubbing(rt(Fe)),B(be,!1)}function ct(Fe,Mt,Tt){Kt(Fe,Mt,Tt),B(be,!0)}function Qt(Fe,Mt,Tt){Kt(Fe,Mt,Tt),B(be,!0)}function ni(){B(be,!1)}function Kt(Fe,Mt,Tt){B(Ie,rt(Fe),!0),B(qe,Mt,!0),Tt&&B(Ze,Tt,!0),B(Z,St(Fe),!0)}function St(Fe){let Mt=vn((u()?1-Fe:Fe)*r());return u()?`-${Mt}`:Mt}var ie=S2(),Vt=ve(ie);tm(Vt,vs(()=>s(oe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Fe,Mt)=>{var Tt=He(),xt=ve(Tt);{var mt=ci=>{im(ci,{get time(){return s(Z)},get isMobile(){return f()},get videoEpisodes(){return s(Qe)},get previewThumbsData(){return G},get progress(){return s(Ie)},get duration(){return r()},get isInteractive(){return Y}})},Ai=ci=>{var it=C2(),Dt=_(it,!0);g(it),O(()=>he(Dt,s(Z))),b(ci,it)};V(xt,ci=>{k.features.timelinePreview&&G&&!u()?ci(mt):ci(Ai,!1)})}b(Fe,Tt)},$$slots:{default:!0}}));var ge=A(Vt,2);let X=h(()=>$().has("TIMELINE"));wa(ge,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Te},ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return l()},get ariaValueText(){return s(Ke)},get loadedProgress(){return p()},get filledProgress(){return s(le)},get handleProgress(){return s(le)},get videoEpisodes(){return s(Qe)},onPointerDown:nt,onHandleMove:Lt,onPointerMove:Qt,onPointerUp:et,onPointerEnter:ct,onPointerLeave:ni,get onMouseEnter(){return ue},get onMouseLeave(){return Le},get onDisabledClick(){return Ve},get isInteractive(){return Y},get disabled(){return s(X)},get hideHandel(){return a()},testId:"progress_bar",get ref(){return S()},set ref(Fe){S(Fe)}}),b(t,ie),H(),o()}var E2={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 Dd(t,e){D(e,!0),W(t,E2);let[i,o]=Be(),n=()=>C(a,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ee(),a=d.ui.isMobile,u=d.ui.t,f=h(()=>vn(l())),v=h(()=>vn(r())),p=h(()=>r()/l()),$=h(()=>u("aria_timeline_value",{position:s(v),duration:s(f)})),w=h(()=>Math.round(s(p)*100));wa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return s(w)},get ariaValueText(){return s($)},get filledProgress(){return s(p)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var I2=M("<div><!></div>"),k2=M("<div></div>"),P2={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 Ca(t,e){D(e,!0),W(t,P2);let[i,o]=Be(),n=()=>C($,"$isLive$",i),r=()=>C(S,"$isMobile",i),l=()=>C(y,"$adPosition",i),d=()=>C(w,"$adDuration",i),a=m(e,"isAds",3,!1),u=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),v=m(e,"ref",15,void 0),p=Ee(),$=p.state.isLive$,w=p.ads.duration,y=p.ads.position,S=p.ui.isMobile,T=h(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||a()));var k=He(),P=ve(k);{var I=L=>{var q=I2();let z;var U=_(q);{var G=Y=>{Dd(Y,{get position(){return l()},get duration(){return d()}})},re=Y=>{om(Y,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(T)},get withEpisodes(){return e.withEpisodes},get ref(){return v()},set ref(ce){v(ce)}})};V(U,Y=>{a()?Y(G):Y(re,!1)})}g(q),O(Y=>z=J(q,1,"timeline svelte-41cp6d",null,z,Y),[()=>({withoutPadding:!f(),mobile:r()})]),b(L,q)},E=L=>{var q=k2();let z;O(U=>z=J(q,1,"timeline-stub svelte-41cp6d",null,z,U),[()=>({mobile:r()})]),b(L,q)};V(P,L=>{s(T)?L(I):L(E,!1)})}b(t,k),H(),o()}var I1=require("@vkontakte/videoplayer-shared/es2018");var A2=Ce('<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 nm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=A2();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(3),g(o),b(t,o)}var M2=Ce('<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 rm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=M2();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var L2=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),V2=M('<span class="text svelte-1yhs2ga"> </span>'),R2=M('<span class="text count svelte-1yhs2ga"> </span>'),N2=M("<!> <!>",1),B2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Hd(t,e){var ae,Ae,Ve;D(e,!0),W(t,B2);let[i,o]=Be(),n=()=>C(w,"$currentGridType$",i),r=()=>C(y,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ee(),p=(Ae=(ae=v.callbacks)==null?void 0:ae.onEpisodeChanged)!=null?Ae:I1.noop,$=!!((Ve=v.callbacks)!=null&&Ve.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,k=v.ui.t,P=j(void 0),I=me=>{var Le,te,N;if(!!((Le=v.callbacks)!=null&&Le.onEpisodeClicked)){let Qe=Bs(me);y.set(Qe),S.set(!0),(N=(te=v.callbacks)==null?void 0:te.onEpisodeClicked)==null||N.call(te,Qe)}},E=j(null),L=h(()=>a()/u());ze(()=>{var ue;let me=$u(s(L),u(),f());me?((ue=s(E))==null?void 0:ue.time)!==me.time&&(p(me),B(E,me,!0)):B(E,null)});let q=h(()=>{var me;return((me=s(E))==null?void 0:me.text)||""}),z=h(()=>Gi(n(),"xl")?"FULL":Gi(n(),"m")&&y1(n(),"xl")?"COUNT":"SHORT"),U=h(()=>`${k("tooltip_episodes")}: ${s(q)}`),G=async(me,ue,Le)=>{await yo(),(me==null?void 0:me.getAttribute("aria-expanded"))==="false"&&ue&&!Le&&Et(()=>{y.set(!1),me.focus()})};ze(()=>{G(s(P),r(),l())});var re=He(),Y=ve(re);{var ce=me=>{let ue=h(()=>d()?"px-0":""),Le=h(()=>!$);Bt(me,{get className(){var te;return`w-max btn-full-opacity btn-jc-l ${(te=s(ue))!=null?te:""}`},testId:"btn-episodes",click:I,get disabled(){return s(Le)},get ariaExpanded(){return l()},get ariaLabel(){return s(U)},get ref(){return s(P)},set ref(te){B(P,te,!0)},children:(te,N)=>{var Qe=He(),ee=ve(Qe);{var We=pe=>{var be=L2(),Z=ve(be),qe=_(Z,!0);g(Z);var Ze=A(Z,2),Ie=_(Ze);rm(Ie,{}),g(Ze),O(()=>he(qe,s(q))),b(pe,be)},le=pe=>{var be=N2(),Z=ve(be);nm(Z,{});var qe=A(Z,2);{var Ze=oe=>{var Te=V2(),Ke=_(Te,!0);g(Te),O(()=>he(Ke,s(q))),b(oe,Te)},Ie=(oe,Te)=>{{var Ke=rt=>{var nt=R2(),Lt=_(nt,!0);g(nt),O(()=>he(Lt,f().length)),b(rt,nt)};V(oe,rt=>{s(z)==="COUNT"&&rt(Ke)},Te)}};V(qe,oe=>{s(z)==="FULL"?oe(Ze):oe(Ie,!1)})}b(pe,be)};V(ee,pe=>{d()?pe(We):pe(le,!1)})}b(te,Qe)},$$slots:{default:!0}})};V(Y,me=>{s(E)&&me(ce)})}b(t,re),H(),o()}var $m=require("@vkontakte/videoplayer-shared/es2018");var li=require("@vkontakte/videoplayer-core/es2018"),ut=require("@vkontakte/videoplayer-shared/es2018"),ns=require("@vkontakte/videoplayer-statistics/es2018");var Ye=require("@vkontakte/videoplayer-shared/es2018"),Yi=require("@vkontakte/videoplayer-shared/es2018");var k1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var O2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",yu=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 Yi.Subject,loadStarted$:new Yi.Subject,loadEnded$:new Yi.Subject,loadError$:new Yi.Subject,ready$:new Yi.Subject,slotRequested$:new Yi.Subject,started$:new Yi.Subject,timeRemained$:new Yi.Subject,paused$:new Yi.Subject,resumed$:new Yi.Subject,ended$:new Yi.Subject,empty$:new Yi.Subject,skipped$:new Yi.Subject,clicked$:new Yi.Subject,closed$:new Yi.Subject,error$:new Yi.Subject};this.loadAdman=e=>(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ye.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ye.now)()]}),o())};(0,Yi.addScript)(O2,e,this.loadTimeout).then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ye.now)()]}),window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ye.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ye.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ye.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ye.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ye.now)()]}),!d&&(window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ye.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ye.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"}),$e(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ye.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ye.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ye.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ye.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:r,adsContainer:l,adsVideoElement:d,slotId:a,params:u={},duration:f,previewParam:v}=e,p,$=this.playerState&&$e(this.playerState.vsid);$&&(this.isVsidOriginal?p=$:p=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=(0,Ye.detectEmbed)(),S=(P=w?y:window.location.href)!=null?P:window.location.href,T={...u,dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o,preview:v,...p?{request_id:p}:{},duration:f,puid10:k1(i,o),puid11:n?0:1};v||delete T.preview;let k={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;I.setDebug(!1),I.onReady(this.onAdsReady),I.onStarted(this.onAdStarted),I.onPlayed(this.onAdPlayed),I.onPaused(this.onAdPaused),I.adMidrollPoint(this.onAdMidrollPoint),I.onClosed(this.onAdClosed),I.onSkipped(this.onAdSkipped),I.onClicked(this.onAdClicked),I.onTimeRemained(this.onAdTimeRemained),I.onCompleted(this.onAdCompleted),I.onError(this.onAdError),I.init(k),this.adman=I,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(I){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ye.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(r=(n=this.actions).switchFromAdsToVideo)==null||r.call(n,!i)}}togglePlay(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adsState){this.log({message:"toggle play"});let i=$e(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ye.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,r,l,d,a,u,f,v,p;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ye.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(r=this.adman)==null||r.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,Yi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var P1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var sm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new xu,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new am,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},xu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},am=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,v)=>{let p=l.indexOf(v,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),r=new xu;for(let l of n)r.isTime(l)?i.texts.push({type:"timestamp",value:r.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},A1=sm;var Cu=require("@vkontakte/videoplayer-shared/es2018"),Sa,wi,lm=0,dm=!1,M1="",L1=(t,e=0,i=0)=>t<e&&t<i,wu=(t,e=0,i=0)=>t>=e&&t<=i,D2=(t,e=0,i=0)=>t>e&&t>i,V1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>wu(t,u,f));let r=t>=lm,l=t<lm;if(lm=t,l&&(dm=!1),(0,Cu.isNonNullable)(Sa)&&wu(t,Sa.startTime,Sa.endTime)&&M1===e.value)return Sa;if(!(0,Cu.isNonNullable)(wi)&&(n!=null&&n.length)&&!dm){wi=n.find(({startTime:u,endTime:f})=>wu(t,u,f)||r&&L1(t,u,f)),Sa=void 0,!(0,Cu.isNonNullable)(wi)&&n[n.length-1].endTime<t&&(dm=!0);return}else{if(wu(t,wi==null?void 0:wi.startTime,wi==null?void 0:wi.endTime))return Sa=wi,wi=void 0,M1=e.value,Sa;(r&&D2(t,wi==null?void 0:wi.startTime,wi==null?void 0:wi.endTime)||l&&L1(t,wi==null?void 0:wi.startTime,wi==null?void 0:wi.endTime))&&(wi=void 0)}};var Su={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},H2={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Tu=t=>{var e,i;return(i=(e=Su[t])!=null?e:Su[H2[t]])!=null?i:void 0};var R1=require("@vkontakte/videoplayer-shared/es2018"),CB=require("@vkontakte/videoplayer-statistics/es2018"),Eu=class{constructor(e,i,o,n=new R1.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var Fd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Fd||{});var os=t=>t!=null?t:0,hs=(t,e)=>{var n,r;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(os(i==null?void 0:i.top)-os(o==null?void 0:o.top)),left:Math.round(os(i==null?void 0:i.left)-os(o==null?void 0:o.left)),bottom:Math.round(os(i==null?void 0:i.bottom)-os(o==null?void 0:o.top)),right:Math.round(os(i==null?void 0:i.right)-os(o==null?void 0:o.left))}},bl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:os(e==null?void 0:e.width),height:os(e==null?void 0:e.height)}};var Iu="off";var N1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:k,replayInteractive:P,stopPlayer:I,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:L,additionalButtons:q,additionalSettingsMenuItems:z,additionalContextMenuItems:U,playPrevVideo:G,playNextVideo:re,looped:Y=!1,statistics:ce,saveRate:ae,internalsExposure:Ae,playerView:Ve})=>{var Pv,Av,Mv;let me={...$,configName:[...(Pv=$.configName)!=null?Pv:[],"ui"],isAudioDisabled:l,live:{...(Av=$.live)!=null?Av:{},isLiveCatchUpMode:!!n}},ue=p,Le=ut.TracerFactory.createRootTracer(ue.features.tracer),te=Le.createComponentTracer("Store"),N=w||new li.Player(me,Le);Ae==null||Ae.expose({corePlayer:N});let Qe=new ut.Logger,ee=new yu(Qe,{loadTimeout:ue.ads.loadTimeout,initTimeout:ue.ads.initTimeout,runtimeTimeout:ue.ads.runtimeTimeout,useAdmanFromNPM:ue.ads.useAdmanFromNPM,volumeMultiplier:ue.ads.volumeMultiplier,isVsidOriginal:ue.ads.isVsidOriginal}),We=fa.getInstance(),le=u==null?void 0:u.pictureInPictureApi,pe=u==null?void 0:u.annotationsApi,be=u==null?void 0:u.slotsApi,Z=Qe.createComponentLog("Store"),qe,Ze,Ie={},oe=new eu,Te=new ut.Subscription,Ke=ce&&ce.oneStat?Xt(ce.oneStat.vsid$):gr(void 0),rt=se(Vs()),nt=se(!1),Lt=(Mv=le==null?void 0:le.info.isActive$)!=null?Mv:new ut.ValueSubject(!1),et=se(0),ct=se([]),Qt=(0,ut.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>ct.update(x=>[...x,c])),ni=gr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Kt=async c=>{var de;let x=Object.values(ut.InterfaceLanguage).includes(c);if(ue.downloadVKLanguages&&(x&&ue.updateBuiltinLanguages||!pf(c))){let Oe;try{Oe=await(0,ut.loadVKLangPack)(c,bh,$h)}catch(ft){(de=ce==null?void 0:ce.oneStat)==null||de.logError({errorType:"VKLangPack",fatal:!1}),We==null||We.report(ft,{errorType:"VKLangPack",fatal:!1})}Oe&&(uf({language:c,pack:Oe,fallback:ue.defaultLanguage}),St.set(c))}pf(c)&&St.set(c)},St=se(t),ie=se(e);Kt(t);let Vt=(c,x)=>{let R=$e(St);return ff(R,c,x,ue.defaultLanguage)},ge=se("thumb"),X=(()=>{let c=gi([ni,ge],([x,R])=>x?"crashed":R);return{...c,is:x=>$e(c)===x}})(),xe=(()=>{let c=se(new Set(y));return{...c,add:x=>{c.update(R=>new Set([...R].concat(x)))},remove:x=>{c.update(R=>{let de=[...R];return new Set(Array.isArray(x)?de.filter(Oe=>!x.includes(Oe)):de.filter(Oe=>Oe!==x))})},includes:x=>{let R=$e(c);return Array.isArray(x)?x.every(de=>R.has(de)):R.has(x)}}})();te.log("create store"),Z({message:"create store"});let De=c=>{let x=c.container,R=()=>{xt=new MutationObserver(Oe=>{let{removedNodes:ft}=Oe[0];ft.length&&x.append(N.experimental.element$.getValue())}),xt.observe(x,{childList:!0})},de=N.experimental.element$.getValue();if(de)x.append(de),R();else{let Oe=N.experimental.element$.pipe((0,ut.filter)(ft=>!!ft),(0,ut.once)()).subscribe(ft=>{x.append(ft),R()});Te.add(Oe)}},fe=c=>{Z({message:`init video, config: ${JSON.stringify(c)}`}),S?De(c):(ut.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ut.now)()]}),N.initVideo(c)),te.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),qe=c},Re=new ut.Subject,Je=c=>Re.next(c),Fe=new ut.Subject,Mt=new ut.Subject,Tt=new ut.Subject,xt=null,mt={actionRewind$:Fe,actionSeek$:Mt,inPiP$:Lt,inFullscreen$:new ut.Observable(c=>rt.subscribe(x=>c.next(x))),actionSetSubtitle$:Tt,nextMovie$:Re},Ai={actionSeek$:Mt,playerSize$:new ut.Observable(c=>zt.subscribe(x=>c.next(x)))};if(ce){let{oneStat:c,thinOneStat:x,mediascopePixel:R,statSubscription:de}=ce;c&&(S||de.add(c.attachTo(N)),de.add(c.attachToUi(mt)),de.add(c.attachToAds(ee.events)),c.authorize(r).catch(Oe=>{Z({message:`onestat auth error ${String(Oe)}`})}),R&&R.attachTo(N)),x&&(de.add(x.attachTo(N)),de.add(x.attachToUi(Ai)),x.authorize(r))}if(We){let c=new ut.Subscription,x=(R,de)=>c.add(R.subscribe(de));if(x(N.events.managedError$,R=>{We.logIError(R)}),x(N.events.fatalError$,R=>{We.logIError(R,!0)}),ce){let{oneStat:R}=ce;R&&x(R.experimental.error$,de=>{We.logIError(de)})}We.sentrySubscription.add(c)}let ci=()=>{li.clientChecker.device.isIOS&&Ze&&i1(Ze).catch(c=>{Z({message:`exitIosSafariFullscreen failed: ${c}`})})};Te.add(N.experimental.element$.subscribe(c=>{c&&(Ze=c,c.classList.add("player-media"),va(le)&&(le.updateVideoElement(),le.registryEventHandlers()),S&&c.setAttribute("pip","false"),Ve==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;ci(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(async()=>{var x,R;va(le)&&await(le==null?void 0:le.revealPictureInPicture());let c=N.info.muted$.getValue();(x=a==null?void 0:a.onStarted)==null||x.call(a),(R=Ie.onStarted)==null||R.call(Ie,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var R;(R=a==null?void 0:a.onSeek)==null||R.call(a,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(N.info.position$.subscribe(c=>{var R;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((R=a==null?void 0:a.onTimeupdate)==null||R.call(a,x,c),ee.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=a==null?void 0:a.onCrashed)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=a==null?void 0:a.onRecoverableError)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{At.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{At.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(k!=null&&k.getValue()&&xe.add(md),xe.add("PLAY_BUTTON")):xe.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=a==null?void 0:a.onLiveTime)==null||x.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=a==null?void 0:a.onStalledChanged)==null||x.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=a==null?void 0:a.onLiveEnded)==null?void 0:x.call(a))})).add(ee.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(ee.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(ee.events.loadError$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(ee.events.init$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(ee.events.ready$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(ee.events.started$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onStarted)==null?void 0:R.call(x,c)})).add(ee.events.timeRemained$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:R.call(x,c)})).add(ee.events.ended$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onCompleted)==null?void 0:R.call(x,c)})).add(ee.events.empty$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(ee.events.clicked$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClicked)==null?void 0:R.call(x,c)})).add(ee.events.closed$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClosed)==null?void 0:R.call(x,c)})).add(ee.events.error$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onError)==null?void 0:R.call(x,c)})).add(ee.events.paused$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(ee.events.resumed$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let it=new ut.Subscription,Dt=()=>{var ft,Ht,Wt;let{debugLog:c}=ue,x,R="#9df7b7",de="#efd169";if(c&&c!==!0){let{colors:Ft}=c;x=c.tag,R=(ft=Ft==null?void 0:Ft[0])!=null?ft:R,de=(Wt=(Ht=Ft==null?void 0:Ft[1])!=null?Ht:Ft==null?void 0:Ft[0])!=null?Wt:de}let Oe=x?`: ${x}`:"";it.add(N.events.log$.subscribe(Ft=>{console.debug(`%c sdk${Oe} `,`background:${R};`,`sdk component: ${Ft.component}`,Ft.message)})).add(Qe.log$.subscribe(Ft=>{console.debug(`%c ui${Oe} `,`background:${de};`,`ui component: ${Ft.component}.`,Ft.message)}))},fi=()=>{it.unsubscribe()},Ui=(c,x)=>{te.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},po=(c=!1)=>{te.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},zi=(c,x,R)=>{te.log("move camera focus px",{xpx:c,ypx:x,dt:R}),N.moveCameraFocusPX(c,x,R)},Gt=()=>{N.holdCamera()},fo=()=>{N.releaseCamera()},Pt=gr(N.info.position$.getValue(),c=>{let x,R,de=()=>{let Oe=N.info.playbackState$.getValue(),ft=N.info.isLive$.getValue(),Ht=N.info.duration$.getValue(),Wt=N.info.position$.getValue();if(Oe&&[li.PlaybackState.PLAYING,li.PlaybackState.PAUSED].includes(Oe)){let Ft=ft?Wt-Ht:N.getExactTime();Ft!==R&&c(Ft),R=Ft}x=requestAnimationFrame(de)};return de(),()=>cancelAnimationFrame(x)}),dt=Xt(N.info.playbackState$),mi=Xt(N.info.currentBuffer$),Q=Xt(N.info.isEnded$),qt=Xt(N.info.isLive$),di=ue.features.playbackRate?Xt(N.info.canChangePlaybackSpeed$):gr(!1),Mi=Xt(N.info.liveBufferTime$),si=Xt(N.info.volume$),ui=Xt(N.info.muted$),pt=tu(N.info.predefinedQualityLimitType$.pipe((0,ut.map)(c=>c===li.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===li.PredefinedQualityLimits.TRAFFIC_SAVING),tt=tu(N.info.predefinedQualityLimitType$.pipe((0,ut.map)(c=>c===li.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===li.PredefinedQualityLimits.HIGH_QUALITY),It=Xt(N.info.autoQualityLimitingAvailable$),Wi=Xt(N.info.availableQualities$),ei=Xt(N.info.availableQualitiesFps$),tr=Xt(N.info.chromecastState$),Li=Xt(N.info.chromecastDeviceName$),Do=Xt(N.info.currentFormat$),$i=Xt(N.info.throughputEstimation$),ht=Xt(N.info.videoBitrate$),Vi=Xt(N.info.intrinsicVideoSize$),Ho=Xt(N.info.duration$),Pn=Xt(N.info.isAudioAvailable$),ai=null,Ci=N.info.isBuffering$,Fo=gr(Ci.getValue(),c=>{let x=Ci.subscribe(R=>{R&&ai===null?ai=window.setTimeout(()=>{c(Ci.getValue()),ai=null},ue.loaderDelay):c(R)});return()=>{x.unsubscribe(),ai&&clearTimeout(ai)}}),An=()=>{ai&&clearTimeout(ai),ai=null},Uo=gi([Ho,qt],([c,x])=>x?-c:c),wo=gi([dt],([c])=>c===li.PlaybackState.PLAYING),hn=Xt(N.info.atLiveEdge$),tn=Xt(N.info.atLiveDurationEdge$),mo=Xt(N.info.position$),Co=gi([mo,Ho],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Dr=gi([tr],([c])=>c===li.ChromecastState.CONNECTED),_r=Xt(N.info.availableVideoStreams$),ir=ue.features.audioLanguages?Xt(N.info.availableAudioStreams$):gr([]),or=Xt(N.info.currentVideoStream$),nr=Xt(N.info.currentAudioStream$),Mn=c=>{c.language&&cf(c.language),N.setVideoStream(c)},rs=c=>{c.language&&cf(c.language),N.setAudioStream(c)},Ln=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(de=>"isDefault"in de&&de.isDefault)),x)return x;let R=Wh();return R&&(x=c.find(({language:de})=>R===de)),x!=null||(x=c.at(0)),x},Ri=!1;Te.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Ri&&c.length){let x=Ln(c);x&&(N.setAudioStream(x),Ri=!0)}}));let Vn=!1;Te.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Vn&&c.length){let x=Ln(c);x&&(N.setVideoStream(x),Vn=!0)}}));let on=se(void 0),nn=Xt(N.info.isAutoQualityEnabled$,c=>c&&on.set(void 0)),Rn=Xt(N.info.currentQuality$,()=>on.set(void 0)),Nn=gi([on,Rn],([c,x])=>c!=null?c:x),zo=gi(Do,c=>c!==li.VideoFormat.MPEG),Hr=gi([Wi,ei,nn,Nn,zo],([c,x,R,de,Oe])=>{let ft=[];Oe&&ft.push({value:"auto",displayValue:Vt("auto_quality_option"),selected:R});let Ht=c.filter(Wt=>!(0,ut.isInvariantQuality)(Wt));for(let Wt of Ht){let Ft=x[Wt];ft.push({value:Wt,displayValue:`${Wt}${Ft?P1(Ft):""}`,selected:R?!1:Wt===de})}return ft}),Bn=Xt(N.info.currentPlaybackRate$),rr=gi([Bn,hn,tn],([c,x,R])=>{let de=R||S?1:ue.controls.playbackRateMin,Oe=x?1:ue.controls.playbackRateMax,ft=ue.controls.playbackRateStep,Ht=[];for(let Wt=de;Wt<=Oe;Wt+=ft)Ht.push({value:Wt,displayValue:Wt===1?Vt("playback_rate_1"):Vt("playback_rate",{multiplier:Wt.toString(10)}),selected:c===Wt});return Ht}),qi={displayValue:Vt("subtitles_off"),value:Iu},So=se({...qi}),at=ue.features.subtitles?Xt(N.info.availableTextTracks$):gr([]),jt=Rh(),br=gi([at,So],([c,x],R)=>{var ft;let de=[],Oe=c.find(({id:Ht})=>Ht===x.value);if(Oe!=null&&Oe.url){let[,Ht]=(ft=jt.find(Oe.url))!=null?ft:[];if(Ht){R(Ht);return}oe.download(Oe.url).then(Wt=>{if(!Wt||oe.isDestroyed())return;let Ft=new A1,Cs=Oe.language;if(Cs){let y0=!!Oe.isAuto,x0=Ft.parse(Wt,Cs);de.push({lang:Cs,subtitles:x0,isAuto:y0,id:Oe.id})}jt.add(Oe.url,de),$e(So).value===x.value&&R(de)}).catch(Wt=>{var Ft;(Ft=ce==null?void 0:ce.oneStat)==null||Ft.logError({errorType:"Subtitles download",fatal:!1}),We==null||We.report(Wt,{errorType:"Subtitles download",fatal:!1})})}R(de)}),On=gi([Bn,wo,So],([c,x,R],de)=>{let Ht;if(N.info.isLive$.getValue()&&x&&R.value!==qi.value){let Ft=()=>{let Cs=1e3/(3*c);Ht=setTimeout(Ft,Cs),de(Date.now())};return Ft(),()=>clearTimeout(Ht)}}),_n=gi([at,So],([c,x])=>{if(!c.length)return[];let R=[];for(let{language:de,isAuto:Oe,id:ft}of c){let Ht=de&&Tu(de);de&&Ht&&R.push({displayValue:Oe?Vt("subtitles_auto",{language:Ht}):Ht,value:ft,selected:(x==null?void 0:x.value)===ft,isAuto:Oe})}return R.length?(R.unshift({...qi,selected:(x==null?void 0:x.value)===qi.value}),R):[]}),Ni={available:[],prev:[]},Dn=()=>{var x,R;let c=N.experimental.getCurrentTime$.getValue();return(R=(x=c==null?void 0:c())!=null?x:Ze==null?void 0:Ze.currentTime)!=null?R:0},To=gi([Pt,So,br,On],([c,x,R,de])=>{var ft;let Oe=N.info.isLive$.getValue();if(Oe&&Ni.prev!==R){let Ht=R.find(({id:Ft})=>Ft===x.value),Wt=Ni.prev.find(({id:Ft})=>Ft===x.value);if(Ht){let Ft={...Ht,subtitles:[...(ft=Wt==null?void 0:Wt.subtitles)!=null?ft:[],...Ht.subtitles]};Ni.available=[Ft],Ni.prev=R}}if(x&&x.value!==qi.value){let Ht=Oe?Dn():c,Wt=Oe?Ni.available:R;return V1(Ht,x,Wt,Oe)}}),Hn=gi([To],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(So.subscribe(c=>{var x,R;if(c.value===qi.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let de=Object.entries(Su).find(([Oe,ft])=>ft===c.displayValue);(R=a==null?void 0:a.onSubtitleOn)==null||R.call(a,de?de[0]:"")}}));let Eo=se(!0),Fn=gi([mi,Uo,mo,Mi],([c,x,R,de])=>{var Wt;let Oe=(Wt=c==null?void 0:c.end)!=null?Wt:0;if(!de)return Oe/x;let Ht=-R+de-x;return(Oe-Ht)/x}),Un=Xt(N.info.availableSources$),sr=gi([Un],([c])=>Object.keys((c==null?void 0:c[li.VideoFormat.MPEG])||{}).length>0),$r=()=>{var R,de,Oe;let c=Object.keys(((de=(R=N.info.availableSources$)==null?void 0:R.getValue())==null?void 0:de[li.VideoFormat.MPEG])||{}),x=(0,ut.getHighestQuality)(c)||ut.VideoQuality.Q_144P;return(Oe=qe.sources[li.VideoFormat.MPEG])==null?void 0:Oe[x]},ar=()=>{var x;let c=$r();if(c)te.log("download video",{url:c}),Mh(c,((x=qe==null?void 0:qe.meta)==null?void 0:x.title)||"video");else{let R="There is no URL for download video";te.log("download video",{message:R}),Z({message:R})}},Wo=()=>{Z({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?vo(Yt()):Io(!c)},Fr=()=>{var c;if(At.ui.settingsMenu.visible$.set(!1),!$e(At.ui.settingsSubMenu.visible$)){let x=$e(At.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let de=bl(x),Oe={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:de,position:Oe,name:"settings"})}}te.log("close settings menu")},lr=async(c,x=()=>Promise.resolve())=>{var Oe;At.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),At.ui.settingsMenu.visible$.set(!0),await x();let R=$e(At.ui.settingsMenu.ref$),de=Oa();if((Oe=a==null?void 0:a.uiInfo)!=null&&Oe.onSettingsMenu&&R&&de){let Ht=bl(R),Wt=hs(R,de);a.uiInfo.onSettingsMenu({visible:!0,size:Ht,position:Wt,name:"settings"})}te.log("open settings menu",{wasOpenedByKeyboard:c})},yr=(c,x=!1)=>{var ft;At.ui.settingsSubMenu.visible$.set(!1);let R=$e(At.ui.settingsMenu.ref$),de=Oa(),Oe=$e(At.ui.settingsMenu.visible$);if((ft=a==null?void 0:a.uiInfo)!=null&&ft.onSettingsMenu&&R&&de)if(Oe&&!x){let Wt=bl(R),Ft=hs(R,de);a.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:Ft,name:"settings"})}else{let Wt=bl(c),Ft={top:0,left:0,bottom:0,right:0},Cs=$e(At.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Wt,position:Ft,name:Cs})}te.log("close settings sub menu")},rn=(c,x)=>{var de;At.ui.settingsSubMenu.visible$.set(!0),At.ui.settingsSubMenu.ref$.set(x),At.ui.settingsSubMenu.name$.set(c);let R=Oa();if((de=a==null?void 0:a.uiInfo)!=null&&de.onSettingsMenu&&x&&R){let ft=bl(x),Ht=hs(x,R);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:ft,position:Ht})}te.log("open settings sub menu",{name:c})},Yt=()=>{var x;let c=Math.max(ue.volumeMinRestore,(x=iu())!=null?x:0);return c===0?ue.volumeDefault:c},vo=c=>{let x=c===0?Yt():c,R=N.info.muted$.getValue();Z({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let de=!l||X.is("ads");R&&c>0&&de&&(R=!1,lf(!1)),N.setVolume(c,R),ee.setVolume(c),of(x)},Io=c=>{let x=N.info.volume$.getValue();if(Z({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c,X.is("ads")),ee.setVolume(c?0:x),lf(c),!c&&x===0){let R=Yt();N.setVolume(R),of(R),ee.setVolume(R)}},dr=se(!1),xr=c=>{var x,R;te.log("set looped",{isLooped:c}),dr.set(c),N.setLooped(c),(R=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||R.call(x,c)};xr(Y);let Si=()=>{var c,x;(x=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},ss=(c,x=!1)=>{var R;Z({message:`set autoplayNextEnabled, value: ${c}`}),te.log("set autoplay next enabled",{autoplayNextEnabled:c}),At.ui.autoplayNextEnabled$.set(c),Qh(c),x&&((R=a==null?void 0:a.onSetAutoplayNextEnabled)==null||R.call(a,c))},Ur=c=>{Z({message:`set timerNextVideoRunning, value: ${c}`}),te.log("set timer next video running",{timerNextVideoRunning:c}),At.ui.timerNextVideoRunning$.set(c)},wr=(c=!0)=>{var de;let x=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{x=(de=a==null?void 0:a.onPrevVideoClick)==null?void 0:de.call(a)}catch(Oe){Z({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Zt("prev")||G()},_t=(c=!0)=>{var de;let x=!0;if(c&&(a!=null&&a.onNextVideoClick))try{x=(de=a==null?void 0:a.onNextVideoClick)==null?void 0:de.call(a)}catch(Oe){Z({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Zt("next")||re()},Zt=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:R,playbackStatusShow:de}}=ue;return R&&de&&!x?(At.ui.aboutToGoNextVideo.set(c),At.ui.userActionsDisabled.set(!0),!0):!1},qo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},go=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},oo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},sn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},zn=()=>{N.prepare()},ho=()=>{(0,ut.assertNonNullable)(At);let c=$e(At.ui.controls.disabledControls$),x=$e(At.playerPhase),R={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Z({message:"toggle play"}),x==="ads"){R.action="play",te.log("toggle adman play",R),ee.togglePlay();return}let de=()=>{var ft;Z({message:"toggle play, call player.play"}),R.action="play",N.play(),(ft=a==null?void 0:a.onPlay)==null||ft.call(a)},Oe=()=>{var ft;Z({message:"toggle play, call player.pause"}),R.action="pause",N.pause(),(ft=a==null?void 0:a.onPause)==null||ft.call(a)};if(N.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),Fe.next(),Mt.next(ns.SeekAction.REWIND),S){P==null||P();return}N.seekTime(0),de()}else N.info.playbackState$.getValue()!==li.PlaybackState.PLAYING?de():Oe();te.log("toggle play",R)},bn=(c,{changeReason:x="default",appliesTo:R="to-video"}={})=>{Z({message:`set quality, quality: ${c}`}),te.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ue.features.qualityDetailsSubMenuEnabled?(ou({type:"exact_quality",quality:c,videoId:i},R),hd(),N.setPredefinedQualityLimits(li.PredefinedQualityLimits.UNKNOWN)):nf(i,c),on.set(c),N.setQuality(c)):ue.features.qualityDetailsSubMenuEnabled?x==="default"&&(hi("auto_quality",R),$e(pt)&&an(!1),$e(tt)&&Xe(!1)):hd()},an=(c,x="as-default")=>{Z({message:`set trafficSavingEnabled, value: ${c}`}),te.log("set traffic saving enabled",{trafficSavingEnabled:c});let R=c?li.PredefinedQualityLimits.TRAFFIC_SAVING:li.PredefinedQualityLimits.UNKNOWN;ue.features.qualityDetailsSubMenuEnabled?(Rt(R,x),gd(!1)):(N.setPredefinedQualityLimits(R),gd(c))},Xe=(c,x="as-default")=>{Z({message:`set highQualityEnabled, value: ${c}`}),te.log("set high quality enabled",{highQualityEnabled:c}),Rt(c?li.PredefinedQualityLimits.HIGH_QUALITY:li.PredefinedQualityLimits.UNKNOWN,x)},Rt=(c,x)=>{c!==li.PredefinedQualityLimits.UNKNOWN&&($e(It)&&!$e(nn)&&bn("auto",{appliesTo:x,changeReason:"limit-changed"}),hi(c,x)),N.setPredefinedQualityLimits(c)},hi=(c,x)=>{ou({type:c,videoId:i},x),x==="as-default"&&ou({type:c,videoId:i},"to-video")},_o=c=>{te.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ue.features.saveRate&&ae&&!N.info.isLive$.getValue()&&qh(c)},no=()=>{let c=$e(rr),x=c.findIndex(({selected:de})=>de);if(x===c.length-1)return;let R=c[x+1];_o(R.value)},Ko=()=>{let c=$e(rr),x=c.findIndex(({selected:de})=>de);if(x===0)return;let R=c[x-1];_o(R.value)},Xi=(c={...qi,selected:!1})=>{te.log("set subtitles",{...c}),c&&c.value!==qi.value&&Tt.next(c.isAuto?c.value+"_auto":c.value),So.set(c)},Qo=()=>{te.log("toggle subtitles");let c=$e(_n),x=$e(So),R=$e(St);if((x==null?void 0:x.value)===qi.value){let de=c.filter(Oe=>Oe.value!==qi.value).find(Oe=>Oe.value===R)||c[1];Xi(de)}else Xi()},ko=se(!0),Ki=c=>{ko.set(c)},_i=(c,x,R=!0)=>{var de;if(Z({message:`seek to time, time: ${c}`}),te.log("seek to time",{time:c,action:x,forcePrecise:R}),Mt.next(x),N.info.isLive$.getValue()){let Oe=N.info.duration$.getValue(),ft=Math.min(0,Oe+c);N.seekTime(ft,R)}else{if(k!=null&&k.getValue())return;N.info.isEnded$.getValue()&&(Z({message:"seek after ended, call callbacks.onPlay"}),(de=a==null?void 0:a.onPlay)==null||de.call(a)),N.seekTime(ws(c),R)}},Go=c=>{Z({message:`seek to episode start time: ${c}`}),te.log("seek to episode start time",{time:c}),_i(c,ns.SeekAction.EPISODE,!0)},ln=(c,x)=>{Z({message:`seek to percent, percent: ${c}`}),te.log("seek to percent",{percent:c,action:x});let R=$e(Uo)*c;_i(R,x,!1)},ro=c=>{Z({message:`seek external, time: ${c}`}),te.log("seek external",{time:c}),Mt.next(ns.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Cr=c=>{var de,Oe;let x=(de=c.max)!=null?de:"none",R=(Oe=c.min)!=null?Oe:"none";Z({message:`set auto quality limitation. Max: ${x}. Min: ${R}`}),te.log("set auto quality limits",{max:x,min:R}),N.setAutoQualityLimits(c)},zr=c=>{Z({message:`seek external to episode start time: ${c}`}),te.log("seek external to episode start time",{time:c}),_i(c,ns.SeekAction.EPISODE,!0)},Wr=c=>{Z({message:`set playback rate to: ${c}`}),te.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},$n=se(void 0),Wn=se(!1),qr=c=>{Z({message:`start scrubbing, progress: ${c}`}),te.log("start scrubbing",{progress:c}),Wn.set(!0),so(c)},so=c=>{$n.set(c)},Yo,qn,cr=()=>{$n.set(void 0),Wn.set(!1)},ur=()=>{clearTimeout(qn),clearTimeout(Yo),Yo=window.setTimeout(()=>{cr()},500),Ze==null||Ze.removeEventListener("seeked",ur)},Kr=c=>{Z({message:`complete scrubbing, progress: ${c}`}),te.log("complete scrubbing",{progress:c}),ln(c,ns.SeekAction.SLIDER),$e(At.ui.isMobile)&&$e(At.state.currentFormat$)===li.VideoFormat.HLS?(Ze==null||Ze.addEventListener("seeked",ur),qn=window.setTimeout(()=>{ur()},300)):cr()},as=gi([Pt,Uo,$n],([c,x,R],de)=>{de((0,ut.isNonNullable)(R)?R*x:c)}),Se=se(!1),ye=()=>{Se.set(!0)},yt=()=>{Se.set(!1)},zt=se({width:0,height:0}),Ti=gi([zt],([{width:c}],x)=>{let R=x1(c);x(R)}),bi=se(!1),Ue=q.filter(c=>Lh(c)),wt=gi([Ti,bi],([c,x])=>x?Ue.filter(R=>!R.hideOnMobile):Ue.filter(R=>{var de;return!((de=R.hideOnDesktopGridTypes)!=null&&de.includes(c))})),ti=se(q.filter(c=>Vh(c))),dn=gi([ti,Ti],([c,x])=>c.filter(R=>{var de;return!((de=R.hideOnDesktopGridTypes)!=null&&de.includes(x))})),yn=gi([dn,wt],([c,x])=>[...ue.features.additionalButtonsDesktopControlPanelRight?c.filter(R=>R.type==="desktop-control-panel-right"):[],...ue.features.additionalButtons?x.map((R,de)=>{var Oe;return{id:de,weight:de,type:"desktop-control-panel-right",testId:R.testId,icon:R.iconUrl,onClick:R.onClick,ariaLabel:(Oe=R.ariaLabel)!=null?Oe:R.tooltip,tooltipText:R.tooltip}}):[]]),ao=se(z),Qr=gi([ao],([c])=>ue.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Sr=(c,x)=>{let R=$e(ti).map(de=>de.id!==c?de:{...de,...x});ti.set(R)},Ji=c=>{let x=$e(ti);if(x.some(R=>R.id===c.id)){Z({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ti.set(x)},Ei=c=>{let x=$e(ti);if(!x.some(R=>R.id===c)){Z({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),ti.set(x)},xn=c=>{Mt.next(ns.SeekAction.LIVE),Z({message:"live switch to low latency "+c}),te.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Kn=(c,x)=>{let R=$e(ao).map(de=>de.id!==c?de:{...de,...x});ao.set(R)},Tr=c=>{let x=$e(ao);if(x.some(R=>R.id===c.id)){Z({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ao.set(x)},bo=c=>{let x=$e(ao);if(!x.some(R=>R.id===c)){Z({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),ao.set(x)},pr=se(U),qs=gi([pr],([c])=>ue.features.additionalContextMenuItems?c:[]),$t=(c,x)=>{let R=$e(pr).map(de=>de.id!==c?de:{...de,...x});pr.set(R)},bt=c=>{let x=$e(pr);if(x.some(R=>R.id===c.id)){Z({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),pr.set(x)},lo=c=>{let x=$e(pr);if(!x.some(R=>R.id===c)){Z({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),pr.set(x)},jo=gi([bi,ni],([c,x],R)=>{R(c&&x)}),co=()=>{Mt.next(ns.SeekAction.LIVE),Z({message:"switch to active live"}),te.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==li.PlaybackState.PLAYING&&At.actions.internal.togglePlay()},ri=()=>{te.log("skip adman"),ee.skip()},Bi=(c=!0)=>{(0,ut.assertNonNullable)(At),Z({message:`switch from ads to video, callPlay: ${c}`}),te.log("switch from ads to video",{callPlay:c}),ge.set("video"),c&&N.play(),l&&Io(!0)},xs=()=>{(0,ut.assertNonNullable)(At),Z({message:"switch from video to ads"}),te.log("switch from video to ads"),At.actions.internal.pause(),ci(),ge.set("ads")},Ll=c=>{(0,ut.assertNonNullable)(At);let x=c?"LiveWaitingStart":"thumb";te.log("set live waiting start",{state:c,playerPhase:x}),ge.set(x)},hc=c=>{(0,ut.assertNonNullable)(At);let x=c?"LiveWaitingRecover":"thumb";te.log("set live waiting recover",{state:c,playerPhase:x}),ge.set(x)},Ju=c=>{(0,ut.assertNonNullable)(At);let x=c?"LiveWaitingRecord":"thumb";te.log("set live waiting record",{state:c,playerPhase:x}),ge.set(x)},_c=()=>((0,ut.assertNonNullable)(At),te.log("get debug text data"),Ph(N,qe,At,Le.getTraceId())),ep=()=>((0,ut.assertNonNullable)(At),JSON.stringify(Le.getFinishedSpans())),bc=()=>((0,ut.assertNonNullable)(At),Ah(N,qe,At)),Oa=()=>Ze,$c=()=>{Z({message:"toggle chromecast"}),te.log("toggle chromecast"),N.toggleChromecast()},yc=c=>{var R;if((0,ut.assertNonNullable)(At),N.info.isEnded$.getValue())return;let x=!c;if($e(At.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${x}`}),te.log("pause ads",{internalCall:x}),ee.pause();return}Z({message:`pause video, internalCall: ${x}`}),te.log("pause video",{internalCall:x}),x&&((R=a==null?void 0:a.onPause)==null||R.call(a)),N.pause()},Vl=c=>{var R;(0,ut.assertNonNullable)(At);let x=!c;if($e(At.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${x}`}),te.log("play ads",{internalCall:x}),ee.play();return}Z({message:`play video, internalCall: ${x}`}),te.log("play video",{internalCall:x}),x&&((R=a==null?void 0:a.onPlay)==null||R.call(a)),N.play()},xc=c=>{(0,ut.assertNonNullable)(At);let x=!c;if($e(At.playerPhase)==="ads"){Z({message:"player cannot be stopped during ads via external method"});return}Z({message:`player will be stopped, internalCall: ${x}`}),I==null||I()},Rl=(c,x)=>{(0,ut.assertNonNullable)(At),Z({message:`first start, show ads: ${c}, internalCall: ${!x}`}),te.log("first start",{showAds:c,external:x}),c?ge.set("ads"):(ge.set("video"),x?N.play():At.actions.internal.togglePlay())},Nl=()=>(Z({message:"getting time codes"}),f),Bl=()=>{let c=Nl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(R=>R.time>x)},tp=c=>{let x=c;x||(x=Bl());let R=N.info.position$.getValue();te.log("seek to next episode",{currentTime:R,...x}),x&&(Z({message:"seek to next episode"}),_i(x.time,ns.SeekAction.EPISODE,!0))},Ol=()=>{let c=Nl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),R=c.findIndex(Oe=>Oe.time>x),de=R===-1?c.length-2:R-2;if(!(de<0))return c[de]},ip=c=>{let x=c;x||(x=Ol());let R=N.info.position$.getValue();te.log("seek to prev episode",{currentTime:R,...x}),x&&(Z({message:"seek to prev episode"}),_i(x.time,ns.SeekAction.EPISODE,!0))},op=()=>(Z({message:"getting preview thumbs data"}),te.log("get preview thumbs data",{...v}),v),np=async()=>{let c=le==null?void 0:le.isActive(),x="none";le!=null&&le.isActive()?(x="remove",await(le==null?void 0:le.remove())):(x="request",await(le==null?void 0:le.request())),te.log("toggle picture in picture",{isActive:c,action:x})},Ge=(c=-90)=>{te.log("rotate video",{alphaDiff:c}),et.update(x=>x+c)},ii=se([]);T==null||T.subscribe(c=>{let x=[];for(let R=0;R<c.length;R++){let{range:[de,Oe],subjects:ft}=c[R];R===0&&de!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:de/1e3,text:"",interactive:!0,completed:ue.features.interactiveTimeOpenUri?!ft.length||ft.every(Ht=>Ht.isRemoved):!ft.length}),Oe!==1/0&&x.push({time:Oe/1e3,text:"",interactive:!1,completed:!0})}ii.set(x)});let Po=se(!1);k==null||k.subscribe(c=>{c&&$e(Wn)&&cr()});let ws=c=>{if(!S)return c;let x=$e(ii),R=$e(Uo),Oe=$e(mo)/R,ft=x.find(Ht=>Ht.interactive&&!Ht.completed&&Ht.time>Oe);return typeof(ft==null?void 0:ft.time)=="number"?Math.min(c,ft.time-.05):c},cn=()=>{At.ui.episodes.panelOpened$.set(!1)},$0=()=>{te.log("destroy store"),clearTimeout(qn),clearTimeout(Yo),Te.unsubscribe(),it.unsubscribe(),N.destroy(),ee.destroy(),ce==null||ce.destroy(),We==null||We.destroy(),Qt.unsubscribe(),xt==null||xt.disconnect(),xt=null,oe.destroy()},At={interfaceLanguage$:St,isCyrillicRelatedInterface$:ie,initVideo:fe,videoId:i,isClip:o,playerPhase:X,vsid:Ke,state:{positionExact$:Pt,positionWithScrubbing$:as,duration$:Uo,playbackState$:dt,isPlaying$:wo,isLoaderVisible:Fo,bufferedProgress$:Fn,isLive$:qt,canChangePlaybackSpeed$:di,isActiveLive$:hn,isOldestAvailableLive$:tn,isRewindableLive$:Co,isEnded$:Q,muted$:ui,volume$:si,trafficSavingEnabled$:pt,highQualityEnabled$:tt,autoQualityLimitingAvailable$:It,availableVideoStreams$:_r,availableAudioStreams$:ir,videoStream$:or,audioStream$:nr,currentQuality$:Nn,isAutoQualityEnabled$:nn,availableQualities$:Hr,currentPlaybackRate$:Bn,availablePlaybackRates$:rr,currentSubtitle$:So,availableTextTracks$:at,availableSubtitlesList$:_n,currentSubtitleCaptions$:Hn,isAutoSubtitleCaptionVisible$:Eo,chromecastState$:tr,chromecastDeviceName$:Li,chromecastConnected$:Dr,currentFormat$:Do,throughputEstimation$:$i,videoBitrate$:ht,videoSize$:Vi,errorLog$:ct,crashed$:ni,isAudioAvailable$:Pn,isAudioDisabled:!!l,canDownload:ue.features.download&&!!d,availableSources$:Un,hasMpegSources$:sr,isInteractive:S,showInteractiveGraph:ue.features.interactiveGraph,showSeekToInteractive:ue.features.seekToInteractive,showPlayPrevChapter:ue.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ue.features.interactiveTimeIndicator&&!!$e(ii).length,interactiveEpisodes$:ii,isInteractiveTime$:k?Xt(k):se(!1),isInteractiveExpectation$:Po,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:L,looped$:dr,loadedMetadata$:se(!1),isAutoQualityAvailable$:zo},ui:{t:Vt,controlsVisible:se(!1),touched:se(!1),controls:{prevButton:se(void 0),playButton:se(void 0),replayButton:se(void 0),nextButton:se(void 0),playPrevChapterButton:se(void 0),seekToInteractiveButton:se(void 0),interactiveGraphButton:se(void 0),liveButton:se(void 0),time:se(void 0),episodes:se(void 0),volume:se(void 0),subtitles:se(void 0),settings:se(void 0),context:se(void 0),chromecast:se(void 0),pip:se(void 0),fullscreen:se(void 0),vkLogo:se(void 0),interactiveTimeIndicator:se(void 0),timeline:se(void 0),autoplayNextToggle:se(void 0),additionalButtons:q.length?q.reduce(c=>[...c,se(void 0)],[]):[],disabledControls$:xe},modals:{hotKeyMap:{show:se(!1),data:se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:rt,isFullscreenOpenedByKeyboard:nt,rotateAlpha:et,isAutoplay:se(!1),debugPanelVisible:se(!1),episodes:{panelOpened$:se(!1),openedByKeyboard$:se(!1)},contextMenu:{visible$:se(!1),btnRef$:se(void 0),openedByBtnKeyboard$:se(!1),openedByHotKey$:se(!1),lastActiveElem$:se(void 0),showContextMenuBtn$:se(!1),position$:se({top:0,left:0})},playerSize:zt,isMobile:bi,mobileNotReportControlHidden$:jo,mobileUnmuteButtonExpanded:se(!1),mobileUnmuteButtonVisible:se(!1),icon3DVideoVisible:se(!1),scrubbingInProgress:Wn,volumeChangingInProgress:Se,is3DVideo:se(!1),currentGridType$:Ti,additionalButtonsDeprecated$:wt,additionalDesktopControlPanelRightButtons$:yn,additionalSettingsMenuItems$:Qr,additionalContextMenuItems$:qs,interactiveHideMobileControls:se(!1),overlayContainer$:se(void 0),startedByKeyboard$:se(!1),autoplayNextEnabled$:se(!1),timerNextVideoRunning$:se(!0),settingsMenu:{visible$:se(!1),ref$:se(void 0),openedByBtnKeyboard$:se(!1)},settingsSubMenu:{visible$:se(!1),ref$:se(void 0),name$:se(void 0)},aboutToGoNextVideo:se(void 0),userActionsDisabled:se(!1),hiddenControls:{volume:se(!1),vkLogo:se(!1),pip:se(!1),chromecast:se(!1),settings:se(!1)},isControlsAvailable:ko,controlBlocks:{topLeft:se(void 0),topRight:se(void 0),middle:se(void 0),bottom:se(void 0),bottomLeft:se(void 0),bottomRight:se(void 0)},videoTitleInfo:se(void 0)},ads:{position:se(0),duration:se(0),playbackState:se("inactive"),canSkip:se(!1),secondsToWatchBeforeSkip:se(0),postrollPassed:se(!1)},webApi:{pictureInPictureApi:le,annotationsApi:pe,slotsApi:be},actions:{internal:{preload:zn,firstStart:c=>Rl(c,!1),play:()=>Vl(!1),pause:()=>yc(!1),togglePlay:ho,toggleMuted:Wo,openSettingsMenu:lr,closeSettingsMenu:Fr,openSettingsSubMenu:rn,closeSettingsSubMenu:yr,setVolume:vo,startVolumeChanging:ye,stopVolumeChanging:yt,setVideoStream:Mn,setAudioStream:rs,setQuality:bn,setTrafficSavingEnabled:an,setHighQualityEnabled:Xe,setPlaybackRate:_o,incrementPlaybackRate:no,decrementPlaybackRate:Ko,setSubtitle:Xi,toggleSubtitle:Qo,togglePictureInPicture:np,startScrubbing:qr,progressScrubbing:so,completeScrubbing:Kr,toggleChromecast:$c,switchToActiveLive:co,switchFromAdsToVideo:Bi,switchFromVideoToAds:xs,skipAd:ri,setLiveWaitingStart:Ll,setLiveWaitingRecover:hc,setLiveWaitingRecord:Ju,getDebugTextData:_c,getTraceTextData:ep,getDebugPanelData:bc,getVideoElement:Oa,seekTime:(c,x,R)=>_i(c,x,R),clearDelayedBufferingCheckTimeout:An,seekEpisodeStartTime:Go,seekToPercent:ln,getNextEpisode:Bl,seekToNextEpisode:tp,getPrevEpisode:Ol,seekToPrevEpisode:ip,startLogging:Dt,stopLogging:fi,startCameraManualRotation:Ui,stopCameraManualRotation:po,moveCameraFocusPX:zi,holdCamera:Gt,releaseCamera:fo,getVideoEpisodes:Nl,getPreviewThumbsData:op,downloadVideo:ar,addLanguage:uf,setLanguage:Kt,nextMovie:Je,videoRotate:Ge,correctSeekTimeToInteractive:ws,replayInteractive:P,setLooped:xr,reportProblem:Si,setAutoplayNextEnabled:ss,setTimerNextVideoRunning:Ur,prevVideoClick:wr,nextVideoClick:_t,nextVideoAnnouncementShow:qo,nextVideoAnnouncementClick:go,nextVideoAnnouncementAuto:oo,nextVideoAnnouncementCancel:sn},external:{firstStart:c=>Rl(c,!0),play:()=>Vl(!0),pause:()=>yc(!0),stop:()=>xc(!0),seekTime:c=>ro(c),seekEpisodeStartTime:c=>zr(c),setPlaybackRate:c=>Wr(c),setAutoQualityLimits:c=>Cr(c),setMuted:Io,toggleSubtitle:Qo,setVolume:vo,returnFocusToEpisodes:cn,updateAdditionalSettingsItem:Kn,addAdditionalSettingsItem:Tr,removeAdditionalSettingsItem:bo,updateAdditionalContextItem:$t,addAdditionalContextItem:bt,removeAdditionalContextItem:lo,updateAdditionalButton:Sr,addAdditionalButton:Ji,removeAdditionalButton:Ei,setLiveLowLatency:xn,hideControls:()=>Ki(!1),showControls:()=>Ki(!0)}},callbacks:a,setUiCallbacks:c=>{Ie={...c}},getAdmanWrapper:()=>ee,getLogger:()=>Qe,getPlayer:()=>N,destroy:$0};return At};function Nr(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),r=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:u}=hs(e[i],t||void 0);return{left:r?d:0,right:r?u:0,top:r?l:0,bottom:r?a:0,isDisplayed:r}}var F2=["disabledControls$","additionalButtons"],U2=["interactiveTimeIndicator"],$l=(t,e,i,o)=>{if(t){for(let[n,r]of Object.entries(e))if(!F2.includes(n)){let l=o||U2.includes(n);r.set(Nr(t,i,n,l))}}};var ku=async(t,e,i)=>{await yo(),e&&i&&(i.focus(),t.set(!1))};var z2=Ce('<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 cm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=z2();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}function um(t,e){D(e,!0);let[i,o]=Be(),n=()=>C(a,"$contextMenuVisible$",i),r=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ee(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,$=j(void 0);ze(()=>{s($)&&Et(()=>{p.set(s($))})});let w=k=>{let P=Bs(k),I=p1(s($));v.set(I),u.set(P),a.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},T=h(()=>n()?"opened":"");Bt(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return r()},get ariaLabel(){return l()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return s($)},set ref(k){B($,k,!0)},children:(k,P)=>{cm(k,{})},$$slots:{default:!0}}),H(),o()}var W2=t=>{t.stopPropagation()},q2=M("<div><!> <div></div> <div></div></div>"),K2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
|
|
226
|
+
`)),$(pe,$e)};V(Ve,pe=>{s(k)&&pe(te)})}var N=A(Ve,2),Qe=_(N);{var ee=pe=>{var $e=Fe(),Z=ve($e);{var qe=Ie=>{var oe=Xr();O(Te=>_e(oe,Te),[()=>F("tooltip_episode_unfinished")]),$(Ie,oe)},Xe=Ie=>{var oe=Xr();O(()=>_e(oe,s(q).text||"")),$(Ie,oe)};V(Z,Ie=>{u()&&s(q).completed===!1?Ie(qe):Ie(Xe,!1)})}$(pe,$e)};V(Qe,pe=>{s(q)&&pe(ee)})}g(N);var We=A(N,2);{var le=pe=>{var $e=y2(),Z=_($e,!0);g($e),O(()=>_e(Z,d())),$(pe,$e)};V(We,pe=>{u()||pe(le)})}g(me),O(pe=>{ue=J(me,1,"timeline-preview svelte-1wqg760",null,ue,pe),at(me,`width: ${s(z)?s(T):s(C)}px;`)},[()=>({mobile:a()})]),$(t,me),H(),o()}var S2=M('<span class="time svelte-1jr6obn"> </span>'),C2=M("<!> <!>",1),T2={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function nm(t,e){var xe,He,fe,Ne,Je;D(e,!0),W(t,T2);let[i,o]=Be(),n=()=>S(re,"$interactiveEpisodes$",i),r=()=>S(E,"$duration$",i),l=()=>S(I,"$position$",i),d=()=>S(ae,"$isInteractiveExpectation$",i),a=()=>S(ce,"$isInteractiveTime$",i),p=()=>S(L,"$isLive$",i),f=()=>S(z,"$isMobile",i),v=()=>S(q,"$isActiveLive$",i),u=()=>S(P,"$bufferedProgress$",i),b=()=>S(me,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=Ee(),k=zt(),P=T.state.bufferedProgress$,I=T.state.positionWithScrubbing$,E=T.state.duration$,L=T.state.isLive$,q=T.state.isActiveLive$,z=T.ui.isMobile,U=k.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,G=T.actions.internal.getPreviewThumbsData(),re=T.state.interactiveEpisodes$,Y=T.state.isInteractive,ce=T.state.isInteractiveTime$,ae=T.state.isInteractiveExpectation$,Ae=T.actions.internal.correctSeekTimeToInteractive,Re=(xe=T.callbacks)==null?void 0:xe.onDisabledTimelineClick,me=T.ui.controls.disabledControls$,ue=(fe=(He=T.callbacks)==null?void 0:He.uiInfo)==null?void 0:fe.onTimelineMouseEnter,Ve=(Je=(Ne=T.callbacks)==null?void 0:Ne.uiInfo)==null?void 0:Je.onTimelineMouseLeave,te=T.ui.t,N=k.features.interactiveResponsiveUi,Qe=h(()=>Y?n():U),ee=h(()=>mn(r())),We=h(()=>mn(l())),le=h(()=>l()/r()),pe=h(()=>d()||a()),$e=j(!1),Z=j(""),qe=j(0),Xe=j(0),Ie=j(0),oe=h(()=>({containerWidth:s(Xe),translateXPx:s(qe),translateYPx:Y&&G?-36:-16,active:s($e)&&w()&&!s(pe)&&!N,pointer:!k.features.timelinePreview||!G||p()})),Te=te("aria_timeline"),Ke=h(()=>te("aria_timeline_value",{position:s(We),duration:s(ee)}));function rt(Ue){return!Ae||!Y?Ue:Ae(Ue*r())/r()}function nt(Ue){T.actions.internal.startScrubbing(rt(Ue))}function Rt(Ue){a()||T.actions.internal.progressScrubbing(rt(Ue))}function et(Ue){T.actions.internal.completeScrubbing(rt(Ue)),B($e,!1)}function pt(Ue,Lt,Et){Qt(Ue,Lt,Et),B($e,!0)}function Yt(Ue,Lt,Et){Qt(Ue,Lt,Et),B($e,!0)}function oi(){B($e,!1)}function Qt(Ue,Lt,Et){B(Ie,rt(Ue),!0),B(qe,Lt,!0),Et&&B(Xe,Et,!0),B(Z,Tt(Ue),!0)}function Tt(Ue){let Lt=mn((p()?1-Ue:Ue)*r());return p()?`-${Lt}`:Lt}var ie=C2(),Nt=ve(ie);im(Nt,ms(()=>s(oe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Ue,Lt)=>{var Et=Fe(),St=ve(Et);{var _t=ci=>{om(ci,{get time(){return s(Z)},get isMobile(){return f()},get videoEpisodes(){return s(Qe)},get previewThumbsData(){return G},get progress(){return s(Ie)},get duration(){return r()},get isInteractive(){return Y}})},Ri=ci=>{var ot=S2(),Ht=_(ot,!0);g(ot),O(()=>_e(Ht,s(Z))),$(ci,ot)};V(St,ci=>{k.features.timelinePreview&&G&&!p()?ci(_t):ci(Ri,!1)})}$(Ue,Et)},$$slots:{default:!0}}));var ge=A(Nt,2);let X=h(()=>b().has("TIMELINE"));xa(ge,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Te},ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return l()},get ariaValueText(){return s(Ke)},get loadedProgress(){return u()},get filledProgress(){return s(le)},get handleProgress(){return s(le)},get videoEpisodes(){return s(Qe)},onPointerDown:nt,onHandleMove:Rt,onPointerMove:Yt,onPointerUp:et,onPointerEnter:pt,onPointerLeave:oi,get onMouseEnter(){return ue},get onMouseLeave(){return Ve},get onDisabledClick(){return Re},get isInteractive(){return Y},get disabled(){return s(X)},get hideHandel(){return a()},testId:"progress_bar",get ref(){return C()},set ref(Ue){C(Ue)}}),$(t,ie),H(),o()}var E2={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 Dd(t,e){D(e,!0),W(t,E2);let[i,o]=Be(),n=()=>S(a,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ee(),a=d.ui.isMobile,p=d.ui.t,f=h(()=>mn(l())),v=h(()=>mn(r())),u=h(()=>r()/l()),b=h(()=>p("aria_timeline_value",{position:s(v),duration:s(f)})),w=h(()=>Math.round(s(u)*100));xa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return s(w)},get ariaValueText(){return s(b)},get filledProgress(){return s(u)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var I2=M("<div><!></div>"),k2=M("<div></div>"),P2={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 wa(t,e){D(e,!0),W(t,P2);let[i,o]=Be(),n=()=>S(b,"$isLive$",i),r=()=>S(C,"$isMobile",i),l=()=>S(y,"$adPosition",i),d=()=>S(w,"$adDuration",i),a=m(e,"isAds",3,!1),p=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),v=m(e,"ref",15,void 0),u=Ee(),b=u.state.isLive$,w=u.ads.duration,y=u.ads.position,C=u.ui.isMobile,T=h(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||a()));var k=Fe(),P=ve(k);{var I=L=>{var q=I2();let z;var U=_(q);{var G=Y=>{Dd(Y,{get position(){return l()},get duration(){return d()}})},re=Y=>{nm(Y,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(T)},get withEpisodes(){return e.withEpisodes},get ref(){return v()},set ref(ce){v(ce)}})};V(U,Y=>{a()?Y(G):Y(re,!1)})}g(q),O(Y=>z=J(q,1,"timeline svelte-41cp6d",null,z,Y),[()=>({withoutPadding:!f(),mobile:r()})]),$(L,q)},E=L=>{var q=k2();let z;O(U=>z=J(q,1,"timeline-stub svelte-41cp6d",null,z,U),[()=>({mobile:r()})]),$(L,q)};V(P,L=>{s(T)?L(I):L(E,!1)})}$(t,k),H(),o()}var k1=require("@vkontakte/videoplayer-shared/es2018");var A2=Ce('<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 rm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=A2();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(3),g(o),$(t,o)}var M2=Ce('<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 sm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=M2();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var L2=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),V2=M('<span class="text svelte-1yhs2ga"> </span>'),R2=M('<span class="text count svelte-1yhs2ga"> </span>'),N2=M("<!> <!>",1),B2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Hd(t,e){var ae,Ae,Re;D(e,!0),W(t,B2);let[i,o]=Be(),n=()=>S(w,"$currentGridType$",i),r=()=>S(y,"$openedByKeyboard$",i),l=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),a=m(e,"position",3,0),p=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ee(),u=(Ae=(ae=v.callbacks)==null?void 0:ae.onEpisodeChanged)!=null?Ae:k1.noop,b=!!((Re=v.callbacks)!=null&&Re.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,T=v.ui.isMobile,k=v.ui.t,P=j(void 0),I=me=>{var Ve,te,N;if(!!((Ve=v.callbacks)!=null&&Ve.onEpisodeClicked)){let Qe=Rs(me);y.set(Qe),C.set(!0),(N=(te=v.callbacks)==null?void 0:te.onEpisodeClicked)==null||N.call(te,Qe)}},E=j(null),L=h(()=>a()/p());ze(()=>{var ue;let me=$u(s(L),p(),f());me?((ue=s(E))==null?void 0:ue.time)!==me.time&&(u(me),B(E,me,!0)):B(E,null)});let q=h(()=>{var me;return((me=s(E))==null?void 0:me.text)||""}),z=h(()=>Ji(n(),"xl")?"FULL":Ji(n(),"m")&&x1(n(),"xl")?"COUNT":"SHORT"),U=h(()=>`${k("tooltip_episodes")}: ${s(q)}`),G=async(me,ue,Ve)=>{await So(),(me==null?void 0:me.getAttribute("aria-expanded"))==="false"&&ue&&!Ve&&It(()=>{y.set(!1),me.focus()})};ze(()=>{G(s(P),r(),l())});var re=Fe(),Y=ve(re);{var ce=me=>{let ue=h(()=>d()?"px-0":""),Ve=h(()=>!b);Ot(me,{get className(){var te;return`w-max btn-full-opacity btn-jc-l ${(te=s(ue))!=null?te:""}`},testId:"btn-episodes",click:I,get disabled(){return s(Ve)},get ariaExpanded(){return l()},get ariaLabel(){return s(U)},get ref(){return s(P)},set ref(te){B(P,te,!0)},children:(te,N)=>{var Qe=Fe(),ee=ve(Qe);{var We=pe=>{var $e=L2(),Z=ve($e),qe=_(Z,!0);g(Z);var Xe=A(Z,2),Ie=_(Xe);sm(Ie,{}),g(Xe),O(()=>_e(qe,s(q))),$(pe,$e)},le=pe=>{var $e=N2(),Z=ve($e);rm(Z,{});var qe=A(Z,2);{var Xe=oe=>{var Te=V2(),Ke=_(Te,!0);g(Te),O(()=>_e(Ke,s(q))),$(oe,Te)},Ie=(oe,Te)=>{{var Ke=rt=>{var nt=R2(),Rt=_(nt,!0);g(nt),O(()=>_e(Rt,f().length)),$(rt,nt)};V(oe,rt=>{s(z)==="COUNT"&&rt(Ke)},Te)}};V(qe,oe=>{s(z)==="FULL"?oe(Xe):oe(Ie,!1)})}$(pe,$e)};V(ee,pe=>{d()?pe(We):pe(le,!1)})}$(te,Qe)},$$slots:{default:!0}})};V(Y,me=>{s(E)&&me(ce)})}$(t,re),H(),o()}var ym=require("@vkontakte/videoplayer-shared/es2018");var li=require("@vkontakte/videoplayer-core/es2018"),ft=require("@vkontakte/videoplayer-shared/es2018"),os=require("@vkontakte/videoplayer-statistics/es2018");var Ye=require("@vkontakte/videoplayer-shared/es2018"),eo=require("@vkontakte/videoplayer-shared/es2018");var P1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var O2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",yu=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new eo.Subject,loadStarted$:new eo.Subject,loadEnded$:new eo.Subject,loadError$:new eo.Subject,ready$:new eo.Subject,slotRequested$:new eo.Subject,started$:new eo.Subject,timeRemained$:new eo.Subject,paused$:new eo.Subject,resumed$:new eo.Subject,ended$:new eo.Subject,empty$:new eo.Subject,skipped$:new eo.Subject,clicked$:new eo.Subject,closed$:new eo.Subject,error$:new eo.Subject};this.loadAdman=e=>(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ye.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ye.now)()]}),o())};(0,eo.addScript)(O2,e,this.loadTimeout).then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ye.now)()]}),window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ye.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ye.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ye.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ye.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ye.now)()]}),!d&&(window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ye.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ye.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"}),ye(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ye.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ye.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ye.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ye.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:r,adsContainer:l,adsVideoElement:d,slotId:a,params:p={},duration:f,previewParam:v}=e,u,b=this.playerState&&ye(this.playerState.vsid);b&&(this.isVsidOriginal?u=b:u=parseInt(b,36));let{isEmbed:w,immediateOrigin:y}=(0,Ye.detectEmbed)(),C=(P=w?y:window.location.href)!=null?P:window.location.href,T={...p,dl:encodeURIComponent(C),autoplay:r?1:0,player_width:i,player_height:o,preview:v,...u?{request_id:u}:{},duration:f,puid10:P1(i,o),puid11:n?0:1};v||delete T.preview;let k={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;I.setDebug(!1),I.onReady(this.onAdsReady),I.onStarted(this.onAdStarted),I.onPlayed(this.onAdPlayed),I.onPaused(this.onAdPaused),I.adMidrollPoint(this.onAdMidrollPoint),I.onClosed(this.onAdClosed),I.onSkipped(this.onAdSkipped),I.onClicked(this.onAdClicked),I.onTimeRemained(this.onAdTimeRemained),I.onCompleted(this.onAdCompleted),I.onError(this.onAdError),I.init(k),this.adman=I,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(I){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ye.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(r=(n=this.actions).switchFromAdsToVideo)==null||r.call(n,!i)}}togglePlay(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adsState){this.log({message:"toggle play"});let i=ye(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ye.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,r,l,d,a,p,f,v,u;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ye.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(r=this.adman)==null||r.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&(0,eo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var A1=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 am=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let p=new xu,{startTime:f,endTime:v}=p.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let p=new lm,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},xu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},lm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let p=["<",">"].reduce((f,v)=>{let u=l.indexOf(v,d);return f===-1||f>u?u:f},-1);if(p===-1){a.push(l.substring(d));break}a.push(l.substring(d,p)),d=p+1}return a}}),r=new xu;for(let l of n)r.isTime(l)?i.texts.push({type:"timestamp",value:r.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},M1=am;var Su=require("@vkontakte/videoplayer-shared/es2018"),Sa,Ci,dm=0,cm=!1,L1="",V1=(t,e=0,i=0)=>t<e&&t<i,wu=(t,e=0,i=0)=>t>=e&&t<=i,D2=(t,e=0,i=0)=>t>e&&t>i,R1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:f})=>wu(t,p,f));let r=t>=dm,l=t<dm;if(dm=t,l&&(cm=!1),(0,Su.isNonNullable)(Sa)&&wu(t,Sa.startTime,Sa.endTime)&&L1===e.value)return Sa;if(!(0,Su.isNonNullable)(Ci)&&(n!=null&&n.length)&&!cm){Ci=n.find(({startTime:p,endTime:f})=>wu(t,p,f)||r&&V1(t,p,f)),Sa=void 0,!(0,Su.isNonNullable)(Ci)&&n[n.length-1].endTime<t&&(cm=!0);return}else{if(wu(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime))return Sa=Ci,Ci=void 0,L1=e.value,Sa;(r&&D2(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime)||l&&V1(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime))&&(Ci=void 0)}};var Cu={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},H2={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Tu=t=>{var e,i;return(i=(e=Cu[t])!=null?e:Cu[H2[t]])!=null?i:void 0};var N1=require("@vkontakte/videoplayer-shared/es2018"),SB=require("@vkontakte/videoplayer-statistics/es2018"),Eu=class{constructor(e,i,o,n=new N1.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var Fd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Fd||{});var is=t=>t!=null?t:0,gs=(t,e)=>{var n,r;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(is(i==null?void 0:i.top)-is(o==null?void 0:o.top)),left:Math.round(is(i==null?void 0:i.left)-is(o==null?void 0:o.left)),bottom:Math.round(is(i==null?void 0:i.bottom)-is(o==null?void 0:o.top)),right:Math.round(is(i==null?void 0:i.right)-is(o==null?void 0:o.left))}},$l=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:is(e==null?void 0:e.width),height:is(e==null?void 0:e.height)}};var Iu="off";var B1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:p,videoEpisodes:f,previewThumbsData:v,uiConfig:u,coreConfig:b,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:k,replayInteractive:P,stopPlayer:I,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:L,additionalButtons:q,additionalSettingsMenuItems:z,additionalContextMenuItems:U,playPrevVideo:G,playNextVideo:re,looped:Y=!1,statistics:ce,saveRate:ae,internalsExposure:Ae,playerView:Re})=>{var Av,Mv,Lv;let me={...b,configName:[...(Av=b.configName)!=null?Av:[],"ui"],isAudioDisabled:l,live:{...(Mv=b.live)!=null?Mv:{},isLiveCatchUpMode:!!n}},ue=u,Ve=ft.TracerFactory.createRootTracer(ue.features.tracer),te=Ve.createComponentTracer("Store"),N=w||new li.Player(me,Ve);Ae==null||Ae.expose({corePlayer:N});let Qe=new ft.Logger,ee=new yu(Qe,{loadTimeout:ue.ads.loadTimeout,initTimeout:ue.ads.initTimeout,runtimeTimeout:ue.ads.runtimeTimeout,useAdmanFromNPM:ue.ads.useAdmanFromNPM,volumeMultiplier:ue.ads.volumeMultiplier,isVsidOriginal:ue.ads.isVsidOriginal}),We=pa.getInstance(),le=p==null?void 0:p.pictureInPictureApi,pe=p==null?void 0:p.annotationsApi,$e=p==null?void 0:p.slotsApi,Z=Qe.createComponentLog("Store"),qe,Xe,Ie={},oe=new eu,Te=new ft.Subscription,Ke=ce&&ce.oneStat?Jt(ce.oneStat.vsid$):fr(void 0),rt=se(Ms()),nt=se(!1),Rt=(Lv=le==null?void 0:le.info.isActive$)!=null?Lv:new ft.ValueSubject(!1),et=se(0),pt=se([]),Yt=(0,ft.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>pt.update(x=>[...x,c])),oi=fr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Qt=async c=>{var de;let x=Object.values(ft.InterfaceLanguage).includes(c);if(ue.downloadVKLanguages&&(x&&ue.updateBuiltinLanguages||!ff(c))){let De;try{De=await(0,ft.loadVKLangPack)(c,$h,yh)}catch(ht){(de=ce==null?void 0:ce.oneStat)==null||de.logError({errorType:"VKLangPack",fatal:!1}),We==null||We.report(ht,{errorType:"VKLangPack",fatal:!1})}De&&(pf({language:c,pack:De,fallback:ue.defaultLanguage}),Tt.set(c))}ff(c)&&Tt.set(c)},Tt=se(t),ie=se(e);Qt(t);let Nt=(c,x)=>{let R=ye(Tt);return mf(R,c,x,ue.defaultLanguage)},ge=se("thumb"),X=(()=>{let c=gi([oi,ge],([x,R])=>x?"crashed":R);return{...c,is:x=>ye(c)===x}})(),xe=(()=>{let c=se(new Set(y));return{...c,add:x=>{c.update(R=>new Set([...R].concat(x)))},remove:x=>{c.update(R=>{let de=[...R];return new Set(Array.isArray(x)?de.filter(De=>!x.includes(De)):de.filter(De=>De!==x))})},includes:x=>{let R=ye(c);return Array.isArray(x)?x.every(de=>R.has(de)):R.has(x)}}})();te.log("create store"),Z({message:"create store"});let He=c=>{let x=c.container,R=()=>{St=new MutationObserver(De=>{let{removedNodes:ht}=De[0];ht.length&&x.append(N.experimental.element$.getValue())}),St.observe(x,{childList:!0})},de=N.experimental.element$.getValue();if(de)x.append(de),R();else{let De=N.experimental.element$.pipe((0,ft.filter)(ht=>!!ht),(0,ft.once)()).subscribe(ht=>{x.append(ht),R()});Te.add(De)}},fe=c=>{Z({message:`init video, config: ${JSON.stringify(c)}`}),C?He(c):(ft.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ft.now)()]}),N.initVideo(c)),te.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),qe=c},Ne=new ft.Subject,Je=c=>Ne.next(c),Ue=new ft.Subject,Lt=new ft.Subject,Et=new ft.Subject,St=null,_t={actionRewind$:Ue,actionSeek$:Lt,inPiP$:Rt,inFullscreen$:new ft.Observable(c=>rt.subscribe(x=>c.next(x))),actionSetSubtitle$:Et,nextMovie$:Ne},Ri={actionSeek$:Lt,playerSize$:new ft.Observable(c=>he.subscribe(x=>c.next(x)))};if(ce){let{oneStat:c,thinOneStat:x,mediascopePixel:R,statSubscription:de}=ce;c&&(C||de.add(c.attachTo(N)),de.add(c.attachToUi(_t)),de.add(c.attachToAds(ee.events)),c.authorize(r).catch(De=>{Z({message:`onestat auth error ${String(De)}`})}),R&&R.attachTo(N)),x&&(de.add(x.attachTo(N)),de.add(x.attachToUi(Ri)),x.authorize(r))}if(We){let c=new ft.Subscription,x=(R,de)=>c.add(R.subscribe(de));if(x(N.events.managedError$,R=>{We.logIError(R)}),x(N.events.fatalError$,R=>{We.logIError(R,!0)}),ce){let{oneStat:R}=ce;R&&x(R.experimental.error$,de=>{We.logIError(de)})}We.sentrySubscription.add(c)}let ci=()=>{li.clientChecker.device.isIOS&&Xe&&o1(Xe).catch(c=>{Z({message:`exitIosSafariFullscreen failed: ${c}`})})};Te.add(N.experimental.element$.subscribe(c=>{c&&(Xe=c,c.classList.add("player-media"),ma(le)&&(le.updateVideoElement(),le.registryEventHandlers()),C&&c.setAttribute("pip","false"),Re==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;ci(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(async()=>{var x,R;ma(le)&&await(le==null?void 0:le.revealPictureInPicture());let c=N.info.muted$.getValue();(x=a==null?void 0:a.onStarted)==null||x.call(a),(R=Ie.onStarted)==null||R.call(Ie,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var R;(R=a==null?void 0:a.onSeek)==null||R.call(a,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(N.info.position$.subscribe(c=>{var R;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((R=a==null?void 0:a.onTimeupdate)==null||R.call(a,x,c),ee.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=a==null?void 0:a.onCrashed)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=a==null?void 0:a.onRecoverableError)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{st.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{st.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(k!=null&&k.getValue()&&xe.add(md),xe.add("PLAY_BUTTON")):xe.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=a==null?void 0:a.onLiveTime)==null||x.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=a==null?void 0:a.onStalledChanged)==null||x.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=a==null?void 0:a.onLiveEnded)==null?void 0:x.call(a))})).add(ee.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(ee.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(ee.events.loadError$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(ee.events.init$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(ee.events.ready$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(ee.events.started$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onStarted)==null?void 0:R.call(x,c)})).add(ee.events.timeRemained$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:R.call(x,c)})).add(ee.events.ended$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onCompleted)==null?void 0:R.call(x,c)})).add(ee.events.empty$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(ee.events.clicked$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClicked)==null?void 0:R.call(x,c)})).add(ee.events.closed$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClosed)==null?void 0:R.call(x,c)})).add(ee.events.error$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onError)==null?void 0:R.call(x,c)})).add(ee.events.paused$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(ee.events.resumed$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let ot=new ft.Subscription,Ht=()=>{var ht,Ft,Wt;let{debugLog:c}=ue,x,R="#9df7b7",de="#efd169";if(c&&c!==!0){let{colors:Ut}=c;x=c.tag,R=(ht=Ut==null?void 0:Ut[0])!=null?ht:R,de=(Wt=(Ft=Ut==null?void 0:Ut[1])!=null?Ft:Ut==null?void 0:Ut[0])!=null?Wt:de}let De=x?`: ${x}`:"";ot.add(N.events.log$.subscribe(Ut=>{console.debug(`%c sdk${De} `,`background:${R};`,`sdk component: ${Ut.component}`,Ut.message)})).add(Qe.log$.subscribe(Ut=>{console.debug(`%c ui${De} `,`background:${de};`,`ui component: ${Ut.component}.`,Ut.message)}))},fi=()=>{ot.unsubscribe()},qi=(c,x)=>{te.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},ho=(c=!1)=>{te.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Ki=(c,x,R)=>{te.log("move camera focus px",{xpx:c,ypx:x,dt:R}),N.moveCameraFocusPX(c,x,R)},jt=()=>{N.holdCamera()},_o=()=>{N.releaseCamera()},At=fr(N.info.position$.getValue(),c=>{let x,R,de=()=>{let De=N.info.playbackState$.getValue(),ht=N.info.isLive$.getValue(),Ft=N.info.duration$.getValue(),Wt=N.info.position$.getValue();if(De&&[li.PlaybackState.PLAYING,li.PlaybackState.PAUSED].includes(De)){let Ut=ht?Wt-Ft:N.getExactTime();Ut!==R&&c(Ut),R=Ut}x=requestAnimationFrame(de)};return de(),()=>cancelAnimationFrame(x)}),ct=Jt(N.info.playbackState$),mi=Jt(N.info.currentBuffer$),Q=Jt(N.info.isEnded$),qt=Jt(N.info.isLive$),di=ue.features.playbackRate?Jt(N.info.canChangePlaybackSpeed$):fr(!1),Ni=Jt(N.info.liveBufferTime$),si=Jt(N.info.volume$),ui=Jt(N.info.muted$),vt=tu(N.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===li.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===li.PredefinedQualityLimits.TRAFFIC_SAVING),it=tu(N.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===li.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===li.PredefinedQualityLimits.HIGH_QUALITY),kt=Jt(N.info.autoQualityLimitingAvailable$),Qi=Jt(N.info.availableQualities$),ti=Jt(N.info.availableQualitiesFps$),Zn=Jt(N.info.chromecastState$),Ti=Jt(N.info.chromecastDeviceName$),To=Jt(N.info.currentFormat$),$i=Jt(N.info.throughputEstimation$),yt=Jt(N.info.videoBitrate$),Bi=Jt(N.info.intrinsicVideoSize$),Fo=Jt(N.info.duration$),En=Jt(N.info.isAudioAvailable$),ai=null,Ei=N.info.isBuffering$,Uo=fr(Ei.getValue(),c=>{let x=Ei.subscribe(R=>{R&&ai===null?ai=window.setTimeout(()=>{c(Ei.getValue()),ai=null},ue.loaderDelay):c(R)});return()=>{x.unsubscribe(),ai&&clearTimeout(ai)}}),In=()=>{ai&&clearTimeout(ai),ai=null},zo=gi([Fo,qt],([c,x])=>x?-c:c),Eo=gi([ct],([c])=>c===li.PlaybackState.PLAYING),gn=Jt(N.info.atLiveEdge$),nn=Jt(N.info.atLiveDurationEdge$),bo=Jt(N.info.position$),uo=gi([bo,Fo],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Br=gi([Zn],([c])=>c===li.ChromecastState.CONNECTED),vr=Jt(N.info.availableVideoStreams$),Xn=ue.features.audioLanguages?Jt(N.info.availableAudioStreams$):fr([]),Jn=Jt(N.info.currentVideoStream$),er=Jt(N.info.currentAudioStream$),kn=c=>{c.language&&uf(c.language),N.setVideoStream(c)},ns=c=>{c.language&&uf(c.language),N.setAudioStream(c)},Pn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(de=>"isDefault"in de&&de.isDefault)),x)return x;let R=qh();return R&&(x=c.find(({language:de})=>R===de)),x!=null||(x=c.at(0)),x},yi=!1;Te.add(N.info.availableAudioStreams$.subscribe(c=>{if(!yi&&c.length){let x=Pn(c);x&&(N.setAudioStream(x),yi=!0)}}));let An=!1;Te.add(N.info.availableVideoStreams$.subscribe(c=>{if(!An&&c.length){let x=Pn(c);x&&(N.setVideoStream(x),An=!0)}}));let rn=se(void 0),sn=Jt(N.info.isAutoQualityEnabled$,c=>c&&rn.set(void 0)),Mn=Jt(N.info.currentQuality$,()=>rn.set(void 0)),Ln=gi([rn,Mn],([c,x])=>c!=null?c:x),Wo=gi(To,c=>c!==li.VideoFormat.MPEG),Or=gi([Qi,ti,sn,Ln,Wo],([c,x,R,de,De])=>{let ht=[];De&&ht.push({value:"auto",displayValue:Nt("auto_quality_option"),selected:R});let Ft=c.filter(Wt=>!(0,ft.isInvariantQuality)(Wt));for(let Wt of Ft){let Ut=x[Wt];ht.push({value:Wt,displayValue:`${Wt}${Ut?A1(Ut):""}`,selected:R?!1:Wt===de})}return ht}),Vn=Jt(N.info.currentPlaybackRate$),tr=gi([Vn,gn,nn],([c,x,R])=>{let de=R||C?1:ue.controls.playbackRateMin,De=x?1:ue.controls.playbackRateMax,ht=ue.controls.playbackRateStep,Ft=[];for(let Wt=de;Wt<=De;Wt+=ht)Ft.push({value:Wt,displayValue:Wt===1?Nt("playback_rate_1"):Nt("playback_rate",{multiplier:Wt.toString(10)}),selected:c===Wt});return Ft}),Gi={displayValue:Nt("subtitles_off"),value:Iu},Io=se({...Gi}),lt=ue.features.subtitles?Jt(N.info.availableTextTracks$):fr([]),Xt=Nh(),gr=gi([lt,Io],([c,x],R)=>{var ht;let de=[],De=c.find(({id:Ft})=>Ft===x.value);if(De!=null&&De.url){let[,Ft]=(ht=Xt.find(De.url))!=null?ht:[];if(Ft){R(Ft);return}oe.download(De.url).then(Wt=>{if(!Wt||oe.isDestroyed())return;let Ut=new M1,xs=De.language;if(xs){let y0=!!De.isAuto,x0=Ut.parse(Wt,xs);de.push({lang:xs,subtitles:x0,isAuto:y0,id:De.id})}Xt.add(De.url,de),ye(Io).value===x.value&&R(de)}).catch(Wt=>{var Ut;(Ut=ce==null?void 0:ce.oneStat)==null||Ut.logError({errorType:"Subtitles download",fatal:!1}),We==null||We.report(Wt,{errorType:"Subtitles download",fatal:!1})})}R(de)}),Rn=gi([Vn,Eo,Io],([c,x,R],de)=>{let Ft;if(N.info.isLive$.getValue()&&x&&R.value!==Gi.value){let Ut=()=>{let xs=1e3/(3*c);Ft=setTimeout(Ut,xs),de(Date.now())};return Ut(),()=>clearTimeout(Ft)}}),hn=gi([lt,Io],([c,x])=>{if(!c.length)return[];let R=[];for(let{language:de,isAuto:De,id:ht}of c){let Ft=de&&Tu(de);de&&Ft&&R.push({displayValue:De?Nt("subtitles_auto",{language:Ft}):Ft,value:ht,selected:(x==null?void 0:x.value)===ht,isAuto:De})}return R.length?(R.unshift({...Gi,selected:(x==null?void 0:x.value)===Gi.value}),R):[]}),Oi={available:[],prev:[]},Nn=()=>{var x,R;let c=N.experimental.getCurrentTime$.getValue();return(R=(x=c==null?void 0:c())!=null?x:Xe==null?void 0:Xe.currentTime)!=null?R:0},ko=gi([At,Io,gr,Rn],([c,x,R,de])=>{var ht;let De=N.info.isLive$.getValue();if(De&&Oi.prev!==R){let Ft=R.find(({id:Ut})=>Ut===x.value),Wt=Oi.prev.find(({id:Ut})=>Ut===x.value);if(Ft){let Ut={...Ft,subtitles:[...(ht=Wt==null?void 0:Wt.subtitles)!=null?ht:[],...Ft.subtitles]};Oi.available=[Ut],Oi.prev=R}}if(x&&x.value!==Gi.value){let Ft=De?Nn():c,Wt=De?Oi.available:R;return R1(Ft,x,Wt,De)}}),Bn=gi([ko],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(Io.subscribe(c=>{var x,R;if(c.value===Gi.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let de=Object.entries(Cu).find(([De,ht])=>ht===c.displayValue);(R=a==null?void 0:a.onSubtitleOn)==null||R.call(a,de?de[0]:"")}}));let Po=se(!0),On=gi([mi,zo,bo,Ni],([c,x,R,de])=>{var Wt;let De=(Wt=c==null?void 0:c.end)!=null?Wt:0;if(!de)return De/x;let Ft=-R+de-x;return(De-Ft)/x}),Dn=Jt(N.info.availableSources$),ir=gi([Dn],([c])=>Object.keys((c==null?void 0:c[li.VideoFormat.MPEG])||{}).length>0),hr=()=>{var R,de,De;let c=Object.keys(((de=(R=N.info.availableSources$)==null?void 0:R.getValue())==null?void 0:de[li.VideoFormat.MPEG])||{}),x=(0,ft.getHighestQuality)(c)||ft.VideoQuality.Q_144P;return(De=qe.sources[li.VideoFormat.MPEG])==null?void 0:De[x]},or=()=>{var x;let c=hr();if(c)te.log("download video",{url:c}),Lh(c,((x=qe==null?void 0:qe.meta)==null?void 0:x.title)||"video");else{let R="There is no URL for download video";te.log("download video",{message:R}),Z({message:R})}},qo=()=>{Z({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?$o(Zt()):br(!c)},Dr=()=>{var c;if(st.ui.settingsMenu.visible$.set(!1),!ye(st.ui.settingsSubMenu.visible$)){let x=ye(st.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let de=$l(x),De={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:de,position:De,name:"settings"})}}te.log("close settings menu")},nr=async(c,x=()=>Promise.resolve())=>{var De;st.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),st.ui.settingsMenu.visible$.set(!0),await x();let R=ye(st.ui.settingsMenu.ref$),de=Ba();if((De=a==null?void 0:a.uiInfo)!=null&&De.onSettingsMenu&&R&&de){let Ft=$l(R),Wt=gs(R,de);a.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:Wt,name:"settings"})}te.log("open settings menu",{wasOpenedByKeyboard:c})},_r=(c,x=!1)=>{var ht;st.ui.settingsSubMenu.visible$.set(!1);let R=ye(st.ui.settingsMenu.ref$),de=Ba(),De=ye(st.ui.settingsMenu.visible$);if((ht=a==null?void 0:a.uiInfo)!=null&&ht.onSettingsMenu&&R&&de)if(De&&!x){let Wt=$l(R),Ut=gs(R,de);a.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:Ut,name:"settings"})}else{let Wt=$l(c),Ut={top:0,left:0,bottom:0,right:0},xs=ye(st.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Wt,position:Ut,name:xs})}te.log("close settings sub menu")},an=(c,x)=>{var de;st.ui.settingsSubMenu.visible$.set(!0),st.ui.settingsSubMenu.ref$.set(x),st.ui.settingsSubMenu.name$.set(c);let R=Ba();if((de=a==null?void 0:a.uiInfo)!=null&&de.onSettingsMenu&&x&&R){let ht=$l(x),Ft=gs(x,R);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:ht,position:Ft})}te.log("open settings sub menu",{name:c})},Zt=()=>{var x;let c=Math.max(ue.volumeMinRestore,(x=iu())!=null?x:0);return c===0?ue.volumeDefault:c},$o=c=>{let x=c===0?Zt():c,R=N.info.muted$.getValue();Z({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let de=!l||X.is("ads");R&&c>0&&de&&(R=!1,df(!1)),N.setVolume(c,R),ee.setVolume(c),nf(x)},br=c=>{let x=N.info.volume$.getValue();if(Z({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c,X.is("ads")),ee.setVolume(c?0:x),df(c),!c&&x===0){let R=Zt();N.setVolume(R),nf(R),ee.setVolume(R)}},$r=se(!1),Ko=c=>{var x,R;te.log("set looped",{isLooped:c}),$r.set(c),N.setLooped(c),(R=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||R.call(x,c)};Ko(Y);let Ii=()=>{var c,x;(x=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Hr=(c,x=!1)=>{var R;Z({message:`set autoplayNextEnabled, value: ${c}`}),te.log("set autoplay next enabled",{autoplayNextEnabled:c}),st.ui.autoplayNextEnabled$.set(c),Gh(c),x&&((R=a==null?void 0:a.onSetAutoplayNextEnabled)==null||R.call(a,c))},Fr=c=>{Z({message:`set timerNextVideoRunning, value: ${c}`}),te.log("set timer next video running",{timerNextVideoRunning:c}),st.ui.timerNextVideoRunning$.set(c)},Ur=(c=!0)=>{var de;let x=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{x=(de=a==null?void 0:a.onPrevVideoClick)==null?void 0:de.call(a)}catch(De){Z({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&sr("prev")||G()},rr=(c=!0)=>{var de;let x=!0;if(c&&(a!=null&&a.onNextVideoClick))try{x=(de=a==null?void 0:a.onNextVideoClick)==null?void 0:de.call(a)}catch(De){Z({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&sr("next")||re()},sr=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:R,playbackStatusShow:de}}=ue;return R&&de&&!x?(st.ui.aboutToGoNextVideo.set(c),st.ui.userActionsDisabled.set(!0),!0):!1},gt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Kt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},hi=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},ki=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Pi=()=>{N.prepare()},oo=()=>{(0,ft.assertNonNullable)(st);let c=ye(st.ui.controls.disabledControls$),x=ye(st.playerPhase),R={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Z({message:"toggle play"}),x==="ads"){R.action="play",te.log("toggle adman play",R),ee.togglePlay();return}let de=()=>{var ht;Z({message:"toggle play, call player.play"}),R.action="play",N.play(),(ht=a==null?void 0:a.onPlay)==null||ht.call(a)},De=()=>{var ht;Z({message:"toggle play, call player.pause"}),R.action="pause",N.pause(),(ht=a==null?void 0:a.onPause)==null||ht.call(a)};if(N.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),Ue.next(),Lt.next(os.SeekAction.REWIND),C){P==null||P();return}N.seekTime(0),de()}else N.info.playbackState$.getValue()!==li.PlaybackState.PLAYING?de():De();te.log("toggle play",R)},ln=(c,{changeReason:x="default",appliesTo:R="to-video"}={})=>{Z({message:`set quality, quality: ${c}`}),te.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ue.features.qualityDetailsSubMenuEnabled?(ou({type:"exact_quality",quality:c,videoId:i},R),hd(),N.setPredefinedQualityLimits(li.PredefinedQualityLimits.UNKNOWN)):rf(i,c),rn.set(c),N.setQuality(c)):ue.features.qualityDetailsSubMenuEnabled?x==="default"&&(_i("auto_quality",R),ye(vt)&&Di(!1),ye(it)&&je(!1)):hd()},Di=(c,x="as-default")=>{Z({message:`set trafficSavingEnabled, value: ${c}`}),te.log("set traffic saving enabled",{trafficSavingEnabled:c});let R=c?li.PredefinedQualityLimits.TRAFFIC_SAVING:li.PredefinedQualityLimits.UNKNOWN;ue.features.qualityDetailsSubMenuEnabled?(Vt(R,x),gd(!1)):(N.setPredefinedQualityLimits(R),gd(c))},je=(c,x="as-default")=>{Z({message:`set highQualityEnabled, value: ${c}`}),te.log("set high quality enabled",{highQualityEnabled:c}),Vt(c?li.PredefinedQualityLimits.HIGH_QUALITY:li.PredefinedQualityLimits.UNKNOWN,x)},Vt=(c,x)=>{c!==li.PredefinedQualityLimits.UNKNOWN&&(ye(kt)&&!ye(sn)&&ln("auto",{appliesTo:x,changeReason:"limit-changed"}),_i(c,x)),N.setPredefinedQualityLimits(c)},_i=(c,x)=>{ou({type:c,videoId:i},x),x==="as-default"&&ou({type:c,videoId:i},"to-video")},yo=c=>{te.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ue.features.saveRate&&ae&&!N.info.isLive$.getValue()&&Kh(c)},po=()=>{let c=ye(tr),x=c.findIndex(({selected:de})=>de);if(x===c.length-1)return;let R=c[x+1];yo(R.value)},Qo=()=>{let c=ye(tr),x=c.findIndex(({selected:de})=>de);if(x===0)return;let R=c[x-1];yo(R.value)},no=(c={...Gi,selected:!1})=>{te.log("set subtitles",{...c}),c&&c.value!==Gi.value&&Et.next(c.isAuto?c.value+"_auto":c.value),Io.set(c)},Go=()=>{te.log("toggle subtitles");let c=ye(hn),x=ye(Io),R=ye(Tt);if((x==null?void 0:x.value)===Gi.value){let de=c.filter(De=>De.value!==Gi.value).find(De=>De.value===R)||c[1];no(de)}else no()},Ao=se(!0),Yi=c=>{Ao.set(c)},bi=(c,x,R=!0)=>{var de;if(Z({message:`seek to time, time: ${c}`}),te.log("seek to time",{time:c,action:x,forcePrecise:R}),Lt.next(x),N.info.isLive$.getValue()){let De=N.info.duration$.getValue(),ht=Math.min(0,De+c);N.seekTime(ht,R)}else{if(k!=null&&k.getValue())return;N.info.isEnded$.getValue()&&(Z({message:"seek after ended, call callbacks.onPlay"}),(de=a==null?void 0:a.onPlay)==null||de.call(a)),N.seekTime(ni(c),R)}},Yo=c=>{Z({message:`seek to episode start time: ${c}`}),te.log("seek to episode start time",{time:c}),bi(c,os.SeekAction.EPISODE,!0)},dn=(c,x)=>{Z({message:`seek to percent, percent: ${c}`}),te.log("seek to percent",{percent:c,action:x});let R=ye(zo)*c;bi(R,x,!1)},fo=c=>{Z({message:`seek external, time: ${c}`}),te.log("seek external",{time:c}),Lt.next(os.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},yr=c=>{var de,De;let x=(de=c.max)!=null?de:"none",R=(De=c.min)!=null?De:"none";Z({message:`set auto quality limitation. Max: ${x}. Min: ${R}`}),te.log("set auto quality limits",{max:x,min:R}),N.setAutoQualityLimits(c)},zr=c=>{Z({message:`seek external to episode start time: ${c}`}),te.log("seek external to episode start time",{time:c}),bi(c,os.SeekAction.EPISODE,!0)},Wr=c=>{Z({message:`set playback rate to: ${c}`}),te.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},_n=se(void 0),Hn=se(!1),rs=c=>{Z({message:`start scrubbing, progress: ${c}`}),te.log("start scrubbing",{progress:c}),Hn.set(!0),xr(c)},xr=c=>{_n.set(c)},jo,ji,Fn=()=>{_n.set(void 0),Hn.set(!1)},ar=()=>{clearTimeout(ji),clearTimeout(jo),jo=window.setTimeout(()=>{Fn()},500),Xe==null||Xe.removeEventListener("seeked",ar)},qr=c=>{Z({message:`complete scrubbing, progress: ${c}`}),te.log("complete scrubbing",{progress:c}),dn(c,os.SeekAction.SLIDER),ye(st.ui.isMobile)&&ye(st.state.currentFormat$)===li.VideoFormat.HLS?(Xe==null||Xe.addEventListener("seeked",ar),ji=window.setTimeout(()=>{ar()},300)):Fn()},Kr=gi([At,zo,_n],([c,x,R],de)=>{de((0,ft.isNonNullable)(R)?R*x:c)}),lr=se(!1),ss=()=>{lr.set(!0)},we=()=>{lr.set(!1)},he=se({width:0,height:0}),mt=gi([he],([{width:c}],x)=>{let R=w1(c);x(R)}),Mt=se(!1),Le=q.filter(c=>Vh(c)),ut=gi([mt,Mt],([c,x])=>x?Le.filter(R=>!R.hideOnMobile):Le.filter(R=>{var de;return!((de=R.hideOnDesktopGridTypes)!=null&&de.includes(c))})),Gt=se(q.filter(c=>Rh(c))),xi=gi([Gt,mt],([c,x])=>c.filter(R=>{var de;return!((de=R.hideOnDesktopGridTypes)!=null&&de.includes(x))})),ro=gi([xi,ut],([c,x])=>[...ue.features.additionalButtonsDesktopControlPanelRight?c.filter(R=>R.type==="desktop-control-panel-right"):[],...ue.features.additionalButtons?x.map((R,de)=>{var De;return{id:de,weight:de,type:"desktop-control-panel-right",testId:R.testId,icon:R.iconUrl,onClick:R.onClick,ariaLabel:(De=R.ariaLabel)!=null?De:R.tooltip,tooltipText:R.tooltip}}):[]]),Zi=se(z),wr=gi([Zi],([c])=>ue.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Sr=(c,x)=>{let R=ye(Gt).map(de=>de.id!==c?de:{...de,...x});Gt.set(R)},so=c=>{let x=ye(Gt);if(x.some(R=>R.id===c.id)){Z({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Gt.set(x)},Ai=c=>{let x=ye(Gt);if(!x.some(R=>R.id===c)){Z({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),Gt.set(x)},bn=c=>{Lt.next(os.SeekAction.LIVE),Z({message:"live switch to low latency "+c}),te.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Un=(c,x)=>{let R=ye(Zi).map(de=>de.id!==c?de:{...de,...x});Zi.set(R)},Cr=c=>{let x=ye(Zi);if(x.some(R=>R.id===c.id)){Z({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Zi.set(x)},xo=c=>{let x=ye(Zi);if(!x.some(R=>R.id===c)){Z({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),Zi.set(x)},dr=se(U),zs=gi([dr],([c])=>ue.features.additionalContextMenuItems?c:[]),wt=(c,x)=>{let R=ye(dr).map(de=>de.id!==c?de:{...de,...x});dr.set(R)},xt=c=>{let x=ye(dr);if(x.some(R=>R.id===c.id)){Z({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),dr.set(x)},mo=c=>{let x=ye(dr);if(!x.some(R=>R.id===c)){Z({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),dr.set(x)},Zo=gi([Mt,oi],([c,x],R)=>{R(c&&x)}),vo=()=>{Lt.next(os.SeekAction.LIVE),Z({message:"switch to active live"}),te.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==li.PlaybackState.PLAYING&&st.actions.internal.togglePlay()},ri=()=>{te.log("skip adman"),ee.skip()},Hi=(c=!0)=>{(0,ft.assertNonNullable)(st),Z({message:`switch from ads to video, callPlay: ${c}`}),te.log("switch from ads to video",{callPlay:c}),ge.set("video"),c&&N.play(),l&&br(!0)},ys=()=>{(0,ft.assertNonNullable)(st),Z({message:"switch from video to ads"}),te.log("switch from video to ads"),st.actions.internal.pause(),ci(),ge.set("ads")},Vl=c=>{(0,ft.assertNonNullable)(st);let x=c?"LiveWaitingStart":"thumb";te.log("set live waiting start",{state:c,playerPhase:x}),ge.set(x)},hc=c=>{(0,ft.assertNonNullable)(st);let x=c?"LiveWaitingRecover":"thumb";te.log("set live waiting recover",{state:c,playerPhase:x}),ge.set(x)},Ju=c=>{(0,ft.assertNonNullable)(st);let x=c?"LiveWaitingRecord":"thumb";te.log("set live waiting record",{state:c,playerPhase:x}),ge.set(x)},_c=()=>((0,ft.assertNonNullable)(st),te.log("get debug text data"),Ah(N,qe,st,Ve.getTraceId())),ep=()=>((0,ft.assertNonNullable)(st),JSON.stringify(Ve.getFinishedSpans())),bc=()=>((0,ft.assertNonNullable)(st),Mh(N,qe,st)),Ba=()=>Xe,$c=()=>{Z({message:"toggle chromecast"}),te.log("toggle chromecast"),N.toggleChromecast()},yc=c=>{var R;if((0,ft.assertNonNullable)(st),N.info.isEnded$.getValue())return;let x=!c;if(ye(st.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${x}`}),te.log("pause ads",{internalCall:x}),ee.pause();return}Z({message:`pause video, internalCall: ${x}`}),te.log("pause video",{internalCall:x}),x&&((R=a==null?void 0:a.onPause)==null||R.call(a)),N.pause()},Rl=c=>{var R;(0,ft.assertNonNullable)(st);let x=!c;if(ye(st.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${x}`}),te.log("play ads",{internalCall:x}),ee.play();return}Z({message:`play video, internalCall: ${x}`}),te.log("play video",{internalCall:x}),x&&((R=a==null?void 0:a.onPlay)==null||R.call(a)),N.play()},tp=c=>{(0,ft.assertNonNullable)(st);let x=!c;if(ye(st.playerPhase)==="ads"){Z({message:"player cannot be stopped during ads via external method"});return}Z({message:`player will be stopped, internalCall: ${x}`}),I==null||I()},Nl=(c,x)=>{(0,ft.assertNonNullable)(st),Z({message:`first start, show ads: ${c}, internalCall: ${!x}`}),te.log("first start",{showAds:c,external:x}),c?ge.set("ads"):(ge.set("video"),x?N.play():st.actions.internal.togglePlay())},Oa=()=>(Z({message:"getting time codes"}),f),Bl=()=>{let c=Oa();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(R=>R.time>x)},ip=c=>{let x=c;x||(x=Bl());let R=N.info.position$.getValue();te.log("seek to next episode",{currentTime:R,...x}),x&&(Z({message:"seek to next episode"}),bi(x.time,os.SeekAction.EPISODE,!0))},Ol=()=>{let c=Oa();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),R=c.findIndex(De=>De.time>x),de=R===-1?c.length-2:R-2;if(!(de<0))return c[de]},op=c=>{let x=c;x||(x=Ol());let R=N.info.position$.getValue();te.log("seek to prev episode",{currentTime:R,...x}),x&&(Z({message:"seek to prev episode"}),bi(x.time,os.SeekAction.EPISODE,!0))},xc=()=>(Z({message:"getting preview thumbs data"}),te.log("get preview thumbs data",{...v}),v),np=async()=>{let c=le==null?void 0:le.isActive(),x="none";le!=null&&le.isActive()?(x="remove",await(le==null?void 0:le.remove())):(x="request",await(le==null?void 0:le.request())),te.log("toggle picture in picture",{isActive:c,action:x})},rp=(c=-90)=>{te.log("rotate video",{alphaDiff:c}),et.update(x=>x+c)},Da=se([]);T==null||T.subscribe(c=>{let x=[];for(let R=0;R<c.length;R++){let{range:[de,De],subjects:ht}=c[R];R===0&&de!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:de/1e3,text:"",interactive:!0,completed:ue.features.interactiveTimeOpenUri?!ht.length||ht.every(Ft=>Ft.isRemoved):!ht.length}),De!==1/0&&x.push({time:De/1e3,text:"",interactive:!1,completed:!0})}Da.set(x)});let Ge=se(!1);k==null||k.subscribe(c=>{c&&ye(Hn)&&Fn()});let ni=c=>{if(!C)return c;let x=ye(Da),R=ye(zo),De=ye(bo)/R,ht=x.find(Ft=>Ft.interactive&&!Ft.completed&&Ft.time>De);return typeof(ht==null?void 0:ht.time)=="number"?Math.min(c,ht.time-.05):c},Mo=()=>{st.ui.episodes.panelOpened$.set(!1)},Ws=()=>{te.log("destroy store"),clearTimeout(ji),clearTimeout(jo),Te.unsubscribe(),ot.unsubscribe(),N.destroy(),ee.destroy(),ce==null||ce.destroy(),We==null||We.destroy(),Yt.unsubscribe(),St==null||St.disconnect(),St=null,oe.destroy()},st={interfaceLanguage$:Tt,isCyrillicRelatedInterface$:ie,initVideo:fe,videoId:i,isClip:o,playerPhase:X,vsid:Ke,state:{positionExact$:At,positionWithScrubbing$:Kr,duration$:zo,playbackState$:ct,isPlaying$:Eo,isLoaderVisible:Uo,bufferedProgress$:On,isLive$:qt,canChangePlaybackSpeed$:di,isActiveLive$:gn,isOldestAvailableLive$:nn,isRewindableLive$:uo,isEnded$:Q,muted$:ui,volume$:si,trafficSavingEnabled$:vt,highQualityEnabled$:it,autoQualityLimitingAvailable$:kt,availableVideoStreams$:vr,availableAudioStreams$:Xn,videoStream$:Jn,audioStream$:er,currentQuality$:Ln,isAutoQualityEnabled$:sn,availableQualities$:Or,currentPlaybackRate$:Vn,availablePlaybackRates$:tr,currentSubtitle$:Io,availableTextTracks$:lt,availableSubtitlesList$:hn,currentSubtitleCaptions$:Bn,isAutoSubtitleCaptionVisible$:Po,chromecastState$:Zn,chromecastDeviceName$:Ti,chromecastConnected$:Br,currentFormat$:To,throughputEstimation$:$i,videoBitrate$:yt,videoSize$:Bi,errorLog$:pt,crashed$:oi,isAudioAvailable$:En,isAudioDisabled:!!l,canDownload:ue.features.download&&!!d,availableSources$:Dn,hasMpegSources$:ir,isInteractive:C,showInteractiveGraph:ue.features.interactiveGraph,showSeekToInteractive:ue.features.seekToInteractive,showPlayPrevChapter:ue.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ue.features.interactiveTimeIndicator&&!!ye(Da).length,interactiveEpisodes$:Da,isInteractiveTime$:k?Jt(k):se(!1),isInteractiveExpectation$:Ge,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:L,looped$:$r,loadedMetadata$:se(!1),isAutoQualityAvailable$:Wo},ui:{t:Nt,controlsVisible:se(!1),touched:se(!1),controls:{prevButton:se(void 0),playButton:se(void 0),replayButton:se(void 0),nextButton:se(void 0),playPrevChapterButton:se(void 0),seekToInteractiveButton:se(void 0),interactiveGraphButton:se(void 0),liveButton:se(void 0),time:se(void 0),episodes:se(void 0),volume:se(void 0),subtitles:se(void 0),settings:se(void 0),context:se(void 0),chromecast:se(void 0),pip:se(void 0),fullscreen:se(void 0),vkLogo:se(void 0),interactiveTimeIndicator:se(void 0),timeline:se(void 0),autoplayNextToggle:se(void 0),additionalButtons:q.length?q.reduce(c=>[...c,se(void 0)],[]):[],disabledControls$:xe},modals:{hotKeyMap:{show:se(!1),data:se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:rt,isFullscreenOpenedByKeyboard:nt,rotateAlpha:et,isAutoplay:se(!1),debugPanelVisible:se(!1),episodes:{panelOpened$:se(!1),openedByKeyboard$:se(!1)},contextMenu:{visible$:se(!1),btnRef$:se(void 0),openedByBtnKeyboard$:se(!1),openedByHotKey$:se(!1),lastActiveElem$:se(void 0),showContextMenuBtn$:se(!1),position$:se({top:0,left:0})},playerSize:he,isMobile:Mt,mobileNotReportControlHidden$:Zo,mobileUnmuteButtonExpanded:se(!1),mobileUnmuteButtonVisible:se(!1),icon3DVideoVisible:se(!1),scrubbingInProgress:Hn,volumeChangingInProgress:lr,is3DVideo:se(!1),currentGridType$:mt,additionalButtonsDeprecated$:ut,additionalDesktopControlPanelRightButtons$:ro,additionalSettingsMenuItems$:wr,additionalContextMenuItems$:zs,interactiveHideMobileControls:se(!1),overlayContainer$:se(void 0),startedByKeyboard$:se(!1),autoplayNextEnabled$:se(!1),timerNextVideoRunning$:se(!0),settingsMenu:{visible$:se(!1),ref$:se(void 0),openedByBtnKeyboard$:se(!1)},settingsSubMenu:{visible$:se(!1),ref$:se(void 0),name$:se(void 0)},aboutToGoNextVideo:se(void 0),userActionsDisabled:se(!1),hiddenControls:{volume:se(!1),vkLogo:se(!1),pip:se(!1),chromecast:se(!1),settings:se(!1)},isControlsAvailable:Ao,controlBlocks:{topLeft:se(void 0),topRight:se(void 0),middle:se(void 0),bottom:se(void 0),bottomLeft:se(void 0),bottomRight:se(void 0)},videoTitleInfo:se(void 0)},ads:{position:se(0),duration:se(0),playbackState:se("inactive"),canSkip:se(!1),secondsToWatchBeforeSkip:se(0),postrollPassed:se(!1)},webApi:{pictureInPictureApi:le,annotationsApi:pe,slotsApi:$e},actions:{internal:{preload:Pi,firstStart:c=>Nl(c,!1),play:()=>Rl(!1),pause:()=>yc(!1),togglePlay:oo,toggleMuted:qo,openSettingsMenu:nr,closeSettingsMenu:Dr,openSettingsSubMenu:an,closeSettingsSubMenu:_r,setVolume:$o,startVolumeChanging:ss,stopVolumeChanging:we,setVideoStream:kn,setAudioStream:ns,setQuality:ln,setTrafficSavingEnabled:Di,setHighQualityEnabled:je,setPlaybackRate:yo,incrementPlaybackRate:po,decrementPlaybackRate:Qo,setSubtitle:no,toggleSubtitle:Go,togglePictureInPicture:np,startScrubbing:rs,progressScrubbing:xr,completeScrubbing:qr,toggleChromecast:$c,switchToActiveLive:vo,switchFromAdsToVideo:Hi,switchFromVideoToAds:ys,skipAd:ri,setLiveWaitingStart:Vl,setLiveWaitingRecover:hc,setLiveWaitingRecord:Ju,getDebugTextData:_c,getTraceTextData:ep,getDebugPanelData:bc,getVideoElement:Ba,seekTime:(c,x,R)=>bi(c,x,R),clearDelayedBufferingCheckTimeout:In,seekEpisodeStartTime:Yo,seekToPercent:dn,getNextEpisode:Bl,seekToNextEpisode:ip,getPrevEpisode:Ol,seekToPrevEpisode:op,startLogging:Ht,stopLogging:fi,startCameraManualRotation:qi,stopCameraManualRotation:ho,moveCameraFocusPX:Ki,holdCamera:jt,releaseCamera:_o,getVideoEpisodes:Oa,getPreviewThumbsData:xc,downloadVideo:or,addLanguage:pf,setLanguage:Qt,nextMovie:Je,videoRotate:rp,correctSeekTimeToInteractive:ni,replayInteractive:P,setLooped:Ko,reportProblem:Ii,setAutoplayNextEnabled:Hr,setTimerNextVideoRunning:Fr,prevVideoClick:Ur,nextVideoClick:rr,nextVideoAnnouncementShow:gt,nextVideoAnnouncementClick:Kt,nextVideoAnnouncementAuto:hi,nextVideoAnnouncementCancel:ki},external:{firstStart:c=>Nl(c,!0),play:()=>Rl(!0),pause:()=>yc(!0),stop:()=>tp(!0),seekTime:c=>fo(c),seekEpisodeStartTime:c=>zr(c),setPlaybackRate:c=>Wr(c),setAutoQualityLimits:c=>yr(c),setMuted:br,toggleSubtitle:Go,setVolume:$o,returnFocusToEpisodes:Mo,updateAdditionalSettingsItem:Un,addAdditionalSettingsItem:Cr,removeAdditionalSettingsItem:xo,updateAdditionalContextItem:wt,addAdditionalContextItem:xt,removeAdditionalContextItem:mo,updateAdditionalButton:Sr,addAdditionalButton:so,removeAdditionalButton:Ai,setLiveLowLatency:bn,hideControls:()=>Yi(!1),showControls:()=>Yi(!0)}},callbacks:a,setUiCallbacks:c=>{Ie={...c}},getAdmanWrapper:()=>ee,getLogger:()=>Qe,getPlayer:()=>N,destroy:Ws};return st};function tn(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),r=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:p}=gs(e[i],t||void 0);return{left:r?d:0,right:r?p:0,top:r?l:0,bottom:r?a:0,isDisplayed:r}}var F2=["disabledControls$","additionalButtons"],U2=["interactiveTimeIndicator"],yl=(t,e,i,o)=>{if(t){for(let[n,r]of Object.entries(e))if(!F2.includes(n)){let l=o||U2.includes(n);r.set(tn(t,i,n,l))}}};var ku=async(t,e,i)=>{await So(),e&&i&&(i.focus(),t.set(!1))};var z2=Ce('<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 um(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=z2();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}function pm(t,e){D(e,!0);let[i,o]=Be(),n=()=>S(a,"$contextMenuVisible$",i),r=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ee(),a=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,b=j(void 0);ze(()=>{s(b)&&It(()=>{u.set(s(b))})});let w=k=>{let P=Rs(k),I=f1(s(b));v.set(I),p.set(P),a.set(!n())},y=()=>{f.set(!0)},C=()=>{f.set(!1)},T=h(()=>n()?"opened":"");Ot(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return r()},get ariaLabel(){return l()},click:w,focus:y,blur:C,get ariaExpanded(){return n()},get ref(){return s(b)},set ref(k){B(b,k,!0)},children:(k,P)=>{um(k,{})},$$slots:{default:!0}}),H(),o()}var W2=t=>{t.stopPropagation()},q2=M("<div><!> <div></div> <div></div></div>"),K2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
|
|
227
227
|
|
|
228
228
|
@media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
|
|
229
229
|
}
|
|
@@ -248,8 +248,8 @@ Try switching the\xA0quality to\xA0Auto.`},Xh=F_;var gs=new Map;gs.set(ll.Interf
|
|
|
248
248
|
opacity: 0;
|
|
249
249
|
}
|
|
250
250
|
}.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
|
|
251
|
-
animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function zd(t,e){var pe;D(e,!0),W(t,K2);let[i,o]=Be(),n=()=>C(S,"$isMobile",i),r=()=>C(I,"$areControlsVisible",i),l=()=>C(L,"$currentGridType$",i),d=()=>C(k,"$isInteractiveTime$",i),a=()=>C(y,"$interactiveControlsOpacity$",i),u=()=>C(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),p=j(void 0),$=Ee(),w=uo(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,T=$.ui.isFullscreen,k=$.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,I=$.ui.controlsVisible,E=(pe=$.callbacks)==null?void 0:pe.onInteractiveTimeIndicatorClick,L=$.ui.currentGridType$,q=h(()=>!n()&&r()),z=h(()=>Fs(l(),"s")),U=h(()=>!d()||!!a()||s(q)),G=j(!1);ze(()=>{B(G,s(U),!0)});let re=()=>{B(G,!0)},Y=()=>{var be;ce(),(be=s(p))==null||be.addEventListener("animationiteration",re,{once:!0})},ce=()=>{var be;B(G,!1),(be=s(p))==null||be.removeEventListener("animationiteration",re)},ae=be=>{P.set(be)},Ae=h(()=>u()&&!s(U));ze(()=>{u()?Y():ce()});let Ve=()=>{s(U)||(P.set(!0),E==null||E())};In(()=>{P.clearTimeout(),ce()});let me=()=>{P.set(!1)},ue=F("tooltip_interactive_interaction_time_indicator");var Le=q2();let te;Le.__mousemove=[W2],Le.__click=Ve;var N=_(Le);Bo(N,{get tooltipContent(){return ue},get tooltipActive(){return s(Ae)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ae,get ref(){return v()},set ref(be){v(be)},children:(be,Z)=>{Vd(be,{completed:!0})},$$slots:{default:!0}});var Qe=A(N,2);let ee;ot(Qe,be=>v(be),()=>v());var We=A(Qe,2);let le;ot(We,be=>B(p,be),()=>s(p)),g(Le),O((be,Z,qe)=>{te=J(Le,1,"interactive-episode-icon-animated svelte-od3veb",null,te,be),ee=J(Qe,1,"ref-block svelte-od3veb",null,ee,Z),le=J(We,1,"pulse svelte-od3veb",null,le,qe)},[()=>({mobile:n(),fullscreen:f(),invisible:s(U),"icon-small":s(z)}),()=>({hidden:s(U)}),()=>({paused:s(G)})]),Ct("mouseleave",Le,me),b(t,Le),H(),o()}lt(["mousemove","click"]);function Pu(t,e){D(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),r=m(e,"ref",15);Bo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return r()},set ref(l){r(l)},children:(l,d)=>{var a=He();let u=h(()=>e.buttonComponent);var f=ve(a);xi(f,()=>s(u),(v,p)=>{p(v,vs(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(l,a)},$$slots:{default:!0}}),H()}var _s={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var G2=Ce('<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 pm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=G2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}function Us(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),r=m(e,"height",3,"24"),l=h(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=h(()=>i()?"prev-icon":"next-icon");pm(t,{get style(){return s(l)},get width(){return n()},get height(){return r()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var Y2=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),j2=M("<!> <!>",1),Z2={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 Ta(t,e){D(e,!0),W(t,Z2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ee().ui.t,d=h(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=h(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=h(()=>`btn-${o()?"m":"d"}--${e.type}`);Bt(t,{get className(){return s(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=j2(),$=ve(p);{var w=T=>{var k=Y2();b(T,k)};V($,T=>{o()&&T(w)})}var y=A($,2);let S=h(()=>e.type==="prev");Us(y,{get isMobile(){return o()},get isPrev(){return s(S)}}),b(f,p)},$$slots:{default:!0}}),H()}var X2=Ce('<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 Wd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=X2();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var B1=require("@vkontakte/videoplayer-shared/es2018");var J2=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ey=M("<!> <div><!></div>",1),ty={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 yl(t,e){D(e,!0),W(t,ty);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),r=m(e,"className",3,""),l=m(e,"click",3,B1.noop),d=F("tooltip_restart"),a=h(()=>`${o()?"btn-m--play":""} ${r()}`);Bt(t,{get className(){return s(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return ts.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=ey(),p=ve(v);{var $=T=>{var k=J2();b(T,k)};V(p,T=>{o()&&T($)})}var w=A(p,2);let y;var S=_(w);Wd(S,{}),g(w),O(T=>y=J(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(u,v)},$$slots:{default:!0}}),H()}var iy=Ce('<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 Br(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=iy(),d=_(l);g(l),O(()=>{Ne(l,"width",i()),Ne(l,"height",o()),Ne(l,"viewBox",n()),Ne(d,"fill",r())}),b(t,l)}var oy=Ce('<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 bs(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=oy(),d=_(l);g(l),O(()=>{Ne(l,"width",i()),Ne(l,"height",o()),Ne(l,"viewBox",n()),Ne(d,"fill",r())}),b(t,l)}var O1=require("@vkontakte/videoplayer-shared/es2018");var ny=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ry=M("<!> <div><!></div>",1),sy={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 xl(t,e){D(e,!0),W(t,sy);let[i,o]=Be(),n=()=>C(r,"$fakeIsPlaying$",i),{fakeIsPlaying$:r}=uo(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,O1.noop),$=Ee().ui.t,{toggle:w}=r,y=h(()=>w),S=h(()=>n()!==null),T=h(()=>s(S)?n():a()),k=h(()=>s(T)?$("tooltip_pause"):$("tooltip_play")),P=h(()=>s(T)?bs:Br),I=h(()=>`${d()?"btn-m--play":""} ${f()}`),E=h(()=>s(S)?s(y):v());Bt(t,{get className(){return s(I)},testId:"btn-play",get click(){return s(E)},get disabled(){return u()},get ariaLabel(){return s(k)},get ariaKeyShortCut(){return ts.KeyK},get ref(){return l()},set ref(L){l(L)},children:(L,q)=>{var z=ry();let U=h(()=>s(P));var G=ve(z);{var re=Ae=>{var Ve=ny();b(Ae,Ve)};V(G,Ae=>{d()&&Ae(re)})}var Y=A(G,2);let ce;var ae=_(Y);xi(ae,()=>s(U),(Ae,Ve)=>{Ve(Ae,{})}),g(Y),O(Ae=>ce=J(Y,1,"svelte-1ot3duq",null,ce,Ae),[()=>({mobile:d()})]),b(L,z)},$$slots:{default:!0}}),H(),o()}var ay=Ce('<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 fm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ay();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}function qd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_go_back"),l=h(()=>o()?"hidden":"");Bt(t,{get className(){return s(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{fm(d,{})},$$slots:{default:!0}}),H()}var ly=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),dy={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 Kd(t,e){D(e,!0),W(t,dy);let[i,o]=Be(),n=()=>C(a,"$autoplayNextEnabled$",i),r=m(e,"ref",15,void 0),l=Ee(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!n(),!0)},v=d("aria_label_autoplay"),p=h(()=>n()?"true":"false");Bt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return s(p)},get ref(){return r()},set ref($){r($)},children:($,w)=>{var y=ly(),S=_(y);let T;var k=_(S);{var P=E=>{Br(E,{width:"14",height:"14",fill:"#000"})},I=E=>{bs(E,{width:"14",height:"14",fill:"#000"})};V(k,E=>{n()?E(P):E(I,!1)})}g(S),g(y),O(E=>T=J(S,1,"toggler svelte-et3q1q",null,T,E),[()=>({enabled:n()})]),b($,y)},$$slots:{default:!0}}),H(),o()}var cy=Ce('<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 mm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=cy();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(2),g(o),b(t,o)}function Qd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_seek"),l=h(()=>o()?"hidden":"");Bt(t,{get className(){return s(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{mm(d,{})},$$slots:{default:!0}}),H()}var uy=Ce('<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 vm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=uy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(2),g(o),b(t,o)}var py={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function gm(t,e){W(t,py);let i=m(e,"isOpened",3,!1),o=h(()=>i()?"graph-close-icon":"graph-open-icon");vm(t,{get"data-testid"(){return s(o)}})}function Gd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=m(e,"graphIsOpened",3,!1),d=Ee().ui.t,a=h(()=>r()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=h(()=>o()?"hidden":"");Bt(t,{get className(){return s(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=h(()=>!!r());gm(f,{get isOpened(){return s(p)}})},$$slots:{default:!0}}),H()}var hm=require("@vkontakte/videoplayer-core/es2018");function Yd(t,e){D(e,!0);let[i,o]=Be(),n=()=>C(u,"$playbackState$",i),r=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ee(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=h(()=>()=>{if(!l()){f();return}n()===hm.PlaybackState.PAUSED&&v()}),$=h(()=>r()?"":"btn--live btn-full-opacity"),w=h(()=>l()?"btn-live":"btn-live-offset"),y=h(()=>l()&&n()===hm.PlaybackState.PLAYING);Bt(t,{get className(){return s($)},get testId(){return s(w)},get disabled(){return s(y)},get ariaLabel(){return d()},get click(){return s(p)},children:(S,T)=>{yd(S,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var _m=require("@vkontakte/videoplayer-shared/es2018");var fy=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),my=M('<img class="icon" aria-hidden="true"/>');function Ea(t,e){"use strict";let i=j(!1),o=()=>{B(i,!0)};var n=He(),r=ve(n);{var l=a=>{var u=fy();b(a,u)},d=a=>{var u=my();O(()=>Ne(u,"src",e.icon)),Ct("error",u,o),oa(u),b(a,u)};V(r,a=>{s(i)?a(l):a(d,!1)})}b(t,n)}function bm(t,e){D(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,_m.noop),n=m(e,"ref",15),r=h(()=>o()===_m.noop),l=h(()=>s(r)||i()),d=h(()=>s(r)?"btn-full-opacity":"");Bo(t,{get disabled(){return s(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(a){n(a)},children:(a,u)=>{let f=h(()=>{var v;return(v=e.testId)!=null?v:e.id});Bt(a,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(l)},get testId(){return s(f)},children:(v,p)=>{Ea(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var D1=t=>!!t.buttonComponent;var $s={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Au=(t,e,i,o)=>{if(t)for(let[n,r]of Object.entries(e))r.set(Nr(t,i,n,o))};var hy=M('<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),_y={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 ym(t,e){var pr,qs;D(e,!0),W(t,_y);let[i,o]=Be(),n=()=>C(Q,"$disabledControls$",i),r=()=>C(Wi,"$adPlaybackState",i),l=()=>C(Tt,"$playbackState$",i),d=()=>C(mi,"$currentSubtitle$",i),a=()=>C(Ai,"$isEnded$",i),u=()=>C(Li,"$currentGridType$",i),f=()=>C(ci,"$isLive$",i),v=()=>C(Pt,"$chromecastState$",i),p=()=>C(fi,"$isPictureInPictureActive",i),$=()=>C(Ui,"$pictureInPictureType$",i),w=()=>C(dt,"$availableSubtitlesList$",i),y=()=>C(Mi,"$contextMenuOpenedByKeyboard$",i),S=()=>C(di,"$showContextMenuBtn$",i),T=()=>C(tr,"$playerSize",i),k=()=>C(Dt,"$isRewindableLive$",i),P=()=>C(it,"$isActiveLive$",i),I=()=>C(mo,"$graphIsOpened$",i),E=()=>C(qt,"$contextMenuVisible$",i),L=()=>C(ei,"$isFullscreen",i),q=()=>C($i,"$autoplayNextEnabled",i),z=()=>C(s(Io),"$prevButton",i),U=()=>C(s(dr),"$replayButton",i),G=()=>C(s(xr),"$playButton",i),re=()=>C(s(Si),"$nextButton",i),Y=()=>C(s(ss),"$playPrevChapterButton",i),ce=()=>C(s(Ur),"$seekToInteractiveButton",i),ae=()=>C(s(wr),"$interactiveGraphButton",i),Ae=()=>C(s(_t),"$liveButton",i),Ve=()=>C(s(Zt),"$time",i),me=()=>C(s(qo),"$episodes",i),ue=()=>C(s(go),"$vkLogo",i),Le=()=>C(s(oo),"$volume",i),te=()=>C(s(sn),"$subtitles",i),N=()=>C(s(zn),"$settings",i),Qe=()=>C(s(ho),"$context",i),ee=()=>C(s(bn),"$fullscreen",i),We=()=>C(s(an),"$chromecast",i),le=()=>C(Do,"$additionalDesktopControlPanelRightButtons$",i),pe=()=>C(Ci,"$isInteractiveTime$",i),be=()=>C(po,"$settingsMenuVisible",i),Z=()=>C(Xi,"$settingButtonRef$",i),qe=()=>C(si,"$startedByKeyboard$",i),Ze=()=>C(xt,"$isAudioAvailable$",i),Ie=()=>C(St,"$fakeIsPlaying$",i),oe=()=>C(tn,"$seekToInteractiveDisabledTooltip$",i),Te=()=>C(It,"$adPosition",i),Ke=()=>C(Mt,"$position$",i),rt=()=>C(tt,"$adDuration",i),nt=()=>C(Fe,"$duration$",i),Lt=m(e,"playerControlsWrapperRef",15,void 0),et=m(e,"playerControlsRef",15,void 0),ct=m(e,"isAds",3,!1),Qt=m(e,"logoTargetUrl",3,""),ni=m(e,"isOneVideoPlaylist",3,!1),Kt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:St}=uo(),ie=Ee(),Vt=uo(),ge=Ut(),X=ie.actions.internal.toggleMuted,xe=ie.actions.internal.togglePlay,De=ie.actions.internal.pause,fe=ie.actions.internal.toggleSubtitle,Re=(pr=ie.callbacks)==null?void 0:pr.onAudioDoesNotExistHint,Je=(qs=ie.callbacks)==null?void 0:qs.onAudioDisabledHint,Fe=ie.state.duration$,Mt=ie.state.positionWithScrubbing$,Tt=ie.state.playbackState$,xt=ie.state.isAudioAvailable$,mt=ie.state.isAudioDisabled,Ai=ie.state.isEnded$,ci=ie.state.isLive$,it=ie.state.isActiveLive$,Dt=ie.state.isRewindableLive$,{isActive$:fi,type$:Ui}=Vt.pictureInPicture$,po=ie.ui.settingsMenu.visible$,zi=ie.ui.settingsMenu.openedByBtnKeyboard$,Gt=ie.ui.controls,fo=ie.actions.internal.getVideoEpisodes(),Pt=ie.state.chromecastState$,dt=ie.state.availableSubtitlesList$,mi=ie.state.currentSubtitle$,Q=Gt.disabledControls$,qt=ie.ui.contextMenu.visible$,di=ie.ui.contextMenu.showContextMenuBtn$,Mi=ie.ui.contextMenu.openedByBtnKeyboard$,si=ie.ui.startedByKeyboard$,ui=ie.ui.controlBlocks,pt=ie.ui.t,tt=ie.ads.duration,It=ie.ads.position,Wi=ie.ads.playbackState,ei=ie.ui.isFullscreen,tr=ie.ui.playerSize,Li=ie.ui.currentGridType$,Do=ie.ui.additionalDesktopControlPanelRightButtons$,$i=ie.ui.autoplayNextEnabled$,ht=ie.actions.internal.getVideoElement,Vi=ie.actions.internal.replayInteractive,Ho=ie.actions.internal.prevVideoClick,Pn=ie.actions.internal.nextVideoClick,ai=ie.state.isInteractive,Ci=ie.state.isInteractiveTime$,Fo=ie.state.showInteractiveGraph,An=ie.state.showSeekToInteractive,Uo=ie.state.showPlayPrevChapter,wo=ie.state.showInteractiveTimeIndicator,hn=ie.state.playPrevChapterDisabledTooltip,tn=Vt.seekToInteractiveDisabledTooltip$,mo=Vt.graphIsOpened$,Co=ge.features.interactiveResponsiveUi,Dr=h(()=>n().has("EPISODE_BUTTON")),_r=h(()=>n().has("GRAPH_BUTTON")),ir=h(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),or=h(()=>n().has("PLAY_BUTTON")),nr=h(()=>n().has("REPLAY_BUTTON")),Mn=h(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),rs=()=>ie.actions.internal.toggleChromecast(),Ln=h(()=>ct()?r()==="playing":l()===Ia.PlaybackState.PLAYING),Ri=h(()=>d().value!=="off"),Vn=h(()=>a()&&!ct()||ai),on=h(()=>Co?s(Vn)&&Gi(u(),"m"):s(Vn)),nn=h(()=>!a()||ai||ct()),Rn=h(()=>Gi(u(),"m")),Nn=h(()=>e.showNextPrevButtons&&Gi(u(),"m")&&!ct()&&e.nextButtonActive),zo=h(()=>e.showNextPrevButtons&&Gi(u(),"m")&&!ct()&&e.prevButtonActive),Hr=h(()=>!ct()&&!!f()),Bn=h(()=>v()!==Ia.ChromecastState.NOT_AVAILABLE&&!(p()&&$()===1)&&Gi(u(),"m")&&!ai),rr=h(()=>e.showAutoplayNext&&!ni()&&Gi(u(),"s")),qi=h(()=>w().length>0&&Gi(u(),"m")),So=h(()=>y()||S()),at=h(()=>Gi(u(),"s")&&!ct()),jt=h(()=>!e.logoHidden&&!ct()),br=h(()=>ge.features.fullscreen&&(e.logoHidden||Gi(u(),Co?"xs":"s"))&&!(p()&&$()===1)&&(ai?Kt():!0)),On=h(()=>(!f()||ct())&&!(ge.features.interactiveHideTime&&ai)),_n=h(()=>T().width>100),Ni=h(()=>Fo&&Gi(u(),"m")),Dn=h(()=>Co?An&&Gi(u(),"s"):An),To=h(()=>Co?Uo&&Gi(u(),"s"):Uo),Hn=h(()=>!ct()&&!f()&&!!(fo!=null&&fo.length)&&s(Rn)&&!s(Dr)),Eo=h(()=>!k()||!!P()),Fn=h(()=>I()?pt("tooltip_interactive_graph_on"):pt("tooltip_interactive_graph_off")),Un=h(()=>E()?pt("tooltip_context_menu_close"):pt("tooltip_context_menu_open")),sr=($t,bt)=>$t?bt&&bt===Ia.PlaybackState.PAUSED?pt("tooltip_play"):"":pt("tooltip_live"),$r=h(()=>sr(s(Eo),l())),ar=h(()=>ge.logoType==="vk_video"?pt("tooltip_vk_video_logo"):pt("tooltip_vk_logo")),Wo=h(()=>s(Ri)?pt("tooltip_subtitles_on"):pt("tooltip_subtitles_off")),Fr=h(()=>L()?pt("tooltip_fullscreen_on"):pt("tooltip_fullscreen_off")),lr=h(()=>v()===Ia.ChromecastState.CONNECTED?pt("tooltip_chromecast_on"):pt("tooltip_chromecast_off")),yr=h(()=>q()?pt("tooltip_autoplay_on"):pt("tooltip_autoplay_off")),rn=j(0),Yt=oi({}),vo=oi({}),Io=h(()=>Gt.prevButton),dr=h(()=>Gt.replayButton),xr=h(()=>Gt.playButton),Si=h(()=>Gt.nextButton),ss=h(()=>Gt.playPrevChapterButton),Ur=h(()=>Gt.seekToInteractiveButton),wr=h(()=>Gt.interactiveGraphButton),_t=h(()=>Gt.liveButton),Zt=h(()=>Gt.time),qo=h(()=>Gt.episodes),go=h(()=>Gt.vkLogo),oo=h(()=>Gt.volume),sn=h(()=>Gt.subtitles),zn=h(()=>Gt.settings),ho=h(()=>Gt.context),bn=h(()=>Gt.fullscreen),an=h(()=>Gt.chromecast),Xe=h(()=>({prevButton:z()?z().right-z().left:0,replayButton:U()?U().right-U().left:0,playButton:G()?G().right-G().left:0,nextButton:re()?re().right-re().left:0,playPrevChapterButton:Y()?Y().right-Y().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:ae()?ae().right-ae().left:0,liveButton:Ae()?Ae().right-Ae().left:0,time:Ve()?Ve().right-Ve().left:0,episodes:me()?me().right-me().left:0,vkLogo:ue()?ue().right-ue().left:0,volume:Le()?Le().right-Le().left:0,subtitles:te()?te().right-te().left:0,settings:N()?N().right-N().left:0,context:Qe()?Qe().right-Qe().left:0,fullscreen:ee()?ee().right-ee().left:0,chromecast:We()?We().right-We().left:0,additionalButtons:le().length?le().reduce($t=>[...$t,40],[]):[]})),Rt=j(0);ze(()=>{(!s(Rt)||s(Rt)<s(Xe).time)&&Et(()=>B(Rt,s(Xe).time,!0))});let hi=j(!1);ze(()=>{let $t=0;s(Hn)&&(Gi(u(),"xl")?$t=s(Xe).time:$t=60);let bt=s(Xe).prevButton+s(Xe).playButton+s(Xe).nextButton+s(Xe).seekToInteractiveButton+s(Xe).interactiveGraphButton+s(Xe).liveButton+s(Rt)+$t;B(hi,s(On)&&s(rn)>=bt,!0)});let _o=h(()=>s(hi)&&Gi(u(),"m")),no=(0,$m.debounceFn)($l,260),Ko=(0,$m.debounceFn)(Au,260);ze(()=>{T(),pe(),no(ht(),Gt,Yt,e.showControls),Ko(ht(),ui,vo,e.showControls)}),ze(()=>{vo.bottom=Lt()});let Xi=se();ze(()=>{be(),Z()&&Et(()=>fl(Z(),be(),zi))});let Qo;ze(()=>{qe(),Et(()=>ku(si,qe(),Qo))});function ko(){Os({isAudioDisabled:mt,isAudioAvailable:Ze(),isAds:ct(),audioIsNotExistHintCallback:Re,audioDisabledHintCallback:Je})&&X()}let Ki=ai?Vi:xe,_i=h(()=>Ie()!==null),Go=h(()=>s(_i)?Ie():s(Ln)),ln=h(()=>s(Go)?pt("tooltip_pause"):pt("tooltip_play")),ro=pt("tooltip_episodes"),Cr=h(()=>{var $t,bt,lo,jo;return s(zo)?{id:"prevButton",type:"desktop-control-panel-left",weight:_s.prevButton,buttonComponent:Ta,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ho.bind(null,!0)},tooltipEnabled:!((bt=($t=ie.callbacks)==null?void 0:$t.uiInfo)!=null&&bt.onPrevButtonMouseEnter)&&!((jo=(lo=ie.callbacks)==null?void 0:lo.uiInfo)!=null&&jo.onPrevButtonMouseLeave),mouseEnter:()=>{var co,ri,Bi;(Bi=(ri=(co=ie.callbacks)==null?void 0:co.uiInfo)==null?void 0:ri.onPrevButtonMouseEnter)==null||Bi.call(ri,Nr(ht(),Yt,"prevButton",e.showControls))},mouseLeave:()=>{var co,ri,Bi;(Bi=(ri=(co=ie.callbacks)==null?void 0:co.uiInfo)==null?void 0:ri.onPrevButtonMouseLeave)==null||Bi.call(ri,Nr(ht(),Yt,"prevButton",e.showControls))},tooltipText:pt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),zr=h(()=>s(on)?{id:"replayButton",type:"desktop-control-panel-left",weight:_s.replayButton,buttonComponent:yl,buttonComponentProps:{disabled:s(nr),click:Ki},tooltipText:pt("tooltip_restart"),disabled:s(nr)}:void 0),Wr=h(()=>s(nn)?{id:"playButton",type:"desktop-control-panel-left",weight:_s.playButton,buttonComponent:xl,buttonComponentProps:{disabled:s(or),isPlaying:s(Ln),click:xe},tooltipText:s(ln),disabled:s(or)}:void 0),$n=h(()=>{var $t,bt,lo,jo;return s(Nn)?{id:"nextButton",type:"desktop-control-panel-left",weight:_s.nextButton,buttonComponent:Ta,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Pn.bind(null,!0)},tooltipEnabled:!((bt=($t=ie.callbacks)==null?void 0:$t.uiInfo)!=null&&bt.onNextButtonMouseEnter)&&!((jo=(lo=ie.callbacks)==null?void 0:lo.uiInfo)!=null&&jo.onNextButtonMouseLeave),mouseEnter:()=>{var co,ri,Bi;(Bi=(ri=(co=ie.callbacks)==null?void 0:co.uiInfo)==null?void 0:ri.onNextButtonMouseEnter)==null||Bi.call(ri,Nr(ht(),Yt,"nextButton",e.showControls))},mouseLeave:()=>{var co,ri,Bi;(Bi=(ri=(co=ie.callbacks)==null?void 0:co.uiInfo)==null?void 0:ri.onNextButtonMouseLeave)==null||Bi.call(ri,Nr(ht(),Yt,"nextButton",e.showControls))},tooltipText:pt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Wn=h(()=>ai&&s(To)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:_s.playPrevChapterButton,buttonComponent:qd,buttonComponentProps:{disabled:s(Mn),click:e.playPrevChapter},tooltipText:pt("tooltip_interactive_go_back"),disabledTooltipContent:pt(hn),disabled:s(Mn)}:void 0),qr=h(()=>ai&&s(Dn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:_s.seekToInteractiveButton,buttonComponent:Qd,buttonComponentProps:{disabled:s(ir),click:e.seekToInteractive},tooltipText:pt("tooltip_interactive_seek"),disabled:s(ir),disabledTooltipContent:pt(oe())}:void 0),so=h(()=>ai&&s(Ni)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:_s.interactiveGraphButton,buttonComponent:Gd,buttonComponentProps:{disabled:s(_r),click:mo.toggle,graphIsOpened:I()},tooltipText:s(Fn)}:void 0),Yo=h(()=>s(Hr)?{id:"liveButton",type:"desktop-control-panel-left",weight:_s.liveButton,buttonComponent:Yd,buttonComponentProps:{isLiveActive:s(Eo),ariaLabel:s($r)},tooltipText:s($r),disabled:s(Eo)&&l()===Ia.PlaybackState.PLAYING}:void 0),qn=h(()=>[s(Cr),s(zr),s(Wr),s($n),s(Wn),s(qr),s(so),s(Yo)].filter($t=>!!$t).sort(ha)),cr=h(()=>s(jt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:$s.vkLogo,buttonComponent:Bd,buttonComponentProps:{targetUrl:Qt(),logoClickable:e.logoClickable,click:De},tooltipText:s(ar),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ur=h(()=>s(rr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:$s.autoplayNext,buttonComponent:Kd,tooltipText:s(yr)}:void 0),Kr=h(()=>({id:"volume",type:"desktop-control-panel-right",weight:$s.volume,buttonComponent:Qf,buttonComponentProps:{click:ko,isAds:ct()}})),as=h(()=>s(qi)?{id:"subtitles",type:"desktop-control-panel-right",weight:$s.subtitles,buttonComponent:zf,buttonComponentProps:{isSubtitlesEnabled:s(Ri),click:fe},tooltipText:s(Wo)}:void 0),Se=h(()=>s(at)?{id:"settings",type:"desktop-control-panel-right",weight:$s.settings,buttonComponent:_l,buttonComponentProps:{ref$:Xi},tooltipText:be()?void 0:pt("tooltip_settings_off")}:void 0),ye=h(()=>ge.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:$s.context,buttonComponent:um,buttonComponentProps:{ariaLabel:pt("aria_label_context_menu")},className:s(So)?"":"out-of-view",tooltipText:s(Un)}:void 0),yt=h(()=>s(br)?{id:"fullscreen",type:"desktop-control-panel-right",weight:$s.fullscreen,buttonComponent:Nd,buttonComponentProps:{isFullscreen:L(),click:e.toggleFullscreen},tooltipText:s(Fr)}:void 0),zt=h(()=>s(Bn)?{id:"chromecast",type:"desktop-control-panel-right",weight:$s.chromecast,buttonComponent:Od,buttonComponentProps:{state:v(),click:rs},tooltipText:s(lr)}:void 0),Ti=h(()=>[s(cr),s(ur),s(Kr),s(as),s(Se),s(ye),s(yt),s(zt),...le()].filter($t=>!!$t).sort(ha));var bi=hy(),Ue=ve(bi);let wt;var ti=_(Ue);let dn=h(()=>!s(_n));Ca(ti,{get isHidden(){return s(dn)},get isAds(){return ct()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return k()},get ref(){return Yt.timeline},set ref($t){Yt.timeline=$t}});var yn=A(ti,2),ao=_(yn),Qr=_(ao);yi(Qr,17,()=>s(qn),$t=>$t.id,($t,bt)=>{Pu($t,{get buttonComponent(){return s(bt).buttonComponent},get buttonComponentProps(){return s(bt).buttonComponentProps},get tooltipText(){return s(bt).tooltipText},get disabledTooltipContent(){return s(bt).disabledTooltipContent},get disabled(){return s(bt).disabled},get className(){return s(bt).className},get tooltipEnabled(){return s(bt).tooltipEnabled},get mouseEnter(){return s(bt).mouseEnter},get mouseLeave(){return s(bt).mouseLeave},get ref(){return Yt[s(bt).id]},set ref(lo){Yt[s(bt).id]=lo}})});var Sr=A(Qr,2);{var Ji=$t=>{let bt=h(()=>ct()?Te():Ke()),lo=h(()=>ct()?rt():nt());Ld($t,{isMobile:!1,get showDuration(){return s(_o)},get position(){return s(bt)},get duration(){return s(lo)},get ref(){return Yt.time},set ref(jo){Yt.time=jo}})};V(Sr,$t=>{s(On)&&$t(Ji)})}var Ei=A(Sr,2);let xn=h(()=>!s(Hn));Bo(Ei,{className:"w-max",get disabled(){return s(xn)},get tooltipContent(){return ro},get ref(){return Yt.episodes},set ref($t){Yt.episodes=$t},children:($t,bt)=>{var lo=He(),jo=ve(lo);{var co=ri=>{Hd(ri,{get position(){return Ke()},get duration(){return nt()},get timeCodes(){return fo}})};V(jo,ri=>{s(Hn)&&ri(co)})}b($t,lo)},$$slots:{default:!0}}),g(ao);var Kn=A(ao,2);yi(Kn,21,()=>s(Ti),$t=>$t.id,($t,bt)=>{var lo=He(),jo=ve(lo);{var co=Bi=>{Pu(Bi,{get buttonComponent(){return s(bt).buttonComponent},get buttonComponentProps(){return s(bt).buttonComponentProps},get tooltipText(){return s(bt).tooltipText},get disabledTooltipContent(){return s(bt).disabledTooltipContent},get disabled(){return s(bt).disabled},get className(){return s(bt).className},get ref(){return Yt[s(bt).id]},set ref(xs){Yt[s(bt).id]=xs}})},ri=Bi=>{let xs=h(()=>!!s(bt).disabled);bm(Bi,{get id(){return s(bt).id},get testId(){return s(bt).testId},get icon(){return s(bt).icon},get ariaLabel(){return s(bt).ariaLabel},get tooltipText(){return s(bt).tooltipText},get disabledTooltipContent(){return s(bt).disabledTooltipContent},get disabled(){return s(xs)},get onClick(){return s(bt).onClick},get ref(){return Yt[s(bt).id]},set ref(Ll){Yt[s(bt).id]=Ll}})};V(jo,Bi=>{D1(s(bt))?Bi(co):Bi(ri,!1)})}b($t,lo)}),g(Kn),g(yn),ot(yn,$t=>et($t),()=>et()),g(Ue),ot(Ue,$t=>Lt($t),()=>Lt());var Tr=A(Ue,2);{var bo=$t=>{zd($t,{get ref(){return Yt.interactiveTimeIndicator},set ref(bt){Yt.interactiveTimeIndicator=bt}})};V(Tr,$t=>{wo&&$t(bo)})}O($t=>wt=J(Ue,1,"wrapper-bottom svelte-f6e8ix",null,wt,$t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),es(ao,"clientWidth",$t=>B(rn,$t)),b(t,bi),H(),o()}var wl=require("@vkontakte/videoplayer-core/es2018");var xm=require("@vkontakte/videoplayer-shared/es2018");var by=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),$y=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),yy={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 wm(t,e){W(t,yy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,xm.noop),n=h(()=>o()===xm.noop),r=h(()=>s(n)||i()),l=j(!1),d=()=>{B(l,!0)},a=h(()=>s(n)?"btn-full-opacity":"");Bt(t,{get className(){return s(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return e.testId},children:(u,f)=>{var v=He(),p=ve(v);{var $=y=>{var S=by();b(y,S)},w=y=>{var S=$y();O(()=>Ne(S,"src",e.iconUrl)),Ct("error",S,d),oa(S),b(y,S)};V(p,y=>{s(l)?y($):y(w,!1)})}b(u,v)},$$slots:{default:!0}})}var xy=Ce('<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 Cm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=xy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var H1=require("@vkontakte/videoplayer-shared/es2018");var wy=M('<span class="text svelte-6gmlbk"> </span>'),Cy=M('<div aria-hidden="true"><!> <!></div>'),Sy={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function Mu(t,e){D(e,!0),W(t,Sy);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,H1.noop),r=m(e,"ref",15,void 0),d=Ee().ui.t,a=h(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=h(()=>o()?Hs:Cm),f=h(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Bt(t,{get testId(){return s(f)},get click(){return n()},get ariaLabel(){return s(a)},role:"button",get ref(){return r()},set ref(v){r(v)},children:(v,p)=>{var $=Cy();let w=h(()=>s(u)),y;var S=_($);xi(S,()=>s(w),(P,I)=>{I(P,{})});var T=A(S,2);{var k=P=>{var I=wy(),E=_(I,!0);g(I),O(L=>he(E,L),[()=>d("mobile_unmute")]),b(P,I)};V(T,P=>{o()&&P(k)})}g($),O(P=>y=J($,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),b(v,$)},$$slots:{default:!0}}),H()}var Ty=Ce('<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 Sm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(3),g(o),b(t,o)}var Ey={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
252
|
-
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function
|
|
251
|
+
animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function zd(t,e){var pe;D(e,!0),W(t,K2);let[i,o]=Be(),n=()=>S(C,"$isMobile",i),r=()=>S(I,"$areControlsVisible",i),l=()=>S(L,"$currentGridType$",i),d=()=>S(k,"$isInteractiveTime$",i),a=()=>S(y,"$interactiveControlsOpacity$",i),p=()=>S(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),u=j(void 0),b=Ee(),w=go(),{interactiveControlsOpacity$:y}=w,C=b.ui.isMobile,T=b.ui.isFullscreen,k=b.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,I=b.ui.controlsVisible,E=(pe=b.callbacks)==null?void 0:pe.onInteractiveTimeIndicatorClick,L=b.ui.currentGridType$,q=h(()=>!n()&&r()),z=h(()=>Ds(l(),"s")),U=h(()=>!d()||!!a()||s(q)),G=j(!1);ze(()=>{B(G,s(U),!0)});let re=()=>{B(G,!0)},Y=()=>{var $e;ce(),($e=s(u))==null||$e.addEventListener("animationiteration",re,{once:!0})},ce=()=>{var $e;B(G,!1),($e=s(u))==null||$e.removeEventListener("animationiteration",re)},ae=$e=>{P.set($e)},Ae=h(()=>p()&&!s(U));ze(()=>{p()?Y():ce()});let Re=()=>{s(U)||(P.set(!0),E==null||E())};Cn(()=>{P.clearTimeout(),ce()});let me=()=>{P.set(!1)},ue=F("tooltip_interactive_interaction_time_indicator");var Ve=q2();let te;Ve.__mousemove=[W2],Ve.__click=Re;var N=_(Ve);Do(N,{get tooltipContent(){return ue},get tooltipActive(){return s(Ae)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ae,get ref(){return v()},set ref($e){v($e)},children:($e,Z)=>{Vd($e,{completed:!0})},$$slots:{default:!0}});var Qe=A(N,2);let ee;tt(Qe,$e=>v($e),()=>v());var We=A(Qe,2);let le;tt(We,$e=>B(u,$e),()=>s(u)),g(Ve),O(($e,Z,qe)=>{te=J(Ve,1,"interactive-episode-icon-animated svelte-od3veb",null,te,$e),ee=J(Qe,1,"ref-block svelte-od3veb",null,ee,Z),le=J(We,1,"pulse svelte-od3veb",null,le,qe)},[()=>({mobile:n(),fullscreen:f(),invisible:s(U),"icon-small":s(z)}),()=>({hidden:s(U)}),()=>({paused:s(G)})]),Ct("mouseleave",Ve,me),$(t,Ve),H(),o()}dt(["mousemove","click"]);function Pu(t,e){D(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),r=m(e,"ref",15);Do(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return r()},set ref(l){r(l)},children:(l,d)=>{var a=Fe();let p=h(()=>e.buttonComponent);var f=ve(a);Si(f,()=>s(p),(v,u)=>{u(v,ms(()=>{var b;return(b=e.buttonComponentProps)!=null?b:{}}))}),$(l,a)},$$slots:{default:!0}}),H()}var hs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var G2=Ce('<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 fm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=G2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}function Hs(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),r=m(e,"height",3,"24"),l=h(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=h(()=>i()?"prev-icon":"next-icon");fm(t,{get style(){return s(l)},get width(){return n()},get height(){return r()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var Y2=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),j2=M("<!> <!>",1),Z2={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Ca(t,e){D(e,!0),W(t,Z2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ee().ui.t,d=h(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=h(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),p=h(()=>`btn-${o()?"m":"d"}--${e.type}`);Ot(t,{get className(){return s(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var u=j2(),b=ve(u);{var w=T=>{var k=Y2();$(T,k)};V(b,T=>{o()&&T(w)})}var y=A(b,2);let C=h(()=>e.type==="prev");Hs(y,{get isMobile(){return o()},get isPrev(){return s(C)}}),$(f,u)},$$slots:{default:!0}}),H()}var X2=Ce('<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 Wd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=X2();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var O1=require("@vkontakte/videoplayer-shared/es2018");var J2=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ey=M("<!> <div><!></div>",1),ty={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 xl(t,e){D(e,!0),W(t,ty);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),r=m(e,"className",3,""),l=m(e,"click",3,O1.noop),d=F("tooltip_restart"),a=h(()=>`${o()?"btn-m--play":""} ${r()}`);Ot(t,{get className(){return s(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return es.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=ey(),u=ve(v);{var b=T=>{var k=J2();$(T,k)};V(u,T=>{o()&&T(b)})}var w=A(u,2);let y;var C=_(w);Wd(C,{}),g(w),O(T=>y=J(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(p,v)},$$slots:{default:!0}}),H()}var iy=Ce('<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 Rr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=iy(),d=_(l);g(l),O(()=>{Oe(l,"width",i()),Oe(l,"height",o()),Oe(l,"viewBox",n()),Oe(d,"fill",r())}),$(t,l)}var oy=Ce('<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 _s(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=oy(),d=_(l);g(l),O(()=>{Oe(l,"width",i()),Oe(l,"height",o()),Oe(l,"viewBox",n()),Oe(d,"fill",r())}),$(t,l)}var D1=require("@vkontakte/videoplayer-shared/es2018");var ny=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ry=M("<!> <div><!></div>",1),sy={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 wl(t,e){D(e,!0),W(t,sy);let[i,o]=Be(),n=()=>S(r,"$fakeIsPlaying$",i),{fakeIsPlaying$:r}=go(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),p=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,D1.noop),b=Ee().ui.t,{toggle:w}=r,y=h(()=>w),C=h(()=>n()!==null),T=h(()=>s(C)?n():a()),k=h(()=>s(T)?b("tooltip_pause"):b("tooltip_play")),P=h(()=>s(T)?_s:Rr),I=h(()=>`${d()?"btn-m--play":""} ${f()}`),E=h(()=>s(C)?s(y):v());Ot(t,{get className(){return s(I)},testId:"btn-play",get click(){return s(E)},get disabled(){return p()},get ariaLabel(){return s(k)},get ariaKeyShortCut(){return es.KeyK},get ref(){return l()},set ref(L){l(L)},children:(L,q)=>{var z=ry();let U=h(()=>s(P));var G=ve(z);{var re=Ae=>{var Re=ny();$(Ae,Re)};V(G,Ae=>{d()&&Ae(re)})}var Y=A(G,2);let ce;var ae=_(Y);Si(ae,()=>s(U),(Ae,Re)=>{Re(Ae,{})}),g(Y),O(Ae=>ce=J(Y,1,"svelte-1ot3duq",null,ce,Ae),[()=>({mobile:d()})]),$(L,z)},$$slots:{default:!0}}),H(),o()}var ay=Ce('<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 mm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ay();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}function qd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_go_back"),l=h(()=>o()?"hidden":"");Ot(t,{get className(){return s(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{mm(d,{})},$$slots:{default:!0}}),H()}var ly=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),dy={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 Kd(t,e){D(e,!0),W(t,dy);let[i,o]=Be(),n=()=>S(a,"$autoplayNextEnabled$",i),r=m(e,"ref",15,void 0),l=Ee(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,p=l.actions.internal.setAutoplayNextEnabled,f=()=>{p(!n(),!0)},v=d("aria_label_autoplay"),u=h(()=>n()?"true":"false");Ot(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return s(u)},get ref(){return r()},set ref(b){r(b)},children:(b,w)=>{var y=ly(),C=_(y);let T;var k=_(C);{var P=E=>{Rr(E,{width:"14",height:"14",fill:"#000"})},I=E=>{_s(E,{width:"14",height:"14",fill:"#000"})};V(k,E=>{n()?E(P):E(I,!1)})}g(C),g(y),O(E=>T=J(C,1,"toggler svelte-et3q1q",null,T,E),[()=>({enabled:n()})]),$(b,y)},$$slots:{default:!0}}),H(),o()}var cy=Ce('<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 vm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=cy();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}function Qd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_seek"),l=h(()=>o()?"hidden":"");Ot(t,{get className(){return s(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{vm(d,{})},$$slots:{default:!0}}),H()}var uy=Ce('<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 gm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=uy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}var py={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function hm(t,e){W(t,py);let i=m(e,"isOpened",3,!1),o=h(()=>i()?"graph-close-icon":"graph-open-icon");gm(t,{get"data-testid"(){return s(o)}})}function Gd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=m(e,"graphIsOpened",3,!1),d=Ee().ui.t,a=h(()=>r()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=h(()=>o()?"hidden":"");Ot(t,{get className(){return s(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let u=h(()=>!!r());hm(f,{get isOpened(){return s(u)}})},$$slots:{default:!0}}),H()}var _m=require("@vkontakte/videoplayer-core/es2018");function Yd(t,e){D(e,!0);let[i,o]=Be(),n=()=>S(p,"$playbackState$",i),r=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ee(),p=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,u=h(()=>()=>{if(!l()){f();return}n()===_m.PlaybackState.PAUSED&&v()}),b=h(()=>r()?"":"btn--live btn-full-opacity"),w=h(()=>l()?"btn-live":"btn-live-offset"),y=h(()=>l()&&n()===_m.PlaybackState.PLAYING);Ot(t,{get className(){return s(b)},get testId(){return s(w)},get disabled(){return s(y)},get ariaLabel(){return d()},get click(){return s(u)},children:(C,T)=>{yd(C,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var bm=require("@vkontakte/videoplayer-shared/es2018");var fy=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),my=M('<img class="icon" aria-hidden="true"/>');function Ta(t,e){"use strict";let i=j(!1),o=()=>{B(i,!0)};var n=Fe(),r=ve(n);{var l=a=>{var p=fy();$(a,p)},d=a=>{var p=my();O(()=>Oe(p,"src",e.icon)),Ct("error",p,o),ia(p),$(a,p)};V(r,a=>{s(i)?a(l):a(d,!1)})}$(t,n)}function $m(t,e){D(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,bm.noop),n=m(e,"ref",15),r=h(()=>o()===bm.noop),l=h(()=>s(r)||i()),d=h(()=>s(r)?"btn-full-opacity":"");Do(t,{get disabled(){return s(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(a){n(a)},children:(a,p)=>{let f=h(()=>{var v;return(v=e.testId)!=null?v:e.id});Ot(a,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(l)},get testId(){return s(f)},children:(v,u)=>{Ta(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var H1=t=>!!t.buttonComponent;var bs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Au=(t,e,i,o)=>{if(t)for(let[n,r]of Object.entries(e))r.set(tn(t,i,n,o))};var hy=M('<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),_y={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 xm(t,e){var dr,zs;D(e,!0),W(t,_y);let[i,o]=Be(),n=()=>S(Q,"$disabledControls$",i),r=()=>S(Qi,"$adPlaybackState",i),l=()=>S(Et,"$playbackState$",i),d=()=>S(mi,"$currentSubtitle$",i),a=()=>S(Ri,"$isEnded$",i),p=()=>S(Ti,"$currentGridType$",i),f=()=>S(ci,"$isLive$",i),v=()=>S(At,"$chromecastState$",i),u=()=>S(fi,"$isPictureInPictureActive",i),b=()=>S(qi,"$pictureInPictureType$",i),w=()=>S(ct,"$availableSubtitlesList$",i),y=()=>S(Ni,"$contextMenuOpenedByKeyboard$",i),C=()=>S(di,"$showContextMenuBtn$",i),T=()=>S(Zn,"$playerSize",i),k=()=>S(Ht,"$isRewindableLive$",i),P=()=>S(ot,"$isActiveLive$",i),I=()=>S(bo,"$graphIsOpened$",i),E=()=>S(qt,"$contextMenuVisible$",i),L=()=>S(ti,"$isFullscreen",i),q=()=>S($i,"$autoplayNextEnabled",i),z=()=>S(s(br),"$prevButton",i),U=()=>S(s($r),"$replayButton",i),G=()=>S(s(Ko),"$playButton",i),re=()=>S(s(Ii),"$nextButton",i),Y=()=>S(s(Hr),"$playPrevChapterButton",i),ce=()=>S(s(Fr),"$seekToInteractiveButton",i),ae=()=>S(s(Ur),"$interactiveGraphButton",i),Ae=()=>S(s(rr),"$liveButton",i),Re=()=>S(s(sr),"$time",i),me=()=>S(s(gt),"$episodes",i),ue=()=>S(s(Kt),"$vkLogo",i),Ve=()=>S(s(hi),"$volume",i),te=()=>S(s(ki),"$subtitles",i),N=()=>S(s(Pi),"$settings",i),Qe=()=>S(s(oo),"$context",i),ee=()=>S(s(ln),"$fullscreen",i),We=()=>S(s(Di),"$chromecast",i),le=()=>S(To,"$additionalDesktopControlPanelRightButtons$",i),pe=()=>S(Ei,"$isInteractiveTime$",i),$e=()=>S(ho,"$settingsMenuVisible",i),Z=()=>S(no,"$settingButtonRef$",i),qe=()=>S(si,"$startedByKeyboard$",i),Xe=()=>S(St,"$isAudioAvailable$",i),Ie=()=>S(Tt,"$fakeIsPlaying$",i),oe=()=>S(nn,"$seekToInteractiveDisabledTooltip$",i),Te=()=>S(kt,"$adPosition",i),Ke=()=>S(Lt,"$position$",i),rt=()=>S(it,"$adDuration",i),nt=()=>S(Ue,"$duration$",i),Rt=m(e,"playerControlsWrapperRef",15,void 0),et=m(e,"playerControlsRef",15,void 0),pt=m(e,"isAds",3,!1),Yt=m(e,"logoTargetUrl",3,""),oi=m(e,"isOneVideoPlaylist",3,!1),Qt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Tt}=go(),ie=Ee(),Nt=go(),ge=zt(),X=ie.actions.internal.toggleMuted,xe=ie.actions.internal.togglePlay,He=ie.actions.internal.pause,fe=ie.actions.internal.toggleSubtitle,Ne=(dr=ie.callbacks)==null?void 0:dr.onAudioDoesNotExistHint,Je=(zs=ie.callbacks)==null?void 0:zs.onAudioDisabledHint,Ue=ie.state.duration$,Lt=ie.state.positionWithScrubbing$,Et=ie.state.playbackState$,St=ie.state.isAudioAvailable$,_t=ie.state.isAudioDisabled,Ri=ie.state.isEnded$,ci=ie.state.isLive$,ot=ie.state.isActiveLive$,Ht=ie.state.isRewindableLive$,{isActive$:fi,type$:qi}=Nt.pictureInPicture$,ho=ie.ui.settingsMenu.visible$,Ki=ie.ui.settingsMenu.openedByBtnKeyboard$,jt=ie.ui.controls,_o=ie.actions.internal.getVideoEpisodes(),At=ie.state.chromecastState$,ct=ie.state.availableSubtitlesList$,mi=ie.state.currentSubtitle$,Q=jt.disabledControls$,qt=ie.ui.contextMenu.visible$,di=ie.ui.contextMenu.showContextMenuBtn$,Ni=ie.ui.contextMenu.openedByBtnKeyboard$,si=ie.ui.startedByKeyboard$,ui=ie.ui.controlBlocks,vt=ie.ui.t,it=ie.ads.duration,kt=ie.ads.position,Qi=ie.ads.playbackState,ti=ie.ui.isFullscreen,Zn=ie.ui.playerSize,Ti=ie.ui.currentGridType$,To=ie.ui.additionalDesktopControlPanelRightButtons$,$i=ie.ui.autoplayNextEnabled$,yt=ie.actions.internal.getVideoElement,Bi=ie.actions.internal.replayInteractive,Fo=ie.actions.internal.prevVideoClick,En=ie.actions.internal.nextVideoClick,ai=ie.state.isInteractive,Ei=ie.state.isInteractiveTime$,Uo=ie.state.showInteractiveGraph,In=ie.state.showSeekToInteractive,zo=ie.state.showPlayPrevChapter,Eo=ie.state.showInteractiveTimeIndicator,gn=ie.state.playPrevChapterDisabledTooltip,nn=Nt.seekToInteractiveDisabledTooltip$,bo=Nt.graphIsOpened$,uo=ge.features.interactiveResponsiveUi,Br=h(()=>n().has("EPISODE_BUTTON")),vr=h(()=>n().has("GRAPH_BUTTON")),Xn=h(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Jn=h(()=>n().has("PLAY_BUTTON")),er=h(()=>n().has("REPLAY_BUTTON")),kn=h(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),ns=()=>ie.actions.internal.toggleChromecast(),Pn=h(()=>pt()?r()==="playing":l()===Ea.PlaybackState.PLAYING),yi=h(()=>d().value!=="off"),An=h(()=>a()&&!pt()||ai),rn=h(()=>uo?s(An)&&Ji(p(),"m"):s(An)),sn=h(()=>!a()||ai||pt()),Mn=h(()=>Ji(p(),"m")),Ln=h(()=>e.showNextPrevButtons&&Ji(p(),"m")&&!pt()&&e.nextButtonActive),Wo=h(()=>e.showNextPrevButtons&&Ji(p(),"m")&&!pt()&&e.prevButtonActive),Or=h(()=>!pt()&&!!f()),Vn=h(()=>v()!==Ea.ChromecastState.NOT_AVAILABLE&&!(u()&&b()===1)&&Ji(p(),"m")&&!ai),tr=h(()=>e.showAutoplayNext&&!oi()&&Ji(p(),"s")),Gi=h(()=>w().length>0&&Ji(p(),"m")),Io=h(()=>y()||C()),lt=h(()=>Ji(p(),"s")&&!pt()),Xt=h(()=>!e.logoHidden&&!pt()),gr=h(()=>ge.features.fullscreen&&(e.logoHidden||Ji(p(),uo?"xs":"s"))&&!(u()&&b()===1)&&(ai?Qt():!0)),Rn=h(()=>(!f()||pt())&&!(ge.features.interactiveHideTime&&ai)),hn=h(()=>T().width>100),Oi=h(()=>Uo&&Ji(p(),"m")),Nn=h(()=>uo?In&&Ji(p(),"s"):In),ko=h(()=>uo?zo&&Ji(p(),"s"):zo),Bn=h(()=>!pt()&&!f()&&!!(_o!=null&&_o.length)&&s(Mn)&&!s(Br)),Po=h(()=>!k()||!!P()),On=h(()=>I()?vt("tooltip_interactive_graph_on"):vt("tooltip_interactive_graph_off")),Dn=h(()=>E()?vt("tooltip_context_menu_close"):vt("tooltip_context_menu_open")),ir=(wt,xt)=>wt?xt&&xt===Ea.PlaybackState.PAUSED?vt("tooltip_play"):"":vt("tooltip_live"),hr=h(()=>ir(s(Po),l())),or=h(()=>ge.logoType==="vk_video"?vt("tooltip_vk_video_logo"):vt("tooltip_vk_logo")),qo=h(()=>s(yi)?vt("tooltip_subtitles_on"):vt("tooltip_subtitles_off")),Dr=h(()=>L()?vt("tooltip_fullscreen_on"):vt("tooltip_fullscreen_off")),nr=h(()=>v()===Ea.ChromecastState.CONNECTED?vt("tooltip_chromecast_on"):vt("tooltip_chromecast_off")),_r=h(()=>q()?vt("tooltip_autoplay_on"):vt("tooltip_autoplay_off")),an=j(0),Zt=ii({}),$o=ii({}),br=h(()=>jt.prevButton),$r=h(()=>jt.replayButton),Ko=h(()=>jt.playButton),Ii=h(()=>jt.nextButton),Hr=h(()=>jt.playPrevChapterButton),Fr=h(()=>jt.seekToInteractiveButton),Ur=h(()=>jt.interactiveGraphButton),rr=h(()=>jt.liveButton),sr=h(()=>jt.time),gt=h(()=>jt.episodes),Kt=h(()=>jt.vkLogo),hi=h(()=>jt.volume),ki=h(()=>jt.subtitles),Pi=h(()=>jt.settings),oo=h(()=>jt.context),ln=h(()=>jt.fullscreen),Di=h(()=>jt.chromecast),je=h(()=>({prevButton:z()?z().right-z().left:0,replayButton:U()?U().right-U().left:0,playButton:G()?G().right-G().left:0,nextButton:re()?re().right-re().left:0,playPrevChapterButton:Y()?Y().right-Y().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:ae()?ae().right-ae().left:0,liveButton:Ae()?Ae().right-Ae().left:0,time:Re()?Re().right-Re().left:0,episodes:me()?me().right-me().left:0,vkLogo:ue()?ue().right-ue().left:0,volume:Ve()?Ve().right-Ve().left:0,subtitles:te()?te().right-te().left:0,settings:N()?N().right-N().left:0,context:Qe()?Qe().right-Qe().left:0,fullscreen:ee()?ee().right-ee().left:0,chromecast:We()?We().right-We().left:0,additionalButtons:le().length?le().reduce(wt=>[...wt,40],[]):[]})),Vt=j(0);ze(()=>{(!s(Vt)||s(Vt)<s(je).time)&&It(()=>B(Vt,s(je).time,!0))});let _i=j(!1);ze(()=>{let wt=0;s(Bn)&&(Ji(p(),"xl")?wt=s(je).time:wt=60);let xt=s(je).prevButton+s(je).playButton+s(je).nextButton+s(je).seekToInteractiveButton+s(je).interactiveGraphButton+s(je).liveButton+s(Vt)+wt;B(_i,s(Rn)&&s(an)>=xt,!0)});let yo=h(()=>s(_i)&&Ji(p(),"m")),po=(0,ym.debounceFn)(yl,260),Qo=(0,ym.debounceFn)(Au,260);ze(()=>{T(),pe(),po(yt(),jt,Zt,e.showControls),Qo(yt(),ui,$o,e.showControls)}),ze(()=>{$o.bottom=Rt()});let no=se();ze(()=>{$e(),Z()&&It(()=>ml(Z(),$e(),Ki))});let Go;ze(()=>{qe(),It(()=>ku(si,qe(),Go))});function Ao(){Ns({isAudioDisabled:_t,isAudioAvailable:Xe(),isAds:pt(),audioIsNotExistHintCallback:Ne,audioDisabledHintCallback:Je})&&X()}let Yi=ai?Bi:xe,bi=h(()=>Ie()!==null),Yo=h(()=>s(bi)?Ie():s(Pn)),dn=h(()=>s(Yo)?vt("tooltip_pause"):vt("tooltip_play")),fo=vt("tooltip_episodes"),yr=h(()=>{var wt,xt,mo,Zo;return s(Wo)?{id:"prevButton",type:"desktop-control-panel-left",weight:hs.prevButton,buttonComponent:Ca,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Fo.bind(null,!0)},tooltipEnabled:!((xt=(wt=ie.callbacks)==null?void 0:wt.uiInfo)!=null&&xt.onPrevButtonMouseEnter)&&!((Zo=(mo=ie.callbacks)==null?void 0:mo.uiInfo)!=null&&Zo.onPrevButtonMouseLeave),mouseEnter:()=>{var vo,ri,Hi;(Hi=(ri=(vo=ie.callbacks)==null?void 0:vo.uiInfo)==null?void 0:ri.onPrevButtonMouseEnter)==null||Hi.call(ri,tn(yt(),Zt,"prevButton",e.showControls))},mouseLeave:()=>{var vo,ri,Hi;(Hi=(ri=(vo=ie.callbacks)==null?void 0:vo.uiInfo)==null?void 0:ri.onPrevButtonMouseLeave)==null||Hi.call(ri,tn(yt(),Zt,"prevButton",e.showControls))},tooltipText:vt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),zr=h(()=>s(rn)?{id:"replayButton",type:"desktop-control-panel-left",weight:hs.replayButton,buttonComponent:xl,buttonComponentProps:{disabled:s(er),click:Yi},tooltipText:vt("tooltip_restart"),disabled:s(er)}:void 0),Wr=h(()=>s(sn)?{id:"playButton",type:"desktop-control-panel-left",weight:hs.playButton,buttonComponent:wl,buttonComponentProps:{disabled:s(Jn),isPlaying:s(Pn),click:xe},tooltipText:s(dn),disabled:s(Jn)}:void 0),_n=h(()=>{var wt,xt,mo,Zo;return s(Ln)?{id:"nextButton",type:"desktop-control-panel-left",weight:hs.nextButton,buttonComponent:Ca,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:En.bind(null,!0)},tooltipEnabled:!((xt=(wt=ie.callbacks)==null?void 0:wt.uiInfo)!=null&&xt.onNextButtonMouseEnter)&&!((Zo=(mo=ie.callbacks)==null?void 0:mo.uiInfo)!=null&&Zo.onNextButtonMouseLeave),mouseEnter:()=>{var vo,ri,Hi;(Hi=(ri=(vo=ie.callbacks)==null?void 0:vo.uiInfo)==null?void 0:ri.onNextButtonMouseEnter)==null||Hi.call(ri,tn(yt(),Zt,"nextButton",e.showControls))},mouseLeave:()=>{var vo,ri,Hi;(Hi=(ri=(vo=ie.callbacks)==null?void 0:vo.uiInfo)==null?void 0:ri.onNextButtonMouseLeave)==null||Hi.call(ri,tn(yt(),Zt,"nextButton",e.showControls))},tooltipText:vt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Hn=h(()=>ai&&s(ko)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:hs.playPrevChapterButton,buttonComponent:qd,buttonComponentProps:{disabled:s(kn),click:e.playPrevChapter},tooltipText:vt("tooltip_interactive_go_back"),disabledTooltipContent:vt(gn),disabled:s(kn)}:void 0),rs=h(()=>ai&&s(Nn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:hs.seekToInteractiveButton,buttonComponent:Qd,buttonComponentProps:{disabled:s(Xn),click:e.seekToInteractive},tooltipText:vt("tooltip_interactive_seek"),disabled:s(Xn),disabledTooltipContent:vt(oe())}:void 0),xr=h(()=>ai&&s(Oi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:hs.interactiveGraphButton,buttonComponent:Gd,buttonComponentProps:{disabled:s(vr),click:bo.toggle,graphIsOpened:I()},tooltipText:s(On)}:void 0),jo=h(()=>s(Or)?{id:"liveButton",type:"desktop-control-panel-left",weight:hs.liveButton,buttonComponent:Yd,buttonComponentProps:{isLiveActive:s(Po),ariaLabel:s(hr)},tooltipText:s(hr),disabled:s(Po)&&l()===Ea.PlaybackState.PLAYING}:void 0),ji=h(()=>[s(yr),s(zr),s(Wr),s(_n),s(Hn),s(rs),s(xr),s(jo)].filter(wt=>!!wt).sort(ga)),Fn=h(()=>s(Xt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:bs.vkLogo,buttonComponent:Bd,buttonComponentProps:{targetUrl:Yt(),logoClickable:e.logoClickable,click:He},tooltipText:s(or),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ar=h(()=>s(tr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:bs.autoplayNext,buttonComponent:Kd,tooltipText:s(_r)}:void 0),qr=h(()=>({id:"volume",type:"desktop-control-panel-right",weight:bs.volume,buttonComponent:Gf,buttonComponentProps:{click:Ao,isAds:pt()}})),Kr=h(()=>s(Gi)?{id:"subtitles",type:"desktop-control-panel-right",weight:bs.subtitles,buttonComponent:Wf,buttonComponentProps:{isSubtitlesEnabled:s(yi),click:fe},tooltipText:s(qo)}:void 0),lr=h(()=>s(lt)?{id:"settings",type:"desktop-control-panel-right",weight:bs.settings,buttonComponent:bl,buttonComponentProps:{ref$:no},tooltipText:$e()?void 0:vt("tooltip_settings_off")}:void 0),ss=h(()=>ge.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:bs.context,buttonComponent:pm,buttonComponentProps:{ariaLabel:vt("aria_label_context_menu")},className:s(Io)?"":"out-of-view",tooltipText:s(Dn)}:void 0),we=h(()=>s(gr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:bs.fullscreen,buttonComponent:Nd,buttonComponentProps:{isFullscreen:L(),click:e.toggleFullscreen},tooltipText:s(Dr)}:void 0),he=h(()=>s(Vn)?{id:"chromecast",type:"desktop-control-panel-right",weight:bs.chromecast,buttonComponent:Od,buttonComponentProps:{state:v(),click:ns},tooltipText:s(nr)}:void 0),mt=h(()=>[s(Fn),s(ar),s(qr),s(Kr),s(lr),s(ss),s(we),s(he),...le()].filter(wt=>!!wt).sort(ga));var Mt=hy(),Le=ve(Mt);let ut;var Gt=_(Le);let xi=h(()=>!s(hn));wa(Gt,{get isHidden(){return s(xi)},get isAds(){return pt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return k()},get ref(){return Zt.timeline},set ref(wt){Zt.timeline=wt}});var ro=A(Gt,2),Zi=_(ro),wr=_(Zi);wi(wr,17,()=>s(ji),wt=>wt.id,(wt,xt)=>{Pu(wt,{get buttonComponent(){return s(xt).buttonComponent},get buttonComponentProps(){return s(xt).buttonComponentProps},get tooltipText(){return s(xt).tooltipText},get disabledTooltipContent(){return s(xt).disabledTooltipContent},get disabled(){return s(xt).disabled},get className(){return s(xt).className},get tooltipEnabled(){return s(xt).tooltipEnabled},get mouseEnter(){return s(xt).mouseEnter},get mouseLeave(){return s(xt).mouseLeave},get ref(){return Zt[s(xt).id]},set ref(mo){Zt[s(xt).id]=mo}})});var Sr=A(wr,2);{var so=wt=>{let xt=h(()=>pt()?Te():Ke()),mo=h(()=>pt()?rt():nt());Ld(wt,{isMobile:!1,get showDuration(){return s(yo)},get position(){return s(xt)},get duration(){return s(mo)},get ref(){return Zt.time},set ref(Zo){Zt.time=Zo}})};V(Sr,wt=>{s(Rn)&&wt(so)})}var Ai=A(Sr,2);let bn=h(()=>!s(Bn));Do(Ai,{className:"w-max",get disabled(){return s(bn)},get tooltipContent(){return fo},get ref(){return Zt.episodes},set ref(wt){Zt.episodes=wt},children:(wt,xt)=>{var mo=Fe(),Zo=ve(mo);{var vo=ri=>{Hd(ri,{get position(){return Ke()},get duration(){return nt()},get timeCodes(){return _o}})};V(Zo,ri=>{s(Bn)&&ri(vo)})}$(wt,mo)},$$slots:{default:!0}}),g(Zi);var Un=A(Zi,2);wi(Un,21,()=>s(mt),wt=>wt.id,(wt,xt)=>{var mo=Fe(),Zo=ve(mo);{var vo=Hi=>{Pu(Hi,{get buttonComponent(){return s(xt).buttonComponent},get buttonComponentProps(){return s(xt).buttonComponentProps},get tooltipText(){return s(xt).tooltipText},get disabledTooltipContent(){return s(xt).disabledTooltipContent},get disabled(){return s(xt).disabled},get className(){return s(xt).className},get ref(){return Zt[s(xt).id]},set ref(ys){Zt[s(xt).id]=ys}})},ri=Hi=>{let ys=h(()=>!!s(xt).disabled);$m(Hi,{get id(){return s(xt).id},get testId(){return s(xt).testId},get icon(){return s(xt).icon},get ariaLabel(){return s(xt).ariaLabel},get tooltipText(){return s(xt).tooltipText},get disabledTooltipContent(){return s(xt).disabledTooltipContent},get disabled(){return s(ys)},get onClick(){return s(xt).onClick},get ref(){return Zt[s(xt).id]},set ref(Vl){Zt[s(xt).id]=Vl}})};V(Zo,Hi=>{H1(s(xt))?Hi(vo):Hi(ri,!1)})}$(wt,mo)}),g(Un),g(ro),tt(ro,wt=>et(wt),()=>et()),g(Le),tt(Le,wt=>Rt(wt),()=>Rt());var Cr=A(Le,2);{var xo=wt=>{zd(wt,{get ref(){return Zt.interactiveTimeIndicator},set ref(xt){Zt.interactiveTimeIndicator=xt}})};V(Cr,wt=>{Eo&&wt(xo)})}O(wt=>ut=J(Le,1,"wrapper-bottom svelte-f6e8ix",null,ut,wt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Jr(Zi,"clientWidth",wt=>B(an,wt)),$(t,Mt),H(),o()}var Sl=require("@vkontakte/videoplayer-core/es2018");var wm=require("@vkontakte/videoplayer-shared/es2018");var by=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),$y=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),yy={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function Sm(t,e){W(t,yy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,wm.noop),n=h(()=>o()===wm.noop),r=h(()=>s(n)||i()),l=j(!1),d=()=>{B(l,!0)},a=h(()=>s(n)?"btn-full-opacity":"");Ot(t,{get className(){return s(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return e.testId},children:(p,f)=>{var v=Fe(),u=ve(v);{var b=y=>{var C=by();$(y,C)},w=y=>{var C=$y();O(()=>Oe(C,"src",e.iconUrl)),Ct("error",C,d),ia(C),$(y,C)};V(u,y=>{s(l)?y(b):y(w,!1)})}$(p,v)},$$slots:{default:!0}})}var xy=Ce('<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 Cm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=xy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var F1=require("@vkontakte/videoplayer-shared/es2018");var wy=M('<span class="text svelte-6gmlbk"> </span>'),Sy=M('<div aria-hidden="true"><!> <!></div>'),Cy={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function Mu(t,e){D(e,!0),W(t,Cy);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,F1.noop),r=m(e,"ref",15,void 0),d=Ee().ui.t,a=h(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=h(()=>o()?Os:Cm),f=h(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Ot(t,{get testId(){return s(f)},get click(){return n()},get ariaLabel(){return s(a)},role:"button",get ref(){return r()},set ref(v){r(v)},children:(v,u)=>{var b=Sy();let w=h(()=>s(p)),y;var C=_(b);Si(C,()=>s(w),(P,I)=>{I(P,{})});var T=A(C,2);{var k=P=>{var I=wy(),E=_(I,!0);g(I),O(L=>_e(E,L),[()=>d("mobile_unmute")]),$(P,I)};V(T,P=>{o()&&P(k)})}g(b),O(P=>y=J(b,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),$(v,b)},$$slots:{default:!0}}),H()}var Ty=Ce('<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 Tm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(3),g(o),$(t,o)}var Ey={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
252
|
+
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Em(t,e){W(t,Ey);let i=m(e,"isActive",3,!1),o=h(()=>i()?"color: #2688EB;":"color: #fff;"),n=h(()=>i()?"pip-icon--active":"pip-icon");Tm(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}var U1=require("@vkontakte/videoplayer-shared/es2018");function Im(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,U1.noop),r=F("menu_pip");Ot(t,{testId:"btn-pip",get ariaLabel(){return r},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Em(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var km=require("@vkontakte/videoplayer-shared/es2018");var Iy=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},ky=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},Py=M("<div><!></div>"),Ay=M("<div><!></div>"),My=M("<div><!></div>"),Ly=M("<!> <!> <!>",1),Vy=M("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Ry=M("<div><!></div>"),Ny=M('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),By=M("<!> <!> <div><!></div>",1),Oy=M('<div aria-hidden="true">\xB7</div> <!>',1),Dy=M('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!></div></div> <!></div></div> <!>',1),Hy={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {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-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {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-9xcbwc {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-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
|
|
253
253
|
.wrapper-middle-left-second.svelte-9xcbwc,
|
|
254
254
|
.wrapper-middle-right.svelte-9xcbwc {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-9xcbwc {left:12px;}.wrapper-middle-left-second.svelte-9xcbwc {left:64px;}.wrapper-middle-right.svelte-9xcbwc {right:12px;}.controls.svelte-9xcbwc {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-9xcbwc {display:flex;}.controls-group.contain.svelte-9xcbwc {min-width:0;}.controls-group.svelte-9xcbwc > *:not(:first-child) {margin-left:8px;}.hidden.svelte-9xcbwc {visibility:hidden;opacity:0;}.controls-hidden.svelte-9xcbwc {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-9xcbwc {transition:none;}.overlay-mobile.svelte-9xcbwc {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
|
|
255
255
|
|
|
@@ -258,7 +258,7 @@ Try switching the\xA0quality to\xA0Auto.`},Xh=F_;var gs=new Map;gs.set(ll.Interf
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
@media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-9xcbwc {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-9xcbwc {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-9xcbwc {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-9xcbwc {left:96px;}.wrapper-middle-right.fullscreen.svelte-9xcbwc {right:44px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
|
|
261
|
-
}`};function km(t,e){var bn,an;D(e,!0),W(t,Hy);let[i,o]=Be(),n=()=>C(Pn,"$seekToInteractiveDisabledTooltip$",i),r=()=>C(qt,"$disabledControls$",i),l=()=>C(Vt,"$playbackState$",i),d=()=>C(pt,"$adPlaybackState",i),a=()=>C(xe,"$isEnded$",i),u=()=>C(It,"$playerSize",i),f=()=>C(Fe,"$scrubbingInProgress",i),v=()=>C(mi,"$chromecastState$",i),p=()=>C(Tt,"$isPictureInPictureActive",i),$=()=>C(xt,"$pictureInPictureType$",i),w=()=>C(Mt,"$mobileNotReportControlHidden$",i),y=()=>C(fo,"$chromecastHidden",i),S=()=>C(Kt,"$playerPhase",i),T=()=>C(zi,"$pipHidden",i),k=()=>C(Mi,"$currentGridType$",i),P=()=>C(Ui,"$vkLogoHidden",i),I=()=>C(De,"$isLive$",i),E=()=>C(ci,"$settingsMenuVisible",i),L=()=>C(Je,"$isRewindableLive$",i),q=()=>C(Re,"$isActiveLive$",i),z=()=>C(Do,"$isInteractiveTime$",i),U=()=>C(ge,"$isAudioAvailable$",i),G=()=>C(Eo,"$settingButtonRef$",i),re=()=>C(di,"$startedByKeyboard$",i),Y=()=>C(tt,"$isFullscreen",i),ce=()=>C(Ai,"$mobileUnmuteButtonVisible",i),ae=()=>C(fi,"$volumeHidden",i),Ae=()=>C(fe,"$muted$",i),Ve=()=>C(mt,"$mobileUnmuteButtonExpanded",i),me=()=>C(Wi,"$additionalButtons$",i),ue=()=>C(po,"$autoplayNextToggleHidden",i),Le=()=>C(Q,"$crashed$",i),te=()=>C(Gt,"$settingsHidden",i),N=()=>C(ai,"$graphIsOpened$",i),Qe=()=>C(ui,"$adPosition",i),ee=()=>C(si,"$adDuration",i),We=()=>C(ie,"$position$",i),le=()=>C(St,"$duration$",i),pe=m(e,"playerControlsWrapperRef",15,void 0),be=m(e,"playerControlsRef",15,void 0),Z=m(e,"isAds",3,!1),qe=m(e,"logoTargetUrl",3,""),Ze=m(e,"isOneVideoPlaylist",3,!1),Ie=m(e,"customFullscreenSupported",3,!0),oe=Ee(),Te=uo(),Ke=Ut(),rt=oe.actions.internal.toggleMuted,nt=oe.actions.internal.togglePlay,Lt=oe.actions.internal.pause,et=oe.actions.internal.prevVideoClick,ct=oe.actions.internal.nextVideoClick,Qt=(bn=oe.callbacks)==null?void 0:bn.onAudioDoesNotExistHint,ni=(an=oe.callbacks)==null?void 0:an.onAudioDisabledHint,Kt=oe.playerPhase,St=oe.state.duration$,ie=oe.state.positionWithScrubbing$,Vt=oe.state.playbackState$,ge=oe.state.isAudioAvailable$,X=oe.state.isAudioDisabled,xe=oe.state.isEnded$,De=oe.state.isLive$,fe=oe.state.muted$,Re=oe.state.isActiveLive$,Je=oe.state.isRewindableLive$,Fe=oe.ui.scrubbingInProgress,Mt=oe.ui.mobileNotReportControlHidden$,{isActive$:Tt,type$:xt}=Te.pictureInPicture$,mt=oe.ui.mobileUnmuteButtonExpanded,Ai=oe.ui.mobileUnmuteButtonVisible,ci=oe.ui.settingsMenu.visible$,it=oe.ui.settingsMenu.openedByBtnKeyboard$,Dt=oe.ui.controls,{volume:fi,vkLogo:Ui,autoplayNextToggle:po,pip:zi,settings:Gt,chromecast:fo}=oe.ui.hiddenControls,Pt=oe.actions.internal.getVideoEpisodes(),dt=oe.webApi.pictureInPictureApi,mi=oe.state.chromecastState$,Q=oe.state.crashed$,qt=Dt.disabledControls$,di=oe.ui.startedByKeyboard$,Mi=oe.ui.currentGridType$,si=oe.ads.duration,ui=oe.ads.position,pt=oe.ads.playbackState,tt=oe.ui.isFullscreen,It=oe.ui.playerSize,Wi=oe.ui.additionalButtonsDeprecated$,ei=oe.actions.internal.getVideoElement,tr=oe.actions.internal.replayInteractive,Li=oe.state.isInteractive,Do=oe.state.isInteractiveTime$,$i=oe.state.showInteractiveGraph,ht=oe.state.showSeekToInteractive,Vi=oe.state.showPlayPrevChapter,Ho=oe.state.showInteractiveTimeIndicator,Pn=Te.seekToInteractiveDisabledTooltip$,ai=Te.graphIsOpened$,Ci=oe.ui.controlBlocks,Fo=h(()=>F(oe.state.playPrevChapterDisabledTooltip)),An=h(()=>F(n())),Uo=h(()=>r().has("EPISODE_BUTTON")),wo=h(()=>r().has("GRAPH_BUTTON")),hn=h(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),tn=h(()=>r().has("PLAY_BUTTON")),mo=h(()=>r().has("REPLAY_BUTTON")),Co=h(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Dr=h(()=>l()===wl.PlaybackState.PLAYING),_r=h(()=>d()==="paused"),ir=h(()=>a()&&!Z()&&!Li),or=h(()=>!a()||Z()),nr=h(()=>e.showNextPrevButtons&&!Z()&&e.prevButtonActive),Mn=h(()=>e.showNextPrevButtons&&!Z()&&e.nextButtonActive),rs=h(()=>u().width>300),Ln=h(()=>u().width>400),Ri=h(f),Vn=h(()=>v()!==wl.ChromecastState.NOT_AVAILABLE&&!(p()&&$()===1)&&!w()&&!Li&&!y()),on=h(()=>S()==="LiveWaitingStart"),nn=h(()=>!!dt&&v()!==wl.ChromecastState.CONNECTED&&!w()&&($()===1&&s(on)||!s(on))&&!s(Ri)&&!Li&&!T()),Rn=h(()=>!s(Ri)&&Gi(k(),"s")),Nn=h(()=>!e.logoHidden&&u().width>350&&!P()),zo=h(()=>Ke.features.fullscreen&&!(p()&&$()===1)&&(Li?Ie():!0)&&!s(Ri)),Hr=h(()=>(!I()||Z())&&u().width>260&&!s(Ri)&&!(Ke.features.interactiveHideTime&&Li)),Bn=h(()=>E()||e.showControls),rr=h(()=>!Z()&&!I()&&!!(Pt!=null&&Pt.length)&&s(rs)&&!s(Uo)&&!s(Ri)),qi=h(()=>!L()||!!q()),So=h(()=>$i&&Gi(k(),"m")),at=oi({}),jt=oi({}),br=(0,Im.debounceFn)($l,260),On=(0,Im.debounceFn)(Au,260);ze(()=>{u(),z(),br(ei(),Dt,at,e.showControls),On(ei(),Ci,jt,e.showControls)});let _n=()=>oe.actions.internal.toggleChromecast();async function Ni(){dt!=null&&dt.isActive()?await(dt==null?void 0:dt.remove()):await(dt==null?void 0:dt.request())}function Dn(){(!X&&U()||Z())&&Ai.set(!1),Os({isAudioDisabled:X,audioDisabledHintCallback:ni,isAudioAvailable:U(),audioIsNotExistHintCallback:Qt,isAds:Z()})&&rt()}let To=j(""),Hn=(Xe,Rt)=>{if(!Xe){B(To,F("tooltip_live"),!0);return}Rt&&Rt===wl.PlaybackState.PAUSED&&B(To,F("tooltip_play"),!0)};ze(()=>{Hn(s(qi),l())});let Eo=se();ze(()=>{G()&&fl(G(),E(),it)}),ze(()=>{ku(di,re(),at.playButton)});var Fn=Dy(),Un=ve(Fn);{var sr=Xe=>{var Rt=Vy(),hi=ve(Rt);let _o;var no=A(hi,2);let Ko;var Xi=_(no);{var Qo=Ue=>{let wt=h(()=>U()&&!X&&Ve());Mu(Ue,{get muted(){return Ae()},get expanded(){return s(wt)},click:Dn,get ref(){return at.volume},set ref(ti){at.volume=ti}})};V(Xi,Ue=>{(!U()||ce())&&!ae()&&Ue(Qo)})}g(no),ot(no,Ue=>jt.topLeft=Ue,()=>jt==null?void 0:jt.topLeft);var ko=A(no,2);let Ki;var _i=_(ko);yi(_i,1,me,({iconUrl:Ue,ariaLabel:wt,testId:ti,onClick:dn,tooltip:yn})=>Ue,(Ue,wt)=>{let ti=()=>s(wt).iconUrl,dn=()=>s(wt).ariaLabel,yn=()=>s(wt).testId,ao=()=>s(wt).onClick,Qr=()=>s(wt).tooltip,Sr=h(()=>{var Ji;return(Ji=dn())!=null?Ji:Qr()});wm(Ue,{get iconUrl(){return ti()},get ariaLabel(){return s(Sr)},get testId(){return yn()},get onClick(){return ao()}})});var Go=A(_i,2);{var ln=Ue=>{Kd(Ue,{get ref(){return at.autoplayNextToggle},set ref(wt){at.autoplayNextToggle=wt}})};V(Go,Ue=>{e.showAutoplayNext&&!Ze()&&!ue()&&Ue(ln)})}var ro=A(Go,2);{var Cr=Ue=>{Od(Ue,{isMobile:!0,click:_n,get state(){return v()},get ref(){return at.chromecast},set ref(wt){at.chromecast=wt}})};V(ro,Ue=>{s(Vn)&&Ue(Cr)})}var zr=A(ro,2);{var Wr=Ue=>{Em(Ue,{click:Ni,get isPictureInPictureActive(){return p()},get ref(){return at.pip},set ref(wt){at.pip=wt}})};V(zr,Ue=>{s(nn)&&Ue(Wr)})}var $n=A(zr,2);{var Wn=Ue=>{_l(Ue,{get ref$(){return Eo}})};V($n,Ue=>{Le()&&!te()&&Ue(Wn)})}var qr=A($n,2);{var so=Ue=>{Bd(Ue,{get click(){return Lt},get targetUrl(){return qe()},get logoClickable(){return e.logoClickable},get ref(){return at.vkLogo},set ref(wt){at.vkLogo=wt}})};V(qr,Ue=>{s(Nn)&&Ue(so)})}g(ko),ot(ko,Ue=>jt.topRight=Ue,()=>jt==null?void 0:jt.topRight);var Yo=A(ko,2);let qn;var cr=_(Yo);{var ur=Ue=>{let wt=h(()=>et.bind(null,!0));Ta(Ue,{get click(){return s(wt)},type:"prev",isMobile:!0,get ref(){return at.prevButton},set ref(ti){at.prevButton=ti}})};V(cr,Ue=>{s(nr)&&Ue(ur)})}var Kr=A(cr,2);{var as=Ue=>{xl(Ue,{get disabled(){return s(tn)},get click(){return nt},isMobile:!0,get isPlaying(){return s(Dr)},get ref(){return at.playButton},set ref(wt){at.playButton=wt}})};V(Kr,Ue=>{s(or)&&Ue(as)})}var Se=A(Kr,2);{var ye=Ue=>{yl(Ue,{get disabled(){return s(mo)},get click(){return nt},isMobile:!0,get ref(){return at.replayButton},set ref(wt){at.replayButton=wt}})};V(Se,Ue=>{s(ir)&&Ue(ye)})}var yt=A(Se,2);{var zt=Ue=>{let wt=h(()=>ct.bind(null,!0));Ta(Ue,{get click(){return s(wt)},type:"next",isMobile:!0,get ref(){return at.nextButton},set ref(ti){at.nextButton=ti}})};V(yt,Ue=>{s(Mn)&&Ue(zt)})}g(Yo),ot(Yo,Ue=>jt.middle=Ue,()=>jt==null?void 0:jt.middle);var Ti=A(Yo,2);{var bi=Ue=>{var wt=Ly(),ti=ve(wt);{var dn=Ji=>{var Ei=Py();let xn;Ei.__click=[Iy,Co,e,Fo];var Kn=_(Ei);let Tr=h(()=>!e.showControls);qd(Kn,{get hidden(){return s(Tr)},get disabled(){return s(Co)},get click(){return e.playPrevChapter},get ref(){return at.playPrevChapterButton},set ref(bo){at.playPrevChapterButton=bo}}),g(Ei),O(bo=>xn=J(Ei,1,"wrapper-middle-left svelte-9xcbwc",null,xn,bo),[()=>({fullscreen:Y(),hidden:!e.showControls})]),b(Ji,Ei)};V(ti,Ji=>{Vi&&Ji(dn)})}var yn=A(ti,2);{var ao=Ji=>{var Ei=Ay();let xn;var Kn=_(Ei);let Tr=h(()=>!e.showControls&&!N());Gd(Kn,{get hidden(){return s(Tr)},get disabled(){return s(wo)},get click(){return ai.toggle},get graphIsOpened(){return N()},get ref(){return at.interactiveGraphButton},set ref(bo){at.interactiveGraphButton=bo}}),g(Ei),O(bo=>xn=J(Ei,1,ld(Vi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",xn,bo),[()=>({fullscreen:Y(),hidden:!e.showControls&&!N()})]),b(Ji,Ei)};V(yn,Ji=>{s(So)&&Ji(ao)})}var Qr=A(yn,2);{var Sr=Ji=>{var Ei=My();let xn;Ei.__click=[ky,hn,e,An];var Kn=_(Ei);let Tr=h(()=>!e.showControls);Qd(Kn,{get hidden(){return s(Tr)},get disabled(){return s(hn)},get click(){return e.seekToInteractive},get ref(){return at.seekToInteractiveButton},set ref(bo){at.seekToInteractiveButton=bo}}),g(Ei),O(bo=>xn=J(Ei,1,"wrapper-middle-right svelte-9xcbwc",null,xn,bo),[()=>({fullscreen:Y(),hidden:!e.showControls})]),b(Ji,Ei)};V(Qr,Ji=>{ht&&Ji(Sr)})}b(Ue,wt)};V(Ti,Ue=>{Li&&!f()&&Ue(bi)})}O((Ue,wt,ti,dn)=>{_o=J(hi,1,"overlay-mobile svelte-9xcbwc",null,_o,Ue),Ko=J(no,1,"wrapper-top-left svelte-9xcbwc",null,Ko,wt),Ki=J(ko,1,"wrapper-top-right svelte-9xcbwc",null,Ki,ti),qn=J(Yo,1,"wrapper-middle svelte-9xcbwc",null,qn,dn)},[()=>({hidden:!s(Bn)}),()=>({hidden:!e.showControls,fullscreen:Y()}),()=>({hidden:!e.showControls&&!w(),fullscreen:Y()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(Xe,Rt)};V(Un,Xe=>{Z()||Xe(sr)})}var $r=A(Un,2);{var ar=Xe=>{var Rt=By(),hi=ve(Rt);{var _o=Ki=>{var _i=Ry();let Go;var ln=_(_i);Mu(ln,{get muted(){return Ae()},expanded:!1,click:Dn,get ref(){return at.volume},set ref(ro){at.volume=ro}}),g(_i),O(ro=>Go=J(_i,1,"wrapper-top-right svelte-9xcbwc",null,Go,ro),[()=>({fullscreen:Y()})]),b(Ki,_i)};V(hi,Ki=>{ce()&&Ki(_o)})}var no=A(hi,2);{var Ko=Ki=>{var _i=Ny(),Go=_(_i);let ln=h(()=>!s(_r));xl(Go,{get disabled(){return s(tn)},get click(){return nt},isMobile:!0,get isPlaying(){return s(ln)},get ref(){return at.playButton},set ref(ro){at.playButton=ro}}),g(_i),b(Ki,_i)};V(no,Ki=>{s(_r)&&Ki(Ko)})}var Xi=A(no,2);let Qo;var ko=_(Xi);Dd(ko,{get position(){return Qe()},get duration(){return ee()}}),g(Xi),O(Ki=>Qo=J(Xi,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Qo,Ki),[()=>({fullscreen:Y()})]),b(Xe,Rt)};V($r,Xe=>{Z()&&d()!=="inactive"&&Xe(ar)})}var Wo=A($r,2);let Fr;var lr=_(Wo);let yr;var rn=_(lr);J(rn,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var Yt=_(rn),vo=_(Yt);{var Io=Xe=>{Bo(Xe,{get disabled(){return s(mo)},get ref(){return at.replayButton},set ref(Rt){at.replayButton=Rt},children:(Rt,hi)=>{yl(Rt,{get disabled(){return s(mo)},get click(){return tr}})},$$slots:{default:!0}})};V(vo,Xe=>{Li&&Xe(Io)})}var dr=A(vo,2);{var xr=Xe=>{Bo(Xe,{get ref(){return at.liveButton},set ref(Rt){at.liveButton=Rt},children:(Rt,hi)=>{Yd(Rt,{get isLiveActive(){return s(qi)},isMobile:!0,get ariaLabel(){return s(To)}})},$$slots:{default:!0}})};V(dr,Xe=>{!Z()&&I()&&Xe(xr)})}var Si=A(dr,2);{var ss=Xe=>{let Rt=h(()=>Z()?Qe():We()),hi=h(()=>Z()?ee():le());Ld(Xe,{get showDuration(){return s(Ln)},get position(){return s(Rt)},get duration(){return s(hi)},isMobile:!0,get ref(){return at.time},set ref(_o){at.time=_o}})};V(Si,Xe=>{s(Hr)&&Xe(ss)})}var Ur=A(Si,2);let wr=h(()=>!s(rr));Bo(Ur,{className:"w-max",get disabled(){return s(wr)},get ref(){return at.episodes},set ref(Xe){at.episodes=Xe},children:(Xe,Rt)=>{var hi=He(),_o=ve(hi);{var no=Ko=>{var Xi=Oy(),Qo=A(ve(Xi),2);Hd(Qo,{get position(){return We()},get duration(){return le()},get timeCodes(){return Pt}}),b(Ko,Xi)};V(_o,Ko=>{s(rr)&&Ko(no)})}b(Xe,hi)},$$slots:{default:!0}}),g(Yt),ot(Yt,Xe=>jt.bottomRight=Xe,()=>jt==null?void 0:jt.bottomRight);var _t=A(Yt,2),Zt=_(_t);{var qo=Xe=>{Bo(Xe,{get ref(){return at.settings},set ref(Rt){at.settings=Rt},children:(Rt,hi)=>{_l(Rt,{get ref$(){return Eo}})},$$slots:{default:!0}})};V(Zt,Xe=>{s(Rn)&&Xe(qo)})}var go=A(Zt,2);{var oo=Xe=>{Bo(Xe,{get ref(){return at.fullscreen},set ref(Rt){at.fullscreen=Rt},children:(Rt,hi)=>{Nd(Rt,{get click(){return e.toggleFullscreen},get isFullscreen(){return Y()}})},$$slots:{default:!0}})};V(go,Xe=>{s(zo)&&Xe(oo)})}g(_t),ot(_t,Xe=>jt.bottomRight=Xe,()=>jt==null?void 0:jt.bottomRight),g(rn),ot(rn,Xe=>be(Xe),()=>be());var sn=A(rn,2);Ca(sn,{get isAds(){return Z()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return L()},get ref(){return at.timeline},set ref(Xe){at.timeline=Xe}}),g(lr),g(Wo),ot(Wo,Xe=>pe(Xe),()=>pe());var zn=A(Wo,2);{var ho=Xe=>{zd(Xe,{get ref(){return at.interactiveTimeIndicator},set ref(Rt){at.interactiveTimeIndicator=Rt}})};V(zn,Xe=>{Ho&&Xe(ho)})}O((Xe,Rt)=>{Fr=J(Wo,1,"wrapper-bottom svelte-9xcbwc",null,Fr,Xe),yr=J(lr,1,"controls-wrapper svelte-9xcbwc",null,yr,Rt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:Y()})]),b(t,Fn),H(),o()}lt(["click"]);function jd(t,e){D(e,!0);let[i,o]=Be(),n=()=>C(T,"$isMobile",i),r=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),$=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,Pm.noop),y=m(e,"onDisabledSeekToInteractiveClick",3,Pm.noop),T=Ee().ui.isMobile,k=j(!1);Ot(()=>{let L=setTimeout(()=>B(k,!0),0);return()=>clearTimeout(L)});var P=He(),I=ve(P);{var E=L=>{var q=He(),z=ve(q);{var U=re=>{km(re,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return p()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})},G=re=>{ym(re,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})};V(z,re=>{n()?re(U):re(G,!1)})}b(L,q)};V(I,L=>{s(k)&&L(E)})}b(t,P),H(),o()}var Fy=Ce('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Am(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(2),g(o),b(t,o)}function Mm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Am(t,{get style(){return s(o)}})}var Uy=Ce('<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 Lm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(2),g(o),b(t,o)}var zy=Ce('<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 Vm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=zy();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(2),g(o),b(t,o)}function Lu(t,e){let i=m(e,"isOff",3,!1);var o=He(),n=ve(o);{var r=d=>{Vm(d,{})},l=d=>{Lm(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var Wy=Ce('<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 Rm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Wy();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(2),g(o),b(t,o)}function Nm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Rm(t,{get style(){return s(o)}})}var qy=Ce('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function Bm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=qy();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(2),g(o),b(t,o)}function Om(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Bm(t,{get style(){return s(o)}})}var Ky=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Qy=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Gy=M("<div><!></div>"),Yy={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
|
|
261
|
+
}`};function Pm(t,e){var ln,Di;D(e,!0),W(t,Hy);let[i,o]=Be(),n=()=>S(En,"$seekToInteractiveDisabledTooltip$",i),r=()=>S(qt,"$disabledControls$",i),l=()=>S(Nt,"$playbackState$",i),d=()=>S(vt,"$adPlaybackState",i),a=()=>S(xe,"$isEnded$",i),p=()=>S(kt,"$playerSize",i),f=()=>S(Ue,"$scrubbingInProgress",i),v=()=>S(mi,"$chromecastState$",i),u=()=>S(Et,"$isPictureInPictureActive",i),b=()=>S(St,"$pictureInPictureType$",i),w=()=>S(Lt,"$mobileNotReportControlHidden$",i),y=()=>S(_o,"$chromecastHidden",i),C=()=>S(Qt,"$playerPhase",i),T=()=>S(Ki,"$pipHidden",i),k=()=>S(Ni,"$currentGridType$",i),P=()=>S(qi,"$vkLogoHidden",i),I=()=>S(He,"$isLive$",i),E=()=>S(ci,"$settingsMenuVisible",i),L=()=>S(Je,"$isRewindableLive$",i),q=()=>S(Ne,"$isActiveLive$",i),z=()=>S(To,"$isInteractiveTime$",i),U=()=>S(ge,"$isAudioAvailable$",i),G=()=>S(Po,"$settingButtonRef$",i),re=()=>S(di,"$startedByKeyboard$",i),Y=()=>S(it,"$isFullscreen",i),ce=()=>S(Ri,"$mobileUnmuteButtonVisible",i),ae=()=>S(fi,"$volumeHidden",i),Ae=()=>S(fe,"$muted$",i),Re=()=>S(_t,"$mobileUnmuteButtonExpanded",i),me=()=>S(Qi,"$additionalButtons$",i),ue=()=>S(ho,"$autoplayNextToggleHidden",i),Ve=()=>S(Q,"$crashed$",i),te=()=>S(jt,"$settingsHidden",i),N=()=>S(ai,"$graphIsOpened$",i),Qe=()=>S(ui,"$adPosition",i),ee=()=>S(si,"$adDuration",i),We=()=>S(ie,"$position$",i),le=()=>S(Tt,"$duration$",i),pe=m(e,"playerControlsWrapperRef",15,void 0),$e=m(e,"playerControlsRef",15,void 0),Z=m(e,"isAds",3,!1),qe=m(e,"logoTargetUrl",3,""),Xe=m(e,"isOneVideoPlaylist",3,!1),Ie=m(e,"customFullscreenSupported",3,!0),oe=Ee(),Te=go(),Ke=zt(),rt=oe.actions.internal.toggleMuted,nt=oe.actions.internal.togglePlay,Rt=oe.actions.internal.pause,et=oe.actions.internal.prevVideoClick,pt=oe.actions.internal.nextVideoClick,Yt=(ln=oe.callbacks)==null?void 0:ln.onAudioDoesNotExistHint,oi=(Di=oe.callbacks)==null?void 0:Di.onAudioDisabledHint,Qt=oe.playerPhase,Tt=oe.state.duration$,ie=oe.state.positionWithScrubbing$,Nt=oe.state.playbackState$,ge=oe.state.isAudioAvailable$,X=oe.state.isAudioDisabled,xe=oe.state.isEnded$,He=oe.state.isLive$,fe=oe.state.muted$,Ne=oe.state.isActiveLive$,Je=oe.state.isRewindableLive$,Ue=oe.ui.scrubbingInProgress,Lt=oe.ui.mobileNotReportControlHidden$,{isActive$:Et,type$:St}=Te.pictureInPicture$,_t=oe.ui.mobileUnmuteButtonExpanded,Ri=oe.ui.mobileUnmuteButtonVisible,ci=oe.ui.settingsMenu.visible$,ot=oe.ui.settingsMenu.openedByBtnKeyboard$,Ht=oe.ui.controls,{volume:fi,vkLogo:qi,autoplayNextToggle:ho,pip:Ki,settings:jt,chromecast:_o}=oe.ui.hiddenControls,At=oe.actions.internal.getVideoEpisodes(),ct=oe.webApi.pictureInPictureApi,mi=oe.state.chromecastState$,Q=oe.state.crashed$,qt=Ht.disabledControls$,di=oe.ui.startedByKeyboard$,Ni=oe.ui.currentGridType$,si=oe.ads.duration,ui=oe.ads.position,vt=oe.ads.playbackState,it=oe.ui.isFullscreen,kt=oe.ui.playerSize,Qi=oe.ui.additionalButtonsDeprecated$,ti=oe.actions.internal.getVideoElement,Zn=oe.actions.internal.replayInteractive,Ti=oe.state.isInteractive,To=oe.state.isInteractiveTime$,$i=oe.state.showInteractiveGraph,yt=oe.state.showSeekToInteractive,Bi=oe.state.showPlayPrevChapter,Fo=oe.state.showInteractiveTimeIndicator,En=Te.seekToInteractiveDisabledTooltip$,ai=Te.graphIsOpened$,Ei=oe.ui.controlBlocks,Uo=h(()=>F(oe.state.playPrevChapterDisabledTooltip)),In=h(()=>F(n())),zo=h(()=>r().has("EPISODE_BUTTON")),Eo=h(()=>r().has("GRAPH_BUTTON")),gn=h(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),nn=h(()=>r().has("PLAY_BUTTON")),bo=h(()=>r().has("REPLAY_BUTTON")),uo=h(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Br=h(()=>l()===Sl.PlaybackState.PLAYING),vr=h(()=>d()==="paused"),Xn=h(()=>a()&&!Z()&&!Ti),Jn=h(()=>!a()||Z()),er=h(()=>e.showNextPrevButtons&&!Z()&&e.prevButtonActive),kn=h(()=>e.showNextPrevButtons&&!Z()&&e.nextButtonActive),ns=h(()=>p().width>300),Pn=h(()=>p().width>400),yi=h(f),An=h(()=>v()!==Sl.ChromecastState.NOT_AVAILABLE&&!(u()&&b()===1)&&!w()&&!Ti&&!y()),rn=h(()=>C()==="LiveWaitingStart"),sn=h(()=>!!ct&&v()!==Sl.ChromecastState.CONNECTED&&!w()&&(b()===1&&s(rn)||!s(rn))&&!s(yi)&&!Ti&&!T()),Mn=h(()=>!s(yi)&&Ji(k(),"s")),Ln=h(()=>!e.logoHidden&&p().width>350&&!P()),Wo=h(()=>Ke.features.fullscreen&&!(u()&&b()===1)&&(Ti?Ie():!0)&&!s(yi)),Or=h(()=>(!I()||Z())&&p().width>260&&!s(yi)&&!(Ke.features.interactiveHideTime&&Ti)),Vn=h(()=>E()||e.showControls),tr=h(()=>!Z()&&!I()&&!!(At!=null&&At.length)&&s(ns)&&!s(zo)&&!s(yi)),Gi=h(()=>!L()||!!q()),Io=h(()=>$i&&Ji(k(),"m")),lt=ii({}),Xt=ii({}),gr=(0,km.debounceFn)(yl,260),Rn=(0,km.debounceFn)(Au,260);ze(()=>{p(),z(),gr(ti(),Ht,lt,e.showControls),Rn(ti(),Ei,Xt,e.showControls)});let hn=()=>oe.actions.internal.toggleChromecast();async function Oi(){ct!=null&&ct.isActive()?await(ct==null?void 0:ct.remove()):await(ct==null?void 0:ct.request())}function Nn(){(!X&&U()||Z())&&Ri.set(!1),Ns({isAudioDisabled:X,audioDisabledHintCallback:oi,isAudioAvailable:U(),audioIsNotExistHintCallback:Yt,isAds:Z()})&&rt()}let ko=j(""),Bn=(je,Vt)=>{if(!je){B(ko,F("tooltip_live"),!0);return}Vt&&Vt===Sl.PlaybackState.PAUSED&&B(ko,F("tooltip_play"),!0)};ze(()=>{Bn(s(Gi),l())});let Po=se();ze(()=>{G()&&ml(G(),E(),ot)}),ze(()=>{ku(di,re(),lt.playButton)});var On=Dy(),Dn=ve(On);{var ir=je=>{var Vt=Vy(),_i=ve(Vt);let yo;var po=A(_i,2);let Qo;var no=_(po);{var Go=Le=>{let ut=h(()=>U()&&!X&&Re());Mu(Le,{get muted(){return Ae()},get expanded(){return s(ut)},click:Nn,get ref(){return lt.volume},set ref(Gt){lt.volume=Gt}})};V(no,Le=>{(!U()||ce())&&!ae()&&Le(Go)})}g(po),tt(po,Le=>Xt.topLeft=Le,()=>Xt==null?void 0:Xt.topLeft);var Ao=A(po,2);let Yi;var bi=_(Ao);wi(bi,1,me,({iconUrl:Le,ariaLabel:ut,testId:Gt,onClick:xi,tooltip:ro})=>Le,(Le,ut)=>{let Gt=()=>s(ut).iconUrl,xi=()=>s(ut).ariaLabel,ro=()=>s(ut).testId,Zi=()=>s(ut).onClick,wr=()=>s(ut).tooltip,Sr=h(()=>{var so;return(so=xi())!=null?so:wr()});Sm(Le,{get iconUrl(){return Gt()},get ariaLabel(){return s(Sr)},get testId(){return ro()},get onClick(){return Zi()}})});var Yo=A(bi,2);{var dn=Le=>{Kd(Le,{get ref(){return lt.autoplayNextToggle},set ref(ut){lt.autoplayNextToggle=ut}})};V(Yo,Le=>{e.showAutoplayNext&&!Xe()&&!ue()&&Le(dn)})}var fo=A(Yo,2);{var yr=Le=>{Od(Le,{isMobile:!0,click:hn,get state(){return v()},get ref(){return lt.chromecast},set ref(ut){lt.chromecast=ut}})};V(fo,Le=>{s(An)&&Le(yr)})}var zr=A(fo,2);{var Wr=Le=>{Im(Le,{click:Oi,get isPictureInPictureActive(){return u()},get ref(){return lt.pip},set ref(ut){lt.pip=ut}})};V(zr,Le=>{s(sn)&&Le(Wr)})}var _n=A(zr,2);{var Hn=Le=>{bl(Le,{get ref$(){return Po}})};V(_n,Le=>{Ve()&&!te()&&Le(Hn)})}var rs=A(_n,2);{var xr=Le=>{Bd(Le,{get click(){return Rt},get targetUrl(){return qe()},get logoClickable(){return e.logoClickable},get ref(){return lt.vkLogo},set ref(ut){lt.vkLogo=ut}})};V(rs,Le=>{s(Ln)&&Le(xr)})}g(Ao),tt(Ao,Le=>Xt.topRight=Le,()=>Xt==null?void 0:Xt.topRight);var jo=A(Ao,2);let ji;var Fn=_(jo);{var ar=Le=>{let ut=h(()=>et.bind(null,!0));Ca(Le,{get click(){return s(ut)},type:"prev",isMobile:!0,get ref(){return lt.prevButton},set ref(Gt){lt.prevButton=Gt}})};V(Fn,Le=>{s(er)&&Le(ar)})}var qr=A(Fn,2);{var Kr=Le=>{wl(Le,{get disabled(){return s(nn)},get click(){return nt},isMobile:!0,get isPlaying(){return s(Br)},get ref(){return lt.playButton},set ref(ut){lt.playButton=ut}})};V(qr,Le=>{s(Jn)&&Le(Kr)})}var lr=A(qr,2);{var ss=Le=>{xl(Le,{get disabled(){return s(bo)},get click(){return nt},isMobile:!0,get ref(){return lt.replayButton},set ref(ut){lt.replayButton=ut}})};V(lr,Le=>{s(Xn)&&Le(ss)})}var we=A(lr,2);{var he=Le=>{let ut=h(()=>pt.bind(null,!0));Ca(Le,{get click(){return s(ut)},type:"next",isMobile:!0,get ref(){return lt.nextButton},set ref(Gt){lt.nextButton=Gt}})};V(we,Le=>{s(kn)&&Le(he)})}g(jo),tt(jo,Le=>Xt.middle=Le,()=>Xt==null?void 0:Xt.middle);var mt=A(jo,2);{var Mt=Le=>{var ut=Ly(),Gt=ve(ut);{var xi=so=>{var Ai=Py();let bn;Ai.__click=[Iy,uo,e,Uo];var Un=_(Ai);let Cr=h(()=>!e.showControls);qd(Un,{get hidden(){return s(Cr)},get disabled(){return s(uo)},get click(){return e.playPrevChapter},get ref(){return lt.playPrevChapterButton},set ref(xo){lt.playPrevChapterButton=xo}}),g(Ai),O(xo=>bn=J(Ai,1,"wrapper-middle-left svelte-9xcbwc",null,bn,xo),[()=>({fullscreen:Y(),hidden:!e.showControls})]),$(so,Ai)};V(Gt,so=>{Bi&&so(xi)})}var ro=A(Gt,2);{var Zi=so=>{var Ai=Ay();let bn;var Un=_(Ai);let Cr=h(()=>!e.showControls&&!N());Gd(Un,{get hidden(){return s(Cr)},get disabled(){return s(Eo)},get click(){return ai.toggle},get graphIsOpened(){return N()},get ref(){return lt.interactiveGraphButton},set ref(xo){lt.interactiveGraphButton=xo}}),g(Ai),O(xo=>bn=J(Ai,1,ld(Bi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",bn,xo),[()=>({fullscreen:Y(),hidden:!e.showControls&&!N()})]),$(so,Ai)};V(ro,so=>{s(Io)&&so(Zi)})}var wr=A(ro,2);{var Sr=so=>{var Ai=My();let bn;Ai.__click=[ky,gn,e,In];var Un=_(Ai);let Cr=h(()=>!e.showControls);Qd(Un,{get hidden(){return s(Cr)},get disabled(){return s(gn)},get click(){return e.seekToInteractive},get ref(){return lt.seekToInteractiveButton},set ref(xo){lt.seekToInteractiveButton=xo}}),g(Ai),O(xo=>bn=J(Ai,1,"wrapper-middle-right svelte-9xcbwc",null,bn,xo),[()=>({fullscreen:Y(),hidden:!e.showControls})]),$(so,Ai)};V(wr,so=>{yt&&so(Sr)})}$(Le,ut)};V(mt,Le=>{Ti&&!f()&&Le(Mt)})}O((Le,ut,Gt,xi)=>{yo=J(_i,1,"overlay-mobile svelte-9xcbwc",null,yo,Le),Qo=J(po,1,"wrapper-top-left svelte-9xcbwc",null,Qo,ut),Yi=J(Ao,1,"wrapper-top-right svelte-9xcbwc",null,Yi,Gt),ji=J(jo,1,"wrapper-middle svelte-9xcbwc",null,ji,xi)},[()=>({hidden:!s(Vn)}),()=>({hidden:!e.showControls,fullscreen:Y()}),()=>({hidden:!e.showControls&&!w(),fullscreen:Y()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(je,Vt)};V(Dn,je=>{Z()||je(ir)})}var hr=A(Dn,2);{var or=je=>{var Vt=By(),_i=ve(Vt);{var yo=Yi=>{var bi=Ry();let Yo;var dn=_(bi);Mu(dn,{get muted(){return Ae()},expanded:!1,click:Nn,get ref(){return lt.volume},set ref(fo){lt.volume=fo}}),g(bi),O(fo=>Yo=J(bi,1,"wrapper-top-right svelte-9xcbwc",null,Yo,fo),[()=>({fullscreen:Y()})]),$(Yi,bi)};V(_i,Yi=>{ce()&&Yi(yo)})}var po=A(_i,2);{var Qo=Yi=>{var bi=Ny(),Yo=_(bi);let dn=h(()=>!s(vr));wl(Yo,{get disabled(){return s(nn)},get click(){return nt},isMobile:!0,get isPlaying(){return s(dn)},get ref(){return lt.playButton},set ref(fo){lt.playButton=fo}}),g(bi),$(Yi,bi)};V(po,Yi=>{s(vr)&&Yi(Qo)})}var no=A(po,2);let Go;var Ao=_(no);Dd(Ao,{get position(){return Qe()},get duration(){return ee()}}),g(no),O(Yi=>Go=J(no,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Go,Yi),[()=>({fullscreen:Y()})]),$(je,Vt)};V(hr,je=>{Z()&&d()!=="inactive"&&je(or)})}var qo=A(hr,2);let Dr;var nr=_(qo);let _r;var an=_(nr);J(an,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var Zt=_(an),$o=_(Zt);{var br=je=>{Do(je,{get disabled(){return s(bo)},get ref(){return lt.replayButton},set ref(Vt){lt.replayButton=Vt},children:(Vt,_i)=>{xl(Vt,{get disabled(){return s(bo)},get click(){return Zn}})},$$slots:{default:!0}})};V($o,je=>{Ti&&je(br)})}var $r=A($o,2);{var Ko=je=>{Do(je,{get ref(){return lt.liveButton},set ref(Vt){lt.liveButton=Vt},children:(Vt,_i)=>{Yd(Vt,{get isLiveActive(){return s(Gi)},isMobile:!0,get ariaLabel(){return s(ko)}})},$$slots:{default:!0}})};V($r,je=>{!Z()&&I()&&je(Ko)})}var Ii=A($r,2);{var Hr=je=>{let Vt=h(()=>Z()?Qe():We()),_i=h(()=>Z()?ee():le());Ld(je,{get showDuration(){return s(Pn)},get position(){return s(Vt)},get duration(){return s(_i)},isMobile:!0,get ref(){return lt.time},set ref(yo){lt.time=yo}})};V(Ii,je=>{s(Or)&&je(Hr)})}var Fr=A(Ii,2);let Ur=h(()=>!s(tr));Do(Fr,{className:"w-max",get disabled(){return s(Ur)},get ref(){return lt.episodes},set ref(je){lt.episodes=je},children:(je,Vt)=>{var _i=Fe(),yo=ve(_i);{var po=Qo=>{var no=Oy(),Go=A(ve(no),2);Hd(Go,{get position(){return We()},get duration(){return le()},get timeCodes(){return At}}),$(Qo,no)};V(yo,Qo=>{s(tr)&&Qo(po)})}$(je,_i)},$$slots:{default:!0}}),g(Zt),tt(Zt,je=>Xt.bottomRight=je,()=>Xt==null?void 0:Xt.bottomRight);var rr=A(Zt,2),sr=_(rr);{var gt=je=>{Do(je,{get ref(){return lt.settings},set ref(Vt){lt.settings=Vt},children:(Vt,_i)=>{bl(Vt,{get ref$(){return Po}})},$$slots:{default:!0}})};V(sr,je=>{s(Mn)&&je(gt)})}var Kt=A(sr,2);{var hi=je=>{Do(je,{get ref(){return lt.fullscreen},set ref(Vt){lt.fullscreen=Vt},children:(Vt,_i)=>{Nd(Vt,{get click(){return e.toggleFullscreen},get isFullscreen(){return Y()}})},$$slots:{default:!0}})};V(Kt,je=>{s(Wo)&&je(hi)})}g(rr),tt(rr,je=>Xt.bottomRight=je,()=>Xt==null?void 0:Xt.bottomRight),g(an),tt(an,je=>$e(je),()=>$e());var ki=A(an,2);wa(ki,{get isAds(){return Z()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return L()},get ref(){return lt.timeline},set ref(je){lt.timeline=je}}),g(nr),g(qo),tt(qo,je=>pe(je),()=>pe());var Pi=A(qo,2);{var oo=je=>{zd(je,{get ref(){return lt.interactiveTimeIndicator},set ref(Vt){lt.interactiveTimeIndicator=Vt}})};V(Pi,je=>{Fo&&je(oo)})}O((je,Vt)=>{Dr=J(qo,1,"wrapper-bottom svelte-9xcbwc",null,Dr,je),_r=J(nr,1,"controls-wrapper svelte-9xcbwc",null,_r,Vt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:Y()})]),$(t,On),H(),o()}dt(["click"]);function jd(t,e){D(e,!0);let[i,o]=Be(),n=()=>S(T,"$isMobile",i),r=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),p=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),b=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,Am.noop),y=m(e,"onDisabledSeekToInteractiveClick",3,Am.noop),T=Ee().ui.isMobile,k=j(!1);Dt(()=>{let L=setTimeout(()=>B(k,!0),0);return()=>clearTimeout(L)});var P=Fe(),I=ve(P);{var E=L=>{var q=Fe(),z=ve(q);{var U=re=>{Pm(re,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return u()},get endScreenShown(){return b()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})},G=re=>{xm(re,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})};V(z,re=>{n()?re(U):re(G,!1)})}$(L,q)};V(I,L=>{s(k)&&L(E)})}$(t,P),H(),o()}var Fy=Ce('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Mm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}function Lm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Mm(t,{get style(){return s(o)}})}var Uy=Ce('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function Vm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}var zy=Ce('<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 Rm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=zy();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}function Lu(t,e){let i=m(e,"isOff",3,!1);var o=Fe(),n=ve(o);{var r=d=>{Rm(d,{})},l=d=>{Vm(d,{})};V(n,d=>{i()?d(r):d(l,!1)})}$(t,o)}var Wy=Ce('<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 Nm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Wy();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}function Bm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Nm(t,{get style(){return s(o)}})}var qy=Ce('<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 Om(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=qy();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),$(t,o)}function Dm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);Om(t,{get style(){return s(o)}})}var Ky=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Qy=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Gy=M("<div><!></div>"),Yy={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;
|
|
262
262
|
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"],
|
|
263
263
|
.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"],
|
|
264
264
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
|
|
@@ -273,23 +273,23 @@ Try switching the\xA0quality to\xA0Auto.`},Xh=F_;var gs=new Map;gs.set(ll.Interf
|
|
|
273
273
|
@keyframes svelte-1ad3n06-fadeOut {
|
|
274
274
|
0% {opacity:1;}
|
|
275
275
|
100% {opacity:0;}
|
|
276
|
-
}`};function
|
|
277
|
-
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function
|
|
276
|
+
}`};function Hm(t,e){D(e,!0),W(t,Yy);let[i,o]=Be(),n=()=>S(e.data,"$data",i),l=Ee().ui.t,d=h(()=>!n()),a=h(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),p=h(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),f=h(()=>{var C;return(C=n())==null?void 0:C.type}),v=h(()=>{var C,T;return(C=n())!=null&&C.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=Gy();let b;var w=_(u);{var y=C=>{var T=Qy(),k=ve(T),P=_(k);{var I=le=>{let pe=h(()=>s(f)==="FORWARD_SEEK");Lm(le,{get reversed(){return s(pe)}})};V(P,le=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(f))&&le(I)})}var E=A(P,2);{var L=le=>{_s(le,{})};V(E,le=>{s(f)==="PAUSE"&&le(L)})}var q=A(E,2);{var z=le=>{Rr(le,{})};V(q,le=>{s(f)==="PLAY"&&le(z)})}var U=A(q,2);{var G=le=>{Wd(le,{})};V(U,le=>{s(f)==="REPLAY"&&le(G)})}var re=A(U,2);{var Y=le=>{Lu(le,{isOff:!0})};V(re,le=>{s(f)==="SUBTITLES_OFF"&&le(Y)})}var ce=A(re,2);{var ae=le=>{Lu(le,{})};V(ce,le=>{s(f)==="SUBTITLES_ON"&&le(ae)})}var Ae=A(ce,2);{var Re=le=>{let pe=h(()=>s(f)==="RATE_UP");Bm(le,{get reversed(){return s(pe)}})};V(Ae,le=>{["RATE_DOWN","RATE_UP"].includes(s(f))&&le(Re)})}var me=A(Ae,2);{var ue=le=>{let pe=h(()=>s(f)==="EPISODE_NEXT");Dm(le,{get reversed(){return s(pe)}})};V(me,le=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(f))&&le(ue)})}var Ve=A(me,2);{var te=le=>{Os(le,{volume:0})};V(Ve,le=>{s(f)==="MUTE"&&le(te)})}var N=A(Ve,2);{var Qe=le=>{Os(le,{volume:1})};V(N,le=>{s(f)==="VOLUME"&&le(Qe)})}g(k);var ee=A(k,2);{var We=le=>{var pe=Ky(),$e=_(pe,!0);g(pe),O(()=>_e($e,s(v))),$(le,pe)};V(ee,le=>{s(v)&&le(We)})}$(C,T)};V(w,C=>{!s(d)&&s(f)&&C(y)})}g(u),O(C=>b=J(u,1,"hot-key-helpers-container svelte-1ad3n06",null,b,C),[()=>({hidden:s(d),"hot-key-helpers-container--left":s(a),"hot-key-helpers-container--right":s(p)})]),$(t,u),H(),o()}var jy=Ce('<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 Fm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=jy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var Zy=Ce('<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 Um(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}function Fs(t,e){D(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=h(()=>["up","down"].includes(i())),r=h(()=>["right","down"].includes(i())),l=h(()=>(()=>{let v="";return s(r)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Fe(),a=ve(d);{var p=v=>{let u=h(()=>s(r)?"chevron-icon--down":"chevron-icon--up");Fm(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})},f=v=>{let u=h(()=>s(r)?"chevron-icon--right":"chevron-icon--left");Um(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})};V(a,v=>{s(n)?v(p):v(f,!1)})}$(t,d),H()}var Xy=(t,e,i,o,n,r)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":r();break}},Jy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},e4=M('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),t4={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 Zd(t,e){D(e,!0),W(t,t4);let i=m(e,"isShifted",3,!1),o=Ee(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=F("aria_label_spherical_control");var v=e4();let u;v.__keydown=[Xy,n,r,l,a,d],v.__keyup=[Jy,n,p];var b=_(v),w=_(b),y=_(w);y.__mousedown=r,y.__mouseup=p;var C=_(y);Fs(C,{direction:"up",useBtnColor:!0}),g(y);var T=A(y,2);T.__mousedown=d,T.__mouseup=p;var k=_(T);Fs(k,{direction:"up",useBtnColor:!0}),g(T),g(w);var P=A(w,2),I=_(P);I.__mousedown=a,I.__mouseup=p;var E=_(I);Fs(E,{direction:"up",useBtnColor:!0}),g(I);var L=A(I,2);L.__mousedown=l,L.__mouseup=p;var q=_(L);Fs(q,{direction:"up",useBtnColor:!0}),g(L),g(P),g(b),g(v),O(z=>{u=J(v,1,"immersive-controls svelte-1yzc86r",null,u,z),Oe(v,"aria-label",f)},[()=>({"m-shifted":i()})]),Ct("mouseleave",y,p),Ct("mouseleave",T,p),Ct("mouseleave",I,p),Ct("mouseleave",L,p),$(t,v),H()}dt(["keydown","keyup","mousedown","mouseup"]);var $s=require("@vkontakte/videoplayer-shared/es2018");var z1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Vu=class{constructor(){this.flickeringTimeout=z1(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((n,{type:r,value:l},d)=>(o&&!d||(r==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var i4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),o4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),n4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),r4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),s4=M("<div><!></div>"),a4={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;
|
|
277
|
+
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function ka(t,e){D(e,!0),W(t,a4);let[i,o]=Be(),n=()=>S(v,"$currentSubtitle$",i),r=()=>S(b,"$isLive$",i),l=()=>S(w,"$isFullscreen",i),d=()=>S(u,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),p=Ee(),f=zt(),v=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,b=p.state.isLive$,w=p.ui.isFullscreen,y=h(()=>!!n().isAuto),C=h(()=>!!r()),T=h(()=>e.playerSize.width*.02),k=h(()=>a()&&!l()||s(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:s(T)),P=j(null);ze(()=>{var G,re,Y;(G=s(P))==null||G.setIsAuto(s(y)),(re=s(P))==null||re.setIsLive(s(C)),(Y=s(P))==null||Y.setCaptions(e.captions)});let I=j(ii([[]]));Dt(()=>{B(P,new Vu().subscribe(),!0);let G=s(P).captionsPrepared$.subscribe(re=>{B(I,re,!0)});return()=>{var re;(re=s(P))==null||re.destroy(),G.unsubscribe()}}),Dt(()=>{if(s(y)){let G=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(G)}}else u.set(!1)});let E=h(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var L=s4();let q;var z=_(L);{var U=G=>{var re=r4();let Y;var ce=_(re),ae=_(ce);{var Ae=me=>{var ue=i4(),Ve=_(ue),te=_(Ve,!0);g(Ve),g(ue),O(N=>{var Qe;at(Ve,`font-size: ${(Qe=s(k))!=null?Qe:""}px`),_e(te,N)},[()=>F("subtitles_auto_caption")]),$(me,ue)},Re=(me,ue)=>{{var Ve=N=>{var Qe=Fe(),ee=ve(Qe);wi(ee,17,()=>s(I),sd,(We,le)=>{var pe=o4(),$e=_(pe);wi($e,21,()=>s(le),({value:Z,timeAppeared:qe})=>qe,(Z,qe)=>{let Xe=()=>s(qe).value,Ie=()=>s(qe).timeAppeared;var oe=Fe(),Te=ve(oe);{var Ke=rt=>{var nt=Xr();O(()=>_e(nt,Xe())),$(rt,nt)};V(Te,rt=>{(!Ie()||Ie()<=e.position)&&rt(Ke)})}$(Z,oe)}),g($e),g(pe),O(()=>{var Z;return at($e,`font-size: ${(Z=s(k))!=null?Z:""}px`)}),$(We,pe)}),$(N,Qe)},te=N=>{var Qe=Fe(),ee=ve(Qe);wi(ee,17,()=>e.captions,({value:We})=>We,(We,le)=>{let pe=()=>s(le).value;var $e=n4(),Z=_($e),qe=_(Z,!0);g(Z),g($e),O(()=>{var Xe;at(Z,`font-size: ${(Xe=s(k))!=null?Xe:""}px`),_e(qe,pe())}),$(We,$e)}),$(N,Qe)};V(me,N=>{var Qe;s(y)&&((Qe=s(I))!=null&&Qe.length)?N(Ve):N(te,!1)},ue)}};V(ae,me=>{s(y)&&d()?me(Ae):me(Re,!1)})}g(ce),g(re),O(me=>{var ue;Y=J(re,1,"subtitles-caption svelte-c2x749",null,Y,me),at(re,`--subtitles-caption-margin: ${(ue=s(E))!=null?ue:""}%`)},[()=>({mobile:a()})]),$(G,re)};V(z,G=>{var re;(e.captions.length||(re=s(I))!=null&&re.length)&&G(U)})}g(L),O(G=>q=J(L,1,"subtitles-container svelte-c2x749",null,q,G),[()=>({shifted:e.shifted,auto:s(y)&&!s(C)&&!d()})]),$(t,L),H(),o()}var l4=M('<div class="text svelte-raurnb"> </div>'),d4=M('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),c4={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 Xd(t,e){D(e,!0),W(t,c4);let i=zt();var o=d4();let n;var r=A(_(o),2);{var l=d=>{var a=l4(),p=_(a);g(a),O(()=>{var f;return _e(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,a)};V(r,d=>{e.chromecastDeviceName&&d(l)})}g(o),O(d=>{n=J(o,1,"wrapper svelte-raurnb",null,n,d),at(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),H()}var u4=Ce('<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 zm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=u4();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var p4=M('<div class="container svelte-13zpvm8"><!></div>'),f4={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 Jd(t){W(t,f4);var e=p4(),i=_(e);zm(i,{}),g(e),$(t,e)}var m4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),v4=M("<div><!></div>"),g4={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,
|
|
278
278
|
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,
|
|
279
|
-
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
|
|
279
|
+
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 Pa(t,e){D(e,!0),W(t,g4);let i=m(e,"iconVisible",3,!0),o=Ee(),n=zt(),r=o.ui.startedByKeyboard$,l=F("tooltip_play"),d=b=>{var y;let w=b.code;["Enter","Space"].includes(w)&&(b.stopPropagation(),b.preventDefault(),r.set(!0),(y=e.startVideo)==null||y.call(e))},a=b=>{var w;b.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=v4();let f;p.__click=a;var v=_(p);{var u=b=>{var w=m4();w.__keydown=d;var y=A(_(w),2);Rr(y,{}),g(w),O(()=>Oe(w,"aria-label",l)),$(b,w)};V(v,b=>{i()&&b(u)})}return g(p),O(b=>{f=J(p,1,"container svelte-1ciju45",null,f,b),at(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,p),H({handlePressKey:d,handleClick:a})}dt(["click","keydown"]);var h4=M('<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(
|
|
280
280
|
0deg,
|
|
281
281
|
rgba(0, 0, 0, 0) 0%,
|
|
282
282
|
rgba(0, 0, 0, 0.02) 19%,
|
|
283
283
|
rgba(0, 0, 0, 0.1) 34%,
|
|
284
284
|
rgba(0, 0, 0, 0.4) 60%,
|
|
285
285
|
rgba(0, 0, 0, 0.6) 100%
|
|
286
|
-
);}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function zm(t,e){D(e,!0),W(t,_4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),r=j(void 0);Ot(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var $;p.propertyName==="transform"&&(($=e.onVisibilityChanged)==null||$.call(e,!o()))}return(v=s(r))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=s(r))==null?void 0:p.removeEventListener("transitionend",f)}});var l=h4();let d;var a=_(l),u=_(a,!0);g(a),ot(a,f=>n(f),()=>n()),g(l),ot(l,f=>B(r,f),()=>s(r)),O(f=>{d=J(l,1,"title svelte-14hk510",null,d,f),he(u,i())},[()=>({hidden:o()})]),b(t,l),H()}var b4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),$4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),y4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),x4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),w4=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),C4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function Wm(t,e){D(e,!0),W(t,C4);let i=j(""),o=j(""),n=j(""),r=j(""),l,d=P=>String(P).padStart(2,"0"),a=P=>{let I=Math.floor(P/86400);I&&(P-=I*86400,B(i,d(I),!0));let E=Math.floor(P/3600);B(o,d(E),!0);let L=Math.floor(P/60)%60;B(n,d(L),!0);let q=P%60;B(r,d(q),!0)},u=()=>{let P=Math.floor(Date.now()/1e3),I=e.startTime-P;a(I),I>=1?l=requestAnimationFrame(u):e.onTimerOver()};Ot(()=>{l=requestAnimationFrame(u)}),In(()=>{cancelAnimationFrame(l)});var f=w4(),v=_(f);{var p=P=>{var I=b4(),E=ve(I),L=_(E),q=_(L,!0);g(L);var z=A(L,2),U=_(z,!0);g(z),g(E);var G=A(E,2),re=_(G,!0);g(G),O((Y,ce)=>{he(q,s(i)),he(U,Y),he(re,ce)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(P,I)};V(v,P=>{s(i)&&P(p)})}var $=A(v,2);{var w=P=>{var I=$4(),E=ve(I),L=_(E),q=_(L,!0);g(L);var z=A(L,2),U=_(z,!0);g(z),g(E);var G=A(E,2),re=_(G,!0);g(G),O((Y,ce)=>{he(q,s(o)),he(U,Y),he(re,ce)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(P,I)};V($,P=>{s(o)&&P(w)})}var y=A($,2);{var S=P=>{var I=y4(),E=ve(I),L=_(E),q=_(L,!0);g(L);var z=A(L,2),U=_(z,!0);g(z),g(E);var G=A(E,2),re=_(G,!0);g(G),O((Y,ce)=>{he(q,s(n)),he(U,Y),he(re,ce)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(P,I)};V(y,P=>{s(n)&&P(S)})}var T=A(y,2);{var k=P=>{var I=x4(),E=_(I),L=_(E,!0);g(E);var q=A(E,2),z=_(q,!0);g(q),g(I),O(U=>{he(L,s(r)),he(z,U)},[()=>F("waiting_live_second_value")]),b(P,I)};V(T,P=>{s(r)&&P(k)})}g(f),b(t,f),H()}var S4=Ce('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function qm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=S4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(4),g(o),b(t,o)}var T4=M('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),E4=M('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),I4=M('<div class="waiting-container svelte-15pewff"><!></div>'),k4={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function ec(t,e){D(e,!0),W(t,k4);let i=j(!1);ze(()=>{B(i,e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3),!0)});var o=I4(),n=_(o);{var r=d=>{var a=T4(),u=_(a),f=_(u);qm(f,{}),g(u);var v=A(u,2),p=_(v,!0);g(v),g(a),O($=>he(p,$),[()=>F("waiting_live_upcoming_title")]),b(d,a)},l=d=>{var a=E4(),u=_(a),f=_(u,!0);g(u);var v=A(u,2);let p=h(()=>e.startTime||0);Wm(v,{get startTime(){return s(p)},onTimerOver:()=>B(i,!0)}),g(a),O($=>he(f,$),[()=>F("waiting_live_timer_title")]),b(d,a)};V(n,d=>{s(i)?d(r):d(l,!1)})}g(o),O(()=>st(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),b(t,o),H()}var P4=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),A4={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 Ma(t,e){D(e,!0),W(t,A4);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=h(()=>o[e.kind]||"");var r=P4(),l=_(r),d=_(l);$a(d,{style:"position: static; transform: translate(0, 0)"});var a=A(d,2),u=_(a,!0);g(a),g(l),g(r),O(()=>{st(r,`background-image: url('${i()}')`),he(u,s(n))}),b(t,r),H()}var M4=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function Km(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=M4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var L4=M('<div class="select-icon svelte-124aexk"><!></div>'),V4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function tc(t){W(t,V4);var e=L4(),i=_(e);Km(i,{}),g(e),b(t,e)}var R4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},N4=(t,e)=>{ml(t,()=>e.item.selectItem(e.item.value))},B4=M("<p> </p>"),O4=M('<p class="sublabel svelte-1t7rx2m"> </p>'),D4=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),H4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
|
|
286
|
+
);}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Wm(t,e){D(e,!0),W(t,_4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),r=j(void 0);Dt(()=>{var v;requestAnimationFrame(()=>{var u;(u=e.onVisibilityChanged)==null||u.call(e,!0)});function f(u){var b;u.propertyName==="transform"&&((b=e.onVisibilityChanged)==null||b.call(e,!o()))}return(v=s(r))==null||v.addEventListener("transitionend",f),()=>{var u;return(u=s(r))==null?void 0:u.removeEventListener("transitionend",f)}});var l=h4();let d;var a=_(l),p=_(a,!0);g(a),tt(a,f=>n(f),()=>n()),g(l),tt(l,f=>B(r,f),()=>s(r)),O(f=>{d=J(l,1,"title svelte-14hk510",null,d,f),_e(p,i())},[()=>({hidden:o()})]),$(t,l),H()}var b4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),$4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),y4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),x4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),w4=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),S4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function qm(t,e){D(e,!0),W(t,S4);let i=j(""),o=j(""),n=j(""),r=j(""),l,d=P=>String(P).padStart(2,"0"),a=P=>{let I=Math.floor(P/86400);I&&(P-=I*86400,B(i,d(I),!0));let E=Math.floor(P/3600);B(o,d(E),!0);let L=Math.floor(P/60)%60;B(n,d(L),!0);let q=P%60;B(r,d(q),!0)},p=()=>{let P=Math.floor(Date.now()/1e3),I=e.startTime-P;a(I),I>=1?l=requestAnimationFrame(p):e.onTimerOver()};Dt(()=>{l=requestAnimationFrame(p)}),Cn(()=>{cancelAnimationFrame(l)});var f=w4(),v=_(f);{var u=P=>{var I=b4(),E=ve(I),L=_(E),q=_(L,!0);g(L);var z=A(L,2),U=_(z,!0);g(z),g(E);var G=A(E,2),re=_(G,!0);g(G),O((Y,ce)=>{_e(q,s(i)),_e(U,Y),_e(re,ce)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),$(P,I)};V(v,P=>{s(i)&&P(u)})}var b=A(v,2);{var w=P=>{var I=$4(),E=ve(I),L=_(E),q=_(L,!0);g(L);var z=A(L,2),U=_(z,!0);g(z),g(E);var G=A(E,2),re=_(G,!0);g(G),O((Y,ce)=>{_e(q,s(o)),_e(U,Y),_e(re,ce)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),$(P,I)};V(b,P=>{s(o)&&P(w)})}var y=A(b,2);{var C=P=>{var I=y4(),E=ve(I),L=_(E),q=_(L,!0);g(L);var z=A(L,2),U=_(z,!0);g(z),g(E);var G=A(E,2),re=_(G,!0);g(G),O((Y,ce)=>{_e(q,s(n)),_e(U,Y),_e(re,ce)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),$(P,I)};V(y,P=>{s(n)&&P(C)})}var T=A(y,2);{var k=P=>{var I=x4(),E=_(I),L=_(E,!0);g(E);var q=A(E,2),z=_(q,!0);g(q),g(I),O(U=>{_e(L,s(r)),_e(z,U)},[()=>F("waiting_live_second_value")]),$(P,I)};V(T,P=>{s(r)&&P(k)})}g(f),$(t,f),H()}var C4=Ce('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function Km(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=C4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(4),g(o),$(t,o)}var T4=M('<div class="waiting svelte-63nfxp"><div class="waiting-icon svelte-63nfxp"><!></div> <span class="waiting__title svelte-63nfxp"> </span></div>'),E4=M('<div class="upcoming-timer timer svelte-63nfxp"><span class="timer__title svelte-63nfxp"> </span> <!></div>'),I4=M('<div class="waiting-container svelte-63nfxp"><!></div>'),k4={hash:"svelte-63nfxp",code:".waiting-container.svelte-63nfxp {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-63nfxp::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.waiting.svelte-63nfxp {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.waiting-icon.svelte-63nfxp {width:20%;max-width:200px;margin-bottom:20px;}.waiting__title.svelte-63nfxp {font-size:14px;line-height:1.2;font-weight:400;}.upcoming-timer.svelte-63nfxp {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-63nfxp {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-63nfxp {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function ec(t,e){D(e,!0),W(t,k4);let[i,o]=Be(),n=()=>S(e.playerSize,"$playerSize",i),r=h(()=>e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)),l=j(void 0),d=j(void 0);ze(()=>{e.playerSize&&n(),s(r)?requestAnimationFrame(()=>{var u,b;s(d)&&((u=e.onUpcomingLiveStateChanged)==null||u.call(e,s(d),!1)),s(d)&&((b=e.onWaitingLiveStateChanged)==null||b.call(e,s(d),!0))}):requestAnimationFrame(()=>{var u,b;s(d)&&((u=e.onUpcomingLiveStateChanged)==null||u.call(e,s(d),!0)),s(d)&&((b=e.onWaitingLiveStateChanged)==null||b.call(e,s(d),!1))})});var a=I4(),p=_(a);{var f=u=>{var b=T4(),w=_(b),y=_(w);Km(y,{}),g(w);var C=A(w,2),T=_(C,!0);g(C),g(b),tt(b,k=>B(l,k),()=>s(l)),O(k=>_e(T,k),[()=>F("waiting_live_upcoming_title")]),$(u,b)},v=u=>{var b=E4(),w=_(b),y=_(w,!0);g(w);var C=A(w,2);let T=h(()=>e.startTime||0);qm(C,{get startTime(){return s(T)},onTimerOver:()=>B(r,!0)}),g(b),tt(b,k=>B(d,k),()=>s(d)),O(k=>_e(y,k),[()=>F("waiting_live_timer_title")]),$(u,b)};V(p,u=>{s(r)?u(f):u(v,!1)})}g(a),O(()=>at(a,`background-image: url(${s(r)?"":e.thumbUrl})`)),$(t,a),H(),o()}var P4=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),A4={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 Aa(t,e){D(e,!0),W(t,A4);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=h(()=>o[e.kind]||"");var r=P4(),l=_(r),d=_(l);ba(d,{style:"position: static; transform: translate(0, 0)"});var a=A(d,2),p=_(a,!0);g(a),g(l),g(r),O(()=>{at(r,`background-image: url('${i()}')`),_e(p,s(n))}),$(t,r),H()}var M4=Ce('<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 Qm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=M4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var L4=M('<div class="select-icon svelte-124aexk"><!></div>'),V4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function tc(t){W(t,V4);var e=L4(),i=_(e);Qm(i,{}),g(e),$(t,e)}var R4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},N4=(t,e)=>{vl(t,()=>e.item.selectItem(e.item.value))},B4=M("<p> </p>"),O4=M('<p class="sublabel svelte-1t7rx2m"> </p>'),D4=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),H4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
|
|
287
287
|
|
|
288
288
|
/**
|
|
289
289
|
* \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
|
|
290
290
|
* \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
|
|
291
291
|
*/margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
|
|
292
|
-
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function
|
|
292
|
+
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Gm(t,e){D(e,!0),W(t,H4);let i=m(e,"isMobile",3,!1);var o=D4();let n;o.__click=[R4,e],o.__keydown=[N4,e];var r=_(o);{var l=w=>{tc(w,{})};V(r,w=>{e.item.selected&&w(l)})}var d=A(r,2);let a;var p=_(d);{var f=w=>{var y=Fe(),C=ve(y);Si(C,()=>e.item.valueComponent,(T,k)=>{k(T,ms(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),$(w,y)},v=w=>{var y=B4();let C;var T=_(y,!0);g(y),O(k=>{var P;C=J(y,1,"label svelte-1t7rx2m",null,C,k),_e(T,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),$(w,y)};V(p,w=>{e.item.valueComponent?w(f):w(v,!1)})}var u=A(p,2);{var b=w=>{var y=O4(),C=_(y,!0);g(y),O(()=>_e(C,e.item.sublabel)),$(w,y)};V(u,w=>{e.item.sublabel&&w(b)})}g(d),g(o),O((w,y,C)=>{n=J(o,1,"item",null,n,w),Oe(o,"data-value",e.item.value),Oe(o,"aria-label",y),Oe(o,"data-testid",e.item.dataTestid),a=J(d,1,"menu-item-value svelte-1t7rx2m",null,a,C),Oe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),H()}dt(["click","keydown"]);var F4=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Ym(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=h(()=>()=>e.openSubMenuList(e.item.children)),r=h(()=>y=>mu(y,s(n)));var l=F4();let d;l.__click=function(...y){var C;(C=s(n))==null||C.apply(this,y)},l.__keydown=function(...y){var C;(C=s(r))==null||C.apply(this,y)};var a=_(l);{var p=y=>{tc(y,{})};V(a,y=>{e.item.selected&&y(p)})}var f=A(a,2);let v;var u=_(f);{var b=y=>{var C=Fe();let T=h(()=>e.item.valueComponent);var k=ve(C);Si(k,()=>s(T),(P,I)=>{I(P,ms(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),$(y,C)},w=y=>{var C=Xr();O(()=>_e(C,e.item.label)),$(y,C)};V(u,y=>{e.item.valueComponent?y(b):y(w,!1)})}g(f),g(l),tt(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),O((y,C)=>{var T;d=J(l,1,"item",null,d,y),Oe(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Oe(l,"data-testid",e.item.id),v=J(f,1,"menu-item-value",null,v,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),H()}dt(["click","keydown"]);var Nr={"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 z4=(t,e)=>{u1(t,e.returnFromSubMenu,e.closeSettingsMenu)},W4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},q4=(t,e)=>{Sd(t)&&(mr(t),e.returnFromSubMenu())},K4=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),Q4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
|
|
293
293
|
/*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
|
|
294
294
|
/**
|
|
295
295
|
* \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
|
|
@@ -299,14 +299,14 @@ Try switching the\xA0quality to\xA0Auto.`},Xh=F_;var gs=new Map;gs.set(ll.Interf
|
|
|
299
299
|
var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
|
|
300
300
|
1px
|
|
301
301
|
);}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
|
|
302
|
-
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function jm(t,e){D(e,!0),W(t,Q4);let[i,o]=Be(),n=()=>C(v,"$isFullscreen",i),r=()=>C(p,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),u=m(e,"listRef",15);Ot(()=>{let Y=e.items.findIndex(ce=>ce.selected);u().children[Y+1].focus()});let f=Ee(),v=f.ui.isFullscreen,p=f.ui.playerSize,$=j(void 0),w=j(0),y=j(0),S=h(()=>l()&&n()?`max-height: ${Math.round(r().height*.6)}px`:l()?"":`max-height: ${r().height-32-s(y)-d()}px; overflow: auto;`),T=h(()=>Math.max(e.minWidth,s(w)));var k=K4();let P;var I=_(k);let E;I.__keydown=[z4,e];var L=_(I);let q;L.__click=[W4,e],L.__keydown=[q4,e];var z=_(L);zs(z,{direction:"left"});var U=A(z,2),G=_(U,!0);g(U),g(L),ot(L,Y=>B($,Y),()=>s($));var re=A(L,2);yi(re,17,()=>e.items,sd,(Y,ce)=>{var ae=He(),Ae=ve(ae);{var Ve=ue=>{Qm(ue,{get item(){return s(ce)},get isMobile(){return l()}})},me=(ue,Le)=>{{var te=N=>{Gm(N,{get isMobile(){return l()},get item(){return s(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(ue,N=>{s(ce).type==="OPEN_SUB_MENU"&&N(te)},Le)}};V(Ae,ue=>{s(ce).type==="SELECT_VALUE"?ue(Ve):ue(me,!1)})}b(Y,ae)}),g(I),ot(I,Y=>u(Y),()=>u()),g(k),O((Y,ce,ae)=>{P=J(k,1,"sub-menu menu svelte-7dfsuh",null,P,Y),Ne(k,"data-testid",`sub-menu-${e.id}`),st(k,`min-width: ${s(T)}px`),E=J(I,1,"items svelte-7dfsuh",null,E,ce),st(I,s(S)),q=J(L,1,"item header back svelte-7dfsuh",null,q,ae),Ne(L,"aria-label",a()),he(G,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),es(L,"clientWidth",Y=>B(w,Y)),es(L,"clientHeight",Y=>B(y,Y)),b(t,k),H(),o()}lt(["keydown","click"]);var W1=require("@vkontakte/videoplayer-shared/es2018");var G4=(t,e)=>mu(t,e()),Y4=(t,e)=>{t.stopPropagation(),e()()},j4=M('<div class="value svelte-1ikfjte"> </div>'),Z4=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),X4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Zm(t,e){D(e,!0),W(t,X4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,W1.noop),n=m(e,"valueComponent",3,void 0),r=m(e,"ref",15);var l=Z4();let d;l.__click=[Y4,o],l.__keydown=[G4,o];var a=_(l),u=_(a);{var f=T=>{Ea(T,{get icon(){return e.icon}})},v=T=>{var k=He();let P=h(()=>e.icon);var I=ve(k);xi(I,()=>s(P),(E,L)=>{L(E,{})}),b(T,k)};V(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var p=A(a,2),$=_(p,!0);g(p);var w=A(p,2);{var y=T=>{var k=He();let P=h(n);var I=ve(k);xi(I,()=>s(P),(E,L)=>{L(E,{})}),b(T,k)},S=T=>{var k=j4(),P=_(k,!0);g(k),O(()=>he(P,e.value)),b(T,k)};V(w,T=>{n()?T(y):T(S,!1)})}g(l),ot(l,T=>r(T),()=>r()),O(T=>{d=J(l,1,"item",null,d,T),Ne(l,"aria-label",e.ariaLabel),Ne(l,"data-testid",e.id),he($,e.label)},[()=>({mobile:i()})]),b(t,l),H()}lt(["click","keydown"]);var Xm=require("@vkontakte/videoplayer-shared/es2018");var J4=(t,e)=>{ml(t,()=>e())},e3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),t3=M('<img class="icon" aria-hidden="true"/>'),i3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),o3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Jm(t,e){D(e,!0),W(t,o3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Xm.noop),n=m(e,"closeSettings",3,Xm.noop),r=j(!1),l=()=>{B(r,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=i3();let u;a.__click=d,a.__keydown=[J4,d];var f=_(a),v=_(f);{var p=S=>{var T=He(),k=ve(T);{var P=E=>{var L=e3();b(E,L)},I=E=>{var L=t3();O(()=>Ne(L,"src",e.icon)),Ct("error",L,l),oa(L),b(E,L)};V(k,E=>{s(r)?E(P):E(I,!1)})}b(S,T)},$=S=>{var T=He();let k=h(()=>e.icon);var P=ve(T);xi(P,()=>s(k),(I,E)=>{E(I,{})}),b(S,T)};V(v,S=>{typeof e.icon=="string"?S(p):S($,!1)})}g(f);var w=A(f,2),y=_(w,!0);g(w),g(a),O(S=>{var T;u=J(a,1,"item",null,u,S),Ne(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ne(a,"data-testid",e.id),he(y,e.label)},[()=>({mobile:i()})]),b(t,a),H()}lt(["click","keydown"]);var q1=require("@vkontakte/videoplayer-shared/es2018");var n3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),r3={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 ev(t,e){W(t,r3);let i=m(e,"enabled",3,!1);var o=n3(),n=_(o);let r;we(2),g(o),O(l=>r=J(n,1,"toggle svelte-17wbjko",null,r,l),[()=>({on:i()})]),b(t,o)}var s3=(t,e,i)=>{u1(t,e(),o=>i()(o))},a3=(t,e,i)=>{t.stopPropagation(),e()(!i())},l3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),d3=M('<li role="menuitem" tabindex="0"><!></li>');function tv(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,q1.noop),n=m(e,"enabled",3,!1),r=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=d3();let a;d.__click=[a3,o,n],d.__keydown=[s3,n,o];var u=_(d);xa(u,{get content(){return r()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=l3();let $;var w=_(p),y=_(w);{var S=E=>{Ea(E,{get icon(){return e.icon}})},T=E=>{var L=He();let q=h(()=>e.icon);var z=ve(L);xi(z,()=>s(q),(U,G)=>{G(U,{})}),b(E,L)};V(y,E=>{typeof e.icon=="string"?E(S):E(T,!1)})}g(w);var k=A(w,2),P=_(k,!0);g(k);var I=A(k,2);ev(I,{get enabled(){return n()}}),g(p),O(E=>{$=J(p,1,"switch-wrapper",null,$,E),he(P,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),g(d),O(f=>{var v;a=J(d,1,"item switch-item",null,a,f),Ne(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Ne(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),H()}lt(["click","keydown"]);var oc=require("@vkontakte/videoplayer-shared/es2018");var K1=()=>{let t=j(oi([])),e=h(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{B(t,s(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var c3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),u3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),p3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function La(t,e){D(e,!0),W(t,p3);let i=m(e,"isSubCase",3,!1),o=h(()=>_u(e.quality));var n=u3(),r=_(n);let l;var d=_(r,!0);g(r);var a=A(r,2);{var u=f=>{var v=c3();let p=h(()=>s(o));var $=_(v);xi($,()=>s(p),(w,y)=>{y(w,{})}),g(v),b(f,v)};V(a,f=>{s(o)&&!e.isMobile&&f(u)})}g(n),O(f=>{l=J(r,1,"svelte-t2qk8t",null,l,f),he(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),H()}var j1=require("@vkontakte/videoplayer-shared/es2018");var iv=require("@vkontakte/videoplayer-core/es2018");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===iv.VideoQuality.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},Y1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===iv.VideoQuality.INVARIANT?i:`${i}${Q1({quality:t,availableQualities:e})}`:"...";var f3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),m3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Cl(t,e){D(e,!0),W(t,m3);let[i,o]=Be(),n=()=>C(a,"$currentQuality$",i),r=()=>C(u,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ee(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=h(()=>e.prefix+(e.selected&&n()!==j1.VideoQuality.INVARIANT?v:"")),$=h(()=>Y1({prefix:s(p),quality:n(),availableQualities:r(),onlyPrefix:!e.selected}));var w=f3(),y=_(w);let S=h(()=>e.selected?n():void 0);La(y,{get quality(){return s(S)},get label(){return s($)},get isMobile(){return l()},isSubCase:!0}),g(w),b(t,w),H(),o()}var v3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",r=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${r}`,"g")},g3={br:!0,span:!0},ov=(t,e={})=>{var d,a,u,f,v,p,$;if(!t)return t;let i={...g3,...e},o=Object.keys(i);if(!o.length)return t;let n=v3(o),r=[],l=0;for(let w of t.matchAll(n)){let y=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[S]){r.push(t.slice(l,T)),l=T+y.length;continue}let k=(v=w.groups)!=null&&v.childrenhtml?ov(w.groups.childrenhtml,i):"",P=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>k||""):y;r.push(t.slice(l,T),P),l=T+y.length}return l===0?t:(r.push(t.slice(l)),r.join(""))};function ic(t,e){D(e,!1);let i=m(e,"message",8),o=ov(i());Lr();var n=He(),r=ve(n);{var l=d=>{var a=He(),u=ve(a);ad(u,()=>o),b(d,a)};V(r,d=>{o&&d(l)})}b(t,n),H()}var h3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),_3={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function nv(t,e){D(e,!1),W(t,_3),Lr();var i=h3(),o=_(i);let n=kr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));ic(o,{get message(){return s(n)}}),g(i),b(t,i),H()}var X1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Cl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},rv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?Cl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),J1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:nv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),sv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?Cl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),av=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:F("traffic_saving_quality"),valueComponent:t?Cl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var Ru=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Nu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Tu(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let a=Ru(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Ru(t,d);return F("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Ru(t,d);return F("audio_stream_display_language_index",{language:n,index:a})}}let r=Ru(t,e);return F("audio_stream_display_unknown",{index:r})};var b3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:rv,selected:e&&!o&&!n||!1}),r.push({handler:av,selected:o},{handler:sv,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[J1(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),X1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:La,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:rv,selected:((i=nu())==null?void 0:i.type)==="auto_quality"},{handler:av,selected:((o=nu())==null?void 0:o.type)==="traffic_saving"},{handler:sv,selected:((n=nu())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Nu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Iu?"sub_off":void 0}))})},e0=({subMenuId:t,context:e})=>t?[b3[t](e)]:[];var $3=Ce('<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 lv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=$3();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var y3=Ce('<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 dv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=y3();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var x3=Ce('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function cv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=x3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var w3=Ce('<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 uv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=w3();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var C3=Ce('<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 pv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=C3();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var S3=Ce('<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 Bu(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=S3();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var T3=Ce('<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 fv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=T3();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var E3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),I3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function mv(t,e){D(e,!0),W(t,I3);let[i,o]=Be(),n=()=>C(u,"$currentQuality$",i),r=()=>C(f,"$availableQualities$",i),l=()=>C(v,"$isAutoQualityEnabled$",i),d=()=>C(p,"$isMobile$",i),a=Ee(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,$=h(()=>G1({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var w=E3(),y=_(w);La(y,{get quality(){return n()},get label(){return s($)},get isMobile(){return d()}}),g(w),b(t,w),H(),o()}var P3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:Ad,label:F("menu_quality"),value:e,valueComponent:mv,weight:Or["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Or["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:lv,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Nu(t,e);return{id:"AUDIO_LANGUAGES",weight:Or["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:dv,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Or["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:cv,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Or["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Md,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Or.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:uv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Or.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:pv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Or["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:Bu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Or["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:Bu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Or["debug-info"],type:"CLICK",onClick:t,ariaLabel:F("aria_label_menu_debug_overlay"),label:F("menu_debug_overlay"),icon:fv,isHiddenFor:["desktop"]})},t0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>P3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var r,l,d;return!((r=n==null?void 0:n.isHiddenFor)!=null&&r.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ha)};var M3=(t,e)=>{fu(t,e)},L3=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),V3=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),R3=M("<div><!> <!></div>"),N3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
|
|
302
|
+
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Zm(t,e){D(e,!0),W(t,Q4);let[i,o]=Be(),n=()=>S(v,"$isFullscreen",i),r=()=>S(u,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),p=m(e,"listRef",15);Dt(()=>{let Y=e.items.findIndex(ce=>ce.selected);p().children[Y+1].focus()});let f=Ee(),v=f.ui.isFullscreen,u=f.ui.playerSize,b=j(void 0),w=j(0),y=j(0),C=h(()=>l()&&n()?`max-height: ${Math.round(r().height*.6)}px`:l()?"":`max-height: ${r().height-32-s(y)-d()}px; overflow: auto;`),T=h(()=>Math.max(e.minWidth,s(w)));var k=K4();let P;var I=_(k);let E;I.__keydown=[z4,e];var L=_(I);let q;L.__click=[W4,e],L.__keydown=[q4,e];var z=_(L);Fs(z,{direction:"left"});var U=A(z,2),G=_(U,!0);g(U),g(L),tt(L,Y=>B(b,Y),()=>s(b));var re=A(L,2);wi(re,17,()=>e.items,sd,(Y,ce)=>{var ae=Fe(),Ae=ve(ae);{var Re=ue=>{Gm(ue,{get item(){return s(ce)},get isMobile(){return l()}})},me=(ue,Ve)=>{{var te=N=>{Ym(N,{get isMobile(){return l()},get item(){return s(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(ue,N=>{s(ce).type==="OPEN_SUB_MENU"&&N(te)},Ve)}};V(Ae,ue=>{s(ce).type==="SELECT_VALUE"?ue(Re):ue(me,!1)})}$(Y,ae)}),g(I),tt(I,Y=>p(Y),()=>p()),g(k),O((Y,ce,ae)=>{P=J(k,1,"sub-menu menu svelte-7dfsuh",null,P,Y),Oe(k,"data-testid",`sub-menu-${e.id}`),at(k,`min-width: ${s(T)}px`),E=J(I,1,"items svelte-7dfsuh",null,E,ce),at(I,s(C)),q=J(L,1,"item header back svelte-7dfsuh",null,q,ae),Oe(L,"aria-label",a()),_e(G,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Jr(L,"clientWidth",Y=>B(w,Y)),Jr(L,"clientHeight",Y=>B(y,Y)),$(t,k),H(),o()}dt(["keydown","click"]);var q1=require("@vkontakte/videoplayer-shared/es2018");var G4=(t,e)=>mu(t,e()),Y4=(t,e)=>{t.stopPropagation(),e()()},j4=M('<div class="value svelte-1ikfjte"> </div>'),Z4=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),X4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Xm(t,e){D(e,!0),W(t,X4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,q1.noop),n=m(e,"valueComponent",3,void 0),r=m(e,"ref",15);var l=Z4();let d;l.__click=[Y4,o],l.__keydown=[G4,o];var a=_(l),p=_(a);{var f=T=>{Ta(T,{get icon(){return e.icon}})},v=T=>{var k=Fe();let P=h(()=>e.icon);var I=ve(k);Si(I,()=>s(P),(E,L)=>{L(E,{})}),$(T,k)};V(p,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var u=A(a,2),b=_(u,!0);g(u);var w=A(u,2);{var y=T=>{var k=Fe();let P=h(n);var I=ve(k);Si(I,()=>s(P),(E,L)=>{L(E,{})}),$(T,k)},C=T=>{var k=j4(),P=_(k,!0);g(k),O(()=>_e(P,e.value)),$(T,k)};V(w,T=>{n()?T(y):T(C,!1)})}g(l),tt(l,T=>r(T),()=>r()),O(T=>{d=J(l,1,"item",null,d,T),Oe(l,"aria-label",e.ariaLabel),Oe(l,"data-testid",e.id),_e(b,e.label)},[()=>({mobile:i()})]),$(t,l),H()}dt(["click","keydown"]);var Jm=require("@vkontakte/videoplayer-shared/es2018");var J4=(t,e)=>{vl(t,()=>e())},e3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),t3=M('<img class="icon" aria-hidden="true"/>'),i3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),o3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function ev(t,e){D(e,!0),W(t,o3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Jm.noop),n=m(e,"closeSettings",3,Jm.noop),r=j(!1),l=()=>{B(r,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var a=i3();let p;a.__click=d,a.__keydown=[J4,d];var f=_(a),v=_(f);{var u=C=>{var T=Fe(),k=ve(T);{var P=E=>{var L=e3();$(E,L)},I=E=>{var L=t3();O(()=>Oe(L,"src",e.icon)),Ct("error",L,l),ia(L),$(E,L)};V(k,E=>{s(r)?E(P):E(I,!1)})}$(C,T)},b=C=>{var T=Fe();let k=h(()=>e.icon);var P=ve(T);Si(P,()=>s(k),(I,E)=>{E(I,{})}),$(C,T)};V(v,C=>{typeof e.icon=="string"?C(u):C(b,!1)})}g(f);var w=A(f,2),y=_(w,!0);g(w),g(a),O(C=>{var T;p=J(a,1,"item",null,p,C),Oe(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Oe(a,"data-testid",e.id),_e(y,e.label)},[()=>({mobile:i()})]),$(t,a),H()}dt(["click","keydown"]);var K1=require("@vkontakte/videoplayer-shared/es2018");var n3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),r3={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 tv(t,e){W(t,r3);let i=m(e,"enabled",3,!1);var o=n3(),n=_(o);let r;Se(2),g(o),O(l=>r=J(n,1,"toggle svelte-17wbjko",null,r,l),[()=>({on:i()})]),$(t,o)}var s3=(t,e,i)=>{p1(t,e(),o=>i()(o))},a3=(t,e,i)=>{t.stopPropagation(),e()(!i())},l3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),d3=M('<li role="menuitem" tabindex="0"><!></li>');function iv(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,K1.noop),n=m(e,"enabled",3,!1),r=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=d3();let a;d.__click=[a3,o,n],d.__keydown=[s3,n,o];var p=_(d);ya(p,{get content(){return r()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var u=l3();let b;var w=_(u),y=_(w);{var C=E=>{Ta(E,{get icon(){return e.icon}})},T=E=>{var L=Fe();let q=h(()=>e.icon);var z=ve(L);Si(z,()=>s(q),(U,G)=>{G(U,{})}),$(E,L)};V(y,E=>{typeof e.icon=="string"?E(C):E(T,!1)})}g(w);var k=A(w,2),P=_(k,!0);g(k);var I=A(k,2);tv(I,{get enabled(){return n()}}),g(u),O(E=>{b=J(u,1,"switch-wrapper",null,b,E),_e(P,e.label)},[()=>({mobile:i()})]),$(f,u)},$$slots:{default:!0}}),g(d),O(f=>{var v;a=J(d,1,"item switch-item",null,a,f),Oe(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Oe(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),H()}dt(["click","keydown"]);var oc=require("@vkontakte/videoplayer-shared/es2018");var Q1=()=>{let t=j(ii([])),e=h(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{B(t,s(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var c3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),u3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),p3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Ma(t,e){D(e,!0),W(t,p3);let i=m(e,"isSubCase",3,!1),o=h(()=>_u(e.quality));var n=u3(),r=_(n);let l;var d=_(r,!0);g(r);var a=A(r,2);{var p=f=>{var v=c3();let u=h(()=>s(o));var b=_(v);Si(b,()=>s(u),(w,y)=>{y(w,{})}),g(v),$(f,v)};V(a,f=>{s(o)&&!e.isMobile&&f(p)})}g(n),O(f=>{l=J(r,1,"svelte-t2qk8t",null,l,f),_e(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),H()}var Z1=require("@vkontakte/videoplayer-shared/es2018");var ov=require("@vkontakte/videoplayer-core/es2018");var G1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Y1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=G1({quality:t,availableQualities:e});return i?t===ov.VideoQuality.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},j1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===ov.VideoQuality.INVARIANT?i:`${i}${G1({quality:t,availableQualities:e})}`:"...";var f3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),m3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Cl(t,e){D(e,!0),W(t,m3);let[i,o]=Be(),n=()=>S(a,"$currentQuality$",i),r=()=>S(p,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=Ee(),a=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",u=h(()=>e.prefix+(e.selected&&n()!==Z1.VideoQuality.INVARIANT?v:"")),b=h(()=>j1({prefix:s(u),quality:n(),availableQualities:r(),onlyPrefix:!e.selected}));var w=f3(),y=_(w);let C=h(()=>e.selected?n():void 0);Ma(y,{get quality(){return s(C)},get label(){return s(b)},get isMobile(){return l()},isSubCase:!0}),g(w),$(t,w),H(),o()}var v3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",r=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${r}`,"g")},g3={br:!0,span:!0},nv=(t,e={})=>{var d,a,p,f,v,u,b;if(!t)return t;let i={...g3,...e},o=Object.keys(i);if(!o.length)return t;let n=v3(o),r=[],l=0;for(let w of t.matchAll(n)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){r.push(t.slice(l,T)),l=T+y.length;continue}let k=(v=w.groups)!=null&&v.childrenhtml?nv(w.groups.childrenhtml,i):"",P=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp((b=w.groups)==null?void 0:b.childrenhtml),()=>k||""):y;r.push(t.slice(l,T),P),l=T+y.length}return l===0?t:(r.push(t.slice(l)),r.join(""))};function ic(t,e){D(e,!1);let i=m(e,"message",8),o=nv(i());Mr();var n=Fe(),r=ve(n);{var l=d=>{var a=Fe(),p=ve(a);ad(p,()=>o),$(d,a)};V(r,d=>{o&&d(l)})}$(t,n),H()}var h3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),_3={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function rv(t,e){D(e,!1),W(t,_3),Mr();var i=h3(),o=_(i);let n=Ir(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));ic(o,{get message(){return s(n)}}),g(i),$(t,i),H()}var J1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Cl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},sv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?Cl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),e0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:rv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),av=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?Cl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),lv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:F("traffic_saving_quality"),valueComponent:t?Cl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var Ru=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Nu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Tu(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let a=Ru(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Ru(t,d);return F("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Ru(t,d);return F("audio_stream_display_language_index",{language:n,index:a})}}let r=Ru(t,e);return F("audio_stream_display_unknown",{index:r})};var b3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:sv,selected:e&&!o&&!n||!1}),r.push({handler:lv,selected:o},{handler:av,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[e0(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),J1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ma,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:sv,selected:((i=nu())==null?void 0:i.type)==="auto_quality"},{handler:lv,selected:((o=nu())==null?void 0:o.type)==="traffic_saving"},{handler:av,selected:((n=nu())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Nu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Iu?"sub_off":void 0}))})},t0=({subMenuId:t,context:e})=>t?[b3[t](e)]:[];var $3=Ce('<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 dv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=$3();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var y3=Ce('<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 cv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=y3();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var x3=Ce('<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 uv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=x3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var w3=Ce('<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 pv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=w3();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var S3=Ce('<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 fv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=S3();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var C3=Ce('<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 Bu(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=C3();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var T3=Ce('<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 mv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=T3();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var E3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),I3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function vv(t,e){D(e,!0),W(t,I3);let[i,o]=Be(),n=()=>S(p,"$currentQuality$",i),r=()=>S(f,"$availableQualities$",i),l=()=>S(v,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),a=Ee(),p=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,u=a.ui.isMobile,b=h(()=>Y1({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var w=E3(),y=_(w);Ma(y,{get quality(){return n()},get label(){return s(b)},get isMobile(){return d()}}),g(w),$(t,w),H(),o()}var P3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:Ad,label:F("menu_quality"),value:e,valueComponent:vv,weight:Nr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Nr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:dv,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Nu(t,e);return{id:"AUDIO_LANGUAGES",weight:Nr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:cv,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Nr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:uv,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Nr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Md,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Nr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:pv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Nr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:fv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Nr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:Bu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Nr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:Bu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Nr["debug-info"],type:"CLICK",onClick:t,ariaLabel:F("aria_label_menu_debug_overlay"),label:F("menu_debug_overlay"),icon:mv,isHiddenFor:["desktop"]})},i0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>P3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var r,l,d;return!((r=n==null?void 0:n.isHiddenFor)!=null&&r.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ga)};var M3=(t,e)=>{fu(t,e)},L3=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),V3=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),R3=M("<div><!> <!></div>"),N3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
|
|
303
303
|
/* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
|
|
304
304
|
.settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
|
|
305
305
|
.settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
|
|
306
|
-
.settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function nc(t,e){D(e,!0),W(t,N3);let[i,o]=Be(),n=()=>
|
|
306
|
+
.settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function nc(t,e){D(e,!0),W(t,N3);let[i,o]=Be(),n=()=>S(qe,"$settingsMenuVisible",i),r=()=>S(Xe,"$settingsMenuOpenedByKeyboard",i),l=()=>S(et,"$debugPanelVisible",i),d=()=>S(oe,"$isMobile",i),a=()=>S(Rt,"$playerSize",i),p=()=>S(Z,"$hasMpegSources$",i),f=()=>S(Te,"$mobileNotReportControlHidden$",i),v=()=>S(te,"$autoQualityLimitingAvailable$",i),u=()=>S(pe,"$availableSubtitlesList$",i),b=()=>S(Ke,"$isLiveWithPlaybackSpeed",i),w=()=>S(me,"$availableAudioStreams$",i),y=()=>S(We,"$availablePlaybackRates$",i),C=()=>S(Re,"$currentAudioStream$",i),T=()=>S(ee,"$currentPlaybackRate$",i),k=()=>S(rt,"$trafficSavingEnabled",i),P=()=>S(ue,"$currentQuality$",i),I=()=>S(N,"$isAutoQualityEnabled$",i),E=()=>S(le,"$currentSubtitle$",i),L=()=>S(Yt,"$additionalSettingsMenuItems$",i),q=()=>S(Qe,"$isAutoQualityAvailable$",i),z=()=>S(Ve,"$availableQualities$",i),U=()=>S(nt,"$highQualityEnabled",i),G=m(e,"ref",15,void 0),re=m(e,"playerControlsHeight",3,0),Y=ii({}),ce=ii({}),ae=Ee(),Ae=zt(),Re=ae.state.audioStream$,me=ae.state.availableAudioStreams$,ue=ae.state.currentQuality$,Ve=ae.state.availableQualities$,te=ae.state.autoQualityLimitingAvailable$,N=ae.state.isAutoQualityEnabled$,Qe=ae.state.isAutoQualityAvailable$,ee=ae.state.currentPlaybackRate$,We=ae.state.availablePlaybackRates$,le=ae.state.currentSubtitle$,pe=ae.state.availableSubtitlesList$,$e=ae.state.canDownload,Z=ae.state.hasMpegSources$,qe=ae.ui.settingsMenu.visible$,Xe=ae.ui.settingsMenu.openedByBtnKeyboard$,Ie=ae.ui.settingsMenu.ref$,oe=ae.ui.isMobile,Te=ae.ui.mobileNotReportControlHidden$,Ke=ae.state.canChangePlaybackSpeed$,rt=ae.state.trafficSavingEnabled$,nt=ae.state.highQualityEnabled$,Rt=ae.ui.playerSize,et=ae.ui.debugPanelVisible,pt=ae.state.isInteractiveTime$,Yt=ae.ui.additionalSettingsMenuItems$,oi=ae.ui.t,Qt=ae.actions.internal.downloadVideo,Tt=ae.actions.internal.closeSettingsMenu,ie=ae.actions.internal.openSettingsSubMenu,Nt=ae.actions.internal.closeSettingsSubMenu,ge=j(!1),X=j(void 0),xe=Q1();ze(()=>{!n()&&xe.current&&(Nt(ce[xe.current]),xe.popAllSubMenus())}),ze(()=>{n()||B(X,void 0)}),ze(()=>{!xe.current&&s(X)&&c1(Y,s(X))}),ze(()=>{G()&&Ie.set(G())});async function He(it){var Qi;xe.pushSubMenu(it),await So(),ie(it,ce[it]);let kt=(Qi=G())==null?void 0:Qi.firstElementChild;kt&&Cf(kt)}function fe(it){var kt;it==null||it.stopPropagation(),r()||(kt=e.returnFocus)==null||kt.call(e),Tt(),B(ge,!1)}function Ne(it,kt){ae.actions.internal.setQuality(it,{appliesTo:kt}),fe()}function Je(it){ae.actions.internal.setAudioStream(it),fe()}function Ue(it,kt){ae.actions.internal.setTrafficSavingEnabled(it,kt),Ae.features.qualityDetailsSubMenuEnabled&&fe()}function Lt(it,kt){ae.actions.internal.setHighQualityEnabled(it,kt),fe()}function Et(it){ae.actions.internal.setPlaybackRate(it),fe()}function St(it){ae.actions.internal.setSubtitle(it),fe()}function _t(){Qt()}function Ri(){(0,oc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),ae.actions.internal.reportProblem(),ae.actions.internal.pause()}function ci(){fl(ae.actions.internal.getDebugTextData())}let ot=()=>{let it=ae.actions.internal.getTraceTextData(),kt=new Blob([...it],{type:"application/json"}),Qi=window.URL.createObjectURL(kt);ca(Qi,"vk_player_trace_info","json")};function Ht(){et.set(!l())}function fi(){B(ge,!0)}function qi(){B(ge,!1)}function ho(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-re()}px; overflow: auto;`}let Ki=h(()=>$e&&p()&&!f()),jt=h(()=>Ae.features.trafficSaving&&!f()&&v()&&!Ae.features.qualityDetailsSubMenuEnabled),_o=h(()=>u().length>0&&!f()),At=h(()=>!!b()&&!f()),ct=h(()=>Ae.features.audioLanguages&&w().length>=2&&!f()),mi=h(()=>!f());Dt(()=>pt.subscribe(it=>{it&&!d()&&!s(ge)&&!r()&&fe()}));let Q=h(()=>{let it=[s(mi)&&"QUALITY_SETTINGS",s(ct)&&"AUDIO_LANGUAGES",s(At)&&"PLAYBACK_RATE",s(_o)&&"SUBTITLES",s(jt)&&"TRAFFIC_SAVING_SWITCH",s(Ki)&&"DOWNLOAD",Ae.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ae.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(kt=>!!kt);return i0({items:it,context:{qualityDetailsSubMenuEnabled:Ae.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Et,trafficSavingEnabled:k(),toggleTrafficSaving:Ue,currentQuality:P()||oc.VideoQuality.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:_t,onCopyDataClick:ci,onReportProblemClick:Ri,onSaveTraceDataClick:ot,toggleShowDebugInfo:Ht},additionalSettingsMenuItems:L()})}),qt=h(()=>t0({subMenuId:xe.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Et,trafficSavingEnabled:k(),toggleTrafficSaving:Ue,currentQuality:P()||oc.VideoQuality.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:q()||!1,availableQualities:z(),highQualityEnabled:U(),toggleHighQuality:Lt,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Tt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Je,selectQuality:Ne,selectSubtitle:St}}));var di=R3();let Ni;var si=_(di);{var ui=it=>{var kt=V3();let Qi;kt.__keydown=[M3,Tt];var ti=_(kt);{var Zn=$i=>{var yt=L3();let Bi;var Fo=_(yt),En=_(Fo,!0);g(Fo);var ai=A(Fo,2);ai.__click=fe,g(yt),O((Ei,Uo)=>{Bi=J(yt,1,"item header svelte-17or3al",null,Bi,Ei),_e(En,Uo)},[()=>({mobile:d()}),()=>oi("submenu_settings")]),$($i,yt)};V(ti,$i=>{d()&&$i(Zn)})}var Ti=A(ti,2);let To;wi(Ti,21,()=>s(Q),$i=>$i.id,($i,yt)=>{var Bi=Fe(),Fo=ve(Bi);{var En=Ei=>{Xm(Ei,{get isMobile(){return d()},get id(){return s(yt).id},get icon(){return s(yt).icon},get label(){return s(yt).label},get ariaLabel(){return s(yt).ariaLabel},get value(){return s(yt).value},get valueComponent(){return s(yt).valueComponent},onClick:()=>{He(s(yt).children),B(X,s(yt).id,!0)},get ref(){return Y[s(yt).id]},set ref(Uo){Y[s(yt).id]=Uo}})},ai=(Ei,Uo)=>{{var In=Eo=>{ev(Eo,{get isMobile(){return d()},get id(){return s(yt).id},get onClick(){return s(yt).onClick},get icon(){return s(yt).icon},get label(){return s(yt).label},get ariaLabel(){return s(yt).ariaLabel},closeSettings:fe})},zo=(Eo,gn)=>{{var nn=bo=>{iv(bo,{get isMobile(){return d()},get id(){return s(yt).id},get onClick(){return s(yt).onClick},get icon(){return s(yt).icon},get label(){return s(yt).label},get ariaLabel(){return s(yt).ariaLabel},get enabled(){return s(yt).enabled},get tooltipText(){return s(yt).tooltipText},get maxTooltipWidth(){return s(yt).maxTooltipWidth}})};V(Eo,bo=>{s(yt).type==="SWITCH"&&bo(nn)},gn)}};V(Ei,Eo=>{s(yt).type==="CLICK"?Eo(In):Eo(zo,!1)},Uo)}};V(Fo,Ei=>{s(yt).type==="OPEN_SUB_MENU"?Ei(En):Ei(ai,!1)})}$($i,Bi)}),g(Ti),tt(Ti,$i=>G($i),()=>G()),g(kt),O(($i,yt,Bi)=>{Qi=J(kt,1,"settings-menu menu svelte-17or3al",null,Qi,$i),To=J(Ti,1,"items",null,To,yt),at(Ti,Bi)},[()=>({desktop:!d(),mobile:d(),hidden:!!xe.current}),()=>({mobile:d()}),ho]),Ct("mouseenter",kt,fi),Ct("mouseleave",kt,qi),$(it,kt)};V(si,it=>{n()&&it(ui)})}var vt=A(si,2);wi(vt,17,()=>s(qt),it=>it.id,(it,kt)=>{let Qi=h(()=>{var ti;return(ti=s(kt).minWidth)!=null?ti:137});Zm(it,{get isMobile(){return d()},get playerControlsHeight(){return re()},get returnFromSubMenu(){return xe.popSubMenu},get id(){return s(kt).id},get title(){return s(kt).title},get closeSettingsMenu(){return Tt},openSubMenuList:He,get items(){return s(kt).items},get minWidth(){return s(Qi)},get refMenuItems(){return Y},get listRef(){return ce[s(kt).id]},set listRef(ti){ce[s(kt).id]=ti}})}),g(di),O(it=>Ni=J(di,1,"settings-menu-container svelte-17or3al",null,Ni,it),[()=>({mobile:d(),hidden:!n()})]),$(t,di),H(),o()}dt(["keydown","click"]);var B3=t=>t;function o0(t,{delay:e=0,duration:i=400,easing:o=B3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:r=>`opacity: ${r*n}`}}var O3=M('<button class="button svelte-1sbbskl"> </button>'),D3={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 gv(t,e){W(t,D3);var i=O3();i.__click=function(...n){var r;(r=e.onClick)==null||r.apply(this,n)};var o=_(i,!0);g(i),O(()=>_e(o,e.label)),$(t,i)}dt(["click"]);var H3=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),F3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
|
|
307
307
|
/**
|
|
308
308
|
* \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
|
|
309
|
-
*/pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function rc(t,e){D(e,!0),W(t,F3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=
|
|
309
|
+
*/pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function rc(t,e){D(e,!0),W(t,F3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=zt(),{ui:{t:n}}=Ee(),r=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=H3(),d=_(l),a=_(d),p=_(a),f=_(p);ic(f,{get message(){return r}}),g(p);var v=A(p,2);{var u=w=>{let y=h(()=>n("slow_video_notification_button"));gv(w,{get label(){return s(y)},get onClick(){return e.onSelectAutoQuality}})};V(v,w=>{o||w(u)})}g(a);var b=A(a,2);_a(b,{get onClick(){return e.onClose}}),g(d),g(l),Gp(3,d,()=>o0,()=>({duration:i})),$(t,l),H()}var sc=require("@vkontakte/videoplayer-shared/es2018"),La="annotation",Ou=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:r,hideAllControls:l}=i;e.setAttribute("slot",La),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),r&&this.runHidingControlsWhenIntersected(n,r),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let n=this.slots.get(e);if(!n)return;let r=await this.findSlotElement(n.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(v=>v.forEach(()=>{let u=gs(r,this.shadowRootContainer);o.forEach(b=>{let w=l==null?void 0:l[b],y=w?ye(w):null,C=d==null?void 0:d[b];y&&(C==null||C.set((0,sc.isIntersecting)(y,u)))})}));a.observe(r,{childList:!0,subtree:!0}),n.observer=a;let p=new sc.Subscription;o.forEach(v=>{l&&p.add(l[v].subscribe(u=>{let b=d==null?void 0:d[v];u&&u.isDisplayed?b==null||b.set((0,sc.isIntersecting)(u,gs(r,this.shadowRootContainer))):b==null||b.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){return new Promise(n=>{let r=null,l=new MutationObserver(()=>{if(r=e.querySelector(`#${i}`),r){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(r)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var p,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:r,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,r].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((p=this.store)==null||p.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var u,b;(b=(u=this.store)==null?void 0:u.ui.hiddenControls[v])==null||b.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var U3=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),z3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
|
|
310
310
|
|
|
311
311
|
animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
|
|
312
312
|
|
|
@@ -337,8 +337,8 @@ Try switching the\xA0quality to\xA0Auto.`},Xh=F_;var gs=new Map;gs.set(ll.Interf
|
|
|
337
337
|
opacity: 0;
|
|
338
338
|
scale: 0;
|
|
339
339
|
}
|
|
340
|
-
}`};function
|
|
341
|
-
.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 Ra(t,e){D(e,!0),W(t,q3);let[i,o]=Be(),n=()=>C(f,"$rotateAlpha",i),r=()=>C(v,"$playerSize",i),l=()=>C(u,"$playerPhase",i),d=()=>C(p,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=Ee(),{isSmoothVideoRotate:$}=Ut(),w=h(()=>a()&&n()%180?r().height/r().width:1);var y=W3();let S;y.__contextmenu=function(...P){var I;(I=e.onContextMenu)==null||I.apply(this,P)},y.__mousedown=function(...P){var I;(I=e.onMouseDown)==null||I.apply(this,P)},y.__mouseup=function(...P){var I;(I=e.onMouseUp)==null||I.apply(this,P)},y.__click=function(...P){var I;(I=e.onClick)==null||I.apply(this,P)},y.__dblclick=function(...P){var I;(I=e.onDblClick)==null||I.apply(this,P)};var T=_(y);let k;ot(T,P=>a(P),()=>a()),g(y),O((P,I)=>{S=J(y,1,"video-wrapper svelte-1czns9r",null,S,P),k=J(T,1,"video-container svelte-1czns9r",null,k,I),st(T,`transform: rotate(${n()}deg) scale(${s(w)})`),Ne(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,y),H(),o()}lt(["contextmenu","mousedown","mouseup","click","dblclick"]);var K3=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},Q3=M("<div><!></div>"),G3=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Y3=M("<div><!></div>"),j3=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),Z3=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),X3=M("<!> <!> <!>",1),J3=M('<div class="blocked svelte-jtgjmv"></div>'),ex=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),tx={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 _v(t,e){D(e,!0),W(t,tx);let[i,o]=Be(),n=()=>C(Bn,"$notificationsToShow$",i),r=()=>C(fi,"$playerPhase",i),l=()=>C(qt,"$isLoaderVisible",i),d=()=>C(ci,"$adPlaybackState",i),a=()=>C(It,"$crashed",i),u=()=>C(Ho,"$isInteractiveTime$",i),f=()=>C(Gt,"$settingsMenuVisible",i),v=()=>C(Pn,"$isInteractiveExpectation$",i),p=()=>C(zi,"$controlsVisible",i),$=()=>C(Ci,"$touched",i),w=()=>C(Ln,"$graphIsOpened$",i),y=()=>C(Ui,"$isFullscreen",i),S=()=>C(Dr,"$autoplayNextEnabled$",i),T=()=>C(ui,"$postrollPassed",i),k=()=>C(di,"$isEnded$",i),P=()=>C(Ni,"$cursorInside",i),I=()=>C(ir,"$isControlsAvailable",i),E=()=>C(Mn,"$fakeIsPlaying$",i),L=()=>C(jt,"$bottomNoSmooth",i),q=()=>C(wo,"$interactiveTimeIndicator",i),z=()=>C(Do,"$playerSize",i),U=()=>C($i,"$is3DVideo",i),G=()=>C(mi,"$contextMenuVisible$",i),re=()=>C(Ai,"$playbackState$",i),Y=()=>C(Fo,"$hotKeyMapData",i),ce=()=>C(Pt,"$scrubbingInProgress",i),ae=()=>C(dt,"$volumeChangingInProgress",i),Ae=()=>C(Mi,"$chromecastConnected$",i),Ve=()=>C(On,"$controlsTimeoutActive",i),me=()=>C(fo,"$settingsMenuOpenedByKeyboard",i),ue=()=>C(Go,"$contextMenuOpenedByKeyboard$",i),Le=()=>C(Cr,"$contextMenuOpenedByHotKey$",i),te=()=>C(ln,"$contextMenuButtonRef$",i),N=()=>C(zr,"$contextMenuLastActiveElem$",i),Qe=()=>C(po,"$isFullscreenOpenedByKeyboard",i),ee=()=>C(mt,"$language$",i),We=()=>C(ht,"$icon3DVideoVisible",i),le=()=>C(si,"$chromecastDeviceName$",i),pe=()=>C(tr,"$currentSubtitle$",i),be=()=>C(Li,"$currentSubtitleCaptions$",i),Z=()=>C(it,"$position$",i),qe=()=>C(Dt,"$duration$",i),Ze=()=>C(pt,"$isLive$",i),Ie=()=>C(tt,"$isPlaying$",i),oe=()=>C(tn,"$contextMenuPosition$",i),Te=()=>C(An,"$showHotKeyMap",i),Ke=()=>C(Q,"$debugPanelVisible",i),rt=()=>C(_r,"$userActionsDisabled$",i),nt=m(e,"videoContainer",15),Lt=m(e,"adsSlotId",3,void 0),et=m(e,"adsParams",3,void 0),ct=m(e,"adsPreviewParam",3,void 0),Qt=m(e,"adsAutoplayParam",3,void 0),ni=m(e,"duration",3,void 0),Kt=m(e,"logoTargetUrl",3,""),St=m(e,"showNextPrevButtons",3,!1),ie=m(e,"nextButtonActive",3,!1),Vt=m(e,"prevButtonActive",3,!1),ge=m(e,"endScreenVideoTitle",3,void 0),X=m(e,"endScreenVideoThumb",3,void 0),xe=m(e,"isOneVideoPlaylist",3,!1),De=m(e,"shadowRootContainer",3,void 0),fe=m(e,"outerContainerRef",3,void 0),Re=m(e,"playerStarted",3,!1),Je=m(e,"fullScreenTarget",3,void 0),Fe=m(e,"showMiniTimer",3,!1),Mt=m(e,"showEndScreen",3,!0),Tt=m(e,"keyboardControls",15),xt=e.store.getLogger().createComponentLog("Root component"),mt=e.store.interfaceLanguage$,Ai=e.store.state.playbackState$,ci=e.store.ads.playbackState,it=e.store.state.positionWithScrubbing$,Dt=e.store.state.duration$,fi=e.store.playerPhase,Ui=e.store.ui.isFullscreen,po=e.store.ui.isFullscreenOpenedByKeyboard,zi=e.store.ui.controlsVisible,Gt=e.store.ui.settingsMenu.visible$,fo=e.store.ui.settingsMenu.openedByBtnKeyboard$,Pt=e.store.ui.scrubbingInProgress,dt=e.store.ui.volumeChangingInProgress,mi=e.store.ui.contextMenu.visible$,Q=e.store.ui.debugPanelVisible,qt=e.store.state.isLoaderVisible,di=e.store.state.isEnded$,Mi=e.store.state.chromecastConnected$,si=e.store.state.chromecastDeviceName$,ui=e.store.ads.postrollPassed,pt=e.store.state.isLive$,tt=e.store.state.isPlaying$,It=e.store.state.crashed$,Wi=e.store.webApi.annotationsApi,ei=e.store.webApi.pictureInPictureApi,tr=e.store.state.currentSubtitle$,Li=e.store.state.currentSubtitleCaptions$,Do=e.store.ui.playerSize,$i=e.store.ui.is3DVideo,ht=e.store.ui.icon3DVideoVisible,Vi=e.store.state.isInteractive,Ho=e.store.state.isInteractiveTime$,Pn=e.store.state.isInteractiveExpectation$,ai=e.store.state.hasInteractiveBranches,Ci=e.store.ui.touched,Fo=e.store.ui.modals.hotKeyMap.data,An=e.store.ui.modals.hotKeyMap.show,Uo=e.store.ui.overlayContainer$,wo=e.store.ui.controls.interactiveTimeIndicator,hn=e.store.state.showInteractiveTimeIndicator,tn=e.store.ui.contextMenu.position$,mo=e.store.actions.internal.setQuality,Co=e.store.actions.internal.closeSettingsMenu,Dr=e.store.ui.autoplayNextEnabled$,_r=e.store.ui.userActionsDisabled,ir=e.store.ui.isControlsAvailable,or=e.store.ui.videoTitleInfo,nr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Mn,notifications$:rs,graphIsOpened$:Ln}=uo(),Ri=j(void 0),Vn=j(void 0),on=j(void 0),nn=j(void 0),Rn,Nn,zo;Fo.set(n1());let{closeNotification:Hr,notificationsToShow$:Bn}=rs,rr=h(()=>!!n().slow_video),qi=()=>Hr("slow_video"),So=h(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),at=j(void 0),jt=se(!1),br,On=se(!1),_n=se(),Ni=se(!1),Dn=j(!1),To=j(!1),Hn=j(!1),Eo=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Fn=h(()=>u()&&!f()&&!(s(Dn)||s(To))&&!(s(Hn)&&!v())),Un=!0,sr=h(()=>e.uiConfig.features.thumbTimer&&Fe()&&r()==="video"&&!p()&&!a()&&!Vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),$r=h(()=>r()==="video"&&!w()&&y()),ar=j(!1),Wo=h(()=>(Mt()||e.showAutoplayNext&&S())&&!!ge()&&!!X()&&(e.showAds&&T()||!e.showAds)&&k()&&!a()&&!s(ar)),Fr=h(()=>P()&&!(p()||s(Wo))&&!u()&&I()),lr=j(!1),yr=h(()=>E()!==null),{toggle:rn}=Mn,Yt=!1,vo=null;ei==null||ei.setContext(Wl());let Io=()=>{e.autoplay&&!Vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Si(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Io});let dr=()=>{window.clearTimeout(Rn),On.set(!1)},xr=()=>{window.clearTimeout(Nn),_n.set(null)},Si=Se=>{dr(),On.set(!0),Rn=window.setTimeout(()=>On.set(!1),Se);let ye=Se-100;br=window.setTimeout(()=>{L()&&jt.set(!1)},ye>0?ye:Se)},ss=(Se,ye)=>{xr(),_n.set(ye),Nn=window.setTimeout(()=>_n.set(null),Se)},Ur=$i.subscribe(Se=>{ht.set(Se),Se&&(window.clearTimeout(zo),zo=window.setTimeout(()=>ht.set(!1),e.uiConfig.controls.hide360IconTimeout))}),wr=async()=>{var ye,yt,zt,Ti;let Se=Vs();if(Se){let bi=bd(),Ue=qo();Se=bi===Ue||bi===De()}if(Se){Si(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ei==null?void 0:ei.remove())}catch(bi){xt({message:String(bi)})}}Ui.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),y()?(yt=(ye=e.store.callbacks)==null?void 0:ye.onFullscreenEnter)==null||yt.call(ye):(Ti=(zt=e.store.callbacks)==null?void 0:zt.onFullscreenExit)==null||Ti.call(zt)},_t=Se=>{let{width:ye,height:yt}=Se.target;Do.set({width:ye,height:yt})},Zt=()=>{let{width:Se,height:ye}=s(Ri).getBoundingClientRect();Do.set({width:Se,height:ye})};Ot(()=>{var ye;return uu(wr),e.uiConfig.features.annotationsInside&&(Wi==null||Wi.init(s(Ri))),va(ei)&&(ei==null||ei.assignPlayerContainer(s(Ri)),ei==null||ei.registryExternalEventHandlers({resize:_t,leavepictureinpicture:Zt})),e.interactiveContainer&&((ye=nt().parentElement)==null||ye.insertBefore(e.interactiveContainer,nt().nextSibling)),()=>{window.clearTimeout(Rn),window.clearTimeout(br),window.clearTimeout(Nn),window.clearTimeout(zo),Ur(),ei==null||ei.dispose().catch(yt=>{xt({message:String(yt)})}),pu(wr)}});let qo=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!fe()?s(Ri):fe(),ye=Se.getRootNode(),yt=ye instanceof ShadowRoot?ye.host:ye,zt=Je()instanceof HTMLElement&&Je().contains(yt);return e.uiConfig.allowChangingFullscreenTarget&&Je()&&zt?Je():Se},go=async()=>{Vs()?(await cu(document),xt({message:"exit fullscreen"})):(xt({message:"request fullscreen"}),await du(qo()))},oo=()=>{Co(),mi.set(!1)},sn=Se=>{w()||(Se.preventDefault(),mi.set(!0),tn.set({left:Se.clientX,top:Se.clientY}))};function zn(){Ni.set(!0),Vi||Si(e.uiConfig.controls.hideTimeoutCursor)}function ho(){Vi||(jt.set(!0),Si(e.uiConfig.controls.hideTimeoutCursor))}function bn(){Ni.set(!1),B(To,!1),B(Dn,!1),Yt=!1,e.store.actions.internal.releaseCamera(),Si(e.uiConfig.controls.hideTimeout)}function an(Se){return Se?Se.offsetTop+an(Se.offsetParent):0}function Xe(Se){return Se?Se.offsetLeft+Xe(Se.offsetParent):0}function Rt(Se){if(q()&&hn){let ye=Se.currentTarget,yt=an(ye),zt=Xe(ye),Ti=Se.pageX-zt,bi=Se.pageY-yt,{left:Ue,bottom:wt,right:ti}=q(),dn=ti-Ue;return Ti>=Ue-dn&&bi<=wt+dn}}function hi(Se){if(s(Ri)){let ye=an(Se.currentTarget),yt=z().height,zt=Se.pageY-ye;if(Rt(Se)){B(To,!1);return}zt<40?B(To,!0):zt>yt-40?B(Dn,!0):(B(To,!1),f()||B(Dn,!1))}}function _o(Se){hi(Se),s(Fn)||Si(e.uiConfig.controls.hideTimeoutCursor),U()&&Yt&&vo&&e.store.actions.internal.moveCameraFocusPX(vo.clientX-Se.clientX,vo.clientY-Se.clientY,Se.timeStamp-vo.timeStamp),vo=Se}let no=Se=>{Se.preventDefault(),Se.button===0&&(Yt=!0,e.store.actions.internal.holdCamera()),Si(e.uiConfig.controls.hideTimeoutCursor)},Ko=Se=>{Se.preventDefault(),Se.button===0&&(vo=Se,Yt=!1,e.store.actions.internal.releaseCamera()),Si(e.uiConfig.controls.hideTimeoutCursor)},Xi=Se=>{Se.preventDefault(),Un&&(xt({message:"double click on video"}),go(),Si(e.uiConfig.controls.hideTimeoutCursor))},Qo=Se=>{var ye;if(Se.preventDefault(),G()||f()){oo();return}if(!(k()&&!ai)){if(s(yr))return rn();if((ye=Tt())==null||ye.focus(),!Re()){e.firstStart(),Si(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||re()!==hv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Si(e.uiConfig.controls.hideTimeoutCursor)}},ko=Se=>{oo(),Ci.set(!0),Si(e.uiConfig.controls.hideTimeout),Se&&ss(e.uiConfig.controls.hideHotKeyHelpers,Se)},Ki=()=>{var Se,ye;oo(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(ye=e.store.callbacks)==null||ye.onOpenHotKeyMap(Y()):An.update(yt=>!yt)},_i=()=>{Ci.set(!0)},Go=e.store.ui.contextMenu.openedByBtnKeyboard$,ln=e.store.ui.contextMenu.btnRef$,ro=j(void 0),Cr=e.store.ui.contextMenu.openedByHotKey$,zr=e.store.ui.contextMenu.lastActiveElem$;ze(()=>{Uo.set(s(at))}),ze(()=>{B(Hn,s(Eo)&&re()!==hv.PlaybackState.PLAYING,!0),s(Eo)||Et(()=>B(Eo,!0))}),ze(()=>{zi.set((s(Hn)||k()||f()||ce()||ae()||Ae()||Ve())&&!s(Fn)&&(r()==="video"||r()==="ads")&&!a()&&I())}),ze(()=>{!ce()&&s(lr)&&!u()&&Si(e.uiConfig.controls.hideTimeoutCursor),Et(()=>B(lr,ce(),!0))}),ze(()=>{s(nn),f(),me(),Et(()=>Sd(s(nn),f(),me()))}),ze(()=>{s(ro),G(),ue(),Le(),Et(()=>{let Se=ue()||Le();Sd(s(ro),G(),Se)})}),ze(()=>{let Se=te();Se&&(G(),Et(()=>fl(Se,G(),Go)))}),ze(()=>{let Se=N();Se&&(G(),Et(()=>l1(Se,G(),Cr)))}),ze(()=>{var Se;!Qe()&&y()&&(Et(()=>po.set(!1)),(Se=Tt())==null||Se.focus())}),ze(()=>{w()&&oo()});let Wr=F("video360"),$n=j(void 0),Wn=Se=>{or.set(Nr(nr(),{title:s($n)},"title",Se))};var qr=ex();Ct("blur",Js,oo);var so=ve(qr);so.__mousemove=_o;var Yo=_(so);let qn=h(()=>r()==="ads"),cr=h(()=>s(yr)?rn:void 0);ot(Mf(Yo,{toggleFullscreen:go,hideContextMenu:oo,showHotKeyHelpers:ko,showKeyMap:Ki,get isAds(){return s(qn)},get fakePlayButtonHandler(){return s(cr)},get nextButtonActive(){return ie()},get prevButtonActive(){return Vt()},children:(Se,ye)=>{var yt=X3(),zt=ve(yt);Ra(zt,{get hideCursor(){return s(Fr)},onClick:Qo,onContextMenu:sn,onMouseDown:no,onMouseUp:Ko,onDblClick:Xi,get videoContainer(){return nt()},set videoContainer(Ue){nt(Ue)}});var Ti=A(zt,2);sa(Ti,()=>"slot",!1,(Ue,wt)=>{ke(Ue,()=>({name:Va}))});var bi=A(Ti,2);ra(bi,ee,Ue=>{var wt=Z3(),ti=ve(wt);let dn=h(()=>r()!=="thumb"||a()||Vi&&e.autoplay);Aa(ti,{get hidden(){return s(dn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var yn=A(ti,2);gv(yn,{});var ao=A(yn,2);{var Qr=Ge=>{let ii=h(()=>{var Po;return(Po=e.live)==null?void 0:Po.startTime});ec(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(ii)}})};V(ao,Ge=>{r()==="LiveWaitingStart"&&Ge(Qr)})}var Sr=A(ao,2);{var Ji=Ge=>{Ma(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Sr,Ge=>{r()==="LiveWaitingRecover"&&Ge(Ji)})}var Ei=A(Sr,2);{var xn=Ge=>{Ma(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Ei,Ge=>{r()==="LiveWaitingRecord"&&Ge(xn)})}var Kn=A(Ei,2);{var Tr=Ge=>{var ii=Q3();let Po;var ws=_(ii);$d(ws,{get adsSlotId(){return Lt()},get adsParams(){return et()},get adsPreviewParam(){return ct()},get adsAutoplayParam(){return Qt()},get duration(){return ni()}}),g(ii),O(cn=>Po=J(ii,1,"ads-container svelte-jtgjmv",null,Po,cn),[()=>({hidden:r()!=="ads"})]),b(Ge,ii)};V(Kn,Ge=>{e.showAds&&Re()&&Ge(Tr)})}var bo=A(Kn,2);{var pr=Ge=>{let ii=h(()=>!Mt()&&e.showAutoplayNext&&S());kf(Ge,{get title(){return ge()},get thumb(){return X()},get isHide(){return s(ii)},clickCloseIcon:()=>B(ar,!0)})};V(bo,Ge=>{s(Wo)&&ge()&&X()&&Ge(pr)})}var qs=A(bo,2);{var $t=Ge=>{let ii=h(()=>!p());zm(Ge,{get title(){return e.title},get isHidden(){return s(ii)},onVisibilityChanged:Wn,get ref(){return s($n)},set ref(Po){B($n,Po,!0)}})};V(qs,Ge=>{s($r)&&Ge($t)})}var bt=A(qs,2);{var lo=Ge=>{let ii=h(()=>r()==="video"&&p());Zd(Ge,{get isShifted(){return s(ii)}})};V(bt,Ge=>{U()&&Ge(lo)})}var jo=A(bt,2);{var co=Ge=>{var ii=G3(),Po=_(ii);_d(Po,{get"aria-label"(){return Wr}}),g(ii),b(Ge,ii)};V(jo,Ge=>{We()&&Ge(co)})}var ri=A(jo,2);{var Bi=Ge=>{Xd(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return le()}})};V(ri,Ge=>{Ae()&&Ge(Bi)})}var xs=A(ri,2);{var Ll=Ge=>{Pa(Ge,{get shifted(){return p()},get captions(){return be()},get position(){return Z()},get playerSize(){return z()}})};V(xs,Ge=>{pe().value!=="off"&&Ge(Ll)})}var hc=A(xs,2);{var Ju=Ge=>{var ii=Y3();ii.__contextmenu=sn,ii.__click=[K3,G,mi,f,Gt,oo];var Po=_(ii);Jd(Po,{}),g(ii),b(Ge,ii)};V(hc,Ge=>{a()&&Ge(Ju)})}var _c=A(hc,2);{var ep=Ge=>{let ii=h(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),Po=h(()=>r()==="ads"),ws=h(()=>e.canRewindLive&&qe()!==0);jd(Ge,{get bottomHidden(){return s(ii)},get bottomNoSmooth(){return L()},get showControls(){return p()},get isAds(){return s(Po)},get canRewindLive(){return s(ws)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Kt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return St()},get nextButtonActive(){return ie()},get prevButtonActive(){return Vt()},get isOneVideoPlaylist(){return xe()},customFullscreenSupported:Un,toggleFullscreen:go,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(Vn)},set playerControlsWrapperRef(cn){B(Vn,cn,!0)},get playerControlsRef(){return s(on)},set playerControlsRef(cn){B(on,cn,!0)}})};V(_c,Ge=>{Re()&&Ge(ep)})}var bc=A(_c,2);{var Oa=Ge=>{var ii=j3(),Po=_(ii);let ws=h(()=>{var cn;return(cn=s(on))==null?void 0:cn.clientHeight});nc(Po,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(ws)},returnFocus:()=>{var cn;return(cn=Tt())==null?void 0:cn.focus()},get ref(){return s(nn)},set ref(cn){B(nn,cn,!0)}}),g(ii),b(Ge,ii)};V(bc,Ge=>{!Ae()&&r()!=="ads"&&Ge(Oa)})}var $c=A(bc,2);let yc=h(()=>!s(sr));wd($c,{get isLive(){return Ze()},get isHidden(){return s(yc)},get isPlaying(){return Ie()},get position(){return Z()},get duration(){return qe()}});var Vl=A($c,2);Dm(Vl,{get data(){return _n}});var xc=A(Vl,2);Ef(xc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=Tt())==null?void 0:Ge.focus()},get visible(){return G()},get playerContainerRef(){return s(Ri)},get controlsContainerRef(){return s(Vn)},get position(){return oe()},get menuElementRef(){return s(ro)},set menuElementRef(Ge){B(ro,Ge,!0)}});var Rl=A(xc,2);{var Nl=Ge=>{rc(Ge,{onClose:qi,onSelectAutoQuality:()=>{mo("auto"),qi()}})};V(Rl,Ge=>{s(rr)&&Ge(Nl)})}var Bl=A(Rl,2);{var tp=Ge=>{$a(Ge,{})};V(Bl,Ge=>{s(So)&&Ge(tp)})}var Ol=A(Bl,2);{var ip=Ge=>{Rf(Ge,{})};V(Ol,Ge=>{Te()&&Ge(ip)})}var op=A(Ol,2);{var np=Ge=>{Ed(Ge,{})};V(op,Ge=>{Ke()&&Ge(np)})}b(Ue,wt)}),b(Se,yt)},$$slots:{default:!0}}),Se=>Tt(Se),()=>Tt());var ur=A(Yo,2);ot(ur,Se=>B(at,Se),()=>s(at)),g(so),ot(so,Se=>B(Ri,Se),()=>s(Ri));var Kr=A(so,2);{var as=Se=>{var ye=J3();b(Se,ye)};V(Kr,Se=>{rt()&&Se(as)})}Ct("mouseenter",so,zn),Ct("mouseleave",so,bn),Ct("click",so,_i,!0),Ct("focusin",so,ho,!0),b(t,qr),H(),o()}lt(["mousemove","contextmenu","click"]);var Ws=require("@vkontakte/videoplayer-core/es2018"),d0=require("@vkontakte/videoplayer-shared/es2018");var ix=M('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),ox=M("<div><!></div>"),nx={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
|
+
}`};function hv(t,e){D(e,!0),W(t,z3);let[i,o]=Be(),n=()=>S(l,"$isPlaying$",i),r=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ee(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=zt(),u=0,b=j(null),w=j(!1);ze(()=>{B(b,n()?Rr:_s,!0)}),ze(()=>{B(b,r()?Hs:null,!0)}),ze(()=>{if(p)return u=window.setTimeout(()=>{u=0,r()&&s(b)===Hs&&(r()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B(b,null)},s(b)!==Hs?f:v),()=>{u&&(window.clearTimeout(u),u=0)}}),ze(()=>{n()&&!s(w)&&(B(w,!0),B(b,null))});var y=Fe(),C=ve(y);{var T=k=>{var P=Fe(),I=ve(P);na(I,()=>s(b),E=>{var L=U3(),q=_(L),z=_(q);let U=h(()=>r()==="prev");Si(z,()=>s(b),(G,re)=>{re(G,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return s(U)}})}),g(q),g(L),O(()=>at(q,`animation-duration: ${s(b)!==Hs?f:v}ms`)),$(E,L)}),$(k,P)};V(C,k=>{s(b)&&p&&k(T)})}$(t,y),H(),o()}var W3=M('<div><div data-testid="video-container"></div></div>'),q3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
|
|
341
|
+
.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 Va(t,e){D(e,!0),W(t,q3);let[i,o]=Be(),n=()=>S(f,"$rotateAlpha",i),r=()=>S(v,"$playerSize",i),l=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:u}}=Ee(),{isSmoothVideoRotate:b}=zt(),w=h(()=>a()&&n()%180?r().height/r().width:1);var y=W3();let C;y.__contextmenu=function(...P){var I;(I=e.onContextMenu)==null||I.apply(this,P)},y.__mousedown=function(...P){var I;(I=e.onMouseDown)==null||I.apply(this,P)},y.__mouseup=function(...P){var I;(I=e.onMouseUp)==null||I.apply(this,P)},y.__click=function(...P){var I;(I=e.onClick)==null||I.apply(this,P)},y.__dblclick=function(...P){var I;(I=e.onDblClick)==null||I.apply(this,P)};var T=_(y);let k;tt(T,P=>a(P),()=>a()),g(y),O((P,I)=>{C=J(y,1,"video-wrapper svelte-1czns9r",null,C,P),k=J(T,1,"video-container svelte-1czns9r",null,k,I),at(T,`transform: rotate(${n()}deg) scale(${s(w)})`),Oe(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!b})]),$(t,y),H(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var K3=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},Q3=M("<div><!></div>"),G3=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Y3=M("<div><!></div>"),j3=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),Z3=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),X3=M("<!> <!> <!>",1),J3=M('<div class="blocked svelte-jtgjmv"></div>'),ex=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),tx={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 bv(t,e){D(e,!0),W(t,tx);let[i,o]=Be(),n=()=>S(Vn,"$notificationsToShow$",i),r=()=>S(fi,"$playerPhase",i),l=()=>S(qt,"$isLoaderVisible",i),d=()=>S(ci,"$adPlaybackState",i),a=()=>S(kt,"$crashed",i),p=()=>S(Fo,"$isInteractiveTime$",i),f=()=>S(jt,"$settingsMenuVisible",i),v=()=>S(En,"$isInteractiveExpectation$",i),u=()=>S(Ki,"$controlsVisible",i),b=()=>S(Ei,"$touched",i),w=()=>S(Pn,"$graphIsOpened$",i),y=()=>S(qi,"$isFullscreen",i),C=()=>S(Br,"$autoplayNextEnabled$",i),T=()=>S(ui,"$postrollPassed",i),k=()=>S(di,"$isEnded$",i),P=()=>S(Oi,"$cursorInside",i),I=()=>S(Xn,"$isControlsAvailable",i),E=()=>S(kn,"$fakeIsPlaying$",i),L=()=>S(Xt,"$bottomNoSmooth",i),q=()=>S(Eo,"$interactiveTimeIndicator",i),z=()=>S(To,"$playerSize",i),U=()=>S($i,"$is3DVideo",i),G=()=>S(mi,"$contextMenuVisible$",i),re=()=>S(Ri,"$playbackState$",i),Y=()=>S(Uo,"$hotKeyMapData",i),ce=()=>S(At,"$scrubbingInProgress",i),ae=()=>S(ct,"$volumeChangingInProgress",i),Ae=()=>S(Ni,"$chromecastConnected$",i),Re=()=>S(Rn,"$controlsTimeoutActive",i),me=()=>S(_o,"$settingsMenuOpenedByKeyboard",i),ue=()=>S(Yo,"$contextMenuOpenedByKeyboard$",i),Ve=()=>S(yr,"$contextMenuOpenedByHotKey$",i),te=()=>S(dn,"$contextMenuButtonRef$",i),N=()=>S(zr,"$contextMenuLastActiveElem$",i),Qe=()=>S(ho,"$isFullscreenOpenedByKeyboard",i),ee=()=>S(_t,"$language$",i),We=()=>S(yt,"$icon3DVideoVisible",i),le=()=>S(si,"$chromecastDeviceName$",i),pe=()=>S(Zn,"$currentSubtitle$",i),$e=()=>S(Ti,"$currentSubtitleCaptions$",i),Z=()=>S(ot,"$position$",i),qe=()=>S(Ht,"$duration$",i),Xe=()=>S(vt,"$isLive$",i),Ie=()=>S(it,"$isPlaying$",i),oe=()=>S(nn,"$contextMenuPosition$",i),Te=()=>S(In,"$showHotKeyMap",i),Ke=()=>S(Q,"$debugPanelVisible",i),rt=()=>S(vr,"$userActionsDisabled$",i),nt=m(e,"videoContainer",15),Rt=m(e,"adsSlotId",3,void 0),et=m(e,"adsParams",3,void 0),pt=m(e,"adsPreviewParam",3,void 0),Yt=m(e,"adsAutoplayParam",3,void 0),oi=m(e,"duration",3,void 0),Qt=m(e,"logoTargetUrl",3,""),Tt=m(e,"showNextPrevButtons",3,!1),ie=m(e,"nextButtonActive",3,!1),Nt=m(e,"prevButtonActive",3,!1),ge=m(e,"endScreenVideoTitle",3,void 0),X=m(e,"endScreenVideoThumb",3,void 0),xe=m(e,"isOneVideoPlaylist",3,!1),He=m(e,"shadowRootContainer",3,void 0),fe=m(e,"outerContainerRef",3,void 0),Ne=m(e,"playerStarted",3,!1),Je=m(e,"fullScreenTarget",3,void 0),Ue=m(e,"showMiniTimer",3,!1),Lt=m(e,"showEndScreen",3,!0),Et=m(e,"keyboardControls",15),St=e.store.getLogger().createComponentLog("Root component"),_t=e.store.interfaceLanguage$,Ri=e.store.state.playbackState$,ci=e.store.ads.playbackState,ot=e.store.state.positionWithScrubbing$,Ht=e.store.state.duration$,fi=e.store.playerPhase,qi=e.store.ui.isFullscreen,ho=e.store.ui.isFullscreenOpenedByKeyboard,Ki=e.store.ui.controlsVisible,jt=e.store.ui.settingsMenu.visible$,_o=e.store.ui.settingsMenu.openedByBtnKeyboard$,At=e.store.ui.scrubbingInProgress,ct=e.store.ui.volumeChangingInProgress,mi=e.store.ui.contextMenu.visible$,Q=e.store.ui.debugPanelVisible,qt=e.store.state.isLoaderVisible,di=e.store.state.isEnded$,Ni=e.store.state.chromecastConnected$,si=e.store.state.chromecastDeviceName$,ui=e.store.ads.postrollPassed,vt=e.store.state.isLive$,it=e.store.state.isPlaying$,kt=e.store.state.crashed$,Qi=e.store.webApi.annotationsApi,ti=e.store.webApi.pictureInPictureApi,Zn=e.store.state.currentSubtitle$,Ti=e.store.state.currentSubtitleCaptions$,To=e.store.ui.playerSize,$i=e.store.ui.is3DVideo,yt=e.store.ui.icon3DVideoVisible,Bi=e.store.state.isInteractive,Fo=e.store.state.isInteractiveTime$,En=e.store.state.isInteractiveExpectation$,ai=e.store.state.hasInteractiveBranches,Ei=e.store.ui.touched,Uo=e.store.ui.modals.hotKeyMap.data,In=e.store.ui.modals.hotKeyMap.show,zo=e.store.ui.overlayContainer$,Eo=e.store.ui.controls.interactiveTimeIndicator,gn=e.store.state.showInteractiveTimeIndicator,nn=e.store.ui.contextMenu.position$,bo=e.store.actions.internal.setQuality,uo=e.store.actions.internal.closeSettingsMenu,Br=e.store.ui.autoplayNextEnabled$,vr=e.store.ui.userActionsDisabled,Xn=e.store.ui.isControlsAvailable,Jn=e.store.ui.videoTitleInfo,er=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:kn,notifications$:ns,graphIsOpened$:Pn}=go(),yi=j(void 0),An=j(void 0),rn=j(void 0),sn=j(void 0),Mn,Ln,Wo;Uo.set(r1());let{closeNotification:Or,notificationsToShow$:Vn}=ns,tr=h(()=>!!n().slow_video),Gi=()=>Or("slow_video"),Io=h(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),lt=j(void 0),Xt=se(!1),gr,Rn=se(!1),hn=se(),Oi=se(!1),Nn=j(!1),ko=j(!1),Bn=j(!1),Po=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),On=h(()=>p()&&!f()&&!(s(Nn)||s(ko))&&!(s(Bn)&&!v())),Dn=!0,ir=h(()=>e.uiConfig.features.thumbTimer&&Ue()&&r()==="video"&&!u()&&!a()&&!Bi&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),hr=h(()=>r()==="video"&&!w()&&y()),or=j(!1),qo=h(()=>(Lt()||e.showAutoplayNext&&C())&&!!ge()&&!!X()&&(e.showAds&&T()||!e.showAds)&&k()&&!a()&&!s(or)),Dr=h(()=>P()&&!(u()||s(qo))&&!p()&&I()),nr=j(!1),_r=h(()=>E()!==null),{toggle:an}=kn,Zt=!1,$o=null;ti==null||ti.setContext(Wl());let br=()=>{e.autoplay&&!Bi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ii(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:br});let $r=()=>{window.clearTimeout(Mn),Rn.set(!1)},Ko=()=>{window.clearTimeout(Ln),hn.set(null)},Ii=we=>{$r(),Rn.set(!0),Mn=window.setTimeout(()=>Rn.set(!1),we);let he=we-100;gr=window.setTimeout(()=>{L()&&Xt.set(!1)},he>0?he:we)},Hr=(we,he)=>{Ko(),hn.set(he),Ln=window.setTimeout(()=>hn.set(null),we)},Fr=$i.subscribe(we=>{yt.set(we),we&&(window.clearTimeout(Wo),Wo=window.setTimeout(()=>yt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ur=async()=>{var he,mt,Mt,Le;let we=Ms();if(we){let ut=bd(),Gt=gt();we=ut===Gt||ut===He()}if(we){Ii(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ti==null?void 0:ti.remove())}catch(ut){St({message:String(ut)})}}qi.set(we),e.store.getAdmanWrapper().setFullscreen(we),y()?(mt=(he=e.store.callbacks)==null?void 0:he.onFullscreenEnter)==null||mt.call(he):(Le=(Mt=e.store.callbacks)==null?void 0:Mt.onFullscreenExit)==null||Le.call(Mt)},rr=we=>{let{width:he,height:mt}=we.target;To.set({width:he,height:mt})},sr=()=>{let{width:we,height:he}=s(yi).getBoundingClientRect();To.set({width:we,height:he})};Dt(()=>{var he;return uu(Ur),e.uiConfig.features.annotationsInside&&(Qi==null||Qi.init(s(yi))),ma(ti)&&(ti==null||ti.assignPlayerContainer(s(yi)),ti==null||ti.registryExternalEventHandlers({resize:rr,leavepictureinpicture:sr})),e.interactiveContainer&&((he=nt().parentElement)==null||he.insertBefore(e.interactiveContainer,nt().nextSibling)),()=>{window.clearTimeout(Mn),window.clearTimeout(gr),window.clearTimeout(Ln),window.clearTimeout(Wo),Fr(),ti==null||ti.dispose().catch(mt=>{St({message:String(mt)})}),pu(Ur)}});let gt=()=>{let we=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!fe()?s(yi):fe(),he=we.getRootNode(),mt=he instanceof ShadowRoot?he.host:he,Mt=Je()instanceof HTMLElement&&Je().contains(mt);return e.uiConfig.allowChangingFullscreenTarget&&Je()&&Mt?Je():we},Kt=async()=>{Ms()?(await cu(document),St({message:"exit fullscreen"})):(St({message:"request fullscreen"}),await du(gt()))},hi=()=>{uo(),mi.set(!1)},ki=we=>{w()||(we.preventDefault(),mi.set(!0),nn.set({left:we.clientX,top:we.clientY}))};function Pi(){Oi.set(!0),Bi||Ii(e.uiConfig.controls.hideTimeoutCursor)}function oo(){Bi||(Xt.set(!0),Ii(e.uiConfig.controls.hideTimeoutCursor))}function ln(){Oi.set(!1),B(ko,!1),B(Nn,!1),Zt=!1,e.store.actions.internal.releaseCamera(),Ii(e.uiConfig.controls.hideTimeout)}function Di(we){return we?we.offsetTop+Di(we.offsetParent):0}function je(we){return we?we.offsetLeft+je(we.offsetParent):0}function Vt(we){if(q()&&gn){let he=we.currentTarget,mt=Di(he),Mt=je(he),Le=we.pageX-Mt,ut=we.pageY-mt,{left:Gt,bottom:xi,right:ro}=q(),Zi=ro-Gt;return Le>=Gt-Zi&&ut<=xi+Zi}}function _i(we){if(s(yi)){let he=Di(we.currentTarget),mt=z().height,Mt=we.pageY-he;if(Vt(we)){B(ko,!1);return}Mt<40?B(ko,!0):Mt>mt-40?B(Nn,!0):(B(ko,!1),f()||B(Nn,!1))}}function yo(we){_i(we),s(On)||Ii(e.uiConfig.controls.hideTimeoutCursor),U()&&Zt&&$o&&e.store.actions.internal.moveCameraFocusPX($o.clientX-we.clientX,$o.clientY-we.clientY,we.timeStamp-$o.timeStamp),$o=we}let po=we=>{we.preventDefault(),we.button===0&&(Zt=!0,e.store.actions.internal.holdCamera()),Ii(e.uiConfig.controls.hideTimeoutCursor)},Qo=we=>{we.preventDefault(),we.button===0&&($o=we,Zt=!1,e.store.actions.internal.releaseCamera()),Ii(e.uiConfig.controls.hideTimeoutCursor)},no=we=>{we.preventDefault(),Dn&&(St({message:"double click on video"}),Kt(),Ii(e.uiConfig.controls.hideTimeoutCursor))},Go=we=>{var he;if(we.preventDefault(),G()||f()){hi();return}if(!(k()&&!ai)){if(s(_r))return an();if((he=Et())==null||he.focus(),!Ne()){e.firstStart(),Ii(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||re()!==_v.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ii(e.uiConfig.controls.hideTimeoutCursor)}},Ao=we=>{hi(),Ei.set(!0),Ii(e.uiConfig.controls.hideTimeout),we&&Hr(e.uiConfig.controls.hideHotKeyHelpers,we)},Yi=()=>{var we,he;hi(),(we=e.store.callbacks)!=null&&we.onOpenHotKeyMap?(he=e.store.callbacks)==null||he.onOpenHotKeyMap(Y()):In.update(mt=>!mt)},bi=()=>{Ei.set(!0)},Yo=e.store.ui.contextMenu.openedByBtnKeyboard$,dn=e.store.ui.contextMenu.btnRef$,fo=j(void 0),yr=e.store.ui.contextMenu.openedByHotKey$,zr=e.store.ui.contextMenu.lastActiveElem$;ze(()=>{zo.set(s(lt))}),ze(()=>{B(Bn,s(Po)&&re()!==_v.PlaybackState.PLAYING,!0),s(Po)||It(()=>B(Po,!0))}),ze(()=>{Ki.set((s(Bn)||k()||f()||ce()||ae()||Ae()||Re())&&!s(On)&&(r()==="video"||r()==="ads")&&!a()&&I())}),ze(()=>{!ce()&&s(nr)&&!p()&&Ii(e.uiConfig.controls.hideTimeoutCursor),It(()=>B(nr,ce(),!0))}),ze(()=>{s(sn),f(),me(),It(()=>Cd(s(sn),f(),me()))}),ze(()=>{s(fo),G(),ue(),Ve(),It(()=>{let we=ue()||Ve();Cd(s(fo),G(),we)})}),ze(()=>{let we=te();we&&(G(),It(()=>ml(we,G(),Yo)))}),ze(()=>{let we=N();we&&(G(),It(()=>d1(we,G(),yr)))}),ze(()=>{var we;!Qe()&&y()&&(It(()=>ho.set(!1)),(we=Et())==null||we.focus())}),ze(()=>{w()&&hi()});let Wr=F("video360"),_n=j(void 0),Hn=we=>{Jn.set(tn(er(),{title:s(_n)},"title",we))},rs=(we,he)=>{var Mt,Le,ut;let mt=tn(s(yi),{upcomingLiveScreen:we},"upcomingLiveScreen",he);(ut=(Le=(Mt=e.store.callbacks)==null?void 0:Mt.uiInfo)==null?void 0:Le.onUpcomingLiveStateChanged)==null||ut.call(Le,mt)},xr=(we,he)=>{var Mt,Le,ut;let mt=tn(s(yi),{upcomingLiveScreen:we},"upcomingLiveScreen",he);(ut=(Le=(Mt=e.store.callbacks)==null?void 0:Mt.uiInfo)==null?void 0:Le.onWaitingLiveStateChanged)==null||ut.call(Le,mt)};var jo=ex();Ct("blur",Xs,hi);var ji=ve(jo);ji.__mousemove=yo;var Fn=_(ji);let ar=h(()=>r()==="ads"),qr=h(()=>s(_r)?an:void 0);tt(Lf(Fn,{toggleFullscreen:Kt,hideContextMenu:hi,showHotKeyHelpers:Ao,showKeyMap:Yi,get isAds(){return s(ar)},get fakePlayButtonHandler(){return s(qr)},get nextButtonActive(){return ie()},get prevButtonActive(){return Nt()},children:(we,he)=>{var mt=X3(),Mt=ve(mt);Va(Mt,{get hideCursor(){return s(Dr)},onClick:Go,onContextMenu:ki,onMouseDown:po,onMouseUp:Qo,onDblClick:no,get videoContainer(){return nt()},set videoContainer(Gt){nt(Gt)}});var Le=A(Mt,2);ra(Le,()=>"slot",!1,(Gt,xi)=>{ke(Gt,()=>({name:La}))});var ut=A(Le,2);na(ut,ee,Gt=>{var xi=Z3(),ro=ve(xi);let Zi=h(()=>r()!=="thumb"||a()||Bi&&e.autoplay);Pa(ro,{get hidden(){return s(Zi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var wr=A(ro,2);hv(wr,{});var Sr=A(wr,2);{var so=Ge=>{let ni=h(()=>{var Mo;return(Mo=e.live)==null?void 0:Mo.startTime});ec(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(ni)},get playerSize(){return To},onUpcomingLiveStateChanged:rs,onWaitingLiveStateChanged:xr})};V(Sr,Ge=>{r()==="LiveWaitingStart"&&Ge(so)})}var Ai=A(Sr,2);{var bn=Ge=>{Aa(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Ai,Ge=>{r()==="LiveWaitingRecover"&&Ge(bn)})}var Un=A(Ai,2);{var Cr=Ge=>{Aa(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Un,Ge=>{r()==="LiveWaitingRecord"&&Ge(Cr)})}var xo=A(Un,2);{var dr=Ge=>{var ni=Q3();let Mo;var Ws=_(ni);$d(Ws,{get adsSlotId(){return Rt()},get adsParams(){return et()},get adsPreviewParam(){return pt()},get adsAutoplayParam(){return Yt()},get duration(){return oi()}}),g(ni),O(st=>Mo=J(ni,1,"ads-container svelte-jtgjmv",null,Mo,st),[()=>({hidden:r()!=="ads"})]),$(Ge,ni)};V(xo,Ge=>{e.showAds&&Ne()&&Ge(dr)})}var zs=A(xo,2);{var wt=Ge=>{let ni=h(()=>!Lt()&&e.showAutoplayNext&&C());Pf(Ge,{get title(){return ge()},get thumb(){return X()},get isHide(){return s(ni)},clickCloseIcon:()=>B(or,!0)})};V(zs,Ge=>{s(qo)&&ge()&&X()&&Ge(wt)})}var xt=A(zs,2);{var mo=Ge=>{let ni=h(()=>!u());Wm(Ge,{get title(){return e.title},get isHidden(){return s(ni)},onVisibilityChanged:Hn,get ref(){return s(_n)},set ref(Mo){B(_n,Mo,!0)}})};V(xt,Ge=>{s(hr)&&Ge(mo)})}var Zo=A(xt,2);{var vo=Ge=>{let ni=h(()=>r()==="video"&&u());Zd(Ge,{get isShifted(){return s(ni)}})};V(Zo,Ge=>{U()&&Ge(vo)})}var ri=A(Zo,2);{var Hi=Ge=>{var ni=G3(),Mo=_(ni);_d(Mo,{get"aria-label"(){return Wr}}),g(ni),$(Ge,ni)};V(ri,Ge=>{We()&&Ge(Hi)})}var ys=A(ri,2);{var Vl=Ge=>{Xd(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return le()}})};V(ys,Ge=>{Ae()&&Ge(Vl)})}var hc=A(ys,2);{var Ju=Ge=>{ka(Ge,{get shifted(){return u()},get captions(){return $e()},get position(){return Z()},get playerSize(){return z()}})};V(hc,Ge=>{pe().value!=="off"&&Ge(Ju)})}var _c=A(hc,2);{var ep=Ge=>{var ni=Y3();ni.__contextmenu=ki,ni.__click=[K3,G,mi,f,jt,hi];var Mo=_(ni);Jd(Mo,{}),g(ni),$(Ge,ni)};V(_c,Ge=>{a()&&Ge(ep)})}var bc=A(_c,2);{var Ba=Ge=>{let ni=h(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),Mo=h(()=>r()==="ads"),Ws=h(()=>e.canRewindLive&&qe()!==0);jd(Ge,{get bottomHidden(){return s(ni)},get bottomNoSmooth(){return L()},get showControls(){return u()},get isAds(){return s(Mo)},get canRewindLive(){return s(Ws)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Tt()},get nextButtonActive(){return ie()},get prevButtonActive(){return Nt()},get isOneVideoPlaylist(){return xe()},customFullscreenSupported:Dn,toggleFullscreen:Kt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(An)},set playerControlsWrapperRef(st){B(An,st,!0)},get playerControlsRef(){return s(rn)},set playerControlsRef(st){B(rn,st,!0)}})};V(bc,Ge=>{Ne()&&Ge(Ba)})}var $c=A(bc,2);{var yc=Ge=>{var ni=j3(),Mo=_(ni);let Ws=h(()=>{var st;return(st=s(rn))==null?void 0:st.clientHeight});nc(Mo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(Ws)},returnFocus:()=>{var st;return(st=Et())==null?void 0:st.focus()},get ref(){return s(sn)},set ref(st){B(sn,st,!0)}}),g(ni),$(Ge,ni)};V($c,Ge=>{!Ae()&&r()!=="ads"&&Ge(yc)})}var Rl=A($c,2);let tp=h(()=>!s(ir));wd(Rl,{get isLive(){return Xe()},get isHidden(){return s(tp)},get isPlaying(){return Ie()},get position(){return Z()},get duration(){return qe()}});var Nl=A(Rl,2);Hm(Nl,{get data(){return hn}});var Oa=A(Nl,2);If(Oa,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=Et())==null?void 0:Ge.focus()},get visible(){return G()},get playerContainerRef(){return s(yi)},get controlsContainerRef(){return s(An)},get position(){return oe()},get menuElementRef(){return s(fo)},set menuElementRef(Ge){B(fo,Ge,!0)}});var Bl=A(Oa,2);{var ip=Ge=>{rc(Ge,{onClose:Gi,onSelectAutoQuality:()=>{bo("auto"),Gi()}})};V(Bl,Ge=>{s(tr)&&Ge(ip)})}var Ol=A(Bl,2);{var op=Ge=>{ba(Ge,{})};V(Ol,Ge=>{s(Io)&&Ge(op)})}var xc=A(Ol,2);{var np=Ge=>{Nf(Ge,{})};V(xc,Ge=>{Te()&&Ge(np)})}var rp=A(xc,2);{var Da=Ge=>{Ed(Ge,{})};V(rp,Ge=>{Ke()&&Ge(Da)})}$(Gt,xi)}),$(we,mt)},$$slots:{default:!0}}),we=>Et(we),()=>Et());var Kr=A(Fn,2);tt(Kr,we=>B(lt,we),()=>s(lt)),g(ji),tt(ji,we=>B(yi,we),()=>s(yi));var lr=A(ji,2);{var ss=we=>{var he=J3();$(we,he)};V(lr,we=>{rt()&&we(ss)})}Ct("mouseenter",ji,Pi),Ct("mouseleave",ji,ln),Ct("click",ji,bi,!0),Ct("focusin",ji,oo,!0),$(t,jo),H(),o()}dt(["mousemove","contextmenu","click"]);var Us=require("@vkontakte/videoplayer-core/es2018"),c0=require("@vkontakte/videoplayer-shared/es2018");var ix=M('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),ox=M("<div><!></div>"),nx={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;
|
|
342
342
|
animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
|
|
343
343
|
.triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
|
|
344
344
|
.triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
|
|
@@ -354,7 +354,7 @@ Try switching the\xA0quality to\xA0Auto.`},Xh=F_;var gs=new Map;gs.set(ll.Interf
|
|
|
354
354
|
100% {
|
|
355
355
|
opacity: 0;
|
|
356
356
|
}
|
|
357
|
-
}.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 Du(t,e){D(e,!0),W(t,nx);let i=m(e,"seekStep",3,0),o=j(!1),n=0,r=0,l=j(oi(i())),d=v=>{v.stopPropagation(),r+=1,B(l,i()*(r-1)),r===1?e.handleSingleFirstClick(v):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{r=0,B(o,!1)},300)};In(()=>{window.clearTimeout(n)});var a=ox();a.__click=d;var u=_(a);{var f=v=>{var p=ix(),$=ve(p),w=A($,2),y=_(w),S=_(y),T=A(S,2),k=A(T,2);g(y);var P=A(y,2),I=_(P,!0);g(P),g(w),O(E=>{var L,q,z,U;J($,1,`semicircle ${(L=e.side)!=null?L:""}`,"svelte-nhq2ld"),J(S,1,`triangle ${(q=e.side)!=null?q:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),J(k,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),he(I,E)},[()=>F("doubletap_seek_step",{seconds:s(l).toFixed(0)})]),b(v,p)};V(u,v=>{s(o)&&v(f)})}g(a),O(()=>{var v;return J(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),H()}lt(["click"]);var rx=(t,e,i)=>{e(!1),i()},sx=M('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),ax={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 bv(t,e){D(e,!0),W(t,ax);let[i,o]=Be(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),$()};Ot(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=He(),T=ve(S);{var k=P=>{var I=sx(),E=A(ve(I),2),L=_(E),q=_(L),z=_(q,!0);g(q);var U=A(q,2);ba(U,{onClick:y}),g(L);var G=A(L,2);G.__click=[rx,u,v];var re=_(G),Y=_(re),ce=_(Y);let ae;var Ae=A(ce,2);{var Ve=te=>{Id(te,{get isRunning(){return r()},onTimerEnded:w})};V(Ae,te=>{n()&&te(Ve)})}g(Y),g(re);var me=A(re,2),ue=_(me),Le=_(ue,!0);g(ue),g(me),g(G),g(E),O((te,N)=>{he(z,te),st(Y,`background-image: url('${e.thumb}')`),ae=J(ce,1,"thumb-overlay svelte-1qdxi6t",null,ae,N),he(Le,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(P,I)};V(T,P=>{e.isHide||P(k)})}b(t,S),H(),o()}lt(["click"]);var n0=require("@vkontakte/videoplayer-core/es2018");var r0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ot(()=>{n0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),In(()=>{i==null||i(),clearTimeout(o)})};var s0=require("@vkontakte/videoplayer-core/es2018");var Hu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var a0=require("@vkontakte/videoplayer-core/es2018"),l0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:r,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>a0.clientChecker.device.isIOS&&$e(l)===s0.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=$=>{if(v(),!f()||!$)return;let w=u();if(!w)return;let y=new Hu(w),S=$e(d),T=$e(r),k=$e(n);for(let E of S)T.some(q=>q.value===E.id)&&y.attach(E,k.value===E.id);let P=d.subscribe(E=>{for(let L of E)y.updateSrc(L)}),I=()=>{let E=y.getCurrentShowingId();o($e(r).find(L=>L.value===E))};w.textTracks.addEventListener("change",I),a=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",I)}};Ot(()=>i.subscribe(p)),In(v)};var lx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},dx=M("<!> <!>",1),cx=M("<div><!></div>"),ux=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),px=M("<div><!></div>"),fx=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),mx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),vx=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),gx={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 $v(t,e){var Ur,wr;D(e,!0),W(t,gx);let[i,o]=Be(),n=()=>C(Tt,"$playerPhase",i),r=()=>C(zi,"$isLoaderVisible",i),l=()=>C(Je,"$adPlaybackState",i),d=()=>C(ui,"$crashed",i),a=()=>C(Vn,"$notificationsToShow$",i),u=()=>C(Re,"$playbackState$",i),f=()=>C(xe,"$graphIsOpened$",i),v=()=>C(ci,"$interactiveHideMobileControls",i),p=()=>C(Gt,"$isEnded$",i),$=()=>C(Ho,"$isInteractiveExpectation$",i),w=()=>C(mt,"$controlsVisible",i),y=()=>C(Ci,"$touched",i),S=()=>C(An,"$autoplayNextEnabled$",i),T=()=>C(dt,"$postrollPassed",i),k=()=>C(Rn,"$bottomNoSmooth",i),P=()=>C(It,"$videoSize",i),I=()=>C(Li,"$playerSize",i),E=()=>C(xt,"$isFullscreen",i),L=()=>C(Fe,"$position$",i),q=()=>C(Mt,"$duration$",i),z=()=>C(Uo,"$loadedMetadata",i),U=()=>C(it,"$settingsMenuVisible",i),G=()=>C(fi,"$scrubbingInProgress",i),re=()=>C(Ui,"$volumeChangingInProgress",i),Y=()=>C(fo,"$chromecastConnected$",i),ce=()=>C(Ai,"$isControlsAvailable",i),ae=()=>C(Vi,"$isInteractiveTime$",i),Ae=()=>C(Mi,"$isActiveLive",i),Ve=()=>C(Dt,"$settingsMenuOpenedByKeyboard",i),me=()=>C(fe,"$language$",i),ue=()=>C(ai,"$disabledControls$",i),Le=()=>C(Do,"$is3DVideo",i),te=()=>C($i,"$icon3DVideoVisible",i),N=()=>C(Pt,"$chromecastDeviceName$",i),Qe=()=>C(Wi,"$currentSubtitle$",i),ee=()=>C(ei,"$currentSubtitleCaptions$",i),We=()=>C(tr,"$realDuration$",i),le=()=>C(qt,"$isLive$",i),pe=()=>C(di,"$isPlaying$",i),be=()=>C(po,"$debugPanelVisible",i),Z=m(e,"videoContainer",15),qe=m(e,"adsSlotId",3,void 0),Ze=m(e,"adsParams",3,void 0),Ie=m(e,"adsPreviewParam",3,void 0),oe=m(e,"adsAutoplayParam",3,void 0),Te=m(e,"duration",3,void 0),Ke=m(e,"logoTargetUrl",3,""),rt=m(e,"showNextPrevButtons",3,!1),nt=m(e,"nextButtonActive",3,!1),Lt=m(e,"prevButtonActive",3,!1),et=m(e,"endScreenVideoTitle",3,void 0),ct=m(e,"endScreenVideoThumb",3,void 0),Qt=m(e,"isOneVideoPlaylist",3,!1),ni=m(e,"shadowRootContainer",3,void 0),Kt=m(e,"outerContainerRef",3,void 0),St=m(e,"showMiniTimer",3,!1),ie=m(e,"fullScreenTarget",3,void 0),Vt=m(e,"playerStarted",3,!1),ge=m(e,"showEndScreen",3,!0),{notifications$:X,graphIsOpened$:xe}=uo(),De=e.store.getLogger().createComponentLog("Root component"),fe=e.store.interfaceLanguage$,Re=e.store.state.playbackState$,Je=e.store.ads.playbackState,Fe=e.store.state.positionWithScrubbing$,Mt=e.store.state.duration$,Tt=e.store.playerPhase,xt=e.store.ui.isFullscreen,mt=e.store.ui.controlsVisible,Ai=e.store.ui.isControlsAvailable,ci=e.store.ui.interactiveHideMobileControls,it=e.store.ui.settingsMenu.visible$,Dt=e.store.ui.settingsMenu.openedByBtnKeyboard$,fi=e.store.ui.scrubbingInProgress,Ui=e.store.ui.volumeChangingInProgress,po=e.store.ui.debugPanelVisible,zi=e.store.state.isLoaderVisible,Gt=e.store.state.isEnded$,fo=e.store.state.chromecastConnected$,Pt=e.store.state.chromecastDeviceName$,dt=e.store.ads.postrollPassed,mi=e.store.ui.mobileUnmuteButtonExpanded,Q=e.store.ui.mobileUnmuteButtonVisible,qt=e.store.state.isLive$,di=e.store.state.isPlaying$,Mi=e.store.state.isActiveLive$,si=e.store.state.isRewindableLive$,ui=e.store.state.crashed$,pt=e.store.webApi.annotationsApi,tt=e.store.webApi.pictureInPictureApi,It=e.store.state.videoSize$,Wi=e.store.state.currentSubtitle$,ei=e.store.state.currentSubtitleCaptions$,tr=e.store.state.duration$,Li=e.store.ui.playerSize,Do=e.store.ui.is3DVideo,$i=e.store.ui.icon3DVideoVisible,ht=e.store.state.isInteractive,Vi=e.store.state.isInteractiveTime$,Ho=e.store.state.isInteractiveExpectation$,Pn=e.store.state.hasInteractiveBranches,ai=e.store.ui.controls.disabledControls$,Ci=e.store.ui.touched,Fo=e.store.ui.overlayContainer$,An=e.store.ui.autoplayNextEnabled$,Uo=e.store.state.loadedMetadata$,wo=e.store.actions.internal.closeSettingsMenu,hn=(Ur=e.store.callbacks)==null?void 0:Ur.onDisabledPlayPrevChapterClick,tn=(wr=e.store.callbacks)==null?void 0:wr.onDisabledSeekToInteractiveClick,mo=e.store.actions.internal.setQuality,Co=j(void 0),Dr=j(void 0),_r=j(void 0),ir=j(void 0),or,nr,Mn,rs=h(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),Ln=j(void 0),{closeNotification:Ri,notificationsToShow$:Vn}=X,on=h(()=>!!a().slow_video),nn=()=>Ri("slow_video"),Rn=se(!1),Nn,zo=j(!1),Hr=h(()=>u()!==Ws.PlaybackState.PLAYING),Bn=j(!1),rr=h(()=>f()||v()||!s(zo)&&(p()&&!!Pn||s(Hr)&&$())),qi=j(!0),So=h(()=>e.uiConfig.features.thumbTimer&&St()&&n()==="video"&&!w()&&!d()&&!ht&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),at=j(!1),jt=h(()=>(ge()||e.showAutoplayNext&&S())&&!!et()&&!!ct()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!s(at)),br=j(!1);tt==null||tt.setContext(Wl());let On=_t=>{clearTimeout(nr),_t&&(Q.set(!0),mi.set(!0),nr=setTimeout(()=>{mi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),ht||Ni(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:On});let _n=()=>{clearTimeout(or),B(zo,!1),v()&&ci.set(!1)},Ni=_t=>{_n(),B(zo,!0),or=setTimeout(()=>B(zo,!1),_t);let Zt=_t-100;Nn=setTimeout(()=>{k()&&Rn.set(!1)},Zt>0?Zt:_t)},Dn=Do.subscribe(_t=>{$i.set(_t),_t&&(clearTimeout(Mn),Mn=setTimeout(()=>$i.set(!1),e.uiConfig.controls.hide360IconTimeout))}),To=async(_t=Vs())=>{var Zt,qo,go,oo,sn,zn;if(_t&&!Ws.clientChecker.device.isIOS){let ho=bd(),bn=sr(),an=Ws.clientChecker.browser.isSamsungBrowser&&ho===ni();_t=ho===bn||an}if(_t){Ni(e.uiConfig.controls.hideTimeoutFullscreen);try{await(tt==null?void 0:tt.remove())}catch(ho){De({message:String(ho)})}try{let ho=(Zt=P())!=null&&Zt.width&&((qo=P())!=null&&qo.height)?P():I();await o1(ho)}catch(ho){De({message:String(ho)})}}xt.set(_t),e.store.getAdmanWrapper().setFullscreen(_t),E()?(oo=(go=e.store.callbacks)==null?void 0:go.onFullscreenEnter)==null||oo.call(go):(zn=(sn=e.store.callbacks)==null?void 0:sn.onFullscreenExit)==null||zn.call(sn)},Hn=_t=>{let Zt=_t;Li.set({width:Zt.target.width,height:Zt.target.height})};Ot(()=>{var _t;return uu(To),e.uiConfig.features.annotationsInside&&(pt==null||pt.init(s(Co))),va(tt)&&(tt==null||tt.assignPlayerContainer(s(Co)),tt==null||tt.registryExternalEventHandlers({resize:Hn})),B(qi,!Ws.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((_t=Z().parentElement)==null||_t.insertBefore(e.interactiveContainer,Z().nextSibling)),()=>{clearTimeout(or),clearTimeout(Nn),clearTimeout(nr),clearTimeout(Mn),Dn(),tt==null||tt.dispose().catch(Zt=>{De({message:String(Zt)})}),pu(To)}});let Eo=j(!0),Fn=j(!0),Un=_t=>{let Zt=L()+(_t==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Zt<0?(B(Eo,!1),Zt=0):Zt>=q()&&(B(Fn,!1),Zt=q()),B(Bn,!0),e.seekTime(Zt)},sr=()=>{let _t=Ws.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Kt()?s(Co):Kt(),Zt=_t.getRootNode(),qo=Zt instanceof ShadowRoot?Zt.host:Zt,go=ie()instanceof HTMLElement&&ie().contains(qo);return e.uiConfig.allowChangingFullscreenTarget&&ie()&&go?ie():_t},$r=async()=>{try{if(Vs())await cu(document),De({message:"exit fullscreen"});else{if(De({message:"request fullscreen"}),Ws.clientChecker.device.isIOS&&!z())return;await du(sr())}}catch(_t){De({message:String(_t)})}},ar=()=>{wo()},Wo=_t=>{if(_t.preventDefault(),U()){ar();return}if(!Vt()){e.firstStart(),Ni(e.uiConfig.controls.hideTimeoutCursor);return}B(Bn,!1),w()?_n():Ni(e.uiConfig.controls.hideTimeoutMobile)},Fr=()=>{Ci.set(!0)},lr=()=>{ht||(Rn.set(!0),Ni(e.uiConfig.controls.hideTimeoutCursor))},yr=_t=>{hn&&(hn(_t),Ni(e.uiConfig.controls.hideTimeoutMobile))},rn=_t=>{tn&&(tn(_t),Ni(e.uiConfig.controls.hideTimeoutMobile))};ze(()=>{Fo.set(s(Ln))}),ze(()=>{mt.set((s(Hr)||U()||G()||re()||Y()||!s(jt)&&(p()||s(zo)&&!s(Bn)))&&!s(rr)&&n()==="video"&&!d()&&ce())}),ze(()=>{!G()&&s(br)&&!ae()&&Ni(e.uiConfig.controls.hideTimeoutMobile),B(br,G(),!0)}),ze(()=>{B(Eo,L()>0),B(Fn,!Ae()&&L()<q(),!0)}),ze(()=>{Sd(s(ir),U(),Ve(),!0)});let Yt=F("aria_label_video_player"),vo=F("video360");r0({fullScreenChangeHandler:To,getFullscreenTarget:sr}),l0({store:e.store,getFullscreenTarget:sr});var Io=vx();Ct("blur",Js,ar);var dr=_(Io);Ra(dr,{onClick:Wo,get videoContainer(){return Z()},set videoContainer(_t){Z(_t)}});var xr=A(dr,2);sa(xr,()=>"slot",!1,(_t,Zt)=>{ke(_t,()=>({name:Va}))});var Si=A(xr,2);ra(Si,me,_t=>{var Zt=mx(),qo=ve(Zt);let go=h(()=>n()!=="thumb"||d()||ht&&e.autoplay);Aa(qo,{get hidden(){return s(go)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var oo=A(qo,2);{var sn=ye=>{var yt=dx(),zt=ve(yt);{var Ti=wt=>{let ti=h(()=>e.uiConfig.controls.seekStepMobile/1e3);Du(wt,{side:"left",get seekStep(){return s(ti)},handleSingleFirstClick:Wo,handleSecondClick:()=>Un("backward")})};V(zt,wt=>{s(Eo)&&wt(Ti)})}var bi=A(zt,2);{var Ue=wt=>{let ti=h(()=>e.uiConfig.controls.seekStepMobile/1e3);Du(wt,{side:"right",get seekStep(){return s(ti)},handleSingleFirstClick:Wo,handleSecondClick:()=>Un("forward")})};V(bi,wt=>{s(Fn)&&wt(Ue)})}b(ye,yt)};V(oo,ye=>{e.canRewindLive&&si&&!ue().has("TIMELINE")&&ye(sn)})}var zn=A(oo,2);{var ho=ye=>{let yt=h(()=>{var zt;return(zt=e.live)==null?void 0:zt.startTime});ec(ye,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(yt)}})};V(zn,ye=>{n()==="LiveWaitingStart"&&ye(ho)})}var bn=A(zn,2);{var an=ye=>{Ma(ye,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(bn,ye=>{n()==="LiveWaitingRecover"&&ye(an)})}var Xe=A(bn,2);{var Rt=ye=>{Ma(ye,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Xe,ye=>{n()==="LiveWaitingRecord"&&ye(Rt)})}var hi=A(Xe,2);{var _o=ye=>{var yt=cx();let zt;var Ti=_(yt);$d(Ti,{get adsSlotId(){return qe()},get adsParams(){return Ze()},get adsPreviewParam(){return Ie()},get adsAutoplayParam(){return oe()},get duration(){return Te()}}),g(yt),O(bi=>zt=J(yt,1,"ads-container svelte-7yl31d",null,zt,bi),[()=>({hidden:n()!=="ads"})]),b(ye,yt)};V(hi,ye=>{e.showAds&&Vt()&&ye(_o)})}var no=A(hi,2);{var Ko=ye=>{let yt=h(()=>!ge()&&e.showAutoplayNext&&S());bv(ye,{get title(){return et()},get thumb(){return ct()},get isHide(){return s(yt)},clickCloseIcon:()=>B(at,!0)})};V(no,ye=>{s(jt)&&et()&&ct()&&ye(Ko)})}var Xi=A(no,2);{var Qo=ye=>{Zd(ye,{})};V(Xi,ye=>{Le()&&ye(Qo)})}var ko=A(Xi,2);{var Ki=ye=>{var yt=ux(),zt=_(yt);_d(zt,{get"aria-label"(){return vo}}),g(yt),b(ye,yt)};V(ko,ye=>{te()&&ye(Ki)})}var _i=A(ko,2);{var Go=ye=>{Xd(ye,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};V(_i,ye=>{Y()&&ye(Go)})}var ln=A(_i,2);{var ro=ye=>{Pa(ye,{get shifted(){return w()},get captions(){return ee()},get position(){return L()},get playerSize(){return I()},isMobile:!0})};V(ln,ye=>{Qe().value!=="off"&&ye(ro)})}var Cr=A(ln,2);{var zr=ye=>{var yt=px();yt.__click=[lx,U,it,ar];var zt=_(yt);Jd(zt,{}),g(yt),b(ye,yt)};V(Cr,ye=>{d()&&ye(zr)})}var Wr=A(Cr,2);{var $n=ye=>{let yt=h(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),zt=h(()=>n()==="ads"),Ti=h(()=>e.canRewindLive&&We()!==0);jd(ye,{get bottomHidden(){return s(yt)},get showControls(){return w()},get bottomNoSmooth(){return k()},get isAds(){return s(zt)},get canRewindLive(){return s(Ti)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ke()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return rt()},get nextButtonActive(){return nt()},get prevButtonActive(){return Lt()},get isOneVideoPlaylist(){return Qt()},get customFullscreenSupported(){return s(qi)},get endScreenShown(){return s(jt)},toggleFullscreen:$r,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:yr,onDisabledSeekToInteractiveClick:rn,get playerControlsWrapperRef(){return s(Dr)},set playerControlsWrapperRef(bi){B(Dr,bi,!0)},get playerControlsRef(){return s(_r)},set playerControlsRef(bi){B(_r,bi,!0)}})};V(Wr,ye=>{Vt()&&ye($n)})}var Wn=A(Wr,2);{var qr=ye=>{var yt=fx(),zt=_(yt);nc(zt,{get supportLink(){return e.supportLink},get returnFocus(){return d0.noop},get ref(){return s(ir)},set ref(Ti){B(ir,Ti,!0)}}),g(yt),b(ye,yt)};V(Wn,ye=>{U()&&ye(qr)})}var so=A(Wn,2);let Yo=h(()=>!s(So));wd(so,{get isLive(){return le()},get isHidden(){return s(Yo)},get isPlaying(){return pe()},get position(){return L()},get duration(){return q()}});var qn=A(so,2);{var cr=ye=>{$a(ye,{})};V(qn,ye=>{s(rs)&&ye(cr)})}var ur=A(qn,2);{var Kr=ye=>{Ed(ye,{})};V(ur,ye=>{be()&&ye(Kr)})}var as=A(ur,2);{var Se=ye=>{rc(ye,{onClose:nn,onSelectAutoQuality:()=>{mo("auto"),nn()}})};V(as,ye=>{s(on)&&ye(Se)})}b(_t,Zt)});var ss=A(Si,2);ot(ss,_t=>B(Ln,_t),()=>s(Ln)),g(Io),ot(Io,_t=>B(Co,_t),()=>s(Co)),O(()=>Ne(Io,"aria-label",Yt)),Ct("click",Io,Fr,!0),Ct("focusin",Io,lr,!0),b(t,Io),H(),o()}lt(["click"]);function Fu(t){let e="";return ji(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),ji(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),ji(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),ji(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),ji(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),ji(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),ji(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),ji(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),ji(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),ji(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),ji(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),ji(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),ji(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),ji(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),ji(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),ji(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),ji(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),ji(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),ji(t.font)&&(e+=`--font:${t.font};`),ji(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),ji(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function ji(t){return typeof t=="string"&&!t.includes(";")}var c0=require("@vkontakte/videoplayer-shared/es2018");var hx=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),_x={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 yv(t,e){D(e,!0),W(t,_x);let[i,o]=Be(),n=()=>C(re,"$playerSize",i),r=()=>C(E,"$isPlaying$",i),l=()=>C(P,"$duration$",i),d=()=>C(z,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),u=()=>C(k,"$crashed$",i),f=()=>C(L,"$currentSubtitle$",i),v=()=>C(q,"$currentSubtitleCaptions$",i),p=()=>C(I,"$positionExact$",i),$=()=>C(U,"$isLive$",i),w=()=>C(G,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:k,duration$:P,positionExact$:I,isPlaying$:E,currentSubtitle$:L,currentSubtitleCaptions$:q,positionWithScrubbing$:z,isLive$:U,isRewindableLive$:G},ui:{playerSize:re,controls:Y},actions:{internal:{getVideoElement:ce}}}=Ee(),ae=8,Ae=j(!1),Ve=oi({}),me=()=>{B(Ae,!0)},ue=()=>{B(Ae,!1)},Le=(0,c0.debounceFn)($l,260);ze(()=>{n(),Le(ce(),Y,Ve,s(Ae))});let te=h(()=>r()?vn(l()-d()):vn(isFinite(l())?l():y()));var N=hx(),Qe=_(N);Ra(Qe,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Te){S(Te)}});var ee=A(Qe,2);sa(ee,()=>"slot",!1,(Te,Ke)=>{ke(Te,()=>({name:Va}))});var We=A(ee,2);let le=h(()=>a()!=="thumb"||u());Aa(We,{get hidden(){return s(le)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var pe=A(We,2);{var be=Te=>{Pa(Te,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return n()}})};V(pe,Te=>{f().value!=="off"&&Te(be)})}var Z=A(pe,2),qe=_(Z);xd(qe,{get isLive(){return $()},get isPlaying(){return r()},get time(){return s(te)}}),g(Z);var Ze=A(Z,2);let Ie;var oe=_(Ze);Ca(oe,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ae,tooltipRightOffset:ae,get ref(){return Ve.timeline},set ref(Te){Ve.timeline=Te}}),g(Ze),g(N),O(Te=>Ie=J(Ze,1,"timeline svelte-1qfjf44",null,Ie,Te),[()=>({visible:s(Ae)})]),Ct("mouseenter",N,me),Ct("mouseleave",N,ue),b(t,N),H(),o()}var bx=M("<div><!></div>"),$x={hash:"svelte-oba660",code:`.root.svelte-oba660 {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
|
|
357
|
+
}.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 Du(t,e){D(e,!0),W(t,nx);let i=m(e,"seekStep",3,0),o=j(!1),n=0,r=0,l=j(ii(i())),d=v=>{v.stopPropagation(),r+=1,B(l,i()*(r-1)),r===1?e.handleSingleFirstClick(v):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{r=0,B(o,!1)},300)};Cn(()=>{window.clearTimeout(n)});var a=ox();a.__click=d;var p=_(a);{var f=v=>{var u=ix(),b=ve(u),w=A(b,2),y=_(w),C=_(y),T=A(C,2),k=A(T,2);g(y);var P=A(y,2),I=_(P,!0);g(P),g(w),O(E=>{var L,q,z,U;J(b,1,`semicircle ${(L=e.side)!=null?L:""}`,"svelte-nhq2ld"),J(C,1,`triangle ${(q=e.side)!=null?q:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),J(k,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),_e(I,E)},[()=>F("doubletap_seek_step",{seconds:s(l).toFixed(0)})]),$(v,u)};V(p,v=>{s(o)&&v(f)})}g(a),O(()=>{var v;return J(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),$(t,a),H()}dt(["click"]);var rx=(t,e,i)=>{e(!1),i()},sx=M('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),ax={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 $v(t,e){D(e,!0),W(t,ax);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),r=()=>S(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),b()};Dt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var C=Fe(),T=ve(C);{var k=P=>{var I=sx(),E=A(ve(I),2),L=_(E),q=_(L),z=_(q,!0);g(q);var U=A(q,2);_a(U,{onClick:y}),g(L);var G=A(L,2);G.__click=[rx,p,v];var re=_(G),Y=_(re),ce=_(Y);let ae;var Ae=A(ce,2);{var Re=te=>{Id(te,{get isRunning(){return r()},onTimerEnded:w})};V(Ae,te=>{n()&&te(Re)})}g(Y),g(re);var me=A(re,2),ue=_(me),Ve=_(ue,!0);g(ue),g(me),g(G),g(E),O((te,N)=>{_e(z,te),at(Y,`background-image: url('${e.thumb}')`),ae=J(ce,1,"thumb-overlay svelte-1qdxi6t",null,ae,N),_e(Ve,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(P,I)};V(T,P=>{e.isHide||P(k)})}$(t,C),H(),o()}dt(["click"]);var r0=require("@vkontakte/videoplayer-core/es2018");var s0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Dt(()=>{r0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),Cn(()=>{i==null||i(),clearTimeout(o)})};var a0=require("@vkontakte/videoplayer-core/es2018");var Hu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var l0=require("@vkontakte/videoplayer-core/es2018"),d0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:r,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,p=()=>e().querySelector("video"),f=()=>l0.clientChecker.device.isIOS&&ye(l)===a0.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},u=b=>{if(v(),!f()||!b)return;let w=p();if(!w)return;let y=new Hu(w),C=ye(d),T=ye(r),k=ye(n);for(let E of C)T.some(q=>q.value===E.id)&&y.attach(E,k.value===E.id);let P=d.subscribe(E=>{for(let L of E)y.updateSrc(L)}),I=()=>{let E=y.getCurrentShowingId();o(ye(r).find(L=>L.value===E))};w.textTracks.addEventListener("change",I),a=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",I)}};Dt(()=>i.subscribe(u)),Cn(v)};var lx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},dx=M("<!> <!>",1),cx=M("<div><!></div>"),ux=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),px=M("<div><!></div>"),fx=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),mx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),vx=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),gx={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 yv(t,e){var rr,sr;D(e,!0),W(t,gx);let[i,o]=Be(),n=()=>S(Et,"$playerPhase",i),r=()=>S(Ki,"$isLoaderVisible",i),l=()=>S(Je,"$adPlaybackState",i),d=()=>S(ui,"$crashed",i),a=()=>S(An,"$notificationsToShow$",i),p=()=>S(Ne,"$playbackState$",i),f=()=>S(xe,"$graphIsOpened$",i),v=()=>S(ci,"$interactiveHideMobileControls",i),u=()=>S(jt,"$isEnded$",i),b=()=>S(Fo,"$isInteractiveExpectation$",i),w=()=>S(_t,"$controlsVisible",i),y=()=>S(Ei,"$touched",i),C=()=>S(In,"$autoplayNextEnabled$",i),T=()=>S(ct,"$postrollPassed",i),k=()=>S(Mn,"$bottomNoSmooth",i),P=()=>S(kt,"$videoSize",i),I=()=>S(Ti,"$playerSize",i),E=()=>S(St,"$isFullscreen",i),L=()=>S(Ue,"$position$",i),q=()=>S(Lt,"$duration$",i),z=()=>S(zo,"$loadedMetadata",i),U=()=>S(ot,"$settingsMenuVisible",i),G=()=>S(fi,"$scrubbingInProgress",i),re=()=>S(qi,"$volumeChangingInProgress",i),Y=()=>S(_o,"$chromecastConnected$",i),ce=()=>S(Ri,"$isControlsAvailable",i),ae=()=>S(Bi,"$isInteractiveTime$",i),Ae=()=>S(Ni,"$isActiveLive",i),Re=()=>S(Ht,"$settingsMenuOpenedByKeyboard",i),me=()=>S(fe,"$language$",i),ue=()=>S(ai,"$disabledControls$",i),Ve=()=>S(To,"$is3DVideo",i),te=()=>S($i,"$icon3DVideoVisible",i),N=()=>S(At,"$chromecastDeviceName$",i),Qe=()=>S(Qi,"$currentSubtitle$",i),ee=()=>S(ti,"$currentSubtitleCaptions$",i),We=()=>S(Zn,"$realDuration$",i),le=()=>S(qt,"$isLive$",i),pe=()=>S(di,"$isPlaying$",i),$e=()=>S(ho,"$debugPanelVisible",i),Z=m(e,"videoContainer",15),qe=m(e,"adsSlotId",3,void 0),Xe=m(e,"adsParams",3,void 0),Ie=m(e,"adsPreviewParam",3,void 0),oe=m(e,"adsAutoplayParam",3,void 0),Te=m(e,"duration",3,void 0),Ke=m(e,"logoTargetUrl",3,""),rt=m(e,"showNextPrevButtons",3,!1),nt=m(e,"nextButtonActive",3,!1),Rt=m(e,"prevButtonActive",3,!1),et=m(e,"endScreenVideoTitle",3,void 0),pt=m(e,"endScreenVideoThumb",3,void 0),Yt=m(e,"isOneVideoPlaylist",3,!1),oi=m(e,"shadowRootContainer",3,void 0),Qt=m(e,"outerContainerRef",3,void 0),Tt=m(e,"showMiniTimer",3,!1),ie=m(e,"fullScreenTarget",3,void 0),Nt=m(e,"playerStarted",3,!1),ge=m(e,"showEndScreen",3,!0),{notifications$:X,graphIsOpened$:xe}=go(),He=e.store.getLogger().createComponentLog("Root component"),fe=e.store.interfaceLanguage$,Ne=e.store.state.playbackState$,Je=e.store.ads.playbackState,Ue=e.store.state.positionWithScrubbing$,Lt=e.store.state.duration$,Et=e.store.playerPhase,St=e.store.ui.isFullscreen,_t=e.store.ui.controlsVisible,Ri=e.store.ui.isControlsAvailable,ci=e.store.ui.interactiveHideMobileControls,ot=e.store.ui.settingsMenu.visible$,Ht=e.store.ui.settingsMenu.openedByBtnKeyboard$,fi=e.store.ui.scrubbingInProgress,qi=e.store.ui.volumeChangingInProgress,ho=e.store.ui.debugPanelVisible,Ki=e.store.state.isLoaderVisible,jt=e.store.state.isEnded$,_o=e.store.state.chromecastConnected$,At=e.store.state.chromecastDeviceName$,ct=e.store.ads.postrollPassed,mi=e.store.ui.mobileUnmuteButtonExpanded,Q=e.store.ui.mobileUnmuteButtonVisible,qt=e.store.state.isLive$,di=e.store.state.isPlaying$,Ni=e.store.state.isActiveLive$,si=e.store.state.isRewindableLive$,ui=e.store.state.crashed$,vt=e.store.webApi.annotationsApi,it=e.store.webApi.pictureInPictureApi,kt=e.store.state.videoSize$,Qi=e.store.state.currentSubtitle$,ti=e.store.state.currentSubtitleCaptions$,Zn=e.store.state.duration$,Ti=e.store.ui.playerSize,To=e.store.ui.is3DVideo,$i=e.store.ui.icon3DVideoVisible,yt=e.store.state.isInteractive,Bi=e.store.state.isInteractiveTime$,Fo=e.store.state.isInteractiveExpectation$,En=e.store.state.hasInteractiveBranches,ai=e.store.ui.controls.disabledControls$,Ei=e.store.ui.touched,Uo=e.store.ui.overlayContainer$,In=e.store.ui.autoplayNextEnabled$,zo=e.store.state.loadedMetadata$,Eo=e.store.actions.internal.closeSettingsMenu,gn=(rr=e.store.callbacks)==null?void 0:rr.onDisabledPlayPrevChapterClick,nn=(sr=e.store.callbacks)==null?void 0:sr.onDisabledSeekToInteractiveClick,bo=e.store.actions.internal.setQuality,uo=j(void 0),Br=j(void 0),vr=j(void 0),Xn=j(void 0),Jn,er,kn,ns=h(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),Pn=j(void 0),{closeNotification:yi,notificationsToShow$:An}=X,rn=h(()=>!!a().slow_video),sn=()=>yi("slow_video"),Mn=se(!1),Ln,Wo=j(!1),Or=h(()=>p()!==Us.PlaybackState.PLAYING),Vn=j(!1),tr=h(()=>f()||v()||!s(Wo)&&(u()&&!!En||s(Or)&&b())),Gi=j(!0),Io=h(()=>e.uiConfig.features.thumbTimer&&Tt()&&n()==="video"&&!w()&&!d()&&!yt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),lt=j(!1),Xt=h(()=>(ge()||e.showAutoplayNext&&C())&&!!et()&&!!pt()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!s(lt)),gr=j(!1);it==null||it.setContext(Wl());let Rn=gt=>{clearTimeout(er),gt&&(Q.set(!0),mi.set(!0),er=setTimeout(()=>{mi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),yt||Oi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Rn});let hn=()=>{clearTimeout(Jn),B(Wo,!1),v()&&ci.set(!1)},Oi=gt=>{hn(),B(Wo,!0),Jn=setTimeout(()=>B(Wo,!1),gt);let Kt=gt-100;Ln=setTimeout(()=>{k()&&Mn.set(!1)},Kt>0?Kt:gt)},Nn=To.subscribe(gt=>{$i.set(gt),gt&&(clearTimeout(kn),kn=setTimeout(()=>$i.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ko=async(gt=Ms())=>{var Kt,hi,ki,Pi,oo,ln;if(gt&&!Us.clientChecker.device.isIOS){let Di=bd(),je=ir(),Vt=Us.clientChecker.browser.isSamsungBrowser&&Di===oi();gt=Di===je||Vt}if(gt){Oi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(it==null?void 0:it.remove())}catch(Di){He({message:String(Di)})}try{let Di=(Kt=P())!=null&&Kt.width&&((hi=P())!=null&&hi.height)?P():I();await n1(Di)}catch(Di){He({message:String(Di)})}}St.set(gt),e.store.getAdmanWrapper().setFullscreen(gt),E()?(Pi=(ki=e.store.callbacks)==null?void 0:ki.onFullscreenEnter)==null||Pi.call(ki):(ln=(oo=e.store.callbacks)==null?void 0:oo.onFullscreenExit)==null||ln.call(oo)},Bn=gt=>{let Kt=gt;Ti.set({width:Kt.target.width,height:Kt.target.height})};Dt(()=>{var gt;return uu(ko),e.uiConfig.features.annotationsInside&&(vt==null||vt.init(s(uo))),ma(it)&&(it==null||it.assignPlayerContainer(s(uo)),it==null||it.registryExternalEventHandlers({resize:Bn})),B(Gi,!Us.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((gt=Z().parentElement)==null||gt.insertBefore(e.interactiveContainer,Z().nextSibling)),()=>{clearTimeout(Jn),clearTimeout(Ln),clearTimeout(er),clearTimeout(kn),Nn(),it==null||it.dispose().catch(Kt=>{He({message:String(Kt)})}),pu(ko)}});let Po=j(!0),On=j(!0),Dn=gt=>{let Kt=L()+(gt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Kt<0?(B(Po,!1),Kt=0):Kt>=q()&&(B(On,!1),Kt=q()),B(Vn,!0),e.seekTime(Kt)},ir=()=>{let gt=Us.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Qt()?s(uo):Qt(),Kt=gt.getRootNode(),hi=Kt instanceof ShadowRoot?Kt.host:Kt,ki=ie()instanceof HTMLElement&&ie().contains(hi);return e.uiConfig.allowChangingFullscreenTarget&&ie()&&ki?ie():gt},hr=async()=>{try{if(Ms())await cu(document),He({message:"exit fullscreen"});else{if(He({message:"request fullscreen"}),Us.clientChecker.device.isIOS&&!z())return;await du(ir())}}catch(gt){He({message:String(gt)})}},or=()=>{Eo()},qo=gt=>{if(gt.preventDefault(),U()){or();return}if(!Nt()){e.firstStart(),Oi(e.uiConfig.controls.hideTimeoutCursor);return}B(Vn,!1),w()?hn():Oi(e.uiConfig.controls.hideTimeoutMobile)},Dr=()=>{Ei.set(!0)},nr=()=>{yt||(Mn.set(!0),Oi(e.uiConfig.controls.hideTimeoutCursor))},_r=gt=>{gn&&(gn(gt),Oi(e.uiConfig.controls.hideTimeoutMobile))},an=gt=>{nn&&(nn(gt),Oi(e.uiConfig.controls.hideTimeoutMobile))};ze(()=>{Uo.set(s(Pn))}),ze(()=>{_t.set((s(Or)||U()||G()||re()||Y()||!s(Xt)&&(u()||s(Wo)&&!s(Vn)))&&!s(tr)&&n()==="video"&&!d()&&ce())}),ze(()=>{!G()&&s(gr)&&!ae()&&Oi(e.uiConfig.controls.hideTimeoutMobile),B(gr,G(),!0)}),ze(()=>{B(Po,L()>0),B(On,!Ae()&&L()<q(),!0)}),ze(()=>{Cd(s(Xn),U(),Re(),!0)});let Zt=F("aria_label_video_player"),$o=F("video360");s0({fullScreenChangeHandler:ko,getFullscreenTarget:ir}),d0({store:e.store,getFullscreenTarget:ir});let br=(gt,Kt)=>{var ki,Pi,oo;let hi=tn(s(uo),{upcomingLiveScreen:gt},"upcomingLiveScreen",Kt);(oo=(Pi=(ki=e.store.callbacks)==null?void 0:ki.uiInfo)==null?void 0:Pi.onUpcomingLiveStateChanged)==null||oo.call(Pi,hi)},$r=(gt,Kt)=>{var ki,Pi,oo;let hi=tn(s(uo),{upcomingLiveScreen:gt},"upcomingLiveScreen",Kt);(oo=(Pi=(ki=e.store.callbacks)==null?void 0:ki.uiInfo)==null?void 0:Pi.onWaitingLiveStateChanged)==null||oo.call(Pi,hi)};var Ko=vx();Ct("blur",Xs,or);var Ii=_(Ko);Va(Ii,{onClick:qo,get videoContainer(){return Z()},set videoContainer(gt){Z(gt)}});var Hr=A(Ii,2);ra(Hr,()=>"slot",!1,(gt,Kt)=>{ke(gt,()=>({name:La}))});var Fr=A(Hr,2);na(Fr,me,gt=>{var Kt=mx(),hi=ve(Kt);let ki=h(()=>n()!=="thumb"||d()||yt&&e.autoplay);Pa(hi,{get hidden(){return s(ki)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Pi=A(hi,2);{var oo=he=>{var mt=dx(),Mt=ve(mt);{var Le=xi=>{let ro=h(()=>e.uiConfig.controls.seekStepMobile/1e3);Du(xi,{side:"left",get seekStep(){return s(ro)},handleSingleFirstClick:qo,handleSecondClick:()=>Dn("backward")})};V(Mt,xi=>{s(Po)&&xi(Le)})}var ut=A(Mt,2);{var Gt=xi=>{let ro=h(()=>e.uiConfig.controls.seekStepMobile/1e3);Du(xi,{side:"right",get seekStep(){return s(ro)},handleSingleFirstClick:qo,handleSecondClick:()=>Dn("forward")})};V(ut,xi=>{s(On)&&xi(Gt)})}$(he,mt)};V(Pi,he=>{e.canRewindLive&&si&&!ue().has("TIMELINE")&&he(oo)})}var ln=A(Pi,2);{var Di=he=>{let mt=h(()=>{var Mt;return(Mt=e.live)==null?void 0:Mt.startTime});ec(he,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(mt)},get playerSize(){return Ti},onUpcomingLiveStateChanged:br,onWaitingLiveStateChanged:$r})};V(ln,he=>{n()==="LiveWaitingStart"&&he(Di)})}var je=A(ln,2);{var Vt=he=>{Aa(he,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(je,he=>{n()==="LiveWaitingRecover"&&he(Vt)})}var _i=A(je,2);{var yo=he=>{Aa(he,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(_i,he=>{n()==="LiveWaitingRecord"&&he(yo)})}var po=A(_i,2);{var Qo=he=>{var mt=cx();let Mt;var Le=_(mt);$d(Le,{get adsSlotId(){return qe()},get adsParams(){return Xe()},get adsPreviewParam(){return Ie()},get adsAutoplayParam(){return oe()},get duration(){return Te()}}),g(mt),O(ut=>Mt=J(mt,1,"ads-container svelte-7yl31d",null,Mt,ut),[()=>({hidden:n()!=="ads"})]),$(he,mt)};V(po,he=>{e.showAds&&Nt()&&he(Qo)})}var no=A(po,2);{var Go=he=>{let mt=h(()=>!ge()&&e.showAutoplayNext&&C());$v(he,{get title(){return et()},get thumb(){return pt()},get isHide(){return s(mt)},clickCloseIcon:()=>B(lt,!0)})};V(no,he=>{s(Xt)&&et()&&pt()&&he(Go)})}var Ao=A(no,2);{var Yi=he=>{Zd(he,{})};V(Ao,he=>{Ve()&&he(Yi)})}var bi=A(Ao,2);{var Yo=he=>{var mt=ux(),Mt=_(mt);_d(Mt,{get"aria-label"(){return $o}}),g(mt),$(he,mt)};V(bi,he=>{te()&&he(Yo)})}var dn=A(bi,2);{var fo=he=>{Xd(he,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};V(dn,he=>{Y()&&he(fo)})}var yr=A(dn,2);{var zr=he=>{ka(he,{get shifted(){return w()},get captions(){return ee()},get position(){return L()},get playerSize(){return I()},isMobile:!0})};V(yr,he=>{Qe().value!=="off"&&he(zr)})}var Wr=A(yr,2);{var _n=he=>{var mt=px();mt.__click=[lx,U,ot,or];var Mt=_(mt);Jd(Mt,{}),g(mt),$(he,mt)};V(Wr,he=>{d()&&he(_n)})}var Hn=A(Wr,2);{var rs=he=>{let mt=h(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Mt=h(()=>n()==="ads"),Le=h(()=>e.canRewindLive&&We()!==0);jd(he,{get bottomHidden(){return s(mt)},get showControls(){return w()},get bottomNoSmooth(){return k()},get isAds(){return s(Mt)},get canRewindLive(){return s(Le)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ke()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return rt()},get nextButtonActive(){return nt()},get prevButtonActive(){return Rt()},get isOneVideoPlaylist(){return Yt()},get customFullscreenSupported(){return s(Gi)},get endScreenShown(){return s(Xt)},toggleFullscreen:hr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:_r,onDisabledSeekToInteractiveClick:an,get playerControlsWrapperRef(){return s(Br)},set playerControlsWrapperRef(ut){B(Br,ut,!0)},get playerControlsRef(){return s(vr)},set playerControlsRef(ut){B(vr,ut,!0)}})};V(Hn,he=>{Nt()&&he(rs)})}var xr=A(Hn,2);{var jo=he=>{var mt=fx(),Mt=_(mt);nc(Mt,{get supportLink(){return e.supportLink},get returnFocus(){return c0.noop},get ref(){return s(Xn)},set ref(Le){B(Xn,Le,!0)}}),g(mt),$(he,mt)};V(xr,he=>{U()&&he(jo)})}var ji=A(xr,2);let Fn=h(()=>!s(Io));wd(ji,{get isLive(){return le()},get isHidden(){return s(Fn)},get isPlaying(){return pe()},get position(){return L()},get duration(){return q()}});var ar=A(ji,2);{var qr=he=>{ba(he,{})};V(ar,he=>{s(ns)&&he(qr)})}var Kr=A(ar,2);{var lr=he=>{Ed(he,{})};V(Kr,he=>{$e()&&he(lr)})}var ss=A(Kr,2);{var we=he=>{rc(he,{onClose:sn,onSelectAutoQuality:()=>{bo("auto"),sn()}})};V(ss,he=>{s(rn)&&he(we)})}$(gt,Kt)});var Ur=A(Fr,2);tt(Ur,gt=>B(Pn,gt),()=>s(Pn)),g(Ko),tt(Ko,gt=>B(uo,gt),()=>s(uo)),O(()=>Oe(Ko,"aria-label",Zt)),Ct("click",Ko,Dr,!0),Ct("focusin",Ko,nr,!0),$(t,Ko),H(),o()}dt(["click"]);function Fu(t){let e="";return to(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),to(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),to(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),to(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),to(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),to(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),to(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),to(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),to(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),to(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),to(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),to(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),to(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),to(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),to(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),to(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),to(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),to(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),to(t.font)&&(e+=`--font:${t.font};`),to(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),to(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function to(t){return typeof t=="string"&&!t.includes(";")}var u0=require("@vkontakte/videoplayer-shared/es2018");var hx=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),_x={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 xv(t,e){D(e,!0),W(t,_x);let[i,o]=Be(),n=()=>S(re,"$playerSize",i),r=()=>S(E,"$isPlaying$",i),l=()=>S(P,"$duration$",i),d=()=>S(z,"$positionWithScrubbing$",i),a=()=>S(T,"$playerPhase",i),p=()=>S(k,"$crashed$",i),f=()=>S(L,"$currentSubtitle$",i),v=()=>S(q,"$currentSubtitleCaptions$",i),u=()=>S(I,"$positionExact$",i),b=()=>S(U,"$isLive$",i),w=()=>S(G,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:k,duration$:P,positionExact$:I,isPlaying$:E,currentSubtitle$:L,currentSubtitleCaptions$:q,positionWithScrubbing$:z,isLive$:U,isRewindableLive$:G},ui:{playerSize:re,controls:Y},actions:{internal:{getVideoElement:ce}}}=Ee(),ae=8,Ae=j(!1),Re=ii({}),me=()=>{B(Ae,!0)},ue=()=>{B(Ae,!1)},Ve=(0,u0.debounceFn)(yl,260);ze(()=>{n(),Ve(ce(),Y,Re,s(Ae))});let te=h(()=>r()?mn(l()-d()):mn(isFinite(l())?l():y()));var N=hx(),Qe=_(N);Va(Qe,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Te){C(Te)}});var ee=A(Qe,2);ra(ee,()=>"slot",!1,(Te,Ke)=>{ke(Te,()=>({name:La}))});var We=A(ee,2);let le=h(()=>a()!=="thumb"||p());Pa(We,{get hidden(){return s(le)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var pe=A(We,2);{var $e=Te=>{ka(Te,{shifted:!1,get captions(){return v()},get position(){return u()},get playerSize(){return n()}})};V(pe,Te=>{f().value!=="off"&&Te($e)})}var Z=A(pe,2),qe=_(Z);xd(qe,{get isLive(){return b()},get isPlaying(){return r()},get time(){return s(te)}}),g(Z);var Xe=A(Z,2);let Ie;var oe=_(Xe);wa(oe,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ae,tooltipRightOffset:ae,get ref(){return Re.timeline},set ref(Te){Re.timeline=Te}}),g(Xe),g(N),O(Te=>Ie=J(Xe,1,"timeline svelte-1qfjf44",null,Ie,Te),[()=>({visible:s(Ae)})]),Ct("mouseenter",N,me),Ct("mouseleave",N,ue),$(t,N),H(),o()}var bx=M("<div><!></div>"),$x={hash:"svelte-oba660",code:`.root.svelte-oba660 {--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;
|
|
358
358
|
|
|
359
359
|
/* USER DEFINED COLORS */
|
|
360
360
|
|
|
@@ -387,5 +387,5 @@ Try switching the\xA0quality to\xA0Auto.`},Xh=F_;var gs=new Map;gs.set(ll.Interf
|
|
|
387
387
|
/* --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;}
|
|
388
388
|
/* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
|
|
389
389
|
|
|
390
|
-
/* \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 xv(t,e){D(e,!0),W(t,$x);let[i,o]=Be(),n=()=>C(Qt,"$isLive$",i),r=m(e,"sources",7),l=m(e,"store",7),d=m(e,"microStoresRoot",7),a=m(e,"videoConfig",7),u=m(e,"uiConfig",7),f=m(e,"title",7),v=m(e,"thumbUrl",7),p=m(e,"interactiveContainer",7),$=m(e,"interactiveController",7),w=m(e,"subtitles",7),y=m(e,"live",7),S=m(e,"preload",7),T=m(e,"autoplay",7),k=m(e,"volume",7,void 0),P=m(e,"muted",7,void 0),I=m(e,"fromTime",7),E=m(e,"canRewindLive",7),L=m(e,"showAds",7),q=m(e,"adsSlotId",7,void 0),z=m(e,"adsParams",7,void 0),U=m(e,"adsPreviewParam",7,void 0),G=m(e,"adsAutoplayParam",7,void 0),re=m(e,"duration",7,void 0),Y=m(e,"logoClickable",7),ce=m(e,"logoHidden",7),ae=m(e,"isMobile",7),Ae=m(e,"showNextPrevButtons",7,!1),Ve=m(e,"nextButtonActive",7,!1),me=m(e,"prevButtonActive",7,!1),ue=m(e,"endScreenVideoTitle",7,void 0),Le=m(e,"endScreenVideoThumb",7,void 0),te=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),Qe=m(e,"shadowRootContainer",7,void 0),ee=m(e,"outerContainerRef",7,void 0),We=m(e,"fullScreenTarget",7,void 0),le=m(e,"failoverHosts",7,void 0),pe=m(e,"showMiniTimer",7,!1),be=m(e,"saveRate",7),Z=m(e,"seekToInteractive",7,Na.noop),qe=m(e,"playPrevChapter",7,Na.noop),Ze=m(e,"volumeMultiplier",7),Ie=m(e,"showAutoplayNext",7),oe=m(e,"showEndScreen",7,!0),Te=m(e,"keyboardControls",15,void 0),{subscribers:Ke,stores:rt}=d();_h(u());let nt=Ut(),Lt=u().logoLink,et=l().ui.debugPanelVisible,ct=l().ui.playerSize,Qt=l().state.isLive$,Kt=l().state.isInteractive&&Sl.clientChecker.device.isAndroid,St=j(void 0),ie=null,Vt=j(!1);l().getAdmanWrapper().init({switchFromAdsToVideo:l().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l().actions.internal.switchFromVideoToAds,setMuted:l().actions.external.setMuted},l().ads,{isMobile:l().ui.isMobile,mobileUnmuteButtonVisible:l().ui.mobileUnmuteButtonVisible,vsid:l().vsid}),kh(l(),rt),ze(()=>{var Q,qt;l().ui.isMobile.set(ae()),(qt=(Q=a().callbacks)==null?void 0:Q.onDomReady)==null||qt.call(Q)});let ge=(Q=!1)=>{B(Vt,!0),Q?l().actions.external.firstStart(L()):l().actions.internal.firstStart(L())},X=()=>{if(nt.features.qualityDetailsSubMenuEnabled){let Q=Yh(l().videoId);if(Q)switch(Q.type){case"high_quality":l().actions.internal.setHighQualityEnabled(!0,Q.appliesTo);break;case"traffic_saving":l().actions.internal.setTrafficSavingEnabled(!0,Q.appliesTo);break;case"exact_quality":l().actions.internal.setQuality(Q.quality);break}}else{jh(l().videoId),df()&&l().actions.internal.setTrafficSavingEnabled(!0);let qt=rf(l().videoId);qt&&l().actions.internal.setQuality(qt)}};function xe(Q){var ui,pt,tt;let qt=r()||Q;qt&&l().initVideo({container:s(St),sources:qt,failoverHosts:le(),subtitles:w(),volumeMultiplier:Ze()});let di=Na.safeStorage.get(pd)==="true";et.set(di),I()>0&&l().actions.external.seekTime(I());let Mi=ae()?nt.volumeDefault:(pt=(ui=k())!=null?ui:iu())!=null?pt:nt.volumeDefault,si=(tt=P())!=null?tt:zh();if(l().actions.external.setVolume(Mi),l().actions.external.setMuted(si),l().getAdmanWrapper().setInitialVolume(si?0:Mi),X(),nt.features.saveRate&&be()){let It=Kh();It&&!n()&&l().actions.internal.setPlaybackRate(It)}if(Ie()){let It=Gh();It&&l().actions.internal.setAutoplayNextEnabled(It)}l().ui.isAutoplay.set(T()),T()?ge():S()&&nt.features.preload&&l().actions.internal.preload()}let De=Q=>{if(window.ResizeObserver){let qt,di;ie=new ResizeObserver((0,Na.throttleFn)(Mi=>{let si=Mi[0];if(si.contentBoxSize){let ui=Array.isArray(si.contentBoxSize)?si.contentBoxSize[0]:si.contentBoxSize;qt=ui.inlineSize,di=ui.blockSize}else si.contentRect&&(qt=si.contentRect.width,di=si.contentRect.height);ct.set({width:qt,height:di})},300)),ie.observe(Q)}ct.set({width:Q.clientWidth,height:Q.clientHeight})},fe=()=>{document.hidden&&l().actions.external.stop()};Ot(()=>{var di,Mi,si,ui;Kt&&document.addEventListener("visibilitychange",fe),nt.debugLog&&l().actions.internal.startLogging(),De(s(St));let Q=Ke.map(pt=>pt.init({store:l(),microStores:rt,config:a(),interactiveController:$(),uiConfig:u()})),qt=()=>{Kt&&document.removeEventListener("visibilitychange",fe),ie==null||ie.disconnect(),Q.forEach(pt=>pt.unsubscribe()),l().destroy()};return((di=y())==null?void 0:di.status)==="upcoming"?(l().actions.internal.setLiveWaitingStart(!0),qt):((Mi=y())==null?void 0:Mi.status)==="waiting"?(l().actions.internal.setLiveWaitingRecover(!0),qt):(((si=y())==null?void 0:si.status)==="finished"||((ui=y())==null?void 0:ui.status)==="postlive")&&!(r()&&(0,Sl.areValidLiveRecordSources)(r(),{useManagedMediaSource:e.coreConfig.useManagedMediaSource!==!1,useOldMSEDetection:e.coreConfig.useOldMSEDetection===!0}))?(l().actions.internal.setLiveWaitingRecord(!0),qt):(xe(),qt)});function Re(){s(Vt)?l().actions.external.play():ge(!0)}function Je(){l().actions.external.pause()}function Fe(Q){l().actions.external.setMuted(Q)}function Mt(){l().actions.external.toggleSubtitle()}function Tt(){var Q;(Q=l().webApi.slotsApi)!=null&&Q.haveSlots()&&l().actions.external.hideControls()}function xt(){var Q;(Q=l().webApi.slotsApi)!=null&&Q.haveSlots()&&l().actions.external.showControls()}function mt(Q){ae()||Q>=0&&Q<=1&&l().actions.external.setVolume(Q)}function Ai(Q){l().actions.internal.seekTime(Q,u0.SeekAction.UNKNOWN)}function ci(Q){l().actions.external.seekEpisodeStartTime(Q)}function it(){l().actions.external.returnFocusToEpisodes()}function Dt(Q){l().actions.external.setPlaybackRate(Q)}function fi(Q){l().actions.external.setAutoQualityLimits(Q)}let Ui=Fu(nt.view),po=a().playerView==="preview";var zi=bx();let Gt;var fo=_(zi);{var Pt=Q=>{$v(Q,{get store(){return l()},get uiConfig(){return nt},get thumbUrl(){return v()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return L()},get adsSlotId(){return q()},get adsParams(){return z()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return G()},get duration(){return re()},get logoClickable(){return Y()},get logoHidden(){return ce()},get logoTargetUrl(){return Lt},get nextButtonActive(){return Ve()},get prevButtonActive(){return me()},get endScreenVideoTitle(){return ue()},get endScreenVideoThumb(){return Le()},get isOneVideoPlaylist(){return te()},get supportLink(){return N()},get shadowRootContainer(){return Qe()},get outerContainerRef(){return ee()},get fullScreenTarget(){return We()},get showMiniTimer(){return pe()},get playerStarted(){return s(Vt)},get seekToInteractive(){return Z()},get playPrevChapter(){return qe()},firstStart:ge,seekTime:Ai,get showEndScreen(){return oe()},get showAutoplayNext(){return Ie()},get showNextPrevButtons(){return Ae()},get videoContainer(){return s(St)},set videoContainer(qt){B(St,qt,!0)}})},dt=Q=>{var qt=He(),di=ve(qt);{var Mi=ui=>{yv(ui,{get thumbUrl(){return v()},get outsideDuration(){return re()},get canRewindLive(){return E()},get videoContainer(){return s(St)},set videoContainer(pt){B(St,pt,!0)}})},si=ui=>{_v(ui,{get store(){return l()},get uiConfig(){return nt},get title(){return f()},get thumbUrl(){return v()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return L()},get adsSlotId(){return q()},get adsParams(){return z()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return G()},get duration(){return re()},get logoClickable(){return Y()},get logoHidden(){return ce()},get logoTargetUrl(){return Lt},get nextButtonActive(){return Ve()},get prevButtonActive(){return me()},get endScreenVideoTitle(){return ue()},get endScreenVideoThumb(){return Le()},get isOneVideoPlaylist(){return te()},get supportLink(){return N()},get shadowRootContainer(){return Qe()},get outerContainerRef(){return ee()},get fullScreenTarget(){return We()},get showMiniTimer(){return pe()},get playerStarted(){return s(Vt)},get seekToInteractive(){return Z()},get playPrevChapter(){return qe()},firstStart:ge,get showEndScreen(){return oe()},get showAutoplayNext(){return Ie()},get showNextPrevButtons(){return Ae()},get videoContainer(){return s(St)},set videoContainer(pt){B(St,pt,!0)},get keyboardControls(){return Te()},set keyboardControls(pt){Te(pt)}})};V(di,ui=>{po?ui(Mi):ui(si,!1)})}b(Q,qt)};V(fo,Q=>{ae()?Q(Pt):Q(dt,!1)})}g(zi),O(Q=>{Gt=J(zi,1,"root svelte-oba660",null,Gt,Q),st(zi,Ui)},[()=>({"root--miui-browser":Sl.clientChecker.device.isMobile&&Sl.clientChecker.browser.isMiuiBrowser,"visible-outside":po})]),b(t,zi);var mi=H({initVideo:xe,play:Re,pause:Je,setMuted:Fe,toggleSubtitle:Mt,hideControls:Tt,showControls:xt,setVolume:mt,seekTime:Ai,seekEpisodeStartTime:ci,returnFocusToEpisodes:it,setPlaybackRate:Dt,setAutoQualityLimits:fi,get sources(){return r()},set sources(Q){r(Q)},get store(){return l()},set store(Q){l(Q)},get microStoresRoot(){return d()},set microStoresRoot(Q){d(Q)},get videoConfig(){return a()},set videoConfig(Q){a(Q)},get uiConfig(){return u()},set uiConfig(Q){u(Q)},get title(){return f()},set title(Q){f(Q)},get thumbUrl(){return v()},set thumbUrl(Q){v(Q)},get interactiveContainer(){return p()},set interactiveContainer(Q){p(Q)},get interactiveController(){return $()},set interactiveController(Q){$(Q)},get subtitles(){return w()},set subtitles(Q){w(Q)},get live(){return y()},set live(Q){y(Q)},get preload(){return S()},set preload(Q){S(Q)},get autoplay(){return T()},set autoplay(Q){T(Q)},get volume(){return k()},set volume(Q){k(Q)},get muted(){return P()},set muted(Q){P(Q)},get fromTime(){return I()},set fromTime(Q){I(Q)},get canRewindLive(){return E()},set canRewindLive(Q){E(Q)},get showAds(){return L()},set showAds(Q){L(Q)},get adsSlotId(){return q()},set adsSlotId(Q){q(Q)},get adsParams(){return z()},set adsParams(Q){z(Q)},get adsPreviewParam(){return U()},set adsPreviewParam(Q){U(Q)},get adsAutoplayParam(){return G()},set adsAutoplayParam(Q){G(Q)},get duration(){return re()},set duration(Q){re(Q)},get logoClickable(){return Y()},set logoClickable(Q){Y(Q)},get logoHidden(){return ce()},set logoHidden(Q){ce(Q)},get isMobile(){return ae()},set isMobile(Q){ae(Q)},get showNextPrevButtons(){return Ae()},set showNextPrevButtons(Q){Ae(Q)},get nextButtonActive(){return Ve()},set nextButtonActive(Q){Ve(Q)},get prevButtonActive(){return me()},set prevButtonActive(Q){me(Q)},get endScreenVideoTitle(){return ue()},set endScreenVideoTitle(Q){ue(Q)},get endScreenVideoThumb(){return Le()},set endScreenVideoThumb(Q){Le(Q)},get isOneVideoPlaylist(){return te()},set isOneVideoPlaylist(Q){te(Q)},get supportLink(){return N()},set supportLink(Q){N(Q)},get shadowRootContainer(){return Qe()},set shadowRootContainer(Q){Qe(Q)},get outerContainerRef(){return ee()},set outerContainerRef(Q){ee(Q)},get fullScreenTarget(){return We()},set fullScreenTarget(Q){We(Q)},get failoverHosts(){return le()},set failoverHosts(Q){le(Q)},get showMiniTimer(){return pe()},set showMiniTimer(Q){pe(Q)},get saveRate(){return be()},set saveRate(Q){be(Q)},get showAutoplayNext(){return Ie()},set showAutoplayNext(Q){Ie(Q)},get seekToInteractive(){return Z()},set seekToInteractive(Q){Z(Q)},get playPrevChapter(){return qe()},set playPrevChapter(Q){qe(Q)},get volumeMultiplier(){return Ze()},set volumeMultiplier(Q){Ze(Q)},get showEndScreen(){return oe()},set showEndScreen(Q){oe(Q)},get keyboardControls(){return Te()},set keyboardControls(Q){Te(Q)}});return o(),mi}var yx=Ce('<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 wv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=yx();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}function Cv(t,e){let i=m(e,"isWhite",3,!1),o=h(()=>i()?"color: #fff;":"color: #909499;");wv(t,{get style(){return s(o)}})}var xx=M('<div class="title svelte-1y9fytq"> </div>'),wx=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Cx={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 Sv(t,e){W(t,Cx);var i=wx(),o=_(i);{var n=d=>{var a=xx(),u=_(a,!0);g(a),O(()=>he(u,e.title)),b(d,a)};V(o,d=>{e.title&&d(n)})}var r=A(o,2);{var l=d=>{let a=h(()=>!!e.thumbUrl);Cv(d,{get isWhite(){return s(a)}})};V(r,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),O(()=>st(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var b0=require("@vkontakte/videoplayer-shared/es2018"),Zi=require("@vkontakte/videoplayer-shared/es2018"),gc=require("@vkontakte/videoplayer-core/es2018"),Al=require("@vkontakte/videoplayer-statistics/es2018");var zu=require("@vkontakte/videoplayer-shared/es2018"),Uu=class{constructor(){this.subscription=new zu.Subscription,this.logger=new zu.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var r,l;let o=$e(e.state.currentPlaybackRate$),n=$e(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(r=navigator.mediaSession).setPositionState)==null||l.call(r,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var El=require("@vkontakte/videoplayer-shared/es2018");var Sx=Ce('<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 Tv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Sx();ke(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 n=_(o);_e(n,()=>{var r;return(r=e.children)!=null?r:ne}),we(),g(o),b(t,o)}var Tx=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Ex={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 Ev(t,e){D(e,!0),W(t,Ex);let[i,o]=Be(),n=()=>C(u,"$interfaceLanguage$",i),r=()=>C(f,"$isMobile$",i),l=Ee(),d=Ut(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=h(()=>n()&&v("pip_dummy_title")),$=Fu(d.view);var w=Tx();let y;var S=_(w);let T;var k=_(S);Tv(k,{}),g(S);var P=A(S,2),I=_(P,!0);g(P),g(w),O((E,L)=>{y=J(w,1,"player-pip-dummy svelte-1pbsod4",null,y,E),st(w,$),T=J(S,1,"dummy-image svelte-1pbsod4",null,T,L),he(I,s(p))},[()=>({"is-pip-api":a}),()=>({desktop:!r()})]),b(t,w),H(),o()}var Ix=Object.defineProperty,kx=(t,e,i)=>e in t?Ix(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Tl=(t,e,i)=>kx(t,typeof e!="symbol"?e+"":e,i),Px=460,Ax=280,ac=class{constructor({enabled:e=!0}={enabled:!0}){Tl(this,"playerDomElement"),Tl(this,"playerParentShadowRoot"),Tl(this,"playerDummyElement"),Tl(this,"svelteContext"),Tl(this,"pipWindow"),Tl(this,"info",{isActive$:new El.ValueSubject(!1),isEnabled$:new El.ValueSubject(!1),type:1}),this.info.isEnabled$=new El.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,El.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(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Px,height:Ax,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
|
|
391
|
-
`),n=document.createElement("style");n.textContent=o;let r=this.createStretchedContainer(),l=r.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=fs(Ev,d),(e=this.pipWindow)==null||e.document.body.append(r),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(na(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async remove(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.remove()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function p0(t){return t instanceof ac}var Wu=class{static getLatestSupportedVersion(e){let i=new ma(e),o=new ac(e);if(o.isSupported())return o;if(i.isSupported())return i}};function lc(t,e){var n,r;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(r=(n=e[l])!=null?n:t[l])!=null?r:void 0;return o}var 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 Il=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var kl=require("@vkontakte/videoplayer-shared/es2018"),Mx="1",Lx=100,qu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new kl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,kl.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"},Lx);this.subscriptions.add((0,kl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new Il(f0);if(this.annotations.has(e))throw new Il(m0);i.style.zIndex=(o=i.style.zIndex)!=null?o:Mx,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 Il(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(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||r<0||r+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Ba=require("@vkontakte/videoplayer-shared/es2018"),en=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Ba.assertNonNullable)(e),(0,Ba.assertNonNullable)(i),(0,Ba.assertNonNullable)(n),n.interactiveData&&(0,Ba.assertNonNullable)(o),this.subscription=new Ba.Subscription,this.subscription}};var dc=class extends en{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(r=>{this.state$.set(r?!0:null)})),o}};var cc=class extends en{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:r}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=r.state,{controlsVisible:u,isMobile:f}=r.ui,v=$e(f),p=()=>v&&$e(u);return o.add(u.subscribe($=>{if(!v)return;let w=$e(l);$e(a)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(a.subscribe($=>{this.state$.set(!$||p())})),o.add(l.subscribe($=>{if($===null)return;let w=$e(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var uc=class extends en{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=se("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var g0=require("@vkontakte/videoplayer-shared/es2018"),Iv=se(!1),Ku=null,pc=class extends en{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Iv,set:(i,o=!1)=>{i!==$e(Iv)&&(this.clearTimeout(),Iv.set(i),!i&&Ku&&(Ku=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:r}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(a.subscribe(v=>{$e(l)&&v&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,g0.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:$})=>{var w,y;if(!(!v||!($!=null&&$.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Ku===null&&(Ku=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Qu=require("@vkontakte/videoplayer-shared/es2018");var fc=class extends en{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...se(null),toggle:Qu.noop};this.checkIfShouldHide=i=>Fs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:r}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide($e(l)))return;let a=$e(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,p=$e(u),$=$e(f);if(a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1),v.remove(Xp),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(r==null?void 0:r.toggleGraphView(!0)),this.state$.set(!0),v.add(Xp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Qu.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};var kv=require("@vkontakte/videoplayer-shared/es2018"),mc=class extends en{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:se(!1),isEnabled$:se(!1),type$:se(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:r,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new kv.ValueSubject(!1),isEnabled$:new kv.ValueSubject(!1)}};return o.add(r.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var Yu=require("@vkontakte/videoplayer-shared/es2018");var Gu=require("@vkontakte/videoplayer-shared/es2018"),h0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Vx({maxCount:t}):void 0,e!==0?Rx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Vx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Gu.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},Rx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Gu.safeStorage.get(e)||"{}")}catch(r){return{}}},o=r=>Gu.safeStorage.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o({...i(),[r]:{timeout:t,launchTime:Date.now()}})},canShowNotification:r=>{let l=i()[r];if(l){let d=Date.now()-l.launchTime>t;return d&&n(r),d}else return!0}}};var vc=class extends en{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:se({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:r,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=h0({maxShowCount:r,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Yu.filterChanged)(),(0,Yu.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var _0=()=>[dc,cc,uc,pc,fc,mc,vc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var Pl=require("@vkontakte/videoplayer-shared/es2018");var ju=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var Nx=Object.defineProperty,Bx=(t,e,i)=>e in t?Nx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Jt=(t,e,i)=>Bx(t,typeof e!="symbol"?e+"":e,i),Ox={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Zi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,gc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},kn=j(void 0),Zu=class extends HTMLElement{constructor(){super(),Jt(this,"svelteStubComponent"),Jt(this,"svelteRootComponent"),Jt(this,"store"),Jt(this,"microStoresRoot"),Jt(this,"statistics"),Jt(this,"sentry"),Jt(this,"_shadowRoot"),Jt(this,"playerContainer"),Jt(this,"rootContainer"),Jt(this,"shadowRootContainer"),Jt(this,"uiConfig"),Jt(this,"coreConfig"),Jt(this,"statisticsConfig"),Jt(this,"interactiveController"),Jt(this,"interactiveContainer"),Jt(this,"graphMadePause"),Jt(this,"currentPlayingVideoIndex",0),Jt(this,"needToRepeatPlaylist",!1),Jt(this,"videoConfig"),Jt(this,"pictureInPictureApi"),Jt(this,"mediaSessionApi"),Jt(this,"unsubscribePlayerPhaseSubscription"),Jt(this,"logger"),Jt(this,"log"),Jt(this,"subscription"),Jt(this,"interactiveSubscription"),Jt(this,"annotationsApi"),Jt(this,"slotsApi"),Jt(this,"focusManager"),Jt(this,"prevIsid"),Jt(this,"isInited",!1),Jt(this,"internalsExposure",null),Jt(this,"shadowDOMCallbacksDisabled",!1),Jt(this,"createOneStat",(e,i={})=>{var o,n,r,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:T,interactiveData:k}=lc(this.videoConfig,i),P=(o=k==null?void 0:k.projectInfo)==null?void 0:o.pid,I=(r=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?r:!1;I&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:L=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new Al.OneStat({movieId:E,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:L,refDomain:S,deviceId:T,...P&&(!this.isInited||I)&&{projectId:Number(P)}},{refreshAuthToken:p,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(z){console.error(z),this.log({message:z.message})}}),Pl.devNull.create("ui"),this.logger=new Zi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Zi.Subscription,this.interactiveSubscription=new Zi.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,r=oi({title:o,thumbUrl:n}),l={target:this.playerContainer,props:r};this.svelteStubComponent=fs(Sv,l)}disconnectedCallback(){var e,i,o,n,r,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Pl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:r}=lc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Al.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:n},{config:this.statisticsConfig,refreshAuthToken:r})}createPlayer(e,i={},o){var n,r,l,d,a,u,f,v,p;if(!this.videoConfig)return;let{albumId:$,statPlace:w,statAuthToken:y,preload:S,autoplay:T,volume:k,muted:P,fromTime:I,canRewindLive:E,supportLink:L,showAds:q,adsSlotId:z,adsParams:U={},adsPreviewParam:G,adsAutoplayParam:re,interfaceLanguage:Y,isCyrillicRelatedInterface:ce,logoClickable:ae,logoHidden:Ae,isMobile:Ve,isTouch:me,isAudioDisabled:ue,isLiveCatchUpMode:Le,fullScreenTarget:te,failoverHosts:N,canDownload:Qe,callbacks:ee,interactiveData:We,showThumbTimer:le,additionalButtons:pe=[],additionalSettingsMenuItems:be=[],additionalContextMenuItems:Z=[],repeat:qe,saveRate:Ze,volumeMultiplier:Ie,showEndScreen:oe,showAutoplayNext:Te,mediascopePixels:Ke}=lc(this.videoConfig,i),{sources:rt,title:nt,thumbUrl:Lt,unitedVideoId:et,isClip:ct=!1,duration:Qt,adsParams:ni={},videoEpisodes:Kt,previewThumbsData:St,subtitles:ie,live:Vt}=e,ge={...U,...ni},X=this.getNextVideoInfo(),xe={sources:rt,title:nt,thumbUrl:Lt,subtitles:ie,unitedVideoId:et,isClip:ct,live:Vt,albumId:$,statPlace:w,autoplay:T,muted:P,volume:k,fromTime:I,canRewindLive:E,showAds:q,adsSlotId:z,adsParams:ge,adsPreviewParam:G,adsAutoplayParam:re,duration:Qt,logoClickable:ae,logoHidden:Ae,isTouch:me!=null?me:Ve,repeat:qe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:X.nextVideoTitle,endScreenVideoThumb:X.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},De={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(xe)}`});let fe=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Re=(fe==null?void 0:fe.oneStat)||this.createOneStat(e,i),Je=this.createThinOneStat(e,i),Fe;Ke&&(Fe=new Al.MediascopePixel({pixels:Ke})),(Re||Je)&&(this.statistics=new Eu(Re,Je,Fe,fe==null?void 0:fe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new fa(this.uiConfig.sentry,{version:ca,env:Jc},{movieId:et,albumId:$,place:w,autoplay:(r=T&&!this.interactiveController)!=null?r:!1,mobile:me!=null?me:Ve,clip:ct}),this.interactiveController&&((a=this.prevIsid)!=null||(this.prevIsid=(d=(l=this.statistics)==null?void 0:l.oneStat)==null?void 0:d.isid$.getValue())),this.sentry={...this.sentry,...fa.getInstance()};let Tt=!!We,xt=[],mt="tooltip_interactive_go_back_disabled_first";if(Tt&&this.interactiveController){let Dt=this.interactiveController.state.isInitialChapter$.getValue(),fi=this.interactiveController.getHistoryState();Dt&&xt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||xt.push("SEEK_TO_INTERACTIVE_BUTTON"),fi.hasPrevChapter$.getValue()||(xt.push("PLAY_PREV_CHAPTER_BUTTON"),Dt||(fi.isGoBackLimited$.getValue()?mt="tooltip_interactive_go_back_disabled_limit":mt="tooltip_interactive_go_back_disabled"))}let Ai=()=>{var Dt;this.isInited=!1,this.prevIsid=void 0;let fi=(o==null?void 0:o.info.isEnded$.getValue())&&((Dt=this.interactiveController)==null?void 0:Dt.state.isEndChapter$.getValue());ee.onReplayInteractiveVideo&&!fi?ee.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=N1({player:o,interfaceLanguage:Y,isCyrillicRelatedInterface:ce,videoId:et,isClip:ct,isLiveCatchUpMode:Le,isAudioDisabled:ue,statAuthToken:y,callbacks:ee,webApi:De,videoEpisodes:Kt,previewThumbsData:St,canDownload:Qe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:xt,isInteractive:Tt,saveRate:Ze,interactiveRanges$:(u=this.interactiveController)==null?void 0:u.state.interactiveRanges$,isInteractiveTime$:(f=this.interactiveController)==null?void 0:f.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Ai,playPrevChapterDisabledTooltip:mt,hasInteractiveBranches:!!((p=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&p.length),additionalButtons:this.uiConfig.features.additionalButtons?pe:[],additionalSettingsMenuItems:be!=null?be:[],additionalContextMenuItems:Z!=null?Z:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:qe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:ci}=this.microStoresRoot=_0(),it=()=>{var Dt,fi,Ui,po,zi,Gt;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Pt=>{var dt;return(dt=ee==null?void 0:ee.onCurrentFormatChanged)==null?void 0:dt.call(ee,Pt)})),this.subscription.add(ci.interactiveControlsOpacity$.subscribe(Pt=>{var dt;Pt!==null&&((dt=this==null?void 0:this.interactiveController)==null||dt.setDisabledControls(Pt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Pt=>{var dt;return(dt=ee==null?void 0:ee.onThroughputEstimationChanged)==null?void 0:dt.call(ee,Pt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Pt=>{var dt;return(dt=ee==null?void 0:ee.onTrafficSavingEnabledChanged)==null?void 0:dt.call(ee,Pt)})),this.subscription.add(new Zi.Observable(Pt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(dt=>Pt.next(dt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Zi.skip)(1):Pt=>Pt).subscribe(Pt=>{var dt;return(dt=ee==null?void 0:ee.onCurrentPlaybackRateChanged)==null?void 0:dt.call(ee,Pt)})),this.subscription.add(this.store.state.volume$.subscribe(Pt=>{var dt;return(dt=ee==null?void 0:ee.onVolumeChange)==null?void 0:dt.call(ee,Pt)})),this.subscription.add(this.store.state.muted$.subscribe(Pt=>{var dt,mi,Q,qt;if(Pt)(dt=ee==null?void 0:ee.onMute)==null||dt.call(ee);else{let di=(Q=((mi=this.store)==null?void 0:mi.state.volume$)&&$e(this.store.state.volume$))!=null?Q:0;(qt=ee==null?void 0:ee.onUnmute)==null||qt.call(ee,di)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Pt=>{var dt;return(dt=ee==null?void 0:ee.onVideoBitrateChanged)==null?void 0:dt.call(ee,Pt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Pt=>{var dt;let mi=(dt=this.store)==null?void 0:dt.ui.controls.disabledControls$;mi&&(Pt&&!mi.includes(fd)&&mi.add(fd),Pt||mi.remove(fd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Pt=>{var dt;if(!gc.clientChecker.browser.isSamsungBrowser||!Pt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((dt=this.videoConfig)==null?void 0:dt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Pt=>{var dt;return(dt=ee==null?void 0:ee.onVSIDChanged)==null?void 0:dt.call(ee,Pt)})),this.initMediaSession(),B(kn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:rt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,coreConfig:this.coreConfig,title:nt,thumbUrl:Lt,subtitles:ie,live:Vt,preload:S,autoplay:T,muted:P,volume:k,fromTime:I,canRewindLive:E,supportLink:L,showAds:q,adsSlotId:z,adsParams:ge,adsPreviewParam:G,adsAutoplayParam:re,duration:Qt,logoClickable:ae,logoHidden:Ae,isMobile:me!=null?me:Ve,failoverHosts:N,fullScreenTarget:te,saveRate:Ze,shadowRootContainer:this.shadowRootContainer,showMiniTimer:le,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:X.nextVideoTitle,endScreenVideoThumb:X.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ie,showEndScreen:oe,showAutoplayNext:Te},!0);let fo={target:this.playerContainer,props:s(kn)};this.svelteRootComponent=fs(xv,fo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ui=(fi=(Dt=this.videoConfig)==null?void 0:Dt.callbacks)==null?void 0:fi.onInited)==null||Ui.call(fi)),(po=this.internalsExposure)==null||po.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Gt=(zi=this.videoConfig)==null?void 0:zi.callbacks)!=null&&Gt.onDevNullLog)?Pl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Pl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?gc.clientChecker.isInited$.subscribe(Dt=>{Dt&&(console.log("UI SDK async start"),it())}):it()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let r=(i=this.videoConfig)==null?void 0:i.callbacks;r&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=r.onPlayerPhaseChanged)==null?void 0:a.call(r,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=r.onPlaybackStateChanged)==null?void 0:a.call(r,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=r.onIsLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=r.onIsActiveLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=r.onIsAudioAvailableChanged)==null?void 0:a.call(r,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=r.onCurrentQualityChanged)==null?void 0:a.call(r,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=r.onAvailableQualitiesChanged)==null?void 0:a.call(r,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&r.onAudioLanguagesAvailable&&r.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=r.onPiPEnter)==null?void 0:a.call(r):(u=r.onPiPExit)==null?void 0:u.call(r)}));let l=r==null?void 0:r.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,Zi.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n,r,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?$e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:p,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let k=this.store;T?k.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):k.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let k=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,k),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:k})=>{var P,I,E,L,q,z;if(!this.store||!this.microStoresRoot)return;let U=w.getValue();if(T==="action-choice"&&k==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(md)),T==="action-choice-canceled"){let G=$e(this.store.state.isPlaying$)||U;if(((E=(P=this.videoConfig)==null?void 0:P.isTouch)!=null?E:(I=this.videoConfig)!=null&&I.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(z=(L=this.videoConfig)==null?void 0:(q=L.callbacks).onDisabledInteractiveClick)==null||z.call(q)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:k})=>{this.store&&T==="container-fake-removed"&&k&&this.store.ui.controls.disabledControls$.remove(md)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(k=>{var P,I,E;k.length&&((E=(I=(P=this.videoConfig)==null?void 0:P.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||E.call(I,k))}))}(l=(r=this.videoConfig)==null?void 0:r.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var k,P,I;(I=(k=this.videoConfig)==null?void 0:(P=k.callbacks).onInteractiveChapterChanged)==null||I.call(P,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,k,P,I;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(k=this.videoConfig)==null?void 0:(P=k.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(P)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,n,r,l,d,a,u,f,v,p,$,w,y,S,T,k,P,I,E,L,q,z,U,G,re,Y;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=lc(Ox,(0,Zi.cloneDeepWith)(e,ce=>ce instanceof HTMLElement?ce:void 0)),this.uiConfig=hh((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(r=i.statistics)!=null?r:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(l=this.uiConfig.sentry)!=null?l:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new Zi.InternalsExposure("UI"))),Pl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((a=this.videoConfig)==null?void 0:a.showAds)],numbers:[(0,b0.now)()]}),(0,Zi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,Zi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=(v=this.uiConfig.features.pip)!=null?v:this.videoConfig.isPictureInPictureEnabled)!=null?p:!0,this.uiConfig.features.dpip=(w=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(S=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?S:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((E=this.uiConfig.showLogo)!=null?E:!this.videoConfig.logoHidden),(L=this.videoConfig).canRewindLive&&(L.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(q=this.videoConfig.supportLink)!=null?q:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(z=this.uiConfig.features.endScreen)!=null?z:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(U=this.uiConfig.features.autoplayNext)!=null?U:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(G=this.uiConfig.features.nextPrevButtons)!=null?G:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((re=this.videoConfig.videos)!=null&&re[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ce={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Wu.getLatestSupportedVersion(ce):this.pictureInPictureApi=new ma(ce)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Uu:void 0,this.slotsApi=this.uiConfig.features.slots?new Ou:void 0,this.annotationsApi=this.uiConfig.features.annotations?new qu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),p0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(Y=this.slotsApi)==null||Y.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new ju(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();s(kn)&&(s(kn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(kn).nextButtonActive=this.isNextButtonActive(),s(kn).prevButtonActive=this.isPrevButtonActive(),s(kn).endScreenVideoTitle=o.nextVideoTitle,s(kn).endScreenVideoThumb=o.nextVideoThumb,s(kn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,s(kn)&&(s(kn).needToRepeatPlaylist=this.needToRepeatPlaylist,s(kn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(kn).nextButtonActive=this.isNextButtonActive(),s(kn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let r=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&r(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||r(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var r;(r=this.store)==null||r.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var r;o||n(),(r=this.store)==null||r.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let r=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){r();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=r)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=$e(this.store.state.positionExact$),l=$e(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Zi.once)()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&na(e)}};var Ml=require("@vkontakte/videoplayer-shared/es2018"),Xu=require("@vkontakte/videoplayer-core/es2018"),Dx=()=>{window.customElements.define("vk-video-player",Zu)};
|
|
390
|
+
/* \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 wv(t,e){D(e,!0),W(t,$x);let[i,o]=Be(),n=()=>S(Yt,"$isLive$",i),r=m(e,"sources",7),l=m(e,"store",7),d=m(e,"microStoresRoot",7),a=m(e,"videoConfig",7),p=m(e,"uiConfig",7),f=m(e,"title",7),v=m(e,"thumbUrl",7),u=m(e,"interactiveContainer",7),b=m(e,"interactiveController",7),w=m(e,"subtitles",7),y=m(e,"live",7),C=m(e,"preload",7),T=m(e,"autoplay",7),k=m(e,"volume",7,void 0),P=m(e,"muted",7,void 0),I=m(e,"fromTime",7),E=m(e,"canRewindLive",7),L=m(e,"showAds",7),q=m(e,"adsSlotId",7,void 0),z=m(e,"adsParams",7,void 0),U=m(e,"adsPreviewParam",7,void 0),G=m(e,"adsAutoplayParam",7,void 0),re=m(e,"duration",7,void 0),Y=m(e,"logoClickable",7),ce=m(e,"logoHidden",7),ae=m(e,"isMobile",7),Ae=m(e,"showNextPrevButtons",7,!1),Re=m(e,"nextButtonActive",7,!1),me=m(e,"prevButtonActive",7,!1),ue=m(e,"endScreenVideoTitle",7,void 0),Ve=m(e,"endScreenVideoThumb",7,void 0),te=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),Qe=m(e,"shadowRootContainer",7,void 0),ee=m(e,"outerContainerRef",7,void 0),We=m(e,"fullScreenTarget",7,void 0),le=m(e,"failoverHosts",7,void 0),pe=m(e,"showMiniTimer",7,!1),$e=m(e,"saveRate",7),Z=m(e,"seekToInteractive",7,Ra.noop),qe=m(e,"playPrevChapter",7,Ra.noop),Xe=m(e,"volumeMultiplier",7),Ie=m(e,"showAutoplayNext",7),oe=m(e,"showEndScreen",7,!0),Te=m(e,"keyboardControls",15,void 0),{subscribers:Ke,stores:rt}=d();bh(p());let nt=zt(),Rt=p().logoLink,et=l().ui.debugPanelVisible,pt=l().ui.playerSize,Yt=l().state.isLive$,Qt=l().state.isInteractive&&Tl.clientChecker.device.isAndroid,Tt=j(void 0),ie=null,Nt=j(!1);l().getAdmanWrapper().init({switchFromAdsToVideo:l().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l().actions.internal.switchFromVideoToAds,setMuted:l().actions.external.setMuted},l().ads,{isMobile:l().ui.isMobile,mobileUnmuteButtonVisible:l().ui.mobileUnmuteButtonVisible,vsid:l().vsid}),Ph(l(),rt),ze(()=>{var Q,qt;l().ui.isMobile.set(ae()),(qt=(Q=a().callbacks)==null?void 0:Q.onDomReady)==null||qt.call(Q)});let ge=(Q=!1)=>{B(Nt,!0),Q?l().actions.external.firstStart(L()):l().actions.internal.firstStart(L())},X=()=>{if(nt.features.qualityDetailsSubMenuEnabled){let Q=jh(l().videoId);if(Q)switch(Q.type){case"high_quality":l().actions.internal.setHighQualityEnabled(!0,Q.appliesTo);break;case"traffic_saving":l().actions.internal.setTrafficSavingEnabled(!0,Q.appliesTo);break;case"exact_quality":l().actions.internal.setQuality(Q.quality);break}}else{Zh(l().videoId),cf()&&l().actions.internal.setTrafficSavingEnabled(!0);let qt=sf(l().videoId);qt&&l().actions.internal.setQuality(qt)}};function xe(Q){var ui,vt,it;let qt=r()||Q;qt&&l().initVideo({container:s(Tt),sources:qt,failoverHosts:le(),subtitles:w(),volumeMultiplier:Xe()});let di=Ra.safeStorage.get(pd)==="true";et.set(di),I()>0&&l().actions.external.seekTime(I());let Ni=ae()?nt.volumeDefault:(vt=(ui=k())!=null?ui:iu())!=null?vt:nt.volumeDefault,si=(it=P())!=null?it:Wh();if(l().actions.external.setVolume(Ni),l().actions.external.setMuted(si),l().getAdmanWrapper().setInitialVolume(si?0:Ni),X(),nt.features.saveRate&&$e()){let kt=Qh();kt&&!n()&&l().actions.internal.setPlaybackRate(kt)}if(Ie()){let kt=Yh();kt&&l().actions.internal.setAutoplayNextEnabled(kt)}l().ui.isAutoplay.set(T()),T()?ge():C()&&nt.features.preload&&l().actions.internal.preload()}let He=Q=>{if(window.ResizeObserver){let qt,di;ie=new ResizeObserver((0,Ra.throttleFn)(Ni=>{let si=Ni[0];if(si.contentBoxSize){let ui=Array.isArray(si.contentBoxSize)?si.contentBoxSize[0]:si.contentBoxSize;qt=ui.inlineSize,di=ui.blockSize}else si.contentRect&&(qt=si.contentRect.width,di=si.contentRect.height);pt.set({width:qt,height:di})},300)),ie.observe(Q)}pt.set({width:Q.clientWidth,height:Q.clientHeight})},fe=()=>{document.hidden&&l().actions.external.stop()};Dt(()=>{var di,Ni,si,ui;Qt&&document.addEventListener("visibilitychange",fe),nt.debugLog&&l().actions.internal.startLogging(),He(s(Tt));let Q=Ke.map(vt=>vt.init({store:l(),microStores:rt,config:a(),interactiveController:b(),uiConfig:p()})),qt=()=>{Qt&&document.removeEventListener("visibilitychange",fe),ie==null||ie.disconnect(),Q.forEach(vt=>vt.unsubscribe()),l().destroy()};return((di=y())==null?void 0:di.status)==="upcoming"?(l().actions.internal.setLiveWaitingStart(!0),qt):((Ni=y())==null?void 0:Ni.status)==="waiting"?(l().actions.internal.setLiveWaitingRecover(!0),qt):(((si=y())==null?void 0:si.status)==="finished"||((ui=y())==null?void 0:ui.status)==="postlive")&&!(r()&&(0,Tl.areValidLiveRecordSources)(r(),{useManagedMediaSource:e.coreConfig.useManagedMediaSource!==!1,useOldMSEDetection:e.coreConfig.useOldMSEDetection===!0}))?(l().actions.internal.setLiveWaitingRecord(!0),qt):(xe(),qt)});function Ne(){s(Nt)?l().actions.external.play():ge(!0)}function Je(){l().actions.external.pause()}function Ue(Q){l().actions.external.setMuted(Q)}function Lt(){l().actions.external.toggleSubtitle()}function Et(){var Q;(Q=l().webApi.slotsApi)!=null&&Q.haveSlots()&&l().actions.external.hideControls()}function St(){var Q;(Q=l().webApi.slotsApi)!=null&&Q.haveSlots()&&l().actions.external.showControls()}function _t(Q){ae()||Q>=0&&Q<=1&&l().actions.external.setVolume(Q)}function Ri(Q){l().actions.internal.seekTime(Q,p0.SeekAction.UNKNOWN)}function ci(Q){l().actions.external.seekEpisodeStartTime(Q)}function ot(){l().actions.external.returnFocusToEpisodes()}function Ht(Q){l().actions.external.setPlaybackRate(Q)}function fi(Q){l().actions.external.setAutoQualityLimits(Q)}let qi=Fu(nt.view),ho=a().playerView==="preview";var Ki=bx();let jt;var _o=_(Ki);{var At=Q=>{yv(Q,{get store(){return l()},get uiConfig(){return nt},get thumbUrl(){return v()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return L()},get adsSlotId(){return q()},get adsParams(){return z()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return G()},get duration(){return re()},get logoClickable(){return Y()},get logoHidden(){return ce()},get logoTargetUrl(){return Rt},get nextButtonActive(){return Re()},get prevButtonActive(){return me()},get endScreenVideoTitle(){return ue()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return te()},get supportLink(){return N()},get shadowRootContainer(){return Qe()},get outerContainerRef(){return ee()},get fullScreenTarget(){return We()},get showMiniTimer(){return pe()},get playerStarted(){return s(Nt)},get seekToInteractive(){return Z()},get playPrevChapter(){return qe()},firstStart:ge,seekTime:Ri,get showEndScreen(){return oe()},get showAutoplayNext(){return Ie()},get showNextPrevButtons(){return Ae()},get videoContainer(){return s(Tt)},set videoContainer(qt){B(Tt,qt,!0)}})},ct=Q=>{var qt=Fe(),di=ve(qt);{var Ni=ui=>{xv(ui,{get thumbUrl(){return v()},get outsideDuration(){return re()},get canRewindLive(){return E()},get videoContainer(){return s(Tt)},set videoContainer(vt){B(Tt,vt,!0)}})},si=ui=>{bv(ui,{get store(){return l()},get uiConfig(){return nt},get title(){return f()},get thumbUrl(){return v()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return L()},get adsSlotId(){return q()},get adsParams(){return z()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return G()},get duration(){return re()},get logoClickable(){return Y()},get logoHidden(){return ce()},get logoTargetUrl(){return Rt},get nextButtonActive(){return Re()},get prevButtonActive(){return me()},get endScreenVideoTitle(){return ue()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return te()},get supportLink(){return N()},get shadowRootContainer(){return Qe()},get outerContainerRef(){return ee()},get fullScreenTarget(){return We()},get showMiniTimer(){return pe()},get playerStarted(){return s(Nt)},get seekToInteractive(){return Z()},get playPrevChapter(){return qe()},firstStart:ge,get showEndScreen(){return oe()},get showAutoplayNext(){return Ie()},get showNextPrevButtons(){return Ae()},get videoContainer(){return s(Tt)},set videoContainer(vt){B(Tt,vt,!0)},get keyboardControls(){return Te()},set keyboardControls(vt){Te(vt)}})};V(di,ui=>{ho?ui(Ni):ui(si,!1)})}$(Q,qt)};V(_o,Q=>{ae()?Q(At):Q(ct,!1)})}g(Ki),O(Q=>{jt=J(Ki,1,"root svelte-oba660",null,jt,Q),at(Ki,qi)},[()=>({"root--miui-browser":Tl.clientChecker.device.isMobile&&Tl.clientChecker.browser.isMiuiBrowser,"visible-outside":ho})]),$(t,Ki);var mi=H({initVideo:xe,play:Ne,pause:Je,setMuted:Ue,toggleSubtitle:Lt,hideControls:Et,showControls:St,setVolume:_t,seekTime:Ri,seekEpisodeStartTime:ci,returnFocusToEpisodes:ot,setPlaybackRate:Ht,setAutoQualityLimits:fi,get sources(){return r()},set sources(Q){r(Q)},get store(){return l()},set store(Q){l(Q)},get microStoresRoot(){return d()},set microStoresRoot(Q){d(Q)},get videoConfig(){return a()},set videoConfig(Q){a(Q)},get uiConfig(){return p()},set uiConfig(Q){p(Q)},get title(){return f()},set title(Q){f(Q)},get thumbUrl(){return v()},set thumbUrl(Q){v(Q)},get interactiveContainer(){return u()},set interactiveContainer(Q){u(Q)},get interactiveController(){return b()},set interactiveController(Q){b(Q)},get subtitles(){return w()},set subtitles(Q){w(Q)},get live(){return y()},set live(Q){y(Q)},get preload(){return C()},set preload(Q){C(Q)},get autoplay(){return T()},set autoplay(Q){T(Q)},get volume(){return k()},set volume(Q){k(Q)},get muted(){return P()},set muted(Q){P(Q)},get fromTime(){return I()},set fromTime(Q){I(Q)},get canRewindLive(){return E()},set canRewindLive(Q){E(Q)},get showAds(){return L()},set showAds(Q){L(Q)},get adsSlotId(){return q()},set adsSlotId(Q){q(Q)},get adsParams(){return z()},set adsParams(Q){z(Q)},get adsPreviewParam(){return U()},set adsPreviewParam(Q){U(Q)},get adsAutoplayParam(){return G()},set adsAutoplayParam(Q){G(Q)},get duration(){return re()},set duration(Q){re(Q)},get logoClickable(){return Y()},set logoClickable(Q){Y(Q)},get logoHidden(){return ce()},set logoHidden(Q){ce(Q)},get isMobile(){return ae()},set isMobile(Q){ae(Q)},get showNextPrevButtons(){return Ae()},set showNextPrevButtons(Q){Ae(Q)},get nextButtonActive(){return Re()},set nextButtonActive(Q){Re(Q)},get prevButtonActive(){return me()},set prevButtonActive(Q){me(Q)},get endScreenVideoTitle(){return ue()},set endScreenVideoTitle(Q){ue(Q)},get endScreenVideoThumb(){return Ve()},set endScreenVideoThumb(Q){Ve(Q)},get isOneVideoPlaylist(){return te()},set isOneVideoPlaylist(Q){te(Q)},get supportLink(){return N()},set supportLink(Q){N(Q)},get shadowRootContainer(){return Qe()},set shadowRootContainer(Q){Qe(Q)},get outerContainerRef(){return ee()},set outerContainerRef(Q){ee(Q)},get fullScreenTarget(){return We()},set fullScreenTarget(Q){We(Q)},get failoverHosts(){return le()},set failoverHosts(Q){le(Q)},get showMiniTimer(){return pe()},set showMiniTimer(Q){pe(Q)},get saveRate(){return $e()},set saveRate(Q){$e(Q)},get showAutoplayNext(){return Ie()},set showAutoplayNext(Q){Ie(Q)},get seekToInteractive(){return Z()},set seekToInteractive(Q){Z(Q)},get playPrevChapter(){return qe()},set playPrevChapter(Q){qe(Q)},get volumeMultiplier(){return Xe()},set volumeMultiplier(Q){Xe(Q)},get showEndScreen(){return oe()},set showEndScreen(Q){oe(Q)},get keyboardControls(){return Te()},set keyboardControls(Q){Te(Q)}});return o(),mi}var yx=Ce('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Sv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=yx();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}function Cv(t,e){let i=m(e,"isWhite",3,!1),o=h(()=>i()?"color: #fff;":"color: #909499;");Sv(t,{get style(){return s(o)}})}var xx=M('<div class="title svelte-1y9fytq"> </div>'),wx=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Sx={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 Tv(t,e){W(t,Sx);var i=wx(),o=_(i);{var n=d=>{var a=xx(),p=_(a,!0);g(a),O(()=>_e(p,e.title)),$(d,a)};V(o,d=>{e.title&&d(n)})}var r=A(o,2);{var l=d=>{let a=h(()=>!!e.thumbUrl);Cv(d,{get isWhite(){return s(a)}})};V(r,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),O(()=>at(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var $0=require("@vkontakte/videoplayer-shared/es2018"),io=require("@vkontakte/videoplayer-shared/es2018"),gc=require("@vkontakte/videoplayer-core/es2018"),Ml=require("@vkontakte/videoplayer-statistics/es2018");var zu=require("@vkontakte/videoplayer-shared/es2018"),Uu=class{constructor(){this.subscription=new zu.Subscription,this.logger=new zu.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var r,l;let o=ye(e.state.currentPlaybackRate$),n=ye(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(r=navigator.mediaSession).setPositionState)==null||l.call(r,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Il=require("@vkontakte/videoplayer-shared/es2018");var Cx=Ce('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Ev(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Cx();ke(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 n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),$(t,o)}var Tx=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Ex={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 Iv(t,e){D(e,!0),W(t,Ex);let[i,o]=Be(),n=()=>S(p,"$interfaceLanguage$",i),r=()=>S(f,"$isMobile$",i),l=Ee(),d=zt(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,u=h(()=>n()&&v("pip_dummy_title")),b=Fu(d.view);var w=Tx();let y;var C=_(w);let T;var k=_(C);Ev(k,{}),g(C);var P=A(C,2),I=_(P,!0);g(P),g(w),O((E,L)=>{y=J(w,1,"player-pip-dummy svelte-1pbsod4",null,y,E),at(w,b),T=J(C,1,"dummy-image svelte-1pbsod4",null,T,L),_e(I,s(u))},[()=>({"is-pip-api":a}),()=>({desktop:!r()})]),$(t,w),H(),o()}var Ix=Object.defineProperty,kx=(t,e,i)=>e in t?Ix(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,El=(t,e,i)=>kx(t,typeof e!="symbol"?e+"":e,i),Px=460,Ax=280,ac=class{constructor({enabled:e=!0}={enabled:!0}){El(this,"playerDomElement"),El(this,"playerParentShadowRoot"),El(this,"playerDummyElement"),El(this,"svelteContext"),El(this,"pipWindow"),El(this,"info",{isActive$:new Il.ValueSubject(!1),isEnabled$:new Il.ValueSubject(!1),type:1}),this.info.isEnabled$=new Il.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Il.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(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Px,height:Ax,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
|
|
391
|
+
`),n=document.createElement("style");n.textContent=o;let r=this.createStretchedContainer(),l=r.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=ps(Iv,d),(e=this.pipWindow)==null||e.document.body.append(r),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(oa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async remove(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.remove()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function f0(t){return t instanceof ac}var Wu=class{static getLatestSupportedVersion(e){let i=new fa(e),o=new ac(e);if(o.isSupported())return o;if(i.isSupported())return i}};function lc(t,e){var n,r;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(r=(n=e[l])!=null?n:t[l])!=null?r:void 0;return o}var m0="Inner error. Unexpectedly root annotation container null reference exception",v0="Annotation with such name already exists",g0="Annotation with such name does not exist";var kl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Pl=require("@vkontakte/videoplayer-shared/es2018"),Mx="1",Lx=100,qu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Pl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Pl.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"},Lx);this.subscriptions.add((0,Pl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new kl(m0);if(this.annotations.has(e))throw new kl(v0);i.style.zIndex=(o=i.style.zIndex)!=null?o:Mx,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 kl(g0);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||r<0||r+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Na=require("@vkontakte/videoplayer-shared/es2018"),on=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Na.assertNonNullable)(e),(0,Na.assertNonNullable)(i),(0,Na.assertNonNullable)(n),n.interactiveData&&(0,Na.assertNonNullable)(o),this.subscription=new Na.Subscription,this.subscription}};var dc=class extends on{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(r=>{this.state$.set(r?!0:null)})),o}};var cc=class extends on{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:r}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=r.state,{controlsVisible:p,isMobile:f}=r.ui,v=ye(f),u=()=>v&&ye(p);return o.add(p.subscribe(b=>{if(!v)return;let w=ye(l);ye(a)?this.state$.set(b):w!==null&&this.state$.set(!w||b)})),o.add(a.subscribe(b=>{this.state$.set(!b||u())})),o.add(l.subscribe(b=>{if(b===null)return;let w=ye(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!b)})),o}};var uc=class extends on{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=se("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var h0=require("@vkontakte/videoplayer-shared/es2018"),kv=se(!1),Ku=null,pc=class extends on{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...kv,set:(i,o=!1)=>{i!==ye(kv)&&(this.clearTimeout(),kv.set(i),!i&&Ku&&(Ku=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:r}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(a.subscribe(v=>{ye(l)&&v&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,h0.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:p}).subscribe(({isPlaying$:v,isInteractiveTime$:u,interactiveTimeIndicator:b})=>{var w,y;if(!(!v||!(b!=null&&b.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Ku===null&&(Ku=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Qu=require("@vkontakte/videoplayer-shared/es2018");var fc=class extends on{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...se(null),toggle:Qu.noop};this.checkIfShouldHide=i=>Ds(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:r}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(ye(l)))return;let a=ye(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,u=ye(p),b=ye(f);if(a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1),v.remove(Jp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=b==="playing";try{await(r==null?void 0:r.toggleGraphView(!0)),this.state$.set(!0),v.add(Jp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Qu.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};var Pv=require("@vkontakte/videoplayer-shared/es2018"),mc=class extends on{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:se(!1),isEnabled$:se(!1),type$:se(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:r,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new Pv.ValueSubject(!1),isEnabled$:new Pv.ValueSubject(!1)}};return o.add(r.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var Yu=require("@vkontakte/videoplayer-shared/es2018");var Gu=require("@vkontakte/videoplayer-shared/es2018"),_0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Vx({maxCount:t}):void 0,e!==0?Rx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Vx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Gu.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},Rx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Gu.safeStorage.get(e)||"{}")}catch(r){return{}}},o=r=>Gu.safeStorage.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o({...i(),[r]:{timeout:t,launchTime:Date.now()}})},canShowNotification:r=>{let l=i()[r];if(l){let d=Date.now()-l.launchTime>t;return d&&n(r),d}else return!0}}};var vc=class extends on{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:se({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:r,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=_0({maxShowCount:r,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,Yu.filterChanged)(),(0,Yu.filter)(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var b0=()=>[dc,cc,uc,pc,fc,mc,vc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var Al=require("@vkontakte/videoplayer-shared/es2018");var ju=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var Nx=Object.defineProperty,Bx=(t,e,i)=>e in t?Nx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ei=(t,e,i)=>Bx(t,typeof e!="symbol"?e+"":e,i),Ox={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:io.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,gc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Tn=j(void 0),Zu=class extends HTMLElement{constructor(){super(),ei(this,"svelteStubComponent"),ei(this,"svelteRootComponent"),ei(this,"store"),ei(this,"microStoresRoot"),ei(this,"statistics"),ei(this,"sentry"),ei(this,"_shadowRoot"),ei(this,"playerContainer"),ei(this,"rootContainer"),ei(this,"shadowRootContainer"),ei(this,"uiConfig"),ei(this,"coreConfig"),ei(this,"statisticsConfig"),ei(this,"interactiveController"),ei(this,"interactiveContainer"),ei(this,"graphMadePause"),ei(this,"currentPlayingVideoIndex",0),ei(this,"needToRepeatPlaylist",!1),ei(this,"videoConfig"),ei(this,"pictureInPictureApi"),ei(this,"mediaSessionApi"),ei(this,"unsubscribePlayerPhaseSubscription"),ei(this,"logger"),ei(this,"log"),ei(this,"subscription"),ei(this,"interactiveSubscription"),ei(this,"annotationsApi"),ei(this,"slotsApi"),ei(this,"focusManager"),ei(this,"prevIsid"),ei(this,"isInited",!1),ei(this,"internalsExposure",null),ei(this,"shadowDOMCallbacksDisabled",!1),ei(this,"createOneStat",(e,i={})=>{var o,n,r,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:p,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:u,autoplay:b,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:k}=lc(this.videoConfig,i),P=(o=k==null?void 0:k.projectInfo)==null?void 0:o.pid,I=(r=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?r:!1;I&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:L=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new Ml.OneStat({movieId:E,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=b&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:L,refDomain:C,deviceId:T,...P&&(!this.isInited||I)&&{projectId:Number(P)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(z){console.error(z),this.log({message:z.message})}}),Al.devNull.create("ui"),this.logger=new io.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new io.Subscription,this.interactiveSubscription=new io.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,r=ii({title:o,thumbUrl:n}),l={target:this.playerContainer,props:r};this.svelteStubComponent=ps(Tv,l)}disconnectedCallback(){var e,i,o,n,r,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Al.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:r}=lc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Ml.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:n},{config:this.statisticsConfig,refreshAuthToken:r})}createPlayer(e,i={},o){var n,r,l,d,a,p,f,v,u;if(!this.videoConfig)return;let{albumId:b,statPlace:w,statAuthToken:y,preload:C,autoplay:T,volume:k,muted:P,fromTime:I,canRewindLive:E,supportLink:L,showAds:q,adsSlotId:z,adsParams:U={},adsPreviewParam:G,adsAutoplayParam:re,interfaceLanguage:Y,isCyrillicRelatedInterface:ce,logoClickable:ae,logoHidden:Ae,isMobile:Re,isTouch:me,isAudioDisabled:ue,isLiveCatchUpMode:Ve,fullScreenTarget:te,failoverHosts:N,canDownload:Qe,callbacks:ee,interactiveData:We,showThumbTimer:le,additionalButtons:pe=[],additionalSettingsMenuItems:$e=[],additionalContextMenuItems:Z=[],repeat:qe,saveRate:Xe,volumeMultiplier:Ie,showEndScreen:oe,showAutoplayNext:Te,mediascopePixels:Ke}=lc(this.videoConfig,i),{sources:rt,title:nt,thumbUrl:Rt,unitedVideoId:et,isClip:pt=!1,duration:Yt,adsParams:oi={},videoEpisodes:Qt,previewThumbsData:Tt,subtitles:ie,live:Nt}=e,ge={...U,...oi},X=this.getNextVideoInfo(),xe={sources:rt,title:nt,thumbUrl:Rt,subtitles:ie,unitedVideoId:et,isClip:pt,live:Nt,albumId:b,statPlace:w,autoplay:T,muted:P,volume:k,fromTime:I,canRewindLive:E,showAds:q,adsSlotId:z,adsParams:ge,adsPreviewParam:G,adsAutoplayParam:re,duration:Yt,logoClickable:ae,logoHidden:Ae,isTouch:me!=null?me:Re,repeat:qe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:X.nextVideoTitle,endScreenVideoThumb:X.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},He={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(xe)}`});let fe=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Ne=(fe==null?void 0:fe.oneStat)||this.createOneStat(e,i),Je=this.createThinOneStat(e,i),Ue;Ke&&(Ue=new Ml.MediascopePixel({pixels:Ke})),(Ne||Je)&&(this.statistics=new Eu(Ne,Je,Ue,fe==null?void 0:fe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new pa(this.uiConfig.sentry,{version:da,env:Jc},{movieId:et,albumId:b,place:w,autoplay:(r=T&&!this.interactiveController)!=null?r:!1,mobile:me!=null?me:Re,clip:pt}),this.interactiveController&&((a=this.prevIsid)!=null||(this.prevIsid=(d=(l=this.statistics)==null?void 0:l.oneStat)==null?void 0:d.isid$.getValue())),this.sentry={...this.sentry,...pa.getInstance()};let Et=!!We,St=[],_t="tooltip_interactive_go_back_disabled_first";if(Et&&this.interactiveController){let Ht=this.interactiveController.state.isInitialChapter$.getValue(),fi=this.interactiveController.getHistoryState();Ht&&St.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||St.push("SEEK_TO_INTERACTIVE_BUTTON"),fi.hasPrevChapter$.getValue()||(St.push("PLAY_PREV_CHAPTER_BUTTON"),Ht||(fi.isGoBackLimited$.getValue()?_t="tooltip_interactive_go_back_disabled_limit":_t="tooltip_interactive_go_back_disabled"))}let Ri=()=>{var Ht;this.isInited=!1,this.prevIsid=void 0;let fi=(o==null?void 0:o.info.isEnded$.getValue())&&((Ht=this.interactiveController)==null?void 0:Ht.state.isEndChapter$.getValue());ee.onReplayInteractiveVideo&&!fi?ee.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=B1({player:o,interfaceLanguage:Y,isCyrillicRelatedInterface:ce,videoId:et,isClip:pt,isLiveCatchUpMode:Ve,isAudioDisabled:ue,statAuthToken:y,callbacks:ee,webApi:He,videoEpisodes:Qt,previewThumbsData:Tt,canDownload:Qe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:St,isInteractive:Et,saveRate:Xe,interactiveRanges$:(p=this.interactiveController)==null?void 0:p.state.interactiveRanges$,isInteractiveTime$:(f=this.interactiveController)==null?void 0:f.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Ri,playPrevChapterDisabledTooltip:_t,hasInteractiveBranches:!!((u=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&u.length),additionalButtons:this.uiConfig.features.additionalButtons?pe:[],additionalSettingsMenuItems:$e!=null?$e:[],additionalContextMenuItems:Z!=null?Z:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:qe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:ci}=this.microStoresRoot=b0(),ot=()=>{var Ht,fi,qi,ho,Ki,jt;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(At=>{var ct;return(ct=ee==null?void 0:ee.onCurrentFormatChanged)==null?void 0:ct.call(ee,At)})),this.subscription.add(ci.interactiveControlsOpacity$.subscribe(At=>{var ct;At!==null&&((ct=this==null?void 0:this.interactiveController)==null||ct.setDisabledControls(At))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(At=>{var ct;return(ct=ee==null?void 0:ee.onThroughputEstimationChanged)==null?void 0:ct.call(ee,At)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(At=>{var ct;return(ct=ee==null?void 0:ee.onTrafficSavingEnabledChanged)==null?void 0:ct.call(ee,At)})),this.subscription.add(new io.Observable(At=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ct=>At.next(ct)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,io.skip)(1):At=>At).subscribe(At=>{var ct;return(ct=ee==null?void 0:ee.onCurrentPlaybackRateChanged)==null?void 0:ct.call(ee,At)})),this.subscription.add(this.store.state.volume$.subscribe(At=>{var ct;return(ct=ee==null?void 0:ee.onVolumeChange)==null?void 0:ct.call(ee,At)})),this.subscription.add(this.store.state.muted$.subscribe(At=>{var ct,mi,Q,qt;if(At)(ct=ee==null?void 0:ee.onMute)==null||ct.call(ee);else{let di=(Q=((mi=this.store)==null?void 0:mi.state.volume$)&&ye(this.store.state.volume$))!=null?Q:0;(qt=ee==null?void 0:ee.onUnmute)==null||qt.call(ee,di)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(At=>{var ct;return(ct=ee==null?void 0:ee.onVideoBitrateChanged)==null?void 0:ct.call(ee,At)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(At=>{var ct;let mi=(ct=this.store)==null?void 0:ct.ui.controls.disabledControls$;mi&&(At&&!mi.includes(fd)&&mi.add(fd),At||mi.remove(fd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async At=>{var ct;if(!gc.clientChecker.browser.isSamsungBrowser||!At||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((ct=this.videoConfig)==null?void 0:ct.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(At=>{var ct;return(ct=ee==null?void 0:ee.onVSIDChanged)==null?void 0:ct.call(ee,At)})),this.initMediaSession(),B(Tn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:rt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,coreConfig:this.coreConfig,title:nt,thumbUrl:Rt,subtitles:ie,live:Nt,preload:C,autoplay:T,muted:P,volume:k,fromTime:I,canRewindLive:E,supportLink:L,showAds:q,adsSlotId:z,adsParams:ge,adsPreviewParam:G,adsAutoplayParam:re,duration:Yt,logoClickable:ae,logoHidden:Ae,isMobile:me!=null?me:Re,failoverHosts:N,fullScreenTarget:te,saveRate:Xe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:le,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:X.nextVideoTitle,endScreenVideoThumb:X.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ie,showEndScreen:oe,showAutoplayNext:Te},!0);let _o={target:this.playerContainer,props:s(Tn)};this.svelteRootComponent=ps(wv,_o),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(qi=(fi=(Ht=this.videoConfig)==null?void 0:Ht.callbacks)==null?void 0:fi.onInited)==null||qi.call(fi)),(ho=this.internalsExposure)==null||ho.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((jt=(Ki=this.videoConfig)==null?void 0:Ki.callbacks)!=null&&jt.onDevNullLog)?Al.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Al.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?gc.clientChecker.isInited$.subscribe(Ht=>{Ht&&(console.log("UI SDK async start"),ot())}):ot()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let r=(i=this.videoConfig)==null?void 0:i.callbacks;r&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=r.onPlayerPhaseChanged)==null?void 0:a.call(r,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=r.onPlaybackStateChanged)==null?void 0:a.call(r,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=r.onIsLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=r.onIsActiveLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=r.onIsAudioAvailableChanged)==null?void 0:a.call(r,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=r.onCurrentQualityChanged)==null?void 0:a.call(r,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=r.onAvailableQualitiesChanged)==null?void 0:a.call(r,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&r.onAudioLanguagesAvailable&&r.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,p;return d?(a=r.onPiPEnter)==null?void 0:a.call(r):(p=r.onPiPExit)==null?void 0:p.call(r)}));let l=r==null?void 0:r.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,io.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n,r,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,p=a?ye(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:u,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:p,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:u,vkVideoLoader:b,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let k=this.store;T?k.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):k.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let C=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let k=C?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,k),C&&(C=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:k})=>{var P,I,E,L,q,z;if(!this.store||!this.microStoresRoot)return;let U=w.getValue();if(T==="action-choice"&&k==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(md)),T==="action-choice-canceled"){let G=ye(this.store.state.isPlaying$)||U;if(((E=(P=this.videoConfig)==null?void 0:P.isTouch)!=null?E:(I=this.videoConfig)!=null&&I.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(z=(L=this.videoConfig)==null?void 0:(q=L.callbacks).onDisabledInteractiveClick)==null||z.call(q)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:k})=>{this.store&&T==="container-fake-removed"&&k&&this.store.ui.controls.disabledControls$.remove(md)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(k=>{var P,I,E;k.length&&((E=(I=(P=this.videoConfig)==null?void 0:P.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||E.call(I,k))}))}(l=(r=this.videoConfig)==null?void 0:r.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var k,P,I;(I=(k=this.videoConfig)==null?void 0:(P=k.callbacks).onInteractiveChapterChanged)==null||I.call(P,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,k,P,I;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(k=this.videoConfig)==null?void 0:(P=k.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(P)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,n,r,l,d,a,p,f,v,u,b,w,y,C,T,k,P,I,E,L,q,z,U,G,re,Y;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=lc(Ox,(0,io.cloneDeepWith)(e,ce=>ce instanceof HTMLElement?ce:void 0)),this.uiConfig=_h((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(r=i.statistics)!=null?r:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(l=this.uiConfig.sentry)!=null?l:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new io.InternalsExposure("UI"))),Al.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((a=this.videoConfig)==null?void 0:a.showAds)],numbers:[(0,$0.now)()]}),(0,io.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,io.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(v=this.uiConfig.features.pip)!=null?v:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=(b=this.uiConfig.features.dpip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((E=this.uiConfig.showLogo)!=null?E:!this.videoConfig.logoHidden),(L=this.videoConfig).canRewindLive&&(L.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(q=this.videoConfig.supportLink)!=null?q:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(z=this.uiConfig.features.endScreen)!=null?z:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(U=this.uiConfig.features.autoplayNext)!=null?U:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(G=this.uiConfig.features.nextPrevButtons)!=null?G:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((re=this.videoConfig.videos)!=null&&re[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ce={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Wu.getLatestSupportedVersion(ce):this.pictureInPictureApi=new fa(ce)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Uu:void 0,this.slotsApi=this.uiConfig.features.slots?new Ou:void 0,this.annotationsApi=this.uiConfig.features.annotations?new qu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),f0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(Y=this.slotsApi)==null||Y.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new ju(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();s(Tn)&&(s(Tn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Tn).nextButtonActive=this.isNextButtonActive(),s(Tn).prevButtonActive=this.isPrevButtonActive(),s(Tn).endScreenVideoTitle=o.nextVideoTitle,s(Tn).endScreenVideoThumb=o.nextVideoThumb,s(Tn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,s(Tn)&&(s(Tn).needToRepeatPlaylist=this.needToRepeatPlaylist,s(Tn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Tn).nextButtonActive=this.isNextButtonActive(),s(Tn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let r=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&r(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||r(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var r;(r=this.store)==null||r.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var r;o||n(),(r=this.store)==null||r.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let r=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){r();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=r)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=ye(this.store.state.positionExact$),l=ye(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,io.once)()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&oa(e)}};var Ll=require("@vkontakte/videoplayer-shared/es2018"),Xu=require("@vkontakte/videoplayer-core/es2018"),Dx=()=>{window.customElements.define("vk-video-player",Zu)};
|