@vkontakte/videoplayer 1.1.64-beta.0 → 1.1.64-dev.095ddfcb.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +70 -71
- package/es2015.esm.js +70 -71
- package/es2018.cjs.js +70 -71
- package/es2018.esm.js +70 -71
- package/es2024.cjs.js +72 -73
- package/es2024.esm.js +72 -73
- package/esnext.cjs.js +72 -73
- package/esnext.esm.js +72 -73
- package/evergreen.esm.js +72 -73
- package/package.json +5 -5
- package/types/components/Ads/admanWrapper.d.ts +2 -0
- package/types/components/Menus/subMenuTabs/rootMenuItems.d.ts +0 -1
- package/types/components/Menus/subMenuTabs/types.d.ts +1 -0
- package/types/config.d.ts +7 -0
- package/types/constans/subtitles.d.ts +1 -0
- package/types/store/index.d.ts +1 -5
- package/types/translation/types.d.ts +1 -1
- package/types/utils/changeVolume.d.ts +6 -3
- package/types/utils/webAPI/slotsApi.d.ts +2 -25
package/es2018.cjs.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.64-
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.64-dev.095ddfcb.0
|
|
3
|
+
* Fri, 20 Jun 2025 11:04:44 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var c0=Object.create;var Il=Object.defineProperty;var u0=Object.getOwnPropertyDescriptor;var p0=Object.getOwnPropertyNames;var f0=Object.getPrototypeOf,m0=Object.prototype.hasOwnProperty;var
|
|
6
|
+
"use strict";var c0=Object.create;var Il=Object.defineProperty;var u0=Object.getOwnPropertyDescriptor;var p0=Object.getOwnPropertyNames;var f0=Object.getPrototypeOf,m0=Object.prototype.hasOwnProperty;var pv=t=>{throw TypeError(t)};var v0=(t,e,i)=>e in t?Il(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var g0=(t,e)=>{for(var i in e)Il(t,i,{get:e[i],enumerable:!0})},fv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p0(e))!m0.call(t,n)&&n!==i&&Il(t,n,{get:()=>e[n],enumerable:!(o=u0(e,n))||o.enumerable});return t};var mv=(t,e,i)=>(i=t!=null?c0(f0(t)):{},fv(e||!t||!t.__esModule?Il(i,"default",{value:t,enumerable:!0}):i,t)),h0=t=>fv(Il({},"__esModule",{value:!0}),t);var Bn=(t,e,i)=>v0(t,typeof e!="symbol"?e+"":e,i),Hu=(t,e,i)=>e.has(t)||pv("Cannot "+i);var Ai=(t,e,i)=>(Hu(t,e,"read from private field"),i?i.call(t):e.get(t)),ls=(t,e,i)=>e.has(t)?pv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Aa=(t,e,i,o)=>(Hu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),vv=(t,e,i)=>(Hu(t,e,"access private method"),i);var Tx={};g0(Tx,{ControlButtonType:()=>Cd,GridTypes:()=>wr,InterfaceLanguage:()=>wl.InterfaceLanguage,MenuItemType:()=>al,PlayerPhase:()=>Hr,VERSION:()=>js,VKNumericLanguage:()=>wl.VKNumericLanguage,VideoFormat:()=>Vu.VideoFormat,VideoQuality:()=>Vu.VideoQuality,loadVKLangPack:()=>wl.loadVKLangPack,registerPlayerWebComponent:()=>Cx});module.exports=h0(Tx);var ds="[",Ms="[!",Ls="]",Wr={};var Mi=Symbol(),_i=Symbol("filename"),gv=Symbol("hmr"),hv="http://www.w3.org/1999/xhtml",Fu="http://www.w3.org/2000/svg";var dc=!0;var bv,$v,_v=($v=(bv=globalThis.process)==null?void 0:bv.env)==null?void 0:$v.NODE_ENV,ke=_v&&!_v.toLowerCase().startsWith("prod");var Oo=Symbol("$state"),Kr=Symbol("$state metadata"),kl=Symbol("legacy props"),yv=Symbol("");var gr=Array.isArray,xv=Array.prototype.indexOf,El=Array.from,Uu=Object.keys,io=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,cc=Object.getOwnPropertyDescriptors,zu=Object.prototype,wv=Array.prototype,Qr=Object.getPrototypeOf;function cs(t){return typeof t=="function"}var te=()=>{};function Sv(t){return t()}function us(t){for(var e=0;e<t.length;e++)t[e]()}var Pl=[],qu=[];function Cv(){var t=Pl;Pl=[],us(t)}function _0(){var t=qu;qu=[],us(t)}function tn(t){Pl.length===0&&queueMicrotask(Cv),Pl.push(t)}function Wu(){Pl.length>0&&Cv(),qu.length>0&&_0()}function uc(t){return t===this.v}function Ma(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Tv(t,e){return t!==e}function La(t){return!Ma(t,this.v)}function Iv(){if(ke){let t=new Error(`derived_references_self
|
|
7
7
|
A derived value cannot reference itself recursively
|
|
8
|
-
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function
|
|
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 kv(t){if(ke){let e=new Error(`effect_in_teardown
|
|
9
9
|
\`${t}\` cannot be used inside an effect cleanup function
|
|
10
|
-
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function
|
|
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 Ev(){if(ke){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Pv(t){if(ke){let e=new Error(`effect_orphan
|
|
11
11
|
\`${t}\` can only be used inside an effect (e.g. during component initialisation)
|
|
12
|
-
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function
|
|
12
|
+
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Av(){if(ke){let t=new Error(`effect_update_depth_exceeded
|
|
13
13
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
14
|
-
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function
|
|
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 Mv(){if(ke){let t=new Error(`hydration_failed
|
|
15
15
|
Failed to hydrate the application
|
|
16
|
-
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Lv(){if(ke){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Vv(t){if(ke){let e=new Error(`props_invalid_value
|
|
17
17
|
Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
|
|
18
|
-
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function
|
|
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 Rv(t){if(ke){let e=new Error(`props_rest_readonly
|
|
19
19
|
Rest element properties of \`$props()\` such as \`${t}\` are readonly
|
|
20
|
-
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function
|
|
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 Bv(t){if(ke){let e=new Error(`rune_outside_svelte
|
|
21
21
|
The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
22
|
-
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Nv(){if(
|
|
22
|
+
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Nv(){if(ke){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Dv(){if(ke){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ov(){if(ke){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 Hv(){if(ke){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 Vr=!1,Rr=!1;function Fv(){Vr=!0}var Al=null;function Gr(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;io(e,"stack",{value:n.join(`
|
|
25
|
+
`)}),io(e,"name",{value:`${t}Error`})}return e}var Vs=new Set,Va=new Map;function Yu(t){Vs=t}function qi(t,e){var i={f:0,v:t,reactions:null,equals:uc,rv:0,wv:0};return ke&&Rr&&(i.created=e!=null?e:Gr("CreatedAt"),i.debug=null),i}function X(t){return b0(qi(t))}function jr(t,e=!1){var o,n;let i=qi(t);return e||(i.equals=La),Vr&&Pt!==null&&Pt.l!==null&&((n=(o=Pt.l).s)!=null?n:o.s=[]).push(i),i}function b0(t){return Ut!==null&&!On&&(Ut.f&2)!==0&&(hr===null?qv([t]):hr.push(t)),t}function D(t,e){return Ut!==null&&!On&&Br()&&(Ut.f&18)!==0&&(hr===null||!hr.includes(t))&&Hv(),Ra(t,e)}function Ra(t,e){var o;if(!t.equals(e)){var i=t.v;if(Bs?Va.set(t,e):Va.set(t,i),t.v=e,t.wv=Ll(),ke&&Rr&&(t.updated=Gr("UpdatedAt"),kt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),zv(t,2048),Br()&&kt!==null&&(kt.f&1024)!==0&&(kt.f&96)===0&&(Dn===null?Wv([t]):Dn.push(t)),ke&&Vs.size>0){let n=Array.from(Vs);for(let a of n)(a.f&1024)!==0&&rn(a,4096),ps(a)&&Ba(a);Vs.clear()}}return e}function zv(t,e){var i=t.reactions;if(i!==null)for(var o=Br(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===kt)){if(ke&&(d&262144)!==0){Vs.add(s);continue}rn(s,e),(d&1280)!==0&&((d&2)!==0?zv(s,4096):Na(s))}}}function v(t){var e=2050,i=Ut!==null&&(Ut.f&2)!==0?Ut:null;kt===null||i!==null&&(i.f&256)!==0?e|=256:kt.f|=1048576;let o={ctx:Pt,deps:null,effects:null,equals:uc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:kt};return ke&&Rr&&(o.created=Gr("CreatedAt")),o}function br(t){let e=v(t);return e.equals=La,e}function pc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)no(e[i])}}var ju=[];function $0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function y0(t){var e,i=kt;if(oo($0(t)),ke){let o=Vs;Yu(new Set);try{ju.includes(t)&&Iv(),ju.push(t),pc(t),e=fc(t)}finally{oo(i),Yu(o),ju.pop()}}else try{pc(t),e=fc(t)}finally{oo(i)}return e}function Xu(t){var e=y0(t),i=(Zr||(t.f&256)!==0)&&t.deps!==null?4096:1024;rn(t,i),t.equals(e)||(t.v=e,t.wv=Ll())}var Ns="font-weight: bold",Ds="font-weight: normal";function Kv(t,e,i){ke?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`,Ds
|
|
27
|
+
https://svelte.dev/e/hydration_attribute_changed`,Ns,Ds):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Qv(t){ke?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`,Ds
|
|
29
|
+
https://svelte.dev/e/hydration_html_changed`,Ns,Ds):console.warn("https://svelte.dev/e/hydration_html_changed")}function Os(t){ke?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`,Ds
|
|
31
|
+
https://svelte.dev/e/hydration_mismatch`,Ns,Ds):console.warn("https://svelte.dev/e/hydration_mismatch")}function Gv(){ke?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`,Ds
|
|
33
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Ns,Ds):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Yv(t,e,i){ke?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`,Ds
|
|
35
|
+
https://svelte.dev/e/ownership_invalid_binding`,Ns,Ds):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Ju(t,e){ke?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`,Ds
|
|
37
|
+
https://svelte.dev/e/ownership_invalid_mutation`,Ns,Ds):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function mc(t){ke?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`,Ds
|
|
39
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Ns,Ds):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ge=!1;function ro(t){Ge=t}var _t;function bi(t){if(t===null)throw Os(),Wr;return _t=t}function Di(){return bi(Po(_t))}function g(t){if(Ge){if(Po(_t)!==null)throw Os(),Wr;_t=t}}function $e(t=1){if(Ge){for(var e=t,i=_t;e--;)i=Po(i);_t=i}}function Da(){for(var t=0,e=_t;;){if(e.nodeType===8){var i=e.data;if(i===Ls){if(t===0)return e;t-=1}else(i===ds||i===Ms)&&(t+=1)}var o=Po(e);e.remove(),e=o}}function pe(t,e=null,i){var p,m;var o=null;if(ke&&Rr&&(o=Gr("CreatedAt")),typeof t!="object"||t===null||Oo in t)return t;let n=Qr(t);if(n!==zu&&n!==wv)return t;var a=new Map,s=gr(t),d=qi(0);s&&a.set("length",qi(t.length,o));var l;if(ke)if(l={parent:e,owners:null},i){let y=(m=(p=i.v)==null?void 0:p[Kr])==null?void 0:m.owners;l.owners=y?new Set(y):null}else l.owners=e===null?Pt!==null?new Set([Pt.function]):null:new Set;return new Proxy(t,{defineProperty(y,u,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&Nv();var w=a.get(u);return w===void 0?(w=qi($.value,o),a.set(u,w)):D(w,pe($.value,l)),!0},deleteProperty(y,u){var $=a.get(u);if($===void 0)u in y&&a.set(u,qi(Mi,o));else{if(s&&typeof u=="string"){var w=a.get("length"),b=Number(u);Number.isInteger(b)&&b<w.v&&D(w,b)}D($,Mi),jv(d)}return!0},get(y,u,$){var I;if(ke&&u===Kr)return l;if(u===Oo)return t;var w=a.get(u),b=u in y;if(w===void 0&&(!b||(I=Nn(y,u))!=null&&I.writable)&&(w=qi(pe(b?y[u]:Mi,l),o),a.set(u,w)),w!==void 0){var C=r(w);if(ke){var T=C==null?void 0:C[Kr];T&&(T==null?void 0:T.parent)!==l&&ep(l,T)}return C===Mi?void 0:C}return Reflect.get(y,u,$)},getOwnPropertyDescriptor(y,u){var $=Reflect.getOwnPropertyDescriptor(y,u);if($&&"value"in $){var w=a.get(u);w&&($.value=r(w))}else if($===void 0){var b=a.get(u),C=b==null?void 0:b.v;if(b!==void 0&&C!==Mi)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return $},has(y,u){var C;if(ke&&u===Kr||u===Oo)return!0;var $=a.get(u),w=$!==void 0&&$.v!==Mi||Reflect.has(y,u);if($!==void 0||kt!==null&&(!w||(C=Nn(y,u))!=null&&C.writable)){$===void 0&&($=qi(w?pe(y[u],l):Mi,o),a.set(u,$));var b=r($);if(b===Mi)return!1}return w},set(y,u,$,w){var W;var b=a.get(u),C=u in y;if(s&&u==="length")for(var T=$;T<b.v;T+=1){var I=a.get(T+"");I!==void 0?D(I,Mi):T in y&&(I=qi(Mi,o),a.set(T+"",I))}if(b===void 0?(!C||(W=Nn(y,u))!=null&&W.writable)&&(b=qi(void 0,o),D(b,pe($,l)),a.set(u,b)):(C=b.v!==Mi,D(b,pe($,l))),ke){var M=$==null?void 0:$[Kr];M&&(M==null?void 0:M.parent)!==l&&ep(l,M),Zv(l)}var P=Reflect.getOwnPropertyDescriptor(y,u);if(P!=null&&P.set&&P.set.call(w,$),!C){if(s&&typeof u=="string"){var k=a.get("length"),V=Number(u);Number.isInteger(V)&&V>=k.v&&D(k,V+1)}jv(d)}return!0},ownKeys(y){r(d);var u=Reflect.ownKeys(y).filter(b=>{var C=a.get(b);return C===void 0||C.v!==Mi});for(var[$,w]of a)w.v!==Mi&&!($ in y)&&u.push($);return u},setPrototypeOf(){Dv()}})}function jv(t,e=1){D(t,t.v+e)}function vc(t){return t!==null&&typeof t=="object"&&Oo in t?t[Oo]:t}function Xv(){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(vc(this[l])===a){mc("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(vc(this[l])===a){mc("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(vc(this[l])===a){mc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Hs,Jv,Vl,eg,tg;function gc(){if(Hs===void 0){Hs=window,Jv=document,Vl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;eg=Nn(e,"firstChild").get,tg=Nn(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,ke&&(t.__svelte_meta=null,Xv())}}function sn(t=""){return document.createTextNode(t)}function $i(t){return eg.call(t)}function Po(t){return tg.call(t)}function h(t,e){if(!Ge)return $i(t);var i=$i(_t);if(i===null)i=_t.appendChild(sn());else if(e&&i.nodeType!==3){var o=sn();return i==null||i.before(o),bi(o),o}return bi(i),i}function ue(t,e){var n,a;if(!Ge){var i=$i(t);return i.nodeType===8&&i.data===""?Po(i):i}if(e&&((n=_t)==null?void 0:n.nodeType)!==3){var o=sn();return(a=_t)==null||a.before(o),bi(o),o}return _t}function A(t,e=1,i=!1){let o=Ge?_t:t;for(var n;e--;)n=o,o=Po(o);if(!Ge)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=sn();return o===null?n==null||n.after(s):o.before(s),bi(s),s}return bi(o),o}function Rl(t){t.textContent=""}var ig=new WeakSet,hc=!1,Dl=!1,Bl=null,Fs=!1,Bs=!1;function op(t){Bs=t}var Nl=[],bc=[],Ut=null,On=!1;function yo(t){Ut=t}var kt=null;function oo(t){kt=t}var hr=null;function qv(t){hr=t}var an=null,Fn=0,Dn=null;function Wv(t){Dn=t}var ag=1,$c=0,Zr=!1,Ml=null;function Ll(){return++ag}function ps(t){var y,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&&kt!==null&&!Zr,l=i.length;if(s||d){var p=t,m=p.parent;for(n=0;n<l;n++)a=i[n],(s||!((y=a==null?void 0:a.reactions)!=null&&y.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)&&Xu(a),a.wv>t.wv)return!0}(!o||kt!==null&&!Zr)&&rn(t,1024)}return!1}function og(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 hc=!1,t}function ng(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Ha(t,e,i,o){var m,y;if(hc){if(i===null&&(hc=!1),ng(e))throw t;return}if(i!==null&&(hc=!0),!ke||o===null||!(t instanceof Error)||ig.has(t)){og(t,e);return}ig.add(t);let n=[],a=(m=e.fn)==null?void 0:m.name;a&&n.push(a);let s=o;for(;s!==null;){if(ke){var d=(y=s.function)==null?void 0:y[_i];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=Vl?" ":" ";io(t,"message",{value:t.message+`
|
|
40
40
|
${n.map(u=>`
|
|
41
41
|
${l}in ${u}`).join("")}
|
|
42
|
-
`}),
|
|
43
|
-
`)
|
|
44
|
-
`)})}if(
|
|
45
|
-
`)){let n=(i=E0.exec(o))!=null?i:P0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function
|
|
42
|
+
`}),io(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 b=u[w];b.includes("svelte/src/internal")||$.push(b)}io(t,"stack",{value:$.join(`
|
|
44
|
+
`)})}if(og(t,e),ng(e))throw t}function lg(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?lg(a,e,!1):e===a&&(i?rn(a,2048):(a.f&1024)!==0&&rn(a,4096),Na(a))}}function fc(t){var $,w;var e=an,i=Fn,o=Dn,n=Ut,a=Zr,s=hr,d=Pt,l=On,p=t.f;an=null,Fn=0,Dn=null,Zr=(p&256)!==0&&(On||!Fs||Ut===null),Ut=(p&96)===0?t:null,hr=null,Hl(t.ctx),On=!1,$c++;try{var m=(0,t.fn)(),y=t.deps;if(an!==null){var u;if(Ol(t,Fn),y!==null&&Fn>0)for(y.length=Fn+an.length,u=0;u<an.length;u++)y[Fn+u]=an[u];else t.deps=y=an;if(!Zr)for(u=Fn;u<y.length;u++)((w=($=y[u]).reactions)!=null?w:$.reactions=[]).push(t)}else y!==null&&Fn<y.length&&(Ol(t,Fn),y.length=Fn);if(Br()&&Dn!==null&&!On&&y!==null&&(t.f&6146)===0)for(u=0;u<Dn.length;u++)lg(Dn[u],t);return n!==null&&($c++,Dn!==null&&(o===null?o=Dn:o.push(...Dn))),m}finally{an=e,Fn=i,Dn=o,Ut=n,Zr=a,hr=s,Hl(d),On=l}}function x0(t,e){let i=e.reactions;if(i!==null){var o=xv.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&&(an===null||!an.includes(e))&&(rn(e,4096),(e.f&768)===0&&(e.f^=512),pc(e),Ol(e,0))}function Ol(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)x0(t,i[o])}function Ba(t){var e=t.f;if((e&16384)===0){rn(t,1024);var i=kt,o=Pt,n=Fs;if(kt=t,Fs=!0,ke){var a=ln;Fl(t.component_function)}try{(e&16)!==0?dg(t):rp(t),np(t);var s=fc(t);t.teardown=typeof s=="function"?s:null,t.wv=ag;var d=t.deps;if(ke&&Rr&&(t.f&2048)!==0&&d!==null)for(let p=0;p<d.length;p++){var l=d[p];l.trace_need_increase&&(l.wv=Ll(),l.trace_need_increase=void 0,l.trace_v=void 0)}ke&&bc.push(t)}catch(p){Ha(p,t,i,o||t.ctx)}finally{Fs=n,kt=i,ke&&Fl(a)}}}function rg(){console.error("Last ten effects were: ",bc.slice(-10).map(t=>t.fn)),bc=[]}function w0(){try{Av()}catch(t){if(ke&&io(t,"stack",{value:""}),Bl!==null)if(ke)try{Ha(t,Bl,null,null)}catch(e){throw rg(),e}else Ha(t,Bl,null,null);else throw ke&&rg(),t}}function tp(){var t=Fs;try{var e=0;for(Fs=!0;Nl.length>0;){e++>1e3&&w0();var i=Nl,o=i.length;Nl=[];for(var n=0;n<o;n++){var a=C0(i[n]);S0(a)}}}finally{Dl=!1,Fs=t,Bl=null,ke&&(bc=[]),Va.clear()}}function S0(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)&&(Ba(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?sp(o):o.fn=null))}catch(n){Ha(n,o,null,o.ctx)}}}function Na(t){Dl||(Dl=!0,queueMicrotask(tp));for(var e=Bl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Nl.push(e)}function C0(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=Ut;try{Ut=i,ps(i)&&Ba(i)}catch(p){Ha(p,i,null,i.ctx)}finally{Ut=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 Fa(t){var e;for(t&&(Dl=!0,tp(),e=t()),Wu();Nl.length>0;)Dl=!0,tp(),Wu();return e}async function xo(){await Promise.resolve(),Fa()}function r(t){var e=t.f,i=(e&2)!==0;if(Ml!==null&&Ml.add(t),Ut!==null&&!On){hr!==null&&hr.includes(t)&&Ov();var o=Ut.deps;t.rv<$c&&(t.rv=$c,an===null&&o!==null&&o[Fn]===t?Fn++:an===null?an=[t]:(!Zr||!an.includes(t))&&an.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)&&Xu(n)),ke&&Rr&&Al!==null&&Ut!==null&&Al.reaction===Ut){if(t.debug)t.debug();else if(t.created){var s=Al.entries.get(t);s===void 0&&(s={read:[]},Al.entries.set(t,s)),s.read.push(Gr("TracedAt"))}}return Bs&&Va.has(t)?Va.get(t):t.v}function wt(t){var e=On;try{return On=!0,t()}finally{On=e}}var T0=-7169;function rn(t,e){t.f=t.f&T0|e}function xc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Oo in t)yc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Oo in i&&yc(i)}}}function yc(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{yc(t[o],e)}catch(n){}let i=Qr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=cc(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function lp(t){kt===null&&Ut===null&&Pv(t),Ut!==null&&(Ut.f&256)!==0&&kt===null&&Ev(),Bs&&kv(t)}function I0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Us(t,e,i,o=!0){var l;var n=kt;if(ke)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Pt,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(ke&&(a.component_function=ln),i)try{Ba(a),a.f|=32768}catch(p){throw no(a),p}else e!==null&&Na(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&&I0(a,n),Ut!==null&&(Ut.f&2)!==0)){var d=Ut;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function dn(t){let e=Us(8,null,!1);return rn(e,1024),e.teardown=t,e}function Fe(t){var n;lp("$effect");var e=kt!==null&&(kt.f&32)!==0&&Pt!==null&&!Pt.m;if(ke&&io(t,"name",{value:"$effect"}),e){var i=Pt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:kt,reaction:Ut})}else{var o=Cn(t);return o}}function Ua(t){return lp("$effect.pre"),ke&&io(t,"name",{value:"$effect.pre"}),wo(t)}function Sc(t){let e=Us(64,t,!0);return()=>{no(e)}}function ug(t){let e=Us(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Tn(e,()=>{no(e),o(void 0)}):(no(e),o(void 0))})}function Cn(t){return Us(4,t,!1)}function wo(t){return Us(8,t,!0)}function E(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return ke&&io(n,"name",{value:"{expression}"}),so(n)}function so(t,e=0){return Us(24|e,t,!0)}function Wi(t,e=!0){return Us(40,t,!0,e)}function np(t){var e=t.teardown;if(e!==null){let i=Bs,o=Ut;op(!0),yo(null);try{e.call(null)}finally{op(i),yo(o)}}}function rp(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:no(i,e),i=o}}function dg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&no(e),e=i}}function no(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:Po(o);o.remove(),o=a}i=!0}rp(t,e&&!i),Ol(t,0),rn(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();np(t);var d=t.parent;d!==null&&d.first!==null&&sp(t),ke&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function sp(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 Tn(t,e){var i=[];Cc(t,i,!0),dp(i,()=>{no(t),e&&e()})}function dp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Cc(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;Cc(o,e,a?i:!1),o=n}}}function Xr(t){pg(t,!0)}function pg(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),ps(t)&&(rn(t,2048),Na(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;pg(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var k0={},E0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,P0=/@(.+):(\d+):(\d+)$/;function A0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
|
|
45
|
+
`)){let n=(i=E0.exec(o))!=null?i:P0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function fg(){var e;let t=(e=A0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=k0[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 Tc=Symbol("ADD_OWNER");function cp(t,e,i=!1,o=!1){if(t&&!i){let n=ln,a=t[Kr];if(a&&!up(a,n)){let s=pp(a);e&&e[_i]!==n[_i]&&!o&&Yv(n[_i],e[_i],s[_i])}}Ic(t,e,new Set)}function ep(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 Ic(t,e,i){var a;let o=t==null?void 0:t[Kr];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),Tc in t&&t[Tc])wo(()=>{t[Tc](e)});else{var n=Qr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Mi;wo(()=>{let l=t[s];d!==l&&(d=l,Ic(l,e,i))})}else Ic(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)Ic(t[s],e,i)}}}function up(t,e){return t.owners===null?!0:t.owners.has(e)||_i in e&&[...t.owners].some(i=>i[_i]===e[_i])||t.parent!==null&&up(t.parent,e)}function pp(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:pp(t.parent)}var M0=!1;function Zv(t){if(M0)return;let e=fg();if(e&&!up(t,e)){let i=pp(t);i[_i]!==e[_i]?Ju(e[_i],i[_i]):Ju()}}function za(t){if(ke){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 At=null;function Hl(t){At=t}var en=null;function Fl(t){en=t}function Wa(t){return pp("getContext").get(t)}function Ka(t,e){let i=pp("setContext");return Ee&&wt(()=>dp(e,null,!0)),i.set(t,e),e}function zl(){return pp("getAllContexts")}function U(t,e=!1,i){var o=At={p:At,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Rr&&!e&&(At.l={s:null,u:null,r1:[],r2:Gi(!1)}),tn(()=>{o.d=!0}),Ee&&(At.function=i,en=i)}function z(t){var s,d;let e=At;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=kt,o=Ft;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];lo(a.effect),bo(a.reaction),gn(a.fn)}}finally{lo(i),bo(o)}}At=e.p,Ee&&(en=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Br(){return!Rr||At!==null&&At.l===null}function pp(t){var e;return At===null&&qa(t),(e=At.c)!=null?e:At.c=new Map(V0(At)||void 0)}function V0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var R0=/\r/g;function fg(t){t=t.replace(R0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function mg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var N0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function vg(t){return N0.includes(t)}var B0=["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 D0={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 gg(t){var e;return t=t.toLowerCase(),(e=D0[t])!=null?e:t}var Tw=[...B0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var O0=["touchstart","touchmove"];function hg(t){return O0.includes(t)}var H0=["textarea","script","style","title"];function _g(t){return H0.includes(t)}function fp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var bg=new Map;function $g(t,e){var i=bg.get(t);i||(i=new Set,bg.set(t,i)),i.add(e)}function mp(t,e){if(e){let i=document.body;t.autofocus=!0,Go(()=>{document.activeElement===i&&t.focus()})}}function ql(t){var e=Ft,i=kt;bo(null),lo(null);try{return t()}finally{bo(e),lo(i)}}var vp=new Set,kc=new Set;function qs(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 gp(t,e,i,o={}){function n(a){if(o.capture||Qa.call(e,a),!a.cancelBubble)return ql(()=>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 Tt(t,e,i,o,n){var a={capture:o,passive:n},s=gp(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++)vp.add(t[e]);for(var i of kc)i(t)}function Qa(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){ao(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Ft,b=kt;bo(null),lo(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(mr(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,bo(m),lo(b)}}}var U0;function yg(){U0=void 0}function Ga(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function xo(t,e){var i=kt;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 xo(gt,null),gt;n===void 0&&(n=Ga(a?t:"<!>"+t),i||(n=xi(n)));var s=o||Vl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=xi(s),l=s.lastChild;xo(d,l)}else xo(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(Qe)return xo(gt,null),gt;if(!s){var d=Ga(a),l=xi(d);if(n)for(s=document.createDocumentFragment();xi(l);)s.appendChild(xi(l));else s=xi(l)}var p=s.cloneNode(!0);if(n){var m=xi(p),b=p.lastChild;xo(m,b)}else xo(p,p);return p}}function Dr(t=""){if(!Qe){var e=Xo(t+"");return xo(e,e),e}var i=gt;return i.nodeType!==3&&(i.before(i=Xo()),yi(i)),xo(i,i),i}function De(){if(Qe)return xo(gt,null),gt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Xo();return t.append(e,i),xo(e,i),t}function $(t,e){if(Qe){kt.nodes_end=gt,qi();return}t!==null&&t.before(e)}var Wl=!0;function Ec(t){Wl=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 Jr(t,e){return wg(t,e)}function _p(t,e){var s;gc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Qe,n=gt;try{for(var a=xi(i);a&&(a.nodeType!==8||a.data!==cs);)a=Po(a);if(!a)throw Wr;uo(!0),yi(a),qi();let d=wg(t,{...e,anchor:a});if(gt===null||gt.nodeType!==8||gt.data!==Vs)throw Hs(),Wr;return uo(!1),d}catch(d){if(d===Wr)return e.recover===!1&&Av(),gc(),Rl(i),uo(!1),Jr(t,e);throw d}finally{uo(o),yi(n),yg()}}var ja=new Map;function wg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){gc();var d=new Set,l=b=>{for(var u=0;u<b.length;u++){var _=b[u];if(!d.has(_)){d.add(_);var w=hg(_);e.addEventListener(_,Qa,{passive:w});var y=ja.get(_);y===void 0?(document.addEventListener(_,Qa,{passive:w}),ja.set(_,1)):ja.set(_,y+1)}}};l(El(vp)),kc.add(l);var p=void 0,m=cg(()=>{var b=i!=null?i:e.appendChild(Xo());return ji(()=>{if(a){U({});var u=At;u.c=a}n&&(o.$$events=n),Qe&&xo(b,null),Wl=s,p=t(b,o)||{},Wl=!0,Qe&&(kt.nodes_end=gt),a&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,Qa);var _=ja.get(u);--_===0?(document.removeEventListener(u,Qa),ja.delete(u)):ja.set(u,_)}kc.delete(l),b!==i&&((w=b.parentNode)==null||w.removeChild(b))}});return hp.set(p,m),p}var hp=new WeakMap;function Ws(t,e){let i=hp.get(t);return i?(hp.delete(t),i(e)):(Ee&&Qv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Qe&&i===0&&qi();var n=t,a=null,s=null,d=Ni,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(Qe&&o!==-1){if(i===0){let C=n.data;C===cs?o=0:C===Ls?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Oa(),yi(n),uo(!1),w=!0,o=-1)}d?(a?Xr(a):_&&(a=ji(()=>_(n))),s&&hn(s,()=>{s=null})):(s?Xr(s):_&&(s=ji(()=>_(n,[i+1,o]))),a&&hn(a,()=>{a=null})),w&&uo(!0)};po(()=>{p=!1,e(m),p||b(null,null)},l),Qe&&(n=gt)}function Ks(t,e,i){Qe&&qi();var o=t,n=Ni,a,s=Br()?Cv:La;po(()=>{s(n,n=e())&&(a&&hn(a),a=ji(()=>i(o)))}),Qe&&(o=gt)}var vs=null;function yp(t){vs=t}function Kl(t,e){return e}function K0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Cc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Rl(l),l.append(i),o.clear(),ms(t,e[0].prev,e[a-1].next)}lp(n,()=>{for(var p=0;p<a;p++){var m=e[p];d||(o.delete(m.k),ms(t,m.prev,m.next)),co(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?yi(xi(p)):p.appendChild(Xo())}Qe&&qi();var m=null,b=!1,u=hr(()=>{var _=i();return mr(_)?_:_==null?[]:El(_)});po(()=>{var _=r(u),w=_.length;if(b&&w===0)return;b=w===0;let y=!1;if(Qe){var C=s.data===Ls;C!==(w===0)&&(s=Oa(),yi(s),uo(!1),y=!0)}if(Qe){for(var T=null,k,P=0;P<w;P++){if(gt.nodeType===8&>.data===Vs){s=gt,y=!0,uo(!1);break}var A=_[P],I=o(A,P);k=Tg(gt,d,T,null,A,I,P,n,e,i),d.items.set(I,k),T=k}w>0&&yi(Oa())}Qe||Q0(_,d,s,n,e,o,i),a!==null&&(w===0?m?Xr(m):m=ji(()=>a(s)):m!==null&&hn(m,()=>{m=null})),y&&uo(!0),r(u)}),Qe&&(s=gt)}function Q0(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&&G0(A,k,I,n),(A.e.f&8192)!==0&&(Xr(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)Sg(C[Q],q,i);for(Q=0;Q<T.length;Q+=1)_.delete(T[Q]);ms(e,H.prev,Y.next),ms(e,w,H),ms(e,Y,q),u=q,w=Y,I-=1,C=[],T=[]}else _.delete(A),Sg(A,u,i),ms(e,A.prev,A.next),ms(e,A,w===null?e.first:w.next),ms(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?[]:El(_);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()}K0(e,ne,de,m)}}d&&Go(()=>{var se;if(y!==void 0)for(A of y)(se=A.a)==null||se.apply()}),kt.first=e.first&&e.first.e,kt.last=w&&w.e}function G0(t,e,i,o){(o&1)!==0&&Na(t.v,e),(o&2)!==0?Na(t.i,i):t.i=i}function Tg(t,e,i,o,n,a,s,d,l,p){var m=vs,b=(l&1)!==0,u=(l&16)===0,_=b?u?Yr(n):Gi(n):n,w=(l&2)===0?s:Gi(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};vs=y;try{return y.e=ji(()=>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{vs=m}}function Sg(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 ms(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 j0(t,e,i){var a,s;if(!e||e===fg(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]}`),Kv(fp(o))}function Ql(t,e,i,o,n){var a=t,s="",d;po(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Qe&&qi();return}d!==void 0&&(co(d),d=void 0),s!==""&&(d=ji(()=>{if(Qe){for(var p=gt.data,m=qi(),b=m;m!==null&&(m.nodeType!==8||m.data!=="");)b=m,m=Po(m);if(m===null)throw Hs(),Wr;Ee&&!n&&j0(m.parentNode,p,s),xo(gt,b),a=yi(m);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var _=Ga(u);if((i||o)&&(_=xi(_)),xo(xi(_),_.lastChild),i||o)for(;xi(_);)a.before(xi(_));else a.before(_)}))})}function ge(t,e,...i){var o=t,n=ie,a;po(()=>{n!==(n=e())&&(a&&(co(a),a=null),Ee&&n==null&&Mv(),a=ji(()=>n(o,...i)))},65536),Qe&&(o=gt)}function Ei(t,e,i){Qe&&qi();var o=t,n,a;po(()=>{n!==(n=e())&&(a&&(hn(a),a=null),n&&(a=ji(()=>i(o,n))))},65536),Qe&&(o=gt)}function Qs(t,e,i,o,n,a){var w;let s=Qe;Qe&&qi();var d=Ee&&a&&((w=At)==null?void 0:w.function[$i]),l,p,m=null;Qe&>.nodeType===1&&(m=gt,qi());var b=Qe?gt:t,u,_=vs;po(()=>{let y=e()||null;var C=n?n():i||y==="svg"?Hu:null;if(y!==l){var T=vs;yp(_),u&&(y===null?hn(u,()=>{u=null,p=null}):y===p?Xr(u):(co(u),Ec(!1))),y&&y!==p&&(u=ji(()=>{if(m=Qe?m:C?document.createElementNS(C,y):document.createElement(y),Ee&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),xo(m,m),o){Qe&&_g(y)&&m.append(document.createComment(""));var k=Qe?xi(m):m.appendChild(Xo());Qe&&(k===null?uo(!1):yi(k)),o(m,k)}kt.nodes_end=m,b.before(m)})),l=y,l&&(p=l),Ec(!0),yp(T)}},65536),s&&(uo(!0),yi(b))}var wp;function Ig(t){return wp=t.target,new xp(t)}var es,Xn,xp=class{constructor(e){ds(this,es);ds(this,Xn);var a,s;var i=new Map,o=(d,l)=>{var p=Yr(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===kl?!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)}});Ma(this,Xn,(e.hydrate?_p:Jr)(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)&&Ua(),Ma(this,es,n.$$events);for(let d of Object.keys(Ri(this,Xn)))d==="$set"||d==="$destroy"||d==="$on"||ao(this,d,{get(){return Ri(this,Xn)[d]},set(l){Ri(this,Xn)[d]=l},enumerable:!0});Ri(this,Xn).$set=d=>{Object.assign(n,d)},Ri(this,Xn).$destroy=()=>{Ws(Ri(this,Xn))}}$set(e){Ri(this,Xn).$set(e)}$on(e,i){Ri(this,es)[e]=Ri(this,es)[e]||[];let o=(...n)=>i.call(this,...n);return Ri(this,es)[e].push(o),()=>{Ri(this,es)[e]=Ri(this,es)[e].filter(n=>n!==o)}}$destroy(){Ri(this,Xn).$destroy()}};es=new WeakMap,Xn=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=wp)==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&&$g(e.hash,d)}})}function kg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=kg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Eg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=kg(t))&&(o&&(o+=" "),o+=e);return o}function Gl(t){return typeof t=="object"?Eg(t):t!=null?t:""}var Pg=[...`
|
|
48
|
-
\r\f\xA0\v\uFEFF`];function Mg(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||Pg.includes(o[s-1]))&&(d===o.length||Pg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Ag(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 Sp(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(Sp)),n&&l.push(...Object.keys(n).map(Sp));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 _=Sp(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+=Ag(o)),n&&(i+=Ag(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(Qe||s!==i){var d=Mg(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 Cp(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 rt(t,e,i,o){var n=t.__style;if(Qe||n!==e){var a=Lg(e,o);(!Qe||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Cp(t,i==null?void 0:i[0],o[0]),Cp(t,i==null?void 0:i[1],o[1],"important")):Cp(t,i,o));return o}var Ya=Symbol("class"),Za=Symbol("style"),Ng=Symbol("is custom element"),Bg=Symbol("is html");function Dg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Be(t,e,i,o){var n=Og(t);if(Qe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||i_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[$v]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Hg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ie(t,e,i,o,n=!1){var A;var a=Og(t),s=a[Ng],d=!a[Bg];let l=Qe&&s;l&&uo(!1);var p=e||{},m=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=Gl(i.class):(o||i[Ya])&&(i.class=null),i[Za]&&((A=i.style)!=null||(i.style=null));var u=Hg(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[Ya],i[Ya]),p[I]=V,p[Ya]=i[Ya];continue}if(I==="style"){rt(t,V,e==null?void 0:e[Za],i[Za]),p[I]=V,p[Za]=i[Za];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=vg(H);if(mg(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,at([H]);else{let Y=function(ne){p[I].call(this,ne)};var P=Y;p[Q]=gp(H,t,Y,q)}else C&&(t[`__${H}`]=void 0)}else if(I==="style")Be(t,I,V);else if(I==="autofocus")mp(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&m)Dg(t,V);else{var T=I;d||(T=gg(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&&uo(!0),p}function Og(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Ng]:t.nodeName.includes("-"),[Bg]:t.namespaceURI===gv}}var Vg=new Map;function Hg(t){var e=Vg.get(t.nodeName);if(e)return e;Vg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=cc(o);for(var a in i)i[a].set&&e.push(a);o=Qr(o)}return e}function i_(t,e,i){var o;Ee&&(e==="srcset"&&o_(t,i)||Tp((o=t.getAttribute(e))!=null?o:"",i)||Wv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Tp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Rg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function o_(t,e){var i=Rg(t.srcset),o=Rg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Tp(i[s][0],n)||Tp(n,i[s][0])))}var n_=dc?()=>performance.now():()=>Date.now(),br={tick:t=>(dc?requestAnimationFrame:ie)(t),now:()=>n_(),tasks:new Set};function Fg(){let t=br.now();br.tasks.forEach(e=>{e.c(t)||(br.tasks.delete(e),e.f())}),br.tasks.size!==0&&br.tick(Fg)}function Ug(t){let e;return br.tasks.size===0&&br.tick(Fg),{promise:new Promise(i=>{br.tasks.add(e={c:t,f:i})}),abort(){br.tasks.delete(e)}}}function Pc(t,e){ql(()=>{t.dispatchEvent(new CustomEvent(e))})}function l_(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 zg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=l_(n.trim());e[s]=a.trim()}return e}var d_=t=>t;function kp(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=Ft,I=kt;bo(null),lo(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{bo(A),lo(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=Ip(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"),_=Ip(e,w(),u,0,()=>{Pc(e,"outroend"),A==null||A()})},stop:()=>{u==null||u.abort(),_==null||_.abort()}},C=kt;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Wl){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&&gn(()=>{wt(()=>y.in())})}}function Ip(t,e,i,o,n){var a=o===1;if(us(e)){var s,d=!1;return Go(()=>{if(!d){var C=e({direction:a?"in":"out"});s=Ip(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=d_}=e;var u=[];if(a&&i===void 0&&(m&&m(0,1),p)){var _=zg(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=zg(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&&Ug(()=>{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 gs,Xa,jl,Mc,qg,Lc=class Lc{constructor(e){ds(this,Mc);ds(this,gs,new WeakMap);ds(this,Xa);ds(this,jl);Ma(this,jl,e)}observe(e,i){var o=Ri(this,gs).get(e)||new Set;return o.add(i),Ri(this,gs).set(e,o),mv(this,Mc,qg).call(this).observe(e,Ri(this,jl)),()=>{var n=Ri(this,gs).get(e);n.delete(i),n.size===0&&(Ri(this,gs).delete(e),Ri(this,Xa).unobserve(e))}}};gs=new WeakMap,Xa=new WeakMap,jl=new WeakMap,Mc=new WeakSet,qg=function(){var e;return(e=Ri(this,Xa))!=null?e:Ma(this,Xa,new ResizeObserver(i=>{for(var o of i){Lc.entries.set(o.target,o);for(var n of Ri(this,gs).get(o.target)||[])n(o)}}))},kn(Lc,"entries",new WeakMap);var Ep=Lc;var p_=new Ep({box:"border-box"});function Or(t,e,i){var o=p_.observe(t,()=>i(t[e]));gn(()=>(wt(()=>i(t[e])),o))}function Wg(t,e){return t===e||(t==null?void 0:t[Fo])===e}function ft(t={},e,i,o){return gn(()=>{var n,a;return yo(()=>{n=a,a=(o==null?void 0:o())||[],wt(()=>{t!==i(...a)&&(e(t,...a),n&&Wg(i(...n),t)&&e(null,...n))})}),()=>{Go(()=>{a&&Wg(i(...a),t)&&e(null,...a)})}}),t}function $r(t=!1){let e=At,i=e.l.u;if(!i)return;let o=()=>xc(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&&za(()=>{Kg(e,o),ps(i.b)}),He(()=>{let n=wt(()=>i.m.map(wv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&He(()=>{Kg(e,o),ps(i.a)})}function Kg(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;Rv(e)},set:o=>{i=o}})}};m_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var m_;function Wt(t){At===null&&qa("onMount"),Rr&&At.l!==null?f_(At).m.push(t):He(()=>{let e=wt(t);if(typeof e=="function")return e})}function _n(t){At===null&&qa("onDestroy"),Wt(()=>()=>wt(t))}function f_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Yl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=wt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ja=[];function Jn(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ie){let i=null,o=new Set;function n(d){if(La(t,d)&&(t=d,i)){let l=!Ja.length;for(let p of o)p[1](),Ja.push(p,t);if(l){for(let p=0;p<Ja.length;p+=2)Ja[p][0](Ja[p+1]);Ja.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 wi(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 Jn(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)=>Yl(w,C=>{p[y]=C,m&=~(1<<y),l&&u()},()=>{m|=1<<y}));return l=!0,u(),function(){ps(_),b(),l=!1}})}function Ce(t){let e;return Yl(t,i=>e=i)(),e}var Vc=!1,Pp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Yr(void 0),unsubscribe:ie};if(o.store!==t&&!(Pp 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=Yl(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&Pp in i?Ce(t):r(o.source)}function Re(){let t={};function e(){tn(()=>{for(var i in t)t[i].unsubscribe();ao(t,Pp,{enumerable:!1,value:!0})})}return[t,e]}function Ap(t){var e=Vc;try{return Vc=!1,[t(),Vc]}finally{Vc=e}}var y_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&Vv(`${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},y_)}var x_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(us(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];us(n)&&(n=n());let a=En(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(us(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=En(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Fo||e===kl)return!1;for(let i of t.props)if(us(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){us(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ts(...t){return new Proxy({props:t},x_)}function Qg(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=!Rr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=Ap(()=>t[e]):p=t[e];var m=Fo in t||kl in t,b=s&&((Q=(q=En(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=wt(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:hr)(()=>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=Yr(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=Va),function(H,Y){if(Ml!==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),Qg(V))return H;wt(()=>r(V))}return H}return Qg(V)?V.v:r(V)}}var w_;typeof HTMLElement=="function"&&(w_=class extends HTMLElement{constructor(e,i,o){super();kn(this,"$$ctor");kn(this,"$$s");kn(this,"$$c");kn(this,"$$cn",!1);kn(this,"$$d",{});kn(this,"$$r",!1);kn(this,"$$p_d",{});kn(this,"$$l",{});kn(this,"$$l_u",new Map);kn(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=S_(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]=Mp(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(()=>{yo(()=>{var a;this.$$r=!0;for(let s of Fu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Mp(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]=Mp(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 Fu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Mp(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 S_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Gg="5";var jg,Yg,Zg;typeof window!="undefined"&&((Zg=(Yg=(jg=window.__svelte)!=null?jg:window.__svelte={}).v)!=null?Zg:Yg.v=new Set).add(Gg);var xu=require("@vkontakte/videoplayer-core/es2018"),HQ=require("@vkontakte/videoplayer-core/es2018"),wa=require("@vkontakte/videoplayer-shared/es2018"),j1=require("@vkontakte/videoplayer-statistics/es2018");var Gs=require("@vkontakte/videoplayer-shared/es2018");var T_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Gs.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Gs.VideoQuality.Q_480P,highQualityLimit:Gs.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,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}},Xg=t=>(0,Gs.fillWithDefault)(t,T_),Jg=t=>Ka("ui-config",t),Kt=()=>Wa("ui-config");var Zl="vk_player_debug_panel_opened";var eh="videoplayer",th="videoplayer";var Hr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ih=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),oh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),nh=new Set(["ShiftRight","ShiftLeft"]);var rh=["TIMELINE"],Xl=[...rh,"GRAPH_BUTTON"],Lp=[...rh,"PLAY_BUTTON"],Jl=[...Xl,"PLAY_BUTTON"];var yr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(yr||{}),Ys={xs:0,s:1,m:2,l:3,xl:4};var ed=require("@vkontakte/videoplayer-shared/es2018"),sh=require("@vkontakte/videoplayer-core/es2018"),ah=require("@vkontakte/videoplayer-statistics/es2018");var Rc="prod",Zs="1.1.64-beta.0";var Xs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var lh=Symbol("storeContext"),dh=Symbol("microStoresContext"),ch=(t,e)=>{Ka(lh,t),Ka(dh,e),Rc==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=Wa(lh);return(0,ed.assertNonNullable)(t,"Store context is empty!"),t},fo=()=>{let t=Wa(dh);return(0,ed.assertNonNullable)(t,"MicroStores context is empty!"),t},ei=(t,e)=>Bc(t,t.getValue(),e),Bc=(t,e,i)=>Jn(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),uh=(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=`${Zs} (core: ${sh.VERSION}, stat: ${ah.VERSION}, shared: ${ed.VERSION})`,b=Ce(i.state.errorLog$),u=b.length?`
|
|
49
|
-
`+
|
|
50
|
-
`,
|
|
51
|
-
`,
|
|
52
|
-
`;return
|
|
53
|
-
`):void 0
|
|
54
|
-
`)},ph=(t,e,i)=>{var q,Q,H,Y;let o=t.info,{width:n,height:a}=Ce(i.ui.playerSize),s={version:Zs,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},fh=(t,e)=>Xs(t,e,"mp4"),mh=t=>!t.type,vh=t=>!!t.type,gh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Nc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var Bi=require("@vkontakte/videoplayer-shared/es2018"),jE=require("@vkontakte/videoplayer-core/es2018"),hh="vk_player_prefer_traffic_saving_enabled",_h="vk_player_preferred_volume",bh="vk_player_prefer_volume_mute",Np="vk_player_preferred_quality",Vp="vk_player_preferred_default_quality_settings",Rp="vk_player_preferred_quality_settings_by_video",$h="vk_player_preferred_stream_language",yh="vk_player_preferred_rate",xh="vk_player_preferred_autoplay_next",wh=t=>t>1?1:t<0?0:t,Bp=t=>Bi.safeStorage.set(_h,wh(t).toString(10)),Dc=()=>{let t=Bi.safeStorage.get(_h);return(0,Bi.isNullable)(t)?void 0:wh(parseFloat(t))},Dp=(t,e)=>Bi.safeStorage.set(Np,JSON.stringify({videoId:t,value:e})),id=()=>Bi.safeStorage.remove(Np),Op=t=>{let e=Bi.safeStorage.get(Np);if((0,Bi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){id();return}return o},Hp=(t,e)=>{e?Bi.safeStorage.set(t,"true"):Bi.safeStorage.remove(t)},Fp=t=>Bi.safeStorage.get(t)==="true",Up=t=>Hp(bh,t),Sh=()=>Fp(bh),td=t=>Hp(hh,t),zp=()=>Fp(hh),Ch=()=>Bi.safeStorage.get($h),qp=t=>Bi.safeStorage.set($h,t),Th=t=>Bi.safeStorage.set(yh,JSON.stringify({rate:t})),Ih=()=>{let t=Bi.safeStorage.get(yh);if((0,Bi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},kh=t=>Hp(xh,t),Eh=()=>Fp(xh),I_=()=>{let t=m=>{Bi.safeStorage.set(Vp,JSON.stringify(m))},e=()=>{try{let m=Bi.safeStorage.get(Vp);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=Bi.safeStorage.get(Rp);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{Bi.safeStorage.set(Rp,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=()=>{Bi.safeStorage.remove(Rp)},s=()=>{Bi.safeStorage.remove(Vp)},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":td(!0);break;case"exact_quality":Dp(m,b.quality)}a(),s()}},p=m=>{let b=Op(m);if(b){o({type:"exact_quality",videoId:m,quality:b});return}zp()&&t({type:"traffic_saving",videoId:m}),td(!1),id()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Ph,migrateSettingsToLegacyWay:Ah,savePreferredQualitySettings:Oc,savePreferredDefaultQualitySettings:YE,removePreferredQualitySettingsByVideo:ZE,getPreferredDefaultQualitySettings:Hc}=I_();var Gm=require("@vkontakte/videoplayer-core/es2018");var k_=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 od(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=k_();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)}var el=require("@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,
|
|
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 Hl(t){Pt=t}var ln=null;function Fl(t){ln=t}function qa(t){return fp("getContext").get(t)}function Wa(t,e){let i=fp("setContext");return ke&&wt(()=>cp(e,null,!0)),i.set(t,e),e}function zl(){return fp("getAllContexts")}function U(t,e=!1,i){var o=Pt={p:Pt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Vr&&!e&&(Pt.l={s:null,u:null,r1:[],r2:qi(!1)}),dn(()=>{o.d=!0}),ke&&(Pt.function=i,ln=i)}function z(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=kt,o=Ut;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];oo(a.effect),yo(a.reaction),Cn(a.fn)}}finally{oo(i),yo(o)}}Pt=e.p,ke&&(ln=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Br(){return!Vr||Pt!==null&&Pt.l===null}function fp(t){var e;return Pt===null&&za(t),(e=Pt.c)!=null?e:Pt.c=new Map(V0(Pt)||void 0)}function V0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var R0=/\r/g;function mg(t){t=t.replace(R0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function vg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var B0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function gg(t){return B0.includes(t)}var N0=["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 D0={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 hg(t){var e;return t=t.toLowerCase(),(e=D0[t])!=null?e:t}var Tw=[...N0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var O0=["touchstart","touchmove"];function _g(t){return O0.includes(t)}var H0=["textarea","script","style","title"];function bg(t){return H0.includes(t)}function mp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var $g=new Map;function yg(t,e){var i=$g.get(t);i||(i=new Set,$g.set(t,i)),i.add(e)}function vp(t,e){if(e){let i=document.body;t.autofocus=!0,tn(()=>{document.activeElement===i&&t.focus()})}}function ql(t){var e=Ut,i=kt;yo(null),oo(null);try{return t()}finally{yo(e),oo(i)}}var gp=new Set,kc=new Set;function zs(t){if(!Ge)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 hp(t,e,i,o={}){function n(a){if(o.capture||Ka.call(e,a),!a.cancelBubble)return ql(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?tn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Tt(t,e,i,o,n){var a={capture:o,passive:n},s=hp(t,e,i,a);(e===document.body||e===window||e===document)&&dn(()=>{e.removeEventListener(t,s,a)})}function st(t){for(var e=0;e<t.length;e++)gp.add(t[e]);for(var i of kc)i(t)}function Ka(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.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=Ut,y=kt;yo(null),oo(null);try{for(var u,$=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var b=a["__"+o];if(b!=null&&(!a.disabled||t.target===a))if(gr(b)){var[C,...T]=b;C.apply(a,[t,...T])}else b.call(a,t)}catch(M){u?$.push(M):u=M}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let M of $)queueMicrotask(()=>{throw M});throw u}}finally{t.__root=e,delete t.currentTarget,yo(m),oo(y)}}}var U0;function xg(){U0=void 0}function Qa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function So(t,e){var i=kt;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(Ge)return So(_t,null),_t;n===void 0&&(n=Qa(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;So(d,l)}else So(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(Ge)return So(_t,null),_t;if(!s){var d=Qa(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),y=p.lastChild;So(m,y)}else So(p,p);return p}}function Nr(t=""){if(!Ge){var e=sn(t+"");return So(e,e),e}var i=_t;return i.nodeType!==3&&(i.before(i=sn()),bi(i)),So(i,i),i}function Oe(){if(Ge)return So(_t,null),_t;var t=document.createDocumentFragment(),e=document.createComment(""),i=sn();return t.append(e,i),So(e,i),t}function _(t,e){if(Ge){kt.nodes_end=_t,Di();return}t!==null&&t.before(e)}var Wl=!0;function Ec(t){Wl=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 Jr(t,e){return Sg(t,e)}function bp(t,e){var s;gc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ge,n=_t;try{for(var a=$i(i);a&&(a.nodeType!==8||a.data!==ds);)a=Po(a);if(!a)throw Wr;ro(!0),bi(a),Di();let d=Sg(t,{...e,anchor:a});if(_t===null||_t.nodeType!==8||_t.data!==Ls)throw Os(),Wr;return ro(!1),d}catch(d){if(d===Wr)return e.recover===!1&&Mv(),gc(),Rl(i),ro(!1),Jr(t,e);throw d}finally{ro(o),bi(n),xg()}}var Ga=new Map;function Sg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){gc();var d=new Set,l=y=>{for(var u=0;u<y.length;u++){var $=y[u];if(!d.has($)){d.add($);var w=_g($);e.addEventListener($,Ka,{passive:w});var b=Ga.get($);b===void 0?(document.addEventListener($,Ka,{passive:w}),Ga.set($,1)):Ga.set($,b+1)}}};l(El(gp)),kc.add(l);var p=void 0,m=ug(()=>{var y=i!=null?i:e.appendChild(sn());return Wi(()=>{if(a){U({});var u=Pt;u.c=a}n&&(o.$$events=n),Ge&&So(y,null),Wl=s,p=t(y,o)||{},Wl=!0,Ge&&(kt.nodes_end=_t),a&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,Ka);var $=Ga.get(u);--$===0?(document.removeEventListener(u,Ka),Ga.delete(u)):Ga.set(u,$)}kc.delete(l),y!==i&&((w=y.parentNode)==null||w.removeChild(y))}});return _p.set(p,m),p}var _p=new WeakMap;function qs(t,e){let i=_p.get(t);return i?(_p.delete(t),i(e)):(ke&&Gv(),Promise.resolve())}function B(t,e,[i,o]=[0,0]){Ge&&i===0&&Di();var n=t,a=null,s=null,d=Mi,l=i>0?65536:0,p=!1;let m=(u,$=!0)=>{p=!0,y($,u)},y=(u,$)=>{if(d===(d=u))return;let w=!1;if(Ge&&o!==-1){if(i===0){let C=n.data;C===ds?o=0:C===Ms?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let b=o>i;!!d===b&&(n=Da(),bi(n),ro(!1),w=!0,o=-1)}d?(a?Xr(a):$&&(a=Wi(()=>$(n))),s&&Tn(s,()=>{s=null})):(s?Xr(s):$&&(s=Wi(()=>$(n,[i+1,o]))),a&&Tn(a,()=>{a=null})),w&&ro(!0)};so(()=>{p=!1,e(m),p||y(null,null)},l),Ge&&(n=_t)}function Ws(t,e,i){Ge&&Di();var o=t,n=Mi,a,s=Br()?Tv:Ma;so(()=>{s(n,n=e())&&(a&&Tn(a),a=Wi(()=>i(o)))}),Ge&&(o=_t)}var ms=null;function xp(t){ms=t}function Kl(t,e){return e}function K0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Cc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Rl(l),l.append(i),o.clear(),fs(t,e[0].prev,e[a-1].next)}dp(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 Ti(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=Ge?bi($i(p)):p.appendChild(sn())}Ge&&Di();var m=null,y=!1,u=br(()=>{var $=i();return gr($)?$:$==null?[]:El($)});so(()=>{var $=r(u),w=$.length;if(y&&w===0)return;y=w===0;let b=!1;if(Ge){var C=s.data===Ms;C!==(w===0)&&(s=Da(),bi(s),ro(!1),b=!0)}if(Ge){for(var T=null,I,M=0;M<w;M++){if(_t.nodeType===8&&_t.data===Ls){s=_t,b=!0,ro(!1);break}var P=$[M],k=o(P,M);I=Ig(_t,d,T,null,P,k,M,n,e,i),d.items.set(k,I),T=I}w>0&&bi(Da())}Ge||Q0($,d,s,n,e,o,i),a!==null&&(w===0?m?Xr(m):m=Wi(()=>a(s)):m!==null&&Tn(m,()=>{m=null})),b&&ro(!0),r(u)}),Ge&&(s=_t)}function Q0(t,e,i,o,n,a,s){var le,Ae,Me,ge;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,m=e.items,y=e.first,u=y,$,w=null,b,C=[],T=[],I,M,P,k;if(d)for(k=0;k<p;k+=1)I=t[k],M=a(I,k),P=m.get(M),P!==void 0&&((le=P.a)==null||le.measure(),(b!=null?b:b=new Set).add(P));for(k=0;k<p;k+=1){if(I=t[k],M=a(I,k),P=m.get(M),P===void 0){var V=u?u.e.nodes_start:i;w=Ig(V,e,w,w===null?e.first:w.next,I,M,k,o,n,s),m.set(M,w),C=[],T=[],u=w.next;continue}if(l&&G0(P,I,k,n),(P.e.f&8192)!==0&&(Xr(P.e),d&&((Ae=P.a)==null||Ae.unfix(),(b!=null?b:b=new Set).delete(P))),P!==u){if($!==void 0&&$.has(P)){if(C.length<T.length){var W=T[0],Y;w=W.prev;var F=C[0],Q=C[C.length-1];for(Y=0;Y<C.length;Y+=1)Cg(C[Y],W,i);for(Y=0;Y<T.length;Y+=1)$.delete(T[Y]);fs(e,F.prev,Q.next),fs(e,w,F),fs(e,Q,W),u=W,w=Q,k-=1,C=[],T=[]}else $.delete(P),Cg(P,u,i),fs(e,P.prev,P.next),fs(e,P,w===null?e.first:w.next),fs(e,w,P),w=P;continue}for(C=[],T=[];u!==null&&u.k!==M;)(u.e.f&8192)===0&&($!=null?$:$=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;P=u}C.push(P),w=P,u=P.next}if(u!==null||$!==void 0){for(var ie=$===void 0?[]:El($);u!==null;)(u.e.f&8192)===0&&ie.push(u),u=u.next;var Z=ie.length;if(Z>0){var re=(n&4)!==0&&p===0?i:null;if(d){for(k=0;k<Z;k+=1)(Me=ie[k].a)==null||Me.measure();for(k=0;k<Z;k+=1)(ge=ie[k].a)==null||ge.fix()}K0(e,ie,re,m)}}d&&tn(()=>{var se;if(b!==void 0)for(P of b)(se=P.a)==null||se.apply()}),kt.first=e.first&&e.first.e,kt.last=w&&w.e}function G0(t,e,i,o){(o&1)!==0&&Ra(t.v,e),(o&2)!==0?Ra(t.i,i):t.i=i}function Ig(t,e,i,o,n,a,s,d,l,p){var m=ms,y=(l&1)!==0,u=(l&16)===0,$=y?u?jr(n):qi(n):n,w=(l&2)===0?s:qi(s);ke&&y&&($.debug=()=>{var C=typeof w=="number"?s:w.v;p()[C]});var b={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};ms=b;try{return b.e=Wi(()=>d(t,$,w,p),Ge),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{ms=m}}function Cg(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 Y0(t,e,i){var a,s;if(!e||e===mg(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=ln)!=null&&s[_i]&&(o=`in ${ln[_i]}`),Qv(mp(o))}function Ql(t,e,i,o,n){var a=t,s="",d;so(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ge&&Di();return}d!==void 0&&(no(d),d=void 0),s!==""&&(d=Wi(()=>{if(Ge){for(var p=_t.data,m=Di(),y=m;m!==null&&(m.nodeType!==8||m.data!=="");)y=m,m=Po(m);if(m===null)throw Os(),Wr;ke&&!n&&Y0(m.parentNode,p,s),So(_t,y),a=bi(m);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var $=Qa(u);if((i||o)&&($=$i($)),So($i($),$.lastChild),i||o)for(;$i($);)a.before($i($));else a.before($)}))})}function ve(t,e,...i){var o=t,n=te,a;so(()=>{n!==(n=e())&&(a&&(no(a),a=null),ke&&n==null&&Lv(),a=Wi(()=>n(o,...i)))},65536),Ge&&(o=_t)}function Ii(t,e,i){Ge&&Di();var o=t,n,a;so(()=>{n!==(n=e())&&(a&&(Tn(a),a=null),n&&(a=Wi(()=>i(o,n))))},65536),Ge&&(o=_t)}function Ks(t,e,i,o,n,a){var w;let s=Ge;Ge&&Di();var d=ke&&a&&((w=Pt)==null?void 0:w.function[_i]),l,p,m=null;Ge&&_t.nodeType===1&&(m=_t,Di());var y=Ge?_t:t,u,$=ms;so(()=>{let b=e()||null;var C=n?n():i||b==="svg"?Fu:null;if(b!==l){var T=ms;xp($),u&&(b===null?Tn(u,()=>{u=null,p=null}):b===p?Xr(u):(no(u),Ec(!1))),b&&b!==p&&(u=Wi(()=>{if(m=Ge?m:C?document.createElementNS(C,b):document.createElement(b),ke&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),So(m,m),o){Ge&&bg(b)&&m.append(document.createComment(""));var I=Ge?$i(m):m.appendChild(sn());Ge&&(I===null?ro(!1):bi(I)),o(m,I)}kt.nodes_end=m,y.before(m)})),l=b,l&&(p=l),Ec(!0),xp(T)}},65536),s&&(ro(!0),bi(y))}var Sp;function kg(t){return Sp=t.target,new wp(t)}var es,sr,wp=class{constructor(e){ls(this,es);ls(this,sr);var a,s;var i=new Map,o=(d,l)=>{var p=jr(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===kl?!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)}});Aa(this,sr,(e.hydrate?bp:Jr)(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)&&Fa(),Aa(this,es,n.$$events);for(let d of Object.keys(Ai(this,sr)))d==="$set"||d==="$destroy"||d==="$on"||io(this,d,{get(){return Ai(this,sr)[d]},set(l){Ai(this,sr)[d]=l},enumerable:!0});Ai(this,sr).$set=d=>{Object.assign(n,d)},Ai(this,sr).$destroy=()=>{qs(Ai(this,sr))}}$set(e){Ai(this,sr).$set(e)}$on(e,i){Ai(this,es)[e]=Ai(this,es)[e]||[];let o=(...n)=>i.call(this,...n);return Ai(this,es)[e].push(o),()=>{Ai(this,es)[e]=Ai(this,es)[e].filter(n=>n!==o)}}$destroy(){Ai(this,sr).$destroy()}};es=new WeakMap,sr=new WeakMap;function K(t,e){tn(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=Sp)==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&&yg(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 Pg(){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 Gl(t){return typeof t=="object"?Pg(t):t!=null?t:""}var Ag=[...`
|
|
48
|
+
\r\f\xA0\v\uFEFF`];function Lg(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||Ag.includes(o[s-1]))&&(d===o.length||Ag.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Mg(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 Cp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Vg(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(Cp)),n&&l.push(...Object.keys(n).map(Cp));var p=0,m=-1;let b=t.length;for(var y=0;y<b;y++){var u=t[y];if(d?u==="/"&&t[y-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[y+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&m===-1)m=y;else if(u===";"||y===b-1){if(m!==-1){var $=Cp(t.substring(p,m).trim());if(!l.includes($)){u!==";"&&y++;var w=t.substring(p,y).trim();i+=" "+w+";"}}p=y+1,m=-1}}}}return o&&(i+=Mg(o)),n&&(i+=Mg(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(Ge||s!==i){var d=Lg(i,o,a);(!Ge||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 Tp(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 rt(t,e,i,o){var n=t.__style;if(Ge||n!==e){var a=Vg(e,o);(!Ge||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Tp(t,i==null?void 0:i[0],o[0]),Tp(t,i==null?void 0:i[1],o[1],"important")):Tp(t,i,o));return o}var Ya=Symbol("class"),ja=Symbol("style"),Ng=Symbol("is custom element"),Dg=Symbol("is html");function Og(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Be(t,e,i,o){var n=Hg(t);if(Ge&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||i_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[yv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Fg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Te(t,e,i,o,n=!1){var P;var a=Hg(t),s=a[Ng],d=!a[Dg];let l=Ge&&s;l&&ro(!1);var p=e||{},m=t.tagName==="OPTION";for(var y in e)y in i||(i[y]=null);i.class?i.class=Gl(i.class):(o||i[Ya])&&(i.class=null),i[ja]&&((P=i.style)!=null||(i.style=null));var u=Fg(t);for(let k in i){let V=i[k];if(m&&k==="value"&&V==null){t.value=t.__value="",p[k]=V;continue}if(k==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,V,o,e==null?void 0:e[Ya],i[Ya]),p[k]=V,p[Ya]=i[Ya];continue}if(k==="style"){rt(t,V,e==null?void 0:e[ja],i[ja]),p[k]=V,p[ja]=i[ja];continue}var w=p[k];if(V!==w){p[k]=V;var b=k[0]+k[1];if(b!=="$$")if(b==="on"){let W={},Y="$$"+k,F=k.slice(2);var C=gg(F);if(vg(F)&&(F=F.slice(0,-7),W.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(F,p[Y],W),p[Y]=null}if(V!=null)if(C)t[`__${F}`]=V,st([F]);else{let Q=function(ie){p[k].call(this,ie)};var M=Q;p[Y]=hp(F,t,Q,W)}else C&&(t[`__${F}`]=void 0)}else if(k==="style")Be(t,k,V);else if(k==="autofocus")vp(t,!!V);else if(!s&&(k==="__value"||k==="value"&&V!=null))t.value=t.__value=V;else if(k==="selected"&&m)Og(t,V);else{var T=k;d||(T=hg(T));var I=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!I)if(a[k]=null,T==="value"||T==="checked"){let W=t,Y=e===void 0;if(T==="value"){let F=W.defaultValue;W.removeAttribute(T),W.defaultValue=F,W.value=W.__value=Y?F:null}else{let F=W.defaultChecked;W.removeAttribute(T),W.defaultChecked=F,W.checked=Y?F:!1}}else t.removeAttribute(k);else I||u.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&Be(t,T,V,n)}}}return l&&ro(!0),p}function Hg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Ng]:t.nodeName.includes("-"),[Dg]:t.namespaceURI===hv}}var Rg=new Map;function Fg(t){var e=Rg.get(t.nodeName);if(e)return e;Rg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=cc(o);for(var a in i)i[a].set&&e.push(a);o=Qr(o)}return e}function i_(t,e,i){var o;ke&&(e==="srcset"&&o_(t,i)||Ip((o=t.getAttribute(e))!=null?o:"",i)||Kv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Ip(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Bg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function o_(t,e){var i=Bg(t.srcset),o=Bg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Ip(i[s][0],n)||Ip(n,i[s][0])))}var n_=dc?()=>performance.now():()=>Date.now(),yr={tick:t=>(dc?requestAnimationFrame:te)(t),now:()=>n_(),tasks:new Set};function Ug(){let t=yr.now();yr.tasks.forEach(e=>{e.c(t)||(yr.tasks.delete(e),e.f())}),yr.tasks.size!==0&&yr.tick(Ug)}function zg(t){let e;return yr.tasks.size===0&&yr.tick(Ug),{promise:new Promise(i=>{yr.tasks.add(e={c:t,f:i})}),abort(){yr.tasks.delete(e)}}}function Pc(t,e){ql(()=>{t.dispatchEvent(new CustomEvent(e))})}function l_(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 qg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=l_(n.trim());e[s]=a.trim()}return e}var d_=t=>t;function Ep(t,e,i,o){var M;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,y=e.style.overflow,u,$;function w(){var V;var P=Ut,k=kt;yo(null),oo(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{yo(P),oo(k)}}var b={is_global:d,in(){var P;if(e.inert=m,!n){$==null||$.abort(),(P=$==null?void 0:$.reset)==null||P.call($);return}a||u==null||u.abort(),Pc(e,"introstart"),u=kp(e,w(),$,1,()=>{Pc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=y})},out(P){if(!a){P==null||P(),p=void 0;return}e.inert=!0,Pc(e,"outrostart"),$=kp(e,w(),u,0,()=>{Pc(e,"outroend"),P==null||P()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},C=kt;if(((M=C.transitions)!=null?M:C.transitions=[]).push(b),n&&Wl){var T=d;if(!T){for(var I=C.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&Cn(()=>{wt(()=>b.in())})}}function kp(t,e,i,o,n){var a=o===1;if(cs(e)){var s,d=!1;return tn(()=>{if(!d){var C=e({direction:a?"in":"out"});s=kp(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:te,deactivate:te,reset:te,t:()=>o};let{delay:l=0,css:p,tick:m,easing:y=d_}=e;var u=[];if(a&&i===void 0&&(m&&m(0,1),p)){var $=qg(p(0,1));u.push($,$)}var w=()=>1-o,b=t.animate(u,{duration:l});return b.onfinish=()=>{var F;var C=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var T=o-C,I=e.duration*Math.abs(T),M=[];if(I>0){var P=!1;if(p)for(var k=Math.ceil(I/16.666666666666668),V=0;V<=k;V+=1){var W=C+T*y(V/k),Y=qg(p(W,1-W));M.push(Y),P||(P=Y.overflow==="hidden")}P&&(t.style.overflow="hidden"),w=()=>{var Q=b.currentTime;return C+T*y(Q/I)},m&&zg(()=>{if(b.playState!=="running")return!1;var Q=w();return m(Q,1-Q),!0})}b=t.animate(M,{duration:I,fill:"forwards"}),b.onfinish=()=>{w=()=>o,m==null||m(o,1-o),n()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=te)},deactivate:()=>{n=te},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>w()}}var vs,Za,Yl,Mc,Wg,Lc=class Lc{constructor(e){ls(this,Mc);ls(this,vs,new WeakMap);ls(this,Za);ls(this,Yl);Aa(this,Yl,e)}observe(e,i){var o=Ai(this,vs).get(e)||new Set;return o.add(i),Ai(this,vs).set(e,o),vv(this,Mc,Wg).call(this).observe(e,Ai(this,Yl)),()=>{var n=Ai(this,vs).get(e);n.delete(i),n.size===0&&(Ai(this,vs).delete(e),Ai(this,Za).unobserve(e))}}};vs=new WeakMap,Za=new WeakMap,Yl=new WeakMap,Mc=new WeakSet,Wg=function(){var e;return(e=Ai(this,Za))!=null?e:Aa(this,Za,new ResizeObserver(i=>{for(var o of i){Lc.entries.set(o.target,o);for(var n of Ai(this,vs).get(o.target)||[])n(o)}}))},Bn(Lc,"entries",new WeakMap);var Pp=Lc;var p_=new Pp({box:"border-box"});function Dr(t,e,i){var o=p_.observe(t,()=>i(t[e]));Cn(()=>(wt(()=>i(t[e])),o))}function Kg(t,e){return t===e||(t==null?void 0:t[Oo])===e}function vt(t={},e,i,o){return Cn(()=>{var n,a;return wo(()=>{n=a,a=(o==null?void 0:o())||[],wt(()=>{t!==i(...a)&&(e(t,...a),n&&Kg(i(...n),t)&&e(null,...n))})}),()=>{tn(()=>{a&&Kg(i(...a),t)&&e(null,...a)})}}),t}function xr(t=!1){let e=Pt,i=e.l.u;if(!i)return;let o=()=>xc(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&&Ua(()=>{Qg(e,o),us(i.b)}),Fe(()=>{let n=wt(()=>i.m.map(Sv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Fe(()=>{Qg(e,o),us(i.a)})}function Qg(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;Bv(e)},set:o=>{i=o}})}};m_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var m_;function zt(t){Pt===null&&za("onMount"),Vr&&Pt.l!==null?f_(Pt).m.push(t):Fe(()=>{let e=wt(t);if(typeof e=="function")return e})}function In(t){Pt===null&&za("onDestroy"),zt(()=>()=>wt(t))}function f_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function jl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),te;let o=wt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Xa=[];function ar(t,e){return{subscribe:ce(t,e).subscribe}}function ce(t,e=te){let i=null,o=new Set;function n(d){if(Ma(t,d)&&(t=d,i)){let l=!Xa.length;for(let p of o)p[1](),Xa.push(p,t);if(l){for(let p=0;p<Xa.length;p+=2)Xa[p][0](Xa[p+1]);Xa.length=0}}}function a(d){n(d(t))}function s(d,l=te){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||te),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 ar(i,(s,d)=>{let l=!1,p=[],m=0,y=te,u=()=>{if(m)return;y();let w=e(o?p[0]:p,s,d);a?s(w):y=typeof w=="function"?w:te},$=n.map((w,b)=>jl(w,C=>{p[b]=C,m&=~(1<<b),l&&u()},()=>{m|=1<<b}));return l=!0,u(),function(){us($),y(),l=!1}})}function Se(t){let e;return jl(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:jr(void 0),unsubscribe:te};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=te;else{var n=!0;o.unsubscribe=jl(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&Ap in i?Se(t):r(o.source)}function Ne(){let t={};function e(){dn(()=>{for(var i in t)t[i].unsubscribe();io(t,Ap,{enumerable:!1,value:!0})})}return[t,e]}function Mp(t){var e=Vc;try{return Vc=!1,[t(),Vc]}finally{Vc=e}}var y_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Rv(`${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(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},y_)}var x_={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=Nn(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=Nn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Oo||e===kl)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 ts(...t){return new Proxy({props:t},x_)}function Gg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var W,Y;var n=(i&1)!==0,a=!Vr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=Mp(()=>t[e]):p=t[e];var m=Oo in t||kl in t,y=s&&((Y=(W=Nn(t,e))==null?void 0:W.set)!=null?Y:m&&e in t&&(F=>t[e]=F))||void 0,u=o,$=!0,w=!1,b=()=>(w=!0,$&&($=!1,d?u=wt(o):u=o),u);p===void 0&&o!==void 0&&(y&&a&&Vv(e),p=b(),y&&y(p));var C;if(a)C=()=>{var F=t[e];return F===void 0?b():($=!0,w=!1,F)};else{var T=(n?v:br)(()=>t[e]);T.f|=131072,C=()=>{var F=r(T);return F!==void 0&&(u=void 0),F===void 0?u:F}}if((i&4)===0)return C;if(y){var I=t.$$legacy;return function(F,Q){return arguments.length>0?((!a||!Q||I||l)&&y(Q?C():F),F):C()}}var M=!1,P=!1,k=jr(p),V=v(()=>{var F=C(),Q=r(k);return M?(M=!1,P=!0,Q):(P=!1,k.v=F)});return s&&r(V),n||(V.equals=La),function(F,Q){if(Ml!==null&&(M=P,C(),r(k)),arguments.length>0){let ie=Q?r(V):a&&s?pe(F):F;if(!V.equals(ie)){if(M=!0,D(k,ie),w&&u!==void 0&&(u=ie),Gg(V))return F;wt(()=>r(V))}return F}return Gg(V)?V.v:r(V)}}var w_;typeof HTMLElement=="function"&&(w_=class extends HTMLElement{constructor(e,i,o){super();Bn(this,"$$ctor");Bn(this,"$$s");Bn(this,"$$c");Bn(this,"$$cn",!1);Bn(this,"$$d",{});Bn(this,"$$r",!1);Bn(this,"$$p_d",{});Bn(this,"$$l",{});Bn(this,"$$l_u",new Map);Bn(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=S_(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]=Lp(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=kg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Sc(()=>{wo(()=>{var a;this.$$r=!0;for(let s of Uu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Lp(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]=Lp(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 Uu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Lp(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 S_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Yg="5";var jg,Zg,Xg;typeof window!="undefined"&&((Xg=(Zg=(jg=window.__svelte)!=null?jg:window.__svelte={}).v)!=null?Xg:Zg.v=new Set).add(Yg);var wu=require("@vkontakte/videoplayer-core/es2018"),UQ=require("@vkontakte/videoplayer-core/es2018"),xa=require("@vkontakte/videoplayer-shared/es2018"),Y1=require("@vkontakte/videoplayer-statistics/es2018");var Qs=require("@vkontakte/videoplayer-shared/es2018");var T_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Qs.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Qs.VideoQuality.Q_480P,highQualityLimit:Qs.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,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,usePuid:!0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null}},Jg=t=>(0,Qs.fillWithDefault)(t,T_),eh=t=>Wa("ui-config",t),qt=()=>qa("ui-config");var Zl="vk_player_debug_panel_opened";var th="videoplayer",ih="videoplayer";var Or={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},oh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),nh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),rh=new Set(["ShiftRight","ShiftLeft"]);var sh=["TIMELINE"],Xl=[...sh,"GRAPH_BUTTON"],Vp=[...sh,"PLAY_BUTTON"],Jl=[...Xl,"PLAY_BUTTON"];var wr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(wr||{}),Ys={xs:0,s:1,m:2,l:3,xl:4};var ed=require("@vkontakte/videoplayer-shared/es2018"),ah=require("@vkontakte/videoplayer-core/es2018"),lh=require("@vkontakte/videoplayer-statistics/es2018");var Rc="prod",js="1.1.64-dev.095ddfcb.0";var Zs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var dh=Symbol("storeContext"),ch=Symbol("microStoresContext"),uh=(t,e)=>{Wa(dh,t),Wa(ch,e),Rc==="dev"&&(window.app={store:t,microStores:e})},Ce=()=>{let t=qa(dh);return(0,ed.assertNonNullable)(t,"Store context is empty!"),t},ao=()=>{let t=qa(ch);return(0,ed.assertNonNullable)(t,"MicroStores context is empty!"),t},Jt=(t,e)=>Nc(t,t.getValue(),e),Nc=(t,e,i)=>ar(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),ph=(t,e,i,o)=>{var P,k,V,W,Y,F;let n=t.info,{width:a,height:s}=Se(i.ui.playerSize),d=(k=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?k:0,l=(W=(V=n.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?W:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${js} (core: ${ah.VERSION}, stat: ${lh.VERSION}, shared: ${ed.VERSION})`,y=Se(i.state.errorLog$),u=y.length?`
|
|
49
|
+
`+y.map((Q,ie)=>{var Ae;let Z=`${ie}) Type: ${Q.id}
|
|
50
|
+
`,re=`Message: ${Q.message} (${Q.thrown})
|
|
51
|
+
`,le=`Trace: ${(Ae=Q.thrown)==null?void 0:Ae.stack}
|
|
52
|
+
`;return Z+re+le}).join(`
|
|
53
|
+
`):void 0,$=i.state.isAudioDisabled?"disabled":Se(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),b=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(Y=w==null?void 0:w.codec)!=null?Y:""}`+(w!=null&&w.hdr?" (HDR)":"")),b&&C.push(`Audio: ${(F=b==null?void 0:b.codec)!=null?F:""}`+(b!=null&&b.language?` (${b.language})`:""));let T=n.currentQuality$.getValue(),I="";if(T){let Q=n.availableQualitiesFps$.getValue()[T];I=Q?`${Q}fps`:""}let M={Version:m,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:Se(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} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:$,Position:`${Se(i.state.positionExact$)}s`,State:`${Se(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${s}`,URL:window.location.href,Errors:u};return Object.entries(M).filter(([Q,ie])=>ie!==void 0).map(([Q,ie])=>`${Q}: ${ie}`).join(`
|
|
54
|
+
`)},fh=(t,e,i)=>{var W,Y,F,Q;let o=t.info,{width:n,height:a}=Se(i.ui.playerSize),s={version:js,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(),y=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();m&&(y&&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 b=o.liveLatency$.getValue();b&&(s.liveLatency=b);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let I=Se(i.vsid);typeof I=="string"&&(s.vsid=I);let M=(W=t.info.currentVideoStream$.getValue())==null?void 0:W.codec;M&&(s.videoCodec=M);let P=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.codec;P&&(s.audioCodec=P),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(s.hdr=!0);let V=(Q=t.info.currentAudioStream$.getValue())==null?void 0:Q.language;return V&&(s.audioLanguage=V),s},mh=(t,e)=>Zs(t,e,"mp4"),vh=t=>!t.type,gh=t=>!!t.type,hh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Bc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var Li=require("@vkontakte/videoplayer-shared/es2018"),YE=require("@vkontakte/videoplayer-core/es2018"),_h="vk_player_prefer_traffic_saving_enabled",bh="vk_player_preferred_volume",$h="vk_player_prefer_volume_mute",Np="vk_player_preferred_quality",Rp="vk_player_preferred_default_quality_settings",Bp="vk_player_preferred_quality_settings_by_video",yh="vk_player_preferred_stream_language",xh="vk_player_preferred_rate",wh="vk_player_preferred_autoplay_next",Sh=t=>t>1?1:t<0?0:t,Dp=t=>Li.safeStorage.set(bh,Sh(t).toString(10)),Dc=()=>{let t=Li.safeStorage.get(bh);return(0,Li.isNullable)(t)?void 0:Sh(parseFloat(t))},Op=(t,e)=>Li.safeStorage.set(Np,JSON.stringify({videoId:t,value:e})),id=()=>Li.safeStorage.remove(Np),Hp=t=>{let e=Li.safeStorage.get(Np);if((0,Li.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){id();return}return o},Fp=(t,e)=>{e?Li.safeStorage.set(t,"true"):Li.safeStorage.remove(t)},Up=t=>Li.safeStorage.get(t)==="true",zp=t=>Fp($h,t),Ch=()=>Up($h),td=t=>Fp(_h,t),qp=()=>Up(_h),Th=()=>Li.safeStorage.get(yh),Wp=t=>Li.safeStorage.set(yh,t),Ih=t=>Li.safeStorage.set(xh,JSON.stringify({rate:t})),kh=()=>{let t=Li.safeStorage.get(xh);if((0,Li.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Eh=t=>Fp(wh,t),Ph=()=>Up(wh),I_=()=>{let t=m=>{Li.safeStorage.set(Rp,JSON.stringify(m))},e=()=>{try{let m=Li.safeStorage.get(Rp);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=Li.safeStorage.get(Bp);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{Li.safeStorage.set(Bp,JSON.stringify(m))},n=m=>{p(m);let y=m?i():null;if(y&&(y==null?void 0:y.videoId)===m)return{...y,appliesTo:"to-video"};y&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Li.safeStorage.remove(Bp)},s=()=>{Li.safeStorage.remove(Rp)},d=(m,y="as-default")=>{m.type==="exact_quality"?o(m):y==="as-default"?t(m):o(m)},l=m=>{let y=n(m);if(y){switch(y.type){case"traffic_saving":td(!0);break;case"exact_quality":Op(m,y.quality)}a(),s()}},p=m=>{let y=Hp(m);if(y){o({type:"exact_quality",videoId:m,quality:y});return}qp()&&t({type:"traffic_saving",videoId:m}),td(!1),id()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Ah,migrateSettingsToLegacyWay:Mh,savePreferredQualitySettings:Oc,savePreferredDefaultQualitySettings:jE,removePreferredQualitySettingsByVideo:ZE,getPreferredDefaultQualitySettings:Hc}=I_();var Ym=require("@vkontakte/videoplayer-core/es2018");var k_=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 od(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=k_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>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})),_(t,o)}var Ja=require("@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}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_volume:"\u0417\u0432\u0443\u043A",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",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`},Lh=E_;var P_={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}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume_on:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_volume:"Volume",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",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=A_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Fc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=L_.exec(i[a]))n={filename:o[2],function:o[1]||Fc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=M_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Fc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Fc),e.push(n)}return e.length?{value:
|
|
60
|
-
`).filter(i=>!!i)[0]}function B_(t){try{let e=N_(t);if(e)return e}catch(e){}return{value:Rh(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 Uc=class{constructor(e){if(e&&e.dsn){let i=R_.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:[B_(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(V_,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 Nh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function O_(){return window}var zc=class t extends Uc{constructor(e,i=O_()){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=>Nh(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=>Nh(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}};var Js=require("@vkontakte/videoplayer-shared/es2018");var qc=null,ea=class{constructor(e,i,o={}){!qc&&e.dsn&&(this.sentryClient=new zc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Js.Subscription,this.options=e,this.context=o,qc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),qc=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((0,Js.isNonNullable)(_)&&b.includes(_)||(0,Js.isNonNullable)(u)&&m.includes(u))return;if(Math.random()<=d||(0,Js.isNonNullable)(_)&&p.includes(_)||(0,Js.isNonNullable)(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?tl.fatal:tl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return qc}};var Fr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Fr||{});var Wc=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(),Bh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},nd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},hs=()=>!!nd(),Qc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Gc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Dh=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var Gp=require("@vkontakte/videoplayer-core/es2018"),Oh=()=>({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:Gp.clientChecker.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:Gp.clientChecker.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});var il=require("@vkontakte/videoplayer-shared/es2018");var ta=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,il.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new il.ValueSubject(!1),isEnabled$:new il.ValueSubject(!1),type:0};this.info.isEnabled$=new il.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.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 ia(t){return t instanceof ta}var ol=require("@vkontakte/videoplayer-shared/es2018");Hv();function Zp(t,e){U(e,!1);let i=Te();Wt(()=>{i.getAdmanWrapper().startPostroll()}),$r(),z()}var Hh=require("@vkontakte/videoplayer-shared/es2018");var H_=(t,e)=>{t.stopPropagation(),e()()},F_=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>'),U_=L("<div><!></div>"),z_={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 Xp(t,e){U(e,!0),W(t,z_);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,Hh.noop),p=Te().ui.isMobile,m=v(()=>a()>0&&a()>=s());var b=U_();let u;var _=h(b);{var w=C=>{var T=F_();T.__click=[H_,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=Dr();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()}at(["click"]);var q_=L('<button class="svelte-1wy3dql"> </button>'),W_={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 Jp(t,e){U(e,!1),W(t,W_),$r();var i=q_(),o=h(i,!0);g(i),E(n=>ve(o,n),[()=>F("visit_advertiser")],hr),$(t,i),z()}var K_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),Q_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),G_={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.`},Vh=P_;var is=new Map;is.set(Ja.InterfaceLanguage.EN,Vh);is.set(Ja.InterfaceLanguage.RU,Lh);var Rh=new Map,Kp=({language:t,pack:e,fallback:i})=>{if(is.has(t)){let o=is.get(t);is.set(t,{...o,...e})}else is.set(t,e);Rh.set(t,i)},Qp=t=>is.has(t),Gp=(t,e,i,o)=>{var s;let n=is.get(t),a=n==null?void 0:n[e];if((0,Ja.isNullable)(a)){let d=(s=Rh.get(t))!=null?s:o,l=d?is.get(d):void 0;a=l==null?void 0:l[e]}return(0,Ja.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var p;return(p=i[l])!=null?p:""}):a},q=(t,e)=>{let{interfaceLanguage$:i}=Ce(),o=Se(i),n=qt();return Gp(o,t,e,n.defaultLanguage)};var gP=require("@vkontakte/videoplayer-core/es2018");var el;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(el||(el={}));var A_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,M_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,L_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Fc="?",V_="X-Sentry-Auth",R_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function B_(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=A_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Fc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=L_.exec(i[a]))n={filename:o[2],function:o[1]||Fc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=M_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Fc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Fc),e.push(n)}return e.length?{value:Bh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Bh(t){return(t&&t.message||"No error message").split(`
|
|
60
|
+
`).filter(i=>!!i)[0]}function N_(t){try{let e=B_(t);if(e)return e}catch(e){}return{value:Bh(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 Uc=class{constructor(e){if(e&&e.dsn){let i=R_.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:[N_(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(V_,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 Nh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function O_(){return window}var zc=class t extends Uc{constructor(e,i=O_()){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=>Nh(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=>Nh(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}};var Xs=require("@vkontakte/videoplayer-shared/es2018");var qc=null,Js=class{constructor(e,i,o={}){!qc&&e.dsn&&(this.sentryClient=new zc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Xs.Subscription,this.options=e,this.context=o,qc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),qc=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:y}=s,{errorType:u,category:$}=i;if((0,Xs.isNonNullable)($)&&y.includes($)||(0,Xs.isNonNullable)(u)&&m.includes(u))return;if(Math.random()<=d||(0,Xs.isNonNullable)($)&&p.includes($)||(0,Xs.isNonNullable)(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?el.fatal:el.error),n.report(e)}catch(b){console.error(b)}}}static getInstance(){return qc}};var Hr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Hr||{});var Wc=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(),Dh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},nd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},gs=()=>!!nd(),Qc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Gc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Oh=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var Yp=require("@vkontakte/videoplayer-core/es2018"),Hh=()=>({title:q("hotkey_map_modal_title"),closeBtnText:q("hotkey_map_modal_close_btn_text"),groups:[{title:q("hotkey_map_group_title_common"),items:[{description:q("hotkey_map_item_mute_description"),value:q("hotkey_map_item_mute_value")},{description:q("hotkey_map_item_volume_up_description"),value:q("hotkey_map_item_volume_up_value")},{description:q("hotkey_map_item_volume_down_description"),value:q("hotkey_map_item_volume_down_value")},{description:q("hotkey_map_item_pip_description"),value:q("hotkey_map_item_pip_value")},{description:q("hotkey_map_item_full_screen_description"),value:q("hotkey_map_item_full_screen_value")},{description:q("hotkey_map_item_show_context_menu_description"),value:q("hotkey_map_item_show_context_menu_value")},{description:q("hotkey_map_item_show_hotkey_map_description"),value:q("hotkey_map_item_show_hotkey_map_value")}]},{title:q("hotkey_map_group_title_playback"),items:[{description:q("hotkey_map_item_play_toggle_description"),value:q("hotkey_map_item_play_toggle_value")},{description:q("hotkey_map_item_seek_backward_description"),value:q("hotkey_map_item_seek_backward_value")},{description:q("hotkey_map_item_seek_forward_description"),value:q("hotkey_map_item_seek_forward_value")},{description:q("hotkey_map_item_fast_seek_backward_description"),value:q("hotkey_map_item_fast_seek_backward_value")},{description:q("hotkey_map_item_fast_seek_forward_description"),value:q("hotkey_map_item_fast_seek_forward_value")},{description:q("hotkey_map_item_rate_down_description"),value:q("hotkey_map_item_rate_down_value")},{description:q("hotkey_map_item_rate_up_description"),value:q("hotkey_map_item_rate_up_value")},{description:q("hotkey_map_item_prev_frame_description"),value:q("hotkey_map_item_prev_frame_value")},{description:q("hotkey_map_item_next_frame_description"),value:q("hotkey_map_item_next_frame_value")},{description:q("hotkey_map_item_jump_seek_description"),value:q("hotkey_map_item_jump_seek_value")},{description:q("hotkey_map_item_next_video_description"),value:q("hotkey_map_item_next_video_value")},{description:q("hotkey_map_item_prev_video_description"),value:q("hotkey_map_item_prev_video_value")}]},{title:q("hotkey_map_group_title_subtitles"),items:[{description:q("hotkey_map_item_subtitles_toggle_description"),value:q("hotkey_map_item_subtitles_toggle_value")}]},{title:q("hotkey_map_group_title_episodes"),items:[{description:q("hotkey_map_item_prev_episode_description"),value:Yp.clientChecker.device.isApple?q("hotkey_map_item_prev_episode_mac_value"):q("hotkey_map_item_prev_episode_pc_value")},{description:q("hotkey_map_item_next_episode_description"),value:Yp.clientChecker.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});var tl=require("@vkontakte/videoplayer-shared/es2018");var ea=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,tl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new tl.ValueSubject(!1),isEnabled$:new tl.ValueSubject(!1),type:0};this.info.isEnabled$=new tl.ValueSubject(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 ta(t){return t instanceof ea}var il=require("@vkontakte/videoplayer-shared/es2018");Fv();function Xp(t,e){U(e,!1);let i=Ce();zt(()=>{i.getAdmanWrapper().startPostroll()}),xr(),z()}var Fh=require("@vkontakte/videoplayer-shared/es2018");var H_=(t,e)=>{t.stopPropagation(),e()()},F_=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>'),U_=L("<div><!></div>"),z_={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 Jp(t,e){U(e,!0),K(t,z_);let[i,o]=Ne(),n=()=>S(p,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"secondsToWatchBeforeSkip",3,0),d=f(e,"skipAd",3,Fh.noop),p=Ce().ui.isMobile,m=v(()=>a()>0&&a()>=s());var y=U_();let u;var $=h(y);{var w=C=>{var T=F_();T.__click=[H_,d];var I=h(T);$e(),g(T),E(M=>me(I,`${M!=null?M:""} `),[()=>q("skip_ads_now")]),_(C,T)},b=C=>{var T=Nr();E(I=>me(T,I),[()=>q("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),_(C,T)};B($,C=>{r(m)?C(w):C(b,!1)})}g(y),E(C=>u=J(y,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:r(m)})]),_(t,y),z(),o()}st(["click"]);var q_=L('<button class="svelte-1wy3dql"> </button>'),W_={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 ef(t,e){U(e,!1),K(t,W_),xr();var i=q_(),o=h(i,!0);g(i),E(n=>me(o,n),[()=>q("visit_advertiser")],br),_(t,i),z()}var K_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),Q_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),G_={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.`},Lh=P_;var is=new Map;is.set(el.Interf
|
|
|
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 rd(t,e){U(e,!0),
|
|
70
|
+
);}`};function rd(t,e){U(e,!0),K(t,G_);let[i,o]=Ne(),n=()=>S(Y,"$canSkipAd",i),a=()=>S(W,"$adPlaybackState",i),s=()=>S(I,"$isMobile",i),d=()=>S(F,"$adPosition",i),l=()=>S(Q,"$secondsToWatchBeforeSkipAd",i),p=()=>S(T,"$isVideoEnded",i),m=f(e,"adsSlotId",3,void 0),y=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),b=Ce(),C=qt(),T=b.state.isEnded$,I=b.ui.isMobile,M=C.ads.isMobileGoToSiteButton,P=X(void 0),k=X(void 0),V=!1,W=b.ads.playbackState,Y=b.ads.canSkip,F=b.ads.position,Q=b.ads.secondsToWatchBeforeSkip,ie=v(()=>n()&&a()!=="inactive"),Z=v(()=>s()&&a()!=="inactive"&&M);zt(()=>{var Ve;let _e=b.getAdmanWrapper();if(il.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,il.now)(),m()]}),!m()){_e.onAdmanLoadingError();return}let ze=Ie=>{_e.initAdman(Ie),V=!0},H=new AbortController,ae=()=>{H.abort()},{width:he,height:ee}=Se(b.ui.playerSize),De=Se(b.ui.isFullscreen),Ze=(Ve=$())!=null?Ve:Se(b.ui.isAutoplay),we={width:he,height:ee,isFullscreen:De,isAutoplay:Ze,adsContainer:r(P),adsVideoElement:r(k),slotId:m(),params:y(),previewParam:u(),duration:w()};return window.AdmanHTML?ze(we):_e.loadAdman(H.signal).then(()=>{ze(we)}).catch(()=>{_e.onAdmanLoadingError()}),()=>{il.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,il.now)(),m()]}),!V&&ae()}});var re=Q_(),le=h(re);{var Ae=_e=>{var ze=K_();_(_e,ze)};B(le,_e=>{s()&&_e(Ae)})}var Me=A(le,2);vt(Me,_e=>D(k,_e),()=>r(k));var ge=A(Me,2);{var se=_e=>{Jp(_e,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return b.actions.internal.skipAd}})};B(ge,_e=>{r(ie)&&_e(se)})}var Ee=A(ge,2);{var ne=_e=>{Xp(_e,{})};B(Ee,_e=>{p()&&_e(ne)})}var R=A(Ee,2);{var xe=_e=>{ef(_e,{})};B(R,_e=>{r(Z)&&_e(xe)})}g(re),vt(re,_e=>D(P,_e),()=>r(P)),_(t,re),z(),o()}var cn=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 Y_=ye('<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 tf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Y_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(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 j_=ye('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #FF3347)" rx="5"></rect><path fill="#F2F3F5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function of(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=j_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(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 sd(t,e){let i=f(e,"isActive",3,!1);var o=Oe(),n=ue(o);{var a=d=>{of(d,{})},s=d=>{tf(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}_(t,o)}var Z_=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>'),X_=L('<div class="live-icon svelte-1s15d2i"><!></div>'),J_=L('<span class="text svelte-1s15d2i"> </span>'),eb=L("<div><!> <!></div>"),tb={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.`},Lh=P_;var is=new Map;is.set(el.Interf
|
|
|
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 ad(t,e){
|
|
142
|
-
opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function ld(t,e){U(e,!0),W(t,ob);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=ib();let d;var l=h(s);ad(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 nl=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var jh=require("@vkontakte/videoplayer-core/es2018");var of=require("@vkontakte/videoplayer-core/es2018"),er=t=>{t.stopPropagation(),t.preventDefault()},rb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},sb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},ab=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},lb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Fh=t=>t.code==="Escape",db=t=>t.code==="ArrowLeft",dd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Uh=t=>{if(ab(t)){er(t),sb(t.target);return}lb(t)&&(er(t),rb(t.target))},$s=t=>!of.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||of.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",rl=async(t,e,i)=>{await $o(),t&&!t.classList.contains("opened")&&!e&&Ce(i)&&(await $o(),i.set(!1),t.focus())},zh=async(t,e,i)=>{await $o(),t&&!e&&Ce(i)&&(i.set(!1),t.focus())},sl=async(t,e,i)=>{var n;await $o(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},qh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},jc=(t,e)=>{Uh(t),Fh(t)&&(er(t),e())},Yc=async(t,e)=>{dd(t,["ArrowRight"])&&(er(t),e())},Wh=async(t,e,i)=>{if(Uh(t),db(t)){er(t),e();return}Fh(t)&&(er(t),i())},al=(t,e)=>{dd(t)&&(er(t),e())},Kh=(t,e,i)=>{if(dd(t))er(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),er(t);return}o==="ArrowRight"&&!e&&(i(!0),er(t))}},Qh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Gh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var ra=require("@vkontakte/videoplayer-shared/es2018");var xr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var nf=require("@vkontakte/videoplayer-shared/es2018");var ub=(t,e)=>{al(t,()=>e())},pb=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),fb={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 rf(t,e){U(e,!0),W(t,fb);let i=f(e,"onClick",3,nf.noop),o=f(e,"closeContextMenu",3,nf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=pb();a.__click=n,a.__keydown=[ub,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()}at(["click","keydown"]);var na=(t,e)=>t.weight-e.weight;var ll=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ll||{});var mb=(t,e)=>{jc(t,e)},vb=t=>{t.preventDefault()},gb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),hb={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 sf(t,e){U(e,!0),W(t,hb);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}=fo(),I=Kt(),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 Ze;return I.features.copyVideoLink&&((Ze=P.callbacks)==null?void 0:Ze.onCopyVideoLink)}),Me=v(()=>r(se)&&!n()&&!ce),oe=v(()=>{var Ze;return!!((Ze=P.callbacks)!=null&&Ze.onCopyEmbedCodeClicked)}),B=v(()=>a()&&s()!==jh.ChromecastState.CONNECTED&&!ce),be=v(()=>I.features.videoRotate&&!ce),le=v(()=>I.showSupport&&!d()),Ke=v(()=>I.features.saveTraceInfoToFile),ee=()=>{var Ze;V.set(!1),(Ze=e.returnFocus)==null||Ze.call(e)},me=(Ze,tt)=>{if(!C()||!w()||!y())return;let it=C().getBoundingClientRect(),We=w().getBoundingClientRect();D(T,Ze-We.left),D(k,tt-We.top),r(T)+it.width>We.width&&D(T,We.width-it.width),r(k)+it.height>We.height&&D(k,We.height-it.height),D(T,fe(Math.max(r(T),0))),D(k,fe(Math.max(r(k),0)))};He(()=>{(async()=>{if(C()&&w()&&y()){await $o();let{top:tt,left:it,bottom:We,right:ht}=_(),Ut=it!=null?it:0,Je=tt!=null?tt:0,jt=C().getBoundingClientRect();(0,ra.isNullable)(it)&&!(0,ra.isNullable)(ht)&&(Ut=ht-jt.width),(0,ra.isNullable)(tt)&&!(0,ra.isNullable)(We)&&(Je=We-jt.height),Ut=Math.max(Ut,0),Je=Math.max(Je,0),me(Ut,Je)}})()});let j=()=>{P.actions.internal.videoRotate()},te=()=>{(0,ra.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Oe=()=>{let Ze=P.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let tt=new Blob([...Ze],{type:"plain/text"}),it=window.URL.createObjectURL(tt);Xs(it,"vk_player_debug_info","txt")}else nl(P.actions.internal.getDebugTextData())},je=()=>{let Ze=P.actions.internal.getTraceTextData(),tt=new Blob([...Ze],{type:"application/json"}),it=window.URL.createObjectURL(tt);Xs(it,"vk_player_trace_info","json")},$e=()=>{q.set(!0)},we=async()=>{var Ze;try{Y()}finally{(Ze=e.returnFocus)==null||Ze.call(e)}},Ve=()=>{P.actions.internal.setLooped(!l())},Ye=()=>{var Ze,tt;if(r(oe)){let it=(tt=(Ze=P.callbacks)==null?void 0:Ze.onCopyEmbedCodeClicked)==null?void 0:tt.call(Ze);it&&nl(it)}},ct=(Ze=!1)=>{var tt,it;if((tt=P.callbacks)!=null&&tt.onCopyVideoLink){let We=(it=P.callbacks)==null?void 0:it.onCopyVideoLink(Ze,p());We&&nl(We)}},ut=v(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),st=v(()=>r(se)?{id:"copy-link",weight:xr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>ct()}:void 0),It=v(()=>r(Me)?{id:"copy-link-timestamp",weight:xr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>ct(!0)}:void 0),bt=v(()=>r(oe)?{id:"copy-embed-code",weight:xr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:Ye}:void 0),Yt=v(()=>r(B)?{id:"pip",weight:xr.pip,label:H("menu_pip"),onClick:we}:void 0),ni=v(()=>({id:"video-loop",weight:xr["video-loop"],label:l()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Ve})),Et=v(()=>r(be)?{id:"rotate",weight:xr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:j}:void 0),Nt=v(()=>r(le)?{id:"report",weight:xr.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:xr["save-debug"],label:r(ut),onClick:Oe})),_e=v(()=>r(Ke)?{id:"save-trace",weight:xr["save-trace"],label:H("menu_save_debug"),onClick:je}:void 0),re=v(()=>({id:"debug-info",weight:xr["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(st),r(It),r(bt),r(Yt),r(ni),r(Et),r(Nt),r(O),r(_e),r(re),...b()].filter(Ze=>!!Ze).sort(na));var qe=De(),Ge=pe(qe);{var pt=Ze=>{var tt=gb();tt.__contextmenu=[vb],tt.__keydown=[mb,ee],ki(tt,21,()=>r(Ne),it=>it.id,(it,We)=>{rf(it,{get id(){return r(We).id},get label(){return r(We).label},get ariaLabel(){return r(We).ariaLabel},get onClick(){return r(We).onClick},closeContextMenu:ee})}),g(tt),ft(tt,it=>C(it),()=>C()),E(()=>{var it,We;return rt(tt,`top: ${(it=r(k))!=null?it:""}px; left: ${(We=r(T))!=null?We:""}px;`)}),$(Ze,tt)};R(Ge,Ze=>{u()&&Ze(pt)})}$(t,qe),z(),o()}at(["contextmenu","keydown"]);var Zc=class{constructor(e){this.value=e,this.next=null}};var dl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Zc(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 _b=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),bb={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 cd(t,e){U(e,!0),W(t,bb);let i=f(e,"values",19,()=>[]),o=X(void 0),n=X(null),a=16,s=120,d=60,l=s/d;Wt(()=>{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=_b(),b=h(m);ft(b,u=>D(o,u),()=>r(o)),g(m),$(t,m),z()}var af=require("@vkontakte/videoplayer-shared/es2018");var $b=(t,e)=>{t.stopPropagation(),af.safeStorage.remove(Zl),e.set(!1)},yb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),xb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),wb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),kb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Pb=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>'),Mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Vb=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>'),Rb={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 ud(t,e){U(e,!0),W(t,Rb);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 dl(60),w=new dl(60),y=new dl(60),C=X(fe([])),T=X(fe([])),k=X(fe([])),P=F("aria_label_debug_panel");Wt(()=>{af.safeStorage.set(Zl,"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=Vb();let I;Be(A,"aria-label",P);var V=h(A);V.__click=[$b,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=yb(),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=xb(),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=wb(),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=Sb(),re=M(h(_e),2),Ne=h(re);g(re),g(_e),E(()=>{var qe,Ge;return ve(Ne,`Video: ${r(l).videoCodec||""} ${(qe=r(l).hdr?"(HDR)":"")!=null?qe:""}
|
|
141
|
+
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function ad(t,e){K(t,tb);let i=f(e,"withEqualizer",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1);var a=eb();let s;var d=h(a);{var l=u=>{var $=Z_();_(u,$)};B(d,u=>{i()&&u(l)})}var p=A(d,2);{var m=u=>{var $=X_(),w=h($);sd(w,{isActive:!0}),g($),_(u,$)},y=u=>{var $=J_(),w=h($,!0);g($),E(()=>me(w,e.time)),_(u,$)};B(p,u=>{o()?u(m):u(y,!1)})}g(a),E(u=>s=J(a,1,"wrapper svelte-1s15d2i",null,s,u),[()=>({live:o(),playing:n()})]),_(t,a)}var ib=L('<div role="timer" data-testid="thumb-timer"><!></div>'),ob={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 ld(t,e){U(e,!0),K(t,ob);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1),a=v(()=>cn(e.duration-e.position));var s=ib();let d;var l=h(s);ad(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 ol=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var jh=require("@vkontakte/videoplayer-core/es2018");var nf=require("@vkontakte/videoplayer-core/es2018"),lr=t=>{t.stopPropagation(),t.preventDefault()},rb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},sb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},ab=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},lb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Uh=t=>t.code==="Escape",db=t=>t.code==="ArrowLeft",dd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},zh=t=>{if(ab(t)){lr(t),sb(t.target);return}lb(t)&&(lr(t),rb(t.target))},bs=t=>!nf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||nf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",nl=async(t,e,i)=>{await xo(),t&&!t.classList.contains("opened")&&!e&&Se(i)&&(await xo(),i.set(!1),t.focus())},qh=async(t,e,i)=>{await xo(),t&&!e&&Se(i)&&(i.set(!1),t.focus())},rl=async(t,e,i)=>{var n;await xo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},Wh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Yc=(t,e)=>{zh(t),Uh(t)&&(lr(t),e())},jc=async(t,e)=>{dd(t,["ArrowRight"])&&(lr(t),e())},Kh=async(t,e,i)=>{if(zh(t),db(t)){lr(t),e();return}Uh(t)&&(lr(t),i())},sl=(t,e)=>{dd(t)&&(lr(t),e())},Qh=(t,e,i)=>{if(dd(t))lr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),lr(t);return}o==="ArrowRight"&&!e&&(i(!0),lr(t))}},Gh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Yh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var na=require("@vkontakte/videoplayer-shared/es2018");var Sr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var rf=require("@vkontakte/videoplayer-shared/es2018");var ub=(t,e)=>{sl(t,()=>e())},pb=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),fb={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 sf(t,e){U(e,!0),K(t,fb);let i=f(e,"onClick",3,rf.noop),o=f(e,"closeContextMenu",3,rf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=pb();a.__click=n,a.__keydown=[ub,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),me(s,e.label)}),_(t,a),z()}st(["click","keydown"]);var oa=(t,e)=>t.weight-e.weight;var al=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(al||{});var mb=(t,e)=>{Yc(t,e)},vb=t=>{t.preventDefault()},gb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),hb={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function af(t,e){U(e,!0),K(t,hb);let[i,o]=Ne(),n=()=>S(ie,"$isLive$",i),a=()=>S(Ae,"$isPiPEnabled$",i),s=()=>S(Q,"$chromecastState$",i),d=()=>S(Me,"$pictureInPictureApiIsActive$",i),l=()=>S(le,"$isLooped$",i),p=()=>S(Z,"$positionExact$",i),m=()=>S(W,"$additionalContextMenuItems$",i),y=f(e,"visible",3,!1),u=f(e,"position",19,()=>({top:0,left:0})),$=f(e,"playerContainerRef",3,void 0),w=f(e,"controlsContainerRef",3,void 0),b=f(e,"menuElementRef",15,void 0),C=X(0),T=X(0),I=Ce(),{pictureInPicture$:M}=ao(),P=qt(),k=I.ui.contextMenu.visible$,V=I.ui.debugPanelVisible,W=I.ui.additionalContextMenuItems$,Y=I.ui.t,F=I.actions.internal.togglePictureInPicture,Q=I.state.chromecastState$,ie=I.state.isLive$,Z=I.state.positionExact$,re=I.state.isInteractive,le=I.state.looped$,{isEnabled$:Ae,isActive$:Me}=M,ge=v(()=>{var Le;return P.features.copyVideoLink&&((Le=I.callbacks)==null?void 0:Le.onCopyVideoLink)}),se=v(()=>r(ge)&&!n()&&!re),Ee=v(()=>{var Le;return!!((Le=I.callbacks)!=null&&Le.onCopyEmbedCodeClicked)}),ne=v(()=>a()&&s()!==jh.ChromecastState.CONNECTED&&!re),R=v(()=>P.features.videoRotate&&!re),xe=v(()=>P.showSupport&&!d()),_e=v(()=>P.features.saveTraceInfoToFile),ze=()=>{var Le;k.set(!1),(Le=e.returnFocus)==null||Le.call(e)},H=(Le,nt)=>{if(!b()||!$()||!w())return;let je=b().getBoundingClientRect(),ht=$().getBoundingClientRect();D(C,Le-ht.left),D(T,nt-ht.top),r(C)+je.width>ht.width&&D(C,ht.width-je.width),r(T)+je.height>ht.height&&D(T,ht.height-je.height),D(C,pe(Math.max(r(C),0))),D(T,pe(Math.max(r(T),0)))};Fe(()=>{(async()=>{if(b()&&$()&&w()){await xo();let{top:nt,left:je,bottom:ht,right:at}=u(),Je=je!=null?je:0,Wt=nt!=null?nt:0,it=b().getBoundingClientRect();(0,na.isNullable)(je)&&!(0,na.isNullable)(at)&&(Je=at-it.width),(0,na.isNullable)(nt)&&!(0,na.isNullable)(ht)&&(Wt=ht-it.height),Je=Math.max(Je,0),Wt=Math.max(Wt,0),H(Je,Wt)}})()});let ae=()=>{I.actions.internal.videoRotate()},he=()=>{(0,na.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},ee=()=>{let Le=I.actions.internal.getDebugTextData();if(P.features.saveDebugInfoToFile){let nt=new Blob([...Le],{type:"plain/text"}),je=window.URL.createObjectURL(nt);Zs(je,"vk_player_debug_info","txt")}else ol(I.actions.internal.getDebugTextData())},De=()=>{let Le=I.actions.internal.getTraceTextData(),nt=new Blob([...Le],{type:"application/json"}),je=window.URL.createObjectURL(nt);Zs(je,"vk_player_trace_info","json")},Ze=()=>{V.set(!0)},we=async()=>{var Le;try{F()}finally{(Le=e.returnFocus)==null||Le.call(e)}},Ve=()=>{I.actions.internal.setLooped(!l())},Ie=()=>{var Le,nt;if(r(Ee)){let je=(nt=(Le=I.callbacks)==null?void 0:Le.onCopyEmbedCodeClicked)==null?void 0:nt.call(Le);je&&ol(je)}},Ue=(Le=!1)=>{var nt,je;if((nt=I.callbacks)!=null&&nt.onCopyVideoLink){let ht=(je=I.callbacks)==null?void 0:je.onCopyVideoLink(Le,p());ht&&ol(ht)}},ct=v(()=>P.features.saveDebugInfoToFile?Y("menu_save_debug"):Y("menu_copy_debug")),ut=v(()=>r(ge)?{id:"copy-link",weight:Sr["copy-link"],label:Y("menu_copy_video_link"),onClick:()=>Ue()}:void 0),ot=v(()=>r(se)?{id:"copy-link-timestamp",weight:Sr["copy-link-timestamp"],label:Y("menu_copy_video_link_with_timestamp"),onClick:()=>Ue(!0)}:void 0),It=v(()=>r(Ee)?{id:"copy-embed-code",weight:Sr["copy-embed-code"],label:Y("menu_copy_embed_code"),onClick:Ie}:void 0),gt=v(()=>r(ne)?{id:"pip",weight:Sr.pip,label:Y("menu_pip"),onClick:we}:void 0),Qt=v(()=>({id:"video-loop",weight:Sr["video-loop"],label:l()?Y("menu_video_loop_off"):Y("menu_video_loop_on"),ariaLabel:Y("aria_label_menu_loop"),onClick:Ve})),ti=v(()=>r(R)?{id:"rotate",weight:Sr.rotate,label:Y("menu_video_rotate"),ariaLabel:Y("aria_label_menu_rotate"),onClick:ae}:void 0),At=v(()=>r(xe)?{id:"report",weight:Sr.report,label:Y("menu_report"),ariaLabel:`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`,onClick:he}:void 0),Nt=v(()=>({id:"save-debug",weight:Sr["save-debug"],label:r(ct),onClick:ee})),O=v(()=>r(_e)?{id:"save-trace",weight:Sr["save-trace"],label:Y("menu_save_debug"),onClick:De}:void 0),be=v(()=>({id:"debug-info",weight:Sr["debug-info"],label:Y("menu_debug_overlay"),ariaLabel:Y("aria_label_menu_debug_overlay"),onClick:Ze})),oe=v(()=>[r(ut),r(ot),r(It),r(gt),r(Qt),r(ti),r(At),r(Nt),r(O),r(be),...m()].filter(Le=>!!Le).sort(oa));var Re=Oe(),Qe=ue(Re);{var Ye=Le=>{var nt=gb();nt.__contextmenu=[vb],nt.__keydown=[mb,ze],Ti(nt,21,()=>r(oe),je=>je.id,(je,ht)=>{sf(je,{get id(){return r(ht).id},get label(){return r(ht).label},get ariaLabel(){return r(ht).ariaLabel},get onClick(){return r(ht).onClick},closeContextMenu:ze})}),g(nt),vt(nt,je=>b(je),()=>b()),E(()=>{var je,ht;return rt(nt,`top: ${(je=r(T))!=null?je:""}px; left: ${(ht=r(C))!=null?ht:""}px;`)}),_(Le,nt)};B(Qe,Le=>{y()&&Le(Ye)})}_(t,Re),z(),o()}st(["contextmenu","keydown"]);var Zc=class{constructor(e){this.value=e,this.next=null}};var ll=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Zc(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 _b=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),bb={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 cd(t,e){U(e,!0),K(t,bb);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,pe(r(o).getContext("2d")))});function p(u,$,w,b,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect($,w,b,C)}Fe(()=>{let u="";if(r(n)){let $=i()[0];for(let b=1;b<i().length;b++)i()[b]>$&&($=i()[b]);r(n).clearRect(0,0,s,a);let w=d-1;for(let b=i().length-1;b>=0;b--){let C=w*l,T=$>0?a*(i()[b]/$):0;p(r(n),C,0,l,T),u=T+" "+u,w--}}});var m=_b(),y=h(m);vt(y,u=>D(o,u),()=>r(o)),g(m),_(t,m),z()}var lf=require("@vkontakte/videoplayer-shared/es2018");var $b=(t,e)=>{t.stopPropagation(),lf.safeStorage.remove(Zl),e.set(!1)},yb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),xb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),wb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),kb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Pb=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>'),Mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Vb=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>'),Rb={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 ud(t,e){U(e,!0),K(t,Rb);let[i,o]=Ne(),n=()=>S(d,"$isMobile",i),a=Ce(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=X(pe(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),m=X(0),y=X(0),u=X(0),$=new ll(60),w=new ll(60),b=new ll(60),C=X(pe([])),T=X(pe([])),I=X(pe([])),M=q("aria_label_debug_panel");zt(()=>{lf.safeStorage.set(Zl,"true"),a.actions.internal.startLogging(),p&&(D(y,pe(p.getVideoPlaybackQuality().droppedVideoFrames)),D(m,pe(p.getVideoPlaybackQuality().totalVideoFrames)));let O=window.setInterval(()=>{D(l,pe(a.actions.internal.getDebugPanelData()))},500),be;return p&&(be=window.setInterval(()=>{if(p){D(y,pe(p.getVideoPlaybackQuality().droppedVideoFrames));let oe=p.getVideoPlaybackQuality().totalVideoFrames;D(u,oe-r(m)),D(m,pe(oe)),$.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&b.push(r(l).bitrate),D(C,pe($.getValuesFromBottom())),D(T,pe(w.getValuesFromBottom())),D(I,pe(b.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(O),be&&clearInterval(be)}});var P=Vb();let k;Be(P,"aria-label",M);var V=h(P);V.__click=[$b,s];var W=A(V,2),Y=h(W),F=A(h(Y),2),Q=h(F,!0);g(F),g(Y);var ie=A(Y,2);{var Z=O=>{var be=yb(),oe=A(h(be),2),Re=h(oe,!0);g(oe),g(be),E(()=>me(Re,r(l).id)),_(O,be)};B(ie,O=>{r(l).id&&O(Z)})}var re=A(ie,2);{var le=O=>{var be=xb(),oe=A(h(be),2),Re=h(oe,!0);g(oe),g(be),E(()=>me(Re,r(l).vsid)),_(O,be)};B(re,O=>{r(l).vsid&&O(le)})}var Ae=A(re,2);{var Me=O=>{var be=wb(),oe=A(h(be),2),Re=h(oe,!0);g(oe),g(be),E(()=>me(Re,r(l).provider)),_(O,be)};B(Ae,O=>{r(l).provider&&O(Me)})}var ge=A(Ae,2);{var se=O=>{var be=Sb(),oe=A(h(be),2),Re=h(oe);g(oe),g(be),E(()=>{var Qe,Ye;return me(Re,`Video: ${r(l).videoCodec||""} ${(Qe=r(l).hdr?"(HDR)":"")!=null?Qe:""}
|
|
143
143
|
&
|
|
144
|
-
Audio: ${r(l).audioCodec||""} ${(Ge=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?Ge:""}`)}),$(O,_e)};R(he,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(se)})}var Me=M(he,2);{var oe=O=>{var _e=Cb(),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=Tb(),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 Ke=O=>{var _e=Ib(),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(Ke)})}var ee=M(le,2);{var me=O=>{var _e=kb(),re=M(h(_e),2),Ne=h(re);g(re),g(_e),E(()=>{var qe;return ve(Ne,`${(qe=r(l).volume)!=null?qe:""} %`)}),$(O,_e)};R(ee,O=>{r(l).volume&&O(me)})}var j=M(ee,2);{var te=O=>{var _e=Eb(),re=M(h(_e),2),Ne=h(re);g(re),g(_e),E(qe=>ve(Ne,`${qe!=null?qe:""} s`),[()=>r(l).buffer.toFixed(2)]),$(O,_e)};R(j,O=>{r(l).buffer&&O(te)})}var Oe=M(j,2);{var je=O=>{var _e=Pb(),re=M(h(_e),2),Ne=h(re);g(re),g(_e),E(qe=>ve(Ne,`${qe!=null?qe:""} s`),[()=>r(l).liveLatency.toFixed(2)]),$(O,_e)};R(Oe,O=>{r(l).liveLatency&&O(je)})}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(qe=>ve(Ne,qe),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:qe})=>qe).map(({value:qe,title:Ge})=>`${Ge} ${((qe!=null?qe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(O,_e)};R($e,O=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&O(we)})}var Ve=M($e,2),Ye=M(h(Ve),2),ct=h(Ye);g(Ye),g(Ve);var ut=M(Ve,2);{var st=O=>{var _e=Mb(),re=M(h(_e),2);cd(re,{get values(){return r(T)}});var Ne=M(re,2),qe=h(Ne);g(Ne),g(_e),E(Ge=>ve(qe,`${Ge!=null?Ge:""} Kbps`),[()=>r(l).speed.toFixed(2)]),$(O,_e)};R(ut,O=>{r(l).speed&&O(st)})}var It=M(ut,2);{var bt=O=>{var _e=Lb(),re=M(h(_e),2);cd(re,{get values(){return r(k)}});var Ne=M(re,2),qe=h(Ne);g(Ne),g(_e),E(Ge=>ve(qe,`${Ge!=null?Ge:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),$(O,_e)};R(It,O=>{r(l).bitrate&&O(bt)})}var Yt=M(It,2),ni=M(h(Yt),2);cd(ni,{get values(){return r(C)}});var Et=M(ni,2),Nt=h(Et,!0);g(Et),g(Yt),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(ct,`${(_e=r(b))!=null?_e:""} / ${(re=r(m))!=null?re:""} frames`),ve(Nt,r(u))},[()=>({"container-mobile":n()})]),$(t,A),z(),o()}at(["click"]);var Yh=require("@vkontakte/videoplayer-shared/es2018"),Nb=(t,e)=>{t.stopPropagation(),e()()},Bb=L('<div class="close svelte-1ome55p"></div>'),Db={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 sa(t,e){U(e,!0),W(t,Db);let i=f(e,"onClick",3,Yh.noop);var o=Bb();o.__click=[Nb,i],$(t,o),z()}at(["click"]);var Zh=require("@vkontakte/videoplayer-shared/es2018"),Ob=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>'),Hb={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 pd(t,e){U(e,!0),W(t,Hb);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,Zh.noop),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()()};Wt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{m()}}),_n(()=>{m()});var u=Ob(),_=h(u);ft(_,w=>D(a,w),()=>r(a)),ye(2),g(u),$(t,u),z()}var Fb=(t,e,i)=>{e(!1),i()},Ub=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),zb={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function lf(t,e){U(e,!0),W(t,zb);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(),_()};Wt(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=De(),T=pe(C);{var k=P=>{var A=Ub(),I=M(pe(A),2),V=h(I),q=h(V),Q=h(q,!0);g(q);var H=M(q,2);sa(H,{onClick:y}),g(V);var Y=M(V,2);Y.__click=[Fb,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());pd(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),rt(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()}at(["click"]);var xs=require("@vkontakte/videoplayer-core/es2018"),Xh=require("@vkontakte/videoplayer-shared/es2018"),nn=require("@vkontakte/videoplayer-statistics/es2018");var df=(t,e)=>Math.min(+(t+e).toFixed(2),1),cf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Xc=(t,e,i)=>{let o=df(e,i);e<1&&t.actions.internal.setVolume(o)},Jc=(t,e,i)=>{let o=cf(e,i);e>0&&t.actions.internal.setVolume(o)};var ys=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var Wb=(t,e)=>{e(t)},Kb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Qb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function uf(t,e){var Et,Nt;U(e,!0),W(t,Qb);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=Kt(),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$,Ke=(Et=I.callbacks)==null?void 0:Et.onAudioDoesNotExistHint,ee=(Nt=I.callbacks)==null?void 0:Nt.onAudioDisabledHint,me=I.state.isAudioAvailable$,j=I.state.isAudioDisabled,te=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Oe}=fo(),je=0,$e=!0,we=X(void 0),Ve=O=>(O!==$e&&($e=O,je=0),je+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*je)/1e3),Ye=(O,_e=!1)=>{var jt,ti;let re=O.target,Ne=(jt=re==null?void 0:re.getAttribute("role"))==null?void 0:jt.includes("menuitem"),qe=re.classList.contains("btn"),Ge=O.code;if(qe&&Ge==="Space")return!1;let pt=oh.has(Ge);if(Ne&&pt)return!1;let Ze=!ih.has(Ge);if(O.ctrlKey&&Ze||O.altKey&&Ze||O.metaKey)return!1;let tt=Ne&&Ge==="Escape";nh.has(Ge)||tt||e.hideContextMenu();let it=n()===xs.PlaybackState.PLAYING||n()===xs.PlaybackState.PAUSED,We=e.isAds&&(a()==="paused"||a()==="playing"),ht=!We&&!s().has("TIMELINE");if(!(it||We))return!1;q({message:`key down, code: ${Ge}, isExternal = ${_e}`});let Ut=!1,Je=()=>{Ut=!0,_e||O.preventDefault()};switch(Ge){case"KeyJ":case"ArrowLeft":{if(!ht)break;if(O.ctrlKey||O.altKey){let et=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(et),et&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:et.text}),Je()}else{let et=O.shiftKey?Ve(!1):V.controls.seekStepKeyboard/1e3,Zt=Math.max(d()-et,0);d()>0&&(I.actions.internal.seekTime(Zt,nn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:et.toString()}),Je())}break}case"KeyL":case"ArrowRight":{if(!ht)break;if(O.ctrlKey||O.altKey){let et=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(et),et&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:et.text}),Je()}else{let et=O.shiftKey?Ve(!0):V.controls.seekStepKeyboard/1e3,Zt=Math.min(d()+et,l());Math.round(d())<Math.round(l())&&(I.actions.internal.seekTime(Zt,nn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:et.toString()}),Je())}break}case"ArrowUp":{if(ys({isAudioDisabled:j,audioDisabledHintCallback:ee,isAudioAvailable:p(),audioIsNotExistHintCallback:Ke})){let et=m(),Zt=V.controls.volumeStepKeyboard,Di=et<=1;if(Xc(I,et,Zt),Di){let Wi=Math.round(df(et,Zt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Wi}})}}Je();break}case"ArrowDown":{if(ys({isAudioDisabled:j,audioDisabledHintCallback:ee,isAudioAvailable:p(),audioIsNotExistHintCallback:Ke})){let et=m(),Zt=V.controls.volumeStepKeyboard,Di=et>=0;if(Jc(I,et,Zt),Di){let Wi=Math.round(cf(et,Zt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Wi}})}}Je();break}case"Comma":{if(O.shiftKey){I.actions.internal.decrementPlaybackRate();let et=b().find(Zt=>Zt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:et==null?void 0:et.displayValue}),Je()}else{if(We||n()!==xs.PlaybackState.PAUSED)break;let et=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(et,nn.SeekAction.DOUBLE_TAP),Je())}break}case"Period":{if(O.shiftKey){I.actions.internal.incrementPlaybackRate();let et=b().find(Zt=>Zt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:et==null?void 0:et.displayValue}),Je()}else{if(We||n()!==xs.PlaybackState.PAUSED)break;let et=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(et,nn.SeekAction.DOUBLE_TAP),Je())}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 et="PLAY";n()===xs.PlaybackState.PAUSED?et="PAUSE":y()&&(et="REPLAY"),e.showHotKeyHelpers({type:et})}Je();break;case"KeyM":{ys({isAudioDisabled:j,audioDisabledHintCallback:ee,isAudioAvailable:p(),audioIsNotExistHintCallback:Ke})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),Je();break}case"KeyF":e.toggleFullscreen(),Je();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"}),Je();break;case"KeyI":I.actions.internal.togglePictureInPicture(),Je();break;case"Digit1":case"Numpad1":if(O.shiftKey){let et=Gh(k());B.set(et),Me.set(re),se.set(!0),oe.set(!0),Je();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,nn.SeekAction.DOUBLE_TAP),Je();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,nn.SeekAction.DOUBLE_TAP),Je();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,nn.SeekAction.DOUBLE_TAP),Je();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,nn.SeekAction.DOUBLE_TAP),Je();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,nn.SeekAction.DOUBLE_TAP),Je();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,nn.SeekAction.DOUBLE_TAP),Je();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,nn.SeekAction.DOUBLE_TAP),Je();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,nn.SeekAction.DOUBLE_TAP),Je();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,nn.SeekAction.DOUBLE_TAP),Je();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,nn.SeekAction.DOUBLE_TAP),Je();break;case"Slash":{O.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),Je());break}case"KeyN":O.shiftKey&&P()&&(I.actions.internal.nextVideoClick(),Je());break;case"KeyP":O.shiftKey&&A()&&(I.actions.internal.prevVideoClick(),Je());break;case"ShiftLeft":case"ShiftRight":Je();break;case"Tab":case"Escape":case"Enter":break;default:(0,Xh.checkNever)(Ge);break}return Ut},ct=O=>{let _e=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let re=n()===xs.PlaybackState.PLAYING||n()===xs.PlaybackState.PAUSED,Ne=e.isAds&&(a()==="paused"||a()==="playing");if(re||Ne)switch(_e){case"ShiftLeft":case"ShiftRight":je=0;break}},ut=F("aria_label_video_player"),st=()=>{var O;return(O=r(we))==null?void 0:O.focus()},It=O=>O.type==="keydown"?Ye(O,!0):(O.type==="keyup"&&ct(O),!1);var bt=Kb();bt.__keyup=ct,bt.__keydown=[Wb,Ye],Be(bt,"aria-label",ut);var Yt=h(bt);ge(Yt,()=>{var O;return(O=e.children)!=null?O:ie}),g(bt),ft(bt,O=>D(we,O),()=>r(we)),$(t,bt);var ni=z({focus:st,handleExternalKeyboardEvent:It});return o(),ni}at(["keyup","keydown"]);var Gb=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>'),jb={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||""} ${(Ye=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?Ye:""}`)}),_(O,be)};B(ge,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(se)})}var Ee=A(ge,2);{var ne=O=>{var be=Cb(),oe=A(h(be),2),Re=h(oe,!0);g(oe),g(be),E(()=>me(Re,r(l).viewport)),_(O,be)};B(Ee,O=>{r(l).viewport&&O(ne)})}var R=A(Ee,2);{var xe=O=>{var be=Tb(),oe=A(h(be),2),Re=h(oe,!0);g(oe),g(be),E(()=>me(Re,r(l).videoSize)),_(O,be)};B(R,O=>{r(l).videoSize&&O(xe)})}var _e=A(R,2);{var ze=O=>{var be=Ib(),oe=A(h(be),2),Re=h(oe,!0);g(oe),g(be),E(()=>me(Re,r(l).cdn)),_(O,be)};B(_e,O=>{r(l).cdn&&O(ze)})}var H=A(_e,2);{var ae=O=>{var be=kb(),oe=A(h(be),2),Re=h(oe);g(oe),g(be),E(()=>{var Qe;return me(Re,`${(Qe=r(l).volume)!=null?Qe:""} %`)}),_(O,be)};B(H,O=>{r(l).volume&&O(ae)})}var he=A(H,2);{var ee=O=>{var be=Eb(),oe=A(h(be),2),Re=h(oe);g(oe),g(be),E(Qe=>me(Re,`${Qe!=null?Qe:""} s`),[()=>r(l).buffer.toFixed(2)]),_(O,be)};B(he,O=>{r(l).buffer&&O(ee)})}var De=A(he,2);{var Ze=O=>{var be=Pb(),oe=A(h(be),2),Re=h(oe);g(oe),g(be),E(Qe=>me(Re,`${Qe!=null?Qe:""} s`),[()=>r(l).liveLatency.toFixed(2)]),_(O,be)};B(De,O=>{r(l).liveLatency&&O(Ze)})}var we=A(De,2);{var Ve=O=>{var be=Ab(),oe=A(h(be),2),Re=h(oe,!0);g(oe),g(be),E(Qe=>me(Re,Qe),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Qe})=>Qe).map(({value:Qe,title:Ye})=>`${Ye} ${((Qe!=null?Qe:0)/1e3).toFixed(2)} s`).join(" & ")]),_(O,be)};B(we,O=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&O(Ve)})}var Ie=A(we,2),Ue=A(h(Ie),2),ct=h(Ue);g(Ue),g(Ie);var ut=A(Ie,2);{var ot=O=>{var be=Mb(),oe=A(h(be),2);cd(oe,{get values(){return r(T)}});var Re=A(oe,2),Qe=h(Re);g(Re),g(be),E(Ye=>me(Qe,`${Ye!=null?Ye:""} Kbps`),[()=>r(l).speed.toFixed(2)]),_(O,be)};B(ut,O=>{r(l).speed&&O(ot)})}var It=A(ut,2);{var gt=O=>{var be=Lb(),oe=A(h(be),2);cd(oe,{get values(){return r(I)}});var Re=A(oe,2),Qe=h(Re);g(Re),g(be),E(Ye=>me(Qe,`${Ye!=null?Ye:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),_(O,be)};B(It,O=>{r(l).bitrate&&O(gt)})}var Qt=A(It,2),ti=A(h(Qt),2);cd(ti,{get values(){return r(C)}});var At=A(ti,2),Nt=h(At,!0);g(At),g(Qt),g(W),g(P),E(O=>{var be,oe;k=J(P,1,"container svelte-4deykz",null,k,O),me(Q,r(l).version),me(ct,`${(be=r(y))!=null?be:""} / ${(oe=r(m))!=null?oe:""} frames`),me(Nt,r(u))},[()=>({"container-mobile":n()})]),_(t,P),z(),o()}st(["click"]);var Zh=require("@vkontakte/videoplayer-shared/es2018"),Bb=(t,e)=>{t.stopPropagation(),e()()},Nb=L('<div class="close svelte-1ome55p"></div>'),Db={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 ra(t,e){U(e,!0),K(t,Db);let i=f(e,"onClick",3,Zh.noop);var o=Nb();o.__click=[Bb,i],_(t,o),z()}st(["click"]);var Xh=require("@vkontakte/videoplayer-shared/es2018"),Ob=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>'),Hb={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 pd(t,e){U(e,!0),K(t,Hb);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,Xh.noop),n=5e3,a=X(void 0),s,d,l=X(0),p;Fe(()=>{i()&&(d=Date.now(),D(l,pe(requestAnimationFrame(y))))});let m=()=>{r(l)&&(cancelAnimationFrame(r(l)),D(l,0))},y=()=>{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(y)))):o()()};zt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{m()}}),In(()=>{m()});var u=Ob(),$=h(u);vt($,w=>D(a,w),()=>r(a)),$e(2),g(u),_(t,u),z()}var Fb=(t,e,i)=>{e(!1),i()},Ub=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),zb={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function df(t,e){U(e,!0),K(t,zb);let[i,o]=Ne(),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,y=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},b=()=>{e.clickCloseIcon(),$()};zt(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Oe(),T=ue(C);{var I=M=>{var P=Ub(),k=A(ue(P),2),V=h(k),W=h(V),Y=h(W,!0);g(W);var F=A(W,2);ra(F,{onClick:b}),g(V);var Q=A(V,2);Q.__click=[Fb,p,y];var ie=h(Q),Z=h(ie),re=h(Z);let le;var Ae=A(re,2);{var Me=ne=>{let R=v(()=>a()&&n());pd(ne,{get isRunning(){return r(R)},onTimerEnded:w})};B(Ae,ne=>{n()&&ne(Me)})}g(Z),g(ie);var ge=A(ie,2),se=h(ge),Ee=h(se,!0);g(se),g(ge),g(Q),g(k),E((ne,R)=>{me(Y,ne),rt(Z,`background-image: url('${e.thumb}')`),le=J(re,1,"thumb-overlay svelte-jfbaax",null,le,R),me(Ee,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:n()})]),_(M,P)};B(T,M=>{e.isHide||M(I)})}_(t,C),z(),o()}st(["click"]);var ys=require("@vkontakte/videoplayer-core/es2018"),Jh=require("@vkontakte/videoplayer-shared/es2018"),un=require("@vkontakte/videoplayer-statistics/es2018");var cf=(t,e)=>Math.min(+(t+e).toFixed(2),1),uf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Xc=(t,e,i)=>{let o=cf(e,i);e<1?t.actions.internal.setVolume(o):Se(t.state.muted$)&&t.actions.external.setMuted(!1)},Jc=(t,e,i)=>{let o=uf(e,i);e>0&&t.actions.internal.setVolume(o)};var $s=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var Wb=(t,e)=>{e(t)},Kb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Qb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function pf(t,e){var At,Nt;U(e,!0),K(t,Qb);let[i,o]=Ne(),n=()=>S(Y,"$playbackState$",i),a=()=>S(F,"$adPlaybackState",i),s=()=>S(re,"$disabledControls$",i),d=()=>S(Q,"$positionExact$",i),l=()=>S(ie,"$duration$",i),p=()=>S(ae,"$isAudioAvailable$",i),m=()=>S(Z,"$volume$",i),y=()=>S(ge,"$availablePlaybackRates$",i),u=()=>S(Me,"$currentPlaybackRate$",i),$=()=>S(ee,"$isInteractiveTime$",i),w=()=>S(De,"$showInteractiveTimeIndicatorTooltip$",i),b=()=>S(xe,"$isEnded$",i),C=()=>S(le,"$muted$",i),T=()=>S(Ae,"$currentSubtitle$",i),I=()=>S(_e,"$overlayContainer$",i),M=f(e,"nextButtonActive",3,!1),P=f(e,"prevButtonActive",3,!1),k=Ce(),V=qt(),W=k.getLogger().createComponentLog("KeyboardControls component"),Y=k.state.playbackState$,F=k.ads.playbackState,Q=k.state.positionExact$,ie=k.state.duration$,Z=k.state.volume$,re=k.ui.controls.disabledControls$,le=k.state.muted$,Ae=k.state.currentSubtitle$,Me=k.state.currentPlaybackRate$,ge=k.state.availablePlaybackRates$,se=k.ui.contextMenu.openedByHotKey$,Ee=k.ui.contextMenu.lastActiveElem$,ne=k.ui.contextMenu.visible$,R=k.ui.contextMenu.position$,xe=k.state.isEnded$,_e=k.ui.overlayContainer$,ze=(At=k.callbacks)==null?void 0:At.onAudioDoesNotExistHint,H=(Nt=k.callbacks)==null?void 0:Nt.onAudioDisabledHint,ae=k.state.isAudioAvailable$,he=k.state.isAudioDisabled,ee=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:De}=ao(),Ze=0,we=!0,Ve=X(void 0),Ie=O=>(O!==we&&(we=O,Ze=0),Ze+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*Ze)/1e3),Ue=(O,be=!1)=>{var ni,xi;let oe=O.target,Re=(ni=oe==null?void 0:oe.getAttribute("role"))==null?void 0:ni.includes("menuitem"),Qe=oe.classList.contains("btn"),Ye=O.code;if(Qe&&Ye==="Space")return!1;let Le=nh.has(Ye);if(Re&&Le)return!1;let nt=!oh.has(Ye);if(O.ctrlKey&&nt||O.altKey&&nt||O.metaKey)return!1;let je=Re&&Ye==="Escape";rh.has(Ye)||je||e.hideContextMenu();let ht=n()===ys.PlaybackState.PLAYING||n()===ys.PlaybackState.PAUSED,at=e.isAds&&(a()==="paused"||a()==="playing"),Je=!at&&!s().has("TIMELINE");if(!(ht||at))return!1;W({message:`key down, code: ${Ye}, isExternal = ${be}`});let Wt=!1,it=()=>{Wt=!0,be||O.preventDefault()};switch(Ye){case"KeyJ":case"ArrowLeft":{if(!Je)break;if(O.ctrlKey||O.altKey){let et=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(et),et&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:et.text}),it()}else{let et=O.shiftKey?Ie(!1):V.controls.seekStepKeyboard/1e3,jt=Math.max(d()-et,0);d()>0&&(k.actions.internal.seekTime(jt,un.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:et.toString()}),it())}break}case"KeyL":case"ArrowRight":{if(!Je)break;if(O.ctrlKey||O.altKey){let et=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(et),et&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:et.text}),it()}else{let et=O.shiftKey?Ie(!0):V.controls.seekStepKeyboard/1e3,jt=Math.min(d()+et,l());Math.round(d())<Math.round(l())&&(k.actions.internal.seekTime(jt,un.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:et.toString()}),it())}break}case"ArrowUp":{if($s({isAudioDisabled:he,audioDisabledHintCallback:H,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})){let et=m(),jt=V.controls.volumeStepKeyboard,Vi=et<=1;if(Xc(k,et,jt),Vi){let Yi=Math.round(cf(et,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Yi}})}}it();break}case"ArrowDown":{if($s({isAudioDisabled:he,audioDisabledHintCallback:H,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})){let et=m(),jt=V.controls.volumeStepKeyboard,Vi=et>=0;if(Jc(k,et,jt),Vi){let Yi=Math.round(uf(et,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Yi}})}}it();break}case"Comma":{if(O.shiftKey){k.actions.internal.decrementPlaybackRate();let et=y().find(jt=>jt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:et==null?void 0:et.displayValue}),it()}else{if(at||n()!==ys.PlaybackState.PAUSED)break;let et=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(et,un.SeekAction.DOUBLE_TAP),it())}break}case"Period":{if(O.shiftKey){k.actions.internal.incrementPlaybackRate();let et=y().find(jt=>jt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:et==null?void 0:et.displayValue}),it()}else{if(at||n()!==ys.PlaybackState.PAUSED)break;let et=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(et,un.SeekAction.DOUBLE_TAP),it())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&De.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let et="PLAY";n()===ys.PlaybackState.PAUSED?et="PAUSE":b()&&(et="REPLAY"),e.showHotKeyHelpers({type:et})}it();break;case"KeyM":{$s({isAudioDisabled:he,audioDisabledHintCallback:H,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),it();break}case"KeyF":e.toggleFullscreen(),it();break;case"KeyC":k.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(xi=T())==null?void 0:xi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),it();break;case"KeyI":k.actions.internal.togglePictureInPicture(),it();break;case"Digit1":case"Numpad1":if(O.shiftKey){let et=Yh(I());R.set(et),Ee.set(oe),se.set(!0),ne.set(!0),it();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,un.SeekAction.DOUBLE_TAP),it();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,un.SeekAction.DOUBLE_TAP),it();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,un.SeekAction.DOUBLE_TAP),it();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,un.SeekAction.DOUBLE_TAP),it();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,un.SeekAction.DOUBLE_TAP),it();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,un.SeekAction.DOUBLE_TAP),it();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,un.SeekAction.DOUBLE_TAP),it();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,un.SeekAction.DOUBLE_TAP),it();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,un.SeekAction.DOUBLE_TAP),it();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,un.SeekAction.DOUBLE_TAP),it();break;case"Slash":{O.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),it());break}case"KeyN":O.shiftKey&&M()&&(k.actions.internal.nextVideoClick(),it());break;case"KeyP":O.shiftKey&&P()&&(k.actions.internal.prevVideoClick(),it());break;case"ShiftLeft":case"ShiftRight":it();break;case"Tab":case"Escape":case"Enter":break;default:(0,Jh.checkNever)(Ye);break}return Wt},ct=O=>{let be=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let oe=n()===ys.PlaybackState.PLAYING||n()===ys.PlaybackState.PAUSED,Re=e.isAds&&(a()==="paused"||a()==="playing");if(oe||Re)switch(be){case"ShiftLeft":case"ShiftRight":Ze=0;break}},ut=q("aria_label_video_player"),ot=()=>{var O;return(O=r(Ve))==null?void 0:O.focus()},It=O=>O.type==="keydown"?Ue(O,!0):(O.type==="keyup"&&ct(O),!1);var gt=Kb();gt.__keyup=ct,gt.__keydown=[Wb,Ue],Be(gt,"aria-label",ut);var Qt=h(gt);ve(Qt,()=>{var O;return(O=e.children)!=null?O:te}),g(gt),vt(gt,O=>D(Ve,O),()=>r(Ve)),_(t,gt);var ti=z({focus:ot,handleExternalKeyboardEvent:It});return o(),ti}st(["keyup","keydown"]);var Gb=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>'),Yb={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.`},Lh=P_;var is=new Map;is.set(el.Interf
|
|
|
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
|
|
157
|
+
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function sa(t,e){K(t,Yb);let i=f(e,"style",3,"");var o=Gb();E(()=>rt(o,i())),_(t,o)}var jb=ye('<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 ff(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=jb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(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)}var aa=require("@vkontakte/videoplayer-shared/es2018"),Zb=t=>{t.stopPropagation()},Xb=L("<button><!></button>"),Jb={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.`},Lh=P_;var is=new Map;is.set(el.Interf
|
|
|
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
|
|
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 Bt(t,e){U(e,!0),K(t,Jb);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),y=f(e,"tabIndex",3,0),u=f(e,"click",3,aa.noop),$=f(e,"focus",3,aa.noop),w=f(e,"blur",3,aa.noop),b=v(()=>u()===aa.noop?null:P=>{P.stopPropagation(),u()(P)}),C=v(()=>$()===aa.noop?null:P=>{P.preventDefault(),$()()}),T=v(()=>w()===aa.noop?null:P=>{P.preventDefault(),w()()});var I=Xb();I.__pointerdown=[Zb],I.__click=function(...P){var k;(k=r(b))==null||k.apply(this,P)};var M=h(I);ve(M,()=>{var P;return(P=e.children)!=null?P:te}),g(I),vt(I,P=>l(P),()=>l()),E(()=>{var P,k,V,W,Y,F,Q;J(I,1,`btn ${(P=i())!=null?P:""}`,"svelte-wr0kwr"),rt(I,o()||null),I.disabled=(k=n())!=null?k:null,Be(I,"aria-hidden",(V=s())!=null?V:null),Be(I,"aria-label",(W=d())!=null?W:null),Be(I,"aria-keyshortcuts",(Y=p())!=null?Y:null),Be(I,"aria-expanded",(F=m())!=null?F:null),Be(I,"data-testid",(Q=a())!=null?Q:null),Be(I,"tabindex",y()),Be(I,"role",e.role)}),Tt("focus",I,function(...P){var k;(k=r(C))==null||k.apply(this,P)}),Tt("blur",I,function(...P){var k;(k=r(T))==null||k.apply(this,P)}),_(t,I),z()}st(["pointerdown","click"]);var e$=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),t$=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>'),i$={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 mf(t,e){U(e,!0),K(t,i$);let i=f(e,"showHeader",3,!0),o=f(e,"showCloseCross",3,!0),n=q("hotkey_map_modal_close_btn_text");var a=t$(),s=h(a),d=h(s);{var l=u=>{var $=e$(),w=h($),b=h(w,!0);g(w);var C=A(w,2);{var T=I=>{Bt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(M,P)=>{ff(M,{})},$$slots:{default:!0}})};B(C,I=>{o()&&I(T)})}g($),E(()=>me(b,e.title)),_(u,$)};B(d,u=>{i()&&u(l)})}var p=A(d,2),m=h(p),y=h(m);ve(y,()=>{var u;return(u=e.children)!=null?u:te}),g(m),g(p),g(s),g(a),_(t,a),z()}var o$=new Set(["BR"]),e1=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;o$.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var n$=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>'),r$=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>'),s$=L('<div class="hot-key-map svelte-quklnq"></div>'),a$={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 mf(t,e){U(e,!1),W(t,a$);let[i,o]=Re(),n=()=>S(s,"$data",i),a=Te(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};$r(),ff(t,{get title(){return n().title},onClose:l,children:(p,m)=>{var b=s$();ki(b,5,()=>n().groups,({title:u,items:_})=>u,(u,_)=>{let w=()=>r(_).title,y=()=>r(_).items;var C=r$(),T=h(C),k=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,q=()=>r(I).value;var Q=n$(),H=h(Q),Y=h(H);Ql(Y,()=>Jh(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()}var am=require("@vkontakte/videoplayer-shared/es2018");var ga=require("@vkontakte/videoplayer-core/es2018");var hL=require("@vkontakte/videoplayer-shared/es2018");var l$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),d$={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 vf(t,e){W(t,d$);var i=l$(),o=h(i);ge(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),$(t,i)}var cl=require("@vkontakte/videoplayer-shared/es2018");var c$=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 gf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=c$();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 u$=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 hf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=u$();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 p$=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 _f(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=p$();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 f$=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 fd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=f$();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 m$=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 md(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=m$();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 eu=t=>{switch(t){case cl.VideoQuality.Q_720P:return _f;case cl.VideoQuality.Q_1080P:return fd;case cl.VideoQuality.Q_1440P:return md;case cl.VideoQuality.Q_2160P:return gf;case cl.VideoQuality.Q_4320P:return hf}};var v$=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 bf(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":"settings-mobile-icon",role:"img",...i})),$(t,o)}var g$=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 $f(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=g$();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 h$=L('<div aria-hidden="true"><!> <!></div>'),_$={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 vd(t,e){U(e,!0),W(t,_$);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=v(()=>eu(o())),a=v(()=>!!r(n)&&[fd,md].includes(r(n)));var s=De(),d=pe(s);{var l=m=>{bf(m,{})},p=m=>{var b=h$();let u;var _=h(b);{var w=T=>{vf(T,{children:(k,P)=>{var A=De(),I=pe(A);Ei(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");$f(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 b$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),$$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ul(t,e){U(e,!0),W(t,$$);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()&&wt(()=>{e.ref$.set(r(y))})});let C=v(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));async function T(P){let A=$s(P);a()?u():b(A,$o)}let k=v(()=>a()?"opened":"");Rt(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=b$(),V=h(I);vd(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(I),$(P,I)},$$slots:{default:!0}}),z(),o()}var y$=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 yf(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(),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 x$=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 gd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=x$();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 xf(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"));Rt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Hr.KeyC},children:(s,d)=>{var l=De(),p=pe(l);{var m=u=>{yf(u,{})},b=u=>{gd(u,{})};R(p,u=>{i()?u(m):u(b,!1)})}$(s,l)},$$slots:{default:!0}}),z()}var w$=L('<span class="duration svelte-sz9er7"> </span>'),S$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),C$={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 hd(t,e){U(e,!0),W(t,C$);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=S$();let l;var p=h(d),m=h(p,!0);g(p);var b=M(p,2);{var u=_=>{var w=w$(),y=h(w,!0);g(w),E(()=>ve(y,r(a))),$(_,w)};R(b,_=>{o()&&_(u)})}g(d),ft(d,_=>n(_),()=>n()),E(_=>{l=J(d,1,"time svelte-sz9er7",null,l,_),ve(m,r(s))},[()=>({mobile:i()})]),$(t,d),z()}var bd=require("@vkontakte/videoplayer-shared/es2018");var T$=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>'),I$={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 vf(t,e){U(e,!1),K(t,a$);let[i,o]=Ne(),n=()=>S(s,"$data",i),a=Ce(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};xr(),mf(t,{get title(){return n().title},onClose:l,children:(p,m)=>{var y=s$();Ti(y,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>r($).title,b=()=>r($).items;var C=r$(),T=h(C),I=h(T,!0);g(T);var M=A(T,2);Ti(M,5,b,({description:P,value:k})=>k,(P,k)=>{let V=()=>r(k).description,W=()=>r(k).value;var Y=n$(),F=h(Y),Q=h(F);Ql(Q,()=>e1(V()),!1,!1),g(F);var ie=A(F,2),Z=h(ie,!0);g(ie),g(Y),E(()=>me(Z,W())),_(P,Y)}),g(M),g(C),E(()=>me(I,w())),_(u,C)}),g(y),_(p,y)},$$slots:{default:!0}}),z(),o()}var lm=require("@vkontakte/videoplayer-shared/es2018");var va=require("@vkontakte/videoplayer-core/es2018");var _L=require("@vkontakte/videoplayer-shared/es2018");var l$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),d$={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 gf(t,e){K(t,d$);var i=l$(),o=h(i);ve(o,()=>{var n;return(n=e.children)!=null?n:te}),g(i),_(t,i)}var dl=require("@vkontakte/videoplayer-shared/es2018");var c$=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 hf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=c$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),_(t,o)}var u$=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 _f(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=u$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),_(t,o)}var p$=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 bf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=p$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),_(t,o)}var f$=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 fd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=f$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),_(t,o)}var m$=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 md(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=m$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),_(t,o)}var eu=t=>{switch(t){case dl.VideoQuality.Q_720P:return bf;case dl.VideoQuality.Q_1080P:return fd;case dl.VideoQuality.Q_1440P:return md;case dl.VideoQuality.Q_2160P:return hf;case dl.VideoQuality.Q_4320P:return _f}};var v$=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 $f(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=v$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}var g$=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 yf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=g$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(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 h$=L('<div aria-hidden="true"><!> <!></div>'),_$={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 vd(t,e){U(e,!0),K(t,_$);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=v(()=>eu(o())),a=v(()=>!!r(n)&&[fd,md].includes(r(n)));var s=Oe(),d=ue(s);{var l=m=>{$f(m,{})},p=m=>{var y=h$();let u;var $=h(y);{var w=T=>{gf(T,{children:(I,M)=>{var P=Oe(),k=ue(P);Ii(k,()=>r(n),(V,W)=>{W(V,{})}),_(I,P)},$$slots:{default:!0}})};B($,T=>{r(n)&&T(w)})}var b=A($,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");yf(b,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g(y),E(T=>u=J(y,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(a)})]),_(m,y)};B(d,m=>{i()?m(l):m(p,!1)})}_(t,s),z()}var b$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),$$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function cl(t,e){U(e,!0),K(t,$$);let[i,o]=Ne(),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$,y=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,b=X(void 0);Fe(()=>{n()&&wt(()=>{e.ref$.set(r(b))})});let C=w("aria_label_settings");async function T(M){let P=bs(M);a()?u():y(P,xo)}let I=v(()=>a()?"opened":"");Bt(t,{get className(){return r(I)},testId:"btn-settings",click:T,ariaLabel:C,get ariaExpanded(){return a()},get ref(){return r(b)},set ref(M){D(b,pe(M))},children:(M,P)=>{var k=b$(),V=h(k);vd(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(k),_(M,k)},$$slots:{default:!0}}),z(),o()}var y$=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 xf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=y$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}var x$=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 gd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=x$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}function wf(t,e){U(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),n=Ce().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Bt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Or.KeyC},children:(s,d)=>{var l=Oe(),p=ue(l);{var m=u=>{xf(u,{})},y=u=>{gd(u,{})};B(p,u=>{i()?u(m):u(y,!1)})}_(s,l)},$$slots:{default:!0}}),z()}var w$=L('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),S$=L('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),C$={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 hd(t,e){U(e,!0),K(t,C$);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),n=f(e,"ref",15),a=v(()=>cn(e.duration)),s=v(()=>cn(e.position));var d=S$();let l;var p=h(d),m=h(p,!0);g(p);var y=A(p,2);{var u=$=>{var w=w$(),b=h(w,!0);g(w),E(()=>me(b,r(a))),_($,w)};B(y,$=>{o()&&$(u)})}g(d),vt(d,$=>n($),()=>n()),E($=>{l=J(d,1,"time svelte-sz9er7",null,l,$),me(m,r(s))},[()=>({mobile:i()})]),_(t,d),z()}var bd=require("@vkontakte/videoplayer-shared/es2018");var T$=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>'),I$={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
|
|
169
|
+
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function xs(t,e){K(t,I$);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=T$();E(()=>{var d;Be(s,"data-value",r(a)),Be(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),_(t,s)}var Mo=require("@vkontakte/videoplayer-shared/es2018");var tu=require("@vkontakte/videoplayer-shared/es2018");var t1=require("@vkontakte/videoplayer-shared/es2018");var k$=L('<div class="overlay"><!></div>');function Sf(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(s,"$overlayContainer$",i),s=Ce().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))};Fe(()=>{p(n())}),zt(()=>(p(n()),()=>l(n())));var m=k$(),y=h(m);ve(y,()=>{var u;return(u=e.children)!=null?u:te}),g(m),vt(m,u=>D(d,u),()=>r(d)),_(t,m),z(),o()}var E$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),P$=L("<div><!></div> <!>",1),A$={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 la(t,e){U(e,!0),K(t,A$);let[i,o]=Ne(),n=()=>S(Q,"$overlayContainer$",i),a=()=>S(F,"$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),y=f(e,"isFullWidthWrapper",3,!1),u=f(e,"maxTooltipWidth",3,void 0),$=f(e,"placement",3,"top"),w=f(e,"onVisibilityChange",3,t1.noop),b=5,C=X(void 0),T=X(void 0),I,M=X(0),P=X(0),k=X(0),V=X(0),W=qt(),Y=Ce(),F=Y.ui.playerSize,Q=Y.ui.overlayContainer$;Fe(()=>{wt(()=>{w()(l())})});let ie=Y.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!n()||!r(T)||!r(C))return;D(P,b);let we=n().getBoundingClientRect(),Ve=r(C).getBoundingClientRect(),Ie=Ve.width,Ue=r(T).clientWidth,ct=a().width,ut=(Ie-Ue)/2,ot=Ve.left+p()-we.left,It=ot+ut,gt=Ve.top+m()-we.top,Qt=Ue/2-b,ti=It<8,At=It+Ue>ct-8;ti&&(It=8,Qt=ot+Ve.width/2-2.5*b),At&&(It=ct-8-Ue,Qt=Ve.left-we.left+Ve.width/2-It-b),D(k,pe(It)),D(V,gt),D(M,pe(Qt))},re=()=>{!n()||!r(T)||!r(C)||D(P,-b)},le=()=>{if(!n()||!r(T)||!r(C))return;D(M,b);let we=n().getBoundingClientRect(),Ve=r(C).getBoundingClientRect(),Ie=Ve.height,Ue=r(T).clientHeight,ct=(Ie-Ue)/2+Ue,ut=Ve.left+p()-we.left-r(T).clientWidth,ot=2,It=ut-b;It<8&&(It=8);let Qt=Ve.top+m()-we.top+ct,ti=ot-ct/2,At=ot-b;D(k,pe(It)),D(V,Qt),D(P,ti),D(M,At)},Ae=()=>{!n()||!r(T)||!r(C)||D(M,-b)},Me=()=>{switch($()){case"top":Z();break;case"bottom":re();break;case"left":le();break;default:Ae()}},ge=()=>{try{if(!n()||!r(C))return;Me(),l(!0)}catch(we){ie({message:String(we)})}},se=()=>{l(!1)},Ee=()=>{r(T)&&(I||(I=window.setTimeout(ge,W.controls.hideTimeoutTooltips)),l()&&ge())},ne=()=>{se(),window.clearTimeout(I),I=void 0},R=(we,Ve,Ie)=>{let Ue="";switch($()){case"top":Ue=`transform: translate(${we}px, ${Ve}px);`;break;case"bottom":Ue=`transform: translate(${we}px, ${Ve}px); top: auto; bottom: 100%;`;break;case"left":Ue=`transform: translate(${we}px, ${Ve}px); left: 0; right: auto;`;break;default:Ue=`transform: translate(${we}px, ${Ve}px);`}return Ue+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ue+=` opacity: ${Ie?1:0}; visibility: ${Ie?"visible":"hidden"}`,Ue},xe=(we,Ve)=>{let Ie="";switch($()){case"top":Ie=`transform: translate(${we}px, ${Ve}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ie=`transform: translate(${we}px, ${Ve}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ie=`transform: translate(${we}px, ${Ve}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ie=`transform: translate(${we}px, ${Ve}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ie},_e=v(()=>R(r(k),r(V),l())),ze=v(()=>xe(r(M),r(P)));zt(Me),In(()=>window.clearTimeout(I));var H=P$(),ae=ue(H);let he;ae.__mousemove=Ee,ae.__mousedown=ne,ae.__mouseup=Ee;var ee=h(ae);ve(ee,()=>{var we;return(we=e.children)!=null?we:te}),g(ae),vt(ae,we=>D(C,we),()=>r(C));var De=A(ae,2);{var Ze=we=>{Sf(we,{children:(Ve,Ie)=>{var Ue=E$(),ct=h(Ue),ut=h(ct,!0);g(ct);var ot=A(ct,2);g(Ue),vt(Ue,It=>D(T,It),()=>r(T)),E(()=>{rt(Ue,r(_e)),me(ut,d()),rt(ot,r(ze))}),_(Ve,Ue)},$$slots:{default:!0}})};B(De,we=>{d()&&!s()&&we(Ze)})}E(we=>he=J(ae,1,"tooltip-wrapper svelte-hxlyne",null,he,we),[()=>({"full-width":y()})]),Tt("mouseenter",ae,Ee),Tt("mouseleave",ae,ne),_(t,H),z(),o()}st(["mousemove","mousedown","mouseup"]);var i1=t=>{t.stopPropagation()},M$=L("<div><!></div>"),L$={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 Ao(t,e){U(e,!0),K(t,L$);let[i,o]=Ne(),n=()=>S(p,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Ce(),d=ao(),l=s.ui.isMobile,p=d.graphIsOpened$,m=s.ui.t,y=f(e,"className",3,""),u=f(e,"disabled",3,!1),$=f(e,"hasTooltip",3,!0),w=f(e,"ref",15,void 0),b=f(e,"width",15,void 0),C=f(e,"isFullWidthTooltip",3,!0),T=f(e,"tooltipContent",3,""),I=f(e,"tooltipActive",3,!1),M=f(e,"tooltipPlacement",3,"top"),P=f(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),k=f(e,"isAriaHidden",3,!1),V=f(e,"onTooltipVisibilityChange",3,tu.noop),W=f(e,"initialTranslateXPx",3,0),Y=f(e,"initialTranslateYPx",19,()=>-18),F=f(e,"mouseEnter",3,tu.noop),Q=f(e,"mouseLeave",3,tu.noop),ie=v(()=>u()?n()?m("tooltip_disabled_when_graph_on"):P():T());var Z=M$();Z.__pointerdown=[i1],Z.__click=[i1];var re=h(Z);{var le=Me=>{la(Me,{get content(){return r(ie)},get translateX(){return W()},get translateY(){return Y()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return M()},get onVisibilityChange(){return V()},children:(ge,se)=>{var Ee=Oe(),ne=ue(Ee);ve(ne,()=>{var R;return(R=e.children)!=null?R:te}),_(ge,Ee)},$$slots:{default:!0}})},Ae=Me=>{var ge=Oe(),se=ue(ge);ve(se,()=>{var Ee;return(Ee=e.children)!=null?Ee:te}),_(Me,ge)};B(re,Me=>{$()&&r(ie)&&!a()?Me(le):Me(Ae,!1)})}g(Z),vt(Z,Me=>w(Me),()=>w()),E(()=>{var Me;J(Z,1,`btn-container ${(Me=y())!=null?Me:""}`,"svelte-p9r045"),Be(Z,"aria-hidden",k()||null)}),Tt("mouseenter",Z,function(...Me){var ge;(ge=F())==null||ge.apply(this,Me)}),Tt("mouseleave",Z,function(...Me){var ge;(ge=Q())==null||ge.apply(this,Me)}),Dr(Z,"clientWidth",b),_(t,Z),z(),o()}st(["pointerdown","click"]);var V$=ye('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function _d(t,e){"use strict";var i=V$(),o=h(i),n=A(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 R$=L("<div><!></div>"),B$={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 Cf(t,e){U(e,!0),K(t,B$);let o=Ce().ui.t,n=X(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Ao(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=R$();let p;var m=h(l);let y=v(()=>!!e.videoEpisode.completed);_d(m,{get completed(){return r(y)}}),g(l),E(u=>{p=J(l,1,"interactive-episode-icon svelte-bklhpe",null,p,u),rt(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Dr(l,"clientWidth",u=>D(n,u)),_(s,l)},$$slots:{default:!0}}),z()}var N$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),D$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),O$={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 Tf(t,e){K(t,O$);let i=f(e,"videoEpisodes",19,()=>[]);var o=D$();Ti(o,21,i,n=>n.from,(n,a)=>{var s=N$();let d;var l=h(s),p=h(l),m=A(p,2);let y;g(l),g(s),E((u,$)=>{d=J(s,1,"video-episode svelte-1u6kv8l",null,d,u),rt(s,`left: ${r(a).from}%; width: ${r(a).width}%`),rt(p,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),y=J(m,1,"video-episode-filled svelte-1u6kv8l",null,y,$),rt(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 H$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&D(i,pe(e().getBoundingClientRect())),o()||r(n)||!e())return;D(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function F$(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 U$(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 z$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var q$=L("<div></div>"),W$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),K$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Q$={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 ca(t,e){U(e,!0),W(t,Q$);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,Mo.noop),C=f(e,"onHandleMove",3,Mo.noop),T=f(e,"onPointerUp",3,Mo.noop),k=f(e,"onPointerEnter",3,Mo.noop),P=f(e,"onPointerMove",3,Mo.noop),A=f(e,"onPointerLeave",3,Mo.noop),I=f(e,"onMouseEnter",3,Mo.noop),V=f(e,"onMouseLeave",3,Mo.noop),q=f(e,"onWheelUp",3,Mo.noop),Q=f(e,"onWheelDown",3,Mo.noop),H=f(e,"onWheelLeft",3,Mo.noop),Y=f(e,"onWheelRight",3,Mo.noop),ne=f(e,"onDisabledClick",3,Mo.noop),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=Kt(),B=X(void 0),be=X(!1),le=v(()=>{var re;return(re=he())!=null?re:0}),Ke=v(()=>{var re;return(0,Mo.isNonNullable)(m())&&((re=m()[m().length-1])==null?void 0:re.time)<r(le)}),ee=v(()=>(0,Mo.isNonNullable)(m())&&m().length&&r(Ke)&&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),qe=we(re.clientX);k()(Ne,qe,r(B).width)}function j(re){re.preventDefault(),!_()&&A()()}function te(){I()()}function Oe(){V()()}function je(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 qe=oe.features.episodesClustering&&!u()?oe.episodeMinWidthPc:0,Ge=[],pt=m()[0].time/r(le)*100,Ze=0,tt=0;for(let ht=1;ht<m().length;ht++)Ze=m()[ht].time/r(le)*100,Ze-pt>qe&&(Ge.push({from:pt,width:Math.max(0,Ze-pt),loadedWidth:Math.max(0,Math.min(Ze,re)-pt),filledWidth:Math.max(0,Math.min(Ze,Ne)-pt),interactive:m()[ht-1].interactive,completed:m()[ht-1].completed}),pt=m()[ht].time/r(le)*100,tt++);let it={from:pt,width:Math.max(0,100-pt),loadedWidth:Math.max(0,Math.min(re,100)-pt),filledWidth:Math.max(0,Math.min(Ne,100)-pt),interactive:m()[tt].interactive,completed:m()[tt].completed};100-pt<qe?(tt-=1,Ge[tt].width+=100-pt,Ge[tt].loadedWidth+=Math.max(0,Math.min(re,100)-pt),Ge[tt].filledWidth+=Math.max(0,Math.min(Ne,100)-pt)):Ge[tt]=it;let We=m()[0].time;if(We!==0){let ht=We/r(le)*100;Ge.unshift({from:0,width:ht,loadedWidth:Math.min(ht,re),filledWidth:Math.min(ht,Ne)})}return Ge}var Ye=K$(),ct=pe(Ye);{var ut=re=>{var Ne=q$();let qe;ki(Ne,21,()=>r(ee),Ge=>Ge.from,(Ge,pt)=>{var Ze=De(),tt=pe(Ze);{var it=We=>{Sf(We,{get videoEpisode(){return r(pt)},get disabled(){return _()}})};R(tt,We=>{r(pt).interactive&&We(it)})}$(Ge,Ze)}),g(Ne),E(Ge=>qe=J(Ne,1,"interactive-icons svelte-1tpemng",null,qe,Ge),[()=>({mobile:l(),hidden:l()&&!r(be)})]),$(re,Ne)};R(ct,re=>{u()&&re(ut)})}var st=M(ct,2);let It;st.__pointerdown=[H$,i,B,_,be,$e,y],st.__pointermove=[F$,_,$e,we,P,B,be,C],st.__pointerup=[U$,_,be,$e,T],st.__click=[z$,_,ne,$e];var bt=h(st);{var Yt=re=>{Cf(re,{get videoEpisodes(){return r(ee)},get disabled(){return _()},get isMobile(){return l()}})},ni=re=>{var Ne=W$(),qe=h(Ne),Ge=M(qe,2);let pt;g(Ne),E(Ze=>{rt(qe,`transform: translateX(${Z()*100}%);`),pt=J(Ge,1,"filled svelte-1tpemng",null,pt,Ze),rt(Ge,`transform: translateX(${de()*100}%);`)},[()=>({"active-live":d()})]),$(re,Ne)};R(bt,re=>{r(ee).length?re(Yt):re(ni,!1)})}var Et=M(bt,2);let Nt;var O=h(Et);let _e;g(Et),g(st),ft(st,re=>i(re),()=>i()),E((re,Ne,qe)=>{var Ge,pt;It=J(st,1,`slider ${(Ge=o())!=null?Ge:""}`,"svelte-1tpemng",It,re),Be(st,"aria-label",Le()),Be(st,"aria-valuemin",Ae()),Be(st,"aria-valuemax",he()),Be(st,"aria-valuenow",se()),Be(st,"aria-valuetext",Me()),Be(st,"data-testid",(pt=n())!=null?pt:null),Nt=J(Et,1,"handleWrap svelte-1tpemng",null,Nt,Ne),rt(Et,`transform: translateX(${ce()*100}%);`),_e=J(O,1,"handle svelte-1tpemng",null,_e,qe)},[()=>({disabled:_(),"slider-dragging":r(be),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),Tt("pointerenter",st,me),Tt("pointerleave",st,j),Tt("mouseenter",st,te),Tt("mouseleave",st,Oe),Tt("wheel",st,je),$(t,Ye),z()}at(["pointerdown","pointermove","pointerup","click"]);var Yi=(t,e)=>Ys[t]>=Ys[e],i1=(t,e)=>Ys[t]<Ys[e],Ss=(t,e)=>Ys[t]<=Ys[e],o1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var G$=L("<div><!></div>"),j$=L("<div><!> <!></div>"),Y$={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 Tf(t,e){var je,$e;U(e,!0),W(t,Y$);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=Kt(),m=l.state.volume$,b=l.state.muted$,{setVolume:u,startVolumeChanging:_,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,C=(je=l.callbacks)==null?void 0:je.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(()=>Ss(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(){Xc(l,s(),p.controls.volumeStepWheel)}function Ae(){Jc(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 Ke(we){we.preventDefault(),we.deltaY<0?Le():we.deltaY>0&&Ae()}var ee=j$();let me;var j=h(ee);da(j,{get content(){return r(H)},translateY:-18,children:(we,Ve)=>{let Ye=v(()=>r(Q)?"btn-volume-vertical":"btn-volume-horizontal");Rt(we,{className:"btn-full-opacity",get disabled(){return r(de)},get testId(){return r(Ye)},get ariaLabel(){return r(Y)},get click(){return e.click},get ariaKeyShortCut(){return Hr.KeyM},children:(ct,ut)=>{ws(ct,{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=G$();let Ye;var ct=h(Ve);let ut=v(()=>r(Q)?"volumeBar-slider-vertical":""),st=v(()=>r(Q)&&!r(I)),It=v(()=>r(Q)?Me:bd.noop),bt=v(()=>r(Q)?oe:bd.noop),Yt=v(()=>Math.round(r(ne)*100)),ni=v(()=>`${Math.round(r(ne)*100)}%`),Et=v(()=>r(Q)?"volume-slider-vertical":"volume-slider");ca(ct,{get className(){return r(ut)},get isHidden(){return r(st)},get isVertical(){return r(Q)},withWheelHandler:!0,onWheelUp:Le,onWheelDown:Ae,onPointerDown:ce,onHandleMove:he,onPointerUp:se,get onPointerEnter(){return r(It)},get onPointerLeave(){return r(bt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Yt)},get ariaValueText(){return r(ni)},get filledProgress(){return r(ne)},get handleProgress(){return r(ne)},get testId(){return r(Et)}}),g(Ve),E(Nt=>Ye=J(Ve,1,"volumeBar svelte-1auih1j",null,Ye,Nt),[()=>({"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)})]),Tt("mouseenter",ee,function(...we){var Ve;(Ve=r(Q)?B:bd.noop)==null||Ve.apply(this,we)}),Tt("mouseleave",ee,function(...we){var Ve;(Ve=r(Q)?be:bd.noop)==null||Ve.apply(this,we)}),Tt("wheel",ee,Ke),$(t,ee),z(),o()}var n1=require("@vkontakte/videoplayer-shared/es2018");var Z$=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 If(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Z$();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 X$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
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 da(t,e){U(e,!0),K(t,Q$);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,()=>[]),y=f(e,"withWheelHandler",3,!1),u=f(e,"isInteractive",3,!1),$=f(e,"disabled",3,!1),w=f(e,"hideHandel",3,!1),b=f(e,"onPointerDown",3,Mo.noop),C=f(e,"onHandleMove",3,Mo.noop),T=f(e,"onPointerUp",3,Mo.noop),I=f(e,"onPointerEnter",3,Mo.noop),M=f(e,"onPointerMove",3,Mo.noop),P=f(e,"onPointerLeave",3,Mo.noop),k=f(e,"onMouseEnter",3,Mo.noop),V=f(e,"onMouseLeave",3,Mo.noop),W=f(e,"onWheelUp",3,Mo.noop),Y=f(e,"onWheelDown",3,Mo.noop),F=f(e,"onWheelLeft",3,Mo.noop),Q=f(e,"onWheelRight",3,Mo.noop),ie=f(e,"onDisabledClick",3,Mo.noop),Z=f(e,"loadedProgress",3,0),re=f(e,"filledProgress",3,0),le=f(e,"handleProgress",3,0),Ae=f(e,"ariaLabel",3,""),Me=f(e,"ariaValueMin",3,void 0),ge=f(e,"ariaValueMax",3,void 0),se=f(e,"ariaValueNow",3,void 0),Ee=f(e,"ariaValueText",3,""),ne=qt(),R=X(void 0),xe=X(!1),_e=v(()=>{var oe;return(oe=ge())!=null?oe:0}),ze=v(()=>{var oe;return(0,Mo.isNonNullable)(m())&&((oe=m()[m().length-1])==null?void 0:oe.time)<r(_e)}),H=v(()=>(0,Mo.isNonNullable)(m())&&m().length&&r(ze)&&r(_e)?Ie(Z()*100,re()*100):[]);function ae(oe){if(oe.preventDefault(),i()&&D(R,pe(i().getBoundingClientRect())),$())return;let Re=we(oe.clientX,oe.clientY),Qe=Ve(oe.clientX);I()(Re,Qe,r(R).width)}function he(oe){oe.preventDefault(),!$()&&P()()}function ee(){k()()}function De(){V()()}function Ze(oe){$()||y()&&(oe.preventDefault(),oe.deltaY<0?W()():oe.deltaY>0?Y()():oe.deltaX>0?Q()():F()())}function we(oe,Re){return s()?Math.max(0,Math.min(1,(r(R).height-(Re-r(R).top))/r(R).height)):Math.min(Math.max(oe-r(R).x,0),r(R).width)/r(R).width}function Ve(oe){return Math.min(Math.max(oe-r(R).x,0),r(R).width)}function Ie(oe,Re){let Qe=ne.features.episodesClustering&&!u()?ne.episodeMinWidthPc:0,Ye=[],Le=m()[0].time/r(_e)*100,nt=0,je=0;for(let Je=1;Je<m().length;Je++)nt=m()[Je].time/r(_e)*100,nt-Le>Qe&&(Ye.push({from:Le,width:Math.max(0,nt-Le),loadedWidth:Math.max(0,Math.min(nt,oe)-Le),filledWidth:Math.max(0,Math.min(nt,Re)-Le),interactive:m()[Je-1].interactive,completed:m()[Je-1].completed}),Le=m()[Je].time/r(_e)*100,je++);let ht={from:Le,width:Math.max(0,100-Le),loadedWidth:Math.max(0,Math.min(oe,100)-Le),filledWidth:Math.max(0,Math.min(Re,100)-Le),interactive:m()[je].interactive,completed:m()[je].completed};100-Le<Qe?(je-=1,Ye[je].width+=100-Le,Ye[je].loadedWidth+=Math.max(0,Math.min(oe,100)-Le),Ye[je].filledWidth+=Math.max(0,Math.min(Re,100)-Le)):Ye[je]=ht;let at=m()[0].time;if(at!==0){let Je=at/r(_e)*100;Ye.unshift({from:0,width:Je,loadedWidth:Math.min(Je,oe),filledWidth:Math.min(Je,Re)})}return Ye}var Ue=K$(),ct=ue(Ue);{var ut=oe=>{var Re=q$();let Qe;Ti(Re,21,()=>r(H),Ye=>Ye.from,(Ye,Le)=>{var nt=Oe(),je=ue(nt);{var ht=at=>{Cf(at,{get videoEpisode(){return r(Le)},get disabled(){return $()}})};B(je,at=>{r(Le).interactive&&at(ht)})}_(Ye,nt)}),g(Re),E(Ye=>Qe=J(Re,1,"interactive-icons svelte-1tpemng",null,Qe,Ye),[()=>({mobile:l(),hidden:l()&&!r(xe)})]),_(oe,Re)};B(ct,oe=>{u()&&oe(ut)})}var ot=A(ct,2);let It;ot.__pointerdown=[H$,i,R,$,xe,we,b],ot.__pointermove=[F$,$,we,Ve,M,R,xe,C],ot.__pointerup=[U$,$,xe,we,T],ot.__click=[z$,$,ie,we];var gt=h(ot);{var Qt=oe=>{Tf(oe,{get videoEpisodes(){return r(H)},get disabled(){return $()},get isMobile(){return l()}})},ti=oe=>{var Re=W$(),Qe=h(Re),Ye=A(Qe,2);let Le;g(Re),E(nt=>{rt(Qe,`transform: translateX(${Z()*100}%);`),Le=J(Ye,1,"filled svelte-1tpemng",null,Le,nt),rt(Ye,`transform: translateX(${re()*100}%);`)},[()=>({"active-live":d()})]),_(oe,Re)};B(gt,oe=>{r(H).length?oe(Qt):oe(ti,!1)})}var At=A(gt,2);let Nt;var O=h(At);let be;g(At),g(ot),vt(ot,oe=>i(oe),()=>i()),E((oe,Re,Qe)=>{var Ye,Le;It=J(ot,1,`slider ${(Ye=o())!=null?Ye:""}`,"svelte-1tpemng",It,oe),Be(ot,"aria-label",Ae()),Be(ot,"aria-valuemin",Me()),Be(ot,"aria-valuemax",ge()),Be(ot,"aria-valuenow",se()),Be(ot,"aria-valuetext",Ee()),Be(ot,"data-testid",(Le=n())!=null?Le:null),Nt=J(At,1,"handleWrap svelte-1tpemng",null,Nt,Re),rt(At,`transform: translateX(${le()*100}%);`),be=J(O,1,"handle svelte-1tpemng",null,be,Qe)},[()=>({disabled:$(),"slider-dragging":r(xe),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),Tt("pointerenter",ot,ae),Tt("pointerleave",ot,he),Tt("mouseenter",ot,ee),Tt("mouseleave",ot,De),Tt("wheel",ot,Ze),_(t,Ue),z()}st(["pointerdown","pointermove","pointerup","click"]);var Ki=(t,e)=>Ys[t]>=Ys[e],o1=(t,e)=>Ys[t]<Ys[e],ws=(t,e)=>Ys[t]<=Ys[e],n1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var G$=L("<div><!></div>"),Y$=L("<div><!> <!></div>"),j$={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 If(t,e){var we,Ve;U(e,!0),K(t,j$);let[i,o]=Ne(),n=()=>S(I,"$isAudioAvailable$",i),a=()=>S(y,"$muted$",i),s=()=>S(m,"$volume$",i),d=()=>S(b,"$currentGridType$",i),l=Ce(),p=qt(),m=l.state.volume$,y=l.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=l.actions.internal,b=l.ui.currentGridType$,C=(we=l.callbacks)==null?void 0:we.onAudioDoesNotExistHint,T=(Ve=l.callbacks)==null?void 0:Ve.onAudioDisabledHint,I=l.state.isAudioAvailable$,M=l.state.isAudioDisabled,P=l.ui.t,k=X(!1),V,W=v(()=>e.isAds||n()),Y=v(()=>!r(W)||a()||s()===0),F=v(()=>ws(d(),"s")),Q=v(()=>r(F)?"":r(Y)?!n()||M?P("tooltip_sound_unavailable"):P("tooltip_volume_on"):P("tooltip_volume_muted")),ie=P("aria_label_volume"),Z=v(()=>r(Y)?0:s()),re=!1,le=v(()=>e.isAds?!1:M?!T:n()?!1:!C);function Ae(Ie){$(),u(Ie)}function Me(){Xc(l,s(),p.controls.volumeStepWheel)}function ge(){Jc(l,s(),p.controls.volumeStepWheel)}function se(Ie){u(Ie)}function Ee(Ie){u(Ie),w()}function ne(){re=!0}function R(){re=!1,ze()}function xe(){clearTimeout(V),D(k,!0)}function _e(){ze()}function ze(){V=window.setTimeout(()=>{re||D(k,!1)},p.controls.volumeBarTimeout)}function H(Ie){Ie.preventDefault(),Ie.deltaY<0?Me():Ie.deltaY>0&&ge()}var ae=Y$();let he;var ee=h(ae);la(ee,{get content(){return r(Q)},translateY:-18,children:(Ie,Ue)=>{let ct=v(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Bt(Ie,{className:"btn-full-opacity",get disabled(){return r(le)},get testId(){return r(ct)},ariaLabel:ie,get click(){return e.click},get ariaKeyShortCut(){return Or.KeyM},role:"switch",children:(ut,ot)=>{xs(ut,{get volume(){return s()},get muted(){return r(Y)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var De=A(ee,2);{var Ze=Ie=>{var Ue=G$();let ct;var ut=h(Ue);let ot=v(()=>r(F)?"volumeBar-slider-vertical":""),It=v(()=>r(F)&&!r(k)),gt=v(()=>r(F)?ne:bd.noop),Qt=v(()=>r(F)?R:bd.noop),ti=v(()=>Math.round(r(Z)*100)),At=v(()=>`${Math.round(r(Z)*100)}%`),Nt=v(()=>r(F)?"volume-slider-vertical":"volume-slider");da(ut,{get className(){return r(ot)},get isHidden(){return r(It)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:Me,onWheelDown:ge,onPointerDown:Ae,onHandleMove:se,onPointerUp:Ee,get onPointerEnter(){return r(gt)},get onPointerLeave(){return r(Qt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(ti)},get ariaValueText(){return r(At)},get filledProgress(){return r(Z)},get handleProgress(){return r(Z)},get testId(){return r(Nt)}}),g(Ue),E(O=>ct=J(Ue,1,"volumeBar svelte-1auih1j",null,ct,O),[()=>({"volumeBar-vertical":r(F)})]),_(Ie,Ue)};B(De,Ie=>{r(W)&&Ie(Ze)})}g(ae),E(Ie=>he=J(ae,1,"volumeBar-container svelte-1auih1j",null,he,Ie),[()=>({vertical:r(F)})]),Tt("mouseenter",ae,function(...Ie){var Ue;(Ue=r(F)?xe:bd.noop)==null||Ue.apply(this,Ie)}),Tt("mouseleave",ae,function(...Ie){var Ue;(Ue=r(F)?_e:bd.noop)==null||Ue.apply(this,Ie)}),Tt("wheel",ae,H),_(t,ae),z(),o()}var r1=require("@vkontakte/videoplayer-shared/es2018");var Z$=ye('<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 kf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Z$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(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 X$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
177
|
+
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Ef(t,e){K(t,X$);let i=f(e,"isFullscreen",8,!1),o=br(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");kf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function $d(t,e){U(e,!0);let i=f(e,"isFullscreen",3,!1),o=f(e,"click",3,r1.noop),n=Ce(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Bt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let m=bs(p);a.set(m),o()()},get ariaKeyShortCut(){return Or.KeyF},children:(p,m)=>{Ef(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var J$=ye('<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 Pf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=J$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(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 e2=ye('<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 Af(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=e2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(4),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),_(t,o)}var t2={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,t2);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`);Pf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function yd(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=Kt(),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()||Ss(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");Rt(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=>{Af(Z,{get short(){return r(k)},get isCyrillic(){return s()}})},ne=Z=>{Ef(Z,{})};R(H,Z=>{r(T)?Z(Y):Z(ne,!1)})}$(V,Q)},$$slots:{default:!0}}),z(),o()}var r1=require("@vkontakte/videoplayer-core/es2018");var Mf=require("@vkontakte/videoplayer-core/es2018"),o2=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>'),n2=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>'),r2={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 Mf(t,e){K(t,t2);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`);Af(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function yd(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S($,"$isMobile",i),a=()=>S(u,"$currentGridType$",i),s=()=>S(b,"$isCyrillicRelatedInterface$",i),d=f(e,"ref",15,void 0),l=f(e,"logoClickable",3,!1),p=f(e,"targetUrl",3,""),m=qt(),y=Ce(),u=y.ui.currentGridType$,$=y.ui.isMobile,w=y.ui.t,b=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"),I=v(()=>(n()||ws(a(),"l"))&&r(T)),M=()=>{var V,W;e.click(),(V=y.callbacks)!=null&&V.onLogoClicked?(W=y.callbacks)==null||W.onLogoClicked():p()&&window.open(p(),"_blank")},P=v(()=>!l()),k=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Bt(t,{className:"btn-full-opacity",get disabled(){return r(P)},click:M,get testId(){return r(k)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(V){d(V)},children:(V,W)=>{var Y=Oe(),F=ue(Y);{var Q=Z=>{Mf(Z,{get short(){return r(I)},get isCyrillic(){return s()}})},ie=Z=>{Pf(Z,{})};B(F,Z=>{r(T)?Z(Q):Z(ie,!1)})}_(V,Y)},$$slots:{default:!0}}),z(),o()}var s1=require("@vkontakte/videoplayer-core/es2018");var Lf=require("@vkontakte/videoplayer-core/es2018"),o2=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>'),n2=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>'),r2={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.`},Lh=P_;var is=new Map;is.set(el.Interf
|
|
|
225
225
|
100% {
|
|
226
226
|
opacity: 1;
|
|
227
227
|
}
|
|
228
|
-
}`};function
|
|
229
|
-
transform: rotate(${n()}deg) ${r(
|
|
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=Dr();E(Ve=>ve(we,Ve),[()=>F("tooltip_episode_unfinished")]),$($e,we)},je=$e=>{var we=Dr();E(()=>ve(we,r(q).text||"")),$($e,we)};R(te,$e=>{u()&&r(q).completed===!1?$e(Oe):$e(je,!1)})}$(me,j)};R(be,me=>{r(q)&&me(le)})}g(B);var Ke=M(B,2);{var ee=me=>{var j=d2(),te=h(j,!0);g(j),E(()=>ve(te,d())),$(me,j)};R(Ke,me=>{u()||me(ee)})}g(he),E(me=>{se=J(he,1,"timeline-preview svelte-1wqg760",null,se,me),rt(he,`width: ${r(Q)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),$(t,he),z(),o()}var p2=L('<span class="time svelte-1jr6obn"> </span>'),f2=L("<!> <!>",1),m2={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 Nf(t,e){var Ge,pt,Ze,tt,it;U(e,!0),W(t,m2);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=Kt(),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=(Ge=T.callbacks)==null?void 0:Ge.onDisabledTimelineClick,he=T.ui.controls.disabledControls$,se=(Ze=(pt=T.callbacks)==null?void 0:pt.uiInfo)==null?void 0:Ze.onTimelineMouseEnter,Me=(it=(tt=T.callbacks)==null?void 0:tt.uiInfo)==null?void 0:it.onTimelineMouseLeave,oe=T.ui.t,B=k.features.interactiveResponsiveUi,be=v(()=>Z?n():H),le=v(()=>on(a())),Ke=v(()=>on(s())),ee=v(()=>s()/a()),me=v(()=>d()||l()),j=X(!1),te=X(""),Oe=X(0),je=X(0),$e=X(0),we=v(()=>({containerWidth:r(je),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"),Ye=v(()=>oe("aria_timeline_value",{position:r(Ke),duration:r(le)}));function ct(We){return!Le||!Z?We:Le(We*a())/a()}function ut(We){T.actions.internal.startScrubbing(ct(We))}function st(We){l()||T.actions.internal.progressScrubbing(ct(We))}function It(We){T.actions.internal.completeScrubbing(ct(We)),D(j,!1)}function bt(We,ht,Ut){Et(We,ht,Ut),D(j,!0)}function Yt(We,ht,Ut){Et(We,ht,Ut),D(j,!0)}function ni(){D(j,!1)}function Et(We,ht,Ut){D($e,fe(ct(We))),D(Oe,fe(ht)),Ut&&D(je,fe(Ut)),D(te,fe(Nt(We)))}function Nt(We){let ht=on((p()?1-We:We)*a());return p()?`-${ht}`:ht}var O=f2(),_e=pe(O);Vf(_e,ts(()=>r(we),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(We,ht)=>{var Ut=De(),Je=pe(Ut);{var jt=et=>{Rf(et,{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=et=>{var Zt=p2(),Di=h(Zt,!0);g(Zt),E(()=>ve(Di,r(te))),$(et,Zt)};R(Je,et=>{k.features.timelinePreview&&Y&&!p()?et(jt):et(ti,!1)})}$(We,Ut)},$$slots:{default:!0}}));var re=M(_e,2);let Ne=v(()=>Math.round(r(ee)*100)),qe=v(()=>_().has("TIMELINE"));ca(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(Ye)},get loadedProgress(){return u()},get filledProgress(){return r(ee)},get handleProgress(){return r(ee)},get videoEpisodes(){return r(be)},onPointerDown:ut,onHandleMove:st,onPointerMove:Yt,onPointerUp:It,onPointerEnter:bt,onPointerLeave:ni,onMouseEnter:se,onMouseLeave:Me,onDisabledClick:Ae,isInteractive:Z,get disabled(){return r(qe)},get hideHandel(){return l()},get ref(){return C()},set ref(We){C(We)}}),$(t,O),z(),o()}var v2={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function wd(t,e){U(e,!0),W(t,v2);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(()=>on(s())),b=v(()=>on(a())),u=v(()=>a()/s()),_=v(()=>p("aria_timeline_value",{position:r(b),duration:r(m)})),w=v(()=>Math.round(r(u)*100));ca(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 g2=L("<div><!></div>"),h2=L("<div></div>"),_2={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 ua(t,e){U(e,!0),W(t,_2);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=g2();let Q;var H=h(q);{var Y=Z=>{wd(Z,{get position(){return s()},get duration(){return d()}})},ne=Z=>{Nf(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=h2();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()}var d1=require("@vkontakte/videoplayer-shared/es2018");var b2=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 Bf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=b2();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 $2=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 Df(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=$2();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 y2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),x2=L('<span class="text svelte-1yhs2ga"> </span>'),w2=L('<span class="text count svelte-1yhs2ga"> </span>'),S2=L("<!> <!>",1),C2={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 Sd(t,e){var ce,Le,Ae;U(e,!0),W(t,C2);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:d1.noop,_=!!((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=$s(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=iu(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(()=>Yi(n(),"xl")?"FULL":Yi(n(),"m")&&i1(n(),"xl")?"COUNT":"SHORT"),H=v(()=>`${k("tooltip_episodes")}: ${r(q)}`),Y=async(he,se,Me)=>{await $o(),(he==null?void 0:he.getAttribute("aria-expanded"))==="false"&&se&&!Me&&wt(()=>{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":"");Rt(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=y2(),j=pe(me),te=h(j,!0);g(j);var Oe=M(j,2),je=h(Oe);Df(je,{}),g(Oe),E(()=>ve(te,r(q))),$(ee,me)},Ke=ee=>{var me=S2(),j=pe(me);Bf(j,{});var te=M(j,2);{var Oe=$e=>{var we=x2(),Ve=h(we,!0);g(we),E(()=>ve(Ve,r(q))),$($e,we)},je=($e,we)=>{{var Ve=Ye=>{var ct=w2(),ut=h(ct,!0);g(ct),E(()=>ve(ut,m().length)),$(Ye,ct)};R($e,Ye=>{r(Q)==="COUNT"&&Ye(Ve)},we)}};R(te,$e=>{r(Q)==="FULL"?$e(Oe):$e(je,!1)})}$(ee,me)};R(be,ee=>{d()?ee(le):ee(Ke,!1)})}$(Me,B)},$$slots:{default:!0}})};R(Z,he=>{r(I)&&he(de)})}$(t,ne),z(),o()}var y1=require("@vkontakte/videoplayer-shared/es2018");var ui=require("@vkontakte/videoplayer-core/es2018"),yt=require("@vkontakte/videoplayer-shared/es2018"),zr=require("@vkontakte/videoplayer-statistics/es2018");var ze=require("@vkontakte/videoplayer-shared/es2018"),Zi=require("@vkontakte/videoplayer-shared/es2018");var c1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var T2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ou=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 Zi.Subject,loadStarted$:new Zi.Subject,loadEnded$:new Zi.Subject,loadError$:new Zi.Subject,ready$:new Zi.Subject,slotRequested$:new Zi.Subject,started$:new Zi.Subject,timeRemained$:new Zi.Subject,paused$:new Zi.Subject,resumed$:new Zi.Subject,ended$:new Zi.Subject,empty$:new Zi.Subject,skipped$:new Zi.Subject,clicked$:new Zi.Subject,closed$:new Zi.Subject,error$:new Zi.Subject};this.loadAdman=e=>(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,ze.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,ze.now)()]}),i(),this.events.loadEnded$.next()):(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,ze.now)()]}),o())};(0,Zi.addScript)(T2,e,this.loadTimeout).then(()=>{ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,ze.now)()]}),window.AdmanHTML?(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,ze.now)()]}),i(),this.events.loadEnded$.next()):(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,ze.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[(0,ze.now)()]}),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?(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,ze.now)()]}),i(),this.events.loadEnded$.next()):(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,ze.now)()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,ze.now)()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,ze.now)()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,ze.now)()]}),!d&&(window.AdmanHTML?(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,ze.now)()]}),i(),this.events.loadEnded$.next()):(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,ze.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,ze.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,ze.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),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;ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ze.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ze.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,ze.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ze.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ze.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ze.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ze.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,ze.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,ze.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,ze.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),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}=(0,ze.detectEmbed)(),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:c1(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){ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[(0,ze.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,ze.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.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(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ze.now)()]}),this.adsState){this.log({message:"toggle play"});let i=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(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,ze.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ze.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ze.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ze.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,ze.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,p,m,b,u;ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,ze.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(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&&(0,Zi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var u1=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 Of=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 nu,{startTime:m,endTime:b}=p.parse(l);s.startTime=m,s.endTime=b}else if(l.trim()!==""){let p=new Hf,{texts:m}=p.parse(l);s.texts=[...s.texts,...m]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},nu=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}},Hf=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 nu;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}},p1=Of;var su=require("@vkontakte/videoplayer-shared/es2018"),pa,Pi,Ff=0,Uf=!1,f1="",m1=(t,e=0,i=0)=>t<e&&t<i,ru=(t,e=0,i=0)=>t>=e&&t<=i,I2=(t,e=0,i=0)=>t>e&&t>i,v1=(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})=>ru(t,p,m));let a=t>=Ff,s=t<Ff;if(Ff=t,s&&(Uf=!1),(0,su.isNonNullable)(pa)&&ru(t,pa.startTime,pa.endTime)&&f1===e.value)return pa;if(!(0,su.isNonNullable)(Pi)&&(n!=null&&n.length)&&!Uf){Pi=n.find(({startTime:p,endTime:m})=>ru(t,p,m)||a&&m1(t,p,m)),pa=void 0,!(0,su.isNonNullable)(Pi)&&n[n.length-1].endTime<t&&(Uf=!0);return}else{if(ru(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return pa=Pi,Pi=void 0,f1=e.value,pa;(a&&I2(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||s&&m1(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=void 0)}};var au={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"},k2={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"},lu=t=>{var e,i;return(i=(e=au[t])!=null?e:au[k2[t]])!=null?i:void 0};var g1=require("@vkontakte/videoplayer-shared/es2018"),xN=require("@vkontakte/videoplayer-statistics/es2018"),du=class{constructor(e,i=new g1.Subscription){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Cd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Cd||{});var Ur=t=>t!=null?t:0,os=(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(Ur(i==null?void 0:i.top)-Ur(o==null?void 0:o.top)),left:Math.round(Ur(i==null?void 0:i.left)-Ur(o==null?void 0:o.left)),bottom:Math.round(Ur(i==null?void 0:i.bottom)-Ur(o==null?void 0:o.top)),right:Math.round(Ur(i==null?void 0:i.right)-Ur(o==null?void 0:o.left))}},pl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Ur(e==null?void 0:e.width),height:Ur(e==null?void 0:e.height)}};var h1=({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 lv,dv,cv;let he={..._,configName:[...(lv=_.configName)!=null?lv:[],"ui"],isAudioDisabled:s,live:{...(dv=_.live)!=null?dv:{},isLiveCatchUpMode:!!n}},se=u,Me=yt.TracerFactory.createRootTracer(se.features.tracer),oe=Me.createComponentTracer("Store"),B=w||new ui.Player(he,Me);Le==null||Le.expose({corePlayer:B});let be=new yt.Logger,le=new ou(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}),Ke=ea.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,je,$e={},we=new Nc,Ve=de?ei(de.oneStat.vsid$):Jn(void 0),Ye=ae(hs()),ct=ae(!1),ut=(cv=ee==null?void 0:ee.info.isActive$)!=null?cv:new yt.ValueSubject(!1),st=ae(0),It=ae([]),bt=(0,yt.merge)(B.events.fatalError$,B.events.managedError$).subscribe(c=>It.update(x=>[...x,c])),Yt=Jn(!1,c=>{let x=B.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ni=async c=>{var ue;let x=Object.values(yt.InterfaceLanguage).includes(c);if(se.downloadVKLanguages&&(x&&se.updateBuiltinLanguages||!Kp(c))){let Ue;try{Ue=await(0,yt.loadVKLangPack)(c,eh,th)}catch(Ct){(ue=de==null?void 0:de.oneStat)==null||ue.logError({errorType:"VKLangPack",fatal:!1}),Ke==null||Ke.report(Ct,{errorType:"VKLangPack",fatal:!1})}Ue&&(Wp({language:c,pack:Ue,fallback:se.defaultLanguage}),Et.set(c))}Kp(c)&&Et.set(c)},Et=ae(t),Nt=ae(e);ni(t);let O=(c,x)=>{let N=Ce(Et);return Qp(N,c,x,se.defaultLanguage)},_e=ae("thumb"),re=(()=>{let c=wi([Yt,_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 qe=c=>{let x=c.container;x.append(B.experimental.element$.getValue()),ht=new MutationObserver(N=>{let{removedNodes:ue}=N[0];ue.length&&x.append(B.experimental.element$.getValue())}),ht.observe(x,{childList:!0})},Ge=c=>{te({message:`init video, config: ${JSON.stringify(c)}`}),C?qe(c):(yt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,yt.now)()]}),B.initVideo(c)),oe.log("init video",{isInteractive:C}),c.subtitles&&B.setExternalTextTracks(c.subtitles),Oe=c},pt=new yt.Subject,Ze=c=>pt.next(c),tt=new yt.Subject,it=new yt.Subject,We=new yt.Subject,ht=null,Ut={actionRewind$:tt,actionSeek$:it,inPiP$:ut,inFullscreen$:new yt.Observable(c=>Ye.subscribe(x=>c.next(x))),actionSetSubtitle$:We,nextMovie$:pt};if(de){let{oneStat:c,statSubscription:x}=de;C||x.add(c.attachTo(B)),x.add(c.attachToUi(Ut)),x.add(c.attachToAds(le.events)),c.authorize(a).catch(N=>{te({message:`onestat auth error ${String(N)}`})})}if(Ke){let c=new yt.Subscription,x=(N,ue)=>c.add(N.subscribe(ue));if(x(B.events.managedError$,N=>{Ke.logIError(N)}),x(B.events.fatalError$,N=>{Ke.logIError(N,!0)}),de){let{oneStat:N}=de;x(N.experimental.error$,ue=>{Ke.logIError(ue)})}Ke.sentrySubscription.add(c)}let Je=()=>{ui.clientChecker.device.isIOS&&je&&Bh(je).catch(c=>{te({message:`exitIosSafariFullscreen failed: ${c}`})})},jt=new yt.Subscription().add(B.experimental.element$.subscribe(c=>{c&&(je=c,c.classList.add("player-media"),ia(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;Je(),(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;ia(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(()=>{Pt.state.loadedMetadata$.set(!0)})).add(B.info.is3DVideo$.subscribe(c=>{Pt.ui.is3DVideo.set(c)})).add(B.info.isEnded$.subscribe(c=>{C&&(c?(k!=null&&k.getValue()&&Ne.add(Jl),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 yt.Subscription,et=()=>{var Ct,Ot,Qt;let{debugLog:c}=se,x,N="#9df7b7",ue="#efd169";if(c&&c!==!0){let{colors:Ht}=c;x=c.tag,N=(Ct=Ht==null?void 0:Ht[0])!=null?Ct:N,ue=(Qt=(Ot=Ht==null?void 0:Ht[1])!=null?Ot:Ht==null?void 0:Ht[0])!=null?Qt:ue}let Ue=x?`: ${x}`:"";ti.add(B.events.log$.subscribe(Ht=>{console.debug(`%c sdk${Ue} `,`background:${N};`,`sdk component: ${Ht.component}`,Ht.message)})).add(be.log$.subscribe(Ht=>{console.debug(`%c ui${Ue} `,`background:${ue};`,`ui component: ${Ht.component}.`,Ht.message)}))},Zt=()=>{ti.unsubscribe()},Di=(c,x)=>{oe.log("start camera manual rotation",{mx:c,my:x}),B.startCameraManualRotation(c,x)},Wi=(c=!1)=>{oe.log("stop camera manual rotation",{immediate:c}),B.stopCameraManualRotation(c)},Lt=(c,x,N)=>{oe.log("move camera focus px",{xpx:c,ypx:x,dt:N}),B.moveCameraFocusPX(c,x,N)},_t=()=>{B.holdCamera()},Bt=()=>{B.releaseCamera()},mo=Jn(B.info.position$.getValue(),c=>{let x,N,ue=()=>{let Ue=B.info.playbackState$.getValue(),Ct=B.info.isLive$.getValue(),Ot=B.info.duration$.getValue(),Qt=B.info.position$.getValue();if(Ue&&[ui.PlaybackState.PLAYING,ui.PlaybackState.PAUSED].includes(Ue)){let Ht=Ct?Qt-Ot:B.getExactTime();Ht!==N&&c(Ht),N=Ht}x=requestAnimationFrame(ue)};return ue(),()=>cancelAnimationFrame(x)}),rn=ei(B.info.playbackState$),$n=ei(B.info.currentBuffer$),wo=ei(B.info.isEnded$),G=ei(B.info.isLive$),Xt=se.features.playbackRate?ei(B.info.canChangePlaybackSpeed$):Jn(!1),ri=ei(B.info.liveBufferTime$),Oi=ei(B.info.volume$),li=ei(B.info.muted$),mt=Bc(B.info.predefinedQualityLimitType$.pipe((0,yt.map)(c=>c===ui.PredefinedQualityLimits.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.TRAFFIC_SAVING),pi=Bc(B.info.predefinedQualityLimitType$.pipe((0,yt.map)(c=>c===ui.PredefinedQualityLimits.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.HIGH_QUALITY),Xe=ei(B.info.autoQualityLimitingAvailable$),Vt=ei(B.info.availableQualities$),no=ei(B.info.availableQualitiesFps$),ii=ei(B.info.chromecastState$),tr=ei(B.info.chromecastDeviceName$),So=ei(B.info.currentFormat$),zo=ei(B.info.throughputEstimation$),di=ei(B.info.videoBitrate$),St=ei(B.info.intrinsicVideoSize$),Ti=ei(B.info.duration$),Lo=ei(B.info.isAudioAvailable$),fi=null,Vo=B.info.isBuffering$,Ki=Jn(Vo.getValue(),c=>{let x=Vo.subscribe(N=>{N&&fi===null?fi=window.setTimeout(()=>{c(Vo.getValue()),fi=null},se.loaderDelay):c(N)});return()=>{x.unsubscribe(),fi&&clearTimeout(fi)}}),Co=()=>{fi&&clearTimeout(fi),fi=null},To=wi([Ti,G],([c,x])=>x?-c:c),Rn=wi([rn],([c])=>c===ui.PlaybackState.PLAYING),Io=ei(B.info.atLiveEdge$),yn=ei(B.info.atLiveDurationEdge$),Ji=ei(B.info.position$),Ro=wi([Ji,Ti],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),sn=wi([ii],([c])=>c===ui.ChromecastState.CONNECTED),Cr=ei(B.info.availableVideoStreams$),ir=se.features.audioLanguages?ei(B.info.availableAudioStreams$):Jn([]),Nn=ei(B.info.currentVideoStream$),xn=ei(B.info.currentAudioStream$),Bn=c=>{c.language&&qp(c.language),B.setVideoStream(c)},or=c=>{c.language&&qp(c.language),B.setAudioStream(c)},ro=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=Ch();return N&&(x=c.find(({language:ue})=>N===ue)),x!=null||(x=c.at(0)),x},No=!1;jt.add(B.info.availableAudioStreams$.subscribe(c=>{if(!No&&c.length){let x=ro(c);x&&(B.setAudioStream(x),No=!0)}}));let wn=!1;jt.add(B.info.availableVideoStreams$.subscribe(c=>{if(!wn&&c.length){let x=ro(c);x&&(B.setVideoStream(x),wn=!0)}}));let ot=ae(void 0),Sn=ei(B.info.isAutoQualityEnabled$,c=>c&&ot.set(void 0)),Dn=ei(B.info.currentQuality$,()=>ot.set(void 0)),an=wi([ot,Dn],([c,x])=>c!=null?c:x),nr=wi(So,c=>c!==ui.VideoFormat.MPEG),ln=wi([Vt,no,Sn,an,nr],([c,x,N,ue,Ue])=>{let Ct=[];Ue&&Ct.push({value:"auto",displayValue:O("auto_quality_option"),selected:N});let Ot=c.filter(Qt=>!(0,yt.isInvariantQuality)(Qt));for(let Qt of Ot){let Ht=x[Qt];Ct.push({value:Qt,displayValue:`${Qt}${Ht?u1(Ht):""}`,selected:N?!1:Qt===ue})}return Ct}),dn=ei(B.info.currentPlaybackRate$),cn=wi([dn,Io,yn],([c,x,N])=>{let ue=N||C?1:se.controls.playbackRateMin,Ue=x?1:se.controls.playbackRateMax,Ct=se.controls.playbackRateStep,Ot=[];for(let Qt=ue;Qt<=Ue;Qt+=Ct)Ot.push({value:Qt,displayValue:Qt===1?O("playback_rate_1"):O("playback_rate",{multiplier:Qt.toString(10)}),selected:c===Qt});return Ot}),eo={displayValue:O("subtitles_off"),value:"off"},Qi=ae({...eo}),un=se.features.subtitles?ei(B.info.availableTextTracks$):Jn([]),On=gh(),qo=wi([un,Qi],([c,x],N)=>{var Ct;let ue=[],Ue=c.find(({id:Ot})=>Ot===x.value);if(Ue!=null&&Ue.url){let[,Ot]=(Ct=On.find(Ue.url))!=null?Ct:[];if(Ot){N(Ot);return}we.download(Ue.url).then(Qt=>{if(!Qt||we.isDestroyed())return;let Ht=new p1,ls=Ue.language;if(ls){let l0=!!Ue.isAuto,d0=Ht.parse(Qt,ls);ue.push({lang:ls,subtitles:d0,isAuto:l0,id:Ue.id})}On.add(Ue.url,ue),Ce(Qi).value===x.value&&N(ue)}).catch(Qt=>{var Ht;(Ht=de==null?void 0:de.oneStat)==null||Ht.logError({errorType:"Subtitles download",fatal:!1}),Ke==null||Ke.report(Qt,{errorType:"Subtitles download",fatal:!1})})}N(ue)}),pn=wi([dn,Rn,Qi],([c,x,N],ue)=>{let Ot;if(B.info.isLive$.getValue()&&x&&N.value!==eo.value){let Ht=()=>{let ls=1e3/(3*c);Ot=setTimeout(Ht,ls),ue(Date.now())};return Ht(),()=>clearTimeout(Ot)}}),Bo=wi([un,Qi],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:ue,isAuto:Ue,id:Ct}of c){let Ot=ue&&lu(ue);ue&&Ot&&N.push({displayValue:Ue?O("subtitles_auto",{language:Ot}):Ot,value:Ct,selected:(x==null?void 0:x.value)===Ct,isAuto:Ue})}return N.length?(N.unshift({...eo,selected:(x==null?void 0:x.value)===eo.value}),N):[]}),vo={available:[],prev:[]},Hi=()=>{var x,N;let c=B.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:je==null?void 0:je.currentTime)!=null?N:0},Hn=wi([mo,Qi,qo,pn],([c,x,N,ue])=>{var Ct;let Ue=B.info.isLive$.getValue();if(Ue&&vo.prev!==N){let Ot=N.find(({id:Ht})=>Ht===x.value),Qt=vo.prev.find(({id:Ht})=>Ht===x.value);if(Ot){let Ht={...Ot,subtitles:[...(Ct=Qt==null?void 0:Qt.subtitles)!=null?Ct:[],...Ot.subtitles]};vo.available=[Ht],vo.prev=N}}if(x&&x.value!==eo.value){let Ot=Ue?Hi():c,Qt=Ue?vo.available:N;return v1(Ot,x,Qt,Ue)}}),so=wi([Hn],([c])=>c!=null&&c.texts?c.texts:[]);jt.add(Qi.subscribe(c=>{var x,N;if(c.value===eo.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let ue=Object.entries(au).find(([Ue,Ct])=>Ct===c.displayValue);(N=l==null?void 0:l.onSubtitleOn)==null||N.call(l,ue?ue[0]:"")}}));let Cn=ae(!0),Fn=wi([$n,To,Ji,ri],([c,x,N,ue])=>{var Qt;let Ue=(Qt=c==null?void 0:c.end)!=null?Qt:0;if(!ue)return Ue/x;let Ot=-N+ue-x;return(Ue-Ot)/x}),fn=ei(B.info.availableSources$),Tr=wi([fn],([c])=>Object.keys((c==null?void 0:c[ui.VideoFormat.MPEG])||{}).length>0),Wo=()=>{var N,ue,Ue;let c=Object.keys(((ue=(N=B.info.availableSources$)==null?void 0:N.getValue())==null?void 0:ue[ui.VideoFormat.MPEG])||{}),x=(0,yt.getHighestQuality)(c)||yt.VideoQuality.Q_144P;return(Ue=Oe.sources[ui.VideoFormat.MPEG])==null?void 0:Ue[x]},Ir=()=>{var x;let c=Wo();if(c)oe.log("download video",{url:c}),fh(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})}},Un=()=>{te({message:"toggle muted"});let c=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!c?sr(Jt()):Er(!c)},zn=()=>{var c;if(Pt.ui.settingsMenu.visible$.set(!1),!Ce(Pt.ui.settingsSubMenu.visible$)){let x=Ce(Pt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ue=pl(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")},rr=async(c,x=()=>Promise.resolve())=>{var Ue;Pt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Pt.ui.settingsMenu.visible$.set(!0),await x();let N=Ce(Pt.ui.settingsMenu.ref$),ue=As();if((Ue=l==null?void 0:l.uiInfo)!=null&&Ue.onSettingsMenu&&N&&ue){let Ot=pl(N),Qt=os(N,ue);l.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:Qt,name:"settings"})}oe.log("open settings menu",{wasOpenedByKeyboard:c})},kr=(c,x=!1)=>{var Ct;Pt.ui.settingsSubMenu.visible$.set(!1);let N=Ce(Pt.ui.settingsMenu.ref$),ue=As(),Ue=Ce(Pt.ui.settingsMenu.visible$);if((Ct=l==null?void 0:l.uiInfo)!=null&&Ct.onSettingsMenu&&N&&ue)if(Ue&&!x){let Qt=pl(N),Ht=os(N,ue);l.uiInfo.onSettingsMenu({visible:!0,size:Qt,position:Ht,name:"settings"})}else{let Qt=pl(c),Ht={top:0,left:0,bottom:0,right:0},ls=Ce(Pt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Qt,position:Ht,name:ls})}oe.log("close settings sub menu")},Tn=(c,x)=>{var ue;Pt.ui.settingsSubMenu.visible$.set(!0),Pt.ui.settingsSubMenu.ref$.set(x),Pt.ui.settingsSubMenu.name$.set(c);let N=As();if((ue=l==null?void 0:l.uiInfo)!=null&&ue.onSettingsMenu&&x&&N){let Ct=pl(x),Ot=os(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:Ct,position:Ot})}oe.log("open settings sub menu",{name:c})},Jt=()=>{var x;let c=Math.max(se.volumeMinRestore,(x=Dc())!=null?x:0);return c===0?se.volumeDefault:c},sr=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,Up(!1)),B.setVolume(c,N),le.setVolume(c),Bp(x)},Er=c=>{let x=B.info.volume$.getValue();if(te({message:`set muted, currentVolume: ${x}, mute: ${c}`}),B.setMuted(c),le.setVolume(c?0:x),Up(c),!c&&x===0){let N=Jt();B.setVolume(N),Bp(N),le.setVolume(N)}},Do=ae(!1),Ii=c=>{var x,N;oe.log("set looped",{isLooped:c}),Do.set(c),B.setLooped(c),(N=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||N.call(x,c)};Ii(Z);let ar=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},vt=(c,x=!1)=>{var N;te({message:`set autoplayNextEnabled, value: ${c}`}),oe.log("set autoplay next enabled",{autoplayNextEnabled:c}),Pt.ui.autoplayNextEnabled$.set(c),kh(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},zt=c=>{te({message:`set timerNextVideoRunning, value: ${c}`}),oe.log("set timer next video running",{timerNextVideoRunning:c}),Pt.ui.timerNextVideoRunning$.set(c)},Ai=(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&&nt("prev")||Y()},ko=(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&&nt("next")||ne()},nt=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:ue}}=se;return N&&ue&&!x?(Pt.ui.aboutToGoNextVideo.set(c),Pt.ui.userActionsDisabled.set(!0),!0):!1},Dt=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},mi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Fi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},go=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Si=()=>{B.prepare()},Mi=()=>{(0,yt.assertNonNullable)(Pt);let c=Ce(Pt.ui.controls.disabledControls$),x=Ce(Pt.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 Ct;te({message:"toggle play, call player.play"}),N.action="play",B.play(),(Ct=l==null?void 0:l.onPlay)==null||Ct.call(l)},Ue=()=>{var Ct;te({message:"toggle play, call player.pause"}),N.action="pause",B.pause(),(Ct=l==null?void 0:l.onPause)==null||Ct.call(l)};if(B.info.isEnded$.getValue()){if(te({message:"toggle play, video ended, seek to 0"}),tt.next(),it.next(zr.SeekAction.REWIND),C){P==null||P();return}B.seekTime(0),ue()}else B.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING?ue():Ue();oe.log("toggle play",N)},gi=(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?(Oc({type:"exact_quality",quality:c,videoId:i},N),id(),B.setPredefinedQualityLimits(ui.PredefinedQualityLimits.UNKNOWN)):Dp(i,c),ot.set(c),B.setQuality(c)):se.features.qualityDetailsSubMenuEnabled?x==="default"&&(lr("auto_quality",N),Ce(mt)&&_i(!1),Ce(pi)&&Ui(!1)):id()},_i=(c,x="as-default")=>{te({message:`set trafficSavingEnabled, value: ${c}`}),oe.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?ui.PredefinedQualityLimits.TRAFFIC_SAVING:ui.PredefinedQualityLimits.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(qn(N,x),td(!1)):(B.setPredefinedQualityLimits(N),td(c))},Ui=(c,x="as-default")=>{te({message:`set highQualityEnabled, value: ${c}`}),oe.log("set high quality enabled",{highQualityEnabled:c}),qn(c?ui.PredefinedQualityLimits.HIGH_QUALITY:ui.PredefinedQualityLimits.UNKNOWN,x)},qn=(c,x)=>{c!==ui.PredefinedQualityLimits.UNKNOWN&&(Ce(Xe)&&!Ce(Sn)&&gi("auto",{appliesTo:x,changeReason:"limit-changed"}),lr(c,x)),B.setPredefinedQualityLimits(c)},lr=(c,x)=>{Oc({type:c,videoId:i},x),x==="as-default"&&Oc({type:c,videoId:i},"to-video")},Wn=c=>{oe.log("set playback rate",{playbackRate:c}),B.setPlaybackRate(c),se.features.saveRate&&ce&&!B.info.isLive$.getValue()&&Th(c)},dr=()=>{let c=Ce(cn),x=c.findIndex(({selected:ue})=>ue);if(x===c.length-1)return;let N=c[x+1];Wn(N.value)},cr=()=>{let c=Ce(cn),x=c.findIndex(({selected:ue})=>ue);if(x===0)return;let N=c[x-1];Wn(N.value)},ur=(c={...eo,selected:!1})=>{oe.log("set subtitles",{...c}),c&&c.value!==eo.value&&We.next(c.isAuto?c.value+"_auto":c.value),Qi.set(c)},pr=()=>{oe.log("toggle subtitles");let c=Ce(Bo),x=Ce(Qi),N=Ce(Et);if((x==null?void 0:x.value)===eo.value){let ue=c.filter(Ue=>Ue.value!==eo.value).find(Ue=>Ue.value===N)||c[1];ur(ue)}else ur()},Kn=ae(!0),Qn=c=>{Kn.set(c)},Oo=(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}),it.next(x),B.info.isLive$.getValue()){let Ue=B.info.duration$.getValue(),Ct=Math.min(0,Ue+c);B.seekTime(Ct,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(av(c),N)}},Pr=c=>{te({message:`seek to episode start time: ${c}`}),oe.log("seek to episode start time",{time:c}),Oo(c,zr.SeekAction.EPISODE,!0)},Ho=(c,x)=>{te({message:`seek to percent, percent: ${c}`}),oe.log("seek to percent",{percent:c,action:x});let N=Ce(To)*c;Oo(N,x,!1)},fr=c=>{te({message:`seek external, time: ${c}`}),oe.log("seek external",{time:c}),it.next(zr.SeekAction.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-c:c)},Ar=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)},Mr=c=>{te({message:`seek external to episode start time: ${c}`}),oe.log("seek external to episode start time",{time:c}),Oo(c,zr.SeekAction.EPISODE,!0)},Lr=c=>{te({message:`set playback rate to: ${c}`}),oe.log("set playback rate external",{playbackRate:c}),B.setPlaybackRate(c)},to=ae(void 0),In=ae(!1),Vr=c=>{te({message:`start scrubbing, progress: ${c}`}),oe.log("start scrubbing",{progress:c}),In.set(!0),lt(c)},lt=c=>{to.set(c)},qt,Li,Eo=()=>{to.set(void 0),In.set(!1)},Se=()=>{clearTimeout(Li),clearTimeout(qt),qt=window.setTimeout(()=>{Eo()},500),je==null||je.removeEventListener("seeked",Se)},Mt=c=>{te({message:`complete scrubbing, progress: ${c}`}),oe.log("complete scrubbing",{progress:c}),Ho(c,zr.SeekAction.SLIDER),Ce(Pt.ui.isMobile)&&Ce(Pt.state.currentFormat$)===ui.VideoFormat.HLS?(je==null||je.addEventListener("seeked",Se),Li=window.setTimeout(()=>{Se()},300)):Eo()},hi=wi([mo,To,to],([c,x,N],ue)=>{ue((0,yt.isNonNullable)(N)?N*x:c)}),bi=ae(!1),vi=()=>{bi.set(!0)},ke=()=>{bi.set(!1)},$t=ae({width:0,height:0}),Gt=wi([$t],([{width:c}],x)=>{let N=o1(c);x(N)}),Ci=ae(!1),si=q.filter(c=>mh(c)),qr=wi([Gt,Ci],([c,x])=>x?si.filter(N=>!N.hideOnMobile):si.filter(N=>{var ue;return!((ue=N.hideOnDesktopGridTypes)!=null&&ue.includes(c))})),zi=ae(q.filter(c=>vh(c))),Gn=wi([zi,Gt],([c,x])=>c.filter(N=>{var ue;return!((ue=N.hideOnDesktopGridTypes)!=null&&ue.includes(x))})),ks=wi([Gn,qr],([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}}):[]]),jn=ae(Q),Ca=wi([jn],([c])=>se.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Sl=(c,x)=>{let N=Ce(zi).map(ue=>ue.id!==c?ue:{...ue,...x});zi.set(N)},Ta=c=>{let x=Ce(zi);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),zi.set(x)},Ia=c=>{let x=Ce(zi);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),zi.set(x)},ka=c=>{it.next(zr.SeekAction.LIVE),te({message:"live switch to low latency "+c}),oe.log("live switch to low latency "+c),B.setLiveLowLatency(c)},Cl=(c,x)=>{let N=Ce(jn).map(ue=>ue.id!==c?ue:{...ue,...x});jn.set(N)},Es=c=>{let x=Ce(jn);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),jn.set(x)},Ea=c=>{let x=Ce(jn);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),jn.set(x)},dt=ae(H),xt=wi([dt],([c])=>se.features.additionalContextMenuItems?c:[]),io=(c,x)=>{let N=Ce(dt).map(ue=>ue.id!==c?ue:{...ue,...x});dt.set(N)},Ko=c=>{let x=Ce(dt);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),dt.set(x)},oo=c=>{let x=Ce(dt);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),dt.set(x)},ci=wi([Ci,Yt],([c,x],N)=>{N(c&&x)}),Vi=()=>{it.next(zr.SeekAction.LIVE),te({message:"switch to active live"}),oe.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING&&Pt.actions.internal.togglePlay()},Ps=()=>{oe.log("skip adman"),le.skip()},Pa=(c=!0)=>{(0,yt.assertNonNullable)(Pt),te({message:`switch from ads to video, callPlay: ${c}`}),oe.log("switch from ads to video",{callPlay:c}),_e.set("video"),c&&B.play()},Vu=()=>{(0,yt.assertNonNullable)(Pt),te({message:"switch from video to ads"}),oe.log("switch from video to ads"),Pt.actions.internal.pause(),Je(),_e.set("ads")},ec=c=>{(0,yt.assertNonNullable)(Pt);let x=c?"LiveWaitingStart":"thumb";oe.log("set live waiting start",{state:c,playerPhase:x}),_e.set(x)},Ru=c=>{(0,yt.assertNonNullable)(Pt);let x=c?"LiveWaitingRecover":"thumb";oe.log("set live waiting recover",{state:c,playerPhase:x}),_e.set(x)},tc=c=>{(0,yt.assertNonNullable)(Pt);let x=c?"LiveWaitingRecord":"thumb";oe.log("set live waiting record",{state:c,playerPhase:x}),_e.set(x)},Nu=()=>((0,yt.assertNonNullable)(Pt),oe.log("get debug text data"),uh(B,Oe,Pt,Me.getTraceId())),ic=()=>((0,yt.assertNonNullable)(Pt),JSON.stringify(Me.getFinishedSpans())),Bu=()=>((0,yt.assertNonNullable)(Pt),ph(B,Oe,Pt)),As=()=>je,oc=()=>{te({message:"toggle chromecast"}),oe.log("toggle chromecast"),B.toggleChromecast()},Tl=c=>{var N;if((0,yt.assertNonNullable)(Pt),B.info.isEnded$.getValue())return;let x=!c;if(Ce(Pt.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()},nc=c=>{var N;(0,yt.assertNonNullable)(Pt);let x=!c;if(Ce(Pt.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()},rc=c=>{(0,yt.assertNonNullable)(Pt);let x=!c;if(Ce(Pt.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()},sc=(c,x)=>{(0,yt.assertNonNullable)(Pt),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():Pt.actions.internal.togglePlay())},Aa=()=>(te({message:"getting time codes"}),m),ac=()=>{let c=Aa();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue();return c.find(N=>N.time>x)},Du=c=>{let x=c;x||(x=ac());let N=B.info.position$.getValue();oe.log("seek to next episode",{currentTime:N,...x}),x&&(te({message:"seek to next episode"}),Oo(x.time,zr.SeekAction.EPISODE,!0))},lc=()=>{let c=Aa();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=lc());let N=B.info.position$.getValue();oe.log("seek to prev episode",{currentTime:N,...x}),x&&(te({message:"seek to prev episode"}),Oo(x.time,zr.SeekAction.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})},Ms=(c=-90)=>{oe.log("rotate video",{alphaDiff:c}),st.update(x=>x+c)},ho=ae([]);T==null||T.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[ue,Ue],subjects:Ct}=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?!Ct.length||Ct.every(Ot=>Ot.isRemoved):!Ct.length}),Ue!==1/0&&x.push({time:Ue/1e3,text:"",interactive:!1,completed:!0})}ho.set(x)});let r0=ae(!1);k==null||k.subscribe(c=>{c&&Ce(In)&&Eo()});let av=c=>{if(!C)return c;let x=Ce(ho),N=Ce(To),Ue=Ce(Ji)/N,Ct=x.find(Ot=>Ot.interactive&&!Ot.completed&&Ot.time>Ue);return typeof(Ct==null?void 0:Ct.time)=="number"?Math.min(c,Ct.time-.05):c},s0=()=>{Pt.ui.episodes.panelOpened$.set(!1)},a0=()=>{oe.log("destroy store"),clearTimeout(Li),clearTimeout(qt),jt.unsubscribe(),ti.unsubscribe(),B.destroy(),le.destroy(),de==null||de.destroy(),Ke==null||Ke.destroy(),bt.unsubscribe(),ht==null||ht.disconnect(),ht=null,we.destroy()},Pt={interfaceLanguage$:Et,isCyrillicRelatedInterface$:Nt,initVideo:Ge,videoId:i,isClip:o,playerPhase:re,vsid:Ve,state:{positionExact$:mo,positionWithScrubbing$:hi,duration$:To,playbackState$:rn,isPlaying$:Rn,isLoaderVisible:Ki,bufferedProgress$:Fn,isLive$:G,canChangePlaybackSpeed$:Xt,isActiveLive$:Io,isOldestAvailableLive$:yn,isRewindableLive$:Ro,isEnded$:wo,muted$:li,volume$:Oi,trafficSavingEnabled$:mt,highQualityEnabled$:pi,autoQualityLimitingAvailable$:Xe,availableVideoStreams$:Cr,availableAudioStreams$:ir,videoStream$:Nn,audioStream$:xn,currentQuality$:an,isAutoQualityEnabled$:Sn,availableQualities$:ln,currentPlaybackRate$:dn,availablePlaybackRates$:cn,currentSubtitle$:Qi,availableTextTracks$:un,availableSubtitlesList$:Bo,currentSubtitleCaptions$:so,isAutoSubtitleCaptionVisible$:Cn,chromecastState$:ii,chromecastDeviceName$:tr,chromecastConnected$:sn,currentFormat$:So,throughputEstimation$:zo,videoBitrate$:di,videoSize$:St,errorLog$:It,crashed$:Yt,isAudioAvailable$:Lo,isAudioDisabled:!!s,canDownload:se.features.download&&!!d,availableSources$:fn,hasMpegSources$:Tr,isInteractive:C,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!Ce(ho).length,interactiveEpisodes$:ho,isInteractiveTime$:k?ei(k):ae(!1),isInteractiveExpectation$:r0,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,looped$:Do,loadedMetadata$:ae(!1),isAutoQualityAvailable$:nr},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:Ye,isFullscreenOpenedByKeyboard:ct,rotateAlpha:st,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:$t,isMobile:Ci,mobileNotReportControlHidden$:ci,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:In,volumeChangingInProgress:bi,is3DVideo:ae(!1),currentGridType$:Gt,additionalButtonsDeprecated$:qr,additionalDesktopControlPanelRightButtons$:ks,additionalSettingsMenuItems$:Ca,additionalContextMenuItems$:xt,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:Si,firstStart:c=>sc(c,!1),play:()=>nc(!1),pause:()=>Tl(!1),togglePlay:Mi,toggleMuted:Un,openSettingsMenu:rr,closeSettingsMenu:zn,openSettingsSubMenu:Tn,closeSettingsSubMenu:kr,setVolume:sr,startVolumeChanging:vi,stopVolumeChanging:ke,setVideoStream:Bn,setAudioStream:or,setQuality:gi,setTrafficSavingEnabled:_i,setHighQualityEnabled:Ui,setPlaybackRate:Wn,incrementPlaybackRate:dr,decrementPlaybackRate:cr,setSubtitle:ur,toggleSubtitle:pr,togglePictureInPicture:Qo,startScrubbing:Vr,progressScrubbing:lt,completeScrubbing:Mt,toggleChromecast:oc,switchToActiveLive:Vi,switchFromAdsToVideo:Pa,switchFromVideoToAds:Vu,skipAd:Ps,setLiveWaitingStart:ec,setLiveWaitingRecover:Ru,setLiveWaitingRecord:tc,getDebugTextData:Nu,getTraceTextData:ic,getDebugPanelData:Bu,getVideoElement:As,seekTime:(c,x,N)=>Oo(c,x,N),clearDelayedBufferingCheckTimeout:Co,seekEpisodeStartTime:Pr,seekToPercent:Ho,getNextEpisode:ac,seekToNextEpisode:Du,getPrevEpisode:lc,seekToPrevEpisode:Fe,startLogging:et,stopLogging:Zt,startCameraManualRotation:Di,stopCameraManualRotation:Wi,moveCameraFocusPX:Lt,holdCamera:_t,releaseCamera:Bt,getVideoEpisodes:Aa,getPreviewThumbsData:ai,downloadVideo:Ir,addLanguage:Wp,setLanguage:ni,nextMovie:Ze,videoRotate:Ms,correctSeekTimeToInteractive:av,replayInteractive:P,setLooped:Ii,reportProblem:ar,setAutoplayNextEnabled:vt,setTimerNextVideoRunning:zt,prevVideoClick:Ai,nextVideoClick:ko,nextVideoAnnouncementShow:Dt,nextVideoAnnouncementClick:mi,nextVideoAnnouncementAuto:Fi,nextVideoAnnouncementCancel:go},external:{firstStart:c=>sc(c,!0),play:()=>nc(!0),pause:()=>Tl(!0),stop:()=>rc(!0),seekTime:c=>fr(c),seekEpisodeStartTime:c=>Mr(c),setPlaybackRate:c=>Lr(c),setAutoQualityLimits:c=>Ar(c),setMuted:Er,toggleSubtitle:pr,setVolume:sr,returnFocusToEpisodes:s0,updateAdditionalSettingsItem:Cl,addAdditionalSettingsItem:Es,removeAdditionalSettingsItem:Ea,updateAdditionalContextItem:io,addAdditionalContextItem:Ko,removeAdditionalContextItem:oo,updateAdditionalButton:Sl,addAdditionalButton:Ta,removeAdditionalButton:Ia,setLiveLowLatency:ka,hideControls:()=>Qn(!1),showControls:()=>Qn(!0)}},callbacks:l,setUiCallbacks:c=>{$e={...c}},getAdmanWrapper:()=>le,getLogger:()=>be,getPlayer:()=>B,destroy:a0};return Pt};function fa(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}=os(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 fl=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(fa(t,i,n,o))};var cu=async(t,e,i)=>{await $o(),e&&i&&(i.focus(),t.set(!1))};var E2=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 zf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=E2();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 qf(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(_)&&wt(()=>{u.set(r(_))})});let w=k=>{let P=$s(k),A=Qh(r(_));b.set(A),p.set(P),l.set(!n())},y=()=>{m.set(!0)},C=()=>{m.set(!1)},T=v(()=>n()?"opened":"");Rt(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)=>{zf(k,{})},$$slots:{default:!0}}),z(),o()}var P2=t=>{t.stopPropagation()},A2=L("<div><!> <div></div> <div></div></div>"),M2={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 Vf(t,e){U(e,!0),K(t,r2);let i=f(e,"isMobile",3,!1),o=v(()=>e.iconState===Lf.ChromecastState.CONNECTED),n=v(()=>e.iconState===Lf.ChromecastState.CONNECTING);var a=Oe(),s=ue(a);{var d=p=>{var m=o2(),y=h(m),u=h(y),$=h(u);$e(),g(u);var w=A(u);$e(),g(y);var b=A(y),C=h(b),T=h(C);g(C),$e(),g(b),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=n2();let y;var u=h(m),$=A(h(u),5);let w;g(u),g(m),E((b,C)=>{y=J(m,0,"svelte-8z1bf5",null,y,b),w=J($,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),_(p,m)};B(s,p=>{i()?p(d):p(l,!1)})}_(t,a),z()}var a1=require("@vkontakte/videoplayer-shared/es2018");function xd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"click",3,a1.noop),s=Ce().ui.t,d=v(()=>e.state===s1.ChromecastState.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Bt(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)=>{Vf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var s2=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),a2={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 Rf(t,e){K(t,a2);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(),I=T/2;return C<I?I+s():C>e.containerWidth-I?e.containerWidth-I-d():C}let y=v(()=>m(n()));var u=s2(),$=h(u);let w;var b=h($);ve(b,()=>{var C;return(C=e.children)!=null?C:te}),g($),vt($,C=>D(p,C),()=>r(p)),g(u),vt(u,C=>D(l,C),()=>r(l)),E(C=>{rt(u,`transform: translate(${r(y)}px, ${a()}px);`),w=J($,1,"tooltip svelte-5ygsa2",null,w,C),rt($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),_(t,u)}var iu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var l1=t=>!!(Math.round(Math.abs(t)/90)%2),d1=t=>Math.abs(t)/90%4===1;var l2=L('<div class="preview svelte-1wqg760"></div>'),d2=L('<div class="time svelte-1wqg760"> </div>'),c2=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),u2={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 Bf(t,e){U(e,!0),K(t,u2);let[i,o]=Ne(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(b,"$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),y=f(e,"duration",3,0),u=f(e,"isInteractive",3,!1),$=Ce(),w=$.ui.rotateAlpha,b=$.ui.playerSize,C=X(0),T=X(0),I=X(""),M=X(0),P=X(0),k=X(0),V=X(0),W=v(()=>iu(m(),y(),p())),Y=v(()=>l1(n())),F=v(()=>d1(n())),Q=v(re),ie=v(()=>(r(F)?1:-1)*(r(C)/2-r(T)/2)),Z=v(()=>r(ie)*-1);Fe(()=>{(ae=>(D(C,pe(ae.width)),D(T,pe(ae.height))))(Ae())}),Fe(()=>{(ae=>(D(I,pe(ae.imgSrc)),D(M,pe(ae.imgWidth)),D(P,pe(ae.imgHeight)),D(k,pe(ae.imgOffsetX)),D(V,pe(ae.imgOffsetY))))(Me(m()))});function re(){var De;let ae=l()?s.MOBILE:s.DESKTOP,{isVertical:he}=le(),ee=30;return(De=r(W))!=null&&De.text&&(ee+=16),(he||r(Y))&&(ee+=18,ee+=50),Math.min(Math.max(a().height-ee,0),ae)}function le(){let ae=e.previewThumbsData.frameWidth,he=e.previewThumbsData.frameHeight,ee=he>ae;return{width:ae,height:he,isHorizontal:!ee,isVertical:ee}}function Ae(){let{height:ae,isHorizontal:he,isVertical:ee,width:De}=le();return he&&(ae=ae/De*r(Q),De=r(Q)),ee&&(De=De/ae*r(Q),ae=r(Q)),{width:De,height:ae}}function Me(ae){let he;e.previewThumbsData.isUV?he=Math.floor(y()*ae/e.previewThumbsData.frequency):he=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ae)));let ee=Math.floor(he/e.previewThumbsData.countPerImage),De=Math.floor(he%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Ze=he%e.previewThumbsData.countPerRow,we=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(we=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&we++);let Ve=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ve=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ie=r(C)*Ve,Ue=r(T)*we,ct=-Ze*r(C),ut=-De*r(T);return{imgSrc:e.previewThumbsData.links[ee],imgWidth:Ie,imgHeight:Ue,imgOffsetX:ct,imgOffsetY:ut}}var ge=c2();let se;var Ee=h(ge);{var ne=ae=>{var he=l2();E(()=>rt(he,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(I)}); background-size: ${r(M)}px ${r(P)}px; background-position: ${r(k)}px ${r(V)}px;
|
|
229
|
+
transform: rotate(${n()}deg) ${r(Y)?`translate(${r(ie)}px, ${r(Z)}px)`:""};
|
|
230
|
+
`)),_(ae,he)};B(Ee,ae=>{r(I)&&ae(ne)})}var R=A(Ee,2),xe=h(R);{var _e=ae=>{var he=Oe(),ee=ue(he);{var De=we=>{var Ve=Nr();E(Ie=>me(Ve,Ie),[()=>q("tooltip_episode_unfinished")]),_(we,Ve)},Ze=we=>{var Ve=Nr();E(()=>me(Ve,r(W).text||"")),_(we,Ve)};B(ee,we=>{u()&&r(W).completed===!1?we(De):we(Ze,!1)})}_(ae,he)};B(xe,ae=>{r(W)&&ae(_e)})}g(R);var ze=A(R,2);{var H=ae=>{var he=d2(),ee=h(he,!0);g(he),E(()=>me(ee,d())),_(ae,he)};B(ze,ae=>{u()||ae(H)})}g(ge),E(ae=>{se=J(ge,1,"timeline-preview svelte-1wqg760",null,se,ae),rt(ge,`width: ${r(Y)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),_(t,ge),z(),o()}var p2=L('<span class="time svelte-1jr6obn"> </span>'),f2=L("<!> <!>",1),m2={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 Nf(t,e){var Ye,Le,nt,je,ht;U(e,!0),K(t,m2);let[i,o]=Ne(),n=()=>S(ie,"$interactiveEpisodes$",i),a=()=>S(k,"$duration$",i),s=()=>S(P,"$position$",i),d=()=>S(le,"$isInteractiveExpectation$",i),l=()=>S(re,"$isInteractiveTime$",i),p=()=>S(V,"$isLive$",i),m=()=>S(Y,"$isMobile",i),y=()=>S(W,"$isActiveLive$",i),u=()=>S(M,"$bufferedProgress$",i),$=()=>S(ge,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),b=f(e,"withEpisodes",3,!0),C=f(e,"ref",15,void 0),T=Ce(),I=qt(),M=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,k=T.state.duration$,V=T.state.isLive$,W=T.state.isActiveLive$,Y=T.ui.isMobile,F=I.features.episodes&&b()?T.actions.internal.getVideoEpisodes():void 0,Q=T.actions.internal.getPreviewThumbsData(),ie=T.state.interactiveEpisodes$,Z=T.state.isInteractive,re=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,Ae=T.actions.internal.correctSeekTimeToInteractive,Me=(Ye=T.callbacks)==null?void 0:Ye.onDisabledTimelineClick,ge=T.ui.controls.disabledControls$,se=(nt=(Le=T.callbacks)==null?void 0:Le.uiInfo)==null?void 0:nt.onTimelineMouseEnter,Ee=(ht=(je=T.callbacks)==null?void 0:je.uiInfo)==null?void 0:ht.onTimelineMouseLeave,ne=T.ui.t,R=I.features.interactiveResponsiveUi,xe=v(()=>Z?n():F),_e=v(()=>cn(a())),ze=v(()=>cn(s())),H=v(()=>s()/a()),ae=v(()=>d()||l()),he=X(!1),ee=X(""),De=X(0),Ze=X(0),we=X(0),Ve=v(()=>({containerWidth:r(Ze),translateXPx:r(De),translateYPx:Z&&Q?-36:-16,active:r(he)&&w()&&!r(ae)&&!R,pointer:!I.features.timelinePreview||!Q||p()})),Ie=ne("aria_timeline"),Ue=v(()=>ne("aria_timeline_value",{position:r(ze),duration:r(_e)}));function ct(at){return!Ae||!Z?at:Ae(at*a())/a()}function ut(at){T.actions.internal.startScrubbing(ct(at))}function ot(at){l()||T.actions.internal.progressScrubbing(ct(at))}function It(at){T.actions.internal.completeScrubbing(ct(at)),D(he,!1)}function gt(at,Je,Wt){At(at,Je,Wt),D(he,!0)}function Qt(at,Je,Wt){At(at,Je,Wt),D(he,!0)}function ti(){D(he,!1)}function At(at,Je,Wt){D(we,pe(ct(at))),D(De,pe(Je)),Wt&&D(Ze,pe(Wt)),D(ee,pe(Nt(at)))}function Nt(at){let Je=cn((p()?1-at:at)*a());return p()?`-${Je}`:Je}var O=f2(),be=ue(O);Rf(be,ts(()=>r(Ve),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(at,Je)=>{var Wt=Oe(),it=ue(Wt);{var ni=et=>{Bf(et,{get time(){return r(ee)},get isMobile(){return m()},get videoEpisodes(){return r(xe)},previewThumbsData:Q,get progress(){return r(we)},get duration(){return a()},isInteractive:Z})},xi=et=>{var jt=p2(),Vi=h(jt,!0);g(jt),E(()=>me(Vi,r(ee))),_(et,jt)};B(it,et=>{I.features.timelinePreview&&Q&&!p()?et(ni):et(xi,!1)})}_(at,Wt)},$$slots:{default:!0}}));var oe=A(be,2);let Re=v(()=>Math.round(r(H)*100)),Qe=v(()=>$().has("TIMELINE"));da(oe,{className:"timeline-slider",get isActiveLive(){return y()},get isMobile(){return m()},ariaLabel:Ie,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Re)},get ariaValueText(){return r(Ue)},get loadedProgress(){return u()},get filledProgress(){return r(H)},get handleProgress(){return r(H)},get videoEpisodes(){return r(xe)},onPointerDown:ut,onHandleMove:ot,onPointerMove:Qt,onPointerUp:It,onPointerEnter:gt,onPointerLeave:ti,onMouseEnter:se,onMouseLeave:Ee,onDisabledClick:Me,isInteractive:Z,get disabled(){return r(Qe)},get hideHandel(){return l()},testId:"progress_bar",get ref(){return C()},set ref(at){C(at)}}),_(t,O),z(),o()}var v2={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function wd(t,e){U(e,!0),K(t,v2);let[i,o]=Ne(),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(()=>cn(s())),y=v(()=>cn(a())),u=v(()=>a()/s()),$=v(()=>p("aria_timeline_value",{position:r(y),duration:r(m)})),w=v(()=>Math.round(r(u)*100));da(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 g2=L("<div><!></div>"),h2=L("<div></div>"),_2={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function ca(t,e){U(e,!0),K(t,_2);let[i,o]=Ne(),n=()=>S($,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(b,"$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),y=f(e,"ref",15,void 0),u=Ce(),$=u.state.isLive$,w=u.ads.duration,b=u.ads.position,C=u.ui.isMobile,T=v(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=Oe(),M=ue(I);{var P=V=>{var W=g2();let Y;var F=h(W);{var Q=Z=>{wd(Z,{get position(){return s()},get duration(){return d()}})},ie=Z=>{Nf(Z,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(re){y(re)}})};B(F,Z=>{l()?Z(Q):Z(ie,!1)})}g(W),E(Z=>Y=J(W,1,"timeline svelte-41cp6d",null,Y,Z),[()=>({withoutPadding:!m(),mobile:a()})]),_(V,W)},k=V=>{var W=h2();let Y;E(F=>Y=J(W,1,"timeline-stub svelte-41cp6d",null,Y,F),[()=>({mobile:a()})]),_(V,W)};B(M,V=>{r(T)?V(P):V(k,!1)})}_(t,I),z(),o()}var c1=require("@vkontakte/videoplayer-shared/es2018");var b2=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 Df(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=b2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(3),g(o),E(()=>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})),_(t,o)}var $2=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 Of(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=$2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}var y2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),x2=L('<span class="text svelte-1yhs2ga"> </span>'),w2=L('<span class="text count svelte-1yhs2ga"> </span>'),S2=L("<!> <!>",1),C2={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 Sd(t,e){var le,Ae,Me;U(e,!0),K(t,C2);let[i,o]=Ne(),n=()=>S(w,"$currentGridType$",i),a=()=>S(b,"$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,()=>[]),y=Ce(),u=(Ae=(le=y.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Ae:c1.noop,$=!!((Me=y.callbacks)!=null&&Me.onEpisodeClicked),w=y.ui.currentGridType$,b=y.ui.episodes.openedByKeyboard$,C=y.ui.episodes.panelOpened$,T=y.ui.isMobile,I=y.ui.t,M=X(void 0),P=ge=>{var Ee,ne,R;if(!!((Ee=y.callbacks)!=null&&Ee.onEpisodeClicked)){let xe=bs(ge);b.set(xe),C.set(!0),(R=(ne=y.callbacks)==null?void 0:ne.onEpisodeClicked)==null||R.call(ne,xe)}},k=X(null),V=v(()=>l()/p());Fe(()=>{var se;let ge=iu(r(V),p(),m());ge?((se=r(k))==null?void 0:se.time)!==ge.time&&(u(ge),D(k,pe(ge))):D(k,null)});let W=v(()=>{var ge;return((ge=r(k))==null?void 0:ge.text)||""}),Y=v(()=>Ki(n(),"xl")?"FULL":Ki(n(),"m")&&o1(n(),"xl")?"COUNT":"SHORT"),F=v(()=>`${I("tooltip_episodes")}: ${r(W)}`),Q=async(ge,se,Ee)=>{await xo(),(ge==null?void 0:ge.getAttribute("aria-expanded"))==="false"&&se&&!Ee&&wt(()=>{b.set(!1),ge.focus()})};Fe(()=>{Q(r(M),a(),s())});var ie=Oe(),Z=ue(ie);{var re=ge=>{let se=v(()=>d()?"px-0":"");Bt(ge,{get className(){var Ee;return`w-max btn-full-opacity btn-jc-l ${(Ee=r(se))!=null?Ee:""}`},testId:"btn-episodes",click:P,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(F)},get ref(){return r(M)},set ref(Ee){D(M,pe(Ee))},children:(Ee,ne)=>{var R=Oe(),xe=ue(R);{var _e=H=>{var ae=y2(),he=ue(ae),ee=h(he,!0);g(he);var De=A(he,2),Ze=h(De);Of(Ze,{}),g(De),E(()=>me(ee,r(W))),_(H,ae)},ze=H=>{var ae=S2(),he=ue(ae);Df(he,{});var ee=A(he,2);{var De=we=>{var Ve=x2(),Ie=h(Ve,!0);g(Ve),E(()=>me(Ie,r(W))),_(we,Ve)},Ze=(we,Ve)=>{{var Ie=Ue=>{var ct=w2(),ut=h(ct,!0);g(ct),E(()=>me(ut,m().length)),_(Ue,ct)};B(we,Ue=>{r(Y)==="COUNT"&&Ue(Ie)},Ve)}};B(ee,we=>{r(Y)==="FULL"?we(De):we(Ze,!1)})}_(H,ae)};B(xe,H=>{d()?H(_e):H(ze,!1)})}_(Ee,R)},$$slots:{default:!0}})};B(Z,ge=>{r(k)&&ge(re)})}_(t,ie),z(),o()}var x1=require("@vkontakte/videoplayer-shared/es2018");var ui=require("@vkontakte/videoplayer-core/es2018"),$t=require("@vkontakte/videoplayer-shared/es2018"),Ur=require("@vkontakte/videoplayer-statistics/es2018");var Ke=require("@vkontakte/videoplayer-shared/es2018"),Qi=require("@vkontakte/videoplayer-shared/es2018");var u1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var T2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ou=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 Qi.Subject,loadStarted$:new Qi.Subject,loadEnded$:new Qi.Subject,loadError$:new Qi.Subject,ready$:new Qi.Subject,slotRequested$:new Qi.Subject,started$:new Qi.Subject,timeRemained$:new Qi.Subject,paused$:new Qi.Subject,resumed$:new Qi.Subject,ended$:new Qi.Subject,empty$:new Qi.Subject,skipped$:new Qi.Subject,clicked$:new Qi.Subject,closed$:new Qi.Subject,error$:new Qi.Subject};this.loadAdman=e=>(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ke.now)()]}),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?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ke.now)()]}),o())};(0,Qi.addScript)(T2,e,this.loadTimeout).then(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ke.now)()]}),window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ke.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[(0,Ke.now)()]}),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?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ke.now)()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ke.now)()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ke.now)()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ke.now)()]}),!d&&(window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ke.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ke.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ke.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),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;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ke.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ke.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ke.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal,this.usePuid=i.usePuid}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var M;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ke.now)(),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:y}=e,u,$=this.playerState&&Se(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:b}=(0,Ke.detectEmbed)(),C=(M=w?b:window.location.href)!=null?M:window.location.href,T={...p,dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:y,...u?{request_id:u}:{},duration:m,...this.usePuid?{puid10:u1(i,o),puid11:n?0:1}:{}};y||delete T.preview;let I={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let P=new window.AdmanHTML;P.setDebug(!1),P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.init(I),this.adman=P,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(P){Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[(0,Ke.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ke.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let 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(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),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(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ke.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,p,m,y,u;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ke.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(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),(y=this.adman)==null||y.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&(0,Qi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var p1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var 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 nu,{startTime:m,endTime:y}=p.parse(l);s.startTime=m,s.endTime=y}else if(l.trim()!==""){let p=new Ff,{texts:m}=p.parse(l);s.texts=[...s.texts,...m]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},nu=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}},Ff=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,y)=>{let u=s.indexOf(y,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 nu;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}},f1=Hf;var su=require("@vkontakte/videoplayer-shared/es2018"),ua,ki,Uf=0,zf=!1,m1="",v1=(t,e=0,i=0)=>t<e&&t<i,ru=(t,e=0,i=0)=>t>=e&&t<=i,I2=(t,e=0,i=0)=>t>e&&t>i,g1=(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})=>ru(t,p,m));let a=t>=Uf,s=t<Uf;if(Uf=t,s&&(zf=!1),(0,su.isNonNullable)(ua)&&ru(t,ua.startTime,ua.endTime)&&m1===e.value)return ua;if(!(0,su.isNonNullable)(ki)&&(n!=null&&n.length)&&!zf){ki=n.find(({startTime:p,endTime:m})=>ru(t,p,m)||a&&v1(t,p,m)),ua=void 0,!(0,su.isNonNullable)(ki)&&n[n.length-1].endTime<t&&(zf=!0);return}else{if(ru(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime))return ua=ki,ki=void 0,m1=e.value,ua;(a&&I2(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime)||s&&v1(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime))&&(ki=void 0)}};var au={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"},k2={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"},lu=t=>{var e,i;return(i=(e=au[t])!=null?e:au[k2[t]])!=null?i:void 0};var h1=require("@vkontakte/videoplayer-shared/es2018"),wB=require("@vkontakte/videoplayer-statistics/es2018"),du=class{constructor(e,i=new h1.Subscription){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Cd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Cd||{});var Fr=t=>t!=null?t:0,ul=(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(Fr(i==null?void 0:i.top)-Fr(o==null?void 0:o.top)),left:Math.round(Fr(i==null?void 0:i.left)-Fr(o==null?void 0:o.left)),bottom:Math.round(Fr(i==null?void 0:i.bottom)-Fr(o==null?void 0:o.top)),right:Math.round(Fr(i==null?void 0:i.right)-Fr(o==null?void 0:o.left))}},pl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Fr(e==null?void 0:e.width),height:Fr(e==null?void 0:e.height)}};var cu="off";var _1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:m,previewThumbsData:y,uiConfig:u,coreConfig:$,player:w,disabledControls:b,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:M,stopPlayer:P,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:V,additionalButtons:W,additionalSettingsMenuItems:Y,additionalContextMenuItems:F,playPrevVideo:Q,playNextVideo:ie,looped:Z=!1,statistics:re,saveRate:le,internalsExposure:Ae,playerView:Me})=>{var dv,cv,uv;let ge={...$,configName:[...(dv=$.configName)!=null?dv:[],"ui"],isAudioDisabled:s,live:{...(cv=$.live)!=null?cv:{},isLiveCatchUpMode:!!n}},se=u,Ee=$t.TracerFactory.createRootTracer(se.features.tracer),ne=Ee.createComponentTracer("Store"),R=w||new ui.Player(ge,Ee);Ae==null||Ae.expose({corePlayer:R});let xe=new $t.Logger,_e=new ou(xe,{loadTimeout:se.ads.loadTimeout,initTimeout:se.ads.initTimeout,runtimeTimeout:se.ads.runtimeTimeout,useAdmanFromNPM:se.ads.useAdmanFromNPM,volumeMultiplier:se.ads.volumeMultiplier,isVsidOriginal:se.ads.isVsidOriginal,usePuid:se.ads.usePuid}),ze=Js.getInstance(),H=p==null?void 0:p.pictureInPictureApi,ae=p==null?void 0:p.annotationsApi,he=p==null?void 0:p.slotsApi,ee=xe.createComponentLog("Store"),De,Ze,we={},Ve=new Bc,Ie=re?Jt(re.oneStat.vsid$):ar(void 0),Ue=ce(gs()),ct=ce(!1),ut=(uv=H==null?void 0:H.info.isActive$)!=null?uv:new $t.ValueSubject(!1),ot=ce(0),It=ce([]),gt=(0,$t.merge)(R.events.fatalError$,R.events.managedError$).subscribe(c=>It.update(x=>[...x,c])),Qt=ar(!1,c=>{let x=R.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ti=async c=>{var de;let x=Object.values($t.InterfaceLanguage).includes(c);if(se.downloadVKLanguages&&(x&&se.updateBuiltinLanguages||!Qp(c))){let We;try{We=await(0,$t.loadVKLangPack)(c,th,ih)}catch(Ct){(de=re==null?void 0:re.oneStat)==null||de.logError({errorType:"VKLangPack",fatal:!1}),ze==null||ze.report(Ct,{errorType:"VKLangPack",fatal:!1})}We&&(Kp({language:c,pack:We,fallback:se.defaultLanguage}),At.set(c))}Qp(c)&&At.set(c)},At=ce(t),Nt=ce(e);ti(t);let O=(c,x)=>{let N=Se(At);return Gp(N,c,x,se.defaultLanguage)},be=ce("thumb"),oe=(()=>{let c=yi([Qt,be],([x,N])=>x?"crashed":N);return{...c,is:x=>Se(c)===x}})(),Re=(()=>{let c=ce(new Set(b));return{...c,add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let de=[...N];return new Set(Array.isArray(x)?de.filter(We=>!x.includes(We)):de.filter(We=>We!==x))})},includes:x=>{let N=Se(c);return Array.isArray(x)?x.every(de=>N.has(de)):N.has(x)}}})();ne.log("create store"),ee({message:"create store"});let Qe=c=>{let x=c.container;x.append(R.experimental.element$.getValue()),Je=new MutationObserver(N=>{let{removedNodes:de}=N[0];de.length&&x.append(R.experimental.element$.getValue())}),Je.observe(x,{childList:!0})},Ye=c=>{ee({message:`init video, config: ${JSON.stringify(c)}`}),C?Qe(c):($t.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,$t.now)()]}),R.initVideo(c)),ne.log("init video",{isInteractive:C}),c.subtitles&&R.setExternalTextTracks(c.subtitles),De=c},Le=new $t.Subject,nt=c=>Le.next(c),je=new $t.Subject,ht=new $t.Subject,at=new $t.Subject,Je=null,Wt={actionRewind$:je,actionSeek$:ht,inPiP$:ut,inFullscreen$:new $t.Observable(c=>Ue.subscribe(x=>c.next(x))),actionSetSubtitle$:at,nextMovie$:Le};if(re){let{oneStat:c,statSubscription:x}=re;C||x.add(c.attachTo(R)),x.add(c.attachToUi(Wt)),x.add(c.attachToAds(_e.events)),c.authorize(a).catch(N=>{ee({message:`onestat auth error ${String(N)}`})})}if(ze){let c=new $t.Subscription,x=(N,de)=>c.add(N.subscribe(de));if(x(R.events.managedError$,N=>{ze.logIError(N)}),x(R.events.fatalError$,N=>{ze.logIError(N,!0)}),re){let{oneStat:N}=re;x(N.experimental.error$,de=>{ze.logIError(de)})}ze.sentrySubscription.add(c)}let it=()=>{ui.clientChecker.device.isIOS&&Ze&&Dh(Ze).catch(c=>{ee({message:`exitIosSafariFullscreen failed: ${c}`})})},ni=new $t.Subscription().add(R.experimental.element$.subscribe(c=>{c&&(Ze=c,c.classList.add("player-media"),ta(H)&&(H.updateVideoElement(),H.registryEventHandlers()),C&&c.setAttribute("pip","false"),Me==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(R.events.ended$.subscribe(()=>{var c;it(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(R.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(R.events.started$.subscribe(async()=>{var x,N;ta(H)&&await(H==null?void 0:H.revealPictureInPicture());let c=R.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=we.onStarted)==null||N.call(we,c)})).add(R.events.willSeek$.subscribe(({from:c,to:x})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,x)})).add(R.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(R.info.position$.subscribe(c=>{var N;let x=R.info.duration$.getValue();isFinite(x)&&x>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,x,c),_e.setPosition(c,x))})).add(R.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(R.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(R.events.loadedMetadata$.subscribe(()=>{Et.state.loadedMetadata$.set(!0)})).add(R.info.is3DVideo$.subscribe(c=>{Et.ui.is3DVideo.set(c)})).add(R.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&Re.add(Jl),Re.add("PLAY_BUTTON")):Re.remove("PLAY_BUTTON"))})).add(R.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(R.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(R.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(_e.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(_e.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(_e.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(_e.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(_e.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(_e.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(_e.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(_e.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(_e.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(_e.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(_e.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(_e.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(_e.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(_e.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)})),xi=new $t.Subscription,et=()=>{var Ct,Ht,Kt;let{debugLog:c}=se,x,N="#9df7b7",de="#efd169";if(c&&c!==!0){let{colors:Ft}=c;x=c.tag,N=(Ct=Ft==null?void 0:Ft[0])!=null?Ct:N,de=(Kt=(Ht=Ft==null?void 0:Ft[1])!=null?Ht:Ft==null?void 0:Ft[0])!=null?Kt:de}let We=x?`: ${x}`:"";xi.add(R.events.log$.subscribe(Ft=>{console.debug(`%c sdk${We} `,`background:${N};`,`sdk component: ${Ft.component}`,Ft.message)})).add(xe.log$.subscribe(Ft=>{console.debug(`%c ui${We} `,`background:${de};`,`ui component: ${Ft.component}.`,Ft.message)}))},jt=()=>{xi.unsubscribe()},Vi=(c,x)=>{ne.log("start camera manual rotation",{mx:c,my:x}),R.startCameraManualRotation(c,x)},Yi=(c=!1)=>{ne.log("stop camera manual rotation",{immediate:c}),R.stopCameraManualRotation(c)},Lt=(c,x,N)=>{ne.log("move camera focus px",{xpx:c,ypx:x,dt:N}),R.moveCameraFocusPX(c,x,N)},bt=()=>{R.holdCamera()},Dt=()=>{R.releaseCamera()},co=ar(R.info.position$.getValue(),c=>{let x,N,de=()=>{let We=R.info.playbackState$.getValue(),Ct=R.info.isLive$.getValue(),Ht=R.info.duration$.getValue(),Kt=R.info.position$.getValue();if(We&&[ui.PlaybackState.PLAYING,ui.PlaybackState.PAUSED].includes(We)){let Ft=Ct?Kt-Ht:R.getExactTime();Ft!==N&&c(Ft),N=Ft}x=requestAnimationFrame(de)};return de(),()=>cancelAnimationFrame(x)}),pn=Jt(R.info.playbackState$),Ji=Jt(R.info.currentBuffer$),Co=Jt(R.info.isEnded$),j=Jt(R.info.isLive$),Zt=se.features.playbackRate?Jt(R.info.canChangePlaybackSpeed$):ar(!1),hi=Jt(R.info.liveBufferTime$),Ri=Jt(R.info.volume$),ai=Jt(R.info.muted$),pt=Nc(R.info.predefinedQualityLimitType$.pipe((0,$t.map)(c=>c===ui.PredefinedQualityLimits.TRAFFIC_SAVING)),R.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.TRAFFIC_SAVING),vi=Nc(R.info.predefinedQualityLimitType$.pipe((0,$t.map)(c=>c===ui.PredefinedQualityLimits.HIGH_QUALITY)),R.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.HIGH_QUALITY),Xe=Jt(R.info.autoQualityLimitingAvailable$),Vt=Jt(R.info.availableQualities$),uo=Jt(R.info.availableQualitiesFps$),Xt=Jt(R.info.chromecastState$),Un=Jt(R.info.chromecastDeviceName$),eo=Jt(R.info.currentFormat$),Lo=Jt(R.info.throughputEstimation$),pi=Jt(R.info.videoBitrate$),St=Jt(R.info.intrinsicVideoSize$),Bi=Jt(R.info.duration$),Fo=Jt(R.info.isAudioAvailable$),fi=null,Uo=R.info.isBuffering$,Oi=ar(Uo.getValue(),c=>{let x=Uo.subscribe(N=>{N&&fi===null?fi=window.setTimeout(()=>{c(Uo.getValue()),fi=null},se.loaderDelay):c(N)});return()=>{x.unsubscribe(),fi&&clearTimeout(fi)}}),To=()=>{fi&&clearTimeout(fi),fi=null},Hi=yi([Bi,j],([c,x])=>x?-c:c),zn=yi([pn],([c])=>c===ui.PlaybackState.PLAYING),po=Jt(R.info.atLiveEdge$),En=Jt(R.info.atLiveDurationEdge$),Vo=Jt(R.info.position$),Ro=yi([Vo,Bi],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Pn=yi([Xt],([c])=>c===ui.ChromecastState.CONNECTED),Ir=Jt(R.info.availableVideoStreams$),dr=se.features.audioLanguages?Jt(R.info.availableAudioStreams$):ar([]),An=Jt(R.info.currentVideoStream$),fn=Jt(R.info.currentAudioStream$),qn=c=>{c.language&&Wp(c.language),R.setVideoStream(c)},ft=c=>{c.language&&Wp(c.language),R.setAudioStream(c)},fo=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(de=>"isDefault"in de&&de.isDefault)),x)return x;let N=Th();return N&&(x=c.find(({language:de})=>N===de)),x!=null||(x=c.at(0)),x},zo=!1;ni.add(R.info.availableAudioStreams$.subscribe(c=>{if(!zo&&c.length){let x=fo(c);x&&(R.setAudioStream(x),zo=!0)}}));let Mn=!1;ni.add(R.info.availableVideoStreams$.subscribe(c=>{if(!Mn&&c.length){let x=fo(c);x&&(R.setVideoStream(x),Mn=!0)}}));let Bo=ce(void 0),qo=Jt(R.info.isAutoQualityEnabled$,c=>c&&Bo.set(void 0)),Wn=Jt(R.info.currentQuality$,()=>Bo.set(void 0)),No=yi([Bo,Wn],([c,x])=>c!=null?c:x),Kn=yi(eo,c=>c!==ui.VideoFormat.MPEG),mn=yi([Vt,uo,qo,No,Kn],([c,x,N,de,We])=>{let Ct=[];We&&Ct.push({value:"auto",displayValue:O("auto_quality_option"),selected:N});let Ht=c.filter(Kt=>!(0,$t.isInvariantQuality)(Kt));for(let Kt of Ht){let Ft=x[Kt];Ct.push({value:Kt,displayValue:`${Kt}${Ft?p1(Ft):""}`,selected:N?!1:Kt===de})}return Ct}),Qn=Jt(R.info.currentPlaybackRate$),Wo=yi([Qn,po,En],([c,x,N])=>{let de=N||C?1:se.controls.playbackRateMin,We=x?1:se.controls.playbackRateMax,Ct=se.controls.playbackRateStep,Ht=[];for(let Kt=de;Kt<=We;Kt+=Ct)Ht.push({value:Kt,displayValue:Kt===1?O("playback_rate_1"):O("playback_rate",{multiplier:Kt.toString(10)}),selected:c===Kt});return Ht}),mo={displayValue:O("subtitles_off"),value:cu},Ci=ce({...mo}),vn=se.features.subtitles?Jt(R.info.availableTextTracks$):ar([]),gn=hh(),Ko=yi([vn,Ci],([c,x],N)=>{var Ct;let de=[],We=c.find(({id:Ht})=>Ht===x.value);if(We!=null&&We.url){let[,Ht]=(Ct=gn.find(We.url))!=null?Ct:[];if(Ht){N(Ht);return}Ve.download(We.url).then(Kt=>{if(!Kt||Ve.isDestroyed())return;let Ft=new f1,as=We.language;if(as){let l0=!!We.isAuto,d0=Ft.parse(Kt,as);de.push({lang:as,subtitles:d0,isAuto:l0,id:We.id})}gn.add(We.url,de),Se(Ci).value===x.value&&N(de)}).catch(Kt=>{var Ft;(Ft=re==null?void 0:re.oneStat)==null||Ft.logError({errorType:"Subtitles download",fatal:!1}),ze==null||ze.report(Kt,{errorType:"Subtitles download",fatal:!1})})}N(de)}),vo=yi([Qn,zn,Ci],([c,x,N],de)=>{let Ht;if(R.info.isLive$.getValue()&&x&&N.value!==mo.value){let Ft=()=>{let as=1e3/(3*c);Ht=setTimeout(Ft,as),de(Date.now())};return Ft(),()=>clearTimeout(Ht)}}),Ln=yi([vn,Ci],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:de,isAuto:We,id:Ct}of c){let Ht=de&&lu(de);de&&Ht&&N.push({displayValue:We?O("subtitles_auto",{language:Ht}):Ht,value:Ct,selected:(x==null?void 0:x.value)===Ct,isAuto:We})}return N.length?(N.unshift({...mo,selected:(x==null?void 0:x.value)===mo.value}),N):[]}),Io={available:[],prev:[]},Fi=()=>{var x,N;let c=R.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:Ze==null?void 0:Ze.currentTime)!=null?N:0},cr=yi([co,Ci,Ko,vo],([c,x,N,de])=>{var Ct;let We=R.info.isLive$.getValue();if(We&&Io.prev!==N){let Ht=N.find(({id:Ft})=>Ft===x.value),Kt=Io.prev.find(({id:Ft})=>Ft===x.value);if(Ht){let Ft={...Ht,subtitles:[...(Ct=Kt==null?void 0:Kt.subtitles)!=null?Ct:[],...Ht.subtitles]};Io.available=[Ft],Io.prev=N}}if(x&&x.value!==mo.value){let Ht=We?Fi():c,Kt=We?Io.available:N;return g1(Ht,x,Kt,We)}}),Do=yi([cr],([c])=>c!=null&&c.texts?c.texts:[]);ni.add(Ci.subscribe(c=>{var x,N;if(c.value===mo.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let de=Object.entries(au).find(([We,Ct])=>Ct===c.displayValue);(N=l==null?void 0:l.onSubtitleOn)==null||N.call(l,de?de[0]:"")}}));let Gn=ce(!0),Vn=yi([Ji,Hi,Vo,hi],([c,x,N,de])=>{var Kt;let We=(Kt=c==null?void 0:c.end)!=null?Kt:0;if(!de)return We/x;let Ht=-N+de-x;return(We-Ht)/x}),Yn=Jt(R.info.availableSources$),ur=yi([Yn],([c])=>Object.keys((c==null?void 0:c[ui.VideoFormat.MPEG])||{}).length>0),hn=()=>{var N,de,We;let c=Object.keys(((de=(N=R.info.availableSources$)==null?void 0:N.getValue())==null?void 0:de[ui.VideoFormat.MPEG])||{}),x=(0,$t.getHighestQuality)(c)||$t.VideoQuality.Q_144P;return(We=De.sources[ui.VideoFormat.MPEG])==null?void 0:We[x]},kr=()=>{var x;let c=hn();if(c)ne.log("download video",{url:c}),mh(c,((x=De==null?void 0:De.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";ne.log("download video",{message:N}),ee({message:N})}},pr=()=>{ee({message:"toggle muted"});let c=R.info.muted$.getValue();R.info.volume$.getValue()===0&&!c?mt(Yt()):Ot(!c)},jn=()=>{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 de=pl(x),We={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:de,position:We,name:"settings"})}}ne.log("close settings menu")},Er=async(c,x=()=>Promise.resolve())=>{var We;Et.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Et.ui.settingsMenu.visible$.set(!0),await x();let N=Se(Et.ui.settingsMenu.ref$),de=Ps();if((We=l==null?void 0:l.uiInfo)!=null&&We.onSettingsMenu&&N&&de){let Ht=pl(N),Kt=ul(N,de);l.uiInfo.onSettingsMenu({visible:!0,size:Ht,position:Kt,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})},Pr=(c,x=!1)=>{var Ct;Et.ui.settingsSubMenu.visible$.set(!1);let N=Se(Et.ui.settingsMenu.ref$),de=Ps(),We=Se(Et.ui.settingsMenu.visible$);if((Ct=l==null?void 0:l.uiInfo)!=null&&Ct.onSettingsMenu&&N&&de)if(We&&!x){let Kt=pl(N),Ft=ul(N,de);l.uiInfo.onSettingsMenu({visible:!0,size:Kt,position:Ft,name:"settings"})}else{let Kt=pl(c),Ft={top:0,left:0,bottom:0,right:0},as=Se(Et.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Kt,position:Ft,name:as})}ne.log("close settings sub menu")},_n=(c,x)=>{var de;Et.ui.settingsSubMenu.visible$.set(!0),Et.ui.settingsSubMenu.ref$.set(x),Et.ui.settingsSubMenu.name$.set(c);let N=Ps();if((de=l==null?void 0:l.uiInfo)!=null&&de.onSettingsMenu&&x&&N){let Ct=pl(x),Ht=ul(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:Ct,position:Ht})}ne.log("open settings sub menu",{name:c})},Yt=()=>{var x;let c=Math.max(se.volumeMinRestore,(x=Dc())!=null?x:0);return c===0?se.volumeDefault:c},mt=c=>{let x=c===0?Yt():c,N=R.info.muted$.getValue();ee({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let de=!s||oe.is("ads");N&&c>0&&de&&(N=!1,zp(!1)),R.setVolume(c,N),_e.setVolume(c),Dp(x)},Ot=c=>{let x=R.info.volume$.getValue();if(ee({message:`set muted, currentVolume: ${x}, mute: ${c}`}),R.setMuted(c,oe.is("ads")),_e.setVolume(c?0:x),zp(c),!c&&x===0){let N=Yt();R.setVolume(N),Dp(N),_e.setVolume(N)}},li=ce(!1),ri=c=>{var x,N;ne.log("set looped",{isLooped:c}),li.set(c),R.setLooped(c),(N=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||N.call(x,c)};ri(Z);let go=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},ko=(c,x=!1)=>{var N;ee({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))},Eo=c=>{ee({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),Et.ui.timerNextVideoRunning$.set(c)},Qo=(c=!0)=>{var de;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(de=l==null?void 0:l.onPrevVideoClick)==null?void 0:de.call(l)}catch(We){ee({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&tt("prev")||Q()},Go=(c=!0)=>{var de;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(de=l==null?void 0:l.onNextVideoClick)==null?void 0:de.call(l)}catch(We){ee({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&tt("next")||ie()},tt=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:de}}=se;return N&&de&&!x?(Et.ui.aboutToGoNextVideo.set(c),Et.ui.userActionsDisabled.set(!0),!0):!1},Mt=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},gi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Ui=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},ji=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},bn=()=>{R.prepare()},$n=()=>{(0,$t.assertNonNullable)(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(ee({message:"toggle play"}),x==="ads"){N.action="play",ne.log("toggle adman play",N),_e.togglePlay();return}let de=()=>{var Ct;ee({message:"toggle play, call player.play"}),N.action="play",R.play(),(Ct=l==null?void 0:l.onPlay)==null||Ct.call(l)},We=()=>{var Ct;ee({message:"toggle play, call player.pause"}),N.action="pause",R.pause(),(Ct=l==null?void 0:l.onPause)==null||Ct.call(l)};if(R.info.isEnded$.getValue()){if(ee({message:"toggle play, video ended, seek to 0"}),je.next(),ht.next(Ur.SeekAction.REWIND),C){M==null||M();return}R.seekTime(0),de()}else R.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING?de():We();ne.log("toggle play",N)},zi=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{ee({message:`set quality, quality: ${c}`}),ne.log("set quality",{quality:c}),R.setAutoQuality(c==="auto"),c!=="auto"?(se.features.qualityDetailsSubMenuEnabled?(Oc({type:"exact_quality",quality:c,videoId:i},N),id(),R.setPredefinedQualityLimits(ui.PredefinedQualityLimits.UNKNOWN)):Op(i,c),Bo.set(c),R.setQuality(c)):se.features.qualityDetailsSubMenuEnabled?x==="default"&&(Ar("auto_quality",N),Se(pt)&&Ei(!1),Se(vi)&&Yo(!1)):id()},Ei=(c,x="as-default")=>{ee({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?ui.PredefinedQualityLimits.TRAFFIC_SAVING:ui.PredefinedQualityLimits.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(Zn(N,x),td(!1)):(R.setPredefinedQualityLimits(N),td(c))},Yo=(c,x="as-default")=>{ee({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),Zn(c?ui.PredefinedQualityLimits.HIGH_QUALITY:ui.PredefinedQualityLimits.UNKNOWN,x)},Zn=(c,x)=>{c!==ui.PredefinedQualityLimits.UNKNOWN&&(Se(Xe)&&!Se(qo)&&zi("auto",{appliesTo:x,changeReason:"limit-changed"}),Ar(c,x)),R.setPredefinedQualityLimits(c)},Ar=(c,x)=>{Oc({type:c,videoId:i},x),x==="as-default"&&Oc({type:c,videoId:i},"to-video")},jo=c=>{ne.log("set playback rate",{playbackRate:c}),R.setPlaybackRate(c),se.features.saveRate&&le&&!R.info.isLive$.getValue()&&Ih(c)},fr=()=>{let c=Se(Wo),x=c.findIndex(({selected:de})=>de);if(x===c.length-1)return;let N=c[x+1];jo(N.value)},Xn=()=>{let c=Se(Wo),x=c.findIndex(({selected:de})=>de);if(x===0)return;let N=c[x-1];jo(N.value)},mr=(c={...mo,selected:!1})=>{ne.log("set subtitles",{...c}),c&&c.value!==mo.value&&at.next(c.isAuto?c.value+"_auto":c.value),Ci.set(c)},Jn=()=>{ne.log("toggle subtitles");let c=Se(Ln),x=Se(Ci),N=Se(At);if((x==null?void 0:x.value)===mo.value){let de=c.filter(We=>We.value!==mo.value).find(We=>We.value===N)||c[1];mr(de)}else mr()},Mr=ce(!0),er=c=>{Mr.set(c)},Zo=(c,x,N=!0)=>{var de;if(ee({message:`seek to time, time: ${c}`}),ne.log("seek to time",{time:c,action:x,forcePrecise:N}),ht.next(x),R.info.isLive$.getValue()){let We=R.info.duration$.getValue(),Ct=Math.min(0,We+c);R.seekTime(Ct,N)}else{if(I!=null&&I.getValue())return;R.info.isEnded$.getValue()&&(ee({message:"seek after ended, call callbacks.onPlay"}),(de=l==null?void 0:l.onPlay)==null||de.call(l)),R.seekTime(lv(c),N)}},Lr=c=>{ee({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),Zo(c,Ur.SeekAction.EPISODE,!0)},Xo=(c,x)=>{ee({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:x});let N=Se(Hi)*c;Zo(N,x,!1)},vr=c=>{ee({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),ht.next(Ur.SeekAction.UNKNOWN),R.seekTime(R.info.isLive$.getValue()?-c:c)},zr=c=>{var de,We;let x=(de=c.max)!=null?de:"none",N=(We=c.min)!=null?We:"none";ee({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),ne.log("set auto quality limits",{max:x,min:N}),R.setAutoQualityLimits(c)},lt=c=>{ee({message:`seek external to episode start time: ${c}`}),ne.log("seek external to episode start time",{time:c}),Zo(c,Ur.SeekAction.EPISODE,!0)},Gt=c=>{ee({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),R.setPlaybackRate(c)},ii=ce(void 0),ho=ce(!1),yn=c=>{ee({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),ho.set(!0),tr(c)},tr=c=>{ii.set(c)},xn,Rn,wi=()=>{ii.set(void 0),ho.set(!1)},fe=()=>{clearTimeout(Rn),clearTimeout(xn),xn=window.setTimeout(()=>{wi()},500),Ze==null||Ze.removeEventListener("seeked",fe)},xt=c=>{ee({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),Xo(c,Ur.SeekAction.SLIDER),Se(Et.ui.isMobile)&&Se(Et.state.currentFormat$)===ui.VideoFormat.HLS?(Ze==null||Ze.addEventListener("seeked",fe),Rn=window.setTimeout(()=>{fe()},300)):wi()},di=yi([co,Hi,ii],([c,x,N],de)=>{de((0,$t.isNonNullable)(N)?N*x:c)}),mi=ce(!1),Si=()=>{mi.set(!0)},He=()=>{mi.set(!1)},Rt=ce({width:0,height:0}),oi=yi([Rt],([{width:c}],x)=>{let N=n1(c);x(N)}),to=ce(!1),_o=W.filter(c=>vh(c)),qr=yi([oi,to],([c,x])=>x?_o.filter(N=>!N.hideOnMobile):_o.filter(N=>{var de;return!((de=N.hideOnDesktopGridTypes)!=null&&de.includes(c))})),Ni=ce(W.filter(c=>gh(c))),ir=yi([Ni,oi],([c,x])=>c.filter(N=>{var de;return!((de=N.hideOnDesktopGridTypes)!=null&&de.includes(x))})),Is=yi([ir,qr],([c,x])=>[...se.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?x.map((N,de)=>{var We;return{id:de,weight:de,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(We=N.ariaLabel)!=null?We:N.tooltip,tooltipText:N.tooltip}}):[]]),or=ce(Y),Sa=yi([or],([c])=>se.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Sl=(c,x)=>{let N=Se(Ni).map(de=>de.id!==c?de:{...de,...x});Ni.set(N)},Ca=c=>{let x=Se(Ni);if(x.some(N=>N.id===c.id)){ee({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Ni.set(x)},Ta=c=>{let x=Se(Ni);if(!x.some(N=>N.id===c)){ee({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Ni.set(x)},Ia=c=>{ht.next(Ur.SeekAction.LIVE),ee({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),R.setLiveLowLatency(c)},Cl=(c,x)=>{let N=Se(or).map(de=>de.id!==c?de:{...de,...x});or.set(N)},ks=c=>{let x=Se(or);if(x.some(N=>N.id===c.id)){ee({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),or.set(x)},ka=c=>{let x=Se(or);if(!x.some(N=>N.id===c)){ee({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),or.set(x)},dt=ce(F),yt=yi([dt],([c])=>se.features.additionalContextMenuItems?c:[]),Zi=(c,x)=>{let N=Se(dt).map(de=>de.id!==c?de:{...de,...x});dt.set(N)},Jo=c=>{let x=Se(dt);if(x.some(N=>N.id===c.id)){ee({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),dt.set(x)},Xi=c=>{let x=Se(dt);if(!x.some(N=>N.id===c)){ee({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),dt.set(x)},ci=yi([to,Qt],([c,x],N)=>{N(c&&x)}),Pi=()=>{ht.next(Ur.SeekAction.LIVE),ee({message:"switch to active live"}),ne.log("switch to active live"),R.seekTime(0),R.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING&&Et.actions.internal.togglePlay()},Es=()=>{ne.log("skip adman"),_e.skip()},Ea=(c=!0)=>{(0,$t.assertNonNullable)(Et),ee({message:`switch from ads to video, callPlay: ${c}`}),ne.log("switch from ads to video",{callPlay:c}),be.set("video"),c&&R.play(),s&&Ot(!0)},Ru=()=>{(0,$t.assertNonNullable)(Et),ee({message:"switch from video to ads"}),ne.log("switch from video to ads"),Et.actions.internal.pause(),it(),be.set("ads")},ec=c=>{(0,$t.assertNonNullable)(Et);let x=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:x}),be.set(x)},Bu=c=>{(0,$t.assertNonNullable)(Et);let x=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:x}),be.set(x)},tc=c=>{(0,$t.assertNonNullable)(Et);let x=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:x}),be.set(x)},Nu=()=>((0,$t.assertNonNullable)(Et),ne.log("get debug text data"),ph(R,De,Et,Ee.getTraceId())),ic=()=>((0,$t.assertNonNullable)(Et),JSON.stringify(Ee.getFinishedSpans())),Du=()=>((0,$t.assertNonNullable)(Et),fh(R,De,Et)),Ps=()=>Ze,oc=()=>{ee({message:"toggle chromecast"}),ne.log("toggle chromecast"),R.toggleChromecast()},Tl=c=>{var N;if((0,$t.assertNonNullable)(Et),R.info.isEnded$.getValue())return;let x=!c;if(Se(Et.playerPhase)==="ads"){ee({message:`pause ads, internalCall: ${x}`}),ne.log("pause ads",{internalCall:x}),_e.pause();return}ee({message:`pause video, internalCall: ${x}`}),ne.log("pause video",{internalCall:x}),x&&((N=l==null?void 0:l.onPause)==null||N.call(l)),R.pause()},nc=c=>{var N;(0,$t.assertNonNullable)(Et);let x=!c;if(Se(Et.playerPhase)==="ads"){ee({message:`play ads, internalCall: ${x}`}),ne.log("play ads",{internalCall:x}),_e.play();return}ee({message:`play video, internalCall: ${x}`}),ne.log("play video",{internalCall:x}),x&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),R.play()},rc=c=>{(0,$t.assertNonNullable)(Et);let x=!c;if(Se(Et.playerPhase)==="ads"){ee({message:"player cannot be stopped during ads via external method"});return}ee({message:`player will be stopped, internalCall: ${x}`}),P==null||P()},sc=(c,x)=>{(0,$t.assertNonNullable)(Et),ee({message:`first start, show ads: ${c}, internalCall: ${!x}`}),ne.log("first start",{showAds:c,external:x}),c?be.set("ads"):(be.set("video"),x?R.play():Et.actions.internal.togglePlay())},Pa=()=>(ee({message:"getting time codes"}),m),ac=()=>{let c=Pa();if(!c||[0,1].includes(c.length))return;let x=R.info.position$.getValue();return c.find(N=>N.time>x)},Ou=c=>{let x=c;x||(x=ac());let N=R.info.position$.getValue();ne.log("seek to next episode",{currentTime:N,...x}),x&&(ee({message:"seek to next episode"}),Zo(x.time,Ur.SeekAction.EPISODE,!0))},lc=()=>{let c=Pa();if(!c||[0,1].includes(c.length))return;let x=R.info.position$.getValue(),N=c.findIndex(We=>We.time>x),de=N===-1?c.length-2:N-2;if(!(de<0))return c[de]},qe=c=>{let x=c;x||(x=lc());let N=R.info.position$.getValue();ne.log("seek to prev episode",{currentTime:N,...x}),x&&(ee({message:"seek to prev episode"}),Zo(x.time,Ur.SeekAction.EPISODE,!0))},si=()=>(ee({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",{...y}),y),en=async()=>{let c=H==null?void 0:H.isActive(),x="none";H!=null&&H.isActive()?(x="remove",await(H==null?void 0:H.remove())):(x="request",await(H==null?void 0:H.request())),ne.log("toggle picture in picture",{isActive:c,action:x})},As=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),ot.update(x=>x+c)},bo=ce([]);T==null||T.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[de,We],subjects:Ct}=c[N];N===0&&de!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:de/1e3,text:"",interactive:!0,completed:se.features.interactiveTimeOpenUri?!Ct.length||Ct.every(Ht=>Ht.isRemoved):!Ct.length}),We!==1/0&&x.push({time:We/1e3,text:"",interactive:!1,completed:!0})}bo.set(x)});let r0=ce(!1);I==null||I.subscribe(c=>{c&&Se(ho)&&wi()});let lv=c=>{if(!C)return c;let x=Se(bo),N=Se(Hi),We=Se(Vo)/N,Ct=x.find(Ht=>Ht.interactive&&!Ht.completed&&Ht.time>We);return typeof(Ct==null?void 0:Ct.time)=="number"?Math.min(c,Ct.time-.05):c},s0=()=>{Et.ui.episodes.panelOpened$.set(!1)},a0=()=>{ne.log("destroy store"),clearTimeout(Rn),clearTimeout(xn),ni.unsubscribe(),xi.unsubscribe(),R.destroy(),_e.destroy(),re==null||re.destroy(),ze==null||ze.destroy(),gt.unsubscribe(),Je==null||Je.disconnect(),Je=null,Ve.destroy()},Et={interfaceLanguage$:At,isCyrillicRelatedInterface$:Nt,initVideo:Ye,videoId:i,isClip:o,playerPhase:oe,vsid:Ie,state:{positionExact$:co,positionWithScrubbing$:di,duration$:Hi,playbackState$:pn,isPlaying$:zn,isLoaderVisible:Oi,bufferedProgress$:Vn,isLive$:j,canChangePlaybackSpeed$:Zt,isActiveLive$:po,isOldestAvailableLive$:En,isRewindableLive$:Ro,isEnded$:Co,muted$:ai,volume$:Ri,trafficSavingEnabled$:pt,highQualityEnabled$:vi,autoQualityLimitingAvailable$:Xe,availableVideoStreams$:Ir,availableAudioStreams$:dr,videoStream$:An,audioStream$:fn,currentQuality$:No,isAutoQualityEnabled$:qo,availableQualities$:mn,currentPlaybackRate$:Qn,availablePlaybackRates$:Wo,currentSubtitle$:Ci,availableTextTracks$:vn,availableSubtitlesList$:Ln,currentSubtitleCaptions$:Do,isAutoSubtitleCaptionVisible$:Gn,chromecastState$:Xt,chromecastDeviceName$:Un,chromecastConnected$:Pn,currentFormat$:eo,throughputEstimation$:Lo,videoBitrate$:pi,videoSize$:St,errorLog$:It,crashed$:Qt,isAudioAvailable$:Fo,isAudioDisabled:!!s,canDownload:se.features.download&&!!d,availableSources$:Yn,hasMpegSources$:ur,isInteractive:C,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!Se(bo).length,interactiveEpisodes$:bo,isInteractiveTime$:I?Jt(I):ce(!1),isInteractiveExpectation$:r0,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:V,looped$:li,loadedMetadata$:ce(!1),isAutoQualityAvailable$:Kn},ui:{t:O,controlsVisible:ce(!1),touched:ce(!1),controls:{prevButton:ce(void 0),playButton:ce(void 0),replayButton:ce(void 0),nextButton:ce(void 0),playPrevChapterButton:ce(void 0),seekToInteractiveButton:ce(void 0),interactiveGraphButton:ce(void 0),liveButton:ce(void 0),time:ce(void 0),episodes:ce(void 0),volume:ce(void 0),subtitles:ce(void 0),settings:ce(void 0),context:ce(void 0),chromecast:ce(void 0),pip:ce(void 0),fullscreen:ce(void 0),vkLogo:ce(void 0),interactiveTimeIndicator:ce(void 0),timeline:ce(void 0),autoplayNextToggle:ce(void 0),additionalButtons:W.length?W.reduce(c=>[...c,ce(void 0)],[]):[],disabledControls$:Re},modals:{hotKeyMap:{show:ce(!1),data:ce({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ue,isFullscreenOpenedByKeyboard:ct,rotateAlpha:ot,isAutoplay:ce(!1),debugPanelVisible:ce(!1),episodes:{panelOpened$:ce(!1),openedByKeyboard$:ce(!1)},contextMenu:{visible$:ce(!1),btnRef$:ce(void 0),openedByBtnKeyboard$:ce(!1),openedByHotKey$:ce(!1),lastActiveElem$:ce(void 0),showContextMenuBtn$:ce(!1),position$:ce({top:0,left:0})},playerSize:Rt,isMobile:to,mobileNotReportControlHidden$:ci,mobileUnmuteButtonExpanded:ce(!1),mobileUnmuteButtonVisible:ce(!1),icon3DVideoVisible:ce(!1),scrubbingInProgress:ho,volumeChangingInProgress:mi,is3DVideo:ce(!1),currentGridType$:oi,additionalButtonsDeprecated$:qr,additionalDesktopControlPanelRightButtons$:Is,additionalSettingsMenuItems$:Sa,additionalContextMenuItems$:yt,interactiveHideMobileControls:ce(!1),overlayContainer$:ce(void 0),startedByKeyboard$:ce(!1),autoplayNextEnabled$:ce(!1),timerNextVideoRunning$:ce(!0),settingsMenu:{visible$:ce(!1),ref$:ce(void 0),openedByBtnKeyboard$:ce(!1)},settingsSubMenu:{visible$:ce(!1),ref$:ce(void 0),name$:ce(void 0)},aboutToGoNextVideo:ce(void 0),userActionsDisabled:ce(!1),isControlsAvailable:Mr},ads:{position:ce(0),duration:ce(0),playbackState:ce("inactive"),canSkip:ce(!1),secondsToWatchBeforeSkip:ce(0),postrollPassed:ce(!1)},webApi:{pictureInPictureApi:H,annotationsApi:ae,slotsApi:he},actions:{internal:{preload:bn,firstStart:c=>sc(c,!1),play:()=>nc(!1),pause:()=>Tl(!1),togglePlay:$n,toggleMuted:pr,openSettingsMenu:Er,closeSettingsMenu:jn,openSettingsSubMenu:_n,closeSettingsSubMenu:Pr,setVolume:mt,startVolumeChanging:Si,stopVolumeChanging:He,setVideoStream:qn,setAudioStream:ft,setQuality:zi,setTrafficSavingEnabled:Ei,setHighQualityEnabled:Yo,setPlaybackRate:jo,incrementPlaybackRate:fr,decrementPlaybackRate:Xn,setSubtitle:mr,toggleSubtitle:Jn,togglePictureInPicture:en,startScrubbing:yn,progressScrubbing:tr,completeScrubbing:xt,toggleChromecast:oc,switchToActiveLive:Pi,switchFromAdsToVideo:Ea,switchFromVideoToAds:Ru,skipAd:Es,setLiveWaitingStart:ec,setLiveWaitingRecover:Bu,setLiveWaitingRecord:tc,getDebugTextData:Nu,getTraceTextData:ic,getDebugPanelData:Du,getVideoElement:Ps,seekTime:(c,x,N)=>Zo(c,x,N),clearDelayedBufferingCheckTimeout:To,seekEpisodeStartTime:Lr,seekToPercent:Xo,getNextEpisode:ac,seekToNextEpisode:Ou,getPrevEpisode:lc,seekToPrevEpisode:qe,startLogging:et,stopLogging:jt,startCameraManualRotation:Vi,stopCameraManualRotation:Yi,moveCameraFocusPX:Lt,holdCamera:bt,releaseCamera:Dt,getVideoEpisodes:Pa,getPreviewThumbsData:si,downloadVideo:kr,addLanguage:Kp,setLanguage:ti,nextMovie:nt,videoRotate:As,correctSeekTimeToInteractive:lv,replayInteractive:M,setLooped:ri,reportProblem:go,setAutoplayNextEnabled:ko,setTimerNextVideoRunning:Eo,prevVideoClick:Qo,nextVideoClick:Go,nextVideoAnnouncementShow:Mt,nextVideoAnnouncementClick:gi,nextVideoAnnouncementAuto:Ui,nextVideoAnnouncementCancel:ji},external:{firstStart:c=>sc(c,!0),play:()=>nc(!0),pause:()=>Tl(!0),stop:()=>rc(!0),seekTime:c=>vr(c),seekEpisodeStartTime:c=>lt(c),setPlaybackRate:c=>Gt(c),setAutoQualityLimits:c=>zr(c),setMuted:Ot,toggleSubtitle:Jn,setVolume:mt,returnFocusToEpisodes:s0,updateAdditionalSettingsItem:Cl,addAdditionalSettingsItem:ks,removeAdditionalSettingsItem:ka,updateAdditionalContextItem:Zi,addAdditionalContextItem:Jo,removeAdditionalContextItem:Xi,updateAdditionalButton:Sl,addAdditionalButton:Ca,removeAdditionalButton:Ta,setLiveLowLatency:Ia,hideControls:()=>er(!1),showControls:()=>er(!0)}},callbacks:l,setUiCallbacks:c=>{we={...c}},getAdmanWrapper:()=>_e,getLogger:()=>xe,getPlayer:()=>R,destroy:a0};return Et};function pa(t,e,i,o){var y;let n=["interactiveTimeIndicator"],a=(y=e[i])==null?void 0:y.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:m}=ul(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 fl=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(pa(t,i,n,o))};var uu=async(t,e,i)=>{await xo(),e&&i&&(i.focus(),t.set(!1))};var E2=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 qf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=E2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}function Wf(t,e){U(e,!0);let[i,o]=Ne(),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$,y=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,$=X(void 0);Fe(()=>{r($)&&wt(()=>{u.set(r($))})});let w=I=>{let M=bs(I),P=Gh(r($));y.set(P),p.set(M),l.set(!n())},b=()=>{m.set(!0)},C=()=>{m.set(!1)},T=v(()=>n()?"opened":"");Bt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:b,blur:C,get ariaExpanded(){return n()},get ref(){return r($)},set ref(I){D($,pe(I))},children:(I,M)=>{qf(I,{})},$$slots:{default:!0}}),z(),o()}var P2=t=>{t.stopPropagation()},A2=L("<div><!> <div></div> <div></div></div>"),M2={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.`},Lh=P_;var is=new Map;is.set(el.Interf
|
|
|
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 Id(t,e){var me;U(e,!0),W(t,M2);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=fo(),{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(()=>Ss(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())};_n(()=>{P.clearTimeout(),de()});let he=()=>{P.set(!1)},se=F("tooltip_interactive_interaction_time_indicator");var Me=A2();let oe;Me.__mousemove=[P2],Me.__click=Ae;var B=h(Me);Ao(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)=>{_d(j,{completed:!0})},$$slots:{default:!0}});var be=M(B,2);let le;ft(be,j=>b(j),()=>b());var Ke=M(be,2);let ee;ft(Ke,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(Ke,1,"pulse svelte-od3veb",null,ee,Oe)},[()=>({mobile:n(),fullscreen:m(),invisible:r(H),"icon-small":r(Q)}),()=>({hidden:r(H)}),()=>({paused:r(Y)})]),Tt("mouseleave",Me,he),$(t,Me),z(),o()}at(["mousemove","click"]);function uu(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);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=De();let p=v(()=>e.buttonComponent);var m=pe(l);Ei(m,()=>r(p),(b,u)=>{u(b,ts(()=>{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 V2=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 Wf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=V2();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 Cs(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");Wf(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 R2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),N2=L("<!> <!>",1),B2={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function ma(t,e){U(e,!0),W(t,B2);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}`);Rt(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=N2(),_=pe(u);{var w=T=>{var k=R2();$(T,k)};R(_,T=>{o()&&T(w)})}var y=M(_,2);let C=v(()=>e.type==="prev");Cs(y,{get isMobile(){return o()},get isPrev(){return r(C)}}),$(m,u)},$$slots:{default:!0}}),z()}var D2=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 kd(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:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),$(t,o)}var _1=require("@vkontakte/videoplayer-shared/es2018");var O2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),H2=L("<!> <div><!></div>",1),F2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function ml(t,e){U(e,!0),W(t,F2);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,_1.noop),d=F("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Rt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Hr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{var b=H2(),u=pe(b);{var _=T=>{var k=O2();$(T,k)};R(u,T=>{o()&&T(_)})}var w=M(u,2);let y;var C=h(w);kd(C,{}),g(w),E(T=>y=J(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(p,b)},$$slots:{default:!0}}),z()}var U2=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 wr(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=U2(),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 z2=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=z2(),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 b1=require("@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 vl(t,e){U(e,!0),W(t,K2);let[i,o]=Re(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=fo(),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,b1.noop),_=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:wr),A=v(()=>`${d()?"btn-m--play":""} ${m()}`),I=v(()=>r(C)?r(y):b());Rt(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 Hr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,q)=>{var Q=W2();let H=v(()=>r(P));var Y=pe(Q);{var ne=Le=>{var Ae=q2();$(Le,Ae)};R(Y,Le=>{d()&&Le(ne)})}var Z=M(Y,2);let de;var ce=h(Z);Ei(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 Q2=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 Kf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();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 Ed(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":"");Rt(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)=>{Kf(d,{})},$$slots:{default:!0}}),z()}var G2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),j2={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,j2);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;Rt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(m){a(m)},children:(m,b)=>{var u=G2(),_=h(u);let w;var y=h(_);{var C=k=>{wr(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 Y2=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 Qf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();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 Ad(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":"");Rt(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)=>{Qf(d,{})},$$slots:{default:!0}}),z()}var Z2=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 Gf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();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 X2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function jf(t,e){W(t,X2);let i=f(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Gf(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":"");Rt(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());jf(m,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}var Yf=require("@vkontakte/videoplayer-core/es2018");function Ld(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()===Yf.PlaybackState.PAUSED&&b()}),_=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),y=v(()=>s()&&n()===Yf.PlaybackState.PLAYING);Rt(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)=>{sd(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}var Zf=require("@vkontakte/videoplayer-shared/es2018");var J2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),ey=L('<img class="icon" aria-hidden="true">');function va(t,e){"use strict";let i=X(!1),o=()=>{D(i,!0)};var n=De(),a=pe(n);{var s=l=>{var p=J2();$(l,p)},d=l=>{var p=ey();E(()=>Be(p,"src",e.icon)),Tt("error",p,o),qs(p),$(l,p)};R(a,l=>{r(i)?l(s):l(d,!1)})}$(t,n)}function Xf(t,e){U(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Zf.noop),n=f(e,"ref",15),a=v(()=>o()===Zf.noop),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 b;return(b=e.testId)!=null?b:e.id});Rt(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)=>{va(b,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var $1=t=>!!t.buttonComponent;var ss={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var oy=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),ny={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 Jf(t,e){var Es,Ea;U(e,!0),W(t,ny);let[i,o]=Re(),n=()=>S(G,"$disabledControls$",i),a=()=>S(Vt,"$adPlaybackState",i),s=()=>S(ht,"$playbackState$",i),d=()=>S(wo,"$currentSubtitle$",i),l=()=>S(jt,"$isEnded$",i),p=()=>S(tr,"$currentGridType$",i),m=()=>S(ti,"$isLive$",i),b=()=>S(rn,"$chromecastState$",i),u=()=>S(Di,"$isPictureInPictureActive",i),_=()=>S(Wi,"$pictureInPictureType$",i),w=()=>S($n,"$availableSubtitlesList$",i),y=()=>S(Oi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(ri,"$showContextMenuBtn$",i),T=()=>S(ii,"$playerSize",i),k=()=>S(Zt,"$isRewindableLive$",i),P=()=>S(et,"$isActiveLive$",i),A=()=>S(Ji,"$graphIsOpened$",i),I=()=>S(Xt,"$contextMenuVisible$",i),V=()=>S(no,"$isFullscreen",i),q=()=>S(zo,"$autoplayNextEnabled",i),Q=()=>S(r(sr),"$prevButton",i),H=()=>S(r(Er),"$replayButton",i),Y=()=>S(r(Do),"$playButton",i),ne=()=>S(r(Ii),"$nextButton",i),Z=()=>S(r(ar),"$playPrevChapterButton",i),de=()=>S(r(vt),"$seekToInteractiveButton",i),ce=()=>S(r(zt),"$interactiveGraphButton",i),Le=()=>S(r(Ai),"$liveButton",i),Ae=()=>S(r(ko),"$time",i),he=()=>S(r(nt),"$episodes",i),se=()=>S(r(Dt),"$vkLogo",i),Me=()=>S(r(mi),"$volume",i),oe=()=>S(r(Fi),"$subtitles",i),B=()=>S(r(go),"$settings",i),be=()=>S(r(Si),"$context",i),le=()=>S(r(Mi),"$fullscreen",i),Ke=()=>S(r(gi),"$chromecast",i),ee=()=>S(So,"$additionalDesktopControlPanelRightButtons$",i),me=()=>S(Vo,"$isInteractiveTime$",i),j=()=>S(Lt,"$settingsMenuVisible",i),te=()=>S(dr,"$settingButtonRef$",i),Oe=()=>S(li,"$startedByKeyboard$",i),je=()=>S(Ut,"$isAudioAvailable$",i),$e=()=>S(Nt,"$fakeIsPlaying$",i),we=()=>S(yn,"$seekToInteractiveDisabledTooltip$",i),Ve=()=>S(Xe,"$adPosition",i),Ye=()=>S(We,"$position$",i),ct=()=>S(pi,"$adDuration",i),ut=()=>S(it,"$duration$",i),st=f(e,"playerControlsWrapperRef",15,void 0),It=f(e,"playerControlsRef",15,void 0),bt=f(e,"isAds",3,!1),Yt=f(e,"logoTargetUrl",3,""),ni=f(e,"isOneVideoPlaylist",3,!1),Et=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Nt}=fo(),O=Te(),_e=fo(),re=Kt(),Ne=O.actions.internal.toggleMuted,qe=O.actions.internal.togglePlay,Ge=O.actions.internal.pause,pt=O.actions.internal.toggleSubtitle,Ze=(Es=O.callbacks)==null?void 0:Es.onAudioDoesNotExistHint,tt=(Ea=O.callbacks)==null?void 0:Ea.onAudioDisabledHint,it=O.state.duration$,We=O.state.positionWithScrubbing$,ht=O.state.playbackState$,Ut=O.state.isAudioAvailable$,Je=O.state.isAudioDisabled,jt=O.state.isEnded$,ti=O.state.isLive$,et=O.state.isActiveLive$,Zt=O.state.isRewindableLive$,{isActive$:Di,type$:Wi}=_e.pictureInPicture$,Lt=O.ui.settingsMenu.visible$,_t=O.ui.settingsMenu.openedByBtnKeyboard$,Bt=O.ui.controls,mo=O.actions.internal.getVideoEpisodes(),rn=O.state.chromecastState$,$n=O.state.availableSubtitlesList$,wo=O.state.currentSubtitle$,G=Bt.disabledControls$,Xt=O.ui.contextMenu.visible$,ri=O.ui.contextMenu.showContextMenuBtn$,Oi=O.ui.contextMenu.openedByBtnKeyboard$,li=O.ui.startedByKeyboard$,mt=O.ui.t,pi=O.ads.duration,Xe=O.ads.position,Vt=O.ads.playbackState,no=O.ui.isFullscreen,ii=O.ui.playerSize,tr=O.ui.currentGridType$,So=O.ui.additionalDesktopControlPanelRightButtons$,zo=O.ui.autoplayNextEnabled$,di=O.actions.internal.getVideoElement,St=O.actions.internal.replayInteractive,Ti=O.actions.internal.prevVideoClick,Lo=O.actions.internal.nextVideoClick,fi=O.state.isInteractive,Vo=O.state.isInteractiveTime$,Ki=O.state.showInteractiveGraph,Co=O.state.showSeekToInteractive,To=O.state.showPlayPrevChapter,Rn=O.state.showInteractiveTimeIndicator,Io=O.state.playPrevChapterDisabledTooltip,yn=_e.seekToInteractiveDisabledTooltip$,Ji=_e.graphIsOpened$,Ro=re.features.interactiveResponsiveUi,sn=v(()=>n().has("EPISODE_BUTTON")),Cr=v(()=>n().has("GRAPH_BUTTON")),ir=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Nn=v(()=>n().has("PLAY_BUTTON")),xn=v(()=>n().has("REPLAY_BUTTON")),Bn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),or=()=>O.actions.internal.toggleChromecast(),ro=v(()=>bt()?a()==="playing":s()===ga.PlaybackState.PLAYING),No=v(()=>d().value!=="off"),wn=v(()=>l()&&!bt()||fi),ot=v(()=>Ro?r(wn)&&Yi(p(),"m"):r(wn)),Sn=v(()=>!l()||fi||bt()),Dn=v(()=>Yi(p(),"m")),an=v(()=>e.showNextPrevButtons&&Yi(p(),"m")&&!bt()&&e.nextButtonActive),nr=v(()=>e.showNextPrevButtons&&Yi(p(),"m")&&!bt()&&e.prevButtonActive),ln=v(()=>!bt()&&!!m()),dn=v(()=>b()!==ga.ChromecastState.NOT_AVAILABLE&&!(u()&&_()===1)&&Yi(p(),"m")&&!fi),cn=v(()=>e.showAutoplayNext&&!ni()&&Yi(p(),"s")),eo=v(()=>w().length>0&&Yi(p(),"m")),Qi=v(()=>y()||C()),un=v(()=>Yi(p(),"s")&&!bt()),On=v(()=>!e.logoHidden&&!bt()),qo=v(()=>re.features.fullscreen&&(e.logoHidden||Yi(p(),Ro?"xs":"s"))&&!(u()&&_()===1)&&(fi?Et():!0)),pn=v(()=>(!m()||bt())&&!(re.features.interactiveHideTime&&fi)),Bo=v(()=>T().width>100),vo=v(()=>Ki&&Yi(p(),"m")),Hi=v(()=>Ro?Co&&Yi(p(),"s"):Co),Hn=v(()=>Ro?To&&Yi(p(),"s"):To),so=v(()=>!bt()&&!m()&&!!(mo!=null&&mo.length)&&r(Dn)&&!r(sn)),Cn=v(()=>!k()||!!P()),Fn=v(()=>A()?mt("tooltip_interactive_graph_on"):mt("tooltip_interactive_graph_off")),fn=v(()=>I()?mt("aria_label_context_menu_close"):mt("aria_label_context_menu_open")),Tr=(dt,xt)=>dt?xt&&xt===ga.PlaybackState.PAUSED?mt("tooltip_play"):"":mt("tooltip_live"),Wo=v(()=>Tr(r(Cn),s())),Ir=v(()=>re.logoType==="vk_video"?mt("tooltip_vk_video_logo"):mt("tooltip_vk_logo")),Un=v(()=>r(No)?mt("tooltip_subtitles_on"):mt("tooltip_subtitles_off")),zn=v(()=>V()?mt("tooltip_fullscreen_on"):mt("tooltip_fullscreen_off")),rr=v(()=>b()===ga.ChromecastState.CONNECTED?mt("tooltip_chromecast_on"):mt("tooltip_chromecast_off")),kr=v(()=>q()?mt("tooltip_autoplay_on"):mt("tooltip_autoplay_off")),Tn=X(0),Jt=fe({}),sr=v(()=>Bt.prevButton),Er=v(()=>Bt.replayButton),Do=v(()=>Bt.playButton),Ii=v(()=>Bt.nextButton),ar=v(()=>Bt.playPrevChapterButton),vt=v(()=>Bt.seekToInteractiveButton),zt=v(()=>Bt.interactiveGraphButton),Ai=v(()=>Bt.liveButton),ko=v(()=>Bt.time),nt=v(()=>Bt.episodes),Dt=v(()=>Bt.vkLogo),mi=v(()=>Bt.volume),Fi=v(()=>Bt.subtitles),go=v(()=>Bt.settings),Si=v(()=>Bt.context),Mi=v(()=>Bt.fullscreen),gi=v(()=>Bt.chromecast),_i=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:Ke()?Ke().right-Ke().left:0,additionalButtons:ee().length?ee().reduce(dt=>[...dt,40],[]):[]})),Ui=X(0);He(()=>{(!r(Ui)||r(Ui)<r(_i).time)&&wt(()=>D(Ui,fe(r(_i).time)))});let qn=X(!1);He(()=>{let dt=0;r(so)&&(Yi(p(),"xl")?dt=r(_i).time:dt=60);let xt=r(_i).prevButton+r(_i).playButton+r(_i).nextButton+r(_i).seekToInteractiveButton+r(_i).interactiveGraphButton+r(_i).liveButton+r(Ui)+dt;D(qn,fe(r(pn)&&r(Tn)>=xt))});let lr=v(()=>r(qn)&&Yi(p(),"m")),Wn=(0,y1.debounceFn)(fl,260);He(()=>{T(),me(),Wn(di(),Bt,Jt,e.showControls)});let dr=ae();He(()=>{j(),te()&&wt(()=>rl(te(),j(),_t))});let cr;He(()=>{Oe(),wt(()=>cu(li,Oe(),cr))});function ur(){ys({isAudioDisabled:Je,audioDisabledHintCallback:tt,isAudioAvailable:je(),audioIsNotExistHintCallback:Ze})&&Ne()}let pr=fi?St:qe,Kn=v(()=>$e()!==null),Qn=v(()=>r(Kn)?$e():r(ro)),Oo=v(()=>r(Qn)?mt("tooltip_pause"):mt("tooltip_play")),Pr=mt("tooltip_episodes"),Ho=v(()=>{var dt,xt,io,Ko;return r(nr)?{id:"prevButton",type:"desktop-control-panel-left",weight:ns.prevButton,buttonComponent:ma,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ti.bind(null,!0)},tooltipEnabled:!((xt=(dt=O.callbacks)==null?void 0:dt.uiInfo)!=null&&xt.onPrevButtonMouseEnter)&&!((Ko=(io=O.callbacks)==null?void 0:io.uiInfo)!=null&&Ko.onPrevButtonMouseLeave),mouseEnter:()=>{var oo,ci,Vi;(Vi=(ci=(oo=O.callbacks)==null?void 0:oo.uiInfo)==null?void 0:ci.onPrevButtonMouseEnter)==null||Vi.call(ci,fa(di(),Jt,"prevButton",e.showControls))},mouseLeave:()=>{var oo,ci,Vi;(Vi=(ci=(oo=O.callbacks)==null?void 0:oo.uiInfo)==null?void 0:ci.onPrevButtonMouseLeave)==null||Vi.call(ci,fa(di(),Jt,"prevButton",e.showControls))},tooltipText:mt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),fr=v(()=>r(ot)?{id:"replayButton",type:"desktop-control-panel-left",weight:ns.replayButton,buttonComponent:ml,buttonComponentProps:{disabled:r(xn),click:pr},tooltipText:mt("tooltip_restart"),disabled:r(xn)}:void 0),Ar=v(()=>r(Sn)?{id:"playButton",type:"desktop-control-panel-left",weight:ns.playButton,buttonComponent:vl,buttonComponentProps:{disabled:r(Nn),isPlaying:r(ro),click:qe},tooltipText:r(Oo),disabled:r(Nn)}:void 0),Mr=v(()=>{var dt,xt,io,Ko;return r(an)?{id:"nextButton",type:"desktop-control-panel-left",weight:ns.nextButton,buttonComponent:ma,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Lo.bind(null,!0)},tooltipEnabled:!((xt=(dt=O.callbacks)==null?void 0:dt.uiInfo)!=null&&xt.onNextButtonMouseEnter)&&!((Ko=(io=O.callbacks)==null?void 0:io.uiInfo)!=null&&Ko.onNextButtonMouseLeave),mouseEnter:()=>{var oo,ci,Vi;(Vi=(ci=(oo=O.callbacks)==null?void 0:oo.uiInfo)==null?void 0:ci.onNextButtonMouseEnter)==null||Vi.call(ci,fa(di(),Jt,"nextButton",e.showControls))},mouseLeave:()=>{var oo,ci,Vi;(Vi=(ci=(oo=O.callbacks)==null?void 0:oo.uiInfo)==null?void 0:ci.onNextButtonMouseLeave)==null||Vi.call(ci,fa(di(),Jt,"nextButton",e.showControls))},tooltipText:mt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Lr=v(()=>fi&&r(Hn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ns.playPrevChapterButton,buttonComponent:Ed,buttonComponentProps:{disabled:r(Bn),click:e.playPrevChapter},tooltipText:mt("tooltip_interactive_go_back"),disabledTooltipContent:mt(Io),disabled:r(Bn)}:void 0),to=v(()=>fi&&r(Hi)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ns.seekToInteractiveButton,buttonComponent:Ad,buttonComponentProps:{disabled:r(ir),click:e.seekToInteractive},tooltipText:mt("tooltip_interactive_seek"),disabled:r(ir),disabledTooltipContent:mt(we())}:void 0),In=v(()=>fi&&r(vo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ns.interactiveGraphButton,buttonComponent:Md,buttonComponentProps:{disabled:r(Cr),click:Ji.toggle,graphIsOpened:A()},tooltipText:r(Fn)}:void 0),Vr=v(()=>r(ln)?{id:"liveButton",type:"desktop-control-panel-left",weight:ns.liveButton,buttonComponent:Ld,buttonComponentProps:{isLiveActive:r(Cn),ariaLabel:r(Wo)},tooltipText:r(Wo),disabled:r(Cn)&&s()===ga.PlaybackState.PLAYING}:void 0),lt=v(()=>[r(Ho),r(fr),r(Ar),r(Mr),r(Lr),r(to),r(In),r(Vr)].filter(dt=>!!dt).sort(na)),qt=v(()=>r(On)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ss.vkLogo,buttonComponent:yd,buttonComponentProps:{targetUrl:Yt(),logoClickable:e.logoClickable,click:Ge},tooltipText:r(Ir),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Li=v(()=>r(cn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ss.autoplayNext,buttonComponent:Pd,tooltipText:r(kr)}:void 0),Eo=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:ss.volume,buttonComponent:Tf,buttonComponentProps:{click:ur}})),Se=v(()=>r(eo)?{id:"subtitles",type:"desktop-control-panel-right",weight:ss.subtitles,buttonComponent:xf,buttonComponentProps:{isSubtitlesEnabled:r(No),click:pt},tooltipText:r(Un)}:void 0),Mt=v(()=>r(un)?{id:"settings",type:"desktop-control-panel-right",weight:ss.settings,buttonComponent:ul,buttonComponentProps:{ref$:dr},tooltipText:j()?void 0:mt("tooltip_settings_off")}:void 0),hi=v(()=>re.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ss.context,buttonComponent:qf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(fn)},className:r(Qi)?"":"out-of-view",tooltipText:r(fn)}:void 0),bi=v(()=>r(qo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ss.fullscreen,buttonComponent:$d,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(zn)}:void 0),vi=v(()=>r(dn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ss.chromecast,buttonComponent:xd,buttonComponentProps:{state:b(),click:or},tooltipText:r(rr)}:void 0),ke=v(()=>[r(qt),r(Li),r(Eo),r(Se),r(Mt),r(hi),r(bi),r(vi),...ee()].filter(dt=>!!dt).sort(na));var $t=oy(),Gt=pe($t);let Ci;var si=h(Gt);let qr=v(()=>!r(Bo));ua(si,{get isHidden(){return r(qr)},get isAds(){return bt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return k()},get ref(){return Jt.timeline},set ref(dt){Jt.timeline=dt}});var zi=M(si,2),Gn=h(zi),ks=h(Gn);ki(ks,17,()=>r(lt),dt=>dt.id,(dt,xt)=>{uu(dt,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get tooltipEnabled(){return r(xt).tooltipEnabled},get mouseEnter(){return r(xt).mouseEnter},get mouseLeave(){return r(xt).mouseLeave},get ref(){return Jt[r(xt).id]},set ref(io){Jt[r(xt).id]=io}})});var jn=M(ks,2);{var Ca=dt=>{let xt=v(()=>bt()?Ve():Ye()),io=v(()=>bt()?ct():ut());hd(dt,{isMobile:!1,get showDuration(){return r(lr)},get position(){return r(xt)},get duration(){return r(io)},get ref(){return Jt.time},set ref(Ko){Jt.time=Ko}})};R(jn,dt=>{r(pn)&&dt(Ca)})}var Sl=M(jn,2);let Ta=v(()=>!r(so));Ao(Sl,{className:"w-max",get disabled(){return r(Ta)},tooltipContent:Pr,get ref(){return Jt.episodes},set ref(dt){Jt.episodes=dt},children:(dt,xt)=>{var io=De(),Ko=pe(io);{var oo=ci=>{Sd(ci,{get position(){return Ye()},get duration(){return ut()},timeCodes:mo})};R(Ko,ci=>{r(so)&&ci(oo)})}$(dt,io)},$$slots:{default:!0}}),g(Gn);var Ia=M(Gn,2);ki(Ia,21,()=>r(ke),dt=>dt.id,(dt,xt)=>{var io=De(),Ko=pe(io);{var oo=Vi=>{uu(Vi,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get ref(){return Jt[r(xt).id]},set ref(Ps){Jt[r(xt).id]=Ps}})},ci=Vi=>{let Ps=v(()=>!!r(xt).disabled);Xf(Vi,{get id(){return r(xt).id},get testId(){return r(xt).testId},get icon(){return r(xt).icon},get ariaLabel(){return r(xt).ariaLabel},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(Ps)},get onClick(){return r(xt).onClick},get ref(){return Jt[r(xt).id]},set ref(Pa){Jt[r(xt).id]=Pa}})};R(Ko,Vi=>{$1(r(xt))?Vi(oo):Vi(ci,!1)})}$(dt,io)}),g(Ia),g(zi),ft(zi,dt=>It(dt),()=>It()),g(Gt),ft(Gt,dt=>st(dt),()=>st());var ka=M(Gt,2);{var Cl=dt=>{Id(dt,{get ref(){return Jt.interactiveTimeIndicator},set ref(xt){Jt.interactiveTimeIndicator=xt}})};R(ka,dt=>{Rn&&dt(Cl)})}E(dt=>Ci=J(Gt,1,"wrapper-bottom svelte-1iedtj3",null,Ci,dt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Or(Gn,"clientWidth",dt=>D(Tn,dt)),$(t,$t),z(),o()}var gl=require("@vkontakte/videoplayer-core/es2018");var em=require("@vkontakte/videoplayer-shared/es2018");var ry=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),sy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),ay={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 tm(t,e){W(t,ay);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,em.noop),n=v(()=>o()===em.noop),a=v(()=>r(n)||i()),s=X(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Rt(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=ry();$(y,C)},w=y=>{var C=sy();E(()=>Be(C,"src",e.iconUrl)),Tt("error",C,d),qs(C),$(y,C)};R(u,y=>{r(s)?y(_):y(w,!1)})}$(p,b)},$$slots:{default:!0}})}var ly=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 im(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ly();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)}var x1=require("@vkontakte/videoplayer-shared/es2018");var dy=L('<span class="text svelte-6gmlbk"> </span>'),cy=L('<div aria-hidden="true"><!> <!></div>'),uy={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 pu(t,e){U(e,!0),W(t,uy);let i=f(e,"muted",3,!1),o=f(e,"expanded",3,!1),n=f(e,"click",3,x1.noop),a=f(e,"ref",15,void 0),d=Te().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=v(()=>o()?ws:im),m=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Rt(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 _=cy();let w=v(()=>r(p)),y;var C=h(_);Ei(C,()=>r(w),(P,A)=>{A(P,{})});var T=M(C,2);{var k=P=>{var A=dy(),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 py=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 om(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=py();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 fy={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 Id(t,e){var ae;U(e,!0),K(t,M2);let[i,o]=Ne(),n=()=>S(C,"$isMobile",i),a=()=>S(P,"$areControlsVisible",i),s=()=>S(V,"$currentGridType$",i),d=()=>S(I,"$isInteractiveTime$",i),l=()=>S(b,"$interactiveControlsOpacity$",i),p=()=>S(M,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>S(T,"$isFullscreen",i),y=f(e,"ref",15,void 0),u=X(void 0),$=Ce(),w=ao(),{interactiveControlsOpacity$:b}=w,C=$.ui.isMobile,T=$.ui.isFullscreen,I=$.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,P=$.ui.controlsVisible,k=(ae=$.callbacks)==null?void 0:ae.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,W=v(()=>!n()&&a()),Y=v(()=>ws(s(),"s")),F=v(()=>!d()||!!l()||r(W)),Q=X(!1);Fe(()=>{D(Q,pe(r(F)))});let ie=()=>{D(Q,!0)},Z=()=>{var he;re(),(he=r(u))==null||he.addEventListener("animationiteration",ie,{once:!0})},re=()=>{var he;D(Q,!1),(he=r(u))==null||he.removeEventListener("animationiteration",ie)},le=he=>{M.set(he)},Ae=v(()=>p()&&!r(F));Fe(()=>{p()?Z():re()});let Me=()=>{r(F)||(M.set(!0),k==null||k())};In(()=>{M.clearTimeout(),re()});let ge=()=>{M.set(!1)},se=q("tooltip_interactive_interaction_time_indicator");var Ee=A2();let ne;Ee.__mousemove=[P2],Ee.__click=Me;var R=h(Ee);Ao(R,{tooltipContent:se,get tooltipActive(){return r(Ae)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return y()},set ref(he){y(he)},children:(he,ee)=>{_d(he,{completed:!0})},$$slots:{default:!0}});var xe=A(R,2);let _e;vt(xe,he=>y(he),()=>y());var ze=A(xe,2);let H;vt(ze,he=>D(u,he),()=>r(u)),g(Ee),E((he,ee,De)=>{ne=J(Ee,1,"interactive-episode-icon-animated svelte-od3veb",null,ne,he),_e=J(xe,1,"ref-block svelte-od3veb",null,_e,ee),H=J(ze,1,"pulse svelte-od3veb",null,H,De)},[()=>({mobile:n(),fullscreen:m(),invisible:r(F),"icon-small":r(Y)}),()=>({hidden:r(F)}),()=>({paused:r(Q)})]),Tt("mouseleave",Ee,ge),_(t,Ee),z(),o()}st(["mousemove","click"]);function pu(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);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=Oe();let p=v(()=>e.buttonComponent);var m=ue(l);Ii(m,()=>r(p),(y,u)=>{u(y,ts(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),_(s,l)},$$slots:{default:!0}}),z()}var os={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var V2=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 Kf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=V2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),_(t,o)}function Ss(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");Kf(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 R2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),B2=L("<!> <!>",1),N2={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 fa(t,e){U(e,!0),K(t,N2);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}`);Bt(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,y)=>{var u=B2(),$=ue(u);{var w=T=>{var I=R2();_(T,I)};B($,T=>{o()&&T(w)})}var b=A($,2);let C=v(()=>e.type==="prev");Ss(b,{get isMobile(){return o()},get isPrev(){return r(C)}}),_(m,u)},$$slots:{default:!0}}),z()}var D2=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 kd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=D2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}var b1=require("@vkontakte/videoplayer-shared/es2018");var O2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),H2=L("<!> <div><!></div>",1),F2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function ml(t,e){U(e,!0),K(t,F2);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,b1.noop),d=q("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Bt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Or.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{var y=H2(),u=ue(y);{var $=T=>{var I=O2();_(T,I)};B(u,T=>{o()&&T($)})}var w=A(u,2);let b;var C=h(w);kd(C,{}),g(w),E(T=>b=J(w,1,"svelte-1ot3duq",null,b,T),[()=>({mobile:o()})]),_(p,y)},$$slots:{default:!0}}),z()}var U2=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 Cr(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=U2(),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 z2=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=z2(),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 $1=require("@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 vl(t,e){U(e,!0),K(t,K2);let[i,o]=Ne(),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,""),y=f(e,"click",3,$1.noop),$=Ce().ui.t,{toggle:w}=a,b=v(()=>w),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),I=v(()=>r(T)?$("tooltip_pause"):$("tooltip_play")),M=v(()=>r(T)?ns:Cr),P=v(()=>`${d()?"btn-m--play":""} ${m()}`),k=v(()=>r(C)?r(b):y());Bt(t,{get className(){return r(P)},testId:"btn-play",get click(){return r(k)},get disabled(){return p()},get ariaLabel(){return r(I)},get ariaKeyShortCut(){return Or.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,W)=>{var Y=W2();let F=v(()=>r(M));var Q=ue(Y);{var ie=Ae=>{var Me=q2();_(Ae,Me)};B(Q,Ae=>{d()&&Ae(ie)})}var Z=A(Q,2);let re;var le=h(Z);Ii(le,()=>r(F),(Ae,Me)=>{Me(Ae,{})}),g(Z),E(Ae=>re=J(Z,1,"svelte-1ot3duq",null,re,Ae),[()=>({mobile:d()})]),_(V,Y)},$$slots:{default:!0}}),z(),o()}var Q2=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 Qf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}function Ed(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=q("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Bt(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)=>{Qf(d,{})},$$slots:{default:!0}}),z()}var G2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Y2={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),K(t,Y2);let[i,o]=Ne(),n=()=>S(d,"$autoplayNextEnabled$",i),a=f(e,"ref",15,void 0),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Bt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(m){a(m)},children:(m,y)=>{var u=G2(),$=h(u);let w;var b=h($);{var C=I=>{Cr(I,{width:"14",height:"14",fill:"#000"})},T=I=>{ns(I,{width:"14",height:"14",fill:"#000"})};B(b,I=>{n()?I(C):I(T,!1)})}g($),g(u),E(I=>w=J($,1,"toggler svelte-et3q1q",null,w,I),[()=>({enabled:n()})]),_(m,u)},$$slots:{default:!0}}),z(),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 Gf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=j2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>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})),_(t,o)}function Ad(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=q("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Bt(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)=>{Gf(d,{})},$$slots:{default:!0}}),z()}var Z2=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 Yf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),_(t,o)}var X2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function jf(t,e){K(t,X2);let i=f(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Yf(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=Ce().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=v(()=>o()?"hidden":"");Bt(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,y)=>{let u=v(()=>!!a());jf(m,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}var Zf=require("@vkontakte/videoplayer-core/es2018");function Ld(t,e){U(e,!0);let[i,o]=Ne(),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,y=l.actions.internal.togglePlay,u=v(()=>()=>{if(!s()){m();return}n()===Zf.PlaybackState.PAUSED&&y()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),b=v(()=>s()&&n()===Zf.PlaybackState.PLAYING);Bt(t,{get className(){return r($)},get testId(){return r(w)},get disabled(){return r(b)},get ariaLabel(){return d()},get click(){return r(u)},children:(C,T)=>{sd(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}var Xf=require("@vkontakte/videoplayer-shared/es2018");var J2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),ey=L('<img class="icon" aria-hidden="true">');function ma(t,e){"use strict";let i=X(!1),o=()=>{D(i,!0)};var n=Oe(),a=ue(n);{var s=l=>{var p=J2();_(l,p)},d=l=>{var p=ey();E(()=>Be(p,"src",e.icon)),Tt("error",p,o),zs(p),_(l,p)};B(a,l=>{r(i)?l(s):l(d,!1)})}_(t,n)}function Jf(t,e){U(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Xf.noop),n=f(e,"ref",15),a=v(()=>o()===Xf.noop),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 y;return(y=e.testId)!=null?y:e.id});Bt(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:(y,u)=>{ma(y,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var y1=t=>!!t.buttonComponent;var rs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var oy=L('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),ny={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function em(t,e){var ks,ka;U(e,!0),K(t,ny);let[i,o]=Ne(),n=()=>S(j,"$disabledControls$",i),a=()=>S(Vt,"$adPlaybackState",i),s=()=>S(Je,"$playbackState$",i),d=()=>S(Co,"$currentSubtitle$",i),l=()=>S(ni,"$isEnded$",i),p=()=>S(Un,"$currentGridType$",i),m=()=>S(xi,"$isLive$",i),y=()=>S(pn,"$chromecastState$",i),u=()=>S(Vi,"$isPictureInPictureActive",i),$=()=>S(Yi,"$pictureInPictureType$",i),w=()=>S(Ji,"$availableSubtitlesList$",i),b=()=>S(Ri,"$contextMenuOpenedByKeyboard$",i),C=()=>S(hi,"$showContextMenuBtn$",i),T=()=>S(Xt,"$playerSize",i),I=()=>S(jt,"$isRewindableLive$",i),M=()=>S(et,"$isActiveLive$",i),P=()=>S(Vo,"$graphIsOpened$",i),k=()=>S(Zt,"$contextMenuVisible$",i),V=()=>S(uo,"$isFullscreen",i),W=()=>S(Lo,"$autoplayNextEnabled",i),Y=()=>S(r(mt),"$prevButton",i),F=()=>S(r(Ot),"$replayButton",i),Q=()=>S(r(li),"$playButton",i),ie=()=>S(r(ri),"$nextButton",i),Z=()=>S(r(go),"$playPrevChapterButton",i),re=()=>S(r(ko),"$seekToInteractiveButton",i),le=()=>S(r(Eo),"$interactiveGraphButton",i),Ae=()=>S(r(Qo),"$liveButton",i),Me=()=>S(r(Go),"$time",i),ge=()=>S(r(tt),"$episodes",i),se=()=>S(r(Mt),"$vkLogo",i),Ee=()=>S(r(gi),"$volume",i),ne=()=>S(r(Ui),"$subtitles",i),R=()=>S(r(ji),"$settings",i),xe=()=>S(r(bn),"$context",i),_e=()=>S(r($n),"$fullscreen",i),ze=()=>S(r(zi),"$chromecast",i),H=()=>S(eo,"$additionalDesktopControlPanelRightButtons$",i),ae=()=>S(Uo,"$isInteractiveTime$",i),he=()=>S(Lt,"$settingsMenuVisible",i),ee=()=>S(fr,"$settingButtonRef$",i),De=()=>S(ai,"$startedByKeyboard$",i),Ze=()=>S(Wt,"$isAudioAvailable$",i),we=()=>S(Nt,"$fakeIsPlaying$",i),Ve=()=>S(En,"$seekToInteractiveDisabledTooltip$",i),Ie=()=>S(Xe,"$adPosition",i),Ue=()=>S(at,"$position$",i),ct=()=>S(vi,"$adDuration",i),ut=()=>S(ht,"$duration$",i),ot=f(e,"playerControlsWrapperRef",15,void 0),It=f(e,"playerControlsRef",15,void 0),gt=f(e,"isAds",3,!1),Qt=f(e,"logoTargetUrl",3,""),ti=f(e,"isOneVideoPlaylist",3,!1),At=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Nt}=ao(),O=Ce(),be=ao(),oe=qt(),Re=O.actions.internal.toggleMuted,Qe=O.actions.internal.togglePlay,Ye=O.actions.internal.pause,Le=O.actions.internal.toggleSubtitle,nt=(ks=O.callbacks)==null?void 0:ks.onAudioDoesNotExistHint,je=(ka=O.callbacks)==null?void 0:ka.onAudioDisabledHint,ht=O.state.duration$,at=O.state.positionWithScrubbing$,Je=O.state.playbackState$,Wt=O.state.isAudioAvailable$,it=O.state.isAudioDisabled,ni=O.state.isEnded$,xi=O.state.isLive$,et=O.state.isActiveLive$,jt=O.state.isRewindableLive$,{isActive$:Vi,type$:Yi}=be.pictureInPicture$,Lt=O.ui.settingsMenu.visible$,bt=O.ui.settingsMenu.openedByBtnKeyboard$,Dt=O.ui.controls,co=O.actions.internal.getVideoEpisodes(),pn=O.state.chromecastState$,Ji=O.state.availableSubtitlesList$,Co=O.state.currentSubtitle$,j=Dt.disabledControls$,Zt=O.ui.contextMenu.visible$,hi=O.ui.contextMenu.showContextMenuBtn$,Ri=O.ui.contextMenu.openedByBtnKeyboard$,ai=O.ui.startedByKeyboard$,pt=O.ui.t,vi=O.ads.duration,Xe=O.ads.position,Vt=O.ads.playbackState,uo=O.ui.isFullscreen,Xt=O.ui.playerSize,Un=O.ui.currentGridType$,eo=O.ui.additionalDesktopControlPanelRightButtons$,Lo=O.ui.autoplayNextEnabled$,pi=O.actions.internal.getVideoElement,St=O.actions.internal.replayInteractive,Bi=O.actions.internal.prevVideoClick,Fo=O.actions.internal.nextVideoClick,fi=O.state.isInteractive,Uo=O.state.isInteractiveTime$,Oi=O.state.showInteractiveGraph,To=O.state.showSeekToInteractive,Hi=O.state.showPlayPrevChapter,zn=O.state.showInteractiveTimeIndicator,po=O.state.playPrevChapterDisabledTooltip,En=be.seekToInteractiveDisabledTooltip$,Vo=be.graphIsOpened$,Ro=oe.features.interactiveResponsiveUi,Pn=v(()=>n().has("EPISODE_BUTTON")),Ir=v(()=>n().has("GRAPH_BUTTON")),dr=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),An=v(()=>n().has("PLAY_BUTTON")),fn=v(()=>n().has("REPLAY_BUTTON")),qn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),ft=()=>O.actions.internal.toggleChromecast(),fo=v(()=>gt()?a()==="playing":s()===va.PlaybackState.PLAYING),zo=v(()=>d().value!=="off"),Mn=v(()=>l()&&!gt()||fi),Bo=v(()=>Ro?r(Mn)&&Ki(p(),"m"):r(Mn)),qo=v(()=>!l()||fi||gt()),Wn=v(()=>Ki(p(),"m")),No=v(()=>e.showNextPrevButtons&&Ki(p(),"m")&&!gt()&&e.nextButtonActive),Kn=v(()=>e.showNextPrevButtons&&Ki(p(),"m")&&!gt()&&e.prevButtonActive),mn=v(()=>!gt()&&!!m()),Qn=v(()=>y()!==va.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&Ki(p(),"m")&&!fi),Wo=v(()=>e.showAutoplayNext&&!ti()&&Ki(p(),"s")),mo=v(()=>w().length>0&&Ki(p(),"m")),Ci=v(()=>b()||C()),vn=v(()=>Ki(p(),"s")&&!gt()),gn=v(()=>!e.logoHidden&&!gt()),Ko=v(()=>oe.features.fullscreen&&(e.logoHidden||Ki(p(),Ro?"xs":"s"))&&!(u()&&$()===1)&&(fi?At():!0)),vo=v(()=>(!m()||gt())&&!(oe.features.interactiveHideTime&&fi)),Ln=v(()=>T().width>100),Io=v(()=>Oi&&Ki(p(),"m")),Fi=v(()=>Ro?To&&Ki(p(),"s"):To),cr=v(()=>Ro?Hi&&Ki(p(),"s"):Hi),Do=v(()=>!gt()&&!m()&&!!(co!=null&&co.length)&&r(Wn)&&!r(Pn)),Gn=v(()=>!I()||!!M()),Vn=v(()=>P()?pt("tooltip_interactive_graph_on"):pt("tooltip_interactive_graph_off")),Yn=v(()=>k()?pt("tooltip_context_menu_close"):pt("tooltip_context_menu_open")),ur=(dt,yt)=>dt?yt&&yt===va.PlaybackState.PAUSED?pt("tooltip_play"):"":pt("tooltip_live"),hn=v(()=>ur(r(Gn),s())),kr=v(()=>oe.logoType==="vk_video"?pt("tooltip_vk_video_logo"):pt("tooltip_vk_logo")),pr=v(()=>r(zo)?pt("tooltip_subtitles_on"):pt("tooltip_subtitles_off")),jn=v(()=>V()?pt("tooltip_fullscreen_on"):pt("tooltip_fullscreen_off")),Er=v(()=>y()===va.ChromecastState.CONNECTED?pt("tooltip_chromecast_on"):pt("tooltip_chromecast_off")),Pr=v(()=>W()?pt("tooltip_autoplay_on"):pt("tooltip_autoplay_off")),_n=X(0),Yt=pe({}),mt=v(()=>Dt.prevButton),Ot=v(()=>Dt.replayButton),li=v(()=>Dt.playButton),ri=v(()=>Dt.nextButton),go=v(()=>Dt.playPrevChapterButton),ko=v(()=>Dt.seekToInteractiveButton),Eo=v(()=>Dt.interactiveGraphButton),Qo=v(()=>Dt.liveButton),Go=v(()=>Dt.time),tt=v(()=>Dt.episodes),Mt=v(()=>Dt.vkLogo),gi=v(()=>Dt.volume),Ui=v(()=>Dt.subtitles),ji=v(()=>Dt.settings),bn=v(()=>Dt.context),$n=v(()=>Dt.fullscreen),zi=v(()=>Dt.chromecast),Ei=v(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:F()?F().right-F().left:0,playButton:Q()?Q().right-Q().left:0,nextButton:ie()?ie().right-ie().left:0,playPrevChapterButton:Z()?Z().right-Z().left:0,seekToInteractiveButton:re()?re().right-re().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Ae()?Ae().right-Ae().left:0,time:Me()?Me().right-Me().left:0,episodes:ge()?ge().right-ge().left:0,vkLogo:se()?se().right-se().left:0,volume:Ee()?Ee().right-Ee().left:0,subtitles:ne()?ne().right-ne().left:0,settings:R()?R().right-R().left:0,context:xe()?xe().right-xe().left:0,fullscreen:_e()?_e().right-_e().left:0,chromecast:ze()?ze().right-ze().left:0,additionalButtons:H().length?H().reduce(dt=>[...dt,40],[]):[]})),Yo=X(0);Fe(()=>{(!r(Yo)||r(Yo)<r(Ei).time)&&wt(()=>D(Yo,pe(r(Ei).time)))});let Zn=X(!1);Fe(()=>{let dt=0;r(Do)&&(Ki(p(),"xl")?dt=r(Ei).time:dt=60);let yt=r(Ei).prevButton+r(Ei).playButton+r(Ei).nextButton+r(Ei).seekToInteractiveButton+r(Ei).interactiveGraphButton+r(Ei).liveButton+r(Yo)+dt;D(Zn,pe(r(vo)&&r(_n)>=yt))});let Ar=v(()=>r(Zn)&&Ki(p(),"m")),jo=(0,x1.debounceFn)(fl,260);Fe(()=>{T(),ae(),jo(pi(),Dt,Yt,e.showControls)});let fr=ce();Fe(()=>{he(),ee()&&wt(()=>nl(ee(),he(),bt))});let Xn;Fe(()=>{De(),wt(()=>uu(ai,De(),Xn))});function mr(){$s({isAudioDisabled:it,isAudioAvailable:Ze(),isAds:gt(),audioIsNotExistHintCallback:nt,audioDisabledHintCallback:je})&&Re()}let Jn=fi?St:Qe,Mr=v(()=>we()!==null),er=v(()=>r(Mr)?we():r(fo)),Zo=v(()=>r(er)?pt("tooltip_pause"):pt("tooltip_play")),Lr=pt("tooltip_episodes"),Xo=v(()=>{var dt,yt,Zi,Jo;return r(Kn)?{id:"prevButton",type:"desktop-control-panel-left",weight:os.prevButton,buttonComponent:fa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Bi.bind(null,!0)},tooltipEnabled:!((yt=(dt=O.callbacks)==null?void 0:dt.uiInfo)!=null&&yt.onPrevButtonMouseEnter)&&!((Jo=(Zi=O.callbacks)==null?void 0:Zi.uiInfo)!=null&&Jo.onPrevButtonMouseLeave),mouseEnter:()=>{var Xi,ci,Pi;(Pi=(ci=(Xi=O.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:ci.onPrevButtonMouseEnter)==null||Pi.call(ci,pa(pi(),Yt,"prevButton",e.showControls))},mouseLeave:()=>{var Xi,ci,Pi;(Pi=(ci=(Xi=O.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:ci.onPrevButtonMouseLeave)==null||Pi.call(ci,pa(pi(),Yt,"prevButton",e.showControls))},tooltipText:pt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),vr=v(()=>r(Bo)?{id:"replayButton",type:"desktop-control-panel-left",weight:os.replayButton,buttonComponent:ml,buttonComponentProps:{disabled:r(fn),click:Jn},tooltipText:pt("tooltip_restart"),disabled:r(fn)}:void 0),zr=v(()=>r(qo)?{id:"playButton",type:"desktop-control-panel-left",weight:os.playButton,buttonComponent:vl,buttonComponentProps:{disabled:r(An),isPlaying:r(fo),click:Qe},tooltipText:r(Zo),disabled:r(An)}:void 0),lt=v(()=>{var dt,yt,Zi,Jo;return r(No)?{id:"nextButton",type:"desktop-control-panel-left",weight:os.nextButton,buttonComponent:fa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Fo.bind(null,!0)},tooltipEnabled:!((yt=(dt=O.callbacks)==null?void 0:dt.uiInfo)!=null&&yt.onNextButtonMouseEnter)&&!((Jo=(Zi=O.callbacks)==null?void 0:Zi.uiInfo)!=null&&Jo.onNextButtonMouseLeave),mouseEnter:()=>{var Xi,ci,Pi;(Pi=(ci=(Xi=O.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:ci.onNextButtonMouseEnter)==null||Pi.call(ci,pa(pi(),Yt,"nextButton",e.showControls))},mouseLeave:()=>{var Xi,ci,Pi;(Pi=(ci=(Xi=O.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:ci.onNextButtonMouseLeave)==null||Pi.call(ci,pa(pi(),Yt,"nextButton",e.showControls))},tooltipText:pt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Gt=v(()=>fi&&r(cr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:os.playPrevChapterButton,buttonComponent:Ed,buttonComponentProps:{disabled:r(qn),click:e.playPrevChapter},tooltipText:pt("tooltip_interactive_go_back"),disabledTooltipContent:pt(po),disabled:r(qn)}:void 0),ii=v(()=>fi&&r(Fi)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:os.seekToInteractiveButton,buttonComponent:Ad,buttonComponentProps:{disabled:r(dr),click:e.seekToInteractive},tooltipText:pt("tooltip_interactive_seek"),disabled:r(dr),disabledTooltipContent:pt(Ve())}:void 0),ho=v(()=>fi&&r(Io)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:os.interactiveGraphButton,buttonComponent:Md,buttonComponentProps:{disabled:r(Ir),click:Vo.toggle,graphIsOpened:P()},tooltipText:r(Vn)}:void 0),yn=v(()=>r(mn)?{id:"liveButton",type:"desktop-control-panel-left",weight:os.liveButton,buttonComponent:Ld,buttonComponentProps:{isLiveActive:r(Gn),ariaLabel:r(hn)},tooltipText:r(hn),disabled:r(Gn)&&s()===va.PlaybackState.PLAYING}:void 0),tr=v(()=>[r(Xo),r(vr),r(zr),r(lt),r(Gt),r(ii),r(ho),r(yn)].filter(dt=>!!dt).sort(oa)),xn=v(()=>r(gn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:rs.vkLogo,buttonComponent:yd,buttonComponentProps:{targetUrl:Qt(),logoClickable:e.logoClickable,click:Ye},tooltipText:r(kr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Rn=v(()=>r(Wo)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:rs.autoplayNext,buttonComponent:Pd,tooltipText:r(Pr)}:void 0),wi=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:rs.volume,buttonComponent:If,buttonComponentProps:{click:mr,isAds:gt()}})),fe=v(()=>r(mo)?{id:"subtitles",type:"desktop-control-panel-right",weight:rs.subtitles,buttonComponent:wf,buttonComponentProps:{isSubtitlesEnabled:r(zo),click:Le},tooltipText:r(pr)}:void 0),xt=v(()=>r(vn)?{id:"settings",type:"desktop-control-panel-right",weight:rs.settings,buttonComponent:cl,buttonComponentProps:{ref$:fr},tooltipText:he()?void 0:pt("tooltip_settings_off")}:void 0),di=v(()=>oe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:rs.context,buttonComponent:Wf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:pt("aria_label_context_menu")},className:r(Ci)?"":"out-of-view",tooltipText:r(Yn)}:void 0),mi=v(()=>r(Ko)?{id:"fullscreen",type:"desktop-control-panel-right",weight:rs.fullscreen,buttonComponent:$d,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(jn)}:void 0),Si=v(()=>r(Qn)?{id:"chromecast",type:"desktop-control-panel-right",weight:rs.chromecast,buttonComponent:xd,buttonComponentProps:{state:y(),click:ft},tooltipText:r(Er)}:void 0),He=v(()=>[r(xn),r(Rn),r(wi),r(fe),r(xt),r(di),r(mi),r(Si),...H()].filter(dt=>!!dt).sort(oa));var Rt=oy(),oi=ue(Rt);let to;var _o=h(oi);let qr=v(()=>!r(Ln));ca(_o,{get isHidden(){return r(qr)},get isAds(){return gt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Yt.timeline},set ref(dt){Yt.timeline=dt}});var Ni=A(_o,2),ir=h(Ni),Is=h(ir);Ti(Is,17,()=>r(tr),dt=>dt.id,(dt,yt)=>{pu(dt,{get buttonComponent(){return r(yt).buttonComponent},get buttonComponentProps(){return r(yt).buttonComponentProps},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(yt).disabled},get className(){return r(yt).className},get tooltipEnabled(){return r(yt).tooltipEnabled},get mouseEnter(){return r(yt).mouseEnter},get mouseLeave(){return r(yt).mouseLeave},get ref(){return Yt[r(yt).id]},set ref(Zi){Yt[r(yt).id]=Zi}})});var or=A(Is,2);{var Sa=dt=>{let yt=v(()=>gt()?Ie():Ue()),Zi=v(()=>gt()?ct():ut());hd(dt,{isMobile:!1,get showDuration(){return r(Ar)},get position(){return r(yt)},get duration(){return r(Zi)},get ref(){return Yt.time},set ref(Jo){Yt.time=Jo}})};B(or,dt=>{r(vo)&&dt(Sa)})}var Sl=A(or,2);let Ca=v(()=>!r(Do));Ao(Sl,{className:"w-max",get disabled(){return r(Ca)},tooltipContent:Lr,get ref(){return Yt.episodes},set ref(dt){Yt.episodes=dt},children:(dt,yt)=>{var Zi=Oe(),Jo=ue(Zi);{var Xi=ci=>{Sd(ci,{get position(){return Ue()},get duration(){return ut()},timeCodes:co})};B(Jo,ci=>{r(Do)&&ci(Xi)})}_(dt,Zi)},$$slots:{default:!0}}),g(ir);var Ta=A(ir,2);Ti(Ta,21,()=>r(He),dt=>dt.id,(dt,yt)=>{var Zi=Oe(),Jo=ue(Zi);{var Xi=Pi=>{pu(Pi,{get buttonComponent(){return r(yt).buttonComponent},get buttonComponentProps(){return r(yt).buttonComponentProps},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(yt).disabled},get className(){return r(yt).className},get ref(){return Yt[r(yt).id]},set ref(Es){Yt[r(yt).id]=Es}})},ci=Pi=>{let Es=v(()=>!!r(yt).disabled);Jf(Pi,{get id(){return r(yt).id},get testId(){return r(yt).testId},get icon(){return r(yt).icon},get ariaLabel(){return r(yt).ariaLabel},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(Es)},get onClick(){return r(yt).onClick},get ref(){return Yt[r(yt).id]},set ref(Ea){Yt[r(yt).id]=Ea}})};B(Jo,Pi=>{y1(r(yt))?Pi(Xi):Pi(ci,!1)})}_(dt,Zi)}),g(Ta),g(Ni),vt(Ni,dt=>It(dt),()=>It()),g(oi),vt(oi,dt=>ot(dt),()=>ot());var Ia=A(oi,2);{var Cl=dt=>{Id(dt,{get ref(){return Yt.interactiveTimeIndicator},set ref(yt){Yt.interactiveTimeIndicator=yt}})};B(Ia,dt=>{zn&&dt(Cl)})}E(dt=>to=J(oi,1,"wrapper-bottom svelte-f6e8ix",null,to,dt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Dr(ir,"clientWidth",dt=>D(_n,dt)),_(t,Rt),z(),o()}var gl=require("@vkontakte/videoplayer-core/es2018");var tm=require("@vkontakte/videoplayer-shared/es2018");var ry=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),sy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),ay={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 im(t,e){K(t,ay);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,tm.noop),n=v(()=>o()===tm.noop),a=v(()=>r(n)||i()),s=X(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Bt(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 y=Oe(),u=ue(y);{var $=b=>{var C=ry();_(b,C)},w=b=>{var C=sy();E(()=>Be(C,"src",e.iconUrl)),Tt("error",C,d),zs(C),_(b,C)};B(u,b=>{r(s)?b($):b(w,!1)})}_(p,y)},$$slots:{default:!0}})}var ly=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 om(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ly();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}var w1=require("@vkontakte/videoplayer-shared/es2018");var dy=L('<span class="text svelte-6gmlbk"> </span>'),cy=L('<div aria-hidden="true"><!> <!></div>'),uy={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 fu(t,e){U(e,!0),K(t,uy);let i=f(e,"expanded",3,!1),o=f(e,"click",3,w1.noop),n=f(e,"ref",15,void 0),s=Ce().ui.t,d=s("aria_label_volume"),l=v(()=>i()?xs:om),p=v(()=>i()?"btn-mobile-unmuted":"btn-mobile-muted");Bt(t,{get testId(){return r(p)},get click(){return o()},ariaLabel:d,role:"switch",get ref(){return n()},set ref(m){n(m)},children:(m,y)=>{var u=cy();let $=v(()=>r(l)),w;var b=h(u);Ii(b,()=>r($),(I,M)=>{M(I,{})});var C=A(b,2);{var T=I=>{var M=dy(),P=h(M,!0);g(M),E(k=>me(P,k),[()=>s("mobile_unmute")]),_(I,M)};B(C,I=>{i()&&I(T)})}g(u),E(I=>w=J(u,1,"container svelte-6gmlbk",null,w,I),[()=>({expanded:i()})]),_(m,u)},$$slots:{default:!0}}),z()}var py=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 nm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=py();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(3),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),_(t,o)}var fy={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 rm(t,e){K(t,fy);let i=f(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");nm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var S1=require("@vkontakte/videoplayer-shared/es2018");function sm(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isPictureInPictureActive",3,!1),n=f(e,"click",3,S1.noop),a=q("menu_pip");Bt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{rm(s,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}var C1=require("@vkontakte/videoplayer-shared/es2018");var my=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},vy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},gy=L("<div><!></div>"),hy=L("<div><!></div>"),_y=L("<div><!></div>"),by=L("<!> <!> <!>",1),$y=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),yy=L("<div><!></div>"),xy=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),wy=L("<!> <!> <div><!></div>",1),Sy=L('<div aria-hidden="true">\xB7</div> <!>',1),Cy=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Ty={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.`},Lh=P_;var is=new Map;is.set(el.Interf
|
|
|
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 sm(t,e){var Ii,ar;U(e,!0),W(t,Ty);let[i,o]=Re(),n=()=>S(Vt,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(Di,"$disabledControls$",i),s=()=>S(Yt,"$playbackState$",i),d=()=>S(mo,"$adPlaybackState",i),l=()=>S(Nt,"$isEnded$",i),p=()=>S($n,"$playerSize",i),m=()=>S(qe,"$scrubbingInProgress",i),b=()=>S(et,"$chromecastState$",i),u=()=>S(pt,"$isPictureInPictureActive",i),_=()=>S(Ze,"$pictureInPictureType$",i),w=()=>S(Ge,"$mobileNotReportControlHidden$",i),y=()=>S(st,"$playerPhase",i),C=()=>S(Lt,"$currentGridType$",i),T=()=>S(O,"$isLive$",i),k=()=>S(We,"$settingsMenuVisible",i),P=()=>S(Ne,"$isRewindableLive$",i),A=()=>S(re,"$isActiveLive$",i),I=()=>S(Oi,"$isInteractiveTime$",i),V=()=>S(ni,"$isAudioAvailable$",i),q=()=>S(eo,"$settingButtonRef$",i),Q=()=>S(Wi,"$startedByKeyboard$",i),H=()=>S(rn,"$isFullscreen",i),Y=()=>S(it,"$mobileUnmuteButtonVisible",i),ne=()=>S(Je,"$volumeHidden",i),Z=()=>S(_e,"$muted$",i),de=()=>S(tt,"$mobileUnmuteButtonExpanded",i),ce=()=>S(wo,"$additionalButtons$",i),Le=()=>S(Zt,"$crashed$",i),Ae=()=>S(no,"$graphIsOpened$",i),he=()=>S(Bt,"$adPosition",i),se=()=>S(_t,"$adDuration",i),Me=()=>S(bt,"$position$",i),oe=()=>S(It,"$duration$",i),B=f(e,"playerControlsWrapperRef",15,void 0),be=f(e,"playerControlsRef",15,void 0),le=f(e,"isAds",3,!1),Ke=f(e,"logoTargetUrl",3,""),ee=f(e,"isOneVideoPlaylist",3,!1),me=f(e,"customFullscreenSupported",3,!0),j=Te(),te=fo(),Oe=Kt(),je=j.actions.internal.toggleMuted,$e=j.actions.internal.togglePlay,we=j.actions.internal.pause,Ve=j.actions.internal.prevVideoClick,Ye=j.actions.internal.nextVideoClick,ct=(Ii=j.callbacks)==null?void 0:Ii.onAudioDoesNotExistHint,ut=(ar=j.callbacks)==null?void 0:ar.onAudioDisabledHint,st=j.playerPhase,It=j.state.duration$,bt=j.state.positionWithScrubbing$,Yt=j.state.playbackState$,ni=j.state.isAudioAvailable$,Et=j.state.isAudioDisabled,Nt=j.state.isEnded$,O=j.state.isLive$,_e=j.state.muted$,re=j.state.isActiveLive$,Ne=j.state.isRewindableLive$,qe=j.ui.scrubbingInProgress,Ge=j.ui.mobileNotReportControlHidden$,{isActive$:pt,type$:Ze}=te.pictureInPicture$,tt=j.ui.mobileUnmuteButtonExpanded,it=j.ui.mobileUnmuteButtonVisible,We=j.ui.settingsMenu.visible$,ht=j.ui.settingsMenu.openedByBtnKeyboard$,Ut=j.ui.controls,{volume:Je}=j.ui.hiddenControls,jt=j.actions.internal.getVideoEpisodes(),ti=j.webApi.pictureInPictureApi,et=j.state.chromecastState$,Zt=j.state.crashed$,Di=Ut.disabledControls$,Wi=j.ui.startedByKeyboard$,Lt=j.ui.currentGridType$,_t=j.ads.duration,Bt=j.ads.position,mo=j.ads.playbackState,rn=j.ui.isFullscreen,$n=j.ui.playerSize,wo=j.ui.additionalButtonsDeprecated$,G=j.actions.internal.getVideoElement,Xt=j.actions.internal.replayInteractive,ri=j.state.isInteractive,Oi=j.state.isInteractiveTime$,li=j.state.showInteractiveGraph,mt=j.state.showSeekToInteractive,pi=j.state.showPlayPrevChapter,Xe=j.state.showInteractiveTimeIndicator,Vt=te.seekToInteractiveDisabledTooltip$,no=te.graphIsOpened$,ii=v(()=>F(j.state.playPrevChapterDisabledTooltip)),tr=v(()=>F(n())),So=v(()=>a().has("EPISODE_BUTTON")),zo=v(()=>a().has("GRAPH_BUTTON")),di=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),St=v(()=>a().has("PLAY_BUTTON")),Ti=v(()=>a().has("REPLAY_BUTTON")),Lo=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),fi=v(()=>s()===gl.PlaybackState.PLAYING),Vo=v(()=>d()==="paused"),Ki=v(()=>l()&&!le()&&!ri),Co=v(()=>!l()||le()),To=v(()=>e.showNextPrevButtons&&!le()&&e.prevButtonActive),Rn=v(()=>e.showNextPrevButtons&&!le()&&e.nextButtonActive),Io=v(()=>p().width>300),yn=v(()=>p().width>400),Ji=v(m),Ro=v(()=>b()!==gl.ChromecastState.NOT_AVAILABLE&&!(u()&&_()===1)&&!w()&&!ri),sn=v(()=>y()==="LiveWaitingStart"),Cr=v(()=>!!ti&&b()!==gl.ChromecastState.CONNECTED&&!w()&&(_()===1&&r(sn)||!r(sn))&&!r(Ji)&&!ri),ir=v(()=>!r(Ji)&&Yi(C(),"s")),Nn=v(()=>!e.logoHidden&&p().width>350),xn=v(()=>Oe.features.fullscreen&&!(u()&&_()===1)&&(ri?me():!0)&&!r(Ji)),Bn=v(()=>(!T()||le())&&p().width>260&&!r(Ji)&&!(Oe.features.interactiveHideTime&&ri)),or=v(()=>k()||e.showControls),ro=v(()=>!le()&&!T()&&!!(jt!=null&&jt.length)&&r(Io)&&!r(So)&&!r(Ji)),No=v(()=>!P()||!!A()),wn=v(()=>li&&Yi(C(),"m")),ot=fe({}),Sn=(0,S1.debounceFn)(fl,260);He(()=>{p(),I(),Sn(G(),Ut,ot,e.showControls)});let Dn=()=>j.actions.internal.toggleChromecast();function an(){ys({isAudioDisabled:Et,audioDisabledHintCallback:ut,isAudioAvailable:V(),audioIsNotExistHintCallback:ct})&&je()}async function nr(){ti!=null&&ti.isActive()?await(ti==null?void 0:ti.remove()):await(ti==null?void 0:ti.request())}function ln(){!Et&&V()&&it.set(!1),an()}let dn=X(""),cn=(vt,zt)=>{if(!vt){D(dn,fe(F("tooltip_live")));return}zt&&zt===gl.PlaybackState.PAUSED&&D(dn,fe(F("tooltip_play")))};He(()=>{cn(r(No),s())});let eo=ae();He(()=>{q()&&rl(q(),k(),ht)}),He(()=>{cu(Wi,Q(),ot.playButton)});var Qi=Cy(),un=pe(Qi);{var On=vt=>{var zt=$y(),Ai=pe(zt);let ko;var nt=M(Ai,2);let Dt;var mi=h(nt);{var Fi=lt=>{let qt=v(()=>V()&&!Et&&de());pu(lt,{get muted(){return Z()},get expanded(){return r(qt)},click:ln,get ref(){return ot.volume},set ref(Li){ot.volume=Li}})};R(mi,lt=>{(!V()||Y())&&!ne()&<(Fi)})}g(nt);var go=M(nt,2);let Si;var Mi=h(go);ki(Mi,1,ce,({iconUrl:lt,ariaLabel:qt,testId:Li,onClick:Eo,tooltip:Se})=>lt,(lt,qt)=>{let Li=()=>r(qt).iconUrl,Eo=()=>r(qt).ariaLabel,Se=()=>r(qt).testId,Mt=()=>r(qt).onClick,hi=()=>r(qt).tooltip,bi=v(()=>{var vi;return(vi=Eo())!=null?vi:hi()});tm(lt,{get iconUrl(){return Li()},get ariaLabel(){return r(bi)},get testId(){return Se()},get onClick(){return Mt()}})});var gi=M(Mi,2);{var _i=lt=>{Pd(lt,{get ref(){return ot.autoplayNextToggle},set ref(qt){ot.autoplayNextToggle=qt}})};R(gi,lt=>{e.showAutoplayNext&&!ee()&<(_i)})}var Ui=M(gi,2);{var qn=lt=>{xd(lt,{isMobile:!0,click:Dn,get state(){return b()},get ref(){return ot.chromecast},set ref(qt){ot.chromecast=qt}})};R(Ui,lt=>{r(Ro)&<(qn)})}var lr=M(Ui,2);{var Wn=lt=>{rm(lt,{click:nr,get isPictureInPictureActive(){return u()},get ref(){return ot.pip},set ref(qt){ot.pip=qt}})};R(lr,lt=>{r(Cr)&<(Wn)})}var dr=M(lr,2);{var cr=lt=>{ul(lt,{ref$:eo})};R(dr,lt=>{Le()&<(cr)})}var ur=M(dr,2);{var pr=lt=>{yd(lt,{click:we,get targetUrl(){return Ke()},get logoClickable(){return e.logoClickable},get ref(){return ot.vkLogo},set ref(qt){ot.vkLogo=qt}})};R(ur,lt=>{r(Nn)&<(pr)})}g(go);var Kn=M(go,2);let Qn;var Oo=h(Kn);{var Pr=lt=>{let qt=v(()=>Ve.bind(null,!0));ma(lt,{get click(){return r(qt)},type:"prev",isMobile:!0,get ref(){return ot.prevButton},set ref(Li){ot.prevButton=Li}})};R(Oo,lt=>{r(To)&<(Pr)})}var Ho=M(Oo,2);{var fr=lt=>{vl(lt,{get disabled(){return r(St)},click:$e,isMobile:!0,get isPlaying(){return r(fi)},get ref(){return ot.playButton},set ref(qt){ot.playButton=qt}})};R(Ho,lt=>{r(Co)&<(fr)})}var Ar=M(Ho,2);{var Mr=lt=>{ml(lt,{get disabled(){return r(Ti)},click:$e,isMobile:!0,get ref(){return ot.replayButton},set ref(qt){ot.replayButton=qt}})};R(Ar,lt=>{r(Ki)&<(Mr)})}var Lr=M(Ar,2);{var to=lt=>{let qt=v(()=>Ye.bind(null,!0));ma(lt,{get click(){return r(qt)},type:"next",isMobile:!0,get ref(){return ot.nextButton},set ref(Li){ot.nextButton=Li}})};R(Lr,lt=>{r(Rn)&<(to)})}g(Kn);var In=M(Kn,2);{var Vr=lt=>{var qt=by(),Li=pe(qt);{var Eo=vi=>{var ke=gy();let $t;ke.__click=[my,Lo,e,ii];var Gt=h(ke);let Ci=v(()=>!e.showControls);Ed(Gt,{get hidden(){return r(Ci)},get disabled(){return r(Lo)},get click(){return e.playPrevChapter},get ref(){return ot.playPrevChapterButton},set ref(si){ot.playPrevChapterButton=si}}),g(ke),E(si=>$t=J(ke,1,"wrapper-middle-left svelte-1afsgkw",null,$t,si),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(vi,ke)};R(Li,vi=>{pi&&vi(Eo)})}var Se=M(Li,2);{var Mt=vi=>{var ke=hy();let $t;var Gt=h(ke);let Ci=v(()=>!e.showControls&&!Ae());Md(Gt,{get hidden(){return r(Ci)},get disabled(){return r(zo)},get click(){return no.toggle},get graphIsOpened(){return Ae()},get ref(){return ot.interactiveGraphButton},set ref(si){ot.interactiveGraphButton=si}}),g(ke),E(si=>$t=J(ke,1,Gl(pi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",$t,si),[()=>({fullscreen:H(),hidden:!e.showControls&&!Ae()})]),$(vi,ke)};R(Se,vi=>{r(wn)&&vi(Mt)})}var hi=M(Se,2);{var bi=vi=>{var ke=_y();let $t;ke.__click=[vy,di,e,tr];var Gt=h(ke);let Ci=v(()=>!e.showControls);Ad(Gt,{get hidden(){return r(Ci)},get disabled(){return r(di)},get click(){return e.seekToInteractive},get ref(){return ot.seekToInteractiveButton},set ref(si){ot.seekToInteractiveButton=si}}),g(ke),E(si=>$t=J(ke,1,"wrapper-middle-right svelte-1afsgkw",null,$t,si),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(vi,ke)};R(hi,vi=>{mt&&vi(bi)})}$(lt,qt)};R(In,lt=>{ri&&!m()&<(Vr)})}E((lt,qt,Li,Eo)=>{ko=J(Ai,1,"overlay-mobile svelte-1afsgkw",null,ko,lt),Dt=J(nt,1,"wrapper-top-left svelte-1afsgkw",null,Dt,qt),Si=J(go,1,"wrapper-top-right svelte-1afsgkw",null,Si,Li),Qn=J(Kn,1,"wrapper-middle svelte-1afsgkw",null,Qn,Eo)},[()=>({hidden:!r(or)}),()=>({hidden:!e.showControls,fullscreen:H()}),()=>({hidden:!e.showControls&&!w(),fullscreen:H()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),$(vt,zt)};R(un,vt=>{le()||vt(On)})}var qo=M(un,2);{var pn=vt=>{var zt=wy(),Ai=pe(zt);{var ko=Si=>{var Mi=yy();let gi;var _i=h(Mi);pu(_i,{get muted(){return Z()},expanded:!1,click:ln,get ref(){return ot.volume},set ref(Ui){ot.volume=Ui}}),g(Mi),E(Ui=>gi=J(Mi,1,"wrapper-top-right svelte-1afsgkw",null,gi,Ui),[()=>({fullscreen:H()})]),$(Si,Mi)};R(Ai,Si=>{Y()&&Si(ko)})}var nt=M(Ai,2);{var Dt=Si=>{var Mi=xy(),gi=h(Mi);let _i=v(()=>!r(Vo));vl(gi,{get disabled(){return r(St)},click:$e,isMobile:!0,get isPlaying(){return r(_i)},get ref(){return ot.playButton},set ref(Ui){ot.playButton=Ui}}),g(Mi),$(Si,Mi)};R(nt,Si=>{r(Vo)&&Si(Dt)})}var mi=M(nt,2);let Fi;var go=h(mi);wd(go,{get position(){return he()},get duration(){return se()}}),g(mi),E(Si=>Fi=J(mi,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Fi,Si),[()=>({fullscreen:H()})]),$(vt,zt)};R(qo,vt=>{le()&&d()!=="inactive"&&vt(pn)})}var Bo=M(qo,2);let vo;var Hi=h(Bo);let Hn;var so=h(Hi);J(so,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Cn=h(so);{var Fn=vt=>{Ao(vt,{get disabled(){return r(Ti)},get ref(){return ot.replayButton},set ref(zt){ot.replayButton=zt},children:(zt,Ai)=>{ml(zt,{get disabled(){return r(Ti)},click:Xt})},$$slots:{default:!0}})};R(Cn,vt=>{ri&&vt(Fn)})}var fn=M(Cn,2);{var Tr=vt=>{Ao(vt,{get ref(){return ot.liveButton},set ref(zt){ot.liveButton=zt},children:(zt,Ai)=>{Ld(zt,{get isLiveActive(){return r(No)},isMobile:!0,get ariaLabel(){return r(dn)}})},$$slots:{default:!0}})};R(fn,vt=>{!le()&&T()&&vt(Tr)})}var Wo=M(fn,2);{var Ir=vt=>{let zt=v(()=>le()?he():Me()),Ai=v(()=>le()?se():oe());hd(vt,{get showDuration(){return r(yn)},get position(){return r(zt)},get duration(){return r(Ai)},isMobile:!0,get ref(){return ot.time},set ref(ko){ot.time=ko}})};R(Wo,vt=>{r(Bn)&&vt(Ir)})}var Un=M(Wo,2);let zn=v(()=>!r(ro));Ao(Un,{className:"w-max",get disabled(){return r(zn)},get ref(){return ot.episodes},set ref(vt){ot.episodes=vt},children:(vt,zt)=>{var Ai=De(),ko=pe(Ai);{var nt=Dt=>{var mi=Sy(),Fi=M(pe(mi),2);Sd(Fi,{get position(){return Me()},get duration(){return oe()},timeCodes:jt}),$(Dt,mi)};R(ko,Dt=>{r(ro)&&Dt(nt)})}$(vt,Ai)},$$slots:{default:!0}});var rr=M(Un,2);{var kr=vt=>{Ao(vt,{get ref(){return ot.settings},set ref(zt){ot.settings=zt},children:(zt,Ai)=>{ul(zt,{ref$:eo})},$$slots:{default:!0}})};R(rr,vt=>{r(ir)&&vt(kr)})}var Tn=M(rr,2);{var Jt=vt=>{Ao(vt,{get ref(){return ot.fullscreen},set ref(zt){ot.fullscreen=zt},children:(zt,Ai)=>{$d(zt,{get click(){return e.toggleFullscreen},get isFullscreen(){return H()}})},$$slots:{default:!0}})};R(Tn,vt=>{r(xn)&&vt(Jt)})}g(so),ft(so,vt=>be(vt),()=>be());var sr=M(so,2);ua(sr,{get isAds(){return le()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return ot.timeline},set ref(vt){ot.timeline=vt}}),g(Hi),g(Bo),ft(Bo,vt=>B(vt),()=>B());var Er=M(Bo,2);{var Do=vt=>{Id(vt,{get ref(){return ot.interactiveTimeIndicator},set ref(zt){ot.interactiveTimeIndicator=zt}})};R(Er,vt=>{Xe&&vt(Do)})}E((vt,zt)=>{vo=J(Bo,1,"wrapper-bottom svelte-1afsgkw",null,vo,vt),Hn=J(Hi,1,"controls-wrapper svelte-1afsgkw",null,Hn,zt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:H()})]),$(t,Qi),z(),o()}at(["click"]);function Rd(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,am.noop),y=f(e,"onDisabledSeekToInteractiveClick",3,am.noop),T=Te().ui.isMobile,k=X(!1);Wt(()=>{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=>{sm(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=>{Jf(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 Iy=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 lm(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:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),$(t,o)}function dm(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);lm(t,{get style(){return r(o)}})}var ky=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 cm(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(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 Ey=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 um(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();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 fu(t,e){let i=f(e,"isOff",3,!1);var o=De(),n=pe(o);{var a=d=>{um(d,{})},s=d=>{cm(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}$(t,o)}var Py=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 pm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Py();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 fm(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);pm(t,{get style(){return r(o)}})}var Ay=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 mm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();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 vm(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);mm(t,{get style(){return r(o)}})}var My=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Ly=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Vy=L("<div><!></div>"),Ry={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 am(t,e){var _n,Yt;U(e,!0),K(t,Ty);let[i,o]=Ne(),n=()=>S(ai,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(ni,"$disabledControls$",i),s=()=>S(It,"$playbackState$",i),d=()=>S(Yi,"$adPlaybackState",i),l=()=>S(ti,"$isEnded$",i),p=()=>S(bt,"$playerSize",i),m=()=>S(be,"$scrubbingInProgress",i),y=()=>S(Wt,"$chromecastState$",i),u=()=>S(Re,"$isPictureInPictureActive",i),$=()=>S(Qe,"$pictureInPictureType$",i),w=()=>S(oe,"$mobileNotReportControlHidden$",i),b=()=>S(ct,"$playerPhase",i),C=()=>S(et,"$currentGridType$",i),T=()=>S(At,"$isLive$",i),I=()=>S(nt,"$settingsMenuVisible",i),M=()=>S(O,"$isRewindableLive$",i),P=()=>S(Nt,"$isActiveLive$",i),k=()=>S(Co,"$isInteractiveTime$",i),V=()=>S(gt,"$isAudioAvailable$",i),W=()=>S(No,"$settingButtonRef$",i),Y=()=>S(xi,"$startedByKeyboard$",i),F=()=>S(Lt,"$isFullscreen",i),Q=()=>S(Le,"$mobileUnmuteButtonVisible",i),ie=()=>S(Ye,"$mobileUnmuteButtonExpanded",i),Z=()=>S(Dt,"$additionalButtons$",i),re=()=>S(it,"$crashed$",i),le=()=>S(pt,"$graphIsOpened$",i),Ae=()=>S(Vi,"$adPosition",i),Me=()=>S(jt,"$adDuration",i),ge=()=>S(ot,"$position$",i),se=()=>S(ut,"$duration$",i),Ee=f(e,"playerControlsWrapperRef",15,void 0),ne=f(e,"playerControlsRef",15,void 0),R=f(e,"isAds",3,!1),xe=f(e,"logoTargetUrl",3,""),_e=f(e,"isOneVideoPlaylist",3,!1),ze=f(e,"customFullscreenSupported",3,!0),H=Ce(),ae=ao(),he=qt(),ee=H.actions.internal.toggleMuted,De=H.actions.internal.togglePlay,Ze=H.actions.internal.pause,we=H.actions.internal.prevVideoClick,Ve=H.actions.internal.nextVideoClick,Ie=(_n=H.callbacks)==null?void 0:_n.onAudioDoesNotExistHint,Ue=(Yt=H.callbacks)==null?void 0:Yt.onAudioDisabledHint,ct=H.playerPhase,ut=H.state.duration$,ot=H.state.positionWithScrubbing$,It=H.state.playbackState$,gt=H.state.isAudioAvailable$,Qt=H.state.isAudioDisabled,ti=H.state.isEnded$,At=H.state.isLive$,Nt=H.state.isActiveLive$,O=H.state.isRewindableLive$,be=H.ui.scrubbingInProgress,oe=H.ui.mobileNotReportControlHidden$,{isActive$:Re,type$:Qe}=ae.pictureInPicture$,Ye=H.ui.mobileUnmuteButtonExpanded,Le=H.ui.mobileUnmuteButtonVisible,nt=H.ui.settingsMenu.visible$,je=H.ui.settingsMenu.openedByBtnKeyboard$,ht=H.ui.controls,at=H.actions.internal.getVideoEpisodes(),Je=H.webApi.pictureInPictureApi,Wt=H.state.chromecastState$,it=H.state.crashed$,ni=ht.disabledControls$,xi=H.ui.startedByKeyboard$,et=H.ui.currentGridType$,jt=H.ads.duration,Vi=H.ads.position,Yi=H.ads.playbackState,Lt=H.ui.isFullscreen,bt=H.ui.playerSize,Dt=H.ui.additionalButtonsDeprecated$,co=H.actions.internal.getVideoElement,pn=H.actions.internal.replayInteractive,Ji=H.state.isInteractive,Co=H.state.isInteractiveTime$,j=H.state.showInteractiveGraph,Zt=H.state.showSeekToInteractive,hi=H.state.showPlayPrevChapter,Ri=H.state.showInteractiveTimeIndicator,ai=ae.seekToInteractiveDisabledTooltip$,pt=ae.graphIsOpened$,vi=v(()=>q(H.state.playPrevChapterDisabledTooltip)),Xe=v(()=>q(n())),Vt=v(()=>a().has("EPISODE_BUTTON")),uo=v(()=>a().has("GRAPH_BUTTON")),Xt=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Un=v(()=>a().has("PLAY_BUTTON")),eo=v(()=>a().has("REPLAY_BUTTON")),Lo=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),pi=v(()=>s()===gl.PlaybackState.PLAYING),St=v(()=>d()==="paused"),Bi=v(()=>l()&&!R()&&!Ji),Fo=v(()=>!l()||R()),fi=v(()=>e.showNextPrevButtons&&!R()&&e.prevButtonActive),Uo=v(()=>e.showNextPrevButtons&&!R()&&e.nextButtonActive),Oi=v(()=>p().width>300),To=v(()=>p().width>400),Hi=v(m),zn=v(()=>y()!==gl.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!Ji),po=v(()=>b()==="LiveWaitingStart"),En=v(()=>!!Je&&y()!==gl.ChromecastState.CONNECTED&&!w()&&($()===1&&r(po)||!r(po))&&!r(Hi)&&!Ji),Vo=v(()=>!r(Hi)&&Ki(C(),"s")),Ro=v(()=>!e.logoHidden&&p().width>350),Pn=v(()=>he.features.fullscreen&&!(u()&&$()===1)&&(Ji?ze():!0)&&!r(Hi)),Ir=v(()=>(!T()||R())&&p().width>260&&!r(Hi)&&!(he.features.interactiveHideTime&&Ji)),dr=v(()=>I()||e.showControls),An=v(()=>!R()&&!T()&&!!(at!=null&&at.length)&&r(Oi)&&!r(Vt)&&!r(Hi)),fn=v(()=>!M()||!!P()),qn=v(()=>j&&Ki(C(),"m")),ft=pe({}),fo=(0,C1.debounceFn)(fl,260);Fe(()=>{p(),k(),fo(co(),ht,ft,e.showControls)});let zo=()=>H.actions.internal.toggleChromecast();async function Mn(){Je!=null&&Je.isActive()?await(Je==null?void 0:Je.remove()):await(Je==null?void 0:Je.request())}function Bo(){(!Qt&&V()||R())&&Le.set(!1),$s({isAudioDisabled:Qt,audioDisabledHintCallback:Ue,isAudioAvailable:V(),audioIsNotExistHintCallback:Ie,isAds:R()})&&ee()}let qo=X(""),Wn=(mt,Ot)=>{if(!mt){D(qo,pe(q("tooltip_live")));return}Ot&&Ot===gl.PlaybackState.PAUSED&&D(qo,pe(q("tooltip_play")))};Fe(()=>{Wn(r(fn),s())});let No=ce();Fe(()=>{W()&&nl(W(),I(),je)}),Fe(()=>{uu(xi,Y(),ft.playButton)});var Kn=Cy(),mn=ue(Kn);{var Qn=mt=>{var Ot=$y(),li=ue(Ot);let ri;var go=A(li,2);let ko;var Eo=h(go);{var Qo=lt=>{let Gt=v(()=>V()&&!Qt&&ie());fu(lt,{get expanded(){return r(Gt)},click:Bo,get ref(){return ft.volume},set ref(ii){ft.volume=ii}})};B(Eo,lt=>{(!V()||Q())&<(Qo)})}g(go);var Go=A(go,2);let tt;var Mt=h(Go);Ti(Mt,1,Z,({iconUrl:lt,ariaLabel:Gt,testId:ii,onClick:ho,tooltip:yn})=>lt,(lt,Gt)=>{let ii=()=>r(Gt).iconUrl,ho=()=>r(Gt).ariaLabel,yn=()=>r(Gt).testId,tr=()=>r(Gt).onClick,xn=()=>r(Gt).tooltip,Rn=v(()=>{var wi;return(wi=ho())!=null?wi:xn()});im(lt,{get iconUrl(){return ii()},get ariaLabel(){return r(Rn)},get testId(){return yn()},get onClick(){return tr()}})});var gi=A(Mt,2);{var Ui=lt=>{Pd(lt,{get ref(){return ft.autoplayNextToggle},set ref(Gt){ft.autoplayNextToggle=Gt}})};B(gi,lt=>{e.showAutoplayNext&&!_e()&<(Ui)})}var ji=A(gi,2);{var bn=lt=>{xd(lt,{isMobile:!0,click:zo,get state(){return y()},get ref(){return ft.chromecast},set ref(Gt){ft.chromecast=Gt}})};B(ji,lt=>{r(zn)&<(bn)})}var $n=A(ji,2);{var zi=lt=>{sm(lt,{click:Mn,get isPictureInPictureActive(){return u()},get ref(){return ft.pip},set ref(Gt){ft.pip=Gt}})};B($n,lt=>{r(En)&<(zi)})}var Ei=A($n,2);{var Yo=lt=>{cl(lt,{ref$:No})};B(Ei,lt=>{re()&<(Yo)})}var Zn=A(Ei,2);{var Ar=lt=>{yd(lt,{click:Ze,get targetUrl(){return xe()},get logoClickable(){return e.logoClickable},get ref(){return ft.vkLogo},set ref(Gt){ft.vkLogo=Gt}})};B(Zn,lt=>{r(Ro)&<(Ar)})}g(Go);var jo=A(Go,2);let fr;var Xn=h(jo);{var mr=lt=>{let Gt=v(()=>we.bind(null,!0));fa(lt,{get click(){return r(Gt)},type:"prev",isMobile:!0,get ref(){return ft.prevButton},set ref(ii){ft.prevButton=ii}})};B(Xn,lt=>{r(fi)&<(mr)})}var Jn=A(Xn,2);{var Mr=lt=>{vl(lt,{get disabled(){return r(Un)},click:De,isMobile:!0,get isPlaying(){return r(pi)},get ref(){return ft.playButton},set ref(Gt){ft.playButton=Gt}})};B(Jn,lt=>{r(Fo)&<(Mr)})}var er=A(Jn,2);{var Zo=lt=>{ml(lt,{get disabled(){return r(eo)},click:De,isMobile:!0,get ref(){return ft.replayButton},set ref(Gt){ft.replayButton=Gt}})};B(er,lt=>{r(Bi)&<(Zo)})}var Lr=A(er,2);{var Xo=lt=>{let Gt=v(()=>Ve.bind(null,!0));fa(lt,{get click(){return r(Gt)},type:"next",isMobile:!0,get ref(){return ft.nextButton},set ref(ii){ft.nextButton=ii}})};B(Lr,lt=>{r(Uo)&<(Xo)})}g(jo);var vr=A(jo,2);{var zr=lt=>{var Gt=by(),ii=ue(Gt);{var ho=wi=>{var fe=gy();let xt;fe.__click=[my,Lo,e,vi];var di=h(fe);let mi=v(()=>!e.showControls);Ed(di,{get hidden(){return r(mi)},get disabled(){return r(Lo)},get click(){return e.playPrevChapter},get ref(){return ft.playPrevChapterButton},set ref(Si){ft.playPrevChapterButton=Si}}),g(fe),E(Si=>xt=J(fe,1,"wrapper-middle-left svelte-1afsgkw",null,xt,Si),[()=>({fullscreen:F(),hidden:!e.showControls})]),_(wi,fe)};B(ii,wi=>{hi&&wi(ho)})}var yn=A(ii,2);{var tr=wi=>{var fe=hy();let xt;var di=h(fe);let mi=v(()=>!e.showControls&&!le());Md(di,{get hidden(){return r(mi)},get disabled(){return r(uo)},get click(){return pt.toggle},get graphIsOpened(){return le()},get ref(){return ft.interactiveGraphButton},set ref(Si){ft.interactiveGraphButton=Si}}),g(fe),E(Si=>xt=J(fe,1,Gl(hi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",xt,Si),[()=>({fullscreen:F(),hidden:!e.showControls&&!le()})]),_(wi,fe)};B(yn,wi=>{r(qn)&&wi(tr)})}var xn=A(yn,2);{var Rn=wi=>{var fe=_y();let xt;fe.__click=[vy,Xt,e,Xe];var di=h(fe);let mi=v(()=>!e.showControls);Ad(di,{get hidden(){return r(mi)},get disabled(){return r(Xt)},get click(){return e.seekToInteractive},get ref(){return ft.seekToInteractiveButton},set ref(Si){ft.seekToInteractiveButton=Si}}),g(fe),E(Si=>xt=J(fe,1,"wrapper-middle-right svelte-1afsgkw",null,xt,Si),[()=>({fullscreen:F(),hidden:!e.showControls})]),_(wi,fe)};B(xn,wi=>{Zt&&wi(Rn)})}_(lt,Gt)};B(vr,lt=>{Ji&&!m()&<(zr)})}E((lt,Gt,ii,ho)=>{ri=J(li,1,"overlay-mobile svelte-1afsgkw",null,ri,lt),ko=J(go,1,"wrapper-top-left svelte-1afsgkw",null,ko,Gt),tt=J(Go,1,"wrapper-top-right svelte-1afsgkw",null,tt,ii),fr=J(jo,1,"wrapper-middle svelte-1afsgkw",null,fr,ho)},[()=>({hidden:!r(dr)}),()=>({hidden:!e.showControls,fullscreen:F()}),()=>({hidden:!e.showControls&&!w(),fullscreen:F()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),_(mt,Ot)};B(mn,mt=>{R()||mt(Qn)})}var Wo=A(mn,2);{var mo=mt=>{var Ot=wy(),li=ue(Ot);{var ri=tt=>{var Mt=yy();let gi;var Ui=h(Mt);fu(Ui,{expanded:!1,click:Bo,get ref(){return ft.volume},set ref(ji){ft.volume=ji}}),g(Mt),E(ji=>gi=J(Mt,1,"wrapper-top-right svelte-1afsgkw",null,gi,ji),[()=>({fullscreen:F()})]),_(tt,Mt)};B(li,tt=>{Q()&&tt(ri)})}var go=A(li,2);{var ko=tt=>{var Mt=xy(),gi=h(Mt);let Ui=v(()=>!r(St));vl(gi,{get disabled(){return r(Un)},click:De,isMobile:!0,get isPlaying(){return r(Ui)},get ref(){return ft.playButton},set ref(ji){ft.playButton=ji}}),g(Mt),_(tt,Mt)};B(go,tt=>{r(St)&&tt(ko)})}var Eo=A(go,2);let Qo;var Go=h(Eo);wd(Go,{get position(){return Ae()},get duration(){return Me()}}),g(Eo),E(tt=>Qo=J(Eo,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Qo,tt),[()=>({fullscreen:F()})]),_(mt,Ot)};B(Wo,mt=>{R()&&d()!=="inactive"&&mt(mo)})}var Ci=A(Wo,2);let vn;var gn=h(Ci);let Ko;var vo=h(gn);J(vo,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Ln=h(vo);{var Io=mt=>{Ao(mt,{get disabled(){return r(eo)},get ref(){return ft.replayButton},set ref(Ot){ft.replayButton=Ot},children:(Ot,li)=>{ml(Ot,{get disabled(){return r(eo)},click:pn})},$$slots:{default:!0}})};B(Ln,mt=>{Ji&&mt(Io)})}var Fi=A(Ln,2);{var cr=mt=>{Ao(mt,{get ref(){return ft.liveButton},set ref(Ot){ft.liveButton=Ot},children:(Ot,li)=>{Ld(Ot,{get isLiveActive(){return r(fn)},isMobile:!0,get ariaLabel(){return r(qo)}})},$$slots:{default:!0}})};B(Fi,mt=>{!R()&&T()&&mt(cr)})}var Do=A(Fi,2);{var Gn=mt=>{let Ot=v(()=>R()?Ae():ge()),li=v(()=>R()?Me():se());hd(mt,{get showDuration(){return r(To)},get position(){return r(Ot)},get duration(){return r(li)},isMobile:!0,get ref(){return ft.time},set ref(ri){ft.time=ri}})};B(Do,mt=>{r(Ir)&&mt(Gn)})}var Vn=A(Do,2);let Yn=v(()=>!r(An));Ao(Vn,{className:"w-max",get disabled(){return r(Yn)},get ref(){return ft.episodes},set ref(mt){ft.episodes=mt},children:(mt,Ot)=>{var li=Oe(),ri=ue(li);{var go=ko=>{var Eo=Sy(),Qo=A(ue(Eo),2);Sd(Qo,{get position(){return ge()},get duration(){return se()},timeCodes:at}),_(ko,Eo)};B(ri,ko=>{r(An)&&ko(go)})}_(mt,li)},$$slots:{default:!0}});var ur=A(Vn,2);{var hn=mt=>{Ao(mt,{get ref(){return ft.settings},set ref(Ot){ft.settings=Ot},children:(Ot,li)=>{cl(Ot,{ref$:No})},$$slots:{default:!0}})};B(ur,mt=>{r(Vo)&&mt(hn)})}var kr=A(ur,2);{var pr=mt=>{Ao(mt,{get ref(){return ft.fullscreen},set ref(Ot){ft.fullscreen=Ot},children:(Ot,li)=>{$d(Ot,{get click(){return e.toggleFullscreen},get isFullscreen(){return F()}})},$$slots:{default:!0}})};B(kr,mt=>{r(Pn)&&mt(pr)})}g(vo),vt(vo,mt=>ne(mt),()=>ne());var jn=A(vo,2);ca(jn,{get isAds(){return R()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return M()},get ref(){return ft.timeline},set ref(mt){ft.timeline=mt}}),g(gn),g(Ci),vt(Ci,mt=>Ee(mt),()=>Ee());var Er=A(Ci,2);{var Pr=mt=>{Id(mt,{get ref(){return ft.interactiveTimeIndicator},set ref(Ot){ft.interactiveTimeIndicator=Ot}})};B(Er,mt=>{Ri&&mt(Pr)})}E((mt,Ot)=>{vn=J(Ci,1,"wrapper-bottom svelte-1afsgkw",null,vn,mt),Ko=J(gn,1,"controls-wrapper svelte-1afsgkw",null,Ko,Ot)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:F()})]),_(t,Kn),z(),o()}st(["click"]);function Rd(t,e){U(e,!0);let[i,o]=Ne(),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),y=f(e,"isOneVideoPlaylist",3,!1),u=f(e,"customFullscreenSupported",3,!0),$=f(e,"endScreenShown",3,!1),w=f(e,"onDisabledPlayPrevChapterClick",3,lm.noop),b=f(e,"onDisabledSeekToInteractiveClick",3,lm.noop),T=Ce().ui.isMobile,I=X(!1);zt(()=>{let V=setTimeout(()=>D(I,!0),0);return()=>clearTimeout(V)});var M=Oe(),P=ue(M);{var k=V=>{var W=Oe(),Y=ue(W);{var F=ie=>{am(ie,{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 y()},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 b()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},Q=ie=>{em(ie,{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 y()},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)}})};B(Y,ie=>{n()?ie(F):ie(Q,!1)})}_(V,W)};B(P,V=>{r(I)&&V(k)})}_(t,M),z(),o()}var Iy=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 dm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>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})),_(t,o)}function cm(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);dm(t,{get style(){return r(o)}})}var ky=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 um(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ky();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>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})),_(t,o)}var Ey=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 pm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>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})),_(t,o)}function mu(t,e){let i=f(e,"isOff",3,!1);var o=Oe(),n=ue(o);{var a=d=>{pm(d,{})},s=d=>{um(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}_(t,o)}var Py=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 fm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Py();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>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})),_(t,o)}function mm(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);fm(t,{get style(){return r(o)}})}var Ay=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 vm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>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})),_(t,o)}function gm(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);vm(t,{get style(){return r(o)}})}var My=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Ly=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Vy=L("<div><!></div>"),Ry={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.`},Lh=P_;var is=new Map;is.set(el.Interf
|
|
|
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
|
|
279
|
+
}`};function hm(t,e){U(e,!0),K(t,Ry);let[i,o]=Ne(),n=()=>S(e.data,"$data",i),s=Ce().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}),y=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=Vy();let $;var w=h(u);{var b=C=>{var T=Ly(),I=ue(T),M=h(I);{var P=H=>{let ae=v(()=>r(m)==="FORWARD_SEEK");cm(H,{get reversed(){return r(ae)}})};B(M,H=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(m))&&H(P)})}var k=A(M,2);{var V=H=>{ns(H,{})};B(k,H=>{r(m)==="PAUSE"&&H(V)})}var W=A(k,2);{var Y=H=>{Cr(H,{})};B(W,H=>{r(m)==="PLAY"&&H(Y)})}var F=A(W,2);{var Q=H=>{kd(H,{})};B(F,H=>{r(m)==="REPLAY"&&H(Q)})}var ie=A(F,2);{var Z=H=>{mu(H,{isOff:!0})};B(ie,H=>{r(m)==="SUBTITLES_OFF"&&H(Z)})}var re=A(ie,2);{var le=H=>{mu(H,{})};B(re,H=>{r(m)==="SUBTITLES_ON"&&H(le)})}var Ae=A(re,2);{var Me=H=>{let ae=v(()=>r(m)==="RATE_UP");mm(H,{get reversed(){return r(ae)}})};B(Ae,H=>{["RATE_DOWN","RATE_UP"].includes(r(m))&&H(Me)})}var ge=A(Ae,2);{var se=H=>{let ae=v(()=>r(m)==="EPISODE_NEXT");gm(H,{get reversed(){return r(ae)}})};B(ge,H=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(m))&&H(se)})}var Ee=A(ge,2);{var ne=H=>{xs(H,{volume:0})};B(Ee,H=>{r(m)==="MUTE"&&H(ne)})}var R=A(Ee,2);{var xe=H=>{xs(H,{volume:1})};B(R,H=>{r(m)==="VOLUME"&&H(xe)})}g(I);var _e=A(I,2);{var ze=H=>{var ae=My(),he=h(ae,!0);g(ae),E(()=>me(he,r(y))),_(H,ae)};B(_e,H=>{r(y)&&H(ze)})}_(C,T)};B(w,C=>{!r(d)&&r(m)&&C(b)})}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 By=ye('<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 _m(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=By();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(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 Ny=ye('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function bm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(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 Cs(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 y="";return r(a)&&(y+="transform: rotate(180deg);"),o()&&(y+="color: var(--btn-color, #fff);"),y.length?y:void 0})());var d=Oe(),l=ue(d);{var p=y=>{let u=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");_m(y,{get style(){return r(s)},get"data-testid"(){return r(u)}})},m=y=>{let u=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");bm(y,{get style(){return r(s)},get"data-testid"(){return r(u)}})};B(l,y=>{r(n)?y(p):y(m,!1)})}_(t,d),z()}var Dy=(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}},Oy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Hy=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>'),Fy={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function Bd(t,e){U(e,!0),K(t,Fy);let i=f(e,"isShifted",3,!1),o=Ce(),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=q("aria_label_spherical_control");var y=Hy();let u;y.__keydown=[Dy,n,a,s,l,d],y.__keyup=[Oy,n,p],Be(y,"aria-label",m);var $=h(y),w=h($),b=h(w);b.__mousedown=a,b.__mouseup=p;var C=h(b);Cs(C,{direction:"up",useBtnColor:!0}),g(b);var T=A(b,2);T.__mousedown=d,T.__mouseup=p;var I=h(T);Cs(I,{direction:"up",useBtnColor:!0}),g(T),g(w);var M=A(w,2),P=h(M);P.__mousedown=l,P.__mouseup=p;var k=h(P);Cs(k,{direction:"up",useBtnColor:!0}),g(P);var V=A(P,2);V.__mousedown=s,V.__mouseup=p;var W=h(V);Cs(W,{direction:"up",useBtnColor:!0}),g(V),g(M),g($),g(y),E(Y=>u=J(y,1,"immersive-controls svelte-1yzc86r",null,u,Y),[()=>({"m-shifted":i()})]),Tt("mouseleave",b,p),Tt("mouseleave",T,p),Tt("mouseleave",P,p),Tt("mouseleave",V,p),_(t,y),z()}st(["keydown","keyup","mousedown","mouseup"]);var ss=require("@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 vu=class{constructor(){this.flickeringTimeout=T1(1e3);this.subscriptions=new ss.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new ss.ValueSubject([]);this.captionsPrepared$=new ss.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,ss.filter)(()=>this.isEnabled()),(0,ss.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type: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 Uy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),zy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),qy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Wy=L('<div><span class="caption svelte-c2x749"><!></span></div>'),Ky=L("<div><!></div>"),Qy={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 ga(t,e){U(e,!0),K(t,Qy);let[i,o]=Ne(),n=()=>S(y,"$currentSubtitle$",i),a=()=>S($,"$isLive$",i),s=()=>S(w,"$isFullscreen",i),d=()=>S(u,"$isAutoSubtitleCaptionVisible$",i),l=f(e,"isMobile",3,!1),p=Ce(),m=qt(),y=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,$=p.state.isLive$,w=p.ui.isFullscreen,b=v(()=>!!n().isAuto),C=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),I=v(()=>l()&&!s()||r(T)<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:r(T)),M=X(null);Fe(()=>{var Q,ie,Z;(Q=r(M))==null||Q.setIsAuto(r(b)),(ie=r(M))==null||ie.setIsLive(r(C)),(Z=r(M))==null||Z.setCaptions(e.captions)});let P=X(pe([[]]));zt(()=>{D(M,pe(new vu().subscribe()));let Q=r(M).captionsPrepared$.subscribe(ie=>{D(P,pe(ie))});return()=>{var ie;(ie=r(M))==null||ie.destroy(),Q.unsubscribe()}}),zt(()=>{if(r(b)){let Q=window.setTimeout(()=>{u.set(!1)},m.autoSubtitlesTimeout);return()=>{window.clearTimeout(Q)}}else u.set(!1)});let k=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=Ky();let W;var Y=h(V);{var F=Q=>{var ie=Wy();let Z;var re=h(ie),le=h(re);{var Ae=ge=>{var se=Uy(),Ee=h(se),ne=h(Ee,!0);g(Ee),g(se),E(R=>{var xe;rt(Ee,`font-size: ${(xe=r(I))!=null?xe:""}px`),me(ne,R)},[()=>q("subtitles_auto_caption")]),_(ge,se)},Me=(ge,se)=>{{var Ee=R=>{var xe=Oe(),_e=ue(xe);Ti(_e,17,()=>r(P),Kl,(ze,H)=>{var ae=zy(),he=h(ae);Ti(he,21,()=>r(H),({value:ee,timeAppeared:De})=>De,(ee,De)=>{let Ze=()=>r(De).value,we=()=>r(De).timeAppeared;var Ve=Oe(),Ie=ue(Ve);{var Ue=ct=>{var ut=Nr();E(()=>me(ut,Ze())),_(ct,ut)};B(Ie,ct=>{(!we()||we()<=e.position)&&ct(Ue)})}_(ee,Ve)}),g(he),g(ae),E(()=>{var ee;return rt(he,`font-size: ${(ee=r(I))!=null?ee:""}px`)}),_(ze,ae)}),_(R,xe)},ne=R=>{var xe=Oe(),_e=ue(xe);Ti(_e,17,()=>e.captions,({value:ze})=>ze,(ze,H)=>{let ae=()=>r(H).value;var he=qy(),ee=h(he),De=h(ee,!0);g(ee),g(he),E(()=>{var Ze;rt(ee,`font-size: ${(Ze=r(I))!=null?Ze:""}px`),me(De,ae())}),_(ze,he)}),_(R,xe)};B(ge,R=>{var xe;r(b)&&((xe=r(P))!=null&&xe.length)?R(Ee):R(ne,!1)},se)}};B(le,ge=>{r(b)&&d()?ge(Ae):ge(Me,!1)})}g(re),g(ie),E(ge=>{var se;Z=J(ie,1,"subtitles-caption svelte-c2x749",null,Z,ge),rt(ie,`--subtitles-caption-margin: ${(se=r(k))!=null?se:""}%`)},[()=>({mobile:l()})]),_(Q,ie)};B(Y,Q=>{var ie;(e.captions.length||(ie=r(P))!=null&&ie.length)&&Q(F)})}g(V),E(Q=>W=J(V,1,"subtitles-container svelte-c2x749",null,W,Q),[()=>({shifted:e.shifted,auto:r(b)&&!r(C)&&!d()})]),_(t,V),z(),o()}var Gy=L('<div class="text svelte-raurnb"> </div>'),Yy=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>'),jy={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 Nd(t,e){U(e,!0),K(t,jy);let i=qt();var o=Yy();let n;var a=A(h(o),2);{var s=d=>{var l=Gy(),p=h(l);g(l),E(()=>{var m;return me(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)};B(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),E(d=>{n=J(o,1,"wrapper svelte-raurnb",null,n,d),rt(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 Zy=ye('<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 $m(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(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 Xy=L('<div class="container svelte-13zpvm8"><!></div>'),Jy={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 Dd(t){K(t,Jy);var e=Xy(),i=h(e);$m(i,{}),g(e),_(t,e)}var e4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),t4=L("<div><!></div>"),i4={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
|
|
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 ha(t,e){U(e,!0),K(t,i4);let i=f(e,"iconVisible",3,!0),o=Ce(),n=qt(),a=o.ui.startedByKeyboard$,s=q("tooltip_play"),d=$=>{var b;let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),a.set(!0),(b=e.startVideo)==null||b.call(e))},l=$=>{var w;$.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=t4();let m;p.__click=l;var y=h(p);{var u=$=>{var w=e4();w.__keydown=d,Be(w,"aria-label",s);var b=A(h(w),2);Cr(b,{}),g(w),_($,w)};B(y,$=>{i()&&$(u)})}return g(p),E($=>{m=J(p,1,"container svelte-1ciju45",null,m,$),rt(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 o4=L('<div data-testid="video_title"> </div>'),n4={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 ym(t,e){K(t,n4);let i=f(e,"title",3,""),o=f(e,"isHidden",3,!1);var n=o4();let a;var s=h(n,!0);g(n),E(d=>{a=J(n,1,"title svelte-1bcvcf2",null,a,d),me(s,i())},[()=>({hidden:o()})]),_(t,n)}var r4=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),s4=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),a4=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),l4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),d4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),c4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function xm(t,e){U(e,!0),K(t,c4);let i=X(""),o=X(""),n=X(""),a=X(""),s,d=M=>String(M).padStart(2,"0"),l=M=>{let P=Math.floor(M/86400);P&&(M-=P*86400,D(i,pe(d(P))));let k=Math.floor(M/3600);D(o,pe(d(k)));let V=Math.floor(M/60)%60;D(n,pe(d(V)));let W=M%60;D(a,pe(d(W)))},p=()=>{let M=Math.floor(Date.now()/1e3),P=e.startTime-M;l(P),P>=1?s=requestAnimationFrame(p):e.onTimerOver()};zt(()=>{s=requestAnimationFrame(p)}),In(()=>{cancelAnimationFrame(s)});var m=d4(),y=h(m);{var u=M=>{var P=r4(),k=ue(P),V=h(k),W=h(V,!0);g(V);var Y=A(V,2),F=h(Y,!0);g(Y),g(k);var Q=A(k,2),ie=h(Q,!0);g(Q),E((Z,re)=>{me(W,r(i)),me(F,Z),me(ie,re)},[()=>q("waiting_live_day_value"),()=>q("waiting_live_colon")]),_(M,P)};B(y,M=>{r(i)&&M(u)})}var $=A(y,2);{var w=M=>{var P=s4(),k=ue(P),V=h(k),W=h(V,!0);g(V);var Y=A(V,2),F=h(Y,!0);g(Y),g(k);var Q=A(k,2),ie=h(Q,!0);g(Q),E((Z,re)=>{me(W,r(o)),me(F,Z),me(ie,re)},[()=>q("waiting_live_hour_value"),()=>q("waiting_live_colon")]),_(M,P)};B($,M=>{r(o)&&M(w)})}var b=A($,2);{var C=M=>{var P=a4(),k=ue(P),V=h(k),W=h(V,!0);g(V);var Y=A(V,2),F=h(Y,!0);g(Y),g(k);var Q=A(k,2),ie=h(Q,!0);g(Q),E((Z,re)=>{me(W,r(n)),me(F,Z),me(ie,re)},[()=>q("waiting_live_minute_value"),()=>q("waiting_live_colon")]),_(M,P)};B(b,M=>{r(n)&&M(C)})}var T=A(b,2);{var I=M=>{var P=l4(),k=h(P),V=h(k,!0);g(k);var W=A(k,2),Y=h(W,!0);g(W),g(P),E(F=>{me(V,r(a)),me(Y,F)},[()=>q("waiting_live_second_value")]),_(M,P)};B(T,M=>{r(a)&&M(I)})}g(m),_(t,m),z()}var u4=ye('<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 wm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=u4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(4),g(o),E(()=>n=Te(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 p4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),f4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),m4=L('<div class="waiting-container svelte-15pewff"><!></div>'),v4={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 Od(t,e){U(e,!0),K(t,v4);let i=X(!1);Fe(()=>{D(i,pe(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=m4(),n=h(o);{var a=d=>{var l=p4(),p=h(l),m=h(p);wm(m,{}),g(p);var y=A(p,2),u=h(y,!0);g(y),g(l),E($=>me(u,$),[()=>q("waiting_live_upcoming_title")]),_(d,l)},s=d=>{var l=f4(),p=h(l),m=h(p,!0);g(p);var y=A(p,2);let u=v(()=>e.startTime||0);xm(y,{get startTime(){return r(u)},onTimerOver:()=>D(i,!0)}),g(l),E($=>me(m,$),[()=>q("waiting_live_timer_title")]),_(d,l)};B(n,d=>{r(i)?d(a):d(s,!1)})}g(o),E(()=>rt(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),_(t,o),z()}var g4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),h4={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 _a(t,e){U(e,!0),K(t,h4);let i=f(e,"thumbUrl",3,""),o={recover:q("waiting_live_recover_title"),record:q("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=g4(),s=h(a),d=h(s);sa(d,{style:"position: static; transform: translate(0, 0)"});var l=A(d,2),p=h(l,!0);g(l),g(s),g(a),E(()=>{rt(a,`background-image: url('${i()}')`),me(p,r(n))}),_(t,a),z()}var _4=ye('<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 Sm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=_4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(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 b4=L('<div class="select-icon svelte-124aexk"><!></div>'),$4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Hd(t){K(t,$4);var e=b4(),i=h(e);Sm(i,{}),g(e),_(t,e)}var y4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},x4=(t,e)=>{sl(t,()=>e.item.selectItem(e.item.value))},w4=L("<p> </p>"),S4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),C4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),T4={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 Cm(t,e){U(e,!0),K(t,T4);let i=f(e,"isMobile",3,!1);var o=C4();let n;o.__click=[y4,e],o.__keydown=[x4,e];var a=h(o);{var s=w=>{Hd(w,{})};B(a,w=>{e.item.selected&&w(s)})}var d=A(a,2);let l;var p=h(d);{var m=w=>{var b=Oe(),C=ue(b);Ii(C,()=>e.item.valueComponent,(T,I)=>{I(T,ts(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),_(w,b)},y=w=>{var b=w4();let C;var T=h(b,!0);g(b),E(I=>{var M;C=J(b,1,"label svelte-1t7rx2m",null,C,I),me(T,(M=e.item.label)!=null?M:e.item.value)},[()=>({mobile:i()})]),_(w,b)};B(p,w=>{e.item.valueComponent?w(m):w(y,!1)})}var u=A(p,2);{var $=w=>{var b=S4(),C=h(b,!0);g(b),E(()=>me(C,e.item.sublabel)),_(w,b)};B(u,w=>{e.item.sublabel&&w($)})}g(d),g(o),E((w,b,C)=>{n=J(o,1,"item",null,n,w),Be(o,"data-value",e.item.value),Be(o,"aria-label",b),Be(o,"data-testid",e.item.dataTestid),l=J(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Be(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,b;return(b=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?b:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),_(t,o),z()}st(["click","keydown"]);var I4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Tm(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(()=>b=>jc(b,r(n)));var s=I4();let d;s.__click=function(...b){var C;(C=r(n))==null||C.apply(this,b)},s.__keydown=function(...b){var C;(C=r(a))==null||C.apply(this,b)};var l=h(s);{var p=b=>{Hd(b,{})};B(l,b=>{e.item.selected&&b(p)})}var m=A(l,2);let y;var u=h(m);{var $=b=>{var C=Oe();let T=v(()=>e.item.valueComponent);var I=ue(C);Ii(I,()=>r(T),(M,P)=>{P(M,ts(()=>{var k;return(k=e.item.valueComponentParams)!=null?k:{}}))}),_(b,C)},w=b=>{var C=Nr();E(()=>me(C,e.item.label)),_(b,C)};B(u,b=>{e.item.valueComponent?b($):b(w,!1)})}g(m),g(s),vt(s,b=>o(o()[e.item.id]=b,!0),()=>{var b;return(b=o())==null?void 0:b[e.item.id]}),E((b,C)=>{var T;d=J(s,1,"item",null,d,b),Be(s,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Be(s,"data-testid",e.item.id),y=J(m,1,"menu-item-value",null,y,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),_(t,s),z()}st(["click","keydown"]);var Tr={"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 E4=(t,e)=>{Kh(t,e.returnFromSubMenu,e.closeSettingsMenu)},P4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},A4=(t,e)=>{dd(t)&&(lr(t),e.returnFromSubMenu())},M4=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>'),L4={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.`},Lh=P_;var is=new Map;is.set(el.Interf
|
|
|
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 Im(t,e){U(e,!0),W(t,L4);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);Wt(()=>{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=M4();let P;var A=h(k);let I;A.__keydown=[E4,e];var V=h(A);let q;V.__click=[P4,e],V.__keydown=[A4,e];var Q=h(V);Ts(Q,{direction:"left"});var H=M(Q,2),Y=h(H,!0);g(H),g(V),ft(V,Z=>D(_,Z),()=>r(_));var ne=M(V,2);ki(ne,17,()=>e.items,Kl,(Z,de)=>{var ce=De(),Le=pe(ce);{var Ae=se=>{Sm(se,{get item(){return r(de)},get isMobile(){return s()}})},he=(se,Me)=>{{var oe=B=>{Cm(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),ft(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}`),rt(k,`min-width: ${r(T)}px`),I=J(A,1,"items svelte-7dfsuh",null,I,de),rt(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()})]),Or(V,"clientWidth",Z=>D(w,Z)),Or(V,"clientHeight",Z=>D(y,Z)),$(t,k),z(),o()}at(["keydown","click"]);var I1=require("@vkontakte/videoplayer-shared/es2018");var V4=(t,e)=>Yc(t,e()),R4=(t,e)=>{t.stopPropagation(),e()()},N4=L('<div class="value svelte-1ikfjte"> </div>'),B4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),D4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function km(t,e){U(e,!0),W(t,D4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,I1.noop),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=B4();let d;s.__click=[R4,o],s.__keydown=[V4,o];var l=h(s),p=h(l);{var m=T=>{va(T,{get icon(){return e.icon}})},b=T=>{var k=De();let P=v(()=>e.icon);var A=pe(k);Ei(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);Ei(A,()=>r(P),(I,V)=>{V(I,{})}),$(T,k)},C=T=>{var k=N4(),P=h(k,!0);g(k),E(()=>ve(P,e.value)),$(T,k)};R(w,T=>{n()?T(y):T(C,!1)})}g(s),ft(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()}at(["click","keydown"]);var Em=require("@vkontakte/videoplayer-shared/es2018");var O4=(t,e)=>{al(t,()=>e())},H4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),F4=L('<img class="icon" aria-hidden="true">'),U4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),z4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Pm(t,e){U(e,!0),W(t,z4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,Em.noop),n=f(e,"closeSettings",3,Em.noop),a=X(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=U4();let p;l.__click=d,l.__keydown=[O4,d];var m=h(l),b=h(m);{var u=C=>{var T=De(),k=pe(T);{var P=I=>{var V=H4();$(I,V)},A=I=>{var V=F4();E(()=>Be(V,"src",e.icon)),Tt("error",V,s),qs(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);Ei(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()}at(["click","keydown"]);var k1=require("@vkontakte/videoplayer-shared/es2018");var q4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),W4={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,W4);let i=f(e,"enabled",3,!1);var o=q4(),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 K4=(t,e,i)=>{Kh(t,e(),o=>i()(o))},Q4=(t,e,i)=>{t.stopPropagation(),e()(!i())},G4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),j4=L('<li role="menuitem" tabindex="0"><!></li>');function Mm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,k1.noop),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=j4();let l;d.__click=[Q4,o,n],d.__keydown=[K4,n,o];var p=h(d);da(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(m,b)=>{var u=G4();let _;var w=h(u),y=h(w);{var C=I=>{va(I,{get icon(){return e.icon}})},T=I=>{var V=De();let q=v(()=>e.icon);var Q=pe(V);Ei(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()}at(["click","keydown"]);var Ud=require("@vkontakte/videoplayer-shared/es2018");var E1=()=>{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 Y4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),Z4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),X4={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 $a(t,e){U(e,!0),W(t,X4);let i=f(e,"isSubCase",3,!1),o=v(()=>eu(e.quality));var n=Z4(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var p=m=>{var b=Y4();let u=v(()=>r(o));var _=h(b);Ei(_,()=>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()}var L1=require("@vkontakte/videoplayer-shared/es2018");var Lm=require("@vkontakte/videoplayer-core/es2018");var P1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},A1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=P1({quality:t,availableQualities:e});return i?t===Lm.VideoQuality.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},M1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Lm.VideoQuality.INVARIANT?i:`${i}${P1({quality:t,availableQualities:e})}`:"...";var J4=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),e3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function hl(t,e){U(e,!0),W(t,e3);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()!==L1.VideoQuality.INVARIANT?b:"")),_=v(()=>M1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=J4(),y=h(w);let C=v(()=>e.selected?n():void 0);$a(y,{get quality(){return r(C)},get label(){return r(_)},get isMobile(){return s()},isSubCase:!0}),g(w),$(t,w),z(),o()}var t3=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")},i3={br:!0,span:!0},Vm=(t,e={})=>{var d,l,p,m,b,u,_;if(!t)return t;let i={...i3,...e},o=Object.keys(i);if(!o.length)return t;let n=t3(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?Vm(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 Fd(t,e){U(e,!1);let i=f(e,"message",8),o=Vm(i());$r();var n=De(),a=pe(n);{var s=d=>{var l=De(),p=pe(l);Ql(p,()=>o,!1,!1),$(d,l)};R(a,d=>{o&&d(s)})}$(t,n),z()}var o3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),n3={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 Rm(t,e){U(e,!1),W(t,n3),$r();var i=o3(),o=h(i);let n=hr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Fd(o,{get message(){return r(n)}}),g(i),$(t,i),z()}var R1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:hl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},Nm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?hl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),N1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Rm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Bm=({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?hl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),Dm=({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?hl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var vu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),gu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=lu(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=vu(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=vu(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=vu(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=vu(t,e);return F("audio_stream_display_unknown",{index:a})};var r3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Nm,selected:e&&!o&&!n||!1}),a.push({handler:Dm,selected:o},{handler:Bm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[N1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),R1(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:$a,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:Nm,selected:((i=Hc())==null?void 0:i.type)==="auto_quality"},{handler:Dm,selected:((o=Hc())==null?void 0:o.type)==="traffic_saving"},{handler:Bm,selected:((n=Hc())==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:gu(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}))})},B1=({subMenuId:t,context:e})=>t?[r3[t](e)]:[];var s3=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 Om(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:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),$(t,o)}var a3=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 Hm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=a3();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 l3=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 Fm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=l3();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 d3=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 Um(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=d3();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 c3=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 zm(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:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),$(t,o)}var u3=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 hu(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=u3();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 p3=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 qm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=p3();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 f3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),m3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Wm(t,e){U(e,!0),W(t,m3);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(()=>A1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=f3(),y=h(w);$a(y,{get quality(){return n()},get label(){return r(_)},get isMobile(){return d()}}),g(w),$(t,w),z(),o()}var g3={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:vd,label:F("menu_quality"),value:e,valueComponent:Wm,weight:Sr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Sr["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:Om,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=gu(t,e);return{id:"AUDIO_LANGUAGES",weight:Sr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:Hm,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:Sr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:Fm,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Sr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:gd,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Sr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:Um}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Sr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:zm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Sr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:hu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Sr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:hu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Sr["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:qm,isHiddenFor:["desktop"]})},D1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>g3[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(na)};var _3=(t,e)=>{jc(t,e)},b3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),$3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),y3=L("<div><!> <!></div>"),x3={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 km(t,e){U(e,!0),K(t,L4);let[i,o]=Ne(),n=()=>S(y,"$isFullscreen",i),a=()=>S(u,"$playerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"playerControlsHeight",3,0),l=f(e,"ariaLabelReturnFromSubMenu",19,()=>q("aria_label_submenu_back")),p=f(e,"listRef",15);zt(()=>{let Z=e.items.findIndex(re=>re.selected);p().children[Z+1].focus()});let m=Ce(),y=m.ui.isFullscreen,u=m.ui.playerSize,$=X(void 0),w=X(0),b=X(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(b)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(w)));var I=M4();let M;var P=h(I);let k;P.__keydown=[E4,e];var V=h(P);let W;V.__click=[P4,e],V.__keydown=[A4,e];var Y=h(V);Cs(Y,{direction:"left"});var F=A(Y,2),Q=h(F,!0);g(F),g(V),vt(V,Z=>D($,Z),()=>r($));var ie=A(V,2);Ti(ie,17,()=>e.items,Kl,(Z,re)=>{var le=Oe(),Ae=ue(le);{var Me=se=>{Cm(se,{get item(){return r(re)},get isMobile(){return s()}})},ge=(se,Ee)=>{{var ne=R=>{Tm(R,{get isMobile(){return s()},get item(){return r(re)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};B(se,R=>{r(re).type==="OPEN_SUB_MENU"&&R(ne)},Ee)}};B(Ae,se=>{r(re).type==="SELECT_VALUE"?se(Me):se(ge,!1)})}_(Z,le)}),g(P),vt(P,Z=>p(Z),()=>p()),g(I),E((Z,re,le)=>{M=J(I,1,"sub-menu menu svelte-7dfsuh",null,M,Z),Be(I,"data-testid",`sub-menu-${e.id}`),rt(I,`min-width: ${r(T)}px`),k=J(P,1,"items svelte-7dfsuh",null,k,re),rt(P,r(C)),W=J(V,1,"item header back svelte-7dfsuh",null,W,le),Be(V,"aria-label",l()),me(Q,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Dr(V,"clientWidth",Z=>D(w,Z)),Dr(V,"clientHeight",Z=>D(b,Z)),_(t,I),z(),o()}st(["keydown","click"]);var k1=require("@vkontakte/videoplayer-shared/es2018");var V4=(t,e)=>jc(t,e()),R4=(t,e)=>{t.stopPropagation(),e()()},B4=L('<div class="value svelte-1ikfjte"> </div>'),N4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),D4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Em(t,e){U(e,!0),K(t,D4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,k1.noop),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=N4();let d;s.__click=[R4,o],s.__keydown=[V4,o];var l=h(s),p=h(l);{var m=T=>{ma(T,{get icon(){return e.icon}})},y=T=>{var I=Oe();let M=v(()=>e.icon);var P=ue(I);Ii(P,()=>r(M),(k,V)=>{V(k,{})}),_(T,I)};B(p,T=>{typeof e.icon=="string"?T(m):T(y,!1)})}g(l);var u=A(l,2),$=h(u,!0);g(u);var w=A(u,2);{var b=T=>{var I=Oe();let M=v(n);var P=ue(I);Ii(P,()=>r(M),(k,V)=>{V(k,{})}),_(T,I)},C=T=>{var I=B4(),M=h(I,!0);g(I),E(()=>me(M,e.value)),_(T,I)};B(w,T=>{n()?T(b):T(C,!1)})}g(s),vt(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),me($,e.label)},[()=>({mobile:i()})]),_(t,s),z()}st(["click","keydown"]);var Pm=require("@vkontakte/videoplayer-shared/es2018");var O4=(t,e)=>{sl(t,()=>e())},H4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),F4=L('<img class="icon" aria-hidden="true">'),U4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),z4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Am(t,e){U(e,!0),K(t,z4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,Pm.noop),n=f(e,"closeSettings",3,Pm.noop),a=X(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=U4();let p;l.__click=d,l.__keydown=[O4,d];var m=h(l),y=h(m);{var u=C=>{var T=Oe(),I=ue(T);{var M=k=>{var V=H4();_(k,V)},P=k=>{var V=F4();E(()=>Be(V,"src",e.icon)),Tt("error",V,s),zs(V),_(k,V)};B(I,k=>{r(a)?k(M):k(P,!1)})}_(C,T)},$=C=>{var T=Oe();let I=v(()=>e.icon);var M=ue(T);Ii(M,()=>r(I),(P,k)=>{k(P,{})}),_(C,T)};B(y,C=>{typeof e.icon=="string"?C(u):C($,!1)})}g(m);var w=A(m,2),b=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),me(b,e.label)},[()=>({mobile:i()})]),_(t,l),z()}st(["click","keydown"]);var E1=require("@vkontakte/videoplayer-shared/es2018");var q4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),W4={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 Mm(t,e){K(t,W4);let i=f(e,"enabled",3,!1);var o=q4(),n=h(o);let a;$e(2),g(o),E(s=>a=J(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),_(t,o)}var K4=(t,e,i)=>{Qh(t,e(),o=>i()(o))},Q4=(t,e,i)=>{t.stopPropagation(),e()(!i())},G4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),Y4=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,E1.noop),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=Y4();let l;d.__click=[Q4,o,n],d.__keydown=[K4,n,o];var p=h(d);la(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(m,y)=>{var u=G4();let $;var w=h(u),b=h(w);{var C=k=>{ma(k,{get icon(){return e.icon}})},T=k=>{var V=Oe();let W=v(()=>e.icon);var Y=ue(V);Ii(Y,()=>r(W),(F,Q)=>{Q(F,{})}),_(k,V)};B(b,k=>{typeof e.icon=="string"?k(C):k(T,!1)})}g(w);var I=A(w,2),M=h(I,!0);g(I);var P=A(I,2);Mm(P,{get enabled(){return n()}}),g(u),E(k=>{$=J(u,1,"switch-wrapper",null,$,k),me(M,e.label)},[()=>({mobile:i()})]),_(m,u)},$$slots:{default:!0}}),g(d),E(m=>{var y;l=J(d,1,"item switch-item",null,l,m),Be(d,"aria-label",(y=e.ariaLabel)!=null?y:e.label),Be(d,"data-testid",e.id)},[()=>({mobile:i()})]),_(t,d),z()}st(["click","keydown"]);var Ud=require("@vkontakte/videoplayer-shared/es2018");var P1=()=>{let t=X(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 j4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),Z4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),X4={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 ba(t,e){U(e,!0),K(t,X4);let i=f(e,"isSubCase",3,!1),o=v(()=>eu(e.quality));var n=Z4(),a=h(n);let s;var d=h(a,!0);g(a);var l=A(a,2);{var p=m=>{var y=j4();let u=v(()=>r(o));var $=h(y);Ii($,()=>r(u),(w,b)=>{b(w,{})}),g(y),_(m,y)};B(l,m=>{r(o)&&!e.isMobile&&m(p)})}g(n),E(m=>{s=J(a,1,"svelte-t2qk8t",null,s,m),me(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),_(t,n),z()}var V1=require("@vkontakte/videoplayer-shared/es2018");var Vm=require("@vkontakte/videoplayer-core/es2018");var A1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},M1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=A1({quality:t,availableQualities:e});return i?t===Vm.VideoQuality.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},L1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Vm.VideoQuality.INVARIANT?i:`${i}${A1({quality:t,availableQualities:e})}`:"...";var J4=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),e3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function hl(t,e){U(e,!0),K(t,e3);let[i,o]=Ne(),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,y=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==V1.VideoQuality.INVARIANT?y:"")),$=v(()=>L1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=J4(),b=h(w);let C=v(()=>e.selected?n():void 0);ba(b,{get quality(){return r(C)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),_(t,w),z(),o()}var t3=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")},i3={br:!0,span:!0},Rm=(t,e={})=>{var d,l,p,m,y,u,$;if(!t)return t;let i={...i3,...e},o=Object.keys(i);if(!o.length)return t;let n=t3(o),a=[],s=0;for(let w of t.matchAll(n)){let b=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+b.length;continue}let I=(y=w.groups)!=null&&y.childrenhtml?Rm(w.groups.childrenhtml,i):"",M=(u=w.groups)!=null&&u.childrenhtml?b.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>I||""):b;a.push(t.slice(s,T),M),s=T+b.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Fd(t,e){U(e,!1);let i=f(e,"message",8),o=Rm(i());xr();var n=Oe(),a=ue(n);{var s=d=>{var l=Oe(),p=ue(l);Ql(p,()=>o,!1,!1),_(d,l)};B(a,d=>{o&&d(s)})}_(t,n),z()}var o3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),n3={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 Bm(t,e){U(e,!1),K(t,n3),xr();var i=o3(),o=h(i);let n=br(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));Fd(o,{get message(){return r(n)}}),g(i),_(t,i),z()}var B1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:hl,valueComponentParams:{prefix:q("other_quality"),selected:o},children:"QUALITY"}},Nm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:q("auto_quality_limit"),valueComponent:e?hl:void 0,valueComponentParams:{prefix:q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),N1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Bm,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:q("high_quality"),valueComponent:t?hl:void 0,valueComponentParams:{prefix:q("high_quality"),selected:i},sublabel:q("high_quality_description")}),Om=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:q("traffic_saving_quality"),valueComponent:t?hl:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var gu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),hu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=lu(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return q("audio_stream_display_language_label",{language:n,label:o});{let l=gu(t,d);return q("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=gu(t,d);return q("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=gu(t,d);return q("audio_stream_display_language_index",{language:n,index:l})}}let a=gu(t,e);return q("audio_stream_display_unknown",{index:a})};var r3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Nm,selected:e&&!o&&!n||!1}),a.push({handler:Om,selected:o},{handler:Dm,selected:n}),{title:q("submenu_quality"),id:"QUALITY_DETAILS",items:[N1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),B1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:q("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:ba,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:q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Nm,selected:((i=Hc())==null?void 0:i.type)==="auto_quality"},{handler:Om,selected:((o=Hc())==null?void 0:o.type)==="traffic_saving"},{handler:Dm,selected:((n=Hc())==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:q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:hu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:q("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===cu?"sub_off":void 0}))})},D1=({subMenuId:t,context:e})=>t?[r3[t](e)]:[];var s3=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 Hm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=s3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}var a3=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 Fm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=a3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}var l3=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 Um(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=l3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}var d3=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 zm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=d3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}var c3=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 qm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=c3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}var u3=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 _u(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=u3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}var p3=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 Wm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=p3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}var f3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),m3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Km(t,e){U(e,!0),K(t,m3);let[i,o]=Ne(),n=()=>S(p,"$currentQuality$",i),a=()=>S(m,"$availableQualities$",i),s=()=>S(y,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),l=Ce(),p=l.state.currentQuality$,m=l.state.availableQualities$,y=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,$=v(()=>M1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=f3(),b=h(w);ba(b,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),_(t,w),z(),o()}var g3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?q("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_quality",{actual:o}),icon:vd,label:q("menu_quality"),value:e,valueComponent:Km,weight:Tr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Tr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:q("aria_label_submenu_traffic_saving"),icon:Hm,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=hu(t,e);return{id:"AUDIO_LANGUAGES",weight:Tr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_audio_languages",{actual:i}),icon:Fm,label:q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Tr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_rate",{actual:i}),icon:Um,label:q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Tr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:gd,label:q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Tr.download,type:"CLICK",onClick:t,label:q("download_video_caption"),ariaLabel:q("aria_label_menu_download"),icon:zm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Tr.report,type:"CLICK",onClick:t,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,icon:qm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Tr["copy-data"],type:"CLICK",onClick:t,label:q("menu_copy_debug"),ariaLabel:q("menu_copy_debug"),icon:_u,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Tr["save-trace-info"],type:"CLICK",onClick:t,label:q("menu_save_debug"),ariaLabel:q("menu_save_debug"),icon:_u,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Tr["debug-info"],type:"CLICK",onClick:t,label:q("aria_label_menu_debug_overlay"),ariaLabel:q("menu_debug_overlay"),icon:Wm,isHiddenFor:["desktop"]})},O1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>g3[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(oa)};var _3=(t,e)=>{Yc(t,e)},b3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),$3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),y3=L("<div><!> <!></div>"),x3={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 zd(t,e){U(e,!0),
|
|
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 zd(t,e){U(e,!0),K(t,x3);let[i,o]=Ne(),n=()=>S(De,"$settingsMenuVisible",i),a=()=>S(Ze,"$settingsMenuOpenedByKeyboard",i),s=()=>S(It,"$debugPanelVisible",i),d=()=>S(Ve,"$isMobile",i),l=()=>S(ot,"$playerSize",i),p=()=>S(ee,"$hasMpegSources$",i),m=()=>S(Ie,"$mobileNotReportControlHidden$",i),y=()=>S(ne,"$autoQualityLimitingAvailable$",i),u=()=>S(ae,"$availableSubtitlesList$",i),$=()=>S(Ue,"$isLiveWithPlaybackSpeed",i),w=()=>S(ge,"$availableAudioStreams$",i),b=()=>S(ze,"$availablePlaybackRates$",i),C=()=>S(Me,"$currentAudioStream$",i),T=()=>S(_e,"$currentPlaybackRate$",i),I=()=>S(ct,"$trafficSavingEnabled",i),M=()=>S(se,"$currentQuality$",i),P=()=>S(R,"$isAutoQualityEnabled$",i),k=()=>S(H,"$currentSubtitle$",i),V=()=>S(Qt,"$additionalSettingsMenuItems$",i),W=()=>S(xe,"$isAutoQualityAvailable$",i),Y=()=>S(Ee,"$availableQualities$",i),F=()=>S(ut,"$highQualityEnabled",i),Q=f(e,"ref",15,void 0),ie=f(e,"playerControlsHeight",3,0),Z=pe({}),re=pe({}),le=Ce(),Ae=qt(),Me=le.state.audioStream$,ge=le.state.availableAudioStreams$,se=le.state.currentQuality$,Ee=le.state.availableQualities$,ne=le.state.autoQualityLimitingAvailable$,R=le.state.isAutoQualityEnabled$,xe=le.state.isAutoQualityAvailable$,_e=le.state.currentPlaybackRate$,ze=le.state.availablePlaybackRates$,H=le.state.currentSubtitle$,ae=le.state.availableSubtitlesList$,he=le.state.canDownload,ee=le.state.hasMpegSources$,De=le.ui.settingsMenu.visible$,Ze=le.ui.settingsMenu.openedByBtnKeyboard$,we=le.ui.settingsMenu.ref$,Ve=le.ui.isMobile,Ie=le.ui.mobileNotReportControlHidden$,Ue=le.state.canChangePlaybackSpeed$,ct=le.state.trafficSavingEnabled$,ut=le.state.highQualityEnabled$,ot=le.ui.playerSize,It=le.ui.debugPanelVisible,gt=le.state.isInteractiveTime$,Qt=le.ui.additionalSettingsMenuItems$,ti=le.ui.t,At=le.actions.internal.downloadVideo,Nt=le.actions.internal.closeSettingsMenu,O=le.actions.internal.openSettingsSubMenu,be=le.actions.internal.closeSettingsSubMenu,oe=X(!1),Re=X(void 0),Qe=P1();Fe(()=>{!n()&&Qe.current&&(be(re[Qe.current]),Qe.popAllSubMenus())}),Fe(()=>{n()||D(Re,void 0)}),Fe(()=>{!Qe.current&&r(Re)&&Wh(Z,r(Re))}),Fe(()=>{Q()&&we.set(Q())});async function Ye(Xe){Qe.pushSubMenu(Xe),await xo(),O(Xe,re[Xe])}function Le(Xe){var Vt;Xe==null||Xe.stopPropagation(),a()||(Vt=e.returnFocus)==null||Vt.call(e),Nt(),D(oe,!1)}function nt(Xe,Vt){le.actions.internal.setQuality(Xe,{appliesTo:Vt}),Le()}function je(Xe){le.actions.internal.setAudioStream(Xe),Le()}function ht(Xe,Vt){le.actions.internal.setTrafficSavingEnabled(Xe,Vt),Ae.features.qualityDetailsSubMenuEnabled&&Le()}function at(Xe,Vt){le.actions.internal.setHighQualityEnabled(Xe,Vt),Le()}function Je(Xe){le.actions.internal.setPlaybackRate(Xe),Le()}function Wt(Xe){le.actions.internal.setSubtitle(Xe),Le()}function it(){At()}function ni(){(0,Ud.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function xi(){ol(le.actions.internal.getDebugTextData())}let et=()=>{let Xe=le.actions.internal.getTraceTextData(),Vt=new Blob([...Xe],{type:"application/json"}),uo=window.URL.createObjectURL(Vt);Zs(uo,"vk_player_trace_info","json")};function jt(){It.set(!s())}function Vi(){D(oe,!0)}function Yi(){D(oe,!1)}function Lt(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-ie()}px; overflow: auto;`}let bt=v(()=>he&&p()&&!m()),Dt=v(()=>Ae.features.trafficSaving&&!m()&&y()&&!Ae.features.qualityDetailsSubMenuEnabled),co=v(()=>u().length>0&&!m()),pn=v(()=>!!$()&&!m()),Ji=v(()=>Ae.features.audioLanguages&&w().length>=2&&!m()),Co=v(()=>!m());zt(()=>gt.subscribe(Xe=>{Xe&&!d()&&!r(oe)&&!a()&&Le()}));let j=v(()=>{let Xe=[r(Co)&&"QUALITY_SETTINGS",r(Ji)&&"AUDIO_LANGUAGES",r(pn)&&"PLAYBACK_RATE",r(co)&&"SUBTITLES",r(Dt)&&"TRAFFIC_SAVING_SWITCH",r(bt)&&"DOWNLOAD",Ae.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ae.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Vt=>!!Vt);return O1({items:Xe,context:{qualityDetailsSubMenuEnabled:Ae.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:b(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Je,trafficSavingEnabled:I(),toggleTrafficSaving:ht,currentQuality:M()||Ud.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:k(),isMobile:d(),onDownloadClick:it,onCopyDataClick:xi,onReportProblemClick:ni,onSaveTraceDataClick:et,toggleShowDebugInfo:jt},additionalSettingsMenuItems:V()})}),Zt=v(()=>D1({subMenuId:Qe.current,context:{availablePlaybackRates:b(),selectPlaybackRate:Je,trafficSavingEnabled:I(),toggleTrafficSaving:ht,currentQuality:M()||Ud.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:W()||!1,availableQualities:Y(),highQualityEnabled:F(),toggleHighQuality:at,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Nt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:je,selectQuality:nt,selectSubtitle:Wt}}));var hi=y3();let Ri;var ai=h(hi);{var pt=Xe=>{var Vt=$3();let uo;Vt.__keydown=[_3,Nt];var Xt=h(Vt);{var Un=pi=>{var St=b3();let Bi;var Fo=h(St),fi=h(Fo,!0);g(Fo);var Uo=A(Fo,2);Uo.__click=Le,g(St),E((Oi,To)=>{Bi=J(St,1,"item header svelte-17or3al",null,Bi,Oi),me(fi,To)},[()=>({mobile:d()}),()=>ti("submenu_settings")]),_(pi,St)};B(Xt,pi=>{d()&&pi(Un)})}var eo=A(Xt,2);let Lo;Ti(eo,21,()=>r(j),pi=>pi.id,(pi,St)=>{var Bi=Oe(),Fo=ue(Bi);{var fi=Oi=>{Em(Oi,{get isMobile(){return d()},get id(){return r(St).id},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},get value(){return r(St).value},get valueComponent(){return r(St).valueComponent},onClick:()=>{Ye(r(St).children),D(Re,pe(r(St).id))},get ref(){return Z[r(St).id]},set ref(To){Z[r(St).id]=To}})},Uo=(Oi,To)=>{{var Hi=po=>{Am(po,{get isMobile(){return d()},get id(){return r(St).id},get onClick(){return r(St).onClick},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},closeSettings:Le})},zn=(po,En)=>{{var Vo=Ro=>{Lm(Ro,{get isMobile(){return d()},get id(){return r(St).id},get onClick(){return r(St).onClick},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},get enabled(){return r(St).enabled},get tooltipText(){return r(St).tooltipText},get maxTooltipWidth(){return r(St).maxTooltipWidth}})};B(po,Ro=>{r(St).type==="SWITCH"&&Ro(Vo)},En)}};B(Oi,po=>{r(St).type==="CLICK"?po(Hi):po(zn,!1)},To)}};B(Fo,Oi=>{r(St).type==="OPEN_SUB_MENU"?Oi(fi):Oi(Uo,!1)})}_(pi,Bi)}),g(eo),vt(eo,pi=>Q(pi),()=>Q()),g(Vt),E((pi,St,Bi)=>{uo=J(Vt,1,"settings-menu menu svelte-17or3al",null,uo,pi),Lo=J(eo,1,"items",null,Lo,St),rt(eo,Bi)},[()=>({desktop:!d(),mobile:d(),hidden:!!Qe.current}),()=>({mobile:d()}),Lt]),Tt("mouseenter",Vt,Vi),Tt("mouseleave",Vt,Yi),_(Xe,Vt)};B(ai,Xe=>{n()&&Xe(pt)})}var vi=A(ai,2);Ti(vi,17,()=>r(Zt),Xe=>Xe.id,(Xe,Vt)=>{let uo=v(()=>{var Xt;return(Xt=r(Vt).minWidth)!=null?Xt:137});km(Xe,{get isMobile(){return d()},get playerControlsHeight(){return ie()},get returnFromSubMenu(){return Qe.popSubMenu},get id(){return r(Vt).id},get title(){return r(Vt).title},closeSettingsMenu:Nt,openSubMenuList:Ye,get items(){return r(Vt).items},get minWidth(){return r(uo)},get refMenuItems(){return Z},get listRef(){return re[r(Vt).id]},set listRef(Xt){re[r(Vt).id]=Xt}})}),g(hi),E(Xe=>Ri=J(hi,1,"settings-menu-container svelte-17or3al",null,Ri,Xe),[()=>({mobile:d(),hidden:!n()})]),_(t,hi),z(),o()}st(["keydown","click"]);var w3=t=>t;function H1(t,{delay:e=0,duration:i=400,easing:o=w3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var S3=L('<button class="button svelte-1sbbskl"> </button>'),C3={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 Qm(t,e){K(t,C3);var i=S3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),E(()=>me(o,e.label)),_(t,i)}st(["click"]);var T3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),I3={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 qd(t,e){U(e,!0),
|
|
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 qd(t,e){U(e,!0),K(t,I3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=qt(),{ui:{t:n}}=Ce(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=T3(),d=h(s),l=h(d),p=h(l),m=h(p);Fd(m,{message:a}),g(p);var y=A(p,2);{var u=w=>{let b=v(()=>n("slow_video_notification_button"));Qm(w,{get label(){return r(b)},get onClick(){return e.onSelectAutoQuality}})};B(y,w=>{o||w(u)})}g(l);var $=A(l,2);ra($,{get onClick(){return e.onClose}}),g(d),g(s),Ep(3,d,()=>H1,()=>({duration:i})),_(t,s),z()}var $a="annotation",bu=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",$a),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}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"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}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>'),E3={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.`},Lh=P_;var is=new Map;is.set(el.Interf
|
|
|
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 xa(t,e){U(e,!0),W(t,A3);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:_}=Kt(),w=v(()=>l()&&n()%180?a().height/a().width:1);var y=P3();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":!_}),ft(T,k=>l(k),()=>l()),g(y),E(k=>{C=J(y,1,"video-wrapper svelte-1czns9r",null,C,k),rt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Be(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),$(t,y),z(),o()}at(["contextmenu","mousedown","mouseup","click","dblclick"]);var M3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},L3=L("<div><!></div>"),V3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),R3=L("<div><!></div>"),N3=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),B3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),D3=L("<!> <!> <!>",1),O3=L('<div class="blocked svelte-jtgjmv"></div>'),H3=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),F3={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 jm(t,e){U(e,!0),W(t,F3);let[i,o]=Re(),n=()=>S(ln,"$notificationsToShow$",i),a=()=>S(Di,"$playerPhase",i),s=()=>S(Xt,"$isLoaderVisible",i),d=()=>S(ti,"$adPlaybackState",i),l=()=>S(Vt,"$crashed",i),p=()=>S(Lo,"$isInteractiveTime$",i),m=()=>S(Bt,"$settingsMenuVisible",i),b=()=>S(fi,"$isInteractiveExpectation$",i),u=()=>S(_t,"$controlsVisible",i),_=()=>S(Ki,"$touched",i),w=()=>S(or,"$graphIsOpened$",i),y=()=>S(Wi,"$isFullscreen",i),C=()=>S(Cr,"$autoplayNextEnabled$",i),T=()=>S(mt,"$postrollPassed",i),k=()=>S(ri,"$isEnded$",i),P=()=>S(Bo,"$cursorInside",i),A=()=>S(Nn,"$isControlsAvailable",i),I=()=>S(xn,"$fakeIsPlaying$",i),V=()=>S(un,"$bottomNoSmooth",i),q=()=>S(Io,"$interactiveTimeIndicator",i),Q=()=>S(zo,"$playerSize",i),H=()=>S(di,"$is3DVideo",i),Y=()=>S(wo,"$contextMenuVisible$",i),ne=()=>S(jt,"$playbackState$",i),Z=()=>S(Co,"$hotKeyMapData",i),de=()=>S(rn,"$scrubbingInProgress",i),ce=()=>S($n,"$volumeChangingInProgress",i),Le=()=>S(Oi,"$chromecastConnected$",i),Ae=()=>S(qo,"$controlsTimeoutActive",i),he=()=>S(mo,"$settingsMenuOpenedByKeyboard",i),se=()=>S(Oo,"$contextMenuOpenedByKeyboard$",i),Me=()=>S(Pr,"$contextMenuButtonRef$",i),oe=()=>S(fr,"$contextMenuOpenedByHotKey$",i),B=()=>S(Ar,"$contextMenuLastActiveElem$",i),be=()=>S(Lt,"$isFullscreenOpenedByKeyboard",i),le=()=>S(Je,"$language$",i),Ke=()=>S(St,"$icon3DVideoVisible",i),ee=()=>S(li,"$chromecastDeviceName$",i),me=()=>S(tr,"$currentSubtitle$",i),j=()=>S(So,"$currentSubtitleCaptions$",i),te=()=>S(et,"$position$",i),Oe=()=>S(Zt,"$duration$",i),je=()=>S(pi,"$isLive$",i),$e=()=>S(Xe,"$isPlaying$",i),we=()=>S(Ji,"$contextMenuPosition$",i),Ve=()=>S(To,"$showHotKeyMap",i),Ye=()=>S(G,"$debugPanelVisible",i),ct=()=>S(ir,"$userActionsDisabled$",i),ut=f(e,"videoContainer",15),st=f(e,"adsSlotId",3,void 0),It=f(e,"adsParams",3,void 0),bt=f(e,"adsPreviewParam",3,void 0),Yt=f(e,"adsAutoplayParam",3,void 0),ni=f(e,"duration",3,void 0),Et=f(e,"logoTargetUrl",3,""),Nt=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),qe=f(e,"isOneVideoPlaylist",3,!1),Ge=f(e,"shadowRootContainer",3,void 0),pt=f(e,"outerContainerRef",3,void 0),Ze=f(e,"playerStarted",3,!1),tt=f(e,"fullScreenTarget",3,void 0),it=f(e,"showMiniTimer",3,!1),We=f(e,"showEndScreen",3,!0),ht=f(e,"keyboardControls",15),Ut=e.store.getLogger().createComponentLog("Root component"),Je=e.store.interfaceLanguage$,jt=e.store.state.playbackState$,ti=e.store.ads.playbackState,et=e.store.state.positionWithScrubbing$,Zt=e.store.state.duration$,Di=e.store.playerPhase,Wi=e.store.ui.isFullscreen,Lt=e.store.ui.isFullscreenOpenedByKeyboard,_t=e.store.ui.controlsVisible,Bt=e.store.ui.settingsMenu.visible$,mo=e.store.ui.settingsMenu.openedByBtnKeyboard$,rn=e.store.ui.scrubbingInProgress,$n=e.store.ui.volumeChangingInProgress,wo=e.store.ui.contextMenu.visible$,G=e.store.ui.debugPanelVisible,Xt=e.store.state.isLoaderVisible,ri=e.store.state.isEnded$,Oi=e.store.state.chromecastConnected$,li=e.store.state.chromecastDeviceName$,mt=e.store.ads.postrollPassed,pi=e.store.state.isLive$,Xe=e.store.state.isPlaying$,Vt=e.store.state.crashed$,no=e.store.webApi.annotationsApi,ii=e.store.webApi.pictureInPictureApi,tr=e.store.state.currentSubtitle$,So=e.store.state.currentSubtitleCaptions$,zo=e.store.ui.playerSize,di=e.store.ui.is3DVideo,St=e.store.ui.icon3DVideoVisible,Ti=e.store.state.isInteractive,Lo=e.store.state.isInteractiveTime$,fi=e.store.state.isInteractiveExpectation$,Vo=e.store.state.hasInteractiveBranches,Ki=e.store.ui.touched,Co=e.store.ui.modals.hotKeyMap.data,To=e.store.ui.modals.hotKeyMap.show,Rn=e.store.ui.overlayContainer$,Io=e.store.ui.controls.interactiveTimeIndicator,yn=e.store.state.showInteractiveTimeIndicator,Ji=e.store.ui.contextMenu.position$,Ro=e.store.actions.internal.setQuality,sn=e.store.actions.internal.closeSettingsMenu,Cr=e.store.ui.autoplayNextEnabled$,ir=e.store.ui.userActionsDisabled,Nn=e.store.ui.isControlsAvailable,{fakeIsPlaying$:xn,notifications$:Bn,graphIsOpened$:or}=fo(),ro=X(void 0),No=X(void 0),wn=X(void 0),ot=X(void 0),Sn,Dn,an;Co.set(Oh());let{closeNotification:nr,notificationsToShow$:ln}=Bn,dn=v(()=>!!n().slow_video),cn=()=>nr("slow_video"),eo=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Qi=X(void 0),un=ae(!1),On,qo=ae(!1),pn=ae(),Bo=ae(!1),vo=X(!1),Hi=X(!1),Hn=X(!1),so=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Cn=v(()=>p()&&!m()&&!(r(vo)||r(Hi))&&!(r(Hn)&&!b())),Fn=!0,fn=v(()=>e.uiConfig.features.thumbTimer&&it()&&a()==="video"&&!u()&&!l()&&!Ti&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),Tr=v(()=>a()==="video"&&!w()&&y()),Wo=X(!1),Ir=v(()=>(We()||e.showAutoplayNext&&C())&&!!re()&&!!Ne()&&(e.showAds&&T()||!e.showAds)&&k()&&!l()&&!r(Wo)),Un=v(()=>P()&&!(u()||r(Ir))&&!p()&&A()),zn=X(!1),rr=v(()=>I()!==null),{toggle:kr}=xn,Tn=!1,Jt=null;ii==null||ii.setContext(zl());let sr=()=>{e.autoplay&&!Ti&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ii(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:sr});let Er=()=>{window.clearTimeout(Sn),qo.set(!1)},Do=()=>{window.clearTimeout(Dn),pn.set(null)},Ii=Se=>{Er(),qo.set(!0),Sn=window.setTimeout(()=>qo.set(!1),Se);let Mt=Se-100;On=window.setTimeout(()=>{V()&&un.set(!1)},Mt>0?Mt:Se)},ar=(Se,Mt)=>{Do(),pn.set(Mt),Dn=window.setTimeout(()=>pn.set(null),Se)},vt=di.subscribe(Se=>{St.set(Se),Se&&(window.clearTimeout(an),an=window.setTimeout(()=>St.set(!1),e.uiConfig.controls.hide360IconTimeout))}),zt=async()=>{var Mt,hi,bi,vi;let Se=hs();if(Se){let ke=nd(),$t=nt();Se=ke===$t||ke===Ge()}if(Se){Ii(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ii==null?void 0:ii.remove())}catch(ke){Ut({message:String(ke)})}}Wi.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),y()?(hi=(Mt=e.store.callbacks)==null?void 0:Mt.onFullscreenEnter)==null||hi.call(Mt):(vi=(bi=e.store.callbacks)==null?void 0:bi.onFullscreenExit)==null||vi.call(bi)},Ai=Se=>{let{width:Mt,height:hi}=Se.target;zo.set({width:Mt,height:hi})},ko=()=>{let{width:Se,height:Mt}=r(ro).getBoundingClientRect();zo.set({width:Se,height:Mt})};Wt(()=>{var Mt;return Qc(zt),e.uiConfig.features.annotationsInside&&(no==null||no.init(r(ro))),ia(ii)&&(ii==null||ii.assignPlayerContainer(r(ro)),ii==null||ii.registryExternalEventHandlers({resize:Ai,leavepictureinpicture:ko})),e.interactiveContainer&&((Mt=ut().parentElement)==null||Mt.insertBefore(e.interactiveContainer,ut().nextSibling)),()=>{window.clearTimeout(Sn),window.clearTimeout(On),window.clearTimeout(Dn),window.clearTimeout(an),vt(),ii==null||ii.dispose().catch(hi=>{Ut({message:String(hi)})}),Gc(zt)}});let nt=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!pt()?r(ro):pt(),Mt=Se.getRootNode(),hi=Mt instanceof ShadowRoot?Mt.host:Mt,bi=tt()instanceof HTMLElement&&tt().contains(hi);return e.uiConfig.allowChangingFullscreenTarget&&tt()&&bi?tt():Se},Dt=async()=>{hs()?(await Kc(document),Ut({message:"exit fullscreen"})):(Ut({message:"request fullscreen"}),await Wc(nt()))},mi=()=>{sn(),wo.set(!1)},Fi=Se=>{w()||(Se.preventDefault(),wo.set(!0),Ji.set({left:Se.clientX,top:Se.clientY}))};function go(){Bo.set(!0),Ti||Ii(e.uiConfig.controls.hideTimeoutCursor)}function Si(){Ti||(un.set(!0),Ii(e.uiConfig.controls.hideTimeoutCursor))}function Mi(){Bo.set(!1),D(Hi,!1),D(vo,!1),Tn=!1,e.store.actions.internal.releaseCamera(),Ii(e.uiConfig.controls.hideTimeout)}function gi(Se){return Se?Se.offsetTop+gi(Se.offsetParent):0}function _i(Se){return Se?Se.offsetLeft+_i(Se.offsetParent):0}function Ui(Se){if(q()&&yn){let Mt=Se.currentTarget,hi=gi(Mt),bi=_i(Mt),vi=Se.pageX-bi,ke=Se.pageY-hi,{left:$t,bottom:Gt,right:Ci}=q(),si=Ci-$t;return vi>=$t-si&&ke<=Gt+si}}function qn(Se){if(r(ro)){let Mt=gi(Se.currentTarget),hi=Q().height,bi=Se.pageY-Mt;if(Ui(Se)){D(Hi,!1);return}bi<40?D(Hi,!0):bi>hi-40?D(vo,!0):(D(Hi,!1),m()||D(vo,!1))}}function lr(Se){qn(Se),r(Cn)||Ii(e.uiConfig.controls.hideTimeoutCursor),H()&&Tn&&Jt&&e.store.actions.internal.moveCameraFocusPX(Jt.clientX-Se.clientX,Jt.clientY-Se.clientY,Se.timeStamp-Jt.timeStamp),Jt=Se}let Wn=Se=>{Se.preventDefault(),Se.button===0&&(Tn=!0,e.store.actions.internal.holdCamera()),Ii(e.uiConfig.controls.hideTimeoutCursor)},dr=Se=>{Se.preventDefault(),Se.button===0&&(Jt=Se,Tn=!1,e.store.actions.internal.releaseCamera()),Ii(e.uiConfig.controls.hideTimeoutCursor)},cr=Se=>{Se.preventDefault(),Fn&&(Ut({message:"double click on video"}),Dt(),Ii(e.uiConfig.controls.hideTimeoutCursor))},ur=Se=>{var Mt;if(Se.preventDefault(),Y()||m()){mi();return}if(!(k()&&!Vo)){if(r(rr))return kr();if((Mt=ht())==null||Mt.focus(),!Ze()){e.firstStart(),Ii(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ne()!==Gm.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ii(e.uiConfig.controls.hideTimeoutCursor)}},pr=Se=>{mi(),Ki.set(!0),Ii(e.uiConfig.controls.hideTimeout),Se&&ar(e.uiConfig.controls.hideHotKeyHelpers,Se)},Kn=()=>{var Se,Mt;mi(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(Mt=e.store.callbacks)==null||Mt.onOpenHotKeyMap(Z()):To.update(hi=>!hi)},Qn=()=>{Ki.set(!0)},Oo=e.store.ui.contextMenu.openedByBtnKeyboard$,Pr=e.store.ui.contextMenu.btnRef$,Ho=X(void 0),fr=e.store.ui.contextMenu.openedByHotKey$,Ar=e.store.ui.contextMenu.lastActiveElem$;He(()=>{Rn.set(r(Qi))}),He(()=>{D(Hn,fe(r(so)&&ne()!==Gm.PlaybackState.PLAYING)),r(so)||wt(()=>D(so,!0))}),He(()=>{_t.set((r(Hn)||k()||m()||de()||ce()||Le()||Ae())&&!r(Cn)&&(a()==="video"||a()==="ads")&&!l()&&A())}),He(()=>{!de()&&r(zn)&&!p()&&Ii(e.uiConfig.controls.hideTimeoutCursor),wt(()=>D(zn,fe(de())))}),He(()=>{r(ot),m(),he(),wt(()=>sl(r(ot),m(),he()))}),He(()=>{r(Ho),Y(),se(),wt(()=>sl(r(Ho),Y(),se()))}),He(()=>{let Se=Me();Se&&(Y(),wt(()=>rl(Se,Y(),Oo)))}),He(()=>{r(Ho),Y(),oe(),wt(()=>sl(r(Ho),Y(),oe()))}),He(()=>{let Se=B();Se&&(Y(),wt(()=>zh(Se,Y(),fr)))}),He(()=>{var Se;!be()&&y()&&(wt(()=>Lt.set(!1)),(Se=ht())==null||Se.focus())}),He(()=>{w()&&mi()});let Mr=F("video360");var Lr=H3();Tt("blur",Fs,mi);var to=pe(Lr);to.__mousemove=lr;var In=h(to);let Vr=v(()=>a()==="ads"),lt=v(()=>r(rr)?kr:void 0);ft(uf(In,{toggleFullscreen:Dt,hideContextMenu:mi,showHotKeyHelpers:pr,showKeyMap:Kn,get isAds(){return r(Vr)},get fakePlayButtonHandler(){return r(lt)},get nextButtonActive(){return O()},get prevButtonActive(){return _e()},children:(Se,Mt)=>{var hi=D3(),bi=pe(hi);xa(bi,{get hideCursor(){return r(Un)},onClick:ur,onContextMenu:Fi,onMouseDown:Wn,onMouseUp:dr,onDblClick:cr,get videoContainer(){return ut()},set videoContainer($t){ut($t)}});var vi=M(bi,2);Qs(vi,()=>"slot",!1,($t,Gt)=>{Ie($t,null,{name:ya})});var ke=M(vi,2);Ks(ke,le,$t=>{var Gt=B3(),Ci=pe(Gt);let si=v(()=>a()!=="thumb"||l()||Ti&&e.autoplay);_a(Ci,{get hidden(){return r(si)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var qr=M(Ci,2);Qm(qr,{});var zi=M(qr,2);{var Gn=Fe=>{let ai=v(()=>{var Qo;return(Qo=e.live)==null?void 0:Qo.startTime});Od(Fe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ai)}})};R(zi,Fe=>{a()==="LiveWaitingStart"&&Fe(Gn)})}var ks=M(zi,2);{var jn=Fe=>{ba(Fe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(ks,Fe=>{a()==="LiveWaitingRecover"&&Fe(jn)})}var Ca=M(ks,2);{var Sl=Fe=>{ba(Fe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ca,Fe=>{a()==="LiveWaitingRecord"&&Fe(Sl)})}var Ta=M(Ca,2);{var Ia=Fe=>{var ai=L3();let Qo;var Ms=h(ai);rd(Ms,{get adsSlotId(){return st()},get adsParams(){return It()},get adsPreviewParam(){return bt()},get adsAutoplayParam(){return Yt()},get duration(){return ni()}}),g(ai),E(ho=>Qo=J(ai,1,"ads-container svelte-jtgjmv",null,Qo,ho),[()=>({hidden:a()!=="ads"})]),$(Fe,ai)};R(Ta,Fe=>{e.showAds&&Ze()&&Fe(Ia)})}var ka=M(Ta,2);{var Cl=Fe=>{let ai=v(()=>!We()&&e.showAutoplayNext&&C());lf(Fe,{get title(){return re()},get thumb(){return Ne()},get isHide(){return r(ai)},clickCloseIcon:()=>D(Wo,!0)})};R(ka,Fe=>{r(Ir)&&re()&&Ne()&&Fe(Cl)})}var Es=M(ka,2);{var Ea=Fe=>{let ai=v(()=>!u());$m(Fe,{get title(){return e.title},get isHidden(){return r(ai)}})};R(Es,Fe=>{r(Tr)&&Fe(Ea)})}var dt=M(Es,2);{var xt=Fe=>{let ai=v(()=>a()==="video"&&u());Nd(Fe,{get isShifted(){return r(ai)}})};R(dt,Fe=>{H()&&Fe(xt)})}var io=M(dt,2);{var Ko=Fe=>{var ai=V3(),Qo=h(ai);od(Qo,{"aria-label":Mr}),g(ai),$(Fe,ai)};R(io,Fe=>{Ke()&&Fe(Ko)})}var oo=M(io,2);{var ci=Fe=>{Bd(Fe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ee()}})};R(oo,Fe=>{Le()&&Fe(ci)})}var Vi=M(oo,2);{var Ps=Fe=>{ha(Fe,{get shifted(){return u()},get captions(){return j()},get position(){return te()},get playerSize(){return Q()}})};R(Vi,Fe=>{me().value!=="off"&&Fe(Ps)})}var Pa=M(Vi,2);{var Vu=Fe=>{var ai=R3();ai.__contextmenu=Fi,ai.__click=[M3,Y,wo,m,Bt,mi];var Qo=h(ai);Dd(Qo,{}),g(ai),$(Fe,ai)};R(Pa,Fe=>{l()&&Fe(Vu)})}var ec=M(Pa,2);{var Ru=Fe=>{let ai=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Qo=v(()=>a()==="ads"),Ms=v(()=>e.canRewindLive&&Oe()!==0);Rd(Fe,{get bottomHidden(){return r(ai)},get bottomNoSmooth(){return V()},get showControls(){return u()},get isAds(){return r(Qo)},get canRewindLive(){return r(Ms)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Et()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Nt()},get nextButtonActive(){return O()},get prevButtonActive(){return _e()},get isOneVideoPlaylist(){return qe()},customFullscreenSupported:Fn,toggleFullscreen:Dt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(No)},set playerControlsWrapperRef(ho){D(No,fe(ho))},get playerControlsRef(){return r(wn)},set playerControlsRef(ho){D(wn,fe(ho))}})};R(ec,Fe=>{Ze()&&Fe(Ru)})}var tc=M(ec,2);{var Nu=Fe=>{var ai=N3(),Qo=h(ai);let Ms=v(()=>{var ho;return(ho=r(wn))==null?void 0:ho.clientHeight});zd(Qo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Ms)},returnFocus:()=>{var ho;return(ho=ht())==null?void 0:ho.focus()},get ref(){return r(ot)},set ref(ho){D(ot,fe(ho))}}),g(ai),$(Fe,ai)};R(tc,Fe=>{!Le()&&a()!=="ads"&&Fe(Nu)})}var ic=M(tc,2);let Bu=v(()=>!r(fn));ld(ic,{get isLive(){return je()},get isHidden(){return r(Bu)},get isPlaying(){return $e()},get position(){return te()},get duration(){return Oe()}});var As=M(ic,2);gm(As,{data:pn});var oc=M(As,2);sf(oc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Fe;return(Fe=ht())==null?void 0:Fe.focus()},get visible(){return Y()},get playerContainerRef(){return r(ro)},get controlsContainerRef(){return r(No)},get position(){return we()},get menuElementRef(){return r(Ho)},set menuElementRef(Fe){D(Ho,fe(Fe))}});var Tl=M(oc,2);{var nc=Fe=>{qd(Fe,{onClose:cn,onSelectAutoQuality:()=>{Ro("auto"),cn()}})};R(Tl,Fe=>{r(dn)&&Fe(nc)})}var rc=M(Tl,2);{var sc=Fe=>{aa(Fe,{})};R(rc,Fe=>{r(eo)&&Fe(sc)})}var Aa=M(rc,2);{var ac=Fe=>{mf(Fe,{})};R(Aa,Fe=>{Ve()&&Fe(ac)})}var Du=M(Aa,2);{var lc=Fe=>{ud(Fe,{})};R(Du,Fe=>{Ye()&&Fe(lc)})}$($t,Gt)}),$(Se,hi)},$$slots:{default:!0}}),Se=>ht(Se),()=>ht());var qt=M(In,2);ft(qt,Se=>D(Qi,Se),()=>r(Qi)),g(to),ft(to,Se=>D(ro,Se),()=>r(ro));var Li=M(to,2);{var Eo=Se=>{var Mt=O3();$(Se,Mt)};R(Li,Se=>{ct()&&Se(Eo)})}Tt("mouseenter",to,go),Tt("mouseleave",to,Mi),Tt("click",to,Qn,!0),Tt("focusin",to,Si,!0),$(t,Lr),z(),o()}at(["mousemove","contextmenu","click"]);var Is=require("@vkontakte/videoplayer-core/es2018"),Q1=require("@vkontakte/videoplayer-shared/es2018");var U3=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),z3=L("<div><!></div>"),q3={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 Gm(t,e){U(e,!0),K(t,E3);let[i,o]=Ne(),n=()=>S(s,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Ce(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:m,playbackStatusNextVideoAnimationDuration:y}}=qt(),u=0,$=X(null),w=X(!1);Fe(()=>{D($,pe(n()?Cr:ns))}),Fe(()=>{D($,pe(a()?Ss:null))}),Fe(()=>{if(p)return u=window.setTimeout(()=>{u=0,a()&&r($)===Ss&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D($,null)},r($)!==Ss?m:y),()=>{u&&(window.clearTimeout(u),u=0)}}),Fe(()=>{n()&&!r(w)&&(D(w,!0),D($,null))});var b=Oe(),C=ue(b);{var T=I=>{var M=Oe(),P=ue(M);Ws(P,()=>r($),k=>{var V=k3(),W=h(V),Y=h(W);let F=v(()=>a()==="prev");Ii(Y,()=>r($),(Q,ie)=>{ie(Q,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),g(W),g(V),E(()=>rt(W,`animation-duration: ${r($)!==Ss?m:y}ms`)),_(k,V)}),_(I,M)};B(C,I=>{r($)&&p&&I(T)})}_(t,b),z(),o()}var P3=L('<div><div data-testid="video-container"></div></div>'),A3={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 ya(t,e){U(e,!0),K(t,A3);let[i,o]=Ne(),n=()=>S(m,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),s=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),l=f(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:m,playerSize:y},state:{isPlaying$:u}}=Ce(),{isSmoothVideoRotate:$}=qt(),w=v(()=>l()&&n()%180?a().height/a().width:1);var b=P3();let C;b.__contextmenu=function(...I){var M;(M=e.onContextMenu)==null||M.apply(this,I)},b.__mousedown=function(...I){var M;(M=e.onMouseDown)==null||M.apply(this,I)},b.__mouseup=function(...I){var M;(M=e.onMouseUp)==null||M.apply(this,I)},b.__click=function(...I){var M;(M=e.onClick)==null||M.apply(this,I)},b.__dblclick=function(...I){var M;(M=e.onDblClick)==null||M.apply(this,I)};var T=h(b);J(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!$}),vt(T,I=>l(I),()=>l()),g(b),E(I=>{C=J(b,1,"video-wrapper svelte-1czns9r",null,C,I),rt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Be(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),_(t,b),z(),o()}st(["contextmenu","mousedown","mouseup","click","dblclick"]);var M3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},L3=L("<div><!></div>"),V3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),R3=L("<div><!></div>"),B3=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),N3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),D3=L("<!> <!> <!>",1),O3=L('<div class="blocked svelte-jtgjmv"></div>'),H3=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),F3={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 jm(t,e){U(e,!0),K(t,F3);let[i,o]=Ne(),n=()=>S(mn,"$notificationsToShow$",i),a=()=>S(Vi,"$playerPhase",i),s=()=>S(Zt,"$isLoaderVisible",i),d=()=>S(xi,"$adPlaybackState",i),l=()=>S(Vt,"$crashed",i),p=()=>S(Fo,"$isInteractiveTime$",i),m=()=>S(Dt,"$settingsMenuVisible",i),y=()=>S(fi,"$isInteractiveExpectation$",i),u=()=>S(bt,"$controlsVisible",i),$=()=>S(Oi,"$touched",i),w=()=>S(ft,"$graphIsOpened$",i),b=()=>S(Yi,"$isFullscreen",i),C=()=>S(Ir,"$autoplayNextEnabled$",i),T=()=>S(pt,"$postrollPassed",i),I=()=>S(hi,"$isEnded$",i),M=()=>S(Ln,"$cursorInside",i),P=()=>S(An,"$isControlsAvailable",i),k=()=>S(fn,"$fakeIsPlaying$",i),V=()=>S(vn,"$bottomNoSmooth",i),W=()=>S(po,"$interactiveTimeIndicator",i),Y=()=>S(Lo,"$playerSize",i),F=()=>S(pi,"$is3DVideo",i),Q=()=>S(Co,"$contextMenuVisible$",i),ie=()=>S(ni,"$playbackState$",i),Z=()=>S(To,"$hotKeyMapData",i),re=()=>S(pn,"$scrubbingInProgress",i),le=()=>S(Ji,"$volumeChangingInProgress",i),Ae=()=>S(Ri,"$chromecastConnected$",i),Me=()=>S(Ko,"$controlsTimeoutActive",i),ge=()=>S(co,"$settingsMenuOpenedByKeyboard",i),se=()=>S(Zo,"$contextMenuOpenedByKeyboard$",i),Ee=()=>S(Lr,"$contextMenuButtonRef$",i),ne=()=>S(vr,"$contextMenuOpenedByHotKey$",i),R=()=>S(zr,"$contextMenuLastActiveElem$",i),xe=()=>S(Lt,"$isFullscreenOpenedByKeyboard",i),_e=()=>S(it,"$language$",i),ze=()=>S(St,"$icon3DVideoVisible",i),H=()=>S(ai,"$chromecastDeviceName$",i),ae=()=>S(Un,"$currentSubtitle$",i),he=()=>S(eo,"$currentSubtitleCaptions$",i),ee=()=>S(et,"$position$",i),De=()=>S(jt,"$duration$",i),Ze=()=>S(vi,"$isLive$",i),we=()=>S(Xe,"$isPlaying$",i),Ve=()=>S(Vo,"$contextMenuPosition$",i),Ie=()=>S(Hi,"$showHotKeyMap",i),Ue=()=>S(j,"$debugPanelVisible",i),ct=()=>S(dr,"$userActionsDisabled$",i),ut=f(e,"videoContainer",15),ot=f(e,"adsSlotId",3,void 0),It=f(e,"adsParams",3,void 0),gt=f(e,"adsPreviewParam",3,void 0),Qt=f(e,"adsAutoplayParam",3,void 0),ti=f(e,"duration",3,void 0),At=f(e,"logoTargetUrl",3,""),Nt=f(e,"showNextPrevButtons",3,!1),O=f(e,"nextButtonActive",3,!1),be=f(e,"prevButtonActive",3,!1),oe=f(e,"endScreenVideoTitle",3,void 0),Re=f(e,"endScreenVideoThumb",3,void 0),Qe=f(e,"isOneVideoPlaylist",3,!1),Ye=f(e,"shadowRootContainer",3,void 0),Le=f(e,"outerContainerRef",3,void 0),nt=f(e,"playerStarted",3,!1),je=f(e,"fullScreenTarget",3,void 0),ht=f(e,"showMiniTimer",3,!1),at=f(e,"showEndScreen",3,!0),Je=f(e,"keyboardControls",15),Wt=e.store.getLogger().createComponentLog("Root component"),it=e.store.interfaceLanguage$,ni=e.store.state.playbackState$,xi=e.store.ads.playbackState,et=e.store.state.positionWithScrubbing$,jt=e.store.state.duration$,Vi=e.store.playerPhase,Yi=e.store.ui.isFullscreen,Lt=e.store.ui.isFullscreenOpenedByKeyboard,bt=e.store.ui.controlsVisible,Dt=e.store.ui.settingsMenu.visible$,co=e.store.ui.settingsMenu.openedByBtnKeyboard$,pn=e.store.ui.scrubbingInProgress,Ji=e.store.ui.volumeChangingInProgress,Co=e.store.ui.contextMenu.visible$,j=e.store.ui.debugPanelVisible,Zt=e.store.state.isLoaderVisible,hi=e.store.state.isEnded$,Ri=e.store.state.chromecastConnected$,ai=e.store.state.chromecastDeviceName$,pt=e.store.ads.postrollPassed,vi=e.store.state.isLive$,Xe=e.store.state.isPlaying$,Vt=e.store.state.crashed$,uo=e.store.webApi.annotationsApi,Xt=e.store.webApi.pictureInPictureApi,Un=e.store.state.currentSubtitle$,eo=e.store.state.currentSubtitleCaptions$,Lo=e.store.ui.playerSize,pi=e.store.ui.is3DVideo,St=e.store.ui.icon3DVideoVisible,Bi=e.store.state.isInteractive,Fo=e.store.state.isInteractiveTime$,fi=e.store.state.isInteractiveExpectation$,Uo=e.store.state.hasInteractiveBranches,Oi=e.store.ui.touched,To=e.store.ui.modals.hotKeyMap.data,Hi=e.store.ui.modals.hotKeyMap.show,zn=e.store.ui.overlayContainer$,po=e.store.ui.controls.interactiveTimeIndicator,En=e.store.state.showInteractiveTimeIndicator,Vo=e.store.ui.contextMenu.position$,Ro=e.store.actions.internal.setQuality,Pn=e.store.actions.internal.closeSettingsMenu,Ir=e.store.ui.autoplayNextEnabled$,dr=e.store.ui.userActionsDisabled,An=e.store.ui.isControlsAvailable,{fakeIsPlaying$:fn,notifications$:qn,graphIsOpened$:ft}=ao(),fo=X(void 0),zo=X(void 0),Mn=X(void 0),Bo=X(void 0),qo,Wn,No;To.set(Hh());let{closeNotification:Kn,notificationsToShow$:mn}=qn,Qn=v(()=>!!n().slow_video),Wo=()=>Kn("slow_video"),mo=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Ci=X(void 0),vn=ce(!1),gn,Ko=ce(!1),vo=ce(),Ln=ce(!1),Io=X(!1),Fi=X(!1),cr=X(!1),Do=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Gn=v(()=>p()&&!m()&&!(r(Io)||r(Fi))&&!(r(cr)&&!y())),Vn=!0,Yn=v(()=>e.uiConfig.features.thumbTimer&&ht()&&a()==="video"&&!u()&&!l()&&!Bi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),ur=v(()=>a()==="video"&&!w()&&b()),hn=X(!1),kr=v(()=>(at()||e.showAutoplayNext&&C())&&!!oe()&&!!Re()&&(e.showAds&&T()||!e.showAds)&&I()&&!l()&&!r(hn)),pr=v(()=>M()&&!(u()||r(kr))&&!p()&&P()),jn=X(!1),Er=v(()=>k()!==null),{toggle:Pr}=fn,_n=!1,Yt=null;Xt==null||Xt.setContext(zl());let mt=()=>{e.autoplay&&!Bi&&e.uiConfig.controls.showOnStartupAtAutoplay&&ri(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:mt});let Ot=()=>{window.clearTimeout(qo),Ko.set(!1)},li=()=>{window.clearTimeout(Wn),vo.set(null)},ri=fe=>{Ot(),Ko.set(!0),qo=window.setTimeout(()=>Ko.set(!1),fe);let xt=fe-100;gn=window.setTimeout(()=>{V()&&vn.set(!1)},xt>0?xt:fe)},go=(fe,xt)=>{li(),vo.set(xt),Wn=window.setTimeout(()=>vo.set(null),fe)},ko=pi.subscribe(fe=>{St.set(fe),fe&&(window.clearTimeout(No),No=window.setTimeout(()=>St.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Eo=async()=>{var xt,di,mi,Si;let fe=gs();if(fe){let He=nd(),Rt=tt();fe=He===Rt||He===Ye()}if(fe){ri(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Xt==null?void 0:Xt.remove())}catch(He){Wt({message:String(He)})}}Yi.set(fe),e.store.getAdmanWrapper().setFullscreen(fe),b()?(di=(xt=e.store.callbacks)==null?void 0:xt.onFullscreenEnter)==null||di.call(xt):(Si=(mi=e.store.callbacks)==null?void 0:mi.onFullscreenExit)==null||Si.call(mi)},Qo=fe=>{let{width:xt,height:di}=fe.target;Lo.set({width:xt,height:di})},Go=()=>{let{width:fe,height:xt}=r(fo).getBoundingClientRect();Lo.set({width:fe,height:xt})};zt(()=>{var xt;return Qc(Eo),e.uiConfig.features.annotationsInside&&(uo==null||uo.init(r(fo))),ta(Xt)&&(Xt==null||Xt.assignPlayerContainer(r(fo)),Xt==null||Xt.registryExternalEventHandlers({resize:Qo,leavepictureinpicture:Go})),e.interactiveContainer&&((xt=ut().parentElement)==null||xt.insertBefore(e.interactiveContainer,ut().nextSibling)),()=>{window.clearTimeout(qo),window.clearTimeout(gn),window.clearTimeout(Wn),window.clearTimeout(No),ko(),Xt==null||Xt.dispose().catch(di=>{Wt({message:String(di)})}),Gc(Eo)}});let tt=()=>{let fe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Le()?r(fo):Le(),xt=fe.getRootNode(),di=xt instanceof ShadowRoot?xt.host:xt,mi=je()instanceof HTMLElement&&je().contains(di);return e.uiConfig.allowChangingFullscreenTarget&&je()&&mi?je():fe},Mt=async()=>{gs()?(await Kc(document),Wt({message:"exit fullscreen"})):(Wt({message:"request fullscreen"}),await Wc(tt()))},gi=()=>{Pn(),Co.set(!1)},Ui=fe=>{w()||(fe.preventDefault(),Co.set(!0),Vo.set({left:fe.clientX,top:fe.clientY}))};function ji(){Ln.set(!0),Bi||ri(e.uiConfig.controls.hideTimeoutCursor)}function bn(){Bi||(vn.set(!0),ri(e.uiConfig.controls.hideTimeoutCursor))}function $n(){Ln.set(!1),D(Fi,!1),D(Io,!1),_n=!1,e.store.actions.internal.releaseCamera(),ri(e.uiConfig.controls.hideTimeout)}function zi(fe){return fe?fe.offsetTop+zi(fe.offsetParent):0}function Ei(fe){return fe?fe.offsetLeft+Ei(fe.offsetParent):0}function Yo(fe){if(W()&&En){let xt=fe.currentTarget,di=zi(xt),mi=Ei(xt),Si=fe.pageX-mi,He=fe.pageY-di,{left:Rt,bottom:oi,right:to}=W(),_o=to-Rt;return Si>=Rt-_o&&He<=oi+_o}}function Zn(fe){if(r(fo)){let xt=zi(fe.currentTarget),di=Y().height,mi=fe.pageY-xt;if(Yo(fe)){D(Fi,!1);return}mi<40?D(Fi,!0):mi>di-40?D(Io,!0):(D(Fi,!1),m()||D(Io,!1))}}function Ar(fe){Zn(fe),r(Gn)||ri(e.uiConfig.controls.hideTimeoutCursor),F()&&_n&&Yt&&e.store.actions.internal.moveCameraFocusPX(Yt.clientX-fe.clientX,Yt.clientY-fe.clientY,fe.timeStamp-Yt.timeStamp),Yt=fe}let jo=fe=>{fe.preventDefault(),fe.button===0&&(_n=!0,e.store.actions.internal.holdCamera()),ri(e.uiConfig.controls.hideTimeoutCursor)},fr=fe=>{fe.preventDefault(),fe.button===0&&(Yt=fe,_n=!1,e.store.actions.internal.releaseCamera()),ri(e.uiConfig.controls.hideTimeoutCursor)},Xn=fe=>{fe.preventDefault(),Vn&&(Wt({message:"double click on video"}),Mt(),ri(e.uiConfig.controls.hideTimeoutCursor))},mr=fe=>{var xt;if(fe.preventDefault(),Q()||m()){gi();return}if(!(I()&&!Uo)){if(r(Er))return Pr();if((xt=Je())==null||xt.focus(),!nt()){e.firstStart(),ri(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ie()!==Ym.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),ri(e.uiConfig.controls.hideTimeoutCursor)}},Jn=fe=>{gi(),Oi.set(!0),ri(e.uiConfig.controls.hideTimeout),fe&&go(e.uiConfig.controls.hideHotKeyHelpers,fe)},Mr=()=>{var fe,xt;gi(),(fe=e.store.callbacks)!=null&&fe.onOpenHotKeyMap?(xt=e.store.callbacks)==null||xt.onOpenHotKeyMap(Z()):Hi.update(di=>!di)},er=()=>{Oi.set(!0)},Zo=e.store.ui.contextMenu.openedByBtnKeyboard$,Lr=e.store.ui.contextMenu.btnRef$,Xo=X(void 0),vr=e.store.ui.contextMenu.openedByHotKey$,zr=e.store.ui.contextMenu.lastActiveElem$;Fe(()=>{zn.set(r(Ci))}),Fe(()=>{D(cr,pe(r(Do)&&ie()!==Ym.PlaybackState.PLAYING)),r(Do)||wt(()=>D(Do,!0))}),Fe(()=>{bt.set((r(cr)||I()||m()||re()||le()||Ae()||Me())&&!r(Gn)&&(a()==="video"||a()==="ads")&&!l()&&P())}),Fe(()=>{!re()&&r(jn)&&!p()&&ri(e.uiConfig.controls.hideTimeoutCursor),wt(()=>D(jn,pe(re())))}),Fe(()=>{r(Bo),m(),ge(),wt(()=>rl(r(Bo),m(),ge()))}),Fe(()=>{r(Xo),Q(),se(),wt(()=>rl(r(Xo),Q(),se()))}),Fe(()=>{let fe=Ee();fe&&(Q(),wt(()=>nl(fe,Q(),Zo)))}),Fe(()=>{r(Xo),Q(),ne(),wt(()=>rl(r(Xo),Q(),ne()))}),Fe(()=>{let fe=R();fe&&(Q(),wt(()=>qh(fe,Q(),vr)))}),Fe(()=>{var fe;!xe()&&b()&&(wt(()=>Lt.set(!1)),(fe=Je())==null||fe.focus())}),Fe(()=>{w()&&gi()});let lt=q("video360");var Gt=H3();Tt("blur",Hs,gi);var ii=ue(Gt);ii.__mousemove=Ar;var ho=h(ii);let yn=v(()=>a()==="ads"),tr=v(()=>r(Er)?Pr:void 0);vt(pf(ho,{toggleFullscreen:Mt,hideContextMenu:gi,showHotKeyHelpers:Jn,showKeyMap:Mr,get isAds(){return r(yn)},get fakePlayButtonHandler(){return r(tr)},get nextButtonActive(){return O()},get prevButtonActive(){return be()},children:(fe,xt)=>{var di=D3(),mi=ue(di);ya(mi,{get hideCursor(){return r(pr)},onClick:mr,onContextMenu:Ui,onMouseDown:jo,onMouseUp:fr,onDblClick:Xn,get videoContainer(){return ut()},set videoContainer(Rt){ut(Rt)}});var Si=A(mi,2);Ks(Si,()=>"slot",!1,(Rt,oi)=>{Te(Rt,null,{name:$a})});var He=A(Si,2);Ws(He,_e,Rt=>{var oi=N3(),to=ue(oi);let _o=v(()=>a()!=="thumb"||l()||Bi&&e.autoplay);ha(to,{get hidden(){return r(_o)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var qr=A(to,2);Gm(qr,{});var Ni=A(qr,2);{var ir=qe=>{let si=v(()=>{var en;return(en=e.live)==null?void 0:en.startTime});Od(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(si)}})};B(Ni,qe=>{a()==="LiveWaitingStart"&&qe(ir)})}var Is=A(Ni,2);{var or=qe=>{_a(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(Is,qe=>{a()==="LiveWaitingRecover"&&qe(or)})}var Sa=A(Is,2);{var Sl=qe=>{_a(qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(Sa,qe=>{a()==="LiveWaitingRecord"&&qe(Sl)})}var Ca=A(Sa,2);{var Ta=qe=>{var si=L3();let en;var As=h(si);rd(As,{get adsSlotId(){return ot()},get adsParams(){return It()},get adsPreviewParam(){return gt()},get adsAutoplayParam(){return Qt()},get duration(){return ti()}}),g(si),E(bo=>en=J(si,1,"ads-container svelte-jtgjmv",null,en,bo),[()=>({hidden:a()!=="ads"})]),_(qe,si)};B(Ca,qe=>{e.showAds&&nt()&&qe(Ta)})}var Ia=A(Ca,2);{var Cl=qe=>{let si=v(()=>!at()&&e.showAutoplayNext&&C());df(qe,{get title(){return oe()},get thumb(){return Re()},get isHide(){return r(si)},clickCloseIcon:()=>D(hn,!0)})};B(Ia,qe=>{r(kr)&&oe()&&Re()&&qe(Cl)})}var ks=A(Ia,2);{var ka=qe=>{let si=v(()=>!u());ym(qe,{get title(){return e.title},get isHidden(){return r(si)}})};B(ks,qe=>{r(ur)&&qe(ka)})}var dt=A(ks,2);{var yt=qe=>{let si=v(()=>a()==="video"&&u());Bd(qe,{get isShifted(){return r(si)}})};B(dt,qe=>{F()&&qe(yt)})}var Zi=A(dt,2);{var Jo=qe=>{var si=V3(),en=h(si);od(en,{"aria-label":lt}),g(si),_(qe,si)};B(Zi,qe=>{ze()&&qe(Jo)})}var Xi=A(Zi,2);{var ci=qe=>{Nd(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return H()}})};B(Xi,qe=>{Ae()&&qe(ci)})}var Pi=A(Xi,2);{var Es=qe=>{ga(qe,{get shifted(){return u()},get captions(){return he()},get position(){return ee()},get playerSize(){return Y()}})};B(Pi,qe=>{ae().value!=="off"&&qe(Es)})}var Ea=A(Pi,2);{var Ru=qe=>{var si=R3();si.__contextmenu=Ui,si.__click=[M3,Q,Co,m,Dt,gi];var en=h(si);Dd(en,{}),g(si),_(qe,si)};B(Ea,qe=>{l()&&qe(Ru)})}var ec=A(Ea,2);{var Bu=qe=>{let si=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),en=v(()=>a()==="ads"),As=v(()=>e.canRewindLive&&De()!==0);Rd(qe,{get bottomHidden(){return r(si)},get bottomNoSmooth(){return V()},get showControls(){return u()},get isAds(){return r(en)},get canRewindLive(){return r(As)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return At()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Nt()},get nextButtonActive(){return O()},get prevButtonActive(){return be()},get isOneVideoPlaylist(){return Qe()},customFullscreenSupported:Vn,toggleFullscreen:Mt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(zo)},set playerControlsWrapperRef(bo){D(zo,pe(bo))},get playerControlsRef(){return r(Mn)},set playerControlsRef(bo){D(Mn,pe(bo))}})};B(ec,qe=>{nt()&&qe(Bu)})}var tc=A(ec,2);{var Nu=qe=>{var si=B3(),en=h(si);let As=v(()=>{var bo;return(bo=r(Mn))==null?void 0:bo.clientHeight});zd(en,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(As)},returnFocus:()=>{var bo;return(bo=Je())==null?void 0:bo.focus()},get ref(){return r(Bo)},set ref(bo){D(Bo,pe(bo))}}),g(si),_(qe,si)};B(tc,qe=>{!Ae()&&a()!=="ads"&&qe(Nu)})}var ic=A(tc,2);let Du=v(()=>!r(Yn));ld(ic,{get isLive(){return Ze()},get isHidden(){return r(Du)},get isPlaying(){return we()},get position(){return ee()},get duration(){return De()}});var Ps=A(ic,2);hm(Ps,{data:vo});var oc=A(Ps,2);af(oc,{get supportLink(){return e.supportLink},returnFocus:()=>{var qe;return(qe=Je())==null?void 0:qe.focus()},get visible(){return Q()},get playerContainerRef(){return r(fo)},get controlsContainerRef(){return r(zo)},get position(){return Ve()},get menuElementRef(){return r(Xo)},set menuElementRef(qe){D(Xo,pe(qe))}});var Tl=A(oc,2);{var nc=qe=>{qd(qe,{onClose:Wo,onSelectAutoQuality:()=>{Ro("auto"),Wo()}})};B(Tl,qe=>{r(Qn)&&qe(nc)})}var rc=A(Tl,2);{var sc=qe=>{sa(qe,{})};B(rc,qe=>{r(mo)&&qe(sc)})}var Pa=A(rc,2);{var ac=qe=>{vf(qe,{})};B(Pa,qe=>{Ie()&&qe(ac)})}var Ou=A(Pa,2);{var lc=qe=>{ud(qe,{})};B(Ou,qe=>{Ue()&&qe(lc)})}_(Rt,oi)}),_(fe,di)},$$slots:{default:!0}}),fe=>Je(fe),()=>Je());var xn=A(ho,2);vt(xn,fe=>D(Ci,fe),()=>r(Ci)),g(ii),vt(ii,fe=>D(fo,fe),()=>r(fo));var Rn=A(ii,2);{var wi=fe=>{var xt=O3();_(fe,xt)};B(Rn,fe=>{ct()&&fe(wi)})}Tt("mouseenter",ii,ji),Tt("mouseleave",ii,$n),Tt("click",ii,er,!0),Tt("focusin",ii,bn,!0),_(t,Gt),z(),o()}st(["mousemove","contextmenu","click"]);var Ts=require("@vkontakte/videoplayer-core/es2018"),Q1=require("@vkontakte/videoplayer-shared/es2018");var U3=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),z3=L("<div><!></div>"),q3={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,7 @@ Try switching the\xA0quality to\xA0Auto.`},Lh=P_;var is=new Map;is.set(el.Interf
|
|
|
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 bu(t,e){U(e,!0),W(t,q3);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)};_n(()=>{window.clearTimeout(n)});var l=z3();l.__click=d;var p=h(l);{var m=b=>{var u=U3(),_=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()}at(["click"]);var W3=(t,e,i)=>{e(!1),i()},K3=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),Q3={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 Ym(t,e){U(e,!0),W(t,Q3);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(),_()};Wt(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=De(),T=pe(C);{var k=P=>{var A=K3(),I=M(pe(A),2),V=h(I),q=h(V),Q=h(q,!0);g(q);var H=M(q,2);sa(H,{onClick:y}),g(V);var Y=M(V,2);Y.__click=[W3,p,b];var ne=h(Y),Z=h(ne),de=h(Z);let ce;var Le=M(de,2);{var Ae=oe=>{pd(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),rt(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()}at(["click"]);var U1=require("@vkontakte/videoplayer-core/es2018");var z1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Wt(()=>{U1.clientChecker.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))}),_n(()=>{i==null||i(),clearTimeout(o)})};var q1=require("@vkontakte/videoplayer-core/es2018");var $u=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var W1=require("@vkontakte/videoplayer-core/es2018"),K1=({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=()=>W1.clientChecker.device.isIOS&&Ce(s)===q1.VideoFormat.DASH_LIVE_CMAF,b=()=>{l==null||l(),l=null},u=_=>{if(b(),!m()||!_)return;let w=p();if(!w)return;let y=new $u(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)}};Wt(()=>i.subscribe(u)),_n(b)};var G3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},j3=L("<!> <!>",1),Y3=L("<div><!></div>"),Z3=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),X3=L("<div><!></div>"),J3=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),ex=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),tx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),ix={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 Zm(t,e){var Ai,ko;U(e,!0),W(t,ix);let[i,o]=Re(),n=()=>S(ht,"$playerPhase",i),a=()=>S(_t,"$isLoaderVisible",i),s=()=>S(tt,"$adPlaybackState",i),d=()=>S(mt,"$crashed",i),l=()=>S(ot,"$notificationsToShow$",i),p=()=>S(Ze,"$playbackState$",i),m=()=>S(qe,"$graphIsOpened$",i),b=()=>S(ti,"$interactiveHideMobileControls",i),u=()=>S(Bt,"$isEnded$",i),_=()=>S(Lo,"$isInteractiveExpectation$",i),w=()=>S(Je,"$controlsVisible",i),y=()=>S(Ki,"$touched",i),C=()=>S(To,"$autoplayNextEnabled$",i),T=()=>S($n,"$postrollPassed",i),k=()=>S(an,"$bottomNoSmooth",i),P=()=>S(Vt,"$videoSize",i),A=()=>S(So,"$playerSize",i),I=()=>S(Ut,"$isFullscreen",i),V=()=>S(it,"$position$",i),q=()=>S(We,"$duration$",i),Q=()=>S(Rn,"$loadedMetadata",i),H=()=>S(et,"$settingsMenuVisible",i),Y=()=>S(Di,"$scrubbingInProgress",i),ne=()=>S(Wi,"$volumeChangingInProgress",i),Z=()=>S(mo,"$chromecastConnected$",i),de=()=>S(jt,"$isControlsAvailable",i),ce=()=>S(Ti,"$isInteractiveTime$",i),Le=()=>S(Oi,"$isActiveLive",i),Ae=()=>S(Zt,"$settingsMenuOpenedByKeyboard",i),he=()=>S(pt,"$language$",i),se=()=>S(Vo,"$disabledControls$",i),Me=()=>S(zo,"$is3DVideo",i),oe=()=>S(di,"$icon3DVideoVisible",i),B=()=>S(rn,"$chromecastDeviceName$",i),be=()=>S(no,"$currentSubtitle$",i),le=()=>S(ii,"$currentSubtitleCaptions$",i),Ke=()=>S(tr,"$realDuration$",i),ee=()=>S(Xt,"$isLive$",i),me=()=>S(ri,"$isPlaying$",i),j=()=>S(Lt,"$debugPanelVisible",i),te=f(e,"videoContainer",15),Oe=f(e,"adsSlotId",3,void 0),je=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),Ye=f(e,"logoTargetUrl",3,""),ct=f(e,"showNextPrevButtons",3,!1),ut=f(e,"nextButtonActive",3,!1),st=f(e,"prevButtonActive",3,!1),It=f(e,"endScreenVideoTitle",3,void 0),bt=f(e,"endScreenVideoThumb",3,void 0),Yt=f(e,"isOneVideoPlaylist",3,!1),ni=f(e,"shadowRootContainer",3,void 0),Et=f(e,"outerContainerRef",3,void 0),Nt=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$:qe}=fo(),Ge=e.store.getLogger().createComponentLog("Root component"),pt=e.store.interfaceLanguage$,Ze=e.store.state.playbackState$,tt=e.store.ads.playbackState,it=e.store.state.positionWithScrubbing$,We=e.store.state.duration$,ht=e.store.playerPhase,Ut=e.store.ui.isFullscreen,Je=e.store.ui.controlsVisible,jt=e.store.ui.isControlsAvailable,ti=e.store.ui.interactiveHideMobileControls,et=e.store.ui.settingsMenu.visible$,Zt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Di=e.store.ui.scrubbingInProgress,Wi=e.store.ui.volumeChangingInProgress,Lt=e.store.ui.debugPanelVisible,_t=e.store.state.isLoaderVisible,Bt=e.store.state.isEnded$,mo=e.store.state.chromecastConnected$,rn=e.store.state.chromecastDeviceName$,$n=e.store.ads.postrollPassed,wo=e.store.ui.mobileUnmuteButtonExpanded,G=e.store.ui.mobileUnmuteButtonVisible,Xt=e.store.state.isLive$,ri=e.store.state.isPlaying$,Oi=e.store.state.isActiveLive$,li=e.store.state.isRewindableLive$,mt=e.store.state.crashed$,pi=e.store.webApi.annotationsApi,Xe=e.store.webApi.pictureInPictureApi,Vt=e.store.state.videoSize$,no=e.store.state.currentSubtitle$,ii=e.store.state.currentSubtitleCaptions$,tr=e.store.state.duration$,So=e.store.ui.playerSize,zo=e.store.ui.is3DVideo,di=e.store.ui.icon3DVideoVisible,St=e.store.state.isInteractive,Ti=e.store.state.isInteractiveTime$,Lo=e.store.state.isInteractiveExpectation$,fi=e.store.state.hasInteractiveBranches,Vo=e.store.ui.controls.disabledControls$,Ki=e.store.ui.touched,Co=e.store.ui.overlayContainer$,To=e.store.ui.autoplayNextEnabled$,Rn=e.store.state.loadedMetadata$,Io=e.store.actions.internal.closeSettingsMenu,yn=(Ai=e.store.callbacks)==null?void 0:Ai.onDisabledPlayPrevChapterClick,Ji=(ko=e.store.callbacks)==null?void 0:ko.onDisabledSeekToInteractiveClick,Ro=e.store.actions.internal.setQuality,sn=X(void 0),Cr=X(void 0),ir=X(void 0),Nn=X(void 0),xn,Bn,or,ro=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),No=X(void 0),{closeNotification:wn,notificationsToShow$:ot}=Ne,Sn=v(()=>!!l().slow_video),Dn=()=>wn("slow_video"),an=ae(!1),nr,ln=X(!1),dn=v(()=>p()!==Is.PlaybackState.PLAYING),cn=X(!1),eo=v(()=>m()||b()||!r(ln)&&(u()&&!!fi||r(dn)&&_())),Qi=X(!0),un=v(()=>e.uiConfig.features.thumbTimer&&Nt()&&n()==="video"&&!w()&&!d()&&!St&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),On=X(!1),qo=v(()=>(re()||e.showAutoplayNext&&C())&&!!It()&&!!bt()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(On)),pn=X(!1);Xe==null||Xe.setContext(zl());let Bo=nt=>{clearTimeout(Bn),nt&&(G.set(!0),wo.set(!0),Bn=setTimeout(()=>{wo.set(!1)},e.uiConfig.controls.collapseMobileUnmute),St||Hi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Bo});let vo=()=>{clearTimeout(xn),D(ln,!1),b()&&ti.set(!1)},Hi=nt=>{vo(),D(ln,!0),xn=setTimeout(()=>D(ln,!1),nt);let Dt=nt-100;nr=setTimeout(()=>{k()&&an.set(!1)},Dt>0?Dt:nt)},Hn=zo.subscribe(nt=>{di.set(nt),nt&&(clearTimeout(or),or=setTimeout(()=>di.set(!1),e.uiConfig.controls.hide360IconTimeout))}),so=async(nt=hs())=>{var Dt,mi,Fi,go,Si,Mi;if(nt&&!Is.clientChecker.device.isIOS){let gi=nd(),_i=Wo(),Ui=Is.clientChecker.browser.isSamsungBrowser&&gi===ni();nt=gi===_i||Ui}if(nt){Hi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Xe==null?void 0:Xe.remove())}catch(gi){Ge({message:String(gi)})}try{let gi=(Dt=P())!=null&&Dt.width&&((mi=P())!=null&&mi.height)?P():A();await Dh(gi)}catch(gi){Ge({message:String(gi)})}}Ut.set(nt),e.store.getAdmanWrapper().setFullscreen(nt),I()?(go=(Fi=e.store.callbacks)==null?void 0:Fi.onFullscreenEnter)==null||go.call(Fi):(Mi=(Si=e.store.callbacks)==null?void 0:Si.onFullscreenExit)==null||Mi.call(Si)},Cn=nt=>{let Dt=nt;So.set({width:Dt.target.width,height:Dt.target.height})};Wt(()=>{var nt;return Qc(so),e.uiConfig.features.annotationsInside&&(pi==null||pi.init(r(sn))),ia(Xe)&&(Xe==null||Xe.assignPlayerContainer(r(sn)),Xe==null||Xe.registryExternalEventHandlers({resize:Cn})),D(Qi,!Is.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((nt=te().parentElement)==null||nt.insertBefore(e.interactiveContainer,te().nextSibling)),()=>{clearTimeout(xn),clearTimeout(nr),clearTimeout(Bn),clearTimeout(or),Hn(),Xe==null||Xe.dispose().catch(Dt=>{Ge({message:String(Dt)})}),Gc(so)}});let Fn=X(!0),fn=X(!0),Tr=nt=>{let Dt=V()+(nt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Dt<0?(D(Fn,!1),Dt=0):Dt>=q()&&(D(fn,!1),Dt=q()),D(cn,!0),e.seekTime(Dt)},Wo=()=>{let nt=Is.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Et()?r(sn):Et(),Dt=nt.getRootNode(),mi=Dt instanceof ShadowRoot?Dt.host:Dt,Fi=O()instanceof HTMLElement&&O().contains(mi);return e.uiConfig.allowChangingFullscreenTarget&&O()&&Fi?O():nt},Ir=async()=>{try{if(hs())await Kc(document),Ge({message:"exit fullscreen"});else{if(Ge({message:"request fullscreen"}),Is.clientChecker.device.isIOS&&!Q())return;await Wc(Wo())}}catch(nt){Ge({message:String(nt)})}},Un=()=>{Io()},zn=nt=>{if(nt.preventDefault(),H()){Un();return}if(!_e()){e.firstStart(),Hi(e.uiConfig.controls.hideTimeoutCursor);return}D(cn,!1),w()?vo():Hi(e.uiConfig.controls.hideTimeoutMobile)},rr=()=>{Ki.set(!0)},kr=()=>{St||(an.set(!0),Hi(e.uiConfig.controls.hideTimeoutCursor))},Tn=nt=>{yn&&(yn(nt),Hi(e.uiConfig.controls.hideTimeoutMobile))},Jt=nt=>{Ji&&(Ji(nt),Hi(e.uiConfig.controls.hideTimeoutMobile))};He(()=>{Co.set(r(No))}),He(()=>{Je.set((r(dn)||H()||Y()||ne()||Z()||!r(qo)&&(u()||r(ln)&&!r(cn)))&&!r(eo)&&n()==="video"&&!d()&&de())}),He(()=>{!Y()&&r(pn)&&!ce()&&Hi(e.uiConfig.controls.hideTimeoutMobile),D(pn,fe(Y()))}),He(()=>{D(Fn,V()>0),D(fn,fe(!Le()&&V()<q()))}),He(()=>{sl(r(Nn),H(),Ae())});let sr=F("aria_label_video_player"),Er=F("video360");z1({fullScreenChangeHandler:so,getFullscreenTarget:Wo}),K1({store:e.store,getFullscreenTarget:Wo});var Do=tx();Tt("blur",Fs,Un),Be(Do,"aria-label",sr);var Ii=h(Do);xa(Ii,{onClick:zn,get videoContainer(){return te()},set videoContainer(nt){te(nt)}});var ar=M(Ii,2);Qs(ar,()=>"slot",!1,(nt,Dt)=>{Ie(nt,null,{name:ya})});var vt=M(ar,2);Ks(vt,he,nt=>{var Dt=ex(),mi=pe(Dt);let Fi=v(()=>n()!=="thumb"||d()||St&&e.autoplay);_a(mi,{get hidden(){return r(Fi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var go=M(mi,2);{var Si=ke=>{var $t=j3(),Gt=pe($t);{var Ci=zi=>{let Gn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);bu(zi,{side:"left",get seekStep(){return r(Gn)},handleSingleFirstClick:zn,handleSecondClick:()=>Tr("backward")})};R(Gt,zi=>{r(Fn)&&zi(Ci)})}var si=M(Gt,2);{var qr=zi=>{let Gn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);bu(zi,{side:"right",get seekStep(){return r(Gn)},handleSingleFirstClick:zn,handleSecondClick:()=>Tr("forward")})};R(si,zi=>{r(fn)&&zi(qr)})}$(ke,$t)};R(go,ke=>{e.canRewindLive&&li&&!se().has("TIMELINE")&&ke(Si)})}var Mi=M(go,2);{var gi=ke=>{let $t=v(()=>{var Gt;return(Gt=e.live)==null?void 0:Gt.startTime});Od(ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return r($t)}})};R(Mi,ke=>{n()==="LiveWaitingStart"&&ke(gi)})}var _i=M(Mi,2);{var Ui=ke=>{ba(ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(_i,ke=>{n()==="LiveWaitingRecover"&&ke(Ui)})}var qn=M(_i,2);{var lr=ke=>{ba(ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(qn,ke=>{n()==="LiveWaitingRecord"&&ke(lr)})}var Wn=M(qn,2);{var dr=ke=>{var $t=Y3();let Gt;var Ci=h($t);rd(Ci,{get adsSlotId(){return Oe()},get adsParams(){return je()},get adsPreviewParam(){return $e()},get adsAutoplayParam(){return we()},get duration(){return Ve()}}),g($t),E(si=>Gt=J($t,1,"ads-container svelte-dtyj47",null,Gt,si),[()=>({hidden:n()!=="ads"})]),$(ke,$t)};R(Wn,ke=>{e.showAds&&_e()&&ke(dr)})}var cr=M(Wn,2);{var ur=ke=>{let $t=v(()=>!re()&&e.showAutoplayNext&&C());Ym(ke,{get title(){return It()},get thumb(){return bt()},get isHide(){return r($t)},clickCloseIcon:()=>D(On,!0)})};R(cr,ke=>{r(qo)&&It()&&bt()&&ke(ur)})}var pr=M(cr,2);{var Kn=ke=>{Nd(ke,{})};R(pr,ke=>{Me()&&ke(Kn)})}var Qn=M(pr,2);{var Oo=ke=>{var $t=Z3(),Gt=h($t);od(Gt,{"aria-label":Er}),g($t),$(ke,$t)};R(Qn,ke=>{oe()&&ke(Oo)})}var Pr=M(Qn,2);{var Ho=ke=>{Bd(ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return B()}})};R(Pr,ke=>{Z()&&ke(Ho)})}var fr=M(Pr,2);{var Ar=ke=>{ha(ke,{get shifted(){return w()},get captions(){return le()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};R(fr,ke=>{be().value!=="off"&&ke(Ar)})}var Mr=M(fr,2);{var Lr=ke=>{var $t=X3();$t.__click=[G3,H,et,Un];var Gt=h($t);Dd(Gt,{}),g($t),$(ke,$t)};R(Mr,ke=>{d()&&ke(Lr)})}var to=M(Mr,2);{var In=ke=>{let $t=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Gt=v(()=>n()==="ads"),Ci=v(()=>e.canRewindLive&&Ke()!==0);Rd(ke,{get bottomHidden(){return r($t)},get showControls(){return w()},get bottomNoSmooth(){return k()},get isAds(){return r(Gt)},get canRewindLive(){return r(Ci)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ye()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ct()},get nextButtonActive(){return ut()},get prevButtonActive(){return st()},get isOneVideoPlaylist(){return Yt()},get customFullscreenSupported(){return r(Qi)},get endScreenShown(){return r(qo)},toggleFullscreen:Ir,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Tn,onDisabledSeekToInteractiveClick:Jt,get playerControlsWrapperRef(){return r(Cr)},set playerControlsWrapperRef(si){D(Cr,fe(si))},get playerControlsRef(){return r(ir)},set playerControlsRef(si){D(ir,fe(si))}})};R(to,ke=>{_e()&&ke(In)})}var Vr=M(to,2);{var lt=ke=>{var $t=J3(),Gt=h($t);zd(Gt,{get supportLink(){return e.supportLink},returnFocus:Q1.noop,get ref(){return r(Nn)},set ref(Ci){D(Nn,fe(Ci))}}),g($t),$(ke,$t)};R(Vr,ke=>{H()&&ke(lt)})}var qt=M(Vr,2);let Li=v(()=>!r(un));ld(qt,{get isLive(){return ee()},get isHidden(){return r(Li)},get isPlaying(){return me()},get position(){return V()},get duration(){return q()}});var Eo=M(qt,2);{var Se=ke=>{aa(ke,{})};R(Eo,ke=>{r(ro)&&ke(Se)})}var Mt=M(Eo,2);{var hi=ke=>{ud(ke,{})};R(Mt,ke=>{j()&&ke(hi)})}var bi=M(Mt,2);{var vi=ke=>{qd(ke,{onClose:Dn,onSelectAutoQuality:()=>{Ro("auto"),Dn()}})};R(bi,ke=>{r(Sn)&&ke(vi)})}$(nt,Dt)});var zt=M(vt,2);ft(zt,nt=>D(No,nt),()=>r(No)),g(Do),ft(Do,nt=>D(sn,nt),()=>r(sn)),Tt("click",Do,rr,!0),Tt("focusin",Do,kr,!0),$(t,Do),z(),o()}at(["click"]);function yu(t){let e="";return Vn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Vn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Vn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Vn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Vn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Vn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Vn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Vn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Vn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Vn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Vn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Vn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Vn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Vn(t){return typeof t=="string"&&!t.includes(";")}var G1=require("@vkontakte/videoplayer-shared/es2018");var ox=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),nx={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 Xm(t,e){U(e,!0),W(t,nx);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=(0,G1.debounceFn)(fl,260);He(()=>{n(),Me(de(),Z,Ae,r(Le))});let oe=v(()=>a()?on(s()-d()):on(isFinite(s())?s():y()));var B=ox(),be=h(B);xa(be,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ve){C(Ve)}});var le=M(be,2);Qs(le,()=>"slot",!1,(Ve,Ye)=>{Ie(Ve,null,{name:ya})});var Ke=M(le,2);let ee=v(()=>l()!=="thumb"||p());_a(Ke,{get hidden(){return r(ee)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var me=M(Ke,2);{var j=Ve=>{ha(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);ad(Oe,{get isLive(){return _()},get isPlaying(){return a()},get time(){return r(oe)}}),g(te);var je=M(te,2);let $e;var we=h(je);ua(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(je),g(B),E(Ve=>$e=J(je,1,"timeline svelte-1qfjf44",null,$e,Ve),[()=>({visible:r(Le)})]),Tt("mouseenter",B,he),Tt("mouseleave",B,se),$(t,B),z(),o()}var rx=L("<div><!></div>"),sx={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 $u(t,e){U(e,!0),K(t,q3);let i=f(e,"seekStep",3,0),o=X(!1),n=0,a=0,s=X(pe(i())),d=y=>{y.stopPropagation(),a+=1,D(s,i()*(a-1)),a===1?e.handleSingleFirstClick(y):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};In(()=>{window.clearTimeout(n)});var l=z3();l.__click=d;var p=h(l);{var m=y=>{var u=U3(),$=ue(u),w=A($,2),b=h(w),C=h(b),T=A(C,2),I=A(T,2);g(b);var M=A(b,2),P=h(M,!0);g(M),g(w),E(k=>{var V,W,Y,F;J($,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),J(C,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),J(I,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),me(P,k)},[()=>q("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),_(y,u)};B(p,y=>{r(o)&&y(m)})}g(l),E(()=>{var y;return J(l,1,`double-click-area ${(y=e.side)!=null?y:""}`,"svelte-nhq2ld")}),_(t,l),z()}st(["click"]);var W3=(t,e,i)=>{e(!1),i()},K3=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),Q3={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 Zm(t,e){U(e,!0),K(t,Q3);let[i,o]=Ne(),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,y=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},b=()=>{e.clickCloseIcon(),$()};zt(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Oe(),T=ue(C);{var I=M=>{var P=K3(),k=A(ue(P),2),V=h(k),W=h(V),Y=h(W,!0);g(W);var F=A(W,2);ra(F,{onClick:b}),g(V);var Q=A(V,2);Q.__click=[W3,p,y];var ie=h(Q),Z=h(ie),re=h(Z);let le;var Ae=A(re,2);{var Me=ne=>{pd(ne,{get isRunning(){return a()},onTimerEnded:w})};B(Ae,ne=>{n()&&ne(Me)})}g(Z),g(ie);var ge=A(ie,2),se=h(ge),Ee=h(se,!0);g(se),g(ge),g(Q),g(k),E((ne,R)=>{me(Y,ne),rt(Z,`background-image: url('${e.thumb}')`),le=J(re,1,"thumb-overlay svelte-1qdxi6t",null,le,R),me(Ee,e.title)},[()=>n()?q("end_screen_next_video"):q("end_screen_recommended_video"),()=>({withOpacity:n()})]),_(M,P)};B(T,M=>{e.isHide||M(I)})}_(t,C),z(),o()}st(["click"]);var U1=require("@vkontakte/videoplayer-core/es2018");var z1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;zt(()=>{U1.clientChecker.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))}),In(()=>{i==null||i(),clearTimeout(o)})};var q1=require("@vkontakte/videoplayer-core/es2018");var yu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var W1=require("@vkontakte/videoplayer-core/es2018"),K1=({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=()=>W1.clientChecker.device.isIOS&&Se(s)===q1.VideoFormat.DASH_LIVE_CMAF,y=()=>{l==null||l(),l=null},u=$=>{if(y(),!m()||!$)return;let w=p();if(!w)return;let b=new yu(w),C=Se(d),T=Se(a),I=Se(n);for(let k of C)T.some(W=>W.value===k.id)&&b.attach(k,I.value===k.id);let M=d.subscribe(k=>{for(let V of k)b.updateSrc(V)}),P=()=>{let k=b.getCurrentShowingId();o(Se(a).find(V=>V.value===k))};w.textTracks.addEventListener("change",P),l=()=>{M(),b.detachAll(),w.textTracks.removeEventListener("change",P)}};zt(()=>i.subscribe(u)),In(y)};var G3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Y3=L("<!> <!>",1),j3=L("<div><!></div>"),Z3=L('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),X3=L("<div><!></div>"),J3=L('<div class="settings-mobile svelte-7yl31d"><!></div>'),ex=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),tx=L('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),ix={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Xm(t,e){var Qo,Go;U(e,!0),K(t,ix);let[i,o]=Ne(),n=()=>S(Je,"$playerPhase",i),a=()=>S(bt,"$isLoaderVisible",i),s=()=>S(je,"$adPlaybackState",i),d=()=>S(pt,"$crashed",i),l=()=>S(Bo,"$notificationsToShow$",i),p=()=>S(nt,"$playbackState$",i),m=()=>S(Qe,"$graphIsOpened$",i),y=()=>S(xi,"$interactiveHideMobileControls",i),u=()=>S(Dt,"$isEnded$",i),$=()=>S(Fo,"$isInteractiveExpectation$",i),w=()=>S(it,"$controlsVisible",i),b=()=>S(Oi,"$touched",i),C=()=>S(Hi,"$autoplayNextEnabled$",i),T=()=>S(Ji,"$postrollPassed",i),I=()=>S(No,"$bottomNoSmooth",i),M=()=>S(Vt,"$videoSize",i),P=()=>S(eo,"$playerSize",i),k=()=>S(Wt,"$isFullscreen",i),V=()=>S(ht,"$position$",i),W=()=>S(at,"$duration$",i),Y=()=>S(zn,"$loadedMetadata",i),F=()=>S(et,"$settingsMenuVisible",i),Q=()=>S(Vi,"$scrubbingInProgress",i),ie=()=>S(Yi,"$volumeChangingInProgress",i),Z=()=>S(co,"$chromecastConnected$",i),re=()=>S(ni,"$isControlsAvailable",i),le=()=>S(Bi,"$isInteractiveTime$",i),Ae=()=>S(Ri,"$isActiveLive",i),Me=()=>S(jt,"$settingsMenuOpenedByKeyboard",i),ge=()=>S(Le,"$language$",i),se=()=>S(Uo,"$disabledControls$",i),Ee=()=>S(Lo,"$is3DVideo",i),ne=()=>S(pi,"$icon3DVideoVisible",i),R=()=>S(pn,"$chromecastDeviceName$",i),xe=()=>S(uo,"$currentSubtitle$",i),_e=()=>S(Xt,"$currentSubtitleCaptions$",i),ze=()=>S(Un,"$realDuration$",i),H=()=>S(Zt,"$isLive$",i),ae=()=>S(hi,"$isPlaying$",i),he=()=>S(Lt,"$debugPanelVisible",i),ee=f(e,"videoContainer",15),De=f(e,"adsSlotId",3,void 0),Ze=f(e,"adsParams",3,void 0),we=f(e,"adsPreviewParam",3,void 0),Ve=f(e,"adsAutoplayParam",3,void 0),Ie=f(e,"duration",3,void 0),Ue=f(e,"logoTargetUrl",3,""),ct=f(e,"showNextPrevButtons",3,!1),ut=f(e,"nextButtonActive",3,!1),ot=f(e,"prevButtonActive",3,!1),It=f(e,"endScreenVideoTitle",3,void 0),gt=f(e,"endScreenVideoThumb",3,void 0),Qt=f(e,"isOneVideoPlaylist",3,!1),ti=f(e,"shadowRootContainer",3,void 0),At=f(e,"outerContainerRef",3,void 0),Nt=f(e,"showMiniTimer",3,!1),O=f(e,"fullScreenTarget",3,void 0),be=f(e,"playerStarted",3,!1),oe=f(e,"showEndScreen",3,!0),{notifications$:Re,graphIsOpened$:Qe}=ao(),Ye=e.store.getLogger().createComponentLog("Root component"),Le=e.store.interfaceLanguage$,nt=e.store.state.playbackState$,je=e.store.ads.playbackState,ht=e.store.state.positionWithScrubbing$,at=e.store.state.duration$,Je=e.store.playerPhase,Wt=e.store.ui.isFullscreen,it=e.store.ui.controlsVisible,ni=e.store.ui.isControlsAvailable,xi=e.store.ui.interactiveHideMobileControls,et=e.store.ui.settingsMenu.visible$,jt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Vi=e.store.ui.scrubbingInProgress,Yi=e.store.ui.volumeChangingInProgress,Lt=e.store.ui.debugPanelVisible,bt=e.store.state.isLoaderVisible,Dt=e.store.state.isEnded$,co=e.store.state.chromecastConnected$,pn=e.store.state.chromecastDeviceName$,Ji=e.store.ads.postrollPassed,Co=e.store.ui.mobileUnmuteButtonExpanded,j=e.store.ui.mobileUnmuteButtonVisible,Zt=e.store.state.isLive$,hi=e.store.state.isPlaying$,Ri=e.store.state.isActiveLive$,ai=e.store.state.isRewindableLive$,pt=e.store.state.crashed$,vi=e.store.webApi.annotationsApi,Xe=e.store.webApi.pictureInPictureApi,Vt=e.store.state.videoSize$,uo=e.store.state.currentSubtitle$,Xt=e.store.state.currentSubtitleCaptions$,Un=e.store.state.duration$,eo=e.store.ui.playerSize,Lo=e.store.ui.is3DVideo,pi=e.store.ui.icon3DVideoVisible,St=e.store.state.isInteractive,Bi=e.store.state.isInteractiveTime$,Fo=e.store.state.isInteractiveExpectation$,fi=e.store.state.hasInteractiveBranches,Uo=e.store.ui.controls.disabledControls$,Oi=e.store.ui.touched,To=e.store.ui.overlayContainer$,Hi=e.store.ui.autoplayNextEnabled$,zn=e.store.state.loadedMetadata$,po=e.store.actions.internal.closeSettingsMenu,En=(Qo=e.store.callbacks)==null?void 0:Qo.onDisabledPlayPrevChapterClick,Vo=(Go=e.store.callbacks)==null?void 0:Go.onDisabledSeekToInteractiveClick,Ro=e.store.actions.internal.setQuality,Pn=X(void 0),Ir=X(void 0),dr=X(void 0),An=X(void 0),fn,qn,ft,fo=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),zo=X(void 0),{closeNotification:Mn,notificationsToShow$:Bo}=Re,qo=v(()=>!!l().slow_video),Wn=()=>Mn("slow_video"),No=ce(!1),Kn,mn=X(!1),Qn=v(()=>p()!==Ts.PlaybackState.PLAYING),Wo=X(!1),mo=v(()=>m()||y()||!r(mn)&&(u()&&!!fi||r(Qn)&&$())),Ci=X(!0),vn=v(()=>e.uiConfig.features.thumbTimer&&Nt()&&n()==="video"&&!w()&&!d()&&!St&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),gn=X(!1),Ko=v(()=>(oe()||e.showAutoplayNext&&C())&&!!It()&&!!gt()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(gn)),vo=X(!1);Xe==null||Xe.setContext(zl());let Ln=tt=>{clearTimeout(qn),tt&&(j.set(!0),Co.set(!0),qn=setTimeout(()=>{Co.set(!1)},e.uiConfig.controls.collapseMobileUnmute),St||Fi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Ln});let Io=()=>{clearTimeout(fn),D(mn,!1),y()&&xi.set(!1)},Fi=tt=>{Io(),D(mn,!0),fn=setTimeout(()=>D(mn,!1),tt);let Mt=tt-100;Kn=setTimeout(()=>{I()&&No.set(!1)},Mt>0?Mt:tt)},cr=Lo.subscribe(tt=>{pi.set(tt),tt&&(clearTimeout(ft),ft=setTimeout(()=>pi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Do=async(tt=gs())=>{var Mt,gi,Ui,ji,bn,$n;if(tt&&!Ts.clientChecker.device.isIOS){let zi=nd(),Ei=hn(),Yo=Ts.clientChecker.browser.isSamsungBrowser&&zi===ti();tt=zi===Ei||Yo}if(tt){Fi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Xe==null?void 0:Xe.remove())}catch(zi){Ye({message:String(zi)})}try{let zi=(Mt=M())!=null&&Mt.width&&((gi=M())!=null&&gi.height)?M():P();await Oh(zi)}catch(zi){Ye({message:String(zi)})}}Wt.set(tt),e.store.getAdmanWrapper().setFullscreen(tt),k()?(ji=(Ui=e.store.callbacks)==null?void 0:Ui.onFullscreenEnter)==null||ji.call(Ui):($n=(bn=e.store.callbacks)==null?void 0:bn.onFullscreenExit)==null||$n.call(bn)},Gn=tt=>{let Mt=tt;eo.set({width:Mt.target.width,height:Mt.target.height})};zt(()=>{var tt;return Qc(Do),e.uiConfig.features.annotationsInside&&(vi==null||vi.init(r(Pn))),ta(Xe)&&(Xe==null||Xe.assignPlayerContainer(r(Pn)),Xe==null||Xe.registryExternalEventHandlers({resize:Gn})),D(Ci,!Ts.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((tt=ee().parentElement)==null||tt.insertBefore(e.interactiveContainer,ee().nextSibling)),()=>{clearTimeout(fn),clearTimeout(Kn),clearTimeout(qn),clearTimeout(ft),cr(),Xe==null||Xe.dispose().catch(Mt=>{Ye({message:String(Mt)})}),Gc(Do)}});let Vn=X(!0),Yn=X(!0),ur=tt=>{let Mt=V()+(tt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Mt<0?(D(Vn,!1),Mt=0):Mt>=W()&&(D(Yn,!1),Mt=W()),D(Wo,!0),e.seekTime(Mt)},hn=()=>{let tt=Ts.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!At()?r(Pn):At(),Mt=tt.getRootNode(),gi=Mt instanceof ShadowRoot?Mt.host:Mt,Ui=O()instanceof HTMLElement&&O().contains(gi);return e.uiConfig.allowChangingFullscreenTarget&&O()&&Ui?O():tt},kr=async()=>{try{if(gs())await Kc(document),Ye({message:"exit fullscreen"});else{if(Ye({message:"request fullscreen"}),Ts.clientChecker.device.isIOS&&!Y())return;await Wc(hn())}}catch(tt){Ye({message:String(tt)})}},pr=()=>{po()},jn=tt=>{if(tt.preventDefault(),F()){pr();return}if(!be()){e.firstStart(),Fi(e.uiConfig.controls.hideTimeoutCursor);return}D(Wo,!1),w()?Io():Fi(e.uiConfig.controls.hideTimeoutMobile)},Er=()=>{Oi.set(!0)},Pr=()=>{St||(No.set(!0),Fi(e.uiConfig.controls.hideTimeoutCursor))},_n=tt=>{En&&(En(tt),Fi(e.uiConfig.controls.hideTimeoutMobile))},Yt=tt=>{Vo&&(Vo(tt),Fi(e.uiConfig.controls.hideTimeoutMobile))};Fe(()=>{To.set(r(zo))}),Fe(()=>{it.set((r(Qn)||F()||Q()||ie()||Z()||!r(Ko)&&(u()||r(mn)&&!r(Wo)))&&!r(mo)&&n()==="video"&&!d()&&re())}),Fe(()=>{!Q()&&r(vo)&&!le()&&Fi(e.uiConfig.controls.hideTimeoutMobile),D(vo,pe(Q()))}),Fe(()=>{D(Vn,V()>0),D(Yn,pe(!Ae()&&V()<W()))}),Fe(()=>{rl(r(An),F(),Me())});let mt=q("aria_label_video_player"),Ot=q("video360");z1({fullScreenChangeHandler:Do,getFullscreenTarget:hn}),K1({store:e.store,getFullscreenTarget:hn});var li=tx();Tt("blur",Hs,pr),Be(li,"aria-label",mt);var ri=h(li);ya(ri,{onClick:jn,get videoContainer(){return ee()},set videoContainer(tt){ee(tt)}});var go=A(ri,2);Ks(go,()=>"slot",!1,(tt,Mt)=>{Te(tt,null,{name:$a})});var ko=A(go,2);Ws(ko,ge,tt=>{var Mt=ex(),gi=ue(Mt);let Ui=v(()=>n()!=="thumb"||d()||St&&e.autoplay);ha(gi,{get hidden(){return r(Ui)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var ji=A(gi,2);{var bn=He=>{var Rt=Y3(),oi=ue(Rt);{var to=Ni=>{let ir=v(()=>e.uiConfig.controls.seekStepMobile/1e3);$u(Ni,{side:"left",get seekStep(){return r(ir)},handleSingleFirstClick:jn,handleSecondClick:()=>ur("backward")})};B(oi,Ni=>{r(Vn)&&Ni(to)})}var _o=A(oi,2);{var qr=Ni=>{let ir=v(()=>e.uiConfig.controls.seekStepMobile/1e3);$u(Ni,{side:"right",get seekStep(){return r(ir)},handleSingleFirstClick:jn,handleSecondClick:()=>ur("forward")})};B(_o,Ni=>{r(Yn)&&Ni(qr)})}_(He,Rt)};B(ji,He=>{e.canRewindLive&&ai&&!se().has("TIMELINE")&&He(bn)})}var $n=A(ji,2);{var zi=He=>{let Rt=v(()=>{var oi;return(oi=e.live)==null?void 0:oi.startTime});Od(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Rt)}})};B($n,He=>{n()==="LiveWaitingStart"&&He(zi)})}var Ei=A($n,2);{var Yo=He=>{_a(He,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(Ei,He=>{n()==="LiveWaitingRecover"&&He(Yo)})}var Zn=A(Ei,2);{var Ar=He=>{_a(He,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(Zn,He=>{n()==="LiveWaitingRecord"&&He(Ar)})}var jo=A(Zn,2);{var fr=He=>{var Rt=j3();let oi;var to=h(Rt);rd(to,{get adsSlotId(){return De()},get adsParams(){return Ze()},get adsPreviewParam(){return we()},get adsAutoplayParam(){return Ve()},get duration(){return Ie()}}),g(Rt),E(_o=>oi=J(Rt,1,"ads-container svelte-7yl31d",null,oi,_o),[()=>({hidden:n()!=="ads"})]),_(He,Rt)};B(jo,He=>{e.showAds&&be()&&He(fr)})}var Xn=A(jo,2);{var mr=He=>{let Rt=v(()=>!oe()&&e.showAutoplayNext&&C());Zm(He,{get title(){return It()},get thumb(){return gt()},get isHide(){return r(Rt)},clickCloseIcon:()=>D(gn,!0)})};B(Xn,He=>{r(Ko)&&It()&>()&&He(mr)})}var Jn=A(Xn,2);{var Mr=He=>{Bd(He,{})};B(Jn,He=>{Ee()&&He(Mr)})}var er=A(Jn,2);{var Zo=He=>{var Rt=Z3(),oi=h(Rt);od(oi,{"aria-label":Ot}),g(Rt),_(He,Rt)};B(er,He=>{ne()&&He(Zo)})}var Lr=A(er,2);{var Xo=He=>{Nd(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return R()}})};B(Lr,He=>{Z()&&He(Xo)})}var vr=A(Lr,2);{var zr=He=>{ga(He,{get shifted(){return w()},get captions(){return _e()},get position(){return V()},get playerSize(){return P()},isMobile:!0})};B(vr,He=>{xe().value!=="off"&&He(zr)})}var lt=A(vr,2);{var Gt=He=>{var Rt=X3();Rt.__click=[G3,F,et,pr];var oi=h(Rt);Dd(oi,{}),g(Rt),_(He,Rt)};B(lt,He=>{d()&&He(Gt)})}var ii=A(lt,2);{var ho=He=>{let Rt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),oi=v(()=>n()==="ads"),to=v(()=>e.canRewindLive&&ze()!==0);Rd(He,{get bottomHidden(){return r(Rt)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return r(oi)},get canRewindLive(){return r(to)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ue()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ct()},get nextButtonActive(){return ut()},get prevButtonActive(){return ot()},get isOneVideoPlaylist(){return Qt()},get customFullscreenSupported(){return r(Ci)},get endScreenShown(){return r(Ko)},toggleFullscreen:kr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:_n,onDisabledSeekToInteractiveClick:Yt,get playerControlsWrapperRef(){return r(Ir)},set playerControlsWrapperRef(_o){D(Ir,pe(_o))},get playerControlsRef(){return r(dr)},set playerControlsRef(_o){D(dr,pe(_o))}})};B(ii,He=>{be()&&He(ho)})}var yn=A(ii,2);{var tr=He=>{var Rt=J3(),oi=h(Rt);zd(oi,{get supportLink(){return e.supportLink},returnFocus:Q1.noop,get ref(){return r(An)},set ref(to){D(An,pe(to))}}),g(Rt),_(He,Rt)};B(yn,He=>{F()&&He(tr)})}var xn=A(yn,2);let Rn=v(()=>!r(vn));ld(xn,{get isLive(){return H()},get isHidden(){return r(Rn)},get isPlaying(){return ae()},get position(){return V()},get duration(){return W()}});var wi=A(xn,2);{var fe=He=>{sa(He,{})};B(wi,He=>{r(fo)&&He(fe)})}var xt=A(wi,2);{var di=He=>{ud(He,{})};B(xt,He=>{he()&&He(di)})}var mi=A(xt,2);{var Si=He=>{qd(He,{onClose:Wn,onSelectAutoQuality:()=>{Ro("auto"),Wn()}})};B(mi,He=>{r(qo)&&He(Si)})}_(tt,Mt)});var Eo=A(ko,2);vt(Eo,tt=>D(zo,tt),()=>r(zo)),g(li),vt(li,tt=>D(Pn,tt),()=>r(Pn)),Tt("click",li,Er,!0),Tt("focusin",li,Pr,!0),_(t,li),z(),o()}st(["click"]);function xu(t){let e="";return lo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),lo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),lo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),lo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),lo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),lo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),lo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),lo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),lo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),lo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),lo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),lo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),lo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),lo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),lo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),lo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),lo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),lo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),lo(t.font)&&(e+=`--font:${t.font};`),e.length&&e||void 0}function lo(t){return typeof t=="string"&&!t.includes(";")}var G1=require("@vkontakte/videoplayer-shared/es2018");var ox=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),nx={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 Jm(t,e){U(e,!0),K(t,nx);let[i,o]=Ne(),n=()=>S(ie,"$playerSize",i),a=()=>S(k,"$isPlaying$",i),s=()=>S(M,"$duration$",i),d=()=>S(Y,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),p=()=>S(I,"$crashed$",i),m=()=>S(V,"$currentSubtitle$",i),y=()=>S(W,"$currentSubtitleCaptions$",i),u=()=>S(P,"$positionExact$",i),$=()=>S(F,"$isLive$",i),w=()=>S(Q,"$isRewindableLive$",i),b=f(e,"outsideDuration",3,0),C=f(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:M,positionExact$:P,isPlaying$:k,currentSubtitle$:V,currentSubtitleCaptions$:W,positionWithScrubbing$:Y,isLive$:F,isRewindableLive$:Q},ui:{playerSize:ie,controls:Z},actions:{internal:{getVideoElement:re}}}=Ce(),le=8,Ae=X(!1),Me=pe({}),ge=()=>{D(Ae,!0)},se=()=>{D(Ae,!1)},Ee=(0,G1.debounceFn)(fl,260);Fe(()=>{n(),Ee(re(),Z,Me,r(Ae))});let ne=v(()=>a()?cn(s()-d()):cn(isFinite(s())?s():b()));var R=ox(),xe=h(R);ya(xe,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ie){C(Ie)}});var _e=A(xe,2);Ks(_e,()=>"slot",!1,(Ie,Ue)=>{Te(Ie,null,{name:$a})});var ze=A(_e,2);let H=v(()=>l()!=="thumb"||p());ha(ze,{get hidden(){return r(H)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ae=A(ze,2);{var he=Ie=>{ga(Ie,{shifted:!1,get captions(){return y()},get position(){return u()},get playerSize(){return n()}})};B(ae,Ie=>{m().value!=="off"&&Ie(he)})}var ee=A(ae,2),De=h(ee);ad(De,{get isLive(){return $()},get isPlaying(){return a()},get time(){return r(ne)}}),g(ee);var Ze=A(ee,2);let we;var Ve=h(Ze);ca(Ve,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return Me.timeline},set ref(Ie){Me.timeline=Ie}}),g(Ze),g(R),E(Ie=>we=J(Ze,1,"timeline svelte-1qfjf44",null,we,Ie),[()=>({visible:r(Ae)})]),Tt("mouseenter",R,ge),Tt("mouseleave",R,se),_(t,R),z(),o()}var rx=L("<div><!></div>"),sx={hash:"svelte-tw6yp4",code:`.root.svelte-tw6yp4 {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
|
|
362
361
|
|
|
363
362
|
/* USER DEFINED COLORS */
|
|
364
363
|
|
|
@@ -385,12 +384,12 @@ Try switching the\xA0quality to\xA0Auto.`},Lh=P_;var is=new Map;is.set(el.Interf
|
|
|
385
384
|
rgba(0, 0, 0, 0.96) 86.67%,
|
|
386
385
|
rgba(0, 0, 0, 0.99) 93.33%,
|
|
387
386
|
#000 100%
|
|
388
|
-
);--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
|
|
389
|
-
/* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-
|
|
387
|
+
);--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
|
|
388
|
+
/* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-tw6yp4 {color-scheme:light dark;}.root.visible-outside.svelte-tw6yp4 {overflow:visible;}
|
|
390
389
|
|
|
391
390
|
/* css reset start */* {-webkit-tap-highlight-color:transparent;}button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}p {margin:0;}svg:not(.interactive-root svg) {pointer-events:none;}.interactive-root {
|
|
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);}
|
|
391
|
+
/* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}
|
|
393
392
|
/* 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
393
|
|
|
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 Jm(t,e){U(e,!0),W(t,sx);let[i,o]=Re(),n=()=>S(Yt,"$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),Ke=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,wa.noop),Oe=f(e,"playPrevChapter",7,wa.noop),je=f(e,"volumeMultiplier",7),$e=f(e,"showAutoplayNext",7),we=f(e,"showEndScreen",7,!0),Ve=f(e,"keyboardControls",15,void 0),{subscribers:Ye,stores:ct}=d();Jg(p());let ut=Kt(),st=p().logoLink,It=s().ui.debugPanelVisible,bt=s().ui.playerSize,Yt=s().state.isLive$,Et=s().state.isInteractive&&xu.clientChecker.device.isAndroid,Nt=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}),ch(s(),ct),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(ut.features.qualityDetailsSubMenuEnabled){let G=Ph(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{Ah(s().videoId),zp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Xt=Op(s().videoId);Xt&&s().actions.internal.setQuality(Xt)}};function qe(G){var mt,pi,Xe;let Xt=a()||G;Xt&&s().initVideo({container:r(Nt),sources:Xt,failoverHosts:ee(),subtitles:w(),volumeMultiplier:je()});let ri=wa.safeStorage.get(Zl)==="true";It.set(ri),A()>0&&s().actions.external.seekTime(A());let Oi=ce()?ut.volumeDefault:(pi=(mt=k())!=null?mt:Dc())!=null?pi:ut.volumeDefault,li=(Xe=P())!=null?Xe:Sh();if(s().actions.external.setVolume(Oi),s().actions.external.setMuted(li),s().getAdmanWrapper().setInitialVolume(li?0:Oi),Ne(),ut.features.saveRate&&j()){let Vt=Ih();Vt&&!n()&&s().actions.internal.setPlaybackRate(Vt)}if($e()){let Vt=Eh();Vt&&s().actions.internal.setAutoplayNextEnabled(Vt)}s().ui.isAutoplay.set(T()),T()?re():C()&&ut.features.preload&&s().actions.internal.preload()}let Ge=G=>{if(window.ResizeObserver){let Xt,ri;O=new ResizeObserver((0,wa.throttleFn)(Oi=>{let li=Oi[0];if(li.contentBoxSize){let mt=Array.isArray(li.contentBoxSize)?li.contentBoxSize[0]:li.contentBoxSize;Xt=mt.inlineSize,ri=mt.blockSize}else li.contentRect&&(Xt=li.contentRect.width,ri=li.contentRect.height);bt.set({width:Xt,height:ri})},300)),O.observe(G)}bt.set({width:G.clientWidth,height:G.clientHeight})},pt=()=>{document.hidden&&s().actions.external.stop()};Wt(()=>{var ri,Oi,li,mt;Et&&document.addEventListener("visibilitychange",pt),ut.debugLog&&s().actions.internal.startLogging(),Ge(r(Nt));let G=Ye.map(pi=>pi.init({store:s(),microStores:ct,config:l(),interactiveController:_(),uiConfig:p()})),Xt=()=>{Et&&document.removeEventListener("visibilitychange",pt),O==null||O.disconnect(),G.forEach(pi=>pi.unsubscribe()),s().destroy()};return((ri=y())==null?void 0:ri.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Xt):((Oi=y())==null?void 0:Oi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Xt):(((li=y())==null?void 0:li.status)==="finished"||((mt=y())==null?void 0:mt.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Xt):(qe(),Xt)});function Ze(){r(_e)?s().actions.external.play():re(!0)}function tt(){s().actions.external.pause()}function it(G){s().actions.external.setMuted(G)}function We(){s().actions.external.toggleSubtitle()}function ht(){var G;(G=s().webApi.slotsApi)!=null&&G.haveSlots()&&s().actions.external.hideControls()}function Ut(){var G;(G=s().webApi.slotsApi)!=null&&G.haveSlots()&&s().actions.external.showControls()}function Je(G){ce()||G>=0&&G<=1&&s().actions.external.setVolume(G)}function jt(G){s().actions.internal.seekTime(G,j1.SeekAction.UNKNOWN)}function ti(G){s().actions.external.seekEpisodeStartTime(G)}function et(){s().actions.external.returnFocusToEpisodes()}function Zt(G){s().actions.external.setPlaybackRate(G)}function Di(G){s().actions.external.setAutoQualityLimits(G)}let Wi=yu(ut.view),Lt=l().playerView==="preview";var _t=rx();let Bt;rt(_t,Wi);var mo=h(_t);{var rn=G=>{Zm(G,{get store(){return s()},uiConfig:ut,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:st,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 Ke()},get showMiniTimer(){return me()},get playerStarted(){return r(_e)},get seekToInteractive(){return te()},get playPrevChapter(){return Oe()},firstStart:re,seekTime:jt,get showEndScreen(){return we()},get showAutoplayNext(){return $e()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(Nt)},set videoContainer(Xt){D(Nt,fe(Xt))}})},$n=G=>{var Xt=De(),ri=pe(Xt);{var Oi=mt=>{Xm(mt,{get thumbUrl(){return b()},get outsideDuration(){return ne()},get canRewindLive(){return I()},get videoContainer(){return r(Nt)},set videoContainer(pi){D(Nt,fe(pi))}})},li=mt=>{jm(mt,{get store(){return s()},uiConfig:ut,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:st,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 Ke()},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(Nt)},set videoContainer(pi){D(Nt,fe(pi))},get keyboardControls(){return Ve()},set keyboardControls(pi){Ve(pi)}})};R(ri,mt=>{Lt?mt(Oi):mt(li,!1)})}$(G,Xt)};R(mo,G=>{ce()?G(rn):G($n,!1)})}g(_t),E(G=>Bt=J(_t,1,"root svelte-7ed4yj",null,Bt,G),[()=>({"root--miui-browser":xu.clientChecker.device.isMobile&&xu.clientChecker.browser.isMiuiBrowser,"visible-outside":Lt})]),$(t,_t);var wo=z({initVideo:qe,play:Ze,pause:tt,setMuted:it,toggleSubtitle:We,hideControls:ht,showControls:Ut,setVolume:Je,seekTime:jt,seekEpisodeStartTime:ti,returnFocusToEpisodes:et,setPlaybackRate:Zt,setAutoQualityLimits:Di,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 Ke()},set fullScreenTarget(G){Ke(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 je()},set volumeMultiplier(G){je(G)},get showEndScreen(){return we()},set showEndScreen(G){we(G)},get keyboardControls(){return Ve()},set keyboardControls(G){Ve(G)}});return o(),wo}var ax=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 ev(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ax();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 tv(t,e){let i=f(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");ev(t,{get style(){return r(o)}})}var lx=L('<div class="title svelte-1y9fytq"> </div>'),dx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),cx={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function iv(t,e){W(t,cx);var i=dx(),o=h(i);{var n=d=>{var l=lx(),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);tv(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),E(()=>rt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var o0=require("@vkontakte/videoplayer-shared/es2018"),Xi=require("@vkontakte/videoplayer-shared/es2018"),Jd=require("@vkontakte/videoplayer-core/es2018"),n0=require("@vkontakte/videoplayer-statistics/es2018");var Su=require("@vkontakte/videoplayer-shared/es2018"),wu=class{constructor(){this.subscription=new Su.Subscription,this.logger=new Su.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,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()}};var bl=require("@vkontakte/videoplayer-shared/es2018");var ux=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 ov(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ux();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 px=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),fx={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 nv(t,e){U(e,!0),W(t,fx);let[i,o]=Re(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(m,"$isMobile$",i),s=Te(),d=Kt(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,m=s.ui.isMobile,b=s.ui.t,u=v(()=>n()&&b("pip_dummy_title")),_=yu(d.view);var w=px();J(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),rt(w,_);var y=h(w);let C;var T=h(y);ov(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 mx=Object.defineProperty,vx=(t,e,i)=>e in t?mx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,_l=(t,e,i)=>vx(t,typeof e!="symbol"?e+"":e,i),gx=460,hx=280,Wd=class{constructor({enabled:e=!0}={enabled:!0}){_l(this,"playerDomElement"),_l(this,"playerParentShadowRoot"),_l(this,"playerDummyElement"),_l(this,"svelteContext"),_l(this,"pipWindow"),_l(this,"info",{isActive$:new bl.ValueSubject(!1),isEnabled$:new bl.ValueSubject(!1),type:1}),this.info.isEnabled$=new bl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,bl.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.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:gx,height:hx,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=Jr(nv,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||(Ws(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 Y1(t){return t instanceof Wd}var Cu=class{static getLatestSupportedVersion(e){let i=new ta(e),o=new Wd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Tu(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 Z1="Inner error. Unexpectedly root annotation container null reference exception",X1="Annotation with such name already exists",J1="Annotation with such name does not exist";var $l=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var yl=require("@vkontakte/videoplayer-shared/es2018"),_x="1",bx=100,Iu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new yl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,yl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},bx);this.subscriptions.add((0,yl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new $l(Z1);if(this.annotations.has(e))throw new $l(X1);i.style.zIndex=(o=i.style.zIndex)!=null?o:_x,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 $l(J1);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(){}};var Sa=require("@vkontakte/videoplayer-shared/es2018"),Uo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Sa.assertNonNullable)(e),(0,Sa.assertNonNullable)(i),(0,Sa.assertNonNullable)(n),n.interactiveData&&(0,Sa.assertNonNullable)(o),this.subscription=new Sa.Subscription,this.subscription}};var Kd=class extends Uo{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 Qd=class extends Uo{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 Gd=class extends Uo{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}};var e0=require("@vkontakte/videoplayer-shared/es2018"),rv=ae(!1),ku=null,jd=class extends Uo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...rv,set:(i,o=!1)=>{i!==Ce(rv)&&(this.clearTimeout(),rv.set(i),!i&&ku&&(ku=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config: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((0,e0.combine)({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&&ku===null&&(ku=!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)}};var Eu=require("@vkontakte/videoplayer-shared/es2018");var Yd=class extends Uo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:Eu.noop};this.checkIfShouldHide=i=>Ss(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(Lp),!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(Lp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Eu.combine)({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}};var sv=require("@vkontakte/videoplayer-shared/es2018"),Zd=class extends Uo{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 sv.ValueSubject(!1),isEnabled$:new sv.ValueSubject(!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}};var Au=require("@vkontakte/videoplayer-shared/es2018");var Pu=require("@vkontakte/videoplayer-shared/es2018"),t0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?$x({maxCount:t}):void 0,e!==0?yx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},$x=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Pu.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},yx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Pu.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Pu.safeStorage.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 Xd=class extends Uo{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=t0({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,Au.filterChanged)(),(0,Au.filter)(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 i0=()=>[Kd,Qd,Gd,jd,Yd,Zd,Xd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var xl=require("@vkontakte/videoplayer-shared/es2018");var xx=Object.defineProperty,wx=(t,e,i)=>e in t?xx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,oi=(t,e,i)=>wx(t,typeof e!="symbol"?e+"":e,i),Sx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Xi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Jd.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},bn=X(void 0),Mu=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}=Tu(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 n0.OneStat({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}})}),xl.devNull.create("ui"),this.logger=new Xi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Xi.Subscription,this.interactiveSubscription=new Xi.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=fe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=Jr(iv,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(),xl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}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:Ke,additionalButtons:ee=[],additionalSettingsMenuItems:me=[],additionalContextMenuItems:j=[],repeat:te,saveRate:Oe,volumeMultiplier:je,showEndScreen:$e,showAutoplayNext:we}=Tu(this.videoConfig,i),{sources:Ve,title:Ye,thumbUrl:ct,unitedVideoId:ut,isClip:st=!1,duration:It,adsParams:bt={},videoEpisodes:Yt,previewThumbsData:ni,subtitles:Et,live:Nt}=e,O={...Q,...bt},_e=this.getNextVideoInfo(),re={sources:Ve,title:Ye,thumbUrl:ct,subtitles:Et,unitedVideoId:ut,isClip:st,live:Nt,albumId:u,statPlace:_,autoplay:C,muted:k,volume:T,fromTime:P,canRewindLive:A,showAds:V,adsSlotId:q,adsParams:O,adsPreviewParam:H,adsAutoplayParam:Y,duration:It,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 qe=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Ge=(qe==null?void 0:qe.oneStat)||this.createOneStat(e,i);Ge&&(this.statistics=new du(Ge,qe==null?void 0:qe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ea(this.uiConfig.sentry,{version:Zs,env:Rc},{movieId:ut,albumId:u,place:_,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Ae!=null?Ae:Le,clip:st}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry={...this.sentry,...ea.getInstance()};let Ze=!!le,tt=[],it="tooltip_interactive_go_back_disabled_first";if(Ze&&this.interactiveController){let Je=this.interactiveController.state.isInitialChapter$.getValue(),jt=this.interactiveController.getHistoryState();Je&&tt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||tt.push("SEEK_TO_INTERACTIVE_BUTTON"),jt.hasPrevChapter$.getValue()||(tt.push("PLAY_PREV_CHAPTER_BUTTON"),Je||(jt.isGoBackLimited$.getValue()?it="tooltip_interactive_go_back_disabled_limit":it="tooltip_interactive_go_back_disabled"))}let We=()=>{var Je;this.isInited=!1,this.prevIsid=void 0;let jt=(o==null?void 0:o.info.isEnded$.getValue())&&((Je=this.interactiveController)==null?void 0:Je.state.isEndChapter$.getValue());be.onReplayInteractiveVideo&&!jt?be.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=h1({player:o,interfaceLanguage:ne,isCyrillicRelatedInterface:Z,videoId:ut,isClip:st,isLiveCatchUpMode:se,isAudioDisabled:he,statAuthToken:w,callbacks:be,webApi:Ne,videoEpisodes:Yt,previewThumbsData:ni,canDownload:B,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:tt,isInteractive:Ze,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:We,playPrevChapterDisabledTooltip:it,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:ht}=this.microStoresRoot=i0(),Ut=()=>{var Je,jt,ti,et,Zt,Di;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Lt=>{var _t;return(_t=be==null?void 0:be.onCurrentFormatChanged)==null?void 0:_t.call(be,Lt)})),this.subscription.add(ht.interactiveControlsOpacity$.subscribe(Lt=>{var _t;Lt!==null&&((_t=this==null?void 0:this.interactiveController)==null||_t.setDisabledControls(Lt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Lt=>{var _t;return(_t=be==null?void 0:be.onThroughputEstimationChanged)==null?void 0:_t.call(be,Lt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Lt=>{var _t;return(_t=be==null?void 0:be.onTrafficSavingEnabledChanged)==null?void 0:_t.call(be,Lt)})),this.subscription.add(new Xi.Observable(Lt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(_t=>Lt.next(_t)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Xi.skip)(1):Lt=>Lt).subscribe(Lt=>{var _t;return(_t=be==null?void 0:be.onCurrentPlaybackRateChanged)==null?void 0:_t.call(be,Lt)})),this.subscription.add(this.store.state.volume$.subscribe(Lt=>{var _t;return(_t=be==null?void 0:be.onVolumeChange)==null?void 0:_t.call(be,Lt)})),this.subscription.add(this.store.state.muted$.subscribe(Lt=>{var _t,Bt;return Lt?(_t=be==null?void 0:be.onMute)==null?void 0:_t.call(be):(Bt=be==null?void 0:be.onUnmute)==null?void 0:Bt.call(be)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Lt=>{var _t;return(_t=be==null?void 0:be.onVideoBitrateChanged)==null?void 0:_t.call(be,Lt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Lt=>{var _t;let Bt=(_t=this.store)==null?void 0:_t.ui.controls.disabledControls$;Bt&&(Lt&&!Bt.includes(Xl)&&Bt.add(Xl),Lt||Bt.remove(Xl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Lt=>{var _t;if(!Jd.clientChecker.browser.isSamsungBrowser||!Lt||!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(Lt=>{var _t;return(_t=be==null?void 0:be.onVSIDChanged)==null?void 0:_t.call(be,Lt)})),this.initMediaSession(),D(bn,fe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ve,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ye,thumbUrl:ct,subtitles:Et,live:Nt,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:It,logoClickable:de,logoHidden:ce,isMobile:Ae!=null?Ae:Le,failoverHosts:oe,fullScreenTarget:Me,saveRate:Oe,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:je,showEndScreen:$e,showAutoplayNext:we}));let Wi={target:this.playerContainer,props:r(bn)};this.svelteRootComponent=Jr(Jm,Wi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ti=(jt=(Je=this.videoConfig)==null?void 0:Je.callbacks)==null?void 0:jt.onInited)==null||ti.call(jt)),(et=this.internalsExposure)==null||et.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Di=(Zt=this.videoConfig)==null?void 0:Zt.callbacks)!=null&&Di.onDevNullLog)?xl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):xl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Jd.clientChecker.isInited$.subscribe(Je=>{Je&&(console.log("UI SDK async start"),Ut())}):Ut()}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&&(0,Xi.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n;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(Jl)),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(Jl)})),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=Tu(Sx,(0,Xi.cloneDeepWith)(e,de=>de instanceof HTMLElement?de:void 0)),this.uiConfig=Xg((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 Xi.InternalsExposure("UI"))),xl.devNull.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:[(0,o0.now)()]}),(0,Xi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(m=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?m:!0),(0,Xi.isNonNullable)(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=Cu.getLatestSupportedVersion(de):this.pictureInPictureApi=new ta(de)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new wu:void 0,this.slotsApi=this.uiConfig.features.slots?new _u:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Iu(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]),Y1(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(bn)&&(r(bn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(bn).nextButtonActive=this.isNextButtonActive(),r(bn).prevButtonActive=this.isPrevButtonActive(),r(bn).endScreenVideoTitle=o.nextVideoTitle,r(bn).endScreenVideoThumb=o.nextVideoThumb,r(bn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...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(bn)&&(r(bn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(bn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(bn).nextButtonActive=this.isNextButtonActive(),r(bn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}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((0,Xi.once)()).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&&Ws(e)}};var wl=require("@vkontakte/videoplayer-shared/es2018"),Lu=require("@vkontakte/videoplayer-core/es2018"),Cx=()=>{window.customElements.define("vk-video-player",Mu)};
|
|
394
|
+
/* \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 ev(t,e){U(e,!0),K(t,sx);let[i,o]=Ne(),n=()=>S(Qt,"$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),y=f(e,"thumbUrl",7),u=f(e,"interactiveContainer",7),$=f(e,"interactiveController",7),w=f(e,"subtitles",7),b=f(e,"live",7),C=f(e,"preload",7),T=f(e,"autoplay",7),I=f(e,"volume",7,void 0),M=f(e,"muted",7,void 0),P=f(e,"fromTime",7),k=f(e,"canRewindLive",7),V=f(e,"showAds",7),W=f(e,"adsSlotId",7,void 0),Y=f(e,"adsParams",7,void 0),F=f(e,"adsPreviewParam",7,void 0),Q=f(e,"adsAutoplayParam",7,void 0),ie=f(e,"duration",7,void 0),Z=f(e,"logoClickable",7),re=f(e,"logoHidden",7),le=f(e,"isMobile",7),Ae=f(e,"showNextPrevButtons",7,!1),Me=f(e,"nextButtonActive",7,!1),ge=f(e,"prevButtonActive",7,!1),se=f(e,"endScreenVideoTitle",7,void 0),Ee=f(e,"endScreenVideoThumb",7,void 0),ne=f(e,"isOneVideoPlaylist",7,!1),R=f(e,"supportLink",7),xe=f(e,"shadowRootContainer",7,void 0),_e=f(e,"outerContainerRef",7,void 0),ze=f(e,"fullScreenTarget",7,void 0),H=f(e,"failoverHosts",7,void 0),ae=f(e,"showMiniTimer",7,!1),he=f(e,"saveRate",7),ee=f(e,"seekToInteractive",7,xa.noop),De=f(e,"playPrevChapter",7,xa.noop),Ze=f(e,"volumeMultiplier",7),we=f(e,"showAutoplayNext",7),Ve=f(e,"showEndScreen",7,!0),Ie=f(e,"keyboardControls",15,void 0),{subscribers:Ue,stores:ct}=d();eh(p());let ut=qt(),ot=p().logoLink,It=s().ui.debugPanelVisible,gt=s().ui.playerSize,Qt=s().state.isLive$,At=s().state.isInteractive&&wu.clientChecker.device.isAndroid,Nt=X(void 0),O=null,be=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}),uh(s(),ct),Fe(()=>{var j,Zt;s().ui.isMobile.set(le()),(Zt=(j=l().callbacks)==null?void 0:j.onDomReady)==null||Zt.call(j)});let oe=(j=!1)=>{D(be,!0),j?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Re=()=>{if(ut.features.qualityDetailsSubMenuEnabled){let j=Ah(s().videoId);if(j)switch(j.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,j.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,j.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(j.quality);break}}else{Mh(s().videoId),qp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Zt=Hp(s().videoId);Zt&&s().actions.internal.setQuality(Zt)}};function Qe(j){var pt,vi,Xe;let Zt=a()||j;Zt&&s().initVideo({container:r(Nt),sources:Zt,failoverHosts:H(),subtitles:w(),volumeMultiplier:Ze()});let hi=xa.safeStorage.get(Zl)==="true";It.set(hi),P()>0&&s().actions.external.seekTime(P());let Ri=le()?ut.volumeDefault:(vi=(pt=I())!=null?pt:Dc())!=null?vi:ut.volumeDefault,ai=(Xe=M())!=null?Xe:Ch();if(s().actions.external.setVolume(Ri),s().actions.external.setMuted(ai),s().getAdmanWrapper().setInitialVolume(ai?0:Ri),Re(),ut.features.saveRate&&he()){let Vt=kh();Vt&&!n()&&s().actions.internal.setPlaybackRate(Vt)}if(we()){let Vt=Ph();Vt&&s().actions.internal.setAutoplayNextEnabled(Vt)}s().ui.isAutoplay.set(T()),T()?oe():C()&&ut.features.preload&&s().actions.internal.preload()}let Ye=j=>{if(window.ResizeObserver){let Zt,hi;O=new ResizeObserver((0,xa.throttleFn)(Ri=>{let ai=Ri[0];if(ai.contentBoxSize){let pt=Array.isArray(ai.contentBoxSize)?ai.contentBoxSize[0]:ai.contentBoxSize;Zt=pt.inlineSize,hi=pt.blockSize}else ai.contentRect&&(Zt=ai.contentRect.width,hi=ai.contentRect.height);gt.set({width:Zt,height:hi})},300)),O.observe(j)}gt.set({width:j.clientWidth,height:j.clientHeight})},Le=()=>{document.hidden&&s().actions.external.stop()};zt(()=>{var hi,Ri,ai,pt;At&&document.addEventListener("visibilitychange",Le),ut.debugLog&&s().actions.internal.startLogging(),Ye(r(Nt));let j=Ue.map(vi=>vi.init({store:s(),microStores:ct,config:l(),interactiveController:$(),uiConfig:p()})),Zt=()=>{At&&document.removeEventListener("visibilitychange",Le),O==null||O.disconnect(),j.forEach(vi=>vi.unsubscribe()),s().destroy()};return((hi=b())==null?void 0:hi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Zt):((Ri=b())==null?void 0:Ri.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Zt):(((ai=b())==null?void 0:ai.status)==="finished"||((pt=b())==null?void 0:pt.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Zt):(Qe(),Zt)});function nt(){r(be)?s().actions.external.play():oe(!0)}function je(){s().actions.external.pause()}function ht(j){s().actions.external.setMuted(j)}function at(){s().actions.external.toggleSubtitle()}function Je(){var j;(j=s().webApi.slotsApi)!=null&&j.haveSlots()&&s().actions.external.hideControls()}function Wt(){var j;(j=s().webApi.slotsApi)!=null&&j.haveSlots()&&s().actions.external.showControls()}function it(j){le()||j>=0&&j<=1&&s().actions.external.setVolume(j)}function ni(j){s().actions.internal.seekTime(j,Y1.SeekAction.UNKNOWN)}function xi(j){s().actions.external.seekEpisodeStartTime(j)}function et(){s().actions.external.returnFocusToEpisodes()}function jt(j){s().actions.external.setPlaybackRate(j)}function Vi(j){s().actions.external.setAutoQualityLimits(j)}let Yi=xu(ut.view),Lt=l().playerView==="preview";var bt=rx();let Dt;rt(bt,Yi);var co=h(bt);{var pn=j=>{Xm(j,{get store(){return s()},uiConfig:ut,get thumbUrl(){return y()},get interactiveContainer(){return u()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return V()},get adsSlotId(){return W()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return Q()},get duration(){return ie()},get logoClickable(){return Z()},get logoHidden(){return re()},logoTargetUrl:ot,get nextButtonActive(){return Me()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Ee()},get isOneVideoPlaylist(){return ne()},get supportLink(){return R()},get shadowRootContainer(){return xe()},get outerContainerRef(){return _e()},get fullScreenTarget(){return ze()},get showMiniTimer(){return ae()},get playerStarted(){return r(be)},get seekToInteractive(){return ee()},get playPrevChapter(){return De()},firstStart:oe,seekTime:ni,get showEndScreen(){return Ve()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Ae()},get videoContainer(){return r(Nt)},set videoContainer(Zt){D(Nt,pe(Zt))}})},Ji=j=>{var Zt=Oe(),hi=ue(Zt);{var Ri=pt=>{Jm(pt,{get thumbUrl(){return y()},get outsideDuration(){return ie()},get canRewindLive(){return k()},get videoContainer(){return r(Nt)},set videoContainer(vi){D(Nt,pe(vi))}})},ai=pt=>{jm(pt,{get store(){return s()},uiConfig:ut,get title(){return m()},get thumbUrl(){return y()},get interactiveContainer(){return u()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return V()},get adsSlotId(){return W()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return Q()},get duration(){return ie()},get logoClickable(){return Z()},get logoHidden(){return re()},logoTargetUrl:ot,get nextButtonActive(){return Me()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Ee()},get isOneVideoPlaylist(){return ne()},get supportLink(){return R()},get shadowRootContainer(){return xe()},get outerContainerRef(){return _e()},get fullScreenTarget(){return ze()},get showMiniTimer(){return ae()},get playerStarted(){return r(be)},get seekToInteractive(){return ee()},get playPrevChapter(){return De()},firstStart:oe,get showEndScreen(){return Ve()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Ae()},get videoContainer(){return r(Nt)},set videoContainer(vi){D(Nt,pe(vi))},get keyboardControls(){return Ie()},set keyboardControls(vi){Ie(vi)}})};B(hi,pt=>{Lt?pt(Ri):pt(ai,!1)})}_(j,Zt)};B(co,j=>{le()?j(pn):j(Ji,!1)})}g(bt),E(j=>Dt=J(bt,1,"root svelte-tw6yp4",null,Dt,j),[()=>({"root--miui-browser":wu.clientChecker.device.isMobile&&wu.clientChecker.browser.isMiuiBrowser,"visible-outside":Lt})]),_(t,bt);var Co=z({initVideo:Qe,play:nt,pause:je,setMuted:ht,toggleSubtitle:at,hideControls:Je,showControls:Wt,setVolume:it,seekTime:ni,seekEpisodeStartTime:xi,returnFocusToEpisodes:et,setPlaybackRate:jt,setAutoQualityLimits:Vi,get sources(){return a()},set sources(j){a(j)},get store(){return s()},set store(j){s(j)},get microStoresRoot(){return d()},set microStoresRoot(j){d(j)},get videoConfig(){return l()},set videoConfig(j){l(j)},get uiConfig(){return p()},set uiConfig(j){p(j)},get title(){return m()},set title(j){m(j)},get thumbUrl(){return y()},set thumbUrl(j){y(j)},get interactiveContainer(){return u()},set interactiveContainer(j){u(j)},get interactiveController(){return $()},set interactiveController(j){$(j)},get subtitles(){return w()},set subtitles(j){w(j)},get live(){return b()},set live(j){b(j)},get preload(){return C()},set preload(j){C(j)},get autoplay(){return T()},set autoplay(j){T(j)},get volume(){return I()},set volume(j){I(j)},get muted(){return M()},set muted(j){M(j)},get fromTime(){return P()},set fromTime(j){P(j)},get canRewindLive(){return k()},set canRewindLive(j){k(j)},get showAds(){return V()},set showAds(j){V(j)},get adsSlotId(){return W()},set adsSlotId(j){W(j)},get adsParams(){return Y()},set adsParams(j){Y(j)},get adsPreviewParam(){return F()},set adsPreviewParam(j){F(j)},get adsAutoplayParam(){return Q()},set adsAutoplayParam(j){Q(j)},get duration(){return ie()},set duration(j){ie(j)},get logoClickable(){return Z()},set logoClickable(j){Z(j)},get logoHidden(){return re()},set logoHidden(j){re(j)},get isMobile(){return le()},set isMobile(j){le(j)},get showNextPrevButtons(){return Ae()},set showNextPrevButtons(j){Ae(j)},get nextButtonActive(){return Me()},set nextButtonActive(j){Me(j)},get prevButtonActive(){return ge()},set prevButtonActive(j){ge(j)},get endScreenVideoTitle(){return se()},set endScreenVideoTitle(j){se(j)},get endScreenVideoThumb(){return Ee()},set endScreenVideoThumb(j){Ee(j)},get isOneVideoPlaylist(){return ne()},set isOneVideoPlaylist(j){ne(j)},get supportLink(){return R()},set supportLink(j){R(j)},get shadowRootContainer(){return xe()},set shadowRootContainer(j){xe(j)},get outerContainerRef(){return _e()},set outerContainerRef(j){_e(j)},get fullScreenTarget(){return ze()},set fullScreenTarget(j){ze(j)},get failoverHosts(){return H()},set failoverHosts(j){H(j)},get showMiniTimer(){return ae()},set showMiniTimer(j){ae(j)},get saveRate(){return he()},set saveRate(j){he(j)},get showAutoplayNext(){return we()},set showAutoplayNext(j){we(j)},get seekToInteractive(){return ee()},set seekToInteractive(j){ee(j)},get playPrevChapter(){return De()},set playPrevChapter(j){De(j)},get volumeMultiplier(){return Ze()},set volumeMultiplier(j){Ze(j)},get showEndScreen(){return Ve()},set showEndScreen(j){Ve(j)},get keyboardControls(){return Ie()},set keyboardControls(j){Ie(j)}});return o(),Co}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 tv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ax();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}function iv(t,e){let i=f(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");tv(t,{get style(){return r(o)}})}var lx=L('<div class="title svelte-1y9fytq"> </div>'),dx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),cx={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function ov(t,e){K(t,cx);var i=dx(),o=h(i);{var n=d=>{var l=lx(),p=h(l,!0);g(l),E(()=>me(p,e.title)),_(d,l)};B(o,d=>{e.title&&d(n)})}var a=A(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);iv(d,{get isWhite(){return r(l)}})};B(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),E(()=>rt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),_(t,i)}var o0=require("@vkontakte/videoplayer-shared/es2018"),Gi=require("@vkontakte/videoplayer-shared/es2018"),Jd=require("@vkontakte/videoplayer-core/es2018"),n0=require("@vkontakte/videoplayer-statistics/es2018");var Cu=require("@vkontakte/videoplayer-shared/es2018"),Su=class{constructor(){this.subscription=new Cu.Subscription,this.logger=new Cu.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,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()}};var bl=require("@vkontakte/videoplayer-shared/es2018");var ux=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 nv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ux();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>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})),_(t,o)}var px=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),fx={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 rv(t,e){U(e,!0),K(t,fx);let[i,o]=Ne(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(m,"$isMobile$",i),s=Ce(),d=qt(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,m=s.ui.isMobile,y=s.ui.t,u=v(()=>n()&&y("pip_dummy_title")),$=xu(d.view);var w=px();J(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),rt(w,$);var b=h(w);let C;var T=h(b);nv(T,{}),g(b);var I=A(b,2),M=h(I,!0);g(I),g(w),E(P=>{C=J(b,1,"dummy-image svelte-1pbsod4",null,C,P),me(M,r(u))},[()=>({desktop:!a()})]),_(t,w),z(),o()}var mx=Object.defineProperty,vx=(t,e,i)=>e in t?mx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,_l=(t,e,i)=>vx(t,typeof e!="symbol"?e+"":e,i),gx=460,hx=280,Wd=class{constructor({enabled:e=!0}={enabled:!0}){_l(this,"playerDomElement"),_l(this,"playerParentShadowRoot"),_l(this,"playerDummyElement"),_l(this,"svelteContext"),_l(this,"pipWindow"),_l(this,"info",{isActive$:new bl.ValueSubject(!1),isEnabled$:new bl.ValueSubject(!1),type:1}),this.info.isEnabled$=new bl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,bl.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.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:gx,height:hx,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(`
|
|
395
|
+
`),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=Jr(rv,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||(qs(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 j1(t){return t instanceof Wd}var Tu=class{static getLatestSupportedVersion(e){let i=new ea(e),o=new Wd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Iu(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 Z1="Inner error. Unexpectedly root annotation container null reference exception",X1="Annotation with such name already exists",J1="Annotation with such name does not exist";var $l=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var yl=require("@vkontakte/videoplayer-shared/es2018"),_x="1",bx=100,ku=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new yl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,yl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},bx);this.subscriptions.add((0,yl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new $l(Z1);if(this.annotations.has(e))throw new $l(X1);i.style.zIndex=(o=i.style.zIndex)!=null?o:_x,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 $l(J1);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(){}};var wa=require("@vkontakte/videoplayer-shared/es2018"),Ho=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,wa.assertNonNullable)(e),(0,wa.assertNonNullable)(i),(0,wa.assertNonNullable)(n),n.interactiveData&&(0,wa.assertNonNullable)(o),this.subscription=new wa.Subscription,this.subscription}};var Kd=class extends Ho{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ce(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 Qd=class extends Ho{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ce(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,y=Se(m),u=()=>y&&Se(p);return o.add(p.subscribe($=>{if(!y)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 Gd=class extends Ho{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ce("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}};var e0=require("@vkontakte/videoplayer-shared/es2018"),sv=ce(!1),Eu=null,Yd=class extends Ho{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...sv,set:(i,o=!1)=>{i!==Se(sv)&&(this.clearTimeout(),sv.set(i),!i&&Eu&&(Eu=!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(y=>{Se(s)&&y&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,e0.combine)({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:y,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,b;if(!(!y||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);m.tooltipHelpHintActive&&Eu===null&&(Eu=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(b=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||b.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Pu=require("@vkontakte/videoplayer-shared/es2018");var jd=class extends Ho{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ce(null),toggle:Pu.noop};this.checkIfShouldHide=i=>ws(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$:y}=n.ui.controls,u=Se(p),$=Se(m);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),y.remove(Vp),!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),y.add(Vp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Pu.combine)({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(y){d({message:"Cant hide graph"})}})),o}};var av=require("@vkontakte/videoplayer-shared/es2018"),Zd=class extends Ho{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ce(!1),isEnabled$:ce(!1),type$:ce(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 av.ValueSubject(!1),isEnabled$:new av.ValueSubject(!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}};var Mu=require("@vkontakte/videoplayer-shared/es2018");var Au=require("@vkontakte/videoplayer-shared/es2018"),t0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?$x({maxCount:t}):void 0,e!==0?yx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},$x=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Au.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},yx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Au.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Au.safeStorage.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 Xd=class extends Ho{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ce({}),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=t0({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,Mu.filterChanged)(),(0,Mu.filter)(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 i0=()=>[Kd,Qd,Gd,Yd,jd,Zd,Xd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var xl=require("@vkontakte/videoplayer-shared/es2018");var xx=Object.defineProperty,wx=(t,e,i)=>e in t?xx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ei=(t,e,i)=>wx(t,typeof e!="symbol"?e+"":e,i),Sx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Gi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Jd.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},kn=X(void 0),Lu=class extends HTMLElement{constructor(){super(),ei(this,"svelteStubComponent"),ei(this,"svelteRootComponent"),ei(this,"store"),ei(this,"microStoresRoot"),ei(this,"statistics"),ei(this,"sentry"),ei(this,"_shadowRoot"),ei(this,"playerContainer"),ei(this,"rootContainer"),ei(this,"shadowRootContainer"),ei(this,"uiConfig"),ei(this,"coreConfig"),ei(this,"statisticsConfig"),ei(this,"interactiveController"),ei(this,"interactiveContainer"),ei(this,"graphMadePause"),ei(this,"currentPlayingVideoIndex",0),ei(this,"needToRepeatPlaylist",!1),ei(this,"videoConfig"),ei(this,"pictureInPictureApi"),ei(this,"mediaSessionApi"),ei(this,"unsubscribePlayerPhaseSubscription"),ei(this,"logger"),ei(this,"log"),ei(this,"subscription"),ei(this,"interactiveSubscription"),ei(this,"annotationsApi"),ei(this,"slotsApi"),ei(this,"prevIsid"),ei(this,"isInited",!1),ei(this,"internalsExposure",null),ei(this,"shadowDOMCallbacksDisabled",!1),ei(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:m,statVKAppId:y,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:b,refDomain:C,deviceId:T,interactiveData:I}=Iu(this.videoConfig,i),M=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,P=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;P&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&k)return new n0.OneStat({movieId:k,albumId:d,place:l,trackCode:m,vkAppId:y,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:b!=null?b:w,clip:V,refDomain:C,deviceId:T,...M&&(!this.isInited||P)&&{projectId:Number(M)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),xl.devNull.create("ui"),this.logger=new Gi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Gi.Subscription,this.interactiveSubscription=new Gi.Subscription,this.graphMadePause=!1}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=Jr(ov,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(),xl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},o){var n,a,s,d,l,p,m,y;if(!this.videoConfig)return;let{albumId:u,statPlace:$,statAuthToken:w,preload:b,autoplay:C,volume:T,muted:I,fromTime:M,canRewindLive:P,supportLink:k,showAds:V,adsSlotId:W,adsParams:Y={},adsPreviewParam:F,adsAutoplayParam:Q,interfaceLanguage:ie,isCyrillicRelatedInterface:Z,logoClickable:re,logoHidden:le,isMobile:Ae,isTouch:Me,isAudioDisabled:ge,isLiveCatchUpMode:se,fullScreenTarget:Ee,failoverHosts:ne,canDownload:R,callbacks:xe,interactiveData:_e,showThumbTimer:ze,additionalButtons:H=[],additionalSettingsMenuItems:ae=[],additionalContextMenuItems:he=[],repeat:ee,saveRate:De,volumeMultiplier:Ze,showEndScreen:we,showAutoplayNext:Ve}=Iu(this.videoConfig,i),{sources:Ie,title:Ue,thumbUrl:ct,unitedVideoId:ut,isClip:ot=!1,duration:It,adsParams:gt={},videoEpisodes:Qt,previewThumbsData:ti,subtitles:At,live:Nt}=e,O={...Y,...gt},be=this.getNextVideoInfo(),oe={sources:Ie,title:Ue,thumbUrl:ct,subtitles:At,unitedVideoId:ut,isClip:ot,live:Nt,albumId:u,statPlace:$,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,showAds:V,adsSlotId:W,adsParams:O,adsPreviewParam:F,adsAutoplayParam:Q,duration:It,logoClickable:re,logoHidden:le,isTouch:Me!=null?Me:Ae,repeat:ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Re={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(oe)}`});let Qe=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Ye=(Qe==null?void 0:Qe.oneStat)||this.createOneStat(e,i);Ye&&(this.statistics=new du(Ye,Qe==null?void 0:Qe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Js(this.uiConfig.sentry,{version:js,env:Rc},{movieId:ut,albumId:u,place:$,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Me!=null?Me:Ae,clip:ot}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Js.getInstance()};let nt=!!_e,je=[],ht="tooltip_interactive_go_back_disabled_first";if(nt&&this.interactiveController){let it=this.interactiveController.state.isInitialChapter$.getValue(),ni=this.interactiveController.getHistoryState();it&&je.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||je.push("SEEK_TO_INTERACTIVE_BUTTON"),ni.hasPrevChapter$.getValue()||(je.push("PLAY_PREV_CHAPTER_BUTTON"),it||(ni.isGoBackLimited$.getValue()?ht="tooltip_interactive_go_back_disabled_limit":ht="tooltip_interactive_go_back_disabled"))}let at=()=>{var it;this.isInited=!1,this.prevIsid=void 0;let ni=(o==null?void 0:o.info.isEnded$.getValue())&&((it=this.interactiveController)==null?void 0:it.state.isEndChapter$.getValue());xe.onReplayInteractiveVideo&&!ni?xe.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=_1({player:o,interfaceLanguage:ie,isCyrillicRelatedInterface:Z,videoId:ut,isClip:ot,isLiveCatchUpMode:se,isAudioDisabled:ge,statAuthToken:w,callbacks:xe,webApi:Re,videoEpisodes:Qt,previewThumbsData:ti,canDownload:R,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:je,isInteractive:nt,saveRate:De,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:at,playPrevChapterDisabledTooltip:ht,hasInteractiveBranches:!!((y=(m=this.interactiveController)==null?void 0:m.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?H:[],additionalSettingsMenuItems:ae!=null?ae:[],additionalContextMenuItems:he!=null?he:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:ee&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:Je}=this.microStoresRoot=i0(),Wt=()=>{var it,ni,xi,et,jt,Vi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Lt=>{var bt;return(bt=xe==null?void 0:xe.onCurrentFormatChanged)==null?void 0:bt.call(xe,Lt)})),this.subscription.add(Je.interactiveControlsOpacity$.subscribe(Lt=>{var bt;Lt!==null&&((bt=this==null?void 0:this.interactiveController)==null||bt.setDisabledControls(Lt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Lt=>{var bt;return(bt=xe==null?void 0:xe.onThroughputEstimationChanged)==null?void 0:bt.call(xe,Lt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Lt=>{var bt;return(bt=xe==null?void 0:xe.onTrafficSavingEnabledChanged)==null?void 0:bt.call(xe,Lt)})),this.subscription.add(new Gi.Observable(Lt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(bt=>Lt.next(bt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Gi.skip)(1):Lt=>Lt).subscribe(Lt=>{var bt;return(bt=xe==null?void 0:xe.onCurrentPlaybackRateChanged)==null?void 0:bt.call(xe,Lt)})),this.subscription.add(this.store.state.volume$.subscribe(Lt=>{var bt;return(bt=xe==null?void 0:xe.onVolumeChange)==null?void 0:bt.call(xe,Lt)})),this.subscription.add(this.store.state.muted$.subscribe(Lt=>{var bt,Dt;return Lt?(bt=xe==null?void 0:xe.onMute)==null?void 0:bt.call(xe):(Dt=xe==null?void 0:xe.onUnmute)==null?void 0:Dt.call(xe)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Lt=>{var bt;return(bt=xe==null?void 0:xe.onVideoBitrateChanged)==null?void 0:bt.call(xe,Lt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Lt=>{var bt;let Dt=(bt=this.store)==null?void 0:bt.ui.controls.disabledControls$;Dt&&(Lt&&!Dt.includes(Xl)&&Dt.add(Xl),Lt||Dt.remove(Xl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Lt=>{var bt;if(!Jd.clientChecker.browser.isSamsungBrowser||!Lt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((bt=this.videoConfig)==null?void 0:bt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Lt=>{var bt;return(bt=xe==null?void 0:xe.onVSIDChanged)==null?void 0:bt.call(xe,Lt)})),this.initMediaSession(),D(kn,pe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ie,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ue,thumbUrl:ct,subtitles:At,live:Nt,preload:b,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,supportLink:k,showAds:V,adsSlotId:W,adsParams:O,adsPreviewParam:F,adsAutoplayParam:Q,duration:It,logoClickable:re,logoHidden:le,isMobile:Me!=null?Me:Ae,failoverHosts:ne,fullScreenTarget:Ee,saveRate:De,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ze,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ze,showEndScreen:we,showAutoplayNext:Ve}));let Yi={target:this.playerContainer,props:r(kn)};this.svelteRootComponent=Jr(ev,Yi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(xi=(ni=(it=this.videoConfig)==null?void 0:it.callbacks)==null?void 0:ni.onInited)==null||xi.call(ni)),(et=this.internalsExposure)==null||et.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Vi=(jt=this.videoConfig)==null?void 0:jt.callbacks)!=null&&Vi.onDevNullLog)?xl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):xl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Jd.clientChecker.isInited$.subscribe(it=>{it&&(console.log("UI SDK async start"),Wt())}):Wt()}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&&(0,Gi.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n;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:y}=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:y,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(b=>{if(!this.isInited)return;let C=this.store;b?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(b=>{this.store&&this.store.state.isInteractiveExpectation$.set(b)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(b=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...b.config,title:(l==null?void 0:l.title)||b.config.title};let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(b.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:b,actionType:C})=>{var T,I,M,P,k,V;if(!this.store||!this.microStoresRoot)return;let W=u.getValue();if(b==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Jl)),b==="action-choice-canceled"){let Y=Se(this.store.state.isPlaying$)||W;if(((M=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?M:(I=this.videoConfig)!=null&&I.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(P=this.videoConfig)==null?void 0:(k=P.callbacks).onDisabledInteractiveClick)==null||V.call(k)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:b,removeAllOpenURI:C})=>{this.store&&b==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(Jl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let b=this.interactiveController.getHistoryState();this.subscription.add(b.history$.subscribe(C=>{var T,I,M;C.length&&((M=(I=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||M.call(I,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var b,C,T,I;(b=this.microStoresRoot)==null||b.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(b=>{this.log({message:b.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,s,d,l,p,m,y,u,$,w,b,C,T,I,M,P,k,V,W,Y,F,Q,ie,Z;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Iu(Sx,(0,Gi.cloneDeepWith)(e,re=>re instanceof HTMLElement?re:void 0)),this.uiConfig=Jg((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 Gi.InternalsExposure("UI"))),xl.devNull.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:[(0,o0.now)()]}),(0,Gi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(m=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?m:!0),(0,Gi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(y=this.uiConfig.features.pip)!=null?y: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=(b=this.uiConfig.isMobile)!=null?b:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((k=this.uiConfig.showLogo)!=null?k:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(W=this.videoConfig.supportLink)!=null?W:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Y=this.uiConfig.features.endScreen)!=null?Y:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(F=this.uiConfig.features.autoplayNext)!=null?F:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Q=this.uiConfig.features.nextPrevButtons)!=null?Q:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ie=this.videoConfig.videos)!=null&&ie[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let re={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Tu.getLatestSupportedVersion(re):this.pictureInPictureApi=new ea(re)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Su:void 0,this.slotsApi=this.uiConfig.features.slots?new bu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new ku(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]),j1(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(kn)&&(r(kn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(kn).nextButtonActive=this.isNextButtonActive(),r(kn).prevButtonActive=this.isPrevButtonActive(),r(kn).endScreenVideoTitle=o.nextVideoTitle,r(kn).endScreenVideoThumb=o.nextVideoThumb,r(kn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(kn)&&(r(kn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(kn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(kn).nextButtonActive=this.isNextButtonActive(),r(kn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}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((0,Gi.once)()).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&&qs(e)}};var wl=require("@vkontakte/videoplayer-shared/es2018"),Vu=require("@vkontakte/videoplayer-core/es2018"),Cx=()=>{window.customElements.define("vk-video-player",Lu)};
|