@vkontakte/videoplayer 1.1.75-dev.3ba5a3c2.0 → 1.1.76-dev.9523ea02.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 +68 -68
- package/es2015.esm.js +68 -68
- package/es2018.cjs.js +68 -68
- package/es2018.esm.js +68 -68
- package/es2024.cjs.js +56 -56
- package/es2024.esm.js +56 -56
- package/esnext.cjs.js +56 -56
- package/esnext.esm.js +56 -56
- package/evergreen.esm.js +56 -56
- package/package.json +5 -5
- package/types/store/index.d.ts +1 -1
package/es2015.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.76-dev.9523ea02.0
|
|
3
|
+
* Wed, 29 Oct 2025 15:15:02 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-76/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var
|
|
6
|
+
"use strict";var z_=Object.create;var md=Object.defineProperty,W_=Object.defineProperties,K_=Object.getOwnPropertyDescriptor,q_=Object.getOwnPropertyDescriptors,Q_=Object.getOwnPropertyNames,Og=Object.getOwnPropertySymbols,j_=Object.getPrototypeOf,Ng=Object.prototype.hasOwnProperty,G_=Object.prototype.propertyIsEnumerable;var Dg=t=>{throw TypeError(t)};var Up=(t,e,i)=>e in t?md(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,q=(t,e)=>{for(var i in e||(e={}))Ng.call(e,i)&&Up(t,i,e[i]);if(Og)for(var i of Og(e))G_.call(e,i)&&Up(t,i,e[i]);return t},jt=(t,e)=>W_(t,q_(e));var Y_=(t,e)=>{for(var i in e)md(t,i,{get:e[i],enumerable:!0})},Bg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Q_(e))!Ng.call(t,r)&&r!==i&&md(t,r,{get:()=>e[r],enumerable:!(o=K_(e,r))||o.enumerable});return t};var Hg=(t,e,i)=>(i=t!=null?z_(j_(t)):{},Bg(e||!t||!t.__esModule?md(i,"default",{value:t,enumerable:!0}):i,t)),Z_=t=>Bg(md({},"__esModule",{value:!0}),t);var ir=(t,e,i)=>Up(t,typeof e!="symbol"?e+"":e,i),zp=(t,e,i)=>e.has(t)||Dg("Cannot "+i);var Bi=(t,e,i)=>(zp(t,e,"read from private field"),i?i.call(t):e.get(t)),Fs=(t,e,i)=>e.has(t)?Dg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),vl=(t,e,i,o)=>(zp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Fg=(t,e,i)=>(zp(t,e,"access private method"),i);var wt=(t,e,i)=>new Promise((o,r)=>{var s=a=>{try{d(i.next(a))}catch(u){r(u)}},l=a=>{try{d(i.throw(a))}catch(u){r(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())});var Kw={};Y_(Kw,{ControlButtonType:()=>hc,GridTypes:()=>jr,InterfaceLanguage:()=>cd.InterfaceLanguage,MenuItemType:()=>Kl,PlayerPhase:()=>Gr,VERSION:()=>Ma,VKNumericLanguage:()=>cd.VKNumericLanguage,VideoFormat:()=>Rp.VideoFormat,VideoQuality:()=>Rp.VideoQuality,loadVKLangPack:()=>cd.loadVKLangPack,registerPlayerWebComponent:()=>Ww});module.exports=Z_(Kw);var Us="[",zs="[!",ma="]",rs={};var no=Symbol(),zn=Symbol("filename"),Ug=Symbol("hmr"),zg="http://www.w3.org/1999/xhtml",tu="http://www.w3.org/2000/svg";var Wp="@attach";var iu=!0;var Kg,qg,Wg=(qg=(Kg=globalThis.process)==null?void 0:Kg.env)==null?void 0:qg.NODE_ENV,Oe=Wg&&!Wg.toLowerCase().startsWith("prod");var or=Array.isArray,Qg=Array.prototype.indexOf,gd=Array.from,Kp=Object.keys,ho=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,ou=Object.getOwnPropertyDescriptors,qp=Object.prototype,jg=Array.prototype,ga=Object.getPrototypeOf,Qp=Object.isExtensible;function Ws(t){return typeof t=="function"}var ue=()=>{};function Gg(t){return t()}function Ks(t){for(var e=0;e<t.length;e++)t[e]()}var Fo=Symbol("$state"),ml=Symbol("legacy props"),Yg=Symbol(""),nu=Symbol("proxy path"),ru=1,gl=3,nr=8;function su(t){return t===this.v}function hl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Zg(t,e){return t!==e}function _l(t){return!hl(t,this.v)}function Xg(){if(Oe){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 Jg(t){if(
|
|
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 Jg(t){if(Oe){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 eh(){if(
|
|
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 eh(){if(Oe){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 th(t){if(Oe){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 ih(){if(
|
|
12
|
+
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function ih(){if(Oe){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 oh(){if(
|
|
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 oh(){if(Oe){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 nh(){if(
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function nh(){if(Oe){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 rh(t){if(Oe){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 sh(t){if(
|
|
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 sh(t){if(Oe){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 ah(t){if(
|
|
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 ah(t){if(Oe){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 lh(){if(
|
|
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 lh(){if(Oe){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 dh(){if(Oe){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 ch(){if(Oe){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var ss=!1,as=!1;function uh(){ss=!0}var hd=null;function bs(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
|
|
23
23
|
`),r=[`
|
|
24
|
-
`];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;
|
|
25
|
-
`)}),
|
|
24
|
+
`];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;ho(e,"stack",{value:r.join(`
|
|
25
|
+
`)}),ho(e,"name",{value:`${t}Error`})}return e}function Fr(t,e){return t.label=e,au(t.v,e),t}function au(t,e){var i;return(i=t==null?void 0:t[nu])==null||i.call(t,e),t}function bl(t){if(Oe){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 Wt=null;function
|
|
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 Wt=null;function _d(t){Wt=t}var rr=null;function bd(t){rr=t}function $l(t){return Yp("getContext").get(t)}function yl(t,e){return Yp("setContext").set(t,e),e}function $d(){return Yp("getAllContexts")}function F(t,e=!1,i){var o=Wt={p:Wt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ss&&!e&&(Wt.l={s:null,u:null,r1:[],r2:Ir(!1)}),Ao(()=>{o.d=!0}),Oe&&(Wt.function=i,rr=i)}function U(t){var l,d;let e=Wt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=Tt,o=Dt;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];_o(s.effect),Gi(s.reaction),Po(s.fn)}}finally{_o(i),Gi(o)}}Wt=e.p,Oe&&(rr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ls(){return!ss||Wt!==null&&Wt.l===null}function Yp(t){var e;return Wt===null&&bl(t),(e=Wt.c)!=null?e:Wt.c=new Map(J_(Wt)||void 0)}function J_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var eb=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ai(t){if(typeof t!="object"||t===null||Fo in t)return t;let e=ga(t);if(e!==qp&&e!==jg)return t;var i=new Map,o=or(t),r=j(0),s=Oe&&as?bs("CreatedAt"):null,l=Dt,d=f=>{var v=Dt;Gi(l);var p=f();return Gi(v),p};o&&i.set("length",j(t.length,s));var a="";function u(f){a=f,Fr(r,`${a} version`);for(let[v,p]of i)Fr(p,ha(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&lh();var x=i.get(v);return x===void 0?x=d(()=>{var w=j(p.value,s);return i.set(v,w),Oe&&typeof v=="string"&&Fr(w,ha(a,v)),w}):O(x,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let y=d(()=>j(no,s));i.set(v,y),Zp(r),Oe&&Fr(y,ha(a,v))}}else{if(o&&typeof v=="string"){var x=i.get("length"),w=Number(v);Number.isInteger(w)&&w<x.v&&O(x,w)}O(p,no),Zp(r)}return!0},get(f,v,p){var C;if(v===Fo)return t;if(Oe&&v===nu)return u;var x=i.get(v),w=v in f;if(x===void 0&&(!w||(C=Ho(f,v))!=null&&C.writable)&&(x=d(()=>{var T=ai(w?f[v]:no),E=j(T,s);return Oe&&Fr(E,ha(a,v)),E}),i.set(v,x)),x!==void 0){var y=n(x);return y===no?void 0:y}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var x=i.get(v);x&&(p.value=n(x))}else if(p===void 0){var w=i.get(v),y=w==null?void 0:w.v;if(w!==void 0&&y!==no)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return p},has(f,v){var y;if(v===Fo)return!0;var p=i.get(v),x=p!==void 0&&p.v!==no||Reflect.has(f,v);if(p!==void 0||Tt!==null&&(!x||(y=Ho(f,v))!=null&&y.writable)){p===void 0&&(p=d(()=>{var C=x?ai(f[v]):no,T=j(C,s);return Oe&&Fr(T,ha(a,v)),T}),i.set(v,p));var w=n(p);if(w===no)return!1}return x},set(f,v,p,x){var N;var w=i.get(v),y=v in f;if(o&&v==="length")for(var C=p;C<w.v;C+=1){var T=i.get(C+"");T!==void 0?O(T,no):C in f&&(T=d(()=>j(no,s)),i.set(C+"",T),Oe&&Fr(T,ha(a,C)))}if(w===void 0)(!y||(N=Ho(f,v))!=null&&N.writable)&&(w=d(()=>j(void 0,s)),O(w,ai(p)),i.set(v,w),Oe&&Fr(w,ha(a,v)));else{y=w.v!==no;var E=d(()=>ai(p));O(w,E)}var R=Reflect.getOwnPropertyDescriptor(f,v);if(R!=null&&R.set&&R.set.call(x,p),!y){if(o&&typeof v=="string"){var A=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=A.v&&O(A,I+1)}Zp(r)}return!0},ownKeys(f){n(r);var v=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==no});for(var[p,x]of i)x.v!==no&&!(p in f)&&v.push(p);return v},setPrototypeOf(){dh()}})}function ha(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:eb.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Zp(t,e=1){O(t,t.v+e)}function xl(t){try{if(t!==null&&typeof t=="object"&&Fo in t)return t[Fo]}catch(e){}return t}function Xp(t,e){return Object.is(xl(t),xl(e))}function Ur(t){var e=2050,i=Dt!==null&&(Dt.f&2)!==0?Dt:null;Tt===null||i!==null&&(i.f&256)!==0?e|=256:Tt.f|=1048576;let o={ctx:Wt,deps:null,effects:null,equals:su,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:Tt};return Oe&&as&&(o.created=bs("CreatedAt")),o}function m(t){let e=Ur(t);return cu(e),e}function En(t){let e=Ur(t);return e.equals=_l,e}function lu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Yi(e[i])}}var Jp=[];function tb(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function of(t){var e,i=Tt;if(_o(tb(t)),Oe){let o=_a;ef(new Set);try{Jp.includes(t)&&Xg(),Jp.push(t),lu(t),e=du(t)}finally{_o(i),ef(o),Jp.pop()}}else try{lu(t),e=du(t)}finally{_o(i)}return e}function nf(t){var e=of(t);if(t.equals(e)||(t.v=e,t.wv=yd()),!$s){var i=(ys||(t.f&256)!==0)&&t.deps!==null?4096:1024;In(t,i)}}var _a=new Set,wl=new Map;function ef(t){_a=t}function Ir(t,e){var i={f:0,v:t,reactions:null,equals:su,rv:0,wv:0};return Oe&&as&&(i.created=e!=null?e:bs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=Ir(t,e);return cu(i),i}function ds(t,e=!1,i=!0){var r,s;let o=Ir(t);return e||(o.equals=_l),ss&&i&&Wt!==null&&Wt.l!==null&&((s=(r=Wt.l).s)!=null?s:r.s=[]).push(o),o}function O(t,e,i=!1){var r;Dt!==null&&(!lr||(Dt.f&262144)!==0)&&ls()&&(Dt.f&262162)!==0&&!((r=zo)!=null&&r[1].includes(t)&&zo[0]===Dt)&&ch();let o=i?ai(e):e;return Oe&&au(o,t.label),Sl(t,o)}function Sl(t,e){if(!t.equals(e)){var i=t.v;if($s?wl.set(t,e):wl.set(t,i),t.v=e,Oe&&as&&(t.updated=bs("UpdatedAt"),Tt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&of(t),In(t,(t.f&256)===0?1024:4096)),t.wv=yd(),fh(t,2048),ls()&&Tt!==null&&(Tt.f&1024)!==0&&(Tt.f&96)===0&&(ar===null?vh([t]):ar.push(t)),Oe&&_a.size>0){let o=Array.from(_a);for(let r of o)(r.f&1024)!==0&&In(r,4096),$a(r)&&Cl(r);_a.clear()}}return e}function fh(t,e){var i=t.reactions;if(i!==null)for(var o=ls(),r=i.length,s=0;s<r;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===Tt)){if(Oe&&(d&262144)!==0){_a.add(l);continue}In(l,e),(d&1280)!==0&&((d&2)!==0?fh(l,4096):wd(l))}}}var Tl="font-weight: bold",El="font-weight: normal";function mh(t,e,i){Oe?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`,El
|
|
29
|
+
https://svelte.dev/e/hydration_attribute_changed`,Tl,El):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function gh(t){Oe?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`,El
|
|
31
|
+
https://svelte.dev/e/hydration_html_changed`,Tl,El):console.warn("https://svelte.dev/e/hydration_html_changed")}function qs(t){Oe?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`,El
|
|
33
|
+
https://svelte.dev/e/hydration_mismatch`,Tl,El):console.warn("https://svelte.dev/e/hydration_mismatch")}function hh(){Oe?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`,El
|
|
35
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Tl,El):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function _h(){Oe?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",Tl,El):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function uu(t){Oe?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`,El
|
|
37
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Tl,El):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var rt=!1;function bo(t){rt=t}var Et;function Ai(t){if(t===null)throw qs(),rs;return Et=t}function Zi(){return Ai(Wo(Et))}function g(t){if(rt){if(Wo(Et)!==null)throw qs(),rs;Et=t}}function Ee(t=1){if(rt){for(var e=t,i=Et;e--;)i=Wo(i);Et=i}}function ya(){for(var t=0,e=Et;;){if(e.nodeType===nr){var i=e.data;if(i===ma){if(t===0)return e;t-=1}else(i===Us||i===zs)&&(t+=1)}var o=Wo(e);e.remove(),e=o}}function pu(t){if(!t||t.nodeType!==nr)throw qs(),rs;return t.data}function bh(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(xl(this[a])===s){uu("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(xl(this[a])===s){uu("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=r.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(xl(this[a])===s){uu("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var xa,$h,Sd,yh,xh;function fu(){if(xa===void 0){xa=window,$h=document,Sd=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;yh=Ho(e,"firstChild").get,xh=Ho(e,"nextSibling").get,Qp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Qp(i)&&(i.__t=void 0),Oe&&(t.__svelte_meta=null,bh())}}function kn(t=""){return document.createTextNode(t)}function Vi(t){return yh.call(t)}function Wo(t){return xh.call(t)}function _(t,e){if(!rt)return Vi(t);var i=Vi(Et);if(i===null)i=Et.appendChild(kn());else if(e&&i.nodeType!==gl){var o=kn();return i==null||i.before(o),Ai(o),o}return Ai(i),i}function fe(t,e){var r,s;if(!rt){var i=Vi(t);return i.nodeType===8&&i.data===""?Wo(i):i}if(e&&((r=Et)==null?void 0:r.nodeType)!==gl){var o=kn();return(s=Et)==null||s.before(o),Ai(o),o}return Et}function P(t,e=1,i=!1){let o=rt?Et:t;for(var r;e--;)r=o,o=Wo(o);if(!rt)return o;if(i&&(o==null?void 0:o.nodeType)!==gl){var s=kn();return o===null?r==null||r.after(s):o.before(s),Ai(s),s}return Ai(o),o}function Cd(t){t.textContent=""}function af(t){Tt===null&&Dt===null&&th(t),Dt!==null&&(Dt.f&256)!==0&&Tt===null&&eh(),$s&&Jg(t)}function ib(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function wa(t,e,i,o=!0){var a;var r=Tt;if(Oe)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:Wt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Oe&&(s.component_function=rr),i)try{Cl(s),s.f|=32768}catch(u){throw Yi(s),u}else e!==null&&wd(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(r!==null&&ib(s,r),Dt!==null&&(Dt.f&2)!==0)){var d=Dt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Ao(t){let e=wa(8,null,!1);return In(e,1024),e.teardown=t,e}function Qe(t){var r;af("$effect");var e=Tt!==null&&(Tt.f&32)!==0&&Wt!==null&&!Wt.m;if(Oe&&ho(t,"name",{value:"$effect"}),e){var i=Wt;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:Tt,reaction:Dt})}else{var o=Po(t);return o}}function Id(t){return af("$effect.pre"),Oe&&ho(t,"name",{value:"$effect.pre"}),Ko(t)}function gu(t){let e=wa(64,t,!0);return()=>{Yi(e)}}function Sh(t){let e=wa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Qn(e,()=>{Yi(e),o(void 0)}):(Yi(e),o(void 0))})}function Po(t){return wa(4,t,!1)}function Ko(t){return wa(8,t,!0)}function D(t,e=[],i=Ur){if(Oe)return Ko(()=>{var r=Tt,s=()=>t(...l.map(n));ho(r.fn,"name",{value:"{expression}"}),ho(s,"name",{value:"{expression}"});let l=e.map(i);Xi(s)});let o=e.map(i);return Xi(()=>t(...o.map(n)))}function Xi(t,e=0){return wa(24|e,t,!0)}function Hi(t,e=!0){return wa(40,t,!0,e)}function lf(t){var e=t.teardown;if(e!==null){let i=$s,o=Dt;rf(!0),Gi(null);try{e.call(null)}finally{rf(i),Gi(o)}}}function df(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:Yi(i,e),i=o}}function Ch(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Yi(e),e=i}}function Yi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(cf(t.nodes_start,t.nodes_end),i=!0),df(t,e&&!i),kd(t,0),In(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();lf(t);var r=t.parent;r!==null&&r.first!==null&&uf(t),Oe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function cf(t,e){for(;t!==null;){var i=t===e?null:Wo(t);t.remove(),t=i}}function uf(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 Qn(t,e){var i=[];hu(t,i,!0),pf(i,()=>{Yi(t),e&&e()})}function pf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function hu(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 r=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;hu(o,e,s?i:!1),o=r}}}function ws(t){Th(t,!0)}function Th(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;Th(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Ad=[],ff=[];function Eh(){var t=Ad;Ad=[],Ks(t)}function ob(){var t=ff;ff=[],Ks(t)}function An(t){Ad.length===0&&queueMicrotask(Eh),Ad.push(t)}function Ih(){Ad.length>0&&Eh(),ff.length>0&&ob()}function Ah(t){var e=Tt;if(Oe&&t instanceof Error&&nb(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Pd(t,e)}function Pd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var kh=new WeakSet;function nb(t,e){var l,d;if(kh.has(t))return;kh.add(t);let i=Ho(t,"message");if(!(i&&!i.configurable)){for(var o=Sd?" ":" ",r=`
|
|
38
38
|
${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)r+=`
|
|
39
|
-
${o}in ${(d=s.function)==null?void 0:d[
|
|
39
|
+
${o}in ${(d=s.function)==null?void 0:d[zn].split("/").pop()}`,s=s.p;ho(t,"message",{value:t.message+`
|
|
40
40
|
${r}
|
|
41
|
-
`}),t.stack&&
|
|
41
|
+
`}),t.stack&&ho(t,"stack",{value:t.stack.split(`
|
|
42
42
|
`).filter(a=>!a.includes("svelte/src/internal")).join(`
|
|
43
|
-
`)})}}var Ca=!1,kl=null,Ta=!1,xs=!1;function rf(t){xs=t}var Ld=[],Vd=[],Dt=null,dr=!1;function Qi(t){Dt=t}var St=null;function mo(t){St=t}var Yo=null;function pu(t){Dt!==null&&Dt.f&2097152&&(Yo===null?Yo=[Dt,[t]]:Yo[1].push(t))}var Pn=null,cr=0,lr=null;function vh(t){lr=t}var Lh=1,yu=0,ws=!1,xu=null;function xd(){return++Lh}function ya(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 r,s,l=(e&512)!==0,d=o&&St!==null&&!ws,a=i.length;if(l||d){var u=t,f=u.parent;for(r=0;r<a;r++)s=i[r],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(r=0;r<a;r++)if(s=i[r],ya(s)&&nf(s),s.wv>t.wv)return!0}(!o||St!==null&&!ws)&&In(t,1024)}return!1}function Vh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];Yo!=null&&Yo[1].includes(t)&&Yo[0]===Dt||((s.f&2)!==0?Vh(s,e,!1):e===s&&(i?In(s,2048):(s.f&1024)!==0&&In(s,4096),Sd(s)))}}function uu(t){var x,w;var e=Pn,i=cr,o=lr,r=Dt,s=ws,l=Yo,d=Wt,a=dr,u=t.f;Pn=null,cr=0,lr=null,ws=(u&256)!==0&&(dr||!Ta||Dt===null),Dt=(u&96)===0?t:null,Yo=null,bd(t.ctx),dr=!1,yu++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(Pn!==null){var p;if(Ad(t,cr),v!==null&&cr>0)for(v.length=cr+Pn.length,p=0;p<Pn.length;p++)v[cr+p]=Pn[p];else t.deps=v=Pn;if(!ws||(u&2)!==0&&t.reactions!==null)for(p=cr;p<v.length;p++)((w=(x=v[p]).reactions)!=null?w:x.reactions=[]).push(t)}else v!==null&&cr<v.length&&(Ad(t,cr),v.length=cr);if(ds()&&lr!==null&&!dr&&v!==null&&(t.f&6146)===0)for(p=0;p<lr.length;p++)Vh(lr[p],t);return r!==null&&r!==t&&(yu++,lr!==null&&(o===null?o=lr:o.push(...lr))),f}catch(y){Ah(y)}finally{Pn=e,cr=i,lr=o,Dt=r,ws=s,Yo=l,bd(d),dr=a,t.f^=2097152}}function ab(t,e){let i=e.reactions;if(i!==null){var o=Qg.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(Pn===null||!Pn.includes(e))&&(In(e,4096),(e.f&768)===0&&(e.f^=512),cu(e),Ad(e,0))}function Ad(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)ab(t,i[o])}function Tl(t){var e=t.f;if((e&16384)===0){In(t,1024);var i=St,o=Ta;if(St=t,Ta=!0,Ve){var r=sr;$d(t.component_function)}try{(e&16)!==0?Ch(t):df(t),lf(t);var s=uu(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Lh,Ve&&ls&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=xd(),l.set_during_effect=!1);Ve&&Vd.push(t)}finally{Ta=o,St=i,Ve&&$d(r)}}}function Ph(){console.error("Last ten effects were: ",Vd.slice(-10).map(t=>t.fn)),Vd=[]}function lb(){try{ih()}catch(t){if(Ve&&vo(t,"stack",{value:""}),kl!==null)if(Ve)try{Md(t,kl)}catch(e){throw Ph(),e}else Md(t,kl);else throw Ve&&Ph(),t}}function mf(){var t=Ta;try{var e=0;for(Ta=!0;Ld.length>0;){e++>1e3&&lb();var i=Ld,o=i.length;Ld=[];for(var r=0;r<o;r++){var s=cb(i[r]);db(s)}Sl.clear()}}finally{Ca=!1,Ta=t,kl=null,Ve&&(Vd=[])}}function db(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ya(o)&&(Tl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?uf(o):o.fn=null))}}function Sd(t){Ca||(Ca=!0,queueMicrotask(mf));for(var e=kl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Ld.push(e)}function cb(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:ya(i)&&Tl(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 Al(t){var e;for(t&&(Ca=!0,mf(),Ca=!0,e=t());;){if(Ih(),Ld.length===0)return Ca=!1,kl=null,Ve&&(Vd=[]),e;Ca=!0,mf()}}function Lo(){return wt(this,null,function*(){yield Promise.resolve(),Al()})}function n(t){var e=t.f,i=(e&2)!==0;if(xu!==null&&xu.add(t),Dt!==null&&!dr){if(!(Yo!=null&&Yo[1].includes(t))||Yo[0]!==Dt){var o=Dt.deps;t.rv<yu&&(t.rv=yu,Pn===null&&o!==null&&o[cr]===t?cr++:Pn===null?Pn=[t]:(!ws||!Pn.includes(t))&&Pn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,ya(r)&&nf(r)),Ve&&ls&&!dr&&_d!==null&&Dt!==null&&_d.reaction===Dt)if(t.trace)t.trace();else{var l=ys("TracedAt");if(l){var d=_d.entries.get(t);d===void 0&&(d={traces:[]},_d.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 xs&&Sl.has(t)?Sl.get(t):t.v}function Lt(t){var e=dr;try{return dr=!0,t()}finally{dr=e}}var ub=-7169;function In(t,e){t.f=t.f&ub|e}function Su(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(jo in t)wu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&jo in i&&wu(i)}}}function wu(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{wu(t[o],e)}catch(r){}let i=ha(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=ru(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch(l){}}}}}function gf(t,e){if(e){let i=document.body;t.autofocus=!0,An(()=>{document.activeElement===i&&t.focus()})}}function Rd(t){var e=Dt,i=St;Qi(null),mo(null);try{return t()}finally{Qi(e),mo(i)}}var hf=new Set,Cu=new Set;function Ea(t){if(!rt)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 _f(t,e,i,o={}){function r(s){if(o.capture||Pl.call(e,s),!s.cancelBubble)return Rd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?An(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function Et(t,e,i,o,r){var s={capture:o,passive:r},l=_f(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Po(()=>{e.removeEventListener(t,l,s)})}function ct(t){for(var e=0;e<t.length;e++)hf.add(t[e]);for(var i of Cu)i(t)}function Pl(t){var E;var e=this,i=e.ownerDocument,o=t.type,r=((E=t.composedPath)==null?void 0:E.call(t))||[],s=r[0]||t.target,l=0,d=t.__root;if(d){var a=r.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=r[l]||t.target,s!==e){vo(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Dt,v=St;Qi(null),mo(null);try{for(var p,x=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+o];if(y!=null&&(!s.disabled||t.target===s))if(nr(y)){var[C,...T]=y;C.apply(s,[t,...T])}else y.call(s,t)}catch(R){p?x.push(R):p=R}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let R of x)queueMicrotask(()=>{throw R});throw p}}finally{t.__root=e,delete t.currentTarget,Qi(f),mo(v)}}}var fb;function Rh(){fb=void 0}function Ml(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Vo(t,e){var i=St;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,r,s=!t.startsWith("<!>");return()=>{if(rt)return Vo(Ct,null),Ct;r===void 0&&(r=Ml(s?t:"<!>"+t),i||(r=Ai(r)));var l=o||Cd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ai(l),a=l.lastChild;Vo(d,a)}else Vo(l,l);return l}}function gb(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(rt)return Vo(Ct,null),Ct;if(!l){var d=Ml(s),a=Ai(d);if(r)for(l=document.createDocumentFragment();Ai(a);)l.appendChild(Ai(a));else l=Ai(a)}var u=l.cloneNode(!0);if(r){var f=Ai(u),v=u.lastChild;Vo(f,v)}else Vo(u,u);return u}}function Ie(t,e){return gb(t,e,"svg")}function us(t=""){if(!rt){var e=kn(t+"");return Vo(e,e),e}var i=Ct;return i.nodeType!==hl&&(i.before(i=kn()),Ii(i)),Vo(i,i),i}function Fe(){if(rt)return Vo(Ct,null),Ct;var t=document.createDocumentFragment(),e=document.createComment(""),i=kn();return t.append(e,i),Vo(e,i),t}function b(t,e){if(rt){St.nodes_end=Ct,Gi();return}t!==null&&t.before(e)}var hb=/\r/g;function Nh(t){t=t.replace(hb,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Dh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var _b=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Bh(t){return _b.includes(t)}var bb=["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 $b={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 Hh(t){var e;return t=t.toLowerCase(),(e=$b[t])!=null?e:t}var R9=[...bb,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var yb=["touchstart","touchmove"];function Fh(t){return yb.includes(t)}var xb=["$state","$state.raw","$derived","$derived.by"],O9=[...xb,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var wb=["textarea","script","style","title"];function Uh(t){return wb.includes(t)}function Tu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Od=!0;function Eu(t){Od=t}function me(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 Yr(t,e){return zh(t,e)}function $f(t,e){var l;mu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=rt,r=Ct;try{for(var s=Ai(i);s&&(s.nodeType!==rr||s.data!==Ws);)s=Zo(s);if(!s)throw ss;go(!0),Ii(s),Gi();let d=zh(t,jt(Q({},e),{anchor:s}));if(Ct===null||Ct.nodeType!==rr||Ct.data!==ga)throw js(),ss;return go(!1),d}catch(d){if(d===ss)return e.recover===!1&&oh(),mu(),Td(i),go(!1),Yr(t,e);throw d}finally{go(o),Ii(r),Rh()}}var Ll=new Map;function zh(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:l=!0}){mu();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var x=v[p];if(!d.has(x)){d.add(x);var w=Fh(x);e.addEventListener(x,Pl,{passive:w});var y=Ll.get(x);y===void 0?(document.addEventListener(x,Pl,{passive:w}),Ll.set(x,1)):Ll.set(x,y+1)}}};a(hd(hf)),Cu.add(a);var u=void 0,f=Sh(()=>{var v=i!=null?i:e.appendChild(kn());return Fi(()=>{if(s){F({});var p=Wt;p.c=s}r&&(o.$$events=r),rt&&Vo(v,null),Od=l,u=t(v,o)||{},Od=!0,rt&&(St.nodes_end=Ct),s&&U()}),()=>{var w;for(var p of d){e.removeEventListener(p,Pl);var x=Ll.get(p);--x===0?(document.removeEventListener(p,Pl),Ll.delete(p)):Ll.set(p,x)}Cu.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return bf.set(u,f),u}var bf=new WeakMap;function Ia(t,e){let i=bf.get(t);return i?(bf.delete(t),i(e)):(Ve&&hh(),Promise.resolve())}function be(t,e,...i){var o=t,r=ue,s;Yi(()=>{r!==(r=e())&&(s&&(ji(s),s=null),Ve&&r==null&&nh(),s=Fi(()=>r(o,...i)))},65536),rt&&(o=Ct)}if(Ve){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;ah(e)},set:o=>{i=o}})}};Eb=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var Eb;function Bt(t){Wt===null&&$l("onMount"),as&&Wt.l!==null?Tb(Wt).m.push(t):We(()=>{let e=Lt(t);if(typeof e=="function")return e})}function pn(t){Wt===null&&$l("onDestroy"),Bt(()=>()=>Lt(t))}function Tb(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Wh=new Map;function Kh(t,e){var i=Wh.get(t);i||(i=new Set,Wh.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){rt&&i===0&&Gi();var r=t,s=null,l=null,d=ro,a=i>0?65536:0,u=!1;let f=(p,x=!0)=>{u=!0,v(x,p)},v=(p,x)=>{if(d===(d=p))return;let w=!1;if(rt&&o!==-1){if(i===0){let C=vu(r);C===Ws?o=0:C===Ks?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(r=xa(),Ii(r),go(!1),w=!0,o=-1)}d?(s?Cs(s):x&&(s=Fi(()=>x(r))),l&&Wn(l,()=>{l=null})):(l?Cs(l):x&&(l=Fi(()=>x(r,[i+1,o]))),s&&Wn(s,()=>{s=null})),w&&go(!0)};Yi(()=>{u=!1,e(f),u||v(null,null)},a),rt&&(r=Ct)}function Ts(t,e,i){rt&&Gi();var o=t,r=ro,s,l=ds()?Zg:_l;Yi(()=>{l(r,r=e())&&(s&&Wn(s),s=Fi(()=>i(o)))}),rt&&(o=Ct)}var Ys=null;function wf(t){Ys=t}function Nd(t,e){return e}function Ab(t,e,i,o){for(var r=[],s=e.length,l=0;l<s;l++)bu(e[l].e,r,!0);var d=s>0&&r.length===0&&i!==null;if(d){var a=i.parentNode;Td(a),a.append(i),o.clear(),Gs(t,e[0].prev,e[s-1].next)}pf(r,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Gs(t,f.prev,f.next)),ji(f.e,!d)}})}function Ei(t,e,i,o,r,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=rt?Ii(Ai(u)):u.appendChild(kn())}rt&&Gi();var f=null,v=!1,p=En(()=>{var x=i();return nr(x)?x:x==null?[]:hd(x)});Yi(()=>{var x=n(p),w=x.length;if(v&&w===0)return;v=w===0;let y=!1;if(rt){var C=vu(l)===Ks;C!==(w===0)&&(l=xa(),Ii(l),go(!1),y=!0)}if(rt){for(var T=null,E,R=0;R<w;R++){if(Ct.nodeType===rr&&Ct.data===ga){l=Ct,y=!0,go(!1);break}var A=x[R],I=o(A,R);E=jh(Ct,d,T,null,A,I,R,r,e,i),d.items.set(I,E),T=E}w>0&&Ii(xa())}rt||Pb(x,d,l,r,e,o,i),s!==null&&(w===0?f?Cs(f):f=Fi(()=>s(l)):f!==null&&Wn(f,()=>{f=null})),y&&go(!0),n(p)}),rt&&(l=Ct)}function Pb(t,e,i,o,r,s,l){var J,ve,se,de;var d=(r&8)!==0,a=(r&3)!==0,u=t.length,f=e.items,v=e.first,p=v,x,w=null,y,C=[],T=[],E,R,A,I;if(d)for(I=0;I<u;I+=1)E=t[I],R=s(E,I),A=f.get(R),A!==void 0&&((J=A.a)==null||J.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<u;I+=1){if(E=t[I],R=s(E,I),A=f.get(R),A===void 0){var N=p?p.e.nodes_start:i;w=jh(N,e,w,w===null?e.first:w.next,E,R,I,o,r,l),f.set(R,w),C=[],T=[],p=w.next;continue}if(a&&Mb(A,E,I,r),(A.e.f&8192)!==0&&(Cs(A.e),d&&((ve=A.a)==null||ve.unfix(),(y!=null?y:y=new Set).delete(A))),A!==p){if(x!==void 0&&x.has(A)){if(C.length<T.length){var H=T[0],B;w=H.prev;var z=C[0],X=C[C.length-1];for(B=0;B<C.length;B+=1)qh(C[B],H,i);for(B=0;B<T.length;B+=1)x.delete(T[B]);Gs(e,z.prev,X.next),Gs(e,w,z),Gs(e,X,H),p=H,w=X,I-=1,C=[],T=[]}else x.delete(A),qh(A,p,i),Gs(e,A.prev,A.next),Gs(e,A,w===null?e.first:w.next),Gs(e,w,A),w=A;continue}for(C=[],T=[];p!==null&&p.k!==R;)(p.e.f&8192)===0&&(x!=null?x:x=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),w=A,p=A.next}if(p!==null||x!==void 0){for(var le=x===void 0?[]:hd(x);p!==null;)(p.e.f&8192)===0&&le.push(p),p=p.next;var q=le.length;if(q>0){var ce=(r&4)!==0&&u===0?i:null;if(d){for(I=0;I<q;I+=1)(se=le[I].a)==null||se.measure();for(I=0;I<q;I+=1)(de=le[I].a)==null||de.fix()}Ab(e,le,ce,f)}}d&&An(()=>{var Le;if(y!==void 0)for(A of y)(Le=A.a)==null||Le.apply()}),St.first=e.first&&e.first.e,St.last=w&&w.e}function Mb(t,e,i,o){(o&1)!==0&&Cl(t.v,e),(o&2)!==0?Cl(t.i,i):t.i=i}function jh(t,e,i,o,r,s,l,d,a,u){var f=Ys,v=(a&1)!==0,p=(a&16)===0,x=v?p?cs(r,!1,!1):wr(r):r,w=(a&2)===0?l:wr(l);Ve&&v&&(x.trace=()=>{var C=typeof w=="number"?l:w.v;u()[C]});var y={i:w,v:x,k:s,a:null,e:null,prev:i,next:o};Ys=y;try{return y.e=Fi(()=>d(t,x,w,u),rt),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{Ys=f}}function qh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Zo(s);r.before(s),s=l}}function Gs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function Lb(t,e,i){var s,l;if(!e||e===Nh(String(i!=null?i:"")))return;let o,r=(s=t.__svelte_meta)==null?void 0:s.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=sr)!=null&&l[Hn]&&(o=`in ${sr[Hn]}`),gh(Tu(o))}function Dd(t,e,i=!1,o=!1,r=!1){var s=t,l="";D(()=>{var x;var d=St;if(l===(l=(x=e())!=null?x:"")){rt&&Gi();return}if(d.nodes_start!==null&&(cf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(rt){for(var a=Ct.data,u=Gi(),f=u;u!==null&&(u.nodeType!==rr||u.data!=="");)f=u,u=Zo(u);if(u===null)throw js(),ss;Ve&&!r&&Lb(u.parentNode,a,l),Vo(Ct,f),s=Ii(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=Ml(v);if((i||o)&&(p=Ai(p)),Vo(Ai(p),p.lastChild),i||o)for(;Ai(p);)s.before(Ai(p));else s.before(p)}})}function Ri(t,e,i){rt&&Gi();var o=t,r,s;Yi(()=>{r!==(r=e())&&(s&&(Wn(s),s=null),r&&(s=Fi(()=>i(o,r))))},65536),rt&&(o=Ct)}function ka(t,e,i,o,r,s){var w;let l=rt;rt&&Gi();var d=Ve&&s&&((w=Wt)==null?void 0:w.function[Hn]),a,u,f=null;rt&&Ct.nodeType===au&&(f=Ct,Gi());var v=rt?Ct:t,p,x=Ys;Yi(()=>{let y=e()||null;var C=r?r():i||y==="svg"?ou:null;if(y!==a){var T=Ys;wf(x),p&&(y===null?Wn(p,()=>{p=null,u=null}):y===u?Cs(p):(ji(p),Eu(!1))),y&&y!==u&&(p=Fi(()=>{if(f=rt?f:C?document.createElementNS(C,y):document.createElement(y),Ve&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Vo(f,f),o){rt&&Uh(y)&&f.append(document.createComment(""));var E=rt?Ai(f):f.appendChild(kn());rt&&(E===null?go(!1):Ii(E)),o(f,E)}St.nodes_end=f,v.before(f)})),a=y,a&&(u=a),Eu(!0),wf(T)}},65536),l&&(go(!0),Ii(v))}var Cf;function Gh(t){return Cf=t.target,new Sf(t)}var Es,Sr,Sf=class{constructor(e){zs(this,Es);zs(this,Sr);var s,l;var i=new Map,o=(d,a)=>{var u=cs(a,!1,!1);return i.set(d,u),u};let r=new Proxy(jt(Q({},e.props||{}),{$$events:{}}),{get(d,a){var u;return n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===gl?!0:(n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return O((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});ml(this,Sr,(e.hydrate?$f:Yr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Al(),ml(this,Es,r.$$events);for(let d of Object.keys(Hi(this,Sr)))d==="$set"||d==="$destroy"||d==="$on"||vo(this,d,{get(){return Hi(this,Sr)[d]},set(a){Hi(this,Sr)[d]=a},enumerable:!0});Hi(this,Sr).$set=d=>{Object.assign(r,d)},Hi(this,Sr).$destroy=()=>{Ia(Hi(this,Sr))}}$set(e){Hi(this,Sr).$set(e)}$on(e,i){Hi(this,Es)[e]=Hi(this,Es)[e]||[];let o=(...r)=>i.call(this,...r);return Hi(this,Es)[e].push(o),()=>{Hi(this,Es)[e]=Hi(this,Es)[e].filter(r=>r!==o)}}$destroy(){Hi(this,Sr).$destroy()}};Es=new WeakMap,Sr=new WeakMap;function W(t,e){An(()=>{var r,s,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(s=Cf)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ve&&Kh(e.hash,d)}})}function Is(t,e){var i=void 0,o;Yi(()=>{i!==(i=e())&&(o&&(ji(o),o=null),i&&(o=Fi(()=>{Mo(()=>i(t))})))})}function Yh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Yh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Zh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Yh(t))&&(o&&(o+=" "),o+=e);return o}function Bd(t){return typeof t=="object"?Zh(t):t!=null?t:""}var Xh=[...`
|
|
44
|
-
\r\f\xA0\v\uFEFF`];function e1(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var s=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+s;(l===0||Xh.includes(o[l-1]))&&(d===o.length||Xh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Jh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function Tf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function t1(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(Tf)),r&&a.push(...Object.keys(r).map(Tf));var u=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===y-1){if(f!==-1){var x=Tf(t.substring(u,f).trim());if(!a.includes(x)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=Jh(o)),r&&(i+=Jh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function re(t,e,i,o,r,s){var l=t.__className;if(rt||l!==i||l===void 0){var d=e1(i,o,s);(!rt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&r!==s)for(var a in s){var u=!!s[a];(r==null||u!==!!r[a])&&t.classList.toggle(a,u)}return s}function Ef(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function et(t,e,i,o){var r=t.__style;if(rt||r!==e){var s=t1(e,o);(!rt||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Ef(t,i==null?void 0:i[0],o[0]),Ef(t,i==null?void 0:i[1],o[1],"important")):Ef(t,i,o));return o}function Hd(t,e,i){if(t.multiple){if(e==null)return;if(!nr(e))return _h();for(var o of t.options)o.selected=e.includes(i1(o));return}for(o of t.options){var r=i1(o);if(Xp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function If(t){var e=new MutationObserver(()=>{Hd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Po(()=>{e.disconnect()})}function i1(t){return"__value"in t?t.__value:t.value}var Vl=Symbol("class"),Rl=Symbol("style"),r1=Symbol("is custom element"),s1=Symbol("is html");function a1(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ke(t,e,i,o){var r=d1(t);if(rt&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Fb(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Yg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&c1(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function l1(t,e,i,o,r=!1){var A;var s=d1(t),l=s[r1],d=!s[s1];let a=rt&&l;a&&go(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Bd(i.class):(o||i[Vl])&&(i.class=null),i[Rl]&&((A=i.style)!=null||(i.style=null));var p=c1(t);for(let I in i){let N=i[I];if(f&&I==="value"&&N==null){t.value=t.__value="",u[I]=N;continue}if(I==="class"){var x=t.namespaceURI==="http://www.w3.org/1999/xhtml";re(t,x,N,o,e==null?void 0:e[Vl],i[Vl]),u[I]=N,u[Vl]=i[Vl];continue}if(I==="style"){et(t,N,e==null?void 0:e[Rl],i[Rl]),u[I]=N,u[Rl]=i[Rl];continue}var w=u[I];if(!(N===w&&!(N===void 0&&t.hasAttribute(I)))){u[I]=N;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},B="$$"+I,z=I.slice(2);var C=Bh(z);if(Dh(z)&&(z=z.slice(0,-7),H.capture=!0),!C&&w){if(N!=null)continue;t.removeEventListener(z,u[B],H),u[B]=null}if(N!=null)if(C)t[`__${z}`]=N,ct([z]);else{let X=function(le){u[I].call(this,le)};var R=X;u[B]=_f(z,t,X,H)}else C&&(t[`__${z}`]=void 0)}else if(I==="style")Ke(t,I,N);else if(I==="autofocus")gf(t,!!N);else if(!l&&(I==="__value"||I==="value"&&N!=null))t.value=t.__value=N;else if(I==="selected"&&f)a1(t,N);else{var T=I;d||(T=Hh(T));var E=T==="defaultValue"||T==="defaultChecked";if(N==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let H=t,B=e===void 0;if(T==="value"){let z=H.defaultValue;H.removeAttribute(T),H.defaultValue=z,H.value=H.__value=B?z:null}else{let z=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=z,H.checked=B?z:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(l||typeof N!="string")?t[T]=N:typeof N!="function"&&Ke(t,T,N,r)}}}return a&&go(!0),u}function Ae(t,e,i=[],o,r=!1,s=Qr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Yi(()=>{var p=e(...l.map(n)),x=l1(t,d,p,o,r);f&&u&&"value"in p&&Hd(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||ji(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var w=p[y];y.description===Wp&&(!d||w!==d[y])&&(a[y]&&ji(a[y]),a[y]=Fi(()=>Is(t,()=>w))),x[y]=w}d=x}),u){var v=t;Mo(()=>{Hd(v,d.value),If(v)})}f=!0}function d1(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[r1]:t.nodeName.includes("-"),[s1]:t.namespaceURI===zg}}var o1=new Map;function c1(t){var e=o1.get(t.nodeName);if(e)return e;o1.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=ru(o);for(var s in i)i[s].set&&e.push(s);o=ha(o)}return e}function Fb(t,e,i){var o;Ve&&(e==="srcset"&&Ub(t,i)||kf((o=t.getAttribute(e))!=null?o:"",i)||mh(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function kf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function n1(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Ub(t,e){var i=n1(t.srcset),o=n1(e);return o.length===i.length&&o.every(([r,s],l)=>s===i[l][1]&&(kf(i[l][0],r)||kf(r,i[l][0])))}var zb=nu?()=>performance.now():()=>Date.now(),Zr={tick:t=>(nu?requestAnimationFrame:ue)(t),now:()=>zb(),tasks:new Set};function u1(){let t=Zr.now();Zr.tasks.forEach(e=>{e.c(t)||(Zr.tasks.delete(e),e.f())}),Zr.tasks.size!==0&&Zr.tick(u1)}function p1(t){let e;return Zr.tasks.size===0&&Zr.tick(u1),{promise:new Promise(i=>{Zr.tasks.add(e={c:t,f:i})}),abort(){Zr.tasks.delete(e)}}}function Iu(t,e){Rd(()=>{t.dispatchEvent(new CustomEvent(e))})}function Qb(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 f1(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let l=Qb(r.trim());e[l]=s.trim()}return e}var jb=t=>t;function Xr(t,e,i,o){var R;var r=(t&1)!==0,s=(t&2)!==0,l=r&&s,d=(t&4)!==0,a=l?"both":r?"in":"out",u,f=e.inert,v=e.style.overflow,p,x;function w(){var N;var A=Dt,I=St;Qi(null),mo(null);try{return u!=null?u:u=i()(e,(N=o==null?void 0:o())!=null?N:{},{direction:a})}finally{Qi(A),mo(I)}}var y={is_global:d,in(){var A;if(e.inert=f,!r){x==null||x.abort(),(A=x==null?void 0:x.reset)==null||A.call(x);return}s||p==null||p.abort(),Iu(e,"introstart"),p=Af(e,w(),x,1,()=>{Iu(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(A){if(!s){A==null||A(),u=void 0;return}e.inert=!0,Iu(e,"outrostart"),x=Af(e,w(),p,0,()=>{Iu(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),x==null||x.abort()}},C=St;if(((R=C.transitions)!=null?R:C.transitions=[]).push(y),r&&Od){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&Mo(()=>{Lt(()=>y.in())})}}function Af(t,e,i,o,r){var s=o===1;if(qs(e)){var l,d=!1;return An(()=>{if(!d){var C=e({direction:s?"in":"out"});l=Af(t,C,i,o,r)}}),{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 r(),{abort:ue,deactivate:ue,reset:ue,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=jb}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var x=f1(u(0,1));p.push(x,x)}var w=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var z;y.cancel();var C=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),R=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),N=0;N<=I;N+=1){var H=C+T*v(N/I),B=f1(u(H,1-H));R.push(B),A||(A=B.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var X=y.currentTime;return C+T*v(X/E)},f&&p1(()=>{if(y.playState!=="running")return!1;var X=w();return f(X,1-X),!0})}y=t.animate(R,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),r()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ue)},deactivate:()=>{r=ue},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}function Pf(t,e,i){var o=Qo(t,e);o&&o.set&&(t[e]=i,Po(()=>{t[e]=null}))}var Zs,Ol,Fd,Au,v1,Pu=class Pu{constructor(e){zs(this,Au);zs(this,Zs,new WeakMap);zs(this,Ol);zs(this,Fd);ml(this,Fd,e)}observe(e,i){var o=Hi(this,Zs).get(e)||new Set;return o.add(i),Hi(this,Zs).set(e,o),Fg(this,Au,v1).call(this).observe(e,Hi(this,Fd)),()=>{var r=Hi(this,Zs).get(e);r.delete(i),r.size===0&&(Hi(this,Zs).delete(e),Hi(this,Ol).unobserve(e))}}};Zs=new WeakMap,Ol=new WeakMap,Fd=new WeakMap,Au=new WeakSet,v1=function(){var e;return(e=Hi(this,Ol))!=null?e:ml(this,Ol,new ResizeObserver(i=>{for(var o of i){Pu.entries.set(o.target,o);for(var r of Hi(this,Zs).get(o.target)||[])r(o)}}))},or(Pu,"entries",new WeakMap);var Mf=Pu;var Gb=new Mf({box:"border-box"});function Mn(t,e,i){var o=Gb.observe(t,()=>i(t[e]));Mo(()=>(Lt(()=>i(t[e])),o))}function m1(t,e){return t===e||(t==null?void 0:t[jo])===e}function lt(t={},e,i,o){return Mo(()=>{var r,s;return Xo(()=>{r=s,s=(o==null?void 0:o())||[],Lt(()=>{t!==i(...s)&&(e(t,...s),r&&m1(i(...r),t)&&e(null,...r))})}),()=>{An(()=>{s&&m1(i(...s),t)&&e(null,...s)})}}),t}function Jo(t=!1){let e=Wt,i=e.l.u;if(!i)return;let o=()=>Su(e.s);if(t){let r=0,s={},l=Qr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&kd(()=>{g1(e,o),Qs(i.b)}),We(()=>{let r=Lt(()=>i.m.map(Gg));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&We(()=>{g1(e,o),Qs(i.a)})}function g1(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Ud(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ue;let o=Lt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Nl=[];function Cr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ue){let i=null,o=new Set;function r(d){if(_l(t,d)&&(t=d,i)){let a=!Nl.length;for(let u of o)u[1](),Nl.push(u,t);if(a){for(let u=0;u<Nl.length;u+=2)Nl[u][0](Nl[u+1]);Nl.length=0}}}function s(d){r(d(t))}function l(d,a=ue){let u=[d,a];return o.add(u),o.size===1&&(i=e(r,s)||ue),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:l}}function yi(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return Cr(i,(l,d)=>{let a=!1,u=[],f=0,v=ue,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);s?l(w):v=typeof w=="function"?w:ue},x=r.map((w,y)=>Ud(w,C=>{u[y]=C,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){Qs(x),v(),a=!1}})}function $e(t){let e;return Ud(t,i=>e=i)(),e}var Mu=!1,Lf=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:cs(void 0),unsubscribe:ue};if(o.store!==t&&!(Lf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ue;else{var r=!0;o.unsubscribe=Ud(t,l=>{r?o.source.v=l:O(o.source,l)}),r=!1}return t&&Lf in i?$e(t):n(o.source)}function Be(){let t={};function e(){Po(()=>{for(var i in t)t[i].unsubscribe();vo(t,Lf,{enumerable:!1,value:!0})})}return[t,e]}function Vf(t){var e=Mu;try{return Mu=!1,[t(),Mu]}finally{Mu=e}}var i$={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ve&&sh(`${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 Oe(t,e,i){return new Proxy(Ve?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},i$)}var o$={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(qs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let r=t.props[o];qs(r)&&(r=r());let s=Qo(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(qs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Qo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===jo||e===gl)return!1;for(let i of t.props)if(qs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(qs(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 ks(...t){return new Proxy({props:t},o$)}function h1(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function h(t,e,i,o){var H,B;var r=(i&1)!==0,s=!as||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=Vf(()=>t[e]):u=t[e];var f=jo in t||gl in t,v=l&&((B=(H=Qo(t,e))==null?void 0:H.set)!=null?B:f&&e in t&&(z=>t[e]=z))||void 0,p=o,x=!0,w=!1,y=()=>(w=!0,x&&(x=!1,d?p=Lt(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&rh(e),u=y(),v&&v(u));var C;if(s)C=()=>{var z=t[e];return z===void 0?y():(x=!0,w=!1,z)};else{var T=(r?Qr:En)(()=>t[e]);T.f|=131072,C=()=>{var z=n(T);return z!==void 0&&(p=void 0),z===void 0?p:z}}if((i&4)===0&&s)return C;if(v){var E=t.$$legacy;return function(z,X){return arguments.length>0?((!s||!X||E||a)&&v(X?C():z),z):C()}}var R=!1,A=!1,I=cs(u),N=Qr(()=>{var z=C(),X=n(I);return R?(R=!1,A=!0,X):(A=!1,I.v=z)});return l&&n(N),r||(N.equals=bl),function(z,X){if(xu!==null&&(R=A,C(),n(I)),arguments.length>0){let le=X?n(N):s&&l?di(z):z;if(!N.equals(le)){if(R=!0,O(I,le),w&&p!==void 0&&(p=le),h1(N))return z;Lt(()=>n(N))}return z}return h1(N)?N.v:n(N)}}var n$;typeof HTMLElement=="function"&&(n$=class extends HTMLElement{constructor(e,i,o){super();or(this,"$$ctor");or(this,"$$s");or(this,"$$c");or(this,"$$cn",!1);or(this,"$$d",{});or(this,"$$r",!1);or(this,"$$p_d",{});or(this,"$$l",{});or(this,"$$l_u",new Map);or(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 r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}connectedCallback(){return wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),b(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=r$(this);for(let s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=Rf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Gh({component:this.$$ctor,target:this.shadowRoot||this,props:jt(Q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=_u(()=>{Xo(()=>{var s;this.$$r=!0;for(let l of Kp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Rf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Rf(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$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 Kp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Rf(t,e,i,o){var s;let r=(s=i[t])==null?void 0:s.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function r$(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var _1="5";var b1,$1,y1;typeof window!="undefined"&&((y1=($1=(b1=window.__svelte)!=null?b1:window.__svelte={}).v)!=null?y1:$1.v=new Set).add(_1);var nd=require("@vkontakte/videoplayer-core/es2015"),CJ=require("@vkontakte/videoplayer-core/es2015"),rl=require("@vkontakte/videoplayer-shared/es2015"),E_=require("@vkontakte/videoplayer-statistics/es2015");var Aa=require("@vkontakte/videoplayer-shared/es2015");var s$={isMobile:void 0,disableInvisibleComponentsTimeout:500,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,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180},x1=t=>(0,Aa.fillWithDefault)(t,s$),w1=t=>xl("ui-config",t),Nt=()=>yl("ui-config");var zd="vk_player_debug_panel_opened";var S1="videoplayer",C1="videoplayer";var ps={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},T1=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),E1=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),I1=new Set(["ShiftRight","ShiftLeft"]);var k1=["TIMELINE"],Wd=[...k1,"GRAPH_BUTTON"],Of=[...k1,"PLAY_BUTTON"],Kd=[...Wd,"PLAY_BUTTON"];var Jr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Jr||{}),Ma={xs:0,s:1,m:2,l:3,xl:4};var qd=require("@vkontakte/videoplayer-shared/es2015"),A1=require("@vkontakte/videoplayer-core/es2015"),P1=require("@vkontakte/videoplayer-statistics/es2015");var Lu="prod",La="1.1.75-dev.3ba5a3c2.0";var Va=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var M1=Symbol("storeContext"),L1=Symbol("microStoresContext"),V1=(t,e)=>{xl(M1,t),xl(L1,e),Lu==="dev"&&(window.app={store:t,microStores:e})},_e=()=>{let t=yl(M1);return(0,qd.assertNonNullable)(t,"Store context is empty!"),t},Co=()=>{let t=yl(L1);return(0,qd.assertNonNullable)(t,"MicroStores context is empty!"),t},ci=(t,e)=>Ru(t,t.getValue(),e),Ru=(t,e,i)=>Cr(e,o=>{let r=t.subscribe(s=>{o(s),i==null||i(s)});return()=>r.unsubscribe()}),R1=(t,e,i,o)=>{var H,B,z,X,le,q,ce,J,ve;let r=t.info,{width:s,height:l}=$e(i.ui.playerSize),d=(B=(H=r.throughputEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?B:0,a=(X=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?X:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${La} (core: ${A1.VERSION}, stat: ${P1.VERSION}, shared: ${qd.VERSION})`,v=$e(i.state.errorLog$),p=v.length?`
|
|
45
|
-
`+v.map((se,
|
|
46
|
-
`,
|
|
47
|
-
`,
|
|
48
|
-
`;return
|
|
49
|
-
`):void 0,x=i.state.isAudioDisabled?"disabled":$e(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(
|
|
50
|
-
`)},O1=(t,e,i)=>{var H,B,z,X;let o=t.info,{width:r,height:s}=$e(i.ui.playerSize),l={version:La,viewport:`${r}x${s}`,volume:Math.round($e(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),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 x=o.throughputEstimation$.getValue();x&&(l.speed=x);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=$e(i.vsid);typeof E=="string"&&(l.vsid=E);let R=(H=t.info.currentVideoStream$.getValue())==null?void 0:H.codec;R&&(l.videoCodec=R);let A=(B=t.info.currentAudioStream$.getValue())==null?void 0:B.codec;A&&(l.audioCodec=A),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let N=(X=t.info.currentAudioStream$.getValue())==null?void 0:X.language;return N&&(l.audioLanguage=N),l},N1=(t,e)=>Va(t,e,"mp4"),D1=t=>!t.type,B1=t=>!!t.type,H1=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Vu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return wt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var xi=require("@vkontakte/videoplayer-shared/es2015"),iL=require("@vkontakte/videoplayer-core/es2015");var a$="vk_player_",F1="vk_player_prefer_traffic_saving_enabled",U1="vk_player_preferred_volume",z1="vk_player_prefer_volume_mute",Hf="vk_player_preferred_quality",Nf="vk_player_preferred_default_quality_settings",Df="vk_player_preferred_quality_settings_by_video",W1="vk_player_preferred_stream_language",K1="vk_player_preferred_rate",q1="vk_player_preferred_autoplay_next",Bf="vk_player_preferred_subtitles_language",Q1="vk_player_user_video_prefs",j1=`${a$}preview_track_close_tooltip`,G1=t=>t>1?1:t<0?0:t,Ff=t=>xi.safeStorage.set(U1,G1(t).toString(10)),Ou=()=>{let t=xi.safeStorage.get(U1);return(0,xi.isNullable)(t)?void 0:G1(parseFloat(t))},Uf=(t,e)=>xi.safeStorage.set(Hf,JSON.stringify({videoId:t,value:e})),Nu=()=>xi.safeStorage.remove(Hf),zf=t=>{let e=xi.safeStorage.get(Hf);if((0,xi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Nu();return}return o},Wf=(t,e)=>{e?xi.safeStorage.set(t,"true"):xi.safeStorage.remove(t)},Kf=t=>xi.safeStorage.get(t)==="true",qf=t=>Wf(z1,t),Y1=()=>Kf(z1),Qd=t=>Wf(F1,t),Qf=()=>Kf(F1),Z1=()=>xi.safeStorage.get(W1),jf=t=>xi.safeStorage.set(W1,t),Gf=()=>xi.safeStorage.get(Bf),Yf=t=>{t?xi.safeStorage.set(Bf,t):xi.safeStorage.remove(Bf)},X1=t=>xi.safeStorage.set(K1,JSON.stringify({rate:t})),J1=()=>{let t=xi.safeStorage.get(K1);if((0,xi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},e0=t=>Wf(q1,t),t0=()=>Kf(q1),l$=()=>{let t=f=>{xi.safeStorage.set(Nf,JSON.stringify(f))},e=()=>{try{let f=xi.safeStorage.get(Nf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=xi.safeStorage.get(Df);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{xi.safeStorage.set(Df,JSON.stringify(f))},r=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return jt(Q({},v),{appliesTo:"to-video"});v&&s();let p=e();return p?jt(Q({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{xi.safeStorage.remove(Df)},l=()=>{xi.safeStorage.remove(Nf)},d=(f,v="as-default")=>{f.type==="exact_quality"||v==="to-video"?o(f):t(f)},a=f=>{let v=r(f);if(v){switch(v.type){case"traffic_saving":Qd(!0);break;case"exact_quality":Uf(f,v.quality)}s(),l()}},u=f=>{let v=zf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Qf()&&t({type:"traffic_saving",videoId:f}),Qd(!1),Nu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Gf,savePreferredSubtitlesLanguage:Yf}},{getPreferredQualitySettings:i0,migrateSettingsToLegacyWay:o0,savePreferredQualitySettings:Du,savePreferredDefaultQualitySettings:oL,removePreferredQualitySettingsByVideo:nL,getPreferredDefaultQualitySettings:Bu}=l$(),d$=3,c$=3,n0=()=>{let t=xi.safeStorage.get(Q1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Hu=(t,e)=>{var r,s;let i=n0();return(s=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?s:null},Zf=(t,e,i)=>{var l,d,a;let o=(l=n0())!=null?l:{},r=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=u$(o);xi.safeStorage.set(Q1,JSON.stringify(s))};function u$(t){let e=Object.entries(t).reduce((o,[r,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(c$),e.reduce((o,[r])=>(o[r]=p$(t[r]),o),{})}function p$(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(d$),Object.fromEntries(e)}function r0(){xi.safeStorage.set(j1,JSON.stringify(!0))}function s0(){let t=xi.safeStorage.get(j1);try{return t?JSON.parse(t):!1}catch(e){return!1}}var fg=require("@vkontakte/videoplayer-core/es2015");var f$=Ie('<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 jd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=f$();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var Dl=require("@vkontakte/videoplayer-shared/es2015");var v$={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
|
|
43
|
+
`)})}}var Sa=!1,Il=null,Ca=!1,$s=!1;function rf(t){$s=t}var Md=[],Ld=[],Dt=null,lr=!1;function Gi(t){Dt=t}var Tt=null;function _o(t){Tt=t}var zo=null;function cu(t){Dt!==null&&Dt.f&2097152&&(zo===null?zo=[Dt,[t]]:zo[1].push(t))}var Pn=null,dr=0,ar=null;function vh(t){ar=t}var Lh=1,bu=0,ys=!1,$u=null;function yd(){return++Lh}function $a(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 r,s,l=(e&512)!==0,d=o&&Tt!==null&&!ys,a=i.length;if(l||d){var u=t,f=u.parent;for(r=0;r<a;r++)s=i[r],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(r=0;r<a;r++)if(s=i[r],$a(s)&&nf(s),s.wv>t.wv)return!0}(!o||Tt!==null&&!ys)&&In(t,1024)}return!1}function Vh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];zo!=null&&zo[1].includes(t)&&zo[0]===Dt||((s.f&2)!==0?Vh(s,e,!1):e===s&&(i?In(s,2048):(s.f&1024)!==0&&In(s,4096),wd(s)))}}function du(t){var x,w;var e=Pn,i=dr,o=ar,r=Dt,s=ys,l=zo,d=Wt,a=lr,u=t.f;Pn=null,dr=0,ar=null,ys=(u&256)!==0&&(lr||!Ca||Dt===null),Dt=(u&96)===0?t:null,zo=null,_d(t.ctx),lr=!1,bu++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(Pn!==null){var p;if(kd(t,dr),v!==null&&dr>0)for(v.length=dr+Pn.length,p=0;p<Pn.length;p++)v[dr+p]=Pn[p];else t.deps=v=Pn;if(!ys||(u&2)!==0&&t.reactions!==null)for(p=dr;p<v.length;p++)((w=(x=v[p]).reactions)!=null?w:x.reactions=[]).push(t)}else v!==null&&dr<v.length&&(kd(t,dr),v.length=dr);if(ls()&&ar!==null&&!lr&&v!==null&&(t.f&6146)===0)for(p=0;p<ar.length;p++)Vh(ar[p],t);return r!==null&&r!==t&&(bu++,ar!==null&&(o===null?o=ar:o.push(...ar))),f}catch(y){Ah(y)}finally{Pn=e,dr=i,ar=o,Dt=r,ys=s,zo=l,_d(d),lr=a,t.f^=2097152}}function rb(t,e){let i=e.reactions;if(i!==null){var o=Qg.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(Pn===null||!Pn.includes(e))&&(In(e,4096),(e.f&768)===0&&(e.f^=512),lu(e),kd(e,0))}function kd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)rb(t,i[o])}function Cl(t){var e=t.f;if((e&16384)===0){In(t,1024);var i=Tt,o=Ca;if(Tt=t,Ca=!0,Oe){var r=rr;bd(t.component_function)}try{(e&16)!==0?Ch(t):df(t),lf(t);var s=du(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Lh,Oe&&as&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=yd(),l.set_during_effect=!1);Oe&&Ld.push(t)}finally{Ca=o,Tt=i,Oe&&bd(r)}}}function Ph(){console.error("Last ten effects were: ",Ld.slice(-10).map(t=>t.fn)),Ld=[]}function sb(){try{ih()}catch(t){if(Oe&&ho(t,"stack",{value:""}),Il!==null)if(Oe)try{Pd(t,Il)}catch(e){throw Ph(),e}else Pd(t,Il);else throw Oe&&Ph(),t}}function mf(){var t=Ca;try{var e=0;for(Ca=!0;Md.length>0;){e++>1e3&&sb();var i=Md,o=i.length;Md=[];for(var r=0;r<o;r++){var s=lb(i[r]);ab(s)}wl.clear()}}finally{Sa=!1,Ca=t,Il=null,Oe&&(Ld=[])}}function ab(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&$a(o)&&(Cl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?uf(o):o.fn=null))}}function wd(t){Sa||(Sa=!0,queueMicrotask(mf));for(var e=Il=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Md.push(e)}function lb(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:$a(i)&&Cl(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 kl(t){var e;for(t&&(Sa=!0,mf(),Sa=!0,e=t());;){if(Ih(),Md.length===0)return Sa=!1,Il=null,Oe&&(Ld=[]),e;Sa=!0,mf()}}function $o(){return wt(this,null,function*(){yield Promise.resolve(),kl()})}function n(t){var e=t.f,i=(e&2)!==0;if($u!==null&&$u.add(t),Dt!==null&&!lr){if(!(zo!=null&&zo[1].includes(t))||zo[0]!==Dt){var o=Dt.deps;t.rv<bu&&(t.rv=bu,Pn===null&&o!==null&&o[dr]===t?dr++:Pn===null?Pn=[t]:(!ys||!Pn.includes(t))&&Pn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,$a(r)&&nf(r)),Oe&&as&&!lr&&hd!==null&&Dt!==null&&hd.reaction===Dt)if(t.trace)t.trace();else{var l=bs("TracedAt");if(l){var d=hd.entries.get(t);d===void 0&&(d={traces:[]},hd.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return $s&&wl.has(t)?wl.get(t):t.v}function Lt(t){var e=lr;try{return lr=!0,t()}finally{lr=e}}var db=-7169;function In(t,e){t.f=t.f&db|e}function xu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Fo in t)yu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Fo in i&&yu(i)}}}function yu(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{yu(t[o],e)}catch(r){}let i=ga(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=ou(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch(l){}}}}}function gf(t,e){if(e){let i=document.body;t.autofocus=!0,An(()=>{document.activeElement===i&&t.focus()})}}function Vd(t){var e=Dt,i=Tt;Gi(null),_o(null);try{return t()}finally{Gi(e),_o(i)}}var hf=new Set,wu=new Set;function Ta(t){if(!rt)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 _f(t,e,i,o={}){function r(s){if(o.capture||Al.call(e,s),!s.cancelBubble)return Vd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?An(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function St(t,e,i,o,r){var s={capture:o,passive:r},l=_f(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ao(()=>{e.removeEventListener(t,l,s)})}function ut(t){for(var e=0;e<t.length;e++)hf.add(t[e]);for(var i of wu)i(t)}function Al(t){var E;var e=this,i=e.ownerDocument,o=t.type,r=((E=t.composedPath)==null?void 0:E.call(t))||[],s=r[0]||t.target,l=0,d=t.__root;if(d){var a=r.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=r[l]||t.target,s!==e){ho(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Dt,v=Tt;Gi(null),_o(null);try{for(var p,x=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+o];if(y!=null&&(!s.disabled||t.target===s))if(or(y)){var[C,...T]=y;C.apply(s,[t,...T])}else y.call(s,t)}catch(R){p?x.push(R):p=R}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let R of x)queueMicrotask(()=>{throw R});throw p}}finally{t.__root=e,delete t.currentTarget,Gi(f),_o(v)}}}var ub;function Rh(){ub=void 0}function Pl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Mo(t,e){var i=Tt;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,r,s=!t.startsWith("<!>");return()=>{if(rt)return Mo(Et,null),Et;r===void 0&&(r=Pl(s?t:"<!>"+t),i||(r=Vi(r)));var l=o||Sd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Vi(l),a=l.lastChild;Mo(d,a)}else Mo(l,l);return l}}function vb(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(rt)return Mo(Et,null),Et;if(!l){var d=Pl(s),a=Vi(d);if(r)for(l=document.createDocumentFragment();Vi(a);)l.appendChild(Vi(a));else l=Vi(a)}var u=l.cloneNode(!0);if(r){var f=Vi(u),v=u.lastChild;Mo(f,v)}else Mo(u,u);return u}}function Ie(t,e){return vb(t,e,"svg")}function cs(t=""){if(!rt){var e=kn(t+"");return Mo(e,e),e}var i=Et;return i.nodeType!==gl&&(i.before(i=kn()),Ai(i)),Mo(i,i),i}function ze(){if(rt)return Mo(Et,null),Et;var t=document.createDocumentFragment(),e=document.createComment(""),i=kn();return t.append(e,i),Mo(e,i),t}function b(t,e){if(rt){Tt.nodes_end=Et,Zi();return}t!==null&&t.before(e)}var mb=/\r/g;function Nh(t){t=t.replace(mb,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Dh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var gb=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Bh(t){return gb.includes(t)}var hb=["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 _b={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 Hh(t){var e;return t=t.toLowerCase(),(e=_b[t])!=null?e:t}var V9=[...hb,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var bb=["touchstart","touchmove"];function Fh(t){return bb.includes(t)}var $b=["$state","$state.raw","$derived","$derived.by"],R9=[...$b,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var yb=["textarea","script","style","title"];function Uh(t){return yb.includes(t)}function Su(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Rd=!0;function Cu(t){Rd=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Kr(t,e){return zh(t,e)}function $f(t,e){var l;fu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=rt,r=Et;try{for(var s=Vi(i);s&&(s.nodeType!==nr||s.data!==Us);)s=Wo(s);if(!s)throw rs;bo(!0),Ai(s),Zi();let d=zh(t,jt(q({},e),{anchor:s}));if(Et===null||Et.nodeType!==nr||Et.data!==ma)throw qs(),rs;return bo(!1),d}catch(d){if(d===rs)return e.recover===!1&&oh(),fu(),Cd(i),bo(!1),Kr(t,e);throw d}finally{bo(o),Ai(r),Rh()}}var Ml=new Map;function zh(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:l=!0}){fu();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var x=v[p];if(!d.has(x)){d.add(x);var w=Fh(x);e.addEventListener(x,Al,{passive:w});var y=Ml.get(x);y===void 0?(document.addEventListener(x,Al,{passive:w}),Ml.set(x,1)):Ml.set(x,y+1)}}};a(gd(hf)),wu.add(a);var u=void 0,f=Sh(()=>{var v=i!=null?i:e.appendChild(kn());return Hi(()=>{if(s){F({});var p=Wt;p.c=s}r&&(o.$$events=r),rt&&Mo(v,null),Rd=l,u=t(v,o)||{},Rd=!0,rt&&(Tt.nodes_end=Et),s&&U()}),()=>{var w;for(var p of d){e.removeEventListener(p,Al);var x=Ml.get(p);--x===0?(document.removeEventListener(p,Al),Ml.delete(p)):Ml.set(p,x)}wu.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return bf.set(u,f),u}var bf=new WeakMap;function Ea(t,e){let i=bf.get(t);return i?(bf.delete(t),i(e)):(Oe&&hh(),Promise.resolve())}function be(t,e,...i){var o=t,r=ue,s;Xi(()=>{r!==(r=e())&&(s&&(Yi(s),s=null),Oe&&r==null&&nh(),s=Hi(()=>r(o,...i)))},65536),rt&&(o=Et)}if(Oe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;ah(e)},set:o=>{i=o}})}};Cb=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var Cb;function Bt(t){Wt===null&&bl("onMount"),ss&&Wt.l!==null?Sb(Wt).m.push(t):Qe(()=>{let e=Lt(t);if(typeof e=="function")return e})}function cn(t){Wt===null&&bl("onDestroy"),Bt(()=>()=>Lt(t))}function Sb(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Wh=new Map;function Kh(t,e){var i=Wh.get(t);i||(i=new Set,Wh.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){rt&&i===0&&Zi();var r=t,s=null,l=null,d=no,a=i>0?65536:0,u=!1;let f=(p,x=!0)=>{u=!0,v(x,p)},v=(p,x)=>{if(d===(d=p))return;let w=!1;if(rt&&o!==-1){if(i===0){let C=pu(r);C===Us?o=0:C===zs?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(r=ya(),Ai(r),bo(!1),w=!0,o=-1)}d?(s?ws(s):x&&(s=Hi(()=>x(r))),l&&Qn(l,()=>{l=null})):(l?ws(l):x&&(l=Hi(()=>x(r,[i+1,o]))),s&&Qn(s,()=>{s=null})),w&&bo(!0)};Xi(()=>{u=!1,e(f),u||v(null,null)},a),rt&&(r=Et)}function Ss(t,e,i){rt&&Zi();var o=t,r=no,s,l=ls()?Zg:hl;Xi(()=>{l(r,r=e())&&(s&&Qn(s),s=Hi(()=>i(o)))}),rt&&(o=Et)}var js=null;function wf(t){js=t}function Od(t,e){return e}function Ib(t,e,i,o){for(var r=[],s=e.length,l=0;l<s;l++)hu(e[l].e,r,!0);var d=s>0&&r.length===0&&i!==null;if(d){var a=i.parentNode;Cd(a),a.append(i),o.clear(),Qs(t,e[0].prev,e[s-1].next)}pf(r,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Qs(t,f.prev,f.next)),Yi(f.e,!d)}})}function Ii(t,e,i,o,r,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=rt?Ai(Vi(u)):u.appendChild(kn())}rt&&Zi();var f=null,v=!1,p=En(()=>{var x=i();return or(x)?x:x==null?[]:gd(x)});Xi(()=>{var x=n(p),w=x.length;if(v&&w===0)return;v=w===0;let y=!1;if(rt){var C=pu(l)===zs;C!==(w===0)&&(l=ya(),Ai(l),bo(!1),y=!0)}if(rt){for(var T=null,E,R=0;R<w;R++){if(Et.nodeType===nr&&Et.data===ma){l=Et,y=!0,bo(!1);break}var A=x[R],I=o(A,R);E=jh(Et,d,T,null,A,I,R,r,e,i),d.items.set(I,E),T=E}w>0&&Ai(ya())}rt||kb(x,d,l,r,e,o,i),s!==null&&(w===0?f?ws(f):f=Hi(()=>s(l)):f!==null&&Qn(f,()=>{f=null})),y&&bo(!0),n(p)}),rt&&(l=Et)}function kb(t,e,i,o,r,s,l){var J,me,se,le;var d=(r&8)!==0,a=(r&3)!==0,u=t.length,f=e.items,v=e.first,p=v,x,w=null,y,C=[],T=[],E,R,A,I;if(d)for(I=0;I<u;I+=1)E=t[I],R=s(E,I),A=f.get(R),A!==void 0&&((J=A.a)==null||J.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<u;I+=1){if(E=t[I],R=s(E,I),A=f.get(R),A===void 0){var N=p?p.e.nodes_start:i;w=jh(N,e,w,w===null?e.first:w.next,E,R,I,o,r,l),f.set(R,w),C=[],T=[],p=w.next;continue}if(a&&Ab(A,E,I,r),(A.e.f&8192)!==0&&(ws(A.e),d&&((me=A.a)==null||me.unfix(),(y!=null?y:y=new Set).delete(A))),A!==p){if(x!==void 0&&x.has(A)){if(C.length<T.length){var H=T[0],B;w=H.prev;var z=C[0],X=C[C.length-1];for(B=0;B<C.length;B+=1)qh(C[B],H,i);for(B=0;B<T.length;B+=1)x.delete(T[B]);Qs(e,z.prev,X.next),Qs(e,w,z),Qs(e,X,H),p=H,w=X,I-=1,C=[],T=[]}else x.delete(A),qh(A,p,i),Qs(e,A.prev,A.next),Qs(e,A,w===null?e.first:w.next),Qs(e,w,A),w=A;continue}for(C=[],T=[];p!==null&&p.k!==R;)(p.e.f&8192)===0&&(x!=null?x:x=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),w=A,p=A.next}if(p!==null||x!==void 0){for(var ae=x===void 0?[]:gd(x);p!==null;)(p.e.f&8192)===0&&ae.push(p),p=p.next;var Q=ae.length;if(Q>0){var ce=(r&4)!==0&&u===0?i:null;if(d){for(I=0;I<Q;I+=1)(se=ae[I].a)==null||se.measure();for(I=0;I<Q;I+=1)(le=ae[I].a)==null||le.fix()}Ib(e,ae,ce,f)}}d&&An(()=>{var Pe;if(y!==void 0)for(A of y)(Pe=A.a)==null||Pe.apply()}),Tt.first=e.first&&e.first.e,Tt.last=w&&w.e}function Ab(t,e,i,o){(o&1)!==0&&Sl(t.v,e),(o&2)!==0?Sl(t.i,i):t.i=i}function jh(t,e,i,o,r,s,l,d,a,u){var f=js,v=(a&1)!==0,p=(a&16)===0,x=v?p?ds(r,!1,!1):Ir(r):r,w=(a&2)===0?l:Ir(l);Oe&&v&&(x.trace=()=>{var C=typeof w=="number"?l:w.v;u()[C]});var y={i:w,v:x,k:s,a:null,e:null,prev:i,next:o};js=y;try{return y.e=Hi(()=>d(t,x,w,u),rt),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{js=f}}function qh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Wo(s);r.before(s),s=l}}function Qs(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 Pb(t,e,i){var s,l;if(!e||e===Nh(String(i!=null?i:"")))return;let o,r=(s=t.__svelte_meta)==null?void 0:s.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=rr)!=null&&l[zn]&&(o=`in ${rr[zn]}`),gh(Su(o))}function Nd(t,e,i=!1,o=!1,r=!1){var s=t,l="";D(()=>{var x;var d=Tt;if(l===(l=(x=e())!=null?x:"")){rt&&Zi();return}if(d.nodes_start!==null&&(cf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(rt){for(var a=Et.data,u=Zi(),f=u;u!==null&&(u.nodeType!==nr||u.data!=="");)f=u,u=Wo(u);if(u===null)throw qs(),rs;Oe&&!r&&Pb(u.parentNode,a,l),Mo(Et,f),s=Ai(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=Pl(v);if((i||o)&&(p=Vi(p)),Mo(Vi(p),p.lastChild),i||o)for(;Vi(p);)s.before(Vi(p));else s.before(p)}})}function Ri(t,e,i){rt&&Zi();var o=t,r,s;Xi(()=>{r!==(r=e())&&(s&&(Qn(s),s=null),r&&(s=Hi(()=>i(o,r))))},65536),rt&&(o=Et)}function Ia(t,e,i,o,r,s){var w;let l=rt;rt&&Zi();var d=Oe&&s&&((w=Wt)==null?void 0:w.function[zn]),a,u,f=null;rt&&Et.nodeType===ru&&(f=Et,Zi());var v=rt?Et:t,p,x=js;Xi(()=>{let y=e()||null;var C=r?r():i||y==="svg"?tu:null;if(y!==a){var T=js;wf(x),p&&(y===null?Qn(p,()=>{p=null,u=null}):y===u?ws(p):(Yi(p),Cu(!1))),y&&y!==u&&(p=Hi(()=>{if(f=rt?f:C?document.createElementNS(C,y):document.createElement(y),Oe&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Mo(f,f),o){rt&&Uh(y)&&f.append(document.createComment(""));var E=rt?Vi(f):f.appendChild(kn());rt&&(E===null?bo(!1):Ai(E)),o(f,E)}Tt.nodes_end=f,v.before(f)})),a=y,a&&(u=a),Cu(!0),wf(T)}},65536),l&&(bo(!0),Ai(v))}var Cf;function Gh(t){return Cf=t.target,new Sf(t)}var Cs,kr,Sf=class{constructor(e){Fs(this,Cs);Fs(this,kr);var s,l;var i=new Map,o=(d,a)=>{var u=ds(a,!1,!1);return i.set(d,u),u};let r=new Proxy(jt(q({},e.props||{}),{$$events:{}}),{get(d,a){var u;return n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===ml?!0:(n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return O((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});vl(this,kr,(e.hydrate?$f:Kr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&kl(),vl(this,Cs,r.$$events);for(let d of Object.keys(Bi(this,kr)))d==="$set"||d==="$destroy"||d==="$on"||ho(this,d,{get(){return Bi(this,kr)[d]},set(a){Bi(this,kr)[d]=a},enumerable:!0});Bi(this,kr).$set=d=>{Object.assign(r,d)},Bi(this,kr).$destroy=()=>{Ea(Bi(this,kr))}}$set(e){Bi(this,kr).$set(e)}$on(e,i){Bi(this,Cs)[e]=Bi(this,Cs)[e]||[];let o=(...r)=>i.call(this,...r);return Bi(this,Cs)[e].push(o),()=>{Bi(this,Cs)[e]=Bi(this,Cs)[e].filter(r=>r!==o)}}$destroy(){Bi(this,kr).$destroy()}};Cs=new WeakMap,kr=new WeakMap;function W(t,e){An(()=>{var r,s,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(s=Cf)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Oe&&Kh(e.hash,d)}})}function Ts(t,e){var i=void 0,o;Xi(()=>{i!==(i=e())&&(o&&(Yi(o),o=null),i&&(o=Hi(()=>{Po(()=>i(t))})))})}function Yh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Yh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Zh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Yh(t))&&(o&&(o+=" "),o+=e);return o}function Dd(t){return typeof t=="object"?Zh(t):t!=null?t:""}var Xh=[...`
|
|
44
|
+
\r\f\xA0\v\uFEFF`];function e1(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var s=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+s;(l===0||Xh.includes(o[l-1]))&&(d===o.length||Xh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Jh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function Tf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function t1(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(Tf)),r&&a.push(...Object.keys(r).map(Tf));var u=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===y-1){if(f!==-1){var x=Tf(t.substring(u,f).trim());if(!a.includes(x)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=Jh(o)),r&&(i+=Jh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function re(t,e,i,o,r,s){var l=t.__className;if(rt||l!==i||l===void 0){var d=e1(i,o,s);(!rt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&r!==s)for(var a in s){var u=!!s[a];(r==null||u!==!!r[a])&&t.classList.toggle(a,u)}return s}function Ef(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function it(t,e,i,o){var r=t.__style;if(rt||r!==e){var s=t1(e,o);(!rt||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Ef(t,i==null?void 0:i[0],o[0]),Ef(t,i==null?void 0:i[1],o[1],"important")):Ef(t,i,o));return o}function Bd(t,e,i){if(t.multiple){if(e==null)return;if(!or(e))return _h();for(var o of t.options)o.selected=e.includes(i1(o));return}for(o of t.options){var r=i1(o);if(Xp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function If(t){var e=new MutationObserver(()=>{Bd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ao(()=>{e.disconnect()})}function i1(t){return"__value"in t?t.__value:t.value}var Ll=Symbol("class"),Vl=Symbol("style"),r1=Symbol("is custom element"),s1=Symbol("is html");function a1(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function je(t,e,i,o){var r=d1(t);if(rt&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Bb(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Yg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&c1(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function l1(t,e,i,o,r=!1){var A;var s=d1(t),l=s[r1],d=!s[s1];let a=rt&&l;a&&bo(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Dd(i.class):(o||i[Ll])&&(i.class=null),i[Vl]&&((A=i.style)!=null||(i.style=null));var p=c1(t);for(let I in i){let N=i[I];if(f&&I==="value"&&N==null){t.value=t.__value="",u[I]=N;continue}if(I==="class"){var x=t.namespaceURI==="http://www.w3.org/1999/xhtml";re(t,x,N,o,e==null?void 0:e[Ll],i[Ll]),u[I]=N,u[Ll]=i[Ll];continue}if(I==="style"){it(t,N,e==null?void 0:e[Vl],i[Vl]),u[I]=N,u[Vl]=i[Vl];continue}var w=u[I];if(!(N===w&&!(N===void 0&&t.hasAttribute(I)))){u[I]=N;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},B="$$"+I,z=I.slice(2);var C=Bh(z);if(Dh(z)&&(z=z.slice(0,-7),H.capture=!0),!C&&w){if(N!=null)continue;t.removeEventListener(z,u[B],H),u[B]=null}if(N!=null)if(C)t[`__${z}`]=N,ut([z]);else{let X=function(ae){u[I].call(this,ae)};var R=X;u[B]=_f(z,t,X,H)}else C&&(t[`__${z}`]=void 0)}else if(I==="style")je(t,I,N);else if(I==="autofocus")gf(t,!!N);else if(!l&&(I==="__value"||I==="value"&&N!=null))t.value=t.__value=N;else if(I==="selected"&&f)a1(t,N);else{var T=I;d||(T=Hh(T));var E=T==="defaultValue"||T==="defaultChecked";if(N==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let H=t,B=e===void 0;if(T==="value"){let z=H.defaultValue;H.removeAttribute(T),H.defaultValue=z,H.value=H.__value=B?z:null}else{let z=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=z,H.checked=B?z:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(l||typeof N!="string")?t[T]=N:typeof N!="function"&&je(t,T,N,r)}}}return a&&bo(!0),u}function Ae(t,e,i=[],o,r=!1,s=Ur){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Xi(()=>{var p=e(...l.map(n)),x=l1(t,d,p,o,r);f&&u&&"value"in p&&Bd(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||Yi(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var w=p[y];y.description===Wp&&(!d||w!==d[y])&&(a[y]&&Yi(a[y]),a[y]=Hi(()=>Ts(t,()=>w))),x[y]=w}d=x}),u){var v=t;Po(()=>{Bd(v,d.value),If(v)})}f=!0}function d1(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[r1]:t.nodeName.includes("-"),[s1]:t.namespaceURI===zg}}var o1=new Map;function c1(t){var e=o1.get(t.nodeName);if(e)return e;o1.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=ou(o);for(var s in i)i[s].set&&e.push(s);o=ga(o)}return e}function Bb(t,e,i){var o;Oe&&(e==="srcset"&&Hb(t,i)||kf((o=t.getAttribute(e))!=null?o:"",i)||mh(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function kf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function n1(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Hb(t,e){var i=n1(t.srcset),o=n1(e);return o.length===i.length&&o.every(([r,s],l)=>s===i[l][1]&&(kf(i[l][0],r)||kf(r,i[l][0])))}var Fb=iu?()=>performance.now():()=>Date.now(),qr={tick:t=>(iu?requestAnimationFrame:ue)(t),now:()=>Fb(),tasks:new Set};function u1(){let t=qr.now();qr.tasks.forEach(e=>{e.c(t)||(qr.tasks.delete(e),e.f())}),qr.tasks.size!==0&&qr.tick(u1)}function p1(t){let e;return qr.tasks.size===0&&qr.tick(u1),{promise:new Promise(i=>{qr.tasks.add(e={c:t,f:i})}),abort(){qr.tasks.delete(e)}}}function Tu(t,e){Vd(()=>{t.dispatchEvent(new CustomEvent(e))})}function Kb(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 f1(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let l=Kb(r.trim());e[l]=s.trim()}return e}var qb=t=>t;function Qr(t,e,i,o){var R;var r=(t&1)!==0,s=(t&2)!==0,l=r&&s,d=(t&4)!==0,a=l?"both":r?"in":"out",u,f=e.inert,v=e.style.overflow,p,x;function w(){var N;var A=Dt,I=Tt;Gi(null),_o(null);try{return u!=null?u:u=i()(e,(N=o==null?void 0:o())!=null?N:{},{direction:a})}finally{Gi(A),_o(I)}}var y={is_global:d,in(){var A;if(e.inert=f,!r){x==null||x.abort(),(A=x==null?void 0:x.reset)==null||A.call(x);return}s||p==null||p.abort(),Tu(e,"introstart"),p=Af(e,w(),x,1,()=>{Tu(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(A){if(!s){A==null||A(),u=void 0;return}e.inert=!0,Tu(e,"outrostart"),x=Af(e,w(),p,0,()=>{Tu(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),x==null||x.abort()}},C=Tt;if(((R=C.transitions)!=null?R:C.transitions=[]).push(y),r&&Rd){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&Po(()=>{Lt(()=>y.in())})}}function Af(t,e,i,o,r){var s=o===1;if(Ws(e)){var l,d=!1;return An(()=>{if(!d){var C=e({direction:s?"in":"out"});l=Af(t,C,i,o,r)}}),{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 r(),{abort:ue,deactivate:ue,reset:ue,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=qb}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var x=f1(u(0,1));p.push(x,x)}var w=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var z;y.cancel();var C=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),R=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),N=0;N<=I;N+=1){var H=C+T*v(N/I),B=f1(u(H,1-H));R.push(B),A||(A=B.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var X=y.currentTime;return C+T*v(X/E)},f&&p1(()=>{if(y.playState!=="running")return!1;var X=w();return f(X,1-X),!0})}y=t.animate(R,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),r()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ue)},deactivate:()=>{r=ue},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}function Pf(t,e,i){var o=Ho(t,e);o&&o.set&&(t[e]=i,Ao(()=>{t[e]=null}))}var Gs,Rl,Hd,Iu,v1,ku=class ku{constructor(e){Fs(this,Iu);Fs(this,Gs,new WeakMap);Fs(this,Rl);Fs(this,Hd);vl(this,Hd,e)}observe(e,i){var o=Bi(this,Gs).get(e)||new Set;return o.add(i),Bi(this,Gs).set(e,o),Fg(this,Iu,v1).call(this).observe(e,Bi(this,Hd)),()=>{var r=Bi(this,Gs).get(e);r.delete(i),r.size===0&&(Bi(this,Gs).delete(e),Bi(this,Rl).unobserve(e))}}};Gs=new WeakMap,Rl=new WeakMap,Hd=new WeakMap,Iu=new WeakSet,v1=function(){var e;return(e=Bi(this,Rl))!=null?e:vl(this,Rl,new ResizeObserver(i=>{for(var o of i){ku.entries.set(o.target,o);for(var r of Bi(this,Gs).get(o.target)||[])r(o)}}))},ir(ku,"entries",new WeakMap);var Mf=ku;var Qb=new Mf({box:"border-box"});function Mn(t,e,i){var o=Qb.observe(t,()=>i(t[e]));Po(()=>(Lt(()=>i(t[e])),o))}function m1(t,e){return t===e||(t==null?void 0:t[Fo])===e}function lt(t={},e,i,o){return Po(()=>{var r,s;return Ko(()=>{r=s,s=(o==null?void 0:o())||[],Lt(()=>{t!==i(...s)&&(e(t,...s),r&&m1(i(...r),t)&&e(null,...r))})}),()=>{An(()=>{s&&m1(i(...s),t)&&e(null,...s)})}}),t}function qo(t=!1){let e=Wt,i=e.l.u;if(!i)return;let o=()=>xu(e.s);if(t){let r=0,s={},l=Ur(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Id(()=>{g1(e,o),Ks(i.b)}),Qe(()=>{let r=Lt(()=>i.m.map(Gg));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&Qe(()=>{g1(e,o),Ks(i.a)})}function g1(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Fd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ue;let o=Lt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ol=[];function Ar(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=ue){let i=null,o=new Set;function r(d){if(hl(t,d)&&(t=d,i)){let a=!Ol.length;for(let u of o)u[1](),Ol.push(u,t);if(a){for(let u=0;u<Ol.length;u+=2)Ol[u][0](Ol[u+1]);Ol.length=0}}}function s(d){r(d(t))}function l(d,a=ue){let u=[d,a];return o.add(u),o.size===1&&(i=e(r,s)||ue),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:l}}function wi(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return Ar(i,(l,d)=>{let a=!1,u=[],f=0,v=ue,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);s?l(w):v=typeof w=="function"?w:ue},x=r.map((w,y)=>Fd(w,C=>{u[y]=C,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){Ks(x),v(),a=!1}})}function $e(t){let e;return Fd(t,i=>e=i)(),e}var Au=!1,Lf=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:ds(void 0),unsubscribe:ue};if(o.store!==t&&!(Lf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ue;else{var r=!0;o.unsubscribe=Fd(t,l=>{r?o.source.v=l:O(o.source,l)}),r=!1}return t&&Lf in i?$e(t):n(o.source)}function De(){let t={};function e(){Ao(()=>{for(var i in t)t[i].unsubscribe();ho(t,Lf,{enumerable:!1,value:!0})})}return[t,e]}function Vf(t){var e=Au;try{return Au=!1,[t(),Au]}finally{Au=e}}var e$={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Oe&&sh(`${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 Ne(t,e,i){return new Proxy(Oe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},e$)}var t$={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ws(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let r=t.props[o];Ws(r)&&(r=r());let s=Ho(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ws(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Ho(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Fo||e===ml)return!1;for(let i of t.props)if(Ws(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ws(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function Es(...t){return new Proxy({props:t},t$)}function h1(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function h(t,e,i,o){var H,B;var r=(i&1)!==0,s=!ss||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=Vf(()=>t[e]):u=t[e];var f=Fo in t||ml in t,v=l&&((B=(H=Ho(t,e))==null?void 0:H.set)!=null?B:f&&e in t&&(z=>t[e]=z))||void 0,p=o,x=!0,w=!1,y=()=>(w=!0,x&&(x=!1,d?p=Lt(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&rh(e),u=y(),v&&v(u));var C;if(s)C=()=>{var z=t[e];return z===void 0?y():(x=!0,w=!1,z)};else{var T=(r?Ur:En)(()=>t[e]);T.f|=131072,C=()=>{var z=n(T);return z!==void 0&&(p=void 0),z===void 0?p:z}}if((i&4)===0&&s)return C;if(v){var E=t.$$legacy;return function(z,X){return arguments.length>0?((!s||!X||E||a)&&v(X?C():z),z):C()}}var R=!1,A=!1,I=ds(u),N=Ur(()=>{var z=C(),X=n(I);return R?(R=!1,A=!0,X):(A=!1,I.v=z)});return l&&n(N),r||(N.equals=_l),function(z,X){if($u!==null&&(R=A,C(),n(I)),arguments.length>0){let ae=X?n(N):s&&l?ai(z):z;if(!N.equals(ae)){if(R=!0,O(I,ae),w&&p!==void 0&&(p=ae),h1(N))return z;Lt(()=>n(N))}return z}return h1(N)?N.v:n(N)}}var i$;typeof HTMLElement=="function"&&(i$=class extends HTMLElement{constructor(e,i,o){super();ir(this,"$$ctor");ir(this,"$$s");ir(this,"$$c");ir(this,"$$cn",!1);ir(this,"$$d",{});ir(this,"$$r",!1);ir(this,"$$p_d",{});ir(this,"$$l",{});ir(this,"$$l_u",new Map);ir(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}connectedCallback(){return wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),b(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=o$(this);for(let s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=Rf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Gh({component:this.$$ctor,target:this.shadowRoot||this,props:jt(q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=gu(()=>{Ko(()=>{var s;this.$$r=!0;for(let l of Kp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Rf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Rf(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$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 Kp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Rf(t,e,i,o){var s;let r=(s=i[t])==null?void 0:s.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function o$(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var _1="5";var b1,$1,y1;typeof window!="undefined"&&((y1=($1=(b1=window.__svelte)!=null?b1:window.__svelte={}).v)!=null?y1:$1.v=new Set).add(_1);var od=require("@vkontakte/videoplayer-core/es2015"),SJ=require("@vkontakte/videoplayer-core/es2015"),nl=require("@vkontakte/videoplayer-shared/es2015"),E_=require("@vkontakte/videoplayer-statistics/es2015");var ka=require("@vkontakte/videoplayer-shared/es2015");var n$={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:ka.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:ka.VideoQuality.Q_480P,highQualityLimit:ka.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180},x1=t=>(0,ka.fillWithDefault)(t,n$),w1=t=>yl("ui-config",t),Nt=()=>$l("ui-config");var Ud="vk_player_debug_panel_opened";var S1="videoplayer",C1="videoplayer";var us={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},T1=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),E1=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),I1=new Set(["ShiftRight","ShiftLeft"]);var k1=["TIMELINE"],zd=[...k1,"GRAPH_BUTTON"],Of=[...k1,"PLAY_BUTTON"],Wd=[...zd,"PLAY_BUTTON"];var jr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(jr||{}),Pa={xs:0,s:1,m:2,l:3,xl:4};var Kd=require("@vkontakte/videoplayer-shared/es2015"),A1=require("@vkontakte/videoplayer-core/es2015"),P1=require("@vkontakte/videoplayer-statistics/es2015");var Pu="prod",Ma="1.1.76-dev.9523ea02.0";var La=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var M1=Symbol("storeContext"),L1=Symbol("microStoresContext"),V1=(t,e)=>{yl(M1,t),yl(L1,e),Pu==="dev"&&(window.app={store:t,microStores:e})},he=()=>{let t=$l(M1);return(0,Kd.assertNonNullable)(t,"Store context is empty!"),t},So=()=>{let t=$l(L1);return(0,Kd.assertNonNullable)(t,"MicroStores context is empty!"),t},li=(t,e)=>Lu(t,t.getValue(),e),Lu=(t,e,i)=>Ar(e,o=>{let r=t.subscribe(s=>{o(s),i==null||i(s)});return()=>r.unsubscribe()}),R1=(t,e,i,o)=>{var H,B,z,X,ae,Q,ce,J,me;let r=t.info,{width:s,height:l}=$e(i.ui.playerSize),d=(B=(H=r.throughputEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?B:0,a=(X=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?X:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${Ma} (core: ${A1.VERSION}, stat: ${P1.VERSION}, shared: ${Kd.VERSION})`,v=$e(i.state.errorLog$),p=v.length?`
|
|
45
|
+
`+v.map((se,le)=>{var Be;let Pe=`${le}) Type: ${se.id}
|
|
46
|
+
`,ye=`Message: ${se.message} (${se.thrown})
|
|
47
|
+
`,ee=`Trace: ${(Be=se.thrown)==null?void 0:Be.stack}
|
|
48
|
+
`;return Pe+ye+ee}).join(`
|
|
49
|
+
`):void 0,x=i.state.isAudioDisabled?"disabled":$e(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(ae=w==null?void 0:w.codec)!=null?ae:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&C.push(`Audio: ${(Q=y==null?void 0:y.codec)!=null?Q:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=r.currentQuality$.getValue(),E="";if(T){let se=r.availableQualitiesFps$.getValue()[T];E=se?`${se}fps`:""}let R=r.httpConnectionType$.getValue(),A=(J=(ce=r.currentBuffer$.getValue())==null?void 0:ce.end)!=null?J:0,I=Math.max(A-$e(i.state.positionExact$),0),N={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:$e(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":R?R+(r.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${a}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:C.join(", "),Quality:`${u} ${T!=null?T:""} ${E}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:x,Position:`${$e(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${$e(i.playerPhase)} ${(me=r.playbackState$.getValue())!=null?me:""}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(N).filter(([se,le])=>le!==void 0).map(([se,le])=>`${se}: ${le}`).join(`
|
|
50
|
+
`)},O1=(t,e,i)=>{var H,B,z,X;let o=t.info,{width:r,height:s}=$e(i.ui.playerSize),l={version:Ma,viewport:`${r}x${s}`,volume:Math.round($e(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),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 x=o.throughputEstimation$.getValue();x&&(l.speed=x);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=$e(i.vsid);typeof E=="string"&&(l.vsid=E);let R=(H=t.info.currentVideoStream$.getValue())==null?void 0:H.codec;R&&(l.videoCodec=R);let A=(B=t.info.currentAudioStream$.getValue())==null?void 0:B.codec;A&&(l.audioCodec=A),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let N=(X=t.info.currentAudioStream$.getValue())==null?void 0:X.language;return N&&(l.audioLanguage=N),l},N1=(t,e)=>La(t,e,"mp4"),D1=t=>!t.type,B1=t=>!!t.type,H1=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Mu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return wt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var $i=require("@vkontakte/videoplayer-shared/es2015"),tL=require("@vkontakte/videoplayer-core/es2015");var r$="vk_player_",F1="vk_player_prefer_traffic_saving_enabled",U1="vk_player_preferred_volume",z1="vk_player_prefer_volume_mute",Hf="vk_player_preferred_quality",Nf="vk_player_preferred_default_quality_settings",Df="vk_player_preferred_quality_settings_by_video",W1="vk_player_preferred_stream_language",K1="vk_player_preferred_rate",q1="vk_player_preferred_autoplay_next",Bf="vk_player_preferred_subtitles_language",Q1="vk_player_user_video_prefs",j1=`${r$}preview_track_close_tooltip`,G1=t=>t>1?1:t<0?0:t,Ff=t=>$i.safeStorage.set(U1,G1(t).toString(10)),Vu=()=>{let t=$i.safeStorage.get(U1);return(0,$i.isNullable)(t)?void 0:G1(parseFloat(t))},Uf=(t,e)=>$i.safeStorage.set(Hf,JSON.stringify({videoId:t,value:e})),Ru=()=>$i.safeStorage.remove(Hf),zf=t=>{let e=$i.safeStorage.get(Hf);if((0,$i.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Ru();return}return o},Wf=(t,e)=>{e?$i.safeStorage.set(t,"true"):$i.safeStorage.remove(t)},Kf=t=>$i.safeStorage.get(t)==="true",qf=t=>Wf(z1,t),Y1=()=>Kf(z1),qd=t=>Wf(F1,t),Qf=()=>Kf(F1),Z1=()=>$i.safeStorage.get(W1),jf=t=>$i.safeStorage.set(W1,t),Gf=()=>$i.safeStorage.get(Bf),Yf=t=>{t?$i.safeStorage.set(Bf,t):$i.safeStorage.remove(Bf)},X1=t=>$i.safeStorage.set(K1,JSON.stringify({rate:t})),J1=()=>{let t=$i.safeStorage.get(K1);if((0,$i.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},e0=t=>Wf(q1,t),t0=()=>Kf(q1),s$=()=>{let t=f=>{$i.safeStorage.set(Nf,JSON.stringify(f))},e=()=>{try{let f=$i.safeStorage.get(Nf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=$i.safeStorage.get(Df);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{$i.safeStorage.set(Df,JSON.stringify(f))},r=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return jt(q({},v),{appliesTo:"to-video"});v&&s();let p=e();return p?jt(q({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{$i.safeStorage.remove(Df)},l=()=>{$i.safeStorage.remove(Nf)},d=(f,v="as-default")=>{f.type==="exact_quality"||v==="to-video"?o(f):t(f)},a=f=>{let v=r(f);if(v){switch(v.type){case"traffic_saving":qd(!0);break;case"exact_quality":Uf(f,v.quality)}s(),l()}},u=f=>{let v=zf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Qf()&&t({type:"traffic_saving",videoId:f}),qd(!1),Ru()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Gf,savePreferredSubtitlesLanguage:Yf}},{getPreferredQualitySettings:i0,migrateSettingsToLegacyWay:o0,savePreferredQualitySettings:Ou,savePreferredDefaultQualitySettings:iL,removePreferredQualitySettingsByVideo:oL,getPreferredDefaultQualitySettings:Nu}=s$(),a$=3,l$=3,n0=()=>{let t=$i.safeStorage.get(Q1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Du=(t,e)=>{var r,s;let i=n0();return(s=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?s:null},Zf=(t,e,i)=>{var l,d,a;let o=(l=n0())!=null?l:{},r=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=d$(o);$i.safeStorage.set(Q1,JSON.stringify(s))};function d$(t){let e=Object.entries(t).reduce((o,[r,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(l$),e.reduce((o,[r])=>(o[r]=c$(t[r]),o),{})}function c$(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(a$),Object.fromEntries(e)}function r0(){$i.safeStorage.set(j1,JSON.stringify(!0))}function s0(){let t=$i.safeStorage.get(j1);try{return t?JSON.parse(t):!1}catch(e){return!1}}var fg=require("@vkontakte/videoplayer-core/es2015");var u$=Ie('<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 Qd(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=u$();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var Nl=require("@vkontakte/videoplayer-shared/es2015");var p$={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
|
|
51
51
|
\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
|
|
52
|
-
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`,double_forward_label:"2x",preview_track_notification_text:"\u041F\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0432\u0432\u0435\u0440\u0445 \u0434\u043B\u044F \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438",preview_track_close_tooltip:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043C\u0430 \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438"},a0=
|
|
52
|
+
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`,double_forward_label:"2x",preview_track_notification_text:"\u041F\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0432\u0432\u0435\u0440\u0445 \u0434\u043B\u044F \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438",preview_track_close_tooltip:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043C\u0430 \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438"},a0=p$;var f$={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
|
|
53
53
|
so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
54
|
-
Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},l0=
|
|
55
|
-
`),o,r;for(let s=0;s<i.length;++s){if(o=
|
|
56
|
-
`).filter(i=>!!i)[0]}function x$(t){try{let e=y$(t);if(e)return e}catch(e){}return{value:c0(t),type:t&&t.name,stacktrace:{frames:[]}}}function w$(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Uu=class{constructor(e){if(e&&e.dsn){let i=$$.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return jt(Q({},this.getRequestBlank()),{exception:{values:[x$(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(b$,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:w$(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function u0(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function S$(){return window}var zu=class t extends Uu{constructor(e,i=S$()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",Q({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",Q({},e)),this}setUser(e){return this.setKeyState("user",Q({},e)),this}clone(){let e=new t(jt(Q({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[Q({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(jt(Q({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>u0(i,o))):!1}getRequestBlank(){return Q(jt(Q({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(Q({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>u0(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 r=this._state[o],s=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return jt(Q({},i),{[o]:s||d?[...s||[],...d||[]]:Q(Q({},typeof r!="string"?r:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var Ra=require("@vkontakte/videoplayer-shared/es2015");var Wu=null,Oa=class{constructor(e,i,o={}){!Wu&&e.dsn&&(this.sentryClient=new zu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Ra.Subscription,this.options=e,this.context=o,Wu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Wu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:x}=i;if((0,Ra.isNonNullable)(x)&&v.includes(x)||(0,Ra.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,Ra.isNonNullable)(x)&&u.includes(x)||(0,Ra.isNonNullable)(p)&&a.includes(p)){Object.keys(i).length&&r.setTags(Q({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras(Q(Q({},s),o));try{p&&r.captureMessage(p,i.fatal?Bl.fatal:Bl.error),r.report(e)}catch(y){console.error(y)}}}static getInstance(){return Wu}};var es=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(es||{});var Ku=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},qu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),p0=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,f0=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Gd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Xs=()=>!!Gd(),Qu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ju=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},v0=t=>{let e=window.screen;return(r=>wt(null,null,function*(){return e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject()}))(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var tv=require("@vkontakte/videoplayer-core/es2015"),m0=()=>({title:Y("hotkey_map_modal_title"),closeBtnText:Y("hotkey_map_modal_close_btn_text"),groups:[{title:Y("hotkey_map_group_title_common"),items:[{description:Y("hotkey_map_item_mute_description"),value:Y("hotkey_map_item_mute_value")},{description:Y("hotkey_map_item_volume_up_description"),value:Y("hotkey_map_item_volume_up_value")},{description:Y("hotkey_map_item_volume_down_description"),value:Y("hotkey_map_item_volume_down_value")},{description:Y("hotkey_map_item_pip_description"),value:Y("hotkey_map_item_pip_value")},{description:Y("hotkey_map_item_full_screen_description"),value:Y("hotkey_map_item_full_screen_value")},{description:Y("hotkey_map_item_show_context_menu_description"),value:Y("hotkey_map_item_show_context_menu_value")},{description:Y("hotkey_map_item_show_hotkey_map_description"),value:Y("hotkey_map_item_show_hotkey_map_value")}]},{title:Y("hotkey_map_group_title_playback"),items:[{description:Y("hotkey_map_item_play_toggle_description"),value:Y("hotkey_map_item_play_toggle_value")},{description:Y("hotkey_map_item_seek_backward_description"),value:Y("hotkey_map_item_seek_backward_value")},{description:Y("hotkey_map_item_seek_forward_description"),value:Y("hotkey_map_item_seek_forward_value")},{description:Y("hotkey_map_item_fast_seek_backward_description"),value:Y("hotkey_map_item_fast_seek_backward_value")},{description:Y("hotkey_map_item_fast_seek_forward_description"),value:Y("hotkey_map_item_fast_seek_forward_value")},{description:Y("hotkey_map_item_rate_down_description"),value:Y("hotkey_map_item_rate_down_value")},{description:Y("hotkey_map_item_rate_up_description"),value:Y("hotkey_map_item_rate_up_value")},{description:Y("hotkey_map_item_prev_frame_description"),value:Y("hotkey_map_item_prev_frame_value")},{description:Y("hotkey_map_item_next_frame_description"),value:Y("hotkey_map_item_next_frame_value")},{description:Y("hotkey_map_item_jump_seek_description"),value:Y("hotkey_map_item_jump_seek_value")},{description:Y("hotkey_map_item_next_video_description"),value:Y("hotkey_map_item_next_video_value")},{description:Y("hotkey_map_item_prev_video_description"),value:Y("hotkey_map_item_prev_video_value")}]},{title:Y("hotkey_map_group_title_subtitles"),items:[{description:Y("hotkey_map_item_subtitles_toggle_description"),value:Y("hotkey_map_item_subtitles_toggle_value")}]},{title:Y("hotkey_map_group_title_episodes"),items:[{description:Y("hotkey_map_item_prev_episode_description"),value:tv.clientChecker.device.isApple?Y("hotkey_map_item_prev_episode_mac_value"):Y("hotkey_map_item_prev_episode_pc_value")},{description:Y("hotkey_map_item_next_episode_description"),value:tv.clientChecker.device.isApple?Y("hotkey_map_item_next_episode_mac_value"):Y("hotkey_map_item_next_episode_pc_value")}]}]});var Hl=require("@vkontakte/videoplayer-shared/es2015");var Na=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,Hl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Hl.ValueSubject(!1),isEnabled$:new Hl.ValueSubject(!1),type:0};this.info.isEnabled$=new Hl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return wt(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return wt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return wt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=Q({},e)}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return wt(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).enterpictureinpicture)==null||s.call(r,e))}onLeavePictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).leavepictureinpicture)==null||s.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Da(t){return t instanceof Na}var Fl=require("@vkontakte/videoplayer-shared/es2015");uh();function ov(t,e){F(e,!1);let i=_e();Bt(()=>{i.getAdmanWrapper().startPostroll()}),Jo(),U()}var g0=require("@vkontakte/videoplayer-shared/es2015");var C$=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},T$=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>'),E$=M("<div><!></div>"),I$={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 nv(t,e){F(e,!0),W(t,I$);let[i,o]=Be(),r=()=>S(u,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,g0.noop),u=_e().ui.isMobile,f=m(()=>s()>0&&s()>=l());var v=E$();let p;v.__click=[C$,f,d];var x=_(v);{var w=C=>{var T=T$(),E=_(T);Ee(),g(T),D(R=>me(E,`${R!=null?R:""} `),[()=>Y("skip_ads_now")]),b(C,T)},y=C=>{var T=us();D(E=>me(T,E),[()=>Y("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),b(C,T)};V(x,C=>{n(f)?C(w):C(y,!1)})}g(v),D(C=>p=re(v,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":r(),skippable:n(f)})]),b(t,v),U(),o()}ct(["click"]);var k$=M('<button class="go-to-site svelte-1dzpmjp"> </button>'),A$={hash:"svelte-1dzpmjp",code:"button.go-to-site.svelte-1dzpmjp {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 rv(t,e){F(e,!1),W(t,A$),Jo();var i=k$(),o=_(i,!0);g(i),D(r=>me(o,r),[()=>Y("visit_advertiser")],En),b(t,i),U()}var P$=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),M$=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),L$={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
54
|
+
Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},l0=f$;var Is=new Map;Is.set(Nl.InterfaceLanguage.EN,l0);Is.set(Nl.InterfaceLanguage.RU,a0);var d0=new Map,Xf=({language:t,pack:e,fallback:i})=>{if(Is.has(t)){let o=Is.get(t);Is.set(t,q(q({},o),e))}else Is.set(t,e);d0.set(t,i)},Jf=t=>Is.has(t),ev=(t,e,i,o)=>{var l;let r=Is.get(t),s=r==null?void 0:r[e];if((0,Nl.isNullable)(s)){let d=(l=d0.get(t))!=null?l:o,a=d?Is.get(d):void 0;s=a==null?void 0:a[e]}return(0,Nl.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},Z=(t,e)=>{let{interfaceLanguage$:i}=he(),o=$e(i),r=Nt();return ev(o,t,e,r.defaultLanguage)};var IL=require("@vkontakte/videoplayer-core/es2015");var Dl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Dl||(Dl={}));var v$=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,m$=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,g$=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Bu="?",h$="X-Sentry-Auth",_$=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function b$(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
|
|
55
|
+
`),o,r;for(let s=0;s<i.length;++s){if(o=v$.exec(i[s]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Bu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=g$.exec(i[s]))r={filename:o[2],function:o[1]||Bu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=m$.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||Bu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=Bu),e.push(r)}return e.length?{value:c0(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function c0(t){return(t&&t.message||"No error message").split(`
|
|
56
|
+
`).filter(i=>!!i)[0]}function $$(t){try{let e=b$(t);if(e)return e}catch(e){}return{value:c0(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 Hu=class{constructor(e){if(e&&e.dsn){let i=_$.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return jt(q({},this.getRequestBlank()),{exception:{values:[$$(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(h$,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 u0(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function x$(){return window}var Fu=class t extends Hu{constructor(e,i=x$()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",q({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",q({},e)),this}setUser(e){return this.setKeyState("user",q({},e)),this}clone(){let e=new t(jt(q({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[q({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(jt(q({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>u0(i,o))):!1}getRequestBlank(){return q(jt(q({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(q({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>u0(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 r=this._state[o],s=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return jt(q({},i),{[o]:s||d?[...s||[],...d||[]]:q(q({},typeof r!="string"?r:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var Va=require("@vkontakte/videoplayer-shared/es2015");var Uu=null,Ra=class{constructor(e,i,o={}){!Uu&&e.dsn&&(this.sentryClient=new Fu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Va.Subscription,this.options=e,this.context=o,Uu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Uu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:x}=i;if((0,Va.isNonNullable)(x)&&v.includes(x)||(0,Va.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,Va.isNonNullable)(x)&&u.includes(x)||(0,Va.isNonNullable)(p)&&a.includes(p)){Object.keys(i).length&&r.setTags(q({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras(q(q({},s),o));try{p&&r.captureMessage(p,i.fatal?Dl.fatal:Dl.error),r.report(e)}catch(y){console.error(y)}}}static getInstance(){return Uu}};var Gr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Gr||{});var zu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},Wu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),p0=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,f0=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},jd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ys=()=>!!jd(),Ku=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},qu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},v0=t=>{let e=window.screen;return(r=>wt(null,null,function*(){return e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject()}))(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var tv=require("@vkontakte/videoplayer-core/es2015"),m0=()=>({title:Z("hotkey_map_modal_title"),closeBtnText:Z("hotkey_map_modal_close_btn_text"),groups:[{title:Z("hotkey_map_group_title_common"),items:[{description:Z("hotkey_map_item_mute_description"),value:Z("hotkey_map_item_mute_value")},{description:Z("hotkey_map_item_volume_up_description"),value:Z("hotkey_map_item_volume_up_value")},{description:Z("hotkey_map_item_volume_down_description"),value:Z("hotkey_map_item_volume_down_value")},{description:Z("hotkey_map_item_pip_description"),value:Z("hotkey_map_item_pip_value")},{description:Z("hotkey_map_item_full_screen_description"),value:Z("hotkey_map_item_full_screen_value")},{description:Z("hotkey_map_item_show_context_menu_description"),value:Z("hotkey_map_item_show_context_menu_value")},{description:Z("hotkey_map_item_show_hotkey_map_description"),value:Z("hotkey_map_item_show_hotkey_map_value")}]},{title:Z("hotkey_map_group_title_playback"),items:[{description:Z("hotkey_map_item_play_toggle_description"),value:Z("hotkey_map_item_play_toggle_value")},{description:Z("hotkey_map_item_seek_backward_description"),value:Z("hotkey_map_item_seek_backward_value")},{description:Z("hotkey_map_item_seek_forward_description"),value:Z("hotkey_map_item_seek_forward_value")},{description:Z("hotkey_map_item_fast_seek_backward_description"),value:Z("hotkey_map_item_fast_seek_backward_value")},{description:Z("hotkey_map_item_fast_seek_forward_description"),value:Z("hotkey_map_item_fast_seek_forward_value")},{description:Z("hotkey_map_item_rate_down_description"),value:Z("hotkey_map_item_rate_down_value")},{description:Z("hotkey_map_item_rate_up_description"),value:Z("hotkey_map_item_rate_up_value")},{description:Z("hotkey_map_item_prev_frame_description"),value:Z("hotkey_map_item_prev_frame_value")},{description:Z("hotkey_map_item_next_frame_description"),value:Z("hotkey_map_item_next_frame_value")},{description:Z("hotkey_map_item_jump_seek_description"),value:Z("hotkey_map_item_jump_seek_value")},{description:Z("hotkey_map_item_next_video_description"),value:Z("hotkey_map_item_next_video_value")},{description:Z("hotkey_map_item_prev_video_description"),value:Z("hotkey_map_item_prev_video_value")}]},{title:Z("hotkey_map_group_title_subtitles"),items:[{description:Z("hotkey_map_item_subtitles_toggle_description"),value:Z("hotkey_map_item_subtitles_toggle_value")}]},{title:Z("hotkey_map_group_title_episodes"),items:[{description:Z("hotkey_map_item_prev_episode_description"),value:tv.clientChecker.device.isApple?Z("hotkey_map_item_prev_episode_mac_value"):Z("hotkey_map_item_prev_episode_pc_value")},{description:Z("hotkey_map_item_next_episode_description"),value:tv.clientChecker.device.isApple?Z("hotkey_map_item_next_episode_mac_value"):Z("hotkey_map_item_next_episode_pc_value")}]}]});var Bl=require("@vkontakte/videoplayer-shared/es2015");var Oa=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,Bl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Bl.ValueSubject(!1),isEnabled$:new Bl.ValueSubject(!1),type:0};this.info.isEnabled$=new Bl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return wt(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return wt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return wt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=q({},e)}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return wt(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).enterpictureinpicture)==null||s.call(r,e))}onLeavePictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).leavepictureinpicture)==null||s.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Na(t){return t instanceof Oa}var Hl=require("@vkontakte/videoplayer-shared/es2015");uh();function ov(t,e){F(e,!1);let i=he();Bt(()=>{i.getAdmanWrapper().startPostroll()}),qo(),U()}var g0=require("@vkontakte/videoplayer-shared/es2015");var w$=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},S$=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>'),C$=M("<div><!></div>"),T$={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 nv(t,e){F(e,!0),W(t,T$);let[i,o]=De(),r=()=>S(u,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,g0.noop),u=he().ui.isMobile,f=m(()=>s()>0&&s()>=l());var v=C$();let p;v.__click=[w$,f,d];var x=_(v);{var w=C=>{var T=S$(),E=_(T);Ee(),g(T),D(R=>ve(E,`${R!=null?R:""} `),[()=>Z("skip_ads_now")]),b(C,T)},y=C=>{var T=cs();D(E=>ve(T,E),[()=>Z("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),b(C,T)};V(x,C=>{n(f)?C(w):C(y,!1)})}g(v),D(C=>p=re(v,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":r(),skippable:n(f)})]),b(t,v),U(),o()}ut(["click"]);var E$=M('<button class="go-to-site svelte-1dzpmjp"> </button>'),I$={hash:"svelte-1dzpmjp",code:"button.go-to-site.svelte-1dzpmjp {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 rv(t,e){F(e,!1),W(t,I$),qo();var i=E$(),o=_(i,!0);g(i),D(r=>ve(o,r),[()=>Z("visit_advertiser")],En),b(t,i),U()}var k$=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),A$=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),P$={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
57
57
|
360deg,
|
|
58
58
|
rgba(0, 0, 0, 0) 0%,
|
|
59
59
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -63,7 +63,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
|
|
|
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
|
|
66
|
+
);}`};function Yd(t,e){F(e,!0),W(t,P$);let[i,o]=De(),r=()=>S(B,"$canSkipAd",i),s=()=>S(H,"$adPlaybackState",i),l=()=>S(E,"$isMobile",i),d=()=>S(z,"$adPosition",i),a=()=>S(X,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=h(e,"adsSlotId",3,void 0),v=h(e,"adsParams",3,void 0),p=h(e,"adsAutoplayParam",3,void 0),x=h(e,"duration",3,0),w=h(e,"adsExternalApi",3,void 0),y=he(),C=Nt(),T=y.state.isEnded$,E=y.ui.isMobile,R=C.ads.isMobileGoToSiteButton,A=j(void 0),I=j(void 0),N=!1,H=y.ads.playbackState,B=y.ads.canSkip,z=y.ads.position,X=y.ads.secondsToWatchBeforeSkip,ae=m(()=>r()&&s()!=="inactive"),Q=m(()=>l()&&s()!=="inactive"&&R);Bt(()=>{let k=y.getAdmanWrapper();if(Hl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Hl.now)(),f()]}),!f()){k.onAdmanLoadingError();return}let Ge=()=>{var we;let{width:He,height:Xe}=$e(y.ui.playerSize),ge=$e(y.ui.isFullscreen),ie=(we=p())!=null?we:$e(y.ui.isAutoplay),ke=C.ads.paramsOverride;return{width:He,height:Xe,isFullscreen:ge,isAutoplay:ie,adsContainer:n(A),adsVideoElement:n(I),slotId:f(),params:v(),paramsOverride:ke,duration:x(),externalApi:w()}},Me=He=>wt(null,null,function*(){He&&(yield $o());let Xe=Ge();yield k.initAdman(Xe),N=!0}),Y=new AbortController,oe=()=>{Y.abort()};return window.AdmanHTML?Me(!0).catch(()=>{k.onAdmanLoadingError()}):k.loadAdman(Y.signal).then(()=>Me(!1)).catch(()=>{k.onAdmanLoadingError()}),()=>{Hl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Hl.now)(),f()]}),!N&&oe()}});var ce=A$(),J=_(ce);{var me=k=>{var Ge=k$();b(k,Ge)};V(J,k=>{l()&&k(me)})}var se=P(J,2);lt(se,k=>O(I,k),()=>n(I));var le=P(se,2);{var Pe=k=>{nv(k,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};V(le,k=>{n(ae)&&k(Pe)})}var ye=P(le,2);{var ee=k=>{ov(k,{})};V(ye,k=>{u()&&k(ee)})}var Be=P(ye,2);{var pe=k=>{rv(k,{})};V(Be,k=>{n(Q)&&k(pe)})}g(ce),lt(ce,k=>O(A,k),()=>n(A)),b(t,ce),U(),o()}var Qo=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var M$=Ie('<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 sv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=M$();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var L$=Ie('<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 av(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=L$();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function Zd(t,e){let i=h(e,"isActive",3,!1);var o=ze(),r=fe(o);{var s=d=>{av(d,{})},l=d=>{sv(d,{})};V(r,d=>{i()?d(s):d(l,!1)})}b(t,o)}var V$=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>'),R$=M('<div class="live-icon svelte-1s15d2i"><!></div>'),O$=M('<span class="text svelte-1s15d2i"> </span>'),N$=M("<div><!> <!></div>"),D$={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
|
|
67
67
|
opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
|
|
68
68
|
animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
|
|
69
69
|
animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
|
|
@@ -134,10 +134,10 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
|
|
|
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
|
|
138
|
-
opacity var(--controls-transition-duration);}`};function ec(t,e){F(e,!0),W(t,U$);let[i,o]=Be(),r=()=>S(f,"$disabled",i),s=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),a=Nt(),u=m(()=>en(e.duration-e.position)),f=ae(!1);var v=F$();let p;var x=_(v);Jd(x,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),g(v),Is(v,()=>Ul(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(w=>p=re(v,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":r(),hidden:s()})]),b(t,v),U(),o()}var zl=t=>{if(!navigator.clipboard){h0(t);return}navigator.clipboard.writeText(t).catch(()=>h0(t))};function h0(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 T0=require("@vkontakte/videoplayer-core/es2015");var dv=require("@vkontakte/videoplayer-core/es2015");var lv="focus-hidden";var Tr=t=>{t.stopPropagation(),t.preventDefault()},cv=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(lv)},W$=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},K$=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},q$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Q$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},_0=t=>t.code==="Escape",j$=t=>t.code==="ArrowLeft",tc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},b0=t=>{q$(t)?(Tr(t),K$(t.target)):Q$(t)&&(Tr(t),W$(t.target))},ta=t=>!dv.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||dv.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Wl=(t,e,i)=>wt(null,null,function*(){yield Lo(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(yield Lo(),i.set(!1),t.focus())}),$0=(t,e,i)=>wt(null,null,function*(){yield Lo(),t&&!e&&$e(i)&&(i.set(!1),t.focus())}),ic=(t,e,i,o=!1)=>wt(null,null,function*(){if(yield Lo(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(lv,!i),s==null||s.focus()}}),y0=(t,e)=>wt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Gu=(t,e)=>{b0(t),cv(t.target),_0(t)&&(Tr(t),e())},Yu=(t,e)=>wt(null,null,function*(){tc(t,["ArrowRight"])&&(Tr(t),e())}),x0=(t,e,i)=>wt(null,null,function*(){if(b0(t),j$(t)){Tr(t),e();return}_0(t)&&(Tr(t),i())}),Kl=(t,e)=>{tc(t)&&(Tr(t),e())},w0=(t,e,i)=>{if(tc(t))Tr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Tr(t);return}o==="ArrowRight"&&!e&&(i(!0),Tr(t))}},S0=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},C0=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var Fa=require("@vkontakte/videoplayer-shared/es2015");var ts={"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 uv=require("@vkontakte/videoplayer-shared/es2015");var Y$=(t,e)=>{Kl(t,()=>e())},Z$=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),X$={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 pv(t,e){F(e,!0),W(t,X$);let i=h(e,"onClick",3,uv.noop),o=h(e,"closeContextMenu",3,uv.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=Z$();s.__click=r,s.__keydown=[Y$,r];var l=_(s,!0);g(s),D(()=>{var d;Ke(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ke(s,"data-testid",e.id),me(l,e.label)}),b(t,s),U()}ct(["click","keydown"]);var Ha=(t,e)=>t.weight-e.weight;var ql=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ql||{});var J$=(t,e)=>{Gu(t,e)},e2=t=>{t.preventDefault()},t2=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),i2={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 fv(t,e){F(e,!0),W(t,i2);let[i,o]=Be(),r=()=>S(ve,"$playerPhase",i),s=()=>S(le,"$isLive$",i),l=()=>S(se,"$isPiPEnabled$",i),d=()=>S(X,"$chromecastState$",i),a=()=>S(de,"$pictureInPictureApiIsActive$",i),u=()=>S(J,"$isLooped$",i),f=()=>S(q,"$positionExact$",i),v=()=>S(H,"$additionalContextMenuItems$",i),p=h(e,"visible",3,!1),x=h(e,"position",19,()=>({top:0,left:0})),w=h(e,"playerContainerRef",3,void 0),y=h(e,"menuElementRef",15,void 0),C=j(0),T=j(0),E=_e(),{pictureInPicture$:R}=Co(),A=Nt(),I=E.ui.contextMenu.visible$,N=E.ui.debugPanelVisible,H=E.ui.additionalContextMenuItems$,B=E.ui.t,z=E.actions.internal.togglePictureInPicture,X=E.state.chromecastState$,le=E.state.isLive$,q=E.state.positionExact$,ce=E.state.isInteractive,J=E.state.looped$,ve=E.playerPhase,{isEnabled$:se,isActive$:de}=R,Le=m(()=>r()==="video"),Se=m(()=>!!s()&&n(Le)),ie=m(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Ne=m(()=>{var xe;return A.features.copyVideoLink&&((xe=E.callbacks)==null?void 0:xe.onCopyVideoLink)}),pe=m(()=>n(Ne)&&!n(ie)&&!ce&&!n(Se)),k=m(()=>{var xe;return!!((xe=E.callbacks)!=null&&xe.onCopyEmbedCodeClicked)}),qe=m(()=>l()&&d()!==T0.ChromecastState.CONNECTED&&!ce&&n(Le)),Re=m(()=>!ce&&!n(ie)&&!n(Se)),Z=m(()=>A.features.videoRotate&&!ce&&!n(ie)),ne=m(()=>A.showSupport&&!a()),He=m(()=>A.features.saveTraceInfoToFile),Xe=()=>{var xe;I.set(!1),(xe=e.returnFocus)==null||xe.call(e)},ge=(xe,nt)=>{if(!y()||!w())return;let Qe=y().getBoundingClientRect(),dt=w().getBoundingClientRect();O(C,xe-dt.left),O(T,nt-dt.top),n(C)+Qe.width>dt.width&&O(C,dt.width-Qe.width),n(T)+Qe.height>dt.height&&O(T,dt.height-Qe.height),O(C,Math.max(n(C),0),!0),O(T,Math.max(n(T),0),!0)};We(()=>{wt(null,null,function*(){if(y()&&w()){yield Lo();let{top:nt,left:Qe,bottom:dt,right:ni}=x(),ai=Qe!=null?Qe:0,mi=nt!=null?nt:0,wi=y().getBoundingClientRect();(0,Fa.isNullable)(Qe)&&!(0,Fa.isNullable)(ni)&&(ai=ni-wi.width),(0,Fa.isNullable)(nt)&&!(0,Fa.isNullable)(dt)&&(mi=dt-wi.height),ai=Math.max(ai,0),mi=Math.max(mi,0),ge(ai,mi)}})});let ee=()=>{E.actions.internal.videoRotate()},ke=()=>{(0,Fa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},he=()=>{let xe=E.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let nt=new Blob([...xe],{type:"plain/text"}),Qe=window.URL.createObjectURL(nt);Va(Qe,"vk_player_debug_info","txt")}else zl(E.actions.internal.getDebugTextData())},Ue=()=>{let xe=E.actions.internal.getTraceTextData(),nt=new Blob([...xe],{type:"application/json"}),Qe=window.URL.createObjectURL(nt);Va(Qe,"vk_player_trace_info","json")},Je=()=>{N.set(!0)},Ge=()=>wt(null,null,function*(){var xe;try{z()}finally{(xe=e.returnFocus)==null||xe.call(e)}}),ut=()=>{E.actions.internal.setLooped(!u())},tt=()=>{var xe,nt;if(n(k)){let Qe=(nt=(xe=E.callbacks)==null?void 0:xe.onCopyEmbedCodeClicked)==null?void 0:nt.call(xe);Qe&&zl(Qe)}},Ft=(xe=!1)=>{var nt,Qe;if((nt=E.callbacks)!=null&&nt.onCopyVideoLink){let dt=(Qe=E.callbacks)==null?void 0:Qe.onCopyVideoLink(xe,f());dt&&zl(dt)}},st=m(()=>A.features.saveDebugInfoToFile?B("menu_save_debug"):B("menu_copy_debug")),Ht=m(()=>n(Ne)?{id:"copy-link",weight:ts["copy-link"],label:B("menu_copy_video_link"),onClick:()=>Ft()}:void 0),Gt=m(()=>n(pe)?{id:"copy-link-timestamp",weight:ts["copy-link-timestamp"],label:B("menu_copy_video_link_with_timestamp"),onClick:()=>Ft(!0)}:void 0),kt=m(()=>n(k)?{id:"copy-embed-code",weight:ts["copy-embed-code"],label:B("menu_copy_embed_code"),onClick:tt}:void 0),oi=m(()=>n(qe)?{id:"pip",weight:ts.pip,label:a()?B("menu_pip_close"):B("menu_pip"),onClick:Ge}:void 0),qt=m(()=>n(Re)?{id:"video-loop",weight:ts["video-loop"],label:u()?B("menu_video_loop_off"):B("menu_video_loop_on"),ariaLabel:B("aria_label_menu_loop"),onClick:ut}:void 0),Ce=m(()=>n(Z)?{id:"rotate",weight:ts.rotate,label:B("menu_video_rotate"),ariaLabel:B("aria_label_menu_rotate"),onClick:ee}:void 0),we=m(()=>n(ne)?{id:"report",weight:ts.report,label:B("menu_report"),ariaLabel:`${B("menu_report")}. ${B("aria_label_new_tab_alert")}`,onClick:ke}:void 0),te=m(()=>({id:"save-debug",weight:ts["save-debug"],label:n(st),onClick:he})),Te=m(()=>n(He)?{id:"save-trace",weight:ts["save-trace"],label:B("menu_save_debug"),onClick:Ue}:void 0),Me=m(()=>({id:"debug-info",weight:ts["debug-info"],label:B("menu_debug_overlay"),ariaLabel:B("aria_label_menu_debug_overlay"),onClick:Je})),At=m(()=>[n(Ht),n(Gt),n(kt),n(oi),n(qt),n(Ce),n(we),n(te),n(Te),n(Me),...v()].filter(xe=>!!xe).sort(Ha));var De=Fe(),pt=fe(De);{var xt=xe=>{var nt=t2();nt.__contextmenu=[e2],nt.__keydown=[J$,Xe],Ei(nt,21,()=>n(At),Qe=>Qe.id,(Qe,dt)=>{pv(Qe,{get id(){return n(dt).id},get label(){return n(dt).label},get ariaLabel(){return n(dt).ariaLabel},get onClick(){return n(dt).onClick},closeContextMenu:Xe})}),g(nt),lt(nt,Qe=>y(Qe),()=>y()),D(()=>{var Qe,dt;return et(nt,`top: ${(Qe=n(T))!=null?Qe:""}px; left: ${(dt=n(C))!=null?dt:""}px;`)}),b(xe,nt)};V(pt,xe=>{p()&&xe(xt)})}b(t,De),U(),o()}ct(["contextmenu","keydown"]);var Zu=class{constructor(e){this.value=e,this.next=null}};var Ql=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Zu(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 o2=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),n2={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 oc(t,e){F(e,!0),W(t,n2);let i=h(e,"values",19,()=>[]),o=j(void 0),r=j(null),s=16,l=120,d=60,a=l/d;Bt(()=>{n(o).width=l,n(o).height=s,O(r,n(o).getContext("2d"),!0)});function u(p,x,w,y,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(x,w,y,C)}We(()=>{let p="";if(n(r)){let x=i()[0];for(let y=1;y<i().length;y++)i()[y]>x&&(x=i()[y]);n(r).clearRect(0,0,l,s);let w=d-1;for(let y=i().length-1;y>=0;y--){let C=w*a,T=x>0?s*(i()[y]/x):0;u(n(r),C,0,a,T),p=T+" "+p,w--}}});var f=o2(),v=_(f);lt(v,p=>O(o,p),()=>n(o)),g(f),b(t,f),U()}var vv=require("@vkontakte/videoplayer-shared/es2015");var r2=(t,e)=>{t.stopPropagation(),vv.safeStorage.remove(zd),e.set(!1)},s2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video id</div> <span> </span></div>'),a2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">VSID</div> <span> </span></div>'),l2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Provider</div> <span> </span></div>'),d2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Streams</div> <span> </span></div>'),c2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Viewport</div> <span> </span></div>'),u2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video size</div> <span> </span></div>'),p2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">CDN host</div> <span> </span></div>'),f2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Volume</div> <span> </span></div>'),v2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Position</div> <span> </span></div>'),m2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Buffer</div> <span> </span></div>'),g2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Live latency</div> <span> </span></div>'),h2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Segment</div> <span> </span></div>'),_2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Network</div> <!> <span> </span></div>'),b2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">V bitrate</div> <!> <span> </span></div>'),$2=M('<div role="region"><button class="close svelte-lx3h69" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-lx3h69"><div class="svelte-lx3h69"><div class="svelte-lx3h69">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">FPS</div> <!> <span> </span></div></div></div>'),y2={hash:"svelte-lx3h69",code:".container.svelte-lx3h69 {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-lx3h69 {top:16px;left:16px;}button.close.svelte-lx3h69 {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-lx3h69 {padding:5px;}.content.svelte-lx3h69 > div:where(.svelte-lx3h69) > div:where(.svelte-lx3h69) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function nc(t,e){F(e,!0),W(t,y2);let[i,o]=Be(),r=()=>S(d,"$isMobile",i),s=_e(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=j(di(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=j(0),v=j(0),p=j(0),x=new Ql(60),w=new Ql(60),y=new Ql(60),C=j(di([])),T=j(di([])),E=j(di([])),R=Y("aria_label_debug_panel");Bt(()=>{vv.safeStorage.set(zd,"true"),s.actions.internal.startLogging(),u&&(O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Ce=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),we;return u&&(we=window.setInterval(()=>{if(u){O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let te=u.getVideoPlaybackQuality().totalVideoFrames;O(p,te-n(f)),O(f,te,!0),x.push(n(p)),n(a).speed&&w.push(n(a).speed),n(a).bitrate&&y.push(n(a).bitrate),O(C,x.getValuesFromBottom(),!0),O(T,w.getValuesFromBottom(),!0),O(E,y.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Ce),we&&clearInterval(we)}});var A=$2();let I;var N=_(A);N.__click=[r2,l];var H=P(N,2),B=_(H),z=P(_(B),2),X=_(z,!0);g(z),g(B);var le=P(B,2);{var q=Ce=>{var we=s2(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(()=>me(Te,n(a).id)),b(Ce,we)};V(le,Ce=>{n(a).id&&Ce(q)})}var ce=P(le,2);{var J=Ce=>{var we=a2(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(()=>me(Te,n(a).vsid)),b(Ce,we)};V(ce,Ce=>{n(a).vsid&&Ce(J)})}var ve=P(ce,2);{var se=Ce=>{var we=l2(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(()=>me(Te,n(a).provider)),b(Ce,we)};V(ve,Ce=>{n(a).provider&&Ce(se)})}var de=P(ve,2);{var Le=Ce=>{var we=d2(),te=P(_(we),2),Te=_(te);g(te),g(we),D(()=>{var Me,At;return me(Te,`Video: ${(Me=n(a).videoCodec||"")!=null?Me:""} ${n(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,D$);let i=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var s=N$();let l;var d=_(s);{var a=p=>{var x=V$();b(p,x)};V(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var x=R$(),w=_(x);Zd(w,{isActive:!0}),g(x),b(p,x)},v=p=>{var x=O$(),w=_(x,!0);g(x),D(()=>ve(w,e.time)),b(p,x)};V(u,p=>{o()?p(f):p(v,!1)})}g(s),D(p=>l=re(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:r()})]),b(t,s)}var Fl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var B$=M('<div role="timer" data-testid="thumb-timer"><!></div>'),H$={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
|
|
138
|
+
opacity var(--controls-transition-duration);}`};function Jd(t,e){F(e,!0),W(t,H$);let[i,o]=De(),r=()=>S(f,"$disabled",i),s=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),a=Nt(),u=m(()=>Qo(e.duration-e.position)),f=de(!1);var v=B$();let p;var x=_(v);Xd(x,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),g(v),Ts(v,()=>Fl(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(w=>p=re(v,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":r(),hidden:s()})]),b(t,v),U(),o()}var Ul=t=>{if(!navigator.clipboard){h0(t);return}navigator.clipboard.writeText(t).catch(()=>h0(t))};function h0(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 T0=require("@vkontakte/videoplayer-core/es2015");var dv=require("@vkontakte/videoplayer-core/es2015");var lv="focus-hidden";var Pr=t=>{t.stopPropagation(),t.preventDefault()},cv=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(lv)},U$=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},z$=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},W$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},K$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},_0=t=>t.code==="Escape",q$=t=>t.code==="ArrowLeft",ec=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},b0=t=>{W$(t)?(Pr(t),z$(t.target)):K$(t)&&(Pr(t),U$(t.target))},Js=t=>!dv.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||dv.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",zl=(t,e,i)=>wt(null,null,function*(){yield $o(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(yield $o(),i.set(!1),t.focus())}),$0=(t,e,i)=>wt(null,null,function*(){yield $o(),t&&!e&&$e(i)&&(i.set(!1),t.focus())}),tc=(t,e,i,o=!1)=>wt(null,null,function*(){if(yield $o(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(lv,!i),s==null||s.focus()}}),y0=(t,e)=>wt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Qu=(t,e)=>{b0(t),cv(t.target),_0(t)&&(Pr(t),e())},ju=(t,e)=>wt(null,null,function*(){ec(t,["ArrowRight"])&&(Pr(t),e())}),x0=(t,e,i)=>wt(null,null,function*(){if(b0(t),q$(t)){Pr(t),e();return}_0(t)&&(Pr(t),i())}),Wl=(t,e)=>{ec(t)&&(Pr(t),e())},w0=(t,e,i)=>{if(ec(t))Pr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Pr(t);return}o==="ArrowRight"&&!e&&(i(!0),Pr(t))}},S0=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},C0=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var Ha=require("@vkontakte/videoplayer-shared/es2015");var Yr={"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 uv=require("@vkontakte/videoplayer-shared/es2015");var j$=(t,e)=>{Wl(t,()=>e())},G$=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Y$={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 pv(t,e){F(e,!0),W(t,Y$);let i=h(e,"onClick",3,uv.noop),o=h(e,"closeContextMenu",3,uv.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=G$();s.__click=r,s.__keydown=[j$,r];var l=_(s,!0);g(s),D(()=>{var d;je(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),je(s,"data-testid",e.id),ve(l,e.label)}),b(t,s),U()}ut(["click","keydown"]);var Ba=(t,e)=>t.weight-e.weight;var Kl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Kl||{});var Z$=(t,e)=>{Qu(t,e)},X$=t=>{t.preventDefault()},J$=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),e2={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 fv(t,e){F(e,!0),W(t,e2);let[i,o]=De(),r=()=>S(me,"$playerPhase",i),s=()=>S(ae,"$isLive$",i),l=()=>S(se,"$isPiPEnabled$",i),d=()=>S(X,"$chromecastState$",i),a=()=>S(le,"$pictureInPictureApiIsActive$",i),u=()=>S(J,"$isLooped$",i),f=()=>S(Q,"$positionExact$",i),v=()=>S(H,"$additionalContextMenuItems$",i),p=h(e,"visible",3,!1),x=h(e,"position",19,()=>({top:0,left:0})),w=h(e,"playerContainerRef",3,void 0),y=h(e,"menuElementRef",15,void 0),C=j(0),T=j(0),E=he(),{pictureInPicture$:R}=So(),A=Nt(),I=E.ui.contextMenu.visible$,N=E.ui.debugPanelVisible,H=E.ui.additionalContextMenuItems$,B=E.ui.t,z=E.actions.internal.togglePictureInPicture,X=E.state.chromecastState$,ae=E.state.isLive$,Q=E.state.positionExact$,ce=E.state.isInteractive,J=E.state.looped$,me=E.playerPhase,{isEnabled$:se,isActive$:le}=R,Pe=m(()=>r()==="video"),ye=m(()=>!!s()&&n(Pe)),ee=m(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Be=m(()=>{var Se;return A.features.copyVideoLink&&((Se=E.callbacks)==null?void 0:Se.onCopyVideoLink)}),pe=m(()=>n(Be)&&!n(ee)&&!ce&&!n(ye)),k=m(()=>{var Se;return!!((Se=E.callbacks)!=null&&Se.onCopyEmbedCodeClicked)}),Ge=m(()=>l()&&d()!==T0.ChromecastState.CONNECTED&&!ce&&n(Pe)),Me=m(()=>!ce&&!n(ee)&&!n(ye)),Y=m(()=>A.features.videoRotate&&!ce&&!n(ee)),oe=m(()=>A.showSupport&&!a()),He=m(()=>A.features.saveTraceInfoToFile),Xe=()=>{var Se;I.set(!1),(Se=e.returnFocus)==null||Se.call(e)},ge=(Se,at)=>{if(!y()||!w())return;let We=y().getBoundingClientRect(),pt=w().getBoundingClientRect();O(C,Se-pt.left),O(T,at-pt.top),n(C)+We.width>pt.width&&O(C,pt.width-We.width),n(T)+We.height>pt.height&&O(T,pt.height-We.height),O(C,Math.max(n(C),0),!0),O(T,Math.max(n(T),0),!0)};Qe(()=>{wt(null,null,function*(){if(y()&&w()){yield $o();let{top:at,left:We,bottom:pt,right:Yt}=x(),yi=We!=null?We:0,mi=at!=null?at:0,Si=y().getBoundingClientRect();(0,Ha.isNullable)(We)&&!(0,Ha.isNullable)(Yt)&&(yi=Yt-Si.width),(0,Ha.isNullable)(at)&&!(0,Ha.isNullable)(pt)&&(mi=pt-Si.height),yi=Math.max(yi,0),mi=Math.max(mi,0),ge(yi,mi)}})});let ie=()=>{E.actions.internal.videoRotate()},ke=()=>{(0,Ha.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},we=()=>{let Se=E.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let at=new Blob([...Se],{type:"plain/text"}),We=window.URL.createObjectURL(at);La(We,"vk_player_debug_info","txt")}else Ul(E.actions.internal.getDebugTextData())},Fe=()=>{let Se=E.actions.internal.getTraceTextData(),at=new Blob([...Se],{type:"application/json"}),We=window.URL.createObjectURL(at);La(We,"vk_player_trace_info","json")},Je=()=>{N.set(!0)},Ye=()=>wt(null,null,function*(){var Se;try{z()}finally{(Se=e.returnFocus)==null||Se.call(e)}}),qe=()=>{E.actions.internal.setLooped(!u())},Ze=()=>{var Se,at;if(n(k)){let We=(at=(Se=E.callbacks)==null?void 0:Se.onCopyEmbedCodeClicked)==null?void 0:at.call(Se);We&&Ul(We)}},Ht=(Se=!1)=>{var at,We;if((at=E.callbacks)!=null&&at.onCopyVideoLink){let pt=(We=E.callbacks)==null?void 0:We.onCopyVideoLink(Se,f());pt&&Ul(pt)}},st=m(()=>A.features.saveDebugInfoToFile?B("menu_save_debug"):B("menu_copy_debug")),Ft=m(()=>n(Be)?{id:"copy-link",weight:Yr["copy-link"],label:B("menu_copy_video_link"),onClick:()=>Ht()}:void 0),Gt=m(()=>n(pe)?{id:"copy-link-timestamp",weight:Yr["copy-link-timestamp"],label:B("menu_copy_video_link_with_timestamp"),onClick:()=>Ht(!0)}:void 0),kt=m(()=>n(k)?{id:"copy-embed-code",weight:Yr["copy-embed-code"],label:B("menu_copy_embed_code"),onClick:Ze}:void 0),ti=m(()=>n(Ge)?{id:"pip",weight:Yr.pip,label:a()?B("menu_pip_close"):B("menu_pip"),onClick:Ye}:void 0),qt=m(()=>n(Me)?{id:"video-loop",weight:Yr["video-loop"],label:u()?B("menu_video_loop_off"):B("menu_video_loop_on"),ariaLabel:B("aria_label_menu_loop"),onClick:qe}:void 0),Ce=m(()=>n(Y)?{id:"rotate",weight:Yr.rotate,label:B("menu_video_rotate"),ariaLabel:B("aria_label_menu_rotate"),onClick:ie}:void 0),xe=m(()=>n(oe)?{id:"report",weight:Yr.report,label:B("menu_report"),ariaLabel:`${B("menu_report")}. ${B("aria_label_new_tab_alert")}`,onClick:ke}:void 0),te=m(()=>({id:"save-debug",weight:Yr["save-debug"],label:n(st),onClick:we})),Te=m(()=>n(He)?{id:"save-trace",weight:Yr["save-trace"],label:B("menu_save_debug"),onClick:Fe}:void 0),Ve=m(()=>({id:"debug-info",weight:Yr["debug-info"],label:B("menu_debug_overlay"),ariaLabel:B("aria_label_menu_debug_overlay"),onClick:Je})),Vt=m(()=>[n(Ft),n(Gt),n(kt),n(ti),n(qt),n(Ce),n(xe),n(te),n(Te),n(Ve),...v()].filter(Se=>!!Se).sort(Ba));var Re=ze(),dt=fe(Re);{var It=Se=>{var at=J$();at.__contextmenu=[X$],at.__keydown=[Z$,Xe],Ii(at,21,()=>n(Vt),We=>We.id,(We,pt)=>{pv(We,{get id(){return n(pt).id},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},get onClick(){return n(pt).onClick},closeContextMenu:Xe})}),g(at),lt(at,We=>y(We),()=>y()),D(()=>{var We,pt;return it(at,`top: ${(We=n(T))!=null?We:""}px; left: ${(pt=n(C))!=null?pt:""}px;`)}),b(Se,at)};V(dt,Se=>{p()&&Se(It)})}b(t,Re),U(),o()}ut(["contextmenu","keydown"]);var Gu=class{constructor(e){this.value=e,this.next=null}};var ql=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Gu(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 t2=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),i2={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 ic(t,e){F(e,!0),W(t,i2);let i=h(e,"values",19,()=>[]),o=j(void 0),r=j(null),s=16,l=120,d=60,a=l/d;Bt(()=>{n(o).width=l,n(o).height=s,O(r,n(o).getContext("2d"),!0)});function u(p,x,w,y,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(x,w,y,C)}Qe(()=>{let p="";if(n(r)){let x=i()[0];for(let y=1;y<i().length;y++)i()[y]>x&&(x=i()[y]);n(r).clearRect(0,0,l,s);let w=d-1;for(let y=i().length-1;y>=0;y--){let C=w*a,T=x>0?s*(i()[y]/x):0;u(n(r),C,0,a,T),p=T+" "+p,w--}}});var f=t2(),v=_(f);lt(v,p=>O(o,p),()=>n(o)),g(f),b(t,f),U()}var vv=require("@vkontakte/videoplayer-shared/es2015");var o2=(t,e)=>{t.stopPropagation(),vv.safeStorage.remove(Ud),e.set(!1)},n2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video id</div> <span> </span></div>'),r2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">VSID</div> <span> </span></div>'),s2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Provider</div> <span> </span></div>'),a2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Streams</div> <span> </span></div>'),l2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Viewport</div> <span> </span></div>'),d2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video size</div> <span> </span></div>'),c2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">CDN host</div> <span> </span></div>'),u2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Volume</div> <span> </span></div>'),p2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Position</div> <span> </span></div>'),f2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Buffer</div> <span> </span></div>'),v2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Live latency</div> <span> </span></div>'),m2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Segment</div> <span> </span></div>'),g2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Network</div> <!> <span> </span></div>'),h2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">V bitrate</div> <!> <span> </span></div>'),_2=M('<div role="region"><button class="close svelte-lx3h69" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-lx3h69"><div class="svelte-lx3h69"><div class="svelte-lx3h69">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">FPS</div> <!> <span> </span></div></div></div>'),b2={hash:"svelte-lx3h69",code:".container.svelte-lx3h69 {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-lx3h69 {top:16px;left:16px;}button.close.svelte-lx3h69 {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-lx3h69 {padding:5px;}.content.svelte-lx3h69 > div:where(.svelte-lx3h69) > div:where(.svelte-lx3h69) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function oc(t,e){F(e,!0),W(t,b2);let[i,o]=De(),r=()=>S(d,"$isMobile",i),s=he(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=j(ai(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=j(0),v=j(0),p=j(0),x=new ql(60),w=new ql(60),y=new ql(60),C=j(ai([])),T=j(ai([])),E=j(ai([])),R=Z("aria_label_debug_panel");Bt(()=>{vv.safeStorage.set(Ud,"true"),s.actions.internal.startLogging(),u&&(O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Ce=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),xe;return u&&(xe=window.setInterval(()=>{if(u){O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let te=u.getVideoPlaybackQuality().totalVideoFrames;O(p,te-n(f)),O(f,te,!0),x.push(n(p)),n(a).speed&&w.push(n(a).speed),n(a).bitrate&&y.push(n(a).bitrate),O(C,x.getValuesFromBottom(),!0),O(T,w.getValuesFromBottom(),!0),O(E,y.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Ce),xe&&clearInterval(xe)}});var A=_2();let I;var N=_(A);N.__click=[o2,l];var H=P(N,2),B=_(H),z=P(_(B),2),X=_(z,!0);g(z),g(B);var ae=P(B,2);{var Q=Ce=>{var xe=n2(),te=P(_(xe),2),Te=_(te,!0);g(te),g(xe),D(()=>ve(Te,n(a).id)),b(Ce,xe)};V(ae,Ce=>{n(a).id&&Ce(Q)})}var ce=P(ae,2);{var J=Ce=>{var xe=r2(),te=P(_(xe),2),Te=_(te,!0);g(te),g(xe),D(()=>ve(Te,n(a).vsid)),b(Ce,xe)};V(ce,Ce=>{n(a).vsid&&Ce(J)})}var me=P(ce,2);{var se=Ce=>{var xe=s2(),te=P(_(xe),2),Te=_(te,!0);g(te),g(xe),D(()=>ve(Te,n(a).provider)),b(Ce,xe)};V(me,Ce=>{n(a).provider&&Ce(se)})}var le=P(me,2);{var Pe=Ce=>{var xe=a2(),te=P(_(xe),2),Te=_(te);g(te),g(xe),D(()=>{var Ve,Vt;return ve(Te,`Video: ${(Ve=n(a).videoCodec||"")!=null?Ve:""} ${n(a).hdr?"(HDR)":""}
|
|
139
139
|
&
|
|
140
|
-
Audio: ${(At=n(a).audioCodec||"")!=null?At:""} ${n(a).audioLanguage?`(${n(a).audioLanguage})`:""}`)}),b(Ce,we)};V(de,Ce=>{(n(a).videoCodec||n(a).audioCodec)&&Ce(Le)})}var Se=P(de,2);{var ie=Ce=>{var we=c2(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(()=>me(Te,n(a).viewport)),b(Ce,we)};V(Se,Ce=>{n(a).viewport&&Ce(ie)})}var Ne=P(Se,2);{var pe=Ce=>{var we=u2(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(()=>me(Te,n(a).videoSize)),b(Ce,we)};V(Ne,Ce=>{n(a).videoSize&&Ce(pe)})}var k=P(Ne,2);{var qe=Ce=>{var we=p2(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(()=>me(Te,n(a).cdn)),b(Ce,we)};V(k,Ce=>{n(a).cdn&&Ce(qe)})}var Re=P(k,2);{var Z=Ce=>{var we=f2(),te=P(_(we),2),Te=_(te);g(te),g(we),D(()=>{var Me;return me(Te,`${(Me=n(a).volume)!=null?Me:""} %`)}),b(Ce,we)};V(Re,Ce=>{n(a).volume&&Ce(Z)})}var ne=P(Re,2);{var He=Ce=>{var we=v2(),te=P(_(we),2),Te=_(te);g(te),g(we),D(Me=>me(Te,`${Me!=null?Me:""} s`),[()=>n(a).position.toFixed(2)]),b(Ce,we)};V(ne,Ce=>{n(a).position&&Ce(He)})}var Xe=P(ne,2);{var ge=Ce=>{var we=m2(),te=P(_(we),2),Te=_(te);g(te),g(we),D(Me=>me(Te,`${Me!=null?Me:""} s`),[()=>n(a).buffer.toFixed(2)]),b(Ce,we)};V(Xe,Ce=>{n(a).buffer&&Ce(ge)})}var ee=P(Xe,2);{var ke=Ce=>{var we=g2(),te=P(_(we),2),Te=_(te);g(te),g(we),D(Me=>me(Te,`${Me!=null?Me:""} s`),[()=>n(a).liveLatency.toFixed(2)]),b(Ce,we)};V(ee,Ce=>{n(a).liveLatency&&Ce(ke)})}var he=P(ee,2);{var Ue=Ce=>{var we=h2(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(Me=>me(Te,Me),[()=>[{value:n(a).currentVideoSegmentLength,title:"Video:"},{value:n(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Me})=>Me).map(({value:Me,title:At})=>`${At} ${((Me!=null?Me:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Ce,we)};V(he,Ce=>{(n(a).currentVideoSegmentLength||n(a).currentAudioSegmentLength)&&Ce(Ue)})}var Je=P(he,2),Ge=P(_(Je),2),ut=_(Ge);g(Ge),g(Je);var tt=P(Je,2);{var Ft=Ce=>{var we=_2(),te=P(_(we),2);oc(te,{get values(){return n(T)}});var Te=P(te,2),Me=_(Te);g(Te),g(we),D(At=>me(Me,`${At!=null?At:""} Kbps`),[()=>n(a).speed.toFixed(2)]),b(Ce,we)};V(tt,Ce=>{n(a).speed&&Ce(Ft)})}var st=P(tt,2);{var Ht=Ce=>{var we=b2(),te=P(_(we),2);oc(te,{get values(){return n(E)}});var Te=P(te,2),Me=_(Te);g(Te),g(we),D(At=>me(Me,`${At!=null?At:""} Kbps`),[()=>n(a).bitrate.toFixed(2)]),b(Ce,we)};V(st,Ce=>{n(a).bitrate&&Ce(Ht)})}var Gt=P(st,2),kt=P(_(Gt),2);oc(kt,{get values(){return n(C)}});var oi=P(kt,2),qt=_(oi,!0);g(oi),g(Gt),g(H),g(A),D(Ce=>{var we,te;I=re(A,1,"container svelte-lx3h69",null,I,Ce),Ke(A,"aria-label",R),me(X,n(a).version),me(ut,`${(we=n(v))!=null?we:""} / ${(te=n(f))!=null?te:""} frames`),me(qt,n(p))},[()=>({"container-mobile":r()})]),b(t,A),U(),o()}ct(["click"]);var E0=require("@vkontakte/videoplayer-shared/es2015"),x2=(t,e)=>{t.stopPropagation(),e()()},w2=M('<div class="close svelte-1ome55p"></div>'),S2={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 Ps(t,e){F(e,!0),W(t,S2);let i=h(e,"onClick",3,E0.noop);var o=w2();o.__click=[x2,i],b(t,o),U()}ct(["click"]);var I0=require("@vkontakte/videoplayer-shared/es2015"),C2=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>'),T2={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 rc(t,e){F(e,!0),W(t,T2);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,I0.noop),r=5e3,s=j(void 0),l,d,a=0,u;We(()=>{i()&&Lt(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Bt(()=>{l=n(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),pn(()=>{f()});var p=C2(),x=_(p);lt(x,w=>O(s,w),()=>n(s)),Ee(2),g(p),b(t,p),U()}var E2=(t,e,i)=>{e(!1),i()},I2=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),k2={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 mv(t,e){F(e,!0),W(t,k2);let[i,o]=Be(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=_e(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{r()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),x()};Bt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=Fe(),T=fe(C);{var E=R=>{var A=I2(),I=P(fe(A),2),N=_(I),H=_(N),B=_(H,!0);g(H);var z=P(H,2);Ps(z,{onClick:y}),g(N);var X=P(N,2);X.__click=[E2,u,v];var le=_(X),q=_(le),ce=_(q);let J;var ve=P(ce,2);{var se=ie=>{let Ne=m(()=>s()&&r());rc(ie,{get isRunning(){return n(Ne)},onTimerEnded:w})};V(ve,ie=>{r()&&ie(se)})}g(q),g(le);var de=P(le,2),Le=_(de),Se=_(Le,!0);g(Le),g(de),g(X),g(I),D((ie,Ne)=>{me(B,ie),et(q,`background-image: url('${e.thumb}')`),J=re(ce,1,"thumb-overlay svelte-jfbaax",null,J,Ne),me(Se,e.title)},[()=>Y("end_screen_next_video"),()=>({withOpacity:r()})]),b(R,A)};V(T,R=>{e.isHide||R(E)})}b(t,C),U(),o()}ct(["click"]);var oa=require("@vkontakte/videoplayer-core/es2015"),k0=require("@vkontakte/videoplayer-shared/es2015"),Ln=require("@vkontakte/videoplayer-statistics/es2015");var gv=(t,e)=>Math.min(+(t+e).toFixed(2),1),hv=(t,e)=>Math.max(+(t-e).toFixed(2),0),Xu=(t,e,i)=>{let o=gv(e,i);e<1&&t.actions.internal.setVolume(o)},Ju=(t,e,i)=>{let o=hv(e,i);e>0&&t.actions.internal.setVolume(o)};var ia=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function ep(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var P2=(t,e)=>{e(t)},M2=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),L2={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function _v(t,e){var Me,At;F(e,!0),W(t,L2);let[i,o]=Be(),r=()=>S(ve,"$disabledControls$",i),s=()=>S(ke,"$isInteractiveTime$",i),l=()=>S(he,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>S(X,"$playbackState$",i),a=()=>S(Z,"$isEnded$",i),u=()=>S(qe,"$doubleForwardAvailable$",i),f=()=>S(k,"$doubleForwardOn$",i),v=()=>S(ne,"$overlayContainer$",i),p=()=>S(le,"$adPlaybackState",i),x=()=>S(q,"$positionExact$",i),w=()=>S(ce,"$duration$",i),y=()=>S(ge,"$isAudioAvailable$",i),C=()=>S(J,"$volume$",i),T=()=>S(Se,"$availablePlaybackRates$",i),E=()=>S(Le,"$currentPlaybackRate$",i),R=()=>S(se,"$muted$",i),A=()=>S(de,"$currentSubtitle$",i),I=h(e,"nextButtonActive",3,!1),N=h(e,"prevButtonActive",3,!1),H=_e(),B=Nt(),z=H.getLogger().createComponentLog("KeyboardControls component"),X=H.state.playbackState$,le=H.ads.playbackState,q=H.state.positionExact$,ce=H.state.duration$,J=H.state.volume$,ve=H.ui.controls.disabledControls$,se=H.state.muted$,de=H.state.currentSubtitle$,Le=H.state.currentPlaybackRate$,Se=H.state.availablePlaybackRates$,ie=H.ui.contextMenu.openedByHotKey$,Ne=H.ui.contextMenu.lastActiveElem$,pe=H.ui.contextMenu.visible$,k=H.ui.doubleForwardOn$,qe=H.ui.doubleForwardAvailable$,Re=H.ui.contextMenu.position$,Z=H.state.isEnded$,ne=H.ui.overlayContainer$,He=(Me=H.callbacks)==null?void 0:Me.onAudioDoesNotExistHint,Xe=(At=H.callbacks)==null?void 0:At.onAudioDisabledHint,ge=H.state.isAudioAvailable$,ee=H.state.isAudioDisabled,ke=H.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:he}=Co(),Ue=0,Je=!0,Ge=j(void 0),ut=De=>(De!==Je&&(Je=De,Ue=0),Ue+=1,(B.controls.seekStepKeyboard+B.controls.seekStepKeyboard*Ue)/1e3),tt=!0,Ft=({type:De,repeat:pt,disableDoubleForward:xt})=>{let xe=()=>{if(!r().has("PLAY_BUTTON"))if(s()&&l()&&he.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{H.actions.internal.togglePlay();let Qe="PLAY";d()===oa.PlaybackState.PAUSED?Qe="PAUSE":a()&&(Qe="REPLAY"),e.showHotKeyHelpers({type:Qe})}},nt=De==="down";if(!u()||xt){nt&&xe(),tt=!0;return}if(nt)tt=!1;else if(tt)return;if(nt){!pt&&e.startDoubleForwardActivationTimer();return}f()||xe(),e.stopDoubleForward(),tt=!0},st=De=>{let pt=C0(v());Re.set(pt),Ne.set(De.target),ie.set(!0),pe.set(!0)},Ht=(De,pt=!1)=>{var Mi,Xt;let xt=De.target,xe=(Mi=xt==null?void 0:xt.getAttribute("role"))==null?void 0:Mi.includes("menuitem"),nt=xt.classList.contains("btn"),Qe=De.code;if(nt&&Qe==="Space")return!1;let dt=E1.has(Qe);if(xe&&dt)return!1;let ni=!T1.has(Qe);if(De.ctrlKey&&ni||De.altKey&&ni||De.metaKey)return!1;let ai=xe&&Qe==="Escape";I1.has(Qe)||ai||e.hideContextMenu();let mi=d()===oa.PlaybackState.PLAYING||d()===oa.PlaybackState.PAUSED,wi=e.isAds&&(p()==="paused"||p()==="playing"),co=!wi&&!r().has("TIMELINE"),ho=De.shiftKey&&["Digit1","Numpad1"].includes(Qe);if(!ho&&!(mi||wi))return!1;z({message:`key down, code: ${Qe}, isExternal = ${pt}`});let ui=!1,ht=()=>{ui=!0,pt||De.preventDefault()};if(ho)return st(De),ht(),!0;switch(Qe){case"KeyJ":case"ArrowLeft":{if(!co)break;if(De.ctrlKey||De.altKey){let It=H.actions.internal.getPrevEpisode();H.actions.internal.seekToPrevEpisode(It),It&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:It.text}),ht()}else{let It=De.shiftKey?ut(!1):B.controls.seekStepKeyboard/1e3,si=Math.max(x()-It,0);x()>0&&(H.actions.internal.seekTime(si,Ln.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:It.toString()}),ht())}break}case"KeyL":case"ArrowRight":{if(!co)break;if(De.ctrlKey||De.altKey){let It=H.actions.internal.getNextEpisode();H.actions.internal.seekToNextEpisode(It),It&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:It.text}),ht()}else{let It=De.shiftKey?ut(!0):B.controls.seekStepKeyboard/1e3,si=Math.min(x()+It,w());Math.round(x())<Math.round(w())&&(H.actions.internal.seekTime(si,Ln.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:It.toString()}),ht())}break}case"ArrowUp":{if(ia({isAudioDisabled:ee,audioDisabledHintCallback:Xe,isAudioAvailable:y(),audioIsNotExistHintCallback:He,isAds:e.isAds})){let It=C(),si=B.controls.volumeStepKeyboard,Jt=It<=1;if(Xu(H,It,si),Jt){let Tt=Math.round(gv(It,si)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Tt}})}}ht();break}case"ArrowDown":{if(ia({isAudioDisabled:ee,audioDisabledHintCallback:Xe,isAudioAvailable:y(),audioIsNotExistHintCallback:He,isAds:e.isAds})){let It=C(),si=B.controls.volumeStepKeyboard,Jt=It>=0;if(Ju(H,It,si),Jt){let Tt=Math.round(hv(It,si)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Tt}})}}ht();break}case"Comma":{if(De.shiftKey){if(!f()){H.actions.internal.decrementPlaybackRate();let It=T().find(si=>si.value===E());e.showHotKeyHelpers({type:"RATE_DOWN",text:It==null?void 0:It.displayValue}),ht()}}else{if(wi||d()!==oa.PlaybackState.PAUSED)break;let It=Math.max(x()-B.controls.seekStepFrame/1e3,0);x()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(It,Ln.SeekAction.DOUBLE_TAP),ht())}break}case"Period":{if(De.shiftKey){if(!f()){H.actions.internal.incrementPlaybackRate();let It=T().find(si=>si.value===E());e.showHotKeyHelpers({type:"RATE_UP",text:It==null?void 0:It.displayValue}),ht()}}else{if(wi||d()!==oa.PlaybackState.PAUSED)break;let It=Math.min(x()+B.controls.seekStepFrame/1e3,w());x()<w()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(It,Ln.SeekAction.DOUBLE_TAP),ht())}break}case"KeyK":case"Space":Ft({type:"down",repeat:De.repeat,disableDoubleForward:"KeyK"===Qe}),ht();break;case"KeyM":{ia({isAudioDisabled:ee,audioDisabledHintCallback:Xe,isAudioAvailable:y(),audioIsNotExistHintCallback:He,isAds:e.isAds})&&(e.showHotKeyHelpers({type:R()?"VOLUME":"MUTE"}),H.actions.internal.toggleMuted()),ht();break}case"KeyF":e.toggleFullscreen(),ht();break;case"KeyC":H.actions.internal.toggleSubtitle(),A().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Xt=A())==null?void 0:Xt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ht();break;case"KeyI":H.actions.internal.togglePictureInPicture(),ht();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.1,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.2,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.3,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.4,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.5,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.6,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.7,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.8,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.9,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(0,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Slash":{De.shiftKey&&B.features.hotKeyMapModal&&(e.showKeyMap(),ht());break}case"KeyN":De.shiftKey&&I()&&(H.actions.internal.nextVideoClick(),ht());break;case"KeyP":De.shiftKey&&N()&&(H.actions.internal.prevVideoClick(),ht());break;case"ShiftLeft":case"ShiftRight":ht();break;case"Tab":case"Escape":case"Enter":break;default:(0,k0.checkNever)(Qe);break}return ui},Gt=De=>{let pt=De.code;if(De.ctrlKey||De.altKey||De.metaKey)return;let xt=d()===oa.PlaybackState.PLAYING||d()===oa.PlaybackState.PAUSED,xe=e.isAds&&(p()==="paused"||p()==="playing");if(xt||xe)switch(pt){case"ShiftLeft":case"ShiftRight":Ue=0;break;case"Space":Ft({type:"up"});break}},kt=Y("aria_label_video_player"),oi=()=>{var De;return(De=n(Ge))==null?void 0:De.focus()},qt=()=>n(Ge)===ep(),Ce=De=>De.type==="keydown"?Ht(De,!0):(De.type==="keyup"&&Gt(De),!1);var we=M2();we.__keyup=Gt,we.__keydown=[P2,Ht];var te=_(we);be(te,()=>{var De;return(De=e.children)!=null?De:ue}),g(we),lt(we,De=>O(Ge,De),()=>n(Ge)),D(()=>Ke(we,"aria-label",kt)),b(t,we);var Te=U({focus:oi,isFocused:qt,handleExternalKeyboardEvent:Ce});return o(),Te}ct(["keyup","keydown"]);var V2=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>'),R2={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: ${(Vt=n(a).audioCodec||"")!=null?Vt:""} ${n(a).audioLanguage?`(${n(a).audioLanguage})`:""}`)}),b(Ce,xe)};V(le,Ce=>{(n(a).videoCodec||n(a).audioCodec)&&Ce(Pe)})}var ye=P(le,2);{var ee=Ce=>{var xe=l2(),te=P(_(xe),2),Te=_(te,!0);g(te),g(xe),D(()=>ve(Te,n(a).viewport)),b(Ce,xe)};V(ye,Ce=>{n(a).viewport&&Ce(ee)})}var Be=P(ye,2);{var pe=Ce=>{var xe=d2(),te=P(_(xe),2),Te=_(te,!0);g(te),g(xe),D(()=>ve(Te,n(a).videoSize)),b(Ce,xe)};V(Be,Ce=>{n(a).videoSize&&Ce(pe)})}var k=P(Be,2);{var Ge=Ce=>{var xe=c2(),te=P(_(xe),2),Te=_(te,!0);g(te),g(xe),D(()=>ve(Te,n(a).cdn)),b(Ce,xe)};V(k,Ce=>{n(a).cdn&&Ce(Ge)})}var Me=P(k,2);{var Y=Ce=>{var xe=u2(),te=P(_(xe),2),Te=_(te);g(te),g(xe),D(()=>{var Ve;return ve(Te,`${(Ve=n(a).volume)!=null?Ve:""} %`)}),b(Ce,xe)};V(Me,Ce=>{n(a).volume&&Ce(Y)})}var oe=P(Me,2);{var He=Ce=>{var xe=p2(),te=P(_(xe),2),Te=_(te);g(te),g(xe),D(Ve=>ve(Te,`${Ve!=null?Ve:""} s`),[()=>n(a).position.toFixed(2)]),b(Ce,xe)};V(oe,Ce=>{n(a).position&&Ce(He)})}var Xe=P(oe,2);{var ge=Ce=>{var xe=f2(),te=P(_(xe),2),Te=_(te);g(te),g(xe),D(Ve=>ve(Te,`${Ve!=null?Ve:""} s`),[()=>n(a).buffer.toFixed(2)]),b(Ce,xe)};V(Xe,Ce=>{n(a).buffer&&Ce(ge)})}var ie=P(Xe,2);{var ke=Ce=>{var xe=v2(),te=P(_(xe),2),Te=_(te);g(te),g(xe),D(Ve=>ve(Te,`${Ve!=null?Ve:""} s`),[()=>n(a).liveLatency.toFixed(2)]),b(Ce,xe)};V(ie,Ce=>{n(a).liveLatency&&Ce(ke)})}var we=P(ie,2);{var Fe=Ce=>{var xe=m2(),te=P(_(xe),2),Te=_(te,!0);g(te),g(xe),D(Ve=>ve(Te,Ve),[()=>[{value:n(a).currentVideoSegmentLength,title:"Video:"},{value:n(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ve})=>Ve).map(({value:Ve,title:Vt})=>`${Vt} ${((Ve!=null?Ve:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Ce,xe)};V(we,Ce=>{(n(a).currentVideoSegmentLength||n(a).currentAudioSegmentLength)&&Ce(Fe)})}var Je=P(we,2),Ye=P(_(Je),2),qe=_(Ye);g(Ye),g(Je);var Ze=P(Je,2);{var Ht=Ce=>{var xe=g2(),te=P(_(xe),2);ic(te,{get values(){return n(T)}});var Te=P(te,2),Ve=_(Te);g(Te),g(xe),D(Vt=>ve(Ve,`${Vt!=null?Vt:""} Kbps`),[()=>n(a).speed.toFixed(2)]),b(Ce,xe)};V(Ze,Ce=>{n(a).speed&&Ce(Ht)})}var st=P(Ze,2);{var Ft=Ce=>{var xe=h2(),te=P(_(xe),2);ic(te,{get values(){return n(E)}});var Te=P(te,2),Ve=_(Te);g(Te),g(xe),D(Vt=>ve(Ve,`${Vt!=null?Vt:""} Kbps`),[()=>n(a).bitrate.toFixed(2)]),b(Ce,xe)};V(st,Ce=>{n(a).bitrate&&Ce(Ft)})}var Gt=P(st,2),kt=P(_(Gt),2);ic(kt,{get values(){return n(C)}});var ti=P(kt,2),qt=_(ti,!0);g(ti),g(Gt),g(H),g(A),D(Ce=>{var xe,te;I=re(A,1,"container svelte-lx3h69",null,I,Ce),je(A,"aria-label",R),ve(X,n(a).version),ve(qe,`${(xe=n(v))!=null?xe:""} / ${(te=n(f))!=null?te:""} frames`),ve(qt,n(p))},[()=>({"container-mobile":r()})]),b(t,A),U(),o()}ut(["click"]);var E0=require("@vkontakte/videoplayer-shared/es2015"),$2=(t,e)=>{t.stopPropagation(),e()()},y2=M('<div class="close svelte-1ome55p"></div>'),x2={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function ks(t,e){F(e,!0),W(t,x2);let i=h(e,"onClick",3,E0.noop);var o=y2();o.__click=[$2,i],b(t,o),U()}ut(["click"]);var I0=require("@vkontakte/videoplayer-shared/es2015"),w2=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>'),S2={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 nc(t,e){F(e,!0),W(t,S2);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,I0.noop),r=5e3,s=j(void 0),l,d,a=0,u;Qe(()=>{i()&&Lt(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Bt(()=>{l=n(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),cn(()=>{f()});var p=w2(),x=_(p);lt(x,w=>O(s,w),()=>n(s)),Ee(2),g(p),b(t,p),U()}var C2=(t,e,i)=>{e(!1),i()},T2=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),E2={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 mv(t,e){F(e,!0),W(t,E2);let[i,o]=De(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=he(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{r()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),x()};Bt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=ze(),T=fe(C);{var E=R=>{var A=T2(),I=P(fe(A),2),N=_(I),H=_(N),B=_(H,!0);g(H);var z=P(H,2);ks(z,{onClick:y}),g(N);var X=P(N,2);X.__click=[C2,u,v];var ae=_(X),Q=_(ae),ce=_(Q);let J;var me=P(ce,2);{var se=ee=>{let Be=m(()=>s()&&r());nc(ee,{get isRunning(){return n(Be)},onTimerEnded:w})};V(me,ee=>{r()&&ee(se)})}g(Q),g(ae);var le=P(ae,2),Pe=_(le),ye=_(Pe,!0);g(Pe),g(le),g(X),g(I),D((ee,Be)=>{ve(B,ee),it(Q,`background-image: url('${e.thumb}')`),J=re(ce,1,"thumb-overlay svelte-jfbaax",null,J,Be),ve(ye,e.title)},[()=>Z("end_screen_next_video"),()=>({withOpacity:r()})]),b(R,A)};V(T,R=>{e.isHide||R(E)})}b(t,C),U(),o()}ut(["click"]);var ta=require("@vkontakte/videoplayer-core/es2015"),k0=require("@vkontakte/videoplayer-shared/es2015"),Ln=require("@vkontakte/videoplayer-statistics/es2015");var gv=(t,e)=>Math.min(+(t+e).toFixed(2),1),hv=(t,e)=>Math.max(+(t-e).toFixed(2),0),Yu=(t,e,i)=>{let o=gv(e,i);e<1&&t.actions.internal.setVolume(o)},Zu=(t,e,i)=>{let o=hv(e,i);e>0&&t.actions.internal.setVolume(o)};var ea=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function Xu(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var k2=(t,e)=>{e(t)},A2=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),P2={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function _v(t,e){var Ve,Vt;F(e,!0),W(t,P2);let[i,o]=De(),r=()=>S(me,"$disabledControls$",i),s=()=>S(ke,"$isInteractiveTime$",i),l=()=>S(we,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>S(X,"$playbackState$",i),a=()=>S(Y,"$isEnded$",i),u=()=>S(Ge,"$doubleForwardAvailable$",i),f=()=>S(k,"$doubleForwardOn$",i),v=()=>S(oe,"$overlayContainer$",i),p=()=>S(ae,"$adPlaybackState",i),x=()=>S(Q,"$positionExact$",i),w=()=>S(ce,"$duration$",i),y=()=>S(ge,"$isAudioAvailable$",i),C=()=>S(J,"$volume$",i),T=()=>S(ye,"$availablePlaybackRates$",i),E=()=>S(Pe,"$currentPlaybackRate$",i),R=()=>S(se,"$muted$",i),A=()=>S(le,"$currentSubtitle$",i),I=h(e,"nextButtonActive",3,!1),N=h(e,"prevButtonActive",3,!1),H=he(),B=Nt(),z=H.getLogger().createComponentLog("KeyboardControls component"),X=H.state.playbackState$,ae=H.ads.playbackState,Q=H.state.positionExact$,ce=H.state.duration$,J=H.state.volume$,me=H.ui.controls.disabledControls$,se=H.state.muted$,le=H.state.currentSubtitle$,Pe=H.state.currentPlaybackRate$,ye=H.state.availablePlaybackRates$,ee=H.ui.contextMenu.openedByHotKey$,Be=H.ui.contextMenu.lastActiveElem$,pe=H.ui.contextMenu.visible$,k=H.ui.doubleForwardOn$,Ge=H.ui.doubleForwardAvailable$,Me=H.ui.contextMenu.position$,Y=H.state.isEnded$,oe=H.ui.overlayContainer$,He=(Ve=H.callbacks)==null?void 0:Ve.onAudioDoesNotExistHint,Xe=(Vt=H.callbacks)==null?void 0:Vt.onAudioDisabledHint,ge=H.state.isAudioAvailable$,ie=H.state.isAudioDisabled,ke=H.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:we}=So(),Fe=0,Je=!0,Ye=j(void 0),qe=Re=>(Re!==Je&&(Je=Re,Fe=0),Fe+=1,(B.controls.seekStepKeyboard+B.controls.seekStepKeyboard*Fe)/1e3),Ze=!0,Ht=({type:Re,repeat:dt,disableDoubleForward:It})=>{let Se=()=>{if(!r().has("PLAY_BUTTON"))if(s()&&l()&&we.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{H.actions.internal.togglePlay();let We="PLAY";d()===ta.PlaybackState.PAUSED?We="PAUSE":a()&&(We="REPLAY"),e.showHotKeyHelpers({type:We})}},at=Re==="down";if(!u()||It){at&&Se(),Ze=!0;return}if(at)Ze=!1;else if(Ze)return;if(at){!dt&&e.startDoubleForwardActivationTimer();return}f()||Se(),e.stopDoubleForward(),Ze=!0},st=Re=>{let dt=C0(v());Me.set(dt),Be.set(Re.target),ee.set(!0),pe.set(!0)},Ft=(Re,dt=!1)=>{var xi,di;let It=Re.target,Se=(xi=It==null?void 0:It.getAttribute("role"))==null?void 0:xi.includes("menuitem"),at=It.classList.contains("btn"),We=Re.code;if(at&&We==="Space")return!1;let pt=E1.has(We);if(Se&&pt)return!1;let Yt=!T1.has(We);if(Re.ctrlKey&&Yt||Re.altKey&&Yt||Re.metaKey)return!1;let yi=Se&&We==="Escape";I1.has(We)||yi||e.hideContextMenu();let mi=d()===ta.PlaybackState.PLAYING||d()===ta.PlaybackState.PAUSED,Si=e.isAds&&(p()==="paused"||p()==="playing"),lo=!Si&&!r().has("TIMELINE"),co=Re.shiftKey&&["Digit1","Numpad1"].includes(We);if(!co&&!(mi||Si))return!1;z({message:`key down, code: ${We}, isExternal = ${dt}`});let ci=!1,ht=()=>{ci=!0,dt||Re.preventDefault()};if(co)return st(Re),ht(),!0;switch(We){case"KeyJ":case"ArrowLeft":{if(!lo)break;if(Re.ctrlKey||Re.altKey){let yt=H.actions.internal.getPrevEpisode();H.actions.internal.seekToPrevEpisode(yt),yt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:yt.text}),ht()}else{let yt=Re.shiftKey?qe(!1):B.controls.seekStepKeyboard/1e3,gi=Math.max(x()-yt,0);x()>0&&(H.actions.internal.seekTime(gi,Ln.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:yt.toString()}),ht())}break}case"KeyL":case"ArrowRight":{if(!lo)break;if(Re.ctrlKey||Re.altKey){let yt=H.actions.internal.getNextEpisode();H.actions.internal.seekToNextEpisode(yt),yt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:yt.text}),ht()}else{let yt=Re.shiftKey?qe(!0):B.controls.seekStepKeyboard/1e3,gi=Math.min(x()+yt,w());Math.round(x())<Math.round(w())&&(H.actions.internal.seekTime(gi,Ln.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:yt.toString()}),ht())}break}case"ArrowUp":{if(ea({isAudioDisabled:ie,audioDisabledHintCallback:Xe,isAudioAvailable:y(),audioIsNotExistHintCallback:He,isAds:e.isAds})){let yt=C(),gi=B.controls.volumeStepKeyboard,Jt=yt<=1;if(Yu(H,yt,gi),Jt){let Ct=Math.round(gv(yt,gi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ct}})}}ht();break}case"ArrowDown":{if(ea({isAudioDisabled:ie,audioDisabledHintCallback:Xe,isAudioAvailable:y(),audioIsNotExistHintCallback:He,isAds:e.isAds})){let yt=C(),gi=B.controls.volumeStepKeyboard,Jt=yt>=0;if(Zu(H,yt,gi),Jt){let Ct=Math.round(hv(yt,gi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ct}})}}ht();break}case"Comma":{if(Re.shiftKey){if(!f()){H.actions.internal.decrementPlaybackRate();let yt=T().find(gi=>gi.value===E());e.showHotKeyHelpers({type:"RATE_DOWN",text:yt==null?void 0:yt.displayValue}),ht()}}else{if(Si||d()!==ta.PlaybackState.PAUSED)break;let yt=Math.max(x()-B.controls.seekStepFrame/1e3,0);x()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(yt,Ln.SeekAction.DOUBLE_TAP),ht())}break}case"Period":{if(Re.shiftKey){if(!f()){H.actions.internal.incrementPlaybackRate();let yt=T().find(gi=>gi.value===E());e.showHotKeyHelpers({type:"RATE_UP",text:yt==null?void 0:yt.displayValue}),ht()}}else{if(Si||d()!==ta.PlaybackState.PAUSED)break;let yt=Math.min(x()+B.controls.seekStepFrame/1e3,w());x()<w()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(yt,Ln.SeekAction.DOUBLE_TAP),ht())}break}case"KeyK":case"Space":Ht({type:"down",repeat:Re.repeat,disableDoubleForward:"KeyK"===We}),ht();break;case"KeyM":{ea({isAudioDisabled:ie,audioDisabledHintCallback:Xe,isAudioAvailable:y(),audioIsNotExistHintCallback:He,isAds:e.isAds})&&(e.showHotKeyHelpers({type:R()?"VOLUME":"MUTE"}),H.actions.internal.toggleMuted()),ht();break}case"KeyF":e.toggleFullscreen(),ht();break;case"KeyC":H.actions.internal.toggleSubtitle(),A().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(di=A())==null?void 0:di.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ht();break;case"KeyI":H.actions.internal.togglePictureInPicture(),ht();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.1,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.2,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.3,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.4,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.5,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.6,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.7,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.8,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.9,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(0,Ln.SeekAction.DOUBLE_TAP),ht();break;case"Slash":{Re.shiftKey&&B.features.hotKeyMapModal&&(e.showKeyMap(),ht());break}case"KeyN":Re.shiftKey&&I()&&(H.actions.internal.nextVideoClick(),ht());break;case"KeyP":Re.shiftKey&&N()&&(H.actions.internal.prevVideoClick(),ht());break;case"ShiftLeft":case"ShiftRight":ht();break;case"Tab":case"Escape":case"Enter":break;default:(0,k0.checkNever)(We);break}return ci},Gt=Re=>{let dt=Re.code;if(Re.ctrlKey||Re.altKey||Re.metaKey)return;let It=d()===ta.PlaybackState.PLAYING||d()===ta.PlaybackState.PAUSED,Se=e.isAds&&(p()==="paused"||p()==="playing");if(It||Se)switch(dt){case"ShiftLeft":case"ShiftRight":Fe=0;break;case"Space":Ht({type:"up"});break}},kt=Z("aria_label_video_player"),ti=()=>{var Re;return(Re=n(Ye))==null?void 0:Re.focus()},qt=()=>n(Ye)===Xu(),Ce=Re=>Re.type==="keydown"?Ft(Re,!0):(Re.type==="keyup"&&Gt(Re),!1);var xe=A2();xe.__keyup=Gt,xe.__keydown=[k2,Ft];var te=_(xe);be(te,()=>{var Re;return(Re=e.children)!=null?Re:ue}),g(xe),lt(xe,Re=>O(Ye,Re),()=>n(Ye)),D(()=>je(xe,"aria-label",kt)),b(t,xe);var Te=U({focus:ti,isFocused:qt,handleExternalKeyboardEvent:Ce});return o(),Te}ut(["keyup","keydown"]);var M2=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>'),L2={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.`,double_forward_label:"2x",preview_trac
|
|
|
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 Fa(t,e){W(t,L2);let i=h(e,"style",3,"");var o=M2();D(()=>it(o,i())),b(t,o)}var V2=Ie('<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 bv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=V2();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var Ua=require("@vkontakte/videoplayer-shared/es2015"),R2=t=>{t.stopPropagation()},O2=M("<button><!></button>"),N2={hash:"svelte-7jez3e",code:`button.btn.svelte-7jez3e {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;
|
|
154
154
|
/**
|
|
155
155
|
* \u0412 \u0441\u0430\u0444\u0430\u0440\u0438 \u043F\u0440\u0438 \u0445\u043E\u0432\u0435\u0440\u0435 \u043F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u043F\u0430\u0441\u0438\u0442\u0438, \u0432\u0438\u0434\u0438\u043C\u043E, \u0441\u0430\u0444\u0430\u0440\u0438 \u043A\u0440\u0438\u0432\u043E \u0432\u044B\u043D\u043E\u0441\u0438\u0442 \u044D\u0442\u043E \u0432 \u043E\u0442\u0434\u0435\u043B\u044C\u043D\u044B\u0439 \u0441\u043B\u043E\u0439
|
|
156
156
|
* \u0438\u0437 \u0437\u0430 \u044D\u0442\u043E\u0433\u043E \u043C\u043E\u0436\u0435\u0442 \u043E\u0431\u0440\u0435\u0437\u0430\u0442\u044C\u0441\u044F \u0448\u0438\u043B\u0434\u0438\u043A \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0432\u044B\u043B\u0430\u0437\u0438\u0435\u0442 \u0437\u0430 \u043F\u0440\u0435\u0434\u0435\u043B\u044B \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430.
|
|
@@ -162,27 +162,27 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
|
|
|
162
162
|
/* mobile */
|
|
163
163
|
/* container mobile */button.btn-m.svelte-7jez3e {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;}button.btn-m--play.svelte-7jez3e {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-7jez3e svg {transform:scale(2);}button.btn-m--prev.svelte-7jez3e,
|
|
164
164
|
button.btn-m--next.svelte-7jez3e {position:absolute;width:50px;height:50px;}button.btn-m--prev.svelte-7jez3e {right:calc(100% + 35px);}button.btn-m--next.svelte-7jez3e {left:calc(100% + 35px);}button.btn.svelte-7jez3e:disabled {cursor:default;
|
|
165
|
-
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}button.btn.svelte-7jez3e:not(.btn-full-opacity):disabled {opacity:0.4;}button.btn.svelte-7jez3e:not(:disabled):hover {opacity:0.8;}button.pr-0.svelte-7jez3e {padding-right:0;}button.pl-0.svelte-7jez3e {padding-left:0;}`};function Kt(t,e){F(e,!0),W(t,
|
|
165
|
+
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}button.btn.svelte-7jez3e:not(.btn-full-opacity):disabled {opacity:0.4;}button.btn.svelte-7jez3e:not(:disabled):hover {opacity:0.8;}button.pr-0.svelte-7jez3e {padding-right:0;}button.pl-0.svelte-7jez3e {padding-left:0;}`};function Kt(t,e){F(e,!0),W(t,N2);let i=h(e,"className",3,""),o=h(e,"style",3,""),r=h(e,"disabled",3,void 0),s=h(e,"testId",3,void 0),l=h(e,"ariaHidden",3,void 0),d=h(e,"ariaLabel",3,void 0),a=h(e,"ref",15,void 0),u=h(e,"ariaKeyShortCut",3,void 0),f=h(e,"ariaExpanded",3,void 0),v=h(e,"tabIndex",3,0),p=h(e,"click",3,Ua.noop),x=h(e,"focus",3,Ua.noop),w=h(e,"blur",3,Ua.noop),y=m(()=>p()===Ua.noop?null:A=>{A.stopPropagation(),p()(A)}),C=m(()=>x()===Ua.noop?null:A=>{A.preventDefault(),x()()}),T=m(()=>w()===Ua.noop?null:A=>{A.preventDefault(),w()()});var E=O2();E.__pointerdown=[R2],E.__click=function(...A){var I;(I=n(y))==null||I.apply(this,A)};var R=_(E);be(R,()=>{var A;return(A=e.children)!=null?A:ue}),g(E),lt(E,A=>a(A),()=>a()),D(()=>{var A,I,N,H,B,z,X,ae;re(E,1,`btn ${(A=i())!=null?A:""}`,"svelte-7jez3e"),it(E,o()||null),E.disabled=(I=r())!=null?I:null,je(E,"aria-hidden",(N=l())!=null?N:null),je(E,"aria-label",(H=d())!=null?H:null),je(E,"aria-keyshortcuts",(B=u())!=null?B:null),je(E,"aria-expanded",(z=f())!=null?z:null),je(E,"data-testid",(X=s())!=null?X:null),je(E,"tabindex",v()),je(E,"role",e.role),je(E,"aria-checked",(ae=e.areaChecked)!=null?ae:null)}),St("focus",E,function(...A){var I;(I=n(C))==null||I.apply(this,A)}),St("blur",E,function(...A){var I;(I=n(T))==null||I.apply(this,A)}),b(t,E),U()}ut(["pointerdown","click"]);var D2=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),B2=M('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),H2={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-ijitjb {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-ijitjb {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function $v(t,e){F(e,!0),W(t,H2);let i=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=Z("hotkey_map_modal_close_btn_text");var s=B2(),l=_(s),d=_(l);{var a=p=>{var x=D2(),w=_(x),y=_(w,!0);g(w);var C=P(w,2);{var T=E=>{Kt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(R,A)=>{bv(R,{})},$$slots:{default:!0}})};V(C,E=>{o()&&E(T)})}g(x),D(()=>ve(y,e.title)),b(p,x)};V(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),v=_(f);be(v,()=>{var p;return(p=e.children)!=null?p:ue}),g(f),g(u),g(l),g(s),b(t,s),U()}var F2=new Set(["BR"]),A0=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;F2.has(l)||(r=s.parentElement)==null||r.removeChild(s)}return e.innerHTML};var U2=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>'),z2=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>'),W2=M('<div class="hot-key-map svelte-quklnq"></div>'),K2={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
|
|
166
166
|
.hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
|
|
167
|
-
.hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function yv(t,e){F(e,!1),W(t,Q2);let[i,o]=Be(),r=()=>S(l,"$data",i),s=_e(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Jo(),$v(t,{get title(){return r().title},onClose:a,children:(u,f)=>{var v=q2();Ei(v,5,()=>r().groups,({title:p,items:x})=>p,(p,x)=>{let w=()=>n(x).title,y=()=>n(x).items;var C=K2(),T=_(C),E=_(T,!0);g(T);var R=P(T,2);Ei(R,5,y,({description:A,value:I})=>I,(A,I)=>{let N=()=>n(I).description,H=()=>n(I).value;var B=W2(),z=_(B),X=_(z);Dd(X,()=>A0(N())),g(z);var le=P(z,2),q=_(le,!0);g(le),g(B),D(()=>me(q,H())),b(A,B)}),g(R),g(C),D(()=>me(E,w())),b(p,C)}),g(v),b(u,v)},$$slots:{default:!0}}),U(),o()}var xm=require("@vkontakte/videoplayer-shared/es2015");var Ya=require("@vkontakte/videoplayer-core/es2015");var ZO=require("@vkontakte/videoplayer-shared/es2015");var j2=M('<div class="pillow svelte-1oe0j8n"><!></div>'),G2={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 xv(t,e){W(t,G2);var i=j2(),o=_(i);be(o,()=>{var r;return(r=e.children)!=null?r:ue}),g(i),b(t,i)}var jl=require("@vkontakte/videoplayer-shared/es2015");var Y2=Ie('<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 wv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var Z2=Ie('<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 Sv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var X2=Ie('<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 Cv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=X2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var J2=Ie('<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 sc(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=J2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var ey=Ie('<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 ac(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ey();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var tp=t=>{switch(t){case jl.VideoQuality.Q_720P:return Cv;case jl.VideoQuality.Q_1080P:return sc;case jl.VideoQuality.Q_1440P:return ac;case jl.VideoQuality.Q_2160P:return wv;case jl.VideoQuality.Q_4320P:return Sv}};var ty=Ie('<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 Tv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ty();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var iy=Ie('<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 Ev(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=iy();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var oy=M('<div aria-hidden="true"><!> <!></div>'),ny={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 lc(t,e){F(e,!0),W(t,ny);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=m(()=>tp(o())),s=m(()=>!!n(r)&&[sc,ac].includes(n(r)));var l=Fe(),d=fe(l);{var a=f=>{Tv(f,{})},u=f=>{var v=oy();let p;var x=_(v);{var w=T=>{xv(T,{children:(E,R)=>{var A=Fe(),I=fe(A);Ri(I,()=>n(r),(N,H)=>{H(N,{})}),b(E,A)},$$slots:{default:!0}})};V(x,T=>{n(r)&&T(w)})}var y=P(x,2);let C=m(()=>n(r)?"settings-icon--labeled":"settings-icon");Ev(y,{get"data-testid"(){return n(C)},fill:"var(--btn-color, #fff)"}),g(v),D(T=>p=re(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:n(s)})]),b(f,v)};V(d,f=>{i()?f(a):f(u,!1)})}b(t,l),U()}var ry=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),sy={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Gl(t,e){F(e,!0),W(t,sy);let[i,o]=Be(),r=()=>S(u,"$settingsMenuVisible",i),s=()=>S(p,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=_e(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,x=d.ui.t,w=j(void 0);We(()=>{n(w)&&Lt(()=>{e.ref$.set(n(w))})});let y=x("aria_label_settings");function C(E){return wt(this,null,function*(){let R=ta(E);r()?v():f(R,Lo)})}let T=m(()=>r()?"opened":"");Kt(t,{get className(){return n(T)},testId:"btn-settings",click:C,get ariaLabel(){return y},get ariaExpanded(){return r()},get ref(){return n(w)},set ref(E){O(w,E,!0)},children:(E,R)=>{var A=ry(),I=_(A);lc(I,{get isMobile(){return s()},get currentQuality(){return l()}}),g(A),b(E,A)},$$slots:{default:!0}}),U(),o()}var ay=Ie('<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 Iv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ay();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var ly=Ie('<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 dc(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ly();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function kv(t,e){F(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=_e().ui.t,s=m(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Kt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return ps.KeyC},role:"button",children:(l,d)=>{var a=Fe(),u=fe(a);{var f=p=>{Iv(p,{})},v=p=>{dc(p,{})};V(u,p=>{i()?p(f):p(v,!1)})}b(l,a)},$$slots:{default:!0}}),U()}var dy=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),cy=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),uy={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 cc(t,e){F(e,!0),W(t,uy);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),s=h(e,"ref",15),l=Nt(),d=ae(!1),a=m(()=>en(e.duration)),u=m(()=>en(e.position));var f=cy();let v;var p=_(f),x=_(p,!0);g(p);var w=P(p,2);{var y=C=>{var T=dy(),E=_(T,!0);g(T),D(()=>me(E,n(a))),b(C,T)};V(w,C=>{r()&&C(y)})}g(f),Is(f,()=>Ul(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),lt(f,C=>s(C),()=>s()),D(C=>{v=re(f,1,"time svelte-sz9er7",null,v,C),me(x,n(u))},[()=>({mobile:i()})]),b(t,f),U()}var pc=require("@vkontakte/videoplayer-shared/es2015");var py=Ie('<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>'),fy={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
|
|
167
|
+
.hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function yv(t,e){F(e,!1),W(t,K2);let[i,o]=De(),r=()=>S(l,"$data",i),s=he(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};qo(),$v(t,{get title(){return r().title},onClose:a,children:(u,f)=>{var v=W2();Ii(v,5,()=>r().groups,({title:p,items:x})=>p,(p,x)=>{let w=()=>n(x).title,y=()=>n(x).items;var C=z2(),T=_(C),E=_(T,!0);g(T);var R=P(T,2);Ii(R,5,y,({description:A,value:I})=>I,(A,I)=>{let N=()=>n(I).description,H=()=>n(I).value;var B=U2(),z=_(B),X=_(z);Nd(X,()=>A0(N())),g(z);var ae=P(z,2),Q=_(ae,!0);g(ae),g(B),D(()=>ve(Q,H())),b(A,B)}),g(R),g(C),D(()=>ve(E,w())),b(p,C)}),g(v),b(u,v)},$$slots:{default:!0}}),U(),o()}var xm=require("@vkontakte/videoplayer-shared/es2015");var Ga=require("@vkontakte/videoplayer-core/es2015");var YO=require("@vkontakte/videoplayer-shared/es2015");var q2=M('<div class="pillow svelte-1oe0j8n"><!></div>'),Q2={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 xv(t,e){W(t,Q2);var i=q2(),o=_(i);be(o,()=>{var r;return(r=e.children)!=null?r:ue}),g(i),b(t,i)}var Ql=require("@vkontakte/videoplayer-shared/es2015");var j2=Ie('<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 wv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=j2();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var G2=Ie('<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 Sv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=G2();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var Y2=Ie('<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 Cv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var Z2=Ie('<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 rc(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var X2=Ie('<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 sc(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=X2();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var Ju=t=>{switch(t){case Ql.VideoQuality.Q_720P:return Cv;case Ql.VideoQuality.Q_1080P:return rc;case Ql.VideoQuality.Q_1440P:return sc;case Ql.VideoQuality.Q_2160P:return wv;case Ql.VideoQuality.Q_4320P:return Sv}};var J2=Ie('<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 Tv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=J2();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var ey=Ie('<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 Ev(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=ey();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var ty=M('<div aria-hidden="true"><!> <!></div>'),iy={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 ac(t,e){F(e,!0),W(t,iy);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=m(()=>Ju(o())),s=m(()=>!!n(r)&&[rc,sc].includes(n(r)));var l=ze(),d=fe(l);{var a=f=>{Tv(f,{})},u=f=>{var v=ty();let p;var x=_(v);{var w=T=>{xv(T,{children:(E,R)=>{var A=ze(),I=fe(A);Ri(I,()=>n(r),(N,H)=>{H(N,{})}),b(E,A)},$$slots:{default:!0}})};V(x,T=>{n(r)&&T(w)})}var y=P(x,2);let C=m(()=>n(r)?"settings-icon--labeled":"settings-icon");Ev(y,{get"data-testid"(){return n(C)},fill:"var(--btn-color, #fff)"}),g(v),D(T=>p=re(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:n(s)})]),b(f,v)};V(d,f=>{i()?f(a):f(u,!1)})}b(t,l),U()}var oy=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),ny={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function jl(t,e){F(e,!0),W(t,ny);let[i,o]=De(),r=()=>S(u,"$settingsMenuVisible",i),s=()=>S(p,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=he(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,x=d.ui.t,w=j(void 0);Qe(()=>{n(w)&&Lt(()=>{e.ref$.set(n(w))})});let y=x("aria_label_settings");function C(E){return wt(this,null,function*(){let R=Js(E);r()?v():f(R,$o)})}let T=m(()=>r()?"opened":"");Kt(t,{get className(){return n(T)},testId:"btn-settings",click:C,get ariaLabel(){return y},get ariaExpanded(){return r()},get ref(){return n(w)},set ref(E){O(w,E,!0)},children:(E,R)=>{var A=oy(),I=_(A);ac(I,{get isMobile(){return s()},get currentQuality(){return l()}}),g(A),b(E,A)},$$slots:{default:!0}}),U(),o()}var ry=Ie('<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 Iv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=ry();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var sy=Ie('<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 lc(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=sy();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function kv(t,e){F(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=he().ui.t,s=m(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Kt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return us.KeyC},role:"button",children:(l,d)=>{var a=ze(),u=fe(a);{var f=p=>{Iv(p,{})},v=p=>{lc(p,{})};V(u,p=>{i()?p(f):p(v,!1)})}b(l,a)},$$slots:{default:!0}}),U()}var ay=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),ly=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),dy={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 dc(t,e){F(e,!0),W(t,dy);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),s=h(e,"ref",15),l=Nt(),d=de(!1),a=m(()=>Qo(e.duration)),u=m(()=>Qo(e.position));var f=ly();let v;var p=_(f),x=_(p,!0);g(p);var w=P(p,2);{var y=C=>{var T=ay(),E=_(T,!0);g(T),D(()=>ve(E,n(a))),b(C,T)};V(w,C=>{r()&&C(y)})}g(f),Ts(f,()=>Fl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),lt(f,C=>s(C),()=>s()),D(C=>{v=re(f,1,"time svelte-sz9er7",null,v,C),ve(x,n(u))},[()=>({mobile:i()})]),b(t,f),U()}var uc=require("@vkontakte/videoplayer-shared/es2015");var cy=Ie('<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>'),uy={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),
|
|
168
168
|
.icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
|
|
169
|
-
.icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function na(t,e){W(t,fy);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=m(()=>r(i(),o()));var l=py();D(()=>{var d;Ke(l,"data-value",n(s)),Ke(l,"data-testid",`volume-${(d=n(s))!=null?d:""}-icon`)}),b(t,l)}var Oo=require("@vkontakte/videoplayer-shared/es2015");var ip=require("@vkontakte/videoplayer-shared/es2015");var P0=require("@vkontakte/videoplayer-shared/es2015");var vy=M('<div class="overlay"><!></div>');function Av(t,e){F(e,!0);let[i,o]=Be(),r=()=>S(l,"$overlayContainer$",i),l=_e().ui.overlayContainer$,d=j(void 0),a=p=>{!p||!n(d)||!p.contains(n(d))||p.removeChild(n(d))},u=p=>{!p||!n(d)||p.contains(n(d))||p.appendChild(n(d))};We(()=>{u(r())}),Bt(()=>(u(r()),()=>a(r())));var f=vy(),v=_(f);be(v,()=>{var p;return(p=e.children)!=null?p:ue}),g(f),lt(f,p=>O(d,p),()=>n(d)),b(t,f),U(),o()}var my=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),gy=M("<div><!></div> <!>",1),hy={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 Wa(t,e){F(e,!0),W(t,hy);let[i,o]=Be(),r=()=>S(X,"$overlayContainer$",i),s=()=>S(z,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),a=h(e,"active",15,!1),u=h(e,"translateX",3,0),f=h(e,"translateY",3,0),v=h(e,"isFullWidthWrapper",3,!1),p=h(e,"maxTooltipWidth",3,void 0),x=h(e,"placement",3,"top"),w=h(e,"onVisibilityChange",3,P0.noop),y=5,C=j(void 0),T=j(void 0),E,R=j(0),A=j(0),I=j(0),N=j(0),H=Nt(),B=_e(),z=B.ui.playerSize,X=B.ui.overlayContainer$;We(()=>{Lt(()=>{w()(a())})});let le=B.getLogger().createComponentLog("Tooltip component"),q=()=>{if(!r()||!n(T)||!n(C))return;O(A,y);let ee=r().getBoundingClientRect(),ke=n(C).getBoundingClientRect(),he=ke.width,Ue=n(T).clientWidth,Je=s().width,Ge=(he-Ue)/2,ut=ke.left+u()-ee.left,tt=ut+Ge,Ft=ke.top+f()-ee.top,st=Ue/2-y,Ht=tt<8,Gt=tt+Ue>Je-8;Ht&&(tt=8,st=ut+ke.width/2-2.5*y),Gt&&(tt=Je-8-Ue,st=ke.left-ee.left+ke.width/2-tt-y),O(I,tt,!0),O(N,Ft),O(R,st,!0)},ce=()=>{!r()||!n(T)||!n(C)||O(A,-y)},J=()=>{if(!r()||!n(T)||!n(C))return;O(R,y);let ee=r().getBoundingClientRect(),ke=n(C).getBoundingClientRect(),he=ke.height,Ue=n(T).clientHeight,Je=(he-Ue)/2+Ue,Ge=ke.left+u()-ee.left-n(T).clientWidth,ut=2,tt=Ge-y;tt<8&&(tt=8);let st=ke.top+f()-ee.top+Je,Ht=ut-Je/2,Gt=ut-y;O(I,tt,!0),O(N,st),O(A,Ht),O(R,Gt)},ve=()=>{!r()||!n(T)||!n(C)||O(R,-y)},se=()=>{switch(x()){case"top":q();break;case"bottom":ce();break;case"left":J();break;default:ve()}},de=()=>{try{if(!r()||!n(C))return;se(),a(!0)}catch(ee){le({message:String(ee)})}},Le=()=>{a(!1)},Se=()=>{n(T)&&(E||(E=window.setTimeout(de,H.controls.hideTimeoutTooltips)),a()&&de())},ie=()=>{Le(),window.clearTimeout(E),E=void 0},Ne=(ee,ke,he)=>{let Ue="";switch(x()){case"top":Ue=`transform: translate(${ee}px, ${ke}px);`;break;case"bottom":Ue=`transform: translate(${ee}px, ${ke}px); top: auto; bottom: 100%;`;break;case"left":Ue=`transform: translate(${ee}px, ${ke}px); left: 0; right: auto;`;break;default:Ue=`transform: translate(${ee}px, ${ke}px);`}return Ue+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Ue+=` opacity: ${he?1:0}; visibility: ${he?"visible":"hidden"}`,Ue},pe=(ee,ke)=>{let he="";switch(x()){case"top":he=`transform: translate(${ee}px, ${ke}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":he=`transform: translate(${ee}px, ${ke}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":he=`transform: translate(${ee}px, ${ke}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:he=`transform: translate(${ee}px, ${ke}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return he},k=m(()=>Ne(n(I),n(N),a())),qe=m(()=>pe(n(R),n(A)));Bt(se),pn(()=>window.clearTimeout(E));var Re=gy(),Z=fe(Re);let ne;Z.__mousemove=Se,Z.__mousedown=ie,Z.__mouseup=function(...ee){var ke;(ke=e.disableMouseupTooltipShow?void 0:Se)==null||ke.apply(this,ee)};var He=_(Z);be(He,()=>{var ee;return(ee=e.children)!=null?ee:ue}),g(Z),lt(Z,ee=>O(C,ee),()=>n(C));var Xe=P(Z,2);{var ge=ee=>{Av(ee,{children:(ke,he)=>{var Ue=my(),Je=_(Ue),Ge=_(Je,!0);g(Je);var ut=P(Je,2);g(Ue),lt(Ue,tt=>O(T,tt),()=>n(T)),D(()=>{et(Ue,n(k)),me(Ge,d()),et(ut,n(qe))}),b(ke,Ue)},$$slots:{default:!0}})};V(Xe,ee=>{d()&&!l()&&ee(ge)})}D(ee=>ne=re(Z,1,"tooltip-wrapper svelte-hxlyne",null,ne,ee),[()=>({"full-width":v()})]),Et("mouseenter",Z,Se),Et("mouseleave",Z,ie),b(t,Re),U(),o()}ct(["mousemove","mousedown","mouseup"]);var M0=t=>{t.stopPropagation()},_y=M("<div><!></div>"),by={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 Ro(t,e){F(e,!0),W(t,by);let[i,o]=Be(),r=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=_e(),d=Co(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=h(e,"className",3,""),p=h(e,"disabled",3,!1),x=h(e,"hasTooltip",3,!0),w=h(e,"ref",15,void 0),y=h(e,"width",15,void 0),C=h(e,"isFullWidthTooltip",3,!0),T=h(e,"tooltipContent",3,""),E=h(e,"tooltipActive",3,!1),R=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=h(e,"isAriaHidden",3,!1),N=h(e,"onTooltipVisibilityChange",3,ip.noop),H=h(e,"initialTranslateXPx",3,0),B=h(e,"initialTranslateYPx",19,()=>-18),z=h(e,"mouseEnter",3,ip.noop),X=h(e,"mouseLeave",3,ip.noop),le=m(()=>p()?r()?f("tooltip_disabled_when_graph_on"):A():T());var q=_y();q.__pointerdown=[M0],q.__click=[M0];var ce=_(q);{var J=se=>{Wa(se,{get content(){return n(le)},get translateX(){return H()},get translateY(){return B()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return R()},get onVisibilityChange(){return N()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(de,Le)=>{var Se=Fe(),ie=fe(Se);be(ie,()=>{var Ne;return(Ne=e.children)!=null?Ne:ue}),b(de,Se)},$$slots:{default:!0}})},ve=se=>{var de=Fe(),Le=fe(de);be(Le,()=>{var Se;return(Se=e.children)!=null?Se:ue}),b(se,de)};V(ce,se=>{x()&&n(le)&&!s()?se(J):se(ve,!1)})}g(q),lt(q,se=>w(se),()=>w()),D(()=>{var se;re(q,1,`btn-container ${(se=v())!=null?se:""}`,"svelte-p9r045"),Ke(q,"aria-hidden",I()||null)}),Et("mouseenter",q,function(...se){var de;(de=z())==null||de.apply(this,se)}),Et("mouseleave",q,function(...se){var de;(de=X())==null||de.apply(this,se)}),Mn(q,"clientWidth",y),b(t,q),U(),o()}ct(["pointerdown","click"]);var $y=Ie('<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 uc(t,e){"use strict";var i=$y(),o=_(i),r=P(o);g(i),D(()=>{Ke(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ke(o,"fill-opacity",e.completed?1:.24),Ke(r,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var yy=M("<div><!></div>"),xy={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 Pv(t,e){F(e,!0),W(t,xy);let o=_e().ui.t,r=j(0),s=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Ro(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=yy();let u;var f=_(a);let v=m(()=>!!e.videoEpisode.completed);uc(f,{get completed(){return n(v)}}),g(a),D(p=>{u=re(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),et(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Mn(a,"clientWidth",p=>O(r,p)),b(l,a)},$$slots:{default:!0}}),U()}var wy=M('<div><div class="video-episode-inner svelte-1uc247w"><div class="video-episode-loaded svelte-1uc247w"></div> <div></div></div></div>'),Sy=M('<div class="video-episodes-wrap svelte-1uc247w"></div>'),Cy={hash:"svelte-1uc247w",code:`.video-episodes-wrap.svelte-1uc247w {position:absolute;width:100%;height:100%;}.video-episode.svelte-1uc247w {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-1uc247w:first-child {padding-left:0;}.video-episode.svelte-1uc247w:last-child {padding-right:0;}.video-episode.svelte-1uc247w:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1uc247w,
|
|
169
|
+
.icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function ia(t,e){W(t,uy);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=m(()=>r(i(),o()));var l=cy();D(()=>{var d;je(l,"data-value",n(s)),je(l,"data-testid",`volume-${(d=n(s))!=null?d:""}-icon`)}),b(t,l)}var Vo=require("@vkontakte/videoplayer-shared/es2015");var ep=require("@vkontakte/videoplayer-shared/es2015");var P0=require("@vkontakte/videoplayer-shared/es2015");var py=M('<div class="overlay"><!></div>');function Av(t,e){F(e,!0);let[i,o]=De(),r=()=>S(l,"$overlayContainer$",i),l=he().ui.overlayContainer$,d=j(void 0),a=p=>{!p||!n(d)||!p.contains(n(d))||p.removeChild(n(d))},u=p=>{!p||!n(d)||p.contains(n(d))||p.appendChild(n(d))};Qe(()=>{u(r())}),Bt(()=>(u(r()),()=>a(r())));var f=py(),v=_(f);be(v,()=>{var p;return(p=e.children)!=null?p:ue}),g(f),lt(f,p=>O(d,p),()=>n(d)),b(t,f),U(),o()}var fy=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),vy=M("<div><!></div> <!>",1),my={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 za(t,e){F(e,!0),W(t,my);let[i,o]=De(),r=()=>S(X,"$overlayContainer$",i),s=()=>S(z,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),a=h(e,"active",15,!1),u=h(e,"translateX",3,0),f=h(e,"translateY",3,0),v=h(e,"isFullWidthWrapper",3,!1),p=h(e,"maxTooltipWidth",3,void 0),x=h(e,"placement",3,"top"),w=h(e,"onVisibilityChange",3,P0.noop),y=5,C=j(void 0),T=j(void 0),E,R=j(0),A=j(0),I=j(0),N=j(0),H=Nt(),B=he(),z=B.ui.playerSize,X=B.ui.overlayContainer$;Qe(()=>{Lt(()=>{w()(a())})});let ae=B.getLogger().createComponentLog("Tooltip component"),Q=()=>{if(!r()||!n(T)||!n(C))return;O(A,y);let ie=r().getBoundingClientRect(),ke=n(C).getBoundingClientRect(),we=ke.width,Fe=n(T).clientWidth,Je=s().width,Ye=(we-Fe)/2,qe=ke.left+u()-ie.left,Ze=qe+Ye,Ht=ke.top+f()-ie.top,st=Fe/2-y,Ft=Ze<8,Gt=Ze+Fe>Je-8;Ft&&(Ze=8,st=qe+ke.width/2-2.5*y),Gt&&(Ze=Je-8-Fe,st=ke.left-ie.left+ke.width/2-Ze-y),O(I,Ze,!0),O(N,Ht),O(R,st,!0)},ce=()=>{!r()||!n(T)||!n(C)||O(A,-y)},J=()=>{if(!r()||!n(T)||!n(C))return;O(R,y);let ie=r().getBoundingClientRect(),ke=n(C).getBoundingClientRect(),we=ke.height,Fe=n(T).clientHeight,Je=(we-Fe)/2+Fe,Ye=ke.left+u()-ie.left-n(T).clientWidth,qe=2,Ze=Ye-y;Ze<8&&(Ze=8);let st=ke.top+f()-ie.top+Je,Ft=qe-Je/2,Gt=qe-y;O(I,Ze,!0),O(N,st),O(A,Ft),O(R,Gt)},me=()=>{!r()||!n(T)||!n(C)||O(R,-y)},se=()=>{switch(x()){case"top":Q();break;case"bottom":ce();break;case"left":J();break;default:me()}},le=()=>{try{if(!r()||!n(C))return;se(),a(!0)}catch(ie){ae({message:String(ie)})}},Pe=()=>{a(!1)},ye=()=>{n(T)&&(E||(E=window.setTimeout(le,H.controls.hideTimeoutTooltips)),a()&&le())},ee=()=>{Pe(),window.clearTimeout(E),E=void 0},Be=(ie,ke,we)=>{let Fe="";switch(x()){case"top":Fe=`transform: translate(${ie}px, ${ke}px);`;break;case"bottom":Fe=`transform: translate(${ie}px, ${ke}px); top: auto; bottom: 100%;`;break;case"left":Fe=`transform: translate(${ie}px, ${ke}px); left: 0; right: auto;`;break;default:Fe=`transform: translate(${ie}px, ${ke}px);`}return Fe+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Fe+=` opacity: ${we?1:0}; visibility: ${we?"visible":"hidden"}`,Fe},pe=(ie,ke)=>{let we="";switch(x()){case"top":we=`transform: translate(${ie}px, ${ke}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":we=`transform: translate(${ie}px, ${ke}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":we=`transform: translate(${ie}px, ${ke}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:we=`transform: translate(${ie}px, ${ke}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return we},k=m(()=>Be(n(I),n(N),a())),Ge=m(()=>pe(n(R),n(A)));Bt(se),cn(()=>window.clearTimeout(E));var Me=vy(),Y=fe(Me);let oe;Y.__mousemove=ye,Y.__mousedown=ee,Y.__mouseup=function(...ie){var ke;(ke=e.disableMouseupTooltipShow?void 0:ye)==null||ke.apply(this,ie)};var He=_(Y);be(He,()=>{var ie;return(ie=e.children)!=null?ie:ue}),g(Y),lt(Y,ie=>O(C,ie),()=>n(C));var Xe=P(Y,2);{var ge=ie=>{Av(ie,{children:(ke,we)=>{var Fe=fy(),Je=_(Fe),Ye=_(Je,!0);g(Je);var qe=P(Je,2);g(Fe),lt(Fe,Ze=>O(T,Ze),()=>n(T)),D(()=>{it(Fe,n(k)),ve(Ye,d()),it(qe,n(Ge))}),b(ke,Fe)},$$slots:{default:!0}})};V(Xe,ie=>{d()&&!l()&&ie(ge)})}D(ie=>oe=re(Y,1,"tooltip-wrapper svelte-hxlyne",null,oe,ie),[()=>({"full-width":v()})]),St("mouseenter",Y,ye),St("mouseleave",Y,ee),b(t,Me),U(),o()}ut(["mousemove","mousedown","mouseup"]);var M0=t=>{t.stopPropagation()},gy=M("<div><!></div>"),hy={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 Lo(t,e){F(e,!0),W(t,hy);let[i,o]=De(),r=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=he(),d=So(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=h(e,"className",3,""),p=h(e,"disabled",3,!1),x=h(e,"hasTooltip",3,!0),w=h(e,"ref",15,void 0),y=h(e,"width",15,void 0),C=h(e,"isFullWidthTooltip",3,!0),T=h(e,"tooltipContent",3,""),E=h(e,"tooltipActive",3,!1),R=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=h(e,"isAriaHidden",3,!1),N=h(e,"onTooltipVisibilityChange",3,ep.noop),H=h(e,"initialTranslateXPx",3,0),B=h(e,"initialTranslateYPx",19,()=>-18),z=h(e,"mouseEnter",3,ep.noop),X=h(e,"mouseLeave",3,ep.noop),ae=m(()=>p()?r()?f("tooltip_disabled_when_graph_on"):A():T());var Q=gy();Q.__pointerdown=[M0],Q.__click=[M0];var ce=_(Q);{var J=se=>{za(se,{get content(){return n(ae)},get translateX(){return H()},get translateY(){return B()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return R()},get onVisibilityChange(){return N()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(le,Pe)=>{var ye=ze(),ee=fe(ye);be(ee,()=>{var Be;return(Be=e.children)!=null?Be:ue}),b(le,ye)},$$slots:{default:!0}})},me=se=>{var le=ze(),Pe=fe(le);be(Pe,()=>{var ye;return(ye=e.children)!=null?ye:ue}),b(se,le)};V(ce,se=>{x()&&n(ae)&&!s()?se(J):se(me,!1)})}g(Q),lt(Q,se=>w(se),()=>w()),D(()=>{var se;re(Q,1,`btn-container ${(se=v())!=null?se:""}`,"svelte-p9r045"),je(Q,"aria-hidden",I()||null)}),St("mouseenter",Q,function(...se){var le;(le=z())==null||le.apply(this,se)}),St("mouseleave",Q,function(...se){var le;(le=X())==null||le.apply(this,se)}),Mn(Q,"clientWidth",y),b(t,Q),U(),o()}ut(["pointerdown","click"]);var _y=Ie('<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 cc(t,e){"use strict";var i=_y(),o=_(i),r=P(o);g(i),D(()=>{je(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),je(o,"fill-opacity",e.completed?1:.24),je(r,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var by=M("<div><!></div>"),$y={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function Pv(t,e){F(e,!0),W(t,$y);let o=he().ui.t,r=j(0),s=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Lo(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=by();let u;var f=_(a);let v=m(()=>!!e.videoEpisode.completed);cc(f,{get completed(){return n(v)}}),g(a),D(p=>{u=re(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),it(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Mn(a,"clientWidth",p=>O(r,p)),b(l,a)},$$slots:{default:!0}}),U()}var yy=M('<div><div class="video-episode-inner svelte-1uc247w"><div class="video-episode-loaded svelte-1uc247w"></div> <div></div></div></div>'),xy=M('<div class="video-episodes-wrap svelte-1uc247w"></div>'),wy={hash:"svelte-1uc247w",code:`.video-episodes-wrap.svelte-1uc247w {position:absolute;width:100%;height:100%;}.video-episode.svelte-1uc247w {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-1uc247w:first-child {padding-left:0;}.video-episode.svelte-1uc247w:last-child {padding-right:0;}.video-episode.svelte-1uc247w:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1uc247w,
|
|
170
170
|
.video-episode-loaded.svelte-1uc247w,
|
|
171
171
|
.video-episode-filled.svelte-1uc247w {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1uc247w {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode.svelte-1uc247w:first-child .video-episode-inner:where(.svelte-1uc247w),
|
|
172
|
-
.video-episode.svelte-1uc247w:last-child .video-episode-inner:where(.svelte-1uc247w) {width:calc(100% - var(--slider-video-episode-gap));}.video-episode-loaded.svelte-1uc247w {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-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Mv(t,e){W(t,
|
|
172
|
+
.video-episode.svelte-1uc247w:last-child .video-episode-inner:where(.svelte-1uc247w) {width:calc(100% - var(--slider-video-episode-gap));}.video-episode-loaded.svelte-1uc247w {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-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Mv(t,e){W(t,wy);let i=h(e,"videoEpisodes",19,()=>[]);var o=xy();Ii(o,21,i,r=>r.from,(r,s)=>{var l=yy();let d;var a=_(l),u=_(a),f=P(u,2);let v;g(a),g(l),D((p,x)=>{d=re(l,1,"video-episode svelte-1uc247w",null,d,p),it(l,`left: ${n(s).from}%; width: ${n(s).width}%`),it(u,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),v=re(f,1,"video-episode-filled svelte-1uc247w",null,v,x),it(f,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),g(o),b(t,o)}function Sy(t,e,i,o,r,s,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;O(r,!0);let d=s(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function Cy(t,e,i,o,r,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);r()(a,u,n(s).width,t),n(l)&&d()(a)}function Ty(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;O(i,!1);let s=o(t.clientX,t.clientY);r()(s,t)}function Ey(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function Iy(t,e,i,o,r,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(r,!1),s()(l)}var ky=M("<div></div>"),Ay=M('<div class="bars svelte-12bsb23"><div class="loaded svelte-12bsb23"></div> <div></div></div>'),Py=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),My={hash:"svelte-12bsb23",code:`.interactive-icons.svelte-12bsb23 {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-12bsb23 {top:-10px;}.slider.svelte-12bsb23 {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-12bsb23 {cursor:default;}.slider.svelte-12bsb23:before {
|
|
173
173
|
/* 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-12bsb23 {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-12bsb23 {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-12bsb23 {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-12bsb23,
|
|
174
174
|
.slider.square.svelte-12bsb23 > .bars:where(.svelte-12bsb23),
|
|
175
175
|
.slider.square.svelte-12bsb23 .loaded:where(.svelte-12bsb23),
|
|
176
176
|
.slider.square.svelte-12bsb23 .filled:where(.svelte-12bsb23) {border-radius:unset;}.filled.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-12bsb23 {background-color:var(--slider-filled-ads);}.handleWrap.svelte-12bsb23 {position:absolute;left:-100%;width:100%;}.handle.svelte-12bsb23 {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;will-change:opacity, transform;}.handle.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-handle-active-live-bg);}.handle-always-visible.svelte-12bsb23 .handle:where(.svelte-12bsb23),
|
|
177
177
|
.slider.svelte-12bsb23:hover .handle:where(.svelte-12bsb23),
|
|
178
|
-
.slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {transform:scale(1.3);}.slider-vertical.svelte-12bsb23 {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-12bsb23 {cursor:default;opacity:0.4;}`};function Ka(t,e){F(e,!0),W(t,Vy);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),s=h(e,"isHidden",3,!1),l=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),a=h(e,"isMobile",3,!1),u=h(e,"squareBorders",3,!1),f=h(e,"videoEpisodes",19,()=>[]),v=h(e,"withWheelHandler",3,!1),p=h(e,"isInteractive",3,!1),x=h(e,"disabled",3,!1),w=h(e,"hideHandel",3,!1),y=h(e,"onPointerDown",3,Oo.noop),C=h(e,"onHandleMove",3,Oo.noop),T=h(e,"onPointerUp",3,Oo.noop),E=h(e,"onPointerEnter",3,Oo.noop),R=h(e,"onPointerMove",3,Oo.noop),A=h(e,"onPointerLeave",3,Oo.noop),I=h(e,"onMouseEnter",3,Oo.noop),N=h(e,"onMouseLeave",3,Oo.noop),H=h(e,"onWheelUp",3,Oo.noop),B=h(e,"onWheelDown",3,Oo.noop),z=h(e,"onWheelLeft",3,Oo.noop),X=h(e,"onWheelRight",3,Oo.noop),le=h(e,"onDisabledClick",3,Oo.noop),q=h(e,"loadedProgress",3,0),ce=h(e,"filledProgress",3,0),J=h(e,"handleProgress",3,0),ve=h(e,"ariaLabel",3,""),se=h(e,"ariaValueMin",3,void 0),de=h(e,"ariaValueMax",3,void 0),Le=h(e,"ariaValueNow",3,void 0),Se=h(e,"ariaValueText",3,""),ie=h(e,"onContextMenu",3,Oo.noop),Ne=h(e,"handleAlwaysVisible",3,!1),pe=Nt(),k=j(void 0),qe=j(!1),Re=m(()=>{var Te;return(Te=de())!=null?Te:0}),Z=m(()=>{var Te;return(0,Oo.isNonNullable)(f())&&((Te=f()[f().length-1])==null?void 0:Te.time)<n(Re)}),ne=m(()=>(0,Oo.isNonNullable)(f())&&f().length&&n(Z)&&n(Re)?Je(q()*100,ce()*100):[]);function He(Te){if(Te.preventDefault(),i()&&O(k,i().getBoundingClientRect(),!0),x())return;let Me=he(Te.clientX,Te.clientY),At=Ue(Te.clientX);E()(Me,At,n(k).width)}function Xe(Te){Te.preventDefault(),!x()&&A()()}function ge(){I()()}function ee(){N()()}function ke(Te){x()||v()&&(Te.preventDefault(),Te.deltaY<0?H()():Te.deltaY>0?B()():Te.deltaX>0?X()():z()())}function he(Te,Me){return l()?Math.max(0,Math.min(1,(n(k).height-(Me-n(k).top))/n(k).height)):Math.min(Math.max(Te-n(k).x,0),n(k).width)/n(k).width}function Ue(Te){return Math.min(Math.max(Te-n(k).x,0),n(k).width)}function Je(Te,Me){let At=pe.features.episodesClustering&&!p()?pe.episodeMinWidthPc:0,De=[],pt=f()[0].time/n(Re)*100,xt=0,xe=0;for(let dt=1;dt<f().length;dt++)xt=f()[dt].time/n(Re)*100,xt-pt>At&&(De.push({from:pt,width:Math.max(0,xt-pt),loadedWidth:Math.max(0,Math.min(xt,Te)-pt),filledWidth:Math.max(0,Math.min(xt,Me)-pt),interactive:f()[dt-1].interactive,completed:f()[dt-1].completed}),pt=f()[dt].time/n(Re)*100,xe++);let nt={from:pt,width:Math.max(0,100-pt),loadedWidth:Math.max(0,Math.min(Te,100)-pt),filledWidth:Math.max(0,Math.min(Me,100)-pt),interactive:f()[xe].interactive,completed:f()[xe].completed};100-pt<At?(xe-=1,De[xe].width+=100-pt,De[xe].loadedWidth+=Math.max(0,Math.min(Te,100)-pt),De[xe].filledWidth+=Math.max(0,Math.min(Me,100)-pt)):De[xe]=nt;let Qe=f()[0].time;if(Qe!==0){let dt=Qe/n(Re)*100;De.unshift({from:0,width:dt,loadedWidth:Math.min(dt,Te),filledWidth:Math.min(dt,Me)})}return De}function Ge(Te){return Math.max(0,Math.min(100,Te*100))}var ut=Ly(),tt=fe(ut);{var Ft=Te=>{var Me=Py();let At;Ei(Me,21,()=>n(ne),De=>De.from,(De,pt)=>{var xt=Fe(),xe=fe(xt);{var nt=Qe=>{Pv(Qe,{get videoEpisode(){return n(pt)},get disabled(){return x()}})};V(xe,Qe=>{n(pt).interactive&&Qe(nt)})}b(De,xt)}),g(Me),D(De=>At=re(Me,1,"interactive-icons svelte-12bsb23",null,At,De),[()=>({mobile:a(),hidden:a()&&!n(qe)})]),b(Te,Me)};V(tt,Te=>{p()&&Te(Ft)})}var st=P(tt,2);let Ht;st.__pointerdown=[Ty,i,k,x,qe,he,y],st.__pointermove=[Ey,x,he,Ue,R,k,qe,C],st.__pointerup=[Iy,x,qe,he,T],st.__click=[ky,x,le,he],st.__contextmenu=[Ay,he,x,le,qe,ie];var Gt=_(st);{var kt=Te=>{Mv(Te,{get videoEpisodes(){return n(ne)},get disabled(){return x()},get isMobile(){return a()}})},oi=Te=>{var Me=My(),At=_(Me),De=P(At,2);let pt;g(Me),D((xt,xe,nt)=>{et(At,xt),pt=re(De,1,"filled svelte-12bsb23",null,pt,xe),et(De,nt)},[()=>`transform: translateX(${Ge(q())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Ge(ce())}%);`]),b(Te,Me)};V(Gt,Te=>{n(ne).length?Te(kt):Te(oi,!1)})}var qt=P(Gt,2);let Ce;var we=_(qt);let te;g(qt),g(st),lt(st,Te=>i(Te),()=>i()),D((Te,Me,At,De)=>{var pt,xt;Ht=re(st,1,`slider ${(pt=o())!=null?pt:""}`,"svelte-12bsb23",Ht,Te),Ke(st,"aria-label",ve()),Ke(st,"aria-valuemin",se()),Ke(st,"aria-valuemax",de()),Ke(st,"aria-valuenow",Le()),Ke(st,"aria-valuetext",Se()),Ke(st,"data-testid",(xt=r())!=null?xt:null),Ce=re(qt,1,"handleWrap svelte-12bsb23",null,Ce,Me),et(qt,At),te=re(we,1,"handle svelte-12bsb23",null,te,De)},[()=>({disabled:x(),"slider-dragging":n(qe),hidden:s(),"handle-always-visible":Ne(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${Ge(J())}%);`,()=>({"active-live":d()})]),Et("pointerenter",st,He),Et("pointerleave",st,Xe),Et("mouseenter",st,ge),Et("mouseleave",st,ee),Et("wheel",st,ke),b(t,ut),U()}ct(["pointerdown","pointermove","pointerup","click","contextmenu"]);var so=(t,e)=>Ma[t]>=Ma[e],L0=(t,e)=>Ma[t]<Ma[e],Ms=(t,e)=>Ma[t]<=Ma[e],V0=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Oy=M("<div><!></div>"),Ny=M("<div><!> <!></div>"),Dy={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 Lv(t,e){var ee,ke;F(e,!0),W(t,Dy);let[i,o]=Be(),r=()=>S(E,"$isAudioAvailable$",i),s=()=>S(v,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(y,"$currentGridType$",i),a=_e(),u=Nt(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:x,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,C=(ee=a.callbacks)==null?void 0:ee.onAudioDoesNotExistHint,T=(ke=a.callbacks)==null?void 0:ke.onAudioDisabledHint,E=a.state.isAudioAvailable$,R=a.state.isAudioDisabled,A=a.ui.t,I=j(!1),N,H=m(()=>e.isAds||r()),B=m(()=>!n(H)||s()||l()===0),z=m(()=>Ms(d(),"s")),X=m(()=>n(z)?"":n(B)?!r()||R?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),le=m(()=>n(B)?A("tooltip_volume"):A("tooltip_volume_muted")),q=m(()=>n(B)?0:l()),ce=!1,J=m(()=>e.isAds?!1:R?!T:r()?!1:!C);function ve(he){x(),p(he)}function se(){Xu(a,l(),u.controls.volumeStepWheel)}function de(){Ju(a,l(),u.controls.volumeStepWheel)}function Le(he){p(he)}function Se(he){p(he),w()}function ie(){ce=!0}function Ne(){ce=!1,qe()}function pe(){clearTimeout(N),O(I,!0)}function k(){qe()}function qe(){N=window.setTimeout(()=>{ce||O(I,!1)},u.controls.volumeBarTimeout)}function Re(he){he.preventDefault(),he.deltaY<0?se():he.deltaY>0&&de()}var Z=Ny();let ne;var He=_(Z);Wa(He,{get content(){return n(X)},translateY:-18,children:(he,Ue)=>{let Je=m(()=>n(z)?"btn-volume-vertical":"btn-volume-horizontal");Kt(he,{className:"btn-full-opacity",get disabled(){return n(J)},get testId(){return n(Je)},get ariaLabel(){return n(le)},get click(){return e.click},get ariaKeyShortCut(){return ps.KeyM},role:"button",children:(Ge,ut)=>{na(Ge,{get volume(){return l()},get muted(){return n(B)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Xe=P(He,2);{var ge=he=>{var Ue=Oy();let Je;var Ge=_(Ue);let ut=m(()=>n(z)?"volumeBar-slider-vertical":""),tt=m(()=>n(z)&&!n(I)),Ft=m(()=>n(z)?ie:pc.noop),st=m(()=>n(z)?Ne:pc.noop),Ht=m(()=>Math.round(n(q)*100)),Gt=m(()=>`${Math.round(n(q)*100)}%`),kt=m(()=>n(z)?"volume-slider-vertical":"volume-slider");Ka(Ge,{get className(){return n(ut)},get isHidden(){return n(tt)},get isVertical(){return n(z)},withWheelHandler:!0,onWheelUp:se,onWheelDown:de,onPointerDown:ve,onHandleMove:Le,onPointerUp:Se,get onPointerEnter(){return n(Ft)},get onPointerLeave(){return n(st)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Ht)},get ariaValueText(){return n(Gt)},get filledProgress(){return n(q)},get handleProgress(){return n(q)},get testId(){return n(kt)}}),g(Ue),D(oi=>Je=re(Ue,1,"volumeBar svelte-1auih1j",null,Je,oi),[()=>({"volumeBar-vertical":n(z)})]),b(he,Ue)};V(Xe,he=>{n(H)&&he(ge)})}g(Z),D(he=>ne=re(Z,1,"volumeBar-container svelte-1auih1j",null,ne,he),[()=>({vertical:n(z)})]),Et("mouseenter",Z,function(...he){var Ue;(Ue=n(z)?pe:pc.noop)==null||Ue.apply(this,he)}),Et("mouseleave",Z,function(...he){var Ue;(Ue=n(z)?k:pc.noop)==null||Ue.apply(this,he)}),Et("wheel",Z,Re),b(t,Z),U(),o()}var R0=require("@vkontakte/videoplayer-shared/es2015");var By=Ie('<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 Vv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=By();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var Hy={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
179
|
-
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Rv(t,e){W(t,
|
|
178
|
+
.slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {transform:scale(1.3);}.slider-vertical.svelte-12bsb23 {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-12bsb23 {cursor:default;opacity:0.4;}`};function Wa(t,e){F(e,!0),W(t,My);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),s=h(e,"isHidden",3,!1),l=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),a=h(e,"isMobile",3,!1),u=h(e,"squareBorders",3,!1),f=h(e,"videoEpisodes",19,()=>[]),v=h(e,"withWheelHandler",3,!1),p=h(e,"isInteractive",3,!1),x=h(e,"disabled",3,!1),w=h(e,"hideHandel",3,!1),y=h(e,"onPointerDown",3,Vo.noop),C=h(e,"onHandleMove",3,Vo.noop),T=h(e,"onPointerUp",3,Vo.noop),E=h(e,"onPointerEnter",3,Vo.noop),R=h(e,"onPointerMove",3,Vo.noop),A=h(e,"onPointerLeave",3,Vo.noop),I=h(e,"onMouseEnter",3,Vo.noop),N=h(e,"onMouseLeave",3,Vo.noop),H=h(e,"onWheelUp",3,Vo.noop),B=h(e,"onWheelDown",3,Vo.noop),z=h(e,"onWheelLeft",3,Vo.noop),X=h(e,"onWheelRight",3,Vo.noop),ae=h(e,"onDisabledClick",3,Vo.noop),Q=h(e,"loadedProgress",3,0),ce=h(e,"filledProgress",3,0),J=h(e,"handleProgress",3,0),me=h(e,"ariaLabel",3,""),se=h(e,"ariaValueMin",3,void 0),le=h(e,"ariaValueMax",3,void 0),Pe=h(e,"ariaValueNow",3,void 0),ye=h(e,"ariaValueText",3,""),ee=h(e,"onContextMenu",3,Vo.noop),Be=h(e,"handleAlwaysVisible",3,!1),pe=Nt(),k=j(void 0),Ge=j(!1),Me=m(()=>{var Te;return(Te=le())!=null?Te:0}),Y=m(()=>{var Te;return(0,Vo.isNonNullable)(f())&&((Te=f()[f().length-1])==null?void 0:Te.time)<n(Me)}),oe=m(()=>(0,Vo.isNonNullable)(f())&&f().length&&n(Y)&&n(Me)?Je(Q()*100,ce()*100):[]);function He(Te){if(Te.preventDefault(),i()&&O(k,i().getBoundingClientRect(),!0),x())return;let Ve=we(Te.clientX,Te.clientY),Vt=Fe(Te.clientX);E()(Ve,Vt,n(k).width)}function Xe(Te){Te.preventDefault(),!x()&&A()()}function ge(){I()()}function ie(){N()()}function ke(Te){x()||v()&&(Te.preventDefault(),Te.deltaY<0?H()():Te.deltaY>0?B()():Te.deltaX>0?X()():z()())}function we(Te,Ve){return l()?Math.max(0,Math.min(1,(n(k).height-(Ve-n(k).top))/n(k).height)):Math.min(Math.max(Te-n(k).x,0),n(k).width)/n(k).width}function Fe(Te){return Math.min(Math.max(Te-n(k).x,0),n(k).width)}function Je(Te,Ve){let Vt=pe.features.episodesClustering&&!p()?pe.episodeMinWidthPc:0,Re=[],dt=f()[0].time/n(Me)*100,It=0,Se=0;for(let pt=1;pt<f().length;pt++)It=f()[pt].time/n(Me)*100,It-dt>Vt&&(Re.push({from:dt,width:Math.max(0,It-dt),loadedWidth:Math.max(0,Math.min(It,Te)-dt),filledWidth:Math.max(0,Math.min(It,Ve)-dt),interactive:f()[pt-1].interactive,completed:f()[pt-1].completed}),dt=f()[pt].time/n(Me)*100,Se++);let at={from:dt,width:Math.max(0,100-dt),loadedWidth:Math.max(0,Math.min(Te,100)-dt),filledWidth:Math.max(0,Math.min(Ve,100)-dt),interactive:f()[Se].interactive,completed:f()[Se].completed};100-dt<Vt?(Se-=1,Re[Se].width+=100-dt,Re[Se].loadedWidth+=Math.max(0,Math.min(Te,100)-dt),Re[Se].filledWidth+=Math.max(0,Math.min(Ve,100)-dt)):Re[Se]=at;let We=f()[0].time;if(We!==0){let pt=We/n(Me)*100;Re.unshift({from:0,width:pt,loadedWidth:Math.min(pt,Te),filledWidth:Math.min(pt,Ve)})}return Re}function Ye(Te){return Math.max(0,Math.min(100,Te*100))}var qe=Py(),Ze=fe(qe);{var Ht=Te=>{var Ve=ky();let Vt;Ii(Ve,21,()=>n(oe),Re=>Re.from,(Re,dt)=>{var It=ze(),Se=fe(It);{var at=We=>{Pv(We,{get videoEpisode(){return n(dt)},get disabled(){return x()}})};V(Se,We=>{n(dt).interactive&&We(at)})}b(Re,It)}),g(Ve),D(Re=>Vt=re(Ve,1,"interactive-icons svelte-12bsb23",null,Vt,Re),[()=>({mobile:a(),hidden:a()&&!n(Ge)})]),b(Te,Ve)};V(Ze,Te=>{p()&&Te(Ht)})}var st=P(Ze,2);let Ft;st.__pointerdown=[Sy,i,k,x,Ge,we,y],st.__pointermove=[Cy,x,we,Fe,R,k,Ge,C],st.__pointerup=[Ty,x,Ge,we,T],st.__click=[Ey,x,ae,we],st.__contextmenu=[Iy,we,x,ae,Ge,ee];var Gt=_(st);{var kt=Te=>{Mv(Te,{get videoEpisodes(){return n(oe)},get disabled(){return x()},get isMobile(){return a()}})},ti=Te=>{var Ve=Ay(),Vt=_(Ve),Re=P(Vt,2);let dt;g(Ve),D((It,Se,at)=>{it(Vt,It),dt=re(Re,1,"filled svelte-12bsb23",null,dt,Se),it(Re,at)},[()=>`transform: translateX(${Ye(Q())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Ye(ce())}%);`]),b(Te,Ve)};V(Gt,Te=>{n(oe).length?Te(kt):Te(ti,!1)})}var qt=P(Gt,2);let Ce;var xe=_(qt);let te;g(qt),g(st),lt(st,Te=>i(Te),()=>i()),D((Te,Ve,Vt,Re)=>{var dt,It;Ft=re(st,1,`slider ${(dt=o())!=null?dt:""}`,"svelte-12bsb23",Ft,Te),je(st,"aria-label",me()),je(st,"aria-valuemin",se()),je(st,"aria-valuemax",le()),je(st,"aria-valuenow",Pe()),je(st,"aria-valuetext",ye()),je(st,"data-testid",(It=r())!=null?It:null),Ce=re(qt,1,"handleWrap svelte-12bsb23",null,Ce,Ve),it(qt,Vt),te=re(xe,1,"handle svelte-12bsb23",null,te,Re)},[()=>({disabled:x(),"slider-dragging":n(Ge),hidden:s(),"handle-always-visible":Be(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${Ye(J())}%);`,()=>({"active-live":d()})]),St("pointerenter",st,He),St("pointerleave",st,Xe),St("mouseenter",st,ge),St("mouseleave",st,ie),St("wheel",st,ke),b(t,qe),U()}ut(["pointerdown","pointermove","pointerup","click","contextmenu"]);var ro=(t,e)=>Pa[t]>=Pa[e],L0=(t,e)=>Pa[t]<Pa[e],As=(t,e)=>Pa[t]<=Pa[e],V0=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Vy=M("<div><!></div>"),Ry=M("<div><!> <!></div>"),Oy={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 Lv(t,e){var ie,ke;F(e,!0),W(t,Oy);let[i,o]=De(),r=()=>S(E,"$isAudioAvailable$",i),s=()=>S(v,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(y,"$currentGridType$",i),a=he(),u=Nt(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:x,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,C=(ie=a.callbacks)==null?void 0:ie.onAudioDoesNotExistHint,T=(ke=a.callbacks)==null?void 0:ke.onAudioDisabledHint,E=a.state.isAudioAvailable$,R=a.state.isAudioDisabled,A=a.ui.t,I=j(!1),N,H=m(()=>e.isAds||r()),B=m(()=>!n(H)||s()||l()===0),z=m(()=>As(d(),"s")),X=m(()=>n(z)?"":n(B)?!r()||R?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),ae=m(()=>n(B)?A("tooltip_volume"):A("tooltip_volume_muted")),Q=m(()=>n(B)?0:l()),ce=!1,J=m(()=>e.isAds?!1:R?!T:r()?!1:!C);function me(we){x(),p(we)}function se(){Yu(a,l(),u.controls.volumeStepWheel)}function le(){Zu(a,l(),u.controls.volumeStepWheel)}function Pe(we){p(we)}function ye(we){p(we),w()}function ee(){ce=!0}function Be(){ce=!1,Ge()}function pe(){clearTimeout(N),O(I,!0)}function k(){Ge()}function Ge(){N=window.setTimeout(()=>{ce||O(I,!1)},u.controls.volumeBarTimeout)}function Me(we){we.preventDefault(),we.deltaY<0?se():we.deltaY>0&&le()}var Y=Ry();let oe;var He=_(Y);za(He,{get content(){return n(X)},translateY:-18,children:(we,Fe)=>{let Je=m(()=>n(z)?"btn-volume-vertical":"btn-volume-horizontal");Kt(we,{className:"btn-full-opacity",get disabled(){return n(J)},get testId(){return n(Je)},get ariaLabel(){return n(ae)},get click(){return e.click},get ariaKeyShortCut(){return us.KeyM},role:"button",children:(Ye,qe)=>{ia(Ye,{get volume(){return l()},get muted(){return n(B)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Xe=P(He,2);{var ge=we=>{var Fe=Vy();let Je;var Ye=_(Fe);let qe=m(()=>n(z)?"volumeBar-slider-vertical":""),Ze=m(()=>n(z)&&!n(I)),Ht=m(()=>n(z)?ee:uc.noop),st=m(()=>n(z)?Be:uc.noop),Ft=m(()=>Math.round(n(Q)*100)),Gt=m(()=>`${Math.round(n(Q)*100)}%`),kt=m(()=>n(z)?"volume-slider-vertical":"volume-slider");Wa(Ye,{get className(){return n(qe)},get isHidden(){return n(Ze)},get isVertical(){return n(z)},withWheelHandler:!0,onWheelUp:se,onWheelDown:le,onPointerDown:me,onHandleMove:Pe,onPointerUp:ye,get onPointerEnter(){return n(Ht)},get onPointerLeave(){return n(st)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Ft)},get ariaValueText(){return n(Gt)},get filledProgress(){return n(Q)},get handleProgress(){return n(Q)},get testId(){return n(kt)}}),g(Fe),D(ti=>Je=re(Fe,1,"volumeBar svelte-1auih1j",null,Je,ti),[()=>({"volumeBar-vertical":n(z)})]),b(we,Fe)};V(Xe,we=>{n(H)&&we(ge)})}g(Y),D(we=>oe=re(Y,1,"volumeBar-container svelte-1auih1j",null,oe,we),[()=>({vertical:n(z)})]),St("mouseenter",Y,function(...we){var Fe;(Fe=n(z)?pe:uc.noop)==null||Fe.apply(this,we)}),St("mouseleave",Y,function(...we){var Fe;(Fe=n(z)?k:uc.noop)==null||Fe.apply(this,we)}),St("wheel",Y,Me),b(t,Y),U(),o()}var R0=require("@vkontakte/videoplayer-shared/es2015");var Ny=Ie('<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 Vv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var Dy={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
179
|
+
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Rv(t,e){W(t,Dy);let i=h(e,"isFullscreen",8,!1),o=En(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Vv(t,{get"data-testid"(){return n(o)},fill:"var(--btn-color, #fff)"})}function pc(t,e){F(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,R0.noop),r=he(),s=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=m(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Kt(t,{testId:"btn-fullscreen",get ariaLabel(){return n(d)},click:u=>{let f=Js(u);s.set(f),o()()},get ariaKeyShortCut(){return us.KeyF},role:"button",children:(u,f)=>{Rv(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var By=Ie('<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 Ov(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=By();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var Hy=Ie('<svg><!><svg data-logo="vk_video"><path 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"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.261v15.474c0 .435.114.778.335.988l.002.002 9.178-8.728L.332.282C.075.532 0 .92 0 1.26"></path><path d="M.332.282.384.235c.34-.3.881-.326 1.482 0L12.623 6.04 10.018 8.52zm10.286 8.747 2.884 2.452-.532.288-.345.184-2.572-2.446-9.716 8.218c.336.34.9.378 1.529.044l11.104-6 .534-.286-.002-.002 2.725-1.472c1.03-.56 1.03-1.47 0-2.022l-2.77-1.495-.833-.452-.001.001.834.45.098.054z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.623 16.365a11.4 11.4 0 0 1-1.15 2.03q-.906 1.27-1.48 1.758-.885.8-1.901.823-.732.001-1.757-.412-1.029-.412-1.892-.411-.906 0-1.945.411-1.04.413-1.68.434-.975.041-1.946-.845-.62-.53-1.548-1.82-.995-1.376-1.637-3.195Q.001 13.173 0 11.33 0 9.218.93 7.69a5.4 5.4 0 0 1 1.946-1.934 5.3 5.3 0 0 1 2.63-.73q.774.002 2.036.465 1.26.466 1.614.467.267 0 1.79-.55 1.44-.508 2.433-.424 2.699.214 4.047 2.094-2.412 1.437-2.387 4.019.022 2.01 1.481 3.34.66.615 1.48.954a16 16 0 0 1-.377.973M13.499.42q0 1.576-1.168 2.939c-.94 1.079-2.075 1.702-3.307 1.604a3 3 0 0 1-.025-.398c0-1.008.446-2.087 1.24-2.97q.595-.67 1.51-1.114.915-.438 1.728-.481.023.21.022.42"></path></svg><path 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 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 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></svg>');function Nv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Hy();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(6),g(o),b(t,o)}var Fy={hash:"svelte-e5e2xr",code:`svg [data-logo],
|
|
180
180
|
svg[data-testid="vk-video-logo-icon--short"] ._ru,
|
|
181
181
|
svg[data-testid="vk-video-logo-icon--short"] ._en,
|
|
182
182
|
svg[data-testid="vk-video-logo-icon"] ._en,
|
|
183
183
|
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}svg[data-logo="vk_video"] [data-logo="vk_video"],
|
|
184
184
|
svg[data-logo="play_market"] [data-logo="play_market"],
|
|
185
|
-
svg[data-logo="app_store"] [data-logo="app_store"] {visibility:visible;opacity:1;}`};function Dv(t,e){F(e,!0),W(t,zy);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",l=24,d=m(()=>!o()&&!i()?91:i()?l:95),a=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),u=m(()=>`0 0 ${n(d)} 24`);Nv(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(a)},get"data-logo"(){return r()}}),U()}function vc(t,e){F(e,!0);let[i,o]=Be(),r=()=>S(x,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S(y,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),a=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),f=Nt(),v=_e(),p=v.ui.currentGridType$,x=v.ui.isMobile,w=v.ui.t,y=v.isCyrillicRelatedInterface$,C=m(()=>f.logoType!=="vk"),T=m(()=>n(C)?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),E=m(()=>(r()&&Ms(s(),"m")||Ms(s(),"l"))&&n(C)),R=()=>{var N,H;e.click(),(N=v.callbacks)!=null&&N.onLogoClicked?(H=v.callbacks)==null||H.onLogoClicked():u()&&window.open(u(),"_blank")},A=m(()=>!a()),I=m(()=>n(C)?"btn-vk-video-logo":"btn-vk-logo");Kt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:R,get testId(){return n(I)},get ariaLabel(){return n(T)},get ref(){return d()},set ref(N){d(N)},children:(N,H)=>{var B=Fe(),z=fe(B);{var X=q=>{Dv(q,{get logo(){return f.logoType},get short(){return n(E)},get isCyrillic(){return l()}})},le=q=>{Ov(q,{})};V(z,q=>{n(C)?q(X):q(le,!1)})}b(N,B)},$$slots:{default:!0}}),U(),o()}var N0=require("@vkontakte/videoplayer-core/es2015");var Bv=require("@vkontakte/videoplayer-core/es2015"),Wy=Ie('<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>'),Ky=Ie('<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>'),qy={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) {
|
|
185
|
+
svg[data-logo="app_store"] [data-logo="app_store"] {visibility:visible;opacity:1;}`};function Dv(t,e){F(e,!0),W(t,Fy);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",l=24,d=m(()=>!o()&&!i()?91:i()?l:95),a=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),u=m(()=>`0 0 ${n(d)} 24`);Nv(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(a)},get"data-logo"(){return r()}}),U()}function fc(t,e){F(e,!0);let[i,o]=De(),r=()=>S(x,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S(y,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),a=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),f=Nt(),v=he(),p=v.ui.currentGridType$,x=v.ui.isMobile,w=v.ui.t,y=v.isCyrillicRelatedInterface$,C=m(()=>f.logoType!=="vk"),T=m(()=>n(C)?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),E=m(()=>(r()&&As(s(),"m")||As(s(),"l"))&&n(C)),R=()=>{var N,H;e.click(),(N=v.callbacks)!=null&&N.onLogoClicked?(H=v.callbacks)==null||H.onLogoClicked():u()&&window.open(u(),"_blank")},A=m(()=>!a()),I=m(()=>n(C)?"btn-vk-video-logo":"btn-vk-logo");Kt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:R,get testId(){return n(I)},get ariaLabel(){return n(T)},get ref(){return d()},set ref(N){d(N)},children:(N,H)=>{var B=ze(),z=fe(B);{var X=Q=>{Dv(Q,{get logo(){return f.logoType},get short(){return n(E)},get isCyrillic(){return l()}})},ae=Q=>{Ov(Q,{})};V(z,Q=>{n(C)?Q(X):Q(ae,!1)})}b(N,B)},$$slots:{default:!0}}),U(),o()}var N0=require("@vkontakte/videoplayer-core/es2015");var Bv=require("@vkontakte/videoplayer-core/es2015"),Uy=Ie('<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>'),zy=Ie('<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>'),Wy={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) {
|
|
186
186
|
animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
|
|
187
187
|
animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
|
|
188
188
|
animation-name: svelte-8z1bf5-wave3;}
|
|
@@ -230,7 +230,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
|
|
|
230
230
|
100% {
|
|
231
231
|
opacity: 1;
|
|
232
232
|
}
|
|
233
|
-
}`};function Hv(t,e){F(e,!0),W(t,qy);let i=h(e,"isMobile",3,!1),o=m(()=>e.iconState===Bv.ChromecastState.CONNECTED),r=m(()=>e.iconState===Bv.ChromecastState.CONNECTING);var s=Fe(),l=fe(s);{var d=u=>{var f=Wy(),v=_(f),p=_(v),x=_(p);Ee(),g(p);var w=P(p);Ee(),g(v);var y=P(v),C=_(y),T=_(C);g(C),Ee(),g(y),g(f),D(()=>{Ke(x,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Ke(w,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Ke(T,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},a=u=>{var f=Ky();let v;var p=_(f),x=P(_(p),5);let w;g(p),g(f),D((y,C)=>{v=re(f,0,"svelte-8z1bf5",null,v,y),w=re(x,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:n(r)}),()=>({hidden:!n(o)})]),b(u,f)};V(l,u=>{i()?u(d):u(a,!1)})}b(t,s),U()}var D0=require("@vkontakte/videoplayer-shared/es2015");function mc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,D0.noop),l=_e().ui.t,d=m(()=>e.state===N0.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Kt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{Hv(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var B0=require("@vkontakte/videoplayer-shared/es2015");var Qy=Ie('<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 Fv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(3),g(o),b(t,o)}var jy=Ie('<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 Uv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=jy();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var op=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Gy=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),Yy=M('<span class="text svelte-1yhs2ga"> </span>'),Zy=M('<span class="text count svelte-1yhs2ga"> </span>'),Xy=M("<!> <!>",1),Jy={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 gc(t,e){var J,ve,se;F(e,!0),W(t,Jy);let[i,o]=Be(),r=()=>S(w,"$currentGridType$",i),s=()=>S(y,"$openedByKeyboard$",i),l=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),a=h(e,"position",3,0),u=h(e,"duration",3,0),f=h(e,"timeCodes",19,()=>[]),v=_e(),p=(ve=(J=v.callbacks)==null?void 0:J.onEpisodeChanged)!=null?ve:B0.noop,x=!!((se=v.callbacks)!=null&&se.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,R=j(void 0),A=de=>{var Se,ie,Ne;if(!!((Se=v.callbacks)!=null&&Se.onEpisodeClicked)){let pe=ta(de);y.set(pe),C.set(!0),(Ne=(ie=v.callbacks)==null?void 0:ie.onEpisodeClicked)==null||Ne.call(ie,pe)}},I=j(null),N=m(()=>a()/u());We(()=>{var Le;let de=op(n(N),u(),f());de?((Le=n(I))==null?void 0:Le.time)!==de.time&&(p(de),O(I,de,!0)):O(I,null)});let H=m(()=>{var de;return((de=n(I))==null?void 0:de.text)||""}),B=m(()=>so(r(),"xl")?"FULL":so(r(),"m")&&L0(r(),"xl")?"COUNT":"SHORT"),z=m(()=>`${E("tooltip_episodes")}: ${n(H)}`),X=(de,Le,Se)=>wt(null,null,function*(){yield Lo(),(de==null?void 0:de.getAttribute("aria-expanded"))==="false"&&Le&&!Se&&Lt(()=>{y.set(!1),de.focus()})});We(()=>{X(n(R),s(),l())});var le=Fe(),q=fe(le);{var ce=de=>{let Le=m(()=>d()?"px-0":""),Se=m(()=>!x);Kt(de,{get className(){var ie;return`w-max btn-full-opacity btn-jc-l ${(ie=n(Le))!=null?ie:""}`},testId:"btn-episodes",click:A,get disabled(){return n(Se)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(R)},set ref(ie){O(R,ie,!0)},children:(ie,Ne)=>{var pe=Fe(),k=fe(pe);{var qe=Z=>{var ne=Gy(),He=fe(ne),Xe=_(He,!0);g(He);var ge=P(He,2),ee=_(ge);Uv(ee,{}),g(ge),D(()=>me(Xe,n(H))),b(Z,ne)},Re=Z=>{var ne=Xy(),He=fe(ne);Fv(He,{});var Xe=P(He,2);{var ge=ke=>{var he=Yy(),Ue=_(he,!0);g(he),D(()=>me(Ue,n(H))),b(ke,he)},ee=(ke,he)=>{{var Ue=Je=>{var Ge=Zy(),ut=_(Ge,!0);g(Ge),D(()=>me(ut,f().length)),b(Je,Ge)};V(ke,Je=>{n(B)==="COUNT"&&Je(Ue)},he)}};V(Xe,ke=>{n(B)==="FULL"?ke(ge):ke(ee,!1)})}b(Z,ne)};V(k,Z=>{d()?Z(qe):Z(Re,!1)})}b(ie,pe)},$$slots:{default:!0}})};V(q,de=>{n(I)&&de(ce)})}b(t,le),U(),o()}var pm=require("@vkontakte/videoplayer-shared/es2015");var hi=require("@vkontakte/videoplayer-core/es2015"),vt=require("@vkontakte/videoplayer-shared/es2015"),vs=require("@vkontakte/videoplayer-statistics/es2015");var Ze=require("@vkontakte/videoplayer-shared/es2015"),ao=require("@vkontakte/videoplayer-shared/es2015");var e4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",np=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 ao.Subject,loadStarted$:new ao.Subject,loadEnded$:new ao.Subject,loadError$:new ao.Subject,ready$:new ao.Subject,slotRequested$:new ao.Subject,started$:new ao.Subject,timeRemained$:new ao.Subject,paused$:new ao.Subject,resumed$:new ao.Subject,ended$:new ao.Subject,empty$:new ao.Subject,skipped$:new ao.Subject,clicked$:new ao.Subject,closed$:new ao.Subject,error$:new ao.Subject};this.loadAdman=e=>(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ze.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ze.now)()]}),i(),this.events.loadEnded$.next()):(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ze.now)()]}),o())};(0,ao.addScript)(e4,e,this.loadTimeout).then(()=>{Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ze.now)()]}),window.AdmanHTML?(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ze.now)()]}),i(),this.events.loadEnded$.next()):(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ze.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(l=>{Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ze.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ze.now)()]}),i(),this.events.loadEnded$.next()):(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ze.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ze.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ze.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ze.now)()]}),!d&&(window.AdmanHTML?(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ze.now)()]}),i(),this.events.loadEnded$.next()):(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ze.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ze.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ze.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?$e(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ze.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;Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ze.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(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ze.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;Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ze.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ze.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ze.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ze.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")=>{Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ze.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ze.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){return wt(this,null,function*(){var R,A;if(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ze.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:s,adsVideoElement:l,slotId:d,params:a={},paramsOverride:u={},duration:f,externalApi:v}=e;this.externalApi=v;let p,x=this.playerState&&$e(this.playerState.vsid);x&&(this.isVsidOriginal?p=x:p=parseInt(x,36));let{isEmbed:w,immediateOrigin:y}=(0,Ze.detectEmbed)(),C=(R=w?y:window.location.href)!=null?R:window.location.href,T=Q(jt(Q(jt(Q({},a),{dl:encodeURIComponent(C),autoplay:r?1:0,player_width:i,player_height:o}),p?{request_id:p}:{}),{duration:f}),u);T=Object.fromEntries(Object.entries(T).filter(([I,N])=>(0,Ze.isNonNullable)(N)));let E={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;if(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),(A=this.externalApi)!=null&&A.videoGetAds){let N=yield this.safeExternalCall(this.externalApi.videoGetAds,T);N&&(delete E.slot,delete E.params,Object.assign(E,{json:N}))}I.init(E),this.adman=I,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(I){Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[(0,Ze.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,s;if(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ze.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(r=this.actions).switchFromAdsToVideo)==null||s.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ze.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(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ze.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(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ze.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ze.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(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ze.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(Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ze.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,r,s,l,d,a,u,f,v,p;Ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ze.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),(r=this.adman)==null||r.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,ao.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return wt(this,null,function*(){var o;try{return yield e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}})}};var H0=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 zv=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let s of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new rp,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new Wv,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},rp=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${r}`;return s+l+d+a}},Wv=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,v)=>{let p=l.indexOf(v,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new rp;for(let l of r)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},F0=zv;var ap=require("@vkontakte/videoplayer-shared/es2015"),qa,Oi,Kv=0,qv=!1,U0="",z0=(t,e=0,i=0)=>t<e&&t<i,sp=(t,e=0,i=0)=>t>=e&&t<=i,t4=(t,e=0,i=0)=>t>e&&t>i,W0=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:f})=>sp(t,u,f));let s=t>=Kv,l=t<Kv;if(Kv=t,l&&(qv=!1),(0,ap.isNonNullable)(qa)&&sp(t,qa.startTime,qa.endTime)&&U0===e.value)return qa;if(!(0,ap.isNonNullable)(Oi)&&(r!=null&&r.length)&&!qv){Oi=r.find(({startTime:u,endTime:f})=>sp(t,u,f)||s&&z0(t,u,f)),qa=void 0,!(0,ap.isNonNullable)(Oi)&&r[r.length-1].endTime<t&&(qv=!0);return}else{if(sp(t,Oi==null?void 0:Oi.startTime,Oi==null?void 0:Oi.endTime))return qa=Oi,Oi=void 0,U0=e.value,qa;(s&&t4(t,Oi==null?void 0:Oi.startTime,Oi==null?void 0:Oi.endTime)||l&&z0(t,Oi==null?void 0:Oi.startTime,Oi==null?void 0:Oi.endTime))&&(Oi=void 0)}};var lp={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"},i4={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"},hc=t=>{var e,i;return(i=(e=lp[t])!=null?e:lp[i4[t]])!=null?i:void 0};var K0=require("@vkontakte/videoplayer-shared/es2015"),BB=require("@vkontakte/videoplayer-statistics/es2015"),dp=class{constructor(e,i,o,r=new K0.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}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 _c=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(_c||{});var fs=t=>t!=null?t:0,Ls=(t,e)=>{var r,s;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(fs(i==null?void 0:i.top)-fs(o==null?void 0:o.top)),left:Math.round(fs(i==null?void 0:i.left)-fs(o==null?void 0:o.left)),bottom:Math.round(fs(i==null?void 0:i.bottom)-fs(o==null?void 0:o.top)),right:Math.round(fs(i==null?void 0:i.right)-fs(o==null?void 0:o.left))}},Yl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:fs(e==null?void 0:e.width),height:fs(e==null?void 0:e.height)}};var Kn="off";var Zl=t=>!!(Math.round(Math.abs(t)/90)%2);var q0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:x,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:R,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:N,additionalButtons:H,additionalSettingsMenuItems:B,additionalContextMenuItems:z,playPrevVideo:X,playNextVideo:le,onVideoChanged:q,looped:ce=!1,statistics:J,saveRate:ve,internalsExposure:se,playerView:de,playerId:Le})=>{var Lg,Vg,Rg;let Se=jt(Q({},x),{configName:[...(Lg=x.configName)!=null?Lg:[],"ui"],isAudioDisabled:l,live:jt(Q({},(Vg=x.live)!=null?Vg:{}),{isLiveCatchUpMode:!!r})}),ie=p,Ne=vt.TracerFactory.createRootTracer(ie.features.tracer),pe=Ne.createComponentTracer("Store"),k=w||new hi.Player(Se,Ne,{playerId:Le});se==null||se.expose({corePlayer:k});let qe=new vt.Logger,Re=new np(qe,{loadTimeout:ie.ads.loadTimeout,initTimeout:ie.ads.initTimeout,runtimeTimeout:ie.ads.runtimeTimeout,useAdmanFromNPM:ie.ads.useAdmanFromNPM,volumeMultiplier:ie.ads.volumeMultiplier,isVsidOriginal:ie.ads.isVsidOriginal}),Z=Oa.getInstance(),ne=u==null?void 0:u.pictureInPictureApi,He=u==null?void 0:u.annotationsApi,Xe=u==null?void 0:u.slotsApi,ge=qe.createComponentLog("Store"),ee,ke,he={},Ue=new Vu,Je=new vt.Subscription,Ge="",ut=ae(!1),tt=J&&J.oneStat?ci(J.oneStat.vsid$):Cr(void 0),Ft=ae(Xs()),st=ae(!1),Ht=()=>p0(document,hi.clientChecker.device.isIOS),Gt=(Rg=ne==null?void 0:ne.info.isActive$)!=null?Rg:new vt.ValueSubject(!1),kt=ae(0),oi=ae(!1),qt=ae(!1),Ce=ae([]),we=(0,vt.merge)(k.events.fatalError$,k.events.managedError$).subscribe(c=>Ce.update($=>[...$,c])),te=Cr(!1,c=>{let $=k.events.fatalError$.subscribe(()=>c(!0));return()=>$.unsubscribe()}),Te=c=>wt(null,null,function*(){var oe;let $=Object.values(vt.InterfaceLanguage).includes(c);if(ie.downloadVKLanguages&&($&&ie.updateBuiltinLanguages||!Jf(c))){let Pe;try{Pe=yield(0,vt.loadVKLangPack)(c,S1,C1)}catch(at){(oe=J==null?void 0:J.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),Z==null||Z.report(at,{errorType:"VKLangPack",fatal:!1})}Pe&&(Xf({language:c,pack:Pe,fallback:ie.defaultLanguage}),Me.set(c),At.update(at=>at+1))}Jf(c)&&Me.set(c)}),Me=ae(t),At=ae(0),De=ae(e);Te(t);let pt=(c,$)=>{let L=$e(Me);return ev(L,c,$,ie.defaultLanguage)},xt=ae("thumb");xt.subscribe(c=>{c==="ads"&&k.info.playbackState$.getValue()&&Qe()});let xe=(()=>{let c=yi([te,xt],([$,L])=>$?"crashed":L);return jt(Q({},c),{is:$=>$e(c)===$})})(),nt=ae(),Qe=()=>{nt.set({muted:k.info.muted$.getValue()})},dt=(()=>{let c=ae(new Set(y));return jt(Q({},c),{add:$=>{c.update(L=>new Set([...L].concat($)))},remove:$=>{c.update(L=>{let oe=[...L];return new Set(Array.isArray($)?oe.filter(Pe=>!$.includes(Pe)):oe.filter(Pe=>Pe!==$))})},includes:$=>{let L=$e(c);return Array.isArray($)?$.every(oe=>L.has(oe)):L.has($)}})})(),ni=ae({width:0,height:0}),ai=null,mi=k.info.isBuffering$,wi=Cr(mi.getValue(),c=>{let $=mi.subscribe(L=>{L&&ai===null?ai=window.setTimeout(()=>{c(mi.getValue()),ai=null},ie.loaderDelay):c(L)});return()=>{$.unsubscribe(),ai&&clearTimeout(ai)}});pe.log("create store"),ge({message:"create store"});let co=c=>{let $=c.container,L=()=>{si=new MutationObserver(Pe=>{let{removedNodes:at}=Pe[0];at.length&&$.append(k.experimental.element$.getValue())}),si.observe($,{childList:!0})},oe=k.experimental.element$.getValue();if(oe)$.append(oe),L();else{let Pe=k.experimental.element$.pipe((0,vt.filter)(at=>!!at),(0,vt.once)()).subscribe(at=>{$.append(at),L()});Je.add(Pe)}},ho=c=>{ge({message:`init video, config: ${JSON.stringify(c)}`}),C?co(c):(vt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,vt.now)()]}),k.initVideo(c)),pe.log("init video",{isInteractive:C}),c.subtitles&&k.setExternalTextTracks(c.subtitles),ee=c,Ge=c.subtitlesForcedLanguage||""},ui=new vt.Subject,ht=c=>ui.next(c),Mi=new vt.Subject,Xt=new vt.Subject,It=new vt.Subject,si=null,Jt={actionRewind$:Mi,actionSeek$:Xt,inPiP$:Gt,inFullscreen$:new vt.Observable(c=>Ft.subscribe($=>c.next($))),actionSetSubtitle$:It,nextMovie$:ui},Tt={actionSeek$:Xt,playerSize$:new vt.Observable(c=>ni.subscribe($=>c.next($))),inPiP$:Gt,inFullscreen$:new vt.Observable(c=>Ft.subscribe($=>c.next($))),isLoaderVisible$:new vt.Observable(c=>wi.subscribe($=>c.next($)))};if(J){let{oneStat:c,thinOneStat:$,mediascopePixel:L,statSubscription:oe}=J;c&&(C||oe.add(c.attachTo(k)),oe.add(c.attachToUi(Jt)),oe.add(c.attachToAds(Re.events)),c.authorize(s).catch(Pe=>{ge({message:`onestat auth error ${String(Pe)}`})}),L&&L.attachTo(k)),$&&(oe.add($.attachTo(k,Re.events)),oe.add($.attachToUi(Tt)),oe.add($.attachToAds(Re.events)),$.updateContext({isMobile:$e(ut)}),$.authorize(s))}if(Z){let c=new vt.Subscription,$=(L,oe)=>c.add(L.subscribe(oe));if($(k.events.managedError$,L=>{Z.logIError(L)}),$(k.events.fatalError$,L=>{Z.logIError(L,!0)}),J){let{oneStat:L}=J;L&&$(L.experimental.error$,oe=>{Z.logIError(oe)})}Z.sentrySubscription.add(c)}let Ye=()=>{if(hi.clientChecker.device.isIOS&&ke)try{f0(ke)}catch(c){ge({message:`exitIosSafariFullscreen failed: ${c}`})}};Je.add(k.experimental.element$.subscribe(c=>{c&&(ke=c,c.classList.add("player-media"),Da(ne)&&ne.updateVideoElement(),C&&c.setAttribute("pip","false"),de==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(k.events.ended$.subscribe(()=>{var c;Ye(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(k.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(k.events.started$.subscribe(()=>wt(null,null,function*(){var $,L;Da(ne)&&(yield ne==null?void 0:ne.revealPictureInPicture());let c=k.info.muted$.getValue();($=a==null?void 0:a.onStarted)==null||$.call(a),(L=he.onStarted)==null||L.call(he,c)}))).add(k.events.willSeek$.subscribe(({from:c,to:$})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.call(a,c,$)})).add(k.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(k.info.position$.subscribe(c=>{var L;let $=k.info.duration$.getValue();isFinite($)&&$>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,$,c),Re.setPosition(c,$))})).add(k.events.fatalError$.subscribe(c=>{var $;($=a==null?void 0:a.onCrashed)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.fetcherRecoverableError$.subscribe(c=>{var $;($=a==null?void 0:a.onRecoverableError)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.loadedMetadata$.subscribe(()=>{oi.set(!0)})).add(k.info.is3DVideo$.subscribe(c=>{qt.set(c)})).add(k.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&dt.add(Kd),dt.add("PLAY_BUTTON")):dt.remove("PLAY_BUTTON"))})).add(k.info.liveTime$.subscribe(c=>{var $;($=a==null?void 0:a.onLiveTime)==null||$.call(a,c)})).add(k.info.isStalled$.subscribe(c=>{var $;($=a==null?void 0:a.onStalledChanged)==null||$.call(a,c)})).add(k.info.isLiveEnded$.subscribe(c=>{var $;return c&&(($=a==null?void 0:a.onLiveEnded)==null?void 0:$.call(a))})).add(Re.events.loadStarted$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:$.call(c)})).add(Re.events.loadEnded$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:$.call(c)})).add(Re.events.loadError$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:$.call(c)})).add(Re.events.init$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:$.call(c)})).add(Re.events.ready$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:$.call(c)})).add(Re.events.started$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onStarted)==null?void 0:L.call($,c)})).add(Re.events.timeRemained$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onTimeRemained)==null?void 0:L.call($,c)})).add(Re.events.ended$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onCompleted)==null?void 0:L.call($,c)})).add(Re.events.empty$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:$.call(c)})).add(Re.events.clicked$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClicked)==null?void 0:L.call($,c)})).add(Re.events.closed$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClosed)==null?void 0:L.call($,c)})).add(Re.events.error$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onError)==null?void 0:L.call($,c)})).add(Re.events.paused$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:$.call(c)})).add(Re.events.resumed$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:$.call(c)}));let Si=new vt.Subscription,To=()=>{var at,Rt,zt;let{debugLog:c}=ie,$,L="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:Yt}=c;$=c.tag,L=(at=Yt==null?void 0:Yt[0])!=null?at:L,oe=(zt=(Rt=Yt==null?void 0:Yt[1])!=null?Rt:Yt==null?void 0:Yt[0])!=null?zt:oe}let Pe=$?`: ${$}`:"";Si.add(k.events.log$.subscribe(Yt=>{console.debug(`%c sdk${Pe} `,`background:${L};`,`sdk component: ${Yt.component}`,Yt.message)})).add(qe.log$.subscribe(Yt=>{console.debug(`%c ui${Pe} `,`background:${oe};`,`ui component: ${Yt.component}.`,Yt.message)}))},tn=()=>{Si.unsubscribe()},vn=(c,$)=>{pe.log("start camera manual rotation",{mx:c,my:$}),k.startCameraManualRotation(c,$)},Pt=(c=!1)=>{pe.log("stop camera manual rotation",{immediate:c}),k.stopCameraManualRotation(c)},Ut=(c,$,L)=>{pe.log("move camera focus px",{xpx:c,ypx:$,dt:L}),k.moveCameraFocusPX(c,$,L)},K=()=>{k.holdCamera()},Ot=()=>{k.releaseCamera()},ri=Cr(k.info.position$.getValue(),c=>{let $,L,oe=()=>{let Pe=k.info.playbackState$.getValue(),at=k.info.isLive$.getValue(),Rt=k.info.duration$.getValue(),zt=k.info.position$.getValue();if(Pe&&[hi.PlaybackState.PLAYING,hi.PlaybackState.PAUSED].includes(Pe)){let Yt=at?zt-Rt:k.getExactTime();Yt!==L&&c(Yt),L=Yt}$=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame($)}),mt=ci(k.info.playbackState$),Mt=ci(k.info.currentBuffer$),Zt=ci(k.info.isEnded$),ft=ci(k.info.isLive$),Ni=ie.features.playbackRate?ci(k.info.canChangePlaybackSpeed$):Cr(!1),zi=ci(k.info.liveBufferTime$),on=ci(k.info.volume$),No=ci(k.info.muted$),uo=Ru(k.info.predefinedQualityLimitType$.pipe((0,vt.map)(c=>c===hi.PredefinedQualityLimits.TRAFFIC_SAVING)),k.info.predefinedQualityLimitType$.getValue()===hi.PredefinedQualityLimits.TRAFFIC_SAVING),Wi=Ru(k.info.predefinedQualityLimitType$.pipe((0,vt.map)(c=>c===hi.PredefinedQualityLimits.HIGH_QUALITY)),k.info.predefinedQualityLimitType$.getValue()===hi.PredefinedQualityLimits.HIGH_QUALITY),pr=ci(k.info.autoQualityLimitingAvailable$),_o=ci(k.info.availableQualities$),bo=ci(k.info.availableQualitiesFps$),Di=ci(k.info.chromecastState$),mn=ci(k.info.chromecastDeviceName$),Do=ci(k.info.currentFormat$),fr=ci(k.info.throughputEstimation$),vr=ci(k.info.videoBitrate$),Er=ci(k.info.intrinsicVideoSize$),os=ci(k.info.duration$),gs=ci(k.info.isAudioAvailable$),ns=()=>{ai&&clearTimeout(ai),ai=null},Eo=yi([os,ft],([c,$])=>$?-c:c),jn=yi([mt],([c])=>c===hi.PlaybackState.PLAYING),Bo=ci(k.info.atLiveEdge$),gn=ci(k.info.atLiveDurationEdge$),Vn=ci(k.info.position$),mr=yi([Vn,os],([c,$])=>isFinite(c)&&isFinite($)&&!!$),Ir=yi([Di],([c])=>c===hi.ChromecastState.CONNECTED),kr=ci(k.info.availableVideoStreams$),Ar=ie.features.audioLanguages?ci(k.info.availableAudioStreams$):Cr([]),Pr=ci(k.info.currentVideoStream$),Zi=ci(k.info.currentAudioStream$),Mr=c=>{c.language&&jf(c.language),k.setVideoStream(c)},Rn=(c,$)=>{k.setAudioStream(c),xo($)&&(c.language&&jf(c.language),ie.features.userVideoPrefs&&i&&Zf(ie.userSalt,String(i),{audioTrackId:c.id}))},hn=c=>{let $;if(c.length===1&&($=c.at(0)),$!=null||($=c.find(oe=>"isDefault"in oe&&oe.isDefault)),ie.features.userVideoPrefs&&i){let oe=Hu(ie.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let Pe=c.find(at=>at.id===oe.audioTrackId);$=Pe!=null?Pe:$}}let L=Z1();return L&&($!=null||($=c.find(({language:oe})=>L===oe))),$!=null||($=c.at(0)),$},$o=c=>{pe.log("change audio stream",{id:c});let $=k.info.availableAudioStreams$.getValue().find(L=>L.id===c);$&&Rn($,!0)},gr=!1;Je.add(k.info.availableAudioStreams$.subscribe(c=>{if(!gr&&c.length){let $=hn(c);$&&(k.setAudioStream($),gr=!0)}})),Ar.subscribe(c=>{var $;($=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||$.call(a,c.map(({label:L="",id:oe="",language:Pe=""})=>({label:L,language:Pe,id:oe})))}),Zi.subscribe(c=>{var $;return c&&(($=a==null?void 0:a.onAudioStreamChanged)==null?void 0:$.call(a,c.id))});let On=!1;Je.add(k.info.availableVideoStreams$.subscribe(c=>{if(!On&&c.length){let $=hn(c);$&&(k.setVideoStream($),On=!0)}}));let _t=ae(void 0),vi=ci(k.info.isAutoQualityEnabled$,c=>c&&_t.set(void 0)),Lr=ci(k.info.currentQuality$,()=>_t.set(void 0)),Gn=yi([_t,Lr],([c,$])=>c!=null?c:$),Vr=yi(Do,c=>c!==hi.VideoFormat.MPEG),Nn=yi([_o,bo,vi,Gn,Vr],([c,$,L,oe,Pe])=>{let at=[];Pe&&at.push({value:"auto",displayValue:pt("auto_quality_option"),selected:L});let Rt=c.filter(zt=>!(0,vt.isInvariantQuality)(zt));for(let zt of Rt){let Yt=$[zt];at.push({value:zt,displayValue:`${zt}${Yt?H0(Yt):""}`,selected:L?!1:zt===oe})}return at}),Dn=ci(k.info.currentPlaybackRate$),Ho=yi([Dn,Bo,gn],([c,$,L])=>{let oe=L||C?1:ie.controls.playbackRateMin,Pe=$?1:ie.controls.playbackRateMax,at=ie.controls.playbackRateStep,Rt=[];for(let zt=oe;zt<=Pe;zt+=at)Rt.push({value:zt,displayValue:zt===1?pt("playback_rate_1"):pt("playback_rate",{multiplier:zt.toString(10)}),selected:c===zt});return Rt}),Fo=()=>({displayValue:pt("subtitles_off"),value:Kn,language:""}),_n=ae(Fo()),yo=yi([_n,At],([c],$)=>{c.value===Kn?$(Fo()):$(c)}),Uo=ie.features.subtitles?ci(k.info.availableTextTracks$):Cr([]),nn=H1(),hr=yi([Uo,yo],([c,$],L)=>{var at;let oe=[],Pe=c.find(({id:Rt})=>Rt===$.value);if(Pe!=null&&Pe.url){let[,Rt]=(at=nn.find(Pe.url))!=null?at:[];if(Rt){L(Rt);return}Ue.download(Pe.url).then(zt=>{if(!zt||Ue.isDestroyed())return;let Yt=new F0,Us=Pe.language;if(Us){let z_=!!Pe.isAuto,W_=Yt.parse(zt,Us);oe.push({lang:Us,subtitles:W_,isAuto:z_,id:Pe.id})}nn.add(Pe.url,oe),$e(yo).value===$.value&&L(oe)}).catch(zt=>{var Yt;(Yt=J==null?void 0:J.oneStat)==null||Yt.logError({errorType:"Subtitles download",fatal:!1}),Z==null||Z.report(zt,{errorType:"Subtitles download",fatal:!1})})}L(oe)}),Rr=yi([Dn,jn,yo],([c,$,L],oe)=>{let Rt;if(k.info.isLive$.getValue()&&$&&L.value!==Kn){let Yt=()=>{let Us=1e3/(3*c);Rt=setTimeout(Yt,Us),oe(Date.now())};return Yt(),()=>clearTimeout(Rt)}}),bn=yi([Uo,yo],([c,$])=>{if(!c.length)return[];let L=[];for(let{language:oe,isAuto:Pe,id:at}of c){let Rt=oe&&hc(oe);oe&&Rt&&L.push({displayValue:Pe?pt("subtitles_auto",{language:Rt}):Rt,value:at,selected:($==null?void 0:$.value)===at,isAuto:Pe,language:oe})}return L.length?(L.unshift(jt(Q({},Fo()),{selected:($==null?void 0:$.value)===Kn})),L):[]}),Ki={available:[],prev:[]},_r=()=>{var $,L;let c=k.experimental.getCurrentTime$.getValue();return(L=($=c==null?void 0:c())!=null?$:ke==null?void 0:ke.currentTime)!=null?L:0},Or=yi([ri,yo,hr,Rr],([c,$,L,oe])=>{var at;let Pe=k.info.isLive$.getValue();if(Pe&&Ki.prev!==L){let Rt=L.find(({id:Yt})=>Yt===$.value),zt=Ki.prev.find(({id:Yt})=>Yt===$.value);if(Rt){let Yt=jt(Q({},Rt),{subtitles:[...(at=zt==null?void 0:zt.subtitles)!=null?at:[],...Rt.subtitles]});Ki.available=[Yt],Ki.prev=L}}if($&&$.value!==Kn){let Rt=Pe?_r():c,zt=Pe?Ki.available:L;return W0(Rt,$,zt,Pe)}}),Bn=yi([Or],([c])=>c!=null&&c.texts?c.texts:[]);Je.add(yo.subscribe(c=>{var $,L;if(c.value===Kn)($=a==null?void 0:a.onSubtitleOff)==null||$.call(a);else{let oe=Object.entries(lp).find(([Pe,at])=>at===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,oe?oe[0]:"",c.value)}}));let Yn=ae(!0),Nr=yi([Mt,Eo,Vn,zi],([c,$,L,oe])=>{var zt;let Pe=(zt=c==null?void 0:c.end)!=null?zt:0;if(!oe)return Pe/$;let Rt=-L+oe-$;return(Pe-Rt)/$}),Zn=ci(k.info.availableSources$),ot=yi([Zn],([c])=>Object.keys((c==null?void 0:c[hi.VideoFormat.MPEG])||{}).length>0),gi=()=>{var L,oe,Pe;let c=Object.keys(((oe=(L=k.info.availableSources$)==null?void 0:L.getValue())==null?void 0:oe[hi.VideoFormat.MPEG])||{}),$=(0,vt.getHighestQuality)(c)||vt.VideoQuality.Q_144P;return(Pe=ee.sources[hi.VideoFormat.MPEG])==null?void 0:Pe[$]},Bi=()=>{var $;let c=gi();if(c)pe.log("download video",{url:c}),N1(c,(($=ee==null?void 0:ee.meta)==null?void 0:$.title)||"video");else{let L="There is no URL for download video";pe.log("download video",{message:L}),ge({message:L})}},Xi=()=>{ge({message:"toggle muted"});let c=k.info.muted$.getValue();k.info.volume$.getValue()===0&&!c?$n(Ji(),!1):Xn(!c,!1)},zo=()=>{var c;if(Qt.ui.settingsMenu.visible$.set(!1),!$e(Qt.ui.settingsSubMenu.visible$)){let $=$e(Qt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&$){let oe=Yl($),Pe={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:oe,position:Pe,name:"settings"})}}pe.log("close settings menu")},rn=(c,$=()=>Promise.resolve())=>wt(null,null,function*(){var Pe;Qt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Qt.ui.settingsMenu.visible$.set(!0),yield $();let L=$e(Qt.ui.settingsMenu.ref$),oe=va();if((Pe=a==null?void 0:a.uiInfo)!=null&&Pe.onSettingsMenu&&L&&oe){let Rt=Yl(L),zt=Ls(L,oe);a.uiInfo.onSettingsMenu({visible:!0,size:Rt,position:zt,name:"settings"})}pe.log("open settings menu",{wasOpenedByKeyboard:c})}),po=(c,$=!1)=>{var at;Qt.ui.settingsSubMenu.visible$.set(!1);let L=$e(Qt.ui.settingsMenu.ref$),oe=va(),Pe=$e(Qt.ui.settingsMenu.visible$);if((at=a==null?void 0:a.uiInfo)!=null&&at.onSettingsMenu&&L&&oe)if(Pe&&!$){let zt=Yl(L),Yt=Ls(L,oe);a.uiInfo.onSettingsMenu({visible:!0,size:zt,position:Yt,name:"settings"})}else{let zt=Yl(c),Yt={top:0,left:0,bottom:0,right:0},Us=$e(Qt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:zt,position:Yt,name:Us})}pe.log("close settings sub menu")},Pi=(c,$)=>{var oe;Qt.ui.settingsSubMenu.visible$.set(!0),Qt.ui.settingsSubMenu.ref$.set($),Qt.ui.settingsSubMenu.name$.set(c);let L=va();if((oe=a==null?void 0:a.uiInfo)!=null&&oe.onSettingsMenu&&$&&L){let at=Yl($),Rt=Ls($,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:at,position:Rt})}pe.log("open settings sub menu",{name:c})},Ji=()=>{var $;let c=Math.max(ie.volumeMinRestore,($=Ou())!=null?$:0);return c===0?ie.volumeDefault:c},xo=c=>{let $=ie.features.savePreferredStatesOnUserActionOnly;return!$||$&&!c},$n=(c,$)=>{let L=c===0?Ji():c,oe=k.info.muted$.getValue();ge({message:`set volume, volume: ${c}, preferredVolume: ${L}`});let Pe=!l||xe.is("ads");oe&&c>0&&Pe&&(oe=!1,xo($)&&qf(!1)),k.setVolume(c,oe),Re.setVolume(c),xo($)&&Ff(L)},Xn=(c,$)=>{let L=k.info.volume$.getValue();ge({message:`set muted, currentVolume: ${L}, mute: ${c}`});let oe=xe.is("ads");if(k.setMuted(c,oe),Re.setVolume(c?0:L),xo($)&&(!oe||!c)&&qf(c),!c&&L===0){let Pe=Ji();k.setVolume(Pe),xo($)&&Ff(Pe),Re.setVolume(Pe)}},Dr=ae(!1),Br=c=>{var $,L;pe.log("set looped",{isLooped:c}),Dr.set(c),k.setLooped(c),(L=($=a==null?void 0:a.uiInfo)==null?void 0:$.onLoopedChanged)==null||L.call($,c)};Br(ce);let yn=()=>{var c,$;($=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||$.call(c)},xn=(c,$=!1)=>{var L;ge({message:`set autoplayNextEnabled, value: ${c}`}),pe.log("set autoplay next enabled",{autoplayNextEnabled:c}),Qt.ui.autoplayNextEnabled$.set(c),e0(c),$&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},br=c=>{ge({message:`set timerNextVideoRunning, value: ${c}`}),pe.log("set timer next video running",{timerNextVideoRunning:c}),Qt.ui.timerNextVideoRunning$.set(c)},wn=(c=!0)=>{var L;let $=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{$=(L=a==null?void 0:a.onPrevVideoClick)==null?void 0:L.call(a)}catch(oe){ge({message:"onPrevVideoClick callback failed to execute"})}q(!0),$&&X()},Hr=(c=!0)=>{var L;let $=!0;if(c&&(a!=null&&a.onNextVideoClick))try{$=(L=a==null?void 0:a.onNextVideoClick)==null?void 0:L.call(a)}catch(oe){ge({message:"onNextVideoClick callback failed to execute"})}q(!1),$&&le()},it=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Vt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},Ci=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},wo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Wo=()=>{k.prepare()},Io=()=>{(0,vt.assertNonNullable)(Qt);let c=$e(Qt.ui.controls.disabledControls$),$=$e(Qt.playerPhase),L={playerPhase:$,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ge({message:"toggle play"}),$==="ads"){L.action="play",pe.log("toggle adman play",L),Re.togglePlay();return}let oe=()=>{var at;ge({message:"toggle play, call player.play"}),L.action="play",k.play(),(at=a==null?void 0:a.onPlay)==null||at.call(a)},Pe=()=>{var at;ge({message:"toggle play, call player.pause"}),L.action="pause",k.pause(),(at=a==null?void 0:a.onPause)==null||at.call(a)};if(k.info.isEnded$.getValue()){if(ge({message:"toggle play, video ended, seek to 0"}),Mi.next(),Xt.next(vs.SeekAction.REWIND),C){R==null||R();return}k.seekTime(0),oe()}else k.info.playbackState$.getValue()!==hi.PlaybackState.PLAYING?oe():Pe();pe.log("toggle play",L)},eo=(c,{changeReason:$="default",appliesTo:L="to-video"}={},oe)=>{ge({message:`set quality, quality: ${c}`}),pe.log("set quality",{quality:c}),k.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Pe}=ie.features;Nu(),c!=="auto"?(Pe?(Du({type:"exact_quality",quality:c,videoId:i},L),k.setPredefinedQualityLimits(hi.PredefinedQualityLimits.UNKNOWN)):Uf(i,c),_t.set(c),k.setQuality(c)):Pe&&$==="default"&&(ko("auto_quality",L,oe),$e(uo)&&Li(!1,void 0,oe),$e(Wi)&&sn(!1,void 0,oe))},Li=(c,$="as-default",L)=>{ge({message:`set trafficSavingEnabled, value: ${c}`}),pe.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?hi.PredefinedQualityLimits.TRAFFIC_SAVING:hi.PredefinedQualityLimits.UNKNOWN;ie.features.qualityDetailsSubMenuEnabled?(Ko(oe,$,L),Qd(!1)):(k.setPredefinedQualityLimits(oe),xo(L)&&Qd(c))},sn=(c,$="as-default",L)=>{ge({message:`set highQualityEnabled, value: ${c}`}),pe.log("set high quality enabled",{highQualityEnabled:c}),Ko(c?hi.PredefinedQualityLimits.HIGH_QUALITY:hi.PredefinedQualityLimits.UNKNOWN,$,L)},Ko=(c,$,L)=>{c!==hi.PredefinedQualityLimits.UNKNOWN&&($e(pr)&&!$e(vi)&&eo("auto",{appliesTo:$,changeReason:"limit-changed"},L),ko(c,$,L)),k.setPredefinedQualityLimits(c)},ko=(c,$,L)=>{xo(L)&&(Du({type:c,videoId:i},$),$==="as-default"&&Du({type:c,videoId:i},"to-video"))},to=(c,$=!0)=>{pe.log("set playback rate",{playbackRate:c}),k.setPlaybackRate(c),ie.features.saveRate&&ve&&!k.info.isLive$.getValue()&&$&&X1(c)},Fr=()=>{let c=$e(Ho),$=c.findIndex(({selected:oe})=>oe);if($===c.length-1)return;let L=c[$+1];to(L.value)},Jn=()=>{let c=$e(Ho),$=c.findIndex(({selected:oe})=>oe);if($===0)return;let L=c[$-1];to(L.value)},er=(c=jt(Q({},Fo()),{selected:!1}),$)=>{pe.log("set subtitles",Q({},c)),c.value!==Kn&&It.next(c.isAuto?c.value+"_auto":c.value),_n.set(c),xo($)&&(Yf(c.value===Kn?void 0:c.language),ie.features.userVideoPrefs&&i&&Zf(ie.userSalt,String(i),{subtitleTrackId:c.value===Kn?void 0:c.value}))},$r=c=>{pe.log("toggle subtitles");let $=$e(yo);($==null?void 0:$.value)===Kn?Ur(c):rs(c)},hs=(c,$)=>{pe.log("change subtitle",{enabled:c}),c?Ur(!0,$):rs(!0)},Ur=(c,$)=>{pe.log("subtitle on");let L=$e(bn),oe=$e(Me),Pe=Ge!=null?Ge:oe,at;$&&(at=L.find(Rt=>Rt.value===$)),at!=null||(at=L.filter(Rt=>Rt.value!==Kn).find(Rt=>Rt.language===Pe)),er(at!=null?at:L[1],c)},rs=c=>{pe.log("subtitle off"),er(void 0,c)};Je.add(k.info.availableTextTracks$.subscribe(c=>{var L;function $(){let oe=[];for(let{language:Pe,isAuto:at,id:Rt}of c){let zt=Pe&&hc(Pe);Pe&&zt&&oe.push({id:Rt,language:Pe,title:at?pt("subtitles_auto",{language:zt}):zt})}return oe}(L=a==null?void 0:a.onAvailableSubtitlesChanged)==null||L.call(a,$())}));let je=ae(!0),ti=c=>{je.set(c)},_i=(c,$,L=!0)=>{var oe;if(ge({message:`seek to time, time: ${c}`}),pe.log("seek to time",{time:c,action:$,forcePrecise:L}),Xt.next($),k.info.isLive$.getValue()){let Pe=k.info.duration$.getValue(),at=Math.min(0,Pe+c);k.seekTime(at,L)}else{if(E!=null&&E.getValue())return;k.info.isEnded$.getValue()&&(ge({message:"seek after ended, call callbacks.onPlay"}),(oe=a==null?void 0:a.onPlay)==null||oe.call(a)),k.seekTime(dn(c),L)}},Sn=c=>{ge({message:`seek to episode start time: ${c}`}),pe.log("seek to episode start time",{time:c}),_i(c,vs.SeekAction.EPISODE,!0)},qo=(c,$,L=!1)=>{ge({message:`seek to percent, percent: ${c}`}),pe.log("seek to percent",{percent:c,action:$});let oe=$e(Eo)*c;_i(oe,$,L)},zr=c=>{ge({message:`seek external, time: ${c}`}),pe.log("seek external",{time:c}),Xt.next(vs.SeekAction.UNKNOWN),k.seekTime(k.info.isLive$.getValue()?-c:c)},an=c=>{var oe,Pe;let $=(oe=c.max)!=null?oe:"none",L=(Pe=c.min)!=null?Pe:"none";ge({message:`set auto quality limitation. Max: ${$}. Min: ${L}`}),pe.log("set auto quality limits",{max:$,min:L}),k.setAutoQualityLimits(c)},Wr=c=>{ge({message:`seek external to episode start time: ${c}`}),pe.log("seek external to episode start time",{time:c}),_i(c,vs.SeekAction.EPISODE,!0)},Bs=c=>{ge({message:`set playback rate to: ${c}`}),pe.log("set playback rate external",{playbackRate:c}),k.setPlaybackRate(c)},io=ae(!1),Kr=ae(!1),aa=yi([Eo],([c])=>!!v&&c>=ie.suitableDurationForUsingRichSeek&&ie.features.useRichSeek&&!C),bt=((v==null?void 0:v.frameWidth)||0)>=((v==null?void 0:v.frameHeight)||0),pi=yi([kt],([c])=>{let $=Zl(c);return bt?!$:$});Je.add(xe.subscribe(c=>{c!=="video"&&io.set(!1)}));let So=ae(void 0),Cn=ae(!1),ye=c=>{ge({message:`start scrubbing, progress: ${c}`}),pe.log("start scrubbing",{progress:c}),Cn.set(!0),gt(c)},gt=c=>{So.set(c)},li,Ti,fi=()=>{So.set(void 0),Cn.set(!1)},ii=()=>{clearTimeout(Ti),clearTimeout(li),li=window.setTimeout(()=>{fi()},500),ke==null||ke.removeEventListener("seeked",ii)},ki=(c,$=!1)=>{ge({message:`complete scrubbing, progress: ${c}`}),pe.log("complete scrubbing",{progress:c}),qo(c,vs.SeekAction.SLIDER,$),$e(Qt.ui.isMobile)&&$e(Qt.state.currentFormat$)===hi.VideoFormat.HLS?(ke==null||ke.addEventListener("seeked",ii),Ti=window.setTimeout(()=>{ii()},300)):fi()},Tn=yi([ri,Eo,So],([c,$,L],oe)=>{oe((0,vt.isNonNullable)(L)?L*$:c)}),ln=ae(!1),Vi=()=>{ln.set(!0)},al=()=>{ln.set(!1)},la=yi([ni],([{width:c}],$)=>{let L=V0(c);$(L)}),da=H.filter(c=>D1(c)),ca=yi([la,ut],([c,$])=>$?da.filter(L=>!L.hideOnMobile):da.filter(L=>{var oe;return!((oe=L.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),tr=ae(H.filter(c=>B1(c))),_s=yi([tr,la],([c,$])=>c.filter(L=>{var oe;return!((oe=L.hideOnDesktopGridTypes)!=null&&oe.includes($))})),ua=yi([_s,ca],([c,$])=>[...ie.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...ie.features.additionalButtons?$.map((L,oe)=>{var Pe;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Pe=L.ariaLabel)!=null?Pe:L.tooltip,tooltipText:L.tooltip}}):[]]),yr=ae(B),ll=yi([yr],([c])=>ie.features.additionalSettingsMenuItems?c.map($=>$.type==="SWITCH"?jt(Q({},$),{onClick:$.onChangeEnabled}):$):[]),bs=(c,$)=>{let L=$e(tr).map(oe=>oe.id!==c?oe:Q(Q({},oe),$));tr.set(L)},$s=c=>{let $=$e(tr);if($.some(L=>L.id===c.id)){ge({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),tr.set($)},dl=c=>{let $=$e(tr);if(!$.some(L=>L.id===c)){ge({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),tr.set($)},pa=c=>{Xt.next(vs.SeekAction.LIVE),ge({message:"live switch to low latency "+c}),pe.log("live switch to low latency "+c),k.setLiveLowLatency(c)},pd=(c,$)=>{let L=$e(yr).map(oe=>oe.id!==c?oe:Q(Q({},oe),$));yr.set(L)},cl=c=>{let $=$e(yr);if($.some(L=>L.id===c.id)){ge({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),yr.set($)},fd=c=>{let $=$e(yr);if(!$.some(L=>L.id===c)){ge({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),yr.set($)},ir=ae(z),vd=yi([ir],([c])=>ie.features.additionalContextMenuItems?c:[]),ul=(c,$)=>{let L=$e(ir).map(oe=>oe.id!==c?oe:Q(Q({},oe),$));ir.set(L)},pl=c=>{let $=$e(ir);if($.some(L=>L.id===c.id)){ge({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),ir.set($)},fa=c=>{let $=$e(ir);if(!$.some(L=>L.id===c)){ge({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),ir.set($)},$t=yi([ut,te],([c,$],L)=>{L(c&&$)}),yt=()=>{Xt.next(vs.SeekAction.LIVE),ge({message:"switch to active live"}),pe.log("switch to active live"),k.seekTime(0),k.info.playbackState$.getValue()!==hi.PlaybackState.PLAYING&&Qt.actions.internal.togglePlay()},oo=()=>{pe.log("skip adman"),Re.skip()},Ao=(c=!0)=>{var oe;(0,vt.assertNonNullable)(Qt),ge({message:`switch from ads to video, callPlay: ${c}`}),pe.log("switch from ads to video",{callPlay:c}),xt.set("video"),c&&k.play(),l&&Xn(!0,!0);let $=(oe=$e(nt))==null?void 0:oe.muted,L=!k.info.muted$.getValue();$!==void 0&&!L&&Xn($,!0),nt.set(void 0)},no=()=>{(0,vt.assertNonNullable)(Qt),ge({message:"switch from video to ads"}),pe.log("switch from video to ads"),Qt.actions.internal.pause(),Ye(),xt.set("ads")},bi=c=>{(0,vt.assertNonNullable)(Qt);let $=c?"LiveWaitingStart":"thumb";pe.log("set live waiting start",{state:c,playerPhase:$}),xt.set($)},qi=c=>{(0,vt.assertNonNullable)(Qt);let $=c?"LiveWaitingRecover":"thumb";pe.log("set live waiting recover",{state:c,playerPhase:$}),xt.set($)},Hs=c=>{(0,vt.assertNonNullable)(Qt);let $=c?"LiveWaitingRecord":"thumb";pe.log("set live waiting record",{state:c,playerPhase:$}),xt.set($)},md=()=>((0,vt.assertNonNullable)(Qt),pe.log("get debug text data"),R1(k,ee,Qt,Ne.getTraceId())),Gc=()=>((0,vt.assertNonNullable)(Qt),JSON.stringify(Ne.getFinishedSpans())),Np=()=>((0,vt.assertNonNullable)(Qt),O1(k,ee,Qt)),va=()=>ke,Yc=()=>{ge({message:"toggle chromecast"}),pe.log("toggle chromecast"),k.toggleChromecast()},Fs=c=>{var L;if((0,vt.assertNonNullable)(Qt),k.info.isEnded$.getValue())return;let $=!c;if($e(Qt.playerPhase)==="ads"){ge({message:`pause ads, internalCall: ${$}`}),pe.log("pause ads",{internalCall:$}),Re.pause();return}ge({message:`pause video, internalCall: ${$}`}),pe.log("pause video",{internalCall:$}),$&&((L=a==null?void 0:a.onPause)==null||L.call(a)),k.pause()},fl=c=>{var L;(0,vt.assertNonNullable)(Qt);let $=!c;if($e(Qt.playerPhase)==="ads"){ge({message:`play ads, internalCall: ${$}`}),pe.log("play ads",{internalCall:$}),Re.play();return}ge({message:`play video, internalCall: ${$}`}),pe.log("play video",{internalCall:$}),$&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),k.play()},Zc=c=>{(0,vt.assertNonNullable)(Qt);let $=!c;if($e(Qt.playerPhase)==="ads"){ge({message:"player cannot be stopped during ads via external method"});return}ge({message:`player will be stopped, internalCall: ${$}`}),A==null||A()},Xc=(c,$)=>{(0,vt.assertNonNullable)(Qt),ge({message:`first start, show ads: ${c}, internalCall: ${!$}`}),pe.log("first start",{showAds:c,external:$}),c?xt.set("ads"):(xt.set("video"),$?k.play():Qt.actions.internal.togglePlay())},vl=()=>(ge({message:"getting time codes"}),f),Jc=()=>{let c=vl();if(!c||[0,1].includes(c.length))return;let $=k.info.position$.getValue();return c.find(L=>L.time>$)},eu=c=>{let $=c;$||($=Jc());let L=k.info.position$.getValue();pe.log("seek to next episode",Q({currentTime:L},$)),$&&(ge({message:"seek to next episode"}),_i($.time,vs.SeekAction.EPISODE,!0))},tu=()=>{let c=vl();if(!c||[0,1].includes(c.length))return;let $=k.info.position$.getValue(),L=c.findIndex(Pe=>Pe.time>$),oe=L===-1?c.length-2:L-2;if(!(oe<0))return c[oe]},Dp=c=>{let $=c;$||($=tu());let L=k.info.position$.getValue();pe.log("seek to prev episode",Q({currentTime:L},$)),$&&(ge({message:"seek to prev episode"}),_i($.time,vs.SeekAction.EPISODE,!0))},Bp=()=>(ge({message:"getting preview thumbs data"}),pe.log("get preview thumbs data",Q({},v)),v),ze=()=>wt(null,null,function*(){let c=ne==null?void 0:ne.isActive(),$="none";ne!=null&&ne.isActive()?($="exit",yield ne==null?void 0:ne.exit()):($="request",yield ne==null?void 0:ne.request()),pe.log("toggle picture in picture",{isActive:c,action:$})}),$i=(c=-90)=>{pe.log("rotate video",{alphaDiff:c}),kt.update($=>$+c)},fo=ae([]);T==null||T.subscribe(c=>{let $=[];for(let L=0;L<c.length;L++){let{range:[oe,Pe],subjects:at}=c[L];L===0&&oe!==0&&$.push({time:0,text:"",interactive:!1,completed:!0}),$.push({time:oe/1e3,text:"",interactive:!0,completed:ie.features.interactiveTimeOpenUri?!at.length||at.every(Rt=>Rt.isRemoved):!at.length}),Pe!==1/0&&$.push({time:Pe/1e3,text:"",interactive:!1,completed:!0})}fo.set($)});let ma=ae(!1);E==null||E.subscribe(c=>{c&&$e(Cn)&&fi()});let dn=c=>{if(!C)return c;let $=$e(fo),L=$e(Eo),Pe=$e(Vn)/L,at=$.find(Rt=>Rt.interactive&&!Rt.completed&&Rt.time>Pe);return typeof(at==null?void 0:at.time)=="number"?Math.min(c,at.time-.05):c},O_=()=>{Qt.ui.episodes.panelOpened$.set(!1)},N_=()=>{pe.log("destroy store"),clearTimeout(Ti),clearTimeout(li),Je.unsubscribe(),Si.unsubscribe(),k.destroy(),Re.destroy(),J==null||J.destroy(),Z==null||Z.destroy(),we.unsubscribe(),si==null||si.disconnect(),si=null,Ue.destroy()},D_=yi([Bo,xe,Ni],([c,$,L])=>p.features.doubleForwardAvailable&&!c&&$==="video"&&L),Hp=ae(!1),Pg=2,iu=null,Mg=c=>{if(!$e(jn)&&c)return;let $=k.info.currentPlaybackRate$.getValue();c?$!==Pg&&(iu=$,to(Pg,!1),Hp.set(!0)):(iu&&to(iu,!1),Hp.set(!1),iu=null)};xe.subscribe(c=>{c!=="video"&&Mg(!1)});let B_=()=>{Fs(!1),io.set(!0)},H_=()=>{fl(!1),io.set(!1)},Fp=!1,F_=()=>{Kr.set(!0),Fp=k.info.playbackState$.getValue()===hi.PlaybackState.PLAYING,Fs(!1)},U_=()=>{Kr.set(!1),!$e(io)&&Fp&&fl(!1),Fp=!1};k.events.playing$.subscribe(()=>{$e(io)&&Fs(!1)});let Qt={interfaceLanguage$:Me,isCyrillicRelatedInterface$:De,initVideo:ho,videoId:i,isClip:o,playerPhase:xe,vsid:tt,state:{positionExact$:ri,positionWithScrubbing$:Tn,duration$:Eo,playbackState$:mt,isPlaying$:jn,isLoaderVisible:wi,bufferedProgress$:Nr,isLive$:ft,canChangePlaybackSpeed$:Ni,isActiveLive$:Bo,isOldestAvailableLive$:gn,isRewindableLive$:mr,isEnded$:Zt,muted$:No,volume$:on,trafficSavingEnabled$:uo,highQualityEnabled$:Wi,autoQualityLimitingAvailable$:pr,availableVideoStreams$:kr,availableAudioStreams$:Ar,videoStream$:Pr,audioStream$:Zi,currentQuality$:Gn,isAutoQualityEnabled$:vi,availableQualities$:Nn,currentPlaybackRate$:Dn,availablePlaybackRates$:Ho,currentSubtitle$:yo,availableTextTracks$:Uo,availableSubtitlesList$:bn,currentSubtitleCaptions$:Bn,isAutoSubtitleCaptionVisible$:Yn,chromecastState$:Di,chromecastDeviceName$:mn,chromecastConnected$:Ir,currentFormat$:Do,throughputEstimation$:fr,videoBitrate$:vr,videoSize$:Er,errorLog$:Ce,crashed$:te,isAudioAvailable$:gs,isAudioDisabled:!!l,canDownload:ie.features.download&&!!d,availableSources$:Zn,hasMpegSources$:ot,isInteractive:C,showInteractiveGraph:ie.features.interactiveGraph,showSeekToInteractive:ie.features.seekToInteractive,showPlayPrevChapter:ie.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ie.features.interactiveTimeIndicator&&!!$e(fo).length,interactiveEpisodes$:fo,isInteractiveTime$:E?ci(E):ae(!1),isInteractiveExpectation$:ma,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:N,looped$:Dr,loadedMetadata$:oi,isAutoQualityAvailable$:Vr,previewTrackActive:io,previewTrackDragInProgress:Kr},ui:{t:pt,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:H.length?H.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:dt},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ft,isFullscreenOpenedByKeyboard:st,rotateAlpha:kt,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:ni,isMobile:ut,mobileNotReportControlHidden$:$t,icon3DVideoVisible:ae(!1),scrubbingInProgress:Cn,volumeChangingInProgress:ln,is3DVideo:qt,currentGridType$:la,additionalButtonsDeprecated$:ca,additionalDesktopControlPanelRightButtons$:ua,additionalSettingsMenuItems$:ll,additionalContextMenuItems$:vd,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:je,controlBlocks:{topLeft:ae(void 0),topRight:ae(void 0),middle:ae(void 0),bottom:ae(void 0),bottomLeft:ae(void 0),bottomRight:ae(void 0)},videoTitleInfo:ae(void 0),doubleForwardOn$:Hp,doubleForwardAvailable$:D_,previewTrackNotificationVisible:ae(!1),previewTrackActive:io,previewTrackDragInProgress:Kr,previewTrackAvailable:aa,isPreviewTrackHorizontallyAligned:pi},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ne,annotationsApi:He,slotsApi:Xe},actions:{internal:{preload:Wo,firstStart:c=>Xc(c,!1),play:()=>fl(!1),pause:()=>Fs(!1),togglePlay:Io,toggleMuted:Xi,openSettingsMenu:rn,closeSettingsMenu:zo,openSettingsSubMenu:Pi,closeSettingsSubMenu:po,setVolume:c=>$n(c,!1),setMuted:c=>Xn(c,!1),startVolumeChanging:Vi,stopVolumeChanging:al,setVideoStream:Mr,setAudioStream:c=>Rn(c,!1),setQuality:(c,$)=>eo(c,$,!1),setTrafficSavingEnabled:(c,$)=>Li(c,$,!1),setHighQualityEnabled:(c,$)=>sn(c,$,!1),setPlaybackRate:to,incrementPlaybackRate:Fr,decrementPlaybackRate:Jn,setSubtitle:c=>er(c,!1),toggleSubtitle:()=>$r(!1),togglePictureInPicture:ze,startScrubbing:ye,progressScrubbing:gt,completeScrubbing:ki,toggleChromecast:Yc,switchToActiveLive:yt,switchFromAdsToVideo:Ao,switchFromVideoToAds:no,skipAd:oo,setLiveWaitingStart:bi,setLiveWaitingRecover:qi,setLiveWaitingRecord:Hs,getDebugTextData:md,getTraceTextData:Gc,getDebugPanelData:Np,getVideoElement:va,seekTime:(c,$,L)=>_i(c,$,L),clearDelayedBufferingCheckTimeout:ns,seekEpisodeStartTime:Sn,seekToPercent:qo,getNextEpisode:Jc,seekToNextEpisode:eu,getPrevEpisode:tu,seekToPrevEpisode:Dp,startLogging:To,stopLogging:tn,startCameraManualRotation:vn,stopCameraManualRotation:Pt,moveCameraFocusPX:Ut,holdCamera:K,releaseCamera:Ot,getVideoEpisodes:vl,getPreviewThumbsData:Bp,downloadVideo:Bi,addLanguage:Xf,setLanguage:Te,nextMovie:ht,videoRotate:$i,correctSeekTimeToInteractive:dn,replayInteractive:R,setLooped:Br,reportProblem:yn,setAutoplayNextEnabled:xn,setTimerNextVideoRunning:br,prevVideoClick:wn,nextVideoClick:Hr,nextVideoAnnouncementShow:it,nextVideoAnnouncementClick:Vt,nextVideoAnnouncementAuto:Ci,nextVideoAnnouncementCancel:wo,checkFullscreenSupport:Ht,changeDoubleForwardOn:Mg,closePreviewTrack:H_,previewTrackOpened:B_,previewTrackDragStarted:F_,previewTrackDragFinished:U_},external:{firstStart:c=>Xc(c,!0),play:()=>fl(!0),pause:()=>Fs(!0),stop:()=>Zc(!0),seekTime:c=>zr(c),seekEpisodeStartTime:c=>Wr(c),setPlaybackRate:c=>Bs(c),setAutoQualityLimits:c=>an(c),setMuted:c=>Xn(c,!0),toggleSubtitle:()=>$r(!0),changeSubtitle:hs,setVolume:c=>$n(c,!0),returnFocusToEpisodes:O_,updateAdditionalSettingsItem:pd,addAdditionalSettingsItem:cl,removeAdditionalSettingsItem:fd,updateAdditionalContextItem:ul,addAdditionalContextItem:pl,removeAdditionalContextItem:fa,updateAdditionalButton:bs,addAdditionalButton:$s,removeAdditionalButton:dl,setLiveLowLatency:pa,hideControls:()=>ti(!1),showControls:()=>ti(!0),setQuality:c=>eo(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Li(c,"to-video",!0),setHighQualityEnabled:c=>sn(c,"to-video",!0),changeAudioStream:$o}},callbacks:a,setUiCallbacks:c=>{he=Q({},c)},getAdmanWrapper:()=>Re,getLogger:()=>qe,getPlayer:()=>k,destroy:N_};return Qt};function qn(t,e,i,o){var f;let r=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:a,right:u}=Ls(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var o4=["disabledControls$","additionalButtons"],n4=["interactiveTimeIndicator"],Jl=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!o4.includes(r)){let l=o||n4.includes(r);s.set(qn(t,i,r,l))}}};var cp=(t,e,i)=>wt(null,null,function*(){yield Lo(),e&&i&&(i.focus(),t.set(!1))});var r4=Ie('<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 Qv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=r4();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function jv(t,e){F(e,!0);let[i,o]=Be(),r=()=>S(a,"$contextMenuVisible$",i),s=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=_e(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,x=j(void 0);We(()=>{n(x)&&Lt(()=>{p.set(n(x))})});let w=E=>{let R=ta(E),A=S0(n(x));v.set(A),u.set(R),a.set(!r())},y=()=>{f.set(!0)},C=()=>{f.set(!1)},T=m(()=>r()?"opened":"");Kt(t,{get className(){return n(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:y,blur:C,get ariaExpanded(){return r()},get ref(){return n(x)},set ref(E){O(x,E,!0)},children:(E,R)=>{Qv(E,{})},$$slots:{default:!0}}),U(),o()}var s4=t=>{t.stopPropagation()},a4=M("<div><!> <div></div> <div></div></div>"),l4={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;}
|
|
233
|
+
}`};function Hv(t,e){F(e,!0),W(t,Wy);let i=h(e,"isMobile",3,!1),o=m(()=>e.iconState===Bv.ChromecastState.CONNECTED),r=m(()=>e.iconState===Bv.ChromecastState.CONNECTING);var s=ze(),l=fe(s);{var d=u=>{var f=Uy(),v=_(f),p=_(v),x=_(p);Ee(),g(p);var w=P(p);Ee(),g(v);var y=P(v),C=_(y),T=_(C);g(C),Ee(),g(y),g(f),D(()=>{je(x,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),je(w,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),je(T,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},a=u=>{var f=zy();let v;var p=_(f),x=P(_(p),5);let w;g(p),g(f),D((y,C)=>{v=re(f,0,"svelte-8z1bf5",null,v,y),w=re(x,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:n(r)}),()=>({hidden:!n(o)})]),b(u,f)};V(l,u=>{i()?u(d):u(a,!1)})}b(t,s),U()}var D0=require("@vkontakte/videoplayer-shared/es2015");function vc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,D0.noop),l=he().ui.t,d=m(()=>e.state===N0.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Kt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{Hv(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var B0=require("@vkontakte/videoplayer-shared/es2015");var Ky=Ie('<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 Fv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Ky();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(3),g(o),b(t,o)}var qy=Ie('<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 Uv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=qy();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var tp=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Qy=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),jy=M('<span class="text svelte-1yhs2ga"> </span>'),Gy=M('<span class="text count svelte-1yhs2ga"> </span>'),Yy=M("<!> <!>",1),Zy={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 mc(t,e){var J,me,se;F(e,!0),W(t,Zy);let[i,o]=De(),r=()=>S(w,"$currentGridType$",i),s=()=>S(y,"$openedByKeyboard$",i),l=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),a=h(e,"position",3,0),u=h(e,"duration",3,0),f=h(e,"timeCodes",19,()=>[]),v=he(),p=(me=(J=v.callbacks)==null?void 0:J.onEpisodeChanged)!=null?me:B0.noop,x=!!((se=v.callbacks)!=null&&se.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,R=j(void 0),A=le=>{var ye,ee,Be;if(!!((ye=v.callbacks)!=null&&ye.onEpisodeClicked)){let pe=Js(le);y.set(pe),C.set(!0),(Be=(ee=v.callbacks)==null?void 0:ee.onEpisodeClicked)==null||Be.call(ee,pe)}},I=j(null),N=m(()=>a()/u());Qe(()=>{var Pe;let le=tp(n(N),u(),f());le?((Pe=n(I))==null?void 0:Pe.time)!==le.time&&(p(le),O(I,le,!0)):O(I,null)});let H=m(()=>{var le;return((le=n(I))==null?void 0:le.text)||""}),B=m(()=>ro(r(),"xl")?"FULL":ro(r(),"m")&&L0(r(),"xl")?"COUNT":"SHORT"),z=m(()=>`${E("tooltip_episodes")}: ${n(H)}`),X=(le,Pe,ye)=>wt(null,null,function*(){yield $o(),(le==null?void 0:le.getAttribute("aria-expanded"))==="false"&&Pe&&!ye&&Lt(()=>{y.set(!1),le.focus()})});Qe(()=>{X(n(R),s(),l())});var ae=ze(),Q=fe(ae);{var ce=le=>{let Pe=m(()=>d()?"px-0":""),ye=m(()=>!x);Kt(le,{get className(){var ee;return`w-max btn-full-opacity btn-jc-l ${(ee=n(Pe))!=null?ee:""}`},testId:"btn-episodes",click:A,get disabled(){return n(ye)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(R)},set ref(ee){O(R,ee,!0)},children:(ee,Be)=>{var pe=ze(),k=fe(pe);{var Ge=Y=>{var oe=Qy(),He=fe(oe),Xe=_(He,!0);g(He);var ge=P(He,2),ie=_(ge);Uv(ie,{}),g(ge),D(()=>ve(Xe,n(H))),b(Y,oe)},Me=Y=>{var oe=Yy(),He=fe(oe);Fv(He,{});var Xe=P(He,2);{var ge=ke=>{var we=jy(),Fe=_(we,!0);g(we),D(()=>ve(Fe,n(H))),b(ke,we)},ie=(ke,we)=>{{var Fe=Je=>{var Ye=Gy(),qe=_(Ye,!0);g(Ye),D(()=>ve(qe,f().length)),b(Je,Ye)};V(ke,Je=>{n(B)==="COUNT"&&Je(Fe)},we)}};V(Xe,ke=>{n(B)==="FULL"?ke(ge):ke(ie,!1)})}b(Y,oe)};V(k,Y=>{d()?Y(Ge):Y(Me,!1)})}b(ee,pe)},$$slots:{default:!0}})};V(Q,le=>{n(I)&&le(ce)})}b(t,ae),U(),o()}var pm=require("@vkontakte/videoplayer-shared/es2015");var vi=require("@vkontakte/videoplayer-core/es2015"),gt=require("@vkontakte/videoplayer-shared/es2015"),fs=require("@vkontakte/videoplayer-statistics/es2015");var tt=require("@vkontakte/videoplayer-shared/es2015"),so=require("@vkontakte/videoplayer-shared/es2015");var Xy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ip=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 so.Subject,loadStarted$:new so.Subject,loadEnded$:new so.Subject,loadError$:new so.Subject,ready$:new so.Subject,slotRequested$:new so.Subject,started$:new so.Subject,timeRemained$:new so.Subject,paused$:new so.Subject,resumed$:new so.Subject,ended$:new so.Subject,empty$:new so.Subject,skipped$:new so.Subject,clicked$:new so.Subject,closed$:new so.Subject,error$:new so.Subject};this.loadAdman=e=>(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,tt.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,tt.now)()]}),i(),this.events.loadEnded$.next()):(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,tt.now)()]}),o())};(0,so.addScript)(Xy,e,this.loadTimeout).then(()=>{tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,tt.now)()]}),window.AdmanHTML?(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,tt.now)()]}),i(),this.events.loadEnded$.next()):(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,tt.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(l=>{tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,tt.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,tt.now)()]}),i(),this.events.loadEnded$.next()):(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,tt.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,tt.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,tt.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,tt.now)()]}),!d&&(window.AdmanHTML?(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,tt.now)()]}),i(),this.events.loadEnded$.next()):(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,tt.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,tt.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,tt.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?$e(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,tt.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;tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,tt.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(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,tt.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;tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,tt.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,tt.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,tt.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,tt.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")=>{tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,tt.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,tt.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){return wt(this,null,function*(){var R,A;if(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,tt.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:s,adsVideoElement:l,slotId:d,params:a={},paramsOverride:u={},duration:f,externalApi:v}=e;this.externalApi=v;let p,x=this.playerState&&$e(this.playerState.vsid);x&&(this.isVsidOriginal?p=x:p=parseInt(x,36));let{isEmbed:w,immediateOrigin:y}=(0,tt.detectEmbed)(),C=(R=w?y:window.location.href)!=null?R:window.location.href,T=q(jt(q(jt(q({},a),{dl:encodeURIComponent(C),autoplay:r?1:0,player_width:i,player_height:o}),p?{request_id:p}:{}),{duration:f}),u);T=Object.fromEntries(Object.entries(T).filter(([I,N])=>(0,tt.isNonNullable)(N)));let E={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;if(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.setDebug(!1),(A=this.externalApi)!=null&&A.videoGetAds){let N=yield this.safeExternalCall(this.externalApi.videoGetAds,T);N&&(delete E.slot,delete E.params,Object.assign(E,{json:N}))}I.init(E),this.adman=I,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(I){tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[(0,tt.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,s;if(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,tt.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(r=this.actions).switchFromAdsToVideo)==null||s.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,tt.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(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,tt.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(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,tt.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,tt.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(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,tt.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(tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,tt.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,r,s,l,d,a,u,f,v,p;tt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,tt.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),(r=this.adman)==null||r.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,so.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return wt(this,null,function*(){var o;try{return yield e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}})}};var H0=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 zv=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let s of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new op,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new Wv,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},op=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${r}`;return s+l+d+a}},Wv=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,v)=>{let p=l.indexOf(v,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new op;for(let l of r)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},F0=zv;var rp=require("@vkontakte/videoplayer-shared/es2015"),Ka,Oi,Kv=0,qv=!1,U0="",z0=(t,e=0,i=0)=>t<e&&t<i,np=(t,e=0,i=0)=>t>=e&&t<=i,Jy=(t,e=0,i=0)=>t>e&&t>i,W0=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:f})=>np(t,u,f));let s=t>=Kv,l=t<Kv;if(Kv=t,l&&(qv=!1),(0,rp.isNonNullable)(Ka)&&np(t,Ka.startTime,Ka.endTime)&&U0===e.value)return Ka;if(!(0,rp.isNonNullable)(Oi)&&(r!=null&&r.length)&&!qv){Oi=r.find(({startTime:u,endTime:f})=>np(t,u,f)||s&&z0(t,u,f)),Ka=void 0,!(0,rp.isNonNullable)(Oi)&&r[r.length-1].endTime<t&&(qv=!0);return}else{if(np(t,Oi==null?void 0:Oi.startTime,Oi==null?void 0:Oi.endTime))return Ka=Oi,Oi=void 0,U0=e.value,Ka;(s&&Jy(t,Oi==null?void 0:Oi.startTime,Oi==null?void 0:Oi.endTime)||l&&z0(t,Oi==null?void 0:Oi.startTime,Oi==null?void 0:Oi.endTime))&&(Oi=void 0)}};var sp={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"},e4={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"},gc=t=>{var e,i;return(i=(e=sp[t])!=null?e:sp[e4[t]])!=null?i:void 0};var K0=require("@vkontakte/videoplayer-shared/es2015"),DB=require("@vkontakte/videoplayer-statistics/es2015"),ap=class{constructor(e,i,o,r=new K0.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}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 hc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(hc||{});var ps=t=>t!=null?t:0,Ps=(t,e)=>{var r,s;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(ps(i==null?void 0:i.top)-ps(o==null?void 0:o.top)),left:Math.round(ps(i==null?void 0:i.left)-ps(o==null?void 0:o.left)),bottom:Math.round(ps(i==null?void 0:i.bottom)-ps(o==null?void 0:o.top)),right:Math.round(ps(i==null?void 0:i.right)-ps(o==null?void 0:o.left))}},Gl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ps(e==null?void 0:e.width),height:ps(e==null?void 0:e.height)}};var lp="off";var Yl=t=>!!(Math.round(Math.abs(t)/90)%2);var q0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:x,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:R,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:N,additionalButtons:H,additionalSettingsMenuItems:B,additionalContextMenuItems:z,playPrevVideo:X,playNextVideo:ae,onVideoChanged:Q,looped:ce=!1,statistics:J,saveRate:me,internalsExposure:se,playerView:le,playerId:Pe})=>{var Lg,Vg,Rg;let ye=jt(q({},x),{configName:[...(Lg=x.configName)!=null?Lg:[],"ui"],isAudioDisabled:l,live:jt(q({},(Vg=x.live)!=null?Vg:{}),{isLiveCatchUpMode:!!r})}),ee=p,Be=gt.TracerFactory.createRootTracer(ee.features.tracer),pe=Be.createComponentTracer("Store"),k=w||new vi.Player(ye,Be,{playerId:Pe});se==null||se.expose({corePlayer:k});let Ge=new gt.Logger,Me=new ip(Ge,{loadTimeout:ee.ads.loadTimeout,initTimeout:ee.ads.initTimeout,runtimeTimeout:ee.ads.runtimeTimeout,useAdmanFromNPM:ee.ads.useAdmanFromNPM,volumeMultiplier:ee.ads.volumeMultiplier,isVsidOriginal:ee.ads.isVsidOriginal}),Y=Ra.getInstance(),oe=u==null?void 0:u.pictureInPictureApi,He=u==null?void 0:u.annotationsApi,Xe=u==null?void 0:u.slotsApi,ge=Ge.createComponentLog("Store"),ie,ke,we={},Fe=new Mu,Je=new gt.Subscription,Ye="",qe=de(!1),Ze=J&&J.oneStat?li(J.oneStat.vsid$):Ar(void 0),Ht=de(Ys()),st=de(!1),Ft=()=>p0(document,vi.clientChecker.device.isIOS),Gt=(Rg=oe==null?void 0:oe.info.isActive$)!=null?Rg:new gt.ValueSubject(!1),kt=de(0),ti=de(!1),qt=de(!1),Ce=de([]),xe=(0,gt.merge)(k.events.fatalError$,k.events.managedError$).subscribe(c=>Ce.update($=>[...$,c])),te=Ar(!1,c=>{let $=k.events.fatalError$.subscribe(()=>c(!0));return()=>$.unsubscribe()}),Te=c=>wt(null,null,function*(){var ne;let $=Object.values(gt.InterfaceLanguage).includes(c);if(ee.downloadVKLanguages&&($&&ee.updateBuiltinLanguages||!Jf(c))){let Le;try{Le=yield(0,gt.loadVKLangPack)(c,S1,C1)}catch(ct){(ne=J==null?void 0:J.oneStat)==null||ne.logError({errorType:"VKLangPack",fatal:!1}),Y==null||Y.report(ct,{errorType:"VKLangPack",fatal:!1})}Le&&(Xf({language:c,pack:Le,fallback:ee.defaultLanguage}),Ve.set(c))}Jf(c)&&Ve.set(c)}),Ve=de(t),Vt=de(e);Te(t);let Re=(c,$)=>{let L=$e(Ve);return ev(L,c,$,ee.defaultLanguage)},dt=de("thumb");dt.subscribe(c=>{c==="ads"&&k.info.playbackState$.getValue()&&at()});let It=(()=>{let c=wi([te,dt],([$,L])=>$?"crashed":L);return jt(q({},c),{is:$=>$e(c)===$})})(),Se=de(),at=()=>{Se.set({muted:k.info.muted$.getValue()})},We=(()=>{let c=de(new Set(y));return jt(q({},c),{add:$=>{c.update(L=>new Set([...L].concat($)))},remove:$=>{c.update(L=>{let ne=[...L];return new Set(Array.isArray($)?ne.filter(Le=>!$.includes(Le)):ne.filter(Le=>Le!==$))})},includes:$=>{let L=$e(c);return Array.isArray($)?$.every(ne=>L.has(ne)):L.has($)}})})(),pt=de({width:0,height:0}),Yt=null,yi=k.info.isBuffering$,mi=Ar(yi.getValue(),c=>{let $=yi.subscribe(L=>{L&&Yt===null?Yt=window.setTimeout(()=>{c(yi.getValue()),Yt=null},ee.loaderDelay):c(L)});return()=>{$.unsubscribe(),Yt&&clearTimeout(Yt)}});pe.log("create store"),ge({message:"create store"});let Si=c=>{let $=c.container,L=()=>{yt=new MutationObserver(Le=>{let{removedNodes:ct}=Le[0];ct.length&&$.append(k.experimental.element$.getValue())}),yt.observe($,{childList:!0})},ne=k.experimental.element$.getValue();if(ne)$.append(ne),L();else{let Le=k.experimental.element$.pipe((0,gt.filter)(ct=>!!ct),(0,gt.once)()).subscribe(ct=>{$.append(ct),L()});Je.add(Le)}},lo=c=>{ge({message:`init video, config: ${JSON.stringify(c)}`}),C?Si(c):(gt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,gt.now)()]}),k.initVideo(c)),pe.log("init video",{isInteractive:C}),c.subtitles&&k.setExternalTextTracks(c.subtitles),ie=c,Ye=c.subtitlesForcedLanguage||""},co=new gt.Subject,ci=c=>co.next(c),ht=new gt.Subject,xi=new gt.Subject,di=new gt.Subject,yt=null,gi={actionRewind$:ht,actionSeek$:xi,inPiP$:Gt,inFullscreen$:new gt.Observable(c=>Ht.subscribe($=>c.next($))),actionSetSubtitle$:di,nextMovie$:co},Jt={actionSeek$:xi,playerSize$:new gt.Observable(c=>pt.subscribe($=>c.next($))),inPiP$:Gt,inFullscreen$:new gt.Observable(c=>Ht.subscribe($=>c.next($))),isLoaderVisible$:new gt.Observable(c=>mi.subscribe($=>c.next($)))};if(J){let{oneStat:c,thinOneStat:$,mediascopePixel:L,statSubscription:ne}=J;c&&(C||ne.add(c.attachTo(k)),ne.add(c.attachToUi(gi)),ne.add(c.attachToAds(Me.events)),c.authorize(s).catch(Le=>{ge({message:`onestat auth error ${String(Le)}`})}),L&&L.attachTo(k)),$&&(ne.add($.attachTo(k,Me.events)),ne.add($.attachToUi(Jt)),ne.add($.attachToAds(Me.events)),$.updateContext({isMobile:$e(qe)}),$.authorize(s))}if(Y){let c=new gt.Subscription,$=(L,ne)=>c.add(L.subscribe(ne));if($(k.events.managedError$,L=>{Y.logIError(L)}),$(k.events.fatalError$,L=>{Y.logIError(L,!0)}),J){let{oneStat:L}=J;L&&$(L.experimental.error$,ne=>{Y.logIError(ne)})}Y.sentrySubscription.add(c)}let Ct=()=>{if(vi.clientChecker.device.isIOS&&ke)try{f0(ke)}catch(c){ge({message:`exitIosSafariFullscreen failed: ${c}`})}};Je.add(k.experimental.element$.subscribe(c=>{c&&(ke=c,c.classList.add("player-media"),Na(oe)&&oe.updateVideoElement(),C&&c.setAttribute("pip","false"),le==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(k.events.ended$.subscribe(()=>{var c;Ct(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(k.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(k.events.started$.subscribe(()=>wt(null,null,function*(){var $,L;Na(oe)&&(yield oe==null?void 0:oe.revealPictureInPicture());let c=k.info.muted$.getValue();($=a==null?void 0:a.onStarted)==null||$.call(a),(L=we.onStarted)==null||L.call(we,c)}))).add(k.events.willSeek$.subscribe(({from:c,to:$})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.call(a,c,$)})).add(k.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(k.info.position$.subscribe(c=>{var L;let $=k.info.duration$.getValue();isFinite($)&&$>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,$,c),Me.setPosition(c,$))})).add(k.events.fatalError$.subscribe(c=>{var $;($=a==null?void 0:a.onCrashed)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.fetcherRecoverableError$.subscribe(c=>{var $;($=a==null?void 0:a.onRecoverableError)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.loadedMetadata$.subscribe(()=>{ti.set(!0)})).add(k.info.is3DVideo$.subscribe(c=>{qt.set(c)})).add(k.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&We.add(Wd),We.add("PLAY_BUTTON")):We.remove("PLAY_BUTTON"))})).add(k.info.liveTime$.subscribe(c=>{var $;($=a==null?void 0:a.onLiveTime)==null||$.call(a,c)})).add(k.info.isStalled$.subscribe(c=>{var $;($=a==null?void 0:a.onStalledChanged)==null||$.call(a,c)})).add(k.info.isLiveEnded$.subscribe(c=>{var $;return c&&(($=a==null?void 0:a.onLiveEnded)==null?void 0:$.call(a))})).add(Me.events.loadStarted$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:$.call(c)})).add(Me.events.loadEnded$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:$.call(c)})).add(Me.events.loadError$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:$.call(c)})).add(Me.events.init$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:$.call(c)})).add(Me.events.ready$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:$.call(c)})).add(Me.events.started$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onStarted)==null?void 0:L.call($,c)})).add(Me.events.timeRemained$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onTimeRemained)==null?void 0:L.call($,c)})).add(Me.events.ended$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onCompleted)==null?void 0:L.call($,c)})).add(Me.events.empty$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:$.call(c)})).add(Me.events.clicked$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClicked)==null?void 0:L.call($,c)})).add(Me.events.closed$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClosed)==null?void 0:L.call($,c)})).add(Me.events.error$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onError)==null?void 0:L.call($,c)})).add(Me.events.paused$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:$.call(c)})).add(Me.events.resumed$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:$.call(c)}));let et=new gt.Subscription,ki=()=>{var ct,Ot,zt;let{debugLog:c}=ee,$,L="#9df7b7",ne="#efd169";if(c&&c!==!0){let{colors:Zt}=c;$=c.tag,L=(ct=Zt==null?void 0:Zt[0])!=null?ct:L,ne=(zt=(Ot=Zt==null?void 0:Zt[1])!=null?Ot:Zt==null?void 0:Zt[0])!=null?zt:ne}let Le=$?`: ${$}`:"";et.add(k.events.log$.subscribe(Zt=>{console.debug(`%c sdk${Le} `,`background:${L};`,`sdk component: ${Zt.component}`,Zt.message)})).add(Ge.log$.subscribe(Zt=>{console.debug(`%c ui${Le} `,`background:${ne};`,`ui component: ${Zt.component}.`,Zt.message)}))},Co=()=>{et.unsubscribe()},jo=(c,$)=>{pe.log("start camera manual rotation",{mx:c,my:$}),k.startCameraManualRotation(c,$)},pn=(c=!1)=>{pe.log("stop camera manual rotation",{immediate:c}),k.stopCameraManualRotation(c)},At=(c,$,L)=>{pe.log("move camera focus px",{xpx:c,ypx:$,dt:L}),k.moveCameraFocusPX(c,$,L)},Ut=()=>{k.holdCamera()},K=()=>{k.releaseCamera()},Pt=Ar(k.info.position$.getValue(),c=>{let $,L,ne=()=>{let Le=k.info.playbackState$.getValue(),ct=k.info.isLive$.getValue(),Ot=k.info.duration$.getValue(),zt=k.info.position$.getValue();if(Le&&[vi.PlaybackState.PLAYING,vi.PlaybackState.PAUSED].includes(Le)){let Zt=ct?zt-Ot:k.getExactTime();Zt!==L&&c(Zt),L=Zt}$=requestAnimationFrame(ne)};return ne(),()=>cancelAnimationFrame($)}),ni=li(k.info.playbackState$),_t=li(k.info.currentBuffer$),Mt=li(k.info.isEnded$),Xt=li(k.info.isLive$),ft=ee.features.playbackRate?li(k.info.canChangePlaybackSpeed$):Ar(!1),Ui=li(k.info.liveBufferTime$),zi=li(k.info.volume$),Go=li(k.info.muted$),To=Lu(k.info.predefinedQualityLimitType$.pipe((0,gt.map)(c=>c===vi.PredefinedQualityLimits.TRAFFIC_SAVING)),k.info.predefinedQualityLimitType$.getValue()===vi.PredefinedQualityLimits.TRAFFIC_SAVING),uo=Lu(k.info.predefinedQualityLimitType$.pipe((0,gt.map)(c=>c===vi.PredefinedQualityLimits.HIGH_QUALITY)),k.info.predefinedQualityLimitType$.getValue()===vi.PredefinedQualityLimits.HIGH_QUALITY),Wi=li(k.info.autoQualityLimitingAvailable$),Mr=li(k.info.availableQualities$),yo=li(k.info.availableQualitiesFps$),po=li(k.info.chromecastState$),Ki=li(k.info.chromecastDeviceName$),Yo=li(k.info.currentFormat$),Zo=li(k.info.throughputEstimation$),ur=li(k.info.videoBitrate$),pr=li(k.info.intrinsicVideoSize$),fr=li(k.info.duration$),ms=li(k.info.isAudioAvailable$),gs=()=>{Yt&&clearTimeout(Yt),Yt=null},fn=wi([fr,Xt],([c,$])=>$?-c:c),vn=wi([ni],([c])=>c===vi.PlaybackState.PLAYING),Yn=li(k.info.atLiveEdge$),Xo=li(k.info.atLiveDurationEdge$),Jo=li(k.info.position$),vr=wi([Jo,fr],([c,$])=>isFinite(c)&&isFinite($)&&!!$),mr=wi([po],([c])=>c===vi.ChromecastState.CONNECTED),Lr=li(k.info.availableVideoStreams$),gr=ee.features.audioLanguages?li(k.info.availableAudioStreams$):Ar([]),Xr=li(k.info.currentVideoStream$),hr=li(k.info.currentAudioStream$),fo=c=>{c.language&&jf(c.language),k.setVideoStream(c)},_r=(c,$)=>{k.setAudioStream(c),ui($)&&(c.language&&jf(c.language),ee.features.userVideoPrefs&&i&&Zf(ee.userSalt,String(i),{audioTrackId:c.id}))},Vn=c=>{let $;if(c.length===1&&($=c.at(0)),$!=null||($=c.find(ne=>"isDefault"in ne&&ne.isDefault)),ee.features.userVideoPrefs&&i){let ne=Du(ee.userSalt,String(i));if(ne!=null&&ne.audioTrackId){let Le=c.find(ct=>ct.id===ne.audioTrackId);$=Le!=null?Le:$}}let L=Z1();return L&&($!=null||($=c.find(({language:ne})=>L===ne))),$!=null||($=c.at(0)),$},Rn=c=>{pe.log("change audio stream",{id:c});let $=k.info.availableAudioStreams$.getValue().find(L=>L.id===c);$&&_r($,!0)},vo=!1;Je.add(k.info.availableAudioStreams$.subscribe(c=>{if(!vo&&c.length){let $=Vn(c);$&&(k.setAudioStream($),vo=!0)}})),gr.subscribe(c=>{var $;($=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||$.call(a,c.map(({label:L="",id:ne="",language:Le=""})=>({label:L,language:Le,id:ne})))}),hr.subscribe(c=>{var $;return c&&(($=a==null?void 0:a.onAudioStreamChanged)==null?void 0:$.call(a,c.id))});let br=!1;Je.add(k.info.availableVideoStreams$.subscribe(c=>{if(!br&&c.length){let $=Vn(c);$&&(k.setVideoStream($),br=!0)}}));let en=de(void 0),xt=li(k.info.isAutoQualityEnabled$,c=>c&&en.set(void 0)),hi=li(k.info.currentQuality$,()=>en.set(void 0)),$r=wi([en,hi],([c,$])=>c!=null?c:$),Zn=wi(Yo,c=>c!==vi.VideoFormat.MPEG),Jr=wi([Mr,yo,xt,$r,Zn],([c,$,L,ne,Le])=>{let ct=[];Le&&ct.push({value:"auto",displayValue:Re("auto_quality_option"),selected:L});let Ot=c.filter(zt=>!(0,gt.isInvariantQuality)(zt));for(let zt of Ot){let Zt=$[zt];ct.push({value:zt,displayValue:`${zt}${Zt?H0(Zt):""}`,selected:L?!1:zt===ne})}return ct}),tn=li(k.info.currentPlaybackRate$),On=wi([tn,Yn,Xo],([c,$,L])=>{let ne=L||C?1:ee.controls.playbackRateMin,Le=$?1:ee.controls.playbackRateMax,ct=ee.controls.playbackRateStep,Ot=[];for(let zt=ne;zt<=Le;zt+=ct)Ot.push({value:zt,displayValue:zt===1?Re("playback_rate_1"):Re("playback_rate",{multiplier:zt.toString(10)}),selected:c===zt});return Ot}),Pi={displayValue:Re("subtitles_off"),value:lp,language:""},qi=de(q({},Pi)),on=ee.features.subtitles?li(k.info.availableTextTracks$):Ar([]),Xn=H1(),mn=wi([on,qi],([c,$],L)=>{var ct;let ne=[],Le=c.find(({id:Ot})=>Ot===$.value);if(Le!=null&&Le.url){let[,Ot]=(ct=Xn.find(Le.url))!=null?ct:[];if(Ot){L(Ot);return}Fe.download(Le.url).then(zt=>{if(!zt||Fe.isDestroyed())return;let Zt=new F0,Hs=Le.language;if(Hs){let F_=!!Le.isAuto,U_=Zt.parse(zt,Hs);ne.push({lang:Hs,subtitles:U_,isAuto:F_,id:Le.id})}Xn.add(Le.url,ne),$e(qi).value===$.value&&L(ne)}).catch(zt=>{var Zt;(Zt=J==null?void 0:J.oneStat)==null||Zt.logError({errorType:"Subtitles download",fatal:!1}),Y==null||Y.report(zt,{errorType:"Subtitles download",fatal:!1})})}L(ne)}),gn=wi([tn,vn,qi],([c,$,L],ne)=>{let Ot;if(k.info.isLive$.getValue()&&$&&L.value!==Pi.value){let Zt=()=>{let Hs=1e3/(3*c);Ot=setTimeout(Zt,Hs),ne(Date.now())};return Zt(),()=>clearTimeout(Ot)}}),Jn=wi([on,qi],([c,$])=>{if(!c.length)return[];let L=[];for(let{language:ne,isAuto:Le,id:ct}of c){let Ot=ne&&gc(ne);ne&&Ot&&L.push({displayValue:Le?Re("subtitles_auto",{language:Ot}):Ot,value:ct,selected:($==null?void 0:$.value)===ct,isAuto:Le,language:ne})}return L.length?(L.unshift(jt(q({},Pi),{selected:($==null?void 0:$.value)===Pi.value})),L):[]}),hn={available:[],prev:[]},Nn=()=>{var $,L;let c=k.experimental.getCurrentTime$.getValue();return(L=($=c==null?void 0:c())!=null?$:ke==null?void 0:ke.currentTime)!=null?L:0},Eo=wi([Pt,qi,mn,gn],([c,$,L,ne])=>{var ct;let Le=k.info.isLive$.getValue();if(Le&&hn.prev!==L){let Ot=L.find(({id:Zt})=>Zt===$.value),zt=hn.prev.find(({id:Zt})=>Zt===$.value);if(Ot){let Zt=jt(q({},Ot),{subtitles:[...(ct=zt==null?void 0:zt.subtitles)!=null?ct:[],...Ot.subtitles]});hn.available=[Zt],hn.prev=L}}if($&&$.value!==Pi.value){let Ot=Le?Nn():c,zt=Le?hn.available:L;return W0(Ot,$,zt,Le)}}),yr=wi([Eo],([c])=>c!=null&&c.texts?c.texts:[]);Je.add(qi.subscribe(c=>{var $,L;if(c.value===Pi.value)($=a==null?void 0:a.onSubtitleOff)==null||$.call(a);else{let ne=Object.entries(sp).find(([Le,ct])=>ct===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,ne?ne[0]:"",c.value)}}));let Vr=de(!0),Dn=wi([_t,fn,Jo,Ui],([c,$,L,ne])=>{var zt;let Le=(zt=c==null?void 0:c.end)!=null?zt:0;if(!ne)return Le/$;let Ot=-L+ne-$;return(Le-Ot)/$}),Bn=li(k.info.availableSources$),Rr=wi([Bn],([c])=>Object.keys((c==null?void 0:c[vi.VideoFormat.MPEG])||{}).length>0),xr=()=>{var L,ne,Le;let c=Object.keys(((ne=(L=k.info.availableSources$)==null?void 0:L.getValue())==null?void 0:ne[vi.VideoFormat.MPEG])||{}),$=(0,gt.getHighestQuality)(c)||gt.VideoQuality.Q_144P;return(Le=ie.sources[vi.VideoFormat.MPEG])==null?void 0:Le[$]},nt=()=>{var $;let c=xr();if(c)pe.log("download video",{url:c}),N1(c,(($=ie==null?void 0:ie.meta)==null?void 0:$.title)||"video");else{let L="There is no URL for download video";pe.log("download video",{message:L}),ge({message:L})}},pi=()=>{ge({message:"toggle muted"});let c=k.info.muted$.getValue();k.info.volume$.getValue()===0&&!c?eo(Qi(),!1):rn(!c,!1)},Ni=()=>{var c;if(Qt.ui.settingsMenu.visible$.set(!1),!$e(Qt.ui.settingsSubMenu.visible$)){let $=$e(Qt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&$){let ne=Gl($),Le={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ne,position:Le,name:"settings"})}}pe.log("close settings menu")},Ji=(c,$=()=>Promise.resolve())=>wt(null,null,function*(){var Le;Qt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Qt.ui.settingsMenu.visible$.set(!0),yield $();let L=$e(Qt.ui.settingsMenu.ref$),ne=pa();if((Le=a==null?void 0:a.uiInfo)!=null&&Le.onSettingsMenu&&L&&ne){let Ot=Gl(L),zt=Ps(L,ne);a.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:zt,name:"settings"})}pe.log("open settings menu",{wasOpenedByKeyboard:c})}),Ro=(c,$=!1)=>{var ct;Qt.ui.settingsSubMenu.visible$.set(!1);let L=$e(Qt.ui.settingsMenu.ref$),ne=pa(),Le=$e(Qt.ui.settingsMenu.visible$);if((ct=a==null?void 0:a.uiInfo)!=null&&ct.onSettingsMenu&&L&&ne)if(Le&&!$){let zt=Gl(L),Zt=Ps(L,ne);a.uiInfo.onSettingsMenu({visible:!0,size:zt,position:Zt,name:"settings"})}else{let zt=Gl(c),Zt={top:0,left:0,bottom:0,right:0},Hs=$e(Qt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:zt,position:Zt,name:Hs})}pe.log("close settings sub menu")},nn=(c,$)=>{var ne;Qt.ui.settingsSubMenu.visible$.set(!0),Qt.ui.settingsSubMenu.ref$.set($),Qt.ui.settingsSubMenu.name$.set(c);let L=pa();if((ne=a==null?void 0:a.uiInfo)!=null&&ne.onSettingsMenu&&$&&L){let ct=Gl($),Ot=Ps($,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:ct,position:Ot})}pe.log("open settings sub menu",{name:c})},Qi=()=>{var $;let c=Math.max(ee.volumeMinRestore,($=Vu())!=null?$:0);return c===0?ee.volumeDefault:c},ui=c=>{let $=ee.features.savePreferredStatesOnUserActionOnly;return!$||$&&!c},eo=(c,$)=>{let L=c===0?Qi():c,ne=k.info.muted$.getValue();ge({message:`set volume, volume: ${c}, preferredVolume: ${L}`});let Le=!l||It.is("ads");ne&&c>0&&Le&&(ne=!1,ui($)&&qf(!1)),k.setVolume(c,ne),Me.setVolume(c),ui($)&&Ff(L)},rn=(c,$)=>{let L=k.info.volume$.getValue();ge({message:`set muted, currentVolume: ${L}, mute: ${c}`});let ne=It.is("ads");if(k.setMuted(c,ne),Me.setVolume(c?0:L),ui($)&&(!ne||!c)&&qf(c),!c&&L===0){let Le=Qi();k.setVolume(Le),ui($)&&Ff(Le),Me.setVolume(Le)}},Hn=de(!1),es=c=>{var $,L;pe.log("set looped",{isLooped:c}),Hn.set(c),k.setLooped(c),(L=($=a==null?void 0:a.uiInfo)==null?void 0:$.onLoopedChanged)==null||L.call($,c)};es(ce);let ts=()=>{var c,$;($=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||$.call(c)},is=(c,$=!1)=>{var L;ge({message:`set autoplayNextEnabled, value: ${c}`}),pe.log("set autoplay next enabled",{autoplayNextEnabled:c}),Qt.ui.autoplayNextEnabled$.set(c),e0(c),$&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},_n=c=>{ge({message:`set timerNextVideoRunning, value: ${c}`}),pe.log("set timer next video running",{timerNextVideoRunning:c}),Qt.ui.timerNextVideoRunning$.set(c)},bn=(c=!0)=>{var L;let $=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{$=(L=a==null?void 0:a.onPrevVideoClick)==null?void 0:L.call(a)}catch(ne){ge({message:"onPrevVideoClick callback failed to execute"})}Q(!0),$&&X()},wr=(c=!0)=>{var L;let $=!0;if(c&&(a!=null&&a.onNextVideoClick))try{$=(L=a==null?void 0:a.onNextVideoClick)==null?void 0:L.call(a)}catch(ne){ge({message:"onNextVideoClick callback failed to execute"})}Q(!1),$&&ae()},$n=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Or=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},ot=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Rt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Ci=()=>{k.prepare()},xo=()=>{(0,gt.assertNonNullable)(Qt);let c=$e(Qt.ui.controls.disabledControls$),$=$e(Qt.playerPhase),L={playerPhase:$,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ge({message:"toggle play"}),$==="ads"){L.action="play",pe.log("toggle adman play",L),Me.togglePlay();return}let ne=()=>{var ct;ge({message:"toggle play, call player.play"}),L.action="play",k.play(),(ct=a==null?void 0:a.onPlay)==null||ct.call(a)},Le=()=>{var ct;ge({message:"toggle play, call player.pause"}),L.action="pause",k.pause(),(ct=a==null?void 0:a.onPause)==null||ct.call(a)};if(k.info.isEnded$.getValue()){if(ge({message:"toggle play, video ended, seek to 0"}),ht.next(),xi.next(fs.SeekAction.REWIND),C){R==null||R();return}k.seekTime(0),ne()}else k.info.playbackState$.getValue()!==vi.PlaybackState.PLAYING?ne():Le();pe.log("toggle play",L)},wo=(c,{changeReason:$="default",appliesTo:L="to-video"}={},ne)=>{ge({message:`set quality, quality: ${c}`}),pe.log("set quality",{quality:c}),k.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Le}=ee.features;Ru(),c!=="auto"?(Le?(Ou({type:"exact_quality",quality:c,videoId:i},L),k.setPredefinedQualityLimits(vi.PredefinedQualityLimits.UNKNOWN)):Uf(i,c),en.set(c),k.setQuality(c)):Le&&$==="default"&&(yn("auto_quality",L,ne),$e(To)&&mo(!1,void 0,ne),$e(uo)&&to(!1,void 0,ne))},mo=(c,$="as-default",L)=>{ge({message:`set trafficSavingEnabled, value: ${c}`}),pe.log("set traffic saving enabled",{trafficSavingEnabled:c});let ne=c?vi.PredefinedQualityLimits.TRAFFIC_SAVING:vi.PredefinedQualityLimits.UNKNOWN;ee.features.qualityDetailsSubMenuEnabled?(Di(ne,$,L),qd(!1)):(k.setPredefinedQualityLimits(ne),ui(L)&&qd(c))},to=(c,$="as-default",L)=>{ge({message:`set highQualityEnabled, value: ${c}`}),pe.log("set high quality enabled",{highQualityEnabled:c}),Di(c?vi.PredefinedQualityLimits.HIGH_QUALITY:vi.PredefinedQualityLimits.UNKNOWN,$,L)},Di=(c,$,L)=>{c!==vi.PredefinedQualityLimits.UNKNOWN&&($e(Wi)&&!$e(xt)&&wo("auto",{appliesTo:$,changeReason:"limit-changed"},L),yn(c,$,L)),k.setPredefinedQualityLimits(c)},yn=(c,$,L)=>{ui(L)&&(Ou({type:c,videoId:i},$),$==="as-default"&&Ou({type:c,videoId:i},"to-video"))},go=(c,$=!0)=>{pe.log("set playback rate",{playbackRate:c}),k.setPlaybackRate(c),ee.features.saveRate&&me&&!k.info.isLive$.getValue()&&$&&X1(c)},Oo=()=>{let c=$e(On),$=c.findIndex(({selected:ne})=>ne);if($===c.length-1)return;let L=c[$+1];go(L.value)},No=()=>{let c=$e(On),$=c.findIndex(({selected:ne})=>ne);if($===0)return;let L=c[$-1];go(L.value)},er=(c=jt(q({},Pi),{selected:!1}),$)=>{pe.log("set subtitles",q({},c)),c.value!==Pi.value&&di.next(c.isAuto?c.value+"_auto":c.value),qi.set(c),ui($)&&(Yf(c.value===Pi.value?void 0:c.language),ee.features.userVideoPrefs&&i&&Zf(ee.userSalt,String(i),{subtitleTrackId:c.value===Pi.value?void 0:c.value}))},Fn=c=>{pe.log("toggle subtitles");let $=$e(qi);($==null?void 0:$.value)===Pi.value?Sr(c):os(c)},Nr=(c,$)=>{pe.log("change subtitle",{enabled:c}),c?Sr(!0,$):os(!0)},Sr=(c,$)=>{pe.log("subtitle on");let L=$e(Jn),ne=$e(Ve),Le=Ye!=null?Ye:ne,ct;$&&(ct=L.find(Ot=>Ot.value===$)),ct!=null||(ct=L.filter(Ot=>Ot.value!==Pi.value).find(Ot=>Ot.language===Le)),er(ct!=null?ct:L[1],c)},os=c=>{pe.log("subtitle off"),er(void 0,c)};Je.add(k.info.availableTextTracks$.subscribe(c=>{var L;function $(){let ne=[];for(let{language:Le,isAuto:ct,id:Ot}of c){let zt=Le&&gc(Le);Le&&zt&&ne.push({id:Ot,language:Le,title:ct?Re("subtitles_auto",{language:zt}):zt})}return ne}(L=a==null?void 0:a.onAvailableSubtitlesChanged)==null||L.call(a,$())}));let Dr=de(!0),ns=c=>{Dr.set(c)},Ke=(c,$,L=!0)=>{var ne;if(ge({message:`seek to time, time: ${c}`}),pe.log("seek to time",{time:c,action:$,forcePrecise:L}),xi.next($),k.info.isLive$.getValue()){let Le=k.info.duration$.getValue(),ct=Math.min(0,Le+c);k.seekTime(ct,L)}else{if(E!=null&&E.getValue())return;k.info.isEnded$.getValue()&&(ge({message:"seek after ended, call callbacks.onPlay"}),(ne=a==null?void 0:a.onPlay)==null||ne.call(a)),k.seekTime(ko(c),L)}},ii=c=>{ge({message:`seek to episode start time: ${c}`}),pe.log("seek to episode start time",{time:c}),Ke(c,fs.SeekAction.EPISODE,!0)},Mi=(c,$,L=!1)=>{ge({message:`seek to percent, percent: ${c}`}),pe.log("seek to percent",{percent:c,action:$});let ne=$e(fn)*c;Ke(ne,$,L)},xn=c=>{ge({message:`seek external, time: ${c}`}),pe.log("seek external",{time:c}),xi.next(fs.SeekAction.UNKNOWN),k.seekTime(k.info.isLive$.getValue()?-c:c)},sn=c=>{var ne,Le;let $=(ne=c.max)!=null?ne:"none",L=(Le=c.min)!=null?Le:"none";ge({message:`set auto quality limitation. Max: ${$}. Min: ${L}`}),pe.log("set auto quality limits",{max:$,min:L}),k.setAutoQualityLimits(c)},Br=c=>{ge({message:`seek external to episode start time: ${c}`}),pe.log("seek external to episode start time",{time:c}),Ke(c,fs.SeekAction.EPISODE,!0)},an=c=>{ge({message:`set playback rate to: ${c}`}),pe.log("set playback rate external",{playbackRate:c}),k.setPlaybackRate(c)},Do=de(!1),Hr=de(!1),wn=wi([fn],([c])=>!!v&&c>=ee.suitableDurationForUsingRichSeek&&ee.features.useRichSeek&&!C),Ns=((v==null?void 0:v.frameWidth)||0)>=((v==null?void 0:v.frameHeight)||0),ra=wi([kt],([c])=>{let $=Yl(c);return Ns?!$:$});Je.add(It.subscribe(c=>{c!=="video"&&Do.set(!1)}));let vt=de(void 0),oi=de(!1),Bo=c=>{ge({message:`start scrubbing, progress: ${c}`}),pe.log("start scrubbing",{progress:c}),oi.set(!0),tr(c)},tr=c=>{vt.set(c)},_e,mt,si=()=>{vt.set(void 0),oi.set(!1)},Ti=()=>{clearTimeout(mt),clearTimeout(_e),_e=window.setTimeout(()=>{si()},500),ke==null||ke.removeEventListener("seeked",Ti)},fi=(c,$=!1)=>{ge({message:`complete scrubbing, progress: ${c}`}),pe.log("complete scrubbing",{progress:c}),Mi(c,fs.SeekAction.SLIDER,$),$e(Qt.ui.isMobile)&&$e(Qt.state.currentFormat$)===vi.VideoFormat.HLS?(ke==null||ke.addEventListener("seeked",Ti),mt=window.setTimeout(()=>{Ti()},300)):si()},ri=wi([Pt,fn,vt],([c,$,L],ne)=>{ne((0,gt.isNonNullable)(L)?L*$:c)}),Ei=de(!1),Sn=()=>{Ei.set(!0)},Un=()=>{Ei.set(!1)},Li=wi([pt],([{width:c}],$)=>{let L=V0(c);$(L)}),sa=H.filter(c=>D1(c)),sl=wi([Li,qe],([c,$])=>$?sa.filter(L=>!L.hideOnMobile):sa.filter(L=>{var ne;return!((ne=L.hideOnDesktopGridTypes)!=null&&ne.includes(c))})),Cr=de(H.filter(c=>B1(c))),al=wi([Cr,Li],([c,$])=>c.filter(L=>{var ne;return!((ne=L.hideOnDesktopGridTypes)!=null&&ne.includes($))})),aa=wi([al,sl],([c,$])=>[...ee.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...ee.features.additionalButtons?$.map((L,ne)=>{var Le;return{id:ne,weight:ne,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Le=L.ariaLabel)!=null?Le:L.tooltip,tooltipText:L.tooltip}}):[]]),Cn=de(B),la=wi([Cn],([c])=>ee.features.additionalSettingsMenuItems?c.map($=>$.type==="SWITCH"?jt(q({},$),{onClick:$.onChangeEnabled}):$):[]),ll=(c,$)=>{let L=$e(Cr).map(ne=>ne.id!==c?ne:q(q({},ne),$));Cr.set(L)},dl=c=>{let $=$e(Cr);if($.some(L=>L.id===c.id)){ge({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),Cr.set($)},hs=c=>{let $=$e(Cr);if(!$.some(L=>L.id===c)){ge({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),Cr.set($)},_s=c=>{xi.next(fs.SeekAction.LIVE),ge({message:"live switch to low latency "+c}),pe.log("live switch to low latency "+c),k.setLiveLowLatency(c)},cl=(c,$)=>{let L=$e(Cn).map(ne=>ne.id!==c?ne:q(q({},ne),$));Cn.set(L)},da=c=>{let $=$e(Cn);if($.some(L=>L.id===c.id)){ge({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),Cn.set($)},ud=c=>{let $=$e(Cn);if(!$.some(L=>L.id===c)){ge({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),Cn.set($)},Tr=de(z),pd=wi([Tr],([c])=>ee.features.additionalContextMenuItems?c:[]),ca=(c,$)=>{let L=$e(Tr).map(ne=>ne.id!==c?ne:q(q({},ne),$));Tr.set(L)},fd=c=>{let $=$e(Tr);if($.some(L=>L.id===c.id)){ge({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),Tr.set($)},ul=c=>{let $=$e(Tr);if(!$.some(L=>L.id===c)){ge({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),Tr.set($)},pl=wi([qe,te],([c,$],L)=>{L(c&&$)}),ua=()=>{xi.next(fs.SeekAction.LIVE),ge({message:"switch to active live"}),pe.log("switch to active live"),k.seekTime(0),k.info.playbackState$.getValue()!==vi.PlaybackState.PLAYING&&Qt.actions.internal.togglePlay()},bt=()=>{pe.log("skip adman"),Me.skip()},$t=(c=!0)=>{var ne;(0,gt.assertNonNullable)(Qt),ge({message:`switch from ads to video, callPlay: ${c}`}),pe.log("switch from ads to video",{callPlay:c}),dt.set("video"),c&&k.play(),l&&rn(!0,!0);let $=(ne=$e(Se))==null?void 0:ne.muted,L=!k.info.muted$.getValue();$!==void 0&&!L&&rn($,!0),Se.set(void 0)},io=()=>{(0,gt.assertNonNullable)(Qt),ge({message:"switch from video to ads"}),pe.log("switch from video to ads"),Qt.actions.internal.pause(),Ct(),dt.set("ads")},Io=c=>{(0,gt.assertNonNullable)(Qt);let $=c?"LiveWaitingStart":"thumb";pe.log("set live waiting start",{state:c,playerPhase:$}),dt.set($)},oo=c=>{(0,gt.assertNonNullable)(Qt);let $=c?"LiveWaitingRecover":"thumb";pe.log("set live waiting recover",{state:c,playerPhase:$}),dt.set($)},_i=c=>{(0,gt.assertNonNullable)(Qt);let $=c?"LiveWaitingRecord":"thumb";pe.log("set live waiting record",{state:c,playerPhase:$}),dt.set($)},ji=()=>((0,gt.assertNonNullable)(Qt),pe.log("get debug text data"),R1(k,ie,Qt,Be.getTraceId())),Ds=()=>((0,gt.assertNonNullable)(Qt),JSON.stringify(Be.getFinishedSpans())),vd=()=>((0,gt.assertNonNullable)(Qt),O1(k,ie,Qt)),pa=()=>ke,Op=()=>{ge({message:"toggle chromecast"}),pe.log("toggle chromecast"),k.toggleChromecast()},Bs=c=>{var L;if((0,gt.assertNonNullable)(Qt),k.info.isEnded$.getValue())return;let $=!c;if($e(Qt.playerPhase)==="ads"){ge({message:`pause ads, internalCall: ${$}`}),pe.log("pause ads",{internalCall:$}),Me.pause();return}ge({message:`pause video, internalCall: ${$}`}),pe.log("pause video",{internalCall:$}),$&&((L=a==null?void 0:a.onPause)==null||L.call(a)),k.pause()},fa=c=>{var L;(0,gt.assertNonNullable)(Qt);let $=!c;if($e(Qt.playerPhase)==="ads"){ge({message:`play ads, internalCall: ${$}`}),pe.log("play ads",{internalCall:$}),Me.play();return}ge({message:`play video, internalCall: ${$}`}),pe.log("play video",{internalCall:$}),$&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),k.play()},jc=c=>{(0,gt.assertNonNullable)(Qt);let $=!c;if($e(Qt.playerPhase)==="ads"){ge({message:"player cannot be stopped during ads via external method"});return}ge({message:`player will be stopped, internalCall: ${$}`}),A==null||A()},Gc=(c,$)=>{(0,gt.assertNonNullable)(Qt),ge({message:`first start, show ads: ${c}, internalCall: ${!$}`}),pe.log("first start",{showAds:c,external:$}),c?dt.set("ads"):(dt.set("video"),$?k.play():Qt.actions.internal.togglePlay())},fl=()=>(ge({message:"getting time codes"}),f),Yc=()=>{let c=fl();if(!c||[0,1].includes(c.length))return;let $=k.info.position$.getValue();return c.find(L=>L.time>$)},Zc=c=>{let $=c;$||($=Yc());let L=k.info.position$.getValue();pe.log("seek to next episode",q({currentTime:L},$)),$&&(ge({message:"seek to next episode"}),Ke($.time,fs.SeekAction.EPISODE,!0))},Xc=()=>{let c=fl();if(!c||[0,1].includes(c.length))return;let $=k.info.position$.getValue(),L=c.findIndex(Le=>Le.time>$),ne=L===-1?c.length-2:L-2;if(!(ne<0))return c[ne]},Jc=c=>{let $=c;$||($=Xc());let L=k.info.position$.getValue();pe.log("seek to prev episode",q({currentTime:L},$)),$&&(ge({message:"seek to prev episode"}),Ke($.time,fs.SeekAction.EPISODE,!0))},Np=()=>(ge({message:"getting preview thumbs data"}),pe.log("get preview thumbs data",q({},v)),v),Dp=()=>wt(null,null,function*(){let c=oe==null?void 0:oe.isActive(),$="none";oe!=null&&oe.isActive()?($="exit",yield oe==null?void 0:oe.exit()):($="request",yield oe==null?void 0:oe.request()),pe.log("toggle picture in picture",{isActive:c,action:$})}),Bp=(c=-90)=>{pe.log("rotate video",{alphaDiff:c}),kt.update($=>$+c)},Ue=de([]);T==null||T.subscribe(c=>{let $=[];for(let L=0;L<c.length;L++){let{range:[ne,Le],subjects:ct}=c[L];L===0&&ne!==0&&$.push({time:0,text:"",interactive:!1,completed:!0}),$.push({time:ne/1e3,text:"",interactive:!0,completed:ee.features.interactiveTimeOpenUri?!ct.length||ct.every(Ot=>Ot.isRemoved):!ct.length}),Le!==1/0&&$.push({time:Le/1e3,text:"",interactive:!1,completed:!0})}Ue.set($)});let bi=de(!1);E==null||E.subscribe(c=>{c&&$e(oi)&&si()});let ko=c=>{if(!C)return c;let $=$e(Ue),L=$e(fn),Le=$e(Jo)/L,ct=$.find(Ot=>Ot.interactive&&!Ot.completed&&Ot.time>Le);return typeof(ct==null?void 0:ct.time)=="number"?Math.min(c,ct.time-.05):c},va=()=>{Qt.ui.episodes.panelOpened$.set(!1)},Tn=()=>{pe.log("destroy store"),clearTimeout(mt),clearTimeout(_e),Je.unsubscribe(),et.unsubscribe(),k.destroy(),Me.destroy(),J==null||J.destroy(),Y==null||Y.destroy(),xe.unsubscribe(),yt==null||yt.disconnect(),yt=null,Fe.destroy()},O_=wi([Yn,It,ft],([c,$,L])=>p.features.doubleForwardAvailable&&!c&&$==="video"&&L),Hp=de(!1),Pg=2,eu=null,Mg=c=>{if(!$e(vn)&&c)return;let $=k.info.currentPlaybackRate$.getValue();c?$!==Pg&&(eu=$,go(Pg,!1),Hp.set(!0)):(eu&&go(eu,!1),Hp.set(!1),eu=null)};It.subscribe(c=>{c!=="video"&&Mg(!1)});let N_=()=>{Bs(!1),Do.set(!0)},D_=()=>{fa(!1),Do.set(!1)},Fp=!1,B_=()=>{Hr.set(!0),Fp=k.info.playbackState$.getValue()===vi.PlaybackState.PLAYING,Bs(!1)},H_=()=>{Hr.set(!1),!$e(Do)&&Fp&&fa(!1),Fp=!1};k.events.playing$.subscribe(()=>{$e(Do)&&Bs(!1)});let Qt={interfaceLanguage$:Ve,isCyrillicRelatedInterface$:Vt,initVideo:lo,videoId:i,isClip:o,playerPhase:It,vsid:Ze,state:{positionExact$:Pt,positionWithScrubbing$:ri,duration$:fn,playbackState$:ni,isPlaying$:vn,isLoaderVisible:mi,bufferedProgress$:Dn,isLive$:Xt,canChangePlaybackSpeed$:ft,isActiveLive$:Yn,isOldestAvailableLive$:Xo,isRewindableLive$:vr,isEnded$:Mt,muted$:Go,volume$:zi,trafficSavingEnabled$:To,highQualityEnabled$:uo,autoQualityLimitingAvailable$:Wi,availableVideoStreams$:Lr,availableAudioStreams$:gr,videoStream$:Xr,audioStream$:hr,currentQuality$:$r,isAutoQualityEnabled$:xt,availableQualities$:Jr,currentPlaybackRate$:tn,availablePlaybackRates$:On,currentSubtitle$:qi,availableTextTracks$:on,availableSubtitlesList$:Jn,currentSubtitleCaptions$:yr,isAutoSubtitleCaptionVisible$:Vr,chromecastState$:po,chromecastDeviceName$:Ki,chromecastConnected$:mr,currentFormat$:Yo,throughputEstimation$:Zo,videoBitrate$:ur,videoSize$:pr,errorLog$:Ce,crashed$:te,isAudioAvailable$:ms,isAudioDisabled:!!l,canDownload:ee.features.download&&!!d,availableSources$:Bn,hasMpegSources$:Rr,isInteractive:C,showInteractiveGraph:ee.features.interactiveGraph,showSeekToInteractive:ee.features.seekToInteractive,showPlayPrevChapter:ee.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ee.features.interactiveTimeIndicator&&!!$e(Ue).length,interactiveEpisodes$:Ue,isInteractiveTime$:E?li(E):de(!1),isInteractiveExpectation$:bi,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:N,looped$:Hn,loadedMetadata$:ti,isAutoQualityAvailable$:Zn,previewTrackActive:Do,previewTrackDragInProgress:Hr},ui:{t:Re,controlsVisible:de(!1),touched:de(!1),controls:{prevButton:de(void 0),playButton:de(void 0),replayButton:de(void 0),nextButton:de(void 0),playPrevChapterButton:de(void 0),seekToInteractiveButton:de(void 0),interactiveGraphButton:de(void 0),liveButton:de(void 0),time:de(void 0),episodes:de(void 0),volume:de(void 0),subtitles:de(void 0),settings:de(void 0),context:de(void 0),chromecast:de(void 0),pip:de(void 0),fullscreen:de(void 0),vkLogo:de(void 0),interactiveTimeIndicator:de(void 0),timeline:de(void 0),autoplayNextToggle:de(void 0),additionalButtons:H.length?H.reduce(c=>[...c,de(void 0)],[]):[],disabledControls$:We},modals:{hotKeyMap:{show:de(!1),data:de({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ht,isFullscreenOpenedByKeyboard:st,rotateAlpha:kt,isAutoplay:de(!1),debugPanelVisible:de(!1),episodes:{panelOpened$:de(!1),openedByKeyboard$:de(!1)},contextMenu:{visible$:de(!1),btnRef$:de(void 0),openedByBtnKeyboard$:de(!1),openedByHotKey$:de(!1),lastActiveElem$:de(void 0),showContextMenuBtn$:de(!1),position$:de({top:0,left:0})},playerSize:pt,isMobile:qe,mobileNotReportControlHidden$:pl,icon3DVideoVisible:de(!1),scrubbingInProgress:oi,volumeChangingInProgress:Ei,is3DVideo:qt,currentGridType$:Li,additionalButtonsDeprecated$:sl,additionalDesktopControlPanelRightButtons$:aa,additionalSettingsMenuItems$:la,additionalContextMenuItems$:pd,interactiveHideMobileControls:de(!1),overlayContainer$:de(void 0),startedByKeyboard$:de(!1),autoplayNextEnabled$:de(!1),timerNextVideoRunning$:de(!0),settingsMenu:{visible$:de(!1),ref$:de(void 0),openedByBtnKeyboard$:de(!1)},settingsSubMenu:{visible$:de(!1),ref$:de(void 0),name$:de(void 0)},userActionsDisabled:de(!1),hiddenControls:{volume:de(!1),vkLogo:de(!1),pip:de(!1),chromecast:de(!1),settings:de(!1)},isControlsAvailable:Dr,controlBlocks:{topLeft:de(void 0),topRight:de(void 0),middle:de(void 0),bottom:de(void 0),bottomLeft:de(void 0),bottomRight:de(void 0)},videoTitleInfo:de(void 0),doubleForwardOn$:Hp,doubleForwardAvailable$:O_,previewTrackNotificationVisible:de(!1),previewTrackActive:Do,previewTrackDragInProgress:Hr,previewTrackAvailable:wn,isPreviewTrackHorizontallyAligned:ra},ads:{position:de(0),duration:de(0),playbackState:de("inactive"),canSkip:de(!1),secondsToWatchBeforeSkip:de(0),postrollPassed:de(!1)},webApi:{pictureInPictureApi:oe,annotationsApi:He,slotsApi:Xe},actions:{internal:{preload:Ci,firstStart:c=>Gc(c,!1),play:()=>fa(!1),pause:()=>Bs(!1),togglePlay:xo,toggleMuted:pi,openSettingsMenu:Ji,closeSettingsMenu:Ni,openSettingsSubMenu:nn,closeSettingsSubMenu:Ro,setVolume:c=>eo(c,!1),setMuted:c=>rn(c,!1),startVolumeChanging:Sn,stopVolumeChanging:Un,setVideoStream:fo,setAudioStream:c=>_r(c,!1),setQuality:(c,$)=>wo(c,$,!1),setTrafficSavingEnabled:(c,$)=>mo(c,$,!1),setHighQualityEnabled:(c,$)=>to(c,$,!1),setPlaybackRate:go,incrementPlaybackRate:Oo,decrementPlaybackRate:No,setSubtitle:c=>er(c,!1),toggleSubtitle:()=>Fn(!1),togglePictureInPicture:Dp,startScrubbing:Bo,progressScrubbing:tr,completeScrubbing:fi,toggleChromecast:Op,switchToActiveLive:ua,switchFromAdsToVideo:$t,switchFromVideoToAds:io,skipAd:bt,setLiveWaitingStart:Io,setLiveWaitingRecover:oo,setLiveWaitingRecord:_i,getDebugTextData:ji,getTraceTextData:Ds,getDebugPanelData:vd,getVideoElement:pa,seekTime:(c,$,L)=>Ke(c,$,L),clearDelayedBufferingCheckTimeout:gs,seekEpisodeStartTime:ii,seekToPercent:Mi,getNextEpisode:Yc,seekToNextEpisode:Zc,getPrevEpisode:Xc,seekToPrevEpisode:Jc,startLogging:ki,stopLogging:Co,startCameraManualRotation:jo,stopCameraManualRotation:pn,moveCameraFocusPX:At,holdCamera:Ut,releaseCamera:K,getVideoEpisodes:fl,getPreviewThumbsData:Np,downloadVideo:nt,addLanguage:Xf,setLanguage:Te,nextMovie:ci,videoRotate:Bp,correctSeekTimeToInteractive:ko,replayInteractive:R,setLooped:es,reportProblem:ts,setAutoplayNextEnabled:is,setTimerNextVideoRunning:_n,prevVideoClick:bn,nextVideoClick:wr,nextVideoAnnouncementShow:$n,nextVideoAnnouncementClick:Or,nextVideoAnnouncementAuto:ot,nextVideoAnnouncementCancel:Rt,checkFullscreenSupport:Ft,changeDoubleForwardOn:Mg,closePreviewTrack:D_,previewTrackOpened:N_,previewTrackDragStarted:B_,previewTrackDragFinished:H_},external:{firstStart:c=>Gc(c,!0),play:()=>fa(!0),pause:()=>Bs(!0),stop:()=>jc(!0),seekTime:c=>xn(c),seekEpisodeStartTime:c=>Br(c),setPlaybackRate:c=>an(c),setAutoQualityLimits:c=>sn(c),setMuted:c=>rn(c,!0),toggleSubtitle:()=>Fn(!0),changeSubtitle:Nr,setVolume:c=>eo(c,!0),returnFocusToEpisodes:va,updateAdditionalSettingsItem:cl,addAdditionalSettingsItem:da,removeAdditionalSettingsItem:ud,updateAdditionalContextItem:ca,addAdditionalContextItem:fd,removeAdditionalContextItem:ul,updateAdditionalButton:ll,addAdditionalButton:dl,removeAdditionalButton:hs,setLiveLowLatency:_s,hideControls:()=>ns(!1),showControls:()=>ns(!0),setQuality:c=>wo(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>mo(c,"to-video",!0),setHighQualityEnabled:c=>to(c,"to-video",!0),changeAudioStream:Rn}},callbacks:a,setUiCallbacks:c=>{we=q({},c)},getAdmanWrapper:()=>Me,getLogger:()=>Ge,getPlayer:()=>k,destroy:Tn};return Qt};function jn(t,e,i,o){var f;let r=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:a,right:u}=Ps(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var t4=["disabledControls$","additionalButtons"],i4=["interactiveTimeIndicator"],Xl=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!t4.includes(r)){let l=o||i4.includes(r);s.set(jn(t,i,r,l))}}};var dp=(t,e,i)=>wt(null,null,function*(){yield $o(),e&&i&&(i.focus(),t.set(!1))});var o4=Ie('<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 Qv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=o4();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function jv(t,e){F(e,!0);let[i,o]=De(),r=()=>S(a,"$contextMenuVisible$",i),s=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=he(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,x=j(void 0);Qe(()=>{n(x)&&Lt(()=>{p.set(n(x))})});let w=E=>{let R=Js(E),A=S0(n(x));v.set(A),u.set(R),a.set(!r())},y=()=>{f.set(!0)},C=()=>{f.set(!1)},T=m(()=>r()?"opened":"");Kt(t,{get className(){return n(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:y,blur:C,get ariaExpanded(){return r()},get ref(){return n(x)},set ref(E){O(x,E,!0)},children:(E,R)=>{Qv(E,{})},$$slots:{default:!0}}),U(),o()}var n4=t=>{t.stopPropagation()},r4=M("<div><!> <div></div> <div></div></div>"),s4={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;}
|
|
234
234
|
|
|
235
235
|
@media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
|
|
236
236
|
}
|
|
@@ -255,16 +255,16 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
|
|
|
255
255
|
opacity: 0;
|
|
256
256
|
}
|
|
257
257
|
}.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);
|
|
258
|
-
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 bc(t,e){var Z;F(e,!0),W(t,l4);let[i,o]=Be(),r=()=>S(C,"$isMobile",i),s=()=>S(A,"$areControlsVisible",i),l=()=>S(N,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(y,"$interactiveControlsOpacity$",i),u=()=>S(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),v=h(e,"ref",15,void 0),p=j(void 0),x=_e(),w=Co(),{interactiveControlsOpacity$:y}=w,C=x.ui.isMobile,T=x.ui.isFullscreen,E=x.state.isInteractiveTime$,R=w.showInteractiveTimeIndicatorTooltip$,A=x.ui.controlsVisible,I=(Z=x.callbacks)==null?void 0:Z.onInteractiveTimeIndicatorClick,N=x.ui.currentGridType$,H=m(()=>!r()&&s()),B=m(()=>Ms(l(),"s")),z=m(()=>!d()||!!a()||n(H)),X=j(!1);We(()=>{O(X,n(z),!0)});let le=()=>{O(X,!0)},q=()=>{var ne;ce(),(ne=n(p))==null||ne.addEventListener("animationiteration",le,{once:!0})},ce=()=>{var ne;O(X,!1),(ne=n(p))==null||ne.removeEventListener("animationiteration",le)},J=ne=>{R.set(ne)},ve=m(()=>u()&&!n(z));We(()=>{u()?q():ce()});let se=()=>{n(z)||(R.set(!0),I==null||I())};pn(()=>{R.clearTimeout(),ce()});let de=()=>{R.set(!1)},Le=Y("tooltip_interactive_interaction_time_indicator");var Se=a4();let ie;Se.__mousemove=[s4],Se.__click=se;var Ne=_(Se);Ro(Ne,{get tooltipContent(){return Le},get tooltipActive(){return n(ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return v()},set ref(ne){v(ne)},children:(ne,He)=>{uc(ne,{completed:!0})},$$slots:{default:!0}});var pe=P(Ne,2);let k;lt(pe,ne=>v(ne),()=>v());var qe=P(pe,2);let Re;lt(qe,ne=>O(p,ne),()=>n(p)),g(Se),D((ne,He,Xe)=>{ie=re(Se,1,"interactive-episode-icon-animated svelte-od3veb",null,ie,ne),k=re(pe,1,"ref-block svelte-od3veb",null,k,He),Re=re(qe,1,"pulse svelte-od3veb",null,Re,Xe)},[()=>({mobile:r(),fullscreen:f(),invisible:n(z),"icon-small":n(B)}),()=>({hidden:n(z)}),()=>({paused:n(X)})]),Et("mouseleave",Se,de),b(t,Se),U(),o()}ct(["mousemove","click"]);function up(t,e){F(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),s=h(e,"ref",15);Ro(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return r()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=Fe();let u=m(()=>e.buttonComponent);var f=fe(a);Ri(f,()=>n(u),(v,p)=>{p(v,ks(()=>{var x;return(x=e.buttonComponentProps)!=null?x:{}}))}),b(l,a)},$$slots:{default:!0}}),U()}var Vs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var c4=Ie('<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 Gv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=c4();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function $c(t,e){let i=h(e,"isPrev",3,!1),o=h(e,"isMobile",3,!1),r=h(e,"width",3,"24"),s=h(e,"height",3,"24"),l=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");Gv(t,{get style(){return n(l)},get width(){return r()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return n(d)}})}var u4=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),p4=M("<!> <!>",1),f4={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 Qa(t,e){F(e,!0),W(t,f4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=_e().ui.t,d=m(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=m(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Kt(t,{get className(){return n(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=p4(),x=fe(p);{var w=T=>{var E=u4();b(T,E)};V(x,T=>{o()&&T(w)})}var y=P(x,2);let C=m(()=>e.type==="prev");$c(y,{get isMobile(){return o()},get isPrev(){return n(C)}}),b(f,p)},$$slots:{default:!0}}),U()}var v4=Ie('<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 yc(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=v4();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var Q0=require("@vkontakte/videoplayer-shared/es2015");var m4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),g4=M("<!> <div><!></div>",1),h4={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 ed(t,e){F(e,!0),W(t,h4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),s=h(e,"className",3,""),l=h(e,"click",3,Q0.noop),d=Y("tooltip_restart"),a=m(()=>`${o()?"btn-m--play":""} ${s()}`);Kt(t,{get className(){return n(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return ps.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=g4(),p=fe(v);{var x=T=>{var E=m4();b(T,E)};V(p,T=>{o()&&T(x)})}var w=P(p,2);let y;var C=_(w);yc(C,{}),g(w),D(T=>y=re(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(u,v)},$$slots:{default:!0}}),U()}var _4=Ie('<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 ur(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=_4(),d=_(l);g(l),D(()=>{Ke(l,"width",i()),Ke(l,"height",o()),Ke(l,"viewBox",r()),Ke(d,"fill",s())}),b(t,l)}var b4=Ie('<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 Rs(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=b4(),d=_(l);g(l),D(()=>{Ke(l,"width",i()),Ke(l,"height",o()),Ke(l,"viewBox",r()),Ke(d,"fill",s())}),b(t,l)}var j0=require("@vkontakte/videoplayer-shared/es2015");var $4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),y4=M("<!> <div><!></div>",1),x4={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 td(t,e){F(e,!0),W(t,x4);let[i,o]=Be(),r=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=Co(),l=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),a=h(e,"isPlaying",3,!1),u=h(e,"disabled",3,!1),f=h(e,"className",3,""),v=h(e,"click",3,j0.noop),x=_e().ui.t,{toggle:w}=s,y=m(()=>w),C=m(()=>r()!==null),T=m(()=>n(C)?r():a()),E=m(()=>n(T)?x("tooltip_pause"):x("tooltip_play")),R=m(()=>n(T)?Rs:ur),A=m(()=>`${d()?"btn-m--play":""} ${f()}`),I=m(()=>n(C)?n(y):v());Kt(t,{get className(){return n(A)},testId:"btn-play",get click(){return n(I)},get disabled(){return u()},get ariaLabel(){return n(E)},get ariaKeyShortCut(){return ps.KeyK},get ref(){return l()},set ref(N){l(N)},children:(N,H)=>{var B=y4();let z=m(()=>n(R));var X=fe(B);{var le=ve=>{var se=$4();b(ve,se)};V(X,ve=>{d()&&ve(le)})}var q=P(X,2);let ce;var J=_(q);Ri(J,()=>n(z),(ve,se)=>{se(ve,{})}),g(q),D(ve=>ce=re(q,1,"svelte-1ot3duq",null,ce,ve),[()=>({mobile:d()})]),b(N,B)},$$slots:{default:!0}}),U(),o()}var w4=Ie('<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 Yv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=w4();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function xc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=Y("tooltip_interactive_go_back"),l=m(()=>o()?"hidden":"");Kt(t,{get className(){return n(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Yv(d,{})},$$slots:{default:!0}}),U()}var S4=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),C4={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 wc(t,e){F(e,!0),W(t,C4);let[i,o]=Be(),r=()=>S(a,"$autoplayNextEnabled$",i),s=h(e,"ref",15,void 0),l=_e(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!r(),!0)},v=d("aria_label_autoplay"),p=m(()=>r()?"true":"false");Kt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return n(p)},get ref(){return s()},set ref(x){s(x)},children:(x,w)=>{var y=S4(),C=_(y);let T;var E=_(C);{var R=I=>{ur(I,{width:"14",height:"14",fill:"#000"})},A=I=>{Rs(I,{width:"14",height:"14",fill:"#000"})};V(E,I=>{r()?I(R):I(A,!1)})}g(C),g(y),D(I=>T=re(C,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:r()})]),b(x,y)},$$slots:{default:!0}}),U(),o()}var T4=Ie('<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 Zv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=T4();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function Sc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=Y("tooltip_interactive_seek"),l=m(()=>o()?"hidden":"");Kt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Zv(d,{})},$$slots:{default:!0}}),U()}var E4=Ie('<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 Xv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=E4();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var I4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Jv(t,e){W(t,I4);let i=h(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Xv(t,{get"data-testid"(){return n(o)}})}function Cc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=h(e,"graphIsOpened",3,!1),d=_e().ui.t,a=m(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");Kt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=m(()=>!!s());Jv(f,{get isOpened(){return n(p)}})},$$slots:{default:!0}}),U()}var em=require("@vkontakte/videoplayer-core/es2015");function Tc(t,e){F(e,!0);let[i,o]=Be(),r=()=>S(u,"$playbackState$",i),s=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),a=_e(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=m(()=>()=>{if(!l()){f();return}r()===em.PlaybackState.PAUSED&&v()}),x=m(()=>s()?"":"btn--live btn-full-opacity"),w=m(()=>l()?"btn-live":"btn-live-offset"),y=m(()=>l()&&r()===em.PlaybackState.PLAYING);Kt(t,{get className(){return n(x)},get testId(){return n(w)},get disabled(){return n(y)},get ariaLabel(){return d()},get click(){return n(p)},children:(C,T)=>{Xd(C,{get isActive(){return l()}})},$$slots:{default:!0}}),U(),o()}var tm=require("@vkontakte/videoplayer-shared/es2015");var k4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),A4=M('<img class="icon" aria-hidden="true"/>');function ja(t,e){"use strict";let i=j(!1),o=()=>{O(i,!0)};var r=Fe(),s=fe(r);{var l=a=>{var u=k4();b(a,u)},d=a=>{var u=A4();D(()=>Ke(u,"src",e.icon)),Et("error",u,o),Ea(u),b(a,u)};V(s,a=>{n(i)?a(l):a(d,!1)})}b(t,r)}function im(t,e){F(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,tm.noop),r=h(e,"ref",15),s=m(()=>o()===tm.noop),l=m(()=>n(s)||i()),d=m(()=>n(s)?"btn-full-opacity":"");Ro(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return r()},set ref(a){r(a)},children:(a,u)=>{let f=m(()=>{var v;return(v=e.testId)!=null?v:e.id});Kt(a,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(f)},children:(v,p)=>{ja(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var G0=t=>!!t.buttonComponent;var Os={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var pp=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(qn(t,i,r,o))};var fp=require("@vkontakte/videoplayer-shared/es2015"),Y0=10,Z0=40,om=.2,M4=.5,L4=65,V4=114,R4=4,X0=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=m(()=>i?L4:V4),r=j(!1),s=j(0),l=j(0),d=m(()=>n(o)+Y0-Z0-R4),a=m(()=>(0,fp.interpolate)(n(s),[om,1],[0,-n(d)])),u=m(()=>(0,fp.interpolate)(n(s),[om,1],[0,Z0])),f=m(()=>(0,fp.interpolate)(n(s),[om,1],[0,n(o)+Y0]));return{progressBarY:()=>n(a),controlsY:()=>n(u),calculatedHeight:()=>n(f),onPointerDown:y=>{var C;O(l,((C=e())==null?void 0:C.getBoundingClientRect().bottom)||0,!0),O(r,!0)},onPointerMove:y=>{if(!n(r))return;let C=Math.max(Math.min(y.clientY-n(l),0),-n(d));O(s,Math.abs(C/n(d)),!0)},onPointerUp:()=>{O(r,!1),O(s,n(s)>=M4?1:0,!0),n(s)===1&&t()},closePreviewTrack:()=>{O(s,0)}}};var O4=t=>t;function ms(t,{delay:e=0,duration:i=400,easing:o=O4}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var N4=M('<span class="root svelte-mx6l45"> </span>'),D4={hash:"svelte-mx6l45",code:".root.svelte-mx6l45 {font-size:13px;line-height:16px;color:rgba(255, 255, 255, 1);box-shadow:0px 8px 24px 0px rgba(0, 0, 0, 0.08);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.08);font-weight:500;}"};function nm(t,e){W(t,D4);var i=N4(),o=_(i,!0);g(i),D(()=>me(o,e.time)),b(t,i)}var B4=M('<div class="tooltip-wrapper svelte-1xyyqd0"><div><!></div></div>'),H4={hash:"svelte-1xyyqd0",code:'.tooltip-wrapper.svelte-1xyyqd0 {position:relative;display:block;}.tooltip.svelte-1xyyqd0 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-1xyyqd0: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-1xyyqd0 {opacity:1;visibility:visible;}'};function rm(t,e){W(t,H4);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),s=h(e,"translateYPx",3,0),l=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),a=j(void 0),u=j(void 0);function f(C){if(!n(u))return 0;let{width:T}=n(u).getBoundingClientRect(),E=T/2;return C<E?E+l():C>e.containerWidth-E?e.containerWidth-E-d():C}let v=m(()=>f(r()));var p=B4(),x=_(p);let w;var y=_(x);be(y,()=>{var C;return(C=e.children)!=null?C:ue}),g(x),lt(x,C=>O(u,C),()=>n(u)),g(p),lt(p,C=>O(a,C),()=>n(a)),D(C=>{et(p,`transform: translate(${n(v)}px, ${s()}px);`),w=re(x,1,"tooltip svelte-1xyyqd0",null,w,C),et(x,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,p)}var J0=t=>Math.abs(t)/90%4===1;var F4=M('<div class="preview svelte-1wqg760"></div>'),U4=M('<div class="time svelte-1wqg760"> </div>'),z4=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),W4={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function sm(t,e){F(e,!0),W(t,W4);let[i,o]=Be(),r=()=>S(w,"$rotateAlpha",i),s=()=>S(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),a=h(e,"isMobile",3,!1),u=h(e,"videoEpisodes",19,()=>[]),f=h(e,"progress",3,0),v=h(e,"duration",3,0),p=h(e,"isInteractive",3,!1),x=_e(),w=x.ui.rotateAlpha,y=x.ui.playerSize,C=j(0),T=j(0),E=j(""),R=j(0),A=j(0),I=j(0),N=j(0),H=m(()=>op(f(),v(),u())),B=m(()=>Zl(r())),z=m(()=>J0(r())),X=m(ce),le=m(()=>(n(z)?1:-1)*(n(C)/2-n(T)/2)),q=m(()=>n(le)*-1);We(()=>{(Z=>{O(C,Z.width,!0),O(T,Z.height,!0)})(ve())}),We(()=>{(Z=>{O(E,Z.imgSrc,!0),O(R,Z.imgWidth,!0),O(A,Z.imgHeight,!0),O(I,Z.imgOffsetX,!0),O(N,Z.imgOffsetY,!0)})(se(f()))});function ce(){var Xe;let Z=a()?l.MOBILE:l.DESKTOP,{isVertical:ne}=J(),He=30;return(Xe=n(H))!=null&&Xe.text&&(He+=16),(ne||n(B))&&(He+=18,He+=50),Math.min(Math.max(s().height-He,0),Z)}function J(){let Z=e.previewThumbsData.frameWidth,ne=e.previewThumbsData.frameHeight,He=ne>Z;return{width:Z,height:ne,isHorizontal:!He,isVertical:He}}function ve(){let{height:Z,isHorizontal:ne,isVertical:He,width:Xe}=J();return ne&&(Z=Z/Xe*n(X),Xe=n(X)),He&&(Xe=Xe/Z*n(X),Z=n(X)),{width:Xe,height:Z}}function se(Z){let ne;e.previewThumbsData.isUV?ne=Math.floor(v()*Z/e.previewThumbsData.frequency):ne=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Z)));let He=Math.floor(ne/e.previewThumbsData.countPerImage),Xe=Math.floor(ne%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ge=ne%e.previewThumbsData.countPerRow,ee=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ee=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ee++);let ke=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ke=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let he=n(C)*ke,Ue=n(T)*ee,Je=-ge*n(C),Ge=-Xe*n(T);return{imgSrc:e.previewThumbsData.links[He],imgWidth:he,imgHeight:Ue,imgOffsetX:Je,imgOffsetY:Ge}}var de=z4();let Le;var Se=_(de);{var ie=Z=>{var ne=F4();D(()=>et(ne,`width: ${n(C)}px; height: ${n(T)}px; background-image: url(${n(E)}); background-size: ${n(R)}px ${n(A)}px; background-position: ${n(I)}px ${n(N)}px;
|
|
259
|
-
transform: rotate(${r()}deg) ${n(B)?`translate(${n(
|
|
260
|
-
`)),b(
|
|
258
|
+
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 _c(t,e){var Y;F(e,!0),W(t,s4);let[i,o]=De(),r=()=>S(C,"$isMobile",i),s=()=>S(A,"$areControlsVisible",i),l=()=>S(N,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(y,"$interactiveControlsOpacity$",i),u=()=>S(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),v=h(e,"ref",15,void 0),p=j(void 0),x=he(),w=So(),{interactiveControlsOpacity$:y}=w,C=x.ui.isMobile,T=x.ui.isFullscreen,E=x.state.isInteractiveTime$,R=w.showInteractiveTimeIndicatorTooltip$,A=x.ui.controlsVisible,I=(Y=x.callbacks)==null?void 0:Y.onInteractiveTimeIndicatorClick,N=x.ui.currentGridType$,H=m(()=>!r()&&s()),B=m(()=>As(l(),"s")),z=m(()=>!d()||!!a()||n(H)),X=j(!1);Qe(()=>{O(X,n(z),!0)});let ae=()=>{O(X,!0)},Q=()=>{var oe;ce(),(oe=n(p))==null||oe.addEventListener("animationiteration",ae,{once:!0})},ce=()=>{var oe;O(X,!1),(oe=n(p))==null||oe.removeEventListener("animationiteration",ae)},J=oe=>{R.set(oe)},me=m(()=>u()&&!n(z));Qe(()=>{u()?Q():ce()});let se=()=>{n(z)||(R.set(!0),I==null||I())};cn(()=>{R.clearTimeout(),ce()});let le=()=>{R.set(!1)},Pe=Z("tooltip_interactive_interaction_time_indicator");var ye=r4();let ee;ye.__mousemove=[n4],ye.__click=se;var Be=_(ye);Lo(Be,{get tooltipContent(){return Pe},get tooltipActive(){return n(me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return v()},set ref(oe){v(oe)},children:(oe,He)=>{cc(oe,{completed:!0})},$$slots:{default:!0}});var pe=P(Be,2);let k;lt(pe,oe=>v(oe),()=>v());var Ge=P(pe,2);let Me;lt(Ge,oe=>O(p,oe),()=>n(p)),g(ye),D((oe,He,Xe)=>{ee=re(ye,1,"interactive-episode-icon-animated svelte-od3veb",null,ee,oe),k=re(pe,1,"ref-block svelte-od3veb",null,k,He),Me=re(Ge,1,"pulse svelte-od3veb",null,Me,Xe)},[()=>({mobile:r(),fullscreen:f(),invisible:n(z),"icon-small":n(B)}),()=>({hidden:n(z)}),()=>({paused:n(X)})]),St("mouseleave",ye,le),b(t,ye),U(),o()}ut(["mousemove","click"]);function cp(t,e){F(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),s=h(e,"ref",15);Lo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return r()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=ze();let u=m(()=>e.buttonComponent);var f=fe(a);Ri(f,()=>n(u),(v,p)=>{p(v,Es(()=>{var x;return(x=e.buttonComponentProps)!=null?x:{}}))}),b(l,a)},$$slots:{default:!0}}),U()}var Ms={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var l4=Ie('<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 Gv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=l4();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function bc(t,e){let i=h(e,"isPrev",3,!1),o=h(e,"isMobile",3,!1),r=h(e,"width",3,"24"),s=h(e,"height",3,"24"),l=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");Gv(t,{get style(){return n(l)},get width(){return r()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return n(d)}})}var d4=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),c4=M("<!> <!>",1),u4={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 qa(t,e){F(e,!0),W(t,u4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=he().ui.t,d=m(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=m(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Kt(t,{get className(){return n(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=c4(),x=fe(p);{var w=T=>{var E=d4();b(T,E)};V(x,T=>{o()&&T(w)})}var y=P(x,2);let C=m(()=>e.type==="prev");bc(y,{get isMobile(){return o()},get isPrev(){return n(C)}}),b(f,p)},$$slots:{default:!0}}),U()}var p4=Ie('<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 $c(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=p4();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var Q0=require("@vkontakte/videoplayer-shared/es2015");var f4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),v4=M("<!> <div><!></div>",1),m4={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 Jl(t,e){F(e,!0),W(t,m4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),s=h(e,"className",3,""),l=h(e,"click",3,Q0.noop),d=Z("tooltip_restart"),a=m(()=>`${o()?"btn-m--play":""} ${s()}`);Kt(t,{get className(){return n(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return us.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=v4(),p=fe(v);{var x=T=>{var E=f4();b(T,E)};V(p,T=>{o()&&T(x)})}var w=P(p,2);let y;var C=_(w);$c(C,{}),g(w),D(T=>y=re(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(u,v)},$$slots:{default:!0}}),U()}var g4=Ie('<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 cr(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=g4(),d=_(l);g(l),D(()=>{je(l,"width",i()),je(l,"height",o()),je(l,"viewBox",r()),je(d,"fill",s())}),b(t,l)}var h4=Ie('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function Ls(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=h4(),d=_(l);g(l),D(()=>{je(l,"width",i()),je(l,"height",o()),je(l,"viewBox",r()),je(d,"fill",s())}),b(t,l)}var j0=require("@vkontakte/videoplayer-shared/es2015");var _4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),b4=M("<!> <div><!></div>",1),$4={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 ed(t,e){F(e,!0),W(t,$4);let[i,o]=De(),r=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=So(),l=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),a=h(e,"isPlaying",3,!1),u=h(e,"disabled",3,!1),f=h(e,"className",3,""),v=h(e,"click",3,j0.noop),x=he().ui.t,{toggle:w}=s,y=m(()=>w),C=m(()=>r()!==null),T=m(()=>n(C)?r():a()),E=m(()=>n(T)?x("tooltip_pause"):x("tooltip_play")),R=m(()=>n(T)?Ls:cr),A=m(()=>`${d()?"btn-m--play":""} ${f()}`),I=m(()=>n(C)?n(y):v());Kt(t,{get className(){return n(A)},testId:"btn-play",get click(){return n(I)},get disabled(){return u()},get ariaLabel(){return n(E)},get ariaKeyShortCut(){return us.KeyK},get ref(){return l()},set ref(N){l(N)},children:(N,H)=>{var B=b4();let z=m(()=>n(R));var X=fe(B);{var ae=me=>{var se=_4();b(me,se)};V(X,me=>{d()&&me(ae)})}var Q=P(X,2);let ce;var J=_(Q);Ri(J,()=>n(z),(me,se)=>{se(me,{})}),g(Q),D(me=>ce=re(Q,1,"svelte-1ot3duq",null,ce,me),[()=>({mobile:d()})]),b(N,B)},$$slots:{default:!0}}),U(),o()}var y4=Ie('<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 Yv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=y4();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function yc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=Z("tooltip_interactive_go_back"),l=m(()=>o()?"hidden":"");Kt(t,{get className(){return n(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Yv(d,{})},$$slots:{default:!0}}),U()}var x4=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),w4={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 xc(t,e){F(e,!0),W(t,w4);let[i,o]=De(),r=()=>S(a,"$autoplayNextEnabled$",i),s=h(e,"ref",15,void 0),l=he(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!r(),!0)},v=d("aria_label_autoplay"),p=m(()=>r()?"true":"false");Kt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return n(p)},get ref(){return s()},set ref(x){s(x)},children:(x,w)=>{var y=x4(),C=_(y);let T;var E=_(C);{var R=I=>{cr(I,{width:"14",height:"14",fill:"#000"})},A=I=>{Ls(I,{width:"14",height:"14",fill:"#000"})};V(E,I=>{r()?I(R):I(A,!1)})}g(C),g(y),D(I=>T=re(C,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:r()})]),b(x,y)},$$slots:{default:!0}}),U(),o()}var S4=Ie('<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 Zv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=S4();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function wc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=Z("tooltip_interactive_seek"),l=m(()=>o()?"hidden":"");Kt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Zv(d,{})},$$slots:{default:!0}}),U()}var C4=Ie('<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 Xv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=C4();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var T4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Jv(t,e){W(t,T4);let i=h(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Xv(t,{get"data-testid"(){return n(o)}})}function Sc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=h(e,"graphIsOpened",3,!1),d=he().ui.t,a=m(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");Kt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=m(()=>!!s());Jv(f,{get isOpened(){return n(p)}})},$$slots:{default:!0}}),U()}var em=require("@vkontakte/videoplayer-core/es2015");function Cc(t,e){F(e,!0);let[i,o]=De(),r=()=>S(u,"$playbackState$",i),s=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),a=he(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=m(()=>()=>{if(!l()){f();return}r()===em.PlaybackState.PAUSED&&v()}),x=m(()=>s()?"":"btn--live btn-full-opacity"),w=m(()=>l()?"btn-live":"btn-live-offset"),y=m(()=>l()&&r()===em.PlaybackState.PLAYING);Kt(t,{get className(){return n(x)},get testId(){return n(w)},get disabled(){return n(y)},get ariaLabel(){return d()},get click(){return n(p)},children:(C,T)=>{Zd(C,{get isActive(){return l()}})},$$slots:{default:!0}}),U(),o()}var tm=require("@vkontakte/videoplayer-shared/es2015");var E4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),I4=M('<img class="icon" aria-hidden="true"/>');function Qa(t,e){"use strict";let i=j(!1),o=()=>{O(i,!0)};var r=ze(),s=fe(r);{var l=a=>{var u=E4();b(a,u)},d=a=>{var u=I4();D(()=>je(u,"src",e.icon)),St("error",u,o),Ta(u),b(a,u)};V(s,a=>{n(i)?a(l):a(d,!1)})}b(t,r)}function im(t,e){F(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,tm.noop),r=h(e,"ref",15),s=m(()=>o()===tm.noop),l=m(()=>n(s)||i()),d=m(()=>n(s)?"btn-full-opacity":"");Lo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return r()},set ref(a){r(a)},children:(a,u)=>{let f=m(()=>{var v;return(v=e.testId)!=null?v:e.id});Kt(a,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(f)},children:(v,p)=>{Qa(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var G0=t=>!!t.buttonComponent;var Vs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var up=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(jn(t,i,r,o))};var pp=require("@vkontakte/videoplayer-shared/es2015"),Y0=10,Z0=40,om=.2,A4=.5,P4=65,M4=114,L4=4,X0=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=m(()=>i?P4:M4),r=j(!1),s=j(0),l=j(0),d=m(()=>n(o)+Y0-Z0-L4),a=m(()=>(0,pp.interpolate)(n(s),[om,1],[0,-n(d)])),u=m(()=>(0,pp.interpolate)(n(s),[om,1],[0,Z0])),f=m(()=>(0,pp.interpolate)(n(s),[om,1],[0,n(o)+Y0]));return{progressBarY:()=>n(a),controlsY:()=>n(u),calculatedHeight:()=>n(f),onPointerDown:y=>{var C;O(l,((C=e())==null?void 0:C.getBoundingClientRect().bottom)||0,!0),O(r,!0)},onPointerMove:y=>{if(!n(r))return;let C=Math.max(Math.min(y.clientY-n(l),0),-n(d));O(s,Math.abs(C/n(d)),!0)},onPointerUp:()=>{O(r,!1),O(s,n(s)>=A4?1:0,!0),n(s)===1&&t()},closePreviewTrack:()=>{O(s,0)}}};var V4=t=>t;function vs(t,{delay:e=0,duration:i=400,easing:o=V4}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var R4=M('<span class="root svelte-mx6l45"> </span>'),O4={hash:"svelte-mx6l45",code:".root.svelte-mx6l45 {font-size:13px;line-height:16px;color:rgba(255, 255, 255, 1);box-shadow:0px 8px 24px 0px rgba(0, 0, 0, 0.08);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.08);font-weight:500;}"};function nm(t,e){W(t,O4);var i=R4(),o=_(i,!0);g(i),D(()=>ve(o,e.time)),b(t,i)}var N4=M('<div class="tooltip-wrapper svelte-1xyyqd0"><div><!></div></div>'),D4={hash:"svelte-1xyyqd0",code:'.tooltip-wrapper.svelte-1xyyqd0 {position:relative;display:block;}.tooltip.svelte-1xyyqd0 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-1xyyqd0: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-1xyyqd0 {opacity:1;visibility:visible;}'};function rm(t,e){W(t,D4);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),s=h(e,"translateYPx",3,0),l=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),a=j(void 0),u=j(void 0);function f(C){if(!n(u))return 0;let{width:T}=n(u).getBoundingClientRect(),E=T/2;return C<E?E+l():C>e.containerWidth-E?e.containerWidth-E-d():C}let v=m(()=>f(r()));var p=N4(),x=_(p);let w;var y=_(x);be(y,()=>{var C;return(C=e.children)!=null?C:ue}),g(x),lt(x,C=>O(u,C),()=>n(u)),g(p),lt(p,C=>O(a,C),()=>n(a)),D(C=>{it(p,`transform: translate(${n(v)}px, ${s()}px);`),w=re(x,1,"tooltip svelte-1xyyqd0",null,w,C),it(x,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,p)}var J0=t=>Math.abs(t)/90%4===1;var B4=M('<div class="preview svelte-1wqg760"></div>'),H4=M('<div class="time svelte-1wqg760"> </div>'),F4=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),U4={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function sm(t,e){F(e,!0),W(t,U4);let[i,o]=De(),r=()=>S(w,"$rotateAlpha",i),s=()=>S(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),a=h(e,"isMobile",3,!1),u=h(e,"videoEpisodes",19,()=>[]),f=h(e,"progress",3,0),v=h(e,"duration",3,0),p=h(e,"isInteractive",3,!1),x=he(),w=x.ui.rotateAlpha,y=x.ui.playerSize,C=j(0),T=j(0),E=j(""),R=j(0),A=j(0),I=j(0),N=j(0),H=m(()=>tp(f(),v(),u())),B=m(()=>Yl(r())),z=m(()=>J0(r())),X=m(ce),ae=m(()=>(n(z)?1:-1)*(n(C)/2-n(T)/2)),Q=m(()=>n(ae)*-1);Qe(()=>{(Y=>{O(C,Y.width,!0),O(T,Y.height,!0)})(me())}),Qe(()=>{(Y=>{O(E,Y.imgSrc,!0),O(R,Y.imgWidth,!0),O(A,Y.imgHeight,!0),O(I,Y.imgOffsetX,!0),O(N,Y.imgOffsetY,!0)})(se(f()))});function ce(){var Xe;let Y=a()?l.MOBILE:l.DESKTOP,{isVertical:oe}=J(),He=30;return(Xe=n(H))!=null&&Xe.text&&(He+=16),(oe||n(B))&&(He+=18,He+=50),Math.min(Math.max(s().height-He,0),Y)}function J(){let Y=e.previewThumbsData.frameWidth,oe=e.previewThumbsData.frameHeight,He=oe>Y;return{width:Y,height:oe,isHorizontal:!He,isVertical:He}}function me(){let{height:Y,isHorizontal:oe,isVertical:He,width:Xe}=J();return oe&&(Y=Y/Xe*n(X),Xe=n(X)),He&&(Xe=Xe/Y*n(X),Y=n(X)),{width:Xe,height:Y}}function se(Y){let oe;e.previewThumbsData.isUV?oe=Math.floor(v()*Y/e.previewThumbsData.frequency):oe=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Y)));let He=Math.floor(oe/e.previewThumbsData.countPerImage),Xe=Math.floor(oe%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ge=oe%e.previewThumbsData.countPerRow,ie=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&He===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 ke=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ke=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let we=n(C)*ke,Fe=n(T)*ie,Je=-ge*n(C),Ye=-Xe*n(T);return{imgSrc:e.previewThumbsData.links[He],imgWidth:we,imgHeight:Fe,imgOffsetX:Je,imgOffsetY:Ye}}var le=F4();let Pe;var ye=_(le);{var ee=Y=>{var oe=B4();D(()=>it(oe,`width: ${n(C)}px; height: ${n(T)}px; background-image: url(${n(E)}); background-size: ${n(R)}px ${n(A)}px; background-position: ${n(I)}px ${n(N)}px;
|
|
259
|
+
transform: rotate(${r()}deg) ${n(B)?`translate(${n(ae)}px, ${n(Q)}px)`:""};
|
|
260
|
+
`)),b(Y,oe)};V(ye,Y=>{n(E)&&Y(ee)})}var Be=P(ye,2),pe=_(Be);{var k=Y=>{var oe=ze(),He=fe(oe);{var Xe=ie=>{var ke=cs();D(we=>ve(ke,we),[()=>Z("tooltip_episode_unfinished")]),b(ie,ke)},ge=ie=>{var ke=cs();D(()=>ve(ke,n(H).text||"")),b(ie,ke)};V(He,ie=>{p()&&n(H).completed===!1?ie(Xe):ie(ge,!1)})}b(Y,oe)};V(pe,Y=>{n(H)&&Y(k)})}g(Be);var Ge=P(Be,2);{var Me=Y=>{var oe=H4(),He=_(oe,!0);g(oe),D(()=>ve(He,d())),b(Y,oe)};V(Ge,Y=>{p()||Y(Me)})}g(le),D(Y=>{Pe=re(le,1,"timeline-preview svelte-1wqg760",null,Pe,Y),it(le,`width: ${n(B)?n(T):n(C)}px;`)},[()=>({mobile:a()})]),b(t,le),U(),o()}var z4=M('<span class="time svelte-1jr6obn"> </span>'),W4=M("<!> <!>",1),K4={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function am(t,e){var Ve,Vt,Re,dt,It;F(e,!0),W(t,K4);let[i,o]=De(),r=()=>S(Q,"$interactiveEpisodes$",i),s=()=>S(N,"$duration$",i),l=()=>S(I,"$position$",i),d=()=>S(me,"$isInteractiveExpectation$",i),a=()=>S(J,"$isInteractiveTime$",i),u=()=>S(ye,"$previewTrackActive",i),f=()=>S(H,"$isLive$",i),v=()=>S(Pe,"$disabledControls$",i),p=()=>S(z,"$isMobile",i),x=()=>S(B,"$isActiveLive$",i),w=()=>S(A,"$bufferedProgress$",i),y=h(e,"showTimeline",3,!1),C=h(e,"withEpisodes",3,!0),T=h(e,"ref",15,void 0),E=he(),R=Nt(),A=E.state.bufferedProgress$,I=E.state.positionWithScrubbing$,N=E.state.duration$,H=E.state.isLive$,B=E.state.isActiveLive$,z=E.ui.isMobile,X=R.features.episodes&&C()?E.actions.internal.getVideoEpisodes():void 0,ae=E.actions.internal.getPreviewThumbsData(),Q=E.state.interactiveEpisodes$,ce=E.state.isInteractive,J=E.state.isInteractiveTime$,me=E.state.isInteractiveExpectation$,se=E.actions.internal.correctSeekTimeToInteractive,le=(Ve=E.callbacks)==null?void 0:Ve.onDisabledTimelineClick,Pe=E.ui.controls.disabledControls$,ye=E.ui.previewTrackActive,ee=(Re=(Vt=E.callbacks)==null?void 0:Vt.uiInfo)==null?void 0:Re.onTimelineMouseEnter,Be=(It=(dt=E.callbacks)==null?void 0:dt.uiInfo)==null?void 0:It.onTimelineMouseLeave,pe=E.ui.t,k=R.features.interactiveResponsiveUi,Ge=m(()=>ce?r():X),Me=m(()=>Qo(s())),Y=m(()=>Qo(l())),oe=m(()=>l()/s()),He=m(()=>d()||a()),Xe=j(!1),ge=j(""),ie=j(0),ke=j(0),we=j(0),Fe=m(()=>({containerWidth:n(ke),translateXPx:n(ie),translateYPx:ce&&ae?-36:-16,active:n(Xe)&&y()&&!n(He)&&!k&&!u(),pointer:!R.features.timelinePreview||!ae||f()})),Je=pe("aria_timeline"),Ye=m(()=>pe("aria_timeline_value",{position:n(Y),duration:n(Me)}));function qe(Se){return!se||!ce?Se:se(Se*s())/s()}function Ze(Se,at){var We;(We=e.onSliderPointerDown)==null||We.call(e,at),E.actions.internal.startScrubbing(qe(Se))}function Ht(Se){a()||E.actions.internal.progressScrubbing(qe(Se))}function st(Se){var at;E.actions.internal.completeScrubbing(qe(Se)),O(Xe,!1),(at=e.onSliderPointerUp)==null||at.call(e)}function Ft(Se,at,We){var pt;(pt=e.onSliderPointerEnter)==null||pt.call(e,Se),ti(Se,at,We),O(Xe,!0)}function Gt(Se,at,We,pt){var Yt;(Yt=e.onSliderMove)==null||Yt.call(e,pt,Se),ti(Se,at,We),O(Xe,!0)}function kt(){var Se;O(Xe,!1),(Se=e.onSliderLeave)==null||Se.call(e)}function ti(Se,at,We){O(we,qe(Se),!0),O(ie,at,!0),We&&O(ke,We,!0),O(ge,qt(Se),!0)}function qt(Se){let at=Qo((f()?1-Se:Se)*s());return f()?`-${at}`:at}let Ce=m(()=>v().has("TIMELINE"));var xe=W4(),te=fe(xe);rm(te,Es(()=>n(Fe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Se,at)=>{var We=ze(),pt=fe(We);{var Yt=mi=>{sm(mi,{get time(){return n(ge)},get isMobile(){return p()},get videoEpisodes(){return n(Ge)},get previewThumbsData(){return ae},get progress(){return n(we)},get duration(){return s()},get isInteractive(){return ce}})},yi=mi=>{var Si=z4(),lo=_(Si,!0);g(Si),D(()=>ve(lo,n(ge))),b(mi,Si)};V(pt,mi=>{R.features.timelinePreview&&ae&&!f()?mi(Yt):mi(yi,!1)})}b(Se,We)},$$slots:{default:!0}}));var Te=P(te,2);Wa(Te,{className:"timeline-slider",get isActiveLive(){return x()},get isMobile(){return p()},get ariaLabel(){return Je},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return n(Ye)},get loadedProgress(){return w()},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get videoEpisodes(){return n(Ge)},onPointerDown:Ze,onHandleMove:Ht,onPointerMove:Gt,onPointerUp:st,onPointerEnter:Ft,onPointerLeave:kt,get onMouseEnter(){return ee},get onMouseLeave(){return Be},get onDisabledClick(){return le},get isInteractive(){return ce},get disabled(){return n(Ce)},get handleAlwaysVisible(){return u()},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:st,get ref(){return T()},set ref(Se){T(Se)}}),b(t,xe),U(),o()}var q4={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 Tc(t,e){F(e,!0),W(t,q4);let[i,o]=De(),r=()=>S(a,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"duration",3,0),d=he(),a=d.ui.isMobile,u=d.ui.t,f=m(()=>Qo(l())),v=m(()=>Qo(s())),p=m(()=>s()/l()),x=m(()=>u("aria_timeline_value",{position:n(v),duration:n(f)})),w=m(()=>Math.round(n(p)*100));Wa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(w)},get ariaValueText(){return n(x)},get filledProgress(){return n(p)},hideHandel:!0,get squareBorders(){return r()}}),U(),o()}var Q4=M("<div><!></div>"),j4=M("<div></div>"),G4={hash:"svelte-1b7iyrc",code:".timeline.svelte-1b7iyrc {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;box-sizing:border-box;}.timeline.mobile.svelte-1b7iyrc {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1b7iyrc {padding:0;}.timeline-stub.svelte-1b7iyrc {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1b7iyrc {height:8px;}"};function ja(t,e){F(e,!0),W(t,G4);let[i,o]=De(),r=()=>S(C,"$isLive$",i),s=()=>S(R,"$isMobile",i),l=()=>S(A,"$disabled",i),d=()=>S(E,"$adPosition",i),a=()=>S(T,"$adDuration",i),u=h(e,"isAds",3,!1),f=h(e,"isHidden",3,!1),v=h(e,"timelineNotAvailable",3,!1),p=h(e,"needPadding",3,!0),x=h(e,"ref",15,void 0),w=he(),y=Nt(),C=w.state.isLive$,T=w.ads.duration,E=w.ads.position,R=w.ui.isMobile,A=de(!1),I=m(()=>!v()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var N=ze(),H=fe(N);{var B=X=>{var ae=Q4();let Q;var ce=_(ae);{var J=se=>{Tc(se,{get position(){return d()},get duration(){return a()}})},me=se=>{am(se,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(I)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return x()},set ref(le){x(le)}})};V(ce,se=>{u()?se(J):se(me,!1)})}g(ae),Ts(ae,()=>Fl(f()&&y.features.usePerformanceFix,A,y.disableInvisibleComponentsTimeout)),D(se=>Q=re(ae,1,"timeline svelte-1b7iyrc",null,Q,se),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),b(X,ae)},z=X=>{var ae=j4();let Q;D(ce=>Q=re(ae,1,"timeline-stub svelte-1b7iyrc",null,Q,ce),[()=>({mobile:s()})]),b(X,ae)};V(H,X=>{n(I)?X(B):X(z,!1)})}b(t,N),U(),o()}var e_=require("@vkontakte/videoplayer-shared/es2015");var Y4=(t,e,i,o,r,s,l)=>{O(e,!0),O(i,t.clientX,!0),O(o,n(r),!0),s(l())},Z4=M("<div></div>"),X4=M('<div><div class="track svelte-j4sfvm"></div></div>'),J4={hash:"svelte-j4sfvm",code:`.root.svelte-j4sfvm {height:var(--preview-track-frame-height-horizontal);position:relative;overflow:hidden;width:100%;display:flex;}.root.is-vertical-video.svelte-j4sfvm,
|
|
261
261
|
.root.vertically-rotated.svelte-j4sfvm {height:var(--preview-track-frame-height-vertical);}
|
|
262
262
|
|
|
263
263
|
/**
|
|
264
264
|
* \u041A\u0430\u0440\u0435\u0442\u043A\u0430, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u043D\u0430 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043A\u0430\u0434\u0440.
|
|
265
|
-
*/.root.svelte-j4sfvm::after {content:'';height:100%;z-index:1;margin:0 auto;width:3px;background-color:rgba(255, 255, 255, 1);box-shadow:0px 2px 2px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.06);pointer-events:none;}.track.svelte-j4sfvm {position:absolute;bottom:0;left:0;top:0;display:flex;padding:0 50%;}.frame.svelte-j4sfvm {flex-shrink:0;position:absolute;pointer-events:none;background-position-y:calc(-1 * var(--frame-height) * var(--row-index));background-position-x:calc(-1 * var(--column-index)*var(--frame-width));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));width:var(--frame-width);height:var(--frame-height);transform-origin:center;}.vertically-rotated.svelte-j4sfvm .frame:where(.svelte-j4sfvm) {transform-origin:0 0;}.rotate-1.svelte-j4sfvm {transform:rotate(-90deg) translateX(-100%);}.rotate-2.svelte-j4sfvm {transform:rotate(-180deg);}.rotate-3.svelte-j4sfvm {transform:rotate(-270deg) translateY(-100%);}`};function dm(t,e){F(e,!0),W(t,
|
|
266
|
-
var(--timeline-padding-vertical-bottom);position:relative;pointer-events:auto;}.preview-track-control.svelte-19h243g {top:calc((var(--timeline-height) + var(--preview-track-controls-top)) * -1);position:absolute;left:0;right:0;padding:0 calc(var(--timeline-padding-horizontal));display:flex;align-items:center;justify-content:center;pointer-events:none;}.preview-track-close.svelte-19h243g {position:absolute;right:calc(var(--timeline-padding-horizontal));pointer-events:auto;}.preview-track-close.tooltip.svelte-19h243g {bottom:32px;opacity:0;transition:opacity 200ms;}.preview-track-close.svelte-19h243g:hover + .tooltip:where(.svelte-19h243g) {opacity:1;}.wrapper-preview-track.svelte-19h243g {position:absolute;left:0;right:0;overflow:hidden;z-index:-1;padding:0 calc(var(--timeline-padding-horizontal));box-sizing:border-box;}`};function um(t,e){F(e,!0),W(t,l3);let[i,o]=Be(),r=()=>S(y,"$playerSize",i),s=()=>S(w,"$duration$",i),l=()=>S(C,"$previewTrackActive",i),d=()=>S(p,"$position$",i),a=()=>S(x,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),f=_e(),v=200,{positionWithScrubbing$:p,isRewindableLive$:x,duration$:w}=f.state,{playerSize:y,previewTrackActive:C}=f.ui,{countPerImage:T=0,links:E=[],frequency:R=0}=f.actions.internal.getPreviewThumbsData()||{},A=m(()=>r().width>100),I=j(!s0()),N=()=>{n(I)&&(r0(),O(I,!1))},H=se=>{let de=Math.floor(s()*se/R),Le=Math.floor(de/T),Se=(0,t_.getRangeAroundIndex)(3,Le,E.length-1);for(let ie of Se){let Ne=new Image;Ne.src=E[ie]}},B=(se,de)=>{H(de),!l()&&e.onTimelineMove(se)};var z=a3(),X=_(z);{var le=se=>{var de=r3(),Le=_(de);let Se=m(()=>en(d()));nm(Le,{get time(){return n(Se)}});var ie=P(Le,2),Ne=_(ie);Ps(Ne,{onClick:()=>f.actions.internal.closePreviewTrack()}),g(ie);var pe=P(ie,2);{var k=qe=>{var Re=n3(),Z=_(Re);cm(Z,{}),g(Re),b(qe,Re)};V(pe,qe=>{n(I)&&qe(k)})}g(de),Et("mouseleave",ie,N),Xr(3,de,()=>ms,()=>({duration:v})),b(se,de)};V(X,se=>{l()&&se(le)})}var q=P(X,2);let ce=m(()=>!n(A));Ga(q,{get isHidden(){return n(ce)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return a()},onSliderMove:B,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:H,get ref(){return u()},set ref(se){u(se)}});var J=P(q,2);{var ve=se=>{var de=s3(),Le=_(de);dm(Le,{}),g(de),D(()=>et(de,`height: ${e.animatedPreviewTrackHeight}px;`)),b(se,de)};V(J,se=>{e.previewTrackAvailable&&se(ve)})}g(z),D(()=>et(z,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,z),U(),o()}var c3=M('<div><!> <div class="controls svelte-1ojrdvx" data-testid="player_controls"><div class="controls-left svelte-1ojrdvx"><!> <!> <!></div> <div class="controls-right svelte-1ojrdvx"></div></div></div> <!>',1),u3={hash:"svelte-1ojrdvx",code:".wrapper-bottom.svelte-1ojrdvx {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1ojrdvx::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1ojrdvx > :where(.svelte-1ojrdvx) {pointer-events:auto;}.controls.svelte-1ojrdvx {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-1ojrdvx, .controls-right.svelte-1ojrdvx {display:flex;align-content:center;}.controls-left.svelte-1ojrdvx {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1ojrdvx > *:not(:first-child), .controls-right.svelte-1ojrdvx > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1ojrdvx {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1ojrdvx {transition:none;}"};function fm(t,e){var pl,fa;F(e,!0),W(t,u3);let[i,o]=Be(),r=()=>S(tn,"$disabledControls$",i),s=()=>S(ft,"$adPlaybackState",i),l=()=>S(ai,"$playbackState$",i),d=()=>S(To,"$currentSubtitle$",i),a=()=>S(co,"$isEnded$",i),u=()=>S(on,"$currentGridType$",i),f=()=>S(ho,"$isLive$",i),v=()=>S(Ye,"$chromecastState$",i),p=()=>S(Mi,"$isPictureInPictureActive",i),x=()=>S(Xt,"$pictureInPictureType$",i),w=()=>S(Si,"$availableSubtitlesList$",i),y=()=>S(Ut,"$contextMenuOpenedByKeyboard$",i),C=()=>S(Pt,"$showContextMenuBtn$",i),T=()=>S(ht,"$isRewindableLive$",i),E=()=>S(ui,"$isActiveLive$",i),R=()=>S(ns,"$graphIsOpened$",i),A=()=>S(vn,"$contextMenuVisible$",i),I=()=>S(Ni,"$isFullscreen",i),N=()=>S(uo,"$autoplayNextEnabled",i),H=()=>S(n(Bi),"$prevButton",i),B=()=>S(n(Xi),"$replayButton",i),z=()=>S(n(zo),"$playButton",i),X=()=>S(n(rn),"$nextButton",i),le=()=>S(n(po),"$playPrevChapterButton",i),q=()=>S(n(Pi),"$seekToInteractiveButton",i),ce=()=>S(n(Ji),"$interactiveGraphButton",i),J=()=>S(n(xo),"$liveButton",i),ve=()=>S(n($n),"$time",i),se=()=>S(n(Xn),"$episodes",i),de=()=>S(n(Dr),"$vkLogo",i),Le=()=>S(n(Br),"$volume",i),Se=()=>S(n(yn),"$subtitles",i),ie=()=>S(n(xn),"$settings",i),Ne=()=>S(n(br),"$context",i),pe=()=>S(n(wn),"$fullscreen",i),k=()=>S(n(Hr),"$chromecast",i),qe=()=>S(No,"$additionalDesktopControlPanelRightButtons$",i),Re=()=>S(zi,"$playerSize",i),Z=()=>S(mn,"$isInteractiveTime$",i),ne=()=>S(pi,"$previewTrackActive",i),He=()=>S(It,"$settingsMenuVisible",i),Xe=()=>S(eo,"$settingButtonRef$",i),ge=()=>S(K,"$startedByKeyboard$",i),ee=()=>S(mi,"$isAudioAvailable$",i),ke=()=>S(we,"$fakeIsPlaying$",i),he=()=>S(gs,"$seekToInteractiveDisabledTooltip$",i),Ue=()=>S(ye,"$isPreviewTrackHorizontallyAligned$",i),Je=()=>S(Cn,"$previewTrackAvailable",i),Ge=()=>S(So,"$previewTrackDragInProgress",i),ut=()=>S(Zt,"$adPosition",i),tt=()=>S(ni,"$position$",i),Ft=()=>S(Mt,"$adDuration",i),st=()=>S(dt,"$duration$",i),Ht=h(e,"playerControlsWrapperRef",15,void 0),Gt=h(e,"playerControlsRef",15,void 0),kt=h(e,"isAds",3,!1),oi=h(e,"logoTargetUrl",3,""),qt=h(e,"isOneVideoPlaylist",3,!1),Ce=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:we}=Co(),te=_e(),Te=Co(),Me=Nt(),At=te.actions.internal.toggleMuted,De=te.actions.internal.togglePlay,pt=te.actions.internal.pause,xt=te.actions.internal.toggleSubtitle,xe=te.actions.internal.checkFullscreenSupport,nt=(pl=te.callbacks)==null?void 0:pl.onAudioDoesNotExistHint,Qe=(fa=te.callbacks)==null?void 0:fa.onAudioDisabledHint,dt=te.state.duration$,ni=te.state.positionWithScrubbing$,ai=te.state.playbackState$,mi=te.state.isAudioAvailable$,wi=te.state.isAudioDisabled,co=te.state.isEnded$,ho=te.state.isLive$,ui=te.state.isActiveLive$,ht=te.state.isRewindableLive$,{isActive$:Mi,type$:Xt}=Te.pictureInPicture$,It=te.ui.settingsMenu.visible$,si=te.ui.settingsMenu.openedByBtnKeyboard$,Jt=te.ui.controls,Tt=te.actions.internal.getVideoEpisodes(),Ye=te.state.chromecastState$,Si=te.state.availableSubtitlesList$,To=te.state.currentSubtitle$,tn=Jt.disabledControls$,vn=te.ui.contextMenu.visible$,Pt=te.ui.contextMenu.showContextMenuBtn$,Ut=te.ui.contextMenu.openedByBtnKeyboard$,K=te.ui.startedByKeyboard$,Ot=te.ui.controlBlocks,ri=te.ui.previewTrackNotificationVisible,mt=te.ui.t,Mt=te.ads.duration,Zt=te.ads.position,ft=te.ads.playbackState,Ni=te.ui.isFullscreen,zi=te.ui.playerSize,on=te.ui.currentGridType$,No=te.ui.additionalDesktopControlPanelRightButtons$,uo=te.ui.autoplayNextEnabled$,Wi=te.actions.internal.getVideoElement,pr=te.actions.internal.replayInteractive,_o=te.actions.internal.prevVideoClick,bo=te.actions.internal.nextVideoClick,Di=te.state.isInteractive,mn=te.state.isInteractiveTime$,Do=te.state.showInteractiveGraph,fr=te.state.showSeekToInteractive,vr=te.state.showPlayPrevChapter,Er=te.state.showInteractiveTimeIndicator,os=te.state.playPrevChapterDisabledTooltip,gs=Te.seekToInteractiveDisabledTooltip$,ns=Te.graphIsOpened$,Eo=Me.features.interactiveResponsiveUi,jn=m(()=>r().has("EPISODE_BUTTON")),Bo=m(()=>r().has("GRAPH_BUTTON")),gn=m(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Vn=m(()=>r().has("PLAY_BUTTON")),mr=m(()=>r().has("REPLAY_BUTTON")),Ir=m(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),kr=()=>te.actions.internal.toggleChromecast(),Ar=m(()=>kt()?s()==="playing":l()===Ya.PlaybackState.PLAYING),Pr=m(()=>d().value!=="off"),Zi=m(()=>a()&&!kt()||Di),Mr=m(()=>Eo?n(Zi)&&so(u(),"m"):n(Zi)),Rn=m(()=>!a()||Di||kt()),hn=m(()=>so(u(),"m")),$o=m(()=>e.showNextPrevButtons&&so(u(),"m")&&!kt()&&e.nextButtonActive),gr=m(()=>e.showNextPrevButtons&&so(u(),"m")&&!kt()&&e.prevButtonActive),On=m(()=>!kt()&&!!f()),_t=m(()=>v()!==Ya.ChromecastState.NOT_AVAILABLE&&!(p()&&x()===1)&&so(u(),"m")&&!Di),vi=m(()=>e.showAutoplayNext&&!qt()&&so(u(),"s")),Lr=m(()=>w().length>0&&so(u(),"m")),Gn=m(()=>y()||C()),Vr=m(()=>so(u(),"s")&&!kt()),Nn=m(()=>!e.logoHidden&&!kt()),Dn=m(()=>Me.features.fullscreen&&xe()&&(e.logoHidden||so(u(),Eo?"xs":"s"))&&!(p()&&x()===1)&&(Di?Ce():!0)),Ho=m(()=>(!f()||kt())&&!(Me.features.interactiveHideTime&&Di)),Fo=m(()=>Do&&so(u(),"m")),_n=m(()=>Eo?fr&&so(u(),"s"):fr),yo=m(()=>Eo?vr&&so(u(),"s"):vr),Uo=m(()=>!kt()&&!f()&&!!(Tt!=null&&Tt.length)&&n(hn)&&!n(jn)),nn=m(()=>!T()||!!E()),hr=m(()=>R()?mt("tooltip_interactive_graph_on"):mt("tooltip_interactive_graph_off")),Rr=m(()=>A()?mt("tooltip_context_menu_close"):mt("tooltip_context_menu_open")),bn=($t,yt)=>$t?yt&&yt===Ya.PlaybackState.PAUSED?mt("tooltip_play"):"":mt("tooltip_live"),Ki=m(()=>bn(n(nn),l())),_r=m(()=>Me.logoType==="vk_video"?mt("tooltip_vk_video_logo"):mt("tooltip_vk_logo")),Or=m(()=>n(Pr)?mt("tooltip_subtitles_on"):mt("tooltip_subtitles_off")),Bn=m(()=>I()?mt("tooltip_fullscreen_on"):mt("tooltip_fullscreen_off")),Yn=m(()=>v()===Ya.ChromecastState.CONNECTED?mt("tooltip_chromecast_on"):mt("tooltip_chromecast_off")),Nr=m(()=>N()?mt("tooltip_autoplay_on"):mt("tooltip_autoplay_off")),Zn=j(0),ot=di({}),gi=di({}),Bi=m(()=>Jt.prevButton),Xi=m(()=>Jt.replayButton),zo=m(()=>Jt.playButton),rn=m(()=>Jt.nextButton),po=m(()=>Jt.playPrevChapterButton),Pi=m(()=>Jt.seekToInteractiveButton),Ji=m(()=>Jt.interactiveGraphButton),xo=m(()=>Jt.liveButton),$n=m(()=>Jt.time),Xn=m(()=>Jt.episodes),Dr=m(()=>Jt.vkLogo),Br=m(()=>Jt.volume),yn=m(()=>Jt.subtitles),xn=m(()=>Jt.settings),br=m(()=>Jt.context),wn=m(()=>Jt.fullscreen),Hr=m(()=>Jt.chromecast),it=m(()=>({prevButton:H()?H().right-H().left:0,replayButton:B()?B().right-B().left:0,playButton:z()?z().right-z().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:le()?le().right-le().left:0,seekToInteractiveButton:q()?q().right-q().left:0,interactiveGraphButton:ce()?ce().right-ce().left:0,liveButton:J()?J().right-J().left:0,time:ve()?ve().right-ve().left:0,episodes:se()?se().right-se().left:0,vkLogo:de()?de().right-de().left:0,volume:Le()?Le().right-Le().left:0,subtitles:Se()?Se().right-Se().left:0,settings:ie()?ie().right-ie().left:0,context:Ne()?Ne().right-Ne().left:0,fullscreen:pe()?pe().right-pe().left:0,chromecast:k()?k().right-k().left:0,additionalButtons:qe().length?qe().reduce($t=>[...$t,40],[]):[]})),Vt=j(0);We(()=>{(!n(Vt)||n(Vt)<n(it).time)&&Lt(()=>O(Vt,n(it).time,!0))});let Ci=j(!1);We(()=>{let $t=0;n(Uo)&&(so(u(),"xl")?$t=n(it).time:$t=60);let yt=n(it).prevButton+n(it).playButton+n(it).nextButton+n(it).seekToInteractiveButton+n(it).interactiveGraphButton+n(it).liveButton+n(Vt)+$t;O(Ci,n(Ho)&&n(Zn)>=yt,!0)});let wo=m(()=>n(Ci)&&so(u(),"m")),Wo=(0,pm.debounceFn)(Jl,260),Io=(0,pm.debounceFn)(pp,260);We(()=>{Re(),Z(),ne(),Wo(Wi(),Jt,ot,e.showControls),Io(Wi(),Ot,gi,e.showControls)}),We(()=>{gi.bottom=Ht()});let eo=ae();We(()=>{He(),Xe()&&Lt(()=>Wl(Xe(),He(),si))});let Li;We(()=>{ge(),Lt(()=>cp(K,ge(),Li))});function sn(){ia({isAudioDisabled:wi,isAudioAvailable:ee(),isAds:kt(),audioIsNotExistHintCallback:nt,audioDisabledHintCallback:Qe})&&At()}let Ko=Di?pr:De,ko=m(()=>ke()!==null),to=m(()=>n(ko)?ke():n(Ar)),Fr=m(()=>n(to)?mt("tooltip_pause"):mt("tooltip_play")),Jn=mt("tooltip_episodes"),er=m(()=>{var $t,yt,oo,Ao;return n(gr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Vs.prevButton,buttonComponent:Qa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:_o.bind(null,!0)},tooltipEnabled:!((yt=($t=te.callbacks)==null?void 0:$t.uiInfo)!=null&&yt.onPrevButtonMouseEnter)&&!((Ao=(oo=te.callbacks)==null?void 0:oo.uiInfo)!=null&&Ao.onPrevButtonMouseLeave),mouseEnter:()=>{var no,bi,qi;(qi=(bi=(no=te.callbacks)==null?void 0:no.uiInfo)==null?void 0:bi.onPrevButtonMouseEnter)==null||qi.call(bi,qn(Wi(),ot,"prevButton",e.showControls))},mouseLeave:()=>{var no,bi,qi;(qi=(bi=(no=te.callbacks)==null?void 0:no.uiInfo)==null?void 0:bi.onPrevButtonMouseLeave)==null||qi.call(bi,qn(Wi(),ot,"prevButton",e.showControls))},tooltipText:mt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),$r=m(()=>n(Mr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Vs.replayButton,buttonComponent:ed,buttonComponentProps:{disabled:n(mr),click:Ko},tooltipText:mt("tooltip_restart"),disabled:n(mr)}:void 0),hs=m(()=>n(Rn)?{id:"playButton",type:"desktop-control-panel-left",weight:Vs.playButton,buttonComponent:td,buttonComponentProps:{disabled:n(Vn),isPlaying:n(Ar),click:De},tooltipText:n(Fr),disabled:n(Vn)}:void 0),Ur=m(()=>{var $t,yt,oo,Ao;return n($o)?{id:"nextButton",type:"desktop-control-panel-left",weight:Vs.nextButton,buttonComponent:Qa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:bo.bind(null,!0)},tooltipEnabled:!((yt=($t=te.callbacks)==null?void 0:$t.uiInfo)!=null&&yt.onNextButtonMouseEnter)&&!((Ao=(oo=te.callbacks)==null?void 0:oo.uiInfo)!=null&&Ao.onNextButtonMouseLeave),mouseEnter:()=>{var no,bi,qi;(qi=(bi=(no=te.callbacks)==null?void 0:no.uiInfo)==null?void 0:bi.onNextButtonMouseEnter)==null||qi.call(bi,qn(Wi(),ot,"nextButton",e.showControls))},mouseLeave:()=>{var no,bi,qi;(qi=(bi=(no=te.callbacks)==null?void 0:no.uiInfo)==null?void 0:bi.onNextButtonMouseLeave)==null||qi.call(bi,qn(Wi(),ot,"nextButton",e.showControls))},tooltipText:mt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),rs=m(()=>Di&&n(yo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Vs.playPrevChapterButton,buttonComponent:xc,buttonComponentProps:{disabled:n(Ir),click:e.playPrevChapter},tooltipText:mt("tooltip_interactive_go_back"),disabledTooltipContent:mt(os),disabled:n(Ir)}:void 0),je=m(()=>Di&&n(_n)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Vs.seekToInteractiveButton,buttonComponent:Sc,buttonComponentProps:{disabled:n(gn),click:e.seekToInteractive},tooltipText:mt("tooltip_interactive_seek"),disabled:n(gn),disabledTooltipContent:mt(he())}:void 0),ti=m(()=>Di&&n(Fo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Vs.interactiveGraphButton,buttonComponent:Cc,buttonComponentProps:{disabled:n(Bo),click:ns.toggle,graphIsOpened:R()},tooltipText:n(hr)}:void 0),_i=m(()=>n(On)?{id:"liveButton",type:"desktop-control-panel-left",weight:Vs.liveButton,buttonComponent:Tc,buttonComponentProps:{isLiveActive:n(nn),ariaLabel:n(Ki)},tooltipText:n(Ki),disabled:n(nn)&&l()===Ya.PlaybackState.PLAYING}:void 0),Sn=m(()=>[n(er),n($r),n(hs),n(Ur),n(rs),n(je),n(ti),n(_i)].filter($t=>!!$t).sort(Ha)),qo=m(()=>n(Nn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Os.vkLogo,buttonComponent:vc,buttonComponentProps:{targetUrl:oi(),logoClickable:e.logoClickable,click:pt},tooltipText:n(_r),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),zr=m(()=>n(vi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Os.autoplayNext,buttonComponent:wc,tooltipText:n(Nr)}:void 0),an=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:Os.volume,buttonComponent:Lv,buttonComponentProps:{click:sn,isAds:kt()}})),Wr=m(()=>n(Lr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Os.subtitles,buttonComponent:kv,buttonComponentProps:{isSubtitlesEnabled:n(Pr),click:xt},tooltipText:n(Or)}:void 0),Bs=m(()=>n(Vr)?{id:"settings",type:"desktop-control-panel-right",weight:Os.settings,buttonComponent:Gl,buttonComponentProps:{ref$:eo},tooltipText:He()?void 0:mt("tooltip_settings_off")}:void 0),io=m(()=>Me.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Os.context,buttonComponent:jv,buttonComponentProps:{ariaLabel:mt("aria_label_context_menu")},className:n(Gn)?"":"out-of-view",tooltipText:n(Rr)}:void 0),Kr=m(()=>n(Dn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Os.fullscreen,buttonComponent:fc,buttonComponentProps:{isFullscreen:I(),click:e.toggleFullscreen},tooltipText:n(Bn)}:void 0),aa=m(()=>n(_t)?{id:"chromecast",type:"desktop-control-panel-right",weight:Os.chromecast,buttonComponent:mc,buttonComponentProps:{state:v(),click:kr},tooltipText:n(Yn)}:void 0),bt=m(()=>[n(qo),n(zr),n(an),n(Wr),n(Bs),n(io),n(Kr),n(aa),...qe()].filter($t=>!!$t).sort(Ha)),pi=te.ui.previewTrackActive,So=te.ui.previewTrackDragInProgress,Cn=te.ui.previewTrackAvailable,ye=te.ui.isPreviewTrackHorizontallyAligned,gt=m(()=>X0({onPreviewTrackOpened:te.actions.internal.previewTrackOpened,getTimelineRef:()=>ot.timeline,isHorizontal:Ue()})),li=m(()=>n(gt).progressBarY),Ti=m(()=>n(gt).controlsY),fi=m(()=>n(gt).onPointerDown),ii=m(()=>n(gt).onPointerMove),ki=m(()=>n(gt).onPointerUp),Tn=m(()=>n(gt).calculatedHeight),ln=m(()=>n(gt).closePreviewTrack);We(()=>{ne()?ri.set(!1):n(ln)()});let Vi;Bt(()=>()=>Vi&&clearTimeout(Vi));let al=$t=>{ne()||!Je()||(n(fi)($t),Vi=setTimeout(()=>{te.actions.internal.previewTrackDragStarted()},200))},la=()=>{ne()||n(ki)(),Vi&&clearTimeout(Vi),Ge()&&te.actions.internal.previewTrackDragFinished()},da=$t=>{n(ii)($t),!ne()&&Je()&&!ne()&&ri.set(!0)},ca=()=>{ri.set(!1)};var tr=c3(),_s=fe(tr);let ua;var yr=_(_s);{var ll=$t=>{let yt=m(()=>n(li)()),oo=m(()=>n(Tn)());um($t,{get animatedOffsetY(){return n(yt)},get animatedPreviewTrackHeight(){return n(oo)},get canRewindLive(){return e.canRewindLive},get isAds(){return kt()},onTimelineMove:da,onTimelinePointerDown:al,onTimelinePointerUp:la,onTimelinePointerLeave:ca,get previewTrackAvailable(){return Je()},get timelineRef(){return ot.timeline},set timelineRef(Ao){ot.timeline=Ao}})};V(yr,$t=>{e.showControls&&$t(ll)})}var bs=P(yr,2),$s=_(bs),dl=_($s);Ei(dl,17,()=>n(Sn),$t=>$t.id,($t,yt)=>{up($t,{get buttonComponent(){return n(yt).buttonComponent},get buttonComponentProps(){return n(yt).buttonComponentProps},get tooltipText(){return n(yt).tooltipText},get disabledTooltipContent(){return n(yt).disabledTooltipContent},get disabled(){return n(yt).disabled},get className(){return n(yt).className},get tooltipEnabled(){return n(yt).tooltipEnabled},get mouseEnter(){return n(yt).mouseEnter},get mouseLeave(){return n(yt).mouseLeave},get ref(){return ot[n(yt).id]},set ref(oo){ot[n(yt).id]=oo}})});var pa=P(dl,2);{var pd=$t=>{let yt=m(()=>!e.showControls),oo=m(()=>kt()?ut():tt()),Ao=m(()=>kt()?Ft():st());cc($t,{get isHidden(){return n(yt)},isMobile:!1,get showDuration(){return n(wo)},get position(){return n(oo)},get duration(){return n(Ao)},get ref(){return ot.time},set ref(no){ot.time=no}})};V(pa,$t=>{n(Ho)&&$t(pd)})}var cl=P(pa,2);let fd=m(()=>!n(Uo));Ro(cl,{className:"w-max",get disabled(){return n(fd)},get tooltipContent(){return Jn},get ref(){return ot.episodes},set ref($t){ot.episodes=$t},children:($t,yt)=>{var oo=Fe(),Ao=fe(oo);{var no=bi=>{gc(bi,{get position(){return tt()},get duration(){return st()},get timeCodes(){return Tt}})};V(Ao,bi=>{n(Uo)&&bi(no)})}b($t,oo)},$$slots:{default:!0}}),g($s);var ir=P($s,2);Ei(ir,21,()=>n(bt),$t=>$t.id,($t,yt)=>{var oo=Fe(),Ao=fe(oo);{var no=qi=>{up(qi,{get buttonComponent(){return n(yt).buttonComponent},get buttonComponentProps(){return n(yt).buttonComponentProps},get tooltipText(){return n(yt).tooltipText},get disabledTooltipContent(){return n(yt).disabledTooltipContent},get disabled(){return n(yt).disabled},get className(){return n(yt).className},get ref(){return ot[n(yt).id]},set ref(Hs){ot[n(yt).id]=Hs}})},bi=qi=>{let Hs=m(()=>!!n(yt).disabled);im(qi,{get id(){return n(yt).id},get testId(){return n(yt).testId},get icon(){return n(yt).icon},get ariaLabel(){return n(yt).ariaLabel},get tooltipText(){return n(yt).tooltipText},get disabledTooltipContent(){return n(yt).disabledTooltipContent},get disabled(){return n(Hs)},get onClick(){return n(yt).onClick},get disableMouseupTooltipShow(){return n(yt).disableMouseupTooltipShow},get ref(){return ot[n(yt).id]},set ref(md){ot[n(yt).id]=md}})};V(Ao,qi=>{G0(n(yt))?qi(no):qi(bi,!1)})}b($t,oo)}),g(ir),g(bs),lt(bs,$t=>Gt($t),()=>Gt()),g(_s),lt(_s,$t=>Ht($t),()=>Ht());var vd=P(_s,2);{var ul=$t=>{bc($t,{get ref(){return ot.interactiveTimeIndicator},set ref(yt){ot.interactiveTimeIndicator=yt}})};V(vd,$t=>{Er&&$t(ul)})}D(($t,yt)=>{ua=re(_s,1,"wrapper-bottom svelte-1ojrdvx",null,ua,$t),et(bs,yt),bs.inert=ne()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Ge()}),()=>`transform: translateY(${n(Ti)()}px);`]),Mn($s,"clientWidth",$t=>O(Zn,$t)),b(t,tr),U(),o()}var id=require("@vkontakte/videoplayer-core/es2015");var vm=require("@vkontakte/videoplayer-shared/es2015");var p3=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),f3=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),v3={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 mm(t,e){W(t,v3);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,vm.noop),r=m(()=>o()===vm.noop),s=m(()=>n(r)||i()),l=j(!1),d=()=>{O(l,!0)},a=m(()=>n(r)?"btn-full-opacity":"");Kt(t,{get className(){return n(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(u,f)=>{var v=Fe(),p=fe(v);{var x=y=>{var C=p3();b(y,C)},w=y=>{var C=f3();D(()=>Ke(C,"src",e.iconUrl)),Et("error",C,d),Ea(C),b(y,C)};V(p,y=>{n(l)?y(x):y(w,!1)})}b(u,v)},$$slots:{default:!0}})}var m3=Ie('<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 gm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=m3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var i_=require("@vkontakte/videoplayer-shared/es2015");var g3=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),h3={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function vp(t,e){F(e,!0),W(t,h3);let i=h(e,"muted",3,!1),o=h(e,"click",3,i_.noop),r=h(e,"ref",15,void 0),l=_e().ui.t,d=m(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=m(()=>i()?gm:na),u=m(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Kt(t,{get testId(){return n(u)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(f){r(f)},children:(f,v)=>{var p=g3();let x=m(()=>n(a));var w=_(p);Ri(w,()=>n(x),(y,C)=>{C(y,{})}),g(p),b(f,p)},$$slots:{default:!0}}),U()}var _3=Ie('<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 hm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=_3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(3),g(o),b(t,o)}var b3={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
267
|
-
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function _m(t,e){W(t,
|
|
265
|
+
*/.root.svelte-j4sfvm::after {content:'';height:100%;z-index:1;margin:0 auto;width:3px;background-color:rgba(255, 255, 255, 1);box-shadow:0px 2px 2px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.06);pointer-events:none;}.track.svelte-j4sfvm {position:absolute;bottom:0;left:0;top:0;display:flex;padding:0 50%;}.frame.svelte-j4sfvm {flex-shrink:0;position:absolute;pointer-events:none;background-position-y:calc(-1 * var(--frame-height) * var(--row-index));background-position-x:calc(-1 * var(--column-index)*var(--frame-width));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));width:var(--frame-width);height:var(--frame-height);transform-origin:center;}.vertically-rotated.svelte-j4sfvm .frame:where(.svelte-j4sfvm) {transform-origin:0 0;}.rotate-1.svelte-j4sfvm {transform:rotate(-90deg) translateX(-100%);}.rotate-2.svelte-j4sfvm {transform:rotate(-180deg);}.rotate-3.svelte-j4sfvm {transform:rotate(-270deg) translateY(-100%);}`};function dm(t,e){F(e,!0),W(t,J4);let[i,o]=De(),r=()=>S(R,"$rotateAlpha",i),s=()=>S(y,"$position$",i),l=()=>S(w,"$duration$",i),d=he(),{countPerImage:a=0,countPerRow:u=0,countTotal:f=0,links:v=[],frameHeight:p=0,frameWidth:x=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:w,positionWithScrubbing$:y}=d.state,{startScrubbing:C,progressScrubbing:T,completeScrubbing:E}=d.actions.internal,R=d.ui.rotateAlpha,A=j(void 0),I=j(!1),N=j(0),H=j(0),B=j(0),z=j(0),X=m(()=>p<=x),ae=m(()=>Yl(r())),Q=m(()=>n(X)?!n(ae):n(ae)),ce=114,J=65,me=3,se=m(()=>n(Q)?ce:J),le=m(()=>n(X)?ce:J),Pe=m(()=>n(X)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),ye=m(()=>f*n(se)),ee=j(0);Qe(()=>{O(z,Math.ceil(-n(B)/n(se))-1),O(B,-n(ye)*s()/l())});let Be=()=>{E(pe(),!0)},pe=()=>l()*-n(B)/n(ye)/l(),k=!1,Ge=Ye=>{if(!n(I))return!1;let qe=Ye.clientX-n(N);O(B,n(H)+qe),O(B,Math.max(Math.min(n(B),0),-n(ye)),!0),Math.abs(qe)>1&&(k=!0),T(pe())},Me=Ye=>{n(I)&&(O(I,!1),!k&&Ye&&O(B,-(Ye.offsetX-n(ee)/2)),k=!1,Be())},Y=()=>{n(I)&&Me()},oe=m(()=>a/u),He=(Ye,qe)=>{if(Ye!==v.length-1)return u;let Ze=0,Ht=qe*u;for(let st=1;st<=u;st++)Ye*a+Ze+Ht<f&&Ze++;return Ze},Xe=m(()=>Math.floor(n(z)/a)),ge=m(()=>(0,e_.getRangeAroundIndex)(3,n(Xe),v.length-1)),ie=(Ye,qe,Ze)=>{let Ht=a*n(se);return Ye*Ht+qe*n(se)*u+n(ee)/2-me/2+Ze*n(se)},ke=m(()=>[`--row-numbers: ${n(oe)}`,`--column-numbers: ${u}`,`--frame-width: ${n(le)}px`,`--frame-height: ${n(Pe)}`].join(";"));var we=X4();let Fe;var Je=_(we);Je.__pointerdown=[Y4,I,N,H,B,C,pe],Je.__pointermove=Ge,Je.__pointerup=Me,Ii(Je,20,()=>n(ge),Ye=>Ye,(Ye,qe)=>{var Ze=ze(),Ht=fe(Ze);Ii(Ht,16,()=>Array.from({length:n(oe)},(st,Ft)=>Ft),st=>st,(st,Ft)=>{var Gt=ze(),kt=fe(Gt);Ii(kt,16,()=>Array.from({length:He(qe,Ft)},(ti,qt)=>qt),ti=>ti,(ti,qt)=>{var Ce=Z4();D((xe,te)=>{it(Ce,xe),re(Ce,1,te,"svelte-j4sfvm")},[()=>`--row-index: ${Ft}; --column-index: ${qt}; left: ${ie(qe,Ft,qt)}px; background-image: url(${v[qe]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(ti,Ce)}),b(st,Gt)}),b(Ye,Ze)}),g(Je),g(we),lt(we,Ye=>O(A,Ye),()=>n(A)),D(Ye=>{Fe=re(we,1,"root svelte-j4sfvm",null,Fe,Ye),it(we,n(ke)),it(Je,`transform: translateX(${n(B)}px); width: ${n(ye)}px;`)},[()=>({"is-vertical-video":!n(X),"vertically-rotated":n(ae)})]),St("mouseleave",Je,Y),Mn(we,"clientWidth",Ye=>O(ee,Ye)),b(t,we),U(),o()}ut(["pointerdown","pointermove","pointerup"]);var e3=M('<div class="notification svelte-1u3ref1"><span class="description svelte-1u3ref1"> </span></div>'),t3={hash:"svelte-1u3ref1",code:".notification.svelte-1u3ref1 {padding:9px 14px 10px 12px;background:var(--notification-bg);border-radius:var(--notification-radius);}.description.svelte-1u3ref1 {line-height:18px;font-size:14px;}"};function cm(t,e){F(e,!1),W(t,t3);let i=340,{ui:{t:o}}=he();qo();var r=e3(),s=_(r),l=_(s,!0);g(s),g(r),D(d=>ve(l,d),[()=>o("preview_track_close_tooltip")],En),Qr(3,r,()=>vs,()=>({duration:i})),b(t,r),U()}var t_=require("@vkontakte/videoplayer-shared/es2015"),i3=M('<div class="preview-track-close tooltip svelte-19h243g"><!></div>'),o3=M('<div class="preview-track-control svelte-19h243g"><!> <div class="preview-track-close svelte-19h243g"><!></div> <!></div>'),n3=M('<div class="wrapper-preview-track svelte-19h243g"><!></div>'),r3=M('<div class="enriched-timeline svelte-19h243g"><!> <!> <!></div>'),s3={hash:"svelte-19h243g",code:`.enriched-timeline.svelte-19h243g {padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal)
|
|
266
|
+
var(--timeline-padding-vertical-bottom);position:relative;pointer-events:auto;}.preview-track-control.svelte-19h243g {top:calc((var(--timeline-height) + var(--preview-track-controls-top)) * -1);position:absolute;left:0;right:0;padding:0 calc(var(--timeline-padding-horizontal));display:flex;align-items:center;justify-content:center;pointer-events:none;}.preview-track-close.svelte-19h243g {position:absolute;right:calc(var(--timeline-padding-horizontal));pointer-events:auto;}.preview-track-close.tooltip.svelte-19h243g {bottom:32px;opacity:0;transition:opacity 200ms;}.preview-track-close.svelte-19h243g:hover + .tooltip:where(.svelte-19h243g) {opacity:1;}.wrapper-preview-track.svelte-19h243g {position:absolute;left:0;right:0;overflow:hidden;z-index:-1;padding:0 calc(var(--timeline-padding-horizontal));box-sizing:border-box;}`};function um(t,e){F(e,!0),W(t,s3);let[i,o]=De(),r=()=>S(y,"$playerSize",i),s=()=>S(w,"$duration$",i),l=()=>S(C,"$previewTrackActive",i),d=()=>S(p,"$position$",i),a=()=>S(x,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),f=he(),v=200,{positionWithScrubbing$:p,isRewindableLive$:x,duration$:w}=f.state,{playerSize:y,previewTrackActive:C}=f.ui,{countPerImage:T=0,links:E=[],frequency:R=0}=f.actions.internal.getPreviewThumbsData()||{},A=m(()=>r().width>100),I=j(!s0()),N=()=>{n(I)&&(r0(),O(I,!1))},H=se=>{let le=Math.floor(s()*se/R),Pe=Math.floor(le/T),ye=(0,t_.getRangeAroundIndex)(3,Pe,E.length-1);for(let ee of ye){let Be=new Image;Be.src=E[ee]}},B=(se,le)=>{H(le),!l()&&e.onTimelineMove(se)};var z=r3(),X=_(z);{var ae=se=>{var le=o3(),Pe=_(le);let ye=m(()=>Qo(d()));nm(Pe,{get time(){return n(ye)}});var ee=P(Pe,2),Be=_(ee);ks(Be,{onClick:()=>f.actions.internal.closePreviewTrack()}),g(ee);var pe=P(ee,2);{var k=Ge=>{var Me=i3(),Y=_(Me);cm(Y,{}),g(Me),b(Ge,Me)};V(pe,Ge=>{n(I)&&Ge(k)})}g(le),St("mouseleave",ee,N),Qr(3,le,()=>vs,()=>({duration:v})),b(se,le)};V(X,se=>{l()&&se(ae)})}var Q=P(X,2);let ce=m(()=>!n(A));ja(Q,{get isHidden(){return n(ce)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return a()},onSliderMove:B,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:H,get ref(){return u()},set ref(se){u(se)}});var J=P(Q,2);{var me=se=>{var le=n3(),Pe=_(le);dm(Pe,{}),g(le),D(()=>it(le,`height: ${e.animatedPreviewTrackHeight}px;`)),b(se,le)};V(J,se=>{e.previewTrackAvailable&&se(me)})}g(z),D(()=>it(z,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,z),U(),o()}var l3=M('<div><!> <div class="controls svelte-1ojrdvx" data-testid="player_controls"><div class="controls-left svelte-1ojrdvx"><!> <!> <!></div> <div class="controls-right svelte-1ojrdvx"></div></div></div> <!>',1),d3={hash:"svelte-1ojrdvx",code:".wrapper-bottom.svelte-1ojrdvx {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1ojrdvx::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1ojrdvx > :where(.svelte-1ojrdvx) {pointer-events:auto;}.controls.svelte-1ojrdvx {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-1ojrdvx, .controls-right.svelte-1ojrdvx {display:flex;align-content:center;}.controls-left.svelte-1ojrdvx {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1ojrdvx > *:not(:first-child), .controls-right.svelte-1ojrdvx > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1ojrdvx {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1ojrdvx {transition:none;}"};function fm(t,e){var pl,ua;F(e,!0),W(t,d3);let[i,o]=De(),r=()=>S(jo,"$disabledControls$",i),s=()=>S(ft,"$adPlaybackState",i),l=()=>S(yi,"$playbackState$",i),d=()=>S(Co,"$currentSubtitle$",i),a=()=>S(lo,"$isEnded$",i),u=()=>S(Go,"$currentGridType$",i),f=()=>S(co,"$isLive$",i),v=()=>S(et,"$chromecastState$",i),p=()=>S(xi,"$isPictureInPictureActive",i),x=()=>S(di,"$pictureInPictureType$",i),w=()=>S(ki,"$availableSubtitlesList$",i),y=()=>S(Ut,"$contextMenuOpenedByKeyboard$",i),C=()=>S(At,"$showContextMenuBtn$",i),T=()=>S(ht,"$isRewindableLive$",i),E=()=>S(ci,"$isActiveLive$",i),R=()=>S(fn,"$graphIsOpened$",i),A=()=>S(pn,"$contextMenuVisible$",i),I=()=>S(Ui,"$isFullscreen",i),N=()=>S(uo,"$autoplayNextEnabled",i),H=()=>S(n(Ni),"$prevButton",i),B=()=>S(n(Ji),"$replayButton",i),z=()=>S(n(Ro),"$playButton",i),X=()=>S(n(nn),"$nextButton",i),ae=()=>S(n(Qi),"$playPrevChapterButton",i),Q=()=>S(n(ui),"$seekToInteractiveButton",i),ce=()=>S(n(eo),"$interactiveGraphButton",i),J=()=>S(n(rn),"$liveButton",i),me=()=>S(n(Hn),"$time",i),se=()=>S(n(es),"$episodes",i),le=()=>S(n(ts),"$vkLogo",i),Pe=()=>S(n(is),"$volume",i),ye=()=>S(n(_n),"$subtitles",i),ee=()=>S(n(bn),"$settings",i),Be=()=>S(n(wr),"$context",i),pe=()=>S(n($n),"$fullscreen",i),k=()=>S(n(Or),"$chromecast",i),Ge=()=>S(To,"$additionalDesktopControlPanelRightButtons$",i),Me=()=>S(zi,"$playerSize",i),Y=()=>S(Yo,"$isInteractiveTime$",i),oe=()=>S(oi,"$previewTrackActive",i),He=()=>S(yt,"$settingsMenuVisible",i),Xe=()=>S(to,"$settingButtonRef$",i),ge=()=>S(K,"$startedByKeyboard$",i),ie=()=>S(mi,"$isAudioAvailable$",i),ke=()=>S(xe,"$fakeIsPlaying$",i),we=()=>S(gs,"$seekToInteractiveDisabledTooltip$",i),Fe=()=>S(_e,"$isPreviewTrackHorizontallyAligned$",i),Je=()=>S(tr,"$previewTrackAvailable",i),Ye=()=>S(Bo,"$previewTrackDragInProgress",i),qe=()=>S(Xt,"$adPosition",i),Ze=()=>S(Yt,"$position$",i),Ht=()=>S(Mt,"$adDuration",i),st=()=>S(pt,"$duration$",i),Ft=h(e,"playerControlsWrapperRef",15,void 0),Gt=h(e,"playerControlsRef",15,void 0),kt=h(e,"isAds",3,!1),ti=h(e,"logoTargetUrl",3,""),qt=h(e,"isOneVideoPlaylist",3,!1),Ce=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:xe}=So(),te=he(),Te=So(),Ve=Nt(),Vt=te.actions.internal.toggleMuted,Re=te.actions.internal.togglePlay,dt=te.actions.internal.pause,It=te.actions.internal.toggleSubtitle,Se=te.actions.internal.checkFullscreenSupport,at=(pl=te.callbacks)==null?void 0:pl.onAudioDoesNotExistHint,We=(ua=te.callbacks)==null?void 0:ua.onAudioDisabledHint,pt=te.state.duration$,Yt=te.state.positionWithScrubbing$,yi=te.state.playbackState$,mi=te.state.isAudioAvailable$,Si=te.state.isAudioDisabled,lo=te.state.isEnded$,co=te.state.isLive$,ci=te.state.isActiveLive$,ht=te.state.isRewindableLive$,{isActive$:xi,type$:di}=Te.pictureInPicture$,yt=te.ui.settingsMenu.visible$,gi=te.ui.settingsMenu.openedByBtnKeyboard$,Jt=te.ui.controls,Ct=te.actions.internal.getVideoEpisodes(),et=te.state.chromecastState$,ki=te.state.availableSubtitlesList$,Co=te.state.currentSubtitle$,jo=Jt.disabledControls$,pn=te.ui.contextMenu.visible$,At=te.ui.contextMenu.showContextMenuBtn$,Ut=te.ui.contextMenu.openedByBtnKeyboard$,K=te.ui.startedByKeyboard$,Pt=te.ui.controlBlocks,ni=te.ui.previewTrackNotificationVisible,_t=te.ui.t,Mt=te.ads.duration,Xt=te.ads.position,ft=te.ads.playbackState,Ui=te.ui.isFullscreen,zi=te.ui.playerSize,Go=te.ui.currentGridType$,To=te.ui.additionalDesktopControlPanelRightButtons$,uo=te.ui.autoplayNextEnabled$,Wi=te.actions.internal.getVideoElement,Mr=te.actions.internal.replayInteractive,yo=te.actions.internal.prevVideoClick,po=te.actions.internal.nextVideoClick,Ki=te.state.isInteractive,Yo=te.state.isInteractiveTime$,Zo=te.state.showInteractiveGraph,ur=te.state.showSeekToInteractive,pr=te.state.showPlayPrevChapter,fr=te.state.showInteractiveTimeIndicator,ms=te.state.playPrevChapterDisabledTooltip,gs=Te.seekToInteractiveDisabledTooltip$,fn=Te.graphIsOpened$,vn=Ve.features.interactiveResponsiveUi,Yn=m(()=>r().has("EPISODE_BUTTON")),Xo=m(()=>r().has("GRAPH_BUTTON")),Jo=m(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),vr=m(()=>r().has("PLAY_BUTTON")),mr=m(()=>r().has("REPLAY_BUTTON")),Lr=m(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),gr=()=>te.actions.internal.toggleChromecast(),Xr=m(()=>kt()?s()==="playing":l()===Ga.PlaybackState.PLAYING),hr=m(()=>d().value!=="off"),fo=m(()=>a()&&!kt()||Ki),_r=m(()=>vn?n(fo)&&ro(u(),"m"):n(fo)),Vn=m(()=>!a()||Ki||kt()),Rn=m(()=>ro(u(),"m")),vo=m(()=>e.showNextPrevButtons&&ro(u(),"m")&&!kt()&&e.nextButtonActive),br=m(()=>e.showNextPrevButtons&&ro(u(),"m")&&!kt()&&e.prevButtonActive),en=m(()=>!kt()&&!!f()),xt=m(()=>v()!==Ga.ChromecastState.NOT_AVAILABLE&&!(p()&&x()===1)&&ro(u(),"m")&&!Ki),hi=m(()=>e.showAutoplayNext&&!qt()&&ro(u(),"s")),$r=m(()=>w().length>0&&ro(u(),"m")),Zn=m(()=>y()||C()),Jr=m(()=>ro(u(),"s")&&!kt()),tn=m(()=>!e.logoHidden&&!kt()),On=m(()=>Ve.features.fullscreen&&Se()&&(e.logoHidden||ro(u(),vn?"xs":"s"))&&!(p()&&x()===1)&&(Ki?Ce():!0)),Pi=m(()=>(!f()||kt())&&!(Ve.features.interactiveHideTime&&Ki)),qi=m(()=>Zo&&ro(u(),"m")),on=m(()=>vn?ur&&ro(u(),"s"):ur),Xn=m(()=>vn?pr&&ro(u(),"s"):pr),mn=m(()=>!kt()&&!f()&&!!(Ct!=null&&Ct.length)&&n(Rn)&&!n(Yn)),gn=m(()=>!T()||!!E()),Jn=m(()=>R()?_t("tooltip_interactive_graph_on"):_t("tooltip_interactive_graph_off")),hn=m(()=>A()?_t("tooltip_context_menu_close"):_t("tooltip_context_menu_open")),Nn=(bt,$t)=>bt?$t&&$t===Ga.PlaybackState.PAUSED?_t("tooltip_play"):"":_t("tooltip_live"),Eo=m(()=>Nn(n(gn),l())),yr=m(()=>Ve.logoType==="vk_video"?_t("tooltip_vk_video_logo"):_t("tooltip_vk_logo")),Vr=m(()=>n(hr)?_t("tooltip_subtitles_on"):_t("tooltip_subtitles_off")),Dn=m(()=>I()?_t("tooltip_fullscreen_on"):_t("tooltip_fullscreen_off")),Bn=m(()=>v()===Ga.ChromecastState.CONNECTED?_t("tooltip_chromecast_on"):_t("tooltip_chromecast_off")),Rr=m(()=>N()?_t("tooltip_autoplay_on"):_t("tooltip_autoplay_off")),xr=j(0),nt=ai({}),pi=ai({}),Ni=m(()=>Jt.prevButton),Ji=m(()=>Jt.replayButton),Ro=m(()=>Jt.playButton),nn=m(()=>Jt.nextButton),Qi=m(()=>Jt.playPrevChapterButton),ui=m(()=>Jt.seekToInteractiveButton),eo=m(()=>Jt.interactiveGraphButton),rn=m(()=>Jt.liveButton),Hn=m(()=>Jt.time),es=m(()=>Jt.episodes),ts=m(()=>Jt.vkLogo),is=m(()=>Jt.volume),_n=m(()=>Jt.subtitles),bn=m(()=>Jt.settings),wr=m(()=>Jt.context),$n=m(()=>Jt.fullscreen),Or=m(()=>Jt.chromecast),ot=m(()=>({prevButton:H()?H().right-H().left:0,replayButton:B()?B().right-B().left:0,playButton:z()?z().right-z().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:ae()?ae().right-ae().left:0,seekToInteractiveButton:Q()?Q().right-Q().left:0,interactiveGraphButton:ce()?ce().right-ce().left:0,liveButton:J()?J().right-J().left:0,time:me()?me().right-me().left:0,episodes:se()?se().right-se().left:0,vkLogo:le()?le().right-le().left:0,volume:Pe()?Pe().right-Pe().left:0,subtitles:ye()?ye().right-ye().left:0,settings:ee()?ee().right-ee().left:0,context:Be()?Be().right-Be().left:0,fullscreen:pe()?pe().right-pe().left:0,chromecast:k()?k().right-k().left:0,additionalButtons:Ge().length?Ge().reduce(bt=>[...bt,40],[]):[]})),Rt=j(0);Qe(()=>{(!n(Rt)||n(Rt)<n(ot).time)&&Lt(()=>O(Rt,n(ot).time,!0))});let Ci=j(!1);Qe(()=>{let bt=0;n(mn)&&(ro(u(),"xl")?bt=n(ot).time:bt=60);let $t=n(ot).prevButton+n(ot).playButton+n(ot).nextButton+n(ot).seekToInteractiveButton+n(ot).interactiveGraphButton+n(ot).liveButton+n(Rt)+bt;O(Ci,n(Pi)&&n(xr)>=$t,!0)});let xo=m(()=>n(Ci)&&ro(u(),"m")),wo=(0,pm.debounceFn)(Xl,260),mo=(0,pm.debounceFn)(up,260);Qe(()=>{Me(),Y(),oe(),wo(Wi(),Jt,nt,e.showControls),mo(Wi(),Pt,pi,e.showControls)}),Qe(()=>{pi.bottom=Ft()});let to=de();Qe(()=>{He(),Xe()&&Lt(()=>zl(Xe(),He(),gi))});let Di;Qe(()=>{ge(),Lt(()=>dp(K,ge(),Di))});function yn(){ea({isAudioDisabled:Si,isAudioAvailable:ie(),isAds:kt(),audioIsNotExistHintCallback:at,audioDisabledHintCallback:We})&&Vt()}let go=Ki?Mr:Re,Oo=m(()=>ke()!==null),No=m(()=>n(Oo)?ke():n(Xr)),er=m(()=>n(No)?_t("tooltip_pause"):_t("tooltip_play")),Fn=_t("tooltip_episodes"),Nr=m(()=>{var bt,$t,io,Io;return n(br)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ms.prevButton,buttonComponent:qa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:yo.bind(null,!0)},tooltipEnabled:!(($t=(bt=te.callbacks)==null?void 0:bt.uiInfo)!=null&&$t.onPrevButtonMouseEnter)&&!((Io=(io=te.callbacks)==null?void 0:io.uiInfo)!=null&&Io.onPrevButtonMouseLeave),mouseEnter:()=>{var oo,_i,ji;(ji=(_i=(oo=te.callbacks)==null?void 0:oo.uiInfo)==null?void 0:_i.onPrevButtonMouseEnter)==null||ji.call(_i,jn(Wi(),nt,"prevButton",e.showControls))},mouseLeave:()=>{var oo,_i,ji;(ji=(_i=(oo=te.callbacks)==null?void 0:oo.uiInfo)==null?void 0:_i.onPrevButtonMouseLeave)==null||ji.call(_i,jn(Wi(),nt,"prevButton",e.showControls))},tooltipText:_t("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Sr=m(()=>n(_r)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ms.replayButton,buttonComponent:Jl,buttonComponentProps:{disabled:n(mr),click:go},tooltipText:_t("tooltip_restart"),disabled:n(mr)}:void 0),os=m(()=>n(Vn)?{id:"playButton",type:"desktop-control-panel-left",weight:Ms.playButton,buttonComponent:ed,buttonComponentProps:{disabled:n(vr),isPlaying:n(Xr),click:Re},tooltipText:n(er),disabled:n(vr)}:void 0),Dr=m(()=>{var bt,$t,io,Io;return n(vo)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ms.nextButton,buttonComponent:qa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:po.bind(null,!0)},tooltipEnabled:!(($t=(bt=te.callbacks)==null?void 0:bt.uiInfo)!=null&&$t.onNextButtonMouseEnter)&&!((Io=(io=te.callbacks)==null?void 0:io.uiInfo)!=null&&Io.onNextButtonMouseLeave),mouseEnter:()=>{var oo,_i,ji;(ji=(_i=(oo=te.callbacks)==null?void 0:oo.uiInfo)==null?void 0:_i.onNextButtonMouseEnter)==null||ji.call(_i,jn(Wi(),nt,"nextButton",e.showControls))},mouseLeave:()=>{var oo,_i,ji;(ji=(_i=(oo=te.callbacks)==null?void 0:oo.uiInfo)==null?void 0:_i.onNextButtonMouseLeave)==null||ji.call(_i,jn(Wi(),nt,"nextButton",e.showControls))},tooltipText:_t("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),ns=m(()=>Ki&&n(Xn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ms.playPrevChapterButton,buttonComponent:yc,buttonComponentProps:{disabled:n(Lr),click:e.playPrevChapter},tooltipText:_t("tooltip_interactive_go_back"),disabledTooltipContent:_t(ms),disabled:n(Lr)}:void 0),Ke=m(()=>Ki&&n(on)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ms.seekToInteractiveButton,buttonComponent:wc,buttonComponentProps:{disabled:n(Jo),click:e.seekToInteractive},tooltipText:_t("tooltip_interactive_seek"),disabled:n(Jo),disabledTooltipContent:_t(we())}:void 0),ii=m(()=>Ki&&n(qi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ms.interactiveGraphButton,buttonComponent:Sc,buttonComponentProps:{disabled:n(Xo),click:fn.toggle,graphIsOpened:R()},tooltipText:n(Jn)}:void 0),Mi=m(()=>n(en)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ms.liveButton,buttonComponent:Cc,buttonComponentProps:{isLiveActive:n(gn),ariaLabel:n(Eo)},tooltipText:n(Eo),disabled:n(gn)&&l()===Ga.PlaybackState.PLAYING}:void 0),xn=m(()=>[n(Nr),n(Sr),n(os),n(Dr),n(ns),n(Ke),n(ii),n(Mi)].filter(bt=>!!bt).sort(Ba)),sn=m(()=>n(tn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Vs.vkLogo,buttonComponent:fc,buttonComponentProps:{targetUrl:ti(),logoClickable:e.logoClickable,click:dt},tooltipText:n(yr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Br=m(()=>n(hi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Vs.autoplayNext,buttonComponent:xc,tooltipText:n(Rr)}:void 0),an=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:Vs.volume,buttonComponent:Lv,buttonComponentProps:{click:yn,isAds:kt()}})),Do=m(()=>n($r)?{id:"subtitles",type:"desktop-control-panel-right",weight:Vs.subtitles,buttonComponent:kv,buttonComponentProps:{isSubtitlesEnabled:n(hr),click:It},tooltipText:n(Vr)}:void 0),Hr=m(()=>n(Jr)?{id:"settings",type:"desktop-control-panel-right",weight:Vs.settings,buttonComponent:jl,buttonComponentProps:{ref$:to},tooltipText:He()?void 0:_t("tooltip_settings_off")}:void 0),wn=m(()=>Ve.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Vs.context,buttonComponent:jv,buttonComponentProps:{ariaLabel:_t("aria_label_context_menu")},className:n(Zn)?"":"out-of-view",tooltipText:n(hn)}:void 0),Ns=m(()=>n(On)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Vs.fullscreen,buttonComponent:pc,buttonComponentProps:{isFullscreen:I(),click:e.toggleFullscreen},tooltipText:n(Dn)}:void 0),ra=m(()=>n(xt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Vs.chromecast,buttonComponent:vc,buttonComponentProps:{state:v(),click:gr},tooltipText:n(Bn)}:void 0),vt=m(()=>[n(sn),n(Br),n(an),n(Do),n(Hr),n(wn),n(Ns),n(ra),...Ge()].filter(bt=>!!bt).sort(Ba)),oi=te.ui.previewTrackActive,Bo=te.ui.previewTrackDragInProgress,tr=te.ui.previewTrackAvailable,_e=te.ui.isPreviewTrackHorizontallyAligned,mt=m(()=>X0({onPreviewTrackOpened:te.actions.internal.previewTrackOpened,getTimelineRef:()=>nt.timeline,isHorizontal:Fe()})),si=m(()=>n(mt).progressBarY),Ti=m(()=>n(mt).controlsY),fi=m(()=>n(mt).onPointerDown),ri=m(()=>n(mt).onPointerMove),Ei=m(()=>n(mt).onPointerUp),Sn=m(()=>n(mt).calculatedHeight),Un=m(()=>n(mt).closePreviewTrack);Qe(()=>{oe()?ni.set(!1):n(Un)()});let Li;Bt(()=>()=>Li&&clearTimeout(Li));let sa=bt=>{oe()||!Je()||(n(fi)(bt),Li=setTimeout(()=>{te.actions.internal.previewTrackDragStarted()},200))},sl=()=>{oe()||n(Ei)(),Li&&clearTimeout(Li),Ye()&&te.actions.internal.previewTrackDragFinished()},Cr=bt=>{n(ri)(bt),!oe()&&Je()&&!oe()&&ni.set(!0)},al=()=>{ni.set(!1)};var aa=l3(),Cn=fe(aa);let la;var ll=_(Cn);{var dl=bt=>{let $t=m(()=>n(si)()),io=m(()=>n(Sn)());um(bt,{get animatedOffsetY(){return n($t)},get animatedPreviewTrackHeight(){return n(io)},get canRewindLive(){return e.canRewindLive},get isAds(){return kt()},onTimelineMove:Cr,onTimelinePointerDown:sa,onTimelinePointerUp:sl,onTimelinePointerLeave:al,get previewTrackAvailable(){return Je()},get timelineRef(){return nt.timeline},set timelineRef(Io){nt.timeline=Io}})};V(ll,bt=>{e.showControls&&bt(dl)})}var hs=P(ll,2),_s=_(hs),cl=_(_s);Ii(cl,17,()=>n(xn),bt=>bt.id,(bt,$t)=>{cp(bt,{get buttonComponent(){return n($t).buttonComponent},get buttonComponentProps(){return n($t).buttonComponentProps},get tooltipText(){return n($t).tooltipText},get disabledTooltipContent(){return n($t).disabledTooltipContent},get disabled(){return n($t).disabled},get className(){return n($t).className},get tooltipEnabled(){return n($t).tooltipEnabled},get mouseEnter(){return n($t).mouseEnter},get mouseLeave(){return n($t).mouseLeave},get ref(){return nt[n($t).id]},set ref(io){nt[n($t).id]=io}})});var da=P(cl,2);{var ud=bt=>{let $t=m(()=>!e.showControls),io=m(()=>kt()?qe():Ze()),Io=m(()=>kt()?Ht():st());dc(bt,{get isHidden(){return n($t)},isMobile:!1,get showDuration(){return n(xo)},get position(){return n(io)},get duration(){return n(Io)},get ref(){return nt.time},set ref(oo){nt.time=oo}})};V(da,bt=>{n(Pi)&&bt(ud)})}var Tr=P(da,2);let pd=m(()=>!n(mn));Lo(Tr,{className:"w-max",get disabled(){return n(pd)},get tooltipContent(){return Fn},get ref(){return nt.episodes},set ref(bt){nt.episodes=bt},children:(bt,$t)=>{var io=ze(),Io=fe(io);{var oo=_i=>{mc(_i,{get position(){return Ze()},get duration(){return st()},get timeCodes(){return Ct}})};V(Io,_i=>{n(mn)&&_i(oo)})}b(bt,io)},$$slots:{default:!0}}),g(_s);var ca=P(_s,2);Ii(ca,21,()=>n(vt),bt=>bt.id,(bt,$t)=>{var io=ze(),Io=fe(io);{var oo=ji=>{cp(ji,{get buttonComponent(){return n($t).buttonComponent},get buttonComponentProps(){return n($t).buttonComponentProps},get tooltipText(){return n($t).tooltipText},get disabledTooltipContent(){return n($t).disabledTooltipContent},get disabled(){return n($t).disabled},get className(){return n($t).className},get ref(){return nt[n($t).id]},set ref(Ds){nt[n($t).id]=Ds}})},_i=ji=>{let Ds=m(()=>!!n($t).disabled);im(ji,{get id(){return n($t).id},get testId(){return n($t).testId},get icon(){return n($t).icon},get ariaLabel(){return n($t).ariaLabel},get tooltipText(){return n($t).tooltipText},get disabledTooltipContent(){return n($t).disabledTooltipContent},get disabled(){return n(Ds)},get onClick(){return n($t).onClick},get disableMouseupTooltipShow(){return n($t).disableMouseupTooltipShow},get ref(){return nt[n($t).id]},set ref(vd){nt[n($t).id]=vd}})};V(Io,ji=>{G0(n($t))?ji(oo):ji(_i,!1)})}b(bt,io)}),g(ca),g(hs),lt(hs,bt=>Gt(bt),()=>Gt()),g(Cn),lt(Cn,bt=>Ft(bt),()=>Ft());var fd=P(Cn,2);{var ul=bt=>{_c(bt,{get ref(){return nt.interactiveTimeIndicator},set ref($t){nt.interactiveTimeIndicator=$t}})};V(fd,bt=>{fr&&bt(ul)})}D((bt,$t)=>{la=re(Cn,1,"wrapper-bottom svelte-1ojrdvx",null,la,bt),it(hs,$t),hs.inert=oe()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Ye()}),()=>`transform: translateY(${n(Ti)()}px);`]),Mn(_s,"clientWidth",bt=>O(xr,bt)),b(t,aa),U(),o()}var td=require("@vkontakte/videoplayer-core/es2015");var vm=require("@vkontakte/videoplayer-shared/es2015");var c3=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),u3=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),p3={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 mm(t,e){W(t,p3);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,vm.noop),r=m(()=>o()===vm.noop),s=m(()=>n(r)||i()),l=j(!1),d=()=>{O(l,!0)},a=m(()=>n(r)?"btn-full-opacity":"");Kt(t,{get className(){return n(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(u,f)=>{var v=ze(),p=fe(v);{var x=y=>{var C=c3();b(y,C)},w=y=>{var C=u3();D(()=>je(C,"src",e.iconUrl)),St("error",C,d),Ta(C),b(y,C)};V(p,y=>{n(l)?y(x):y(w,!1)})}b(u,v)},$$slots:{default:!0}})}var f3=Ie('<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 gm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=f3();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var i_=require("@vkontakte/videoplayer-shared/es2015");var v3=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),m3={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function fp(t,e){F(e,!0),W(t,m3);let i=h(e,"muted",3,!1),o=h(e,"click",3,i_.noop),r=h(e,"ref",15,void 0),l=he().ui.t,d=m(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=m(()=>i()?gm:ia),u=m(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Kt(t,{get testId(){return n(u)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(f){r(f)},children:(f,v)=>{var p=v3();let x=m(()=>n(a));var w=_(p);Ri(w,()=>n(x),(y,C)=>{C(y,{})}),g(p),b(f,p)},$$slots:{default:!0}}),U()}var g3=Ie('<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 hm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=g3();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(3),g(o),b(t,o)}var h3={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
267
|
+
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function _m(t,e){W(t,h3);let i=h(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),r=m(()=>i()?"pip-icon--active":"pip-icon");hm(t,{get style(){return n(o)},get"data-testid"(){return n(r)}})}var o_=require("@vkontakte/videoplayer-shared/es2015");function bm(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,o_.noop),s=Z("menu_pip");Kt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{_m(l,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}var $m=require("@vkontakte/videoplayer-shared/es2015");var _3=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},b3=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},$3=M("<div><!></div>"),y3=M("<div><!></div>"),x3=M("<div><!></div>"),w3=M("<!> <!> <!>",1),S3=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),C3=M('<div class="wrapper-middle svelte-tg0ura"><!></div>'),T3=M("<div><!></div> <!> <div><!></div>",1),E3=M('<div aria-hidden="true">\xB7</div> <!>',1),I3=M('<!> <!> <div><div><div class="controls mobile svelte-tg0ura"><div class="controls-group contain svelte-tg0ura"><!> <!> <!> <!></div> <div class="controls-group svelte-tg0ura"><!> <!> <!></div></div> <!></div></div> <!>',1),k3={hash:"svelte-tg0ura",code:`.wrapper-bottom.svelte-tg0ura {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-tg0ura::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-tg0ura > :where(.svelte-tg0ura) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-tg0ura {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-tg0ura {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-tg0ura {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-tg0ura {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-tg0ura,
|
|
268
268
|
.wrapper-middle-left-second.svelte-tg0ura,
|
|
269
269
|
.wrapper-middle-right.svelte-tg0ura {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-tg0ura {left:12px;}.wrapper-middle-left-second.svelte-tg0ura {left:64px;}.wrapper-middle-right.svelte-tg0ura {right:12px;}.controls.svelte-tg0ura {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-tg0ura {display:flex;}.controls-group.contain.svelte-tg0ura {min-width:0;}.controls-group.svelte-tg0ura > *:not(:first-child) {margin-left:8px;}.hidden.svelte-tg0ura {visibility:hidden;opacity:0;}.controls-hidden.svelte-tg0ura {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-tg0ura {transition:none;}.overlay-mobile.svelte-tg0ura {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
|
|
270
270
|
|
|
@@ -272,7 +272,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
|
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
@media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-tg0ura {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-tg0ura {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-tg0ura {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-tg0ura {left:96px;}.wrapper-middle-right.fullscreen.svelte-tg0ura {right:44px;}.controls-wrapper.fullscreen.svelte-tg0ura {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
|
|
275
|
-
}`};function ym(t,e){var wn,Hr;F(e,!0),W(t,P3);let[i,o]=Be(),r=()=>S(zi,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(Jt,"$disabledControls$",i),l=()=>S(qt,"$playbackState$",i),d=()=>S(tn,"$adPlaybackState",i),a=()=>S(te,"$isEnded$",i),u=()=>S(Pt,"$playerSize",i),f=()=>S(xt,"$scrubbingInProgress",i),v=()=>S(It,"$chromecastState$",i),p=()=>S(nt,"$isPictureInPictureActive",i),x=()=>S(Qe,"$pictureInPictureType$",i),w=()=>S(xe,"$mobileNotReportControlHidden$",i),y=()=>S(ht,"$chromecastHidden",i),C=()=>S(Gt,"$playerPhase",i),T=()=>S(ho,"$pipHidden",i),E=()=>S(Ye,"$currentGridType$",i),R=()=>S(wi,"$vkLogoHidden",i),A=()=>S(mi,"$volumeHidden",i),I=()=>S(Te,"$isLive$",i),N=()=>S(dt,"$settingsMenuVisible",i),H=()=>S(pt,"$isRewindableLive$",i),B=()=>S(De,"$isActiveLive$",i),z=()=>S(Ce,"$isAudioAvailable$",i),X=()=>S(At,"$muted$",i),le=()=>S(Me,"$volume$",i),q=()=>S(mt,"$isInteractiveTime$",i),ce=()=>S(_n,"$settingButtonRef$",i),J=()=>S(Tt,"$startedByKeyboard$",i),ve=()=>S(vn,"$isFullscreen",i),se=()=>S(Ut,"$additionalButtons$",i),de=()=>S(co,"$autoplayNextToggleHidden",i),Le=()=>S(si,"$crashed$",i),Se=()=>S(ui,"$settingsHidden",i),ie=()=>S(on,"$graphIsOpened$",i),Ne=()=>S(To,"$adPosition",i),pe=()=>S(Si,"$adDuration",i),k=()=>S(oi,"$position$",i),qe=()=>S(kt,"$duration$",i),Re=h(e,"playerControlsWrapperRef",15,void 0),Z=h(e,"playerControlsRef",15,void 0),ne=h(e,"isAds",3,!1),He=h(e,"logoTargetUrl",3,""),Xe=h(e,"isOneVideoPlaylist",3,!1),ge=h(e,"customFullscreenSupported",3,!0),ee=_e(),ke=Co(),he=Nt(),Ue=ee.actions.internal.toggleMuted,Je=ee.actions.internal.togglePlay,Ge=ee.actions.internal.pause,ut=ee.actions.internal.prevVideoClick,tt=ee.actions.internal.nextVideoClick,Ft=ee.actions.internal.checkFullscreenSupport,st=(wn=ee.callbacks)==null?void 0:wn.onAudioDoesNotExistHint,Ht=(Hr=ee.callbacks)==null?void 0:Hr.onAudioDisabledHint,Gt=ee.playerPhase,kt=ee.state.duration$,oi=ee.state.positionWithScrubbing$,qt=ee.state.playbackState$,Ce=ee.state.isAudioAvailable$,we=ee.state.isAudioDisabled,te=ee.state.isEnded$,Te=ee.state.isLive$,Me=ee.state.volume$,At=ee.state.muted$,De=ee.state.isActiveLive$,pt=ee.state.isRewindableLive$,xt=ee.ui.scrubbingInProgress,xe=ee.ui.mobileNotReportControlHidden$,{isActive$:nt,type$:Qe}=ke.pictureInPicture$,dt=ee.ui.settingsMenu.visible$,ni=ee.ui.settingsMenu.openedByBtnKeyboard$,ai=ee.ui.controls,{volume:mi,vkLogo:wi,autoplayNextToggle:co,pip:ho,settings:ui,chromecast:ht}=ee.ui.hiddenControls,Mi=ee.actions.internal.getVideoEpisodes(),Xt=ee.webApi.pictureInPictureApi,It=ee.state.chromecastState$,si=ee.state.crashed$,Jt=ai.disabledControls$,Tt=ee.ui.startedByKeyboard$,Ye=ee.ui.currentGridType$,Si=ee.ads.duration,To=ee.ads.position,tn=ee.ads.playbackState,vn=ee.ui.isFullscreen,Pt=ee.ui.playerSize,Ut=ee.ui.additionalButtonsDeprecated$,K=ee.actions.internal.getVideoElement,Ot=ee.actions.internal.replayInteractive,ri=ee.state.isInteractive,mt=ee.state.isInteractiveTime$,Mt=ee.state.showInteractiveGraph,Zt=ee.state.showSeekToInteractive,ft=ee.state.showPlayPrevChapter,Ni=ee.state.showInteractiveTimeIndicator,zi=ke.seekToInteractiveDisabledTooltip$,on=ke.graphIsOpened$,No=ee.ui.controlBlocks,uo=m(()=>Y(ee.state.playPrevChapterDisabledTooltip)),Wi=m(()=>Y(r())),pr=m(()=>s().has("EPISODE_BUTTON")),_o=m(()=>s().has("GRAPH_BUTTON")),bo=m(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Di=m(()=>s().has("PLAY_BUTTON")),mn=m(()=>s().has("REPLAY_BUTTON")),Do=m(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),fr=m(()=>l()===id.PlaybackState.PLAYING),vr=m(()=>d()==="paused"),Er=m(()=>a()&&!ne()&&!ri),os=m(()=>!a()||ne()),gs=m(()=>e.showNextPrevButtons&&!ne()&&e.prevButtonActive),ns=m(()=>e.showNextPrevButtons&&!ne()&&e.nextButtonActive),Eo=m(()=>u().width>300),jn=m(()=>u().width>400),Bo=m(f),gn=m(()=>v()!==id.ChromecastState.NOT_AVAILABLE&&!(p()&&x()===1)&&!w()&&!ri&&!y()),Vn=m(()=>C()==="LiveWaitingStart"),mr=m(()=>!!Xt&&v()!==id.ChromecastState.CONNECTED&&!w()&&(x()===1&&n(Vn)||!n(Vn))&&!n(Bo)&&!ri&&!T()),Ir=j(!1);Bt(()=>{let it=Xt==null?void 0:Xt.info.isActive$.subscribe(Vt=>O(Ir,Vt,!0));return()=>it==null?void 0:it.unsubscribe()});let kr=m(()=>!n(Bo)&&so(E(),"s")),Ar=m(()=>!e.logoHidden&&u().width>350&&!R()),Pr=m(()=>he.features.fullscreen&&Ft()&&!(p()&&x()===1)&&(ri?ge():!0)&&!n(Bo)&&!n(Ir)),Zi=m(()=>!A()&&!n(Bo)),Mr=m(()=>(!I()||ne())&&u().width>260&&!n(Bo)&&!(he.features.interactiveHideTime&&ri)),Rn=m(()=>N()||e.showControls),hn=m(()=>!ne()&&!I()&&!!(Mi!=null&&Mi.length)&&n(Eo)&&!n(pr)&&!n(Bo)),$o=m(()=>!H()||!!B()),gr=m(()=>Mt&&so(E(),"m")),On=m(()=>!z()||X()||le()===0),_t=di({}),vi=di({}),Lr=(0,$m.debounceFn)(Jl,260),Gn=(0,$m.debounceFn)(pp,260);We(()=>{u(),q(),Lr(K(),ai,_t,e.showControls),Gn(K(),No,vi,e.showControls)});let Vr=()=>ee.actions.internal.toggleChromecast();function Nn(){return wt(this,null,function*(){Xt!=null&&Xt.isActive()?yield Xt==null?void 0:Xt.exit():yield Xt==null?void 0:Xt.request()})}function Dn(){ia({isAudioDisabled:we,audioDisabledHintCallback:Ht,isAudioAvailable:z(),audioIsNotExistHintCallback:st,isAds:ne()})&&Ue()}let Ho=j(""),Fo=(it,Vt)=>{if(!it){O(Ho,Y("tooltip_live"),!0);return}Vt&&Vt===id.PlaybackState.PAUSED&&O(Ho,Y("tooltip_play"),!0)};We(()=>{Fo(n($o),l())});let _n=ae();We(()=>{ce()&&Wl(ce(),N(),ni)}),We(()=>{cp(Tt,J(),_t.playButton)}),We(()=>{vi.bottom=Re()});var yo=A3(),Uo=fe(yo);{var nn=it=>{var Vt=T3(),Ci=fe(Vt);let wo;var Wo=P(Ci,2);let Io;lt(Wo,bt=>vi.topLeft=bt,()=>vi==null?void 0:vi.topLeft);var eo=P(Wo,2);let Li;var sn=_(eo);Ei(sn,1,se,({iconUrl:bt,ariaLabel:pi,testId:So,onClick:Cn,tooltip:ye})=>bt,(bt,pi)=>{let So=()=>n(pi).iconUrl,Cn=()=>n(pi).ariaLabel,ye=()=>n(pi).testId,gt=()=>n(pi).onClick,li=()=>n(pi).tooltip,Ti=m(()=>{var fi;return(fi=Cn())!=null?fi:li()});mm(bt,{get iconUrl(){return So()},get ariaLabel(){return n(Ti)},get testId(){return ye()},get onClick(){return gt()}})});var Ko=P(sn,2);{var ko=bt=>{wc(bt,{get ref(){return _t.autoplayNextToggle},set ref(pi){_t.autoplayNextToggle=pi}})};V(Ko,bt=>{e.showAutoplayNext&&!Xe()&&!de()&&bt(ko)})}var to=P(Ko,2);{var Fr=bt=>{mc(bt,{isMobile:!0,click:Vr,get state(){return v()},get ref(){return _t.chromecast},set ref(pi){_t.chromecast=pi}})};V(to,bt=>{n(gn)&&bt(Fr)})}var Jn=P(to,2);{var er=bt=>{bm(bt,{click:Nn,get isPictureInPictureActive(){return p()},get ref(){return _t.pip},set ref(pi){_t.pip=pi}})};V(Jn,bt=>{n(mr)&&bt(er)})}var $r=P(Jn,2);{var hs=bt=>{Gl(bt,{get ref$(){return _n}})};V($r,bt=>{Le()&&!Se()&&bt(hs)})}var Ur=P($r,2);{var rs=bt=>{vc(bt,{get click(){return Ge},get targetUrl(){return He()},get logoClickable(){return e.logoClickable},get ref(){return _t.vkLogo},set ref(pi){_t.vkLogo=pi}})};V(Ur,bt=>{n(Ar)&&bt(rs)})}g(eo),lt(eo,bt=>vi.topRight=bt,()=>vi==null?void 0:vi.topRight);var je=P(eo,2);let ti;var _i=_(je);{var Sn=bt=>{let pi=m(()=>ut.bind(null,!0));Qa(bt,{get click(){return n(pi)},type:"prev",isMobile:!0,get ref(){return _t.prevButton},set ref(So){_t.prevButton=So}})};V(_i,bt=>{n(gs)&&bt(Sn)})}var qo=P(_i,2);{var zr=bt=>{td(bt,{get disabled(){return n(Di)},get click(){return Je},isMobile:!0,get isPlaying(){return n(fr)},get ref(){return _t.playButton},set ref(pi){_t.playButton=pi}})};V(qo,bt=>{n(os)&&bt(zr)})}var an=P(qo,2);{var Wr=bt=>{ed(bt,{get disabled(){return n(mn)},get click(){return Je},isMobile:!0,get ref(){return _t.replayButton},set ref(pi){_t.replayButton=pi}})};V(an,bt=>{n(Er)&&bt(Wr)})}var Bs=P(an,2);{var io=bt=>{let pi=m(()=>tt.bind(null,!0));Qa(bt,{get click(){return n(pi)},type:"next",isMobile:!0,get ref(){return _t.nextButton},set ref(So){_t.nextButton=So}})};V(Bs,bt=>{n(ns)&&bt(io)})}g(je),lt(je,bt=>vi.middle=bt,()=>vi==null?void 0:vi.middle);var Kr=P(je,2);{var aa=bt=>{var pi=C3(),So=fe(pi);{var Cn=fi=>{var ii=x3();let ki;ii.__click=[$3,Do,e,uo];var Tn=_(ii);let ln=m(()=>!e.showControls);xc(Tn,{get hidden(){return n(ln)},get disabled(){return n(Do)},get click(){return e.playPrevChapter},get ref(){return _t.playPrevChapterButton},set ref(Vi){_t.playPrevChapterButton=Vi}}),g(ii),D(Vi=>ki=re(ii,1,"wrapper-middle-left svelte-tg0ura",null,ki,Vi),[()=>({fullscreen:ve(),hidden:!e.showControls})]),b(fi,ii)};V(So,fi=>{ft&&fi(Cn)})}var ye=P(So,2);{var gt=fi=>{var ii=w3();let ki;var Tn=_(ii);let ln=m(()=>!e.showControls&&!ie());Cc(Tn,{get hidden(){return n(ln)},get disabled(){return n(_o)},get click(){return on.toggle},get graphIsOpened(){return ie()},get ref(){return _t.interactiveGraphButton},set ref(Vi){_t.interactiveGraphButton=Vi}}),g(ii),D(Vi=>ki=re(ii,1,Bd(ft?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",ki,Vi),[()=>({fullscreen:ve(),hidden:!e.showControls&&!ie()})]),b(fi,ii)};V(ye,fi=>{n(gr)&&fi(gt)})}var li=P(ye,2);{var Ti=fi=>{var ii=S3();let ki;ii.__click=[y3,bo,e,Wi];var Tn=_(ii);let ln=m(()=>!e.showControls);Sc(Tn,{get hidden(){return n(ln)},get disabled(){return n(bo)},get click(){return e.seekToInteractive},get ref(){return _t.seekToInteractiveButton},set ref(Vi){_t.seekToInteractiveButton=Vi}}),g(ii),D(Vi=>ki=re(ii,1,"wrapper-middle-right svelte-tg0ura",null,ki,Vi),[()=>({fullscreen:ve(),hidden:!e.showControls})]),b(fi,ii)};V(li,fi=>{Zt&&fi(Ti)})}b(bt,pi)};V(Kr,bt=>{ri&&!f()&&bt(aa)})}D((bt,pi,So,Cn)=>{wo=re(Ci,1,"overlay-mobile svelte-tg0ura",null,wo,bt),Io=re(Wo,1,"wrapper-top-left svelte-tg0ura",null,Io,pi),Li=re(eo,1,"wrapper-top-right svelte-tg0ura",null,Li,So),ti=re(je,1,"wrapper-middle svelte-tg0ura",null,ti,Cn)},[()=>({hidden:!n(Rn)}),()=>({hidden:!e.showControls,fullscreen:ve()}),()=>({hidden:!e.showControls&&!w(),fullscreen:ve()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(it,Vt)};V(Uo,it=>{ne()||it(nn)})}var hr=P(Uo,2);{var Rr=it=>{var Vt=I3(),Ci=fe(Vt);let wo;var Wo=_(Ci);vp(Wo,{get muted(){return X()},click:Dn,get ref(){return _t.volume},set ref(ko){_t.volume=ko}}),g(Ci);var Io=P(Ci,2);{var eo=ko=>{var to=E3(),Fr=_(to);let Jn=m(()=>!n(vr));td(Fr,{get disabled(){return n(Di)},get click(){return Je},isMobile:!0,get isPlaying(){return n(Jn)},get ref(){return _t.playButton},set ref(er){_t.playButton=er}}),g(to),b(ko,to)};V(Io,ko=>{n(vr)&&ko(eo)})}var Li=P(Io,2);let sn;var Ko=_(Li);Ec(Ko,{get position(){return Ne()},get duration(){return pe()}}),g(Li),D((ko,to)=>{wo=re(Ci,1,"wrapper-top-right svelte-tg0ura",null,wo,ko),sn=re(Li,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,sn,to)},[()=>({fullscreen:ve()}),()=>({fullscreen:ve()})]),b(it,Vt)};V(hr,it=>{ne()&&d()!=="inactive"&&it(Rr)})}var bn=P(hr,2);let Ki;var _r=_(bn);let Or;var Bn=_(_r),Yn=_(Bn),Nr=_(Yn);{var Zn=it=>{Ro(it,{get disabled(){return n(mn)},get ref(){return _t.replayButton},set ref(Vt){_t.replayButton=Vt},children:(Vt,Ci)=>{ed(Vt,{get disabled(){return n(mn)},get click(){return Ot}})},$$slots:{default:!0}})};V(Nr,it=>{ri&&it(Zn)})}var ot=P(Nr,2);{var gi=it=>{Ro(it,{get ref(){return _t.liveButton},set ref(Vt){_t.liveButton=Vt},children:(Vt,Ci)=>{Tc(Vt,{get isLiveActive(){return n($o)},isMobile:!0,get ariaLabel(){return n(Ho)}})},$$slots:{default:!0}})};V(ot,it=>{!ne()&&I()&&it(gi)})}var Bi=P(ot,2);{var Xi=it=>{let Vt=m(()=>ne()?Ne():k()),Ci=m(()=>ne()?pe():qe()),wo=m(()=>!e.showControls);cc(it,{get showDuration(){return n(jn)},get position(){return n(Vt)},get duration(){return n(Ci)},isMobile:!0,get isHidden(){return n(wo)},get ref(){return _t.time},set ref(Wo){_t.time=Wo}})};V(Bi,it=>{n(Mr)&&it(Xi)})}var zo=P(Bi,2);let rn=m(()=>!n(hn));Ro(zo,{className:"w-max",get disabled(){return n(rn)},get ref(){return _t.episodes},set ref(it){_t.episodes=it},children:(it,Vt)=>{var Ci=Fe(),wo=fe(Ci);{var Wo=Io=>{var eo=k3(),Li=P(fe(eo),2);gc(Li,{get position(){return k()},get duration(){return qe()},get timeCodes(){return Mi}}),b(Io,eo)};V(wo,Io=>{n(hn)&&Io(Wo)})}b(it,Ci)},$$slots:{default:!0}}),g(Yn),lt(Yn,it=>vi.bottomLeft=it,()=>vi==null?void 0:vi.bottomLeft);var po=P(Yn,2),Pi=_(po);{var Ji=it=>{Ro(it,{get ref(){return _t.volume},set ref(Vt){_t.volume=Vt},children:(Vt,Ci)=>{vp(Vt,{get muted(){return n(On)},click:Dn})},$$slots:{default:!0}})};V(Pi,it=>{n(Zi)&&it(Ji)})}var xo=P(Pi,2);{var $n=it=>{Ro(it,{get ref(){return _t.settings},set ref(Vt){_t.settings=Vt},children:(Vt,Ci)=>{Gl(Vt,{get ref$(){return _n}})},$$slots:{default:!0}})};V(xo,it=>{n(kr)&&it($n)})}var Xn=P(xo,2);{var Dr=it=>{Ro(it,{get ref(){return _t.fullscreen},set ref(Vt){_t.fullscreen=Vt},children:(Vt,Ci)=>{fc(Vt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ve()}})},$$slots:{default:!0}})};V(Xn,it=>{n(Pr)&&it(Dr)})}g(po),lt(po,it=>vi.bottomRight=it,()=>vi==null?void 0:vi.bottomRight),g(Bn),lt(Bn,it=>Z(it),()=>Z());var Br=P(Bn,2);let yn=m(()=>!e.showControls);Ga(Br,{get isHidden(){return n(yn)},get isAds(){return ne()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return H()},get ref(){return _t.timeline},set ref(it){_t.timeline=it}}),g(_r),g(bn),lt(bn,it=>Re(it),()=>Re());var xn=P(bn,2);{var br=it=>{bc(it,{get ref(){return _t.interactiveTimeIndicator},set ref(Vt){_t.interactiveTimeIndicator=Vt}})};V(xn,it=>{Ni&&it(br)})}D((it,Vt)=>{Ki=re(bn,1,"wrapper-bottom mobile svelte-tg0ura",null,Ki,it),Or=re(_r,1,"controls-wrapper svelte-tg0ura",null,Or,Vt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:ve()})]),b(t,yo),U(),o()}ct(["click"]);function Ic(t,e){F(e,!0);let[i,o]=Be(),r=()=>S(T,"$isMobile",i),s=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),a=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),f=h(e,"showAutoplayNext",3,!1),v=h(e,"isOneVideoPlaylist",3,!1),p=h(e,"customFullscreenSupported",3,!0),x=h(e,"endScreenShown",3,!1),w=h(e,"onDisabledPlayPrevChapterClick",3,xm.noop),y=h(e,"onDisabledSeekToInteractiveClick",3,xm.noop),T=_e().ui.isMobile,E=j(!1);Bt(()=>{let N=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(N)});var R=Fe(),A=fe(R);{var I=N=>{var H=Fe(),B=fe(H);{var z=le=>{ym(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return p()},get endScreenShown(){return x()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(q){l(q)},get playerControlsRef(){return d()},set playerControlsRef(q){d(q)}})},X=le=>{fm(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(q){l(q)},get playerControlsRef(){return d()},set playerControlsRef(q){d(q)}})};V(B,le=>{r()?le(z):le(X,!1)})}b(N,H)};V(A,N=>{n(E)&&N(I)})}b(t,R),U(),o()}var M3=Ie('<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 wm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=M3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function Sm(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);wm(t,{get style(){return n(o)}})}var L3=Ie('<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 Cm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=L3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var V3=Ie('<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 Tm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=V3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function mp(t,e){let i=h(e,"isOff",3,!1);var o=Fe(),r=fe(o);{var s=d=>{Tm(d,{})},l=d=>{Cm(d,{})};V(r,d=>{i()?d(s):d(l,!1)})}b(t,o)}var R3=Ie('<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 Em(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=R3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function Im(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Em(t,{get style(){return n(o)}})}var O3=Ie('<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 km(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=O3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function Am(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);km(t,{get style(){return n(o)}})}var N3=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),D3=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),B3=M("<div><!></div>"),H3={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;
|
|
275
|
+
}`};function ym(t,e){var $n,Or;F(e,!0),W(t,k3);let[i,o]=De(),r=()=>S(zi,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(Jt,"$disabledControls$",i),l=()=>S(qt,"$playbackState$",i),d=()=>S(jo,"$adPlaybackState",i),a=()=>S(te,"$isEnded$",i),u=()=>S(At,"$playerSize",i),f=()=>S(It,"$scrubbingInProgress",i),v=()=>S(yt,"$chromecastState$",i),p=()=>S(at,"$isPictureInPictureActive",i),x=()=>S(We,"$pictureInPictureType$",i),w=()=>S(Se,"$mobileNotReportControlHidden$",i),y=()=>S(ht,"$chromecastHidden",i),C=()=>S(Gt,"$playerPhase",i),T=()=>S(co,"$pipHidden",i),E=()=>S(et,"$currentGridType$",i),R=()=>S(Si,"$vkLogoHidden",i),A=()=>S(mi,"$volumeHidden",i),I=()=>S(Te,"$isLive$",i),N=()=>S(pt,"$settingsMenuVisible",i),H=()=>S(dt,"$isRewindableLive$",i),B=()=>S(Re,"$isActiveLive$",i),z=()=>S(Ce,"$isAudioAvailable$",i),X=()=>S(Vt,"$muted$",i),ae=()=>S(Ve,"$volume$",i),Q=()=>S(_t,"$isInteractiveTime$",i),ce=()=>S(on,"$settingButtonRef$",i),J=()=>S(Ct,"$startedByKeyboard$",i),me=()=>S(pn,"$isFullscreen",i),se=()=>S(Ut,"$additionalButtons$",i),le=()=>S(lo,"$autoplayNextToggleHidden",i),Pe=()=>S(gi,"$crashed$",i),ye=()=>S(ci,"$settingsHidden",i),ee=()=>S(Go,"$graphIsOpened$",i),Be=()=>S(Co,"$adPosition",i),pe=()=>S(ki,"$adDuration",i),k=()=>S(ti,"$position$",i),Ge=()=>S(kt,"$duration$",i),Me=h(e,"playerControlsWrapperRef",15,void 0),Y=h(e,"playerControlsRef",15,void 0),oe=h(e,"isAds",3,!1),He=h(e,"logoTargetUrl",3,""),Xe=h(e,"isOneVideoPlaylist",3,!1),ge=h(e,"customFullscreenSupported",3,!0),ie=he(),ke=So(),we=Nt(),Fe=ie.actions.internal.toggleMuted,Je=ie.actions.internal.togglePlay,Ye=ie.actions.internal.pause,qe=ie.actions.internal.prevVideoClick,Ze=ie.actions.internal.nextVideoClick,Ht=ie.actions.internal.checkFullscreenSupport,st=($n=ie.callbacks)==null?void 0:$n.onAudioDoesNotExistHint,Ft=(Or=ie.callbacks)==null?void 0:Or.onAudioDisabledHint,Gt=ie.playerPhase,kt=ie.state.duration$,ti=ie.state.positionWithScrubbing$,qt=ie.state.playbackState$,Ce=ie.state.isAudioAvailable$,xe=ie.state.isAudioDisabled,te=ie.state.isEnded$,Te=ie.state.isLive$,Ve=ie.state.volume$,Vt=ie.state.muted$,Re=ie.state.isActiveLive$,dt=ie.state.isRewindableLive$,It=ie.ui.scrubbingInProgress,Se=ie.ui.mobileNotReportControlHidden$,{isActive$:at,type$:We}=ke.pictureInPicture$,pt=ie.ui.settingsMenu.visible$,Yt=ie.ui.settingsMenu.openedByBtnKeyboard$,yi=ie.ui.controls,{volume:mi,vkLogo:Si,autoplayNextToggle:lo,pip:co,settings:ci,chromecast:ht}=ie.ui.hiddenControls,xi=ie.actions.internal.getVideoEpisodes(),di=ie.webApi.pictureInPictureApi,yt=ie.state.chromecastState$,gi=ie.state.crashed$,Jt=yi.disabledControls$,Ct=ie.ui.startedByKeyboard$,et=ie.ui.currentGridType$,ki=ie.ads.duration,Co=ie.ads.position,jo=ie.ads.playbackState,pn=ie.ui.isFullscreen,At=ie.ui.playerSize,Ut=ie.ui.additionalButtonsDeprecated$,K=ie.actions.internal.getVideoElement,Pt=ie.actions.internal.replayInteractive,ni=ie.state.isInteractive,_t=ie.state.isInteractiveTime$,Mt=ie.state.showInteractiveGraph,Xt=ie.state.showSeekToInteractive,ft=ie.state.showPlayPrevChapter,Ui=ie.state.showInteractiveTimeIndicator,zi=ke.seekToInteractiveDisabledTooltip$,Go=ke.graphIsOpened$,To=ie.ui.controlBlocks,uo=m(()=>Z(ie.state.playPrevChapterDisabledTooltip)),Wi=m(()=>Z(r())),Mr=m(()=>s().has("EPISODE_BUTTON")),yo=m(()=>s().has("GRAPH_BUTTON")),po=m(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Ki=m(()=>s().has("PLAY_BUTTON")),Yo=m(()=>s().has("REPLAY_BUTTON")),Zo=m(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),ur=m(()=>l()===td.PlaybackState.PLAYING),pr=m(()=>d()==="paused"),fr=m(()=>a()&&!oe()&&!ni),ms=m(()=>!a()||oe()),gs=m(()=>e.showNextPrevButtons&&!oe()&&e.prevButtonActive),fn=m(()=>e.showNextPrevButtons&&!oe()&&e.nextButtonActive),vn=m(()=>u().width>300),Yn=m(()=>u().width>400),Xo=m(f),Jo=m(()=>v()!==td.ChromecastState.NOT_AVAILABLE&&!(p()&&x()===1)&&!w()&&!ni&&!y()),vr=m(()=>C()==="LiveWaitingStart"),mr=m(()=>!!di&&v()!==td.ChromecastState.CONNECTED&&!w()&&(x()===1&&n(vr)||!n(vr))&&!n(Xo)&&!ni&&!T()),Lr=j(!1);Bt(()=>{let ot=di==null?void 0:di.info.isActive$.subscribe(Rt=>O(Lr,Rt,!0));return()=>ot==null?void 0:ot.unsubscribe()});let gr=m(()=>!n(Xo)&&ro(E(),"s")),Xr=m(()=>!e.logoHidden&&u().width>350&&!R()),hr=m(()=>we.features.fullscreen&&Ht()&&!(p()&&x()===1)&&(ni?ge():!0)&&!n(Xo)&&!n(Lr)),fo=m(()=>!A()&&!n(Xo)),_r=m(()=>(!I()||oe())&&u().width>260&&!n(Xo)&&!(we.features.interactiveHideTime&&ni)),Vn=m(()=>N()||e.showControls),Rn=m(()=>!oe()&&!I()&&!!(xi!=null&&xi.length)&&n(vn)&&!n(Mr)&&!n(Xo)),vo=m(()=>!H()||!!B()),br=m(()=>Mt&&ro(E(),"m")),en=m(()=>!z()||X()||ae()===0),xt=ai({}),hi=ai({}),$r=(0,$m.debounceFn)(Xl,260),Zn=(0,$m.debounceFn)(up,260);Qe(()=>{u(),Q(),$r(K(),yi,xt,e.showControls),Zn(K(),To,hi,e.showControls)});let Jr=()=>ie.actions.internal.toggleChromecast();function tn(){return wt(this,null,function*(){di!=null&&di.isActive()?yield di==null?void 0:di.exit():yield di==null?void 0:di.request()})}function On(){ea({isAudioDisabled:xe,audioDisabledHintCallback:Ft,isAudioAvailable:z(),audioIsNotExistHintCallback:st,isAds:oe()})&&Fe()}let Pi=j(""),qi=(ot,Rt)=>{if(!ot){O(Pi,Z("tooltip_live"),!0);return}Rt&&Rt===td.PlaybackState.PAUSED&&O(Pi,Z("tooltip_play"),!0)};Qe(()=>{qi(n(vo),l())});let on=de();Qe(()=>{ce()&&zl(ce(),N(),Yt)}),Qe(()=>{dp(Ct,J(),xt.playButton)}),Qe(()=>{hi.bottom=Me()});var Xn=I3(),mn=fe(Xn);{var gn=ot=>{var Rt=S3(),Ci=fe(Rt);let xo;var wo=P(Ci,2);let mo;lt(wo,vt=>hi.topLeft=vt,()=>hi==null?void 0:hi.topLeft);var to=P(wo,2);let Di;var yn=_(to);Ii(yn,1,se,({iconUrl:vt,ariaLabel:oi,testId:Bo,onClick:tr,tooltip:_e})=>vt,(vt,oi)=>{let Bo=()=>n(oi).iconUrl,tr=()=>n(oi).ariaLabel,_e=()=>n(oi).testId,mt=()=>n(oi).onClick,si=()=>n(oi).tooltip,Ti=m(()=>{var fi;return(fi=tr())!=null?fi:si()});mm(vt,{get iconUrl(){return Bo()},get ariaLabel(){return n(Ti)},get testId(){return _e()},get onClick(){return mt()}})});var go=P(yn,2);{var Oo=vt=>{xc(vt,{get ref(){return xt.autoplayNextToggle},set ref(oi){xt.autoplayNextToggle=oi}})};V(go,vt=>{e.showAutoplayNext&&!Xe()&&!le()&&vt(Oo)})}var No=P(go,2);{var er=vt=>{vc(vt,{isMobile:!0,click:Jr,get state(){return v()},get ref(){return xt.chromecast},set ref(oi){xt.chromecast=oi}})};V(No,vt=>{n(Jo)&&vt(er)})}var Fn=P(No,2);{var Nr=vt=>{bm(vt,{click:tn,get isPictureInPictureActive(){return p()},get ref(){return xt.pip},set ref(oi){xt.pip=oi}})};V(Fn,vt=>{n(mr)&&vt(Nr)})}var Sr=P(Fn,2);{var os=vt=>{jl(vt,{get ref$(){return on}})};V(Sr,vt=>{Pe()&&!ye()&&vt(os)})}var Dr=P(Sr,2);{var ns=vt=>{fc(vt,{get click(){return Ye},get targetUrl(){return He()},get logoClickable(){return e.logoClickable},get ref(){return xt.vkLogo},set ref(oi){xt.vkLogo=oi}})};V(Dr,vt=>{n(Xr)&&vt(ns)})}g(to),lt(to,vt=>hi.topRight=vt,()=>hi==null?void 0:hi.topRight);var Ke=P(to,2);let ii;var Mi=_(Ke);{var xn=vt=>{let oi=m(()=>qe.bind(null,!0));qa(vt,{get click(){return n(oi)},type:"prev",isMobile:!0,get ref(){return xt.prevButton},set ref(Bo){xt.prevButton=Bo}})};V(Mi,vt=>{n(gs)&&vt(xn)})}var sn=P(Mi,2);{var Br=vt=>{ed(vt,{get disabled(){return n(Ki)},get click(){return Je},isMobile:!0,get isPlaying(){return n(ur)},get ref(){return xt.playButton},set ref(oi){xt.playButton=oi}})};V(sn,vt=>{n(ms)&&vt(Br)})}var an=P(sn,2);{var Do=vt=>{Jl(vt,{get disabled(){return n(Yo)},get click(){return Je},isMobile:!0,get ref(){return xt.replayButton},set ref(oi){xt.replayButton=oi}})};V(an,vt=>{n(fr)&&vt(Do)})}var Hr=P(an,2);{var wn=vt=>{let oi=m(()=>Ze.bind(null,!0));qa(vt,{get click(){return n(oi)},type:"next",isMobile:!0,get ref(){return xt.nextButton},set ref(Bo){xt.nextButton=Bo}})};V(Hr,vt=>{n(fn)&&vt(wn)})}g(Ke),lt(Ke,vt=>hi.middle=vt,()=>hi==null?void 0:hi.middle);var Ns=P(Ke,2);{var ra=vt=>{var oi=w3(),Bo=fe(oi);{var tr=fi=>{var ri=$3();let Ei;ri.__click=[_3,Zo,e,uo];var Sn=_(ri);let Un=m(()=>!e.showControls);yc(Sn,{get hidden(){return n(Un)},get disabled(){return n(Zo)},get click(){return e.playPrevChapter},get ref(){return xt.playPrevChapterButton},set ref(Li){xt.playPrevChapterButton=Li}}),g(ri),D(Li=>Ei=re(ri,1,"wrapper-middle-left svelte-tg0ura",null,Ei,Li),[()=>({fullscreen:me(),hidden:!e.showControls})]),b(fi,ri)};V(Bo,fi=>{ft&&fi(tr)})}var _e=P(Bo,2);{var mt=fi=>{var ri=y3();let Ei;var Sn=_(ri);let Un=m(()=>!e.showControls&&!ee());Sc(Sn,{get hidden(){return n(Un)},get disabled(){return n(yo)},get click(){return Go.toggle},get graphIsOpened(){return ee()},get ref(){return xt.interactiveGraphButton},set ref(Li){xt.interactiveGraphButton=Li}}),g(ri),D(Li=>Ei=re(ri,1,Dd(ft?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",Ei,Li),[()=>({fullscreen:me(),hidden:!e.showControls&&!ee()})]),b(fi,ri)};V(_e,fi=>{n(br)&&fi(mt)})}var si=P(_e,2);{var Ti=fi=>{var ri=x3();let Ei;ri.__click=[b3,po,e,Wi];var Sn=_(ri);let Un=m(()=>!e.showControls);wc(Sn,{get hidden(){return n(Un)},get disabled(){return n(po)},get click(){return e.seekToInteractive},get ref(){return xt.seekToInteractiveButton},set ref(Li){xt.seekToInteractiveButton=Li}}),g(ri),D(Li=>Ei=re(ri,1,"wrapper-middle-right svelte-tg0ura",null,Ei,Li),[()=>({fullscreen:me(),hidden:!e.showControls})]),b(fi,ri)};V(si,fi=>{Xt&&fi(Ti)})}b(vt,oi)};V(Ns,vt=>{ni&&!f()&&vt(ra)})}D((vt,oi,Bo,tr)=>{xo=re(Ci,1,"overlay-mobile svelte-tg0ura",null,xo,vt),mo=re(wo,1,"wrapper-top-left svelte-tg0ura",null,mo,oi),Di=re(to,1,"wrapper-top-right svelte-tg0ura",null,Di,Bo),ii=re(Ke,1,"wrapper-middle svelte-tg0ura",null,ii,tr)},[()=>({hidden:!n(Vn)}),()=>({hidden:!e.showControls,fullscreen:me()}),()=>({hidden:!e.showControls&&!w(),fullscreen:me()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(ot,Rt)};V(mn,ot=>{oe()||ot(gn)})}var Jn=P(mn,2);{var hn=ot=>{var Rt=T3(),Ci=fe(Rt);let xo;var wo=_(Ci);fp(wo,{get muted(){return X()},click:On,get ref(){return xt.volume},set ref(Oo){xt.volume=Oo}}),g(Ci);var mo=P(Ci,2);{var to=Oo=>{var No=C3(),er=_(No);let Fn=m(()=>!n(pr));ed(er,{get disabled(){return n(Ki)},get click(){return Je},isMobile:!0,get isPlaying(){return n(Fn)},get ref(){return xt.playButton},set ref(Nr){xt.playButton=Nr}}),g(No),b(Oo,No)};V(mo,Oo=>{n(pr)&&Oo(to)})}var Di=P(mo,2);let yn;var go=_(Di);Tc(go,{get position(){return Be()},get duration(){return pe()}}),g(Di),D((Oo,No)=>{xo=re(Ci,1,"wrapper-top-right svelte-tg0ura",null,xo,Oo),yn=re(Di,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,yn,No)},[()=>({fullscreen:me()}),()=>({fullscreen:me()})]),b(ot,Rt)};V(Jn,ot=>{oe()&&d()!=="inactive"&&ot(hn)})}var Nn=P(Jn,2);let Eo;var yr=_(Nn);let Vr;var Dn=_(yr),Bn=_(Dn),Rr=_(Bn);{var xr=ot=>{Lo(ot,{get disabled(){return n(Yo)},get ref(){return xt.replayButton},set ref(Rt){xt.replayButton=Rt},children:(Rt,Ci)=>{Jl(Rt,{get disabled(){return n(Yo)},get click(){return Pt}})},$$slots:{default:!0}})};V(Rr,ot=>{ni&&ot(xr)})}var nt=P(Rr,2);{var pi=ot=>{Lo(ot,{get ref(){return xt.liveButton},set ref(Rt){xt.liveButton=Rt},children:(Rt,Ci)=>{Cc(Rt,{get isLiveActive(){return n(vo)},isMobile:!0,get ariaLabel(){return n(Pi)}})},$$slots:{default:!0}})};V(nt,ot=>{!oe()&&I()&&ot(pi)})}var Ni=P(nt,2);{var Ji=ot=>{let Rt=m(()=>oe()?Be():k()),Ci=m(()=>oe()?pe():Ge()),xo=m(()=>!e.showControls);dc(ot,{get showDuration(){return n(Yn)},get position(){return n(Rt)},get duration(){return n(Ci)},isMobile:!0,get isHidden(){return n(xo)},get ref(){return xt.time},set ref(wo){xt.time=wo}})};V(Ni,ot=>{n(_r)&&ot(Ji)})}var Ro=P(Ni,2);let nn=m(()=>!n(Rn));Lo(Ro,{className:"w-max",get disabled(){return n(nn)},get ref(){return xt.episodes},set ref(ot){xt.episodes=ot},children:(ot,Rt)=>{var Ci=ze(),xo=fe(Ci);{var wo=mo=>{var to=E3(),Di=P(fe(to),2);mc(Di,{get position(){return k()},get duration(){return Ge()},get timeCodes(){return xi}}),b(mo,to)};V(xo,mo=>{n(Rn)&&mo(wo)})}b(ot,Ci)},$$slots:{default:!0}}),g(Bn),lt(Bn,ot=>hi.bottomLeft=ot,()=>hi==null?void 0:hi.bottomLeft);var Qi=P(Bn,2),ui=_(Qi);{var eo=ot=>{Lo(ot,{get ref(){return xt.volume},set ref(Rt){xt.volume=Rt},children:(Rt,Ci)=>{fp(Rt,{get muted(){return n(en)},click:On})},$$slots:{default:!0}})};V(ui,ot=>{n(fo)&&ot(eo)})}var rn=P(ui,2);{var Hn=ot=>{Lo(ot,{get ref(){return xt.settings},set ref(Rt){xt.settings=Rt},children:(Rt,Ci)=>{jl(Rt,{get ref$(){return on}})},$$slots:{default:!0}})};V(rn,ot=>{n(gr)&&ot(Hn)})}var es=P(rn,2);{var ts=ot=>{Lo(ot,{get ref(){return xt.fullscreen},set ref(Rt){xt.fullscreen=Rt},children:(Rt,Ci)=>{pc(Rt,{get click(){return e.toggleFullscreen},get isFullscreen(){return me()}})},$$slots:{default:!0}})};V(es,ot=>{n(hr)&&ot(ts)})}g(Qi),lt(Qi,ot=>hi.bottomRight=ot,()=>hi==null?void 0:hi.bottomRight),g(Dn),lt(Dn,ot=>Y(ot),()=>Y());var is=P(Dn,2);let _n=m(()=>!e.showControls);ja(is,{get isHidden(){return n(_n)},get isAds(){return oe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return H()},get ref(){return xt.timeline},set ref(ot){xt.timeline=ot}}),g(yr),g(Nn),lt(Nn,ot=>Me(ot),()=>Me());var bn=P(Nn,2);{var wr=ot=>{_c(ot,{get ref(){return xt.interactiveTimeIndicator},set ref(Rt){xt.interactiveTimeIndicator=Rt}})};V(bn,ot=>{Ui&&ot(wr)})}D((ot,Rt)=>{Eo=re(Nn,1,"wrapper-bottom mobile svelte-tg0ura",null,Eo,ot),Vr=re(yr,1,"controls-wrapper svelte-tg0ura",null,Vr,Rt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:me()})]),b(t,Xn),U(),o()}ut(["click"]);function Ec(t,e){F(e,!0);let[i,o]=De(),r=()=>S(T,"$isMobile",i),s=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),a=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),f=h(e,"showAutoplayNext",3,!1),v=h(e,"isOneVideoPlaylist",3,!1),p=h(e,"customFullscreenSupported",3,!0),x=h(e,"endScreenShown",3,!1),w=h(e,"onDisabledPlayPrevChapterClick",3,xm.noop),y=h(e,"onDisabledSeekToInteractiveClick",3,xm.noop),T=he().ui.isMobile,E=j(!1);Bt(()=>{let N=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(N)});var R=ze(),A=fe(R);{var I=N=>{var H=ze(),B=fe(H);{var z=ae=>{ym(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return p()},get endScreenShown(){return x()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Q){l(Q)},get playerControlsRef(){return d()},set playerControlsRef(Q){d(Q)}})},X=ae=>{fm(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Q){l(Q)},get playerControlsRef(){return d()},set playerControlsRef(Q){d(Q)}})};V(B,ae=>{r()?ae(z):ae(X,!1)})}b(N,H)};V(A,N=>{n(E)&&N(I)})}b(t,R),U(),o()}var A3=Ie('<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 wm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=A3();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function Sm(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);wm(t,{get style(){return n(o)}})}var P3=Ie('<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 Cm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=P3();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var M3=Ie('<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 Tm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=M3();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function vp(t,e){let i=h(e,"isOff",3,!1);var o=ze(),r=fe(o);{var s=d=>{Tm(d,{})},l=d=>{Cm(d,{})};V(r,d=>{i()?d(s):d(l,!1)})}b(t,o)}var L3=Ie('<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 Em(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=L3();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function Im(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Em(t,{get style(){return n(o)}})}var V3=Ie('<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 km(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=V3();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function Am(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);km(t,{get style(){return n(o)}})}var R3=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),O3=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),N3=M("<div><!></div>"),D3={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;
|
|
276
276
|
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"],
|
|
277
277
|
.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"],
|
|
278
278
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
|
|
@@ -287,23 +287,23 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
|
|
|
287
287
|
@keyframes svelte-1ad3n06-fadeOut {
|
|
288
288
|
0% {opacity:1;}
|
|
289
289
|
100% {opacity:0;}
|
|
290
|
-
}`};function Pm(t,e){F(e,!0),W(t,
|
|
291
|
-
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function
|
|
290
|
+
}`};function Pm(t,e){F(e,!0),W(t,D3);let[i,o]=De(),r=()=>S(e.data,"$data",i),s=he(),{features:l}=Nt(),d=s.ui.t,a=m(()=>!r()),u=m(()=>{var T;return((T=r())==null?void 0:T.type)==="BACKWARD_SEEK"}),f=m(()=>{var T;return((T=r())==null?void 0:T.type)==="FORWARD_SEEK"}),v=m(()=>{var T;return(T=r())==null?void 0:T.type}),p=m(()=>{var T,E;return(T=r())!=null&&T.t?d(r().t.key,{value:r().t.value||""}):(E=r())==null?void 0:E.text});var x=N3();let w;var y=_(x);{var C=T=>{var E=O3(),R=fe(E),A=_(R);{var I=Y=>{let oe=m(()=>n(v)==="FORWARD_SEEK");Sm(Y,{get reversed(){return n(oe)}})};V(A,Y=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(v))&&Y(I)})}var N=P(A,2);{var H=Y=>{Ls(Y,{})};V(N,Y=>{n(v)==="PAUSE"&&!l.playbackStatusShow&&Y(H)})}var B=P(N,2);{var z=Y=>{cr(Y,{})};V(B,Y=>{n(v)==="PLAY"&&!l.playbackStatusShow&&Y(z)})}var X=P(B,2);{var ae=Y=>{$c(Y,{})};V(X,Y=>{n(v)==="REPLAY"&&!l.playbackStatusShow&&Y(ae)})}var Q=P(X,2);{var ce=Y=>{vp(Y,{isOff:!0})};V(Q,Y=>{n(v)==="SUBTITLES_OFF"&&Y(ce)})}var J=P(Q,2);{var me=Y=>{vp(Y,{})};V(J,Y=>{n(v)==="SUBTITLES_ON"&&Y(me)})}var se=P(J,2);{var le=Y=>{let oe=m(()=>n(v)==="RATE_UP");Im(Y,{get reversed(){return n(oe)}})};V(se,Y=>{["RATE_DOWN","RATE_UP"].includes(n(v))&&Y(le)})}var Pe=P(se,2);{var ye=Y=>{let oe=m(()=>n(v)==="EPISODE_NEXT");Am(Y,{get reversed(){return n(oe)}})};V(Pe,Y=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(v))&&Y(ye)})}var ee=P(Pe,2);{var Be=Y=>{ia(Y,{volume:0})};V(ee,Y=>{n(v)==="MUTE"&&Y(Be)})}var pe=P(ee,2);{var k=Y=>{ia(Y,{volume:1})};V(pe,Y=>{n(v)==="VOLUME"&&Y(k)})}g(R);var Ge=P(R,2);{var Me=Y=>{var oe=R3(),He=_(oe,!0);g(oe),D(()=>ve(He,n(p))),b(Y,oe)};V(Ge,Y=>{n(p)&&Y(Me)})}b(T,E)};V(y,T=>{!n(a)&&n(v)&&T(C)})}g(x),D(T=>w=re(x,1,"hot-key-helpers-container svelte-1ad3n06",null,w,T),[()=>({hidden:n(a),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(f)})]),b(t,x),U(),o()}var B3=Ie('<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 Mm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=B3();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var H3=Ie('<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 Lm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=H3();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function oa(t,e){F(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=m(()=>["up","down"].includes(i())),s=m(()=>["right","down"].includes(i())),l=m(()=>(()=>{let v="";return n(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=ze(),a=fe(d);{var u=v=>{let p=m(()=>n(s)?"chevron-icon--down":"chevron-icon--up");Mm(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})},f=v=>{let p=m(()=>n(s)?"chevron-icon--right":"chevron-icon--left");Lm(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})};V(a,v=>{n(r)?v(u):v(f,!1)})}b(t,d),U()}var F3=(t,e,i,o,r,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":s();break}},U3=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},z3=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>'),W3={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function Ic(t,e){F(e,!0),W(t,W3);let i=h(e,"isShifted",3,!1),o=he(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=Z("aria_label_spherical_control");var v=z3();let p;v.__keydown=[F3,r,s,l,a,d],v.__keyup=[U3,r,u];var x=_(v),w=_(x),y=_(w);y.__mousedown=s,y.__mouseup=u;var C=_(y);oa(C,{direction:"up",useBtnColor:!0}),g(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=u;var E=_(T);oa(E,{direction:"up",useBtnColor:!0}),g(T),g(w);var R=P(w,2),A=_(R);A.__mousedown=a,A.__mouseup=u;var I=_(A);oa(I,{direction:"up",useBtnColor:!0}),g(A);var N=P(A,2);N.__mousedown=l,N.__mouseup=u;var H=_(N);oa(H,{direction:"up",useBtnColor:!0}),g(N),g(R),g(x),g(v),D(B=>{p=re(v,1,"immersive-controls svelte-1yzc86r",null,p,B),je(v,"aria-label",f)},[()=>({"m-shifted":i()})]),St("mouseleave",y,u),St("mouseleave",T,u),St("mouseleave",A,u),St("mouseleave",N,u),b(t,v),U()}ut(["keydown","keyup","mousedown","mouseup"]);var Rs=require("@vkontakte/videoplayer-shared/es2015");var n_=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var mp=class{constructor(){this.flickeringTimeout=n_(1e3);this.subscriptions=new Rs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Rs.ValueSubject([]);this.captionsPrepared$=new Rs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Rs.filter)(()=>this.isEnabled()),(0,Rs.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((r,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var K3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),q3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"></span></span>'),Q3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),j3=M('<div><span class="caption svelte-1i1hgvc"><!></span></div>'),G3=M("<div><!></div>"),Y3={hash:"svelte-1i1hgvc",code:`.subtitles-container.svelte-1i1hgvc {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-1i1hgvc {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-container.preview-track-active.svelte-1i1hgvc {transform:translateY(calc(var(--preview-track-height) * -1));}.preview-track-active.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {bottom:var(--preview-track-controls-top-offset);}.subtitles-caption.svelte-1i1hgvc {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-1i1hgvc {bottom:8%;}.subtitles-container.auto.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-1i1hgvc {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-1i1hgvc .caption:where(.svelte-1i1hgvc) {width:100%;}.caption-line.svelte-1i1hgvc {display:block;text-align:center;}.subtitles-container.auto.svelte-1i1hgvc .caption-line:where(.svelte-1i1hgvc) {text-align:left;}.caption-segment.svelte-1i1hgvc {display:inline-block;line-height:1.2;font-size:13px;
|
|
291
|
+
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Za(t,e){F(e,!0),W(t,Y3);let[i,o]=De(),r=()=>S(p,"$currentSubtitle$",i),s=()=>S(w,"$isLive$",i),l=()=>S(y,"$isFullscreen",i),d=()=>S(C,"$previewTrackActive",i),a=()=>S(x,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),f=he(),v=Nt(),p=f.state.currentSubtitle$,x=f.state.isAutoSubtitleCaptionVisible$,w=f.state.isLive$,y=f.ui.isFullscreen,C=f.ui.previewTrackActive,T=m(()=>!!r().isAuto),E=m(()=>!!s()),R=m(()=>e.playerSize.width*.02),A=m(()=>u()&&!l()||n(R)<=v.minSubtitlesFontSize?v.minSubtitlesFontSize:n(R)),I=j(null);Qe(()=>{var Q,ce,J;(Q=n(I))==null||Q.setIsAuto(n(T)),(ce=n(I))==null||ce.setIsLive(n(E)),(J=n(I))==null||J.setCaptions(e.captions)});let N=j(ai([[]]));Bt(()=>{O(I,new mp().subscribe(),!0);let Q=n(I).captionsPrepared$.subscribe(ce=>{O(N,ce,!0)});return()=>{var ce;(ce=n(I))==null||ce.destroy(),Q.unsubscribe()}}),Bt(()=>{if(n(T)){let Q=window.setTimeout(()=>{x.set(!1)},v.autoSubtitlesTimeout);return()=>{window.clearTimeout(Q)}}else x.set(!1)});let H=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=G3();let z;var X=_(B);{var ae=Q=>{var ce=j3();let J;var me=_(ce),se=_(me);{var le=ye=>{var ee=K3(),Be=_(ee),pe=_(Be,!0);g(Be),g(ee),D(k=>{var Ge;it(Be,`font-size: ${(Ge=n(A))!=null?Ge:""}px`),ve(pe,k)},[()=>Z("subtitles_auto_caption")]),b(ye,ee)},Pe=(ye,ee)=>{{var Be=k=>{var Ge=ze(),Me=fe(Ge);Ii(Me,17,()=>n(N),Od,(Y,oe)=>{var He=q3(),Xe=_(He);Ii(Xe,21,()=>n(oe),({value:ge,timeAppeared:ie})=>ie,(ge,ie)=>{let ke=()=>n(ie).value,we=()=>n(ie).timeAppeared;var Fe=ze(),Je=fe(Fe);{var Ye=qe=>{var Ze=cs();D(()=>ve(Ze,ke())),b(qe,Ze)};V(Je,qe=>{(!we()||we()<=e.position)&&qe(Ye)})}b(ge,Fe)}),g(Xe),g(He),D(()=>{var ge;return it(Xe,`font-size: ${(ge=n(A))!=null?ge:""}px`)}),b(Y,He)}),b(k,Ge)},pe=k=>{var Ge=ze(),Me=fe(Ge);Ii(Me,17,()=>e.captions,({value:Y})=>Y,(Y,oe)=>{let He=()=>n(oe).value;var Xe=Q3(),ge=_(Xe),ie=_(ge,!0);g(ge),g(Xe),D(()=>{var ke;it(ge,`font-size: ${(ke=n(A))!=null?ke:""}px`),ve(ie,He())}),b(Y,Xe)}),b(k,Ge)};V(ye,k=>{var Ge;n(T)&&((Ge=n(N))!=null&&Ge.length)?k(Be):k(pe,!1)},ee)}};V(se,ye=>{n(T)&&a()?ye(le):ye(Pe,!1)})}g(me),g(ce),D(ye=>{var ee;J=re(ce,1,"subtitles-caption svelte-1i1hgvc",null,J,ye),it(ce,`--subtitles-caption-margin: ${(ee=n(H))!=null?ee:""}%`)},[()=>({mobile:u()})]),b(Q,ce)};V(X,Q=>{var ce;(e.captions.length||(ce=n(N))!=null&&ce.length)&&Q(ae)})}g(B),D(Q=>z=re(B,1,"subtitles-container svelte-1i1hgvc",null,z,Q),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(T)&&!n(E)&&!a()})]),b(t,B),U(),o()}var Z3=M('<div class="text svelte-raurnb"> </div>'),X3=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>'),J3={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 kc(t,e){F(e,!0),W(t,J3);let i=Nt();var o=X3();let r;var s=P(_(o),2);{var l=d=>{var a=Z3(),u=_(a);g(a),D(()=>{var f;return ve(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,a)};V(s,d=>{e.chromecastDeviceName&&d(l)})}g(o),D(d=>{r=re(o,1,"wrapper svelte-raurnb",null,r,d),it(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),U()}var ex=Ie('<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 Vm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=ex();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var tx=M('<div class="container svelte-13zpvm8"><!></div>'),ix={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 Xa(t){W(t,ix);var e=tx(),i=_(e);Vm(i,{}),g(e),b(t,e)}var ox=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),nx=M("<div><!></div>"),rx={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,
|
|
292
292
|
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,
|
|
293
|
-
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
|
|
293
|
+
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 Ja(t,e){F(e,!0),W(t,rx);let i=h(e,"iconVisible",3,!0),o=he(),r=Nt(),s=o.ui.startedByKeyboard$,l=Z("tooltip_play"),d=x=>{var y;let w=x.code;["Enter","Space"].includes(w)&&(x.stopPropagation(),x.preventDefault(),s.set(!0),(y=e.startVideo)==null||y.call(e))},a=x=>{var w,y;x.stopPropagation(),(w=e.startVideo)==null||w.call(e),(y=e.onClick)==null||y.call(e,x)};var u=nx();let f;u.__click=a,u.__contextmenu=function(...x){var w;(w=e.onContextMenu)==null||w.apply(this,x)};var v=_(u);{var p=x=>{var w=ox();w.__keydown=d;var y=P(_(w),2);cr(y,{}),g(w),D(()=>je(w,"aria-label",l)),b(x,w)};V(v,x=>{i()&&x(p)})}return g(u),D(x=>{f=re(u,1,"container svelte-1ciju45",null,f,x),it(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),U({handlePressKey:d,handleClick:a})}ut(["click","contextmenu","keydown"]);var sx=M('<div data-testid="video_title"><span> </span></div>'),ax={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(
|
|
294
294
|
0deg,
|
|
295
295
|
rgba(0, 0, 0, 0) 0%,
|
|
296
296
|
rgba(0, 0, 0, 0.02) 19%,
|
|
297
297
|
rgba(0, 0, 0, 0.1) 34%,
|
|
298
298
|
rgba(0, 0, 0, 0.4) 60%,
|
|
299
299
|
rgba(0, 0, 0, 0.6) 100%
|
|
300
|
-
);}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Rm(t,e){F(e,!0),W(t,
|
|
300
|
+
);}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Rm(t,e){F(e,!0),W(t,ax);let i=h(e,"title",3,""),o=h(e,"isHidden",3,!1),r=h(e,"ref",15),s=j(void 0);Bt(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var x;p.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!o()))}return(v=n(s))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=n(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=sx();let d;var a=_(l),u=_(a,!0);g(a),lt(a,f=>r(f),()=>r()),g(l),lt(l,f=>O(s,f),()=>n(s)),D(f=>{d=re(l,1,"title svelte-14hk510",null,d,f),ve(u,i())},[()=>({hidden:o()})]),b(t,l),U()}var r_=require("@vkontakte/videoplayer-shared/es2015");var lx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),dx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),cx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),ux=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),px=M("<div><!> <!> <!> <!></div>"),fx={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function Om(t,e){F(e,!0),W(t,fx);let i=j(""),o=j(""),r=j(""),s=j(""),l,d=32,a=d/2,u=B=>String(B).padStart(2,"0"),f=B=>Math.max(B.length,1),v=B=>`${(e.isSmallSize?a:d)*f(B)}px`,p=B=>{let z=Math.floor(B/86400);z&&(B-=z*86400,O(i,u(z),!0));let X=Math.floor(B/3600);O(o,u(X),!0);let ae=Math.floor(B/60)%60;O(r,u(ae),!0);let Q=B%60;O(s,u(Q),!0)},x=()=>{let B=Math.floor(Date.now()/1e3),z=e.startTime-B;p(z),z>=1?l=requestAnimationFrame(x):e.onTimerOver()};Bt(()=>{l=requestAnimationFrame(x)}),cn(()=>{cancelAnimationFrame(l)});var w=px();let y;var C=_(w);{var T=B=>{var z=lx(),X=fe(z);let ae;var Q=_(X),ce=_(Q,!0);g(Q);var J=P(Q,2),me=_(J,!0);g(J),g(X);var se=P(X,2),le=_(se,!0);g(se),D((Pe,ye,ee)=>{ae=it(X,"",ae,{width:Pe}),ve(ce,n(i)),ve(me,ye),ve(le,ee)},[()=>v(n(i)),()=>Z("waiting_live_day_value"),()=>Z("waiting_live_colon")]),b(B,z)};V(C,B=>{n(i)&&B(T)})}var E=P(C,2);{var R=B=>{var z=dx(),X=fe(z);let ae;var Q=_(X),ce=_(Q,!0);g(Q);var J=P(Q,2),me=_(J,!0);g(J),g(X);var se=P(X,2),le=_(se,!0);g(se),D((Pe,ye,ee)=>{ae=it(X,"",ae,{width:Pe}),ve(ce,n(o)),ve(me,ye),ve(le,ee)},[()=>v(n(o)),()=>Z("waiting_live_hour_value"),()=>Z("waiting_live_colon")]),b(B,z)};V(E,B=>{n(o)&&B(R)})}var A=P(E,2);{var I=B=>{var z=cx(),X=fe(z);let ae;var Q=_(X),ce=_(Q,!0);g(Q);var J=P(Q,2),me=_(J,!0);g(J),g(X);var se=P(X,2),le=_(se,!0);g(se),D((Pe,ye,ee)=>{ae=it(X,"",ae,{width:Pe}),ve(ce,n(r)),ve(me,ye),ve(le,ee)},[()=>v(n(r)),()=>Z("waiting_live_minute_value"),()=>Z("waiting_live_colon")]),b(B,z)};V(A,B=>{n(r)&&B(I)})}var N=P(A,2);{var H=B=>{var z=ux();let X;var ae=_(z),Q=_(ae,!0);g(ae);var ce=P(ae,2),J=_(ce,!0);g(ce),g(z),D((me,se)=>{X=it(z,"",X,{width:me}),ve(Q,n(s)),ve(J,se)},[()=>v(n(s)),()=>Z("waiting_live_second_value")]),b(B,z)};V(N,B=>{n(s)&&B(H)})}g(w),D(B=>y=re(w,1,"timer__container svelte-gt98rn",null,y,B),[()=>({small:e.isSmallSize})]),b(t,w),U()}var vx=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),mx=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),gx=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),hx={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function Ac(t,e){F(e,!0),W(t,hx);let i=h(e,"startTime",3,0),o=m(()=>i()<Math.floor(Date.now()/1e3)),r=j(void 0),s=j(void 0),l=0,d=j(void 0),a=j(void 0),u=m(()=>{var C,T;return((C=n(d))!=null?C:1/0)<=509||((T=n(a))!=null?T:1/0)<=320}),f=m(()=>{var C,T;return!n(u)&&(((C=n(d))!=null?C:1/0)<=699||((T=n(a))!=null?T:1/0)<=599)}),v=e.onUpcomingLiveViewStateChanged?(0,r_.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"},T=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(C,T)})},300):void 0;Qe(()=>{n(a),n(d),n(o),v==null||v()}),cn(()=>{if(cancelAnimationFrame(l),v==null||v.cancel(),e.onUpcomingLiveViewStateChanged){let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(C)}});var p=gx();p.__contextmenu=function(...C){var T;(T=e.onContextMenu)==null||T.apply(this,C)},p.__click=function(...C){var T;(T=e.onClick)==null||T.apply(this,C)};var x=_(p);{var w=C=>{var T=vx(),E=_(T);let R;var A=_(E,!0);g(E),g(T),lt(T,I=>O(r,I),()=>n(r)),D((I,N)=>{R=re(E,1,"waiting__title svelte-17m8dcd",null,R,I),ve(A,N)},[()=>({medium:n(f),small:n(u)}),()=>Z("waiting_live_upcoming_title")]),b(C,T)},y=C=>{var T=mx(),E=_(T);let R;var A=_(E,!0);g(E);var I=P(E,2);let N=m(()=>n(u)||n(f)),H=m(()=>i()||0);Om(I,{get isSmallSize(){return n(N)},get startTime(){return n(H)},onTimerOver:()=>O(o,!0)}),g(T),lt(T,B=>O(s,B),()=>n(s)),D((B,z)=>{R=re(E,1,"timer__title svelte-17m8dcd",null,R,B),ve(A,z)},[()=>({medium:n(f),small:n(u)}),()=>Z("waiting_live_timer_title")]),b(C,T)};V(x,C=>{n(o)?C(w):C(y,!1)})}g(p),D(()=>it(p,`background-image: url(${e.thumbUrl})`)),Mn(p,"clientWidth",C=>O(d,C)),Mn(p,"clientHeight",C=>O(a,C)),b(t,p),U()}ut(["contextmenu","click"]);var _x=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),bx={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 el(t,e){F(e,!0),W(t,bx);let i=h(e,"thumbUrl",3,""),o={recover:Z("waiting_live_recover_title"),record:Z("waiting_record_title")},r=m(()=>o[e.kind]||"");var s=_x();s.__contextmenu=function(...f){var v;(v=e.onContextMenu)==null||v.apply(this,f)},s.__click=function(...f){var v;(v=e.onClick)==null||v.apply(this,f)};var l=_(s),d=_(l);Fa(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);g(a),g(l),g(s),D(()=>{it(s,`background-image: url('${i()}')`),ve(u,n(r))}),b(t,s),U()}ut(["contextmenu","click"]);var $x=Ie('<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 Nm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=$x();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var yx=M('<div class="select-icon svelte-124aexk"><!></div>'),xx={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Pc(t){W(t,xx);var e=yx(),i=_(e);Nm(i,{}),g(e),b(t,e)}var wx=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},Sx=(t,e)=>{Wl(t,()=>e.item.selectItem(e.item.value))},Cx=M("<p> </p>"),Tx=M('<p class="sublabel svelte-1t7rx2m"> </p>'),Ex=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),Ix={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;
|
|
301
301
|
|
|
302
302
|
/**
|
|
303
303
|
* \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
|
|
304
304
|
* \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.
|
|
305
305
|
*/margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
|
|
306
|
-
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Dm(t,e){F(e,!0),W(t,
|
|
306
|
+
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Dm(t,e){F(e,!0),W(t,Ix);let i=h(e,"isMobile",3,!1);var o=Ex();let r;o.__click=[wx,e],o.__keydown=[Sx,e];var s=_(o);{var l=w=>{Pc(w,{})};V(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var u=_(d);{var f=w=>{var y=ze(),C=fe(y);Ri(C,()=>e.item.valueComponent,(T,E)=>{E(T,Es(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),b(w,y)},v=w=>{var y=Cx();let C;var T=_(y,!0);g(y),D(E=>{var R;C=re(y,1,"label svelte-1t7rx2m",null,C,E),ve(T,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),b(w,y)};V(u,w=>{e.item.valueComponent?w(f):w(v,!1)})}var p=P(u,2);{var x=w=>{var y=Tx(),C=_(y,!0);g(y),D(()=>ve(C,e.item.sublabel)),b(w,y)};V(p,w=>{e.item.sublabel&&w(x)})}g(d),g(o),D((w,y,C)=>{r=re(o,1,"item",null,r,w),je(o,"data-value",e.item.value),je(o,"aria-label",y),je(o,"data-testid",e.item.dataTestid),a=re(d,1,"menu-item-value svelte-1t7rx2m",null,a,C),je(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),U()}ut(["click","keydown"]);var kx=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Bm(t,e){F(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=m(()=>()=>e.openSubMenuList(e.item.children)),s=m(()=>y=>ju(y,n(r)));var l=kx();let d;l.__click=function(...y){var C;(C=n(r))==null||C.apply(this,y)},l.__keydown=function(...y){var C;(C=n(s))==null||C.apply(this,y)};var a=_(l);{var u=y=>{Pc(y,{})};V(a,y=>{e.item.selected&&y(u)})}var f=P(a,2);let v;var p=_(f);{var x=y=>{var C=ze();let T=m(()=>e.item.valueComponent);var E=fe(C);Ri(E,()=>n(T),(R,A)=>{A(R,Es(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),b(y,C)},w=y=>{var C=cs();D(()=>ve(C,e.item.label)),b(y,C)};V(p,y=>{e.item.valueComponent?y(x):y(w,!1)})}g(f),g(l),lt(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),D((y,C)=>{var T;d=re(l,1,"item",null,d,y),je(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),je(l,"data-testid",e.item.id),v=re(f,1,"menu-item-value",null,v,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),U()}ut(["click","keydown"]);var Zr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var Px=(t,e)=>{x0(t,e.returnFromSubMenu,e.closeSettingsMenu)},Mx=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},Lx=(t,e)=>{ec(t)&&(Pr(t),e.returnFromSubMenu())},Vx=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>'),Rx={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
|
|
307
307
|
/*\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 {
|
|
308
308
|
/**
|
|
309
309
|
* \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.
|
|
@@ -313,14 +313,14 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
|
|
|
313
313
|
var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
|
|
314
314
|
1px
|
|
315
315
|
);}.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,
|
|
316
|
-
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Fm(t,e){F(e,!0),W(t,Nx);let[i,o]=Be(),r=()=>S(v,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),a=h(e,"ariaLabelReturnFromSubMenu",19,()=>Y("aria_label_submenu_back")),u=h(e,"listRef",15);Bt(()=>{let q=e.items.findIndex(ce=>ce.selected);u().children[q+1].focus()});let f=_e(),v=f.ui.isFullscreen,p=f.ui.playerSize,x=j(void 0),w=j(0),y=j(0),C=m(()=>l()&&r()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-n(y)-d()}px; overflow: auto;`),T=m(()=>Math.max(e.minWidth,n(w)));var E=Ox();let R;var A=_(E);let I;A.__keydown=[Lx,e];var N=_(A);let H;N.__click=[Vx,e],N.__keydown=[Rx,e];var B=_(N);ra(B,{direction:"left"});var z=P(B,2),X=_(z,!0);g(z),g(N),lt(N,q=>O(x,q),()=>n(x));var le=P(N,2);Ei(le,17,()=>e.items,Nd,(q,ce)=>{var J=Fe(),ve=fe(J);{var se=Le=>{Dm(Le,{get item(){return n(ce)},get isMobile(){return l()}})},de=(Le,Se)=>{{var ie=Ne=>{Bm(Ne,{get isMobile(){return l()},get item(){return n(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Le,Ne=>{n(ce).type==="OPEN_SUB_MENU"&&Ne(ie)},Se)}};V(ve,Le=>{n(ce).type==="SELECT_VALUE"?Le(se):Le(de,!1)})}b(q,J)}),g(A),lt(A,q=>u(q),()=>u()),g(E),D((q,ce,J)=>{R=re(E,1,"sub-menu menu svelte-7dfsuh",null,R,q),Ke(E,"data-testid",`sub-menu-${e.id}`),et(E,`min-width: ${n(T)}px`),I=re(A,1,"items svelte-7dfsuh",null,I,ce),et(A,n(C)),H=re(N,1,"item header back svelte-7dfsuh",null,H,J),Ke(N,"aria-label",a()),me(X,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Mn(N,"clientWidth",q=>O(w,q)),Mn(N,"clientHeight",q=>O(y,q)),b(t,E),U(),o()}ct(["keydown","click"]);var a_=require("@vkontakte/videoplayer-shared/es2015");var Dx=(t,e)=>Yu(t,e()),Bx=(t,e)=>{t.stopPropagation(),e()()},Hx=M('<div class="value svelte-1ikfjte"> </div>'),Fx=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),Ux={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Um(t,e){F(e,!0),W(t,Ux);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,a_.noop),r=h(e,"valueComponent",3,void 0),s=h(e,"ref",15);var l=Fx();let d;l.__click=[Bx,o],l.__keydown=[Dx,o];var a=_(l),u=_(a);{var f=T=>{ja(T,{get icon(){return e.icon}})},v=T=>{var E=Fe();let R=m(()=>e.icon);var A=fe(E);Ri(A,()=>n(R),(I,N)=>{N(I,{})}),b(T,E)};V(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var p=P(a,2),x=_(p,!0);g(p);var w=P(p,2);{var y=T=>{var E=Fe();let R=m(r);var A=fe(E);Ri(A,()=>n(R),(I,N)=>{N(I,{})}),b(T,E)},C=T=>{var E=Hx(),R=_(E,!0);g(E),D(()=>me(R,e.value)),b(T,E)};V(w,T=>{r()?T(y):T(C,!1)})}g(l),lt(l,T=>s(T),()=>s()),D(T=>{d=re(l,1,"item",null,d,T),Ke(l,"aria-label",e.ariaLabel),Ke(l,"data-testid",e.id),me(x,e.label)},[()=>({mobile:i()})]),b(t,l),U()}ct(["click","keydown"]);var zm=require("@vkontakte/videoplayer-shared/es2015");var zx=(t,e)=>{Kl(t,()=>e())},Wx=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Kx=M('<img class="icon" aria-hidden="true"/>'),qx=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),Qx={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Wm(t,e){F(e,!0),W(t,Qx);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,zm.noop),r=h(e,"closeSettings",3,zm.noop),s=j(!1),l=()=>{O(s,!0)},d=C=>{C==null||C.stopPropagation(),o()(),r()()};var a=qx();let u;a.__click=d,a.__keydown=[zx,d];var f=_(a),v=_(f);{var p=C=>{var T=Fe(),E=fe(T);{var R=I=>{var N=Wx();b(I,N)},A=I=>{var N=Kx();D(()=>Ke(N,"src",e.icon)),Et("error",N,l),Ea(N),b(I,N)};V(E,I=>{n(s)?I(R):I(A,!1)})}b(C,T)},x=C=>{var T=Fe();let E=m(()=>e.icon);var R=fe(T);Ri(R,()=>n(E),(A,I)=>{I(A,{})}),b(C,T)};V(v,C=>{typeof e.icon=="string"?C(p):C(x,!1)})}g(f);var w=P(f,2),y=_(w,!0);g(w),g(a),D(C=>{var T;u=re(a,1,"item",null,u,C),Ke(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ke(a,"data-testid",e.id),me(y,e.label)},[()=>({mobile:i()})]),b(t,a),U()}ct(["click","keydown"]);var l_=require("@vkontakte/videoplayer-shared/es2015");var jx=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),Gx={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 Km(t,e){W(t,Gx);let i=h(e,"enabled",3,!1);var o=jx(),r=_(o);let s;Ee(2),g(o),D(l=>s=re(r,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),b(t,o)}var Yx=(t,e,i)=>{w0(t,e(),o=>i()(o))},Zx=(t,e,i)=>{t.stopPropagation(),e()(!i())},Xx=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),Jx=M('<li role="menuitem" tabindex="0"><!></li>');function qm(t,e){F(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,l_.noop),r=h(e,"enabled",3,!1),s=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=Jx();let a;d.__click=[Zx,o,r],d.__keydown=[Yx,r,o];var u=_(d);Wa(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=Xx();let x;var w=_(p),y=_(w);{var C=I=>{ja(I,{get icon(){return e.icon}})},T=I=>{var N=Fe();let H=m(()=>e.icon);var B=fe(N);Ri(B,()=>n(H),(z,X)=>{X(z,{})}),b(I,N)};V(y,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var E=P(w,2),R=_(E,!0);g(E);var A=P(E,2);Km(A,{get enabled(){return r()}}),g(p),D(I=>{x=re(p,1,"switch-wrapper",null,x,I),me(R,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),g(d),D(f=>{var v;a=re(d,1,"item switch-item",null,a,f),Ke(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Ke(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),U()}ct(["click","keydown"]);var Vc=require("@vkontakte/videoplayer-shared/es2015");var d_=()=>{let t=j(di([])),e=m(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{O(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var e5=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),t5=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),i5={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 il(t,e){F(e,!0),W(t,i5);let i=h(e,"isSubCase",3,!1),o=m(()=>tp(e.quality));var r=t5(),s=_(r);let l;var d=_(s,!0);g(s);var a=P(s,2);{var u=f=>{var v=e5();let p=m(()=>n(o));var x=_(v);Ri(x,()=>n(p),(w,y)=>{y(w,{})}),g(v),b(f,v)};V(a,f=>{n(o)&&!e.isMobile&&f(u)})}g(r),D(f=>{l=re(s,1,"svelte-t2qk8t",null,l,f),me(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,r),U()}var f_=require("@vkontakte/videoplayer-shared/es2015");var Qm=require("@vkontakte/videoplayer-core/es2015");var c_=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},u_=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=c_({quality:t,availableQualities:e});return i?t===Qm.VideoQuality.INVARIANT?Y("auto_quality_invariant"):Y("auto_quality",{actual:o}):o},p_=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Qm.VideoQuality.INVARIANT?i:`${i}${c_({quality:t,availableQualities:e})}`:"...";var o5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),n5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function od(t,e){F(e,!0),W(t,n5);let[i,o]=Be(),r=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=_e(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=m(()=>e.prefix+(e.selected&&r()!==f_.VideoQuality.INVARIANT?v:"")),x=m(()=>p_({prefix:n(p),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var w=o5(),y=_(w);let C=m(()=>e.selected?r():void 0);il(y,{get quality(){return n(C)},get label(){return n(x)},get isMobile(){return l()},isSubCase:!0}),g(w),b(t,w),U(),o()}var r5=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},s5={br:!0,span:!0},jm=(t,e={})=>{var d,a,u,f,v,p,x;if(!t)return t;let i=Q(Q({},s5),e),o=Object.keys(i);if(!o.length)return t;let r=r5(o),s=[],l=0;for(let w of t.matchAll(r)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){s.push(t.slice(l,T)),l=T+y.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?jm(w.groups.childrenhtml,i):"",R=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp((x=w.groups)==null?void 0:x.childrenhtml),()=>E||""):y;s.push(t.slice(l,T),R),l=T+y.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Lc(t,e){F(e,!1);let i=h(e,"message",8),o=jm(i());Jo();var r=Fe(),s=fe(r);{var l=d=>{var a=Fe(),u=fe(a);Dd(u,()=>o),b(d,a)};V(s,d=>{o&&d(l)})}b(t,r),U()}var a5=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),l5={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 Gm(t,e){F(e,!1),W(t,l5),Jo();var i=a5(),o=_(i);let r=En(()=>Y("quality_applience",{action:`<span>${Y("quality_applience_action")}</span>`}));Lc(o,{get message(){return n(r)}}),g(i),b(t,i),U()}var m_=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:od,valueComponentParams:{prefix:Y("other_quality"),selected:o},children:"QUALITY"}},Ym=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:Y("auto_quality_limit"),valueComponent:e?od:void 0,valueComponentParams:{prefix:Y("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),g_=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Gm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Zm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:Y("high_quality"),valueComponent:t?od:void 0,valueComponentParams:{prefix:Y("high_quality"),selected:i},sublabel:Y("high_quality_description")}),Xm=({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:Y("traffic_saving_quality"),valueComponent:t?od:void 0,valueComponentParams:{prefix:Y("traffic_saving_quality"),selected:i},sublabel:Y("traffic_saving_quality_description")});var hp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),_p=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=hc(i))!=null?l:i),o&&i&&r){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return Y("audio_stream_display_language_label",{language:r,label:o});{let a=hp(t,d);return Y("audio_stream_display_language_label_index",{language:r,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=hp(t,d);return Y("audio_stream_display_label_index",{label:o,index:a})}}if(i&&r){let d=e.filter(a=>a.language===i);if(d.length===1)return r;{let a=hp(t,d);return Y("audio_stream_display_language_index",{language:r,index:a})}}let s=hp(t,e);return Y("audio_stream_display_unknown",{index:s})};var d5={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:Ym,selected:e&&!o&&!r||!1}),s.push({handler:Xm,selected:o},{handler:Zm,selected:r}),{title:Y("submenu_quality"),id:"QUALITY_DETAILS",items:[g_(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),m_(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:Y("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:il,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:Y("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Ym,selected:((i=Bu())==null?void 0:i.type)==="auto_quality"},{handler:Xm,selected:((o=Bu())==null?void 0:o.type)==="traffic_saving"},{handler:Zm,selected:((r=Bu())==null?void 0:r.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:Y("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:_p(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:Y("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:Y("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Kn?"sub_off":void 0}))})},h_=({subMenuId:t,context:e})=>t?[d5[t](e)]:[];var c5=Ie('<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 Jm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=c5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var u5=Ie('<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 eg(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=u5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var p5=Ie('<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 tg(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=p5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var f5=Ie('<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 ig(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=f5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var v5=Ie('<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 og(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=v5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var m5=Ie('<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 bp(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=m5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var g5=Ie('<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 ng(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=g5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var h5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),_5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function rg(t,e){F(e,!0),W(t,_5);let[i,o]=Be(),r=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(v,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=_e(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,x=m(()=>u_({quality:r(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=h5(),y=_(w);il(y,{get quality(){return r()},get label(){return n(x)},get isMobile(){return d()}}),g(w),b(t,w),U(),o()}var $5={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?Y("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_quality",{actual:o}),icon:lc,label:Y("menu_quality"),value:e,valueComponent:rg,weight:is["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:is["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Y("aria_label_submenu_traffic_saving"),icon:Jm,label:Y("menu_traffic_saving"),enabled:t,tooltipText:Y("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=_p(t,e);return{id:"AUDIO_LANGUAGES",weight:is["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_audio_languages",{actual:i}),icon:eg,label:Y("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:is["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_rate",{actual:i}),icon:tg,label:Y("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:is["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_subtitle",{actual:t.displayValue}),icon:dc,label:Y("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:is.download,type:"CLICK",onClick:t,label:Y("download_video_caption"),ariaLabel:Y("aria_label_menu_download"),icon:ig}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:is.report,type:"CLICK",onClick:t,label:Y("menu_report"),ariaLabel:`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`,icon:og,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:is["copy-data"],type:"CLICK",onClick:t,label:Y("menu_copy_debug"),ariaLabel:Y("menu_copy_debug"),icon:bp,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:is["save-trace-info"],type:"CLICK",onClick:t,label:Y("menu_save_debug"),ariaLabel:Y("menu_save_debug"),icon:bp,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:is["debug-info"],type:"CLICK",onClick:t,ariaLabel:Y("aria_label_menu_debug_overlay"),label:Y("menu_debug_overlay"),icon:ng,isHiddenFor:["desktop"]})},__=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>$5[r](e)),...i.map(r=>jt(Q({},r),{isAdditional:!0}))].filter(r=>{var s,l,d;return!((s=r==null?void 0:r.isHiddenFor)!=null&&s.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ha)};var x5=(t,e)=>{Gu(t,e)},w5=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),S5=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),C5=M("<div><!> <!></div>"),T5={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 {
|
|
316
|
+
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Fm(t,e){F(e,!0),W(t,Rx);let[i,o]=De(),r=()=>S(v,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),a=h(e,"ariaLabelReturnFromSubMenu",19,()=>Z("aria_label_submenu_back")),u=h(e,"listRef",15);Bt(()=>{let Q=e.items.findIndex(ce=>ce.selected);u().children[Q+1].focus()});let f=he(),v=f.ui.isFullscreen,p=f.ui.playerSize,x=j(void 0),w=j(0),y=j(0),C=m(()=>l()&&r()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-n(y)-d()}px; overflow: auto;`),T=m(()=>Math.max(e.minWidth,n(w)));var E=Vx();let R;var A=_(E);let I;A.__keydown=[Px,e];var N=_(A);let H;N.__click=[Mx,e],N.__keydown=[Lx,e];var B=_(N);oa(B,{direction:"left"});var z=P(B,2),X=_(z,!0);g(z),g(N),lt(N,Q=>O(x,Q),()=>n(x));var ae=P(N,2);Ii(ae,17,()=>e.items,Od,(Q,ce)=>{var J=ze(),me=fe(J);{var se=Pe=>{Dm(Pe,{get item(){return n(ce)},get isMobile(){return l()}})},le=(Pe,ye)=>{{var ee=Be=>{Bm(Be,{get isMobile(){return l()},get item(){return n(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Pe,Be=>{n(ce).type==="OPEN_SUB_MENU"&&Be(ee)},ye)}};V(me,Pe=>{n(ce).type==="SELECT_VALUE"?Pe(se):Pe(le,!1)})}b(Q,J)}),g(A),lt(A,Q=>u(Q),()=>u()),g(E),D((Q,ce,J)=>{R=re(E,1,"sub-menu menu svelte-7dfsuh",null,R,Q),je(E,"data-testid",`sub-menu-${e.id}`),it(E,`min-width: ${n(T)}px`),I=re(A,1,"items svelte-7dfsuh",null,I,ce),it(A,n(C)),H=re(N,1,"item header back svelte-7dfsuh",null,H,J),je(N,"aria-label",a()),ve(X,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Mn(N,"clientWidth",Q=>O(w,Q)),Mn(N,"clientHeight",Q=>O(y,Q)),b(t,E),U(),o()}ut(["keydown","click"]);var a_=require("@vkontakte/videoplayer-shared/es2015");var Ox=(t,e)=>ju(t,e()),Nx=(t,e)=>{t.stopPropagation(),e()()},Dx=M('<div class="value svelte-1ikfjte"> </div>'),Bx=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),Hx={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Um(t,e){F(e,!0),W(t,Hx);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,a_.noop),r=h(e,"valueComponent",3,void 0),s=h(e,"ref",15);var l=Bx();let d;l.__click=[Nx,o],l.__keydown=[Ox,o];var a=_(l),u=_(a);{var f=T=>{Qa(T,{get icon(){return e.icon}})},v=T=>{var E=ze();let R=m(()=>e.icon);var A=fe(E);Ri(A,()=>n(R),(I,N)=>{N(I,{})}),b(T,E)};V(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var p=P(a,2),x=_(p,!0);g(p);var w=P(p,2);{var y=T=>{var E=ze();let R=m(r);var A=fe(E);Ri(A,()=>n(R),(I,N)=>{N(I,{})}),b(T,E)},C=T=>{var E=Dx(),R=_(E,!0);g(E),D(()=>ve(R,e.value)),b(T,E)};V(w,T=>{r()?T(y):T(C,!1)})}g(l),lt(l,T=>s(T),()=>s()),D(T=>{d=re(l,1,"item",null,d,T),je(l,"aria-label",e.ariaLabel),je(l,"data-testid",e.id),ve(x,e.label)},[()=>({mobile:i()})]),b(t,l),U()}ut(["click","keydown"]);var zm=require("@vkontakte/videoplayer-shared/es2015");var Fx=(t,e)=>{Wl(t,()=>e())},Ux=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),zx=M('<img class="icon" aria-hidden="true"/>'),Wx=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),Kx={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Wm(t,e){F(e,!0),W(t,Kx);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,zm.noop),r=h(e,"closeSettings",3,zm.noop),s=j(!1),l=()=>{O(s,!0)},d=C=>{C==null||C.stopPropagation(),o()(),r()()};var a=Wx();let u;a.__click=d,a.__keydown=[Fx,d];var f=_(a),v=_(f);{var p=C=>{var T=ze(),E=fe(T);{var R=I=>{var N=Ux();b(I,N)},A=I=>{var N=zx();D(()=>je(N,"src",e.icon)),St("error",N,l),Ta(N),b(I,N)};V(E,I=>{n(s)?I(R):I(A,!1)})}b(C,T)},x=C=>{var T=ze();let E=m(()=>e.icon);var R=fe(T);Ri(R,()=>n(E),(A,I)=>{I(A,{})}),b(C,T)};V(v,C=>{typeof e.icon=="string"?C(p):C(x,!1)})}g(f);var w=P(f,2),y=_(w,!0);g(w),g(a),D(C=>{var T;u=re(a,1,"item",null,u,C),je(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),je(a,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),b(t,a),U()}ut(["click","keydown"]);var l_=require("@vkontakte/videoplayer-shared/es2015");var qx=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),Qx={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 Km(t,e){W(t,Qx);let i=h(e,"enabled",3,!1);var o=qx(),r=_(o);let s;Ee(2),g(o),D(l=>s=re(r,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),b(t,o)}var jx=(t,e,i)=>{w0(t,e(),o=>i()(o))},Gx=(t,e,i)=>{t.stopPropagation(),e()(!i())},Yx=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),Zx=M('<li role="menuitem" tabindex="0"><!></li>');function qm(t,e){F(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,l_.noop),r=h(e,"enabled",3,!1),s=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=Zx();let a;d.__click=[Gx,o,r],d.__keydown=[jx,r,o];var u=_(d);za(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=Yx();let x;var w=_(p),y=_(w);{var C=I=>{Qa(I,{get icon(){return e.icon}})},T=I=>{var N=ze();let H=m(()=>e.icon);var B=fe(N);Ri(B,()=>n(H),(z,X)=>{X(z,{})}),b(I,N)};V(y,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var E=P(w,2),R=_(E,!0);g(E);var A=P(E,2);Km(A,{get enabled(){return r()}}),g(p),D(I=>{x=re(p,1,"switch-wrapper",null,x,I),ve(R,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),g(d),D(f=>{var v;a=re(d,1,"item switch-item",null,a,f),je(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),je(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),U()}ut(["click","keydown"]);var Lc=require("@vkontakte/videoplayer-shared/es2015");var d_=()=>{let t=j(ai([])),e=m(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{O(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var Xx=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),Jx=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),e5={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 tl(t,e){F(e,!0),W(t,e5);let i=h(e,"isSubCase",3,!1),o=m(()=>Ju(e.quality));var r=Jx(),s=_(r);let l;var d=_(s,!0);g(s);var a=P(s,2);{var u=f=>{var v=Xx();let p=m(()=>n(o));var x=_(v);Ri(x,()=>n(p),(w,y)=>{y(w,{})}),g(v),b(f,v)};V(a,f=>{n(o)&&!e.isMobile&&f(u)})}g(r),D(f=>{l=re(s,1,"svelte-t2qk8t",null,l,f),ve(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,r),U()}var f_=require("@vkontakte/videoplayer-shared/es2015");var Qm=require("@vkontakte/videoplayer-core/es2015");var c_=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},u_=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=c_({quality:t,availableQualities:e});return i?t===Qm.VideoQuality.INVARIANT?Z("auto_quality_invariant"):Z("auto_quality",{actual:o}):o},p_=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Qm.VideoQuality.INVARIANT?i:`${i}${c_({quality:t,availableQualities:e})}`:"...";var t5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),i5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function id(t,e){F(e,!0),W(t,i5);let[i,o]=De(),r=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=he(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=m(()=>e.prefix+(e.selected&&r()!==f_.VideoQuality.INVARIANT?v:"")),x=m(()=>p_({prefix:n(p),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var w=t5(),y=_(w);let C=m(()=>e.selected?r():void 0);tl(y,{get quality(){return n(C)},get label(){return n(x)},get isMobile(){return l()},isSubCase:!0}),g(w),b(t,w),U(),o()}var o5=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},n5={br:!0,span:!0},jm=(t,e={})=>{var d,a,u,f,v,p,x;if(!t)return t;let i=q(q({},n5),e),o=Object.keys(i);if(!o.length)return t;let r=o5(o),s=[],l=0;for(let w of t.matchAll(r)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){s.push(t.slice(l,T)),l=T+y.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?jm(w.groups.childrenhtml,i):"",R=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp((x=w.groups)==null?void 0:x.childrenhtml),()=>E||""):y;s.push(t.slice(l,T),R),l=T+y.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Mc(t,e){F(e,!1);let i=h(e,"message",8),o=jm(i());qo();var r=ze(),s=fe(r);{var l=d=>{var a=ze(),u=fe(a);Nd(u,()=>o),b(d,a)};V(s,d=>{o&&d(l)})}b(t,r),U()}var r5=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),s5={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 Gm(t,e){F(e,!1),W(t,s5),qo();var i=r5(),o=_(i);let r=En(()=>Z("quality_applience",{action:`<span>${Z("quality_applience_action")}</span>`}));Mc(o,{get message(){return n(r)}}),g(i),b(t,i),U()}var m_=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:id,valueComponentParams:{prefix:Z("other_quality"),selected:o},children:"QUALITY"}},Ym=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:Z("auto_quality_limit"),valueComponent:e?id:void 0,valueComponentParams:{prefix:Z("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),g_=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Gm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Zm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:Z("high_quality"),valueComponent:t?id:void 0,valueComponentParams:{prefix:Z("high_quality"),selected:i},sublabel:Z("high_quality_description")}),Xm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:Z("traffic_saving_quality"),valueComponent:t?id:void 0,valueComponentParams:{prefix:Z("traffic_saving_quality"),selected:i},sublabel:Z("traffic_saving_quality_description")});var gp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),hp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=gc(i))!=null?l:i),o&&i&&r){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return Z("audio_stream_display_language_label",{language:r,label:o});{let a=gp(t,d);return Z("audio_stream_display_language_label_index",{language:r,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=gp(t,d);return Z("audio_stream_display_label_index",{label:o,index:a})}}if(i&&r){let d=e.filter(a=>a.language===i);if(d.length===1)return r;{let a=gp(t,d);return Z("audio_stream_display_language_index",{language:r,index:a})}}let s=gp(t,e);return Z("audio_stream_display_unknown",{index:s})};var a5={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:Ym,selected:e&&!o&&!r||!1}),s.push({handler:Xm,selected:o},{handler:Zm,selected:r}),{title:Z("submenu_quality"),id:"QUALITY_DETAILS",items:[g_(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),m_(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:Z("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:tl,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:Z("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Ym,selected:((i=Nu())==null?void 0:i.type)==="auto_quality"},{handler:Xm,selected:((o=Nu())==null?void 0:o.type)==="traffic_saving"},{handler:Zm,selected:((r=Nu())==null?void 0:r.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:Z("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:hp(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:Z("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:Z("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===lp?"sub_off":void 0}))})},h_=({subMenuId:t,context:e})=>t?[a5[t](e)]:[];var l5=Ie('<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 Jm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=l5();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var d5=Ie('<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 eg(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=d5();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var c5=Ie('<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 tg(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=c5();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var u5=Ie('<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 ig(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=u5();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var p5=Ie('<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 og(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=p5();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var f5=Ie('<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 _p(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=f5();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var v5=Ie('<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 ng(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=v5();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var m5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),g5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function rg(t,e){F(e,!0),W(t,g5);let[i,o]=De(),r=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(v,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=he(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,x=m(()=>u_({quality:r(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=m5(),y=_(w);tl(y,{get quality(){return r()},get label(){return n(x)},get isMobile(){return d()}}),g(w),b(t,w),U(),o()}var _5={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?Z("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:Z("aria_label_menu_quality",{actual:o}),icon:ac,label:Z("menu_quality"),value:e,valueComponent:rg,weight:Zr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Zr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Z("aria_label_submenu_traffic_saving"),icon:Jm,label:Z("menu_traffic_saving"),enabled:t,tooltipText:Z("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=hp(t,e);return{id:"AUDIO_LANGUAGES",weight:Zr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Z("aria_label_menu_audio_languages",{actual:i}),icon:eg,label:Z("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Zr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Z("aria_label_menu_rate",{actual:i}),icon:tg,label:Z("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Zr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Z("aria_label_menu_subtitle",{actual:t.displayValue}),icon:lc,label:Z("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Zr.download,type:"CLICK",onClick:t,label:Z("download_video_caption"),ariaLabel:Z("aria_label_menu_download"),icon:ig}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Zr.report,type:"CLICK",onClick:t,label:Z("menu_report"),ariaLabel:`${Z("menu_report")}. ${Z("aria_label_new_tab_alert")}`,icon:og,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Zr["copy-data"],type:"CLICK",onClick:t,label:Z("menu_copy_debug"),ariaLabel:Z("menu_copy_debug"),icon:_p,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Zr["save-trace-info"],type:"CLICK",onClick:t,label:Z("menu_save_debug"),ariaLabel:Z("menu_save_debug"),icon:_p,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Zr["debug-info"],type:"CLICK",onClick:t,ariaLabel:Z("aria_label_menu_debug_overlay"),label:Z("menu_debug_overlay"),icon:ng,isHiddenFor:["desktop"]})},__=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>_5[r](e)),...i.map(r=>jt(q({},r),{isAdditional:!0}))].filter(r=>{var s,l,d;return!((s=r==null?void 0:r.isHiddenFor)!=null&&s.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ba)};var $5=(t,e)=>{Qu(t,e)},y5=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),x5=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),w5=M("<div><!> <!></div>"),S5={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 {
|
|
317
317
|
/* \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),
|
|
318
318
|
.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),
|
|
319
319
|
.settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
|
|
320
|
-
.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
|
|
320
|
+
.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 Vc(t,e){F(e,!0),W(t,S5);let[i,o]=De(),r=()=>S(Xe,"$settingsMenuVisible",i),s=()=>S(ge,"$settingsMenuOpenedByKeyboard",i),l=()=>S(Ze,"$debugPanelVisible",i),d=()=>S(ke,"$isMobile",i),a=()=>S(qe,"$playerSize",i),u=()=>S(He,"$hasMpegSources$",i),f=()=>S(we,"$mobileNotReportControlHidden$",i),v=()=>S(ee,"$autoQualityLimitingAvailable$",i),p=()=>S(Y,"$availableSubtitlesList$",i),x=()=>S(Fe,"$isLiveWithPlaybackSpeed",i),w=()=>S(le,"$availableAudioStreams$",i),y=()=>S(Ge,"$availablePlaybackRates$",i),C=()=>S(se,"$currentAudioStream$",i),T=()=>S(k,"$currentPlaybackRate$",i),E=()=>S(Je,"$trafficSavingEnabled",i),R=()=>S(Pe,"$currentQuality$",i),A=()=>S(Be,"$isAutoQualityEnabled$",i),I=()=>S(Me,"$currentSubtitle$",i),N=()=>S(st,"$additionalSettingsMenuItems$",i),H=()=>S(pe,"$isAutoQualityAvailable$",i),B=()=>S(ye,"$availableQualities$",i),z=()=>S(Ye,"$highQualityEnabled",i),X=h(e,"ref",15,void 0),ae=h(e,"playerControlsHeight",3,0),Q=ai({}),ce=ai({}),J=he(),me=Nt(),se=J.state.audioStream$,le=J.state.availableAudioStreams$,Pe=J.state.currentQuality$,ye=J.state.availableQualities$,ee=J.state.autoQualityLimitingAvailable$,Be=J.state.isAutoQualityEnabled$,pe=J.state.isAutoQualityAvailable$,k=J.state.currentPlaybackRate$,Ge=J.state.availablePlaybackRates$,Me=J.state.currentSubtitle$,Y=J.state.availableSubtitlesList$,oe=J.state.canDownload,He=J.state.hasMpegSources$,Xe=J.ui.settingsMenu.visible$,ge=J.ui.settingsMenu.openedByBtnKeyboard$,ie=J.ui.settingsMenu.ref$,ke=J.ui.isMobile,we=J.ui.mobileNotReportControlHidden$,Fe=J.state.canChangePlaybackSpeed$,Je=J.state.trafficSavingEnabled$,Ye=J.state.highQualityEnabled$,qe=J.ui.playerSize,Ze=J.ui.debugPanelVisible,Ht=J.state.isInteractiveTime$,st=J.ui.additionalSettingsMenuItems$,Ft=J.ui.t,Gt=J.actions.internal.downloadVideo,kt=J.actions.internal.closeSettingsMenu,ti=J.actions.internal.openSettingsSubMenu,qt=J.actions.internal.closeSettingsSubMenu,Ce=j(!1),xe=j(void 0),te=d_();Qe(()=>{!r()&&te.current&&(qt(ce[te.current]),te.popAllSubMenus())}),Qe(()=>{r()||O(xe,void 0)}),Qe(()=>{!te.current&&n(xe)&&y0(Q,n(xe))}),Qe(()=>{X()&&ie.set(X())});function Te(At){return wt(this,null,function*(){var K;te.pushSubMenu(At),yield $o(),ti(At,ce[At]);let Ut=(K=X())==null?void 0:K.firstElementChild;Ut&&cv(Ut)})}function Ve(At){var Ut;At==null||At.stopPropagation(),s()||(Ut=e.returnFocus)==null||Ut.call(e),kt(),O(Ce,!1)}function Vt(At,Ut){J.actions.internal.setQuality(At,{appliesTo:Ut}),Ve()}function Re(At){J.actions.internal.setAudioStream(At),Ve()}function dt(At,Ut){J.actions.internal.setTrafficSavingEnabled(At,Ut),me.features.qualityDetailsSubMenuEnabled&&Ve()}function It(At,Ut){J.actions.internal.setHighQualityEnabled(At,Ut),Ve()}function Se(At){J.actions.internal.setPlaybackRate(At),Ve()}function at(At){J.actions.internal.setSubtitle(At),Ve()}function We(){Gt()}function pt(){(0,Lc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function Yt(){Ul(J.actions.internal.getDebugTextData())}let yi=()=>{let At=J.actions.internal.getTraceTextData(),Ut=new Blob([...At],{type:"application/json"}),K=window.URL.createObjectURL(Ut);La(K,"vk_player_trace_info","json")};function mi(){Ze.set(!l())}function Si(){O(Ce,!0)}function lo(){O(Ce,!1)}function co(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-ae()}px; overflow: auto;`}let ci=m(()=>oe&&u()&&!f()),ht=m(()=>me.features.trafficSaving&&!f()&&v()&&!me.features.qualityDetailsSubMenuEnabled),xi=m(()=>p().length>0&&!f()),di=m(()=>!!x()&&!f()),yt=m(()=>me.features.audioLanguages&&w().length>=2&&!f()),gi=m(()=>!f());Bt(()=>Ht.subscribe(At=>{At&&!d()&&!n(Ce)&&!s()&&Ve()}));let Jt=m(()=>{let At=[n(gi)&&"QUALITY_SETTINGS",n(yt)&&"AUDIO_LANGUAGES",n(di)&&"PLAYBACK_RATE",n(xi)&&"SUBTITLES",n(ht)&&"TRAFFIC_SAVING_SWITCH",n(ci)&&"DOWNLOAD",me.showSupport&&"SHOW_SUPPORT","COPY_DATA",me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ut=>!!Ut);return __({items:At,context:{qualityDetailsSubMenuEnabled:me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Se,trafficSavingEnabled:E(),toggleTrafficSaving:dt,currentQuality:R()||Lc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:We,onCopyDataClick:Yt,onReportProblemClick:pt,onSaveTraceDataClick:yi,toggleShowDebugInfo:mi},additionalSettingsMenuItems:N()})}),Ct=m(()=>h_({subMenuId:te.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Se,trafficSavingEnabled:E(),toggleTrafficSaving:dt,currentQuality:R()||Lc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:H()||!1,availableQualities:B(),highQualityEnabled:z(),toggleHighQuality:It,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:kt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Re,selectQuality:Vt,selectSubtitle:at}}));var et=w5();let ki;var Co=_(et);{var jo=At=>{var Ut=x5();let K;Ut.__keydown=[$5,kt];var Pt=_(Ut);{var ni=Xt=>{var ft=y5();let Ui;var zi=_(ft),Go=_(zi,!0);g(zi);var To=P(zi,2);To.__click=Ve,g(ft),D((uo,Wi)=>{Ui=re(ft,1,"item header svelte-17or3al",null,Ui,uo),ve(Go,Wi)},[()=>({mobile:d()}),()=>Ft("submenu_settings")]),b(Xt,ft)};V(Pt,Xt=>{d()&&Xt(ni)})}var _t=P(Pt,2);let Mt;Ii(_t,21,()=>n(Jt),Xt=>Xt.id,(Xt,ft)=>{var Ui=ze(),zi=fe(Ui);{var Go=uo=>{Um(uo,{get isMobile(){return d()},get id(){return n(ft).id},get icon(){return n(ft).icon},get label(){return n(ft).label},get ariaLabel(){return n(ft).ariaLabel},get value(){return n(ft).value},get valueComponent(){return n(ft).valueComponent},onClick:()=>{Te(n(ft).children),O(xe,n(ft).id,!0)},get ref(){return Q[n(ft).id]},set ref(Wi){Q[n(ft).id]=Wi}})},To=(uo,Wi)=>{{var Mr=po=>{Wm(po,{get isMobile(){return d()},get id(){return n(ft).id},get onClick(){return n(ft).onClick},get icon(){return n(ft).icon},get label(){return n(ft).label},get ariaLabel(){return n(ft).ariaLabel},closeSettings:Ve})},yo=(po,Ki)=>{{var Yo=Zo=>{qm(Zo,{get isMobile(){return d()},get id(){return n(ft).id},get onClick(){return n(ft).onClick},get icon(){return n(ft).icon},get label(){return n(ft).label},get ariaLabel(){return n(ft).ariaLabel},get enabled(){return n(ft).enabled},get tooltipText(){return n(ft).tooltipText},get maxTooltipWidth(){return n(ft).maxTooltipWidth}})};V(po,Zo=>{n(ft).type==="SWITCH"&&Zo(Yo)},Ki)}};V(uo,po=>{n(ft).type==="CLICK"?po(Mr):po(yo,!1)},Wi)}};V(zi,uo=>{n(ft).type==="OPEN_SUB_MENU"?uo(Go):uo(To,!1)})}b(Xt,Ui)}),g(_t),lt(_t,Xt=>X(Xt),()=>X()),g(Ut),D((Xt,ft,Ui)=>{K=re(Ut,1,"settings-menu menu svelte-17or3al",null,K,Xt),Mt=re(_t,1,"items",null,Mt,ft),it(_t,Ui)},[()=>({desktop:!d(),mobile:d(),hidden:!!te.current}),()=>({mobile:d()}),co]),St("mouseenter",Ut,Si),St("mouseleave",Ut,lo),b(At,Ut)};V(Co,At=>{r()&&At(jo)})}var pn=P(Co,2);Ii(pn,17,()=>n(Ct),At=>At.id,(At,Ut)=>{let K=m(()=>{var Pt;return(Pt=n(Ut).minWidth)!=null?Pt:137});Fm(At,{get isMobile(){return d()},get playerControlsHeight(){return ae()},get returnFromSubMenu(){return te.popSubMenu},get id(){return n(Ut).id},get title(){return n(Ut).title},get closeSettingsMenu(){return kt},openSubMenuList:Te,get items(){return n(Ut).items},get minWidth(){return n(K)},get refMenuItems(){return Q},get listRef(){return ce[n(Ut).id]},set listRef(Pt){ce[n(Ut).id]=Pt}})}),g(et),D(At=>ki=re(et,1,"settings-menu-container svelte-17or3al",null,ki,At),[()=>({mobile:d(),hidden:!r()})]),b(t,et),U(),o()}ut(["keydown","click"]);var C5=M('<button class="btn svelte-1f0voc7"> </button>'),T5={hash:"svelte-1f0voc7",code:"button.btn.svelte-1f0voc7 {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function sg(t,e){W(t,T5);var i=C5();i.__click=function(...r){var s;(s=e.onClick)==null||s.apply(this,r)};var o=_(i,!0);g(i),D(()=>ve(o,e.label)),b(t,i)}ut(["click"]);var E5=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),I5={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
|
|
321
321
|
/**
|
|
322
322
|
* \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.
|
|
323
|
-
*/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
|
|
323
|
+
*/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){F(e,!0),W(t,I5);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Nt(),{ui:{t:r}}=he(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=E5(),d=_(l),a=_(d),u=_(a),f=_(u);Mc(f,{get message(){return s}}),g(u);var v=P(u,2);{var p=w=>{let y=m(()=>r("slow_video_notification_button"));sg(w,{get label(){return n(y)},get onClick(){return e.onSelectAutoQuality}})};V(v,w=>{o||w(p)})}g(a);var x=P(a,2);ks(x,{get onClick(){return e.onClose}}),g(d),g(l),Qr(3,d,()=>vs,()=>({duration:i})),b(t,l),U()}var Oc=require("@vkontakte/videoplayer-shared/es2015");var il="annotation",bp=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",il),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(r,s){return wt(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var p;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:a,hiddenControls:u}=((p=this.store)==null?void 0:p.ui)||{},f=new MutationObserver(x=>x.forEach(()=>{let w=Ps(d,this.shadowRootContainer);o.forEach(y=>{let C=a==null?void 0:a[y],T=C?$e(C):null,E=u==null?void 0:u[y];T&&(E==null||E.set((0,Oc.isIntersecting)(T,w)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let v=new Oc.Subscription;o.forEach(x=>{a&&v.add(a[x].subscribe(w=>{let y=u==null?void 0:u[x];w&&w.isDisplayed?y==null||y.set((0,Oc.isIntersecting)(w,Ps(d,this.shadowRootContainer))):y==null||y.set(!1)}))}),l.subs=v})}findSlotElement(e,i,o){return wt(this,null,function*(){return new Promise(r=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),r(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[r,s].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var p,x;(x=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||x.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var k5=M('<div class="container svelte-16aykgd"><!></div>'),A5={hash:"svelte-16aykgd",code:`.container.svelte-16aykgd {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
|
|
324
324
|
|
|
325
325
|
animation-name: svelte-16aykgd-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
|
|
326
326
|
|
|
@@ -351,11 +351,11 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
|
|
|
351
351
|
opacity: 0;
|
|
352
352
|
scale: 0;
|
|
353
353
|
}
|
|
354
|
-
}`};function
|
|
355
|
-
.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
|
|
354
|
+
}`};function Nc(t,e){W(t,A5);let i=h(e,"isPrev",3,!1);var o=ze(),r=fe(o);Ss(r,()=>e.Icon,s=>{var l=k5(),d=_(l);Ri(d,()=>e.Icon,(a,u)=>{u(a,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return i()}})}),g(l),D(()=>it(l,`animation-duration: ${e.duration}ms`)),b(s,l)}),b(t,o)}var ag=require("@vkontakte/videoplayer-core/es2015"),P5=M('<div class="container svelte-1sw36pi"><!></div>'),M5={hash:"svelte-1sw36pi",code:".container.svelte-1sw36pi {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}"};function lg(t,e){F(e,!0),W(t,M5);let[i,o]=De(),r=()=>S(a,"$playbackState$",i),s=()=>S(f,"$previewTrackActive",i),l=()=>S(v,"$previewTrackDragInProgress",i),d=()=>S(u,"$isPlaying$",i),{state:{playbackState$:a,isPlaying$:u},ui:{previewTrackActive:f,previewTrackDragInProgress:v}}=he(),{features:{playbackStatusShow:p},playbackStatusAnimationDuration:x}=Nt(),w=0,y=j(null),C=j(!1);Qe(()=>{r()===ag.PlaybackState.PLAYING?O(y,cr,!0):r()===ag.PlaybackState.PAUSED?O(y,Ls,!0):O(y,null)}),Qe(()=>{if(!(!p||s()||l()))return w=window.setTimeout(()=>{w=0,O(y,null)},x),()=>{w&&(window.clearTimeout(w),w=0)}}),Qe(()=>{d()&&!n(C)&&(O(C,!0),O(y,null))});var T=ze(),E=fe(T);{var R=A=>{var I=P5(),N=_(I);Nc(N,{get duration(){return x},get Icon(){return n(y)}}),g(I),b(A,I)};V(E,A=>{n(y)&&p&&A(R)})}b(t,T),U(),o()}var L5=M('<div><div data-testid="video-container"></div></div>'),V5={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
|
|
355
|
+
.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 ol(t,e){F(e,!0),W(t,V5);let[i,o]=De(),r=()=>S(f,"$rotateAlpha",i),s=()=>S(v,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=h(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=he(),{isSmoothVideoRotate:x}=Nt(),w=m(()=>a()&&r()%180?s().height/s().width:1);var y=L5();let C;y.__contextmenu=function(...R){var A;(A=e.onContextMenu)==null||A.apply(this,R)},y.__mousedown=function(...R){var A;(A=e.onMouseDown)==null||A.apply(this,R)},y.__mouseup=function(...R){var A;(A=e.onMouseUp)==null||A.apply(this,R)},y.__click=function(...R){var A;(A=e.onClick)==null||A.apply(this,R)},y.__dblclick=function(...R){var A;(A=e.onDblClick)==null||A.apply(this,R)};var T=_(y);let E;lt(T,R=>a(R),()=>a()),g(y),D((R,A)=>{C=re(y,1,"video-wrapper svelte-1czns9r",null,C,R),E=re(T,1,"video-container svelte-1czns9r",null,E,A),it(T,`transform: rotate(${r()}deg) scale(${n(w)})`),je(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!x})]),b(t,y),U(),o()}ut(["contextmenu","mousedown","mouseup","click","dblclick"]);var R5=Ie('<svg><!><path fill="currentColor" d="M8 7.389V5.725c0-.52.57-.84 1.015-.569l3.721 2.275a.667.667 0 0 1 0 1.138l-3.721 2.275A.667.667 0 0 1 8 10.275V8.611l-3.652 2.233a.667.667 0 0 1-1.014-.569v-4.55c0-.52.57-.84 1.014-.569z"></path></svg>');function dg(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=R5();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var O5=M('<div><span class="text svelte-1gi6268"> </span> <!></div>'),N5={hash:"svelte-1gi6268",code:".root.svelte-1gi6268 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:var(--white);display:flex;border-radius:100px;position:absolute;top:24px;left:50%;transform:translateX(-50%);transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden;opacity:0;pointer-events:none;}.root.visible.svelte-1gi6268 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1gi6268 {font-size:13px;line-height:16px;font-weight:600;}"};function cg(t,e){F(e,!0),W(t,N5);let{ui:{t:i}}=he();var o=O5();let r;var s=_(o),l=_(s,!0);g(s);var d=P(s,2);dg(d,{}),g(o),D((a,u)=>{r=re(o,1,"root svelte-1gi6268",null,r,a),ve(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),U()}var D5=M('<div class="container svelte-1k32wyl" role="button"><div class="icon svelte-1k32wyl"><!></div></div>'),B5={hash:"svelte-1k32wyl",code:".container.svelte-1k32wyl {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;background-color:rgba(0, 0, 0, 0.48);cursor:pointer;}.icon.svelte-1k32wyl {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;transition:transform 0.2s;transition-timing-function:ease-out;will-change:transform;}.container.svelte-1k32wyl:hover .icon:where(.svelte-1k32wyl) {transform:scale(1.15);}"};function ug(t,e){F(e,!1),W(t,B5);let o=he().actions.internal.closePreviewTrack,r=200,s=u=>{u.stopPropagation(),o()};qo();var l=D5();l.__click=s;var d=_(l),a=_(d);return cr(a,{width:"40",height:"40",viewBox:"0 0 24 24"}),g(d),g(l),Qr(3,l,()=>vs,()=>({duration:r})),b(t,l),Pf(e,"handleClick",s),U({handleClick:s})}ut(["click"]);var H5=M('<div class="container svelte-17g9o6z"><div class="notification svelte-17g9o6z"><span class="text svelte-17g9o6z"> </span></div></div>'),F5={hash:"svelte-17g9o6z",code:`.container.svelte-17g9o6z {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
|
|
356
356
|
/**
|
|
357
357
|
* \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.
|
|
358
|
-
*/pointer-events:none;}.notification.svelte-17g9o6z {padding:10px 16px;background-color:var(--black-alpha-40);border-radius:var(--notification-radius);}.text.svelte-17g9o6z {line-height:18px;font-size:14px;font-weight:500;}`};function pg(t,e){F(e,!1),W(t,z5);let{ui:{t:i}}=_e();Jo();var o=U5(),r=_(o),s=_(r),l=_(s,!0);g(s),g(r),g(o),D(d=>me(l,d),[()=>i("preview_track_notification_text")],En),Xr(3,r,()=>ms,()=>({duration:340})),b(t,o),U()}var W5=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},K5=M("<div><!></div>"),q5=M('<div class="spherical-video-icon svelte-nqua3g"><!></div>'),Q5=M("<div><!></div>"),j5=M('<div class="settings-menu svelte-nqua3g"><!></div>'),G5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Y5=M("<!> <!> <!>",1),Z5=M('<div class="blocked svelte-nqua3g"></div>'),X5=M('<div class="player-wrapper svelte-nqua3g"><!> <div class="overlay-container"></div></div> <!>',1),J5={hash:"svelte-nqua3g",code:".player-wrapper.svelte-nqua3g {position:absolute;width:100%;height:100%;}.blocked.svelte-nqua3g {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-nqua3g .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-nqua3g {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-nqua3g {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-nqua3g {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-nqua3g {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s;}"};function vg(t,e){F(e,!0),W(t,J5);let[i,o]=Be(),r=()=>S(vi,"$notificationsToShow$",i),s=()=>S(ui,"$playerPhase",i),l=()=>S(To,"$isLoaderVisible",i),d=()=>S(wi,"$adPlaybackState",i),a=()=>S(ri,"$crashed",i),u=()=>S(uo,"$isInteractiveTime$",i),f=()=>S(It,"$settingsMenuVisible",i),v=()=>S(Wi,"$isInteractiveExpectation$",i),p=()=>S(Xt,"$controlsVisible",i),x=()=>S(_o,"$touched",i),w=()=>S(Pr,"$graphIsOpened$",i),y=()=>S(ht,"$isFullscreen",i),C=()=>S(gs,"$autoplayNextEnabled$",i),T=()=>S(Ut,"$postrollPassed",i),E=()=>S(tn,"$isEnded$",i),R=()=>S(yo,"$cursorInside",i),A=()=>S(Eo,"$isControlsAvailable",i),I=()=>S(Bo,"$doubleForwardOn$",i),N=()=>S(kr,"$fakeIsPlaying$",i),H=()=>S(Dn,"$bottomNoSmooth",i),B=()=>S(Do,"$interactiveTimeIndicator",i),z=()=>S(Ni,"$playerSize",i),X=()=>S(zi,"$is3DVideo",i),le=()=>S(gn,"$doubleForwardAvailable$",i),q=()=>S(Ye,"$contextMenuVisible$",i),ce=()=>S(mi,"$playbackState$",i),J=()=>S(bo,"$hotKeyMapData",i),ve=()=>S(Jt,"$scrubbingInProgress",i),se=()=>S(Tt,"$volumeChangingInProgress",i),de=()=>S(vn,"$chromecastConnected$",i),Le=()=>S(Fo,"$controlsTimeoutActive",i),Se=()=>S(si,"$settingsMenuOpenedByKeyboard",i),ie=()=>S(Ur,"$contextMenuOpenedByKeyboard$",i),Ne=()=>S(ti,"$contextMenuOpenedByHotKey$",i),pe=()=>S(rs,"$contextMenuButtonRef$",i),k=()=>S(_i,"$contextMenuLastActiveElem$",i),qe=()=>S(Mi,"$isFullscreenOpenedByKeyboard",i),Re=()=>S(ai,"$language$",i),Z=()=>S(Sn,"$previewTrackActive$",i),ne=()=>S(on,"$icon3DVideoVisible",i),He=()=>S(Pt,"$chromecastDeviceName$",i),Xe=()=>S(Zt,"$currentSubtitle$",i),ge=()=>S(ft,"$currentSubtitleCaptions$",i),ee=()=>S(co,"$position$",i),ke=()=>S(ho,"$duration$",i),he=()=>S(K,"$isLive$",i),Ue=()=>S(Ot,"$isPlaying$",i),Je=()=>S(vr,"$contextMenuPosition$",i),Ge=()=>S(Vn,"$previewTrackNotificationVisible$",i),ut=()=>S(Di,"$showHotKeyMap",i),tt=()=>S(Si,"$debugPanelVisible",i),Ft=()=>S(ns,"$userActionsDisabled$",i),st=h(e,"videoContainer",15),Ht=h(e,"adsSlotId",3,void 0),Gt=h(e,"adsParams",3,void 0),kt=h(e,"adsAutoplayParam",3,void 0),oi=h(e,"duration",3,void 0),qt=h(e,"logoTargetUrl",3,""),Ce=h(e,"showNextPrevButtons",3,!1),we=h(e,"nextButtonActive",3,!1),te=h(e,"prevButtonActive",3,!1),Te=h(e,"endScreenVideoTitle",3,void 0),Me=h(e,"endScreenVideoThumb",3,void 0),At=h(e,"isOneVideoPlaylist",3,!1),De=h(e,"shadowRootContainer",3,void 0),pt=h(e,"outerContainerRef",3,void 0),xt=h(e,"playerStarted",3,!1),xe=h(e,"fullScreenTarget",3,void 0),nt=h(e,"showMiniTimer",3,!1),Qe=h(e,"showEndScreen",3,!0),dt=h(e,"keyboardControls",15),ni=e.store.getLogger().createComponentLog("Root component"),ai=e.store.interfaceLanguage$,mi=e.store.state.playbackState$,wi=e.store.ads.playbackState,co=e.store.state.positionWithScrubbing$,ho=e.store.state.duration$,ui=e.store.playerPhase,ht=e.store.ui.isFullscreen,Mi=e.store.ui.isFullscreenOpenedByKeyboard,Xt=e.store.ui.controlsVisible,It=e.store.ui.settingsMenu.visible$,si=e.store.ui.settingsMenu.openedByBtnKeyboard$,Jt=e.store.ui.scrubbingInProgress,Tt=e.store.ui.volumeChangingInProgress,Ye=e.store.ui.contextMenu.visible$,Si=e.store.ui.debugPanelVisible,To=e.store.state.isLoaderVisible,tn=e.store.state.isEnded$,vn=e.store.state.chromecastConnected$,Pt=e.store.state.chromecastDeviceName$,Ut=e.store.ads.postrollPassed,K=e.store.state.isLive$,Ot=e.store.state.isPlaying$,ri=e.store.state.crashed$,mt=e.store.webApi.annotationsApi,Mt=e.store.webApi.pictureInPictureApi,Zt=e.store.state.currentSubtitle$,ft=e.store.state.currentSubtitleCaptions$,Ni=e.store.ui.playerSize,zi=e.store.ui.is3DVideo,on=e.store.ui.icon3DVideoVisible,No=e.store.state.isInteractive,uo=e.store.state.isInteractiveTime$,Wi=e.store.state.isInteractiveExpectation$,pr=e.store.state.hasInteractiveBranches,_o=e.store.ui.touched,bo=e.store.ui.modals.hotKeyMap.data,Di=e.store.ui.modals.hotKeyMap.show,mn=e.store.ui.overlayContainer$,Do=e.store.ui.controls.interactiveTimeIndicator,fr=e.store.state.showInteractiveTimeIndicator,vr=e.store.ui.contextMenu.position$,Er=e.store.actions.internal.setQuality,os=e.store.actions.internal.closeSettingsMenu,gs=e.store.ui.autoplayNextEnabled$,ns=e.store.ui.userActionsDisabled,Eo=e.store.ui.isControlsAvailable,jn=e.store.ui.videoTitleInfo,Bo=e.store.ui.doubleForwardOn$,gn=e.store.ui.doubleForwardAvailable$,Vn=e.store.ui.previewTrackNotificationVisible,mr=e.store.actions.internal.getVideoElement,Ir=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:kr,notifications$:Ar,graphIsOpened$:Pr}=Co(),Zi=j(void 0),Mr=j(void 0),Rn=j(void 0),hn=j(void 0),$o,gr,On;bo.set(m0());let{closeNotification:_t,notificationsToShow$:vi}=Ar,Lr=m(()=>!!r().slow_video),Gn=()=>_t("slow_video"),Vr=m(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),Nn=j(void 0),Dn=ae(!1),Ho,Fo=ae(!1),_n=ae(),yo=ae(!1),Uo=j(!1),nn=j(!1),hr=j(!1),Rr=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),bn=m(()=>u()&&!f()&&!(n(Uo)||n(nn))&&!(n(hr)&&!v())),Ki=!0,_r=m(()=>e.uiConfig.features.thumbTimer&&nt()&&s()==="video"&&!p()&&!a()&&!No&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Or=m(()=>s()==="video"&&!w()&&y()),Bn=j(!1),Yn=m(()=>(Qe()||e.showAutoplayNext&&C())&&!!Te()&&!!Me()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!n(Bn)),Nr=m(()=>R()&&!(p()||n(Yn))&&!u()&&A()&&!I()),Zn=j(!1),ot=m(()=>N()!==null),{toggle:gi}=kr,Bi=!1,Xi=null;Mt==null||Mt.setContext(yd());let zo=()=>{e.autoplay&&!No&&e.uiConfig.controls.showOnStartupAtAutoplay&&Pi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:zo});let rn=()=>{window.clearTimeout($o),Fo.set(!1)},po=()=>{window.clearTimeout(gr),_n.set(null)},Pi=ye=>{rn(),Fo.set(!0),$o=window.setTimeout(()=>Fo.set(!1),ye);let gt=ye-100;Ho=window.setTimeout(()=>{H()&&Dn.set(!1)},gt>0?gt:ye)},Ji=(ye,gt)=>{po(),_n.set(gt),gr=window.setTimeout(()=>_n.set(null),ye)},xo=zi.subscribe(ye=>{on.set(ye),ye&&(window.clearTimeout(On),On=window.setTimeout(()=>on.set(!1),e.uiConfig.controls.hide360IconTimeout))}),$n=()=>wt(null,null,function*(){var gt,li,Ti,fi;let ye=Xs();if(ye){let ii=Gd(),ki=Br();ye=ii===ki||ii===De()}if(ye){Pi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Mt==null?void 0:Mt.exit()}catch(ii){ni({message:String(ii)})}}ht.set(ye),e.store.getAdmanWrapper().setFullscreen(ye),y()?(li=(gt=e.store.callbacks)==null?void 0:gt.onFullscreenEnter)==null||li.call(gt):(fi=(Ti=e.store.callbacks)==null?void 0:Ti.onFullscreenExit)==null||fi.call(Ti)}),Xn=ye=>{let{width:gt,height:li}=ye.target;Ni.set({width:gt,height:li})},Dr=()=>{let{width:ye,height:gt}=n(Zi).getBoundingClientRect();Ni.set({width:ye,height:gt})};Bt(()=>{var gt;return Qu($n),e.uiConfig.features.annotationsInside&&(mt==null||mt.init(n(Zi))),Da(Mt)&&(Mt==null||Mt.assignPlayerContainer(n(Zi)),Mt==null||Mt.setExternalEventHandlers({resize:Xn,leavepictureinpicture:Dr})),e.interactiveContainer&&((gt=st().parentElement)==null||gt.insertBefore(e.interactiveContainer,st().nextSibling)),()=>{window.clearTimeout($o),window.clearTimeout(Ho),window.clearTimeout(gr),window.clearTimeout(On),xo(),Mt==null||Mt.dispose().catch(li=>{ni({message:String(li)})}),ju($n)}});let Br=()=>{let ye=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!pt()?n(Zi):pt(),gt=ye.getRootNode(),li=gt instanceof ShadowRoot?gt.host:gt,Ti=xe()instanceof HTMLElement&&xe().contains(li);return e.uiConfig.allowChangingFullscreenTarget&&xe()&&Ti?xe():ye},yn=()=>{Ye.set(!1)},xn=()=>{os(),yn()},br=()=>wt(null,null,function*(){if(!Ir()){ni({message:"fullscreen disabled"});return}yn(),Xs()?(yield qu(document),ni({message:"exit fullscreen"})):(ni({message:"request fullscreen"}),yield Ku(Br()))}),wn=ye=>{w()||(ye.preventDefault(),Ye.set(!0),vr.set({left:ye.clientX,top:ye.clientY}))};function Hr(){yo.set(!0),No||Pi(e.uiConfig.controls.hideTimeoutCursor)}function it(ye){var fi,ii;let{relatedTarget:gt}=ye,Ti=!!(gt&&((fi=n(Rn))!=null&&fi.contains(gt)))&&((ii=dt())==null?void 0:ii.isFocused());!No&&!Ti&&(Dn.set(!0),Pi(e.uiConfig.controls.hideTimeoutCursor))}function Vt(){yo.set(!1),O(nn,!1),O(Uo,!1),Bi=!1,e.store.actions.internal.releaseCamera(),Pi(e.uiConfig.controls.hideTimeout),I()&&Ko()}function Ci(ye){return ye?ye.offsetTop+Ci(ye.offsetParent):0}function wo(ye){return ye?ye.offsetLeft+wo(ye.offsetParent):0}function Wo(ye){if(B()&&fr){let gt=ye.currentTarget,li=Ci(gt),Ti=wo(gt),fi=ye.pageX-Ti,ii=ye.pageY-li,{left:ki,bottom:Tn,right:ln}=B(),Vi=ln-ki;return fi>=ki-Vi&&ii<=Tn+Vi}}function Io(ye){if(n(Zi)){let gt=Ci(ye.currentTarget),li=z().height,Ti=ye.pageY-gt;if(Wo(ye)){O(nn,!1);return}Ti<40?O(nn,!0):Ti>li-40?O(Uo,!0):(O(nn,!1),f()||O(Uo,!1))}}function eo(ye){Io(ye),!n(bn)&&!I()&&Pi(e.uiConfig.controls.hideTimeoutCursor),X()&&Bi&&Xi&&e.store.actions.internal.moveCameraFocusPX(Xi.clientX-ye.clientX,Xi.clientY-ye.clientY,ye.timeStamp-Xi.timeStamp),Xi=ye}let Li=null,sn=()=>{Li=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),rn()},e.uiConfig.doubleForwardActivationTime)},Ko=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Li&&clearTimeout(Li),Li=null},ko=ye=>{ye.preventDefault(),ye.button===0&&(Bi=!0,e.store.actions.internal.holdCamera(),le()&&sn()),!Bi&&Pi(e.uiConfig.controls.hideTimeoutCursor)},to=ye=>{ye.preventDefault(),ye.button===0&&(Xi=ye,Bi=!1,e.store.actions.internal.releaseCamera()),!I()&&Pi(e.uiConfig.controls.hideTimeoutCursor)},Fr=ye=>{ye.preventDefault(),Ki&&(ni({message:"double click on video"}),br(),Pi(e.uiConfig.controls.hideTimeoutCursor))},Jn=ye=>{var gt;if(ye.preventDefault(),I()){Ko();return}if(Li&&Ko(),q()||f()){xn();return}if(!(E()&&!pr)){if(n(ot))return gi();if((gt=dt())==null||gt.focus(),!xt()){e.firstStart(),Pi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ce()!==fg.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Pi(e.uiConfig.controls.hideTimeoutCursor)}},er=ye=>{xn(),_o.set(!0),Pi(e.uiConfig.controls.hideTimeout),ye&&Ji(e.uiConfig.controls.hideHotKeyHelpers,ye)},$r=()=>{var ye,gt;xn(),(ye=e.store.callbacks)!=null&&ye.onOpenHotKeyMap?(gt=e.store.callbacks)==null||gt.onOpenHotKeyMap(J()):Di.update(li=>!li)},hs=()=>{_o.set(!0)},Ur=e.store.ui.contextMenu.openedByBtnKeyboard$,rs=e.store.ui.contextMenu.btnRef$,je=j(void 0),ti=e.store.ui.contextMenu.openedByHotKey$,_i=e.store.ui.contextMenu.lastActiveElem$,Sn=e.store.ui.previewTrackActive;We(()=>{mn.set(n(Nn))}),We(()=>{O(hr,n(Rr)&&ce()!==fg.PlaybackState.PLAYING,!0),n(Rr)||Lt(()=>O(Rr,!0))}),We(()=>{var gt,li;let ye=(n(hr)||E()||f()||ve()||se()||de()||Le())&&!n(bn)&&(s()==="video"||s()==="ads")&&!a()&&A();Xt.set(ye),!ye&&!Le()&&e.uiConfig.returnFocusOnControlsHide&&((gt=n(Rn))!=null&>.contains(ep()))&&((li=dt())==null||li.focus())}),We(()=>{!ve()&&n(Zn)&&!u()&&Pi(e.uiConfig.controls.hideTimeoutCursor),Lt(()=>O(Zn,ve(),!0))}),We(()=>{n(hn),f(),Se(),Lt(()=>ic(n(hn),f(),Se()))}),We(()=>{n(je),q(),ie(),Ne(),Lt(()=>{let ye=ie()||Ne();ic(n(je),q(),ye)})}),We(()=>{let ye=pe();ye&&(q(),Lt(()=>Wl(ye,q(),Ur)))}),We(()=>{let ye=k();ye&&(q(),Lt(()=>$0(ye,q(),ti)))}),We(()=>{var ye;!qe()&&y()&&(Lt(()=>Mi.set(!1)),(ye=dt())==null||ye.focus())}),We(()=>{w()&&xn()});let qo=Y("video360"),zr=j(void 0),an=ye=>{jn.set(qn(mr(),{title:n(zr)},"title",ye))},Wr=(ye,gt)=>{var ii,ki;let li=(ki=(ii=e.store.callbacks)==null?void 0:ii.uiInfo)==null?void 0:ki.onUpcomingLiveViewStateChanged;if(!li)return;let Ti=!!gt,fi=Q(Q({},qn(n(Zi),{upcomingLiveScreen:gt},"upcomingLiveScreen",Ti)),ye);li(fi)};var Bs=X5();Et("blur",wa,xn);var io=fe(Bs);io.__mousemove=eo;var Kr=_(io);let aa=m(()=>s()==="ads"),bt=m(()=>n(ot)?gi:void 0);lt(_v(Kr,{startDoubleForwardActivationTimer:sn,stopDoubleForward:Ko,toggleFullscreen:br,hideContextMenu:xn,showHotKeyHelpers:er,showKeyMap:$r,get isAds(){return n(aa)},get fakePlayButtonHandler(){return n(bt)},get nextButtonActive(){return we()},get prevButtonActive(){return te()},children:(ye,gt)=>{var li=Y5(),Ti=fe(li);nl(Ti,{get hideCursor(){return n(Nr)},onClick:Jn,onContextMenu:wn,onMouseDown:ko,onMouseUp:to,onDblClick:Fr,get videoContainer(){return st()},set videoContainer(ki){st(ki)}});var fi=P(Ti,2);ka(fi,()=>"slot",!1,(ki,Tn)=>{Ae(ki,()=>({name:ol}))});var ii=P(fi,2);Ts(ii,Re,ki=>{var Tn=G5(),ln=fe(Tn);let Vi=m(()=>s()!=="thumb"||a()||No&&e.autoplay);el(ln,{get hidden(){return n(Vi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:wn,onClick:yn});var al=P(ln,2);{var la=ze=>{ug(ze,{})};V(al,ze=>{Z()&&ze(la)})}var da=P(al,2);lg(da,{});var ca=P(da,2);cg(ca,{get isVisible(){return I()}});var tr=P(ca,2);{var _s=ze=>{let $i=m(()=>{var fo;return(fo=e.live)==null?void 0:fo.startTime});Pc(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n($i)},onUpcomingLiveViewStateChanged:Wr,onContextMenu:wn,onClick:yn})};V(tr,ze=>{s()==="LiveWaitingStart"&&ze(_s)})}var ua=P(tr,2);{var yr=ze=>{tl(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:wn,onClick:yn})};V(ua,ze=>{s()==="LiveWaitingRecover"&&ze(yr)})}var ll=P(ua,2);{var bs=ze=>{tl(ze,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:wn,onClick:yn})};V(ll,ze=>{s()==="LiveWaitingRecord"&&ze(bs)})}var $s=P(ll,2);{var dl=ze=>{var $i=K5();let fo;var ma=_($i);Zd(ma,{get adsSlotId(){return Ht()},get adsParams(){return Gt()},get adsAutoplayParam(){return kt()},get duration(){return oi()},get adsExternalApi(){return e.adsExternalApi}}),g($i),D(dn=>fo=re($i,1,"ads-container svelte-nqua3g",null,fo,dn),[()=>({hidden:s()!=="ads"})]),b(ze,$i)};V($s,ze=>{e.showAds&&xt()&&ze(dl)})}var pa=P($s,2);{var pd=ze=>{let $i=m(()=>!Qe()&&e.showAutoplayNext&&C());mv(ze,{get title(){return Te()},get thumb(){return Me()},get isHide(){return n($i)},clickCloseIcon:()=>O(Bn,!0)})};V(pa,ze=>{n(Yn)&&Te()&&Me()&&ze(pd)})}var cl=P(pa,2);{var fd=ze=>{let $i=m(()=>!p());Rm(ze,{get title(){return e.title},get isHidden(){return n($i)},onVisibilityChanged:an,get ref(){return n(zr)},set ref(fo){O(zr,fo,!0)}})};V(cl,ze=>{n(Or)&&ze(fd)})}var ir=P(cl,2);{var vd=ze=>{let $i=m(()=>s()==="video"&&p());kc(ze,{get isShifted(){return n($i)}})};V(ir,ze=>{X()&&ze(vd)})}var ul=P(ir,2);{var pl=ze=>{var $i=q5(),fo=_($i);jd(fo,{get"aria-label"(){return qo}}),g($i),b(ze,$i)};V(ul,ze=>{ne()&&ze(pl)})}var fa=P(ul,2);{var $t=ze=>{Ac(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return He()}})};V(fa,ze=>{de()&&ze($t)})}var yt=P(fa,2);{var oo=ze=>{Xa(ze,{get shifted(){return p()},get captions(){return ge()},get position(){return ee()},get playerSize(){return z()}})};V(yt,ze=>{Xe().value!=="off"&&ze(oo)})}var Ao=P(yt,2);{var no=ze=>{var $i=Q5();$i.__contextmenu=wn,$i.__click=[W5,q,Ye,f,It,xn];var fo=_($i);Ja(fo,{}),g($i),b(ze,$i)};V(Ao,ze=>{a()&&ze(no)})}var bi=P(Ao,2);{var qi=ze=>{let $i=m(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),fo=m(()=>s()==="ads"),ma=m(()=>e.canRewindLive&&ke()!==0);Ic(ze,{get bottomHidden(){return n($i)},get bottomNoSmooth(){return H()},get showControls(){return p()},get isAds(){return n(fo)},get canRewindLive(){return n(ma)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ce()},get nextButtonActive(){return we()},get prevButtonActive(){return te()},get isOneVideoPlaylist(){return At()},customFullscreenSupported:Ki,toggleFullscreen:br,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(Mr)},set playerControlsWrapperRef(dn){O(Mr,dn,!0)},get playerControlsRef(){return n(Rn)},set playerControlsRef(dn){O(Rn,dn,!0)}})};V(bi,ze=>{xt()&&ze(qi)})}var Hs=P(bi,2);{var md=ze=>{var $i=j5(),fo=_($i);let ma=m(()=>{var dn;return(dn=n(Rn))==null?void 0:dn.clientHeight});Rc(fo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(ma)},returnFocus:()=>{var dn;return(dn=dt())==null?void 0:dn.focus()},get ref(){return n(hn)},set ref(dn){O(hn,dn,!0)}}),g($i),b(ze,$i)};V(Hs,ze=>{!de()&&s()!=="ads"&&ze(md)})}var Gc=P(Hs,2);let Np=m(()=>!n(_r));ec(Gc,{get isLive(){return he()},get isHidden(){return n(Np)},get isPlaying(){return Ue()},get position(){return ee()},get duration(){return ke()}});var va=P(Gc,2);Pm(va,{get data(){return _n}});var Yc=P(va,2);fv(Yc,{get supportLink(){return e.supportLink},returnFocus:()=>{var ze;return(ze=dt())==null?void 0:ze.focus()},get visible(){return q()},get playerContainerRef(){return n(Zi)},get position(){return Je()},get menuElementRef(){return n(je)},set menuElementRef(ze){O(je,ze,!0)}});var Fs=P(Yc,2);{var fl=ze=>{Oc(ze,{onClose:Gn,onSelectAutoQuality:()=>{Er("auto"),Gn()}})};V(Fs,ze=>{n(Lr)&&ze(fl)})}var Zc=P(Fs,2);{var Xc=ze=>{pg(ze,{})};V(Zc,ze=>{Ge()&&ze(Xc)})}var vl=P(Zc,2);{var Jc=ze=>{Ua(ze,{})};V(vl,ze=>{n(Vr)&&ze(Jc)})}var eu=P(vl,2);{var tu=ze=>{yv(ze,{})};V(eu,ze=>{ut()&&ze(tu)})}var Dp=P(eu,2);{var Bp=ze=>{nc(ze,{})};V(Dp,ze=>{tt()&&ze(Bp)})}b(ki,Tn)}),b(ye,li)},$$slots:{default:!0}}),ye=>dt(ye),()=>dt());var pi=P(Kr,2);lt(pi,ye=>O(Nn,ye),()=>n(Nn)),g(io),lt(io,ye=>O(Zi,ye),()=>n(Zi));var So=P(io,2);{var Cn=ye=>{var gt=Z5();b(ye,gt)};V(So,ye=>{Ft()&&ye(Cn)})}Et("mouseenter",io,Hr),Et("mouseleave",io,Vt),Et("click",io,hs,!0),Et("focusin",io,it,!0),b(t,Bs),U(),o()}ct(["mousemove","contextmenu","click"]);var sa=require("@vkontakte/videoplayer-core/es2015"),C_=require("@vkontakte/videoplayer-shared/es2015");var ew=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),tw=M("<div><!></div>"),iw={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;
|
|
358
|
+
*/pointer-events:none;}.notification.svelte-17g9o6z {padding:10px 16px;background-color:var(--black-alpha-40);border-radius:var(--notification-radius);}.text.svelte-17g9o6z {line-height:18px;font-size:14px;font-weight:500;}`};function pg(t,e){F(e,!1),W(t,F5);let{ui:{t:i}}=he();qo();var o=H5(),r=_(o),s=_(r),l=_(s,!0);g(s),g(r),g(o),D(d=>ve(l,d),[()=>i("preview_track_notification_text")],En),Qr(3,r,()=>vs,()=>({duration:340})),b(t,o),U()}var U5=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},z5=M("<div><!></div>"),W5=M('<div class="spherical-video-icon svelte-nqua3g"><!></div>'),K5=M("<div><!></div>"),q5=M('<div class="settings-menu svelte-nqua3g"><!></div>'),Q5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),j5=M("<!> <!> <!>",1),G5=M('<div class="blocked svelte-nqua3g"></div>'),Y5=M('<div class="player-wrapper svelte-nqua3g"><!> <div class="overlay-container"></div></div> <!>',1),Z5={hash:"svelte-nqua3g",code:".player-wrapper.svelte-nqua3g {position:absolute;width:100%;height:100%;}.blocked.svelte-nqua3g {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-nqua3g .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-nqua3g {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-nqua3g {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-nqua3g {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-nqua3g {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s;}"};function vg(t,e){F(e,!0),W(t,Z5);let[i,o]=De(),r=()=>S(hi,"$notificationsToShow$",i),s=()=>S(ci,"$playerPhase",i),l=()=>S(Co,"$isLoaderVisible",i),d=()=>S(Si,"$adPlaybackState",i),a=()=>S(ni,"$crashed",i),u=()=>S(uo,"$isInteractiveTime$",i),f=()=>S(yt,"$settingsMenuVisible",i),v=()=>S(Wi,"$isInteractiveExpectation$",i),p=()=>S(di,"$controlsVisible",i),x=()=>S(yo,"$touched",i),w=()=>S(hr,"$graphIsOpened$",i),y=()=>S(ht,"$isFullscreen",i),C=()=>S(gs,"$autoplayNextEnabled$",i),T=()=>S(Ut,"$postrollPassed",i),E=()=>S(jo,"$isEnded$",i),R=()=>S(Xn,"$cursorInside",i),A=()=>S(vn,"$isControlsAvailable",i),I=()=>S(Xo,"$doubleForwardOn$",i),N=()=>S(gr,"$fakeIsPlaying$",i),H=()=>S(On,"$bottomNoSmooth",i),B=()=>S(Zo,"$interactiveTimeIndicator",i),z=()=>S(Ui,"$playerSize",i),X=()=>S(zi,"$is3DVideo",i),ae=()=>S(Jo,"$doubleForwardAvailable$",i),Q=()=>S(et,"$contextMenuVisible$",i),ce=()=>S(mi,"$playbackState$",i),J=()=>S(po,"$hotKeyMapData",i),me=()=>S(Jt,"$scrubbingInProgress",i),se=()=>S(Ct,"$volumeChangingInProgress",i),le=()=>S(pn,"$chromecastConnected$",i),Pe=()=>S(qi,"$controlsTimeoutActive",i),ye=()=>S(gi,"$settingsMenuOpenedByKeyboard",i),ee=()=>S(Dr,"$contextMenuOpenedByKeyboard$",i),Be=()=>S(ii,"$contextMenuOpenedByHotKey$",i),pe=()=>S(ns,"$contextMenuButtonRef$",i),k=()=>S(Mi,"$contextMenuLastActiveElem$",i),Ge=()=>S(xi,"$isFullscreenOpenedByKeyboard",i),Me=()=>S(yi,"$language$",i),Y=()=>S(xn,"$previewTrackActive$",i),oe=()=>S(Go,"$icon3DVideoVisible",i),He=()=>S(At,"$chromecastDeviceName$",i),Xe=()=>S(Xt,"$currentSubtitle$",i),ge=()=>S(ft,"$currentSubtitleCaptions$",i),ie=()=>S(lo,"$position$",i),ke=()=>S(co,"$duration$",i),we=()=>S(K,"$isLive$",i),Fe=()=>S(Pt,"$isPlaying$",i),Je=()=>S(pr,"$contextMenuPosition$",i),Ye=()=>S(vr,"$previewTrackNotificationVisible$",i),qe=()=>S(Ki,"$showHotKeyMap",i),Ze=()=>S(ki,"$debugPanelVisible",i),Ht=()=>S(fn,"$userActionsDisabled$",i),st=h(e,"videoContainer",15),Ft=h(e,"adsSlotId",3,void 0),Gt=h(e,"adsParams",3,void 0),kt=h(e,"adsAutoplayParam",3,void 0),ti=h(e,"duration",3,void 0),qt=h(e,"logoTargetUrl",3,""),Ce=h(e,"showNextPrevButtons",3,!1),xe=h(e,"nextButtonActive",3,!1),te=h(e,"prevButtonActive",3,!1),Te=h(e,"endScreenVideoTitle",3,void 0),Ve=h(e,"endScreenVideoThumb",3,void 0),Vt=h(e,"isOneVideoPlaylist",3,!1),Re=h(e,"shadowRootContainer",3,void 0),dt=h(e,"outerContainerRef",3,void 0),It=h(e,"playerStarted",3,!1),Se=h(e,"fullScreenTarget",3,void 0),at=h(e,"showMiniTimer",3,!1),We=h(e,"showEndScreen",3,!0),pt=h(e,"keyboardControls",15),Yt=e.store.getLogger().createComponentLog("Root component"),yi=e.store.interfaceLanguage$,mi=e.store.state.playbackState$,Si=e.store.ads.playbackState,lo=e.store.state.positionWithScrubbing$,co=e.store.state.duration$,ci=e.store.playerPhase,ht=e.store.ui.isFullscreen,xi=e.store.ui.isFullscreenOpenedByKeyboard,di=e.store.ui.controlsVisible,yt=e.store.ui.settingsMenu.visible$,gi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Jt=e.store.ui.scrubbingInProgress,Ct=e.store.ui.volumeChangingInProgress,et=e.store.ui.contextMenu.visible$,ki=e.store.ui.debugPanelVisible,Co=e.store.state.isLoaderVisible,jo=e.store.state.isEnded$,pn=e.store.state.chromecastConnected$,At=e.store.state.chromecastDeviceName$,Ut=e.store.ads.postrollPassed,K=e.store.state.isLive$,Pt=e.store.state.isPlaying$,ni=e.store.state.crashed$,_t=e.store.webApi.annotationsApi,Mt=e.store.webApi.pictureInPictureApi,Xt=e.store.state.currentSubtitle$,ft=e.store.state.currentSubtitleCaptions$,Ui=e.store.ui.playerSize,zi=e.store.ui.is3DVideo,Go=e.store.ui.icon3DVideoVisible,To=e.store.state.isInteractive,uo=e.store.state.isInteractiveTime$,Wi=e.store.state.isInteractiveExpectation$,Mr=e.store.state.hasInteractiveBranches,yo=e.store.ui.touched,po=e.store.ui.modals.hotKeyMap.data,Ki=e.store.ui.modals.hotKeyMap.show,Yo=e.store.ui.overlayContainer$,Zo=e.store.ui.controls.interactiveTimeIndicator,ur=e.store.state.showInteractiveTimeIndicator,pr=e.store.ui.contextMenu.position$,fr=e.store.actions.internal.setQuality,ms=e.store.actions.internal.closeSettingsMenu,gs=e.store.ui.autoplayNextEnabled$,fn=e.store.ui.userActionsDisabled,vn=e.store.ui.isControlsAvailable,Yn=e.store.ui.videoTitleInfo,Xo=e.store.ui.doubleForwardOn$,Jo=e.store.ui.doubleForwardAvailable$,vr=e.store.ui.previewTrackNotificationVisible,mr=e.store.actions.internal.getVideoElement,Lr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:gr,notifications$:Xr,graphIsOpened$:hr}=So(),fo=j(void 0),_r=j(void 0),Vn=j(void 0),Rn=j(void 0),vo,br,en;po.set(m0());let{closeNotification:xt,notificationsToShow$:hi}=Xr,$r=m(()=>!!r().slow_video),Zn=()=>xt("slow_video"),Jr=m(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),tn=j(void 0),On=de(!1),Pi,qi=de(!1),on=de(),Xn=de(!1),mn=j(!1),gn=j(!1),Jn=j(!1),hn=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Nn=m(()=>u()&&!f()&&!(n(mn)||n(gn))&&!(n(Jn)&&!v())),Eo=!0,yr=m(()=>e.uiConfig.features.thumbTimer&&at()&&s()==="video"&&!p()&&!a()&&!To&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Vr=m(()=>s()==="video"&&!w()&&y()),Dn=j(!1),Bn=m(()=>(We()||e.showAutoplayNext&&C())&&!!Te()&&!!Ve()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!n(Dn)),Rr=m(()=>R()&&!(p()||n(Bn))&&!u()&&A()&&!I()),xr=j(!1),nt=m(()=>N()!==null),{toggle:pi}=gr,Ni=!1,Ji=null;Mt==null||Mt.setContext($d());let Ro=()=>{e.autoplay&&!To&&e.uiConfig.controls.showOnStartupAtAutoplay&&ui(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Ro});let nn=()=>{window.clearTimeout(vo),qi.set(!1)},Qi=()=>{window.clearTimeout(br),on.set(null)},ui=_e=>{nn(),qi.set(!0),vo=window.setTimeout(()=>qi.set(!1),_e);let mt=_e-100;Pi=window.setTimeout(()=>{H()&&On.set(!1)},mt>0?mt:_e)},eo=(_e,mt)=>{Qi(),on.set(mt),br=window.setTimeout(()=>on.set(null),_e)},rn=zi.subscribe(_e=>{Go.set(_e),_e&&(window.clearTimeout(en),en=window.setTimeout(()=>Go.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Hn=()=>wt(null,null,function*(){var mt,si,Ti,fi;let _e=Ys();if(_e){let ri=jd(),Ei=is();_e=ri===Ei||ri===Re()}if(_e){ui(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Mt==null?void 0:Mt.exit()}catch(ri){Yt({message:String(ri)})}}ht.set(_e),e.store.getAdmanWrapper().setFullscreen(_e),y()?(si=(mt=e.store.callbacks)==null?void 0:mt.onFullscreenEnter)==null||si.call(mt):(fi=(Ti=e.store.callbacks)==null?void 0:Ti.onFullscreenExit)==null||fi.call(Ti)}),es=_e=>{let{width:mt,height:si}=_e.target;Ui.set({width:mt,height:si})},ts=()=>{let{width:_e,height:mt}=n(fo).getBoundingClientRect();Ui.set({width:_e,height:mt})};Bt(()=>{var mt;return Ku(Hn),e.uiConfig.features.annotationsInside&&(_t==null||_t.init(n(fo))),Na(Mt)&&(Mt==null||Mt.assignPlayerContainer(n(fo)),Mt==null||Mt.setExternalEventHandlers({resize:es,leavepictureinpicture:ts})),e.interactiveContainer&&((mt=st().parentElement)==null||mt.insertBefore(e.interactiveContainer,st().nextSibling)),()=>{window.clearTimeout(vo),window.clearTimeout(Pi),window.clearTimeout(br),window.clearTimeout(en),rn(),Mt==null||Mt.dispose().catch(si=>{Yt({message:String(si)})}),qu(Hn)}});let is=()=>{let _e=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!dt()?n(fo):dt(),mt=_e.getRootNode(),si=mt instanceof ShadowRoot?mt.host:mt,Ti=Se()instanceof HTMLElement&&Se().contains(si);return e.uiConfig.allowChangingFullscreenTarget&&Se()&&Ti?Se():_e},_n=()=>{et.set(!1)},bn=()=>{ms(),_n()},wr=()=>wt(null,null,function*(){if(!Lr()){Yt({message:"fullscreen disabled"});return}_n(),Ys()?(yield Wu(document),Yt({message:"exit fullscreen"})):(Yt({message:"request fullscreen"}),yield zu(is()))}),$n=_e=>{w()||(_e.preventDefault(),et.set(!0),pr.set({left:_e.clientX,top:_e.clientY}))};function Or(){Xn.set(!0),To||ui(e.uiConfig.controls.hideTimeoutCursor)}function ot(_e){var fi,ri;let{relatedTarget:mt}=_e,Ti=!!(mt&&((fi=n(Vn))!=null&&fi.contains(mt)))&&((ri=pt())==null?void 0:ri.isFocused());!To&&!Ti&&(On.set(!0),ui(e.uiConfig.controls.hideTimeoutCursor))}function Rt(){Xn.set(!1),O(gn,!1),O(mn,!1),Ni=!1,e.store.actions.internal.releaseCamera(),ui(e.uiConfig.controls.hideTimeout),I()&&go()}function Ci(_e){return _e?_e.offsetTop+Ci(_e.offsetParent):0}function xo(_e){return _e?_e.offsetLeft+xo(_e.offsetParent):0}function wo(_e){if(B()&&ur){let mt=_e.currentTarget,si=Ci(mt),Ti=xo(mt),fi=_e.pageX-Ti,ri=_e.pageY-si,{left:Ei,bottom:Sn,right:Un}=B(),Li=Un-Ei;return fi>=Ei-Li&&ri<=Sn+Li}}function mo(_e){if(n(fo)){let mt=Ci(_e.currentTarget),si=z().height,Ti=_e.pageY-mt;if(wo(_e)){O(gn,!1);return}Ti<40?O(gn,!0):Ti>si-40?O(mn,!0):(O(gn,!1),f()||O(mn,!1))}}function to(_e){mo(_e),!n(Nn)&&!I()&&ui(e.uiConfig.controls.hideTimeoutCursor),X()&&Ni&&Ji&&e.store.actions.internal.moveCameraFocusPX(Ji.clientX-_e.clientX,Ji.clientY-_e.clientY,_e.timeStamp-Ji.timeStamp),Ji=_e}let Di=null,yn=()=>{Di=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),nn()},e.uiConfig.doubleForwardActivationTime)},go=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Di&&clearTimeout(Di),Di=null},Oo=_e=>{_e.preventDefault(),_e.button===0&&(Ni=!0,e.store.actions.internal.holdCamera(),ae()&&yn()),!Ni&&ui(e.uiConfig.controls.hideTimeoutCursor)},No=_e=>{_e.preventDefault(),_e.button===0&&(Ji=_e,Ni=!1,e.store.actions.internal.releaseCamera()),!I()&&ui(e.uiConfig.controls.hideTimeoutCursor)},er=_e=>{_e.preventDefault(),Eo&&(Yt({message:"double click on video"}),wr(),ui(e.uiConfig.controls.hideTimeoutCursor))},Fn=_e=>{var mt;if(_e.preventDefault(),I()){go();return}if(Di&&go(),Q()||f()){bn();return}if(!(E()&&!Mr)){if(n(nt))return pi();if((mt=pt())==null||mt.focus(),!It()){e.firstStart(),ui(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ce()!==fg.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),ui(e.uiConfig.controls.hideTimeoutCursor)}},Nr=_e=>{bn(),yo.set(!0),ui(e.uiConfig.controls.hideTimeout),_e&&eo(e.uiConfig.controls.hideHotKeyHelpers,_e)},Sr=()=>{var _e,mt;bn(),(_e=e.store.callbacks)!=null&&_e.onOpenHotKeyMap?(mt=e.store.callbacks)==null||mt.onOpenHotKeyMap(J()):Ki.update(si=>!si)},os=()=>{yo.set(!0)},Dr=e.store.ui.contextMenu.openedByBtnKeyboard$,ns=e.store.ui.contextMenu.btnRef$,Ke=j(void 0),ii=e.store.ui.contextMenu.openedByHotKey$,Mi=e.store.ui.contextMenu.lastActiveElem$,xn=e.store.ui.previewTrackActive;Qe(()=>{Yo.set(n(tn))}),Qe(()=>{O(Jn,n(hn)&&ce()!==fg.PlaybackState.PLAYING,!0),n(hn)||Lt(()=>O(hn,!0))}),Qe(()=>{var mt,si;let _e=(n(Jn)||E()||f()||me()||se()||le()||Pe())&&!n(Nn)&&(s()==="video"||s()==="ads")&&!a()&&A();di.set(_e),!_e&&!Pe()&&e.uiConfig.returnFocusOnControlsHide&&((mt=n(Vn))!=null&&mt.contains(Xu()))&&((si=pt())==null||si.focus())}),Qe(()=>{!me()&&n(xr)&&!u()&&ui(e.uiConfig.controls.hideTimeoutCursor),Lt(()=>O(xr,me(),!0))}),Qe(()=>{n(Rn),f(),ye(),Lt(()=>tc(n(Rn),f(),ye()))}),Qe(()=>{n(Ke),Q(),ee(),Be(),Lt(()=>{let _e=ee()||Be();tc(n(Ke),Q(),_e)})}),Qe(()=>{let _e=pe();_e&&(Q(),Lt(()=>zl(_e,Q(),Dr)))}),Qe(()=>{let _e=k();_e&&(Q(),Lt(()=>$0(_e,Q(),ii)))}),Qe(()=>{var _e;!Ge()&&y()&&(Lt(()=>xi.set(!1)),(_e=pt())==null||_e.focus())}),Qe(()=>{w()&&bn()});let sn=Z("video360"),Br=j(void 0),an=_e=>{Yn.set(jn(mr(),{title:n(Br)},"title",_e))},Do=(_e,mt)=>{var ri,Ei;let si=(Ei=(ri=e.store.callbacks)==null?void 0:ri.uiInfo)==null?void 0:Ei.onUpcomingLiveViewStateChanged;if(!si)return;let Ti=!!mt,fi=q(q({},jn(n(fo),{upcomingLiveScreen:mt},"upcomingLiveScreen",Ti)),_e);si(fi)};var Hr=Y5();St("blur",xa,bn);var wn=fe(Hr);wn.__mousemove=to;var Ns=_(wn);let ra=m(()=>s()==="ads"),vt=m(()=>n(nt)?pi:void 0);lt(_v(Ns,{startDoubleForwardActivationTimer:yn,stopDoubleForward:go,toggleFullscreen:wr,hideContextMenu:bn,showHotKeyHelpers:Nr,showKeyMap:Sr,get isAds(){return n(ra)},get fakePlayButtonHandler(){return n(vt)},get nextButtonActive(){return xe()},get prevButtonActive(){return te()},children:(_e,mt)=>{var si=j5(),Ti=fe(si);ol(Ti,{get hideCursor(){return n(Rr)},onClick:Fn,onContextMenu:$n,onMouseDown:Oo,onMouseUp:No,onDblClick:er,get videoContainer(){return st()},set videoContainer(Ei){st(Ei)}});var fi=P(Ti,2);Ia(fi,()=>"slot",!1,(Ei,Sn)=>{Ae(Ei,()=>({name:il}))});var ri=P(fi,2);Ss(ri,Me,Ei=>{var Sn=Q5(),Un=fe(Sn);let Li=m(()=>s()!=="thumb"||a()||To&&e.autoplay);Ja(Un,{get hidden(){return n(Li)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:$n,onClick:_n});var sa=P(Un,2);{var sl=Ue=>{ug(Ue,{})};V(sa,Ue=>{Y()&&Ue(sl)})}var Cr=P(sa,2);lg(Cr,{});var al=P(Cr,2);cg(al,{get isVisible(){return I()}});var aa=P(al,2);{var Cn=Ue=>{let bi=m(()=>{var ko;return(ko=e.live)==null?void 0:ko.startTime});Ac(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(bi)},onUpcomingLiveViewStateChanged:Do,onContextMenu:$n,onClick:_n})};V(aa,Ue=>{s()==="LiveWaitingStart"&&Ue(Cn)})}var la=P(aa,2);{var ll=Ue=>{el(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:$n,onClick:_n})};V(la,Ue=>{s()==="LiveWaitingRecover"&&Ue(ll)})}var dl=P(la,2);{var hs=Ue=>{el(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:$n,onClick:_n})};V(dl,Ue=>{s()==="LiveWaitingRecord"&&Ue(hs)})}var _s=P(dl,2);{var cl=Ue=>{var bi=z5();let ko;var va=_(bi);Yd(va,{get adsSlotId(){return Ft()},get adsParams(){return Gt()},get adsAutoplayParam(){return kt()},get duration(){return ti()},get adsExternalApi(){return e.adsExternalApi}}),g(bi),D(Tn=>ko=re(bi,1,"ads-container svelte-nqua3g",null,ko,Tn),[()=>({hidden:s()!=="ads"})]),b(Ue,bi)};V(_s,Ue=>{e.showAds&&It()&&Ue(cl)})}var da=P(_s,2);{var ud=Ue=>{let bi=m(()=>!We()&&e.showAutoplayNext&&C());mv(Ue,{get title(){return Te()},get thumb(){return Ve()},get isHide(){return n(bi)},clickCloseIcon:()=>O(Dn,!0)})};V(da,Ue=>{n(Bn)&&Te()&&Ve()&&Ue(ud)})}var Tr=P(da,2);{var pd=Ue=>{let bi=m(()=>!p());Rm(Ue,{get title(){return e.title},get isHidden(){return n(bi)},onVisibilityChanged:an,get ref(){return n(Br)},set ref(ko){O(Br,ko,!0)}})};V(Tr,Ue=>{n(Vr)&&Ue(pd)})}var ca=P(Tr,2);{var fd=Ue=>{let bi=m(()=>s()==="video"&&p());Ic(Ue,{get isShifted(){return n(bi)}})};V(ca,Ue=>{X()&&Ue(fd)})}var ul=P(ca,2);{var pl=Ue=>{var bi=W5(),ko=_(bi);Qd(ko,{get"aria-label"(){return sn}}),g(bi),b(Ue,bi)};V(ul,Ue=>{oe()&&Ue(pl)})}var ua=P(ul,2);{var bt=Ue=>{kc(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return He()}})};V(ua,Ue=>{le()&&Ue(bt)})}var $t=P(ua,2);{var io=Ue=>{Za(Ue,{get shifted(){return p()},get captions(){return ge()},get position(){return ie()},get playerSize(){return z()}})};V($t,Ue=>{Xe().value!=="off"&&Ue(io)})}var Io=P($t,2);{var oo=Ue=>{var bi=K5();bi.__contextmenu=$n,bi.__click=[U5,Q,et,f,yt,bn];var ko=_(bi);Xa(ko,{}),g(bi),b(Ue,bi)};V(Io,Ue=>{a()&&Ue(oo)})}var _i=P(Io,2);{var ji=Ue=>{let bi=m(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),ko=m(()=>s()==="ads"),va=m(()=>e.canRewindLive&&ke()!==0);Ec(Ue,{get bottomHidden(){return n(bi)},get bottomNoSmooth(){return H()},get showControls(){return p()},get isAds(){return n(ko)},get canRewindLive(){return n(va)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ce()},get nextButtonActive(){return xe()},get prevButtonActive(){return te()},get isOneVideoPlaylist(){return Vt()},customFullscreenSupported:Eo,toggleFullscreen:wr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(_r)},set playerControlsWrapperRef(Tn){O(_r,Tn,!0)},get playerControlsRef(){return n(Vn)},set playerControlsRef(Tn){O(Vn,Tn,!0)}})};V(_i,Ue=>{It()&&Ue(ji)})}var Ds=P(_i,2);{var vd=Ue=>{var bi=q5(),ko=_(bi);let va=m(()=>{var Tn;return(Tn=n(Vn))==null?void 0:Tn.clientHeight});Vc(ko,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(va)},returnFocus:()=>{var Tn;return(Tn=pt())==null?void 0:Tn.focus()},get ref(){return n(Rn)},set ref(Tn){O(Rn,Tn,!0)}}),g(bi),b(Ue,bi)};V(Ds,Ue=>{!le()&&s()!=="ads"&&Ue(vd)})}var pa=P(Ds,2);let Op=m(()=>!n(yr));Jd(pa,{get isLive(){return we()},get isHidden(){return n(Op)},get isPlaying(){return Fe()},get position(){return ie()},get duration(){return ke()}});var Bs=P(pa,2);Pm(Bs,{get data(){return on}});var fa=P(Bs,2);fv(fa,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ue;return(Ue=pt())==null?void 0:Ue.focus()},get visible(){return Q()},get playerContainerRef(){return n(fo)},get position(){return Je()},get menuElementRef(){return n(Ke)},set menuElementRef(Ue){O(Ke,Ue,!0)}});var jc=P(fa,2);{var Gc=Ue=>{Rc(Ue,{onClose:Zn,onSelectAutoQuality:()=>{fr("auto"),Zn()}})};V(jc,Ue=>{n($r)&&Ue(Gc)})}var fl=P(jc,2);{var Yc=Ue=>{pg(Ue,{})};V(fl,Ue=>{Ye()&&Ue(Yc)})}var Zc=P(fl,2);{var Xc=Ue=>{Fa(Ue,{})};V(Zc,Ue=>{n(Jr)&&Ue(Xc)})}var Jc=P(Zc,2);{var Np=Ue=>{yv(Ue,{})};V(Jc,Ue=>{qe()&&Ue(Np)})}var Dp=P(Jc,2);{var Bp=Ue=>{oc(Ue,{})};V(Dp,Ue=>{Ze()&&Ue(Bp)})}b(Ei,Sn)}),b(_e,si)},$$slots:{default:!0}}),_e=>pt(_e),()=>pt());var oi=P(Ns,2);lt(oi,_e=>O(tn,_e),()=>n(tn)),g(wn),lt(wn,_e=>O(fo,_e),()=>n(fo));var Bo=P(wn,2);{var tr=_e=>{var mt=G5();b(_e,mt)};V(Bo,_e=>{Ht()&&_e(tr)})}St("mouseenter",wn,Or),St("mouseleave",wn,Rt),St("click",wn,os,!0),St("focusin",wn,ot,!0),b(t,Hr),U(),o()}ut(["mousemove","contextmenu","click"]);var na=require("@vkontakte/videoplayer-core/es2015"),C_=require("@vkontakte/videoplayer-shared/es2015");var X5=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),J5=M("<div><!></div>"),ew={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;
|
|
359
359
|
animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
|
|
360
360
|
.triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
|
|
361
361
|
.triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
|
|
@@ -371,7 +371,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
|
|
|
371
371
|
100% {
|
|
372
372
|
opacity: 0;
|
|
373
373
|
}
|
|
374
|
-
}.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 yp(t,e){F(e,!0),W(t,iw);let i=h(e,"seekStep",3,0),o=j(!1),r=0,s=0,l=j(di(i())),d=v=>{v.stopPropagation(),s+=1,O(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(O(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,O(o,!1)},300)};pn(()=>{window.clearTimeout(r)});var a=tw();a.__click=d;var u=_(a);{var f=v=>{var p=ew(),x=fe(p),w=P(x,2),y=_(w),C=_(y),T=P(C,2),E=P(T,2);g(y);var R=P(y,2),A=_(R,!0);g(R),g(w),D(I=>{var N,H,B,z;re(x,1,`semicircle ${(N=e.side)!=null?N:""}`,"svelte-nhq2ld"),re(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),re(T,1,`triangle ${(B=e.side)!=null?B:""}`,"svelte-nhq2ld"),re(E,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),me(A,I)},[()=>Y("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(v,p)};V(u,v=>{n(o)&&v(f)})}g(a),D(()=>{var v;return re(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),U()}ct(["click"]);var ow=(t,e,i)=>{e(!1),i()},nw=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),rw={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 mg(t,e){F(e,!0),W(t,rw);let[i,o]=Be(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=_e(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),x()};Bt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=Fe(),T=fe(C);{var E=R=>{var A=nw(),I=P(fe(A),2),N=_(I),H=_(N),B=_(H,!0);g(H);var z=P(H,2);Ps(z,{onClick:y}),g(N);var X=P(N,2);X.__click=[ow,u,v];var le=_(X),q=_(le),ce=_(q);let J;var ve=P(ce,2);{var se=ie=>{rc(ie,{get isRunning(){return s()},onTimerEnded:w})};V(ve,ie=>{r()&&ie(se)})}g(q),g(le);var de=P(le,2),Le=_(de),Se=_(Le,!0);g(Le),g(de),g(X),g(I),D((ie,Ne)=>{me(B,ie),et(q,`background-image: url('${e.thumb}')`),J=re(ce,1,"thumb-overlay svelte-1qdxi6t",null,J,Ne),me(Se,e.title)},[()=>r()?Y("end_screen_next_video"):Y("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(R,A)};V(T,R=>{e.isHide||R(E)})}b(t,C),U(),o()}ct(["click"]);var $_=require("@vkontakte/videoplayer-core/es2015");var y_=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Bt(()=>{$_.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),pn(()=>{i==null||i(),clearTimeout(o)})};var x_=require("@vkontakte/videoplayer-core/es2015");var xp=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 w_=require("@vkontakte/videoplayer-core/es2015"),S_=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>w_.clientChecker.device.isIOS&&$e(l)===x_.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=x=>{if(v(),!f()||!x)return;let w=u();if(!w)return;let y=new xp(w),C=$e(d),T=$e(s),E=$e(r);for(let I of C)T.some(H=>H.value===I.id)&&y.attach(I,E.value===I.id);let R=d.subscribe(I=>{for(let N of I)y.updateSrc(N)}),A=()=>{let I=y.getCurrentShowingId();o($e(s).find(N=>N.value===I))};w.textTracks.addEventListener("change",A),a=()=>{R(),y.detachAll(),w.textTracks.removeEventListener("change",A)}};Bt(()=>i.subscribe(p)),pn(v)};var sw=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},aw=M("<!> <!>",1),lw=M("<div><!></div>"),dw=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),cw=M("<div><!></div>"),uw=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),pw=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),fw=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),vw={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 gg(t,e){var Nr,Zn;F(e,!0),W(t,vw);let[i,o]=Be(),r=()=>S(De,"$playerPhase",i),s=()=>S(wi,"$isLoaderVisible",i),l=()=>S(Te,"$adPlaybackState",i),d=()=>S(Jt,"$crashed",i),a=()=>S(gs,"$notificationsToShow$",i),u=()=>S(te,"$playbackState$",i),f=()=>S(qt,"$graphIsOpened$",i),v=()=>S(nt,"$interactiveHideMobileControls",i),p=()=>S(co,"$isEnded$",i),x=()=>S(mt,"$isInteractiveExpectation$",i),w=()=>S(xt,"$controlsVisible",i),y=()=>S(ft,"$touched",i),C=()=>S(zi,"$autoplayNextEnabled$",i),T=()=>S(ht,"$postrollPassed",i),E=()=>S(jn,"$bottomNoSmooth",i),R=()=>S(Si,"$videoSize",i),A=()=>S(Pt,"$playerSize",i),I=()=>S(pt,"$isFullscreen",i),N=()=>S(Me,"$position$",i),H=()=>S(At,"$duration$",i),B=()=>S(on,"$loadedMetadata",i),z=()=>S(Qe,"$settingsMenuVisible",i),X=()=>S(ni,"$scrubbingInProgress",i),le=()=>S(ai,"$volumeChangingInProgress",i),q=()=>S(ho,"$chromecastConnected$",i),ce=()=>S(xe,"$isControlsAvailable",i),J=()=>S(ri,"$isInteractiveTime$",i),ve=()=>S(It,"$isActiveLive",i),se=()=>S(dt,"$settingsMenuOpenedByKeyboard",i),de=()=>S(we,"$language$",i),Le=()=>S(Zt,"$disabledControls$",i),Se=()=>S(Ut,"$is3DVideo",i),ie=()=>S(K,"$icon3DVideoVisible",i),Ne=()=>S(ui,"$chromecastDeviceName$",i),pe=()=>S(To,"$currentSubtitle$",i),k=()=>S(tn,"$currentSubtitleCaptions$",i),qe=()=>S(vn,"$realDuration$",i),Re=()=>S(Mi,"$isLive$",i),Z=()=>S(Xt,"$isPlaying$",i),ne=()=>S(mi,"$debugPanelVisible",i),He=h(e,"videoContainer",15),Xe=h(e,"adsSlotId",3,void 0),ge=h(e,"adsParams",3,void 0),ee=h(e,"adsAutoplayParam",3,void 0),ke=h(e,"duration",3,void 0),he=h(e,"logoTargetUrl",3,""),Ue=h(e,"showNextPrevButtons",3,!1),Je=h(e,"nextButtonActive",3,!1),Ge=h(e,"prevButtonActive",3,!1),ut=h(e,"endScreenVideoTitle",3,void 0),tt=h(e,"endScreenVideoThumb",3,void 0),Ft=h(e,"isOneVideoPlaylist",3,!1),st=h(e,"showMiniTimer",3,!1),Ht=h(e,"fullScreenTarget",3,void 0),Gt=h(e,"playerStarted",3,!1),kt=h(e,"showEndScreen",3,!0),{notifications$:oi,graphIsOpened$:qt}=Co(),Ce=e.store.getLogger().createComponentLog("Root component"),we=e.store.interfaceLanguage$,te=e.store.state.playbackState$,Te=e.store.ads.playbackState,Me=e.store.state.positionWithScrubbing$,At=e.store.state.duration$,De=e.store.playerPhase,pt=e.store.ui.isFullscreen,xt=e.store.ui.controlsVisible,xe=e.store.ui.isControlsAvailable,nt=e.store.ui.interactiveHideMobileControls,Qe=e.store.ui.settingsMenu.visible$,dt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ni=e.store.ui.scrubbingInProgress,ai=e.store.ui.volumeChangingInProgress,mi=e.store.ui.debugPanelVisible,wi=e.store.state.isLoaderVisible,co=e.store.state.isEnded$,ho=e.store.state.chromecastConnected$,ui=e.store.state.chromecastDeviceName$,ht=e.store.ads.postrollPassed,Mi=e.store.state.isLive$,Xt=e.store.state.isPlaying$,It=e.store.state.isActiveLive$,si=e.store.state.isRewindableLive$,Jt=e.store.state.crashed$,Tt=e.store.webApi.annotationsApi,Ye=e.store.webApi.pictureInPictureApi,Si=e.store.state.videoSize$,To=e.store.state.currentSubtitle$,tn=e.store.state.currentSubtitleCaptions$,vn=e.store.state.duration$,Pt=e.store.ui.playerSize,Ut=e.store.ui.is3DVideo,K=e.store.ui.icon3DVideoVisible,Ot=e.store.state.isInteractive,ri=e.store.state.isInteractiveTime$,mt=e.store.state.isInteractiveExpectation$,Mt=e.store.state.hasInteractiveBranches,Zt=e.store.ui.controls.disabledControls$,ft=e.store.ui.touched,Ni=e.store.ui.overlayContainer$,zi=e.store.ui.autoplayNextEnabled$,on=e.store.state.loadedMetadata$,No=e.store.actions.internal.closeSettingsMenu,uo=(Nr=e.store.callbacks)==null?void 0:Nr.onDisabledPlayPrevChapterClick,Wi=(Zn=e.store.callbacks)==null?void 0:Zn.onDisabledSeekToInteractiveClick,pr=e.store.actions.internal.setQuality,_o=j(void 0),bo=j(void 0),Di=j(void 0),mn=j(void 0),Do,fr,vr=m(()=>(r()==="video"&&s()||r()==="ads"&&l()==="inactive")&&!d()),Er=j(void 0),{closeNotification:os,notificationsToShow$:gs}=oi,ns=m(()=>!!a().slow_video),Eo=()=>os("slow_video"),jn=ae(!1),Bo,gn=j(!1),Vn=m(()=>u()!==sa.PlaybackState.PLAYING),mr=j(!1),Ir=m(()=>f()||v()||!n(gn)&&(p()&&!!Mt||n(Vn)&&x())),kr=j(!0),Ar=m(()=>e.uiConfig.features.thumbTimer&&st()&&r()==="video"&&!w()&&!d()&&!Ot&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Pr=j(!1),Zi=m(()=>(kt()||e.showAutoplayNext&&C())&&!!ut()&&!!tt()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!n(Pr)),Mr=j(!1);Ye==null||Ye.setContext(yd());let Rn=ot=>{ot&&!Ot&&$o(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Rn});let hn=()=>{clearTimeout(Do),O(gn,!1),v()&&nt.set(!1)},$o=ot=>{hn(),O(gn,!0),Do=setTimeout(()=>O(gn,!1),ot);let gi=ot-100;Bo=setTimeout(()=>{E()&&jn.set(!1)},gi>0?gi:ot)},gr=Ut.subscribe(ot=>{K.set(ot),ot&&(clearTimeout(fr),fr=setTimeout(()=>K.set(!1),e.uiConfig.controls.hide360IconTimeout))}),On=(...gi)=>wt(null,[...gi],function*(ot=Xs()){var Bi,Xi,zo,rn,po,Pi;if(ot&&!sa.clientChecker.device.isIOS){let Ji=Gd(),xo=Nn(),$n=sa.clientChecker.browser.isSamsungBrowser&&Ji===e.shadowRootContainer;ot=Ji===xo||$n}if(ot){$o(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Ye==null?void 0:Ye.exit()}catch(Ji){Ce({message:String(Ji)})}try{let Ji=(Bi=R())!=null&&Bi.width&&((Xi=R())!=null&&Xi.height)?R():A();yield v0(Ji)}catch(Ji){Ce({message:String(Ji)})}}pt.set(ot),e.store.getAdmanWrapper().setFullscreen(ot),I()?(rn=(zo=e.store.callbacks)==null?void 0:zo.onFullscreenEnter)==null||rn.call(zo):(Pi=(po=e.store.callbacks)==null?void 0:po.onFullscreenExit)==null||Pi.call(po)}),_t=ot=>{let gi=ot,{width:Bi,height:Xi}=gi.target;Pt.set({width:Bi,height:Xi})},vi=()=>{let{width:ot,height:gi}=n(_o).getBoundingClientRect();Pt.set({width:ot,height:gi})};Bt(()=>{var ot;return Qu(On),e.uiConfig.features.annotationsInside&&(Tt==null||Tt.init(n(_o))),Da(Ye)&&(Ye==null||Ye.assignPlayerContainer(n(_o)),Ye==null||Ye.setExternalEventHandlers({resize:_t,leavepictureinpicture:vi})),O(kr,!sa.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((ot=He().parentElement)==null||ot.insertBefore(e.interactiveContainer,He().nextSibling)),()=>{clearTimeout(Do),clearTimeout(Bo),clearTimeout(fr),gr(),Ye==null||Ye.dispose().catch(gi=>{Ce({message:String(gi)})}),ju(On)}});let Lr=j(!0),Gn=j(!0),Vr=ot=>{let gi=N()+(ot==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;gi<0?(O(Lr,!1),gi=0):gi>=H()&&(O(Gn,!1),gi=H()),O(mr,!0),e.seekTime(gi)},Nn=()=>sa.clientChecker.device.isIOS?n(_o):!e.uiConfig.allowChangingFullscreenTarget||!Ht()?e.outerContainerRef:Ht().contains(e.outerContainerRef)?Ht():e.outerContainerRef,Dn=()=>wt(null,null,function*(){try{if(Xs())yield qu(document),Ce({message:"exit fullscreen"});else{if(Ce({message:"request fullscreen"}),sa.clientChecker.device.isIOS&&!B())return;yield Ku(Nn())}}catch(ot){Ce({message:String(ot)})}}),Ho=()=>{No()},Fo=ot=>{if(ot.preventDefault(),z()){Ho();return}if(!Gt()){e.firstStart(),$o(e.uiConfig.controls.hideTimeoutCursor);return}O(mr,!1),w()?hn():$o(e.uiConfig.controls.hideTimeoutMobile)},_n=()=>{ft.set(!0)},yo=()=>{Ot||(jn.set(!0),$o(e.uiConfig.controls.hideTimeoutCursor))},Uo=ot=>{uo&&(uo(ot),$o(e.uiConfig.controls.hideTimeoutMobile))},nn=ot=>{Wi&&(Wi(ot),$o(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{Ni.set(n(Er))}),We(()=>{xt.set((n(Vn)||z()||X()||le()||q()||!n(Zi)&&(p()||n(gn)&&!n(mr)))&&!n(Ir)&&r()==="video"&&!d()&&ce())}),We(()=>{!X()&&n(Mr)&&!J()&&$o(e.uiConfig.controls.hideTimeoutMobile),O(Mr,X(),!0)}),We(()=>{O(Lr,N()>0),O(Gn,!ve()&&N()<H(),!0)}),We(()=>{ic(n(mn),z(),se(),!0)});let hr=Y("aria_label_video_player"),Rr=Y("video360");y_({fullScreenChangeHandler:On,getFullscreenTarget:Nn}),S_({store:e.store,getFullscreenTarget:Nn});let bn=(ot,gi)=>{var rn,po;let Bi=(po=(rn=e.store.callbacks)==null?void 0:rn.uiInfo)==null?void 0:po.onUpcomingLiveViewStateChanged;if(!Bi)return;let Xi=!!gi,zo=Q(Q({},qn(n(_o),{upcomingLiveScreen:gi},"upcomingLiveScreen",Xi)),ot);Bi(zo)};var Ki=fw();Et("blur",wa,Ho);var _r=_(Ki);nl(_r,{onClick:Fo,get videoContainer(){return He()},set videoContainer(ot){He(ot)}});var Or=P(_r,2);ka(Or,()=>"slot",!1,(ot,gi)=>{Ae(ot,()=>({name:ol}))});var Bn=P(Or,2);Ts(Bn,de,ot=>{var gi=pw(),Bi=fe(gi);let Xi=m(()=>r()!=="thumb"||d()||Ot&&e.autoplay);el(Bi,{get hidden(){return n(Xi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var zo=P(Bi,2);{var rn=je=>{var ti=aw(),_i=fe(ti);{var Sn=an=>{let Wr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);yp(an,{side:"left",get seekStep(){return n(Wr)},handleSingleFirstClick:Fo,handleSecondClick:()=>Vr("backward")})};V(_i,an=>{n(Lr)&&an(Sn)})}var qo=P(_i,2);{var zr=an=>{let Wr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);yp(an,{side:"right",get seekStep(){return n(Wr)},handleSingleFirstClick:Fo,handleSecondClick:()=>Vr("forward")})};V(qo,an=>{n(Gn)&&an(zr)})}b(je,ti)};V(zo,je=>{e.canRewindLive&&si&&!Le().has("TIMELINE")&&je(rn)})}var po=P(zo,2);{var Pi=je=>{let ti=m(()=>{var _i;return(_i=e.live)==null?void 0:_i.startTime});Pc(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(ti)},onUpcomingLiveViewStateChanged:bn})};V(po,je=>{r()==="LiveWaitingStart"&&je(Pi)})}var Ji=P(po,2);{var xo=je=>{tl(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Ji,je=>{r()==="LiveWaitingRecover"&&je(xo)})}var $n=P(Ji,2);{var Xn=je=>{tl(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V($n,je=>{r()==="LiveWaitingRecord"&&je(Xn)})}var Dr=P($n,2);{var Br=je=>{var ti=lw();let _i;var Sn=_(ti);Zd(Sn,{get adsSlotId(){return Xe()},get adsParams(){return ge()},get adsAutoplayParam(){return ee()},get duration(){return ke()},get adsExternalApi(){return e.adsExternalApi}}),g(ti),D(qo=>_i=re(ti,1,"ads-container svelte-7yl31d",null,_i,qo),[()=>({hidden:r()!=="ads"})]),b(je,ti)};V(Dr,je=>{e.showAds&&Gt()&&je(Br)})}var yn=P(Dr,2);{var xn=je=>{let ti=m(()=>!kt()&&e.showAutoplayNext&&C());mg(je,{get title(){return ut()},get thumb(){return tt()},get isHide(){return n(ti)},clickCloseIcon:()=>O(Pr,!0)})};V(yn,je=>{n(Zi)&&ut()&&tt()&&je(xn)})}var br=P(yn,2);{var wn=je=>{kc(je,{})};V(br,je=>{Se()&&je(wn)})}var Hr=P(br,2);{var it=je=>{var ti=dw(),_i=_(ti);jd(_i,{get"aria-label"(){return Rr}}),g(ti),b(je,ti)};V(Hr,je=>{ie()&&je(it)})}var Vt=P(Hr,2);{var Ci=je=>{Ac(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};V(Vt,je=>{q()&&je(Ci)})}var wo=P(Vt,2);{var Wo=je=>{Xa(je,{get shifted(){return w()},get captions(){return k()},get position(){return N()},get playerSize(){return A()},isMobile:!0})};V(wo,je=>{pe().value!=="off"&&je(Wo)})}var Io=P(wo,2);{var eo=je=>{var ti=cw();ti.__click=[sw,z,Qe,Ho];var _i=_(ti);Ja(_i,{}),g(ti),b(je,ti)};V(Io,je=>{d()&&je(eo)})}var Li=P(Io,2);{var sn=je=>{let ti=m(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),_i=m(()=>r()==="ads"),Sn=m(()=>e.canRewindLive&&qe()!==0);Ic(je,{get bottomHidden(){return n(ti)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return n(_i)},get canRewindLive(){return n(Sn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return he()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ue()},get nextButtonActive(){return Je()},get prevButtonActive(){return Ge()},get isOneVideoPlaylist(){return Ft()},get customFullscreenSupported(){return n(kr)},get endScreenShown(){return n(Zi)},toggleFullscreen:Dn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Uo,onDisabledSeekToInteractiveClick:nn,get playerControlsWrapperRef(){return n(bo)},set playerControlsWrapperRef(qo){O(bo,qo,!0)},get playerControlsRef(){return n(Di)},set playerControlsRef(qo){O(Di,qo,!0)}})};V(Li,je=>{Gt()&&je(sn)})}var Ko=P(Li,2);{var ko=je=>{var ti=uw(),_i=_(ti);Rc(_i,{get supportLink(){return e.supportLink},get returnFocus(){return C_.noop},get ref(){return n(mn)},set ref(Sn){O(mn,Sn,!0)}}),g(ti),b(je,ti)};V(Ko,je=>{z()&&je(ko)})}var to=P(Ko,2);let Fr=m(()=>!n(Ar));ec(to,{get isLive(){return Re()},get isHidden(){return n(Fr)},get isPlaying(){return Z()},get position(){return N()},get duration(){return H()}});var Jn=P(to,2);{var er=je=>{Ua(je,{})};V(Jn,je=>{n(vr)&&je(er)})}var $r=P(Jn,2);{var hs=je=>{nc(je,{})};V($r,je=>{ne()&&je(hs)})}var Ur=P($r,2);{var rs=je=>{Oc(je,{onClose:Eo,onSelectAutoQuality:()=>{pr("auto"),Eo()}})};V(Ur,je=>{n(ns)&&je(rs)})}b(ot,gi)});var Yn=P(Bn,2);lt(Yn,ot=>O(Er,ot),()=>n(Er)),g(Ki),lt(Ki,ot=>O(_o,ot),()=>n(_o)),D(()=>Ke(Ki,"aria-label",hr)),Et("click",Ki,_n,!0),Et("focusin",Ki,yo,!0),b(t,Ki),U(),o()}ct(["click"]);function wp(t){let e="";return lo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),lo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),lo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),lo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),lo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),lo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),lo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),lo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),lo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),lo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),lo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),lo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),lo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),lo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),lo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),lo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),lo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),lo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),lo(t.font)&&(e+=`--font:${t.font};`),lo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),lo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function lo(t){return typeof t=="string"&&!t.includes(";")}var T_=require("@vkontakte/videoplayer-shared/es2015");var mw=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),gw={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 hg(t,e){F(e,!0),W(t,gw);let[i,o]=Be(),r=()=>S(le,"$playerSize",i),s=()=>S(I,"$isPlaying$",i),l=()=>S(R,"$duration$",i),d=()=>S(B,"$positionWithScrubbing$",i),a=()=>S(T,"$playerPhase",i),u=()=>S(E,"$crashed$",i),f=()=>S(N,"$currentSubtitle$",i),v=()=>S(H,"$currentSubtitleCaptions$",i),p=()=>S(A,"$positionExact$",i),x=()=>S(z,"$isLive$",i),w=()=>S(X,"$isRewindableLive$",i),y=h(e,"outsideDuration",3,0),C=h(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:R,positionExact$:A,isPlaying$:I,currentSubtitle$:N,currentSubtitleCaptions$:H,positionWithScrubbing$:B,isLive$:z,isRewindableLive$:X},ui:{playerSize:le,controls:q},actions:{internal:{getVideoElement:ce}}}=_e(),J=8,ve=j(!1),se=di({}),de=()=>{O(ve,!0)},Le=()=>{O(ve,!1)},Se=(0,T_.debounceFn)(Jl,260);We(()=>{r(),Se(ce(),q,se,n(ve))});let ie=m(()=>s()?en(l()-d()):en(isFinite(l())?l():y()));var Ne=mw(),pe=_(Ne);nl(pe,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(he){C(he)}});var k=P(pe,2);ka(k,()=>"slot",!1,(he,Ue)=>{Ae(he,()=>({name:ol}))});var qe=P(k,2);let Re=m(()=>a()!=="thumb"||u());el(qe,{get hidden(){return n(Re)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Z=P(qe,2);{var ne=he=>{Xa(he,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return r()}})};V(Z,he=>{f().value!=="off"&&he(ne)})}var He=P(Z,2),Xe=_(He);Jd(Xe,{get isLive(){return x()},get isPlaying(){return s()},get time(){return n(ie)}}),g(He);var ge=P(He,2);let ee;var ke=_(ge);Ga(ke,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:J,tooltipRightOffset:J,get ref(){return se.timeline},set ref(he){se.timeline=he}}),g(ge),g(Ne),D(he=>ee=re(ge,1,"timeline svelte-1qfjf44",null,ee,he),[()=>({visible:n(ve)})]),Et("mouseenter",Ne,de),Et("mouseleave",Ne,Le),b(t,Ne),U(),o()}var hw=M("<div><!></div>"),_w={hash:"svelte-3c0y7j",code:`.vk-vp-root.svelte-3c0y7j {--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;
|
|
374
|
+
}.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 $p(t,e){F(e,!0),W(t,ew);let i=h(e,"seekStep",3,0),o=j(!1),r=0,s=0,l=j(ai(i())),d=v=>{v.stopPropagation(),s+=1,O(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(O(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,O(o,!1)},300)};cn(()=>{window.clearTimeout(r)});var a=J5();a.__click=d;var u=_(a);{var f=v=>{var p=X5(),x=fe(p),w=P(x,2),y=_(w),C=_(y),T=P(C,2),E=P(T,2);g(y);var R=P(y,2),A=_(R,!0);g(R),g(w),D(I=>{var N,H,B,z;re(x,1,`semicircle ${(N=e.side)!=null?N:""}`,"svelte-nhq2ld"),re(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),re(T,1,`triangle ${(B=e.side)!=null?B:""}`,"svelte-nhq2ld"),re(E,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),ve(A,I)},[()=>Z("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(v,p)};V(u,v=>{n(o)&&v(f)})}g(a),D(()=>{var v;return re(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),U()}ut(["click"]);var tw=(t,e,i)=>{e(!1),i()},iw=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),ow={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 mg(t,e){F(e,!0),W(t,ow);let[i,o]=De(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=he(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),x()};Bt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=ze(),T=fe(C);{var E=R=>{var A=iw(),I=P(fe(A),2),N=_(I),H=_(N),B=_(H,!0);g(H);var z=P(H,2);ks(z,{onClick:y}),g(N);var X=P(N,2);X.__click=[tw,u,v];var ae=_(X),Q=_(ae),ce=_(Q);let J;var me=P(ce,2);{var se=ee=>{nc(ee,{get isRunning(){return s()},onTimerEnded:w})};V(me,ee=>{r()&&ee(se)})}g(Q),g(ae);var le=P(ae,2),Pe=_(le),ye=_(Pe,!0);g(Pe),g(le),g(X),g(I),D((ee,Be)=>{ve(B,ee),it(Q,`background-image: url('${e.thumb}')`),J=re(ce,1,"thumb-overlay svelte-1qdxi6t",null,J,Be),ve(ye,e.title)},[()=>r()?Z("end_screen_next_video"):Z("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(R,A)};V(T,R=>{e.isHide||R(E)})}b(t,C),U(),o()}ut(["click"]);var $_=require("@vkontakte/videoplayer-core/es2015");var y_=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Bt(()=>{$_.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),cn(()=>{i==null||i(),clearTimeout(o)})};var x_=require("@vkontakte/videoplayer-core/es2015");var yp=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 w_=require("@vkontakte/videoplayer-core/es2015"),S_=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>w_.clientChecker.device.isIOS&&$e(l)===x_.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=x=>{if(v(),!f()||!x)return;let w=u();if(!w)return;let y=new yp(w),C=$e(d),T=$e(s),E=$e(r);for(let I of C)T.some(H=>H.value===I.id)&&y.attach(I,E.value===I.id);let R=d.subscribe(I=>{for(let N of I)y.updateSrc(N)}),A=()=>{let I=y.getCurrentShowingId();o($e(s).find(N=>N.value===I))};w.textTracks.addEventListener("change",A),a=()=>{R(),y.detachAll(),w.textTracks.removeEventListener("change",A)}};Bt(()=>i.subscribe(p)),cn(v)};var nw=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},rw=M("<!> <!>",1),sw=M("<div><!></div>"),aw=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),lw=M("<div><!></div>"),dw=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),cw=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),uw=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),pw={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 gg(t,e){var Rr,xr;F(e,!0),W(t,pw);let[i,o]=De(),r=()=>S(Re,"$playerPhase",i),s=()=>S(Si,"$isLoaderVisible",i),l=()=>S(Te,"$adPlaybackState",i),d=()=>S(Jt,"$crashed",i),a=()=>S(gs,"$notificationsToShow$",i),u=()=>S(te,"$playbackState$",i),f=()=>S(qt,"$graphIsOpened$",i),v=()=>S(at,"$interactiveHideMobileControls",i),p=()=>S(lo,"$isEnded$",i),x=()=>S(_t,"$isInteractiveExpectation$",i),w=()=>S(It,"$controlsVisible",i),y=()=>S(ft,"$touched",i),C=()=>S(zi,"$autoplayNextEnabled$",i),T=()=>S(ht,"$postrollPassed",i),E=()=>S(Yn,"$bottomNoSmooth",i),R=()=>S(ki,"$videoSize",i),A=()=>S(At,"$playerSize",i),I=()=>S(dt,"$isFullscreen",i),N=()=>S(Ve,"$position$",i),H=()=>S(Vt,"$duration$",i),B=()=>S(Go,"$loadedMetadata",i),z=()=>S(We,"$settingsMenuVisible",i),X=()=>S(Yt,"$scrubbingInProgress",i),ae=()=>S(yi,"$volumeChangingInProgress",i),Q=()=>S(co,"$chromecastConnected$",i),ce=()=>S(Se,"$isControlsAvailable",i),J=()=>S(ni,"$isInteractiveTime$",i),me=()=>S(yt,"$isActiveLive",i),se=()=>S(pt,"$settingsMenuOpenedByKeyboard",i),le=()=>S(xe,"$language$",i),Pe=()=>S(Xt,"$disabledControls$",i),ye=()=>S(Ut,"$is3DVideo",i),ee=()=>S(K,"$icon3DVideoVisible",i),Be=()=>S(ci,"$chromecastDeviceName$",i),pe=()=>S(Co,"$currentSubtitle$",i),k=()=>S(jo,"$currentSubtitleCaptions$",i),Ge=()=>S(pn,"$realDuration$",i),Me=()=>S(xi,"$isLive$",i),Y=()=>S(di,"$isPlaying$",i),oe=()=>S(mi,"$debugPanelVisible",i),He=h(e,"videoContainer",15),Xe=h(e,"adsSlotId",3,void 0),ge=h(e,"adsParams",3,void 0),ie=h(e,"adsAutoplayParam",3,void 0),ke=h(e,"duration",3,void 0),we=h(e,"logoTargetUrl",3,""),Fe=h(e,"showNextPrevButtons",3,!1),Je=h(e,"nextButtonActive",3,!1),Ye=h(e,"prevButtonActive",3,!1),qe=h(e,"endScreenVideoTitle",3,void 0),Ze=h(e,"endScreenVideoThumb",3,void 0),Ht=h(e,"isOneVideoPlaylist",3,!1),st=h(e,"showMiniTimer",3,!1),Ft=h(e,"fullScreenTarget",3,void 0),Gt=h(e,"playerStarted",3,!1),kt=h(e,"showEndScreen",3,!0),{notifications$:ti,graphIsOpened$:qt}=So(),Ce=e.store.getLogger().createComponentLog("Root component"),xe=e.store.interfaceLanguage$,te=e.store.state.playbackState$,Te=e.store.ads.playbackState,Ve=e.store.state.positionWithScrubbing$,Vt=e.store.state.duration$,Re=e.store.playerPhase,dt=e.store.ui.isFullscreen,It=e.store.ui.controlsVisible,Se=e.store.ui.isControlsAvailable,at=e.store.ui.interactiveHideMobileControls,We=e.store.ui.settingsMenu.visible$,pt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Yt=e.store.ui.scrubbingInProgress,yi=e.store.ui.volumeChangingInProgress,mi=e.store.ui.debugPanelVisible,Si=e.store.state.isLoaderVisible,lo=e.store.state.isEnded$,co=e.store.state.chromecastConnected$,ci=e.store.state.chromecastDeviceName$,ht=e.store.ads.postrollPassed,xi=e.store.state.isLive$,di=e.store.state.isPlaying$,yt=e.store.state.isActiveLive$,gi=e.store.state.isRewindableLive$,Jt=e.store.state.crashed$,Ct=e.store.webApi.annotationsApi,et=e.store.webApi.pictureInPictureApi,ki=e.store.state.videoSize$,Co=e.store.state.currentSubtitle$,jo=e.store.state.currentSubtitleCaptions$,pn=e.store.state.duration$,At=e.store.ui.playerSize,Ut=e.store.ui.is3DVideo,K=e.store.ui.icon3DVideoVisible,Pt=e.store.state.isInteractive,ni=e.store.state.isInteractiveTime$,_t=e.store.state.isInteractiveExpectation$,Mt=e.store.state.hasInteractiveBranches,Xt=e.store.ui.controls.disabledControls$,ft=e.store.ui.touched,Ui=e.store.ui.overlayContainer$,zi=e.store.ui.autoplayNextEnabled$,Go=e.store.state.loadedMetadata$,To=e.store.actions.internal.closeSettingsMenu,uo=(Rr=e.store.callbacks)==null?void 0:Rr.onDisabledPlayPrevChapterClick,Wi=(xr=e.store.callbacks)==null?void 0:xr.onDisabledSeekToInteractiveClick,Mr=e.store.actions.internal.setQuality,yo=j(void 0),po=j(void 0),Ki=j(void 0),Yo=j(void 0),Zo,ur,pr=m(()=>(r()==="video"&&s()||r()==="ads"&&l()==="inactive")&&!d()),fr=j(void 0),{closeNotification:ms,notificationsToShow$:gs}=ti,fn=m(()=>!!a().slow_video),vn=()=>ms("slow_video"),Yn=de(!1),Xo,Jo=j(!1),vr=m(()=>u()!==na.PlaybackState.PLAYING),mr=j(!1),Lr=m(()=>f()||v()||!n(Jo)&&(p()&&!!Mt||n(vr)&&x())),gr=j(!0),Xr=m(()=>e.uiConfig.features.thumbTimer&&st()&&r()==="video"&&!w()&&!d()&&!Pt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),hr=j(!1),fo=m(()=>(kt()||e.showAutoplayNext&&C())&&!!qe()&&!!Ze()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!n(hr)),_r=j(!1);et==null||et.setContext($d());let Vn=nt=>{nt&&!Pt&&vo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Vn});let Rn=()=>{clearTimeout(Zo),O(Jo,!1),v()&&at.set(!1)},vo=nt=>{Rn(),O(Jo,!0),Zo=setTimeout(()=>O(Jo,!1),nt);let pi=nt-100;Xo=setTimeout(()=>{E()&&Yn.set(!1)},pi>0?pi:nt)},br=Ut.subscribe(nt=>{K.set(nt),nt&&(clearTimeout(ur),ur=setTimeout(()=>K.set(!1),e.uiConfig.controls.hide360IconTimeout))}),en=(...pi)=>wt(null,[...pi],function*(nt=Ys()){var Ni,Ji,Ro,nn,Qi,ui;if(nt&&!na.clientChecker.device.isIOS){let eo=jd(),rn=tn(),Hn=na.clientChecker.browser.isSamsungBrowser&&eo===e.shadowRootContainer;nt=eo===rn||Hn}if(nt){vo(e.uiConfig.controls.hideTimeoutFullscreen);try{yield et==null?void 0:et.exit()}catch(eo){Ce({message:String(eo)})}try{let eo=(Ni=R())!=null&&Ni.width&&((Ji=R())!=null&&Ji.height)?R():A();yield v0(eo)}catch(eo){Ce({message:String(eo)})}}dt.set(nt),e.store.getAdmanWrapper().setFullscreen(nt),I()?(nn=(Ro=e.store.callbacks)==null?void 0:Ro.onFullscreenEnter)==null||nn.call(Ro):(ui=(Qi=e.store.callbacks)==null?void 0:Qi.onFullscreenExit)==null||ui.call(Qi)}),xt=nt=>{let pi=nt,{width:Ni,height:Ji}=pi.target;At.set({width:Ni,height:Ji})},hi=()=>{let{width:nt,height:pi}=n(yo).getBoundingClientRect();At.set({width:nt,height:pi})};Bt(()=>{var nt;return Ku(en),e.uiConfig.features.annotationsInside&&(Ct==null||Ct.init(n(yo))),Na(et)&&(et==null||et.assignPlayerContainer(n(yo)),et==null||et.setExternalEventHandlers({resize:xt,leavepictureinpicture:hi})),O(gr,!na.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((nt=He().parentElement)==null||nt.insertBefore(e.interactiveContainer,He().nextSibling)),()=>{clearTimeout(Zo),clearTimeout(Xo),clearTimeout(ur),br(),et==null||et.dispose().catch(pi=>{Ce({message:String(pi)})}),qu(en)}});let $r=j(!0),Zn=j(!0),Jr=nt=>{let pi=N()+(nt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;pi<0?(O($r,!1),pi=0):pi>=H()&&(O(Zn,!1),pi=H()),O(mr,!0),e.seekTime(pi)},tn=()=>na.clientChecker.device.isIOS?n(yo):!e.uiConfig.allowChangingFullscreenTarget||!Ft()?e.outerContainerRef:Ft().contains(e.outerContainerRef)?Ft():e.outerContainerRef,On=()=>wt(null,null,function*(){try{if(Ys())yield Wu(document),Ce({message:"exit fullscreen"});else{if(Ce({message:"request fullscreen"}),na.clientChecker.device.isIOS&&!B())return;yield zu(tn())}}catch(nt){Ce({message:String(nt)})}}),Pi=()=>{To()},qi=nt=>{if(nt.preventDefault(),z()){Pi();return}if(!Gt()){e.firstStart(),vo(e.uiConfig.controls.hideTimeoutCursor);return}O(mr,!1),w()?Rn():vo(e.uiConfig.controls.hideTimeoutMobile)},on=()=>{ft.set(!0)},Xn=()=>{Pt||(Yn.set(!0),vo(e.uiConfig.controls.hideTimeoutCursor))},mn=nt=>{uo&&(uo(nt),vo(e.uiConfig.controls.hideTimeoutMobile))},gn=nt=>{Wi&&(Wi(nt),vo(e.uiConfig.controls.hideTimeoutMobile))};Qe(()=>{Ui.set(n(fr))}),Qe(()=>{It.set((n(vr)||z()||X()||ae()||Q()||!n(fo)&&(p()||n(Jo)&&!n(mr)))&&!n(Lr)&&r()==="video"&&!d()&&ce())}),Qe(()=>{!X()&&n(_r)&&!J()&&vo(e.uiConfig.controls.hideTimeoutMobile),O(_r,X(),!0)}),Qe(()=>{O($r,N()>0),O(Zn,!me()&&N()<H(),!0)}),Qe(()=>{tc(n(Yo),z(),se(),!0)});let Jn=Z("aria_label_video_player"),hn=Z("video360");y_({fullScreenChangeHandler:en,getFullscreenTarget:tn}),S_({store:e.store,getFullscreenTarget:tn});let Nn=(nt,pi)=>{var nn,Qi;let Ni=(Qi=(nn=e.store.callbacks)==null?void 0:nn.uiInfo)==null?void 0:Qi.onUpcomingLiveViewStateChanged;if(!Ni)return;let Ji=!!pi,Ro=q(q({},jn(n(yo),{upcomingLiveScreen:pi},"upcomingLiveScreen",Ji)),nt);Ni(Ro)};var Eo=uw();St("blur",xa,Pi);var yr=_(Eo);ol(yr,{onClick:qi,get videoContainer(){return He()},set videoContainer(nt){He(nt)}});var Vr=P(yr,2);Ia(Vr,()=>"slot",!1,(nt,pi)=>{Ae(nt,()=>({name:il}))});var Dn=P(Vr,2);Ss(Dn,le,nt=>{var pi=cw(),Ni=fe(pi);let Ji=m(()=>r()!=="thumb"||d()||Pt&&e.autoplay);Ja(Ni,{get hidden(){return n(Ji)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ro=P(Ni,2);{var nn=Ke=>{var ii=rw(),Mi=fe(ii);{var xn=an=>{let Do=m(()=>e.uiConfig.controls.seekStepMobile/1e3);$p(an,{side:"left",get seekStep(){return n(Do)},handleSingleFirstClick:qi,handleSecondClick:()=>Jr("backward")})};V(Mi,an=>{n($r)&&an(xn)})}var sn=P(Mi,2);{var Br=an=>{let Do=m(()=>e.uiConfig.controls.seekStepMobile/1e3);$p(an,{side:"right",get seekStep(){return n(Do)},handleSingleFirstClick:qi,handleSecondClick:()=>Jr("forward")})};V(sn,an=>{n(Zn)&&an(Br)})}b(Ke,ii)};V(Ro,Ke=>{e.canRewindLive&&gi&&!Pe().has("TIMELINE")&&Ke(nn)})}var Qi=P(Ro,2);{var ui=Ke=>{let ii=m(()=>{var Mi;return(Mi=e.live)==null?void 0:Mi.startTime});Ac(Ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(ii)},onUpcomingLiveViewStateChanged:Nn})};V(Qi,Ke=>{r()==="LiveWaitingStart"&&Ke(ui)})}var eo=P(Qi,2);{var rn=Ke=>{el(Ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(eo,Ke=>{r()==="LiveWaitingRecover"&&Ke(rn)})}var Hn=P(eo,2);{var es=Ke=>{el(Ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Hn,Ke=>{r()==="LiveWaitingRecord"&&Ke(es)})}var ts=P(Hn,2);{var is=Ke=>{var ii=sw();let Mi;var xn=_(ii);Yd(xn,{get adsSlotId(){return Xe()},get adsParams(){return ge()},get adsAutoplayParam(){return ie()},get duration(){return ke()},get adsExternalApi(){return e.adsExternalApi}}),g(ii),D(sn=>Mi=re(ii,1,"ads-container svelte-7yl31d",null,Mi,sn),[()=>({hidden:r()!=="ads"})]),b(Ke,ii)};V(ts,Ke=>{e.showAds&&Gt()&&Ke(is)})}var _n=P(ts,2);{var bn=Ke=>{let ii=m(()=>!kt()&&e.showAutoplayNext&&C());mg(Ke,{get title(){return qe()},get thumb(){return Ze()},get isHide(){return n(ii)},clickCloseIcon:()=>O(hr,!0)})};V(_n,Ke=>{n(fo)&&qe()&&Ze()&&Ke(bn)})}var wr=P(_n,2);{var $n=Ke=>{Ic(Ke,{})};V(wr,Ke=>{ye()&&Ke($n)})}var Or=P(wr,2);{var ot=Ke=>{var ii=aw(),Mi=_(ii);Qd(Mi,{get"aria-label"(){return hn}}),g(ii),b(Ke,ii)};V(Or,Ke=>{ee()&&Ke(ot)})}var Rt=P(Or,2);{var Ci=Ke=>{kc(Ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Be()}})};V(Rt,Ke=>{Q()&&Ke(Ci)})}var xo=P(Rt,2);{var wo=Ke=>{Za(Ke,{get shifted(){return w()},get captions(){return k()},get position(){return N()},get playerSize(){return A()},isMobile:!0})};V(xo,Ke=>{pe().value!=="off"&&Ke(wo)})}var mo=P(xo,2);{var to=Ke=>{var ii=lw();ii.__click=[nw,z,We,Pi];var Mi=_(ii);Xa(Mi,{}),g(ii),b(Ke,ii)};V(mo,Ke=>{d()&&Ke(to)})}var Di=P(mo,2);{var yn=Ke=>{let ii=m(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Mi=m(()=>r()==="ads"),xn=m(()=>e.canRewindLive&&Ge()!==0);Ec(Ke,{get bottomHidden(){return n(ii)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return n(Mi)},get canRewindLive(){return n(xn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return we()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Fe()},get nextButtonActive(){return Je()},get prevButtonActive(){return Ye()},get isOneVideoPlaylist(){return Ht()},get customFullscreenSupported(){return n(gr)},get endScreenShown(){return n(fo)},toggleFullscreen:On,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:mn,onDisabledSeekToInteractiveClick:gn,get playerControlsWrapperRef(){return n(po)},set playerControlsWrapperRef(sn){O(po,sn,!0)},get playerControlsRef(){return n(Ki)},set playerControlsRef(sn){O(Ki,sn,!0)}})};V(Di,Ke=>{Gt()&&Ke(yn)})}var go=P(Di,2);{var Oo=Ke=>{var ii=dw(),Mi=_(ii);Vc(Mi,{get supportLink(){return e.supportLink},get returnFocus(){return C_.noop},get ref(){return n(Yo)},set ref(xn){O(Yo,xn,!0)}}),g(ii),b(Ke,ii)};V(go,Ke=>{z()&&Ke(Oo)})}var No=P(go,2);let er=m(()=>!n(Xr));Jd(No,{get isLive(){return Me()},get isHidden(){return n(er)},get isPlaying(){return Y()},get position(){return N()},get duration(){return H()}});var Fn=P(No,2);{var Nr=Ke=>{Fa(Ke,{})};V(Fn,Ke=>{n(pr)&&Ke(Nr)})}var Sr=P(Fn,2);{var os=Ke=>{oc(Ke,{})};V(Sr,Ke=>{oe()&&Ke(os)})}var Dr=P(Sr,2);{var ns=Ke=>{Rc(Ke,{onClose:vn,onSelectAutoQuality:()=>{Mr("auto"),vn()}})};V(Dr,Ke=>{n(fn)&&Ke(ns)})}b(nt,pi)});var Bn=P(Dn,2);lt(Bn,nt=>O(fr,nt),()=>n(fr)),g(Eo),lt(Eo,nt=>O(yo,nt),()=>n(yo)),D(()=>je(Eo,"aria-label",Jn)),St("click",Eo,on,!0),St("focusin",Eo,Xn,!0),b(t,Eo),U(),o()}ut(["click"]);function xp(t){let e="";return ao(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),ao(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),ao(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),ao(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),ao(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),ao(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),ao(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),ao(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),ao(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),ao(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),ao(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),ao(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),ao(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),ao(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),ao(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),ao(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),ao(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),ao(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),ao(t.font)&&(e+=`--font:${t.font};`),ao(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),ao(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function ao(t){return typeof t=="string"&&!t.includes(";")}var T_=require("@vkontakte/videoplayer-shared/es2015");var fw=M('<div class="time-container svelte-1qfjf44"><!></div>'),vw=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),mw={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 hg(t,e){F(e,!0),W(t,mw);let[i,o]=De(),r=()=>S(J,"$scrubbingInProgress",i),s=()=>S(Q,"$playerSize",i),l=()=>S(N,"$isPlaying$",i),d=()=>S(A,"$duration$",i),a=()=>S(z,"$positionWithScrubbing$",i),u=()=>S(E,"$playerPhase",i),f=()=>S(R,"$crashed$",i),v=()=>S(H,"$currentSubtitle$",i),p=()=>S(B,"$currentSubtitleCaptions$",i),x=()=>S(I,"$positionExact$",i),w=()=>S(X,"$isLive$",i),y=()=>S(ae,"$isRewindableLive$",i),C=h(e,"outsideDuration",3,0),T=h(e,"videoContainer",15),{playerPhase:E,state:{crashed$:R,duration$:A,positionExact$:I,isPlaying$:N,currentSubtitle$:H,currentSubtitleCaptions$:B,positionWithScrubbing$:z,isLive$:X,isRewindableLive$:ae},ui:{playerSize:Q,controls:ce,scrubbingInProgress:J},actions:{internal:{getVideoElement:me}}}=he(),se=8,le=j(!1),Pe=ai({}),ye=j(!1),ee=m(()=>!r()&&!n(ye)),Be=()=>{O(le,!0)},pe=()=>{O(le,!1)},k=(0,T_.debounceFn)(Xl,260);Qe(()=>{s(),k(me(),ce,Pe,n(le))});let Ge=m(()=>l()?Qo(d()-a()):Qo(isFinite(d())?d():C()));var Me=vw(),Y=_(Me);ol(Y,{hideCursor:!1,get videoContainer(){return T()},set videoContainer(qe){T(qe)}});var oe=P(Y,2);Ia(oe,()=>"slot",!1,(qe,Ze)=>{Ae(qe,()=>({name:il}))});var He=P(oe,2);let Xe=m(()=>u()!=="thumb"||f());Ja(He,{get hidden(){return n(Xe)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ge=P(He,2);{var ie=qe=>{Za(qe,{shifted:!1,get captions(){return p()},get position(){return x()},get playerSize(){return s()}})};V(ge,qe=>{v().value!=="off"&&n(ee)&&qe(ie)})}var ke=P(ge,2);{var we=qe=>{var Ze=fw(),Ht=_(Ze);Xd(Ht,{get isLive(){return w()},get isPlaying(){return l()},get time(){return n(Ge)}}),g(Ze),b(qe,Ze)};V(ke,qe=>{n(ee)&&qe(we)})}var Fe=P(ke,2);let Je;var Ye=_(Fe);ja(Ye,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return y()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:se,tooltipRightOffset:se,get ref(){return Pe.timeline},set ref(qe){Pe.timeline=qe}}),g(Fe),g(Me),D(qe=>Je=re(Fe,1,"timeline svelte-1qfjf44",null,Je,qe),[()=>({visible:n(le)})]),St("mouseenter",Me,Be),St("mouseleave",Me,pe),St("mouseenter",Fe,()=>O(ye,!0)),St("mouseleave",Fe,()=>O(ye,!1)),b(t,Me),U(),o()}var gw=M("<div><!></div>"),hw={hash:"svelte-3c0y7j",code:`.vk-vp-root.svelte-3c0y7j {--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;
|
|
375
375
|
|
|
376
376
|
/* USER DEFINED COLORS */
|
|
377
377
|
|
|
@@ -404,5 +404,5 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_trac
|
|
|
404
404
|
/* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}.vk-vp-root.svelte-3c0y7j *:focus, .vk-vp-root.svelte-3c0y7j *:focus-visible {outline:none;}.vk-vp-root.svelte-3c0y7j *:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}.vk-vp-root.svelte-3c0y7j *.focus-hidden:focus-visible {box-shadow:none;}
|
|
405
405
|
/* css reset end */.vk-vp-root.svelte-3c0y7j .hidden {visibility:hidden;opacity:0;}.vk-vp-root.svelte-3c0y7j .out-of-flow {content-visibility:hidden !important;}.vk-vp-root.svelte-3c0y7j .overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
|
|
406
406
|
|
|
407
|
-
/* \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 */.vk-vp-root.svelte-3c0y7j .out-of-view {position:absolute !important;left:-1000vh !important;}.vk-vp-root.svelte-3c0y7j .icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function _g(t,e){F(e,!0),W(t,_w);let[i,o]=Be(),r=()=>S(Gt,"$isLive$",i),s=()=>S(Tt,"$availableSubtitlesList$",i),l=()=>S(Ye,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),a=h(e,"store",7),u=h(e,"microStoresRoot",7),f=h(e,"videoConfig",7),v=h(e,"uiConfig",7),p=h(e,"title",7),x=h(e,"thumbUrl",7),w=h(e,"interactiveContainer",7),y=h(e,"interactiveController",7),C=h(e,"subtitles",7),T=h(e,"subtitlesForcedLanguage",7),E=h(e,"live",7),R=h(e,"preload",7),A=h(e,"autoplay",7),I=h(e,"volume",7,void 0),N=h(e,"muted",7,void 0),H=h(e,"fromTime",7),B=h(e,"canRewindLive",7),z=h(e,"showAds",7),X=h(e,"adsSlotId",7,void 0),le=h(e,"adsParams",7,void 0),q=h(e,"adsAutoplayParam",7,void 0),ce=h(e,"duration",7,void 0),J=h(e,"logoClickable",7),ve=h(e,"logoHidden",7),se=h(e,"isMobile",7),de=h(e,"showNextPrevButtons",7,!1),Le=h(e,"nextButtonActive",7,!1),Se=h(e,"prevButtonActive",7,!1),ie=h(e,"endScreenVideoTitle",7,void 0),Ne=h(e,"endScreenVideoThumb",7,void 0),pe=h(e,"isOneVideoPlaylist",7,!1),k=h(e,"supportLink",7),qe=h(e,"shadowRootContainer",7),Re=h(e,"outerContainerRef",7),Z=h(e,"fullScreenTarget",7,void 0),ne=h(e,"failoverHosts",7,void 0),He=h(e,"showMiniTimer",7,!1),Xe=h(e,"saveRate",7),ge=h(e,"seekToInteractive",7,rl.noop),ee=h(e,"playPrevChapter",7,rl.noop),ke=h(e,"volumeMultiplier",7),he=h(e,"showAutoplayNext",7),Ue=h(e,"showEndScreen",7,!0),Je=h(e,"keyboardControls",15,void 0),{subscribers:Ge,stores:ut}=u();w1(v());let tt=Nt(),Ft=v().logoLink,st=a().ui.debugPanelVisible,Ht=a().ui.playerSize,Gt=a().state.isLive$,oi=a().state.isInteractive&&nd.clientChecker.device.isAndroid,qt=j(void 0),Ce=null,we=j(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{vsid:a().vsid}),V1(a(),ut),We(()=>{var K,Ot;a().ui.isMobile.set(se()),(Ot=(K=f().callbacks)==null?void 0:K.onDomReady)==null||Ot.call(K)});let te=(K=!1)=>{O(we,!0),K?a().actions.external.firstStart(z()):a().actions.internal.firstStart(z())},Te=()=>{if(tt.features.qualityDetailsSubMenuEnabled){let K=i0(a().videoId);if(K)switch(K.type){case"high_quality":a().actions.internal.setHighQualityEnabled(!0,K.appliesTo);break;case"traffic_saving":a().actions.internal.setTrafficSavingEnabled(!0,K.appliesTo);break;case"exact_quality":a().actions.internal.setQuality(K.quality);break}}else{o0(a().videoId),Qf()&&a().actions.internal.setTrafficSavingEnabled(!0);let Ot=zf(a().videoId);Ot&&a().actions.internal.setQuality(Ot)}};function Me(K){var Zt,ft,Ni;let Ot=d()||K;Ot&&a().initVideo({container:n(qt),sources:Ot,failoverHosts:ne(),subtitles:C(),subtitlesForcedLanguage:T(),volumeMultiplier:ke()});let ri=rl.safeStorage.get(zd)==="true";st.set(ri),H()>0&&a().actions.external.seekTime(H());let mt=se()?tt.volumeDefault:(ft=(Zt=I())!=null?Zt:Ou())!=null?ft:tt.volumeDefault,Mt=(Ni=N())!=null?Ni:Y1();if(a().actions.external.setVolume(mt),a().actions.external.setMuted(Mt),a().getAdmanWrapper().setInitialVolume(Mt?0:mt),Te(),tt.features.saveRate&&Xe()){let zi=J1();zi&&!r()&&a().actions.internal.setPlaybackRate(zi)}if(he()){let zi=t0();zi&&a().actions.internal.setAutoplayNextEnabled(zi)}a().ui.isAutoplay.set(A()),A()&&te(),R()&&tt.features.preload&&a().actions.internal.preload()}let At=K=>{if(window.ResizeObserver){let Ot,ri;Ce=new ResizeObserver((0,rl.throttleFn)(mt=>{let Mt=mt[0];if(Mt.contentBoxSize){let Zt=Array.isArray(Mt.contentBoxSize)?Mt.contentBoxSize[0]:Mt.contentBoxSize;Ot=Zt.inlineSize,ri=Zt.blockSize}else Mt.contentRect&&(Ot=Mt.contentRect.width,ri=Mt.contentRect.height);Ht.set({width:Ot,height:ri})},300)),Ce.observe(K)}Ht.set({width:K.clientWidth,height:K.clientHeight})},De=()=>{document.hidden&&a().actions.external.stop()};Bt(()=>{var ri,mt,Mt,Zt;oi&&document.addEventListener("visibilitychange",De),tt.debugLog&&a().actions.internal.startLogging(),At(n(qt));let K=Ge.map(ft=>ft.init({store:a(),microStores:ut,config:f(),interactiveController:y(),uiConfig:v()})),Ot=()=>{oi&&document.removeEventListener("visibilitychange",De),Ce==null||Ce.disconnect(),K.forEach(ft=>ft.unsubscribe()),a().destroy()};return((ri=E())==null?void 0:ri.status)==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),Ot):((mt=E())==null?void 0:mt.status)==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),Ot):(((Mt=E())==null?void 0:Mt.status)==="finished"||((Zt=E())==null?void 0:Zt.status)==="postlive")&&!(d()&&(0,nd.areValidLiveRecordSources)(d()))?(a().actions.internal.setLiveWaitingRecord(!0),Ot):(Me(),Ot)});function pt(){n(we)?a().actions.external.play():te(!0)}function xt(){a().actions.external.pause()}function xe(K){a().actions.external.setMuted(K)}function nt(){a().actions.external.toggleSubtitle()}function Qe(K,Ot){a().actions.external.changeSubtitle(K,Ot)}function dt(K){a().actions.external.changeAudioStream(K)}function ni(){var K;(K=a().webApi.slotsApi)!=null&&K.haveSlots()&&a().actions.external.hideControls()}function ai(){var K;(K=a().webApi.slotsApi)!=null&&K.haveSlots()&&a().actions.external.showControls()}function mi(K){se()||K>=0&&K<=1&&a().actions.external.setVolume(K)}function wi(K){a().actions.internal.seekTime(K,E_.SeekAction.UNKNOWN)}function co(K){a().actions.external.seekEpisodeStartTime(K)}function ho(){a().actions.external.returnFocusToEpisodes()}function ui(K){a().actions.external.setPlaybackRate(K)}function ht(K){a().actions.external.setAutoQualityLimits(K)}function Mi(){a().actions.external.setQuality("auto")}function Xt(K){a().actions.external.setTrafficSavingEnabled(K)}function It(K){a().actions.external.setHighQualityEnabled(K)}let si=wp(tt.view),Jt=f().playerView==="preview",Tt=a().state.availableSubtitlesList$;if(tt.features.initSubtitles){let K=!1;We(()=>{var Ot;if(!K&&s().length){K=!0;let ri;if(tt.features.userVideoPrefs&&a().videoId){let Mt=Hu(tt.userSalt,String(a().videoId));Mt!=null&&Mt.subtitleTrackId&&(ri=s().find(Zt=>Zt.value===Mt.subtitleTrackId))}let mt=(Ot=T())!=null?Ot:Gf();mt&&(ri=s().find(Mt=>Mt.language===mt)),a().actions.internal.setSubtitle(ri)}})}let Ye=a().ui.isPreviewTrackHorizontallyAligned;var Si=hw();let To;var tn=_(Si);{var vn=K=>{gg(K,{get store(){return a()},get uiConfig(){return tt},get thumbUrl(){return x()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return le()},get adsAutoplayParam(){return q()},get duration(){return ce()},get logoClickable(){return J()},get logoHidden(){return ve()},get logoTargetUrl(){return Ft},get nextButtonActive(){return Le()},get prevButtonActive(){return Se()},get endScreenVideoTitle(){return ie()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return pe()},get supportLink(){return k()},get shadowRootContainer(){return qe()},get outerContainerRef(){return Re()},get fullScreenTarget(){return Z()},get showMiniTimer(){return He()},get playerStarted(){return n(we)},get seekToInteractive(){return ge()},get playPrevChapter(){return ee()},firstStart:te,seekTime:wi,get showEndScreen(){return Ue()},get showAutoplayNext(){return he()},get showNextPrevButtons(){return de()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(qt)},set videoContainer(Ot){O(qt,Ot,!0)}})},Pt=K=>{var Ot=Fe(),ri=fe(Ot);{var mt=Zt=>{hg(Zt,{get thumbUrl(){return x()},get outsideDuration(){return ce()},get canRewindLive(){return B()},get videoContainer(){return n(qt)},set videoContainer(ft){O(qt,ft,!0)}})},Mt=Zt=>{vg(Zt,{get store(){return a()},get uiConfig(){return tt},get title(){return p()},get thumbUrl(){return x()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return le()},get adsAutoplayParam(){return q()},get duration(){return ce()},get logoClickable(){return J()},get logoHidden(){return ve()},get logoTargetUrl(){return Ft},get nextButtonActive(){return Le()},get prevButtonActive(){return Se()},get endScreenVideoTitle(){return ie()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return pe()},get supportLink(){return k()},get shadowRootContainer(){return qe()},get outerContainerRef(){return Re()},get fullScreenTarget(){return Z()},get showMiniTimer(){return He()},get playerStarted(){return n(we)},get seekToInteractive(){return ge()},get playPrevChapter(){return ee()},firstStart:te,get showEndScreen(){return Ue()},get showAutoplayNext(){return he()},get showNextPrevButtons(){return de()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(qt)},set videoContainer(ft){O(qt,ft,!0)},get keyboardControls(){return Je()},set keyboardControls(ft){Je(ft)}})};V(ri,Zt=>{Jt?Zt(mt):Zt(Mt,!1)})}b(K,Ot)};V(tn,K=>{se()?K(vn):K(Pt,!1)})}g(Si),D(K=>{To=re(Si,1,"vk-vp-root svelte-3c0y7j",null,To,K),et(Si,si)},[()=>({"root--miui-browser":nd.clientChecker.device.isMobile&&nd.clientChecker.browser.isMiuiBrowser,"visible-outside":Jt,"preview-track-horizontally-alinged":l()})]),b(t,Si);var Ut=U({initVideo:Me,play:pt,pause:xt,setMuted:xe,toggleSubtitle:nt,changeSubtitle:Qe,changeAudioStream:dt,hideControls:ni,showControls:ai,setVolume:mi,seekTime:wi,seekEpisodeStartTime:co,returnFocusToEpisodes:ho,setPlaybackRate:ui,setAutoQualityLimits:ht,setAutoQuality:Mi,toggleTrafficSaving:Xt,toggleHighQuality:It,get sources(){return d()},set sources(K){d(K)},get store(){return a()},set store(K){a(K)},get microStoresRoot(){return u()},set microStoresRoot(K){u(K)},get videoConfig(){return f()},set videoConfig(K){f(K)},get uiConfig(){return v()},set uiConfig(K){v(K)},get title(){return p()},set title(K){p(K)},get thumbUrl(){return x()},set thumbUrl(K){x(K)},get interactiveContainer(){return w()},set interactiveContainer(K){w(K)},get interactiveController(){return y()},set interactiveController(K){y(K)},get subtitles(){return C()},set subtitles(K){C(K)},get subtitlesForcedLanguage(){return T()},set subtitlesForcedLanguage(K){T(K)},get live(){return E()},set live(K){E(K)},get preload(){return R()},set preload(K){R(K)},get autoplay(){return A()},set autoplay(K){A(K)},get volume(){return I()},set volume(K){I(K)},get muted(){return N()},set muted(K){N(K)},get fromTime(){return H()},set fromTime(K){H(K)},get canRewindLive(){return B()},set canRewindLive(K){B(K)},get showAds(){return z()},set showAds(K){z(K)},get adsSlotId(){return X()},set adsSlotId(K){X(K)},get adsParams(){return le()},set adsParams(K){le(K)},get adsAutoplayParam(){return q()},set adsAutoplayParam(K){q(K)},get duration(){return ce()},set duration(K){ce(K)},get logoClickable(){return J()},set logoClickable(K){J(K)},get logoHidden(){return ve()},set logoHidden(K){ve(K)},get isMobile(){return se()},set isMobile(K){se(K)},get showNextPrevButtons(){return de()},set showNextPrevButtons(K){de(K)},get nextButtonActive(){return Le()},set nextButtonActive(K){Le(K)},get prevButtonActive(){return Se()},set prevButtonActive(K){Se(K)},get endScreenVideoTitle(){return ie()},set endScreenVideoTitle(K){ie(K)},get endScreenVideoThumb(){return Ne()},set endScreenVideoThumb(K){Ne(K)},get isOneVideoPlaylist(){return pe()},set isOneVideoPlaylist(K){pe(K)},get supportLink(){return k()},set supportLink(K){k(K)},get shadowRootContainer(){return qe()},set shadowRootContainer(K){qe(K)},get outerContainerRef(){return Re()},set outerContainerRef(K){Re(K)},get fullScreenTarget(){return Z()},set fullScreenTarget(K){Z(K)},get failoverHosts(){return ne()},set failoverHosts(K){ne(K)},get showMiniTimer(){return He()},set showMiniTimer(K){He(K)},get saveRate(){return Xe()},set saveRate(K){Xe(K)},get showAutoplayNext(){return he()},set showAutoplayNext(K){he(K)},get seekToInteractive(){return ge()},set seekToInteractive(K){ge(K)},get playPrevChapter(){return ee()},set playPrevChapter(K){ee(K)},get volumeMultiplier(){return ke()},set volumeMultiplier(K){ke(K)},get showEndScreen(){return Ue()},set showEndScreen(K){Ue(K)},get keyboardControls(){return Je()},set keyboardControls(K){Je(K)}});return o(),Ut}var bw=Ie('<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 bg(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=bw();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function $g(t,e){let i=h(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");bg(t,{get style(){return n(o)}})}var $w=M('<div class="title svelte-1y9fytq"> </div>'),yw=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),xw={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 yg(t,e){W(t,xw);var i=yw(),o=_(i);{var r=d=>{var a=$w(),u=_(a,!0);g(a),D(()=>me(u,e.title)),b(d,a)};V(o,d=>{e.title&&d(r)})}var s=P(o,2);{var l=d=>{let a=m(()=>!!e.thumbUrl);$g(d,{get isWhite(){return n(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),D(()=>et(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var ww=M('<div class="playerError svelte-m5iv29"><!></div>'),Sw={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function xg(t){W(t,Sw);var e=ww(),i=_(e);Ja(i,{}),g(e),b(t,e)}var Rp=require("@vkontakte/videoplayer-shared/es2015"),Ui=require("@vkontakte/videoplayer-shared/es2015"),jc=require("@vkontakte/videoplayer-core/es2015"),cd=require("@vkontakte/videoplayer-statistics/es2015");var Cp=require("@vkontakte/videoplayer-shared/es2015"),Sp=class{constructor(){this.subscription=new Cp.Subscription,this.logger=new Cp.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[r,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,s)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=$e(e.state.currentPlaybackRate$),r=$e(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var sd=require("@vkontakte/videoplayer-shared/es2015");var Cw=Ie('<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 wg(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Cw();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var Tw=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Ew={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 Sg(t,e){F(e,!0),W(t,Ew);let[i,o]=Be(),r=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=_e(),d=Nt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=m(()=>r()&&v("pip_dummy_title")),x=wp(d.view);var w=Tw();let y;var C=_(w);let T;var E=_(C);wg(E,{}),g(C);var R=P(C,2),A=_(R,!0);g(R),g(w),D((I,N)=>{y=re(w,1,"player-pip-dummy svelte-1pbsod4",null,y,I),et(w,x),T=re(C,1,"dummy-image svelte-1pbsod4",null,T,N),me(A,n(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),b(t,w),U(),o()}var Iw=Object.defineProperty,kw=(t,e,i)=>e in t?Iw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,rd=(t,e,i)=>kw(t,typeof e!="symbol"?e+"":e,i),Cg=(t,e,i)=>new Promise((o,r)=>{var s=a=>{try{d(i.next(a))}catch(u){r(u)}},l=a=>{try{d(i.throw(a))}catch(u){r(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),Aw=460,Pw=280,Bc=class{constructor({enabled:e=!0}={enabled:!0}){rd(this,"playerDomElement"),rd(this,"playerParentShadowRoot"),rd(this,"playerDummyElement"),rd(this,"svelteContext"),rd(this,"pipWindow"),rd(this,"info",{isActive$:new sd.ValueSubject(!1),isEnabled$:new sd.ValueSubject(!1),type:1}),this.info.isEnabled$=new sd.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,sd.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return Cg(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Aw,height:Pw,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(`
|
|
408
|
-
`),r=document.createElement("style");r.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Yr(Sg,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ia(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return Cg(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return Cg(this,null,function*(){yield this.exit()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function I_(t){return t instanceof Bc}var Tp=class{static getLatestSupportedVersion(e){let i=new Na(e),o=new Bc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Hc(t,e){var r,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(r=e[l])!=null?r:t[l])!=null?s:void 0;return o}var k_="Inner error. Unexpectedly root annotation container null reference exception",A_="Annotation with such name already exists",P_="Annotation with such name does not exist";var ad=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var ld=require("@vkontakte/videoplayer-shared/es2015"),Mw="1",Lw=100,Ep=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new ld.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,ld.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"},Lw);this.subscriptions.add((0,ld.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new ad(k_);if(this.annotations.has(e))throw new ad(A_);i.style.zIndex=(o=i.style.zIndex)!=null?o:Mw,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 ad(P_);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 r=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||s<0||s+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var sl=require("@vkontakte/videoplayer-shared/es2015"),fn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,sl.assertNonNullable)(e),(0,sl.assertNonNullable)(i),(0,sl.assertNonNullable)(r),r.interactiveData&&(0,sl.assertNonNullable)(o),this.subscription=new sl.Subscription,this.subscription}};var Fc=class extends fn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=jt(Q({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Uc=class extends fn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=jt(Q({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,v=$e(f),p=()=>v&&$e(u);return o.add(u.subscribe(x=>{if(!v)return;let w=$e(l);$e(a)?this.state$.set(x):w!==null&&this.state$.set(!w||x)})),o.add(a.subscribe(x=>{this.state$.set(!x||p())})),o.add(l.subscribe(x=>{if(x===null)return;let w=$e(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!x)})),o}};var zc=class extends fn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var M_=require("@vkontakte/videoplayer-shared/es2015");var Tg=ae(!1),Ip=null,Wc=class extends fn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=jt(Q({},Tg),{set:(i,o=!1)=>{i!==$e(Tg)&&(this.clearTimeout(),Tg.set(i),!i&&Ip&&(Ip=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,a=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(a.subscribe(v=>{$e(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,M_.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:x})=>{var w,y;if(!(!v||!(x!=null&&x.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Ip===null&&(Ip=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=r.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var kp=require("@vkontakte/videoplayer-shared/es2015");var Kc=class extends fn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=jt(Q({},ae(null)),{toggle:kp.noop});this.checkIfShouldHide=i=>Ms(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>wt(this,null,function*(){if(this.checkIfShouldHide($e(l)))return;let a=$e(this.state$),{isEnded$:u,playbackState$:f}=r.state,{disabledControls$:v}=r.ui.controls,p=$e(u),x=$e(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),v.remove(Of),!p&&this.graphMadePause&&r.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=x==="playing";try{yield s==null?void 0:s.toggleGraphView(!0),this.state$.set(!0),v.add(Of),!p&&this.graphMadePause&&r.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add((0,kp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>wt(this,[f],function*({graphIsOpened:a,currentGridType:u}){if(this.checkIfShouldHide(u)&&a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};var Eg=require("@vkontakte/videoplayer-shared/es2015"),qc=class extends fn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new Eg.ValueSubject(!1),isEnabled$:new Eg.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var Pp=require("@vkontakte/videoplayer-shared/es2015");var Ap=require("@vkontakte/videoplayer-shared/es2015");var L_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Vw({maxCount:t}):void 0,e!==0?Rw({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},Vw=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Ap.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},Rw=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ap.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>Ap.safeStorage.set(e,JSON.stringify(s)),r=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(jt(Q({},i()),{[s]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&r(s),d}else return!0}}};var Qc=class extends fn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=L_({maxShowCount:s,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Pp.filterChanged)(),(0,Pp.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var V_=()=>[Fc,Uc,zc,Wc,Kc,qc,Qc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:jt(Q({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var dd=require("@vkontakte/videoplayer-shared/es2015");var Mp=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 Ow=M('<div class="root svelte-9ubj1t"><!></div>'),Nw={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function Ig(t,e){F(e,!0),W(t,Nw);let i=null,o=j(null);We(()=>(n(o)&&(i=window.setTimeout(()=>{O(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(a){e.playbackStatusShow&&O(o,a?"prev":"next",!0)}var s=Fe(),l=fe(s);{var d=a=>{var u=Fe(),f=fe(u);Ts(f,()=>n(o),v=>{var p=Ow(),x=_(p);let w=m(()=>n(o)==="prev");Dc(x,{get duration(){return e.animationDuration},get Icon(){return $c},get isPrev(){return n(w)}}),g(p),b(v,p)}),b(a,u)};V(l,a=>{e.playbackStatusShow&&n(o)&&a(d)})}return b(t,s),U({startVideoChangedAnimation:r})}var Dw=Object.defineProperty,Bw=Object.defineProperties,Hw=Object.getOwnPropertyDescriptors,R_=Object.getOwnPropertySymbols,Fw=Object.prototype.hasOwnProperty,Uw=Object.prototype.propertyIsEnumerable,Ag=(t,e,i)=>e in t?Dw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ds=(t,e)=>{for(var i in e||(e={}))Fw.call(e,i)&&Ag(t,i,e[i]);if(R_)for(var i of R_(e))Uw.call(e,i)&&Ag(t,i,e[i]);return t},zw=(t,e)=>Bw(t,Hw(e)),ei=(t,e,i)=>Ag(t,typeof e!="symbol"?e+"":e,i),Lp=(t,e,i)=>new Promise((o,r)=>{var s=a=>{try{d(i.next(a))}catch(u){r(u)}},l=a=>{try{d(i.throw(a))}catch(u){r(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),Ww={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ui.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,jc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Qn=j(void 0),kg=di({animationDuration:0,playbackStatusShow:!1}),Vp=class extends HTMLElement{constructor(){super(),ei(this,"svelteStubComponent"),ei(this,"svelteRootComponent"),ei(this,"sveltePersistentLayerComponent"),ei(this,"svelteErrorComponent"),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,"playerId"),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,"fatalError$",new Rp.ValueSubject(null)),ei(this,"createOneStat",(e,i={})=>{var o,r,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:x,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:E}=Hc(this.videoConfig,i),R=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(s=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?s:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:N=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new cd.OneStat(Ds({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=x&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:N,refDomain:C,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview"},R&&(!this.isInited||A)&&{projectId:Number(R)}),Ds({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(B){console.error(B),this.log({message:B.message})}}),dd.devNull.create("ui"),this.logger=new Ui.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Ui.Subscription,this.interactiveSubscription=new Ui.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Yr(xg,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=di({title:o,thumbUrl:r}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Yr(yg,l),this.sveltePersistentLayerComponent=Yr(Ig,{target:this.playerContainer,props:kg})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;kg.animationDuration=e,kg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),dd.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:r,refreshStatAuthToken:s}=Hc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new cd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var r,s,l,d,a,u,f,v,p,x;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:C,preload:T,autoplay:E,volume:R,muted:A,fromTime:I,canRewindLive:N,supportLink:H,showAds:B,adsSlotId:z,adsParams:X={},adsAutoplayParam:le,interfaceLanguage:q,isCyrillicRelatedInterface:ce,logoClickable:J,logoHidden:ve,isMobile:se,isTouch:de,isAudioDisabled:Le,isLiveCatchUpMode:Se,fullScreenTarget:ie,failoverHosts:Ne,canDownload:pe,callbacks:k,interactiveData:qe,showThumbTimer:Re,additionalButtons:Z=[],additionalSettingsMenuItems:ne=[],additionalContextMenuItems:He=[],repeat:Xe,loop:ge,saveRate:ee,volumeMultiplier:ke,showEndScreen:he,showAutoplayNext:Ue,mediascopePixels:Je}=Hc(this.videoConfig,i),{sources:Ge,title:ut,thumbUrl:tt,unitedVideoId:Ft,isClip:st=!1,duration:Ht,adsParams:Gt={},videoEpisodes:kt,previewThumbsData:oi,subtitles:qt,subtitlesForcedLanguage:Ce,live:we,adsExternalApi:te}=e;if(!Ge&&!we){let ui=new Error("empty sources and live");this.fatalError$.next(ui),(r=k.onCrashed)==null||r.call(k,ui.message);return}let Te=Ds(Ds({},X),Gt),Me=this.getNextVideoInfo(),At={sources:Ge,title:ut,thumbUrl:tt,subtitles:qt,subtitlesForcedLanguage:Ce,unitedVideoId:Ft,isClip:st,live:we,albumId:w,statPlace:y,autoplay:E,muted:A,volume:R,fromTime:I,canRewindLive:N,showAds:B,adsSlotId:z,adsParams:Te,adsAutoplayParam:le,duration:Ht,logoClickable:J,logoHidden:ve,isTouch:de!=null?de:se,repeat:Xe,loop:ge,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Me.nextVideoTitle,endScreenVideoThumb:Me.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},De={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(At)}`});let pt=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),xt=(pt==null?void 0:pt.oneStat)||this.createOneStat(e,i),xe=this.createThinOneStat(e,i),nt;Je&&(nt=new cd.MediascopePixel({pixels:Je})),(xt||xe)&&(this.statistics=new dp(xt,xe,nt,pt==null?void 0:pt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Oa(this.uiConfig.sentry,{version:La,env:Lu},{movieId:Ft,albumId:w,place:y,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:de!=null?de:se,clip:st}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry=Ds(Ds({},this.sentry),Oa.getInstance());let dt=!!qe,ni=[],ai="tooltip_interactive_go_back_disabled_first";if(dt&&this.interactiveController){let ui=this.interactiveController.state.isInitialChapter$.getValue(),ht=this.interactiveController.getHistoryState();ui&&ni.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ni.push("SEEK_TO_INTERACTIVE_BUTTON"),ht.hasPrevChapter$.getValue()||(ni.push("PLAY_PREV_CHAPTER_BUTTON"),ui||(ht.isGoBackLimited$.getValue()?ai="tooltip_interactive_go_back_disabled_limit":ai="tooltip_interactive_go_back_disabled"))}let mi=()=>{var ui;this.isInited=!1,this.prevIsid=void 0;let ht=(o==null?void 0:o.info.isEnded$.getValue())&&((ui=this.interactiveController)==null?void 0:ui.state.isEndChapter$.getValue());k.onReplayInteractiveVideo&&!ht?k.onReplayInteractiveVideo():this.replayInteractiveVideo()},wi=Xe&&this.videoConfig.videos.length===1;this.store=q0({player:o,interfaceLanguage:q,isCyrillicRelatedInterface:ce,videoId:Ft,isClip:st,isLiveCatchUpMode:Se,isAudioDisabled:Le,statAuthToken:C,callbacks:k,webApi:De,videoEpisodes:kt,previewThumbsData:oi,canDownload:pe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ni,isInteractive:dt,saveRate:ee,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:mi,playPrevChapterDisabledTooltip:ai,hasInteractiveBranches:!!((x=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&x.length),additionalButtons:this.uiConfig.features.additionalButtons?Z:[],additionalSettingsMenuItems:ne!=null?ne:[],additionalContextMenuItems:He!=null?He:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ui=>{var ht;return(ht=this.sveltePersistentLayerComponent)==null?void 0:ht.startVideoChangedAnimation(ui)},looped:this.uiConfig.features.useLoopSetting?ge:wi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:co}=this.microStoresRoot=V_(),ho=()=>{var ui,ht,Mi,Xt,It,si;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Tt=>{var Ye;return(Ye=k==null?void 0:k.onCurrentFormatChanged)==null?void 0:Ye.call(k,Tt)})),this.subscription.add(co.interactiveControlsOpacity$.subscribe(Tt=>{var Ye;Tt!==null&&((Ye=this==null?void 0:this.interactiveController)==null||Ye.setDisabledControls(Tt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Tt=>{var Ye;return(Ye=k==null?void 0:k.onThroughputEstimationChanged)==null?void 0:Ye.call(k,Tt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Tt=>{var Ye;return(Ye=k==null?void 0:k.onTrafficSavingEnabledChanged)==null?void 0:Ye.call(k,Tt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Tt=>{var Ye;return(Ye=k==null?void 0:k.onHighQualityEnabledChanged)==null?void 0:Ye.call(k,Tt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Tt=>{var Ye;return(Ye=k==null?void 0:k.onAutoQualityEnabledChanged)==null?void 0:Ye.call(k,!!Tt)})),this.subscription.add(new Ui.Observable(Tt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ye=>Tt.next(Ye)))}).pipe((0,Ui.skip)(1)).subscribe(Tt=>{var Ye;return(Ye=k==null?void 0:k.onCurrentPlaybackRateChanged)==null?void 0:Ye.call(k,Tt)})),this.subscription.add(this.store.state.volume$.subscribe(Tt=>{var Ye;return(Ye=k==null?void 0:k.onVolumeChange)==null?void 0:Ye.call(k,Tt)})),this.subscription.add(this.store.state.muted$.subscribe(Tt=>{var Ye,Si,To,tn;if(Tt)(Ye=k==null?void 0:k.onMute)==null||Ye.call(k);else{let vn=(To=((Si=this.store)==null?void 0:Si.state.volume$)&&$e(this.store.state.volume$))!=null?To:0;(tn=k==null?void 0:k.onUnmute)==null||tn.call(k,vn)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Tt=>{var Ye;return(Ye=k==null?void 0:k.onVideoBitrateChanged)==null?void 0:Ye.call(k,Tt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Tt=>{var Ye;let Si=(Ye=this.store)==null?void 0:Ye.ui.controls.disabledControls$;Si&&(Tt&&!Si.includes(Wd)&&Si.add(Wd),Tt||Si.remove(Wd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Tt=>Lp(this,null,function*(){var Ye;if(!jc.clientChecker.browser.isSamsungBrowser||!Tt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Ye=this.videoConfig)==null?void 0:Ye.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Tt=>{var Ye;return(Ye=k==null?void 0:k.onVSIDChanged)==null?void 0:Ye.call(k,Tt)})),this.initMediaSession(),O(Qn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ge,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ut,thumbUrl:tt,subtitles:qt,subtitlesForcedLanguage:Ce,live:we,preload:T,autoplay:E,muted:A,volume:R,fromTime:I,canRewindLive:N,supportLink:H,showAds:B,adsSlotId:z,adsParams:Te,adsAutoplayParam:le,duration:Ht,logoClickable:J,logoHidden:ve,isMobile:de!=null?de:se,failoverHosts:Ne,fullScreenTarget:ie,saveRate:ee,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Re,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Me.nextVideoTitle,endScreenVideoThumb:Me.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ke,showEndScreen:he,showAutoplayNext:Ue,adsExternalApi:te},!0);let Jt={target:this.playerContainer,props:n(Qn)};this.svelteRootComponent=Yr(_g,Jt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Mi=(ht=(ui=this.videoConfig)==null?void 0:ui.callbacks)==null?void 0:ht.onInited)==null||Mi.call(ht)),(Xt=this.internalsExposure)==null||Xt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((si=(It=this.videoConfig)==null?void 0:It.callbacks)!=null&&si.onDevNullLog)?dd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):dd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?jc.clientChecker.isInited$.subscribe(ui=>{ui&&(console.log("UI SDK async start"),ho())}):ho()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Ui.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return Lp(this,null,function*(){var e,i,o,r,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?$e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:x}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:p,vkVideoLoader:x,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let C=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=zw(Ds({},T.config),{title:(f==null?void 0:f.title)||T.config.title});let E=C?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),C&&(C=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var R,A,I,N,H,B;if(!this.store||!this.microStoresRoot)return;let z=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Kd)),T==="action-choice-canceled"){let X=$e(this.store.state.isPlaying$)||z;if(((I=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?I:(A=this.videoConfig)!=null&&A.isMobile)&&X){this.store.ui.interactiveHideMobileControls.set(!0);return}(B=(N=this.videoConfig)==null?void 0:(H=N.callbacks).onDisabledInteractiveClick)==null||B.call(H)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(Kd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var R,A,I;E.length&&((I=(A=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||I.call(A,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,R,A;(A=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveChapterChanged)==null||A.call(R,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,R,A;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(R)})),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,r,s,l,d,a,u,f,v,p,x,w,y,C,T,E,R,A,I,N,H,B,z,X,le,q,ce,J;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ve=new Error("empty videos");this.fatalError$.next(ve),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,ve.message);return}else this.fatalError$.next(null);if(this.videoConfig=Hc(Ww,(0,Ui.cloneDeepWith)(e,ve=>ve instanceof HTMLElement?ve:void 0)),this.playerId=(0,Ui.getPlayerId)(e.playerId),this.uiConfig=x1((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Ui.InternalsExposure("ui",this.playerId))),dd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,Rp.now)()]}),(0,Ui.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),(0,Ui.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(x=this.uiConfig.features.pip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(C=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.uiConfig.ads.paramsOverride=Ds({preview:(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(R=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(N=this.uiConfig.ads.slot)!=null?N:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((H=this.uiConfig.showLogo)!=null?H:!this.videoConfig.logoHidden),(B=this.videoConfig).canRewindLive&&(B.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(X=this.uiConfig.features.endScreen)!=null?X:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(le=this.uiConfig.features.autoplayNext)!=null?le:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(q=this.uiConfig.features.nextPrevButtons)!=null?q:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ce=this.videoConfig.videos)!=null&&ce[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ve={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Tp.getLatestSupportedVersion(ve):this.pictureInPictureApi=new Na(ve)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Sp:void 0,this.slotsApi=this.uiConfig.features.slots?new $p:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ep(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),I_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(J=this.slotsApi)==null||J.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Mp(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Qn)&&(n(Qn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Qn).nextButtonActive=this.isNextButtonActive(),n(Qn).prevButtonActive=this.isPrevButtonActive(),n(Qn).endScreenVideoTitle=o.nextVideoTitle,n(Qn).endScreenVideoThumb=o.nextVideoThumb,n(Qn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=Ds({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;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"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Qn)&&(n(Qn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Qn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Qn).nextButtonActive=this.isNextButtonActive(),n(Qn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Lp(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||r(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Lp(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=$e(this.store.state.positionExact$),l=$e(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Ui.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Ia(e)}};var ud=require("@vkontakte/videoplayer-shared/es2015"),Op=require("@vkontakte/videoplayer-core/es2015"),Kw=()=>{window.customElements.define("vk-video-player",Vp)};
|
|
407
|
+
/* \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 */.vk-vp-root.svelte-3c0y7j .out-of-view {position:absolute !important;left:-1000vh !important;}.vk-vp-root.svelte-3c0y7j .icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function _g(t,e){F(e,!0),W(t,hw);let[i,o]=De(),r=()=>S(Gt,"$isLive$",i),s=()=>S(Ct,"$availableSubtitlesList$",i),l=()=>S(et,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),a=h(e,"store",7),u=h(e,"microStoresRoot",7),f=h(e,"videoConfig",7),v=h(e,"uiConfig",7),p=h(e,"title",7),x=h(e,"thumbUrl",7),w=h(e,"interactiveContainer",7),y=h(e,"interactiveController",7),C=h(e,"subtitles",7),T=h(e,"subtitlesForcedLanguage",7),E=h(e,"live",7),R=h(e,"preload",7),A=h(e,"autoplay",7),I=h(e,"volume",7,void 0),N=h(e,"muted",7,void 0),H=h(e,"fromTime",7),B=h(e,"canRewindLive",7),z=h(e,"showAds",7),X=h(e,"adsSlotId",7,void 0),ae=h(e,"adsParams",7,void 0),Q=h(e,"adsAutoplayParam",7,void 0),ce=h(e,"duration",7,void 0),J=h(e,"logoClickable",7),me=h(e,"logoHidden",7),se=h(e,"isMobile",7),le=h(e,"showNextPrevButtons",7,!1),Pe=h(e,"nextButtonActive",7,!1),ye=h(e,"prevButtonActive",7,!1),ee=h(e,"endScreenVideoTitle",7,void 0),Be=h(e,"endScreenVideoThumb",7,void 0),pe=h(e,"isOneVideoPlaylist",7,!1),k=h(e,"supportLink",7),Ge=h(e,"shadowRootContainer",7),Me=h(e,"outerContainerRef",7),Y=h(e,"fullScreenTarget",7,void 0),oe=h(e,"failoverHosts",7,void 0),He=h(e,"showMiniTimer",7,!1),Xe=h(e,"saveRate",7),ge=h(e,"seekToInteractive",7,nl.noop),ie=h(e,"playPrevChapter",7,nl.noop),ke=h(e,"volumeMultiplier",7),we=h(e,"showAutoplayNext",7),Fe=h(e,"showEndScreen",7,!0),Je=h(e,"keyboardControls",15,void 0),{subscribers:Ye,stores:qe}=u();w1(v());let Ze=Nt(),Ht=v().logoLink,st=a().ui.debugPanelVisible,Ft=a().ui.playerSize,Gt=a().state.isLive$,ti=a().state.isInteractive&&od.clientChecker.device.isAndroid,qt=j(void 0),Ce=null,xe=j(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{vsid:a().vsid}),V1(a(),qe),Qe(()=>{var K,Pt;a().ui.isMobile.set(se()),(Pt=(K=f().callbacks)==null?void 0:K.onDomReady)==null||Pt.call(K)});let te=(K=!1)=>{O(xe,!0),K?a().actions.external.firstStart(z()):a().actions.internal.firstStart(z())},Te=()=>{if(Ze.features.qualityDetailsSubMenuEnabled){let K=i0(a().videoId);if(K)switch(K.type){case"high_quality":a().actions.internal.setHighQualityEnabled(!0,K.appliesTo);break;case"traffic_saving":a().actions.internal.setTrafficSavingEnabled(!0,K.appliesTo);break;case"exact_quality":a().actions.internal.setQuality(K.quality);break}}else{o0(a().videoId),Qf()&&a().actions.internal.setTrafficSavingEnabled(!0);let Pt=zf(a().videoId);Pt&&a().actions.internal.setQuality(Pt)}};function Ve(K){var Xt,ft,Ui;let Pt=d()||K;Pt&&a().initVideo({container:n(qt),sources:Pt,failoverHosts:oe(),subtitles:C(),subtitlesForcedLanguage:T(),volumeMultiplier:ke()});let ni=nl.safeStorage.get(Ud)==="true";st.set(ni),H()>0&&a().actions.external.seekTime(H());let _t=se()?Ze.volumeDefault:(ft=(Xt=I())!=null?Xt:Vu())!=null?ft:Ze.volumeDefault,Mt=(Ui=N())!=null?Ui:Y1();if(a().actions.external.setVolume(_t),a().actions.external.setMuted(Mt),a().getAdmanWrapper().setInitialVolume(Mt?0:_t),Te(),Ze.features.saveRate&&Xe()){let zi=J1();zi&&!r()&&a().actions.internal.setPlaybackRate(zi)}if(we()){let zi=t0();zi&&a().actions.internal.setAutoplayNextEnabled(zi)}a().ui.isAutoplay.set(A()),A()&&te(),R()&&Ze.features.preload&&a().actions.internal.preload()}let Vt=K=>{if(window.ResizeObserver){let Pt,ni;Ce=new ResizeObserver((0,nl.throttleFn)(_t=>{let Mt=_t[0];if(Mt.contentBoxSize){let Xt=Array.isArray(Mt.contentBoxSize)?Mt.contentBoxSize[0]:Mt.contentBoxSize;Pt=Xt.inlineSize,ni=Xt.blockSize}else Mt.contentRect&&(Pt=Mt.contentRect.width,ni=Mt.contentRect.height);Ft.set({width:Pt,height:ni})},300)),Ce.observe(K)}Ft.set({width:K.clientWidth,height:K.clientHeight})},Re=()=>{document.hidden&&a().actions.external.stop()};Bt(()=>{var ni,_t,Mt,Xt;ti&&document.addEventListener("visibilitychange",Re),Ze.debugLog&&a().actions.internal.startLogging(),Vt(n(qt));let K=Ye.map(ft=>ft.init({store:a(),microStores:qe,config:f(),interactiveController:y(),uiConfig:v()})),Pt=()=>{ti&&document.removeEventListener("visibilitychange",Re),Ce==null||Ce.disconnect(),K.forEach(ft=>ft.unsubscribe()),a().destroy()};return((ni=E())==null?void 0:ni.status)==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),Pt):((_t=E())==null?void 0:_t.status)==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),Pt):(((Mt=E())==null?void 0:Mt.status)==="finished"||((Xt=E())==null?void 0:Xt.status)==="postlive")&&!(d()&&(0,od.areValidLiveRecordSources)(d()))?(a().actions.internal.setLiveWaitingRecord(!0),Pt):(Ve(),Pt)});function dt(){n(xe)?a().actions.external.play():te(!0)}function It(){a().actions.external.pause()}function Se(K){a().actions.external.setMuted(K)}function at(){a().actions.external.toggleSubtitle()}function We(K,Pt){a().actions.external.changeSubtitle(K,Pt)}function pt(K){a().actions.external.changeAudioStream(K)}function Yt(){var K;(K=a().webApi.slotsApi)!=null&&K.haveSlots()&&a().actions.external.hideControls()}function yi(){var K;(K=a().webApi.slotsApi)!=null&&K.haveSlots()&&a().actions.external.showControls()}function mi(K){se()||K>=0&&K<=1&&a().actions.external.setVolume(K)}function Si(K){a().actions.internal.seekTime(K,E_.SeekAction.UNKNOWN)}function lo(K){a().actions.external.seekEpisodeStartTime(K)}function co(){a().actions.external.returnFocusToEpisodes()}function ci(K){a().actions.external.setPlaybackRate(K)}function ht(K){a().actions.external.setAutoQualityLimits(K)}function xi(){a().actions.external.setQuality("auto")}function di(K){a().actions.external.setTrafficSavingEnabled(K)}function yt(K){a().actions.external.setHighQualityEnabled(K)}let gi=xp(Ze.view),Jt=f().playerView==="preview",Ct=a().state.availableSubtitlesList$;if(Ze.features.initSubtitles){let K=!1;Qe(()=>{var Pt;if(!K&&s().length){K=!0;let ni;if(Ze.features.userVideoPrefs&&a().videoId){let Mt=Du(Ze.userSalt,String(a().videoId));Mt!=null&&Mt.subtitleTrackId&&(ni=s().find(Xt=>Xt.value===Mt.subtitleTrackId))}let _t=(Pt=T())!=null?Pt:Gf();_t&&(ni=s().find(Mt=>Mt.language===_t)),a().actions.internal.setSubtitle(ni)}})}let et=a().ui.isPreviewTrackHorizontallyAligned;var ki=gw();let Co;var jo=_(ki);{var pn=K=>{gg(K,{get store(){return a()},get uiConfig(){return Ze},get thumbUrl(){return x()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return ae()},get adsAutoplayParam(){return Q()},get duration(){return ce()},get logoClickable(){return J()},get logoHidden(){return me()},get logoTargetUrl(){return Ht},get nextButtonActive(){return Pe()},get prevButtonActive(){return ye()},get endScreenVideoTitle(){return ee()},get endScreenVideoThumb(){return Be()},get isOneVideoPlaylist(){return pe()},get supportLink(){return k()},get shadowRootContainer(){return Ge()},get outerContainerRef(){return Me()},get fullScreenTarget(){return Y()},get showMiniTimer(){return He()},get playerStarted(){return n(xe)},get seekToInteractive(){return ge()},get playPrevChapter(){return ie()},firstStart:te,seekTime:Si,get showEndScreen(){return Fe()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return le()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(qt)},set videoContainer(Pt){O(qt,Pt,!0)}})},At=K=>{var Pt=ze(),ni=fe(Pt);{var _t=Xt=>{hg(Xt,{get thumbUrl(){return x()},get outsideDuration(){return ce()},get canRewindLive(){return B()},get videoContainer(){return n(qt)},set videoContainer(ft){O(qt,ft,!0)}})},Mt=Xt=>{vg(Xt,{get store(){return a()},get uiConfig(){return Ze},get title(){return p()},get thumbUrl(){return x()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return ae()},get adsAutoplayParam(){return Q()},get duration(){return ce()},get logoClickable(){return J()},get logoHidden(){return me()},get logoTargetUrl(){return Ht},get nextButtonActive(){return Pe()},get prevButtonActive(){return ye()},get endScreenVideoTitle(){return ee()},get endScreenVideoThumb(){return Be()},get isOneVideoPlaylist(){return pe()},get supportLink(){return k()},get shadowRootContainer(){return Ge()},get outerContainerRef(){return Me()},get fullScreenTarget(){return Y()},get showMiniTimer(){return He()},get playerStarted(){return n(xe)},get seekToInteractive(){return ge()},get playPrevChapter(){return ie()},firstStart:te,get showEndScreen(){return Fe()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return le()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(qt)},set videoContainer(ft){O(qt,ft,!0)},get keyboardControls(){return Je()},set keyboardControls(ft){Je(ft)}})};V(ni,Xt=>{Jt?Xt(_t):Xt(Mt,!1)})}b(K,Pt)};V(jo,K=>{se()?K(pn):K(At,!1)})}g(ki),D(K=>{Co=re(ki,1,"vk-vp-root svelte-3c0y7j",null,Co,K),it(ki,gi)},[()=>({"root--miui-browser":od.clientChecker.device.isMobile&&od.clientChecker.browser.isMiuiBrowser,"visible-outside":Jt,"preview-track-horizontally-alinged":l()})]),b(t,ki);var Ut=U({initVideo:Ve,play:dt,pause:It,setMuted:Se,toggleSubtitle:at,changeSubtitle:We,changeAudioStream:pt,hideControls:Yt,showControls:yi,setVolume:mi,seekTime:Si,seekEpisodeStartTime:lo,returnFocusToEpisodes:co,setPlaybackRate:ci,setAutoQualityLimits:ht,setAutoQuality:xi,toggleTrafficSaving:di,toggleHighQuality:yt,get sources(){return d()},set sources(K){d(K)},get store(){return a()},set store(K){a(K)},get microStoresRoot(){return u()},set microStoresRoot(K){u(K)},get videoConfig(){return f()},set videoConfig(K){f(K)},get uiConfig(){return v()},set uiConfig(K){v(K)},get title(){return p()},set title(K){p(K)},get thumbUrl(){return x()},set thumbUrl(K){x(K)},get interactiveContainer(){return w()},set interactiveContainer(K){w(K)},get interactiveController(){return y()},set interactiveController(K){y(K)},get subtitles(){return C()},set subtitles(K){C(K)},get subtitlesForcedLanguage(){return T()},set subtitlesForcedLanguage(K){T(K)},get live(){return E()},set live(K){E(K)},get preload(){return R()},set preload(K){R(K)},get autoplay(){return A()},set autoplay(K){A(K)},get volume(){return I()},set volume(K){I(K)},get muted(){return N()},set muted(K){N(K)},get fromTime(){return H()},set fromTime(K){H(K)},get canRewindLive(){return B()},set canRewindLive(K){B(K)},get showAds(){return z()},set showAds(K){z(K)},get adsSlotId(){return X()},set adsSlotId(K){X(K)},get adsParams(){return ae()},set adsParams(K){ae(K)},get adsAutoplayParam(){return Q()},set adsAutoplayParam(K){Q(K)},get duration(){return ce()},set duration(K){ce(K)},get logoClickable(){return J()},set logoClickable(K){J(K)},get logoHidden(){return me()},set logoHidden(K){me(K)},get isMobile(){return se()},set isMobile(K){se(K)},get showNextPrevButtons(){return le()},set showNextPrevButtons(K){le(K)},get nextButtonActive(){return Pe()},set nextButtonActive(K){Pe(K)},get prevButtonActive(){return ye()},set prevButtonActive(K){ye(K)},get endScreenVideoTitle(){return ee()},set endScreenVideoTitle(K){ee(K)},get endScreenVideoThumb(){return Be()},set endScreenVideoThumb(K){Be(K)},get isOneVideoPlaylist(){return pe()},set isOneVideoPlaylist(K){pe(K)},get supportLink(){return k()},set supportLink(K){k(K)},get shadowRootContainer(){return Ge()},set shadowRootContainer(K){Ge(K)},get outerContainerRef(){return Me()},set outerContainerRef(K){Me(K)},get fullScreenTarget(){return Y()},set fullScreenTarget(K){Y(K)},get failoverHosts(){return oe()},set failoverHosts(K){oe(K)},get showMiniTimer(){return He()},set showMiniTimer(K){He(K)},get saveRate(){return Xe()},set saveRate(K){Xe(K)},get showAutoplayNext(){return we()},set showAutoplayNext(K){we(K)},get seekToInteractive(){return ge()},set seekToInteractive(K){ge(K)},get playPrevChapter(){return ie()},set playPrevChapter(K){ie(K)},get volumeMultiplier(){return ke()},set volumeMultiplier(K){ke(K)},get showEndScreen(){return Fe()},set showEndScreen(K){Fe(K)},get keyboardControls(){return Je()},set keyboardControls(K){Je(K)}});return o(),Ut}var _w=Ie('<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 bg(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=_w();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function $g(t,e){let i=h(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");bg(t,{get style(){return n(o)}})}var bw=M('<div class="title svelte-1y9fytq"> </div>'),$w=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),yw={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 yg(t,e){W(t,yw);var i=$w(),o=_(i);{var r=d=>{var a=bw(),u=_(a,!0);g(a),D(()=>ve(u,e.title)),b(d,a)};V(o,d=>{e.title&&d(r)})}var s=P(o,2);{var l=d=>{let a=m(()=>!!e.thumbUrl);$g(d,{get isWhite(){return n(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),D(()=>it(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var xw=M('<div class="playerError svelte-m5iv29"><!></div>'),ww={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function xg(t){W(t,ww);var e=xw(),i=_(e);Xa(i,{}),g(e),b(t,e)}var Vp=require("@vkontakte/videoplayer-shared/es2015"),Fi=require("@vkontakte/videoplayer-shared/es2015"),Qc=require("@vkontakte/videoplayer-core/es2015"),dd=require("@vkontakte/videoplayer-statistics/es2015");var Sp=require("@vkontakte/videoplayer-shared/es2015"),wp=class{constructor(){this.subscription=new Sp.Subscription,this.logger=new Sp.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[r,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,s)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=$e(e.state.currentPlaybackRate$),r=$e(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var rd=require("@vkontakte/videoplayer-shared/es2015");var Sw=Ie('<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 wg(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Sw();Ae(o,()=>q({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var Cw=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Tw={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 Sg(t,e){F(e,!0),W(t,Tw);let[i,o]=De(),r=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=he(),d=Nt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=m(()=>r()&&v("pip_dummy_title")),x=xp(d.view);var w=Cw();let y;var C=_(w);let T;var E=_(C);wg(E,{}),g(C);var R=P(C,2),A=_(R,!0);g(R),g(w),D((I,N)=>{y=re(w,1,"player-pip-dummy svelte-1pbsod4",null,y,I),it(w,x),T=re(C,1,"dummy-image svelte-1pbsod4",null,T,N),ve(A,n(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),b(t,w),U(),o()}var Ew=Object.defineProperty,Iw=(t,e,i)=>e in t?Ew(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,nd=(t,e,i)=>Iw(t,typeof e!="symbol"?e+"":e,i),Cg=(t,e,i)=>new Promise((o,r)=>{var s=a=>{try{d(i.next(a))}catch(u){r(u)}},l=a=>{try{d(i.throw(a))}catch(u){r(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),kw=460,Aw=280,Dc=class{constructor({enabled:e=!0}={enabled:!0}){nd(this,"playerDomElement"),nd(this,"playerParentShadowRoot"),nd(this,"playerDummyElement"),nd(this,"svelteContext"),nd(this,"pipWindow"),nd(this,"info",{isActive$:new rd.ValueSubject(!1),isEnabled$:new rd.ValueSubject(!1),type:1}),this.info.isEnabled$=new rd.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,rd.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return Cg(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:kw,height:Aw,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(`
|
|
408
|
+
`),r=document.createElement("style");r.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Kr(Sg,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ea(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return Cg(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return Cg(this,null,function*(){yield this.exit()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function I_(t){return t instanceof Dc}var Cp=class{static getLatestSupportedVersion(e){let i=new Oa(e),o=new Dc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Bc(t,e){var r,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(r=e[l])!=null?r:t[l])!=null?s:void 0;return o}var k_="Inner error. Unexpectedly root annotation container null reference exception",A_="Annotation with such name already exists",P_="Annotation with such name does not exist";var sd=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var ad=require("@vkontakte/videoplayer-shared/es2015"),Pw="1",Mw=100,Tp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new ad.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,ad.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"},Mw);this.subscriptions.add((0,ad.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new sd(k_);if(this.annotations.has(e))throw new sd(A_);i.style.zIndex=(o=i.style.zIndex)!=null?o:Pw,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 sd(P_);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 r=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||s<0||s+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var rl=require("@vkontakte/videoplayer-shared/es2015"),un=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,rl.assertNonNullable)(e),(0,rl.assertNonNullable)(i),(0,rl.assertNonNullable)(r),r.interactiveData&&(0,rl.assertNonNullable)(o),this.subscription=new rl.Subscription,this.subscription}};var Hc=class extends un{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=jt(q({},de(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Fc=class extends un{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=jt(q({},de(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,v=$e(f),p=()=>v&&$e(u);return o.add(u.subscribe(x=>{if(!v)return;let w=$e(l);$e(a)?this.state$.set(x):w!==null&&this.state$.set(!w||x)})),o.add(a.subscribe(x=>{this.state$.set(!x||p())})),o.add(l.subscribe(x=>{if(x===null)return;let w=$e(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!x)})),o}};var Uc=class extends un{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=de("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var M_=require("@vkontakte/videoplayer-shared/es2015");var Tg=de(!1),Ep=null,zc=class extends un{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=jt(q({},Tg),{set:(i,o=!1)=>{i!==$e(Tg)&&(this.clearTimeout(),Tg.set(i),!i&&Ep&&(Ep=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,a=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(a.subscribe(v=>{$e(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,M_.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:x})=>{var w,y;if(!(!v||!(x!=null&&x.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Ep===null&&(Ep=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=r.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Ip=require("@vkontakte/videoplayer-shared/es2015");var Wc=class extends un{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=jt(q({},de(null)),{toggle:Ip.noop});this.checkIfShouldHide=i=>As(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>wt(this,null,function*(){if(this.checkIfShouldHide($e(l)))return;let a=$e(this.state$),{isEnded$:u,playbackState$:f}=r.state,{disabledControls$:v}=r.ui.controls,p=$e(u),x=$e(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),v.remove(Of),!p&&this.graphMadePause&&r.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=x==="playing";try{yield s==null?void 0:s.toggleGraphView(!0),this.state$.set(!0),v.add(Of),!p&&this.graphMadePause&&r.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add((0,Ip.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>wt(this,[f],function*({graphIsOpened:a,currentGridType:u}){if(this.checkIfShouldHide(u)&&a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};var Eg=require("@vkontakte/videoplayer-shared/es2015"),Kc=class extends un{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:de(!1),isEnabled$:de(!1),type$:de(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new Eg.ValueSubject(!1),isEnabled$:new Eg.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var Ap=require("@vkontakte/videoplayer-shared/es2015");var kp=require("@vkontakte/videoplayer-shared/es2015");var L_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Lw({maxCount:t}):void 0,e!==0?Vw({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},Lw=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,kp.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},Vw=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(kp.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>kp.safeStorage.set(e,JSON.stringify(s)),r=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(jt(q({},i()),{[s]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&r(s),d}else return!0}}};var qc=class extends un{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:de({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=L_({maxShowCount:s,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Ap.filterChanged)(),(0,Ap.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var V_=()=>[Hc,Fc,Uc,zc,Wc,Kc,qc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:jt(q({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var ld=require("@vkontakte/videoplayer-shared/es2015");var Pp=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var Rw=M('<div class="root svelte-9ubj1t"><!></div>'),Ow={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function Ig(t,e){F(e,!0),W(t,Ow);let i=null,o=j(null);Qe(()=>(n(o)&&(i=window.setTimeout(()=>{O(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(a){e.playbackStatusShow&&O(o,a?"prev":"next",!0)}var s=ze(),l=fe(s);{var d=a=>{var u=ze(),f=fe(u);Ss(f,()=>n(o),v=>{var p=Rw(),x=_(p);let w=m(()=>n(o)==="prev");Nc(x,{get duration(){return e.animationDuration},get Icon(){return bc},get isPrev(){return n(w)}}),g(p),b(v,p)}),b(a,u)};V(l,a=>{e.playbackStatusShow&&n(o)&&a(d)})}return b(t,s),U({startVideoChangedAnimation:r})}var Nw=Object.defineProperty,Dw=Object.defineProperties,Bw=Object.getOwnPropertyDescriptors,R_=Object.getOwnPropertySymbols,Hw=Object.prototype.hasOwnProperty,Fw=Object.prototype.propertyIsEnumerable,Ag=(t,e,i)=>e in t?Nw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Os=(t,e)=>{for(var i in e||(e={}))Hw.call(e,i)&&Ag(t,i,e[i]);if(R_)for(var i of R_(e))Fw.call(e,i)&&Ag(t,i,e[i]);return t},Uw=(t,e)=>Dw(t,Bw(e)),ei=(t,e,i)=>Ag(t,typeof e!="symbol"?e+"":e,i),Mp=(t,e,i)=>new Promise((o,r)=>{var s=a=>{try{d(i.next(a))}catch(u){r(u)}},l=a=>{try{d(i.throw(a))}catch(u){r(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),zw={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Fi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Qc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Gn=j(void 0),kg=ai({animationDuration:0,playbackStatusShow:!1}),Lp=class extends HTMLElement{constructor(){super(),ei(this,"svelteStubComponent"),ei(this,"svelteRootComponent"),ei(this,"sveltePersistentLayerComponent"),ei(this,"svelteErrorComponent"),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,"playerId"),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,"fatalError$",new Vp.ValueSubject(null)),ei(this,"createOneStat",(e,i={})=>{var o,r,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:x,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:E}=Bc(this.videoConfig,i),R=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(s=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?s:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:N=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new dd.OneStat(Os({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=x&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:N,refDomain:C,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview"},R&&(!this.isInited||A)&&{projectId:Number(R)}),Os({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(B){console.error(B),this.log({message:B.message})}}),ld.devNull.create("ui"),this.logger=new Fi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Fi.Subscription,this.interactiveSubscription=new Fi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Kr(xg,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=ai({title:o,thumbUrl:r}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Kr(yg,l),this.sveltePersistentLayerComponent=Kr(Ig,{target:this.playerContainer,props:kg})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;kg.animationDuration=e,kg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),ld.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:r,refreshStatAuthToken:s}=Bc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new dd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var r,s,l,d,a,u,f,v,p,x;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:C,preload:T,autoplay:E,volume:R,muted:A,fromTime:I,canRewindLive:N,supportLink:H,showAds:B,adsSlotId:z,adsParams:X={},adsAutoplayParam:ae,interfaceLanguage:Q,isCyrillicRelatedInterface:ce,logoClickable:J,logoHidden:me,isMobile:se,isTouch:le,isAudioDisabled:Pe,isLiveCatchUpMode:ye,fullScreenTarget:ee,failoverHosts:Be,canDownload:pe,callbacks:k,interactiveData:Ge,showThumbTimer:Me,additionalButtons:Y=[],additionalSettingsMenuItems:oe=[],additionalContextMenuItems:He=[],repeat:Xe,loop:ge,saveRate:ie,volumeMultiplier:ke,showEndScreen:we,showAutoplayNext:Fe,mediascopePixels:Je}=Bc(this.videoConfig,i),{sources:Ye,title:qe,thumbUrl:Ze,unitedVideoId:Ht,isClip:st=!1,duration:Ft,adsParams:Gt={},videoEpisodes:kt,previewThumbsData:ti,subtitles:qt,subtitlesForcedLanguage:Ce,live:xe,adsExternalApi:te}=e;if(!Ye&&!xe){let ci=new Error("empty sources and live");this.fatalError$.next(ci),(r=k.onCrashed)==null||r.call(k,ci.message);return}let Te=Os(Os({},X),Gt),Ve=this.getNextVideoInfo(),Vt={sources:Ye,title:qe,thumbUrl:Ze,subtitles:qt,subtitlesForcedLanguage:Ce,unitedVideoId:Ht,isClip:st,live:xe,albumId:w,statPlace:y,autoplay:E,muted:A,volume:R,fromTime:I,canRewindLive:N,showAds:B,adsSlotId:z,adsParams:Te,adsAutoplayParam:ae,duration:Ft,logoClickable:J,logoHidden:me,isTouch:le!=null?le:se,repeat:Xe,loop:ge,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ve.nextVideoTitle,endScreenVideoThumb:Ve.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Re={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Vt)}`});let dt=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),It=(dt==null?void 0:dt.oneStat)||this.createOneStat(e,i),Se=this.createThinOneStat(e,i),at;Je&&(at=new dd.MediascopePixel({pixels:Je})),(It||Se)&&(this.statistics=new ap(It,Se,at,dt==null?void 0:dt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ra(this.uiConfig.sentry,{version:Ma,env:Pu},{movieId:Ht,albumId:w,place:y,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:le!=null?le:se,clip:st}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry=Os(Os({},this.sentry),Ra.getInstance());let pt=!!Ge,Yt=[],yi="tooltip_interactive_go_back_disabled_first";if(pt&&this.interactiveController){let ci=this.interactiveController.state.isInitialChapter$.getValue(),ht=this.interactiveController.getHistoryState();ci&&Yt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Yt.push("SEEK_TO_INTERACTIVE_BUTTON"),ht.hasPrevChapter$.getValue()||(Yt.push("PLAY_PREV_CHAPTER_BUTTON"),ci||(ht.isGoBackLimited$.getValue()?yi="tooltip_interactive_go_back_disabled_limit":yi="tooltip_interactive_go_back_disabled"))}let mi=()=>{var ci;this.isInited=!1,this.prevIsid=void 0;let ht=(o==null?void 0:o.info.isEnded$.getValue())&&((ci=this.interactiveController)==null?void 0:ci.state.isEndChapter$.getValue());k.onReplayInteractiveVideo&&!ht?k.onReplayInteractiveVideo():this.replayInteractiveVideo()},Si=Xe&&this.videoConfig.videos.length===1;this.store=q0({player:o,interfaceLanguage:Q,isCyrillicRelatedInterface:ce,videoId:Ht,isClip:st,isLiveCatchUpMode:ye,isAudioDisabled:Pe,statAuthToken:C,callbacks:k,webApi:Re,videoEpisodes:kt,previewThumbsData:ti,canDownload:pe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Yt,isInteractive:pt,saveRate:ie,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:mi,playPrevChapterDisabledTooltip:yi,hasInteractiveBranches:!!((x=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&x.length),additionalButtons:this.uiConfig.features.additionalButtons?Y:[],additionalSettingsMenuItems:oe!=null?oe:[],additionalContextMenuItems:He!=null?He:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ci=>{var ht;return(ht=this.sveltePersistentLayerComponent)==null?void 0:ht.startVideoChangedAnimation(ci)},looped:this.uiConfig.features.useLoopSetting?ge:Si,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:lo}=this.microStoresRoot=V_(),co=()=>{var ci,ht,xi,di,yt,gi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Ct=>{var et;return(et=k==null?void 0:k.onCurrentFormatChanged)==null?void 0:et.call(k,Ct)})),this.subscription.add(lo.interactiveControlsOpacity$.subscribe(Ct=>{var et;Ct!==null&&((et=this==null?void 0:this.interactiveController)==null||et.setDisabledControls(Ct))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ct=>{var et;return(et=k==null?void 0:k.onThroughputEstimationChanged)==null?void 0:et.call(k,Ct)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ct=>{var et;return(et=k==null?void 0:k.onTrafficSavingEnabledChanged)==null?void 0:et.call(k,Ct)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Ct=>{var et;return(et=k==null?void 0:k.onHighQualityEnabledChanged)==null?void 0:et.call(k,Ct)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Ct=>{var et;return(et=k==null?void 0:k.onAutoQualityEnabledChanged)==null?void 0:et.call(k,!!Ct)})),this.subscription.add(new Fi.Observable(Ct=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(et=>Ct.next(et)))}).pipe((0,Fi.skip)(1)).subscribe(Ct=>{var et;return(et=k==null?void 0:k.onCurrentPlaybackRateChanged)==null?void 0:et.call(k,Ct)})),this.subscription.add(this.store.state.volume$.subscribe(Ct=>{var et;return(et=k==null?void 0:k.onVolumeChange)==null?void 0:et.call(k,Ct)})),this.subscription.add(this.store.state.muted$.subscribe(Ct=>{var et,ki,Co,jo;if(Ct)(et=k==null?void 0:k.onMute)==null||et.call(k);else{let pn=(Co=((ki=this.store)==null?void 0:ki.state.volume$)&&$e(this.store.state.volume$))!=null?Co:0;(jo=k==null?void 0:k.onUnmute)==null||jo.call(k,pn)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ct=>{var et;return(et=k==null?void 0:k.onVideoBitrateChanged)==null?void 0:et.call(k,Ct)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ct=>{var et;let ki=(et=this.store)==null?void 0:et.ui.controls.disabledControls$;ki&&(Ct&&!ki.includes(zd)&&ki.add(zd),Ct||ki.remove(zd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Ct=>Mp(this,null,function*(){var et;if(!Qc.clientChecker.browser.isSamsungBrowser||!Ct||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((et=this.videoConfig)==null?void 0:et.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Ct=>{var et;return(et=k==null?void 0:k.onVSIDChanged)==null?void 0:et.call(k,Ct)})),this.initMediaSession(),O(Gn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ye,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:qe,thumbUrl:Ze,subtitles:qt,subtitlesForcedLanguage:Ce,live:xe,preload:T,autoplay:E,muted:A,volume:R,fromTime:I,canRewindLive:N,supportLink:H,showAds:B,adsSlotId:z,adsParams:Te,adsAutoplayParam:ae,duration:Ft,logoClickable:J,logoHidden:me,isMobile:le!=null?le:se,failoverHosts:Be,fullScreenTarget:ee,saveRate:ie,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Me,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ve.nextVideoTitle,endScreenVideoThumb:Ve.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ke,showEndScreen:we,showAutoplayNext:Fe,adsExternalApi:te},!0);let Jt={target:this.playerContainer,props:n(Gn)};this.svelteRootComponent=Kr(_g,Jt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(xi=(ht=(ci=this.videoConfig)==null?void 0:ci.callbacks)==null?void 0:ht.onInited)==null||xi.call(ht)),(di=this.internalsExposure)==null||di.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((gi=(yt=this.videoConfig)==null?void 0:yt.callbacks)!=null&&gi.onDevNullLog)?ld.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):ld.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Qc.clientChecker.isInited$.subscribe(ci=>{ci&&(console.log("UI SDK async start"),co())}):co()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Fi.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return Mp(this,null,function*(){var e,i,o,r,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?$e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:x}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:p,vkVideoLoader:x,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let C=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Uw(Os({},T.config),{title:(f==null?void 0:f.title)||T.config.title});let E=C?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),C&&(C=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var R,A,I,N,H,B;if(!this.store||!this.microStoresRoot)return;let z=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Wd)),T==="action-choice-canceled"){let X=$e(this.store.state.isPlaying$)||z;if(((I=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?I:(A=this.videoConfig)!=null&&A.isMobile)&&X){this.store.ui.interactiveHideMobileControls.set(!0);return}(B=(N=this.videoConfig)==null?void 0:(H=N.callbacks).onDisabledInteractiveClick)==null||B.call(H)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(Wd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var R,A,I;E.length&&((I=(A=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||I.call(A,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,R,A;(A=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveChapterChanged)==null||A.call(R,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,R,A;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(R)})),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,r,s,l,d,a,u,f,v,p,x,w,y,C,T,E,R,A,I,N,H,B,z,X,ae,Q,ce,J;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let me=new Error("empty videos");this.fatalError$.next(me),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,me.message);return}else this.fatalError$.next(null);if(this.videoConfig=Bc(zw,(0,Fi.cloneDeepWith)(e,me=>me instanceof HTMLElement?me:void 0)),this.playerId=(0,Fi.getPlayerId)(e.playerId),this.uiConfig=x1((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Fi.InternalsExposure("ui",this.playerId))),ld.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,Vp.now)()]}),(0,Fi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),(0,Fi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(x=this.uiConfig.features.pip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(C=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.uiConfig.ads.paramsOverride=Os({preview:(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(R=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(N=this.uiConfig.ads.slot)!=null?N:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((H=this.uiConfig.showLogo)!=null?H:!this.videoConfig.logoHidden),(B=this.videoConfig).canRewindLive&&(B.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(X=this.uiConfig.features.endScreen)!=null?X:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(ae=this.uiConfig.features.autoplayNext)!=null?ae:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Q=this.uiConfig.features.nextPrevButtons)!=null?Q:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ce=this.videoConfig.videos)!=null&&ce[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let me={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Cp.getLatestSupportedVersion(me):this.pictureInPictureApi=new Oa(me)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new wp:void 0,this.slotsApi=this.uiConfig.features.slots?new bp:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Tp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),I_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(J=this.slotsApi)==null||J.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Pp(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Gn)&&(n(Gn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Gn).nextButtonActive=this.isNextButtonActive(),n(Gn).prevButtonActive=this.isPrevButtonActive(),n(Gn).endScreenVideoTitle=o.nextVideoTitle,n(Gn).endScreenVideoThumb=o.nextVideoThumb,n(Gn).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}=Os({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;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"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Gn)&&(n(Gn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Gn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Gn).nextButtonActive=this.isNextButtonActive(),n(Gn).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,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Mp(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||r(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Mp(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=$e(this.store.state.positionExact$),l=$e(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Fi.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Ea(e)}};var cd=require("@vkontakte/videoplayer-shared/es2015"),Rp=require("@vkontakte/videoplayer-core/es2015"),Ww=()=>{window.customElements.define("vk-video-player",Lp)};
|