@vkontakte/videoplayer 1.1.64-dev.e0c286d1.0 → 1.1.64
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 +66 -66
- package/es2015.esm.js +66 -66
- package/es2018.cjs.js +68 -68
- package/es2018.esm.js +68 -68
- package/es2024.cjs.js +70 -70
- package/es2024.esm.js +70 -70
- package/esnext.cjs.js +70 -70
- package/esnext.esm.js +70 -70
- package/evergreen.esm.js +70 -70
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.svelte.d.ts +2 -0
- package/types/components/Root/types.d.ts +2 -0
- package/types/config.d.ts +2 -0
- package/types/store/index.d.ts +13 -1
- package/types/store/utils.d.ts +1 -1
- package/types/utils/webAPI/slotsApi.d.ts +26 -2
package/es2018.esm.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.64
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.64
|
|
3
|
+
* Tue, 10 Jun 2025 18:54:17 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
|
|
5
5
|
*/
|
|
6
|
-
var
|
|
6
|
+
var N1=Object.defineProperty;var Um=t=>{throw TypeError(t)};var B1=(t,e,i)=>e in t?N1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Cn=(t,e,i)=>B1(t,typeof e!="symbol"?e+"":e,i),bu=(t,e,i)=>e.has(t)||Um("Cannot "+i);var Vi=(t,e,i)=>(bu(t,e,"read from private field"),i?i.call(t):e.get(t)),ls=(t,e,i)=>e.has(t)?Um("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),xa=(t,e,i,o)=>(bu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),zm=(t,e,i)=>(bu(t,e,"access private method"),i);var ds="[",Ps="[!",As="]",zr={};var Ri=Symbol(),bi=Symbol("filename"),qm=Symbol("hmr"),Wm="http://www.w3.org/1999/xhtml",$u="http://www.w3.org/2000/svg";var Wd=!0;var Qm,Gm,Km=(Gm=(Qm=globalThis.process)==null?void 0:Qm.env)==null?void 0:Gm.NODE_ENV,Ee=Km&&!Km.toLowerCase().startsWith("prod");var Bo=Symbol("$state"),qr=Symbol("$state metadata"),dl=Symbol("legacy props"),jm=Symbol("");var fr=Array.isArray,Ym=Array.prototype.indexOf,cl=Array.from,yu=Object.keys,oo=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,Kd=Object.getOwnPropertyDescriptors,xu=Object.prototype,Zm=Array.prototype,Wr=Object.getPrototypeOf;function cs(t){return typeof t=="function"}var ie=()=>{};function Xm(t){return t()}function us(t){for(var e=0;e<t.length;e++)t[e]()}var ul=[],wu=[];function Jm(){var t=ul;ul=[],us(t)}function D1(){var t=wu;wu=[],us(t)}function Wo(t){ul.length===0&&queueMicrotask(Jm),ul.push(t)}function Su(){ul.length>0&&Jm(),wu.length>0&&D1()}function Qd(t){return t===this.v}function wa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function ev(t,e){return t!==e}function Sa(t){return!wa(t,this.v)}function tv(){if(Ee){let t=new Error(`derived_references_self
|
|
7
7
|
A derived value cannot reference itself recursively
|
|
8
|
-
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function
|
|
8
|
+
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function iv(t){if(Ee){let e=new Error(`effect_in_teardown
|
|
9
9
|
\`${t}\` cannot be used inside an effect cleanup function
|
|
10
|
-
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function
|
|
10
|
+
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function ov(){if(Ee){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 nv(t){if(Ee){let e=new Error(`effect_orphan
|
|
11
11
|
\`${t}\` can only be used inside an effect (e.g. during component initialisation)
|
|
12
|
-
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function
|
|
12
|
+
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function rv(){if(Ee){let t=new Error(`effect_update_depth_exceeded
|
|
13
13
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
14
|
-
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function
|
|
14
|
+
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function sv(){if(Ee){let t=new Error(`hydration_failed
|
|
15
15
|
Failed to hydrate the application
|
|
16
|
-
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function av(){if(Ee){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function lv(t){if(Ee){let e=new Error(`props_invalid_value
|
|
17
17
|
Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
|
|
18
|
-
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function
|
|
18
|
+
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function dv(t){if(Ee){let e=new Error(`props_rest_readonly
|
|
19
19
|
Rest element properties of \`$props()\` such as \`${t}\` are readonly
|
|
20
|
-
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function
|
|
20
|
+
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function cv(t){if(Ee){let e=new Error(`rune_outside_svelte
|
|
21
21
|
The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
22
|
-
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function
|
|
22
|
+
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function uv(){if(Ee){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 pv(){if(Ee){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 fv(){if(Ee){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function mv(){if(Ee){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Lr=!1,Vr=!1;function vv(){Lr=!0}var pl=null;function Kr(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
|
|
23
23
|
`),n=[`
|
|
24
|
-
`];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;
|
|
25
|
-
`)}),
|
|
24
|
+
`];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;oo(e,"stack",{value:n.join(`
|
|
25
|
+
`)}),oo(e,"name",{value:`${t}Error`})}return e}var Ms=new Set,Ca=new Map;function ku(t){Ms=t}function Ki(t,e){var i={f:0,v:t,reactions:null,equals:Qd,rv:0,wv:0};return Ee&&Vr&&(i.created=e!=null?e:Kr("CreatedAt"),i.debug=null),i}function X(t){return O1(Ki(t))}function Gr(t,e=!1){var o,n;let i=Ki(t);return e||(i.equals=Sa),Lr&&Et!==null&&Et.l!==null&&((n=(o=Et.l).s)!=null?n:o.s=[]).push(i),i}function O1(t){return Ot!==null&&!kn&&(Ot.f&2)!==0&&(mr===null?_v([t]):mr.push(t)),t}function D(t,e){return Ot!==null&&!kn&&Rr()&&(Ot.f&18)!==0&&(mr===null||!mr.includes(t))&&mv(),Ta(t,e)}function Ta(t,e){var o;if(!t.equals(e)){var i=t.v;if(Vs?Ca.set(t,e):Ca.set(t,i),t.v=e,t.wv=ml(),Ee&&Vr&&(t.updated=Kr("UpdatedAt"),Tt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),hv(t,2048),Rr()&&Tt!==null&&(Tt.f&1024)!==0&&(Tt.f&96)===0&&(In===null?bv([t]):In.push(t)),Ee&&Ms.size>0){let n=Array.from(Ms);for(let a of n)(a.f&1024)!==0&&Go(a,4096),ps(a)&&Ia(a);Ms.clear()}}return e}function hv(t,e){var i=t.reactions;if(i!==null)for(var o=Rr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===Tt)){if(Ee&&(d&262144)!==0){Ms.add(s);continue}Go(s,e),(d&1280)!==0&&((d&2)!==0?hv(s,4096):ka(s))}}}function v(t){var e=2050,i=Ot!==null&&(Ot.f&2)!==0?Ot:null;Tt===null||i!==null&&(i.f&256)!==0?e|=256:Tt.f|=1048576;let o={ctx:Et,deps:null,effects:null,equals:Qd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:Tt};return Ee&&Vr&&(o.created=Kr("CreatedAt")),o}function gr(t){let e=v(t);return e.equals=Sa,e}function Gd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)ro(e[i])}}var Eu=[];function H1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function F1(t){var e,i=Tt;if(no(H1(t)),Ee){let o=Ms;ku(new Set);try{Eu.includes(t)&&tv(),Eu.push(t),Gd(t),e=jd(t)}finally{no(i),ku(o),Eu.pop()}}else try{Gd(t),e=jd(t)}finally{no(i)}return e}function Au(t){var e=F1(t),i=(jr||(t.f&256)!==0)&&t.deps!==null?4096:1024;Go(t,i),t.equals(e)||(t.v=e,t.wv=ml())}var Rs="font-weight: bold",Ns="font-weight: normal";function $v(t,e,i){Ee?console.warn(`%c[svelte] hydration_attribute_changed
|
|
26
26
|
%cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
|
|
27
|
-
https://svelte.dev/e/hydration_attribute_changed`,Rs,Ns):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function
|
|
27
|
+
https://svelte.dev/e/hydration_attribute_changed`,Rs,Ns):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function yv(t){Ee?console.warn(`%c[svelte] hydration_html_changed
|
|
28
28
|
%c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
|
|
29
|
-
https://svelte.dev/e/hydration_html_changed`,Rs,Ns):console.warn("https://svelte.dev/e/hydration_html_changed")}function Bs(t){
|
|
29
|
+
https://svelte.dev/e/hydration_html_changed`,Rs,Ns):console.warn("https://svelte.dev/e/hydration_html_changed")}function Bs(t){Ee?console.warn(`%c[svelte] hydration_mismatch
|
|
30
30
|
%c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
|
|
31
|
-
https://svelte.dev/e/hydration_mismatch`,Rs,Ns):console.warn("https://svelte.dev/e/hydration_mismatch")}function
|
|
31
|
+
https://svelte.dev/e/hydration_mismatch`,Rs,Ns):console.warn("https://svelte.dev/e/hydration_mismatch")}function xv(){Ee?console.warn(`%c[svelte] lifecycle_double_unmount
|
|
32
32
|
%cTried to unmount a component that was not mounted
|
|
33
|
-
https://svelte.dev/e/lifecycle_double_unmount`,Rs,Ns):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function
|
|
33
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Rs,Ns):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function wv(t,e,i){Ee?console.warn(`%c[svelte] ownership_invalid_binding
|
|
34
34
|
%c${t} passed a value to ${e} with \`bind:\`, but the value is owned by ${i}. Consider creating a binding between ${i} and ${t}
|
|
35
|
-
https://svelte.dev/e/ownership_invalid_binding`,Rs,Ns):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function
|
|
35
|
+
https://svelte.dev/e/ownership_invalid_binding`,Rs,Ns):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Mu(t,e){Ee?console.warn(`%c[svelte] ownership_invalid_mutation
|
|
36
36
|
%c${t?`${t} mutated a value owned by ${e}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
|
|
37
|
-
https://svelte.dev/e/ownership_invalid_mutation`,Rs,Ns):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function
|
|
37
|
+
https://svelte.dev/e/ownership_invalid_mutation`,Rs,Ns):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Yd(t){Ee?console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
38
38
|
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
|
|
39
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`,Rs,Ns):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var
|
|
39
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Rs,Ns):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ke=!1;function so(t){Ke=t}var vt;function $i(t){if(t===null)throw Bs(),zr;return vt=t}function Ui(){return $i(Io(vt))}function g(t){if(Ke){if(Io(vt)!==null)throw Bs(),zr;vt=t}}function ye(t=1){if(Ke){for(var e=t,i=vt;e--;)i=Io(i);vt=i}}function Ea(){for(var t=0,e=vt;;){if(e.nodeType===8){var i=e.data;if(i===As){if(t===0)return e;t-=1}else(i===ds||i===Ps)&&(t+=1)}var o=Io(e);e.remove(),e=o}}function fe(t,e=null,i){var p,m;var o=null;if(Ee&&Vr&&(o=Kr("CreatedAt")),typeof t!="object"||t===null||Bo in t)return t;let n=Wr(t);if(n!==xu&&n!==Zm)return t;var a=new Map,s=fr(t),d=Ki(0);s&&a.set("length",Ki(t.length,o));var l;if(Ee)if(l={parent:e,owners:null},i){let b=(m=(p=i.v)==null?void 0:p[qr])==null?void 0:m.owners;l.owners=b?new Set(b):null}else l.owners=e===null?Et!==null?new Set([Et.function]):null:new Set;return new Proxy(t,{defineProperty(b,u,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&uv();var w=a.get(u);return w===void 0?(w=Ki(_.value,o),a.set(u,w)):D(w,fe(_.value,l)),!0},deleteProperty(b,u){var _=a.get(u);if(_===void 0)u in b&&a.set(u,Ki(Ri,o));else{if(s&&typeof u=="string"){var w=a.get("length"),y=Number(u);Number.isInteger(y)&&y<w.v&&D(w,y)}D(_,Ri),Sv(d)}return!0},get(b,u,_){var k;if(Ee&&u===qr)return l;if(u===Bo)return t;var w=a.get(u),y=u in b;if(w===void 0&&(!y||(k=Tn(b,u))!=null&&k.writable)&&(w=Ki(fe(y?b[u]:Ri,l),o),a.set(u,w)),w!==void 0){var C=r(w);if(Ee){var T=C==null?void 0:C[qr];T&&(T==null?void 0:T.parent)!==l&&Lu(l,T)}return C===Ri?void 0:C}return Reflect.get(b,u,_)},getOwnPropertyDescriptor(b,u){var _=Reflect.getOwnPropertyDescriptor(b,u);if(_&&"value"in _){var w=a.get(u);w&&(_.value=r(w))}else if(_===void 0){var y=a.get(u),C=y==null?void 0:y.v;if(y!==void 0&&C!==Ri)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return _},has(b,u){var C;if(Ee&&u===qr||u===Bo)return!0;var _=a.get(u),w=_!==void 0&&_.v!==Ri||Reflect.has(b,u);if(_!==void 0||Tt!==null&&(!w||(C=Tn(b,u))!=null&&C.writable)){_===void 0&&(_=Ki(w?fe(b[u],l):Ri,o),a.set(u,_));var y=r(_);if(y===Ri)return!1}return w},set(b,u,_,w){var q;var y=a.get(u),C=u in b;if(s&&u==="length")for(var T=_;T<y.v;T+=1){var k=a.get(T+"");k!==void 0?D(k,Ri):T in b&&(k=Ki(Ri,o),a.set(T+"",k))}if(y===void 0?(!C||(q=Tn(b,u))!=null&&q.writable)&&(y=Ki(void 0,o),D(y,fe(_,l)),a.set(u,y)):(C=y.v!==Ri,D(y,fe(_,l))),Ee){var P=_==null?void 0:_[qr];P&&(P==null?void 0:P.parent)!==l&&Lu(l,P),Cv(l)}var A=Reflect.getOwnPropertyDescriptor(b,u);if(A!=null&&A.set&&A.set.call(w,_),!C){if(s&&typeof u=="string"){var I=a.get("length"),V=Number(u);Number.isInteger(V)&&V>=I.v&&D(I,V+1)}Sv(d)}return!0},ownKeys(b){r(d);var u=Reflect.ownKeys(b).filter(y=>{var C=a.get(y);return C===void 0||C.v!==Ri});for(var[_,w]of a)w.v!==Ri&&!(_ in b)&&u.push(_);return u},setPrototypeOf(){pv()}})}function Sv(t,e=1){D(t,t.v+e)}function Zd(t){return t!==null&&typeof t=="object"&&Bo in t?t[Bo]:t}function Tv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(a,s){let d=i.call(this,a,s);if(d===-1){for(let l=s!=null?s:0;l<this.length;l+=1)if(Zd(this[l])===a){Yd("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,s){let d=o.call(this,a,s!=null?s:this.length-1);if(d===-1){for(let l=0;l<=(s!=null?s:this.length-1);l+=1)if(Zd(this[l])===a){Yd("array.lastIndexOf(...)");break}}return d},t.includes=function(a,s){let d=n.call(this,a,s);if(!d){for(let l=0;l<this.length;l+=1)if(Zd(this[l])===a){Yd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ds,Iv,vl,kv,Ev;function Xd(){if(Ds===void 0){Ds=window,Iv=document,vl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;kv=Tn(e,"firstChild").get,Ev=Tn(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0,Ee&&(t.__svelte_meta=null,Tv())}}function jo(t=""){return document.createTextNode(t)}function yi(t){return kv.call(t)}function Io(t){return Ev.call(t)}function h(t,e){if(!Ke)return yi(t);var i=yi(vt);if(i===null)i=vt.appendChild(jo());else if(e&&i.nodeType!==3){var o=jo();return i==null||i.before(o),$i(o),o}return $i(i),i}function pe(t,e){var n,a;if(!Ke){var i=yi(t);return i.nodeType===8&&i.data===""?Io(i):i}if(e&&((n=vt)==null?void 0:n.nodeType)!==3){var o=jo();return(a=vt)==null||a.before(o),$i(o),o}return vt}function M(t,e=1,i=!1){let o=Ke?vt:t;for(var n;e--;)n=o,o=Io(o);if(!Ke)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=jo();return o===null?n==null||n.after(s):o.before(s),$i(s),s}return $i(o),o}function gl(t){t.textContent=""}var Pv=new WeakSet,Jd=!1,bl=!1,hl=null,Os=!1,Vs=!1;function Nu(t){Vs=t}var _l=[],tc=[],Ot=null,kn=!1;function vo(t){Ot=t}var Tt=null;function no(t){Tt=t}var mr=null;function _v(t){mr=t}var Yo=null,Pn=0,In=null;function bv(t){In=t}var Rv=1,ic=0,jr=!1,fl=null;function ml(){return++Rv}function ps(t){var b,u;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,a,s=(e&512)!==0,d=o&&Tt!==null&&!jr,l=i.length;if(s||d){var p=t,m=p.parent;for(n=0;n<l;n++)a=i[n],(s||!((b=a==null?void 0:a.reactions)!=null&&b.includes(p)))&&((u=a.reactions)!=null?u:a.reactions=[]).push(p);s&&(p.f^=512),d&&m!==null&&(m.f&256)===0&&(p.f^=256)}for(n=0;n<l;n++)if(a=i[n],ps(a)&&Au(a),a.wv>t.wv)return!0}(!o||Tt!==null&&!jr)&&Go(t,1024)}return!1}function Av(t,e){for(var i=e;i!==null;){if((i.f&128)!==0)try{i.fn(t);return}catch(o){i.f^=128}i=i.parent}throw Jd=!1,t}function Mv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Aa(t,e,i,o){var m,b;if(Jd){if(i===null&&(Jd=!1),Mv(e))throw t;return}if(i!==null&&(Jd=!0),!Ee||o===null||!(t instanceof Error)||Pv.has(t)){Av(t,e);return}Pv.add(t);let n=[],a=(m=e.fn)==null?void 0:m.name;a&&n.push(a);let s=o;for(;s!==null;){if(Ee){var d=(b=s.function)==null?void 0:b[bi];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=vl?" ":" ";oo(t,"message",{value:t.message+`
|
|
40
40
|
${n.map(u=>`
|
|
41
41
|
${l}in ${u}`).join("")}
|
|
42
|
-
`}),
|
|
43
|
-
`),_=[];for(let w=0;w<u.length;w++){let y=u[w];y.includes("svelte/src/internal")||_.push(y)}
|
|
44
|
-
`)})}if(
|
|
45
|
-
`)){let n=(i=
|
|
42
|
+
`}),oo(t,"component_stack",{value:n});let p=t.stack;if(p){let u=p.split(`
|
|
43
|
+
`),_=[];for(let w=0;w<u.length;w++){let y=u[w];y.includes("svelte/src/internal")||_.push(y)}oo(t,"stack",{value:_.join(`
|
|
44
|
+
`)})}if(Av(t,e),Mv(e))throw t}function Nv(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var a=o[n];(a.f&2)!==0?Nv(a,e,!1):e===a&&(i?Go(a,2048):(a.f&1024)!==0&&Go(a,4096),ka(a))}}function jd(t){var _,w;var e=Yo,i=Pn,o=In,n=Ot,a=jr,s=mr,d=Et,l=kn,p=t.f;Yo=null,Pn=0,In=null,jr=(p&256)!==0&&(kn||!Os||Ot===null),Ot=(p&96)===0?t:null,mr=null,yl(t.ctx),kn=!1,ic++;try{var m=(0,t.fn)(),b=t.deps;if(Yo!==null){var u;if($l(t,Pn),b!==null&&Pn>0)for(b.length=Pn+Yo.length,u=0;u<Yo.length;u++)b[Pn+u]=Yo[u];else t.deps=b=Yo;if(!jr)for(u=Pn;u<b.length;u++)((w=(_=b[u]).reactions)!=null?w:_.reactions=[]).push(t)}else b!==null&&Pn<b.length&&($l(t,Pn),b.length=Pn);if(Rr()&&In!==null&&!kn&&b!==null&&(t.f&6146)===0)for(u=0;u<In.length;u++)Nv(In[u],t);return n!==null&&(ic++,In!==null&&(o===null?o=In:o.push(...In))),m}finally{Yo=e,Pn=i,In=o,Ot=n,jr=a,mr=s,yl(d),kn=l}}function U1(t,e){let i=e.reactions;if(i!==null){var o=Ym.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(Yo===null||!Yo.includes(e))&&(Go(e,4096),(e.f&768)===0&&(e.f^=512),Gd(e),$l(e,0))}function $l(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)U1(t,i[o])}function Ia(t){var e=t.f;if((e&16384)===0){Go(t,1024);var i=Tt,o=Et,n=Os;if(Tt=t,Os=!0,Ee){var a=Zo;xl(t.component_function)}try{(e&16)!==0?Bv(t):Du(t),Bu(t);var s=jd(t);t.teardown=typeof s=="function"?s:null,t.wv=Rv;var d=t.deps;if(Ee&&Vr&&(t.f&2048)!==0&&d!==null)for(let p=0;p<d.length;p++){var l=d[p];l.trace_need_increase&&(l.wv=ml(),l.trace_need_increase=void 0,l.trace_v=void 0)}Ee&&tc.push(t)}catch(p){Aa(p,t,i,o||t.ctx)}finally{Os=n,Tt=i,Ee&&xl(a)}}}function Lv(){console.error("Last ten effects were: ",tc.slice(-10).map(t=>t.fn)),tc=[]}function z1(){try{rv()}catch(t){if(Ee&&oo(t,"stack",{value:""}),hl!==null)if(Ee)try{Aa(t,hl,null,null)}catch(e){throw Lv(),e}else Aa(t,hl,null,null);else throw Ee&&Lv(),t}}function Vu(){var t=Os;try{var e=0;for(Os=!0;_l.length>0;){e++>1e3&&z1();var i=_l,o=i.length;_l=[];for(var n=0;n<o;n++){var a=W1(i[n]);q1(a)}}}finally{bl=!1,Os=t,hl=null,Ee&&(tc=[]),Ca.clear()}}function q1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if((o.f&24576)===0)try{ps(o)&&(Ia(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Ou(o):o.fn=null))}catch(n){Aa(n,o,null,o.ctx)}}}function ka(t){bl||(bl=!0,queueMicrotask(Vu));for(var e=hl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}_l.push(e)}function W1(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,a=n&&(o&1024)!==0;if(!a&&(o&8192)===0){if((o&4)!==0)e.push(i);else if(n)i.f^=1024;else{var s=Ot;try{Ot=i,ps(i)&&Ia(i)}catch(p){Aa(p,i,null,i.ctx)}finally{Ot=s}}var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function Ma(t){var e;for(t&&(bl=!0,Vu(),e=t()),Su();_l.length>0;)bl=!0,Vu(),Su();return e}async function go(){await Promise.resolve(),Ma()}function r(t){var e=t.f,i=(e&2)!==0;if(fl!==null&&fl.add(t),Ot!==null&&!kn){mr!==null&&mr.includes(t)&&fv();var o=Ot.deps;t.rv<ic&&(t.rv=ic,Yo===null&&o!==null&&o[Pn]===t?Pn++:Yo===null?Yo=[t]:(!jr||!Yo.includes(t))&&Yo.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,a=n.parent;a!==null&&(a.f&256)===0&&(n.f^=256)}if(i&&(n=t,ps(n)&&Au(n)),Ee&&Vr&&pl!==null&&Ot!==null&&pl.reaction===Ot){if(t.debug)t.debug();else if(t.created){var s=pl.entries.get(t);s===void 0&&(s={read:[]},pl.entries.set(t,s)),s.read.push(Kr("TracedAt"))}}return Vs&&Ca.has(t)?Ca.get(t):t.v}function yt(t){var e=kn;try{return kn=!0,t()}finally{kn=e}}var K1=-7169;function Go(t,e){t.f=t.f&K1|e}function nc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Bo in t)oc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Bo in i&&oc(i)}}}function oc(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{oc(t[o],e)}catch(n){}let i=Wr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Kd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Fu(t){Tt===null&&Ot===null&&nv(t),Ot!==null&&(Ot.f&256)!==0&&Tt===null&&ov(),Vs&&iv(t)}function Q1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Hs(t,e,i,o=!0){var l;var n=Tt;if(Ee)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Et,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Ee&&(a.component_function=Zo),i)try{Ia(a),a.f|=32768}catch(p){throw ro(a),p}else e!==null&&ka(a);var s=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!s&&o&&(n!==null&&Q1(a,n),Ot!==null&&(Ot.f&2)!==0)){var d=Ot;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function Xo(t){let e=Hs(8,null,!1);return Go(e,1024),e.teardown=t,e}function He(t){var n;Fu("$effect");var e=Tt!==null&&(Tt.f&32)!==0&&Et!==null&&!Et.m;if(Ee&&oo(t,"name",{value:"$effect"}),e){var i=Et;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:Tt,reaction:Ot})}else{var o=pn(t);return o}}function La(t){return Fu("$effect.pre"),Ee&&oo(t,"name",{value:"$effect.pre"}),ho(t)}function sc(t){let e=Hs(64,t,!0);return()=>{ro(e)}}function Ov(t){let e=Hs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?fn(e,()=>{ro(e),o(void 0)}):(ro(e),o(void 0))})}function pn(t){return Hs(4,t,!1)}function ho(t){return Hs(8,t,!0)}function E(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return Ee&&oo(n,"name",{value:"{expression}"}),ao(n)}function ao(t,e=0){return Hs(24|e,t,!0)}function Qi(t,e=!0){return Hs(40,t,!0,e)}function Bu(t){var e=t.teardown;if(e!==null){let i=Vs,o=Ot;Nu(!0),vo(null);try{e.call(null)}finally{Nu(i),vo(o)}}}function Du(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:ro(i,e),i=o}}function Bv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&ro(e),e=i}}function ro(t,e=!0){var i=!1;if((e||(t.f&524288)!==0)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var a=o===n?null:Io(o);o.remove(),o=a}i=!0}Du(t,e&&!i),$l(t,0),Go(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();Bu(t);var d=t.parent;d!==null&&d.first!==null&&Ou(t),Ee&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Ou(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 fn(t,e){var i=[];ac(t,i,!0),Uu(i,()=>{ro(t),e&&e()})}function Uu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function ac(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let s of t.transitions)(s.is_global||i)&&e.push(s);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;ac(o,e,a?i:!1),o=n}}}function Yr(t){Hv(t,!0)}function Hv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),ps(t)&&(Go(t,2048),ka(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Hv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var G1={},j1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,Y1=/@(.+):(\d+):(\d+)$/;function Z1(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
|
|
45
|
+
`)){let n=(i=j1.exec(o))!=null?i:Y1.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Fv(){var e;let t=(e=Z1())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=G1[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var lc=Symbol("ADD_OWNER");function zu(t,e,i=!1,o=!1){if(t&&!i){let n=Zo,a=t[qr];if(a&&!qu(a,n)){let s=Wu(a);e&&e[bi]!==n[bi]&&!o&&wv(n[bi],e[bi],s[bi])}}dc(t,e,new Set)}function Lu(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function dc(t,e,i){var a;let o=t==null?void 0:t[qr];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),lc in t&&t[lc])ho(()=>{t[lc](e)});else{var n=Wr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ri;ho(()=>{let l=t[s];d!==l&&(d=l,dc(l,e,i))})}else dc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)dc(t[s],e,i)}}}function qu(t,e){return t.owners===null?!0:t.owners.has(e)||bi in e&&[...t.owners].some(i=>i[bi]===e[bi])||t.parent!==null&&qu(t.parent,e)}function Wu(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Wu(t.parent)}var X1=!1;function Cv(t){if(X1)return;let e=Fv();if(e&&!qu(t,e)){let i=Wu(t);i[bi]!==e[bi]?Mu(e[bi],i[bi]):Mu()}}function Va(t){if(Ee){let e=new Error(`lifecycle_outside_component
|
|
46
46
|
\`${t}(...)\` can only be used during component initialisation
|
|
47
|
-
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Pt=null;function yl(t){Pt=t}var en=null;function xl(t){en=t}function Ma(t){return zu("getContext").get(t)}function La(t,e){let i=zu("setContext");return ke&&bt(()=>Hu(e,null,!0)),i.set(t,e),e}function Sl(){return zu("getAllContexts")}function z(t,e=!1,i){var o=Pt={p:Pt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Mr&&!e&&(Pt.l={s:null,u:null,r1:[],r2:Wi(!1)}),tn(()=>{o.d=!0}),ke&&(Pt.function=i,en=i)}function q(t){var s,d;let e=Pt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=St,o=Dt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];oo(a.effect),go(a.reaction),gn(a.fn)}}finally{oo(i),go(o)}}Pt=e.p,ke&&(en=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Vr(){return!Mr||Pt!==null&&Pt.l===null}function zu(t){var e;return Pt===null&&Aa(t),(e=Pt.c)!=null?e:Pt.c=new Map(Z1(Pt)||void 0)}function Z1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var X1=/\r/g;function Ov(t){t=t.replace(X1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Hv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var J1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Fv(t){return J1.includes(t)}var e0=["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 t0={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 Uv(t){var e;return t=t.toLowerCase(),(e=t0[t])!=null?e:t}var g6=[...e0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var i0=["touchstart","touchmove"];function zv(t){return i0.includes(t)}var o0=["textarea","script","style","title"];function qv(t){return o0.includes(t)}function qu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Wv=new Map;function Kv(t,e){var i=Wv.get(t);i||(i=new Set,Wv.set(t,i)),i.add(e)}function Wu(t,e){if(e){let i=document.body;t.autofocus=!0,Go(()=>{document.activeElement===i&&t.focus()})}}function Cl(t){var e=Dt,i=St;go(null),oo(null);try{return t()}finally{go(e),oo(i)}}var Ku=new Set,dc=new Set;function Fs(t){if(!Qe)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Qu(t,e,i,o={}){function n(a){if(o.capture||Va.call(e,a),!a.cancelBubble)return Cl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Go(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function xt(t,e,i,o,n){var a={capture:o,passive:n},s=Qu(t,e,i,a);(e===document.body||e===window||e===document)&&tn(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)Ku.add(t[e]);for(var i of dc)i(t)}function Va(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;l<=p&&(s=l)}if(a=n[s]||t.target,a!==e){io(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Dt,$=St;go(null),oo(null);try{for(var u,_=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!=null&&(!a.disabled||t.target===a))if(fr(y)){var[C,...T]=y;C.apply(a,[t,...T])}else y.call(a,t)}catch(P){u?_.push(P):u=P}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let P of _)queueMicrotask(()=>{throw P});throw u}}finally{t.__root=e,delete t.currentTarget,go(m),oo($)}}}var r0;function Qv(){r0=void 0}function Ra(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function bo(t,e){var i=St;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Qe)return bo(mt,null),mt;n===void 0&&(n=Ra(a?t:"<!>"+t),i||(n=$i(n)));var s=o||vl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=$i(s),l=s.lastChild;bo(d,l)}else bo(s,s);return s}}function ye(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Qe)return bo(mt,null),mt;if(!s){var d=Ra(a),l=$i(d);if(n)for(s=document.createDocumentFragment();$i(l);)s.appendChild($i(l));else s=$i(l)}var p=s.cloneNode(!0);if(n){var m=$i(p),$=p.lastChild;bo(m,$)}else bo(p,p);return p}}function Rr(t=""){if(!Qe){var e=Xo(t+"");return bo(e,e),e}var i=mt;return i.nodeType!==3&&(i.before(i=Xo()),bi(i)),bo(i,i),i}function Fe(){if(Qe)return bo(mt,null),mt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Xo();return t.append(e,i),bo(e,i),t}function b(t,e){if(Qe){St.nodes_end=mt,Fi();return}t!==null&&t.before(e)}var Tl=!0;function cc(t){Tl=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 Zr(t,e){return jv(t,e)}function ju(t,e){var s;Zd(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Qe,n=mt;try{for(var a=$i(i);a&&(a.nodeType!==8||a.data!==ds);)a=Po(a);if(!a)throw zr;ro(!0),bi(a),Fi();let d=jv(t,{...e,anchor:a});if(mt===null||mt.nodeType!==8||mt.data!==As)throw Bs(),zr;return ro(!1),d}catch(d){if(d===zr)return e.recover===!1&&ov(),Zd(),gl(i),ro(!1),Zr(t,e);throw d}finally{ro(o),bi(n),Qv()}}var Na=new Map;function jv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Zd();var d=new Set,l=$=>{for(var u=0;u<$.length;u++){var _=$[u];if(!d.has(_)){d.add(_);var w=zv(_);e.addEventListener(_,Va,{passive:w});var y=Na.get(_);y===void 0?(document.addEventListener(_,Va,{passive:w}),Na.set(_,1)):Na.set(_,y+1)}}};l(cl(Ku)),dc.add(l);var p=void 0,m=Nv(()=>{var $=i!=null?i:e.appendChild(Xo());return Ki(()=>{if(a){z({});var u=Pt;u.c=a}n&&(o.$$events=n),Qe&&bo($,null),Tl=s,p=t($,o)||{},Tl=!0,Qe&&(St.nodes_end=mt),a&&q()}),()=>{var w;for(var u of d){e.removeEventListener(u,Va);var _=Na.get(u);--_===0?(document.removeEventListener(u,Va),Na.delete(u)):Na.set(u,_)}dc.delete(l),$!==i&&((w=$.parentNode)==null||w.removeChild($))}});return Gu.set(p,m),p}var Gu=new WeakMap;function Us(t,e){let i=Gu.get(t);return i?(Gu.delete(t),i(e)):(ke&&bv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Qe&&i===0&&Fi();var n=t,a=null,s=null,d=Ni,l=i>0?65536:0,p=!1;let m=(u,_=!0)=>{p=!0,$(_,u)},$=(u,_)=>{if(d===(d=u))return;let w=!1;if(Qe&&o!==-1){if(i===0){let C=n.data;C===ds?o=0:C===Ps?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Ta(),bi(n),ro(!1),w=!0,o=-1)}d?(a?Yr(a):_&&(a=Ki(()=>_(n))),s&&hn(s,()=>{s=null})):(s?Yr(s):_&&(s=Ki(()=>_(n,[i+1,o]))),a&&hn(a,()=>{a=null})),w&&ro(!0)};so(()=>{p=!1,e(m),p||$(null,null)},l),Qe&&(n=mt)}function zs(t,e,i){Qe&&Fi();var o=t,n=Ni,a,s=Vr()?Zm:$a;so(()=>{s(n,n=e())&&(a&&hn(a),a=Ki(()=>i(o)))}),Qe&&(o=mt)}var ms=null;function Xu(t){ms=t}function Il(t,e){return e}function d0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)sc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;gl(l),l.append(i),o.clear(),fs(t,e[0].prev,e[a-1].next)}Ou(n,()=>{for(var p=0;p<a;p++){var m=e[p];d||(o.delete(m.k),fs(t,m.prev,m.next)),no(m.e,!d)}})}function ki(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var p=t;s=Qe?bi($i(p)):p.appendChild(Xo())}Qe&&Fi();var m=null,$=!1,u=gr(()=>{var _=i();return fr(_)?_:_==null?[]:cl(_)});so(()=>{var _=r(u),w=_.length;if($&&w===0)return;$=w===0;let y=!1;if(Qe){var C=s.data===Ps;C!==(w===0)&&(s=Ta(),bi(s),ro(!1),y=!0)}if(Qe){for(var T=null,E,P=0;P<w;P++){if(mt.nodeType===8&&mt.data===As){s=mt,y=!0,ro(!1);break}var A=_[P],I=o(A,P);E=Xv(mt,d,T,null,A,I,P,n,e,i),d.items.set(I,E),T=E}w>0&&bi(Ta())}Qe||c0(_,d,s,n,e,o,i),a!==null&&(w===0?m?Yr(m):m=Ki(()=>a(s)):m!==null&&hn(m,()=>{m=null})),y&&ro(!0),r(u)}),Qe&&(s=mt)}function c0(t,e,i,o,n,a,s){var ae,Me,Pe,he;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,m=e.items,$=e.first,u=$,_,w=null,y,C=[],T=[],E,P,A,I;if(d)for(I=0;I<p;I+=1)E=t[I],P=a(E,I),A=m.get(P),A!==void 0&&((ae=A.a)==null||ae.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<p;I+=1){if(E=t[I],P=a(E,I),A=m.get(P),A===void 0){var V=u?u.e.nodes_start:i;w=Xv(V,e,w,w===null?e.first:w.next,E,P,I,o,n,s),m.set(P,w),C=[],T=[],u=w.next;continue}if(l&&u0(A,E,I,n),(A.e.f&8192)!==0&&(Yr(A.e),d&&((Me=A.a)==null||Me.unfix(),(y!=null?y:y=new Set).delete(A))),A!==u){if(_!==void 0&&_.has(A)){if(C.length<T.length){var F=T[0],j;w=F.prev;var H=C[0],X=C[C.length-1];for(j=0;j<C.length;j+=1)Yv(C[j],F,i);for(j=0;j<T.length;j+=1)_.delete(T[j]);fs(e,H.prev,X.next),fs(e,w,H),fs(e,X,F),u=F,w=X,I-=1,C=[],T=[]}else _.delete(A),Yv(A,u,i),fs(e,A.prev,A.next),fs(e,A,w===null?e.first:w.next),fs(e,w,A),w=A;continue}for(C=[],T=[];u!==null&&u.k!==P;)(u.e.f&8192)===0&&(_!=null?_:_=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;A=u}C.push(A),w=A,u=A.next}if(u!==null||_!==void 0){for(var oe=_===void 0?[]:cl(_);u!==null;)(u.e.f&8192)===0&&oe.push(u),u=u.next;var Z=oe.length;if(Z>0){var fe=(n&4)!==0&&p===0?i:null;if(d){for(I=0;I<Z;I+=1)(Pe=oe[I].a)==null||Pe.measure();for(I=0;I<Z;I+=1)(he=oe[I].a)==null||he.fix()}d0(e,oe,fe,m)}}d&&Go(()=>{var se;if(y!==void 0)for(A of y)(se=A.a)==null||se.apply()}),St.first=e.first&&e.first.e,St.last=w&&w.e}function u0(t,e,i,o){(o&1)!==0&&wa(t.v,e),(o&2)!==0?wa(t.i,i):t.i=i}function Xv(t,e,i,o,n,a,s,d,l,p){var m=ms,$=(l&1)!==0,u=(l&16)===0,_=$?u?Gr(n):Wi(n):n,w=(l&2)===0?s:Wi(s);ke&&$&&(_.debug=()=>{var C=typeof w=="number"?s:w.v;p()[C]});var y={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};ms=y;try{return y.e=Ki(()=>d(t,_,w,p),Qe),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{ms=m}}function Yv(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=Po(a);n.before(a),a=s}}function fs(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 p0(t,e,i){var a,s;if(!e||e===Ov(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=en)!=null&&s[_i]&&(o=`in ${en[_i]}`),_v(qu(o))}function kl(t,e,i,o,n){var a=t,s="",d;so(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Qe&&Fi();return}d!==void 0&&(no(d),d=void 0),s!==""&&(d=Ki(()=>{if(Qe){for(var p=mt.data,m=Fi(),$=m;m!==null&&(m.nodeType!==8||m.data!=="");)$=m,m=Po(m);if(m===null)throw Bs(),zr;ke&&!n&&p0(m.parentNode,p,s),bo(mt,$),a=bi(m);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var _=Ra(u);if((i||o)&&(_=$i(_)),bo($i(_),_.lastChild),i||o)for(;$i(_);)a.before($i(_));else a.before(_)}))})}function ve(t,e,...i){var o=t,n=ie,a;so(()=>{n!==(n=e())&&(a&&(no(a),a=null),ke&&n==null&&nv(),a=Ki(()=>n(o,...i)))},65536),Qe&&(o=mt)}function Ei(t,e,i){Qe&&Fi();var o=t,n,a;so(()=>{n!==(n=e())&&(a&&(hn(a),a=null),n&&(a=Ki(()=>i(o,n))))},65536),Qe&&(o=mt)}function qs(t,e,i,o,n,a){var w;let s=Qe;Qe&&Fi();var d=ke&&a&&((w=Pt)==null?void 0:w.function[_i]),l,p,m=null;Qe&&mt.nodeType===1&&(m=mt,Fi());var $=Qe?mt:t,u,_=ms;so(()=>{let y=e()||null;var C=n?n():i||y==="svg"?hu:null;if(y!==l){var T=ms;Xu(_),u&&(y===null?hn(u,()=>{u=null,p=null}):y===p?Yr(u):(no(u),cc(!1))),y&&y!==p&&(u=Ki(()=>{if(m=Qe?m:C?document.createElementNS(C,y):document.createElement(y),ke&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),bo(m,m),o){Qe&&qv(y)&&m.append(document.createComment(""));var E=Qe?$i(m):m.appendChild(Xo());Qe&&(E===null?ro(!1):bi(E)),o(m,E)}St.nodes_end=m,$.before(m)})),l=y,l&&(p=l),cc(!0),Xu(T)}},65536),s&&(ro(!0),bi($))}var ep;function Jv(t){return ep=t.target,new Ju(t)}var Xr,ir,Ju=class{constructor(e){ls(this,Xr);ls(this,ir);var a,s;var i=new Map,o=(d,l)=>{var p=Gr(l);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var p;return r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l)))},has(d,l){var p;return l===dl?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var m;return D((m=i.get(l))!=null?m:o(l,p),p),Reflect.set(d,l,p)}});ba(this,ir,(e.hydrate?ju:Zr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Ea(),ba(this,Xr,n.$$events);for(let d of Object.keys(Ri(this,ir)))d==="$set"||d==="$destroy"||d==="$on"||io(this,d,{get(){return Ri(this,ir)[d]},set(l){Ri(this,ir)[d]=l},enumerable:!0});Ri(this,ir).$set=d=>{Object.assign(n,d)},Ri(this,ir).$destroy=()=>{Us(Ri(this,ir))}}$set(e){Ri(this,ir).$set(e)}$on(e,i){Ri(this,Xr)[e]=Ri(this,Xr)[e]||[];let o=(...n)=>i.call(this,...n);return Ri(this,Xr)[e].push(o),()=>{Ri(this,Xr)[e]=Ri(this,Xr)[e].filter(n=>n!==o)}}$destroy(){Ri(this,ir).$destroy()}};Xr=new WeakMap,ir=new WeakMap;function W(t,e){Go(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=ep)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ke&&Kv(e.hash,d)}})}function eg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=eg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function tg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=eg(t))&&(o&&(o+=" "),o+=e);return o}function El(t){return typeof t=="object"?tg(t):t!=null?t:""}var ig=[...`
|
|
48
|
-
\r\f\xA0\v\uFEFF`];function ng(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||ig.includes(o[s-1]))&&(d===o.length||ig.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function og(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function tp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function rg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(tp)),n&&l.push(...Object.keys(n).map(tp));var p=0,m=-1;let y=t.length;for(var $=0;$<y;$++){var u=t[$];if(d?u==="/"&&t[$-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[$+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&m===-1)m=$;else if(u===";"||$===y-1){if(m!==-1){var _=tp(t.substring(p,m).trim());if(!l.includes(_)){u!==";"&&$++;var w=t.substring(p,$).trim();i+=" "+w+";"}}p=$+1,m=-1}}}}return o&&(i+=og(o)),n&&(i+=og(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,n,a){var s=t.__className;if(Qe||s!==i){var d=ng(i,o,a);(!Qe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var p=!!a[l];(n==null||p!==!!n[l])&&t.classList.toggle(l,p)}return a}function ip(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function ot(t,e,i,o){var n=t.__style;if(Qe||n!==e){var a=rg(e,o);(!Qe||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(ip(t,i==null?void 0:i[0],o[0]),ip(t,i==null?void 0:i[1],o[1],"important")):ip(t,i,o));return o}var Ba=Symbol("class"),Da=Symbol("style"),lg=Symbol("is custom element"),dg=Symbol("is html");function cg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=ug(t);if(Qe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||b0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Km]=i),i==null?t.removeAttribute(e):typeof i!="string"&&pg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Te(t,e,i,o,n=!1){var A;var a=ug(t),s=a[lg],d=!a[dg];let l=Qe&&s;l&&ro(!1);var p=e||{},m=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=El(i.class):(o||i[Ba])&&(i.class=null),i[Da]&&((A=i.style)!=null||(i.style=null));var u=pg(t);for(let I in i){let V=i[I];if(m&&I==="value"&&V==null){t.value=t.__value="",p[I]=V;continue}if(I==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,_,V,o,e==null?void 0:e[Ba],i[Ba]),p[I]=V,p[Ba]=i[Ba];continue}if(I==="style"){ot(t,V,e==null?void 0:e[Da],i[Da]),p[I]=V,p[Da]=i[Da];continue}var w=p[I];if(V!==w){p[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let F={},j="$$"+I,H=I.slice(2);var C=Fv(H);if(Hv(H)&&(H=H.slice(0,-7),F.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(H,p[j],F),p[j]=null}if(V!=null)if(C)t[`__${H}`]=V,at([H]);else{let X=function(oe){p[I].call(this,oe)};var P=X;p[j]=Qu(H,t,X,F)}else C&&(t[`__${H}`]=void 0)}else if(I==="style")De(t,I,V);else if(I==="autofocus")Wu(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&m)cg(t,V);else{var T=I;d||(T=Uv(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!E)if(a[I]=null,T==="value"||T==="checked"){let F=t,j=e===void 0;if(T==="value"){let H=F.defaultValue;F.removeAttribute(T),F.defaultValue=H,F.value=F.__value=j?H:null}else{let H=F.defaultChecked;F.removeAttribute(T),F.defaultChecked=H,F.checked=j?H:!1}}else t.removeAttribute(I);else E||u.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&De(t,T,V,n)}}}return l&&ro(!0),p}function ug(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[lg]:t.nodeName.includes("-"),[dg]:t.namespaceURI===Um}}var sg=new Map;function pg(t){var e=sg.get(t.nodeName);if(e)return e;sg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Wd(o);for(var a in i)i[a].set&&e.push(a);o=Wr(o)}return e}function b0(t,e,i){var o;ke&&(e==="srcset"&&$0(t,i)||op((o=t.getAttribute(e))!=null?o:"",i)||hv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function op(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ag(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function $0(t,e){var i=ag(t.srcset),o=ag(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(op(i[s][0],n)||op(n,i[s][0])))}var y0=qd?()=>performance.now():()=>Date.now(),_r={tick:t=>(qd?requestAnimationFrame:ie)(t),now:()=>y0(),tasks:new Set};function fg(){let t=_r.now();_r.tasks.forEach(e=>{e.c(t)||(_r.tasks.delete(e),e.f())}),_r.tasks.size!==0&&_r.tick(fg)}function mg(t){let e;return _r.tasks.size===0&&_r.tick(fg),{promise:new Promise(i=>{_r.tasks.add(e={c:t,f:i})}),abort(){_r.tasks.delete(e)}}}function uc(t,e){Cl(()=>{t.dispatchEvent(new CustomEvent(e))})}function C0(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 vg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=C0(n.trim());e[s]=a.trim()}return e}var T0=t=>t;function rp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",p,m=e.inert,$=e.style.overflow,u,_;function w(){var V;var A=Dt,I=St;go(null),oo(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{go(A),oo(I)}}var y={is_global:d,in(){var A;if(e.inert=m,!n){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||u==null||u.abort(),uc(e,"introstart"),u=np(e,w(),_,1,()=>{uc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=$})},out(A){if(!a){A==null||A(),p=void 0;return}e.inert=!0,uc(e,"outrostart"),_=np(e,w(),u,0,()=>{uc(e,"outroend"),A==null||A()})},stop:()=>{u==null||u.abort(),_==null||_.abort()}},C=St;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Tl){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&&gn(()=>{bt(()=>y.in())})}}function np(t,e,i,o,n){var a=o===1;if(cs(e)){var s,d=!1;return Go(()=>{if(!d){var C=e({direction:a?"in":"out"});s=np(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ie,deactivate:ie,reset:ie,t:()=>o};let{delay:l=0,css:p,tick:m,easing:$=T0}=e;var u=[];if(a&&i===void 0&&(m&&m(0,1),p)){var _=vg(p(0,1));u.push(_,_)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var H;var C=(H=i==null?void 0:i.t())!=null?H:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),P=[];if(E>0){var A=!1;if(p)for(var I=Math.ceil(E/16.666666666666668),V=0;V<=I;V+=1){var F=C+T*$(V/I),j=vg(p(F,1-F));P.push(j),A||(A=j.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var X=y.currentTime;return C+T*$(X/E)},m&&mg(()=>{if(y.playState!=="running")return!1;var X=w();return m(X,1-X),!0})}y=t.animate(P,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,m==null||m(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>w()}}var vs,Oa,Pl,fc,gg,mc=class mc{constructor(e){ls(this,fc);ls(this,vs,new WeakMap);ls(this,Oa);ls(this,Pl);ba(this,Pl,e)}observe(e,i){var o=Ri(this,vs).get(e)||new Set;return o.add(i),Ri(this,vs).set(e,o),Hm(this,fc,gg).call(this).observe(e,Ri(this,Pl)),()=>{var n=Ri(this,vs).get(e);n.delete(i),n.size===0&&(Ri(this,vs).delete(e),Ri(this,Oa).unobserve(e))}}};vs=new WeakMap,Oa=new WeakMap,Pl=new WeakMap,fc=new WeakSet,gg=function(){var e;return(e=Ri(this,Oa))!=null?e:ba(this,Oa,new ResizeObserver(i=>{for(var o of i){mc.entries.set(o.target,o);for(var n of Ri(this,vs).get(o.target)||[])n(o)}}))},Vn(mc,"entries",new WeakMap);var sp=mc;var E0=new sp({box:"border-box"});function Nr(t,e,i){var o=E0.observe(t,()=>i(t[e]));gn(()=>(bt(()=>i(t[e])),o))}function hg(t,e){return t===e||(t==null?void 0:t[Bo])===e}function ct(t={},e,i,o){return gn(()=>{var n,a;return _o(()=>{n=a,a=(o==null?void 0:o())||[],bt(()=>{t!==i(...a)&&(e(t,...a),n&&hg(i(...n),t)&&e(null,...n))})}),()=>{Go(()=>{a&&hg(i(...a),t)&&e(null,...a)})}}),t}function br(t=!1){let e=Pt,i=e.l.u;if(!i)return;let o=()=>oc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Pa(()=>{_g(e,o),us(i.b)}),ze(()=>{let n=bt(()=>i.m.map(jm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&ze(()=>{_g(e,o),us(i.a)})}function _g(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;av(e)},set:o=>{i=o}})}};A0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var A0;function Ft(t){Pt===null&&Aa("onMount"),Mr&&Pt.l!==null?P0(Pt).m.push(t):ze(()=>{let e=bt(t);if(typeof e=="function")return e})}function _n(t){Pt===null&&Aa("onDestroy"),Ft(()=>()=>bt(t))}function P0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Al(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=bt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ha=[];function or(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=ie){let i=null,o=new Set;function n(d){if($a(t,d)&&(t=d,i)){let l=!Ha.length;for(let p of o)p[1](),Ha.push(p,t);if(l){for(let p=0;p<Ha.length;p+=2)Ha[p][0](Ha[p+1]);Ha.length=0}}}function a(d){n(d(t))}function s(d,l=ie){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||ie),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function yi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return or(i,(s,d)=>{let l=!1,p=[],m=0,$=ie,u=()=>{if(m)return;$();let w=e(o?p[0]:p,s,d);a?s(w):$=typeof w=="function"?w:ie},_=n.map((w,y)=>Al(w,C=>{p[y]=C,m&=~(1<<y),l&&u()},()=>{m|=1<<y}));return l=!0,u(),function(){us(_),$(),l=!1}})}function Se(t){let e;return Al(t,i=>e=i)(),e}var vc=!1,ap=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Gr(void 0),unsubscribe:ie};if(o.store!==t&&!(ap in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ie;else{var n=!0;o.unsubscribe=Al(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&ap in i?Se(t):r(o.source)}function Be(){let t={};function e(){tn(()=>{for(var i in t)t[i].unsubscribe();io(t,ap,{enumerable:!1,value:!0})})}return[t,e]}function lp(t){var e=vc;try{return vc=!1,[t(),vc]}finally{vc=e}}var D0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&sv(`${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 Ee(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},D0)}var O0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];cs(n)&&(n=n());let a=Rn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Rn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Bo||e===dl)return!1;for(let i of t.props)if(cs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){cs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Jr(...t){return new Proxy({props:t},O0)}function bg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var F,j;var n=(i&1)!==0,a=!Mr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=lp(()=>t[e]):p=t[e];var m=Bo in t||dl in t,$=s&&((j=(F=Rn(t,e))==null?void 0:F.set)!=null?j:m&&e in t&&(H=>t[e]=H))||void 0,u=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?u=bt(o):u=o),u);p===void 0&&o!==void 0&&($&&a&&rv(e),p=y(),$&&$(p));var C;if(a)C=()=>{var H=t[e];return H===void 0?y():(_=!0,w=!1,H)};else{var T=(n?v:gr)(()=>t[e]);T.f|=131072,C=()=>{var H=r(T);return H!==void 0&&(u=void 0),H===void 0?u:H}}if((i&4)===0)return C;if($){var E=t.$$legacy;return function(H,X){return arguments.length>0?((!a||!X||E||l)&&$(X?C():H),H):C()}}var P=!1,A=!1,I=Gr(p),V=v(()=>{var H=C(),X=r(I);return P?(P=!1,A=!0,X):(A=!1,I.v=H)});return s&&r(V),n||(V.equals=ya),function(H,X){if(fl!==null&&(P=A,C(),r(I)),arguments.length>0){let oe=X?r(V):a&&s?pe(H):H;if(!V.equals(oe)){if(P=!0,D(I,oe),w&&u!==void 0&&(u=oe),bg(V))return H;bt(()=>r(V))}return H}return bg(V)?V.v:r(V)}}var H0;typeof HTMLElement=="function"&&(H0=class extends HTMLElement{constructor(e,i,o){super();Vn(this,"$$ctor");Vn(this,"$$s");Vn(this,"$$c");Vn(this,"$$cn",!1);Vn(this,"$$d",{});Vn(this,"$$r",!1);Vn(this,"$$p_d",{});Vn(this,"$$l",{});Vn(this,"$$l_u",new Map);Vn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=F0(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=dp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Jv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=rc(()=>{_o(()=>{var a;this.$$r=!0;for(let s of _u(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=dp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=dp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return _u(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function dp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function F0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var $g="5";var yg,xg,wg;typeof window!="undefined"&&((wg=(xg=(yg=window.__svelte)!=null?yg:window.__svelte={}).v)!=null?wg:xg.v=new Set).add($g);import{clientChecker as Sm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as _1,safeStorage as Tx,throttleFn as Ix}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as kx}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as z0,fillWithDefault as q0,VideoQuality as Sg}from"@vkontakte/videoplayer-shared/es2018";var W0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:z0.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:Sg.Q_480P,highQualityLimit:Sg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Cg=t=>q0(t,W0),Tg=t=>La("ui-config",t),Ut=()=>Ma("ui-config");var Ml="vk_player_debug_panel_opened";var Ig="videoplayer",kg="videoplayer";var Br={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Eg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Pg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Ag=new Set(["ShiftRight","ShiftLeft"]);var Mg=["TIMELINE"],Ll=[...Mg,"GRAPH_BUTTON"],cp=[...Mg,"PLAY_BUTTON"],Vl=[...Ll,"PLAY_BUTTON"];var Dr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Dr||{}),Ks={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Lg,VERSION as K0}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as Q0}from"@vkontakte/videoplayer-core/es2018";import{VERSION as G0}from"@vkontakte/videoplayer-statistics/es2018";var gc="prod",Fa="1.1.64-dev.e0c286d1.0";var Qs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Vg=Symbol("storeContext"),Rg=Symbol("microStoresContext"),Ng=(t,e)=>{La(Vg,t),La(Rg,e),gc==="dev"&&(window.app={store:t,microStores:e})},Ce=()=>{let t=Ma(Vg);return Lg(t,"Store context is empty!"),t},ao=()=>{let t=Ma(Rg);return Lg(t,"MicroStores context is empty!"),t},Xt=(t,e)=>_c(t,t.getValue(),e),_c=(t,e,i)=>or(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Bg=(t,e,i)=>{var T,E,P,A,I,V;let o=t.info,{width:n,height:a}=Se(i.ui.playerSize),s=(E=(T=o.throughputEstimation$.getValue())==null?void 0:T.toFixed(0))!=null?E:0,d=(A=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?A:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Fa} (core: ${Q0}, stat: ${G0}, shared: ${K0})`,m=Se(i.state.errorLog$),$=m.length?`
|
|
49
|
-
`+
|
|
50
|
-
`,
|
|
51
|
-
`,
|
|
52
|
-
`;return
|
|
53
|
-
`):void 0,
|
|
54
|
-
`)},Dg=(t,e,i)=>{var F,j,H,X;let o=t.info,{width:n,height:a}=Se(i.ui.playerSize),s={version:Fa,viewport:`${n}x${a}`,volume:Math.round(Se(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(s.videoSize=`${p.width}x${p.height}`);let m=o.currentBuffer$.getValue(),$=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();m&&($&&u?s.buffer=m.end-u:s.buffer=Math.max(m.end-Se(i.state.positionExact$),0));let _=o.throughputEstimation$.getValue();_&&(s.speed=_);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let y=o.liveLatency$.getValue();y&&(s.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let E=Se(i.vsid);typeof E=="string"&&(s.vsid=E);let P=(F=t.info.currentVideoStream$.getValue())==null?void 0:F.codec;P&&(s.videoCodec=P);let A=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.codec;A&&(s.audioCodec=A),((H=t.info.currentVideoStream$.getValue())==null?void 0:H.hdr)&&(s.hdr=!0);let V=(X=t.info.currentAudioStream$.getValue())==null?void 0:X.language;return V&&(s.audioLanguage=V),s},Og=(t,e)=>Qs(t,e,"mp4"),Hg=t=>!t.type,Fg=t=>!!t.type,Ug=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},hc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as fp,safeStorage as $o}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var zg="vk_player_prefer_traffic_saving_enabled",qg="vk_player_preferred_volume",Wg="vk_player_prefer_volume_mute",mp="vk_player_preferred_quality",up="vk_player_preferred_default_quality_settings",pp="vk_player_preferred_quality_settings_by_video",Kg="vk_player_preferred_stream_language",Qg="vk_player_preferred_rate",Gg="vk_player_preferred_autoplay_next",jg=t=>t>1?1:t<0?0:t,vp=t=>$o.set(qg,jg(t).toString(10)),bc=()=>{let t=$o.get(qg);return fp(t)?void 0:jg(parseFloat(t))},gp=(t,e)=>$o.set(mp,JSON.stringify({videoId:t,value:e})),Nl=()=>$o.remove(mp),hp=t=>{let e=$o.get(mp);if(fp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Nl();return}return o},_p=(t,e)=>{e?$o.set(t,"true"):$o.remove(t)},bp=t=>$o.get(t)==="true",$p=t=>_p(Wg,t),Yg=()=>bp(Wg),Rl=t=>_p(zg,t),yp=()=>bp(zg),Zg=()=>$o.get(Kg),xp=t=>$o.set(Kg,t),Xg=t=>$o.set(Qg,JSON.stringify({rate:t})),Jg=()=>{let t=$o.get(Qg);if(fp(t))return;let{rate:e}=JSON.parse(t);return e},eh=t=>_p(Gg,t),th=()=>bp(Gg),j0=()=>{let t=m=>{$o.set(up,JSON.stringify(m))},e=()=>{try{let m=$o.get(up);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=$o.get(pp);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{$o.set(pp,JSON.stringify(m))},n=m=>{p(m);let $=m?i():null;if($&&($==null?void 0:$.videoId)===m)return{...$,appliesTo:"to-video"};$&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{$o.remove(pp)},s=()=>{$o.remove(up)},d=(m,$="as-default")=>{m.type==="exact_quality"?o(m):$==="as-default"?t(m):o(m)},l=m=>{let $=n(m);if($){switch($.type){case"traffic_saving":Rl(!0);break;case"exact_quality":gp(m,$.quality)}a(),s()}},p=m=>{let $=hp(m);if($){o({type:"exact_quality",videoId:m,quality:$});return}yp()&&t({type:"traffic_saving",videoId:m}),Rl(!1),Nl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:ih,migrateSettingsToLegacyWay:oh,savePreferredQualitySettings:$c,savePreferredDefaultQualitySettings:WP,removePreferredQualitySettingsByVideo:KP,getPreferredDefaultQualitySettings:yc}=j0();import{PlaybackState as v1}from"@vkontakte/videoplayer-core/es2018";var Y0=ye('<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 Bl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Y0();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),b(t,o)}import{isNullable as sh,InterfaceLanguage as ah}from"@vkontakte/videoplayer-shared/es2018";var Z0={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_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",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
|
|
47
|
+
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Et=null;function yl(t){Et=t}var Zo=null;function xl(t){Zo=t}function Ra(t){return Ku("getContext").get(t)}function Na(t,e){let i=Ku("setContext");return Ee&&yt(()=>zu(e,null,!0)),i.set(t,e),e}function Sl(){return Ku("getAllContexts")}function U(t,e=!1,i){var o=Et={p:Et,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Lr&&!e&&(Et.l={s:null,u:null,r1:[],r2:Ki(!1)}),Xo(()=>{o.d=!0}),Ee&&(Et.function=i,Zo=i)}function z(t){var s,d;let e=Et;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=Tt,o=Ot;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];no(a.effect),vo(a.reaction),pn(a.fn)}}finally{no(i),vo(o)}}Et=e.p,Ee&&(Zo=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Rr(){return!Lr||Et!==null&&Et.l===null}function Ku(t){var e;return Et===null&&Va(t),(e=Et.c)!=null?e:Et.c=new Map(e0(Et)||void 0)}function e0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var t0=/\r/g;function Uv(t){t=t.replace(t0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function zv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var i0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function qv(t){return i0.includes(t)}var o0=["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 n0={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 Wv(t){var e;return t=t.toLowerCase(),(e=n0[t])!=null?e:t}var b6=[...o0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var r0=["touchstart","touchmove"];function Kv(t){return r0.includes(t)}var s0=["textarea","script","style","title"];function Qv(t){return s0.includes(t)}function Qu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Gv=new Map;function jv(t,e){var i=Gv.get(t);i||(i=new Set,Gv.set(t,i)),i.add(e)}function Gu(t,e){if(e){let i=document.body;t.autofocus=!0,Wo(()=>{document.activeElement===i&&t.focus()})}}function Cl(t){var e=Ot,i=Tt;vo(null),no(null);try{return t()}finally{vo(e),no(i)}}var ju=new Set,cc=new Set;function Fs(t){if(!Ke)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Yu(t,e,i,o={}){function n(a){if(o.capture||Ba.call(e,a),!a.cancelBubble)return Cl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Wo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function St(t,e,i,o,n){var a={capture:o,passive:n},s=Yu(t,e,i,a);(e===document.body||e===window||e===document)&&Xo(()=>{e.removeEventListener(t,s,a)})}function st(t){for(var e=0;e<t.length;e++)ju.add(t[e]);for(var i of cc)i(t)}function Ba(t){var k;var e=this,i=e.ownerDocument,o=t.type,n=((k=t.composedPath)==null?void 0:k.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;l<=p&&(s=l)}if(a=n[s]||t.target,a!==e){oo(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Ot,b=Tt;vo(null),no(null);try{for(var u,_=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!=null&&(!a.disabled||t.target===a))if(fr(y)){var[C,...T]=y;C.apply(a,[t,...T])}else y.call(a,t)}catch(P){u?_.push(P):u=P}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let P of _)queueMicrotask(()=>{throw P});throw u}}finally{t.__root=e,delete t.currentTarget,vo(m),no(b)}}}var l0;function Yv(){l0=void 0}function Da(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function _o(t,e){var i=Tt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ke)return _o(vt,null),vt;n===void 0&&(n=Da(a?t:"<!>"+t),i||(n=yi(n)));var s=o||vl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=yi(s),l=s.lastChild;_o(d,l)}else _o(s,s);return s}}function xe(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ke)return _o(vt,null),vt;if(!s){var d=Da(a),l=yi(d);if(n)for(s=document.createDocumentFragment();yi(l);)s.appendChild(yi(l));else s=yi(l)}var p=s.cloneNode(!0);if(n){var m=yi(p),b=p.lastChild;_o(m,b)}else _o(p,p);return p}}function Nr(t=""){if(!Ke){var e=jo(t+"");return _o(e,e),e}var i=vt;return i.nodeType!==3&&(i.before(i=jo()),$i(i)),_o(i,i),i}function De(){if(Ke)return _o(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=jo();return t.append(e,i),_o(e,i),t}function $(t,e){if(Ke){Tt.nodes_end=vt,Ui();return}t!==null&&t.before(e)}var Tl=!0;function uc(t){Tl=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 Zr(t,e){return Xv(t,e)}function Xu(t,e){var s;Xd(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ke,n=vt;try{for(var a=yi(i);a&&(a.nodeType!==8||a.data!==ds);)a=Io(a);if(!a)throw zr;so(!0),$i(a),Ui();let d=Xv(t,{...e,anchor:a});if(vt===null||vt.nodeType!==8||vt.data!==As)throw Bs(),zr;return so(!1),d}catch(d){if(d===zr)return e.recover===!1&&sv(),Xd(),gl(i),so(!1),Zr(t,e);throw d}finally{so(o),$i(n),Yv()}}var Oa=new Map;function Xv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Xd();var d=new Set,l=b=>{for(var u=0;u<b.length;u++){var _=b[u];if(!d.has(_)){d.add(_);var w=Kv(_);e.addEventListener(_,Ba,{passive:w});var y=Oa.get(_);y===void 0?(document.addEventListener(_,Ba,{passive:w}),Oa.set(_,1)):Oa.set(_,y+1)}}};l(cl(ju)),cc.add(l);var p=void 0,m=Ov(()=>{var b=i!=null?i:e.appendChild(jo());return Qi(()=>{if(a){U({});var u=Et;u.c=a}n&&(o.$$events=n),Ke&&_o(b,null),Tl=s,p=t(b,o)||{},Tl=!0,Ke&&(Tt.nodes_end=vt),a&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,Ba);var _=Oa.get(u);--_===0?(document.removeEventListener(u,Ba),Oa.delete(u)):Oa.set(u,_)}cc.delete(l),b!==i&&((w=b.parentNode)==null||w.removeChild(b))}});return Zu.set(p,m),p}var Zu=new WeakMap;function Us(t,e){let i=Zu.get(t);return i?(Zu.delete(t),i(e)):(Ee&&xv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ke&&i===0&&Ui();var n=t,a=null,s=null,d=Ri,l=i>0?65536:0,p=!1;let m=(u,_=!0)=>{p=!0,b(_,u)},b=(u,_)=>{if(d===(d=u))return;let w=!1;if(Ke&&o!==-1){if(i===0){let C=n.data;C===ds?o=0:C===Ps?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Ea(),$i(n),so(!1),w=!0,o=-1)}d?(a?Yr(a):_&&(a=Qi(()=>_(n))),s&&fn(s,()=>{s=null})):(s?Yr(s):_&&(s=Qi(()=>_(n,[i+1,o]))),a&&fn(a,()=>{a=null})),w&&so(!0)};ao(()=>{p=!1,e(m),p||b(null,null)},l),Ke&&(n=vt)}function zs(t,e,i){Ke&&Ui();var o=t,n=Ri,a,s=Rr()?ev:wa;ao(()=>{s(n,n=e())&&(a&&fn(a),a=Qi(()=>i(o)))}),Ke&&(o=vt)}var ms=null;function tp(t){ms=t}function Il(t,e){return e}function p0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)ac(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;gl(l),l.append(i),o.clear(),fs(t,e[0].prev,e[a-1].next)}Uu(n,()=>{for(var p=0;p<a;p++){var m=e[p];d||(o.delete(m.k),fs(t,m.prev,m.next)),ro(m.e,!d)}})}function Ii(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var p=t;s=Ke?$i(yi(p)):p.appendChild(jo())}Ke&&Ui();var m=null,b=!1,u=gr(()=>{var _=i();return fr(_)?_:_==null?[]:cl(_)});ao(()=>{var _=r(u),w=_.length;if(b&&w===0)return;b=w===0;let y=!1;if(Ke){var C=s.data===Ps;C!==(w===0)&&(s=Ea(),$i(s),so(!1),y=!0)}if(Ke){for(var T=null,k,P=0;P<w;P++){if(vt.nodeType===8&&vt.data===As){s=vt,y=!0,so(!1);break}var A=_[P],I=o(A,P);k=tg(vt,d,T,null,A,I,P,n,e,i),d.items.set(I,k),T=k}w>0&&$i(Ea())}Ke||f0(_,d,s,n,e,o,i),a!==null&&(w===0?m?Yr(m):m=Qi(()=>a(s)):m!==null&&fn(m,()=>{m=null})),y&&so(!0),r(u)}),Ke&&(s=vt)}function f0(t,e,i,o,n,a,s){var ce,Le,Ae,he;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,m=e.items,b=e.first,u=b,_,w=null,y,C=[],T=[],k,P,A,I;if(d)for(I=0;I<p;I+=1)k=t[I],P=a(k,I),A=m.get(P),A!==void 0&&((ce=A.a)==null||ce.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<p;I+=1){if(k=t[I],P=a(k,I),A=m.get(P),A===void 0){var V=u?u.e.nodes_start:i;w=tg(V,e,w,w===null?e.first:w.next,k,P,I,o,n,s),m.set(P,w),C=[],T=[],u=w.next;continue}if(l&&m0(A,k,I,n),(A.e.f&8192)!==0&&(Yr(A.e),d&&((Le=A.a)==null||Le.unfix(),(y!=null?y:y=new Set).delete(A))),A!==u){if(_!==void 0&&_.has(A)){if(C.length<T.length){var q=T[0],Q;w=q.prev;var H=C[0],Y=C[C.length-1];for(Q=0;Q<C.length;Q+=1)Jv(C[Q],q,i);for(Q=0;Q<T.length;Q+=1)_.delete(T[Q]);fs(e,H.prev,Y.next),fs(e,w,H),fs(e,Y,q),u=q,w=Y,I-=1,C=[],T=[]}else _.delete(A),Jv(A,u,i),fs(e,A.prev,A.next),fs(e,A,w===null?e.first:w.next),fs(e,w,A),w=A;continue}for(C=[],T=[];u!==null&&u.k!==P;)(u.e.f&8192)===0&&(_!=null?_:_=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;A=u}C.push(A),w=A,u=A.next}if(u!==null||_!==void 0){for(var ne=_===void 0?[]:cl(_);u!==null;)(u.e.f&8192)===0&&ne.push(u),u=u.next;var Z=ne.length;if(Z>0){var de=(n&4)!==0&&p===0?i:null;if(d){for(I=0;I<Z;I+=1)(Ae=ne[I].a)==null||Ae.measure();for(I=0;I<Z;I+=1)(he=ne[I].a)==null||he.fix()}p0(e,ne,de,m)}}d&&Wo(()=>{var se;if(y!==void 0)for(A of y)(se=A.a)==null||se.apply()}),Tt.first=e.first&&e.first.e,Tt.last=w&&w.e}function m0(t,e,i,o){(o&1)!==0&&Ta(t.v,e),(o&2)!==0?Ta(t.i,i):t.i=i}function tg(t,e,i,o,n,a,s,d,l,p){var m=ms,b=(l&1)!==0,u=(l&16)===0,_=b?u?Gr(n):Ki(n):n,w=(l&2)===0?s:Ki(s);Ee&&b&&(_.debug=()=>{var C=typeof w=="number"?s:w.v;p()[C]});var y={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};ms=y;try{return y.e=Qi(()=>d(t,_,w,p),Ke),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{ms=m}}function Jv(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=Io(a);n.before(a),a=s}}function fs(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 v0(t,e,i){var a,s;if(!e||e===Uv(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=Zo)!=null&&s[bi]&&(o=`in ${Zo[bi]}`),yv(Qu(o))}function kl(t,e,i,o,n){var a=t,s="",d;ao(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ke&&Ui();return}d!==void 0&&(ro(d),d=void 0),s!==""&&(d=Qi(()=>{if(Ke){for(var p=vt.data,m=Ui(),b=m;m!==null&&(m.nodeType!==8||m.data!=="");)b=m,m=Io(m);if(m===null)throw Bs(),zr;Ee&&!n&&v0(m.parentNode,p,s),_o(vt,b),a=$i(m);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var _=Da(u);if((i||o)&&(_=yi(_)),_o(yi(_),_.lastChild),i||o)for(;yi(_);)a.before(yi(_));else a.before(_)}))})}function ge(t,e,...i){var o=t,n=ie,a;ao(()=>{n!==(n=e())&&(a&&(ro(a),a=null),Ee&&n==null&&av(),a=Qi(()=>n(o,...i)))},65536),Ke&&(o=vt)}function ki(t,e,i){Ke&&Ui();var o=t,n,a;ao(()=>{n!==(n=e())&&(a&&(fn(a),a=null),n&&(a=Qi(()=>i(o,n))))},65536),Ke&&(o=vt)}function qs(t,e,i,o,n,a){var w;let s=Ke;Ke&&Ui();var d=Ee&&a&&((w=Et)==null?void 0:w.function[bi]),l,p,m=null;Ke&&vt.nodeType===1&&(m=vt,Ui());var b=Ke?vt:t,u,_=ms;ao(()=>{let y=e()||null;var C=n?n():i||y==="svg"?$u:null;if(y!==l){var T=ms;tp(_),u&&(y===null?fn(u,()=>{u=null,p=null}):y===p?Yr(u):(ro(u),uc(!1))),y&&y!==p&&(u=Qi(()=>{if(m=Ke?m:C?document.createElementNS(C,y):document.createElement(y),Ee&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),_o(m,m),o){Ke&&Qv(y)&&m.append(document.createComment(""));var k=Ke?yi(m):m.appendChild(jo());Ke&&(k===null?so(!1):$i(k)),o(m,k)}Tt.nodes_end=m,b.before(m)})),l=y,l&&(p=l),uc(!0),tp(T)}},65536),s&&(so(!0),$i(b))}var op;function ig(t){return op=t.target,new ip(t)}var Xr,Zn,ip=class{constructor(e){ls(this,Xr);ls(this,Zn);var a,s;var i=new Map,o=(d,l)=>{var p=Gr(l);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var p;return r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l)))},has(d,l){var p;return l===dl?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var m;return D((m=i.get(l))!=null?m:o(l,p),p),Reflect.set(d,l,p)}});xa(this,Zn,(e.hydrate?Xu:Zr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Ma(),xa(this,Xr,n.$$events);for(let d of Object.keys(Vi(this,Zn)))d==="$set"||d==="$destroy"||d==="$on"||oo(this,d,{get(){return Vi(this,Zn)[d]},set(l){Vi(this,Zn)[d]=l},enumerable:!0});Vi(this,Zn).$set=d=>{Object.assign(n,d)},Vi(this,Zn).$destroy=()=>{Us(Vi(this,Zn))}}$set(e){Vi(this,Zn).$set(e)}$on(e,i){Vi(this,Xr)[e]=Vi(this,Xr)[e]||[];let o=(...n)=>i.call(this,...n);return Vi(this,Xr)[e].push(o),()=>{Vi(this,Xr)[e]=Vi(this,Xr)[e].filter(n=>n!==o)}}$destroy(){Vi(this,Zn).$destroy()}};Xr=new WeakMap,Zn=new WeakMap;function W(t,e){Wo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=op)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ee&&jv(e.hash,d)}})}function og(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=og(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ng(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=og(t))&&(o&&(o+=" "),o+=e);return o}function El(t){return typeof t=="object"?ng(t):t!=null?t:""}var rg=[...`
|
|
48
|
+
\r\f\xA0\v\uFEFF`];function ag(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||rg.includes(o[s-1]))&&(d===o.length||rg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function sg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function np(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function lg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(np)),n&&l.push(...Object.keys(n).map(np));var p=0,m=-1;let y=t.length;for(var b=0;b<y;b++){var u=t[b];if(d?u==="/"&&t[b-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[b+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&m===-1)m=b;else if(u===";"||b===y-1){if(m!==-1){var _=np(t.substring(p,m).trim());if(!l.includes(_)){u!==";"&&b++;var w=t.substring(p,b).trim();i+=" "+w+";"}}p=b+1,m=-1}}}}return o&&(i+=sg(o)),n&&(i+=sg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,a){var s=t.__className;if(Ke||s!==i){var d=ag(i,o,a);(!Ke||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var p=!!a[l];(n==null||p!==!!n[l])&&t.classList.toggle(l,p)}return a}function rp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function nt(t,e,i,o){var n=t.__style;if(Ke||n!==e){var a=lg(e,o);(!Ke||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(rp(t,i==null?void 0:i[0],o[0]),rp(t,i==null?void 0:i[1],o[1],"important")):rp(t,i,o));return o}var Ha=Symbol("class"),Fa=Symbol("style"),ug=Symbol("is custom element"),pg=Symbol("is html");function fg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Be(t,e,i,o){var n=mg(t);if(Ke&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||x0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[jm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&vg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ie(t,e,i,o,n=!1){var A;var a=mg(t),s=a[ug],d=!a[pg];let l=Ke&&s;l&&so(!1);var p=e||{},m=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=El(i.class):(o||i[Ha])&&(i.class=null),i[Fa]&&((A=i.style)!=null||(i.style=null));var u=vg(t);for(let I in i){let V=i[I];if(m&&I==="value"&&V==null){t.value=t.__value="",p[I]=V;continue}if(I==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,_,V,o,e==null?void 0:e[Ha],i[Ha]),p[I]=V,p[Ha]=i[Ha];continue}if(I==="style"){nt(t,V,e==null?void 0:e[Fa],i[Fa]),p[I]=V,p[Fa]=i[Fa];continue}var w=p[I];if(V!==w){p[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let q={},Q="$$"+I,H=I.slice(2);var C=qv(H);if(zv(H)&&(H=H.slice(0,-7),q.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(H,p[Q],q),p[Q]=null}if(V!=null)if(C)t[`__${H}`]=V,st([H]);else{let Y=function(ne){p[I].call(this,ne)};var P=Y;p[Q]=Yu(H,t,Y,q)}else C&&(t[`__${H}`]=void 0)}else if(I==="style")Be(t,I,V);else if(I==="autofocus")Gu(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&m)fg(t,V);else{var T=I;d||(T=Wv(T));var k=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!k)if(a[I]=null,T==="value"||T==="checked"){let q=t,Q=e===void 0;if(T==="value"){let H=q.defaultValue;q.removeAttribute(T),q.defaultValue=H,q.value=q.__value=Q?H:null}else{let H=q.defaultChecked;q.removeAttribute(T),q.defaultChecked=H,q.checked=Q?H:!1}}else t.removeAttribute(I);else k||u.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&Be(t,T,V,n)}}}return l&&so(!0),p}function mg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[ug]:t.nodeName.includes("-"),[pg]:t.namespaceURI===Wm}}var dg=new Map;function vg(t){var e=dg.get(t.nodeName);if(e)return e;dg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Kd(o);for(var a in i)i[a].set&&e.push(a);o=Wr(o)}return e}function x0(t,e,i){var o;Ee&&(e==="srcset"&&w0(t,i)||sp((o=t.getAttribute(e))!=null?o:"",i)||$v(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function sp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function cg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function w0(t,e){var i=cg(t.srcset),o=cg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(sp(i[s][0],n)||sp(n,i[s][0])))}var S0=Wd?()=>performance.now():()=>Date.now(),_r={tick:t=>(Wd?requestAnimationFrame:ie)(t),now:()=>S0(),tasks:new Set};function gg(){let t=_r.now();_r.tasks.forEach(e=>{e.c(t)||(_r.tasks.delete(e),e.f())}),_r.tasks.size!==0&&_r.tick(gg)}function hg(t){let e;return _r.tasks.size===0&&_r.tick(gg),{promise:new Promise(i=>{_r.tasks.add(e={c:t,f:i})}),abort(){_r.tasks.delete(e)}}}function pc(t,e){Cl(()=>{t.dispatchEvent(new CustomEvent(e))})}function k0(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 _g(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=k0(n.trim());e[s]=a.trim()}return e}var E0=t=>t;function lp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",p,m=e.inert,b=e.style.overflow,u,_;function w(){var V;var A=Ot,I=Tt;vo(null),no(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{vo(A),no(I)}}var y={is_global:d,in(){var A;if(e.inert=m,!n){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||u==null||u.abort(),pc(e,"introstart"),u=ap(e,w(),_,1,()=>{pc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=b})},out(A){if(!a){A==null||A(),p=void 0;return}e.inert=!0,pc(e,"outrostart"),_=ap(e,w(),u,0,()=>{pc(e,"outroend"),A==null||A()})},stop:()=>{u==null||u.abort(),_==null||_.abort()}},C=Tt;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Tl){var T=d;if(!T){for(var k=C.parent;k&&(k.f&65536)!==0;)for(;(k=k.parent)&&(k.f&16)===0;);T=!k||(k.f&32768)!==0}T&&pn(()=>{yt(()=>y.in())})}}function ap(t,e,i,o,n){var a=o===1;if(cs(e)){var s,d=!1;return Wo(()=>{if(!d){var C=e({direction:a?"in":"out"});s=ap(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ie,deactivate:ie,reset:ie,t:()=>o};let{delay:l=0,css:p,tick:m,easing:b=E0}=e;var u=[];if(a&&i===void 0&&(m&&m(0,1),p)){var _=_g(p(0,1));u.push(_,_)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var H;var C=(H=i==null?void 0:i.t())!=null?H:1-o;i==null||i.abort();var T=o-C,k=e.duration*Math.abs(T),P=[];if(k>0){var A=!1;if(p)for(var I=Math.ceil(k/16.666666666666668),V=0;V<=I;V+=1){var q=C+T*b(V/I),Q=_g(p(q,1-q));P.push(Q),A||(A=Q.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var Y=y.currentTime;return C+T*b(Y/k)},m&&hg(()=>{if(y.playState!=="running")return!1;var Y=w();return m(Y,1-Y),!0})}y=t.animate(P,{duration:k,fill:"forwards"}),y.onfinish=()=>{w=()=>o,m==null||m(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>w()}}var vs,Ua,Pl,mc,bg,vc=class vc{constructor(e){ls(this,mc);ls(this,vs,new WeakMap);ls(this,Ua);ls(this,Pl);xa(this,Pl,e)}observe(e,i){var o=Vi(this,vs).get(e)||new Set;return o.add(i),Vi(this,vs).set(e,o),zm(this,mc,bg).call(this).observe(e,Vi(this,Pl)),()=>{var n=Vi(this,vs).get(e);n.delete(i),n.size===0&&(Vi(this,vs).delete(e),Vi(this,Ua).unobserve(e))}}};vs=new WeakMap,Ua=new WeakMap,Pl=new WeakMap,mc=new WeakSet,bg=function(){var e;return(e=Vi(this,Ua))!=null?e:xa(this,Ua,new ResizeObserver(i=>{for(var o of i){vc.entries.set(o.target,o);for(var n of Vi(this,vs).get(o.target)||[])n(o)}}))},Cn(vc,"entries",new WeakMap);var dp=vc;var M0=new dp({box:"border-box"});function Br(t,e,i){var o=M0.observe(t,()=>i(t[e]));pn(()=>(yt(()=>i(t[e])),o))}function $g(t,e){return t===e||(t==null?void 0:t[Bo])===e}function pt(t={},e,i,o){return pn(()=>{var n,a;return ho(()=>{n=a,a=(o==null?void 0:o())||[],yt(()=>{t!==i(...a)&&(e(t,...a),n&&$g(i(...n),t)&&e(null,...n))})}),()=>{Wo(()=>{a&&$g(i(...a),t)&&e(null,...a)})}}),t}function br(t=!1){let e=Et,i=e.l.u;if(!i)return;let o=()=>nc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&La(()=>{yg(e,o),us(i.b)}),He(()=>{let n=yt(()=>i.m.map(Xm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&He(()=>{yg(e,o),us(i.a)})}function yg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ee){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;cv(e)},set:o=>{i=o}})}};V0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var V0;function zt(t){Et===null&&Va("onMount"),Lr&&Et.l!==null?L0(Et).m.push(t):He(()=>{let e=yt(t);if(typeof e=="function")return e})}function mn(t){Et===null&&Va("onDestroy"),zt(()=>()=>yt(t))}function L0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Al(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=yt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var za=[];function Xn(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ie){let i=null,o=new Set;function n(d){if(wa(t,d)&&(t=d,i)){let l=!za.length;for(let p of o)p[1](),za.push(p,t);if(l){for(let p=0;p<za.length;p+=2)za[p][0](za[p+1]);za.length=0}}}function a(d){n(d(t))}function s(d,l=ie){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||ie),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function xi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return Xn(i,(s,d)=>{let l=!1,p=[],m=0,b=ie,u=()=>{if(m)return;b();let w=e(o?p[0]:p,s,d);a?s(w):b=typeof w=="function"?w:ie},_=n.map((w,y)=>Al(w,C=>{p[y]=C,m&=~(1<<y),l&&u()},()=>{m|=1<<y}));return l=!0,u(),function(){us(_),b(),l=!1}})}function Ce(t){let e;return Al(t,i=>e=i)(),e}var gc=!1,cp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Gr(void 0),unsubscribe:ie};if(o.store!==t&&!(cp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ie;else{var n=!0;o.unsubscribe=Al(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&cp in i?Ce(t):r(o.source)}function Re(){let t={};function e(){Xo(()=>{for(var i in t)t[i].unsubscribe();oo(t,cp,{enumerable:!1,value:!0})})}return[t,e]}function up(t){var e=gc;try{return gc=!1,[t(),gc]}finally{gc=e}}var F0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&dv(`${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 Pe(t,e,i){return new Proxy(Ee?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},F0)}var U0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];cs(n)&&(n=n());let a=Tn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Tn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Bo||e===dl)return!1;for(let i of t.props)if(cs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){cs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Jr(...t){return new Proxy({props:t},U0)}function xg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var q,Q;var n=(i&1)!==0,a=!Lr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=up(()=>t[e]):p=t[e];var m=Bo in t||dl in t,b=s&&((Q=(q=Tn(t,e))==null?void 0:q.set)!=null?Q:m&&e in t&&(H=>t[e]=H))||void 0,u=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?u=yt(o):u=o),u);p===void 0&&o!==void 0&&(b&&a&&lv(e),p=y(),b&&b(p));var C;if(a)C=()=>{var H=t[e];return H===void 0?y():(_=!0,w=!1,H)};else{var T=(n?v:gr)(()=>t[e]);T.f|=131072,C=()=>{var H=r(T);return H!==void 0&&(u=void 0),H===void 0?u:H}}if((i&4)===0)return C;if(b){var k=t.$$legacy;return function(H,Y){return arguments.length>0?((!a||!Y||k||l)&&b(Y?C():H),H):C()}}var P=!1,A=!1,I=Gr(p),V=v(()=>{var H=C(),Y=r(I);return P?(P=!1,A=!0,Y):(A=!1,I.v=H)});return s&&r(V),n||(V.equals=Sa),function(H,Y){if(fl!==null&&(P=A,C(),r(I)),arguments.length>0){let ne=Y?r(V):a&&s?fe(H):H;if(!V.equals(ne)){if(P=!0,D(I,ne),w&&u!==void 0&&(u=ne),xg(V))return H;yt(()=>r(V))}return H}return xg(V)?V.v:r(V)}}var z0;typeof HTMLElement=="function"&&(z0=class extends HTMLElement{constructor(e,i,o){super();Cn(this,"$$ctor");Cn(this,"$$s");Cn(this,"$$c");Cn(this,"$$cn",!1);Cn(this,"$$d",{});Cn(this,"$$r",!1);Cn(this,"$$p_d",{});Cn(this,"$$l",{});Cn(this,"$$l_u",new Map);Cn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),$(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=q0(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=pp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=ig({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=sc(()=>{ho(()=>{var a;this.$$r=!0;for(let s of yu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=pp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=pp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return yu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function pp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function q0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var wg="5";var Sg,Cg,Tg;typeof window!="undefined"&&((Tg=(Cg=(Sg=window.__svelte)!=null?Sg:window.__svelte={}).v)!=null?Tg:Cg.v=new Set).add(wg);import{clientChecker as Im}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as y1,safeStorage as Ex,throttleFn as Px}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Ax}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as K0,fillWithDefault as Q0,VideoQuality as Ig}from"@vkontakte/videoplayer-shared/es2018";var G0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:K0.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:Ig.Q_480P,highQualityLimit:Ig.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},kg=t=>Q0(t,G0),Eg=t=>Na("ui-config",t),qt=()=>Ra("ui-config");var Ml="vk_player_debug_panel_opened";var Pg="videoplayer",Ag="videoplayer";var Dr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Mg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Lg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Vg=new Set(["ShiftRight","ShiftLeft"]);var Rg=["TIMELINE"],Ll=[...Rg,"GRAPH_BUTTON"],fp=[...Rg,"PLAY_BUTTON"],Vl=[...Ll,"PLAY_BUTTON"];var Or=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Or||{}),Ks={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Ng,VERSION as j0}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as Y0}from"@vkontakte/videoplayer-core/es2018";import{VERSION as Z0}from"@vkontakte/videoplayer-statistics/es2018";var hc="prod",qa="1.1.64";var Qs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Bg=Symbol("storeContext"),Dg=Symbol("microStoresContext"),Og=(t,e)=>{Na(Bg,t),Na(Dg,e),hc==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=Ra(Bg);return Ng(t,"Store context is empty!"),t},lo=()=>{let t=Ra(Dg);return Ng(t,"MicroStores context is empty!"),t},ei=(t,e)=>bc(t,t.getValue(),e),bc=(t,e,i)=>Xn(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Hg=(t,e,i,o)=>{var k,P,A,I,V,q;let n=t.info,{width:a,height:s}=Ce(i.ui.playerSize),d=(P=(k=n.throughputEstimation$.getValue())==null?void 0:k.toFixed(0))!=null?P:0,l=(I=(A=n.rttEstimation$.getValue())==null?void 0:A.toFixed(0))!=null?I:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${qa} (core: ${Y0}, stat: ${Z0}, shared: ${j0})`,b=Ce(i.state.errorLog$),u=b.length?`
|
|
49
|
+
`+b.map((Q,H)=>{var de;let Y=`${H}) Type: ${Q.id}
|
|
50
|
+
`,ne=`Message: ${Q.message} (${Q.thrown})
|
|
51
|
+
`,Z=`Trace: ${(de=Q.thrown)==null?void 0:de.stack}
|
|
52
|
+
`;return Y+ne+Z}).join(`
|
|
53
|
+
`):void 0,_=i.state.isAudioDisabled?"disabled":Ce(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(V=w==null?void 0:w.codec)!=null?V:""}`+(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={Version:m,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:Ce(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${l}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${p} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:_,Position:`${Ce(i.state.positionExact$)}s`,State:`${Ce(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${s}`,URL:window.location.href,Errors:u};return Object.entries(T).filter(([Q,H])=>H!==void 0).map(([Q,H])=>`${Q}: ${H}`).join(`
|
|
54
|
+
`)},Fg=(t,e,i)=>{var q,Q,H,Y;let o=t.info,{width:n,height:a}=Ce(i.ui.playerSize),s={version:qa,viewport:`${n}x${a}`,volume:Math.round(Ce(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(s.videoSize=`${p.width}x${p.height}`);let m=o.currentBuffer$.getValue(),b=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();m&&(b&&u?s.buffer=m.end-u:s.buffer=Math.max(m.end-Ce(i.state.positionExact$),0));let _=o.throughputEstimation$.getValue();_&&(s.speed=_);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let y=o.liveLatency$.getValue();y&&(s.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let k=Ce(i.vsid);typeof k=="string"&&(s.vsid=k);let P=(q=t.info.currentVideoStream$.getValue())==null?void 0:q.codec;P&&(s.videoCodec=P);let A=(Q=t.info.currentAudioStream$.getValue())==null?void 0:Q.codec;A&&(s.audioCodec=A),((H=t.info.currentVideoStream$.getValue())==null?void 0:H.hdr)&&(s.hdr=!0);let V=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.language;return V&&(s.audioLanguage=V),s},Ug=(t,e)=>Qs(t,e,"mp4"),zg=t=>!t.type,qg=t=>!!t.type,Wg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},_c=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as gp,safeStorage as bo}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var Kg="vk_player_prefer_traffic_saving_enabled",Qg="vk_player_preferred_volume",Gg="vk_player_prefer_volume_mute",hp="vk_player_preferred_quality",mp="vk_player_preferred_default_quality_settings",vp="vk_player_preferred_quality_settings_by_video",jg="vk_player_preferred_stream_language",Yg="vk_player_preferred_rate",Zg="vk_player_preferred_autoplay_next",Xg=t=>t>1?1:t<0?0:t,_p=t=>bo.set(Qg,Xg(t).toString(10)),$c=()=>{let t=bo.get(Qg);return gp(t)?void 0:Xg(parseFloat(t))},bp=(t,e)=>bo.set(hp,JSON.stringify({videoId:t,value:e})),Nl=()=>bo.remove(hp),$p=t=>{let e=bo.get(hp);if(gp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Nl();return}return o},yp=(t,e)=>{e?bo.set(t,"true"):bo.remove(t)},xp=t=>bo.get(t)==="true",wp=t=>yp(Gg,t),Jg=()=>xp(Gg),Rl=t=>yp(Kg,t),Sp=()=>xp(Kg),eh=()=>bo.get(jg),Cp=t=>bo.set(jg,t),th=t=>bo.set(Yg,JSON.stringify({rate:t})),ih=()=>{let t=bo.get(Yg);if(gp(t))return;let{rate:e}=JSON.parse(t);return e},oh=t=>yp(Zg,t),nh=()=>xp(Zg),X0=()=>{let t=m=>{bo.set(mp,JSON.stringify(m))},e=()=>{try{let m=bo.get(mp);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=bo.get(vp);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{bo.set(vp,JSON.stringify(m))},n=m=>{p(m);let b=m?i():null;if(b&&(b==null?void 0:b.videoId)===m)return{...b,appliesTo:"to-video"};b&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{bo.remove(vp)},s=()=>{bo.remove(mp)},d=(m,b="as-default")=>{m.type==="exact_quality"?o(m):b==="as-default"?t(m):o(m)},l=m=>{let b=n(m);if(b){switch(b.type){case"traffic_saving":Rl(!0);break;case"exact_quality":bp(m,b.quality)}a(),s()}},p=m=>{let b=$p(m);if(b){o({type:"exact_quality",videoId:m,quality:b});return}Sp()&&t({type:"traffic_saving",videoId:m}),Rl(!1),Nl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:rh,migrateSettingsToLegacyWay:sh,savePreferredQualitySettings:yc,savePreferredDefaultQualitySettings:GP,removePreferredQualitySettingsByVideo:jP,getPreferredDefaultQualitySettings:xc}=X0();import{PlaybackState as _1}from"@vkontakte/videoplayer-core/es2018";var J0=xe('<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 Bl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=J0();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),$(t,o)}import{isNullable as dh,InterfaceLanguage as ch}from"@vkontakte/videoplayer-shared/es2018";var e_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_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",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
|
|
55
55
|
\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
|
|
56
|
-
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},
|
|
56
|
+
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},ah=e_;var t_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_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",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
|
|
57
57
|
so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
58
|
-
Try switching the\xA0quality to\xA0Auto.`},
|
|
59
|
-
`),o,n;for(let a=0;a<i.length;++a){if(o=
|
|
60
|
-
`).filter(i=>!!i)[0]}function r_(t){try{let e=n_(t);if(e)return e}catch(e){}return{value:dh(t),type:t&&t.name,stacktrace:{frames:[]}}}function s_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var wc=class{constructor(e){if(e&&e.dsn){let i=o_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[r_(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(i_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:s_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function ch(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function a_(){return window}var Sc=class t extends wc{constructor(e,i=a_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:a=p=>p,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=s,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>ch(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>ch(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],a=Array.isArray(n)?n:null,s=e[o],d=Array.isArray(s)?s:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Cc,Subscription as l_}from"@vkontakte/videoplayer-shared/es2018";var Tc=null,Gs=class{constructor(e,i,o={}){!Tc&&e.dsn&&(this.sentryClient=new Sc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new l_,this.options=e,this.context=o,Tc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Tc=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:a,options:s}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:p=[],blackErrorIdList:m,blackErrorCategoryList:$}=s,{errorType:u,category:_}=i;if(Cc(_)&&$.includes(_)||Cc(u)&&m.includes(u))return;if(Math.random()<=d||Cc(_)&&p.includes(_)||Cc(u)&&l.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras({...a,...o});try{u&&n.captureMessage(u,i.fatal?Ua.fatal:Ua.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Tc}};var ts=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ts||{});var Ic=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},kc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),uh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Dl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},gs=()=>!!Dl(),Ec=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Pc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},ph=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as fh}from"@vkontakte/videoplayer-core/es2018";var mh=()=>({title:U("hotkey_map_modal_title"),closeBtnText:U("hotkey_map_modal_close_btn_text"),groups:[{title:U("hotkey_map_group_title_common"),items:[{description:U("hotkey_map_item_mute_description"),value:U("hotkey_map_item_mute_value")},{description:U("hotkey_map_item_volume_up_description"),value:U("hotkey_map_item_volume_up_value")},{description:U("hotkey_map_item_volume_down_description"),value:U("hotkey_map_item_volume_down_value")},{description:U("hotkey_map_item_pip_description"),value:U("hotkey_map_item_pip_value")},{description:U("hotkey_map_item_full_screen_description"),value:U("hotkey_map_item_full_screen_value")},{description:U("hotkey_map_item_show_context_menu_description"),value:U("hotkey_map_item_show_context_menu_value")},{description:U("hotkey_map_item_show_hotkey_map_description"),value:U("hotkey_map_item_show_hotkey_map_value")}]},{title:U("hotkey_map_group_title_playback"),items:[{description:U("hotkey_map_item_play_toggle_description"),value:U("hotkey_map_item_play_toggle_value")},{description:U("hotkey_map_item_seek_backward_description"),value:U("hotkey_map_item_seek_backward_value")},{description:U("hotkey_map_item_seek_forward_description"),value:U("hotkey_map_item_seek_forward_value")},{description:U("hotkey_map_item_fast_seek_backward_description"),value:U("hotkey_map_item_fast_seek_backward_value")},{description:U("hotkey_map_item_fast_seek_forward_description"),value:U("hotkey_map_item_fast_seek_forward_value")},{description:U("hotkey_map_item_rate_down_description"),value:U("hotkey_map_item_rate_down_value")},{description:U("hotkey_map_item_rate_up_description"),value:U("hotkey_map_item_rate_up_value")},{description:U("hotkey_map_item_prev_frame_description"),value:U("hotkey_map_item_prev_frame_value")},{description:U("hotkey_map_item_next_frame_description"),value:U("hotkey_map_item_next_frame_value")},{description:U("hotkey_map_item_jump_seek_description"),value:U("hotkey_map_item_jump_seek_value")},{description:U("hotkey_map_item_next_video_description"),value:U("hotkey_map_item_next_video_value")},{description:U("hotkey_map_item_prev_video_description"),value:U("hotkey_map_item_prev_video_value")}]},{title:U("hotkey_map_group_title_subtitles"),items:[{description:U("hotkey_map_item_subtitles_toggle_description"),value:U("hotkey_map_item_subtitles_toggle_value")}]},{title:U("hotkey_map_group_title_episodes"),items:[{description:U("hotkey_map_item_prev_episode_description"),value:fh.device.isApple?U("hotkey_map_item_prev_episode_mac_value"):U("hotkey_map_item_prev_episode_pc_value")},{description:U("hotkey_map_item_next_episode_description"),value:fh.device.isApple?U("hotkey_map_item_next_episode_mac_value"):U("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as d_,ValueSubject as Tp}from"@vkontakte/videoplayer-shared/es2018";var js=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:d_(this.onResize.bind(this),300)};this.info={isActive$:new Tp(!1),isEnabled$:new Tp(!1),type:0};this.info.isEnabled$=new Tp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Ys(t){return t instanceof js}import{devNull as vh,now as gh}from"@vkontakte/videoplayer-shared/es2018";pv();function Ep(t,e){z(e,!1);let i=Ce();Ft(()=>{i.getAdmanWrapper().startPostroll()}),br(),q()}import{noop as c_}from"@vkontakte/videoplayer-shared/es2018";var u_=(t,e)=>{t.stopPropagation(),e()()},p_=L('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),f_=L("<div><!></div>"),m_={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 Pp(t,e){z(e,!0),W(t,m_);let[i,o]=Be(),n=()=>S(p,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"secondsToWatchBeforeSkip",3,0),d=f(e,"skipAd",3,c_),p=Ce().ui.isMobile,m=v(()=>a()>0&&a()>=s());var $=f_();let u;var _=h($);{var w=C=>{var T=p_();T.__click=[u_,d];var E=h(T);$e(),g(T),k(P=>me(E,`${P!=null?P:""} `),[()=>U("skip_ads_now")]),b(C,T)},y=C=>{var T=Rr();k(E=>me(T,E),[()=>U("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(C,T)};R(_,C=>{r(m)?C(w):C(y,!1)})}g($),k(C=>u=ee($,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:r(m)})]),b(t,$),q(),o()}at(["click"]);var v_=L('<button class="svelte-1wy3dql"> </button>'),g_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Ap(t,e){z(e,!1),W(t,g_),br();var i=v_(),o=h(i,!0);g(i),k(n=>me(o,n),[()=>U("visit_advertiser")],gr),b(t,i),q()}var h_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),__=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),b_={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
58
|
+
Try switching the\xA0quality to\xA0Auto.`},lh=t_;var es=new Map;es.set(ch.EN,lh);es.set(ch.RU,ah);var uh=new Map,Tp=({language:t,pack:e,fallback:i})=>{if(es.has(t)){let o=es.get(t);es.set(t,{...o,...e})}else es.set(t,e);uh.set(t,i)},Ip=t=>es.has(t),kp=(t,e,i,o)=>{var s;let n=es.get(t),a=n==null?void 0:n[e];if(dh(a)){let d=(s=uh.get(t))!=null?s:o,l=d?es.get(d):void 0;a=l==null?void 0:l[e]}return dh(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var p;return(p=i[l])!=null?p:""}):a},F=(t,e)=>{let{interfaceLanguage$:i}=Te(),o=Ce(i),n=qt();return kp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var Wa;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Wa||(Wa={}));var i_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,n_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wc="?",r_="X-Sentry-Auth",s_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
|
|
59
|
+
`),o,n;for(let a=0;a<i.length;++a){if(o=i_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||wc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=n_.exec(i[a]))n={filename:o[2],function:o[1]||wc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=o_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||wc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=wc),e.push(n)}return e.length?{value:ph(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function ph(t){return(t&&t.message||"No error message").split(`
|
|
60
|
+
`).filter(i=>!!i)[0]}function l_(t){try{let e=a_(t);if(e)return e}catch(e){}return{value:ph(t),type:t&&t.name,stacktrace:{frames:[]}}}function d_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Sc=class{constructor(e){if(e&&e.dsn){let i=s_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[l_(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(r_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:d_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function fh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function c_(){return window}var Cc=class t extends Sc{constructor(e,i=c_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:a=p=>p,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=s,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>fh(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>fh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],a=Array.isArray(n)?n:null,s=e[o],d=Array.isArray(s)?s:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Tc,Subscription as u_}from"@vkontakte/videoplayer-shared/es2018";var Ic=null,Gs=class{constructor(e,i,o={}){!Ic&&e.dsn&&(this.sentryClient=new Cc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new u_,this.options=e,this.context=o,Ic=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Ic=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:a,options:s}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:p=[],blackErrorIdList:m,blackErrorCategoryList:b}=s,{errorType:u,category:_}=i;if(Tc(_)&&b.includes(_)||Tc(u)&&m.includes(u))return;if(Math.random()<=d||Tc(_)&&p.includes(_)||Tc(u)&&l.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras({...a,...o});try{u&&n.captureMessage(u,i.fatal?Wa.fatal:Wa.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Ic}};var ts=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ts||{});var kc=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Ec=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),mh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Dl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},gs=()=>!!Dl(),Pc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Ac=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},vh=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as gh}from"@vkontakte/videoplayer-core/es2018";var hh=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:gh.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:gh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as p_,ValueSubject as Ep}from"@vkontakte/videoplayer-shared/es2018";var js=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:p_(this.onResize.bind(this),300)};this.info={isActive$:new Ep(!1),isEnabled$:new Ep(!1),type:0};this.info.isEnabled$=new Ep(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Ys(t){return t instanceof js}import{devNull as _h,now as bh}from"@vkontakte/videoplayer-shared/es2018";vv();function Mp(t,e){U(e,!1);let i=Te();zt(()=>{i.getAdmanWrapper().startPostroll()}),br(),z()}import{noop as f_}from"@vkontakte/videoplayer-shared/es2018";var m_=(t,e)=>{t.stopPropagation(),e()()},v_=L('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),g_=L("<div><!></div>"),h_={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 Lp(t,e){U(e,!0),W(t,h_);let[i,o]=Re(),n=()=>S(p,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"secondsToWatchBeforeSkip",3,0),d=f(e,"skipAd",3,f_),p=Te().ui.isMobile,m=v(()=>a()>0&&a()>=s());var b=g_();let u;var _=h(b);{var w=C=>{var T=v_();T.__click=[m_,d];var k=h(T);ye(),g(T),E(P=>ve(k,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),$(C,T)},y=C=>{var T=Nr();E(k=>ve(T,k),[()=>F("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),$(C,T)};R(_,C=>{r(m)?C(w):C(y,!1)})}g(b),E(C=>u=J(b,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:r(m)})]),$(t,b),z(),o()}st(["click"]);var __=L('<button class="svelte-1wy3dql"> </button>'),b_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Vp(t,e){U(e,!1),W(t,b_),br();var i=__(),o=h(i,!0);g(i),E(n=>ve(o,n),[()=>F("visit_advertiser")],gr),$(t,i),z()}var $_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),y_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),x_={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(
|
|
61
61
|
360deg,
|
|
62
62
|
rgba(0, 0, 0, 0) 0%,
|
|
63
63
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -67,7 +67,7 @@ Try switching the\xA0quality to\xA0Auto.`},rh=X0;var es=new Map;es.set(ah.EN,rh)
|
|
|
67
67
|
rgba(0, 0, 0, 0.5) 77%,
|
|
68
68
|
rgba(0, 0, 0, 0.55) 88%,
|
|
69
69
|
rgba(0, 0, 0, 0.65) 100%
|
|
70
|
-
);}`};function Ol(t,e){
|
|
70
|
+
);}`};function Ol(t,e){U(e,!0),W(t,x_);let[i,o]=Re(),n=()=>S(Q,"$canSkipAd",i),a=()=>S(q,"$adPlaybackState",i),s=()=>S(k,"$isMobile",i),d=()=>S(H,"$adPosition",i),l=()=>S(Y,"$secondsToWatchBeforeSkipAd",i),p=()=>S(T,"$isVideoEnded",i),m=f(e,"adsSlotId",3,void 0),b=f(e,"adsParams",3,void 0),u=f(e,"adsPreviewParam",3,void 0),_=f(e,"adsAutoplayParam",3,void 0),w=f(e,"duration",3,0),y=Te(),C=qt(),T=y.state.isEnded$,k=y.ui.isMobile,P=C.ads.isMobileGoToSiteButton,A=X(void 0),I=X(void 0),V=!1,q=y.ads.playbackState,Q=y.ads.canSkip,H=y.ads.position,Y=y.ads.secondsToWatchBeforeSkip,ne=v(()=>n()&&a()!=="inactive"),Z=v(()=>s()&&a()!=="inactive"&&P);zt(()=>{var we;let le=y.getAdmanWrapper();if(_h.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[bh(),m()]}),!m()){le.onAdmanLoadingError();return}let We=Ve=>{le.initAdman(Ve),V=!0},ee=new AbortController,me=()=>{ee.abort()},{width:j,height:te}=Ce(y.ui.playerSize),Oe=Ce(y.ui.isFullscreen),Ge=(we=_())!=null?we:Ce(y.ui.isAutoplay),$e={width:j,height:te,isFullscreen:Oe,isAutoplay:Ge,adsContainer:r(A),adsVideoElement:r(I),slotId:m(),params:b(),previewParam:u(),duration:w()};return window.AdmanHTML?We($e):le.loadAdman(ee.signal).then(()=>{We($e)}).catch(()=>{le.onAdmanLoadingError()}),()=>{_h.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[bh(),m()]}),!V&&me()}});var de=y_(),ce=h(de);{var Le=le=>{var We=$_();$(le,We)};R(ce,le=>{s()&&le(Le)})}var Ae=M(ce,2);pt(Ae,le=>D(I,le),()=>r(I));var he=M(Ae,2);{var se=le=>{Lp(le,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};R(he,le=>{r(ne)&&le(se)})}var Me=M(he,2);{var oe=le=>{Mp(le,{})};R(Me,le=>{p()&&le(oe)})}var B=M(Me,2);{var be=le=>{Vp(le,{})};R(B,le=>{r(Z)&&le(be)})}g(de),pt(de,le=>D(A,le),()=>r(A)),$(t,de),z(),o()}var Jo=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var w_=xe('<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 Rp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=w_();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),$(t,o)}var S_=xe('<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 Np(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=S_();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i})),$(t,o)}function Hl(t,e){let i=f(e,"isActive",3,!1);var o=De(),n=pe(o);{var a=d=>{Np(d,{})},s=d=>{Rp(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}$(t,o)}var C_=L('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),T_=L('<div class="live-icon svelte-1s15d2i"><!></div>'),I_=L('<span class="text svelte-1s15d2i"> </span>'),k_=L("<div><!> <!></div>"),E_={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),
|
|
71
71
|
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%;
|
|
72
72
|
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;
|
|
73
73
|
animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
|
|
@@ -138,10 +138,10 @@ Try switching the\xA0quality to\xA0Auto.`},rh=X0;var es=new Map;es.set(ah.EN,rh)
|
|
|
138
138
|
100% {
|
|
139
139
|
transform: scaleY(0.6);
|
|
140
140
|
}
|
|
141
|
-
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Fl(t,e){W(t,
|
|
142
|
-
opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function Ul(t,e){z(e,!0),W(t,k_);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1),a=v(()=>on(e.duration-e.position));var s=I_();let d;var l=h(s);Fl(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),k(p=>d=ee(s,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),b(t,s),q()}var za=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)}}};import{ChromecastState as O_}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as hh}from"@vkontakte/videoplayer-core/es2018";var nr=t=>{t.stopPropagation(),t.preventDefault()},P_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},A_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},M_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},L_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},_h=t=>t.code==="Escape",V_=t=>t.code==="ArrowLeft",zl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},bh=t=>{if(M_(t)){nr(t),A_(t.target);return}L_(t)&&(nr(t),P_(t.target))},bs=t=>!hh.device.isAndroid&&(t==null?void 0:t.detail)===0||hh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",qa=async(t,e,i)=>{await ho(),t&&!t.classList.contains("opened")&&!e&&Se(i)&&(await ho(),i.set(!1),t.focus())},$h=async(t,e,i)=>{await ho(),t&&!e&&Se(i)&&(i.set(!1),t.focus())},Wa=async(t,e,i)=>{var n;await ho(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},yh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Ac=(t,e)=>{bh(t),_h(t)&&(nr(t),e())},Mc=async(t,e)=>{zl(t,["ArrowRight"])&&(nr(t),e())},xh=async(t,e,i)=>{if(bh(t),V_(t)){nr(t),e();return}_h(t)&&(nr(t),i())},Ka=(t,e)=>{zl(t)&&(nr(t),e())},wh=(t,e,i)=>{if(zl(t))nr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),nr(t);return}o==="ArrowRight"&&!e&&(i(!0),nr(t))}},Sh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Ch=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Lc,isValidURL as H_}from"@vkontakte/videoplayer-shared/es2018";var $r={"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};import{noop as Th}from"@vkontakte/videoplayer-shared/es2018";var N_=(t,e)=>{Ka(t,()=>e())},B_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),D_={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function Vp(t,e){z(e,!0),W(t,D_);let i=f(e,"onClick",3,Th),o=f(e,"closeContextMenu",3,Th),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=B_();a.__click=n,a.__keydown=[N_,n];var s=h(a,!0);g(a),k(()=>{var d;De(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(a,"data-testid",e.id),me(s,e.label)}),b(t,a),q()}at(["click","keydown"]);var Xs=(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 F_=(t,e)=>{Ac(t,e)},U_=t=>{t.preventDefault()},z_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),q_={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 Rp(t,e){z(e,!0),W(t,q_);let[i,o]=Be(),n=()=>S(Z,"$isLive$",i),a=()=>S(Pe,"$isPiPEnabled$",i),s=()=>S(oe,"$chromecastState$",i),d=()=>S(he,"$pictureInPictureApiIsActive$",i),l=()=>S(Me,"$isLooped$",i),p=()=>S(fe,"$positionExact$",i),m=()=>S(F,"$debugPanelVisible",i),$=()=>S(j,"$additionalContextMenuItems$",i),u=f(e,"visible",3,!1),_=f(e,"position",19,()=>({top:0,left:0})),w=f(e,"playerContainerRef",3,void 0),y=f(e,"controlsContainerRef",3,void 0),C=f(e,"menuElementRef",15,void 0),T=J(0),E=J(0),P=Ce(),{pictureInPicture$:A}=ao(),I=Ut(),V=P.ui.contextMenu.visible$,F=P.ui.debugPanelVisible,j=P.ui.additionalContextMenuItems$,H=P.ui.t,X=P.actions.internal.togglePictureInPicture,oe=P.state.chromecastState$,Z=P.state.isLive$,fe=P.state.positionExact$,ae=P.state.isInteractive,Me=P.state.looped$,{isEnabled$:Pe,isActive$:he}=A,se=v(()=>{var Ge;return I.features.copyVideoLink&&((Ge=P.callbacks)==null?void 0:Ge.onCopyVideoLink)}),Ae=v(()=>r(se)&&!n()&&!ae),ne=v(()=>{var Ge;return!!((Ge=P.callbacks)!=null&&Ge.onCopyEmbedCodeClicked)}),B=v(()=>a()&&s()!==O_.CONNECTED&&!ae),ue=v(()=>I.features.videoRotate&&!ae),ge=v(()=>I.showSupport&&!d()),Ke=v(()=>I.features.saveTraceInfoToFile),te=()=>{var Ge;V.set(!1),(Ge=e.returnFocus)==null||Ge.call(e)},G=(Ge,et)=>{if(!C()||!w()||!y())return;let Xe=C().getBoundingClientRect(),Ue=w().getBoundingClientRect();D(T,Ge-Ue.left),D(E,et-Ue.top),r(T)+Xe.width>Ue.width&&D(T,Ue.width-Xe.width),r(E)+Xe.height>Ue.height&&D(E,Ue.height-Xe.height),D(T,pe(Math.max(r(T),0))),D(E,pe(Math.max(r(E),0)))};ze(()=>{(async()=>{if(C()&&w()&&y()){await ho();let{top:et,left:Xe,bottom:Ue,right:ut}=_(),zt=Xe!=null?Xe:0,We=et!=null?et:0,Jt=C().getBoundingClientRect();Lc(Xe)&&!Lc(ut)&&(zt=ut-Jt.width),Lc(et)&&!Lc(Ue)&&(We=Ue-Jt.height),zt=Math.max(zt,0),We=Math.max(We,0),G(zt,We)}})()});let K=()=>{P.actions.internal.videoRotate()},Le=()=>{H_(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Ne=()=>{let Ge=P.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let et=new Blob([...Ge],{type:"plain/text"}),Xe=window.URL.createObjectURL(et);Qs(Xe,"vk_player_debug_info","txt")}else za(P.actions.internal.getDebugTextData())},tt=()=>{let Ge=P.actions.internal.getTraceTextData(),et=new Blob([...Ge],{type:"application/json"}),Xe=window.URL.createObjectURL(et);Qs(Xe,"vk_player_trace_info","json")},we=()=>{F.set(!0)},be=async()=>{var Ge;try{X()}finally{(Ge=e.returnFocus)==null||Ge.call(e)}},Ve=()=>{P.actions.internal.setLooped(!l())},je=()=>{var Ge,et;if(r(ne)){let Xe=(et=(Ge=P.callbacks)==null?void 0:Ge.onCopyEmbedCodeClicked)==null?void 0:et.call(Ge);Xe&&za(Xe)}},it=(Ge=!1)=>{var et,Xe;if((et=P.callbacks)!=null&&et.onCopyVideoLink){let Ue=(Xe=P.callbacks)==null?void 0:Xe.onCopyVideoLink(Ge,p());Ue&&za(Ue)}},vt=v(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),Je=v(()=>r(se)?{id:"copy-link",weight:$r["copy-link"],label:H("menu_copy_video_link"),onClick:()=>it()}:void 0),wt=v(()=>r(Ae)?{id:"copy-link-timestamp",weight:$r["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>it(!0)}:void 0),_t=v(()=>r(ne)?{id:"copy-embed-code",weight:$r["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:je}:void 0),Kt=v(()=>r(B)?{id:"pip",weight:$r.pip,label:H("menu_pip"),onClick:be}:void 0),Qt=v(()=>({id:"video-loop",weight:$r["video-loop"],label:l()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Ve})),At=v(()=>r(ue)?{id:"rotate",weight:$r.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:K}:void 0),It=v(()=>r(ge)?{id:"report",weight:$r.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:Le}:void 0),O=v(()=>({id:"save-debug",weight:$r["save-debug"],label:r(vt),onClick:Ne})),_e=v(()=>r(Ke)?{id:"save-trace",weight:$r["save-trace"],label:H("menu_save_debug"),onClick:tt}:void 0),re=v(()=>({id:"debug-info",weight:$r["debug-info"],label:H("menu_debug_overlay"),ariaLabel:m()?H("aria_label_menu_debug_overlay_disable"):H("aria_label_menu_debug_overlay_enable"),onClick:we})),Oe=v(()=>[r(Je),r(wt),r(_t),r(Kt),r(Qt),r(At),r(It),r(O),r(_e),r(re),...$()].filter(Ge=>!!Ge).sort(Xs));var He=Fe(),Ye=ce(He);{var lt=Ge=>{var et=z_();et.__contextmenu=[U_],et.__keydown=[F_,te],ki(et,21,()=>r(Oe),Xe=>Xe.id,(Xe,Ue)=>{Vp(Xe,{get id(){return r(Ue).id},get label(){return r(Ue).label},get ariaLabel(){return r(Ue).ariaLabel},get onClick(){return r(Ue).onClick},closeContextMenu:te})}),g(et),ct(et,Xe=>C(Xe),()=>C()),k(()=>{var Xe,Ue;return ot(et,`top: ${(Xe=r(E))!=null?Xe:""}px; left: ${(Ue=r(T))!=null?Ue:""}px;`)}),b(Ge,et)};R(Ye,Ge=>{u()&&Ge(lt)})}b(t,He),q(),o()}at(["contextmenu","keydown"]);var Vc=class{constructor(e){this.value=e,this.next=null}};var Qa=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Vc(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 W_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),K_={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 Wl(t,e){z(e,!0),W(t,K_);let i=f(e,"values",19,()=>[]),o=J(void 0),n=J(null),a=16,s=120,d=60,l=s/d;Ft(()=>{r(o).width=s,r(o).height=a,D(n,pe(r(o).getContext("2d")))});function p(u,_,w,y,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect(_,w,y,C)}ze(()=>{let u="";if(r(n)){let _=i()[0];for(let y=1;y<i().length;y++)i()[y]>_&&(_=i()[y]);r(n).clearRect(0,0,s,a);let w=d-1;for(let y=i().length-1;y>=0;y--){let C=w*l,T=_>0?a*(i()[y]/_):0;p(r(n),C,0,l,T),u=T+" "+u,w--}}});var m=W_(),$=h(m);ct($,u=>D(o,u),()=>r(o)),g(m),b(t,m),q()}import{safeStorage as Ih}from"@vkontakte/videoplayer-shared/es2018";var Q_=(t,e)=>{t.stopPropagation(),Ih.remove(Ml),e.set(!1)},G_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),j_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Y_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Z_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),X_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),J_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),ob=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),ab=L('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),lb={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Kl(t,e){z(e,!0),W(t,lb);let[i,o]=Be(),n=()=>S(d,"$isMobile",i),a=Ce(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=J(pe(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),m=J(0),$=J(0),u=J(0),_=new Qa(60),w=new Qa(60),y=new Qa(60),C=J(pe([])),T=J(pe([])),E=J(pe([])),P=U("aria_label_debug_panel");Ft(()=>{Ih.set(Ml,"true"),a.actions.internal.startLogging(),p&&(D($,pe(p.getVideoPlaybackQuality().droppedVideoFrames)),D(m,pe(p.getVideoPlaybackQuality().totalVideoFrames)));let O=window.setInterval(()=>{D(l,pe(a.actions.internal.getDebugPanelData()))},500),_e;return p&&(_e=window.setInterval(()=>{if(p){D($,pe(p.getVideoPlaybackQuality().droppedVideoFrames));let re=p.getVideoPlaybackQuality().totalVideoFrames;D(u,re-r(m)),D(m,pe(re)),_.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),D(C,pe(_.getValuesFromBottom())),D(T,pe(w.getValuesFromBottom())),D(E,pe(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(O),_e&&clearInterval(_e)}});var A=ab();let I;De(A,"aria-label",P);var V=h(A);V.__click=[Q_,s];var F=M(V,2),j=h(F),H=M(h(j),2),X=h(H,!0);g(H),g(j);var oe=M(j,2);{var Z=O=>{var _e=G_(),re=M(h(_e),2),Oe=h(re,!0);g(re),g(_e),k(()=>me(Oe,r(l).id)),b(O,_e)};R(oe,O=>{r(l).id&&O(Z)})}var fe=M(oe,2);{var ae=O=>{var _e=j_(),re=M(h(_e),2),Oe=h(re,!0);g(re),g(_e),k(()=>me(Oe,r(l).vsid)),b(O,_e)};R(fe,O=>{r(l).vsid&&O(ae)})}var Me=M(fe,2);{var Pe=O=>{var _e=Y_(),re=M(h(_e),2),Oe=h(re,!0);g(re),g(_e),k(()=>me(Oe,r(l).provider)),b(O,_e)};R(Me,O=>{r(l).provider&&O(Pe)})}var he=M(Me,2);{var se=O=>{var _e=Z_(),re=M(h(_e),2),Oe=h(re);g(re),g(_e),k(()=>{var He,Ye;return me(Oe,`Video: ${r(l).videoCodec||""} ${(He=r(l).hdr?"(HDR)":"")!=null?He:""}
|
|
141
|
+
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Fl(t,e){W(t,E_);let i=f(e,"withEqualizer",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1);var a=k_();let s;var d=h(a);{var l=u=>{var _=C_();$(u,_)};R(d,u=>{i()&&u(l)})}var p=M(d,2);{var m=u=>{var _=T_(),w=h(_);Hl(w,{isActive:!0}),g(_),$(u,_)},b=u=>{var _=I_(),w=h(_,!0);g(_),E(()=>ve(w,e.time)),$(u,_)};R(p,u=>{o()?u(m):u(b,!1)})}g(a),E(u=>s=J(a,1,"wrapper svelte-1s15d2i",null,s,u),[()=>({live:o(),playing:n()})]),$(t,a)}var P_=L('<div role="timer" data-testid="thumb-timer"><!></div>'),A_={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
|
|
142
|
+
opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function Ul(t,e){U(e,!0),W(t,A_);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1),a=v(()=>Jo(e.duration-e.position));var s=P_();let d;var l=h(s);Fl(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),E(p=>d=J(s,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),$(t,s),z()}var Ka=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)}}};import{ChromecastState as U_}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as $h}from"@vkontakte/videoplayer-core/es2018";var Jn=t=>{t.stopPropagation(),t.preventDefault()},L_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},V_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},R_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},N_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},yh=t=>t.code==="Escape",B_=t=>t.code==="ArrowLeft",zl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},xh=t=>{if(R_(t)){Jn(t),V_(t.target);return}N_(t)&&(Jn(t),L_(t.target))},bs=t=>!$h.device.isAndroid&&(t==null?void 0:t.detail)===0||$h.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Qa=async(t,e,i)=>{await go(),t&&!t.classList.contains("opened")&&!e&&Ce(i)&&(await go(),i.set(!1),t.focus())},wh=async(t,e,i)=>{await go(),t&&!e&&Ce(i)&&(i.set(!1),t.focus())},Ga=async(t,e,i)=>{var n;await go(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},Sh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Mc=(t,e)=>{xh(t),yh(t)&&(Jn(t),e())},Lc=async(t,e)=>{zl(t,["ArrowRight"])&&(Jn(t),e())},Ch=async(t,e,i)=>{if(xh(t),B_(t)){Jn(t),e();return}yh(t)&&(Jn(t),i())},ja=(t,e)=>{zl(t)&&(Jn(t),e())},Th=(t,e,i)=>{if(zl(t))Jn(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Jn(t);return}o==="ArrowRight"&&!e&&(i(!0),Jn(t))}},Ih=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},kh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Vc,isValidURL as z_}from"@vkontakte/videoplayer-shared/es2018";var $r={"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};import{noop as Eh}from"@vkontakte/videoplayer-shared/es2018";var O_=(t,e)=>{ja(t,()=>e())},H_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),F_={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 Bp(t,e){U(e,!0),W(t,F_);let i=f(e,"onClick",3,Eh),o=f(e,"closeContextMenu",3,Eh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=H_();a.__click=n,a.__keydown=[O_,n];var s=h(a,!0);g(a),E(()=>{var d;Be(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Be(a,"data-testid",e.id),ve(s,e.label)}),$(t,a),z()}st(["click","keydown"]);var Xs=(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 q_=(t,e)=>{Mc(t,e)},W_=t=>{t.preventDefault()},K_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Q_={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 Dp(t,e){U(e,!0),W(t,Q_);let[i,o]=Re(),n=()=>S(Z,"$isLive$",i),a=()=>S(Ae,"$isPiPEnabled$",i),s=()=>S(ne,"$chromecastState$",i),d=()=>S(he,"$pictureInPictureApiIsActive$",i),l=()=>S(Le,"$isLooped$",i),p=()=>S(de,"$positionExact$",i),m=()=>S(q,"$debugPanelVisible",i),b=()=>S(Q,"$additionalContextMenuItems$",i),u=f(e,"visible",3,!1),_=f(e,"position",19,()=>({top:0,left:0})),w=f(e,"playerContainerRef",3,void 0),y=f(e,"controlsContainerRef",3,void 0),C=f(e,"menuElementRef",15,void 0),T=X(0),k=X(0),P=Te(),{pictureInPicture$:A}=lo(),I=qt(),V=P.ui.contextMenu.visible$,q=P.ui.debugPanelVisible,Q=P.ui.additionalContextMenuItems$,H=P.ui.t,Y=P.actions.internal.togglePictureInPicture,ne=P.state.chromecastState$,Z=P.state.isLive$,de=P.state.positionExact$,ce=P.state.isInteractive,Le=P.state.looped$,{isEnabled$:Ae,isActive$:he}=A,se=v(()=>{var Ye;return I.features.copyVideoLink&&((Ye=P.callbacks)==null?void 0:Ye.onCopyVideoLink)}),Me=v(()=>r(se)&&!n()&&!ce),oe=v(()=>{var Ye;return!!((Ye=P.callbacks)!=null&&Ye.onCopyEmbedCodeClicked)}),B=v(()=>a()&&s()!==U_.CONNECTED&&!ce),be=v(()=>I.features.videoRotate&&!ce),le=v(()=>I.showSupport&&!d()),We=v(()=>I.features.saveTraceInfoToFile),ee=()=>{var Ye;V.set(!1),(Ye=e.returnFocus)==null||Ye.call(e)},me=(Ye,et)=>{if(!C()||!w()||!y())return;let tt=C().getBoundingClientRect(),qe=w().getBoundingClientRect();D(T,Ye-qe.left),D(k,et-qe.top),r(T)+tt.width>qe.width&&D(T,qe.width-tt.width),r(k)+tt.height>qe.height&&D(k,qe.height-tt.height),D(T,fe(Math.max(r(T),0))),D(k,fe(Math.max(r(k),0)))};He(()=>{(async()=>{if(C()&&w()&&y()){await go();let{top:et,left:tt,bottom:qe,right:gt}=_(),Ht=tt!=null?tt:0,Xe=et!=null?et:0,Qt=C().getBoundingClientRect();Vc(tt)&&!Vc(gt)&&(Ht=gt-Qt.width),Vc(et)&&!Vc(qe)&&(Xe=qe-Qt.height),Ht=Math.max(Ht,0),Xe=Math.max(Xe,0),me(Ht,Xe)}})()});let j=()=>{P.actions.internal.videoRotate()},te=()=>{z_(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Oe=()=>{let Ye=P.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let et=new Blob([...Ye],{type:"plain/text"}),tt=window.URL.createObjectURL(et);Qs(tt,"vk_player_debug_info","txt")}else Ka(P.actions.internal.getDebugTextData())},Ge=()=>{let Ye=P.actions.internal.getTraceTextData(),et=new Blob([...Ye],{type:"application/json"}),tt=window.URL.createObjectURL(et);Qs(tt,"vk_player_trace_info","json")},$e=()=>{q.set(!0)},we=async()=>{var Ye;try{Y()}finally{(Ye=e.returnFocus)==null||Ye.call(e)}},Ve=()=>{P.actions.internal.setLooped(!l())},je=()=>{var Ye,et;if(r(oe)){let tt=(et=(Ye=P.callbacks)==null?void 0:Ye.onCopyEmbedCodeClicked)==null?void 0:et.call(Ye);tt&&Ka(tt)}},dt=(Ye=!1)=>{var et,tt;if((et=P.callbacks)!=null&&et.onCopyVideoLink){let qe=(tt=P.callbacks)==null?void 0:tt.onCopyVideoLink(Ye,p());qe&&Ka(qe)}},ct=v(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),rt=v(()=>r(se)?{id:"copy-link",weight:$r["copy-link"],label:H("menu_copy_video_link"),onClick:()=>dt()}:void 0),Ct=v(()=>r(Me)?{id:"copy-link-timestamp",weight:$r["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>dt(!0)}:void 0),_t=v(()=>r(oe)?{id:"copy-embed-code",weight:$r["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:je}:void 0),Gt=v(()=>r(B)?{id:"pip",weight:$r.pip,label:H("menu_pip"),onClick:we}:void 0),ni=v(()=>({id:"video-loop",weight:$r["video-loop"],label:l()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Ve})),It=v(()=>r(be)?{id:"rotate",weight:$r.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:j}:void 0),Vt=v(()=>r(le)?{id:"report",weight:$r.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:te}:void 0),O=v(()=>({id:"save-debug",weight:$r["save-debug"],label:r(ct),onClick:Oe})),_e=v(()=>r(We)?{id:"save-trace",weight:$r["save-trace"],label:H("menu_save_debug"),onClick:Ge}:void 0),re=v(()=>({id:"debug-info",weight:$r["debug-info"],label:H("menu_debug_overlay"),ariaLabel:m()?H("aria_label_menu_debug_overlay_disable"):H("aria_label_menu_debug_overlay_enable"),onClick:$e})),Ne=v(()=>[r(rt),r(Ct),r(_t),r(Gt),r(ni),r(It),r(Vt),r(O),r(_e),r(re),...b()].filter(Ye=>!!Ye).sort(Xs));var ze=De(),Qe=pe(ze);{var ut=Ye=>{var et=K_();et.__contextmenu=[W_],et.__keydown=[q_,ee],Ii(et,21,()=>r(Ne),tt=>tt.id,(tt,qe)=>{Bp(tt,{get id(){return r(qe).id},get label(){return r(qe).label},get ariaLabel(){return r(qe).ariaLabel},get onClick(){return r(qe).onClick},closeContextMenu:ee})}),g(et),pt(et,tt=>C(tt),()=>C()),E(()=>{var tt,qe;return nt(et,`top: ${(tt=r(k))!=null?tt:""}px; left: ${(qe=r(T))!=null?qe:""}px;`)}),$(Ye,et)};R(Qe,Ye=>{u()&&Ye(ut)})}$(t,ze),z(),o()}st(["contextmenu","keydown"]);var Rc=class{constructor(e){this.value=e,this.next=null}};var Ya=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Rc(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 G_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),j_={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 Wl(t,e){U(e,!0),W(t,j_);let i=f(e,"values",19,()=>[]),o=X(void 0),n=X(null),a=16,s=120,d=60,l=s/d;zt(()=>{r(o).width=s,r(o).height=a,D(n,fe(r(o).getContext("2d")))});function p(u,_,w,y,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect(_,w,y,C)}He(()=>{let u="";if(r(n)){let _=i()[0];for(let y=1;y<i().length;y++)i()[y]>_&&(_=i()[y]);r(n).clearRect(0,0,s,a);let w=d-1;for(let y=i().length-1;y>=0;y--){let C=w*l,T=_>0?a*(i()[y]/_):0;p(r(n),C,0,l,T),u=T+" "+u,w--}}});var m=G_(),b=h(m);pt(b,u=>D(o,u),()=>r(o)),g(m),$(t,m),z()}import{safeStorage as Ph}from"@vkontakte/videoplayer-shared/es2018";var Y_=(t,e)=>{t.stopPropagation(),Ph.remove(Ml),e.set(!1)},Z_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),X_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),J_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),ob=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),db=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),cb=L('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),ub={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Kl(t,e){U(e,!0),W(t,ub);let[i,o]=Re(),n=()=>S(d,"$isMobile",i),a=Te(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=X(fe(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),m=X(0),b=X(0),u=X(0),_=new Ya(60),w=new Ya(60),y=new Ya(60),C=X(fe([])),T=X(fe([])),k=X(fe([])),P=F("aria_label_debug_panel");zt(()=>{Ph.set(Ml,"true"),a.actions.internal.startLogging(),p&&(D(b,fe(p.getVideoPlaybackQuality().droppedVideoFrames)),D(m,fe(p.getVideoPlaybackQuality().totalVideoFrames)));let O=window.setInterval(()=>{D(l,fe(a.actions.internal.getDebugPanelData()))},500),_e;return p&&(_e=window.setInterval(()=>{if(p){D(b,fe(p.getVideoPlaybackQuality().droppedVideoFrames));let re=p.getVideoPlaybackQuality().totalVideoFrames;D(u,re-r(m)),D(m,fe(re)),_.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),D(C,fe(_.getValuesFromBottom())),D(T,fe(w.getValuesFromBottom())),D(k,fe(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(O),_e&&clearInterval(_e)}});var A=cb();let I;Be(A,"aria-label",P);var V=h(A);V.__click=[Y_,s];var q=M(V,2),Q=h(q),H=M(h(Q),2),Y=h(H,!0);g(H),g(Q);var ne=M(Q,2);{var Z=O=>{var _e=Z_(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(()=>ve(Ne,r(l).id)),$(O,_e)};R(ne,O=>{r(l).id&&O(Z)})}var de=M(ne,2);{var ce=O=>{var _e=X_(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(()=>ve(Ne,r(l).vsid)),$(O,_e)};R(de,O=>{r(l).vsid&&O(ce)})}var Le=M(de,2);{var Ae=O=>{var _e=J_(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(()=>ve(Ne,r(l).provider)),$(O,_e)};R(Le,O=>{r(l).provider&&O(Ae)})}var he=M(Le,2);{var se=O=>{var _e=eb(),re=M(h(_e),2),Ne=h(re);g(re),g(_e),E(()=>{var ze,Qe;return ve(Ne,`Video: ${r(l).videoCodec||""} ${(ze=r(l).hdr?"(HDR)":"")!=null?ze:""}
|
|
143
143
|
&
|
|
144
|
-
Audio: ${r(l).audioCodec||""} ${(Ye=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?Ye:""}`)}),b(O,_e)};R(he,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(se)})}var Ae=M(he,2);{var ne=O=>{var _e=X_(),re=M(h(_e),2),Oe=h(re,!0);g(re),g(_e),k(()=>me(Oe,r(l).viewport)),b(O,_e)};R(Ae,O=>{r(l).viewport&&O(ne)})}var B=M(Ae,2);{var ue=O=>{var _e=J_(),re=M(h(_e),2),Oe=h(re,!0);g(re),g(_e),k(()=>me(Oe,r(l).videoSize)),b(O,_e)};R(B,O=>{r(l).videoSize&&O(ue)})}var ge=M(B,2);{var Ke=O=>{var _e=eb(),re=M(h(_e),2),Oe=h(re,!0);g(re),g(_e),k(()=>me(Oe,r(l).cdn)),b(O,_e)};R(ge,O=>{r(l).cdn&&O(Ke)})}var te=M(ge,2);{var G=O=>{var _e=tb(),re=M(h(_e),2),Oe=h(re);g(re),g(_e),k(()=>{var He;return me(Oe,`${(He=r(l).volume)!=null?He:""} %`)}),b(O,_e)};R(te,O=>{r(l).volume&&O(G)})}var K=M(te,2);{var Le=O=>{var _e=ib(),re=M(h(_e),2),Oe=h(re);g(re),g(_e),k(He=>me(Oe,`${He!=null?He:""} s`),[()=>r(l).buffer.toFixed(2)]),b(O,_e)};R(K,O=>{r(l).buffer&&O(Le)})}var Ne=M(K,2);{var tt=O=>{var _e=ob(),re=M(h(_e),2),Oe=h(re);g(re),g(_e),k(He=>me(Oe,`${He!=null?He:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(O,_e)};R(Ne,O=>{r(l).liveLatency&&O(tt)})}var we=M(Ne,2);{var be=O=>{var _e=nb(),re=M(h(_e),2),Oe=h(re,!0);g(re),g(_e),k(He=>me(Oe,He),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:He})=>He).map(({value:He,title:Ye})=>`${Ye} ${((He!=null?He:0)/1e3).toFixed(2)} s`).join(" & ")]),b(O,_e)};R(we,O=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&O(be)})}var Ve=M(we,2),je=M(h(Ve),2),it=h(je);g(je),g(Ve);var vt=M(Ve,2);{var Je=O=>{var _e=rb(),re=M(h(_e),2);Wl(re,{get values(){return r(T)}});var Oe=M(re,2),He=h(Oe);g(Oe),g(_e),k(Ye=>me(He,`${Ye!=null?Ye:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(O,_e)};R(vt,O=>{r(l).speed&&O(Je)})}var wt=M(vt,2);{var _t=O=>{var _e=sb(),re=M(h(_e),2);Wl(re,{get values(){return r(E)}});var Oe=M(re,2),He=h(Oe);g(Oe),g(_e),k(Ye=>me(He,`${Ye!=null?Ye:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(O,_e)};R(wt,O=>{r(l).bitrate&&O(_t)})}var Kt=M(wt,2),Qt=M(h(Kt),2);Wl(Qt,{get values(){return r(C)}});var At=M(Qt,2),It=h(At,!0);g(At),g(Kt),g(F),g(A),k(O=>{var _e,re;I=ee(A,1,"container svelte-4deykz",null,I,O),me(X,r(l).version),me(it,`${(_e=r($))!=null?_e:""} / ${(re=r(m))!=null?re:""} frames`),me(It,r(u))},[()=>({"container-mobile":n()})]),b(t,A),q(),o()}at(["click"]);import{noop as db}from"@vkontakte/videoplayer-shared/es2018";var cb=(t,e)=>{t.stopPropagation(),e()()},ub=L('<div class="close svelte-1ome55p"></div>'),pb={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 Js(t,e){z(e,!0),W(t,pb);let i=f(e,"onClick",3,db);var o=ub();o.__click=[cb,i],b(t,o),q()}at(["click"]);import{noop as fb}from"@vkontakte/videoplayer-shared/es2018";var mb=L('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),vb={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 Ql(t,e){z(e,!0),W(t,vb);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,fb),n=5e3,a=J(void 0),s,d,l=J(0),p;ze(()=>{i()&&(d=Date.now(),D(l,pe(requestAnimationFrame($))))});let m=()=>{r(l)&&(cancelAnimationFrame(r(l)),D(l,0))},$=()=>{if(!i()){m();return}p=(Date.now()-d)/n,p<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),s==null||s.stroke(),D(l,pe(requestAnimationFrame($)))):o()()};Ft(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{m()}}),_n(()=>{m()});var u=mb(),_=h(u);ct(_,w=>D(a,w),()=>r(a)),$e(2),g(u),b(t,u),q()}var gb=(t,e,i)=>{e(!1),i()},hb=L('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),_b={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 Np(t,e){z(e,!0),W(t,_b);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,m=s.actions.internal.nextVideoAnnouncementShow,$=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),_()};Ft(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Fe(),T=ce(C);{var E=P=>{var A=hb(),I=M(ce(A),2),V=h(I),F=h(V),j=h(F,!0);g(F);var H=M(F,2);Js(H,{onClick:y}),g(V);var X=M(V,2);X.__click=[gb,p,$];var oe=h(X),Z=h(oe),fe=h(Z);let ae;var Me=M(fe,2);{var Pe=ne=>{let B=v(()=>a()&&n());Ql(ne,{get isRunning(){return r(B)},onTimerEnded:w})};R(Me,ne=>{n()&&ne(Pe)})}g(Z),g(oe);var he=M(oe,2),se=h(he),Ae=h(se,!0);g(se),g(he),g(X),g(I),k((ne,B)=>{me(j,ne),ot(Z,`background-image: url('${e.thumb}')`),ae=ee(fe,1,"thumb-overlay svelte-jfbaax",null,ae,B),me(Ae,e.title)},[()=>U("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,A)};R(T,P=>{e.isHide||P(E)})}b(t,C),q(),o()}at(["click"]);import{PlaybackState as ea}from"@vkontakte/videoplayer-core/es2018";import{checkNever as $b}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as bn}from"@vkontakte/videoplayer-statistics/es2018";var Bp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Dp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Rc=(t,e,i)=>{let o=Bp(e,i);e<1&&t.actions.internal.setVolume(o)},Nc=(t,e,i)=>{let o=Dp(e,i);e>0&&t.actions.internal.setVolume(o)};var $s=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var yb=(t,e)=>{e(t)},xb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),wb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Op(t,e){var At,It;z(e,!0),W(t,wb);let[i,o]=Be(),n=()=>S(j,"$playbackState$",i),a=()=>S(H,"$adPlaybackState",i),s=()=>S(fe,"$disabledControls$",i),d=()=>S(X,"$positionExact$",i),l=()=>S(oe,"$duration$",i),p=()=>S(G,"$isAudioAvailable$",i),m=()=>S(Z,"$volume$",i),$=()=>S(he,"$availablePlaybackRates$",i),u=()=>S(Pe,"$currentPlaybackRate$",i),_=()=>S(Le,"$isInteractiveTime$",i),w=()=>S(Ne,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(ue,"$isEnded$",i),C=()=>S(ae,"$muted$",i),T=()=>S(Me,"$currentSubtitle$",i),E=()=>S(ge,"$overlayContainer$",i),P=f(e,"nextButtonActive",3,!1),A=f(e,"prevButtonActive",3,!1),I=Ce(),V=Ut(),F=I.getLogger().createComponentLog("KeyboardControls component"),j=I.state.playbackState$,H=I.ads.playbackState,X=I.state.positionExact$,oe=I.state.duration$,Z=I.state.volume$,fe=I.ui.controls.disabledControls$,ae=I.state.muted$,Me=I.state.currentSubtitle$,Pe=I.state.currentPlaybackRate$,he=I.state.availablePlaybackRates$,se=I.ui.contextMenu.openedByHotKey$,Ae=I.ui.contextMenu.lastActiveElem$,ne=I.ui.contextMenu.visible$,B=I.ui.contextMenu.position$,ue=I.state.isEnded$,ge=I.ui.overlayContainer$,Ke=(At=I.callbacks)==null?void 0:At.onAudioDoesNotExistHint,te=(It=I.callbacks)==null?void 0:It.onAudioDisabledHint,G=I.state.isAudioAvailable$,K=I.state.isAudioDisabled,Le=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ne}=ao(),tt=0,we=!0,be=J(void 0),Ve=O=>(O!==we&&(we=O,tt=0),tt+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*tt)/1e3),je=(O,_e=!1)=>{var Jt,Ui;let re=O.target,Oe=(Jt=re==null?void 0:re.getAttribute("role"))==null?void 0:Jt.includes("menuitem"),He=re.classList.contains("btn"),Ye=O.code;if(He&&Ye==="Space")return!1;let lt=Pg.has(Ye);if(Oe&<)return!1;let Ge=!Eg.has(Ye);if(O.ctrlKey&&Ge||O.altKey&&Ge||O.metaKey)return!1;let et=Oe&&Ye==="Escape";Ag.has(Ye)||et||e.hideContextMenu();let Xe=n()===ea.PLAYING||n()===ea.PAUSED,Ue=e.isAds&&(a()==="paused"||a()==="playing"),ut=!Ue&&!s().has("TIMELINE");if(!(Xe||Ue))return!1;F({message:`key down, code: ${Ye}, isExternal = ${_e}`});let zt=!1,We=()=>{zt=!0,_e||O.preventDefault()};switch(Ye){case"KeyJ":case"ArrowLeft":{if(!ut)break;if(O.ctrlKey||O.altKey){let Ze=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(Ze),Ze&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ze.text}),We()}else{let Ze=O.shiftKey?Ve(!1):V.controls.seekStepKeyboard/1e3,Gt=Math.max(d()-Ze,0);d()>0&&(I.actions.internal.seekTime(Gt,bn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ze.toString()}),We())}break}case"KeyL":case"ArrowRight":{if(!ut)break;if(O.ctrlKey||O.altKey){let Ze=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(Ze),Ze&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ze.text}),We()}else{let Ze=O.shiftKey?Ve(!0):V.controls.seekStepKeyboard/1e3,Gt=Math.min(d()+Ze,l());Math.round(d())<Math.round(l())&&(I.actions.internal.seekTime(Gt,bn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ze.toString()}),We())}break}case"ArrowUp":{if($s({isAudioDisabled:K,audioDisabledHintCallback:te,isAudioAvailable:p(),audioIsNotExistHintCallback:Ke})){let Ze=m(),Gt=V.controls.volumeStepKeyboard,wi=Ze<=1;if(Rc(I,Ze,Gt),wi){let Si=Math.round(Bp(Ze,Gt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Si}})}}We();break}case"ArrowDown":{if($s({isAudioDisabled:K,audioDisabledHintCallback:te,isAudioAvailable:p(),audioIsNotExistHintCallback:Ke})){let Ze=m(),Gt=V.controls.volumeStepKeyboard,wi=Ze>=0;if(Nc(I,Ze,Gt),wi){let Si=Math.round(Dp(Ze,Gt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Si}})}}We();break}case"Comma":{if(O.shiftKey){I.actions.internal.decrementPlaybackRate();let Ze=$().find(Gt=>Gt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ze==null?void 0:Ze.displayValue}),We()}else{if(Ue||n()!==ea.PAUSED)break;let Ze=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(Ze,bn.DOUBLE_TAP),We())}break}case"Period":{if(O.shiftKey){I.actions.internal.incrementPlaybackRate();let Ze=$().find(Gt=>Gt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:Ze==null?void 0:Ze.displayValue}),We()}else{if(Ue||n()!==ea.PAUSED)break;let Ze=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(Ze,bn.DOUBLE_TAP),We())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if(_()&&w()&&Ne.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let Ze="PLAY";n()===ea.PAUSED?Ze="PAUSE":y()&&(Ze="REPLAY"),e.showHotKeyHelpers({type:Ze})}We();break;case"KeyM":{$s({isAudioDisabled:K,audioDisabledHintCallback:te,isAudioAvailable:p(),audioIsNotExistHintCallback:Ke})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),We();break}case"KeyF":e.toggleFullscreen(),We();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Ui=T())==null?void 0:Ui.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),We();break;case"KeyI":I.actions.internal.togglePictureInPicture(),We();break;case"Digit1":case"Numpad1":if(O.shiftKey){let Ze=Ch(E());B.set(Ze),Ae.set(re),se.set(!0),ne.set(!0),We();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,bn.DOUBLE_TAP),We();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,bn.DOUBLE_TAP),We();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,bn.DOUBLE_TAP),We();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,bn.DOUBLE_TAP),We();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,bn.DOUBLE_TAP),We();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,bn.DOUBLE_TAP),We();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,bn.DOUBLE_TAP),We();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,bn.DOUBLE_TAP),We();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,bn.DOUBLE_TAP),We();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,bn.DOUBLE_TAP),We();break;case"Slash":{O.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),We());break}case"KeyN":O.shiftKey&&P()&&(I.actions.internal.nextVideoClick(),We());break;case"KeyP":O.shiftKey&&A()&&(I.actions.internal.prevVideoClick(),We());break;case"ShiftLeft":case"ShiftRight":We();break;case"Tab":case"Escape":case"Enter":break;default:$b(Ye);break}return zt},it=O=>{let _e=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let re=n()===ea.PLAYING||n()===ea.PAUSED,Oe=e.isAds&&(a()==="paused"||a()==="playing");if(re||Oe)switch(_e){case"ShiftLeft":case"ShiftRight":tt=0;break}},vt=U("aria_label_video_player"),Je=()=>{var O;return(O=r(be))==null?void 0:O.focus()},wt=O=>O.type==="keydown"?je(O,!0):(O.type==="keyup"&&it(O),!1);var _t=xb();_t.__keyup=it,_t.__keydown=[yb,je],De(_t,"aria-label",vt);var Kt=h(_t);ve(Kt,()=>{var O;return(O=e.children)!=null?O:ie}),g(_t),ct(_t,O=>D(be,O),()=>r(be)),b(t,_t);var Qt=q({focus:Je,handleExternalKeyboardEvent:wt});return o(),Qt}at(["keyup","keydown"]);var Sb=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),Cb={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);}
|
|
144
|
+
Audio: ${r(l).audioCodec||""} ${(Qe=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?Qe:""}`)}),$(O,_e)};R(he,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(se)})}var Me=M(he,2);{var oe=O=>{var _e=tb(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(()=>ve(Ne,r(l).viewport)),$(O,_e)};R(Me,O=>{r(l).viewport&&O(oe)})}var B=M(Me,2);{var be=O=>{var _e=ib(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(()=>ve(Ne,r(l).videoSize)),$(O,_e)};R(B,O=>{r(l).videoSize&&O(be)})}var le=M(B,2);{var We=O=>{var _e=ob(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(()=>ve(Ne,r(l).cdn)),$(O,_e)};R(le,O=>{r(l).cdn&&O(We)})}var ee=M(le,2);{var me=O=>{var _e=nb(),re=M(h(_e),2),Ne=h(re);g(re),g(_e),E(()=>{var ze;return ve(Ne,`${(ze=r(l).volume)!=null?ze:""} %`)}),$(O,_e)};R(ee,O=>{r(l).volume&&O(me)})}var j=M(ee,2);{var te=O=>{var _e=rb(),re=M(h(_e),2),Ne=h(re);g(re),g(_e),E(ze=>ve(Ne,`${ze!=null?ze:""} s`),[()=>r(l).buffer.toFixed(2)]),$(O,_e)};R(j,O=>{r(l).buffer&&O(te)})}var Oe=M(j,2);{var Ge=O=>{var _e=sb(),re=M(h(_e),2),Ne=h(re);g(re),g(_e),E(ze=>ve(Ne,`${ze!=null?ze:""} s`),[()=>r(l).liveLatency.toFixed(2)]),$(O,_e)};R(Oe,O=>{r(l).liveLatency&&O(Ge)})}var $e=M(Oe,2);{var we=O=>{var _e=ab(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(ze=>ve(Ne,ze),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ze})=>ze).map(({value:ze,title:Qe})=>`${Qe} ${((ze!=null?ze:0)/1e3).toFixed(2)} s`).join(" & ")]),$(O,_e)};R($e,O=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&O(we)})}var Ve=M($e,2),je=M(h(Ve),2),dt=h(je);g(je),g(Ve);var ct=M(Ve,2);{var rt=O=>{var _e=lb(),re=M(h(_e),2);Wl(re,{get values(){return r(T)}});var Ne=M(re,2),ze=h(Ne);g(Ne),g(_e),E(Qe=>ve(ze,`${Qe!=null?Qe:""} Kbps`),[()=>r(l).speed.toFixed(2)]),$(O,_e)};R(ct,O=>{r(l).speed&&O(rt)})}var Ct=M(ct,2);{var _t=O=>{var _e=db(),re=M(h(_e),2);Wl(re,{get values(){return r(k)}});var Ne=M(re,2),ze=h(Ne);g(Ne),g(_e),E(Qe=>ve(ze,`${Qe!=null?Qe:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),$(O,_e)};R(Ct,O=>{r(l).bitrate&&O(_t)})}var Gt=M(Ct,2),ni=M(h(Gt),2);Wl(ni,{get values(){return r(C)}});var It=M(ni,2),Vt=h(It,!0);g(It),g(Gt),g(q),g(A),E(O=>{var _e,re;I=J(A,1,"container svelte-4deykz",null,I,O),ve(Y,r(l).version),ve(dt,`${(_e=r(b))!=null?_e:""} / ${(re=r(m))!=null?re:""} frames`),ve(Vt,r(u))},[()=>({"container-mobile":n()})]),$(t,A),z(),o()}st(["click"]);import{noop as pb}from"@vkontakte/videoplayer-shared/es2018";var fb=(t,e)=>{t.stopPropagation(),e()()},mb=L('<div class="close svelte-1ome55p"></div>'),vb={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 Js(t,e){U(e,!0),W(t,vb);let i=f(e,"onClick",3,pb);var o=mb();o.__click=[fb,i],$(t,o),z()}st(["click"]);import{noop as gb}from"@vkontakte/videoplayer-shared/es2018";var hb=L('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),_b={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 Ql(t,e){U(e,!0),W(t,_b);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,gb),n=5e3,a=X(void 0),s,d,l=X(0),p;He(()=>{i()&&(d=Date.now(),D(l,fe(requestAnimationFrame(b))))});let m=()=>{r(l)&&(cancelAnimationFrame(r(l)),D(l,0))},b=()=>{if(!i()){m();return}p=(Date.now()-d)/n,p<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),s==null||s.stroke(),D(l,fe(requestAnimationFrame(b)))):o()()};zt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{m()}}),mn(()=>{m()});var u=hb(),_=h(u);pt(_,w=>D(a,w),()=>r(a)),ye(2),g(u),$(t,u),z()}var bb=(t,e,i)=>{e(!1),i()},$b=L('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),yb={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 Op(t,e){U(e,!0),W(t,yb);let[i,o]=Re(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,m=s.actions.internal.nextVideoAnnouncementShow,b=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),_()};zt(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=De(),T=pe(C);{var k=P=>{var A=$b(),I=M(pe(A),2),V=h(I),q=h(V),Q=h(q,!0);g(q);var H=M(q,2);Js(H,{onClick:y}),g(V);var Y=M(V,2);Y.__click=[bb,p,b];var ne=h(Y),Z=h(ne),de=h(Z);let ce;var Le=M(de,2);{var Ae=oe=>{let B=v(()=>a()&&n());Ql(oe,{get isRunning(){return r(B)},onTimerEnded:w})};R(Le,oe=>{n()&&oe(Ae)})}g(Z),g(ne);var he=M(ne,2),se=h(he),Me=h(se,!0);g(se),g(he),g(Y),g(I),E((oe,B)=>{ve(Q,oe),nt(Z,`background-image: url('${e.thumb}')`),ce=J(de,1,"thumb-overlay svelte-jfbaax",null,ce,B),ve(Me,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),$(P,A)};R(T,P=>{e.isHide||P(k)})}$(t,C),z(),o()}st(["click"]);import{PlaybackState as ea}from"@vkontakte/videoplayer-core/es2018";import{checkNever as wb}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as vn}from"@vkontakte/videoplayer-statistics/es2018";var Hp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Fp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Nc=(t,e,i)=>{let o=Hp(e,i);e<1&&t.actions.internal.setVolume(o)},Bc=(t,e,i)=>{let o=Fp(e,i);e>0&&t.actions.internal.setVolume(o)};var $s=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var Sb=(t,e)=>{e(t)},Cb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Tb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Up(t,e){var It,Vt;U(e,!0),W(t,Tb);let[i,o]=Re(),n=()=>S(Q,"$playbackState$",i),a=()=>S(H,"$adPlaybackState",i),s=()=>S(de,"$disabledControls$",i),d=()=>S(Y,"$positionExact$",i),l=()=>S(ne,"$duration$",i),p=()=>S(me,"$isAudioAvailable$",i),m=()=>S(Z,"$volume$",i),b=()=>S(he,"$availablePlaybackRates$",i),u=()=>S(Ae,"$currentPlaybackRate$",i),_=()=>S(te,"$isInteractiveTime$",i),w=()=>S(Oe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(be,"$isEnded$",i),C=()=>S(ce,"$muted$",i),T=()=>S(Le,"$currentSubtitle$",i),k=()=>S(le,"$overlayContainer$",i),P=f(e,"nextButtonActive",3,!1),A=f(e,"prevButtonActive",3,!1),I=Te(),V=qt(),q=I.getLogger().createComponentLog("KeyboardControls component"),Q=I.state.playbackState$,H=I.ads.playbackState,Y=I.state.positionExact$,ne=I.state.duration$,Z=I.state.volume$,de=I.ui.controls.disabledControls$,ce=I.state.muted$,Le=I.state.currentSubtitle$,Ae=I.state.currentPlaybackRate$,he=I.state.availablePlaybackRates$,se=I.ui.contextMenu.openedByHotKey$,Me=I.ui.contextMenu.lastActiveElem$,oe=I.ui.contextMenu.visible$,B=I.ui.contextMenu.position$,be=I.state.isEnded$,le=I.ui.overlayContainer$,We=(It=I.callbacks)==null?void 0:It.onAudioDoesNotExistHint,ee=(Vt=I.callbacks)==null?void 0:Vt.onAudioDisabledHint,me=I.state.isAudioAvailable$,j=I.state.isAudioDisabled,te=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Oe}=lo(),Ge=0,$e=!0,we=X(void 0),Ve=O=>(O!==$e&&($e=O,Ge=0),Ge+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*Ge)/1e3),je=(O,_e=!1)=>{var Qt,ti;let re=O.target,Ne=(Qt=re==null?void 0:re.getAttribute("role"))==null?void 0:Qt.includes("menuitem"),ze=re.classList.contains("btn"),Qe=O.code;if(ze&&Qe==="Space")return!1;let ut=Lg.has(Qe);if(Ne&&ut)return!1;let Ye=!Mg.has(Qe);if(O.ctrlKey&&Ye||O.altKey&&Ye||O.metaKey)return!1;let et=Ne&&Qe==="Escape";Vg.has(Qe)||et||e.hideContextMenu();let tt=n()===ea.PLAYING||n()===ea.PAUSED,qe=e.isAds&&(a()==="paused"||a()==="playing"),gt=!qe&&!s().has("TIMELINE");if(!(tt||qe))return!1;q({message:`key down, code: ${Qe}, isExternal = ${_e}`});let Ht=!1,Xe=()=>{Ht=!0,_e||O.preventDefault()};switch(Qe){case"KeyJ":case"ArrowLeft":{if(!gt)break;if(O.ctrlKey||O.altKey){let Je=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(Je),Je&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Je.text}),Xe()}else{let Je=O.shiftKey?Ve(!1):V.controls.seekStepKeyboard/1e3,Zt=Math.max(d()-Je,0);d()>0&&(I.actions.internal.seekTime(Zt,vn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Je.toString()}),Xe())}break}case"KeyL":case"ArrowRight":{if(!gt)break;if(O.ctrlKey||O.altKey){let Je=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(Je),Je&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Je.text}),Xe()}else{let Je=O.shiftKey?Ve(!0):V.controls.seekStepKeyboard/1e3,Zt=Math.min(d()+Je,l());Math.round(d())<Math.round(l())&&(I.actions.internal.seekTime(Zt,vn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Je.toString()}),Xe())}break}case"ArrowUp":{if($s({isAudioDisabled:j,audioDisabledHintCallback:ee,isAudioAvailable:p(),audioIsNotExistHintCallback:We})){let Je=m(),Zt=V.controls.volumeStepKeyboard,Ni=Je<=1;if(Nc(I,Je,Zt),Ni){let zi=Math.round(Hp(Je,Zt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zi}})}}Xe();break}case"ArrowDown":{if($s({isAudioDisabled:j,audioDisabledHintCallback:ee,isAudioAvailable:p(),audioIsNotExistHintCallback:We})){let Je=m(),Zt=V.controls.volumeStepKeyboard,Ni=Je>=0;if(Bc(I,Je,Zt),Ni){let zi=Math.round(Fp(Je,Zt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zi}})}}Xe();break}case"Comma":{if(O.shiftKey){I.actions.internal.decrementPlaybackRate();let Je=b().find(Zt=>Zt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:Je==null?void 0:Je.displayValue}),Xe()}else{if(qe||n()!==ea.PAUSED)break;let Je=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(Je,vn.DOUBLE_TAP),Xe())}break}case"Period":{if(O.shiftKey){I.actions.internal.incrementPlaybackRate();let Je=b().find(Zt=>Zt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:Je==null?void 0:Je.displayValue}),Xe()}else{if(qe||n()!==ea.PAUSED)break;let Je=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(Je,vn.DOUBLE_TAP),Xe())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if(_()&&w()&&Oe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let Je="PLAY";n()===ea.PAUSED?Je="PAUSE":y()&&(Je="REPLAY"),e.showHotKeyHelpers({type:Je})}Xe();break;case"KeyM":{$s({isAudioDisabled:j,audioDisabledHintCallback:ee,isAudioAvailable:p(),audioIsNotExistHintCallback:We})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),Xe();break}case"KeyF":e.toggleFullscreen(),Xe();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ti=T())==null?void 0:ti.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Xe();break;case"KeyI":I.actions.internal.togglePictureInPicture(),Xe();break;case"Digit1":case"Numpad1":if(O.shiftKey){let Je=kh(k());B.set(Je),Me.set(re),se.set(!0),oe.set(!0),Xe();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,vn.DOUBLE_TAP),Xe();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,vn.DOUBLE_TAP),Xe();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,vn.DOUBLE_TAP),Xe();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,vn.DOUBLE_TAP),Xe();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,vn.DOUBLE_TAP),Xe();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,vn.DOUBLE_TAP),Xe();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,vn.DOUBLE_TAP),Xe();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,vn.DOUBLE_TAP),Xe();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,vn.DOUBLE_TAP),Xe();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,vn.DOUBLE_TAP),Xe();break;case"Slash":{O.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),Xe());break}case"KeyN":O.shiftKey&&P()&&(I.actions.internal.nextVideoClick(),Xe());break;case"KeyP":O.shiftKey&&A()&&(I.actions.internal.prevVideoClick(),Xe());break;case"ShiftLeft":case"ShiftRight":Xe();break;case"Tab":case"Escape":case"Enter":break;default:wb(Qe);break}return Ht},dt=O=>{let _e=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let re=n()===ea.PLAYING||n()===ea.PAUSED,Ne=e.isAds&&(a()==="paused"||a()==="playing");if(re||Ne)switch(_e){case"ShiftLeft":case"ShiftRight":Ge=0;break}},ct=F("aria_label_video_player"),rt=()=>{var O;return(O=r(we))==null?void 0:O.focus()},Ct=O=>O.type==="keydown"?je(O,!0):(O.type==="keyup"&&dt(O),!1);var _t=Cb();_t.__keyup=dt,_t.__keydown=[Sb,je],Be(_t,"aria-label",ct);var Gt=h(_t);ge(Gt,()=>{var O;return(O=e.children)!=null?O:ie}),g(_t),pt(_t,O=>D(we,O),()=>r(we)),$(t,_t);var ni=z({focus:rt,handleExternalKeyboardEvent:Ct});return o(),ni}st(["keyup","keydown"]);var Ib=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),kb={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
|
|
145
145
|
|
|
146
146
|
@keyframes svelte-1dbnjb1-dot_animation {
|
|
147
147
|
0% {
|
|
@@ -154,7 +154,7 @@ Try switching the\xA0quality to\xA0Auto.`},rh=X0;var es=new Map;es.set(ah.EN,rh)
|
|
|
154
154
|
opacity: 0.2;
|
|
155
155
|
}
|
|
156
156
|
}.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
|
|
157
|
-
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ta(t,e){W(t,
|
|
157
|
+
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ta(t,e){W(t,kb);let i=f(e,"style",3,"");var o=Ib();E(()=>nt(o,i())),$(t,o)}var Eb=xe('<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 zp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Eb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i})),$(t,o)}import{noop as Za}from"@vkontakte/videoplayer-shared/es2018";var Pb=t=>{t.stopPropagation()},Ab=L("<button><!></button>"),Mb={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
|
|
158
158
|
|
|
159
159
|
/* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
|
|
160
160
|
|
|
@@ -162,22 +162,22 @@ Try switching the\xA0quality to\xA0Auto.`},rh=X0;var es=new Map;es.set(ah.EN,rh)
|
|
|
162
162
|
/* mobile */
|
|
163
163
|
/* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
|
|
164
164
|
.btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
|
|
165
|
-
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Lt(t,e){
|
|
165
|
+
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Lt(t,e){U(e,!0),W(t,Mb);let i=f(e,"className",3,""),o=f(e,"style",3,""),n=f(e,"disabled",3,void 0),a=f(e,"testId",3,void 0),s=f(e,"ariaHidden",3,void 0),d=f(e,"ariaLabel",3,void 0),l=f(e,"ref",15,void 0),p=f(e,"ariaKeyShortCut",3,void 0),m=f(e,"ariaExpanded",3,void 0),b=f(e,"tabIndex",3,0),u=f(e,"click",3,Za),_=f(e,"focus",3,Za),w=f(e,"blur",3,Za),y=v(()=>u()===Za?null:A=>{A.stopPropagation(),u()(A)}),C=v(()=>_()===Za?null:A=>{A.preventDefault(),_()()}),T=v(()=>w()===Za?null:A=>{A.preventDefault(),w()()});var k=Ab();k.__pointerdown=[Pb],k.__click=function(...A){var I;(I=r(y))==null||I.apply(this,A)};var P=h(k);ge(P,()=>{var A;return(A=e.children)!=null?A:ie}),g(k),pt(k,A=>l(A),()=>l()),E(()=>{var A,I,V,q,Q,H,Y;J(k,1,`btn ${(A=i())!=null?A:""}`,"svelte-wr0kwr"),nt(k,o()||null),k.disabled=(I=n())!=null?I:null,Be(k,"aria-hidden",(V=s())!=null?V:null),Be(k,"aria-label",(q=d())!=null?q:null),Be(k,"aria-keyshortcuts",(Q=p())!=null?Q:null),Be(k,"aria-expanded",(H=m())!=null?H:null),Be(k,"data-testid",(Y=a())!=null?Y:null),Be(k,"tabindex",b())}),St("focus",k,function(...A){var I;(I=r(C))==null||I.apply(this,A)}),St("blur",k,function(...A){var I;(I=r(T))==null||I.apply(this,A)}),$(t,k),z()}st(["pointerdown","click"]);var Lb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Vb=L('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),Rb={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function qp(t,e){U(e,!0),W(t,Rb);let i=f(e,"showHeader",3,!0),o=f(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=Vb(),s=h(a),d=h(s);{var l=u=>{var _=Lb(),w=h(_),y=h(w,!0);g(w);var C=M(w,2);{var T=k=>{Lt(k,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,A)=>{zp(P,{})},$$slots:{default:!0}})};R(C,k=>{o()&&k(T)})}g(_),E(()=>ve(y,e.title)),$(u,_)};R(d,u=>{i()&&u(l)})}var p=M(d,2),m=h(p),b=h(m);ge(b,()=>{var u;return(u=e.children)!=null?u:ie}),g(m),g(p),g(s),g(a),$(t,a),z()}var Nb=new Set(["BR"]),Ah=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],s=a.tagName;Nb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var Bb=L('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),Db=L('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),Ob=L('<div class="hot-key-map svelte-quklnq"></div>'),Hb={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 Up(t,e){z(e,!1),W(t,Bb);let[i,o]=Be(),n=()=>S(s,"$data",i),a=Ce(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};br(),Fp(t,{get title(){return n().title},onClose:l,children:(p,m)=>{var $=Nb();ki($,5,()=>n().groups,({title:u,items:_})=>u,(u,_)=>{let w=()=>r(_).title,y=()=>r(_).items;var C=Rb(),T=h(C),E=h(T,!0);g(T);var P=M(T,2);ki(P,5,y,({description:A,value:I})=>I,(A,I)=>{let V=()=>r(I).description,F=()=>r(I).value;var j=Vb(),H=h(j),X=h(H);kl(X,()=>kh(V()),!1,!1),g(H);var oe=M(H,2),Z=h(oe,!0);g(oe),g(j),k(()=>me(Z,F())),b(A,j)}),g(P),g(C),k(()=>me(E,w())),b(u,C)}),g($),b(p,$)},$$slots:{default:!0}}),q(),o()}import{noop as Zh}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Qh,PlaybackState as kf}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var Db=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Ob={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 zp(t,e){W(t,Ob);var i=Db(),o=h(i);ve(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),b(t,i)}import{VideoQuality as Yl}from"@vkontakte/videoplayer-shared/es2018";var Hb=ye('<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 qp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Hb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Fb=ye('<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 Wp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Fb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Ub=ye('<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 Kp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ub();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var zb=ye('<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 Gl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=zb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),b(t,o)}var qb=ye('<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 jl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=qb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),b(t,o)}var Bc=t=>{switch(t){case Yl.Q_720P:return Kp;case Yl.Q_1080P:return Gl;case Yl.Q_1440P:return jl;case Yl.Q_2160P:return qp;case Yl.Q_4320P:return Wp}};var Wb=ye('<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 Qp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),b(t,o)}var Kb=ye('<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 Gp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Kb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),b(t,o)}var Qb=L('<div aria-hidden="true"><!> <!></div>'),Gb={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 Zl(t,e){z(e,!0),W(t,Gb);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=v(()=>Bc(o())),a=v(()=>!!r(n)&&[Gl,jl].includes(r(n)));var s=Fe(),d=ce(s);{var l=m=>{Qp(m,{})},p=m=>{var $=Qb();let u;var _=h($);{var w=T=>{zp(T,{children:(E,P)=>{var A=Fe(),I=ce(A);Ei(I,()=>r(n),(V,F)=>{F(V,{})}),b(E,A)},$$slots:{default:!0}})};R(_,T=>{r(n)&&T(w)})}var y=M(_,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");Gp(y,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g($),k(T=>u=ee($,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(a)})]),b(m,$)};R(d,m=>{i()?m(l):m(p,!1)})}b(t,s),q()}var jb=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Yb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ja(t,e){z(e,!0),W(t,Yb);let[i,o]=Be(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(m,"$settingsMenuVisible",i),s=()=>S(_,"$isMobile",i),d=()=>S(p,"$currentQuality",i),l=Ce(),p=l.state.currentQuality$,m=l.ui.settingsMenu.visible$,$=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,_=l.ui.isMobile,w=l.ui.t,y=J(void 0);ze(()=>{n()&&bt(()=>{e.ref$.set(r(y))})});let C=v(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));async function T(P){let A=bs(P);a()?u():$(A,ho)}let E=v(()=>a()?"opened":"");Lt(t,{get className(){return r(E)},testId:"btn-settings",click:T,get ariaLabel(){return r(C)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){D(y,pe(P))},children:(P,A)=>{var I=jb(),V=h(I);Zl(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(I),b(P,I)},$$slots:{default:!0}}),q(),o()}var Zb=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"></path></svg>');function jp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Zb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),b(t,o)}var Xb=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"></path></svg>');function Xl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Xb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),b(t,o)}function Yp(t,e){z(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),n=Ce().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Lt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Br.KeyC},children:(s,d)=>{var l=Fe(),p=ce(l);{var m=u=>{jp(u,{})},$=u=>{Xl(u,{})};R(p,u=>{i()?u(m):u($,!1)})}b(s,l)},$$slots:{default:!0}}),q()}var Jb=L('<span class="duration svelte-sz9er7"> </span>'),e$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),t$={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 Jl(t,e){z(e,!0),W(t,t$);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),n=f(e,"ref",15),a=v(()=>on(e.duration)),s=v(()=>on(e.position));var d=e$();let l;var p=h(d),m=h(p,!0);g(p);var $=M(p,2);{var u=_=>{var w=Jb(),y=h(w,!0);g(w),k(()=>me(y,r(a))),b(_,w)};R($,_=>{o()&&_(u)})}g(d),ct(d,_=>n(_),()=>n()),k(_=>{l=ee(d,1,"time svelte-sz9er7",null,l,_),me(m,r(s))},[()=>({mobile:i()})]),b(t,d),q()}import{noop as Dc}from"@vkontakte/videoplayer-shared/es2018";var i$=ye('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),o$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
|
|
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 Wp(t,e){U(e,!1),W(t,Hb);let[i,o]=Re(),n=()=>S(s,"$data",i),a=Te(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};br(),qp(t,{get title(){return n().title},onClose:l,children:(p,m)=>{var b=Ob();Ii(b,5,()=>n().groups,({title:u,items:_})=>u,(u,_)=>{let w=()=>r(_).title,y=()=>r(_).items;var C=Db(),T=h(C),k=h(T,!0);g(T);var P=M(T,2);Ii(P,5,y,({description:A,value:I})=>I,(A,I)=>{let V=()=>r(I).description,q=()=>r(I).value;var Q=Bb(),H=h(Q),Y=h(H);kl(Y,()=>Ah(V()),!1,!1),g(H);var ne=M(H,2),Z=h(ne,!0);g(ne),g(Q),E(()=>ve(Z,q())),$(A,Q)}),g(P),g(C),E(()=>ve(k,w())),$(u,C)}),g(b),$(p,b)},$$slots:{default:!0}}),z(),o()}import{noop as e1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Yh,PlaybackState as Af}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var Fb=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Ub={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 Kp(t,e){W(t,Ub);var i=Fb(),o=h(i);ge(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),$(t,i)}import{VideoQuality as Yl}from"@vkontakte/videoplayer-shared/es2018";var zb=xe('<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 Qp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=zb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var qb=xe('<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 Gp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=qb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var Wb=xe('<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 jp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var Kb=xe('<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 Gl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Kb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),$(t,o)}var Qb=xe('<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 jl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Qb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),$(t,o)}var Dc=t=>{switch(t){case Yl.Q_720P:return jp;case Yl.Q_1080P:return Gl;case Yl.Q_1440P:return jl;case Yl.Q_2160P:return Qp;case Yl.Q_4320P:return Gp}};var Gb=xe('<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 Yp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Gb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),$(t,o)}var jb=xe('<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 Zp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=jb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),$(t,o)}var Yb=L('<div aria-hidden="true"><!> <!></div>'),Zb={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 Zl(t,e){U(e,!0),W(t,Zb);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=v(()=>Dc(o())),a=v(()=>!!r(n)&&[Gl,jl].includes(r(n)));var s=De(),d=pe(s);{var l=m=>{Yp(m,{})},p=m=>{var b=Yb();let u;var _=h(b);{var w=T=>{Kp(T,{children:(k,P)=>{var A=De(),I=pe(A);ki(I,()=>r(n),(V,q)=>{q(V,{})}),$(k,A)},$$slots:{default:!0}})};R(_,T=>{r(n)&&T(w)})}var y=M(_,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");Zp(y,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g(b),E(T=>u=J(b,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(a)})]),$(m,b)};R(d,m=>{i()?m(l):m(p,!1)})}$(t,s),z()}var Xb=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Jb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Xa(t,e){U(e,!0),W(t,Jb);let[i,o]=Re(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(m,"$settingsMenuVisible",i),s=()=>S(_,"$isMobile",i),d=()=>S(p,"$currentQuality",i),l=Te(),p=l.state.currentQuality$,m=l.ui.settingsMenu.visible$,b=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,_=l.ui.isMobile,w=l.ui.t,y=X(void 0);He(()=>{n()&&yt(()=>{e.ref$.set(r(y))})});let C=v(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));async function T(P){let A=bs(P);a()?u():b(A,go)}let k=v(()=>a()?"opened":"");Lt(t,{get className(){return r(k)},testId:"btn-settings",click:T,get ariaLabel(){return r(C)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){D(y,fe(P))},children:(P,A)=>{var I=Xb(),V=h(I);Zl(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(I),$(P,I)},$$slots:{default:!0}}),z(),o()}var e$=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"></path></svg>');function Xp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=e$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),$(t,o)}var t$=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"></path></svg>');function Xl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=t$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),$(t,o)}function Jp(t,e){U(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),n=Te().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Lt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Dr.KeyC},children:(s,d)=>{var l=De(),p=pe(l);{var m=u=>{Xp(u,{})},b=u=>{Xl(u,{})};R(p,u=>{i()?u(m):u(b,!1)})}$(s,l)},$$slots:{default:!0}}),z()}var i$=L('<span class="duration svelte-sz9er7"> </span>'),o$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),n$={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 Jl(t,e){U(e,!0),W(t,n$);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),n=f(e,"ref",15),a=v(()=>Jo(e.duration)),s=v(()=>Jo(e.position));var d=o$();let l;var p=h(d),m=h(p,!0);g(p);var b=M(p,2);{var u=_=>{var w=i$(),y=h(w,!0);g(w),E(()=>ve(y,r(a))),$(_,w)};R(b,_=>{o()&&_(u)})}g(d),pt(d,_=>n(_),()=>n()),E(_=>{l=J(d,1,"time svelte-sz9er7",null,l,_),ve(m,r(s))},[()=>({mobile:i()})]),$(t,d),z()}import{noop as Oc}from"@vkontakte/videoplayer-shared/es2018";var r$=xe('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),s$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
|
|
168
168
|
.icon[data-value='off'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:visible;}.icon[data-value='mid'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua),
|
|
169
|
-
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function ys(t,e){W(t,
|
|
169
|
+
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function ys(t,e){W(t,s$);let i=f(e,"volume",3,1),o=f(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=v(()=>n(i(),o()));var s=r$();E(()=>{var d;Be(s,"data-value",r(a)),Be(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),$(t,s)}import{isNonNullable as Lh,noop as An}from"@vkontakte/videoplayer-shared/es2018";import{noop as tf}from"@vkontakte/videoplayer-shared/es2018";import{noop as l$}from"@vkontakte/videoplayer-shared/es2018";var a$=L('<div class="overlay"><!></div>');function ef(t,e){U(e,!0);let[i,o]=Re(),n=()=>S(s,"$overlayContainer$",i),s=Te().ui.overlayContainer$,d=X(void 0),l=u=>{!u||!r(d)||!u.contains(r(d))||u.removeChild(r(d))},p=u=>{!u||!r(d)||u.contains(r(d))||u.appendChild(r(d))};He(()=>{p(n())}),zt(()=>(p(n()),()=>l(n())));var m=a$(),b=h(m);ge(b,()=>{var u;return(u=e.children)!=null?u:ie}),g(m),pt(m,u=>D(d,u),()=>r(d)),$(t,m),z(),o()}var d$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),c$=L("<div><!></div> <!>",1),u$={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 ia(t,e){U(e,!0),W(t,u$);let[i,o]=Re(),n=()=>S(Y,"$overlayContainer$",i),a=()=>S(H,"$containerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"content",3,""),l=f(e,"active",15,!1),p=f(e,"translateX",3,0),m=f(e,"translateY",3,0),b=f(e,"isFullWidthWrapper",3,!1),u=f(e,"maxTooltipWidth",3,void 0),_=f(e,"placement",3,"top"),w=f(e,"onVisibilityChange",3,l$),y=5,C=X(void 0),T=X(void 0),k,P=X(0),A=X(0),I=X(0),V=X(0),q=qt(),Q=Te(),H=Q.ui.playerSize,Y=Q.ui.overlayContainer$;He(()=>{yt(()=>{w()(l())})});let ne=Q.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!n()||!r(T)||!r(C))return;D(A,y);let $e=n().getBoundingClientRect(),we=r(C).getBoundingClientRect(),Ve=we.width,je=r(T).clientWidth,dt=a().width,ct=(Ve-je)/2,rt=we.left+p()-$e.left,Ct=rt+ct,_t=we.top+m()-$e.top,Gt=je/2-y,ni=Ct<8,It=Ct+je>dt-8;ni&&(Ct=8,Gt=rt+we.width/2-2.5*y),It&&(Ct=dt-8-je,Gt=we.left-$e.left+we.width/2-Ct-y),D(I,fe(Ct)),D(V,_t),D(P,fe(Gt))},de=()=>{!n()||!r(T)||!r(C)||D(A,-y)},ce=()=>{if(!n()||!r(T)||!r(C))return;D(P,y);let $e=n().getBoundingClientRect(),we=r(C).getBoundingClientRect(),Ve=we.height,je=r(T).clientHeight,dt=(Ve-je)/2+je,ct=we.left+p()-$e.left-r(T).clientWidth,rt=2,Ct=ct-y;Ct<8&&(Ct=8);let Gt=we.top+m()-$e.top+dt,ni=rt-dt/2,It=rt-y;D(I,fe(Ct)),D(V,Gt),D(A,ni),D(P,It)},Le=()=>{!n()||!r(T)||!r(C)||D(P,-y)},Ae=()=>{switch(_()){case"top":Z();break;case"bottom":de();break;case"left":ce();break;default:Le()}},he=()=>{try{if(!n()||!r(C))return;Ae(),l(!0)}catch($e){ne({message:String($e)})}},se=()=>{l(!1)},Me=()=>{r(T)&&(k||(k=window.setTimeout(he,q.controls.hideTimeoutTooltips)),l()&&he())},oe=()=>{se(),window.clearTimeout(k),k=void 0},B=($e,we,Ve)=>{let je="";switch(_()){case"top":je=`transform: translate(${$e}px, ${we}px);`;break;case"bottom":je=`transform: translate(${$e}px, ${we}px); top: auto; bottom: 100%;`;break;case"left":je=`transform: translate(${$e}px, ${we}px); left: 0; right: auto;`;break;default:je=`transform: translate(${$e}px, ${we}px);`}return je+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,je+=` opacity: ${Ve?1:0}; visibility: ${Ve?"visible":"hidden"}`,je},be=($e,we)=>{let Ve="";switch(_()){case"top":Ve=`transform: translate(${$e}px, ${we}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ve=`transform: translate(${$e}px, ${we}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ve=`transform: translate(${$e}px, ${we}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ve=`transform: translate(${$e}px, ${we}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ve},le=v(()=>B(r(I),r(V),l())),We=v(()=>be(r(P),r(A)));zt(Ae),mn(()=>window.clearTimeout(k));var ee=c$(),me=pe(ee);let j;me.__mousemove=Me,me.__mousedown=oe,me.__mouseup=Me;var te=h(me);ge(te,()=>{var $e;return($e=e.children)!=null?$e:ie}),g(me),pt(me,$e=>D(C,$e),()=>r(C));var Oe=M(me,2);{var Ge=$e=>{ef($e,{children:(we,Ve)=>{var je=d$(),dt=h(je),ct=h(dt,!0);g(dt);var rt=M(dt,2);g(je),pt(je,Ct=>D(T,Ct),()=>r(T)),E(()=>{nt(je,r(le)),ve(ct,d()),nt(rt,r(We))}),$(we,je)},$$slots:{default:!0}})};R(Oe,$e=>{d()&&!s()&&$e(Ge)})}E($e=>j=J(me,1,"tooltip-wrapper svelte-hxlyne",null,j,$e),[()=>({"full-width":b()})]),St("mouseenter",me,Me),St("mouseleave",me,oe),$(t,ee),z(),o()}st(["mousemove","mousedown","mouseup"]);var Mh=t=>{t.stopPropagation()},p$=L("<div><!></div>"),f$={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function ko(t,e){U(e,!0),W(t,f$);let[i,o]=Re(),n=()=>S(p,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Te(),d=lo(),l=s.ui.isMobile,p=d.graphIsOpened$,m=s.ui.t,b=f(e,"className",3,""),u=f(e,"disabled",3,!1),_=f(e,"hasTooltip",3,!0),w=f(e,"ref",15,void 0),y=f(e,"width",15,void 0),C=f(e,"isFullWidthTooltip",3,!0),T=f(e,"tooltipContent",3,""),k=f(e,"tooltipActive",3,!1),P=f(e,"tooltipPlacement",3,"top"),A=f(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),I=f(e,"isAriaHidden",3,!1),V=f(e,"onTooltipVisibilityChange",3,tf),q=f(e,"initialTranslateXPx",3,0),Q=f(e,"initialTranslateYPx",19,()=>-18),H=f(e,"mouseEnter",3,tf),Y=f(e,"mouseLeave",3,tf),ne=v(()=>u()?n()?m("tooltip_disabled_when_graph_on"):A():T());var Z=p$();Z.__pointerdown=[Mh],Z.__click=[Mh];var de=h(Z);{var ce=Ae=>{ia(Ae,{get content(){return r(ne)},get translateX(){return q()},get translateY(){return Q()},get isFullWidthWrapper(){return C()},get active(){return k()},get placement(){return P()},get onVisibilityChange(){return V()},children:(he,se)=>{var Me=De(),oe=pe(Me);ge(oe,()=>{var B;return(B=e.children)!=null?B:ie}),$(he,Me)},$$slots:{default:!0}})},Le=Ae=>{var he=De(),se=pe(he);ge(se,()=>{var Me;return(Me=e.children)!=null?Me:ie}),$(Ae,he)};R(de,Ae=>{_()&&r(ne)&&!a()?Ae(ce):Ae(Le,!1)})}g(Z),pt(Z,Ae=>w(Ae),()=>w()),E(()=>{var Ae;J(Z,1,`btn-container ${(Ae=b())!=null?Ae:""}`,"svelte-p9r045"),Be(Z,"aria-hidden",I()||null)}),St("mouseenter",Z,function(...Ae){var he;(he=H())==null||he.apply(this,Ae)}),St("mouseleave",Z,function(...Ae){var he;(he=Y())==null||he.apply(this,Ae)}),Br(Z,"clientWidth",y),$(t,Z),z(),o()}st(["pointerdown","click"]);var m$=xe('<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 ed(t,e){"use strict";var i=m$(),o=h(i),n=M(o);g(i),E(()=>{Be(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Be(o,"fill-opacity",e.completed?1:.24),Be(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var v$=L("<div><!></div>"),g$={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function of(t,e){U(e,!0),W(t,g$);let o=Te().ui.t,n=X(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));ko(t,{get tooltipContent(){return r(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(s,d)=>{var l=v$();let p;var m=h(l);let b=v(()=>!!e.videoEpisode.completed);ed(m,{get completed(){return r(b)}}),g(l),E(u=>{p=J(l,1,"interactive-episode-icon svelte-bklhpe",null,p,u),nt(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Br(l,"clientWidth",u=>D(n,u)),$(s,l)},$$slots:{default:!0}}),z()}var h$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),_$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),b$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
|
|
170
170
|
.video-episode-loaded.svelte-1u6kv8l,
|
|
171
|
-
.video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function
|
|
171
|
+
.video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function nf(t,e){W(t,b$);let i=f(e,"videoEpisodes",19,()=>[]);var o=_$();Ii(o,21,i,n=>n.from,(n,a)=>{var s=h$();let d;var l=h(s),p=h(l),m=M(p,2);let b;g(l),g(s),E((u,_)=>{d=J(s,1,"video-episode svelte-1u6kv8l",null,d,u),nt(s,`left: ${r(a).from}%; width: ${r(a).width}%`),nt(p,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),b=J(m,1,"video-episode-filled svelte-1u6kv8l",null,b,_),nt(m,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,s)}),g(o),$(t,o)}function $$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&D(i,fe(e().getBoundingClientRect())),o()||r(n)||!e())return;D(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function y$(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),p=o(t.clientX);n()(l,p,r(a).width),r(s)&&d()(l)}function x$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;D(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function w$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var S$=L("<div></div>"),C$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),T$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),I$={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
|
|
172
172
|
/* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
|
|
173
173
|
.slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
|
|
174
174
|
.slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
|
|
175
175
|
.slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
|
|
176
|
-
.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function oa(t,e){
|
|
177
|
-
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function
|
|
176
|
+
.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function oa(t,e){U(e,!0),W(t,I$);let i=f(e,"ref",15,void 0),o=f(e,"className",3,""),n=f(e,"testId",3,void 0),a=f(e,"isHidden",3,!1),s=f(e,"isVertical",3,!1),d=f(e,"isActiveLive",3,!1),l=f(e,"isMobile",3,!1),p=f(e,"squareBorders",3,!1),m=f(e,"videoEpisodes",19,()=>[]),b=f(e,"withWheelHandler",3,!1),u=f(e,"isInteractive",3,!1),_=f(e,"disabled",3,!1),w=f(e,"hideHandel",3,!1),y=f(e,"onPointerDown",3,An),C=f(e,"onHandleMove",3,An),T=f(e,"onPointerUp",3,An),k=f(e,"onPointerEnter",3,An),P=f(e,"onPointerMove",3,An),A=f(e,"onPointerLeave",3,An),I=f(e,"onMouseEnter",3,An),V=f(e,"onMouseLeave",3,An),q=f(e,"onWheelUp",3,An),Q=f(e,"onWheelDown",3,An),H=f(e,"onWheelLeft",3,An),Y=f(e,"onWheelRight",3,An),ne=f(e,"onDisabledClick",3,An),Z=f(e,"loadedProgress",3,0),de=f(e,"filledProgress",3,0),ce=f(e,"handleProgress",3,0),Le=f(e,"ariaLabel",3,""),Ae=f(e,"ariaValueMin",3,void 0),he=f(e,"ariaValueMax",3,void 0),se=f(e,"ariaValueNow",3,void 0),Me=f(e,"ariaValueText",3,""),oe=qt(),B=X(void 0),be=X(!1),le=v(()=>{var re;return(re=he())!=null?re:0}),We=v(()=>{var re;return Lh(m())&&((re=m()[m().length-1])==null?void 0:re.time)<r(le)}),ee=v(()=>Lh(m())&&m().length&&r(We)&&r(le)?Ve(Z()*100,de()*100):[]);function me(re){if(re.preventDefault(),i()&&D(B,fe(i().getBoundingClientRect())),_())return;let Ne=$e(re.clientX,re.clientY),ze=we(re.clientX);k()(Ne,ze,r(B).width)}function j(re){re.preventDefault(),!_()&&A()()}function te(){I()()}function Oe(){V()()}function Ge(re){_()||b()&&(re.preventDefault(),re.deltaY<0?q()():re.deltaY>0?Q()():re.deltaX>0?Y()():H()())}function $e(re,Ne){return s()?Math.max(0,Math.min(1,(r(B).height-(Ne-r(B).top))/r(B).height)):Math.min(Math.max(re-r(B).x,0),r(B).width)/r(B).width}function we(re){return Math.min(Math.max(re-r(B).x,0),r(B).width)}function Ve(re,Ne){let ze=oe.features.episodesClustering&&!u()?oe.episodeMinWidthPc:0,Qe=[],ut=m()[0].time/r(le)*100,Ye=0,et=0;for(let gt=1;gt<m().length;gt++)Ye=m()[gt].time/r(le)*100,Ye-ut>ze&&(Qe.push({from:ut,width:Math.max(0,Ye-ut),loadedWidth:Math.max(0,Math.min(Ye,re)-ut),filledWidth:Math.max(0,Math.min(Ye,Ne)-ut),interactive:m()[gt-1].interactive,completed:m()[gt-1].completed}),ut=m()[gt].time/r(le)*100,et++);let tt={from:ut,width:Math.max(0,100-ut),loadedWidth:Math.max(0,Math.min(re,100)-ut),filledWidth:Math.max(0,Math.min(Ne,100)-ut),interactive:m()[et].interactive,completed:m()[et].completed};100-ut<ze?(et-=1,Qe[et].width+=100-ut,Qe[et].loadedWidth+=Math.max(0,Math.min(re,100)-ut),Qe[et].filledWidth+=Math.max(0,Math.min(Ne,100)-ut)):Qe[et]=tt;let qe=m()[0].time;if(qe!==0){let gt=qe/r(le)*100;Qe.unshift({from:0,width:gt,loadedWidth:Math.min(gt,re),filledWidth:Math.min(gt,Ne)})}return Qe}var je=T$(),dt=pe(je);{var ct=re=>{var Ne=S$();let ze;Ii(Ne,21,()=>r(ee),Qe=>Qe.from,(Qe,ut)=>{var Ye=De(),et=pe(Ye);{var tt=qe=>{of(qe,{get videoEpisode(){return r(ut)},get disabled(){return _()}})};R(et,qe=>{r(ut).interactive&&qe(tt)})}$(Qe,Ye)}),g(Ne),E(Qe=>ze=J(Ne,1,"interactive-icons svelte-1tpemng",null,ze,Qe),[()=>({mobile:l(),hidden:l()&&!r(be)})]),$(re,Ne)};R(dt,re=>{u()&&re(ct)})}var rt=M(dt,2);let Ct;rt.__pointerdown=[$$,i,B,_,be,$e,y],rt.__pointermove=[y$,_,$e,we,P,B,be,C],rt.__pointerup=[x$,_,be,$e,T],rt.__click=[w$,_,ne,$e];var _t=h(rt);{var Gt=re=>{nf(re,{get videoEpisodes(){return r(ee)},get disabled(){return _()},get isMobile(){return l()}})},ni=re=>{var Ne=C$(),ze=h(Ne),Qe=M(ze,2);let ut;g(Ne),E(Ye=>{nt(ze,`transform: translateX(${Z()*100}%);`),ut=J(Qe,1,"filled svelte-1tpemng",null,ut,Ye),nt(Qe,`transform: translateX(${de()*100}%);`)},[()=>({"active-live":d()})]),$(re,Ne)};R(_t,re=>{r(ee).length?re(Gt):re(ni,!1)})}var It=M(_t,2);let Vt;var O=h(It);let _e;g(It),g(rt),pt(rt,re=>i(re),()=>i()),E((re,Ne,ze)=>{var Qe,ut;Ct=J(rt,1,`slider ${(Qe=o())!=null?Qe:""}`,"svelte-1tpemng",Ct,re),Be(rt,"aria-label",Le()),Be(rt,"aria-valuemin",Ae()),Be(rt,"aria-valuemax",he()),Be(rt,"aria-valuenow",se()),Be(rt,"aria-valuetext",Me()),Be(rt,"data-testid",(ut=n())!=null?ut:null),Vt=J(It,1,"handleWrap svelte-1tpemng",null,Vt,Ne),nt(It,`transform: translateX(${ce()*100}%);`),_e=J(O,1,"handle svelte-1tpemng",null,_e,ze)},[()=>({disabled:_(),"slider-dragging":r(be),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),St("pointerenter",rt,me),St("pointerleave",rt,j),St("mouseenter",rt,te),St("mouseleave",rt,Oe),St("wheel",rt,Ge),$(t,je),z()}st(["pointerdown","pointermove","pointerup","click"]);var Gi=(t,e)=>Ks[t]>=Ks[e],Vh=(t,e)=>Ks[t]<Ks[e],xs=(t,e)=>Ks[t]<=Ks[e],Rh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var k$=L("<div><!></div>"),E$=L("<div><!> <!></div>"),P$={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 rf(t,e){var Ge,$e;U(e,!0),W(t,P$);let[i,o]=Re(),n=()=>S(k,"$isAudioAvailable$",i),a=()=>S(b,"$muted$",i),s=()=>S(m,"$volume$",i),d=()=>S(y,"$currentGridType$",i),l=Te(),p=qt(),m=l.state.volume$,b=l.state.muted$,{setVolume:u,startVolumeChanging:_,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,C=(Ge=l.callbacks)==null?void 0:Ge.onAudioDoesNotExistHint,T=($e=l.callbacks)==null?void 0:$e.onAudioDisabledHint,k=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,A=l.ui.t,I=X(!1),V,q=v(()=>!n()||a()||s()===0),Q=v(()=>xs(d(),"s")),H=v(()=>r(Q)?"":r(q)?!n()||P?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),Y=v(()=>r(q)?A("tooltip_volume"):A("tooltip_volume_muted")),ne=v(()=>r(q)?0:s()),Z=!1,de=v(()=>n()?P&&!T:!C);function ce(we){_(),u(we)}function Le(){Nc(l,s(),p.controls.volumeStepWheel)}function Ae(){Bc(l,s(),p.controls.volumeStepWheel)}function he(we){u(we)}function se(we){u(we),w()}function Me(){Z=!0}function oe(){Z=!1,le()}function B(){clearTimeout(V),D(I,!0)}function be(){le()}function le(){V=window.setTimeout(()=>{Z||D(I,!1)},p.controls.volumeBarTimeout)}function We(we){we.preventDefault(),we.deltaY<0?Le():we.deltaY>0&&Ae()}var ee=E$();let me;var j=h(ee);ia(j,{get content(){return r(H)},translateY:-18,children:(we,Ve)=>{let je=v(()=>r(Q)?"btn-volume-vertical":"btn-volume-horizontal");Lt(we,{className:"btn-full-opacity",get disabled(){return r(de)},get testId(){return r(je)},get ariaLabel(){return r(Y)},get click(){return e.click},get ariaKeyShortCut(){return Dr.KeyM},children:(dt,ct)=>{ys(dt,{get volume(){return s()},get muted(){return r(q)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var te=M(j,2);{var Oe=we=>{var Ve=k$();let je;var dt=h(Ve);let ct=v(()=>r(Q)?"volumeBar-slider-vertical":""),rt=v(()=>r(Q)&&!r(I)),Ct=v(()=>r(Q)?Me:Oc),_t=v(()=>r(Q)?oe:Oc),Gt=v(()=>Math.round(r(ne)*100)),ni=v(()=>`${Math.round(r(ne)*100)}%`),It=v(()=>r(Q)?"volume-slider-vertical":"volume-slider");oa(dt,{get className(){return r(ct)},get isHidden(){return r(rt)},get isVertical(){return r(Q)},withWheelHandler:!0,onWheelUp:Le,onWheelDown:Ae,onPointerDown:ce,onHandleMove:he,onPointerUp:se,get onPointerEnter(){return r(Ct)},get onPointerLeave(){return r(_t)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Gt)},get ariaValueText(){return r(ni)},get filledProgress(){return r(ne)},get handleProgress(){return r(ne)},get testId(){return r(It)}}),g(Ve),E(Vt=>je=J(Ve,1,"volumeBar svelte-1auih1j",null,je,Vt),[()=>({"volumeBar-vertical":r(Q)})]),$(we,Ve)};R(te,we=>{n()&&we(Oe)})}g(ee),E(we=>me=J(ee,1,"volumeBar-container svelte-1auih1j",null,me,we),[()=>({vertical:r(Q)})]),St("mouseenter",ee,function(...we){var Ve;(Ve=r(Q)?B:Oc)==null||Ve.apply(this,we)}),St("mouseleave",ee,function(...we){var Ve;(Ve=r(Q)?be:Oc)==null||Ve.apply(this,we)}),St("wheel",ee,We),$(t,ee),z(),o()}import{noop as L$}from"@vkontakte/videoplayer-shared/es2018";var A$=xe('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function sf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=A$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),$(t,o)}var M$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
177
|
+
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function af(t,e){W(t,M$);let i=f(e,"isFullscreen",8,!1),o=gr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");sf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function td(t,e){U(e,!0);let i=f(e,"isFullscreen",3,!1),o=f(e,"click",3,L$),n=Te(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Lt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let m=bs(p);a.set(m),o()()},get ariaKeyShortCut(){return Dr.KeyF},children:(p,m)=>{af(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var V$=xe('<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 lf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=V$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i})),$(t,o)}var R$=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function df(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=R$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(4),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}var N$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
|
|
178
178
|
svg[data-testid="vk-video-logo-icon--short"] ._en,
|
|
179
179
|
svg[data-testid="vk-video-logo-icon"] ._en,
|
|
180
|
-
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function af(t,e){W(t,L$);let i=f(e,"short",3,!1),o=f(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${r(s)+1} 24`);sf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function id(t,e){z(e,!0);let[i,o]=Be(),n=()=>S(_,"$isMobile",i),a=()=>S(u,"$currentGridType$",i),s=()=>S(y,"$isCyrillicRelatedInterface$",i),d=f(e,"ref",15,void 0),l=f(e,"logoClickable",3,!1),p=f(e,"targetUrl",3,""),m=Ut(),$=Ce(),u=$.ui.currentGridType$,_=$.ui.isMobile,w=$.ui.t,y=$.isCyrillicRelatedInterface$,C=v(()=>m.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>m.logoType==="vk_video"||m.logoType==="vk_video_mobile"),E=v(()=>(n()||xs(a(),"l"))&&r(T)),P=()=>{var V,F;e.click(),(V=$.callbacks)!=null&&V.onLogoClicked?(F=$.callbacks)==null||F.onLogoClicked():p()&&window.open(p(),"_blank")},A=v(()=>!l()),I=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Lt(t,{className:"btn-full-opacity",get disabled(){return r(A)},click:P,get testId(){return r(I)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(V){d(V)},children:(V,F)=>{var j=Fe(),H=ce(j);{var X=Z=>{af(Z,{get short(){return r(E)},get isCyrillic(){return s()}})},oe=Z=>{rf(Z,{})};R(H,Z=>{r(T)?Z(X):Z(oe,!1)})}b(V,j)},$$slots:{default:!0}}),q(),o()}import{ChromecastState as D$}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Lh}from"@vkontakte/videoplayer-core/es2018";var R$=ye('<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>'),N$=ye('<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>'),B$={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
|
|
180
|
+
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function cf(t,e){W(t,N$);let i=f(e,"short",3,!1),o=f(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${r(s)+1} 24`);df(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function id(t,e){U(e,!0);let[i,o]=Re(),n=()=>S(_,"$isMobile",i),a=()=>S(u,"$currentGridType$",i),s=()=>S(y,"$isCyrillicRelatedInterface$",i),d=f(e,"ref",15,void 0),l=f(e,"logoClickable",3,!1),p=f(e,"targetUrl",3,""),m=qt(),b=Te(),u=b.ui.currentGridType$,_=b.ui.isMobile,w=b.ui.t,y=b.isCyrillicRelatedInterface$,C=v(()=>m.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>m.logoType==="vk_video"||m.logoType==="vk_video_mobile"),k=v(()=>(n()||xs(a(),"l"))&&r(T)),P=()=>{var V,q;e.click(),(V=b.callbacks)!=null&&V.onLogoClicked?(q=b.callbacks)==null||q.onLogoClicked():p()&&window.open(p(),"_blank")},A=v(()=>!l()),I=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Lt(t,{className:"btn-full-opacity",get disabled(){return r(A)},click:P,get testId(){return r(I)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(V){d(V)},children:(V,q)=>{var Q=De(),H=pe(Q);{var Y=Z=>{cf(Z,{get short(){return r(k)},get isCyrillic(){return s()}})},ne=Z=>{lf(Z,{})};R(H,Z=>{r(T)?Z(Y):Z(ne,!1)})}$(V,Q)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as F$}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Nh}from"@vkontakte/videoplayer-core/es2018";var D$=xe('<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>'),O$=xe('<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>'),H$={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) {
|
|
181
181
|
animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
|
|
182
182
|
animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
|
|
183
183
|
animation-name: svelte-8z1bf5-wave3;}
|
|
@@ -225,9 +225,9 @@ Try switching the\xA0quality to\xA0Auto.`},rh=X0;var es=new Map;es.set(ah.EN,rh)
|
|
|
225
225
|
100% {
|
|
226
226
|
opacity: 1;
|
|
227
227
|
}
|
|
228
|
-
}`};function
|
|
229
|
-
transform: rotate(${n()}deg) ${r(
|
|
230
|
-
`)),b(G,K)};R(Ae,G=>{r(E)&&G(ne)})}var B=M(Ae,2),ue=h(B);{var ge=G=>{var K=Fe(),Le=ce(K);{var Ne=we=>{var be=Rr();k(Ve=>me(be,Ve),[()=>U("tooltip_episode_unfinished")]),b(we,be)},tt=we=>{var be=Rr();k(()=>me(be,r(F).text||"")),b(we,be)};R(Le,we=>{u()&&r(F).completed===!1?we(Ne):we(tt,!1)})}b(G,K)};R(ue,G=>{r(F)&&G(ge)})}g(B);var Ke=M(B,2);{var te=G=>{var K=z$(),Le=h(K,!0);g(K),k(()=>me(Le,d())),b(G,K)};R(Ke,G=>{u()||G(te)})}g(he),k(G=>{se=ee(he,1,"timeline-preview svelte-1wqg760",null,se,G),ot(he,`width: ${r(j)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),b(t,he),q(),o()}var K$=L('<span class="time svelte-1jr6obn"> </span>'),Q$=L("<!> <!>",1),G$={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 uf(t,e){var Ye,lt,Ge,et,Xe;z(e,!0),W(t,G$);let[i,o]=Be(),n=()=>S(oe,"$interactiveEpisodes$",i),a=()=>S(I,"$duration$",i),s=()=>S(A,"$position$",i),d=()=>S(ae,"$isInteractiveExpectation$",i),l=()=>S(fe,"$isInteractiveTime$",i),p=()=>S(V,"$isLive$",i),m=()=>S(j,"$isMobile",i),$=()=>S(F,"$isActiveLive$",i),u=()=>S(P,"$bufferedProgress$",i),_=()=>S(he,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),y=f(e,"withEpisodes",3,!0),C=f(e,"ref",15,void 0),T=Ce(),E=Ut(),P=T.state.bufferedProgress$,A=T.state.positionWithScrubbing$,I=T.state.duration$,V=T.state.isLive$,F=T.state.isActiveLive$,j=T.ui.isMobile,H=E.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,X=T.actions.internal.getPreviewThumbsData(),oe=T.state.interactiveEpisodes$,Z=T.state.isInteractive,fe=T.state.isInteractiveTime$,ae=T.state.isInteractiveExpectation$,Me=T.actions.internal.correctSeekTimeToInteractive,Pe=(Ye=T.callbacks)==null?void 0:Ye.onDisabledTimelineClick,he=T.ui.controls.disabledControls$,se=(Ge=(lt=T.callbacks)==null?void 0:lt.uiInfo)==null?void 0:Ge.onTimelineMouseEnter,Ae=(Xe=(et=T.callbacks)==null?void 0:et.uiInfo)==null?void 0:Xe.onTimelineMouseLeave,ne=T.ui.t,B=E.features.interactiveResponsiveUi,ue=v(()=>Z?n():H),ge=v(()=>on(a())),Ke=v(()=>on(s())),te=v(()=>s()/a()),G=v(()=>d()||l()),K=J(!1),Le=J(""),Ne=J(0),tt=J(0),we=J(0),be=v(()=>({containerWidth:r(tt),translateXPx:r(Ne),translateYPx:Z&&X?-36:-16,active:r(K)&&w()&&!r(G)&&!B,pointer:!E.features.timelinePreview||!X||p()})),Ve=ne("aria_timeline"),je=v(()=>ne("aria_timeline_value",{position:r(Ke),duration:r(ge)}));function it(Ue){return!Me||!Z?Ue:Me(Ue*a())/a()}function vt(Ue){T.actions.internal.startScrubbing(it(Ue))}function Je(Ue){l()||T.actions.internal.progressScrubbing(it(Ue))}function wt(Ue){T.actions.internal.completeScrubbing(it(Ue)),D(K,!1)}function _t(Ue,ut,zt){At(Ue,ut,zt),D(K,!0)}function Kt(Ue,ut,zt){At(Ue,ut,zt),D(K,!0)}function Qt(){D(K,!1)}function At(Ue,ut,zt){D(we,pe(it(Ue))),D(Ne,pe(ut)),zt&&D(tt,pe(zt)),D(Le,pe(It(Ue)))}function It(Ue){let ut=on((p()?1-Ue:Ue)*a());return p()?`-${ut}`:ut}var O=Q$(),_e=ce(O);df(_e,Jr(()=>r(be),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Ue,ut)=>{var zt=Fe(),We=ce(zt);{var Jt=Ze=>{cf(Ze,{get time(){return r(Le)},get isMobile(){return m()},get videoEpisodes(){return r(ue)},previewThumbsData:X,get progress(){return r(we)},get duration(){return a()},isInteractive:Z})},Ui=Ze=>{var Gt=K$(),wi=h(Gt,!0);g(Gt),k(()=>me(wi,r(Le))),b(Ze,Gt)};R(We,Ze=>{E.features.timelinePreview&&X&&!p()?Ze(Jt):Ze(Ui,!1)})}b(Ue,zt)},$$slots:{default:!0}}));var re=M(_e,2);let Oe=v(()=>Math.round(r(te)*100)),He=v(()=>_().has("TIMELINE"));oa(re,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return m()},ariaLabel:Ve,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Oe)},get ariaValueText(){return r(je)},get loadedProgress(){return u()},get filledProgress(){return r(te)},get handleProgress(){return r(te)},get videoEpisodes(){return r(ue)},onPointerDown:vt,onHandleMove:Je,onPointerMove:Kt,onPointerUp:wt,onPointerEnter:_t,onPointerLeave:Qt,onMouseEnter:se,onMouseLeave:Ae,onDisabledClick:Pe,isInteractive:Z,get disabled(){return r(He)},get hideHandel(){return l()},get ref(){return C()},set ref(Ue){C(Ue)}}),b(t,O),q(),o()}var j$={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 nd(t,e){z(e,!0),W(t,j$);let[i,o]=Be(),n=()=>S(l,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"duration",3,0),d=Ce(),l=d.ui.isMobile,p=d.ui.t,m=v(()=>on(s())),$=v(()=>on(a())),u=v(()=>a()/s()),_=v(()=>p("aria_timeline_value",{position:r($),duration:r(m)})),w=v(()=>Math.round(r(u)*100));oa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(_)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),q(),o()}var Y$=L("<div><!></div>"),Z$=L("<div></div>"),X$={hash:"svelte-1h5wsmk",code:".timeline.svelte-1h5wsmk {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1h5wsmk {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1h5wsmk {padding:0;}.timeline-stub.svelte-1h5wsmk {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1h5wsmk {height:8px;}"};function na(t,e){z(e,!0),W(t,X$);let[i,o]=Be(),n=()=>S(_,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(y,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=f(e,"isAds",3,!1),p=f(e,"isHidden",3,!1),m=f(e,"needPadding",3,!0),$=f(e,"ref",15,void 0),u=Ce(),_=u.state.isLive$,w=u.ads.duration,y=u.ads.position,C=u.ui.isMobile,T=v(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var E=Fe(),P=ce(E);{var A=V=>{var F=Y$();let j;var H=h(F);{var X=Z=>{nd(Z,{get position(){return s()},get duration(){return d()}})},oe=Z=>{uf(Z,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return $()},set ref(fe){$(fe)}})};R(H,Z=>{l()?Z(X):Z(oe,!1)})}g(F),k(Z=>j=ee(F,1,"timeline svelte-1h5wsmk",null,j,Z),[()=>({withoutPadding:!m(),mobile:a()})]),b(V,F)},I=V=>{var F=Z$();let j;k(H=>j=ee(F,1,"timeline-stub svelte-1h5wsmk",null,j,H),[()=>({mobile:a()})]),b(V,F)};R(P,V=>{r(T)?V(A):V(I,!1)})}b(t,E),q(),o()}import{noop as t2}from"@vkontakte/videoplayer-shared/es2018";var J$=ye('<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 pf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=J$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(3),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i})),b(t,o)}var e2=ye('<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 ff(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=e2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),b(t,o)}var i2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),o2=L('<span class="text svelte-1yhs2ga"> </span>'),n2=L('<span class="text count svelte-1yhs2ga"> </span>'),r2=L("<!> <!>",1),s2={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 rd(t,e){var ae,Me,Pe;z(e,!0),W(t,s2);let[i,o]=Be(),n=()=>S(w,"$currentGridType$",i),a=()=>S(y,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=f(e,"position",3,0),p=f(e,"duration",3,0),m=f(e,"timeCodes",19,()=>[]),$=Ce(),u=(Me=(ae=$.callbacks)==null?void 0:ae.onEpisodeChanged)!=null?Me:t2,_=!!((Pe=$.callbacks)!=null&&Pe.onEpisodeClicked),w=$.ui.currentGridType$,y=$.ui.episodes.openedByKeyboard$,C=$.ui.episodes.panelOpened$,T=$.ui.isMobile,E=$.ui.t,P=J(void 0),A=he=>{var Ae,ne,B;if(!!((Ae=$.callbacks)!=null&&Ae.onEpisodeClicked)){let ue=bs(he);y.set(ue),C.set(!0),(B=(ne=$.callbacks)==null?void 0:ne.onEpisodeClicked)==null||B.call(ne,ue)}},I=J(null),V=v(()=>l()/p());ze(()=>{var se;let he=Oc(r(V),p(),m());he?((se=r(I))==null?void 0:se.time)!==he.time&&(u(he),D(I,pe(he))):D(I,null)});let F=v(()=>{var he;return((he=r(I))==null?void 0:he.text)||""}),j=v(()=>Qi(n(),"xl")?"FULL":Qi(n(),"m")&&Ah(n(),"xl")?"COUNT":"SHORT"),H=v(()=>`${E("tooltip_episodes")}: ${r(F)}`),X=async(he,se,Ae)=>{await ho(),(he==null?void 0:he.getAttribute("aria-expanded"))==="false"&&se&&!Ae&&bt(()=>{y.set(!1),he.focus()})};ze(()=>{X(r(P),a(),s())});var oe=Fe(),Z=ce(oe);{var fe=he=>{let se=v(()=>d()?"px-0":"");Lt(he,{get className(){var Ae;return`w-max btn-full-opacity btn-jc-l ${(Ae=r(se))!=null?Ae:""}`},testId:"btn-episodes",click:A,disabled:!_,get ariaExpanded(){return s()},get ariaLabel(){return r(H)},get ref(){return r(P)},set ref(Ae){D(P,pe(Ae))},children:(Ae,ne)=>{var B=Fe(),ue=ce(B);{var ge=te=>{var G=i2(),K=ce(G),Le=h(K,!0);g(K);var Ne=M(K,2),tt=h(Ne);ff(tt,{}),g(Ne),k(()=>me(Le,r(F))),b(te,G)},Ke=te=>{var G=r2(),K=ce(G);pf(K,{});var Le=M(K,2);{var Ne=we=>{var be=o2(),Ve=h(be,!0);g(be),k(()=>me(Ve,r(F))),b(we,be)},tt=(we,be)=>{{var Ve=je=>{var it=n2(),vt=h(it,!0);g(it),k(()=>me(vt,m().length)),b(je,it)};R(we,je=>{r(j)==="COUNT"&&je(Ve)},be)}};R(Le,we=>{r(j)==="FULL"?we(Ne):we(tt,!1)})}b(te,G)};R(ue,te=>{d()?te(ge):te(Ke,!1)})}b(Ae,B)},$$slots:{default:!0}})};R(Z,he=>{r(I)&&he(fe)})}b(t,oe),q(),o()}import{debounceFn as sy}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as m2,PlaybackState as sd,Player as v2,PredefinedQualityLimits as Hr,VideoFormat as ad,clientChecker as g2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Fn,getHighestQuality as h2,InterfaceLanguage as _2,isInvariantQuality as b2,isNonNullable as $2,loadVKLangPack as y2,Logger as x2,map as Uh,merge as w2,Observable as S2,Subject as Qc,Subscription as bf,Tracer as C2,ValueSubject as T2,VideoQuality as I2,devNull as k2,now as E2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as is}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as a2,devNull as Yt,now as Zt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as l2,Subject as Do,clearVideoElement as d2}from"@vkontakte/videoplayer-shared/es2018";var Nh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var c2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Hc=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 Do,loadStarted$:new Do,loadEnded$:new Do,loadError$:new Do,ready$:new Do,slotRequested$:new Do,started$:new Do,timeRemained$:new Do,paused$:new Do,resumed$:new Do,ended$:new Do,empty$:new Do,skipped$:new Do,clicked$:new Do,closed$:new Do,error$:new Do};this.loadAdman=e=>(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Zt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Zt()]}),o())};l2(c2,e,this.loadTimeout).then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Zt()]}),window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Zt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Zt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Zt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Zt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Zt()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Zt()]}),!d&&(window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Zt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Zt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Zt(),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"}),Se(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Zt()]}),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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")=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Zt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Zt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Zt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:p={},duration:m,previewParam:$}=e,u,_=this.playerState&&Se(this.playerState.vsid);_&&(this.isVsidOriginal?u=_:u=parseInt(_,36));let{isEmbed:w,immediateOrigin:y}=a2(),C=(P=w?y:window.location.href)!=null?P:window.location.href,T={...p,dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:$,...u?{request_id:u}:{},duration:m,puid10:Nh(i,o),puid11:n?0:1};$||delete T.preview;let E={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let A=new window.AdmanHTML;A.setDebug(!1),A.onReady(this.onAdsReady),A.onStarted(this.onAdStarted),A.onPlayed(this.onAdPlayed),A.onPaused(this.onAdPaused),A.adMidrollPoint(this.onAdMidrollPoint),A.onClosed(this.onAdClosed),A.onSkipped(this.onAdSkipped),A.onClicked(this.onAdClicked),A.onTimeRemained(this.onAdTimeRemained),A.onCompleted(this.onAdCompleted),A.onError(this.onAdError),A.init(E),this.adman=A,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(A){Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[Zt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Zt()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adsState){this.log({message:"toggle play"});let i=Se(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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,p,m,$,u;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Zt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),($=this.adman)==null||$.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&d2(this.videoElement),this.isDestroyed=!0}};var Bh=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 mf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let a of n){let s={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!s.startTime&&!s.endTime){let p=new Fc,{startTime:m,endTime:$}=p.parse(l);s.startTime=m,s.endTime=$}else if(l.trim()!==""){let p=new vf,{texts:m}=p.parse(l);s.texts=[...s.texts,...m]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Fc=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let a=Number(e)*60*60,s=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+s+d+l}},vf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let d=0,l=[];for(;d<s.length;){let p=["<",">"].reduce((m,$)=>{let u=s.indexOf($,d);return m===-1||m>u?u:m},-1);if(p===-1){l.push(s.substring(d));break}l.push(s.substring(d,p)),d=p+1}return l}}),a=new Fc;for(let s of n)a.isTime(s)?i.texts.push({type:"timestamp",value:a.parseTime(s)}):i.texts.push({type:"text",value:s});return i}},Dh=mf;import{isNonNullable as gf}from"@vkontakte/videoplayer-shared/es2018";var ra,Pi,hf=0,_f=!1,Oh="",Hh=(t,e=0,i=0)=>t<e&&t<i,Uc=(t,e=0,i=0)=>t>=e&&t<=i,u2=(t,e=0,i=0)=>t>e&&t>i,Fh=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:m})=>Uc(t,p,m));let a=t>=hf,s=t<hf;if(hf=t,s&&(_f=!1),gf(ra)&&Uc(t,ra.startTime,ra.endTime)&&Oh===e.value)return ra;if(!gf(Pi)&&(n!=null&&n.length)&&!_f){Pi=n.find(({startTime:p,endTime:m})=>Uc(t,p,m)||a&&Hh(t,p,m)),ra=void 0,!gf(Pi)&&n[n.length-1].endTime<t&&(_f=!0);return}else{if(Uc(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return ra=Pi,Pi=void 0,Oh=e.value,ra;(a&&u2(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||s&&Hh(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=void 0)}};var zc={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"},p2={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"},qc=t=>{var e,i;return(i=(e=zc[t])!=null?e:zc[p2[t]])!=null?i:void 0};import{Subscription as f2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Wc=class{constructor(e,i=new f2){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Kc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Kc||{});var Or=t=>t!=null?t:0,Ya=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(Or(i==null?void 0:i.top)-Or(o==null?void 0:o.top)),left:Math.round(Or(i==null?void 0:i.left)-Or(o==null?void 0:o.left)),bottom:Math.round(Or(i==null?void 0:i.bottom)-Or(o==null?void 0:o.top)),right:Math.round(Or(i==null?void 0:i.right)-Or(o==null?void 0:o.left))}},Za=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Or(e==null?void 0:e.width),height:Or(e==null?void 0:e.height)}};var zh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:m,previewThumbsData:$,uiConfig:u,coreConfig:_,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:P,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,additionalButtons:F,additionalSettingsMenuItems:j,additionalContextMenuItems:H,playPrevVideo:X,playNextVideo:oe,looped:Z=!1,statistics:fe,saveRate:ae,internalsExposure:Me,playerView:Pe})=>{var Nm,Bm,Dm;let he={..._,configName:[...(Nm=_.configName)!=null?Nm:[],"ui"],isAudioDisabled:s,live:{...(Bm=_.live)!=null?Bm:{},isLiveCatchUpMode:!!n}},se=u,Ae=C2.createRootTracer(se.features.saveTraceInfoToFile),ne=Ae.createComponentTracer("Store"),B=w||new v2(he,Ae);Me==null||Me.expose({corePlayer:B});let ue=new x2,ge=new Hc(ue,{loadTimeout:se.ads.loadTimeout,initTimeout:se.ads.initTimeout,runtimeTimeout:se.ads.runtimeTimeout,useAdmanFromNPM:se.ads.useAdmanFromNPM,volumeMultiplier:se.ads.volumeMultiplier,isVsidOriginal:se.ads.isVsidOriginal}),Ke=Gs.getInstance(),te=p==null?void 0:p.pictureInPictureApi,G=p==null?void 0:p.annotationsApi,K=ue.createComponentLog("Store"),Le,Ne,tt={},we=new hc,be=new bf,Ve=fe?Xt(fe.oneStat.vsid$):or(void 0),je=de(gs()),it=de(!1),vt=(Dm=te==null?void 0:te.info.isActive$)!=null?Dm:new T2(!1),Je=de(0),wt=de([]),_t=w2(B.events.fatalError$,B.events.managedError$).subscribe(c=>wt.update(x=>[...x,c])),Kt=or(!1,c=>{let x=B.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Qt=async c=>{var le;let x=Object.values(_2).includes(c);if(se.downloadVKLanguages&&(x&&se.updateBuiltinLanguages||!Sp(c))){let Re;try{Re=await y2(c,Ig,kg)}catch(ft){(le=fe==null?void 0:fe.oneStat)==null||le.logError({errorType:"VKLangPack",fatal:!1}),Ke==null||Ke.report(ft,{errorType:"VKLangPack",fatal:!1})}Re&&(wp({language:c,pack:Re,fallback:se.defaultLanguage}),At.set(c))}Sp(c)&&At.set(c)},At=de(t),It=de(e);Qt(t);let O=(c,x)=>{let N=Se(At);return Cp(N,c,x,se.defaultLanguage)},_e=de("thumb"),re=(()=>{let c=yi([Kt,_e],([x,N])=>x?"crashed":N);return{...c,is:x=>Se(c)===x}})(),Oe=(()=>{let c=de(new Set(y));return{...c,add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let le=[...N];return new Set(Array.isArray(x)?le.filter(Re=>!x.includes(Re)):le.filter(Re=>Re!==x))})},includes:x=>{let N=Se(c);return Array.isArray(x)?x.every(le=>N.has(le)):N.has(x)}}})();ne.log("create store"),K({message:"create store"});let He=c=>{let x=c.container,N=()=>{ut=new MutationObserver(Re=>{let{removedNodes:ft}=Re[0];ft.length&&x.append(B.experimental.element$.getValue())}),ut.observe(x,{childList:!0})},le=B.experimental.element$.getValue();if(le)x.append(le),N();else{let Re=B.experimental.element$.subscribe(ft=>{ft&&(Re==null||Re.unsubscribe(),Re=void 0,x.append(ft),N())});be.add(Re)}},Ye=c=>{K({message:`init video, config: ${JSON.stringify(c)}`}),C?He(c):(k2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[E2()]}),B.initVideo(c)),ne.log("init video",{isInteractive:C}),c.subtitles&&B.setExternalTextTracks(c.subtitles),Le=c},lt=new Qc,Ge=c=>lt.next(c),et=new Qc,Xe=new Qc,Ue=new Qc,ut=null,zt={actionRewind$:et,actionSeek$:Xe,inPiP$:vt,inFullscreen$:new S2(c=>je.subscribe(x=>c.next(x))),actionSetSubtitle$:Ue,nextMovie$:lt};if(fe){let{oneStat:c,statSubscription:x}=fe;C||x.add(c.attachTo(B)),x.add(c.attachToUi(zt)),x.add(c.attachToAds(ge.events)),c.authorize(a).catch(N=>{K({message:`onestat auth error ${String(N)}`})})}if(Ke){let c=new bf,x=(N,le)=>c.add(N.subscribe(le));if(x(B.events.managedError$,N=>{Ke.logIError(N)}),x(B.events.fatalError$,N=>{Ke.logIError(N,!0)}),fe){let{oneStat:N}=fe;x(N.experimental.error$,le=>{Ke.logIError(le)})}Ke.sentrySubscription.add(c)}let We=()=>{g2.device.isIOS&&Ne&&uh(Ne).catch(c=>{K({message:`exitIosSafariFullscreen failed: ${c}`})})};be.add(B.experimental.element$.subscribe(c=>{c&&(Ne=c,c.classList.add("player-media"),Ys(te)&&(te.updateVideoElement(),te.registryEventHandlers()),C&&c.setAttribute("pip","false"),Pe==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(B.events.ended$.subscribe(()=>{var c;We(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(B.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(B.events.started$.subscribe(async()=>{var x,N;Ys(te)&&await(te==null?void 0:te.revealPictureInPicture());let c=B.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=tt.onStarted)==null||N.call(tt,c)})).add(B.events.willSeek$.subscribe(({from:c,to:x})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,x)})).add(B.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(B.info.position$.subscribe(c=>{var N;let x=B.info.duration$.getValue();isFinite(x)&&x>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,x,c),ge.setPosition(c,x))})).add(B.events.fatalError$.subscribe(c=>{var x;(x=l==null?void 0:l.onCrashed)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=l==null?void 0:l.onRecoverableError)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.loadedMetadata$.subscribe(()=>{Et.state.loadedMetadata$.set(!0)})).add(B.info.is3DVideo$.subscribe(c=>{Et.ui.is3DVideo.set(c)})).add(B.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&Oe.add(Vl),Oe.add("PLAY_BUTTON")):Oe.remove("PLAY_BUTTON"))})).add(B.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(B.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(B.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(ge.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(ge.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(ge.events.loadError$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(ge.events.init$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(ge.events.ready$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(ge.events.started$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:N.call(x,c)})).add(ge.events.timeRemained$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:N.call(x,c)})).add(ge.events.ended$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:N.call(x,c)})).add(ge.events.empty$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(ge.events.clicked$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:N.call(x,c)})).add(ge.events.closed$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:N.call(x,c)})).add(ge.events.error$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:N.call(x,c)})).add(ge.events.paused$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(ge.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let Jt=new bf,Ui=()=>{var ft,Nt,Wt;let{debugLog:c}=se,x,N="#9df7b7",le="#efd169";if(c&&c!==!0){let{colors:Bt}=c;x=c.tag,N=(ft=Bt==null?void 0:Bt[0])!=null?ft:N,le=(Wt=(Nt=Bt==null?void 0:Bt[1])!=null?Nt:Bt==null?void 0:Bt[0])!=null?Wt:le}let Re=x?`: ${x}`:"";Jt.add(B.events.log$.subscribe(Bt=>{console.debug(`%c sdk${Re} `,`background:${N};`,`sdk component: ${Bt.component}`,Bt.message)})).add(ue.log$.subscribe(Bt=>{console.debug(`%c ui${Re} `,`background:${le};`,`ui component: ${Bt.component}.`,Bt.message)}))},Ze=()=>{Jt.unsubscribe()},Gt=(c,x)=>{ne.log("start camera manual rotation",{mx:c,my:x}),B.startCameraManualRotation(c,x)},wi=(c=!1)=>{ne.log("stop camera manual rotation",{immediate:c}),B.stopCameraManualRotation(c)},Si=(c,x,N)=>{ne.log("move camera focus px",{xpx:c,ypx:x,dt:N}),B.moveCameraFocusPX(c,x,N)},Mt=()=>{B.holdCamera()},$t=()=>{B.releaseCamera()},Vt=or(B.info.position$.getValue(),c=>{let x,N,le=()=>{let Re=B.info.playbackState$.getValue(),ft=B.info.isLive$.getValue(),Nt=B.info.duration$.getValue(),Wt=B.info.position$.getValue();if(Re&&[sd.PLAYING,sd.PAUSED].includes(Re)){let Bt=ft?Wt-Nt:B.getExactTime();Bt!==N&&c(Bt),N=Bt}x=requestAnimationFrame(le)};return le(),()=>cancelAnimationFrame(x)}),yo=Xt(B.info.playbackState$),nn=Xt(B.info.currentBuffer$),Y=Xt(B.info.isEnded$),jt=Xt(B.info.isLive$),ui=se.features.playbackRate?Xt(B.info.canChangePlaybackSpeed$):or(!1),zi=Xt(B.info.liveBufferTime$),ni=Xt(B.info.volume$),pi=Xt(B.info.muted$),ri=_c(B.info.predefinedQualityLimitType$.pipe(Uh(c=>c===Hr.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===Hr.TRAFFIC_SAVING),dt=_c(B.info.predefinedQualityLimitType$.pipe(Uh(c=>c===Hr.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===Hr.HIGH_QUALITY),lo=Xt(B.info.autoQualityLimitingAvailable$),Ct=Xt(B.info.availableQualities$),qt=Xt(B.info.availableQualitiesFps$),ii=Xt(B.info.chromecastState$),co=Xt(B.info.chromecastDeviceName$),yn=Xt(B.info.currentFormat$),Gi=Xt(B.info.throughputEstimation$),xo=Xt(B.info.videoBitrate$),li=Xt(B.info.intrinsicVideoSize$),yt=Xt(B.info.duration$),wo=Xt(B.info.isAudioAvailable$),Ai=null,Ci=B.info.isBuffering$,Ho=or(Ci.getValue(),c=>{let x=Ci.subscribe(N=>{N&&Ai===null?Ai=window.setTimeout(()=>{c(Ci.getValue()),Ai=null},se.loaderDelay):c(N)});return()=>{x.unsubscribe(),Ai&&clearTimeout(Ai)}}),Zi=()=>{Ai&&clearTimeout(Ai),Ai=null},qi=yi([yt,jt],([c,x])=>x?-c:c),xn=yi([yo],([c])=>c===sd.PLAYING),wn=Xt(B.info.atLiveEdge$),Bi=Xt(B.info.atLiveDurationEdge$),rn=Xt(B.info.position$),So=yi([rn,yt],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Co=yi([ii],([c])=>c===m2.CONNECTED),wr=Xt(B.info.availableVideoStreams$),rr=se.features.audioLanguages?Xt(B.info.availableAudioStreams$):or([]),Sn=Xt(B.info.currentVideoStream$),zn=Xt(B.info.currentAudioStream$),qn=c=>{c.language&&xp(c.language),B.setVideoStream(c)},uo=c=>{c.language&&xp(c.language),B.setAudioStream(c)},Fo=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(le=>"isDefault"in le&&le.isDefault)),x)return x;let N=Zg();return N&&(x=c.find(({language:le})=>N===le)),x!=null||(x=c.at(0)),x},Cn=!1;be.add(B.info.availableAudioStreams$.subscribe(c=>{if(!Cn&&c.length){let x=Fo(c);x&&(B.setAudioStream(x),Cn=!0)}}));let nt=!1;be.add(B.info.availableVideoStreams$.subscribe(c=>{if(!nt&&c.length){let x=Fo(c);x&&(B.setVideoStream(x),nt=!0)}}));let Uo=de(void 0),sn=Xt(B.info.isAutoQualityEnabled$,c=>c&&Uo.set(void 0)),Tn=Xt(B.info.currentQuality$,()=>Uo.set(void 0)),sr=yi([Uo,Tn],([c,x])=>c!=null?c:x),zo=yi(yn,c=>c!==ad.MPEG),Wn=yi([Ct,qt,sn,sr,zo],([c,x,N,le,Re])=>{let ft=[];Re&&ft.push({value:"auto",displayValue:O("auto_quality_option"),selected:N});let Nt=c.filter(Wt=>!b2(Wt));for(let Wt of Nt){let Bt=x[Wt];ft.push({value:Wt,displayValue:`${Wt}${Bt?Bh(Bt):""}`,selected:N?!1:Wt===le})}return ft}),an=Xt(B.info.currentPlaybackRate$),In=yi([an,wn,Bi],([c,x,N])=>{let le=N||C?1:se.controls.playbackRateMin,Re=x?1:se.controls.playbackRateMax,ft=se.controls.playbackRateStep,Nt=[];for(let Wt=le;Wt<=Re;Wt+=ft)Nt.push({value:Wt,displayValue:Wt===1?O("playback_rate_1"):O("playback_rate",{multiplier:Wt.toString(10)}),selected:c===Wt});return Nt}),Di={displayValue:O("subtitles_off"),value:"off"},ji=de({...Di}),kn=se.features.subtitles?Xt(B.info.availableTextTracks$):or([]),Mo=Ug(),En=yi([kn,ji],([c,x],N)=>{var ft;let le=[],Re=c.find(({id:Nt})=>Nt===x.value);if(Re!=null&&Re.url){let[,Nt]=(ft=Mo.find(Re.url))!=null?ft:[];if(Nt){N(Nt);return}we.download(Re.url).then(Wt=>{if(!Wt||we.isDestroyed())return;let Bt=new Dh,as=Re.language;if(as){let A1=!!Re.isAuto,M1=Bt.parse(Wt,as);le.push({lang:as,subtitles:M1,isAuto:A1,id:Re.id})}Mo.add(Re.url,le),Se(ji).value===x.value&&N(le)}).catch(Wt=>{var Bt;(Bt=fe==null?void 0:fe.oneStat)==null||Bt.logError({errorType:"Subtitles download",fatal:!1}),Ke==null||Ke.report(Wt,{errorType:"Subtitles download",fatal:!1})})}N(le)}),qo=yi([an,xn,ji],([c,x,N],le)=>{let Nt;if(B.info.isLive$.getValue()&&x&&N.value!==Di.value){let Bt=()=>{let as=1e3/(3*c);Nt=setTimeout(Bt,as),le(Date.now())};return Bt(),()=>clearTimeout(Nt)}}),Lo=yi([kn,ji],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:le,isAuto:Re,id:ft}of c){let Nt=le&&qc(le);le&&Nt&&N.push({displayValue:Re?O("subtitles_auto",{language:Nt}):Nt,value:ft,selected:(x==null?void 0:x.value)===ft,isAuto:Re})}return N.length?(N.unshift({...Di,selected:(x==null?void 0:x.value)===Di.value}),N):[]}),vi={available:[],prev:[]},Kn=()=>{var x,N;let c=B.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:Ne==null?void 0:Ne.currentTime)!=null?N:0},To=yi([Vt,ji,En,qo],([c,x,N,le])=>{var ft;let Re=B.info.isLive$.getValue();if(Re&&vi.prev!==N){let Nt=N.find(({id:Bt})=>Bt===x.value),Wt=vi.prev.find(({id:Bt})=>Bt===x.value);if(Nt){let Bt={...Nt,subtitles:[...(ft=Wt==null?void 0:Wt.subtitles)!=null?ft:[],...Nt.subtitles]};vi.available=[Bt],vi.prev=N}}if(x&&x.value!==Di.value){let Nt=Re?Kn():c,Wt=Re?vi.available:N;return Fh(Nt,x,Wt,Re)}}),ar=yi([To],([c])=>c!=null&&c.texts?c.texts:[]);be.add(ji.subscribe(c=>{var x,N;if(c.value===Di.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let le=Object.entries(zc).find(([Re,ft])=>ft===c.displayValue);(N=l==null?void 0:l.onSubtitleOn)==null||N.call(l,le?le[0]:"")}}));let ln=de(!0),dn=yi([nn,qi,rn,zi],([c,x,N,le])=>{var Wt;let Re=(Wt=c==null?void 0:c.end)!=null?Wt:0;if(!le)return Re/x;let Nt=-N+le-x;return(Re-Nt)/x}),lr=Xt(B.info.availableSources$),Wo=yi([lr],([c])=>Object.keys((c==null?void 0:c[ad.MPEG])||{}).length>0),Sr=()=>{var N,le,Re;let c=Object.keys(((le=(N=B.info.availableSources$)==null?void 0:N.getValue())==null?void 0:le[ad.MPEG])||{}),x=h2(c)||I2.Q_144P;return(Re=Le.sources[ad.MPEG])==null?void 0:Re[x]},Pn=()=>{var x;let c=Sr();if(c)ne.log("download video",{url:c}),Og(c,((x=Le==null?void 0:Le.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";ne.log("download video",{message:N}),K({message:N})}},Qn=()=>{K({message:"toggle muted"});let c=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!c?di(jn()):Vo(!c)},dr=()=>{var c;if(Et.ui.settingsMenu.visible$.set(!1),!Se(Et.ui.settingsSubMenu.visible$)){let x=Se(Et.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let le=Za(x),Re={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:le,position:Re,name:"settings"})}}ne.log("close settings menu")},Cr=async(c,x=()=>Promise.resolve())=>{var Re;Et.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Et.ui.settingsMenu.visible$.set(!0),await x();let N=Se(Et.ui.settingsMenu.ref$),le=ks();if((Re=l==null?void 0:l.uiInfo)!=null&&Re.onSettingsMenu&&N&&le){let Nt=Za(N),Wt=Ya(N,le);l.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:Wt,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})},Gn=(c,x=!1)=>{var ft;Et.ui.settingsSubMenu.visible$.set(!1);let N=Se(Et.ui.settingsMenu.ref$),le=ks(),Re=Se(Et.ui.settingsMenu.visible$);if((ft=l==null?void 0:l.uiInfo)!=null&&ft.onSettingsMenu&&N&&le)if(Re&&!x){let Wt=Za(N),Bt=Ya(N,le);l.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:Bt,name:"settings"})}else{let Wt=Za(c),Bt={top:0,left:0,bottom:0,right:0},as=Se(Et.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Wt,position:Bt,name:as})}ne.log("close settings sub menu")},cn=(c,x)=>{var le;Et.ui.settingsSubMenu.visible$.set(!0),Et.ui.settingsSubMenu.ref$.set(x),Et.ui.settingsSubMenu.name$.set(c);let N=ks();if((le=l==null?void 0:l.uiInfo)!=null&&le.onSettingsMenu&&x&&N){let ft=Za(x),Nt=Ya(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:ft,position:Nt})}ne.log("open settings sub menu",{name:c})},jn=()=>{var x;let c=Math.max(se.volumeMinRestore,(x=bc())!=null?x:0);return c===0?se.volumeDefault:c},di=c=>{let x=c===0?jn():c,N=B.info.muted$.getValue();K({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),N&&c>0&&!s&&(N=!1,$p(!1)),B.setVolume(c,N),ge.setVolume(c),vp(x)},Vo=c=>{let x=B.info.volume$.getValue();if(K({message:`set muted, currentVolume: ${x}, mute: ${c}`}),B.setMuted(c),ge.setVolume(c?0:x),$p(c),!c&&x===0){let N=jn();B.setVolume(N),vp(N),ge.setVolume(N)}},Ti=de(!1),Yn=c=>{var x,N;ne.log("set looped",{isLooped:c}),Ti.set(c),B.setLooped(c),(N=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||N.call(x,c)};Yn(Z);let pt=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Ot=(c,x=!1)=>{var N;K({message:`set autoplayNextEnabled, value: ${c}`}),ne.log("set autoplay next enabled",{autoplayNextEnabled:c}),Et.ui.autoplayNextEnabled$.set(c),eh(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},Mi=c=>{K({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),Et.ui.timerNextVideoRunning$.set(c)},Io=(c=!0)=>{var le;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(le=l==null?void 0:l.onPrevVideoClick)==null?void 0:le.call(l)}catch(Re){K({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Rt("prev")||X()},rt=(c=!0)=>{var le;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(le=l==null?void 0:l.onNextVideoClick)==null?void 0:le.call(l)}catch(Re){K({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Rt("next")||oe()},Rt=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:le}}=se;return N&&le&&!x?(Et.ui.aboutToGoNextVideo.set(c),Et.ui.userActionsDisabled.set(!0),!0):!1},fi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},Oi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},po=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},xi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Li=()=>{B.prepare()},gi=()=>{Fn(Et);let c=Se(Et.ui.controls.disabledControls$),x=Se(Et.playerPhase),N={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(K({message:"toggle play"}),x==="ads"){N.action="play",ne.log("toggle adman play",N),ge.togglePlay();return}let le=()=>{var ft;K({message:"toggle play, call player.play"}),N.action="play",B.play(),(ft=l==null?void 0:l.onPlay)==null||ft.call(l)},Re=()=>{var ft;K({message:"toggle play, call player.pause"}),N.action="pause",B.pause(),(ft=l==null?void 0:l.onPause)==null||ft.call(l)};if(B.info.isEnded$.getValue()){if(K({message:"toggle play, video ended, seek to 0"}),et.next(),Xe.next(is.REWIND),C){P==null||P();return}B.seekTime(0),le()}else B.info.playbackState$.getValue()!==sd.PLAYING?le():Re();ne.log("toggle play",N)},fo=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{K({message:`set quality, quality: ${c}`}),ne.log("set quality",{quality:c}),B.setAutoQuality(c==="auto"),c!=="auto"?(se.features.qualityDetailsSubMenuEnabled?($c({type:"exact_quality",quality:c,videoId:i},N),Nl(),B.setPredefinedQualityLimits(Hr.UNKNOWN)):gp(i,c),Uo.set(c),B.setQuality(c)):se.features.qualityDetailsSubMenuEnabled?x==="default"&&(Zn("auto_quality",N),Se(ri)&&Xi(!1),Se(dt)&&Ji(!1)):Nl()},Xi=(c,x="as-default")=>{K({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?Hr.TRAFFIC_SAVING:Hr.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(un(N,x),Rl(!1)):(B.setPredefinedQualityLimits(N),Rl(c))},Ji=(c,x="as-default")=>{K({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),un(c?Hr.HIGH_QUALITY:Hr.UNKNOWN,x)},un=(c,x)=>{c!==Hr.UNKNOWN&&(Se(lo)&&!Se(sn)&&fo("auto",{appliesTo:x,changeReason:"limit-changed"}),Zn(c,x)),B.setPredefinedQualityLimits(c)},Zn=(c,x)=>{$c({type:c,videoId:i},x),x==="as-default"&&$c({type:c,videoId:i},"to-video")},Xn=c=>{ne.log("set playback rate",{playbackRate:c}),B.setPlaybackRate(c),se.features.saveRate&&ae&&!B.info.isLive$.getValue()&&Xg(c)},Tr=()=>{let c=Se(In),x=c.findIndex(({selected:le})=>le);if(x===c.length-1)return;let N=c[x+1];Xn(N.value)},Ir=()=>{let c=Se(In),x=c.findIndex(({selected:le})=>le);if(x===0)return;let N=c[x-1];Xn(N.value)},An=(c={...Di,selected:!1})=>{ne.log("set subtitles",{...c}),c&&c.value!==Di.value&&Ue.next(c.isAuto?c.value+"_auto":c.value),ji.set(c)},Mn=()=>{ne.log("toggle subtitles");let c=Se(Lo),x=Se(ji),N=Se(At);if((x==null?void 0:x.value)===Di.value){let le=c.filter(Re=>Re.value!==Di.value).find(Re=>Re.value===N)||c[1];An(le)}else An()},ko=(c,x,N=!0)=>{var le;if(K({message:`seek to time, time: ${c}`}),ne.log("seek to time",{time:c,action:x,forcePrecise:N}),Xe.next(x),B.info.isLive$.getValue()){let Re=B.info.duration$.getValue(),ft=Math.min(0,Re+c);B.seekTime(ft,N)}else{if(E!=null&&E.getValue())return;B.info.isEnded$.getValue()&&(K({message:"seek after ended, call callbacks.onPlay"}),(le=l==null?void 0:l.onPlay)==null||le.call(l)),B.seekTime(Rm(c),N)}},kr=c=>{K({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),ko(c,is.EPISODE,!0)},Ro=(c,x)=>{K({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:x});let N=Se(qi)*c;ko(N,x,!1)},cr=c=>{K({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),Xe.next(is.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-c:c)},Er=c=>{var le,Re;let x=(le=c.max)!=null?le:"none",N=(Re=c.min)!=null?Re:"none";K({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),ne.log("set auto quality limits",{max:x,min:N}),B.setAutoQualityLimits(c)},Pr=c=>{K({message:`seek external to episode start time: ${c}`}),ne.log("seek external to episode start time",{time:c}),ko(c,is.EPISODE,!0)},ur=c=>{K({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),B.setPlaybackRate(c)},Yi=de(void 0),pn=de(!1),Fr=c=>{K({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),pn.set(!0),pr(c)},pr=c=>{Yi.set(c)},st,Ht,Vi=()=>{Yi.set(void 0),pn.set(!1)},xe=()=>{clearTimeout(Ht),clearTimeout(st),st=window.setTimeout(()=>{Vi()},500),Ne==null||Ne.removeEventListener("seeked",xe)},kt=c=>{K({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),Ro(c,is.SLIDER),Se(Et.ui.isMobile)&&Se(Et.state.currentFormat$)===ad.HLS?(Ne==null||Ne.addEventListener("seeked",xe),Ht=window.setTimeout(()=>{xe()},300)):Vi()},mi=yi([Vt,qi,Yi],([c,x,N],le)=>{le($2(N)?N*x:c)}),hi=de(!1),Eo=()=>{hi.set(!0)},ci=()=>{hi.set(!1)},Ie=de({width:0,height:0}),Tt=yi([Ie],([{width:c}],x)=>{let N=Mh(c);x(N)}),ei=de(!1),Ii=F.filter(c=>Hg(c)),oi=yi([Tt,ei],([c,x])=>x?Ii.filter(N=>!N.hideOnMobile):Ii.filter(N=>{var le;return!((le=N.hideOnDesktopGridTypes)!=null&&le.includes(c))})),Ko=de(F.filter(c=>Fg(c))),fn=yi([Ko,Tt],([c,x])=>c.filter(N=>{var le;return!((le=N.hideOnDesktopGridTypes)!=null&&le.includes(x))})),Ar=yi([fn,oi],([c,x])=>[...se.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?x.map((N,le)=>{var Re;return{id:le,weight:le,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(Re=N.ariaLabel)!=null?Re:N.tooltip,tooltipText:N.tooltip}}):[]]),Ln=de(j),Ur=yi([Ln],([c])=>se.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),va=(c,x)=>{let N=Se(Ko).map(le=>le.id!==c?le:{...le,...x});Ko.set(N)},Cs=c=>{let x=Se(Ko);if(x.some(N=>N.id===c.id)){K({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Ko.set(x)},nl=c=>{let x=Se(Ko);if(!x.some(N=>N.id===c)){K({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Ko.set(x)},ga=c=>{Xe.next(is.LIVE),K({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),B.setLiveLowLatency(c)},rl=(c,x)=>{let N=Se(Ln).map(le=>le.id!==c?le:{...le,...x});Ln.set(N)},Ts=c=>{let x=Se(Ln);if(x.some(N=>N.id===c.id)){K({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Ln.set(x)},sl=c=>{let x=Se(Ln);if(!x.some(N=>N.id===c)){K({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Ln.set(x)},Jn=de(H),ha=yi([Jn],([c])=>se.features.additionalContextMenuItems?c:[]),Is=(c,x)=>{let N=Se(Jn).map(le=>le.id!==c?le:{...le,...x});Jn.set(N)},ht=c=>{let x=Se(Jn);if(x.some(N=>N.id===c.id)){K({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Jn.set(x)},gt=c=>{let x=Se(Jn);if(!x.some(N=>N.id===c)){K({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Jn.set(x)},eo=yi([ei,Kt],([c,x],N)=>{N(c&&x)}),No=()=>{Xe.next(is.LIVE),K({message:"switch to active live"}),ne.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==sd.PLAYING&&Et.actions.internal.togglePlay()},to=()=>{ne.log("skip adman"),ge.skip()},si=(c=!0)=>{Fn(Et),K({message:`switch from ads to video, callPlay: ${c}`}),ne.log("switch from ads to video",{callPlay:c}),_e.set("video"),c&&B.play()},Hi=()=>{Fn(Et),K({message:"switch from video to ads"}),ne.log("switch from video to ads"),Et.actions.internal.pause(),We(),_e.set("ads")},ss=c=>{Fn(Et);let x=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:x}),_e.set(x)},al=c=>{Fn(Et);let x=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:x}),_e.set(x)},Nd=c=>{Fn(Et);let x=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:x}),_e.set(x)},fu=()=>(Fn(Et),ne.log("get debug text data"),Bg(B,Le,Et)),Bd=()=>(Fn(Et),JSON.stringify(Ae.getFinishedSpans())),mu=()=>(Fn(Et),Dg(B,Le,Et)),ks=()=>Ne,Dd=()=>{K({message:"toggle chromecast"}),ne.log("toggle chromecast"),B.toggleChromecast()},ll=c=>{var N;if(Fn(Et),B.info.isEnded$.getValue())return;let x=!c;if(Se(Et.playerPhase)==="ads"){K({message:`pause ads, internalCall: ${x}`}),ne.log("pause ads",{internalCall:x}),ge.pause();return}K({message:`pause video, internalCall: ${x}`}),ne.log("pause video",{internalCall:x}),x&&((N=l==null?void 0:l.onPause)==null||N.call(l)),B.pause()},Od=c=>{var N;Fn(Et);let x=!c;if(Se(Et.playerPhase)==="ads"){K({message:`play ads, internalCall: ${x}`}),ne.log("play ads",{internalCall:x}),ge.play();return}K({message:`play video, internalCall: ${x}`}),ne.log("play video",{internalCall:x}),x&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),B.play()},Hd=c=>{Fn(Et);let x=!c;if(Se(Et.playerPhase)==="ads"){K({message:"player cannot be stopped during ads via external method"});return}K({message:`player will be stopped, internalCall: ${x}`}),A==null||A()},Fd=(c,x)=>{Fn(Et),K({message:`first start, show ads: ${c}, internalCall: ${!x}`}),ne.log("first start",{showAds:c,external:x}),c?_e.set("ads"):(_e.set("video"),x?B.play():Et.actions.internal.togglePlay())},_a=()=>(K({message:"getting time codes"}),m),Ud=()=>{let c=_a();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue();return c.find(N=>N.time>x)},vu=c=>{let x=c;x||(x=Ud());let N=B.info.position$.getValue();ne.log("seek to next episode",{currentTime:N,...x}),x&&(K({message:"seek to next episode"}),ko(x.time,is.EPISODE,!0))},zd=()=>{let c=_a();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue(),N=c.findIndex(Re=>Re.time>x),le=N===-1?c.length-2:N-2;if(!(le<0))return c[le]},qe=c=>{let x=c;x||(x=zd());let N=B.info.position$.getValue();ne.log("seek to prev episode",{currentTime:N,...x}),x&&(K({message:"seek to prev episode"}),ko(x.time,is.EPISODE,!0))},ai=()=>(K({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",{...$}),$),Qo=async()=>{let c=te==null?void 0:te.isActive(),x="none";te!=null&&te.isActive()?(x="remove",await(te==null?void 0:te.remove())):(x="request",await(te==null?void 0:te.request())),ne.log("toggle picture in picture",{isActive:c,action:x})},Es=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),Je.update(x=>x+c)},mo=de([]);T==null||T.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[le,Re],subjects:ft}=c[N];N===0&&le!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:le/1e3,text:"",interactive:!0,completed:se.features.interactiveTimeOpenUri?!ft.length||ft.every(Nt=>Nt.isRemoved):!ft.length}),Re!==1/0&&x.push({time:Re/1e3,text:"",interactive:!1,completed:!0})}mo.set(x)});let k1=de(!1);E==null||E.subscribe(c=>{c&&Se(pn)&&Vi()});let Rm=c=>{if(!C)return c;let x=Se(mo),N=Se(qi),Re=Se(rn)/N,ft=x.find(Nt=>Nt.interactive&&!Nt.completed&&Nt.time>Re);return typeof(ft==null?void 0:ft.time)=="number"?Math.min(c,ft.time-.05):c},E1=()=>{Et.ui.episodes.panelOpened$.set(!1)},P1=()=>{ne.log("destroy store"),clearTimeout(Ht),clearTimeout(st),be.unsubscribe(),Jt.unsubscribe(),B.destroy(),ge.destroy(),fe==null||fe.destroy(),Ke==null||Ke.destroy(),_t.unsubscribe(),ut==null||ut.disconnect(),ut=null,we.destroy()},Et={interfaceLanguage$:At,isCyrillicRelatedInterface$:It,initVideo:Ye,videoId:i,isClip:o,playerPhase:re,vsid:Ve,state:{positionExact$:Vt,positionWithScrubbing$:mi,duration$:qi,playbackState$:yo,isPlaying$:xn,isLoaderVisible:Ho,bufferedProgress$:dn,isLive$:jt,canChangePlaybackSpeed$:ui,isActiveLive$:wn,isOldestAvailableLive$:Bi,isRewindableLive$:So,isEnded$:Y,muted$:pi,volume$:ni,trafficSavingEnabled$:ri,highQualityEnabled$:dt,autoQualityLimitingAvailable$:lo,availableVideoStreams$:wr,availableAudioStreams$:rr,videoStream$:Sn,audioStream$:zn,currentQuality$:sr,isAutoQualityEnabled$:sn,availableQualities$:Wn,currentPlaybackRate$:an,availablePlaybackRates$:In,currentSubtitle$:ji,availableTextTracks$:kn,availableSubtitlesList$:Lo,currentSubtitleCaptions$:ar,isAutoSubtitleCaptionVisible$:ln,chromecastState$:ii,chromecastDeviceName$:co,chromecastConnected$:Co,currentFormat$:yn,throughputEstimation$:Gi,videoBitrate$:xo,videoSize$:li,errorLog$:wt,crashed$:Kt,isAudioAvailable$:wo,isAudioDisabled:!!s,canDownload:se.features.download&&!!d,availableSources$:lr,hasMpegSources$:Wo,isInteractive:C,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!Se(mo).length,interactiveEpisodes$:mo,isInteractiveTime$:E?Xt(E):de(!1),isInteractiveExpectation$:k1,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,looped$:Ti,loadedMetadata$:de(!1),isAutoQualityAvailable$:zo},ui:{t:O,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:F.length?F.reduce(c=>[...c,de(void 0)],[]):[],disabledControls$:Oe},modals:{hotKeyMap:{show:de(!1),data:de({title:"",closeBtnText:"",groups:[]})}},isFullscreen:je,isFullscreenOpenedByKeyboard:it,rotateAlpha:Je,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:Ie,isMobile:ei,mobileNotReportControlHidden$:eo,mobileUnmuteButtonExpanded:de(!1),mobileUnmuteButtonVisible:de(!1),icon3DVideoVisible:de(!1),scrubbingInProgress:pn,volumeChangingInProgress:hi,is3DVideo:de(!1),currentGridType$:Tt,additionalButtonsDeprecated$:oi,additionalDesktopControlPanelRightButtons$:Ar,additionalSettingsMenuItems$:Ur,additionalContextMenuItems$:ha,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)},aboutToGoNextVideo:de(void 0),userActionsDisabled:de(!1)},ads:{position:de(0),duration:de(0),playbackState:de("inactive"),canSkip:de(!1),secondsToWatchBeforeSkip:de(0),postrollPassed:de(!1)},webApi:{pictureInPictureApi:te,annotationsApi:G},actions:{internal:{preload:Li,firstStart:c=>Fd(c,!1),play:()=>Od(!1),pause:()=>ll(!1),togglePlay:gi,toggleMuted:Qn,openSettingsMenu:Cr,closeSettingsMenu:dr,openSettingsSubMenu:cn,closeSettingsSubMenu:Gn,setVolume:di,startVolumeChanging:Eo,stopVolumeChanging:ci,setVideoStream:qn,setAudioStream:uo,setQuality:fo,setTrafficSavingEnabled:Xi,setHighQualityEnabled:Ji,setPlaybackRate:Xn,incrementPlaybackRate:Tr,decrementPlaybackRate:Ir,setSubtitle:An,toggleSubtitle:Mn,togglePictureInPicture:Qo,startScrubbing:Fr,progressScrubbing:pr,completeScrubbing:kt,toggleChromecast:Dd,switchToActiveLive:No,switchFromAdsToVideo:si,switchFromVideoToAds:Hi,skipAd:to,setLiveWaitingStart:ss,setLiveWaitingRecover:al,setLiveWaitingRecord:Nd,getDebugTextData:fu,getTraceTextData:Bd,getDebugPanelData:mu,getVideoElement:ks,seekTime:(c,x,N)=>ko(c,x,N),clearDelayedBufferingCheckTimeout:Zi,seekEpisodeStartTime:kr,seekToPercent:Ro,getNextEpisode:Ud,seekToNextEpisode:vu,getPrevEpisode:zd,seekToPrevEpisode:qe,startLogging:Ui,stopLogging:Ze,startCameraManualRotation:Gt,stopCameraManualRotation:wi,moveCameraFocusPX:Si,holdCamera:Mt,releaseCamera:$t,getVideoEpisodes:_a,getPreviewThumbsData:ai,downloadVideo:Pn,addLanguage:wp,setLanguage:Qt,nextMovie:Ge,videoRotate:Es,correctSeekTimeToInteractive:Rm,replayInteractive:P,setLooped:Yn,reportProblem:pt,setAutoplayNextEnabled:Ot,setTimerNextVideoRunning:Mi,prevVideoClick:Io,nextVideoClick:rt,nextVideoAnnouncementShow:fi,nextVideoAnnouncementClick:Oi,nextVideoAnnouncementAuto:po,nextVideoAnnouncementCancel:xi},external:{firstStart:c=>Fd(c,!0),play:()=>Od(!0),pause:()=>ll(!0),stop:()=>Hd(!0),seekTime:c=>cr(c),seekEpisodeStartTime:c=>Pr(c),setPlaybackRate:c=>ur(c),setAutoQualityLimits:c=>Er(c),setMuted:Vo,toggleSubtitle:Mn,setVolume:di,returnFocusToEpisodes:E1,updateAdditionalSettingsItem:rl,addAdditionalSettingsItem:Ts,removeAdditionalSettingsItem:sl,updateAdditionalContextItem:Is,addAdditionalContextItem:ht,removeAdditionalContextItem:gt,updateAdditionalButton:va,addAdditionalButton:Cs,removeAdditionalButton:nl,setLiveLowLatency:ga}},callbacks:l,setUiCallbacks:c=>{tt={...c}},getAdmanWrapper:()=>ge,getLogger:()=>ue,getPlayer:()=>B,destroy:P1};return Et};function sa(t,e,i,o){var $;let n=["interactiveTimeIndicator"],a=($=e[i])==null?void 0:$.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:m}=Ya(e[i],t||void 0);return{left:s?l:0,right:s?m:0,top:s?d:0,bottom:s?p:0,isDisplayed:s}}var Xa=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(sa(t,i,n,o))};var Gc=async(t,e,i)=>{await ho(),e&&i&&(i.focus(),t.set(!1))};var P2=ye('<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 $f(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=P2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),b(t,o)}function yf(t,e){z(e,!0);let[i,o]=Be(),n=()=>S(l,"$contextMenuVisible$",i),a=f(e,"disabled",3,!1),s=f(e,"ariaLabel",3,""),d=Ce(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,$=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,_=J(void 0);ze(()=>{r(_)&&bt(()=>{u.set(r(_))})});let w=E=>{let P=bs(E),A=Sh(r(_));$.set(A),p.set(P),l.set(!n())},y=()=>{m.set(!0)},C=()=>{m.set(!1)},T=v(()=>n()?"opened":"");Lt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:y,blur:C,get ariaExpanded(){return n()},get ref(){return r(_)},set ref(E){D(_,pe(E))},children:(E,P)=>{$f(E,{})},$$slots:{default:!0}}),q(),o()}var A2=t=>{t.stopPropagation()},M2=L("<div><!> <div></div> <div></div></div>"),L2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
|
|
228
|
+
}`};function uf(t,e){U(e,!0),W(t,H$);let i=f(e,"isMobile",3,!1),o=v(()=>e.iconState===Nh.CONNECTED),n=v(()=>e.iconState===Nh.CONNECTING);var a=De(),s=pe(a);{var d=p=>{var m=D$(),b=h(m),u=h(b),_=h(u);ye(),g(u);var w=M(u);ye(),g(b);var y=M(b),C=h(y),T=h(C);g(C),ye(),g(y),g(m),E(()=>{Be(_,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Be(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Be(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(p,m)},l=p=>{var m=O$();let b;var u=h(m),_=M(h(u),5);let w;g(u),g(m),E((y,C)=>{b=J(m,0,"svelte-8z1bf5",null,b,y),w=J(_,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(p,m)};R(s,p=>{i()?p(d):p(l,!1)})}$(t,a),z()}import{noop as U$}from"@vkontakte/videoplayer-shared/es2018";function od(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"click",3,U$),s=Te().ui.t,d=v(()=>e.state===F$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Lt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,p)=>{uf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var z$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),q$={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function pf(t,e){W(t,q$);let i=f(e,"active",3,!1),o=f(e,"pointer",3,!1),n=f(e,"translateXPx",3,0),a=f(e,"translateYPx",3,0),s=f(e,"leftOffset",3,0),d=f(e,"rightOffset",3,0),l=X(void 0),p=X(void 0);function m(C){if(!r(p))return 0;let{width:T}=r(p).getBoundingClientRect(),k=T/2;return C<k?k+s():C>e.containerWidth-k?e.containerWidth-k-d():C}let b=v(()=>m(n()));var u=z$(),_=h(u);let w;var y=h(_);ge(y,()=>{var C;return(C=e.children)!=null?C:ie}),g(_),pt(_,C=>D(p,C),()=>r(p)),g(u),pt(u,C=>D(l,C),()=>r(l)),E(C=>{nt(u,`transform: translate(${r(b)}px, ${a()}px);`),w=J(_,1,"tooltip svelte-5ygsa2",null,w,C),nt(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,u)}var Hc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Bh=t=>!!(Math.round(Math.abs(t)/90)%2),Dh=t=>Math.abs(t)/90%4===1;var W$=L('<div class="preview svelte-1wqg760"></div>'),K$=L('<div class="time svelte-1wqg760"> </div>'),Q$=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),G$={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 ff(t,e){U(e,!0),W(t,G$);let[i,o]=Re(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=f(e,"time",3,""),l=f(e,"isMobile",3,!1),p=f(e,"videoEpisodes",19,()=>[]),m=f(e,"progress",3,0),b=f(e,"duration",3,0),u=f(e,"isInteractive",3,!1),_=Te(),w=_.ui.rotateAlpha,y=_.ui.playerSize,C=X(0),T=X(0),k=X(""),P=X(0),A=X(0),I=X(0),V=X(0),q=v(()=>Hc(m(),b(),p())),Q=v(()=>Bh(n())),H=v(()=>Dh(n())),Y=v(de),ne=v(()=>(r(H)?1:-1)*(r(C)/2-r(T)/2)),Z=v(()=>r(ne)*-1);He(()=>{(me=>(D(C,fe(me.width)),D(T,fe(me.height))))(Le())}),He(()=>{(me=>(D(k,fe(me.imgSrc)),D(P,fe(me.imgWidth)),D(A,fe(me.imgHeight)),D(I,fe(me.imgOffsetX)),D(V,fe(me.imgOffsetY))))(Ae(m()))});function de(){var Oe;let me=l()?s.MOBILE:s.DESKTOP,{isVertical:j}=ce(),te=30;return(Oe=r(q))!=null&&Oe.text&&(te+=16),(j||r(Q))&&(te+=18,te+=50),Math.min(Math.max(a().height-te,0),me)}function ce(){let me=e.previewThumbsData.frameWidth,j=e.previewThumbsData.frameHeight,te=j>me;return{width:me,height:j,isHorizontal:!te,isVertical:te}}function Le(){let{height:me,isHorizontal:j,isVertical:te,width:Oe}=ce();return j&&(me=me/Oe*r(Y),Oe=r(Y)),te&&(Oe=Oe/me*r(Y),me=r(Y)),{width:Oe,height:me}}function Ae(me){let j;e.previewThumbsData.isUV?j=Math.floor(b()*me/e.previewThumbsData.frequency):j=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*me)));let te=Math.floor(j/e.previewThumbsData.countPerImage),Oe=Math.floor(j%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Ge=j%e.previewThumbsData.countPerRow,$e=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&te===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&($e=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&$e++);let we=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&te===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(we=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ve=r(C)*we,je=r(T)*$e,dt=-Ge*r(C),ct=-Oe*r(T);return{imgSrc:e.previewThumbsData.links[te],imgWidth:Ve,imgHeight:je,imgOffsetX:dt,imgOffsetY:ct}}var he=Q$();let se;var Me=h(he);{var oe=me=>{var j=W$();E(()=>nt(j,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(k)}); background-size: ${r(P)}px ${r(A)}px; background-position: ${r(I)}px ${r(V)}px;
|
|
229
|
+
transform: rotate(${n()}deg) ${r(Q)?`translate(${r(ne)}px, ${r(Z)}px)`:""};
|
|
230
|
+
`)),$(me,j)};R(Me,me=>{r(k)&&me(oe)})}var B=M(Me,2),be=h(B);{var le=me=>{var j=De(),te=pe(j);{var Oe=$e=>{var we=Nr();E(Ve=>ve(we,Ve),[()=>F("tooltip_episode_unfinished")]),$($e,we)},Ge=$e=>{var we=Nr();E(()=>ve(we,r(q).text||"")),$($e,we)};R(te,$e=>{u()&&r(q).completed===!1?$e(Oe):$e(Ge,!1)})}$(me,j)};R(be,me=>{r(q)&&me(le)})}g(B);var We=M(B,2);{var ee=me=>{var j=K$(),te=h(j,!0);g(j),E(()=>ve(te,d())),$(me,j)};R(We,me=>{u()||me(ee)})}g(he),E(me=>{se=J(he,1,"timeline-preview svelte-1wqg760",null,se,me),nt(he,`width: ${r(Q)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),$(t,he),z(),o()}var j$=L('<span class="time svelte-1jr6obn"> </span>'),Y$=L("<!> <!>",1),Z$={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 mf(t,e){var Qe,ut,Ye,et,tt;U(e,!0),W(t,Z$);let[i,o]=Re(),n=()=>S(ne,"$interactiveEpisodes$",i),a=()=>S(I,"$duration$",i),s=()=>S(A,"$position$",i),d=()=>S(ce,"$isInteractiveExpectation$",i),l=()=>S(de,"$isInteractiveTime$",i),p=()=>S(V,"$isLive$",i),m=()=>S(Q,"$isMobile",i),b=()=>S(q,"$isActiveLive$",i),u=()=>S(P,"$bufferedProgress$",i),_=()=>S(he,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),y=f(e,"withEpisodes",3,!0),C=f(e,"ref",15,void 0),T=Te(),k=qt(),P=T.state.bufferedProgress$,A=T.state.positionWithScrubbing$,I=T.state.duration$,V=T.state.isLive$,q=T.state.isActiveLive$,Q=T.ui.isMobile,H=k.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,Y=T.actions.internal.getPreviewThumbsData(),ne=T.state.interactiveEpisodes$,Z=T.state.isInteractive,de=T.state.isInteractiveTime$,ce=T.state.isInteractiveExpectation$,Le=T.actions.internal.correctSeekTimeToInteractive,Ae=(Qe=T.callbacks)==null?void 0:Qe.onDisabledTimelineClick,he=T.ui.controls.disabledControls$,se=(Ye=(ut=T.callbacks)==null?void 0:ut.uiInfo)==null?void 0:Ye.onTimelineMouseEnter,Me=(tt=(et=T.callbacks)==null?void 0:et.uiInfo)==null?void 0:tt.onTimelineMouseLeave,oe=T.ui.t,B=k.features.interactiveResponsiveUi,be=v(()=>Z?n():H),le=v(()=>Jo(a())),We=v(()=>Jo(s())),ee=v(()=>s()/a()),me=v(()=>d()||l()),j=X(!1),te=X(""),Oe=X(0),Ge=X(0),$e=X(0),we=v(()=>({containerWidth:r(Ge),translateXPx:r(Oe),translateYPx:Z&&Y?-36:-16,active:r(j)&&w()&&!r(me)&&!B,pointer:!k.features.timelinePreview||!Y||p()})),Ve=oe("aria_timeline"),je=v(()=>oe("aria_timeline_value",{position:r(We),duration:r(le)}));function dt(qe){return!Le||!Z?qe:Le(qe*a())/a()}function ct(qe){T.actions.internal.startScrubbing(dt(qe))}function rt(qe){l()||T.actions.internal.progressScrubbing(dt(qe))}function Ct(qe){T.actions.internal.completeScrubbing(dt(qe)),D(j,!1)}function _t(qe,gt,Ht){It(qe,gt,Ht),D(j,!0)}function Gt(qe,gt,Ht){It(qe,gt,Ht),D(j,!0)}function ni(){D(j,!1)}function It(qe,gt,Ht){D($e,fe(dt(qe))),D(Oe,fe(gt)),Ht&&D(Ge,fe(Ht)),D(te,fe(Vt(qe)))}function Vt(qe){let gt=Jo((p()?1-qe:qe)*a());return p()?`-${gt}`:gt}var O=Y$(),_e=pe(O);pf(_e,Jr(()=>r(we),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(qe,gt)=>{var Ht=De(),Xe=pe(Ht);{var Qt=Je=>{ff(Je,{get time(){return r(te)},get isMobile(){return m()},get videoEpisodes(){return r(be)},previewThumbsData:Y,get progress(){return r($e)},get duration(){return a()},isInteractive:Z})},ti=Je=>{var Zt=j$(),Ni=h(Zt,!0);g(Zt),E(()=>ve(Ni,r(te))),$(Je,Zt)};R(Xe,Je=>{k.features.timelinePreview&&Y&&!p()?Je(Qt):Je(ti,!1)})}$(qe,Ht)},$$slots:{default:!0}}));var re=M(_e,2);let Ne=v(()=>Math.round(r(ee)*100)),ze=v(()=>_().has("TIMELINE"));oa(re,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return m()},ariaLabel:Ve,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Ne)},get ariaValueText(){return r(je)},get loadedProgress(){return u()},get filledProgress(){return r(ee)},get handleProgress(){return r(ee)},get videoEpisodes(){return r(be)},onPointerDown:ct,onHandleMove:rt,onPointerMove:Gt,onPointerUp:Ct,onPointerEnter:_t,onPointerLeave:ni,onMouseEnter:se,onMouseLeave:Me,onDisabledClick:Ae,isInteractive:Z,get disabled(){return r(ze)},get hideHandel(){return l()},get ref(){return C()},set ref(qe){C(qe)}}),$(t,O),z(),o()}var X$={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 nd(t,e){U(e,!0),W(t,X$);let[i,o]=Re(),n=()=>S(l,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"duration",3,0),d=Te(),l=d.ui.isMobile,p=d.ui.t,m=v(()=>Jo(s())),b=v(()=>Jo(a())),u=v(()=>a()/s()),_=v(()=>p("aria_timeline_value",{position:r(b),duration:r(m)})),w=v(()=>Math.round(r(u)*100));oa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(_)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var J$=L("<div><!></div>"),e2=L("<div></div>"),t2={hash:"svelte-1h5wsmk",code:".timeline.svelte-1h5wsmk {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1h5wsmk {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1h5wsmk {padding:0;}.timeline-stub.svelte-1h5wsmk {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1h5wsmk {height:8px;}"};function na(t,e){U(e,!0),W(t,t2);let[i,o]=Re(),n=()=>S(_,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(y,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=f(e,"isAds",3,!1),p=f(e,"isHidden",3,!1),m=f(e,"needPadding",3,!0),b=f(e,"ref",15,void 0),u=Te(),_=u.state.isLive$,w=u.ads.duration,y=u.ads.position,C=u.ui.isMobile,T=v(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var k=De(),P=pe(k);{var A=V=>{var q=J$();let Q;var H=h(q);{var Y=Z=>{nd(Z,{get position(){return s()},get duration(){return d()}})},ne=Z=>{mf(Z,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return b()},set ref(de){b(de)}})};R(H,Z=>{l()?Z(Y):Z(ne,!1)})}g(q),E(Z=>Q=J(q,1,"timeline svelte-1h5wsmk",null,Q,Z),[()=>({withoutPadding:!m(),mobile:a()})]),$(V,q)},I=V=>{var q=e2();let Q;E(H=>Q=J(q,1,"timeline-stub svelte-1h5wsmk",null,Q,H),[()=>({mobile:a()})]),$(V,q)};R(P,V=>{r(T)?V(A):V(I,!1)})}$(t,k),z(),o()}import{noop as n2}from"@vkontakte/videoplayer-shared/es2018";var i2=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function vf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=i2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(3),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i})),$(t,o)}var o2=xe('<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 gf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=o2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),$(t,o)}var r2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),s2=L('<span class="text svelte-1yhs2ga"> </span>'),a2=L('<span class="text count svelte-1yhs2ga"> </span>'),l2=L("<!> <!>",1),d2={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 rd(t,e){var ce,Le,Ae;U(e,!0),W(t,d2);let[i,o]=Re(),n=()=>S(w,"$currentGridType$",i),a=()=>S(y,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=f(e,"position",3,0),p=f(e,"duration",3,0),m=f(e,"timeCodes",19,()=>[]),b=Te(),u=(Le=(ce=b.callbacks)==null?void 0:ce.onEpisodeChanged)!=null?Le:n2,_=!!((Ae=b.callbacks)!=null&&Ae.onEpisodeClicked),w=b.ui.currentGridType$,y=b.ui.episodes.openedByKeyboard$,C=b.ui.episodes.panelOpened$,T=b.ui.isMobile,k=b.ui.t,P=X(void 0),A=he=>{var Me,oe,B;if(!!((Me=b.callbacks)!=null&&Me.onEpisodeClicked)){let be=bs(he);y.set(be),C.set(!0),(B=(oe=b.callbacks)==null?void 0:oe.onEpisodeClicked)==null||B.call(oe,be)}},I=X(null),V=v(()=>l()/p());He(()=>{var se;let he=Hc(r(V),p(),m());he?((se=r(I))==null?void 0:se.time)!==he.time&&(u(he),D(I,fe(he))):D(I,null)});let q=v(()=>{var he;return((he=r(I))==null?void 0:he.text)||""}),Q=v(()=>Gi(n(),"xl")?"FULL":Gi(n(),"m")&&Vh(n(),"xl")?"COUNT":"SHORT"),H=v(()=>`${k("tooltip_episodes")}: ${r(q)}`),Y=async(he,se,Me)=>{await go(),(he==null?void 0:he.getAttribute("aria-expanded"))==="false"&&se&&!Me&&yt(()=>{y.set(!1),he.focus()})};He(()=>{Y(r(P),a(),s())});var ne=De(),Z=pe(ne);{var de=he=>{let se=v(()=>d()?"px-0":"");Lt(he,{get className(){var Me;return`w-max btn-full-opacity btn-jc-l ${(Me=r(se))!=null?Me:""}`},testId:"btn-episodes",click:A,disabled:!_,get ariaExpanded(){return s()},get ariaLabel(){return r(H)},get ref(){return r(P)},set ref(Me){D(P,fe(Me))},children:(Me,oe)=>{var B=De(),be=pe(B);{var le=ee=>{var me=r2(),j=pe(me),te=h(j,!0);g(j);var Oe=M(j,2),Ge=h(Oe);gf(Ge,{}),g(Oe),E(()=>ve(te,r(q))),$(ee,me)},We=ee=>{var me=l2(),j=pe(me);vf(j,{});var te=M(j,2);{var Oe=$e=>{var we=s2(),Ve=h(we,!0);g(we),E(()=>ve(Ve,r(q))),$($e,we)},Ge=($e,we)=>{{var Ve=je=>{var dt=a2(),ct=h(dt,!0);g(dt),E(()=>ve(ct,m().length)),$(je,dt)};R($e,je=>{r(Q)==="COUNT"&&je(Ve)},we)}};R(te,$e=>{r(Q)==="FULL"?$e(Oe):$e(Ge,!1)})}$(ee,me)};R(be,ee=>{d()?ee(le):ee(We,!1)})}$(Me,B)},$$slots:{default:!0}})};R(Z,he=>{r(I)&&he(de)})}$(t,ne),z(),o()}import{debounceFn as dy}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as h2,PlaybackState as sd,Player as _2,PredefinedQualityLimits as Fr,VideoFormat as ad,clientChecker as b2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Mn,getHighestQuality as $2,InterfaceLanguage as y2,isInvariantQuality as x2,isNonNullable as w2,loadVKLangPack as S2,Logger as C2,map as Wh,merge as T2,Observable as I2,Subject as Gc,Subscription as xf,TracerFactory as k2,ValueSubject as E2,VideoQuality as P2,devNull as A2,now as M2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as os}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as c2,devNull as jt,now as Yt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as u2,Subject as Do,clearVideoElement as p2}from"@vkontakte/videoplayer-shared/es2018";var Oh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var f2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Fc=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 Do,loadStarted$:new Do,loadEnded$:new Do,loadError$:new Do,ready$:new Do,slotRequested$:new Do,started$:new Do,timeRemained$:new Do,paused$:new Do,resumed$:new Do,ended$:new Do,empty$:new Do,skipped$:new Do,clicked$:new Do,closed$:new Do,error$:new Do};this.loadAdman=e=>(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Yt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Yt()]}),o())};u2(f2,e,this.loadTimeout).then(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Yt()]}),window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Yt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Yt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Yt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Yt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Yt()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Yt()]}),!d&&(window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Yt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Yt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Yt(),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"}),Ce(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Yt()]}),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;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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")=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Yt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Yt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Yt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:p={},duration:m,previewParam:b}=e,u,_=this.playerState&&Ce(this.playerState.vsid);_&&(this.isVsidOriginal?u=_:u=parseInt(_,36));let{isEmbed:w,immediateOrigin:y}=c2(),C=(P=w?y:window.location.href)!=null?P:window.location.href,T={...p,dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:b,...u?{request_id:u}:{},duration:m,puid10:Oh(i,o),puid11:n?0:1};b||delete T.preview;let k={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let A=new window.AdmanHTML;A.setDebug(!1),A.onReady(this.onAdsReady),A.onStarted(this.onAdStarted),A.onPlayed(this.onAdPlayed),A.onPaused(this.onAdPaused),A.adMidrollPoint(this.onAdMidrollPoint),A.onClosed(this.onAdClosed),A.onSkipped(this.onAdSkipped),A.onClicked(this.onAdClicked),A.onTimeRemained(this.onAdTimeRemained),A.onCompleted(this.onAdCompleted),A.onError(this.onAdError),A.init(k),this.adman=A,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(A){jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[Yt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Yt()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.adsState){this.log({message:"toggle play"});let i=Ce(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(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Yt()]}),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(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,p,m,b,u;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Yt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),(b=this.adman)==null||b.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&p2(this.videoElement),this.isDestroyed=!0}};var Hh=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 hf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let a of n){let s={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!s.startTime&&!s.endTime){let p=new Uc,{startTime:m,endTime:b}=p.parse(l);s.startTime=m,s.endTime=b}else if(l.trim()!==""){let p=new _f,{texts:m}=p.parse(l);s.texts=[...s.texts,...m]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Uc=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let a=Number(e)*60*60,s=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+s+d+l}},_f=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let d=0,l=[];for(;d<s.length;){let p=["<",">"].reduce((m,b)=>{let u=s.indexOf(b,d);return m===-1||m>u?u:m},-1);if(p===-1){l.push(s.substring(d));break}l.push(s.substring(d,p)),d=p+1}return l}}),a=new Uc;for(let s of n)a.isTime(s)?i.texts.push({type:"timestamp",value:a.parseTime(s)}):i.texts.push({type:"text",value:s});return i}},Fh=hf;import{isNonNullable as bf}from"@vkontakte/videoplayer-shared/es2018";var ra,Ei,$f=0,yf=!1,Uh="",zh=(t,e=0,i=0)=>t<e&&t<i,zc=(t,e=0,i=0)=>t>=e&&t<=i,m2=(t,e=0,i=0)=>t>e&&t>i,qh=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:m})=>zc(t,p,m));let a=t>=$f,s=t<$f;if($f=t,s&&(yf=!1),bf(ra)&&zc(t,ra.startTime,ra.endTime)&&Uh===e.value)return ra;if(!bf(Ei)&&(n!=null&&n.length)&&!yf){Ei=n.find(({startTime:p,endTime:m})=>zc(t,p,m)||a&&zh(t,p,m)),ra=void 0,!bf(Ei)&&n[n.length-1].endTime<t&&(yf=!0);return}else{if(zc(t,Ei==null?void 0:Ei.startTime,Ei==null?void 0:Ei.endTime))return ra=Ei,Ei=void 0,Uh=e.value,ra;(a&&m2(t,Ei==null?void 0:Ei.startTime,Ei==null?void 0:Ei.endTime)||s&&zh(t,Ei==null?void 0:Ei.startTime,Ei==null?void 0:Ei.endTime))&&(Ei=void 0)}};var qc={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"},v2={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"},Wc=t=>{var e,i;return(i=(e=qc[t])!=null?e:qc[v2[t]])!=null?i:void 0};import{Subscription as g2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Kc=class{constructor(e,i=new g2){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Qc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Qc||{});var Hr=t=>t!=null?t:0,is=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(Hr(i==null?void 0:i.top)-Hr(o==null?void 0:o.top)),left:Math.round(Hr(i==null?void 0:i.left)-Hr(o==null?void 0:o.left)),bottom:Math.round(Hr(i==null?void 0:i.bottom)-Hr(o==null?void 0:o.top)),right:Math.round(Hr(i==null?void 0:i.right)-Hr(o==null?void 0:o.left))}},Ja=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Hr(e==null?void 0:e.width),height:Hr(e==null?void 0:e.height)}};var Kh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:m,previewThumbsData:b,uiConfig:u,coreConfig:_,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:k,replayInteractive:P,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,additionalButtons:q,additionalSettingsMenuItems:Q,additionalContextMenuItems:H,playPrevVideo:Y,playNextVideo:ne,looped:Z=!1,statistics:de,saveRate:ce,internalsExposure:Le,playerView:Ae})=>{var Om,Hm,Fm;let he={..._,configName:[...(Om=_.configName)!=null?Om:[],"ui"],isAudioDisabled:s,live:{...(Hm=_.live)!=null?Hm:{},isLiveCatchUpMode:!!n}},se=u,Me=k2.createRootTracer(se.features.tracer),oe=Me.createComponentTracer("Store"),B=w||new _2(he,Me);Le==null||Le.expose({corePlayer:B});let be=new C2,le=new Fc(be,{loadTimeout:se.ads.loadTimeout,initTimeout:se.ads.initTimeout,runtimeTimeout:se.ads.runtimeTimeout,useAdmanFromNPM:se.ads.useAdmanFromNPM,volumeMultiplier:se.ads.volumeMultiplier,isVsidOriginal:se.ads.isVsidOriginal}),We=Gs.getInstance(),ee=p==null?void 0:p.pictureInPictureApi,me=p==null?void 0:p.annotationsApi,j=p==null?void 0:p.slotsApi,te=be.createComponentLog("Store"),Oe,Ge,$e={},we=new _c,Ve=de?ei(de.oneStat.vsid$):Xn(void 0),je=ae(gs()),dt=ae(!1),ct=(Fm=ee==null?void 0:ee.info.isActive$)!=null?Fm:new E2(!1),rt=ae(0),Ct=ae([]),_t=T2(B.events.fatalError$,B.events.managedError$).subscribe(c=>Ct.update(x=>[...x,c])),Gt=Xn(!1,c=>{let x=B.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ni=async c=>{var ue;let x=Object.values(y2).includes(c);if(se.downloadVKLanguages&&(x&&se.updateBuiltinLanguages||!Ip(c))){let Ue;try{Ue=await S2(c,Pg,Ag)}catch(wt){(ue=de==null?void 0:de.oneStat)==null||ue.logError({errorType:"VKLangPack",fatal:!1}),We==null||We.report(wt,{errorType:"VKLangPack",fatal:!1})}Ue&&(Tp({language:c,pack:Ue,fallback:se.defaultLanguage}),It.set(c))}Ip(c)&&It.set(c)},It=ae(t),Vt=ae(e);ni(t);let O=(c,x)=>{let N=Ce(It);return kp(N,c,x,se.defaultLanguage)},_e=ae("thumb"),re=(()=>{let c=xi([Gt,_e],([x,N])=>x?"crashed":N);return{...c,is:x=>Ce(c)===x}})(),Ne=(()=>{let c=ae(new Set(y));return{...c,add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let ue=[...N];return new Set(Array.isArray(x)?ue.filter(Ue=>!x.includes(Ue)):ue.filter(Ue=>Ue!==x))})},includes:x=>{let N=Ce(c);return Array.isArray(x)?x.every(ue=>N.has(ue)):N.has(x)}}})();oe.log("create store"),te({message:"create store"});let ze=c=>{let x=c.container;x.append(B.experimental.element$.getValue()),gt=new MutationObserver(N=>{let{removedNodes:ue}=N[0];ue.length&&x.append(B.experimental.element$.getValue())}),gt.observe(x,{childList:!0})},Qe=c=>{te({message:`init video, config: ${JSON.stringify(c)}`}),C?ze(c):(A2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[M2()]}),B.initVideo(c)),oe.log("init video",{isInteractive:C}),c.subtitles&&B.setExternalTextTracks(c.subtitles),Oe=c},ut=new Gc,Ye=c=>ut.next(c),et=new Gc,tt=new Gc,qe=new Gc,gt=null,Ht={actionRewind$:et,actionSeek$:tt,inPiP$:ct,inFullscreen$:new I2(c=>je.subscribe(x=>c.next(x))),actionSetSubtitle$:qe,nextMovie$:ut};if(de){let{oneStat:c,statSubscription:x}=de;C||x.add(c.attachTo(B)),x.add(c.attachToUi(Ht)),x.add(c.attachToAds(le.events)),c.authorize(a).catch(N=>{te({message:`onestat auth error ${String(N)}`})})}if(We){let c=new xf,x=(N,ue)=>c.add(N.subscribe(ue));if(x(B.events.managedError$,N=>{We.logIError(N)}),x(B.events.fatalError$,N=>{We.logIError(N,!0)}),de){let{oneStat:N}=de;x(N.experimental.error$,ue=>{We.logIError(ue)})}We.sentrySubscription.add(c)}let Xe=()=>{b2.device.isIOS&&Ge&&mh(Ge).catch(c=>{te({message:`exitIosSafariFullscreen failed: ${c}`})})},Qt=new xf().add(B.experimental.element$.subscribe(c=>{c&&(Ge=c,c.classList.add("player-media"),Ys(ee)&&(ee.updateVideoElement(),ee.registryEventHandlers()),C&&c.setAttribute("pip","false"),Ae==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(B.events.ended$.subscribe(()=>{var c;Xe(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(B.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(B.events.started$.subscribe(async()=>{var x,N;Ys(ee)&&await(ee==null?void 0:ee.revealPictureInPicture());let c=B.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=$e.onStarted)==null||N.call($e,c)})).add(B.events.willSeek$.subscribe(({from:c,to:x})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,x)})).add(B.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(B.info.position$.subscribe(c=>{var N;let x=B.info.duration$.getValue();isFinite(x)&&x>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,x,c),le.setPosition(c,x))})).add(B.events.fatalError$.subscribe(c=>{var x;(x=l==null?void 0:l.onCrashed)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=l==null?void 0:l.onRecoverableError)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.loadedMetadata$.subscribe(()=>{kt.state.loadedMetadata$.set(!0)})).add(B.info.is3DVideo$.subscribe(c=>{kt.ui.is3DVideo.set(c)})).add(B.info.isEnded$.subscribe(c=>{C&&(c?(k!=null&&k.getValue()&&Ne.add(Vl),Ne.add("PLAY_BUTTON")):Ne.remove("PLAY_BUTTON"))})).add(B.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(B.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(B.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(le.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(le.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(le.events.loadError$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(le.events.init$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(le.events.ready$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(le.events.started$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:N.call(x,c)})).add(le.events.timeRemained$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:N.call(x,c)})).add(le.events.ended$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:N.call(x,c)})).add(le.events.empty$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(le.events.clicked$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:N.call(x,c)})).add(le.events.closed$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:N.call(x,c)})).add(le.events.error$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:N.call(x,c)})).add(le.events.paused$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(le.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)})),ti=new xf,Je=()=>{var wt,Bt,Wt;let{debugLog:c}=se,x,N="#9df7b7",ue="#efd169";if(c&&c!==!0){let{colors:Dt}=c;x=c.tag,N=(wt=Dt==null?void 0:Dt[0])!=null?wt:N,ue=(Wt=(Bt=Dt==null?void 0:Dt[1])!=null?Bt:Dt==null?void 0:Dt[0])!=null?Wt:ue}let Ue=x?`: ${x}`:"";ti.add(B.events.log$.subscribe(Dt=>{console.debug(`%c sdk${Ue} `,`background:${N};`,`sdk component: ${Dt.component}`,Dt.message)})).add(be.log$.subscribe(Dt=>{console.debug(`%c ui${Ue} `,`background:${ue};`,`ui component: ${Dt.component}.`,Dt.message)}))},Zt=()=>{ti.unsubscribe()},Ni=(c,x)=>{oe.log("start camera manual rotation",{mx:c,my:x}),B.startCameraManualRotation(c,x)},zi=(c=!1)=>{oe.log("stop camera manual rotation",{immediate:c}),B.stopCameraManualRotation(c)},At=(c,x,N)=>{oe.log("move camera focus px",{xpx:c,ypx:x,dt:N}),B.moveCameraFocusPX(c,x,N)},ht=()=>{B.holdCamera()},Rt=()=>{B.releaseCamera()},co=Xn(B.info.position$.getValue(),c=>{let x,N,ue=()=>{let Ue=B.info.playbackState$.getValue(),wt=B.info.isLive$.getValue(),Bt=B.info.duration$.getValue(),Wt=B.info.position$.getValue();if(Ue&&[sd.PLAYING,sd.PAUSED].includes(Ue)){let Dt=wt?Wt-Bt:B.getExactTime();Dt!==N&&c(Dt),N=Dt}x=requestAnimationFrame(ue)};return ue(),()=>cancelAnimationFrame(x)}),en=ei(B.info.playbackState$),hn=ei(B.info.currentBuffer$),$o=ei(B.info.isEnded$),G=ei(B.info.isLive$),Xt=se.features.playbackRate?ei(B.info.canChangePlaybackSpeed$):Xn(!1),ri=ei(B.info.liveBufferTime$),Bi=ei(B.info.volume$),li=ei(B.info.muted$),ft=bc(B.info.predefinedQualityLimitType$.pipe(Wh(c=>c===Fr.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===Fr.TRAFFIC_SAVING),ui=bc(B.info.predefinedQualityLimitType$.pipe(Wh(c=>c===Fr.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===Fr.HIGH_QUALITY),Ze=ei(B.info.autoQualityLimitingAvailable$),Mt=ei(B.info.availableQualities$),eo=ei(B.info.availableQualitiesFps$),ii=ei(B.info.chromecastState$),er=ei(B.info.chromecastDeviceName$),yo=ei(B.info.currentFormat$),Ho=ei(B.info.throughputEstimation$),di=ei(B.info.videoBitrate$),xt=ei(B.info.intrinsicVideoSize$),Ci=ei(B.info.duration$),Eo=ei(B.info.isAudioAvailable$),pi=null,Po=B.info.isBuffering$,qi=Xn(Po.getValue(),c=>{let x=Po.subscribe(N=>{N&&pi===null?pi=window.setTimeout(()=>{c(Po.getValue()),pi=null},se.loaderDelay):c(N)});return()=>{x.unsubscribe(),pi&&clearTimeout(pi)}}),xo=()=>{pi&&clearTimeout(pi),pi=null},wo=xi([Ci,G],([c,x])=>x?-c:c),Vn=xi([en],([c])=>c===sd.PLAYING),So=ei(B.info.atLiveEdge$),_n=ei(B.info.atLiveDurationEdge$),ji=ei(B.info.position$),Ao=xi([ji,Ci],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),tn=xi([ii],([c])=>c===h2.CONNECTED),wr=ei(B.info.availableVideoStreams$),tr=se.features.audioLanguages?ei(B.info.availableAudioStreams$):Xn([]),Rn=ei(B.info.currentVideoStream$),bn=ei(B.info.currentAudioStream$),Nn=c=>{c.language&&Cp(c.language),B.setVideoStream(c)},ir=c=>{c.language&&Cp(c.language),B.setAudioStream(c)},to=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ue=>"isDefault"in ue&&ue.isDefault)),x)return x;let N=eh();return N&&(x=c.find(({language:ue})=>N===ue)),x!=null||(x=c.at(0)),x},Mo=!1;Qt.add(B.info.availableAudioStreams$.subscribe(c=>{if(!Mo&&c.length){let x=to(c);x&&(B.setAudioStream(x),Mo=!0)}}));let $n=!1;Qt.add(B.info.availableVideoStreams$.subscribe(c=>{if(!$n&&c.length){let x=to(c);x&&(B.setVideoStream(x),$n=!0)}}));let it=ae(void 0),yn=ei(B.info.isAutoQualityEnabled$,c=>c&&it.set(void 0)),Bn=ei(B.info.currentQuality$,()=>it.set(void 0)),on=xi([it,Bn],([c,x])=>c!=null?c:x),or=xi(yo,c=>c!==ad.MPEG),nn=xi([Mt,eo,yn,on,or],([c,x,N,ue,Ue])=>{let wt=[];Ue&&wt.push({value:"auto",displayValue:O("auto_quality_option"),selected:N});let Bt=c.filter(Wt=>!x2(Wt));for(let Wt of Bt){let Dt=x[Wt];wt.push({value:Wt,displayValue:`${Wt}${Dt?Hh(Dt):""}`,selected:N?!1:Wt===ue})}return wt}),rn=ei(B.info.currentPlaybackRate$),sn=xi([rn,So,_n],([c,x,N])=>{let ue=N||C?1:se.controls.playbackRateMin,Ue=x?1:se.controls.playbackRateMax,wt=se.controls.playbackRateStep,Bt=[];for(let Wt=ue;Wt<=Ue;Wt+=wt)Bt.push({value:Wt,displayValue:Wt===1?O("playback_rate_1"):O("playback_rate",{multiplier:Wt.toString(10)}),selected:c===Wt});return Bt}),Yi={displayValue:O("subtitles_off"),value:"off"},Wi=ae({...Yi}),an=se.features.subtitles?ei(B.info.availableTextTracks$):Xn([]),Dn=Wg(),Fo=xi([an,Wi],([c,x],N)=>{var wt;let ue=[],Ue=c.find(({id:Bt})=>Bt===x.value);if(Ue!=null&&Ue.url){let[,Bt]=(wt=Dn.find(Ue.url))!=null?wt:[];if(Bt){N(Bt);return}we.download(Ue.url).then(Wt=>{if(!Wt||we.isDestroyed())return;let Dt=new Fh,as=Ue.language;if(as){let V1=!!Ue.isAuto,R1=Dt.parse(Wt,as);ue.push({lang:as,subtitles:R1,isAuto:V1,id:Ue.id})}Dn.add(Ue.url,ue),Ce(Wi).value===x.value&&N(ue)}).catch(Wt=>{var Dt;(Dt=de==null?void 0:de.oneStat)==null||Dt.logError({errorType:"Subtitles download",fatal:!1}),We==null||We.report(Wt,{errorType:"Subtitles download",fatal:!1})})}N(ue)}),ln=xi([rn,Vn,Wi],([c,x,N],ue)=>{let Bt;if(B.info.isLive$.getValue()&&x&&N.value!==Yi.value){let Dt=()=>{let as=1e3/(3*c);Bt=setTimeout(Dt,as),ue(Date.now())};return Dt(),()=>clearTimeout(Bt)}}),Lo=xi([an,Wi],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:ue,isAuto:Ue,id:wt}of c){let Bt=ue&&Wc(ue);ue&&Bt&&N.push({displayValue:Ue?O("subtitles_auto",{language:Bt}):Bt,value:wt,selected:(x==null?void 0:x.value)===wt,isAuto:Ue})}return N.length?(N.unshift({...Yi,selected:(x==null?void 0:x.value)===Yi.value}),N):[]}),uo={available:[],prev:[]},Di=()=>{var x,N;let c=B.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:Ge==null?void 0:Ge.currentTime)!=null?N:0},On=xi([co,Wi,Fo,ln],([c,x,N,ue])=>{var wt;let Ue=B.info.isLive$.getValue();if(Ue&&uo.prev!==N){let Bt=N.find(({id:Dt})=>Dt===x.value),Wt=uo.prev.find(({id:Dt})=>Dt===x.value);if(Bt){let Dt={...Bt,subtitles:[...(wt=Wt==null?void 0:Wt.subtitles)!=null?wt:[],...Bt.subtitles]};uo.available=[Dt],uo.prev=N}}if(x&&x.value!==Yi.value){let Bt=Ue?Di():c,Wt=Ue?uo.available:N;return qh(Bt,x,Wt,Ue)}}),io=xi([On],([c])=>c!=null&&c.texts?c.texts:[]);Qt.add(Wi.subscribe(c=>{var x,N;if(c.value===Yi.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let ue=Object.entries(qc).find(([Ue,wt])=>wt===c.displayValue);(N=l==null?void 0:l.onSubtitleOn)==null||N.call(l,ue?ue[0]:"")}}));let xn=ae(!0),Hn=xi([hn,wo,ji,ri],([c,x,N,ue])=>{var Wt;let Ue=(Wt=c==null?void 0:c.end)!=null?Wt:0;if(!ue)return Ue/x;let Bt=-N+ue-x;return(Ue-Bt)/x}),dn=ei(B.info.availableSources$),Sr=xi([dn],([c])=>Object.keys((c==null?void 0:c[ad.MPEG])||{}).length>0),Uo=()=>{var N,ue,Ue;let c=Object.keys(((ue=(N=B.info.availableSources$)==null?void 0:N.getValue())==null?void 0:ue[ad.MPEG])||{}),x=$2(c)||P2.Q_144P;return(Ue=Oe.sources[ad.MPEG])==null?void 0:Ue[x]},Cr=()=>{var x;let c=Uo();if(c)oe.log("download video",{url:c}),Ug(c,((x=Oe==null?void 0:Oe.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";oe.log("download video",{message:N}),te({message:N})}},Fn=()=>{te({message:"toggle muted"});let c=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!c?rr(Jt()):Ir(!c)},Un=()=>{var c;if(kt.ui.settingsMenu.visible$.set(!1),!Ce(kt.ui.settingsSubMenu.visible$)){let x=Ce(kt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ue=Ja(x),Ue={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ue,position:Ue,name:"settings"})}}oe.log("close settings menu")},nr=async(c,x=()=>Promise.resolve())=>{var Ue;kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),kt.ui.settingsMenu.visible$.set(!0),await x();let N=Ce(kt.ui.settingsMenu.ref$),ue=ks();if((Ue=l==null?void 0:l.uiInfo)!=null&&Ue.onSettingsMenu&&N&&ue){let Bt=Ja(N),Wt=is(N,ue);l.uiInfo.onSettingsMenu({visible:!0,size:Bt,position:Wt,name:"settings"})}oe.log("open settings menu",{wasOpenedByKeyboard:c})},Tr=(c,x=!1)=>{var wt;kt.ui.settingsSubMenu.visible$.set(!1);let N=Ce(kt.ui.settingsMenu.ref$),ue=ks(),Ue=Ce(kt.ui.settingsMenu.visible$);if((wt=l==null?void 0:l.uiInfo)!=null&&wt.onSettingsMenu&&N&&ue)if(Ue&&!x){let Wt=Ja(N),Dt=is(N,ue);l.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:Dt,name:"settings"})}else{let Wt=Ja(c),Dt={top:0,left:0,bottom:0,right:0},as=Ce(kt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Wt,position:Dt,name:as})}oe.log("close settings sub menu")},wn=(c,x)=>{var ue;kt.ui.settingsSubMenu.visible$.set(!0),kt.ui.settingsSubMenu.ref$.set(x),kt.ui.settingsSubMenu.name$.set(c);let N=ks();if((ue=l==null?void 0:l.uiInfo)!=null&&ue.onSettingsMenu&&x&&N){let wt=Ja(x),Bt=is(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:wt,position:Bt})}oe.log("open settings sub menu",{name:c})},Jt=()=>{var x;let c=Math.max(se.volumeMinRestore,(x=$c())!=null?x:0);return c===0?se.volumeDefault:c},rr=c=>{let x=c===0?Jt():c,N=B.info.muted$.getValue();te({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),N&&c>0&&!s&&(N=!1,wp(!1)),B.setVolume(c,N),le.setVolume(c),_p(x)},Ir=c=>{let x=B.info.volume$.getValue();if(te({message:`set muted, currentVolume: ${x}, mute: ${c}`}),B.setMuted(c),le.setVolume(c?0:x),wp(c),!c&&x===0){let N=Jt();B.setVolume(N),_p(N),le.setVolume(N)}},Vo=ae(!1),Ti=c=>{var x,N;oe.log("set looped",{isLooped:c}),Vo.set(c),B.setLooped(c),(N=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||N.call(x,c)};Ti(Z);let sr=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},mt=(c,x=!1)=>{var N;te({message:`set autoplayNextEnabled, value: ${c}`}),oe.log("set autoplay next enabled",{autoplayNextEnabled:c}),kt.ui.autoplayNextEnabled$.set(c),oh(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},Ft=c=>{te({message:`set timerNextVideoRunning, value: ${c}`}),oe.log("set timer next video running",{timerNextVideoRunning:c}),kt.ui.timerNextVideoRunning$.set(c)},Pi=(c=!0)=>{var ue;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(ue=l==null?void 0:l.onPrevVideoClick)==null?void 0:ue.call(l)}catch(Ue){te({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&ot("prev")||Y()},Co=(c=!0)=>{var ue;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(ue=l==null?void 0:l.onNextVideoClick)==null?void 0:ue.call(l)}catch(Ue){te({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&ot("next")||ne()},ot=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:ue}}=se;return N&&ue&&!x?(kt.ui.aboutToGoNextVideo.set(c),kt.ui.userActionsDisabled.set(!0),!0):!1},Nt=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},fi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Oi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},po=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},wi=()=>{B.prepare()},Ai=()=>{Mn(kt);let c=Ce(kt.ui.controls.disabledControls$),x=Ce(kt.playerPhase),N={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(te({message:"toggle play"}),x==="ads"){N.action="play",oe.log("toggle adman play",N),le.togglePlay();return}let ue=()=>{var wt;te({message:"toggle play, call player.play"}),N.action="play",B.play(),(wt=l==null?void 0:l.onPlay)==null||wt.call(l)},Ue=()=>{var wt;te({message:"toggle play, call player.pause"}),N.action="pause",B.pause(),(wt=l==null?void 0:l.onPause)==null||wt.call(l)};if(B.info.isEnded$.getValue()){if(te({message:"toggle play, video ended, seek to 0"}),et.next(),tt.next(os.REWIND),C){P==null||P();return}B.seekTime(0),ue()}else B.info.playbackState$.getValue()!==sd.PLAYING?ue():Ue();oe.log("toggle play",N)},vi=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{te({message:`set quality, quality: ${c}`}),oe.log("set quality",{quality:c}),B.setAutoQuality(c==="auto"),c!=="auto"?(se.features.qualityDetailsSubMenuEnabled?(yc({type:"exact_quality",quality:c,videoId:i},N),Nl(),B.setPredefinedQualityLimits(Fr.UNKNOWN)):bp(i,c),it.set(c),B.setQuality(c)):se.features.qualityDetailsSubMenuEnabled?x==="default"&&(ar("auto_quality",N),Ce(ft)&&hi(!1),Ce(ui)&&Hi(!1)):Nl()},hi=(c,x="as-default")=>{te({message:`set trafficSavingEnabled, value: ${c}`}),oe.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?Fr.TRAFFIC_SAVING:Fr.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(zn(N,x),Rl(!1)):(B.setPredefinedQualityLimits(N),Rl(c))},Hi=(c,x="as-default")=>{te({message:`set highQualityEnabled, value: ${c}`}),oe.log("set high quality enabled",{highQualityEnabled:c}),zn(c?Fr.HIGH_QUALITY:Fr.UNKNOWN,x)},zn=(c,x)=>{c!==Fr.UNKNOWN&&(Ce(Ze)&&!Ce(yn)&&vi("auto",{appliesTo:x,changeReason:"limit-changed"}),ar(c,x)),B.setPredefinedQualityLimits(c)},ar=(c,x)=>{yc({type:c,videoId:i},x),x==="as-default"&&yc({type:c,videoId:i},"to-video")},qn=c=>{oe.log("set playback rate",{playbackRate:c}),B.setPlaybackRate(c),se.features.saveRate&&ce&&!B.info.isLive$.getValue()&&th(c)},lr=()=>{let c=Ce(sn),x=c.findIndex(({selected:ue})=>ue);if(x===c.length-1)return;let N=c[x+1];qn(N.value)},dr=()=>{let c=Ce(sn),x=c.findIndex(({selected:ue})=>ue);if(x===0)return;let N=c[x-1];qn(N.value)},cr=(c={...Yi,selected:!1})=>{oe.log("set subtitles",{...c}),c&&c.value!==Yi.value&&qe.next(c.isAuto?c.value+"_auto":c.value),Wi.set(c)},ur=()=>{oe.log("toggle subtitles");let c=Ce(Lo),x=Ce(Wi),N=Ce(It);if((x==null?void 0:x.value)===Yi.value){let ue=c.filter(Ue=>Ue.value!==Yi.value).find(Ue=>Ue.value===N)||c[1];cr(ue)}else cr()},Wn=ae(!0),Kn=c=>{Wn.set(c)},Ro=(c,x,N=!0)=>{var ue;if(te({message:`seek to time, time: ${c}`}),oe.log("seek to time",{time:c,action:x,forcePrecise:N}),tt.next(x),B.info.isLive$.getValue()){let Ue=B.info.duration$.getValue(),wt=Math.min(0,Ue+c);B.seekTime(wt,N)}else{if(k!=null&&k.getValue())return;B.info.isEnded$.getValue()&&(te({message:"seek after ended, call callbacks.onPlay"}),(ue=l==null?void 0:l.onPlay)==null||ue.call(l)),B.seekTime(Dm(c),N)}},kr=c=>{te({message:`seek to episode start time: ${c}`}),oe.log("seek to episode start time",{time:c}),Ro(c,os.EPISODE,!0)},No=(c,x)=>{te({message:`seek to percent, percent: ${c}`}),oe.log("seek to percent",{percent:c,action:x});let N=Ce(wo)*c;Ro(N,x,!1)},pr=c=>{te({message:`seek external, time: ${c}`}),oe.log("seek external",{time:c}),tt.next(os.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-c:c)},Er=c=>{var ue,Ue;let x=(ue=c.max)!=null?ue:"none",N=(Ue=c.min)!=null?Ue:"none";te({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),oe.log("set auto quality limits",{max:x,min:N}),B.setAutoQualityLimits(c)},Pr=c=>{te({message:`seek external to episode start time: ${c}`}),oe.log("seek external to episode start time",{time:c}),Ro(c,os.EPISODE,!0)},Ar=c=>{te({message:`set playback rate to: ${c}`}),oe.log("set playback rate external",{playbackRate:c}),B.setPlaybackRate(c)},Zi=ae(void 0),Sn=ae(!1),Mr=c=>{te({message:`start scrubbing, progress: ${c}`}),oe.log("start scrubbing",{progress:c}),Sn.set(!0),at(c)},at=c=>{Zi.set(c)},Ut,Mi,To=()=>{Zi.set(void 0),Sn.set(!1)},Se=()=>{clearTimeout(Mi),clearTimeout(Ut),Ut=window.setTimeout(()=>{To()},500),Ge==null||Ge.removeEventListener("seeked",Se)},Pt=c=>{te({message:`complete scrubbing, progress: ${c}`}),oe.log("complete scrubbing",{progress:c}),No(c,os.SLIDER),Ce(kt.ui.isMobile)&&Ce(kt.state.currentFormat$)===ad.HLS?(Ge==null||Ge.addEventListener("seeked",Se),Mi=window.setTimeout(()=>{Se()},300)):To()},gi=xi([co,wo,Zi],([c,x,N],ue)=>{ue(w2(N)?N*x:c)}),_i=ae(!1),mi=()=>{_i.set(!0)},ke=()=>{_i.set(!1)},bt=ae({width:0,height:0}),Kt=xi([bt],([{width:c}],x)=>{let N=Rh(c);x(N)}),Si=ae(!1),si=q.filter(c=>zg(c)),Ur=xi([Kt,Si],([c,x])=>x?si.filter(N=>!N.hideOnMobile):si.filter(N=>{var ue;return!((ue=N.hideOnDesktopGridTypes)!=null&&ue.includes(c))})),Fi=ae(q.filter(c=>qg(c))),Qn=xi([Fi,Kt],([c,x])=>c.filter(N=>{var ue;return!((ue=N.hideOnDesktopGridTypes)!=null&&ue.includes(x))})),Cs=xi([Qn,Ur],([c,x])=>[...se.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?x.map((N,ue)=>{var Ue;return{id:ue,weight:ue,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(Ue=N.ariaLabel)!=null?Ue:N.tooltip,tooltipText:N.tooltip}}):[]]),Gn=ae(Q),va=xi([Gn],([c])=>se.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),sl=(c,x)=>{let N=Ce(Fi).map(ue=>ue.id!==c?ue:{...ue,...x});Fi.set(N)},ga=c=>{let x=Ce(Fi);if(x.some(N=>N.id===c.id)){te({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Fi.set(x)},ha=c=>{let x=Ce(Fi);if(!x.some(N=>N.id===c)){te({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Fi.set(x)},_a=c=>{tt.next(os.LIVE),te({message:"live switch to low latency "+c}),oe.log("live switch to low latency "+c),B.setLiveLowLatency(c)},al=(c,x)=>{let N=Ce(Gn).map(ue=>ue.id!==c?ue:{...ue,...x});Gn.set(N)},Ts=c=>{let x=Ce(Gn);if(x.some(N=>N.id===c.id)){te({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Gn.set(x)},ba=c=>{let x=Ce(Gn);if(!x.some(N=>N.id===c)){te({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Gn.set(x)},lt=ae(H),$t=xi([lt],([c])=>se.features.additionalContextMenuItems?c:[]),Xi=(c,x)=>{let N=Ce(lt).map(ue=>ue.id!==c?ue:{...ue,...x});lt.set(N)},zo=c=>{let x=Ce(lt);if(x.some(N=>N.id===c.id)){te({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),lt.set(x)},Ji=c=>{let x=Ce(lt);if(!x.some(N=>N.id===c)){te({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),lt.set(x)},ci=xi([Si,Gt],([c,x],N)=>{N(c&&x)}),Li=()=>{tt.next(os.LIVE),te({message:"switch to active live"}),oe.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==sd.PLAYING&&kt.actions.internal.togglePlay()},Is=()=>{oe.log("skip adman"),le.skip()},$a=(c=!0)=>{Mn(kt),te({message:`switch from ads to video, callPlay: ${c}`}),oe.log("switch from ads to video",{callPlay:c}),_e.set("video"),c&&B.play()},mu=()=>{Mn(kt),te({message:"switch from video to ads"}),oe.log("switch from video to ads"),kt.actions.internal.pause(),Xe(),_e.set("ads")},Nd=c=>{Mn(kt);let x=c?"LiveWaitingStart":"thumb";oe.log("set live waiting start",{state:c,playerPhase:x}),_e.set(x)},vu=c=>{Mn(kt);let x=c?"LiveWaitingRecover":"thumb";oe.log("set live waiting recover",{state:c,playerPhase:x}),_e.set(x)},Bd=c=>{Mn(kt);let x=c?"LiveWaitingRecord":"thumb";oe.log("set live waiting record",{state:c,playerPhase:x}),_e.set(x)},gu=()=>(Mn(kt),oe.log("get debug text data"),Hg(B,Oe,kt,Me.getTraceId())),Dd=()=>(Mn(kt),JSON.stringify(Me.getFinishedSpans())),hu=()=>(Mn(kt),Fg(B,Oe,kt)),ks=()=>Ge,Od=()=>{te({message:"toggle chromecast"}),oe.log("toggle chromecast"),B.toggleChromecast()},ll=c=>{var N;if(Mn(kt),B.info.isEnded$.getValue())return;let x=!c;if(Ce(kt.playerPhase)==="ads"){te({message:`pause ads, internalCall: ${x}`}),oe.log("pause ads",{internalCall:x}),le.pause();return}te({message:`pause video, internalCall: ${x}`}),oe.log("pause video",{internalCall:x}),x&&((N=l==null?void 0:l.onPause)==null||N.call(l)),B.pause()},Hd=c=>{var N;Mn(kt);let x=!c;if(Ce(kt.playerPhase)==="ads"){te({message:`play ads, internalCall: ${x}`}),oe.log("play ads",{internalCall:x}),le.play();return}te({message:`play video, internalCall: ${x}`}),oe.log("play video",{internalCall:x}),x&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),B.play()},Fd=c=>{Mn(kt);let x=!c;if(Ce(kt.playerPhase)==="ads"){te({message:"player cannot be stopped during ads via external method"});return}te({message:`player will be stopped, internalCall: ${x}`}),A==null||A()},Ud=(c,x)=>{Mn(kt),te({message:`first start, show ads: ${c}, internalCall: ${!x}`}),oe.log("first start",{showAds:c,external:x}),c?_e.set("ads"):(_e.set("video"),x?B.play():kt.actions.internal.togglePlay())},ya=()=>(te({message:"getting time codes"}),m),zd=()=>{let c=ya();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue();return c.find(N=>N.time>x)},_u=c=>{let x=c;x||(x=zd());let N=B.info.position$.getValue();oe.log("seek to next episode",{currentTime:N,...x}),x&&(te({message:"seek to next episode"}),Ro(x.time,os.EPISODE,!0))},qd=()=>{let c=ya();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue(),N=c.findIndex(Ue=>Ue.time>x),ue=N===-1?c.length-2:N-2;if(!(ue<0))return c[ue]},Fe=c=>{let x=c;x||(x=qd());let N=B.info.position$.getValue();oe.log("seek to prev episode",{currentTime:N,...x}),x&&(te({message:"seek to prev episode"}),Ro(x.time,os.EPISODE,!0))},ai=()=>(te({message:"getting preview thumbs data"}),oe.log("get preview thumbs data",{...b}),b),qo=async()=>{let c=ee==null?void 0:ee.isActive(),x="none";ee!=null&&ee.isActive()?(x="remove",await(ee==null?void 0:ee.remove())):(x="request",await(ee==null?void 0:ee.request())),oe.log("toggle picture in picture",{isActive:c,action:x})},Es=(c=-90)=>{oe.log("rotate video",{alphaDiff:c}),rt.update(x=>x+c)},fo=ae([]);T==null||T.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[ue,Ue],subjects:wt}=c[N];N===0&&ue!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ue/1e3,text:"",interactive:!0,completed:se.features.interactiveTimeOpenUri?!wt.length||wt.every(Bt=>Bt.isRemoved):!wt.length}),Ue!==1/0&&x.push({time:Ue/1e3,text:"",interactive:!1,completed:!0})}fo.set(x)});let A1=ae(!1);k==null||k.subscribe(c=>{c&&Ce(Sn)&&To()});let Dm=c=>{if(!C)return c;let x=Ce(fo),N=Ce(wo),Ue=Ce(ji)/N,wt=x.find(Bt=>Bt.interactive&&!Bt.completed&&Bt.time>Ue);return typeof(wt==null?void 0:wt.time)=="number"?Math.min(c,wt.time-.05):c},M1=()=>{kt.ui.episodes.panelOpened$.set(!1)},L1=()=>{oe.log("destroy store"),clearTimeout(Mi),clearTimeout(Ut),Qt.unsubscribe(),ti.unsubscribe(),B.destroy(),le.destroy(),de==null||de.destroy(),We==null||We.destroy(),_t.unsubscribe(),gt==null||gt.disconnect(),gt=null,we.destroy()},kt={interfaceLanguage$:It,isCyrillicRelatedInterface$:Vt,initVideo:Qe,videoId:i,isClip:o,playerPhase:re,vsid:Ve,state:{positionExact$:co,positionWithScrubbing$:gi,duration$:wo,playbackState$:en,isPlaying$:Vn,isLoaderVisible:qi,bufferedProgress$:Hn,isLive$:G,canChangePlaybackSpeed$:Xt,isActiveLive$:So,isOldestAvailableLive$:_n,isRewindableLive$:Ao,isEnded$:$o,muted$:li,volume$:Bi,trafficSavingEnabled$:ft,highQualityEnabled$:ui,autoQualityLimitingAvailable$:Ze,availableVideoStreams$:wr,availableAudioStreams$:tr,videoStream$:Rn,audioStream$:bn,currentQuality$:on,isAutoQualityEnabled$:yn,availableQualities$:nn,currentPlaybackRate$:rn,availablePlaybackRates$:sn,currentSubtitle$:Wi,availableTextTracks$:an,availableSubtitlesList$:Lo,currentSubtitleCaptions$:io,isAutoSubtitleCaptionVisible$:xn,chromecastState$:ii,chromecastDeviceName$:er,chromecastConnected$:tn,currentFormat$:yo,throughputEstimation$:Ho,videoBitrate$:di,videoSize$:xt,errorLog$:Ct,crashed$:Gt,isAudioAvailable$:Eo,isAudioDisabled:!!s,canDownload:se.features.download&&!!d,availableSources$:dn,hasMpegSources$:Sr,isInteractive:C,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!Ce(fo).length,interactiveEpisodes$:fo,isInteractiveTime$:k?ei(k):ae(!1),isInteractiveExpectation$:A1,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,looped$:Vo,loadedMetadata$:ae(!1),isAutoQualityAvailable$:or},ui:{t:O,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:q.length?q.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:Ne},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:je,isFullscreenOpenedByKeyboard:dt,rotateAlpha:rt,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:bt,isMobile:Si,mobileNotReportControlHidden$:ci,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:Sn,volumeChangingInProgress:_i,is3DVideo:ae(!1),currentGridType$:Kt,additionalButtonsDeprecated$:Ur,additionalDesktopControlPanelRightButtons$:Cs,additionalSettingsMenuItems$:va,additionalContextMenuItems$:$t,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},aboutToGoNextVideo:ae(void 0),userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1)},isControlsAvailable:ae(!0)},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ee,annotationsApi:me,slotsApi:j},actions:{internal:{preload:wi,firstStart:c=>Ud(c,!1),play:()=>Hd(!1),pause:()=>ll(!1),togglePlay:Ai,toggleMuted:Fn,openSettingsMenu:nr,closeSettingsMenu:Un,openSettingsSubMenu:wn,closeSettingsSubMenu:Tr,setVolume:rr,startVolumeChanging:mi,stopVolumeChanging:ke,setVideoStream:Nn,setAudioStream:ir,setQuality:vi,setTrafficSavingEnabled:hi,setHighQualityEnabled:Hi,setPlaybackRate:qn,incrementPlaybackRate:lr,decrementPlaybackRate:dr,setSubtitle:cr,toggleSubtitle:ur,togglePictureInPicture:qo,startScrubbing:Mr,progressScrubbing:at,completeScrubbing:Pt,toggleChromecast:Od,switchToActiveLive:Li,switchFromAdsToVideo:$a,switchFromVideoToAds:mu,skipAd:Is,setLiveWaitingStart:Nd,setLiveWaitingRecover:vu,setLiveWaitingRecord:Bd,getDebugTextData:gu,getTraceTextData:Dd,getDebugPanelData:hu,getVideoElement:ks,seekTime:(c,x,N)=>Ro(c,x,N),clearDelayedBufferingCheckTimeout:xo,seekEpisodeStartTime:kr,seekToPercent:No,getNextEpisode:zd,seekToNextEpisode:_u,getPrevEpisode:qd,seekToPrevEpisode:Fe,startLogging:Je,stopLogging:Zt,startCameraManualRotation:Ni,stopCameraManualRotation:zi,moveCameraFocusPX:At,holdCamera:ht,releaseCamera:Rt,getVideoEpisodes:ya,getPreviewThumbsData:ai,downloadVideo:Cr,addLanguage:Tp,setLanguage:ni,nextMovie:Ye,videoRotate:Es,correctSeekTimeToInteractive:Dm,replayInteractive:P,setLooped:Ti,reportProblem:sr,setAutoplayNextEnabled:mt,setTimerNextVideoRunning:Ft,prevVideoClick:Pi,nextVideoClick:Co,nextVideoAnnouncementShow:Nt,nextVideoAnnouncementClick:fi,nextVideoAnnouncementAuto:Oi,nextVideoAnnouncementCancel:po},external:{firstStart:c=>Ud(c,!0),play:()=>Hd(!0),pause:()=>ll(!0),stop:()=>Fd(!0),seekTime:c=>pr(c),seekEpisodeStartTime:c=>Pr(c),setPlaybackRate:c=>Ar(c),setAutoQualityLimits:c=>Er(c),setMuted:Ir,toggleSubtitle:ur,setVolume:rr,returnFocusToEpisodes:M1,updateAdditionalSettingsItem:al,addAdditionalSettingsItem:Ts,removeAdditionalSettingsItem:ba,updateAdditionalContextItem:Xi,addAdditionalContextItem:zo,removeAdditionalContextItem:Ji,updateAdditionalButton:sl,addAdditionalButton:ga,removeAdditionalButton:ha,setLiveLowLatency:_a,hideControls:()=>Kn(!1),showControls:()=>Kn(!0)}},callbacks:l,setUiCallbacks:c=>{$e={...c}},getAdmanWrapper:()=>le,getLogger:()=>be,getPlayer:()=>B,destroy:L1};return kt};function sa(t,e,i,o){var b;let n=["interactiveTimeIndicator"],a=(b=e[i])==null?void 0:b.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:m}=is(e[i],t||void 0);return{left:s?l:0,right:s?m:0,top:s?d:0,bottom:s?p:0,isDisplayed:s}}var el=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(sa(t,i,n,o))};var jc=async(t,e,i)=>{await go(),e&&i&&(i.focus(),t.set(!1))};var L2=xe('<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 wf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=L2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),$(t,o)}function Sf(t,e){U(e,!0);let[i,o]=Re(),n=()=>S(l,"$contextMenuVisible$",i),a=f(e,"disabled",3,!1),s=f(e,"ariaLabel",3,""),d=Te(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,b=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,_=X(void 0);He(()=>{r(_)&&yt(()=>{u.set(r(_))})});let w=k=>{let P=bs(k),A=Ih(r(_));b.set(A),p.set(P),l.set(!n())},y=()=>{m.set(!0)},C=()=>{m.set(!1)},T=v(()=>n()?"opened":"");Lt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:y,blur:C,get ariaExpanded(){return n()},get ref(){return r(_)},set ref(k){D(_,fe(k))},children:(k,P)=>{wf(k,{})},$$slots:{default:!0}}),z(),o()}var V2=t=>{t.stopPropagation()},R2=L("<div><!> <div></div> <div></div></div>"),N2={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;}
|
|
231
231
|
|
|
232
232
|
@media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
|
|
233
233
|
}
|
|
@@ -252,8 +252,8 @@ Try switching the\xA0quality to\xA0Auto.`},rh=X0;var es=new Map;es.set(ah.EN,rh)
|
|
|
252
252
|
opacity: 0;
|
|
253
253
|
}
|
|
254
254
|
}.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
|
|
255
|
-
animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function dd(t,e){var G;z(e,!0),W(t,L2);let[i,o]=Be(),n=()=>S(C,"$isMobile",i),a=()=>S(A,"$areControlsVisible",i),s=()=>S(V,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),l=()=>S(y,"$interactiveControlsOpacity$",i),p=()=>S(P,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>S(T,"$isFullscreen",i),$=f(e,"ref",15,void 0),u=J(void 0),_=Ce(),w=ao(),{interactiveControlsOpacity$:y}=w,C=_.ui.isMobile,T=_.ui.isFullscreen,E=_.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,A=_.ui.controlsVisible,I=(G=_.callbacks)==null?void 0:G.onInteractiveTimeIndicatorClick,V=_.ui.currentGridType$,F=v(()=>!n()&&a()),j=v(()=>xs(s(),"s")),H=v(()=>!d()||!!l()||r(F)),X=J(!1);ze(()=>{D(X,pe(r(H)))});let oe=()=>{D(X,!0)},Z=()=>{var K;fe(),(K=r(u))==null||K.addEventListener("animationiteration",oe,{once:!0})},fe=()=>{var K;D(X,!1),(K=r(u))==null||K.removeEventListener("animationiteration",oe)},ae=K=>{P.set(K)},Me=v(()=>p()&&!r(H));ze(()=>{p()?Z():fe()});let Pe=()=>{r(H)||(P.set(!0),I==null||I())};_n(()=>{P.clearTimeout(),fe()});let he=()=>{P.set(!1)},se=U("tooltip_interactive_interaction_time_indicator");var Ae=M2();let ne;Ae.__mousemove=[A2],Ae.__click=Pe;var B=h(Ae);Ao(B,{tooltipContent:se,get tooltipActive(){return r(Me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ae,get ref(){return $()},set ref(K){$(K)},children:(K,Le)=>{ed(K,{completed:!0})},$$slots:{default:!0}});var ue=M(B,2);let ge;ct(ue,K=>$(K),()=>$());var Ke=M(ue,2);let te;ct(Ke,K=>D(u,K),()=>r(u)),g(Ae),k((K,Le,Ne)=>{ne=ee(Ae,1,"interactive-episode-icon-animated svelte-od3veb",null,ne,K),ge=ee(ue,1,"ref-block svelte-od3veb",null,ge,Le),te=ee(Ke,1,"pulse svelte-od3veb",null,te,Ne)},[()=>({mobile:n(),fullscreen:m(),invisible:r(H),"icon-small":r(j)}),()=>({hidden:r(H)}),()=>({paused:r(X)})]),xt("mouseleave",Ae,he),b(t,Ae),q(),o()}at(["mousemove","click"]);function jc(t,e){z(e,!0);let i=f(e,"tooltipEnabled",3,!0),o=f(e,"disabled",3,!1),n=f(e,"className",3,void 0),a=f(e,"ref",15);Ao(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=Fe();let p=v(()=>e.buttonComponent);var m=ce(l);Ei(m,()=>r(p),($,u)=>{u($,Jr(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),b(s,l)},$$slots:{default:!0}}),q()}var os={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var R2=ye('<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 xf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=R2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}function ws(t,e){let i=f(e,"isPrev",3,!1),o=f(e,"isMobile",3,!1),n=f(e,"width",3,"24"),a=f(e,"height",3,"24"),s=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");xf(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var N2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),B2=L("<!> <!>",1),D2={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 aa(t,e){z(e,!0),W(t,D2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),s=Ce().ui.t,d=v(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=v(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),p=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Lt(t,{get className(){return r(p)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(m){i(m)},children:(m,$)=>{var u=B2(),_=ce(u);{var w=T=>{var E=N2();b(T,E)};R(_,T=>{o()&&T(w)})}var y=M(_,2);let C=v(()=>e.type==="prev");ws(y,{get isMobile(){return o()},get isPrev(){return r(C)}}),b(m,u)},$$slots:{default:!0}}),q()}var O2=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function cd(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=O2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),b(t,o)}import{noop as H2}from"@vkontakte/videoplayer-shared/es2018";var F2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),U2=L("<!> <div><!></div>",1),z2={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 Ja(t,e){z(e,!0),W(t,z2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),a=f(e,"className",3,""),s=f(e,"click",3,H2),d=U("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Lt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Br.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{var $=U2(),u=ce($);{var _=T=>{var E=F2();b(T,E)};R(u,T=>{o()&&T(_)})}var w=M(u,2);let y;var C=h(w);cd(C,{}),g(w),k(T=>y=ee(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(p,$)},$$slots:{default:!0}}),q()}var q2=ye('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function yr(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=q2(),d=h(s);g(s),k(()=>{De(s,"width",i()),De(s,"height",o()),De(s,"viewBox",n()),De(d,"fill",a())}),b(t,s)}var W2=ye('<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 ns(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=W2(),d=h(s);g(s),k(()=>{De(s,"width",i()),De(s,"height",o()),De(s,"viewBox",n()),De(d,"fill",a())}),b(t,s)}import{noop as K2}from"@vkontakte/videoplayer-shared/es2018";var Q2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),G2=L("<!> <div><!></div>",1),j2={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 el(t,e){z(e,!0),W(t,j2);let[i,o]=Be(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=ao(),s=f(e,"ref",15,void 0),d=f(e,"isMobile",3,!1),l=f(e,"isPlaying",3,!1),p=f(e,"disabled",3,!1),m=f(e,"className",3,""),$=f(e,"click",3,K2),_=Ce().ui.t,{toggle:w}=a,y=v(()=>w),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),E=v(()=>r(T)?_("tooltip_pause"):_("tooltip_play")),P=v(()=>r(T)?ns:yr),A=v(()=>`${d()?"btn-m--play":""} ${m()}`),I=v(()=>r(C)?r(y):$());Lt(t,{get className(){return r(A)},testId:"btn-play",get click(){return r(I)},get disabled(){return p()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return Br.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,F)=>{var j=G2();let H=v(()=>r(P));var X=ce(j);{var oe=Me=>{var Pe=Q2();b(Me,Pe)};R(X,Me=>{d()&&Me(oe)})}var Z=M(X,2);let fe;var ae=h(Z);Ei(ae,()=>r(H),(Me,Pe)=>{Pe(Me,{})}),g(Z),k(Me=>fe=ee(Z,1,"svelte-1ot3duq",null,fe,Me),[()=>({mobile:d()})]),b(V,j)},$$slots:{default:!0}}),q(),o()}var Y2=ye('<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 wf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),b(t,o)}function ud(t,e){z(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=U("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Lt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{wf(d,{})},$$slots:{default:!0}}),q()}var Z2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),X2={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 pd(t,e){z(e,!0),W(t,X2);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),a=f(e,"ref",15,void 0),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Lt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(m){a(m)},children:(m,$)=>{var u=Z2(),_=h(u);let w;var y=h(_);{var C=E=>{yr(E,{width:"14",height:"14",fill:"#000"})},T=E=>{ns(E,{width:"14",height:"14",fill:"#000"})};R(y,E=>{n()?E(C):E(T,!1)})}g(_),g(u),k(E=>w=ee(_,1,"toggler svelte-et3q1q",null,w,E),[()=>({enabled:n()})]),b(m,u)},$$slots:{default:!0}}),q(),o()}var J2=ye('<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 Sf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=J2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i})),b(t,o)}function fd(t,e){z(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=U("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Lt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Sf(d,{})},$$slots:{default:!0}}),q()}var ey=ye('<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 Cf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=ey();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var ty={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Tf(t,e){W(t,ty);let i=f(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Cf(t,{get"data-testid"(){return r(o)}})}function md(t,e){z(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=f(e,"graphIsOpened",3,!1),d=Ce().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=v(()=>o()?"hidden":"");Lt(t,{get className(){return r(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,$)=>{let u=v(()=>!!a());Tf(m,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),q()}import{PlaybackState as qh}from"@vkontakte/videoplayer-core/es2018";function vd(t,e){z(e,!0);let[i,o]=Be(),n=()=>S(p,"$playbackState$",i),a=f(e,"isMobile",3,!1),s=f(e,"isLiveActive",3,!1),d=f(e,"ariaLabel",3,""),l=Ce(),p=l.state.playbackState$,m=l.actions.internal.switchToActiveLive,$=l.actions.internal.togglePlay,u=v(()=>()=>{if(!s()){m();return}n()===qh.PAUSED&&$()}),_=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),y=v(()=>s()&&n()===qh.PLAYING);Lt(t,{get className(){return r(_)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(u)},children:(C,T)=>{Hl(C,{get isActive(){return s()}})},$$slots:{default:!0}}),q(),o()}import{noop as Wh}from"@vkontakte/videoplayer-shared/es2018";var iy=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),oy=L('<img class="icon" aria-hidden="true">');function la(t,e){"use strict";let i=J(!1),o=()=>{D(i,!0)};var n=Fe(),a=ce(n);{var s=l=>{var p=iy();b(l,p)},d=l=>{var p=oy();k(()=>De(p,"src",e.icon)),xt("error",p,o),Fs(p),b(l,p)};R(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function If(t,e){z(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Wh),n=f(e,"ref",15),a=v(()=>o()===Wh),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");Ao(t,{get disabled(){return r(s)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,p)=>{let m=v(()=>{var $;return($=e.testId)!=null?$:e.id});Lt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(m)},children:($,u)=>{la($,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),q()}var Kh=t=>!!t.buttonComponent;var rs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var ay=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),ly={hash:"svelte-1iedtj3",code:".wrapper-bottom.svelte-1iedtj3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iedtj3 > :where(.svelte-1iedtj3) {pointer-events:auto;}.controls.svelte-1iedtj3 {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box;}.controls-left.svelte-1iedtj3, .controls-right.svelte-1iedtj3 {display:flex;align-content:center;}.controls-left.svelte-1iedtj3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iedtj3 > *:not(:first-child), .controls-right.svelte-1iedtj3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iedtj3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iedtj3 {transition:none;}"};function Ef(t,e){var ha,Is;z(e,!0),W(t,ly);let[i,o]=Be(),n=()=>S(ui,"$disabledControls$",i),a=()=>S(qt,"$adPlaybackState",i),s=()=>S(ut,"$playbackState$",i),d=()=>S(jt,"$currentSubtitle$",i),l=()=>S(Jt,"$isEnded$",i),p=()=>S(yn,"$currentGridType$",i),m=()=>S(Ui,"$isLive$",i),$=()=>S(nn,"$chromecastState$",i),u=()=>S(wi,"$isPictureInPictureActive",i),_=()=>S(Si,"$pictureInPictureType$",i),w=()=>S(Y,"$availableSubtitlesList$",i),y=()=>S(pi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(ni,"$showContextMenuBtn$",i),T=()=>S(co,"$playerSize",i),E=()=>S(Gt,"$isRewindableLive$",i),P=()=>S(Ze,"$isActiveLive$",i),A=()=>S(So,"$graphIsOpened$",i),I=()=>S(zi,"$contextMenuVisible$",i),V=()=>S(ii,"$isFullscreen",i),F=()=>S(xo,"$autoplayNextEnabled",i),j=()=>S(r(Vo),"$prevButton",i),H=()=>S(r(Ti),"$replayButton",i),X=()=>S(r(Yn),"$playButton",i),oe=()=>S(r(pt),"$nextButton",i),Z=()=>S(r(Ot),"$playPrevChapterButton",i),fe=()=>S(r(Mi),"$seekToInteractiveButton",i),ae=()=>S(r(Io),"$interactiveGraphButton",i),Me=()=>S(r(rt),"$liveButton",i),Pe=()=>S(r(Rt),"$time",i),he=()=>S(r(fi),"$episodes",i),se=()=>S(r(Oi),"$vkLogo",i),Ae=()=>S(r(po),"$volume",i),ne=()=>S(r(xi),"$subtitles",i),B=()=>S(r(Li),"$settings",i),ue=()=>S(r(gi),"$context",i),ge=()=>S(r(fo),"$fullscreen",i),Ke=()=>S(r(Xi),"$chromecast",i),te=()=>S(Gi,"$additionalDesktopControlPanelRightButtons$",i),G=()=>S(Ho,"$isInteractiveTime$",i),K=()=>S(Mt,"$settingsMenuVisible",i),Le=()=>S(Ir,"$settingButtonRef$",i),Ne=()=>S(ri,"$startedByKeyboard$",i),tt=()=>S(zt,"$isAudioAvailable$",i),we=()=>S(It,"$fakeIsPlaying$",i),be=()=>S(rn,"$seekToInteractiveDisabledTooltip$",i),Ve=()=>S(Ct,"$adPosition",i),je=()=>S(Ue,"$position$",i),it=()=>S(lo,"$adDuration",i),vt=()=>S(Xe,"$duration$",i),Je=f(e,"playerControlsWrapperRef",15,void 0),wt=f(e,"playerControlsRef",15,void 0),_t=f(e,"isAds",3,!1),Kt=f(e,"logoTargetUrl",3,""),Qt=f(e,"isOneVideoPlaylist",3,!1),At=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:It}=ao(),O=Ce(),_e=ao(),re=Ut(),Oe=O.actions.internal.toggleMuted,He=O.actions.internal.togglePlay,Ye=O.actions.internal.pause,lt=O.actions.internal.toggleSubtitle,Ge=(ha=O.callbacks)==null?void 0:ha.onAudioDoesNotExistHint,et=(Is=O.callbacks)==null?void 0:Is.onAudioDisabledHint,Xe=O.state.duration$,Ue=O.state.positionWithScrubbing$,ut=O.state.playbackState$,zt=O.state.isAudioAvailable$,We=O.state.isAudioDisabled,Jt=O.state.isEnded$,Ui=O.state.isLive$,Ze=O.state.isActiveLive$,Gt=O.state.isRewindableLive$,{isActive$:wi,type$:Si}=_e.pictureInPicture$,Mt=O.ui.settingsMenu.visible$,$t=O.ui.settingsMenu.openedByBtnKeyboard$,Vt=O.ui.controls,yo=O.actions.internal.getVideoEpisodes(),nn=O.state.chromecastState$,Y=O.state.availableSubtitlesList$,jt=O.state.currentSubtitle$,ui=Vt.disabledControls$,zi=O.ui.contextMenu.visible$,ni=O.ui.contextMenu.showContextMenuBtn$,pi=O.ui.contextMenu.openedByBtnKeyboard$,ri=O.ui.startedByKeyboard$,dt=O.ui.t,lo=O.ads.duration,Ct=O.ads.position,qt=O.ads.playbackState,ii=O.ui.isFullscreen,co=O.ui.playerSize,yn=O.ui.currentGridType$,Gi=O.ui.additionalDesktopControlPanelRightButtons$,xo=O.ui.autoplayNextEnabled$,li=O.actions.internal.getVideoElement,yt=O.actions.internal.replayInteractive,wo=O.actions.internal.prevVideoClick,Ai=O.actions.internal.nextVideoClick,Ci=O.state.isInteractive,Ho=O.state.isInteractiveTime$,Zi=O.state.showInteractiveGraph,qi=O.state.showSeekToInteractive,xn=O.state.showPlayPrevChapter,wn=O.state.showInteractiveTimeIndicator,Bi=O.state.playPrevChapterDisabledTooltip,rn=_e.seekToInteractiveDisabledTooltip$,So=_e.graphIsOpened$,Co=re.features.interactiveResponsiveUi,wr=v(()=>n().has("EPISODE_BUTTON")),rr=v(()=>n().has("GRAPH_BUTTON")),Sn=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),zn=v(()=>n().has("PLAY_BUTTON")),qn=v(()=>n().has("REPLAY_BUTTON")),uo=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Fo=()=>O.actions.internal.toggleChromecast(),Cn=v(()=>_t()?a()==="playing":s()===kf.PLAYING),nt=v(()=>d().value!=="off"),Uo=v(()=>l()&&!_t()||Ci),sn=v(()=>Co?r(Uo)&&Qi(p(),"m"):r(Uo)),Tn=v(()=>!l()||Ci||_t()),sr=v(()=>Qi(p(),"m")),zo=v(()=>e.showNextPrevButtons&&Qi(p(),"m")&&!_t()&&e.nextButtonActive),Wn=v(()=>e.showNextPrevButtons&&Qi(p(),"m")&&!_t()&&e.prevButtonActive),an=v(()=>!_t()&&!!m()),In=v(()=>$()!==Qh.NOT_AVAILABLE&&!(u()&&_()===1)&&Qi(p(),"m")&&!Ci),Di=v(()=>e.showAutoplayNext&&!Qt()&&Qi(p(),"s")),ji=v(()=>w().length>0&&Qi(p(),"m")),kn=v(()=>y()||C()),Mo=v(()=>Qi(p(),"s")&&!_t()),En=v(()=>!e.logoHidden&&!_t()),qo=v(()=>re.features.fullscreen&&(e.logoHidden||Qi(p(),Co?"xs":"s"))&&!(u()&&_()===1)&&(Ci?At():!0)),Lo=v(()=>(!m()||_t())&&!(re.features.interactiveHideTime&&Ci)),vi=v(()=>T().width>100),Kn=v(()=>Zi&&Qi(p(),"m")),To=v(()=>Co?qi&&Qi(p(),"s"):qi),ar=v(()=>Co?xn&&Qi(p(),"s"):xn),ln=v(()=>!_t()&&!m()&&!!(yo!=null&&yo.length)&&r(sr)&&!r(wr)),dn=v(()=>!E()||!!P()),lr=v(()=>A()?dt("tooltip_interactive_graph_on"):dt("tooltip_interactive_graph_off")),Wo=v(()=>I()?dt("aria_label_context_menu_close"):dt("aria_label_context_menu_open")),Sr=(ht,gt)=>ht?gt&>===kf.PAUSED?dt("tooltip_play"):"":dt("tooltip_live"),Pn=v(()=>Sr(r(dn),s())),Qn=v(()=>re.logoType==="vk_video"?dt("tooltip_vk_video_logo"):dt("tooltip_vk_logo")),dr=v(()=>r(nt)?dt("tooltip_subtitles_on"):dt("tooltip_subtitles_off")),Cr=v(()=>V()?dt("tooltip_fullscreen_on"):dt("tooltip_fullscreen_off")),Gn=v(()=>$()===Qh.CONNECTED?dt("tooltip_chromecast_on"):dt("tooltip_chromecast_off")),cn=v(()=>F()?dt("tooltip_autoplay_on"):dt("tooltip_autoplay_off")),jn=J(0),di=pe({}),Vo=v(()=>Vt.prevButton),Ti=v(()=>Vt.replayButton),Yn=v(()=>Vt.playButton),pt=v(()=>Vt.nextButton),Ot=v(()=>Vt.playPrevChapterButton),Mi=v(()=>Vt.seekToInteractiveButton),Io=v(()=>Vt.interactiveGraphButton),rt=v(()=>Vt.liveButton),Rt=v(()=>Vt.time),fi=v(()=>Vt.episodes),Oi=v(()=>Vt.vkLogo),po=v(()=>Vt.volume),xi=v(()=>Vt.subtitles),Li=v(()=>Vt.settings),gi=v(()=>Vt.context),fo=v(()=>Vt.fullscreen),Xi=v(()=>Vt.chromecast),Ji=v(()=>({prevButton:j()?j().right-j().left:0,replayButton:H()?H().right-H().left:0,playButton:X()?X().right-X().left:0,nextButton:oe()?oe().right-oe().left:0,playPrevChapterButton:Z()?Z().right-Z().left:0,seekToInteractiveButton:fe()?fe().right-fe().left:0,interactiveGraphButton:ae()?ae().right-ae().left:0,liveButton:Me()?Me().right-Me().left:0,time:Pe()?Pe().right-Pe().left:0,episodes:he()?he().right-he().left:0,vkLogo:se()?se().right-se().left:0,volume:Ae()?Ae().right-Ae().left:0,subtitles:ne()?ne().right-ne().left:0,settings:B()?B().right-B().left:0,context:ue()?ue().right-ue().left:0,fullscreen:ge()?ge().right-ge().left:0,chromecast:Ke()?Ke().right-Ke().left:0,additionalButtons:te().length?te().reduce(ht=>[...ht,40],[]):[]})),un=J(0);ze(()=>{(!r(un)||r(un)<r(Ji).time)&&bt(()=>D(un,pe(r(Ji).time)))});let Zn=J(!1);ze(()=>{let ht=0;r(ln)&&(Qi(p(),"xl")?ht=r(Ji).time:ht=60);let gt=r(Ji).prevButton+r(Ji).playButton+r(Ji).nextButton+r(Ji).seekToInteractiveButton+r(Ji).interactiveGraphButton+r(Ji).liveButton+r(un)+ht;D(Zn,pe(r(Lo)&&r(jn)>=gt))});let Xn=v(()=>r(Zn)&&Qi(p(),"m")),Tr=sy(Xa,260);ze(()=>{T(),G(),Tr(li(),Vt,di,e.showControls)});let Ir=de();ze(()=>{K(),Le()&&bt(()=>qa(Le(),K(),$t))});let An;ze(()=>{Ne(),bt(()=>Gc(ri,Ne(),An))});function Mn(){$s({isAudioDisabled:We,audioDisabledHintCallback:et,isAudioAvailable:tt(),audioIsNotExistHintCallback:Ge})&&Oe()}let ko=Ci?yt:He,kr=v(()=>we()!==null),Ro=v(()=>r(kr)?we():r(Cn)),cr=v(()=>r(Ro)?dt("tooltip_pause"):dt("tooltip_play")),Er=dt("tooltip_episodes"),Pr=v(()=>{var ht,gt,eo,No;return r(Wn)?{id:"prevButton",type:"desktop-control-panel-left",weight:os.prevButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:wo.bind(null,!0)},tooltipEnabled:!((gt=(ht=O.callbacks)==null?void 0:ht.uiInfo)!=null&>.onPrevButtonMouseEnter)&&!((No=(eo=O.callbacks)==null?void 0:eo.uiInfo)!=null&&No.onPrevButtonMouseLeave),mouseEnter:()=>{var to,si,Hi;(Hi=(si=(to=O.callbacks)==null?void 0:to.uiInfo)==null?void 0:si.onPrevButtonMouseEnter)==null||Hi.call(si,sa(li(),di,"prevButton",e.showControls))},mouseLeave:()=>{var to,si,Hi;(Hi=(si=(to=O.callbacks)==null?void 0:to.uiInfo)==null?void 0:si.onPrevButtonMouseLeave)==null||Hi.call(si,sa(li(),di,"prevButton",e.showControls))},tooltipText:dt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),ur=v(()=>r(sn)?{id:"replayButton",type:"desktop-control-panel-left",weight:os.replayButton,buttonComponent:Ja,buttonComponentProps:{disabled:r(qn),click:ko},tooltipText:dt("tooltip_restart"),disabled:r(qn)}:void 0),Yi=v(()=>r(Tn)?{id:"playButton",type:"desktop-control-panel-left",weight:os.playButton,buttonComponent:el,buttonComponentProps:{disabled:r(zn),isPlaying:r(Cn),click:He},tooltipText:r(cr),disabled:r(zn)}:void 0),pn=v(()=>{var ht,gt,eo,No;return r(zo)?{id:"nextButton",type:"desktop-control-panel-left",weight:os.nextButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Ai.bind(null,!0)},tooltipEnabled:!((gt=(ht=O.callbacks)==null?void 0:ht.uiInfo)!=null&>.onNextButtonMouseEnter)&&!((No=(eo=O.callbacks)==null?void 0:eo.uiInfo)!=null&&No.onNextButtonMouseLeave),mouseEnter:()=>{var to,si,Hi;(Hi=(si=(to=O.callbacks)==null?void 0:to.uiInfo)==null?void 0:si.onNextButtonMouseEnter)==null||Hi.call(si,sa(li(),di,"nextButton",e.showControls))},mouseLeave:()=>{var to,si,Hi;(Hi=(si=(to=O.callbacks)==null?void 0:to.uiInfo)==null?void 0:si.onNextButtonMouseLeave)==null||Hi.call(si,sa(li(),di,"nextButton",e.showControls))},tooltipText:dt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Fr=v(()=>Ci&&r(ar)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:os.playPrevChapterButton,buttonComponent:ud,buttonComponentProps:{disabled:r(uo),click:e.playPrevChapter},tooltipText:dt("tooltip_interactive_go_back"),disabledTooltipContent:dt(Bi),disabled:r(uo)}:void 0),pr=v(()=>Ci&&r(To)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:os.seekToInteractiveButton,buttonComponent:fd,buttonComponentProps:{disabled:r(Sn),click:e.seekToInteractive},tooltipText:dt("tooltip_interactive_seek"),disabled:r(Sn),disabledTooltipContent:dt(be())}:void 0),st=v(()=>Ci&&r(Kn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:os.interactiveGraphButton,buttonComponent:md,buttonComponentProps:{disabled:r(rr),click:So.toggle,graphIsOpened:A()},tooltipText:r(lr)}:void 0),Ht=v(()=>r(an)?{id:"liveButton",type:"desktop-control-panel-left",weight:os.liveButton,buttonComponent:vd,buttonComponentProps:{isLiveActive:r(dn),ariaLabel:r(Pn)},tooltipText:r(Pn),disabled:r(dn)&&s()===kf.PLAYING}:void 0),Vi=v(()=>[r(Pr),r(ur),r(Yi),r(pn),r(Fr),r(pr),r(st),r(Ht)].filter(ht=>!!ht).sort(Xs)),xe=v(()=>r(En)?{id:"vkLogo",type:"desktop-control-panel-right",weight:rs.vkLogo,buttonComponent:id,buttonComponentProps:{targetUrl:Kt(),logoClickable:e.logoClickable,click:Ye},tooltipText:r(Qn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),kt=v(()=>r(Di)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:rs.autoplayNext,buttonComponent:pd,tooltipText:r(cn)}:void 0),mi=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:rs.volume,buttonComponent:tf,buttonComponentProps:{click:Mn}})),hi=v(()=>r(ji)?{id:"subtitles",type:"desktop-control-panel-right",weight:rs.subtitles,buttonComponent:Yp,buttonComponentProps:{isSubtitlesEnabled:r(nt),click:lt},tooltipText:r(dr)}:void 0),Eo=v(()=>r(Mo)?{id:"settings",type:"desktop-control-panel-right",weight:rs.settings,buttonComponent:ja,buttonComponentProps:{ref$:Ir},tooltipText:K()?void 0:dt("tooltip_settings_off")}:void 0),ci=v(()=>re.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:rs.context,buttonComponent:yf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(Wo)},className:r(kn)?"":"out-of-view",tooltipText:r(Wo)}:void 0),Ie=v(()=>r(qo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:rs.fullscreen,buttonComponent:td,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Cr)}:void 0),Tt=v(()=>r(In)?{id:"chromecast",type:"desktop-control-panel-right",weight:rs.chromecast,buttonComponent:od,buttonComponentProps:{state:$(),click:Fo},tooltipText:r(Gn)}:void 0),ei=v(()=>[r(xe),r(kt),r(mi),r(hi),r(Eo),r(ci),r(Ie),r(Tt),...te()].filter(ht=>!!ht).sort(Xs));var Ii=ay(),oi=ce(Ii);let Ko;var fn=h(oi);let Ar=v(()=>!r(vi));na(fn,{get isHidden(){return r(Ar)},get isAds(){return _t()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return di.timeline},set ref(ht){di.timeline=ht}});var Ln=M(fn,2),Ur=h(Ln),va=h(Ur);ki(va,17,()=>r(Vi),ht=>ht.id,(ht,gt)=>{jc(ht,{get buttonComponent(){return r(gt).buttonComponent},get buttonComponentProps(){return r(gt).buttonComponentProps},get tooltipText(){return r(gt).tooltipText},get disabledTooltipContent(){return r(gt).disabledTooltipContent},get disabled(){return r(gt).disabled},get className(){return r(gt).className},get tooltipEnabled(){return r(gt).tooltipEnabled},get mouseEnter(){return r(gt).mouseEnter},get mouseLeave(){return r(gt).mouseLeave},get ref(){return di[r(gt).id]},set ref(eo){di[r(gt).id]=eo}})});var Cs=M(va,2);{var nl=ht=>{let gt=v(()=>_t()?Ve():je()),eo=v(()=>_t()?it():vt());Jl(ht,{isMobile:!1,get showDuration(){return r(Xn)},get position(){return r(gt)},get duration(){return r(eo)},get ref(){return di.time},set ref(No){di.time=No}})};R(Cs,ht=>{r(Lo)&&ht(nl)})}var ga=M(Cs,2);let rl=v(()=>!r(ln));Ao(ga,{className:"w-max",get disabled(){return r(rl)},tooltipContent:Er,get ref(){return di.episodes},set ref(ht){di.episodes=ht},children:(ht,gt)=>{var eo=Fe(),No=ce(eo);{var to=si=>{rd(si,{get position(){return je()},get duration(){return vt()},timeCodes:yo})};R(No,si=>{r(ln)&&si(to)})}b(ht,eo)},$$slots:{default:!0}}),g(Ur);var Ts=M(Ur,2);ki(Ts,21,()=>r(ei),ht=>ht.id,(ht,gt)=>{var eo=Fe(),No=ce(eo);{var to=Hi=>{jc(Hi,{get buttonComponent(){return r(gt).buttonComponent},get buttonComponentProps(){return r(gt).buttonComponentProps},get tooltipText(){return r(gt).tooltipText},get disabledTooltipContent(){return r(gt).disabledTooltipContent},get disabled(){return r(gt).disabled},get className(){return r(gt).className},get ref(){return di[r(gt).id]},set ref(ss){di[r(gt).id]=ss}})},si=Hi=>{let ss=v(()=>!!r(gt).disabled);If(Hi,{get id(){return r(gt).id},get testId(){return r(gt).testId},get icon(){return r(gt).icon},get ariaLabel(){return r(gt).ariaLabel},get tooltipText(){return r(gt).tooltipText},get disabledTooltipContent(){return r(gt).disabledTooltipContent},get disabled(){return r(ss)},get onClick(){return r(gt).onClick},get ref(){return di[r(gt).id]},set ref(al){di[r(gt).id]=al}})};R(No,Hi=>{Kh(r(gt))?Hi(to):Hi(si,!1)})}b(ht,eo)}),g(Ts),g(Ln),ct(Ln,ht=>wt(ht),()=>wt()),g(oi),ct(oi,ht=>Je(ht),()=>Je());var sl=M(oi,2);{var Jn=ht=>{dd(ht,{get ref(){return di.interactiveTimeIndicator},set ref(gt){di.interactiveTimeIndicator=gt}})};R(sl,ht=>{wn&&ht(Jn)})}k(ht=>Ko=ee(oi,1,"wrapper-bottom svelte-1iedtj3",null,Ko,ht),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Nr(Ur,"clientWidth",ht=>D(jn,ht)),b(t,Ii),q(),o()}import{ChromecastState as jh,PlaybackState as Yh}from"@vkontakte/videoplayer-core/es2018";import{noop as Gh}from"@vkontakte/videoplayer-shared/es2018";var dy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),cy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),uy={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 Pf(t,e){W(t,uy);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Gh),n=v(()=>o()===Gh),a=v(()=>r(n)||i()),s=J(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Lt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(p,m)=>{var $=Fe(),u=ce($);{var _=y=>{var C=dy();b(y,C)},w=y=>{var C=cy();k(()=>De(C,"src",e.iconUrl)),xt("error",C,d),Fs(C),b(y,C)};R(u,y=>{r(s)?y(_):y(w,!1)})}b(p,$)},$$slots:{default:!0}})}var py=ye('<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 Af(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=py();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),b(t,o)}import{noop as fy}from"@vkontakte/videoplayer-shared/es2018";var my=L('<span class="text svelte-6gmlbk"> </span>'),vy=L('<div aria-hidden="true"><!> <!></div>'),gy={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function Yc(t,e){z(e,!0),W(t,gy);let i=f(e,"muted",3,!1),o=f(e,"expanded",3,!1),n=f(e,"click",3,fy),a=f(e,"ref",15,void 0),d=Ce().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=v(()=>o()?ys:Af),m=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Lt(t,{get testId(){return r(m)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref($){a($)},children:($,u)=>{var _=vy();let w=v(()=>r(p)),y;var C=h(_);Ei(C,()=>r(w),(P,A)=>{A(P,{})});var T=M(C,2);{var E=P=>{var A=my(),I=h(A,!0);g(A),k(V=>me(I,V),[()=>d("mobile_unmute")]),b(P,A)};R(T,P=>{o()&&P(E)})}g(_),k(P=>y=ee(_,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),b($,_)},$$slots:{default:!0}}),q()}var hy=ye('<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 Mf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=hy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(3),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),b(t,o)}var _y={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
256
|
-
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function
|
|
255
|
+
animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function dd(t,e){var me;U(e,!0),W(t,N2);let[i,o]=Re(),n=()=>S(C,"$isMobile",i),a=()=>S(A,"$areControlsVisible",i),s=()=>S(V,"$currentGridType$",i),d=()=>S(k,"$isInteractiveTime$",i),l=()=>S(y,"$interactiveControlsOpacity$",i),p=()=>S(P,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>S(T,"$isFullscreen",i),b=f(e,"ref",15,void 0),u=X(void 0),_=Te(),w=lo(),{interactiveControlsOpacity$:y}=w,C=_.ui.isMobile,T=_.ui.isFullscreen,k=_.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,A=_.ui.controlsVisible,I=(me=_.callbacks)==null?void 0:me.onInteractiveTimeIndicatorClick,V=_.ui.currentGridType$,q=v(()=>!n()&&a()),Q=v(()=>xs(s(),"s")),H=v(()=>!d()||!!l()||r(q)),Y=X(!1);He(()=>{D(Y,fe(r(H)))});let ne=()=>{D(Y,!0)},Z=()=>{var j;de(),(j=r(u))==null||j.addEventListener("animationiteration",ne,{once:!0})},de=()=>{var j;D(Y,!1),(j=r(u))==null||j.removeEventListener("animationiteration",ne)},ce=j=>{P.set(j)},Le=v(()=>p()&&!r(H));He(()=>{p()?Z():de()});let Ae=()=>{r(H)||(P.set(!0),I==null||I())};mn(()=>{P.clearTimeout(),de()});let he=()=>{P.set(!1)},se=F("tooltip_interactive_interaction_time_indicator");var Me=R2();let oe;Me.__mousemove=[V2],Me.__click=Ae;var B=h(Me);ko(B,{tooltipContent:se,get tooltipActive(){return r(Le)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ce,get ref(){return b()},set ref(j){b(j)},children:(j,te)=>{ed(j,{completed:!0})},$$slots:{default:!0}});var be=M(B,2);let le;pt(be,j=>b(j),()=>b());var We=M(be,2);let ee;pt(We,j=>D(u,j),()=>r(u)),g(Me),E((j,te,Oe)=>{oe=J(Me,1,"interactive-episode-icon-animated svelte-od3veb",null,oe,j),le=J(be,1,"ref-block svelte-od3veb",null,le,te),ee=J(We,1,"pulse svelte-od3veb",null,ee,Oe)},[()=>({mobile:n(),fullscreen:m(),invisible:r(H),"icon-small":r(Q)}),()=>({hidden:r(H)}),()=>({paused:r(Y)})]),St("mouseleave",Me,he),$(t,Me),z(),o()}st(["mousemove","click"]);function Yc(t,e){U(e,!0);let i=f(e,"tooltipEnabled",3,!0),o=f(e,"disabled",3,!1),n=f(e,"className",3,void 0),a=f(e,"ref",15);ko(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=De();let p=v(()=>e.buttonComponent);var m=pe(l);ki(m,()=>r(p),(b,u)=>{u(b,Jr(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),$(s,l)},$$slots:{default:!0}}),z()}var ns={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var D2=xe('<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 Cf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=D2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}function ws(t,e){let i=f(e,"isPrev",3,!1),o=f(e,"isMobile",3,!1),n=f(e,"width",3,"24"),a=f(e,"height",3,"24"),s=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");Cf(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var O2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),H2=L("<!> <!>",1),F2={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 aa(t,e){U(e,!0),W(t,F2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),s=Te().ui.t,d=v(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=v(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),p=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Lt(t,{get className(){return r(p)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(m){i(m)},children:(m,b)=>{var u=H2(),_=pe(u);{var w=T=>{var k=O2();$(T,k)};R(_,T=>{o()&&T(w)})}var y=M(_,2);let C=v(()=>e.type==="prev");ws(y,{get isMobile(){return o()},get isPrev(){return r(C)}}),$(m,u)},$$slots:{default:!0}}),z()}var U2=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function cd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=U2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),$(t,o)}import{noop as z2}from"@vkontakte/videoplayer-shared/es2018";var q2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),W2=L("<!> <div><!></div>",1),K2={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 tl(t,e){U(e,!0),W(t,K2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),a=f(e,"className",3,""),s=f(e,"click",3,z2),d=F("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Lt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Dr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{var b=W2(),u=pe(b);{var _=T=>{var k=q2();$(T,k)};R(u,T=>{o()&&T(_)})}var w=M(u,2);let y;var C=h(w);cd(C,{}),g(w),E(T=>y=J(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(p,b)},$$slots:{default:!0}}),z()}var Q2=xe('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function yr(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=Q2(),d=h(s);g(s),E(()=>{Be(s,"width",i()),Be(s,"height",o()),Be(s,"viewBox",n()),Be(d,"fill",a())}),$(t,s)}var G2=xe('<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=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=G2(),d=h(s);g(s),E(()=>{Be(s,"width",i()),Be(s,"height",o()),Be(s,"viewBox",n()),Be(d,"fill",a())}),$(t,s)}import{noop as j2}from"@vkontakte/videoplayer-shared/es2018";var Y2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Z2=L("<!> <div><!></div>",1),X2={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 il(t,e){U(e,!0),W(t,X2);let[i,o]=Re(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=lo(),s=f(e,"ref",15,void 0),d=f(e,"isMobile",3,!1),l=f(e,"isPlaying",3,!1),p=f(e,"disabled",3,!1),m=f(e,"className",3,""),b=f(e,"click",3,j2),_=Te().ui.t,{toggle:w}=a,y=v(()=>w),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),k=v(()=>r(T)?_("tooltip_pause"):_("tooltip_play")),P=v(()=>r(T)?rs:yr),A=v(()=>`${d()?"btn-m--play":""} ${m()}`),I=v(()=>r(C)?r(y):b());Lt(t,{get className(){return r(A)},testId:"btn-play",get click(){return r(I)},get disabled(){return p()},get ariaLabel(){return r(k)},get ariaKeyShortCut(){return Dr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,q)=>{var Q=Z2();let H=v(()=>r(P));var Y=pe(Q);{var ne=Le=>{var Ae=Y2();$(Le,Ae)};R(Y,Le=>{d()&&Le(ne)})}var Z=M(Y,2);let de;var ce=h(Z);ki(ce,()=>r(H),(Le,Ae)=>{Ae(Le,{})}),g(Z),E(Le=>de=J(Z,1,"svelte-1ot3duq",null,de,Le),[()=>({mobile:d()})]),$(V,Q)},$$slots:{default:!0}}),z(),o()}var J2=xe('<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 Tf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=J2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),$(t,o)}function ud(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Lt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Tf(d,{})},$$slots:{default:!0}}),z()}var ey=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),ty={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 pd(t,e){U(e,!0),W(t,ty);let[i,o]=Re(),n=()=>S(d,"$autoplayNextEnabled$",i),a=f(e,"ref",15,void 0),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Lt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(m){a(m)},children:(m,b)=>{var u=ey(),_=h(u);let w;var y=h(_);{var C=k=>{yr(k,{width:"14",height:"14",fill:"#000"})},T=k=>{rs(k,{width:"14",height:"14",fill:"#000"})};R(y,k=>{n()?k(C):k(T,!1)})}g(_),g(u),E(k=>w=J(_,1,"toggler svelte-et3q1q",null,w,k),[()=>({enabled:n()})]),$(m,u)},$$slots:{default:!0}}),z(),o()}var iy=xe('<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 If(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=iy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i})),$(t,o)}function fd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Lt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{If(d,{})},$$slots:{default:!0}}),z()}var oy=xe('<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 kf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=oy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}var ny={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Ef(t,e){W(t,ny);let i=f(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");kf(t,{get"data-testid"(){return r(o)}})}function md(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=f(e,"graphIsOpened",3,!1),d=Te().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=v(()=>o()?"hidden":"");Lt(t,{get className(){return r(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,b)=>{let u=v(()=>!!a());Ef(m,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}import{PlaybackState as Qh}from"@vkontakte/videoplayer-core/es2018";function vd(t,e){U(e,!0);let[i,o]=Re(),n=()=>S(p,"$playbackState$",i),a=f(e,"isMobile",3,!1),s=f(e,"isLiveActive",3,!1),d=f(e,"ariaLabel",3,""),l=Te(),p=l.state.playbackState$,m=l.actions.internal.switchToActiveLive,b=l.actions.internal.togglePlay,u=v(()=>()=>{if(!s()){m();return}n()===Qh.PAUSED&&b()}),_=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),y=v(()=>s()&&n()===Qh.PLAYING);Lt(t,{get className(){return r(_)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(u)},children:(C,T)=>{Hl(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}import{noop as Gh}from"@vkontakte/videoplayer-shared/es2018";var ry=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),sy=L('<img class="icon" aria-hidden="true">');function la(t,e){"use strict";let i=X(!1),o=()=>{D(i,!0)};var n=De(),a=pe(n);{var s=l=>{var p=ry();$(l,p)},d=l=>{var p=sy();E(()=>Be(p,"src",e.icon)),St("error",p,o),Fs(p),$(l,p)};R(a,l=>{r(i)?l(s):l(d,!1)})}$(t,n)}function Pf(t,e){U(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Gh),n=f(e,"ref",15),a=v(()=>o()===Gh),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");ko(t,{get disabled(){return r(s)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,p)=>{let m=v(()=>{var b;return(b=e.testId)!=null?b:e.id});Lt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(m)},children:(b,u)=>{la(b,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var jh=t=>!!t.buttonComponent;var ss={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var cy=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),uy={hash:"svelte-1iedtj3",code:".wrapper-bottom.svelte-1iedtj3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iedtj3 > :where(.svelte-1iedtj3) {pointer-events:auto;}.controls.svelte-1iedtj3 {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box;}.controls-left.svelte-1iedtj3, .controls-right.svelte-1iedtj3 {display:flex;align-content:center;}.controls-left.svelte-1iedtj3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iedtj3 > *:not(:first-child), .controls-right.svelte-1iedtj3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iedtj3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iedtj3 {transition:none;}"};function Mf(t,e){var Ts,ba;U(e,!0),W(t,uy);let[i,o]=Re(),n=()=>S(G,"$disabledControls$",i),a=()=>S(Mt,"$adPlaybackState",i),s=()=>S(gt,"$playbackState$",i),d=()=>S($o,"$currentSubtitle$",i),l=()=>S(Qt,"$isEnded$",i),p=()=>S(er,"$currentGridType$",i),m=()=>S(ti,"$isLive$",i),b=()=>S(en,"$chromecastState$",i),u=()=>S(Ni,"$isPictureInPictureActive",i),_=()=>S(zi,"$pictureInPictureType$",i),w=()=>S(hn,"$availableSubtitlesList$",i),y=()=>S(Bi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(ri,"$showContextMenuBtn$",i),T=()=>S(ii,"$playerSize",i),k=()=>S(Zt,"$isRewindableLive$",i),P=()=>S(Je,"$isActiveLive$",i),A=()=>S(ji,"$graphIsOpened$",i),I=()=>S(Xt,"$contextMenuVisible$",i),V=()=>S(eo,"$isFullscreen",i),q=()=>S(Ho,"$autoplayNextEnabled",i),Q=()=>S(r(rr),"$prevButton",i),H=()=>S(r(Ir),"$replayButton",i),Y=()=>S(r(Vo),"$playButton",i),ne=()=>S(r(Ti),"$nextButton",i),Z=()=>S(r(sr),"$playPrevChapterButton",i),de=()=>S(r(mt),"$seekToInteractiveButton",i),ce=()=>S(r(Ft),"$interactiveGraphButton",i),Le=()=>S(r(Pi),"$liveButton",i),Ae=()=>S(r(Co),"$time",i),he=()=>S(r(ot),"$episodes",i),se=()=>S(r(Nt),"$vkLogo",i),Me=()=>S(r(fi),"$volume",i),oe=()=>S(r(Oi),"$subtitles",i),B=()=>S(r(po),"$settings",i),be=()=>S(r(wi),"$context",i),le=()=>S(r(Ai),"$fullscreen",i),We=()=>S(r(vi),"$chromecast",i),ee=()=>S(yo,"$additionalDesktopControlPanelRightButtons$",i),me=()=>S(Po,"$isInteractiveTime$",i),j=()=>S(At,"$settingsMenuVisible",i),te=()=>S(lr,"$settingButtonRef$",i),Oe=()=>S(li,"$startedByKeyboard$",i),Ge=()=>S(Ht,"$isAudioAvailable$",i),$e=()=>S(Vt,"$fakeIsPlaying$",i),we=()=>S(_n,"$seekToInteractiveDisabledTooltip$",i),Ve=()=>S(Ze,"$adPosition",i),je=()=>S(qe,"$position$",i),dt=()=>S(ui,"$adDuration",i),ct=()=>S(tt,"$duration$",i),rt=f(e,"playerControlsWrapperRef",15,void 0),Ct=f(e,"playerControlsRef",15,void 0),_t=f(e,"isAds",3,!1),Gt=f(e,"logoTargetUrl",3,""),ni=f(e,"isOneVideoPlaylist",3,!1),It=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Vt}=lo(),O=Te(),_e=lo(),re=qt(),Ne=O.actions.internal.toggleMuted,ze=O.actions.internal.togglePlay,Qe=O.actions.internal.pause,ut=O.actions.internal.toggleSubtitle,Ye=(Ts=O.callbacks)==null?void 0:Ts.onAudioDoesNotExistHint,et=(ba=O.callbacks)==null?void 0:ba.onAudioDisabledHint,tt=O.state.duration$,qe=O.state.positionWithScrubbing$,gt=O.state.playbackState$,Ht=O.state.isAudioAvailable$,Xe=O.state.isAudioDisabled,Qt=O.state.isEnded$,ti=O.state.isLive$,Je=O.state.isActiveLive$,Zt=O.state.isRewindableLive$,{isActive$:Ni,type$:zi}=_e.pictureInPicture$,At=O.ui.settingsMenu.visible$,ht=O.ui.settingsMenu.openedByBtnKeyboard$,Rt=O.ui.controls,co=O.actions.internal.getVideoEpisodes(),en=O.state.chromecastState$,hn=O.state.availableSubtitlesList$,$o=O.state.currentSubtitle$,G=Rt.disabledControls$,Xt=O.ui.contextMenu.visible$,ri=O.ui.contextMenu.showContextMenuBtn$,Bi=O.ui.contextMenu.openedByBtnKeyboard$,li=O.ui.startedByKeyboard$,ft=O.ui.t,ui=O.ads.duration,Ze=O.ads.position,Mt=O.ads.playbackState,eo=O.ui.isFullscreen,ii=O.ui.playerSize,er=O.ui.currentGridType$,yo=O.ui.additionalDesktopControlPanelRightButtons$,Ho=O.ui.autoplayNextEnabled$,di=O.actions.internal.getVideoElement,xt=O.actions.internal.replayInteractive,Ci=O.actions.internal.prevVideoClick,Eo=O.actions.internal.nextVideoClick,pi=O.state.isInteractive,Po=O.state.isInteractiveTime$,qi=O.state.showInteractiveGraph,xo=O.state.showSeekToInteractive,wo=O.state.showPlayPrevChapter,Vn=O.state.showInteractiveTimeIndicator,So=O.state.playPrevChapterDisabledTooltip,_n=_e.seekToInteractiveDisabledTooltip$,ji=_e.graphIsOpened$,Ao=re.features.interactiveResponsiveUi,tn=v(()=>n().has("EPISODE_BUTTON")),wr=v(()=>n().has("GRAPH_BUTTON")),tr=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Rn=v(()=>n().has("PLAY_BUTTON")),bn=v(()=>n().has("REPLAY_BUTTON")),Nn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),ir=()=>O.actions.internal.toggleChromecast(),to=v(()=>_t()?a()==="playing":s()===Af.PLAYING),Mo=v(()=>d().value!=="off"),$n=v(()=>l()&&!_t()||pi),it=v(()=>Ao?r($n)&&Gi(p(),"m"):r($n)),yn=v(()=>!l()||pi||_t()),Bn=v(()=>Gi(p(),"m")),on=v(()=>e.showNextPrevButtons&&Gi(p(),"m")&&!_t()&&e.nextButtonActive),or=v(()=>e.showNextPrevButtons&&Gi(p(),"m")&&!_t()&&e.prevButtonActive),nn=v(()=>!_t()&&!!m()),rn=v(()=>b()!==Yh.NOT_AVAILABLE&&!(u()&&_()===1)&&Gi(p(),"m")&&!pi),sn=v(()=>e.showAutoplayNext&&!ni()&&Gi(p(),"s")),Yi=v(()=>w().length>0&&Gi(p(),"m")),Wi=v(()=>y()||C()),an=v(()=>Gi(p(),"s")&&!_t()),Dn=v(()=>!e.logoHidden&&!_t()),Fo=v(()=>re.features.fullscreen&&(e.logoHidden||Gi(p(),Ao?"xs":"s"))&&!(u()&&_()===1)&&(pi?It():!0)),ln=v(()=>(!m()||_t())&&!(re.features.interactiveHideTime&&pi)),Lo=v(()=>T().width>100),uo=v(()=>qi&&Gi(p(),"m")),Di=v(()=>Ao?xo&&Gi(p(),"s"):xo),On=v(()=>Ao?wo&&Gi(p(),"s"):wo),io=v(()=>!_t()&&!m()&&!!(co!=null&&co.length)&&r(Bn)&&!r(tn)),xn=v(()=>!k()||!!P()),Hn=v(()=>A()?ft("tooltip_interactive_graph_on"):ft("tooltip_interactive_graph_off")),dn=v(()=>I()?ft("aria_label_context_menu_close"):ft("aria_label_context_menu_open")),Sr=(lt,$t)=>lt?$t&&$t===Af.PAUSED?ft("tooltip_play"):"":ft("tooltip_live"),Uo=v(()=>Sr(r(xn),s())),Cr=v(()=>re.logoType==="vk_video"?ft("tooltip_vk_video_logo"):ft("tooltip_vk_logo")),Fn=v(()=>r(Mo)?ft("tooltip_subtitles_on"):ft("tooltip_subtitles_off")),Un=v(()=>V()?ft("tooltip_fullscreen_on"):ft("tooltip_fullscreen_off")),nr=v(()=>b()===Yh.CONNECTED?ft("tooltip_chromecast_on"):ft("tooltip_chromecast_off")),Tr=v(()=>q()?ft("tooltip_autoplay_on"):ft("tooltip_autoplay_off")),wn=X(0),Jt=fe({}),rr=v(()=>Rt.prevButton),Ir=v(()=>Rt.replayButton),Vo=v(()=>Rt.playButton),Ti=v(()=>Rt.nextButton),sr=v(()=>Rt.playPrevChapterButton),mt=v(()=>Rt.seekToInteractiveButton),Ft=v(()=>Rt.interactiveGraphButton),Pi=v(()=>Rt.liveButton),Co=v(()=>Rt.time),ot=v(()=>Rt.episodes),Nt=v(()=>Rt.vkLogo),fi=v(()=>Rt.volume),Oi=v(()=>Rt.subtitles),po=v(()=>Rt.settings),wi=v(()=>Rt.context),Ai=v(()=>Rt.fullscreen),vi=v(()=>Rt.chromecast),hi=v(()=>({prevButton:Q()?Q().right-Q().left:0,replayButton:H()?H().right-H().left:0,playButton:Y()?Y().right-Y().left:0,nextButton:ne()?ne().right-ne().left:0,playPrevChapterButton:Z()?Z().right-Z().left:0,seekToInteractiveButton:de()?de().right-de().left:0,interactiveGraphButton:ce()?ce().right-ce().left:0,liveButton:Le()?Le().right-Le().left:0,time:Ae()?Ae().right-Ae().left:0,episodes:he()?he().right-he().left:0,vkLogo:se()?se().right-se().left:0,volume:Me()?Me().right-Me().left:0,subtitles:oe()?oe().right-oe().left:0,settings:B()?B().right-B().left:0,context:be()?be().right-be().left:0,fullscreen:le()?le().right-le().left:0,chromecast:We()?We().right-We().left:0,additionalButtons:ee().length?ee().reduce(lt=>[...lt,40],[]):[]})),Hi=X(0);He(()=>{(!r(Hi)||r(Hi)<r(hi).time)&&yt(()=>D(Hi,fe(r(hi).time)))});let zn=X(!1);He(()=>{let lt=0;r(io)&&(Gi(p(),"xl")?lt=r(hi).time:lt=60);let $t=r(hi).prevButton+r(hi).playButton+r(hi).nextButton+r(hi).seekToInteractiveButton+r(hi).interactiveGraphButton+r(hi).liveButton+r(Hi)+lt;D(zn,fe(r(ln)&&r(wn)>=$t))});let ar=v(()=>r(zn)&&Gi(p(),"m")),qn=dy(el,260);He(()=>{T(),me(),qn(di(),Rt,Jt,e.showControls)});let lr=ae();He(()=>{j(),te()&&yt(()=>Qa(te(),j(),ht))});let dr;He(()=>{Oe(),yt(()=>jc(li,Oe(),dr))});function cr(){$s({isAudioDisabled:Xe,audioDisabledHintCallback:et,isAudioAvailable:Ge(),audioIsNotExistHintCallback:Ye})&&Ne()}let ur=pi?xt:ze,Wn=v(()=>$e()!==null),Kn=v(()=>r(Wn)?$e():r(to)),Ro=v(()=>r(Kn)?ft("tooltip_pause"):ft("tooltip_play")),kr=ft("tooltip_episodes"),No=v(()=>{var lt,$t,Xi,zo;return r(or)?{id:"prevButton",type:"desktop-control-panel-left",weight:ns.prevButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ci.bind(null,!0)},tooltipEnabled:!(($t=(lt=O.callbacks)==null?void 0:lt.uiInfo)!=null&&$t.onPrevButtonMouseEnter)&&!((zo=(Xi=O.callbacks)==null?void 0:Xi.uiInfo)!=null&&zo.onPrevButtonMouseLeave),mouseEnter:()=>{var Ji,ci,Li;(Li=(ci=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ci.onPrevButtonMouseEnter)==null||Li.call(ci,sa(di(),Jt,"prevButton",e.showControls))},mouseLeave:()=>{var Ji,ci,Li;(Li=(ci=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ci.onPrevButtonMouseLeave)==null||Li.call(ci,sa(di(),Jt,"prevButton",e.showControls))},tooltipText:ft("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),pr=v(()=>r(it)?{id:"replayButton",type:"desktop-control-panel-left",weight:ns.replayButton,buttonComponent:tl,buttonComponentProps:{disabled:r(bn),click:ur},tooltipText:ft("tooltip_restart"),disabled:r(bn)}:void 0),Er=v(()=>r(yn)?{id:"playButton",type:"desktop-control-panel-left",weight:ns.playButton,buttonComponent:il,buttonComponentProps:{disabled:r(Rn),isPlaying:r(to),click:ze},tooltipText:r(Ro),disabled:r(Rn)}:void 0),Pr=v(()=>{var lt,$t,Xi,zo;return r(on)?{id:"nextButton",type:"desktop-control-panel-left",weight:ns.nextButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Eo.bind(null,!0)},tooltipEnabled:!(($t=(lt=O.callbacks)==null?void 0:lt.uiInfo)!=null&&$t.onNextButtonMouseEnter)&&!((zo=(Xi=O.callbacks)==null?void 0:Xi.uiInfo)!=null&&zo.onNextButtonMouseLeave),mouseEnter:()=>{var Ji,ci,Li;(Li=(ci=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ci.onNextButtonMouseEnter)==null||Li.call(ci,sa(di(),Jt,"nextButton",e.showControls))},mouseLeave:()=>{var Ji,ci,Li;(Li=(ci=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ci.onNextButtonMouseLeave)==null||Li.call(ci,sa(di(),Jt,"nextButton",e.showControls))},tooltipText:ft("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Ar=v(()=>pi&&r(On)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ns.playPrevChapterButton,buttonComponent:ud,buttonComponentProps:{disabled:r(Nn),click:e.playPrevChapter},tooltipText:ft("tooltip_interactive_go_back"),disabledTooltipContent:ft(So),disabled:r(Nn)}:void 0),Zi=v(()=>pi&&r(Di)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ns.seekToInteractiveButton,buttonComponent:fd,buttonComponentProps:{disabled:r(tr),click:e.seekToInteractive},tooltipText:ft("tooltip_interactive_seek"),disabled:r(tr),disabledTooltipContent:ft(we())}:void 0),Sn=v(()=>pi&&r(uo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ns.interactiveGraphButton,buttonComponent:md,buttonComponentProps:{disabled:r(wr),click:ji.toggle,graphIsOpened:A()},tooltipText:r(Hn)}:void 0),Mr=v(()=>r(nn)?{id:"liveButton",type:"desktop-control-panel-left",weight:ns.liveButton,buttonComponent:vd,buttonComponentProps:{isLiveActive:r(xn),ariaLabel:r(Uo)},tooltipText:r(Uo),disabled:r(xn)&&s()===Af.PLAYING}:void 0),at=v(()=>[r(No),r(pr),r(Er),r(Pr),r(Ar),r(Zi),r(Sn),r(Mr)].filter(lt=>!!lt).sort(Xs)),Ut=v(()=>r(Dn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ss.vkLogo,buttonComponent:id,buttonComponentProps:{targetUrl:Gt(),logoClickable:e.logoClickable,click:Qe},tooltipText:r(Cr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Mi=v(()=>r(sn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ss.autoplayNext,buttonComponent:pd,tooltipText:r(Tr)}:void 0),To=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:ss.volume,buttonComponent:rf,buttonComponentProps:{click:cr}})),Se=v(()=>r(Yi)?{id:"subtitles",type:"desktop-control-panel-right",weight:ss.subtitles,buttonComponent:Jp,buttonComponentProps:{isSubtitlesEnabled:r(Mo),click:ut},tooltipText:r(Fn)}:void 0),Pt=v(()=>r(an)?{id:"settings",type:"desktop-control-panel-right",weight:ss.settings,buttonComponent:Xa,buttonComponentProps:{ref$:lr},tooltipText:j()?void 0:ft("tooltip_settings_off")}:void 0),gi=v(()=>re.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ss.context,buttonComponent:Sf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(dn)},className:r(Wi)?"":"out-of-view",tooltipText:r(dn)}:void 0),_i=v(()=>r(Fo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ss.fullscreen,buttonComponent:td,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Un)}:void 0),mi=v(()=>r(rn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ss.chromecast,buttonComponent:od,buttonComponentProps:{state:b(),click:ir},tooltipText:r(nr)}:void 0),ke=v(()=>[r(Ut),r(Mi),r(To),r(Se),r(Pt),r(gi),r(_i),r(mi),...ee()].filter(lt=>!!lt).sort(Xs));var bt=cy(),Kt=pe(bt);let Si;var si=h(Kt);let Ur=v(()=>!r(Lo));na(si,{get isHidden(){return r(Ur)},get isAds(){return _t()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return k()},get ref(){return Jt.timeline},set ref(lt){Jt.timeline=lt}});var Fi=M(si,2),Qn=h(Fi),Cs=h(Qn);Ii(Cs,17,()=>r(at),lt=>lt.id,(lt,$t)=>{Yc(lt,{get buttonComponent(){return r($t).buttonComponent},get buttonComponentProps(){return r($t).buttonComponentProps},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r($t).disabled},get className(){return r($t).className},get tooltipEnabled(){return r($t).tooltipEnabled},get mouseEnter(){return r($t).mouseEnter},get mouseLeave(){return r($t).mouseLeave},get ref(){return Jt[r($t).id]},set ref(Xi){Jt[r($t).id]=Xi}})});var Gn=M(Cs,2);{var va=lt=>{let $t=v(()=>_t()?Ve():je()),Xi=v(()=>_t()?dt():ct());Jl(lt,{isMobile:!1,get showDuration(){return r(ar)},get position(){return r($t)},get duration(){return r(Xi)},get ref(){return Jt.time},set ref(zo){Jt.time=zo}})};R(Gn,lt=>{r(ln)&<(va)})}var sl=M(Gn,2);let ga=v(()=>!r(io));ko(sl,{className:"w-max",get disabled(){return r(ga)},tooltipContent:kr,get ref(){return Jt.episodes},set ref(lt){Jt.episodes=lt},children:(lt,$t)=>{var Xi=De(),zo=pe(Xi);{var Ji=ci=>{rd(ci,{get position(){return je()},get duration(){return ct()},timeCodes:co})};R(zo,ci=>{r(io)&&ci(Ji)})}$(lt,Xi)},$$slots:{default:!0}}),g(Qn);var ha=M(Qn,2);Ii(ha,21,()=>r(ke),lt=>lt.id,(lt,$t)=>{var Xi=De(),zo=pe(Xi);{var Ji=Li=>{Yc(Li,{get buttonComponent(){return r($t).buttonComponent},get buttonComponentProps(){return r($t).buttonComponentProps},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r($t).disabled},get className(){return r($t).className},get ref(){return Jt[r($t).id]},set ref(Is){Jt[r($t).id]=Is}})},ci=Li=>{let Is=v(()=>!!r($t).disabled);Pf(Li,{get id(){return r($t).id},get testId(){return r($t).testId},get icon(){return r($t).icon},get ariaLabel(){return r($t).ariaLabel},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r(Is)},get onClick(){return r($t).onClick},get ref(){return Jt[r($t).id]},set ref($a){Jt[r($t).id]=$a}})};R(zo,Li=>{jh(r($t))?Li(Ji):Li(ci,!1)})}$(lt,Xi)}),g(ha),g(Fi),pt(Fi,lt=>Ct(lt),()=>Ct()),g(Kt),pt(Kt,lt=>rt(lt),()=>rt());var _a=M(Kt,2);{var al=lt=>{dd(lt,{get ref(){return Jt.interactiveTimeIndicator},set ref($t){Jt.interactiveTimeIndicator=$t}})};R(_a,lt=>{Vn&<(al)})}E(lt=>Si=J(Kt,1,"wrapper-bottom svelte-1iedtj3",null,Si,lt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Br(Qn,"clientWidth",lt=>D(wn,lt)),$(t,bt),z(),o()}import{ChromecastState as Xh,PlaybackState as Jh}from"@vkontakte/videoplayer-core/es2018";import{noop as Zh}from"@vkontakte/videoplayer-shared/es2018";var py=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),fy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),my={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 Lf(t,e){W(t,my);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Zh),n=v(()=>o()===Zh),a=v(()=>r(n)||i()),s=X(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Lt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(p,m)=>{var b=De(),u=pe(b);{var _=y=>{var C=py();$(y,C)},w=y=>{var C=fy();E(()=>Be(C,"src",e.iconUrl)),St("error",C,d),Fs(C),$(y,C)};R(u,y=>{r(s)?y(_):y(w,!1)})}$(p,b)},$$slots:{default:!0}})}var vy=xe('<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 Vf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=vy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),$(t,o)}import{noop as gy}from"@vkontakte/videoplayer-shared/es2018";var hy=L('<span class="text svelte-6gmlbk"> </span>'),_y=L('<div aria-hidden="true"><!> <!></div>'),by={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function Zc(t,e){U(e,!0),W(t,by);let i=f(e,"muted",3,!1),o=f(e,"expanded",3,!1),n=f(e,"click",3,gy),a=f(e,"ref",15,void 0),d=Te().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=v(()=>o()?ys:Vf),m=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Lt(t,{get testId(){return r(m)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(b){a(b)},children:(b,u)=>{var _=_y();let w=v(()=>r(p)),y;var C=h(_);ki(C,()=>r(w),(P,A)=>{A(P,{})});var T=M(C,2);{var k=P=>{var A=hy(),I=h(A,!0);g(A),E(V=>ve(I,V),[()=>d("mobile_unmute")]),$(P,A)};R(T,P=>{o()&&P(k)})}g(_),E(P=>y=J(_,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),$(b,_)},$$slots:{default:!0}}),z()}var $y=xe('<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 Rf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=$y();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(3),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),$(t,o)}var yy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
256
|
+
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Nf(t,e){W(t,yy);let i=f(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");Rf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as xy}from"@vkontakte/videoplayer-shared/es2018";function Bf(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isPictureInPictureActive",3,!1),n=f(e,"click",3,xy),a=F("menu_pip");Lt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{Nf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}import{debounceFn as wy}from"@vkontakte/videoplayer-shared/es2018";var Sy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Cy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Ty=L("<div><!></div>"),Iy=L("<div><!></div>"),ky=L("<div><!></div>"),Ey=L("<!> <!> <!>",1),Py=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Ay=L("<div><!></div>"),My=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Ly=L("<!> <!> <div><!></div>",1),Vy=L('<div aria-hidden="true">\xB7</div> <!>',1),Ry=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Ny={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-1afsgkw {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
|
|
257
257
|
.wrapper-middle-left-second.svelte-1afsgkw,
|
|
258
258
|
.wrapper-middle-right.svelte-1afsgkw {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-1afsgkw {left:12px;}.wrapper-middle-left-second.svelte-1afsgkw {left:64px;}.wrapper-middle-right.svelte-1afsgkw {right:12px;}.controls.svelte-1afsgkw {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;}.controls.svelte-1afsgkw > *:not(:first-child) {margin-left:8px;}.hidden.svelte-1afsgkw {visibility:hidden;opacity:0;}.controls-hidden.svelte-1afsgkw {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1afsgkw {transition:none;}.overlay-mobile.svelte-1afsgkw {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
|
|
259
259
|
|
|
@@ -261,7 +261,7 @@ Try switching the\xA0quality to\xA0Auto.`},rh=X0;var es=new Map;es.set(ah.EN,rh)
|
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
@media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-1afsgkw {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-1afsgkw {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-1afsgkw {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw {left:96px;}.wrapper-middle-right.fullscreen.svelte-1afsgkw {right:44px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
|
|
264
|
-
}`};function Rf(t,e){var Ti,Yn;z(e,!0),W(t,Ly);let[i,o]=Be(),n=()=>S(lo,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(Ze,"$disabledControls$",i),s=()=>S(_t,"$playbackState$",i),d=()=>S($t,"$adPlaybackState",i),l=()=>S(At,"$isEnded$",i),p=()=>S(yo,"$playerSize",i),m=()=>S(Oe,"$scrubbingInProgress",i),$=()=>S(Jt,"$chromecastState$",i),u=()=>S(Ye,"$isPictureInPictureActive",i),_=()=>S(lt,"$pictureInPictureType$",i),w=()=>S(He,"$mobileNotReportControlHidden$",i),y=()=>S(vt,"$playerPhase",i),C=()=>S(wi,"$currentGridType$",i),T=()=>S(It,"$isLive$",i),E=()=>S(Xe,"$settingsMenuVisible",i),P=()=>S(re,"$isRewindableLive$",i),A=()=>S(_e,"$isActiveLive$",i),I=()=>S(zi,"$isInteractiveTime$",i),V=()=>S(Kt,"$isAudioAvailable$",i),F=()=>S(In,"$settingButtonRef$",i),j=()=>S(Gt,"$startedByKeyboard$",i),H=()=>S(Vt,"$isFullscreen",i),X=()=>S(et,"$mobileUnmuteButtonVisible",i),oe=()=>S(O,"$muted$",i),Z=()=>S(Ge,"$mobileUnmuteButtonExpanded",i),fe=()=>S(nn,"$additionalButtons$",i),ae=()=>S(Ui,"$crashed$",i),Me=()=>S(Ct,"$graphIsOpened$",i),Pe=()=>S(Mt,"$adPosition",i),he=()=>S(Si,"$adDuration",i),se=()=>S(wt,"$position$",i),Ae=()=>S(Je,"$duration$",i),ne=f(e,"playerControlsWrapperRef",15,void 0),B=f(e,"playerControlsRef",15,void 0),ue=f(e,"isAds",3,!1),ge=f(e,"logoTargetUrl",3,""),Ke=f(e,"isOneVideoPlaylist",3,!1),te=f(e,"customFullscreenSupported",3,!0),G=Ce(),K=ao(),Le=Ut(),Ne=G.actions.internal.toggleMuted,tt=G.actions.internal.togglePlay,we=G.actions.internal.pause,be=G.actions.internal.prevVideoClick,Ve=G.actions.internal.nextVideoClick,je=(Ti=G.callbacks)==null?void 0:Ti.onAudioDoesNotExistHint,it=(Yn=G.callbacks)==null?void 0:Yn.onAudioDisabledHint,vt=G.playerPhase,Je=G.state.duration$,wt=G.state.positionWithScrubbing$,_t=G.state.playbackState$,Kt=G.state.isAudioAvailable$,Qt=G.state.isAudioDisabled,At=G.state.isEnded$,It=G.state.isLive$,O=G.state.muted$,_e=G.state.isActiveLive$,re=G.state.isRewindableLive$,Oe=G.ui.scrubbingInProgress,He=G.ui.mobileNotReportControlHidden$,{isActive$:Ye,type$:lt}=K.pictureInPicture$,Ge=G.ui.mobileUnmuteButtonExpanded,et=G.ui.mobileUnmuteButtonVisible,Xe=G.ui.settingsMenu.visible$,Ue=G.ui.settingsMenu.openedByBtnKeyboard$,ut=G.ui.controls,zt=G.actions.internal.getVideoEpisodes(),We=G.webApi.pictureInPictureApi,Jt=G.state.chromecastState$,Ui=G.state.crashed$,Ze=ut.disabledControls$,Gt=G.ui.startedByKeyboard$,wi=G.ui.currentGridType$,Si=G.ads.duration,Mt=G.ads.position,$t=G.ads.playbackState,Vt=G.ui.isFullscreen,yo=G.ui.playerSize,nn=G.ui.additionalButtonsDeprecated$,Y=G.actions.internal.getVideoElement,jt=G.actions.internal.replayInteractive,ui=G.state.isInteractive,zi=G.state.isInteractiveTime$,ni=G.state.showInteractiveGraph,pi=G.state.showSeekToInteractive,ri=G.state.showPlayPrevChapter,dt=G.state.showInteractiveTimeIndicator,lo=K.seekToInteractiveDisabledTooltip$,Ct=K.graphIsOpened$,qt=v(()=>U(G.state.playPrevChapterDisabledTooltip)),ii=v(()=>U(n())),co=v(()=>a().has("EPISODE_BUTTON")),yn=v(()=>a().has("GRAPH_BUTTON")),Gi=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),xo=v(()=>a().has("PLAY_BUTTON")),li=v(()=>a().has("REPLAY_BUTTON")),yt=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),wo=v(()=>s()===Yh.PLAYING),Ai=v(()=>d()==="paused"),Ci=v(()=>l()&&!ue()&&!ui),Ho=v(()=>!l()||ue()),Zi=v(()=>e.showNextPrevButtons&&!ue()&&e.prevButtonActive),qi=v(()=>e.showNextPrevButtons&&!ue()&&e.nextButtonActive),xn=v(()=>p().width>300),wn=v(()=>p().width>400),Bi=v(m),rn=v(()=>$()!==jh.NOT_AVAILABLE&&!(u()&&_()===1)&&!w()&&!ui),So=v(()=>y()==="LiveWaitingStart"),Co=v(()=>!!We&&$()!==jh.CONNECTED&&!w()&&(_()===1&&r(So)||!r(So))&&!r(Bi)&&!ui),wr=v(()=>!r(Bi)&&Qi(C(),"s")),rr=v(()=>!e.logoHidden&&p().width>350),Sn=v(()=>Le.features.fullscreen&&!(u()&&_()===1)&&(ui?te():!0)&&!r(Bi)),zn=v(()=>(!T()||ue())&&p().width>260&&!r(Bi)&&!(Le.features.interactiveHideTime&&ui)),qn=v(()=>E()||e.showControls),uo=v(()=>!ue()&&!T()&&!!(zt!=null&&zt.length)&&r(xn)&&!r(co)&&!r(Bi)),Fo=v(()=>!P()||!!A()),Cn=v(()=>ni&&Qi(C(),"m")),nt=pe({}),Uo=$y(Xa,260);ze(()=>{p(),I(),Uo(Y(),ut,nt,e.showControls)});let sn=()=>G.actions.internal.toggleChromecast();function Tn(){$s({isAudioDisabled:Qt,audioDisabledHintCallback:it,isAudioAvailable:V(),audioIsNotExistHintCallback:je})&&Ne()}async function sr(){We!=null&&We.isActive()?await(We==null?void 0:We.remove()):await(We==null?void 0:We.request())}function zo(){!Qt&&V()&&et.set(!1),Tn()}let Wn=J(""),an=(pt,Ot)=>{if(!pt){D(Wn,pe(U("tooltip_live")));return}Ot&&Ot===Yh.PAUSED&&D(Wn,pe(U("tooltip_play")))};ze(()=>{an(r(Fo),s())});let In=de();ze(()=>{F()&&qa(F(),E(),Ue)}),ze(()=>{Gc(Gt,j(),nt.playButton)});var Di=My(),ji=ce(Di);{var kn=pt=>{var Ot=Iy(),Mi=ce(Ot);let Io;var rt=M(Mi,2);let Rt;var fi=h(rt);{var Oi=st=>{let Ht=v(()=>V()&&!Qt&&Z());Yc(st,{get muted(){return oe()},get expanded(){return r(Ht)},click:zo,get ref(){return nt.volume},set ref(Vi){nt.volume=Vi}})};R(fi,st=>{(!V()||X())&&st(Oi)})}g(rt);var po=M(rt,2);let xi;var Li=h(po);ki(Li,1,fe,({iconUrl:st,ariaLabel:Ht,testId:Vi,onClick:xe,tooltip:kt})=>st,(st,Ht)=>{let Vi=()=>r(Ht).iconUrl,xe=()=>r(Ht).ariaLabel,kt=()=>r(Ht).testId,mi=()=>r(Ht).onClick,hi=()=>r(Ht).tooltip,Eo=v(()=>{var ci;return(ci=xe())!=null?ci:hi()});Pf(st,{get iconUrl(){return Vi()},get ariaLabel(){return r(Eo)},get testId(){return kt()},get onClick(){return mi()}})});var gi=M(Li,2);{var fo=st=>{pd(st,{get ref(){return nt.autoplayNextToggle},set ref(Ht){nt.autoplayNextToggle=Ht}})};R(gi,st=>{e.showAutoplayNext&&!Ke()&&st(fo)})}var Xi=M(gi,2);{var Ji=st=>{od(st,{isMobile:!0,click:sn,get state(){return $()},get ref(){return nt.chromecast},set ref(Ht){nt.chromecast=Ht}})};R(Xi,st=>{r(rn)&&st(Ji)})}var un=M(Xi,2);{var Zn=st=>{Vf(st,{click:sr,get isPictureInPictureActive(){return u()},get ref(){return nt.pip},set ref(Ht){nt.pip=Ht}})};R(un,st=>{r(Co)&&st(Zn)})}var Xn=M(un,2);{var Tr=st=>{ja(st,{ref$:In})};R(Xn,st=>{ae()&&st(Tr)})}var Ir=M(Xn,2);{var An=st=>{id(st,{click:we,get targetUrl(){return ge()},get logoClickable(){return e.logoClickable},get ref(){return nt.vkLogo},set ref(Ht){nt.vkLogo=Ht}})};R(Ir,st=>{r(rr)&&st(An)})}g(po);var Mn=M(po,2);let ko;var kr=h(Mn);{var Ro=st=>{let Ht=v(()=>be.bind(null,!0));aa(st,{get click(){return r(Ht)},type:"prev",isMobile:!0,get ref(){return nt.prevButton},set ref(Vi){nt.prevButton=Vi}})};R(kr,st=>{r(Zi)&&st(Ro)})}var cr=M(kr,2);{var Er=st=>{el(st,{get disabled(){return r(xo)},click:tt,isMobile:!0,get isPlaying(){return r(wo)},get ref(){return nt.playButton},set ref(Ht){nt.playButton=Ht}})};R(cr,st=>{r(Ho)&&st(Er)})}var Pr=M(cr,2);{var ur=st=>{Ja(st,{get disabled(){return r(li)},click:tt,isMobile:!0,get ref(){return nt.replayButton},set ref(Ht){nt.replayButton=Ht}})};R(Pr,st=>{r(Ci)&&st(ur)})}var Yi=M(Pr,2);{var pn=st=>{let Ht=v(()=>Ve.bind(null,!0));aa(st,{get click(){return r(Ht)},type:"next",isMobile:!0,get ref(){return nt.nextButton},set ref(Vi){nt.nextButton=Vi}})};R(Yi,st=>{r(qi)&&st(pn)})}g(Mn);var Fr=M(Mn,2);{var pr=st=>{var Ht=Ty(),Vi=ce(Ht);{var xe=ci=>{var Ie=wy();let Tt;Ie.__click=[yy,yt,e,qt];var ei=h(Ie);let Ii=v(()=>!e.showControls);ud(ei,{get hidden(){return r(Ii)},get disabled(){return r(yt)},get click(){return e.playPrevChapter},get ref(){return nt.playPrevChapterButton},set ref(oi){nt.playPrevChapterButton=oi}}),g(Ie),k(oi=>Tt=ee(Ie,1,"wrapper-middle-left svelte-1afsgkw",null,Tt,oi),[()=>({fullscreen:H(),hidden:!e.showControls})]),b(ci,Ie)};R(Vi,ci=>{ri&&ci(xe)})}var kt=M(Vi,2);{var mi=ci=>{var Ie=Sy();let Tt;var ei=h(Ie);let Ii=v(()=>!e.showControls&&!Me());md(ei,{get hidden(){return r(Ii)},get disabled(){return r(yn)},get click(){return Ct.toggle},get graphIsOpened(){return Me()},get ref(){return nt.interactiveGraphButton},set ref(oi){nt.interactiveGraphButton=oi}}),g(Ie),k(oi=>Tt=ee(Ie,1,El(ri?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",Tt,oi),[()=>({fullscreen:H(),hidden:!e.showControls&&!Me()})]),b(ci,Ie)};R(kt,ci=>{r(Cn)&&ci(mi)})}var hi=M(kt,2);{var Eo=ci=>{var Ie=Cy();let Tt;Ie.__click=[xy,Gi,e,ii];var ei=h(Ie);let Ii=v(()=>!e.showControls);fd(ei,{get hidden(){return r(Ii)},get disabled(){return r(Gi)},get click(){return e.seekToInteractive},get ref(){return nt.seekToInteractiveButton},set ref(oi){nt.seekToInteractiveButton=oi}}),g(Ie),k(oi=>Tt=ee(Ie,1,"wrapper-middle-right svelte-1afsgkw",null,Tt,oi),[()=>({fullscreen:H(),hidden:!e.showControls})]),b(ci,Ie)};R(hi,ci=>{pi&&ci(Eo)})}b(st,Ht)};R(Fr,st=>{ui&&!m()&&st(pr)})}k((st,Ht,Vi,xe)=>{Io=ee(Mi,1,"overlay-mobile svelte-1afsgkw",null,Io,st),Rt=ee(rt,1,"wrapper-top-left svelte-1afsgkw",null,Rt,Ht),xi=ee(po,1,"wrapper-top-right svelte-1afsgkw",null,xi,Vi),ko=ee(Mn,1,"wrapper-middle svelte-1afsgkw",null,ko,xe)},[()=>({hidden:!r(qn)}),()=>({hidden:!e.showControls,fullscreen:H()}),()=>({hidden:!e.showControls&&!w(),fullscreen:H()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),b(pt,Ot)};R(ji,pt=>{ue()||pt(kn)})}var Mo=M(ji,2);{var En=pt=>{var Ot=Py(),Mi=ce(Ot);{var Io=xi=>{var Li=ky();let gi;var fo=h(Li);Yc(fo,{get muted(){return oe()},expanded:!1,click:zo,get ref(){return nt.volume},set ref(Xi){nt.volume=Xi}}),g(Li),k(Xi=>gi=ee(Li,1,"wrapper-top-right svelte-1afsgkw",null,gi,Xi),[()=>({fullscreen:H()})]),b(xi,Li)};R(Mi,xi=>{X()&&xi(Io)})}var rt=M(Mi,2);{var Rt=xi=>{var Li=Ey(),gi=h(Li);let fo=v(()=>!r(Ai));el(gi,{get disabled(){return r(xo)},click:tt,isMobile:!0,get isPlaying(){return r(fo)},get ref(){return nt.playButton},set ref(Xi){nt.playButton=Xi}}),g(Li),b(xi,Li)};R(rt,xi=>{r(Ai)&&xi(Rt)})}var fi=M(rt,2);let Oi;var po=h(fi);nd(po,{get position(){return Pe()},get duration(){return he()}}),g(fi),k(xi=>Oi=ee(fi,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Oi,xi),[()=>({fullscreen:H()})]),b(pt,Ot)};R(Mo,pt=>{ue()&&d()!=="inactive"&&pt(En)})}var qo=M(Mo,2);let Lo;var vi=h(qo);let Kn;var To=h(vi);ee(To,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var ar=h(To);{var ln=pt=>{Ao(pt,{get disabled(){return r(li)},get ref(){return nt.replayButton},set ref(Ot){nt.replayButton=Ot},children:(Ot,Mi)=>{Ja(Ot,{get disabled(){return r(li)},click:jt})},$$slots:{default:!0}})};R(ar,pt=>{ui&&pt(ln)})}var dn=M(ar,2);{var lr=pt=>{Ao(pt,{get ref(){return nt.liveButton},set ref(Ot){nt.liveButton=Ot},children:(Ot,Mi)=>{vd(Ot,{get isLiveActive(){return r(Fo)},isMobile:!0,get ariaLabel(){return r(Wn)}})},$$slots:{default:!0}})};R(dn,pt=>{!ue()&&T()&&pt(lr)})}var Wo=M(dn,2);{var Sr=pt=>{let Ot=v(()=>ue()?Pe():se()),Mi=v(()=>ue()?he():Ae());Jl(pt,{get showDuration(){return r(wn)},get position(){return r(Ot)},get duration(){return r(Mi)},isMobile:!0,get ref(){return nt.time},set ref(Io){nt.time=Io}})};R(Wo,pt=>{r(zn)&&pt(Sr)})}var Pn=M(Wo,2);let Qn=v(()=>!r(uo));Ao(Pn,{className:"w-max",get disabled(){return r(Qn)},get ref(){return nt.episodes},set ref(pt){nt.episodes=pt},children:(pt,Ot)=>{var Mi=Fe(),Io=ce(Mi);{var rt=Rt=>{var fi=Ay(),Oi=M(ce(fi),2);rd(Oi,{get position(){return se()},get duration(){return Ae()},timeCodes:zt}),b(Rt,fi)};R(Io,Rt=>{r(uo)&&Rt(rt)})}b(pt,Mi)},$$slots:{default:!0}});var dr=M(Pn,2);{var Cr=pt=>{Ao(pt,{get ref(){return nt.settings},set ref(Ot){nt.settings=Ot},children:(Ot,Mi)=>{ja(Ot,{ref$:In})},$$slots:{default:!0}})};R(dr,pt=>{r(wr)&&pt(Cr)})}var Gn=M(dr,2);{var cn=pt=>{Ao(pt,{get ref(){return nt.fullscreen},set ref(Ot){nt.fullscreen=Ot},children:(Ot,Mi)=>{td(Ot,{get click(){return e.toggleFullscreen},get isFullscreen(){return H()}})},$$slots:{default:!0}})};R(Gn,pt=>{r(Sn)&&pt(cn)})}g(To),ct(To,pt=>B(pt),()=>B());var jn=M(To,2);na(jn,{get isAds(){return ue()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return nt.timeline},set ref(pt){nt.timeline=pt}}),g(vi),g(qo),ct(qo,pt=>ne(pt),()=>ne());var di=M(qo,2);{var Vo=pt=>{dd(pt,{get ref(){return nt.interactiveTimeIndicator},set ref(Ot){nt.interactiveTimeIndicator=Ot}})};R(di,pt=>{dt&&pt(Vo)})}k((pt,Ot)=>{Lo=ee(qo,1,"wrapper-bottom svelte-1afsgkw",null,Lo,pt),Kn=ee(vi,1,"controls-wrapper svelte-1afsgkw",null,Kn,Ot)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:H()})]),b(t,Di),q(),o()}at(["click"]);function hd(t,e){z(e,!0);let[i,o]=Be(),n=()=>S(T,"$isMobile",i),a=f(e,"bottomNoSmooth",3,!1),s=f(e,"playerControlsWrapperRef",15,void 0),d=f(e,"playerControlsRef",15,void 0),l=f(e,"isAds",3,!1),p=f(e,"logoTargetUrl",3,""),m=f(e,"showAutoplayNext",3,!1),$=f(e,"isOneVideoPlaylist",3,!1),u=f(e,"customFullscreenSupported",3,!0),_=f(e,"endScreenShown",3,!1),w=f(e,"onDisabledPlayPrevChapterClick",3,Zh),y=f(e,"onDisabledSeekToInteractiveClick",3,Zh),T=Ce().ui.isMobile,E=J(!1);Ft(()=>{let V=setTimeout(()=>D(E,!0),0);return()=>clearTimeout(V)});var P=Fe(),A=ce(P);{var I=V=>{var F=Fe(),j=ce(F);{var H=oe=>{Rf(oe,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return $()},get customFullscreenSupported(){return u()},get endScreenShown(){return _()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},X=oe=>{Ef(oe,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return $()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};R(j,oe=>{n()?oe(H):oe(X,!1)})}b(V,F)};R(A,V=>{r(E)&&V(I)})}b(t,P),q(),o()}var Vy=ye('<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 Nf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),b(t,o)}function Bf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Nf(t,{get style(){return r(o)}})}var Ry=ye('<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 Df(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),b(t,o)}var Ny=ye('<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 Of(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),b(t,o)}function Zc(t,e){let i=f(e,"isOff",3,!1);var o=Fe(),n=ce(o);{var a=d=>{Of(d,{})},s=d=>{Df(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var By=ye('<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 Hf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=By();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),b(t,o)}function Ff(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Hf(t,{get style(){return r(o)}})}var Dy=ye('<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 Uf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),b(t,o)}function zf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Uf(t,{get style(){return r(o)}})}var Oy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Hy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Fy=L("<div><!></div>"),Uy={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
|
|
264
|
+
}`};function Df(t,e){var Ti,sr;U(e,!0),W(t,Ny);let[i,o]=Re(),n=()=>S(Mt,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(Ni,"$disabledControls$",i),s=()=>S(Gt,"$playbackState$",i),d=()=>S(co,"$adPlaybackState",i),l=()=>S(Vt,"$isEnded$",i),p=()=>S(hn,"$playerSize",i),m=()=>S(ze,"$scrubbingInProgress",i),b=()=>S(Je,"$chromecastState$",i),u=()=>S(ut,"$isPictureInPictureActive",i),_=()=>S(Ye,"$pictureInPictureType$",i),w=()=>S(Qe,"$mobileNotReportControlHidden$",i),y=()=>S(rt,"$playerPhase",i),C=()=>S(At,"$currentGridType$",i),T=()=>S(O,"$isLive$",i),k=()=>S(qe,"$settingsMenuVisible",i),P=()=>S(Ne,"$isRewindableLive$",i),A=()=>S(re,"$isActiveLive$",i),I=()=>S(Bi,"$isInteractiveTime$",i),V=()=>S(ni,"$isAudioAvailable$",i),q=()=>S(Yi,"$settingButtonRef$",i),Q=()=>S(zi,"$startedByKeyboard$",i),H=()=>S(en,"$isFullscreen",i),Y=()=>S(tt,"$mobileUnmuteButtonVisible",i),ne=()=>S(Xe,"$volumeHidden",i),Z=()=>S(_e,"$muted$",i),de=()=>S(et,"$mobileUnmuteButtonExpanded",i),ce=()=>S($o,"$additionalButtons$",i),Le=()=>S(Zt,"$crashed$",i),Ae=()=>S(eo,"$graphIsOpened$",i),he=()=>S(Rt,"$adPosition",i),se=()=>S(ht,"$adDuration",i),Me=()=>S(_t,"$position$",i),oe=()=>S(Ct,"$duration$",i),B=f(e,"playerControlsWrapperRef",15,void 0),be=f(e,"playerControlsRef",15,void 0),le=f(e,"isAds",3,!1),We=f(e,"logoTargetUrl",3,""),ee=f(e,"isOneVideoPlaylist",3,!1),me=f(e,"customFullscreenSupported",3,!0),j=Te(),te=lo(),Oe=qt(),Ge=j.actions.internal.toggleMuted,$e=j.actions.internal.togglePlay,we=j.actions.internal.pause,Ve=j.actions.internal.prevVideoClick,je=j.actions.internal.nextVideoClick,dt=(Ti=j.callbacks)==null?void 0:Ti.onAudioDoesNotExistHint,ct=(sr=j.callbacks)==null?void 0:sr.onAudioDisabledHint,rt=j.playerPhase,Ct=j.state.duration$,_t=j.state.positionWithScrubbing$,Gt=j.state.playbackState$,ni=j.state.isAudioAvailable$,It=j.state.isAudioDisabled,Vt=j.state.isEnded$,O=j.state.isLive$,_e=j.state.muted$,re=j.state.isActiveLive$,Ne=j.state.isRewindableLive$,ze=j.ui.scrubbingInProgress,Qe=j.ui.mobileNotReportControlHidden$,{isActive$:ut,type$:Ye}=te.pictureInPicture$,et=j.ui.mobileUnmuteButtonExpanded,tt=j.ui.mobileUnmuteButtonVisible,qe=j.ui.settingsMenu.visible$,gt=j.ui.settingsMenu.openedByBtnKeyboard$,Ht=j.ui.controls,{volume:Xe}=j.ui.hiddenControls,Qt=j.actions.internal.getVideoEpisodes(),ti=j.webApi.pictureInPictureApi,Je=j.state.chromecastState$,Zt=j.state.crashed$,Ni=Ht.disabledControls$,zi=j.ui.startedByKeyboard$,At=j.ui.currentGridType$,ht=j.ads.duration,Rt=j.ads.position,co=j.ads.playbackState,en=j.ui.isFullscreen,hn=j.ui.playerSize,$o=j.ui.additionalButtonsDeprecated$,G=j.actions.internal.getVideoElement,Xt=j.actions.internal.replayInteractive,ri=j.state.isInteractive,Bi=j.state.isInteractiveTime$,li=j.state.showInteractiveGraph,ft=j.state.showSeekToInteractive,ui=j.state.showPlayPrevChapter,Ze=j.state.showInteractiveTimeIndicator,Mt=te.seekToInteractiveDisabledTooltip$,eo=te.graphIsOpened$,ii=v(()=>F(j.state.playPrevChapterDisabledTooltip)),er=v(()=>F(n())),yo=v(()=>a().has("EPISODE_BUTTON")),Ho=v(()=>a().has("GRAPH_BUTTON")),di=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),xt=v(()=>a().has("PLAY_BUTTON")),Ci=v(()=>a().has("REPLAY_BUTTON")),Eo=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),pi=v(()=>s()===Jh.PLAYING),Po=v(()=>d()==="paused"),qi=v(()=>l()&&!le()&&!ri),xo=v(()=>!l()||le()),wo=v(()=>e.showNextPrevButtons&&!le()&&e.prevButtonActive),Vn=v(()=>e.showNextPrevButtons&&!le()&&e.nextButtonActive),So=v(()=>p().width>300),_n=v(()=>p().width>400),ji=v(m),Ao=v(()=>b()!==Xh.NOT_AVAILABLE&&!(u()&&_()===1)&&!w()&&!ri),tn=v(()=>y()==="LiveWaitingStart"),wr=v(()=>!!ti&&b()!==Xh.CONNECTED&&!w()&&(_()===1&&r(tn)||!r(tn))&&!r(ji)&&!ri),tr=v(()=>!r(ji)&&Gi(C(),"s")),Rn=v(()=>!e.logoHidden&&p().width>350),bn=v(()=>Oe.features.fullscreen&&!(u()&&_()===1)&&(ri?me():!0)&&!r(ji)),Nn=v(()=>(!T()||le())&&p().width>260&&!r(ji)&&!(Oe.features.interactiveHideTime&&ri)),ir=v(()=>k()||e.showControls),to=v(()=>!le()&&!T()&&!!(Qt!=null&&Qt.length)&&r(So)&&!r(yo)&&!r(ji)),Mo=v(()=>!P()||!!A()),$n=v(()=>li&&Gi(C(),"m")),it=fe({}),yn=wy(el,260);He(()=>{p(),I(),yn(G(),Ht,it,e.showControls)});let Bn=()=>j.actions.internal.toggleChromecast();function on(){$s({isAudioDisabled:It,audioDisabledHintCallback:ct,isAudioAvailable:V(),audioIsNotExistHintCallback:dt})&&Ge()}async function or(){ti!=null&&ti.isActive()?await(ti==null?void 0:ti.remove()):await(ti==null?void 0:ti.request())}function nn(){!It&&V()&&tt.set(!1),on()}let rn=X(""),sn=(mt,Ft)=>{if(!mt){D(rn,fe(F("tooltip_live")));return}Ft&&Ft===Jh.PAUSED&&D(rn,fe(F("tooltip_play")))};He(()=>{sn(r(Mo),s())});let Yi=ae();He(()=>{q()&&Qa(q(),k(),gt)}),He(()=>{jc(zi,Q(),it.playButton)});var Wi=Ry(),an=pe(Wi);{var Dn=mt=>{var Ft=Py(),Pi=pe(Ft);let Co;var ot=M(Pi,2);let Nt;var fi=h(ot);{var Oi=at=>{let Ut=v(()=>V()&&!It&&de());Zc(at,{get muted(){return Z()},get expanded(){return r(Ut)},click:nn,get ref(){return it.volume},set ref(Mi){it.volume=Mi}})};R(fi,at=>{(!V()||Y())&&!ne()&&at(Oi)})}g(ot);var po=M(ot,2);let wi;var Ai=h(po);Ii(Ai,1,ce,({iconUrl:at,ariaLabel:Ut,testId:Mi,onClick:To,tooltip:Se})=>at,(at,Ut)=>{let Mi=()=>r(Ut).iconUrl,To=()=>r(Ut).ariaLabel,Se=()=>r(Ut).testId,Pt=()=>r(Ut).onClick,gi=()=>r(Ut).tooltip,_i=v(()=>{var mi;return(mi=To())!=null?mi:gi()});Lf(at,{get iconUrl(){return Mi()},get ariaLabel(){return r(_i)},get testId(){return Se()},get onClick(){return Pt()}})});var vi=M(Ai,2);{var hi=at=>{pd(at,{get ref(){return it.autoplayNextToggle},set ref(Ut){it.autoplayNextToggle=Ut}})};R(vi,at=>{e.showAutoplayNext&&!ee()&&at(hi)})}var Hi=M(vi,2);{var zn=at=>{od(at,{isMobile:!0,click:Bn,get state(){return b()},get ref(){return it.chromecast},set ref(Ut){it.chromecast=Ut}})};R(Hi,at=>{r(Ao)&&at(zn)})}var ar=M(Hi,2);{var qn=at=>{Bf(at,{click:or,get isPictureInPictureActive(){return u()},get ref(){return it.pip},set ref(Ut){it.pip=Ut}})};R(ar,at=>{r(wr)&&at(qn)})}var lr=M(ar,2);{var dr=at=>{Xa(at,{ref$:Yi})};R(lr,at=>{Le()&&at(dr)})}var cr=M(lr,2);{var ur=at=>{id(at,{click:we,get targetUrl(){return We()},get logoClickable(){return e.logoClickable},get ref(){return it.vkLogo},set ref(Ut){it.vkLogo=Ut}})};R(cr,at=>{r(Rn)&&at(ur)})}g(po);var Wn=M(po,2);let Kn;var Ro=h(Wn);{var kr=at=>{let Ut=v(()=>Ve.bind(null,!0));aa(at,{get click(){return r(Ut)},type:"prev",isMobile:!0,get ref(){return it.prevButton},set ref(Mi){it.prevButton=Mi}})};R(Ro,at=>{r(wo)&&at(kr)})}var No=M(Ro,2);{var pr=at=>{il(at,{get disabled(){return r(xt)},click:$e,isMobile:!0,get isPlaying(){return r(pi)},get ref(){return it.playButton},set ref(Ut){it.playButton=Ut}})};R(No,at=>{r(xo)&&at(pr)})}var Er=M(No,2);{var Pr=at=>{tl(at,{get disabled(){return r(Ci)},click:$e,isMobile:!0,get ref(){return it.replayButton},set ref(Ut){it.replayButton=Ut}})};R(Er,at=>{r(qi)&&at(Pr)})}var Ar=M(Er,2);{var Zi=at=>{let Ut=v(()=>je.bind(null,!0));aa(at,{get click(){return r(Ut)},type:"next",isMobile:!0,get ref(){return it.nextButton},set ref(Mi){it.nextButton=Mi}})};R(Ar,at=>{r(Vn)&&at(Zi)})}g(Wn);var Sn=M(Wn,2);{var Mr=at=>{var Ut=Ey(),Mi=pe(Ut);{var To=mi=>{var ke=Ty();let bt;ke.__click=[Sy,Eo,e,ii];var Kt=h(ke);let Si=v(()=>!e.showControls);ud(Kt,{get hidden(){return r(Si)},get disabled(){return r(Eo)},get click(){return e.playPrevChapter},get ref(){return it.playPrevChapterButton},set ref(si){it.playPrevChapterButton=si}}),g(ke),E(si=>bt=J(ke,1,"wrapper-middle-left svelte-1afsgkw",null,bt,si),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(mi,ke)};R(Mi,mi=>{ui&&mi(To)})}var Se=M(Mi,2);{var Pt=mi=>{var ke=Iy();let bt;var Kt=h(ke);let Si=v(()=>!e.showControls&&!Ae());md(Kt,{get hidden(){return r(Si)},get disabled(){return r(Ho)},get click(){return eo.toggle},get graphIsOpened(){return Ae()},get ref(){return it.interactiveGraphButton},set ref(si){it.interactiveGraphButton=si}}),g(ke),E(si=>bt=J(ke,1,El(ui?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",bt,si),[()=>({fullscreen:H(),hidden:!e.showControls&&!Ae()})]),$(mi,ke)};R(Se,mi=>{r($n)&&mi(Pt)})}var gi=M(Se,2);{var _i=mi=>{var ke=ky();let bt;ke.__click=[Cy,di,e,er];var Kt=h(ke);let Si=v(()=>!e.showControls);fd(Kt,{get hidden(){return r(Si)},get disabled(){return r(di)},get click(){return e.seekToInteractive},get ref(){return it.seekToInteractiveButton},set ref(si){it.seekToInteractiveButton=si}}),g(ke),E(si=>bt=J(ke,1,"wrapper-middle-right svelte-1afsgkw",null,bt,si),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(mi,ke)};R(gi,mi=>{ft&&mi(_i)})}$(at,Ut)};R(Sn,at=>{ri&&!m()&&at(Mr)})}E((at,Ut,Mi,To)=>{Co=J(Pi,1,"overlay-mobile svelte-1afsgkw",null,Co,at),Nt=J(ot,1,"wrapper-top-left svelte-1afsgkw",null,Nt,Ut),wi=J(po,1,"wrapper-top-right svelte-1afsgkw",null,wi,Mi),Kn=J(Wn,1,"wrapper-middle svelte-1afsgkw",null,Kn,To)},[()=>({hidden:!r(ir)}),()=>({hidden:!e.showControls,fullscreen:H()}),()=>({hidden:!e.showControls&&!w(),fullscreen:H()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),$(mt,Ft)};R(an,mt=>{le()||mt(Dn)})}var Fo=M(an,2);{var ln=mt=>{var Ft=Ly(),Pi=pe(Ft);{var Co=wi=>{var Ai=Ay();let vi;var hi=h(Ai);Zc(hi,{get muted(){return Z()},expanded:!1,click:nn,get ref(){return it.volume},set ref(Hi){it.volume=Hi}}),g(Ai),E(Hi=>vi=J(Ai,1,"wrapper-top-right svelte-1afsgkw",null,vi,Hi),[()=>({fullscreen:H()})]),$(wi,Ai)};R(Pi,wi=>{Y()&&wi(Co)})}var ot=M(Pi,2);{var Nt=wi=>{var Ai=My(),vi=h(Ai);let hi=v(()=>!r(Po));il(vi,{get disabled(){return r(xt)},click:$e,isMobile:!0,get isPlaying(){return r(hi)},get ref(){return it.playButton},set ref(Hi){it.playButton=Hi}}),g(Ai),$(wi,Ai)};R(ot,wi=>{r(Po)&&wi(Nt)})}var fi=M(ot,2);let Oi;var po=h(fi);nd(po,{get position(){return he()},get duration(){return se()}}),g(fi),E(wi=>Oi=J(fi,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Oi,wi),[()=>({fullscreen:H()})]),$(mt,Ft)};R(Fo,mt=>{le()&&d()!=="inactive"&&mt(ln)})}var Lo=M(Fo,2);let uo;var Di=h(Lo);let On;var io=h(Di);J(io,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var xn=h(io);{var Hn=mt=>{ko(mt,{get disabled(){return r(Ci)},get ref(){return it.replayButton},set ref(Ft){it.replayButton=Ft},children:(Ft,Pi)=>{tl(Ft,{get disabled(){return r(Ci)},click:Xt})},$$slots:{default:!0}})};R(xn,mt=>{ri&&mt(Hn)})}var dn=M(xn,2);{var Sr=mt=>{ko(mt,{get ref(){return it.liveButton},set ref(Ft){it.liveButton=Ft},children:(Ft,Pi)=>{vd(Ft,{get isLiveActive(){return r(Mo)},isMobile:!0,get ariaLabel(){return r(rn)}})},$$slots:{default:!0}})};R(dn,mt=>{!le()&&T()&&mt(Sr)})}var Uo=M(dn,2);{var Cr=mt=>{let Ft=v(()=>le()?he():Me()),Pi=v(()=>le()?se():oe());Jl(mt,{get showDuration(){return r(_n)},get position(){return r(Ft)},get duration(){return r(Pi)},isMobile:!0,get ref(){return it.time},set ref(Co){it.time=Co}})};R(Uo,mt=>{r(Nn)&&mt(Cr)})}var Fn=M(Uo,2);let Un=v(()=>!r(to));ko(Fn,{className:"w-max",get disabled(){return r(Un)},get ref(){return it.episodes},set ref(mt){it.episodes=mt},children:(mt,Ft)=>{var Pi=De(),Co=pe(Pi);{var ot=Nt=>{var fi=Vy(),Oi=M(pe(fi),2);rd(Oi,{get position(){return Me()},get duration(){return oe()},timeCodes:Qt}),$(Nt,fi)};R(Co,Nt=>{r(to)&&Nt(ot)})}$(mt,Pi)},$$slots:{default:!0}});var nr=M(Fn,2);{var Tr=mt=>{ko(mt,{get ref(){return it.settings},set ref(Ft){it.settings=Ft},children:(Ft,Pi)=>{Xa(Ft,{ref$:Yi})},$$slots:{default:!0}})};R(nr,mt=>{r(tr)&&mt(Tr)})}var wn=M(nr,2);{var Jt=mt=>{ko(mt,{get ref(){return it.fullscreen},set ref(Ft){it.fullscreen=Ft},children:(Ft,Pi)=>{td(Ft,{get click(){return e.toggleFullscreen},get isFullscreen(){return H()}})},$$slots:{default:!0}})};R(wn,mt=>{r(bn)&&mt(Jt)})}g(io),pt(io,mt=>be(mt),()=>be());var rr=M(io,2);na(rr,{get isAds(){return le()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return it.timeline},set ref(mt){it.timeline=mt}}),g(Di),g(Lo),pt(Lo,mt=>B(mt),()=>B());var Ir=M(Lo,2);{var Vo=mt=>{dd(mt,{get ref(){return it.interactiveTimeIndicator},set ref(Ft){it.interactiveTimeIndicator=Ft}})};R(Ir,mt=>{Ze&&mt(Vo)})}E((mt,Ft)=>{uo=J(Lo,1,"wrapper-bottom svelte-1afsgkw",null,uo,mt),On=J(Di,1,"controls-wrapper svelte-1afsgkw",null,On,Ft)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:H()})]),$(t,Wi),z(),o()}st(["click"]);function hd(t,e){U(e,!0);let[i,o]=Re(),n=()=>S(T,"$isMobile",i),a=f(e,"bottomNoSmooth",3,!1),s=f(e,"playerControlsWrapperRef",15,void 0),d=f(e,"playerControlsRef",15,void 0),l=f(e,"isAds",3,!1),p=f(e,"logoTargetUrl",3,""),m=f(e,"showAutoplayNext",3,!1),b=f(e,"isOneVideoPlaylist",3,!1),u=f(e,"customFullscreenSupported",3,!0),_=f(e,"endScreenShown",3,!1),w=f(e,"onDisabledPlayPrevChapterClick",3,e1),y=f(e,"onDisabledSeekToInteractiveClick",3,e1),T=Te().ui.isMobile,k=X(!1);zt(()=>{let V=setTimeout(()=>D(k,!0),0);return()=>clearTimeout(V)});var P=De(),A=pe(P);{var I=V=>{var q=De(),Q=pe(q);{var H=ne=>{Df(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return b()},get customFullscreenSupported(){return u()},get endScreenShown(){return _()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},Y=ne=>{Mf(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return b()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};R(Q,ne=>{n()?ne(H):ne(Y,!1)})}$(V,q)};R(A,V=>{r(k)&&V(I)})}$(t,P),z(),o()}var By=xe('<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 Of(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=By();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),$(t,o)}function Hf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Of(t,{get style(){return r(o)}})}var Dy=xe('<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 Ff(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),$(t,o)}var Oy=xe('<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 Uf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Oy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),$(t,o)}function Xc(t,e){let i=f(e,"isOff",3,!1);var o=De(),n=pe(o);{var a=d=>{Uf(d,{})},s=d=>{Ff(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}$(t,o)}var Hy=xe('<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 zf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Hy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),$(t,o)}function qf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);zf(t,{get style(){return r(o)}})}var Fy=xe('<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 Wf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),$(t,o)}function Kf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Wf(t,{get style(){return r(o)}})}var Uy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),zy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),qy=L("<div><!></div>"),Wy={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;
|
|
265
265
|
animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
|
|
266
266
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
|
|
267
267
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
|
|
@@ -276,23 +276,23 @@ Try switching the\xA0quality to\xA0Auto.`},rh=X0;var es=new Map;es.set(ah.EN,rh)
|
|
|
276
276
|
@keyframes svelte-1ad3n06-fadeOut {
|
|
277
277
|
0% {opacity:1;}
|
|
278
278
|
100% {opacity:0;}
|
|
279
|
-
}`};function
|
|
280
|
-
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function da(t,e){
|
|
279
|
+
}`};function Qf(t,e){U(e,!0),W(t,Wy);let[i,o]=Re(),n=()=>S(e.data,"$data",i),s=Te().ui.t,d=v(()=>!n()),l=v(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),p=v(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),m=v(()=>{var C;return(C=n())==null?void 0:C.type}),b=v(()=>{var C,T;return(C=n())!=null&&C.t?s(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=qy();let _;var w=h(u);{var y=C=>{var T=zy(),k=pe(T),P=h(k);{var A=ee=>{let me=v(()=>r(m)==="FORWARD_SEEK");Hf(ee,{get reversed(){return r(me)}})};R(P,ee=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(m))&&ee(A)})}var I=M(P,2);{var V=ee=>{rs(ee,{})};R(I,ee=>{r(m)==="PAUSE"&&ee(V)})}var q=M(I,2);{var Q=ee=>{yr(ee,{})};R(q,ee=>{r(m)==="PLAY"&&ee(Q)})}var H=M(q,2);{var Y=ee=>{cd(ee,{})};R(H,ee=>{r(m)==="REPLAY"&&ee(Y)})}var ne=M(H,2);{var Z=ee=>{Xc(ee,{isOff:!0})};R(ne,ee=>{r(m)==="SUBTITLES_OFF"&&ee(Z)})}var de=M(ne,2);{var ce=ee=>{Xc(ee,{})};R(de,ee=>{r(m)==="SUBTITLES_ON"&&ee(ce)})}var Le=M(de,2);{var Ae=ee=>{let me=v(()=>r(m)==="RATE_UP");qf(ee,{get reversed(){return r(me)}})};R(Le,ee=>{["RATE_DOWN","RATE_UP"].includes(r(m))&&ee(Ae)})}var he=M(Le,2);{var se=ee=>{let me=v(()=>r(m)==="EPISODE_NEXT");Kf(ee,{get reversed(){return r(me)}})};R(he,ee=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(m))&&ee(se)})}var Me=M(he,2);{var oe=ee=>{ys(ee,{volume:0})};R(Me,ee=>{r(m)==="MUTE"&&ee(oe)})}var B=M(Me,2);{var be=ee=>{ys(ee,{volume:1})};R(B,ee=>{r(m)==="VOLUME"&&ee(be)})}g(k);var le=M(k,2);{var We=ee=>{var me=Uy(),j=h(me,!0);g(me),E(()=>ve(j,r(b))),$(ee,me)};R(le,ee=>{r(b)&&ee(We)})}$(C,T)};R(w,C=>{!r(d)&&r(m)&&C(y)})}g(u),E(C=>_=J(u,1,"hot-key-helpers-container svelte-1ad3n06",null,_,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(p)})]),$(t,u),z(),o()}var Ky=xe('<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 Gf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ky();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),$(t,o)}var Qy=xe('<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 jf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),$(t,o)}function Ss(t,e){U(e,!0);let i=f(e,"direction",3,"left"),o=f(e,"useBtnColor",3,!1),n=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),s=v(()=>(()=>{let b="";return r(a)&&(b+="transform: rotate(180deg);"),o()&&(b+="color: var(--btn-color, #fff);"),b.length?b:void 0})());var d=De(),l=pe(d);{var p=b=>{let u=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");Gf(b,{get style(){return r(s)},get"data-testid"(){return r(u)}})},m=b=>{let u=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");jf(b,{get style(){return r(s)},get"data-testid"(){return r(u)}})};R(l,b=>{r(n)?b(p):b(m,!1)})}$(t,d),z()}var Gy=(t,e,i,o,n,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":a();break}},jy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Yy=L('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),Zy={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 _d(t,e){U(e,!0),W(t,Zy);let i=f(e,"isShifted",3,!1),o=Te(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),m=F("aria_label_spherical_control");var b=Yy();let u;b.__keydown=[Gy,n,a,s,l,d],b.__keyup=[jy,n,p],Be(b,"aria-label",m);var _=h(b),w=h(_),y=h(w);y.__mousedown=a,y.__mouseup=p;var C=h(y);Ss(C,{direction:"up",useBtnColor:!0}),g(y);var T=M(y,2);T.__mousedown=d,T.__mouseup=p;var k=h(T);Ss(k,{direction:"up",useBtnColor:!0}),g(T),g(w);var P=M(w,2),A=h(P);A.__mousedown=l,A.__mouseup=p;var I=h(A);Ss(I,{direction:"up",useBtnColor:!0}),g(A);var V=M(A,2);V.__mousedown=s,V.__mouseup=p;var q=h(V);Ss(q,{direction:"up",useBtnColor:!0}),g(V),g(P),g(_),g(b),E(Q=>u=J(b,1,"immersive-controls svelte-1yzc86r",null,u,Q),[()=>({"m-shifted":i()})]),St("mouseleave",y,p),St("mouseleave",T,p),St("mouseleave",A,p),St("mouseleave",V,p),$(t,b),z()}st(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as i1,Subscription as Xy,filterChanged as Jy,filter as e4}from"@vkontakte/videoplayer-shared/es2018";var t1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Jc=class{constructor(){this.flickeringTimeout=t1(1e3);this.subscriptions=new Xy;this.isAuto=!1;this.isLive=!1;this.captions$=new i1([]);this.captionsPrepared$=new i1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(e4(()=>this.isEnabled()),Jy()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:a,value:s},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(s),value:""}):n.length===0?n.push({value:String(s)}):n[n.length-1].value=String(s)),n),[])),this.captionsPrepared$.next(i)}};var t4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),i4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),o4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),n4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),r4=L("<div><!></div>"),s4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
|
|
280
|
+
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function da(t,e){U(e,!0),W(t,s4);let[i,o]=Re(),n=()=>S(b,"$currentSubtitle$",i),a=()=>S(_,"$isLive$",i),s=()=>S(w,"$isFullscreen",i),d=()=>S(u,"$isAutoSubtitleCaptionVisible$",i),l=f(e,"isMobile",3,!1),p=Te(),m=qt(),b=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,_=p.state.isLive$,w=p.ui.isFullscreen,y=v(()=>!!n().isAuto),C=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),k=v(()=>l()&&!s()||r(T)<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:r(T)),P=X(null);He(()=>{var Y,ne,Z;(Y=r(P))==null||Y.setIsAuto(r(y)),(ne=r(P))==null||ne.setIsLive(r(C)),(Z=r(P))==null||Z.setCaptions(e.captions)});let A=X(fe([[]]));zt(()=>{D(P,fe(new Jc().subscribe()));let Y=r(P).captionsPrepared$.subscribe(ne=>{D(A,fe(ne))});return()=>{var ne;(ne=r(P))==null||ne.destroy(),Y.unsubscribe()}}),zt(()=>{if(r(y)){let Y=window.setTimeout(()=>{u.set(!1)},m.autoSubtitlesTimeout);return()=>{window.clearTimeout(Y)}}else u.set(!1)});let I=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=r4();let q;var Q=h(V);{var H=Y=>{var ne=n4();let Z;var de=h(ne),ce=h(de);{var Le=he=>{var se=t4(),Me=h(se),oe=h(Me,!0);g(Me),g(se),E(B=>{var be;nt(Me,`font-size: ${(be=r(k))!=null?be:""}px`),ve(oe,B)},[()=>F("subtitles_auto_caption")]),$(he,se)},Ae=(he,se)=>{{var Me=B=>{var be=De(),le=pe(be);Ii(le,17,()=>r(A),Il,(We,ee)=>{var me=i4(),j=h(me);Ii(j,21,()=>r(ee),({value:te,timeAppeared:Oe})=>Oe,(te,Oe)=>{let Ge=()=>r(Oe).value,$e=()=>r(Oe).timeAppeared;var we=De(),Ve=pe(we);{var je=dt=>{var ct=Nr();E(()=>ve(ct,Ge())),$(dt,ct)};R(Ve,dt=>{(!$e()||$e()<=e.position)&&dt(je)})}$(te,we)}),g(j),g(me),E(()=>{var te;return nt(j,`font-size: ${(te=r(k))!=null?te:""}px`)}),$(We,me)}),$(B,be)},oe=B=>{var be=De(),le=pe(be);Ii(le,17,()=>e.captions,({value:We})=>We,(We,ee)=>{let me=()=>r(ee).value;var j=o4(),te=h(j),Oe=h(te,!0);g(te),g(j),E(()=>{var Ge;nt(te,`font-size: ${(Ge=r(k))!=null?Ge:""}px`),ve(Oe,me())}),$(We,j)}),$(B,be)};R(he,B=>{var be;r(y)&&((be=r(A))!=null&&be.length)?B(Me):B(oe,!1)},se)}};R(ce,he=>{r(y)&&d()?he(Le):he(Ae,!1)})}g(de),g(ne),E(he=>{var se;Z=J(ne,1,"subtitles-caption svelte-c2x749",null,Z,he),nt(ne,`--subtitles-caption-margin: ${(se=r(I))!=null?se:""}%`)},[()=>({mobile:l()})]),$(Y,ne)};R(Q,Y=>{var ne;(e.captions.length||(ne=r(A))!=null&&ne.length)&&Y(H)})}g(V),E(Y=>q=J(V,1,"subtitles-container svelte-c2x749",null,q,Y),[()=>({shifted:e.shifted,auto:r(y)&&!r(C)&&!d()})]),$(t,V),z(),o()}var a4=L('<div class="text svelte-raurnb"> </div>'),l4=L('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),d4={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 bd(t,e){U(e,!0),W(t,d4);let i=qt();var o=l4();let n;var a=M(h(o),2);{var s=d=>{var l=a4(),p=h(l);g(l),E(()=>{var m;return ve(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(m=e.chromecastDeviceName)!=null?m:""}`)}),$(d,l)};R(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),E(d=>{n=J(o,1,"wrapper svelte-raurnb",null,n,d),nt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),z()}var c4=xe('<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 Yf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=c4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i})),$(t,o)}var u4=L('<div class="container svelte-13zpvm8"><!></div>'),p4={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 $d(t){W(t,p4);var e=u4(),i=h(e);Yf(i,{}),g(e),$(t,e)}var f4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),m4=L("<div><!></div>"),v4={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,
|
|
281
281
|
visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
|
|
282
|
-
transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function ca(t,e){
|
|
282
|
+
transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function ca(t,e){U(e,!0),W(t,v4);let i=f(e,"iconVisible",3,!0),o=Te(),n=qt(),a=o.ui.startedByKeyboard$,s=F("tooltip_play"),d=_=>{var y;let w=_.code;["Enter","Space"].includes(w)&&(_.stopPropagation(),_.preventDefault(),a.set(!0),(y=e.startVideo)==null||y.call(e))},l=_=>{var w;_.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=m4();let m;p.__click=l;var b=h(p);{var u=_=>{var w=f4();w.__keydown=d,Be(w,"aria-label",s);var y=M(h(w),2);yr(y,{}),g(w),$(_,w)};R(b,_=>{i()&&_(u)})}return g(p),E(_=>{m=J(p,1,"container svelte-1ciju45",null,m,_),nt(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,p),z({handlePressKey:d,handleClick:l})}st(["click","keydown"]);var g4=L("<div> </div>"),h4={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
283
283
|
0deg,
|
|
284
284
|
rgba(0, 0, 0, 0) 0%,
|
|
285
285
|
rgba(0, 0, 0, 0.02) 19%,
|
|
286
286
|
rgba(0, 0, 0, 0.10) 34%,
|
|
287
287
|
rgba(0, 0, 0, 0.40) 60%,
|
|
288
288
|
rgba(0, 0, 0, 0.60) 100%
|
|
289
|
-
);}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function
|
|
289
|
+
);}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Zf(t,e){W(t,h4);let i=f(e,"title",3,""),o=f(e,"isHidden",3,!1);var n=g4();let a;var s=h(n,!0);g(n),E(d=>{a=J(n,1,"title svelte-1bcvcf2",null,a,d),ve(s,i())},[()=>({hidden:o()})]),$(t,n)}var _4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),b4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),$4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),y4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),x4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),w4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function Xf(t,e){U(e,!0),W(t,w4);let i=X(""),o=X(""),n=X(""),a=X(""),s,d=P=>String(P).padStart(2,"0"),l=P=>{let A=Math.floor(P/86400);A&&(P-=A*86400,D(i,fe(d(A))));let I=Math.floor(P/3600);D(o,fe(d(I)));let V=Math.floor(P/60)%60;D(n,fe(d(V)));let q=P%60;D(a,fe(d(q)))},p=()=>{let P=Math.floor(Date.now()/1e3),A=e.startTime-P;l(A),A>=1?s=requestAnimationFrame(p):e.onTimerOver()};zt(()=>{s=requestAnimationFrame(p)}),mn(()=>{cancelAnimationFrame(s)});var m=x4(),b=h(m);{var u=P=>{var A=_4(),I=pe(A),V=h(I),q=h(V,!0);g(V);var Q=M(V,2),H=h(Q,!0);g(Q),g(I);var Y=M(I,2),ne=h(Y,!0);g(Y),E((Z,de)=>{ve(q,r(i)),ve(H,Z),ve(ne,de)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),$(P,A)};R(b,P=>{r(i)&&P(u)})}var _=M(b,2);{var w=P=>{var A=b4(),I=pe(A),V=h(I),q=h(V,!0);g(V);var Q=M(V,2),H=h(Q,!0);g(Q),g(I);var Y=M(I,2),ne=h(Y,!0);g(Y),E((Z,de)=>{ve(q,r(o)),ve(H,Z),ve(ne,de)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),$(P,A)};R(_,P=>{r(o)&&P(w)})}var y=M(_,2);{var C=P=>{var A=$4(),I=pe(A),V=h(I),q=h(V,!0);g(V);var Q=M(V,2),H=h(Q,!0);g(Q),g(I);var Y=M(I,2),ne=h(Y,!0);g(Y),E((Z,de)=>{ve(q,r(n)),ve(H,Z),ve(ne,de)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),$(P,A)};R(y,P=>{r(n)&&P(C)})}var T=M(y,2);{var k=P=>{var A=y4(),I=h(A),V=h(I,!0);g(I);var q=M(I,2),Q=h(q,!0);g(q),g(A),E(H=>{ve(V,r(a)),ve(Q,H)},[()=>F("waiting_live_second_value")]),$(P,A)};R(T,P=>{r(a)&&P(k)})}g(m),$(t,m),z()}var S4=xe('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function Jf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=S4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(4),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i})),$(t,o)}var C4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),T4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),I4=L('<div class="waiting-container svelte-15pewff"><!></div>'),k4={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function yd(t,e){U(e,!0),W(t,k4);let i=X(!1);He(()=>{D(i,fe(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=I4(),n=h(o);{var a=d=>{var l=C4(),p=h(l),m=h(p);Jf(m,{}),g(p);var b=M(p,2),u=h(b,!0);g(b),g(l),E(_=>ve(u,_),[()=>F("waiting_live_upcoming_title")]),$(d,l)},s=d=>{var l=T4(),p=h(l),m=h(p,!0);g(p);var b=M(p,2);let u=v(()=>e.startTime||0);Xf(b,{get startTime(){return r(u)},onTimerOver:()=>D(i,!0)}),g(l),E(_=>ve(m,_),[()=>F("waiting_live_timer_title")]),$(d,l)};R(n,d=>{r(i)?d(a):d(s,!1)})}g(o),E(()=>nt(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),$(t,o),z()}var E4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),P4={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function ua(t,e){U(e,!0),W(t,P4);let i=f(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=E4(),s=h(a),d=h(s);ta(d,{style:"position: static; transform: translate(0, 0)"});var l=M(d,2),p=h(l,!0);g(l),g(s),g(a),E(()=>{nt(a,`background-image: url('${i()}')`),ve(p,r(n))}),$(t,a),z()}var A4=xe('<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 em(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=A4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),$(t,o)}var M4=L('<div class="select-icon svelte-124aexk"><!></div>'),L4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function xd(t){W(t,L4);var e=M4(),i=h(e);em(i,{}),g(e),$(t,e)}var V4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},R4=(t,e)=>{ja(t,()=>e.item.selectItem(e.item.value))},N4=L("<p> </p>"),B4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),D4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),O4={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;
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
292
|
* \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
|
|
293
293
|
* \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
|
|
294
294
|
*/margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
|
|
295
|
-
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function
|
|
295
|
+
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function tm(t,e){U(e,!0),W(t,O4);let i=f(e,"isMobile",3,!1);var o=D4();let n;o.__click=[V4,e],o.__keydown=[R4,e];var a=h(o);{var s=w=>{xd(w,{})};R(a,w=>{e.item.selected&&w(s)})}var d=M(a,2);let l;var p=h(d);{var m=w=>{var y=De(),C=pe(y);ki(C,()=>e.item.valueComponent,(T,k)=>{k(T,Jr(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),$(w,y)},b=w=>{var y=N4();let C;var T=h(y,!0);g(y),E(k=>{var P;C=J(y,1,"label svelte-1t7rx2m",null,C,k),ve(T,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),$(w,y)};R(p,w=>{e.item.valueComponent?w(m):w(b,!1)})}var u=M(p,2);{var _=w=>{var y=B4(),C=h(y,!0);g(y),E(()=>ve(C,e.item.sublabel)),$(w,y)};R(u,w=>{e.item.sublabel&&w(_)})}g(d),g(o),E((w,y,C)=>{n=J(o,1,"item",null,n,w),Be(o,"data-value",e.item.value),Be(o,"aria-label",y),l=J(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Be(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),z()}st(["click","keydown"]);var H4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function im(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>y=>Lc(y,r(n)));var s=H4();let d;s.__click=function(...y){var C;(C=r(n))==null||C.apply(this,y)},s.__keydown=function(...y){var C;(C=r(a))==null||C.apply(this,y)};var l=h(s);{var p=y=>{xd(y,{})};R(l,y=>{e.item.selected&&y(p)})}var m=M(l,2);let b;var u=h(m);{var _=y=>{var C=De();let T=v(()=>e.item.valueComponent);var k=pe(C);ki(k,()=>r(T),(P,A)=>{A(P,Jr(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),$(y,C)},w=y=>{var C=Nr();E(()=>ve(C,e.item.label)),$(y,C)};R(u,y=>{e.item.valueComponent?y(_):y(w,!1)})}g(m),g(s),pt(s,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),E((y,C)=>{var T;d=J(s,1,"item",null,d,y),Be(s,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Be(s,"data-testid",e.item.id),b=J(m,1,"menu-item-value",null,b,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,s),z()}st(["click","keydown"]);var xr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var U4=(t,e)=>{Ch(t,e.returnFromSubMenu,e.closeSettingsMenu)},z4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},q4=(t,e)=>{zl(t)&&(Jn(t),e.returnFromSubMenu())},W4=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),K4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
|
|
296
296
|
/*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
|
|
297
297
|
/**
|
|
298
298
|
* \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
|
|
@@ -302,14 +302,14 @@ Try switching the\xA0quality to\xA0Auto.`},rh=X0;var es=new Map;es.set(ah.EN,rh)
|
|
|
302
302
|
var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
|
|
303
303
|
1px
|
|
304
304
|
);}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
|
|
305
|
-
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function tm(t,e){z(e,!0),W(t,z4);let[i,o]=Be(),n=()=>S($,"$isFullscreen",i),a=()=>S(u,"$playerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"playerControlsHeight",3,0),l=f(e,"ariaLabelReturnFromSubMenu",19,()=>U("aria_label_submenu_back")),p=f(e,"listRef",15);Ft(()=>{let Z=e.items.findIndex(fe=>fe.selected);p().children[Z+1].focus()});let m=Ce(),$=m.ui.isFullscreen,u=m.ui.playerSize,_=J(void 0),w=J(0),y=J(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(w)));var E=U4();let P;var A=h(E);let I;A.__keydown=[O4,e];var V=h(A);let F;V.__click=[H4,e],V.__keydown=[F4,e];var j=h(V);Ss(j,{direction:"left"});var H=M(j,2),X=h(H,!0);g(H),g(V),ct(V,Z=>D(_,Z),()=>r(_));var oe=M(V,2);ki(oe,17,()=>e.items,Il,(Z,fe)=>{var ae=Fe(),Me=ce(ae);{var Pe=se=>{Xf(se,{get item(){return r(fe)},get isMobile(){return s()}})},he=(se,Ae)=>{{var ne=B=>{Jf(B,{get isMobile(){return s()},get item(){return r(fe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(se,B=>{r(fe).type==="OPEN_SUB_MENU"&&B(ne)},Ae)}};R(Me,se=>{r(fe).type==="SELECT_VALUE"?se(Pe):se(he,!1)})}b(Z,ae)}),g(A),ct(A,Z=>p(Z),()=>p()),g(E),k((Z,fe,ae)=>{P=ee(E,1,"sub-menu menu svelte-7dfsuh",null,P,Z),De(E,"data-testid",`sub-menu-${e.id}`),ot(E,`min-width: ${r(T)}px`),I=ee(A,1,"items svelte-7dfsuh",null,I,fe),ot(A,r(C)),F=ee(V,1,"item header back svelte-7dfsuh",null,F,ae),De(V,"aria-label",l()),me(X,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Nr(V,"clientWidth",Z=>D(w,Z)),Nr(V,"clientHeight",Z=>D(y,Z)),b(t,E),q(),o()}at(["keydown","click"]);import{noop as q4}from"@vkontakte/videoplayer-shared/es2018";var W4=(t,e)=>Mc(t,e()),K4=(t,e)=>{t.stopPropagation(),e()()},Q4=L('<div class="value svelte-1ikfjte"> </div>'),G4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),j4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function im(t,e){z(e,!0),W(t,j4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,q4),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=G4();let d;s.__click=[K4,o],s.__keydown=[W4,o];var l=h(s),p=h(l);{var m=T=>{la(T,{get icon(){return e.icon}})},$=T=>{var E=Fe();let P=v(()=>e.icon);var A=ce(E);Ei(A,()=>r(P),(I,V)=>{V(I,{})}),b(T,E)};R(p,T=>{typeof e.icon=="string"?T(m):T($,!1)})}g(l);var u=M(l,2),_=h(u,!0);g(u);var w=M(u,2);{var y=T=>{var E=Fe();let P=v(n);var A=ce(E);Ei(A,()=>r(P),(I,V)=>{V(I,{})}),b(T,E)},C=T=>{var E=Q4(),P=h(E,!0);g(E),k(()=>me(P,e.value)),b(T,E)};R(w,T=>{n()?T(y):T(C,!1)})}g(s),ct(s,T=>a(T),()=>a()),k(T=>{d=ee(s,1,"item",null,d,T),De(s,"aria-label",e.ariaLabel),De(s,"data-testid",e.id),me(_,e.label)},[()=>({mobile:i()})]),b(t,s),q()}at(["click","keydown"]);import{noop as t1}from"@vkontakte/videoplayer-shared/es2018";var Y4=(t,e)=>{Ka(t,()=>e())},Z4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),X4=L('<img class="icon" aria-hidden="true">'),J4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),e3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function om(t,e){z(e,!0),W(t,e3);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,t1),n=f(e,"closeSettings",3,t1),a=J(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=J4();let p;l.__click=d,l.__keydown=[Y4,d];var m=h(l),$=h(m);{var u=C=>{var T=Fe(),E=ce(T);{var P=I=>{var V=Z4();b(I,V)},A=I=>{var V=X4();k(()=>De(V,"src",e.icon)),xt("error",V,s),Fs(V),b(I,V)};R(E,I=>{r(a)?I(P):I(A,!1)})}b(C,T)},_=C=>{var T=Fe();let E=v(()=>e.icon);var P=ce(T);Ei(P,()=>r(E),(A,I)=>{I(A,{})}),b(C,T)};R($,C=>{typeof e.icon=="string"?C(u):C(_,!1)})}g(m);var w=M(m,2),y=h(w,!0);g(w),g(l),k(C=>{var T;p=ee(l,1,"item",null,p,C),De(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),De(l,"data-testid",e.id),me(y,e.label)},[()=>({mobile:i()})]),b(t,l),q()}at(["click","keydown"]);import{noop as o3}from"@vkontakte/videoplayer-shared/es2018";var t3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),i3={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 nm(t,e){W(t,i3);let i=f(e,"enabled",3,!1);var o=t3(),n=h(o);let a;$e(2),g(o),k(s=>a=ee(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var n3=(t,e,i)=>{wh(t,e(),o=>i()(o))},r3=(t,e,i)=>{t.stopPropagation(),e()(!i())},s3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),a3=L('<li role="menuitem" tabindex="0"><!></li>');function rm(t,e){z(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,o3),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=a3();let l;d.__click=[r3,o,n],d.__keydown=[n3,n,o];var p=h(d);ia(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(m,$)=>{var u=s3();let _;var w=h(u),y=h(w);{var C=I=>{la(I,{get icon(){return e.icon}})},T=I=>{var V=Fe();let F=v(()=>e.icon);var j=ce(V);Ei(j,()=>r(F),(H,X)=>{X(H,{})}),b(I,V)};R(y,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var E=M(w,2),P=h(E,!0);g(E);var A=M(E,2);nm(A,{get enabled(){return n()}}),g(u),k(I=>{_=ee(u,1,"switch-wrapper",null,_,I),me(P,e.label)},[()=>({mobile:i()})]),b(m,u)},$$slots:{default:!0}}),g(d),k(m=>{var $;l=ee(d,1,"item switch-item",null,l,m),De(d,"aria-label",($=e.ariaLabel)!=null?$:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),q()}at(["click","keydown"]);import{isValidURL as A3,VideoQuality as p1}from"@vkontakte/videoplayer-shared/es2018";var i1=()=>{let t=J(pe([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{D(t,pe(r(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,pe([]))}}};var l3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),d3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),c3={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 pa(t,e){z(e,!0),W(t,c3);let i=f(e,"isSubCase",3,!1),o=v(()=>Bc(e.quality));var n=d3(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var p=m=>{var $=l3();let u=v(()=>r(o));var _=h($);Ei(_,()=>r(u),(w,y)=>{y(w,{})}),g($),b(m,$)};R(l,m=>{r(o)&&!e.isMobile&&m(p)})}g(n),k(m=>{s=ee(a,1,"svelte-t2qk8t",null,s,m),me(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),q()}import{VideoQuality as u3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as o1}from"@vkontakte/videoplayer-core/es2018";var n1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},r1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=n1({quality:t,availableQualities:e});return i?t===o1.INVARIANT?U("auto_quality_invariant"):U("auto_quality",{actual:o}):o},s1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===o1.INVARIANT?i:`${i}${n1({quality:t,availableQualities:e})}`:"...";var p3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),f3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function tl(t,e){z(e,!0),W(t,f3);let[i,o]=Be(),n=()=>S(l,"$currentQuality$",i),a=()=>S(p,"$availableQualities$",i),s=()=>S(m,"$isMobile$",i),d=Ce(),l=d.state.currentQuality$,p=d.state.availableQualities$,m=d.ui.isMobile,$=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==u3.INVARIANT?$:"")),_=v(()=>s1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=p3(),y=h(w);let C=v(()=>e.selected?n():void 0);pa(y,{get quality(){return r(C)},get label(){return r(_)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),q(),o()}var m3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${a}`,"g")},v3={br:!0,span:!0},sm=(t,e={})=>{var d,l,p,m,$,u,_;if(!t)return t;let i={...v3,...e},o=Object.keys(i);if(!o.length)return t;let n=m3(o),a=[],s=0;for(let w of t.matchAll(n)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((m=w.groups)==null?void 0:m.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(s,T)),s=T+y.length;continue}let E=($=w.groups)!=null&&$.childrenhtml?sm(w.groups.childrenhtml,i):"",P=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp((_=w.groups)==null?void 0:_.childrenhtml),()=>E||""):y;a.push(t.slice(s,T),P),s=T+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function wd(t,e){z(e,!1);let i=f(e,"message",8),o=sm(i());br();var n=Fe(),a=ce(n);{var s=d=>{var l=Fe(),p=ce(l);kl(p,()=>o,!1,!1),b(d,l)};R(a,d=>{o&&d(s)})}b(t,n),q()}var g3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),h3={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 am(t,e){z(e,!1),W(t,h3),br();var i=g3(),o=h(i);let n=gr(()=>U("quality_applience",{action:`<span>${U("quality_applience_action")}</span>`}));wd(o,{get message(){return r(n)}}),g(i),b(t,i),q()}var l1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:tl,valueComponentParams:{prefix:U("other_quality"),selected:o},children:"QUALITY"}},lm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:U("auto_quality_limit"),valueComponent:e?tl:void 0,valueComponentParams:{prefix:U("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),d1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:am,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),dm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:U("high_quality"),valueComponent:t?tl:void 0,valueComponentParams:{prefix:U("high_quality"),selected:i},sublabel:U("high_quality_description")}),cm=({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:U("traffic_saving_quality"),valueComponent:t?tl:void 0,valueComponentParams:{prefix:U("traffic_saving_quality"),selected:i},sublabel:U("traffic_saving_quality_description")});var Jc=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),eu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=qc(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return U("audio_stream_display_language_label",{language:n,label:o});{let l=Jc(t,d);return U("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=Jc(t,d);return U("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=Jc(t,d);return U("audio_stream_display_language_index",{language:n,index:l})}}let a=Jc(t,e);return U("audio_stream_display_unknown",{index:a})};var _3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:lm,selected:e&&!o&&!n||!1}),a.push({handler:cm,selected:o},{handler:dm,selected:n}),{title:U("submenu_quality"),id:"QUALITY_DETAILS",items:[d1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),l1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:U("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:pa,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:U("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:lm,selected:((i=yc())==null?void 0:i.type)==="auto_quality"},{handler:cm,selected:((o=yc())==null?void 0:o.type)==="traffic_saving"},{handler:dm,selected:((n=yc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:U("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:eu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:U("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:U("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},c1=({subMenuId:t,context:e})=>t?[_3[t](e)]:[];var b3=ye('<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 um(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=b3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),b(t,o)}var $3=ye('<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 pm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=$3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),b(t,o)}var y3=ye('<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 fm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=y3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),b(t,o)}var x3=ye('<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 mm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=x3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),b(t,o)}var w3=ye('<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 vm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=w3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),b(t,o)}var S3=ye('<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 tu(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=S3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),b(t,o)}var C3=ye('<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 gm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=C3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),b(t,o)}var T3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),I3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function hm(t,e){z(e,!0),W(t,I3);let[i,o]=Be(),n=()=>S(p,"$currentQuality$",i),a=()=>S(m,"$availableQualities$",i),s=()=>S($,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),l=Ce(),p=l.state.currentQuality$,m=l.state.availableQualities$,$=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,_=v(()=>r1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=T3(),y=h(w);pa(y,{get quality(){return n()},get label(){return r(_)},get isMobile(){return d()}}),g(w),b(t,w),q(),o()}var E3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?U("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:U("aria_label_menu_quality",{actual:o}),icon:Zl,label:U("menu_quality"),value:e,valueComponent:hm,weight:xr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:xr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?U("aria_label_submenu_traffic_saving_off"):`${U("aria_label_submenu_traffic_saving_on")}. ${U("traffic_saving_helper_text")}`,icon:um,label:U("menu_traffic_saving"),enabled:t,tooltipText:U("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=eu(t,e);return{id:"AUDIO_LANGUAGES",weight:xr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:U("aria_label_menu_audio_languages",{actual:i}),icon:pm,label:U("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:xr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:U("aria_label_menu_rate",{actual:i}),icon:fm,label:U("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:xr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:U("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Xl,label:U("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:xr.download,type:"CLICK",onClick:t,label:U("download_video_caption"),ariaLabel:U("aria_label_menu_download"),icon:mm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:xr.report,type:"CLICK",onClick:t,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,icon:vm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:xr["copy-data"],type:"CLICK",onClick:t,label:U("menu_copy_debug"),ariaLabel:U("menu_copy_debug"),icon:tu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:xr["save-trace-info"],type:"CLICK",onClick:t,label:U("menu_save_debug"),ariaLabel:U("menu_save_debug"),icon:tu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:xr["debug-info"],type:"CLICK",onClick:t,label:e?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"),ariaLabel:U("menu_debug_overlay"),icon:gm,isHiddenFor:["desktop"]})},u1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>E3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var a,s,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((s=n==null?void 0:n.isHiddenFor)!=null&&s.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Xs)};var M3=(t,e)=>{Ac(t,e)},L3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),V3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),R3=L("<div><!> <!></div>"),N3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
|
|
305
|
+
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function nm(t,e){U(e,!0),W(t,K4);let[i,o]=Re(),n=()=>S(b,"$isFullscreen",i),a=()=>S(u,"$playerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"playerControlsHeight",3,0),l=f(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),p=f(e,"listRef",15);zt(()=>{let Z=e.items.findIndex(de=>de.selected);p().children[Z+1].focus()});let m=Te(),b=m.ui.isFullscreen,u=m.ui.playerSize,_=X(void 0),w=X(0),y=X(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(w)));var k=W4();let P;var A=h(k);let I;A.__keydown=[U4,e];var V=h(A);let q;V.__click=[z4,e],V.__keydown=[q4,e];var Q=h(V);Ss(Q,{direction:"left"});var H=M(Q,2),Y=h(H,!0);g(H),g(V),pt(V,Z=>D(_,Z),()=>r(_));var ne=M(V,2);Ii(ne,17,()=>e.items,Il,(Z,de)=>{var ce=De(),Le=pe(ce);{var Ae=se=>{tm(se,{get item(){return r(de)},get isMobile(){return s()}})},he=(se,Me)=>{{var oe=B=>{im(B,{get isMobile(){return s()},get item(){return r(de)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(se,B=>{r(de).type==="OPEN_SUB_MENU"&&B(oe)},Me)}};R(Le,se=>{r(de).type==="SELECT_VALUE"?se(Ae):se(he,!1)})}$(Z,ce)}),g(A),pt(A,Z=>p(Z),()=>p()),g(k),E((Z,de,ce)=>{P=J(k,1,"sub-menu menu svelte-7dfsuh",null,P,Z),Be(k,"data-testid",`sub-menu-${e.id}`),nt(k,`min-width: ${r(T)}px`),I=J(A,1,"items svelte-7dfsuh",null,I,de),nt(A,r(C)),q=J(V,1,"item header back svelte-7dfsuh",null,q,ce),Be(V,"aria-label",l()),ve(Y,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Br(V,"clientWidth",Z=>D(w,Z)),Br(V,"clientHeight",Z=>D(y,Z)),$(t,k),z(),o()}st(["keydown","click"]);import{noop as Q4}from"@vkontakte/videoplayer-shared/es2018";var G4=(t,e)=>Lc(t,e()),j4=(t,e)=>{t.stopPropagation(),e()()},Y4=L('<div class="value svelte-1ikfjte"> </div>'),Z4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),X4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function rm(t,e){U(e,!0),W(t,X4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,Q4),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=Z4();let d;s.__click=[j4,o],s.__keydown=[G4,o];var l=h(s),p=h(l);{var m=T=>{la(T,{get icon(){return e.icon}})},b=T=>{var k=De();let P=v(()=>e.icon);var A=pe(k);ki(A,()=>r(P),(I,V)=>{V(I,{})}),$(T,k)};R(p,T=>{typeof e.icon=="string"?T(m):T(b,!1)})}g(l);var u=M(l,2),_=h(u,!0);g(u);var w=M(u,2);{var y=T=>{var k=De();let P=v(n);var A=pe(k);ki(A,()=>r(P),(I,V)=>{V(I,{})}),$(T,k)},C=T=>{var k=Y4(),P=h(k,!0);g(k),E(()=>ve(P,e.value)),$(T,k)};R(w,T=>{n()?T(y):T(C,!1)})}g(s),pt(s,T=>a(T),()=>a()),E(T=>{d=J(s,1,"item",null,d,T),Be(s,"aria-label",e.ariaLabel),Be(s,"data-testid",e.id),ve(_,e.label)},[()=>({mobile:i()})]),$(t,s),z()}st(["click","keydown"]);import{noop as n1}from"@vkontakte/videoplayer-shared/es2018";var J4=(t,e)=>{ja(t,()=>e())},e3=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),t3=L('<img class="icon" aria-hidden="true">'),i3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),o3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function sm(t,e){U(e,!0),W(t,o3);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,n1),n=f(e,"closeSettings",3,n1),a=X(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=i3();let p;l.__click=d,l.__keydown=[J4,d];var m=h(l),b=h(m);{var u=C=>{var T=De(),k=pe(T);{var P=I=>{var V=e3();$(I,V)},A=I=>{var V=t3();E(()=>Be(V,"src",e.icon)),St("error",V,s),Fs(V),$(I,V)};R(k,I=>{r(a)?I(P):I(A,!1)})}$(C,T)},_=C=>{var T=De();let k=v(()=>e.icon);var P=pe(T);ki(P,()=>r(k),(A,I)=>{I(A,{})}),$(C,T)};R(b,C=>{typeof e.icon=="string"?C(u):C(_,!1)})}g(m);var w=M(m,2),y=h(w,!0);g(w),g(l),E(C=>{var T;p=J(l,1,"item",null,p,C),Be(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Be(l,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),$(t,l),z()}st(["click","keydown"]);import{noop as s3}from"@vkontakte/videoplayer-shared/es2018";var n3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),r3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function am(t,e){W(t,r3);let i=f(e,"enabled",3,!1);var o=n3(),n=h(o);let a;ye(2),g(o),E(s=>a=J(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),$(t,o)}var a3=(t,e,i)=>{Th(t,e(),o=>i()(o))},l3=(t,e,i)=>{t.stopPropagation(),e()(!i())},d3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),c3=L('<li role="menuitem" tabindex="0"><!></li>');function lm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,s3),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=c3();let l;d.__click=[l3,o,n],d.__keydown=[a3,n,o];var p=h(d);ia(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(m,b)=>{var u=d3();let _;var w=h(u),y=h(w);{var C=I=>{la(I,{get icon(){return e.icon}})},T=I=>{var V=De();let q=v(()=>e.icon);var Q=pe(V);ki(Q,()=>r(q),(H,Y)=>{Y(H,{})}),$(I,V)};R(y,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var k=M(w,2),P=h(k,!0);g(k);var A=M(k,2);am(A,{get enabled(){return n()}}),g(u),E(I=>{_=J(u,1,"switch-wrapper",null,_,I),ve(P,e.label)},[()=>({mobile:i()})]),$(m,u)},$$slots:{default:!0}}),g(d),E(m=>{var b;l=J(d,1,"item switch-item",null,l,m),Be(d,"aria-label",(b=e.ariaLabel)!=null?b:e.label),Be(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),z()}st(["click","keydown"]);import{isValidURL as V3,VideoQuality as v1}from"@vkontakte/videoplayer-shared/es2018";var r1=()=>{let t=X(fe([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{D(t,fe(r(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,fe([]))}}};var u3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),p3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),f3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function pa(t,e){U(e,!0),W(t,f3);let i=f(e,"isSubCase",3,!1),o=v(()=>Dc(e.quality));var n=p3(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var p=m=>{var b=u3();let u=v(()=>r(o));var _=h(b);ki(_,()=>r(u),(w,y)=>{y(w,{})}),g(b),$(m,b)};R(l,m=>{r(o)&&!e.isMobile&&m(p)})}g(n),E(m=>{s=J(a,1,"svelte-t2qk8t",null,s,m),ve(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}import{VideoQuality as m3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as s1}from"@vkontakte/videoplayer-core/es2018";var a1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},l1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=a1({quality:t,availableQualities:e});return i?t===s1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},d1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===s1.INVARIANT?i:`${i}${a1({quality:t,availableQualities:e})}`:"...";var v3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),g3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ol(t,e){U(e,!0),W(t,g3);let[i,o]=Re(),n=()=>S(l,"$currentQuality$",i),a=()=>S(p,"$availableQualities$",i),s=()=>S(m,"$isMobile$",i),d=Te(),l=d.state.currentQuality$,p=d.state.availableQualities$,m=d.ui.isMobile,b=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==m3.INVARIANT?b:"")),_=v(()=>d1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=v3(),y=h(w);let C=v(()=>e.selected?n():void 0);pa(y,{get quality(){return r(C)},get label(){return r(_)},get isMobile(){return s()},isSubCase:!0}),g(w),$(t,w),z(),o()}var h3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${a}`,"g")},_3={br:!0,span:!0},dm=(t,e={})=>{var d,l,p,m,b,u,_;if(!t)return t;let i={..._3,...e},o=Object.keys(i);if(!o.length)return t;let n=h3(o),a=[],s=0;for(let w of t.matchAll(n)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((m=w.groups)==null?void 0:m.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(s,T)),s=T+y.length;continue}let k=(b=w.groups)!=null&&b.childrenhtml?dm(w.groups.childrenhtml,i):"",P=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp((_=w.groups)==null?void 0:_.childrenhtml),()=>k||""):y;a.push(t.slice(s,T),P),s=T+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function wd(t,e){U(e,!1);let i=f(e,"message",8),o=dm(i());br();var n=De(),a=pe(n);{var s=d=>{var l=De(),p=pe(l);kl(p,()=>o,!1,!1),$(d,l)};R(a,d=>{o&&d(s)})}$(t,n),z()}var b3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),$3={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function cm(t,e){U(e,!1),W(t,$3),br();var i=b3(),o=h(i);let n=gr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));wd(o,{get message(){return r(n)}}),g(i),$(t,i),z()}var u1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:ol,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},um=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?ol:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),p1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:cm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),pm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?ol:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),fm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:F("traffic_saving_quality"),valueComponent:t?ol:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var eu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),tu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=Wc(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let l=eu(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=eu(t,d);return F("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=eu(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=eu(t,e);return F("audio_stream_display_unknown",{index:a})};var y3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:um,selected:e&&!o&&!n||!1}),a.push({handler:fm,selected:o},{handler:pm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[p1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),u1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:pa,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:um,selected:((i=xc())==null?void 0:i.type)==="auto_quality"},{handler:fm,selected:((o=xc())==null?void 0:o.type)==="traffic_saving"},{handler:pm,selected:((n=xc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:tu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},f1=({subMenuId:t,context:e})=>t?[y3[t](e)]:[];var x3=xe('<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 mm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=x3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),$(t,o)}var w3=xe('<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 vm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=w3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),$(t,o)}var S3=xe('<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 gm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=S3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),$(t,o)}var C3=xe('<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 hm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=C3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),$(t,o)}var T3=xe('<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 _m(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=T3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),$(t,o)}var I3=xe('<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 iu(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=I3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),$(t,o)}var k3=xe('<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 bm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=k3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),$(t,o)}var E3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),P3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function $m(t,e){U(e,!0),W(t,P3);let[i,o]=Re(),n=()=>S(p,"$currentQuality$",i),a=()=>S(m,"$availableQualities$",i),s=()=>S(b,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),l=Te(),p=l.state.currentQuality$,m=l.state.availableQualities$,b=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,_=v(()=>l1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=E3(),y=h(w);pa(y,{get quality(){return n()},get label(){return r(_)},get isMobile(){return d()}}),g(w),$(t,w),z(),o()}var M3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:Zl,label:F("menu_quality"),value:e,valueComponent:$m,weight:xr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:xr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?F("aria_label_submenu_traffic_saving_off"):`${F("aria_label_submenu_traffic_saving_on")}. ${F("traffic_saving_helper_text")}`,icon:mm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=tu(t,e);return{id:"AUDIO_LANGUAGES",weight:xr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:vm,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:xr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:gm,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:xr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Xl,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:xr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:hm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:xr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:_m,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:xr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:iu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:xr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:iu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:xr["debug-info"],type:"CLICK",onClick:t,label:e?F("aria_label_menu_debug_overlay_disable"):F("aria_label_menu_debug_overlay_enable"),ariaLabel:F("menu_debug_overlay"),icon:bm,isHiddenFor:["desktop"]})},m1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>M3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var a,s,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((s=n==null?void 0:n.isHiddenFor)!=null&&s.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Xs)};var R3=(t,e)=>{Mc(t,e)},N3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),B3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),D3=L("<div><!> <!></div>"),O3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
|
|
306
306
|
/* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
|
|
307
307
|
.settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
|
|
308
308
|
.settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
|
|
309
|
-
.settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Sd(t,e){
|
|
309
|
+
.settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Sd(t,e){U(e,!0),W(t,O3);let[i,o]=Re(),n=()=>S(Oe,"$settingsMenuVisible",i),a=()=>S(Ge,"$settingsMenuOpenedByKeyboard",i),s=()=>S(Ct,"$debugPanelVisible",i),d=()=>S(we,"$isMobile",i),l=()=>S(rt,"$playerSize",i),p=()=>S(te,"$hasMpegSources$",i),m=()=>S(Ve,"$mobileNotReportControlHidden$",i),b=()=>S(oe,"$autoQualityLimitingAvailable$",i),u=()=>S(me,"$availableSubtitlesList$",i),_=()=>S(je,"$isLiveWithPlaybackSpeed",i),w=()=>S(he,"$availableAudioStreams$",i),y=()=>S(We,"$availablePlaybackRates$",i),C=()=>S(Ae,"$currentAudioStream$",i),T=()=>S(le,"$currentPlaybackRate$",i),k=()=>S(dt,"$trafficSavingEnabled",i),P=()=>S(se,"$currentQuality$",i),A=()=>S(B,"$isAutoQualityEnabled$",i),I=()=>S(ee,"$currentSubtitle$",i),V=()=>S(Gt,"$additionalSettingsMenuItems$",i),q=()=>S(be,"$isAutoQualityAvailable$",i),Q=()=>S(Me,"$availableQualities$",i),H=()=>S(ct,"$highQualityEnabled",i),Y=f(e,"ref",15,void 0),ne=f(e,"playerControlsHeight",3,0),Z=fe({}),de=fe({}),ce=Te(),Le=qt(),Ae=ce.state.audioStream$,he=ce.state.availableAudioStreams$,se=ce.state.currentQuality$,Me=ce.state.availableQualities$,oe=ce.state.autoQualityLimitingAvailable$,B=ce.state.isAutoQualityEnabled$,be=ce.state.isAutoQualityAvailable$,le=ce.state.currentPlaybackRate$,We=ce.state.availablePlaybackRates$,ee=ce.state.currentSubtitle$,me=ce.state.availableSubtitlesList$,j=ce.state.canDownload,te=ce.state.hasMpegSources$,Oe=ce.ui.settingsMenu.visible$,Ge=ce.ui.settingsMenu.openedByBtnKeyboard$,$e=ce.ui.settingsMenu.ref$,we=ce.ui.isMobile,Ve=ce.ui.mobileNotReportControlHidden$,je=ce.state.canChangePlaybackSpeed$,dt=ce.state.trafficSavingEnabled$,ct=ce.state.highQualityEnabled$,rt=ce.ui.playerSize,Ct=ce.ui.debugPanelVisible,_t=ce.state.isInteractiveTime$,Gt=ce.ui.additionalSettingsMenuItems$,ni=ce.ui.t,It=ce.actions.internal.downloadVideo,Vt=ce.actions.internal.closeSettingsMenu,O=ce.actions.internal.openSettingsSubMenu,_e=ce.actions.internal.closeSettingsSubMenu,re=X(!1),Ne=X(void 0),ze=r1();He(()=>{!n()&&ze.current&&(_e(de[ze.current]),ze.popAllSubMenus())}),He(()=>{n()||D(Ne,void 0)}),He(()=>{!ze.current&&r(Ne)&&Sh(Z,r(Ne))}),He(()=>{Y()&&$e.set(Y())});async function Qe(Ze){ze.pushSubMenu(Ze),await go(),O(Ze,de[Ze])}function ut(Ze){var Mt;Ze==null||Ze.stopPropagation(),a()||(Mt=e.returnFocus)==null||Mt.call(e),Vt(),D(re,!1)}function Ye(Ze,Mt){ce.actions.internal.setQuality(Ze,{appliesTo:Mt}),ut()}function et(Ze){ce.actions.internal.setAudioStream(Ze),ut()}function tt(Ze,Mt){ce.actions.internal.setTrafficSavingEnabled(Ze,Mt),Le.features.qualityDetailsSubMenuEnabled&&ut()}function qe(Ze,Mt){ce.actions.internal.setHighQualityEnabled(Ze,Mt),ut()}function gt(Ze){ce.actions.internal.setPlaybackRate(Ze),ut()}function Ht(Ze){ce.actions.internal.setSubtitle(Ze),ut()}function Xe(){It()}function Qt(){V3(e.supportLink)&&window.open(e.supportLink,"_blank"),ce.actions.internal.reportProblem(),ce.actions.internal.pause()}function ti(){Ka(ce.actions.internal.getDebugTextData())}let Je=()=>{let Ze=ce.actions.internal.getTraceTextData(),Mt=new Blob([...Ze],{type:"application/json"}),eo=window.URL.createObjectURL(Mt);Qs(eo,"vk_player_trace_info","json")};function Zt(){Ct.set(!s())}function Ni(){D(re,!0)}function zi(){D(re,!1)}function At(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-ne()}px; overflow: auto;`}let ht=v(()=>j&&p()&&!m()),Rt=v(()=>Le.features.trafficSaving&&!m()&&b()&&!Le.features.qualityDetailsSubMenuEnabled),co=v(()=>u().length>0&&!m()),en=v(()=>!!_()&&!m()),hn=v(()=>Le.features.audioLanguages&&w().length>=2&&!m()),$o=v(()=>!m());zt(()=>_t.subscribe(Ze=>{Ze&&!d()&&!r(re)&&!a()&&ut()}));let G=v(()=>{let Ze=[r($o)&&"QUALITY_SETTINGS",r(hn)&&"AUDIO_LANGUAGES",r(en)&&"PLAYBACK_RATE",r(co)&&"SUBTITLES",r(Rt)&&"TRAFFIC_SAVING_SWITCH",r(ht)&&"DOWNLOAD",Le.showSupport&&"SHOW_SUPPORT","COPY_DATA",Le.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Mt=>!!Mt);return m1({items:Ze,context:{qualityDetailsSubMenuEnabled:Le.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:gt,trafficSavingEnabled:k(),toggleTrafficSaving:tt,currentQuality:P()||v1.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:Xe,debugPanelVisible:s(),onCopyDataClick:ti,onReportProblemClick:Qt,onSaveTraceDataClick:Je,toggleShowDebugInfo:Zt},additionalSettingsMenuItems:V()})}),Xt=v(()=>f1({subMenuId:ze.current,context:{availablePlaybackRates:y(),selectPlaybackRate:gt,trafficSavingEnabled:k(),toggleTrafficSaving:tt,currentQuality:P()||v1.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:q()||!1,availableQualities:Q(),highQualityEnabled:H(),toggleHighQuality:qe,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Vt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:et,selectQuality:Ye,selectSubtitle:Ht}}));var ri=D3();let Bi;var li=h(ri);{var ft=Ze=>{var Mt=B3();let eo;Mt.__keydown=[R3,Vt];var ii=h(Mt);{var er=di=>{var xt=N3();let Ci;var Eo=h(xt),pi=h(Eo,!0);g(Eo);var Po=M(Eo,2);Po.__click=ut,g(xt),E((qi,xo)=>{Ci=J(xt,1,"item header svelte-17or3al",null,Ci,qi),ve(pi,xo)},[()=>({mobile:d()}),()=>ni("submenu_settings")]),$(di,xt)};R(ii,di=>{d()&&di(er)})}var yo=M(ii,2);let Ho;Ii(yo,21,()=>r(G),di=>di.id,(di,xt)=>{var Ci=De(),Eo=pe(Ci);{var pi=qi=>{rm(qi,{get isMobile(){return d()},get id(){return r(xt).id},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get value(){return r(xt).value},get valueComponent(){return r(xt).valueComponent},onClick:()=>{Qe(r(xt).children),D(Ne,fe(r(xt).id))},get ref(){return Z[r(xt).id]},set ref(xo){Z[r(xt).id]=xo}})},Po=(qi,xo)=>{{var wo=So=>{sm(So,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},closeSettings:ut})},Vn=(So,_n)=>{{var ji=Ao=>{lm(Ao,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get enabled(){return r(xt).enabled},get tooltipText(){return r(xt).tooltipText},get maxTooltipWidth(){return r(xt).maxTooltipWidth}})};R(So,Ao=>{r(xt).type==="SWITCH"&&Ao(ji)},_n)}};R(qi,So=>{r(xt).type==="CLICK"?So(wo):So(Vn,!1)},xo)}};R(Eo,qi=>{r(xt).type==="OPEN_SUB_MENU"?qi(pi):qi(Po,!1)})}$(di,Ci)}),g(yo),pt(yo,di=>Y(di),()=>Y()),g(Mt),E((di,xt,Ci)=>{eo=J(Mt,1,"settings-menu menu svelte-17or3al",null,eo,di),Ho=J(yo,1,"items",null,Ho,xt),nt(yo,Ci)},[()=>({desktop:!d(),mobile:d(),hidden:!!ze.current}),()=>({mobile:d()}),At]),St("mouseenter",Mt,Ni),St("mouseleave",Mt,zi),$(Ze,Mt)};R(li,Ze=>{n()&&Ze(ft)})}var ui=M(li,2);Ii(ui,17,()=>r(Xt),Ze=>Ze.id,(Ze,Mt)=>{let eo=v(()=>{var ii;return(ii=r(Mt).minWidth)!=null?ii:137});nm(Ze,{get isMobile(){return d()},get playerControlsHeight(){return ne()},get returnFromSubMenu(){return ze.popSubMenu},get id(){return r(Mt).id},get title(){return r(Mt).title},closeSettingsMenu:Vt,openSubMenuList:Qe,get items(){return r(Mt).items},get minWidth(){return r(eo)},get refMenuItems(){return Z},get listRef(){return de[r(Mt).id]},set listRef(ii){de[r(Mt).id]=ii}})}),g(ri),E(Ze=>Bi=J(ri,1,"settings-menu-container svelte-17or3al",null,Bi,Ze),[()=>({mobile:d(),hidden:!n()})]),$(t,ri),z(),o()}st(["keydown","click"]);var H3=t=>t;function g1(t,{delay:e=0,duration:i=400,easing:o=H3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var F3=L('<button class="button svelte-1sbbskl"> </button>'),U3={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function ym(t,e){W(t,U3);var i=F3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),E(()=>ve(o,e.label)),$(t,i)}st(["click"]);var z3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),q3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
|
|
310
310
|
/**
|
|
311
311
|
* \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
|
|
312
|
-
*/pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Cd(t,e){
|
|
312
|
+
*/pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Cd(t,e){U(e,!0),W(t,q3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=qt(),{ui:{t:n}}=Te(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=z3(),d=h(s),l=h(d),p=h(l),m=h(p);wd(m,{message:a}),g(p);var b=M(p,2);{var u=w=>{let y=v(()=>n("slow_video_notification_button"));ym(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};R(b,w=>{o||w(u)})}g(l);var _=M(l,2);Js(_,{get onClick(){return e.onClose}}),g(d),g(s),lp(3,d,()=>g1,()=>({duration:i})),$(t,s),z()}import{Subscription as W3}from"@vkontakte/videoplayer-shared/es2018";var fa="annotation",ou=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:a,hideAllControls:s}=i;e.setAttribute("slot",fa),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(n,a),s&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var b;let n=this.slots.get(e);if(!n)return;let a=await this.findSlotElement(n.rootElement,i,e),s=(u,_)=>!(u.right<_.left||u.left>_.right||u.bottom<_.top||u.top>_.bottom),{controls:d,hiddenControls:l}=((b=this.store)==null?void 0:b.ui)||{},p=new MutationObserver(u=>u.forEach(()=>{let _=is(a,this.shadowRootContainer);o.forEach(w=>{let y=d==null?void 0:d[w],C=y?Ce(y):null,T=l==null?void 0:l[w];C&&(T==null||T.set(s(C,_)))})}));p.observe(a,{childList:!0,subtree:!0}),n.observer=p;let m=new W3;o.forEach(u=>{d&&m.add(d[u].subscribe(_=>{let w=l==null?void 0:l[u];_&&(w==null||w.set(s(_,is(a,this.shadowRootContainer))))}))}),n.subs=m}async findSlotElement(e,i,o){return new Promise(n=>{let a=null,s=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){s.disconnect();let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=void 0),n(a)}});s.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=s)})}remove(e){var p,m;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:a,subs:s,options:{controlsBehaviour:d,hideAllControls:l}}=i;o&&o.remove(),[n,a].forEach(b=>b==null?void 0:b.disconnect()),s==null||s.unsubscribe(),this.slots.delete(e),l&&((p=this.store)==null||p.ui.isControlsAvailable.set(!0)),(m=d==null?void 0:d.controlsToObserve)==null||m.forEach(b=>{var u,_;(_=(u=this.store)==null?void 0:u.ui.hiddenControls[b])==null||_.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var K3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),Q3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
|
|
313
313
|
|
|
314
314
|
animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
|
|
315
315
|
|
|
@@ -340,8 +340,8 @@ Try switching the\xA0quality to\xA0Auto.`},rh=X0;var es=new Map;es.set(ah.EN,rh)
|
|
|
340
340
|
opacity: 0;
|
|
341
341
|
scale: 0;
|
|
342
342
|
}
|
|
343
|
-
}`};function
|
|
344
|
-
.video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function ma(t,e){z(e,!0),W(t,W3);let[i,o]=Be(),n=()=>S(m,"$rotateAlpha",i),a=()=>S($,"$playerSize",i),s=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),l=f(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:m,playerSize:$},state:{isPlaying$:u}}=Ce(),{isSmoothVideoRotate:_}=Ut(),w=v(()=>l()&&n()%180?a().height/a().width:1);var y=q3();let C;y.__contextmenu=function(...E){var P;(P=e.onContextMenu)==null||P.apply(this,E)},y.__mousedown=function(...E){var P;(P=e.onMouseDown)==null||P.apply(this,E)},y.__mouseup=function(...E){var P;(P=e.onMouseUp)==null||P.apply(this,E)},y.__click=function(...E){var P;(P=e.onClick)==null||P.apply(this,E)};var T=h(y);ee(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!_}),ct(T,E=>l(E),()=>l()),g(y),k(E=>{C=ee(y,1,"video-wrapper svelte-1czns9r",null,C,E),ot(T,`transform: rotate(${n()}deg) scale(${r(w)})`),De(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),b(t,y),q(),o()}at(["contextmenu","mousedown","mouseup","click"]);var K3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},Q3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},G3=L("<div><!></div>"),j3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Y3=L("<div><!></div>"),Z3=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),X3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),J3=L("<!> <!> <!>",1),ex=L('<div class="blocked svelte-jtgjmv"></div>'),tx=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),ix={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function $m(t,e){z(e,!0),W(t,ix);let[i,o]=Be(),n=()=>S(zo,"$notificationsToShow$",i),a=()=>S(Gt,"$playerPhase",i),s=()=>S(ui,"$isLoaderVisible",i),d=()=>S(Jt,"$adPlaybackState",i),l=()=>S(Ct,"$crashed",i),p=()=>S(wo,"$isInteractiveTime$",i),m=()=>S($t,"$settingsMenuVisible",i),$=()=>S(Ai,"$isInteractiveExpectation$",i),u=()=>S(Mt,"$controlsVisible",i),_=()=>S(Ho,"$touched",i),w=()=>S(qn,"$graphIsOpened$",i),y=()=>S(wi,"$isFullscreen",i),C=()=>S(wr,"$autoplayNextEnabled$",i),T=()=>S(ri,"$postrollPassed",i),E=()=>S(zi,"$isEnded$",i),P=()=>S(qo,"$cursorInside",i),A=()=>S(Sn,"$fakeIsPlaying$",i),I=()=>S(ji,"$bottomNoSmooth",i),V=()=>S(wn,"$interactiveTimeIndicator",i),F=()=>S(Gi,"$playerSize",i),j=()=>S(xo,"$is3DVideo",i),H=()=>S(Y,"$contextMenuVisible$",i),X=()=>S(We,"$playbackState$",i),oe=()=>S(Zi,"$hotKeyMapData",i),Z=()=>S(yo,"$scrubbingInProgress",i),fe=()=>S(nn,"$volumeChangingInProgress",i),ae=()=>S(ni,"$chromecastConnected$",i),Me=()=>S(Mo,"$controlsTimeoutActive",i),Pe=()=>S(Vt,"$settingsMenuOpenedByKeyboard",i),he=()=>S(ko,"$contextMenuOpenedByKeyboard$",i),se=()=>S(kr,"$contextMenuButtonRef$",i),Ae=()=>S(cr,"$contextMenuOpenedByHotKey$",i),ne=()=>S(Er,"$contextMenuLastActiveElem$",i),B=()=>S(Si,"$isFullscreenOpenedByKeyboard",i),ue=()=>S(zt,"$language$",i),ge=()=>S(li,"$icon3DVideoVisible",i),Ke=()=>S(pi,"$chromecastDeviceName$",i),te=()=>S(co,"$currentSubtitle$",i),G=()=>S(yn,"$currentSubtitleCaptions$",i),K=()=>S(Ui,"$position$",i),Le=()=>S(Ze,"$duration$",i),Ne=()=>S(dt,"$isLive$",i),tt=()=>S(lo,"$isPlaying$",i),we=()=>S(rn,"$contextMenuPosition$",i),be=()=>S(qi,"$showHotKeyMap",i),Ve=()=>S(jt,"$debugPanelVisible",i),je=()=>S(rr,"$userActionsDisabled$",i),it=f(e,"videoContainer",15),vt=f(e,"adsSlotId",3,void 0),Je=f(e,"adsParams",3,void 0),wt=f(e,"adsPreviewParam",3,void 0),_t=f(e,"adsAutoplayParam",3,void 0),Kt=f(e,"duration",3,void 0),Qt=f(e,"logoTargetUrl",3,""),At=f(e,"showNextPrevButtons",3,!1),It=f(e,"nextButtonActive",3,!1),O=f(e,"prevButtonActive",3,!1),_e=f(e,"endScreenVideoTitle",3,void 0),re=f(e,"endScreenVideoThumb",3,void 0),Oe=f(e,"isOneVideoPlaylist",3,!1),He=f(e,"shadowRootContainer",3,void 0),Ye=f(e,"outerContainerRef",3,void 0),lt=f(e,"playerStarted",3,!1),Ge=f(e,"fullScreenTarget",3,void 0),et=f(e,"showMiniTimer",3,!1),Xe=f(e,"showEndScreen",3,!0),Ue=f(e,"keyboardControls",15),ut=e.store.getLogger().createComponentLog("Root component"),zt=e.store.interfaceLanguage$,We=e.store.state.playbackState$,Jt=e.store.ads.playbackState,Ui=e.store.state.positionWithScrubbing$,Ze=e.store.state.duration$,Gt=e.store.playerPhase,wi=e.store.ui.isFullscreen,Si=e.store.ui.isFullscreenOpenedByKeyboard,Mt=e.store.ui.controlsVisible,$t=e.store.ui.settingsMenu.visible$,Vt=e.store.ui.settingsMenu.openedByBtnKeyboard$,yo=e.store.ui.scrubbingInProgress,nn=e.store.ui.volumeChangingInProgress,Y=e.store.ui.contextMenu.visible$,jt=e.store.ui.debugPanelVisible,ui=e.store.state.isLoaderVisible,zi=e.store.state.isEnded$,ni=e.store.state.chromecastConnected$,pi=e.store.state.chromecastDeviceName$,ri=e.store.ads.postrollPassed,dt=e.store.state.isLive$,lo=e.store.state.isPlaying$,Ct=e.store.state.crashed$,qt=e.store.webApi.annotationsApi,ii=e.store.webApi.pictureInPictureApi,co=e.store.state.currentSubtitle$,yn=e.store.state.currentSubtitleCaptions$,Gi=e.store.ui.playerSize,xo=e.store.ui.is3DVideo,li=e.store.ui.icon3DVideoVisible,yt=e.store.state.isInteractive,wo=e.store.state.isInteractiveTime$,Ai=e.store.state.isInteractiveExpectation$,Ci=e.store.state.hasInteractiveBranches,Ho=e.store.ui.touched,Zi=e.store.ui.modals.hotKeyMap.data,qi=e.store.ui.modals.hotKeyMap.show,xn=e.store.ui.overlayContainer$,wn=e.store.ui.controls.interactiveTimeIndicator,Bi=e.store.state.showInteractiveTimeIndicator,rn=e.store.ui.contextMenu.position$,So=e.store.actions.internal.setQuality,Co=e.store.actions.internal.closeSettingsMenu,wr=e.store.ui.autoplayNextEnabled$,rr=e.store.ui.userActionsDisabled,{fakeIsPlaying$:Sn,notifications$:zn,graphIsOpened$:qn}=ao(),uo=J(void 0),Fo=J(void 0),Cn=J(void 0),nt=J(void 0),Uo,sn,Tn;Zi.set(mh());let{closeNotification:sr,notificationsToShow$:zo}=zn,Wn=v(()=>!!n().slow_video),an=()=>sr("slow_video"),In=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Di=J(void 0),ji=de(!1),kn,Mo=de(!1),En=de(),qo=de(!1),Lo=J(!1),vi=J(!1),Kn=J(!1),To=J(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),ar=v(()=>p()&&!m()&&!(r(Lo)||r(vi))&&!(r(Kn)&&!$())),ln=!0,dn=v(()=>e.uiConfig.features.thumbTimer&&et()&&a()==="video"&&!u()&&!l()&&!yt&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),lr=v(()=>a()==="video"&&!w()&&y()),Wo=J(!1),Sr=v(()=>(Xe()||e.showAutoplayNext&&C())&&!!_e()&&!!re()&&(e.showAds&&T()||!e.showAds)&&E()&&!l()&&!r(Wo)),Pn=v(()=>P()&&!(u()||r(Sr))&&!p()),Qn=J(!1),dr=v(()=>A()!==null),{toggle:Cr}=Sn,Gn=!1,cn=null;ii==null||ii.setContext(Sl());let jn=()=>{e.autoplay&&!yt&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ti(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:jn});let di=()=>{window.clearTimeout(Uo),Mo.set(!1)},Vo=()=>{window.clearTimeout(sn),En.set(null)},Ti=xe=>{di(),Mo.set(!0),Uo=window.setTimeout(()=>Mo.set(!1),xe);let kt=xe-100;kn=window.setTimeout(()=>{I()&&ji.set(!1)},kt>0?kt:xe)},Yn=(xe,kt)=>{Vo(),En.set(kt),sn=window.setTimeout(()=>En.set(null),xe)},pt=xo.subscribe(xe=>{li.set(xe),xe&&(window.clearTimeout(Tn),Tn=window.setTimeout(()=>li.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ot=async()=>{var kt,mi,hi,Eo;let xe=gs();if(xe){let ci=Dl(),Ie=rt();xe=ci===Ie||ci===He()}if(xe){Ti(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ii==null?void 0:ii.remove())}catch(ci){ut({message:String(ci)})}}wi.set(xe),e.store.getAdmanWrapper().setFullscreen(xe),y()?(mi=(kt=e.store.callbacks)==null?void 0:kt.onFullscreenEnter)==null||mi.call(kt):(Eo=(hi=e.store.callbacks)==null?void 0:hi.onFullscreenExit)==null||Eo.call(hi)},Mi=xe=>{let{width:kt,height:mi}=xe.target;Gi.set({width:kt,height:mi})},Io=()=>{let{width:xe,height:kt}=r(uo).getBoundingClientRect();Gi.set({width:xe,height:kt})};Ft(()=>{var kt;return Ec(Ot),e.uiConfig.features.annotationsInside&&(qt==null||qt.init(r(uo))),Ys(ii)&&(ii==null||ii.assignPlayerContainer(r(uo)),ii==null||ii.registryExternalEventHandlers({resize:Mi,leavepictureinpicture:Io})),e.interactiveContainer&&((kt=it().parentElement)==null||kt.insertBefore(e.interactiveContainer,it().nextSibling)),()=>{window.clearTimeout(Uo),window.clearTimeout(kn),window.clearTimeout(sn),window.clearTimeout(Tn),pt(),ii==null||ii.dispose().catch(mi=>{ut({message:String(mi)})}),Pc(Ot)}});let rt=()=>{let xe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ye()?r(uo):Ye(),kt=xe.getRootNode(),mi=kt instanceof ShadowRoot?kt.host:kt,hi=Ge()instanceof HTMLElement&&Ge().contains(mi);return e.uiConfig.allowChangingFullscreenTarget&&Ge()&&hi?Ge():xe},Rt=async()=>{gs()?(await kc(document),ut({message:"exit fullscreen"})):(ut({message:"request fullscreen"}),await Ic(rt()))},fi=()=>{Co(),Y.set(!1)},Oi=xe=>{w()||(xe.preventDefault(),Y.set(!0),rn.set({left:xe.clientX,top:xe.clientY}))};function po(){qo.set(!0),yt||Ti(e.uiConfig.controls.hideTimeoutCursor)}function xi(){yt||(ji.set(!0),Ti(e.uiConfig.controls.hideTimeoutCursor))}function Li(){qo.set(!1),D(vi,!1),D(Lo,!1),Gn=!1,e.store.actions.internal.releaseCamera(),Ti(e.uiConfig.controls.hideTimeout)}function gi(xe){return xe?xe.offsetTop+gi(xe.offsetParent):0}function fo(xe){return xe?xe.offsetLeft+fo(xe.offsetParent):0}function Xi(xe){if(V()&&Bi){let kt=xe.currentTarget,mi=gi(kt),hi=fo(kt),Eo=xe.pageX-hi,ci=xe.pageY-mi,{left:Ie,bottom:Tt,right:ei}=V(),Ii=ei-Ie;return Eo>=Ie-Ii&&ci<=Tt+Ii}}function Ji(xe){if(r(uo)){let kt=gi(xe.currentTarget),mi=F().height,hi=xe.pageY-kt;if(Xi(xe)){D(vi,!1);return}hi<40?D(vi,!0):hi>mi-40?D(Lo,!0):(D(vi,!1),m()||D(Lo,!1))}}function un(xe){Ji(xe),r(ar)||Ti(e.uiConfig.controls.hideTimeoutCursor),j()&&Gn&&cn&&e.store.actions.internal.moveCameraFocusPX(cn.clientX-xe.clientX,cn.clientY-xe.clientY,xe.timeStamp-cn.timeStamp),cn=xe}let Zn=xe=>{xe.preventDefault(),xe.button===0&&(Gn=!0,e.store.actions.internal.holdCamera()),Ti(e.uiConfig.controls.hideTimeoutCursor)},Xn=xe=>{xe.preventDefault(),xe.button===0&&(cn=xe,Gn=!1,e.store.actions.internal.releaseCamera()),Ti(e.uiConfig.controls.hideTimeoutCursor)},Tr=xe=>{var kt;if(xe.preventDefault(),H()||m()){fi();return}if(!(E()&&!Ci)){if(r(dr))return Cr();if((kt=Ue())==null||kt.focus(),!lt()){e.firstStart(),Ti(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||X()!==v1.PLAYING)&&e.store.actions.internal.togglePlay(),Ti(e.uiConfig.controls.hideTimeoutCursor)}},Ir=xe=>{fi(),Ho.set(!0),Ti(e.uiConfig.controls.hideTimeout),xe&&Yn(e.uiConfig.controls.hideHotKeyHelpers,xe)},An=()=>{var xe,kt;fi(),(xe=e.store.callbacks)!=null&&xe.onOpenHotKeyMap?(kt=e.store.callbacks)==null||kt.onOpenHotKeyMap(oe()):qi.update(mi=>!mi)},Mn=()=>{Ho.set(!0)},ko=e.store.ui.contextMenu.openedByBtnKeyboard$,kr=e.store.ui.contextMenu.btnRef$,Ro=J(void 0),cr=e.store.ui.contextMenu.openedByHotKey$,Er=e.store.ui.contextMenu.lastActiveElem$;ze(()=>{xn.set(r(Di))}),ze(()=>{D(Kn,pe(r(To)&&X()!==v1.PLAYING)),r(To)||bt(()=>D(To,!0))}),ze(()=>{Mt.set((r(Kn)||E()||m()||Z()||fe()||ae()||Me())&&!r(ar)&&(a()==="video"||a()==="ads")&&!l())}),ze(()=>{!Z()&&r(Qn)&&!p()&&Ti(e.uiConfig.controls.hideTimeoutCursor),bt(()=>D(Qn,pe(Z())))}),ze(()=>{r(nt),m(),Pe(),bt(()=>Wa(r(nt),m(),Pe()))}),ze(()=>{r(Ro),H(),he(),bt(()=>Wa(r(Ro),H(),he()))}),ze(()=>{let xe=se();xe&&(H(),bt(()=>qa(xe,H(),ko)))}),ze(()=>{r(Ro),H(),Ae(),bt(()=>Wa(r(Ro),H(),Ae()))}),ze(()=>{let xe=ne();xe&&(H(),bt(()=>$h(xe,H(),cr)))}),ze(()=>{var xe;!B()&&y()&&(bt(()=>Si.set(!1)),(xe=Ue())==null||xe.focus())}),ze(()=>{w()&&fi()});let Pr=U("video360");var ur=tx();xt("blur",Ds,fi);var Yi=ce(ur);Yi.__mousemove=un,Yi.__dblclick=[K3,ln,ut,Rt,Ti,e];var pn=h(Yi);let Fr=v(()=>a()==="ads"),pr=v(()=>r(dr)?Cr:void 0);ct(Op(pn,{toggleFullscreen:Rt,hideContextMenu:fi,showHotKeyHelpers:Ir,showKeyMap:An,get isAds(){return r(Fr)},get fakePlayButtonHandler(){return r(pr)},get nextButtonActive(){return It()},get prevButtonActive(){return O()},children:(xe,kt)=>{var mi=J3(),hi=ce(mi);ma(hi,{get hideCursor(){return r(Pn)},onClick:Tr,onContextMenu:Oi,onMouseDown:Zn,onMouseUp:Xn,get videoContainer(){return it()},set videoContainer(Ie){it(Ie)}});var Eo=M(hi,2);qs(Eo,()=>"slot",!1,(Ie,Tt)=>{Te(Ie,null,{name:fa})});var ci=M(Eo,2);zs(ci,ue,Ie=>{var Tt=X3(),ei=ce(Tt);let Ii=v(()=>a()!=="thumb"||l()||yt&&e.autoplay);ca(ei,{get hidden(){return r(Ii)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var oi=M(ei,2);bm(oi,{});var Ko=M(oi,2);{var fn=qe=>{let ai=v(()=>{var Qo;return(Qo=e.live)==null?void 0:Qo.startTime});yd(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ai)}})};R(Ko,qe=>{a()==="LiveWaitingStart"&&qe(fn)})}var Ar=M(Ko,2);{var Ln=qe=>{ua(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Ar,qe=>{a()==="LiveWaitingRecover"&&qe(Ln)})}var Ur=M(Ar,2);{var va=qe=>{ua(qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ur,qe=>{a()==="LiveWaitingRecord"&&qe(va)})}var Cs=M(Ur,2);{var nl=qe=>{var ai=G3();let Qo;var Es=h(ai);Ol(Es,{get adsSlotId(){return vt()},get adsParams(){return Je()},get adsPreviewParam(){return wt()},get adsAutoplayParam(){return _t()},get duration(){return Kt()}}),g(ai),k(mo=>Qo=ee(ai,1,"ads-container svelte-jtgjmv",null,Qo,mo),[()=>({hidden:a()!=="ads"})]),b(qe,ai)};R(Cs,qe=>{e.showAds&<()&&qe(nl)})}var ga=M(Cs,2);{var rl=qe=>{let ai=v(()=>!Xe()&&e.showAutoplayNext&&C());Np(qe,{get title(){return _e()},get thumb(){return re()},get isHide(){return r(ai)},clickCloseIcon:()=>D(Wo,!0)})};R(ga,qe=>{r(Sr)&&_e()&&re()&&qe(rl)})}var Ts=M(ga,2);{var sl=qe=>{let ai=v(()=>!u());Gf(qe,{get title(){return e.title},get isHidden(){return r(ai)}})};R(Ts,qe=>{r(lr)&&qe(sl)})}var Jn=M(Ts,2);{var ha=qe=>{let ai=v(()=>a()==="video"&&u());_d(qe,{get isShifted(){return r(ai)}})};R(Jn,qe=>{j()&&qe(ha)})}var Is=M(Jn,2);{var ht=qe=>{var ai=j3(),Qo=h(ai);Bl(Qo,{"aria-label":Pr}),g(ai),b(qe,ai)};R(Is,qe=>{ge()&&qe(ht)})}var gt=M(Is,2);{var eo=qe=>{bd(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ke()}})};R(gt,qe=>{ae()&&qe(eo)})}var No=M(gt,2);{var to=qe=>{da(qe,{get shifted(){return u()},get captions(){return G()},get position(){return K()},get playerSize(){return F()}})};R(No,qe=>{te().value!=="off"&&qe(to)})}var si=M(No,2);{var Hi=qe=>{var ai=Y3();ai.__contextmenu=Oi,ai.__click=[Q3,H,Y,m,$t,fi];var Qo=h(ai);$d(Qo,{}),g(ai),b(qe,ai)};R(si,qe=>{l()&&qe(Hi)})}var ss=M(si,2);{var al=qe=>{let ai=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Qo=v(()=>a()==="ads"),Es=v(()=>e.canRewindLive&&Le()!==0);hd(qe,{get bottomHidden(){return r(ai)},get bottomNoSmooth(){return I()},get showControls(){return u()},get isAds(){return r(Qo)},get canRewindLive(){return r(Es)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return At()},get nextButtonActive(){return It()},get prevButtonActive(){return O()},get isOneVideoPlaylist(){return Oe()},customFullscreenSupported:ln,toggleFullscreen:Rt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Fo)},set playerControlsWrapperRef(mo){D(Fo,pe(mo))},get playerControlsRef(){return r(Cn)},set playerControlsRef(mo){D(Cn,pe(mo))}})};R(ss,qe=>{lt()&&qe(al)})}var Nd=M(ss,2);{var fu=qe=>{var ai=Z3(),Qo=h(ai);let Es=v(()=>{var mo;return(mo=r(Cn))==null?void 0:mo.clientHeight});Sd(Qo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Es)},returnFocus:()=>{var mo;return(mo=Ue())==null?void 0:mo.focus()},get ref(){return r(nt)},set ref(mo){D(nt,pe(mo))}}),g(ai),b(qe,ai)};R(Nd,qe=>{!ae()&&a()!=="ads"&&qe(fu)})}var Bd=M(Nd,2);let mu=v(()=>!r(dn));Ul(Bd,{get isLive(){return Ne()},get isHidden(){return r(mu)},get isPlaying(){return tt()},get position(){return K()},get duration(){return Le()}});var ks=M(Bd,2);qf(ks,{data:En});var Dd=M(ks,2);Rp(Dd,{get supportLink(){return e.supportLink},returnFocus:()=>{var qe;return(qe=Ue())==null?void 0:qe.focus()},get visible(){return H()},get playerContainerRef(){return r(uo)},get controlsContainerRef(){return r(Fo)},get position(){return we()},get menuElementRef(){return r(Ro)},set menuElementRef(qe){D(Ro,pe(qe))}});var ll=M(Dd,2);{var Od=qe=>{Cd(qe,{onClose:an,onSelectAutoQuality:()=>{So("auto"),an()}})};R(ll,qe=>{r(Wn)&&qe(Od)})}var Hd=M(ll,2);{var Fd=qe=>{ta(qe,{})};R(Hd,qe=>{r(In)&&qe(Fd)})}var _a=M(Hd,2);{var Ud=qe=>{Up(qe,{})};R(_a,qe=>{be()&&qe(Ud)})}var vu=M(_a,2);{var zd=qe=>{Kl(qe,{})};R(vu,qe=>{Ve()&&qe(zd)})}b(Ie,Tt)}),b(xe,mi)},$$slots:{default:!0}}),xe=>Ue(xe),()=>Ue());var st=M(pn,2);ct(st,xe=>D(Di,xe),()=>r(Di)),g(Yi),ct(Yi,xe=>D(uo,xe),()=>r(uo));var Ht=M(Yi,2);{var Vi=xe=>{var kt=ex();b(xe,kt)};R(Ht,xe=>{je()&&xe(Vi)})}xt("mouseenter",Yi,po),xt("mouseleave",Yi,Li),xt("click",Yi,Mn,!0),xt("focusin",Yi,xi,!0),b(t,ur),q(),o()}at(["mousemove","dblclick","contextmenu","click"]);import{clientChecker as Td,PlaybackState as px}from"@vkontakte/videoplayer-core/es2018";import{noop as fx}from"@vkontakte/videoplayer-shared/es2018";var ox=L('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),nx=L("<div><!></div>"),rx={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
|
|
343
|
+
}`};function xm(t,e){U(e,!0),W(t,Q3);let[i,o]=Re(),n=()=>S(s,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Te(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:m,playbackStatusNextVideoAnimationDuration:b}}=qt(),u=0,_=X(null),w=X(!1);He(()=>{D(_,fe(n()?yr:rs))}),He(()=>{D(_,fe(a()?ws:null))}),He(()=>{if(p)return u=window.setTimeout(()=>{u=0,a()&&r(_)===ws&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D(_,null)},r(_)!==ws?m:b),()=>{u&&(window.clearTimeout(u),u=0)}}),He(()=>{n()&&!r(w)&&(D(w,!0),D(_,null))});var y=De(),C=pe(y);{var T=k=>{var P=De(),A=pe(P);zs(A,()=>r(_),I=>{var V=K3(),q=h(V),Q=h(q);let H=v(()=>a()==="prev");ki(Q,()=>r(_),(Y,ne)=>{ne(Y,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(H)}})}),g(q),g(V),E(()=>nt(q,`animation-duration: ${r(_)!==ws?m:b}ms`)),$(I,V)}),$(k,P)};R(C,k=>{r(_)&&p&&k(T)})}$(t,y),z(),o()}var G3=L('<div><div data-testid="video-container"></div></div>'),j3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
|
|
344
|
+
.video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function ma(t,e){U(e,!0),W(t,j3);let[i,o]=Re(),n=()=>S(m,"$rotateAlpha",i),a=()=>S(b,"$playerSize",i),s=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),l=f(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:m,playerSize:b},state:{isPlaying$:u}}=Te(),{isSmoothVideoRotate:_}=qt(),w=v(()=>l()&&n()%180?a().height/a().width:1);var y=G3();let C;y.__contextmenu=function(...k){var P;(P=e.onContextMenu)==null||P.apply(this,k)},y.__mousedown=function(...k){var P;(P=e.onMouseDown)==null||P.apply(this,k)},y.__mouseup=function(...k){var P;(P=e.onMouseUp)==null||P.apply(this,k)},y.__click=function(...k){var P;(P=e.onClick)==null||P.apply(this,k)},y.__dblclick=function(...k){var P;(P=e.onDblClick)==null||P.apply(this,k)};var T=h(y);J(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!_}),pt(T,k=>l(k),()=>l()),g(y),E(k=>{C=J(y,1,"video-wrapper svelte-1czns9r",null,C,k),nt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Be(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),$(t,y),z(),o()}st(["contextmenu","mousedown","mouseup","click","dblclick"]);var Y3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},Z3=L("<div><!></div>"),X3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),J3=L("<div><!></div>"),ex=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),tx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ix=L("<!> <!> <!>",1),ox=L('<div class="blocked svelte-jtgjmv"></div>'),nx=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),rx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function wm(t,e){U(e,!0),W(t,rx);let[i,o]=Re(),n=()=>S(nn,"$notificationsToShow$",i),a=()=>S(Ni,"$playerPhase",i),s=()=>S(Xt,"$isLoaderVisible",i),d=()=>S(ti,"$adPlaybackState",i),l=()=>S(Mt,"$crashed",i),p=()=>S(Eo,"$isInteractiveTime$",i),m=()=>S(Rt,"$settingsMenuVisible",i),b=()=>S(pi,"$isInteractiveExpectation$",i),u=()=>S(ht,"$controlsVisible",i),_=()=>S(qi,"$touched",i),w=()=>S(ir,"$graphIsOpened$",i),y=()=>S(zi,"$isFullscreen",i),C=()=>S(wr,"$autoplayNextEnabled$",i),T=()=>S(ft,"$postrollPassed",i),k=()=>S(ri,"$isEnded$",i),P=()=>S(Lo,"$cursorInside",i),A=()=>S(Rn,"$isControlsAvailable",i),I=()=>S(bn,"$fakeIsPlaying$",i),V=()=>S(an,"$bottomNoSmooth",i),q=()=>S(So,"$interactiveTimeIndicator",i),Q=()=>S(Ho,"$playerSize",i),H=()=>S(di,"$is3DVideo",i),Y=()=>S($o,"$contextMenuVisible$",i),ne=()=>S(Qt,"$playbackState$",i),Z=()=>S(xo,"$hotKeyMapData",i),de=()=>S(en,"$scrubbingInProgress",i),ce=()=>S(hn,"$volumeChangingInProgress",i),Le=()=>S(Bi,"$chromecastConnected$",i),Ae=()=>S(Fo,"$controlsTimeoutActive",i),he=()=>S(co,"$settingsMenuOpenedByKeyboard",i),se=()=>S(Ro,"$contextMenuOpenedByKeyboard$",i),Me=()=>S(kr,"$contextMenuButtonRef$",i),oe=()=>S(pr,"$contextMenuOpenedByHotKey$",i),B=()=>S(Er,"$contextMenuLastActiveElem$",i),be=()=>S(At,"$isFullscreenOpenedByKeyboard",i),le=()=>S(Xe,"$language$",i),We=()=>S(xt,"$icon3DVideoVisible",i),ee=()=>S(li,"$chromecastDeviceName$",i),me=()=>S(er,"$currentSubtitle$",i),j=()=>S(yo,"$currentSubtitleCaptions$",i),te=()=>S(Je,"$position$",i),Oe=()=>S(Zt,"$duration$",i),Ge=()=>S(ui,"$isLive$",i),$e=()=>S(Ze,"$isPlaying$",i),we=()=>S(ji,"$contextMenuPosition$",i),Ve=()=>S(wo,"$showHotKeyMap",i),je=()=>S(G,"$debugPanelVisible",i),dt=()=>S(tr,"$userActionsDisabled$",i),ct=f(e,"videoContainer",15),rt=f(e,"adsSlotId",3,void 0),Ct=f(e,"adsParams",3,void 0),_t=f(e,"adsPreviewParam",3,void 0),Gt=f(e,"adsAutoplayParam",3,void 0),ni=f(e,"duration",3,void 0),It=f(e,"logoTargetUrl",3,""),Vt=f(e,"showNextPrevButtons",3,!1),O=f(e,"nextButtonActive",3,!1),_e=f(e,"prevButtonActive",3,!1),re=f(e,"endScreenVideoTitle",3,void 0),Ne=f(e,"endScreenVideoThumb",3,void 0),ze=f(e,"isOneVideoPlaylist",3,!1),Qe=f(e,"shadowRootContainer",3,void 0),ut=f(e,"outerContainerRef",3,void 0),Ye=f(e,"playerStarted",3,!1),et=f(e,"fullScreenTarget",3,void 0),tt=f(e,"showMiniTimer",3,!1),qe=f(e,"showEndScreen",3,!0),gt=f(e,"keyboardControls",15),Ht=e.store.getLogger().createComponentLog("Root component"),Xe=e.store.interfaceLanguage$,Qt=e.store.state.playbackState$,ti=e.store.ads.playbackState,Je=e.store.state.positionWithScrubbing$,Zt=e.store.state.duration$,Ni=e.store.playerPhase,zi=e.store.ui.isFullscreen,At=e.store.ui.isFullscreenOpenedByKeyboard,ht=e.store.ui.controlsVisible,Rt=e.store.ui.settingsMenu.visible$,co=e.store.ui.settingsMenu.openedByBtnKeyboard$,en=e.store.ui.scrubbingInProgress,hn=e.store.ui.volumeChangingInProgress,$o=e.store.ui.contextMenu.visible$,G=e.store.ui.debugPanelVisible,Xt=e.store.state.isLoaderVisible,ri=e.store.state.isEnded$,Bi=e.store.state.chromecastConnected$,li=e.store.state.chromecastDeviceName$,ft=e.store.ads.postrollPassed,ui=e.store.state.isLive$,Ze=e.store.state.isPlaying$,Mt=e.store.state.crashed$,eo=e.store.webApi.annotationsApi,ii=e.store.webApi.pictureInPictureApi,er=e.store.state.currentSubtitle$,yo=e.store.state.currentSubtitleCaptions$,Ho=e.store.ui.playerSize,di=e.store.ui.is3DVideo,xt=e.store.ui.icon3DVideoVisible,Ci=e.store.state.isInteractive,Eo=e.store.state.isInteractiveTime$,pi=e.store.state.isInteractiveExpectation$,Po=e.store.state.hasInteractiveBranches,qi=e.store.ui.touched,xo=e.store.ui.modals.hotKeyMap.data,wo=e.store.ui.modals.hotKeyMap.show,Vn=e.store.ui.overlayContainer$,So=e.store.ui.controls.interactiveTimeIndicator,_n=e.store.state.showInteractiveTimeIndicator,ji=e.store.ui.contextMenu.position$,Ao=e.store.actions.internal.setQuality,tn=e.store.actions.internal.closeSettingsMenu,wr=e.store.ui.autoplayNextEnabled$,tr=e.store.ui.userActionsDisabled,Rn=e.store.ui.isControlsAvailable,{fakeIsPlaying$:bn,notifications$:Nn,graphIsOpened$:ir}=lo(),to=X(void 0),Mo=X(void 0),$n=X(void 0),it=X(void 0),yn,Bn,on;xo.set(hh());let{closeNotification:or,notificationsToShow$:nn}=Nn,rn=v(()=>!!n().slow_video),sn=()=>or("slow_video"),Yi=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Wi=X(void 0),an=ae(!1),Dn,Fo=ae(!1),ln=ae(),Lo=ae(!1),uo=X(!1),Di=X(!1),On=X(!1),io=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),xn=v(()=>p()&&!m()&&!(r(uo)||r(Di))&&!(r(On)&&!b())),Hn=!0,dn=v(()=>e.uiConfig.features.thumbTimer&&tt()&&a()==="video"&&!u()&&!l()&&!Ci&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),Sr=v(()=>a()==="video"&&!w()&&y()),Uo=X(!1),Cr=v(()=>(qe()||e.showAutoplayNext&&C())&&!!re()&&!!Ne()&&(e.showAds&&T()||!e.showAds)&&k()&&!l()&&!r(Uo)),Fn=v(()=>P()&&!(u()||r(Cr))&&!p()&&A()),Un=X(!1),nr=v(()=>I()!==null),{toggle:Tr}=bn,wn=!1,Jt=null;ii==null||ii.setContext(Sl());let rr=()=>{e.autoplay&&!Ci&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ti(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:rr});let Ir=()=>{window.clearTimeout(yn),Fo.set(!1)},Vo=()=>{window.clearTimeout(Bn),ln.set(null)},Ti=Se=>{Ir(),Fo.set(!0),yn=window.setTimeout(()=>Fo.set(!1),Se);let Pt=Se-100;Dn=window.setTimeout(()=>{V()&&an.set(!1)},Pt>0?Pt:Se)},sr=(Se,Pt)=>{Vo(),ln.set(Pt),Bn=window.setTimeout(()=>ln.set(null),Se)},mt=di.subscribe(Se=>{xt.set(Se),Se&&(window.clearTimeout(on),on=window.setTimeout(()=>xt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ft=async()=>{var Pt,gi,_i,mi;let Se=gs();if(Se){let ke=Dl(),bt=ot();Se=ke===bt||ke===Qe()}if(Se){Ti(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ii==null?void 0:ii.remove())}catch(ke){Ht({message:String(ke)})}}zi.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),y()?(gi=(Pt=e.store.callbacks)==null?void 0:Pt.onFullscreenEnter)==null||gi.call(Pt):(mi=(_i=e.store.callbacks)==null?void 0:_i.onFullscreenExit)==null||mi.call(_i)},Pi=Se=>{let{width:Pt,height:gi}=Se.target;Ho.set({width:Pt,height:gi})},Co=()=>{let{width:Se,height:Pt}=r(to).getBoundingClientRect();Ho.set({width:Se,height:Pt})};zt(()=>{var Pt;return Pc(Ft),e.uiConfig.features.annotationsInside&&(eo==null||eo.init(r(to))),Ys(ii)&&(ii==null||ii.assignPlayerContainer(r(to)),ii==null||ii.registryExternalEventHandlers({resize:Pi,leavepictureinpicture:Co})),e.interactiveContainer&&((Pt=ct().parentElement)==null||Pt.insertBefore(e.interactiveContainer,ct().nextSibling)),()=>{window.clearTimeout(yn),window.clearTimeout(Dn),window.clearTimeout(Bn),window.clearTimeout(on),mt(),ii==null||ii.dispose().catch(gi=>{Ht({message:String(gi)})}),Ac(Ft)}});let ot=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ut()?r(to):ut(),Pt=Se.getRootNode(),gi=Pt instanceof ShadowRoot?Pt.host:Pt,_i=et()instanceof HTMLElement&&et().contains(gi);return e.uiConfig.allowChangingFullscreenTarget&&et()&&_i?et():Se},Nt=async()=>{gs()?(await Ec(document),Ht({message:"exit fullscreen"})):(Ht({message:"request fullscreen"}),await kc(ot()))},fi=()=>{tn(),$o.set(!1)},Oi=Se=>{w()||(Se.preventDefault(),$o.set(!0),ji.set({left:Se.clientX,top:Se.clientY}))};function po(){Lo.set(!0),Ci||Ti(e.uiConfig.controls.hideTimeoutCursor)}function wi(){Ci||(an.set(!0),Ti(e.uiConfig.controls.hideTimeoutCursor))}function Ai(){Lo.set(!1),D(Di,!1),D(uo,!1),wn=!1,e.store.actions.internal.releaseCamera(),Ti(e.uiConfig.controls.hideTimeout)}function vi(Se){return Se?Se.offsetTop+vi(Se.offsetParent):0}function hi(Se){return Se?Se.offsetLeft+hi(Se.offsetParent):0}function Hi(Se){if(q()&&_n){let Pt=Se.currentTarget,gi=vi(Pt),_i=hi(Pt),mi=Se.pageX-_i,ke=Se.pageY-gi,{left:bt,bottom:Kt,right:Si}=q(),si=Si-bt;return mi>=bt-si&&ke<=Kt+si}}function zn(Se){if(r(to)){let Pt=vi(Se.currentTarget),gi=Q().height,_i=Se.pageY-Pt;if(Hi(Se)){D(Di,!1);return}_i<40?D(Di,!0):_i>gi-40?D(uo,!0):(D(Di,!1),m()||D(uo,!1))}}function ar(Se){zn(Se),r(xn)||Ti(e.uiConfig.controls.hideTimeoutCursor),H()&&wn&&Jt&&e.store.actions.internal.moveCameraFocusPX(Jt.clientX-Se.clientX,Jt.clientY-Se.clientY,Se.timeStamp-Jt.timeStamp),Jt=Se}let qn=Se=>{Se.preventDefault(),Se.button===0&&(wn=!0,e.store.actions.internal.holdCamera()),Ti(e.uiConfig.controls.hideTimeoutCursor)},lr=Se=>{Se.preventDefault(),Se.button===0&&(Jt=Se,wn=!1,e.store.actions.internal.releaseCamera()),Ti(e.uiConfig.controls.hideTimeoutCursor)},dr=Se=>{Se.preventDefault(),Hn&&(Ht({message:"double click on video"}),Nt(),Ti(e.uiConfig.controls.hideTimeoutCursor))},cr=Se=>{var Pt;if(Se.preventDefault(),Y()||m()){fi();return}if(!(k()&&!Po)){if(r(nr))return Tr();if((Pt=gt())==null||Pt.focus(),!Ye()){e.firstStart(),Ti(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ne()!==_1.PLAYING)&&e.store.actions.internal.togglePlay(),Ti(e.uiConfig.controls.hideTimeoutCursor)}},ur=Se=>{fi(),qi.set(!0),Ti(e.uiConfig.controls.hideTimeout),Se&&sr(e.uiConfig.controls.hideHotKeyHelpers,Se)},Wn=()=>{var Se,Pt;fi(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(Pt=e.store.callbacks)==null||Pt.onOpenHotKeyMap(Z()):wo.update(gi=>!gi)},Kn=()=>{qi.set(!0)},Ro=e.store.ui.contextMenu.openedByBtnKeyboard$,kr=e.store.ui.contextMenu.btnRef$,No=X(void 0),pr=e.store.ui.contextMenu.openedByHotKey$,Er=e.store.ui.contextMenu.lastActiveElem$;He(()=>{Vn.set(r(Wi))}),He(()=>{D(On,fe(r(io)&&ne()!==_1.PLAYING)),r(io)||yt(()=>D(io,!0))}),He(()=>{ht.set((r(On)||k()||m()||de()||ce()||Le()||Ae())&&!r(xn)&&(a()==="video"||a()==="ads")&&!l()&&A())}),He(()=>{!de()&&r(Un)&&!p()&&Ti(e.uiConfig.controls.hideTimeoutCursor),yt(()=>D(Un,fe(de())))}),He(()=>{r(it),m(),he(),yt(()=>Ga(r(it),m(),he()))}),He(()=>{r(No),Y(),se(),yt(()=>Ga(r(No),Y(),se()))}),He(()=>{let Se=Me();Se&&(Y(),yt(()=>Qa(Se,Y(),Ro)))}),He(()=>{r(No),Y(),oe(),yt(()=>Ga(r(No),Y(),oe()))}),He(()=>{let Se=B();Se&&(Y(),yt(()=>wh(Se,Y(),pr)))}),He(()=>{var Se;!be()&&y()&&(yt(()=>At.set(!1)),(Se=gt())==null||Se.focus())}),He(()=>{w()&&fi()});let Pr=F("video360");var Ar=nx();St("blur",Ds,fi);var Zi=pe(Ar);Zi.__mousemove=ar;var Sn=h(Zi);let Mr=v(()=>a()==="ads"),at=v(()=>r(nr)?Tr:void 0);pt(Up(Sn,{toggleFullscreen:Nt,hideContextMenu:fi,showHotKeyHelpers:ur,showKeyMap:Wn,get isAds(){return r(Mr)},get fakePlayButtonHandler(){return r(at)},get nextButtonActive(){return O()},get prevButtonActive(){return _e()},children:(Se,Pt)=>{var gi=ix(),_i=pe(gi);ma(_i,{get hideCursor(){return r(Fn)},onClick:cr,onContextMenu:Oi,onMouseDown:qn,onMouseUp:lr,onDblClick:dr,get videoContainer(){return ct()},set videoContainer(bt){ct(bt)}});var mi=M(_i,2);qs(mi,()=>"slot",!1,(bt,Kt)=>{Ie(bt,null,{name:fa})});var ke=M(mi,2);zs(ke,le,bt=>{var Kt=tx(),Si=pe(Kt);let si=v(()=>a()!=="thumb"||l()||Ci&&e.autoplay);ca(Si,{get hidden(){return r(si)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ur=M(Si,2);xm(Ur,{});var Fi=M(Ur,2);{var Qn=Fe=>{let ai=v(()=>{var qo;return(qo=e.live)==null?void 0:qo.startTime});yd(Fe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ai)}})};R(Fi,Fe=>{a()==="LiveWaitingStart"&&Fe(Qn)})}var Cs=M(Fi,2);{var Gn=Fe=>{ua(Fe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Cs,Fe=>{a()==="LiveWaitingRecover"&&Fe(Gn)})}var va=M(Cs,2);{var sl=Fe=>{ua(Fe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(va,Fe=>{a()==="LiveWaitingRecord"&&Fe(sl)})}var ga=M(va,2);{var ha=Fe=>{var ai=Z3();let qo;var Es=h(ai);Ol(Es,{get adsSlotId(){return rt()},get adsParams(){return Ct()},get adsPreviewParam(){return _t()},get adsAutoplayParam(){return Gt()},get duration(){return ni()}}),g(ai),E(fo=>qo=J(ai,1,"ads-container svelte-jtgjmv",null,qo,fo),[()=>({hidden:a()!=="ads"})]),$(Fe,ai)};R(ga,Fe=>{e.showAds&&Ye()&&Fe(ha)})}var _a=M(ga,2);{var al=Fe=>{let ai=v(()=>!qe()&&e.showAutoplayNext&&C());Op(Fe,{get title(){return re()},get thumb(){return Ne()},get isHide(){return r(ai)},clickCloseIcon:()=>D(Uo,!0)})};R(_a,Fe=>{r(Cr)&&re()&&Ne()&&Fe(al)})}var Ts=M(_a,2);{var ba=Fe=>{let ai=v(()=>!u());Zf(Fe,{get title(){return e.title},get isHidden(){return r(ai)}})};R(Ts,Fe=>{r(Sr)&&Fe(ba)})}var lt=M(Ts,2);{var $t=Fe=>{let ai=v(()=>a()==="video"&&u());_d(Fe,{get isShifted(){return r(ai)}})};R(lt,Fe=>{H()&&Fe($t)})}var Xi=M(lt,2);{var zo=Fe=>{var ai=X3(),qo=h(ai);Bl(qo,{"aria-label":Pr}),g(ai),$(Fe,ai)};R(Xi,Fe=>{We()&&Fe(zo)})}var Ji=M(Xi,2);{var ci=Fe=>{bd(Fe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ee()}})};R(Ji,Fe=>{Le()&&Fe(ci)})}var Li=M(Ji,2);{var Is=Fe=>{da(Fe,{get shifted(){return u()},get captions(){return j()},get position(){return te()},get playerSize(){return Q()}})};R(Li,Fe=>{me().value!=="off"&&Fe(Is)})}var $a=M(Li,2);{var mu=Fe=>{var ai=J3();ai.__contextmenu=Oi,ai.__click=[Y3,Y,$o,m,Rt,fi];var qo=h(ai);$d(qo,{}),g(ai),$(Fe,ai)};R($a,Fe=>{l()&&Fe(mu)})}var Nd=M($a,2);{var vu=Fe=>{let ai=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),qo=v(()=>a()==="ads"),Es=v(()=>e.canRewindLive&&Oe()!==0);hd(Fe,{get bottomHidden(){return r(ai)},get bottomNoSmooth(){return V()},get showControls(){return u()},get isAds(){return r(qo)},get canRewindLive(){return r(Es)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return It()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Vt()},get nextButtonActive(){return O()},get prevButtonActive(){return _e()},get isOneVideoPlaylist(){return ze()},customFullscreenSupported:Hn,toggleFullscreen:Nt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Mo)},set playerControlsWrapperRef(fo){D(Mo,fe(fo))},get playerControlsRef(){return r($n)},set playerControlsRef(fo){D($n,fe(fo))}})};R(Nd,Fe=>{Ye()&&Fe(vu)})}var Bd=M(Nd,2);{var gu=Fe=>{var ai=ex(),qo=h(ai);let Es=v(()=>{var fo;return(fo=r($n))==null?void 0:fo.clientHeight});Sd(qo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Es)},returnFocus:()=>{var fo;return(fo=gt())==null?void 0:fo.focus()},get ref(){return r(it)},set ref(fo){D(it,fe(fo))}}),g(ai),$(Fe,ai)};R(Bd,Fe=>{!Le()&&a()!=="ads"&&Fe(gu)})}var Dd=M(Bd,2);let hu=v(()=>!r(dn));Ul(Dd,{get isLive(){return Ge()},get isHidden(){return r(hu)},get isPlaying(){return $e()},get position(){return te()},get duration(){return Oe()}});var ks=M(Dd,2);Qf(ks,{data:ln});var Od=M(ks,2);Dp(Od,{get supportLink(){return e.supportLink},returnFocus:()=>{var Fe;return(Fe=gt())==null?void 0:Fe.focus()},get visible(){return Y()},get playerContainerRef(){return r(to)},get controlsContainerRef(){return r(Mo)},get position(){return we()},get menuElementRef(){return r(No)},set menuElementRef(Fe){D(No,fe(Fe))}});var ll=M(Od,2);{var Hd=Fe=>{Cd(Fe,{onClose:sn,onSelectAutoQuality:()=>{Ao("auto"),sn()}})};R(ll,Fe=>{r(rn)&&Fe(Hd)})}var Fd=M(ll,2);{var Ud=Fe=>{ta(Fe,{})};R(Fd,Fe=>{r(Yi)&&Fe(Ud)})}var ya=M(Fd,2);{var zd=Fe=>{Wp(Fe,{})};R(ya,Fe=>{Ve()&&Fe(zd)})}var _u=M(ya,2);{var qd=Fe=>{Kl(Fe,{})};R(_u,Fe=>{je()&&Fe(qd)})}$(bt,Kt)}),$(Se,gi)},$$slots:{default:!0}}),Se=>gt(Se),()=>gt());var Ut=M(Sn,2);pt(Ut,Se=>D(Wi,Se),()=>r(Wi)),g(Zi),pt(Zi,Se=>D(to,Se),()=>r(to));var Mi=M(Zi,2);{var To=Se=>{var Pt=ox();$(Se,Pt)};R(Mi,Se=>{dt()&&Se(To)})}St("mouseenter",Zi,po),St("mouseleave",Zi,Ai),St("click",Zi,Kn,!0),St("focusin",Zi,wi,!0),$(t,Ar),z(),o()}st(["mousemove","contextmenu","click"]);import{clientChecker as Td,PlaybackState as vx}from"@vkontakte/videoplayer-core/es2018";import{noop as gx}from"@vkontakte/videoplayer-shared/es2018";var sx=L('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),ax=L("<div><!></div>"),lx={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
|
|
345
345
|
animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
|
|
346
346
|
.triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
|
|
347
347
|
.triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
|
|
@@ -357,8 +357,8 @@ Try switching the\xA0quality to\xA0Auto.`},rh=X0;var es=new Map;es.set(ah.EN,rh)
|
|
|
357
357
|
100% {
|
|
358
358
|
opacity: 0;
|
|
359
359
|
}
|
|
360
|
-
}.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function
|
|
361
|
-
.ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function xm(t,e){var Mi,Io;z(e,!0),W(t,xx);let[i,o]=Be(),n=()=>S(Ue,"$playerPhase",i),a=()=>S(Si,"$isLoaderVisible",i),s=()=>S(Ge,"$adPlaybackState",i),d=()=>S(pi,"$crashed",i),l=()=>S(nt,"$notificationsToShow$",i),p=()=>S(lt,"$playbackState$",i),m=()=>S(Oe,"$graphIsOpened$",i),$=()=>S(We,"$interactiveHideMobileControls",i),u=()=>S(Mt,"$isEnded$",i),_=()=>S(yt,"$isInteractiveExpectation$",i),w=()=>S(zt,"$controlsVisible",i),y=()=>S(Ci,"$touched",i),C=()=>S(Zi,"$autoplayNextEnabled$",i),T=()=>S(yo,"$postrollPassed",i),E=()=>S(Tn,"$bottomNoSmooth",i),P=()=>S(lo,"$videoSize",i),A=()=>S(co,"$playerSize",i),I=()=>S(ut,"$isFullscreen",i),V=()=>S(et,"$position$",i),F=()=>S(Xe,"$duration$",i),j=()=>S(qi,"$loadedMetadata",i),H=()=>S(Jt,"$settingsMenuVisible",i),X=()=>S(Ze,"$scrubbingInProgress",i),oe=()=>S(Gt,"$volumeChangingInProgress",i),Z=()=>S($t,"$chromecastConnected$",i),fe=()=>S(li,"$isInteractiveTime$",i),ae=()=>S(zi,"$isActiveLive",i),Me=()=>S(Ui,"$settingsMenuOpenedByKeyboard",i),Pe=()=>S(Ye,"$language$",i),he=()=>S(Ai,"$disabledControls$",i),se=()=>S(yn,"$is3DVideo",i),Ae=()=>S(Gi,"$icon3DVideoVisible",i),ne=()=>S(Vt,"$chromecastDeviceName$",i),B=()=>S(Ct,"$currentSubtitle$",i),ue=()=>S(qt,"$currentSubtitleCaptions$",i),ge=()=>S(ii,"$realDuration$",i),Ke=()=>S(jt,"$isLive$",i),te=()=>S(ui,"$isPlaying$",i),G=()=>S(wi,"$debugPanelVisible",i),K=f(e,"videoContainer",15),Le=f(e,"adsSlotId",3,void 0),Ne=f(e,"adsParams",3,void 0),tt=f(e,"adsPreviewParam",3,void 0),we=f(e,"adsAutoplayParam",3,void 0),be=f(e,"duration",3,void 0),Ve=f(e,"logoTargetUrl",3,""),je=f(e,"showNextPrevButtons",3,!1),it=f(e,"nextButtonActive",3,!1),vt=f(e,"prevButtonActive",3,!1),Je=f(e,"endScreenVideoTitle",3,void 0),wt=f(e,"endScreenVideoThumb",3,void 0),_t=f(e,"isOneVideoPlaylist",3,!1),Kt=f(e,"shadowRootContainer",3,void 0),Qt=f(e,"outerContainerRef",3,void 0),At=f(e,"showMiniTimer",3,!1),It=f(e,"fullScreenTarget",3,void 0),O=f(e,"playerStarted",3,!1),_e=f(e,"showEndScreen",3,!0),{notifications$:re,graphIsOpened$:Oe}=ao(),He=e.store.getLogger().createComponentLog("Root component"),Ye=e.store.interfaceLanguage$,lt=e.store.state.playbackState$,Ge=e.store.ads.playbackState,et=e.store.state.positionWithScrubbing$,Xe=e.store.state.duration$,Ue=e.store.playerPhase,ut=e.store.ui.isFullscreen,zt=e.store.ui.controlsVisible,We=e.store.ui.interactiveHideMobileControls,Jt=e.store.ui.settingsMenu.visible$,Ui=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ze=e.store.ui.scrubbingInProgress,Gt=e.store.ui.volumeChangingInProgress,wi=e.store.ui.debugPanelVisible,Si=e.store.state.isLoaderVisible,Mt=e.store.state.isEnded$,$t=e.store.state.chromecastConnected$,Vt=e.store.state.chromecastDeviceName$,yo=e.store.ads.postrollPassed,nn=e.store.ui.mobileUnmuteButtonExpanded,Y=e.store.ui.mobileUnmuteButtonVisible,jt=e.store.state.isLive$,ui=e.store.state.isPlaying$,zi=e.store.state.isActiveLive$,ni=e.store.state.isRewindableLive$,pi=e.store.state.crashed$,ri=e.store.webApi.annotationsApi,dt=e.store.webApi.pictureInPictureApi,lo=e.store.state.videoSize$,Ct=e.store.state.currentSubtitle$,qt=e.store.state.currentSubtitleCaptions$,ii=e.store.state.duration$,co=e.store.ui.playerSize,yn=e.store.ui.is3DVideo,Gi=e.store.ui.icon3DVideoVisible,xo=e.store.state.isInteractive,li=e.store.state.isInteractiveTime$,yt=e.store.state.isInteractiveExpectation$,wo=e.store.state.hasInteractiveBranches,Ai=e.store.ui.controls.disabledControls$,Ci=e.store.ui.touched,Ho=e.store.ui.overlayContainer$,Zi=e.store.ui.autoplayNextEnabled$,qi=e.store.state.loadedMetadata$,xn=e.store.actions.internal.closeSettingsMenu,wn=(Mi=e.store.callbacks)==null?void 0:Mi.onDisabledPlayPrevChapterClick,Bi=(Io=e.store.callbacks)==null?void 0:Io.onDisabledSeekToInteractiveClick,rn=e.store.actions.internal.setQuality,So=J(void 0),Co=J(void 0),wr=J(void 0),rr=J(void 0),Sn,zn,qn,uo=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),Fo=J(void 0),{closeNotification:Cn,notificationsToShow$:nt}=re,Uo=v(()=>!!l().slow_video),sn=()=>Cn("slow_video"),Tn=de(!1),sr,zo=J(!1),Wn=v(()=>p()!==px.PLAYING),an=J(!1),In=v(()=>m()||$()||!r(zo)&&(u()&&!!wo||r(Wn)&&_())),Di=J(!0),ji=v(()=>e.uiConfig.features.thumbTimer&&At()&&n()==="video"&&!w()&&!d()&&!xo&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),kn=J(!1),Mo=v(()=>(_e()||e.showAutoplayNext&&C())&&!!Je()&&!!wt()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(kn)),En=J(!1);dt==null||dt.setContext(Sl());let qo=rt=>{clearTimeout(zn),rt&&(Y.set(!0),nn.set(!0),zn=setTimeout(()=>{nn.set(!1)},e.uiConfig.controls.collapseMobileUnmute),xo||vi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:qo});let Lo=()=>{clearTimeout(Sn),D(zo,!1),$()&&We.set(!1)},vi=rt=>{Lo(),D(zo,!0),Sn=setTimeout(()=>D(zo,!1),rt);let Rt=rt-100;sr=setTimeout(()=>{E()&&Tn.set(!1)},Rt>0?Rt:rt)},Kn=yn.subscribe(rt=>{Gi.set(rt),rt&&(clearTimeout(qn),qn=setTimeout(()=>Gi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),To=async(rt=gs())=>{var Rt,fi,Oi,po,xi,Li;if(rt&&!Td.device.isIOS){let gi=Dl(),fo=Wo(),Xi=Td.browser.isSamsungBrowser&&gi===Kt();rt=gi===fo||Xi}if(rt){vi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(dt==null?void 0:dt.remove())}catch(gi){He({message:String(gi)})}try{let gi=(Rt=P())!=null&&Rt.width&&((fi=P())!=null&&fi.height)?P():A();await ph(gi)}catch(gi){He({message:String(gi)})}}ut.set(rt),e.store.getAdmanWrapper().setFullscreen(rt),I()?(po=(Oi=e.store.callbacks)==null?void 0:Oi.onFullscreenEnter)==null||po.call(Oi):(Li=(xi=e.store.callbacks)==null?void 0:xi.onFullscreenExit)==null||Li.call(xi)},ar=rt=>{let Rt=rt;co.set({width:Rt.target.width,height:Rt.target.height})};Ft(()=>{var rt;return Ec(To),e.uiConfig.features.annotationsInside&&(ri==null||ri.init(r(So))),Ys(dt)&&(dt==null||dt.assignPlayerContainer(r(So)),dt==null||dt.registryExternalEventHandlers({resize:ar})),D(Di,!Td.device.isIphoneOrOldIpad),e.interactiveContainer&&((rt=K().parentElement)==null||rt.insertBefore(e.interactiveContainer,K().nextSibling)),()=>{clearTimeout(Sn),clearTimeout(sr),clearTimeout(zn),clearTimeout(qn),Kn(),dt==null||dt.dispose().catch(Rt=>{He({message:String(Rt)})}),Pc(To)}});let ln=J(!0),dn=J(!0),lr=rt=>{let Rt=V()+(rt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Rt<0?(D(ln,!1),Rt=0):Rt>=F()&&(D(dn,!1),Rt=F()),D(an,!0),e.seekTime(Rt)},Wo=()=>{let rt=Td.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Qt()?r(So):Qt(),Rt=rt.getRootNode(),fi=Rt instanceof ShadowRoot?Rt.host:Rt,Oi=It()instanceof HTMLElement&&It().contains(fi);return e.uiConfig.allowChangingFullscreenTarget&&It()&&Oi?It():rt},Sr=async()=>{try{if(gs())await kc(document),He({message:"exit fullscreen"});else{if(He({message:"request fullscreen"}),Td.device.isIOS&&!j())return;await Ic(Wo())}}catch(rt){He({message:String(rt)})}},Pn=()=>{xn()},Qn=rt=>{if(rt.preventDefault(),H()){Pn();return}if(!O()){e.firstStart(),vi(e.uiConfig.controls.hideTimeoutCursor);return}D(an,!1),w()?Lo():vi(e.uiConfig.controls.hideTimeoutMobile)},dr=()=>{Ci.set(!0)},Cr=()=>{xo||(Tn.set(!0),vi(e.uiConfig.controls.hideTimeoutCursor))},Gn=rt=>{wn&&(wn(rt),vi(e.uiConfig.controls.hideTimeoutMobile))},cn=rt=>{Bi&&(Bi(rt),vi(e.uiConfig.controls.hideTimeoutMobile))};ze(()=>{Ho.set(r(Fo))}),ze(()=>{zt.set((r(Wn)||H()||X()||oe()||Z()||!r(Mo)&&(u()||r(zo)&&!r(an)))&&!r(In)&&n()==="video"&&!d())}),ze(()=>{!X()&&r(En)&&!fe()&&vi(e.uiConfig.controls.hideTimeoutMobile),D(En,pe(X()))}),ze(()=>{D(ln,V()>0),D(dn,pe(!ae()&&V()<F()))}),ze(()=>{Wa(r(rr),H(),Me())});let jn=U("aria_label_video_player"),di=U("video360");g1({fullScreenChangeHandler:To,getFullscreenTarget:Wo}),h1({store:e.store,getFullscreenTarget:Wo});var Vo=yx();xt("blur",Ds,Pn),De(Vo,"aria-label",jn);var Ti=h(Vo);ma(Ti,{onClick:Qn,get videoContainer(){return K()},set videoContainer(rt){K(rt)}});var Yn=M(Ti,2);qs(Yn,()=>"slot",!1,(rt,Rt)=>{Te(rt,null,{name:fa})});var pt=M(Yn,2);zs(pt,Pe,rt=>{var Rt=$x(),fi=ce(Rt);let Oi=v(()=>n()!=="thumb"||d()||xo&&e.autoplay);ca(fi,{get hidden(){return r(Oi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var po=M(fi,2);{var xi=Ie=>{var Tt=vx(),ei=ce(Tt);{var Ii=fn=>{let Ar=v(()=>e.uiConfig.controls.seekStepMobile/1e3);ou(fn,{side:"left",get seekStep(){return r(Ar)},handleSingleFirstClick:Qn,handleSecondClick:()=>lr("backward")})};R(ei,fn=>{r(ln)&&fn(Ii)})}var oi=M(ei,2);{var Ko=fn=>{let Ar=v(()=>e.uiConfig.controls.seekStepMobile/1e3);ou(fn,{side:"right",get seekStep(){return r(Ar)},handleSingleFirstClick:Qn,handleSecondClick:()=>lr("forward")})};R(oi,fn=>{r(dn)&&fn(Ko)})}b(Ie,Tt)};R(po,Ie=>{e.canRewindLive&&ni&&!he().has("TIMELINE")&&Ie(xi)})}var Li=M(po,2);{var gi=Ie=>{let Tt=v(()=>{var ei;return(ei=e.live)==null?void 0:ei.startTime});yd(Ie,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Tt)}})};R(Li,Ie=>{n()==="LiveWaitingStart"&&Ie(gi)})}var fo=M(Li,2);{var Xi=Ie=>{ua(Ie,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(fo,Ie=>{n()==="LiveWaitingRecover"&&Ie(Xi)})}var Ji=M(fo,2);{var un=Ie=>{ua(Ie,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ji,Ie=>{n()==="LiveWaitingRecord"&&Ie(un)})}var Zn=M(Ji,2);{var Xn=Ie=>{var Tt=gx();let ei;var Ii=h(Tt);Ol(Ii,{get adsSlotId(){return Le()},get adsParams(){return Ne()},get adsPreviewParam(){return tt()},get adsAutoplayParam(){return we()},get duration(){return be()}}),g(Tt),k(oi=>ei=ee(Tt,1,"ads-container svelte-dtyj47",null,ei,oi),[()=>({hidden:n()!=="ads"})]),b(Ie,Tt)};R(Zn,Ie=>{e.showAds&&O()&&Ie(Xn)})}var Tr=M(Zn,2);{var Ir=Ie=>{let Tt=v(()=>!_e()&&e.showAutoplayNext&&C());ym(Ie,{get title(){return Je()},get thumb(){return wt()},get isHide(){return r(Tt)},clickCloseIcon:()=>D(kn,!0)})};R(Tr,Ie=>{r(Mo)&&Je()&&wt()&&Ie(Ir)})}var An=M(Tr,2);{var Mn=Ie=>{_d(Ie,{})};R(An,Ie=>{se()&&Ie(Mn)})}var ko=M(An,2);{var kr=Ie=>{var Tt=hx(),ei=h(Tt);Bl(ei,{"aria-label":di}),g(Tt),b(Ie,Tt)};R(ko,Ie=>{Ae()&&Ie(kr)})}var Ro=M(ko,2);{var cr=Ie=>{bd(Ie,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()}})};R(Ro,Ie=>{Z()&&Ie(cr)})}var Er=M(Ro,2);{var Pr=Ie=>{da(Ie,{get shifted(){return w()},get captions(){return ue()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};R(Er,Ie=>{B().value!=="off"&&Ie(Pr)})}var ur=M(Er,2);{var Yi=Ie=>{var Tt=_x();Tt.__click=[mx,H,Jt,Pn];var ei=h(Tt);$d(ei,{}),g(Tt),b(Ie,Tt)};R(ur,Ie=>{d()&&Ie(Yi)})}var pn=M(ur,2);{var Fr=Ie=>{let Tt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),ei=v(()=>n()==="ads"),Ii=v(()=>e.canRewindLive&&ge()!==0);hd(Ie,{get bottomHidden(){return r(Tt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(ei)},get canRewindLive(){return r(Ii)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ve()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return je()},get nextButtonActive(){return it()},get prevButtonActive(){return vt()},get isOneVideoPlaylist(){return _t()},get customFullscreenSupported(){return r(Di)},get endScreenShown(){return r(Mo)},toggleFullscreen:Sr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Gn,onDisabledSeekToInteractiveClick:cn,get playerControlsWrapperRef(){return r(Co)},set playerControlsWrapperRef(oi){D(Co,pe(oi))},get playerControlsRef(){return r(wr)},set playerControlsRef(oi){D(wr,pe(oi))}})};R(pn,Ie=>{O()&&Ie(Fr)})}var pr=M(pn,2);{var st=Ie=>{var Tt=bx(),ei=h(Tt);Sd(ei,{get supportLink(){return e.supportLink},returnFocus:fx,get ref(){return r(rr)},set ref(Ii){D(rr,pe(Ii))}}),g(Tt),b(Ie,Tt)};R(pr,Ie=>{H()&&Ie(st)})}var Ht=M(pr,2);let Vi=v(()=>!r(ji));Ul(Ht,{get isLive(){return Ke()},get isHidden(){return r(Vi)},get isPlaying(){return te()},get position(){return V()},get duration(){return F()}});var xe=M(Ht,2);{var kt=Ie=>{ta(Ie,{})};R(xe,Ie=>{r(uo)&&Ie(kt)})}var mi=M(xe,2);{var hi=Ie=>{Kl(Ie,{})};R(mi,Ie=>{G()&&Ie(hi)})}var Eo=M(mi,2);{var ci=Ie=>{Cd(Ie,{onClose:sn,onSelectAutoQuality:()=>{rn("auto"),sn()}})};R(Eo,Ie=>{r(Uo)&&Ie(ci)})}b(rt,Rt)});var Ot=M(pt,2);ct(Ot,rt=>D(Fo,rt),()=>r(Fo)),g(Vo),ct(Vo,rt=>D(So,rt),()=>r(So)),xt("click",Vo,dr,!0),xt("focusin",Vo,Cr,!0),b(t,Vo),q(),o()}at(["click"]);function ru(t){let e="";return Un(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Un(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Un(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Un(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Un(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Un(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Un(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Un(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Un(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Un(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Un(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Un(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Un(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Un(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as wx}from"@vkontakte/videoplayer-shared/es2018";var Sx=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Cx={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 wm(t,e){z(e,!0),W(t,Cx);let[i,o]=Be(),n=()=>S(oe,"$playerSize",i),a=()=>S(I,"$isPlaying$",i),s=()=>S(P,"$duration$",i),d=()=>S(j,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),p=()=>S(E,"$crashed$",i),m=()=>S(V,"$currentSubtitle$",i),$=()=>S(F,"$currentSubtitleCaptions$",i),u=()=>S(A,"$positionExact$",i),_=()=>S(H,"$isLive$",i),w=()=>S(X,"$isRewindableLive$",i),y=f(e,"outsideDuration",3,0),C=f(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:P,positionExact$:A,isPlaying$:I,currentSubtitle$:V,currentSubtitleCaptions$:F,positionWithScrubbing$:j,isLive$:H,isRewindableLive$:X},ui:{playerSize:oe,controls:Z},actions:{internal:{getVideoElement:fe}}}=Ce(),ae=8,Me=J(!1),Pe=pe({}),he=()=>{D(Me,!0)},se=()=>{D(Me,!1)},Ae=wx(Xa,260);ze(()=>{n(),Ae(fe(),Z,Pe,r(Me))});let ne=v(()=>a()?on(s()-d()):on(isFinite(s())?s():y()));var B=Sx(),ue=h(B);ma(ue,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ve){C(Ve)}});var ge=M(ue,2);qs(ge,()=>"slot",!1,(Ve,je)=>{Te(Ve,null,{name:fa})});var Ke=M(ge,2);let te=v(()=>l()!=="thumb"||p());ca(Ke,{get hidden(){return r(te)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var G=M(Ke,2);{var K=Ve=>{da(Ve,{shifted:!1,get captions(){return $()},get position(){return u()},get playerSize(){return n()}})};R(G,Ve=>{m().value!=="off"&&Ve(K)})}var Le=M(G,2),Ne=h(Le);Fl(Ne,{get isLive(){return _()},get isPlaying(){return a()},get time(){return r(ne)}}),g(Le);var tt=M(Le,2);let we;var be=h(tt);na(be,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ae,tooltipRightOffset:ae,get ref(){return Pe.timeline},set ref(Ve){Pe.timeline=Ve}}),g(tt),g(B),k(Ve=>we=ee(tt,1,"timeline svelte-1qfjf44",null,we,Ve),[()=>({visible:r(Me)})]),xt("mouseenter",B,he),xt("mouseleave",B,se),b(t,B),q(),o()}var Ex=L("<div><!></div>"),Px={hash:"svelte-7ed4yj",code:`.root.svelte-7ed4yj {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
|
|
360
|
+
}.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function nu(t,e){U(e,!0),W(t,lx);let i=f(e,"seekStep",3,0),o=X(!1),n=0,a=0,s=X(fe(i())),d=b=>{b.stopPropagation(),a+=1,D(s,i()*(a-1)),a===1?e.handleSingleFirstClick(b):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};mn(()=>{window.clearTimeout(n)});var l=ax();l.__click=d;var p=h(l);{var m=b=>{var u=sx(),_=pe(u),w=M(_,2),y=h(w),C=h(y),T=M(C,2),k=M(T,2);g(y);var P=M(y,2),A=h(P,!0);g(P),g(w),E(I=>{var V,q,Q,H;J(_,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),J(C,1,`triangle ${(q=e.side)!=null?q:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(Q=e.side)!=null?Q:""}`,"svelte-nhq2ld"),J(k,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ve(A,I)},[()=>F("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),$(b,u)};R(p,b=>{r(o)&&b(m)})}g(l),E(()=>{var b;return J(l,1,`double-click-area ${(b=e.side)!=null?b:""}`,"svelte-nhq2ld")}),$(t,l),z()}st(["click"]);var dx=(t,e,i)=>{e(!1),i()},cx=L('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),ux={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Sm(t,e){U(e,!0),W(t,ux);let[i,o]=Re(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,m=s.actions.internal.nextVideoAnnouncementShow,b=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),_()};zt(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=De(),T=pe(C);{var k=P=>{var A=cx(),I=M(pe(A),2),V=h(I),q=h(V),Q=h(q,!0);g(q);var H=M(q,2);Js(H,{onClick:y}),g(V);var Y=M(V,2);Y.__click=[dx,p,b];var ne=h(Y),Z=h(ne),de=h(Z);let ce;var Le=M(de,2);{var Ae=oe=>{Ql(oe,{get isRunning(){return a()},onTimerEnded:w})};R(Le,oe=>{n()&&oe(Ae)})}g(Z),g(ne);var he=M(ne,2),se=h(he),Me=h(se,!0);g(se),g(he),g(Y),g(I),E((oe,B)=>{ve(Q,oe),nt(Z,`background-image: url('${e.thumb}')`),ce=J(de,1,"thumb-overlay svelte-1qdxi6t",null,ce,B),ve(Me,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(P,A)};R(T,P=>{e.isHide||P(k)})}$(t,C),z(),o()}st(["click"]);import{clientChecker as px}from"@vkontakte/videoplayer-core/es2018";var b1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;zt(()=>{px.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let s=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",s),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",s),a.removeEventListener("webkitendfullscreen",d)}},0))}),mn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as fx}from"@vkontakte/videoplayer-core/es2018";var ru=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as mx}from"@vkontakte/videoplayer-core/es2018";var $1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:s,availableTextTracks$:d}=t.state,l=null,p=()=>e().querySelector("video"),m=()=>mx.device.isIOS&&Ce(s)===fx.DASH_LIVE_CMAF,b=()=>{l==null||l(),l=null},u=_=>{if(b(),!m()||!_)return;let w=p();if(!w)return;let y=new ru(w),C=Ce(d),T=Ce(a),k=Ce(n);for(let I of C)T.some(q=>q.value===I.id)&&y.attach(I,k.value===I.id);let P=d.subscribe(I=>{for(let V of I)y.updateSrc(V)}),A=()=>{let I=y.getCurrentShowingId();o(Ce(a).find(V=>V.value===I))};w.textTracks.addEventListener("change",A),l=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",A)}};zt(()=>i.subscribe(u)),mn(b)};var hx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},_x=L("<!> <!>",1),bx=L("<div><!></div>"),$x=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),yx=L("<div><!></div>"),xx=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),wx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Sx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Cx={hash:"svelte-dtyj47",code:`.player-wrapper.svelte-dtyj47 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-dtyj47 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-dtyj47 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}
|
|
361
|
+
.ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function Cm(t,e){var Pi,Co;U(e,!0),W(t,Cx);let[i,o]=Re(),n=()=>S(gt,"$playerPhase",i),a=()=>S(ht,"$isLoaderVisible",i),s=()=>S(et,"$adPlaybackState",i),d=()=>S(ft,"$crashed",i),l=()=>S(it,"$notificationsToShow$",i),p=()=>S(Ye,"$playbackState$",i),m=()=>S(ze,"$graphIsOpened$",i),b=()=>S(ti,"$interactiveHideMobileControls",i),u=()=>S(Rt,"$isEnded$",i),_=()=>S(Eo,"$isInteractiveExpectation$",i),w=()=>S(Xe,"$controlsVisible",i),y=()=>S(qi,"$touched",i),C=()=>S(wo,"$autoplayNextEnabled$",i),T=()=>S(hn,"$postrollPassed",i),k=()=>S(on,"$bottomNoSmooth",i),P=()=>S(Mt,"$videoSize",i),A=()=>S(yo,"$playerSize",i),I=()=>S(Ht,"$isFullscreen",i),V=()=>S(tt,"$position$",i),q=()=>S(qe,"$duration$",i),Q=()=>S(Vn,"$loadedMetadata",i),H=()=>S(Je,"$settingsMenuVisible",i),Y=()=>S(Ni,"$scrubbingInProgress",i),ne=()=>S(zi,"$volumeChangingInProgress",i),Z=()=>S(co,"$chromecastConnected$",i),de=()=>S(Qt,"$isControlsAvailable",i),ce=()=>S(Ci,"$isInteractiveTime$",i),Le=()=>S(Bi,"$isActiveLive",i),Ae=()=>S(Zt,"$settingsMenuOpenedByKeyboard",i),he=()=>S(ut,"$language$",i),se=()=>S(Po,"$disabledControls$",i),Me=()=>S(Ho,"$is3DVideo",i),oe=()=>S(di,"$icon3DVideoVisible",i),B=()=>S(en,"$chromecastDeviceName$",i),be=()=>S(eo,"$currentSubtitle$",i),le=()=>S(ii,"$currentSubtitleCaptions$",i),We=()=>S(er,"$realDuration$",i),ee=()=>S(Xt,"$isLive$",i),me=()=>S(ri,"$isPlaying$",i),j=()=>S(At,"$debugPanelVisible",i),te=f(e,"videoContainer",15),Oe=f(e,"adsSlotId",3,void 0),Ge=f(e,"adsParams",3,void 0),$e=f(e,"adsPreviewParam",3,void 0),we=f(e,"adsAutoplayParam",3,void 0),Ve=f(e,"duration",3,void 0),je=f(e,"logoTargetUrl",3,""),dt=f(e,"showNextPrevButtons",3,!1),ct=f(e,"nextButtonActive",3,!1),rt=f(e,"prevButtonActive",3,!1),Ct=f(e,"endScreenVideoTitle",3,void 0),_t=f(e,"endScreenVideoThumb",3,void 0),Gt=f(e,"isOneVideoPlaylist",3,!1),ni=f(e,"shadowRootContainer",3,void 0),It=f(e,"outerContainerRef",3,void 0),Vt=f(e,"showMiniTimer",3,!1),O=f(e,"fullScreenTarget",3,void 0),_e=f(e,"playerStarted",3,!1),re=f(e,"showEndScreen",3,!0),{notifications$:Ne,graphIsOpened$:ze}=lo(),Qe=e.store.getLogger().createComponentLog("Root component"),ut=e.store.interfaceLanguage$,Ye=e.store.state.playbackState$,et=e.store.ads.playbackState,tt=e.store.state.positionWithScrubbing$,qe=e.store.state.duration$,gt=e.store.playerPhase,Ht=e.store.ui.isFullscreen,Xe=e.store.ui.controlsVisible,Qt=e.store.ui.isControlsAvailable,ti=e.store.ui.interactiveHideMobileControls,Je=e.store.ui.settingsMenu.visible$,Zt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ni=e.store.ui.scrubbingInProgress,zi=e.store.ui.volumeChangingInProgress,At=e.store.ui.debugPanelVisible,ht=e.store.state.isLoaderVisible,Rt=e.store.state.isEnded$,co=e.store.state.chromecastConnected$,en=e.store.state.chromecastDeviceName$,hn=e.store.ads.postrollPassed,$o=e.store.ui.mobileUnmuteButtonExpanded,G=e.store.ui.mobileUnmuteButtonVisible,Xt=e.store.state.isLive$,ri=e.store.state.isPlaying$,Bi=e.store.state.isActiveLive$,li=e.store.state.isRewindableLive$,ft=e.store.state.crashed$,ui=e.store.webApi.annotationsApi,Ze=e.store.webApi.pictureInPictureApi,Mt=e.store.state.videoSize$,eo=e.store.state.currentSubtitle$,ii=e.store.state.currentSubtitleCaptions$,er=e.store.state.duration$,yo=e.store.ui.playerSize,Ho=e.store.ui.is3DVideo,di=e.store.ui.icon3DVideoVisible,xt=e.store.state.isInteractive,Ci=e.store.state.isInteractiveTime$,Eo=e.store.state.isInteractiveExpectation$,pi=e.store.state.hasInteractiveBranches,Po=e.store.ui.controls.disabledControls$,qi=e.store.ui.touched,xo=e.store.ui.overlayContainer$,wo=e.store.ui.autoplayNextEnabled$,Vn=e.store.state.loadedMetadata$,So=e.store.actions.internal.closeSettingsMenu,_n=(Pi=e.store.callbacks)==null?void 0:Pi.onDisabledPlayPrevChapterClick,ji=(Co=e.store.callbacks)==null?void 0:Co.onDisabledSeekToInteractiveClick,Ao=e.store.actions.internal.setQuality,tn=X(void 0),wr=X(void 0),tr=X(void 0),Rn=X(void 0),bn,Nn,ir,to=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),Mo=X(void 0),{closeNotification:$n,notificationsToShow$:it}=Ne,yn=v(()=>!!l().slow_video),Bn=()=>$n("slow_video"),on=ae(!1),or,nn=X(!1),rn=v(()=>p()!==vx.PLAYING),sn=X(!1),Yi=v(()=>m()||b()||!r(nn)&&(u()&&!!pi||r(rn)&&_())),Wi=X(!0),an=v(()=>e.uiConfig.features.thumbTimer&&Vt()&&n()==="video"&&!w()&&!d()&&!xt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Dn=X(!1),Fo=v(()=>(re()||e.showAutoplayNext&&C())&&!!Ct()&&!!_t()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(Dn)),ln=X(!1);Ze==null||Ze.setContext(Sl());let Lo=ot=>{clearTimeout(Nn),ot&&(G.set(!0),$o.set(!0),Nn=setTimeout(()=>{$o.set(!1)},e.uiConfig.controls.collapseMobileUnmute),xt||Di(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Lo});let uo=()=>{clearTimeout(bn),D(nn,!1),b()&&ti.set(!1)},Di=ot=>{uo(),D(nn,!0),bn=setTimeout(()=>D(nn,!1),ot);let Nt=ot-100;or=setTimeout(()=>{k()&&on.set(!1)},Nt>0?Nt:ot)},On=Ho.subscribe(ot=>{di.set(ot),ot&&(clearTimeout(ir),ir=setTimeout(()=>di.set(!1),e.uiConfig.controls.hide360IconTimeout))}),io=async(ot=gs())=>{var Nt,fi,Oi,po,wi,Ai;if(ot&&!Td.device.isIOS){let vi=Dl(),hi=Uo(),Hi=Td.browser.isSamsungBrowser&&vi===ni();ot=vi===hi||Hi}if(ot){Di(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ze==null?void 0:Ze.remove())}catch(vi){Qe({message:String(vi)})}try{let vi=(Nt=P())!=null&&Nt.width&&((fi=P())!=null&&fi.height)?P():A();await vh(vi)}catch(vi){Qe({message:String(vi)})}}Ht.set(ot),e.store.getAdmanWrapper().setFullscreen(ot),I()?(po=(Oi=e.store.callbacks)==null?void 0:Oi.onFullscreenEnter)==null||po.call(Oi):(Ai=(wi=e.store.callbacks)==null?void 0:wi.onFullscreenExit)==null||Ai.call(wi)},xn=ot=>{let Nt=ot;yo.set({width:Nt.target.width,height:Nt.target.height})};zt(()=>{var ot;return Pc(io),e.uiConfig.features.annotationsInside&&(ui==null||ui.init(r(tn))),Ys(Ze)&&(Ze==null||Ze.assignPlayerContainer(r(tn)),Ze==null||Ze.registryExternalEventHandlers({resize:xn})),D(Wi,!Td.device.isIphoneOrOldIpad),e.interactiveContainer&&((ot=te().parentElement)==null||ot.insertBefore(e.interactiveContainer,te().nextSibling)),()=>{clearTimeout(bn),clearTimeout(or),clearTimeout(Nn),clearTimeout(ir),On(),Ze==null||Ze.dispose().catch(Nt=>{Qe({message:String(Nt)})}),Ac(io)}});let Hn=X(!0),dn=X(!0),Sr=ot=>{let Nt=V()+(ot==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Nt<0?(D(Hn,!1),Nt=0):Nt>=q()&&(D(dn,!1),Nt=q()),D(sn,!0),e.seekTime(Nt)},Uo=()=>{let ot=Td.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!It()?r(tn):It(),Nt=ot.getRootNode(),fi=Nt instanceof ShadowRoot?Nt.host:Nt,Oi=O()instanceof HTMLElement&&O().contains(fi);return e.uiConfig.allowChangingFullscreenTarget&&O()&&Oi?O():ot},Cr=async()=>{try{if(gs())await Ec(document),Qe({message:"exit fullscreen"});else{if(Qe({message:"request fullscreen"}),Td.device.isIOS&&!Q())return;await kc(Uo())}}catch(ot){Qe({message:String(ot)})}},Fn=()=>{So()},Un=ot=>{if(ot.preventDefault(),H()){Fn();return}if(!_e()){e.firstStart(),Di(e.uiConfig.controls.hideTimeoutCursor);return}D(sn,!1),w()?uo():Di(e.uiConfig.controls.hideTimeoutMobile)},nr=()=>{qi.set(!0)},Tr=()=>{xt||(on.set(!0),Di(e.uiConfig.controls.hideTimeoutCursor))},wn=ot=>{_n&&(_n(ot),Di(e.uiConfig.controls.hideTimeoutMobile))},Jt=ot=>{ji&&(ji(ot),Di(e.uiConfig.controls.hideTimeoutMobile))};He(()=>{xo.set(r(Mo))}),He(()=>{Xe.set((r(rn)||H()||Y()||ne()||Z()||!r(Fo)&&(u()||r(nn)&&!r(sn)))&&!r(Yi)&&n()==="video"&&!d()&&de())}),He(()=>{!Y()&&r(ln)&&!ce()&&Di(e.uiConfig.controls.hideTimeoutMobile),D(ln,fe(Y()))}),He(()=>{D(Hn,V()>0),D(dn,fe(!Le()&&V()<q()))}),He(()=>{Ga(r(Rn),H(),Ae())});let rr=F("aria_label_video_player"),Ir=F("video360");b1({fullScreenChangeHandler:io,getFullscreenTarget:Uo}),$1({store:e.store,getFullscreenTarget:Uo});var Vo=Sx();St("blur",Ds,Fn),Be(Vo,"aria-label",rr);var Ti=h(Vo);ma(Ti,{onClick:Un,get videoContainer(){return te()},set videoContainer(ot){te(ot)}});var sr=M(Ti,2);qs(sr,()=>"slot",!1,(ot,Nt)=>{Ie(ot,null,{name:fa})});var mt=M(sr,2);zs(mt,he,ot=>{var Nt=wx(),fi=pe(Nt);let Oi=v(()=>n()!=="thumb"||d()||xt&&e.autoplay);ca(fi,{get hidden(){return r(Oi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var po=M(fi,2);{var wi=ke=>{var bt=_x(),Kt=pe(bt);{var Si=Fi=>{let Qn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);nu(Fi,{side:"left",get seekStep(){return r(Qn)},handleSingleFirstClick:Un,handleSecondClick:()=>Sr("backward")})};R(Kt,Fi=>{r(Hn)&&Fi(Si)})}var si=M(Kt,2);{var Ur=Fi=>{let Qn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);nu(Fi,{side:"right",get seekStep(){return r(Qn)},handleSingleFirstClick:Un,handleSecondClick:()=>Sr("forward")})};R(si,Fi=>{r(dn)&&Fi(Ur)})}$(ke,bt)};R(po,ke=>{e.canRewindLive&&li&&!se().has("TIMELINE")&&ke(wi)})}var Ai=M(po,2);{var vi=ke=>{let bt=v(()=>{var Kt;return(Kt=e.live)==null?void 0:Kt.startTime});yd(ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(bt)}})};R(Ai,ke=>{n()==="LiveWaitingStart"&&ke(vi)})}var hi=M(Ai,2);{var Hi=ke=>{ua(ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(hi,ke=>{n()==="LiveWaitingRecover"&&ke(Hi)})}var zn=M(hi,2);{var ar=ke=>{ua(ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(zn,ke=>{n()==="LiveWaitingRecord"&&ke(ar)})}var qn=M(zn,2);{var lr=ke=>{var bt=bx();let Kt;var Si=h(bt);Ol(Si,{get adsSlotId(){return Oe()},get adsParams(){return Ge()},get adsPreviewParam(){return $e()},get adsAutoplayParam(){return we()},get duration(){return Ve()}}),g(bt),E(si=>Kt=J(bt,1,"ads-container svelte-dtyj47",null,Kt,si),[()=>({hidden:n()!=="ads"})]),$(ke,bt)};R(qn,ke=>{e.showAds&&_e()&&ke(lr)})}var dr=M(qn,2);{var cr=ke=>{let bt=v(()=>!re()&&e.showAutoplayNext&&C());Sm(ke,{get title(){return Ct()},get thumb(){return _t()},get isHide(){return r(bt)},clickCloseIcon:()=>D(Dn,!0)})};R(dr,ke=>{r(Fo)&&Ct()&&_t()&&ke(cr)})}var ur=M(dr,2);{var Wn=ke=>{_d(ke,{})};R(ur,ke=>{Me()&&ke(Wn)})}var Kn=M(ur,2);{var Ro=ke=>{var bt=$x(),Kt=h(bt);Bl(Kt,{"aria-label":Ir}),g(bt),$(ke,bt)};R(Kn,ke=>{oe()&&ke(Ro)})}var kr=M(Kn,2);{var No=ke=>{bd(ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return B()}})};R(kr,ke=>{Z()&&ke(No)})}var pr=M(kr,2);{var Er=ke=>{da(ke,{get shifted(){return w()},get captions(){return le()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};R(pr,ke=>{be().value!=="off"&&ke(Er)})}var Pr=M(pr,2);{var Ar=ke=>{var bt=yx();bt.__click=[hx,H,Je,Fn];var Kt=h(bt);$d(Kt,{}),g(bt),$(ke,bt)};R(Pr,ke=>{d()&&ke(Ar)})}var Zi=M(Pr,2);{var Sn=ke=>{let bt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Kt=v(()=>n()==="ads"),Si=v(()=>e.canRewindLive&&We()!==0);hd(ke,{get bottomHidden(){return r(bt)},get showControls(){return w()},get bottomNoSmooth(){return k()},get isAds(){return r(Kt)},get canRewindLive(){return r(Si)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return je()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return dt()},get nextButtonActive(){return ct()},get prevButtonActive(){return rt()},get isOneVideoPlaylist(){return Gt()},get customFullscreenSupported(){return r(Wi)},get endScreenShown(){return r(Fo)},toggleFullscreen:Cr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:wn,onDisabledSeekToInteractiveClick:Jt,get playerControlsWrapperRef(){return r(wr)},set playerControlsWrapperRef(si){D(wr,fe(si))},get playerControlsRef(){return r(tr)},set playerControlsRef(si){D(tr,fe(si))}})};R(Zi,ke=>{_e()&&ke(Sn)})}var Mr=M(Zi,2);{var at=ke=>{var bt=xx(),Kt=h(bt);Sd(Kt,{get supportLink(){return e.supportLink},returnFocus:gx,get ref(){return r(Rn)},set ref(Si){D(Rn,fe(Si))}}),g(bt),$(ke,bt)};R(Mr,ke=>{H()&&ke(at)})}var Ut=M(Mr,2);let Mi=v(()=>!r(an));Ul(Ut,{get isLive(){return ee()},get isHidden(){return r(Mi)},get isPlaying(){return me()},get position(){return V()},get duration(){return q()}});var To=M(Ut,2);{var Se=ke=>{ta(ke,{})};R(To,ke=>{r(to)&&ke(Se)})}var Pt=M(To,2);{var gi=ke=>{Kl(ke,{})};R(Pt,ke=>{j()&&ke(gi)})}var _i=M(Pt,2);{var mi=ke=>{Cd(ke,{onClose:Bn,onSelectAutoQuality:()=>{Ao("auto"),Bn()}})};R(_i,ke=>{r(yn)&&ke(mi)})}$(ot,Nt)});var Ft=M(mt,2);pt(Ft,ot=>D(Mo,ot),()=>r(Mo)),g(Vo),pt(Vo,ot=>D(tn,ot),()=>r(tn)),St("click",Vo,nr,!0),St("focusin",Vo,Tr,!0),$(t,Vo),z(),o()}st(["click"]);function su(t){let e="";return Ln(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Ln(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Ln(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Ln(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Ln(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Ln(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Ln(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Ln(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Ln(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Ln(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Ln(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Ln(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Ln(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Ln(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Tx}from"@vkontakte/videoplayer-shared/es2018";var Ix=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),kx={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 Tm(t,e){U(e,!0),W(t,kx);let[i,o]=Re(),n=()=>S(ne,"$playerSize",i),a=()=>S(I,"$isPlaying$",i),s=()=>S(P,"$duration$",i),d=()=>S(Q,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),p=()=>S(k,"$crashed$",i),m=()=>S(V,"$currentSubtitle$",i),b=()=>S(q,"$currentSubtitleCaptions$",i),u=()=>S(A,"$positionExact$",i),_=()=>S(H,"$isLive$",i),w=()=>S(Y,"$isRewindableLive$",i),y=f(e,"outsideDuration",3,0),C=f(e,"videoContainer",15),{playerPhase:T,state:{crashed$:k,duration$:P,positionExact$:A,isPlaying$:I,currentSubtitle$:V,currentSubtitleCaptions$:q,positionWithScrubbing$:Q,isLive$:H,isRewindableLive$:Y},ui:{playerSize:ne,controls:Z},actions:{internal:{getVideoElement:de}}}=Te(),ce=8,Le=X(!1),Ae=fe({}),he=()=>{D(Le,!0)},se=()=>{D(Le,!1)},Me=Tx(el,260);He(()=>{n(),Me(de(),Z,Ae,r(Le))});let oe=v(()=>a()?Jo(s()-d()):Jo(isFinite(s())?s():y()));var B=Ix(),be=h(B);ma(be,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ve){C(Ve)}});var le=M(be,2);qs(le,()=>"slot",!1,(Ve,je)=>{Ie(Ve,null,{name:fa})});var We=M(le,2);let ee=v(()=>l()!=="thumb"||p());ca(We,{get hidden(){return r(ee)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var me=M(We,2);{var j=Ve=>{da(Ve,{shifted:!1,get captions(){return b()},get position(){return u()},get playerSize(){return n()}})};R(me,Ve=>{m().value!=="off"&&Ve(j)})}var te=M(me,2),Oe=h(te);Fl(Oe,{get isLive(){return _()},get isPlaying(){return a()},get time(){return r(oe)}}),g(te);var Ge=M(te,2);let $e;var we=h(Ge);na(we,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ce,tooltipRightOffset:ce,get ref(){return Ae.timeline},set ref(Ve){Ae.timeline=Ve}}),g(Ge),g(B),E(Ve=>$e=J(Ge,1,"timeline svelte-1qfjf44",null,$e,Ve),[()=>({visible:r(Le)})]),St("mouseenter",B,he),St("mouseleave",B,se),$(t,B),z(),o()}var Mx=L("<div><!></div>"),Lx={hash:"svelte-7ed4yj",code:`.root.svelte-7ed4yj {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
|
|
362
362
|
|
|
363
363
|
/* USER DEFINED COLORS */
|
|
364
364
|
|
|
@@ -392,5 +392,5 @@ Try switching the\xA0quality to\xA0Auto.`},rh=X0;var es=new Map;es.set(ah.EN,rh)
|
|
|
392
392
|
/* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);}
|
|
393
393
|
/* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
|
|
394
394
|
|
|
395
|
-
/* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Cm(t,e){z(e,!0),W(t,Px);let[i,o]=Be(),n=()=>S(Kt,"$isLive$",i),a=f(e,"sources",7),s=f(e,"store",7),d=f(e,"microStoresRoot",7),l=f(e,"videoConfig",7),p=f(e,"uiConfig",7),m=f(e,"title",7),$=f(e,"thumbUrl",7),u=f(e,"interactiveContainer",7),_=f(e,"interactiveController",7),w=f(e,"subtitles",7),y=f(e,"live",7),C=f(e,"preload",7),T=f(e,"autoplay",7),E=f(e,"volume",7,void 0),P=f(e,"muted",7,void 0),A=f(e,"fromTime",7),I=f(e,"canRewindLive",7),V=f(e,"showAds",7),F=f(e,"adsSlotId",7,void 0),j=f(e,"adsParams",7,void 0),H=f(e,"adsPreviewParam",7,void 0),X=f(e,"adsAutoplayParam",7,void 0),oe=f(e,"duration",7,void 0),Z=f(e,"logoClickable",7),fe=f(e,"logoHidden",7),ae=f(e,"isMobile",7),Me=f(e,"showNextPrevButtons",7,!1),Pe=f(e,"nextButtonActive",7,!1),he=f(e,"prevButtonActive",7,!1),se=f(e,"endScreenVideoTitle",7,void 0),Ae=f(e,"endScreenVideoThumb",7,void 0),ne=f(e,"isOneVideoPlaylist",7,!1),B=f(e,"supportLink",7),ue=f(e,"shadowRootContainer",7,void 0),ge=f(e,"outerContainerRef",7,void 0),Ke=f(e,"fullScreenTarget",7,void 0),te=f(e,"failoverHosts",7,void 0),G=f(e,"showMiniTimer",7,!1),K=f(e,"saveRate",7),Le=f(e,"seekToInteractive",7,_1),Ne=f(e,"playPrevChapter",7,_1),tt=f(e,"volumeMultiplier",7),we=f(e,"showAutoplayNext",7),be=f(e,"showEndScreen",7,!0),Ve=f(e,"keyboardControls",15,void 0),{subscribers:je,stores:it}=d();Tg(p());let vt=Ut(),Je=p().logoLink,wt=s().ui.debugPanelVisible,_t=s().ui.playerSize,Kt=s().state.isLive$,At=s().state.isInteractive&&Sm.device.isAndroid,It=J(void 0),O=null,_e=J(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),Ng(s(),it),ze(()=>{var Y,jt;s().ui.isMobile.set(ae()),(jt=(Y=l().callbacks)==null?void 0:Y.onDomReady)==null||jt.call(Y)});let re=(Y=!1)=>{D(_e,!0),Y?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Oe=()=>{if(vt.features.qualityDetailsSubMenuEnabled){let Y=ih(s().videoId);if(Y)switch(Y.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,Y.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,Y.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(Y.quality);break}}else{oh(s().videoId),yp()&&s().actions.internal.setTrafficSavingEnabled(!0);let jt=hp(s().videoId);jt&&s().actions.internal.setQuality(jt)}};function He(Y){var pi,ri,dt;let jt=a()||Y;jt&&s().initVideo({container:r(It),sources:jt,failoverHosts:te(),subtitles:w(),volumeMultiplier:tt()});let ui=Tx.get(Ml)==="true";wt.set(ui),A()>0&&s().actions.external.seekTime(A());let zi=ae()?vt.volumeDefault:(ri=(pi=E())!=null?pi:bc())!=null?ri:vt.volumeDefault,ni=(dt=P())!=null?dt:Yg();if(s().actions.external.setVolume(zi),s().actions.external.setMuted(ni),s().getAdmanWrapper().setInitialVolume(ni?0:zi),Oe(),vt.features.saveRate&&K()){let lo=Jg();lo&&!n()&&s().actions.internal.setPlaybackRate(lo)}if(we()){let lo=th();lo&&s().actions.internal.setAutoplayNextEnabled(lo)}s().ui.isAutoplay.set(T()),T()?re():C()&&vt.features.preload&&s().actions.internal.preload()}let Ye=Y=>{if(window.ResizeObserver){let jt,ui;O=new ResizeObserver(Ix(zi=>{let ni=zi[0];if(ni.contentBoxSize){let pi=Array.isArray(ni.contentBoxSize)?ni.contentBoxSize[0]:ni.contentBoxSize;jt=pi.inlineSize,ui=pi.blockSize}else ni.contentRect&&(jt=ni.contentRect.width,ui=ni.contentRect.height);_t.set({width:jt,height:ui})},300)),O.observe(Y)}_t.set({width:Y.clientWidth,height:Y.clientHeight})},lt=()=>{document.hidden&&s().actions.external.stop()};Ft(()=>{var ui,zi,ni,pi;At&&document.addEventListener("visibilitychange",lt),vt.debugLog&&s().actions.internal.startLogging(),Ye(r(It));let Y=je.map(ri=>ri.init({store:s(),microStores:it,config:l(),interactiveController:_(),uiConfig:p()})),jt=()=>{At&&document.removeEventListener("visibilitychange",lt),O==null||O.disconnect(),Y.forEach(ri=>ri.unsubscribe()),s().destroy()};return((ui=y())==null?void 0:ui.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),jt):((zi=y())==null?void 0:zi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),jt):(((ni=y())==null?void 0:ni.status)==="finished"||((pi=y())==null?void 0:pi.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),jt):(He(),jt)});function Ge(){r(_e)?s().actions.external.play():re(!0)}function et(){s().actions.external.pause()}function Xe(Y){s().actions.external.setMuted(Y)}function Ue(){s().actions.external.toggleSubtitle()}function ut(Y){ae()||Y>=0&&Y<=1&&s().actions.external.setVolume(Y)}function zt(Y){s().actions.internal.seekTime(Y,kx.UNKNOWN)}function We(Y){s().actions.external.seekEpisodeStartTime(Y)}function Jt(){s().actions.external.returnFocusToEpisodes()}function Ui(Y){s().actions.external.setPlaybackRate(Y)}function Ze(Y){s().actions.external.setAutoQualityLimits(Y)}let Gt=ru(vt.view),wi=l().playerView==="preview";var Si=Ex();let Mt;ot(Si,Gt);var $t=h(Si);{var Vt=Y=>{xm(Y,{get store(){return s()},uiConfig:vt,get thumbUrl(){return $()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return F()},get adsParams(){return j()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return X()},get duration(){return oe()},get logoClickable(){return Z()},get logoHidden(){return fe()},logoTargetUrl:Je,get nextButtonActive(){return Pe()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return ne()},get supportLink(){return B()},get shadowRootContainer(){return ue()},get outerContainerRef(){return ge()},get fullScreenTarget(){return Ke()},get showMiniTimer(){return G()},get playerStarted(){return r(_e)},get seekToInteractive(){return Le()},get playPrevChapter(){return Ne()},firstStart:re,seekTime:zt,get showEndScreen(){return be()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Me()},get videoContainer(){return r(It)},set videoContainer(jt){D(It,pe(jt))}})},yo=Y=>{var jt=Fe(),ui=ce(jt);{var zi=pi=>{wm(pi,{get thumbUrl(){return $()},get outsideDuration(){return oe()},get canRewindLive(){return I()},get videoContainer(){return r(It)},set videoContainer(ri){D(It,pe(ri))}})},ni=pi=>{$m(pi,{get store(){return s()},uiConfig:vt,get title(){return m()},get thumbUrl(){return $()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return F()},get adsParams(){return j()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return X()},get duration(){return oe()},get logoClickable(){return Z()},get logoHidden(){return fe()},logoTargetUrl:Je,get nextButtonActive(){return Pe()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return ne()},get supportLink(){return B()},get shadowRootContainer(){return ue()},get outerContainerRef(){return ge()},get fullScreenTarget(){return Ke()},get showMiniTimer(){return G()},get playerStarted(){return r(_e)},get seekToInteractive(){return Le()},get playPrevChapter(){return Ne()},firstStart:re,get showEndScreen(){return be()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Me()},get videoContainer(){return r(It)},set videoContainer(ri){D(It,pe(ri))},get keyboardControls(){return Ve()},set keyboardControls(ri){Ve(ri)}})};R(ui,pi=>{wi?pi(zi):pi(ni,!1)})}b(Y,jt)};R($t,Y=>{ae()?Y(Vt):Y(yo,!1)})}g(Si),k(Y=>Mt=ee(Si,1,"root svelte-7ed4yj",null,Mt,Y),[()=>({"root--miui-browser":Sm.device.isMobile&&Sm.browser.isMiuiBrowser,"visible-outside":wi})]),b(t,Si);var nn=q({initVideo:He,play:Ge,pause:et,setMuted:Xe,toggleSubtitle:Ue,setVolume:ut,seekTime:zt,seekEpisodeStartTime:We,returnFocusToEpisodes:Jt,setPlaybackRate:Ui,setAutoQualityLimits:Ze,get sources(){return a()},set sources(Y){a(Y)},get store(){return s()},set store(Y){s(Y)},get microStoresRoot(){return d()},set microStoresRoot(Y){d(Y)},get videoConfig(){return l()},set videoConfig(Y){l(Y)},get uiConfig(){return p()},set uiConfig(Y){p(Y)},get title(){return m()},set title(Y){m(Y)},get thumbUrl(){return $()},set thumbUrl(Y){$(Y)},get interactiveContainer(){return u()},set interactiveContainer(Y){u(Y)},get interactiveController(){return _()},set interactiveController(Y){_(Y)},get subtitles(){return w()},set subtitles(Y){w(Y)},get live(){return y()},set live(Y){y(Y)},get preload(){return C()},set preload(Y){C(Y)},get autoplay(){return T()},set autoplay(Y){T(Y)},get volume(){return E()},set volume(Y){E(Y)},get muted(){return P()},set muted(Y){P(Y)},get fromTime(){return A()},set fromTime(Y){A(Y)},get canRewindLive(){return I()},set canRewindLive(Y){I(Y)},get showAds(){return V()},set showAds(Y){V(Y)},get adsSlotId(){return F()},set adsSlotId(Y){F(Y)},get adsParams(){return j()},set adsParams(Y){j(Y)},get adsPreviewParam(){return H()},set adsPreviewParam(Y){H(Y)},get adsAutoplayParam(){return X()},set adsAutoplayParam(Y){X(Y)},get duration(){return oe()},set duration(Y){oe(Y)},get logoClickable(){return Z()},set logoClickable(Y){Z(Y)},get logoHidden(){return fe()},set logoHidden(Y){fe(Y)},get isMobile(){return ae()},set isMobile(Y){ae(Y)},get showNextPrevButtons(){return Me()},set showNextPrevButtons(Y){Me(Y)},get nextButtonActive(){return Pe()},set nextButtonActive(Y){Pe(Y)},get prevButtonActive(){return he()},set prevButtonActive(Y){he(Y)},get endScreenVideoTitle(){return se()},set endScreenVideoTitle(Y){se(Y)},get endScreenVideoThumb(){return Ae()},set endScreenVideoThumb(Y){Ae(Y)},get isOneVideoPlaylist(){return ne()},set isOneVideoPlaylist(Y){ne(Y)},get supportLink(){return B()},set supportLink(Y){B(Y)},get shadowRootContainer(){return ue()},set shadowRootContainer(Y){ue(Y)},get outerContainerRef(){return ge()},set outerContainerRef(Y){ge(Y)},get fullScreenTarget(){return Ke()},set fullScreenTarget(Y){Ke(Y)},get failoverHosts(){return te()},set failoverHosts(Y){te(Y)},get showMiniTimer(){return G()},set showMiniTimer(Y){G(Y)},get saveRate(){return K()},set saveRate(Y){K(Y)},get showAutoplayNext(){return we()},set showAutoplayNext(Y){we(Y)},get seekToInteractive(){return Le()},set seekToInteractive(Y){Le(Y)},get playPrevChapter(){return Ne()},set playPrevChapter(Y){Ne(Y)},get volumeMultiplier(){return tt()},set volumeMultiplier(Y){tt(Y)},get showEndScreen(){return be()},set showEndScreen(Y){be(Y)},get keyboardControls(){return Ve()},set keyboardControls(Y){Ve(Y)}});return o(),nn}var Ax=ye('<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 Tm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ax();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),b(t,o)}function Im(t,e){let i=f(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Tm(t,{get style(){return r(o)}})}var Mx=L('<div class="title svelte-1y9fytq"> </div>'),Lx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Vx={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 km(t,e){W(t,Vx);var i=Lx(),o=h(i);{var n=d=>{var l=Mx(),p=h(l,!0);g(l),k(()=>me(p,e.title)),b(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);Im(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),k(()=>ot(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}import{now as s5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as a5,InterfaceLanguage as l5,isNonNullable as Vm,Logger as d5,Observable as c5,Subscription as T1,once as u5,InternalsExposure as p5,skip as f5}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as I1,isMobile as m5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as v5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as Rx,Subscription as Nx}from"@vkontakte/videoplayer-shared/es2018";var su=class{constructor(){this.subscription=new Nx,this.logger=new Rx,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,s;let o=Se(e.state.currentPlaybackRate$),n=Se(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Am,detectEmbed as Ux}from"@vkontakte/videoplayer-shared/es2018";var Bx=ye('<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 Em(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Bx();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),k(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i})),b(t,o)}var Dx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Ox={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function Pm(t,e){z(e,!0),W(t,Ox);let[i,o]=Be(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(m,"$isMobile$",i),s=Ce(),d=Ut(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,m=s.ui.isMobile,$=s.ui.t,u=v(()=>n()&&$("pip_dummy_title")),_=ru(d.view);var w=Dx();ee(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),ot(w,_);var y=h(w);let C;var T=h(y);Em(T,{}),g(y);var E=M(y,2),P=h(E,!0);g(E),g(w),k(A=>{C=ee(y,1,"dummy-image svelte-1pbsod4",null,C,A),me(P,r(u))},[()=>({desktop:!a()})]),b(t,w),q(),o()}var Hx=Object.defineProperty,Fx=(t,e,i)=>e in t?Hx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,il=(t,e,i)=>Fx(t,typeof e!="symbol"?e+"":e,i),zx=460,qx=280,Id=class{constructor({enabled:e=!0}={enabled:!0}){il(this,"playerDomElement"),il(this,"playerParentShadowRoot"),il(this,"playerDummyElement"),il(this,"svelteContext"),il(this,"pipWindow"),il(this,"info",{isActive$:new Am(!1),isEnabled$:new Am(!1),type:1}),this.info.isEnabled$=new Am(e)}isSupported(){let{isEmbed:e}=Ux();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:zx,height:qx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
|
|
396
|
-
`),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Zr(Pm,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Us(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})}async dispose(){await this.remove()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function b1(t){return t instanceof Id}var au=class{static getLatestSupportedVersion(e){let i=new js(e),o=new Id(e);if(o.isSupported())return o;if(i.isSupported())return i}};function lu(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let s of i)o[s]=(a=(n=e[s])!=null?n:t[s])!=null?a:void 0;return o}var $1="Inner error. Unexpectedly root annotation container null reference exception",y1="Annotation with such name already exists",x1="Annotation with such name does not exist";var ol=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Wx,Subscription as Kx,throttleFn as Qx}from"@vkontakte/videoplayer-shared/es2018";var Gx="1",jx=100,du=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Kx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Qx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},jx);this.subscriptions.add(Wx(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new ol($1);if(this.annotations.has(e))throw new ol(y1);i.style.zIndex=(o=i.style.zIndex)!=null?o:Gx,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 ol(x1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as cu,Subscription as Yx}from"@vkontakte/videoplayer-shared/es2018";var Oo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return cu(e),cu(i),cu(n),n.interactiveData&&cu(o),this.subscription=new Yx,this.subscription}};var kd=class extends Oo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...de(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Ed=class extends Oo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...de(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:p,isMobile:m}=a.ui,$=Se(m),u=()=>$&&Se(p);return o.add(p.subscribe(_=>{if(!$)return;let w=Se(s);Se(l)?this.state$.set(_):w!==null&&this.state$.set(!w||_)})),o.add(l.subscribe(_=>{this.state$.set(!_||u())})),o.add(s.subscribe(_=>{if(_===null)return;let w=Se(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!_)})),o}};var Pd=class extends Oo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=de("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as Zx}from"@vkontakte/videoplayer-shared/es2018";var Mm=de(!1),uu=null,Ad=class extends Oo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Mm,set:(i,o=!1)=>{i!==Se(Mm)&&(this.clearTimeout(),Mm.set(i),!i&&uu&&(uu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:s,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(l.subscribe($=>{Se(s)&&$&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(Zx({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:$,isInteractiveTime$:u,interactiveTimeIndicator:_})=>{var w,y;if(!(!$||!(_!=null&&_.isDisplayed))){if(!u)return this.state$.set(!1);m.tooltipHelpHintActive&&uu===null&&(uu=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as Xx,noop as Jx}from"@vkontakte/videoplayer-shared/es2018";var Md=class extends Oo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...de(null),toggle:Jx};this.checkIfShouldHide=i=>xs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,s=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(Se(s)))return;let l=Se(this.state$),{isEnded$:p,playbackState$:m}=n.state,{disabledControls$:$}=n.ui.controls,u=Se(p),_=Se(m);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),$.remove(cp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=_==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),$.add(cp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(Xx({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch($){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as w1}from"@vkontakte/videoplayer-shared/es2018";var Ld=class extends Oo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:de(!1),isEnabled$:de(!1),type$:de(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new w1(!1),isEnabled$:new w1(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};import{filter as i5,filterChanged as o5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Lm}from"@vkontakte/videoplayer-shared/es2018";var S1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?e5({maxCount:t}):void 0,e!==0?t5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},e5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Lm.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},t5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Lm.get(e)||"{}")}catch(a){return{}}},o=a=>Lm.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let s=i()[a];if(s){let d=Date.now()-s.launchTime>t;return d&&n(a),d}else return!0}}};var Vd=class extends Oo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:de({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=S1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(o5(),i5(m=>m)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var C1=()=>[kd,Ed,Pd,Ad,Md,Ld,Vd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as Rd}from"@vkontakte/videoplayer-shared/es2018";var n5=Object.defineProperty,r5=(t,e,i)=>e in t?n5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ti=(t,e,i)=>r5(t,typeof e!="symbol"?e+"":e,i),g5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:l5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:m5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},$n=J(void 0),pu=class extends HTMLElement{constructor(){super(),ti(this,"svelteStubComponent"),ti(this,"svelteRootComponent"),ti(this,"store"),ti(this,"microStoresRoot"),ti(this,"statistics"),ti(this,"sentry"),ti(this,"_shadowRoot"),ti(this,"playerContainer"),ti(this,"rootContainer"),ti(this,"shadowRootContainer"),ti(this,"uiConfig"),ti(this,"coreConfig"),ti(this,"statisticsConfig"),ti(this,"interactiveController"),ti(this,"interactiveContainer"),ti(this,"graphMadePause"),ti(this,"currentPlayingVideoIndex",0),ti(this,"needToRepeatPlaylist",!1),ti(this,"videoConfig"),ti(this,"pictureInPictureApi"),ti(this,"mediaSessionApi"),ti(this,"unsubscribePlayerPhaseSubscription"),ti(this,"logger"),ti(this,"log"),ti(this,"subscription"),ti(this,"interactiveSubscription"),ti(this,"annotationsApi"),ti(this,"slotsApi"),ti(this,"prevIsid"),ti(this,"isInited",!1),ti(this,"internalsExposure",null),ti(this,"shadowDOMCallbacksDisabled",!1),ti(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:m,statVKAppId:$,refreshStatAuthToken:u,autoplay:_,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:E}=lu(this.videoConfig,i),P=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&I)return new v5({movieId:I,albumId:d,place:l,trackCode:m,vkAppId:$,autoplay:(s=_&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:V,refDomain:C,deviceId:T,...P&&(!this.isInited||A)&&{projectId:Number(P)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),Rd.create("ui"),this.logger=new d5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new T1,this.interactiveSubscription=new T1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=pe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=Zr(km,s)}disconnectedCallback(){var e,i,o,n,a;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),Rd.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},o){var n,a,s,d,l,p,m,$;if(!this.videoConfig)return;let{albumId:u,statPlace:_,statAuthToken:w,preload:y,autoplay:C,volume:T,muted:E,fromTime:P,canRewindLive:A,supportLink:I,showAds:V,adsSlotId:F,adsParams:j={},adsPreviewParam:H,adsAutoplayParam:X,interfaceLanguage:oe,isCyrillicRelatedInterface:Z,logoClickable:fe,logoHidden:ae,isMobile:Me,isTouch:Pe,isAudioDisabled:he,isLiveCatchUpMode:se,fullScreenTarget:Ae,failoverHosts:ne,canDownload:B,callbacks:ue,interactiveData:ge,showThumbTimer:Ke,additionalButtons:te=[],additionalSettingsMenuItems:G=[],additionalContextMenuItems:K=[],repeat:Le,saveRate:Ne,volumeMultiplier:tt,showEndScreen:we,showAutoplayNext:be}=lu(this.videoConfig,i),{sources:Ve,title:je,thumbUrl:it,unitedVideoId:vt,isClip:Je=!1,duration:wt,adsParams:_t={},videoEpisodes:Kt,previewThumbsData:Qt,subtitles:At,live:It}=e,O={...j,..._t},_e=this.getNextVideoInfo(),re={sources:Ve,title:je,thumbUrl:it,subtitles:At,unitedVideoId:vt,isClip:Je,live:It,albumId:u,statPlace:_,autoplay:C,muted:E,volume:T,fromTime:P,canRewindLive:A,showAds:V,adsSlotId:F,adsParams:O,adsPreviewParam:H,adsAutoplayParam:X,duration:wt,logoClickable:fe,logoHidden:ae,isTouch:Pe!=null?Pe:Me,repeat:Le,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:_e.nextVideoTitle,endScreenVideoThumb:_e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Oe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(re)}`});let He=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Ye=(He==null?void 0:He.oneStat)||this.createOneStat(e,i);Ye&&(this.statistics=new Wc(Ye,He==null?void 0:He.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Gs(this.uiConfig.sentry,{version:Fa,env:gc},{movieId:vt,albumId:u,place:_,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Pe!=null?Pe:Me,clip:Je}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Gs.getInstance()};let Ge=!!ge,et=[],Xe="tooltip_interactive_go_back_disabled_first";if(Ge&&this.interactiveController){let We=this.interactiveController.state.isInitialChapter$.getValue(),Jt=this.interactiveController.getHistoryState();We&&et.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||et.push("SEEK_TO_INTERACTIVE_BUTTON"),Jt.hasPrevChapter$.getValue()||(et.push("PLAY_PREV_CHAPTER_BUTTON"),We||(Jt.isGoBackLimited$.getValue()?Xe="tooltip_interactive_go_back_disabled_limit":Xe="tooltip_interactive_go_back_disabled"))}let Ue=()=>{var We;this.isInited=!1,this.prevIsid=void 0;let Jt=(o==null?void 0:o.info.isEnded$.getValue())&&((We=this.interactiveController)==null?void 0:We.state.isEndChapter$.getValue());ue.onReplayInteractiveVideo&&!Jt?ue.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=zh({player:o,interfaceLanguage:oe,isCyrillicRelatedInterface:Z,videoId:vt,isClip:Je,isLiveCatchUpMode:se,isAudioDisabled:he,statAuthToken:w,callbacks:ue,webApi:Oe,videoEpisodes:Kt,previewThumbsData:Qt,canDownload:B,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:et,isInteractive:Ge,saveRate:Ne,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Ue,playPrevChapterDisabledTooltip:Xe,hasInteractiveBranches:!!(($=(m=this.interactiveController)==null?void 0:m.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?te:[],additionalSettingsMenuItems:G!=null?G:[],additionalContextMenuItems:K!=null?K:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Le&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:ut}=this.microStoresRoot=C1(),zt=()=>{var We,Jt,Ui,Ze,Gt,wi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onCurrentFormatChanged)==null?void 0:$t.call(ue,Mt)})),this.subscription.add(ut.interactiveControlsOpacity$.subscribe(Mt=>{var $t;Mt!==null&&(($t=this==null?void 0:this.interactiveController)==null||$t.setDisabledControls(Mt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onThroughputEstimationChanged)==null?void 0:$t.call(ue,Mt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onTrafficSavingEnabledChanged)==null?void 0:$t.call(ue,Mt)})),this.subscription.add(new c5(Mt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe($t=>Mt.next($t)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?f5(1):Mt=>Mt).subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onCurrentPlaybackRateChanged)==null?void 0:$t.call(ue,Mt)})),this.subscription.add(this.store.state.volume$.subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onVolumeChange)==null?void 0:$t.call(ue,Mt)})),this.subscription.add(this.store.state.muted$.subscribe(Mt=>{var $t,Vt;return Mt?($t=ue==null?void 0:ue.onMute)==null?void 0:$t.call(ue):(Vt=ue==null?void 0:ue.onUnmute)==null?void 0:Vt.call(ue)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onVideoBitrateChanged)==null?void 0:$t.call(ue,Mt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Mt=>{var $t;let Vt=($t=this.store)==null?void 0:$t.ui.controls.disabledControls$;Vt&&(Mt&&!Vt.includes(Ll)&&Vt.add(Ll),Mt||Vt.remove(Ll))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Mt=>{var $t;if(!I1.browser.isSamsungBrowser||!Mt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(($t=this.videoConfig)==null?void 0:$t.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Mt=>{var $t;return($t=ue==null?void 0:ue.onVSIDChanged)==null?void 0:$t.call(ue,Mt)})),this.initMediaSession(),D($n,pe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ve,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:je,thumbUrl:it,subtitles:At,live:It,preload:y,autoplay:C,muted:E,volume:T,fromTime:P,canRewindLive:A,supportLink:I,showAds:V,adsSlotId:F,adsParams:O,adsPreviewParam:H,adsAutoplayParam:X,duration:wt,logoClickable:fe,logoHidden:ae,isMobile:Pe!=null?Pe:Me,failoverHosts:ne,fullScreenTarget:Ae,saveRate:Ne,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ke,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:_e.nextVideoTitle,endScreenVideoThumb:_e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:tt,showEndScreen:we,showAutoplayNext:be}));let Si={target:this.playerContainer,props:r($n)};this.svelteRootComponent=Zr(Cm,Si),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ui=(Jt=(We=this.videoConfig)==null?void 0:We.callbacks)==null?void 0:Jt.onInited)==null||Ui.call(Jt)),(Ze=this.internalsExposure)==null||Ze.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((wi=(Gt=this.videoConfig)==null?void 0:Gt.callbacks)!=null&&wi.onDevNullLog)?Rd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Rd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?I1.isInited$.subscribe(We=>{We&&(console.log("UI SDK async start"),zt())}):zt()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,p;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(p=a.onPiPExit)==null?void 0:p.call(a)}));let s=a==null?void 0:a.uiInfo;s&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=s.onControlsVisibleChanged)==null?void 0:l.call(s,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=s.onIsMobileChanged)==null?void 0:l.call(s,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=s.onPlayerSizeChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=s.onPrevButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=s.onPlayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=s.onReplayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=s.onNextButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=s.onPlayPrevChapterChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=s.onSeekToInteractiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=s.onGraphButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=s.onLiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=s.onTimeUpdateChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=s.onEpisodesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=s.onSubtitlesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=s.onSettingsChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=s.onFullscreenChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=s.onChromecastChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=s.onPipChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=s.onVkLogoChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=s.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=s.onTimelineChanged)==null?void 0:l.call(s,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&Vm(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,d=s?Se(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:m,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:p,historyApi:m,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation}});let{isInteractiveExpectation$:u,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(y=>{if(!this.isInited)return;let C=this.store;y?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(y=>{this.store&&this.store.state.isInteractiveExpectation$.set(y)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(y=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...y.config,title:(l==null?void 0:l.title)||y.config.title};let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:C})=>{var T,E,P,A,I,V;if(!this.store||!this.microStoresRoot)return;let F=u.getValue();if(y==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Vl)),y==="action-choice-canceled"){let j=Se(this.store.state.isPlaying$)||F;if(((P=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?P:(E=this.videoConfig)!=null&&E.isMobile)&&j){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(A=this.videoConfig)==null?void 0:(I=A.callbacks).onDisabledInteractiveClick)==null||V.call(I)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:C})=>{this.store&&y==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(Vl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let y=this.interactiveController.getHistoryState();this.subscription.add(y.history$.subscribe(C=>{var T,E,P;C.length&&((P=(E=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||P.call(E,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,C,T,E;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||E.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,s,d,l,p,m,$,u,_,w,y,C,T,E,P,A,I,V,F,j,H,X,oe,Z;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=lu(g5,a5(e,fe=>fe instanceof HTMLElement?fe:void 0)),this.uiConfig=Cg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new p5("UI"))),Rd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[s5()]}),Vm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(m=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?m:!0),Vm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(A=this.uiConfig.ads.preview)!=null?A:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((I=this.uiConfig.showLogo)!=null?I:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(F=this.videoConfig.supportLink)!=null?F:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(j=this.uiConfig.features.endScreen)!=null?j:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(H=this.uiConfig.features.autoplayNext)!=null?H:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(X=this.uiConfig.features.nextPrevButtons)!=null?X:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((oe=this.videoConfig.videos)!=null&&oe[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let fe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=au.getLatestSupportedVersion(fe):this.pictureInPictureApi=new js(fe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new su:void 0,this.slotsApi=this.uiConfig.features.slots?new iu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new du(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(Z=this.slotsApi)==null||Z.init(this.shadowRootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),b1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r($n)&&(r($n).showNextPrevButtons=this.needToShowNextPrevButtons(),r($n).nextButtonActive=this.isNextButtonActive(),r($n).prevButtonActive=this.isPrevButtonActive(),r($n).endScreenVideoTitle=o.nextVideoTitle,r($n).endScreenVideoThumb=o.nextVideoThumb,r($n).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r($n)&&(r($n).needToRepeatPlaylist=this.needToRepeatPlaylist,r($n).showNextPrevButtons=this.needToShowNextPrevButtons(),r($n).nextButtonActive=this.isNextButtonActive(),r($n).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){var e;this.log({message:"live waiting recover"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}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;return(i=(e=this.statistics)==null?void 0:e.oneStat.getDeviceId())!=null?i:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=Se(this.store.state.positionExact$),s=Se(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(u5()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.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)}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}unmountComponent(e){e&&Us(e)}};import{InterfaceLanguage as eX,VKNumericLanguage as tX,loadVKLangPack as iX}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as nX,VideoFormat as rX}from"@vkontakte/videoplayer-core/es2018";var KZ=()=>{window.customElements.define("vk-video-player",pu)};export{Kc as ControlButtonType,Dr as GridTypes,eX as InterfaceLanguage,ql as MenuItemType,ts as PlayerPhase,Fa as VERSION,tX as VKNumericLanguage,rX as VideoFormat,nX as VideoQuality,iX as loadVKLangPack,KZ as registerPlayerWebComponent};
|
|
395
|
+
/* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function km(t,e){U(e,!0),W(t,Lx);let[i,o]=Re(),n=()=>S(Gt,"$isLive$",i),a=f(e,"sources",7),s=f(e,"store",7),d=f(e,"microStoresRoot",7),l=f(e,"videoConfig",7),p=f(e,"uiConfig",7),m=f(e,"title",7),b=f(e,"thumbUrl",7),u=f(e,"interactiveContainer",7),_=f(e,"interactiveController",7),w=f(e,"subtitles",7),y=f(e,"live",7),C=f(e,"preload",7),T=f(e,"autoplay",7),k=f(e,"volume",7,void 0),P=f(e,"muted",7,void 0),A=f(e,"fromTime",7),I=f(e,"canRewindLive",7),V=f(e,"showAds",7),q=f(e,"adsSlotId",7,void 0),Q=f(e,"adsParams",7,void 0),H=f(e,"adsPreviewParam",7,void 0),Y=f(e,"adsAutoplayParam",7,void 0),ne=f(e,"duration",7,void 0),Z=f(e,"logoClickable",7),de=f(e,"logoHidden",7),ce=f(e,"isMobile",7),Le=f(e,"showNextPrevButtons",7,!1),Ae=f(e,"nextButtonActive",7,!1),he=f(e,"prevButtonActive",7,!1),se=f(e,"endScreenVideoTitle",7,void 0),Me=f(e,"endScreenVideoThumb",7,void 0),oe=f(e,"isOneVideoPlaylist",7,!1),B=f(e,"supportLink",7),be=f(e,"shadowRootContainer",7,void 0),le=f(e,"outerContainerRef",7,void 0),We=f(e,"fullScreenTarget",7,void 0),ee=f(e,"failoverHosts",7,void 0),me=f(e,"showMiniTimer",7,!1),j=f(e,"saveRate",7),te=f(e,"seekToInteractive",7,y1),Oe=f(e,"playPrevChapter",7,y1),Ge=f(e,"volumeMultiplier",7),$e=f(e,"showAutoplayNext",7),we=f(e,"showEndScreen",7,!0),Ve=f(e,"keyboardControls",15,void 0),{subscribers:je,stores:dt}=d();Eg(p());let ct=qt(),rt=p().logoLink,Ct=s().ui.debugPanelVisible,_t=s().ui.playerSize,Gt=s().state.isLive$,It=s().state.isInteractive&&Im.device.isAndroid,Vt=X(void 0),O=null,_e=X(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),Og(s(),dt),He(()=>{var G,Xt;s().ui.isMobile.set(ce()),(Xt=(G=l().callbacks)==null?void 0:G.onDomReady)==null||Xt.call(G)});let re=(G=!1)=>{D(_e,!0),G?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Ne=()=>{if(ct.features.qualityDetailsSubMenuEnabled){let G=rh(s().videoId);if(G)switch(G.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(G.quality);break}}else{sh(s().videoId),Sp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Xt=$p(s().videoId);Xt&&s().actions.internal.setQuality(Xt)}};function ze(G){var ft,ui,Ze;let Xt=a()||G;Xt&&s().initVideo({container:r(Vt),sources:Xt,failoverHosts:ee(),subtitles:w(),volumeMultiplier:Ge()});let ri=Ex.get(Ml)==="true";Ct.set(ri),A()>0&&s().actions.external.seekTime(A());let Bi=ce()?ct.volumeDefault:(ui=(ft=k())!=null?ft:$c())!=null?ui:ct.volumeDefault,li=(Ze=P())!=null?Ze:Jg();if(s().actions.external.setVolume(Bi),s().actions.external.setMuted(li),s().getAdmanWrapper().setInitialVolume(li?0:Bi),Ne(),ct.features.saveRate&&j()){let Mt=ih();Mt&&!n()&&s().actions.internal.setPlaybackRate(Mt)}if($e()){let Mt=nh();Mt&&s().actions.internal.setAutoplayNextEnabled(Mt)}s().ui.isAutoplay.set(T()),T()?re():C()&&ct.features.preload&&s().actions.internal.preload()}let Qe=G=>{if(window.ResizeObserver){let Xt,ri;O=new ResizeObserver(Px(Bi=>{let li=Bi[0];if(li.contentBoxSize){let ft=Array.isArray(li.contentBoxSize)?li.contentBoxSize[0]:li.contentBoxSize;Xt=ft.inlineSize,ri=ft.blockSize}else li.contentRect&&(Xt=li.contentRect.width,ri=li.contentRect.height);_t.set({width:Xt,height:ri})},300)),O.observe(G)}_t.set({width:G.clientWidth,height:G.clientHeight})},ut=()=>{document.hidden&&s().actions.external.stop()};zt(()=>{var ri,Bi,li,ft;It&&document.addEventListener("visibilitychange",ut),ct.debugLog&&s().actions.internal.startLogging(),Qe(r(Vt));let G=je.map(ui=>ui.init({store:s(),microStores:dt,config:l(),interactiveController:_(),uiConfig:p()})),Xt=()=>{It&&document.removeEventListener("visibilitychange",ut),O==null||O.disconnect(),G.forEach(ui=>ui.unsubscribe()),s().destroy()};return((ri=y())==null?void 0:ri.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Xt):((Bi=y())==null?void 0:Bi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Xt):(((li=y())==null?void 0:li.status)==="finished"||((ft=y())==null?void 0:ft.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Xt):(ze(),Xt)});function Ye(){r(_e)?s().actions.external.play():re(!0)}function et(){s().actions.external.pause()}function tt(G){s().actions.external.setMuted(G)}function qe(){s().actions.external.toggleSubtitle()}function gt(){var G;(G=s().webApi.slotsApi)!=null&&G.haveSlots()&&s().actions.external.hideControls()}function Ht(){var G;(G=s().webApi.slotsApi)!=null&&G.haveSlots()&&s().actions.external.showControls()}function Xe(G){ce()||G>=0&&G<=1&&s().actions.external.setVolume(G)}function Qt(G){s().actions.internal.seekTime(G,Ax.UNKNOWN)}function ti(G){s().actions.external.seekEpisodeStartTime(G)}function Je(){s().actions.external.returnFocusToEpisodes()}function Zt(G){s().actions.external.setPlaybackRate(G)}function Ni(G){s().actions.external.setAutoQualityLimits(G)}let zi=su(ct.view),At=l().playerView==="preview";var ht=Mx();let Rt;nt(ht,zi);var co=h(ht);{var en=G=>{Cm(G,{get store(){return s()},uiConfig:ct,get thumbUrl(){return b()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return Q()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return Y()},get duration(){return ne()},get logoClickable(){return Z()},get logoHidden(){return de()},logoTargetUrl:rt,get nextButtonActive(){return Ae()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Me()},get isOneVideoPlaylist(){return oe()},get supportLink(){return B()},get shadowRootContainer(){return be()},get outerContainerRef(){return le()},get fullScreenTarget(){return We()},get showMiniTimer(){return me()},get playerStarted(){return r(_e)},get seekToInteractive(){return te()},get playPrevChapter(){return Oe()},firstStart:re,seekTime:Qt,get showEndScreen(){return we()},get showAutoplayNext(){return $e()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(Vt)},set videoContainer(Xt){D(Vt,fe(Xt))}})},hn=G=>{var Xt=De(),ri=pe(Xt);{var Bi=ft=>{Tm(ft,{get thumbUrl(){return b()},get outsideDuration(){return ne()},get canRewindLive(){return I()},get videoContainer(){return r(Vt)},set videoContainer(ui){D(Vt,fe(ui))}})},li=ft=>{wm(ft,{get store(){return s()},uiConfig:ct,get title(){return m()},get thumbUrl(){return b()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return Q()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return Y()},get duration(){return ne()},get logoClickable(){return Z()},get logoHidden(){return de()},logoTargetUrl:rt,get nextButtonActive(){return Ae()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Me()},get isOneVideoPlaylist(){return oe()},get supportLink(){return B()},get shadowRootContainer(){return be()},get outerContainerRef(){return le()},get fullScreenTarget(){return We()},get showMiniTimer(){return me()},get playerStarted(){return r(_e)},get seekToInteractive(){return te()},get playPrevChapter(){return Oe()},firstStart:re,get showEndScreen(){return we()},get showAutoplayNext(){return $e()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(Vt)},set videoContainer(ui){D(Vt,fe(ui))},get keyboardControls(){return Ve()},set keyboardControls(ui){Ve(ui)}})};R(ri,ft=>{At?ft(Bi):ft(li,!1)})}$(G,Xt)};R(co,G=>{ce()?G(en):G(hn,!1)})}g(ht),E(G=>Rt=J(ht,1,"root svelte-7ed4yj",null,Rt,G),[()=>({"root--miui-browser":Im.device.isMobile&&Im.browser.isMiuiBrowser,"visible-outside":At})]),$(t,ht);var $o=z({initVideo:ze,play:Ye,pause:et,setMuted:tt,toggleSubtitle:qe,hideControls:gt,showControls:Ht,setVolume:Xe,seekTime:Qt,seekEpisodeStartTime:ti,returnFocusToEpisodes:Je,setPlaybackRate:Zt,setAutoQualityLimits:Ni,get sources(){return a()},set sources(G){a(G)},get store(){return s()},set store(G){s(G)},get microStoresRoot(){return d()},set microStoresRoot(G){d(G)},get videoConfig(){return l()},set videoConfig(G){l(G)},get uiConfig(){return p()},set uiConfig(G){p(G)},get title(){return m()},set title(G){m(G)},get thumbUrl(){return b()},set thumbUrl(G){b(G)},get interactiveContainer(){return u()},set interactiveContainer(G){u(G)},get interactiveController(){return _()},set interactiveController(G){_(G)},get subtitles(){return w()},set subtitles(G){w(G)},get live(){return y()},set live(G){y(G)},get preload(){return C()},set preload(G){C(G)},get autoplay(){return T()},set autoplay(G){T(G)},get volume(){return k()},set volume(G){k(G)},get muted(){return P()},set muted(G){P(G)},get fromTime(){return A()},set fromTime(G){A(G)},get canRewindLive(){return I()},set canRewindLive(G){I(G)},get showAds(){return V()},set showAds(G){V(G)},get adsSlotId(){return q()},set adsSlotId(G){q(G)},get adsParams(){return Q()},set adsParams(G){Q(G)},get adsPreviewParam(){return H()},set adsPreviewParam(G){H(G)},get adsAutoplayParam(){return Y()},set adsAutoplayParam(G){Y(G)},get duration(){return ne()},set duration(G){ne(G)},get logoClickable(){return Z()},set logoClickable(G){Z(G)},get logoHidden(){return de()},set logoHidden(G){de(G)},get isMobile(){return ce()},set isMobile(G){ce(G)},get showNextPrevButtons(){return Le()},set showNextPrevButtons(G){Le(G)},get nextButtonActive(){return Ae()},set nextButtonActive(G){Ae(G)},get prevButtonActive(){return he()},set prevButtonActive(G){he(G)},get endScreenVideoTitle(){return se()},set endScreenVideoTitle(G){se(G)},get endScreenVideoThumb(){return Me()},set endScreenVideoThumb(G){Me(G)},get isOneVideoPlaylist(){return oe()},set isOneVideoPlaylist(G){oe(G)},get supportLink(){return B()},set supportLink(G){B(G)},get shadowRootContainer(){return be()},set shadowRootContainer(G){be(G)},get outerContainerRef(){return le()},set outerContainerRef(G){le(G)},get fullScreenTarget(){return We()},set fullScreenTarget(G){We(G)},get failoverHosts(){return ee()},set failoverHosts(G){ee(G)},get showMiniTimer(){return me()},set showMiniTimer(G){me(G)},get saveRate(){return j()},set saveRate(G){j(G)},get showAutoplayNext(){return $e()},set showAutoplayNext(G){$e(G)},get seekToInteractive(){return te()},set seekToInteractive(G){te(G)},get playPrevChapter(){return Oe()},set playPrevChapter(G){Oe(G)},get volumeMultiplier(){return Ge()},set volumeMultiplier(G){Ge(G)},get showEndScreen(){return we()},set showEndScreen(G){we(G)},get keyboardControls(){return Ve()},set keyboardControls(G){Ve(G)}});return o(),$o}var Vx=xe('<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 Em(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Vx();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),$(t,o)}function Pm(t,e){let i=f(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Em(t,{get style(){return r(o)}})}var Rx=L('<div class="title svelte-1y9fytq"> </div>'),Nx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Bx={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function Am(t,e){W(t,Bx);var i=Nx(),o=h(i);{var n=d=>{var l=Rx(),p=h(l,!0);g(l),E(()=>ve(p,e.title)),$(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);Pm(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),E(()=>nt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}import{now as d5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as c5,InterfaceLanguage as u5,isNonNullable as Bm,Logger as p5,Observable as f5,Subscription as E1,once as m5,InternalsExposure as v5,skip as g5}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as P1,isMobile as h5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as _5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as Dx,Subscription as Ox}from"@vkontakte/videoplayer-shared/es2018";var au=class{constructor(){this.subscription=new Ox,this.logger=new Dx,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,s;let o=Ce(e.state.currentPlaybackRate$),n=Ce(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Vm,detectEmbed as Wx}from"@vkontakte/videoplayer-shared/es2018";var Hx=xe('<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 Mm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Hx();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i})),$(t,o)}var Fx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Ux={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 Lm(t,e){U(e,!0),W(t,Ux);let[i,o]=Re(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(m,"$isMobile$",i),s=Te(),d=qt(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,m=s.ui.isMobile,b=s.ui.t,u=v(()=>n()&&b("pip_dummy_title")),_=su(d.view);var w=Fx();J(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),nt(w,_);var y=h(w);let C;var T=h(y);Mm(T,{}),g(y);var k=M(y,2),P=h(k,!0);g(k),g(w),E(A=>{C=J(y,1,"dummy-image svelte-1pbsod4",null,C,A),ve(P,r(u))},[()=>({desktop:!a()})]),$(t,w),z(),o()}var zx=Object.defineProperty,qx=(t,e,i)=>e in t?zx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,nl=(t,e,i)=>qx(t,typeof e!="symbol"?e+"":e,i),Kx=460,Qx=280,Id=class{constructor({enabled:e=!0}={enabled:!0}){nl(this,"playerDomElement"),nl(this,"playerParentShadowRoot"),nl(this,"playerDummyElement"),nl(this,"svelteContext"),nl(this,"pipWindow"),nl(this,"info",{isActive$:new Vm(!1),isEnabled$:new Vm(!1),type:1}),this.info.isEnabled$=new Vm(e)}isSupported(){let{isEmbed:e}=Wx();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Kx,height:Qx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
|
|
396
|
+
`),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Zr(Lm,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Us(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})}async dispose(){await this.remove()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function x1(t){return t instanceof Id}var lu=class{static getLatestSupportedVersion(e){let i=new js(e),o=new Id(e);if(o.isSupported())return o;if(i.isSupported())return i}};function du(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let s of i)o[s]=(a=(n=e[s])!=null?n:t[s])!=null?a:void 0;return o}var w1="Inner error. Unexpectedly root annotation container null reference exception",S1="Annotation with such name already exists",C1="Annotation with such name does not exist";var rl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Gx,Subscription as jx,throttleFn as Yx}from"@vkontakte/videoplayer-shared/es2018";var Zx="1",Xx=100,cu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new jx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Yx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Xx);this.subscriptions.add(Gx(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new rl(w1);if(this.annotations.has(e))throw new rl(S1);i.style.zIndex=(o=i.style.zIndex)!=null?o:Zx,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 rl(C1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as uu,Subscription as Jx}from"@vkontakte/videoplayer-shared/es2018";var Oo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return uu(e),uu(i),uu(n),n.interactiveData&&uu(o),this.subscription=new Jx,this.subscription}};var kd=class extends Oo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ae(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Ed=class extends Oo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ae(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:p,isMobile:m}=a.ui,b=Ce(m),u=()=>b&&Ce(p);return o.add(p.subscribe(_=>{if(!b)return;let w=Ce(s);Ce(l)?this.state$.set(_):w!==null&&this.state$.set(!w||_)})),o.add(l.subscribe(_=>{this.state$.set(!_||u())})),o.add(s.subscribe(_=>{if(_===null)return;let w=Ce(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!_)})),o}};var Pd=class extends Oo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as e5}from"@vkontakte/videoplayer-shared/es2018";var Rm=ae(!1),pu=null,Ad=class extends Oo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Rm,set:(i,o=!1)=>{i!==Ce(Rm)&&(this.clearTimeout(),Rm.set(i),!i&&pu&&(pu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:s,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(l.subscribe(b=>{Ce(s)&&b&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(e5({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:b,isInteractiveTime$:u,interactiveTimeIndicator:_})=>{var w,y;if(!(!b||!(_!=null&&_.isDisplayed))){if(!u)return this.state$.set(!1);m.tooltipHelpHintActive&&pu===null&&(pu=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as t5,noop as i5}from"@vkontakte/videoplayer-shared/es2018";var Md=class extends Oo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:i5};this.checkIfShouldHide=i=>xs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,s=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(Ce(s)))return;let l=Ce(this.state$),{isEnded$:p,playbackState$:m}=n.state,{disabledControls$:b}=n.ui.controls,u=Ce(p),_=Ce(m);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),b.remove(fp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=_==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),b.add(fp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(t5({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(b){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as T1}from"@vkontakte/videoplayer-shared/es2018";var Ld=class extends Oo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new T1(!1),isEnabled$:new T1(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};import{filter as r5,filterChanged as s5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Nm}from"@vkontakte/videoplayer-shared/es2018";var I1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?o5({maxCount:t}):void 0,e!==0?n5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},o5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Nm.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},n5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Nm.get(e)||"{}")}catch(a){return{}}},o=a=>Nm.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let s=i()[a];if(s){let d=Date.now()-s.launchTime>t;return d&&n(a),d}else return!0}}};var Vd=class extends Oo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=I1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(s5(),r5(m=>m)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var k1=()=>[kd,Ed,Pd,Ad,Md,Ld,Vd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as Rd}from"@vkontakte/videoplayer-shared/es2018";var a5=Object.defineProperty,l5=(t,e,i)=>e in t?a5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,oi=(t,e,i)=>l5(t,typeof e!="symbol"?e+"":e,i),b5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:u5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:h5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},gn=X(void 0),fu=class extends HTMLElement{constructor(){super(),oi(this,"svelteStubComponent"),oi(this,"svelteRootComponent"),oi(this,"store"),oi(this,"microStoresRoot"),oi(this,"statistics"),oi(this,"sentry"),oi(this,"_shadowRoot"),oi(this,"playerContainer"),oi(this,"rootContainer"),oi(this,"shadowRootContainer"),oi(this,"uiConfig"),oi(this,"coreConfig"),oi(this,"statisticsConfig"),oi(this,"interactiveController"),oi(this,"interactiveContainer"),oi(this,"graphMadePause"),oi(this,"currentPlayingVideoIndex",0),oi(this,"needToRepeatPlaylist",!1),oi(this,"videoConfig"),oi(this,"pictureInPictureApi"),oi(this,"mediaSessionApi"),oi(this,"unsubscribePlayerPhaseSubscription"),oi(this,"logger"),oi(this,"log"),oi(this,"subscription"),oi(this,"interactiveSubscription"),oi(this,"annotationsApi"),oi(this,"slotsApi"),oi(this,"prevIsid"),oi(this,"isInited",!1),oi(this,"internalsExposure",null),oi(this,"shadowDOMCallbacksDisabled",!1),oi(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:m,statVKAppId:b,refreshStatAuthToken:u,autoplay:_,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:k}=du(this.videoConfig,i),P=(o=k==null?void 0:k.projectInfo)==null?void 0:o.pid,A=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&I)return new _5({movieId:I,albumId:d,place:l,trackCode:m,vkAppId:b,autoplay:(s=_&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:V,refDomain:C,deviceId:T,...P&&(!this.isInited||A)&&{projectId:Number(P)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),Rd.create("ui"),this.logger=new p5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new E1,this.interactiveSubscription=new E1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=fe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=Zr(Am,s)}disconnectedCallback(){var e,i,o,n,a;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),Rd.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},o){var n,a,s,d,l,p,m,b;if(!this.videoConfig)return;let{albumId:u,statPlace:_,statAuthToken:w,preload:y,autoplay:C,volume:T,muted:k,fromTime:P,canRewindLive:A,supportLink:I,showAds:V,adsSlotId:q,adsParams:Q={},adsPreviewParam:H,adsAutoplayParam:Y,interfaceLanguage:ne,isCyrillicRelatedInterface:Z,logoClickable:de,logoHidden:ce,isMobile:Le,isTouch:Ae,isAudioDisabled:he,isLiveCatchUpMode:se,fullScreenTarget:Me,failoverHosts:oe,canDownload:B,callbacks:be,interactiveData:le,showThumbTimer:We,additionalButtons:ee=[],additionalSettingsMenuItems:me=[],additionalContextMenuItems:j=[],repeat:te,saveRate:Oe,volumeMultiplier:Ge,showEndScreen:$e,showAutoplayNext:we}=du(this.videoConfig,i),{sources:Ve,title:je,thumbUrl:dt,unitedVideoId:ct,isClip:rt=!1,duration:Ct,adsParams:_t={},videoEpisodes:Gt,previewThumbsData:ni,subtitles:It,live:Vt}=e,O={...Q,..._t},_e=this.getNextVideoInfo(),re={sources:Ve,title:je,thumbUrl:dt,subtitles:It,unitedVideoId:ct,isClip:rt,live:Vt,albumId:u,statPlace:_,autoplay:C,muted:k,volume:T,fromTime:P,canRewindLive:A,showAds:V,adsSlotId:q,adsParams:O,adsPreviewParam:H,adsAutoplayParam:Y,duration:Ct,logoClickable:de,logoHidden:ce,isTouch:Ae!=null?Ae:Le,repeat:te,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:_e.nextVideoTitle,endScreenVideoThumb:_e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ne={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(re)}`});let ze=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Qe=(ze==null?void 0:ze.oneStat)||this.createOneStat(e,i);Qe&&(this.statistics=new Kc(Qe,ze==null?void 0:ze.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Gs(this.uiConfig.sentry,{version:qa,env:hc},{movieId:ct,albumId:u,place:_,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Ae!=null?Ae:Le,clip:rt}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Gs.getInstance()};let Ye=!!le,et=[],tt="tooltip_interactive_go_back_disabled_first";if(Ye&&this.interactiveController){let Xe=this.interactiveController.state.isInitialChapter$.getValue(),Qt=this.interactiveController.getHistoryState();Xe&&et.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||et.push("SEEK_TO_INTERACTIVE_BUTTON"),Qt.hasPrevChapter$.getValue()||(et.push("PLAY_PREV_CHAPTER_BUTTON"),Xe||(Qt.isGoBackLimited$.getValue()?tt="tooltip_interactive_go_back_disabled_limit":tt="tooltip_interactive_go_back_disabled"))}let qe=()=>{var Xe;this.isInited=!1,this.prevIsid=void 0;let Qt=(o==null?void 0:o.info.isEnded$.getValue())&&((Xe=this.interactiveController)==null?void 0:Xe.state.isEndChapter$.getValue());be.onReplayInteractiveVideo&&!Qt?be.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Kh({player:o,interfaceLanguage:ne,isCyrillicRelatedInterface:Z,videoId:ct,isClip:rt,isLiveCatchUpMode:se,isAudioDisabled:he,statAuthToken:w,callbacks:be,webApi:Ne,videoEpisodes:Gt,previewThumbsData:ni,canDownload:B,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:et,isInteractive:Ye,saveRate:Oe,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:qe,playPrevChapterDisabledTooltip:tt,hasInteractiveBranches:!!((b=(m=this.interactiveController)==null?void 0:m.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?ee:[],additionalSettingsMenuItems:me!=null?me:[],additionalContextMenuItems:j!=null?j:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:te&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:gt}=this.microStoresRoot=k1(),Ht=()=>{var Xe,Qt,ti,Je,Zt,Ni;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(At=>{var ht;return(ht=be==null?void 0:be.onCurrentFormatChanged)==null?void 0:ht.call(be,At)})),this.subscription.add(gt.interactiveControlsOpacity$.subscribe(At=>{var ht;At!==null&&((ht=this==null?void 0:this.interactiveController)==null||ht.setDisabledControls(At))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(At=>{var ht;return(ht=be==null?void 0:be.onThroughputEstimationChanged)==null?void 0:ht.call(be,At)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(At=>{var ht;return(ht=be==null?void 0:be.onTrafficSavingEnabledChanged)==null?void 0:ht.call(be,At)})),this.subscription.add(new f5(At=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ht=>At.next(ht)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?g5(1):At=>At).subscribe(At=>{var ht;return(ht=be==null?void 0:be.onCurrentPlaybackRateChanged)==null?void 0:ht.call(be,At)})),this.subscription.add(this.store.state.volume$.subscribe(At=>{var ht;return(ht=be==null?void 0:be.onVolumeChange)==null?void 0:ht.call(be,At)})),this.subscription.add(this.store.state.muted$.subscribe(At=>{var ht,Rt;return At?(ht=be==null?void 0:be.onMute)==null?void 0:ht.call(be):(Rt=be==null?void 0:be.onUnmute)==null?void 0:Rt.call(be)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(At=>{var ht;return(ht=be==null?void 0:be.onVideoBitrateChanged)==null?void 0:ht.call(be,At)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(At=>{var ht;let Rt=(ht=this.store)==null?void 0:ht.ui.controls.disabledControls$;Rt&&(At&&!Rt.includes(Ll)&&Rt.add(Ll),At||Rt.remove(Ll))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async At=>{var ht;if(!P1.browser.isSamsungBrowser||!At||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((ht=this.videoConfig)==null?void 0:ht.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(At=>{var ht;return(ht=be==null?void 0:be.onVSIDChanged)==null?void 0:ht.call(be,At)})),this.initMediaSession(),D(gn,fe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ve,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:je,thumbUrl:dt,subtitles:It,live:Vt,preload:y,autoplay:C,muted:k,volume:T,fromTime:P,canRewindLive:A,supportLink:I,showAds:V,adsSlotId:q,adsParams:O,adsPreviewParam:H,adsAutoplayParam:Y,duration:Ct,logoClickable:de,logoHidden:ce,isMobile:Ae!=null?Ae:Le,failoverHosts:oe,fullScreenTarget:Me,saveRate:Oe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:We,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:_e.nextVideoTitle,endScreenVideoThumb:_e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ge,showEndScreen:$e,showAutoplayNext:we}));let zi={target:this.playerContainer,props:r(gn)};this.svelteRootComponent=Zr(km,zi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ti=(Qt=(Xe=this.videoConfig)==null?void 0:Xe.callbacks)==null?void 0:Qt.onInited)==null||ti.call(Qt)),(Je=this.internalsExposure)==null||Je.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ni=(Zt=this.videoConfig)==null?void 0:Zt.callbacks)!=null&&Ni.onDevNullLog)?Rd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Rd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?P1.isInited$.subscribe(Xe=>{Xe&&(console.log("UI SDK async start"),Ht())}):Ht()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,p;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(p=a.onPiPExit)==null?void 0:p.call(a)}));let s=a==null?void 0:a.uiInfo;s&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=s.onControlsVisibleChanged)==null?void 0:l.call(s,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=s.onIsMobileChanged)==null?void 0:l.call(s,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=s.onPlayerSizeChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=s.onPrevButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=s.onPlayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=s.onReplayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=s.onNextButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=s.onPlayPrevChapterChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=s.onSeekToInteractiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=s.onGraphButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=s.onLiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=s.onTimeUpdateChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=s.onEpisodesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=s.onSubtitlesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=s.onSettingsChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=s.onFullscreenChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=s.onChromecastChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=s.onPipChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=s.onVkLogoChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=s.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=s.onTimelineChanged)==null?void 0:l.call(s,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&Bm(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,d=s?Ce(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:m,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:p,historyApi:m,vkVideoLoader:b,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:u,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(y=>{if(!this.isInited)return;let C=this.store;y?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(y=>{this.store&&this.store.state.isInteractiveExpectation$.set(y)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(y=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...y.config,title:(l==null?void 0:l.title)||y.config.title};let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:C})=>{var T,k,P,A,I,V;if(!this.store||!this.microStoresRoot)return;let q=u.getValue();if(y==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Vl)),y==="action-choice-canceled"){let Q=Ce(this.store.state.isPlaying$)||q;if(((P=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?P:(k=this.videoConfig)!=null&&k.isMobile)&&Q){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(A=this.videoConfig)==null?void 0:(I=A.callbacks).onDisabledInteractiveClick)==null||V.call(I)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:C})=>{this.store&&y==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(Vl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let y=this.interactiveController.getHistoryState();this.subscription.add(y.history$.subscribe(C=>{var T,k,P;C.length&&((P=(k=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||P.call(k,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,C,T,k;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,s,d,l,p,m,b,u,_,w,y,C,T,k,P,A,I,V,q,Q,H,Y,ne,Z;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=du(b5,c5(e,de=>de instanceof HTMLElement?de:void 0)),this.uiConfig=kg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new v5("UI"))),Rd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[d5()]}),Bm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(m=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?m:!0),Bm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(b=this.uiConfig.features.pip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(A=this.uiConfig.ads.preview)!=null?A:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((I=this.uiConfig.showLogo)!=null?I:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(q=this.videoConfig.supportLink)!=null?q:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Q=this.uiConfig.features.endScreen)!=null?Q:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(H=this.uiConfig.features.autoplayNext)!=null?H:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Y=this.uiConfig.features.nextPrevButtons)!=null?Y:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ne=this.videoConfig.videos)!=null&&ne[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let de={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=lu.getLatestSupportedVersion(de):this.pictureInPictureApi=new js(de)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new au:void 0,this.slotsApi=this.uiConfig.features.slots?new ou:void 0,this.annotationsApi=this.uiConfig.features.annotations?new cu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),x1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(Z=this.slotsApi)==null||Z.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(gn)&&(r(gn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(gn).nextButtonActive=this.isNextButtonActive(),r(gn).prevButtonActive=this.isPrevButtonActive(),r(gn).endScreenVideoTitle=o.nextVideoTitle,r(gn).endScreenVideoThumb=o.nextVideoThumb,r(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}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(gn)&&(r(gn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(gn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(gn).nextButtonActive=this.isNextButtonActive(),r(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,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){var e;this.log({message:"live waiting recover"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}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;return(i=(e=this.statistics)==null?void 0:e.oneStat.getDeviceId())!=null?i:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=Ce(this.store.state.positionExact$),s=Ce(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(m5()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.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)}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}unmountComponent(e){e&&Us(e)}};import{InterfaceLanguage as sX,VKNumericLanguage as aX,loadVKLangPack as lX}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as cX,VideoFormat as uX}from"@vkontakte/videoplayer-core/es2018";var XZ=()=>{window.customElements.define("vk-video-player",fu)};export{Qc as ControlButtonType,Or as GridTypes,sX as InterfaceLanguage,ql as MenuItemType,ts as PlayerPhase,qa as VERSION,aX as VKNumericLanguage,uX as VideoFormat,cX as VideoQuality,lX as loadVKLangPack,XZ as registerPlayerWebComponent};
|