@vkontakte/videoplayer 1.1.60 → 1.1.61-dev.1a35cfce.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 +97 -66
- package/es2015.esm.js +97 -66
- package/es2018.cjs.js +97 -66
- package/es2018.esm.js +97 -66
- package/es2024.cjs.js +97 -66
- package/es2024.esm.js +97 -66
- package/esnext.cjs.js +97 -66
- package/esnext.esm.js +97 -66
- package/evergreen.esm.js +97 -66
- package/package.json +5 -5
- package/types/config.d.ts +16 -0
- package/types/store/index.d.ts +5 -0
package/es2018.cjs.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.
|
|
3
|
-
* Thu,
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-
|
|
2
|
+
* @vkontakte/videoplayer v1.1.61-dev.1a35cfce.0
|
|
3
|
+
* Thu, 17 Apr 2025 15:36:16 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-61/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var
|
|
6
|
+
"use strict";var t0=Object.create;var wl=Object.defineProperty;var i0=Object.getOwnPropertyDescriptor;var o0=Object.getOwnPropertyNames;var n0=Object.getPrototypeOf,r0=Object.prototype.hasOwnProperty;var sv=t=>{throw TypeError(t)};var s0=(t,e,i)=>e in t?wl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var a0=(t,e)=>{for(var i in e)wl(t,i,{get:e[i],enumerable:!0})},av=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of o0(e))!r0.call(t,n)&&n!==i&&wl(t,n,{get:()=>e[n],enumerable:!(o=i0(e,n))||o.enumerable});return t};var lv=(t,e,i)=>(i=t!=null?t0(n0(t)):{},av(e||!t||!t.__esModule?wl(i,"default",{value:t,enumerable:!0}):i,t)),l0=t=>av(wl({},"__esModule",{value:!0}),t);var Mn=(t,e,i)=>s0(t,typeof e!="symbol"?e+"":e,i),Bu=(t,e,i)=>e.has(t)||sv("Cannot "+i);var Ii=(t,e,i)=>(Bu(t,e,"read from private field"),i?i.call(t):e.get(t)),ps=(t,e,i)=>e.has(t)?sv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Sa=(t,e,i,o)=>(Bu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),dv=(t,e,i)=>(Bu(t,e,"access private method"),i);var dx={};a0(dx,{ControlButtonType:()=>xd,GridTypes:()=>Ir,InterfaceLanguage:()=>vl.InterfaceLanguage,MenuItemType:()=>el,PlayerPhase:()=>$s,VERSION:()=>Zs,VKNumericLanguage:()=>vl.VKNumericLanguage,VideoFormat:()=>Pu.VideoFormat,VideoQuality:()=>Pu.VideoQuality,loadVKLangPack:()=>vl.loadVKLangPack,registerPlayerWebComponent:()=>lx});module.exports=l0(dx);var fs="[",Vs="[!",Rs="]",Qr={};var ki=Symbol(),ui=Symbol("filename"),cv=Symbol("hmr"),uv="http://www.w3.org/1999/xhtml",Du="http://www.w3.org/2000/svg";var lc=!0;var pv,fv,Ou=(fv=(pv=globalThis.process)==null?void 0:pv.env)==null?void 0:fv.NODE_ENV;Ou||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Te=Ou&&!Ou.toLowerCase().includes("prod");var Oo=Symbol("$state"),Gr=Symbol("$state metadata"),Sl=Symbol("legacy props"),mv=Symbol("");var $r=Array.isArray,vv=Array.prototype.indexOf,Cl=Array.from,Hu=Object.keys,to=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,dc=Object.getOwnPropertyDescriptors,Fu=Object.prototype,gv=Array.prototype,Yr=Object.getPrototypeOf;function ms(t){return typeof t=="function"}var ie=()=>{};function hv(t){return t()}function vs(t){for(var e=0;e<t.length;e++)t[e]()}var Tl=[],Uu=[];function _v(){var t=Tl;Tl=[],vs(t)}function d0(){var t=Uu;Uu=[],vs(t)}function Yo(t){Tl.length===0&&queueMicrotask(_v),Tl.push(t)}function zu(){Tl.length>0&&_v(),Uu.length>0&&d0()}function cc(t){return t===this.v}function Ca(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function bv(t,e){return t!==e}function Ta(t){return!Ca(t,this.v)}function $v(){if(Te){let t=new Error(`derived_references_self
|
|
7
7
|
A derived value cannot reference itself recursively
|
|
8
|
-
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function
|
|
8
|
+
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function yv(t){if(Te){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 xv(){if(Te){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 wv(t){if(Te){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 Sv(){if(Te){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 Cv(){if(Te){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 Tv(){if(Te){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 Iv(t){if(Te){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 kv(t){if(Te){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 Ev(t){if(Te){let e=new Error(`rune_outside_svelte
|
|
21
21
|
The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
22
|
-
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function
|
|
22
|
+
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Av(){if(Te){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Pv(){if(Te){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 Mv(){if(Te){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 Lv(){if(Te){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 Br=!1,Dr=!1;function Vv(){Br=!0}var Il=null;function jr(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;to(e,"stack",{value:n.join(`
|
|
25
|
+
`)}),to(e,"name",{value:`${t}Error`})}return e}var Ns=new Set,Ia=new Map;function Qu(t){Ns=t}function Bi(t,e){var i={f:0,v:t,reactions:null,equals:cc,rv:0,wv:0};return Te&&Dr&&(i.created=e!=null?e:jr("CreatedAt"),i.debug=null),i}function ee(t){return c0(Bi(t))}function Xr(t,e=!1){var o,n;let i=Bi(t);return e||(i.equals=Ta),Br&&Tt!==null&&Tt.l!==null&&((n=(o=Tt.l).s)!=null?n:o.s=[]).push(i),i}function c0(t){return Dt!==null&&!Rn&&(Dt.f&2)!==0&&(yr===null?Bv([t]):yr.push(t)),t}function O(t,e){return Dt!==null&&!Rn&&Or()&&(Dt.f&18)!==0&&(yr===null||!yr.includes(t))&&Lv(),ka(t,e)}function ka(t,e){var o;if(!t.equals(e)){var i=t.v;if(Ds?Ia.set(t,e):Ia.set(t,i),t.v=e,t.wv=El(),Te&&Dr&&(t.updated=jr("UpdatedAt"),wt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),Nv(t,2048),Or()&&wt!==null&&(wt.f&1024)!==0&&(wt.f&96)===0&&(Vn===null?Dv([t]):Vn.push(t)),Te&&Ns.size>0){let n=Array.from(Ns);for(let a of n)(a.f&1024)!==0&&Xo(a,4096),gs(a)&&Ea(a);Ns.clear()}}return e}function Nv(t,e){var i=t.reactions;if(i!==null)for(var o=Or(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===wt)){if(Te&&(d&262144)!==0){Ns.add(s);continue}Xo(s,e),(d&1280)!==0&&((d&2)!==0?Nv(s,4096):Aa(s))}}}function m(t){var e=2050,i=Dt!==null&&(Dt.f&2)!==0?Dt:null;wt===null||i!==null&&(i.f&256)!==0?e|=256:wt.f|=1048576;let o={ctx:Tt,deps:null,effects:null,equals:cc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:wt};return Te&&Dr&&(o.created=jr("CreatedAt")),o}function wr(t){let e=m(t);return e.equals=Ta,e}function uc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)oo(e[i])}}var Gu=[];function u0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function p0(t){var e,i=wt;if(io(u0(t)),Te){let o=Ns;Qu(new Set);try{Gu.includes(t)&&$v(),Gu.push(t),uc(t),e=pc(t)}finally{io(i),Qu(o),Gu.pop()}}else try{uc(t),e=pc(t)}finally{io(i)}return e}function ju(t){var e=p0(t),i=(Jr||(t.f&256)!==0)&&t.deps!==null?4096:1024;Xo(t,i),t.equals(e)||(t.v=e,t.wv=El())}var Os="font-weight: bold",Hs="font-weight: normal";function Ov(t,e,i){Te?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`,
|
|
27
|
+
https://svelte.dev/e/hydration_attribute_changed`,Os,Hs):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Hv(t){Te?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`,
|
|
29
|
+
https://svelte.dev/e/hydration_html_changed`,Os,Hs):console.warn("https://svelte.dev/e/hydration_html_changed")}function Fs(t){Te?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`,
|
|
31
|
+
https://svelte.dev/e/hydration_mismatch`,Os,Hs):console.warn("https://svelte.dev/e/hydration_mismatch")}function Fv(){Te?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`,
|
|
33
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Os,Hs):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Uv(t,e,i){Te?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`,
|
|
35
|
+
https://svelte.dev/e/ownership_invalid_binding`,Os,Hs):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Zu(t,e){Te?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`,
|
|
37
|
+
https://svelte.dev/e/ownership_invalid_mutation`,Os,Hs):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function fc(t){Te?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`,
|
|
39
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Os,Hs):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var je=!1;function no(t){je=t}var mt;function pi(t){if(t===null)throw Fs(),Qr;return mt=t}function Li(){return pi(To(mt))}function g(t){if(je){if(To(mt)!==null)throw Fs(),Qr;mt=t}}function _e(t=1){if(je){for(var e=t,i=mt;e--;)i=To(i);mt=i}}function Pa(){for(var t=0,e=mt;;){if(e.nodeType===8){var i=e.data;if(i===Rs){if(t===0)return e;t-=1}else(i===fs||i===Vs)&&(t+=1)}var o=To(e);e.remove(),e=o}}function me(t,e=null,i){var p,f;var o=null;if(Te&&Dr&&(o=jr("CreatedAt")),typeof t!="object"||t===null||Oo in t)return t;let n=Yr(t);if(n!==Fu&&n!==gv)return t;var a=new Map,s=$r(t),d=Bi(0);s&&a.set("length",Bi(t.length,o));var l;if(Te)if(l={parent:e,owners:null},i){let _=(f=(p=i.v)==null?void 0:p[Gr])==null?void 0:f.owners;l.owners=_?new Set(_):null}else l.owners=e===null?Tt!==null?new Set([Tt.function]):null:new Set;return new Proxy(t,{defineProperty(_,u,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&Av();var w=a.get(u);return w===void 0?(w=Bi($.value,o),a.set(u,w)):O(w,me($.value,l)),!0},deleteProperty(_,u){var $=a.get(u);if($===void 0)u in _&&a.set(u,Bi(ki,o));else{if(s&&typeof u=="string"){var w=a.get("length"),y=Number(u);Number.isInteger(y)&&y<w.v&&O(w,y)}O($,ki),zv(d)}return!0},get(_,u,$){var A;if(Te&&u===Gr)return l;if(u===Oo)return t;var w=a.get(u),y=u in _;if(w===void 0&&(!y||(A=Ln(_,u))!=null&&A.writable)&&(w=Bi(me(y?_[u]:ki,l),o),a.set(u,w)),w!==void 0){var S=r(w);if(Te){var I=S==null?void 0:S[Gr];I&&(I==null?void 0:I.parent)!==l&&Xu(l,I)}return S===ki?void 0:S}return Reflect.get(_,u,$)},getOwnPropertyDescriptor(_,u){var $=Reflect.getOwnPropertyDescriptor(_,u);if($&&"value"in $){var w=a.get(u);w&&($.value=r(w))}else if($===void 0){var y=a.get(u),S=y==null?void 0:y.v;if(y!==void 0&&S!==ki)return{enumerable:!0,configurable:!0,value:S,writable:!0}}return $},has(_,u){var S;if(Te&&u===Gr||u===Oo)return!0;var $=a.get(u),w=$!==void 0&&$.v!==ki||Reflect.has(_,u);if($!==void 0||wt!==null&&(!w||(S=Ln(_,u))!=null&&S.writable)){$===void 0&&($=Bi(w?me(_[u],l):ki,o),a.set(u,$));var y=r($);if(y===ki)return!1}return w},set(_,u,$,w){var U;var y=a.get(u),S=u in _;if(s&&u==="length")for(var I=$;I<y.v;I+=1){var A=a.get(I+"");A!==void 0?O(A,ki):I in _&&(A=Bi(ki,o),a.set(I+"",A))}if(y===void 0?(!S||(U=Ln(_,u))!=null&&U.writable)&&(y=Bi(void 0,o),O(y,me($,l)),a.set(u,y)):(S=y.v!==ki,O(y,me($,l))),Te){var P=$==null?void 0:$[Gr];P&&(P==null?void 0:P.parent)!==l&&Xu(l,P),qv(l)}var E=Reflect.getOwnPropertyDescriptor(_,u);if(E!=null&&E.set&&E.set.call(w,$),!S){if(s&&typeof u=="string"){var T=a.get("length"),V=Number(u);Number.isInteger(V)&&V>=T.v&&O(T,V+1)}zv(d)}return!0},ownKeys(_){r(d);var u=Reflect.ownKeys(_).filter(y=>{var S=a.get(y);return S===void 0||S.v!==ki});for(var[$,w]of a)w.v!==ki&&!($ in _)&&u.push($);return u},setPrototypeOf(){Pv()}})}function zv(t,e=1){O(t,t.v+e)}function mc(t){return t!==null&&typeof t=="object"&&Oo in t?t[Oo]:t}function Kv(){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(mc(this[l])===a){fc("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(mc(this[l])===a){fc("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(mc(this[l])===a){fc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Us,Wv,Al,Qv,Gv;function vc(){if(Us===void 0){Us=window,Wv=document,Al=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;Qv=Ln(e,"firstChild").get,Gv=Ln(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,Te&&(t.__svelte_meta=null,Kv())}}function Jo(t=""){return document.createTextNode(t)}function fi(t){return Qv.call(t)}function To(t){return Gv.call(t)}function h(t,e){if(!je)return fi(t);var i=fi(mt);if(i===null)i=mt.appendChild(Jo());else if(e&&i.nodeType!==3){var o=Jo();return i==null||i.before(o),pi(o),o}return pi(i),i}function ue(t,e){var n,a;if(!je){var i=fi(t);return i.nodeType===8&&i.data===""?To(i):i}if(e&&((n=mt)==null?void 0:n.nodeType)!==3){var o=Jo();return(a=mt)==null||a.before(o),pi(o),o}return mt}function M(t,e=1,i=!1){let o=je?mt:t;for(var n;e--;)n=o,o=To(o);if(!je)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=Jo();return o===null?n==null||n.after(s):o.before(s),pi(s),s}return pi(o),o}function Pl(t){t.textContent=""}var Yv=new WeakSet,gc=!1,Vl=!1,Ml=null,zs=!1,Ds=!1;function tp(t){Ds=t}var Ll=[],_c=[],Dt=null,Rn=!1;function fo(t){Dt=t}var wt=null;function io(t){wt=t}var yr=null;function Bv(t){yr=t}var en=null,Bn=0,Vn=null;function Dv(t){Vn=t}var eg=1,bc=0,Jr=!1,kl=null;function El(){return++eg}function gs(t){var _,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&&wt!==null&&!Jr,l=i.length;if(s||d){var p=t,f=p.parent;for(n=0;n<l;n++)a=i[n],(s||!((_=a==null?void 0:a.reactions)!=null&&_.includes(p)))&&((u=a.reactions)!=null?u:a.reactions=[]).push(p);s&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<l;n++)if(a=i[n],gs(a)&&ju(a),a.wv>t.wv)return!0}(!o||wt!==null&&!Jr)&&Xo(t,1024)}return!1}function jv(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 gc=!1,t}function Zv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function La(t,e,i,o){var f,_;if(gc){if(i===null&&(gc=!1),Zv(e))throw t;return}if(i!==null&&(gc=!0),!Te||o===null||!(t instanceof Error)||Yv.has(t)){jv(t,e);return}Yv.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let s=o;for(;s!==null;){if(Te){var d=(_=s.function)==null?void 0:_[ui];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=Al?" ":" ";to(t,"message",{value:t.message+`
|
|
40
40
|
${n.map(u=>`
|
|
41
41
|
${l}in ${u}`).join("")}
|
|
42
|
-
`}),
|
|
43
|
-
`),$=[];for(let w=0;w<u.length;w++){let y=u[w];y.includes("svelte/src/internal")||$.push(y)}
|
|
44
|
-
`)})}if(
|
|
45
|
-
`)){let n=(i
|
|
42
|
+
`}),to(t,"component_stack",{value:n});let p=t.stack;if(p){let u=p.split(`
|
|
43
|
+
`),$=[];for(let w=0;w<u.length;w++){let y=u[w];y.includes("svelte/src/internal")||$.push(y)}to(t,"stack",{value:$.join(`
|
|
44
|
+
`)})}if(jv(t,e),Zv(e))throw t}function tg(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?tg(a,e,!1):e===a&&(i?Xo(a,2048):(a.f&1024)!==0&&Xo(a,4096),Aa(a))}}function pc(t){var $,w;var e=en,i=Bn,o=Vn,n=Dt,a=Jr,s=yr,d=Tt,l=Rn,p=t.f;en=null,Bn=0,Vn=null,Jr=(p&256)!==0&&(Rn||!zs||Dt===null),Dt=(p&96)===0?t:null,yr=null,Nl(t.ctx),Rn=!1,bc++;try{var f=(0,t.fn)(),_=t.deps;if(en!==null){var u;if(Rl(t,Bn),_!==null&&Bn>0)for(_.length=Bn+en.length,u=0;u<en.length;u++)_[Bn+u]=en[u];else t.deps=_=en;if(!Jr)for(u=Bn;u<_.length;u++)((w=($=_[u]).reactions)!=null?w:$.reactions=[]).push(t)}else _!==null&&Bn<_.length&&(Rl(t,Bn),_.length=Bn);if(Or()&&Vn!==null&&!Rn&&_!==null&&(t.f&6146)===0)for(u=0;u<Vn.length;u++)tg(Vn[u],t);return n!==null&&(bc++,Vn!==null&&(o===null?o=Vn:o.push(...Vn))),f}finally{en=e,Bn=i,Vn=o,Dt=n,Jr=a,yr=s,Nl(d),Rn=l}}function f0(t,e){let i=e.reactions;if(i!==null){var o=vv.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&&(en===null||!en.includes(e))&&(Xo(e,4096),(e.f&768)===0&&(e.f^=512),uc(e),Rl(e,0))}function Rl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)f0(t,i[o])}function Ea(t){var e=t.f;if((e&16384)===0){Xo(t,1024);var i=wt,o=Tt,n=zs;if(wt=t,zs=!0,Te){var a=tn;Bl(t.component_function)}try{(e&16)!==0?ig(t):op(t),ip(t);var s=pc(t);t.teardown=typeof s=="function"?s:null,t.wv=eg;var d=t.deps;if(Te&&Dr&&(t.f&2048)!==0&&d!==null)for(let p=0;p<d.length;p++){var l=d[p];l.trace_need_increase&&(l.wv=El(),l.trace_need_increase=void 0,l.trace_v=void 0)}Te&&_c.push(t)}catch(p){La(p,t,i,o||t.ctx)}finally{zs=n,wt=i,Te&&Bl(a)}}}function Xv(){console.error("Last ten effects were: ",_c.slice(-10).map(t=>t.fn)),_c=[]}function m0(){try{Sv()}catch(t){if(Te&&to(t,"stack",{value:""}),Ml!==null)if(Te)try{La(t,Ml,null,null)}catch(e){throw Xv(),e}else La(t,Ml,null,null);else throw Te&&Xv(),t}}function Ju(){var t=zs;try{var e=0;for(zs=!0;Ll.length>0;){e++>1e3&&m0();var i=Ll,o=i.length;Ll=[];for(var n=0;n<o;n++){var a=g0(i[n]);v0(a)}}}finally{Vl=!1,zs=t,Ml=null,Te&&(_c=[]),Ia.clear()}}function v0(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{gs(o)&&(Ea(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?np(o):o.fn=null))}catch(n){La(n,o,null,o.ctx)}}}function Aa(t){Vl||(Vl=!0,queueMicrotask(Ju));for(var e=Ml=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Ll.push(e)}function g0(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=Dt;try{Dt=i,gs(i)&&Ea(i)}catch(p){La(p,i,null,i.ctx)}finally{Dt=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 Va(t){var e;for(t&&(Vl=!0,Ju(),e=t()),zu();Ll.length>0;)Vl=!0,Ju(),zu();return e}async function mo(){await Promise.resolve(),Va()}function r(t){var e=t.f,i=(e&2)!==0;if(kl!==null&&kl.add(t),Dt!==null&&!Rn){yr!==null&&yr.includes(t)&&Mv();var o=Dt.deps;t.rv<bc&&(t.rv=bc,en===null&&o!==null&&o[Bn]===t?Bn++:en===null?en=[t]:(!Jr||!en.includes(t))&&en.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,gs(n)&&ju(n)),Te&&Dr&&Il!==null&&Dt!==null&&Il.reaction===Dt){if(t.debug)t.debug();else if(t.created){var s=Il.entries.get(t);s===void 0&&(s={read:[]},Il.entries.set(t,s)),s.read.push(jr("TracedAt"))}}return Ds&&Ia.has(t)?Ia.get(t):t.v}function yt(t){var e=Rn;try{return Rn=!0,t()}finally{Rn=e}}var h0=-7169;function Xo(t,e){t.f=t.f&h0|e}function yc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Oo in t)$c(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Oo in i&&$c(i)}}}function $c(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{$c(t[o],e)}catch(n){}let i=Yr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=dc(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function sp(t){wt===null&&Dt===null&&wv(t),Dt!==null&&(Dt.f&256)!==0&&wt===null&&xv(),Ds&&yv(t)}function _0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function qs(t,e,i,o=!0){var l;var n=wt;if(Te)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Tt,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(Te&&(a.component_function=tn),i)try{Ea(a),a.f|=32768}catch(p){throw oo(a),p}else e!==null&&Aa(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&&_0(a,n),Dt!==null&&(Dt.f&2)!==0)){var d=Dt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function on(t){let e=qs(8,null,!1);return Xo(e,1024),e.teardown=t,e}function Ke(t){var n;sp("$effect");var e=wt!==null&&(wt.f&32)!==0&&Tt!==null&&!Tt.m;if(Te&&to(t,"name",{value:"$effect"}),e){var i=Tt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:wt,reaction:Dt})}else{var o=yn(t);return o}}function Ra(t){return sp("$effect.pre"),Te&&to(t,"name",{value:"$effect.pre"}),vo(t)}function wc(t){let e=qs(64,t,!0);return()=>{oo(e)}}function ng(t){let e=qs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?xn(e,()=>{oo(e),o(void 0)}):(oo(e),o(void 0))})}function yn(t){return qs(4,t,!1)}function vo(t){return qs(8,t,!0)}function k(t,e=[],i=m){let o=e.map(i),n=()=>t(...o.map(r));return Te&&to(n,"name",{value:"{expression}"}),ro(n)}function ro(t,e=0){return qs(24|e,t,!0)}function Di(t,e=!0){return qs(40,t,!0,e)}function ip(t){var e=t.teardown;if(e!==null){let i=Ds,o=Dt;tp(!0),fo(null);try{e.call(null)}finally{tp(i),fo(o)}}}function op(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:oo(i,e),i=o}}function ig(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&oo(e),e=i}}function oo(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:To(o);o.remove(),o=a}i=!0}op(t,e&&!i),Rl(t,0),Xo(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();ip(t);var d=t.parent;d!==null&&d.first!==null&&np(t),Te&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function np(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 xn(t,e){var i=[];Sc(t,i,!0),ap(i,()=>{oo(t),e&&e()})}function ap(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Sc(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;Sc(o,e,a?i:!1),o=n}}}function es(t){rg(t,!0)}function rg(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),gs(t)&&(Xo(t,2048),Aa(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;rg(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var b0={},$0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,y0=/@(.+):(\d+):(\d+)$/;function x0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
|
|
45
|
+
`)){let n=(i=$0.exec(o))!=null?i:y0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function sg(){var e;let t=(e=x0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=b0[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 Cc=Symbol("ADD_OWNER");function lp(t,e,i=!1,o=!1){if(t&&!i){let n=tn,a=t[Gr];if(a&&!dp(a,n)){let s=cp(a);e&&e[ui]!==n[ui]&&!o&&Uv(n[ui],e[ui],s[ui])}}Tc(t,e,new Set)}function Xu(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 Tc(t,e,i){var a;let o=t==null?void 0:t[Gr];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),Cc in t&&t[Cc])vo(()=>{t[Cc](e)});else{var n=Yr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=ki;vo(()=>{let l=t[s];d!==l&&(d=l,Tc(l,e,i))})}else Tc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)Tc(t[s],e,i)}}}function dp(t,e){return t.owners===null?!0:t.owners.has(e)||ui in e&&[...t.owners].some(i=>i[ui]===e[ui])||t.parent!==null&&dp(t.parent,e)}function cp(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:cp(t.parent)}var w0=!1;function qv(t){if(w0)return;let e=sg();if(e&&!dp(t,e)){let i=cp(t);i[ui]!==e[ui]?Zu(e[ui],i[ui]):Zu()}}function Na(t){if(Te){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 Ct=null;function Ml(t){Ct=t}var on=null;function Ll(t){on=t}function Ra(t){return rp("getContext").get(t)}function Ba(t,e){let i=rp("setContext");return Ce&&$t(()=>ip(e,null,!0)),i.set(t,e),e}function Rl(){return rp("getAllContexts")}function q(t,e=!1,i){var o=Ct={p:Ct,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Dr&&!e&&(Ct.l={s:null,u:null,r1:[],r2:Oi(!1)}),nn(()=>{o.d=!0}),Ce&&(Ct.function=i,on=i)}function K(t){var s,d;let e=Ct;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=xt,o=Rt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];so(a.effect),yo(a.reaction),_n(a.fn)}}finally{so(i),yo(o)}}Ct=e.p,Ce&&(on=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Hr(){return!Dr||Ct!==null&&Ct.l===null}function rp(t){var e;return Ct===null&&Va(t),(e=Ct.c)!=null?e:Ct.c=new Map(w0(Ct)||void 0)}function w0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var S0=/\r/g;function ng(t){t=t.replace(S0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function rg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var C0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function sg(t){return C0.includes(t)}var T0=["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 I0={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 ag(t){var e;return t=t.toLowerCase(),(e=I0[t])!=null?e:t}var nw=[...T0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var k0=["touchstart","touchmove"];function lg(t){return k0.includes(t)}var E0=["textarea","script","style","title"];function dg(t){return E0.includes(t)}function sp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var cg=new Map;function ug(t,e){var i=cg.get(t);i||(i=new Set,cg.set(t,i)),i.add(e)}function ap(t,e){if(e){let i=document.body;t.autofocus=!0,jo(()=>{document.activeElement===i&&t.focus()})}}function Bl(t){var e=Rt,i=xt;yo(null),so(null);try{return t()}finally{yo(e),so(i)}}var lp=new Set,xc=new Set;function qs(t){if(!Ye)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 dp(t,e,i,o={}){function n(a){if(o.capture||Na.call(e,a),!a.cancelBubble)return Bl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?jo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Et(t,e,i,o,n){var a={capture:o,passive:n},s=dp(t,e,i,a);(e===document.body||e===window||e===document)&&nn(()=>{e.removeEventListener(t,s,a)})}function st(t){for(var e=0;e<t.length;e++)lp.add(t[e]);for(var i of xc)i(t)}function Na(t){var A;var e=this,i=e.ownerDocument,o=t.type,n=((A=t.composedPath)==null?void 0:A.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){ro(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Rt,_=xt;yo(null),so(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(yr(y)){var[S,...I]=y;S.apply(a,[t,...I])}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,yo(f),so(_)}}}var P0;function pg(){P0=void 0}function Da(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function So(t,e){var i=xt;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(Ye)return So(ft,null),ft;n===void 0&&(n=Da(a?t:"<!>"+t),i||(n=mi(n)));var s=o||Tl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=mi(s),l=s.lastChild;So(d,l)}else So(s,s);return s}}function be(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ye)return So(ft,null),ft;if(!s){var d=Da(a),l=mi(d);if(n)for(s=document.createDocumentFragment();mi(l);)s.appendChild(mi(l));else s=mi(l)}var p=s.cloneNode(!0);if(n){var f=mi(p),_=p.lastChild;So(f,_)}else So(p,p);return p}}function sr(t=""){if(!Ye){var e=en(t+"");return So(e,e),e}var i=ft;return i.nodeType!==3&&(i.before(i=en()),fi(i)),So(i,i),i}function qe(){if(Ye)return So(ft,null),ft;var t=document.createDocumentFragment(),e=document.createComment(""),i=en();return t.append(e,i),So(e,i),t}function b(t,e){if(Ye){xt.nodes_end=ft,Li();return}t!==null&&t.before(e)}var Nl=!0;function wc(t){Nl=t}function pe(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 ts(t,e){return mg(t,e)}function up(t,e){var s;cc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ye,n=ft;try{for(var a=mi(i);a&&(a.nodeType!==8||a.data!==fs);)a=Ao(a);if(!a)throw Qr;lo(!0),fi(a),Li();let d=mg(t,{...e,anchor:a});if(ft===null||ft.nodeType!==8||ft.data!==Vs)throw Hs(),Qr;return lo(!1),d}catch(d){if(d===Qr)return e.recover===!1&&xv(),cc(),Il(i),lo(!1),ts(t,e);throw d}finally{lo(o),fi(n),pg()}}var Oa=new Map;function mg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){cc();var d=new Set,l=_=>{for(var u=0;u<_.length;u++){var $=_[u];if(!d.has($)){d.add($);var w=lg($);e.addEventListener($,Na,{passive:w});var y=Oa.get($);y===void 0?(document.addEventListener($,Na,{passive:w}),Oa.set($,1)):Oa.set($,y+1)}}};l(yl(lp)),xc.add(l);var p=void 0,f=tg(()=>{var _=i!=null?i:e.appendChild(en());return Hi(()=>{if(a){q({});var u=Ct;u.c=a}n&&(o.$$events=n),Ye&&So(_,null),Nl=s,p=t(_,o)||{},Nl=!0,Ye&&(xt.nodes_end=ft),a&&K()}),()=>{var w;for(var u of d){e.removeEventListener(u,Na);var $=Oa.get(u);--$===0?(document.removeEventListener(u,Na),Oa.delete(u)):Oa.set(u,$)}xc.delete(l),_!==i&&((w=_.parentNode)==null||w.removeChild(_))}});return cp.set(p,f),p}var cp=new WeakMap;function Ks(t,e){let i=cp.get(t);return i?(cp.delete(t),i(e)):(Ce&&Dv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ye&&i===0&&Li();var n=t,a=null,s=null,d=Ii,l=i>0?65536:0,p=!1;let f=(u,$=!0)=>{p=!0,_($,u)},_=(u,$)=>{if(d===(d=u))return;let w=!1;if(Ye&&o!==-1){if(i===0){let S=n.data;S===fs?o=0:S===Ls?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Ea(),fi(n),lo(!1),w=!0,o=-1)}d?(a?es(a):$&&(a=Hi(()=>$(n))),s&&bn(s,()=>{s=null})):(s?es(s):$&&(s=Hi(()=>$(n,[i+1,o]))),a&&bn(a,()=>{a=null})),w&&lo(!0)};co(()=>{p=!1,e(f),p||_(null,null)},l),Ye&&(n=ft)}function Dl(t,e,i){Ye&&Li();var o=t,n=Ii,a,s=Hr()?gv:wa;co(()=>{s(n,n=e())&&(a&&bn(a),a=Hi(()=>i(o)))}),Ye&&(o=ft)}var _s=null;function mp(t){_s=t}function Ol(t,e){return e}function R0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)bc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Il(l),l.append(i),o.clear(),hs(t,e[0].prev,e[a-1].next)}tp(n,()=>{for(var p=0;p<a;p++){var f=e[p];d||(o.delete(f.k),hs(t,f.prev,f.next)),ao(f.e,!d)}})}function $i(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=Ye?fi(mi(p)):p.appendChild(en())}Ye&&Li();var f=null,_=!1,u=Sr(()=>{var $=i();return yr($)?$:$==null?[]:yl($)});co(()=>{var $=r(u),w=$.length;if(_&&w===0)return;_=w===0;let y=!1;if(Ye){var S=s.data===Ls;S!==(w===0)&&(s=Ea(),fi(s),lo(!1),y=!0)}if(Ye){for(var I=null,A,P=0;P<w;P++){if(ft.nodeType===8&&ft.data===Vs){s=ft,y=!0,lo(!1);break}var E=$[P],T=o(E,P);A=hg(ft,d,I,null,E,T,P,n,e,i),d.items.set(T,A),I=A}w>0&&fi(Ea())}Ye||B0($,d,s,n,e,o,i),a!==null&&(w===0?f?es(f):f=Hi(()=>a(s)):f!==null&&bn(f,()=>{f=null})),y&&lo(!0),r(u)}),Ye&&(s=ft)}function B0(t,e,i,o,n,a,s){var le,Ve,Me,J;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,f=e.items,_=e.first,u=_,$,w=null,y,S=[],I=[],A,P,E,T;if(d)for(T=0;T<p;T+=1)A=t[T],P=a(A,T),E=f.get(P),E!==void 0&&((le=E.a)==null||le.measure(),(y!=null?y:y=new Set).add(E));for(T=0;T<p;T+=1){if(A=t[T],P=a(A,T),E=f.get(P),E===void 0){var V=u?u.e.nodes_start:i;w=hg(V,e,w,w===null?e.first:w.next,A,P,T,o,n,s),f.set(P,w),S=[],I=[],u=w.next;continue}if(l&&N0(E,A,T,n),(E.e.f&8192)!==0&&(es(E.e),d&&((Ve=E.a)==null||Ve.unfix(),(y!=null?y:y=new Set).delete(E))),E!==u){if($!==void 0&&$.has(E)){if(S.length<I.length){var z=I[0],Y;w=z.prev;var U=S[0],Z=S[S.length-1];for(Y=0;Y<S.length;Y+=1)vg(S[Y],z,i);for(Y=0;Y<I.length;Y+=1)$.delete(I[Y]);hs(e,U.prev,Z.next),hs(e,w,U),hs(e,Z,z),u=z,w=Z,T-=1,S=[],I=[]}else $.delete(E),vg(E,u,i),hs(e,E.prev,E.next),hs(e,E,w===null?e.first:w.next),hs(e,w,E),w=E;continue}for(S=[],I=[];u!==null&&u.k!==P;)(u.e.f&8192)===0&&($!=null?$:$=new Set).add(u),I.push(u),u=u.next;if(u===null)continue;E=u}S.push(E),w=E,u=E.next}if(u!==null||$!==void 0){for(var X=$===void 0?[]:yl($);u!==null;)(u.e.f&8192)===0&&X.push(u),u=u.next;var oe=X.length;if(oe>0){var ce=(n&4)!==0&&p===0?i:null;if(d){for(T=0;T<oe;T+=1)(Me=X[T].a)==null||Me.measure();for(T=0;T<oe;T+=1)(J=X[T].a)==null||J.fix()}R0(e,X,ce,f)}}d&&jo(()=>{var Le;if(y!==void 0)for(E of y)(Le=E.a)==null||Le.apply()}),xt.first=e.first&&e.first.e,xt.last=w&&w.e}function N0(t,e,i,o){(o&1)!==0&&Ta(t.v,e),(o&2)!==0?Ta(t.i,i):t.i=i}function hg(t,e,i,o,n,a,s,d,l,p){var f=_s,_=(l&1)!==0,u=(l&16)===0,$=_?u?Xr(n):Oi(n):n,w=(l&2)===0?s:Oi(s);Ce&&_&&($.debug=()=>{var S=typeof w=="number"?s:w.v;p()[S]});var y={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};_s=y;try{return y.e=Hi(()=>d(t,$,w,p),Ye),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{_s=f}}function vg(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=Ao(a);n.before(a),a=s}}function hs(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 D0(t,e,i){var a,s;if(!e||e===ng(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=on)!=null&&s[pi]&&(o=`in ${on[pi]}`),Nv(sp(o))}function Hl(t,e,i,o,n){var a=t,s="",d;co(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ye&&Li();return}d!==void 0&&(ao(d),d=void 0),s!==""&&(d=Hi(()=>{if(Ye){for(var p=ft.data,f=Li(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=Ao(f);if(f===null)throw Hs(),Qr;Ce&&!n&&D0(f.parentNode,p,s),So(ft,_),a=fi(f);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var $=Da(u);if((i||o)&&($=mi($)),So(mi($),$.lastChild),i||o)for(;mi($);)a.before(mi($));else a.before($)}))})}function fe(t,e,...i){var o=t,n=ie,a;co(()=>{n!==(n=e())&&(a&&(ao(a),a=null),Ce&&n==null&&wv(),a=Hi(()=>n(o,...i)))},65536),Ye&&(o=ft)}function Vi(t,e,i){Ye&&Li();var o=t,n,a;co(()=>{n!==(n=e())&&(a&&(bn(a),a=null),n&&(a=Hi(()=>i(o,n))))},65536),Ye&&(o=ft)}function Fl(t,e,i,o,n,a){var w;let s=Ye;Ye&&Li();var d=Ce&&a&&((w=Ct)==null?void 0:w.function[pi]),l,p,f=null;Ye&&ft.nodeType===1&&(f=ft,Li());var _=Ye?ft:t,u,$=_s;co(()=>{let y=e()||null;var S=n?n():i||y==="svg"?Mu:null;if(y!==l){var I=_s;mp($),u&&(y===null?bn(u,()=>{u=null,p=null}):y===p?es(u):(ao(u),wc(!1))),y&&y!==p&&(u=Hi(()=>{if(f=Ye?f:S?document.createElementNS(S,y):document.createElement(y),Ce&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),So(f,f),o){Ye&&dg(y)&&f.append(document.createComment(""));var A=Ye?mi(f):f.appendChild(en());Ye&&(A===null?lo(!1):fi(A)),o(f,A)}xt.nodes_end=f,_.before(f)})),l=y,l&&(p=l),wc(!0),mp(I)}},65536),s&&(lo(!0),fi(_))}var gp;function _g(t){return gp=t.target,new vp(t)}var is,ar,vp=class{constructor(e){ps(this,is);ps(this,ar);var a,s;var i=new Map,o=(d,l)=>{var p=Xr(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===$l?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var f;return O((f=i.get(l))!=null?f:o(l,p),p),Reflect.set(d,l,p)}});xa(this,ar,(e.hydrate?up:ts)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Ma(),xa(this,is,n.$$events);for(let d of Object.keys(Ti(this,ar)))d==="$set"||d==="$destroy"||d==="$on"||ro(this,d,{get(){return Ti(this,ar)[d]},set(l){Ti(this,ar)[d]=l},enumerable:!0});Ti(this,ar).$set=d=>{Object.assign(n,d)},Ti(this,ar).$destroy=()=>{Ks(Ti(this,ar))}}$set(e){Ti(this,ar).$set(e)}$on(e,i){Ti(this,is)[e]=Ti(this,is)[e]||[];let o=(...n)=>i.call(this,...n);return Ti(this,is)[e].push(o),()=>{Ti(this,is)[e]=Ti(this,is)[e].filter(n=>n!==o)}}$destroy(){Ti(this,ar).$destroy()}};is=new WeakMap,ar=new WeakMap;function Q(t,e){jo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=gp)==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),Ce&&ug(e.hash,d)}})}function bg(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=bg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function $g(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=bg(t))&&(o&&(o+=" "),o+=e);return o}function Ul(t){return typeof t=="object"?$g(t):t!=null?t:""}var yg=[...`
|
|
48
|
-
\r\f\xA0\v\uFEFF`];function wg(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||yg.includes(o[s-1]))&&(d===o.length||yg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function xg(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 hp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Sg(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(hp)),n&&l.push(...Object.keys(n).map(hp));var p=0,f=-1;let y=t.length;for(var _=0;_<y;_++){var u=t[_];if(d?u==="/"&&t[_-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[_+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&f===-1)f=_;else if(u===";"||_===y-1){if(f!==-1){var $=hp(t.substring(p,f).trim());if(!l.includes($)){u!==";"&&_++;var w=t.substring(p,_).trim();i+=" "+w+";"}}p=_+1,f=-1}}}}return o&&(i+=xg(o)),n&&(i+=xg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var s=t.__className;if(Ye||s!==i){var d=wg(i,o,a);(!Ye||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 _p(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function ot(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=Sg(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(_p(t,i==null?void 0:i[0],o[0]),_p(t,i==null?void 0:i[1],o[1],"important")):_p(t,i,o));return o}var Ha=Symbol("class"),Fa=Symbol("style"),Ig=Symbol("is custom element"),kg=Symbol("is html");function Eg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Oe(t,e,i,o){var n=Ag(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||K0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[uv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Pg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function we(t,e,i,o,n=!1){var E;var a=Ag(t),s=a[Ig],d=!a[kg];let l=Ye&&s;l&&lo(!1);var p=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Ul(i.class):(o||i[Ha])&&(i.class=null),i[Fa]&&((E=i.style)!=null||(i.style=null));var u=Pg(t);for(let T in i){let V=i[T];if(f&&T==="value"&&V==null){t.value=t.__value="",p[T]=V;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,$,V,o,e==null?void 0:e[Ha],i[Ha]),p[T]=V,p[Ha]=i[Ha];continue}if(T==="style"){ot(t,V,e==null?void 0:e[Fa],i[Fa]),p[T]=V,p[Fa]=i[Fa];continue}var w=p[T];if(V!==w){p[T]=V;var y=T[0]+T[1];if(y!=="$$")if(y==="on"){let z={},Y="$$"+T,U=T.slice(2);var S=sg(U);if(rg(U)&&(U=U.slice(0,-7),z.capture=!0),!S&&w){if(V!=null)continue;t.removeEventListener(U,p[Y],z),p[Y]=null}if(V!=null)if(S)t[`__${U}`]=V,st([U]);else{let Z=function(X){p[T].call(this,X)};var P=Z;p[Y]=dp(U,t,Z,z)}else S&&(t[`__${U}`]=void 0)}else if(T==="style")Oe(t,T,V);else if(T==="autofocus")ap(t,!!V);else if(!s&&(T==="__value"||T==="value"&&V!=null))t.value=t.__value=V;else if(T==="selected"&&f)Eg(t,V);else{var I=T;d||(I=ag(I));var A=I==="defaultValue"||I==="defaultChecked";if(V==null&&!s&&!A)if(a[T]=null,I==="value"||I==="checked"){let z=t,Y=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=Y?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=Y?U:!1}}else t.removeAttribute(T);else A||u.includes(I)&&(s||typeof V!="string")?t[I]=V:typeof V!="function"&&Oe(t,I,V,n)}}}return l&&lo(!0),p}function Ag(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Ig]:t.nodeName.includes("-"),[kg]:t.namespaceURI===lv}}var Cg=new Map;function Pg(t){var e=Cg.get(t.nodeName);if(e)return e;Cg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=nc(o);for(var a in i)i[a].set&&e.push(a);o=Yr(o)}return e}function K0(t,e,i){var o;Ce&&(e==="srcset"&&W0(t,i)||bp((o=t.getAttribute(e))!=null?o:"",i)||Bv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function bp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Tg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function W0(t,e){var i=Tg(t.srcset),o=Tg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(bp(i[s][0],n)||bp(n,i[s][0])))}var Q0=oc?()=>performance.now():()=>Date.now(),Tr={tick:t=>(oc?requestAnimationFrame:ie)(t),now:()=>Q0(),tasks:new Set};function Mg(){let t=Tr.now();Tr.tasks.forEach(e=>{e.c(t)||(Tr.tasks.delete(e),e.f())}),Tr.tasks.size!==0&&Tr.tick(Mg)}function Lg(t){let e;return Tr.tasks.size===0&&Tr.tick(Mg),{promise:new Promise(i=>{Tr.tasks.add(e={c:t,f:i})}),abort(){Tr.tasks.delete(e)}}}function Sc(t,e){Bl(()=>{t.dispatchEvent(new CustomEvent(e))})}function Z0(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Vg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=Z0(n.trim());e[s]=a.trim()}return e}var X0=t=>t;function yp(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,f=e.inert,_=e.style.overflow,u,$;function w(){var V;var E=Rt,T=xt;yo(null),so(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{yo(E),so(T)}}var y={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||u==null||u.abort(),Sc(e,"introstart"),u=$p(e,w(),$,1,()=>{Sc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),p=void 0;return}e.inert=!0,Sc(e,"outrostart"),$=$p(e,w(),u,0,()=>{Sc(e,"outroend"),E==null||E()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},S=xt;if(((P=S.transitions)!=null?P:S.transitions=[]).push(y),n&&Nl){var I=d;if(!I){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);I=!A||(A.f&32768)!==0}I&&_n(()=>{$t(()=>y.in())})}}function $p(t,e,i,o,n){var a=o===1;if(ms(e)){var s,d=!1;return jo(()=>{if(!d){var S=e({direction:a?"in":"out"});s=$p(t,S,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:f,easing:_=X0}=e;var u=[];if(a&&i===void 0&&(f&&f(0,1),p)){var $=Vg(p(0,1));u.push($,$)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var U;var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-S,A=e.duration*Math.abs(I),P=[];if(A>0){var E=!1;if(p)for(var T=Math.ceil(A/16.666666666666668),V=0;V<=T;V+=1){var z=S+I*_(V/T),Y=Vg(p(z,1-z));P.push(Y),E||(E=Y.overflow==="hidden")}E&&(t.style.overflow="hidden"),w=()=>{var Z=y.currentTime;return S+I*_(Z/A)},f&&Lg(()=>{if(y.playState!=="running")return!1;var Z=w();return f(Z,1-Z),!0})}y=t.animate(P,{duration:A,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var bs,Ua,zl,Tc,Rg,Ic=class Ic{constructor(e){ps(this,Tc);ps(this,bs,new WeakMap);ps(this,Ua);ps(this,zl);xa(this,zl,e)}observe(e,i){var o=Ti(this,bs).get(e)||new Set;return o.add(i),Ti(this,bs).set(e,o),sv(this,Tc,Rg).call(this).observe(e,Ti(this,zl)),()=>{var n=Ti(this,bs).get(e);n.delete(i),n.size===0&&(Ti(this,bs).delete(e),Ti(this,Ua).unobserve(e))}}};bs=new WeakMap,Ua=new WeakMap,zl=new WeakMap,Tc=new WeakSet,Rg=function(){var e;return(e=Ti(this,Ua))!=null?e:xa(this,Ua,new ResizeObserver(i=>{for(var o of i){Ic.entries.set(o.target,o);for(var n of Ti(this,bs).get(o.target)||[])n(o)}}))},Fn(Ic,"entries",new WeakMap);var xp=Ic;var t_=new xp({box:"border-box"});function Fr(t,e,i){var o=t_.observe(t,()=>i(t[e]));_n(()=>($t(()=>i(t[e])),o))}function Bg(t,e){return t===e||(t==null?void 0:t[Ho])===e}function ct(t={},e,i,o){return _n(()=>{var n,a;return wo(()=>{n=a,a=(o==null?void 0:o())||[],$t(()=>{t!==i(...a)&&(e(t,...a),n&&Bg(i(...n),t)&&e(null,...n))})}),()=>{jo(()=>{a&&Bg(i(...a),t)&&e(null,...a)})}}),t}function Ir(t=!1){let e=Ct,i=e.l.u;if(!i)return;let o=()=>gc(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&La(()=>{Ng(e,o),vs(i.b)}),je(()=>{let n=$t(()=>i.m.map(mv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&je(()=>{Ng(e,o),vs(i.a)})}function Ng(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ce){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Tv(e)},set:o=>{i=o}})}};o_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var o_;function Dt(t){Ct===null&&Va("onMount"),Dr&&Ct.l!==null?i_(Ct).m.push(t):je(()=>{let e=$t(t);if(typeof e=="function")return e})}function $n(t){Ct===null&&Va("onDestroy"),Dt(()=>()=>$t(t))}function i_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function ql(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=$t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var za=[];function lr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ie){let i=null,o=new Set;function n(d){if(wa(t,d)&&(t=d,i)){let l=!za.length;for(let p of o)p[1](),za.push(p,t);if(l){for(let p=0;p<za.length;p+=2)za[p][0](za[p+1]);za.length=0}}}function a(d){n(d(t))}function s(d,l=ie){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||ie),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function vi(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 lr(i,(s,d)=>{let l=!1,p=[],f=0,_=ie,u=()=>{if(f)return;_();let w=e(o?p[0]:p,s,d);a?s(w):_=typeof w=="function"?w:ie},$=n.map((w,y)=>ql(w,S=>{p[y]=S,f&=~(1<<y),l&&u()},()=>{f|=1<<y}));return l=!0,u(),function(){vs($),_(),l=!1}})}function xe(t){let e;return ql(t,i=>e=i)(),e}var kc=!1,wp=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Xr(void 0),unsubscribe:ie};if(o.store!==t&&!(wp 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=ql(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&wp in i?xe(t):r(o.source)}function Ue(){let t={};function e(){nn(()=>{for(var i in t)t[i].unsubscribe();ro(t,wp,{enumerable:!1,value:!0})})}return[t,e]}function Sp(t){var e=kc;try{return kc=!1,[t(),kc]}finally{kc=e}}var c_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ce&&Cv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ie(t,e,i){return new Proxy(Ce?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},c_)}var u_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ms(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];ms(n)&&(n=n());let a=Un(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(ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Un(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ho||e===$l)return!1;for(let i of t.props)if(ms(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ms(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function os(...t){return new Proxy({props:t},u_)}function Dg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var z,Y;var n=(i&1)!==0,a=!Dr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=Sp(()=>t[e]):p=t[e];var f=Ho in t||$l in t,_=s&&((Y=(z=Un(t,e))==null?void 0:z.set)!=null?Y:f&&e in t&&(U=>t[e]=U))||void 0,u=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?u=$t(o):u=o),u);p===void 0&&o!==void 0&&(_&&a&&Sv(e),p=y(),_&&_(p));var S;if(a)S=()=>{var U=t[e];return U===void 0?y():($=!0,w=!1,U)};else{var I=(n?m:Sr)(()=>t[e]);I.f|=131072,S=()=>{var U=r(I);return U!==void 0&&(u=void 0),U===void 0?u:U}}if((i&4)===0)return S;if(_){var A=t.$$legacy;return function(U,Z){return arguments.length>0?((!a||!Z||A||l)&&_(Z?S():U),U):S()}}var P=!1,E=!1,T=Xr(p),V=m(()=>{var U=S(),Z=r(T);return P?(P=!1,E=!0,Z):(E=!1,T.v=U)});return s&&r(V),n||(V.equals=Sa),function(U,Z){if(Sl!==null&&(P=E,S(),r(T)),arguments.length>0){let X=Z?r(V):a&&s?ge(U):U;if(!V.equals(X)){if(P=!0,O(T,X),w&&u!==void 0&&(u=X),Dg(V))return U;$t(()=>r(V))}return U}return Dg(V)?V.v:r(V)}}var p_;typeof HTMLElement=="function"&&(p_=class extends HTMLElement{constructor(e,i,o){super();Fn(this,"$$ctor");Fn(this,"$$s");Fn(this,"$$c");Fn(this,"$$cn",!1);Fn(this,"$$d",{});Fn(this,"$$r",!1);Fn(this,"$$p_d",{});Fn(this,"$$l",{});Fn(this,"$$l_u",new Map);Fn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=f_(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]=Cp(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=_g({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=_c(()=>{wo(()=>{var a;this.$$r=!0;for(let s of Vu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Cp(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]=Cp(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 Vu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Cp(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 f_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Og="5";var Hg,Fg,Ug;typeof window!="undefined"&&((Ug=(Fg=(Hg=window.__svelte)!=null?Hg:window.__svelte={}).v)!=null?Ug:Fg.v=new Set).add(Og);var O1=require("@vkontakte/videoplayer-core/es2018"),DW=require("@vkontakte/videoplayer-core/es2018"),ha=require("@vkontakte/videoplayer-shared/es2018"),H1=require("@vkontakte/videoplayer-statistics/es2018");var Ws=require("@vkontakte/videoplayer-shared/es2018");var v_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Ws.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:Ws.VideoQuality.Q_480P,highQualityLimit:Ws.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,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!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},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}},zg=t=>(0,Ws.fillWithDefault)(t,v_),qg=t=>Ba("ui-config",t),Kt=()=>Ra("ui-config");var Kl="vk_player_debug_panel_opened";var Kg="videoplayer",Wg="videoplayer";var Ur={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Qg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Gg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Yg=new Set(["ShiftRight","ShiftLeft"]);var jg=["TIMELINE"],Wl=[...jg,"GRAPH_BUTTON"],Tp=[...jg,"PLAY_BUTTON"],Ql=[...Wl,"PLAY_BUTTON"];var kr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(kr||{}),Gs={xs:0,s:1,m:2,l:3,xl:4};var Gl=require("@vkontakte/videoplayer-shared/es2018"),Zg=require("@vkontakte/videoplayer-core/es2018"),Xg=require("@vkontakte/videoplayer-statistics/es2018");var Ec="prod",Ys="1.1.60";var js=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Jg=Symbol("storeContext"),eh=Symbol("microStoresContext"),th=(t,e)=>{Ba(Jg,t),Ba(eh,e),Ec==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=Ra(Jg);return(0,Gl.assertNonNullable)(t,"Store context is empty!"),t},uo=()=>{let t=Ra(eh);return(0,Gl.assertNonNullable)(t,"MicroStores context is empty!"),t},Yt=(t,e)=>Pc(t,t.getValue(),e),Pc=(t,e,i)=>lr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),ih=(t,e,i)=>{var I,A,P,E,T,V;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),s=(A=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?A:0,d=(E=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Ys} (core: ${Zg.VERSION}, stat: ${Xg.VERSION}, shared: ${Gl.VERSION})`,f=xe(i.state.errorLog$),_=f.length?`
|
|
49
|
-
`+f.map((
|
|
50
|
-
`,
|
|
51
|
-
`,X=`Trace: ${(oe=
|
|
52
|
-
`;return
|
|
53
|
-
`):void 0,u=i.state.isAudioDisabled?"disabled":
|
|
54
|
-
`)},oh=(t,e,i)=>{var z,Y,U,Z;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),s={version:Ys,viewport:`${n}x${a}`,volume:Math.round(xe(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 f=o.currentBuffer$.getValue(),_=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(_&&u?s.buffer=f.end-u:s.buffer=Math.max(f.end-xe(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 S=o.currentVideoSegmentLength$.getValue();S&&(s.currentVideoSegmentLength=S);let I=o.currentAudioSegmentLength$.getValue();I&&(s.currentAudioSegmentLength=I);let A=xe(i.vsid);typeof A=="string"&&(s.vsid=A);let P=(z=t.info.currentVideoStream$.getValue())==null?void 0:z.codec;P&&(s.videoCodec=P);let E=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.codec;E&&(s.audioCodec=E),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(s.hdr=!0);let V=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return V&&(s.audioLanguage=V),s},nh=(t,e)=>js(t,e,"mp4"),rh=t=>!t.type,sh=t=>!!t.type,ah=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Ac=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 ki=require("@vkontakte/videoplayer-shared/es2018"),IE=require("@vkontakte/videoplayer-core/es2018"),lh="vk_player_prefer_traffic_saving_enabled",dh="vk_player_preferred_volume",ch="vk_player_prefer_volume_mute",Ep="vk_player_preferred_quality",Ip="vk_player_preferred_default_quality_settings",kp="vk_player_preferred_quality_settings_by_video",uh="vk_player_preferred_stream_language",ph="vk_player_preferred_rate",fh="vk_player_preferred_autoplay_next",mh=t=>t>1?1:t<0?0:t,Ap=t=>ki.safeStorage.set(dh,mh(t).toString(10)),Mc=()=>{let t=ki.safeStorage.get(dh);return(0,ki.isNullable)(t)?void 0:mh(parseFloat(t))},Pp=(t,e)=>ki.safeStorage.set(Ep,JSON.stringify({videoId:t,value:e})),jl=()=>ki.safeStorage.remove(Ep),Mp=t=>{let e=ki.safeStorage.get(Ep);if((0,ki.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){jl();return}return o},Lp=(t,e)=>{e?ki.safeStorage.set(t,"true"):ki.safeStorage.remove(t)},Vp=t=>ki.safeStorage.get(t)==="true",Rp=t=>Lp(ch,t),vh=()=>Vp(ch),Yl=t=>Lp(lh,t),Bp=()=>Vp(lh),gh=()=>ki.safeStorage.get(uh),Np=t=>ki.safeStorage.set(uh,t),hh=t=>ki.safeStorage.set(ph,JSON.stringify({rate:t})),_h=()=>{let t=ki.safeStorage.get(ph);if((0,ki.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},bh=t=>Lp(fh,t),$h=()=>Vp(fh),g_=()=>{let t=f=>{ki.safeStorage.set(Ip,JSON.stringify(f))},e=()=>{try{let f=ki.safeStorage.get(Ip);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=ki.safeStorage.get(kp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{ki.safeStorage.set(kp,JSON.stringify(f))},n=f=>{p(f);let _=f?i():null;if(_&&(_==null?void 0:_.videoId)===f)return{..._,appliesTo:"to-video"};_&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{ki.safeStorage.remove(kp)},s=()=>{ki.safeStorage.remove(Ip)},d=(f,_="as-default")=>{f.type==="exact_quality"?o(f):_==="as-default"?t(f):o(f)},l=f=>{let _=n(f);if(_){switch(_.type){case"traffic_saving":Yl(!0);break;case"exact_quality":Pp(f,_.quality)}a(),s()}},p=f=>{let _=Mp(f);if(_){o({type:"exact_quality",videoId:f,quality:_});return}Bp()&&t({type:"traffic_saving",videoId:f}),Yl(!1),jl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:yh,migrateSettingsToLegacyWay:xh,savePreferredQualitySettings:Lc,savePreferredDefaultQualitySettings:kE,removePreferredQualitySettingsByVideo:EE,getPreferredDefaultQualitySettings:Vc}=g_();var Um=require("@vkontakte/videoplayer-core/es2018");var h_=be('<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 Zl(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=h_();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),b(t,o)}var qa=require("@vkontakte/videoplayer-shared/es2018");var __={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_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 Tt=null;function Nl(t){Tt=t}var tn=null;function Bl(t){tn=t}function Ba(t){return up("getContext").get(t)}function Da(t,e){let i=up("setContext");return Te&&yt(()=>lp(e,null,!0)),i.set(t,e),e}function Ol(){return up("getAllContexts")}function q(t,e=!1,i){var o=Tt={p:Tt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Br&&!e&&(Tt.l={s:null,u:null,r1:[],r2:Bi(!1)}),on(()=>{o.d=!0}),Te&&(Tt.function=i,tn=i)}function K(t){var s,d;let e=Tt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=wt,o=Dt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];io(a.effect),fo(a.reaction),yn(a.fn)}}finally{io(i),fo(o)}}Tt=e.p,Te&&(tn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Or(){return!Br||Tt!==null&&Tt.l===null}function up(t){var e;return Tt===null&&Na(t),(e=Tt.c)!=null?e:Tt.c=new Map(C0(Tt)||void 0)}function C0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var T0=/\r/g;function ag(t){t=t.replace(T0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function lg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var I0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function dg(t){return I0.includes(t)}var k0=["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 E0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function cg(t){var e;return t=t.toLowerCase(),(e=E0[t])!=null?e:t}var dw=[...k0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var A0=["touchstart","touchmove"];function ug(t){return A0.includes(t)}var P0=["textarea","script","style","title"];function pg(t){return P0.includes(t)}function pp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var fg=new Map;function mg(t,e){var i=fg.get(t);i||(i=new Set,fg.set(t,i)),i.add(e)}function fp(t,e){if(e){let i=document.body;t.autofocus=!0,Yo(()=>{document.activeElement===i&&t.focus()})}}function Hl(t){var e=Dt,i=wt;fo(null),io(null);try{return t()}finally{fo(e),io(i)}}var mp=new Set,Ic=new Set;function Ks(t){if(!je)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 vp(t,e,i,o={}){function n(a){if(o.capture||Oa.call(e,a),!a.cancelBubble)return Hl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Yo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function At(t,e,i,o,n){var a={capture:o,passive:n},s=vp(t,e,i,a);(e===document.body||e===window||e===document)&&on(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)mp.add(t[e]);for(var i of Ic)i(t)}function Oa(t){var A;var e=this,i=e.ownerDocument,o=t.type,n=((A=t.composedPath)==null?void 0:A.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){to(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Dt,_=wt;fo(null),io(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($r(y)){var[S,...I]=y;S.apply(a,[t,...I])}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,fo(f),io(_)}}}var L0;function vg(){L0=void 0}function Ha(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function go(t,e){var i=wt;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(je)return go(mt,null),mt;n===void 0&&(n=Ha(a?t:"<!>"+t),i||(n=fi(n)));var s=o||Al?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=fi(s),l=s.lastChild;go(d,l)}else go(s,s);return s}}function be(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(je)return go(mt,null),mt;if(!s){var d=Ha(a),l=fi(d);if(n)for(s=document.createDocumentFragment();fi(l);)s.appendChild(fi(l));else s=fi(l)}var p=s.cloneNode(!0);if(n){var f=fi(p),_=p.lastChild;go(f,_)}else go(p,p);return p}}function ir(t=""){if(!je){var e=Jo(t+"");return go(e,e),e}var i=mt;return i.nodeType!==3&&(i.before(i=Jo()),pi(i)),go(i,i),i}function qe(){if(je)return go(mt,null),mt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Jo();return t.append(e,i),go(e,i),t}function b(t,e){if(je){wt.nodes_end=mt,Li();return}t!==null&&t.before(e)}var Fl=!0;function kc(t){Fl=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 ts(t,e){return hg(t,e)}function hp(t,e){var s;vc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=je,n=mt;try{for(var a=fi(i);a&&(a.nodeType!==8||a.data!==fs);)a=To(a);if(!a)throw Qr;no(!0),pi(a),Li();let d=hg(t,{...e,anchor:a});if(mt===null||mt.nodeType!==8||mt.data!==Rs)throw Fs(),Qr;return no(!1),d}catch(d){if(d===Qr)return e.recover===!1&&Cv(),vc(),Pl(i),no(!1),ts(t,e);throw d}finally{no(o),pi(n),vg()}}var Fa=new Map;function hg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){vc();var d=new Set,l=_=>{for(var u=0;u<_.length;u++){var $=_[u];if(!d.has($)){d.add($);var w=ug($);e.addEventListener($,Oa,{passive:w});var y=Fa.get($);y===void 0?(document.addEventListener($,Oa,{passive:w}),Fa.set($,1)):Fa.set($,y+1)}}};l(Cl(mp)),Ic.add(l);var p=void 0,f=ng(()=>{var _=i!=null?i:e.appendChild(Jo());return Di(()=>{if(a){q({});var u=Tt;u.c=a}n&&(o.$$events=n),je&&go(_,null),Fl=s,p=t(_,o)||{},Fl=!0,je&&(wt.nodes_end=mt),a&&K()}),()=>{var w;for(var u of d){e.removeEventListener(u,Oa);var $=Fa.get(u);--$===0?(document.removeEventListener(u,Oa),Fa.delete(u)):Fa.set(u,$)}Ic.delete(l),_!==i&&((w=_.parentNode)==null||w.removeChild(_))}});return gp.set(p,f),p}var gp=new WeakMap;function Ws(t,e){let i=gp.get(t);return i?(gp.delete(t),i(e)):(Te&&Fv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){je&&i===0&&Li();var n=t,a=null,s=null,d=ki,l=i>0?65536:0,p=!1;let f=(u,$=!0)=>{p=!0,_($,u)},_=(u,$)=>{if(d===(d=u))return;let w=!1;if(je&&o!==-1){if(i===0){let S=n.data;S===fs?o=0:S===Vs?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Pa(),pi(n),no(!1),w=!0,o=-1)}d?(a?es(a):$&&(a=Di(()=>$(n))),s&&xn(s,()=>{s=null})):(s?es(s):$&&(s=Di(()=>$(n,[i+1,o]))),a&&xn(a,()=>{a=null})),w&&no(!0)};ro(()=>{p=!1,e(f),p||_(null,null)},l),je&&(n=mt)}function Qs(t,e,i){je&&Li();var o=t,n=ki,a,s=Or()?bv:Ca;ro(()=>{s(n,n=e())&&(a&&xn(a),a=Di(()=>i(o)))}),je&&(o=mt)}var _s=null;function $p(t){_s=t}function Ul(t,e){return e}function B0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Sc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Pl(l),l.append(i),o.clear(),hs(t,e[0].prev,e[a-1].next)}ap(n,()=>{for(var p=0;p<a;p++){var f=e[p];d||(o.delete(f.k),hs(t,f.prev,f.next)),oo(f.e,!d)}})}function bi(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=je?pi(fi(p)):p.appendChild(Jo())}je&&Li();var f=null,_=!1,u=wr(()=>{var $=i();return $r($)?$:$==null?[]:Cl($)});ro(()=>{var $=r(u),w=$.length;if(_&&w===0)return;_=w===0;let y=!1;if(je){var S=s.data===Vs;S!==(w===0)&&(s=Pa(),pi(s),no(!1),y=!0)}if(je){for(var I=null,A,P=0;P<w;P++){if(mt.nodeType===8&&mt.data===Rs){s=mt,y=!0,no(!1);break}var E=$[P],T=o(E,P);A=$g(mt,d,I,null,E,T,P,n,e,i),d.items.set(T,A),I=A}w>0&&pi(Pa())}je||D0($,d,s,n,e,o,i),a!==null&&(w===0?f?es(f):f=Di(()=>a(s)):f!==null&&xn(f,()=>{f=null})),y&&no(!0),r(u)}),je&&(s=mt)}function D0(t,e,i,o,n,a,s){var le,Ve,Me,J;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,f=e.items,_=e.first,u=_,$,w=null,y,S=[],I=[],A,P,E,T;if(d)for(T=0;T<p;T+=1)A=t[T],P=a(A,T),E=f.get(P),E!==void 0&&((le=E.a)==null||le.measure(),(y!=null?y:y=new Set).add(E));for(T=0;T<p;T+=1){if(A=t[T],P=a(A,T),E=f.get(P),E===void 0){var V=u?u.e.nodes_start:i;w=$g(V,e,w,w===null?e.first:w.next,A,P,T,o,n,s),f.set(P,w),S=[],I=[],u=w.next;continue}if(l&&O0(E,A,T,n),(E.e.f&8192)!==0&&(es(E.e),d&&((Ve=E.a)==null||Ve.unfix(),(y!=null?y:y=new Set).delete(E))),E!==u){if($!==void 0&&$.has(E)){if(S.length<I.length){var U=I[0],Y;w=U.prev;var F=S[0],j=S[S.length-1];for(Y=0;Y<S.length;Y+=1)_g(S[Y],U,i);for(Y=0;Y<I.length;Y+=1)$.delete(I[Y]);hs(e,F.prev,j.next),hs(e,w,F),hs(e,j,U),u=U,w=j,T-=1,S=[],I=[]}else $.delete(E),_g(E,u,i),hs(e,E.prev,E.next),hs(e,E,w===null?e.first:w.next),hs(e,w,E),w=E;continue}for(S=[],I=[];u!==null&&u.k!==P;)(u.e.f&8192)===0&&($!=null?$:$=new Set).add(u),I.push(u),u=u.next;if(u===null)continue;E=u}S.push(E),w=E,u=E.next}if(u!==null||$!==void 0){for(var X=$===void 0?[]:Cl($);u!==null;)(u.e.f&8192)===0&&X.push(u),u=u.next;var oe=X.length;if(oe>0){var pe=(n&4)!==0&&p===0?i:null;if(d){for(T=0;T<oe;T+=1)(Me=X[T].a)==null||Me.measure();for(T=0;T<oe;T+=1)(J=X[T].a)==null||J.fix()}B0(e,X,pe,f)}}d&&Yo(()=>{var Le;if(y!==void 0)for(E of y)(Le=E.a)==null||Le.apply()}),wt.first=e.first&&e.first.e,wt.last=w&&w.e}function O0(t,e,i,o){(o&1)!==0&&ka(t.v,e),(o&2)!==0?ka(t.i,i):t.i=i}function $g(t,e,i,o,n,a,s,d,l,p){var f=_s,_=(l&1)!==0,u=(l&16)===0,$=_?u?Xr(n):Bi(n):n,w=(l&2)===0?s:Bi(s);Te&&_&&($.debug=()=>{var S=typeof w=="number"?s:w.v;p()[S]});var y={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};_s=y;try{return y.e=Di(()=>d(t,$,w,p),je),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{_s=f}}function _g(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=To(a);n.before(a),a=s}}function hs(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 H0(t,e,i){var a,s;if(!e||e===ag(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=tn)!=null&&s[ui]&&(o=`in ${tn[ui]}`),Hv(pp(o))}function zl(t,e,i,o,n){var a=t,s="",d;ro(()=>{var l;if(s===(s=(l=e())!=null?l:"")){je&&Li();return}d!==void 0&&(oo(d),d=void 0),s!==""&&(d=Di(()=>{if(je){for(var p=mt.data,f=Li(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=To(f);if(f===null)throw Fs(),Qr;Te&&!n&&H0(f.parentNode,p,s),go(mt,_),a=pi(f);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var $=Ha(u);if((i||o)&&($=fi($)),go(fi($),$.lastChild),i||o)for(;fi($);)a.before(fi($));else a.before($)}))})}function ge(t,e,...i){var o=t,n=ie,a;ro(()=>{n!==(n=e())&&(a&&(oo(a),a=null),Te&&n==null&&Tv(),a=Di(()=>n(o,...i)))},65536),je&&(o=mt)}function $i(t,e,i){je&&Li();var o=t,n,a;ro(()=>{n!==(n=e())&&(a&&(xn(a),a=null),n&&(a=Di(()=>i(o,n))))},65536),je&&(o=mt)}function ql(t,e,i,o,n,a){var w;let s=je;je&&Li();var d=Te&&a&&((w=Tt)==null?void 0:w.function[ui]),l,p,f=null;je&&mt.nodeType===1&&(f=mt,Li());var _=je?mt:t,u,$=_s;ro(()=>{let y=e()||null;var S=n?n():i||y==="svg"?Du:null;if(y!==l){var I=_s;$p($),u&&(y===null?xn(u,()=>{u=null,p=null}):y===p?es(u):(oo(u),kc(!1))),y&&y!==p&&(u=Di(()=>{if(f=je?f:S?document.createElementNS(S,y):document.createElement(y),Te&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),go(f,f),o){je&&pg(y)&&f.append(document.createComment(""));var A=je?fi(f):f.appendChild(Jo());je&&(A===null?no(!1):pi(A)),o(f,A)}wt.nodes_end=f,_.before(f)})),l=y,l&&(p=l),kc(!0),$p(I)}},65536),s&&(no(!0),pi(_))}var xp;function yg(t){return xp=t.target,new yp(t)}var is,or,yp=class{constructor(e){ps(this,is);ps(this,or);var a,s;var i=new Map,o=(d,l)=>{var p=Xr(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===Sl?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var f;return O((f=i.get(l))!=null?f:o(l,p),p),Reflect.set(d,l,p)}});Sa(this,or,(e.hydrate?hp:ts)(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)&&Va(),Sa(this,is,n.$$events);for(let d of Object.keys(Ii(this,or)))d==="$set"||d==="$destroy"||d==="$on"||to(this,d,{get(){return Ii(this,or)[d]},set(l){Ii(this,or)[d]=l},enumerable:!0});Ii(this,or).$set=d=>{Object.assign(n,d)},Ii(this,or).$destroy=()=>{Ws(Ii(this,or))}}$set(e){Ii(this,or).$set(e)}$on(e,i){Ii(this,is)[e]=Ii(this,is)[e]||[];let o=(...n)=>i.call(this,...n);return Ii(this,is)[e].push(o),()=>{Ii(this,is)[e]=Ii(this,is)[e].filter(n=>n!==o)}}$destroy(){Ii(this,or).$destroy()}};is=new WeakMap,or=new WeakMap;function Q(t,e){Yo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=xp)==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),Te&&mg(e.hash,d)}})}function xg(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=xg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function wg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=xg(t))&&(o&&(o+=" "),o+=e);return o}function Kl(t){return typeof t=="object"?wg(t):t!=null?t:""}var Sg=[...`
|
|
48
|
+
\r\f\xA0\v\uFEFF`];function Tg(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||Sg.includes(o[s-1]))&&(d===o.length||Sg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Cg(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 wp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Ig(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(wp)),n&&l.push(...Object.keys(n).map(wp));var p=0,f=-1;let y=t.length;for(var _=0;_<y;_++){var u=t[_];if(d?u==="/"&&t[_-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[_+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&f===-1)f=_;else if(u===";"||_===y-1){if(f!==-1){var $=wp(t.substring(p,f).trim());if(!l.includes($)){u!==";"&&_++;var w=t.substring(p,_).trim();i+=" "+w+";"}}p=_+1,f=-1}}}}return o&&(i+=Cg(o)),n&&(i+=Cg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var s=t.__className;if(je||s!==i){var d=Tg(i,o,a);(!je||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 Sp(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 tt(t,e,i,o){var n=t.__style;if(je||n!==e){var a=Ig(e,o);(!je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Sp(t,i==null?void 0:i[0],o[0]),Sp(t,i==null?void 0:i[1],o[1],"important")):Sp(t,i,o));return o}var Ua=Symbol("class"),za=Symbol("style"),Ag=Symbol("is custom element"),Pg=Symbol("is html");function Mg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Oe(t,e,i,o){var n=Lg(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Q0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[mv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Vg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function xe(t,e,i,o,n=!1){var E;var a=Lg(t),s=a[Ag],d=!a[Pg];let l=je&&s;l&&no(!1);var p=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Kl(i.class):(o||i[Ua])&&(i.class=null),i[za]&&((E=i.style)!=null||(i.style=null));var u=Vg(t);for(let T in i){let V=i[T];if(f&&T==="value"&&V==null){t.value=t.__value="",p[T]=V;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,$,V,o,e==null?void 0:e[Ua],i[Ua]),p[T]=V,p[Ua]=i[Ua];continue}if(T==="style"){tt(t,V,e==null?void 0:e[za],i[za]),p[T]=V,p[za]=i[za];continue}var w=p[T];if(V!==w){p[T]=V;var y=T[0]+T[1];if(y!=="$$")if(y==="on"){let U={},Y="$$"+T,F=T.slice(2);var S=dg(F);if(lg(F)&&(F=F.slice(0,-7),U.capture=!0),!S&&w){if(V!=null)continue;t.removeEventListener(F,p[Y],U),p[Y]=null}if(V!=null)if(S)t[`__${F}`]=V,at([F]);else{let j=function(X){p[T].call(this,X)};var P=j;p[Y]=vp(F,t,j,U)}else S&&(t[`__${F}`]=void 0)}else if(T==="style")Oe(t,T,V);else if(T==="autofocus")fp(t,!!V);else if(!s&&(T==="__value"||T==="value"&&V!=null))t.value=t.__value=V;else if(T==="selected"&&f)Mg(t,V);else{var I=T;d||(I=cg(I));var A=I==="defaultValue"||I==="defaultChecked";if(V==null&&!s&&!A)if(a[T]=null,I==="value"||I==="checked"){let U=t,Y=e===void 0;if(I==="value"){let F=U.defaultValue;U.removeAttribute(I),U.defaultValue=F,U.value=U.__value=Y?F:null}else{let F=U.defaultChecked;U.removeAttribute(I),U.defaultChecked=F,U.checked=Y?F:!1}}else t.removeAttribute(T);else A||u.includes(I)&&(s||typeof V!="string")?t[I]=V:typeof V!="function"&&Oe(t,I,V,n)}}}return l&&no(!0),p}function Lg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Ag]:t.nodeName.includes("-"),[Pg]:t.namespaceURI===uv}}var kg=new Map;function Vg(t){var e=kg.get(t.nodeName);if(e)return e;kg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=dc(o);for(var a in i)i[a].set&&e.push(a);o=Yr(o)}return e}function Q0(t,e,i){var o;Te&&(e==="srcset"&&G0(t,i)||Cp((o=t.getAttribute(e))!=null?o:"",i)||Ov(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Cp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Eg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function G0(t,e){var i=Eg(t.srcset),o=Eg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Cp(i[s][0],n)||Cp(n,i[s][0])))}var Y0=lc?()=>performance.now():()=>Date.now(),Cr={tick:t=>(lc?requestAnimationFrame:ie)(t),now:()=>Y0(),tasks:new Set};function Rg(){let t=Cr.now();Cr.tasks.forEach(e=>{e.c(t)||(Cr.tasks.delete(e),e.f())}),Cr.tasks.size!==0&&Cr.tick(Rg)}function Ng(t){let e;return Cr.tasks.size===0&&Cr.tick(Rg),{promise:new Promise(i=>{Cr.tasks.add(e={c:t,f:i})}),abort(){Cr.tasks.delete(e)}}}function Ec(t,e){Hl(()=>{t.dispatchEvent(new CustomEvent(e))})}function J0(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 Bg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=J0(n.trim());e[s]=a.trim()}return e}var e_=t=>t;function Ip(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,f=e.inert,_=e.style.overflow,u,$;function w(){var V;var E=Dt,T=wt;fo(null),io(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{fo(E),io(T)}}var y={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||u==null||u.abort(),Ec(e,"introstart"),u=Tp(e,w(),$,1,()=>{Ec(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),p=void 0;return}e.inert=!0,Ec(e,"outrostart"),$=Tp(e,w(),u,0,()=>{Ec(e,"outroend"),E==null||E()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},S=wt;if(((P=S.transitions)!=null?P:S.transitions=[]).push(y),n&&Fl){var I=d;if(!I){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);I=!A||(A.f&32768)!==0}I&&yn(()=>{yt(()=>y.in())})}}function Tp(t,e,i,o,n){var a=o===1;if(ms(e)){var s,d=!1;return Yo(()=>{if(!d){var S=e({direction:a?"in":"out"});s=Tp(t,S,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:f,easing:_=e_}=e;var u=[];if(a&&i===void 0&&(f&&f(0,1),p)){var $=Bg(p(0,1));u.push($,$)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var F;var S=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var I=o-S,A=e.duration*Math.abs(I),P=[];if(A>0){var E=!1;if(p)for(var T=Math.ceil(A/16.666666666666668),V=0;V<=T;V+=1){var U=S+I*_(V/T),Y=Bg(p(U,1-U));P.push(Y),E||(E=Y.overflow==="hidden")}E&&(t.style.overflow="hidden"),w=()=>{var j=y.currentTime;return S+I*_(j/A)},f&&Ng(()=>{if(y.playState!=="running")return!1;var j=w();return f(j,1-j),!0})}y=t.animate(P,{duration:A,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var bs,qa,Wl,Pc,Dg,Mc=class Mc{constructor(e){ps(this,Pc);ps(this,bs,new WeakMap);ps(this,qa);ps(this,Wl);Sa(this,Wl,e)}observe(e,i){var o=Ii(this,bs).get(e)||new Set;return o.add(i),Ii(this,bs).set(e,o),dv(this,Pc,Dg).call(this).observe(e,Ii(this,Wl)),()=>{var n=Ii(this,bs).get(e);n.delete(i),n.size===0&&(Ii(this,bs).delete(e),Ii(this,qa).unobserve(e))}}};bs=new WeakMap,qa=new WeakMap,Wl=new WeakMap,Pc=new WeakSet,Dg=function(){var e;return(e=Ii(this,qa))!=null?e:Sa(this,qa,new ResizeObserver(i=>{for(var o of i){Mc.entries.set(o.target,o);for(var n of Ii(this,bs).get(o.target)||[])n(o)}}))},Mn(Mc,"entries",new WeakMap);var kp=Mc;var o_=new kp({box:"border-box"});function Hr(t,e,i){var o=o_.observe(t,()=>i(t[e]));yn(()=>(yt(()=>i(t[e])),o))}function Og(t,e){return t===e||(t==null?void 0:t[Oo])===e}function ct(t={},e,i,o){return yn(()=>{var n,a;return vo(()=>{n=a,a=(o==null?void 0:o())||[],yt(()=>{t!==i(...a)&&(e(t,...a),n&&Og(i(...n),t)&&e(null,...n))})}),()=>{Yo(()=>{a&&Og(i(...a),t)&&e(null,...a)})}}),t}function Tr(t=!1){let e=Tt,i=e.l.u;if(!i)return;let o=()=>yc(e.s);if(t){let n=0,a={},s=m(()=>{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&&Ra(()=>{Hg(e,o),vs(i.b)}),Ke(()=>{let n=yt(()=>i.m.map(hv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ke(()=>{Hg(e,o),vs(i.a)})}function Hg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Te){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Ev(e)},set:o=>{i=o}})}};r_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var r_;function Ft(t){Tt===null&&Na("onMount"),Br&&Tt.l!==null?n_(Tt).m.push(t):Ke(()=>{let e=yt(t);if(typeof e=="function")return e})}function wn(t){Tt===null&&Na("onDestroy"),Ft(()=>()=>yt(t))}function n_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Ql(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=yt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ka=[];function nr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ie){let i=null,o=new Set;function n(d){if(Ca(t,d)&&(t=d,i)){let l=!Ka.length;for(let p of o)p[1](),Ka.push(p,t);if(l){for(let p=0;p<Ka.length;p+=2)Ka[p][0](Ka[p+1]);Ka.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 mi(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 nr(i,(s,d)=>{let l=!1,p=[],f=0,_=ie,u=()=>{if(f)return;_();let w=e(o?p[0]:p,s,d);a?s(w):_=typeof w=="function"?w:ie},$=n.map((w,y)=>Ql(w,S=>{p[y]=S,f&=~(1<<y),l&&u()},()=>{f|=1<<y}));return l=!0,u(),function(){vs($),_(),l=!1}})}function ye(t){let e;return Ql(t,i=>e=i)(),e}var Lc=!1,Ep=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Xr(void 0),unsubscribe:ie};if(o.store!==t&&!(Ep 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=Ql(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&Ep in i?ye(t):r(o.source)}function Fe(){let t={};function e(){on(()=>{for(var i in t)t[i].unsubscribe();to(t,Ep,{enumerable:!1,value:!0})})}return[t,e]}function Ap(t){var e=Lc;try{return Lc=!1,[t(),Lc]}finally{Lc=e}}var p_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Te&&kv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ie(t,e,i){return new Proxy(Te?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},p_)}var f_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ms(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];ms(n)&&(n=n());let a=Ln(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(ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Ln(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Oo||e===Sl)return!1;for(let i of t.props)if(ms(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ms(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function os(...t){return new Proxy({props:t},f_)}function Fg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var U,Y;var n=(i&1)!==0,a=!Br||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=Ap(()=>t[e]):p=t[e];var f=Oo in t||Sl in t,_=s&&((Y=(U=Ln(t,e))==null?void 0:U.set)!=null?Y:f&&e in t&&(F=>t[e]=F))||void 0,u=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?u=yt(o):u=o),u);p===void 0&&o!==void 0&&(_&&a&&Iv(e),p=y(),_&&_(p));var S;if(a)S=()=>{var F=t[e];return F===void 0?y():($=!0,w=!1,F)};else{var I=(n?m:wr)(()=>t[e]);I.f|=131072,S=()=>{var F=r(I);return F!==void 0&&(u=void 0),F===void 0?u:F}}if((i&4)===0)return S;if(_){var A=t.$$legacy;return function(F,j){return arguments.length>0?((!a||!j||A||l)&&_(j?S():F),F):S()}}var P=!1,E=!1,T=Xr(p),V=m(()=>{var F=S(),j=r(T);return P?(P=!1,E=!0,j):(E=!1,T.v=F)});return s&&r(V),n||(V.equals=Ta),function(F,j){if(kl!==null&&(P=E,S(),r(T)),arguments.length>0){let X=j?r(V):a&&s?me(F):F;if(!V.equals(X)){if(P=!0,O(T,X),w&&u!==void 0&&(u=X),Fg(V))return F;yt(()=>r(V))}return F}return Fg(V)?V.v:r(V)}}var m_;typeof HTMLElement=="function"&&(m_=class extends HTMLElement{constructor(e,i,o){super();Mn(this,"$$ctor");Mn(this,"$$s");Mn(this,"$$c");Mn(this,"$$cn",!1);Mn(this,"$$d",{});Mn(this,"$$r",!1);Mn(this,"$$p_d",{});Mn(this,"$$l",{});Mn(this,"$$l_u",new Map);Mn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=v_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=Pp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=yg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=wc(()=>{vo(()=>{var a;this.$$r=!0;for(let s of Hu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Pp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Pp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Hu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Pp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function v_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Ug="5";var zg,qg,Kg;typeof window!="undefined"&&((Kg=(qg=(zg=window.__svelte)!=null?zg:window.__svelte={}).v)!=null?Kg:qg.v=new Set).add(Ug);var U1=require("@vkontakte/videoplayer-core/es2018"),XW=require("@vkontakte/videoplayer-core/es2018"),_a=require("@vkontakte/videoplayer-shared/es2018"),z1=require("@vkontakte/videoplayer-statistics/es2018");var Gs=require("@vkontakte/videoplayer-shared/es2018");var h_={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,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!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}},Wg=t=>(0,Gs.fillWithDefault)(t,h_),Qg=t=>Da("ui-config",t),Wt=()=>Ba("ui-config");var Gl="vk_player_debug_panel_opened";var Gg="videoplayer",Yg="videoplayer";var Fr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},jg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Zg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Xg=new Set(["ShiftRight","ShiftLeft"]);var Jg=["TIMELINE"],Yl=[...Jg,"GRAPH_BUTTON"],Mp=[...Jg,"PLAY_BUTTON"],jl=[...Yl,"PLAY_BUTTON"];var Ir=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Ir||{}),js={xs:0,s:1,m:2,l:3,xl:4};var Zl=require("@vkontakte/videoplayer-shared/es2018"),eh=require("@vkontakte/videoplayer-core/es2018"),th=require("@vkontakte/videoplayer-statistics/es2018");var Vc="prod",Zs="1.1.61-dev.1a35cfce.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 ih=Symbol("storeContext"),oh=Symbol("microStoresContext"),nh=(t,e)=>{Da(ih,t),Da(oh,e),Vc==="dev"&&(window.app={store:t,microStores:e})},we=()=>{let t=Ba(ih);return(0,Zl.assertNonNullable)(t,"Store context is empty!"),t},so=()=>{let t=Ba(oh);return(0,Zl.assertNonNullable)(t,"MicroStores context is empty!"),t},Zt=(t,e)=>Nc(t,t.getValue(),e),Nc=(t,e,i)=>nr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),rh=(t,e,i)=>{var I,A,P,E,T,V;let o=t.info,{width:n,height:a}=ye(i.ui.playerSize),s=(A=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?A:0,d=(E=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Zs} (core: ${eh.VERSION}, stat: ${th.VERSION}, shared: ${Zl.VERSION})`,f=ye(i.state.errorLog$),_=f.length?`
|
|
49
|
+
`+f.map((U,Y)=>{var oe;let F=`${Y}) Type: ${U.id}
|
|
50
|
+
`,j=`Message: ${U.message} (${U.thrown})
|
|
51
|
+
`,X=`Trace: ${(oe=U.thrown)==null?void 0:oe.stack}
|
|
52
|
+
`;return F+j+X}).join(`
|
|
53
|
+
`):void 0,u=i.state.isAudioDisabled?"disabled":ye(i.state.isAudioAvailable$)?void 0:"unavailable",$=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),y=[];$&&y.push(`Video: ${(T=$==null?void 0:$.codec)!=null?T:""}`+($!=null&&$.hdr?" (HDR)":"")),w&&y.push(`Audio: ${(V=w==null?void 0:w.codec)!=null?V:""}`+(w!=null&&w.language?` (${w.language})`:""));let S={Version:p,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:ye(i.vsid),"Content host":o.hostname$.getValue(),"Connection type":o.httpConnectionType$.getValue()+(o.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${s}Kbps @ ${d}ms RTT`,Format:o.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:y.join(", "),Quality:`${l} ${o.currentQuality$.getValue()}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:u,Position:`${ye(i.state.positionExact$)}s`,State:`${ye(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:_};return Object.entries(S).filter(([U,Y])=>Y!==void 0).map(([U,Y])=>`${U}: ${Y}`).join(`
|
|
54
|
+
`)},sh=(t,e,i)=>{var U,Y,F,j;let o=t.info,{width:n,height:a}=ye(i.ui.playerSize),s={version:Zs,viewport:`${n}x${a}`,volume:Math.round(ye(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 f=o.currentBuffer$.getValue(),_=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(_&&u?s.buffer=f.end-u:s.buffer=Math.max(f.end-ye(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 S=o.currentVideoSegmentLength$.getValue();S&&(s.currentVideoSegmentLength=S);let I=o.currentAudioSegmentLength$.getValue();I&&(s.currentAudioSegmentLength=I);let A=ye(i.vsid);typeof A=="string"&&(s.vsid=A);let P=(U=t.info.currentVideoStream$.getValue())==null?void 0:U.codec;P&&(s.videoCodec=P);let E=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.codec;E&&(s.audioCodec=E),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(s.hdr=!0);let V=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.language;return V&&(s.audioLanguage=V),s},ah=(t,e)=>Xs(t,e,"mp4"),lh=t=>!t.type,dh=t=>!!t.type,ch=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Rc=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 Ei=require("@vkontakte/videoplayer-shared/es2018"),ME=require("@vkontakte/videoplayer-core/es2018"),uh="vk_player_prefer_traffic_saving_enabled",ph="vk_player_preferred_volume",fh="vk_player_prefer_volume_mute",Rp="vk_player_preferred_quality",Lp="vk_player_preferred_default_quality_settings",Vp="vk_player_preferred_quality_settings_by_video",mh="vk_player_preferred_stream_language",vh="vk_player_preferred_rate",gh="vk_player_preferred_autoplay_next",hh=t=>t>1?1:t<0?0:t,Np=t=>Ei.safeStorage.set(ph,hh(t).toString(10)),Bc=()=>{let t=Ei.safeStorage.get(ph);return(0,Ei.isNullable)(t)?void 0:hh(parseFloat(t))},Bp=(t,e)=>Ei.safeStorage.set(Rp,JSON.stringify({videoId:t,value:e})),Jl=()=>Ei.safeStorage.remove(Rp),Dp=t=>{let e=Ei.safeStorage.get(Rp);if((0,Ei.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Jl();return}return o},Op=(t,e)=>{e?Ei.safeStorage.set(t,"true"):Ei.safeStorage.remove(t)},Hp=t=>Ei.safeStorage.get(t)==="true",Fp=t=>Op(fh,t),_h=()=>Hp(fh),Xl=t=>Op(uh,t),Up=()=>Hp(uh),bh=()=>Ei.safeStorage.get(mh),zp=t=>Ei.safeStorage.set(mh,t),$h=t=>Ei.safeStorage.set(vh,JSON.stringify({rate:t})),yh=()=>{let t=Ei.safeStorage.get(vh);if((0,Ei.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},xh=t=>Op(gh,t),wh=()=>Hp(gh),__=()=>{let t=f=>{Ei.safeStorage.set(Lp,JSON.stringify(f))},e=()=>{try{let f=Ei.safeStorage.get(Lp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Ei.safeStorage.get(Vp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Ei.safeStorage.set(Vp,JSON.stringify(f))},n=f=>{p(f);let _=f?i():null;if(_&&(_==null?void 0:_.videoId)===f)return{..._,appliesTo:"to-video"};_&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Ei.safeStorage.remove(Vp)},s=()=>{Ei.safeStorage.remove(Lp)},d=(f,_="as-default")=>{f.type==="exact_quality"?o(f):_==="as-default"?t(f):o(f)},l=f=>{let _=n(f);if(_){switch(_.type){case"traffic_saving":Xl(!0);break;case"exact_quality":Bp(f,_.quality)}a(),s()}},p=f=>{let _=Dp(f);if(_){o({type:"exact_quality",videoId:f,quality:_});return}Up()&&t({type:"traffic_saving",videoId:f}),Xl(!1),Jl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Sh,migrateSettingsToLegacyWay:Ch,savePreferredQualitySettings:Dc,savePreferredDefaultQualitySettings:LE,removePreferredQualitySettingsByVideo:VE,getPreferredDefaultQualitySettings:Oc}=__();var Gm=require("@vkontakte/videoplayer-core/es2018");var b_=be('<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 ed(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=b_();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),b(t,o)}var Wa=require("@vkontakte/videoplayer-shared/es2018");var $_={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_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
|
|
55
55
|
\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
|
|
56
|
-
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},
|
|
56
|
+
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Th=$_;var y_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
|
|
57
57
|
so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
58
|
-
Try switching the\xA0quality to\xA0Auto.`},
|
|
59
|
-
`),o,n;for(let a=0;a<i.length;++a){if(o
|
|
60
|
-
`).filter(i=>!!i)[0]}function T_(t){try{let e=C_(t);if(e)return e}catch(e){}return{value:Th(t),type:t&&t.name,stacktrace:{frames:[]}}}function I_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Bc=class{constructor(e){if(e&&e.dsn){let i=S_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[T_(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(w_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:I_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Ih(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function k_(){return window}var Nc=class t extends Bc{constructor(e,i=k_()){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=>Ih(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=>Ih(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 Zs=require("@vkontakte/videoplayer-shared/es2018");var Dc=null,Xs=class{constructor(e,i,o={}){!Dc&&e.dsn&&(this.sentryClient=new Nc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Zs.Subscription,this.options=e,this.context=o,Dc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Dc=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:f,blackErrorCategoryList:_}=s,{errorType:u,category:$}=i;if((0,Zs.isNonNullable)($)&&_.includes($)||(0,Zs.isNonNullable)(u)&&f.includes(u))return;if(Math.random()<=d||(0,Zs.isNonNullable)($)&&p.includes($)||(0,Zs.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?Ka.fatal:Ka.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Dc}};var $s=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))($s||{});var Oc=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()},Hc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),kh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Xl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ys=()=>!!Xl(),Fc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Uc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Eh=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 Fp=require("@vkontakte/videoplayer-core/es2018"),Ah=()=>({title:H("hotkey_map_modal_title"),closeBtnText:H("hotkey_map_modal_close_btn_text"),groups:[{title:H("hotkey_map_group_title_common"),items:[{description:H("hotkey_map_item_mute_description"),value:H("hotkey_map_item_mute_value")},{description:H("hotkey_map_item_volume_up_description"),value:H("hotkey_map_item_volume_up_value")},{description:H("hotkey_map_item_volume_down_description"),value:H("hotkey_map_item_volume_down_value")},{description:H("hotkey_map_item_pip_description"),value:H("hotkey_map_item_pip_value")},{description:H("hotkey_map_item_full_screen_description"),value:H("hotkey_map_item_full_screen_value")},{description:H("hotkey_map_item_show_context_menu_description"),value:H("hotkey_map_item_show_context_menu_value")},{description:H("hotkey_map_item_show_hotkey_map_description"),value:H("hotkey_map_item_show_hotkey_map_value")}]},{title:H("hotkey_map_group_title_playback"),items:[{description:H("hotkey_map_item_play_toggle_description"),value:H("hotkey_map_item_play_toggle_value")},{description:H("hotkey_map_item_seek_backward_description"),value:H("hotkey_map_item_seek_backward_value")},{description:H("hotkey_map_item_seek_forward_description"),value:H("hotkey_map_item_seek_forward_value")},{description:H("hotkey_map_item_fast_seek_backward_description"),value:H("hotkey_map_item_fast_seek_backward_value")},{description:H("hotkey_map_item_fast_seek_forward_description"),value:H("hotkey_map_item_fast_seek_forward_value")},{description:H("hotkey_map_item_rate_down_description"),value:H("hotkey_map_item_rate_down_value")},{description:H("hotkey_map_item_rate_up_description"),value:H("hotkey_map_item_rate_up_value")},{description:H("hotkey_map_item_prev_frame_description"),value:H("hotkey_map_item_prev_frame_value")},{description:H("hotkey_map_item_next_frame_description"),value:H("hotkey_map_item_next_frame_value")},{description:H("hotkey_map_item_jump_seek_description"),value:H("hotkey_map_item_jump_seek_value")},{description:H("hotkey_map_item_next_video_description"),value:H("hotkey_map_item_next_video_value")},{description:H("hotkey_map_item_prev_video_description"),value:H("hotkey_map_item_prev_video_value")}]},{title:H("hotkey_map_group_title_subtitles"),items:[{description:H("hotkey_map_item_subtitles_toggle_description"),value:H("hotkey_map_item_subtitles_toggle_value")}]},{title:H("hotkey_map_group_title_episodes"),items:[{description:H("hotkey_map_item_prev_episode_description"),value:Fp.clientChecker.device.isApple?H("hotkey_map_item_prev_episode_mac_value"):H("hotkey_map_item_prev_episode_pc_value")},{description:H("hotkey_map_item_next_episode_description"),value:Fp.clientChecker.device.isApple?H("hotkey_map_item_next_episode_mac_value"):H("hotkey_map_item_next_episode_pc_value")}]}]});var Wa=require("@vkontakte/videoplayer-shared/es2018");var Js=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,Wa.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Wa.ValueSubject(!1),isEnabled$:new Wa.ValueSubject(!1),type:0};this.info.isEnabled$=new Wa.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 ea(t){return t instanceof Js}var Qa=require("@vkontakte/videoplayer-shared/es2018");Pv();function qp(t,e){q(e,!1);let i=Te();Dt(()=>{i.getAdmanWrapper().startPostroll()}),Ir(),K()}var Ph=require("@vkontakte/videoplayer-shared/es2018");var E_=(t,e)=>{t.stopPropagation(),e()()},A_=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>'),P_=L("<div><!></div>"),M_={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function Kp(t,e){q(e,!0),Q(t,M_);let[i,o]=Ue(),n=()=>C(p,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,Ph.noop),p=Te().ui.isMobile,f=m(()=>a()>0&&a()>=s());var _=P_();let u;var $=h(_);{var w=S=>{var I=A_();I.__click=[E_,d];var A=h(I);_e(),g(I),k(P=>pe(A,`${P!=null?P:""} `),[()=>H("skip_ads_now")]),b(S,I)},y=S=>{var I=sr();k(A=>pe(I,A),[()=>H("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(S,I)};R($,S=>{r(f)?S(w):S(y,!1)})}g(_),k(S=>u=te(_,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:r(f)})]),b(t,_),K(),o()}st(["click"]);var L_=L('<button class="svelte-1wy3dql"> </button>'),V_={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 Wp(t,e){q(e,!1),Q(t,V_),Ir();var i=L_(),o=h(i,!0);g(i),k(n=>pe(o,n),[()=>H("visit_advertiser")],Sr),b(t,i),K()}var R_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),B_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),N_={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.`},Ih=y_;var ns=new Map;ns.set(Wa.InterfaceLanguage.EN,Ih);ns.set(Wa.InterfaceLanguage.RU,Th);var kh=new Map,qp=({language:t,pack:e,fallback:i})=>{if(ns.has(t)){let o=ns.get(t);ns.set(t,{...o,...e})}else ns.set(t,e);kh.set(t,i)},Kp=t=>ns.has(t),Wp=(t,e,i,o)=>{var s;let n=ns.get(t),a=n==null?void 0:n[e];if((0,Wa.isNullable)(a)){let d=(s=kh.get(t))!=null?s:o,l=d?ns.get(d):void 0;a=l==null?void 0:l[e]}return(0,Wa.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},H=(t,e)=>{let{interfaceLanguage$:i}=we(),o=ye(i),n=Wt();return Wp(o,t,e,n.defaultLanguage)};var JE=require("@vkontakte/videoplayer-core/es2018");var Qa;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Qa||(Qa={}));var x_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,w_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,S_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Hc="?",C_="X-Sentry-Auth",T_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function I_(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=x_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Hc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=S_.exec(i[a]))n={filename:o[2],function:o[1]||Hc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=w_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Hc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Hc),e.push(n)}return e.length?{value:Eh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Eh(t){return(t&&t.message||"No error message").split(`
|
|
60
|
+
`).filter(i=>!!i)[0]}function k_(t){try{let e=I_(t);if(e)return e}catch(e){}return{value:Eh(t),type:t&&t.name,stacktrace:{frames:[]}}}function E_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Fc=class{constructor(e){if(e&&e.dsn){let i=T_.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:[k_(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(C_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:E_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Ah(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function A_(){return window}var Uc=class t extends Fc{constructor(e,i=A_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:a=p=>p,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=s,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Ah(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=>Ah(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 zc=null,ea=class{constructor(e,i,o={}){!zc&&e.dsn&&(this.sentryClient=new Uc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Js.Subscription,this.options=e,this.context=o,zc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),zc=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:f,blackErrorCategoryList:_}=s,{errorType:u,category:$}=i;if((0,Js.isNonNullable)($)&&_.includes($)||(0,Js.isNonNullable)(u)&&f.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?Qa.fatal:Qa.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return zc}};var $s=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))($s||{});var qc=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(),Ph=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},td=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ys=()=>!!td(),Wc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Qc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Mh=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 Qp=require("@vkontakte/videoplayer-core/es2018"),Lh=()=>({title:H("hotkey_map_modal_title"),closeBtnText:H("hotkey_map_modal_close_btn_text"),groups:[{title:H("hotkey_map_group_title_common"),items:[{description:H("hotkey_map_item_mute_description"),value:H("hotkey_map_item_mute_value")},{description:H("hotkey_map_item_volume_up_description"),value:H("hotkey_map_item_volume_up_value")},{description:H("hotkey_map_item_volume_down_description"),value:H("hotkey_map_item_volume_down_value")},{description:H("hotkey_map_item_pip_description"),value:H("hotkey_map_item_pip_value")},{description:H("hotkey_map_item_full_screen_description"),value:H("hotkey_map_item_full_screen_value")},{description:H("hotkey_map_item_show_context_menu_description"),value:H("hotkey_map_item_show_context_menu_value")},{description:H("hotkey_map_item_show_hotkey_map_description"),value:H("hotkey_map_item_show_hotkey_map_value")}]},{title:H("hotkey_map_group_title_playback"),items:[{description:H("hotkey_map_item_play_toggle_description"),value:H("hotkey_map_item_play_toggle_value")},{description:H("hotkey_map_item_seek_backward_description"),value:H("hotkey_map_item_seek_backward_value")},{description:H("hotkey_map_item_seek_forward_description"),value:H("hotkey_map_item_seek_forward_value")},{description:H("hotkey_map_item_fast_seek_backward_description"),value:H("hotkey_map_item_fast_seek_backward_value")},{description:H("hotkey_map_item_fast_seek_forward_description"),value:H("hotkey_map_item_fast_seek_forward_value")},{description:H("hotkey_map_item_rate_down_description"),value:H("hotkey_map_item_rate_down_value")},{description:H("hotkey_map_item_rate_up_description"),value:H("hotkey_map_item_rate_up_value")},{description:H("hotkey_map_item_prev_frame_description"),value:H("hotkey_map_item_prev_frame_value")},{description:H("hotkey_map_item_next_frame_description"),value:H("hotkey_map_item_next_frame_value")},{description:H("hotkey_map_item_jump_seek_description"),value:H("hotkey_map_item_jump_seek_value")},{description:H("hotkey_map_item_next_video_description"),value:H("hotkey_map_item_next_video_value")},{description:H("hotkey_map_item_prev_video_description"),value:H("hotkey_map_item_prev_video_value")}]},{title:H("hotkey_map_group_title_subtitles"),items:[{description:H("hotkey_map_item_subtitles_toggle_description"),value:H("hotkey_map_item_subtitles_toggle_value")}]},{title:H("hotkey_map_group_title_episodes"),items:[{description:H("hotkey_map_item_prev_episode_description"),value:Qp.clientChecker.device.isApple?H("hotkey_map_item_prev_episode_mac_value"):H("hotkey_map_item_prev_episode_pc_value")},{description:H("hotkey_map_item_next_episode_description"),value:Qp.clientChecker.device.isApple?H("hotkey_map_item_next_episode_mac_value"):H("hotkey_map_item_next_episode_pc_value")}]}]});var Ga=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,Ga.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Ga.ValueSubject(!1),isEnabled$:new Ga.ValueSubject(!1),type:0};this.info.isEnabled$=new Ga.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 Ya=require("@vkontakte/videoplayer-shared/es2018");Vv();function jp(t,e){q(e,!1);let i=we();Ft(()=>{i.getAdmanWrapper().startPostroll()}),Tr(),K()}var Vh=require("@vkontakte/videoplayer-shared/es2018");var P_=(t,e)=>{t.stopPropagation(),e()()},M_=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>'),L_=L("<div><!></div>"),V_={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 Zp(t,e){q(e,!0),Q(t,V_);let[i,o]=Fe(),n=()=>C(p,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,Vh.noop),p=we().ui.isMobile,f=m(()=>a()>0&&a()>=s());var _=L_();let u;var $=h(_);{var w=S=>{var I=M_();I.__click=[P_,d];var A=h(I);_e(),g(I),k(P=>ve(A,`${P!=null?P:""} `),[()=>H("skip_ads_now")]),b(S,I)},y=S=>{var I=ir();k(A=>ve(I,A),[()=>H("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(S,I)};R($,S=>{r(f)?S(w):S(y,!1)})}g(_),k(S=>u=te(_,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:r(f)})]),b(t,_),K(),o()}at(["click"]);var R_=L('<button class="svelte-1wy3dql"> </button>'),N_={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 Xp(t,e){q(e,!1),Q(t,N_),Tr();var i=R_(),o=h(i,!0);g(i),k(n=>ve(o,n),[()=>H("visit_advertiser")],wr),b(t,i),K()}var B_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),D_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),O_={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.`},Sh=b_;var ns=new Map;ns.set(qa.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
|
|
70
|
+
);}`};function id(t,e){q(e,!0),Q(t,O_);let[i,o]=Fe(),n=()=>C(Y,"$canSkipAd",i),a=()=>C(U,"$adPlaybackState",i),s=()=>C(A,"$isMobile",i),d=()=>C(F,"$adPosition",i),l=()=>C(j,"$secondsToWatchBeforeSkipAd",i),p=()=>C(I,"$isVideoEnded",i),f=v(e,"adsSlotId",3,void 0),_=v(e,"adsParams",3,void 0),u=v(e,"adsPreviewParam",3,void 0),$=v(e,"adsAutoplayParam",3,void 0),w=v(e,"duration",3,0),y=we(),S=Wt(),I=y.state.isEnded$,A=y.ui.isMobile,P=S.ads.isMobileGoToSiteButton,E=ee(void 0),T=ee(void 0),V=!1,U=y.ads.playbackState,Y=y.ads.canSkip,F=y.ads.position,j=y.ads.secondsToWatchBeforeSkip,X=m(()=>n()&&a()!=="inactive"),oe=m(()=>s()&&a()!=="inactive"&&P);Ft(()=>{var $e;let ke=y.getAdmanWrapper();if(Ya.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Ya.now)(),f()]}),!f()){ke.onAdmanLoadingError();return}let Ne=Pe=>{ke.initAdman(Pe),V=!0},fe=new AbortController,D=()=>{fe.abort()},{width:de,height:Ee}=ye(y.ui.playerSize),Ye=ye(y.ui.isFullscreen),dt=($e=$())!=null?$e:ye(y.ui.isAutoplay),Ae={width:de,height:Ee,isFullscreen:Ye,isAutoplay:dt,adsContainer:r(E),adsVideoElement:r(T),slotId:f(),params:_(),previewParam:u(),duration:w()};return window.AdmanHTML?Ne(Ae):ke.loadAdman(fe.signal).then(()=>{Ne(Ae)}).catch(()=>{ke.onAdmanLoadingError()}),()=>{Ya.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Ya.now)(),f()]}),!V&&D()}});var pe=D_(),le=h(pe);{var Ve=ke=>{var Ne=B_();b(ke,Ne)};R(le,ke=>{s()&&ke(Ve)})}var Me=M(le,2);ct(Me,ke=>O(T,ke),()=>r(T));var J=M(Me,2);{var Le=ke=>{Zp(ke,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};R(J,ke=>{r(X)&&ke(Le)})}var Z=M(J,2);{var B=ke=>{jp(ke,{})};R(Z,ke=>{p()&&ke(B)})}var Re=M(Z,2);{var ne=ke=>{Xp(ke,{})};R(Re,ke=>{r(oe)&&ke(ne)})}g(pe),ct(pe,ke=>O(E,ke),()=>r(E)),b(t,pe),K(),o()}var rr=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 H_=be('<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 Jp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=H_();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),b(t,o)}var F_=be('<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 ef(t,e){let i=Ie(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}),_e(2),g(o),k(()=>n=xe(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})),b(t,o)}function od(t,e){let i=v(e,"isActive",3,!1);var o=qe(),n=ue(o);{var a=d=>{ef(d,{})},s=d=>{Jp(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var U_=L('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),z_=L('<div role="timer" data-testid="thumb-timer"><div class="thumb-timer-equalizer svelte-opbced"><div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div></div> <span class="thumb-timer-text svelte-opbced"><!></span></div>'),q_={hash:"svelte-opbced",code:`.thumb-timer.svelte-opbced {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration);}.thumb-timer.live.svelte-opbced {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);}.thumb-timer.hidden.svelte-opbced {visibility:hidden;opacity:0;}.thumb-timer.svelte-opbced:after {
|
|
71
71
|
/* safari fix */content:'';display:inline-block;vertical-align:middle;height:100%;}.thumb-timer-live-icon.svelte-opbced {display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px;}.thumb-timer-equalizer.svelte-opbced {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) {margin-top:-2px;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced) {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;}.thumb-timer.playing.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) .col:where(.svelte-opbced) {animation-play-state:running;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(1) {left:0;
|
|
73
73
|
animation-name: svelte-opbced-thumb-timer-equalizer-col1;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(2) {left:3px;
|
|
@@ -138,9 +138,9 @@ Try switching the\xA0quality to\xA0Auto.`},Sh=b_;var ns=new Map;ns.set(qa.Interf
|
|
|
138
138
|
100% {
|
|
139
139
|
transform: scaleY(0.6);
|
|
140
140
|
}
|
|
141
|
-
}.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function td(t,e){q(e,!0),Q(t,U_);let i=v(e,"isHidden",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var a=F_();let s;var d=M(h(a),2),l=h(d);{var p=_=>{var u=H_(),$=h(u);ed($,{isActive:!0}),g(u),b(_,u)},f=_=>{var u=sr();k($=>pe(u,$),[()=>dr(e.duration-e.position)]),b(_,u)};R(l,_=>{o()?_(p):_(f,!1)})}g(d),g(a),k(_=>s=te(a,1,"thumb-timer svelte-opbced",null,s,_),[()=>({live:o(),hidden:i(),playing:n()})]),b(t,a),K()}var Ga=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 Hh=require("@vkontakte/videoplayer-core/es2018");var Yp=require("@vkontakte/videoplayer-core/es2018"),cr=t=>{t.stopPropagation(),t.preventDefault()},q_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},K_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},W_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Q_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Mh=t=>t.code==="Escape",G_=t=>t.code==="ArrowLeft",id=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Lh=t=>{if(W_(t)){cr(t),K_(t.target);return}Q_(t)&&(cr(t),q_(t.target))},Ss=t=>!Yp.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Yp.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Ya=async(t,e,i)=>{await xo(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(await xo(),i.set(!1),t.focus())},Vh=async(t,e,i)=>{await xo(),t&&!e&&xe(i)&&(i.set(!1),t.focus())},ja=async(t,e,i)=>{var n;await xo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},Rh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},zc=(t,e)=>{Lh(t),Mh(t)&&(cr(t),e())},qc=async(t,e)=>{id(t,["ArrowRight"])&&(cr(t),e())},Bh=async(t,e,i)=>{if(Lh(t),G_(t)){cr(t),e();return}Mh(t)&&(cr(t),i())},Za=(t,e)=>{id(t)&&(cr(t),e())},Nh=(t,e,i)=>{if(id(t))cr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),cr(t);return}o==="ArrowRight"&&!e&&(i(!0),cr(t))}},Dh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Oh=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 oa=require("@vkontakte/videoplayer-shared/es2018");var Er={"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 jp=require("@vkontakte/videoplayer-shared/es2018");var j_=(t,e)=>{Za(t,()=>e())},Z_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),X_={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function Zp(t,e){q(e,!0),Q(t,X_);let i=v(e,"onClick",3,jp.noop),o=v(e,"closeContextMenu",3,jp.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=Z_();a.__click=n,a.__keydown=[j_,n];var s=h(a,!0);g(a),k(()=>{var d;Oe(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Oe(a,"data-testid",e.id),pe(s,e.label)}),b(t,a),K()}st(["click","keydown"]);var ia=(t,e)=>t.weight-e.weight;var Xa=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Xa||{});var J_=(t,e)=>{zc(t,e)},eb=t=>{t.preventDefault()},tb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),ib={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function Xp(t,e){q(e,!0),Q(t,ib);let[i,o]=Ue(),n=()=>C(oe,"$isLive$",i),a=()=>C(Me,"$isPiPEnabled$",i),s=()=>C(X,"$chromecastState$",i),d=()=>C(J,"$pictureInPictureApiIsActive$",i),l=()=>C(Ve,"$isLooped$",i),p=()=>C(ce,"$positionExact$",i),f=()=>C(z,"$debugPanelVisible",i),_=()=>C(Y,"$additionalContextMenuItems$",i),u=v(e,"visible",3,!1),$=v(e,"position",19,()=>({top:0,left:0})),w=v(e,"playerContainerRef",3,void 0),y=v(e,"controlsContainerRef",3,void 0),S=v(e,"menuElementRef",15,void 0),I=ee(0),A=ee(0),P=Te(),{pictureInPicture$:E}=uo(),T=Kt(),V=P.ui.contextMenu.visible$,z=P.ui.debugPanelVisible,Y=P.ui.additionalContextMenuItems$,U=P.ui.t,Z=P.actions.internal.togglePictureInPicture,X=P.state.chromecastState$,oe=P.state.isLive$,ce=P.state.positionExact$,le=P.state.isInteractive,Ve=P.state.looped$,{isEnabled$:Me,isActive$:J}=E,Le=m(()=>{var Ge;return T.features.copyVideoLink&&((Ge=P.callbacks)==null?void 0:Ge.onCopyVideoLink)}),j=m(()=>r(Le)&&!n()&&!le),N=m(()=>{var Ge;return!!((Ge=P.callbacks)!=null&&Ge.onCopyEmbedCodeClicked)}),Re=m(()=>a()&&s()!==Hh.ChromecastState.CONNECTED&&!le),ne=m(()=>T.features.videoRotate&&!le),ke=m(()=>T.showSupport&&!d()),Be=m(()=>T.features.saveTraceInfoToFile),ue=()=>{var Ge;V.set(!1),(Ge=e.returnFocus)==null||Ge.call(e)},D=(Ge,lt)=>{if(!S()||!w()||!y())return;let Xe=S().getBoundingClientRect(),It=w().getBoundingClientRect();O(I,Ge-It.left),O(A,lt-It.top),r(I)+Xe.width>It.width&&O(I,It.width-Xe.width),r(A)+Xe.height>It.height&&O(A,It.height-Xe.height),O(I,ge(Math.max(r(I),0))),O(A,ge(Math.max(r(A),0)))};je(()=>{(async()=>{if(S()&&w()&&y()){await xo();let{top:lt,left:Xe,bottom:It,right:Zt}=$(),Ke=Xe!=null?Xe:0,dt=lt!=null?lt:0,ei=S().getBoundingClientRect();(0,oa.isNullable)(Xe)&&!(0,oa.isNullable)(Zt)&&(Ke=Zt-ei.width),(0,oa.isNullable)(lt)&&!(0,oa.isNullable)(It)&&(dt=It-ei.height),Ke=Math.max(Ke,0),dt=Math.max(dt,0),D(Ke,dt)}})()});let de=()=>{P.actions.internal.videoRotate()},Ee=()=>{(0,oa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Qe=()=>{let Ge=P.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let lt=new Blob([...Ge],{type:"plain/text"}),Xe=window.URL.createObjectURL(lt);js(Xe,"vk_player_debug_info","txt")}else Ga(P.actions.internal.getDebugTextData())},at=()=>{let Ge=P.actions.internal.getTraceTextData(),lt=new Blob([...Ge],{type:"application/json"}),Xe=window.URL.createObjectURL(lt);js(Xe,"vk_player_trace_info","json")},Ae=()=>{z.set(!0)},$e=async()=>{var Ge;try{Z()}finally{(Ge=e.returnFocus)==null||Ge.call(e)}},Pe=()=>{P.actions.internal.setLooped(!l())},nt=()=>{var Ge,lt;if(r(N)){let Xe=(lt=(Ge=P.callbacks)==null?void 0:Ge.onCopyEmbedCodeClicked)==null?void 0:lt.call(Ge);Xe&&Ga(Xe)}},mt=(Ge=!1)=>{var lt,Xe;if((lt=P.callbacks)!=null&<.onCopyVideoLink){let It=(Xe=P.callbacks)==null?void 0:Xe.onCopyVideoLink(Ge,p());It&&Ga(It)}},et=m(()=>T.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),Bt=m(()=>r(Le)?{id:"copy-link",weight:Er["copy-link"],label:U("menu_copy_video_link"),onClick:()=>mt()}:void 0),rt=m(()=>r(j)?{id:"copy-link-timestamp",weight:Er["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>mt(!0)}:void 0),vt=m(()=>r(N)?{id:"copy-embed-code",weight:Er["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:nt}:void 0),Ft=m(()=>r(Re)?{id:"pip",weight:Er.pip,label:U("menu_pip"),onClick:$e}:void 0),qt=m(()=>({id:"video-loop",weight:Er["video-loop"],label:l()?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:Pe})),Ne=m(()=>r(ne)?{id:"rotate",weight:Er.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:de}:void 0),re=m(()=>r(ke)?{id:"report",weight:Er.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:Ee}:void 0),W=m(()=>({id:"save-debug",weight:Er["save-debug"],label:r(et),onClick:Qe})),se=m(()=>r(Be)?{id:"save-trace",weight:Er["save-trace"],label:U("menu_save_debug"),onClick:at}:void 0),ve=m(()=>({id:"debug-info",weight:Er["debug-info"],label:U("menu_debug_overlay"),ariaLabel:f()?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"),onClick:Ae})),Se=m(()=>[r(Bt),r(rt),r(vt),r(Ft),r(qt),r(Ne),r(re),r(W),r(se),r(ve),..._()].filter(Ge=>!!Ge).sort(ia));var De=qe(),ut=me(De);{var Ut=Ge=>{var lt=tb();lt.__contextmenu=[eb],lt.__keydown=[J_,ue],$i(lt,21,()=>r(Se),Xe=>Xe.id,(Xe,It)=>{Zp(Xe,{get id(){return r(It).id},get label(){return r(It).label},get ariaLabel(){return r(It).ariaLabel},get onClick(){return r(It).onClick},closeContextMenu:ue})}),g(lt),ct(lt,Xe=>S(Xe),()=>S()),k(()=>{var Xe,It;return ot(lt,`top: ${(Xe=r(A))!=null?Xe:""}px; left: ${(It=r(I))!=null?It:""}px;`)}),b(Ge,lt)};R(ut,Ge=>{u()&&Ge(Ut)})}b(t,De),K(),o()}st(["contextmenu","keydown"]);var Kc=class{constructor(e){this.value=e,this.next=null}};var Ja=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Kc(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 ob=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),nb={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 od(t,e){q(e,!0),Q(t,nb);let i=v(e,"values",19,()=>[]),o=ee(void 0),n=ee(null),a=16,s=120,d=60,l=s/d;Dt(()=>{r(o).width=s,r(o).height=a,O(n,ge(r(o).getContext("2d")))});function p(u,$,w,y,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect($,w,y,S)}je(()=>{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 S=w*l,I=$>0?a*(i()[y]/$):0;p(r(n),S,0,l,I),u=I+" "+u,w--}}});var f=ob(),_=h(f);ct(_,u=>O(o,u),()=>r(o)),g(f),b(t,f),K()}var Jp=require("@vkontakte/videoplayer-shared/es2018");var rb=(t,e)=>{t.stopPropagation(),Jp.safeStorage.remove(Kl),e.set(!1)},sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),db=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>'),ub=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),pb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),fb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),vb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),gb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),hb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),_b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),bb=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>'),$b={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 nd(t,e){q(e,!0),Q(t,$b);let[i,o]=Ue(),n=()=>C(d,"$isMobile",i),a=Te(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=ee(ge(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),f=ee(0),_=ee(0),u=ee(0),$=new Ja(60),w=new Ja(60),y=new Ja(60),S=ee(ge([])),I=ee(ge([])),A=ee(ge([])),P=H("aria_label_debug_panel");Dt(()=>{Jp.safeStorage.set(Kl,"true"),a.actions.internal.startLogging(),p&&(O(_,ge(p.getVideoPlaybackQuality().droppedVideoFrames)),O(f,ge(p.getVideoPlaybackQuality().totalVideoFrames)));let W=window.setInterval(()=>{O(l,ge(a.actions.internal.getDebugPanelData()))},500),se;return p&&(se=window.setInterval(()=>{if(p){O(_,ge(p.getVideoPlaybackQuality().droppedVideoFrames));let ve=p.getVideoPlaybackQuality().totalVideoFrames;O(u,ve-r(f)),O(f,ge(ve)),$.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),O(S,ge($.getValuesFromBottom())),O(I,ge(w.getValuesFromBottom())),O(A,ge(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(W),se&&clearInterval(se)}});var E=bb();let T;Oe(E,"aria-label",P);var V=h(E);V.__click=[rb,s];var z=M(V,2),Y=h(z),U=M(h(Y),2),Z=h(U,!0);g(U),g(Y);var X=M(Y,2);{var oe=W=>{var se=sb(),ve=M(h(se),2),Se=h(ve,!0);g(ve),g(se),k(()=>pe(Se,r(l).id)),b(W,se)};R(X,W=>{r(l).id&&W(oe)})}var ce=M(X,2);{var le=W=>{var se=ab(),ve=M(h(se),2),Se=h(ve,!0);g(ve),g(se),k(()=>pe(Se,r(l).vsid)),b(W,se)};R(ce,W=>{r(l).vsid&&W(le)})}var Ve=M(ce,2);{var Me=W=>{var se=lb(),ve=M(h(se),2),Se=h(ve,!0);g(ve),g(se),k(()=>pe(Se,r(l).provider)),b(W,se)};R(Ve,W=>{r(l).provider&&W(Me)})}var J=M(Ve,2);{var Le=W=>{var se=db(),ve=M(h(se),2),Se=h(ve);g(ve),g(se),k(()=>{var De,ut;return pe(Se,`Video: ${r(l).videoCodec||""} ${(De=r(l).hdr?"(HDR)":"")!=null?De:""}
|
|
141
|
+
}.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function nd(t,e){q(e,!0),Q(t,q_);let i=v(e,"isHidden",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var a=z_();let s;var d=M(h(a),2),l=h(d);{var p=_=>{var u=U_(),$=h(u);od($,{isActive:!0}),g(u),b(_,u)},f=_=>{var u=ir();k($=>ve(u,$),[()=>rr(e.duration-e.position)]),b(_,u)};R(l,_=>{o()?_(p):_(f,!1)})}g(d),g(a),k(_=>s=te(a,1,"thumb-timer svelte-opbced",null,s,_),[()=>({live:o(),hidden:i(),playing:n()})]),b(t,a),K()}var ja=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 zh=require("@vkontakte/videoplayer-core/es2018");var tf=require("@vkontakte/videoplayer-core/es2018"),sr=t=>{t.stopPropagation(),t.preventDefault()},W_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Q_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},G_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Y_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Rh=t=>t.code==="Escape",j_=t=>t.code==="ArrowLeft",rd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Nh=t=>{if(G_(t)){sr(t),Q_(t.target);return}Y_(t)&&(sr(t),W_(t.target))},Ss=t=>!tf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||tf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Za=async(t,e,i)=>{await mo(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(await mo(),i.set(!1),t.focus())},Bh=async(t,e,i)=>{await mo(),t&&!e&&ye(i)&&(i.set(!1),t.focus())},Xa=async(t,e,i)=>{var n;await mo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},Dh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Gc=(t,e)=>{Nh(t),Rh(t)&&(sr(t),e())},Yc=async(t,e)=>{rd(t,["ArrowRight"])&&(sr(t),e())},Oh=async(t,e,i)=>{if(Nh(t),j_(t)){sr(t),e();return}Rh(t)&&(sr(t),i())},Ja=(t,e)=>{rd(t)&&(sr(t),e())},Hh=(t,e,i)=>{if(rd(t))sr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),sr(t);return}o==="ArrowRight"&&!e&&(i(!0),sr(t))}},Fh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Uh=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 kr={"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 of=require("@vkontakte/videoplayer-shared/es2018");var X_=(t,e)=>{Ja(t,()=>e())},J_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),eb={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 nf(t,e){q(e,!0),Q(t,eb);let i=v(e,"onClick",3,of.noop),o=v(e,"closeContextMenu",3,of.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=J_();a.__click=n,a.__keydown=[X_,n];var s=h(a,!0);g(a),k(()=>{var d;Oe(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Oe(a,"data-testid",e.id),ve(s,e.label)}),b(t,a),K()}at(["click","keydown"]);var na=(t,e)=>t.weight-e.weight;var el=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(el||{});var tb=(t,e)=>{Gc(t,e)},ib=t=>{t.preventDefault()},ob=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),nb={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 rf(t,e){q(e,!0),Q(t,nb);let[i,o]=Fe(),n=()=>C(oe,"$isLive$",i),a=()=>C(Me,"$isPiPEnabled$",i),s=()=>C(X,"$chromecastState$",i),d=()=>C(J,"$pictureInPictureApiIsActive$",i),l=()=>C(Ve,"$isLooped$",i),p=()=>C(pe,"$positionExact$",i),f=()=>C(U,"$debugPanelVisible",i),_=()=>C(Y,"$additionalContextMenuItems$",i),u=v(e,"visible",3,!1),$=v(e,"position",19,()=>({top:0,left:0})),w=v(e,"playerContainerRef",3,void 0),y=v(e,"controlsContainerRef",3,void 0),S=v(e,"menuElementRef",15,void 0),I=ee(0),A=ee(0),P=we(),{pictureInPicture$:E}=so(),T=Wt(),V=P.ui.contextMenu.visible$,U=P.ui.debugPanelVisible,Y=P.ui.additionalContextMenuItems$,F=P.ui.t,j=P.actions.internal.togglePictureInPicture,X=P.state.chromecastState$,oe=P.state.isLive$,pe=P.state.positionExact$,le=P.state.isInteractive,Ve=P.state.looped$,{isEnabled$:Me,isActive$:J}=E,Le=m(()=>{var Ze;return T.features.copyVideoLink&&((Ze=P.callbacks)==null?void 0:Ze.onCopyVideoLink)}),Z=m(()=>r(Le)&&!n()&&!le),B=m(()=>{var Ze;return!!((Ze=P.callbacks)!=null&&Ze.onCopyEmbedCodeClicked)}),Re=m(()=>a()&&s()!==zh.ChromecastState.CONNECTED&&!le),ne=m(()=>T.features.videoRotate&&!le),ke=m(()=>T.showSupport&&!d()),Ne=m(()=>T.features.saveTraceInfoToFile),fe=()=>{var Ze;V.set(!1),(Ze=e.returnFocus)==null||Ze.call(e)},D=(Ze,pt)=>{if(!S()||!w()||!y())return;let Je=S().getBoundingClientRect(),Pt=w().getBoundingClientRect();O(I,Ze-Pt.left),O(A,pt-Pt.top),r(I)+Je.width>Pt.width&&O(I,Pt.width-Je.width),r(A)+Je.height>Pt.height&&O(A,Pt.height-Je.height),O(I,me(Math.max(r(I),0))),O(A,me(Math.max(r(A),0)))};Ke(()=>{(async()=>{if(S()&&w()&&y()){await mo();let{top:pt,left:Je,bottom:Pt,right:ri}=$(),Ge=Je!=null?Je:0,ot=pt!=null?pt:0,Jt=S().getBoundingClientRect();(0,ra.isNullable)(Je)&&!(0,ra.isNullable)(ri)&&(Ge=ri-Jt.width),(0,ra.isNullable)(pt)&&!(0,ra.isNullable)(Pt)&&(ot=Pt-Jt.height),Ge=Math.max(Ge,0),ot=Math.max(ot,0),D(Ge,ot)}})()});let de=()=>{P.actions.internal.videoRotate()},Ee=()=>{(0,ra.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Ye=()=>{let Ze=P.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let pt=new Blob([...Ze],{type:"plain/text"}),Je=window.URL.createObjectURL(pt);Xs(Je,"vk_player_debug_info","txt")}else ja(P.actions.internal.getDebugTextData())},dt=()=>{let Ze=P.actions.internal.getTraceTextData(),pt=new Blob([...Ze],{type:"application/json"}),Je=window.URL.createObjectURL(pt);Xs(Je,"vk_player_trace_info","json")},Ae=()=>{U.set(!0)},$e=async()=>{var Ze;try{j()}finally{(Ze=e.returnFocus)==null||Ze.call(e)}},Pe=()=>{P.actions.internal.setLooped(!l())},rt=()=>{var Ze,pt;if(r(B)){let Je=(pt=(Ze=P.callbacks)==null?void 0:Ze.onCopyEmbedCodeClicked)==null?void 0:pt.call(Ze);Je&&ja(Je)}},vt=(Ze=!1)=>{var pt,Je;if((pt=P.callbacks)!=null&&pt.onCopyVideoLink){let Pt=(Je=P.callbacks)==null?void 0:Je.onCopyVideoLink(Ze,p());Pt&&ja(Pt)}},lt=m(()=>T.features.saveDebugInfoToFile?F("menu_save_debug"):F("menu_copy_debug")),Et=m(()=>r(Le)?{id:"copy-link",weight:kr["copy-link"],label:F("menu_copy_video_link"),onClick:()=>vt()}:void 0),st=m(()=>r(Z)?{id:"copy-link-timestamp",weight:kr["copy-link-timestamp"],label:F("menu_copy_video_link_with_timestamp"),onClick:()=>vt(!0)}:void 0),gt=m(()=>r(B)?{id:"copy-embed-code",weight:kr["copy-embed-code"],label:F("menu_copy_embed_code"),onClick:rt}:void 0),qt=m(()=>r(Re)?{id:"pip",weight:kr.pip,label:F("menu_pip"),onClick:$e}:void 0),Yt=m(()=>({id:"video-loop",weight:kr["video-loop"],label:l()?F("menu_video_loop_off"):F("menu_video_loop_on"),ariaLabel:F("aria_label_menu_loop"),onClick:Pe})),Be=m(()=>r(ne)?{id:"rotate",weight:kr.rotate,label:F("menu_video_rotate"),ariaLabel:F("aria_label_menu_rotate"),onClick:de}:void 0),re=m(()=>r(ke)?{id:"report",weight:kr.report,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,onClick:Ee}:void 0),W=m(()=>({id:"save-debug",weight:kr["save-debug"],label:r(lt),onClick:Ye})),se=m(()=>r(Ne)?{id:"save-trace",weight:kr["save-trace"],label:F("menu_save_debug"),onClick:dt}:void 0),he=m(()=>({id:"debug-info",weight:kr["debug-info"],label:F("menu_debug_overlay"),ariaLabel:f()?F("aria_label_menu_debug_overlay_disable"):F("aria_label_menu_debug_overlay_enable"),onClick:Ae})),Se=m(()=>[r(Et),r(st),r(gt),r(qt),r(Yt),r(Be),r(re),r(W),r(se),r(he),..._()].filter(Ze=>!!Ze).sort(na));var De=qe(),ut=ue(De);{var Qt=Ze=>{var pt=ob();pt.__contextmenu=[ib],pt.__keydown=[tb,fe],bi(pt,21,()=>r(Se),Je=>Je.id,(Je,Pt)=>{nf(Je,{get id(){return r(Pt).id},get label(){return r(Pt).label},get ariaLabel(){return r(Pt).ariaLabel},get onClick(){return r(Pt).onClick},closeContextMenu:fe})}),g(pt),ct(pt,Je=>S(Je),()=>S()),k(()=>{var Je,Pt;return tt(pt,`top: ${(Je=r(A))!=null?Je:""}px; left: ${(Pt=r(I))!=null?Pt:""}px;`)}),b(Ze,pt)};R(ut,Ze=>{u()&&Ze(Qt)})}b(t,De),K(),o()}at(["contextmenu","keydown"]);var jc=class{constructor(e){this.value=e,this.next=null}};var tl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new jc(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 rb=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),sb={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 sd(t,e){q(e,!0),Q(t,sb);let i=v(e,"values",19,()=>[]),o=ee(void 0),n=ee(null),a=16,s=120,d=60,l=s/d;Ft(()=>{r(o).width=s,r(o).height=a,O(n,me(r(o).getContext("2d")))});function p(u,$,w,y,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect($,w,y,S)}Ke(()=>{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 S=w*l,I=$>0?a*(i()[y]/$):0;p(r(n),S,0,l,I),u=I+" "+u,w--}}});var f=rb(),_=h(f);ct(_,u=>O(o,u),()=>r(o)),g(f),b(t,f),K()}var sf=require("@vkontakte/videoplayer-shared/es2018");var ab=(t,e)=>{t.stopPropagation(),sf.safeStorage.remove(Gl),e.set(!1)},lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),db=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),ub=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),pb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),fb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),vb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),gb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),hb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),_b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),bb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),$b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),yb=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>'),xb={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 ad(t,e){q(e,!0),Q(t,xb);let[i,o]=Fe(),n=()=>C(d,"$isMobile",i),a=we(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=ee(me(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),f=ee(0),_=ee(0),u=ee(0),$=new tl(60),w=new tl(60),y=new tl(60),S=ee(me([])),I=ee(me([])),A=ee(me([])),P=H("aria_label_debug_panel");Ft(()=>{sf.safeStorage.set(Gl,"true"),a.actions.internal.startLogging(),p&&(O(_,me(p.getVideoPlaybackQuality().droppedVideoFrames)),O(f,me(p.getVideoPlaybackQuality().totalVideoFrames)));let W=window.setInterval(()=>{O(l,me(a.actions.internal.getDebugPanelData()))},500),se;return p&&(se=window.setInterval(()=>{if(p){O(_,me(p.getVideoPlaybackQuality().droppedVideoFrames));let he=p.getVideoPlaybackQuality().totalVideoFrames;O(u,he-r(f)),O(f,me(he)),$.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),O(S,me($.getValuesFromBottom())),O(I,me(w.getValuesFromBottom())),O(A,me(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(W),se&&clearInterval(se)}});var E=yb();let T;Oe(E,"aria-label",P);var V=h(E);V.__click=[ab,s];var U=M(V,2),Y=h(U),F=M(h(Y),2),j=h(F,!0);g(F),g(Y);var X=M(Y,2);{var oe=W=>{var se=lb(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(()=>ve(Se,r(l).id)),b(W,se)};R(X,W=>{r(l).id&&W(oe)})}var pe=M(X,2);{var le=W=>{var se=db(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(()=>ve(Se,r(l).vsid)),b(W,se)};R(pe,W=>{r(l).vsid&&W(le)})}var Ve=M(pe,2);{var Me=W=>{var se=cb(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(()=>ve(Se,r(l).provider)),b(W,se)};R(Ve,W=>{r(l).provider&&W(Me)})}var J=M(Ve,2);{var Le=W=>{var se=ub(),he=M(h(se),2),Se=h(he);g(he),g(se),k(()=>{var De,ut;return ve(Se,`Video: ${r(l).videoCodec||""} ${(De=r(l).hdr?"(HDR)":"")!=null?De:""}
|
|
142
142
|
&
|
|
143
|
-
Audio: ${r(l).audioCodec||""} ${(ut=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?ut:""}`)}),b(W,se)};R(J,W=>{(r(l).videoCodec||r(l).audioCodec)&&W(Le)})}var j=M(J,2);{var N=W=>{var se=cb(),ve=M(h(se),2),Se=h(ve,!0);g(ve),g(se),k(()=>pe(Se,r(l).viewport)),b(W,se)};R(j,W=>{r(l).viewport&&W(N)})}var Re=M(j,2);{var ne=W=>{var se=ub(),ve=M(h(se),2),Se=h(ve,!0);g(ve),g(se),k(()=>pe(Se,r(l).videoSize)),b(W,se)};R(Re,W=>{r(l).videoSize&&W(ne)})}var ke=M(Re,2);{var Be=W=>{var se=pb(),ve=M(h(se),2),Se=h(ve,!0);g(ve),g(se),k(()=>pe(Se,r(l).cdn)),b(W,se)};R(ke,W=>{r(l).cdn&&W(Be)})}var ue=M(ke,2);{var D=W=>{var se=fb(),ve=M(h(se),2),Se=h(ve);g(ve),g(se),k(()=>{var De;return pe(Se,`${(De=r(l).volume)!=null?De:""} %`)}),b(W,se)};R(ue,W=>{r(l).volume&&W(D)})}var de=M(ue,2);{var Ee=W=>{var se=mb(),ve=M(h(se),2),Se=h(ve);g(ve),g(se),k(De=>pe(Se,`${De!=null?De:""} s`),[()=>r(l).buffer.toFixed(2)]),b(W,se)};R(de,W=>{r(l).buffer&&W(Ee)})}var Qe=M(de,2);{var at=W=>{var se=vb(),ve=M(h(se),2),Se=h(ve);g(ve),g(se),k(De=>pe(Se,`${De!=null?De:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(W,se)};R(Qe,W=>{r(l).liveLatency&&W(at)})}var Ae=M(Qe,2);{var $e=W=>{var se=gb(),ve=M(h(se),2),Se=h(ve,!0);g(ve),g(se),k(De=>pe(Se,De),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:De})=>De).map(({value:De,title:ut})=>`${ut} ${((De!=null?De:0)/1e3).toFixed(2)} s`).join(" & ")]),b(W,se)};R(Ae,W=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&W($e)})}var Pe=M(Ae,2),nt=M(h(Pe),2),mt=h(nt);g(nt),g(Pe);var et=M(Pe,2);{var Bt=W=>{var se=hb(),ve=M(h(se),2);od(ve,{get values(){return r(I)}});var Se=M(ve,2),De=h(Se);g(Se),g(se),k(ut=>pe(De,`${ut!=null?ut:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(W,se)};R(et,W=>{r(l).speed&&W(Bt)})}var rt=M(et,2);{var vt=W=>{var se=_b(),ve=M(h(se),2);od(ve,{get values(){return r(A)}});var Se=M(ve,2),De=h(Se);g(Se),g(se),k(ut=>pe(De,`${ut!=null?ut:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(W,se)};R(rt,W=>{r(l).bitrate&&W(vt)})}var Ft=M(rt,2),qt=M(h(Ft),2);od(qt,{get values(){return r(S)}});var Ne=M(qt,2),re=h(Ne,!0);g(Ne),g(Ft),g(z),g(E),k(W=>{var se,ve;T=te(E,1,"container svelte-4deykz",null,T,W),pe(Z,r(l).version),pe(mt,`${(se=r(_))!=null?se:""} / ${(ve=r(f))!=null?ve:""} frames`),pe(re,r(u))},[()=>({"container-mobile":n()})]),b(t,E),K(),o()}st(["click"]);var Fh=require("@vkontakte/videoplayer-shared/es2018"),yb=(t,e)=>{t.stopPropagation(),e()()},xb=L('<div class="close svelte-1ome55p"></div>'),wb={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 na(t,e){q(e,!0),Q(t,wb);let i=v(e,"onClick",3,Fh.noop);var o=xb();o.__click=[yb,i],b(t,o),K()}st(["click"]);var Uh=require("@vkontakte/videoplayer-shared/es2018"),Sb=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>'),Cb={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 rd(t,e){q(e,!0),Q(t,Cb);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,Uh.noop),n=5e3,a=ee(void 0),s,d,l=ee(0),p;je(()=>{i()&&(d=Date.now(),O(l,ge(requestAnimationFrame(_))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),O(l,0))},_=()=>{if(!i()){f();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(),O(l,ge(requestAnimationFrame(_)))):o()()};Dt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),$n(()=>{f()});var u=Sb(),$=h(u);ct($,w=>O(a,w),()=>r(a)),_e(2),g(u),b(t,u),K()}var Tb=(t,e,i)=>{e(!1),i()},Ib=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),kb={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 ef(t,e){q(e,!0),Q(t,kb);let[i,o]=Ue(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),$()};Dt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=qe(),I=me(S);{var A=P=>{var E=Ib(),T=M(me(E),2),V=h(T),z=h(V),Y=h(z,!0);g(z);var U=M(z,2);na(U,{onClick:y}),g(V);var Z=M(V,2);Z.__click=[Tb,p,_];var X=h(Z),oe=h(X),ce=h(oe);let le;var Ve=M(ce,2);{var Me=N=>{let Re=m(()=>a()&&n());rd(N,{get isRunning(){return r(Re)},onTimerEnded:w})};R(Ve,N=>{n()&&N(Me)})}g(oe),g(X);var J=M(X,2),Le=h(J),j=h(Le,!0);g(Le),g(J),g(Z),g(T),k((N,Re)=>{pe(Y,N),ot(oe,`background-image: url('${e.thumb}')`),le=te(ce,1,"thumb-overlay svelte-jfbaax",null,le,Re),pe(j,e.title)},[()=>H("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,E)};R(I,P=>{e.isHide||P(A)})}b(t,S),K(),o()}st(["click"]);var Ts=require("@vkontakte/videoplayer-core/es2018"),zh=require("@vkontakte/videoplayer-shared/es2018"),rn=require("@vkontakte/videoplayer-statistics/es2018");var tf=(t,e)=>Math.min(+(t+e).toFixed(2),1),of=(t,e)=>Math.max(+(t-e).toFixed(2),0),Wc=(t,e,i)=>{let o=tf(e,i);e<1&&t.actions.internal.setVolume(o)},Qc=(t,e,i)=>{let o=of(e,i);e>0&&t.actions.internal.setVolume(o)};var Cs=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var Ab=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Pb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function nf(t,e){var qt,Ne;q(e,!0),Q(t,Pb);let[i,o]=Ue(),n=()=>C(Y,"$playbackState$",i),a=()=>C(U,"$adPlaybackState",i),s=()=>C(ce,"$disabledControls$",i),d=()=>C(Z,"$positionExact$",i),l=()=>C(X,"$duration$",i),p=()=>C(D,"$isAudioAvailable$",i),f=()=>C(oe,"$volume$",i),_=()=>C(J,"$availablePlaybackRates$",i),u=()=>C(Me,"$currentPlaybackRate$",i),$=()=>C(Ee,"$isInteractiveTime$",i),w=()=>C(Qe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(ne,"$isEnded$",i),S=()=>C(le,"$muted$",i),I=()=>C(Ve,"$currentSubtitle$",i),A=()=>C(ke,"$overlayContainer$",i),P=v(e,"nextButtonActive",3,!1),E=v(e,"prevButtonActive",3,!1),T=Te(),V=Kt(),z=T.getLogger().createComponentLog("KeyboardControls component"),Y=T.state.playbackState$,U=T.ads.playbackState,Z=T.state.positionExact$,X=T.state.duration$,oe=T.state.volume$,ce=T.ui.controls.disabledControls$,le=T.state.muted$,Ve=T.state.currentSubtitle$,Me=T.state.currentPlaybackRate$,J=T.state.availablePlaybackRates$,Le=T.ui.contextMenu.openedByHotKey$,j=T.ui.contextMenu.lastActiveElem$,N=T.ui.contextMenu.visible$,Re=T.ui.contextMenu.position$,ne=T.state.isEnded$,ke=T.ui.overlayContainer$,Be=(qt=T.callbacks)==null?void 0:qt.onAudioDoesNotExistHint,ue=(Ne=T.callbacks)==null?void 0:Ne.onAudioDisabledHint,D=T.state.isAudioAvailable$,de=T.state.isAudioDisabled,Ee=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Qe}=uo(),at=0,Ae=!0,$e=ee(void 0),Pe=()=>{var re;return(re=r($e))==null?void 0:re.focus()},nt=re=>(re!==Ae&&(Ae=re,at=0),at+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*at)/1e3),mt=re=>{var It,Zt;let W=re.target,se=(It=W==null?void 0:W.getAttribute("role"))==null?void 0:It.includes("menuitem"),ve=W.classList.contains("btn"),Se=re.code;if(ve&&Se==="Space")return;let De=Gg.has(Se);if(se&&De)return;let ut=!Qg.has(Se);if(re.ctrlKey&&ut||re.altKey&&ut||re.metaKey)return;let Ut=se&&Se==="Escape";Yg.has(Se)||Ut||e.hideContextMenu();let Ge=n()===Ts.PlaybackState.PLAYING||n()===Ts.PlaybackState.PAUSED,lt=e.isAds&&(a()==="paused"||a()==="playing"),Xe=!lt&&!s().has("TIMELINE");if(Ge||lt)switch(z({message:`key down, code: ${Se}`}),Se){case"KeyJ":case"ArrowLeft":{if(!Xe)break;if(re.ctrlKey||re.altKey){let Ke=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(Ke),Ke&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ke.text}),re.preventDefault()}else{let Ke=re.shiftKey?nt(!1):V.controls.seekStepKeyboard/1e3,dt=Math.max(d()-Ke,0);d()>0&&(T.actions.internal.seekTime(dt,rn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ke.toString()}),re.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Xe)break;if(re.ctrlKey||re.altKey){let Ke=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(Ke),Ke&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ke.text}),re.preventDefault()}else{let Ke=re.shiftKey?nt(!0):V.controls.seekStepKeyboard/1e3,dt=Math.min(d()+Ke,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(dt,rn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ke.toString()}),re.preventDefault())}break}case"ArrowUp":{if(Cs({isAudioDisabled:de,audioDisabledHintCallback:ue,isAudioAvailable:p(),audioIsNotExistHintCallback:Be})){let Ke=f(),dt=V.controls.volumeStepKeyboard,ei=Ke<=1;if(Wc(T,Ke,dt),ei){let Ri=Math.round(tf(Ke,dt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ri}})}}re.preventDefault();break}case"ArrowDown":{if(Cs({isAudioDisabled:de,audioDisabledHintCallback:ue,isAudioAvailable:p(),audioIsNotExistHintCallback:Be})){let Ke=f(),dt=V.controls.volumeStepKeyboard,ei=Ke>=0;if(Qc(T,Ke,dt),ei){let Ri=Math.round(of(Ke,dt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ri}})}}re.preventDefault();break}case"Comma":{if(re.shiftKey){T.actions.internal.decrementPlaybackRate();let Ke=_().find(dt=>dt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ke==null?void 0:Ke.displayValue}),re.preventDefault()}else{if(lt||n()!==Ts.PlaybackState.PAUSED)break;let Ke=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ke,rn.SeekAction.DOUBLE_TAP),re.preventDefault())}break}case"Period":{if(re.shiftKey){T.actions.internal.incrementPlaybackRate();let Ke=_().find(dt=>dt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:Ke==null?void 0:Ke.displayValue}),re.preventDefault()}else{if(lt||n()!==Ts.PlaybackState.PAUSED)break;let Ke=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ke,rn.SeekAction.DOUBLE_TAP),re.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&Qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let Ke="PLAY";n()===Ts.PlaybackState.PAUSED?Ke="PAUSE":y()&&(Ke="REPLAY"),e.showHotKeyHelpers({type:Ke})}re.preventDefault();break;case"KeyM":{Cs({isAudioDisabled:de,audioDisabledHintCallback:ue,isAudioAvailable:p(),audioIsNotExistHintCallback:Be})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),T.actions.internal.toggleMuted()),re.preventDefault();break}case"KeyF":e.toggleFullscreen(),re.preventDefault();break;case"KeyC":T.actions.internal.toggleSubtitle(),I().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Zt=I())==null?void 0:Zt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),re.preventDefault();break;case"KeyI":T.actions.internal.togglePictureInPicture(),re.preventDefault();break;case"Digit1":case"Numpad1":if(re.shiftKey){let Ke=Oh(A());Re.set(Ke),j.set(W),Le.set(!0),N.set(!0),re.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,rn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,rn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,rn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,rn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,rn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,rn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,rn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,rn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,rn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,rn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Slash":{re.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),re.preventDefault());break}case"KeyN":re.shiftKey&&P()&&T.actions.internal.nextVideoClick();break;case"KeyP":re.shiftKey&&E()&&T.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":re.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,zh.checkNever)(Se);break}},et=re=>{let W=re.code;if(re.ctrlKey||re.altKey||re.metaKey)return;let se=n()===Ts.PlaybackState.PLAYING||n()===Ts.PlaybackState.PAUSED,ve=e.isAds&&(a()==="paused"||a()==="playing");if(se||ve)switch(W){case"ShiftLeft":case"ShiftRight":at=0;break}},Bt=H("aria_label_video_player");var rt=Ab();rt.__keyup=et,rt.__keydown=mt,Oe(rt,"aria-label",Bt);var vt=h(rt);fe(vt,()=>{var re;return(re=e.children)!=null?re:ie}),g(rt),ct(rt,re=>O($e,re),()=>r($e)),b(t,rt);var Ft=K({focus:Pe});return o(),Ft}st(["keyup","keydown"]);var Mb=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>'),Lb={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);}
|
|
143
|
+
Audio: ${r(l).audioCodec||""} ${(ut=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?ut:""}`)}),b(W,se)};R(J,W=>{(r(l).videoCodec||r(l).audioCodec)&&W(Le)})}var Z=M(J,2);{var B=W=>{var se=pb(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(()=>ve(Se,r(l).viewport)),b(W,se)};R(Z,W=>{r(l).viewport&&W(B)})}var Re=M(Z,2);{var ne=W=>{var se=fb(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(()=>ve(Se,r(l).videoSize)),b(W,se)};R(Re,W=>{r(l).videoSize&&W(ne)})}var ke=M(Re,2);{var Ne=W=>{var se=mb(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(()=>ve(Se,r(l).cdn)),b(W,se)};R(ke,W=>{r(l).cdn&&W(Ne)})}var fe=M(ke,2);{var D=W=>{var se=vb(),he=M(h(se),2),Se=h(he);g(he),g(se),k(()=>{var De;return ve(Se,`${(De=r(l).volume)!=null?De:""} %`)}),b(W,se)};R(fe,W=>{r(l).volume&&W(D)})}var de=M(fe,2);{var Ee=W=>{var se=gb(),he=M(h(se),2),Se=h(he);g(he),g(se),k(De=>ve(Se,`${De!=null?De:""} s`),[()=>r(l).buffer.toFixed(2)]),b(W,se)};R(de,W=>{r(l).buffer&&W(Ee)})}var Ye=M(de,2);{var dt=W=>{var se=hb(),he=M(h(se),2),Se=h(he);g(he),g(se),k(De=>ve(Se,`${De!=null?De:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(W,se)};R(Ye,W=>{r(l).liveLatency&&W(dt)})}var Ae=M(Ye,2);{var $e=W=>{var se=_b(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(De=>ve(Se,De),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:De})=>De).map(({value:De,title:ut})=>`${ut} ${((De!=null?De:0)/1e3).toFixed(2)} s`).join(" & ")]),b(W,se)};R(Ae,W=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&W($e)})}var Pe=M(Ae,2),rt=M(h(Pe),2),vt=h(rt);g(rt),g(Pe);var lt=M(Pe,2);{var Et=W=>{var se=bb(),he=M(h(se),2);sd(he,{get values(){return r(I)}});var Se=M(he,2),De=h(Se);g(Se),g(se),k(ut=>ve(De,`${ut!=null?ut:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(W,se)};R(lt,W=>{r(l).speed&&W(Et)})}var st=M(lt,2);{var gt=W=>{var se=$b(),he=M(h(se),2);sd(he,{get values(){return r(A)}});var Se=M(he,2),De=h(Se);g(Se),g(se),k(ut=>ve(De,`${ut!=null?ut:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(W,se)};R(st,W=>{r(l).bitrate&&W(gt)})}var qt=M(st,2),Yt=M(h(qt),2);sd(Yt,{get values(){return r(S)}});var Be=M(Yt,2),re=h(Be,!0);g(Be),g(qt),g(U),g(E),k(W=>{var se,he;T=te(E,1,"container svelte-4deykz",null,T,W),ve(j,r(l).version),ve(vt,`${(se=r(_))!=null?se:""} / ${(he=r(f))!=null?he:""} frames`),ve(re,r(u))},[()=>({"container-mobile":n()})]),b(t,E),K(),o()}at(["click"]);var qh=require("@vkontakte/videoplayer-shared/es2018"),wb=(t,e)=>{t.stopPropagation(),e()()},Sb=L('<div class="close svelte-1ome55p"></div>'),Cb={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){q(e,!0),Q(t,Cb);let i=v(e,"onClick",3,qh.noop);var o=Sb();o.__click=[wb,i],b(t,o),K()}at(["click"]);var Kh=require("@vkontakte/videoplayer-shared/es2018"),Tb=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>'),Ib={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 ld(t,e){q(e,!0),Q(t,Ib);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,Kh.noop),n=5e3,a=ee(void 0),s,d,l=ee(0),p;Ke(()=>{i()&&(d=Date.now(),O(l,me(requestAnimationFrame(_))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),O(l,0))},_=()=>{if(!i()){f();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(),O(l,me(requestAnimationFrame(_)))):o()()};Ft(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),wn(()=>{f()});var u=Tb(),$=h(u);ct($,w=>O(a,w),()=>r(a)),_e(2),g(u),b(t,u),K()}var kb=(t,e,i)=>{e(!1),i()},Eb=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),Ab={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 af(t,e){q(e,!0),Q(t,Ab);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=we(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),$()};Ft(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=qe(),I=ue(S);{var A=P=>{var E=Eb(),T=M(ue(E),2),V=h(T),U=h(V),Y=h(U,!0);g(U);var F=M(U,2);sa(F,{onClick:y}),g(V);var j=M(V,2);j.__click=[kb,p,_];var X=h(j),oe=h(X),pe=h(oe);let le;var Ve=M(pe,2);{var Me=B=>{let Re=m(()=>a()&&n());ld(B,{get isRunning(){return r(Re)},onTimerEnded:w})};R(Ve,B=>{n()&&B(Me)})}g(oe),g(X);var J=M(X,2),Le=h(J),Z=h(Le,!0);g(Le),g(J),g(j),g(T),k((B,Re)=>{ve(Y,B),tt(oe,`background-image: url('${e.thumb}')`),le=te(pe,1,"thumb-overlay svelte-jfbaax",null,le,Re),ve(Z,e.title)},[()=>H("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,E)};R(I,P=>{e.isHide||P(A)})}b(t,S),K(),o()}at(["click"]);var Ts=require("@vkontakte/videoplayer-core/es2018"),Wh=require("@vkontakte/videoplayer-shared/es2018"),nn=require("@vkontakte/videoplayer-statistics/es2018");var lf=(t,e)=>Math.min(+(t+e).toFixed(2),1),df=(t,e)=>Math.max(+(t-e).toFixed(2),0),Zc=(t,e,i)=>{let o=lf(e,i);e<1&&t.actions.internal.setVolume(o)},Xc=(t,e,i)=>{let o=df(e,i);e>0&&t.actions.internal.setVolume(o)};var Cs=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var Mb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Lb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function cf(t,e){var Yt,Be;q(e,!0),Q(t,Lb);let[i,o]=Fe(),n=()=>C(Y,"$playbackState$",i),a=()=>C(F,"$adPlaybackState",i),s=()=>C(pe,"$disabledControls$",i),d=()=>C(j,"$positionExact$",i),l=()=>C(X,"$duration$",i),p=()=>C(D,"$isAudioAvailable$",i),f=()=>C(oe,"$volume$",i),_=()=>C(J,"$availablePlaybackRates$",i),u=()=>C(Me,"$currentPlaybackRate$",i),$=()=>C(Ee,"$isInteractiveTime$",i),w=()=>C(Ye,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(ne,"$isEnded$",i),S=()=>C(le,"$muted$",i),I=()=>C(Ve,"$currentSubtitle$",i),A=()=>C(ke,"$overlayContainer$",i),P=v(e,"nextButtonActive",3,!1),E=v(e,"prevButtonActive",3,!1),T=we(),V=Wt(),U=T.getLogger().createComponentLog("KeyboardControls component"),Y=T.state.playbackState$,F=T.ads.playbackState,j=T.state.positionExact$,X=T.state.duration$,oe=T.state.volume$,pe=T.ui.controls.disabledControls$,le=T.state.muted$,Ve=T.state.currentSubtitle$,Me=T.state.currentPlaybackRate$,J=T.state.availablePlaybackRates$,Le=T.ui.contextMenu.openedByHotKey$,Z=T.ui.contextMenu.lastActiveElem$,B=T.ui.contextMenu.visible$,Re=T.ui.contextMenu.position$,ne=T.state.isEnded$,ke=T.ui.overlayContainer$,Ne=(Yt=T.callbacks)==null?void 0:Yt.onAudioDoesNotExistHint,fe=(Be=T.callbacks)==null?void 0:Be.onAudioDisabledHint,D=T.state.isAudioAvailable$,de=T.state.isAudioDisabled,Ee=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ye}=so(),dt=0,Ae=!0,$e=ee(void 0),Pe=()=>{var re;return(re=r($e))==null?void 0:re.focus()},rt=re=>(re!==Ae&&(Ae=re,dt=0),dt+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*dt)/1e3),vt=re=>{var Pt,ri;let W=re.target,se=(Pt=W==null?void 0:W.getAttribute("role"))==null?void 0:Pt.includes("menuitem"),he=W.classList.contains("btn"),Se=re.code;if(he&&Se==="Space")return;let De=Zg.has(Se);if(se&&De)return;let ut=!jg.has(Se);if(re.ctrlKey&&ut||re.altKey&&ut||re.metaKey)return;let Qt=se&&Se==="Escape";Xg.has(Se)||Qt||e.hideContextMenu();let Ze=n()===Ts.PlaybackState.PLAYING||n()===Ts.PlaybackState.PAUSED,pt=e.isAds&&(a()==="paused"||a()==="playing"),Je=!pt&&!s().has("TIMELINE");if(Ze||pt)switch(U({message:`key down, code: ${Se}`}),Se){case"KeyJ":case"ArrowLeft":{if(!Je)break;if(re.ctrlKey||re.altKey){let Ge=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(Ge),Ge&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ge.text}),re.preventDefault()}else{let Ge=re.shiftKey?rt(!1):V.controls.seekStepKeyboard/1e3,ot=Math.max(d()-Ge,0);d()>0&&(T.actions.internal.seekTime(ot,nn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ge.toString()}),re.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Je)break;if(re.ctrlKey||re.altKey){let Ge=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(Ge),Ge&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ge.text}),re.preventDefault()}else{let Ge=re.shiftKey?rt(!0):V.controls.seekStepKeyboard/1e3,ot=Math.min(d()+Ge,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(ot,nn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ge.toString()}),re.preventDefault())}break}case"ArrowUp":{if(Cs({isAudioDisabled:de,audioDisabledHintCallback:fe,isAudioAvailable:p(),audioIsNotExistHintCallback:Ne})){let Ge=f(),ot=V.controls.volumeStepKeyboard,Jt=Ge<=1;if(Zc(T,Ge,ot),Jt){let Ai=Math.round(lf(Ge,ot)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ai}})}}re.preventDefault();break}case"ArrowDown":{if(Cs({isAudioDisabled:de,audioDisabledHintCallback:fe,isAudioAvailable:p(),audioIsNotExistHintCallback:Ne})){let Ge=f(),ot=V.controls.volumeStepKeyboard,Jt=Ge>=0;if(Xc(T,Ge,ot),Jt){let Ai=Math.round(df(Ge,ot)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ai}})}}re.preventDefault();break}case"Comma":{if(re.shiftKey){T.actions.internal.decrementPlaybackRate();let Ge=_().find(ot=>ot.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ge==null?void 0:Ge.displayValue}),re.preventDefault()}else{if(pt||n()!==Ts.PlaybackState.PAUSED)break;let Ge=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ge,nn.SeekAction.DOUBLE_TAP),re.preventDefault())}break}case"Period":{if(re.shiftKey){T.actions.internal.incrementPlaybackRate();let Ge=_().find(ot=>ot.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:Ge==null?void 0:Ge.displayValue}),re.preventDefault()}else{if(pt||n()!==Ts.PlaybackState.PAUSED)break;let Ge=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ge,nn.SeekAction.DOUBLE_TAP),re.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&Ye.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let Ge="PLAY";n()===Ts.PlaybackState.PAUSED?Ge="PAUSE":y()&&(Ge="REPLAY"),e.showHotKeyHelpers({type:Ge})}re.preventDefault();break;case"KeyM":{Cs({isAudioDisabled:de,audioDisabledHintCallback:fe,isAudioAvailable:p(),audioIsNotExistHintCallback:Ne})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),T.actions.internal.toggleMuted()),re.preventDefault();break}case"KeyF":e.toggleFullscreen(),re.preventDefault();break;case"KeyC":T.actions.internal.toggleSubtitle(),I().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ri=I())==null?void 0:ri.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),re.preventDefault();break;case"KeyI":T.actions.internal.togglePictureInPicture(),re.preventDefault();break;case"Digit1":case"Numpad1":if(re.shiftKey){let Ge=Uh(A());Re.set(Ge),Z.set(W),Le.set(!0),B.set(!0),re.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,nn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,nn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,nn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,nn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,nn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,nn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,nn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,nn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,nn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,nn.SeekAction.DOUBLE_TAP),re.preventDefault();break;case"Slash":{re.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),re.preventDefault());break}case"KeyN":re.shiftKey&&P()&&T.actions.internal.nextVideoClick();break;case"KeyP":re.shiftKey&&E()&&T.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":re.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,Wh.checkNever)(Se);break}},lt=re=>{let W=re.code;if(re.ctrlKey||re.altKey||re.metaKey)return;let se=n()===Ts.PlaybackState.PLAYING||n()===Ts.PlaybackState.PAUSED,he=e.isAds&&(a()==="paused"||a()==="playing");if(se||he)switch(W){case"ShiftLeft":case"ShiftRight":dt=0;break}},Et=H("aria_label_video_player");var st=Mb();st.__keyup=lt,st.__keydown=vt,Oe(st,"aria-label",Et);var gt=h(st);ge(gt,()=>{var re;return(re=e.children)!=null?re:ie}),g(st),ct(st,re=>O($e,re),()=>r($e)),b(t,st);var qt=K({focus:Pe});return o(),qt}at(["keyup","keydown"]);var Vb=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>'),Rb={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
144
|
|
|
145
145
|
@keyframes svelte-1dbnjb1-dot_animation {
|
|
146
146
|
0% {
|
|
@@ -153,7 +153,7 @@ Try switching the\xA0quality to\xA0Auto.`},Sh=b_;var ns=new Map;ns.set(qa.Interf
|
|
|
153
153
|
opacity: 0.2;
|
|
154
154
|
}
|
|
155
155
|
}.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
|
|
156
|
-
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function
|
|
156
|
+
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function aa(t,e){Q(t,Rb);let i=v(e,"style",3,"");var o=Vb();k(()=>tt(o,i())),b(t,o)}var Nb=be('<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 uf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Nb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(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})),b(t,o)}var la=require("@vkontakte/videoplayer-shared/es2018"),Bb=t=>{t.stopPropagation()},Db=L("<button><!></button>"),Ob={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;}
|
|
157
157
|
|
|
158
158
|
/* \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;}
|
|
159
159
|
|
|
@@ -161,22 +161,22 @@ Try switching the\xA0quality to\xA0Auto.`},Sh=b_;var ns=new Map;ns.set(qa.Interf
|
|
|
161
161
|
/* mobile */
|
|
162
162
|
/* 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,
|
|
163
163
|
.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;
|
|
164
|
-
/* \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
|
|
164
|
+
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Lt(t,e){q(e,!0),Q(t,Ob);let i=v(e,"className",3,""),o=v(e,"style",3,""),n=v(e,"disabled",3,void 0),a=v(e,"testId",3,void 0),s=v(e,"ariaHidden",3,void 0),d=v(e,"ariaLabel",3,void 0),l=v(e,"ref",15,void 0),p=v(e,"ariaKeyShortCut",3,void 0),f=v(e,"ariaExpanded",3,void 0),_=v(e,"tabIndex",3,0),u=v(e,"click",3,la.noop),$=v(e,"focus",3,la.noop),w=v(e,"blur",3,la.noop),y=m(()=>u()===la.noop?null:E=>{E.stopPropagation(),u()(E)}),S=m(()=>$()===la.noop?null:E=>{E.preventDefault(),$()()}),I=m(()=>w()===la.noop?null:E=>{E.preventDefault(),w()()});var A=Db();A.__pointerdown=[Bb],A.__click=function(...E){var T;(T=r(y))==null||T.apply(this,E)};var P=h(A);ge(P,()=>{var E;return(E=e.children)!=null?E:ie}),g(A),ct(A,E=>l(E),()=>l()),k(()=>{var E,T,V,U,Y,F,j;te(A,1,`btn ${(E=i())!=null?E:""}`,"svelte-wr0kwr"),tt(A,o()||null),A.disabled=(T=n())!=null?T:null,Oe(A,"aria-hidden",(V=s())!=null?V:null),Oe(A,"aria-label",(U=d())!=null?U:null),Oe(A,"aria-keyshortcuts",(Y=p())!=null?Y:null),Oe(A,"aria-expanded",(F=f())!=null?F:null),Oe(A,"data-testid",(j=a())!=null?j:null),Oe(A,"tabindex",_())}),At("focus",A,function(...E){var T;(T=r(S))==null||T.apply(this,E)}),At("blur",A,function(...E){var T;(T=r(I))==null||T.apply(this,E)}),b(t,A),K()}at(["pointerdown","click"]);var Hb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Fb=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>'),Ub={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 pf(t,e){q(e,!0),Q(t,Ub);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=H("hotkey_map_modal_close_btn_text");var a=Fb(),s=h(a),d=h(s);{var l=u=>{var $=Hb(),w=h($),y=h(w,!0);g(w);var S=M(w,2);{var I=A=>{Lt(A,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,E)=>{uf(P,{})},$$slots:{default:!0}})};R(S,A=>{o()&&A(I)})}g($),k(()=>ve(y,e.title)),b(u,$)};R(d,u=>{i()&&u(l)})}var p=M(d,2),f=h(p),_=h(f);ge(_,()=>{var u;return(u=e.children)!=null?u:ie}),g(f),g(p),g(s),g(a),b(t,a),K()}var zb=new Set(["BR"]),Qh=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;zb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var qb=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>'),Kb=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>'),Wb=L('<div class="hot-key-map svelte-quklnq"></div>'),Qb={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,
|
|
165
165
|
.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,
|
|
166
|
-
.hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function af(t,e){q(e,!1),Q(t,Kb);let[i,o]=Ue(),n=()=>C(s,"$data",i),a=Te(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Ir(),sf(t,{get title(){return n().title},onClose:l,children:(p,f)=>{var _=qb();$i(_,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>r($).title,y=()=>r($).items;var S=zb(),I=h(S),A=h(I,!0);g(I);var P=M(I,2);$i(P,5,y,({description:E,value:T})=>T,(E,T)=>{let V=()=>r(T).description,z=()=>r(T).value;var Y=Ub(),U=h(Y),Z=h(U);Hl(Z,()=>qh(V()),!1,!1),g(U);var X=M(U,2),oe=h(X,!0);g(X),g(Y),k(()=>pe(oe,z())),b(E,Y)}),g(P),g(S),k(()=>pe(A,w())),b(u,S)}),g(_),b(p,_)},$$slots:{default:!0}}),K(),o()}var im=require("@vkontakte/videoplayer-shared/es2018");var ma=require("@vkontakte/videoplayer-core/es2018");var WM=require("@vkontakte/videoplayer-shared/es2018");var Wb=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Qb={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 lf(t,e){Q(t,Qb);var i=Wb(),o=h(i);fe(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),b(t,i)}var el=require("@vkontakte/videoplayer-shared/es2018");var Gb=be('<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 df(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Gb();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Yb=be('<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 cf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Yb();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var jb=be('<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 uf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=jb();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Zb=be('<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 sd(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Zb();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Xb=be('<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 ad(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Xb();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),b(t,o)}var Gc=t=>{switch(t){case el.VideoQuality.Q_720P:return uf;case el.VideoQuality.Q_1080P:return sd;case el.VideoQuality.Q_1440P:return ad;case el.VideoQuality.Q_2160P:return df;case el.VideoQuality.Q_4320P:return cf}};var Jb=be('<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 pf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Jb();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),b(t,o)}var e$=be('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function ff(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=e$();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),b(t,o)}var t$=L('<div aria-hidden="true"><!> <!></div>'),i$={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 ld(t,e){q(e,!0),Q(t,i$);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=m(()=>Gc(o())),a=m(()=>!!r(n)&&[sd,ad].includes(r(n)));var s=qe(),d=me(s);{var l=f=>{pf(f,{})},p=f=>{var _=t$();let u;var $=h(_);{var w=I=>{lf(I,{children:(A,P)=>{var E=qe(),T=me(E);Vi(T,()=>r(n),(V,z)=>{z(V,{})}),b(A,E)},$$slots:{default:!0}})};R($,I=>{r(n)&&I(w)})}var y=M($,2);let S=m(()=>r(n)?"settings-icon--labeled":"settings-icon");ff(y,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),g(_),k(I=>u=te(_,1,"icon svelte-8t5w85",null,u,I),[()=>({triple:r(a)})]),b(f,_)};R(d,f=>{i()?f(l):f(p,!1)})}b(t,s),K()}var o$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),n$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function tl(t,e){q(e,!0),Q(t,n$);let[i,o]=Ue(),n=()=>C(e.ref$,"$ref$",i),a=()=>C(f,"$settingsMenuVisible",i),s=()=>C($,"$isMobile",i),d=()=>C(p,"$currentQuality",i),l=Te(),p=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,y=ee(void 0);je(()=>{n()&&$t(()=>{e.ref$.set(r(y))})});let S=m(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));async function I(P){let E=Ss(P);a()?u():_(E,xo)}let A=m(()=>a()?"opened":"");At(t,{get className(){return r(A)},testId:"btn-settings",click:I,get ariaLabel(){return r(S)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){O(y,ge(P))},children:(P,E)=>{var T=o$(),V=h(T);ld(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(T),b(P,T)},$$slots:{default:!0}}),K(),o()}var r$=be('<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 mf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=r$();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),b(t,o)}var s$=be('<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 dd(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=s$();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),b(t,o)}function vf(t,e){q(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Te().ui.t,a=m(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));At(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Ur.KeyC},children:(s,d)=>{var l=qe(),p=me(l);{var f=u=>{mf(u,{})},_=u=>{dd(u,{})};R(p,u=>{i()?u(f):u(_,!1)})}b(s,l)},$$slots:{default:!0}}),K()}var a$=L('<span class="duration svelte-sz9er7"> </span>'),l$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),d$={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function cd(t,e){q(e,!0),Q(t,d$);let i=v(e,"isMobile",3,!1),o=v(e,"showDuration",3,!0),n=v(e,"ref",15),a=m(()=>dr(e.duration)),s=m(()=>dr(e.position));var d=l$();let l;var p=h(d),f=h(p,!0);g(p);var _=M(p,2);{var u=$=>{var w=a$(),y=h(w,!0);g(w),k(()=>pe(y,r(a))),b($,w)};R(_,$=>{o()&&$(u)})}g(d),ct(d,$=>n($),()=>n()),k($=>{l=te(d,1,"time svelte-sz9er7",null,l,$),pe(f,r(s))},[()=>({mobile:i()})]),b(t,d),K()}var pd=require("@vkontakte/videoplayer-shared/es2018");var c$=be('<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>'),u$={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),
|
|
166
|
+
.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 ff(t,e){q(e,!1),Q(t,Qb);let[i,o]=Fe(),n=()=>C(s,"$data",i),a=we(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Tr(),pf(t,{get title(){return n().title},onClose:l,children:(p,f)=>{var _=Wb();bi(_,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>r($).title,y=()=>r($).items;var S=Kb(),I=h(S),A=h(I,!0);g(I);var P=M(I,2);bi(P,5,y,({description:E,value:T})=>T,(E,T)=>{let V=()=>r(T).description,U=()=>r(T).value;var Y=qb(),F=h(Y),j=h(F);zl(j,()=>Qh(V()),!1,!1),g(F);var X=M(F,2),oe=h(X,!0);g(X),g(Y),k(()=>ve(oe,U())),b(E,Y)}),g(P),g(S),k(()=>ve(A,w())),b(u,S)}),g(_),b(p,_)},$$slots:{default:!0}}),K(),o()}var am=require("@vkontakte/videoplayer-shared/es2018");var va=require("@vkontakte/videoplayer-core/es2018");var ZM=require("@vkontakte/videoplayer-shared/es2018");var Gb=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Yb={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function mf(t,e){Q(t,Yb);var i=Gb(),o=h(i);ge(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),b(t,i)}var il=require("@vkontakte/videoplayer-shared/es2018");var jb=be('<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 vf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=jb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Zb=be('<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 gf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Zb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Xb=be('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function hf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Xb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Jb=be('<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 dd(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Jb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),b(t,o)}var e$=be('<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 cd(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=e$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),b(t,o)}var Jc=t=>{switch(t){case il.VideoQuality.Q_720P:return hf;case il.VideoQuality.Q_1080P:return dd;case il.VideoQuality.Q_1440P:return cd;case il.VideoQuality.Q_2160P:return vf;case il.VideoQuality.Q_4320P:return gf}};var t$=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=t$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),b(t,o)}var i$=be('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function bf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=i$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),b(t,o)}var o$=L('<div aria-hidden="true"><!> <!></div>'),n$={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 ud(t,e){q(e,!0),Q(t,n$);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=m(()=>Jc(o())),a=m(()=>!!r(n)&&[dd,cd].includes(r(n)));var s=qe(),d=ue(s);{var l=f=>{_f(f,{})},p=f=>{var _=o$();let u;var $=h(_);{var w=I=>{mf(I,{children:(A,P)=>{var E=qe(),T=ue(E);$i(T,()=>r(n),(V,U)=>{U(V,{})}),b(A,E)},$$slots:{default:!0}})};R($,I=>{r(n)&&I(w)})}var y=M($,2);let S=m(()=>r(n)?"settings-icon--labeled":"settings-icon");bf(y,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),g(_),k(I=>u=te(_,1,"icon svelte-8t5w85",null,u,I),[()=>({triple:r(a)})]),b(f,_)};R(d,f=>{i()?f(l):f(p,!1)})}b(t,s),K()}var r$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),s$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ol(t,e){q(e,!0),Q(t,s$);let[i,o]=Fe(),n=()=>C(e.ref$,"$ref$",i),a=()=>C(f,"$settingsMenuVisible",i),s=()=>C($,"$isMobile",i),d=()=>C(p,"$currentQuality",i),l=we(),p=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,y=ee(void 0);Ke(()=>{n()&&yt(()=>{e.ref$.set(r(y))})});let S=m(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));async function I(P){let E=Ss(P);a()?u():_(E,mo)}let A=m(()=>a()?"opened":"");Lt(t,{get className(){return r(A)},testId:"btn-settings",click:I,get ariaLabel(){return r(S)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){O(y,me(P))},children:(P,E)=>{var T=r$(),V=h(T);ud(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(T),b(P,T)},$$slots:{default:!0}}),K(),o()}var a$=be('<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 $f(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=a$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),b(t,o)}var l$=be('<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 pd(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=l$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),b(t,o)}function yf(t,e){q(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=we().ui.t,a=m(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Lt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Fr.KeyC},children:(s,d)=>{var l=qe(),p=ue(l);{var f=u=>{$f(u,{})},_=u=>{pd(u,{})};R(p,u=>{i()?u(f):u(_,!1)})}b(s,l)},$$slots:{default:!0}}),K()}var d$=L('<span class="duration svelte-sz9er7"> </span>'),c$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),u$={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 fd(t,e){q(e,!0),Q(t,u$);let i=v(e,"isMobile",3,!1),o=v(e,"showDuration",3,!0),n=v(e,"ref",15),a=m(()=>rr(e.duration)),s=m(()=>rr(e.position));var d=c$();let l;var p=h(d),f=h(p,!0);g(p);var _=M(p,2);{var u=$=>{var w=d$(),y=h(w,!0);g(w),k(()=>ve(y,r(a))),b($,w)};R(_,$=>{o()&&$(u)})}g(d),ct(d,$=>n($),()=>n()),k($=>{l=te(d,1,"time svelte-sz9er7",null,l,$),ve(f,r(s))},[()=>({mobile:i()})]),b(t,d),K()}var vd=require("@vkontakte/videoplayer-shared/es2018");var p$=be('<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>'),f$={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
167
|
.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),
|
|
168
|
-
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Is(t,e){Q(t,
|
|
168
|
+
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Is(t,e){Q(t,f$);let i=v(e,"volume",3,1),o=v(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=m(()=>n(i(),o()));var s=p$();k(()=>{var d;Oe(s,"data-value",r(a)),Oe(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),b(t,s)}var rn=require("@vkontakte/videoplayer-shared/es2018");var eu=require("@vkontakte/videoplayer-shared/es2018");var Gh=require("@vkontakte/videoplayer-shared/es2018");var m$=L('<div class="overlay"><!></div>');function xf(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(s,"$overlayContainer$",i),s=we().ui.overlayContainer$,d=ee(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))};Ke(()=>{p(n())}),Ft(()=>(p(n()),()=>l(n())));var f=m$(),_=h(f);ge(_,()=>{var u;return(u=e.children)!=null?u:ie}),g(f),ct(f,u=>O(d,u),()=>r(d)),b(t,f),K(),o()}var v$=L('<div><div class="content svelte-1jbbzcj"> </div> <div class="tooltip-pointer svelte-1jbbzcj"></div></div>'),g$=L("<div><!></div> <!>",1),h$={hash:"svelte-1jbbzcj",code:'.tooltip-wrapper.svelte-1jbbzcj {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-1jbbzcj {width:100%;}.tooltip.svelte-1jbbzcj {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-1jbbzcj {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip.active.svelte-1jbbzcj {opacity:1;visibility:visible;}.tooltip-pointer.svelte-1jbbzcj {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 da(t,e){q(e,!0),Q(t,h$);let[i,o]=Fe(),n=()=>C(j,"$overlayContainer$",i),a=()=>C(F,"$containerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"content",3,""),l=v(e,"active",15,!1),p=v(e,"translateX",3,0),f=v(e,"translateY",3,0),_=v(e,"isFullWidthWrapper",3,!1),u=v(e,"maxTooltipWidth",3,void 0),$=v(e,"placement",3,"top"),w=v(e,"onVisibilityChange",3,Gh.noop),y=5,S=ee(void 0),I=ee(void 0),A,P=ee(0),E=ee(0),T=ee(0),V=ee(0),U=Wt(),Y=we(),F=Y.ui.playerSize,j=Y.ui.overlayContainer$;Ke(()=>{yt(()=>{w()(l())})});let X=Y.getLogger().createComponentLog("Tooltip component"),oe=()=>{if(!n()||!r(I)||!r(S))return;O(E,y);let Ae=n().getBoundingClientRect(),$e=r(S).getBoundingClientRect(),Pe=$e.width,rt=r(I).clientWidth,vt=a().width,lt=(Pe-rt)/2,Et=$e.left+p()-Ae.left,st=Et+lt,gt=$e.top+f()-Ae.top,qt=rt/2-y,Yt=st<8,Be=st+rt>vt-8;Yt&&(st=8,qt=Et+$e.width/2-2.5*y),Be&&(st=vt-8-rt,qt=$e.left-Ae.left+$e.width/2-st-y),O(T,me(st)),O(V,gt),O(P,me(qt))},pe=()=>{!n()||!r(I)||!r(S)||O(E,-y)},le=()=>{if(!n()||!r(I)||!r(S))return;O(P,y);let Ae=n().getBoundingClientRect(),$e=r(S).getBoundingClientRect(),Pe=$e.height,rt=r(I).clientHeight,vt=(Pe-rt)/2+rt,lt=$e.left+p()-Ae.left-r(I).clientWidth,Et=2,st=lt-y;st<8&&(st=8);let qt=$e.top+f()-Ae.top+vt,Yt=Et-vt/2,Be=Et-y;O(T,me(st)),O(V,qt),O(E,Yt),O(P,Be)},Ve=()=>{!n()||!r(I)||!r(S)||O(P,-y)},Me=()=>{switch($()){case"top":oe();break;case"bottom":pe();break;case"left":le();break;default:Ve()}},J=()=>{try{if(!n()||!r(S))return;Me(),l(!0)}catch(Ae){X({message:String(Ae)})}},Le=()=>{l(!1)},Z=()=>{r(I)&&(A||(A=window.setTimeout(J,U.controls.hideTimeoutTooltips)),l()&&J())},B=()=>{Le(),window.clearTimeout(A),A=void 0},Re=(Ae,$e)=>{let Pe="";switch($()){case"top":Pe=`transform: translate(${Ae}px, ${$e}px);`;break;case"bottom":Pe=`transform: translate(${Ae}px, ${$e}px); top: auto; bottom: 100%;`;break;case"left":Pe=`transform: translate(${Ae}px, ${$e}px); left: 0; right: auto;`;break;default:Pe=`transform: translate(${Ae}px, ${$e}px);`}return Pe+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Pe},ne=(Ae,$e)=>{let Pe="";switch($()){case"top":Pe=`transform: translate(${Ae}px, ${$e}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Pe=`transform: translate(${Ae}px, ${$e}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Pe=`transform: translate(${Ae}px, ${$e}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Pe=`transform: translate(${Ae}px, ${$e}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Pe},ke=m(()=>Re(r(T),r(V))),Ne=m(()=>ne(r(P),r(E)));Ft(Me),wn(()=>window.clearTimeout(A));var fe=g$(),D=ue(fe);let de;D.__mousemove=Z,D.__mousedown=B,D.__mouseup=Z;var Ee=h(D);ge(Ee,()=>{var Ae;return(Ae=e.children)!=null?Ae:ie}),g(D),ct(D,Ae=>O(S,Ae),()=>r(S));var Ye=M(D,2);{var dt=Ae=>{xf(Ae,{children:($e,Pe)=>{var rt=v$();let vt;var lt=h(rt),Et=h(lt,!0);g(lt);var st=M(lt,2);g(rt),ct(rt,gt=>O(I,gt),()=>r(I)),k(gt=>{vt=te(rt,1,"tooltip svelte-1jbbzcj",null,vt,gt),tt(rt,r(ke)),ve(Et,d()),tt(st,r(Ne))},[()=>({active:l()})]),b($e,rt)},$$slots:{default:!0}})};R(Ye,Ae=>{d()&&!s()&&Ae(dt)})}k(Ae=>de=te(D,1,"tooltip-wrapper svelte-1jbbzcj",null,de,Ae),[()=>({"full-width":_()})]),At("mouseenter",D,Z),At("mouseleave",D,B),b(t,fe),K(),o()}at(["mousemove","mousedown","mouseup"]);var Yh=t=>{t.stopPropagation()},_$=L("<div><!></div>"),b$={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 Io(t,e){q(e,!0),Q(t,b$);let[i,o]=Fe(),n=()=>C(p,"$isGraphOpened$",i),a=()=>C(l,"$isMobile",i),s=we(),d=so(),l=s.ui.isMobile,p=d.graphIsOpened$,f=s.ui.t,_=v(e,"className",3,""),u=v(e,"disabled",3,!1),$=v(e,"hasTooltip",3,!0),w=v(e,"ref",15,void 0),y=v(e,"width",15,void 0),S=v(e,"isFullWidthTooltip",3,!0),I=v(e,"tooltipContent",3,""),A=v(e,"tooltipActive",3,!1),P=v(e,"tooltipPlacement",3,"top"),E=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),T=v(e,"isAriaHidden",3,!1),V=v(e,"onTooltipVisibilityChange",3,eu.noop),U=v(e,"initialTranslateXPx",3,0),Y=v(e,"initialTranslateYPx",19,()=>-18),F=v(e,"mouseEnter",3,eu.noop),j=v(e,"mouseLeave",3,eu.noop),X=m(()=>u()?n()?f("tooltip_disabled_when_graph_on"):E():I());var oe=_$();oe.__pointerdown=[Yh],oe.__click=[Yh];var pe=h(oe);{var le=Me=>{da(Me,{get content(){return r(X)},get translateX(){return U()},get translateY(){return Y()},get isFullWidthWrapper(){return S()},get active(){return A()},get placement(){return P()},get onVisibilityChange(){return V()},children:(J,Le)=>{var Z=qe(),B=ue(Z);ge(B,()=>{var Re;return(Re=e.children)!=null?Re:ie}),b(J,Z)},$$slots:{default:!0}})},Ve=Me=>{var J=qe(),Le=ue(J);ge(Le,()=>{var Z;return(Z=e.children)!=null?Z:ie}),b(Me,J)};R(pe,Me=>{$()&&r(X)&&!a()?Me(le):Me(Ve,!1)})}g(oe),ct(oe,Me=>w(Me),()=>w()),k(()=>{var Me;te(oe,1,`btn-container ${(Me=_())!=null?Me:""}`,"svelte-p9r045"),Oe(oe,"aria-hidden",T()||null)}),At("mouseenter",oe,function(...Me){var J;(J=F())==null||J.apply(this,Me)}),At("mouseleave",oe,function(...Me){var J;(J=j())==null||J.apply(this,Me)}),Hr(oe,"clientWidth",y),b(t,oe),K(),o()}at(["pointerdown","click"]);var $$=be('<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 md(t,e){"use strict";var i=$$(),o=h(i),n=M(o);g(i),k(()=>{Oe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Oe(o,"fill-opacity",e.completed?1:.24),Oe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var y$=L("<div><!></div>"),x$={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 wf(t,e){q(e,!0),Q(t,x$);let o=we().ui.t,n=ee(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Io(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=y$();let p;var f=h(l);let _=m(()=>!!e.videoEpisode.completed);md(f,{get completed(){return r(_)}}),g(l),k(u=>{p=te(l,1,"interactive-episode-icon svelte-bklhpe",null,p,u),tt(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Hr(l,"clientWidth",u=>O(n,u)),b(s,l)},$$slots:{default:!0}}),K()}var w$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),S$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),C$={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,
|
|
169
169
|
.video-episode-loaded.svelte-1u6kv8l,
|
|
170
|
-
.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
|
|
170
|
+
.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 Sf(t,e){Q(t,C$);let i=v(e,"videoEpisodes",19,()=>[]);var o=S$();bi(o,21,i,n=>n.from,(n,a)=>{var s=w$();let d;var l=h(s),p=h(l),f=M(p,2);let _;g(l),g(s),k((u,$)=>{d=te(s,1,"video-episode svelte-1u6kv8l",null,d,u),tt(s,`left: ${r(a).from}%; width: ${r(a).width}%`),tt(p,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),_=te(f,1,"video-episode-filled svelte-1u6kv8l",null,_,$),tt(f,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,s)}),g(o),b(t,o)}function T$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&O(i,me(e().getBoundingClientRect())),o()||r(n)||!e())return;O(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function I$(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 k$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function E$(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var A$=L("<div></div>"),P$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),M$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),L$={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 {
|
|
171
171
|
/* 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,
|
|
172
172
|
.slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
|
|
173
173
|
.slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
|
|
174
174
|
.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),
|
|
175
|
-
.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
|
|
176
|
-
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function
|
|
175
|
+
.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){q(e,!0),Q(t,L$);let i=v(e,"ref",15,void 0),o=v(e,"className",3,""),n=v(e,"testId",3,void 0),a=v(e,"isHidden",3,!1),s=v(e,"isVertical",3,!1),d=v(e,"isActiveLive",3,!1),l=v(e,"isMobile",3,!1),p=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),_=v(e,"withWheelHandler",3,!1),u=v(e,"isInteractive",3,!1),$=v(e,"disabled",3,!1),w=v(e,"hideHandel",3,!1),y=v(e,"onPointerDown",3,rn.noop),S=v(e,"onHandleMove",3,rn.noop),I=v(e,"onPointerUp",3,rn.noop),A=v(e,"onPointerEnter",3,rn.noop),P=v(e,"onPointerMove",3,rn.noop),E=v(e,"onPointerLeave",3,rn.noop),T=v(e,"onWheelUp",3,rn.noop),V=v(e,"onWheelDown",3,rn.noop),U=v(e,"onWheelLeft",3,rn.noop),Y=v(e,"onWheelRight",3,rn.noop),F=v(e,"onDisabledClick",3,rn.noop),j=v(e,"loadedProgress",3,0),X=v(e,"filledProgress",3,0),oe=v(e,"handleProgress",3,0),pe=v(e,"ariaLabel",3,""),le=v(e,"ariaValueMin",3,void 0),Ve=v(e,"ariaValueMax",3,void 0),Me=v(e,"ariaValueNow",3,void 0),J=v(e,"ariaValueText",3,""),Le=Wt(),Z=ee(void 0),B=ee(!1),Re=m(()=>{var Be;return(Be=Ve())!=null?Be:0}),ne=m(()=>{var Be;return(0,rn.isNonNullable)(f())&&((Be=f()[f().length-1])==null?void 0:Be.time)<r(Re)}),ke=m(()=>(0,rn.isNonNullable)(f())&&f().length&&r(ne)&&r(Re)?Ye(j()*100,X()*100):[]);function Ne(Be){if(Be.preventDefault(),i()&&O(Z,me(i().getBoundingClientRect())),$())return;let re=de(Be.clientX,Be.clientY),W=Ee(Be.clientX);A()(re,W,r(Z).width)}function fe(Be){Be.preventDefault(),!$()&&E()()}function D(Be){$()||_()&&(Be.preventDefault(),Be.deltaY<0?T()():Be.deltaY>0?V()():Be.deltaX>0?Y()():U()())}function de(Be,re){return s()?Math.max(0,Math.min(1,(r(Z).height-(re-r(Z).top))/r(Z).height)):Math.min(Math.max(Be-r(Z).x,0),r(Z).width)/r(Z).width}function Ee(Be){return Math.min(Math.max(Be-r(Z).x,0),r(Z).width)}function Ye(Be,re){let W=Le.features.episodesClustering&&!u()?Le.episodeMinWidthPc:0,se=[],he=f()[0].time/r(Re)*100,Se=0,De=0;for(let Ze=1;Ze<f().length;Ze++)Se=f()[Ze].time/r(Re)*100,Se-he>W&&(se.push({from:he,width:Math.max(0,Se-he),loadedWidth:Math.max(0,Math.min(Se,Be)-he),filledWidth:Math.max(0,Math.min(Se,re)-he),interactive:f()[Ze-1].interactive,completed:f()[Ze-1].completed}),he=f()[Ze].time/r(Re)*100,De++);let ut={from:he,width:Math.max(0,100-he),loadedWidth:Math.max(0,Math.min(Be,100)-he),filledWidth:Math.max(0,Math.min(re,100)-he),interactive:f()[De].interactive,completed:f()[De].completed};100-he<W?(De-=1,se[De].width+=100-he,se[De].loadedWidth+=Math.max(0,Math.min(Be,100)-he),se[De].filledWidth+=Math.max(0,Math.min(re,100)-he)):se[De]=ut;let Qt=f()[0].time;if(Qt!==0){let Ze=Qt/r(Re)*100;se.unshift({from:0,width:Ze,loadedWidth:Math.min(Ze,Be),filledWidth:Math.min(Ze,re)})}return se}var dt=M$(),Ae=ue(dt);{var $e=Be=>{var re=A$();let W;bi(re,21,()=>r(ke),se=>se.from,(se,he)=>{var Se=qe(),De=ue(Se);{var ut=Qt=>{wf(Qt,{get videoEpisode(){return r(he)},get disabled(){return $()}})};R(De,Qt=>{r(he).interactive&&Qt(ut)})}b(se,Se)}),g(re),k(se=>W=te(re,1,"interactive-icons svelte-1tpemng",null,W,se),[()=>({mobile:l(),hidden:l()&&!r(B)})]),b(Be,re)};R(Ae,Be=>{u()&&Be($e)})}var Pe=M(Ae,2);let rt;Pe.__pointerdown=[T$,i,Z,$,B,de,y],Pe.__pointermove=[I$,$,de,Ee,P,Z,B,S],Pe.__pointerup=[k$,$,B,de,I],Pe.__click=[E$,$,F,de];var vt=h(Pe);{var lt=Be=>{Sf(Be,{get videoEpisodes(){return r(ke)},get disabled(){return $()},get isMobile(){return l()}})},Et=Be=>{var re=P$(),W=h(re),se=M(W,2);let he;g(re),k(Se=>{tt(W,`transform: translateX(${j()*100}%);`),he=te(se,1,"filled svelte-1tpemng",null,he,Se),tt(se,`transform: translateX(${X()*100}%);`)},[()=>({"active-live":d()})]),b(Be,re)};R(vt,Be=>{r(ke).length?Be(lt):Be(Et,!1)})}var st=M(vt,2);let gt;var qt=h(st);let Yt;g(st),g(Pe),ct(Pe,Be=>i(Be),()=>i()),k((Be,re,W)=>{var se,he;rt=te(Pe,1,`slider ${(se=o())!=null?se:""}`,"svelte-1tpemng",rt,Be),Oe(Pe,"aria-label",pe()),Oe(Pe,"aria-valuemin",le()),Oe(Pe,"aria-valuemax",Ve()),Oe(Pe,"aria-valuenow",Me()),Oe(Pe,"aria-valuetext",J()),Oe(Pe,"data-testid",(he=n())!=null?he:null),gt=te(st,1,"handleWrap svelte-1tpemng",null,gt,re),tt(st,`transform: translateX(${oe()*100}%);`),Yt=te(qt,1,"handle svelte-1tpemng",null,Yt,W)},[()=>({disabled:$(),"slider-dragging":r(B),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),At("pointerenter",Pe,Ne),At("pointerleave",Pe,fe),At("wheel",Pe,D),b(t,dt),K()}at(["pointerdown","pointermove","pointerup","click"]);var Oi=(t,e)=>js[t]>=js[e],jh=(t,e)=>js[t]<js[e],ks=(t,e)=>js[t]<=js[e],Zh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var V$=L("<div><!></div>"),R$=L("<div><!> <!></div>"),N$={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 Cf(t,e){var dt,Ae;q(e,!0),Q(t,N$);let[i,o]=Fe(),n=()=>C(A,"$isAudioAvailable$",i),a=()=>C(_,"$muted$",i),s=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),l=we(),p=Wt(),f=l.state.volume$,_=l.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,S=(dt=l.callbacks)==null?void 0:dt.onAudioDoesNotExistHint,I=(Ae=l.callbacks)==null?void 0:Ae.onAudioDisabledHint,A=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,E=l.ui.t,T=ee(!1),V,U=m(()=>!n()||a()||s()===0),Y=m(()=>ks(d(),"s")),F=m(()=>r(Y)?"":r(U)?E("tooltip_volume"):E("tooltip_volume_muted")),j=m(()=>r(U)?E("tooltip_volume"):E("tooltip_volume_muted")),X=m(()=>r(U)?0:s()),oe=!1,pe=m(()=>n()?P&&!I:!S);function le($e){$(),u($e)}function Ve(){Zc(l,s(),p.controls.volumeStepWheel)}function Me(){Xc(l,s(),p.controls.volumeStepWheel)}function J($e){u($e)}function Le($e){u($e),w()}function Z(){oe=!0}function B(){oe=!1,ke()}function Re(){clearTimeout(V),O(T,!0)}function ne(){ke()}function ke(){V=window.setTimeout(()=>{oe||O(T,!1)},p.controls.volumeBarTimeout)}function Ne($e){$e.preventDefault(),$e.deltaY<0?Ve():$e.deltaY>0&&Me()}var fe=R$();let D;var de=h(fe);da(de,{get content(){return r(F)},translateY:-18,children:($e,Pe)=>{let rt=m(()=>r(Y)?"btn-volume-vertical":"btn-volume-horizontal");Lt($e,{className:"btn-full-opacity",get disabled(){return r(pe)},get testId(){return r(rt)},get ariaLabel(){return r(j)},get click(){return e.click},get ariaKeyShortCut(){return Fr.KeyM},children:(vt,lt)=>{Is(vt,{get volume(){return s()},get muted(){return r(U)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ee=M(de,2);{var Ye=$e=>{var Pe=V$();let rt;var vt=h(Pe);let lt=m(()=>r(Y)?"volumeBar-slider-vertical":""),Et=m(()=>r(Y)&&!r(T)),st=m(()=>r(Y)?Z:vd.noop),gt=m(()=>r(Y)?B:vd.noop),qt=m(()=>Math.round(r(X)*100)),Yt=m(()=>`${Math.round(r(X)*100)}%`),Be=m(()=>r(Y)?"volume-slider-vertical":"volume-slider");ca(vt,{get className(){return r(lt)},get isHidden(){return r(Et)},get isVertical(){return r(Y)},withWheelHandler:!0,onWheelUp:Ve,onWheelDown:Me,onPointerDown:le,onHandleMove:J,onPointerUp:Le,get onPointerEnter(){return r(st)},get onPointerLeave(){return r(gt)},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(qt)},get ariaValueText(){return r(Yt)},get filledProgress(){return r(X)},get handleProgress(){return r(X)},get testId(){return r(Be)}}),g(Pe),k(re=>rt=te(Pe,1,"volumeBar svelte-1auih1j",null,rt,re),[()=>({"volumeBar-vertical":r(Y)})]),b($e,Pe)};R(Ee,$e=>{n()&&$e(Ye)})}g(fe),k($e=>D=te(fe,1,"volumeBar-container svelte-1auih1j",null,D,$e),[()=>({vertical:r(Y)})]),At("mouseenter",fe,function(...$e){var Pe;(Pe=r(Y)?Re:vd.noop)==null||Pe.apply(this,$e)}),At("mouseleave",fe,function(...$e){var Pe;(Pe=r(Y)?ne:vd.noop)==null||Pe.apply(this,$e)}),At("wheel",fe,Ne),b(t,fe),K(),o()}var Xh=require("@vkontakte/videoplayer-shared/es2018");var B$=be('<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 Tf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=B$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),b(t,o)}var D$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
176
|
+
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function If(t,e){Q(t,D$);let i=v(e,"isFullscreen",8,!1),o=wr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Tf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function gd(t,e){q(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,Xh.noop),n=we(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=m(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Lt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let f=Ss(p);a.set(f),o()()},get ariaKeyShortCut(){return Fr.KeyF},children:(p,f)=>{If(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),K()}var O$=be('<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 kf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=O$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(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})),b(t,o)}var H$=be('<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 Ef(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=H$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(4),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var F$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
|
|
177
177
|
svg[data-testid="vk-video-logo-icon--short"] ._en,
|
|
178
178
|
svg[data-testid="vk-video-logo-icon"] ._en,
|
|
179
|
-
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Sf(t,e){Q(t,O$);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=m(()=>!o()&&!i()?91:i()?a:95),d=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=m(()=>`0 0 ${r(s)+1} 24`);wf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function md(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C($,"$isMobile",i),a=()=>C(u,"$currentGridType$",i),s=()=>C(y,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),l=v(e,"logoClickable",3,!1),p=v(e,"targetUrl",3,""),f=Kt(),_=Te(),u=_.ui.currentGridType$,$=_.ui.isMobile,w=_.ui.t,y=_.isCyrillicRelatedInterface$,S=m(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),I=m(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),A=m(()=>(n()||ks(a(),"l"))&&r(I)),P=()=>{var V,z;e.click(),(V=_.callbacks)!=null&&V.onLogoClicked?(z=_.callbacks)==null||z.onLogoClicked():p()&&window.open(p(),"_blank")},E=m(()=>!l()),T=m(()=>r(I)?"btn-vk-video-logo":"btn-vk-logo");At(t,{className:"btn-full-opacity",get disabled(){return r(E)},click:P,get testId(){return r(T)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(V){d(V)},children:(V,z)=>{var Y=qe(),U=me(Y);{var Z=oe=>{Sf(oe,{get short(){return r(A)},get isCyrillic(){return s()}})},X=oe=>{xf(oe,{})};R(U,oe=>{r(I)?oe(Z):oe(X,!1)})}b(V,Y)},$$slots:{default:!0}}),K(),o()}var jh=require("@vkontakte/videoplayer-core/es2018");var Cf=require("@vkontakte/videoplayer-core/es2018"),F$=be('<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>'),U$=be('<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>'),z$={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) {
|
|
179
|
+
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Af(t,e){Q(t,F$);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=m(()=>!o()&&!i()?91:i()?a:95),d=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=m(()=>`0 0 ${r(s)+1} 24`);Ef(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function hd(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C($,"$isMobile",i),a=()=>C(u,"$currentGridType$",i),s=()=>C(y,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),l=v(e,"logoClickable",3,!1),p=v(e,"targetUrl",3,""),f=Wt(),_=we(),u=_.ui.currentGridType$,$=_.ui.isMobile,w=_.ui.t,y=_.isCyrillicRelatedInterface$,S=m(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),I=m(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),A=m(()=>(n()||ks(a(),"l"))&&r(I)),P=()=>{var V,U;e.click(),(V=_.callbacks)!=null&&V.onLogoClicked?(U=_.callbacks)==null||U.onLogoClicked():p()&&window.open(p(),"_blank")},E=m(()=>!l()),T=m(()=>r(I)?"btn-vk-video-logo":"btn-vk-logo");Lt(t,{className:"btn-full-opacity",get disabled(){return r(E)},click:P,get testId(){return r(T)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(V){d(V)},children:(V,U)=>{var Y=qe(),F=ue(Y);{var j=oe=>{Af(oe,{get short(){return r(A)},get isCyrillic(){return s()}})},X=oe=>{kf(oe,{})};R(F,oe=>{r(I)?oe(j):oe(X,!1)})}b(V,Y)},$$slots:{default:!0}}),K(),o()}var Jh=require("@vkontakte/videoplayer-core/es2018");var Pf=require("@vkontakte/videoplayer-core/es2018"),z$=be('<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>'),q$=be('<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>'),K$={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
180
|
animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
|
|
181
181
|
animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
|
|
182
182
|
animation-name: svelte-8z1bf5-wave3;}
|
|
@@ -224,9 +224,9 @@ Try switching the\xA0quality to\xA0Auto.`},Sh=b_;var ns=new Map;ns.set(qa.Interf
|
|
|
224
224
|
100% {
|
|
225
225
|
opacity: 1;
|
|
226
226
|
}
|
|
227
|
-
}`};function
|
|
227
|
+
}`};function Mf(t,e){q(e,!0),Q(t,K$);let i=v(e,"isMobile",3,!1),o=m(()=>e.iconState===Pf.ChromecastState.CONNECTED),n=m(()=>e.iconState===Pf.ChromecastState.CONNECTING);var a=qe(),s=ue(a);{var d=p=>{var f=z$(),_=h(f),u=h(_),$=h(u);_e(),g(u);var w=M(u);_e(),g(_);var y=M(_),S=h(y),I=h(S);g(S),_e(),g(y),g(f),k(()=>{Oe($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(I,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(p,f)},l=p=>{var f=q$();let _;var u=h(f),$=M(h(u),5);let w;g(u),g(f),k((y,S)=>{_=te(f,0,"svelte-8z1bf5",null,_,y),w=te($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(p,f)};R(s,p=>{i()?p(d):p(l,!1)})}b(t,a),K()}var e1=require("@vkontakte/videoplayer-shared/es2018");function _d(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,e1.noop),s=we().ui.t,d=m(()=>e.state===Jh.ChromecastState.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Lt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,p)=>{Mf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),K()}var W$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),Q$={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function Lf(t,e){Q(t,Q$);let i=v(e,"active",3,!1),o=v(e,"pointer",3,!1),n=v(e,"translateXPx",3,0),a=v(e,"translateYPx",3,0),s=ee(void 0),d=ee(void 0);function l(w){if(!r(d))return 0;let{width:y}=r(d).getBoundingClientRect(),S=y/2;return w<S?S:w>e.containerWidth-S?e.containerWidth-S:w}let p=m(()=>l(n()));var f=W$(),_=h(f);let u;var $=h(_);ge($,()=>{var w;return(w=e.children)!=null?w:ie}),g(_),ct(_,w=>O(d,w),()=>r(d)),g(f),ct(f,w=>O(s,w),()=>r(s)),k(w=>{tt(f,`transform: translate(${r(p)}px, ${a()}px);`),u=te(_,1,"tooltip svelte-5ygsa2",null,u,w)},[()=>({active:i(),pointer:o()})]),b(t,f)}var tu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var t1=t=>!!(Math.round(Math.abs(t)/90)%2),i1=t=>Math.abs(t)/90%4===1;var G$=L('<div class="preview svelte-1wqg760"></div>'),Y$=L('<div class="time svelte-1wqg760"> </div>'),j$=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),Z$={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 Vf(t,e){q(e,!0),Q(t,Z$);let[i,o]=Fe(),n=()=>C(w,"$rotateAlpha",i),a=()=>C(y,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=v(e,"time",3,""),l=v(e,"isMobile",3,!1),p=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),_=v(e,"duration",3,0),u=v(e,"isInteractive",3,!1),$=we(),w=$.ui.rotateAlpha,y=$.ui.playerSize,S=ee(0),I=ee(0),A=ee(""),P=ee(0),E=ee(0),T=ee(0),V=ee(0),U=m(()=>tu(f(),_(),p())),Y=m(()=>t1(n())),F=m(()=>i1(n())),j=m(pe),X=m(()=>(r(F)?1:-1)*(r(S)/2-r(I)/2)),oe=m(()=>r(X)*-1);Ke(()=>{(D=>(O(S,me(D.width)),O(I,me(D.height))))(Ve())}),Ke(()=>{(D=>(O(A,me(D.imgSrc)),O(P,me(D.imgWidth)),O(E,me(D.imgHeight)),O(T,me(D.imgOffsetX)),O(V,me(D.imgOffsetY))))(Me(f()))});function pe(){var Ye;let D=l()?s.MOBILE:s.DESKTOP,{isVertical:de}=le(),Ee=30;return(Ye=r(U))!=null&&Ye.text&&(Ee+=16),(de||r(Y))&&(Ee+=18,Ee+=50),Math.min(Math.max(a().height-Ee,0),D)}function le(){let D=e.previewThumbsData.frameWidth,de=e.previewThumbsData.frameHeight,Ee=de>D;return{width:D,height:de,isHorizontal:!Ee,isVertical:Ee}}function Ve(){let{height:D,isHorizontal:de,isVertical:Ee,width:Ye}=le();return de&&(D=D/Ye*r(j),Ye=r(j)),Ee&&(Ye=Ye/D*r(j),D=r(j)),{width:Ye,height:D}}function Me(D){let de;e.previewThumbsData.isUV?de=Math.floor(_()*D/e.previewThumbsData.frequency):de=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*D)));let Ee=Math.floor(de/e.previewThumbsData.countPerImage),Ye=Math.floor(de%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),dt=de%e.previewThumbsData.countPerRow,Ae=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Ae=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Ae++);let $e=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&($e=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Pe=r(S)*$e,rt=r(I)*Ae,vt=-dt*r(S),lt=-Ye*r(I);return{imgSrc:e.previewThumbsData.links[Ee],imgWidth:Pe,imgHeight:rt,imgOffsetX:vt,imgOffsetY:lt}}var J=j$();let Le;var Z=h(J);{var B=D=>{var de=G$();k(()=>tt(de,`width: ${r(S)}px; height: ${r(I)}px; background-image: url(${r(A)}); background-size: ${r(P)}px ${r(E)}px; background-position: ${r(T)}px ${r(V)}px;
|
|
228
228
|
transform: rotate(${n()}deg) ${r(Y)?`translate(${r(X)}px, ${r(oe)}px)`:""};
|
|
229
|
-
`)),b(D,de)};R(j,D=>{r(A)&&D(N)})}var Re=M(j,2),ne=h(Re);{var ke=D=>{var de=qe(),Ee=me(de);{var Qe=Ae=>{var $e=sr();k(Pe=>pe($e,Pe),[()=>H("tooltip_episode_unfinished")]),b(Ae,$e)},at=Ae=>{var $e=sr();k(()=>pe($e,r(z).text||"")),b(Ae,$e)};R(Ee,Ae=>{u()&&r(z).completed===!1?Ae(Qe):Ae(at,!1)})}b(D,de)};R(ne,D=>{r(z)&&D(ke)})}g(Re);var Be=M(Re,2);{var ue=D=>{var de=Q$(),Ee=h(de,!0);g(de),k(()=>pe(Ee,d())),b(D,de)};R(Be,D=>{u()||D(ue)})}g(J),k(D=>{Le=te(J,1,"timeline-preview svelte-1wqg760",null,Le,D),ot(J,`width: ${r(Y)?r(I):r(S)}px;`)},[()=>({mobile:l()})]),b(t,J),K(),o()}var j$=L('<span class="time svelte-1jr6obn"> </span>'),Z$=L("<!> <!>",1),X$={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 Ef(t,e){var ve;q(e,!0),Q(t,X$);let[i,o]=Ue(),n=()=>C(Z,"$interactiveEpisodes$",i),a=()=>C(E,"$duration$",i),s=()=>C(P,"$position$",i),d=()=>C(ce,"$isInteractiveExpectation$",i),l=()=>C(oe,"$isInteractiveTime$",i),p=()=>C(T,"$isLive$",i),f=()=>C(z,"$isMobile",i),_=()=>C(V,"$isActiveLive$",i),u=()=>C(A,"$bufferedProgress$",i),$=()=>C(Me,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),y=v(e,"ref",15,void 0),S=Te(),I=Kt(),A=S.state.bufferedProgress$,P=S.state.positionWithScrubbing$,E=S.state.duration$,T=S.state.isLive$,V=S.state.isActiveLive$,z=S.ui.isMobile,Y=I.features.episodes?S.actions.internal.getVideoEpisodes():void 0,U=S.actions.internal.getPreviewThumbsData(),Z=S.state.interactiveEpisodes$,X=S.state.isInteractive,oe=S.state.isInteractiveTime$,ce=S.state.isInteractiveExpectation$,le=S.actions.internal.correctSeekTimeToInteractive,Ve=(ve=S.callbacks)==null?void 0:ve.onDisabledTimelineClick,Me=S.ui.controls.disabledControls$,J=S.ui.t,Le=I.features.interactiveResponsiveUi,j=m(()=>X?n():Y),N=m(()=>dr(a())),Re=m(()=>dr(s())),ne=m(()=>s()/a()),ke=m(()=>d()||l()),Be=ee(!1),ue=ee(""),D=ee(0),de=ee(0),Ee=ee(0),Qe=m(()=>({containerWidth:r(de),translateXPx:r(D),translateYPx:X&&U?-36:-16,active:r(Be)&&w()&&!r(ke)&&!Le,pointer:!I.features.timelinePreview||!U||p()})),at=J("aria_timeline"),Ae=m(()=>J("aria_timeline_value",{position:r(Re),duration:r(N)}));function $e(Se){return!le||!X?Se:le(Se*a())/a()}function Pe(Se){S.actions.internal.startScrubbing($e(Se))}function nt(Se){l()||S.actions.internal.progressScrubbing($e(Se))}function mt(Se){S.actions.internal.completeScrubbing($e(Se)),O(Be,!1)}function et(Se,De,ut){vt(Se,De,ut),O(Be,!0)}function Bt(Se,De,ut){vt(Se,De,ut),O(Be,!0)}function rt(){O(Be,!1)}function vt(Se,De,ut){O(Ee,ge($e(Se))),O(D,ge(De)),ut&&O(de,ge(ut)),O(ue,ge(Ft(Se)))}function Ft(Se){let De=dr((p()?1-Se:Se)*a());return p()?`-${De}`:De}var qt=Z$(),Ne=me(qt);If(Ne,os(()=>r(Qe),{children:(Se,De)=>{var ut=qe(),Ut=me(ut);{var Ge=Xe=>{kf(Xe,{get time(){return r(ue)},get isMobile(){return f()},get videoEpisodes(){return r(j)},previewThumbsData:U,get progress(){return r(Ee)},get duration(){return a()},isInteractive:X})},lt=Xe=>{var It=j$(),Zt=h(It,!0);g(It),k(()=>pe(Zt,r(ue))),b(Xe,It)};R(Ut,Xe=>{I.features.timelinePreview&&U&&!p()?Xe(Ge):Xe(lt,!1)})}b(Se,ut)},$$slots:{default:!0}}));var re=M(Ne,2);let W=m(()=>Math.round(r(ne)*100)),se=m(()=>$().has("TIMELINE"));la(re,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return f()},ariaLabel:at,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(W)},get ariaValueText(){return r(Ae)},get loadedProgress(){return u()},get filledProgress(){return r(ne)},get handleProgress(){return r(ne)},get videoEpisodes(){return r(j)},onPointerDown:Pe,onHandleMove:nt,onPointerMove:Bt,onPointerUp:mt,onPointerEnter:et,onPointerLeave:rt,onDisabledClick:Ve,isInteractive:X,get disabled(){return r(se)},get hideHandel(){return l()},get ref(){return y()},set ref(Se){y(Se)}}),b(t,qt),K(),o()}var J$={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function gd(t,e){q(e,!0),Q(t,J$);let[i,o]=Ue(),n=()=>C(l,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"duration",3,0),d=Te(),l=d.ui.isMobile,p=d.ui.t,f=m(()=>dr(s())),_=m(()=>dr(a())),u=m(()=>a()/s()),$=m(()=>p("aria_timeline_value",{position:r(_),duration:r(f)})),w=m(()=>Math.round(r(u)*100));la(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()}}),K(),o()}var e2=L("<div><!></div>"),t2=L("<div></div>"),i2={hash:"svelte-1gqonyf",code:".timeline.svelte-1gqonyf {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-1gqonyf {height:16px;padding:6px 12px 7px;margin-top:6px;}.timeline-stub.svelte-1gqonyf {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1gqonyf {height:8px;}"};function hd(t,e){q(e,!0),Q(t,i2);let[i,o]=Ue(),n=()=>C(u,"$isLive$",i),a=()=>C(y,"$isMobile",i),s=()=>C(w,"$adPosition",i),d=()=>C($,"$adDuration",i),l=v(e,"isAds",3,!1),p=v(e,"isHidden",3,!1),f=v(e,"ref",15,void 0),_=Te(),u=_.state.isLive$,$=_.ads.duration,w=_.ads.position,y=_.ui.isMobile,S=m(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=qe(),A=me(I);{var P=T=>{var V=e2();let z;var Y=h(V);{var U=X=>{gd(X,{get position(){return s()},get duration(){return d()}})},Z=X=>{Ef(X,{get showTimeline(){return r(S)},get ref(){return f()},set ref(oe){f(oe)}})};R(Y,X=>{l()?X(U):X(Z,!1)})}g(V),k(X=>z=te(V,1,"timeline svelte-1gqonyf",null,z,X),[()=>({mobile:a()})]),b(T,V)},E=T=>{var V=t2();let z;k(Y=>z=te(V,1,"timeline-stub svelte-1gqonyf",null,z,Y),[()=>({mobile:a()})]),b(T,V)};R(A,T=>{r(S)?T(P):T(E,!1)})}b(t,I),K(),o()}var e1=require("@vkontakte/videoplayer-shared/es2018");var o2=be('<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 Af(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=o2();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(3),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i})),b(t,o)}var n2=be('<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 Pf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=n2();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),b(t,o)}var r2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),s2=L('<span class="text svelte-1yhs2ga"> </span>'),a2=L('<span class="text count svelte-1yhs2ga"> </span>'),l2=L("<!> <!>",1),d2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function _d(t,e){var le,Ve,Me;q(e,!0),Q(t,d2);let[i,o]=Ue(),n=()=>C(w,"$currentGridType$",i),a=()=>C(y,"$openedByKeyboard$",i),s=()=>C(S,"$panelOpened$",i),d=()=>C(I,"$isMobile",i),l=v(e,"position",3,0),p=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),_=Te(),u=(Ve=(le=_.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Ve:e1.noop,$=!!((Me=_.callbacks)!=null&&Me.onEpisodeClicked),w=_.ui.currentGridType$,y=_.ui.episodes.openedByKeyboard$,S=_.ui.episodes.panelOpened$,I=_.ui.isMobile,A=_.ui.t,P=ee(void 0),E=J=>{var j,N,Re;if(!!((j=_.callbacks)!=null&&j.onEpisodeClicked)){let ne=Ss(J);y.set(ne),S.set(!0),(Re=(N=_.callbacks)==null?void 0:N.onEpisodeClicked)==null||Re.call(N,ne)}},T=ee(null),V=m(()=>l()/p());je(()=>{var Le;let J=jc(r(V),p(),f());J?((Le=r(T))==null?void 0:Le.time)!==J.time&&(u(J),O(T,ge(J))):O(T,null)});let z=m(()=>{var J;return((J=r(T))==null?void 0:J.text)||""}),Y=m(()=>Fi(n(),"xl")?"FULL":Fi(n(),"m")&&Qh(n(),"xl")?"COUNT":"SHORT"),U=m(()=>`${A("tooltip_episodes")}: ${r(z)}`),Z=async(J,Le,j)=>{await xo(),(J==null?void 0:J.getAttribute("aria-expanded"))==="false"&&Le&&!j&&$t(()=>{y.set(!1),J.focus()})};je(()=>{Z(r(P),a(),s())});var X=qe(),oe=me(X);{var ce=J=>{let Le=m(()=>d()?"px-0":"");At(J,{get className(){var j;return`w-max btn-full-opacity btn-jc-l ${(j=r(Le))!=null?j:""}`},testId:"btn-episodes",click:E,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(U)},get ref(){return r(P)},set ref(j){O(P,ge(j))},children:(j,N)=>{var Re=qe(),ne=me(Re);{var ke=ue=>{var D=r2(),de=me(D),Ee=h(de,!0);g(de);var Qe=M(de,2),at=h(Qe);Pf(at,{}),g(Qe),k(()=>pe(Ee,r(z))),b(ue,D)},Be=ue=>{var D=l2(),de=me(D);Af(de,{});var Ee=M(de,2);{var Qe=Ae=>{var $e=s2(),Pe=h($e,!0);g($e),k(()=>pe(Pe,r(z))),b(Ae,$e)},at=(Ae,$e)=>{{var Pe=nt=>{var mt=a2(),et=h(mt,!0);g(mt),k(()=>pe(et,f().length)),b(nt,mt)};R(Ae,nt=>{r(Y)==="COUNT"&&nt(Pe)},$e)}};R(Ee,Ae=>{r(Y)==="FULL"?Ae(Qe):Ae(at,!1)})}b(ue,D)};R(ne,ue=>{d()?ue(ke):ue(Be,!1)})}b(j,Re)},$$slots:{default:!0}})};R(oe,J=>{r(T)&&J(ce)})}b(t,X),K(),o()}var f1=require("@vkontakte/videoplayer-shared/es2018");var ai=require("@vkontakte/videoplayer-core/es2018"),ht=require("@vkontakte/videoplayer-shared/es2018"),qr=require("@vkontakte/videoplayer-statistics/es2018");var ze=require("@vkontakte/videoplayer-shared/es2018"),Ui=require("@vkontakte/videoplayer-shared/es2018");var t1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var c2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Zc=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 Ui.Subject,loadStarted$:new Ui.Subject,loadEnded$:new Ui.Subject,loadError$:new Ui.Subject,ready$:new Ui.Subject,slotRequested$:new Ui.Subject,started$:new Ui.Subject,timeRemained$:new Ui.Subject,paused$:new Ui.Subject,resumed$:new Ui.Subject,ended$:new Ui.Subject,empty$:new Ui.Subject,skipped$:new Ui.Subject,clicked$:new Ui.Subject,closed$:new Ui.Subject,error$:new Ui.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,Ui.addScript)(c2,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"}),xe(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:f,previewParam:_}=e,u,$=this.playerState&&xe(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=(0,ze.detectEmbed)(),S=(P=w?y:window.location.href)!=null?P:window.location.href,I={...p,dl:encodeURIComponent(S),autoplay:a?1:0,player_width:i,player_height:o,preview:_,...u?{request_id:u}:{},duration:f,puid10:t1(i,o),puid11:n?0:1};_||delete I.preview;let A={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:I,browser:{mobile:!1}};try{let E=new window.AdmanHTML;E.setDebug(!1),E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.init(A),this.adman=E,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(A)}`})}catch(E){ze.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],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=xe(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,f,_,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),(f=this.adman)==null||f.onCompleted(void 0),(_=this.adman)==null||_.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&(0,Ui.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var i1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Mf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let a of n){let s={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!s.startTime&&!s.endTime){let p=new Xc,{startTime:f,endTime:_}=p.parse(l);s.startTime=f,s.endTime=_}else if(l.trim()!==""){let p=new Lf,{texts:f}=p.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Xc=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}},Lf=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((f,_)=>{let u=s.indexOf(_,d);return f===-1||f>u?u:f},-1);if(p===-1){l.push(s.substring(d));break}l.push(s.substring(d,p)),d=p+1}return l}}),a=new Xc;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}},o1=Mf;var eu=require("@vkontakte/videoplayer-shared/es2018"),da,yi,Vf=0,Rf=!1,n1="",r1=(t,e=0,i=0)=>t<e&&t<i,Jc=(t,e=0,i=0)=>t>=e&&t<=i,u2=(t,e=0,i=0)=>t>e&&t>i,s1=(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:f})=>Jc(t,p,f));let a=t>=Vf,s=t<Vf;if(Vf=t,s&&(Rf=!1),(0,eu.isNonNullable)(da)&&Jc(t,da.startTime,da.endTime)&&n1===e.value)return da;if(!(0,eu.isNonNullable)(yi)&&(n!=null&&n.length)&&!Rf){yi=n.find(({startTime:p,endTime:f})=>Jc(t,p,f)||a&&r1(t,p,f)),da=void 0,!(0,eu.isNonNullable)(yi)&&n[n.length-1].endTime<t&&(Rf=!0);return}else{if(Jc(t,yi==null?void 0:yi.startTime,yi==null?void 0:yi.endTime))return da=yi,yi=void 0,n1=e.value,da;(a&&u2(t,yi==null?void 0:yi.startTime,yi==null?void 0:yi.endTime)||s&&r1(t,yi==null?void 0:yi.startTime,yi==null?void 0:yi.endTime))&&(yi=void 0)}};var a1={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},p2={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},tu=t=>{var e,i;return(i=(e=a1[t])!=null?e:a1[p2[t]])!=null?i:void 0};var l1=require("@vkontakte/videoplayer-shared/es2018"),ZR=require("@vkontakte/videoplayer-statistics/es2018"),iu=class{constructor(e,i=new l1.Subscription){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var bd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(bd||{});var zr=t=>t!=null?t:0,il=(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(zr(i==null?void 0:i.top)-zr(o==null?void 0:o.top)),left:Math.round(zr(i==null?void 0:i.left)-zr(o==null?void 0:o.left)),bottom:Math.round(zr(i==null?void 0:i.bottom)-zr(o==null?void 0:o.top)),right:Math.round(zr(i==null?void 0:i.right)-zr(o==null?void 0:o.left))}},ol=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:zr(e==null?void 0:e.width),height:zr(e==null?void 0:e.height)}};var d1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:f,previewThumbsData:_,uiConfig:u,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:A,replayInteractive:P,stopPlayer:E,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,additionalButtons:z,additionalSettingsMenuItems:Y,additionalContextMenuItems:U,playPrevVideo:Z,playNextVideo:X,looped:oe=!1,statistics:ce,saveRate:le,internalsExposure:Ve})=>{var ev,tv,iv;let Me={...$,configName:[...(ev=$.configName)!=null?ev:[],"ui"],isAudioDisabled:s,live:{...(tv=$.live)!=null?tv:{},isLiveCatchUpMode:!!n}},J=u,Le=ht.Tracer.createRootTracer(J.features.saveTraceInfoToFile),j=Le.createComponentTracer("Store"),N=w||new ai.Player(Me,Le);Ve==null||Ve.expose({corePlayer:N});let Re=new ht.Logger,ne=new Zc(Re,{loadTimeout:J.ads.loadTimeout,initTimeout:J.ads.initTimeout,runtimeTimeout:J.ads.runtimeTimeout,useAdmanFromNPM:J.ads.useAdmanFromNPM,volumeMultiplier:J.ads.volumeMultiplier,isVsidOriginal:J.ads.isVsidOriginal}),ke=Xs.getInstance(),Be=p==null?void 0:p.pictureInPictureApi,ue=p==null?void 0:p.annotationsApi,D=Re.createComponentLog("Store"),de,Ee,Qe={},at=new Ac,Ae=ce?Yt(ce.oneStat.vsid$):lr(void 0),$e=ae(ys()),Pe=ae(!1),nt=(iv=Be==null?void 0:Be.info.isActive$)!=null?iv:new ht.ValueSubject(!1),mt=ae(0),et=ae([]),Bt=(0,ht.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>et.update(x=>[...x,c])),rt=lr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),vt=async c=>{var he;let x=Object.values(ht.InterfaceLanguage).includes(c);if(J.downloadVKLanguages&&(x&&J.updateBuiltinLanguages||!Op(c))){let We;try{We=await(0,ht.loadVKLangPack)(c,Kg,Wg)}catch(St){(he=ce==null?void 0:ce.oneStat)==null||he.logError({errorType:"VKLangPack",fatal:!1}),ke==null||ke.report(St,{errorType:"VKLangPack",fatal:!1})}We&&(Dp({language:c,pack:We,fallback:J.defaultLanguage}),Ft.set(c))}Op(c)&&Ft.set(c)},Ft=ae(t),qt=ae(e);vt(t);let Ne=(c,x)=>{let B=xe(Ft);return Hp(B,c,x,J.defaultLanguage)},re=ae("thumb"),W=(()=>{let c=vi([rt,re],([x,B])=>x?"crashed":B);return{...c,is:x=>xe(c)===x}})(),se=(()=>{let c=ae(new Set(y));return{...c,add:x=>{c.update(B=>new Set([...B].concat(x)))},remove:x=>{c.update(B=>{let he=[...B];return new Set(Array.isArray(x)?he.filter(We=>!x.includes(We)):he.filter(We=>We!==x))})},includes:x=>{let B=xe(c);return Array.isArray(x)?x.every(he=>B.has(he)):B.has(x)}}})();j.log("create store"),D({message:"create store"});let ve=c=>{let x=c.container;x.append(N.experimental.element$.getValue()),Xe=new MutationObserver(B=>{let{removedNodes:he}=B[0];he.length&&x.append(N.experimental.element$.getValue())}),Xe.observe(x,{childList:!0})},Se=c=>{D({message:`init video, config: ${JSON.stringify(c)}`}),S?ve(c):(ht.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ht.now)()]}),N.initVideo(c)),j.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),de=c},De=new ht.Subject,ut=c=>De.next(c),Ut=new ht.Subject,Ge=new ht.Subject,lt=new ht.Subject,Xe=null,It={actionRewind$:Ut,actionSeek$:Ge,inPiP$:nt,inFullscreen$:new ht.Observable(c=>$e.subscribe(x=>c.next(x))),actionSetSubtitle$:lt,nextMovie$:De};if(ce){let{oneStat:c,statSubscription:x}=ce;S||x.add(c.attachTo(N)),x.add(c.attachToUi(It)),x.add(c.attachToAds(ne.events)),c.authorize(a).catch(B=>{D({message:`onestat auth error ${String(B)}`})})}if(ke){let c=new ht.Subscription,x=(B,he)=>c.add(B.subscribe(he));if(x(N.events.managedError$,B=>{ke.logIError(B)}),x(N.events.fatalError$,B=>{ke.logIError(B,!0)}),ce){let{oneStat:B}=ce;x(B.experimental.error$,he=>{ke.logIError(he)})}ke.sentrySubscription.add(c)}let Zt=()=>{ai.clientChecker.device.isIOS&&Ee&&kh(Ee).catch(c=>{D({message:`exitIosSafariFullscreen failed: ${c}`})})},Ke=new ht.Subscription().add(N.experimental.element$.subscribe(c=>{c&&(Ee=c,c.classList.add("player-media"),ea(Be)&&(Be.updateVideoElement(),Be.registryEventHandlers()),S&&c.setAttribute("pip","false"))})).add(N.events.ended$.subscribe(()=>{var c;Zt(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(N.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(N.events.started$.subscribe(async()=>{var x,B;ea(Be)&&await(Be==null?void 0:Be.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(B=Qe.onStarted)==null||B.call(Qe,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var B;(B=l==null?void 0:l.onSeek)==null||B.call(l,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(N.info.position$.subscribe(c=>{var B;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((B=l==null?void 0:l.onTimeupdate)==null||B.call(l,x,c),ne.setPosition(c,x))})).add(N.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(N.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(N.events.loadedMetadata$.subscribe(()=>{kt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{kt.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(A!=null&&A.getValue()&&se.add(Ql),se.add("PLAY_BUTTON")):se.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(ne.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(ne.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(ne.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(ne.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(ne.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(ne.events.started$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:B.call(x,c)})).add(ne.events.timeRemained$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:B.call(x,c)})).add(ne.events.ended$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:B.call(x,c)})).add(ne.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(ne.events.clicked$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:B.call(x,c)})).add(ne.events.closed$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:B.call(x,c)})).add(ne.events.error$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:B.call(x,c)})).add(ne.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(ne.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)})),dt=new ht.Subscription,ei=()=>{var St,Lt,Ht;let{debugLog:c}=J,x,B="#9df7b7",he="#efd169";if(c&&c!==!0){let{colors:Vt}=c;x=c.tag,B=(St=Vt==null?void 0:Vt[0])!=null?St:B,he=(Ht=(Lt=Vt==null?void 0:Vt[1])!=null?Lt:Vt==null?void 0:Vt[0])!=null?Ht:he}let We=x?`: ${x}`:"";dt.add(N.events.log$.subscribe(Vt=>{console.debug(`%c sdk${We} `,`background:${B};`,`sdk component: ${Vt.component}`,Vt.message)})).add(Re.log$.subscribe(Vt=>{console.debug(`%c ui${We} `,`background:${he};`,`ui component: ${Vt.component}.`,Vt.message)}))},Ri=()=>{dt.unsubscribe()},Mo=(c,x)=>{j.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},qi=(c=!1)=>{j.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Lo=(c,x,B)=>{j.log("move camera focus px",{xpx:c,ypx:x,dt:B}),N.moveCameraFocusPX(c,x,B)},Vo=()=>{N.holdCamera()},Pt=()=>{N.releaseCamera()},_t=lr(N.info.position$.getValue(),c=>{let x,B,he=()=>{let We=N.info.playbackState$.getValue(),St=N.info.isLive$.getValue(),Lt=N.info.duration$.getValue(),Ht=N.info.position$.getValue();if(We&&[ai.PlaybackState.PLAYING,ai.PlaybackState.PAUSED].includes(We)){let Vt=St?Ht-Lt:N.getExactTime();Vt!==B&&c(Vt),B=Vt}x=requestAnimationFrame(he)};return he(),()=>cancelAnimationFrame(x)}),F=Yt(N.info.playbackState$),Wt=Yt(N.info.currentBuffer$),Ki=Yt(N.info.isEnded$),Bi=Yt(N.info.isLive$),si=J.features.playbackRate?Yt(N.info.canChangePlaybackSpeed$):lr(!1),di=Yt(N.info.liveBufferTime$),po=Yt(N.info.volume$),fo=Yt(N.info.muted$),ji=Pc(N.info.predefinedQualityLimitType$.pipe((0,ht.map)(c=>c===ai.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ai.PredefinedQualityLimits.TRAFFIC_SAVING),Uo=Pc(N.info.predefinedQualityLimitType$.pipe((0,ht.map)(c=>c===ai.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ai.PredefinedQualityLimits.HIGH_QUALITY),Nt=Yt(N.info.autoQualityLimitingAvailable$),ci=Yt(N.info.availableQualities$),wt=Yt(N.info.availableQualitiesFps$),zt=Yt(N.info.chromecastState$),mo=Yt(N.info.chromecastDeviceName$),jt=Yt(N.info.currentFormat$),Gn=Yt(N.info.throughputEstimation$),Co=Yt(N.info.videoBitrate$),zo=Yt(N.info.intrinsicVideoSize$),ni=Yt(N.info.duration$),yt=Yt(N.info.isAudioAvailable$),ui=null,vo=N.info.isBuffering$,gi=lr(vo.getValue(),c=>{let x=vo.subscribe(B=>{B&&ui===null?ui=window.setTimeout(()=>{c(vo.getValue()),ui=null},J.loaderDelay):c(B)});return()=>{x.unsubscribe(),ui&&clearTimeout(ui)}}),xn=()=>{ui&&clearTimeout(ui),ui=null},xi=vi([ni,Bi],([c,x])=>x?-c:c),To=vi([F],([c])=>c===ai.PlaybackState.PLAYING),qo=Yt(N.info.atLiveEdge$),wn=Yt(N.info.atLiveDurationEdge$),wi=Yt(N.info.position$),Yn=vi([wi,ni],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),an=vi([zt],([c])=>c===ai.ChromecastState.CONNECTED),Ro=Yt(N.info.availableVideoStreams$),ln=J.features.audioLanguages?Yt(N.info.availableAudioStreams$):lr([]),Pr=Yt(N.info.currentVideoStream$),ur=Yt(N.info.currentAudioStream$),jn=c=>{c.language&&Np(c.language),N.setVideoStream(c)},Sn=c=>{c.language&&Np(c.language),N.setAudioStream(c)},dn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(he=>"isDefault"in he&&he.isDefault)),x)return x;let B=gh();return B&&(x=c.find(({language:he})=>B===he)),x!=null||(x=c.at(0)),x},Cn=!1;Ke.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Cn&&c.length){let x=dn(c);x&&(N.setAudioStream(x),Cn=!0)}}));let go=!1;Ke.add(N.info.availableVideoStreams$.subscribe(c=>{if(!go&&c.length){let x=dn(c);x&&(N.setVideoStream(x),go=!0)}}));let Je=ae(void 0),cn=Yt(N.info.isAutoQualityEnabled$,c=>c&&Je.set(void 0)),Zn=Yt(N.info.currentQuality$,()=>Je.set(void 0)),Xn=vi([Je,Zn],([c,x])=>c!=null?c:x),Tn=vi(jt,c=>c!==ai.VideoFormat.MPEG),un=vi([ci,wt,cn,Xn,Tn],([c,x,B,he,We])=>{let St=[];We&&St.push({value:"auto",displayValue:Ne("auto_quality_option"),selected:B});let Lt=c.filter(Ht=>!(0,ht.isInvariantQuality)(Ht));for(let Ht of Lt){let Vt=x[Ht];St.push({value:Ht,displayValue:`${Ht}${Vt?i1(Vt):""}`,selected:B?!1:Ht===he})}return St}),pn=Yt(N.info.currentPlaybackRate$),Ko=vi([pn,qo,wn],([c,x,B])=>{let he=B||S?1:J.controls.playbackRateMin,We=x?1:J.controls.playbackRateMax,St=J.controls.playbackRateStep,Lt=[];for(let Ht=he;Ht<=We;Ht+=St)Lt.push({value:Ht,displayValue:Ht===1?Ne("playback_rate_1"):Ne("playback_rate",{multiplier:Ht.toString(10)}),selected:c===Ht});return Lt}),Wi={displayValue:Ne("subtitles_off"),value:"off"},Qi=ae({...Wi}),Jn=J.features.subtitles?Yt(N.info.availableTextTracks$):lr([]),In=ah(),er=vi([Jn,Qi],([c,x],B)=>{var St;let he=[],We=c.find(({id:Lt})=>Lt===x.value);if(We!=null&&We.url){let[,Lt]=(St=In.find(We.url))!=null?St:[];if(Lt){B(Lt);return}at.download(We.url).then(Ht=>{if(!Ht||at.isDestroyed())return;let Vt=new o1,us=We.language;if(us){let Z1=!!We.isAuto,X1=Vt.parse(Ht,us);he.push({lang:us,subtitles:X1,isAuto:Z1,id:We.id})}In.add(We.url,he),xe(Qi).value===x.value&&B(he)}).catch(Ht=>{var Vt;(Vt=ce==null?void 0:ce.oneStat)==null||Vt.logError({errorType:"Subtitles download",fatal:!1}),ke==null||ke.report(Ht,{errorType:"Subtitles download",fatal:!1})})}B(he)}),pr=vi([pn,To,Qi],([c,x,B],he)=>{let Lt;if(N.info.isLive$.getValue()&&x&&B.value!==Wi.value){let Vt=()=>{let us=1e3/(3*c);Lt=setTimeout(Vt,us),he(Date.now())};return Vt(),()=>clearTimeout(Lt)}}),Zi=vi([Jn,Qi],([c,x])=>{if(!c.length)return[];let B=[];for(let{language:he,isAuto:We,id:St}of c){let Lt=he&&tu(he);he&&Lt&&B.push({displayValue:We?Ne("subtitles_auto",{language:Lt}):Lt,value:St,selected:(x==null?void 0:x.value)===St,isAuto:We})}return B.length?(B.unshift({...Wi,selected:(x==null?void 0:x.value)===Wi.value}),B):[]}),Xi={available:[],prev:[]},kn=()=>{var x,B;let c=N.experimental.getCurrentTime$.getValue();return(B=(x=c==null?void 0:c())!=null?x:Ee==null?void 0:Ee.currentTime)!=null?B:0},En=vi([_t,Qi,er,pr],([c,x,B,he])=>{var St;let We=N.info.isLive$.getValue();if(We&&Xi.prev!==B){let Lt=B.find(({id:Vt})=>Vt===x.value),Ht=Xi.prev.find(({id:Vt})=>Vt===x.value);if(Lt){let Vt={...Lt,subtitles:[...(St=Ht==null?void 0:Ht.subtitles)!=null?St:[],...Lt.subtitles]};Xi.available=[Vt],Xi.prev=B}}if(x&&x.value!==Wi.value){let Lt=We?kn():c,Ht=We?Xi.available:B;return s1(Lt,x,Ht,We)}}),ho=vi([En],([c])=>c!=null&&c.texts?c.texts:[]),Ji=ae(!0),An=vi([Wt,xi,wi,di],([c,x,B,he])=>{var Ht;let We=(Ht=c==null?void 0:c.end)!=null?Ht:0;if(!he)return We/x;let Lt=-B+he-x;return(We-Lt)/x}),Bo=Yt(N.info.availableSources$),Mr=vi([Bo],([c])=>Object.keys((c==null?void 0:c[ai.VideoFormat.MPEG])||{}).length>0),Pn=()=>{var B,he,We;let c=Object.keys(((he=(B=N.info.availableSources$)==null?void 0:B.getValue())==null?void 0:he[ai.VideoFormat.MPEG])||{}),x=(0,ht.getHighestQuality)(c)||ht.VideoQuality.Q_144P;return(We=de.sources[ai.VideoFormat.MPEG])==null?void 0:We[x]},fr=()=>{var x;let c=Pn();if(c)j.log("download video",{url:c}),nh(c,((x=de==null?void 0:de.meta)==null?void 0:x.title)||"video");else{let B="There is no URL for download video";j.log("download video",{message:B}),D({message:B})}},Mn=()=>{D({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Vn(ir()):ti(!c)},Ln=()=>{var c;if(kt.ui.settingsMenu.visible$.set(!1),!xe(kt.ui.settingsSubMenu.visible$)){let x=xe(kt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let he=ol(x),We={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:he,position:We,name:"settings"})}}j.log("close settings menu")},Lr=async(c,x=()=>Promise.resolve())=>{var We;kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),kt.ui.settingsMenu.visible$.set(!0),await x();let B=xe(kt.ui.settingsMenu.ref$),he=Ms();if((We=l==null?void 0:l.uiInfo)!=null&&We.onSettingsMenu&&B&&he){let Lt=ol(B),Ht=il(B,he);l.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:Ht,name:"settings"})}j.log("open settings menu",{wasOpenedByKeyboard:c})},tr=(c,x=!1)=>{var St;kt.ui.settingsSubMenu.visible$.set(!1);let B=xe(kt.ui.settingsMenu.ref$),he=Ms(),We=xe(kt.ui.settingsMenu.visible$);if((St=l==null?void 0:l.uiInfo)!=null&&St.onSettingsMenu&&B&&he)if(We&&!x){let Ht=ol(B),Vt=il(B,he);l.uiInfo.onSettingsMenu({visible:!0,size:Ht,position:Vt,name:"settings"})}else{let Ht=ol(c),Vt={top:0,left:0,bottom:0,right:0},us=xe(kt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Ht,position:Vt,name:us})}j.log("close settings sub menu")},mr=(c,x)=>{var he;kt.ui.settingsSubMenu.visible$.set(!0),kt.ui.settingsSubMenu.ref$.set(x),kt.ui.settingsSubMenu.name$.set(c);let B=Ms();if((he=l==null?void 0:l.uiInfo)!=null&&he.onSettingsMenu&&x&&B){let St=ol(x),Lt=il(x,B);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:St,position:Lt})}j.log("open settings sub menu",{name:c})},ir=()=>{var x;let c=Math.max(J.volumeMinRestore,(x=Mc())!=null?x:0);return c===0?J.volumeDefault:c},Vn=c=>{let x=c===0?ir():c,B=N.info.muted$.getValue();D({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),B&&c>0&&!s&&(B=!1,Rp(!1)),N.setVolume(c,B),ne.setVolume(c),Ap(x)},ti=c=>{let x=N.info.volume$.getValue();if(D({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c),ne.setVolume(c?0:x),Rp(c),!c&&x===0){let B=ir();N.setVolume(B),Ap(B),ne.setVolume(B)}},Wo=ae(!1),vr=c=>{j.log("set looped",{isLooped:c}),Wo.set(c),N.setLooped(c)};vr(oe);let Vr=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},it=(c,x=!1)=>{var B;D({message:`set autoplayNextEnabled, value: ${c}`}),j.log("set autoplay next enabled",{autoplayNextEnabled:c}),kt.ui.autoplayNextEnabled$.set(c),bh(c),x&&((B=l==null?void 0:l.onSetAutoplayNextEnabled)==null||B.call(l,c))},pt=c=>{D({message:`set timerNextVideoRunning, value: ${c}`}),j.log("set timer next video running",{timerNextVideoRunning:c}),kt.ui.timerNextVideoRunning$.set(c)},Si=(c=!0)=>{var B;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(B=l==null?void 0:l.onPrevVideoClick)==null?void 0:B.call(l)}catch(he){D({message:"onPrevVideoClick callback failed to execute"})}x&&Z()},eo=(c=!0)=>{var B;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(B=l==null?void 0:l.onNextVideoClick)==null?void 0:B.call(l)}catch(he){D({message:"onNextVideoClick callback failed to execute"})}x&&X()},to=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},Io=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},No=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Do=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},ko=()=>{N.prepare()},Ze=()=>{(0,ht.assertNonNullable)(kt);let c=xe(kt.ui.controls.disabledControls$),x=xe(kt.playerPhase),B={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(D({message:"toggle play"}),x==="ads"){B.action="play",j.log("toggle adman play",B),ne.togglePlay();return}let he=()=>{var St;D({message:"toggle play, call player.play"}),B.action="play",N.play(),(St=l==null?void 0:l.onPlay)==null||St.call(l)},We=()=>{var St;D({message:"toggle play, call player.pause"}),B.action="pause",N.pause(),(St=l==null?void 0:l.onPause)==null||St.call(l)};if(N.info.isEnded$.getValue()){if(D({message:"toggle play, video ended, seek to 0"}),Ut.next(),Ge.next(qr.SeekAction.REWIND),S){P==null||P();return}N.seekTime(0),he()}else N.info.playbackState$.getValue()!==ai.PlaybackState.PLAYING?he():We();j.log("toggle play",B)},Tt=(c,{changeReason:x="default",appliesTo:B="to-video"}={})=>{D({message:`set quality, quality: ${c}`}),j.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(J.features.qualityDetailsSubMenuEnabled?(Lc({type:"exact_quality",quality:c,videoId:i},B),jl(),N.setPredefinedQualityLimits(ai.PredefinedQualityLimits.UNKNOWN)):Pp(i,c),Je.set(c),N.setQuality(c)):J.features.qualityDetailsSubMenuEnabled?x==="default"&&(hi("auto_quality",B),xe(ji)&&Ei(!1),xe(Uo)&&Ni(!1)):jl()},Ei=(c,x="as-default")=>{D({message:`set trafficSavingEnabled, value: ${c}`}),j.log("set traffic saving enabled",{trafficSavingEnabled:c});let B=c?ai.PredefinedQualityLimits.TRAFFIC_SAVING:ai.PredefinedQualityLimits.UNKNOWN;J.features.qualityDetailsSubMenuEnabled?(Di(B,x),Yl(!1)):(N.setPredefinedQualityLimits(B),Yl(c))},Ni=(c,x="as-default")=>{D({message:`set highQualityEnabled, value: ${c}`}),j.log("set high quality enabled",{highQualityEnabled:c}),Di(c?ai.PredefinedQualityLimits.HIGH_QUALITY:ai.PredefinedQualityLimits.UNKNOWN,x)},Di=(c,x)=>{c!==ai.PredefinedQualityLimits.UNKNOWN&&(xe(Nt)&&!xe(cn)&&Tt("auto",{appliesTo:x,changeReason:"limit-changed"}),hi(c,x)),N.setPredefinedQualityLimits(c)},hi=(c,x)=>{Lc({type:c,videoId:i},x),x==="as-default"&&Lc({type:c,videoId:i},"to-video")},Gi=c=>{j.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),J.features.saveRate&&le&&!N.info.isLive$.getValue()&&hh(c)},io=()=>{let c=xe(Ko),x=c.findIndex(({selected:he})=>he);if(x===c.length-1)return;let B=c[x+1];Gi(B.value)},Rn=()=>{let c=xe(Ko),x=c.findIndex(({selected:he})=>he);if(x===0)return;let B=c[x-1];Gi(B.value)},Bn=(c={...Wi,selected:!1})=>{j.log("set subtitles",{...c}),c&&c.value!==Wi.value&<.next(c.isAuto?c.value+"_auto":c.value),Qi.set(c)},gr=()=>{j.log("toggle subtitles");let c=xe(Zi),x=xe(Qi),B=xe(Ft);if((x==null?void 0:x.value)===Wi.value){let he=c.filter(We=>We.value!==Wi.value).find(We=>We.value===B)||c[1];Bn(he)}else Bn()},Qo=(c,x,B=!0)=>{var he;if(D({message:`seek to time, time: ${c}`}),j.log("seek to time",{time:c,action:x,forcePrecise:B}),Ge.next(x),N.info.isLive$.getValue()){let We=N.info.duration$.getValue(),St=Math.min(0,We+c);N.seekTime(St,B)}else{if(A!=null&&A.getValue())return;N.info.isEnded$.getValue()&&(D({message:"seek after ended, call callbacks.onPlay"}),(he=l==null?void 0:l.onPlay)==null||he.call(l)),N.seekTime(cs(c),B)}},Nn=c=>{D({message:`seek to episode start time: ${c}`}),j.log("seek to episode start time",{time:c}),Qo(c,qr.SeekAction.EPISODE,!0)},hr=(c,x)=>{D({message:`seek to percent, percent: ${c}`}),j.log("seek to percent",{percent:c,action:x});let B=xe(xi)*c;Qo(B,x,!1)},_r=c=>{D({message:`seek external, time: ${c}`}),j.log("seek external",{time:c}),Ge.next(qr.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Rr=c=>{var he,We;let x=(he=c.max)!=null?he:"none",B=(We=c.min)!=null?We:"none";D({message:`set auto quality limitation. Max: ${x}. Min: ${B}`}),j.log("set auto quality limits",{max:x,min:B}),N.setAutoQualityLimits(c)},br=c=>{D({message:`seek external to episode start time: ${c}`}),j.log("seek external to episode start time",{time:c}),Qo(c,qr.SeekAction.EPISODE,!0)},fn=c=>{D({message:`set playback rate to: ${c}`}),j.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},mn=ae(void 0),or=ae(!1),Br=c=>{D({message:`start scrubbing, progress: ${c}`}),j.log("start scrubbing",{progress:c}),or.set(!0),_o(c)},_o=c=>{mn.set(c)},Dn,$r,tt=()=>{mn.set(void 0),or.set(!1)},Ot=()=>{clearTimeout($r),clearTimeout(Dn),Dn=window.setTimeout(()=>{tt()},500),Ee==null||Ee.removeEventListener("seeked",Ot)},ye=c=>{D({message:`complete scrubbing, progress: ${c}`}),j.log("complete scrubbing",{progress:c}),hr(c,qr.SeekAction.SLIDER),xe(kt.ui.isMobile)&&xe(kt.state.currentFormat$)===ai.VideoFormat.HLS?(Ee==null||Ee.addEventListener("seeked",Ot),$r=window.setTimeout(()=>{Ot()},300)):tt()},Mt=vi([_t,xi,mn],([c,x,B],he)=>{he((0,ht.isNonNullable)(B)?B*x:c)}),Xt=ae(!1),ii=()=>{Xt.set(!0)},bo=()=>{Xt.set(!1)},Ai=ae({width:0,height:0}),oi=vi([Ai],([{width:c}],x)=>{let B=Gh(c);x(B)}),li=ae(!1),_i=z.filter(c=>rh(c)),Yi=vi([oi,li],([c,x])=>x?_i.filter(B=>!B.hideOnMobile):_i.filter(B=>{var he;return!((he=B.hideOnDesktopGridTypes)!=null&&he.includes(c))})),Pi=ae(z.filter(c=>sh(c))),Ci=vi([Pi,oi],([c,x])=>c.filter(B=>{var he;return!((he=B.hideOnDesktopGridTypes)!=null&&he.includes(x))})),Kr=vi([Ci,Yi],([c,x])=>[...J.features.additionalButtonsDesktopControlPanelRight?c.filter(B=>B.type==="desktop-control-panel-right"):[],...J.features.additionalButtons?x.map((B,he)=>{var We;return{id:he,weight:he,type:"desktop-control-panel-right",testId:B.testId,icon:B.iconUrl,onClick:B.onClick,ariaLabel:(We=B.ariaLabel)!=null?We:B.tooltip,tooltipText:B.tooltip}}):[]]),He=ae(Y),Qt=vi([He],([c])=>J.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),bi=(c,x)=>{let B=xe(Pi).map(he=>he.id!==c?he:{...he,...x});Pi.set(B)},Eo=c=>{let x=xe(Pi);if(x.some(B=>B.id===c.id)){D({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Pi.set(x)},vn=c=>{let x=xe(Pi);if(!x.some(B=>B.id===c)){D({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),Pi.set(x)},Wr=c=>{Ge.next(qr.SeekAction.LIVE),D({message:"live switch to low latency "+c}),j.log("live switch to low latency "+c),N.setLiveLowLatency(c)},On=(c,x)=>{let B=xe(He).map(he=>he.id!==c?he:{...he,...x});He.set(B)},Nr=c=>{let x=xe(He);if(x.some(B=>B.id===c.id)){D({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),He.set(x)},ml=c=>{let x=xe(He);if(!x.some(B=>B.id===c)){D({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),He.set(x)},Hn=ae(U),vl=vi([Hn],([c])=>J.features.additionalContextMenuItems?c:[]),ba=(c,x)=>{let B=xe(Hn).map(he=>he.id!==c?he:{...he,...x});Hn.set(B)},$a=c=>{let x=xe(Hn);if(x.some(B=>B.id===c.id)){D({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Hn.set(x)},Ps=c=>{let x=xe(Hn);if(!x.some(B=>B.id===c)){D({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),Hn.set(x)},bt=vi([li,rt],([c,x],B)=>{B(c&&x)}),gt=()=>{Ge.next(qr.SeekAction.LIVE),D({message:"switch to active live"}),j.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==ai.PlaybackState.PLAYING&&kt.actions.internal.togglePlay()},oo=()=>{j.log("skip adman"),ne.skip()},Oo=(c=!0)=>{(0,ht.assertNonNullable)(kt),D({message:`switch from ads to video, callPlay: ${c}`}),j.log("switch from ads to video",{callPlay:c}),re.set("video"),c&&N.play()},no=()=>{(0,ht.assertNonNullable)(kt),D({message:"switch from video to ads"}),j.log("switch from video to ads"),kt.actions.internal.pause(),Zt(),re.set("ads")},ri=c=>{(0,ht.assertNonNullable)(kt);let x=c?"LiveWaitingStart":"thumb";j.log("set live waiting start",{state:c,playerPhase:x}),re.set(x)},Mi=c=>{(0,ht.assertNonNullable)(kt);let x=c?"LiveWaitingRecover":"thumb";j.log("set live waiting recover",{state:c,playerPhase:x}),re.set(x)},ds=c=>{(0,ht.assertNonNullable)(kt);let x=c?"LiveWaitingRecord":"thumb";j.log("set live waiting record",{state:c,playerPhase:x}),re.set(x)},gl=()=>((0,ht.assertNonNullable)(kt),j.log("get debug text data"),ih(N,de,kt)),jd=()=>((0,ht.assertNonNullable)(kt),JSON.stringify(Le.getFinishedSpans())),Iu=()=>((0,ht.assertNonNullable)(kt),oh(N,de,kt)),Ms=()=>Ee,ku=()=>{D({message:"toggle chromecast"}),j.log("toggle chromecast"),N.toggleChromecast()},hl=c=>{var B;if((0,ht.assertNonNullable)(kt),N.info.isEnded$.getValue())return;let x=!c;if(xe(kt.playerPhase)==="ads"){D({message:`pause ads, internalCall: ${x}`}),j.log("pause ads",{internalCall:x}),ne.pause();return}D({message:`pause video, internalCall: ${x}`}),j.log("pause video",{internalCall:x}),x&&((B=l==null?void 0:l.onPause)==null||B.call(l)),N.pause()},_l=c=>{var B;(0,ht.assertNonNullable)(kt);let x=!c;if(xe(kt.playerPhase)==="ads"){D({message:`play ads, internalCall: ${x}`}),j.log("play ads",{internalCall:x}),ne.play();return}D({message:`play video, internalCall: ${x}`}),j.log("play video",{internalCall:x}),x&&((B=l==null?void 0:l.onPlay)==null||B.call(l)),N.play()},Zd=c=>{(0,ht.assertNonNullable)(kt);let x=!c;if(xe(kt.playerPhase)==="ads"){D({message:"player cannot be stopped during ads via external method"});return}D({message:`player will be stopped, internalCall: ${x}`}),E==null||E()},Xd=(c,x)=>{(0,ht.assertNonNullable)(kt),D({message:`first start, show ads: ${c}, internalCall: ${!x}`}),j.log("first start",{showAds:c,external:x}),c?re.set("ads"):(re.set("video"),x?N.play():kt.actions.internal.togglePlay())},ya=()=>(D({message:"getting time codes"}),f),Jd=()=>{let c=ya();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(B=>B.time>x)},ec=c=>{let x=c;x||(x=Jd());let B=N.info.position$.getValue();j.log("seek to next episode",{currentTime:B,...x}),x&&(D({message:"seek to next episode"}),Qo(x.time,qr.SeekAction.EPISODE,!0))},tc=()=>{let c=ya();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),B=c.findIndex(We=>We.time>x),he=B===-1?c.length-2:B-2;if(!(he<0))return c[he]},ic=c=>{let x=c;x||(x=tc());let B=N.info.position$.getValue();j.log("seek to prev episode",{currentTime:B,...x}),x&&(D({message:"seek to prev episode"}),Qo(x.time,qr.SeekAction.EPISODE,!0))},Eu=()=>(D({message:"getting preview thumbs data"}),j.log("get preview thumbs data",{..._}),_),Au=async()=>{let c=Be==null?void 0:Be.isActive(),x="none";Be!=null&&Be.isActive()?(x="remove",await(Be==null?void 0:Be.remove())):(x="request",await(Be==null?void 0:Be.request())),j.log("toggle picture in picture",{isActive:c,action:x})},Fe=(c=-90)=>{j.log("rotate video",{alphaDiff:c}),mt.update(x=>x+c)},Gt=ae([]);I==null||I.subscribe(c=>{let x=[];for(let B=0;B<c.length;B++){let{range:[he,We],subjects:St}=c[B];B===0&&he!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:he/1e3,text:"",interactive:!0,completed:J.features.interactiveTimeOpenUri?!St.length||St.every(Lt=>Lt.isRemoved):!St.length}),We!==1/0&&x.push({time:We/1e3,text:"",interactive:!1,completed:!0})}Gt.set(x)});let Go=ae(!1);A==null||A.subscribe(c=>{c&&xe(or)&&tt()});let cs=c=>{if(!S)return c;let x=xe(Gt),B=xe(xi),We=xe(wi)/B,St=x.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>We);return typeof(St==null?void 0:St.time)=="number"?Math.min(c,St.time-.05):c},Yo=()=>{kt.ui.episodes.panelOpened$.set(!1)},j1=()=>{j.log("destroy store"),clearTimeout($r),clearTimeout(Dn),Ke.unsubscribe(),dt.unsubscribe(),N.destroy(),ne.destroy(),ce==null||ce.destroy(),ke==null||ke.destroy(),Bt.unsubscribe(),Xe==null||Xe.disconnect(),Xe=null,at.destroy()},kt={interfaceLanguage$:Ft,isCyrillicRelatedInterface$:qt,initVideo:Se,videoId:i,isClip:o,playerPhase:W,vsid:Ae,state:{positionExact$:_t,positionWithScrubbing$:Mt,duration$:xi,playbackState$:F,isPlaying$:To,isLoaderVisible:gi,bufferedProgress$:An,isLive$:Bi,canChangePlaybackSpeed$:si,isActiveLive$:qo,isOldestAvailableLive$:wn,isRewindableLive$:Yn,isEnded$:Ki,muted$:fo,volume$:po,trafficSavingEnabled$:ji,highQualityEnabled$:Uo,autoQualityLimitingAvailable$:Nt,availableVideoStreams$:Ro,availableAudioStreams$:ln,videoStream$:Pr,audioStream$:ur,currentQuality$:Xn,isAutoQualityEnabled$:cn,availableQualities$:un,currentPlaybackRate$:pn,availablePlaybackRates$:Ko,currentSubtitle$:Qi,availableTextTracks$:Jn,availableSubtitlesList$:Zi,currentSubtitleCaptions$:ho,isAutoSubtitleCaptionVisible$:Ji,chromecastState$:zt,chromecastDeviceName$:mo,chromecastConnected$:an,currentFormat$:jt,throughputEstimation$:Gn,videoBitrate$:Co,videoSize$:zo,errorLog$:et,crashed$:rt,isAudioAvailable$:yt,isAudioDisabled:!!s,canDownload:J.features.download&&!!d,availableSources$:Bo,hasMpegSources$:Mr,isInteractive:S,showInteractiveGraph:J.features.interactiveGraph,showSeekToInteractive:J.features.seekToInteractive,showPlayPrevChapter:J.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:J.features.interactiveTimeIndicator&&!!xe(Gt).length,interactiveEpisodes$:Gt,isInteractiveTime$:A?Yt(A):ae(!1),isInteractiveExpectation$:Go,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,looped$:Wo,loadedMetadata$:ae(!1),isAutoQualityAvailable$:Tn},ui:{t:Ne,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:z.length?z.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:se},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:$e,isFullscreenOpenedByKeyboard:Pe,rotateAlpha:mt,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:Ai,isMobile:li,mobileNotReportControlHidden$:bt,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:or,volumeChangingInProgress:Xt,is3DVideo:ae(!1),currentGridType$:oi,additionalButtonsDeprecated$:Yi,additionalDesktopControlPanelRightButtons$:Kr,additionalSettingsMenuItems$:Qt,additionalContextMenuItems$:vl,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)}},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:Be,annotationsApi:ue},actions:{internal:{preload:ko,firstStart:c=>Xd(c,!1),play:()=>_l(!1),pause:()=>hl(!1),togglePlay:Ze,toggleMuted:Mn,openSettingsMenu:Lr,closeSettingsMenu:Ln,openSettingsSubMenu:mr,closeSettingsSubMenu:tr,setVolume:Vn,startVolumeChanging:ii,stopVolumeChanging:bo,setVideoStream:jn,setAudioStream:Sn,setQuality:Tt,setTrafficSavingEnabled:Ei,setHighQualityEnabled:Ni,setPlaybackRate:Gi,incrementPlaybackRate:io,decrementPlaybackRate:Rn,setSubtitle:Bn,toggleSubtitle:gr,togglePictureInPicture:Au,startScrubbing:Br,progressScrubbing:_o,completeScrubbing:ye,toggleChromecast:ku,switchToActiveLive:gt,switchFromAdsToVideo:Oo,switchFromVideoToAds:no,skipAd:oo,setLiveWaitingStart:ri,setLiveWaitingRecover:Mi,setLiveWaitingRecord:ds,getDebugTextData:gl,getTraceTextData:jd,getDebugPanelData:Iu,getVideoElement:Ms,seekTime:(c,x,B)=>Qo(c,x,B),clearDelayedBufferingCheckTimeout:xn,seekEpisodeStartTime:Nn,seekToPercent:hr,getNextEpisode:Jd,seekToNextEpisode:ec,getPrevEpisode:tc,seekToPrevEpisode:ic,startLogging:ei,stopLogging:Ri,startCameraManualRotation:Mo,stopCameraManualRotation:qi,moveCameraFocusPX:Lo,holdCamera:Vo,releaseCamera:Pt,getVideoEpisodes:ya,getPreviewThumbsData:Eu,downloadVideo:fr,addLanguage:Dp,setLanguage:vt,nextMovie:ut,videoRotate:Fe,correctSeekTimeToInteractive:cs,replayInteractive:P,setLooped:vr,reportProblem:Vr,setAutoplayNextEnabled:it,setTimerNextVideoRunning:pt,prevVideoClick:Si,nextVideoClick:eo,nextVideoAnnouncementShow:to,nextVideoAnnouncementClick:Io,nextVideoAnnouncementAuto:No,nextVideoAnnouncementCancel:Do},external:{firstStart:c=>Xd(c,!0),play:()=>_l(!0),pause:()=>hl(!0),stop:()=>Zd(!0),seekTime:c=>_r(c),seekEpisodeStartTime:c=>br(c),setPlaybackRate:c=>fn(c),setAutoQualityLimits:c=>Rr(c),setMuted:ti,setVolume:Vn,returnFocusToEpisodes:Yo,updateAdditionalSettingsItem:On,addAdditionalSettingsItem:Nr,removeAdditionalSettingsItem:ml,updateAdditionalContextItem:ba,addAdditionalContextItem:$a,removeAdditionalContextItem:Ps,updateAdditionalButton:bi,addAdditionalButton:Eo,removeAdditionalButton:vn,setLiveLowLatency:Wr}},callbacks:l,setUiCallbacks:c=>{Qe={...c}},getAdmanWrapper:()=>ne,getLogger:()=>Re,getPlayer:()=>N,destroy:j1};return kt};function ca(t,e,i,o){var _;let n=["interactiveTimeIndicator"],a=(_=e[i])==null?void 0:_.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:f}=il(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?d:0,bottom:s?p:0,isDisplayed:s}}var ou=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(ca(t,i,n,o))};var nu=async(t,e,i)=>{await xo(),e&&i&&(i.focus(),t.set(!1))};var f2=be('<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 Bf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=f2();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),b(t,o)}function Nf(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C(l,"$contextMenuVisible$",i),a=v(e,"disabled",3,!1),s=v(e,"ariaLabel",3,""),d=Te(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,$=ee(void 0);je(()=>{r($)&&$t(()=>{u.set(r($))})});let w=A=>{let P=Ss(A),E=Dh(r($));_.set(E),p.set(P),l.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},I=m(()=>n()?"opened":"");At(t,{get className(){return r(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return r($)},set ref(A){O($,ge(A))},children:(A,P)=>{Bf(A,{})},$$slots:{default:!0}}),K(),o()}var m2=t=>{t.stopPropagation()},v2=L("<div><!> <div></div> <div></div></div>"),g2={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;}
|
|
229
|
+
`)),b(D,de)};R(Z,D=>{r(A)&&D(B)})}var Re=M(Z,2),ne=h(Re);{var ke=D=>{var de=qe(),Ee=ue(de);{var Ye=Ae=>{var $e=ir();k(Pe=>ve($e,Pe),[()=>H("tooltip_episode_unfinished")]),b(Ae,$e)},dt=Ae=>{var $e=ir();k(()=>ve($e,r(U).text||"")),b(Ae,$e)};R(Ee,Ae=>{u()&&r(U).completed===!1?Ae(Ye):Ae(dt,!1)})}b(D,de)};R(ne,D=>{r(U)&&D(ke)})}g(Re);var Ne=M(Re,2);{var fe=D=>{var de=Y$(),Ee=h(de,!0);g(de),k(()=>ve(Ee,d())),b(D,de)};R(Ne,D=>{u()||D(fe)})}g(J),k(D=>{Le=te(J,1,"timeline-preview svelte-1wqg760",null,Le,D),tt(J,`width: ${r(Y)?r(I):r(S)}px;`)},[()=>({mobile:l()})]),b(t,J),K(),o()}var X$=L('<span class="time svelte-1jr6obn"> </span>'),J$=L("<!> <!>",1),e2={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 Rf(t,e){var he;q(e,!0),Q(t,e2);let[i,o]=Fe(),n=()=>C(j,"$interactiveEpisodes$",i),a=()=>C(E,"$duration$",i),s=()=>C(P,"$position$",i),d=()=>C(pe,"$isInteractiveExpectation$",i),l=()=>C(oe,"$isInteractiveTime$",i),p=()=>C(T,"$isLive$",i),f=()=>C(U,"$isMobile",i),_=()=>C(V,"$isActiveLive$",i),u=()=>C(A,"$bufferedProgress$",i),$=()=>C(Me,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),y=v(e,"ref",15,void 0),S=we(),I=Wt(),A=S.state.bufferedProgress$,P=S.state.positionWithScrubbing$,E=S.state.duration$,T=S.state.isLive$,V=S.state.isActiveLive$,U=S.ui.isMobile,Y=I.features.episodes?S.actions.internal.getVideoEpisodes():void 0,F=S.actions.internal.getPreviewThumbsData(),j=S.state.interactiveEpisodes$,X=S.state.isInteractive,oe=S.state.isInteractiveTime$,pe=S.state.isInteractiveExpectation$,le=S.actions.internal.correctSeekTimeToInteractive,Ve=(he=S.callbacks)==null?void 0:he.onDisabledTimelineClick,Me=S.ui.controls.disabledControls$,J=S.ui.t,Le=I.features.interactiveResponsiveUi,Z=m(()=>X?n():Y),B=m(()=>rr(a())),Re=m(()=>rr(s())),ne=m(()=>s()/a()),ke=m(()=>d()||l()),Ne=ee(!1),fe=ee(""),D=ee(0),de=ee(0),Ee=ee(0),Ye=m(()=>({containerWidth:r(de),translateXPx:r(D),translateYPx:X&&F?-36:-16,active:r(Ne)&&w()&&!r(ke)&&!Le,pointer:!I.features.timelinePreview||!F||p()})),dt=J("aria_timeline"),Ae=m(()=>J("aria_timeline_value",{position:r(Re),duration:r(B)}));function $e(Se){return!le||!X?Se:le(Se*a())/a()}function Pe(Se){S.actions.internal.startScrubbing($e(Se))}function rt(Se){l()||S.actions.internal.progressScrubbing($e(Se))}function vt(Se){S.actions.internal.completeScrubbing($e(Se)),O(Ne,!1)}function lt(Se,De,ut){gt(Se,De,ut),O(Ne,!0)}function Et(Se,De,ut){gt(Se,De,ut),O(Ne,!0)}function st(){O(Ne,!1)}function gt(Se,De,ut){O(Ee,me($e(Se))),O(D,me(De)),ut&&O(de,me(ut)),O(fe,me(qt(Se)))}function qt(Se){let De=rr((p()?1-Se:Se)*a());return p()?`-${De}`:De}var Yt=J$(),Be=ue(Yt);Lf(Be,os(()=>r(Ye),{children:(Se,De)=>{var ut=qe(),Qt=ue(ut);{var Ze=Je=>{Vf(Je,{get time(){return r(fe)},get isMobile(){return f()},get videoEpisodes(){return r(Z)},previewThumbsData:F,get progress(){return r(Ee)},get duration(){return a()},isInteractive:X})},pt=Je=>{var Pt=X$(),ri=h(Pt,!0);g(Pt),k(()=>ve(ri,r(fe))),b(Je,Pt)};R(Qt,Je=>{I.features.timelinePreview&&F&&!p()?Je(Ze):Je(pt,!1)})}b(Se,ut)},$$slots:{default:!0}}));var re=M(Be,2);let W=m(()=>Math.round(r(ne)*100)),se=m(()=>$().has("TIMELINE"));ca(re,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return f()},ariaLabel:dt,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(W)},get ariaValueText(){return r(Ae)},get loadedProgress(){return u()},get filledProgress(){return r(ne)},get handleProgress(){return r(ne)},get videoEpisodes(){return r(Z)},onPointerDown:Pe,onHandleMove:rt,onPointerMove:Et,onPointerUp:vt,onPointerEnter:lt,onPointerLeave:st,onDisabledClick:Ve,isInteractive:X,get disabled(){return r(se)},get hideHandel(){return l()},get ref(){return y()},set ref(Se){y(Se)}}),b(t,Yt),K(),o()}var t2={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 bd(t,e){q(e,!0),Q(t,t2);let[i,o]=Fe(),n=()=>C(l,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"duration",3,0),d=we(),l=d.ui.isMobile,p=d.ui.t,f=m(()=>rr(s())),_=m(()=>rr(a())),u=m(()=>a()/s()),$=m(()=>p("aria_timeline_value",{position:r(_),duration:r(f)})),w=m(()=>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()}}),K(),o()}var i2=L("<div><!></div>"),o2=L("<div></div>"),n2={hash:"svelte-1gqonyf",code:".timeline.svelte-1gqonyf {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-1gqonyf {height:16px;padding:6px 12px 7px;margin-top:6px;}.timeline-stub.svelte-1gqonyf {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1gqonyf {height:8px;}"};function $d(t,e){q(e,!0),Q(t,n2);let[i,o]=Fe(),n=()=>C(u,"$isLive$",i),a=()=>C(y,"$isMobile",i),s=()=>C(w,"$adPosition",i),d=()=>C($,"$adDuration",i),l=v(e,"isAds",3,!1),p=v(e,"isHidden",3,!1),f=v(e,"ref",15,void 0),_=we(),u=_.state.isLive$,$=_.ads.duration,w=_.ads.position,y=_.ui.isMobile,S=m(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=qe(),A=ue(I);{var P=T=>{var V=i2();let U;var Y=h(V);{var F=X=>{bd(X,{get position(){return s()},get duration(){return d()}})},j=X=>{Rf(X,{get showTimeline(){return r(S)},get ref(){return f()},set ref(oe){f(oe)}})};R(Y,X=>{l()?X(F):X(j,!1)})}g(V),k(X=>U=te(V,1,"timeline svelte-1gqonyf",null,U,X),[()=>({mobile:a()})]),b(T,V)},E=T=>{var V=o2();let U;k(Y=>U=te(V,1,"timeline-stub svelte-1gqonyf",null,U,Y),[()=>({mobile:a()})]),b(T,V)};R(A,T=>{r(S)?T(P):T(E,!1)})}b(t,I),K(),o()}var o1=require("@vkontakte/videoplayer-shared/es2018");var r2=be('<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 Nf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=r2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(3),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i})),b(t,o)}var s2=be('<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 Bf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=s2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),b(t,o)}var a2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),l2=L('<span class="text svelte-1yhs2ga"> </span>'),d2=L('<span class="text count svelte-1yhs2ga"> </span>'),c2=L("<!> <!>",1),u2={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 yd(t,e){var le,Ve,Me;q(e,!0),Q(t,u2);let[i,o]=Fe(),n=()=>C(w,"$currentGridType$",i),a=()=>C(y,"$openedByKeyboard$",i),s=()=>C(S,"$panelOpened$",i),d=()=>C(I,"$isMobile",i),l=v(e,"position",3,0),p=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),_=we(),u=(Ve=(le=_.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Ve:o1.noop,$=!!((Me=_.callbacks)!=null&&Me.onEpisodeClicked),w=_.ui.currentGridType$,y=_.ui.episodes.openedByKeyboard$,S=_.ui.episodes.panelOpened$,I=_.ui.isMobile,A=_.ui.t,P=ee(void 0),E=J=>{var Z,B,Re;if(!!((Z=_.callbacks)!=null&&Z.onEpisodeClicked)){let ne=Ss(J);y.set(ne),S.set(!0),(Re=(B=_.callbacks)==null?void 0:B.onEpisodeClicked)==null||Re.call(B,ne)}},T=ee(null),V=m(()=>l()/p());Ke(()=>{var Le;let J=tu(r(V),p(),f());J?((Le=r(T))==null?void 0:Le.time)!==J.time&&(u(J),O(T,me(J))):O(T,null)});let U=m(()=>{var J;return((J=r(T))==null?void 0:J.text)||""}),Y=m(()=>Oi(n(),"xl")?"FULL":Oi(n(),"m")&&jh(n(),"xl")?"COUNT":"SHORT"),F=m(()=>`${A("tooltip_episodes")}: ${r(U)}`),j=async(J,Le,Z)=>{await mo(),(J==null?void 0:J.getAttribute("aria-expanded"))==="false"&&Le&&!Z&&yt(()=>{y.set(!1),J.focus()})};Ke(()=>{j(r(P),a(),s())});var X=qe(),oe=ue(X);{var pe=J=>{let Le=m(()=>d()?"px-0":"");Lt(J,{get className(){var Z;return`w-max btn-full-opacity btn-jc-l ${(Z=r(Le))!=null?Z:""}`},testId:"btn-episodes",click:E,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(F)},get ref(){return r(P)},set ref(Z){O(P,me(Z))},children:(Z,B)=>{var Re=qe(),ne=ue(Re);{var ke=fe=>{var D=a2(),de=ue(D),Ee=h(de,!0);g(de);var Ye=M(de,2),dt=h(Ye);Bf(dt,{}),g(Ye),k(()=>ve(Ee,r(U))),b(fe,D)},Ne=fe=>{var D=c2(),de=ue(D);Nf(de,{});var Ee=M(de,2);{var Ye=Ae=>{var $e=l2(),Pe=h($e,!0);g($e),k(()=>ve(Pe,r(U))),b(Ae,$e)},dt=(Ae,$e)=>{{var Pe=rt=>{var vt=d2(),lt=h(vt,!0);g(vt),k(()=>ve(lt,f().length)),b(rt,vt)};R(Ae,rt=>{r(Y)==="COUNT"&&rt(Pe)},$e)}};R(Ee,Ae=>{r(Y)==="FULL"?Ae(Ye):Ae(dt,!1)})}b(fe,D)};R(ne,fe=>{d()?fe(ke):fe(Ne,!1)})}b(Z,Re)},$$slots:{default:!0}})};R(oe,J=>{r(T)&&J(pe)})}b(t,X),K(),o()}var g1=require("@vkontakte/videoplayer-shared/es2018");var ni=require("@vkontakte/videoplayer-core/es2018"),_t=require("@vkontakte/videoplayer-shared/es2018"),zr=require("@vkontakte/videoplayer-statistics/es2018");var We=require("@vkontakte/videoplayer-shared/es2018"),Hi=require("@vkontakte/videoplayer-shared/es2018");var n1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var p2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",iu=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 Hi.Subject,loadStarted$:new Hi.Subject,loadEnded$:new Hi.Subject,loadError$:new Hi.Subject,ready$:new Hi.Subject,slotRequested$:new Hi.Subject,started$:new Hi.Subject,timeRemained$:new Hi.Subject,paused$:new Hi.Subject,resumed$:new Hi.Subject,ended$:new Hi.Subject,empty$:new Hi.Subject,skipped$:new Hi.Subject,clicked$:new Hi.Subject,closed$:new Hi.Subject,error$:new Hi.Subject};this.loadAdman=e=>(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,We.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,We.now)()]}),o())};(0,Hi.addScript)(p2,e,this.loadTimeout).then(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,We.now)()]}),window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,We.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[(0,We.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?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,We.now)()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,We.now)()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,We.now)()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,We.now)()]}),!d&&(window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,We.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,We.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,We.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),ye(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,We.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.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;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.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")=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,We.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,We.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,We.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:p={},duration:f,previewParam:_}=e,u,$=this.playerState&&ye(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=(0,We.detectEmbed)(),S=(P=w?y:window.location.href)!=null?P:window.location.href,I={...p,dl:encodeURIComponent(S),autoplay:a?1:0,player_width:i,player_height:o,preview:_,...u?{request_id:u}:{},duration:f,puid10:n1(i,o),puid11:n?0:1};_||delete I.preview;let A={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:I,browser:{mobile:!1}};try{let E=new window.AdmanHTML;E.setDebug(!1),E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.init(A),this.adman=E,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(A)}`})}catch(E){We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,We.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,We.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.adsState){this.log({message:"toggle play"});let i=ye(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,We.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.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,f,_,u;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,We.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),(f=this.adman)==null||f.onCompleted(void 0),(_=this.adman)==null||_.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&(0,Hi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var r1=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 Df=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 ou,{startTime:f,endTime:_}=p.parse(l);s.startTime=f,s.endTime=_}else if(l.trim()!==""){let p=new Of,{texts:f}=p.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},ou=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}},Of=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((f,_)=>{let u=s.indexOf(_,d);return f===-1||f>u?u:f},-1);if(p===-1){l.push(s.substring(d));break}l.push(s.substring(d,p)),d=p+1}return l}}),a=new ou;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}},s1=Df;var ru=require("@vkontakte/videoplayer-shared/es2018"),ua,yi,Hf=0,Ff=!1,a1="",l1=(t,e=0,i=0)=>t<e&&t<i,nu=(t,e=0,i=0)=>t>=e&&t<=i,f2=(t,e=0,i=0)=>t>e&&t>i,d1=(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:f})=>nu(t,p,f));let a=t>=Hf,s=t<Hf;if(Hf=t,s&&(Ff=!1),(0,ru.isNonNullable)(ua)&&nu(t,ua.startTime,ua.endTime)&&a1===e.value)return ua;if(!(0,ru.isNonNullable)(yi)&&(n!=null&&n.length)&&!Ff){yi=n.find(({startTime:p,endTime:f})=>nu(t,p,f)||a&&l1(t,p,f)),ua=void 0,!(0,ru.isNonNullable)(yi)&&n[n.length-1].endTime<t&&(Ff=!0);return}else{if(nu(t,yi==null?void 0:yi.startTime,yi==null?void 0:yi.endTime))return ua=yi,yi=void 0,a1=e.value,ua;(a&&f2(t,yi==null?void 0:yi.startTime,yi==null?void 0:yi.endTime)||s&&l1(t,yi==null?void 0:yi.startTime,yi==null?void 0:yi.endTime))&&(yi=void 0)}};var c1={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"},m2={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"},su=t=>{var e,i;return(i=(e=c1[t])!=null?e:c1[m2[t]])!=null?i:void 0};var u1=require("@vkontakte/videoplayer-shared/es2018"),iN=require("@vkontakte/videoplayer-statistics/es2018"),au=class{constructor(e,i=new u1.Subscription){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var xd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(xd||{});var Ur=t=>t!=null?t:0,nl=(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))}},rl=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 p1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:f,previewThumbsData:_,uiConfig:u,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:A,replayInteractive:P,stopPlayer:E,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,additionalButtons:U,additionalSettingsMenuItems:Y,additionalContextMenuItems:F,playPrevVideo:j,playNextVideo:X,looped:oe=!1,statistics:pe,saveRate:le,internalsExposure:Ve})=>{var Bo,cs,Do;let Me={...$,configName:[...(Bo=$.configName)!=null?Bo:[],"ui"],isAudioDisabled:s,live:{...(cs=$.live)!=null?cs:{},isLiveCatchUpMode:!!n}},J=u,Le=_t.Tracer.createRootTracer(J.features.saveTraceInfoToFile),Z=Le.createComponentTracer("Store"),B=w||new ni.Player(Me,Le);Ve==null||Ve.expose({corePlayer:B});let Re=new _t.Logger,ne=new iu(Re,{loadTimeout:J.ads.loadTimeout,initTimeout:J.ads.initTimeout,runtimeTimeout:J.ads.runtimeTimeout,useAdmanFromNPM:J.ads.useAdmanFromNPM,volumeMultiplier:J.ads.volumeMultiplier,isVsidOriginal:J.ads.isVsidOriginal}),ke=ea.getInstance(),Ne=p==null?void 0:p.pictureInPictureApi,fe=p==null?void 0:p.annotationsApi,D=Re.createComponentLog("Store"),de,Ee,Ye={},dt=new Rc,Ae=pe?Zt(pe.oneStat.vsid$):nr(void 0),$e=ae(ys()),Pe=ae(!1),rt=(Do=Ne==null?void 0:Ne.info.isActive$)!=null?Do:new _t.ValueSubject(!1),vt=ae(0),lt=ae([]),Et=(0,_t.merge)(B.events.fatalError$,B.events.managedError$).subscribe(c=>lt.update(x=>[...x,c])),st=nr(!1,c=>{let x=B.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),gt=async c=>{var ce;let x=Object.values(_t.InterfaceLanguage).includes(c);if(J.downloadVKLanguages&&(x&&J.updateBuiltinLanguages||!Kp(c))){let Qe;try{Qe=await(0,_t.loadVKLangPack)(c,Gg,Yg)}catch(Ct){(ce=pe==null?void 0:pe.oneStat)==null||ce.logError({errorType:"VKLangPack",fatal:!1}),ke==null||ke.report(Ct,{errorType:"VKLangPack",fatal:!1})}Qe&&(qp({language:c,pack:Qe,fallback:J.defaultLanguage}),qt.set(c))}Kp(c)&&qt.set(c)},qt=ae(t),Yt=ae(e);gt(t);let Be=(c,x)=>{let N=ye(qt);return Wp(N,c,x,J.defaultLanguage)},re=ae("thumb"),W=(()=>{let c=mi([st,re],([x,N])=>x?"crashed":N);return{...c,is:x=>ye(c)===x}})(),se=(()=>{let c=ae(new Set(y));return{...c,add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let ce=[...N];return new Set(Array.isArray(x)?ce.filter(Qe=>!x.includes(Qe)):ce.filter(Qe=>Qe!==x))})},includes:x=>{let N=ye(c);return Array.isArray(x)?x.every(ce=>N.has(ce)):N.has(x)}}})();Z.log("create store"),D({message:"create store"});let he=c=>{let x=c.container;x.append(B.experimental.element$.getValue()),Je=new MutationObserver(N=>{let{removedNodes:ce}=N[0];ce.length&&x.append(B.experimental.element$.getValue())}),Je.observe(x,{childList:!0})},Se=c=>{D({message:`init video, config: ${JSON.stringify(c)}`}),S?he(c):(_t.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,_t.now)()]}),B.initVideo(c)),Z.log("init video",{isInteractive:S}),c.subtitles&&B.setExternalTextTracks(c.subtitles),de=c},De=new _t.Subject,ut=c=>De.next(c),Qt=new _t.Subject,Ze=new _t.Subject,pt=new _t.Subject,Je=null,Pt={actionRewind$:Qt,actionSeek$:Ze,inPiP$:rt,inFullscreen$:new _t.Observable(c=>$e.subscribe(x=>c.next(x))),actionSetSubtitle$:pt,nextMovie$:De};if(pe){let{oneStat:c,statSubscription:x}=pe;S||x.add(c.attachTo(B)),x.add(c.attachToUi(Pt)),x.add(c.attachToAds(ne.events)),c.authorize(a).catch(N=>{D({message:`onestat auth error ${String(N)}`})})}if(ke){let c=new _t.Subscription,x=(N,ce)=>c.add(N.subscribe(ce));if(x(B.events.managedError$,N=>{ke.logIError(N)}),x(B.events.fatalError$,N=>{ke.logIError(N,!0)}),pe){let{oneStat:N}=pe;x(N.experimental.error$,ce=>{ke.logIError(ce)})}ke.sentrySubscription.add(c)}let ri=()=>{ni.clientChecker.device.isIOS&&Ee&&Ph(Ee).catch(c=>{D({message:`exitIosSafariFullscreen failed: ${c}`})})},Ge=new _t.Subscription().add(B.experimental.element$.subscribe(c=>{c&&(Ee=c,c.classList.add("player-media"),ia(Ne)&&(Ne.updateVideoElement(),Ne.registryEventHandlers()),S&&c.setAttribute("pip","false"))})).add(B.events.ended$.subscribe(()=>{var c;ri(),(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(Ne)&&await(Ne==null?void 0:Ne.revealPictureInPicture());let c=B.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=Ye.onStarted)==null||N.call(Ye,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),ne.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(()=>{ze.state.loadedMetadata$.set(!0)})).add(B.info.is3DVideo$.subscribe(c=>{ze.ui.is3DVideo.set(c)})).add(B.info.isEnded$.subscribe(c=>{S&&(c?(A!=null&&A.getValue()&&se.add(jl),se.add("PLAY_BUTTON")):se.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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)})),ot=new _t.Subscription,Jt=()=>{var Ct,Nt,zt;let{debugLog:c}=J,x,N="#9df7b7",ce="#efd169";if(c&&c!==!0){let{colors:Bt}=c;x=c.tag,N=(Ct=Bt==null?void 0:Bt[0])!=null?Ct:N,ce=(zt=(Nt=Bt==null?void 0:Bt[1])!=null?Nt:Bt==null?void 0:Bt[0])!=null?zt:ce}let Qe=x?`: ${x}`:"";ot.add(B.events.log$.subscribe(Bt=>{console.debug(`%c sdk${Qe} `,`background:${N};`,`sdk component: ${Bt.component}`,Bt.message)})).add(Re.log$.subscribe(Bt=>{console.debug(`%c ui${Qe} `,`background:${ce};`,`ui component: ${Bt.component}.`,Bt.message)}))},Ai=()=>{ot.unsubscribe()},ko=(c,x)=>{Z.log("start camera manual rotation",{mx:c,my:x}),B.startCameraManualRotation(c,x)},Ui=(c=!1)=>{Z.log("stop camera manual rotation",{immediate:c}),B.stopCameraManualRotation(c)},Eo=(c,x,N)=>{Z.log("move camera focus px",{xpx:c,ypx:x,dt:N}),B.moveCameraFocusPX(c,x,N)},Fo=()=>{B.holdCamera()},Vt=()=>{B.releaseCamera()},bt=nr(B.info.position$.getValue(),c=>{let x,N,ce=()=>{let Qe=B.info.playbackState$.getValue(),Ct=B.info.isLive$.getValue(),Nt=B.info.duration$.getValue(),zt=B.info.position$.getValue();if(Qe&&[ni.PlaybackState.PLAYING,ni.PlaybackState.PAUSED].includes(Qe)){let Bt=Ct?zt-Nt:B.getExactTime();Bt!==N&&c(Bt),N=Bt}x=requestAnimationFrame(ce)};return ce(),()=>cancelAnimationFrame(x)}),z=Zt(B.info.playbackState$),Gt=Zt(B.info.currentBuffer$),zi=Zt(B.info.isEnded$),Vi=Zt(B.info.isLive$),vi=J.features.playbackRate?Zt(B.info.canChangePlaybackSpeed$):nr(!1),ei=Zt(B.info.liveBufferTime$),ao=Zt(B.info.volume$),ho=Zt(B.info.muted$),qi=Nc(B.info.predefinedQualityLimitType$.pipe((0,_t.map)(c=>c===ni.PredefinedQualityLimits.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===ni.PredefinedQualityLimits.TRAFFIC_SAVING),Uo=Nc(B.info.predefinedQualityLimitType$.pipe((0,_t.map)(c=>c===ni.PredefinedQualityLimits.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===ni.PredefinedQualityLimits.HIGH_QUALITY),Ot=Zt(B.info.autoQualityLimitingAvailable$),di=Zt(B.info.availableQualities$),St=Zt(B.info.availableQualitiesFps$),Kt=Zt(B.info.chromecastState$),Ao=Zt(B.info.chromecastDeviceName$),Ki=Zt(B.info.currentFormat$),li=Zt(B.info.throughputEstimation$),_o=Zt(B.info.videoBitrate$),zo=Zt(B.info.intrinsicVideoSize$),si=Zt(B.info.duration$),xt=Zt(B.info.isAudioAvailable$),gi=null,Wi=B.info.isBuffering$,Ri=nr(Wi.getValue(),c=>{let x=Wi.subscribe(N=>{N&&gi===null?gi=window.setTimeout(()=>{c(Wi.getValue()),gi=null},J.loaderDelay):c(N)});return()=>{x.unsubscribe(),gi&&clearTimeout(gi)}}),bo=()=>{gi&&clearTimeout(gi),gi=null},xi=mi([si,Vi],([c,x])=>x?-c:c),$o=mi([z],([c])=>c===ni.PlaybackState.PLAYING),Cn=Zt(B.info.atLiveEdge$),sn=Zt(B.info.atLiveDurationEdge$),wi=Zt(B.info.position$),Tn=mi([wi,si],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),an=mi([Kt],([c])=>c===ni.ChromecastState.CONNECTED),Po=Zt(B.info.availableVideoStreams$),In=J.features.audioLanguages?Zt(B.info.availableAudioStreams$):nr([]),ar=Zt(B.info.currentVideoStream$),lr=Zt(B.info.currentAudioStream$),On=c=>{c.language&&zp(c.language),B.setVideoStream(c)},Hn=c=>{c.language&&zp(c.language),B.setAudioStream(c)},ln=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ce=>"isDefault"in ce&&ce.isDefault)),x)return x;let N=bh();return N&&(x=c.find(({language:ce})=>N===ce)),x!=null||(x=c.at(0)),x},dn=!1;Ge.add(B.info.availableAudioStreams$.subscribe(c=>{if(!dn&&c.length){let x=ln(c);x&&(B.setAudioStream(x),dn=!0)}}));let dr=!1;Ge.add(B.info.availableVideoStreams$.subscribe(c=>{if(!dr&&c.length){let x=ln(c);x&&(B.setVideoStream(x),dr=!0)}}));let it=ae(void 0),ji=Zt(B.info.isAutoQualityEnabled$,c=>c&&it.set(void 0)),cr=Zt(B.info.currentQuality$,()=>it.set(void 0)),Fn=mi([it,cr],([c,x])=>c!=null?c:x),cn=mi(Ki,c=>c!==ni.VideoFormat.MPEG),un=mi([di,St,ji,Fn,cn],([c,x,N,ce,Qe])=>{let Ct=[];Qe&&Ct.push({value:"auto",displayValue:Be("auto_quality_option"),selected:N});let Nt=c.filter(zt=>!(0,_t.isInvariantQuality)(zt));for(let zt of Nt){let Bt=x[zt];Ct.push({value:zt,displayValue:`${zt}${Bt?r1(Bt):""}`,selected:N?!1:zt===ce})}return Ct}),Mo=Zt(B.info.currentPlaybackRate$),yo=mi([Mo,Cn,sn],([c,x,N])=>{let ce=N||S?1:J.controls.playbackRateMin,Qe=x?1:J.controls.playbackRateMax,Ct=J.controls.playbackRateStep,Nt=[];for(let zt=ce;zt<=Qe;zt+=Ct)Nt.push({value:zt,displayValue:zt===1?Be("playback_rate_1"):Be("playback_rate",{multiplier:zt.toString(10)}),selected:c===zt});return Nt}),Qi={displayValue:Be("subtitles_off"),value:"off"},Zi=ae({...Qi}),Un=J.features.subtitles?Zt(B.info.availableTextTracks$):nr([]),zn=ch(),Pr=mi([Un,Zi],([c,x],N)=>{var Ct;let ce=[],Qe=c.find(({id:Nt})=>Nt===x.value);if(Qe!=null&&Qe.url){let[,Nt]=(Ct=zn.find(Qe.url))!=null?Ct:[];if(Nt){N(Nt);return}dt.download(Qe.url).then(zt=>{if(!zt||dt.isDestroyed())return;let Bt=new s1,us=Qe.language;if(us){let J1=!!Qe.isAuto,e0=Bt.parse(zt,us);ce.push({lang:us,subtitles:e0,isAuto:J1,id:Qe.id})}zn.add(Qe.url,ce),ye(Zi).value===x.value&&N(ce)}).catch(zt=>{var Bt;(Bt=pe==null?void 0:pe.oneStat)==null||Bt.logError({errorType:"Subtitles download",fatal:!1}),ke==null||ke.report(zt,{errorType:"Subtitles download",fatal:!1})})}N(ce)}),qn=mi([Mo,$o,Zi],([c,x,N],ce)=>{let Nt;if(B.info.isLive$.getValue()&&x&&N.value!==Qi.value){let Bt=()=>{let us=1e3/(3*c);Nt=setTimeout(Bt,us),ce(Date.now())};return Bt(),()=>clearTimeout(Nt)}}),lo=mi([Un,Zi],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:ce,isAuto:Qe,id:Ct}of c){let Nt=ce&&su(ce);ce&&Nt&&N.push({displayValue:Qe?Be("subtitles_auto",{language:Nt}):Nt,value:Ct,selected:(x==null?void 0:x.value)===Ct,isAuto:Qe})}return N.length?(N.unshift({...Qi,selected:(x==null?void 0:x.value)===Qi.value}),N):[]}),xo={available:[],prev:[]},pn=()=>{var x,N;let c=B.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:Ee==null?void 0:Ee.currentTime)!=null?N:0},kn=mi([bt,Zi,Pr,qn],([c,x,N,ce])=>{var Ct;let Qe=B.info.isLive$.getValue();if(Qe&&xo.prev!==N){let Nt=N.find(({id:Bt})=>Bt===x.value),zt=xo.prev.find(({id:Bt})=>Bt===x.value);if(Nt){let Bt={...Nt,subtitles:[...(Ct=zt==null?void 0:zt.subtitles)!=null?Ct:[],...Nt.subtitles]};xo.available=[Bt],xo.prev=N}}if(x&&x.value!==Qi.value){let Nt=Qe?pn():c,zt=Qe?xo.available:N;return d1(Nt,x,zt,Qe)}}),Lo=mi([kn],([c])=>c!=null&&c.texts?c.texts:[]),Gi=ae(!0),qo=mi([Gt,xi,wi,ei],([c,x,N,ce])=>{var zt;let Qe=(zt=c==null?void 0:c.end)!=null?zt:0;if(!ce)return Qe/x;let Nt=-N+ce-x;return(Qe-Nt)/x}),wo=Zt(B.info.availableSources$),ur=mi([wo],([c])=>Object.keys((c==null?void 0:c[ni.VideoFormat.MPEG])||{}).length>0),fn=()=>{var N,ce,Qe;let c=Object.keys(((ce=(N=B.info.availableSources$)==null?void 0:N.getValue())==null?void 0:ce[ni.VideoFormat.MPEG])||{}),x=(0,_t.getHighestQuality)(c)||_t.VideoQuality.Q_144P;return(Qe=de.sources[ni.VideoFormat.MPEG])==null?void 0:Qe[x]},Kn=()=>{var x;let c=fn();if(c)Z.log("download video",{url:c}),ah(c,((x=de==null?void 0:de.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";Z.log("download video",{message:N}),D({message:N})}},Wn=()=>{D({message:"toggle muted"});let c=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!c?jn(Yn()):oi(!c)},Qn=()=>{var c;if(ze.ui.settingsMenu.visible$.set(!1),!ye(ze.ui.settingsSubMenu.visible$)){let x=ye(ze.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ce=rl(x),Qe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ce,position:Qe,name:"settings"})}}Z.log("close settings menu")},pr=async(c,x=()=>Promise.resolve())=>{var Qe;ze.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),ze.ui.settingsMenu.visible$.set(!0),await x();let N=ye(ze.ui.settingsMenu.ref$),ce=xa();if((Qe=l==null?void 0:l.uiInfo)!=null&&Qe.onSettingsMenu&&N&&ce){let Nt=rl(N),zt=nl(N,ce);l.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:zt,name:"settings"})}Z.log("open settings menu",{wasOpenedByKeyboard:c})},Gn=(c,x=!1)=>{var Ct;ze.ui.settingsSubMenu.visible$.set(!1);let N=ye(ze.ui.settingsMenu.ref$),ce=xa(),Qe=ye(ze.ui.settingsMenu.visible$);if((Ct=l==null?void 0:l.uiInfo)!=null&&Ct.onSettingsMenu&&N&&ce)if(Qe&&!x){let zt=rl(N),Bt=nl(N,ce);l.uiInfo.onSettingsMenu({visible:!0,size:zt,position:Bt,name:"settings"})}else{let zt=rl(c),Bt={top:0,left:0,bottom:0,right:0},us=ye(ze.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:zt,position:Bt,name:us})}Z.log("close settings sub menu")},fr=(c,x)=>{var ce;ze.ui.settingsSubMenu.visible$.set(!0),ze.ui.settingsSubMenu.ref$.set(x),ze.ui.settingsSubMenu.name$.set(c);let N=xa();if((ce=l==null?void 0:l.uiInfo)!=null&&ce.onSettingsMenu&&x&&N){let Ct=rl(x),Nt=nl(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:Ct,position:Nt})}Z.log("open settings sub menu",{name:c})},Yn=()=>{var x;let c=Math.max(J.volumeMinRestore,(x=Bc())!=null?x:0);return c===0?J.volumeDefault:c},jn=c=>{let x=c===0?Yn():c,N=B.info.muted$.getValue();D({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),N&&c>0&&!s&&(N=!1,Fp(!1)),B.setVolume(c,N),ne.setVolume(c),Np(x)},oi=c=>{let x=B.info.volume$.getValue();if(D({message:`set muted, currentVolume: ${x}, mute: ${c}`}),B.setMuted(c),ne.setVolume(c?0:x),Fp(c),!c&&x===0){let N=Yn();B.setVolume(N),Np(N),ne.setVolume(N)}},mr=ae(!1),mn=c=>{Z.log("set looped",{isLooped:c}),mr.set(c),B.setLooped(c)};mn(oe);let Ko=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},nt=(c,x=!1)=>{var N;D({message:`set autoplayNextEnabled, value: ${c}`}),Z.log("set autoplay next enabled",{autoplayNextEnabled:c}),ze.ui.autoplayNextEnabled$.set(c),xh(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},Mt=c=>{D({message:`set timerNextVideoRunning, value: ${c}`}),Z.log("set timer next video running",{timerNextVideoRunning:c}),ze.ui.timerNextVideoRunning$.set(c)},Si=(c=!0)=>{var ce;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(ce=l==null?void 0:l.onPrevVideoClick)==null?void 0:ce.call(l)}catch(Qe){D({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Xi("prev")||j()},ti=(c=!0)=>{var ce;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(ce=l==null?void 0:l.onNextVideoClick)==null?void 0:ce.call(l)}catch(Qe){D({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Xi("next")||X()},Xi=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:ce}}=J;return N&&ce&&!x?(ze.ui.aboutToGoNextVideo.set(c),ze.ui.userActionsDisabled.set(!0),!0):!1},So=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},Co=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Wo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Qo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},et=()=>{B.prepare()},It=()=>{(0,_t.assertNonNullable)(ze);let c=ye(ze.ui.controls.disabledControls$),x=ye(ze.playerPhase),N={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(D({message:"toggle play"}),x==="ads"){N.action="play",Z.log("toggle adman play",N),ne.togglePlay();return}let ce=()=>{var Ct;D({message:"toggle play, call player.play"}),N.action="play",B.play(),(Ct=l==null?void 0:l.onPlay)==null||Ct.call(l)},Qe=()=>{var Ct;D({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(D({message:"toggle play, video ended, seek to 0"}),Qt.next(),Ze.next(zr.SeekAction.REWIND),S){P==null||P();return}B.seekTime(0),ce()}else B.info.playbackState$.getValue()!==ni.PlaybackState.PLAYING?ce():Qe();Z.log("toggle play",N)},ai=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{D({message:`set quality, quality: ${c}`}),Z.log("set quality",{quality:c}),B.setAutoQuality(c==="auto"),c!=="auto"?(J.features.qualityDetailsSubMenuEnabled?(Dc({type:"exact_quality",quality:c,videoId:i},N),Jl(),B.setPredefinedQualityLimits(ni.PredefinedQualityLimits.UNKNOWN)):Bp(i,c),it.set(c),B.setQuality(c)):J.features.qualityDetailsSubMenuEnabled?x==="default"&&(co("auto_quality",N),ye(qi)&&Pi(!1),ye(Uo)&&Ni(!1)):Jl()},Pi=(c,x="as-default")=>{D({message:`set trafficSavingEnabled, value: ${c}`}),Z.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?ni.PredefinedQualityLimits.TRAFFIC_SAVING:ni.PredefinedQualityLimits.UNKNOWN;J.features.qualityDetailsSubMenuEnabled?(Ci(N,x),Xl(!1)):(B.setPredefinedQualityLimits(N),Xl(c))},Ni=(c,x="as-default")=>{D({message:`set highQualityEnabled, value: ${c}`}),Z.log("set high quality enabled",{highQualityEnabled:c}),Ci(c?ni.PredefinedQualityLimits.HIGH_QUALITY:ni.PredefinedQualityLimits.UNKNOWN,x)},Ci=(c,x)=>{c!==ni.PredefinedQualityLimits.UNKNOWN&&(ye(Ot)&&!ye(ji)&&ai("auto",{appliesTo:x,changeReason:"limit-changed"}),co(c,x)),B.setPredefinedQualityLimits(c)},co=(c,x)=>{Dc({type:c,videoId:i},x),x==="as-default"&&Dc({type:c,videoId:i},"to-video")},Ti=c=>{Z.log("set playback rate",{playbackRate:c}),B.setPlaybackRate(c),J.features.saveRate&&le&&!B.info.isLive$.getValue()&&$h(c)},vn=()=>{let c=ye(yo),x=c.findIndex(({selected:ce})=>ce);if(x===c.length-1)return;let N=c[x+1];Ti(N.value)},vr=()=>{let c=ye(yo),x=c.findIndex(({selected:ce})=>ce);if(x===0)return;let N=c[x-1];Ti(N.value)},En=(c={...Qi,selected:!1})=>{Z.log("set subtitles",{...c}),c&&c.value!==Qi.value&&pt.next(c.isAuto?c.value+"_auto":c.value),Zi.set(c)},Mr=()=>{Z.log("toggle subtitles");let c=ye(lo),x=ye(Zi),N=ye(qt);if((x==null?void 0:x.value)===Qi.value){let ce=c.filter(Qe=>Qe.value!==Qi.value).find(Qe=>Qe.value===N)||c[1];En(ce)}else En()},uo=(c,x,N=!0)=>{var ce;if(D({message:`seek to time, time: ${c}`}),Z.log("seek to time",{time:c,action:x,forcePrecise:N}),Ze.next(x),B.info.isLive$.getValue()){let Qe=B.info.duration$.getValue(),Ct=Math.min(0,Qe+c);B.seekTime(Ct,N)}else{if(A!=null&&A.getValue())return;B.info.isEnded$.getValue()&&(D({message:"seek after ended, call callbacks.onPlay"}),(ce=l==null?void 0:l.onPlay)==null||ce.call(l)),B.seekTime(ac(c),N)}},Lr=c=>{D({message:`seek to episode start time: ${c}`}),Z.log("seek to episode start time",{time:c}),uo(c,zr.SeekAction.EPISODE,!0)},Zn=(c,x)=>{D({message:`seek to percent, percent: ${c}`}),Z.log("seek to percent",{percent:c,action:x});let N=ye(xi)*c;uo(N,x,!1)},qr=c=>{D({message:`seek external, time: ${c}`}),Z.log("seek external",{time:c}),Ze.next(zr.SeekAction.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-c:c)},gr=c=>{var ce,Qe;let x=(ce=c.max)!=null?ce:"none",N=(Qe=c.min)!=null?Qe:"none";D({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),Z.log("set auto quality limits",{max:x,min:N}),B.setAutoQualityLimits(c)},Vr=c=>{D({message:`seek external to episode start time: ${c}`}),Z.log("seek external to episode start time",{time:c}),uo(c,zr.SeekAction.EPISODE,!0)},hr=c=>{D({message:`set playback rate to: ${c}`}),Z.log("set playback rate external",{playbackRate:c}),B.setPlaybackRate(c)},Vo=ae(void 0),gn=ae(!1),Kr=c=>{D({message:`start scrubbing, progress: ${c}`}),Z.log("start scrubbing",{progress:c}),gn.set(!0),_r(c)},_r=c=>{Vo.set(c)},Xn,Xe,Ht=()=>{Vo.set(void 0),gn.set(!1)},_i=()=>{clearTimeout(Xe),clearTimeout(Xn),Xn=window.setTimeout(()=>{Ht()},500),Ee==null||Ee.removeEventListener("seeked",_i)},hn=c=>{D({message:`complete scrubbing, progress: ${c}`}),Z.log("complete scrubbing",{progress:c}),Zn(c,zr.SeekAction.SLIDER),ye(ze.ui.isMobile)&&ye(ze.state.currentFormat$)===ni.VideoFormat.HLS?(Ee==null||Ee.addEventListener("seeked",_i),Xe=window.setTimeout(()=>{_i()},300)):Ht()},_n=mi([bt,xi,Vo],([c,x,N],ce)=>{ce((0,_t.isNonNullable)(N)?N*x:c)}),An=ae(!1),Jn=()=>{An.set(!0)},Ce=()=>{An.set(!1)},ft=ae({width:0,height:0}),Rt=mi([ft],([{width:c}],x)=>{let N=Zh(c);x(N)}),Ut=ae(!1),Yi=U.filter(c=>lh(c)),ci=mi([Rt,Ut],([c,x])=>x?Yi.filter(N=>!N.hideOnMobile):Yi.filter(N=>{var ce;return!((ce=N.hideOnDesktopGridTypes)!=null&&ce.includes(c))})),jt=ae(U.filter(c=>dh(c))),Rr=mi([jt,Rt],([c,x])=>c.filter(N=>{var ce;return!((ce=N.hideOnDesktopGridTypes)!=null&&ce.includes(x))})),He=mi([Rr,ci],([c,x])=>[...J.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...J.features.additionalButtons?x.map((N,ce)=>{var Qe;return{id:ce,weight:ce,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(Qe=N.ariaLabel)!=null?Qe:N.tooltip,tooltipText:N.tooltip}}):[]]),kt=ae(Y),hi=mi([kt],([c])=>J.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Ro=(c,x)=>{let N=ye(jt).map(ce=>ce.id!==c?ce:{...ce,...x});jt.set(N)},Go=c=>{let x=ye(jt);if(x.some(N=>N.id===c.id)){D({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),jt.set(x)},Wr=c=>{let x=ye(jt);if(!x.some(N=>N.id===c)){D({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),jt.set(x)},Pn=c=>{Ze.next(zr.SeekAction.LIVE),D({message:"live switch to low latency "+c}),Z.log("live switch to low latency "+c),B.setLiveLowLatency(c)},Nr=(c,x)=>{let N=ye(kt).map(ce=>ce.id!==c?ce:{...ce,...x});kt.set(N)},gl=c=>{let x=ye(kt);if(x.some(N=>N.id===c.id)){D({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),kt.set(x)},Ms=c=>{let x=ye(kt);if(!x.some(N=>N.id===c)){D({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),kt.set(x)},br=ae(F),$a=mi([br],([c])=>J.features.additionalContextMenuItems?c:[]),ya=(c,x)=>{let N=ye(br).map(ce=>ce.id!==c?ce:{...ce,...x});br.set(N)},Ls=c=>{let x=ye(br);if(x.some(N=>N.id===c.id)){D({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),br.set(x)},$t=c=>{let x=ye(br);if(!x.some(N=>N.id===c)){D({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),br.set(x)},ht=mi([Ut,st],([c,x],N)=>{N(c&&x)}),Ji=()=>{Ze.next(zr.SeekAction.LIVE),D({message:"switch to active live"}),Z.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==ni.PlaybackState.PLAYING&&ze.actions.internal.togglePlay()},No=()=>{Z.log("skip adman"),ne.skip()},eo=(c=!0)=>{(0,_t.assertNonNullable)(ze),D({message:`switch from ads to video, callPlay: ${c}`}),Z.log("switch from ads to video",{callPlay:c}),re.set("video"),c&&B.play()},ii=()=>{(0,_t.assertNonNullable)(ze),D({message:"switch from video to ads"}),Z.log("switch from video to ads"),ze.actions.internal.pause(),ri(),re.set("ads")},Mi=c=>{(0,_t.assertNonNullable)(ze);let x=c?"LiveWaitingStart":"thumb";Z.log("set live waiting start",{state:c,playerPhase:x}),re.set(x)},ds=c=>{(0,_t.assertNonNullable)(ze);let x=c?"LiveWaitingRecover":"thumb";Z.log("set live waiting recover",{state:c,playerPhase:x}),re.set(x)},hl=c=>{(0,_t.assertNonNullable)(ze);let x=c?"LiveWaitingRecord":"thumb";Z.log("set live waiting record",{state:c,playerPhase:x}),re.set(x)},Jd=()=>((0,_t.assertNonNullable)(ze),Z.log("get debug text data"),rh(B,de,ze)),Mu=()=>((0,_t.assertNonNullable)(ze),JSON.stringify(Le.getFinishedSpans())),ec=()=>((0,_t.assertNonNullable)(ze),sh(B,de,ze)),xa=()=>Ee,tc=()=>{D({message:"toggle chromecast"}),Z.log("toggle chromecast"),B.toggleChromecast()},ic=c=>{var N;if((0,_t.assertNonNullable)(ze),B.info.isEnded$.getValue())return;let x=!c;if(ye(ze.playerPhase)==="ads"){D({message:`pause ads, internalCall: ${x}`}),Z.log("pause ads",{internalCall:x}),ne.pause();return}D({message:`pause video, internalCall: ${x}`}),Z.log("pause video",{internalCall:x}),x&&((N=l==null?void 0:l.onPause)==null||N.call(l)),B.pause()},_l=c=>{var N;(0,_t.assertNonNullable)(ze);let x=!c;if(ye(ze.playerPhase)==="ads"){D({message:`play ads, internalCall: ${x}`}),Z.log("play ads",{internalCall:x}),ne.play();return}D({message:`play video, internalCall: ${x}`}),Z.log("play video",{internalCall:x}),x&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),B.play()},Lu=c=>{(0,_t.assertNonNullable)(ze);let x=!c;if(ye(ze.playerPhase)==="ads"){D({message:"player cannot be stopped during ads via external method"});return}D({message:`player will be stopped, internalCall: ${x}`}),E==null||E()},bl=(c,x)=>{(0,_t.assertNonNullable)(ze),D({message:`first start, show ads: ${c}, internalCall: ${!x}`}),Z.log("first start",{showAds:c,external:x}),c?re.set("ads"):(re.set("video"),x?B.play():ze.actions.internal.togglePlay())},$l=()=>(D({message:"getting time codes"}),f),yl=()=>{let c=$l();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue();return c.find(N=>N.time>x)},oc=c=>{let x=c;x||(x=yl());let N=B.info.position$.getValue();Z.log("seek to next episode",{currentTime:N,...x}),x&&(D({message:"seek to next episode"}),uo(x.time,zr.SeekAction.EPISODE,!0))},xl=()=>{let c=$l();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue(),N=c.findIndex(Qe=>Qe.time>x),ce=N===-1?c.length-2:N-2;if(!(ce<0))return c[ce]},Vu=c=>{let x=c;x||(x=xl());let N=B.info.position$.getValue();Z.log("seek to prev episode",{currentTime:N,...x}),x&&(D({message:"seek to prev episode"}),uo(x.time,zr.SeekAction.EPISODE,!0))},nc=()=>(D({message:"getting preview thumbs data"}),Z.log("get preview thumbs data",{..._}),_),Ru=async()=>{let c=Ne==null?void 0:Ne.isActive(),x="none";Ne!=null&&Ne.isActive()?(x="remove",await(Ne==null?void 0:Ne.remove())):(x="request",await(Ne==null?void 0:Ne.request())),Z.log("toggle picture in picture",{isActive:c,action:x})},rc=(c=-90)=>{Z.log("rotate video",{alphaDiff:c}),vt.update(x=>x+c)},wa=ae([]);I==null||I.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[ce,Qe],subjects:Ct}=c[N];N===0&&ce!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ce/1e3,text:"",interactive:!0,completed:J.features.interactiveTimeOpenUri?!Ct.length||Ct.every(Nt=>Nt.isRemoved):!Ct.length}),Qe!==1/0&&x.push({time:Qe/1e3,text:"",interactive:!1,completed:!0})}wa.set(x)});let sc=ae(!1);A==null||A.subscribe(c=>{c&&ye(gn)&&Ht()});let ac=c=>{if(!S)return c;let x=ye(wa),N=ye(xi),Qe=ye(wi)/N,Ct=x.find(Nt=>Nt.interactive&&!Nt.completed&&Nt.time>Qe);return typeof(Ct==null?void 0:Ct.time)=="number"?Math.min(c,Ct.time-.05):c},Nu=()=>{ze.ui.episodes.panelOpened$.set(!1)},Ue=()=>{Z.log("destroy store"),clearTimeout(Xe),clearTimeout(Xn),Ge.unsubscribe(),ot.unsubscribe(),B.destroy(),ne.destroy(),pe==null||pe.destroy(),ke==null||ke.destroy(),Et.unsubscribe(),Je==null||Je.disconnect(),Je=null,dt.destroy()},ze={interfaceLanguage$:qt,isCyrillicRelatedInterface$:Yt,initVideo:Se,videoId:i,isClip:o,playerPhase:W,vsid:Ae,state:{positionExact$:bt,positionWithScrubbing$:_n,duration$:xi,playbackState$:z,isPlaying$:$o,isLoaderVisible:Ri,bufferedProgress$:qo,isLive$:Vi,canChangePlaybackSpeed$:vi,isActiveLive$:Cn,isOldestAvailableLive$:sn,isRewindableLive$:Tn,isEnded$:zi,muted$:ho,volume$:ao,trafficSavingEnabled$:qi,highQualityEnabled$:Uo,autoQualityLimitingAvailable$:Ot,availableVideoStreams$:Po,availableAudioStreams$:In,videoStream$:ar,audioStream$:lr,currentQuality$:Fn,isAutoQualityEnabled$:ji,availableQualities$:un,currentPlaybackRate$:Mo,availablePlaybackRates$:yo,currentSubtitle$:Zi,availableTextTracks$:Un,availableSubtitlesList$:lo,currentSubtitleCaptions$:Lo,isAutoSubtitleCaptionVisible$:Gi,chromecastState$:Kt,chromecastDeviceName$:Ao,chromecastConnected$:an,currentFormat$:Ki,throughputEstimation$:li,videoBitrate$:_o,videoSize$:zo,errorLog$:lt,crashed$:st,isAudioAvailable$:xt,isAudioDisabled:!!s,canDownload:J.features.download&&!!d,availableSources$:wo,hasMpegSources$:ur,isInteractive:S,showInteractiveGraph:J.features.interactiveGraph,showSeekToInteractive:J.features.seekToInteractive,showPlayPrevChapter:J.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:J.features.interactiveTimeIndicator&&!!ye(wa).length,interactiveEpisodes$:wa,isInteractiveTime$:A?Zt(A):ae(!1),isInteractiveExpectation$:sc,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,looped$:mr,loadedMetadata$:ae(!1),isAutoQualityAvailable$:cn},ui:{t:Be,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:U.length?U.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:se},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:$e,isFullscreenOpenedByKeyboard:Pe,rotateAlpha:vt,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:ft,isMobile:Ut,mobileNotReportControlHidden$:ht,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:gn,volumeChangingInProgress:An,is3DVideo:ae(!1),currentGridType$:Rt,additionalButtonsDeprecated$:ci,additionalDesktopControlPanelRightButtons$:He,additionalSettingsMenuItems$:hi,additionalContextMenuItems$:$a,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)},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:Ne,annotationsApi:fe},actions:{internal:{preload:et,firstStart:c=>bl(c,!1),play:()=>_l(!1),pause:()=>ic(!1),togglePlay:It,toggleMuted:Wn,openSettingsMenu:pr,closeSettingsMenu:Qn,openSettingsSubMenu:fr,closeSettingsSubMenu:Gn,setVolume:jn,startVolumeChanging:Jn,stopVolumeChanging:Ce,setVideoStream:On,setAudioStream:Hn,setQuality:ai,setTrafficSavingEnabled:Pi,setHighQualityEnabled:Ni,setPlaybackRate:Ti,incrementPlaybackRate:vn,decrementPlaybackRate:vr,setSubtitle:En,toggleSubtitle:Mr,togglePictureInPicture:Ru,startScrubbing:Kr,progressScrubbing:_r,completeScrubbing:hn,toggleChromecast:tc,switchToActiveLive:Ji,switchFromAdsToVideo:eo,switchFromVideoToAds:ii,skipAd:No,setLiveWaitingStart:Mi,setLiveWaitingRecover:ds,setLiveWaitingRecord:hl,getDebugTextData:Jd,getTraceTextData:Mu,getDebugPanelData:ec,getVideoElement:xa,seekTime:(c,x,N)=>uo(c,x,N),clearDelayedBufferingCheckTimeout:bo,seekEpisodeStartTime:Lr,seekToPercent:Zn,getNextEpisode:yl,seekToNextEpisode:oc,getPrevEpisode:xl,seekToPrevEpisode:Vu,startLogging:Jt,stopLogging:Ai,startCameraManualRotation:ko,stopCameraManualRotation:Ui,moveCameraFocusPX:Eo,holdCamera:Fo,releaseCamera:Vt,getVideoEpisodes:$l,getPreviewThumbsData:nc,downloadVideo:Kn,addLanguage:qp,setLanguage:gt,nextMovie:ut,videoRotate:rc,correctSeekTimeToInteractive:ac,replayInteractive:P,setLooped:mn,reportProblem:Ko,setAutoplayNextEnabled:nt,setTimerNextVideoRunning:Mt,prevVideoClick:Si,nextVideoClick:ti,nextVideoAnnouncementShow:So,nextVideoAnnouncementClick:Co,nextVideoAnnouncementAuto:Wo,nextVideoAnnouncementCancel:Qo},external:{firstStart:c=>bl(c,!0),play:()=>_l(!0),pause:()=>ic(!0),stop:()=>Lu(!0),seekTime:c=>qr(c),seekEpisodeStartTime:c=>Vr(c),setPlaybackRate:c=>hr(c),setAutoQualityLimits:c=>gr(c),setMuted:oi,setVolume:jn,returnFocusToEpisodes:Nu,updateAdditionalSettingsItem:Nr,addAdditionalSettingsItem:gl,removeAdditionalSettingsItem:Ms,updateAdditionalContextItem:ya,addAdditionalContextItem:Ls,removeAdditionalContextItem:$t,updateAdditionalButton:Ro,addAdditionalButton:Go,removeAdditionalButton:Wr,setLiveLowLatency:Pn}},callbacks:l,setUiCallbacks:c=>{Ye={...c}},getAdmanWrapper:()=>ne,getLogger:()=>Re,getPlayer:()=>B,destroy:Ue};return ze};function pa(t,e,i,o){var _;let n=["interactiveTimeIndicator"],a=(_=e[i])==null?void 0:_.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:f}=nl(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?d:0,bottom:s?p:0,isDisplayed:s}}var lu=(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 du=async(t,e,i)=>{await mo(),e&&i&&(i.focus(),t.set(!1))};var v2=be('<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 Uf(t,e){let i=Ie(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}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),b(t,o)}function zf(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(l,"$contextMenuVisible$",i),a=v(e,"disabled",3,!1),s=v(e,"ariaLabel",3,""),d=we(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,$=ee(void 0);Ke(()=>{r($)&&yt(()=>{u.set(r($))})});let w=A=>{let P=Ss(A),E=Fh(r($));_.set(E),p.set(P),l.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},I=m(()=>n()?"opened":"");Lt(t,{get className(){return r(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return r($)},set ref(A){O($,me(A))},children:(A,P)=>{Uf(A,{})},$$slots:{default:!0}}),K(),o()}var g2=t=>{t.stopPropagation()},h2=L("<div><!> <div></div> <div></div></div>"),_2={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;}
|
|
230
230
|
|
|
231
231
|
@media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
|
|
232
232
|
}
|
|
@@ -251,8 +251,8 @@ Try switching the\xA0quality to\xA0Auto.`},Sh=b_;var ns=new Map;ns.set(qa.Interf
|
|
|
251
251
|
opacity: 0;
|
|
252
252
|
}
|
|
253
253
|
}.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);
|
|
254
|
-
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 yd(t,e){var D;q(e,!0),Q(t,g2);let[i,o]=Ue(),n=()=>C(S,"$isMobile",i),a=()=>C(E,"$areControlsVisible",i),s=()=>C(V,"$currentGridType$",i),d=()=>C(A,"$isInteractiveTime$",i),l=()=>C(y,"$interactiveControlsOpacity$",i),p=()=>C(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(I,"$isFullscreen",i),_=v(e,"ref",15,void 0),u=ee(void 0),$=Te(),w=uo(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,I=$.ui.isFullscreen,A=$.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,E=$.ui.controlsVisible,T=(D=$.callbacks)==null?void 0:D.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,z=m(()=>!n()&&a()),Y=m(()=>ks(s(),"s")),U=m(()=>!d()||!!l()||r(z)),Z=ee(!1);je(()=>{O(Z,ge(r(U)))});let X=()=>{O(Z,!0)},oe=()=>{var de;ce(),(de=r(u))==null||de.addEventListener("animationiteration",X,{once:!0})},ce=()=>{var de;O(Z,!1),(de=r(u))==null||de.removeEventListener("animationiteration",X)},le=de=>{P.set(de)},Ve=m(()=>p()&&!r(U));je(()=>{p()?oe():ce()});let Me=()=>{r(U)||(P.set(!0),T==null||T())};$n(()=>{P.clearTimeout(),ce()});let J=()=>{P.set(!1)},Le=H("tooltip_interactive_interaction_time_indicator");var j=v2();let N;j.__mousemove=[m2],j.__click=Me;var Re=h(j);Po(Re,{tooltipContent:Le,get tooltipActive(){return r(Ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return _()},set ref(de){_(de)},children:(de,Ee)=>{ud(de,{completed:!0})},$$slots:{default:!0}});var ne=M(Re,2);let ke;ct(ne,de=>_(de),()=>_());var Be=M(ne,2);let ue;ct(Be,de=>O(u,de),()=>r(u)),g(j),k((de,Ee,Qe)=>{N=te(j,1,"interactive-episode-icon-animated svelte-od3veb",null,N,de),ke=te(ne,1,"ref-block svelte-od3veb",null,ke,Ee),ue=te(Be,1,"pulse svelte-od3veb",null,ue,Qe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(U),"icon-small":r(Y)}),()=>({hidden:r(U)}),()=>({paused:r(Z)})]),Et("mouseleave",j,J),b(t,j),K(),o()}st(["mousemove","click"]);function ru(t,e){q(e,!0);let i=v(e,"tooltipEnabled",3,!0),o=v(e,"disabled",3,!1),n=v(e,"className",3,void 0),a=v(e,"ref",15);Po(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=qe();let p=m(()=>e.buttonComponent);var f=me(l);Vi(f,()=>r(p),(_,u)=>{u(_,os(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(s,l)},$$slots:{default:!0}}),K()}var rs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var _2=be('<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 Df(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=_2();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}function Of(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),a=m(()=>i()?"prev-icon":"next-icon");Df(t,{get style(){return r(n)},get"data-testid"(){return r(a)}})}var b2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),$2=L("<!> <!>",1),y2={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 ua(t,e){q(e,!0),Q(t,y2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=Te().ui.t,d=m(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=m(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),p=m(()=>`btn-${o()?"m":"d"}--${e.type}`);At(t,{get className(){return r(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},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(f){i(f)},children:(f,_)=>{var u=$2(),$=me(u);{var w=I=>{var A=b2();b(I,A)};R($,I=>{o()&&I(w)})}var y=M($,2);let S=m(()=>e.type==="prev");Of(y,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(f,u)},$$slots:{default:!0}}),K()}var x2=be('<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 xd(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=x2();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),b(t,o)}var c1=require("@vkontakte/videoplayer-shared/es2018");var w2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),S2=L("<!> <div><!></div>",1),C2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function nl(t,e){q(e,!0),Q(t,C2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),a=v(e,"className",3,""),s=v(e,"click",3,c1.noop),d=H("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);At(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Ur.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var _=S2(),u=me(_);{var $=I=>{var A=w2();b(I,A)};R(u,I=>{o()&&I($)})}var w=M(u,2);let y;var S=h(w);xd(S,{}),g(w),k(I=>y=te(w,1,"svelte-1ot3duq",null,y,I),[()=>({mobile:o()})]),b(p,_)},$$slots:{default:!0}}),K()}var T2=be('<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 ss(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=T2(),d=h(s);g(s),k(()=>{Oe(s,"width",i()),Oe(s,"height",o()),Oe(s,"viewBox",n()),Oe(d,"fill",a())}),b(t,s)}var I2=be('<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 pa(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=I2(),d=h(s);g(s),k(()=>{Oe(s,"width",i()),Oe(s,"height",o()),Oe(s,"viewBox",n()),Oe(d,"fill",a())}),b(t,s)}var u1=require("@vkontakte/videoplayer-shared/es2018");var k2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),E2=L("<!> <div><!></div>",1),A2={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 rl(t,e){q(e,!0),Q(t,A2);let[i,o]=Ue(),n=()=>C(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=uo(),s=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),l=v(e,"isPlaying",3,!1),p=v(e,"disabled",3,!1),f=v(e,"className",3,""),_=v(e,"click",3,u1.noop),$=Te().ui.t,{toggle:w}=a,y=m(()=>w),S=m(()=>n()!==null),I=m(()=>r(S)?n():l()),A=m(()=>r(I)?$("tooltip_pause"):$("tooltip_play")),P=m(()=>r(I)?pa:ss),E=m(()=>`${d()?"btn-m--play":""} ${f()}`),T=m(()=>r(S)?r(y):_());At(t,{get className(){return r(E)},testId:"btn-play",get click(){return r(T)},get disabled(){return p()},get ariaLabel(){return r(A)},get ariaKeyShortCut(){return Ur.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,z)=>{var Y=E2();let U=m(()=>r(P));var Z=me(Y);{var X=Ve=>{var Me=k2();b(Ve,Me)};R(Z,Ve=>{d()&&Ve(X)})}var oe=M(Z,2);let ce;var le=h(oe);Vi(le,()=>r(U),(Ve,Me)=>{Me(Ve,{})}),g(oe),k(Ve=>ce=te(oe,1,"svelte-1ot3duq",null,ce,Ve),[()=>({mobile:d()})]),b(V,Y)},$$slots:{default:!0}}),K(),o()}var P2=be('<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 Hf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=P2();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),b(t,o)}function wd(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=H("tooltip_interactive_go_back"),s=m(()=>o()?"hidden":"");At(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)=>{Hf(d,{})},$$slots:{default:!0}}),K()}var M2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),L2={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 Sd(t,e){q(e,!0),Q(t,L2);let[i,o]=Ue(),n=()=>C(d,"$autoplayNextEnabled$",i),a=v(e,"ref",15,void 0),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;At(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,_)=>{var u=M2(),$=h(u);let w;var y=h($);{var S=A=>{ss(A,{width:"14",height:"14",fill:"#000"})},I=A=>{pa(A,{width:"14",height:"14",fill:"#000"})};R(y,A=>{n()?A(S):A(I,!1)})}g($),g(u),k(A=>w=te($,1,"toggler svelte-et3q1q",null,w,A),[()=>({enabled:n()})]),b(f,u)},$$slots:{default:!0}}),K(),o()}var V2=be('<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 Ff(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=V2();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i})),b(t,o)}function Cd(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=H("tooltip_interactive_seek"),s=m(()=>o()?"hidden":"");At(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)=>{Ff(d,{})},$$slots:{default:!0}}),K()}var R2=be('<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 Uf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=R2();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var B2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function zf(t,e){Q(t,B2);let i=v(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Uf(t,{get"data-testid"(){return r(o)}})}function Td(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=v(e,"graphIsOpened",3,!1),d=Te().ui.t,l=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=m(()=>o()?"hidden":"");At(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(f){i(f)},children:(f,_)=>{let u=m(()=>!!a());zf(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),K()}var qf=require("@vkontakte/videoplayer-core/es2018");function Id(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C(p,"$playbackState$",i),a=v(e,"isMobile",3,!1),s=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),l=Te(),p=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,u=m(()=>()=>{if(!s()){f();return}n()===qf.PlaybackState.PAUSED&&_()}),$=m(()=>a()?"":"btn--live btn-full-opacity"),w=m(()=>s()?"btn-live":"btn-live-offset"),y=m(()=>s()&&n()===qf.PlaybackState.PLAYING);At(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:(S,I)=>{ed(S,{get isActive(){return s()}})},$$slots:{default:!0}}),K(),o()}var Kf=require("@vkontakte/videoplayer-shared/es2018");var N2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),D2=L('<img class="icon" aria-hidden="true">');function fa(t,e){"use strict";let i=ee(!1),o=()=>{O(i,!0)};var n=qe(),a=me(n);{var s=l=>{var p=N2();b(l,p)},d=l=>{var p=D2();k(()=>Oe(p,"src",e.icon)),Et("error",p,o),qs(p),b(l,p)};R(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function Wf(t,e){q(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Kf.noop),n=v(e,"ref",15),a=m(()=>o()===Kf.noop),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");Po(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 f=m(()=>{var _;return(_=e.testId)!=null?_:e.id});At(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(f)},children:(_,u)=>{fa(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),K()}var p1=t=>!!t.buttonComponent;var as={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var F2=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),U2={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 Gf(t,e){var $a,Ps;q(e,!0),Q(t,U2);let[i,o]=Ue(),n=()=>C(di,"$disabledControls$",i),a=()=>C(zt,"$adPlaybackState",i),s=()=>C(Zt,"$playbackState$",i),d=()=>C(si,"$currentSubtitle$",i),l=()=>C(ei,"$isEnded$",i),p=()=>C(Gn,"$currentGridType$",i),f=()=>C(Ri,"$isLive$",i),_=()=>C(Ki,"$chromecastState$",i),u=()=>C(Lo,"$isPictureInPictureActive",i),$=()=>C(Vo,"$pictureInPictureType$",i),w=()=>C(Bi,"$availableSubtitlesList$",i),y=()=>C(ji,"$contextMenuOpenedByKeyboard$",i),S=()=>C(fo,"$showContextMenuBtn$",i),I=()=>C(jt,"$playerSize",i),A=()=>C(qi,"$isRewindableLive$",i),P=()=>C(Mo,"$isActiveLive$",i),E=()=>C(an,"$graphIsOpened$",i),T=()=>C(po,"$contextMenuVisible$",i),V=()=>C(mo,"$isFullscreen",i),z=()=>C(zo,"$autoplayNextEnabled",i),Y=()=>C(r(Wo),"$prevButton",i),U=()=>C(r(vr),"$replayButton",i),Z=()=>C(r(Vr),"$playButton",i),X=()=>C(r(it),"$nextButton",i),oe=()=>C(r(pt),"$playPrevChapterButton",i),ce=()=>C(r(Si),"$seekToInteractiveButton",i),le=()=>C(r(eo),"$interactiveGraphButton",i),Ve=()=>C(r(to),"$liveButton",i),Me=()=>C(r(Io),"$time",i),J=()=>C(r(No),"$episodes",i),Le=()=>C(r(Do),"$vkLogo",i),j=()=>C(r(ko),"$volume",i),N=()=>C(r(Ze),"$subtitles",i),Re=()=>C(r(Tt),"$settings",i),ne=()=>C(r(Ei),"$context",i),ke=()=>C(r(Ni),"$fullscreen",i),Be=()=>C(r(Di),"$chromecast",i),ue=()=>C(Co,"$additionalDesktopControlPanelRightButtons$",i),D=()=>C(xn,"$isInteractiveTime$",i),de=()=>C(Pt,"$settingsMenuVisible",i),Ee=()=>C(gr,"$settingButtonRef$",i),Qe=()=>C(Uo,"$startedByKeyboard$",i),at=()=>C(Ke,"$isAudioAvailable$",i),Ae=()=>C(re,"$fakeIsPlaying$",i),$e=()=>C(Yn,"$seekToInteractiveDisabledTooltip$",i),Pe=()=>C(wt,"$adPosition",i),nt=()=>C(It,"$position$",i),mt=()=>C(ci,"$adDuration",i),et=()=>C(Xe,"$duration$",i),Bt=v(e,"playerControlsWrapperRef",15,void 0),rt=v(e,"playerControlsRef",15,void 0),vt=v(e,"isAds",3,!1),Ft=v(e,"logoTargetUrl",3,""),qt=v(e,"isOneVideoPlaylist",3,!1),Ne=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:re}=uo(),W=Te(),se=uo(),ve=Kt(),Se=W.actions.internal.toggleMuted,De=W.actions.internal.togglePlay,ut=W.actions.internal.pause,Ut=W.actions.internal.toggleSubtitle,Ge=($a=W.callbacks)==null?void 0:$a.onAudioDoesNotExistHint,lt=(Ps=W.callbacks)==null?void 0:Ps.onAudioDisabledHint,Xe=W.state.duration$,It=W.state.positionWithScrubbing$,Zt=W.state.playbackState$,Ke=W.state.isAudioAvailable$,dt=W.state.isAudioDisabled,ei=W.state.isEnded$,Ri=W.state.isLive$,Mo=W.state.isActiveLive$,qi=W.state.isRewindableLive$,{isActive$:Lo,type$:Vo}=se.pictureInPicture$,Pt=W.ui.settingsMenu.visible$,_t=W.ui.settingsMenu.openedByBtnKeyboard$,F=W.ui.controls,Wt=W.actions.internal.getVideoEpisodes(),Ki=W.state.chromecastState$,Bi=W.state.availableSubtitlesList$,si=W.state.currentSubtitle$,di=F.disabledControls$,po=W.ui.contextMenu.visible$,fo=W.ui.contextMenu.showContextMenuBtn$,ji=W.ui.contextMenu.openedByBtnKeyboard$,Uo=W.ui.startedByKeyboard$,Nt=W.ui.t,ci=W.ads.duration,wt=W.ads.position,zt=W.ads.playbackState,mo=W.ui.isFullscreen,jt=W.ui.playerSize,Gn=W.ui.currentGridType$,Co=W.ui.additionalDesktopControlPanelRightButtons$,zo=W.ui.autoplayNextEnabled$,ni=W.actions.internal.getVideoElement,yt=W.actions.internal.replayInteractive,ui=W.actions.internal.prevVideoClick,vo=W.actions.internal.nextVideoClick,gi=W.state.isInteractive,xn=W.state.isInteractiveTime$,xi=W.state.showInteractiveGraph,To=W.state.showSeekToInteractive,qo=W.state.showPlayPrevChapter,wn=W.state.showInteractiveTimeIndicator,wi=W.state.playPrevChapterDisabledTooltip,Yn=se.seekToInteractiveDisabledTooltip$,an=se.graphIsOpened$,Ro=ve.features.interactiveResponsiveUi,ln=m(()=>n().has("EPISODE_BUTTON")),Pr=m(()=>n().has("GRAPH_BUTTON")),ur=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),jn=m(()=>n().has("PLAY_BUTTON")),Sn=m(()=>n().has("REPLAY_BUTTON")),dn=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Cn=()=>W.actions.internal.toggleChromecast(),go=m(()=>vt()?a()==="playing":s()===ma.PlaybackState.PLAYING),Je=m(()=>d().value!=="off"),cn=m(()=>l()&&!vt()||gi),Zn=m(()=>Ro?r(cn)&&Fi(p(),"m"):r(cn)),Xn=m(()=>!l()||gi||vt()),Tn=m(()=>Fi(p(),"m")),un=m(()=>e.showNextPrevButtons&&Fi(p(),"m")&&!vt()&&e.nextButtonActive),pn=m(()=>e.showNextPrevButtons&&Fi(p(),"m")&&!vt()&&e.prevButtonActive),Ko=m(()=>!vt()&&!!f()),Wi=m(()=>_()!==ma.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&Fi(p(),"m")&&!gi),Qi=m(()=>e.showAutoplayNext&&!qt()&&Fi(p(),"s")),Jn=m(()=>w().length>0&&Fi(p(),"m")),In=m(()=>y()||S()),er=m(()=>Fi(p(),"s")&&!vt()),pr=m(()=>!e.logoHidden&&!vt()),Zi=m(()=>ve.features.fullscreen&&(e.logoHidden||Fi(p(),Ro?"xs":"s"))&&!(u()&&$()===1)&&(gi?Ne():!0)),Xi=m(()=>(!f()||vt())&&!(ve.features.interactiveHideTime&&gi)),kn=m(()=>I().width>100),En=m(()=>xi&&Fi(p(),"m")),ho=m(()=>Ro?To&&Fi(p(),"s"):To),Ji=m(()=>Ro?qo&&Fi(p(),"s"):qo),An=m(()=>!vt()&&!f()&&!!(Wt!=null&&Wt.length)&&r(Tn)&&!r(ln)),Bo=m(()=>!A()||!!P()),Mr=m(()=>E()?Nt("tooltip_interactive_graph_on"):Nt("tooltip_interactive_graph_off")),Pn=m(()=>T()?Nt("aria_label_context_menu_close"):Nt("aria_label_context_menu_open")),fr=(bt,gt)=>bt?gt&>===ma.PlaybackState.PAUSED?Nt("tooltip_play"):"":Nt("tooltip_live"),Mn=m(()=>fr(r(Bo),s())),Ln=m(()=>ve.logoType==="vk_video"?Nt("tooltip_vk_video_logo"):Nt("tooltip_vk_logo")),Lr=m(()=>r(Je)?Nt("tooltip_subtitles_on"):Nt("tooltip_subtitles_off")),tr=m(()=>V()?Nt("tooltip_fullscreen_on"):Nt("tooltip_fullscreen_off")),mr=m(()=>_()===ma.ChromecastState.CONNECTED?Nt("tooltip_chromecast_on"):Nt("tooltip_chromecast_off")),ir=m(()=>z()?Nt("tooltip_autoplay_on"):Nt("tooltip_autoplay_off")),Vn=ee(0),ti=ge({}),Wo=m(()=>F.prevButton),vr=m(()=>F.replayButton),Vr=m(()=>F.playButton),it=m(()=>F.nextButton),pt=m(()=>F.playPrevChapterButton),Si=m(()=>F.seekToInteractiveButton),eo=m(()=>F.interactiveGraphButton),to=m(()=>F.liveButton),Io=m(()=>F.time),No=m(()=>F.episodes),Do=m(()=>F.vkLogo),ko=m(()=>F.volume),Ze=m(()=>F.subtitles),Tt=m(()=>F.settings),Ei=m(()=>F.context),Ni=m(()=>F.fullscreen),Di=m(()=>F.chromecast),hi=m(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:U()?U().right-U().left:0,playButton:Z()?Z().right-Z().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:oe()?oe().right-oe().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Ve()?Ve().right-Ve().left:0,time:Me()?Me().right-Me().left:0,episodes:J()?J().right-J().left:0,vkLogo:Le()?Le().right-Le().left:0,volume:j()?j().right-j().left:0,subtitles:N()?N().right-N().left:0,settings:Re()?Re().right-Re().left:0,context:ne()?ne().right-ne().left:0,fullscreen:ke()?ke().right-ke().left:0,chromecast:Be()?Be().right-Be().left:0,additionalButtons:ue().length?ue().reduce(bt=>[...bt,40],[]):[]})),Gi=ee(0);je(()=>{(!r(Gi)||r(Gi)<r(hi).time)&&$t(()=>O(Gi,ge(r(hi).time)))});let io=ee(!1);je(()=>{let bt=0;r(An)&&(Fi(p(),"xl")?bt=r(hi).time:bt=60);let gt=r(hi).prevButton+r(hi).playButton+r(hi).nextButton+r(hi).seekToInteractiveButton+r(hi).interactiveGraphButton+r(hi).liveButton+r(Gi)+bt;O(io,ge(r(Xi)&&r(Vn)>=gt))});let Rn=m(()=>r(io)&&Fi(p(),"m")),Bn=(0,f1.debounceFn)(ou,260);je(()=>{I(),D(),Bn(ni(),F,ti,e.showControls)});let gr=ae();je(()=>{de(),Ee()&&$t(()=>Ya(Ee(),de(),_t))});let Qo;je(()=>{Qe(),$t(()=>nu(Uo,Qe(),Qo))});function Nn(){Cs({isAudioDisabled:dt,audioDisabledHintCallback:lt,isAudioAvailable:at(),audioIsNotExistHintCallback:Ge})&&Se()}let hr=gi?yt:De,_r=m(()=>Ae()!==null),Rr=m(()=>r(_r)?Ae():r(go)),br=m(()=>r(Rr)?Nt("tooltip_pause"):Nt("tooltip_play")),fn=Nt("tooltip_episodes"),mn=m(()=>{var bt,gt,oo,Oo;return r(pn)?{id:"prevButton",type:"desktop-control-panel-left",weight:rs.prevButton,buttonComponent:ua,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:ui.bind(null,!0)},tooltipEnabled:!((gt=(bt=W.callbacks)==null?void 0:bt.uiInfo)!=null&>.onPrevButtonMouseEnter)&&!((Oo=(oo=W.callbacks)==null?void 0:oo.uiInfo)!=null&&Oo.onPrevButtonMouseLeave),mouseEnter:()=>{var no,ri,Mi;(Mi=(ri=(no=W.callbacks)==null?void 0:no.uiInfo)==null?void 0:ri.onPrevButtonMouseEnter)==null||Mi.call(ri,ca(ni(),ti,"prevButton",e.showControls))},mouseLeave:()=>{var no,ri,Mi;(Mi=(ri=(no=W.callbacks)==null?void 0:no.uiInfo)==null?void 0:ri.onPrevButtonMouseLeave)==null||Mi.call(ri,ca(ni(),ti,"prevButton",e.showControls))},tooltipText:Nt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),or=m(()=>r(Zn)?{id:"replayButton",type:"desktop-control-panel-left",weight:rs.replayButton,buttonComponent:nl,buttonComponentProps:{disabled:r(Sn),click:hr},tooltipText:Nt("tooltip_restart"),disabled:r(Sn)}:void 0),Br=m(()=>r(Xn)?{id:"playButton",type:"desktop-control-panel-left",weight:rs.playButton,buttonComponent:rl,buttonComponentProps:{disabled:r(jn),isPlaying:r(go),click:De},tooltipText:r(br),disabled:r(jn)}:void 0),_o=m(()=>{var bt,gt,oo,Oo;return r(un)?{id:"nextButton",type:"desktop-control-panel-left",weight:rs.nextButton,buttonComponent:ua,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:vo.bind(null,!0)},tooltipEnabled:!((gt=(bt=W.callbacks)==null?void 0:bt.uiInfo)!=null&>.onNextButtonMouseEnter)&&!((Oo=(oo=W.callbacks)==null?void 0:oo.uiInfo)!=null&&Oo.onNextButtonMouseLeave),mouseEnter:()=>{var no,ri,Mi;(Mi=(ri=(no=W.callbacks)==null?void 0:no.uiInfo)==null?void 0:ri.onNextButtonMouseEnter)==null||Mi.call(ri,ca(ni(),ti,"nextButton",e.showControls))},mouseLeave:()=>{var no,ri,Mi;(Mi=(ri=(no=W.callbacks)==null?void 0:no.uiInfo)==null?void 0:ri.onNextButtonMouseLeave)==null||Mi.call(ri,ca(ni(),ti,"nextButton",e.showControls))},tooltipText:Nt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Dn=m(()=>gi&&r(Ji)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:rs.playPrevChapterButton,buttonComponent:wd,buttonComponentProps:{disabled:r(dn),click:e.playPrevChapter},tooltipText:Nt("tooltip_interactive_go_back"),disabledTooltipContent:Nt(wi),disabled:r(dn)}:void 0),$r=m(()=>gi&&r(ho)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:rs.seekToInteractiveButton,buttonComponent:Cd,buttonComponentProps:{disabled:r(ur),click:e.seekToInteractive},tooltipText:Nt("tooltip_interactive_seek"),disabled:r(ur),disabledTooltipContent:Nt($e())}:void 0),tt=m(()=>gi&&r(En)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:rs.interactiveGraphButton,buttonComponent:Td,buttonComponentProps:{disabled:r(Pr),click:an.toggle,graphIsOpened:E()},tooltipText:r(Mr)}:void 0),Ot=m(()=>r(Ko)?{id:"liveButton",type:"desktop-control-panel-left",weight:rs.liveButton,buttonComponent:Id,buttonComponentProps:{isLiveActive:r(Bo),ariaLabel:r(Mn)},tooltipText:r(Mn),disabled:r(Bo)&&s()===ma.PlaybackState.PLAYING}:void 0),ye=m(()=>[r(mn),r(or),r(Br),r(_o),r(Dn),r($r),r(tt),r(Ot)].filter(bt=>!!bt).sort(ia)),Mt=m(()=>r(pr)?{id:"vkLogo",type:"desktop-control-panel-right",weight:as.vkLogo,buttonComponent:md,buttonComponentProps:{targetUrl:Ft(),logoClickable:e.logoClickable,click:ut},tooltipText:r(Ln),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Xt=m(()=>r(Qi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:as.autoplayNext,buttonComponent:Sd,tooltipText:r(ir)}:void 0),ii=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:as.volume,buttonComponent:bf,buttonComponentProps:{click:Nn}})),bo=m(()=>r(Jn)?{id:"subtitles",type:"desktop-control-panel-right",weight:as.subtitles,buttonComponent:vf,buttonComponentProps:{isSubtitlesEnabled:r(Je),click:Ut},tooltipText:r(Lr)}:void 0),Ai=m(()=>r(er)?{id:"settings",type:"desktop-control-panel-right",weight:as.settings,buttonComponent:tl,buttonComponentProps:{ref$:gr},tooltipText:de()?void 0:Nt("tooltip_settings_off")}:void 0),oi=m(()=>ve.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:as.context,buttonComponent:Nf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(Pn)},className:r(In)?"":"out-of-view",tooltipText:r(Pn)}:void 0),li=m(()=>r(Zi)?{id:"fullscreen",type:"desktop-control-panel-right",weight:as.fullscreen,buttonComponent:fd,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(tr)}:void 0),_i=m(()=>r(Wi)?{id:"chromecast",type:"desktop-control-panel-right",weight:as.chromecast,buttonComponent:vd,buttonComponentProps:{state:_(),click:Cn},tooltipText:r(mr)}:void 0),Yi=m(()=>[r(Mt),r(Xt),r(ii),r(bo),r(Ai),r(oi),r(li),r(_i),...ue()].filter(bt=>!!bt).sort(ia));var Pi=F2(),Ci=me(Pi);let Kr;var He=h(Ci);let Qt=m(()=>!r(kn));hd(He,{get isHidden(){return r(Qt)},get isAds(){return vt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return A()},get ref(){return ti.timeline},set ref(bt){ti.timeline=bt}});var bi=M(He,2),Eo=h(bi),vn=h(Eo);$i(vn,17,()=>r(ye),bt=>bt.id,(bt,gt)=>{ru(bt,{get buttonComponent(){return r(gt).buttonComponent},get buttonComponentProps(){return r(gt).buttonComponentProps},get tooltipText(){return r(gt).tooltipText},get disabledTooltipContent(){return r(gt).disabledTooltipContent},get disabled(){return r(gt).disabled},get className(){return r(gt).className},get tooltipEnabled(){return r(gt).tooltipEnabled},get mouseEnter(){return r(gt).mouseEnter},get mouseLeave(){return r(gt).mouseLeave},get ref(){return ti[r(gt).id]},set ref(oo){ti[r(gt).id]=oo}})});var Wr=M(vn,2);{var On=bt=>{let gt=m(()=>vt()?Pe():nt()),oo=m(()=>vt()?mt():et());cd(bt,{isMobile:!1,get showDuration(){return r(Rn)},get position(){return r(gt)},get duration(){return r(oo)},get ref(){return ti.time},set ref(Oo){ti.time=Oo}})};R(Wr,bt=>{r(Xi)&&bt(On)})}var Nr=M(Wr,2);let ml=m(()=>!r(An));Po(Nr,{className:"w-max",get disabled(){return r(ml)},tooltipContent:fn,get ref(){return ti.episodes},set ref(bt){ti.episodes=bt},children:(bt,gt)=>{var oo=qe(),Oo=me(oo);{var no=ri=>{_d(ri,{get position(){return nt()},get duration(){return et()},timeCodes:Wt})};R(Oo,ri=>{r(An)&&ri(no)})}b(bt,oo)},$$slots:{default:!0}}),g(Eo);var Hn=M(Eo,2);$i(Hn,21,()=>r(Yi),bt=>bt.id,(bt,gt)=>{var oo=qe(),Oo=me(oo);{var no=Mi=>{ru(Mi,{get buttonComponent(){return r(gt).buttonComponent},get buttonComponentProps(){return r(gt).buttonComponentProps},get tooltipText(){return r(gt).tooltipText},get disabledTooltipContent(){return r(gt).disabledTooltipContent},get disabled(){return r(gt).disabled},get className(){return r(gt).className},get ref(){return ti[r(gt).id]},set ref(ds){ti[r(gt).id]=ds}})},ri=Mi=>{let ds=m(()=>!!r(gt).disabled);Wf(Mi,{get id(){return r(gt).id},get testId(){return r(gt).testId},get icon(){return r(gt).icon},get ariaLabel(){return r(gt).ariaLabel},get tooltipText(){return r(gt).tooltipText},get disabledTooltipContent(){return r(gt).disabledTooltipContent},get disabled(){return r(ds)},get onClick(){return r(gt).onClick},get ref(){return ti[r(gt).id]},set ref(gl){ti[r(gt).id]=gl}})};R(Oo,Mi=>{p1(r(gt))?Mi(no):Mi(ri,!1)})}b(bt,oo)}),g(Hn),g(bi),ct(bi,bt=>rt(bt),()=>rt()),g(Ci),ct(Ci,bt=>Bt(bt),()=>Bt());var vl=M(Ci,2);{var ba=bt=>{yd(bt,{get ref(){return ti.interactiveTimeIndicator},set ref(gt){ti.interactiveTimeIndicator=gt}})};R(vl,bt=>{wn&&bt(ba)})}k(bt=>Kr=te(Ci,1,"wrapper-bottom svelte-1iedtj3",null,Kr,bt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Fr(Eo,"clientWidth",bt=>O(Vn,bt)),b(t,Pi),K(),o()}var sl=require("@vkontakte/videoplayer-core/es2018");var Yf=require("@vkontakte/videoplayer-shared/es2018");var z2=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),q2=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),K2={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 jf(t,e){Q(t,K2);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Yf.noop),n=m(()=>o()===Yf.noop),a=m(()=>r(n)||i()),s=ee(!1),d=()=>{O(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");At(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,f)=>{var _=qe(),u=me(_);{var $=y=>{var S=z2();b(y,S)},w=y=>{var S=q2();k(()=>Oe(S,"src",e.iconUrl)),Et("error",S,d),qs(S),b(y,S)};R(u,y=>{r(s)?y($):y(w,!1)})}b(p,_)},$$slots:{default:!0}})}var W2=be('<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 Zf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=W2();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),b(t,o)}var m1=require("@vkontakte/videoplayer-shared/es2018");var Q2=L('<span class="text svelte-6gmlbk"> </span>'),G2=L('<div aria-hidden="true"><!> <!></div>'),Y2={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 su(t,e){q(e,!0),Q(t,Y2);let i=v(e,"muted",3,!1),o=v(e,"expanded",3,!1),n=v(e,"click",3,m1.noop),a=v(e,"ref",15,void 0),d=Te().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=m(()=>o()?Is:Zf),f=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");At(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(_){a(_)},children:(_,u)=>{var $=G2();let w=m(()=>r(p)),y;var S=h($);Vi(S,()=>r(w),(P,E)=>{E(P,{})});var I=M(S,2);{var A=P=>{var E=Q2(),T=h(E,!0);g(E),k(V=>pe(T,V),[()=>d("mobile_unmute")]),b(P,E)};R(I,P=>{o()&&P(A)})}g($),k(P=>y=te($,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),b(_,$)},$$slots:{default:!0}}),K()}var j2=be('<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 Xf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=j2();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(3),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),b(t,o)}var Z2={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
255
|
-
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function
|
|
254
|
+
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 Sd(t,e){var D;q(e,!0),Q(t,_2);let[i,o]=Fe(),n=()=>C(S,"$isMobile",i),a=()=>C(E,"$areControlsVisible",i),s=()=>C(V,"$currentGridType$",i),d=()=>C(A,"$isInteractiveTime$",i),l=()=>C(y,"$interactiveControlsOpacity$",i),p=()=>C(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(I,"$isFullscreen",i),_=v(e,"ref",15,void 0),u=ee(void 0),$=we(),w=so(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,I=$.ui.isFullscreen,A=$.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,E=$.ui.controlsVisible,T=(D=$.callbacks)==null?void 0:D.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,U=m(()=>!n()&&a()),Y=m(()=>ks(s(),"s")),F=m(()=>!d()||!!l()||r(U)),j=ee(!1);Ke(()=>{O(j,me(r(F)))});let X=()=>{O(j,!0)},oe=()=>{var de;pe(),(de=r(u))==null||de.addEventListener("animationiteration",X,{once:!0})},pe=()=>{var de;O(j,!1),(de=r(u))==null||de.removeEventListener("animationiteration",X)},le=de=>{P.set(de)},Ve=m(()=>p()&&!r(F));Ke(()=>{p()?oe():pe()});let Me=()=>{r(F)||(P.set(!0),T==null||T())};wn(()=>{P.clearTimeout(),pe()});let J=()=>{P.set(!1)},Le=H("tooltip_interactive_interaction_time_indicator");var Z=h2();let B;Z.__mousemove=[g2],Z.__click=Me;var Re=h(Z);Io(Re,{tooltipContent:Le,get tooltipActive(){return r(Ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return _()},set ref(de){_(de)},children:(de,Ee)=>{md(de,{completed:!0})},$$slots:{default:!0}});var ne=M(Re,2);let ke;ct(ne,de=>_(de),()=>_());var Ne=M(ne,2);let fe;ct(Ne,de=>O(u,de),()=>r(u)),g(Z),k((de,Ee,Ye)=>{B=te(Z,1,"interactive-episode-icon-animated svelte-od3veb",null,B,de),ke=te(ne,1,"ref-block svelte-od3veb",null,ke,Ee),fe=te(Ne,1,"pulse svelte-od3veb",null,fe,Ye)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(Y)}),()=>({hidden:r(F)}),()=>({paused:r(j)})]),At("mouseleave",Z,J),b(t,Z),K(),o()}at(["mousemove","click"]);function cu(t,e){q(e,!0);let i=v(e,"tooltipEnabled",3,!0),o=v(e,"disabled",3,!1),n=v(e,"className",3,void 0),a=v(e,"ref",15);Io(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=qe();let p=m(()=>e.buttonComponent);var f=ue(l);$i(f,()=>r(p),(_,u)=>{u(_,os(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(s,l)},$$slots:{default:!0}}),K()}var rs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var $2=be('<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 qf(t,e){let i=Ie(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}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}function Es(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=v(e,"width",3,"24"),a=v(e,"height",3,"24"),s=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");qf(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 y2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),x2=L("<!> <!>",1),w2={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){q(e,!0),Q(t,w2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=we().ui.t,d=m(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=m(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),p=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Lt(t,{get className(){return r(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},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(f){i(f)},children:(f,_)=>{var u=x2(),$=ue(u);{var w=I=>{var A=y2();b(I,A)};R($,I=>{o()&&I(w)})}var y=M($,2);let S=m(()=>e.type==="prev");Es(y,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(f,u)},$$slots:{default:!0}}),K()}var S2=be('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function Cd(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=S2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),b(t,o)}var f1=require("@vkontakte/videoplayer-shared/es2018");var C2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),T2=L("<!> <div><!></div>",1),I2={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 sl(t,e){q(e,!0),Q(t,I2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),a=v(e,"className",3,""),s=v(e,"click",3,f1.noop),d=H("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);Lt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Fr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var _=T2(),u=ue(_);{var $=I=>{var A=C2();b(I,A)};R(u,I=>{o()&&I($)})}var w=M(u,2);let y;var S=h(w);Cd(S,{}),g(w),k(I=>y=te(w,1,"svelte-1ot3duq",null,y,I),[()=>({mobile:o()})]),b(p,_)},$$slots:{default:!0}}),K()}var k2=be('<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 Er(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=k2(),d=h(s);g(s),k(()=>{Oe(s,"width",i()),Oe(s,"height",o()),Oe(s,"viewBox",n()),Oe(d,"fill",a())}),b(t,s)}var E2=be('<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 ss(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=E2(),d=h(s);g(s),k(()=>{Oe(s,"width",i()),Oe(s,"height",o()),Oe(s,"viewBox",n()),Oe(d,"fill",a())}),b(t,s)}var m1=require("@vkontakte/videoplayer-shared/es2018");var A2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),P2=L("<!> <div><!></div>",1),M2={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 al(t,e){q(e,!0),Q(t,M2);let[i,o]=Fe(),n=()=>C(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=so(),s=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),l=v(e,"isPlaying",3,!1),p=v(e,"disabled",3,!1),f=v(e,"className",3,""),_=v(e,"click",3,m1.noop),$=we().ui.t,{toggle:w}=a,y=m(()=>w),S=m(()=>n()!==null),I=m(()=>r(S)?n():l()),A=m(()=>r(I)?$("tooltip_pause"):$("tooltip_play")),P=m(()=>r(I)?ss:Er),E=m(()=>`${d()?"btn-m--play":""} ${f()}`),T=m(()=>r(S)?r(y):_());Lt(t,{get className(){return r(E)},testId:"btn-play",get click(){return r(T)},get disabled(){return p()},get ariaLabel(){return r(A)},get ariaKeyShortCut(){return Fr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,U)=>{var Y=P2();let F=m(()=>r(P));var j=ue(Y);{var X=Ve=>{var Me=A2();b(Ve,Me)};R(j,Ve=>{d()&&Ve(X)})}var oe=M(j,2);let pe;var le=h(oe);$i(le,()=>r(F),(Ve,Me)=>{Me(Ve,{})}),g(oe),k(Ve=>pe=te(oe,1,"svelte-1ot3duq",null,pe,Ve),[()=>({mobile:d()})]),b(V,Y)},$$slots:{default:!0}}),K(),o()}var L2=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=L2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),b(t,o)}function Td(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=H("tooltip_interactive_go_back"),s=m(()=>o()?"hidden":"");Lt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Kf(d,{})},$$slots:{default:!0}}),K()}var V2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),R2={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 Id(t,e){q(e,!0),Q(t,R2);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=v(e,"ref",15,void 0),s=we(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Lt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,_)=>{var u=V2(),$=h(u);let w;var y=h($);{var S=A=>{Er(A,{width:"14",height:"14",fill:"#000"})},I=A=>{ss(A,{width:"14",height:"14",fill:"#000"})};R(y,A=>{n()?A(S):A(I,!1)})}g($),g(u),k(A=>w=te($,1,"toggler svelte-et3q1q",null,w,A),[()=>({enabled:n()})]),b(f,u)},$$slots:{default:!0}}),K(),o()}var N2=be('<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 Wf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=N2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i})),b(t,o)}function kd(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=H("tooltip_interactive_seek"),s=m(()=>o()?"hidden":"");Lt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Wf(d,{})},$$slots:{default:!0}}),K()}var B2=be('<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 Qf(t,e){let i=Ie(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}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var D2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Gf(t,e){Q(t,D2);let i=v(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Qf(t,{get"data-testid"(){return r(o)}})}function Ed(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=v(e,"graphIsOpened",3,!1),d=we().ui.t,l=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=m(()=>o()?"hidden":"");Lt(t,{get className(){return r(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,_)=>{let u=m(()=>!!a());Gf(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),K()}var Yf=require("@vkontakte/videoplayer-core/es2018");function Ad(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(p,"$playbackState$",i),a=v(e,"isMobile",3,!1),s=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),l=we(),p=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,u=m(()=>()=>{if(!s()){f();return}n()===Yf.PlaybackState.PAUSED&&_()}),$=m(()=>a()?"":"btn--live btn-full-opacity"),w=m(()=>s()?"btn-live":"btn-live-offset"),y=m(()=>s()&&n()===Yf.PlaybackState.PLAYING);Lt(t,{get className(){return r($)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(u)},children:(S,I)=>{od(S,{get isActive(){return s()}})},$$slots:{default:!0}}),K(),o()}var jf=require("@vkontakte/videoplayer-shared/es2018");var O2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),H2=L('<img class="icon" aria-hidden="true">');function ma(t,e){"use strict";let i=ee(!1),o=()=>{O(i,!0)};var n=qe(),a=ue(n);{var s=l=>{var p=O2();b(l,p)},d=l=>{var p=H2();k(()=>Oe(p,"src",e.icon)),At("error",p,o),Ks(p),b(l,p)};R(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function Zf(t,e){q(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,jf.noop),n=v(e,"ref",15),a=m(()=>o()===jf.noop),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");Io(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 f=m(()=>{var _;return(_=e.testId)!=null?_:e.id});Lt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(f)},children:(_,u)=>{ma(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),K()}var v1=t=>!!t.buttonComponent;var as={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var z2=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),q2={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 ya,Ls;q(e,!0),Q(t,q2);let[i,o]=Fe(),n=()=>C(ei,"$disabledControls$",i),a=()=>C(Kt,"$adPlaybackState",i),s=()=>C(ri,"$playbackState$",i),d=()=>C(vi,"$currentSubtitle$",i),l=()=>C(Jt,"$isEnded$",i),p=()=>C(li,"$currentGridType$",i),f=()=>C(Ai,"$isLive$",i),_=()=>C(zi,"$chromecastState$",i),u=()=>C(Eo,"$isPictureInPictureActive",i),$=()=>C(Fo,"$pictureInPictureType$",i),w=()=>C(Vi,"$availableSubtitlesList$",i),y=()=>C(qi,"$contextMenuOpenedByKeyboard$",i),S=()=>C(ho,"$showContextMenuBtn$",i),I=()=>C(Ki,"$playerSize",i),A=()=>C(Ui,"$isRewindableLive$",i),P=()=>C(ko,"$isActiveLive$",i),E=()=>C(an,"$graphIsOpened$",i),T=()=>C(ao,"$contextMenuVisible$",i),V=()=>C(Ao,"$isFullscreen",i),U=()=>C(zo,"$autoplayNextEnabled",i),Y=()=>C(r(mr),"$prevButton",i),F=()=>C(r(mn),"$replayButton",i),j=()=>C(r(Ko),"$playButton",i),X=()=>C(r(nt),"$nextButton",i),oe=()=>C(r(Mt),"$playPrevChapterButton",i),pe=()=>C(r(Si),"$seekToInteractiveButton",i),le=()=>C(r(ti),"$interactiveGraphButton",i),Ve=()=>C(r(Xi),"$liveButton",i),Me=()=>C(r(So),"$time",i),J=()=>C(r(Co),"$episodes",i),Le=()=>C(r(Wo),"$vkLogo",i),Z=()=>C(r(Qo),"$volume",i),B=()=>C(r(et),"$subtitles",i),Re=()=>C(r(It),"$settings",i),ne=()=>C(r(ai),"$context",i),ke=()=>C(r(Pi),"$fullscreen",i),Ne=()=>C(r(Ni),"$chromecast",i),fe=()=>C(_o,"$additionalDesktopControlPanelRightButtons$",i),D=()=>C(bo,"$isInteractiveTime$",i),de=()=>C(Vt,"$settingsMenuVisible",i),Ee=()=>C(En,"$settingButtonRef$",i),Ye=()=>C(Uo,"$startedByKeyboard$",i),dt=()=>C(Ge,"$isAudioAvailable$",i),Ae=()=>C(re,"$fakeIsPlaying$",i),$e=()=>C(Tn,"$seekToInteractiveDisabledTooltip$",i),Pe=()=>C(St,"$adPosition",i),rt=()=>C(Pt,"$position$",i),vt=()=>C(di,"$adDuration",i),lt=()=>C(Je,"$duration$",i),Et=v(e,"playerControlsWrapperRef",15,void 0),st=v(e,"playerControlsRef",15,void 0),gt=v(e,"isAds",3,!1),qt=v(e,"logoTargetUrl",3,""),Yt=v(e,"isOneVideoPlaylist",3,!1),Be=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:re}=so(),W=we(),se=so(),he=Wt(),Se=W.actions.internal.toggleMuted,De=W.actions.internal.togglePlay,ut=W.actions.internal.pause,Qt=W.actions.internal.toggleSubtitle,Ze=(ya=W.callbacks)==null?void 0:ya.onAudioDoesNotExistHint,pt=(Ls=W.callbacks)==null?void 0:Ls.onAudioDisabledHint,Je=W.state.duration$,Pt=W.state.positionWithScrubbing$,ri=W.state.playbackState$,Ge=W.state.isAudioAvailable$,ot=W.state.isAudioDisabled,Jt=W.state.isEnded$,Ai=W.state.isLive$,ko=W.state.isActiveLive$,Ui=W.state.isRewindableLive$,{isActive$:Eo,type$:Fo}=se.pictureInPicture$,Vt=W.ui.settingsMenu.visible$,bt=W.ui.settingsMenu.openedByBtnKeyboard$,z=W.ui.controls,Gt=W.actions.internal.getVideoEpisodes(),zi=W.state.chromecastState$,Vi=W.state.availableSubtitlesList$,vi=W.state.currentSubtitle$,ei=z.disabledControls$,ao=W.ui.contextMenu.visible$,ho=W.ui.contextMenu.showContextMenuBtn$,qi=W.ui.contextMenu.openedByBtnKeyboard$,Uo=W.ui.startedByKeyboard$,Ot=W.ui.t,di=W.ads.duration,St=W.ads.position,Kt=W.ads.playbackState,Ao=W.ui.isFullscreen,Ki=W.ui.playerSize,li=W.ui.currentGridType$,_o=W.ui.additionalDesktopControlPanelRightButtons$,zo=W.ui.autoplayNextEnabled$,si=W.actions.internal.getVideoElement,xt=W.actions.internal.replayInteractive,gi=W.actions.internal.prevVideoClick,Wi=W.actions.internal.nextVideoClick,Ri=W.state.isInteractive,bo=W.state.isInteractiveTime$,xi=W.state.showInteractiveGraph,$o=W.state.showSeekToInteractive,Cn=W.state.showPlayPrevChapter,sn=W.state.showInteractiveTimeIndicator,wi=W.state.playPrevChapterDisabledTooltip,Tn=se.seekToInteractiveDisabledTooltip$,an=se.graphIsOpened$,Po=he.features.interactiveResponsiveUi,In=m(()=>n().has("EPISODE_BUTTON")),ar=m(()=>n().has("GRAPH_BUTTON")),lr=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),On=m(()=>n().has("PLAY_BUTTON")),Hn=m(()=>n().has("REPLAY_BUTTON")),ln=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),dn=()=>W.actions.internal.toggleChromecast(),dr=m(()=>gt()?a()==="playing":s()===va.PlaybackState.PLAYING),it=m(()=>d().value!=="off"),ji=m(()=>l()&&!gt()||Ri),cr=m(()=>Po?r(ji)&&Oi(p(),"m"):r(ji)),Fn=m(()=>!l()||Ri||gt()),cn=m(()=>Oi(p(),"m")),un=m(()=>e.showNextPrevButtons&&Oi(p(),"m")&&!gt()&&e.nextButtonActive),Mo=m(()=>e.showNextPrevButtons&&Oi(p(),"m")&&!gt()&&e.prevButtonActive),yo=m(()=>!gt()&&!!f()),Qi=m(()=>_()!==va.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&Oi(p(),"m")&&!Ri),Zi=m(()=>e.showAutoplayNext&&!Yt()&&Oi(p(),"s")),Un=m(()=>w().length>0&&Oi(p(),"m")),zn=m(()=>y()||S()),Pr=m(()=>Oi(p(),"s")&&!gt()),qn=m(()=>!e.logoHidden&&!gt()),lo=m(()=>he.features.fullscreen&&(e.logoHidden||Oi(p(),Po?"xs":"s"))&&!(u()&&$()===1)&&(Ri?Be():!0)),xo=m(()=>(!f()||gt())&&!(he.features.interactiveHideTime&&Ri)),pn=m(()=>I().width>100),kn=m(()=>xi&&Oi(p(),"m")),Lo=m(()=>Po?$o&&Oi(p(),"s"):$o),Gi=m(()=>Po?Cn&&Oi(p(),"s"):Cn),qo=m(()=>!gt()&&!f()&&!!(Gt!=null&&Gt.length)&&r(cn)&&!r(In)),wo=m(()=>!A()||!!P()),ur=m(()=>E()?Ot("tooltip_interactive_graph_on"):Ot("tooltip_interactive_graph_off")),fn=m(()=>T()?Ot("aria_label_context_menu_close"):Ot("aria_label_context_menu_open")),Kn=($t,ht)=>$t?ht&&ht===va.PlaybackState.PAUSED?Ot("tooltip_play"):"":Ot("tooltip_live"),Wn=m(()=>Kn(r(wo),s())),Qn=m(()=>he.logoType==="vk_video"?Ot("tooltip_vk_video_logo"):Ot("tooltip_vk_logo")),pr=m(()=>r(it)?Ot("tooltip_subtitles_on"):Ot("tooltip_subtitles_off")),Gn=m(()=>V()?Ot("tooltip_fullscreen_on"):Ot("tooltip_fullscreen_off")),fr=m(()=>_()===va.ChromecastState.CONNECTED?Ot("tooltip_chromecast_on"):Ot("tooltip_chromecast_off")),Yn=m(()=>U()?Ot("tooltip_autoplay_on"):Ot("tooltip_autoplay_off")),jn=ee(0),oi=me({}),mr=m(()=>z.prevButton),mn=m(()=>z.replayButton),Ko=m(()=>z.playButton),nt=m(()=>z.nextButton),Mt=m(()=>z.playPrevChapterButton),Si=m(()=>z.seekToInteractiveButton),ti=m(()=>z.interactiveGraphButton),Xi=m(()=>z.liveButton),So=m(()=>z.time),Co=m(()=>z.episodes),Wo=m(()=>z.vkLogo),Qo=m(()=>z.volume),et=m(()=>z.subtitles),It=m(()=>z.settings),ai=m(()=>z.context),Pi=m(()=>z.fullscreen),Ni=m(()=>z.chromecast),Ci=m(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:F()?F().right-F().left:0,playButton:j()?j().right-j().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:oe()?oe().right-oe().left:0,seekToInteractiveButton:pe()?pe().right-pe().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Ve()?Ve().right-Ve().left:0,time:Me()?Me().right-Me().left:0,episodes:J()?J().right-J().left:0,vkLogo:Le()?Le().right-Le().left:0,volume:Z()?Z().right-Z().left:0,subtitles:B()?B().right-B().left:0,settings:Re()?Re().right-Re().left:0,context:ne()?ne().right-ne().left:0,fullscreen:ke()?ke().right-ke().left:0,chromecast:Ne()?Ne().right-Ne().left:0,additionalButtons:fe().length?fe().reduce($t=>[...$t,40],[]):[]})),co=ee(0);Ke(()=>{(!r(co)||r(co)<r(Ci).time)&&yt(()=>O(co,me(r(Ci).time)))});let Ti=ee(!1);Ke(()=>{let $t=0;r(qo)&&(Oi(p(),"xl")?$t=r(Ci).time:$t=60);let ht=r(Ci).prevButton+r(Ci).playButton+r(Ci).nextButton+r(Ci).seekToInteractiveButton+r(Ci).interactiveGraphButton+r(Ci).liveButton+r(co)+$t;O(Ti,me(r(xo)&&r(jn)>=ht))});let vn=m(()=>r(Ti)&&Oi(p(),"m")),vr=(0,g1.debounceFn)(lu,260);Ke(()=>{I(),D(),vr(si(),z,oi,e.showControls)});let En=ae();Ke(()=>{de(),Ee()&&yt(()=>Za(Ee(),de(),bt))});let Mr;Ke(()=>{Ye(),yt(()=>du(Uo,Ye(),Mr))});function uo(){Cs({isAudioDisabled:ot,audioDisabledHintCallback:pt,isAudioAvailable:dt(),audioIsNotExistHintCallback:Ze})&&Se()}let Lr=Ri?xt:De,Zn=m(()=>Ae()!==null),qr=m(()=>r(Zn)?Ae():r(dr)),gr=m(()=>r(qr)?Ot("tooltip_pause"):Ot("tooltip_play")),Vr=Ot("tooltip_episodes"),hr=m(()=>{var $t,ht,Ji,No;return r(Mo)?{id:"prevButton",type:"desktop-control-panel-left",weight:rs.prevButton,buttonComponent:fa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:gi.bind(null,!0)},tooltipEnabled:!((ht=($t=W.callbacks)==null?void 0:$t.uiInfo)!=null&&ht.onPrevButtonMouseEnter)&&!((No=(Ji=W.callbacks)==null?void 0:Ji.uiInfo)!=null&&No.onPrevButtonMouseLeave),mouseEnter:()=>{var eo,ii,Mi;(Mi=(ii=(eo=W.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ii.onPrevButtonMouseEnter)==null||Mi.call(ii,pa(si(),oi,"prevButton",e.showControls))},mouseLeave:()=>{var eo,ii,Mi;(Mi=(ii=(eo=W.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ii.onPrevButtonMouseLeave)==null||Mi.call(ii,pa(si(),oi,"prevButton",e.showControls))},tooltipText:Ot("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Vo=m(()=>r(cr)?{id:"replayButton",type:"desktop-control-panel-left",weight:rs.replayButton,buttonComponent:sl,buttonComponentProps:{disabled:r(Hn),click:Lr},tooltipText:Ot("tooltip_restart"),disabled:r(Hn)}:void 0),gn=m(()=>r(Fn)?{id:"playButton",type:"desktop-control-panel-left",weight:rs.playButton,buttonComponent:al,buttonComponentProps:{disabled:r(On),isPlaying:r(dr),click:De},tooltipText:r(gr),disabled:r(On)}:void 0),Kr=m(()=>{var $t,ht,Ji,No;return r(un)?{id:"nextButton",type:"desktop-control-panel-left",weight:rs.nextButton,buttonComponent:fa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Wi.bind(null,!0)},tooltipEnabled:!((ht=($t=W.callbacks)==null?void 0:$t.uiInfo)!=null&&ht.onNextButtonMouseEnter)&&!((No=(Ji=W.callbacks)==null?void 0:Ji.uiInfo)!=null&&No.onNextButtonMouseLeave),mouseEnter:()=>{var eo,ii,Mi;(Mi=(ii=(eo=W.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ii.onNextButtonMouseEnter)==null||Mi.call(ii,pa(si(),oi,"nextButton",e.showControls))},mouseLeave:()=>{var eo,ii,Mi;(Mi=(ii=(eo=W.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ii.onNextButtonMouseLeave)==null||Mi.call(ii,pa(si(),oi,"nextButton",e.showControls))},tooltipText:Ot("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),_r=m(()=>Ri&&r(Gi)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:rs.playPrevChapterButton,buttonComponent:Td,buttonComponentProps:{disabled:r(ln),click:e.playPrevChapter},tooltipText:Ot("tooltip_interactive_go_back"),disabledTooltipContent:Ot(wi),disabled:r(ln)}:void 0),Xn=m(()=>Ri&&r(Lo)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:rs.seekToInteractiveButton,buttonComponent:kd,buttonComponentProps:{disabled:r(lr),click:e.seekToInteractive},tooltipText:Ot("tooltip_interactive_seek"),disabled:r(lr),disabledTooltipContent:Ot($e())}:void 0),Xe=m(()=>Ri&&r(kn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:rs.interactiveGraphButton,buttonComponent:Ed,buttonComponentProps:{disabled:r(ar),click:an.toggle,graphIsOpened:E()},tooltipText:r(ur)}:void 0),Ht=m(()=>r(yo)?{id:"liveButton",type:"desktop-control-panel-left",weight:rs.liveButton,buttonComponent:Ad,buttonComponentProps:{isLiveActive:r(wo),ariaLabel:r(Wn)},tooltipText:r(Wn),disabled:r(wo)&&s()===va.PlaybackState.PLAYING}:void 0),_i=m(()=>[r(hr),r(Vo),r(gn),r(Kr),r(_r),r(Xn),r(Xe),r(Ht)].filter($t=>!!$t).sort(na)),hn=m(()=>r(qn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:as.vkLogo,buttonComponent:hd,buttonComponentProps:{targetUrl:qt(),logoClickable:e.logoClickable,click:ut},tooltipText:r(Qn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),_n=m(()=>r(Zi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:as.autoplayNext,buttonComponent:Id,tooltipText:r(Yn)}:void 0),An=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:as.volume,buttonComponent:Cf,buttonComponentProps:{click:uo}})),Jn=m(()=>r(Un)?{id:"subtitles",type:"desktop-control-panel-right",weight:as.subtitles,buttonComponent:yf,buttonComponentProps:{isSubtitlesEnabled:r(it),click:Qt},tooltipText:r(pr)}:void 0),Ce=m(()=>r(Pr)?{id:"settings",type:"desktop-control-panel-right",weight:as.settings,buttonComponent:ol,buttonComponentProps:{ref$:En},tooltipText:de()?void 0:Ot("tooltip_settings_off")}:void 0),ft=m(()=>he.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:as.context,buttonComponent:zf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(fn)},className:r(zn)?"":"out-of-view",tooltipText:r(fn)}:void 0),Rt=m(()=>r(lo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:as.fullscreen,buttonComponent:gd,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Gn)}:void 0),Ut=m(()=>r(Qi)?{id:"chromecast",type:"desktop-control-panel-right",weight:as.chromecast,buttonComponent:_d,buttonComponentProps:{state:_(),click:dn},tooltipText:r(fr)}:void 0),Yi=m(()=>[r(hn),r(_n),r(An),r(Jn),r(Ce),r(ft),r(Rt),r(Ut),...fe()].filter($t=>!!$t).sort(na));var ci=z2(),jt=ue(ci);let Rr;var He=h(jt);let kt=m(()=>!r(pn));$d(He,{get isHidden(){return r(kt)},get isAds(){return gt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return A()},get ref(){return oi.timeline},set ref($t){oi.timeline=$t}});var hi=M(He,2),Ro=h(hi),Go=h(Ro);bi(Go,17,()=>r(_i),$t=>$t.id,($t,ht)=>{cu($t,{get buttonComponent(){return r(ht).buttonComponent},get buttonComponentProps(){return r(ht).buttonComponentProps},get tooltipText(){return r(ht).tooltipText},get disabledTooltipContent(){return r(ht).disabledTooltipContent},get disabled(){return r(ht).disabled},get className(){return r(ht).className},get tooltipEnabled(){return r(ht).tooltipEnabled},get mouseEnter(){return r(ht).mouseEnter},get mouseLeave(){return r(ht).mouseLeave},get ref(){return oi[r(ht).id]},set ref(Ji){oi[r(ht).id]=Ji}})});var Wr=M(Go,2);{var Pn=$t=>{let ht=m(()=>gt()?Pe():rt()),Ji=m(()=>gt()?vt():lt());fd($t,{isMobile:!1,get showDuration(){return r(vn)},get position(){return r(ht)},get duration(){return r(Ji)},get ref(){return oi.time},set ref(No){oi.time=No}})};R(Wr,$t=>{r(xo)&&$t(Pn)})}var Nr=M(Wr,2);let gl=m(()=>!r(qo));Io(Nr,{className:"w-max",get disabled(){return r(gl)},tooltipContent:Vr,get ref(){return oi.episodes},set ref($t){oi.episodes=$t},children:($t,ht)=>{var Ji=qe(),No=ue(Ji);{var eo=ii=>{yd(ii,{get position(){return rt()},get duration(){return lt()},timeCodes:Gt})};R(No,ii=>{r(qo)&&ii(eo)})}b($t,Ji)},$$slots:{default:!0}}),g(Ro);var Ms=M(Ro,2);bi(Ms,21,()=>r(Yi),$t=>$t.id,($t,ht)=>{var Ji=qe(),No=ue(Ji);{var eo=Mi=>{cu(Mi,{get buttonComponent(){return r(ht).buttonComponent},get buttonComponentProps(){return r(ht).buttonComponentProps},get tooltipText(){return r(ht).tooltipText},get disabledTooltipContent(){return r(ht).disabledTooltipContent},get disabled(){return r(ht).disabled},get className(){return r(ht).className},get ref(){return oi[r(ht).id]},set ref(ds){oi[r(ht).id]=ds}})},ii=Mi=>{let ds=m(()=>!!r(ht).disabled);Zf(Mi,{get id(){return r(ht).id},get testId(){return r(ht).testId},get icon(){return r(ht).icon},get ariaLabel(){return r(ht).ariaLabel},get tooltipText(){return r(ht).tooltipText},get disabledTooltipContent(){return r(ht).disabledTooltipContent},get disabled(){return r(ds)},get onClick(){return r(ht).onClick},get ref(){return oi[r(ht).id]},set ref(hl){oi[r(ht).id]=hl}})};R(No,Mi=>{v1(r(ht))?Mi(eo):Mi(ii,!1)})}b($t,Ji)}),g(Ms),g(hi),ct(hi,$t=>st($t),()=>st()),g(jt),ct(jt,$t=>Et($t),()=>Et());var br=M(jt,2);{var $a=$t=>{Sd($t,{get ref(){return oi.interactiveTimeIndicator},set ref(ht){oi.interactiveTimeIndicator=ht}})};R(br,$t=>{sn&&$t($a)})}k($t=>Rr=te(jt,1,"wrapper-bottom svelte-1iedtj3",null,Rr,$t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Hr(Ro,"clientWidth",$t=>O(jn,$t)),b(t,ci),K(),o()}var ll=require("@vkontakte/videoplayer-core/es2018");var em=require("@vkontakte/videoplayer-shared/es2018");var K2=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),W2=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),Q2={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){Q(t,Q2);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,em.noop),n=m(()=>o()===em.noop),a=m(()=>r(n)||i()),s=ee(!1),d=()=>{O(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");Lt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(p,f)=>{var _=qe(),u=ue(_);{var $=y=>{var S=K2();b(y,S)},w=y=>{var S=W2();k(()=>Oe(S,"src",e.iconUrl)),At("error",S,d),Ks(S),b(y,S)};R(u,y=>{r(s)?y($):y(w,!1)})}b(p,_)},$$slots:{default:!0}})}var G2=be('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function im(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=G2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),b(t,o)}var h1=require("@vkontakte/videoplayer-shared/es2018");var Y2=L('<span class="text svelte-6gmlbk"> </span>'),j2=L('<div aria-hidden="true"><!> <!></div>'),Z2={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 uu(t,e){q(e,!0),Q(t,Z2);let i=v(e,"muted",3,!1),o=v(e,"expanded",3,!1),n=v(e,"click",3,h1.noop),a=v(e,"ref",15,void 0),d=we().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=m(()=>o()?Is:im),f=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Lt(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(_){a(_)},children:(_,u)=>{var $=j2();let w=m(()=>r(p)),y;var S=h($);$i(S,()=>r(w),(P,E)=>{E(P,{})});var I=M(S,2);{var A=P=>{var E=Y2(),T=h(E,!0);g(E),k(V=>ve(T,V),[()=>d("mobile_unmute")]),b(P,E)};R(I,P=>{o()&&P(A)})}g($),k(P=>y=te($,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),b(_,$)},$$slots:{default:!0}}),K()}var X2=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=X2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(3),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),b(t,o)}var J2={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
255
|
+
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function nm(t,e){Q(t,J2);let i=v(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),n=m(()=>i()?"pip-icon--active":"pip-icon");om(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var _1=require("@vkontakte/videoplayer-shared/es2018");function rm(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,_1.noop),a=H("menu_pip");Lt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{nm(s,{get isActive(){return o()}})},$$slots:{default:!0}}),K()}var b1=require("@vkontakte/videoplayer-shared/es2018");var ey=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},ty=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},iy=L("<div><!></div>"),oy=L("<div><!></div>"),ny=L("<div><!></div>"),ry=L("<!> <!> <!>",1),sy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),ay=L("<div><!></div>"),ly=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),dy=L("<!> <!> <div><!></div>",1),cy=L('<div aria-hidden="true">\xB7</div> <!>',1),uy=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),py={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,
|
|
256
256
|
.wrapper-middle-left-second.svelte-1afsgkw,
|
|
257
257
|
.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);}
|
|
258
258
|
|
|
@@ -260,7 +260,7 @@ Try switching the\xA0quality to\xA0Auto.`},Sh=b_;var ns=new Map;ns.set(qa.Interf
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
@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);}
|
|
263
|
-
}`};function tm(t,e){var vr,Vr;q(e,!0),Q(t,cy);let[i,o]=Ue(),n=()=>C(ci,"$seekToInteractiveDisabledTooltip$",i),a=()=>C(Mo,"$disabledControls$",i),s=()=>C(vt,"$playbackState$",i),d=()=>C(_t,"$adPlaybackState",i),l=()=>C(Ne,"$isEnded$",i),p=()=>C(Wt,"$playerSize",i),f=()=>C(Se,"$scrubbingInProgress",i),_=()=>C(ei,"$chromecastState$",i),u=()=>C(ut,"$isPictureInPictureActive",i),$=()=>C(Ut,"$pictureInPictureType$",i),w=()=>C(De,"$mobileNotReportControlHidden$",i),y=()=>C(et,"$playerPhase",i),S=()=>C(Lo,"$currentGridType$",i),I=()=>C(re,"$isLive$",i),A=()=>C(Xe,"$settingsMenuVisible",i),P=()=>C(ve,"$isRewindableLive$",i),E=()=>C(se,"$isActiveLive$",i),T=()=>C(po,"$isInteractiveTime$",i),V=()=>C(Ft,"$isAudioAvailable$",i),z=()=>C(Wi,"$settingButtonRef$",i),Y=()=>C(qi,"$startedByKeyboard$",i),U=()=>C(F,"$isFullscreen",i),Z=()=>C(lt,"$mobileUnmuteButtonVisible",i),X=()=>C(W,"$muted$",i),oe=()=>C(Ge,"$mobileUnmuteButtonExpanded",i),ce=()=>C(Ki,"$additionalButtons$",i),le=()=>C(Ri,"$crashed$",i),Ve=()=>C(wt,"$graphIsOpened$",i),Me=()=>C(Pt,"$adPosition",i),J=()=>C(Vo,"$adDuration",i),Le=()=>C(rt,"$position$",i),j=()=>C(Bt,"$duration$",i),N=v(e,"playerControlsWrapperRef",15,void 0),Re=v(e,"playerControlsRef",15,void 0),ne=v(e,"isAds",3,!1),ke=v(e,"logoTargetUrl",3,""),Be=v(e,"isOneVideoPlaylist",3,!1),ue=v(e,"customFullscreenSupported",3,!0),D=Te(),de=uo(),Ee=Kt(),Qe=D.actions.internal.toggleMuted,at=D.actions.internal.togglePlay,Ae=D.actions.internal.pause,$e=D.actions.internal.prevVideoClick,Pe=D.actions.internal.nextVideoClick,nt=(vr=D.callbacks)==null?void 0:vr.onAudioDoesNotExistHint,mt=(Vr=D.callbacks)==null?void 0:Vr.onAudioDisabledHint,et=D.playerPhase,Bt=D.state.duration$,rt=D.state.positionWithScrubbing$,vt=D.state.playbackState$,Ft=D.state.isAudioAvailable$,qt=D.state.isAudioDisabled,Ne=D.state.isEnded$,re=D.state.isLive$,W=D.state.muted$,se=D.state.isActiveLive$,ve=D.state.isRewindableLive$,Se=D.ui.scrubbingInProgress,De=D.ui.mobileNotReportControlHidden$,{isActive$:ut,type$:Ut}=de.pictureInPicture$,Ge=D.ui.mobileUnmuteButtonExpanded,lt=D.ui.mobileUnmuteButtonVisible,Xe=D.ui.settingsMenu.visible$,It=D.ui.settingsMenu.openedByBtnKeyboard$,Zt=D.ui.controls,Ke=D.actions.internal.getVideoEpisodes(),dt=D.webApi.pictureInPictureApi,ei=D.state.chromecastState$,Ri=D.state.crashed$,Mo=Zt.disabledControls$,qi=D.ui.startedByKeyboard$,Lo=D.ui.currentGridType$,Vo=D.ads.duration,Pt=D.ads.position,_t=D.ads.playbackState,F=D.ui.isFullscreen,Wt=D.ui.playerSize,Ki=D.ui.additionalButtonsDeprecated$,Bi=D.actions.internal.getVideoElement,si=D.actions.internal.replayInteractive,di=D.state.isInteractive,po=D.state.isInteractiveTime$,fo=D.state.showInteractiveGraph,ji=D.state.showSeekToInteractive,Uo=D.state.showPlayPrevChapter,Nt=D.state.showInteractiveTimeIndicator,ci=de.seekToInteractiveDisabledTooltip$,wt=de.graphIsOpened$,zt=m(()=>H(D.state.playPrevChapterDisabledTooltip)),mo=m(()=>H(n())),jt=m(()=>a().has("EPISODE_BUTTON")),Gn=m(()=>a().has("GRAPH_BUTTON")),Co=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),zo=m(()=>a().has("PLAY_BUTTON")),ni=m(()=>a().has("REPLAY_BUTTON")),yt=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),ui=m(()=>s()===sl.PlaybackState.PLAYING),vo=m(()=>d()==="paused"),gi=m(()=>l()&&!ne()&&!di),xn=m(()=>!l()||ne()),xi=m(()=>e.showNextPrevButtons&&!ne()&&e.prevButtonActive),To=m(()=>e.showNextPrevButtons&&!ne()&&e.nextButtonActive),qo=m(()=>p().width>300),wn=m(()=>p().width>400),wi=m(f),Yn=m(()=>_()!==sl.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!di),an=m(()=>y()==="LiveWaitingStart"),Ro=m(()=>!!dt&&_()!==sl.ChromecastState.CONNECTED&&!w()&&($()===1&&r(an)||!r(an))&&!r(wi)&&!di),ln=m(()=>!r(wi)&&Fi(S(),"s")),Pr=m(()=>!e.logoHidden&&p().width>350),ur=m(()=>Ee.features.fullscreen&&!(u()&&$()===1)&&(di?ue():!0)&&!r(wi)),jn=m(()=>(!I()||ne())&&p().width>260&&!r(wi)&&!(Ee.features.interactiveHideTime&&di)),Sn=m(()=>A()||e.showControls),dn=m(()=>!ne()&&!I()&&!!(Ke!=null&&Ke.length)&&r(qo)&&!r(jt)&&!r(wi)),Cn=m(()=>!P()||!!E()),go=m(()=>fo&&Fi(S(),"m")),Je=ge({}),cn=(0,g1.debounceFn)(ou,260);je(()=>{p(),T(),cn(Bi(),Zt,Je,e.showControls)});let Zn=()=>D.actions.internal.toggleChromecast();function Xn(){Cs({isAudioDisabled:qt,audioDisabledHintCallback:mt,isAudioAvailable:V(),audioIsNotExistHintCallback:nt})&&Qe()}async function Tn(){dt!=null&&dt.isActive()?await(dt==null?void 0:dt.remove()):await(dt==null?void 0:dt.request())}function un(){!qt&&V()&<.set(!1),Xn()}let pn=ee(""),Ko=(it,pt)=>{if(!it){O(pn,ge(H("tooltip_live")));return}pt&&pt===sl.PlaybackState.PAUSED&&O(pn,ge(H("tooltip_play")))};je(()=>{Ko(r(Cn),s())});let Wi=ae();je(()=>{z()&&Ya(z(),A(),It)}),je(()=>{nu(qi,Y(),Je.playButton)});var Qi=dy(),Jn=me(Qi);{var In=it=>{var pt=ny(),Si=me(pt);let eo;var to=M(Si,2);let Io;var No=h(to);{var Do=tt=>{let Ot=m(()=>V()&&!qt&&oe());su(tt,{get muted(){return X()},get expanded(){return r(Ot)},click:un,get ref(){return Je.volume},set ref(ye){Je.volume=ye}})};R(No,tt=>{(!V()||Z())&&tt(Do)})}g(to);var ko=M(to,2);let Ze;var Tt=h(ko);$i(Tt,1,ce,({iconUrl:tt,ariaLabel:Ot,testId:ye,onClick:Mt,tooltip:Xt})=>tt,(tt,Ot)=>{let ye=()=>r(Ot).iconUrl,Mt=()=>r(Ot).ariaLabel,Xt=()=>r(Ot).testId,ii=()=>r(Ot).onClick,bo=()=>r(Ot).tooltip,Ai=m(()=>{var oi;return(oi=Mt())!=null?oi:bo()});jf(tt,{get iconUrl(){return ye()},get ariaLabel(){return r(Ai)},get testId(){return Xt()},get onClick(){return ii()}})});var Ei=M(Tt,2);{var Ni=tt=>{Sd(tt,{get ref(){return Je.autoplayNextToggle},set ref(Ot){Je.autoplayNextToggle=Ot}})};R(Ei,tt=>{e.showAutoplayNext&&!Be()&&tt(Ni)})}var Di=M(Ei,2);{var hi=tt=>{vd(tt,{isMobile:!0,click:Zn,get state(){return _()},get ref(){return Je.chromecast},set ref(Ot){Je.chromecast=Ot}})};R(Di,tt=>{r(Yn)&&tt(hi)})}var Gi=M(Di,2);{var io=tt=>{em(tt,{click:Tn,get isPictureInPictureActive(){return u()},get ref(){return Je.pip},set ref(Ot){Je.pip=Ot}})};R(Gi,tt=>{r(Ro)&&tt(io)})}var Rn=M(Gi,2);{var Bn=tt=>{tl(tt,{ref$:Wi})};R(Rn,tt=>{le()&&tt(Bn)})}var gr=M(Rn,2);{var Qo=tt=>{md(tt,{click:Ae,get targetUrl(){return ke()},get logoClickable(){return e.logoClickable},get ref(){return Je.vkLogo},set ref(Ot){Je.vkLogo=Ot}})};R(gr,tt=>{r(Pr)&&tt(Qo)})}g(ko);var Nn=M(ko,2);let hr;var _r=h(Nn);{var Rr=tt=>{let Ot=m(()=>$e.bind(null,!0));ua(tt,{get click(){return r(Ot)},type:"prev",isMobile:!0,get ref(){return Je.prevButton},set ref(ye){Je.prevButton=ye}})};R(_r,tt=>{r(xi)&&tt(Rr)})}var br=M(_r,2);{var fn=tt=>{rl(tt,{get disabled(){return r(zo)},click:at,isMobile:!0,get isPlaying(){return r(ui)},get ref(){return Je.playButton},set ref(Ot){Je.playButton=Ot}})};R(br,tt=>{r(xn)&&tt(fn)})}var mn=M(br,2);{var or=tt=>{nl(tt,{get disabled(){return r(ni)},click:at,isMobile:!0,get ref(){return Je.replayButton},set ref(Ot){Je.replayButton=Ot}})};R(mn,tt=>{r(gi)&&tt(or)})}var Br=M(mn,2);{var _o=tt=>{let Ot=m(()=>Pe.bind(null,!0));ua(tt,{get click(){return r(Ot)},type:"next",isMobile:!0,get ref(){return Je.nextButton},set ref(ye){Je.nextButton=ye}})};R(Br,tt=>{r(To)&&tt(_o)})}g(Nn);var Dn=M(Nn,2);{var $r=tt=>{var Ot=oy(),ye=me(Ot);{var Mt=oi=>{var li=ey();let _i;li.__click=[X2,yt,e,zt];var Yi=h(li);let Pi=m(()=>!e.showControls);wd(Yi,{get hidden(){return r(Pi)},get disabled(){return r(yt)},get click(){return e.playPrevChapter},get ref(){return Je.playPrevChapterButton},set ref(Ci){Je.playPrevChapterButton=Ci}}),g(li),k(Ci=>_i=te(li,1,"wrapper-middle-left svelte-1afsgkw",null,_i,Ci),[()=>({fullscreen:U(),hidden:!e.showControls})]),b(oi,li)};R(ye,oi=>{Uo&&oi(Mt)})}var Xt=M(ye,2);{var ii=oi=>{var li=ty();let _i;var Yi=h(li);let Pi=m(()=>!e.showControls&&!Ve());Td(Yi,{get hidden(){return r(Pi)},get disabled(){return r(Gn)},get click(){return wt.toggle},get graphIsOpened(){return Ve()},get ref(){return Je.interactiveGraphButton},set ref(Ci){Je.interactiveGraphButton=Ci}}),g(li),k(Ci=>_i=te(li,1,Ul(Uo?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",_i,Ci),[()=>({fullscreen:U(),hidden:!e.showControls&&!Ve()})]),b(oi,li)};R(Xt,oi=>{r(go)&&oi(ii)})}var bo=M(Xt,2);{var Ai=oi=>{var li=iy();let _i;li.__click=[J2,Co,e,mo];var Yi=h(li);let Pi=m(()=>!e.showControls);Cd(Yi,{get hidden(){return r(Pi)},get disabled(){return r(Co)},get click(){return e.seekToInteractive},get ref(){return Je.seekToInteractiveButton},set ref(Ci){Je.seekToInteractiveButton=Ci}}),g(li),k(Ci=>_i=te(li,1,"wrapper-middle-right svelte-1afsgkw",null,_i,Ci),[()=>({fullscreen:U(),hidden:!e.showControls})]),b(oi,li)};R(bo,oi=>{ji&&oi(Ai)})}b(tt,Ot)};R(Dn,tt=>{di&&!f()&&tt($r)})}k((tt,Ot,ye,Mt)=>{eo=te(Si,1,"overlay-mobile svelte-1afsgkw",null,eo,tt),Io=te(to,1,"wrapper-top-left svelte-1afsgkw",null,Io,Ot),Ze=te(ko,1,"wrapper-top-right svelte-1afsgkw",null,Ze,ye),hr=te(Nn,1,"wrapper-middle svelte-1afsgkw",null,hr,Mt)},[()=>({hidden:!r(Sn)}),()=>({hidden:!e.showControls,fullscreen:U()}),()=>({hidden:!e.showControls&&!w(),fullscreen:U()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(it,pt)};R(Jn,it=>{ne()||it(In)})}var er=M(Jn,2);{var pr=it=>{var pt=ay(),Si=me(pt);{var eo=Ze=>{var Tt=ry();let Ei;var Ni=h(Tt);su(Ni,{get muted(){return X()},expanded:!1,click:un,get ref(){return Je.volume},set ref(Di){Je.volume=Di}}),g(Tt),k(Di=>Ei=te(Tt,1,"wrapper-top-right svelte-1afsgkw",null,Ei,Di),[()=>({fullscreen:U()})]),b(Ze,Tt)};R(Si,Ze=>{Z()&&Ze(eo)})}var to=M(Si,2);{var Io=Ze=>{var Tt=sy(),Ei=h(Tt);let Ni=m(()=>!r(vo));rl(Ei,{get disabled(){return r(zo)},click:at,isMobile:!0,get isPlaying(){return r(Ni)},get ref(){return Je.playButton},set ref(Di){Je.playButton=Di}}),g(Tt),b(Ze,Tt)};R(to,Ze=>{r(vo)&&Ze(Io)})}var No=M(to,2);let Do;var ko=h(No);gd(ko,{get position(){return Me()},get duration(){return J()}}),g(No),k(Ze=>Do=te(No,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Do,Ze),[()=>({fullscreen:U()})]),b(it,pt)};R(er,it=>{ne()&&d()!=="inactive"&&it(pr)})}var Zi=M(er,2);let Xi;var kn=h(Zi);let En;var ho=h(kn);te(ho,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Ji=h(ho);{var An=it=>{Po(it,{get disabled(){return r(ni)},get ref(){return Je.replayButton},set ref(pt){Je.replayButton=pt},children:(pt,Si)=>{nl(pt,{get disabled(){return r(ni)},click:si})},$$slots:{default:!0}})};R(Ji,it=>{di&&it(An)})}var Bo=M(Ji,2);{var Mr=it=>{Po(it,{get ref(){return Je.liveButton},set ref(pt){Je.liveButton=pt},children:(pt,Si)=>{Id(pt,{get isLiveActive(){return r(Cn)},isMobile:!0,get ariaLabel(){return r(pn)}})},$$slots:{default:!0}})};R(Bo,it=>{!ne()&&I()&&it(Mr)})}var Pn=M(Bo,2);{var fr=it=>{let pt=m(()=>ne()?Me():Le()),Si=m(()=>ne()?J():j());cd(it,{get showDuration(){return r(wn)},get position(){return r(pt)},get duration(){return r(Si)},isMobile:!0,get ref(){return Je.time},set ref(eo){Je.time=eo}})};R(Pn,it=>{r(jn)&&it(fr)})}var Mn=M(Pn,2);let Ln=m(()=>!r(dn));Po(Mn,{className:"w-max",get disabled(){return r(Ln)},get ref(){return Je.episodes},set ref(it){Je.episodes=it},children:(it,pt)=>{var Si=qe(),eo=me(Si);{var to=Io=>{var No=ly(),Do=M(me(No),2);_d(Do,{get position(){return Le()},get duration(){return j()},timeCodes:Ke}),b(Io,No)};R(eo,Io=>{r(dn)&&Io(to)})}b(it,Si)},$$slots:{default:!0}});var Lr=M(Mn,2);{var tr=it=>{Po(it,{get ref(){return Je.settings},set ref(pt){Je.settings=pt},children:(pt,Si)=>{tl(pt,{ref$:Wi})},$$slots:{default:!0}})};R(Lr,it=>{r(ln)&&it(tr)})}var mr=M(Lr,2);{var ir=it=>{Po(it,{get ref(){return Je.fullscreen},set ref(pt){Je.fullscreen=pt},children:(pt,Si)=>{fd(pt,{get click(){return e.toggleFullscreen},get isFullscreen(){return U()}})},$$slots:{default:!0}})};R(mr,it=>{r(ur)&&it(ir)})}g(ho),ct(ho,it=>Re(it),()=>Re());var Vn=M(ho,2);hd(Vn,{get isAds(){return ne()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return Je.timeline},set ref(it){Je.timeline=it}}),g(kn),g(Zi),ct(Zi,it=>N(it),()=>N());var ti=M(Zi,2);{var Wo=it=>{yd(it,{get ref(){return Je.interactiveTimeIndicator},set ref(pt){Je.interactiveTimeIndicator=pt}})};R(ti,it=>{Nt&&it(Wo)})}k((it,pt)=>{Xi=te(Zi,1,"wrapper-bottom svelte-1afsgkw",null,Xi,it),En=te(kn,1,"controls-wrapper svelte-1afsgkw",null,En,pt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:U()})]),b(t,Qi),K(),o()}st(["click"]);function kd(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C(I,"$isMobile",i),a=v(e,"bottomNoSmooth",3,!1),s=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),l=v(e,"isAds",3,!1),p=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),_=v(e,"isOneVideoPlaylist",3,!1),u=v(e,"customFullscreenSupported",3,!0),$=v(e,"endScreenShown",3,!1),w=v(e,"onDisabledPlayPrevChapterClick",3,im.noop),y=v(e,"onDisabledSeekToInteractiveClick",3,im.noop),I=Te().ui.isMobile,A=ee(!1);Dt(()=>{let V=setTimeout(()=>O(A,!0),0);return()=>clearTimeout(V)});var P=qe(),E=me(P);{var T=V=>{var z=qe(),Y=me(z);{var U=X=>{tm(X,{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 f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return _()},get customFullscreenSupported(){return u()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})},Z=X=>{Gf(X,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return _()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})};R(Y,X=>{n()?X(U):X(Z,!1)})}b(V,z)};R(E,V=>{r(A)&&V(T)})}b(t,P),K(),o()}var uy=be('<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 om(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=uy();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),b(t,o)}function nm(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);om(t,{get style(){return r(o)}})}var py=be('<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 rm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=py();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),b(t,o)}var fy=be('<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 sm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=fy();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),b(t,o)}function au(t,e){let i=v(e,"isOff",3,!1);var o=qe(),n=me(o);{var a=d=>{sm(d,{})},s=d=>{rm(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var my=be('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function am(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=my();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),b(t,o)}function lm(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);am(t,{get style(){return r(o)}})}var vy=be('<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 dm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=vy();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),b(t,o)}function cm(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);dm(t,{get style(){return r(o)}})}var gy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),hy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),_y=L("<div><!></div>"),by={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;
|
|
263
|
+
}`};function sm(t,e){var mn,Ko;q(e,!0),Q(t,py);let[i,o]=Fe(),n=()=>C(di,"$seekToInteractiveDisabledTooltip$",i),a=()=>C(ko,"$disabledControls$",i),s=()=>C(gt,"$playbackState$",i),d=()=>C(bt,"$adPlaybackState",i),l=()=>C(Be,"$isEnded$",i),p=()=>C(Gt,"$playerSize",i),f=()=>C(Se,"$scrubbingInProgress",i),_=()=>C(Jt,"$chromecastState$",i),u=()=>C(ut,"$isPictureInPictureActive",i),$=()=>C(Qt,"$pictureInPictureType$",i),w=()=>C(De,"$mobileNotReportControlHidden$",i),y=()=>C(lt,"$playerPhase",i),S=()=>C(Eo,"$currentGridType$",i),I=()=>C(re,"$isLive$",i),A=()=>C(Je,"$settingsMenuVisible",i),P=()=>C(he,"$isRewindableLive$",i),E=()=>C(se,"$isActiveLive$",i),T=()=>C(ao,"$isInteractiveTime$",i),V=()=>C(qt,"$isAudioAvailable$",i),U=()=>C(Qi,"$settingButtonRef$",i),Y=()=>C(Ui,"$startedByKeyboard$",i),F=()=>C(z,"$isFullscreen",i),j=()=>C(pt,"$mobileUnmuteButtonVisible",i),X=()=>C(W,"$muted$",i),oe=()=>C(Ze,"$mobileUnmuteButtonExpanded",i),pe=()=>C(zi,"$additionalButtons$",i),le=()=>C(Ai,"$crashed$",i),Ve=()=>C(St,"$graphIsOpened$",i),Me=()=>C(Vt,"$adPosition",i),J=()=>C(Fo,"$adDuration",i),Le=()=>C(st,"$position$",i),Z=()=>C(Et,"$duration$",i),B=v(e,"playerControlsWrapperRef",15,void 0),Re=v(e,"playerControlsRef",15,void 0),ne=v(e,"isAds",3,!1),ke=v(e,"logoTargetUrl",3,""),Ne=v(e,"isOneVideoPlaylist",3,!1),fe=v(e,"customFullscreenSupported",3,!0),D=we(),de=so(),Ee=Wt(),Ye=D.actions.internal.toggleMuted,dt=D.actions.internal.togglePlay,Ae=D.actions.internal.pause,$e=D.actions.internal.prevVideoClick,Pe=D.actions.internal.nextVideoClick,rt=(mn=D.callbacks)==null?void 0:mn.onAudioDoesNotExistHint,vt=(Ko=D.callbacks)==null?void 0:Ko.onAudioDisabledHint,lt=D.playerPhase,Et=D.state.duration$,st=D.state.positionWithScrubbing$,gt=D.state.playbackState$,qt=D.state.isAudioAvailable$,Yt=D.state.isAudioDisabled,Be=D.state.isEnded$,re=D.state.isLive$,W=D.state.muted$,se=D.state.isActiveLive$,he=D.state.isRewindableLive$,Se=D.ui.scrubbingInProgress,De=D.ui.mobileNotReportControlHidden$,{isActive$:ut,type$:Qt}=de.pictureInPicture$,Ze=D.ui.mobileUnmuteButtonExpanded,pt=D.ui.mobileUnmuteButtonVisible,Je=D.ui.settingsMenu.visible$,Pt=D.ui.settingsMenu.openedByBtnKeyboard$,ri=D.ui.controls,Ge=D.actions.internal.getVideoEpisodes(),ot=D.webApi.pictureInPictureApi,Jt=D.state.chromecastState$,Ai=D.state.crashed$,ko=ri.disabledControls$,Ui=D.ui.startedByKeyboard$,Eo=D.ui.currentGridType$,Fo=D.ads.duration,Vt=D.ads.position,bt=D.ads.playbackState,z=D.ui.isFullscreen,Gt=D.ui.playerSize,zi=D.ui.additionalButtonsDeprecated$,Vi=D.actions.internal.getVideoElement,vi=D.actions.internal.replayInteractive,ei=D.state.isInteractive,ao=D.state.isInteractiveTime$,ho=D.state.showInteractiveGraph,qi=D.state.showSeekToInteractive,Uo=D.state.showPlayPrevChapter,Ot=D.state.showInteractiveTimeIndicator,di=de.seekToInteractiveDisabledTooltip$,St=de.graphIsOpened$,Kt=m(()=>H(D.state.playPrevChapterDisabledTooltip)),Ao=m(()=>H(n())),Ki=m(()=>a().has("EPISODE_BUTTON")),li=m(()=>a().has("GRAPH_BUTTON")),_o=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),zo=m(()=>a().has("PLAY_BUTTON")),si=m(()=>a().has("REPLAY_BUTTON")),xt=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),gi=m(()=>s()===ll.PlaybackState.PLAYING),Wi=m(()=>d()==="paused"),Ri=m(()=>l()&&!ne()&&!ei),bo=m(()=>!l()||ne()),xi=m(()=>e.showNextPrevButtons&&!ne()&&e.prevButtonActive),$o=m(()=>e.showNextPrevButtons&&!ne()&&e.nextButtonActive),Cn=m(()=>p().width>300),sn=m(()=>p().width>400),wi=m(f),Tn=m(()=>_()!==ll.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!ei),an=m(()=>y()==="LiveWaitingStart"),Po=m(()=>!!ot&&_()!==ll.ChromecastState.CONNECTED&&!w()&&($()===1&&r(an)||!r(an))&&!r(wi)&&!ei),In=m(()=>!r(wi)&&Oi(S(),"s")),ar=m(()=>!e.logoHidden&&p().width>350),lr=m(()=>Ee.features.fullscreen&&!(u()&&$()===1)&&(ei?fe():!0)&&!r(wi)),On=m(()=>(!I()||ne())&&p().width>260&&!r(wi)&&!(Ee.features.interactiveHideTime&&ei)),Hn=m(()=>A()||e.showControls),ln=m(()=>!ne()&&!I()&&!!(Ge!=null&&Ge.length)&&r(Cn)&&!r(Ki)&&!r(wi)),dn=m(()=>!P()||!!E()),dr=m(()=>ho&&Oi(S(),"m")),it=me({}),ji=(0,b1.debounceFn)(lu,260);Ke(()=>{p(),T(),ji(Vi(),ri,it,e.showControls)});let cr=()=>D.actions.internal.toggleChromecast();function Fn(){Cs({isAudioDisabled:Yt,audioDisabledHintCallback:vt,isAudioAvailable:V(),audioIsNotExistHintCallback:rt})&&Ye()}async function cn(){ot!=null&&ot.isActive()?await(ot==null?void 0:ot.remove()):await(ot==null?void 0:ot.request())}function un(){!Yt&&V()&&pt.set(!1),Fn()}let Mo=ee(""),yo=(nt,Mt)=>{if(!nt){O(Mo,me(H("tooltip_live")));return}Mt&&Mt===ll.PlaybackState.PAUSED&&O(Mo,me(H("tooltip_play")))};Ke(()=>{yo(r(dn),s())});let Qi=ae();Ke(()=>{U()&&Za(U(),A(),Pt)}),Ke(()=>{du(Ui,Y(),it.playButton)});var Zi=uy(),Un=ue(Zi);{var zn=nt=>{var Mt=sy(),Si=ue(Mt);let ti;var Xi=M(Si,2);let So;var Co=h(Xi);{var Wo=Xe=>{let Ht=m(()=>V()&&!Yt&&oe());uu(Xe,{get muted(){return X()},get expanded(){return r(Ht)},click:un,get ref(){return it.volume},set ref(_i){it.volume=_i}})};R(Co,Xe=>{(!V()||j())&&Xe(Wo)})}g(Xi);var Qo=M(Xi,2);let et;var It=h(Qo);bi(It,1,pe,({iconUrl:Xe,ariaLabel:Ht,testId:_i,onClick:hn,tooltip:_n})=>Xe,(Xe,Ht)=>{let _i=()=>r(Ht).iconUrl,hn=()=>r(Ht).ariaLabel,_n=()=>r(Ht).testId,An=()=>r(Ht).onClick,Jn=()=>r(Ht).tooltip,Ce=m(()=>{var ft;return(ft=hn())!=null?ft:Jn()});tm(Xe,{get iconUrl(){return _i()},get ariaLabel(){return r(Ce)},get testId(){return _n()},get onClick(){return An()}})});var ai=M(It,2);{var Pi=Xe=>{Id(Xe,{get ref(){return it.autoplayNextToggle},set ref(Ht){it.autoplayNextToggle=Ht}})};R(ai,Xe=>{e.showAutoplayNext&&!Ne()&&Xe(Pi)})}var Ni=M(ai,2);{var Ci=Xe=>{_d(Xe,{isMobile:!0,click:cr,get state(){return _()},get ref(){return it.chromecast},set ref(Ht){it.chromecast=Ht}})};R(Ni,Xe=>{r(Tn)&&Xe(Ci)})}var co=M(Ni,2);{var Ti=Xe=>{rm(Xe,{click:cn,get isPictureInPictureActive(){return u()},get ref(){return it.pip},set ref(Ht){it.pip=Ht}})};R(co,Xe=>{r(Po)&&Xe(Ti)})}var vn=M(co,2);{var vr=Xe=>{ol(Xe,{ref$:Qi})};R(vn,Xe=>{le()&&Xe(vr)})}var En=M(vn,2);{var Mr=Xe=>{hd(Xe,{click:Ae,get targetUrl(){return ke()},get logoClickable(){return e.logoClickable},get ref(){return it.vkLogo},set ref(Ht){it.vkLogo=Ht}})};R(En,Xe=>{r(ar)&&Xe(Mr)})}g(Qo);var uo=M(Qo,2);let Lr;var Zn=h(uo);{var qr=Xe=>{let Ht=m(()=>$e.bind(null,!0));fa(Xe,{get click(){return r(Ht)},type:"prev",isMobile:!0,get ref(){return it.prevButton},set ref(_i){it.prevButton=_i}})};R(Zn,Xe=>{r(xi)&&Xe(qr)})}var gr=M(Zn,2);{var Vr=Xe=>{al(Xe,{get disabled(){return r(zo)},click:dt,isMobile:!0,get isPlaying(){return r(gi)},get ref(){return it.playButton},set ref(Ht){it.playButton=Ht}})};R(gr,Xe=>{r(bo)&&Xe(Vr)})}var hr=M(gr,2);{var Vo=Xe=>{sl(Xe,{get disabled(){return r(si)},click:dt,isMobile:!0,get ref(){return it.replayButton},set ref(Ht){it.replayButton=Ht}})};R(hr,Xe=>{r(Ri)&&Xe(Vo)})}var gn=M(hr,2);{var Kr=Xe=>{let Ht=m(()=>Pe.bind(null,!0));fa(Xe,{get click(){return r(Ht)},type:"next",isMobile:!0,get ref(){return it.nextButton},set ref(_i){it.nextButton=_i}})};R(gn,Xe=>{r($o)&&Xe(Kr)})}g(uo);var _r=M(uo,2);{var Xn=Xe=>{var Ht=ry(),_i=ue(Ht);{var hn=ft=>{var Rt=iy();let Ut;Rt.__click=[ey,xt,e,Kt];var Yi=h(Rt);let ci=m(()=>!e.showControls);Td(Yi,{get hidden(){return r(ci)},get disabled(){return r(xt)},get click(){return e.playPrevChapter},get ref(){return it.playPrevChapterButton},set ref(jt){it.playPrevChapterButton=jt}}),g(Rt),k(jt=>Ut=te(Rt,1,"wrapper-middle-left svelte-1afsgkw",null,Ut,jt),[()=>({fullscreen:F(),hidden:!e.showControls})]),b(ft,Rt)};R(_i,ft=>{Uo&&ft(hn)})}var _n=M(_i,2);{var An=ft=>{var Rt=oy();let Ut;var Yi=h(Rt);let ci=m(()=>!e.showControls&&!Ve());Ed(Yi,{get hidden(){return r(ci)},get disabled(){return r(li)},get click(){return St.toggle},get graphIsOpened(){return Ve()},get ref(){return it.interactiveGraphButton},set ref(jt){it.interactiveGraphButton=jt}}),g(Rt),k(jt=>Ut=te(Rt,1,Kl(Uo?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",Ut,jt),[()=>({fullscreen:F(),hidden:!e.showControls&&!Ve()})]),b(ft,Rt)};R(_n,ft=>{r(dr)&&ft(An)})}var Jn=M(_n,2);{var Ce=ft=>{var Rt=ny();let Ut;Rt.__click=[ty,_o,e,Ao];var Yi=h(Rt);let ci=m(()=>!e.showControls);kd(Yi,{get hidden(){return r(ci)},get disabled(){return r(_o)},get click(){return e.seekToInteractive},get ref(){return it.seekToInteractiveButton},set ref(jt){it.seekToInteractiveButton=jt}}),g(Rt),k(jt=>Ut=te(Rt,1,"wrapper-middle-right svelte-1afsgkw",null,Ut,jt),[()=>({fullscreen:F(),hidden:!e.showControls})]),b(ft,Rt)};R(Jn,ft=>{qi&&ft(Ce)})}b(Xe,Ht)};R(_r,Xe=>{ei&&!f()&&Xe(Xn)})}k((Xe,Ht,_i,hn)=>{ti=te(Si,1,"overlay-mobile svelte-1afsgkw",null,ti,Xe),So=te(Xi,1,"wrapper-top-left svelte-1afsgkw",null,So,Ht),et=te(Qo,1,"wrapper-top-right svelte-1afsgkw",null,et,_i),Lr=te(uo,1,"wrapper-middle svelte-1afsgkw",null,Lr,hn)},[()=>({hidden:!r(Hn)}),()=>({hidden:!e.showControls,fullscreen:F()}),()=>({hidden:!e.showControls&&!w(),fullscreen:F()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(nt,Mt)};R(Un,nt=>{ne()||nt(zn)})}var Pr=M(Un,2);{var qn=nt=>{var Mt=dy(),Si=ue(Mt);{var ti=et=>{var It=ay();let ai;var Pi=h(It);uu(Pi,{get muted(){return X()},expanded:!1,click:un,get ref(){return it.volume},set ref(Ni){it.volume=Ni}}),g(It),k(Ni=>ai=te(It,1,"wrapper-top-right svelte-1afsgkw",null,ai,Ni),[()=>({fullscreen:F()})]),b(et,It)};R(Si,et=>{j()&&et(ti)})}var Xi=M(Si,2);{var So=et=>{var It=ly(),ai=h(It);let Pi=m(()=>!r(Wi));al(ai,{get disabled(){return r(zo)},click:dt,isMobile:!0,get isPlaying(){return r(Pi)},get ref(){return it.playButton},set ref(Ni){it.playButton=Ni}}),g(It),b(et,It)};R(Xi,et=>{r(Wi)&&et(So)})}var Co=M(Xi,2);let Wo;var Qo=h(Co);bd(Qo,{get position(){return Me()},get duration(){return J()}}),g(Co),k(et=>Wo=te(Co,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Wo,et),[()=>({fullscreen:F()})]),b(nt,Mt)};R(Pr,nt=>{ne()&&d()!=="inactive"&&nt(qn)})}var lo=M(Pr,2);let xo;var pn=h(lo);let kn;var Lo=h(pn);te(Lo,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Gi=h(Lo);{var qo=nt=>{Io(nt,{get disabled(){return r(si)},get ref(){return it.replayButton},set ref(Mt){it.replayButton=Mt},children:(Mt,Si)=>{sl(Mt,{get disabled(){return r(si)},click:vi})},$$slots:{default:!0}})};R(Gi,nt=>{ei&&nt(qo)})}var wo=M(Gi,2);{var ur=nt=>{Io(nt,{get ref(){return it.liveButton},set ref(Mt){it.liveButton=Mt},children:(Mt,Si)=>{Ad(Mt,{get isLiveActive(){return r(dn)},isMobile:!0,get ariaLabel(){return r(Mo)}})},$$slots:{default:!0}})};R(wo,nt=>{!ne()&&I()&&nt(ur)})}var fn=M(wo,2);{var Kn=nt=>{let Mt=m(()=>ne()?Me():Le()),Si=m(()=>ne()?J():Z());fd(nt,{get showDuration(){return r(sn)},get position(){return r(Mt)},get duration(){return r(Si)},isMobile:!0,get ref(){return it.time},set ref(ti){it.time=ti}})};R(fn,nt=>{r(On)&&nt(Kn)})}var Wn=M(fn,2);let Qn=m(()=>!r(ln));Io(Wn,{className:"w-max",get disabled(){return r(Qn)},get ref(){return it.episodes},set ref(nt){it.episodes=nt},children:(nt,Mt)=>{var Si=qe(),ti=ue(Si);{var Xi=So=>{var Co=cy(),Wo=M(ue(Co),2);yd(Wo,{get position(){return Le()},get duration(){return Z()},timeCodes:Ge}),b(So,Co)};R(ti,So=>{r(ln)&&So(Xi)})}b(nt,Si)},$$slots:{default:!0}});var pr=M(Wn,2);{var Gn=nt=>{Io(nt,{get ref(){return it.settings},set ref(Mt){it.settings=Mt},children:(Mt,Si)=>{ol(Mt,{ref$:Qi})},$$slots:{default:!0}})};R(pr,nt=>{r(In)&&nt(Gn)})}var fr=M(pr,2);{var Yn=nt=>{Io(nt,{get ref(){return it.fullscreen},set ref(Mt){it.fullscreen=Mt},children:(Mt,Si)=>{gd(Mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return F()}})},$$slots:{default:!0}})};R(fr,nt=>{r(lr)&&nt(Yn)})}g(Lo),ct(Lo,nt=>Re(nt),()=>Re());var jn=M(Lo,2);$d(jn,{get isAds(){return ne()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return it.timeline},set ref(nt){it.timeline=nt}}),g(pn),g(lo),ct(lo,nt=>B(nt),()=>B());var oi=M(lo,2);{var mr=nt=>{Sd(nt,{get ref(){return it.interactiveTimeIndicator},set ref(Mt){it.interactiveTimeIndicator=Mt}})};R(oi,nt=>{Ot&&nt(mr)})}k((nt,Mt)=>{xo=te(lo,1,"wrapper-bottom svelte-1afsgkw",null,xo,nt),kn=te(pn,1,"controls-wrapper svelte-1afsgkw",null,kn,Mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:F()})]),b(t,Zi),K(),o()}at(["click"]);function Pd(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(I,"$isMobile",i),a=v(e,"bottomNoSmooth",3,!1),s=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),l=v(e,"isAds",3,!1),p=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),_=v(e,"isOneVideoPlaylist",3,!1),u=v(e,"customFullscreenSupported",3,!0),$=v(e,"endScreenShown",3,!1),w=v(e,"onDisabledPlayPrevChapterClick",3,am.noop),y=v(e,"onDisabledSeekToInteractiveClick",3,am.noop),I=we().ui.isMobile,A=ee(!1);Ft(()=>{let V=setTimeout(()=>O(A,!0),0);return()=>clearTimeout(V)});var P=qe(),E=ue(P);{var T=V=>{var U=qe(),Y=ue(U);{var F=X=>{sm(X,{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 f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return _()},get customFullscreenSupported(){return u()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})},j=X=>{Jf(X,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return _()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})};R(Y,X=>{n()?X(F):X(j,!1)})}b(V,U)};R(E,V=>{r(A)&&V(T)})}b(t,P),K(),o()}var fy=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=fy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),b(t,o)}function dm(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);lm(t,{get style(){return r(o)}})}var my=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=my();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),b(t,o)}var vy=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=vy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),b(t,o)}function pu(t,e){let i=v(e,"isOff",3,!1);var o=qe(),n=ue(o);{var a=d=>{um(d,{})},s=d=>{cm(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var gy=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=gy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),b(t,o)}function fm(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);pm(t,{get style(){return r(o)}})}var hy=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=hy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),b(t,o)}function vm(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);mm(t,{get style(){return r(o)}})}var _y=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),by=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),$y=L("<div><!></div>"),yy={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
|
|
264
264
|
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"],
|
|
265
265
|
.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"],
|
|
266
266
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
|
|
@@ -275,21 +275,21 @@ Try switching the\xA0quality to\xA0Auto.`},Sh=b_;var ns=new Map;ns.set(qa.Interf
|
|
|
275
275
|
@keyframes svelte-1ad3n06-fadeOut {
|
|
276
276
|
0% {opacity:1;}
|
|
277
277
|
100% {opacity:0;}
|
|
278
|
-
}`};function
|
|
279
|
-
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function
|
|
278
|
+
}`};function gm(t,e){q(e,!0),Q(t,yy);let[i,o]=Fe(),n=()=>C(e.data,"$data",i),s=we().ui.t,d=m(()=>!n()),l=m(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),p=m(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=m(()=>{var S;return(S=n())==null?void 0:S.type}),_=m(()=>{var S,I;return(S=n())!=null&&S.t?s(n().t.key,{value:n().t.value||""}):(I=n())==null?void 0:I.text});var u=$y();let $;var w=h(u);{var y=S=>{var I=by(),A=ue(I),P=h(A);{var E=fe=>{let D=m(()=>r(f)==="FORWARD_SEEK");dm(fe,{get reversed(){return r(D)}})};R(P,fe=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&fe(E)})}var T=M(P,2);{var V=fe=>{ss(fe,{})};R(T,fe=>{r(f)==="PAUSE"&&fe(V)})}var U=M(T,2);{var Y=fe=>{Er(fe,{})};R(U,fe=>{r(f)==="PLAY"&&fe(Y)})}var F=M(U,2);{var j=fe=>{Cd(fe,{})};R(F,fe=>{r(f)==="REPLAY"&&fe(j)})}var X=M(F,2);{var oe=fe=>{pu(fe,{isOff:!0})};R(X,fe=>{r(f)==="SUBTITLES_OFF"&&fe(oe)})}var pe=M(X,2);{var le=fe=>{pu(fe,{})};R(pe,fe=>{r(f)==="SUBTITLES_ON"&&fe(le)})}var Ve=M(pe,2);{var Me=fe=>{let D=m(()=>r(f)==="RATE_UP");fm(fe,{get reversed(){return r(D)}})};R(Ve,fe=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&fe(Me)})}var J=M(Ve,2);{var Le=fe=>{let D=m(()=>r(f)==="EPISODE_NEXT");vm(fe,{get reversed(){return r(D)}})};R(J,fe=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&fe(Le)})}var Z=M(J,2);{var B=fe=>{Is(fe,{volume:0})};R(Z,fe=>{r(f)==="MUTE"&&fe(B)})}var Re=M(Z,2);{var ne=fe=>{Is(fe,{volume:1})};R(Re,fe=>{r(f)==="VOLUME"&&fe(ne)})}g(A);var ke=M(A,2);{var Ne=fe=>{var D=_y(),de=h(D,!0);g(D),k(()=>ve(de,r(_))),b(fe,D)};R(ke,fe=>{r(_)&&fe(Ne)})}b(S,I)};R(w,S=>{!r(d)&&r(f)&&S(y)})}g(u),k(S=>$=te(u,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(p)})]),b(t,u),K(),o()}var xy=be('<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 hm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=xy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}var wy=be('<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 _m(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=wy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}function As(t,e){q(e,!0);let i=v(e,"direction",3,"left"),o=v(e,"useBtnColor",3,!1),n=m(()=>["up","down"].includes(i())),a=m(()=>["right","down"].includes(i())),s=m(()=>(()=>{let _="";return r(a)&&(_+="transform: rotate(180deg);"),o()&&(_+="color: var(--btn-color, #fff);"),_.length?_:void 0})());var d=qe(),l=ue(d);{var p=_=>{let u=m(()=>r(a)?"chevron-icon--down":"chevron-icon--up");hm(_,{get style(){return r(s)},get"data-testid"(){return r(u)}})},f=_=>{let u=m(()=>r(a)?"chevron-icon--right":"chevron-icon--left");_m(_,{get style(){return r(s)},get"data-testid"(){return r(u)}})};R(l,_=>{r(n)?_(p):_(f,!1)})}b(t,d),K()}var Sy=(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}},Cy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Ty=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>'),Iy={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 Md(t,e){q(e,!0),Q(t,Iy);let i=v(e,"isShifted",3,!1),o=we(),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),f=H("aria_label_spherical_control");var _=Ty();let u;_.__keydown=[Sy,n,a,s,l,d],_.__keyup=[Cy,n,p],Oe(_,"aria-label",f);var $=h(_),w=h($),y=h(w);y.__mousedown=a,y.__mouseup=p;var S=h(y);As(S,{direction:"up",useBtnColor:!0}),g(y);var I=M(y,2);I.__mousedown=d,I.__mouseup=p;var A=h(I);As(A,{direction:"up",useBtnColor:!0}),g(I),g(w);var P=M(w,2),E=h(P);E.__mousedown=l,E.__mouseup=p;var T=h(E);As(T,{direction:"up",useBtnColor:!0}),g(E);var V=M(E,2);V.__mousedown=s,V.__mouseup=p;var U=h(V);As(U,{direction:"up",useBtnColor:!0}),g(V),g(P),g($),g(_),k(Y=>u=te(_,1,"immersive-controls svelte-1yzc86r",null,u,Y),[()=>({"m-shifted":i()})]),At("mouseleave",y,p),At("mouseleave",I,p),At("mouseleave",E,p),At("mouseleave",V,p),b(t,_),K()}at(["keydown","keyup","mousedown","mouseup"]);var ls=require("@vkontakte/videoplayer-shared/es2018");var $1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var fu=class{constructor(){this.flickeringTimeout=$1(1e3);this.subscriptions=new ls.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new ls.ValueSubject([]);this.captionsPrepared$=new ls.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,ls.filter)(()=>this.isEnabled()),(0,ls.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 ky=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Ey=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),Ay=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Py=L('<div><span class="caption svelte-c2x749"><!></span></div>'),My=L("<div><!></div>"),Ly={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;
|
|
279
|
+
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ld(t,e){q(e,!0),Q(t,Ly);let[i,o]=Fe(),n=()=>C(_,"$currentSubtitle$",i),a=()=>C($,"$isLive$",i),s=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),l=v(e,"isMobile",3,!1),p=we(),f=Wt(),_=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,$=p.state.isLive$,w=p.ui.isFullscreen,y=m(()=>!!n().isAuto),S=m(()=>!!a()),I=m(()=>e.playerSize.width*.02),A=m(()=>l()&&!s()||r(I)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(I)),P=ee(null);Ke(()=>{var j,X,oe;(j=r(P))==null||j.setIsAuto(r(y)),(X=r(P))==null||X.setIsLive(r(S)),(oe=r(P))==null||oe.setCaptions(e.captions)});let E=ee(me([[]]));Ft(()=>{O(P,me(new fu().subscribe()));let j=r(P).captionsPrepared$.subscribe(X=>{O(E,me(X))});return()=>{var X;(X=r(P))==null||X.destroy(),j.unsubscribe()}}),Ft(()=>{if(r(y)){let j=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(j)}}else u.set(!1)});let T=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=My();let U;var Y=h(V);{var F=j=>{var X=Py();let oe;var pe=h(X),le=h(pe);{var Ve=J=>{var Le=ky(),Z=h(Le),B=h(Z,!0);g(Z),g(Le),k(Re=>{var ne;tt(Z,`font-size: ${(ne=r(A))!=null?ne:""}px`),ve(B,Re)},[()=>H("subtitles_auto_caption")]),b(J,Le)},Me=(J,Le)=>{{var Z=Re=>{var ne=qe(),ke=ue(ne);bi(ke,17,()=>r(E),Ul,(Ne,fe)=>{var D=Ey(),de=h(D);bi(de,21,()=>r(fe),({value:Ee,timeAppeared:Ye})=>Ye,(Ee,Ye)=>{let dt=()=>r(Ye).value,Ae=()=>r(Ye).timeAppeared;var $e=qe(),Pe=ue($e);{var rt=vt=>{var lt=ir();k(()=>ve(lt,dt())),b(vt,lt)};R(Pe,vt=>{(!Ae()||Ae()<=e.position)&&vt(rt)})}b(Ee,$e)}),g(de),g(D),k(()=>{var Ee;return tt(de,`font-size: ${(Ee=r(A))!=null?Ee:""}px`)}),b(Ne,D)}),b(Re,ne)},B=Re=>{var ne=qe(),ke=ue(ne);bi(ke,17,()=>e.captions,({value:Ne})=>Ne,(Ne,fe)=>{let D=()=>r(fe).value;var de=Ay(),Ee=h(de),Ye=h(Ee,!0);g(Ee),g(de),k(()=>{var dt;tt(Ee,`font-size: ${(dt=r(A))!=null?dt:""}px`),ve(Ye,D())}),b(Ne,de)}),b(Re,ne)};R(J,Re=>{var ne;r(y)&&((ne=r(E))!=null&&ne.length)?Re(Z):Re(B,!1)},Le)}};R(le,J=>{r(y)&&d()?J(Ve):J(Me,!1)})}g(pe),g(X),k(J=>{var Le;oe=te(X,1,"subtitles-caption svelte-c2x749",null,oe,J),tt(X,`--subtitles-caption-margin: ${(Le=r(T))!=null?Le:""}%`)},[()=>({mobile:l()})]),b(j,X)};R(Y,j=>{var X;(e.captions.length||(X=r(E))!=null&&X.length)&&j(F)})}g(V),k(j=>U=te(V,1,"subtitles-container svelte-c2x749",null,U,j),[()=>({shifted:e.shifted,auto:r(y)&&!r(S)&&!d()})]),b(t,V),K(),o()}var Vy=L('<div class="text svelte-raurnb"> </div>'),Ry=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>'),Ny={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 Vd(t,e){q(e,!0),Q(t,Ny);let i=Wt();var o=Ry();let n;var a=M(h(o),2);{var s=d=>{var l=Vy(),p=h(l);g(l),k(()=>{var f;return ve(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,l)};R(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),k(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),tt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),K()}var By=be('<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 bm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=By();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(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})),b(t,o)}var Dy=L('<div class="container svelte-13zpvm8"><!></div>'),Oy={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 Rd(t){Q(t,Oy);var e=Dy(),i=h(e);bm(i,{}),g(e),b(t,e)}var Hy=L('<div><div class="playButton svelte-1xnh9dd" tabindex="0" role="button"><div class="playButtonBackground svelte-1xnh9dd"></div> <!></div></div>'),Fy={hash:"svelte-1xnh9dd",code:".container.svelte-1xnh9dd {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, visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1xnh9dd {opacity:0;visibility:hidden;}.container.bgCover.svelte-1xnh9dd {background-size:cover;}.playButton.svelte-1xnh9dd {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-1xnh9dd {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, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1xnh9dd:hover .playButtonBackground:where(.svelte-1xnh9dd) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1xnh9dd svg {transform:scale(2);}"};function Nd(t,e){q(e,!0),Q(t,Fy);let i=we(),o=Wt(),n=i.ui.startedByKeyboard$,a=H("tooltip_play"),s=u=>{let $=u.code;["Enter","Space"].includes($)&&(u.stopPropagation(),u.preventDefault(),n.set(!0),e.startVideo())},d=u=>{u.stopPropagation(),e.startVideo()};var l=Hy();let p;l.__click=d;var f=h(l);f.__keydown=s,Oe(f,"aria-label",a);var _=M(h(f),2);return Er(_,{}),g(f),g(l),k(u=>{p=te(l,1,"container svelte-1xnh9dd",null,p,u),tt(l,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:o.features.previewNoEmptySpace})]),b(t,l),K({handlePressKey:s,handleClick:d})}at(["click","keydown"]);var Uy=L("<div> </div>"),zy={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(
|
|
280
280
|
0deg,
|
|
281
281
|
rgba(0, 0, 0, 0) 0%,
|
|
282
282
|
rgba(0, 0, 0, 0.02) 19%,
|
|
283
283
|
rgba(0, 0, 0, 0.10) 34%,
|
|
284
284
|
rgba(0, 0, 0, 0.40) 60%,
|
|
285
285
|
rgba(0, 0, 0, 0.60) 100%
|
|
286
|
-
);}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function
|
|
286
|
+
);}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function $m(t,e){Q(t,zy);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1);var n=Uy();let a;var s=h(n,!0);g(n),k(d=>{a=te(n,1,"title svelte-1bcvcf2",null,a,d),ve(s,i())},[()=>({hidden:o()})]),b(t,n)}var qy=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),Ky=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),Wy=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),Qy=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),Gy=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),Yy={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 ym(t,e){q(e,!0),Q(t,Yy);let i=ee(""),o=ee(""),n=ee(""),a=ee(""),s,d=P=>String(P).padStart(2,"0"),l=P=>{let E=Math.floor(P/86400);E&&(P-=E*86400,O(i,me(d(E))));let T=Math.floor(P/3600);O(o,me(d(T)));let V=Math.floor(P/60)%60;O(n,me(d(V)));let U=P%60;O(a,me(d(U)))},p=()=>{let P=Math.floor(Date.now()/1e3),E=e.startTime-P;l(E),E>=1?s=requestAnimationFrame(p):e.onTimerOver()};Ft(()=>{s=requestAnimationFrame(p)}),wn(()=>{cancelAnimationFrame(s)});var f=Gy(),_=h(f);{var u=P=>{var E=qy(),T=ue(E),V=h(T),U=h(V,!0);g(V);var Y=M(V,2),F=h(Y,!0);g(Y),g(T);var j=M(T,2),X=h(j,!0);g(j),k((oe,pe)=>{ve(U,r(i)),ve(F,oe),ve(X,pe)},[()=>H("waiting_live_day_value"),()=>H("waiting_live_colon")]),b(P,E)};R(_,P=>{r(i)&&P(u)})}var $=M(_,2);{var w=P=>{var E=Ky(),T=ue(E),V=h(T),U=h(V,!0);g(V);var Y=M(V,2),F=h(Y,!0);g(Y),g(T);var j=M(T,2),X=h(j,!0);g(j),k((oe,pe)=>{ve(U,r(o)),ve(F,oe),ve(X,pe)},[()=>H("waiting_live_hour_value"),()=>H("waiting_live_colon")]),b(P,E)};R($,P=>{r(o)&&P(w)})}var y=M($,2);{var S=P=>{var E=Wy(),T=ue(E),V=h(T),U=h(V,!0);g(V);var Y=M(V,2),F=h(Y,!0);g(Y),g(T);var j=M(T,2),X=h(j,!0);g(j),k((oe,pe)=>{ve(U,r(n)),ve(F,oe),ve(X,pe)},[()=>H("waiting_live_minute_value"),()=>H("waiting_live_colon")]),b(P,E)};R(y,P=>{r(n)&&P(S)})}var I=M(y,2);{var A=P=>{var E=Qy(),T=h(E),V=h(T,!0);g(T);var U=M(T,2),Y=h(U,!0);g(U),g(E),k(F=>{ve(V,r(a)),ve(Y,F)},[()=>H("waiting_live_second_value")]),b(P,E)};R(I,P=>{r(a)&&P(A)})}g(f),b(t,f),K()}var jy=be('<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 xm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=jy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(4),g(o),k(()=>n=xe(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})),b(t,o)}var Zy=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),Xy=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),Jy=L('<div class="waiting-container svelte-15pewff"><!></div>'),e4={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 Bd(t,e){q(e,!0),Q(t,e4);let i=ee(!1);Ke(()=>{O(i,me(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=Jy(),n=h(o);{var a=d=>{var l=Zy(),p=h(l),f=h(p);xm(f,{}),g(p);var _=M(p,2),u=h(_,!0);g(_),g(l),k($=>ve(u,$),[()=>H("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=Xy(),p=h(l),f=h(p,!0);g(p);var _=M(p,2);let u=m(()=>e.startTime||0);ym(_,{get startTime(){return r(u)},onTimerOver:()=>O(i,!0)}),g(l),k($=>ve(f,$),[()=>H("waiting_live_timer_title")]),b(d,l)};R(n,d=>{r(i)?d(a):d(s,!1)})}g(o),k(()=>tt(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),b(t,o),K()}var t4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),i4={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 ga(t,e){q(e,!0),Q(t,i4);let i=v(e,"thumbUrl",3,""),o={recover:H("waiting_live_recover_title"),record:H("waiting_record_title")},n=m(()=>o[e.kind]||"");var a=t4(),s=h(a),d=h(s);aa(d,{style:"position: static; transform: translate(0, 0)"});var l=M(d,2),p=h(l,!0);g(l),g(s),g(a),k(()=>{tt(a,`background-image: url('${i()}')`),ve(p,r(n))}),b(t,a),K()}var o4=be('<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 wm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=o4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),b(t,o)}var n4=L('<div class="select-icon svelte-124aexk"><!></div>'),r4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Dd(t){Q(t,r4);var e=n4(),i=h(e);wm(i,{}),g(e),b(t,e)}var s4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},a4=(t,e)=>{Ja(t,()=>e.item.selectItem(e.item.value))},l4=L("<p> </p>"),d4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),c4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),u4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
|
|
287
287
|
|
|
288
288
|
/**
|
|
289
289
|
* \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
|
|
290
290
|
* \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
|
|
291
291
|
*/margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
|
|
292
|
-
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function
|
|
292
|
+
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Sm(t,e){q(e,!0),Q(t,u4);let i=v(e,"isMobile",3,!1);var o=c4();let n;o.__click=[s4,e],o.__keydown=[a4,e];var a=h(o);{var s=w=>{Dd(w,{})};R(a,w=>{e.item.selected&&w(s)})}var d=M(a,2);let l;var p=h(d);{var f=w=>{var y=qe(),S=ue(y);$i(S,()=>e.item.valueComponent,(I,A)=>{A(I,os(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b(w,y)},_=w=>{var y=l4();let S;var I=h(y,!0);g(y),k(A=>{var P;S=te(y,1,"label svelte-1t7rx2m",null,S,A),ve(I,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),b(w,y)};R(p,w=>{e.item.valueComponent?w(f):w(_,!1)})}var u=M(p,2);{var $=w=>{var y=d4(),S=h(y,!0);g(y),k(()=>ve(S,e.item.sublabel)),b(w,y)};R(u,w=>{e.item.sublabel&&w($)})}g(d),g(o),k((w,y,S)=>{n=te(o,1,"item",null,n,w),Oe(o,"data-value",e.item.value),Oe(o,"aria-label",y),l=te(d,1,"menu-item-value svelte-1t7rx2m",null,l,S),Oe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),K()}at(["click","keydown"]);var p4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Cm(t,e){q(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>y=>Yc(y,r(n)));var s=p4();let d;s.__click=function(...y){var S;(S=r(n))==null||S.apply(this,y)},s.__keydown=function(...y){var S;(S=r(a))==null||S.apply(this,y)};var l=h(s);{var p=y=>{Dd(y,{})};R(l,y=>{e.item.selected&&y(p)})}var f=M(l,2);let _;var u=h(f);{var $=y=>{var S=qe();let I=m(()=>e.item.valueComponent);var A=ue(S);$i(A,()=>r(I),(P,E)=>{E(P,os(()=>{var T;return(T=e.item.valueComponentParams)!=null?T:{}}))}),b(y,S)},w=y=>{var S=ir();k(()=>ve(S,e.item.label)),b(y,S)};R(u,y=>{e.item.valueComponent?y($):y(w,!1)})}g(f),g(s),ct(s,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),k((y,S)=>{var I;d=te(s,1,"item",null,d,y),Oe(s,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Oe(s,"data-testid",e.item.id),_=te(f,1,"menu-item-value",null,_,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,s),K()}at(["click","keydown"]);var Ar={"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 m4=(t,e)=>{Oh(t,e.returnFromSubMenu,e.closeSettingsMenu)},v4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},g4=(t,e)=>{rd(t)&&(sr(t),e.returnFromSubMenu())},h4=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>'),_4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
|
|
293
293
|
/*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
|
|
294
294
|
/**
|
|
295
295
|
* \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
|
|
@@ -299,16 +299,47 @@ Try switching the\xA0quality to\xA0Auto.`},Sh=b_;var ns=new Map;ns.set(qa.Interf
|
|
|
299
299
|
var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
|
|
300
300
|
1px
|
|
301
301
|
);}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
|
|
302
|
-
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function xm(t,e){q(e,!0),Q(t,g4);let[i,o]=Ue(),n=()=>C(_,"$isFullscreen",i),a=()=>C(u,"$playerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),l=v(e,"ariaLabelReturnFromSubMenu",19,()=>H("aria_label_submenu_back")),p=v(e,"listRef",15);Dt(()=>{let oe=e.items.findIndex(ce=>ce.selected);p().children[oe+1].focus()});let f=Te(),_=f.ui.isFullscreen,u=f.ui.playerSize,$=ee(void 0),w=ee(0),y=ee(0),S=m(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),I=m(()=>Math.max(e.minWidth,r(w)));var A=v4();let P;var E=h(A);let T;E.__keydown=[p4,e];var V=h(E);let z;V.__click=[f4,e],V.__keydown=[m4,e];var Y=h(V);Es(Y,{direction:"left"});var U=M(Y,2),Z=h(U,!0);g(U),g(V),ct(V,oe=>O($,oe),()=>r($));var X=M(V,2);$i(X,17,()=>e.items,Ol,(oe,ce)=>{var le=qe(),Ve=me(le);{var Me=Le=>{bm(Le,{get item(){return r(ce)},get isMobile(){return s()}})},J=(Le,j)=>{{var N=Re=>{$m(Re,{get isMobile(){return s()},get item(){return r(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(Le,Re=>{r(ce).type==="OPEN_SUB_MENU"&&Re(N)},j)}};R(Ve,Le=>{r(ce).type==="SELECT_VALUE"?Le(Me):Le(J,!1)})}b(oe,le)}),g(E),ct(E,oe=>p(oe),()=>p()),g(A),k((oe,ce,le)=>{P=te(A,1,"sub-menu menu svelte-7dfsuh",null,P,oe),Oe(A,"data-testid",`sub-menu-${e.id}`),ot(A,`min-width: ${r(I)}px`),T=te(E,1,"items svelte-7dfsuh",null,T,ce),ot(E,r(S)),z=te(V,1,"item header back svelte-7dfsuh",null,z,le),Oe(V,"aria-label",l()),pe(Z,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Fr(V,"clientWidth",oe=>O(w,oe)),Fr(V,"clientHeight",oe=>O(y,oe)),b(t,A),K(),o()}st(["keydown","click"]);var b1=require("@vkontakte/videoplayer-shared/es2018");var h4=(t,e)=>qc(t,e()),_4=(t,e)=>{t.stopPropagation(),e()()},b4=L('<div class="value svelte-1ikfjte"> </div>'),$4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),y4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function wm(t,e){q(e,!0),Q(t,y4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,b1.noop),n=v(e,"valueComponent",3,void 0),a=v(e,"ref",15);var s=$4();let d;s.__click=[_4,o],s.__keydown=[h4,o];var l=h(s),p=h(l);{var f=I=>{fa(I,{get icon(){return e.icon}})},_=I=>{var A=qe();let P=m(()=>e.icon);var E=me(A);Vi(E,()=>r(P),(T,V)=>{V(T,{})}),b(I,A)};R(p,I=>{typeof e.icon=="string"?I(f):I(_,!1)})}g(l);var u=M(l,2),$=h(u,!0);g(u);var w=M(u,2);{var y=I=>{var A=qe();let P=m(n);var E=me(A);Vi(E,()=>r(P),(T,V)=>{V(T,{})}),b(I,A)},S=I=>{var A=b4(),P=h(A,!0);g(A),k(()=>pe(P,e.value)),b(I,A)};R(w,I=>{n()?I(y):I(S,!1)})}g(s),ct(s,I=>a(I),()=>a()),k(I=>{d=te(s,1,"item",null,d,I),Oe(s,"aria-label",e.ariaLabel),Oe(s,"data-testid",e.id),pe($,e.label)},[()=>({mobile:i()})]),b(t,s),K()}st(["click","keydown"]);var Sm=require("@vkontakte/videoplayer-shared/es2018");var x4=(t,e)=>{Za(t,()=>e())},w4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),S4=L('<img class="icon" aria-hidden="true">'),C4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),T4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Cm(t,e){q(e,!0),Q(t,T4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,Sm.noop),n=v(e,"closeSettings",3,Sm.noop),a=ee(!1),s=()=>{O(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var l=C4();let p;l.__click=d,l.__keydown=[x4,d];var f=h(l),_=h(f);{var u=S=>{var I=qe(),A=me(I);{var P=T=>{var V=w4();b(T,V)},E=T=>{var V=S4();k(()=>Oe(V,"src",e.icon)),Et("error",V,s),qs(V),b(T,V)};R(A,T=>{r(a)?T(P):T(E,!1)})}b(S,I)},$=S=>{var I=qe();let A=m(()=>e.icon);var P=me(I);Vi(P,()=>r(A),(E,T)=>{T(E,{})}),b(S,I)};R(_,S=>{typeof e.icon=="string"?S(u):S($,!1)})}g(f);var w=M(f,2),y=h(w,!0);g(w),g(l),k(S=>{var I;p=te(l,1,"item",null,p,S),Oe(l,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Oe(l,"data-testid",e.id),pe(y,e.label)},[()=>({mobile:i()})]),b(t,l),K()}st(["click","keydown"]);var $1=require("@vkontakte/videoplayer-shared/es2018");var I4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),k4={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 Tm(t,e){Q(t,k4);let i=v(e,"enabled",3,!1);var o=I4(),n=h(o);let a;_e(2),g(o),k(s=>a=te(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var E4=(t,e,i)=>{Nh(t,e(),o=>i()(o))},A4=(t,e,i)=>{t.stopPropagation(),e()(!i())},P4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),M4=L('<li role="menuitem" tabindex="0"><!></li>');function Im(t,e){q(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,$1.noop),n=v(e,"enabled",3,!1),a=v(e,"tooltipText",3,void 0),s=v(e,"maxTooltipWidth",3,void 0);var d=M4();let l;d.__click=[A4,o,n],d.__keydown=[E4,n,o];var p=h(d);aa(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(f,_)=>{var u=P4();let $;var w=h(u),y=h(w);{var S=T=>{fa(T,{get icon(){return e.icon}})},I=T=>{var V=qe();let z=m(()=>e.icon);var Y=me(V);Vi(Y,()=>r(z),(U,Z)=>{Z(U,{})}),b(T,V)};R(y,T=>{typeof e.icon=="string"?T(S):T(I,!1)})}g(w);var A=M(w,2),P=h(A,!0);g(A);var E=M(A,2);Tm(E,{get enabled(){return n()}}),g(u),k(T=>{$=te(u,1,"switch-wrapper",null,$,T),pe(P,e.label)},[()=>({mobile:i()})]),b(f,u)},$$slots:{default:!0}}),g(d),k(f=>{var _;l=te(d,1,"item switch-item",null,l,f),Oe(d,"aria-label",(_=e.ariaLabel)!=null?_:e.label),Oe(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),K()}st(["click","keydown"]);var Nd=require("@vkontakte/videoplayer-shared/es2018");var y1=()=>{let t=ee(ge([])),e=m(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,ge(r(t).slice(0,-1)))},popAllSubMenus:()=>{O(t,ge([]))}}};var L4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),V4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),R4={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 ga(t,e){q(e,!0),Q(t,R4);let i=v(e,"isSubCase",3,!1),o=m(()=>Gc(e.quality));var n=V4(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var p=f=>{var _=L4();let u=m(()=>r(o));var $=h(_);Vi($,()=>r(u),(w,y)=>{y(w,{})}),g(_),b(f,_)};R(l,f=>{r(o)&&!e.isMobile&&f(p)})}g(n),k(f=>{s=te(a,1,"svelte-t2qk8t",null,s,f),pe(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),K()}var C1=require("@vkontakte/videoplayer-shared/es2018");var km=require("@vkontakte/videoplayer-core/es2018");var x1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},w1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=x1({quality:t,availableQualities:e});return i?t===km.VideoQuality.INVARIANT?H("auto_quality_invariant"):H("auto_quality",{actual:o}):o},S1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===km.VideoQuality.INVARIANT?i:`${i}${x1({quality:t,availableQualities:e})}`:"...";var B4=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),N4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function al(t,e){q(e,!0),Q(t,N4);let[i,o]=Ue(),n=()=>C(l,"$currentQuality$",i),a=()=>C(p,"$availableQualities$",i),s=()=>C(f,"$isMobile$",i),d=Te(),l=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,_=" \xB7 ",u=m(()=>e.prefix+(e.selected&&n()!==C1.VideoQuality.INVARIANT?_:"")),$=m(()=>S1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=B4(),y=h(w);let S=m(()=>e.selected?n():void 0);ga(y,{get quality(){return r(S)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),K(),o()}var D4=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")},O4={br:!0,span:!0},Em=(t,e={})=>{var d,l,p,f,_,u,$;if(!t)return t;let i={...O4,...e},o=Object.keys(i);if(!o.length)return t;let n=D4(o),a=[],s=0;for(let w of t.matchAll(n)){let y=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:I}=w;if(!i[S]){a.push(t.slice(s,I)),s=I+y.length;continue}let A=(_=w.groups)!=null&&_.childrenhtml?Em(w.groups.childrenhtml,i):"",P=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>A||""):y;a.push(t.slice(s,I),P),s=I+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Bd(t,e){q(e,!1);let i=v(e,"message",8),o=Em(i());Ir();var n=qe(),a=me(n);{var s=d=>{var l=qe(),p=me(l);Hl(p,()=>o,!1,!1),b(d,l)};R(a,d=>{o&&d(s)})}b(t,n),K()}var H4=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),F4={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function Am(t,e){q(e,!1),Q(t,F4),Ir();var i=H4(),o=h(i);let n=Sr(()=>H("quality_applience",{action:`<span>${H("quality_applience_action")}</span>`}));Bd(o,{get message(){return r(n)}}),g(i),b(t,i),K()}var I1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:al,valueComponentParams:{prefix:H("other_quality"),selected:o},children:"QUALITY"}},Pm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:H("auto_quality_limit"),valueComponent:e?al:void 0,valueComponentParams:{prefix:H("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),k1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Am,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Mm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:H("high_quality"),valueComponent:t?al:void 0,valueComponentParams:{prefix:H("high_quality"),selected:i},sublabel:H("high_quality_description")}),Lm=({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:H("traffic_saving_quality"),valueComponent:t?al:void 0,valueComponentParams:{prefix:H("traffic_saving_quality"),selected:i},sublabel:H("traffic_saving_quality_description")});var du=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),cu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=tu(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return H("audio_stream_display_language_label",{language:n,label:o});{let l=du(t,d);return H("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=du(t,d);return H("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=du(t,d);return H("audio_stream_display_language_index",{language:n,index:l})}}let a=du(t,e);return H("audio_stream_display_unknown",{index:a})};var U4={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Pm,selected:e&&!o&&!n||!1}),a.push({handler:Lm,selected:o},{handler:Mm,selected:n}),{title:H("submenu_quality"),id:"QUALITY_DETAILS",items:[k1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),I1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:H("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:ga,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:H("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Pm,selected:((i=Vc())==null?void 0:i.type)==="auto_quality"},{handler:Lm,selected:((o=Vc())==null?void 0:o.type)==="traffic_saving"},{handler:Mm,selected:((n=Vc())==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:H("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:cu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:H("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:H("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},E1=({subMenuId:t,context:e})=>t?[U4[t](e)]:[];var z4=be('<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 Vm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=z4();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),b(t,o)}var q4=be('<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 Rm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=q4();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),b(t,o)}var K4=be('<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 Bm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=K4();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),b(t,o)}var W4=be('<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 Nm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=W4();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),b(t,o)}var Q4=be('<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 Dm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Q4();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),b(t,o)}var G4=be('<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 uu(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=G4();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),b(t,o)}var Y4=be('<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 Om(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Y4();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),b(t,o)}var j4=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Z4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Hm(t,e){q(e,!0),Q(t,Z4);let[i,o]=Ue(),n=()=>C(p,"$currentQuality$",i),a=()=>C(f,"$availableQualities$",i),s=()=>C(_,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),l=Te(),p=l.state.currentQuality$,f=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,$=m(()=>w1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=j4(),y=h(w);ga(y,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),b(t,w),K(),o()}var J4={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?H("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_quality",{actual:o}),icon:ld,label:H("menu_quality"),value:e,valueComponent:Hm,weight:Ar["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Ar["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?H("aria_label_submenu_traffic_saving_off"):`${H("aria_label_submenu_traffic_saving_on")}. ${H("traffic_saving_helper_text")}`,icon:Vm,label:H("menu_traffic_saving"),enabled:t,tooltipText:H("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=cu(t,e);return{id:"AUDIO_LANGUAGES",weight:Ar["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_audio_languages",{actual:i}),icon:Rm,label:H("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:Ar["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_rate",{actual:i}),icon:Bm,label:H("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Ar["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_subtitle",{actual:t.displayValue}),icon:dd,label:H("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Ar.download,type:"CLICK",onClick:t,label:H("download_video_caption"),ariaLabel:H("aria_label_menu_download"),icon:Nm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Ar.report,type:"CLICK",onClick:t,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,icon:Dm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Ar["copy-data"],type:"CLICK",onClick:t,label:H("menu_copy_debug"),ariaLabel:H("menu_copy_debug"),icon:uu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Ar["save-trace-info"],type:"CLICK",onClick:t,label:H("menu_save_debug"),ariaLabel:H("menu_save_debug"),icon:uu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Ar["debug-info"],type:"CLICK",onClick:t,label:e?H("aria_label_menu_debug_overlay_disable"):H("aria_label_menu_debug_overlay_enable"),ariaLabel:H("menu_debug_overlay"),icon:Om,isHiddenFor:["desktop"]})},A1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>J4[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(ia)};var t3=(t,e)=>{zc(t,e)},i3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),o3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),n3=L("<div><!> <!></div>"),r3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
|
|
302
|
+
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Im(t,e){q(e,!0),Q(t,_4);let[i,o]=Fe(),n=()=>C(_,"$isFullscreen",i),a=()=>C(u,"$playerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),l=v(e,"ariaLabelReturnFromSubMenu",19,()=>H("aria_label_submenu_back")),p=v(e,"listRef",15);Ft(()=>{let oe=e.items.findIndex(pe=>pe.selected);p().children[oe+1].focus()});let f=we(),_=f.ui.isFullscreen,u=f.ui.playerSize,$=ee(void 0),w=ee(0),y=ee(0),S=m(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),I=m(()=>Math.max(e.minWidth,r(w)));var A=h4();let P;var E=h(A);let T;E.__keydown=[m4,e];var V=h(E);let U;V.__click=[v4,e],V.__keydown=[g4,e];var Y=h(V);As(Y,{direction:"left"});var F=M(Y,2),j=h(F,!0);g(F),g(V),ct(V,oe=>O($,oe),()=>r($));var X=M(V,2);bi(X,17,()=>e.items,Ul,(oe,pe)=>{var le=qe(),Ve=ue(le);{var Me=Le=>{Sm(Le,{get item(){return r(pe)},get isMobile(){return s()}})},J=(Le,Z)=>{{var B=Re=>{Cm(Re,{get isMobile(){return s()},get item(){return r(pe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(Le,Re=>{r(pe).type==="OPEN_SUB_MENU"&&Re(B)},Z)}};R(Ve,Le=>{r(pe).type==="SELECT_VALUE"?Le(Me):Le(J,!1)})}b(oe,le)}),g(E),ct(E,oe=>p(oe),()=>p()),g(A),k((oe,pe,le)=>{P=te(A,1,"sub-menu menu svelte-7dfsuh",null,P,oe),Oe(A,"data-testid",`sub-menu-${e.id}`),tt(A,`min-width: ${r(I)}px`),T=te(E,1,"items svelte-7dfsuh",null,T,pe),tt(E,r(S)),U=te(V,1,"item header back svelte-7dfsuh",null,U,le),Oe(V,"aria-label",l()),ve(j,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Hr(V,"clientWidth",oe=>O(w,oe)),Hr(V,"clientHeight",oe=>O(y,oe)),b(t,A),K(),o()}at(["keydown","click"]);var x1=require("@vkontakte/videoplayer-shared/es2018");var b4=(t,e)=>Yc(t,e()),$4=(t,e)=>{t.stopPropagation(),e()()},y4=L('<div class="value svelte-1ikfjte"> </div>'),x4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),w4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function km(t,e){q(e,!0),Q(t,w4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,x1.noop),n=v(e,"valueComponent",3,void 0),a=v(e,"ref",15);var s=x4();let d;s.__click=[$4,o],s.__keydown=[b4,o];var l=h(s),p=h(l);{var f=I=>{ma(I,{get icon(){return e.icon}})},_=I=>{var A=qe();let P=m(()=>e.icon);var E=ue(A);$i(E,()=>r(P),(T,V)=>{V(T,{})}),b(I,A)};R(p,I=>{typeof e.icon=="string"?I(f):I(_,!1)})}g(l);var u=M(l,2),$=h(u,!0);g(u);var w=M(u,2);{var y=I=>{var A=qe();let P=m(n);var E=ue(A);$i(E,()=>r(P),(T,V)=>{V(T,{})}),b(I,A)},S=I=>{var A=y4(),P=h(A,!0);g(A),k(()=>ve(P,e.value)),b(I,A)};R(w,I=>{n()?I(y):I(S,!1)})}g(s),ct(s,I=>a(I),()=>a()),k(I=>{d=te(s,1,"item",null,d,I),Oe(s,"aria-label",e.ariaLabel),Oe(s,"data-testid",e.id),ve($,e.label)},[()=>({mobile:i()})]),b(t,s),K()}at(["click","keydown"]);var Em=require("@vkontakte/videoplayer-shared/es2018");var S4=(t,e)=>{Ja(t,()=>e())},C4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),T4=L('<img class="icon" aria-hidden="true">'),I4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),k4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Am(t,e){q(e,!0),Q(t,k4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,Em.noop),n=v(e,"closeSettings",3,Em.noop),a=ee(!1),s=()=>{O(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var l=I4();let p;l.__click=d,l.__keydown=[S4,d];var f=h(l),_=h(f);{var u=S=>{var I=qe(),A=ue(I);{var P=T=>{var V=C4();b(T,V)},E=T=>{var V=T4();k(()=>Oe(V,"src",e.icon)),At("error",V,s),Ks(V),b(T,V)};R(A,T=>{r(a)?T(P):T(E,!1)})}b(S,I)},$=S=>{var I=qe();let A=m(()=>e.icon);var P=ue(I);$i(P,()=>r(A),(E,T)=>{T(E,{})}),b(S,I)};R(_,S=>{typeof e.icon=="string"?S(u):S($,!1)})}g(f);var w=M(f,2),y=h(w,!0);g(w),g(l),k(S=>{var I;p=te(l,1,"item",null,p,S),Oe(l,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Oe(l,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),b(t,l),K()}at(["click","keydown"]);var w1=require("@vkontakte/videoplayer-shared/es2018");var E4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),A4={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 Pm(t,e){Q(t,A4);let i=v(e,"enabled",3,!1);var o=E4(),n=h(o);let a;_e(2),g(o),k(s=>a=te(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var P4=(t,e,i)=>{Hh(t,e(),o=>i()(o))},M4=(t,e,i)=>{t.stopPropagation(),e()(!i())},L4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),V4=L('<li role="menuitem" tabindex="0"><!></li>');function Mm(t,e){q(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,w1.noop),n=v(e,"enabled",3,!1),a=v(e,"tooltipText",3,void 0),s=v(e,"maxTooltipWidth",3,void 0);var d=V4();let l;d.__click=[M4,o,n],d.__keydown=[P4,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:(f,_)=>{var u=L4();let $;var w=h(u),y=h(w);{var S=T=>{ma(T,{get icon(){return e.icon}})},I=T=>{var V=qe();let U=m(()=>e.icon);var Y=ue(V);$i(Y,()=>r(U),(F,j)=>{j(F,{})}),b(T,V)};R(y,T=>{typeof e.icon=="string"?T(S):T(I,!1)})}g(w);var A=M(w,2),P=h(A,!0);g(A);var E=M(A,2);Pm(E,{get enabled(){return n()}}),g(u),k(T=>{$=te(u,1,"switch-wrapper",null,$,T),ve(P,e.label)},[()=>({mobile:i()})]),b(f,u)},$$slots:{default:!0}}),g(d),k(f=>{var _;l=te(d,1,"item switch-item",null,l,f),Oe(d,"aria-label",(_=e.ariaLabel)!=null?_:e.label),Oe(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),K()}at(["click","keydown"]);var Hd=require("@vkontakte/videoplayer-shared/es2018");var S1=()=>{let t=ee(me([])),e=m(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,me(r(t).slice(0,-1)))},popAllSubMenus:()=>{O(t,me([]))}}};var R4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),N4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),B4={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 ha(t,e){q(e,!0),Q(t,B4);let i=v(e,"isSubCase",3,!1),o=m(()=>Jc(e.quality));var n=N4(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var p=f=>{var _=R4();let u=m(()=>r(o));var $=h(_);$i($,()=>r(u),(w,y)=>{y(w,{})}),g(_),b(f,_)};R(l,f=>{r(o)&&!e.isMobile&&f(p)})}g(n),k(f=>{s=te(a,1,"svelte-t2qk8t",null,s,f),ve(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),K()}var k1=require("@vkontakte/videoplayer-shared/es2018");var Lm=require("@vkontakte/videoplayer-core/es2018");var C1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},T1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=C1({quality:t,availableQualities:e});return i?t===Lm.VideoQuality.INVARIANT?H("auto_quality_invariant"):H("auto_quality",{actual:o}):o},I1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Lm.VideoQuality.INVARIANT?i:`${i}${C1({quality:t,availableQualities:e})}`:"...";var D4=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),O4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function dl(t,e){q(e,!0),Q(t,O4);let[i,o]=Fe(),n=()=>C(l,"$currentQuality$",i),a=()=>C(p,"$availableQualities$",i),s=()=>C(f,"$isMobile$",i),d=we(),l=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,_=" \xB7 ",u=m(()=>e.prefix+(e.selected&&n()!==k1.VideoQuality.INVARIANT?_:"")),$=m(()=>I1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=D4(),y=h(w);let S=m(()=>e.selected?n():void 0);ha(y,{get quality(){return r(S)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),K(),o()}var H4=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")},F4={br:!0,span:!0},Vm=(t,e={})=>{var d,l,p,f,_,u,$;if(!t)return t;let i={...F4,...e},o=Object.keys(i);if(!o.length)return t;let n=H4(o),a=[],s=0;for(let w of t.matchAll(n)){let y=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:I}=w;if(!i[S]){a.push(t.slice(s,I)),s=I+y.length;continue}let A=(_=w.groups)!=null&&_.childrenhtml?Vm(w.groups.childrenhtml,i):"",P=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>A||""):y;a.push(t.slice(s,I),P),s=I+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Od(t,e){q(e,!1);let i=v(e,"message",8),o=Vm(i());Tr();var n=qe(),a=ue(n);{var s=d=>{var l=qe(),p=ue(l);zl(p,()=>o,!1,!1),b(d,l)};R(a,d=>{o&&d(s)})}b(t,n),K()}var U4=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),z4={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){q(e,!1),Q(t,z4),Tr();var i=U4(),o=h(i);let n=wr(()=>H("quality_applience",{action:`<span>${H("quality_applience_action")}</span>`}));Od(o,{get message(){return r(n)}}),g(i),b(t,i),K()}var A1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:dl,valueComponentParams:{prefix:H("other_quality"),selected:o},children:"QUALITY"}},Nm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:H("auto_quality_limit"),valueComponent:e?dl:void 0,valueComponentParams:{prefix:H("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),P1=()=>({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:H("high_quality"),valueComponent:t?dl:void 0,valueComponentParams:{prefix:H("high_quality"),selected:i},sublabel:H("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:H("traffic_saving_quality"),valueComponent:t?dl:void 0,valueComponentParams:{prefix:H("traffic_saving_quality"),selected:i},sublabel:H("traffic_saving_quality_description")});var mu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),vu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=su(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return H("audio_stream_display_language_label",{language:n,label:o});{let l=mu(t,d);return H("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=mu(t,d);return H("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=mu(t,d);return H("audio_stream_display_language_index",{language:n,index:l})}}let a=mu(t,e);return H("audio_stream_display_unknown",{index:a})};var q4={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:H("submenu_quality"),id:"QUALITY_DETAILS",items:[P1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),A1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:H("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:ha,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:H("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Nm,selected:((i=Oc())==null?void 0:i.type)==="auto_quality"},{handler:Dm,selected:((o=Oc())==null?void 0:o.type)==="traffic_saving"},{handler:Bm,selected:((n=Oc())==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:H("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:vu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:H("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:H("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},M1=({subMenuId:t,context:e})=>t?[q4[t](e)]:[];var K4=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=K4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),b(t,o)}var W4=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=W4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),b(t,o)}var Q4=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Q4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),b(t,o)}var G4=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=G4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),b(t,o)}var Y4=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Y4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),b(t,o)}var j4=be('<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 gu(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=j4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),b(t,o)}var Z4=be('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Z4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),b(t,o)}var X4=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),J4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Km(t,e){q(e,!0),Q(t,J4);let[i,o]=Fe(),n=()=>C(p,"$currentQuality$",i),a=()=>C(f,"$availableQualities$",i),s=()=>C(_,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),l=we(),p=l.state.currentQuality$,f=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,$=m(()=>T1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=X4(),y=h(w);ha(y,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),b(t,w),K(),o()}var t3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?H("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_quality",{actual:o}),icon:ud,label:H("menu_quality"),value:e,valueComponent:Km,weight:Ar["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Ar["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?H("aria_label_submenu_traffic_saving_off"):`${H("aria_label_submenu_traffic_saving_on")}. ${H("traffic_saving_helper_text")}`,icon:Om,label:H("menu_traffic_saving"),enabled:t,tooltipText:H("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=vu(t,e);return{id:"AUDIO_LANGUAGES",weight:Ar["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_audio_languages",{actual:i}),icon:Hm,label:H("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:Ar["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_rate",{actual:i}),icon:Fm,label:H("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Ar["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_subtitle",{actual:t.displayValue}),icon:pd,label:H("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Ar.download,type:"CLICK",onClick:t,label:H("download_video_caption"),ariaLabel:H("aria_label_menu_download"),icon:Um}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Ar.report,type:"CLICK",onClick:t,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,icon:zm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Ar["copy-data"],type:"CLICK",onClick:t,label:H("menu_copy_debug"),ariaLabel:H("menu_copy_debug"),icon:gu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Ar["save-trace-info"],type:"CLICK",onClick:t,label:H("menu_save_debug"),ariaLabel:H("menu_save_debug"),icon:gu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Ar["debug-info"],type:"CLICK",onClick:t,label:e?H("aria_label_menu_debug_overlay_disable"):H("aria_label_menu_debug_overlay_enable"),ariaLabel:H("menu_debug_overlay"),icon:qm,isHiddenFor:["desktop"]})},L1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>t3[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 o3=(t,e)=>{Gc(t,e)},n3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),r3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),s3=L("<div><!> <!></div>"),a3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
|
|
303
303
|
/* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
|
|
304
304
|
.settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
|
|
305
305
|
.settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
|
|
306
|
-
.settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function
|
|
306
|
+
.settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Fd(t,e){q(e,!0),Q(t,a3);let[i,o]=Fe(),n=()=>C(Ye,"$settingsMenuVisible",i),a=()=>C(dt,"$settingsMenuOpenedByKeyboard",i),s=()=>C(st,"$debugPanelVisible",i),d=()=>C($e,"$isMobile",i),l=()=>C(Et,"$playerSize",i),p=()=>C(Ee,"$hasMpegSources$",i),f=()=>C(Pe,"$mobileNotReportControlHidden$",i),_=()=>C(B,"$autoQualityLimitingAvailable$",i),u=()=>C(D,"$availableSubtitlesList$",i),$=()=>C(rt,"$isLiveWithPlaybackSpeed",i),w=()=>C(J,"$availableAudioStreams$",i),y=()=>C(Ne,"$availablePlaybackRates$",i),S=()=>C(Me,"$currentAudioStream$",i),I=()=>C(ke,"$currentPlaybackRate$",i),A=()=>C(vt,"$trafficSavingEnabled",i),P=()=>C(Le,"$currentQuality$",i),E=()=>C(Re,"$isAutoQualityEnabled$",i),T=()=>C(fe,"$currentSubtitle$",i),V=()=>C(qt,"$additionalSettingsMenuItems$",i),U=()=>C(ne,"$isAutoQualityAvailable$",i),Y=()=>C(Z,"$availableQualities$",i),F=()=>C(lt,"$highQualityEnabled",i),j=v(e,"ref",15,void 0),X=v(e,"playerControlsHeight",3,0),oe=me({}),pe=me({}),le=we(),Ve=Wt(),Me=le.state.audioStream$,J=le.state.availableAudioStreams$,Le=le.state.currentQuality$,Z=le.state.availableQualities$,B=le.state.autoQualityLimitingAvailable$,Re=le.state.isAutoQualityEnabled$,ne=le.state.isAutoQualityAvailable$,ke=le.state.currentPlaybackRate$,Ne=le.state.availablePlaybackRates$,fe=le.state.currentSubtitle$,D=le.state.availableSubtitlesList$,de=le.state.canDownload,Ee=le.state.hasMpegSources$,Ye=le.ui.settingsMenu.visible$,dt=le.ui.settingsMenu.openedByBtnKeyboard$,Ae=le.ui.settingsMenu.ref$,$e=le.ui.isMobile,Pe=le.ui.mobileNotReportControlHidden$,rt=le.state.canChangePlaybackSpeed$,vt=le.state.trafficSavingEnabled$,lt=le.state.highQualityEnabled$,Et=le.ui.playerSize,st=le.ui.debugPanelVisible,gt=le.state.isInteractiveTime$,qt=le.ui.additionalSettingsMenuItems$,Yt=le.ui.t,Be=le.actions.internal.downloadVideo,re=le.actions.internal.closeSettingsMenu,W=le.actions.internal.openSettingsSubMenu,se=le.actions.internal.closeSettingsSubMenu,he=ee(!1),Se=ee(void 0),De=S1();Ke(()=>{!n()&&De.current&&(se(pe[De.current]),De.popAllSubMenus())}),Ke(()=>{n()||O(Se,void 0)}),Ke(()=>{!De.current&&r(Se)&&Dh(oe,r(Se))}),Ke(()=>{j()&&Ae.set(j())});async function ut(St){De.pushSubMenu(St),await mo(),W(St,pe[St])}function Qt(St){var Kt;St==null||St.stopPropagation(),a()||(Kt=e.returnFocus)==null||Kt.call(e),re(),O(he,!1)}function Ze(St,Kt){le.actions.internal.setQuality(St,{appliesTo:Kt}),Qt()}function pt(St){le.actions.internal.setAudioStream(St),Qt()}function Je(St,Kt){le.actions.internal.setTrafficSavingEnabled(St,Kt),Ve.features.qualityDetailsSubMenuEnabled&&Qt()}function Pt(St,Kt){le.actions.internal.setHighQualityEnabled(St,Kt),Qt()}function ri(St){le.actions.internal.setPlaybackRate(St),Qt()}function Ge(St){le.actions.internal.setSubtitle(St),Qt()}function ot(){Be()}function Jt(){(0,Hd.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function Ai(){ja(le.actions.internal.getDebugTextData())}let ko=()=>{let St=le.actions.internal.getTraceTextData(),Kt=new Blob([...St],{type:"application/json"}),Ao=window.URL.createObjectURL(Kt);Xs(Ao,"vk_player_trace_info","json")};function Ui(){st.set(!s())}function Eo(){O(he,!0)}function Fo(){O(he,!1)}function Vt(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-X()}px; overflow: auto;`}let bt=m(()=>de&&p()&&!f()),z=m(()=>Ve.features.trafficSaving&&!f()&&_()&&!Ve.features.qualityDetailsSubMenuEnabled),Gt=m(()=>u().length>0&&!f()),zi=m(()=>!!$()&&!f()),Vi=m(()=>Ve.features.audioLanguages&&w().length>=2&&!f()),vi=m(()=>!f());Ft(()=>gt.subscribe(St=>{St&&!d()&&!r(he)&&!a()&&Qt()}));let ei=m(()=>{let St=[r(vi)&&"QUALITY_SETTINGS",r(Vi)&&"AUDIO_LANGUAGES",r(zi)&&"PLAYBACK_RATE",r(Gt)&&"SUBTITLES",r(z)&&"TRAFFIC_SAVING_SWITCH",r(bt)&&"DOWNLOAD",Ve.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ve.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Kt=>!!Kt);return L1({items:St,context:{qualityDetailsSubMenuEnabled:Ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:I(),selectPlaybackRate:ri,trafficSavingEnabled:A(),toggleTrafficSaving:Je,currentQuality:P()||Hd.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:T(),isMobile:d(),onDownloadClick:ot,debugPanelVisible:s(),onCopyDataClick:Ai,onReportProblemClick:Jt,onSaveTraceDataClick:ko,toggleShowDebugInfo:Ui},additionalSettingsMenuItems:V()})}),ao=m(()=>M1({subMenuId:De.current,context:{availablePlaybackRates:y(),selectPlaybackRate:ri,trafficSavingEnabled:A(),toggleTrafficSaving:Je,currentQuality:P()||Hd.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:U()||!1,availableQualities:Y(),highQualityEnabled:F(),toggleHighQuality:Pt,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:re,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:pt,selectQuality:Ze,selectSubtitle:Ge}}));var ho=s3();let qi;var Uo=h(ho);{var Ot=St=>{var Kt=r3();let Ao;Kt.__keydown=[o3,re];var Ki=h(Kt);{var li=si=>{var xt=n3();let gi;var Wi=h(xt),Ri=h(Wi,!0);g(Wi);var bo=M(Wi,2);bo.__click=Qt,g(xt),k((xi,$o)=>{gi=te(xt,1,"item header svelte-17or3al",null,gi,xi),ve(Ri,$o)},[()=>({mobile:d()}),()=>Yt("submenu_settings")]),b(si,xt)};R(Ki,si=>{d()&&si(li)})}var _o=M(Ki,2);let zo;bi(_o,21,()=>r(ei),si=>si.id,(si,xt)=>{var gi=qe(),Wi=ue(gi);{var Ri=xi=>{km(xi,{get isMobile(){return d()},get id(){return r(xt).id},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get value(){return r(xt).value},get valueComponent(){return r(xt).valueComponent},onClick:()=>{ut(r(xt).children),O(Se,me(r(xt).id))},get ref(){return oe[r(xt).id]},set ref($o){oe[r(xt).id]=$o}})},bo=(xi,$o)=>{{var Cn=wi=>{Am(wi,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},closeSettings:Qt})},sn=(wi,Tn)=>{{var an=Po=>{Mm(Po,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get enabled(){return r(xt).enabled},get tooltipText(){return r(xt).tooltipText},get maxTooltipWidth(){return r(xt).maxTooltipWidth}})};R(wi,Po=>{r(xt).type==="SWITCH"&&Po(an)},Tn)}};R(xi,wi=>{r(xt).type==="CLICK"?wi(Cn):wi(sn,!1)},$o)}};R(Wi,xi=>{r(xt).type==="OPEN_SUB_MENU"?xi(Ri):xi(bo,!1)})}b(si,gi)}),g(_o),ct(_o,si=>j(si),()=>j()),g(Kt),k((si,xt,gi)=>{Ao=te(Kt,1,"settings-menu menu svelte-17or3al",null,Ao,si),zo=te(_o,1,"items",null,zo,xt),tt(_o,gi)},[()=>({desktop:!d(),mobile:d(),hidden:!!De.current}),()=>({mobile:d()}),Vt]),At("mouseenter",Kt,Eo),At("mouseleave",Kt,Fo),b(St,Kt)};R(Uo,St=>{n()&&St(Ot)})}var di=M(Uo,2);bi(di,17,()=>r(ao),St=>St.id,(St,Kt)=>{let Ao=m(()=>{var Ki;return(Ki=r(Kt).minWidth)!=null?Ki:137});Im(St,{get isMobile(){return d()},get playerControlsHeight(){return X()},get returnFromSubMenu(){return De.popSubMenu},get id(){return r(Kt).id},get title(){return r(Kt).title},closeSettingsMenu:re,openSubMenuList:ut,get items(){return r(Kt).items},get minWidth(){return r(Ao)},get refMenuItems(){return oe},get listRef(){return pe[r(Kt).id]},set listRef(Ki){pe[r(Kt).id]=Ki}})}),g(ho),k(St=>qi=te(ho,1,"settings-menu-container svelte-17or3al",null,qi,St),[()=>({mobile:d(),hidden:!n()})]),b(t,ho),K(),o()}at(["keydown","click"]);var l3=t=>t;function V1(t,{delay:e=0,duration:i=400,easing:o=l3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var d3=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 Wm(t,e){Q(t,c3);var i=d3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),k(()=>ve(o,e.label)),b(t,i)}at(["click"]);var u3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),p3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
|
|
307
307
|
/**
|
|
308
308
|
* \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
|
|
309
|
-
*/pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function
|
|
310
|
-
|
|
311
|
-
.ads-container.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1b9vdl1 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1b9vdl1 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1b9vdl1 {transition:none;}.nocursor.svelte-1b9vdl1 {cursor:none;}.ads-container.svelte-1b9vdl1 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-1b9vdl1 {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}`};function zm(t,e){q(e,!0),Q(t,y3);let[i,o]=Ue(),n=()=>C(Ko,"$notificationsToShow$",i),a=()=>C(Lo,"$playerPhase",i),s=()=>C(po,"$isLoaderVisible",i),d=()=>C(Ri,"$adPlaybackState",i),l=()=>C(zt,"$crashed",i),p=()=>C(xn,"$isInteractiveTime$",i),f=()=>C(F,"$settingsMenuVisible",i),_=()=>C(xi,"$isInteractiveExpectation$",i),u=()=>C(_t,"$controlsVisible",i),$=()=>C(qo,"$touched",i),w=()=>C(Cn,"$graphIsOpened$",i),y=()=>C(Vo,"$isFullscreen",i),S=()=>C(jn,"$autoplayNextEnabled$",i),I=()=>C(Nt,"$postrollPassed",i),A=()=>C(fo,"$isEnded$",i),P=()=>C(kn,"$cursorInside",i),E=()=>C(vo,"$rotateAlpha",i),T=()=>C(ni,"$playerSize",i),V=()=>C(Sn,"$fakeIsPlaying$",i),z=()=>C(er,"$bottomNoSmooth",i),Y=()=>C(an,"$interactiveTimeIndicator",i),U=()=>C(yt,"$is3DVideo",i),Z=()=>C(si,"$contextMenuVisible$",i),X=()=>C(ei,"$playbackState$",i),oe=()=>C(wn,"$hotKeyMapData",i),ce=()=>C(Ki,"$scrubbingInProgress",i),le=()=>C(Bi,"$volumeChangingInProgress",i),Ve=()=>C(ji,"$chromecastConnected$",i),Me=()=>C(Zi,"$controlsTimeoutActive",i),J=()=>C(Wt,"$settingsMenuOpenedByKeyboard",i),Le=()=>C(Rr,"$contextMenuOpenedByKeyboard$",i),j=()=>C(br,"$contextMenuButtonRef$",i),N=()=>C(mn,"$contextMenuOpenedByHotKey$",i),Re=()=>C(or,"$contextMenuLastActiveElem$",i),ne=()=>C(Pt,"$isFullscreenOpenedByKeyboard",i),ke=()=>C(wt,"$isPlaying$",i),Be=()=>C(dt,"$language$",i),ue=()=>C(ui,"$icon3DVideoVisible",i),D=()=>C(Uo,"$chromecastDeviceName$",i),de=()=>C(Gn,"$currentSubtitle$",i),Ee=()=>C(Co,"$currentSubtitleCaptions$",i),Qe=()=>C(Mo,"$position$",i),at=()=>C(zo,"$realDuration$",i),Ae=()=>C(ci,"$isLive$",i),$e=()=>C(qi,"$duration$",i),Pe=()=>C(ln,"$contextMenuPosition$",i),nt=()=>C(wi,"$showHotKeyMap",i),mt=()=>C(di,"$debugPanelVisible",i),et=v(e,"videoContainer",15),Bt=v(e,"adsSlotId",3,void 0),rt=v(e,"adsParams",3,void 0),vt=v(e,"adsPreviewParam",3,void 0),Ft=v(e,"adsAutoplayParam",3,void 0),qt=v(e,"duration",3,void 0),Ne=v(e,"logoTargetUrl",3,""),re=v(e,"showNextPrevButtons",3,!1),W=v(e,"nextButtonActive",3,!1),se=v(e,"prevButtonActive",3,!1),ve=v(e,"endScreenVideoTitle",3,void 0),Se=v(e,"endScreenVideoThumb",3,void 0),De=v(e,"isOneVideoPlaylist",3,!1),ut=v(e,"shadowRootContainer",3,void 0),Ut=v(e,"outerContainerRef",3,void 0),Ge=v(e,"playerStarted",3,!1),lt=v(e,"fullScreenTarget",3,void 0),Xe=v(e,"showMiniTimer",3,!1),It=v(e,"showEndScreen",3,!0),Zt=v(e,"keyboardControls",15),Ke=e.store.getLogger().createComponentLog("Root component"),dt=e.store.interfaceLanguage$,ei=e.store.state.playbackState$,Ri=e.store.ads.playbackState,Mo=e.store.state.positionWithScrubbing$,qi=e.store.state.duration$,Lo=e.store.playerPhase,Vo=e.store.ui.isFullscreen,Pt=e.store.ui.isFullscreenOpenedByKeyboard,_t=e.store.ui.controlsVisible,F=e.store.ui.settingsMenu.visible$,Wt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ki=e.store.ui.scrubbingInProgress,Bi=e.store.ui.volumeChangingInProgress,si=e.store.ui.contextMenu.visible$,di=e.store.ui.debugPanelVisible,po=e.store.state.isLoaderVisible,fo=e.store.state.isEnded$,ji=e.store.state.chromecastConnected$,Uo=e.store.state.chromecastDeviceName$,Nt=e.store.ads.postrollPassed,ci=e.store.state.isLive$,wt=e.store.state.isPlaying$,zt=e.store.state.crashed$,mo=e.store.webApi.annotationsApi,jt=e.store.webApi.pictureInPictureApi,Gn=e.store.state.currentSubtitle$,Co=e.store.state.currentSubtitleCaptions$,zo=e.store.state.duration$,ni=e.store.ui.playerSize,yt=e.store.ui.is3DVideo,ui=e.store.ui.icon3DVideoVisible,vo=e.store.ui.rotateAlpha,gi=e.store.state.isInteractive,xn=e.store.state.isInteractiveTime$,xi=e.store.state.isInteractiveExpectation$,To=e.store.state.hasInteractiveBranches,qo=e.store.ui.touched,wn=e.store.ui.modals.hotKeyMap.data,wi=e.store.ui.modals.hotKeyMap.show,Yn=e.store.ui.overlayContainer$,an=e.store.ui.controls.interactiveTimeIndicator,Ro=e.store.state.showInteractiveTimeIndicator,ln=e.store.ui.contextMenu.position$,Pr=e.store.actions.internal.setQuality,ur=e.store.actions.internal.closeSettingsMenu,jn=e.store.ui.autoplayNextEnabled$,{fakeIsPlaying$:Sn,notifications$:dn,graphIsOpened$:Cn}=uo(),go=ee(void 0),Je=ee(void 0),cn=ee(void 0),Zn=ee(void 0),Xn,Tn,un;wn.set(Ah());let{closeNotification:pn,notificationsToShow$:Ko}=dn,Wi=m(()=>!!n().slow_video),Qi=()=>pn("slow_video"),Jn=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),In=ee(void 0),er=ae(!1),pr,Zi=ae(!1),Xi=ae(),kn=ae(!1),En=ee(!1),ho=ee(!1),Ji=ee(!1),An=ee(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Bo=m(()=>p()&&!f()&&!(r(En)||r(ho))&&!(r(Ji)&&!_())),Mr=!0,Pn=m(()=>e.uiConfig.features.thumbTimer&&Xe()&&a()==="video"&&!u()&&!l()&&!gi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),fr=m(()=>a()==="video"&&!w()&&y()),Mn=ee(!1),Ln=m(()=>(It()||e.showAutoplayNext&&S())&&!!ve()&&!!Se()&&(e.showAds&&I()||!e.showAds)&&A()&&!l()&&!r(Mn)),Lr=m(()=>P()&&!(u()||r(Ln))&&!p()),tr=ee(!1),mr=m(()=>et()&&E()%180?T().height/T().width:1),ir=m(()=>V()!==null),{toggle:Vn}=Sn,ti=!1,Wo=null;jt==null||jt.setContext(Rl());let vr=()=>{e.autoplay&&!gi&&e.uiConfig.controls.showOnStartupAtAutoplay&&pt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:vr});let Vr=()=>{window.clearTimeout(Xn),Zi.set(!1)},it=()=>{window.clearTimeout(Tn),Xi.set(null)},pt=ye=>{Vr(),Zi.set(!0),Xn=window.setTimeout(()=>Zi.set(!1),ye);let Mt=ye-100;pr=window.setTimeout(()=>{z()&&er.set(!1)},Mt>0?Mt:ye)},Si=(ye,Mt)=>{it(),Xi.set(Mt),Tn=window.setTimeout(()=>Xi.set(null),ye)},eo=yt.subscribe(ye=>{ui.set(ye),ye&&(window.clearTimeout(un),un=window.setTimeout(()=>ui.set(!1),e.uiConfig.controls.hide360IconTimeout))}),to=async()=>{var Mt,Xt,ii,bo;let ye=ys();if(ye){let Ai=Xl(),oi=Do();ye=Ai===oi||Ai===ut()}if(ye){pt(e.uiConfig.controls.hideTimeoutFullscreen);try{await(jt==null?void 0:jt.remove())}catch(Ai){Ke({message:String(Ai)})}}Vo.set(ye),e.store.getAdmanWrapper().setFullscreen(ye),y()?(Xt=(Mt=e.store.callbacks)==null?void 0:Mt.onFullscreenEnter)==null||Xt.call(Mt):(bo=(ii=e.store.callbacks)==null?void 0:ii.onFullscreenExit)==null||bo.call(ii)},Io=ye=>{let{width:Mt,height:Xt}=ye.target;ni.set({width:Mt,height:Xt})},No=()=>{let{width:ye,height:Mt}=r(go).getBoundingClientRect();ni.set({width:ye,height:Mt})};Dt(()=>{var Mt;return Fc(to),e.uiConfig.features.annotationsInside&&(mo==null||mo.init(r(go))),ea(jt)&&(jt==null||jt.assignPlayerContainer(r(go)),jt==null||jt.registryExternalEventHandlers({resize:Io,leavepictureinpicture:No})),e.interactiveContainer&&((Mt=et().parentElement)==null||Mt.insertBefore(e.interactiveContainer,et().nextSibling)),()=>{window.clearTimeout(Xn),window.clearTimeout(pr),window.clearTimeout(Tn),window.clearTimeout(un),eo(),jt==null||jt.dispose().catch(Xt=>{Ke({message:String(Xt)})}),Uc(to)}});let Do=()=>{let ye=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ut()?r(go):Ut(),Mt=ye.getRootNode(),Xt=Mt instanceof ShadowRoot?Mt.host:Mt,ii=lt()instanceof HTMLElement&<().contains(Xt);return e.uiConfig.allowChangingFullscreenTarget&<()&&ii?lt():ye},ko=async()=>{ys()?(await Hc(document),Ke({message:"exit fullscreen"})):(Ke({message:"request fullscreen"}),await Oc(Do()))},Ze=()=>{ur(),si.set(!1)},Tt=ye=>{w()||(ye.preventDefault(),si.set(!0),ln.set({left:ye.clientX,top:ye.clientY}))};function Ei(){kn.set(!0),gi||pt(e.uiConfig.controls.hideTimeoutCursor)}function Ni(){gi||(er.set(!0),pt(e.uiConfig.controls.hideTimeoutCursor))}function Di(){kn.set(!1),O(ho,!1),O(En,!1),ti=!1,e.store.actions.internal.releaseCamera(),pt(e.uiConfig.controls.hideTimeout)}function hi(ye){return ye?ye.offsetTop+hi(ye.offsetParent):0}function Gi(ye){return ye?ye.offsetLeft+Gi(ye.offsetParent):0}function io(ye){if(Y()&&Ro){let Mt=ye.currentTarget,Xt=hi(Mt),ii=Gi(Mt),bo=ye.pageX-ii,Ai=ye.pageY-Xt,{left:oi,bottom:li,right:_i}=Y(),Yi=_i-oi;return bo>=oi-Yi&&Ai<=li+Yi}}function Rn(ye){if(r(go)){let Mt=hi(ye.currentTarget),Xt=T().height,ii=ye.pageY-Mt;if(io(ye)){O(ho,!1);return}ii<40?O(ho,!0):ii>Xt-40?O(En,!0):(O(ho,!1),f()||O(En,!1))}}function Bn(ye){Rn(ye),r(Bo)||pt(e.uiConfig.controls.hideTimeoutCursor),U()&&ti&&Wo&&e.store.actions.internal.moveCameraFocusPX(Wo.clientX-ye.clientX,Wo.clientY-ye.clientY,ye.timeStamp-Wo.timeStamp),Wo=ye}let gr=ye=>{ye.preventDefault(),ye.button===0&&(ti=!0,e.store.actions.internal.holdCamera()),pt(e.uiConfig.controls.hideTimeoutCursor)},Qo=ye=>{ye.preventDefault(),ye.button===0&&(Wo=ye,ti=!1,e.store.actions.internal.releaseCamera()),pt(e.uiConfig.controls.hideTimeoutCursor)},Nn=ye=>{Ze(),qo.set(!0),pt(e.uiConfig.controls.hideTimeout),ye&&Si(e.uiConfig.controls.hideHotKeyHelpers,ye)},hr=()=>{var ye,Mt;Ze(),(ye=e.store.callbacks)!=null&&ye.onOpenHotKeyMap?(Mt=e.store.callbacks)==null||Mt.onOpenHotKeyMap(oe()):wi.update(Xt=>!Xt)},_r=()=>{qo.set(!0)},Rr=e.store.ui.contextMenu.openedByBtnKeyboard$,br=e.store.ui.contextMenu.btnRef$,fn=ee(void 0),mn=e.store.ui.contextMenu.openedByHotKey$,or=e.store.ui.contextMenu.lastActiveElem$;je(()=>{Yn.set(r(In))}),je(()=>{O(Ji,ge(r(An)&&X()!==Um.PlaybackState.PLAYING)),r(An)||$t(()=>O(An,!0))}),je(()=>{_t.set((r(Ji)||A()||f()||ce()||le()||Ve()||Me())&&!r(Bo)&&(a()==="video"||a()==="ads")&&!l())}),je(()=>{!ce()&&r(tr)&&!p()&&pt(e.uiConfig.controls.hideTimeoutCursor),$t(()=>O(tr,ge(ce())))}),je(()=>{r(Zn),f(),J(),$t(()=>ja(r(Zn),f(),J()))}),je(()=>{r(fn),Z(),Le(),$t(()=>ja(r(fn),Z(),Le()))}),je(()=>{let ye=j();ye&&(Z(),$t(()=>Ya(ye,Z(),Rr)))}),je(()=>{r(fn),Z(),N(),$t(()=>ja(r(fn),Z(),N()))}),je(()=>{let ye=Re();ye&&(Z(),$t(()=>Vh(ye,Z(),mn)))}),je(()=>{var ye;!ne()&&y()&&($t(()=>Pt.set(!1)),(ye=Zt())==null||ye.focus())}),je(()=>{w()&&Ze()});let Br=H("video360");var _o=$3();Et("blur",Fs,Ze),_o.__mousemove=Bn;var Dn=h(_o);let $r=m(()=>a()==="ads"),tt=m(()=>r(ir)?Vn:void 0);ct(nf(Dn,{toggleFullscreen:ko,hideContextMenu:Ze,showHotKeyHelpers:Nn,showKeyMap:hr,get isAds(){return r($r)},get fakePlayButtonHandler(){return r(tt)},get nextButtonActive(){return W()},get prevButtonActive(){return se()},children:(ye,Mt)=>{var Xt=b3(),ii=me(Xt);let bo;ii.__contextmenu=Tt,ii.__mousedown=gr,ii.__mouseup=Qo,ii.__click=[p3,Z,si,f,F,Ze,A,fo,To,ir,Vn,Zt,Ge,e,pt,X,ei],ii.__dblclick=[u3,Mr,Ke,ko,pt,e];var Ai=h(ii);let oi;ct(Ai,_i=>et(_i),()=>et()),g(ii);var li=M(ii,2);Dl(li,Be,_i=>{var Yi=_3(),Pi=me(Yi);let Ci=m(()=>a()!=="thumb"||l()||gi&&e.autoplay);Ld(Pi,{get hidden(){return r(Ci)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Kr=M(Pi,2);{var He=Fe=>{let Gt=m(()=>{var Go;return(Go=e.live)==null?void 0:Go.startTime});Vd(Fe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Gt)}})};R(Kr,Fe=>{a()==="LiveWaitingStart"&&Fe(He)})}var Qt=M(Kr,2);{var bi=Fe=>{va(Fe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Qt,Fe=>{a()==="LiveWaitingRecover"&&Fe(bi)})}var Eo=M(Qt,2);{var vn=Fe=>{va(Fe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Eo,Fe=>{a()==="LiveWaitingRecord"&&Fe(vn)})}var Wr=M(Eo,2);{var On=Fe=>{var Gt=m3();let Go;var cs=h(Gt);Jl(cs,{get adsSlotId(){return Bt()},get adsParams(){return rt()},get adsPreviewParam(){return vt()},get adsAutoplayParam(){return Ft()},get duration(){return qt()}}),g(Gt),k(Yo=>Go=te(Gt,1,"ads-container svelte-1b9vdl1",null,Go,Yo),[()=>({hidden:a()!=="ads"})]),b(Fe,Gt)};R(Wr,Fe=>{e.showAds&&Ge()&&Fe(On)})}var Nr=M(Wr,2);{var ml=Fe=>{let Gt=m(()=>!It()&&e.showAutoplayNext&&S());ef(Fe,{get title(){return ve()},get thumb(){return Se()},get isHide(){return r(Gt)},clickCloseIcon:()=>O(Mn,!0)})};R(Nr,Fe=>{r(Ln)&&ve()&&Se()&&Fe(ml)})}var Hn=M(Nr,2);{var vl=Fe=>{let Gt=m(()=>!u());vm(Fe,{get title(){return e.title},get isHidden(){return r(Gt)}})};R(Hn,Fe=>{r(fr)&&Fe(vl)})}var ba=M(Hn,2);{var $a=Fe=>{let Gt=m(()=>a()==="video"&&u());Ed(Fe,{get isShifted(){return r(Gt)}})};R(ba,Fe=>{U()&&Fe($a)})}var Ps=M(ba,2);{var bt=Fe=>{var Gt=v3(),Go=h(Gt);Zl(Go,{"aria-label":Br}),g(Gt),b(Fe,Gt)};R(Ps,Fe=>{ue()&&Fe(bt)})}var gt=M(Ps,2);{var oo=Fe=>{Pd(Fe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return D()}})};R(gt,Fe=>{Ve()&&Fe(oo)})}var Oo=M(gt,2);{var no=Fe=>{Ad(Fe,{get shifted(){return u()},get captions(){return Ee()},get position(){return Qe()},get playerSize(){return T()}})};R(Oo,Fe=>{de().value!=="off"&&Fe(no)})}var ri=M(Oo,2);{var Mi=Fe=>{var Gt=g3();Gt.__contextmenu=Tt,Gt.__click=[f3,Z,si,f,F,Ze];var Go=h(Gt);Md(Go,{}),g(Gt),b(Fe,Gt)};R(ri,Fe=>{l()&&Fe(Mi)})}var ds=M(ri,2);{var gl=Fe=>{let Gt=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Go=m(()=>a()==="ads"),cs=m(()=>e.canRewindLive&&at()!==0);kd(Fe,{get bottomHidden(){return r(Gt)},get bottomNoSmooth(){return z()},get showControls(){return u()},get isAds(){return r(Go)},get canRewindLive(){return r(cs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ne()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return re()},get nextButtonActive(){return W()},get prevButtonActive(){return se()},get isOneVideoPlaylist(){return De()},customFullscreenSupported:Mr,toggleFullscreen:ko,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Je)},set playerControlsWrapperRef(Yo){O(Je,ge(Yo))},get playerControlsRef(){return r(cn)},set playerControlsRef(Yo){O(cn,ge(Yo))}})};R(ds,Fe=>{Ge()&&Fe(gl)})}var jd=M(ds,2);{var Iu=Fe=>{var Gt=h3(),Go=h(Gt);let cs=m(()=>{var Yo;return(Yo=r(cn))==null?void 0:Yo.clientHeight});Dd(Go,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(cs)},returnFocus:()=>{var Yo;return(Yo=Zt())==null?void 0:Yo.focus()},get ref(){return r(Zn)},set ref(Yo){O(Zn,ge(Yo))}}),g(Gt),b(Fe,Gt)};R(jd,Fe=>{!Ve()&&a()!=="ads"&&Fe(Iu)})}var Ms=M(jd,2);let ku=m(()=>!r(Pn));td(Ms,{get isLive(){return Ae()},get isHidden(){return r(ku)},get isPlaying(){return ke()},get position(){return Qe()},get duration(){return $e()}});var hl=M(Ms,2);um(hl,{data:Xi});var _l=M(hl,2);Xp(_l,{get supportLink(){return e.supportLink},returnFocus:()=>{var Fe;return(Fe=Zt())==null?void 0:Fe.focus()},get visible(){return Z()},get playerContainerRef(){return r(go)},get controlsContainerRef(){return r(Je)},get position(){return Pe()},get menuElementRef(){return r(fn)},set menuElementRef(Fe){O(fn,ge(Fe))}});var Zd=M(_l,2);{var Xd=Fe=>{Od(Fe,{onClose:Qi,onSelectAutoQuality:()=>{Pr("auto"),Qi()}})};R(Zd,Fe=>{r(Wi)&&Fe(Xd)})}var ya=M(Zd,2);{var Jd=Fe=>{ra(Fe,{})};R(ya,Fe=>{r(Jn)&&Fe(Jd)})}var ec=M(ya,2);{var tc=Fe=>{af(Fe,{})};R(ec,Fe=>{nt()&&Fe(tc)})}var ic=M(ec,2);{var Eu=Fe=>{nd(Fe,{})};R(ic,Fe=>{mt()&&Fe(Eu)})}var Au=M(ic,2);Fl(Au,()=>"slot",!1,(Fe,Gt)=>{we(Fe,null,{name:Hd})}),b(_i,Yi)}),k((_i,Yi)=>{bo=te(ii,1,"video-wrapper svelte-1b9vdl1",null,bo,_i),oi=te(Ai,1,"video-container svelte-1b9vdl1",null,oi,Yi),ot(Ai,`transform: rotate(${E()}deg) scale(${r(mr)})`),Oe(Ai,"data-is-playing",ke())},[()=>({hidden:a()!=="video",nocursor:r(Lr)}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),b(ye,Xt)},$$slots:{default:!0}}),ye=>Zt(ye),()=>Zt());var Ot=M(Dn,2);ct(Ot,ye=>O(In,ye),()=>r(In)),g(_o),ct(_o,ye=>O(go,ye),()=>r(go)),Et("mouseenter",_o,Ei),Et("mouseleave",_o,Di),Et("click",_o,_r,!0),Et("focusin",_o,Ni,!0),b(t,_o),K(),o()}st(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);var As=require("@vkontakte/videoplayer-core/es2018"),D1=require("@vkontakte/videoplayer-shared/es2018");var x3=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),w3=L("<div><!></div>"),S3={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;
|
|
309
|
+
*/pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Ud(t,e){q(e,!0),Q(t,p3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Wt(),{ui:{t:n}}=we(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=u3(),d=h(s),l=h(d),p=h(l),f=h(p);Od(f,{message:a}),g(p);var _=M(p,2);{var u=w=>{let y=m(()=>n("slow_video_notification_button"));Wm(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};R(_,w=>{o||w(u)})}g(l);var $=M(l,2);sa($,{get onClick(){return e.onClose}}),g(d),g(s),Ip(3,d,()=>V1,()=>({duration:i})),b(t,s),K()}var zd="annotation",hu=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",zd),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="var(--video-container-z-index)";break;case"over_controls":e.style.zIndex="var(--controls-container-z-index)";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()}};var f3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),m3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
|
|
310
|
+
|
|
311
|
+
animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
|
|
312
|
+
|
|
313
|
+
@keyframes svelte-f47ws8-videoPlayerStatusIconPopup {
|
|
314
|
+
from {
|
|
315
|
+
opacity: 0;
|
|
316
|
+
scale: 0.6;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
10% {
|
|
320
|
+
opacity: 1;
|
|
321
|
+
scale: 1;
|
|
322
|
+
animation-timing-function: ease-in;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
75% {
|
|
326
|
+
opacity: 1;
|
|
327
|
+
scale: 1;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
90% {
|
|
331
|
+
opacity: 0;
|
|
332
|
+
scale: 0.4;
|
|
333
|
+
animation-timing-function: ease-out;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
to {
|
|
337
|
+
opacity: 0;
|
|
338
|
+
scale: 0;
|
|
339
|
+
}
|
|
340
|
+
}`};function Qm(t,e){q(e,!0),Q(t,m3);let[i,o]=Fe(),n=()=>C(s,"$isPlaying$",i),a=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=we(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:_}}=Wt(),u=0,$=ee(null),w=ee(!1);Ke(()=>{O($,me(n()?Er:ss))}),Ke(()=>{O($,me(a()?Es:null))}),Ke(()=>{if(p)return u=window.setTimeout(()=>{u=0,a()&&r($)===Es&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),O($,null)},r($)!==Es?f:_),()=>{u&&(window.clearTimeout(u),u=0)}}),Ke(()=>{n()&&!r(w)&&(O(w,!0),O($,null))});var y=qe(),S=ue(y);{var I=A=>{var P=qe(),E=ue(P);Qs(E,()=>r($),T=>{var V=f3(),U=h(V),Y=h(U);let F=m(()=>a()==="prev");$i(Y,()=>r($),(j,X)=>{X(j,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),g(U),g(V),k(()=>tt(U,`animation-duration: ${r($)!==Es?f:_}ms`)),b(T,V)}),b(A,P)};R(S,A=>{r($)&&p&&A(I)})}b(t,y),K(),o()}var v3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},g3=(t,e,i,o,n,a,s,d,l,p,f,_,u,$,w,y,S)=>{var I;if(t.preventDefault(),e()||o()){a();return}if(!(s()&&!l)){if(r(p))return f();if((I=_())==null||I.focus(),!u()){$.firstStart(),w($.uiConfig.controls.hideTimeoutCursor);return}(!$.uiConfig.preventPauseOnVideoClick||y()!==Gm.PlaybackState.PLAYING)&&$.store.actions.internal.togglePlay(),w($.uiConfig.controls.hideTimeoutCursor)}},h3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},_3=L("<div><!></div>"),b3=L('<div class="spherical-video-icon svelte-cy741x"><!></div>'),$3=L("<div><!></div>"),y3=L('<div class="settings-menu svelte-cy741x"><!></div>'),x3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),w3=L('<div><div data-testid="video-container"></div></div> <!>',1),S3=L('<div class="blocked svelte-cy741x"></div>'),C3=L('<div class="player-wrapper svelte-cy741x"><!> <div class="overlay-container"></div></div> <!>',1),T3={hash:"svelte-cy741x",code:`.player-wrapper.svelte-cy741x {position:absolute;width:100%;height:100%;}.blocked.svelte-cy741x {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-cy741x .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-cy741x {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-cy741x,
|
|
341
|
+
.video-container.svelte-cy741x,
|
|
342
|
+
.ads-container.svelte-cy741x {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-cy741x {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-cy741x {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-cy741x {transition:none;}.nocursor.svelte-cy741x {cursor:none;}.ads-container.svelte-cy741x {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-cy741x {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}`};function Ym(t,e){q(e,!0),Q(t,T3);let[i,o]=Fe(),n=()=>C(Zi,"$notificationsToShow$",i),a=()=>C(Fo,"$playerPhase",i),s=()=>C(ho,"$isLoaderVisible",i),d=()=>C(ko,"$adPlaybackState",i),l=()=>C(Ao,"$crashed",i),p=()=>C(xi,"$isInteractiveTime$",i),f=()=>C(Gt,"$settingsMenuVisible",i),_=()=>C($o,"$isInteractiveExpectation$",i),u=()=>C(z,"$controlsVisible",i),$=()=>C(sn,"$touched",i),w=()=>C(it,"$graphIsOpened$",i),y=()=>C(Vt,"$isFullscreen",i),S=()=>C(Hn,"$autoplayNextEnabled$",i),I=()=>C(di,"$postrollPassed",i),A=()=>C(qi,"$isEnded$",i),P=()=>C(Lo,"$cursorInside",i),E=()=>C(Ri,"$rotateAlpha",i),T=()=>C(xt,"$playerSize",i),V=()=>C(dn,"$fakeIsPlaying$",i),U=()=>C(lo,"$bottomNoSmooth",i),Y=()=>C(Po,"$interactiveTimeIndicator",i),F=()=>C(gi,"$is3DVideo",i),j=()=>C(ei,"$contextMenuVisible$",i),X=()=>C(Ai,"$playbackState$",i),oe=()=>C(wi,"$hotKeyMapData",i),pe=()=>C(Vi,"$scrubbingInProgress",i),le=()=>C(vi,"$volumeChangingInProgress",i),Ve=()=>C(Uo,"$chromecastConnected$",i),Me=()=>C(pn,"$controlsTimeoutActive",i),J=()=>C(zi,"$settingsMenuOpenedByKeyboard",i),Le=()=>C(Vr,"$contextMenuOpenedByKeyboard$",i),Z=()=>C(hr,"$contextMenuButtonRef$",i),B=()=>C(gn,"$contextMenuOpenedByHotKey$",i),Re=()=>C(Kr,"$contextMenuLastActiveElem$",i),ne=()=>C(bt,"$isFullscreenOpenedByKeyboard",i),ke=()=>C(Kt,"$isPlaying$",i),Ne=()=>C(Jt,"$language$",i),fe=()=>C(Wi,"$icon3DVideoVisible",i),D=()=>C(Ot,"$chromecastDeviceName$",i),de=()=>C(_o,"$currentSubtitle$",i),Ee=()=>C(zo,"$currentSubtitleCaptions$",i),Ye=()=>C(Ui,"$position$",i),dt=()=>C(si,"$realDuration$",i),Ae=()=>C(St,"$isLive$",i),$e=()=>C(Eo,"$duration$",i),Pe=()=>C(ar,"$contextMenuPosition$",i),rt=()=>C(Tn,"$showHotKeyMap",i),vt=()=>C(ao,"$debugPanelVisible",i),lt=()=>C(ln,"$userActionsDisabled$",i),Et=v(e,"videoContainer",15),st=v(e,"adsSlotId",3,void 0),gt=v(e,"adsParams",3,void 0),qt=v(e,"adsPreviewParam",3,void 0),Yt=v(e,"adsAutoplayParam",3,void 0),Be=v(e,"duration",3,void 0),re=v(e,"logoTargetUrl",3,""),W=v(e,"showNextPrevButtons",3,!1),se=v(e,"nextButtonActive",3,!1),he=v(e,"prevButtonActive",3,!1),Se=v(e,"endScreenVideoTitle",3,void 0),De=v(e,"endScreenVideoThumb",3,void 0),ut=v(e,"isOneVideoPlaylist",3,!1),Qt=v(e,"shadowRootContainer",3,void 0),Ze=v(e,"outerContainerRef",3,void 0),pt=v(e,"playerStarted",3,!1),Je=v(e,"fullScreenTarget",3,void 0),Pt=v(e,"showMiniTimer",3,!1),ri=v(e,"showEndScreen",3,!0),Ge=v(e,"keyboardControls",15),ot=e.store.getLogger().createComponentLog("Root component"),Jt=e.store.interfaceLanguage$,Ai=e.store.state.playbackState$,ko=e.store.ads.playbackState,Ui=e.store.state.positionWithScrubbing$,Eo=e.store.state.duration$,Fo=e.store.playerPhase,Vt=e.store.ui.isFullscreen,bt=e.store.ui.isFullscreenOpenedByKeyboard,z=e.store.ui.controlsVisible,Gt=e.store.ui.settingsMenu.visible$,zi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Vi=e.store.ui.scrubbingInProgress,vi=e.store.ui.volumeChangingInProgress,ei=e.store.ui.contextMenu.visible$,ao=e.store.ui.debugPanelVisible,ho=e.store.state.isLoaderVisible,qi=e.store.state.isEnded$,Uo=e.store.state.chromecastConnected$,Ot=e.store.state.chromecastDeviceName$,di=e.store.ads.postrollPassed,St=e.store.state.isLive$,Kt=e.store.state.isPlaying$,Ao=e.store.state.crashed$,Ki=e.store.webApi.annotationsApi,li=e.store.webApi.pictureInPictureApi,_o=e.store.state.currentSubtitle$,zo=e.store.state.currentSubtitleCaptions$,si=e.store.state.duration$,xt=e.store.ui.playerSize,gi=e.store.ui.is3DVideo,Wi=e.store.ui.icon3DVideoVisible,Ri=e.store.ui.rotateAlpha,bo=e.store.state.isInteractive,xi=e.store.state.isInteractiveTime$,$o=e.store.state.isInteractiveExpectation$,Cn=e.store.state.hasInteractiveBranches,sn=e.store.ui.touched,wi=e.store.ui.modals.hotKeyMap.data,Tn=e.store.ui.modals.hotKeyMap.show,an=e.store.ui.overlayContainer$,Po=e.store.ui.controls.interactiveTimeIndicator,In=e.store.state.showInteractiveTimeIndicator,ar=e.store.ui.contextMenu.position$,lr=e.store.actions.internal.setQuality,On=e.store.actions.internal.closeSettingsMenu,Hn=e.store.ui.autoplayNextEnabled$,ln=e.store.ui.userActionsDisabled,{fakeIsPlaying$:dn,notifications$:dr,graphIsOpened$:it}=so(),ji=ee(void 0),cr=ee(void 0),Fn=ee(void 0),cn=ee(void 0),un,Mo,yo;wi.set(Lh());let{closeNotification:Qi,notificationsToShow$:Zi}=dr,Un=m(()=>!!n().slow_video),zn=()=>Qi("slow_video"),Pr=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),qn=ee(void 0),lo=ae(!1),xo,pn=ae(!1),kn=ae(),Lo=ae(!1),Gi=ee(!1),qo=ee(!1),wo=ee(!1),ur=ee(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),fn=m(()=>p()&&!f()&&!(r(Gi)||r(qo))&&!(r(wo)&&!_())),Kn=!0,Wn=m(()=>e.uiConfig.features.thumbTimer&&Pt()&&a()==="video"&&!u()&&!l()&&!bo&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Qn=m(()=>a()==="video"&&!w()&&y()),pr=ee(!1),Gn=m(()=>(ri()||e.showAutoplayNext&&S())&&!!Se()&&!!De()&&(e.showAds&&I()||!e.showAds)&&A()&&!l()&&!r(pr)),fr=m(()=>P()&&!(u()||r(Gn))&&!p()),Yn=ee(!1),jn=m(()=>Et()&&E()%180?T().height/T().width:1),oi=m(()=>V()!==null),{toggle:mr}=dn,mn=!1,Ko=null;li==null||li.setContext(Ol());let nt=()=>{e.autoplay&&!bo&&e.uiConfig.controls.showOnStartupAtAutoplay&&ti(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:nt});let Mt=()=>{window.clearTimeout(un),pn.set(!1)},Si=()=>{window.clearTimeout(Mo),kn.set(null)},ti=Ce=>{Mt(),pn.set(!0),un=window.setTimeout(()=>pn.set(!1),Ce);let ft=Ce-100;xo=window.setTimeout(()=>{U()&&lo.set(!1)},ft>0?ft:Ce)},Xi=(Ce,ft)=>{Si(),kn.set(ft),Mo=window.setTimeout(()=>kn.set(null),Ce)},So=gi.subscribe(Ce=>{Wi.set(Ce),Ce&&(window.clearTimeout(yo),yo=window.setTimeout(()=>Wi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Co=async()=>{var ft,Rt,Ut,Yi;let Ce=ys();if(Ce){let ci=td(),jt=et();Ce=ci===jt||ci===Qt()}if(Ce){ti(e.uiConfig.controls.hideTimeoutFullscreen);try{await(li==null?void 0:li.remove())}catch(ci){ot({message:String(ci)})}}Vt.set(Ce),e.store.getAdmanWrapper().setFullscreen(Ce),y()?(Rt=(ft=e.store.callbacks)==null?void 0:ft.onFullscreenEnter)==null||Rt.call(ft):(Yi=(Ut=e.store.callbacks)==null?void 0:Ut.onFullscreenExit)==null||Yi.call(Ut)},Wo=Ce=>{let{width:ft,height:Rt}=Ce.target;xt.set({width:ft,height:Rt})},Qo=()=>{let{width:Ce,height:ft}=r(ji).getBoundingClientRect();xt.set({width:Ce,height:ft})};Ft(()=>{var ft;return Wc(Co),e.uiConfig.features.annotationsInside&&(Ki==null||Ki.init(r(ji))),ia(li)&&(li==null||li.assignPlayerContainer(r(ji)),li==null||li.registryExternalEventHandlers({resize:Wo,leavepictureinpicture:Qo})),e.interactiveContainer&&((ft=Et().parentElement)==null||ft.insertBefore(e.interactiveContainer,Et().nextSibling)),()=>{window.clearTimeout(un),window.clearTimeout(xo),window.clearTimeout(Mo),window.clearTimeout(yo),So(),li==null||li.dispose().catch(Rt=>{ot({message:String(Rt)})}),Qc(Co)}});let et=()=>{let Ce=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ze()?r(ji):Ze(),ft=Ce.getRootNode(),Rt=ft instanceof ShadowRoot?ft.host:ft,Ut=Je()instanceof HTMLElement&&Je().contains(Rt);return e.uiConfig.allowChangingFullscreenTarget&&Je()&&Ut?Je():Ce},It=async()=>{ys()?(await Kc(document),ot({message:"exit fullscreen"})):(ot({message:"request fullscreen"}),await qc(et()))},ai=()=>{On(),ei.set(!1)},Pi=Ce=>{w()||(Ce.preventDefault(),ei.set(!0),ar.set({left:Ce.clientX,top:Ce.clientY}))};function Ni(){Lo.set(!0),bo||ti(e.uiConfig.controls.hideTimeoutCursor)}function Ci(){bo||(lo.set(!0),ti(e.uiConfig.controls.hideTimeoutCursor))}function co(){Lo.set(!1),O(qo,!1),O(Gi,!1),mn=!1,e.store.actions.internal.releaseCamera(),ti(e.uiConfig.controls.hideTimeout)}function Ti(Ce){return Ce?Ce.offsetTop+Ti(Ce.offsetParent):0}function vn(Ce){return Ce?Ce.offsetLeft+vn(Ce.offsetParent):0}function vr(Ce){if(Y()&&In){let ft=Ce.currentTarget,Rt=Ti(ft),Ut=vn(ft),Yi=Ce.pageX-Ut,ci=Ce.pageY-Rt,{left:jt,bottom:Rr,right:He}=Y(),kt=He-jt;return Yi>=jt-kt&&ci<=Rr+kt}}function En(Ce){if(r(ji)){let ft=Ti(Ce.currentTarget),Rt=T().height,Ut=Ce.pageY-ft;if(vr(Ce)){O(qo,!1);return}Ut<40?O(qo,!0):Ut>Rt-40?O(Gi,!0):(O(qo,!1),f()||O(Gi,!1))}}function Mr(Ce){En(Ce),r(fn)||ti(e.uiConfig.controls.hideTimeoutCursor),F()&&mn&&Ko&&e.store.actions.internal.moveCameraFocusPX(Ko.clientX-Ce.clientX,Ko.clientY-Ce.clientY,Ce.timeStamp-Ko.timeStamp),Ko=Ce}let uo=Ce=>{Ce.preventDefault(),Ce.button===0&&(mn=!0,e.store.actions.internal.holdCamera()),ti(e.uiConfig.controls.hideTimeoutCursor)},Lr=Ce=>{Ce.preventDefault(),Ce.button===0&&(Ko=Ce,mn=!1,e.store.actions.internal.releaseCamera()),ti(e.uiConfig.controls.hideTimeoutCursor)},Zn=Ce=>{ai(),sn.set(!0),ti(e.uiConfig.controls.hideTimeout),Ce&&Xi(e.uiConfig.controls.hideHotKeyHelpers,Ce)},qr=()=>{var Ce,ft;ai(),(Ce=e.store.callbacks)!=null&&Ce.onOpenHotKeyMap?(ft=e.store.callbacks)==null||ft.onOpenHotKeyMap(oe()):Tn.update(Rt=>!Rt)},gr=()=>{sn.set(!0)},Vr=e.store.ui.contextMenu.openedByBtnKeyboard$,hr=e.store.ui.contextMenu.btnRef$,Vo=ee(void 0),gn=e.store.ui.contextMenu.openedByHotKey$,Kr=e.store.ui.contextMenu.lastActiveElem$;Ke(()=>{an.set(r(qn))}),Ke(()=>{O(wo,me(r(ur)&&X()!==Gm.PlaybackState.PLAYING)),r(ur)||yt(()=>O(ur,!0))}),Ke(()=>{z.set((r(wo)||A()||f()||pe()||le()||Ve()||Me())&&!r(fn)&&(a()==="video"||a()==="ads")&&!l())}),Ke(()=>{!pe()&&r(Yn)&&!p()&&ti(e.uiConfig.controls.hideTimeoutCursor),yt(()=>O(Yn,me(pe())))}),Ke(()=>{r(cn),f(),J(),yt(()=>Xa(r(cn),f(),J()))}),Ke(()=>{r(Vo),j(),Le(),yt(()=>Xa(r(Vo),j(),Le()))}),Ke(()=>{let Ce=Z();Ce&&(j(),yt(()=>Za(Ce,j(),Vr)))}),Ke(()=>{r(Vo),j(),B(),yt(()=>Xa(r(Vo),j(),B()))}),Ke(()=>{let Ce=Re();Ce&&(j(),yt(()=>Bh(Ce,j(),gn)))}),Ke(()=>{var Ce;!ne()&&y()&&(yt(()=>bt.set(!1)),(Ce=Ge())==null||Ce.focus())}),Ke(()=>{w()&&ai()});let _r=H("video360");var Xn=C3();At("blur",Us,ai);var Xe=ue(Xn);Xe.__mousemove=Mr;var Ht=h(Xe);let _i=m(()=>a()==="ads"),hn=m(()=>r(oi)?mr:void 0);ct(cf(Ht,{toggleFullscreen:It,hideContextMenu:ai,showHotKeyHelpers:Zn,showKeyMap:qr,get isAds(){return r(_i)},get fakePlayButtonHandler(){return r(hn)},get nextButtonActive(){return se()},get prevButtonActive(){return he()},children:(Ce,ft)=>{var Rt=w3(),Ut=ue(Rt);let Yi;Ut.__contextmenu=Pi,Ut.__mousedown=uo,Ut.__mouseup=Lr,Ut.__click=[g3,j,ei,f,Gt,ai,A,qi,Cn,oi,mr,Ge,pt,e,ti,X,Ai],Ut.__dblclick=[v3,Kn,ot,It,ti,e];var ci=h(Ut);let jt;ct(ci,He=>Et(He),()=>Et()),g(Ut);var Rr=M(Ut,2);Qs(Rr,Ne,He=>{var kt=x3(),hi=ue(kt);let Ro=m(()=>a()!=="thumb"||l()||bo&&e.autoplay);Nd(hi,{get hidden(){return r(Ro)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Go=M(hi,2);Qm(Go,{});var Wr=M(Go,2);{var Pn=Ue=>{let ze=m(()=>{var Bo;return(Bo=e.live)==null?void 0:Bo.startTime});Bd(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ze)}})};R(Wr,Ue=>{a()==="LiveWaitingStart"&&Ue(Pn)})}var Nr=M(Wr,2);{var gl=Ue=>{ga(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Nr,Ue=>{a()==="LiveWaitingRecover"&&Ue(gl)})}var Ms=M(Nr,2);{var br=Ue=>{ga(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ms,Ue=>{a()==="LiveWaitingRecord"&&Ue(br)})}var $a=M(Ms,2);{var ya=Ue=>{var ze=_3();let Bo;var cs=h(ze);id(cs,{get adsSlotId(){return st()},get adsParams(){return gt()},get adsPreviewParam(){return qt()},get adsAutoplayParam(){return Yt()},get duration(){return Be()}}),g(ze),k(Do=>Bo=te(ze,1,"ads-container svelte-cy741x",null,Bo,Do),[()=>({hidden:a()!=="ads"})]),b(Ue,ze)};R($a,Ue=>{e.showAds&&pt()&&Ue(ya)})}var Ls=M($a,2);{var $t=Ue=>{let ze=m(()=>!ri()&&e.showAutoplayNext&&S());af(Ue,{get title(){return Se()},get thumb(){return De()},get isHide(){return r(ze)},clickCloseIcon:()=>O(pr,!0)})};R(Ls,Ue=>{r(Gn)&&Se()&&De()&&Ue($t)})}var ht=M(Ls,2);{var Ji=Ue=>{let ze=m(()=>!u());$m(Ue,{get title(){return e.title},get isHidden(){return r(ze)}})};R(ht,Ue=>{r(Qn)&&Ue(Ji)})}var No=M(ht,2);{var eo=Ue=>{let ze=m(()=>a()==="video"&&u());Md(Ue,{get isShifted(){return r(ze)}})};R(No,Ue=>{F()&&Ue(eo)})}var ii=M(No,2);{var Mi=Ue=>{var ze=b3(),Bo=h(ze);ed(Bo,{"aria-label":_r}),g(ze),b(Ue,ze)};R(ii,Ue=>{fe()&&Ue(Mi)})}var ds=M(ii,2);{var hl=Ue=>{Vd(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return D()}})};R(ds,Ue=>{Ve()&&Ue(hl)})}var Jd=M(ds,2);{var Mu=Ue=>{Ld(Ue,{get shifted(){return u()},get captions(){return Ee()},get position(){return Ye()},get playerSize(){return T()}})};R(Jd,Ue=>{de().value!=="off"&&Ue(Mu)})}var ec=M(Jd,2);{var xa=Ue=>{var ze=$3();ze.__contextmenu=Pi,ze.__click=[h3,j,ei,f,Gt,ai];var Bo=h(ze);Rd(Bo,{}),g(ze),b(Ue,ze)};R(ec,Ue=>{l()&&Ue(xa)})}var tc=M(ec,2);{var ic=Ue=>{let ze=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Bo=m(()=>a()==="ads"),cs=m(()=>e.canRewindLive&&dt()!==0);Pd(Ue,{get bottomHidden(){return r(ze)},get bottomNoSmooth(){return U()},get showControls(){return u()},get isAds(){return r(Bo)},get canRewindLive(){return r(cs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return re()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return W()},get nextButtonActive(){return se()},get prevButtonActive(){return he()},get isOneVideoPlaylist(){return ut()},customFullscreenSupported:Kn,toggleFullscreen:It,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(cr)},set playerControlsWrapperRef(Do){O(cr,me(Do))},get playerControlsRef(){return r(Fn)},set playerControlsRef(Do){O(Fn,me(Do))}})};R(tc,Ue=>{pt()&&Ue(ic)})}var _l=M(tc,2);{var Lu=Ue=>{var ze=y3(),Bo=h(ze);let cs=m(()=>{var Do;return(Do=r(Fn))==null?void 0:Do.clientHeight});Fd(Bo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(cs)},returnFocus:()=>{var Do;return(Do=Ge())==null?void 0:Do.focus()},get ref(){return r(cn)},set ref(Do){O(cn,me(Do))}}),g(ze),b(Ue,ze)};R(_l,Ue=>{!Ve()&&a()!=="ads"&&Ue(Lu)})}var bl=M(_l,2);let $l=m(()=>!r(Wn));nd(bl,{get isLive(){return Ae()},get isHidden(){return r($l)},get isPlaying(){return ke()},get position(){return Ye()},get duration(){return $e()}});var yl=M(bl,2);gm(yl,{data:kn});var oc=M(yl,2);rf(oc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ue;return(Ue=Ge())==null?void 0:Ue.focus()},get visible(){return j()},get playerContainerRef(){return r(ji)},get controlsContainerRef(){return r(cr)},get position(){return Pe()},get menuElementRef(){return r(Vo)},set menuElementRef(Ue){O(Vo,me(Ue))}});var xl=M(oc,2);{var Vu=Ue=>{Ud(Ue,{onClose:zn,onSelectAutoQuality:()=>{lr("auto"),zn()}})};R(xl,Ue=>{r(Un)&&Ue(Vu)})}var nc=M(xl,2);{var Ru=Ue=>{aa(Ue,{})};R(nc,Ue=>{r(Pr)&&Ue(Ru)})}var rc=M(nc,2);{var wa=Ue=>{ff(Ue,{})};R(rc,Ue=>{rt()&&Ue(wa)})}var sc=M(rc,2);{var ac=Ue=>{ad(Ue,{})};R(sc,Ue=>{vt()&&Ue(ac)})}var Nu=M(sc,2);ql(Nu,()=>"slot",!1,(Ue,ze)=>{xe(Ue,null,{name:zd})}),b(He,kt)}),k((He,kt)=>{Yi=te(Ut,1,"video-wrapper svelte-cy741x",null,Yi,He),jt=te(ci,1,"video-container svelte-cy741x",null,jt,kt),tt(ci,`transform: rotate(${E()}deg) scale(${r(jn)})`),Oe(ci,"data-is-playing",ke())},[()=>({hidden:a()!=="video",nocursor:r(fr)}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),b(Ce,Rt)},$$slots:{default:!0}}),Ce=>Ge(Ce),()=>Ge());var _n=M(Ht,2);ct(_n,Ce=>O(qn,Ce),()=>r(qn)),g(Xe),ct(Xe,Ce=>O(ji,Ce),()=>r(ji));var An=M(Xe,2);{var Jn=Ce=>{var ft=S3();b(Ce,ft)};R(An,Ce=>{lt()&&Ce(Jn)})}At("mouseenter",Xe,Ni),At("mouseleave",Xe,co),At("click",Xe,gr,!0),At("focusin",Xe,Ci,!0),b(t,Xn),K(),o()}at(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);var Ps=require("@vkontakte/videoplayer-core/es2018"),F1=require("@vkontakte/videoplayer-shared/es2018");var I3=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),k3=L("<div><!></div>"),E3={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;
|
|
312
343
|
animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
|
|
313
344
|
.triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
|
|
314
345
|
.triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
|
|
@@ -324,9 +355,9 @@ Try switching the\xA0quality to\xA0Auto.`},Sh=b_;var ns=new Map;ns.set(qa.Interf
|
|
|
324
355
|
100% {
|
|
325
356
|
opacity: 0;
|
|
326
357
|
}
|
|
327
|
-
}.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
|
|
358
|
+
}.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){q(e,!0),Q(t,E3);let i=v(e,"seekStep",3,0),o=ee(!1),n=0,a=0,s=ee(me(i())),d=_=>{_.stopPropagation(),a+=1,O(s,i()*(a-1)),a===1?e.handleSingleFirstClick(_):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,O(o,!1)},300)};wn(()=>{window.clearTimeout(n)});var l=k3();l.__click=d;var p=h(l);{var f=_=>{var u=I3(),$=ue(u),w=M($,2),y=h(w),S=h(y),I=M(S,2),A=M(I,2);g(y);var P=M(y,2),E=h(P,!0);g(P),g(w),k(T=>{var V,U,Y,F;te($,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),te(S,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),te(I,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),te(A,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),ve(E,T)},[()=>H("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b(_,u)};R(p,_=>{r(o)&&_(f)})}g(l),k(()=>{var _;return te(l,1,`double-click-area ${(_=e.side)!=null?_:""}`,"svelte-nhq2ld")}),b(t,l),K()}at(["click"]);var A3=(t,e,i)=>{e(!1),i()},P3=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),M3={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 jm(t,e){q(e,!0),Q(t,M3);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=we(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),$()};Ft(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=qe(),I=ue(S);{var A=P=>{var E=P3(),T=M(ue(E),2),V=h(T),U=h(V),Y=h(U,!0);g(U);var F=M(U,2);sa(F,{onClick:y}),g(V);var j=M(V,2);j.__click=[A3,p,_];var X=h(j),oe=h(X),pe=h(oe);let le;var Ve=M(pe,2);{var Me=B=>{ld(B,{get isRunning(){return a()},onTimerEnded:w})};R(Ve,B=>{n()&&B(Me)})}g(oe),g(X);var J=M(X,2),Le=h(J),Z=h(Le,!0);g(Le),g(J),g(j),g(T),k((B,Re)=>{ve(Y,B),tt(oe,`background-image: url('${e.thumb}')`),le=te(pe,1,"thumb-overlay svelte-1qdxi6t",null,le,Re),ve(Z,e.title)},[()=>n()?H("end_screen_next_video"):H("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(P,E)};R(I,P=>{e.isHide||P(A)})}b(t,S),K(),o()}at(["click"]);var N1=require("@vkontakte/videoplayer-core/es2018");var B1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ft(()=>{N1.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))}),wn(()=>{i==null||i(),clearTimeout(o)})};var D1=require("@vkontakte/videoplayer-core/es2018");var bu=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 O1=require("@vkontakte/videoplayer-core/es2018"),H1=({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"),f=()=>O1.clientChecker.device.isIOS&&ye(s)===D1.VideoFormat.DASH_LIVE_CMAF,_=()=>{l==null||l(),l=null},u=$=>{if(_(),!f()||!$)return;let w=p();if(!w)return;let y=new bu(w),S=ye(d),I=ye(a),A=ye(n);for(let T of S)I.some(U=>U.value===T.id)&&y.attach(T,A.value===T.id);let P=d.subscribe(T=>{for(let V of T)y.updateSrc(V)}),E=()=>{let T=y.getCurrentShowingId();o(ye(a).find(V=>V.value===T))};w.textTracks.addEventListener("change",E),l=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",E)}};Ft(()=>i.subscribe(u)),wn(_)};var L3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},V3=L("<!> <!>",1),R3=L("<div><!></div>"),N3=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),B3=L("<div><!></div>"),D3=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),O3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),H3=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><div><div data-testid="video-container"></div></div> <!> <div class="overlay-container"></div></div>'),F3={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);}.video-wrapper.svelte-dtyj47,
|
|
328
359
|
.video-container.svelte-dtyj47,
|
|
329
|
-
.ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.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 Km(t,e){var Do,ko;q(e,!0),Q(t,B3);let[i,o]=Ue(),n=()=>C(Zt,"$playerPhase",i),a=()=>C(Pt,"$isLoaderVisible",i),s=()=>C(lt,"$adPlaybackState",i),d=()=>C(Uo,"$crashed",i),l=()=>C(Zn,"$notificationsToShow$",i),p=()=>C(Ge,"$playbackState$",i),f=()=>C(De,"$graphIsOpened$",i),_=()=>C(ei,"$interactiveHideMobileControls",i),u=()=>C(_t,"$isEnded$",i),$=()=>C(vo,"$isInteractiveExpectation$",i),w=()=>C(dt,"$controlsVisible",i),y=()=>C(xi,"$touched",i),S=()=>C(qo,"$autoplayNextEnabled$",i),I=()=>C(Ki,"$postrollPassed",i),A=()=>C(ni,"$rotateAlpha",i),P=()=>C(Gn,"$playerSize",i),E=()=>C(un,"$bottomNoSmooth",i),T=()=>C(wt,"$videoSize",i),V=()=>C(Ke,"$isFullscreen",i),z=()=>C(Xe,"$position$",i),Y=()=>C(It,"$duration$",i),U=()=>C(wn,"$loadedMetadata",i),Z=()=>C(Ri,"$settingsMenuVisible",i),X=()=>C(qi,"$scrubbingInProgress",i),oe=()=>C(Lo,"$volumeChangingInProgress",i),ce=()=>C(F,"$chromecastConnected$",i),le=()=>C(ui,"$isInteractiveTime$",i),Ve=()=>C(fo,"$isActiveLive",i),Me=()=>C(Mo,"$settingsMenuOpenedByKeyboard",i),J=()=>C(po,"$isPlaying$",i),Le=()=>C(Ut,"$language$",i),j=()=>C(xn,"$disabledControls$",i),N=()=>C(Co,"$is3DVideo",i),Re=()=>C(zo,"$icon3DVideoVisible",i),ne=()=>C(Wt,"$chromecastDeviceName$",i),ke=()=>C(zt,"$currentSubtitle$",i),Be=()=>C(mo,"$currentSubtitleCaptions$",i),ue=()=>C(jt,"$realDuration$",i),D=()=>C(di,"$isLive$",i),de=()=>C(Vo,"$debugPanelVisible",i),Ee=v(e,"videoContainer",15),Qe=v(e,"adsSlotId",3,void 0),at=v(e,"adsParams",3,void 0),Ae=v(e,"adsPreviewParam",3,void 0),$e=v(e,"adsAutoplayParam",3,void 0),Pe=v(e,"duration",3,void 0),nt=v(e,"logoTargetUrl",3,""),mt=v(e,"showNextPrevButtons",3,!1),et=v(e,"nextButtonActive",3,!1),Bt=v(e,"prevButtonActive",3,!1),rt=v(e,"endScreenVideoTitle",3,void 0),vt=v(e,"endScreenVideoThumb",3,void 0),Ft=v(e,"isOneVideoPlaylist",3,!1),qt=v(e,"shadowRootContainer",3,void 0),Ne=v(e,"outerContainerRef",3,void 0),re=v(e,"showMiniTimer",3,!1),W=v(e,"fullScreenTarget",3,void 0),se=v(e,"playerStarted",3,!1),ve=v(e,"showEndScreen",3,!0),{notifications$:Se,graphIsOpened$:De}=uo(),ut=e.store.getLogger().createComponentLog("Root component"),Ut=e.store.interfaceLanguage$,Ge=e.store.state.playbackState$,lt=e.store.ads.playbackState,Xe=e.store.state.positionWithScrubbing$,It=e.store.state.duration$,Zt=e.store.playerPhase,Ke=e.store.ui.isFullscreen,dt=e.store.ui.controlsVisible,ei=e.store.ui.interactiveHideMobileControls,Ri=e.store.ui.settingsMenu.visible$,Mo=e.store.ui.settingsMenu.openedByBtnKeyboard$,qi=e.store.ui.scrubbingInProgress,Lo=e.store.ui.volumeChangingInProgress,Vo=e.store.ui.debugPanelVisible,Pt=e.store.state.isLoaderVisible,_t=e.store.state.isEnded$,F=e.store.state.chromecastConnected$,Wt=e.store.state.chromecastDeviceName$,Ki=e.store.ads.postrollPassed,Bi=e.store.ui.mobileUnmuteButtonExpanded,si=e.store.ui.mobileUnmuteButtonVisible,di=e.store.state.isLive$,po=e.store.state.isPlaying$,fo=e.store.state.isActiveLive$,ji=e.store.state.isRewindableLive$,Uo=e.store.state.crashed$,Nt=e.store.webApi.annotationsApi,ci=e.store.webApi.pictureInPictureApi,wt=e.store.state.videoSize$,zt=e.store.state.currentSubtitle$,mo=e.store.state.currentSubtitleCaptions$,jt=e.store.state.duration$,Gn=e.store.ui.playerSize,Co=e.store.ui.is3DVideo,zo=e.store.ui.icon3DVideoVisible,ni=e.store.ui.rotateAlpha,yt=e.store.state.isInteractive,ui=e.store.state.isInteractiveTime$,vo=e.store.state.isInteractiveExpectation$,gi=e.store.state.hasInteractiveBranches,xn=e.store.ui.controls.disabledControls$,xi=e.store.ui.touched,To=e.store.ui.overlayContainer$,qo=e.store.ui.autoplayNextEnabled$,wn=e.store.state.loadedMetadata$,wi=e.store.actions.internal.closeSettingsMenu,Yn=(Do=e.store.callbacks)==null?void 0:Do.onDisabledPlayPrevChapterClick,an=(ko=e.store.callbacks)==null?void 0:ko.onDisabledSeekToInteractiveClick,Ro=e.store.actions.internal.setQuality,ln=ee(void 0),Pr=ee(void 0),ur=ee(void 0),jn=ee(void 0),Sn,dn,Cn,go=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),Je=ee(void 0),{closeNotification:cn,notificationsToShow$:Zn}=Se,Xn=m(()=>!!l().slow_video),Tn=()=>cn("slow_video"),un=ae(!1),pn,Ko=ee(!1),Wi=m(()=>p()!==As.PlaybackState.PLAYING),Qi=ee(!1),Jn=m(()=>f()||_()||!r(Ko)&&(u()&&!!gi||r(Wi)&&$())),In=ee(!0),er=m(()=>e.uiConfig.features.thumbTimer&&re()&&n()==="video"&&!w()&&!d()&&!yt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),pr=ee(!1),Zi=m(()=>(ve()||e.showAutoplayNext&&S())&&!!rt()&&!!vt()&&(e.showAds&&I()||!e.showAds)&&u()&&!d()&&!r(pr)),Xi=ee(!1),kn=m(()=>Ee()&&A()%180?P().height/P().width:1);ci==null||ci.setContext(Rl());let En=Ze=>{clearTimeout(dn),Ze&&(si.set(!0),Bi.set(!0),dn=setTimeout(()=>{Bi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),yt||Ji(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:En});let ho=()=>{clearTimeout(Sn),O(Ko,!1),_()&&ei.set(!1)},Ji=Ze=>{ho(),O(Ko,!0),Sn=setTimeout(()=>O(Ko,!1),Ze);let Tt=Ze-100;pn=setTimeout(()=>{E()&&un.set(!1)},Tt>0?Tt:Ze)},An=Co.subscribe(Ze=>{zo.set(Ze),Ze&&(clearTimeout(Cn),Cn=setTimeout(()=>zo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Bo=async(Ze=ys())=>{var Tt,Ei,Ni,Di,hi,Gi;if(Ze&&!As.clientChecker.device.isIOS){let io=Xl(),Rn=Ln(),Bn=As.clientChecker.browser.isSamsungBrowser&&io===qt();Ze=io===Rn||Bn}if(Ze){Ji(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ci==null?void 0:ci.remove())}catch(io){ut({message:String(io)})}try{let io=(Tt=T())!=null&&Tt.width&&((Ei=T())!=null&&Ei.height)?T():P();await Eh(io)}catch(io){ut({message:String(io)})}}Ke.set(Ze),e.store.getAdmanWrapper().setFullscreen(Ze),V()?(Di=(Ni=e.store.callbacks)==null?void 0:Ni.onFullscreenEnter)==null||Di.call(Ni):(Gi=(hi=e.store.callbacks)==null?void 0:hi.onFullscreenExit)==null||Gi.call(hi)},Mr=Ze=>{let Tt=Ze;Gn.set({width:Tt.target.width,height:Tt.target.height})};Dt(()=>{var Ze;return Fc(Bo),e.uiConfig.features.annotationsInside&&(Nt==null||Nt.init(r(ln))),ea(ci)&&(ci==null||ci.assignPlayerContainer(r(ln)),ci==null||ci.registryExternalEventHandlers({resize:Mr})),O(In,!As.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((Ze=Ee().parentElement)==null||Ze.insertBefore(e.interactiveContainer,Ee().nextSibling)),()=>{clearTimeout(Sn),clearTimeout(pn),clearTimeout(dn),clearTimeout(Cn),An(),ci==null||ci.dispose().catch(Tt=>{ut({message:String(Tt)})}),Uc(Bo)}});let Pn=ee(!0),fr=ee(!0),Mn=Ze=>{let Tt=z()+(Ze==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Tt<0?(O(Pn,!1),Tt=0):Tt>=Y()&&(O(fr,!1),Tt=Y()),O(Qi,!0),e.seekTime(Tt)},Ln=()=>{let Ze=As.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ne()?r(ln):Ne(),Tt=Ze.getRootNode(),Ei=Tt instanceof ShadowRoot?Tt.host:Tt,Ni=W()instanceof HTMLElement&&W().contains(Ei);return e.uiConfig.allowChangingFullscreenTarget&&W()&&Ni?W():Ze},Lr=async()=>{try{if(ys())await Hc(document),ut({message:"exit fullscreen"});else{if(ut({message:"request fullscreen"}),As.clientChecker.device.isIOS&&!U())return;await Oc(Ln())}}catch(Ze){ut({message:String(Ze)})}},tr=()=>{wi()},mr=Ze=>{if(Ze.preventDefault(),Z()){tr();return}if(!se()){e.firstStart(),Ji(e.uiConfig.controls.hideTimeoutCursor);return}O(Qi,!1),w()?ho():Ji(e.uiConfig.controls.hideTimeoutMobile)},ir=()=>{xi.set(!0)},Vn=()=>{yt||(un.set(!0),Ji(e.uiConfig.controls.hideTimeoutCursor))},ti=Ze=>{Yn&&(Yn(Ze),Ji(e.uiConfig.controls.hideTimeoutMobile))},Wo=Ze=>{an&&(an(Ze),Ji(e.uiConfig.controls.hideTimeoutMobile))};je(()=>{To.set(r(Je))}),je(()=>{dt.set((r(Wi)||Z()||X()||oe()||ce()||!r(Zi)&&(u()||r(Ko)&&!r(Qi)))&&!r(Jn)&&n()==="video"&&!d())}),je(()=>{!X()&&r(Xi)&&!le()&&Ji(e.uiConfig.controls.hideTimeoutMobile),O(Xi,ge(X()))}),je(()=>{O(Pn,z()>0),O(fr,ge(!Ve()&&z()<Y()))}),je(()=>{ja(r(jn),Z(),Me())});let vr=H("aria_label_video_player"),Vr=H("video360");V1({fullScreenChangeHandler:Bo,getFullscreenTarget:Ln}),N1({store:e.store,getFullscreenTarget:Ln});var it=R3();Et("blur",Fs,tr),Oe(it,"aria-label",vr);var pt=h(it);let Si;pt.__click=mr;var eo=h(pt);let to;ct(eo,Ze=>Ee(Ze),()=>Ee()),g(pt);var Io=M(pt,2);Dl(Io,Le,Ze=>{var Tt=V3(),Ei=me(Tt);let Ni=m(()=>n()!=="thumb"||d()||yt&&e.autoplay);Ld(Ei,{get hidden(){return r(Ni)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Di=M(Ei,2);{var hi=He=>{var Qt=E3(),bi=me(Qt);{var Eo=On=>{let Nr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);fu(On,{side:"left",get seekStep(){return r(Nr)},handleSingleFirstClick:mr,handleSecondClick:()=>Mn("backward")})};R(bi,On=>{r(Pn)&&On(Eo)})}var vn=M(bi,2);{var Wr=On=>{let Nr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);fu(On,{side:"right",get seekStep(){return r(Nr)},handleSingleFirstClick:mr,handleSecondClick:()=>Mn("forward")})};R(vn,On=>{r(fr)&&On(Wr)})}b(He,Qt)};R(Di,He=>{e.canRewindLive&&ji&&!j().has("TIMELINE")&&He(hi)})}var Gi=M(Di,2);{var io=He=>{let Qt=m(()=>{var bi;return(bi=e.live)==null?void 0:bi.startTime});Vd(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Qt)}})};R(Gi,He=>{n()==="LiveWaitingStart"&&He(io)})}var Rn=M(Gi,2);{var Bn=He=>{va(He,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Rn,He=>{n()==="LiveWaitingRecover"&&He(Bn)})}var gr=M(Rn,2);{var Qo=He=>{va(He,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(gr,He=>{n()==="LiveWaitingRecord"&&He(Qo)})}var Nn=M(gr,2);{var hr=He=>{var Qt=A3();let bi;var Eo=h(Qt);Jl(Eo,{get adsSlotId(){return Qe()},get adsParams(){return at()},get adsPreviewParam(){return Ae()},get adsAutoplayParam(){return $e()},get duration(){return Pe()}}),g(Qt),k(vn=>bi=te(Qt,1,"ads-container svelte-dtyj47",null,bi,vn),[()=>({hidden:n()!=="ads"})]),b(He,Qt)};R(Nn,He=>{e.showAds&&se()&&He(hr)})}var _r=M(Nn,2);{var Rr=He=>{let Qt=m(()=>!ve()&&e.showAutoplayNext&&S());qm(He,{get title(){return rt()},get thumb(){return vt()},get isHide(){return r(Qt)},clickCloseIcon:()=>O(pr,!0)})};R(_r,He=>{r(Zi)&&rt()&&vt()&&He(Rr)})}var br=M(_r,2);{var fn=He=>{Ed(He,{})};R(br,He=>{N()&&He(fn)})}var mn=M(br,2);{var or=He=>{var Qt=P3(),bi=h(Qt);Zl(bi,{"aria-label":Vr}),g(Qt),b(He,Qt)};R(mn,He=>{Re()&&He(or)})}var Br=M(mn,2);{var _o=He=>{Pd(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()}})};R(Br,He=>{ce()&&He(_o)})}var Dn=M(Br,2);{var $r=He=>{Ad(He,{get shifted(){return w()},get captions(){return Be()},get position(){return z()},get playerSize(){return P()},isMobile:!0})};R(Dn,He=>{ke().value!=="off"&&He($r)})}var tt=M(Dn,2);{var Ot=He=>{var Qt=M3();Qt.__click=[k3,Z,Ri,tr];var bi=h(Qt);Md(bi,{}),g(Qt),b(He,Qt)};R(tt,He=>{d()&&He(Ot)})}var ye=M(tt,2);{var Mt=He=>{let Qt=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),bi=m(()=>n()==="ads"),Eo=m(()=>e.canRewindLive&&ue()!==0);kd(He,{get bottomHidden(){return r(Qt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(bi)},get canRewindLive(){return r(Eo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return nt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return mt()},get nextButtonActive(){return et()},get prevButtonActive(){return Bt()},get isOneVideoPlaylist(){return Ft()},get customFullscreenSupported(){return r(In)},get endScreenShown(){return r(Zi)},toggleFullscreen:Lr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:ti,onDisabledSeekToInteractiveClick:Wo,get playerControlsWrapperRef(){return r(Pr)},set playerControlsWrapperRef(vn){O(Pr,ge(vn))},get playerControlsRef(){return r(ur)},set playerControlsRef(vn){O(ur,ge(vn))}})};R(ye,He=>{se()&&He(Mt)})}var Xt=M(ye,2);{var ii=He=>{var Qt=L3(),bi=h(Qt);Dd(bi,{get supportLink(){return e.supportLink},returnFocus:D1.noop,get ref(){return r(jn)},set ref(Eo){O(jn,ge(Eo))}}),g(Qt),b(He,Qt)};R(Xt,He=>{Z()&&He(ii)})}var bo=M(Xt,2);let Ai=m(()=>!r(er));td(bo,{get isLive(){return D()},get isHidden(){return r(Ai)},get isPlaying(){return J()},get position(){return z()},get duration(){return Y()}});var oi=M(bo,2);{var li=He=>{ra(He,{})};R(oi,He=>{r(go)&&He(li)})}var _i=M(oi,2);{var Yi=He=>{nd(He,{})};R(_i,He=>{de()&&He(Yi)})}var Pi=M(_i,2);{var Ci=He=>{Od(He,{onClose:Tn,onSelectAutoQuality:()=>{Ro("auto"),Tn()}})};R(Pi,He=>{r(Xn)&&He(Ci)})}var Kr=M(Pi,2);Fl(Kr,()=>"slot",!1,(He,Qt)=>{we(He,null,{name:Hd})}),b(Ze,Tt)});var No=M(Io,2);ct(No,Ze=>O(Je,Ze),()=>r(Je)),g(it),ct(it,Ze=>O(ln,Ze),()=>r(ln)),k((Ze,Tt)=>{Si=te(pt,1,"video-wrapper svelte-dtyj47",null,Si,Ze),to=te(eo,1,"video-container svelte-dtyj47",null,to,Tt),ot(eo,`transform: rotate(${A()}deg) scale(${r(kn)})`),Oe(eo,"data-is-playing",J())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),Et("click",it,ir,!0),Et("focusin",it,Vn,!0),b(t,it),K(),o()}st(["click"]);function vu(t){let e="";return Qn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Qn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Qn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Qn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Qn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Qn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Qn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Qn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Qn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Qn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Qn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Qn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Qn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Qn(t){return typeof t=="string"&&!t.includes(";")}var N3=L('<div class="root svelte-1cnbt6x"><!></div>'),D3={hash:"svelte-1cnbt6x",code:`.root.svelte-1cnbt6x {--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
|
+
.ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.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 Wo,Qo;q(e,!0),Q(t,F3);let[i,o]=Fe(),n=()=>C(ri,"$playerPhase",i),a=()=>C(Vt,"$isLoaderVisible",i),s=()=>C(pt,"$adPlaybackState",i),d=()=>C(Uo,"$crashed",i),l=()=>C(cr,"$notificationsToShow$",i),p=()=>C(Ze,"$playbackState$",i),f=()=>C(De,"$graphIsOpened$",i),_=()=>C(Jt,"$interactiveHideMobileControls",i),u=()=>C(bt,"$isEnded$",i),$=()=>C(Wi,"$isInteractiveExpectation$",i),w=()=>C(ot,"$controlsVisible",i),y=()=>C(xi,"$touched",i),S=()=>C(Cn,"$autoplayNextEnabled$",i),I=()=>C(zi,"$postrollPassed",i),A=()=>C(si,"$rotateAlpha",i),P=()=>C(li,"$playerSize",i),E=()=>C(un,"$bottomNoSmooth",i),T=()=>C(St,"$videoSize",i),V=()=>C(Ge,"$isFullscreen",i),U=()=>C(Je,"$position$",i),Y=()=>C(Pt,"$duration$",i),F=()=>C(sn,"$loadedMetadata",i),j=()=>C(Ai,"$settingsMenuVisible",i),X=()=>C(Ui,"$scrubbingInProgress",i),oe=()=>C(Eo,"$volumeChangingInProgress",i),pe=()=>C(z,"$chromecastConnected$",i),le=()=>C(gi,"$isInteractiveTime$",i),Ve=()=>C(ho,"$isActiveLive",i),Me=()=>C(ko,"$settingsMenuOpenedByKeyboard",i),J=()=>C(ao,"$isPlaying$",i),Le=()=>C(Qt,"$language$",i),Z=()=>C(bo,"$disabledControls$",i),B=()=>C(_o,"$is3DVideo",i),Re=()=>C(zo,"$icon3DVideoVisible",i),ne=()=>C(Gt,"$chromecastDeviceName$",i),ke=()=>C(Kt,"$currentSubtitle$",i),Ne=()=>C(Ao,"$currentSubtitleCaptions$",i),fe=()=>C(Ki,"$realDuration$",i),D=()=>C(ei,"$isLive$",i),de=()=>C(Fo,"$debugPanelVisible",i),Ee=v(e,"videoContainer",15),Ye=v(e,"adsSlotId",3,void 0),dt=v(e,"adsParams",3,void 0),Ae=v(e,"adsPreviewParam",3,void 0),$e=v(e,"adsAutoplayParam",3,void 0),Pe=v(e,"duration",3,void 0),rt=v(e,"logoTargetUrl",3,""),vt=v(e,"showNextPrevButtons",3,!1),lt=v(e,"nextButtonActive",3,!1),Et=v(e,"prevButtonActive",3,!1),st=v(e,"endScreenVideoTitle",3,void 0),gt=v(e,"endScreenVideoThumb",3,void 0),qt=v(e,"isOneVideoPlaylist",3,!1),Yt=v(e,"shadowRootContainer",3,void 0),Be=v(e,"outerContainerRef",3,void 0),re=v(e,"showMiniTimer",3,!1),W=v(e,"fullScreenTarget",3,void 0),se=v(e,"playerStarted",3,!1),he=v(e,"showEndScreen",3,!0),{notifications$:Se,graphIsOpened$:De}=so(),ut=e.store.getLogger().createComponentLog("Root component"),Qt=e.store.interfaceLanguage$,Ze=e.store.state.playbackState$,pt=e.store.ads.playbackState,Je=e.store.state.positionWithScrubbing$,Pt=e.store.state.duration$,ri=e.store.playerPhase,Ge=e.store.ui.isFullscreen,ot=e.store.ui.controlsVisible,Jt=e.store.ui.interactiveHideMobileControls,Ai=e.store.ui.settingsMenu.visible$,ko=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ui=e.store.ui.scrubbingInProgress,Eo=e.store.ui.volumeChangingInProgress,Fo=e.store.ui.debugPanelVisible,Vt=e.store.state.isLoaderVisible,bt=e.store.state.isEnded$,z=e.store.state.chromecastConnected$,Gt=e.store.state.chromecastDeviceName$,zi=e.store.ads.postrollPassed,Vi=e.store.ui.mobileUnmuteButtonExpanded,vi=e.store.ui.mobileUnmuteButtonVisible,ei=e.store.state.isLive$,ao=e.store.state.isPlaying$,ho=e.store.state.isActiveLive$,qi=e.store.state.isRewindableLive$,Uo=e.store.state.crashed$,Ot=e.store.webApi.annotationsApi,di=e.store.webApi.pictureInPictureApi,St=e.store.state.videoSize$,Kt=e.store.state.currentSubtitle$,Ao=e.store.state.currentSubtitleCaptions$,Ki=e.store.state.duration$,li=e.store.ui.playerSize,_o=e.store.ui.is3DVideo,zo=e.store.ui.icon3DVideoVisible,si=e.store.ui.rotateAlpha,xt=e.store.state.isInteractive,gi=e.store.state.isInteractiveTime$,Wi=e.store.state.isInteractiveExpectation$,Ri=e.store.state.hasInteractiveBranches,bo=e.store.ui.controls.disabledControls$,xi=e.store.ui.touched,$o=e.store.ui.overlayContainer$,Cn=e.store.ui.autoplayNextEnabled$,sn=e.store.state.loadedMetadata$,wi=e.store.actions.internal.closeSettingsMenu,Tn=(Wo=e.store.callbacks)==null?void 0:Wo.onDisabledPlayPrevChapterClick,an=(Qo=e.store.callbacks)==null?void 0:Qo.onDisabledSeekToInteractiveClick,Po=e.store.actions.internal.setQuality,In=ee(void 0),ar=ee(void 0),lr=ee(void 0),On=ee(void 0),Hn,ln,dn,dr=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),it=ee(void 0),{closeNotification:ji,notificationsToShow$:cr}=Se,Fn=m(()=>!!l().slow_video),cn=()=>ji("slow_video"),un=ae(!1),Mo,yo=ee(!1),Qi=m(()=>p()!==Ps.PlaybackState.PLAYING),Zi=ee(!1),Un=m(()=>f()||_()||!r(yo)&&(u()&&!!Ri||r(Qi)&&$())),zn=ee(!0),Pr=m(()=>e.uiConfig.features.thumbTimer&&re()&&n()==="video"&&!w()&&!d()&&!xt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),qn=ee(!1),lo=m(()=>(he()||e.showAutoplayNext&&S())&&!!st()&&!!gt()&&(e.showAds&&I()||!e.showAds)&&u()&&!d()&&!r(qn)),xo=ee(!1),pn=m(()=>Ee()&&A()%180?P().height/P().width:1);di==null||di.setContext(Ol());let kn=et=>{clearTimeout(ln),et&&(vi.set(!0),Vi.set(!0),ln=setTimeout(()=>{Vi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),xt||Gi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:kn});let Lo=()=>{clearTimeout(Hn),O(yo,!1),_()&&Jt.set(!1)},Gi=et=>{Lo(),O(yo,!0),Hn=setTimeout(()=>O(yo,!1),et);let It=et-100;Mo=setTimeout(()=>{E()&&un.set(!1)},It>0?It:et)},qo=_o.subscribe(et=>{zo.set(et),et&&(clearTimeout(dn),dn=setTimeout(()=>zo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),wo=async(et=ys())=>{var It,ai,Pi,Ni,Ci,co;if(et&&!Ps.clientChecker.device.isIOS){let Ti=td(),vn=Qn(),vr=Ps.clientChecker.browser.isSamsungBrowser&&Ti===Yt();et=Ti===vn||vr}if(et){Gi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(di==null?void 0:di.remove())}catch(Ti){ut({message:String(Ti)})}try{let Ti=(It=T())!=null&&It.width&&((ai=T())!=null&&ai.height)?T():P();await Mh(Ti)}catch(Ti){ut({message:String(Ti)})}}Ge.set(et),e.store.getAdmanWrapper().setFullscreen(et),V()?(Ni=(Pi=e.store.callbacks)==null?void 0:Pi.onFullscreenEnter)==null||Ni.call(Pi):(co=(Ci=e.store.callbacks)==null?void 0:Ci.onFullscreenExit)==null||co.call(Ci)},ur=et=>{let It=et;li.set({width:It.target.width,height:It.target.height})};Ft(()=>{var et;return Wc(wo),e.uiConfig.features.annotationsInside&&(Ot==null||Ot.init(r(In))),ia(di)&&(di==null||di.assignPlayerContainer(r(In)),di==null||di.registryExternalEventHandlers({resize:ur})),O(zn,!Ps.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((et=Ee().parentElement)==null||et.insertBefore(e.interactiveContainer,Ee().nextSibling)),()=>{clearTimeout(Hn),clearTimeout(Mo),clearTimeout(ln),clearTimeout(dn),qo(),di==null||di.dispose().catch(It=>{ut({message:String(It)})}),Qc(wo)}});let fn=ee(!0),Kn=ee(!0),Wn=et=>{let It=U()+(et==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;It<0?(O(fn,!1),It=0):It>=Y()&&(O(Kn,!1),It=Y()),O(Zi,!0),e.seekTime(It)},Qn=()=>{let et=Ps.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Be()?r(In):Be(),It=et.getRootNode(),ai=It instanceof ShadowRoot?It.host:It,Pi=W()instanceof HTMLElement&&W().contains(ai);return e.uiConfig.allowChangingFullscreenTarget&&W()&&Pi?W():et},pr=async()=>{try{if(ys())await Kc(document),ut({message:"exit fullscreen"});else{if(ut({message:"request fullscreen"}),Ps.clientChecker.device.isIOS&&!F())return;await qc(Qn())}}catch(et){ut({message:String(et)})}},Gn=()=>{wi()},fr=et=>{if(et.preventDefault(),j()){Gn();return}if(!se()){e.firstStart(),Gi(e.uiConfig.controls.hideTimeoutCursor);return}O(Zi,!1),w()?Lo():Gi(e.uiConfig.controls.hideTimeoutMobile)},Yn=()=>{xi.set(!0)},jn=()=>{xt||(un.set(!0),Gi(e.uiConfig.controls.hideTimeoutCursor))},oi=et=>{Tn&&(Tn(et),Gi(e.uiConfig.controls.hideTimeoutMobile))},mr=et=>{an&&(an(et),Gi(e.uiConfig.controls.hideTimeoutMobile))};Ke(()=>{$o.set(r(it))}),Ke(()=>{ot.set((r(Qi)||j()||X()||oe()||pe()||!r(lo)&&(u()||r(yo)&&!r(Zi)))&&!r(Un)&&n()==="video"&&!d())}),Ke(()=>{!X()&&r(xo)&&!le()&&Gi(e.uiConfig.controls.hideTimeoutMobile),O(xo,me(X()))}),Ke(()=>{O(fn,U()>0),O(Kn,me(!Ve()&&U()<Y()))}),Ke(()=>{Xa(r(On),j(),Me())});let mn=H("aria_label_video_player"),Ko=H("video360");B1({fullScreenChangeHandler:wo,getFullscreenTarget:Qn}),H1({store:e.store,getFullscreenTarget:Qn});var nt=H3();At("blur",Us,Gn),Oe(nt,"aria-label",mn);var Mt=h(nt);let Si;Mt.__click=fr;var ti=h(Mt);let Xi;ct(ti,et=>Ee(et),()=>Ee()),g(Mt);var So=M(Mt,2);Qs(So,Le,et=>{var It=O3(),ai=ue(It);let Pi=m(()=>n()!=="thumb"||d()||xt&&e.autoplay);Nd(ai,{get hidden(){return r(Pi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ni=M(ai,2);{var Ci=He=>{var kt=V3(),hi=ue(kt);{var Ro=Pn=>{let Nr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);_u(Pn,{side:"left",get seekStep(){return r(Nr)},handleSingleFirstClick:fr,handleSecondClick:()=>Wn("backward")})};R(hi,Pn=>{r(fn)&&Pn(Ro)})}var Go=M(hi,2);{var Wr=Pn=>{let Nr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);_u(Pn,{side:"right",get seekStep(){return r(Nr)},handleSingleFirstClick:fr,handleSecondClick:()=>Wn("forward")})};R(Go,Pn=>{r(Kn)&&Pn(Wr)})}b(He,kt)};R(Ni,He=>{e.canRewindLive&&qi&&!Z().has("TIMELINE")&&He(Ci)})}var co=M(Ni,2);{var Ti=He=>{let kt=m(()=>{var hi;return(hi=e.live)==null?void 0:hi.startTime});Bd(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(kt)}})};R(co,He=>{n()==="LiveWaitingStart"&&He(Ti)})}var vn=M(co,2);{var vr=He=>{ga(He,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(vn,He=>{n()==="LiveWaitingRecover"&&He(vr)})}var En=M(vn,2);{var Mr=He=>{ga(He,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(En,He=>{n()==="LiveWaitingRecord"&&He(Mr)})}var uo=M(En,2);{var Lr=He=>{var kt=R3();let hi;var Ro=h(kt);id(Ro,{get adsSlotId(){return Ye()},get adsParams(){return dt()},get adsPreviewParam(){return Ae()},get adsAutoplayParam(){return $e()},get duration(){return Pe()}}),g(kt),k(Go=>hi=te(kt,1,"ads-container svelte-dtyj47",null,hi,Go),[()=>({hidden:n()!=="ads"})]),b(He,kt)};R(uo,He=>{e.showAds&&se()&&He(Lr)})}var Zn=M(uo,2);{var qr=He=>{let kt=m(()=>!he()&&e.showAutoplayNext&&S());jm(He,{get title(){return st()},get thumb(){return gt()},get isHide(){return r(kt)},clickCloseIcon:()=>O(qn,!0)})};R(Zn,He=>{r(lo)&&st()&>()&&He(qr)})}var gr=M(Zn,2);{var Vr=He=>{Md(He,{})};R(gr,He=>{B()&&He(Vr)})}var hr=M(gr,2);{var Vo=He=>{var kt=N3(),hi=h(kt);ed(hi,{"aria-label":Ko}),g(kt),b(He,kt)};R(hr,He=>{Re()&&He(Vo)})}var gn=M(hr,2);{var Kr=He=>{Vd(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()}})};R(gn,He=>{pe()&&He(Kr)})}var _r=M(gn,2);{var Xn=He=>{Ld(He,{get shifted(){return w()},get captions(){return Ne()},get position(){return U()},get playerSize(){return P()},isMobile:!0})};R(_r,He=>{ke().value!=="off"&&He(Xn)})}var Xe=M(_r,2);{var Ht=He=>{var kt=B3();kt.__click=[L3,j,Ai,Gn];var hi=h(kt);Rd(hi,{}),g(kt),b(He,kt)};R(Xe,He=>{d()&&He(Ht)})}var _i=M(Xe,2);{var hn=He=>{let kt=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),hi=m(()=>n()==="ads"),Ro=m(()=>e.canRewindLive&&fe()!==0);Pd(He,{get bottomHidden(){return r(kt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(hi)},get canRewindLive(){return r(Ro)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return rt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return vt()},get nextButtonActive(){return lt()},get prevButtonActive(){return Et()},get isOneVideoPlaylist(){return qt()},get customFullscreenSupported(){return r(zn)},get endScreenShown(){return r(lo)},toggleFullscreen:pr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:oi,onDisabledSeekToInteractiveClick:mr,get playerControlsWrapperRef(){return r(ar)},set playerControlsWrapperRef(Go){O(ar,me(Go))},get playerControlsRef(){return r(lr)},set playerControlsRef(Go){O(lr,me(Go))}})};R(_i,He=>{se()&&He(hn)})}var _n=M(_i,2);{var An=He=>{var kt=D3(),hi=h(kt);Fd(hi,{get supportLink(){return e.supportLink},returnFocus:F1.noop,get ref(){return r(On)},set ref(Ro){O(On,me(Ro))}}),g(kt),b(He,kt)};R(_n,He=>{j()&&He(An)})}var Jn=M(_n,2);let Ce=m(()=>!r(Pr));nd(Jn,{get isLive(){return D()},get isHidden(){return r(Ce)},get isPlaying(){return J()},get position(){return U()},get duration(){return Y()}});var ft=M(Jn,2);{var Rt=He=>{aa(He,{})};R(ft,He=>{r(dr)&&He(Rt)})}var Ut=M(ft,2);{var Yi=He=>{ad(He,{})};R(Ut,He=>{de()&&He(Yi)})}var ci=M(Ut,2);{var jt=He=>{Ud(He,{onClose:cn,onSelectAutoQuality:()=>{Po("auto"),cn()}})};R(ci,He=>{r(Fn)&&He(jt)})}var Rr=M(ci,2);ql(Rr,()=>"slot",!1,(He,kt)=>{xe(He,null,{name:zd})}),b(et,It)});var Co=M(So,2);ct(Co,et=>O(it,et),()=>r(it)),g(nt),ct(nt,et=>O(In,et),()=>r(In)),k((et,It)=>{Si=te(Mt,1,"video-wrapper svelte-dtyj47",null,Si,et),Xi=te(ti,1,"video-container svelte-dtyj47",null,Xi,It),tt(ti,`transform: rotate(${A()}deg) scale(${r(pn)})`),Oe(ti,"data-is-playing",J())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),At("click",nt,Yn,!0),At("focusin",nt,jn,!0),b(t,nt),K(),o()}at(["click"]);function $u(t){let e="";return Dn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Dn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Dn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Dn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Dn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Dn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Dn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Dn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Dn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Dn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Dn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Dn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Dn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Dn(t){return typeof t=="string"&&!t.includes(";")}var U3=L('<div class="root svelte-1cnbt6x"><!></div>'),z3={hash:"svelte-1cnbt6x",code:`.root.svelte-1cnbt6x {--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;
|
|
330
361
|
|
|
331
362
|
/* USER DEFINED COLORS */
|
|
332
363
|
|
|
@@ -360,5 +391,5 @@ Try switching the\xA0quality to\xA0Auto.`},Sh=b_;var ns=new Map;ns.set(qa.Interf
|
|
|
360
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);}
|
|
361
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);}
|
|
362
393
|
|
|
363
|
-
/* \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 Wm(t,e){q(e,!0),Q(t,D3);let[i,o]=Ue(),n=()=>C(Ft,"$isLive$",i),a=v(e,"sources",7),s=v(e,"store",7),d=v(e,"microStoresRoot",7),l=v(e,"videoConfig",7),p=v(e,"uiConfig",7),f=v(e,"title",7),_=v(e,"thumbUrl",7),u=v(e,"interactiveContainer",7),$=v(e,"interactiveController",7),w=v(e,"subtitles",7),y=v(e,"live",7),S=v(e,"preload",7),I=v(e,"autoplay",7),A=v(e,"volume",7,void 0),P=v(e,"muted",7,void 0),E=v(e,"fromTime",7),T=v(e,"canRewindLive",7),V=v(e,"showAds",7),z=v(e,"adsSlotId",7,void 0),Y=v(e,"adsParams",7,void 0),U=v(e,"adsPreviewParam",7,void 0),Z=v(e,"adsAutoplayParam",7,void 0),X=v(e,"duration",7,void 0),oe=v(e,"logoClickable",7),ce=v(e,"logoHidden",7),le=v(e,"isMobile",7),Ve=v(e,"showNextPrevButtons",7,!1),Me=v(e,"nextButtonActive",7,!1),J=v(e,"prevButtonActive",7,!1),Le=v(e,"endScreenVideoTitle",7,void 0),j=v(e,"endScreenVideoThumb",7,void 0),N=v(e,"isOneVideoPlaylist",7,!1),Re=v(e,"supportLink",7),ne=v(e,"shadowRootContainer",7,void 0),ke=v(e,"outerContainerRef",7,void 0),Be=v(e,"fullScreenTarget",7,void 0),ue=v(e,"failoverHosts",7,void 0),D=v(e,"showMiniTimer",7,!1),de=v(e,"saveRate",7),Ee=v(e,"seekToInteractive",7,ha.noop),Qe=v(e,"playPrevChapter",7,ha.noop),at=v(e,"volumeMultiplier",7),Ae=v(e,"showAutoplayNext",7),$e=v(e,"showEndScreen",7,!0),Pe=v(e,"keyboardControls",15,void 0),{subscribers:nt,stores:mt}=d();qg(p());let et=Kt(),Bt=p().logoLink,rt=s().ui.debugPanelVisible,vt=s().ui.playerSize,Ft=s().state.isLive$,Ne=s().state.isInteractive&&O1.clientChecker.device.isAndroid,re=ee(void 0),W=null,se=ee(!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}),th(s(),mt),je(()=>{s().ui.isMobile.set(le())});let ve=(F=!1)=>{O(se,!0),F?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Se=()=>{if(et.features.qualityDetailsSubMenuEnabled){let F=yh(s().videoId);if(F)switch(F.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,F.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,F.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(F.quality);break}}else{xh(s().videoId),Bp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Wt=Mp(s().videoId);Wt&&s().actions.internal.setQuality(Wt)}};function De(F){var di,po,fo;let Wt=a()||F;Wt&&s().initVideo({container:r(re),sources:Wt,failoverHosts:ue(),subtitles:w(),volumeMultiplier:at()});let Ki=ha.safeStorage.get(Kl)==="true";rt.set(Ki),E()>0&&s().actions.external.seekTime(E());let Bi=le()?et.volumeDefault:(po=(di=A())!=null?di:Mc())!=null?po:et.volumeDefault,si=(fo=P())!=null?fo:vh();if(s().actions.external.setVolume(Bi),s().actions.external.setMuted(si),s().getAdmanWrapper().setInitialVolume(si?0:Bi),Se(),et.features.saveRate&&de()){let ji=_h();ji&&!n()&&s().actions.internal.setPlaybackRate(ji)}if(Ae()){let ji=$h();ji&&s().actions.internal.setAutoplayNextEnabled(ji)}s().ui.isAutoplay.set(I()),I()?ve():S()&&et.features.preload&&s().actions.internal.preload()}let ut=F=>{if(window.ResizeObserver){let Wt,Ki;W=new ResizeObserver((0,ha.throttleFn)(Bi=>{let si=Bi[0];if(si.contentBoxSize){let di=Array.isArray(si.contentBoxSize)?si.contentBoxSize[0]:si.contentBoxSize;Wt=di.inlineSize,Ki=di.blockSize}else si.contentRect&&(Wt=si.contentRect.width,Ki=si.contentRect.height);vt.set({width:Wt,height:Ki})},300)),W.observe(F)}vt.set({width:F.clientWidth,height:F.clientHeight})},Ut=()=>{document.hidden&&s().actions.external.stop()};Dt(()=>{var Ki,Bi,si,di;Ne&&document.addEventListener("visibilitychange",Ut),et.debugLog&&s().actions.internal.startLogging(),ut(r(re));let F=nt.map(po=>po.init({store:s(),microStores:mt,config:l(),interactiveController:$(),uiConfig:p()})),Wt=()=>{Ne&&document.removeEventListener("visibilitychange",Ut),W==null||W.disconnect(),F.forEach(po=>po.unsubscribe()),s().destroy()};return((Ki=y())==null?void 0:Ki.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Wt):((Bi=y())==null?void 0:Bi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Wt):(((si=y())==null?void 0:si.status)==="finished"||((di=y())==null?void 0:di.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Wt):(De(),Wt)});function Ge(){r(se)?s().actions.external.play():ve(!0)}function lt(){s().actions.external.pause()}function Xe(F){s().actions.external.setMuted(F)}function It(F){le()||F>=0&&F<=1&&s().actions.external.setVolume(F)}function Zt(F){s().actions.internal.seekTime(F,H1.SeekAction.UNKNOWN)}function Ke(F){s().actions.external.seekEpisodeStartTime(F)}function dt(){s().actions.external.returnFocusToEpisodes()}function ei(F){s().actions.external.setPlaybackRate(F)}function Ri(F){s().actions.external.setAutoQualityLimits(F)}let Mo=vu(et.view);var qi=N3();ot(qi,Mo);var Lo=h(qi);{var Vo=F=>{Km(F,{get store(){return s()},uiConfig:et,get thumbUrl(){return _()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return z()},get adsParams(){return Y()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Z()},get duration(){return X()},get logoClickable(){return oe()},get logoHidden(){return ce()},logoTargetUrl:Bt,get nextButtonActive(){return Me()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return N()},get supportLink(){return Re()},get shadowRootContainer(){return ne()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Be()},get showMiniTimer(){return D()},get playerStarted(){return r(se)},get seekToInteractive(){return Ee()},get playPrevChapter(){return Qe()},firstStart:ve,seekTime:Zt,get showEndScreen(){return $e()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(re)},set videoContainer(Wt){O(re,ge(Wt))}})},Pt=F=>{zm(F,{get store(){return s()},uiConfig:et,get title(){return f()},get thumbUrl(){return _()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return z()},get adsParams(){return Y()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Z()},get duration(){return X()},get logoClickable(){return oe()},get logoHidden(){return ce()},logoTargetUrl:Bt,get nextButtonActive(){return Me()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return N()},get supportLink(){return Re()},get shadowRootContainer(){return ne()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Be()},get showMiniTimer(){return D()},get playerStarted(){return r(se)},get seekToInteractive(){return Ee()},get playPrevChapter(){return Qe()},firstStart:ve,get showEndScreen(){return $e()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(re)},set videoContainer(Wt){O(re,ge(Wt))},get keyboardControls(){return Pe()},set keyboardControls(Wt){Pe(Wt)}})};R(Lo,F=>{le()?F(Vo):F(Pt,!1)})}g(qi),b(t,qi);var _t=K({initVideo:De,play:Ge,pause:lt,setMuted:Xe,setVolume:It,seekTime:Zt,seekEpisodeStartTime:Ke,returnFocusToEpisodes:dt,setPlaybackRate:ei,setAutoQualityLimits:Ri,get sources(){return a()},set sources(F){a(F)},get store(){return s()},set store(F){s(F)},get microStoresRoot(){return d()},set microStoresRoot(F){d(F)},get videoConfig(){return l()},set videoConfig(F){l(F)},get uiConfig(){return p()},set uiConfig(F){p(F)},get title(){return f()},set title(F){f(F)},get thumbUrl(){return _()},set thumbUrl(F){_(F)},get interactiveContainer(){return u()},set interactiveContainer(F){u(F)},get interactiveController(){return $()},set interactiveController(F){$(F)},get subtitles(){return w()},set subtitles(F){w(F)},get live(){return y()},set live(F){y(F)},get preload(){return S()},set preload(F){S(F)},get autoplay(){return I()},set autoplay(F){I(F)},get volume(){return A()},set volume(F){A(F)},get muted(){return P()},set muted(F){P(F)},get fromTime(){return E()},set fromTime(F){E(F)},get canRewindLive(){return T()},set canRewindLive(F){T(F)},get showAds(){return V()},set showAds(F){V(F)},get adsSlotId(){return z()},set adsSlotId(F){z(F)},get adsParams(){return Y()},set adsParams(F){Y(F)},get adsPreviewParam(){return U()},set adsPreviewParam(F){U(F)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(F){Z(F)},get duration(){return X()},set duration(F){X(F)},get logoClickable(){return oe()},set logoClickable(F){oe(F)},get logoHidden(){return ce()},set logoHidden(F){ce(F)},get isMobile(){return le()},set isMobile(F){le(F)},get showNextPrevButtons(){return Ve()},set showNextPrevButtons(F){Ve(F)},get nextButtonActive(){return Me()},set nextButtonActive(F){Me(F)},get prevButtonActive(){return J()},set prevButtonActive(F){J(F)},get endScreenVideoTitle(){return Le()},set endScreenVideoTitle(F){Le(F)},get endScreenVideoThumb(){return j()},set endScreenVideoThumb(F){j(F)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(F){N(F)},get supportLink(){return Re()},set supportLink(F){Re(F)},get shadowRootContainer(){return ne()},set shadowRootContainer(F){ne(F)},get outerContainerRef(){return ke()},set outerContainerRef(F){ke(F)},get fullScreenTarget(){return Be()},set fullScreenTarget(F){Be(F)},get failoverHosts(){return ue()},set failoverHosts(F){ue(F)},get showMiniTimer(){return D()},set showMiniTimer(F){D(F)},get saveRate(){return de()},set saveRate(F){de(F)},get showAutoplayNext(){return Ae()},set showAutoplayNext(F){Ae(F)},get seekToInteractive(){return Ee()},set seekToInteractive(F){Ee(F)},get playPrevChapter(){return Qe()},set playPrevChapter(F){Qe(F)},get volumeMultiplier(){return at()},set volumeMultiplier(F){at(F)},get showEndScreen(){return $e()},set showEndScreen(F){$e(F)},get keyboardControls(){return Pe()},set keyboardControls(F){Pe(F)}});return o(),_t}var O3=be('<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 Qm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=O3();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),b(t,o)}function Gm(t,e){let i=v(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");Qm(t,{get style(){return r(o)}})}var H3=L('<div class="title svelte-1y9fytq"> </div>'),F3=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),U3={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 Ym(t,e){Q(t,U3);var i=F3(),o=h(i);{var n=d=>{var l=H3(),p=h(l,!0);g(l),k(()=>pe(p,e.title)),b(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=m(()=>!!e.thumbUrl);Gm(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),k(()=>ot(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var G1=require("@vkontakte/videoplayer-shared/es2018"),zi=require("@vkontakte/videoplayer-shared/es2018"),Yd=require("@vkontakte/videoplayer-core/es2018"),Y1=require("@vkontakte/videoplayer-statistics/es2018");var hu=require("@vkontakte/videoplayer-shared/es2018"),gu=class{constructor(){this.subscription=new hu.Subscription,this.logger=new hu.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=xe(e.state.currentPlaybackRate$),n=xe(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 dl=require("@vkontakte/videoplayer-shared/es2018");var z3=be('<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 jm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=z3();let n;var a=h(o);fe(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i})),b(t,o)}var q3=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),K3={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 Zm(t,e){q(e,!0),Q(t,K3);let[i,o]=Ue(),n=()=>C(p,"$interfaceLanguage$",i),a=()=>C(f,"$isMobile$",i),s=Te(),d=Kt(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,f=s.ui.isMobile,_=s.ui.t,u=m(()=>n()&&_("pip_dummy_title")),$=vu(d.view);var w=q3();te(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),ot(w,$);var y=h(w);let S;var I=h(y);jm(I,{}),g(y);var A=M(y,2),P=h(A,!0);g(A),g(w),k(E=>{S=te(y,1,"dummy-image svelte-1pbsod4",null,S,E),pe(P,r(u))},[()=>({desktop:!a()})]),b(t,w),K(),o()}var W3=Object.defineProperty,Q3=(t,e,i)=>e in t?W3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ll=(t,e,i)=>Q3(t,typeof e!="symbol"?e+"":e,i),G3=460,Y3=280,Fd=class{constructor({enabled:e=!0}={enabled:!0}){ll(this,"playerDomElement"),ll(this,"playerParentShadowRoot"),ll(this,"playerDummyElement"),ll(this,"svelteContext"),ll(this,"pipWindow"),ll(this,"info",{isActive$:new dl.ValueSubject(!1),isEnabled$:new dl.ValueSubject(!1),type:1}),this.info.isEnabled$=new dl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,dl.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:G3,height:Y3,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(`
|
|
364
|
-
`),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=ts(Zm,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||(Ks(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 F1(t){return t instanceof Fd}var _u=class{static getLatestSupportedVersion(e){let i=new Js,o=new Fd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function bu(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 U1="Inner error. Unexpectedly root annotation container null reference exception",z1="Annotation with such name already exists",q1="Annotation with such name does not exist";var cl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var ul=require("@vkontakte/videoplayer-shared/es2018"),j3="1",Z3=100,$u=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new ul.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,ul.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"},Z3);this.subscriptions.add((0,ul.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 cl(U1);if(this.annotations.has(e))throw new cl(z1);i.style.zIndex=(o=i.style.zIndex)!=null?o:j3,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 cl(q1);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 _a=require("@vkontakte/videoplayer-shared/es2018"),Fo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,_a.assertNonNullable)(e),(0,_a.assertNonNullable)(i),(0,_a.assertNonNullable)(n),n.interactiveData&&(0,_a.assertNonNullable)(o),this.subscription=new _a.Subscription,this.subscription}};var Ud=class extends Fo{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 zd=class extends Fo{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:f}=a.ui,_=xe(f),u=()=>_&&xe(p);return o.add(p.subscribe($=>{if(!_)return;let w=xe(s);xe(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=xe(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var qd=class extends Fo{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 K1=require("@vkontakte/videoplayer-shared/es2018"),Xm=ae(!1),yu=null,Kd=class extends Fo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Xm,set:(i,o=!1)=>{i!==xe(Xm)&&(this.clearTimeout(),Xm.set(i),!i&&yu&&(yu=!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(_=>{xe(s)&&_&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,K1.combine)({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:_,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,y;if(!(!_||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&yu===null&&(yu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var xu=require("@vkontakte/videoplayer-shared/es2018");var Wd=class extends Fo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:xu.noop};this.checkIfShouldHide=i=>ks(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(xe(s)))return;let l=xe(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:_}=n.ui.controls,u=xe(p),$=xe(f);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),_.remove(Tp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),_.add(Tp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,xu.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(_){d({message:"Cant hide graph"})}})),o}};var Jm=require("@vkontakte/videoplayer-shared/es2018"),Qd=class extends Fo{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 Jm.ValueSubject(!1),isEnabled$:new Jm.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 Su=require("@vkontakte/videoplayer-shared/es2018");var wu=require("@vkontakte/videoplayer-shared/es2018"),W1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?X3({maxCount:t}):void 0,e!==0?J3({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},X3=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,wu.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}}},J3=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(wu.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>wu.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 Gd=class extends Fo{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=W1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,Su.filterChanged)(),(0,Su.filter)(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var Q1=()=>[Ud,zd,qd,Kd,Wd,Qd,Gd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var pl=require("@vkontakte/videoplayer-shared/es2018");var ex=Object.defineProperty,tx=(t,e,i)=>e in t?ex(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Jt=(t,e,i)=>tx(t,typeof e!="symbol"?e+"":e,i),ix={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:zi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Yd.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},yn=ee(void 0),Cu=class extends HTMLElement{constructor(){super(),Jt(this,"svelteStubComponent"),Jt(this,"svelteRootComponent"),Jt(this,"store"),Jt(this,"microStoresRoot"),Jt(this,"statistics"),Jt(this,"sentry"),Jt(this,"_shadowRoot"),Jt(this,"playerContainer"),Jt(this,"rootContainer"),Jt(this,"shadowRootContainer"),Jt(this,"uiConfig"),Jt(this,"coreConfig"),Jt(this,"statisticsConfig"),Jt(this,"interactiveController"),Jt(this,"interactiveContainer"),Jt(this,"graphMadePause"),Jt(this,"currentPlayingVideoIndex",0),Jt(this,"needToRepeatPlaylist",!1),Jt(this,"videoConfig"),Jt(this,"pictureInPictureApi"),Jt(this,"mediaSessionApi"),Jt(this,"unsubscribePlayerPhaseSubscription"),Jt(this,"logger"),Jt(this,"log"),Jt(this,"subscription"),Jt(this,"interactiveSubscription"),Jt(this,"annotationsApi"),Jt(this,"slotsApi"),Jt(this,"prevIsid"),Jt(this,"isInited",!1),Jt(this,"internalsExposure",null),Jt(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:f,statVKAppId:_,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:I,interactiveData:A}=bu(this.videoConfig,i),P=(o=A==null?void 0:A.projectInfo)==null?void 0:o.pid,E=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:T,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&T)return new Y1.OneStat({movieId:T,albumId:d,place:l,trackCode:f,vkAppId:_,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:V,refDomain:S,deviceId:I,...P&&(!this.isInited||E)&&{projectId:Number(P)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),pl.devNull.create("ui"),this.logger=new zi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new zi.Subscription,this.interactiveSubscription=new zi.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited)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=ge({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=ts(Ym,s)}disconnectedCallback(){var e,i,o,n,a;(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(),pl.devNull.destroy("ui")}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},o){var n,a,s,d,l,p,f,_;if(!this.videoConfig)return;let{albumId:u,statPlace:$,statAuthToken:w,preload:y,autoplay:S,volume:I,muted:A,fromTime:P,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:z,adsParams:Y={},adsPreviewParam:U,adsAutoplayParam:Z,interfaceLanguage:X,isCyrillicRelatedInterface:oe,logoClickable:ce,logoHidden:le,isMobile:Ve,isTouch:Me,isAudioDisabled:J,isLiveCatchUpMode:Le,fullScreenTarget:j,failoverHosts:N,canDownload:Re,callbacks:ne,interactiveData:ke,showThumbTimer:Be,additionalButtons:ue=[],additionalSettingsMenuItems:D=[],additionalContextMenuItems:de=[],repeat:Ee,saveRate:Qe,volumeMultiplier:at,showEndScreen:Ae,showAutoplayNext:$e}=bu(this.videoConfig,i),{sources:Pe,title:nt,thumbUrl:mt,unitedVideoId:et,isClip:Bt=!1,duration:rt,adsParams:vt={},videoEpisodes:Ft,previewThumbsData:qt,subtitles:Ne,live:re}=e,W={...Y,...vt},se=this.getNextVideoInfo(),ve={sources:Pe,title:nt,thumbUrl:mt,subtitles:Ne,unitedVideoId:et,isClip:Bt,live:re,albumId:u,statPlace:$,autoplay:S,muted:A,volume:I,fromTime:P,canRewindLive:E,showAds:V,adsSlotId:z,adsParams:W,adsPreviewParam:U,adsAutoplayParam:Z,duration:rt,logoClickable:ce,logoHidden:le,isTouch:Me!=null?Me:Ve,repeat:Ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Se={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(ve)}`});let De=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),ut=(De==null?void 0:De.oneStat)||this.createOneStat(e,i);ut&&(this.statistics=new iu(ut,De==null?void 0:De.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Xs(this.uiConfig.sentry,{version:Ys,env:Ec},{movieId:et,albumId:u,place:$,autoplay:(a=S&&!this.interactiveController)!=null?a:!1,mobile:Me!=null?Me:Ve,clip:Bt}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Xs.getInstance()};let Ge=!!ke,lt=[],Xe="tooltip_interactive_go_back_disabled_first";if(Ge&&this.interactiveController){let dt=this.interactiveController.state.isInitialChapter$.getValue(),ei=this.interactiveController.getHistoryState();dt&<.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||lt.push("SEEK_TO_INTERACTIVE_BUTTON"),ei.hasPrevChapter$.getValue()||(lt.push("PLAY_PREV_CHAPTER_BUTTON"),dt||(ei.isGoBackLimited$.getValue()?Xe="tooltip_interactive_go_back_disabled_limit":Xe="tooltip_interactive_go_back_disabled"))}let It=()=>{var dt;this.isInited=!1,this.prevIsid=void 0;let ei=(o==null?void 0:o.info.isEnded$.getValue())&&((dt=this.interactiveController)==null?void 0:dt.state.isEndChapter$.getValue());ne.onReplayInteractiveVideo&&!ei?ne.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=d1({player:o,interfaceLanguage:X,isCyrillicRelatedInterface:oe,videoId:et,isClip:Bt,isLiveCatchUpMode:Le,isAudioDisabled:J,statAuthToken:w,callbacks:ne,webApi:Se,videoEpisodes:Ft,previewThumbsData:qt,canDownload:Re,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:lt,isInteractive:Ge,saveRate:Qe,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:It,playPrevChapterDisabledTooltip:Xe,hasInteractiveBranches:!!((_=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?ue:[],additionalSettingsMenuItems:D!=null?D:[],additionalContextMenuItems:de!=null?de:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ee&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:Zt}=this.microStoresRoot=Q1(),Ke=()=>{var dt,ei,Ri,Mo,qi,Lo;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Pt=>{var _t;return(_t=ne==null?void 0:ne.onCurrentFormatChanged)==null?void 0:_t.call(ne,Pt)})),this.subscription.add(Zt.interactiveControlsOpacity$.subscribe(Pt=>{var _t;Pt!==null&&((_t=this==null?void 0:this.interactiveController)==null||_t.setDisabledControls(Pt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Pt=>{var _t;return(_t=ne==null?void 0:ne.onThroughputEstimationChanged)==null?void 0:_t.call(ne,Pt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Pt=>{var _t;return(_t=ne==null?void 0:ne.onTrafficSavingEnabledChanged)==null?void 0:_t.call(ne,Pt)})),this.subscription.add(new zi.Observable(Pt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(_t=>Pt.next(_t)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,zi.skip)(1):Pt=>Pt).subscribe(Pt=>{var _t;return(_t=ne==null?void 0:ne.onCurrentPlaybackRateChanged)==null?void 0:_t.call(ne,Pt)})),this.subscription.add(this.store.state.volume$.subscribe(Pt=>{var _t;return(_t=ne==null?void 0:ne.onVolumeChange)==null?void 0:_t.call(ne,Pt)})),this.subscription.add(this.store.state.muted$.subscribe(Pt=>{var _t,F;return Pt?(_t=ne==null?void 0:ne.onMute)==null?void 0:_t.call(ne):(F=ne==null?void 0:ne.onUnmute)==null?void 0:F.call(ne)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Pt=>{var _t;return(_t=ne==null?void 0:ne.onVideoBitrateChanged)==null?void 0:_t.call(ne,Pt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Pt=>{var _t;let F=(_t=this.store)==null?void 0:_t.ui.controls.disabledControls$;F&&(Pt&&!F.includes(Wl)&&F.add(Wl),Pt||F.remove(Wl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Pt=>{var _t;if(!Yd.clientChecker.browser.isSamsungBrowser||!Pt||!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(Pt=>{var _t;return(_t=ne==null?void 0:ne.onVSIDChanged)==null?void 0:_t.call(ne,Pt)})),this.initMediaSession(),O(yn,ge({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Pe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:nt,thumbUrl:mt,subtitles:Ne,live:re,preload:y,autoplay:S,muted:A,volume:I,fromTime:P,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:z,adsParams:W,adsPreviewParam:U,adsAutoplayParam:Z,duration:rt,logoClickable:ce,logoHidden:le,isMobile:Me!=null?Me:Ve,failoverHosts:N,fullScreenTarget:j,saveRate:Qe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Be,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:at,showEndScreen:Ae,showAutoplayNext:$e}));let Vo={target:this.playerContainer,props:r(yn)};this.svelteRootComponent=ts(Wm,Vo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ri=(ei=(dt=this.videoConfig)==null?void 0:dt.callbacks)==null?void 0:ei.onInited)==null||Ri.call(ei)),(Mo=this.internalsExposure)==null||Mo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Lo=(qi=this.videoConfig)==null?void 0:qi.callbacks)!=null&&Lo.onDevNullLog)?pl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):pl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Yd.clientChecker.isInited$.subscribe(dt=>{dt&&(console.log("UI SDK async start"),Ke())}):Ke()}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){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,zi.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.unmountComponent(this.svelteRootComponent),this.createPlayer(o,{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?xe(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:f,videoLoader:_}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:p,historyApi:f,vkVideoLoader:_,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation}});let{isInteractiveExpectation$:u,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(y=>{if(!this.isInited)return;let S=this.store;y?S.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):S.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 S=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,S),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:S})=>{var I,A,P,E,T,V;if(!this.store||!this.microStoresRoot)return;let z=u.getValue();if(y==="action-choice"&&S==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Ql)),y==="action-choice-canceled"){let Y=xe(this.store.state.isPlaying$)||z;if(((P=(I=this.videoConfig)==null?void 0:I.isTouch)!=null?P:(A=this.videoConfig)!=null&&A.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(E=this.videoConfig)==null?void 0:(T=E.callbacks).onDisabledInteractiveClick)==null||V.call(T)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:S})=>{this.store&&y==="container-fake-removed"&&S&&this.store.ui.controls.disabledControls$.remove(Ql)})),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(S=>{var I,A,P;S.length&&((P=(A=(I=this.videoConfig)==null?void 0:I.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||P.call(A,S))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,S,I,A;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(S=this.videoConfig)==null?void 0:(I=S.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(I)})),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,f,_,u,$,w,y,S,I,A,P,E,T,V,z,Y,U,Z,X,oe;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=bu(ix,(0,zi.cloneDeepWith)(e,ce=>ce instanceof HTMLElement?ce:void 0)),this.uiConfig=zg((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.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new zi.InternalsExposure("UI"))),pl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[(0,G1.now)()]}),(0,zi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,zi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(_=this.uiConfig.features.pip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(S=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?S:this.videoConfig.isMobile,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(A=this.uiConfig.ads.enable)!=null?A:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(E=this.uiConfig.ads.preview)!=null?E:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((T=this.uiConfig.showLogo)!=null?T:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Y=this.uiConfig.features.endScreen)!=null?Y:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(U=this.uiConfig.features.autoplayNext)!=null?U:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Z=this.uiConfig.features.nextPrevButtons)!=null?Z:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((X=this.videoConfig.videos)!=null&&X[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ce={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=_u.getLatestSupportedVersion(ce):this.pictureInPictureApi=new Js(ce)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new gu:void 0,this.slotsApi=this.uiConfig.features.slots?new pu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new $u(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(oe=this.slotsApi)==null||oe.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]),F1(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(yn)&&(r(yn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(yn).nextButtonActive=this.isNextButtonActive(),r(yn).prevButtonActive=this.isPrevButtonActive(),r(yn).endScreenVideoTitle=o.nextVideoTitle,r(yn).endScreenVideoThumb=o.nextVideoThumb,r(yn).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})}}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)}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(yn)&&(r(yn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(yn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(yn).nextButtonActive=this.isNextButtonActive(),r(yn).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})}setLiveWaitingRecover(){var e;this.log({message:"live waiting"}),(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)}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=xe(this.store.state.positionExact$),s=xe(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe((0,zi.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)}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}unmountComponent(e){e&&Ks(e)}};var fl=require("@vkontakte/videoplayer-shared/es2018"),Tu=require("@vkontakte/videoplayer-core/es2018"),ox=()=>{window.customElements.define("vk-video-player",Cu)};
|
|
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 Xm(t,e){q(e,!0),Q(t,z3);let[i,o]=Fe(),n=()=>C(qt,"$isLive$",i),a=v(e,"sources",7),s=v(e,"store",7),d=v(e,"microStoresRoot",7),l=v(e,"videoConfig",7),p=v(e,"uiConfig",7),f=v(e,"title",7),_=v(e,"thumbUrl",7),u=v(e,"interactiveContainer",7),$=v(e,"interactiveController",7),w=v(e,"subtitles",7),y=v(e,"live",7),S=v(e,"preload",7),I=v(e,"autoplay",7),A=v(e,"volume",7,void 0),P=v(e,"muted",7,void 0),E=v(e,"fromTime",7),T=v(e,"canRewindLive",7),V=v(e,"showAds",7),U=v(e,"adsSlotId",7,void 0),Y=v(e,"adsParams",7,void 0),F=v(e,"adsPreviewParam",7,void 0),j=v(e,"adsAutoplayParam",7,void 0),X=v(e,"duration",7,void 0),oe=v(e,"logoClickable",7),pe=v(e,"logoHidden",7),le=v(e,"isMobile",7),Ve=v(e,"showNextPrevButtons",7,!1),Me=v(e,"nextButtonActive",7,!1),J=v(e,"prevButtonActive",7,!1),Le=v(e,"endScreenVideoTitle",7,void 0),Z=v(e,"endScreenVideoThumb",7,void 0),B=v(e,"isOneVideoPlaylist",7,!1),Re=v(e,"supportLink",7),ne=v(e,"shadowRootContainer",7,void 0),ke=v(e,"outerContainerRef",7,void 0),Ne=v(e,"fullScreenTarget",7,void 0),fe=v(e,"failoverHosts",7,void 0),D=v(e,"showMiniTimer",7,!1),de=v(e,"saveRate",7),Ee=v(e,"seekToInteractive",7,_a.noop),Ye=v(e,"playPrevChapter",7,_a.noop),dt=v(e,"volumeMultiplier",7),Ae=v(e,"showAutoplayNext",7),$e=v(e,"showEndScreen",7,!0),Pe=v(e,"keyboardControls",15,void 0),{subscribers:rt,stores:vt}=d();Qg(p());let lt=Wt(),Et=p().logoLink,st=s().ui.debugPanelVisible,gt=s().ui.playerSize,qt=s().state.isLive$,Be=s().state.isInteractive&&U1.clientChecker.device.isAndroid,re=ee(void 0),W=null,se=ee(!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}),nh(s(),vt),Ke(()=>{s().ui.isMobile.set(le())});let he=(z=!1)=>{O(se,!0),z?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Se=()=>{if(lt.features.qualityDetailsSubMenuEnabled){let z=Sh(s().videoId);if(z)switch(z.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,z.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,z.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(z.quality);break}}else{Ch(s().videoId),Up()&&s().actions.internal.setTrafficSavingEnabled(!0);let Gt=Dp(s().videoId);Gt&&s().actions.internal.setQuality(Gt)}};function De(z){var ei,ao,ho;let Gt=a()||z;Gt&&s().initVideo({container:r(re),sources:Gt,failoverHosts:fe(),subtitles:w(),volumeMultiplier:dt()});let zi=_a.safeStorage.get(Gl)==="true";st.set(zi),E()>0&&s().actions.external.seekTime(E());let Vi=le()?lt.volumeDefault:(ao=(ei=A())!=null?ei:Bc())!=null?ao:lt.volumeDefault,vi=(ho=P())!=null?ho:_h();if(s().actions.external.setVolume(Vi),s().actions.external.setMuted(vi),s().getAdmanWrapper().setInitialVolume(vi?0:Vi),Se(),lt.features.saveRate&&de()){let qi=yh();qi&&!n()&&s().actions.internal.setPlaybackRate(qi)}if(Ae()){let qi=wh();qi&&s().actions.internal.setAutoplayNextEnabled(qi)}s().ui.isAutoplay.set(I()),I()?he():S()&<.features.preload&&s().actions.internal.preload()}let ut=z=>{if(window.ResizeObserver){let Gt,zi;W=new ResizeObserver((0,_a.throttleFn)(Vi=>{let vi=Vi[0];if(vi.contentBoxSize){let ei=Array.isArray(vi.contentBoxSize)?vi.contentBoxSize[0]:vi.contentBoxSize;Gt=ei.inlineSize,zi=ei.blockSize}else vi.contentRect&&(Gt=vi.contentRect.width,zi=vi.contentRect.height);gt.set({width:Gt,height:zi})},300)),W.observe(z)}gt.set({width:z.clientWidth,height:z.clientHeight})},Qt=()=>{document.hidden&&s().actions.external.stop()};Ft(()=>{var zi,Vi,vi,ei;Be&&document.addEventListener("visibilitychange",Qt),lt.debugLog&&s().actions.internal.startLogging(),ut(r(re));let z=rt.map(ao=>ao.init({store:s(),microStores:vt,config:l(),interactiveController:$(),uiConfig:p()})),Gt=()=>{Be&&document.removeEventListener("visibilitychange",Qt),W==null||W.disconnect(),z.forEach(ao=>ao.unsubscribe()),s().destroy()};return((zi=y())==null?void 0:zi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Gt):((Vi=y())==null?void 0:Vi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Gt):(((vi=y())==null?void 0:vi.status)==="finished"||((ei=y())==null?void 0:ei.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Gt):(De(),Gt)});function Ze(){r(se)?s().actions.external.play():he(!0)}function pt(){s().actions.external.pause()}function Je(z){s().actions.external.setMuted(z)}function Pt(z){le()||z>=0&&z<=1&&s().actions.external.setVolume(z)}function ri(z){s().actions.internal.seekTime(z,z1.SeekAction.UNKNOWN)}function Ge(z){s().actions.external.seekEpisodeStartTime(z)}function ot(){s().actions.external.returnFocusToEpisodes()}function Jt(z){s().actions.external.setPlaybackRate(z)}function Ai(z){s().actions.external.setAutoQualityLimits(z)}let ko=$u(lt.view);var Ui=U3();tt(Ui,ko);var Eo=h(Ui);{var Fo=z=>{Zm(z,{get store(){return s()},uiConfig:lt,get thumbUrl(){return _()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return U()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return j()},get duration(){return X()},get logoClickable(){return oe()},get logoHidden(){return pe()},logoTargetUrl:Et,get nextButtonActive(){return Me()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return Z()},get isOneVideoPlaylist(){return B()},get supportLink(){return Re()},get shadowRootContainer(){return ne()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return D()},get playerStarted(){return r(se)},get seekToInteractive(){return Ee()},get playPrevChapter(){return Ye()},firstStart:he,seekTime:ri,get showEndScreen(){return $e()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(re)},set videoContainer(Gt){O(re,me(Gt))}})},Vt=z=>{Ym(z,{get store(){return s()},uiConfig:lt,get title(){return f()},get thumbUrl(){return _()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return U()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return j()},get duration(){return X()},get logoClickable(){return oe()},get logoHidden(){return pe()},logoTargetUrl:Et,get nextButtonActive(){return Me()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return Z()},get isOneVideoPlaylist(){return B()},get supportLink(){return Re()},get shadowRootContainer(){return ne()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return D()},get playerStarted(){return r(se)},get seekToInteractive(){return Ee()},get playPrevChapter(){return Ye()},firstStart:he,get showEndScreen(){return $e()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(re)},set videoContainer(Gt){O(re,me(Gt))},get keyboardControls(){return Pe()},set keyboardControls(Gt){Pe(Gt)}})};R(Eo,z=>{le()?z(Fo):z(Vt,!1)})}g(Ui),b(t,Ui);var bt=K({initVideo:De,play:Ze,pause:pt,setMuted:Je,setVolume:Pt,seekTime:ri,seekEpisodeStartTime:Ge,returnFocusToEpisodes:ot,setPlaybackRate:Jt,setAutoQualityLimits:Ai,get sources(){return a()},set sources(z){a(z)},get store(){return s()},set store(z){s(z)},get microStoresRoot(){return d()},set microStoresRoot(z){d(z)},get videoConfig(){return l()},set videoConfig(z){l(z)},get uiConfig(){return p()},set uiConfig(z){p(z)},get title(){return f()},set title(z){f(z)},get thumbUrl(){return _()},set thumbUrl(z){_(z)},get interactiveContainer(){return u()},set interactiveContainer(z){u(z)},get interactiveController(){return $()},set interactiveController(z){$(z)},get subtitles(){return w()},set subtitles(z){w(z)},get live(){return y()},set live(z){y(z)},get preload(){return S()},set preload(z){S(z)},get autoplay(){return I()},set autoplay(z){I(z)},get volume(){return A()},set volume(z){A(z)},get muted(){return P()},set muted(z){P(z)},get fromTime(){return E()},set fromTime(z){E(z)},get canRewindLive(){return T()},set canRewindLive(z){T(z)},get showAds(){return V()},set showAds(z){V(z)},get adsSlotId(){return U()},set adsSlotId(z){U(z)},get adsParams(){return Y()},set adsParams(z){Y(z)},get adsPreviewParam(){return F()},set adsPreviewParam(z){F(z)},get adsAutoplayParam(){return j()},set adsAutoplayParam(z){j(z)},get duration(){return X()},set duration(z){X(z)},get logoClickable(){return oe()},set logoClickable(z){oe(z)},get logoHidden(){return pe()},set logoHidden(z){pe(z)},get isMobile(){return le()},set isMobile(z){le(z)},get showNextPrevButtons(){return Ve()},set showNextPrevButtons(z){Ve(z)},get nextButtonActive(){return Me()},set nextButtonActive(z){Me(z)},get prevButtonActive(){return J()},set prevButtonActive(z){J(z)},get endScreenVideoTitle(){return Le()},set endScreenVideoTitle(z){Le(z)},get endScreenVideoThumb(){return Z()},set endScreenVideoThumb(z){Z(z)},get isOneVideoPlaylist(){return B()},set isOneVideoPlaylist(z){B(z)},get supportLink(){return Re()},set supportLink(z){Re(z)},get shadowRootContainer(){return ne()},set shadowRootContainer(z){ne(z)},get outerContainerRef(){return ke()},set outerContainerRef(z){ke(z)},get fullScreenTarget(){return Ne()},set fullScreenTarget(z){Ne(z)},get failoverHosts(){return fe()},set failoverHosts(z){fe(z)},get showMiniTimer(){return D()},set showMiniTimer(z){D(z)},get saveRate(){return de()},set saveRate(z){de(z)},get showAutoplayNext(){return Ae()},set showAutoplayNext(z){Ae(z)},get seekToInteractive(){return Ee()},set seekToInteractive(z){Ee(z)},get playPrevChapter(){return Ye()},set playPrevChapter(z){Ye(z)},get volumeMultiplier(){return dt()},set volumeMultiplier(z){dt(z)},get showEndScreen(){return $e()},set showEndScreen(z){$e(z)},get keyboardControls(){return Pe()},set keyboardControls(z){Pe(z)}});return o(),bt}var q3=be('<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 Jm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=q3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),b(t,o)}function ev(t,e){let i=v(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");Jm(t,{get style(){return r(o)}})}var K3=L('<div class="title svelte-1y9fytq"> </div>'),W3=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Q3={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function tv(t,e){Q(t,Q3);var i=W3(),o=h(i);{var n=d=>{var l=K3(),p=h(l,!0);g(l),k(()=>ve(p,e.title)),b(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=m(()=>!!e.thumbUrl);ev(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),k(()=>tt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var Z1=require("@vkontakte/videoplayer-shared/es2018"),Fi=require("@vkontakte/videoplayer-shared/es2018"),Xd=require("@vkontakte/videoplayer-core/es2018"),X1=require("@vkontakte/videoplayer-statistics/es2018");var xu=require("@vkontakte/videoplayer-shared/es2018"),yu=class{constructor(){this.subscription=new xu.Subscription,this.logger=new xu.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=ye(e.state.currentPlaybackRate$),n=ye(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 ul=require("@vkontakte/videoplayer-shared/es2018");var G3=be('<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 iv(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=G3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i})),b(t,o)}var Y3=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),j3={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 ov(t,e){q(e,!0),Q(t,j3);let[i,o]=Fe(),n=()=>C(p,"$interfaceLanguage$",i),a=()=>C(f,"$isMobile$",i),s=we(),d=Wt(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,f=s.ui.isMobile,_=s.ui.t,u=m(()=>n()&&_("pip_dummy_title")),$=$u(d.view);var w=Y3();te(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),tt(w,$);var y=h(w);let S;var I=h(y);iv(I,{}),g(y);var A=M(y,2),P=h(A,!0);g(A),g(w),k(E=>{S=te(y,1,"dummy-image svelte-1pbsod4",null,S,E),ve(P,r(u))},[()=>({desktop:!a()})]),b(t,w),K(),o()}var Z3=Object.defineProperty,X3=(t,e,i)=>e in t?Z3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,cl=(t,e,i)=>X3(t,typeof e!="symbol"?e+"":e,i),J3=460,ex=280,qd=class{constructor({enabled:e=!0}={enabled:!0}){cl(this,"playerDomElement"),cl(this,"playerParentShadowRoot"),cl(this,"playerDummyElement"),cl(this,"svelteContext"),cl(this,"pipWindow"),cl(this,"info",{isActive$:new ul.ValueSubject(!1),isEnabled$:new ul.ValueSubject(!1),type:1}),this.info.isEnabled$=new ul.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,ul.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:J3,height:ex,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=ts(ov,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 q1(t){return t instanceof qd}var wu=class{static getLatestSupportedVersion(e){let i=new ta,o=new qd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Su(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 K1="Inner error. Unexpectedly root annotation container null reference exception",W1="Annotation with such name already exists",Q1="Annotation with such name does not exist";var pl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var fl=require("@vkontakte/videoplayer-shared/es2018"),tx="1",ix=100,Cu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new fl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,fl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},ix);this.subscriptions.add((0,fl.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 pl(K1);if(this.annotations.has(e))throw new pl(W1);i.style.zIndex=(o=i.style.zIndex)!=null?o:tx,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 pl(Q1);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 ba=require("@vkontakte/videoplayer-shared/es2018"),Ho=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,ba.assertNonNullable)(e),(0,ba.assertNonNullable)(i),(0,ba.assertNonNullable)(n),n.interactiveData&&(0,ba.assertNonNullable)(o),this.subscription=new ba.Subscription,this.subscription}};var Kd=class extends Ho{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 Wd=class extends Ho{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:f}=a.ui,_=ye(f),u=()=>_&&ye(p);return o.add(p.subscribe($=>{if(!_)return;let w=ye(s);ye(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=ye(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Qd=class extends Ho{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 G1=require("@vkontakte/videoplayer-shared/es2018"),nv=ae(!1),Tu=null,Gd=class extends Ho{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...nv,set:(i,o=!1)=>{i!==ye(nv)&&(this.clearTimeout(),nv.set(i),!i&&Tu&&(Tu=!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(_=>{ye(s)&&_&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,G1.combine)({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:_,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,y;if(!(!_||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Tu===null&&(Tu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Iu=require("@vkontakte/videoplayer-shared/es2018");var Yd=class extends Ho{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:Iu.noop};this.checkIfShouldHide=i=>ks(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(ye(s)))return;let l=ye(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:_}=n.ui.controls,u=ye(p),$=ye(f);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),_.remove(Mp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),_.add(Mp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Iu.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(_){d({message:"Cant hide graph"})}})),o}};var rv=require("@vkontakte/videoplayer-shared/es2018"),jd=class extends Ho{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 rv.ValueSubject(!1),isEnabled$:new rv.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 Eu=require("@vkontakte/videoplayer-shared/es2018");var ku=require("@vkontakte/videoplayer-shared/es2018"),Y1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?ox({maxCount:t}):void 0,e!==0?nx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},ox=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,ku.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}}},nx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(ku.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>ku.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 Zd=class extends Ho{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=Y1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,Eu.filterChanged)(),(0,Eu.filter)(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var j1=()=>[Kd,Wd,Qd,Gd,Yd,jd,Zd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var ml=require("@vkontakte/videoplayer-shared/es2018");var rx=Object.defineProperty,sx=(t,e,i)=>e in t?rx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Xt=(t,e,i)=>sx(t,typeof e!="symbol"?e+"":e,i),ax={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Fi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Xd.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Sn=ee(void 0),Au=class extends HTMLElement{constructor(){super(),Xt(this,"svelteStubComponent"),Xt(this,"svelteRootComponent"),Xt(this,"store"),Xt(this,"microStoresRoot"),Xt(this,"statistics"),Xt(this,"sentry"),Xt(this,"_shadowRoot"),Xt(this,"playerContainer"),Xt(this,"rootContainer"),Xt(this,"shadowRootContainer"),Xt(this,"uiConfig"),Xt(this,"coreConfig"),Xt(this,"statisticsConfig"),Xt(this,"interactiveController"),Xt(this,"interactiveContainer"),Xt(this,"graphMadePause"),Xt(this,"currentPlayingVideoIndex",0),Xt(this,"needToRepeatPlaylist",!1),Xt(this,"videoConfig"),Xt(this,"pictureInPictureApi"),Xt(this,"mediaSessionApi"),Xt(this,"unsubscribePlayerPhaseSubscription"),Xt(this,"logger"),Xt(this,"log"),Xt(this,"subscription"),Xt(this,"interactiveSubscription"),Xt(this,"annotationsApi"),Xt(this,"slotsApi"),Xt(this,"prevIsid"),Xt(this,"isInited",!1),Xt(this,"internalsExposure",null),Xt(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:f,statVKAppId:_,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:I,interactiveData:A}=Su(this.videoConfig,i),P=(o=A==null?void 0:A.projectInfo)==null?void 0:o.pid,E=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:T,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&T)return new X1.OneStat({movieId:T,albumId:d,place:l,trackCode:f,vkAppId:_,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:V,refDomain:S,deviceId:I,...P&&(!this.isInited||E)&&{projectId:Number(P)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),ml.devNull.create("ui"),this.logger=new Fi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Fi.Subscription,this.interactiveSubscription=new Fi.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited)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=me({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=ts(tv,s)}disconnectedCallback(){var e,i,o,n,a;(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(),ml.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,f,_;if(!this.videoConfig)return;let{albumId:u,statPlace:$,statAuthToken:w,preload:y,autoplay:S,volume:I,muted:A,fromTime:P,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:U,adsParams:Y={},adsPreviewParam:F,adsAutoplayParam:j,interfaceLanguage:X,isCyrillicRelatedInterface:oe,logoClickable:pe,logoHidden:le,isMobile:Ve,isTouch:Me,isAudioDisabled:J,isLiveCatchUpMode:Le,fullScreenTarget:Z,failoverHosts:B,canDownload:Re,callbacks:ne,interactiveData:ke,showThumbTimer:Ne,additionalButtons:fe=[],additionalSettingsMenuItems:D=[],additionalContextMenuItems:de=[],repeat:Ee,saveRate:Ye,volumeMultiplier:dt,showEndScreen:Ae,showAutoplayNext:$e}=Su(this.videoConfig,i),{sources:Pe,title:rt,thumbUrl:vt,unitedVideoId:lt,isClip:Et=!1,duration:st,adsParams:gt={},videoEpisodes:qt,previewThumbsData:Yt,subtitles:Be,live:re}=e,W={...Y,...gt},se=this.getNextVideoInfo(),he={sources:Pe,title:rt,thumbUrl:vt,subtitles:Be,unitedVideoId:lt,isClip:Et,live:re,albumId:u,statPlace:$,autoplay:S,muted:A,volume:I,fromTime:P,canRewindLive:E,showAds:V,adsSlotId:U,adsParams:W,adsPreviewParam:F,adsAutoplayParam:j,duration:st,logoClickable:pe,logoHidden:le,isTouch:Me!=null?Me:Ve,repeat:Ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Se={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(he)}`});let De=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),ut=(De==null?void 0:De.oneStat)||this.createOneStat(e,i);ut&&(this.statistics=new au(ut,De==null?void 0:De.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ea(this.uiConfig.sentry,{version:Zs,env:Vc},{movieId:lt,albumId:u,place:$,autoplay:(a=S&&!this.interactiveController)!=null?a:!1,mobile:Me!=null?Me:Ve,clip:Et}),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=!!ke,pt=[],Je="tooltip_interactive_go_back_disabled_first";if(Ze&&this.interactiveController){let ot=this.interactiveController.state.isInitialChapter$.getValue(),Jt=this.interactiveController.getHistoryState();ot&&pt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||pt.push("SEEK_TO_INTERACTIVE_BUTTON"),Jt.hasPrevChapter$.getValue()||(pt.push("PLAY_PREV_CHAPTER_BUTTON"),ot||(Jt.isGoBackLimited$.getValue()?Je="tooltip_interactive_go_back_disabled_limit":Je="tooltip_interactive_go_back_disabled"))}let Pt=()=>{var ot;this.isInited=!1,this.prevIsid=void 0;let Jt=(o==null?void 0:o.info.isEnded$.getValue())&&((ot=this.interactiveController)==null?void 0:ot.state.isEndChapter$.getValue());ne.onReplayInteractiveVideo&&!Jt?ne.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=p1({player:o,interfaceLanguage:X,isCyrillicRelatedInterface:oe,videoId:lt,isClip:Et,isLiveCatchUpMode:Le,isAudioDisabled:J,statAuthToken:w,callbacks:ne,webApi:Se,videoEpisodes:qt,previewThumbsData:Yt,canDownload:Re,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:pt,isInteractive:Ze,saveRate:Ye,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Pt,playPrevChapterDisabledTooltip:Je,hasInteractiveBranches:!!((_=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?fe:[],additionalSettingsMenuItems:D!=null?D:[],additionalContextMenuItems:de!=null?de:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ee&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:ri}=this.microStoresRoot=j1(),Ge=()=>{var ot,Jt,Ai,ko,Ui,Eo;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Vt=>{var bt;return(bt=ne==null?void 0:ne.onCurrentFormatChanged)==null?void 0:bt.call(ne,Vt)})),this.subscription.add(ri.interactiveControlsOpacity$.subscribe(Vt=>{var bt;Vt!==null&&((bt=this==null?void 0:this.interactiveController)==null||bt.setDisabledControls(Vt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Vt=>{var bt;return(bt=ne==null?void 0:ne.onThroughputEstimationChanged)==null?void 0:bt.call(ne,Vt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Vt=>{var bt;return(bt=ne==null?void 0:ne.onTrafficSavingEnabledChanged)==null?void 0:bt.call(ne,Vt)})),this.subscription.add(new Fi.Observable(Vt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(bt=>Vt.next(bt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Fi.skip)(1):Vt=>Vt).subscribe(Vt=>{var bt;return(bt=ne==null?void 0:ne.onCurrentPlaybackRateChanged)==null?void 0:bt.call(ne,Vt)})),this.subscription.add(this.store.state.volume$.subscribe(Vt=>{var bt;return(bt=ne==null?void 0:ne.onVolumeChange)==null?void 0:bt.call(ne,Vt)})),this.subscription.add(this.store.state.muted$.subscribe(Vt=>{var bt,z;return Vt?(bt=ne==null?void 0:ne.onMute)==null?void 0:bt.call(ne):(z=ne==null?void 0:ne.onUnmute)==null?void 0:z.call(ne)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Vt=>{var bt;return(bt=ne==null?void 0:ne.onVideoBitrateChanged)==null?void 0:bt.call(ne,Vt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Vt=>{var bt;let z=(bt=this.store)==null?void 0:bt.ui.controls.disabledControls$;z&&(Vt&&!z.includes(Yl)&&z.add(Yl),Vt||z.remove(Yl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Vt=>{var bt;if(!Xd.clientChecker.browser.isSamsungBrowser||!Vt||!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(Vt=>{var bt;return(bt=ne==null?void 0:ne.onVSIDChanged)==null?void 0:bt.call(ne,Vt)})),this.initMediaSession(),O(Sn,me({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Pe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:rt,thumbUrl:vt,subtitles:Be,live:re,preload:y,autoplay:S,muted:A,volume:I,fromTime:P,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:U,adsParams:W,adsPreviewParam:F,adsAutoplayParam:j,duration:st,logoClickable:pe,logoHidden:le,isMobile:Me!=null?Me:Ve,failoverHosts:B,fullScreenTarget:Z,saveRate:Ye,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ne,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:dt,showEndScreen:Ae,showAutoplayNext:$e}));let Fo={target:this.playerContainer,props:r(Sn)};this.svelteRootComponent=ts(Xm,Fo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ai=(Jt=(ot=this.videoConfig)==null?void 0:ot.callbacks)==null?void 0:Jt.onInited)==null||Ai.call(Jt)),(ko=this.internalsExposure)==null||ko.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Eo=(Ui=this.videoConfig)==null?void 0:Ui.callbacks)!=null&&Eo.onDevNullLog)?ml.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):ml.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Xd.clientChecker.isInited$.subscribe(ot=>{ot&&(console.log("UI SDK async start"),Ge())}):Ge()}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,Fi.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?ye(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:f,videoLoader:_}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:p,historyApi:f,vkVideoLoader:_,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation}});let{isInteractiveExpectation$:u,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(y=>{if(!this.isInited)return;let S=this.store;y?S.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):S.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 S=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,S),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:S})=>{var I,A,P,E,T,V;if(!this.store||!this.microStoresRoot)return;let U=u.getValue();if(y==="action-choice"&&S==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(jl)),y==="action-choice-canceled"){let Y=ye(this.store.state.isPlaying$)||U;if(((P=(I=this.videoConfig)==null?void 0:I.isTouch)!=null?P:(A=this.videoConfig)!=null&&A.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(E=this.videoConfig)==null?void 0:(T=E.callbacks).onDisabledInteractiveClick)==null||V.call(T)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:S})=>{this.store&&y==="container-fake-removed"&&S&&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(S=>{var I,A,P;S.length&&((P=(A=(I=this.videoConfig)==null?void 0:I.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||P.call(A,S))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,S,I,A;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(S=this.videoConfig)==null?void 0:(I=S.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(I)})),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,f,_,u,$,w,y,S,I,A,P,E,T,V,U,Y,F,j,X,oe;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Su(ax,(0,Fi.cloneDeepWith)(e,pe=>pe instanceof HTMLElement?pe:void 0)),this.uiConfig=Wg((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.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new Fi.InternalsExposure("UI"))),ml.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,Z1.now)()]}),(0,Fi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,Fi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(_=this.uiConfig.features.pip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(S=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?S:this.videoConfig.isMobile,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(A=this.uiConfig.ads.enable)!=null?A:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(E=this.uiConfig.ads.preview)!=null?E:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((T=this.uiConfig.showLogo)!=null?T:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(U=this.videoConfig.supportLink)!=null?U: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=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((X=this.videoConfig.videos)!=null&&X[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let pe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=wu.getLatestSupportedVersion(pe):this.pictureInPictureApi=new ta(pe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new yu:void 0,this.slotsApi=this.uiConfig.features.slots?new hu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Cu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(oe=this.slotsApi)==null||oe.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]),q1(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(Sn)&&(r(Sn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Sn).nextButtonActive=this.isNextButtonActive(),r(Sn).prevButtonActive=this.isPrevButtonActive(),r(Sn).endScreenVideoTitle=o.nextVideoTitle,r(Sn).endScreenVideoThumb=o.nextVideoThumb,r(Sn).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})}}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)}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(Sn)&&(r(Sn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Sn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Sn).nextButtonActive=this.isNextButtonActive(),r(Sn).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})}setLiveWaitingRecover(){var e;this.log({message:"live waiting"}),(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)}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=ye(this.store.state.positionExact$),s=ye(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe((0,Fi.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)}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}unmountComponent(e){e&&Ws(e)}};var vl=require("@vkontakte/videoplayer-shared/es2018"),Pu=require("@vkontakte/videoplayer-core/es2018"),lx=()=>{window.customElements.define("vk-video-player",Au)};
|