@vkontakte/videoplayer 1.1.65-dev.b4cd3784.0 → 1.1.65-dev.d779f3ab.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 +75 -74
- package/es2015.esm.js +75 -74
- package/es2018.cjs.js +75 -74
- package/es2018.esm.js +75 -74
- package/es2024.cjs.js +77 -76
- package/es2024.esm.js +77 -76
- package/esnext.cjs.js +77 -76
- package/esnext.esm.js +77 -76
- package/evergreen.esm.js +77 -76
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.svelte.d.ts +9 -2
- package/types/components/Ads/admanWrapper.d.ts +0 -2
- package/types/config.d.ts +1 -1
- package/types/services/statistics.d.ts +6 -4
- package/types/store/index.d.ts +8 -1
- package/types/store/utils.d.ts +1 -0
- package/types/translation/types.d.ts +1 -1
- package/types/types/index.d.ts +32 -4
- package/types/utils/getControlInfo.d.ts +7 -0
- package/types/utils/updatePlayerControlBlocks.d.ts +3 -0
- package/types/utils/getButtonControlInfo.d.ts +0 -14
package/es2018.cjs.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.65-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.65-dev.d779f3ab.0
|
|
3
|
+
* Wed, 02 Jul 2025 13:59:31 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-65/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var
|
|
6
|
+
"use strict";var m0=Object.create;var Rl=Object.defineProperty;var v0=Object.getOwnPropertyDescriptor;var g0=Object.getOwnPropertyNames;var h0=Object.getPrototypeOf,_0=Object.prototype.hasOwnProperty;var yv=t=>{throw TypeError(t)};var b0=(t,e,i)=>e in t?Rl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var $0=(t,e)=>{for(var i in e)Rl(t,i,{get:e[i],enumerable:!0})},xv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g0(e))!_0.call(t,n)&&n!==i&&Rl(t,n,{get:()=>e[n],enumerable:!(o=v0(e,n))||o.enumerable});return t};var wv=(t,e,i)=>(i=t!=null?m0(h0(t)):{},xv(e||!t||!t.__esModule?Rl(i,"default",{value:t,enumerable:!0}):i,t)),y0=t=>xv(Rl({},"__esModule",{value:!0}),t);var Kn=(t,e,i)=>b0(t,typeof e!="symbol"?e+"":e,i),Qu=(t,e,i)=>e.has(t)||yv("Cannot "+i);var ki=(t,e,i)=>(Qu(t,e,"read from private field"),i?i.call(t):e.get(t)),ws=(t,e,i)=>e.has(t)?yv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ba=(t,e,i,o)=>(Qu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Sv=(t,e,i)=>(Qu(t,e,"access private method"),i);var Lx={};$0(Lx,{ControlButtonType:()=>Ld,GridTypes:()=>Ar,InterfaceLanguage:()=>El.InterfaceLanguage,MenuItemType:()=>pl,PlayerPhase:()=>Zr,VERSION:()=>aa,VKNumericLanguage:()=>El.VKNumericLanguage,VideoFormat:()=>Hu.VideoFormat,VideoQuality:()=>Hu.VideoQuality,loadVKLangPack:()=>El.loadVKLangPack,registerPlayerWebComponent:()=>Mx});module.exports=y0(Lx);var Ss="[",zs="[!",Ws="]",os={};var Pi=Symbol(),pi=Symbol("filename"),Cv=Symbol("hmr"),Tv="http://www.w3.org/1999/xhtml",Gu="http://www.w3.org/2000/svg";var vc=!0;var Ev,kv,Iv=(kv=(Ev=globalThis.process)==null?void 0:Ev.env)==null?void 0:kv.NODE_ENV,Le=Iv&&!Iv.toLowerCase().startsWith("prod");var Yo=Symbol("$state"),ns=Symbol("$state metadata"),Bl=Symbol("legacy props"),Pv=Symbol("");var Sr=Array.isArray,Av=Array.prototype.indexOf,Nl=Array.from,Yu=Object.keys,no=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor,gc=Object.getOwnPropertyDescriptors,ju=Object.prototype,Mv=Array.prototype,rs=Object.getPrototypeOf;function Cs(t){return typeof t=="function"}var oe=()=>{};function Lv(t){return t()}function Ts(t){for(var e=0;e<t.length;e++)t[e]()}var Dl=[],Zu=[];function Vv(){var t=Dl;Dl=[],Ts(t)}function x0(){var t=Zu;Zu=[],Ts(t)}function an(t){Dl.length===0&&queueMicrotask(Vv),Dl.push(t)}function Xu(){Dl.length>0&&Vv(),Zu.length>0&&x0()}function hc(t){return t===this.v}function Na(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Rv(t,e){return t!==e}function Da(t){return!Na(t,this.v)}function Bv(){if(Le){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 Nv(t){if(Le){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 Dv(){if(Le){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 Ov(t){if(Le){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 Hv(){if(Le){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 Fv(){if(Le){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 Uv(){if(Le){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 zv(t){if(Le){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 Wv(t){if(Le){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 qv(t){if(Le){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 Kv(){if(Le){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 Qv(){if(Le){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 Gv(){if(Le){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 Yv(){if(Le){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 qr=!1,Kr=!1;function jv(){qr=!0}var Ol=null;function ss(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
|
|
25
|
-
`)}),
|
|
24
|
+
`];for(let a=0;a<o.length;a++){let r=o[a];if(r!=="Error"){if(r.includes("validate_each_keys"))return null;r.includes("svelte/src/internal")||n.push(r)}}if(n.length===1)return null;no(e,"stack",{value:n.join(`
|
|
25
|
+
`)}),no(e,"name",{value:`${t}Error`})}return e}var qs=new Set,Oa=new Map;function ip(t){qs=t}function zi(t,e){var i={f:0,v:t,reactions:null,equals:hc,rv:0,wv:0};return Le&&Kr&&(i.created=e!=null?e:ss("CreatedAt"),i.debug=null),i}function X(t){return w0(zi(t))}function ls(t,e=!1){var o,n;let i=zi(t);return e||(i.equals=Da),qr&&Mt!==null&&Mt.l!==null&&((n=(o=Mt.l).s)!=null?n:o.s=[]).push(i),i}function w0(t){return Ht!==null&&!Yn&&(Ht.f&2)!==0&&(Cr===null?Jv([t]):Cr.push(t)),t}function D(t,e){return Ht!==null&&!Yn&&Qr()&&(Ht.f&18)!==0&&(Cr===null||!Cr.includes(t))&&Yv(),Ha(t,e)}function Ha(t,e){var o;if(!t.equals(e)){var i=t.v;if(Qs?Oa.set(t,e):Oa.set(t,i),t.v=e,t.wv=Fl(),Le&&Kr&&(t.updated=ss("UpdatedAt"),kt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),Xv(t,2048),Qr()&&kt!==null&&(kt.f&1024)!==0&&(kt.f&96)===0&&(Gn===null?eg([t]):Gn.push(t)),Le&&qs.size>0){let n=Array.from(qs);for(let a of n)(a.f&1024)!==0&&cn(a,4096),Is(a)&&Fa(a);qs.clear()}}return e}function Xv(t,e){var i=t.reactions;if(i!==null)for(var o=Qr(),n=i.length,a=0;a<n;a++){var r=i[a],d=r.f;if((d&2048)===0&&!(!o&&r===kt)){if(Le&&(d&262144)!==0){qs.add(r);continue}cn(r,e),(d&1280)!==0&&((d&2)!==0?Xv(r,4096):Ua(r))}}}function v(t){var e=2050,i=Ht!==null&&(Ht.f&2)!==0?Ht:null;kt===null||i!==null&&(i.f&256)!==0?e|=256:kt.f|=1048576;let o={ctx:Mt,deps:null,effects:null,equals:hc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:kt};return Le&&Kr&&(o.created=ss("CreatedAt")),o}function Ir(t){let e=v(t);return e.equals=Da,e}function _c(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)so(e[i])}}var op=[];function S0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function C0(t){var e,i=kt;if(ro(S0(t)),Le){let o=qs;ip(new Set);try{op.includes(t)&&Bv(),op.push(t),_c(t),e=bc(t)}finally{ro(i),ip(o),op.pop()}}else try{_c(t),e=bc(t)}finally{ro(i)}return e}function rp(t){var e=C0(t),i=(ds||(t.f&256)!==0)&&t.deps!==null?4096:1024;cn(t,i),t.equals(e)||(t.v=e,t.wv=Fl())}var Gs="font-weight: bold",Ys="font-weight: normal";function tg(t,e,i){Le?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`,Gs,Ys):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function ig(t){Le?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`,Gs,Ys):console.warn("https://svelte.dev/e/hydration_html_changed")}function js(t){Le?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`,Gs,Ys):console.warn("https://svelte.dev/e/hydration_mismatch")}function og(){Le?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`,Gs,Ys):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function ng(t,e,i){Le?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`,Gs,Ys):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function sp(t,e){Le?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`,Gs,Ys):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function $c(t){Le?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`,Gs,Ys):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var je=!1;function ao(t){je=t}var vt;function fi(t){if(t===null)throw js(),os;return vt=t}function Di(){return fi(Vo(vt))}function g(t){if(je){if(Vo(vt)!==null)throw js(),os;vt=t}}function we(t=1){if(je){for(var e=t,i=vt;e--;)i=Vo(i);vt=i}}function za(){for(var t=0,e=vt;;){if(e.nodeType===8){var i=e.data;if(i===Ws){if(t===0)return e;t-=1}else(i===Ss||i===zs)&&(t+=1)}var o=Vo(e);e.remove(),e=o}}function ve(t,e=null,i){var p,f;var o=null;if(Le&&Kr&&(o=ss("CreatedAt")),typeof t!="object"||t===null||Yo in t)return t;let n=rs(t);if(n!==ju&&n!==Mv)return t;var a=new Map,r=Sr(t),d=zi(0);r&&a.set("length",zi(t.length,o));var l;if(Le)if(l={parent:e,owners:null},i){let b=(f=(p=i.v)==null?void 0:p[ns])==null?void 0:f.owners;l.owners=b?new Set(b):null}else l.owners=e===null?Mt!==null?new Set([Mt.function]):null:new Set;return new Proxy(t,{defineProperty(b,u,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&Kv();var w=a.get(u);return w===void 0?(w=zi(_.value,o),a.set(u,w)):D(w,ve(_.value,l)),!0},deleteProperty(b,u){var _=a.get(u);if(_===void 0)u in b&&a.set(u,zi(Pi,o));else{if(r&&typeof u=="string"){var w=a.get("length"),y=Number(u);Number.isInteger(y)&&y<w.v&&D(w,y)}D(_,Pi),rg(d)}return!0},get(b,u,_){var I;if(Le&&u===ns)return l;if(u===Yo)return t;var w=a.get(u),y=u in b;if(w===void 0&&(!y||(I=Qn(b,u))!=null&&I.writable)&&(w=zi(ve(y?b[u]:Pi,l),o),a.set(u,w)),w!==void 0){var C=s(w);if(Le){var T=C==null?void 0:C[ns];T&&(T==null?void 0:T.parent)!==l&&ap(l,T)}return C===Pi?void 0:C}return Reflect.get(b,u,_)},getOwnPropertyDescriptor(b,u){var _=Reflect.getOwnPropertyDescriptor(b,u);if(_&&"value"in _){var w=a.get(u);w&&(_.value=s(w))}else if(_===void 0){var y=a.get(u),C=y==null?void 0:y.v;if(y!==void 0&&C!==Pi)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return _},has(b,u){var C;if(Le&&u===ns||u===Yo)return!0;var _=a.get(u),w=_!==void 0&&_.v!==Pi||Reflect.has(b,u);if(_!==void 0||kt!==null&&(!w||(C=Qn(b,u))!=null&&C.writable)){_===void 0&&(_=zi(w?ve(b[u],l):Pi,o),a.set(u,_));var y=s(_);if(y===Pi)return!1}return w},set(b,u,_,w){var z;var y=a.get(u),C=u in b;if(r&&u==="length")for(var T=_;T<y.v;T+=1){var I=a.get(T+"");I!==void 0?D(I,Pi):T in b&&(I=zi(Pi,o),a.set(T+"",I))}if(y===void 0?(!C||(z=Qn(b,u))!=null&&z.writable)&&(y=zi(void 0,o),D(y,ve(_,l)),a.set(u,y)):(C=y.v!==Pi,D(y,ve(_,l))),Le){var M=_==null?void 0:_[ns];M&&(M==null?void 0:M.parent)!==l&&ap(l,M),sg(l)}var P=Reflect.getOwnPropertyDescriptor(b,u);if(P!=null&&P.set&&P.set.call(w,_),!C){if(r&&typeof u=="string"){var E=a.get("length"),R=Number(u);Number.isInteger(R)&&R>=E.v&&D(E,R+1)}rg(d)}return!0},ownKeys(b){s(d);var u=Reflect.ownKeys(b).filter(y=>{var C=a.get(y);return C===void 0||C.v!==Pi});for(var[_,w]of a)w.v!==Pi&&!(_ in b)&&u.push(_);return u},setPrototypeOf(){Qv()}})}function rg(t,e=1){D(t,t.v+e)}function yc(t){return t!==null&&typeof t=="object"&&Yo in t?t[Yo]:t}function ag(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(a,r){let d=i.call(this,a,r);if(d===-1){for(let l=r!=null?r:0;l<this.length;l+=1)if(yc(this[l])===a){$c("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,r){let d=o.call(this,a,r!=null?r:this.length-1);if(d===-1){for(let l=0;l<=(r!=null?r:this.length-1);l+=1)if(yc(this[l])===a){$c("array.lastIndexOf(...)");break}}return d},t.includes=function(a,r){let d=n.call(this,a,r);if(!d){for(let l=0;l<this.length;l+=1)if(yc(this[l])===a){$c("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Zs,lg,Ul,dg,cg;function xc(){if(Zs===void 0){Zs=window,lg=document,Ul=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;dg=Qn(e,"firstChild").get,cg=Qn(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,Le&&(t.__svelte_meta=null,ag())}}function un(t=""){return document.createTextNode(t)}function mi(t){return dg.call(t)}function Vo(t){return cg.call(t)}function h(t,e){if(!je)return mi(t);var i=mi(vt);if(i===null)i=vt.appendChild(un());else if(e&&i.nodeType!==3){var o=un();return i==null||i.before(o),fi(o),o}return fi(i),i}function he(t,e){var n,a;if(!je){var i=mi(t);return i.nodeType===8&&i.data===""?Vo(i):i}if(e&&((n=vt)==null?void 0:n.nodeType)!==3){var o=un();return(a=vt)==null||a.before(o),fi(o),o}return vt}function A(t,e=1,i=!1){let o=je?vt:t;for(var n;e--;)n=o,o=Vo(o);if(!je)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var r=un();return o===null?n==null||n.after(r):o.before(r),fi(r),r}return fi(o),o}function zl(t){t.textContent=""}var ug=new WeakSet,wc=!1,Kl=!1,Wl=null,Xs=!1,Qs=!1;function cp(t){Qs=t}var ql=[],Cc=[],Ht=null,Yn=!1;function yo(t){Ht=t}var kt=null;function ro(t){kt=t}var Cr=null;function Jv(t){Cr=t}var pn=null,Zn=0,Gn=null;function eg(t){Gn=t}var gg=1,Tc=0,ds=!1,Hl=null;function Fl(){return++gg}function Is(t){var b,u;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,a,r=(e&512)!==0,d=o&&kt!==null&&!ds,l=i.length;if(r||d){var p=t,f=p.parent;for(n=0;n<l;n++)a=i[n],(r||!((b=a==null?void 0:a.reactions)!=null&&b.includes(p)))&&((u=a.reactions)!=null?u:a.reactions=[]).push(p);r&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<l;n++)if(a=i[n],Is(a)&&rp(a),a.wv>t.wv)return!0}(!o||kt!==null&&!ds)&&cn(t,1024)}return!1}function pg(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 wc=!1,t}function fg(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function qa(t,e,i,o){var f,b;if(wc){if(i===null&&(wc=!1),fg(e))throw t;return}if(i!==null&&(wc=!0),!Le||o===null||!(t instanceof Error)||ug.has(t)){pg(t,e);return}ug.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let r=o;for(;r!==null;){if(Le){var d=(b=r.function)==null?void 0:b[pi];if(d){let u=d.split("/").pop();n.push(u)}}r=r.p}let l=Ul?" ":" ";no(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
|
|
44
|
-
`)})}if(
|
|
45
|
-
`)){let n=(i=
|
|
42
|
+
`}),no(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)}no(t,"stack",{value:_.join(`
|
|
44
|
+
`)})}if(pg(t,e),fg(e))throw t}function hg(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?hg(a,e,!1):e===a&&(i?cn(a,2048):(a.f&1024)!==0&&cn(a,4096),Ua(a))}}function bc(t){var _,w;var e=pn,i=Zn,o=Gn,n=Ht,a=ds,r=Cr,d=Mt,l=Yn,p=t.f;pn=null,Zn=0,Gn=null,ds=(p&256)!==0&&(Yn||!Xs||Ht===null),Ht=(p&96)===0?t:null,Cr=null,Gl(t.ctx),Yn=!1,Tc++;try{var f=(0,t.fn)(),b=t.deps;if(pn!==null){var u;if(Ql(t,Zn),b!==null&&Zn>0)for(b.length=Zn+pn.length,u=0;u<pn.length;u++)b[Zn+u]=pn[u];else t.deps=b=pn;if(!ds)for(u=Zn;u<b.length;u++)((w=(_=b[u]).reactions)!=null?w:_.reactions=[]).push(t)}else b!==null&&Zn<b.length&&(Ql(t,Zn),b.length=Zn);if(Qr()&&Gn!==null&&!Yn&&b!==null&&(t.f&6146)===0)for(u=0;u<Gn.length;u++)hg(Gn[u],t);return n!==null&&(Tc++,Gn!==null&&(o===null?o=Gn:o.push(...Gn))),f}finally{pn=e,Zn=i,Gn=o,Ht=n,ds=a,Cr=r,Gl(d),Yn=l}}function T0(t,e){let i=e.reactions;if(i!==null){var o=Av.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&&(pn===null||!pn.includes(e))&&(cn(e,4096),(e.f&768)===0&&(e.f^=512),_c(e),Ql(e,0))}function Ql(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)T0(t,i[o])}function Fa(t){var e=t.f;if((e&16384)===0){cn(t,1024);var i=kt,o=Mt,n=Xs;if(kt=t,Xs=!0,Le){var a=fn;Yl(t.component_function)}try{(e&16)!==0?_g(t):pp(t),up(t);var r=bc(t);t.teardown=typeof r=="function"?r:null,t.wv=gg;var d=t.deps;if(Le&&Kr&&(t.f&2048)!==0&&d!==null)for(let p=0;p<d.length;p++){var l=d[p];l.trace_need_increase&&(l.wv=Fl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Le&&Cc.push(t)}catch(p){qa(p,t,i,o||t.ctx)}finally{Xs=n,kt=i,Le&&Yl(a)}}}function mg(){console.error("Last ten effects were: ",Cc.slice(-10).map(t=>t.fn)),Cc=[]}function I0(){try{Hv()}catch(t){if(Le&&no(t,"stack",{value:""}),Wl!==null)if(Le)try{qa(t,Wl,null,null)}catch(e){throw mg(),e}else qa(t,Wl,null,null);else throw Le&&mg(),t}}function lp(){var t=Xs;try{var e=0;for(Xs=!0;ql.length>0;){e++>1e3&&I0();var i=ql,o=i.length;ql=[];for(var n=0;n<o;n++){var a=k0(i[n]);E0(a)}}}finally{Kl=!1,Xs=t,Wl=null,Le&&(Cc=[]),Oa.clear()}}function E0(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{Is(o)&&(Fa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?fp(o):o.fn=null))}catch(n){qa(n,o,null,o.ctx)}}}function Ua(t){Kl||(Kl=!0,queueMicrotask(lp));for(var e=Wl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}ql.push(e)}function k0(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 r=Ht;try{Ht=i,Is(i)&&Fa(i)}catch(p){qa(p,i,null,i.ctx)}finally{Ht=r}}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 Ka(t){var e;for(t&&(Kl=!0,lp(),e=t()),Xu();ql.length>0;)Kl=!0,lp(),Xu();return e}async function xo(){await Promise.resolve(),Ka()}function s(t){var e=t.f,i=(e&2)!==0;if(Hl!==null&&Hl.add(t),Ht!==null&&!Yn){Cr!==null&&Cr.includes(t)&&Gv();var o=Ht.deps;t.rv<Tc&&(t.rv=Tc,pn===null&&o!==null&&o[Zn]===t?Zn++:pn===null?pn=[t]:(!ds||!pn.includes(t))&&pn.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,Is(n)&&rp(n)),Le&&Kr&&Ol!==null&&Ht!==null&&Ol.reaction===Ht){if(t.debug)t.debug();else if(t.created){var r=Ol.entries.get(t);r===void 0&&(r={read:[]},Ol.entries.set(t,r)),r.read.push(ss("TracedAt"))}}return Qs&&Oa.has(t)?Oa.get(t):t.v}function Ct(t){var e=Yn;try{return Yn=!0,t()}finally{Yn=e}}var P0=-7169;function cn(t,e){t.f=t.f&P0|e}function Ec(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Yo in t)Ic(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Yo in i&&Ic(i)}}}function Ic(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{Ic(t[o],e)}catch(n){}let i=rs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=gc(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(r){}}}}}function vp(t){kt===null&&Ht===null&&Ov(t),Ht!==null&&(Ht.f&256)!==0&&kt===null&&Dv(),Qs&&Nv(t)}function A0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Js(t,e,i,o=!0){var l;var n=kt;if(Le)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Mt,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(Le&&(a.component_function=fn),i)try{Fa(a),a.f|=32768}catch(p){throw so(a),p}else e!==null&&Ua(a);var r=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!r&&o&&(n!==null&&A0(a,n),Ht!==null&&(Ht.f&2)!==0)){var d=Ht;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function mn(t){let e=Js(8,null,!1);return cn(e,1024),e.teardown=t,e}function Ue(t){var n;vp("$effect");var e=kt!==null&&(kt.f&32)!==0&&Mt!==null&&!Mt.m;if(Le&&no(t,"name",{value:"$effect"}),e){var i=Mt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:kt,reaction:Ht})}else{var o=Cn(t);return o}}function Qa(t){return vp("$effect.pre"),Le&&no(t,"name",{value:"$effect.pre"}),wo(t)}function Pc(t){let e=Js(64,t,!0);return()=>{so(e)}}function $g(t){let e=Js(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Tn(e,()=>{so(e),o(void 0)}):(so(e),o(void 0))})}function Cn(t){return Js(4,t,!1)}function wo(t){return Js(8,t,!0)}function k(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(s));return Le&&no(n,"name",{value:"{expression}"}),lo(n)}function lo(t,e=0){return Js(24|e,t,!0)}function Wi(t,e=!0){return Js(40,t,!0,e)}function up(t){var e=t.teardown;if(e!==null){let i=Qs,o=Ht;cp(!0),yo(null);try{e.call(null)}finally{cp(i),yo(o)}}}function pp(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:so(i,e),i=o}}function _g(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&so(e),e=i}}function so(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:Vo(o);o.remove(),o=a}i=!0}pp(t,e&&!i),Ql(t,0),cn(t,16384);var r=t.transitions;if(r!==null)for(let l of r)l.stop();up(t);var d=t.parent;d!==null&&d.first!==null&&fp(t),Le&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function fp(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Tn(t,e){var i=[];Ac(t,i,!0),gp(i,()=>{so(t),e&&e()})}function gp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Ac(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let r of t.transitions)(r.is_global||i)&&e.push(r);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;Ac(o,e,a?i:!1),o=n}}}function cs(t){yg(t,!0)}function yg(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),Is(t)&&(cn(t,2048),Ua(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;yg(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var M0={},L0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,V0=/@(.+):(\d+):(\d+)$/;function R0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
|
|
45
|
+
`)){let n=(i=L0.exec(o))!=null?i:V0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function xg(){var e;let t=(e=R0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=M0[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 Mc=Symbol("ADD_OWNER");function hp(t,e,i=!1,o=!1){if(t&&!i){let n=fn,a=t[ns];if(a&&!_p(a,n)){let r=bp(a);e&&e[pi]!==n[pi]&&!o&&ng(n[pi],e[pi],r[pi])}}Lc(t,e,new Set)}function ap(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 Lc(t,e,i){var a;let o=t==null?void 0:t[ns];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),Mc in t&&t[Mc])wo(()=>{t[Mc](e)});else{var n=rs(t);if(n===Object.prototype)for(let r in t)if((a=Object.getOwnPropertyDescriptor(t,r))!=null&&a.get){let d=Pi;wo(()=>{let l=t[r];d!==l&&(d=l,Lc(l,e,i))})}else Lc(t[r],e,i);else if(n===Array.prototype)for(let r=0;r<t.length;r+=1)Lc(t[r],e,i)}}}function _p(t,e){return t.owners===null?!0:t.owners.has(e)||pi in e&&[...t.owners].some(i=>i[pi]===e[pi])||t.parent!==null&&_p(t.parent,e)}function bp(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:bp(t.parent)}var B0=!1;function sg(t){if(B0)return;let e=xg();if(e&&!_p(t,e)){let i=bp(t);i[pi]!==e[pi]?sp(e[pi],i[pi]):sp()}}function Ga(t){if(Le){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 Mt=null;function Hl(t){Mt=t}var sn=null;function Fl(t){sn=t}function qa(t){return fp("getContext").get(t)}function Ka(t,e){let i=fp("setContext");return ke&&Ct(()=>cp(e,null,!0)),i.set(t,e),e}function zl(){return fp("getAllContexts")}function F(t,e=!1,i){var o=Mt={p:Mt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Lr&&!e&&(Mt.l={s:null,u:null,r1:[],r2:Ui(!1)}),an(()=>{o.d=!0}),ke&&(Mt.function=i,sn=i)}function U(t){var s,d;let e=Mt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=Pt,o=zt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];to(a.effect),_o(a.reaction),gn(a.fn)}}finally{to(i),_o(o)}}Mt=e.p,ke&&(sn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Rr(){return!Lr||Mt!==null&&Mt.l===null}function fp(t){var e;return Mt===null&&Wa(t),(e=Mt.c)!=null?e:Mt.c=new Map(R0(Mt)||void 0)}function R0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var B0=/\r/g;function mg(t){t=t.replace(B0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function vg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var N0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function gg(t){return N0.includes(t)}var D0=["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 O0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function hg(t){var e;return t=t.toLowerCase(),(e=O0[t])!=null?e:t}var Iw=[...D0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var H0=["touchstart","touchmove"];function _g(t){return H0.includes(t)}var F0=["textarea","script","style","title"];function bg(t){return F0.includes(t)}function mp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var $g=new Map;function yg(t,e){var i=$g.get(t);i||(i=new Set,$g.set(t,i)),i.add(e)}function vp(t,e){if(e){let i=document.body;t.autofocus=!0,Jo(()=>{document.activeElement===i&&t.focus()})}}function Wl(t){var e=zt,i=Pt;_o(null),to(null);try{return t()}finally{_o(e),to(i)}}var gp=new Set,kc=new Set;function Ws(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 hp(t,e,i,o={}){function n(a){if(o.capture||Qa.call(e,a),!a.cancelBubble)return Wl(()=>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 kt(t,e,i,o,n){var a={capture:o,passive:n},s=hp(t,e,i,a);(e===document.body||e===window||e===document)&&an(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)gp.add(t[e]);for(var i of kc)i(t)}function Qa(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;l<=p&&(s=l)}if(a=n[s]||t.target,a!==e){eo(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=zt,y=Pt;_o(null),to(null);try{for(var u,_=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var b=a["__"+o];if(b!=null&&(!a.disabled||t.target===a))if(vr(b)){var[C,...T]=b;C.apply(a,[t,...T])}else b.call(a,t)}catch(M){u?_.push(M):u=M}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let M of _)queueMicrotask(()=>{throw M});throw u}}finally{t.__root=e,delete t.currentTarget,_o(f),to(y)}}}var z0;function xg(){z0=void 0}function Ga(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function yo(t,e){var i=Pt;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 yo(bt,null),bt;n===void 0&&(n=Ga(a?t:"<!>"+t),i||(n=hi(n)));var s=o||Vl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=hi(s),l=s.lastChild;yo(d,l)}else yo(s,s);return s}}function ye(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ye)return yo(bt,null),bt;if(!s){var d=Ga(a),l=hi(d);if(n)for(s=document.createDocumentFragment();hi(l);)s.appendChild(hi(l));else s=hi(l)}var p=s.cloneNode(!0);if(n){var f=hi(p),y=p.lastChild;yo(f,y)}else yo(p,p);return p}}function Br(t=""){if(!Ye){var e=nn(t+"");return yo(e,e),e}var i=bt;return i.nodeType!==3&&(i.before(i=nn()),gi(i)),yo(i,i),i}function Oe(){if(Ye)return yo(bt,null),bt;var t=document.createDocumentFragment(),e=document.createComment(""),i=nn();return t.append(e,i),yo(e,i),t}function $(t,e){if(Ye){Pt.nodes_end=bt,Ri();return}t!==null&&t.before(e)}var ql=!0;function Ec(t){ql=t}function me(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Jr(t,e){return Sg(t,e)}function bp(t,e){var s;gc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ye,n=bt;try{for(var a=hi(i);a&&(a.nodeType!==8||a.data!==cs);)a=Eo(a);if(!a)throw qr;oo(!0),gi(a),Ri();let d=Sg(t,{...e,anchor:a});if(bt===null||bt.nodeType!==8||bt.data!==Vs)throw Hs(),qr;return oo(!1),d}catch(d){if(d===qr)return e.recover===!1&&Mv(),gc(),Rl(i),oo(!1),Jr(t,e);throw d}finally{oo(o),gi(n),xg()}}var Ya=new Map;function Sg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){gc();var d=new Set,l=y=>{for(var u=0;u<y.length;u++){var _=y[u];if(!d.has(_)){d.add(_);var w=_g(_);e.addEventListener(_,Qa,{passive:w});var b=Ya.get(_);b===void 0?(document.addEventListener(_,Qa,{passive:w}),Ya.set(_,1)):Ya.set(_,b+1)}}};l(El(gp)),kc.add(l);var p=void 0,f=ug(()=>{var y=i!=null?i:e.appendChild(nn());return zi(()=>{if(a){F({});var u=Mt;u.c=a}n&&(o.$$events=n),Ye&&yo(y,null),ql=s,p=t(y,o)||{},ql=!0,Ye&&(Pt.nodes_end=bt),a&&U()}),()=>{var w;for(var u of d){e.removeEventListener(u,Qa);var _=Ya.get(u);--_===0?(document.removeEventListener(u,Qa),Ya.delete(u)):Ya.set(u,_)}kc.delete(l),y!==i&&((w=y.parentNode)==null||w.removeChild(y))}});return _p.set(p,f),p}var _p=new WeakMap;function qs(t,e){let i=_p.get(t);return i?(_p.delete(t),i(e)):(ke&&Gv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ye&&i===0&&Ri();var n=t,a=null,s=null,d=ki,l=i>0?65536:0,p=!1;let f=(u,_=!0)=>{p=!0,y(_,u)},y=(u,_)=>{if(d===(d=u))return;let w=!1;if(Ye&&o!==-1){if(i===0){let C=n.data;C===cs?o=0:C===Ls?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let b=o>i;!!d===b&&(n=Oa(),gi(n),oo(!1),w=!0,o=-1)}d?(a?Xr(a):_&&(a=zi(()=>_(n))),s&&hn(s,()=>{s=null})):(s?Xr(s):_&&(s=zi(()=>_(n,[i+1,o]))),a&&hn(a,()=>{a=null})),w&&oo(!0)};no(()=>{p=!1,e(f),p||y(null,null)},l),Ye&&(n=bt)}function Ks(t,e,i){Ye&&Ri();var o=t,n=ki,a,s=Rr()?Tv:La;no(()=>{s(n,n=e())&&(a&&hn(a),a=zi(()=>i(o)))}),Ye&&(o=bt)}var vs=null;function xp(t){vs=t}function Kl(t,e){return e}function Q0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Cc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Rl(l),l.append(i),o.clear(),ms(t,e[0].prev,e[a-1].next)}dp(n,()=>{for(var p=0;p<a;p++){var f=e[p];d||(o.delete(f.k),ms(t,f.prev,f.next)),io(f.e,!d)}})}function yi(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?gi(hi(p)):p.appendChild(nn())}Ye&&Ri();var f=null,y=!1,u=_r(()=>{var _=i();return vr(_)?_:_==null?[]:El(_)});no(()=>{var _=r(u),w=_.length;if(y&&w===0)return;y=w===0;let b=!1;if(Ye){var C=s.data===Ls;C!==(w===0)&&(s=Oa(),gi(s),oo(!1),b=!0)}if(Ye){for(var T=null,I,M=0;M<w;M++){if(bt.nodeType===8&&bt.data===Vs){s=bt,b=!0,oo(!1);break}var P=_[M],k=o(P,M);I=Ig(bt,d,T,null,P,k,M,n,e,i),d.items.set(k,I),T=I}w>0&&gi(Oa())}Ye||G0(_,d,s,n,e,o,i),a!==null&&(w===0?f?Xr(f):f=zi(()=>a(s)):f!==null&&hn(f,()=>{f=null})),b&&oo(!0),r(u)}),Ye&&(s=bt)}function G0(t,e,i,o,n,a,s){var ce,Ee,Me,ge;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,f=e.items,y=e.first,u=y,_,w=null,b,C=[],T=[],I,M,P,k;if(d)for(k=0;k<p;k+=1)I=t[k],M=a(I,k),P=f.get(M),P!==void 0&&((ce=P.a)==null||ce.measure(),(b!=null?b:b=new Set).add(P));for(k=0;k<p;k+=1){if(I=t[k],M=a(I,k),P=f.get(M),P===void 0){var V=u?u.e.nodes_start:i;w=Ig(V,e,w,w===null?e.first:w.next,I,M,k,o,n,s),f.set(M,w),C=[],T=[],u=w.next;continue}if(l&&Y0(P,I,k,n),(P.e.f&8192)!==0&&(Xr(P.e),d&&((Ee=P.a)==null||Ee.unfix(),(b!=null?b:b=new Set).delete(P))),P!==u){if(_!==void 0&&_.has(P)){if(C.length<T.length){var W=T[0],j;w=W.prev;var H=C[0],Q=C[C.length-1];for(j=0;j<C.length;j+=1)Cg(C[j],W,i);for(j=0;j<T.length;j+=1)_.delete(T[j]);ms(e,H.prev,Q.next),ms(e,w,H),ms(e,Q,W),u=W,w=Q,k-=1,C=[],T=[]}else _.delete(P),Cg(P,u,i),ms(e,P.prev,P.next),ms(e,P,w===null?e.first:w.next),ms(e,w,P),w=P;continue}for(C=[],T=[];u!==null&&u.k!==M;)(u.e.f&8192)===0&&(_!=null?_:_=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;P=u}C.push(P),w=P,u=P.next}if(u!==null||_!==void 0){for(var ie=_===void 0?[]:El(_);u!==null;)(u.e.f&8192)===0&&ie.push(u),u=u.next;var Z=ie.length;if(Z>0){var se=(n&4)!==0&&p===0?i:null;if(d){for(k=0;k<Z;k+=1)(Me=ie[k].a)==null||Me.measure();for(k=0;k<Z;k+=1)(ge=ie[k].a)==null||ge.fix()}Q0(e,ie,se,f)}}d&&Jo(()=>{var ae;if(b!==void 0)for(P of b)(ae=P.a)==null||ae.apply()}),Pt.first=e.first&&e.first.e,Pt.last=w&&w.e}function Y0(t,e,i,o){(o&1)!==0&&Ba(t.v,e),(o&2)!==0?Ba(t.i,i):t.i=i}function Ig(t,e,i,o,n,a,s,d,l,p){var f=vs,y=(l&1)!==0,u=(l&16)===0,_=y?u?jr(n):Ui(n):n,w=(l&2)===0?s:Ui(s);ke&&y&&(_.debug=()=>{var C=typeof w=="number"?s:w.v;p()[C]});var b={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};vs=b;try{return b.e=zi(()=>d(t,_,w,p),Ye),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{vs=f}}function Cg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=Eo(a);n.before(a),a=s}}function ms(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function j0(t,e,i){var a,s;if(!e||e===mg(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=sn)!=null&&s[vi]&&(o=`in ${sn[vi]}`),Qv(mp(o))}function Ql(t,e,i,o,n){var a=t,s="",d;no(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ye&&Ri();return}d!==void 0&&(io(d),d=void 0),s!==""&&(d=zi(()=>{if(Ye){for(var p=bt.data,f=Ri(),y=f;f!==null&&(f.nodeType!==8||f.data!=="");)y=f,f=Eo(f);if(f===null)throw Hs(),qr;ke&&!n&&j0(f.parentNode,p,s),yo(bt,y),a=gi(f);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var _=Ga(u);if((i||o)&&(_=hi(_)),yo(hi(_),_.lastChild),i||o)for(;hi(_);)a.before(hi(_));else a.before(_)}))})}function ve(t,e,...i){var o=t,n=te,a;no(()=>{n!==(n=e())&&(a&&(io(a),a=null),ke&&n==null&&Lv(),a=zi(()=>n(o,...i)))},65536),Ye&&(o=bt)}function xi(t,e,i){Ye&&Ri();var o=t,n,a;no(()=>{n!==(n=e())&&(a&&(hn(a),a=null),n&&(a=zi(()=>i(o,n))))},65536),Ye&&(o=bt)}function Qs(t,e,i,o,n,a){var w;let s=Ye;Ye&&Ri();var d=ke&&a&&((w=Mt)==null?void 0:w.function[vi]),l,p,f=null;Ye&&bt.nodeType===1&&(f=bt,Ri());var y=Ye?bt:t,u,_=vs;no(()=>{let b=e()||null;var C=n?n():i||b==="svg"?Fu:null;if(b!==l){var T=vs;xp(_),u&&(b===null?hn(u,()=>{u=null,p=null}):b===p?Xr(u):(io(u),Ec(!1))),b&&b!==p&&(u=zi(()=>{if(f=Ye?f:C?document.createElementNS(C,b):document.createElement(b),ke&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),yo(f,f),o){Ye&&bg(b)&&f.append(document.createComment(""));var I=Ye?hi(f):f.appendChild(nn());Ye&&(I===null?oo(!1):gi(I)),o(f,I)}Pt.nodes_end=f,y.before(f)})),l=b,l&&(p=l),Ec(!0),xp(T)}},65536),s&&(oo(!0),gi(y))}var Sp;function kg(t){return Sp=t.target,new wp(t)}var es,or,wp=class{constructor(e){ds(this,es);ds(this,or);var a,s;var i=new Map,o=(d,l)=>{var p=jr(l);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var p;return r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l)))},has(d,l){var p;return l===kl?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var f;return D((f=i.get(l))!=null?f:o(l,p),p),Reflect.set(d,l,p)}});Ma(this,or,(e.hydrate?bp:Jr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Ua(),Ma(this,es,n.$$events);for(let d of Object.keys(Ii(this,or)))d==="$set"||d==="$destroy"||d==="$on"||eo(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=()=>{qs(Ii(this,or))}}$set(e){Ii(this,or).$set(e)}$on(e,i){Ii(this,es)[e]=Ii(this,es)[e]||[];let o=(...n)=>i.call(this,...n);return Ii(this,es)[e].push(o),()=>{Ii(this,es)[e]=Ii(this,es)[e].filter(n=>n!==o)}}$destroy(){Ii(this,or).$destroy()}};es=new WeakMap,or=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=Sp)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ke&&yg(e.hash,d)}})}function Eg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Eg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Pg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Eg(t))&&(o&&(o+=" "),o+=e);return o}function Gl(t){return typeof t=="object"?Pg(t):t!=null?t:""}var Ag=[...`
|
|
48
|
-
\r\f\xA0\v\uFEFF`];function Lg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||Ag.includes(o[s-1]))&&(d===o.length||Ag.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Mg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function Cp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Vg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(Cp)),n&&l.push(...Object.keys(n).map(Cp));var p=0,f=-1;let b=t.length;for(var y=0;y<b;y++){var u=t[y];if(d?u==="/"&&t[y-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[y+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&f===-1)f=y;else if(u===";"||y===b-1){if(f!==-1){var _=Cp(t.substring(p,f).trim());if(!l.includes(_)){u!==";"&&y++;var w=t.substring(p,y).trim();i+=" "+w+";"}}p=y+1,f=-1}}}}return o&&(i+=Mg(o)),n&&(i+=Mg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,a){var s=t.__className;if(Ye||s!==i){var d=Lg(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 Tp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function st(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=Vg(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Tp(t,i==null?void 0:i[0],o[0]),Tp(t,i==null?void 0:i[1],o[1],"important")):Tp(t,i,o));return o}var ja=Symbol("class"),Za=Symbol("style"),Ng=Symbol("is custom element"),Dg=Symbol("is html");function Og(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ne(t,e,i,o){var n=Hg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||o_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[yv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Fg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Te(t,e,i,o,n=!1){var P;var a=Hg(t),s=a[Ng],d=!a[Dg];let l=Ye&&s;l&&oo(!1);var p=e||{},f=t.tagName==="OPTION";for(var y in e)y in i||(i[y]=null);i.class?i.class=Gl(i.class):(o||i[ja])&&(i.class=null),i[Za]&&((P=i.style)!=null||(i.style=null));var u=Fg(t);for(let k in i){let V=i[k];if(f&&k==="value"&&V==null){t.value=t.__value="",p[k]=V;continue}if(k==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,_,V,o,e==null?void 0:e[ja],i[ja]),p[k]=V,p[ja]=i[ja];continue}if(k==="style"){st(t,V,e==null?void 0:e[Za],i[Za]),p[k]=V,p[Za]=i[Za];continue}var w=p[k];if(V!==w){p[k]=V;var b=k[0]+k[1];if(b!=="$$")if(b==="on"){let W={},j="$$"+k,H=k.slice(2);var C=gg(H);if(vg(H)&&(H=H.slice(0,-7),W.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(H,p[j],W),p[j]=null}if(V!=null)if(C)t[`__${H}`]=V,at([H]);else{let Q=function(ie){p[k].call(this,ie)};var M=Q;p[j]=hp(H,t,Q,W)}else C&&(t[`__${H}`]=void 0)}else if(k==="style")Ne(t,k,V);else if(k==="autofocus")vp(t,!!V);else if(!s&&(k==="__value"||k==="value"&&V!=null))t.value=t.__value=V;else if(k==="selected"&&f)Og(t,V);else{var T=k;d||(T=hg(T));var I=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!I)if(a[k]=null,T==="value"||T==="checked"){let W=t,j=e===void 0;if(T==="value"){let H=W.defaultValue;W.removeAttribute(T),W.defaultValue=H,W.value=W.__value=j?H:null}else{let H=W.defaultChecked;W.removeAttribute(T),W.defaultChecked=H,W.checked=j?H:!1}}else t.removeAttribute(k);else I||u.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&Ne(t,T,V,n)}}}return l&&oo(!0),p}function Hg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Ng]:t.nodeName.includes("-"),[Dg]:t.namespaceURI===hv}}var Rg=new Map;function Fg(t){var e=Rg.get(t.nodeName);if(e)return e;Rg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=cc(o);for(var a in i)i[a].set&&e.push(a);o=Qr(o)}return e}function o_(t,e,i){var o;ke&&(e==="srcset"&&n_(t,i)||Ip((o=t.getAttribute(e))!=null?o:"",i)||Kv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Ip(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Bg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function n_(t,e){var i=Bg(t.srcset),o=Bg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Ip(i[s][0],n)||Ip(n,i[s][0])))}var r_=dc?()=>performance.now():()=>Date.now(),$r={tick:t=>(dc?requestAnimationFrame:te)(t),now:()=>r_(),tasks:new Set};function Ug(){let t=$r.now();$r.tasks.forEach(e=>{e.c(t)||($r.tasks.delete(e),e.f())}),$r.tasks.size!==0&&$r.tick(Ug)}function zg(t){let e;return $r.tasks.size===0&&$r.tick(Ug),{promise:new Promise(i=>{$r.tasks.add(e={c:t,f:i})}),abort(){$r.tasks.delete(e)}}}function Pc(t,e){Wl(()=>{t.dispatchEvent(new CustomEvent(e))})}function d_(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 Wg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=d_(n.trim());e[s]=a.trim()}return e}var c_=t=>t;function Ep(t,e,i,o){var M;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",p,f=e.inert,y=e.style.overflow,u,_;function w(){var V;var P=zt,k=Pt;_o(null),to(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{_o(P),to(k)}}var b={is_global:d,in(){var P;if(e.inert=f,!n){_==null||_.abort(),(P=_==null?void 0:_.reset)==null||P.call(_);return}a||u==null||u.abort(),Pc(e,"introstart"),u=kp(e,w(),_,1,()=>{Pc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=y})},out(P){if(!a){P==null||P(),p=void 0;return}e.inert=!0,Pc(e,"outrostart"),_=kp(e,w(),u,0,()=>{Pc(e,"outroend"),P==null||P()})},stop:()=>{u==null||u.abort(),_==null||_.abort()}},C=Pt;if(((M=C.transitions)!=null?M:C.transitions=[]).push(b),n&&ql){var T=d;if(!T){for(var I=C.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&gn(()=>{Ct(()=>b.in())})}}function kp(t,e,i,o,n){var a=o===1;if(us(e)){var s,d=!1;return Jo(()=>{if(!d){var C=e({direction:a?"in":"out"});s=kp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:te,deactivate:te,reset:te,t:()=>o};let{delay:l=0,css:p,tick:f,easing:y=c_}=e;var u=[];if(a&&i===void 0&&(f&&f(0,1),p)){var _=Wg(p(0,1));u.push(_,_)}var w=()=>1-o,b=t.animate(u,{duration:l});return b.onfinish=()=>{var H;var C=(H=i==null?void 0:i.t())!=null?H:1-o;i==null||i.abort();var T=o-C,I=e.duration*Math.abs(T),M=[];if(I>0){var P=!1;if(p)for(var k=Math.ceil(I/16.666666666666668),V=0;V<=k;V+=1){var W=C+T*y(V/k),j=Wg(p(W,1-W));M.push(j),P||(P=j.overflow==="hidden")}P&&(t.style.overflow="hidden"),w=()=>{var Q=b.currentTime;return C+T*y(Q/I)},f&&zg(()=>{if(b.playState!=="running")return!1;var Q=w();return f(Q,1-Q),!0})}b=t.animate(M,{duration:I,fill:"forwards"}),b.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=te)},deactivate:()=>{n=te},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var gs,Xa,Yl,Mc,qg,Lc=class Lc{constructor(e){ds(this,Mc);ds(this,gs,new WeakMap);ds(this,Xa);ds(this,Yl);Ma(this,Yl,e)}observe(e,i){var o=Ii(this,gs).get(e)||new Set;return o.add(i),Ii(this,gs).set(e,o),vv(this,Mc,qg).call(this).observe(e,Ii(this,Yl)),()=>{var n=Ii(this,gs).get(e);n.delete(i),n.size===0&&(Ii(this,gs).delete(e),Ii(this,Xa).unobserve(e))}}};gs=new WeakMap,Xa=new WeakMap,Yl=new WeakMap,Mc=new WeakSet,qg=function(){var e;return(e=Ii(this,Xa))!=null?e:Ma(this,Xa,new ResizeObserver(i=>{for(var o of i){Lc.entries.set(o.target,o);for(var n of Ii(this,gs).get(o.target)||[])n(o)}}))},Rn(Lc,"entries",new WeakMap);var Pp=Lc;var f_=new Pp({box:"border-box"});function Nr(t,e,i){var o=f_.observe(t,()=>i(t[e]));gn(()=>(Ct(()=>i(t[e])),o))}function Kg(t,e){return t===e||(t==null?void 0:t[Ho])===e}function ht(t={},e,i,o){return gn(()=>{var n,a;return $o(()=>{n=a,a=(o==null?void 0:o())||[],Ct(()=>{t!==i(...a)&&(e(t,...a),n&&Kg(i(...n),t)&&e(null,...n))})}),()=>{Jo(()=>{a&&Kg(i(...a),t)&&e(null,...a)})}}),t}function yr(t=!1){let e=Mt,i=e.l.u;if(!i)return;let o=()=>xc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&za(()=>{Qg(e,o),ps(i.b)}),Fe(()=>{let n=Ct(()=>i.m.map(Sv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Fe(()=>{Qg(e,o),ps(i.a)})}function Qg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Bv(e)},set:o=>{i=o}})}};v_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var v_;function qt(t){Mt===null&&Wa("onMount"),Lr&&Mt.l!==null?m_(Mt).m.push(t):Fe(()=>{let e=Ct(t);if(typeof e=="function")return e})}function _n(t){Mt===null&&Wa("onDestroy"),qt(()=>()=>Ct(t))}function m_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function jl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),te;let o=Ct(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ja=[];function nr(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=te){let i=null,o=new Set;function n(d){if(La(t,d)&&(t=d,i)){let l=!Ja.length;for(let p of o)p[1](),Ja.push(p,t);if(l){for(let p=0;p<Ja.length;p+=2)Ja[p][0](Ja[p+1]);Ja.length=0}}}function a(d){n(d(t))}function s(d,l=te){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||te),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function _i(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,y=te,u=()=>{if(f)return;y();let w=e(o?p[0]:p,s,d);a?s(w):y=typeof w=="function"?w:te},_=n.map((w,b)=>jl(w,C=>{p[b]=C,f&=~(1<<b),l&&u()},()=>{f|=1<<b}));return l=!0,u(),function(){ps(_),y(),l=!1}})}function xe(t){let e;return jl(t,i=>e=i)(),e}var Vc=!1,Ap=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:jr(void 0),unsubscribe:te};if(o.store!==t&&!(Ap in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=te;else{var n=!0;o.unsubscribe=jl(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&Ap in i?xe(t):r(o.source)}function De(){let t={};function e(){an(()=>{for(var i in t)t[i].unsubscribe();eo(t,Ap,{enumerable:!1,value:!0})})}return[t,e]}function Mp(t){var e=Vc;try{return Vc=!1,[t(),Vc]}finally{Vc=e}}var x_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Rv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ae(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},x_)}var w_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(us(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];us(n)&&(n=n());let a=Bn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(us(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Bn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ho||e===kl)return!1;for(let i of t.props)if(us(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){us(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ts(...t){return new Proxy({props:t},w_)}function Gg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var W,j;var n=(i&1)!==0,a=!Lr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=Mp(()=>t[e]):p=t[e];var f=Ho in t||kl in t,y=s&&((j=(W=Bn(t,e))==null?void 0:W.set)!=null?j:f&&e in t&&(H=>t[e]=H))||void 0,u=o,_=!0,w=!1,b=()=>(w=!0,_&&(_=!1,d?u=Ct(o):u=o),u);p===void 0&&o!==void 0&&(y&&a&&Vv(e),p=b(),y&&y(p));var C;if(a)C=()=>{var H=t[e];return H===void 0?b():(_=!0,w=!1,H)};else{var T=(n?v:_r)(()=>t[e]);T.f|=131072,C=()=>{var H=r(T);return H!==void 0&&(u=void 0),H===void 0?u:H}}if((i&4)===0)return C;if(y){var I=t.$$legacy;return function(H,Q){return arguments.length>0?((!a||!Q||I||l)&&y(Q?C():H),H):C()}}var M=!1,P=!1,k=jr(p),V=v(()=>{var H=C(),Q=r(k);return M?(M=!1,P=!0,Q):(P=!1,k.v=H)});return s&&r(V),n||(V.equals=Va),function(H,Q){if(Ml!==null&&(M=P,C(),r(k)),arguments.length>0){let ie=Q?r(V):a&&s?fe(H):H;if(!V.equals(ie)){if(M=!0,D(k,ie),w&&u!==void 0&&(u=ie),Gg(V))return H;Ct(()=>r(V))}return H}return Gg(V)?V.v:r(V)}}var S_;typeof HTMLElement=="function"&&(S_=class extends HTMLElement{constructor(e,i,o){super();Rn(this,"$$ctor");Rn(this,"$$s");Rn(this,"$$c");Rn(this,"$$cn",!1);Rn(this,"$$d",{});Rn(this,"$$r",!1);Rn(this,"$$p_d",{});Rn(this,"$$l",{});Rn(this,"$$l_u",new Map);Rn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),$(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=C_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=Lp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=kg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Sc(()=>{$o(()=>{var a;this.$$r=!0;for(let s of Uu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Lp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Lp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Uu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Lp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function C_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Yg="5";var jg,Zg,Xg;typeof window!="undefined"&&((Xg=(Zg=(jg=window.__svelte)!=null?jg:window.__svelte={}).v)!=null?Xg:Zg.v=new Set).add(Yg);var wu=require("@vkontakte/videoplayer-core/es2018"),qQ=require("@vkontakte/videoplayer-core/es2018"),wa=require("@vkontakte/videoplayer-shared/es2018"),j1=require("@vkontakte/videoplayer-statistics/es2018");var Gs=require("@vkontakte/videoplayer-shared/es2018");var I_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Gs.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Gs.VideoQuality.Q_480P,highQualityLimit:Gs.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1,usePuid:!0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null}},Jg=t=>(0,Gs.fillWithDefault)(t,I_),eh=t=>Ka("ui-config",t),Kt=()=>qa("ui-config");var Zl="vk_player_debug_panel_opened";var th="videoplayer",ih="videoplayer";var Dr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},oh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),nh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),rh=new Set(["ShiftRight","ShiftLeft"]);var sh=["TIMELINE"],Xl=[...sh,"GRAPH_BUTTON"],Vp=[...sh,"PLAY_BUTTON"],Jl=[...Xl,"PLAY_BUTTON"];var xr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(xr||{}),js={xs:0,s:1,m:2,l:3,xl:4};var ed=require("@vkontakte/videoplayer-shared/es2018"),ah=require("@vkontakte/videoplayer-core/es2018"),lh=require("@vkontakte/videoplayer-statistics/es2018");var Rc="prod",Zs="1.1.65-dev.b4cd3784.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 dh=Symbol("storeContext"),ch=Symbol("microStoresContext"),uh=(t,e)=>{Ka(dh,t),Ka(ch,e),Rc==="dev"&&(window.app={store:t,microStores:e})},Ce=()=>{let t=qa(dh);return(0,ed.assertNonNullable)(t,"Store context is empty!"),t},ro=()=>{let t=qa(ch);return(0,ed.assertNonNullable)(t,"MicroStores context is empty!"),t},ei=(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()}),ph=(t,e,i,o)=>{var P,k,V,W,j,H;let n=t.info,{width:a,height:s}=xe(i.ui.playerSize),d=(k=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?k:0,l=(W=(V=n.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?W:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${Zs} (core: ${ah.VERSION}, stat: ${lh.VERSION}, shared: ${ed.VERSION})`,y=xe(i.state.errorLog$),u=y.length?`
|
|
49
|
-
`+
|
|
50
|
-
`,
|
|
51
|
-
`,ce=`Trace: ${(
|
|
52
|
-
`;return
|
|
53
|
-
`):void 0,_=i.state.isAudioDisabled?"disabled":xe(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),
|
|
54
|
-
`)},fh=(t,e,i)=>{var W,j,H,Q;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),s={version:Zs,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(),y=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(y&&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 b=o.liveLatency$.getValue();b&&(s.liveLatency=b);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let I=xe(i.vsid);typeof I=="string"&&(s.vsid=I);let M=(W=t.info.currentVideoStream$.getValue())==null?void 0:W.codec;M&&(s.videoCodec=M);let P=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.codec;P&&(s.audioCodec=P),((H=t.info.currentVideoStream$.getValue())==null?void 0:H.hdr)&&(s.hdr=!0);let V=(Q=t.info.currentAudioStream$.getValue())==null?void 0:Q.language;return V&&(s.audioLanguage=V),s},mh=(t,e)=>Xs(t,e,"mp4"),vh=t=>!t.type,gh=t=>!!t.type,hh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Bc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var Ei=require("@vkontakte/videoplayer-shared/es2018"),jE=require("@vkontakte/videoplayer-core/es2018"),_h="vk_player_prefer_traffic_saving_enabled",bh="vk_player_preferred_volume",$h="vk_player_prefer_volume_mute",Np="vk_player_preferred_quality",Rp="vk_player_preferred_default_quality_settings",Bp="vk_player_preferred_quality_settings_by_video",yh="vk_player_preferred_stream_language",xh="vk_player_preferred_rate",wh="vk_player_preferred_autoplay_next",Sh=t=>t>1?1:t<0?0:t,Dp=t=>Ei.safeStorage.set(bh,Sh(t).toString(10)),Dc=()=>{let t=Ei.safeStorage.get(bh);return(0,Ei.isNullable)(t)?void 0:Sh(parseFloat(t))},Op=(t,e)=>Ei.safeStorage.set(Np,JSON.stringify({videoId:t,value:e})),id=()=>Ei.safeStorage.remove(Np),Hp=t=>{let e=Ei.safeStorage.get(Np);if((0,Ei.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){id();return}return o},Fp=(t,e)=>{e?Ei.safeStorage.set(t,"true"):Ei.safeStorage.remove(t)},Up=t=>Ei.safeStorage.get(t)==="true",zp=t=>Fp($h,t),Ch=()=>Up($h),td=t=>Fp(_h,t),Wp=()=>Up(_h),Th=()=>Ei.safeStorage.get(yh),qp=t=>Ei.safeStorage.set(yh,t),Ih=t=>Ei.safeStorage.set(xh,JSON.stringify({rate:t})),kh=()=>{let t=Ei.safeStorage.get(xh);if((0,Ei.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Eh=t=>Fp(wh,t),Ph=()=>Up(wh),k_=()=>{let t=f=>{Ei.safeStorage.set(Rp,JSON.stringify(f))},e=()=>{try{let f=Ei.safeStorage.get(Rp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Ei.safeStorage.get(Bp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Ei.safeStorage.set(Bp,JSON.stringify(f))},n=f=>{p(f);let y=f?i():null;if(y&&(y==null?void 0:y.videoId)===f)return{...y,appliesTo:"to-video"};y&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Ei.safeStorage.remove(Bp)},s=()=>{Ei.safeStorage.remove(Rp)},d=(f,y="as-default")=>{f.type==="exact_quality"?o(f):y==="as-default"?t(f):o(f)},l=f=>{let y=n(f);if(y){switch(y.type){case"traffic_saving":td(!0);break;case"exact_quality":Op(f,y.quality)}a(),s()}},p=f=>{let y=Hp(f);if(y){o({type:"exact_quality",videoId:f,quality:y});return}Wp()&&t({type:"traffic_saving",videoId:f}),td(!1),id()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Ah,migrateSettingsToLegacyWay:Mh,savePreferredQualitySettings:Oc,savePreferredDefaultQualitySettings:ZE,removePreferredQualitySettingsByVideo:XE,getPreferredDefaultQualitySettings:Hc}=k_();var Ym=require("@vkontakte/videoplayer-core/es2018");var E_=ye('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function od(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=E_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),$(t,o)}var el=require("@vkontakte/videoplayer-shared/es2018");var P_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_volume:"\u0417\u0432\u0443\u043A",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
|
|
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 Mt=null;function Gl(t){Mt=t}var fn=null;function Yl(t){fn=t}function Ya(t){return $p("getContext").get(t)}function ja(t,e){let i=$p("setContext");return Le&&Ct(()=>hp(e,null,!0)),i.set(t,e),e}function Zl(){return $p("getAllContexts")}function O(t,e=!1,i){var o=Mt={p:Mt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};qr&&!e&&(Mt.l={s:null,u:null,r1:[],r2:zi(!1)}),mn(()=>{o.d=!0}),Le&&(Mt.function=i,fn=i)}function H(t){var r,d;let e=Mt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=kt,o=Ht;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];ro(a.effect),yo(a.reaction),Cn(a.fn)}}finally{ro(i),yo(o)}}Mt=e.p,Le&&(fn=(d=(r=e.p)==null?void 0:r.function)!=null?d:null),e.m=!0}return t||{}}function Qr(){return!qr||Mt!==null&&Mt.l===null}function $p(t){var e;return Mt===null&&Ga(t),(e=Mt.c)!=null?e:Mt.c=new Map(D0(Mt)||void 0)}function D0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var O0=/\r/g;function wg(t){t=t.replace(O0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Sg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var H0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Cg(t){return H0.includes(t)}var F0=["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 U0={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 Tg(t){var e;return t=t.toLowerCase(),(e=U0[t])!=null?e:t}var Lw=[...F0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var z0=["touchstart","touchmove"];function Ig(t){return z0.includes(t)}var W0=["textarea","script","style","title"];function Eg(t){return W0.includes(t)}function yp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var kg=new Map;function Pg(t,e){var i=kg.get(t);i||(i=new Set,kg.set(t,i)),i.add(e)}function xp(t,e){if(e){let i=document.body;t.autofocus=!0,an(()=>{document.activeElement===i&&t.focus()})}}function Xl(t){var e=Ht,i=kt;yo(null),ro(null);try{return t()}finally{yo(e),ro(i)}}var wp=new Set,Vc=new Set;function ea(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 Sp(t,e,i,o={}){function n(a){if(o.capture||Za.call(e,a),!a.cancelBubble)return Xl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?an(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Et(t,e,i,o,n){var a={capture:o,passive:n},r=Sp(t,e,i,a);(e===document.body||e===window||e===document)&&mn(()=>{e.removeEventListener(t,r,a)})}function dt(t){for(var e=0;e<t.length;e++)wp.add(t[e]);for(var i of Vc)i(t)}function Za(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],a=n[0]||t.target,r=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&&(r=l)}if(a=n[r]||t.target,a!==e){no(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Ht,b=kt;yo(null),ro(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(Sr(y)){var[C,...T]=y;C.apply(a,[t,...T])}else y.call(a,t)}catch(M){u?_.push(M):u=M}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let M of _)queueMicrotask(()=>{throw M});throw u}}finally{t.__root=e,delete t.currentTarget,yo(f),ro(b)}}}var K0;function Ag(){K0=void 0}function Xa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function So(t,e){var i=kt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(je)return So(vt,null),vt;n===void 0&&(n=Xa(a?t:"<!>"+t),i||(n=mi(n)));var r=o||Ul?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=mi(r),l=r.lastChild;So(d,l)}else So(r,r);return r}}function Se(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,r;return()=>{if(je)return So(vt,null),vt;if(!r){var d=Xa(a),l=mi(d);if(n)for(r=document.createDocumentFragment();mi(l);)r.appendChild(mi(l));else r=mi(l)}var p=r.cloneNode(!0);if(n){var f=mi(p),b=p.lastChild;So(f,b)}else So(p,p);return p}}function Gr(t=""){if(!je){var e=un(t+"");return So(e,e),e}var i=vt;return i.nodeType!==3&&(i.before(i=un()),fi(i)),So(i,i),i}function He(){if(je)return So(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=un();return t.append(e,i),So(e,i),t}function $(t,e){if(je){kt.nodes_end=vt,Di();return}t!==null&&t.before(e)}var Jl=!0;function Rc(t){Jl=t}function _e(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function us(t,e){return Lg(t,e)}function Tp(t,e){var r;xc(),e.intro=(r=e.intro)!=null?r:!1;let i=e.target,o=je,n=vt;try{for(var a=mi(i);a&&(a.nodeType!==8||a.data!==Ss);)a=Vo(a);if(!a)throw os;ao(!0),fi(a),Di();let d=Lg(t,{...e,anchor:a});if(vt===null||vt.nodeType!==8||vt.data!==Ws)throw js(),os;return ao(!1),d}catch(d){if(d===os)return e.recover===!1&&Fv(),xc(),zl(i),ao(!1),us(t,e);throw d}finally{ao(o),fi(n),Ag()}}var Ja=new Map;function Lg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:r=!0}){xc();var d=new Set,l=b=>{for(var u=0;u<b.length;u++){var _=b[u];if(!d.has(_)){d.add(_);var w=Ig(_);e.addEventListener(_,Za,{passive:w});var y=Ja.get(_);y===void 0?(document.addEventListener(_,Za,{passive:w}),Ja.set(_,1)):Ja.set(_,y+1)}}};l(Nl(wp)),Vc.add(l);var p=void 0,f=$g(()=>{var b=i!=null?i:e.appendChild(un());return Wi(()=>{if(a){O({});var u=Mt;u.c=a}n&&(o.$$events=n),je&&So(b,null),Jl=r,p=t(b,o)||{},Jl=!0,je&&(kt.nodes_end=vt),a&&H()}),()=>{var w;for(var u of d){e.removeEventListener(u,Za);var _=Ja.get(u);--_===0?(document.removeEventListener(u,Za),Ja.delete(u)):Ja.set(u,_)}Vc.delete(l),b!==i&&((w=b.parentNode)==null||w.removeChild(b))}});return Cp.set(p,f),p}var Cp=new WeakMap;function ta(t,e){let i=Cp.get(t);return i?(Cp.delete(t),i(e)):(Le&&og(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){je&&i===0&&Di();var n=t,a=null,r=null,d=Pi,l=i>0?65536:0,p=!1;let f=(u,_=!0)=>{p=!0,b(_,u)},b=(u,_)=>{if(d===(d=u))return;let w=!1;if(je&&o!==-1){if(i===0){let C=n.data;C===Ss?o=0:C===zs?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=za(),fi(n),ao(!1),w=!0,o=-1)}d?(a?cs(a):_&&(a=Wi(()=>_(n))),r&&Tn(r,()=>{r=null})):(r?cs(r):_&&(r=Wi(()=>_(n,[i+1,o]))),a&&Tn(a,()=>{a=null})),w&&ao(!0)};lo(()=>{p=!1,e(f),p||b(null,null)},l),je&&(n=vt)}function ia(t,e,i){je&&Di();var o=t,n=Pi,a,r=Qr()?Rv:Na;lo(()=>{r(n,n=e())&&(a&&Tn(a),a=Wi(()=>i(o)))}),je&&(o=vt)}var ks=null;function kp(t){ks=t}function ed(t,e){return e}function j0(t,e,i,o){for(var n=[],a=e.length,r=0;r<a;r++)Ac(e[r].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;zl(l),l.append(i),o.clear(),Es(t,e[0].prev,e[a-1].next)}gp(n,()=>{for(var p=0;p<a;p++){var f=e[p];d||(o.delete(f.k),Es(t,f.prev,f.next)),so(f.e,!d)}})}function $i(t,e,i,o,n,a=null){var r=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var p=t;r=je?fi(mi(p)):p.appendChild(un())}je&&Di();var f=null,b=!1,u=Ir(()=>{var _=i();return Sr(_)?_:_==null?[]:Nl(_)});lo(()=>{var _=s(u),w=_.length;if(b&&w===0)return;b=w===0;let y=!1;if(je){var C=r.data===zs;C!==(w===0)&&(r=za(),fi(r),ao(!1),y=!0)}if(je){for(var T=null,I,M=0;M<w;M++){if(vt.nodeType===8&&vt.data===Ws){r=vt,y=!0,ao(!1);break}var P=_[M],E=o(P,M);I=Bg(vt,d,T,null,P,E,M,n,e,i),d.items.set(E,I),T=I}w>0&&fi(za())}je||Z0(_,d,r,n,e,o,i),a!==null&&(w===0?f?cs(f):f=Wi(()=>a(r)):f!==null&&Tn(f,()=>{f=null})),y&&ao(!0),s(u)}),je&&(r=vt)}function Z0(t,e,i,o,n,a,r){var le,Me,Be,ge;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,f=e.items,b=e.first,u=b,_,w=null,y,C=[],T=[],I,M,P,E;if(d)for(E=0;E<p;E+=1)I=t[E],M=a(I,E),P=f.get(M),P!==void 0&&((le=P.a)==null||le.measure(),(y!=null?y:y=new Set).add(P));for(E=0;E<p;E+=1){if(I=t[E],M=a(I,E),P=f.get(M),P===void 0){var R=u?u.e.nodes_start:i;w=Bg(R,e,w,w===null?e.first:w.next,I,M,E,o,n,r),f.set(M,w),C=[],T=[],u=w.next;continue}if(l&&X0(P,I,E,n),(P.e.f&8192)!==0&&(cs(P.e),d&&((Me=P.a)==null||Me.unfix(),(y!=null?y:y=new Set).delete(P))),P!==u){if(_!==void 0&&_.has(P)){if(C.length<T.length){var z=T[0],q;w=z.prev;var U=C[0],Y=C[C.length-1];for(q=0;q<C.length;q+=1)Vg(C[q],z,i);for(q=0;q<T.length;q+=1)_.delete(T[q]);Es(e,U.prev,Y.next),Es(e,w,U),Es(e,Y,z),u=z,w=Y,E-=1,C=[],T=[]}else _.delete(P),Vg(P,u,i),Es(e,P.prev,P.next),Es(e,P,w===null?e.first:w.next),Es(e,w,P),w=P;continue}for(C=[],T=[];u!==null&&u.k!==M;)(u.e.f&8192)===0&&(_!=null?_:_=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;P=u}C.push(P),w=P,u=P.next}if(u!==null||_!==void 0){for(var se=_===void 0?[]:Nl(_);u!==null;)(u.e.f&8192)===0&&se.push(u),u=u.next;var Q=se.length;if(Q>0){var de=(n&4)!==0&&p===0?i:null;if(d){for(E=0;E<Q;E+=1)(Be=se[E].a)==null||Be.measure();for(E=0;E<Q;E+=1)(ge=se[E].a)==null||ge.fix()}j0(e,se,de,f)}}d&&an(()=>{var ce;if(y!==void 0)for(P of y)(ce=P.a)==null||ce.apply()}),kt.first=e.first&&e.first.e,kt.last=w&&w.e}function X0(t,e,i,o){(o&1)!==0&&Ha(t.v,e),(o&2)!==0?Ha(t.i,i):t.i=i}function Bg(t,e,i,o,n,a,r,d,l,p){var f=ks,b=(l&1)!==0,u=(l&16)===0,_=b?u?ls(n):zi(n):n,w=(l&2)===0?r:zi(r);Le&&b&&(_.debug=()=>{var C=typeof w=="number"?r:w.v;p()[C]});var y={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};ks=y;try{return y.e=Wi(()=>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{ks=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 r=Vo(a);n.before(a),a=r}}function Es(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function J0(t,e,i){var a,r;if(!e||e===wg(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}`:(r=fn)!=null&&r[pi]&&(o=`in ${fn[pi]}`),ig(yp(o))}function td(t,e,i,o,n){var a=t,r="",d;lo(()=>{var l;if(r===(r=(l=e())!=null?l:"")){je&&Di();return}d!==void 0&&(so(d),d=void 0),r!==""&&(d=Wi(()=>{if(je){for(var p=vt.data,f=Di(),b=f;f!==null&&(f.nodeType!==8||f.data!=="");)b=f,f=Vo(f);if(f===null)throw js(),os;Le&&!n&&J0(f.parentNode,p,r),So(vt,b),a=fi(f);return}var u=r+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var _=Xa(u);if((i||o)&&(_=mi(_)),So(mi(_),_.lastChild),i||o)for(;mi(_);)a.before(mi(_));else a.before(_)}))})}function be(t,e,...i){var o=t,n=oe,a;lo(()=>{n!==(n=e())&&(a&&(so(a),a=null),Le&&n==null&&Uv(),a=Wi(()=>n(o,...i)))},65536),je&&(o=vt)}function yi(t,e,i){je&&Di();var o=t,n,a;lo(()=>{n!==(n=e())&&(a&&(Tn(a),a=null),n&&(a=Wi(()=>i(o,n))))},65536),je&&(o=vt)}function oa(t,e,i,o,n,a){var w;let r=je;je&&Di();var d=Le&&a&&((w=Mt)==null?void 0:w.function[pi]),l,p,f=null;je&&vt.nodeType===1&&(f=vt,Di());var b=je?vt:t,u,_=ks;lo(()=>{let y=e()||null;var C=n?n():i||y==="svg"?Gu:null;if(y!==l){var T=ks;kp(_),u&&(y===null?Tn(u,()=>{u=null,p=null}):y===p?cs(u):(so(u),Rc(!1))),y&&y!==p&&(u=Wi(()=>{if(f=je?f:C?document.createElementNS(C,y):document.createElement(y),Le&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),So(f,f),o){je&&Eg(y)&&f.append(document.createComment(""));var I=je?mi(f):f.appendChild(un());je&&(I===null?ao(!1):fi(I)),o(f,I)}kt.nodes_end=f,b.before(f)})),l=y,l&&(p=l),Rc(!0),kp(T)}},65536),r&&(ao(!0),fi(b))}var Ap;function Ng(t){return Ap=t.target,new Pp(t)}var ps,pr,Pp=class{constructor(e){ws(this,ps);ws(this,pr);var a,r;var i=new Map,o=(d,l)=>{var p=ls(l);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var p;return s((p=i.get(l))!=null?p:o(l,Reflect.get(d,l)))},has(d,l){var p;return l===Bl?!0:(s((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var f;return D((f=i.get(l))!=null?f:o(l,p),p),Reflect.set(d,l,p)}});Ba(this,pr,(e.hydrate?Tp:us)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((r=e==null?void 0:e.props)!=null&&r.$$host)||e.sync===!1)&&Ka(),Ba(this,ps,n.$$events);for(let d of Object.keys(ki(this,pr)))d==="$set"||d==="$destroy"||d==="$on"||no(this,d,{get(){return ki(this,pr)[d]},set(l){ki(this,pr)[d]=l},enumerable:!0});ki(this,pr).$set=d=>{Object.assign(n,d)},ki(this,pr).$destroy=()=>{ta(ki(this,pr))}}$set(e){ki(this,pr).$set(e)}$on(e,i){ki(this,ps)[e]=ki(this,ps)[e]||[];let o=(...n)=>i.call(this,...n);return ki(this,ps)[e].push(o),()=>{ki(this,ps)[e]=ki(this,ps)[e].filter(n=>n!==o)}}$destroy(){ki(this,pr).$destroy()}};ps=new WeakMap,pr=new WeakMap;function W(t,e){an(()=>{var n,a,r;var i=t.getRootNode(),o=i.host?i:(r=(n=i.head)!=null?n:i.ownerDocument.head)!=null?r:(a=Ap)==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),Le&&Pg(e.hash,d)}})}function Dg(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=Dg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Og(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Dg(t))&&(o&&(o+=" "),o+=e);return o}function id(t){return typeof t=="object"?Og(t):t!=null?t:""}var Hg=[...`
|
|
48
|
+
\r\f\xA0\v\uFEFF`];function Ug(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,r=0;(r=o.indexOf(n,r))>=0;){var d=r+a;(r===0||Hg.includes(o[r-1]))&&(d===o.length||Hg.includes(o[d]))?o=(r===0?"":o.substring(0,r))+o.substring(d+1):r=d}}return o===""?null:o}function Fg(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 Mp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function zg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,r=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(Mp)),n&&l.push(...Object.keys(n).map(Mp));var p=0,f=-1;let y=t.length;for(var b=0;b<y;b++){var u=t[b];if(d?u==="/"&&t[b-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[b+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?r++:u===")"&&r--,!d&&a===!1&&r===0){if(u===":"&&f===-1)f=b;else if(u===";"||b===y-1){if(f!==-1){var _=Mp(t.substring(p,f).trim());if(!l.includes(_)){u!==";"&&b++;var w=t.substring(p,b).trim();i+=" "+w+";"}}p=b+1,f=-1}}}}return o&&(i+=Fg(o)),n&&(i+=Fg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,a){var r=t.__className;if(je||r!==i){var d=Ug(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 Lp(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 at(t,e,i,o){var n=t.__style;if(je||n!==e){var a=zg(e,o);(!je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Lp(t,i==null?void 0:i[0],o[0]),Lp(t,i==null?void 0:i[1],o[1],"important")):Lp(t,i,o));return o}var el=Symbol("class"),tl=Symbol("style"),Kg=Symbol("is custom element"),Qg=Symbol("is html");function Gg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ne(t,e,i,o){var n=Yg(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||s_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Pv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&jg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ke(t,e,i,o,n=!1){var P;var a=Yg(t),r=a[Kg],d=!a[Qg];let l=je&&r;l&&ao(!1);var p=e||{},f=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=id(i.class):(o||i[el])&&(i.class=null),i[tl]&&((P=i.style)!=null||(i.style=null));var u=jg(t);for(let E in i){let R=i[E];if(f&&E==="value"&&R==null){t.value=t.__value="",p[E]=R;continue}if(E==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,_,R,o,e==null?void 0:e[el],i[el]),p[E]=R,p[el]=i[el];continue}if(E==="style"){at(t,R,e==null?void 0:e[tl],i[tl]),p[E]=R,p[tl]=i[tl];continue}var w=p[E];if(R!==w){p[E]=R;var y=E[0]+E[1];if(y!=="$$")if(y==="on"){let z={},q="$$"+E,U=E.slice(2);var C=Cg(U);if(Sg(U)&&(U=U.slice(0,-7),z.capture=!0),!C&&w){if(R!=null)continue;t.removeEventListener(U,p[q],z),p[q]=null}if(R!=null)if(C)t[`__${U}`]=R,dt([U]);else{let Y=function(se){p[E].call(this,se)};var M=Y;p[q]=Sp(U,t,Y,z)}else C&&(t[`__${U}`]=void 0)}else if(E==="style")Ne(t,E,R);else if(E==="autofocus")xp(t,!!R);else if(!r&&(E==="__value"||E==="value"&&R!=null))t.value=t.__value=R;else if(E==="selected"&&f)Gg(t,R);else{var T=E;d||(T=Tg(T));var I=T==="defaultValue"||T==="defaultChecked";if(R==null&&!r&&!I)if(a[E]=null,T==="value"||T==="checked"){let z=t,q=e===void 0;if(T==="value"){let U=z.defaultValue;z.removeAttribute(T),z.defaultValue=U,z.value=z.__value=q?U:null}else{let U=z.defaultChecked;z.removeAttribute(T),z.defaultChecked=U,z.checked=q?U:!1}}else t.removeAttribute(E);else I||u.includes(T)&&(r||typeof R!="string")?t[T]=R:typeof R!="function"&&Ne(t,T,R,n)}}}return l&&ao(!0),p}function Yg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Kg]:t.nodeName.includes("-"),[Qg]:t.namespaceURI===Tv}}var Wg=new Map;function jg(t){var e=Wg.get(t.nodeName);if(e)return e;Wg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=gc(o);for(var a in i)i[a].set&&e.push(a);o=rs(o)}return e}function s_(t,e,i){var o;Le&&(e==="srcset"&&a_(t,i)||Vp((o=t.getAttribute(e))!=null?o:"",i)||tg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Vp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function qg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function a_(t,e){var i=qg(t.srcset),o=qg(e);return o.length===i.length&&o.every(([n,a],r)=>a===i[r][1]&&(Vp(i[r][0],n)||Vp(n,i[r][0])))}var l_=vc?()=>performance.now():()=>Date.now(),kr={tick:t=>(vc?requestAnimationFrame:oe)(t),now:()=>l_(),tasks:new Set};function Zg(){let t=kr.now();kr.tasks.forEach(e=>{e.c(t)||(kr.tasks.delete(e),e.f())}),kr.tasks.size!==0&&kr.tick(Zg)}function Xg(t){let e;return kr.tasks.size===0&&kr.tick(Zg),{promise:new Promise(i=>{kr.tasks.add(e={c:t,f:i})}),abort(){kr.tasks.delete(e)}}}function Bc(t,e){Xl(()=>{t.dispatchEvent(new CustomEvent(e))})}function p_(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 Jg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let r=p_(n.trim());e[r]=a.trim()}return e}var f_=t=>t;function Bp(t,e,i,o){var M;var n=(t&1)!==0,a=(t&2)!==0,r=n&&a,d=(t&4)!==0,l=r?"both":n?"in":"out",p,f=e.inert,b=e.style.overflow,u,_;function w(){var R;var P=Ht,E=kt;yo(null),ro(null);try{return p!=null?p:p=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{yo(P),ro(E)}}var y={is_global:d,in(){var P;if(e.inert=f,!n){_==null||_.abort(),(P=_==null?void 0:_.reset)==null||P.call(_);return}a||u==null||u.abort(),Bc(e,"introstart"),u=Rp(e,w(),_,1,()=>{Bc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=b})},out(P){if(!a){P==null||P(),p=void 0;return}e.inert=!0,Bc(e,"outrostart"),_=Rp(e,w(),u,0,()=>{Bc(e,"outroend"),P==null||P()})},stop:()=>{u==null||u.abort(),_==null||_.abort()}},C=kt;if(((M=C.transitions)!=null?M:C.transitions=[]).push(y),n&&Jl){var T=d;if(!T){for(var I=C.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&Cn(()=>{Ct(()=>y.in())})}}function Rp(t,e,i,o,n){var a=o===1;if(Cs(e)){var r,d=!1;return an(()=>{if(!d){var C=e({direction:a?"in":"out"});r=Rp(t,C,i,o,n)}}),{abort:()=>{d=!0,r==null||r.abort()},deactivate:()=>r.deactivate(),reset:()=>r.reset(),t:()=>r.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:p,tick:f,easing:b=f_}=e;var u=[];if(a&&i===void 0&&(f&&f(0,1),p)){var _=Jg(p(0,1));u.push(_,_)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var U;var C=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var T=o-C,I=e.duration*Math.abs(T),M=[];if(I>0){var P=!1;if(p)for(var E=Math.ceil(I/16.666666666666668),R=0;R<=E;R+=1){var z=C+T*b(R/E),q=Jg(p(z,1-z));M.push(q),P||(P=q.overflow==="hidden")}P&&(t.style.overflow="hidden"),w=()=>{var Y=y.currentTime;return C+T*b(Y/I)},f&&Xg(()=>{if(y.playState!=="running")return!1;var Y=w();return f(Y,1-Y),!0})}y=t.animate(M,{duration:I,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Ps,il,od,Dc,eh,Oc=class Oc{constructor(e){ws(this,Dc);ws(this,Ps,new WeakMap);ws(this,il);ws(this,od);Ba(this,od,e)}observe(e,i){var o=ki(this,Ps).get(e)||new Set;return o.add(i),ki(this,Ps).set(e,o),Sv(this,Dc,eh).call(this).observe(e,ki(this,od)),()=>{var n=ki(this,Ps).get(e);n.delete(i),n.size===0&&(ki(this,Ps).delete(e),ki(this,il).unobserve(e))}}};Ps=new WeakMap,il=new WeakMap,od=new WeakMap,Dc=new WeakSet,eh=function(){var e;return(e=ki(this,il))!=null?e:Ba(this,il,new ResizeObserver(i=>{for(var o of i){Oc.entries.set(o.target,o);for(var n of ki(this,Ps).get(o.target)||[])n(o)}}))},Kn(Oc,"entries",new WeakMap);var Np=Oc;var g_=new Np({box:"border-box"});function Yr(t,e,i){var o=g_.observe(t,()=>i(t[e]));Cn(()=>(Ct(()=>i(t[e])),o))}function th(t,e){return t===e||(t==null?void 0:t[Yo])===e}function it(t={},e,i,o){return Cn(()=>{var n,a;return wo(()=>{n=a,a=(o==null?void 0:o())||[],Ct(()=>{t!==i(...a)&&(e(t,...a),n&&th(i(...n),t)&&e(null,...n))})}),()=>{an(()=>{a&&th(i(...a),t)&&e(null,...a)})}}),t}function Pr(t=!1){let e=Mt,i=e.l.u;if(!i)return;let o=()=>Ec(e.s);if(t){let n=0,a={},r=v(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>s(r)}i.b.length&&Qa(()=>{ih(e,o),Ts(i.b)}),Ue(()=>{let n=Ct(()=>i.m.map(Lv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ue(()=>{ih(e,o),Ts(i.a)})}function ih(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}if(Le){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;qv(e)},set:o=>{i=o}})}};__=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var __;function Nt(t){Mt===null&&Ga("onMount"),qr&&Mt.l!==null?h_(Mt).m.push(t):Ue(()=>{let e=Ct(t);if(typeof e=="function")return e})}function In(t){Mt===null&&Ga("onDestroy"),Nt(()=>()=>Ct(t))}function h_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function nd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=Ct(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var ol=[];function fr(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=oe){let i=null,o=new Set;function n(d){if(Na(t,d)&&(t=d,i)){let l=!ol.length;for(let p of o)p[1](),ol.push(p,t);if(l){for(let p=0;p<ol.length;p+=2)ol[p][0](ol[p+1]);ol.length=0}}}function a(d){n(d(t))}function r(d,l=oe){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:r}}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 fr(i,(r,d)=>{let l=!1,p=[],f=0,b=oe,u=()=>{if(f)return;b();let w=e(o?p[0]:p,r,d);a?r(w):b=typeof w=="function"?w:oe},_=n.map((w,y)=>nd(w,C=>{p[y]=C,f&=~(1<<y),l&&u()},()=>{f|=1<<y}));return l=!0,u(),function(){Ts(_),b(),l=!1}})}function xe(t){let e;return nd(t,i=>e=i)(),e}var Hc=!1,Dp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:ls(void 0),unsubscribe:oe};if(o.store!==t&&!(Dp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=nd(t,r=>{n?o.source.v=r:D(o.source,r)}),n=!1}return t&&Dp in i?xe(t):s(o.source)}function De(){let t={};function e(){mn(()=>{for(var i in t)t[i].unsubscribe();no(t,Dp,{enumerable:!1,value:!0})})}return[t,e]}function Op(t){var e=Hc;try{return Hc=!1,[t(),Hc]}finally{Hc=e}}var C_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Le&&Wv(`${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 Ve(t,e,i){return new Proxy(Le?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},C_)}var T_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Cs(n)&&(n=n());let a=Qn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Qn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Yo||e===Bl)return!1;for(let i of t.props)if(Cs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Cs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function fs(...t){return new Proxy({props:t},T_)}function oh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var z,q;var n=(i&1)!==0,a=!qr||(i&2)!==0,r=(i&8)!==0,d=(i&16)!==0,l=!1,p;r?[p,l]=Op(()=>t[e]):p=t[e];var f=Yo in t||Bl in t,b=r&&((q=(z=Qn(t,e))==null?void 0:z.set)!=null?q:f&&e in t&&(U=>t[e]=U))||void 0,u=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?u=Ct(o):u=o),u);p===void 0&&o!==void 0&&(b&&a&&zv(e),p=y(),b&&b(p));var C;if(a)C=()=>{var U=t[e];return U===void 0?y():(_=!0,w=!1,U)};else{var T=(n?v:Ir)(()=>t[e]);T.f|=131072,C=()=>{var U=s(T);return U!==void 0&&(u=void 0),U===void 0?u:U}}if((i&4)===0)return C;if(b){var I=t.$$legacy;return function(U,Y){return arguments.length>0?((!a||!Y||I||l)&&b(Y?C():U),U):C()}}var M=!1,P=!1,E=ls(p),R=v(()=>{var U=C(),Y=s(E);return M?(M=!1,P=!0,Y):(P=!1,E.v=U)});return r&&s(R),n||(R.equals=Da),function(U,Y){if(Hl!==null&&(M=P,C(),s(E)),arguments.length>0){let se=Y?s(R):a&&r?ve(U):U;if(!R.equals(se)){if(M=!0,D(E,se),w&&u!==void 0&&(u=se),oh(R))return U;Ct(()=>s(R))}return U}return oh(R)?R.v:s(R)}}var I_;typeof HTMLElement=="function"&&(I_=class extends HTMLElement{constructor(e,i,o){super();Kn(this,"$$ctor");Kn(this,"$$s");Kn(this,"$$c");Kn(this,"$$cn",!1);Kn(this,"$$d",{});Kn(this,"$$r",!1);Kn(this,"$$p_d",{});Kn(this,"$$l",{});Kn(this,"$$l_u",new Map);Kn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return r=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),$(r,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=E_(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 r=this.$$g_p(a.name);r in this.$$d||(this.$$d[r]=Hp(r,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=Ng({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Pc(()=>{wo(()=>{var a;this.$$r=!0;for(let r of Yu(this.$$c)){if(!((a=this.$$p_d[r])!=null&&a.reflect))continue;this.$$d[r]=this.$$c[r];let d=Hp(r,this.$$d[r],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,d)}this.$$r=!1})});for(let a in this.$$l)for(let r of this.$$l[a]){let d=this.$$c.$on(a,r);this.$$l_u.set(r,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Hp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Yu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Hp(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 E_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var nh="5";var rh,sh,ah;typeof window!="undefined"&&((ah=(sh=(rh=window.__svelte)!=null?rh:window.__svelte={}).v)!=null?ah:sh.v=new Set).add(nh);var xl=require("@vkontakte/videoplayer-core/es2018"),iG=require("@vkontakte/videoplayer-core/es2018"),La=require("@vkontakte/videoplayer-shared/es2018"),i0=require("@vkontakte/videoplayer-statistics/es2018");var na=require("@vkontakte/videoplayer-shared/es2018");var P_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:na.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:na.VideoQuality.Q_480P,highQualityLimit:na.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null}},lh=t=>(0,na.fillWithDefault)(t,P_),dh=t=>ja("ui-config",t),Ut=()=>Ya("ui-config");var rd="vk_player_debug_panel_opened";var ch="videoplayer",uh="videoplayer";var jr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ph=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),fh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),mh=new Set(["ShiftRight","ShiftLeft"]);var vh=["TIMELINE"],sd=[...vh,"GRAPH_BUTTON"],Fp=[...vh,"PLAY_BUTTON"],ad=[...sd,"PLAY_BUTTON"];var Ar=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Ar||{}),sa={xs:0,s:1,m:2,l:3,xl:4};var ld=require("@vkontakte/videoplayer-shared/es2018"),gh=require("@vkontakte/videoplayer-core/es2018"),hh=require("@vkontakte/videoplayer-statistics/es2018");var Fc="prod",aa="1.1.65-dev.d779f3ab.0";var la=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var _h=Symbol("storeContext"),bh=Symbol("microStoresContext"),$h=(t,e)=>{ja(_h,t),ja(bh,e),Fc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Ya(_h);return(0,ld.assertNonNullable)(t,"Store context is empty!"),t},co=()=>{let t=Ya(bh);return(0,ld.assertNonNullable)(t,"MicroStores context is empty!"),t},Xt=(t,e)=>zc(t,t.getValue(),e),zc=(t,e,i)=>fr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),yh=(t,e,i,o)=>{var R,z,q,U,Y,se,Q,de;let n=t.info,{width:a,height:r}=xe(i.ui.playerSize),d=(z=(R=n.throughputEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?z:0,l=(U=(q=n.rttEstimation$.getValue())==null?void 0:q.toFixed(0))!=null?U:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${aa} (core: ${gh.VERSION}, stat: ${hh.VERSION}, shared: ${ld.VERSION})`,b=xe(i.state.errorLog$),u=b.length?`
|
|
49
|
+
`+b.map((le,Me)=>{var Ae;let Be=`${Me}) Type: ${le.id}
|
|
50
|
+
`,ge=`Message: ${le.message} (${le.thrown})
|
|
51
|
+
`,ce=`Trace: ${(Ae=le.thrown)==null?void 0:Ae.stack}
|
|
52
|
+
`;return Be+ge+ce}).join(`
|
|
53
|
+
`):void 0,_=i.state.isAudioDisabled?"disabled":xe(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(Y=w==null?void 0:w.codec)!=null?Y:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&C.push(`Audio: ${(se=y==null?void 0:y.codec)!=null?se:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=n.currentQuality$.getValue(),I="";if(T){let le=n.availableQualitiesFps$.getValue()[T];I=le?`${le}fps`:""}let M=(de=(Q=n.currentBuffer$.getValue())==null?void 0:Q.end)!=null?de:0,P=Math.max(M-xe(i.state.positionExact$),0),E={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:xe(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${l}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${p} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:_,Position:`${xe(i.state.positionExact$)}s`,Buffer:`${P}s`,State:`${xe(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${r}`,URL:window.location.href,Errors:u};return Object.entries(E).filter(([le,Me])=>Me!==void 0).map(([le,Me])=>`${le}: ${Me}`).join(`
|
|
54
|
+
`)},xh=(t,e,i)=>{var z,q,U,Y;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),r={version:aa,viewport:`${n}x${a}`,volume:Math.round(xe(i.state.volume$)*100)};r.id=i.videoId,o.currentFormat$.getValue()&&(r.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(r.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(r.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),b=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(b&&u?r.buffer=f.end-u:r.buffer=Math.max(f.end-xe(i.state.positionExact$),0)),r.position=xe(i.state.positionExact$);let _=o.throughputEstimation$.getValue();_&&(r.speed=_);let w=o.videoBitrate$.getValue();w&&(r.bitrate=w);let y=o.liveLatency$.getValue();y&&(r.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(r.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(r.currentAudioSegmentLength=T);let I=xe(i.vsid);typeof I=="string"&&(r.vsid=I);let M=(z=t.info.currentVideoStream$.getValue())==null?void 0:z.codec;M&&(r.videoCodec=M);let P=(q=t.info.currentAudioStream$.getValue())==null?void 0:q.codec;P&&(r.audioCodec=P),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(r.hdr=!0);let R=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.language;return R&&(r.audioLanguage=R),r},wh=(t,e)=>la(t,e,"mp4"),Sh=t=>!t.type,Ch=t=>!!t.type,Th=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Uc=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 Ai=require("@vkontakte/videoplayer-shared/es2018"),iP=require("@vkontakte/videoplayer-core/es2018"),Ih="vk_player_prefer_traffic_saving_enabled",Eh="vk_player_preferred_volume",kh="vk_player_prefer_volume_mute",Wp="vk_player_preferred_quality",Up="vk_player_preferred_default_quality_settings",zp="vk_player_preferred_quality_settings_by_video",Ph="vk_player_preferred_stream_language",Ah="vk_player_preferred_rate",Mh="vk_player_preferred_autoplay_next",Lh=t=>t>1?1:t<0?0:t,qp=t=>Ai.safeStorage.set(Eh,Lh(t).toString(10)),Wc=()=>{let t=Ai.safeStorage.get(Eh);return(0,Ai.isNullable)(t)?void 0:Lh(parseFloat(t))},Kp=(t,e)=>Ai.safeStorage.set(Wp,JSON.stringify({videoId:t,value:e})),cd=()=>Ai.safeStorage.remove(Wp),Qp=t=>{let e=Ai.safeStorage.get(Wp);if((0,Ai.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){cd();return}return o},Gp=(t,e)=>{e?Ai.safeStorage.set(t,"true"):Ai.safeStorage.remove(t)},Yp=t=>Ai.safeStorage.get(t)==="true",jp=t=>Gp(kh,t),Vh=()=>Yp(kh),dd=t=>Gp(Ih,t),Zp=()=>Yp(Ih),Rh=()=>Ai.safeStorage.get(Ph),Xp=t=>Ai.safeStorage.set(Ph,t),Bh=t=>Ai.safeStorage.set(Ah,JSON.stringify({rate:t})),Nh=()=>{let t=Ai.safeStorage.get(Ah);if((0,Ai.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Dh=t=>Gp(Mh,t),Oh=()=>Yp(Mh),A_=()=>{let t=f=>{Ai.safeStorage.set(Up,JSON.stringify(f))},e=()=>{try{let f=Ai.safeStorage.get(Up);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Ai.safeStorage.get(zp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Ai.safeStorage.set(zp,JSON.stringify(f))},n=f=>{p(f);let b=f?i():null;if(b&&(b==null?void 0:b.videoId)===f)return{...b,appliesTo:"to-video"};b&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Ai.safeStorage.remove(zp)},r=()=>{Ai.safeStorage.remove(Up)},d=(f,b="as-default")=>{f.type==="exact_quality"?o(f):b==="as-default"?t(f):o(f)},l=f=>{let b=n(f);if(b){switch(b.type){case"traffic_saving":dd(!0);break;case"exact_quality":Kp(f,b.quality)}a(),r()}},p=f=>{let b=Qp(f);if(b){o({type:"exact_quality",videoId:f,quality:b});return}Zp()&&t({type:"traffic_saving",videoId:f}),dd(!1),cd()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Hh,migrateSettingsToLegacyWay:Fh,savePreferredQualitySettings:qc,savePreferredDefaultQualitySettings:oP,removePreferredQualitySettingsByVideo:nP,getPreferredDefaultQualitySettings:Kc}=A_();var nv=require("@vkontakte/videoplayer-core/es2018");var M_=Se('<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 ud(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=M_();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),$(t,o)}var nl=require("@vkontakte/videoplayer-shared/es2018");var L_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_volume:"\u0417\u0432\u0443\u043A",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
|
|
55
55
|
\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
|
|
56
|
-
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},
|
|
56
|
+
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Uh=L_;var V_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_volume:"Volume",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
|
|
57
57
|
so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
58
|
-
Try switching the\xA0quality to\xA0Auto.`},
|
|
59
|
-
`),o,n;for(let a=0;a<i.length;++a){if(o=
|
|
60
|
-
`).filter(i=>!!i)[0]}function D_(t){try{let e=N_(t);if(e)return e}catch(e){}return{value:Bh(t),type:t&&t.name,stacktrace:{frames:[]}}}function O_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Uc=class{constructor(e){if(e&&e.dsn){let i=B_.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:[D_(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(R_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:O_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Nh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function H_(){return window}var zc=class t extends Uc{constructor(e,i=H_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:a=p=>p,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=s,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Nh(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Nh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],a=Array.isArray(n)?n:null,s=e[o],d=Array.isArray(s)?s:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Js=require("@vkontakte/videoplayer-shared/es2018");var Wc=null,ea=class{constructor(e,i,o={}){!Wc&&e.dsn&&(this.sentryClient=new zc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Js.Subscription,this.options=e,this.context=o,Wc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Wc=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:y}=s,{errorType:u,category:_}=i;if((0,Js.isNonNullable)(_)&&y.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?tl.fatal:tl.error),n.report(e)}catch(b){console.error(b)}}}static getInstance(){return Wc}};var Or=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Or||{});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(),Dh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},nd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},hs=()=>!!nd(),Qc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Gc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Oh=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var Yp=require("@vkontakte/videoplayer-core/es2018"),Hh=()=>({title:z("hotkey_map_modal_title"),closeBtnText:z("hotkey_map_modal_close_btn_text"),groups:[{title:z("hotkey_map_group_title_common"),items:[{description:z("hotkey_map_item_mute_description"),value:z("hotkey_map_item_mute_value")},{description:z("hotkey_map_item_volume_up_description"),value:z("hotkey_map_item_volume_up_value")},{description:z("hotkey_map_item_volume_down_description"),value:z("hotkey_map_item_volume_down_value")},{description:z("hotkey_map_item_pip_description"),value:z("hotkey_map_item_pip_value")},{description:z("hotkey_map_item_full_screen_description"),value:z("hotkey_map_item_full_screen_value")},{description:z("hotkey_map_item_show_context_menu_description"),value:z("hotkey_map_item_show_context_menu_value")},{description:z("hotkey_map_item_show_hotkey_map_description"),value:z("hotkey_map_item_show_hotkey_map_value")}]},{title:z("hotkey_map_group_title_playback"),items:[{description:z("hotkey_map_item_play_toggle_description"),value:z("hotkey_map_item_play_toggle_value")},{description:z("hotkey_map_item_seek_backward_description"),value:z("hotkey_map_item_seek_backward_value")},{description:z("hotkey_map_item_seek_forward_description"),value:z("hotkey_map_item_seek_forward_value")},{description:z("hotkey_map_item_fast_seek_backward_description"),value:z("hotkey_map_item_fast_seek_backward_value")},{description:z("hotkey_map_item_fast_seek_forward_description"),value:z("hotkey_map_item_fast_seek_forward_value")},{description:z("hotkey_map_item_rate_down_description"),value:z("hotkey_map_item_rate_down_value")},{description:z("hotkey_map_item_rate_up_description"),value:z("hotkey_map_item_rate_up_value")},{description:z("hotkey_map_item_prev_frame_description"),value:z("hotkey_map_item_prev_frame_value")},{description:z("hotkey_map_item_next_frame_description"),value:z("hotkey_map_item_next_frame_value")},{description:z("hotkey_map_item_jump_seek_description"),value:z("hotkey_map_item_jump_seek_value")},{description:z("hotkey_map_item_next_video_description"),value:z("hotkey_map_item_next_video_value")},{description:z("hotkey_map_item_prev_video_description"),value:z("hotkey_map_item_prev_video_value")}]},{title:z("hotkey_map_group_title_subtitles"),items:[{description:z("hotkey_map_item_subtitles_toggle_description"),value:z("hotkey_map_item_subtitles_toggle_value")}]},{title:z("hotkey_map_group_title_episodes"),items:[{description:z("hotkey_map_item_prev_episode_description"),value:Yp.clientChecker.device.isApple?z("hotkey_map_item_prev_episode_mac_value"):z("hotkey_map_item_prev_episode_pc_value")},{description:z("hotkey_map_item_next_episode_description"),value:Yp.clientChecker.device.isApple?z("hotkey_map_item_next_episode_mac_value"):z("hotkey_map_item_next_episode_pc_value")}]}]});var il=require("@vkontakte/videoplayer-shared/es2018");var ta=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,il.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new il.ValueSubject(!1),isEnabled$:new il.ValueSubject(!1),type:0};this.info.isEnabled$=new il.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ia(t){return t instanceof ta}var ol=require("@vkontakte/videoplayer-shared/es2018");Fv();function Xp(t,e){F(e,!1);let i=Ce();qt(()=>{i.getAdmanWrapper().startPostroll()}),yr(),U()}var Fh=require("@vkontakte/videoplayer-shared/es2018");var F_=(t,e)=>{t.stopPropagation(),e()()},U_=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>'),z_=L("<div><!></div>"),W_={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function Jp(t,e){F(e,!0),q(t,W_);let[i,o]=De(),n=()=>S(p,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,Fh.noop),p=Ce().ui.isMobile,f=v(()=>a()>0&&a()>=s());var y=z_();let u;var _=h(y);{var w=C=>{var T=U_();T.__click=[F_,d];var I=h(T);$e(),g(T),E(M=>me(I,`${M!=null?M:""} `),[()=>z("skip_ads_now")]),$(C,T)},b=C=>{var T=Br();E(I=>me(T,I),[()=>z("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),$(C,T)};R(_,C=>{r(f)?C(w):C(b,!1)})}g(y),E(C=>u=J(y,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,y),U(),o()}at(["click"]);var q_=L('<button class="svelte-1wy3dql"> </button>'),K_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function ef(t,e){F(e,!1),q(t,K_),yr();var i=q_(),o=h(i,!0);g(i),E(n=>me(o,n),[()=>z("visit_advertiser")],_r),$(t,i),U()}var Q_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),G_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Y_={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.`},zh=V_;var ms=new Map;ms.set(nl.InterfaceLanguage.EN,zh);ms.set(nl.InterfaceLanguage.RU,Uh);var Wh=new Map,Jp=({language:t,pack:e,fallback:i})=>{if(ms.has(t)){let o=ms.get(t);ms.set(t,{...o,...e})}else ms.set(t,e);Wh.set(t,i)},ef=t=>ms.has(t),tf=(t,e,i,o)=>{var r;let n=ms.get(t),a=n==null?void 0:n[e];if((0,nl.isNullable)(a)){let d=(r=Wh.get(t))!=null?r:o,l=d?ms.get(d):void 0;a=l==null?void 0:l[e]}return(0,nl.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},F=(t,e)=>{let{interfaceLanguage$:i}=Ie(),o=xe(i),n=Ut();return tf(o,t,e,n.defaultLanguage)};var wP=require("@vkontakte/videoplayer-core/es2018");var rl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(rl||(rl={}));var R_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,B_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,N_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Qc="?",D_="X-Sentry-Auth",O_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function H_(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=R_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Qc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=N_.exec(i[a]))n={filename:o[2],function:o[1]||Qc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=B_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Qc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Qc),e.push(n)}return e.length?{value:qh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function qh(t){return(t&&t.message||"No error message").split(`
|
|
60
|
+
`).filter(i=>!!i)[0]}function F_(t){try{let e=H_(t);if(e)return e}catch(e){}return{value:qh(t),type:t&&t.name,stacktrace:{frames:[]}}}function U_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Gc=class{constructor(e){if(e&&e.dsn){let i=O_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[F_(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(D_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:U_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Kh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function z_(){return window}var Yc=class t extends Gc{constructor(e,i=z_()){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:r=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=r,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=>Kh(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=>Kh(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,r=e[o],d=Array.isArray(r)?r:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var da=require("@vkontakte/videoplayer-shared/es2018");var jc=null,ca=class{constructor(e,i,o={}){!jc&&e.dsn&&(this.sentryClient=new Yc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new da.Subscription,this.options=e,this.context=o,jc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),jc=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:r}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:b}=r,{errorType:u,category:_}=i;if((0,da.isNonNullable)(_)&&b.includes(_)||(0,da.isNonNullable)(u)&&f.includes(u))return;if(Math.random()<=d||(0,da.isNonNullable)(_)&&p.includes(_)||(0,da.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?rl.fatal:rl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return jc}};var Zr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Zr||{});var Zc=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()},Xc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Qh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},pd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},As=()=>!!pd(),Jc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},eu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Gh=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 of=require("@vkontakte/videoplayer-core/es2018"),Yh=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:of.clientChecker.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:of.clientChecker.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});var sl=require("@vkontakte/videoplayer-shared/es2018");var ua=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,sl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new sl.ValueSubject(!1),isEnabled$:new sl.ValueSubject(!1),type:0};this.info.isEnabled$=new sl.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,r;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),(r=this.playerDummyElement)==null||r.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function pa(t){return t instanceof ua}var al=require("@vkontakte/videoplayer-shared/es2018");jv();function sf(t,e){O(e,!1);let i=Ie();Nt(()=>{i.getAdmanWrapper().startPostroll()}),Pr(),H()}var jh=require("@vkontakte/videoplayer-shared/es2018");var W_=(t,e)=>{t.stopPropagation(),e()()},q_=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>'),K_=L("<div><!></div>"),Q_={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 af(t,e){O(e,!0),W(t,Q_);let[i,o]=De(),n=()=>S(p,"$isMobile",i),a=m(e,"position",3,0),r=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,jh.noop),p=Ie().ui.isMobile,f=v(()=>a()>0&&a()>=r());var b=K_();let u;var _=h(b);{var w=C=>{var T=q_();T.__click=[W_,d];var I=h(T);we(),g(T),k(M=>_e(I,`${M!=null?M:""} `),[()=>F("skip_ads_now")]),$(C,T)},y=C=>{var T=Gr();k(I=>_e(T,I),[()=>F("skip_ads_after",{time:Math.ceil(r()-a()).toFixed(0)})]),$(C,T)};V(_,C=>{s(f)?C(w):C(y,!1)})}g(b),k(C=>u=J(b,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:s(f)})]),$(t,b),H(),o()}dt(["click"]);var G_=L('<button class="svelte-1wy3dql"> </button>'),Y_={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 lf(t,e){O(e,!1),W(t,Y_),Pr();var i=G_(),o=h(i,!0);g(i),k(n=>_e(o,n),[()=>F("visit_advertiser")],Ir),$(t,i),H()}var j_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),Z_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),X_={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
61
61
|
360deg,
|
|
62
62
|
rgba(0, 0, 0, 0) 0%,
|
|
63
63
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -67,7 +67,7 @@ Try switching the\xA0quality to\xA0Auto.`},Vh=A_;var is=new Map;is.set(el.Interf
|
|
|
67
67
|
rgba(0, 0, 0, 0.5) 77%,
|
|
68
68
|
rgba(0, 0, 0, 0.55) 88%,
|
|
69
69
|
rgba(0, 0, 0, 0.65) 100%
|
|
70
|
-
);}`};function
|
|
70
|
+
);}`};function fd(t,e){O(e,!0),W(t,X_);let[i,o]=De(),n=()=>S(q,"$canSkipAd",i),a=()=>S(z,"$adPlaybackState",i),r=()=>S(I,"$isMobile",i),d=()=>S(U,"$adPosition",i),l=()=>S(Y,"$secondsToWatchBeforeSkipAd",i),p=()=>S(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),b=m(e,"adsParams",3,void 0),u=m(e,"adsPreviewParam",3,void 0),_=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),y=Ie(),C=Ut(),T=y.state.isEnded$,I=y.ui.isMobile,M=C.ads.isMobileGoToSiteButton,P=X(void 0),E=X(void 0),R=!1,z=y.ads.playbackState,q=y.ads.canSkip,U=y.ads.position,Y=y.ads.secondsToWatchBeforeSkip,se=v(()=>n()&&a()!=="inactive"),Q=v(()=>r()&&a()!=="inactive"&&M);Nt(()=>{var ie;let ee=y.getAdmanWrapper();if(al.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,al.now)(),f()]}),!f()){ee.onAdmanLoadingError();return}let We=Ee=>{ee.initAdman(Ee),R=!0},ne=new AbortController,me=()=>{ne.abort()},{width:$e,height:Z}=xe(y.ui.playerSize),ze=xe(y.ui.isFullscreen),et=(ie=_())!=null?ie:xe(y.ui.isAutoplay),Ce={width:$e,height:Z,isFullscreen:ze,isAutoplay:et,adsContainer:s(P),adsVideoElement:s(E),slotId:f(),params:b(),previewParam:u(),duration:w()};return window.AdmanHTML?We(Ce):ee.loadAdman(ne.signal).then(()=>{We(Ce)}).catch(()=>{ee.onAdmanLoadingError()}),()=>{al.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,al.now)(),f()]}),!R&&me()}});var de=Z_(),le=h(de);{var Me=ee=>{var We=j_();$(ee,We)};V(le,ee=>{r()&&ee(Me)})}var Be=A(le,2);it(Be,ee=>D(E,ee),()=>s(E));var ge=A(Be,2);{var ce=ee=>{af(ee,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};V(ge,ee=>{s(se)&&ee(ce)})}var Ae=A(ge,2);{var ae=ee=>{sf(ee,{})};V(Ae,ee=>{p()&&ee(ae)})}var N=A(Ae,2);{var Ye=ee=>{lf(ee,{})};V(N,ee=>{s(Q)&&ee(Ye)})}g(de),it(de,ee=>D(P,ee),()=>s(P)),$(t,de),H(),o()}var vn=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 J_=Se('<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 df(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=J_();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),$(t,o)}var eb=Se('<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 cf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=eb();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i})),$(t,o)}function md(t,e){let i=m(e,"isActive",3,!1);var o=He(),n=he(o);{var a=d=>{cf(d,{})},r=d=>{df(d,{})};V(n,d=>{i()?d(a):d(r,!1)})}$(t,o)}var tb=L('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),ib=L('<div class="live-icon svelte-1s15d2i"><!></div>'),ob=L('<span class="text svelte-1s15d2i"> </span>'),nb=L("<div><!> <!></div>"),rb={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
|
|
71
71
|
opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
|
|
72
72
|
animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
|
|
73
73
|
animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
|
|
@@ -138,10 +138,10 @@ Try switching the\xA0quality to\xA0Auto.`},Vh=A_;var is=new Map;is.set(el.Interf
|
|
|
138
138
|
100% {
|
|
139
139
|
transform: scaleY(0.6);
|
|
140
140
|
}
|
|
141
|
-
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function
|
|
142
|
-
opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function ld(t,e){F(e,!0),q(t,nb);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),a=v(()=>ln(e.duration-e.position));var s=ob();let d;var l=h(s);ad(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),E(p=>d=J(s,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),$(t,s),U()}var nl=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var jh=require("@vkontakte/videoplayer-core/es2018");var nf=require("@vkontakte/videoplayer-core/es2018"),rr=t=>{t.stopPropagation(),t.preventDefault()},sb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},ab=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},lb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},db=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Uh=t=>t.code==="Escape",cb=t=>t.code==="ArrowLeft",dd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},zh=t=>{if(lb(t)){rr(t),ab(t.target);return}db(t)&&(rr(t),sb(t.target))},$s=t=>!nf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||nf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",rl=async(t,e,i)=>{await bo(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(await bo(),i.set(!1),t.focus())},Wh=async(t,e,i)=>{await bo(),t&&!e&&xe(i)&&(i.set(!1),t.focus())},sl=async(t,e,i)=>{var n;await bo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},qh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Yc=(t,e)=>{zh(t),Uh(t)&&(rr(t),e())},jc=async(t,e)=>{dd(t,["ArrowRight"])&&(rr(t),e())},Kh=async(t,e,i)=>{if(zh(t),cb(t)){rr(t),e();return}Uh(t)&&(rr(t),i())},al=(t,e)=>{dd(t)&&(rr(t),e())},Qh=(t,e,i)=>{if(dd(t))rr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),rr(t);return}o==="ArrowRight"&&!e&&(i(!0),rr(t))}},Gh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Yh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var ra=require("@vkontakte/videoplayer-shared/es2018");var wr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var rf=require("@vkontakte/videoplayer-shared/es2018");var pb=(t,e)=>{al(t,()=>e())},fb=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),mb={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function sf(t,e){F(e,!0),q(t,mb);let i=m(e,"onClick",3,rf.noop),o=m(e,"closeContextMenu",3,rf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=fb();a.__click=n,a.__keydown=[pb,n];var s=h(a,!0);g(a),E(()=>{var d;Ne(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ne(a,"data-testid",e.id),me(s,e.label)}),$(t,a),U()}at(["click","keydown"]);var na=(t,e)=>t.weight-e.weight;var ll=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ll||{});var vb=(t,e)=>{Yc(t,e)},gb=t=>{t.preventDefault()},hb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),_b={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function af(t,e){F(e,!0),q(t,_b);let[i,o]=De(),n=()=>S(ie,"$isLive$",i),a=()=>S(Ee,"$isPiPEnabled$",i),s=()=>S(Q,"$chromecastState$",i),d=()=>S(Me,"$pictureInPictureApiIsActive$",i),l=()=>S(ce,"$isLooped$",i),p=()=>S(Z,"$positionExact$",i),f=()=>S(W,"$additionalContextMenuItems$",i),y=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),_=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),b=m(e,"menuElementRef",15,void 0),C=X(0),T=X(0),I=Ce(),{pictureInPicture$:M}=ro(),P=Kt(),k=I.ui.contextMenu.visible$,V=I.ui.debugPanelVisible,W=I.ui.additionalContextMenuItems$,j=I.ui.t,H=I.actions.internal.togglePictureInPicture,Q=I.state.chromecastState$,ie=I.state.isLive$,Z=I.state.positionExact$,se=I.state.isInteractive,ce=I.state.looped$,{isEnabled$:Ee,isActive$:Me}=M,ge=v(()=>{var Le;return P.features.copyVideoLink&&((Le=I.callbacks)==null?void 0:Le.onCopyVideoLink)}),ae=v(()=>r(ge)&&!n()&&!se),Pe=v(()=>{var Le;return!!((Le=I.callbacks)!=null&&Le.onCopyEmbedCodeClicked)}),ne=v(()=>a()&&s()!==jh.ChromecastState.CONNECTED&&!se),N=v(()=>P.features.videoRotate&&!se),ue=v(()=>P.showSupport&&!d()),_e=v(()=>P.features.saveTraceInfoToFile),ze=()=>{var Le;k.set(!1),(Le=e.returnFocus)==null||Le.call(e)},re=(Le,it)=>{if(!b()||!_()||!w())return;let Je=b().getBoundingClientRect(),$t=_().getBoundingClientRect();D(C,Le-$t.left),D(T,it-$t.top),r(C)+Je.width>$t.width&&D(C,$t.width-Je.width),r(T)+Je.height>$t.height&&D(T,$t.height-Je.height),D(C,fe(Math.max(r(C),0))),D(T,fe(Math.max(r(T),0)))};Fe(()=>{(async()=>{if(b()&&_()&&w()){await bo();let{top:it,left:Je,bottom:$t,right:pt}=u(),mt=Je!=null?Je:0,Dt=it!=null?it:0,Ge=b().getBoundingClientRect();(0,ra.isNullable)(Je)&&!(0,ra.isNullable)(pt)&&(mt=pt-Ge.width),(0,ra.isNullable)(it)&&!(0,ra.isNullable)($t)&&(Dt=$t-Ge.height),mt=Math.max(mt,0),Dt=Math.max(Dt,0),re(mt,Dt)}})()});let K=()=>{I.actions.internal.videoRotate()},he=()=>{(0,ra.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},ee=()=>{let Le=I.actions.internal.getDebugTextData();if(P.features.saveDebugInfoToFile){let it=new Blob([...Le],{type:"plain/text"}),Je=window.URL.createObjectURL(it);Xs(Je,"vk_player_debug_info","txt")}else nl(I.actions.internal.getDebugTextData())},He=()=>{let Le=I.actions.internal.getTraceTextData(),it=new Blob([...Le],{type:"application/json"}),Je=window.URL.createObjectURL(it);Xs(Je,"vk_player_trace_info","json")},Ze=()=>{V.set(!0)},we=async()=>{var Le;try{H()}finally{(Le=e.returnFocus)==null||Le.call(e)}},Ve=()=>{I.actions.internal.setLooped(!l())},Ie=()=>{var Le,it;if(r(Pe)){let Je=(it=(Le=I.callbacks)==null?void 0:Le.onCopyEmbedCodeClicked)==null?void 0:it.call(Le);Je&&nl(Je)}},Ue=(Le=!1)=>{var it,Je;if((it=I.callbacks)!=null&&it.onCopyVideoLink){let $t=(Je=I.callbacks)==null?void 0:Je.onCopyVideoLink(Le,p());$t&&nl($t)}},dt=v(()=>P.features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),ct=v(()=>r(ge)?{id:"copy-link",weight:wr["copy-link"],label:j("menu_copy_video_link"),onClick:()=>Ue()}:void 0),ot=v(()=>r(ae)?{id:"copy-link-timestamp",weight:wr["copy-link-timestamp"],label:j("menu_copy_video_link_with_timestamp"),onClick:()=>Ue(!0)}:void 0),Et=v(()=>r(Pe)?{id:"copy-embed-code",weight:wr["copy-embed-code"],label:j("menu_copy_embed_code"),onClick:Ie}:void 0),_t=v(()=>r(ne)?{id:"pip",weight:wr.pip,label:j("menu_pip"),onClick:we}:void 0),Yt=v(()=>({id:"video-loop",weight:wr["video-loop"],label:l()?j("menu_video_loop_off"):j("menu_video_loop_on"),ariaLabel:j("aria_label_menu_loop"),onClick:Ve})),Zt=v(()=>r(N)?{id:"rotate",weight:wr.rotate,label:j("menu_video_rotate"),ariaLabel:j("aria_label_menu_rotate"),onClick:K}:void 0),Lt=v(()=>r(ue)?{id:"report",weight:wr.report,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,onClick:he}:void 0),Nt=v(()=>({id:"save-debug",weight:wr["save-debug"],label:r(dt),onClick:ee})),O=v(()=>r(_e)?{id:"save-trace",weight:wr["save-trace"],label:j("menu_save_debug"),onClick:He}:void 0),be=v(()=>({id:"debug-info",weight:wr["debug-info"],label:j("menu_debug_overlay"),ariaLabel:j("aria_label_menu_debug_overlay"),onClick:Ze})),oe=v(()=>[r(ct),r(ot),r(Et),r(_t),r(Yt),r(Zt),r(Lt),r(Nt),r(O),r(be),...f()].filter(Le=>!!Le).sort(na));var Be=Oe(),Qe=pe(Be);{var je=Le=>{var it=hb();it.__contextmenu=[gb],it.__keydown=[vb,ze],yi(it,21,()=>r(oe),Je=>Je.id,(Je,$t)=>{sf(Je,{get id(){return r($t).id},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},get onClick(){return r($t).onClick},closeContextMenu:ze})}),g(it),ht(it,Je=>b(Je),()=>b()),E(()=>{var Je,$t;return st(it,`top: ${(Je=r(T))!=null?Je:""}px; left: ${($t=r(C))!=null?$t:""}px;`)}),$(Le,it)};R(Qe,Le=>{y()&&Le(je)})}$(t,Be),U(),o()}at(["contextmenu","keydown"]);var Zc=class{constructor(e){this.value=e,this.next=null}};var dl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Zc(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var bb=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),$b={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function cd(t,e){F(e,!0),q(t,$b);let i=m(e,"values",19,()=>[]),o=X(void 0),n=X(null),a=16,s=120,d=60,l=s/d;qt(()=>{r(o).width=s,r(o).height=a,D(n,fe(r(o).getContext("2d")))});function p(u,_,w,b,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect(_,w,b,C)}Fe(()=>{let u="";if(r(n)){let _=i()[0];for(let b=1;b<i().length;b++)i()[b]>_&&(_=i()[b]);r(n).clearRect(0,0,s,a);let w=d-1;for(let b=i().length-1;b>=0;b--){let C=w*l,T=_>0?a*(i()[b]/_):0;p(r(n),C,0,l,T),u=T+" "+u,w--}}});var f=bb(),y=h(f);ht(y,u=>D(o,u),()=>r(o)),g(f),$(t,f),U()}var lf=require("@vkontakte/videoplayer-shared/es2018");var yb=(t,e)=>{t.stopPropagation(),lf.safeStorage.remove(Zl),e.set(!1)},xb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),wb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),kb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Pb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Vb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Rb=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>'),Bb={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function ud(t,e){F(e,!0),q(t,Bb);let[i,o]=De(),n=()=>S(d,"$isMobile",i),a=Ce(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=X(fe(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),f=X(0),y=X(0),u=X(0),_=new dl(60),w=new dl(60),b=new dl(60),C=X(fe([])),T=X(fe([])),I=X(fe([])),M=z("aria_label_debug_panel");qt(()=>{lf.safeStorage.set(Zl,"true"),a.actions.internal.startLogging(),p&&(D(y,fe(p.getVideoPlaybackQuality().droppedVideoFrames)),D(f,fe(p.getVideoPlaybackQuality().totalVideoFrames)));let O=window.setInterval(()=>{D(l,fe(a.actions.internal.getDebugPanelData()))},500),be;return p&&(be=window.setInterval(()=>{if(p){D(y,fe(p.getVideoPlaybackQuality().droppedVideoFrames));let oe=p.getVideoPlaybackQuality().totalVideoFrames;D(u,oe-r(f)),D(f,fe(oe)),_.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&b.push(r(l).bitrate),D(C,fe(_.getValuesFromBottom())),D(T,fe(w.getValuesFromBottom())),D(I,fe(b.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(O),be&&clearInterval(be)}});var P=Rb();let k;Ne(P,"aria-label",M);var V=h(P);V.__click=[yb,s];var W=A(V,2),j=h(W),H=A(h(j),2),Q=h(H,!0);g(H),g(j);var ie=A(j,2);{var Z=O=>{var be=xb(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(()=>me(Be,r(l).id)),$(O,be)};R(ie,O=>{r(l).id&&O(Z)})}var se=A(ie,2);{var ce=O=>{var be=wb(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(()=>me(Be,r(l).vsid)),$(O,be)};R(se,O=>{r(l).vsid&&O(ce)})}var Ee=A(se,2);{var Me=O=>{var be=Sb(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(()=>me(Be,r(l).provider)),$(O,be)};R(Ee,O=>{r(l).provider&&O(Me)})}var ge=A(Ee,2);{var ae=O=>{var be=Cb(),oe=A(h(be),2),Be=h(oe);g(oe),g(be),E(()=>{var Qe,je;return me(Be,`Video: ${r(l).videoCodec||""} ${(Qe=r(l).hdr?"(HDR)":"")!=null?Qe:""}
|
|
141
|
+
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function vd(t,e){W(t,rb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var a=nb();let r;var d=h(a);{var l=u=>{var _=tb();$(u,_)};V(d,u=>{i()&&u(l)})}var p=A(d,2);{var f=u=>{var _=ib(),w=h(_);md(w,{isActive:!0}),g(_),$(u,_)},b=u=>{var _=ob(),w=h(_,!0);g(_),k(()=>_e(w,e.time)),$(u,_)};V(p,u=>{o()?u(f):u(b,!1)})}g(a),k(u=>r=J(a,1,"wrapper svelte-1s15d2i",null,r,u),[()=>({live:o(),playing:n()})]),$(t,a)}var sb=L('<div role="timer" data-testid="thumb-timer"><!></div>'),ab={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
|
|
142
|
+
opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function gd(t,e){O(e,!0),W(t,ab);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),a=v(()=>vn(e.duration-e.position));var r=sb();let d;var l=h(r);vd(l,{get time(){return s(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(r),k(p=>d=J(r,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),$(t,r),H()}var ll=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 r1=require("@vkontakte/videoplayer-core/es2018");var uf=require("@vkontakte/videoplayer-core/es2018"),mr=t=>{t.stopPropagation(),t.preventDefault()},db=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},cb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},ub=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},pb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Zh=t=>t.code==="Escape",fb=t=>t.code==="ArrowLeft",hd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Xh=t=>{if(ub(t)){mr(t),cb(t.target);return}pb(t)&&(mr(t),db(t.target))},Vs=t=>!uf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||uf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",dl=async(t,e,i)=>{await xo(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(await xo(),i.set(!1),t.focus())},Jh=async(t,e,i)=>{await xo(),t&&!e&&xe(i)&&(i.set(!1),t.focus())},cl=async(t,e,i)=>{var n;await xo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},e1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},tu=(t,e)=>{Xh(t),Zh(t)&&(mr(t),e())},iu=async(t,e)=>{hd(t,["ArrowRight"])&&(mr(t),e())},t1=async(t,e,i)=>{if(Xh(t),fb(t)){mr(t),e();return}Zh(t)&&(mr(t),i())},ul=(t,e)=>{hd(t)&&(mr(t),e())},i1=(t,e,i)=>{if(hd(t))mr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),mr(t);return}o==="ArrowRight"&&!e&&(i(!0),mr(t))}},o1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},n1=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 va=require("@vkontakte/videoplayer-shared/es2018");var Mr={"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 pf=require("@vkontakte/videoplayer-shared/es2018");var vb=(t,e)=>{ul(t,()=>e())},gb=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),hb={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 ff(t,e){O(e,!0),W(t,hb);let i=m(e,"onClick",3,pf.noop),o=m(e,"closeContextMenu",3,pf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=gb();a.__click=n,a.__keydown=[vb,n];var r=h(a,!0);g(a),k(()=>{var d;Ne(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ne(a,"data-testid",e.id),_e(r,e.label)}),$(t,a),H()}dt(["click","keydown"]);var ma=(t,e)=>t.weight-e.weight;var pl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(pl||{});var _b=(t,e)=>{tu(t,e)},bb=t=>{t.preventDefault()},$b=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),yb={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 mf(t,e){O(e,!0),W(t,yb);let[i,o]=De(),n=()=>S(se,"$isLive$",i),a=()=>S(Me,"$isPiPEnabled$",i),r=()=>S(Y,"$chromecastState$",i),d=()=>S(Be,"$pictureInPictureApiIsActive$",i),l=()=>S(le,"$isLooped$",i),p=()=>S(Q,"$positionExact$",i),f=()=>S(z,"$additionalContextMenuItems$",i),b=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),_=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),C=X(0),T=X(0),I=Ie(),{pictureInPicture$:M}=co(),P=Ut(),E=I.ui.contextMenu.visible$,R=I.ui.debugPanelVisible,z=I.ui.additionalContextMenuItems$,q=I.ui.t,U=I.actions.internal.togglePictureInPicture,Y=I.state.chromecastState$,se=I.state.isLive$,Q=I.state.positionExact$,de=I.state.isInteractive,le=I.state.looped$,{isEnabled$:Me,isActive$:Be}=M,ge=v(()=>{var fe;return P.features.copyVideoLink&&((fe=I.callbacks)==null?void 0:fe.onCopyVideoLink)}),ce=v(()=>s(ge)&&!n()&&!de),Ae=v(()=>{var fe;return!!((fe=I.callbacks)!=null&&fe.onCopyEmbedCodeClicked)}),ae=v(()=>a()&&r()!==r1.ChromecastState.CONNECTED&&!de),N=v(()=>P.features.videoRotate&&!de),Ye=v(()=>P.showSupport&&!d()),ee=v(()=>P.features.saveTraceInfoToFile),We=()=>{var fe;E.set(!1),(fe=e.returnFocus)==null||fe.call(e)},ne=(fe,Ke)=>{if(!y()||!_()||!w())return;let ot=y().getBoundingClientRect(),Xe=_().getBoundingClientRect();D(C,fe-Xe.left),D(T,Ke-Xe.top),s(C)+ot.width>Xe.width&&D(C,Xe.width-ot.width),s(T)+ot.height>Xe.height&&D(T,Xe.height-ot.height),D(C,ve(Math.max(s(C),0))),D(T,ve(Math.max(s(T),0)))};Ue(()=>{(async()=>{if(y()&&_()&&w()){await xo();let{top:Ke,left:ot,bottom:Xe,right:wt}=u(),gt=ot!=null?ot:0,Kt=Ke!=null?Ke:0,_t=y().getBoundingClientRect();(0,va.isNullable)(ot)&&!(0,va.isNullable)(wt)&&(gt=wt-_t.width),(0,va.isNullable)(Ke)&&!(0,va.isNullable)(Xe)&&(Kt=Xe-_t.height),gt=Math.max(gt,0),Kt=Math.max(Kt,0),ne(gt,Kt)}})()});let me=()=>{I.actions.internal.videoRotate()},$e=()=>{(0,va.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},Z=()=>{let fe=I.actions.internal.getDebugTextData();if(P.features.saveDebugInfoToFile){let Ke=new Blob([...fe],{type:"plain/text"}),ot=window.URL.createObjectURL(Ke);la(ot,"vk_player_debug_info","txt")}else ll(I.actions.internal.getDebugTextData())},ze=()=>{let fe=I.actions.internal.getTraceTextData(),Ke=new Blob([...fe],{type:"application/json"}),ot=window.URL.createObjectURL(Ke);la(ot,"vk_player_trace_info","json")},et=()=>{R.set(!0)},Ce=async()=>{var fe;try{U()}finally{(fe=e.returnFocus)==null||fe.call(e)}},ie=()=>{I.actions.internal.setLooped(!l())},Ee=()=>{var fe,Ke;if(s(Ae)){let ot=(Ke=(fe=I.callbacks)==null?void 0:fe.onCopyEmbedCodeClicked)==null?void 0:Ke.call(fe);ot&&ll(ot)}},qe=(fe=!1)=>{var Ke,ot;if((Ke=I.callbacks)!=null&&Ke.onCopyVideoLink){let Xe=(ot=I.callbacks)==null?void 0:ot.onCopyVideoLink(fe,p());Xe&&ll(Xe)}},rt=v(()=>P.features.saveDebugInfoToFile?q("menu_save_debug"):q("menu_copy_debug")),ct=v(()=>s(ge)?{id:"copy-link",weight:Mr["copy-link"],label:q("menu_copy_video_link"),onClick:()=>qe()}:void 0),st=v(()=>s(ce)?{id:"copy-link-timestamp",weight:Mr["copy-link-timestamp"],label:q("menu_copy_video_link_with_timestamp"),onClick:()=>qe(!0)}:void 0),Tt=v(()=>s(Ae)?{id:"copy-embed-code",weight:Mr["copy-embed-code"],label:q("menu_copy_embed_code"),onClick:Ee}:void 0),pt=v(()=>s(ae)?{id:"pip",weight:Mr.pip,label:q("menu_pip"),onClick:Ce}:void 0),Yt=v(()=>({id:"video-loop",weight:Mr["video-loop"],label:l()?q("menu_video_loop_off"):q("menu_video_loop_on"),ariaLabel:q("aria_label_menu_loop"),onClick:ie})),ni=v(()=>s(N)?{id:"rotate",weight:Mr.rotate,label:q("menu_video_rotate"),ariaLabel:q("aria_label_menu_rotate"),onClick:me}:void 0),Ft=v(()=>s(Ye)?{id:"report",weight:Mr.report,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,onClick:$e}:void 0),Pt=v(()=>({id:"save-debug",weight:Mr["save-debug"],label:s(rt),onClick:Z})),te=v(()=>s(ee)?{id:"save-trace",weight:Mr["save-trace"],label:q("menu_save_debug"),onClick:ze}:void 0),Lt=v(()=>({id:"debug-info",weight:Mr["debug-info"],label:q("menu_debug_overlay"),ariaLabel:q("aria_label_menu_debug_overlay"),onClick:et})),j=v(()=>[s(ct),s(st),s(Tt),s(pt),s(Yt),s(ni),s(Ft),s(Pt),s(te),s(Lt),...f()].filter(fe=>!!fe).sort(ma));var pe=He(),Pe=he(pe);{var Re=fe=>{var Ke=$b();Ke.__contextmenu=[bb],Ke.__keydown=[_b,We],$i(Ke,21,()=>s(j),ot=>ot.id,(ot,Xe)=>{ff(ot,{get id(){return s(Xe).id},get label(){return s(Xe).label},get ariaLabel(){return s(Xe).ariaLabel},get onClick(){return s(Xe).onClick},closeContextMenu:We})}),g(Ke),it(Ke,ot=>y(ot),()=>y()),k(()=>{var ot,Xe;return at(Ke,`top: ${(ot=s(T))!=null?ot:""}px; left: ${(Xe=s(C))!=null?Xe:""}px;`)}),$(fe,Ke)};V(Pe,fe=>{b()&&fe(Re)})}$(t,pe),H(),o()}dt(["contextmenu","keydown"]);var ou=class{constructor(e){this.value=e,this.next=null}};var fl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new ou(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 xb=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),wb={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 _d(t,e){O(e,!0),W(t,wb);let i=m(e,"values",19,()=>[]),o=X(void 0),n=X(null),a=16,r=120,d=60,l=r/d;Nt(()=>{s(o).width=r,s(o).height=a,D(n,ve(s(o).getContext("2d")))});function p(u,_,w,y,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect(_,w,y,C)}Ue(()=>{let u="";if(s(n)){let _=i()[0];for(let y=1;y<i().length;y++)i()[y]>_&&(_=i()[y]);s(n).clearRect(0,0,r,a);let w=d-1;for(let y=i().length-1;y>=0;y--){let C=w*l,T=_>0?a*(i()[y]/_):0;p(s(n),C,0,l,T),u=T+" "+u,w--}}});var f=xb(),b=h(f);it(b,u=>D(o,u),()=>s(o)),g(f),$(t,f),H()}var vf=require("@vkontakte/videoplayer-shared/es2018");var Sb=(t,e)=>{t.stopPropagation(),vf.safeStorage.remove(rd),e.set(!1)},Cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),kb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Pb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Vb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Bb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Db=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Ob=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>'),Hb={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 bd(t,e){O(e,!0),W(t,Hb);let[i,o]=De(),n=()=>S(d,"$isMobile",i),a=Ie(),r=a.ui.debugPanelVisible,d=a.ui.isMobile,l=X(ve(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),f=X(0),b=X(0),u=X(0),_=new fl(60),w=new fl(60),y=new fl(60),C=X(ve([])),T=X(ve([])),I=X(ve([])),M=F("aria_label_debug_panel");Nt(()=>{vf.safeStorage.set(rd,"true"),a.actions.internal.startLogging(),p&&(D(b,ve(p.getVideoPlaybackQuality().droppedVideoFrames)),D(f,ve(p.getVideoPlaybackQuality().totalVideoFrames)));let j=window.setInterval(()=>{D(l,ve(a.actions.internal.getDebugPanelData()))},500),pe;return p&&(pe=window.setInterval(()=>{if(p){D(b,ve(p.getVideoPlaybackQuality().droppedVideoFrames));let Pe=p.getVideoPlaybackQuality().totalVideoFrames;D(u,Pe-s(f)),D(f,ve(Pe)),_.push(s(u)),s(l).speed&&w.push(s(l).speed),s(l).bitrate&&y.push(s(l).bitrate),D(C,ve(_.getValuesFromBottom())),D(T,ve(w.getValuesFromBottom())),D(I,ve(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(j),pe&&clearInterval(pe)}});var P=Ob();let E;Ne(P,"aria-label",M);var R=h(P);R.__click=[Sb,r];var z=A(R,2),q=h(z),U=A(h(q),2),Y=h(U,!0);g(U),g(q);var se=A(q,2);{var Q=j=>{var pe=Cb(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(()=>_e(Re,s(l).id)),$(j,pe)};V(se,j=>{s(l).id&&j(Q)})}var de=A(se,2);{var le=j=>{var pe=Tb(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(()=>_e(Re,s(l).vsid)),$(j,pe)};V(de,j=>{s(l).vsid&&j(le)})}var Me=A(de,2);{var Be=j=>{var pe=Ib(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(()=>_e(Re,s(l).provider)),$(j,pe)};V(Me,j=>{s(l).provider&&j(Be)})}var ge=A(Me,2);{var ce=j=>{var pe=Eb(),Pe=A(h(pe),2),Re=h(Pe);g(Pe),g(pe),k(()=>{var fe,Ke;return _e(Re,`Video: ${s(l).videoCodec||""} ${(fe=s(l).hdr?"(HDR)":"")!=null?fe:""}
|
|
143
143
|
&
|
|
144
|
-
Audio: ${r(l).audioCodec||""} ${(je=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?je:""}`)}),$(O,be)};R(ge,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(ae)})}var Pe=A(ge,2);{var ne=O=>{var be=Tb(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(()=>me(Be,r(l).viewport)),$(O,be)};R(Pe,O=>{r(l).viewport&&O(ne)})}var N=A(Pe,2);{var ue=O=>{var be=Ib(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(()=>me(Be,r(l).videoSize)),$(O,be)};R(N,O=>{r(l).videoSize&&O(ue)})}var _e=A(N,2);{var ze=O=>{var be=kb(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(()=>me(Be,r(l).cdn)),$(O,be)};R(_e,O=>{r(l).cdn&&O(ze)})}var re=A(_e,2);{var K=O=>{var be=Eb(),oe=A(h(be),2),Be=h(oe);g(oe),g(be),E(()=>{var Qe;return me(Be,`${(Qe=r(l).volume)!=null?Qe:""} %`)}),$(O,be)};R(re,O=>{r(l).volume&&O(K)})}var he=A(re,2);{var ee=O=>{var be=Pb(),oe=A(h(be),2),Be=h(oe);g(oe),g(be),E(Qe=>me(Be,`${Qe!=null?Qe:""} s`),[()=>r(l).buffer.toFixed(2)]),$(O,be)};R(he,O=>{r(l).buffer&&O(ee)})}var He=A(he,2);{var Ze=O=>{var be=Ab(),oe=A(h(be),2),Be=h(oe);g(oe),g(be),E(Qe=>me(Be,`${Qe!=null?Qe:""} s`),[()=>r(l).liveLatency.toFixed(2)]),$(O,be)};R(He,O=>{r(l).liveLatency&&O(Ze)})}var we=A(He,2);{var Ve=O=>{var be=Mb(),oe=A(h(be),2),Be=h(oe,!0);g(oe),g(be),E(Qe=>me(Be,Qe),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Qe})=>Qe).map(({value:Qe,title:je})=>`${je} ${((Qe!=null?Qe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(O,be)};R(we,O=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&O(Ve)})}var Ie=A(we,2),Ue=A(h(Ie),2),dt=h(Ue);g(Ue),g(Ie);var ct=A(Ie,2);{var ot=O=>{var be=Lb(),oe=A(h(be),2);cd(oe,{get values(){return r(T)}});var Be=A(oe,2),Qe=h(Be);g(Be),g(be),E(je=>me(Qe,`${je!=null?je:""} Kbps`),[()=>r(l).speed.toFixed(2)]),$(O,be)};R(ct,O=>{r(l).speed&&O(ot)})}var Et=A(ct,2);{var _t=O=>{var be=Vb(),oe=A(h(be),2);cd(oe,{get values(){return r(I)}});var Be=A(oe,2),Qe=h(Be);g(Be),g(be),E(je=>me(Qe,`${je!=null?je:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),$(O,be)};R(Et,O=>{r(l).bitrate&&O(_t)})}var Yt=A(Et,2),Zt=A(h(Yt),2);cd(Zt,{get values(){return r(C)}});var Lt=A(Zt,2),Nt=h(Lt,!0);g(Lt),g(Yt),g(W),g(P),E(O=>{var be,oe;k=J(P,1,"container svelte-4deykz",null,k,O),me(Q,r(l).version),me(dt,`${(be=r(y))!=null?be:""} / ${(oe=r(f))!=null?oe:""} frames`),me(Nt,r(u))},[()=>({"container-mobile":n()})]),$(t,P),U(),o()}at(["click"]);var Zh=require("@vkontakte/videoplayer-shared/es2018"),Nb=(t,e)=>{t.stopPropagation(),e()()},Db=L('<div class="close svelte-1ome55p"></div>'),Ob={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){F(e,!0),q(t,Ob);let i=m(e,"onClick",3,Zh.noop);var o=Db();o.__click=[Nb,i],$(t,o),U()}at(["click"]);var Xh=require("@vkontakte/videoplayer-shared/es2018"),Hb=L('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),Fb={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function pd(t,e){F(e,!0),q(t,Fb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,Xh.noop),n=5e3,a=X(void 0),s,d,l=X(0),p;Fe(()=>{i()&&(d=Date.now(),D(l,fe(requestAnimationFrame(y))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),D(l,0))},y=()=>{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(),D(l,fe(requestAnimationFrame(y)))):o()()};qt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),_n(()=>{f()});var u=Hb(),_=h(u);ht(_,w=>D(a,w),()=>r(a)),$e(2),g(u),$(t,u),U()}var Ub=(t,e,i)=>{e(!1),i()},zb=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),Wb={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function df(t,e){F(e,!0),q(t,Wb);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,y=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},b=()=>{e.clickCloseIcon(),_()};qt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var C=Oe(),T=pe(C);{var I=M=>{var P=zb(),k=A(pe(P),2),V=h(k),W=h(V),j=h(W,!0);g(W);var H=A(W,2);sa(H,{onClick:b}),g(V);var Q=A(V,2);Q.__click=[Ub,p,y];var ie=h(Q),Z=h(ie),se=h(Z);let ce;var Ee=A(se,2);{var Me=ne=>{let N=v(()=>a()&&n());pd(ne,{get isRunning(){return r(N)},onTimerEnded:w})};R(Ee,ne=>{n()&&ne(Me)})}g(Z),g(ie);var ge=A(ie,2),ae=h(ge),Pe=h(ae,!0);g(ae),g(ge),g(Q),g(k),E((ne,N)=>{me(j,ne),st(Z,`background-image: url('${e.thumb}')`),ce=J(se,1,"thumb-overlay svelte-jfbaax",null,ce,N),me(Pe,e.title)},[()=>z("end_screen_next_video"),()=>({withOpacity:n()})]),$(M,P)};R(T,M=>{e.isHide||M(I)})}$(t,C),U(),o()}at(["click"]);var xs=require("@vkontakte/videoplayer-core/es2018"),Jh=require("@vkontakte/videoplayer-shared/es2018"),dn=require("@vkontakte/videoplayer-statistics/es2018");var cf=(t,e)=>Math.min(+(t+e).toFixed(2),1),uf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Xc=(t,e,i)=>{let o=cf(e,i);e<1?t.actions.internal.setVolume(o):xe(t.state.muted$)&&t.actions.external.setMuted(!1)},Jc=(t,e,i)=>{let o=uf(e,i);e>0&&t.actions.internal.setVolume(o)};var ys=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var Kb=(t,e)=>{e(t)},Qb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Gb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function pf(t,e){var Lt,Nt;F(e,!0),q(t,Gb);let[i,o]=De(),n=()=>S(j,"$playbackState$",i),a=()=>S(H,"$adPlaybackState",i),s=()=>S(se,"$disabledControls$",i),d=()=>S(Q,"$positionExact$",i),l=()=>S(ie,"$duration$",i),p=()=>S(K,"$isAudioAvailable$",i),f=()=>S(Z,"$volume$",i),y=()=>S(ge,"$availablePlaybackRates$",i),u=()=>S(Me,"$currentPlaybackRate$",i),_=()=>S(ee,"$isInteractiveTime$",i),w=()=>S(He,"$showInteractiveTimeIndicatorTooltip$",i),b=()=>S(ue,"$isEnded$",i),C=()=>S(ce,"$muted$",i),T=()=>S(Ee,"$currentSubtitle$",i),I=()=>S(_e,"$overlayContainer$",i),M=m(e,"nextButtonActive",3,!1),P=m(e,"prevButtonActive",3,!1),k=Ce(),V=Kt(),W=k.getLogger().createComponentLog("KeyboardControls component"),j=k.state.playbackState$,H=k.ads.playbackState,Q=k.state.positionExact$,ie=k.state.duration$,Z=k.state.volume$,se=k.ui.controls.disabledControls$,ce=k.state.muted$,Ee=k.state.currentSubtitle$,Me=k.state.currentPlaybackRate$,ge=k.state.availablePlaybackRates$,ae=k.ui.contextMenu.openedByHotKey$,Pe=k.ui.contextMenu.lastActiveElem$,ne=k.ui.contextMenu.visible$,N=k.ui.contextMenu.position$,ue=k.state.isEnded$,_e=k.ui.overlayContainer$,ze=(Lt=k.callbacks)==null?void 0:Lt.onAudioDoesNotExistHint,re=(Nt=k.callbacks)==null?void 0:Nt.onAudioDisabledHint,K=k.state.isAudioAvailable$,he=k.state.isAudioDisabled,ee=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:He}=ro(),Ze=0,we=!0,Ve=X(void 0),Ie=O=>(O!==we&&(we=O,Ze=0),Ze+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*Ze)/1e3),Ue=(O,be=!1)=>{var ri,$i;let oe=O.target,Be=(ri=oe==null?void 0:oe.getAttribute("role"))==null?void 0:ri.includes("menuitem"),Qe=oe.classList.contains("btn"),je=O.code;if(Qe&&je==="Space")return!1;let Le=nh.has(je);if(Be&&Le)return!1;let it=!oh.has(je);if(O.ctrlKey&&it||O.altKey&&it||O.metaKey)return!1;let Je=Be&&je==="Escape";rh.has(je)||Je||e.hideContextMenu();let $t=n()===xs.PlaybackState.PLAYING||n()===xs.PlaybackState.PAUSED,pt=e.isAds&&(a()==="paused"||a()==="playing"),mt=!pt&&!s().has("TIMELINE");if(!($t||pt))return!1;W({message:`key down, code: ${je}, isExternal = ${be}`});let Dt=!1,Ge=()=>{Dt=!0,be||O.preventDefault()};switch(je){case"KeyJ":case"ArrowLeft":{if(!mt)break;if(O.ctrlKey||O.altKey){let tt=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(tt),tt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:tt.text}),Ge()}else{let tt=O.shiftKey?Ie(!1):V.controls.seekStepKeyboard/1e3,jt=Math.max(d()-tt,0);d()>0&&(k.actions.internal.seekTime(jt,dn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:tt.toString()}),Ge())}break}case"KeyL":case"ArrowRight":{if(!mt)break;if(O.ctrlKey||O.altKey){let tt=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(tt),tt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:tt.text}),Ge()}else{let tt=O.shiftKey?Ie(!0):V.controls.seekStepKeyboard/1e3,jt=Math.min(d()+tt,l());Math.round(d())<Math.round(l())&&(k.actions.internal.seekTime(jt,dn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:tt.toString()}),Ge())}break}case"ArrowUp":{if(ys({isAudioDisabled:he,audioDisabledHintCallback:re,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})){let tt=f(),jt=V.controls.volumeStepKeyboard,Pi=tt<=1;if(Xc(k,tt,jt),Pi){let Qi=Math.round(cf(tt,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Qi}})}}Ge();break}case"ArrowDown":{if(ys({isAudioDisabled:he,audioDisabledHintCallback:re,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})){let tt=f(),jt=V.controls.volumeStepKeyboard,Pi=tt>=0;if(Jc(k,tt,jt),Pi){let Qi=Math.round(uf(tt,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Qi}})}}Ge();break}case"Comma":{if(O.shiftKey){k.actions.internal.decrementPlaybackRate();let tt=y().find(jt=>jt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:tt==null?void 0:tt.displayValue}),Ge()}else{if(pt||n()!==xs.PlaybackState.PAUSED)break;let tt=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(tt,dn.SeekAction.DOUBLE_TAP),Ge())}break}case"Period":{if(O.shiftKey){k.actions.internal.incrementPlaybackRate();let tt=y().find(jt=>jt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:tt==null?void 0:tt.displayValue}),Ge()}else{if(pt||n()!==xs.PlaybackState.PAUSED)break;let tt=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(tt,dn.SeekAction.DOUBLE_TAP),Ge())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if(_()&&w()&&He.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let tt="PLAY";n()===xs.PlaybackState.PAUSED?tt="PAUSE":b()&&(tt="REPLAY"),e.showHotKeyHelpers({type:tt})}Ge();break;case"KeyM":{ys({isAudioDisabled:he,audioDisabledHintCallback:re,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),Ge();break}case"KeyF":e.toggleFullscreen(),Ge();break;case"KeyC":k.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:($i=T())==null?void 0:$i.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Ge();break;case"KeyI":k.actions.internal.togglePictureInPicture(),Ge();break;case"Digit1":case"Numpad1":if(O.shiftKey){let tt=Yh(I());N.set(tt),Pe.set(oe),ae.set(!0),ne.set(!0),Ge();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,dn.SeekAction.DOUBLE_TAP),Ge();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,dn.SeekAction.DOUBLE_TAP),Ge();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,dn.SeekAction.DOUBLE_TAP),Ge();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,dn.SeekAction.DOUBLE_TAP),Ge();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,dn.SeekAction.DOUBLE_TAP),Ge();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,dn.SeekAction.DOUBLE_TAP),Ge();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,dn.SeekAction.DOUBLE_TAP),Ge();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,dn.SeekAction.DOUBLE_TAP),Ge();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,dn.SeekAction.DOUBLE_TAP),Ge();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,dn.SeekAction.DOUBLE_TAP),Ge();break;case"Slash":{O.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),Ge());break}case"KeyN":O.shiftKey&&M()&&(k.actions.internal.nextVideoClick(),Ge());break;case"KeyP":O.shiftKey&&P()&&(k.actions.internal.prevVideoClick(),Ge());break;case"ShiftLeft":case"ShiftRight":Ge();break;case"Tab":case"Escape":case"Enter":break;default:(0,Jh.checkNever)(je);break}return Dt},dt=O=>{let be=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let oe=n()===xs.PlaybackState.PLAYING||n()===xs.PlaybackState.PAUSED,Be=e.isAds&&(a()==="paused"||a()==="playing");if(oe||Be)switch(be){case"ShiftLeft":case"ShiftRight":Ze=0;break}},ct=z("aria_label_video_player"),ot=()=>{var O;return(O=r(Ve))==null?void 0:O.focus()},Et=O=>O.type==="keydown"?Ue(O,!0):(O.type==="keyup"&&dt(O),!1);var _t=Qb();_t.__keyup=dt,_t.__keydown=[Kb,Ue],Ne(_t,"aria-label",ct);var Yt=h(_t);ve(Yt,()=>{var O;return(O=e.children)!=null?O:te}),g(_t),ht(_t,O=>D(Ve,O),()=>r(Ve)),$(t,_t);var Zt=U({focus:ot,handleExternalKeyboardEvent:Et});return o(),Zt}at(["keyup","keydown"]);var Yb=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),jb={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
|
|
144
|
+
Audio: ${s(l).audioCodec||""} ${(Ke=s(l).audioLanguage?`(${s(l).audioLanguage})`:"")!=null?Ke:""}`)}),$(j,pe)};V(ge,j=>{(s(l).videoCodec||s(l).audioCodec)&&j(ce)})}var Ae=A(ge,2);{var ae=j=>{var pe=kb(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(()=>_e(Re,s(l).viewport)),$(j,pe)};V(Ae,j=>{s(l).viewport&&j(ae)})}var N=A(Ae,2);{var Ye=j=>{var pe=Pb(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(()=>_e(Re,s(l).videoSize)),$(j,pe)};V(N,j=>{s(l).videoSize&&j(Ye)})}var ee=A(N,2);{var We=j=>{var pe=Ab(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(()=>_e(Re,s(l).cdn)),$(j,pe)};V(ee,j=>{s(l).cdn&&j(We)})}var ne=A(ee,2);{var me=j=>{var pe=Mb(),Pe=A(h(pe),2),Re=h(Pe);g(Pe),g(pe),k(()=>{var fe;return _e(Re,`${(fe=s(l).volume)!=null?fe:""} %`)}),$(j,pe)};V(ne,j=>{s(l).volume&&j(me)})}var $e=A(ne,2);{var Z=j=>{var pe=Lb(),Pe=A(h(pe),2),Re=h(Pe);g(Pe),g(pe),k(fe=>_e(Re,`${fe!=null?fe:""} s`),[()=>s(l).position.toFixed(2)]),$(j,pe)};V($e,j=>{s(l).position&&j(Z)})}var ze=A($e,2);{var et=j=>{var pe=Vb(),Pe=A(h(pe),2),Re=h(Pe);g(Pe),g(pe),k(fe=>_e(Re,`${fe!=null?fe:""} s`),[()=>s(l).buffer.toFixed(2)]),$(j,pe)};V(ze,j=>{s(l).buffer&&j(et)})}var Ce=A(ze,2);{var ie=j=>{var pe=Rb(),Pe=A(h(pe),2),Re=h(Pe);g(Pe),g(pe),k(fe=>_e(Re,`${fe!=null?fe:""} s`),[()=>s(l).liveLatency.toFixed(2)]),$(j,pe)};V(Ce,j=>{s(l).liveLatency&&j(ie)})}var Ee=A(Ce,2);{var qe=j=>{var pe=Bb(),Pe=A(h(pe),2),Re=h(Pe,!0);g(Pe),g(pe),k(fe=>_e(Re,fe),[()=>[{value:s(l).currentVideoSegmentLength,title:"Video:"},{value:s(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:fe})=>fe).map(({value:fe,title:Ke})=>`${Ke} ${((fe!=null?fe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(j,pe)};V(Ee,j=>{(s(l).currentVideoSegmentLength||s(l).currentAudioSegmentLength)&&j(qe)})}var rt=A(Ee,2),ct=A(h(rt),2),st=h(ct);g(ct),g(rt);var Tt=A(rt,2);{var pt=j=>{var pe=Nb(),Pe=A(h(pe),2);_d(Pe,{get values(){return s(T)}});var Re=A(Pe,2),fe=h(Re);g(Re),g(pe),k(Ke=>_e(fe,`${Ke!=null?Ke:""} Kbps`),[()=>s(l).speed.toFixed(2)]),$(j,pe)};V(Tt,j=>{s(l).speed&&j(pt)})}var Yt=A(Tt,2);{var ni=j=>{var pe=Db(),Pe=A(h(pe),2);_d(Pe,{get values(){return s(I)}});var Re=A(Pe,2),fe=h(Re);g(Re),g(pe),k(Ke=>_e(fe,`${Ke!=null?Ke:""} Kbps`),[()=>s(l).bitrate.toFixed(2)]),$(j,pe)};V(Yt,j=>{s(l).bitrate&&j(ni)})}var Ft=A(Yt,2),Pt=A(h(Ft),2);_d(Pt,{get values(){return s(C)}});var te=A(Pt,2),Lt=h(te,!0);g(te),g(Ft),g(z),g(P),k(j=>{var pe,Pe;E=J(P,1,"container svelte-4deykz",null,E,j),_e(Y,s(l).version),_e(st,`${(pe=s(b))!=null?pe:""} / ${(Pe=s(f))!=null?Pe:""} frames`),_e(Lt,s(u))},[()=>({"container-mobile":n()})]),$(t,P),H(),o()}dt(["click"]);var s1=require("@vkontakte/videoplayer-shared/es2018"),Fb=(t,e)=>{t.stopPropagation(),e()()},Ub=L('<div class="close svelte-1ome55p"></div>'),zb={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 ga(t,e){O(e,!0),W(t,zb);let i=m(e,"onClick",3,s1.noop);var o=Ub();o.__click=[Fb,i],$(t,o),H()}dt(["click"]);var a1=require("@vkontakte/videoplayer-shared/es2018"),Wb=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>'),qb={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 $d(t,e){O(e,!0),W(t,qb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,a1.noop),n=5e3,a=X(void 0),r,d,l=X(0),p;Ue(()=>{i()&&(d=Date.now(),D(l,ve(requestAnimationFrame(b))))});let f=()=>{s(l)&&(cancelAnimationFrame(s(l)),D(l,0))},b=()=>{if(!i()){f();return}p=(Date.now()-d)/n,p<1?(r==null||r.clearRect(0,0,100,100),r==null||r.beginPath(),r==null||r.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),r==null||r.stroke(),D(l,ve(requestAnimationFrame(b)))):o()()};Nt(()=>{if(r=s(a).getContext("2d"),!!r)return r.lineWidth=6,r.lineCap="round",r.strokeStyle="#fff",()=>{f()}}),In(()=>{f()});var u=Wb(),_=h(u);it(_,w=>D(a,w),()=>s(a)),we(2),g(u),$(t,u),H()}var Kb=(t,e,i)=>{e(!1),i()},Qb=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),Gb={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 gf(t,e){O(e,!0),W(t,Gb);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),r=Ie(),d=r.ui.autoplayNextEnabled$,l=r.ui.timerNextVideoRunning$,p=r.actions.internal.nextVideoClick,f=r.actions.internal.nextVideoAnnouncementShow,b=r.actions.internal.nextVideoAnnouncementClick,u=r.actions.internal.nextVideoAnnouncementAuto,_=r.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),_()};Nt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var C=He(),T=he(C);{var I=M=>{var P=Qb(),E=A(he(P),2),R=h(E),z=h(R),q=h(z,!0);g(z);var U=A(z,2);ga(U,{onClick:y}),g(R);var Y=A(R,2);Y.__click=[Kb,p,b];var se=h(Y),Q=h(se),de=h(Q);let le;var Me=A(de,2);{var Be=ae=>{let N=v(()=>a()&&n());$d(ae,{get isRunning(){return s(N)},onTimerEnded:w})};V(Me,ae=>{n()&&ae(Be)})}g(Q),g(se);var ge=A(se,2),ce=h(ge),Ae=h(ce,!0);g(ce),g(ge),g(Y),g(E),k((ae,N)=>{_e(q,ae),at(Q,`background-image: url('${e.thumb}')`),le=J(de,1,"thumb-overlay svelte-jfbaax",null,le,N),_e(Ae,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),$(M,P)};V(T,M=>{e.isHide||M(I)})}$(t,C),H(),o()}dt(["click"]);var Bs=require("@vkontakte/videoplayer-core/es2018"),l1=require("@vkontakte/videoplayer-shared/es2018"),gn=require("@vkontakte/videoplayer-statistics/es2018");var hf=(t,e)=>Math.min(+(t+e).toFixed(2),1),_f=(t,e)=>Math.max(+(t-e).toFixed(2),0),nu=(t,e,i)=>{let o=hf(e,i);e<1?t.actions.internal.setVolume(o):xe(t.state.muted$)&&t.actions.external.setMuted(!1)},ru=(t,e,i)=>{let o=_f(e,i);e>0&&t.actions.internal.setVolume(o)};var Rs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var jb=(t,e)=>{e(t)},Zb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Xb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function bf(t,e){var Ft,Pt;O(e,!0),W(t,Xb);let[i,o]=De(),n=()=>S(q,"$playbackState$",i),a=()=>S(U,"$adPlaybackState",i),r=()=>S(de,"$disabledControls$",i),d=()=>S(Y,"$positionExact$",i),l=()=>S(se,"$duration$",i),p=()=>S(me,"$isAudioAvailable$",i),f=()=>S(Q,"$volume$",i),b=()=>S(ge,"$availablePlaybackRates$",i),u=()=>S(Be,"$currentPlaybackRate$",i),_=()=>S(Z,"$isInteractiveTime$",i),w=()=>S(ze,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(Ye,"$isEnded$",i),C=()=>S(le,"$muted$",i),T=()=>S(Me,"$currentSubtitle$",i),I=()=>S(ee,"$overlayContainer$",i),M=m(e,"nextButtonActive",3,!1),P=m(e,"prevButtonActive",3,!1),E=Ie(),R=Ut(),z=E.getLogger().createComponentLog("KeyboardControls component"),q=E.state.playbackState$,U=E.ads.playbackState,Y=E.state.positionExact$,se=E.state.duration$,Q=E.state.volume$,de=E.ui.controls.disabledControls$,le=E.state.muted$,Me=E.state.currentSubtitle$,Be=E.state.currentPlaybackRate$,ge=E.state.availablePlaybackRates$,ce=E.ui.contextMenu.openedByHotKey$,Ae=E.ui.contextMenu.lastActiveElem$,ae=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,Ye=E.state.isEnded$,ee=E.ui.overlayContainer$,We=(Ft=E.callbacks)==null?void 0:Ft.onAudioDoesNotExistHint,ne=(Pt=E.callbacks)==null?void 0:Pt.onAudioDisabledHint,me=E.state.isAudioAvailable$,$e=E.state.isAudioDisabled,Z=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:ze}=co(),et=0,Ce=!0,ie=X(void 0),Ee=te=>(te!==Ce&&(Ce=te,et=0),et+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*et)/1e3),qe=(te,Lt=!1)=>{var wi,qt;let j=te.target,pe=(wi=j==null?void 0:j.getAttribute("role"))==null?void 0:wi.includes("menuitem"),Pe=j.classList.contains("btn"),Re=te.code;if(Pe&&Re==="Space")return!1;let fe=fh.has(Re);if(pe&&fe)return!1;let Ke=!ph.has(Re);if(te.ctrlKey&&Ke||te.altKey&&Ke||te.metaKey)return!1;let ot=pe&&Re==="Escape";mh.has(Re)||ot||e.hideContextMenu();let Xe=n()===Bs.PlaybackState.PLAYING||n()===Bs.PlaybackState.PAUSED,wt=e.isAds&&(a()==="paused"||a()==="playing"),gt=!wt&&!r().has("TIMELINE");if(!(Xe||wt))return!1;z({message:`key down, code: ${Re}, isExternal = ${Lt}`});let Kt=!1,_t=()=>{Kt=!0,Lt||te.preventDefault()};switch(Re){case"KeyJ":case"ArrowLeft":{if(!gt)break;if(te.ctrlKey||te.altKey){let Ze=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(Ze),Ze&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ze.text}),_t()}else{let Ze=te.shiftKey?Ee(!1):R.controls.seekStepKeyboard/1e3,Jt=Math.max(d()-Ze,0);d()>0&&(E.actions.internal.seekTime(Jt,gn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ze.toString()}),_t())}break}case"KeyL":case"ArrowRight":{if(!gt)break;if(te.ctrlKey||te.altKey){let Ze=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(Ze),Ze&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ze.text}),_t()}else{let Ze=te.shiftKey?Ee(!0):R.controls.seekStepKeyboard/1e3,Jt=Math.min(d()+Ze,l());Math.round(d())<Math.round(l())&&(E.actions.internal.seekTime(Jt,gn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ze.toString()}),_t())}break}case"ArrowUp":{if(Rs({isAudioDisabled:$e,audioDisabledHintCallback:ne,isAudioAvailable:p(),audioIsNotExistHintCallback:We,isAds:e.isAds})){let Ze=f(),Jt=R.controls.volumeStepKeyboard,Gi=Ze<=1;if(nu(E,Ze,Jt),Gi){let Oi=Math.round(hf(Ze,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Oi}})}}_t();break}case"ArrowDown":{if(Rs({isAudioDisabled:$e,audioDisabledHintCallback:ne,isAudioAvailable:p(),audioIsNotExistHintCallback:We,isAds:e.isAds})){let Ze=f(),Jt=R.controls.volumeStepKeyboard,Gi=Ze>=0;if(ru(E,Ze,Jt),Gi){let Oi=Math.round(_f(Ze,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Oi}})}}_t();break}case"Comma":{if(te.shiftKey){E.actions.internal.decrementPlaybackRate();let Ze=b().find(Jt=>Jt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ze==null?void 0:Ze.displayValue}),_t()}else{if(wt||n()!==Bs.PlaybackState.PAUSED)break;let Ze=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(Ze,gn.SeekAction.DOUBLE_TAP),_t())}break}case"Period":{if(te.shiftKey){E.actions.internal.incrementPlaybackRate();let Ze=b().find(Jt=>Jt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:Ze==null?void 0:Ze.displayValue}),_t()}else{if(wt||n()!==Bs.PlaybackState.PAUSED)break;let Ze=Math.min(d()+R.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(Ze,gn.SeekAction.DOUBLE_TAP),_t())}break}case"KeyK":case"Space":if(!r().has("PLAY_BUTTON"))if(_()&&w()&&ze.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let Ze="PLAY";n()===Bs.PlaybackState.PAUSED?Ze="PAUSE":y()&&(Ze="REPLAY"),e.showHotKeyHelpers({type:Ze})}_t();break;case"KeyM":{Rs({isAudioDisabled:$e,audioDisabledHintCallback:ne,isAudioAvailable:p(),audioIsNotExistHintCallback:We,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),_t();break}case"KeyF":e.toggleFullscreen(),_t();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(qt=T())==null?void 0:qt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),_t();break;case"KeyI":E.actions.internal.togglePictureInPicture(),_t();break;case"Digit1":case"Numpad1":if(te.shiftKey){let Ze=n1(I());N.set(Ze),Ae.set(j),ce.set(!0),ae.set(!0),_t();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,gn.SeekAction.DOUBLE_TAP),_t();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,gn.SeekAction.DOUBLE_TAP),_t();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,gn.SeekAction.DOUBLE_TAP),_t();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,gn.SeekAction.DOUBLE_TAP),_t();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,gn.SeekAction.DOUBLE_TAP),_t();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,gn.SeekAction.DOUBLE_TAP),_t();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,gn.SeekAction.DOUBLE_TAP),_t();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,gn.SeekAction.DOUBLE_TAP),_t();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,gn.SeekAction.DOUBLE_TAP),_t();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,gn.SeekAction.DOUBLE_TAP),_t();break;case"Slash":{te.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),_t());break}case"KeyN":te.shiftKey&&M()&&(E.actions.internal.nextVideoClick(),_t());break;case"KeyP":te.shiftKey&&P()&&(E.actions.internal.prevVideoClick(),_t());break;case"ShiftLeft":case"ShiftRight":_t();break;case"Tab":case"Escape":case"Enter":break;default:(0,l1.checkNever)(Re);break}return Kt},rt=te=>{let Lt=te.code;if(te.ctrlKey||te.altKey||te.metaKey)return;let j=n()===Bs.PlaybackState.PLAYING||n()===Bs.PlaybackState.PAUSED,pe=e.isAds&&(a()==="paused"||a()==="playing");if(j||pe)switch(Lt){case"ShiftLeft":case"ShiftRight":et=0;break}},ct=F("aria_label_video_player"),st=()=>{var te;return(te=s(ie))==null?void 0:te.focus()},Tt=te=>te.type==="keydown"?qe(te,!0):(te.type==="keyup"&&rt(te),!1);var pt=Zb();pt.__keyup=rt,pt.__keydown=[jb,qe],Ne(pt,"aria-label",ct);var Yt=h(pt);be(Yt,()=>{var te;return(te=e.children)!=null?te:oe}),g(pt),it(pt,te=>D(ie,te),()=>s(ie)),$(t,pt);var ni=H({focus:st,handleExternalKeyboardEvent:Tt});return o(),ni}dt(["keyup","keydown"]);var Jb=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>'),e$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
|
|
145
145
|
|
|
146
146
|
@keyframes svelte-1dbnjb1-dot_animation {
|
|
147
147
|
0% {
|
|
@@ -154,7 +154,7 @@ Try switching the\xA0quality to\xA0Auto.`},Vh=A_;var is=new Map;is.set(el.Interf
|
|
|
154
154
|
opacity: 0.2;
|
|
155
155
|
}
|
|
156
156
|
}.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
|
|
157
|
-
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function
|
|
157
|
+
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ha(t,e){W(t,e$);let i=m(e,"style",3,"");var o=Jb();k(()=>at(o,i())),$(t,o)}var t$=Se('<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 $f(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=t$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i})),$(t,o)}var _a=require("@vkontakte/videoplayer-shared/es2018"),i$=t=>{t.stopPropagation()},o$=L("<button><!></button>"),n$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
|
|
158
158
|
|
|
159
159
|
/* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
|
|
160
160
|
|
|
@@ -162,22 +162,22 @@ Try switching the\xA0quality to\xA0Auto.`},Vh=A_;var is=new Map;is.set(el.Interf
|
|
|
162
162
|
/* mobile */
|
|
163
163
|
/* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
|
|
164
164
|
.btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
|
|
165
|
-
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Bt(t,e){
|
|
165
|
+
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Bt(t,e){O(e,!0),W(t,n$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),a=m(e,"testId",3,void 0),r=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),l=m(e,"ref",15,void 0),p=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),b=m(e,"tabIndex",3,0),u=m(e,"click",3,_a.noop),_=m(e,"focus",3,_a.noop),w=m(e,"blur",3,_a.noop),y=v(()=>u()===_a.noop?null:P=>{P.stopPropagation(),u()(P)}),C=v(()=>_()===_a.noop?null:P=>{P.preventDefault(),_()()}),T=v(()=>w()===_a.noop?null:P=>{P.preventDefault(),w()()});var I=o$();I.__pointerdown=[i$],I.__click=function(...P){var E;(E=s(y))==null||E.apply(this,P)};var M=h(I);be(M,()=>{var P;return(P=e.children)!=null?P:oe}),g(I),it(I,P=>l(P),()=>l()),k(()=>{var P,E,R,z,q,U,Y;J(I,1,`btn ${(P=i())!=null?P:""}`,"svelte-wr0kwr"),at(I,o()||null),I.disabled=(E=n())!=null?E:null,Ne(I,"aria-hidden",(R=r())!=null?R:null),Ne(I,"aria-label",(z=d())!=null?z:null),Ne(I,"aria-keyshortcuts",(q=p())!=null?q:null),Ne(I,"aria-expanded",(U=f())!=null?U:null),Ne(I,"data-testid",(Y=a())!=null?Y:null),Ne(I,"tabindex",b()),Ne(I,"role",e.role)}),Et("focus",I,function(...P){var E;(E=s(C))==null||E.apply(this,P)}),Et("blur",I,function(...P){var E;(E=s(T))==null||E.apply(this,P)}),$(t,I),H()}dt(["pointerdown","click"]);var r$=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),s$=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>'),a$={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 yf(t,e){O(e,!0),W(t,a$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=s$(),r=h(a),d=h(r);{var l=u=>{var _=r$(),w=h(_),y=h(w,!0);g(w);var C=A(w,2);{var T=I=>{Bt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(M,P)=>{$f(M,{})},$$slots:{default:!0}})};V(C,I=>{o()&&I(T)})}g(_),k(()=>_e(y,e.title)),$(u,_)};V(d,u=>{i()&&u(l)})}var p=A(d,2),f=h(p),b=h(f);be(b,()=>{var u;return(u=e.children)!=null?u:oe}),g(f),g(p),g(r),g(a),$(t,a),H()}var l$=new Set(["BR"]),d1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],r=a.tagName;l$.has(r)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var d$=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>'),c$=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>'),u$=L('<div class="hot-key-map svelte-quklnq"></div>'),p$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
|
|
166
166
|
.hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
|
|
167
|
-
.hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function vf(t,e){F(e,!1),q(t,l$);let[i,o]=De(),n=()=>S(s,"$data",i),a=Ce(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};yr(),mf(t,{get title(){return n().title},onClose:l,children:(p,f)=>{var y=a$();yi(y,5,()=>n().groups,({title:u,items:_})=>u,(u,_)=>{let w=()=>r(_).title,b=()=>r(_).items;var C=s$(),T=h(C),I=h(T,!0);g(T);var M=A(T,2);yi(M,5,b,({description:P,value:k})=>k,(P,k)=>{let V=()=>r(k).description,W=()=>r(k).value;var j=r$(),H=h(j),Q=h(H);Ql(Q,()=>e1(V()),!1,!1),g(H);var ie=A(H,2),Z=h(ie,!0);g(ie),g(j),E(()=>me(Z,W())),$(P,j)}),g(M),g(C),E(()=>me(I,w())),$(u,C)}),g(y),$(p,y)},$$slots:{default:!0}}),U(),o()}var lm=require("@vkontakte/videoplayer-shared/es2018");var ga=require("@vkontakte/videoplayer-core/es2018");var bL=require("@vkontakte/videoplayer-shared/es2018");var d$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),c$={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function gf(t,e){q(t,c$);var i=d$(),o=h(i);ve(o,()=>{var n;return(n=e.children)!=null?n:te}),g(i),$(t,i)}var cl=require("@vkontakte/videoplayer-shared/es2018");var u$=ye('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function hf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=u$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var p$=ye('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function _f(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=p$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var f$=ye('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function bf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=f$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var m$=ye('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function fd(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=m$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),$(t,o)}var v$=ye('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function md(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=v$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),$(t,o)}var eu=t=>{switch(t){case cl.VideoQuality.Q_720P:return bf;case cl.VideoQuality.Q_1080P:return fd;case cl.VideoQuality.Q_1440P:return md;case cl.VideoQuality.Q_2160P:return hf;case cl.VideoQuality.Q_4320P:return _f}};var g$=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function $f(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=g$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),$(t,o)}var h$=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function yf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=h$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),$(t,o)}var _$=L('<div aria-hidden="true"><!> <!></div>'),b$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function vd(t,e){F(e,!0),q(t,b$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=v(()=>eu(o())),a=v(()=>!!r(n)&&[fd,md].includes(r(n)));var s=Oe(),d=pe(s);{var l=f=>{$f(f,{})},p=f=>{var y=_$();let u;var _=h(y);{var w=T=>{gf(T,{children:(I,M)=>{var P=Oe(),k=pe(P);xi(k,()=>r(n),(V,W)=>{W(V,{})}),$(I,P)},$$slots:{default:!0}})};R(_,T=>{r(n)&&T(w)})}var b=A(_,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");yf(b,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g(y),E(T=>u=J(y,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(a)})]),$(f,y)};R(d,f=>{i()?f(l):f(p,!1)})}$(t,s),U()}var $$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),y$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ul(t,e){F(e,!0),q(t,y$);let[i,o]=De(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(f,"$settingsMenuVisible",i),s=()=>S(_,"$isMobile",i),d=()=>S(p,"$currentQuality",i),l=Ce(),p=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,y=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,_=l.ui.isMobile,w=l.ui.t,b=X(void 0);Fe(()=>{n()&&Ct(()=>{e.ref$.set(r(b))})});let C=w("aria_label_settings");async function T(M){let P=$s(M);a()?u():y(P,bo)}let I=v(()=>a()?"opened":"");Bt(t,{get className(){return r(I)},testId:"btn-settings",click:T,ariaLabel:C,get ariaExpanded(){return a()},get ref(){return r(b)},set ref(M){D(b,fe(M))},children:(M,P)=>{var k=$$(),V=h(k);vd(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(k),$(M,k)},$$slots:{default:!0}}),U(),o()}var x$=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"></path></svg>');function xf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=x$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),$(t,o)}var w$=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"></path></svg>');function gd(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=w$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),$(t,o)}function wf(t,e){F(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ce().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Bt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Dr.KeyC},children:(s,d)=>{var l=Oe(),p=pe(l);{var f=u=>{xf(u,{})},y=u=>{gd(u,{})};R(p,u=>{i()?u(f):u(y,!1)})}$(s,l)},$$slots:{default:!0}}),U()}var S$=L('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),C$=L('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),T$={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function hd(t,e){F(e,!0),q(t,T$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),a=v(()=>ln(e.duration)),s=v(()=>ln(e.position));var d=C$();let l;var p=h(d),f=h(p,!0);g(p);var y=A(p,2);{var u=_=>{var w=S$(),b=h(w,!0);g(w),E(()=>me(b,r(a))),$(_,w)};R(y,_=>{o()&&_(u)})}g(d),ht(d,_=>n(_),()=>n()),E(_=>{l=J(d,1,"time svelte-sz9er7",null,l,_),me(f,r(s))},[()=>({mobile:i()})]),$(t,d),U()}var bd=require("@vkontakte/videoplayer-shared/es2018");var I$=ye('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),k$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
|
|
167
|
+
.hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function xf(t,e){O(e,!1),W(t,p$);let[i,o]=De(),n=()=>S(r,"$data",i),a=Ie(),{data:r,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Pr(),yf(t,{get title(){return n().title},onClose:l,children:(p,f)=>{var b=u$();$i(b,5,()=>n().groups,({title:u,items:_})=>u,(u,_)=>{let w=()=>s(_).title,y=()=>s(_).items;var C=c$(),T=h(C),I=h(T,!0);g(T);var M=A(T,2);$i(M,5,y,({description:P,value:E})=>E,(P,E)=>{let R=()=>s(E).description,z=()=>s(E).value;var q=d$(),U=h(q),Y=h(U);td(Y,()=>d1(R()),!1,!1),g(U);var se=A(U,2),Q=h(se,!0);g(se),g(q),k(()=>_e(Q,z())),$(P,q)}),g(M),g(C),k(()=>_e(I,w())),$(u,C)}),g(b),$(p,b)},$$slots:{default:!0}}),H(),o()}var hm=require("@vkontakte/videoplayer-shared/es2018");var Ca=require("@vkontakte/videoplayer-core/es2018");var CL=require("@vkontakte/videoplayer-shared/es2018");var f$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),m$={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 wf(t,e){W(t,m$);var i=f$(),o=h(i);be(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),$(t,i)}var ml=require("@vkontakte/videoplayer-shared/es2018");var v$=Se('<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 Sf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=v$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var g$=Se('<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=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=g$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var h$=Se('<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 Tf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=h$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var _$=Se('<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 yd(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=_$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),$(t,o)}var b$=Se('<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 xd(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=b$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),$(t,o)}var su=t=>{switch(t){case ml.VideoQuality.Q_720P:return Tf;case ml.VideoQuality.Q_1080P:return yd;case ml.VideoQuality.Q_1440P:return xd;case ml.VideoQuality.Q_2160P:return Sf;case ml.VideoQuality.Q_4320P:return Cf}};var $$=Se('<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 If(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=$$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),$(t,o)}var y$=Se('<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 Ef(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=y$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),$(t,o)}var x$=L('<div aria-hidden="true"><!> <!></div>'),w$={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 wd(t,e){O(e,!0),W(t,w$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=v(()=>su(o())),a=v(()=>!!s(n)&&[yd,xd].includes(s(n)));var r=He(),d=he(r);{var l=f=>{If(f,{})},p=f=>{var b=x$();let u;var _=h(b);{var w=T=>{wf(T,{children:(I,M)=>{var P=He(),E=he(P);yi(E,()=>s(n),(R,z)=>{z(R,{})}),$(I,P)},$$slots:{default:!0}})};V(_,T=>{s(n)&&T(w)})}var y=A(_,2);let C=v(()=>s(n)?"settings-icon--labeled":"settings-icon");Ef(y,{get"data-testid"(){return s(C)},fill:"var(--btn-color, #fff)"}),g(b),k(T=>u=J(b,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:s(a)})]),$(f,b)};V(d,f=>{i()?f(l):f(p,!1)})}$(t,r),H()}var S$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),C$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function vl(t,e){O(e,!0),W(t,C$);let[i,o]=De(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(f,"$settingsMenuVisible",i),r=()=>S(_,"$isMobile",i),d=()=>S(p,"$currentQuality",i),l=Ie(),p=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,b=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,_=l.ui.isMobile,w=l.ui.t,y=X(void 0);Ue(()=>{n()&&Ct(()=>{e.ref$.set(s(y))})});let C=w("aria_label_settings");async function T(M){let P=Vs(M);a()?u():b(P,xo)}let I=v(()=>a()?"opened":"");Bt(t,{get className(){return s(I)},testId:"btn-settings",click:T,ariaLabel:C,get ariaExpanded(){return a()},role:"button",get ref(){return s(y)},set ref(M){D(y,ve(M))},children:(M,P)=>{var E=S$(),R=h(E);wd(R,{get isMobile(){return r()},get currentQuality(){return d()}}),g(E),$(M,E)},$$slots:{default:!0}}),H(),o()}var T$=Se('<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 kf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=T$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),$(t,o)}var I$=Se('<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 Sd(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=I$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),$(t,o)}function Pf(t,e){O(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ie().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Bt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(a)},get click(){return e.click},get ariaKeyShortCut(){return jr.KeyC},role:"button",children:(r,d)=>{var l=He(),p=he(l);{var f=u=>{kf(u,{})},b=u=>{Sd(u,{})};V(p,u=>{i()?u(f):u(b,!1)})}$(r,l)},$$slots:{default:!0}}),H()}var E$=L('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),k$=L('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),P$={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){O(e,!0),W(t,P$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),a=v(()=>vn(e.duration)),r=v(()=>vn(e.position));var d=k$();let l;var p=h(d),f=h(p,!0);g(p);var b=A(p,2);{var u=_=>{var w=E$(),y=h(w,!0);g(w),k(()=>_e(y,s(a))),$(_,w)};V(b,_=>{o()&&_(u)})}g(d),it(d,_=>n(_),()=>n()),k(_=>{l=J(d,1,"time svelte-sz9er7",null,l,_),_e(f,s(r))},[()=>({mobile:i()})]),$(t,d),H()}var Id=require("@vkontakte/videoplayer-shared/es2018");var A$=Se('<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>'),M$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
|
|
168
168
|
.icon[data-value='off'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:visible;}.icon[data-value='mid'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua),
|
|
169
|
-
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function
|
|
169
|
+
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Ns(t,e){W(t,M$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=v(()=>n(i(),o()));var r=A$();k(()=>{var d;Ne(r,"data-value",s(a)),Ne(r,"data-testid",`volume-${(d=s(a))!=null?d:""}-icon`)}),$(t,r)}var Bo=require("@vkontakte/videoplayer-shared/es2018");var au=require("@vkontakte/videoplayer-shared/es2018");var c1=require("@vkontakte/videoplayer-shared/es2018");var L$=L('<div class="overlay"><!></div>');function Af(t,e){O(e,!0);let[i,o]=De(),n=()=>S(r,"$overlayContainer$",i),r=Ie().ui.overlayContainer$,d=X(void 0),l=u=>{!u||!s(d)||!u.contains(s(d))||u.removeChild(s(d))},p=u=>{!u||!s(d)||u.contains(s(d))||u.appendChild(s(d))};Ue(()=>{p(n())}),Nt(()=>(p(n()),()=>l(n())));var f=L$(),b=h(f);be(b,()=>{var u;return(u=e.children)!=null?u:oe}),g(f),it(f,u=>D(d,u),()=>s(d)),$(t,f),H(),o()}var V$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),R$=L("<div><!></div> <!>",1),B$={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function ba(t,e){O(e,!0),W(t,B$);let[i,o]=De(),n=()=>S(Y,"$overlayContainer$",i),a=()=>S(U,"$containerSize",i),r=m(e,"isMobile",3,!1),d=m(e,"content",3,""),l=m(e,"active",15,!1),p=m(e,"translateX",3,0),f=m(e,"translateY",3,0),b=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),_=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,c1.noop),y=5,C=X(void 0),T=X(void 0),I,M=X(0),P=X(0),E=X(0),R=X(0),z=Ut(),q=Ie(),U=q.ui.playerSize,Y=q.ui.overlayContainer$;Ue(()=>{Ct(()=>{w()(l())})});let se=q.getLogger().createComponentLog("Tooltip component"),Q=()=>{if(!n()||!s(T)||!s(C))return;D(P,y);let Ce=n().getBoundingClientRect(),ie=s(C).getBoundingClientRect(),Ee=ie.width,qe=s(T).clientWidth,rt=a().width,ct=(Ee-qe)/2,st=ie.left+p()-Ce.left,Tt=st+ct,pt=ie.top+f()-Ce.top,Yt=qe/2-y,ni=Tt<8,Ft=Tt+qe>rt-8;ni&&(Tt=8,Yt=st+ie.width/2-2.5*y),Ft&&(Tt=rt-8-qe,Yt=ie.left-Ce.left+ie.width/2-Tt-y),D(E,ve(Tt)),D(R,pt),D(M,ve(Yt))},de=()=>{!n()||!s(T)||!s(C)||D(P,-y)},le=()=>{if(!n()||!s(T)||!s(C))return;D(M,y);let Ce=n().getBoundingClientRect(),ie=s(C).getBoundingClientRect(),Ee=ie.height,qe=s(T).clientHeight,rt=(Ee-qe)/2+qe,ct=ie.left+p()-Ce.left-s(T).clientWidth,st=2,Tt=ct-y;Tt<8&&(Tt=8);let Yt=ie.top+f()-Ce.top+rt,ni=st-rt/2,Ft=st-y;D(E,ve(Tt)),D(R,Yt),D(P,ni),D(M,Ft)},Me=()=>{!n()||!s(T)||!s(C)||D(M,-y)},Be=()=>{switch(_()){case"top":Q();break;case"bottom":de();break;case"left":le();break;default:Me()}},ge=()=>{try{if(!n()||!s(C))return;Be(),l(!0)}catch(Ce){se({message:String(Ce)})}},ce=()=>{l(!1)},Ae=()=>{s(T)&&(I||(I=window.setTimeout(ge,z.controls.hideTimeoutTooltips)),l()&&ge())},ae=()=>{ce(),window.clearTimeout(I),I=void 0},N=(Ce,ie,Ee)=>{let qe="";switch(_()){case"top":qe=`transform: translate(${Ce}px, ${ie}px);`;break;case"bottom":qe=`transform: translate(${Ce}px, ${ie}px); top: auto; bottom: 100%;`;break;case"left":qe=`transform: translate(${Ce}px, ${ie}px); left: 0; right: auto;`;break;default:qe=`transform: translate(${Ce}px, ${ie}px);`}return qe+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,qe+=` opacity: ${Ee?1:0}; visibility: ${Ee?"visible":"hidden"}`,qe},Ye=(Ce,ie)=>{let Ee="";switch(_()){case"top":Ee=`transform: translate(${Ce}px, ${ie}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ee=`transform: translate(${Ce}px, ${ie}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ee=`transform: translate(${Ce}px, ${ie}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ee=`transform: translate(${Ce}px, ${ie}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ee},ee=v(()=>N(s(E),s(R),l())),We=v(()=>Ye(s(M),s(P)));Nt(Be),In(()=>window.clearTimeout(I));var ne=R$(),me=he(ne);let $e;me.__mousemove=Ae,me.__mousedown=ae,me.__mouseup=Ae;var Z=h(me);be(Z,()=>{var Ce;return(Ce=e.children)!=null?Ce:oe}),g(me),it(me,Ce=>D(C,Ce),()=>s(C));var ze=A(me,2);{var et=Ce=>{Af(Ce,{children:(ie,Ee)=>{var qe=V$(),rt=h(qe),ct=h(rt,!0);g(rt);var st=A(rt,2);g(qe),it(qe,Tt=>D(T,Tt),()=>s(T)),k(()=>{at(qe,s(ee)),_e(ct,d()),at(st,s(We))}),$(ie,qe)},$$slots:{default:!0}})};V(ze,Ce=>{d()&&!r()&&Ce(et)})}k(Ce=>$e=J(me,1,"tooltip-wrapper svelte-hxlyne",null,$e,Ce),[()=>({"full-width":b()})]),Et("mouseenter",me,Ae),Et("mouseleave",me,ae),$(t,ne),H(),o()}dt(["mousemove","mousedown","mouseup"]);var u1=t=>{t.stopPropagation()},N$=L("<div><!></div>"),D$={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Ro(t,e){O(e,!0),W(t,D$);let[i,o]=De(),n=()=>S(p,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),r=Ie(),d=co(),l=r.ui.isMobile,p=d.graphIsOpened$,f=r.ui.t,b=m(e,"className",3,""),u=m(e,"disabled",3,!1),_=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),y=m(e,"width",15,void 0),C=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),I=m(e,"tooltipActive",3,!1),M=m(e,"tooltipPlacement",3,"top"),P=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),R=m(e,"onTooltipVisibilityChange",3,au.noop),z=m(e,"initialTranslateXPx",3,0),q=m(e,"initialTranslateYPx",19,()=>-18),U=m(e,"mouseEnter",3,au.noop),Y=m(e,"mouseLeave",3,au.noop),se=v(()=>u()?n()?f("tooltip_disabled_when_graph_on"):P():T());var Q=N$();Q.__pointerdown=[u1],Q.__click=[u1];var de=h(Q);{var le=Be=>{ba(Be,{get content(){return s(se)},get translateX(){return z()},get translateY(){return q()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return M()},get onVisibilityChange(){return R()},children:(ge,ce)=>{var Ae=He(),ae=he(Ae);be(ae,()=>{var N;return(N=e.children)!=null?N:oe}),$(ge,Ae)},$$slots:{default:!0}})},Me=Be=>{var ge=He(),ce=he(ge);be(ce,()=>{var Ae;return(Ae=e.children)!=null?Ae:oe}),$(Be,ge)};V(de,Be=>{_()&&s(se)&&!a()?Be(le):Be(Me,!1)})}g(Q),it(Q,Be=>w(Be),()=>w()),k(()=>{var Be;J(Q,1,`btn-container ${(Be=b())!=null?Be:""}`,"svelte-p9r045"),Ne(Q,"aria-hidden",E()||null)}),Et("mouseenter",Q,function(...Be){var ge;(ge=U())==null||ge.apply(this,Be)}),Et("mouseleave",Q,function(...Be){var ge;(ge=Y())==null||ge.apply(this,Be)}),Yr(Q,"clientWidth",y),$(t,Q),H(),o()}dt(["pointerdown","click"]);var O$=Se('<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 Td(t,e){"use strict";var i=O$(),o=h(i),n=A(o);g(i),k(()=>{Ne(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ne(o,"fill-opacity",e.completed?1:.24),Ne(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var H$=L("<div><!></div>"),F$={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 Mf(t,e){O(e,!0),W(t,F$);let o=Ie().ui.t,n=X(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Ro(t,{get tooltipContent(){return s(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return s(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(r,d)=>{var l=H$();let p;var f=h(l);let b=v(()=>!!e.videoEpisode.completed);Td(f,{get completed(){return s(b)}}),g(l),k(u=>{p=J(l,1,"interactive-episode-icon svelte-bklhpe",null,p,u),at(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Yr(l,"clientWidth",u=>D(n,u)),$(r,l)},$$slots:{default:!0}}),H()}var U$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),z$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),W$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
|
|
170
170
|
.video-episode-loaded.svelte-1u6kv8l,
|
|
171
|
-
.video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function
|
|
171
|
+
.video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Lf(t,e){W(t,W$);let i=m(e,"videoEpisodes",19,()=>[]);var o=z$();$i(o,21,i,n=>n.from,(n,a)=>{var r=U$();let d;var l=h(r),p=h(l),f=A(p,2);let b;g(l),g(r),k((u,_)=>{d=J(r,1,"video-episode svelte-1u6kv8l",null,d,u),at(r,`left: ${s(a).from}%; width: ${s(a).width}%`),at(p,`transform: translateX(${s(a).loadedWidth/s(a).width*100}%)`),b=J(f,1,"video-episode-filled svelte-1u6kv8l",null,b,_),at(f,`transform: translateX(${s(a).filledWidth/s(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,r)}),g(o),$(t,o)}function q$(t,e,i,o,n,a,r){if(t.preventDefault(),e()&&D(i,ve(e().getBoundingClientRect())),o()||s(n)||!e())return;D(n,!0);let d=a(t.clientX,t.clientY);r()(d),e().setPointerCapture(t.pointerId)}function K$(t,e,i,o,n,a,r,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),p=o(t.clientX);n()(l,p,s(a).width),s(r)&&d()(l)}function Q$(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;D(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function G$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var Y$=L("<div></div>"),j$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),Z$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),X$={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
|
|
172
172
|
/* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
|
|
173
173
|
.slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
|
|
174
174
|
.slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
|
|
175
175
|
.slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
|
|
176
|
-
.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function ca(t,e){F(e,!0),q(t,G$);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),a=m(e,"isHidden",3,!1),s=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),l=m(e,"isMobile",3,!1),p=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),y=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),_=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),b=m(e,"onPointerDown",3,Ao.noop),C=m(e,"onHandleMove",3,Ao.noop),T=m(e,"onPointerUp",3,Ao.noop),I=m(e,"onPointerEnter",3,Ao.noop),M=m(e,"onPointerMove",3,Ao.noop),P=m(e,"onPointerLeave",3,Ao.noop),k=m(e,"onMouseEnter",3,Ao.noop),V=m(e,"onMouseLeave",3,Ao.noop),W=m(e,"onWheelUp",3,Ao.noop),j=m(e,"onWheelDown",3,Ao.noop),H=m(e,"onWheelLeft",3,Ao.noop),Q=m(e,"onWheelRight",3,Ao.noop),ie=m(e,"onDisabledClick",3,Ao.noop),Z=m(e,"loadedProgress",3,0),se=m(e,"filledProgress",3,0),ce=m(e,"handleProgress",3,0),Ee=m(e,"ariaLabel",3,""),Me=m(e,"ariaValueMin",3,void 0),ge=m(e,"ariaValueMax",3,void 0),ae=m(e,"ariaValueNow",3,void 0),Pe=m(e,"ariaValueText",3,""),ne=Kt(),N=X(void 0),ue=X(!1),_e=v(()=>{var oe;return(oe=ge())!=null?oe:0}),ze=v(()=>{var oe;return(0,Ao.isNonNullable)(f())&&((oe=f()[f().length-1])==null?void 0:oe.time)<r(_e)}),re=v(()=>(0,Ao.isNonNullable)(f())&&f().length&&r(ze)&&r(_e)?Ie(Z()*100,se()*100):[]);function K(oe){if(oe.preventDefault(),i()&&D(N,fe(i().getBoundingClientRect())),_())return;let Be=we(oe.clientX,oe.clientY),Qe=Ve(oe.clientX);I()(Be,Qe,r(N).width)}function he(oe){oe.preventDefault(),!_()&&P()()}function ee(){k()()}function He(){V()()}function Ze(oe){_()||y()&&(oe.preventDefault(),oe.deltaY<0?W()():oe.deltaY>0?j()():oe.deltaX>0?Q()():H()())}function we(oe,Be){return s()?Math.max(0,Math.min(1,(r(N).height-(Be-r(N).top))/r(N).height)):Math.min(Math.max(oe-r(N).x,0),r(N).width)/r(N).width}function Ve(oe){return Math.min(Math.max(oe-r(N).x,0),r(N).width)}function Ie(oe,Be){let Qe=ne.features.episodesClustering&&!u()?ne.episodeMinWidthPc:0,je=[],Le=f()[0].time/r(_e)*100,it=0,Je=0;for(let mt=1;mt<f().length;mt++)it=f()[mt].time/r(_e)*100,it-Le>Qe&&(je.push({from:Le,width:Math.max(0,it-Le),loadedWidth:Math.max(0,Math.min(it,oe)-Le),filledWidth:Math.max(0,Math.min(it,Be)-Le),interactive:f()[mt-1].interactive,completed:f()[mt-1].completed}),Le=f()[mt].time/r(_e)*100,Je++);let $t={from:Le,width:Math.max(0,100-Le),loadedWidth:Math.max(0,Math.min(oe,100)-Le),filledWidth:Math.max(0,Math.min(Be,100)-Le),interactive:f()[Je].interactive,completed:f()[Je].completed};100-Le<Qe?(Je-=1,je[Je].width+=100-Le,je[Je].loadedWidth+=Math.max(0,Math.min(oe,100)-Le),je[Je].filledWidth+=Math.max(0,Math.min(Be,100)-Le)):je[Je]=$t;let pt=f()[0].time;if(pt!==0){let mt=pt/r(_e)*100;je.unshift({from:0,width:mt,loadedWidth:Math.min(mt,oe),filledWidth:Math.min(mt,Be)})}return je}var Ue=Q$(),dt=pe(Ue);{var ct=oe=>{var Be=q$();let Qe;yi(Be,21,()=>r(re),je=>je.from,(je,Le)=>{var it=Oe(),Je=pe(it);{var $t=pt=>{Cf(pt,{get videoEpisode(){return r(Le)},get disabled(){return _()}})};R(Je,pt=>{r(Le).interactive&&pt($t)})}$(je,it)}),g(Be),E(je=>Qe=J(Be,1,"interactive-icons svelte-1tpemng",null,Qe,je),[()=>({mobile:l(),hidden:l()&&!r(ue)})]),$(oe,Be)};R(dt,oe=>{u()&&oe(ct)})}var ot=A(dt,2);let Et;ot.__pointerdown=[F$,i,N,_,ue,we,b],ot.__pointermove=[U$,_,we,Ve,M,N,ue,C],ot.__pointerup=[z$,_,ue,we,T],ot.__click=[W$,_,ie,we];var _t=h(ot);{var Yt=oe=>{Tf(oe,{get videoEpisodes(){return r(re)},get disabled(){return _()},get isMobile(){return l()}})},Zt=oe=>{var Be=K$(),Qe=h(Be),je=A(Qe,2);let Le;g(Be),E(it=>{st(Qe,`transform: translateX(${Z()*100}%);`),Le=J(je,1,"filled svelte-1tpemng",null,Le,it),st(je,`transform: translateX(${se()*100}%);`)},[()=>({"active-live":d()})]),$(oe,Be)};R(_t,oe=>{r(re).length?oe(Yt):oe(Zt,!1)})}var Lt=A(_t,2);let Nt;var O=h(Lt);let be;g(Lt),g(ot),ht(ot,oe=>i(oe),()=>i()),E((oe,Be,Qe)=>{var je,Le;Et=J(ot,1,`slider ${(je=o())!=null?je:""}`,"svelte-1tpemng",Et,oe),Ne(ot,"aria-label",Ee()),Ne(ot,"aria-valuemin",Me()),Ne(ot,"aria-valuemax",ge()),Ne(ot,"aria-valuenow",ae()),Ne(ot,"aria-valuetext",Pe()),Ne(ot,"data-testid",(Le=n())!=null?Le:null),Nt=J(Lt,1,"handleWrap svelte-1tpemng",null,Nt,Be),st(Lt,`transform: translateX(${ce()*100}%);`),be=J(O,1,"handle svelte-1tpemng",null,be,Qe)},[()=>({disabled:_(),"slider-dragging":r(ue),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),kt("pointerenter",ot,K),kt("pointerleave",ot,he),kt("mouseenter",ot,ee),kt("mouseleave",ot,He),kt("wheel",ot,Ze),$(t,Ue),U()}at(["pointerdown","pointermove","pointerup","click"]);var Wi=(t,e)=>js[t]>=js[e],o1=(t,e)=>js[t]<js[e],Ss=(t,e)=>js[t]<=js[e],n1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Y$=L("<div><!></div>"),j$=L("<div><!> <!></div>"),Z$={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function If(t,e){var we,Ve;F(e,!0),q(t,Z$);let[i,o]=De(),n=()=>S(I,"$isAudioAvailable$",i),a=()=>S(y,"$muted$",i),s=()=>S(f,"$volume$",i),d=()=>S(b,"$currentGridType$",i),l=Ce(),p=Kt(),f=l.state.volume$,y=l.state.muted$,{setVolume:u,startVolumeChanging:_,stopVolumeChanging:w}=l.actions.internal,b=l.ui.currentGridType$,C=(we=l.callbacks)==null?void 0:we.onAudioDoesNotExistHint,T=(Ve=l.callbacks)==null?void 0:Ve.onAudioDisabledHint,I=l.state.isAudioAvailable$,M=l.state.isAudioDisabled,P=l.ui.t,k=X(!1),V,W=v(()=>e.isAds||n()),j=v(()=>!r(W)||a()||s()===0),H=v(()=>Ss(d(),"s")),Q=v(()=>r(H)?"":r(j)?!n()||M?P("tooltip_sound_unavailable"):P("tooltip_volume_on"):P("tooltip_volume_muted")),ie=P("aria_label_volume"),Z=v(()=>r(j)?0:s()),se=!1,ce=v(()=>e.isAds?!1:M?!T:n()?!1:!C);function Ee(Ie){_(),u(Ie)}function Me(){Xc(l,s(),p.controls.volumeStepWheel)}function ge(){Jc(l,s(),p.controls.volumeStepWheel)}function ae(Ie){u(Ie)}function Pe(Ie){u(Ie),w()}function ne(){se=!0}function N(){se=!1,ze()}function ue(){clearTimeout(V),D(k,!0)}function _e(){ze()}function ze(){V=window.setTimeout(()=>{se||D(k,!1)},p.controls.volumeBarTimeout)}function re(Ie){Ie.preventDefault(),Ie.deltaY<0?Me():Ie.deltaY>0&&ge()}var K=j$();let he;var ee=h(K);da(ee,{get content(){return r(Q)},translateY:-18,children:(Ie,Ue)=>{let dt=v(()=>r(H)?"btn-volume-vertical":"btn-volume-horizontal");Bt(Ie,{className:"btn-full-opacity",get disabled(){return r(ce)},get testId(){return r(dt)},ariaLabel:ie,get click(){return e.click},get ariaKeyShortCut(){return Dr.KeyM},role:"switch",children:(ct,ot)=>{ws(ct,{get volume(){return s()},get muted(){return r(j)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var He=A(ee,2);{var Ze=Ie=>{var Ue=Y$();let dt;var ct=h(Ue);let ot=v(()=>r(H)?"volumeBar-slider-vertical":""),Et=v(()=>r(H)&&!r(k)),_t=v(()=>r(H)?ne:bd.noop),Yt=v(()=>r(H)?N:bd.noop),Zt=v(()=>Math.round(r(Z)*100)),Lt=v(()=>`${Math.round(r(Z)*100)}%`),Nt=v(()=>r(H)?"volume-slider-vertical":"volume-slider");ca(ct,{get className(){return r(ot)},get isHidden(){return r(Et)},get isVertical(){return r(H)},withWheelHandler:!0,onWheelUp:Me,onWheelDown:ge,onPointerDown:Ee,onHandleMove:ae,onPointerUp:Pe,get onPointerEnter(){return r(_t)},get onPointerLeave(){return r(Yt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Zt)},get ariaValueText(){return r(Lt)},get filledProgress(){return r(Z)},get handleProgress(){return r(Z)},get testId(){return r(Nt)}}),g(Ue),E(O=>dt=J(Ue,1,"volumeBar svelte-1auih1j",null,dt,O),[()=>({"volumeBar-vertical":r(H)})]),$(Ie,Ue)};R(He,Ie=>{r(W)&&Ie(Ze)})}g(K),E(Ie=>he=J(K,1,"volumeBar-container svelte-1auih1j",null,he,Ie),[()=>({vertical:r(H)})]),kt("mouseenter",K,function(...Ie){var Ue;(Ue=r(H)?ue:bd.noop)==null||Ue.apply(this,Ie)}),kt("mouseleave",K,function(...Ie){var Ue;(Ue=r(H)?_e:bd.noop)==null||Ue.apply(this,Ie)}),kt("wheel",K,re),$(t,K),U(),o()}var r1=require("@vkontakte/videoplayer-shared/es2018");var X$=ye('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function kf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=X$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),$(t,o)}var J$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
177
|
-
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function
|
|
176
|
+
.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function $a(t,e){O(e,!0),W(t,X$);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),a=m(e,"isHidden",3,!1),r=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),l=m(e,"isMobile",3,!1),p=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),b=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),_=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,Bo.noop),C=m(e,"onHandleMove",3,Bo.noop),T=m(e,"onPointerUp",3,Bo.noop),I=m(e,"onPointerEnter",3,Bo.noop),M=m(e,"onPointerMove",3,Bo.noop),P=m(e,"onPointerLeave",3,Bo.noop),E=m(e,"onMouseEnter",3,Bo.noop),R=m(e,"onMouseLeave",3,Bo.noop),z=m(e,"onWheelUp",3,Bo.noop),q=m(e,"onWheelDown",3,Bo.noop),U=m(e,"onWheelLeft",3,Bo.noop),Y=m(e,"onWheelRight",3,Bo.noop),se=m(e,"onDisabledClick",3,Bo.noop),Q=m(e,"loadedProgress",3,0),de=m(e,"filledProgress",3,0),le=m(e,"handleProgress",3,0),Me=m(e,"ariaLabel",3,""),Be=m(e,"ariaValueMin",3,void 0),ge=m(e,"ariaValueMax",3,void 0),ce=m(e,"ariaValueNow",3,void 0),Ae=m(e,"ariaValueText",3,""),ae=Ut(),N=X(void 0),Ye=X(!1),ee=v(()=>{var j;return(j=ge())!=null?j:0}),We=v(()=>{var j;return(0,Bo.isNonNullable)(f())&&((j=f()[f().length-1])==null?void 0:j.time)<s(ee)}),ne=v(()=>(0,Bo.isNonNullable)(f())&&f().length&&s(We)&&s(ee)?Ee(Q()*100,de()*100):[]);function me(j){if(j.preventDefault(),i()&&D(N,ve(i().getBoundingClientRect())),_())return;let pe=Ce(j.clientX,j.clientY),Pe=ie(j.clientX);I()(pe,Pe,s(N).width)}function $e(j){j.preventDefault(),!_()&&P()()}function Z(){E()()}function ze(){R()()}function et(j){_()||b()&&(j.preventDefault(),j.deltaY<0?z()():j.deltaY>0?q()():j.deltaX>0?Y()():U()())}function Ce(j,pe){return r()?Math.max(0,Math.min(1,(s(N).height-(pe-s(N).top))/s(N).height)):Math.min(Math.max(j-s(N).x,0),s(N).width)/s(N).width}function ie(j){return Math.min(Math.max(j-s(N).x,0),s(N).width)}function Ee(j,pe){let Pe=ae.features.episodesClustering&&!u()?ae.episodeMinWidthPc:0,Re=[],fe=f()[0].time/s(ee)*100,Ke=0,ot=0;for(let gt=1;gt<f().length;gt++)Ke=f()[gt].time/s(ee)*100,Ke-fe>Pe&&(Re.push({from:fe,width:Math.max(0,Ke-fe),loadedWidth:Math.max(0,Math.min(Ke,j)-fe),filledWidth:Math.max(0,Math.min(Ke,pe)-fe),interactive:f()[gt-1].interactive,completed:f()[gt-1].completed}),fe=f()[gt].time/s(ee)*100,ot++);let Xe={from:fe,width:Math.max(0,100-fe),loadedWidth:Math.max(0,Math.min(j,100)-fe),filledWidth:Math.max(0,Math.min(pe,100)-fe),interactive:f()[ot].interactive,completed:f()[ot].completed};100-fe<Pe?(ot-=1,Re[ot].width+=100-fe,Re[ot].loadedWidth+=Math.max(0,Math.min(j,100)-fe),Re[ot].filledWidth+=Math.max(0,Math.min(pe,100)-fe)):Re[ot]=Xe;let wt=f()[0].time;if(wt!==0){let gt=wt/s(ee)*100;Re.unshift({from:0,width:gt,loadedWidth:Math.min(gt,j),filledWidth:Math.min(gt,pe)})}return Re}var qe=Z$(),rt=he(qe);{var ct=j=>{var pe=Y$();let Pe;$i(pe,21,()=>s(ne),Re=>Re.from,(Re,fe)=>{var Ke=He(),ot=he(Ke);{var Xe=wt=>{Mf(wt,{get videoEpisode(){return s(fe)},get disabled(){return _()}})};V(ot,wt=>{s(fe).interactive&&wt(Xe)})}$(Re,Ke)}),g(pe),k(Re=>Pe=J(pe,1,"interactive-icons svelte-1tpemng",null,Pe,Re),[()=>({mobile:l(),hidden:l()&&!s(Ye)})]),$(j,pe)};V(rt,j=>{u()&&j(ct)})}var st=A(rt,2);let Tt;st.__pointerdown=[q$,i,N,_,Ye,Ce,y],st.__pointermove=[K$,_,Ce,ie,M,N,Ye,C],st.__pointerup=[Q$,_,Ye,Ce,T],st.__click=[G$,_,se,Ce];var pt=h(st);{var Yt=j=>{Lf(j,{get videoEpisodes(){return s(ne)},get disabled(){return _()},get isMobile(){return l()}})},ni=j=>{var pe=j$(),Pe=h(pe),Re=A(Pe,2);let fe;g(pe),k(Ke=>{at(Pe,`transform: translateX(${Q()*100}%);`),fe=J(Re,1,"filled svelte-1tpemng",null,fe,Ke),at(Re,`transform: translateX(${de()*100}%);`)},[()=>({"active-live":d()})]),$(j,pe)};V(pt,j=>{s(ne).length?j(Yt):j(ni,!1)})}var Ft=A(pt,2);let Pt;var te=h(Ft);let Lt;g(Ft),g(st),it(st,j=>i(j),()=>i()),k((j,pe,Pe)=>{var Re,fe;Tt=J(st,1,`slider ${(Re=o())!=null?Re:""}`,"svelte-1tpemng",Tt,j),Ne(st,"aria-label",Me()),Ne(st,"aria-valuemin",Be()),Ne(st,"aria-valuemax",ge()),Ne(st,"aria-valuenow",ce()),Ne(st,"aria-valuetext",Ae()),Ne(st,"data-testid",(fe=n())!=null?fe:null),Pt=J(Ft,1,"handleWrap svelte-1tpemng",null,Pt,pe),at(Ft,`transform: translateX(${le()*100}%);`),Lt=J(te,1,"handle svelte-1tpemng",null,Lt,Pe)},[()=>({disabled:_(),"slider-dragging":s(Ye),hidden:a(),"slider-vertical":r(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),Et("pointerenter",st,me),Et("pointerleave",st,$e),Et("mouseenter",st,Z),Et("mouseleave",st,ze),Et("wheel",st,et),$(t,qe),H()}dt(["pointerdown","pointermove","pointerup","click"]);var qi=(t,e)=>sa[t]>=sa[e],p1=(t,e)=>sa[t]<sa[e],Ds=(t,e)=>sa[t]<=sa[e],f1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var J$=L("<div><!></div>"),e2=L("<div><!> <!></div>"),t2={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 Vf(t,e){var Ce,ie;O(e,!0),W(t,t2);let[i,o]=De(),n=()=>S(I,"$isAudioAvailable$",i),a=()=>S(b,"$muted$",i),r=()=>S(f,"$volume$",i),d=()=>S(y,"$currentGridType$",i),l=Ie(),p=Ut(),f=l.state.volume$,b=l.state.muted$,{setVolume:u,startVolumeChanging:_,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,C=(Ce=l.callbacks)==null?void 0:Ce.onAudioDoesNotExistHint,T=(ie=l.callbacks)==null?void 0:ie.onAudioDisabledHint,I=l.state.isAudioAvailable$,M=l.state.isAudioDisabled,P=l.ui.t,E=X(!1),R,z=v(()=>e.isAds||n()),q=v(()=>!s(z)||a()||r()===0),U=v(()=>Ds(d(),"s")),Y=v(()=>s(U)?"":s(q)?!n()||M?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),se=v(()=>s(q)?P("tooltip_volume"):P("tooltip_volume_muted")),Q=v(()=>s(q)?0:r()),de=!1,le=v(()=>e.isAds?!1:M?!T:n()?!1:!C);function Me(Ee){_(),u(Ee)}function Be(){nu(l,r(),p.controls.volumeStepWheel)}function ge(){ru(l,r(),p.controls.volumeStepWheel)}function ce(Ee){u(Ee)}function Ae(Ee){u(Ee),w()}function ae(){de=!0}function N(){de=!1,We()}function Ye(){clearTimeout(R),D(E,!0)}function ee(){We()}function We(){R=window.setTimeout(()=>{de||D(E,!1)},p.controls.volumeBarTimeout)}function ne(Ee){Ee.preventDefault(),Ee.deltaY<0?Be():Ee.deltaY>0&&ge()}var me=e2();let $e;var Z=h(me);ba(Z,{get content(){return s(Y)},translateY:-18,children:(Ee,qe)=>{let rt=v(()=>s(U)?"btn-volume-vertical":"btn-volume-horizontal");Bt(Ee,{className:"btn-full-opacity",get disabled(){return s(le)},get testId(){return s(rt)},get ariaLabel(){return s(se)},get click(){return e.click},get ariaKeyShortCut(){return jr.KeyM},role:"button",children:(ct,st)=>{Ns(ct,{get volume(){return r()},get muted(){return s(q)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ze=A(Z,2);{var et=Ee=>{var qe=J$();let rt;var ct=h(qe);let st=v(()=>s(U)?"volumeBar-slider-vertical":""),Tt=v(()=>s(U)&&!s(E)),pt=v(()=>s(U)?ae:Id.noop),Yt=v(()=>s(U)?N:Id.noop),ni=v(()=>Math.round(s(Q)*100)),Ft=v(()=>`${Math.round(s(Q)*100)}%`),Pt=v(()=>s(U)?"volume-slider-vertical":"volume-slider");$a(ct,{get className(){return s(st)},get isHidden(){return s(Tt)},get isVertical(){return s(U)},withWheelHandler:!0,onWheelUp:Be,onWheelDown:ge,onPointerDown:Me,onHandleMove:ce,onPointerUp:Ae,get onPointerEnter(){return s(pt)},get onPointerLeave(){return s(Yt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(ni)},get ariaValueText(){return s(Ft)},get filledProgress(){return s(Q)},get handleProgress(){return s(Q)},get testId(){return s(Pt)}}),g(qe),k(te=>rt=J(qe,1,"volumeBar svelte-1auih1j",null,rt,te),[()=>({"volumeBar-vertical":s(U)})]),$(Ee,qe)};V(ze,Ee=>{s(z)&&Ee(et)})}g(me),k(Ee=>$e=J(me,1,"volumeBar-container svelte-1auih1j",null,$e,Ee),[()=>({vertical:s(U)})]),Et("mouseenter",me,function(...Ee){var qe;(qe=s(U)?Ye:Id.noop)==null||qe.apply(this,Ee)}),Et("mouseleave",me,function(...Ee){var qe;(qe=s(U)?ee:Id.noop)==null||qe.apply(this,Ee)}),Et("wheel",me,ne),$(t,me),H(),o()}var m1=require("@vkontakte/videoplayer-shared/es2018");var i2=Se('<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 Rf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=i2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),$(t,o)}var o2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
177
|
+
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Bf(t,e){W(t,o2);let i=m(e,"isFullscreen",8,!1),o=Ir(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Rf(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function Ed(t,e){O(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,m1.noop),n=Ie(),a=n.ui.isFullscreenOpenedByKeyboard,r=n.ui.t,d=v(()=>i()?r("tooltip_fullscreen_on"):r("tooltip_fullscreen_off"));Bt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:p=>{let f=Vs(p);a.set(f),o()()},get ariaKeyShortCut(){return jr.KeyF},role:"button",children:(p,f)=>{Bf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var n2=Se('<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 Nf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=n2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i})),$(t,o)}var r2=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function Df(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=r2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(4),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}var s2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
|
|
178
178
|
svg[data-testid="vk-video-logo-icon--short"] ._en,
|
|
179
179
|
svg[data-testid="vk-video-logo-icon"] ._en,
|
|
180
|
-
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Mf(t,e){q(t,i2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${r(s)+1} 24`);Af(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function yd(t,e){F(e,!0);let[i,o]=De(),n=()=>S(_,"$isMobile",i),a=()=>S(u,"$currentGridType$",i),s=()=>S(b,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),l=m(e,"logoClickable",3,!1),p=m(e,"targetUrl",3,""),f=Kt(),y=Ce(),u=y.ui.currentGridType$,_=y.ui.isMobile,w=y.ui.t,b=y.isCyrillicRelatedInterface$,C=v(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),I=v(()=>(n()||Ss(a(),"l"))&&r(T)),M=()=>{var V,W;e.click(),(V=y.callbacks)!=null&&V.onLogoClicked?(W=y.callbacks)==null||W.onLogoClicked():p()&&window.open(p(),"_blank")},P=v(()=>!l()),k=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Bt(t,{className:"btn-full-opacity",get disabled(){return r(P)},click:M,get testId(){return r(k)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(V){d(V)},children:(V,W)=>{var j=Oe(),H=pe(j);{var Q=Z=>{Mf(Z,{get short(){return r(I)},get isCyrillic(){return s()}})},ie=Z=>{Pf(Z,{})};R(H,Z=>{r(T)?Z(Q):Z(ie,!1)})}$(V,j)},$$slots:{default:!0}}),U(),o()}var s1=require("@vkontakte/videoplayer-core/es2018");var Lf=require("@vkontakte/videoplayer-core/es2018"),n2=ye('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),r2=ye('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),s2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
|
|
180
|
+
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Of(t,e){W(t,s2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,r=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${s(r)+1} 24`);Df(t,{get width(){return s(r)},height:"24",get viewBox(){return s(l)},get"data-testid"(){return s(d)}})}function kd(t,e){O(e,!0);let[i,o]=De(),n=()=>S(_,"$isMobile",i),a=()=>S(u,"$currentGridType$",i),r=()=>S(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),l=m(e,"logoClickable",3,!1),p=m(e,"targetUrl",3,""),f=Ut(),b=Ie(),u=b.ui.currentGridType$,_=b.ui.isMobile,w=b.ui.t,y=b.isCyrillicRelatedInterface$,C=v(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),I=v(()=>(n()||Ds(a(),"l"))&&s(T)),M=()=>{var R,z;e.click(),(R=b.callbacks)!=null&&R.onLogoClicked?(z=b.callbacks)==null||z.onLogoClicked():p()&&window.open(p(),"_blank")},P=v(()=>!l()),E=v(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Bt(t,{className:"btn-full-opacity",get disabled(){return s(P)},click:M,get testId(){return s(E)},get ariaLabel(){return s(C)},get ref(){return d()},set ref(R){d(R)},children:(R,z)=>{var q=He(),U=he(q);{var Y=Q=>{Of(Q,{get short(){return s(I)},get isCyrillic(){return r()}})},se=Q=>{Nf(Q,{})};V(U,Q=>{s(T)?Q(Y):Q(se,!1)})}$(R,q)},$$slots:{default:!0}}),H(),o()}var v1=require("@vkontakte/videoplayer-core/es2018");var Hf=require("@vkontakte/videoplayer-core/es2018"),l2=Se('<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>'),d2=Se('<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>'),c2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
|
|
181
181
|
animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
|
|
182
182
|
animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
|
|
183
183
|
animation-name: svelte-8z1bf5-wave3;}
|
|
@@ -225,9 +225,9 @@ Try switching the\xA0quality to\xA0Auto.`},Vh=A_;var is=new Map;is.set(el.Interf
|
|
|
225
225
|
100% {
|
|
226
226
|
opacity: 1;
|
|
227
227
|
}
|
|
228
|
-
}`};function
|
|
229
|
-
transform: rotate(${n()}deg) ${
|
|
230
|
-
`)),$(K,he)};R(Pe,K=>{r(I)&&K(ne)})}var N=A(Pe,2),ue=h(N);{var _e=K=>{var he=Oe(),ee=pe(he);{var He=we=>{var Ve=Br();E(Ie=>me(Ve,Ie),[()=>z("tooltip_episode_unfinished")]),$(we,Ve)},Ze=we=>{var Ve=Br();E(()=>me(Ve,r(W).text||"")),$(we,Ve)};R(ee,we=>{u()&&r(W).completed===!1?we(He):we(Ze,!1)})}$(K,he)};R(ue,K=>{r(W)&&K(_e)})}g(N);var ze=A(N,2);{var re=K=>{var he=c2(),ee=h(he,!0);g(he),E(()=>me(ee,d())),$(K,he)};R(ze,K=>{u()||K(re)})}g(ge),E(K=>{ae=J(ge,1,"timeline-preview svelte-1wqg760",null,ae,K),st(ge,`width: ${r(j)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),$(t,ge),U(),o()}var f2=L('<span class="time svelte-1jr6obn"> </span>'),m2=L("<!> <!>",1),v2={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Nf(t,e){var je,Le,it,Je,$t;F(e,!0),q(t,v2);let[i,o]=De(),n=()=>S(ie,"$interactiveEpisodes$",i),a=()=>S(k,"$duration$",i),s=()=>S(P,"$position$",i),d=()=>S(ce,"$isInteractiveExpectation$",i),l=()=>S(se,"$isInteractiveTime$",i),p=()=>S(V,"$isLive$",i),f=()=>S(j,"$isMobile",i),y=()=>S(W,"$isActiveLive$",i),u=()=>S(M,"$bufferedProgress$",i),_=()=>S(ge,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),b=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=Ce(),I=Kt(),M=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,k=T.state.duration$,V=T.state.isLive$,W=T.state.isActiveLive$,j=T.ui.isMobile,H=I.features.episodes&&b()?T.actions.internal.getVideoEpisodes():void 0,Q=T.actions.internal.getPreviewThumbsData(),ie=T.state.interactiveEpisodes$,Z=T.state.isInteractive,se=T.state.isInteractiveTime$,ce=T.state.isInteractiveExpectation$,Ee=T.actions.internal.correctSeekTimeToInteractive,Me=(je=T.callbacks)==null?void 0:je.onDisabledTimelineClick,ge=T.ui.controls.disabledControls$,ae=(it=(Le=T.callbacks)==null?void 0:Le.uiInfo)==null?void 0:it.onTimelineMouseEnter,Pe=($t=(Je=T.callbacks)==null?void 0:Je.uiInfo)==null?void 0:$t.onTimelineMouseLeave,ne=T.ui.t,N=I.features.interactiveResponsiveUi,ue=v(()=>Z?n():H),_e=v(()=>ln(a())),ze=v(()=>ln(s())),re=v(()=>s()/a()),K=v(()=>d()||l()),he=X(!1),ee=X(""),He=X(0),Ze=X(0),we=X(0),Ve=v(()=>({containerWidth:r(Ze),translateXPx:r(He),translateYPx:Z&&Q?-36:-16,active:r(he)&&w()&&!r(K)&&!N,pointer:!I.features.timelinePreview||!Q||p()})),Ie=ne("aria_timeline"),Ue=v(()=>ne("aria_timeline_value",{position:r(ze),duration:r(_e)}));function dt(pt){return!Ee||!Z?pt:Ee(pt*a())/a()}function ct(pt){T.actions.internal.startScrubbing(dt(pt))}function ot(pt){l()||T.actions.internal.progressScrubbing(dt(pt))}function Et(pt){T.actions.internal.completeScrubbing(dt(pt)),D(he,!1)}function _t(pt,mt,Dt){Lt(pt,mt,Dt),D(he,!0)}function Yt(pt,mt,Dt){Lt(pt,mt,Dt),D(he,!0)}function Zt(){D(he,!1)}function Lt(pt,mt,Dt){D(we,fe(dt(pt))),D(He,fe(mt)),Dt&&D(Ze,fe(Dt)),D(ee,fe(Nt(pt)))}function Nt(pt){let mt=ln((p()?1-pt:pt)*a());return p()?`-${mt}`:mt}var O=m2(),be=pe(O);Rf(be,ts(()=>r(Ve),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(pt,mt)=>{var Dt=Oe(),Ge=pe(Dt);{var ri=tt=>{Bf(tt,{get time(){return r(ee)},get isMobile(){return f()},get videoEpisodes(){return r(ue)},previewThumbsData:Q,get progress(){return r(we)},get duration(){return a()},isInteractive:Z})},$i=tt=>{var jt=f2(),Pi=h(jt,!0);g(jt),E(()=>me(Pi,r(ee))),$(tt,jt)};R(Ge,tt=>{I.features.timelinePreview&&Q&&!p()?tt(ri):tt($i,!1)})}$(pt,Dt)},$$slots:{default:!0}}));var oe=A(be,2);let Be=v(()=>Math.round(r(re)*100)),Qe=v(()=>_().has("TIMELINE"));ca(oe,{className:"timeline-slider",get isActiveLive(){return y()},get isMobile(){return f()},ariaLabel:Ie,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Be)},get ariaValueText(){return r(Ue)},get loadedProgress(){return u()},get filledProgress(){return r(re)},get handleProgress(){return r(re)},get videoEpisodes(){return r(ue)},onPointerDown:ct,onHandleMove:ot,onPointerMove:Yt,onPointerUp:Et,onPointerEnter:_t,onPointerLeave:Zt,onMouseEnter:ae,onMouseLeave:Pe,onDisabledClick:Me,isInteractive:Z,get disabled(){return r(Qe)},get hideHandel(){return l()},testId:"progress_bar",get ref(){return C()},set ref(pt){C(pt)}}),$(t,O),U(),o()}var g2={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function wd(t,e){F(e,!0),q(t,g2);let[i,o]=De(),n=()=>S(l,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"duration",3,0),d=Ce(),l=d.ui.isMobile,p=d.ui.t,f=v(()=>ln(s())),y=v(()=>ln(a())),u=v(()=>a()/s()),_=v(()=>p("aria_timeline_value",{position:r(y),duration:r(f)})),w=v(()=>Math.round(r(u)*100));ca(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(_)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),U(),o()}var h2=L("<div><!></div>"),_2=L("<div></div>"),b2={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function ua(t,e){F(e,!0),q(t,b2);let[i,o]=De(),n=()=>S(_,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(b,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=m(e,"isAds",3,!1),p=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),y=m(e,"ref",15,void 0),u=Ce(),_=u.state.isLive$,w=u.ads.duration,b=u.ads.position,C=u.ui.isMobile,T=v(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=Oe(),M=pe(I);{var P=V=>{var W=h2();let j;var H=h(W);{var Q=Z=>{wd(Z,{get position(){return s()},get duration(){return d()}})},ie=Z=>{Nf(Z,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(se){y(se)}})};R(H,Z=>{l()?Z(Q):Z(ie,!1)})}g(W),E(Z=>j=J(W,1,"timeline svelte-41cp6d",null,j,Z),[()=>({withoutPadding:!f(),mobile:a()})]),$(V,W)},k=V=>{var W=_2();let j;E(H=>j=J(W,1,"timeline-stub svelte-41cp6d",null,j,H),[()=>({mobile:a()})]),$(V,W)};R(M,V=>{r(T)?V(P):V(k,!1)})}$(t,I),U(),o()}var c1=require("@vkontakte/videoplayer-shared/es2018");var $2=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function Df(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=$2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(3),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i})),$(t,o)}var y2=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function Of(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=y2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),$(t,o)}var x2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),w2=L('<span class="text svelte-1yhs2ga"> </span>'),S2=L('<span class="text count svelte-1yhs2ga"> </span>'),C2=L("<!> <!>",1),T2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Sd(t,e){var ce,Ee,Me;F(e,!0),q(t,T2);let[i,o]=De(),n=()=>S(w,"$currentGridType$",i),a=()=>S(b,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=m(e,"position",3,0),p=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),y=Ce(),u=(Ee=(ce=y.callbacks)==null?void 0:ce.onEpisodeChanged)!=null?Ee:c1.noop,_=!!((Me=y.callbacks)!=null&&Me.onEpisodeClicked),w=y.ui.currentGridType$,b=y.ui.episodes.openedByKeyboard$,C=y.ui.episodes.panelOpened$,T=y.ui.isMobile,I=y.ui.t,M=X(void 0),P=ge=>{var Pe,ne,N;if(!!((Pe=y.callbacks)!=null&&Pe.onEpisodeClicked)){let ue=$s(ge);b.set(ue),C.set(!0),(N=(ne=y.callbacks)==null?void 0:ne.onEpisodeClicked)==null||N.call(ne,ue)}},k=X(null),V=v(()=>l()/p());Fe(()=>{var ae;let ge=iu(r(V),p(),f());ge?((ae=r(k))==null?void 0:ae.time)!==ge.time&&(u(ge),D(k,fe(ge))):D(k,null)});let W=v(()=>{var ge;return((ge=r(k))==null?void 0:ge.text)||""}),j=v(()=>Wi(n(),"xl")?"FULL":Wi(n(),"m")&&o1(n(),"xl")?"COUNT":"SHORT"),H=v(()=>`${I("tooltip_episodes")}: ${r(W)}`),Q=async(ge,ae,Pe)=>{await bo(),(ge==null?void 0:ge.getAttribute("aria-expanded"))==="false"&&ae&&!Pe&&Ct(()=>{b.set(!1),ge.focus()})};Fe(()=>{Q(r(M),a(),s())});var ie=Oe(),Z=pe(ie);{var se=ge=>{let ae=v(()=>d()?"px-0":"");Bt(ge,{get className(){var Pe;return`w-max btn-full-opacity btn-jc-l ${(Pe=r(ae))!=null?Pe:""}`},testId:"btn-episodes",click:P,disabled:!_,get ariaExpanded(){return s()},get ariaLabel(){return r(H)},get ref(){return r(M)},set ref(Pe){D(M,fe(Pe))},children:(Pe,ne)=>{var N=Oe(),ue=pe(N);{var _e=re=>{var K=x2(),he=pe(K),ee=h(he,!0);g(he);var He=A(he,2),Ze=h(He);Of(Ze,{}),g(He),E(()=>me(ee,r(W))),$(re,K)},ze=re=>{var K=C2(),he=pe(K);Df(he,{});var ee=A(he,2);{var He=we=>{var Ve=w2(),Ie=h(Ve,!0);g(Ve),E(()=>me(Ie,r(W))),$(we,Ve)},Ze=(we,Ve)=>{{var Ie=Ue=>{var dt=S2(),ct=h(dt,!0);g(dt),E(()=>me(ct,f().length)),$(Ue,dt)};R(we,Ue=>{r(j)==="COUNT"&&Ue(Ie)},Ve)}};R(ee,we=>{r(j)==="FULL"?we(He):we(Ze,!1)})}$(re,K)};R(ue,re=>{d()?re(_e):re(ze,!1)})}$(Pe,N)},$$slots:{default:!0}})};R(Z,ge=>{r(k)&&ge(se)})}$(t,ie),U(),o()}var x1=require("@vkontakte/videoplayer-shared/es2018");var ui=require("@vkontakte/videoplayer-core/es2018"),wt=require("@vkontakte/videoplayer-shared/es2018"),Fr=require("@vkontakte/videoplayer-statistics/es2018");var Ke=require("@vkontakte/videoplayer-shared/es2018"),qi=require("@vkontakte/videoplayer-shared/es2018");var u1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var I2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ou=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new qi.Subject,loadStarted$:new qi.Subject,loadEnded$:new qi.Subject,loadError$:new qi.Subject,ready$:new qi.Subject,slotRequested$:new qi.Subject,started$:new qi.Subject,timeRemained$:new qi.Subject,paused$:new qi.Subject,resumed$:new qi.Subject,ended$:new qi.Subject,empty$:new qi.Subject,skipped$:new qi.Subject,clicked$:new qi.Subject,closed$:new qi.Subject,error$:new qi.Subject};this.loadAdman=e=>(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ke.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ke.now)()]}),o())};(0,qi.addScript)(I2,e,this.loadTimeout).then(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ke.now)()]}),window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ke.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[(0,Ke.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ke.now)()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ke.now)()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ke.now)()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ke.now)()]}),!d&&(window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ke.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ke.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ke.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),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;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ke.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ke.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ke.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal,this.usePuid=i.usePuid}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var M;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ke.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:p={},duration:f,previewParam:y}=e,u,_=this.playerState&&xe(this.playerState.vsid);_&&(this.isVsidOriginal?u=_:u=parseInt(_,36));let{isEmbed:w,immediateOrigin:b}=(0,Ke.detectEmbed)(),C=(M=w?b:window.location.href)!=null?M:window.location.href,T={...p,dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:y,...u?{request_id:u}:{},duration:f,...this.usePuid?{puid10:u1(i,o),puid11:n?0:1}:{}};y||delete T.preview;let I={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let P=new window.AdmanHTML;P.setDebug(!1),P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.init(I),this.adman=P,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(P){Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[(0,Ke.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ke.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adsState){this.log({message:"toggle play"});let i=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(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ke.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,p,f,y,u;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ke.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(y=this.adman)==null||y.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&(0,qi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var p1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Hf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let a of n){let s={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!s.startTime&&!s.endTime){let p=new nu,{startTime:f,endTime:y}=p.parse(l);s.startTime=f,s.endTime=y}else if(l.trim()!==""){let p=new Ff,{texts:f}=p.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},nu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let a=Number(e)*60*60,s=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+s+d+l}},Ff=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let d=0,l=[];for(;d<s.length;){let p=["<",">"].reduce((f,y)=>{let u=s.indexOf(y,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 nu;for(let s of n)a.isTime(s)?i.texts.push({type:"timestamp",value:a.parseTime(s)}):i.texts.push({type:"text",value:s});return i}},f1=Hf;var su=require("@vkontakte/videoplayer-shared/es2018"),pa,wi,Uf=0,zf=!1,m1="",v1=(t,e=0,i=0)=>t<e&&t<i,ru=(t,e=0,i=0)=>t>=e&&t<=i,k2=(t,e=0,i=0)=>t>e&&t>i,g1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:f})=>ru(t,p,f));let a=t>=Uf,s=t<Uf;if(Uf=t,s&&(zf=!1),(0,su.isNonNullable)(pa)&&ru(t,pa.startTime,pa.endTime)&&m1===e.value)return pa;if(!(0,su.isNonNullable)(wi)&&(n!=null&&n.length)&&!zf){wi=n.find(({startTime:p,endTime:f})=>ru(t,p,f)||a&&v1(t,p,f)),pa=void 0,!(0,su.isNonNullable)(wi)&&n[n.length-1].endTime<t&&(zf=!0);return}else{if(ru(t,wi==null?void 0:wi.startTime,wi==null?void 0:wi.endTime))return pa=wi,wi=void 0,m1=e.value,pa;(a&&k2(t,wi==null?void 0:wi.startTime,wi==null?void 0:wi.endTime)||s&&v1(t,wi==null?void 0:wi.startTime,wi==null?void 0:wi.endTime))&&(wi=void 0)}};var au={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},E2={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},lu=t=>{var e,i;return(i=(e=au[t])!=null?e:au[E2[t]])!=null?i:void 0};var h1=require("@vkontakte/videoplayer-shared/es2018"),SB=require("@vkontakte/videoplayer-statistics/es2018"),du=class{constructor(e,i=new h1.Subscription){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Cd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Cd||{});var Hr=t=>t!=null?t:0,os=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(Hr(i==null?void 0:i.top)-Hr(o==null?void 0:o.top)),left:Math.round(Hr(i==null?void 0:i.left)-Hr(o==null?void 0:o.left)),bottom:Math.round(Hr(i==null?void 0:i.bottom)-Hr(o==null?void 0:o.top)),right:Math.round(Hr(i==null?void 0:i.right)-Hr(o==null?void 0:o.left))}},pl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Hr(e==null?void 0:e.width),height:Hr(e==null?void 0:e.height)}};var cu="off";var _1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:f,previewThumbsData:y,uiConfig:u,coreConfig:_,player:w,disabledControls:b,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:M,stopPlayer:P,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:V,additionalButtons:W,additionalSettingsMenuItems:j,additionalContextMenuItems:H,playPrevVideo:Q,playNextVideo:ie,looped:Z=!1,statistics:se,saveRate:ce,internalsExposure:Ee,playerView:Me})=>{var dv,cv,uv;let ge={..._,configName:[...(dv=_.configName)!=null?dv:[],"ui"],isAudioDisabled:s,live:{...(cv=_.live)!=null?cv:{},isLiveCatchUpMode:!!n}},ae=u,Pe=wt.TracerFactory.createRootTracer(ae.features.tracer),ne=Pe.createComponentTracer("Store"),N=w||new ui.Player(ge,Pe);Ee==null||Ee.expose({corePlayer:N});let ue=new wt.Logger,_e=new ou(ue,{loadTimeout:ae.ads.loadTimeout,initTimeout:ae.ads.initTimeout,runtimeTimeout:ae.ads.runtimeTimeout,useAdmanFromNPM:ae.ads.useAdmanFromNPM,volumeMultiplier:ae.ads.volumeMultiplier,isVsidOriginal:ae.ads.isVsidOriginal,usePuid:ae.ads.usePuid}),ze=ea.getInstance(),re=p==null?void 0:p.pictureInPictureApi,K=p==null?void 0:p.annotationsApi,he=p==null?void 0:p.slotsApi,ee=ue.createComponentLog("Store"),He,Ze,we={},Ve=new Bc,Ie=se?ei(se.oneStat.vsid$):nr(void 0),Ue=le(hs()),dt=le(!1),ct=(uv=re==null?void 0:re.info.isActive$)!=null?uv:new wt.ValueSubject(!1),ot=le(0),Et=le([]),_t=(0,wt.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>Et.update(x=>[...x,c])),Yt=nr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Zt=async c=>{var de;let x=Object.values(wt.InterfaceLanguage).includes(c);if(ae.downloadVKLanguages&&(x&&ae.updateBuiltinLanguages||!Qp(c))){let qe;try{qe=await(0,wt.loadVKLangPack)(c,th,ih)}catch(It){(de=se==null?void 0:se.oneStat)==null||de.logError({errorType:"VKLangPack",fatal:!1}),ze==null||ze.report(It,{errorType:"VKLangPack",fatal:!1})}qe&&(Kp({language:c,pack:qe,fallback:ae.defaultLanguage}),Lt.set(c))}Qp(c)&&Lt.set(c)},Lt=le(t),Nt=le(e);Zt(t);let O=(c,x)=>{let B=xe(Lt);return Gp(B,c,x,ae.defaultLanguage)},be=le("thumb"),oe=(()=>{let c=_i([Yt,be],([x,B])=>x?"crashed":B);return{...c,is:x=>xe(c)===x}})(),Be=(()=>{let c=le(new Set(b));return{...c,add:x=>{c.update(B=>new Set([...B].concat(x)))},remove:x=>{c.update(B=>{let de=[...B];return new Set(Array.isArray(x)?de.filter(qe=>!x.includes(qe)):de.filter(qe=>qe!==x))})},includes:x=>{let B=xe(c);return Array.isArray(x)?x.every(de=>B.has(de)):B.has(x)}}})();ne.log("create store"),ee({message:"create store"});let Qe=c=>{let x=c.container;x.append(N.experimental.element$.getValue()),mt=new MutationObserver(B=>{let{removedNodes:de}=B[0];de.length&&x.append(N.experimental.element$.getValue())}),mt.observe(x,{childList:!0})},je=c=>{ee({message:`init video, config: ${JSON.stringify(c)}`}),C?Qe(c):(wt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,wt.now)()]}),N.initVideo(c)),ne.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),He=c},Le=new wt.Subject,it=c=>Le.next(c),Je=new wt.Subject,$t=new wt.Subject,pt=new wt.Subject,mt=null,Dt={actionRewind$:Je,actionSeek$:$t,inPiP$:ct,inFullscreen$:new wt.Observable(c=>Ue.subscribe(x=>c.next(x))),actionSetSubtitle$:pt,nextMovie$:Le};if(se){let{oneStat:c,statSubscription:x}=se;C||x.add(c.attachTo(N)),x.add(c.attachToUi(Dt)),x.add(c.attachToAds(_e.events)),c.authorize(a).catch(B=>{ee({message:`onestat auth error ${String(B)}`})})}if(ze){let c=new wt.Subscription,x=(B,de)=>c.add(B.subscribe(de));if(x(N.events.managedError$,B=>{ze.logIError(B)}),x(N.events.fatalError$,B=>{ze.logIError(B,!0)}),se){let{oneStat:B}=se;x(B.experimental.error$,de=>{ze.logIError(de)})}ze.sentrySubscription.add(c)}let Ge=()=>{ui.clientChecker.device.isIOS&&Ze&&Dh(Ze).catch(c=>{ee({message:`exitIosSafariFullscreen failed: ${c}`})})},ri=new wt.Subscription().add(N.experimental.element$.subscribe(c=>{c&&(Ze=c,c.classList.add("player-media"),ia(re)&&(re.updateVideoElement(),re.registryEventHandlers()),C&&c.setAttribute("pip","false"),Me==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;Ge(),(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;ia(re)&&await(re==null?void 0:re.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(B=we.onStarted)==null||B.call(we,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),_e.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(()=>{At.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{At.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&Be.add(Jl),Be.add("PLAY_BUTTON")):Be.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(_e.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(_e.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(_e.events.loadError$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(_e.events.init$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(_e.events.ready$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(_e.events.started$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:B.call(x,c)})).add(_e.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(_e.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(_e.events.empty$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(_e.events.clicked$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:B.call(x,c)})).add(_e.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(_e.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(_e.events.paused$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(_e.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)})),$i=new wt.Subscription,tt=()=>{var It,Ft,Gt;let{debugLog:c}=ae,x,B="#9df7b7",de="#efd169";if(c&&c!==!0){let{colors:Ut}=c;x=c.tag,B=(It=Ut==null?void 0:Ut[0])!=null?It:B,de=(Gt=(Ft=Ut==null?void 0:Ut[1])!=null?Ft:Ut==null?void 0:Ut[0])!=null?Gt:de}let qe=x?`: ${x}`:"";$i.add(N.events.log$.subscribe(Ut=>{console.debug(`%c sdk${qe} `,`background:${B};`,`sdk component: ${Ut.component}`,Ut.message)})).add(ue.log$.subscribe(Ut=>{console.debug(`%c ui${qe} `,`background:${de};`,`ui component: ${Ut.component}.`,Ut.message)}))},jt=()=>{$i.unsubscribe()},Pi=(c,x)=>{ne.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Qi=(c=!1)=>{ne.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Vt=(c,x,B)=>{ne.log("move camera focus px",{xpx:c,ypx:x,dt:B}),N.moveCameraFocusPX(c,x,B)},yt=()=>{N.holdCamera()},Ot=()=>{N.releaseCamera()},ao=nr(N.info.position$.getValue(),c=>{let x,B,de=()=>{let qe=N.info.playbackState$.getValue(),It=N.info.isLive$.getValue(),Ft=N.info.duration$.getValue(),Gt=N.info.position$.getValue();if(qe&&[ui.PlaybackState.PLAYING,ui.PlaybackState.PAUSED].includes(qe)){let Ut=It?Gt-Ft:N.getExactTime();Ut!==B&&c(Ut),B=Ut}x=requestAnimationFrame(de)};return de(),()=>cancelAnimationFrame(x)}),cn=ei(N.info.playbackState$),$n=ei(N.info.currentBuffer$),xo=ei(N.info.isEnded$),G=ei(N.info.isLive$),Xt=ae.features.playbackRate?ei(N.info.canChangePlaybackSpeed$):nr(!1),bi=ei(N.info.liveBufferTime$),Ai=ei(N.info.volume$),ai=ei(N.info.muted$),vt=Nc(N.info.predefinedQualityLimitType$.pipe((0,wt.map)(c=>c===ui.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.TRAFFIC_SAVING),fi=Nc(N.info.predefinedQualityLimitType$.pipe((0,wt.map)(c=>c===ui.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.HIGH_QUALITY),et=ei(N.info.autoQualityLimitingAvailable$),Rt=ei(N.info.availableQualities$),lo=ei(N.info.availableQualitiesFps$),ti=ei(N.info.chromecastState$),sr=ei(N.info.chromecastDeviceName$),co=ei(N.info.currentFormat$),Mo=ei(N.info.throughputEstimation$),li=ei(N.info.videoBitrate$),Tt=ei(N.info.intrinsicVideoSize$),Mi=ei(N.info.duration$),Lo=ei(N.info.isAudioAvailable$),pi=null,Uo=N.info.isBuffering$,Bi=nr(Uo.getValue(),c=>{let x=Uo.subscribe(B=>{B&&pi===null?pi=window.setTimeout(()=>{c(Uo.getValue()),pi=null},ae.loaderDelay):c(B)});return()=>{x.unsubscribe(),pi&&clearTimeout(pi)}}),wo=()=>{pi&&clearTimeout(pi),pi=null},So=_i([Mi,G],([c,x])=>x?-c:c),Fn=_i([cn],([c])=>c===ui.PlaybackState.PLAYING),Ni=ei(N.info.atLiveEdge$),yn=ei(N.info.atLiveDurationEdge$),Co=ei(N.info.position$),Vo=_i([Co,Mi],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),xn=_i([ti],([c])=>c===ui.ChromecastState.CONNECTED),Tr=ei(N.info.availableVideoStreams$),ar=ae.features.audioLanguages?ei(N.info.availableAudioStreams$):nr([]),Un=ei(N.info.currentVideoStream$),wn=ei(N.info.currentAudioStream$),Sn=c=>{c.language&&qp(c.language),N.setVideoStream(c)},zn=c=>{c.language&&qp(c.language),N.setAudioStream(c)},uo=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(de=>"isDefault"in de&&de.isDefault)),x)return x;let B=Th();return B&&(x=c.find(({language:de})=>B===de)),x!=null||(x=c.at(0)),x},nt=!1;ri.add(N.info.availableAudioStreams$.subscribe(c=>{if(!nt&&c.length){let x=uo(c);x&&(N.setAudioStream(x),nt=!0)}}));let Cn=!1;ri.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Cn&&c.length){let x=uo(c);x&&(N.setVideoStream(x),Cn=!0)}}));let zo=le(void 0),Tn=ei(N.info.isAutoQualityEnabled$,c=>c&&zo.set(void 0)),In=ei(N.info.currentQuality$,()=>zo.set(void 0)),Ro=_i([zo,In],([c,x])=>c!=null?c:x),lr=_i(co,c=>c!==ui.VideoFormat.MPEG),Wo=_i([Rt,lo,Tn,Ro,lr],([c,x,B,de,qe])=>{let It=[];qe&&It.push({value:"auto",displayValue:O("auto_quality_option"),selected:B});let Ft=c.filter(Gt=>!(0,wt.isInvariantQuality)(Gt));for(let Gt of Ft){let Ut=x[Gt];It.push({value:Gt,displayValue:`${Gt}${Ut?p1(Ut):""}`,selected:B?!1:Gt===de})}return It}),kn=ei(N.info.currentPlaybackRate$),qo=_i([kn,Ni,yn],([c,x,B])=>{let de=B||C?1:ae.controls.playbackRateMin,qe=x?1:ae.controls.playbackRateMax,It=ae.controls.playbackRateStep,Ft=[];for(let Gt=de;Gt<=qe;Gt+=It)Ft.push({value:Gt,displayValue:Gt===1?O("playback_rate_1"):O("playback_rate",{multiplier:Gt.toString(10)}),selected:c===Gt});return Ft}),po={displayValue:O("subtitles_off"),value:cu},Di=le({...po}),En=ae.features.subtitles?ei(N.info.availableTextTracks$):nr([]),Bo=hh(),Ko=_i([En,Di],([c,x],B)=>{var It;let de=[],qe=c.find(({id:Ft})=>Ft===x.value);if(qe!=null&&qe.url){let[,Ft]=(It=Bo.find(qe.url))!=null?It:[];if(Ft){B(Ft);return}Ve.download(qe.url).then(Gt=>{if(!Gt||Ve.isDestroyed())return;let Ut=new f1,ls=qe.language;if(ls){let d0=!!qe.isAuto,c0=Ut.parse(Gt,ls);de.push({lang:ls,subtitles:c0,isAuto:d0,id:qe.id})}Bo.add(qe.url,de),xe(Di).value===x.value&&B(de)}).catch(Gt=>{var Ut;(Ut=se==null?void 0:se.oneStat)==null||Ut.logError({errorType:"Subtitles download",fatal:!1}),ze==null||ze.report(Gt,{errorType:"Subtitles download",fatal:!1})})}B(de)}),No=_i([kn,Fn,Di],([c,x,B],de)=>{let Ft;if(N.info.isLive$.getValue()&&x&&B.value!==po.value){let Ut=()=>{let ls=1e3/(3*c);Ft=setTimeout(Ut,ls),de(Date.now())};return Ut(),()=>clearTimeout(Ft)}}),Pn=_i([En,Di],([c,x])=>{if(!c.length)return[];let B=[];for(let{language:de,isAuto:qe,id:It}of c){let Ft=de&&lu(de);de&&Ft&&B.push({displayValue:qe?O("subtitles_auto",{language:Ft}):Ft,value:It,selected:(x==null?void 0:x.value)===It,isAuto:qe})}return B.length?(B.unshift({...po,selected:(x==null?void 0:x.value)===po.value}),B):[]}),Oi={available:[],prev:[]},Hi=()=>{var x,B;let c=N.experimental.getCurrentTime$.getValue();return(B=(x=c==null?void 0:c())!=null?x:Ze==null?void 0:Ze.currentTime)!=null?B:0},dr=_i([ao,Di,Ko,No],([c,x,B,de])=>{var It;let qe=N.info.isLive$.getValue();if(qe&&Oi.prev!==B){let Ft=B.find(({id:Ut})=>Ut===x.value),Gt=Oi.prev.find(({id:Ut})=>Ut===x.value);if(Ft){let Ut={...Ft,subtitles:[...(It=Gt==null?void 0:Gt.subtitles)!=null?It:[],...Ft.subtitles]};Oi.available=[Ut],Oi.prev=B}}if(x&&x.value!==po.value){let Ft=qe?Hi():c,Gt=qe?Oi.available:B;return g1(Ft,x,Gt,qe)}}),Do=_i([dr],([c])=>c!=null&&c.texts?c.texts:[]);ri.add(Di.subscribe(c=>{var x,B;if(c.value===po.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let de=Object.entries(au).find(([qe,It])=>It===c.displayValue);(B=l==null?void 0:l.onSubtitleOn)==null||B.call(l,de?de[0]:"")}}));let Wn=le(!0),An=_i([$n,So,Co,bi],([c,x,B,de])=>{var Gt;let qe=(Gt=c==null?void 0:c.end)!=null?Gt:0;if(!de)return qe/x;let Ft=-B+de-x;return(qe-Ft)/x}),qn=ei(N.info.availableSources$),cr=_i([qn],([c])=>Object.keys((c==null?void 0:c[ui.VideoFormat.MPEG])||{}).length>0),un=()=>{var B,de,qe;let c=Object.keys(((de=(B=N.info.availableSources$)==null?void 0:B.getValue())==null?void 0:de[ui.VideoFormat.MPEG])||{}),x=(0,wt.getHighestQuality)(c)||wt.VideoQuality.Q_144P;return(qe=He.sources[ui.VideoFormat.MPEG])==null?void 0:qe[x]},ur=()=>{var x;let c=un();if(c)ne.log("download video",{url:c}),mh(c,((x=He==null?void 0:He.meta)==null?void 0:x.title)||"video");else{let B="There is no URL for download video";ne.log("download video",{message:B}),ee({message:B})}},pr=()=>{ee({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Qn(Jt()):Gn(!c)},Kn=()=>{var c;if(At.ui.settingsMenu.visible$.set(!1),!xe(At.ui.settingsSubMenu.visible$)){let x=xe(At.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let de=pl(x),qe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:de,position:qe,name:"settings"})}}ne.log("close settings menu")},Ir=async(c,x=()=>Promise.resolve())=>{var qe;At.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),At.ui.settingsMenu.visible$.set(!0),await x();let B=xe(At.ui.settingsMenu.ref$),de=As();if((qe=l==null?void 0:l.uiInfo)!=null&&qe.onSettingsMenu&&B&&de){let Ft=pl(B),Gt=os(B,de);l.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:Gt,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})},kr=(c,x=!1)=>{var It;At.ui.settingsSubMenu.visible$.set(!1);let B=xe(At.ui.settingsMenu.ref$),de=As(),qe=xe(At.ui.settingsMenu.visible$);if((It=l==null?void 0:l.uiInfo)!=null&&It.onSettingsMenu&&B&&de)if(qe&&!x){let Gt=pl(B),Ut=os(B,de);l.uiInfo.onSettingsMenu({visible:!0,size:Gt,position:Ut,name:"settings"})}else{let Gt=pl(c),Ut={top:0,left:0,bottom:0,right:0},ls=xe(At.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Gt,position:Ut,name:ls})}ne.log("close settings sub menu")},Mn=(c,x)=>{var de;At.ui.settingsSubMenu.visible$.set(!0),At.ui.settingsSubMenu.ref$.set(x),At.ui.settingsSubMenu.name$.set(c);let B=As();if((de=l==null?void 0:l.uiInfo)!=null&&de.onSettingsMenu&&x&&B){let It=pl(x),Ft=os(x,B);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:It,position:Ft})}ne.log("open settings sub menu",{name:c})},Jt=()=>{var x;let c=Math.max(ae.volumeMinRestore,(x=Dc())!=null?x:0);return c===0?ae.volumeDefault:c},Qn=c=>{let x=c===0?Jt():c,B=N.info.muted$.getValue();ee({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let de=!s||oe.is("ads");B&&c>0&&de&&(B=!1,zp(!1)),N.setVolume(c,B),_e.setVolume(c),Dp(x)},Gn=c=>{let x=N.info.volume$.getValue();if(ee({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c,oe.is("ads")),_e.setVolume(c?0:x),zp(c),!c&&x===0){let B=Jt();N.setVolume(B),Dp(B),_e.setVolume(B)}},rt=le(!1),xt=c=>{var x,B;ne.log("set looped",{isLooped:c}),rt.set(c),N.setLooped(c),(B=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||B.call(x,c)};xt(Z);let Si=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},To=(c,x=!1)=>{var B;ee({message:`set autoplayNextEnabled, value: ${c}`}),ne.log("set autoplay next enabled",{autoplayNextEnabled:c}),At.ui.autoplayNextEnabled$.set(c),Eh(c),x&&((B=l==null?void 0:l.onSetAutoplayNextEnabled)==null||B.call(l,c))},fo=c=>{ee({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),At.ui.timerNextVideoRunning$.set(c)},Io=(c=!0)=>{var de;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(de=l==null?void 0:l.onPrevVideoClick)==null?void 0:de.call(l)}catch(qe){ee({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&ut("prev")||Q()},ko=(c=!0)=>{var de;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(de=l==null?void 0:l.onNextVideoClick)==null?void 0:de.call(l)}catch(qe){ee({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&ut("next")||ie()},ut=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:B,playbackStatusShow:de}}=ae;return B&&de&&!x?(At.ui.aboutToGoNextVideo.set(c),At.ui.userActionsDisabled.set(!0),!0):!1},Qt=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},oi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},mi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Zi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},mo=()=>{N.prepare()},Gi=()=>{(0,wt.assertNonNullable)(At);let c=xe(At.ui.controls.disabledControls$),x=xe(At.playerPhase),B={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ee({message:"toggle play"}),x==="ads"){B.action="play",ne.log("toggle adman play",B),_e.togglePlay();return}let de=()=>{var It;ee({message:"toggle play, call player.play"}),B.action="play",N.play(),(It=l==null?void 0:l.onPlay)==null||It.call(l)},qe=()=>{var It;ee({message:"toggle play, call player.pause"}),B.action="pause",N.pause(),(It=l==null?void 0:l.onPause)==null||It.call(l)};if(N.info.isEnded$.getValue()){if(ee({message:"toggle play, video ended, seek to 0"}),Je.next(),$t.next(Fr.SeekAction.REWIND),C){M==null||M();return}N.seekTime(0),de()}else N.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING?de():qe();ne.log("toggle play",B)},Fi=(c,{changeReason:x="default",appliesTo:B="to-video"}={})=>{ee({message:`set quality, quality: ${c}`}),ne.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ae.features.qualityDetailsSubMenuEnabled?(Oc({type:"exact_quality",quality:c,videoId:i},B),id(),N.setPredefinedQualityLimits(ui.PredefinedQualityLimits.UNKNOWN)):Op(i,c),zo.set(c),N.setQuality(c)):ae.features.qualityDetailsSubMenuEnabled?x==="default"&&(Er("auto_quality",B),xe(vt)&&Ci(!1),xe(fi)&&Qo(!1)):id()},Ci=(c,x="as-default")=>{ee({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let B=c?ui.PredefinedQualityLimits.TRAFFIC_SAVING:ui.PredefinedQualityLimits.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(Ln(B,x),td(!1)):(N.setPredefinedQualityLimits(B),td(c))},Qo=(c,x="as-default")=>{ee({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),Ln(c?ui.PredefinedQualityLimits.HIGH_QUALITY:ui.PredefinedQualityLimits.UNKNOWN,x)},Ln=(c,x)=>{c!==ui.PredefinedQualityLimits.UNKNOWN&&(xe(et)&&!xe(Tn)&&Fi("auto",{appliesTo:x,changeReason:"limit-changed"}),Er(c,x)),N.setPredefinedQualityLimits(c)},Er=(c,x)=>{Oc({type:c,videoId:i},x),x==="as-default"&&Oc({type:c,videoId:i},"to-video")},Yn=c=>{ne.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ae.features.saveRate&&ce&&!N.info.isLive$.getValue()&&Ih(c)},Pr=()=>{let c=xe(qo),x=c.findIndex(({selected:de})=>de);if(x===c.length-1)return;let B=c[x+1];Yn(B.value)},pn=()=>{let c=xe(qo),x=c.findIndex(({selected:de})=>de);if(x===0)return;let B=c[x-1];Yn(B.value)},jn=(c={...po,selected:!1})=>{ne.log("set subtitles",{...c}),c&&c.value!==po.value&&pt.next(c.isAuto?c.value+"_auto":c.value),Di.set(c)},Zn=()=>{ne.log("toggle subtitles");let c=xe(Pn),x=xe(Di),B=xe(Lt);if((x==null?void 0:x.value)===po.value){let de=c.filter(qe=>qe.value!==po.value).find(qe=>qe.value===B)||c[1];jn(de)}else jn()},Ur=le(!0),Xn=c=>{Ur.set(c)},Go=(c,x,B=!0)=>{var de;if(ee({message:`seek to time, time: ${c}`}),ne.log("seek to time",{time:c,action:x,forcePrecise:B}),$t.next(x),N.info.isLive$.getValue()){let qe=N.info.duration$.getValue(),It=Math.min(0,qe+c);N.seekTime(It,B)}else{if(I!=null&&I.getValue())return;N.info.isEnded$.getValue()&&(ee({message:"seek after ended, call callbacks.onPlay"}),(de=l==null?void 0:l.onPlay)==null||de.call(l)),N.seekTime(lv(c),B)}},fr=c=>{ee({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),Go(c,Fr.SeekAction.EPISODE,!0)},Yo=(c,x)=>{ee({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:x});let B=xe(So)*c;Go(B,x,!1)},mr=c=>{ee({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),$t.next(Fr.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},zr=c=>{var de,qe;let x=(de=c.max)!=null?de:"none",B=(qe=c.min)!=null?qe:"none";ee({message:`set auto quality limitation. Max: ${x}. Min: ${B}`}),ne.log("set auto quality limits",{max:x,min:B}),N.setAutoQualityLimits(c)},Ar=c=>{ee({message:`seek external to episode start time: ${c}`}),ne.log("seek external to episode start time",{time:c}),Go(c,Fr.SeekAction.EPISODE,!0)},Mr=c=>{ee({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Xe=le(void 0),Ht=le(!1),Li=c=>{ee({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),Ht.set(!0),jo(c)},jo=c=>{Xe.set(c)},Oo,Vn,fn=()=>{Xe.set(void 0),Ht.set(!1)},Se=()=>{clearTimeout(Vn),clearTimeout(Oo),Oo=window.setTimeout(()=>{fn()},500),Ze==null||Ze.removeEventListener("seeked",Se)},ft=c=>{ee({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),Yo(c,Fr.SeekAction.SLIDER),xe(At.ui.isMobile)&&xe(At.state.currentFormat$)===ui.VideoFormat.HLS?(Ze==null||Ze.addEventListener("seeked",Se),Vn=window.setTimeout(()=>{Se()},300)):fn()},Wt=_i([ao,So,Xe],([c,x,B],de)=>{de((0,wt.isNonNullable)(B)?B*x:c)}),si=le(!1),Xi=()=>{si.set(!0)},Re=()=>{si.set(!1)},gt=le({width:0,height:0}),ni=_i([gt],([{width:c}],x)=>{let B=n1(c);x(B)}),Ji=le(!1),vo=W.filter(c=>vh(c)),Wr=_i([ni,Ji],([c,x])=>x?vo.filter(B=>!B.hideOnMobile):vo.filter(B=>{var de;return!((de=B.hideOnDesktopGridTypes)!=null&&de.includes(c))})),Vi=le(W.filter(c=>gh(c))),Jn=_i([Vi,ni],([c,x])=>c.filter(B=>{var de;return!((de=B.hideOnDesktopGridTypes)!=null&&de.includes(x))})),ks=_i([Jn,Wr],([c,x])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(B=>B.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?x.map((B,de)=>{var qe;return{id:de,weight:de,type:"desktop-control-panel-right",testId:B.testId,icon:B.iconUrl,onClick:B.onClick,ariaLabel:(qe=B.ariaLabel)!=null?qe:B.tooltip,tooltipText:B.tooltip}}):[]]),er=le(j),Ca=_i([er],([c])=>ae.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Sl=(c,x)=>{let B=xe(Vi).map(de=>de.id!==c?de:{...de,...x});Vi.set(B)},Ta=c=>{let x=xe(Vi);if(x.some(B=>B.id===c.id)){ee({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Vi.set(x)},Ia=c=>{let x=xe(Vi);if(!x.some(B=>B.id===c)){ee({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),Vi.set(x)},ka=c=>{$t.next(Fr.SeekAction.LIVE),ee({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Cl=(c,x)=>{let B=xe(er).map(de=>de.id!==c?de:{...de,...x});er.set(B)},Es=c=>{let x=xe(er);if(x.some(B=>B.id===c.id)){ee({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),er.set(x)},Ea=c=>{let x=xe(er);if(!x.some(B=>B.id===c)){ee({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),er.set(x)},lt=le(H),St=_i([lt],([c])=>ae.features.additionalContextMenuItems?c:[]),Yi=(c,x)=>{let B=xe(lt).map(de=>de.id!==c?de:{...de,...x});lt.set(B)},Zo=c=>{let x=xe(lt);if(x.some(B=>B.id===c.id)){ee({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),lt.set(x)},ji=c=>{let x=xe(lt);if(!x.some(B=>B.id===c)){ee({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),lt.set(x)},ci=_i([Ji,Yt],([c,x],B)=>{B(c&&x)}),Ti=()=>{$t.next(Fr.SeekAction.LIVE),ee({message:"switch to active live"}),ne.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING&&At.actions.internal.togglePlay()},Ps=()=>{ne.log("skip adman"),_e.skip()},Pa=(c=!0)=>{(0,wt.assertNonNullable)(At),ee({message:`switch from ads to video, callPlay: ${c}`}),ne.log("switch from ads to video",{callPlay:c}),be.set("video"),c&&N.play(),s&&Gn(!0)},Ru=()=>{(0,wt.assertNonNullable)(At),ee({message:"switch from video to ads"}),ne.log("switch from video to ads"),At.actions.internal.pause(),Ge(),be.set("ads")},ec=c=>{(0,wt.assertNonNullable)(At);let x=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:x}),be.set(x)},Bu=c=>{(0,wt.assertNonNullable)(At);let x=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:x}),be.set(x)},tc=c=>{(0,wt.assertNonNullable)(At);let x=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:x}),be.set(x)},Nu=()=>((0,wt.assertNonNullable)(At),ne.log("get debug text data"),ph(N,He,At,Pe.getTraceId())),ic=()=>((0,wt.assertNonNullable)(At),JSON.stringify(Pe.getFinishedSpans())),Du=()=>((0,wt.assertNonNullable)(At),fh(N,He,At)),As=()=>Ze,oc=()=>{ee({message:"toggle chromecast"}),ne.log("toggle chromecast"),N.toggleChromecast()},Tl=c=>{var B;if((0,wt.assertNonNullable)(At),N.info.isEnded$.getValue())return;let x=!c;if(xe(At.playerPhase)==="ads"){ee({message:`pause ads, internalCall: ${x}`}),ne.log("pause ads",{internalCall:x}),_e.pause();return}ee({message:`pause video, internalCall: ${x}`}),ne.log("pause video",{internalCall:x}),x&&((B=l==null?void 0:l.onPause)==null||B.call(l)),N.pause()},nc=c=>{var B;(0,wt.assertNonNullable)(At);let x=!c;if(xe(At.playerPhase)==="ads"){ee({message:`play ads, internalCall: ${x}`}),ne.log("play ads",{internalCall:x}),_e.play();return}ee({message:`play video, internalCall: ${x}`}),ne.log("play video",{internalCall:x}),x&&((B=l==null?void 0:l.onPlay)==null||B.call(l)),N.play()},rc=c=>{(0,wt.assertNonNullable)(At);let x=!c;if(xe(At.playerPhase)==="ads"){ee({message:"player cannot be stopped during ads via external method"});return}ee({message:`player will be stopped, internalCall: ${x}`}),P==null||P()},sc=(c,x)=>{(0,wt.assertNonNullable)(At),ee({message:`first start, show ads: ${c}, internalCall: ${!x}`}),ne.log("first start",{showAds:c,external:x}),c?be.set("ads"):(be.set("video"),x?N.play():At.actions.internal.togglePlay())},Aa=()=>(ee({message:"getting time codes"}),f),ac=()=>{let c=Aa();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(B=>B.time>x)},Ou=c=>{let x=c;x||(x=ac());let B=N.info.position$.getValue();ne.log("seek to next episode",{currentTime:B,...x}),x&&(ee({message:"seek to next episode"}),Go(x.time,Fr.SeekAction.EPISODE,!0))},lc=()=>{let c=Aa();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),B=c.findIndex(qe=>qe.time>x),de=B===-1?c.length-2:B-2;if(!(de<0))return c[de]},We=c=>{let x=c;x||(x=lc());let B=N.info.position$.getValue();ne.log("seek to prev episode",{currentTime:B,...x}),x&&(ee({message:"seek to prev episode"}),Go(x.time,Fr.SeekAction.EPISODE,!0))},di=()=>(ee({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",{...y}),y),Xo=async()=>{let c=re==null?void 0:re.isActive(),x="none";re!=null&&re.isActive()?(x="remove",await(re==null?void 0:re.remove())):(x="request",await(re==null?void 0:re.request())),ne.log("toggle picture in picture",{isActive:c,action:x})},Ms=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),ot.update(x=>x+c)},go=le([]);T==null||T.subscribe(c=>{let x=[];for(let B=0;B<c.length;B++){let{range:[de,qe],subjects:It}=c[B];B===0&&de!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:de/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!It.length||It.every(Ft=>Ft.isRemoved):!It.length}),qe!==1/0&&x.push({time:qe/1e3,text:"",interactive:!1,completed:!0})}go.set(x)});let s0=le(!1);I==null||I.subscribe(c=>{c&&xe(Ht)&&fn()});let lv=c=>{if(!C)return c;let x=xe(go),B=xe(So),qe=xe(Co)/B,It=x.find(Ft=>Ft.interactive&&!Ft.completed&&Ft.time>qe);return typeof(It==null?void 0:It.time)=="number"?Math.min(c,It.time-.05):c},a0=()=>{At.ui.episodes.panelOpened$.set(!1)},l0=()=>{ne.log("destroy store"),clearTimeout(Vn),clearTimeout(Oo),ri.unsubscribe(),$i.unsubscribe(),N.destroy(),_e.destroy(),se==null||se.destroy(),ze==null||ze.destroy(),_t.unsubscribe(),mt==null||mt.disconnect(),mt=null,Ve.destroy()},At={interfaceLanguage$:Lt,isCyrillicRelatedInterface$:Nt,initVideo:je,videoId:i,isClip:o,playerPhase:oe,vsid:Ie,state:{positionExact$:ao,positionWithScrubbing$:Wt,duration$:So,playbackState$:cn,isPlaying$:Fn,isLoaderVisible:Bi,bufferedProgress$:An,isLive$:G,canChangePlaybackSpeed$:Xt,isActiveLive$:Ni,isOldestAvailableLive$:yn,isRewindableLive$:Vo,isEnded$:xo,muted$:ai,volume$:Ai,trafficSavingEnabled$:vt,highQualityEnabled$:fi,autoQualityLimitingAvailable$:et,availableVideoStreams$:Tr,availableAudioStreams$:ar,videoStream$:Un,audioStream$:wn,currentQuality$:Ro,isAutoQualityEnabled$:Tn,availableQualities$:Wo,currentPlaybackRate$:kn,availablePlaybackRates$:qo,currentSubtitle$:Di,availableTextTracks$:En,availableSubtitlesList$:Pn,currentSubtitleCaptions$:Do,isAutoSubtitleCaptionVisible$:Wn,chromecastState$:ti,chromecastDeviceName$:sr,chromecastConnected$:xn,currentFormat$:co,throughputEstimation$:Mo,videoBitrate$:li,videoSize$:Tt,errorLog$:Et,crashed$:Yt,isAudioAvailable$:Lo,isAudioDisabled:!!s,canDownload:ae.features.download&&!!d,availableSources$:qn,hasMpegSources$:cr,isInteractive:C,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!xe(go).length,interactiveEpisodes$:go,isInteractiveTime$:I?ei(I):le(!1),isInteractiveExpectation$:s0,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:V,looped$:rt,loadedMetadata$:le(!1),isAutoQualityAvailable$:lr},ui:{t:O,controlsVisible:le(!1),touched:le(!1),controls:{prevButton:le(void 0),playButton:le(void 0),replayButton:le(void 0),nextButton:le(void 0),playPrevChapterButton:le(void 0),seekToInteractiveButton:le(void 0),interactiveGraphButton:le(void 0),liveButton:le(void 0),time:le(void 0),episodes:le(void 0),volume:le(void 0),subtitles:le(void 0),settings:le(void 0),context:le(void 0),chromecast:le(void 0),pip:le(void 0),fullscreen:le(void 0),vkLogo:le(void 0),interactiveTimeIndicator:le(void 0),timeline:le(void 0),autoplayNextToggle:le(void 0),additionalButtons:W.length?W.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:Be},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ue,isFullscreenOpenedByKeyboard:dt,rotateAlpha:ot,isAutoplay:le(!1),debugPanelVisible:le(!1),episodes:{panelOpened$:le(!1),openedByKeyboard$:le(!1)},contextMenu:{visible$:le(!1),btnRef$:le(void 0),openedByBtnKeyboard$:le(!1),openedByHotKey$:le(!1),lastActiveElem$:le(void 0),showContextMenuBtn$:le(!1),position$:le({top:0,left:0})},playerSize:gt,isMobile:Ji,mobileNotReportControlHidden$:ci,mobileUnmuteButtonExpanded:le(!1),mobileUnmuteButtonVisible:le(!1),icon3DVideoVisible:le(!1),scrubbingInProgress:Ht,volumeChangingInProgress:si,is3DVideo:le(!1),currentGridType$:ni,additionalButtonsDeprecated$:Wr,additionalDesktopControlPanelRightButtons$:ks,additionalSettingsMenuItems$:Ca,additionalContextMenuItems$:St,interactiveHideMobileControls:le(!1),overlayContainer$:le(void 0),startedByKeyboard$:le(!1),autoplayNextEnabled$:le(!1),timerNextVideoRunning$:le(!0),settingsMenu:{visible$:le(!1),ref$:le(void 0),openedByBtnKeyboard$:le(!1)},settingsSubMenu:{visible$:le(!1),ref$:le(void 0),name$:le(void 0)},aboutToGoNextVideo:le(void 0),userActionsDisabled:le(!1),hiddenControls:{volume:le(!1)},isControlsAvailable:le(!0)},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:re,annotationsApi:K,slotsApi:he},actions:{internal:{preload:mo,firstStart:c=>sc(c,!1),play:()=>nc(!1),pause:()=>Tl(!1),togglePlay:Gi,toggleMuted:pr,openSettingsMenu:Ir,closeSettingsMenu:Kn,openSettingsSubMenu:Mn,closeSettingsSubMenu:kr,setVolume:Qn,startVolumeChanging:Xi,stopVolumeChanging:Re,setVideoStream:Sn,setAudioStream:zn,setQuality:Fi,setTrafficSavingEnabled:Ci,setHighQualityEnabled:Qo,setPlaybackRate:Yn,incrementPlaybackRate:Pr,decrementPlaybackRate:pn,setSubtitle:jn,toggleSubtitle:Zn,togglePictureInPicture:Xo,startScrubbing:Li,progressScrubbing:jo,completeScrubbing:ft,toggleChromecast:oc,switchToActiveLive:Ti,switchFromAdsToVideo:Pa,switchFromVideoToAds:Ru,skipAd:Ps,setLiveWaitingStart:ec,setLiveWaitingRecover:Bu,setLiveWaitingRecord:tc,getDebugTextData:Nu,getTraceTextData:ic,getDebugPanelData:Du,getVideoElement:As,seekTime:(c,x,B)=>Go(c,x,B),clearDelayedBufferingCheckTimeout:wo,seekEpisodeStartTime:fr,seekToPercent:Yo,getNextEpisode:ac,seekToNextEpisode:Ou,getPrevEpisode:lc,seekToPrevEpisode:We,startLogging:tt,stopLogging:jt,startCameraManualRotation:Pi,stopCameraManualRotation:Qi,moveCameraFocusPX:Vt,holdCamera:yt,releaseCamera:Ot,getVideoEpisodes:Aa,getPreviewThumbsData:di,downloadVideo:ur,addLanguage:Kp,setLanguage:Zt,nextMovie:it,videoRotate:Ms,correctSeekTimeToInteractive:lv,replayInteractive:M,setLooped:xt,reportProblem:Si,setAutoplayNextEnabled:To,setTimerNextVideoRunning:fo,prevVideoClick:Io,nextVideoClick:ko,nextVideoAnnouncementShow:Qt,nextVideoAnnouncementClick:oi,nextVideoAnnouncementAuto:mi,nextVideoAnnouncementCancel:Zi},external:{firstStart:c=>sc(c,!0),play:()=>nc(!0),pause:()=>Tl(!0),stop:()=>rc(!0),seekTime:c=>mr(c),seekEpisodeStartTime:c=>Ar(c),setPlaybackRate:c=>Mr(c),setAutoQualityLimits:c=>zr(c),setMuted:Gn,toggleSubtitle:Zn,setVolume:Qn,returnFocusToEpisodes:a0,updateAdditionalSettingsItem:Cl,addAdditionalSettingsItem:Es,removeAdditionalSettingsItem:Ea,updateAdditionalContextItem:Yi,addAdditionalContextItem:Zo,removeAdditionalContextItem:ji,updateAdditionalButton:Sl,addAdditionalButton:Ta,removeAdditionalButton:Ia,setLiveLowLatency:ka,hideControls:()=>Xn(!1),showControls:()=>Xn(!0)}},callbacks:l,setUiCallbacks:c=>{we={...c}},getAdmanWrapper:()=>_e,getLogger:()=>ue,getPlayer:()=>N,destroy:l0};return At};function fa(t,e,i,o){var y;let n=["interactiveTimeIndicator"],a=(y=e[i])==null?void 0:y.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:f}=os(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 fl=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(fa(t,i,n,o))};var uu=async(t,e,i)=>{await bo(),e&&i&&(i.focus(),t.set(!1))};var P2=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Wf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=P2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),$(t,o)}function qf(t,e){F(e,!0);let[i,o]=De(),n=()=>S(l,"$contextMenuVisible$",i),a=m(e,"disabled",3,!1),s=m(e,"ariaLabel",3,""),d=Ce(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,y=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,_=X(void 0);Fe(()=>{r(_)&&Ct(()=>{u.set(r(_))})});let w=I=>{let M=$s(I),P=Gh(r(_));y.set(P),p.set(M),l.set(!n())},b=()=>{f.set(!0)},C=()=>{f.set(!1)},T=v(()=>n()?"opened":"");Bt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:b,blur:C,get ariaExpanded(){return n()},get ref(){return r(_)},set ref(I){D(_,fe(I))},children:(I,M)=>{Wf(I,{})},$$slots:{default:!0}}),U(),o()}var A2=t=>{t.stopPropagation()},M2=L("<div><!> <div></div> <div></div></div>"),L2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
|
|
228
|
+
}`};function Ff(t,e){O(e,!0),W(t,c2);let i=m(e,"isMobile",3,!1),o=v(()=>e.iconState===Hf.ChromecastState.CONNECTED),n=v(()=>e.iconState===Hf.ChromecastState.CONNECTING);var a=He(),r=he(a);{var d=p=>{var f=l2(),b=h(f),u=h(b),_=h(u);we(),g(u);var w=A(u);we(),g(b);var y=A(b),C=h(y),T=h(C);g(C),we(),g(y),g(f),k(()=>{Ne(_,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(w,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(T,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)")}),$(p,f)},l=p=>{var f=d2();let b;var u=h(f),_=A(h(u),5);let w;g(u),g(f),k((y,C)=>{b=J(f,0,"svelte-8z1bf5",null,b,y),w=J(_,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:s(n)}),()=>({hidden:!s(o)})]),$(p,f)};V(r,p=>{i()?p(d):p(l,!1)})}$(t,a),H()}var g1=require("@vkontakte/videoplayer-shared/es2018");function Pd(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,g1.noop),r=Ie().ui.t,d=v(()=>e.state===v1.ChromecastState.CONNECTED?r("tooltip_chromecast_on"):r("tooltip_chromecast_off"));Bt(t,{get ariaLabel(){return s(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,p)=>{Ff(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var u2=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),p2={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 Uf(t,e){W(t,p2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),a=m(e,"translateYPx",3,0),r=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),l=X(void 0),p=X(void 0);function f(C){if(!s(p))return 0;let{width:T}=s(p).getBoundingClientRect(),I=T/2;return C<I?I+r():C>e.containerWidth-I?e.containerWidth-I-d():C}let b=v(()=>f(n()));var u=u2(),_=h(u);let w;var y=h(_);be(y,()=>{var C;return(C=e.children)!=null?C:oe}),g(_),it(_,C=>D(p,C),()=>s(p)),g(u),it(u,C=>D(l,C),()=>s(l)),k(C=>{at(u,`transform: translate(${s(b)}px, ${a()}px);`),w=J(_,1,"tooltip svelte-5ygsa2",null,w,C),at(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,u)}var lu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var h1=t=>!!(Math.round(Math.abs(t)/90)%2),_1=t=>Math.abs(t)/90%4===1;var f2=L('<div class="preview svelte-1wqg760"></div>'),m2=L('<div class="time svelte-1wqg760"> </div>'),v2=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),g2={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 zf(t,e){O(e,!0),W(t,g2);let[i,o]=De(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),r={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),l=m(e,"isMobile",3,!1),p=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),b=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),_=Ie(),w=_.ui.rotateAlpha,y=_.ui.playerSize,C=X(0),T=X(0),I=X(""),M=X(0),P=X(0),E=X(0),R=X(0),z=v(()=>lu(f(),b(),p())),q=v(()=>h1(n())),U=v(()=>_1(n())),Y=v(de),se=v(()=>(s(U)?1:-1)*(s(C)/2-s(T)/2)),Q=v(()=>s(se)*-1);Ue(()=>{(me=>(D(C,ve(me.width)),D(T,ve(me.height))))(Me())}),Ue(()=>{(me=>(D(I,ve(me.imgSrc)),D(M,ve(me.imgWidth)),D(P,ve(me.imgHeight)),D(E,ve(me.imgOffsetX)),D(R,ve(me.imgOffsetY))))(Be(f()))});function de(){var ze;let me=l()?r.MOBILE:r.DESKTOP,{isVertical:$e}=le(),Z=30;return(ze=s(z))!=null&&ze.text&&(Z+=16),($e||s(q))&&(Z+=18,Z+=50),Math.min(Math.max(a().height-Z,0),me)}function le(){let me=e.previewThumbsData.frameWidth,$e=e.previewThumbsData.frameHeight,Z=$e>me;return{width:me,height:$e,isHorizontal:!Z,isVertical:Z}}function Me(){let{height:me,isHorizontal:$e,isVertical:Z,width:ze}=le();return $e&&(me=me/ze*s(Y),ze=s(Y)),Z&&(ze=ze/me*s(Y),me=s(Y)),{width:ze,height:me}}function Be(me){let $e;e.previewThumbsData.isUV?$e=Math.floor(b()*me/e.previewThumbsData.frequency):$e=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*me)));let Z=Math.floor($e/e.previewThumbsData.countPerImage),ze=Math.floor($e%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),et=$e%e.previewThumbsData.countPerRow,Ce=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Ce=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Ce++);let ie=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ie=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ee=s(C)*ie,qe=s(T)*Ce,rt=-et*s(C),ct=-ze*s(T);return{imgSrc:e.previewThumbsData.links[Z],imgWidth:Ee,imgHeight:qe,imgOffsetX:rt,imgOffsetY:ct}}var ge=v2();let ce;var Ae=h(ge);{var ae=me=>{var $e=f2();k(()=>at($e,`width: ${s(C)}px; height: ${s(T)}px; background-image: url(${s(I)}); background-size: ${s(M)}px ${s(P)}px; background-position: ${s(E)}px ${s(R)}px;
|
|
229
|
+
transform: rotate(${n()}deg) ${s(q)?`translate(${s(se)}px, ${s(Q)}px)`:""};
|
|
230
|
+
`)),$(me,$e)};V(Ae,me=>{s(I)&&me(ae)})}var N=A(Ae,2),Ye=h(N);{var ee=me=>{var $e=He(),Z=he($e);{var ze=Ce=>{var ie=Gr();k(Ee=>_e(ie,Ee),[()=>F("tooltip_episode_unfinished")]),$(Ce,ie)},et=Ce=>{var ie=Gr();k(()=>_e(ie,s(z).text||"")),$(Ce,ie)};V(Z,Ce=>{u()&&s(z).completed===!1?Ce(ze):Ce(et,!1)})}$(me,$e)};V(Ye,me=>{s(z)&&me(ee)})}g(N);var We=A(N,2);{var ne=me=>{var $e=m2(),Z=h($e,!0);g($e),k(()=>_e(Z,d())),$(me,$e)};V(We,me=>{u()||me(ne)})}g(ge),k(me=>{ce=J(ge,1,"timeline-preview svelte-1wqg760",null,ce,me),at(ge,`width: ${s(q)?s(T):s(C)}px;`)},[()=>({mobile:l()})]),$(t,ge),H(),o()}var h2=L('<span class="time svelte-1jr6obn"> </span>'),_2=L("<!> <!>",1),b2={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 Wf(t,e){var Pe,Re,fe,Ke,ot;O(e,!0),W(t,b2);let[i,o]=De(),n=()=>S(se,"$interactiveEpisodes$",i),a=()=>S(E,"$duration$",i),r=()=>S(P,"$position$",i),d=()=>S(le,"$isInteractiveExpectation$",i),l=()=>S(de,"$isInteractiveTime$",i),p=()=>S(R,"$isLive$",i),f=()=>S(q,"$isMobile",i),b=()=>S(z,"$isActiveLive$",i),u=()=>S(M,"$bufferedProgress$",i),_=()=>S(ge,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=Ie(),I=Ut(),M=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,E=T.state.duration$,R=T.state.isLive$,z=T.state.isActiveLive$,q=T.ui.isMobile,U=I.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,Y=T.actions.internal.getPreviewThumbsData(),se=T.state.interactiveEpisodes$,Q=T.state.isInteractive,de=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,Me=T.actions.internal.correctSeekTimeToInteractive,Be=(Pe=T.callbacks)==null?void 0:Pe.onDisabledTimelineClick,ge=T.ui.controls.disabledControls$,ce=(fe=(Re=T.callbacks)==null?void 0:Re.uiInfo)==null?void 0:fe.onTimelineMouseEnter,Ae=(ot=(Ke=T.callbacks)==null?void 0:Ke.uiInfo)==null?void 0:ot.onTimelineMouseLeave,ae=T.ui.t,N=I.features.interactiveResponsiveUi,Ye=v(()=>Q?n():U),ee=v(()=>vn(a())),We=v(()=>vn(r())),ne=v(()=>r()/a()),me=v(()=>d()||l()),$e=X(!1),Z=X(""),ze=X(0),et=X(0),Ce=X(0),ie=v(()=>({containerWidth:s(et),translateXPx:s(ze),translateYPx:Q&&Y?-36:-16,active:s($e)&&w()&&!s(me)&&!N,pointer:!I.features.timelinePreview||!Y||p()})),Ee=ae("aria_timeline"),qe=v(()=>ae("aria_timeline_value",{position:s(We),duration:s(ee)}));function rt(Xe){return!Me||!Q?Xe:Me(Xe*a())/a()}function ct(Xe){T.actions.internal.startScrubbing(rt(Xe))}function st(Xe){l()||T.actions.internal.progressScrubbing(rt(Xe))}function Tt(Xe){T.actions.internal.completeScrubbing(rt(Xe)),D($e,!1)}function pt(Xe,wt,gt){Ft(Xe,wt,gt),D($e,!0)}function Yt(Xe,wt,gt){Ft(Xe,wt,gt),D($e,!0)}function ni(){D($e,!1)}function Ft(Xe,wt,gt){D(Ce,ve(rt(Xe))),D(ze,ve(wt)),gt&&D(et,ve(gt)),D(Z,ve(Pt(Xe)))}function Pt(Xe){let wt=vn((p()?1-Xe:Xe)*a());return p()?`-${wt}`:wt}var te=_2(),Lt=he(te);Uf(Lt,fs(()=>s(ie),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Xe,wt)=>{var gt=He(),Kt=he(gt);{var _t=qt=>{zf(qt,{get time(){return s(Z)},get isMobile(){return f()},get videoEpisodes(){return s(Ye)},previewThumbsData:Y,get progress(){return s(Ce)},get duration(){return a()},isInteractive:Q})},wi=qt=>{var Ze=h2(),Jt=h(Ze,!0);g(Ze),k(()=>_e(Jt,s(Z))),$(qt,Ze)};V(Kt,qt=>{I.features.timelinePreview&&Y&&!p()?qt(_t):qt(wi,!1)})}$(Xe,gt)},$$slots:{default:!0}}));var j=A(Lt,2);let pe=v(()=>_().has("TIMELINE"));$a(j,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return f()},ariaLabel:Ee,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r()},get ariaValueText(){return s(qe)},get loadedProgress(){return u()},get filledProgress(){return s(ne)},get handleProgress(){return s(ne)},get videoEpisodes(){return s(Ye)},onPointerDown:ct,onHandleMove:st,onPointerMove:Yt,onPointerUp:Tt,onPointerEnter:pt,onPointerLeave:ni,onMouseEnter:ce,onMouseLeave:Ae,onDisabledClick:Be,isInteractive:Q,get disabled(){return s(pe)},get hideHandel(){return l()},testId:"progress_bar",get ref(){return C()},set ref(Xe){C(Xe)}}),$(t,te),H(),o()}var $2={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 Ad(t,e){O(e,!0),W(t,$2);let[i,o]=De(),n=()=>S(l,"$isMobile",i),a=m(e,"position",3,0),r=m(e,"duration",3,0),d=Ie(),l=d.ui.isMobile,p=d.ui.t,f=v(()=>vn(r())),b=v(()=>vn(a())),u=v(()=>a()/r()),_=v(()=>p("aria_timeline_value",{position:s(b),duration:s(f)})),w=v(()=>Math.round(s(u)*100));$a(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return s(w)},get ariaValueText(){return s(_)},get filledProgress(){return s(u)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var y2=L("<div><!></div>"),x2=L("<div></div>"),w2={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function ya(t,e){O(e,!0),W(t,w2);let[i,o]=De(),n=()=>S(_,"$isLive$",i),a=()=>S(C,"$isMobile",i),r=()=>S(y,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=m(e,"isAds",3,!1),p=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),b=m(e,"ref",15,void 0),u=Ie(),_=u.state.isLive$,w=u.ads.duration,y=u.ads.position,C=u.ui.isMobile,T=v(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=He(),M=he(I);{var P=R=>{var z=y2();let q;var U=h(z);{var Y=Q=>{Ad(Q,{get position(){return r()},get duration(){return d()}})},se=Q=>{Wf(Q,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(T)},get withEpisodes(){return e.withEpisodes},get ref(){return b()},set ref(de){b(de)}})};V(U,Q=>{l()?Q(Y):Q(se,!1)})}g(z),k(Q=>q=J(z,1,"timeline svelte-41cp6d",null,q,Q),[()=>({withoutPadding:!f(),mobile:a()})]),$(R,z)},E=R=>{var z=x2();let q;k(U=>q=J(z,1,"timeline-stub svelte-41cp6d",null,q,U),[()=>({mobile:a()})]),$(R,z)};V(M,R=>{s(T)?R(P):R(E,!1)})}$(t,I),H(),o()}var b1=require("@vkontakte/videoplayer-shared/es2018");var S2=Se('<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 qf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=S2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(3),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i})),$(t,o)}var C2=Se('<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 Kf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=C2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),$(t,o)}var T2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),I2=L('<span class="text svelte-1yhs2ga"> </span>'),E2=L('<span class="text count svelte-1yhs2ga"> </span>'),k2=L("<!> <!>",1),P2={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 Md(t,e){var le,Me,Be;O(e,!0),W(t,P2);let[i,o]=De(),n=()=>S(w,"$currentGridType$",i),a=()=>S(y,"$openedByKeyboard$",i),r=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=m(e,"position",3,0),p=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),b=Ie(),u=(Me=(le=b.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Me:b1.noop,_=!!((Be=b.callbacks)!=null&&Be.onEpisodeClicked),w=b.ui.currentGridType$,y=b.ui.episodes.openedByKeyboard$,C=b.ui.episodes.panelOpened$,T=b.ui.isMobile,I=b.ui.t,M=X(void 0),P=ge=>{var Ae,ae,N;if(!!((Ae=b.callbacks)!=null&&Ae.onEpisodeClicked)){let Ye=Vs(ge);y.set(Ye),C.set(!0),(N=(ae=b.callbacks)==null?void 0:ae.onEpisodeClicked)==null||N.call(ae,Ye)}},E=X(null),R=v(()=>l()/p());Ue(()=>{var ce;let ge=lu(s(R),p(),f());ge?((ce=s(E))==null?void 0:ce.time)!==ge.time&&(u(ge),D(E,ve(ge))):D(E,null)});let z=v(()=>{var ge;return((ge=s(E))==null?void 0:ge.text)||""}),q=v(()=>qi(n(),"xl")?"FULL":qi(n(),"m")&&p1(n(),"xl")?"COUNT":"SHORT"),U=v(()=>`${I("tooltip_episodes")}: ${s(z)}`),Y=async(ge,ce,Ae)=>{await xo(),(ge==null?void 0:ge.getAttribute("aria-expanded"))==="false"&&ce&&!Ae&&Ct(()=>{y.set(!1),ge.focus()})};Ue(()=>{Y(s(M),a(),r())});var se=He(),Q=he(se);{var de=ge=>{let ce=v(()=>d()?"px-0":"");Bt(ge,{get className(){var Ae;return`w-max btn-full-opacity btn-jc-l ${(Ae=s(ce))!=null?Ae:""}`},testId:"btn-episodes",click:P,disabled:!_,get ariaExpanded(){return r()},get ariaLabel(){return s(U)},get ref(){return s(M)},set ref(Ae){D(M,ve(Ae))},children:(Ae,ae)=>{var N=He(),Ye=he(N);{var ee=ne=>{var me=T2(),$e=he(me),Z=h($e,!0);g($e);var ze=A($e,2),et=h(ze);Kf(et,{}),g(ze),k(()=>_e(Z,s(z))),$(ne,me)},We=ne=>{var me=k2(),$e=he(me);qf($e,{});var Z=A($e,2);{var ze=Ce=>{var ie=I2(),Ee=h(ie,!0);g(ie),k(()=>_e(Ee,s(z))),$(Ce,ie)},et=(Ce,ie)=>{{var Ee=qe=>{var rt=E2(),ct=h(rt,!0);g(rt),k(()=>_e(ct,f().length)),$(qe,rt)};V(Ce,qe=>{s(q)==="COUNT"&&qe(Ee)},ie)}};V(Z,Ce=>{s(q)==="FULL"?Ce(ze):Ce(et,!1)})}$(ne,me)};V(Ye,ne=>{d()?ne(ee):ne(We,!1)})}$(Ae,N)},$$slots:{default:!0}})};V(Q,ge=>{s(E)&&ge(de)})}$(t,se),H(),o()}var am=require("@vkontakte/videoplayer-shared/es2018");var li=require("@vkontakte/videoplayer-core/es2018"),ut=require("@vkontakte/videoplayer-shared/es2018"),Jr=require("@vkontakte/videoplayer-statistics/es2018");var Ge=require("@vkontakte/videoplayer-shared/es2018"),Ki=require("@vkontakte/videoplayer-shared/es2018");var $1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var A2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",du=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 Ki.Subject,loadStarted$:new Ki.Subject,loadEnded$:new Ki.Subject,loadError$:new Ki.Subject,ready$:new Ki.Subject,slotRequested$:new Ki.Subject,started$:new Ki.Subject,timeRemained$:new Ki.Subject,paused$:new Ki.Subject,resumed$:new Ki.Subject,ended$:new Ki.Subject,empty$:new Ki.Subject,skipped$:new Ki.Subject,clicked$:new Ki.Subject,closed$:new Ki.Subject,error$:new Ki.Subject};this.loadAdman=e=>(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ge.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?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ge.now)()]}),o())};(0,Ki.addScript)(A2,e,this.loadTimeout).then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ge.now)()]}),window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(r=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(r)],numbers:[(0,Ge.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?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ge.now)()]}),o())},r=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ge.now)()]}),r()},this.loadTimeout);e.addEventListener("abort",r),e.aborted&&(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ge.now)()]}),r()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ge.now)()]}),!d&&(window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},r).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",r)})});this.onAdsReady=()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ge.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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")=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ge.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ge.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 M;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ge.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:r,adsVideoElement:d,slotId:l,params:p={},duration:f,previewParam:b}=e,u,_=this.playerState&&xe(this.playerState.vsid);_&&(this.isVsidOriginal?u=_:u=parseInt(_,36));let{isEmbed:w,immediateOrigin:y}=(0,Ge.detectEmbed)(),C=(M=w?y:window.location.href)!=null?M:window.location.href,T={...p,dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:b,...u?{request_id:u}:{},duration:f,puid10:$1(i,o),puid11:n?0:1};b||delete T.preview;let I={slot:l,wrapper:r,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let P=new window.AdmanHTML;P.setDebug(!1),P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.init(I),this.adman=P,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(P){Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[(0,Ge.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ge.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 r="Switch to video: Adman state was not updated correctly";this.log({message:r}),this.events.error$.next(r)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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,r,d,l,p,f,b,u;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ge.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),(r=this.adman)==null||r.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),(b=this.adman)==null||b.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&(0,Ki.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var y1=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 Qf=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 r={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!r.startTime&&!r.endTime){let p=new cu,{startTime:f,endTime:b}=p.parse(l);r.startTime=f,r.endTime=b}else if(l.trim()!==""){let p=new Gf,{texts:f}=p.parse(l);r.texts=[...r.texts,...f]}(r.startTime||r.endTime)&&r.texts.length>0&&o.push(r)}return o}},cu=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,r=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+r+d+l}},Gf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let d=0,l=[];for(;d<r.length;){let p=["<",">"].reduce((f,b)=>{let u=r.indexOf(b,d);return f===-1||f>u?u:f},-1);if(p===-1){l.push(r.substring(d));break}l.push(r.substring(d,p)),d=p+1}return l}}),a=new cu;for(let r of n)a.isTime(r)?i.texts.push({type:"timestamp",value:a.parseTime(r)}):i.texts.push({type:"text",value:r});return i}},x1=Qf;var pu=require("@vkontakte/videoplayer-shared/es2018"),xa,xi,Yf=0,jf=!1,w1="",S1=(t,e=0,i=0)=>t<e&&t<i,uu=(t,e=0,i=0)=>t>=e&&t<=i,M2=(t,e=0,i=0)=>t>e&&t>i,C1=(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})=>uu(t,p,f));let a=t>=Yf,r=t<Yf;if(Yf=t,r&&(jf=!1),(0,pu.isNonNullable)(xa)&&uu(t,xa.startTime,xa.endTime)&&w1===e.value)return xa;if(!(0,pu.isNonNullable)(xi)&&(n!=null&&n.length)&&!jf){xi=n.find(({startTime:p,endTime:f})=>uu(t,p,f)||a&&S1(t,p,f)),xa=void 0,!(0,pu.isNonNullable)(xi)&&n[n.length-1].endTime<t&&(jf=!0);return}else{if(uu(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))return xa=xi,xi=void 0,w1=e.value,xa;(a&&M2(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime)||r&&S1(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))&&(xi=void 0)}};var fu={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"},L2={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"},mu=t=>{var e,i;return(i=(e=fu[t])!=null?e:fu[L2[t]])!=null?i:void 0};var T1=require("@vkontakte/videoplayer-shared/es2018"),PB=require("@vkontakte/videoplayer-statistics/es2018"),vu=class{constructor(e,i,o=new T1.Subscription){this.oneStat=e;this.thinOneStat=i;this.statSubscription=o}destroy(){var e,i;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),this.statSubscription.unsubscribe()}};var Ld=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Ld||{});var Xr=t=>t!=null?t:0,vs=(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(Xr(i==null?void 0:i.top)-Xr(o==null?void 0:o.top)),left:Math.round(Xr(i==null?void 0:i.left)-Xr(o==null?void 0:o.left)),bottom:Math.round(Xr(i==null?void 0:i.bottom)-Xr(o==null?void 0:o.top)),right:Math.round(Xr(i==null?void 0:i.right)-Xr(o==null?void 0:o.left))}},gl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Xr(e==null?void 0:e.width),height:Xr(e==null?void 0:e.height)}};var gu="off";var I1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:r,canDownload:d,callbacks:l,webApi:p,videoEpisodes:f,previewThumbsData:b,uiConfig:u,coreConfig:_,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:M,stopPlayer:P,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,additionalButtons:z,additionalSettingsMenuItems:q,additionalContextMenuItems:U,playPrevVideo:Y,playNextVideo:se,looped:Q=!1,statistics:de,saveRate:le,internalsExposure:Me,playerView:Be})=>{var _v,bv,$v;let ge={..._,configName:[...(_v=_.configName)!=null?_v:[],"ui"],isAudioDisabled:r,live:{...(bv=_.live)!=null?bv:{},isLiveCatchUpMode:!!n}},ce=u,Ae=ut.TracerFactory.createRootTracer(ce.features.tracer),ae=Ae.createComponentTracer("Store"),N=w||new li.Player(ge,Ae);Me==null||Me.expose({corePlayer:N});let Ye=new ut.Logger,ee=new du(Ye,{loadTimeout:ce.ads.loadTimeout,initTimeout:ce.ads.initTimeout,runtimeTimeout:ce.ads.runtimeTimeout,useAdmanFromNPM:ce.ads.useAdmanFromNPM,volumeMultiplier:ce.ads.volumeMultiplier,isVsidOriginal:ce.ads.isVsidOriginal}),We=ca.getInstance(),ne=p==null?void 0:p.pictureInPictureApi,me=p==null?void 0:p.annotationsApi,$e=p==null?void 0:p.slotsApi,Z=Ye.createComponentLog("Store"),ze,et,Ce={},ie=new Uc,Ee=new ut.Subscription,qe=de&&de.oneStat?Xt(de.oneStat.vsid$):fr(void 0),rt=re(As()),ct=re(!1),st=($v=ne==null?void 0:ne.info.isActive$)!=null?$v:new ut.ValueSubject(!1),Tt=re(0),pt=re([]),Yt=(0,ut.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>pt.update(x=>[...x,c])),ni=fr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Ft=async c=>{var ue;let x=Object.values(ut.InterfaceLanguage).includes(c);if(ce.downloadVKLanguages&&(x&&ce.updateBuiltinLanguages||!ef(c))){let Oe;try{Oe=await(0,ut.loadVKLangPack)(c,ch,uh)}catch(mt){(ue=de==null?void 0:de.oneStat)==null||ue.logError({errorType:"VKLangPack",fatal:!1}),We==null||We.report(mt,{errorType:"VKLangPack",fatal:!1})}Oe&&(Jp({language:c,pack:Oe,fallback:ce.defaultLanguage}),Pt.set(c))}ef(c)&&Pt.set(c)},Pt=re(t),te=re(e);Ft(t);let Lt=(c,x)=>{let B=xe(Pt);return tf(B,c,x,ce.defaultLanguage)},j=re("thumb"),pe=(()=>{let c=vi([ni,j],([x,B])=>x?"crashed":B);return{...c,is:x=>xe(c)===x}})(),Pe=(()=>{let c=re(new Set(y));return{...c,add:x=>{c.update(B=>new Set([...B].concat(x)))},remove:x=>{c.update(B=>{let ue=[...B];return new Set(Array.isArray(x)?ue.filter(Oe=>!x.includes(Oe)):ue.filter(Oe=>Oe!==x))})},includes:x=>{let B=xe(c);return Array.isArray(x)?x.every(ue=>B.has(ue)):B.has(x)}}})();ae.log("create store"),Z({message:"create store"});let Re=c=>{let x=c.container,B=()=>{Kt=new MutationObserver(Oe=>{let{removedNodes:mt}=Oe[0];mt.length&&x.append(N.experimental.element$.getValue())}),Kt.observe(x,{childList:!0})},ue=N.experimental.element$.getValue();if(ue)x.append(ue),B();else{let Oe=N.experimental.element$.pipe((0,ut.filter)(mt=>!!mt),(0,ut.once)()).subscribe(mt=>{x.append(mt),B()});Ee.add(Oe)}},fe=c=>{Z({message:`init video, config: ${JSON.stringify(c)}`}),C?Re(c):(ut.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ut.now)()]}),N.initVideo(c)),ae.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),ze=c},Ke=new ut.Subject,ot=c=>Ke.next(c),Xe=new ut.Subject,wt=new ut.Subject,gt=new ut.Subject,Kt=null,_t={actionRewind$:Xe,actionSeek$:wt,inPiP$:st,inFullscreen$:new ut.Observable(c=>rt.subscribe(x=>c.next(x))),actionSetSubtitle$:gt,nextMovie$:Ke},wi={actionSeek$:wt,playerSize$:new ut.Observable(c=>zt.subscribe(x=>c.next(x)))};if(de){let{oneStat:c,thinOneStat:x,statSubscription:B}=de;c&&(C||B.add(c.attachTo(N)),B.add(c.attachToUi(_t)),B.add(c.attachToAds(ee.events)),c.authorize(a).catch(ue=>{Z({message:`onestat auth error ${String(ue)}`})})),x&&(B.add(x.attachTo(N)),B.add(x.attachToUi(wi)),x.authorize(a))}if(We){let c=new ut.Subscription,x=(B,ue)=>c.add(B.subscribe(ue));if(x(N.events.managedError$,B=>{We.logIError(B)}),x(N.events.fatalError$,B=>{We.logIError(B,!0)}),de){let{oneStat:B}=de;B&&x(B.experimental.error$,ue=>{We.logIError(ue)})}We.sentrySubscription.add(c)}let qt=()=>{li.clientChecker.device.isIOS&&et&&Qh(et).catch(c=>{Z({message:`exitIosSafariFullscreen failed: ${c}`})})};Ee.add(N.experimental.element$.subscribe(c=>{c&&(et=c,c.classList.add("player-media"),pa(ne)&&(ne.updateVideoElement(),ne.registryEventHandlers()),C&&c.setAttribute("pip","false"),Be==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;qt(),(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;pa(ne)&&await(ne==null?void 0:ne.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(B=Ce.onStarted)==null||B.call(Ce,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),ee.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(()=>{At.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{At.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&Pe.add(ad),Pe.add("PLAY_BUTTON")):Pe.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(ee.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(ee.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(ee.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(ee.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(ee.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(ee.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(ee.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(ee.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(ee.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(ee.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(ee.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(ee.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(ee.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(ee.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let Ze=new ut.Subscription,Jt=()=>{var mt,Dt,Wt;let{debugLog:c}=ce,x,B="#9df7b7",ue="#efd169";if(c&&c!==!0){let{colors:Ot}=c;x=c.tag,B=(mt=Ot==null?void 0:Ot[0])!=null?mt:B,ue=(Wt=(Dt=Ot==null?void 0:Ot[1])!=null?Dt:Ot==null?void 0:Ot[0])!=null?Wt:ue}let Oe=x?`: ${x}`:"";Ze.add(N.events.log$.subscribe(Ot=>{console.debug(`%c sdk${Oe} `,`background:${B};`,`sdk component: ${Ot.component}`,Ot.message)})).add(Ye.log$.subscribe(Ot=>{console.debug(`%c ui${Oe} `,`background:${ue};`,`ui component: ${Ot.component}.`,Ot.message)}))},Gi=()=>{Ze.unsubscribe()},Oi=(c,x)=>{ae.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},po=(c=!1)=>{ae.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Yi=(c,x,B)=>{ae.log("move camera focus px",{xpx:c,ypx:x,dt:B}),N.moveCameraFocusPX(c,x,B)},nt=()=>{N.holdCamera()},yt=()=>{N.releaseCamera()},di=fr(N.info.position$.getValue(),c=>{let x,B,ue=()=>{let Oe=N.info.playbackState$.getValue(),mt=N.info.isLive$.getValue(),Dt=N.info.duration$.getValue(),Wt=N.info.position$.getValue();if(Oe&&[li.PlaybackState.PLAYING,li.PlaybackState.PAUSED].includes(Oe)){let Ot=mt?Wt-Dt:N.getExactTime();Ot!==B&&c(Ot),B=Ot}x=requestAnimationFrame(ue)};return ue(),()=>cancelAnimationFrame(x)}),Si=Xt(N.info.playbackState$),Co=Xt(N.info.currentBuffer$),G=Xt(N.info.isEnded$),Qt=Xt(N.info.isLive$),ui=ce.features.playbackRate?Xt(N.info.canChangePlaybackSpeed$):fr(!1),Mi=Xt(N.info.liveBufferTime$),si=Xt(N.info.volume$),ci=Xt(N.info.muted$),ft=zc(N.info.predefinedQualityLimitType$.pipe((0,ut.map)(c=>c===li.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===li.PredefinedQualityLimits.TRAFFIC_SAVING),tt=zc(N.info.predefinedQualityLimitType$.pipe((0,ut.map)(c=>c===li.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===li.PredefinedQualityLimits.HIGH_QUALITY),Vt=Xt(N.info.autoQualityLimitingAvailable$),fo=Xt(N.info.availableQualities$),ei=Xt(N.info.availableQualitiesFps$),Xn=Xt(N.info.chromecastState$),Li=Xt(N.info.chromecastDeviceName$),No=Xt(N.info.currentFormat$),bi=Xt(N.info.throughputEstimation$),ht=Xt(N.info.videoBitrate$),Vi=Xt(N.info.intrinsicVideoSize$),Do=Xt(N.info.duration$),kn=Xt(N.info.isAudioAvailable$),ai=null,Ci=N.info.isBuffering$,Oo=fr(Ci.getValue(),c=>{let x=Ci.subscribe(B=>{B&&ai===null?ai=window.setTimeout(()=>{c(Ci.getValue()),ai=null},ce.loaderDelay):c(B)});return()=>{x.unsubscribe(),ai&&clearTimeout(ai)}}),Pn=()=>{ai&&clearTimeout(ai),ai=null},Ho=vi([Do,Qt],([c,x])=>x?-c:c),To=vi([Si],([c])=>c===li.PlaybackState.PLAYING),hn=Xt(N.info.atLiveEdge$),Zo=Xt(N.info.atLiveDurationEdge$),mo=Xt(N.info.position$),Io=vi([mo,Do],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Br=vi([Xn],([c])=>c===li.ChromecastState.CONNECTED),vr=Xt(N.info.availableVideoStreams$),Jn=ce.features.audioLanguages?Xt(N.info.availableAudioStreams$):fr([]),er=Xt(N.info.currentVideoStream$),tr=Xt(N.info.currentAudioStream$),An=c=>{c.language&&Xp(c.language),N.setVideoStream(c)},es=c=>{c.language&&Xp(c.language),N.setAudioStream(c)},Mn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ue=>"isDefault"in ue&&ue.isDefault)),x)return x;let B=Rh();return B&&(x=c.find(({language:ue})=>B===ue)),x!=null||(x=c.at(0)),x},Ri=!1;Ee.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Ri&&c.length){let x=Mn(c);x&&(N.setAudioStream(x),Ri=!0)}}));let Ln=!1;Ee.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Ln&&c.length){let x=Mn(c);x&&(N.setVideoStream(x),Ln=!0)}}));let Xo=re(void 0),Jo=Xt(N.info.isAutoQualityEnabled$,c=>c&&Xo.set(void 0)),Vn=Xt(N.info.currentQuality$,()=>Xo.set(void 0)),Rn=vi([Xo,Vn],([c,x])=>c!=null?c:x),Fo=vi(No,c=>c!==li.VideoFormat.MPEG),Nr=vi([fo,ei,Jo,Rn,Fo],([c,x,B,ue,Oe])=>{let mt=[];Oe&&mt.push({value:"auto",displayValue:Lt("auto_quality_option"),selected:B});let Dt=c.filter(Wt=>!(0,ut.isInvariantQuality)(Wt));for(let Wt of Dt){let Ot=x[Wt];mt.push({value:Wt,displayValue:`${Wt}${Ot?y1(Ot):""}`,selected:B?!1:Wt===ue})}return mt}),Bn=Xt(N.info.currentPlaybackRate$),ir=vi([Bn,hn,Zo],([c,x,B])=>{let ue=B||C?1:ce.controls.playbackRateMin,Oe=x?1:ce.controls.playbackRateMax,mt=ce.controls.playbackRateStep,Dt=[];for(let Wt=ue;Wt<=Oe;Wt+=mt)Dt.push({value:Wt,displayValue:Wt===1?Lt("playback_rate_1"):Lt("playback_rate",{multiplier:Wt.toString(10)}),selected:c===Wt});return Dt}),Hi={displayValue:Lt("subtitles_off"),value:gu},Eo=re({...Hi}),lt=ce.features.subtitles?Xt(N.info.availableTextTracks$):fr([]),jt=Th(),gr=vi([lt,Eo],([c,x],B)=>{var mt;let ue=[],Oe=c.find(({id:Dt})=>Dt===x.value);if(Oe!=null&&Oe.url){let[,Dt]=(mt=jt.find(Oe.url))!=null?mt:[];if(Dt){B(Dt);return}ie.download(Oe.url).then(Wt=>{if(!Wt||ie.isDestroyed())return;let Ot=new x1,xs=Oe.language;if(xs){let p0=!!Oe.isAuto,f0=Ot.parse(Wt,xs);ue.push({lang:xs,subtitles:f0,isAuto:p0,id:Oe.id})}jt.add(Oe.url,ue),xe(Eo).value===x.value&&B(ue)}).catch(Wt=>{var Ot;(Ot=de==null?void 0:de.oneStat)==null||Ot.logError({errorType:"Subtitles download",fatal:!1}),We==null||We.report(Wt,{errorType:"Subtitles download",fatal:!1})})}B(ue)}),Nn=vi([Bn,To,Eo],([c,x,B],ue)=>{let Dt;if(N.info.isLive$.getValue()&&x&&B.value!==Hi.value){let Ot=()=>{let xs=1e3/(3*c);Dt=setTimeout(Ot,xs),ue(Date.now())};return Ot(),()=>clearTimeout(Dt)}}),_n=vi([lt,Eo],([c,x])=>{if(!c.length)return[];let B=[];for(let{language:ue,isAuto:Oe,id:mt}of c){let Dt=ue&&mu(ue);ue&&Dt&&B.push({displayValue:Oe?Lt("subtitles_auto",{language:Dt}):Dt,value:mt,selected:(x==null?void 0:x.value)===mt,isAuto:Oe})}return B.length?(B.unshift({...Hi,selected:(x==null?void 0:x.value)===Hi.value}),B):[]}),Bi={available:[],prev:[]},Dn=()=>{var x,B;let c=N.experimental.getCurrentTime$.getValue();return(B=(x=c==null?void 0:c())!=null?x:et==null?void 0:et.currentTime)!=null?B:0},ko=vi([di,Eo,gr,Nn],([c,x,B,ue])=>{var mt;let Oe=N.info.isLive$.getValue();if(Oe&&Bi.prev!==B){let Dt=B.find(({id:Ot})=>Ot===x.value),Wt=Bi.prev.find(({id:Ot})=>Ot===x.value);if(Dt){let Ot={...Dt,subtitles:[...(mt=Wt==null?void 0:Wt.subtitles)!=null?mt:[],...Dt.subtitles]};Bi.available=[Ot],Bi.prev=B}}if(x&&x.value!==Hi.value){let Dt=Oe?Dn():c,Wt=Oe?Bi.available:B;return C1(Dt,x,Wt,Oe)}}),On=vi([ko],([c])=>c!=null&&c.texts?c.texts:[]);Ee.add(Eo.subscribe(c=>{var x,B;if(c.value===Hi.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let ue=Object.entries(fu).find(([Oe,mt])=>mt===c.displayValue);(B=l==null?void 0:l.onSubtitleOn)==null||B.call(l,ue?ue[0]:"")}}));let Po=re(!0),Hn=vi([Co,Ho,mo,Mi],([c,x,B,ue])=>{var Wt;let Oe=(Wt=c==null?void 0:c.end)!=null?Wt:0;if(!ue)return Oe/x;let Dt=-B+ue-x;return(Oe-Dt)/x}),Fn=Xt(N.info.availableSources$),or=vi([Fn],([c])=>Object.keys((c==null?void 0:c[li.VideoFormat.MPEG])||{}).length>0),hr=()=>{var B,ue,Oe;let c=Object.keys(((ue=(B=N.info.availableSources$)==null?void 0:B.getValue())==null?void 0:ue[li.VideoFormat.MPEG])||{}),x=(0,ut.getHighestQuality)(c)||ut.VideoQuality.Q_144P;return(Oe=ze.sources[li.VideoFormat.MPEG])==null?void 0:Oe[x]},nr=()=>{var x;let c=hr();if(c)ae.log("download video",{url:c}),wh(c,((x=ze==null?void 0:ze.meta)==null?void 0:x.title)||"video");else{let B="There is no URL for download video";ae.log("download video",{message:B}),Z({message:B})}},Uo=()=>{Z({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?vo(Gt()):Ao(!c)},Dr=()=>{var c;if(At.ui.settingsMenu.visible$.set(!1),!xe(At.ui.settingsSubMenu.visible$)){let x=xe(At.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ue=gl(x),Oe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ue,position:Oe,name:"settings"})}}ae.log("close settings menu")},rr=async(c,x=()=>Promise.resolve())=>{var Oe;At.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),At.ui.settingsMenu.visible$.set(!0),await x();let B=xe(At.ui.settingsMenu.ref$),ue=Ra();if((Oe=l==null?void 0:l.uiInfo)!=null&&Oe.onSettingsMenu&&B&&ue){let Dt=gl(B),Wt=vs(B,ue);l.uiInfo.onSettingsMenu({visible:!0,size:Dt,position:Wt,name:"settings"})}ae.log("open settings menu",{wasOpenedByKeyboard:c})},_r=(c,x=!1)=>{var mt;At.ui.settingsSubMenu.visible$.set(!1);let B=xe(At.ui.settingsMenu.ref$),ue=Ra(),Oe=xe(At.ui.settingsMenu.visible$);if((mt=l==null?void 0:l.uiInfo)!=null&&mt.onSettingsMenu&&B&&ue)if(Oe&&!x){let Wt=gl(B),Ot=vs(B,ue);l.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:Ot,name:"settings"})}else{let Wt=gl(c),Ot={top:0,left:0,bottom:0,right:0},xs=xe(At.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Wt,position:Ot,name:xs})}ae.log("close settings sub menu")},en=(c,x)=>{var ue;At.ui.settingsSubMenu.visible$.set(!0),At.ui.settingsSubMenu.ref$.set(x),At.ui.settingsSubMenu.name$.set(c);let B=Ra();if((ue=l==null?void 0:l.uiInfo)!=null&&ue.onSettingsMenu&&x&&B){let mt=gl(x),Dt=vs(x,B);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:mt,position:Dt})}ae.log("open settings sub menu",{name:c})},Gt=()=>{var x;let c=Math.max(ce.volumeMinRestore,(x=Wc())!=null?x:0);return c===0?ce.volumeDefault:c},vo=c=>{let x=c===0?Gt():c,B=N.info.muted$.getValue();Z({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let ue=!r||pe.is("ads");B&&c>0&&ue&&(B=!1,jp(!1)),N.setVolume(c,B),ee.setVolume(c),qp(x)},Ao=c=>{let x=N.info.volume$.getValue();if(Z({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c,pe.is("ads")),ee.setVolume(c?0:x),jp(c),!c&&x===0){let B=Gt();N.setVolume(B),qp(B),ee.setVolume(B)}},sr=re(!1),br=c=>{var x,B;ae.log("set looped",{isLooped:c}),sr.set(c),N.setLooped(c),(B=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||B.call(x,c)};br(Q);let Ti=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},ts=(c,x=!1)=>{var B;Z({message:`set autoplayNextEnabled, value: ${c}`}),ae.log("set autoplay next enabled",{autoplayNextEnabled:c}),At.ui.autoplayNextEnabled$.set(c),Dh(c),x&&((B=l==null?void 0:l.onSetAutoplayNextEnabled)==null||B.call(l,c))},Or=c=>{Z({message:`set timerNextVideoRunning, value: ${c}`}),ae.log("set timer next video running",{timerNextVideoRunning:c}),At.ui.timerNextVideoRunning$.set(c)},$r=(c=!0)=>{var ue;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(ue=l==null?void 0:l.onPrevVideoClick)==null?void 0:ue.call(l)}catch(Oe){Z({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Zt("prev")||Y()},bt=(c=!0)=>{var ue;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(ue=l==null?void 0:l.onNextVideoClick)==null?void 0:ue.call(l)}catch(Oe){Z({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Zt("next")||se()},Zt=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:B,playbackStatusShow:ue}}=ce;return B&&ue&&!x?(At.ui.aboutToGoNextVideo.set(c),At.ui.userActionsDisabled.set(!0),!0):!1},zo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},go=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Xi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},tn=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Un=()=>{N.prepare()},ho=()=>{(0,ut.assertNonNullable)(At);let c=xe(At.ui.controls.disabledControls$),x=xe(At.playerPhase),B={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Z({message:"toggle play"}),x==="ads"){B.action="play",ae.log("toggle adman play",B),ee.togglePlay();return}let ue=()=>{var mt;Z({message:"toggle play, call player.play"}),B.action="play",N.play(),(mt=l==null?void 0:l.onPlay)==null||mt.call(l)},Oe=()=>{var mt;Z({message:"toggle play, call player.pause"}),B.action="pause",N.pause(),(mt=l==null?void 0:l.onPause)==null||mt.call(l)};if(N.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),Xe.next(),wt.next(Jr.SeekAction.REWIND),C){M==null||M();return}N.seekTime(0),ue()}else N.info.playbackState$.getValue()!==li.PlaybackState.PLAYING?ue():Oe();ae.log("toggle play",B)},bn=(c,{changeReason:x="default",appliesTo:B="to-video"}={})=>{Z({message:`set quality, quality: ${c}`}),ae.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ce.features.qualityDetailsSubMenuEnabled?(qc({type:"exact_quality",quality:c,videoId:i},B),cd(),N.setPredefinedQualityLimits(li.PredefinedQualityLimits.UNKNOWN)):Kp(i,c),Xo.set(c),N.setQuality(c)):ce.features.qualityDetailsSubMenuEnabled?x==="default"&&(gi("auto_quality",B),xe(ft)&&on(!1),xe(tt)&&Je(!1)):cd()},on=(c,x="as-default")=>{Z({message:`set trafficSavingEnabled, value: ${c}`}),ae.log("set traffic saving enabled",{trafficSavingEnabled:c});let B=c?li.PredefinedQualityLimits.TRAFFIC_SAVING:li.PredefinedQualityLimits.UNKNOWN;ce.features.qualityDetailsSubMenuEnabled?(Rt(B,x),dd(!1)):(N.setPredefinedQualityLimits(B),dd(c))},Je=(c,x="as-default")=>{Z({message:`set highQualityEnabled, value: ${c}`}),ae.log("set high quality enabled",{highQualityEnabled:c}),Rt(c?li.PredefinedQualityLimits.HIGH_QUALITY:li.PredefinedQualityLimits.UNKNOWN,x)},Rt=(c,x)=>{c!==li.PredefinedQualityLimits.UNKNOWN&&(xe(Vt)&&!xe(Jo)&&bn("auto",{appliesTo:x,changeReason:"limit-changed"}),gi(c,x)),N.setPredefinedQualityLimits(c)},gi=(c,x)=>{qc({type:c,videoId:i},x),x==="as-default"&&qc({type:c,videoId:i},"to-video")},_o=c=>{ae.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ce.features.saveRate&&le&&!N.info.isLive$.getValue()&&Bh(c)},Ji=()=>{let c=xe(ir),x=c.findIndex(({selected:ue})=>ue);if(x===c.length-1)return;let B=c[x+1];_o(B.value)},Wo=()=>{let c=xe(ir),x=c.findIndex(({selected:ue})=>ue);if(x===0)return;let B=c[x-1];_o(B.value)},ji=(c={...Hi,selected:!1})=>{ae.log("set subtitles",{...c}),c&&c.value!==Hi.value&>.next(c.isAuto?c.value+"_auto":c.value),Eo.set(c)},qo=()=>{ae.log("toggle subtitles");let c=xe(_n),x=xe(Eo),B=xe(Pt);if((x==null?void 0:x.value)===Hi.value){let ue=c.filter(Oe=>Oe.value!==Hi.value).find(Oe=>Oe.value===B)||c[1];ji(ue)}else ji()},Mo=re(!0),Fi=c=>{Mo.set(c)},hi=(c,x,B=!0)=>{var ue;if(Z({message:`seek to time, time: ${c}`}),ae.log("seek to time",{time:c,action:x,forcePrecise:B}),wt.next(x),N.info.isLive$.getValue()){let Oe=N.info.duration$.getValue(),mt=Math.min(0,Oe+c);N.seekTime(mt,B)}else{if(I!=null&&I.getValue())return;N.info.isEnded$.getValue()&&(Z({message:"seek after ended, call callbacks.onPlay"}),(ue=l==null?void 0:l.onPlay)==null||ue.call(l)),N.seekTime(ys(c),B)}},Ko=c=>{Z({message:`seek to episode start time: ${c}`}),ae.log("seek to episode start time",{time:c}),hi(c,Jr.SeekAction.EPISODE,!0)},nn=(c,x)=>{Z({message:`seek to percent, percent: ${c}`}),ae.log("seek to percent",{percent:c,action:x});let B=xe(Ho)*c;hi(B,x,!1)},Ui=c=>{Z({message:`seek external, time: ${c}`}),ae.log("seek external",{time:c}),wt.next(Jr.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},yr=c=>{var ue,Oe;let x=(ue=c.max)!=null?ue:"none",B=(Oe=c.min)!=null?Oe:"none";Z({message:`set auto quality limitation. Max: ${x}. Min: ${B}`}),ae.log("set auto quality limits",{max:x,min:B}),N.setAutoQualityLimits(c)},Hr=c=>{Z({message:`seek external to episode start time: ${c}`}),ae.log("seek external to episode start time",{time:c}),hi(c,Jr.SeekAction.EPISODE,!0)},Fr=c=>{Z({message:`set playback rate to: ${c}`}),ae.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},$n=re(void 0),zn=re(!1),Ur=c=>{Z({message:`start scrubbing, progress: ${c}`}),ae.log("start scrubbing",{progress:c}),zn.set(!0),eo(c)},eo=c=>{$n.set(c)},Qo,Wn,ar=()=>{$n.set(void 0),zn.set(!1)},lr=()=>{clearTimeout(Wn),clearTimeout(Qo),Qo=window.setTimeout(()=>{ar()},500),et==null||et.removeEventListener("seeked",lr)},zr=c=>{Z({message:`complete scrubbing, progress: ${c}`}),ae.log("complete scrubbing",{progress:c}),nn(c,Jr.SeekAction.SLIDER),xe(At.ui.isMobile)&&xe(At.state.currentFormat$)===li.VideoFormat.HLS?(et==null||et.addEventListener("seeked",lr),Wn=window.setTimeout(()=>{lr()},300)):ar()},is=vi([di,Ho,$n],([c,x,B],ue)=>{ue((0,ut.isNonNullable)(B)?B*x:c)}),Te=re(!1),ye=()=>{Te.set(!0)},St=()=>{Te.set(!1)},zt=re({width:0,height:0}),Ii=vi([zt],([{width:c}],x)=>{let B=f1(c);x(B)}),_i=re(!1),Fe=z.filter(c=>Sh(c)),It=vi([Ii,_i],([c,x])=>x?Fe.filter(B=>!B.hideOnMobile):Fe.filter(B=>{var ue;return!((ue=B.hideOnDesktopGridTypes)!=null&&ue.includes(c))})),ti=re(z.filter(c=>Ch(c))),rn=vi([ti,Ii],([c,x])=>c.filter(B=>{var ue;return!((ue=B.hideOnDesktopGridTypes)!=null&&ue.includes(x))})),yn=vi([rn,It],([c,x])=>[...ce.features.additionalButtonsDesktopControlPanelRight?c.filter(B=>B.type==="desktop-control-panel-right"):[],...ce.features.additionalButtons?x.map((B,ue)=>{var Oe;return{id:ue,weight:ue,type:"desktop-control-panel-right",testId:B.testId,icon:B.iconUrl,onClick:B.onClick,ariaLabel:(Oe=B.ariaLabel)!=null?Oe:B.tooltip,tooltipText:B.tooltip}}):[]]),to=re(q),Wr=vi([to],([c])=>ce.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),xr=(c,x)=>{let B=xe(ti).map(ue=>ue.id!==c?ue:{...ue,...x});ti.set(B)},Zi=c=>{let x=xe(ti);if(x.some(B=>B.id===c.id)){Z({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ti.set(x)},Ei=c=>{let x=xe(ti);if(!x.some(B=>B.id===c)){Z({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),ti.set(x)},xn=c=>{wt.next(Jr.SeekAction.LIVE),Z({message:"live switch to low latency "+c}),ae.log("live switch to low latency "+c),N.setLiveLowLatency(c)},qn=(c,x)=>{let B=xe(to).map(ue=>ue.id!==c?ue:{...ue,...x});to.set(B)},wr=c=>{let x=xe(to);if(x.some(B=>B.id===c.id)){Z({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),to.set(x)},bo=c=>{let x=xe(to);if(!x.some(B=>B.id===c)){Z({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),to.set(x)},dr=re(U),Us=vi([dr],([c])=>ce.features.additionalContextMenuItems?c:[]),xt=(c,x)=>{let B=xe(dr).map(ue=>ue.id!==c?ue:{...ue,...x});dr.set(B)},$t=c=>{let x=xe(dr);if(x.some(B=>B.id===c.id)){Z({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),dr.set(x)},io=c=>{let x=xe(dr);if(!x.some(B=>B.id===c)){Z({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),dr.set(x)},Go=vi([_i,ni],([c,x],B)=>{B(c&&x)}),oo=()=>{wt.next(Jr.SeekAction.LIVE),Z({message:"switch to active live"}),ae.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==li.PlaybackState.PLAYING&&At.actions.internal.togglePlay()},ri=()=>{ae.log("skip adman"),ee.skip()},Ni=(c=!0)=>{(0,ut.assertNonNullable)(At),Z({message:`switch from ads to video, callPlay: ${c}`}),ae.log("switch from ads to video",{callPlay:c}),j.set("video"),c&&N.play(),r&&Ao(!0)},$s=()=>{(0,ut.assertNonNullable)(At),Z({message:"switch from video to ads"}),ae.log("switch from video to ads"),At.actions.internal.pause(),qt(),j.set("ads")},kl=c=>{(0,ut.assertNonNullable)(At);let x=c?"LiveWaitingStart":"thumb";ae.log("set live waiting start",{state:c,playerPhase:x}),j.set(x)},dc=c=>{(0,ut.assertNonNullable)(At);let x=c?"LiveWaitingRecover":"thumb";ae.log("set live waiting recover",{state:c,playerPhase:x}),j.set(x)},Fu=c=>{(0,ut.assertNonNullable)(At);let x=c?"LiveWaitingRecord":"thumb";ae.log("set live waiting record",{state:c,playerPhase:x}),j.set(x)},cc=()=>((0,ut.assertNonNullable)(At),ae.log("get debug text data"),yh(N,ze,At,Ae.getTraceId())),Uu=()=>((0,ut.assertNonNullable)(At),JSON.stringify(Ae.getFinishedSpans())),uc=()=>((0,ut.assertNonNullable)(At),xh(N,ze,At)),Ra=()=>et,pc=()=>{Z({message:"toggle chromecast"}),ae.log("toggle chromecast"),N.toggleChromecast()},fc=c=>{var B;if((0,ut.assertNonNullable)(At),N.info.isEnded$.getValue())return;let x=!c;if(xe(At.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${x}`}),ae.log("pause ads",{internalCall:x}),ee.pause();return}Z({message:`pause video, internalCall: ${x}`}),ae.log("pause video",{internalCall:x}),x&&((B=l==null?void 0:l.onPause)==null||B.call(l)),N.pause()},Pl=c=>{var B;(0,ut.assertNonNullable)(At);let x=!c;if(xe(At.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${x}`}),ae.log("play ads",{internalCall:x}),ee.play();return}Z({message:`play video, internalCall: ${x}`}),ae.log("play video",{internalCall:x}),x&&((B=l==null?void 0:l.onPlay)==null||B.call(l)),N.play()},mc=c=>{(0,ut.assertNonNullable)(At);let x=!c;if(xe(At.playerPhase)==="ads"){Z({message:"player cannot be stopped during ads via external method"});return}Z({message:`player will be stopped, internalCall: ${x}`}),P==null||P()},Al=(c,x)=>{(0,ut.assertNonNullable)(At),Z({message:`first start, show ads: ${c}, internalCall: ${!x}`}),ae.log("first start",{showAds:c,external:x}),c?j.set("ads"):(j.set("video"),x?N.play():At.actions.internal.togglePlay())},Ml=()=>(Z({message:"getting time codes"}),f),Ll=()=>{let c=Ml();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(B=>B.time>x)},zu=c=>{let x=c;x||(x=Ll());let B=N.info.position$.getValue();ae.log("seek to next episode",{currentTime:B,...x}),x&&(Z({message:"seek to next episode"}),hi(x.time,Jr.SeekAction.EPISODE,!0))},Vl=()=>{let c=Ml();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),B=c.findIndex(Oe=>Oe.time>x),ue=B===-1?c.length-2:B-2;if(!(ue<0))return c[ue]},Wu=c=>{let x=c;x||(x=Vl());let B=N.info.position$.getValue();ae.log("seek to prev episode",{currentTime:B,...x}),x&&(Z({message:"seek to prev episode"}),hi(x.time,Jr.SeekAction.EPISODE,!0))},qu=()=>(Z({message:"getting preview thumbs data"}),ae.log("get preview thumbs data",{...b}),b),Ku=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())),ae.log("toggle picture in picture",{isActive:c,action:x})},Qe=(c=-90)=>{ae.log("rotate video",{alphaDiff:c}),Tt.update(x=>x+c)},ii=re([]);T==null||T.subscribe(c=>{let x=[];for(let B=0;B<c.length;B++){let{range:[ue,Oe],subjects:mt}=c[B];B===0&&ue!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ue/1e3,text:"",interactive:!0,completed:ce.features.interactiveTimeOpenUri?!mt.length||mt.every(Dt=>Dt.isRemoved):!mt.length}),Oe!==1/0&&x.push({time:Oe/1e3,text:"",interactive:!1,completed:!0})}ii.set(x)});let Lo=re(!1);I==null||I.subscribe(c=>{c&&xe(zn)&&ar()});let ys=c=>{if(!C)return c;let x=xe(ii),B=xe(Ho),Oe=xe(mo)/B,mt=x.find(Dt=>Dt.interactive&&!Dt.completed&&Dt.time>Oe);return typeof(mt==null?void 0:mt.time)=="number"?Math.min(c,mt.time-.05):c},sn=()=>{At.ui.episodes.panelOpened$.set(!1)},u0=()=>{ae.log("destroy store"),clearTimeout(Wn),clearTimeout(Qo),Ee.unsubscribe(),Ze.unsubscribe(),N.destroy(),ee.destroy(),de==null||de.destroy(),We==null||We.destroy(),Yt.unsubscribe(),Kt==null||Kt.disconnect(),Kt=null,ie.destroy()},At={interfaceLanguage$:Pt,isCyrillicRelatedInterface$:te,initVideo:fe,videoId:i,isClip:o,playerPhase:pe,vsid:qe,state:{positionExact$:di,positionWithScrubbing$:is,duration$:Ho,playbackState$:Si,isPlaying$:To,isLoaderVisible:Oo,bufferedProgress$:Hn,isLive$:Qt,canChangePlaybackSpeed$:ui,isActiveLive$:hn,isOldestAvailableLive$:Zo,isRewindableLive$:Io,isEnded$:G,muted$:ci,volume$:si,trafficSavingEnabled$:ft,highQualityEnabled$:tt,autoQualityLimitingAvailable$:Vt,availableVideoStreams$:vr,availableAudioStreams$:Jn,videoStream$:er,audioStream$:tr,currentQuality$:Rn,isAutoQualityEnabled$:Jo,availableQualities$:Nr,currentPlaybackRate$:Bn,availablePlaybackRates$:ir,currentSubtitle$:Eo,availableTextTracks$:lt,availableSubtitlesList$:_n,currentSubtitleCaptions$:On,isAutoSubtitleCaptionVisible$:Po,chromecastState$:Xn,chromecastDeviceName$:Li,chromecastConnected$:Br,currentFormat$:No,throughputEstimation$:bi,videoBitrate$:ht,videoSize$:Vi,errorLog$:pt,crashed$:ni,isAudioAvailable$:kn,isAudioDisabled:!!r,canDownload:ce.features.download&&!!d,availableSources$:Fn,hasMpegSources$:or,isInteractive:C,showInteractiveGraph:ce.features.interactiveGraph,showSeekToInteractive:ce.features.seekToInteractive,showPlayPrevChapter:ce.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ce.features.interactiveTimeIndicator&&!!xe(ii).length,interactiveEpisodes$:ii,isInteractiveTime$:I?Xt(I):re(!1),isInteractiveExpectation$:Lo,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,looped$:sr,loadedMetadata$:re(!1),isAutoQualityAvailable$:Fo},ui:{t:Lt,controlsVisible:re(!1),touched:re(!1),controls:{prevButton:re(void 0),playButton:re(void 0),replayButton:re(void 0),nextButton:re(void 0),playPrevChapterButton:re(void 0),seekToInteractiveButton:re(void 0),interactiveGraphButton:re(void 0),liveButton:re(void 0),time:re(void 0),episodes:re(void 0),volume:re(void 0),subtitles:re(void 0),settings:re(void 0),context:re(void 0),chromecast:re(void 0),pip:re(void 0),fullscreen:re(void 0),vkLogo:re(void 0),interactiveTimeIndicator:re(void 0),timeline:re(void 0),autoplayNextToggle:re(void 0),additionalButtons:z.length?z.reduce(c=>[...c,re(void 0)],[]):[],disabledControls$:Pe},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:rt,isFullscreenOpenedByKeyboard:ct,rotateAlpha:Tt,isAutoplay:re(!1),debugPanelVisible:re(!1),episodes:{panelOpened$:re(!1),openedByKeyboard$:re(!1)},contextMenu:{visible$:re(!1),btnRef$:re(void 0),openedByBtnKeyboard$:re(!1),openedByHotKey$:re(!1),lastActiveElem$:re(void 0),showContextMenuBtn$:re(!1),position$:re({top:0,left:0})},playerSize:zt,isMobile:_i,mobileNotReportControlHidden$:Go,mobileUnmuteButtonExpanded:re(!1),mobileUnmuteButtonVisible:re(!1),icon3DVideoVisible:re(!1),scrubbingInProgress:zn,volumeChangingInProgress:Te,is3DVideo:re(!1),currentGridType$:Ii,additionalButtonsDeprecated$:It,additionalDesktopControlPanelRightButtons$:yn,additionalSettingsMenuItems$:Wr,additionalContextMenuItems$:Us,interactiveHideMobileControls:re(!1),overlayContainer$:re(void 0),startedByKeyboard$:re(!1),autoplayNextEnabled$:re(!1),timerNextVideoRunning$:re(!0),settingsMenu:{visible$:re(!1),ref$:re(void 0),openedByBtnKeyboard$:re(!1)},settingsSubMenu:{visible$:re(!1),ref$:re(void 0),name$:re(void 0)},aboutToGoNextVideo:re(void 0),userActionsDisabled:re(!1),hiddenControls:{volume:re(!1),vkLogo:re(!1),pip:re(!1),chromecast:re(!1),settings:re(!1)},isControlsAvailable:Mo,controlBlocks:{topLeft:re(void 0),topRight:re(void 0),middle:re(void 0),bottom:re(void 0),bottomLeft:re(void 0),bottomRight:re(void 0)},videoTitleInfo:re(void 0)},ads:{position:re(0),duration:re(0),playbackState:re("inactive"),canSkip:re(!1),secondsToWatchBeforeSkip:re(0),postrollPassed:re(!1)},webApi:{pictureInPictureApi:ne,annotationsApi:me,slotsApi:$e},actions:{internal:{preload:Un,firstStart:c=>Al(c,!1),play:()=>Pl(!1),pause:()=>fc(!1),togglePlay:ho,toggleMuted:Uo,openSettingsMenu:rr,closeSettingsMenu:Dr,openSettingsSubMenu:en,closeSettingsSubMenu:_r,setVolume:vo,startVolumeChanging:ye,stopVolumeChanging:St,setVideoStream:An,setAudioStream:es,setQuality:bn,setTrafficSavingEnabled:on,setHighQualityEnabled:Je,setPlaybackRate:_o,incrementPlaybackRate:Ji,decrementPlaybackRate:Wo,setSubtitle:ji,toggleSubtitle:qo,togglePictureInPicture:Ku,startScrubbing:Ur,progressScrubbing:eo,completeScrubbing:zr,toggleChromecast:pc,switchToActiveLive:oo,switchFromAdsToVideo:Ni,switchFromVideoToAds:$s,skipAd:ri,setLiveWaitingStart:kl,setLiveWaitingRecover:dc,setLiveWaitingRecord:Fu,getDebugTextData:cc,getTraceTextData:Uu,getDebugPanelData:uc,getVideoElement:Ra,seekTime:(c,x,B)=>hi(c,x,B),clearDelayedBufferingCheckTimeout:Pn,seekEpisodeStartTime:Ko,seekToPercent:nn,getNextEpisode:Ll,seekToNextEpisode:zu,getPrevEpisode:Vl,seekToPrevEpisode:Wu,startLogging:Jt,stopLogging:Gi,startCameraManualRotation:Oi,stopCameraManualRotation:po,moveCameraFocusPX:Yi,holdCamera:nt,releaseCamera:yt,getVideoEpisodes:Ml,getPreviewThumbsData:qu,downloadVideo:nr,addLanguage:Jp,setLanguage:Ft,nextMovie:ot,videoRotate:Qe,correctSeekTimeToInteractive:ys,replayInteractive:M,setLooped:br,reportProblem:Ti,setAutoplayNextEnabled:ts,setTimerNextVideoRunning:Or,prevVideoClick:$r,nextVideoClick:bt,nextVideoAnnouncementShow:zo,nextVideoAnnouncementClick:go,nextVideoAnnouncementAuto:Xi,nextVideoAnnouncementCancel:tn},external:{firstStart:c=>Al(c,!0),play:()=>Pl(!0),pause:()=>fc(!0),stop:()=>mc(!0),seekTime:c=>Ui(c),seekEpisodeStartTime:c=>Hr(c),setPlaybackRate:c=>Fr(c),setAutoQualityLimits:c=>yr(c),setMuted:Ao,toggleSubtitle:qo,setVolume:vo,returnFocusToEpisodes:sn,updateAdditionalSettingsItem:qn,addAdditionalSettingsItem:wr,removeAdditionalSettingsItem:bo,updateAdditionalContextItem:xt,addAdditionalContextItem:$t,removeAdditionalContextItem:io,updateAdditionalButton:xr,addAdditionalButton:Zi,removeAdditionalButton:Ei,setLiveLowLatency:xn,hideControls:()=>Fi(!1),showControls:()=>Fi(!0)}},callbacks:l,setUiCallbacks:c=>{Ce={...c}},getAdmanWrapper:()=>ee,getLogger:()=>Ye,getPlayer:()=>N,destroy:u0};return At};function Lr(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),a=o&&!!n&&!!(n.right-n.left),{top:r,left:d,bottom:l,right:p}=vs(e[i],t||void 0);return{left:a?d:0,right:a?p:0,top:a?r:0,bottom:a?l:0,isDisplayed:a}}var V2=["disabledControls$","additionalButtons"],R2=["interactiveTimeIndicator"],hl=(t,e,i,o)=>{if(t){for(let[n,a]of Object.entries(e))if(!V2.includes(n)){let r=o||R2.includes(n);a.set(Lr(t,i,n,r))}}};var hu=async(t,e,i)=>{await xo(),e&&i&&(i.focus(),t.set(!1))};var B2=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Zf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=B2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),$(t,o)}function Xf(t,e){O(e,!0);let[i,o]=De(),n=()=>S(l,"$contextMenuVisible$",i),a=m(e,"disabled",3,!1),r=m(e,"ariaLabel",3,""),d=Ie(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,b=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,_=X(void 0);Ue(()=>{s(_)&&Ct(()=>{u.set(s(_))})});let w=I=>{let M=Vs(I),P=o1(s(_));b.set(P),p.set(M),l.set(!n())},y=()=>{f.set(!0)},C=()=>{f.set(!1)},T=v(()=>n()?"opened":"");Bt(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return r()},click:w,focus:y,blur:C,get ariaExpanded(){return n()},role:"button",get ref(){return s(_)},set ref(I){D(_,ve(I))},children:(I,M)=>{Zf(I,{})},$$slots:{default:!0}}),H(),o()}var N2=t=>{t.stopPropagation()},D2=L("<div><!> <div></div> <div></div></div>"),O2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
|
|
231
231
|
|
|
232
232
|
@media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
|
|
233
233
|
}
|
|
@@ -252,16 +252,17 @@ Try switching the\xA0quality to\xA0Auto.`},Vh=A_;var is=new Map;is.set(el.Interf
|
|
|
252
252
|
opacity: 0;
|
|
253
253
|
}
|
|
254
254
|
}.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
|
|
255
|
-
animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Id(t,e){var K;F(e,!0),q(t,L2);let[i,o]=De(),n=()=>S(C,"$isMobile",i),a=()=>S(P,"$areControlsVisible",i),s=()=>S(V,"$currentGridType$",i),d=()=>S(I,"$isInteractiveTime$",i),l=()=>S(b,"$interactiveControlsOpacity$",i),p=()=>S(M,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),y=m(e,"ref",15,void 0),u=X(void 0),_=Ce(),w=ro(),{interactiveControlsOpacity$:b}=w,C=_.ui.isMobile,T=_.ui.isFullscreen,I=_.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,P=_.ui.controlsVisible,k=(K=_.callbacks)==null?void 0:K.onInteractiveTimeIndicatorClick,V=_.ui.currentGridType$,W=v(()=>!n()&&a()),j=v(()=>Ss(s(),"s")),H=v(()=>!d()||!!l()||r(W)),Q=X(!1);Fe(()=>{D(Q,fe(r(H)))});let ie=()=>{D(Q,!0)},Z=()=>{var he;se(),(he=r(u))==null||he.addEventListener("animationiteration",ie,{once:!0})},se=()=>{var he;D(Q,!1),(he=r(u))==null||he.removeEventListener("animationiteration",ie)},ce=he=>{M.set(he)},Ee=v(()=>p()&&!r(H));Fe(()=>{p()?Z():se()});let Me=()=>{r(H)||(M.set(!0),k==null||k())};_n(()=>{M.clearTimeout(),se()});let ge=()=>{M.set(!1)},ae=z("tooltip_interactive_interaction_time_indicator");var Pe=M2();let ne;Pe.__mousemove=[A2],Pe.__click=Me;var N=h(Pe);Po(N,{tooltipContent:ae,get tooltipActive(){return r(Ee)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ce,get ref(){return y()},set ref(he){y(he)},children:(he,ee)=>{_d(he,{completed:!0})},$$slots:{default:!0}});var ue=A(N,2);let _e;ht(ue,he=>y(he),()=>y());var ze=A(ue,2);let re;ht(ze,he=>D(u,he),()=>r(u)),g(Pe),E((he,ee,He)=>{ne=J(Pe,1,"interactive-episode-icon-animated svelte-od3veb",null,ne,he),_e=J(ue,1,"ref-block svelte-od3veb",null,_e,ee),re=J(ze,1,"pulse svelte-od3veb",null,re,He)},[()=>({mobile:n(),fullscreen:f(),invisible:r(H),"icon-small":r(j)}),()=>({hidden:r(H)}),()=>({paused:r(Q)})]),kt("mouseleave",Pe,ge),$(t,Pe),U(),o()}at(["mousemove","click"]);function pu(t,e){F(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),a=m(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=Oe();let p=v(()=>e.buttonComponent);var f=pe(l);xi(f,()=>r(p),(y,u)=>{u(y,ts(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),$(s,l)},$$slots:{default:!0}}),U()}var ns={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var R2=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Kf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=R2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}function Cs(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),a=m(e,"height",3,"24"),s=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");Kf(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var B2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),N2=L("<!> <!>",1),D2={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function ma(t,e){F(e,!0),q(t,D2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=Ce().ui.t,d=v(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=v(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),p=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Bt(t,{get className(){return r(p)},get testId(){var 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,y)=>{var u=N2(),_=pe(u);{var w=T=>{var I=B2();$(T,I)};R(_,T=>{o()&&T(w)})}var b=A(_,2);let C=v(()=>e.type==="prev");Cs(b,{get isMobile(){return o()},get isPrev(){return r(C)}}),$(f,u)},$$slots:{default:!0}}),U()}var O2=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function kd(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=O2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),$(t,o)}var b1=require("@vkontakte/videoplayer-shared/es2018");var H2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),F2=L("<!> <div><!></div>",1),U2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function ml(t,e){F(e,!0),q(t,U2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),a=m(e,"className",3,""),s=m(e,"click",3,b1.noop),d=z("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Bt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Dr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var y=F2(),u=pe(y);{var _=T=>{var I=H2();$(T,I)};R(u,T=>{o()&&T(_)})}var w=A(u,2);let b;var C=h(w);kd(C,{}),g(w),E(T=>b=J(w,1,"svelte-1ot3duq",null,b,T),[()=>({mobile:o()})]),$(p,y)},$$slots:{default:!0}}),U()}var z2=ye('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Sr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var s=z2(),d=h(s);g(s),E(()=>{Ne(s,"width",i()),Ne(s,"height",o()),Ne(s,"viewBox",n()),Ne(d,"fill",a())}),$(t,s)}var W2=ye('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function rs(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var s=W2(),d=h(s);g(s),E(()=>{Ne(s,"width",i()),Ne(s,"height",o()),Ne(s,"viewBox",n()),Ne(d,"fill",a())}),$(t,s)}var $1=require("@vkontakte/videoplayer-shared/es2018");var q2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),K2=L("<!> <div><!></div>",1),Q2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function vl(t,e){F(e,!0),q(t,Q2);let[i,o]=De(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=ro(),s=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),l=m(e,"isPlaying",3,!1),p=m(e,"disabled",3,!1),f=m(e,"className",3,""),y=m(e,"click",3,$1.noop),_=Ce().ui.t,{toggle:w}=a,b=v(()=>w),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),I=v(()=>r(T)?_("tooltip_pause"):_("tooltip_play")),M=v(()=>r(T)?rs:Sr),P=v(()=>`${d()?"btn-m--play":""} ${f()}`),k=v(()=>r(C)?r(b):y());Bt(t,{get className(){return r(P)},testId:"btn-play",get click(){return r(k)},get disabled(){return p()},get ariaLabel(){return r(I)},get ariaKeyShortCut(){return Dr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,W)=>{var j=K2();let H=v(()=>r(M));var Q=pe(j);{var ie=Ee=>{var Me=q2();$(Ee,Me)};R(Q,Ee=>{d()&&Ee(ie)})}var Z=A(Q,2);let se;var ce=h(Z);xi(ce,()=>r(H),(Ee,Me)=>{Me(Ee,{})}),g(Z),E(Ee=>se=J(Z,1,"svelte-1ot3duq",null,se,Ee),[()=>({mobile:d()})]),$(V,j)},$$slots:{default:!0}}),U(),o()}var G2=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Qf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=G2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),$(t,o)}function Ed(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=z("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Bt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Qf(d,{})},$$slots:{default:!0}}),U()}var Y2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),j2={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function Pd(t,e){F(e,!0),q(t,j2);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),a=m(e,"ref",15,void 0),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Bt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,y)=>{var u=Y2(),_=h(u);let w;var b=h(_);{var C=I=>{Sr(I,{width:"14",height:"14",fill:"#000"})},T=I=>{rs(I,{width:"14",height:"14",fill:"#000"})};R(b,I=>{n()?I(C):I(T,!1)})}g(_),g(u),E(I=>w=J(_,1,"toggler svelte-et3q1q",null,w,I),[()=>({enabled:n()})]),$(f,u)},$$slots:{default:!0}}),U(),o()}var Z2=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Gf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i})),$(t,o)}function Ad(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=z("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Bt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Gf(d,{})},$$slots:{default:!0}}),U()}var X2=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Yf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=X2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}var J2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function jf(t,e){q(t,J2);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Yf(t,{get"data-testid"(){return r(o)}})}function Md(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=m(e,"graphIsOpened",3,!1),d=Ce().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=v(()=>o()?"hidden":"");Bt(t,{get className(){return r(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,y)=>{let u=v(()=>!!a());jf(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),U()}var Zf=require("@vkontakte/videoplayer-core/es2018");function Ld(t,e){F(e,!0);let[i,o]=De(),n=()=>S(p,"$playbackState$",i),a=m(e,"isMobile",3,!1),s=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),l=Ce(),p=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,y=l.actions.internal.togglePlay,u=v(()=>()=>{if(!s()){f();return}n()===Zf.PlaybackState.PAUSED&&y()}),_=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),b=v(()=>s()&&n()===Zf.PlaybackState.PLAYING);Bt(t,{get className(){return r(_)},get testId(){return r(w)},get disabled(){return r(b)},get ariaLabel(){return d()},get click(){return r(u)},children:(C,T)=>{sd(C,{get isActive(){return s()}})},$$slots:{default:!0}}),U(),o()}var Xf=require("@vkontakte/videoplayer-shared/es2018");var ey=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),ty=L('<img class="icon" aria-hidden="true">');function va(t,e){"use strict";let i=X(!1),o=()=>{D(i,!0)};var n=Oe(),a=pe(n);{var s=l=>{var p=ey();$(l,p)},d=l=>{var p=ty();E(()=>Ne(p,"src",e.icon)),kt("error",p,o),Ws(p),$(l,p)};R(a,l=>{r(i)?l(s):l(d,!1)})}$(t,n)}function Jf(t,e){F(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Xf.noop),n=m(e,"ref",15),a=v(()=>o()===Xf.noop),s=v(()=>r(a)||i()),d=v(()=>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=v(()=>{var y;return(y=e.testId)!=null?y:e.id});Bt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(f)},children:(y,u)=>{va(y,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var y1=t=>!!t.buttonComponent;var ss={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var ny=L('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),ry={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function em(t,e){var Es,Ea;F(e,!0),q(t,ry);let[i,o]=De(),n=()=>S(G,"$disabledControls$",i),a=()=>S(Rt,"$adPlaybackState",i),s=()=>S(mt,"$playbackState$",i),d=()=>S(xo,"$currentSubtitle$",i),l=()=>S(ri,"$isEnded$",i),p=()=>S(sr,"$currentGridType$",i),f=()=>S($i,"$isLive$",i),y=()=>S(cn,"$chromecastState$",i),u=()=>S(Pi,"$isPictureInPictureActive",i),_=()=>S(Qi,"$pictureInPictureType$",i),w=()=>S($n,"$availableSubtitlesList$",i),b=()=>S(Ai,"$contextMenuOpenedByKeyboard$",i),C=()=>S(bi,"$showContextMenuBtn$",i),T=()=>S(ti,"$playerSize",i),I=()=>S(jt,"$isRewindableLive$",i),M=()=>S(tt,"$isActiveLive$",i),P=()=>S(Co,"$graphIsOpened$",i),k=()=>S(Xt,"$contextMenuVisible$",i),V=()=>S(lo,"$isFullscreen",i),W=()=>S(Mo,"$autoplayNextEnabled",i),j=()=>S(r(Qn),"$prevButton",i),H=()=>S(r(Gn),"$replayButton",i),Q=()=>S(r(rt),"$playButton",i),ie=()=>S(r(xt),"$nextButton",i),Z=()=>S(r(Si),"$playPrevChapterButton",i),se=()=>S(r(To),"$seekToInteractiveButton",i),ce=()=>S(r(fo),"$interactiveGraphButton",i),Ee=()=>S(r(Io),"$liveButton",i),Me=()=>S(r(ko),"$time",i),ge=()=>S(r(ut),"$episodes",i),ae=()=>S(r(Qt),"$vkLogo",i),Pe=()=>S(r(oi),"$volume",i),ne=()=>S(r(mi),"$subtitles",i),N=()=>S(r(Zi),"$settings",i),ue=()=>S(r(mo),"$context",i),_e=()=>S(r(Gi),"$fullscreen",i),ze=()=>S(r(Fi),"$chromecast",i),re=()=>S(co,"$additionalDesktopControlPanelRightButtons$",i),K=()=>S(Uo,"$isInteractiveTime$",i),he=()=>S(Vt,"$settingsMenuVisible",i),ee=()=>S(Pr,"$settingButtonRef$",i),He=()=>S(ai,"$startedByKeyboard$",i),Ze=()=>S(Dt,"$isAudioAvailable$",i),we=()=>S(Nt,"$fakeIsPlaying$",i),Ve=()=>S(yn,"$seekToInteractiveDisabledTooltip$",i),Ie=()=>S(et,"$adPosition",i),Ue=()=>S(pt,"$position$",i),dt=()=>S(fi,"$adDuration",i),ct=()=>S($t,"$duration$",i),ot=m(e,"playerControlsWrapperRef",15,void 0),Et=m(e,"playerControlsRef",15,void 0),_t=m(e,"isAds",3,!1),Yt=m(e,"logoTargetUrl",3,""),Zt=m(e,"isOneVideoPlaylist",3,!1),Lt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Nt}=ro(),O=Ce(),be=ro(),oe=Kt(),Be=O.actions.internal.toggleMuted,Qe=O.actions.internal.togglePlay,je=O.actions.internal.pause,Le=O.actions.internal.toggleSubtitle,it=(Es=O.callbacks)==null?void 0:Es.onAudioDoesNotExistHint,Je=(Ea=O.callbacks)==null?void 0:Ea.onAudioDisabledHint,$t=O.state.duration$,pt=O.state.positionWithScrubbing$,mt=O.state.playbackState$,Dt=O.state.isAudioAvailable$,Ge=O.state.isAudioDisabled,ri=O.state.isEnded$,$i=O.state.isLive$,tt=O.state.isActiveLive$,jt=O.state.isRewindableLive$,{isActive$:Pi,type$:Qi}=be.pictureInPicture$,Vt=O.ui.settingsMenu.visible$,yt=O.ui.settingsMenu.openedByBtnKeyboard$,Ot=O.ui.controls,ao=O.actions.internal.getVideoEpisodes(),cn=O.state.chromecastState$,$n=O.state.availableSubtitlesList$,xo=O.state.currentSubtitle$,G=Ot.disabledControls$,Xt=O.ui.contextMenu.visible$,bi=O.ui.contextMenu.showContextMenuBtn$,Ai=O.ui.contextMenu.openedByBtnKeyboard$,ai=O.ui.startedByKeyboard$,vt=O.ui.t,fi=O.ads.duration,et=O.ads.position,Rt=O.ads.playbackState,lo=O.ui.isFullscreen,ti=O.ui.playerSize,sr=O.ui.currentGridType$,co=O.ui.additionalDesktopControlPanelRightButtons$,Mo=O.ui.autoplayNextEnabled$,li=O.actions.internal.getVideoElement,Tt=O.actions.internal.replayInteractive,Mi=O.actions.internal.prevVideoClick,Lo=O.actions.internal.nextVideoClick,pi=O.state.isInteractive,Uo=O.state.isInteractiveTime$,Bi=O.state.showInteractiveGraph,wo=O.state.showSeekToInteractive,So=O.state.showPlayPrevChapter,Fn=O.state.showInteractiveTimeIndicator,Ni=O.state.playPrevChapterDisabledTooltip,yn=be.seekToInteractiveDisabledTooltip$,Co=be.graphIsOpened$,Vo=oe.features.interactiveResponsiveUi,xn=v(()=>n().has("EPISODE_BUTTON")),Tr=v(()=>n().has("GRAPH_BUTTON")),ar=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Un=v(()=>n().has("PLAY_BUTTON")),wn=v(()=>n().has("REPLAY_BUTTON")),Sn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),zn=()=>O.actions.internal.toggleChromecast(),uo=v(()=>_t()?a()==="playing":s()===ga.PlaybackState.PLAYING),nt=v(()=>d().value!=="off"),Cn=v(()=>l()&&!_t()||pi),zo=v(()=>Vo?r(Cn)&&Wi(p(),"m"):r(Cn)),Tn=v(()=>!l()||pi||_t()),In=v(()=>Wi(p(),"m")),Ro=v(()=>e.showNextPrevButtons&&Wi(p(),"m")&&!_t()&&e.nextButtonActive),lr=v(()=>e.showNextPrevButtons&&Wi(p(),"m")&&!_t()&&e.prevButtonActive),Wo=v(()=>!_t()&&!!f()),kn=v(()=>y()!==ga.ChromecastState.NOT_AVAILABLE&&!(u()&&_()===1)&&Wi(p(),"m")&&!pi),qo=v(()=>e.showAutoplayNext&&!Zt()&&Wi(p(),"s")),po=v(()=>w().length>0&&Wi(p(),"m")),Di=v(()=>b()||C()),En=v(()=>Wi(p(),"s")&&!_t()),Bo=v(()=>!e.logoHidden&&!_t()),Ko=v(()=>oe.features.fullscreen&&(e.logoHidden||Wi(p(),Vo?"xs":"s"))&&!(u()&&_()===1)&&(pi?Lt():!0)),No=v(()=>(!f()||_t())&&!(oe.features.interactiveHideTime&&pi)),Pn=v(()=>T().width>100),Oi=v(()=>Bi&&Wi(p(),"m")),Hi=v(()=>Vo?wo&&Wi(p(),"s"):wo),dr=v(()=>Vo?So&&Wi(p(),"s"):So),Do=v(()=>!_t()&&!f()&&!!(ao!=null&&ao.length)&&r(In)&&!r(xn)),Wn=v(()=>!I()||!!M()),An=v(()=>P()?vt("tooltip_interactive_graph_on"):vt("tooltip_interactive_graph_off")),qn=v(()=>k()?vt("tooltip_context_menu_close"):vt("tooltip_context_menu_open")),cr=(lt,St)=>lt?St&&St===ga.PlaybackState.PAUSED?vt("tooltip_play"):"":vt("tooltip_live"),un=v(()=>cr(r(Wn),s())),ur=v(()=>oe.logoType==="vk_video"?vt("tooltip_vk_video_logo"):vt("tooltip_vk_logo")),pr=v(()=>r(nt)?vt("tooltip_subtitles_on"):vt("tooltip_subtitles_off")),Kn=v(()=>V()?vt("tooltip_fullscreen_on"):vt("tooltip_fullscreen_off")),Ir=v(()=>y()===ga.ChromecastState.CONNECTED?vt("tooltip_chromecast_on"):vt("tooltip_chromecast_off")),kr=v(()=>W()?vt("tooltip_autoplay_on"):vt("tooltip_autoplay_off")),Mn=X(0),Jt=fe({}),Qn=v(()=>Ot.prevButton),Gn=v(()=>Ot.replayButton),rt=v(()=>Ot.playButton),xt=v(()=>Ot.nextButton),Si=v(()=>Ot.playPrevChapterButton),To=v(()=>Ot.seekToInteractiveButton),fo=v(()=>Ot.interactiveGraphButton),Io=v(()=>Ot.liveButton),ko=v(()=>Ot.time),ut=v(()=>Ot.episodes),Qt=v(()=>Ot.vkLogo),oi=v(()=>Ot.volume),mi=v(()=>Ot.subtitles),Zi=v(()=>Ot.settings),mo=v(()=>Ot.context),Gi=v(()=>Ot.fullscreen),Fi=v(()=>Ot.chromecast),Ci=v(()=>({prevButton:j()?j().right-j().left:0,replayButton:H()?H().right-H().left:0,playButton:Q()?Q().right-Q().left:0,nextButton:ie()?ie().right-ie().left:0,playPrevChapterButton:Z()?Z().right-Z().left:0,seekToInteractiveButton:se()?se().right-se().left:0,interactiveGraphButton:ce()?ce().right-ce().left:0,liveButton:Ee()?Ee().right-Ee().left:0,time:Me()?Me().right-Me().left:0,episodes:ge()?ge().right-ge().left:0,vkLogo:ae()?ae().right-ae().left:0,volume:Pe()?Pe().right-Pe().left:0,subtitles:ne()?ne().right-ne().left:0,settings:N()?N().right-N().left:0,context:ue()?ue().right-ue().left:0,fullscreen:_e()?_e().right-_e().left:0,chromecast:ze()?ze().right-ze().left:0,additionalButtons:re().length?re().reduce(lt=>[...lt,40],[]):[]})),Qo=X(0);Fe(()=>{(!r(Qo)||r(Qo)<r(Ci).time)&&Ct(()=>D(Qo,fe(r(Ci).time)))});let Ln=X(!1);Fe(()=>{let lt=0;r(Do)&&(Wi(p(),"xl")?lt=r(Ci).time:lt=60);let St=r(Ci).prevButton+r(Ci).playButton+r(Ci).nextButton+r(Ci).seekToInteractiveButton+r(Ci).interactiveGraphButton+r(Ci).liveButton+r(Qo)+lt;D(Ln,fe(r(No)&&r(Mn)>=St))});let Er=v(()=>r(Ln)&&Wi(p(),"m")),Yn=(0,x1.debounceFn)(fl,260);Fe(()=>{T(),K(),Yn(li(),Ot,Jt,e.showControls)});let Pr=le();Fe(()=>{he(),ee()&&Ct(()=>rl(ee(),he(),yt))});let pn;Fe(()=>{He(),Ct(()=>uu(ai,He(),pn))});function jn(){ys({isAudioDisabled:Ge,isAudioAvailable:Ze(),isAds:_t(),audioIsNotExistHintCallback:it,audioDisabledHintCallback:Je})&&Be()}let Zn=pi?Tt:Qe,Ur=v(()=>we()!==null),Xn=v(()=>r(Ur)?we():r(uo)),Go=v(()=>r(Xn)?vt("tooltip_pause"):vt("tooltip_play")),fr=vt("tooltip_episodes"),Yo=v(()=>{var lt,St,Yi,Zo;return r(lr)?{id:"prevButton",type:"desktop-control-panel-left",weight:ns.prevButton,buttonComponent:ma,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Mi.bind(null,!0)},tooltipEnabled:!((St=(lt=O.callbacks)==null?void 0:lt.uiInfo)!=null&&St.onPrevButtonMouseEnter)&&!((Zo=(Yi=O.callbacks)==null?void 0:Yi.uiInfo)!=null&&Zo.onPrevButtonMouseLeave),mouseEnter:()=>{var ji,ci,Ti;(Ti=(ci=(ji=O.callbacks)==null?void 0:ji.uiInfo)==null?void 0:ci.onPrevButtonMouseEnter)==null||Ti.call(ci,fa(li(),Jt,"prevButton",e.showControls))},mouseLeave:()=>{var ji,ci,Ti;(Ti=(ci=(ji=O.callbacks)==null?void 0:ji.uiInfo)==null?void 0:ci.onPrevButtonMouseLeave)==null||Ti.call(ci,fa(li(),Jt,"prevButton",e.showControls))},tooltipText:vt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),mr=v(()=>r(zo)?{id:"replayButton",type:"desktop-control-panel-left",weight:ns.replayButton,buttonComponent:ml,buttonComponentProps:{disabled:r(wn),click:Zn},tooltipText:vt("tooltip_restart"),disabled:r(wn)}:void 0),zr=v(()=>r(Tn)?{id:"playButton",type:"desktop-control-panel-left",weight:ns.playButton,buttonComponent:vl,buttonComponentProps:{disabled:r(Un),isPlaying:r(uo),click:Qe},tooltipText:r(Go),disabled:r(Un)}:void 0),Ar=v(()=>{var lt,St,Yi,Zo;return r(Ro)?{id:"nextButton",type:"desktop-control-panel-left",weight:ns.nextButton,buttonComponent:ma,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Lo.bind(null,!0)},tooltipEnabled:!((St=(lt=O.callbacks)==null?void 0:lt.uiInfo)!=null&&St.onNextButtonMouseEnter)&&!((Zo=(Yi=O.callbacks)==null?void 0:Yi.uiInfo)!=null&&Zo.onNextButtonMouseLeave),mouseEnter:()=>{var ji,ci,Ti;(Ti=(ci=(ji=O.callbacks)==null?void 0:ji.uiInfo)==null?void 0:ci.onNextButtonMouseEnter)==null||Ti.call(ci,fa(li(),Jt,"nextButton",e.showControls))},mouseLeave:()=>{var ji,ci,Ti;(Ti=(ci=(ji=O.callbacks)==null?void 0:ji.uiInfo)==null?void 0:ci.onNextButtonMouseLeave)==null||Ti.call(ci,fa(li(),Jt,"nextButton",e.showControls))},tooltipText:vt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Mr=v(()=>pi&&r(dr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ns.playPrevChapterButton,buttonComponent:Ed,buttonComponentProps:{disabled:r(Sn),click:e.playPrevChapter},tooltipText:vt("tooltip_interactive_go_back"),disabledTooltipContent:vt(Ni),disabled:r(Sn)}:void 0),Xe=v(()=>pi&&r(Hi)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ns.seekToInteractiveButton,buttonComponent:Ad,buttonComponentProps:{disabled:r(ar),click:e.seekToInteractive},tooltipText:vt("tooltip_interactive_seek"),disabled:r(ar),disabledTooltipContent:vt(Ve())}:void 0),Ht=v(()=>pi&&r(Oi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ns.interactiveGraphButton,buttonComponent:Md,buttonComponentProps:{disabled:r(Tr),click:Co.toggle,graphIsOpened:P()},tooltipText:r(An)}:void 0),Li=v(()=>r(Wo)?{id:"liveButton",type:"desktop-control-panel-left",weight:ns.liveButton,buttonComponent:Ld,buttonComponentProps:{isLiveActive:r(Wn),ariaLabel:r(un)},tooltipText:r(un),disabled:r(Wn)&&s()===ga.PlaybackState.PLAYING}:void 0),jo=v(()=>[r(Yo),r(mr),r(zr),r(Ar),r(Mr),r(Xe),r(Ht),r(Li)].filter(lt=>!!lt).sort(na)),Oo=v(()=>r(Bo)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ss.vkLogo,buttonComponent:yd,buttonComponentProps:{targetUrl:Yt(),logoClickable:e.logoClickable,click:je},tooltipText:r(ur),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Vn=v(()=>r(qo)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ss.autoplayNext,buttonComponent:Pd,tooltipText:r(kr)}:void 0),fn=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:ss.volume,buttonComponent:If,buttonComponentProps:{click:jn,isAds:_t()}})),Se=v(()=>r(po)?{id:"subtitles",type:"desktop-control-panel-right",weight:ss.subtitles,buttonComponent:wf,buttonComponentProps:{isSubtitlesEnabled:r(nt),click:Le},tooltipText:r(pr)}:void 0),ft=v(()=>r(En)?{id:"settings",type:"desktop-control-panel-right",weight:ss.settings,buttonComponent:ul,buttonComponentProps:{ref$:Pr},tooltipText:he()?void 0:vt("tooltip_settings_off")}:void 0),Wt=v(()=>oe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ss.context,buttonComponent:qf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:vt("aria_label_context_menu")},className:r(Di)?"":"out-of-view",tooltipText:r(qn)}:void 0),si=v(()=>r(Ko)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ss.fullscreen,buttonComponent:$d,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Kn)}:void 0),Xi=v(()=>r(kn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ss.chromecast,buttonComponent:xd,buttonComponentProps:{state:y(),click:zn},tooltipText:r(Ir)}:void 0),Re=v(()=>[r(Oo),r(Vn),r(fn),r(Se),r(ft),r(Wt),r(si),r(Xi),...re()].filter(lt=>!!lt).sort(na));var gt=ny(),ni=pe(gt);let Ji;var vo=h(ni);let Wr=v(()=>!r(Pn));ua(vo,{get isHidden(){return r(Wr)},get isAds(){return _t()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Jt.timeline},set ref(lt){Jt.timeline=lt}});var Vi=A(vo,2),Jn=h(Vi),ks=h(Jn);yi(ks,17,()=>r(jo),lt=>lt.id,(lt,St)=>{pu(lt,{get buttonComponent(){return r(St).buttonComponent},get buttonComponentProps(){return r(St).buttonComponentProps},get tooltipText(){return r(St).tooltipText},get disabledTooltipContent(){return r(St).disabledTooltipContent},get disabled(){return r(St).disabled},get className(){return r(St).className},get tooltipEnabled(){return r(St).tooltipEnabled},get mouseEnter(){return r(St).mouseEnter},get mouseLeave(){return r(St).mouseLeave},get ref(){return Jt[r(St).id]},set ref(Yi){Jt[r(St).id]=Yi}})});var er=A(ks,2);{var Ca=lt=>{let St=v(()=>_t()?Ie():Ue()),Yi=v(()=>_t()?dt():ct());hd(lt,{isMobile:!1,get showDuration(){return r(Er)},get position(){return r(St)},get duration(){return r(Yi)},get ref(){return Jt.time},set ref(Zo){Jt.time=Zo}})};R(er,lt=>{r(No)&<(Ca)})}var Sl=A(er,2);let Ta=v(()=>!r(Do));Po(Sl,{className:"w-max",get disabled(){return r(Ta)},tooltipContent:fr,get ref(){return Jt.episodes},set ref(lt){Jt.episodes=lt},children:(lt,St)=>{var Yi=Oe(),Zo=pe(Yi);{var ji=ci=>{Sd(ci,{get position(){return Ue()},get duration(){return ct()},timeCodes:ao})};R(Zo,ci=>{r(Do)&&ci(ji)})}$(lt,Yi)},$$slots:{default:!0}}),g(Jn);var Ia=A(Jn,2);yi(Ia,21,()=>r(Re),lt=>lt.id,(lt,St)=>{var Yi=Oe(),Zo=pe(Yi);{var ji=Ti=>{pu(Ti,{get buttonComponent(){return r(St).buttonComponent},get buttonComponentProps(){return r(St).buttonComponentProps},get tooltipText(){return r(St).tooltipText},get disabledTooltipContent(){return r(St).disabledTooltipContent},get disabled(){return r(St).disabled},get className(){return r(St).className},get ref(){return Jt[r(St).id]},set ref(Ps){Jt[r(St).id]=Ps}})},ci=Ti=>{let Ps=v(()=>!!r(St).disabled);Jf(Ti,{get id(){return r(St).id},get testId(){return r(St).testId},get icon(){return r(St).icon},get ariaLabel(){return r(St).ariaLabel},get tooltipText(){return r(St).tooltipText},get disabledTooltipContent(){return r(St).disabledTooltipContent},get disabled(){return r(Ps)},get onClick(){return r(St).onClick},get ref(){return Jt[r(St).id]},set ref(Pa){Jt[r(St).id]=Pa}})};R(Zo,Ti=>{y1(r(St))?Ti(ji):Ti(ci,!1)})}$(lt,Yi)}),g(Ia),g(Vi),ht(Vi,lt=>Et(lt),()=>Et()),g(ni),ht(ni,lt=>ot(lt),()=>ot());var ka=A(ni,2);{var Cl=lt=>{Id(lt,{get ref(){return Jt.interactiveTimeIndicator},set ref(St){Jt.interactiveTimeIndicator=St}})};R(ka,lt=>{Fn&<(Cl)})}E(lt=>Ji=J(ni,1,"wrapper-bottom svelte-f6e8ix",null,Ji,lt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Nr(Jn,"clientWidth",lt=>D(Mn,lt)),$(t,gt),U(),o()}var gl=require("@vkontakte/videoplayer-core/es2018");var tm=require("@vkontakte/videoplayer-shared/es2018");var sy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),ay=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),ly={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function im(t,e){q(t,ly);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,tm.noop),n=v(()=>o()===tm.noop),a=v(()=>r(n)||i()),s=X(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Bt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(p,f)=>{var y=Oe(),u=pe(y);{var _=b=>{var C=sy();$(b,C)},w=b=>{var C=ay();E(()=>Ne(C,"src",e.iconUrl)),kt("error",C,d),Ws(C),$(b,C)};R(u,b=>{r(s)?b(_):b(w,!1)})}$(p,y)},$$slots:{default:!0}})}var dy=ye('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function om(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=dy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),$(t,o)}var w1=require("@vkontakte/videoplayer-shared/es2018");var cy=L('<span class="text svelte-6gmlbk"> </span>'),uy=L('<div aria-hidden="true"><!> <!></div>'),py={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function fu(t,e){F(e,!0),q(t,py);let i=m(e,"expanded",3,!1),o=m(e,"click",3,w1.noop),n=m(e,"ref",15,void 0),s=Ce().ui.t,d=s("aria_label_volume"),l=v(()=>i()?ws:om),p=v(()=>i()?"btn-mobile-unmuted":"btn-mobile-muted");Bt(t,{get testId(){return r(p)},get click(){return o()},ariaLabel:d,role:"switch",get ref(){return n()},set ref(f){n(f)},children:(f,y)=>{var u=uy();let _=v(()=>r(l)),w;var b=h(u);xi(b,()=>r(_),(I,M)=>{M(I,{})});var C=A(b,2);{var T=I=>{var M=cy(),P=h(M,!0);g(M),E(k=>me(P,k),[()=>s("mobile_unmute")]),$(I,M)};R(C,I=>{i()&&I(T)})}g(u),E(I=>w=J(u,1,"container svelte-6gmlbk",null,w,I),[()=>({expanded:i()})]),$(f,u)},$$slots:{default:!0}}),U()}var fy=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function nm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=fy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(3),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),$(t,o)}var my={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
256
|
-
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function
|
|
257
|
-
.wrapper-middle-left-second.svelte-
|
|
258
|
-
.wrapper-middle-right.svelte-
|
|
255
|
+
animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Rd(t,e){var me;O(e,!0),W(t,O2);let[i,o]=De(),n=()=>S(C,"$isMobile",i),a=()=>S(P,"$areControlsVisible",i),r=()=>S(R,"$currentGridType$",i),d=()=>S(I,"$isInteractiveTime$",i),l=()=>S(y,"$interactiveControlsOpacity$",i),p=()=>S(M,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),b=m(e,"ref",15,void 0),u=X(void 0),_=Ie(),w=co(),{interactiveControlsOpacity$:y}=w,C=_.ui.isMobile,T=_.ui.isFullscreen,I=_.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,P=_.ui.controlsVisible,E=(me=_.callbacks)==null?void 0:me.onInteractiveTimeIndicatorClick,R=_.ui.currentGridType$,z=v(()=>!n()&&a()),q=v(()=>Ds(r(),"s")),U=v(()=>!d()||!!l()||s(z)),Y=X(!1);Ue(()=>{D(Y,ve(s(U)))});let se=()=>{D(Y,!0)},Q=()=>{var $e;de(),($e=s(u))==null||$e.addEventListener("animationiteration",se,{once:!0})},de=()=>{var $e;D(Y,!1),($e=s(u))==null||$e.removeEventListener("animationiteration",se)},le=$e=>{M.set($e)},Me=v(()=>p()&&!s(U));Ue(()=>{p()?Q():de()});let Be=()=>{s(U)||(M.set(!0),E==null||E())};In(()=>{M.clearTimeout(),de()});let ge=()=>{M.set(!1)},ce=F("tooltip_interactive_interaction_time_indicator");var Ae=D2();let ae;Ae.__mousemove=[N2],Ae.__click=Be;var N=h(Ae);Ro(N,{tooltipContent:ce,get tooltipActive(){return s(Me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return b()},set ref($e){b($e)},children:($e,Z)=>{Td($e,{completed:!0})},$$slots:{default:!0}});var Ye=A(N,2);let ee;it(Ye,$e=>b($e),()=>b());var We=A(Ye,2);let ne;it(We,$e=>D(u,$e),()=>s(u)),g(Ae),k(($e,Z,ze)=>{ae=J(Ae,1,"interactive-episode-icon-animated svelte-od3veb",null,ae,$e),ee=J(Ye,1,"ref-block svelte-od3veb",null,ee,Z),ne=J(We,1,"pulse svelte-od3veb",null,ne,ze)},[()=>({mobile:n(),fullscreen:f(),invisible:s(U),"icon-small":s(q)}),()=>({hidden:s(U)}),()=>({paused:s(Y)})]),Et("mouseleave",Ae,ge),$(t,Ae),H(),o()}dt(["mousemove","click"]);function _u(t,e){O(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),a=m(e,"ref",15);Ro(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(r){a(r)},children:(r,d)=>{var l=He();let p=v(()=>e.buttonComponent);var f=he(l);yi(f,()=>s(p),(b,u)=>{u(b,fs(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),$(r,l)},$$slots:{default:!0}}),H()}var gs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var F2=Se('<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 Jf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=F2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}function Os(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),a=m(e,"height",3,"24"),r=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");Jf(t,{get style(){return s(r)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var U2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),z2=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 wa(t,e){O(e,!0),W(t,W2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),r=Ie().ui.t,d=v(()=>e.type==="prev"?r("tooltip_previous"):r("tooltip_next")),l=v(()=>e.type==="prev"?r("hotkey_map_item_prev_video_value"):r("hotkey_map_item_next_video_value")),p=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Bt(t,{get className(){return s(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(l)},get ref(){return i()},set ref(f){i(f)},children:(f,b)=>{var u=z2(),_=he(u);{var w=T=>{var I=U2();$(T,I)};V(_,T=>{o()&&T(w)})}var y=A(_,2);let C=v(()=>e.type==="prev");Os(y,{get isMobile(){return o()},get isPrev(){return s(C)}}),$(f,u)},$$slots:{default:!0}}),H()}var q2=Se('<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 Bd(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=q2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),$(t,o)}var E1=require("@vkontakte/videoplayer-shared/es2018");var K2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Q2=L("<!> <div><!></div>",1),G2={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 _l(t,e){O(e,!0),W(t,G2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),a=m(e,"className",3,""),r=m(e,"click",3,E1.noop),d=F("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Bt(t,{get className(){return s(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return r()},get ariaKeyShortCut(){return jr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var b=Q2(),u=he(b);{var _=T=>{var I=K2();$(T,I)};V(u,T=>{o()&&T(_)})}var w=A(u,2);let y;var C=h(w);Bd(C,{}),g(w),k(T=>y=J(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(p,b)},$$slots:{default:!0}}),H()}var Y2=Se('<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 Vr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var r=Y2(),d=h(r);g(r),k(()=>{Ne(r,"width",i()),Ne(r,"height",o()),Ne(r,"viewBox",n()),Ne(d,"fill",a())}),$(t,r)}var j2=Se('<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 hs(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var r=j2(),d=h(r);g(r),k(()=>{Ne(r,"width",i()),Ne(r,"height",o()),Ne(r,"viewBox",n()),Ne(d,"fill",a())}),$(t,r)}var k1=require("@vkontakte/videoplayer-shared/es2018");var Z2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),X2=L("<!> <div><!></div>",1),J2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function bl(t,e){O(e,!0),W(t,J2);let[i,o]=De(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=co(),r=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),l=m(e,"isPlaying",3,!1),p=m(e,"disabled",3,!1),f=m(e,"className",3,""),b=m(e,"click",3,k1.noop),_=Ie().ui.t,{toggle:w}=a,y=v(()=>w),C=v(()=>n()!==null),T=v(()=>s(C)?n():l()),I=v(()=>s(T)?_("tooltip_pause"):_("tooltip_play")),M=v(()=>s(T)?hs:Vr),P=v(()=>`${d()?"btn-m--play":""} ${f()}`),E=v(()=>s(C)?s(y):b());Bt(t,{get className(){return s(P)},testId:"btn-play",get click(){return s(E)},get disabled(){return p()},get ariaLabel(){return s(I)},get ariaKeyShortCut(){return jr.KeyK},get ref(){return r()},set ref(R){r(R)},children:(R,z)=>{var q=X2();let U=v(()=>s(M));var Y=he(q);{var se=Me=>{var Be=Z2();$(Me,Be)};V(Y,Me=>{d()&&Me(se)})}var Q=A(Y,2);let de;var le=h(Q);yi(le,()=>s(U),(Me,Be)=>{Be(Me,{})}),g(Q),k(Me=>de=J(Q,1,"svelte-1ot3duq",null,de,Me),[()=>({mobile:d()})]),$(R,q)},$$slots:{default:!0}}),H(),o()}var ey=Se('<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 em(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=ey();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),$(t,o)}function Nd(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),r=v(()=>o()?"hidden":"");Bt(t,{get className(){return s(r)},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)=>{em(d,{})},$$slots:{default:!0}}),H()}var ty=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),iy={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 Dd(t,e){O(e,!0),W(t,iy);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),a=m(e,"ref",15,void 0),r=Ie(),d=r.ui.autoplayNextEnabled$,l=r.actions.internal.setAutoplayNextEnabled;Bt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,b)=>{var u=ty(),_=h(u);let w;var y=h(_);{var C=I=>{Vr(I,{width:"14",height:"14",fill:"#000"})},T=I=>{hs(I,{width:"14",height:"14",fill:"#000"})};V(y,I=>{n()?I(C):I(T,!1)})}g(_),g(u),k(I=>w=J(_,1,"toggler svelte-et3q1q",null,w,I),[()=>({enabled:n()})]),$(f,u)},$$slots:{default:!0}}),H(),o()}var oy=Se('<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 tm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=oy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i})),$(t,o)}function Od(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),r=v(()=>o()?"hidden":"");Bt(t,{get className(){return s(r)},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)=>{tm(d,{})},$$slots:{default:!0}}),H()}var ny=Se('<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 im(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=ny();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}var ry={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function om(t,e){W(t,ry);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");im(t,{get"data-testid"(){return s(o)}})}function Hd(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=m(e,"graphIsOpened",3,!1),d=Ie().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=v(()=>o()?"hidden":"");Bt(t,{get className(){return s(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,b)=>{let u=v(()=>!!a());om(f,{get isOpened(){return s(u)}})},$$slots:{default:!0}}),H()}var nm=require("@vkontakte/videoplayer-core/es2018");function Fd(t,e){O(e,!0);let[i,o]=De(),n=()=>S(p,"$playbackState$",i),a=m(e,"isMobile",3,!1),r=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),l=Ie(),p=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,b=l.actions.internal.togglePlay,u=v(()=>()=>{if(!r()){f();return}n()===nm.PlaybackState.PAUSED&&b()}),_=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>r()?"btn-live":"btn-live-offset"),y=v(()=>r()&&n()===nm.PlaybackState.PLAYING);Bt(t,{get className(){return s(_)},get testId(){return s(w)},get disabled(){return s(y)},get ariaLabel(){return d()},get click(){return s(u)},children:(C,T)=>{md(C,{get isActive(){return r()}})},$$slots:{default:!0}}),H(),o()}var rm=require("@vkontakte/videoplayer-shared/es2018");var sy=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),ay=L('<img class="icon" aria-hidden="true">');function Sa(t,e){"use strict";let i=X(!1),o=()=>{D(i,!0)};var n=He(),a=he(n);{var r=l=>{var p=sy();$(l,p)},d=l=>{var p=ay();k(()=>Ne(p,"src",e.icon)),Et("error",p,o),ea(p),$(l,p)};V(a,l=>{s(i)?l(r):l(d,!1)})}$(t,n)}function sm(t,e){O(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,rm.noop),n=m(e,"ref",15),a=v(()=>o()===rm.noop),r=v(()=>s(a)||i()),d=v(()=>s(a)?"btn-full-opacity":"");Ro(t,{get disabled(){return s(r)},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=v(()=>{var b;return(b=e.testId)!=null?b:e.id});Bt(l,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return s(f)},children:(b,u)=>{Sa(b,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var P1=t=>!!t.buttonComponent;var _s={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var bu=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))a.set(Lr(t,i,n,o))};var cy=L('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),uy={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function lm(t,e){var dr,Us;O(e,!0),W(t,uy);let[i,o]=De(),n=()=>S(G,"$disabledControls$",i),a=()=>S(fo,"$adPlaybackState",i),r=()=>S(gt,"$playbackState$",i),d=()=>S(Co,"$currentSubtitle$",i),l=()=>S(wi,"$isEnded$",i),p=()=>S(Li,"$currentGridType$",i),f=()=>S(qt,"$isLive$",i),b=()=>S(di,"$chromecastState$",i),u=()=>S(Gi,"$isPictureInPictureActive",i),_=()=>S(Oi,"$pictureInPictureType$",i),w=()=>S(Si,"$availableSubtitlesList$",i),y=()=>S(Mi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(ui,"$showContextMenuBtn$",i),T=()=>S(Xn,"$playerSize",i),I=()=>S(Jt,"$isRewindableLive$",i),M=()=>S(Ze,"$isActiveLive$",i),P=()=>S(mo,"$graphIsOpened$",i),E=()=>S(Qt,"$contextMenuVisible$",i),R=()=>S(ei,"$isFullscreen",i),z=()=>S(bi,"$autoplayNextEnabled",i),q=()=>S(s(Ao),"$prevButton",i),U=()=>S(s(sr),"$replayButton",i),Y=()=>S(s(br),"$playButton",i),se=()=>S(s(Ti),"$nextButton",i),Q=()=>S(s(ts),"$playPrevChapterButton",i),de=()=>S(s(Or),"$seekToInteractiveButton",i),le=()=>S(s($r),"$interactiveGraphButton",i),Me=()=>S(s(bt),"$liveButton",i),Be=()=>S(s(Zt),"$time",i),ge=()=>S(s(zo),"$episodes",i),ce=()=>S(s(go),"$vkLogo",i),Ae=()=>S(s(Xi),"$volume",i),ae=()=>S(s(tn),"$subtitles",i),N=()=>S(s(Un),"$settings",i),Ye=()=>S(s(ho),"$context",i),ee=()=>S(s(bn),"$fullscreen",i),We=()=>S(s(on),"$chromecast",i),ne=()=>S(No,"$additionalDesktopControlPanelRightButtons$",i),me=()=>S(Ci,"$isInteractiveTime$",i),$e=()=>S(po,"$settingsMenuVisible",i),Z=()=>S(ji,"$settingButtonRef$",i),ze=()=>S(si,"$startedByKeyboard$",i),et=()=>S(Kt,"$isAudioAvailable$",i),Ce=()=>S(Pt,"$fakeIsPlaying$",i),ie=()=>S(Zo,"$seekToInteractiveDisabledTooltip$",i),Ee=()=>S(Vt,"$adPosition",i),qe=()=>S(wt,"$position$",i),rt=()=>S(tt,"$adDuration",i),ct=()=>S(Xe,"$duration$",i),st=m(e,"playerControlsWrapperRef",15,void 0),Tt=m(e,"playerControlsRef",15,void 0),pt=m(e,"isAds",3,!1),Yt=m(e,"logoTargetUrl",3,""),ni=m(e,"isOneVideoPlaylist",3,!1),Ft=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Pt}=co(),te=Ie(),Lt=co(),j=Ut(),pe=te.actions.internal.toggleMuted,Pe=te.actions.internal.togglePlay,Re=te.actions.internal.pause,fe=te.actions.internal.toggleSubtitle,Ke=(dr=te.callbacks)==null?void 0:dr.onAudioDoesNotExistHint,ot=(Us=te.callbacks)==null?void 0:Us.onAudioDisabledHint,Xe=te.state.duration$,wt=te.state.positionWithScrubbing$,gt=te.state.playbackState$,Kt=te.state.isAudioAvailable$,_t=te.state.isAudioDisabled,wi=te.state.isEnded$,qt=te.state.isLive$,Ze=te.state.isActiveLive$,Jt=te.state.isRewindableLive$,{isActive$:Gi,type$:Oi}=Lt.pictureInPicture$,po=te.ui.settingsMenu.visible$,Yi=te.ui.settingsMenu.openedByBtnKeyboard$,nt=te.ui.controls,yt=te.actions.internal.getVideoEpisodes(),di=te.state.chromecastState$,Si=te.state.availableSubtitlesList$,Co=te.state.currentSubtitle$,G=nt.disabledControls$,Qt=te.ui.contextMenu.visible$,ui=te.ui.contextMenu.showContextMenuBtn$,Mi=te.ui.contextMenu.openedByBtnKeyboard$,si=te.ui.startedByKeyboard$,ci=te.ui.controlBlocks,ft=te.ui.t,tt=te.ads.duration,Vt=te.ads.position,fo=te.ads.playbackState,ei=te.ui.isFullscreen,Xn=te.ui.playerSize,Li=te.ui.currentGridType$,No=te.ui.additionalDesktopControlPanelRightButtons$,bi=te.ui.autoplayNextEnabled$,ht=te.actions.internal.getVideoElement,Vi=te.actions.internal.replayInteractive,Do=te.actions.internal.prevVideoClick,kn=te.actions.internal.nextVideoClick,ai=te.state.isInteractive,Ci=te.state.isInteractiveTime$,Oo=te.state.showInteractiveGraph,Pn=te.state.showSeekToInteractive,Ho=te.state.showPlayPrevChapter,To=te.state.showInteractiveTimeIndicator,hn=te.state.playPrevChapterDisabledTooltip,Zo=Lt.seekToInteractiveDisabledTooltip$,mo=Lt.graphIsOpened$,Io=j.features.interactiveResponsiveUi,Br=v(()=>n().has("EPISODE_BUTTON")),vr=v(()=>n().has("GRAPH_BUTTON")),Jn=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),er=v(()=>n().has("PLAY_BUTTON")),tr=v(()=>n().has("REPLAY_BUTTON")),An=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),es=()=>te.actions.internal.toggleChromecast(),Mn=v(()=>pt()?a()==="playing":r()===Ca.PlaybackState.PLAYING),Ri=v(()=>d().value!=="off"),Ln=v(()=>l()&&!pt()||ai),Xo=v(()=>Io?s(Ln)&&qi(p(),"m"):s(Ln)),Jo=v(()=>!l()||ai||pt()),Vn=v(()=>qi(p(),"m")),Rn=v(()=>e.showNextPrevButtons&&qi(p(),"m")&&!pt()&&e.nextButtonActive),Fo=v(()=>e.showNextPrevButtons&&qi(p(),"m")&&!pt()&&e.prevButtonActive),Nr=v(()=>!pt()&&!!f()),Bn=v(()=>b()!==Ca.ChromecastState.NOT_AVAILABLE&&!(u()&&_()===1)&&qi(p(),"m")&&!ai),ir=v(()=>e.showAutoplayNext&&!ni()&&qi(p(),"s")),Hi=v(()=>w().length>0&&qi(p(),"m")),Eo=v(()=>y()||C()),lt=v(()=>qi(p(),"s")&&!pt()),jt=v(()=>!e.logoHidden&&!pt()),gr=v(()=>j.features.fullscreen&&(e.logoHidden||qi(p(),Io?"xs":"s"))&&!(u()&&_()===1)&&(ai?Ft():!0)),Nn=v(()=>(!f()||pt())&&!(j.features.interactiveHideTime&&ai)),_n=v(()=>T().width>100),Bi=v(()=>Oo&&qi(p(),"m")),Dn=v(()=>Io?Pn&&qi(p(),"s"):Pn),ko=v(()=>Io?Ho&&qi(p(),"s"):Ho),On=v(()=>!pt()&&!f()&&!!(yt!=null&&yt.length)&&s(Vn)&&!s(Br)),Po=v(()=>!I()||!!M()),Hn=v(()=>P()?ft("tooltip_interactive_graph_on"):ft("tooltip_interactive_graph_off")),Fn=v(()=>E()?ft("tooltip_context_menu_close"):ft("tooltip_context_menu_open")),or=(xt,$t)=>xt?$t&&$t===Ca.PlaybackState.PAUSED?ft("tooltip_play"):"":ft("tooltip_live"),hr=v(()=>or(s(Po),r())),nr=v(()=>j.logoType==="vk_video"?ft("tooltip_vk_video_logo"):ft("tooltip_vk_logo")),Uo=v(()=>s(Ri)?ft("tooltip_subtitles_on"):ft("tooltip_subtitles_off")),Dr=v(()=>R()?ft("tooltip_fullscreen_on"):ft("tooltip_fullscreen_off")),rr=v(()=>b()===Ca.ChromecastState.CONNECTED?ft("tooltip_chromecast_on"):ft("tooltip_chromecast_off")),_r=v(()=>z()?ft("tooltip_autoplay_on"):ft("tooltip_autoplay_off")),en=X(0),Gt=ve({}),vo=ve({}),Ao=v(()=>nt.prevButton),sr=v(()=>nt.replayButton),br=v(()=>nt.playButton),Ti=v(()=>nt.nextButton),ts=v(()=>nt.playPrevChapterButton),Or=v(()=>nt.seekToInteractiveButton),$r=v(()=>nt.interactiveGraphButton),bt=v(()=>nt.liveButton),Zt=v(()=>nt.time),zo=v(()=>nt.episodes),go=v(()=>nt.vkLogo),Xi=v(()=>nt.volume),tn=v(()=>nt.subtitles),Un=v(()=>nt.settings),ho=v(()=>nt.context),bn=v(()=>nt.fullscreen),on=v(()=>nt.chromecast),Je=v(()=>({prevButton:q()?q().right-q().left:0,replayButton:U()?U().right-U().left:0,playButton:Y()?Y().right-Y().left:0,nextButton:se()?se().right-se().left:0,playPrevChapterButton:Q()?Q().right-Q().left:0,seekToInteractiveButton:de()?de().right-de().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Me()?Me().right-Me().left:0,time:Be()?Be().right-Be().left:0,episodes:ge()?ge().right-ge().left:0,vkLogo:ce()?ce().right-ce().left:0,volume:Ae()?Ae().right-Ae().left:0,subtitles:ae()?ae().right-ae().left:0,settings:N()?N().right-N().left:0,context:Ye()?Ye().right-Ye().left:0,fullscreen:ee()?ee().right-ee().left:0,chromecast:We()?We().right-We().left:0,additionalButtons:ne().length?ne().reduce(xt=>[...xt,40],[]):[]})),Rt=X(0);Ue(()=>{(!s(Rt)||s(Rt)<s(Je).time)&&Ct(()=>D(Rt,ve(s(Je).time)))});let gi=X(!1);Ue(()=>{let xt=0;s(On)&&(qi(p(),"xl")?xt=s(Je).time:xt=60);let $t=s(Je).prevButton+s(Je).playButton+s(Je).nextButton+s(Je).seekToInteractiveButton+s(Je).interactiveGraphButton+s(Je).liveButton+s(Rt)+xt;D(gi,ve(s(Nn)&&s(en)>=$t))});let _o=v(()=>s(gi)&&qi(p(),"m")),Ji=(0,am.debounceFn)(hl,260),Wo=(0,am.debounceFn)(bu,260);Ue(()=>{T(),me(),Ji(ht(),nt,Gt,e.showControls),Wo(ht(),ci,vo,e.showControls)}),Ue(()=>{vo.bottom=st()});let ji=re();Ue(()=>{$e(),Z()&&Ct(()=>dl(Z(),$e(),Yi))});let qo;Ue(()=>{ze(),Ct(()=>hu(si,ze(),qo))});function Mo(){Rs({isAudioDisabled:_t,isAudioAvailable:et(),isAds:pt(),audioIsNotExistHintCallback:Ke,audioDisabledHintCallback:ot})&&pe()}let Fi=ai?Vi:Pe,hi=v(()=>Ce()!==null),Ko=v(()=>s(hi)?Ce():s(Mn)),nn=v(()=>s(Ko)?ft("tooltip_pause"):ft("tooltip_play")),Ui=ft("tooltip_episodes"),yr=v(()=>{var xt,$t,io,Go;return s(Fo)?{id:"prevButton",type:"desktop-control-panel-left",weight:gs.prevButton,buttonComponent:wa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Do.bind(null,!0)},tooltipEnabled:!(($t=(xt=te.callbacks)==null?void 0:xt.uiInfo)!=null&&$t.onPrevButtonMouseEnter)&&!((Go=(io=te.callbacks)==null?void 0:io.uiInfo)!=null&&Go.onPrevButtonMouseLeave),mouseEnter:()=>{var oo,ri,Ni;(Ni=(ri=(oo=te.callbacks)==null?void 0:oo.uiInfo)==null?void 0:ri.onPrevButtonMouseEnter)==null||Ni.call(ri,Lr(ht(),Gt,"prevButton",e.showControls))},mouseLeave:()=>{var oo,ri,Ni;(Ni=(ri=(oo=te.callbacks)==null?void 0:oo.uiInfo)==null?void 0:ri.onPrevButtonMouseLeave)==null||Ni.call(ri,Lr(ht(),Gt,"prevButton",e.showControls))},tooltipText:ft("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Hr=v(()=>s(Xo)?{id:"replayButton",type:"desktop-control-panel-left",weight:gs.replayButton,buttonComponent:_l,buttonComponentProps:{disabled:s(tr),click:Fi},tooltipText:ft("tooltip_restart"),disabled:s(tr)}:void 0),Fr=v(()=>s(Jo)?{id:"playButton",type:"desktop-control-panel-left",weight:gs.playButton,buttonComponent:bl,buttonComponentProps:{disabled:s(er),isPlaying:s(Mn),click:Pe},tooltipText:s(nn),disabled:s(er)}:void 0),$n=v(()=>{var xt,$t,io,Go;return s(Rn)?{id:"nextButton",type:"desktop-control-panel-left",weight:gs.nextButton,buttonComponent:wa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:kn.bind(null,!0)},tooltipEnabled:!(($t=(xt=te.callbacks)==null?void 0:xt.uiInfo)!=null&&$t.onNextButtonMouseEnter)&&!((Go=(io=te.callbacks)==null?void 0:io.uiInfo)!=null&&Go.onNextButtonMouseLeave),mouseEnter:()=>{var oo,ri,Ni;(Ni=(ri=(oo=te.callbacks)==null?void 0:oo.uiInfo)==null?void 0:ri.onNextButtonMouseEnter)==null||Ni.call(ri,Lr(ht(),Gt,"nextButton",e.showControls))},mouseLeave:()=>{var oo,ri,Ni;(Ni=(ri=(oo=te.callbacks)==null?void 0:oo.uiInfo)==null?void 0:ri.onNextButtonMouseLeave)==null||Ni.call(ri,Lr(ht(),Gt,"nextButton",e.showControls))},tooltipText:ft("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),zn=v(()=>ai&&s(ko)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:gs.playPrevChapterButton,buttonComponent:Nd,buttonComponentProps:{disabled:s(An),click:e.playPrevChapter},tooltipText:ft("tooltip_interactive_go_back"),disabledTooltipContent:ft(hn),disabled:s(An)}:void 0),Ur=v(()=>ai&&s(Dn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:gs.seekToInteractiveButton,buttonComponent:Od,buttonComponentProps:{disabled:s(Jn),click:e.seekToInteractive},tooltipText:ft("tooltip_interactive_seek"),disabled:s(Jn),disabledTooltipContent:ft(ie())}:void 0),eo=v(()=>ai&&s(Bi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:gs.interactiveGraphButton,buttonComponent:Hd,buttonComponentProps:{disabled:s(vr),click:mo.toggle,graphIsOpened:P()},tooltipText:s(Hn)}:void 0),Qo=v(()=>s(Nr)?{id:"liveButton",type:"desktop-control-panel-left",weight:gs.liveButton,buttonComponent:Fd,buttonComponentProps:{isLiveActive:s(Po),ariaLabel:s(hr)},tooltipText:s(hr),disabled:s(Po)&&r()===Ca.PlaybackState.PLAYING}:void 0),Wn=v(()=>[s(yr),s(Hr),s(Fr),s($n),s(zn),s(Ur),s(eo),s(Qo)].filter(xt=>!!xt).sort(ma)),ar=v(()=>s(jt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:_s.vkLogo,buttonComponent:kd,buttonComponentProps:{targetUrl:Yt(),logoClickable:e.logoClickable,click:Re},tooltipText:s(nr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),lr=v(()=>s(ir)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:_s.autoplayNext,buttonComponent:Dd,tooltipText:s(_r)}:void 0),zr=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:_s.volume,buttonComponent:Vf,buttonComponentProps:{click:Mo,isAds:pt()}})),is=v(()=>s(Hi)?{id:"subtitles",type:"desktop-control-panel-right",weight:_s.subtitles,buttonComponent:Pf,buttonComponentProps:{isSubtitlesEnabled:s(Ri),click:fe},tooltipText:s(Uo)}:void 0),Te=v(()=>s(lt)?{id:"settings",type:"desktop-control-panel-right",weight:_s.settings,buttonComponent:vl,buttonComponentProps:{ref$:ji},tooltipText:$e()?void 0:ft("tooltip_settings_off")}:void 0),ye=v(()=>j.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:_s.context,buttonComponent:Xf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:ft("aria_label_context_menu")},className:s(Eo)?"":"out-of-view",tooltipText:s(Fn)}:void 0),St=v(()=>s(gr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:_s.fullscreen,buttonComponent:Ed,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:s(Dr)}:void 0),zt=v(()=>s(Bn)?{id:"chromecast",type:"desktop-control-panel-right",weight:_s.chromecast,buttonComponent:Pd,buttonComponentProps:{state:b(),click:es},tooltipText:s(rr)}:void 0),Ii=v(()=>[s(ar),s(lr),s(zr),s(is),s(Te),s(ye),s(St),s(zt),...ne()].filter(xt=>!!xt).sort(ma));var _i=cy(),Fe=he(_i);let It;var ti=h(Fe);let rn=v(()=>!s(_n));ya(ti,{get isHidden(){return s(rn)},get isAds(){return pt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Gt.timeline},set ref(xt){Gt.timeline=xt}});var yn=A(ti,2),to=h(yn),Wr=h(to);$i(Wr,17,()=>s(Wn),xt=>xt.id,(xt,$t)=>{_u(xt,{get buttonComponent(){return s($t).buttonComponent},get buttonComponentProps(){return s($t).buttonComponentProps},get tooltipText(){return s($t).tooltipText},get disabledTooltipContent(){return s($t).disabledTooltipContent},get disabled(){return s($t).disabled},get className(){return s($t).className},get tooltipEnabled(){return s($t).tooltipEnabled},get mouseEnter(){return s($t).mouseEnter},get mouseLeave(){return s($t).mouseLeave},get ref(){return Gt[s($t).id]},set ref(io){Gt[s($t).id]=io}})});var xr=A(Wr,2);{var Zi=xt=>{let $t=v(()=>pt()?Ee():qe()),io=v(()=>pt()?rt():ct());Cd(xt,{isMobile:!1,get showDuration(){return s(_o)},get position(){return s($t)},get duration(){return s(io)},get ref(){return Gt.time},set ref(Go){Gt.time=Go}})};V(xr,xt=>{s(Nn)&&xt(Zi)})}var Ei=A(xr,2);let xn=v(()=>!s(On));Ro(Ei,{className:"w-max",get disabled(){return s(xn)},tooltipContent:Ui,get ref(){return Gt.episodes},set ref(xt){Gt.episodes=xt},children:(xt,$t)=>{var io=He(),Go=he(io);{var oo=ri=>{Md(ri,{get position(){return qe()},get duration(){return ct()},timeCodes:yt})};V(Go,ri=>{s(On)&&ri(oo)})}$(xt,io)},$$slots:{default:!0}}),g(to);var qn=A(to,2);$i(qn,21,()=>s(Ii),xt=>xt.id,(xt,$t)=>{var io=He(),Go=he(io);{var oo=Ni=>{_u(Ni,{get buttonComponent(){return s($t).buttonComponent},get buttonComponentProps(){return s($t).buttonComponentProps},get tooltipText(){return s($t).tooltipText},get disabledTooltipContent(){return s($t).disabledTooltipContent},get disabled(){return s($t).disabled},get className(){return s($t).className},get ref(){return Gt[s($t).id]},set ref($s){Gt[s($t).id]=$s}})},ri=Ni=>{let $s=v(()=>!!s($t).disabled);sm(Ni,{get id(){return s($t).id},get testId(){return s($t).testId},get icon(){return s($t).icon},get ariaLabel(){return s($t).ariaLabel},get tooltipText(){return s($t).tooltipText},get disabledTooltipContent(){return s($t).disabledTooltipContent},get disabled(){return s($s)},get onClick(){return s($t).onClick},get ref(){return Gt[s($t).id]},set ref(kl){Gt[s($t).id]=kl}})};V(Go,Ni=>{P1(s($t))?Ni(oo):Ni(ri,!1)})}$(xt,io)}),g(qn),g(yn),it(yn,xt=>Tt(xt),()=>Tt()),g(Fe),it(Fe,xt=>st(xt),()=>st());var wr=A(Fe,2);{var bo=xt=>{Rd(xt,{get ref(){return Gt.interactiveTimeIndicator},set ref($t){Gt.interactiveTimeIndicator=$t}})};V(wr,xt=>{To&&xt(bo)})}k(xt=>It=J(Fe,1,"wrapper-bottom svelte-f6e8ix",null,It,xt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Yr(to,"clientWidth",xt=>D(en,xt)),$(t,_i),H(),o()}var $l=require("@vkontakte/videoplayer-core/es2018");var dm=require("@vkontakte/videoplayer-shared/es2018");var py=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),fy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),my={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function cm(t,e){W(t,my);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,dm.noop),n=v(()=>o()===dm.noop),a=v(()=>s(n)||i()),r=X(!1),d=()=>{D(r,!0)},l=v(()=>s(n)?"btn-full-opacity":"");Bt(t,{get className(){return s(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(a)},get testId(){return e.testId},children:(p,f)=>{var b=He(),u=he(b);{var _=y=>{var C=py();$(y,C)},w=y=>{var C=fy();k(()=>Ne(C,"src",e.iconUrl)),Et("error",C,d),ea(C),$(y,C)};V(u,y=>{s(r)?y(_):y(w,!1)})}$(p,b)},$$slots:{default:!0}})}var vy=Se('<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 um(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=vy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),$(t,o)}var A1=require("@vkontakte/videoplayer-shared/es2018");var gy=L('<span class="text svelte-6gmlbk"> </span>'),hy=L('<div aria-hidden="true"><!> <!></div>'),_y={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 $u(t,e){O(e,!0),W(t,_y);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,A1.noop),a=m(e,"ref",15,void 0),d=Ie().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=v(()=>o()?Ns:um),f=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Bt(t,{get testId(){return s(f)},get click(){return n()},get ariaLabel(){return s(l)},role:"button",get ref(){return a()},set ref(b){a(b)},children:(b,u)=>{var _=hy();let w=v(()=>s(p)),y;var C=h(_);yi(C,()=>s(w),(M,P)=>{P(M,{})});var T=A(C,2);{var I=M=>{var P=gy(),E=h(P,!0);g(P),k(R=>_e(E,R),[()=>d("mobile_unmute")]),$(M,P)};V(T,M=>{o()&&M(I)})}g(_),k(M=>y=J(_,1,"container svelte-6gmlbk",null,y,M),[()=>({expanded:o()})]),$(b,_)},$$slots:{default:!0}}),H()}var by=Se('<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 pm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=by();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(3),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),$(t,o)}var $y={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
256
|
+
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function fm(t,e){W(t,$y);let i=m(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");pm(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}var M1=require("@vkontakte/videoplayer-shared/es2018");function mm(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,M1.noop),a=F("menu_pip");Bt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(r){i(r)},children:(r,d)=>{fm(r,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var vm=require("@vkontakte/videoplayer-shared/es2018");var yy=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},xy=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},wy=L("<div><!></div>"),Sy=L("<div><!></div>"),Cy=L("<div><!></div>"),Ty=L("<!> <!> <!>",1),Iy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Ey=L("<div><!></div>"),ky=L('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),Py=L("<!> <!> <div><!></div>",1),Ay=L('<div aria-hidden="true">\xB7</div> <!>',1),My=L('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!></div></div> <!></div></div> <!>',1),Ly={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-9xcbwc {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
|
|
257
|
+
.wrapper-middle-left-second.svelte-9xcbwc,
|
|
258
|
+
.wrapper-middle-right.svelte-9xcbwc {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-9xcbwc {left:12px;}.wrapper-middle-left-second.svelte-9xcbwc {left:64px;}.wrapper-middle-right.svelte-9xcbwc {right:12px;}.controls.svelte-9xcbwc {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-9xcbwc {display:flex;}.controls-group.contain.svelte-9xcbwc {min-width:0;}.controls-group.svelte-9xcbwc > *:not(:first-child) {margin-left:8px;}.hidden.svelte-9xcbwc {visibility:hidden;opacity:0;}.controls-hidden.svelte-9xcbwc {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-9xcbwc {transition:none;}.overlay-mobile.svelte-9xcbwc {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
|
|
259
259
|
|
|
260
|
-
|
|
260
|
+
|
|
261
|
+
@media screen and (orientation: portrait) {.wrapper-top-right.fullscreen.svelte-9xcbwc {top:16px;}.wrapper-top-left.fullscreen.svelte-9xcbwc {top:16px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;bottom:30px;width:calc(100% - 8px);}
|
|
261
262
|
}
|
|
262
263
|
|
|
263
|
-
@media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-
|
|
264
|
-
}`};function am(t,e){var Qn,Gn;F(e,!0),q(t,Iy);let[i,o]=De(),n=()=>S(fi,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(tt,"$disabledControls$",i),s=()=>S(_t,"$playbackState$",i),d=()=>S(yt,"$adPlaybackState",i),l=()=>S(Lt,"$isEnded$",i),p=()=>S(ao,"$playerSize",i),f=()=>S(oe,"$scrubbingInProgress",i),y=()=>S(ri,"$chromecastState$",i),u=()=>S(Qe,"$isPictureInPictureActive",i),_=()=>S(je,"$pictureInPictureType$",i),w=()=>S(Be,"$mobileNotReportControlHidden$",i),b=()=>S(ct,"$playerPhase",i),C=()=>S(Pi,"$currentGridType$",i),T=()=>S(Nt,"$isLive$",i),I=()=>S(Je,"$settingsMenuVisible",i),M=()=>S(be,"$isRewindableLive$",i),P=()=>S(O,"$isActiveLive$",i),k=()=>S(Xt,"$isInteractiveTime$",i),V=()=>S(Yt,"$isAudioAvailable$",i),W=()=>S(Wo,"$settingButtonRef$",i),j=()=>S(jt,"$startedByKeyboard$",i),H=()=>S(Ot,"$isFullscreen",i),Q=()=>S(it,"$mobileUnmuteButtonVisible",i),ie=()=>S(mt,"$volumeHidden",i),Z=()=>S(Le,"$mobileUnmuteButtonExpanded",i),se=()=>S(cn,"$additionalButtons$",i),ce=()=>S($i,"$crashed$",i),Ee=()=>S(et,"$graphIsOpened$",i),Me=()=>S(Vt,"$adPosition",i),ge=()=>S(Qi,"$adDuration",i),ae=()=>S(Et,"$position$",i),Pe=()=>S(ot,"$duration$",i),ne=m(e,"playerControlsWrapperRef",15,void 0),N=m(e,"playerControlsRef",15,void 0),ue=m(e,"isAds",3,!1),_e=m(e,"logoTargetUrl",3,""),ze=m(e,"isOneVideoPlaylist",3,!1),re=m(e,"customFullscreenSupported",3,!0),K=Ce(),he=ro(),ee=Kt(),He=K.actions.internal.toggleMuted,Ze=K.actions.internal.togglePlay,we=K.actions.internal.pause,Ve=K.actions.internal.prevVideoClick,Ie=K.actions.internal.nextVideoClick,Ue=(Qn=K.callbacks)==null?void 0:Qn.onAudioDoesNotExistHint,dt=(Gn=K.callbacks)==null?void 0:Gn.onAudioDisabledHint,ct=K.playerPhase,ot=K.state.duration$,Et=K.state.positionWithScrubbing$,_t=K.state.playbackState$,Yt=K.state.isAudioAvailable$,Zt=K.state.isAudioDisabled,Lt=K.state.isEnded$,Nt=K.state.isLive$,O=K.state.isActiveLive$,be=K.state.isRewindableLive$,oe=K.ui.scrubbingInProgress,Be=K.ui.mobileNotReportControlHidden$,{isActive$:Qe,type$:je}=he.pictureInPicture$,Le=K.ui.mobileUnmuteButtonExpanded,it=K.ui.mobileUnmuteButtonVisible,Je=K.ui.settingsMenu.visible$,$t=K.ui.settingsMenu.openedByBtnKeyboard$,pt=K.ui.controls,{volume:mt}=K.ui.hiddenControls,Dt=K.actions.internal.getVideoEpisodes(),Ge=K.webApi.pictureInPictureApi,ri=K.state.chromecastState$,$i=K.state.crashed$,tt=pt.disabledControls$,jt=K.ui.startedByKeyboard$,Pi=K.ui.currentGridType$,Qi=K.ads.duration,Vt=K.ads.position,yt=K.ads.playbackState,Ot=K.ui.isFullscreen,ao=K.ui.playerSize,cn=K.ui.additionalButtonsDeprecated$,$n=K.actions.internal.getVideoElement,xo=K.actions.internal.replayInteractive,G=K.state.isInteractive,Xt=K.state.isInteractiveTime$,bi=K.state.showInteractiveGraph,Ai=K.state.showSeekToInteractive,ai=K.state.showPlayPrevChapter,vt=K.state.showInteractiveTimeIndicator,fi=he.seekToInteractiveDisabledTooltip$,et=he.graphIsOpened$,Rt=v(()=>z(K.state.playPrevChapterDisabledTooltip)),lo=v(()=>z(n())),ti=v(()=>a().has("EPISODE_BUTTON")),sr=v(()=>a().has("GRAPH_BUTTON")),co=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Mo=v(()=>a().has("PLAY_BUTTON")),li=v(()=>a().has("REPLAY_BUTTON")),Tt=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Mi=v(()=>s()===gl.PlaybackState.PLAYING),Lo=v(()=>d()==="paused"),pi=v(()=>l()&&!ue()&&!G),Uo=v(()=>!l()||ue()),Bi=v(()=>e.showNextPrevButtons&&!ue()&&e.prevButtonActive),wo=v(()=>e.showNextPrevButtons&&!ue()&&e.nextButtonActive),So=v(()=>p().width>300),Fn=v(()=>p().width>400),Ni=v(f),yn=v(()=>y()!==gl.ChromecastState.NOT_AVAILABLE&&!(u()&&_()===1)&&!w()&&!G),Co=v(()=>b()==="LiveWaitingStart"),Vo=v(()=>!!Ge&&y()!==gl.ChromecastState.CONNECTED&&!w()&&(_()===1&&r(Co)||!r(Co))&&!r(Ni)&&!G),xn=v(()=>!r(Ni)&&Wi(C(),"s")),Tr=v(()=>!e.logoHidden&&p().width>350),ar=v(()=>ee.features.fullscreen&&!(u()&&_()===1)&&(G?re():!0)&&!r(Ni)),Un=v(()=>(!T()||ue())&&p().width>260&&!r(Ni)&&!(ee.features.interactiveHideTime&&G)),wn=v(()=>I()||e.showControls),Sn=v(()=>!ue()&&!T()&&!!(Dt!=null&&Dt.length)&&r(So)&&!r(ti)&&!r(Ni)),zn=v(()=>!M()||!!P()),uo=v(()=>bi&&Wi(C(),"m")),nt=fe({}),Cn=(0,C1.debounceFn)(fl,260);Fe(()=>{p(),k(),Cn($n(),pt,nt,e.showControls)});let zo=()=>K.actions.internal.toggleChromecast();async function Tn(){Ge!=null&&Ge.isActive()?await(Ge==null?void 0:Ge.remove()):await(Ge==null?void 0:Ge.request())}function In(){(!Zt&&V()||ue())&&it.set(!1),ys({isAudioDisabled:Zt,audioDisabledHintCallback:dt,isAudioAvailable:V(),audioIsNotExistHintCallback:Ue,isAds:ue()})&&He()}let Ro=X(""),lr=(rt,xt)=>{if(!rt){D(Ro,fe(z("tooltip_live")));return}xt&&xt===gl.PlaybackState.PAUSED&&D(Ro,fe(z("tooltip_play")))};Fe(()=>{lr(r(zn),s())});let Wo=le();Fe(()=>{W()&&rl(W(),I(),$t)}),Fe(()=>{uu(jt,j(),nt.playButton)});var kn=Ty(),qo=pe(kn);{var po=rt=>{var xt=yy(),Si=pe(xt);let To;var fo=A(Si,2);let Io;var ko=h(fo);{var ut=Xe=>{let Ht=v(()=>V()&&!Zt&&Z());fu(Xe,{get expanded(){return r(Ht)},click:In,get ref(){return nt.volume},set ref(Li){nt.volume=Li}})};R(ko,Xe=>{(!V()||Q())&&!ie()&&Xe(ut)})}g(fo);var Qt=A(fo,2);let oi;var mi=h(Qt);yi(mi,1,se,({iconUrl:Xe,ariaLabel:Ht,testId:Li,onClick:jo,tooltip:Oo})=>Xe,(Xe,Ht)=>{let Li=()=>r(Ht).iconUrl,jo=()=>r(Ht).ariaLabel,Oo=()=>r(Ht).testId,Vn=()=>r(Ht).onClick,fn=()=>r(Ht).tooltip,Se=v(()=>{var ft;return(ft=jo())!=null?ft:fn()});im(Xe,{get iconUrl(){return Li()},get ariaLabel(){return r(Se)},get testId(){return Oo()},get onClick(){return Vn()}})});var Zi=A(mi,2);{var mo=Xe=>{Pd(Xe,{get ref(){return nt.autoplayNextToggle},set ref(Ht){nt.autoplayNextToggle=Ht}})};R(Zi,Xe=>{e.showAutoplayNext&&!ze()&&Xe(mo)})}var Gi=A(Zi,2);{var Fi=Xe=>{xd(Xe,{isMobile:!0,click:zo,get state(){return y()},get ref(){return nt.chromecast},set ref(Ht){nt.chromecast=Ht}})};R(Gi,Xe=>{r(yn)&&Xe(Fi)})}var Ci=A(Gi,2);{var Qo=Xe=>{sm(Xe,{click:Tn,get isPictureInPictureActive(){return u()},get ref(){return nt.pip},set ref(Ht){nt.pip=Ht}})};R(Ci,Xe=>{r(Vo)&&Xe(Qo)})}var Ln=A(Ci,2);{var Er=Xe=>{ul(Xe,{ref$:Wo})};R(Ln,Xe=>{ce()&&Xe(Er)})}var Yn=A(Ln,2);{var Pr=Xe=>{yd(Xe,{click:we,get targetUrl(){return _e()},get logoClickable(){return e.logoClickable},get ref(){return nt.vkLogo},set ref(Ht){nt.vkLogo=Ht}})};R(Yn,Xe=>{r(Tr)&&Xe(Pr)})}g(Qt);var pn=A(Qt,2);let jn;var Zn=h(pn);{var Ur=Xe=>{let Ht=v(()=>Ve.bind(null,!0));ma(Xe,{get click(){return r(Ht)},type:"prev",isMobile:!0,get ref(){return nt.prevButton},set ref(Li){nt.prevButton=Li}})};R(Zn,Xe=>{r(Bi)&&Xe(Ur)})}var Xn=A(Zn,2);{var Go=Xe=>{vl(Xe,{get disabled(){return r(Mo)},click:Ze,isMobile:!0,get isPlaying(){return r(Mi)},get ref(){return nt.playButton},set ref(Ht){nt.playButton=Ht}})};R(Xn,Xe=>{r(Uo)&&Xe(Go)})}var fr=A(Xn,2);{var Yo=Xe=>{ml(Xe,{get disabled(){return r(li)},click:Ze,isMobile:!0,get ref(){return nt.replayButton},set ref(Ht){nt.replayButton=Ht}})};R(fr,Xe=>{r(pi)&&Xe(Yo)})}var mr=A(fr,2);{var zr=Xe=>{let Ht=v(()=>Ie.bind(null,!0));ma(Xe,{get click(){return r(Ht)},type:"next",isMobile:!0,get ref(){return nt.nextButton},set ref(Li){nt.nextButton=Li}})};R(mr,Xe=>{r(wo)&&Xe(zr)})}g(pn);var Ar=A(pn,2);{var Mr=Xe=>{var Ht=$y(),Li=pe(Ht);{var jo=ft=>{var Wt=hy();let si;Wt.__click=[vy,Tt,e,Rt];var Xi=h(Wt);let Re=v(()=>!e.showControls);Ed(Xi,{get hidden(){return r(Re)},get disabled(){return r(Tt)},get click(){return e.playPrevChapter},get ref(){return nt.playPrevChapterButton},set ref(gt){nt.playPrevChapterButton=gt}}),g(Wt),E(gt=>si=J(Wt,1,"wrapper-middle-left svelte-1afsgkw",null,si,gt),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(ft,Wt)};R(Li,ft=>{ai&&ft(jo)})}var Oo=A(Li,2);{var Vn=ft=>{var Wt=_y();let si;var Xi=h(Wt);let Re=v(()=>!e.showControls&&!Ee());Md(Xi,{get hidden(){return r(Re)},get disabled(){return r(sr)},get click(){return et.toggle},get graphIsOpened(){return Ee()},get ref(){return nt.interactiveGraphButton},set ref(gt){nt.interactiveGraphButton=gt}}),g(Wt),E(gt=>si=J(Wt,1,Gl(ai?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",si,gt),[()=>({fullscreen:H(),hidden:!e.showControls&&!Ee()})]),$(ft,Wt)};R(Oo,ft=>{r(uo)&&ft(Vn)})}var fn=A(Oo,2);{var Se=ft=>{var Wt=by();let si;Wt.__click=[gy,co,e,lo];var Xi=h(Wt);let Re=v(()=>!e.showControls);Ad(Xi,{get hidden(){return r(Re)},get disabled(){return r(co)},get click(){return e.seekToInteractive},get ref(){return nt.seekToInteractiveButton},set ref(gt){nt.seekToInteractiveButton=gt}}),g(Wt),E(gt=>si=J(Wt,1,"wrapper-middle-right svelte-1afsgkw",null,si,gt),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(ft,Wt)};R(fn,ft=>{Ai&&ft(Se)})}$(Xe,Ht)};R(Ar,Xe=>{G&&!f()&&Xe(Mr)})}E((Xe,Ht,Li,jo)=>{To=J(Si,1,"overlay-mobile svelte-1afsgkw",null,To,Xe),Io=J(fo,1,"wrapper-top-left svelte-1afsgkw",null,Io,Ht),oi=J(Qt,1,"wrapper-top-right svelte-1afsgkw",null,oi,Li),jn=J(pn,1,"wrapper-middle svelte-1afsgkw",null,jn,jo)},[()=>({hidden:!r(wn)}),()=>({hidden:!e.showControls,fullscreen:H()}),()=>({hidden:!e.showControls&&!w(),fullscreen:H()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(rt,xt)};R(qo,rt=>{ue()||rt(po)})}var Di=A(qo,2);{var En=rt=>{var xt=Sy(),Si=pe(xt);{var To=oi=>{var mi=xy();let Zi;var mo=h(mi);fu(mo,{expanded:!1,click:In,get ref(){return nt.volume},set ref(Gi){nt.volume=Gi}}),g(mi),E(Gi=>Zi=J(mi,1,"wrapper-top-right svelte-1afsgkw",null,Zi,Gi),[()=>({fullscreen:H()})]),$(oi,mi)};R(Si,oi=>{Q()&&oi(To)})}var fo=A(Si,2);{var Io=oi=>{var mi=wy(),Zi=h(mi);let mo=v(()=>!r(Lo));vl(Zi,{get disabled(){return r(Mo)},click:Ze,isMobile:!0,get isPlaying(){return r(mo)},get ref(){return nt.playButton},set ref(Gi){nt.playButton=Gi}}),g(mi),$(oi,mi)};R(fo,oi=>{r(Lo)&&oi(Io)})}var ko=A(fo,2);let ut;var Qt=h(ko);wd(Qt,{get position(){return Me()},get duration(){return ge()}}),g(ko),E(oi=>ut=J(ko,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,ut,oi),[()=>({fullscreen:H()})]),$(rt,xt)};R(Di,rt=>{ue()&&d()!=="inactive"&&rt(En)})}var Bo=A(Di,2);let Ko;var No=h(Bo);let Pn;var Oi=h(No);J(Oi,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Hi=h(Oi);{var dr=rt=>{Po(rt,{get disabled(){return r(li)},get ref(){return nt.replayButton},set ref(xt){nt.replayButton=xt},children:(xt,Si)=>{ml(xt,{get disabled(){return r(li)},click:xo})},$$slots:{default:!0}})};R(Hi,rt=>{G&&rt(dr)})}var Do=A(Hi,2);{var Wn=rt=>{Po(rt,{get ref(){return nt.liveButton},set ref(xt){nt.liveButton=xt},children:(xt,Si)=>{Ld(xt,{get isLiveActive(){return r(zn)},isMobile:!0,get ariaLabel(){return r(Ro)}})},$$slots:{default:!0}})};R(Do,rt=>{!ue()&&T()&&rt(Wn)})}var An=A(Do,2);{var qn=rt=>{let xt=v(()=>ue()?Me():ae()),Si=v(()=>ue()?ge():Pe());hd(rt,{get showDuration(){return r(Fn)},get position(){return r(xt)},get duration(){return r(Si)},isMobile:!0,get ref(){return nt.time},set ref(To){nt.time=To}})};R(An,rt=>{r(Un)&&rt(qn)})}var cr=A(An,2);let un=v(()=>!r(Sn));Po(cr,{className:"w-max",get disabled(){return r(un)},get ref(){return nt.episodes},set ref(rt){nt.episodes=rt},children:(rt,xt)=>{var Si=Oe(),To=pe(Si);{var fo=Io=>{var ko=Cy(),ut=A(pe(ko),2);Sd(ut,{get position(){return ae()},get duration(){return Pe()},timeCodes:Dt}),$(Io,ko)};R(To,Io=>{r(Sn)&&Io(fo)})}$(rt,Si)},$$slots:{default:!0}});var ur=A(cr,2);{var pr=rt=>{Po(rt,{get ref(){return nt.settings},set ref(xt){nt.settings=xt},children:(xt,Si)=>{ul(xt,{ref$:Wo})},$$slots:{default:!0}})};R(ur,rt=>{r(xn)&&rt(pr)})}var Kn=A(ur,2);{var Ir=rt=>{Po(rt,{get ref(){return nt.fullscreen},set ref(xt){nt.fullscreen=xt},children:(xt,Si)=>{$d(xt,{get click(){return e.toggleFullscreen},get isFullscreen(){return H()}})},$$slots:{default:!0}})};R(Kn,rt=>{r(ar)&&rt(Ir)})}g(Oi),ht(Oi,rt=>N(rt),()=>N());var kr=A(Oi,2);ua(kr,{get isAds(){return ue()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return M()},get ref(){return nt.timeline},set ref(rt){nt.timeline=rt}}),g(No),g(Bo),ht(Bo,rt=>ne(rt),()=>ne());var Mn=A(Bo,2);{var Jt=rt=>{Id(rt,{get ref(){return nt.interactiveTimeIndicator},set ref(xt){nt.interactiveTimeIndicator=xt}})};R(Mn,rt=>{vt&&rt(Jt)})}E((rt,xt)=>{Ko=J(Bo,1,"wrapper-bottom svelte-1afsgkw",null,Ko,rt),Pn=J(No,1,"controls-wrapper svelte-1afsgkw",null,Pn,xt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:H()})]),$(t,kn),U(),o()}at(["click"]);function Rd(t,e){F(e,!0);let[i,o]=De(),n=()=>S(T,"$isMobile",i),a=m(e,"bottomNoSmooth",3,!1),s=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),l=m(e,"isAds",3,!1),p=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),y=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),_=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,lm.noop),b=m(e,"onDisabledSeekToInteractiveClick",3,lm.noop),T=Ce().ui.isMobile,I=X(!1);qt(()=>{let V=setTimeout(()=>D(I,!0),0);return()=>clearTimeout(V)});var M=Oe(),P=pe(M);{var k=V=>{var W=Oe(),j=pe(W);{var H=ie=>{am(ie,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return y()},get customFullscreenSupported(){return u()},get endScreenShown(){return _()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return b()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},Q=ie=>{em(ie,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return y()},get showAutoplayNext(){return 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(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};R(j,ie=>{n()?ie(H):ie(Q,!1)})}$(V,W)};R(P,V=>{r(I)&&V(k)})}$(t,M),U(),o()}var ky=ye('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function dm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=ky();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),$(t,o)}function cm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);dm(t,{get style(){return r(o)}})}var Ey=ye('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function um(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),$(t,o)}var Py=ye('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function pm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Py();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),$(t,o)}function mu(t,e){let i=m(e,"isOff",3,!1);var o=Oe(),n=pe(o);{var a=d=>{pm(d,{})},s=d=>{um(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}$(t,o)}var Ay=ye('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function fm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),$(t,o)}function mm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);fm(t,{get style(){return r(o)}})}var My=ye('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function vm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=My();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),$(t,o)}function gm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);vm(t,{get style(){return r(o)}})}var Ly=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Vy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Ry=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;
|
|
264
|
+
@media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-9xcbwc {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-9xcbwc {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-9xcbwc {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-9xcbwc {left:96px;}.wrapper-middle-right.fullscreen.svelte-9xcbwc {right:44px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
|
|
265
|
+
}`};function gm(t,e){var bn,on;O(e,!0),W(t,Ly);let[i,o]=De(),n=()=>S(kn,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(Qt,"$disabledControls$",i),r=()=>S(Lt,"$playbackState$",i),d=()=>S(ft,"$adPlaybackState",i),l=()=>S(Pe,"$isEnded$",i),p=()=>S(Vt,"$playerSize",i),f=()=>S(Xe,"$scrubbingInProgress",i),b=()=>S(Co,"$chromecastState$",i),u=()=>S(gt,"$isPictureInPictureActive",i),_=()=>S(Kt,"$pictureInPictureType$",i),w=()=>S(wt,"$mobileNotReportControlHidden$",i),y=()=>S(yt,"$chromecastHidden",i),C=()=>S(Ft,"$playerPhase",i),T=()=>S(Yi,"$pipHidden",i),I=()=>S(Mi,"$currentGridType$",i),M=()=>S(Oi,"$vkLogoHidden",i),P=()=>S(Re,"$isLive$",i),E=()=>S(qt,"$settingsMenuVisible",i),R=()=>S(ot,"$isRewindableLive$",i),z=()=>S(Ke,"$isActiveLive$",i),q=()=>S(No,"$isInteractiveTime$",i),U=()=>S(j,"$isAudioAvailable$",i),Y=()=>S(Po,"$settingButtonRef$",i),se=()=>S(ui,"$startedByKeyboard$",i),Q=()=>S(tt,"$isFullscreen",i),de=()=>S(wi,"$mobileUnmuteButtonVisible",i),le=()=>S(Gi,"$volumeHidden",i),Me=()=>S(fe,"$muted$",i),Be=()=>S(_t,"$mobileUnmuteButtonExpanded",i),ge=()=>S(fo,"$additionalButtons$",i),ce=()=>S(po,"$autoplayNextToggleHidden",i),Ae=()=>S(G,"$crashed$",i),ae=()=>S(nt,"$settingsHidden",i),N=()=>S(ai,"$graphIsOpened$",i),Ye=()=>S(ci,"$adPosition",i),ee=()=>S(si,"$adDuration",i),We=()=>S(te,"$position$",i),ne=()=>S(Pt,"$duration$",i),me=m(e,"playerControlsWrapperRef",15,void 0),$e=m(e,"playerControlsRef",15,void 0),Z=m(e,"isAds",3,!1),ze=m(e,"logoTargetUrl",3,""),et=m(e,"isOneVideoPlaylist",3,!1),Ce=m(e,"customFullscreenSupported",3,!0),ie=Ie(),Ee=co(),qe=Ut(),rt=ie.actions.internal.toggleMuted,ct=ie.actions.internal.togglePlay,st=ie.actions.internal.pause,Tt=ie.actions.internal.prevVideoClick,pt=ie.actions.internal.nextVideoClick,Yt=(bn=ie.callbacks)==null?void 0:bn.onAudioDoesNotExistHint,ni=(on=ie.callbacks)==null?void 0:on.onAudioDisabledHint,Ft=ie.playerPhase,Pt=ie.state.duration$,te=ie.state.positionWithScrubbing$,Lt=ie.state.playbackState$,j=ie.state.isAudioAvailable$,pe=ie.state.isAudioDisabled,Pe=ie.state.isEnded$,Re=ie.state.isLive$,fe=ie.state.muted$,Ke=ie.state.isActiveLive$,ot=ie.state.isRewindableLive$,Xe=ie.ui.scrubbingInProgress,wt=ie.ui.mobileNotReportControlHidden$,{isActive$:gt,type$:Kt}=Ee.pictureInPicture$,_t=ie.ui.mobileUnmuteButtonExpanded,wi=ie.ui.mobileUnmuteButtonVisible,qt=ie.ui.settingsMenu.visible$,Ze=ie.ui.settingsMenu.openedByBtnKeyboard$,Jt=ie.ui.controls,{volume:Gi,vkLogo:Oi,autoplayNextToggle:po,pip:Yi,settings:nt,chromecast:yt}=ie.ui.hiddenControls,di=ie.actions.internal.getVideoEpisodes(),Si=ie.webApi.pictureInPictureApi,Co=ie.state.chromecastState$,G=ie.state.crashed$,Qt=Jt.disabledControls$,ui=ie.ui.startedByKeyboard$,Mi=ie.ui.currentGridType$,si=ie.ads.duration,ci=ie.ads.position,ft=ie.ads.playbackState,tt=ie.ui.isFullscreen,Vt=ie.ui.playerSize,fo=ie.ui.additionalButtonsDeprecated$,ei=ie.actions.internal.getVideoElement,Xn=ie.actions.internal.replayInteractive,Li=ie.state.isInteractive,No=ie.state.isInteractiveTime$,bi=ie.state.showInteractiveGraph,ht=ie.state.showSeekToInteractive,Vi=ie.state.showPlayPrevChapter,Do=ie.state.showInteractiveTimeIndicator,kn=Ee.seekToInteractiveDisabledTooltip$,ai=Ee.graphIsOpened$,Ci=ie.ui.controlBlocks,Oo=v(()=>F(ie.state.playPrevChapterDisabledTooltip)),Pn=v(()=>F(n())),Ho=v(()=>a().has("EPISODE_BUTTON")),To=v(()=>a().has("GRAPH_BUTTON")),hn=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Zo=v(()=>a().has("PLAY_BUTTON")),mo=v(()=>a().has("REPLAY_BUTTON")),Io=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Br=v(()=>r()===$l.PlaybackState.PLAYING),vr=v(()=>d()==="paused"),Jn=v(()=>l()&&!Z()&&!Li),er=v(()=>!l()||Z()),tr=v(()=>e.showNextPrevButtons&&!Z()&&e.prevButtonActive),An=v(()=>e.showNextPrevButtons&&!Z()&&e.nextButtonActive),es=v(()=>p().width>300),Mn=v(()=>p().width>400),Ri=v(f),Ln=v(()=>b()!==$l.ChromecastState.NOT_AVAILABLE&&!(u()&&_()===1)&&!w()&&!Li&&!y()),Xo=v(()=>C()==="LiveWaitingStart"),Jo=v(()=>!!Si&&b()!==$l.ChromecastState.CONNECTED&&!w()&&(_()===1&&s(Xo)||!s(Xo))&&!s(Ri)&&!Li&&!T()),Vn=v(()=>!s(Ri)&&qi(I(),"s")),Rn=v(()=>!e.logoHidden&&p().width>350&&!M()),Fo=v(()=>qe.features.fullscreen&&!(u()&&_()===1)&&(Li?Ce():!0)&&!s(Ri)),Nr=v(()=>(!P()||Z())&&p().width>260&&!s(Ri)&&!(qe.features.interactiveHideTime&&Li)),Bn=v(()=>E()||e.showControls),ir=v(()=>!Z()&&!P()&&!!(di!=null&&di.length)&&s(es)&&!s(Ho)&&!s(Ri)),Hi=v(()=>!R()||!!z()),Eo=v(()=>bi&&qi(I(),"m")),lt=ve({}),jt=ve({}),gr=(0,vm.debounceFn)(hl,260),Nn=(0,vm.debounceFn)(bu,260);Ue(()=>{p(),q(),gr(ei(),Jt,lt,e.showControls),Nn(ei(),Ci,jt,e.showControls)});let _n=()=>ie.actions.internal.toggleChromecast();async function Bi(){Si!=null&&Si.isActive()?await(Si==null?void 0:Si.remove()):await(Si==null?void 0:Si.request())}function Dn(){(!pe&&U()||Z())&&wi.set(!1),Rs({isAudioDisabled:pe,audioDisabledHintCallback:ni,isAudioAvailable:U(),audioIsNotExistHintCallback:Yt,isAds:Z()})&&rt()}let ko=X(""),On=(Je,Rt)=>{if(!Je){D(ko,ve(F("tooltip_live")));return}Rt&&Rt===$l.PlaybackState.PAUSED&&D(ko,ve(F("tooltip_play")))};Ue(()=>{On(s(Hi),r())});let Po=re();Ue(()=>{Y()&&dl(Y(),E(),Ze)}),Ue(()=>{hu(ui,se(),lt.playButton)});var Hn=My(),Fn=he(Hn);{var or=Je=>{var Rt=Iy(),gi=he(Rt);let _o;var Ji=A(gi,2);let Wo;var ji=h(Ji);{var qo=Fe=>{let It=v(()=>U()&&!pe&&Be());$u(Fe,{get muted(){return Me()},get expanded(){return s(It)},click:Dn,get ref(){return lt.volume},set ref(ti){lt.volume=ti}})};V(ji,Fe=>{(!U()||de())&&!le()&&Fe(qo)})}g(Ji),it(Ji,Fe=>jt.topLeft=Fe,()=>jt==null?void 0:jt.topLeft);var Mo=A(Ji,2);let Fi;var hi=h(Mo);$i(hi,1,ge,({iconUrl:Fe,ariaLabel:It,testId:ti,onClick:rn,tooltip:yn})=>Fe,(Fe,It)=>{let ti=()=>s(It).iconUrl,rn=()=>s(It).ariaLabel,yn=()=>s(It).testId,to=()=>s(It).onClick,Wr=()=>s(It).tooltip,xr=v(()=>{var Zi;return(Zi=rn())!=null?Zi:Wr()});cm(Fe,{get iconUrl(){return ti()},get ariaLabel(){return s(xr)},get testId(){return yn()},get onClick(){return to()}})});var Ko=A(hi,2);{var nn=Fe=>{Dd(Fe,{get ref(){return lt.autoplayNextToggle},set ref(It){lt.autoplayNextToggle=It}})};V(Ko,Fe=>{e.showAutoplayNext&&!et()&&!ce()&&Fe(nn)})}var Ui=A(Ko,2);{var yr=Fe=>{Pd(Fe,{isMobile:!0,click:_n,get state(){return b()},get ref(){return lt.chromecast},set ref(It){lt.chromecast=It}})};V(Ui,Fe=>{s(Ln)&&Fe(yr)})}var Hr=A(Ui,2);{var Fr=Fe=>{mm(Fe,{click:Bi,get isPictureInPictureActive(){return u()},get ref(){return lt.pip},set ref(It){lt.pip=It}})};V(Hr,Fe=>{s(Jo)&&Fe(Fr)})}var $n=A(Hr,2);{var zn=Fe=>{vl(Fe,{ref$:Po})};V($n,Fe=>{Ae()&&!ae()&&Fe(zn)})}var Ur=A($n,2);{var eo=Fe=>{kd(Fe,{click:st,get targetUrl(){return ze()},get logoClickable(){return e.logoClickable},get ref(){return lt.vkLogo},set ref(It){lt.vkLogo=It}})};V(Ur,Fe=>{s(Rn)&&Fe(eo)})}g(Mo),it(Mo,Fe=>jt.topRight=Fe,()=>jt==null?void 0:jt.topRight);var Qo=A(Mo,2);let Wn;var ar=h(Qo);{var lr=Fe=>{let It=v(()=>Tt.bind(null,!0));wa(Fe,{get click(){return s(It)},type:"prev",isMobile:!0,get ref(){return lt.prevButton},set ref(ti){lt.prevButton=ti}})};V(ar,Fe=>{s(tr)&&Fe(lr)})}var zr=A(ar,2);{var is=Fe=>{bl(Fe,{get disabled(){return s(Zo)},click:ct,isMobile:!0,get isPlaying(){return s(Br)},get ref(){return lt.playButton},set ref(It){lt.playButton=It}})};V(zr,Fe=>{s(er)&&Fe(is)})}var Te=A(zr,2);{var ye=Fe=>{_l(Fe,{get disabled(){return s(mo)},click:ct,isMobile:!0,get ref(){return lt.replayButton},set ref(It){lt.replayButton=It}})};V(Te,Fe=>{s(Jn)&&Fe(ye)})}var St=A(Te,2);{var zt=Fe=>{let It=v(()=>pt.bind(null,!0));wa(Fe,{get click(){return s(It)},type:"next",isMobile:!0,get ref(){return lt.nextButton},set ref(ti){lt.nextButton=ti}})};V(St,Fe=>{s(An)&&Fe(zt)})}g(Qo),it(Qo,Fe=>jt.middle=Fe,()=>jt==null?void 0:jt.middle);var Ii=A(Qo,2);{var _i=Fe=>{var It=Ty(),ti=he(It);{var rn=Zi=>{var Ei=wy();let xn;Ei.__click=[yy,Io,e,Oo];var qn=h(Ei);let wr=v(()=>!e.showControls);Nd(qn,{get hidden(){return s(wr)},get disabled(){return s(Io)},get click(){return e.playPrevChapter},get ref(){return lt.playPrevChapterButton},set ref(bo){lt.playPrevChapterButton=bo}}),g(Ei),k(bo=>xn=J(Ei,1,"wrapper-middle-left svelte-9xcbwc",null,xn,bo),[()=>({fullscreen:Q(),hidden:!e.showControls})]),$(Zi,Ei)};V(ti,Zi=>{Vi&&Zi(rn)})}var yn=A(ti,2);{var to=Zi=>{var Ei=Sy();let xn;var qn=h(Ei);let wr=v(()=>!e.showControls&&!N());Hd(qn,{get hidden(){return s(wr)},get disabled(){return s(To)},get click(){return ai.toggle},get graphIsOpened(){return N()},get ref(){return lt.interactiveGraphButton},set ref(bo){lt.interactiveGraphButton=bo}}),g(Ei),k(bo=>xn=J(Ei,1,id(Vi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",xn,bo),[()=>({fullscreen:Q(),hidden:!e.showControls&&!N()})]),$(Zi,Ei)};V(yn,Zi=>{s(Eo)&&Zi(to)})}var Wr=A(yn,2);{var xr=Zi=>{var Ei=Cy();let xn;Ei.__click=[xy,hn,e,Pn];var qn=h(Ei);let wr=v(()=>!e.showControls);Od(qn,{get hidden(){return s(wr)},get disabled(){return s(hn)},get click(){return e.seekToInteractive},get ref(){return lt.seekToInteractiveButton},set ref(bo){lt.seekToInteractiveButton=bo}}),g(Ei),k(bo=>xn=J(Ei,1,"wrapper-middle-right svelte-9xcbwc",null,xn,bo),[()=>({fullscreen:Q(),hidden:!e.showControls})]),$(Zi,Ei)};V(Wr,Zi=>{ht&&Zi(xr)})}$(Fe,It)};V(Ii,Fe=>{Li&&!f()&&Fe(_i)})}k((Fe,It,ti,rn)=>{_o=J(gi,1,"overlay-mobile svelte-9xcbwc",null,_o,Fe),Wo=J(Ji,1,"wrapper-top-left svelte-9xcbwc",null,Wo,It),Fi=J(Mo,1,"wrapper-top-right svelte-9xcbwc",null,Fi,ti),Wn=J(Qo,1,"wrapper-middle svelte-9xcbwc",null,Wn,rn)},[()=>({hidden:!s(Bn)}),()=>({hidden:!e.showControls,fullscreen:Q()}),()=>({hidden:!e.showControls&&!w(),fullscreen:Q()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(Je,Rt)};V(Fn,Je=>{Z()||Je(or)})}var hr=A(Fn,2);{var nr=Je=>{var Rt=Py(),gi=he(Rt);{var _o=Fi=>{var hi=Ey();let Ko;var nn=h(hi);$u(nn,{get muted(){return Me()},expanded:!1,click:Dn,get ref(){return lt.volume},set ref(Ui){lt.volume=Ui}}),g(hi),k(Ui=>Ko=J(hi,1,"wrapper-top-right svelte-9xcbwc",null,Ko,Ui),[()=>({fullscreen:Q()})]),$(Fi,hi)};V(gi,Fi=>{de()&&Fi(_o)})}var Ji=A(gi,2);{var Wo=Fi=>{var hi=ky(),Ko=h(hi);let nn=v(()=>!s(vr));bl(Ko,{get disabled(){return s(Zo)},click:ct,isMobile:!0,get isPlaying(){return s(nn)},get ref(){return lt.playButton},set ref(Ui){lt.playButton=Ui}}),g(hi),$(Fi,hi)};V(Ji,Fi=>{s(vr)&&Fi(Wo)})}var ji=A(Ji,2);let qo;var Mo=h(ji);Ad(Mo,{get position(){return Ye()},get duration(){return ee()}}),g(ji),k(Fi=>qo=J(ji,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,qo,Fi),[()=>({fullscreen:Q()})]),$(Je,Rt)};V(hr,Je=>{Z()&&d()!=="inactive"&&Je(nr)})}var Uo=A(hr,2);let Dr;var rr=h(Uo);let _r;var en=h(rr);J(en,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var Gt=h(en),vo=h(Gt);{var Ao=Je=>{Ro(Je,{get disabled(){return s(mo)},get ref(){return lt.replayButton},set ref(Rt){lt.replayButton=Rt},children:(Rt,gi)=>{_l(Rt,{get disabled(){return s(mo)},click:Xn})},$$slots:{default:!0}})};V(vo,Je=>{Li&&Je(Ao)})}var sr=A(vo,2);{var br=Je=>{Ro(Je,{get ref(){return lt.liveButton},set ref(Rt){lt.liveButton=Rt},children:(Rt,gi)=>{Fd(Rt,{get isLiveActive(){return s(Hi)},isMobile:!0,get ariaLabel(){return s(ko)}})},$$slots:{default:!0}})};V(sr,Je=>{!Z()&&P()&&Je(br)})}var Ti=A(sr,2);{var ts=Je=>{let Rt=v(()=>Z()?Ye():We()),gi=v(()=>Z()?ee():ne());Cd(Je,{get showDuration(){return s(Mn)},get position(){return s(Rt)},get duration(){return s(gi)},isMobile:!0,get ref(){return lt.time},set ref(_o){lt.time=_o}})};V(Ti,Je=>{s(Nr)&&Je(ts)})}var Or=A(Ti,2);let $r=v(()=>!s(ir));Ro(Or,{className:"w-max",get disabled(){return s($r)},get ref(){return lt.episodes},set ref(Je){lt.episodes=Je},children:(Je,Rt)=>{var gi=He(),_o=he(gi);{var Ji=Wo=>{var ji=Ay(),qo=A(he(ji),2);Md(qo,{get position(){return We()},get duration(){return ne()},timeCodes:di}),$(Wo,ji)};V(_o,Wo=>{s(ir)&&Wo(Ji)})}$(Je,gi)},$$slots:{default:!0}}),g(Gt),it(Gt,Je=>jt.bottomRight=Je,()=>jt==null?void 0:jt.bottomRight);var bt=A(Gt,2),Zt=h(bt);{var zo=Je=>{Ro(Je,{get ref(){return lt.settings},set ref(Rt){lt.settings=Rt},children:(Rt,gi)=>{vl(Rt,{ref$:Po})},$$slots:{default:!0}})};V(Zt,Je=>{s(Vn)&&Je(zo)})}var go=A(Zt,2);{var Xi=Je=>{Ro(Je,{get ref(){return lt.fullscreen},set ref(Rt){lt.fullscreen=Rt},children:(Rt,gi)=>{Ed(Rt,{get click(){return e.toggleFullscreen},get isFullscreen(){return Q()}})},$$slots:{default:!0}})};V(go,Je=>{s(Fo)&&Je(Xi)})}g(bt),it(bt,Je=>jt.bottomRight=Je,()=>jt==null?void 0:jt.bottomRight),g(en),it(en,Je=>$e(Je),()=>$e());var tn=A(en,2);ya(tn,{get isAds(){return Z()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return R()},get ref(){return lt.timeline},set ref(Je){lt.timeline=Je}}),g(rr),g(Uo),it(Uo,Je=>me(Je),()=>me());var Un=A(Uo,2);{var ho=Je=>{Rd(Je,{get ref(){return lt.interactiveTimeIndicator},set ref(Rt){lt.interactiveTimeIndicator=Rt}})};V(Un,Je=>{Do&&Je(ho)})}k((Je,Rt)=>{Dr=J(Uo,1,"wrapper-bottom svelte-9xcbwc",null,Dr,Je),_r=J(rr,1,"controls-wrapper svelte-9xcbwc",null,_r,Rt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:Q()})]),$(t,Hn),H(),o()}dt(["click"]);function Ud(t,e){O(e,!0);let[i,o]=De(),n=()=>S(T,"$isMobile",i),a=m(e,"bottomNoSmooth",3,!1),r=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),l=m(e,"isAds",3,!1),p=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),b=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),_=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,hm.noop),y=m(e,"onDisabledSeekToInteractiveClick",3,hm.noop),T=Ie().ui.isMobile,I=X(!1);Nt(()=>{let R=setTimeout(()=>D(I,!0),0);return()=>clearTimeout(R)});var M=He(),P=he(M);{var E=R=>{var z=He(),q=he(z);{var U=se=>{gm(se,{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 b()},get customFullscreenSupported(){return u()},get endScreenShown(){return _()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return r()},set playerControlsWrapperRef(Q){r(Q)},get playerControlsRef(){return d()},set playerControlsRef(Q){d(Q)}})},Y=se=>{lm(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return b()},get showAutoplayNext(){return 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 r()},set playerControlsWrapperRef(Q){r(Q)},get playerControlsRef(){return d()},set playerControlsRef(Q){d(Q)}})};V(q,se=>{n()?se(U):se(Y,!1)})}$(R,z)};V(P,R=>{s(I)&&R(E)})}$(t,M),H(),o()}var Vy=Se('<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 _m(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),$(t,o)}function bm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);_m(t,{get style(){return s(o)}})}var Ry=Se('<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 $m(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),$(t,o)}var By=Se('<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 ym(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=By();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),$(t,o)}function yu(t,e){let i=m(e,"isOff",3,!1);var o=He(),n=he(o);{var a=d=>{ym(d,{})},r=d=>{$m(d,{})};V(n,d=>{i()?d(a):d(r,!1)})}$(t,o)}var Ny=Se('<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 xm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),$(t,o)}function wm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);xm(t,{get style(){return s(o)}})}var Dy=Se('<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 Sm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(2),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),$(t,o)}function Cm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Sm(t,{get style(){return s(o)}})}var Oy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Hy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Fy=L("<div><!></div>"),Uy={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
|
|
265
266
|
animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
|
|
266
267
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
|
|
267
268
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
|
|
@@ -276,23 +277,23 @@ Try switching the\xA0quality to\xA0Auto.`},Vh=A_;var is=new Map;is.set(el.Interf
|
|
|
276
277
|
@keyframes svelte-1ad3n06-fadeOut {
|
|
277
278
|
0% {opacity:1;}
|
|
278
279
|
100% {opacity:0;}
|
|
279
|
-
}`};function
|
|
280
|
-
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function
|
|
280
|
+
}`};function Tm(t,e){O(e,!0),W(t,Uy);let[i,o]=De(),n=()=>S(e.data,"$data",i),r=Ie().ui.t,d=v(()=>!n()),l=v(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),p=v(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),f=v(()=>{var C;return(C=n())==null?void 0:C.type}),b=v(()=>{var C,T;return(C=n())!=null&&C.t?r(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=Fy();let _;var w=h(u);{var y=C=>{var T=Hy(),I=he(T),M=h(I);{var P=ne=>{let me=v(()=>s(f)==="FORWARD_SEEK");bm(ne,{get reversed(){return s(me)}})};V(M,ne=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(f))&&ne(P)})}var E=A(M,2);{var R=ne=>{hs(ne,{})};V(E,ne=>{s(f)==="PAUSE"&&ne(R)})}var z=A(E,2);{var q=ne=>{Vr(ne,{})};V(z,ne=>{s(f)==="PLAY"&&ne(q)})}var U=A(z,2);{var Y=ne=>{Bd(ne,{})};V(U,ne=>{s(f)==="REPLAY"&&ne(Y)})}var se=A(U,2);{var Q=ne=>{yu(ne,{isOff:!0})};V(se,ne=>{s(f)==="SUBTITLES_OFF"&&ne(Q)})}var de=A(se,2);{var le=ne=>{yu(ne,{})};V(de,ne=>{s(f)==="SUBTITLES_ON"&&ne(le)})}var Me=A(de,2);{var Be=ne=>{let me=v(()=>s(f)==="RATE_UP");wm(ne,{get reversed(){return s(me)}})};V(Me,ne=>{["RATE_DOWN","RATE_UP"].includes(s(f))&&ne(Be)})}var ge=A(Me,2);{var ce=ne=>{let me=v(()=>s(f)==="EPISODE_NEXT");Cm(ne,{get reversed(){return s(me)}})};V(ge,ne=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(f))&&ne(ce)})}var Ae=A(ge,2);{var ae=ne=>{Ns(ne,{volume:0})};V(Ae,ne=>{s(f)==="MUTE"&&ne(ae)})}var N=A(Ae,2);{var Ye=ne=>{Ns(ne,{volume:1})};V(N,ne=>{s(f)==="VOLUME"&&ne(Ye)})}g(I);var ee=A(I,2);{var We=ne=>{var me=Oy(),$e=h(me,!0);g(me),k(()=>_e($e,s(b))),$(ne,me)};V(ee,ne=>{s(b)&&ne(We)})}$(C,T)};V(w,C=>{!s(d)&&s(f)&&C(y)})}g(u),k(C=>_=J(u,1,"hot-key-helpers-container svelte-1ad3n06",null,_,C),[()=>({hidden:s(d),"hot-key-helpers-container--left":s(l),"hot-key-helpers-container--right":s(p)})]),$(t,u),H(),o()}var zy=Se('<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 Im(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=zy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),$(t,o)}var Wy=Se('<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 Em(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Wy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),$(t,o)}function Hs(t,e){O(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),r=v(()=>(()=>{let b="";return s(a)&&(b+="transform: rotate(180deg);"),o()&&(b+="color: var(--btn-color, #fff);"),b.length?b:void 0})());var d=He(),l=he(d);{var p=b=>{let u=v(()=>s(a)?"chevron-icon--down":"chevron-icon--up");Im(b,{get style(){return s(r)},get"data-testid"(){return s(u)}})},f=b=>{let u=v(()=>s(a)?"chevron-icon--right":"chevron-icon--left");Em(b,{get style(){return s(r)},get"data-testid"(){return s(u)}})};V(l,b=>{s(n)?b(p):b(f,!1)})}$(t,d),H()}var qy=(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}},Ky=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Qy=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>'),Gy={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function zd(t,e){O(e,!0),W(t,Gy);let i=m(e,"isShifted",3,!1),o=Ie(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},r=()=>{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=F("aria_label_spherical_control");var b=Qy();let u;b.__keydown=[qy,n,a,r,l,d],b.__keyup=[Ky,n,p],Ne(b,"aria-label",f);var _=h(b),w=h(_),y=h(w);y.__mousedown=a,y.__mouseup=p;var C=h(y);Hs(C,{direction:"up",useBtnColor:!0}),g(y);var T=A(y,2);T.__mousedown=d,T.__mouseup=p;var I=h(T);Hs(I,{direction:"up",useBtnColor:!0}),g(T),g(w);var M=A(w,2),P=h(M);P.__mousedown=l,P.__mouseup=p;var E=h(P);Hs(E,{direction:"up",useBtnColor:!0}),g(P);var R=A(P,2);R.__mousedown=r,R.__mouseup=p;var z=h(R);Hs(z,{direction:"up",useBtnColor:!0}),g(R),g(M),g(_),g(b),k(q=>u=J(b,1,"immersive-controls svelte-1yzc86r",null,u,q),[()=>({"m-shifted":i()})]),Et("mouseleave",y,p),Et("mouseleave",T,p),Et("mouseleave",P,p),Et("mouseleave",R,p),$(t,b),H()}dt(["keydown","keyup","mousedown","mouseup"]);var bs=require("@vkontakte/videoplayer-shared/es2018");var L1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var xu=class{constructor(){this.flickeringTimeout=L1(1e3);this.subscriptions=new bs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new bs.ValueSubject([]);this.captionsPrepared$=new bs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,bs.filter)(()=>this.isEnabled()),(0,bs.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:r},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(r),value:""}):n.length===0?n.push({value:String(r)}):n[n.length-1].value=String(r)),n),[])),this.captionsPrepared$.next(i)}};var Yy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),jy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),Zy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Xy=L('<div><span class="caption svelte-c2x749"><!></span></div>'),Jy=L("<div><!></div>"),e4={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;
|
|
281
|
+
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ia(t,e){O(e,!0),W(t,e4);let[i,o]=De(),n=()=>S(b,"$currentSubtitle$",i),a=()=>S(_,"$isLive$",i),r=()=>S(w,"$isFullscreen",i),d=()=>S(u,"$isAutoSubtitleCaptionVisible$",i),l=m(e,"isMobile",3,!1),p=Ie(),f=Ut(),b=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,_=p.state.isLive$,w=p.ui.isFullscreen,y=v(()=>!!n().isAuto),C=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),I=v(()=>l()&&!r()||s(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:s(T)),M=X(null);Ue(()=>{var Y,se,Q;(Y=s(M))==null||Y.setIsAuto(s(y)),(se=s(M))==null||se.setIsLive(s(C)),(Q=s(M))==null||Q.setCaptions(e.captions)});let P=X(ve([[]]));Nt(()=>{D(M,ve(new xu().subscribe()));let Y=s(M).captionsPrepared$.subscribe(se=>{D(P,ve(se))});return()=>{var se;(se=s(M))==null||se.destroy(),Y.unsubscribe()}}),Nt(()=>{if(s(y)){let Y=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Y)}}else u.set(!1)});let E=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=Jy();let z;var q=h(R);{var U=Y=>{var se=Xy();let Q;var de=h(se),le=h(de);{var Me=ge=>{var ce=Yy(),Ae=h(ce),ae=h(Ae,!0);g(Ae),g(ce),k(N=>{var Ye;at(Ae,`font-size: ${(Ye=s(I))!=null?Ye:""}px`),_e(ae,N)},[()=>F("subtitles_auto_caption")]),$(ge,ce)},Be=(ge,ce)=>{{var Ae=N=>{var Ye=He(),ee=he(Ye);$i(ee,17,()=>s(P),ed,(We,ne)=>{var me=jy(),$e=h(me);$i($e,21,()=>s(ne),({value:Z,timeAppeared:ze})=>ze,(Z,ze)=>{let et=()=>s(ze).value,Ce=()=>s(ze).timeAppeared;var ie=He(),Ee=he(ie);{var qe=rt=>{var ct=Gr();k(()=>_e(ct,et())),$(rt,ct)};V(Ee,rt=>{(!Ce()||Ce()<=e.position)&&rt(qe)})}$(Z,ie)}),g($e),g(me),k(()=>{var Z;return at($e,`font-size: ${(Z=s(I))!=null?Z:""}px`)}),$(We,me)}),$(N,Ye)},ae=N=>{var Ye=He(),ee=he(Ye);$i(ee,17,()=>e.captions,({value:We})=>We,(We,ne)=>{let me=()=>s(ne).value;var $e=Zy(),Z=h($e),ze=h(Z,!0);g(Z),g($e),k(()=>{var et;at(Z,`font-size: ${(et=s(I))!=null?et:""}px`),_e(ze,me())}),$(We,$e)}),$(N,Ye)};V(ge,N=>{var Ye;s(y)&&((Ye=s(P))!=null&&Ye.length)?N(Ae):N(ae,!1)},ce)}};V(le,ge=>{s(y)&&d()?ge(Me):ge(Be,!1)})}g(de),g(se),k(ge=>{var ce;Q=J(se,1,"subtitles-caption svelte-c2x749",null,Q,ge),at(se,`--subtitles-caption-margin: ${(ce=s(E))!=null?ce:""}%`)},[()=>({mobile:l()})]),$(Y,se)};V(q,Y=>{var se;(e.captions.length||(se=s(P))!=null&&se.length)&&Y(U)})}g(R),k(Y=>z=J(R,1,"subtitles-container svelte-c2x749",null,z,Y),[()=>({shifted:e.shifted,auto:s(y)&&!s(C)&&!d()})]),$(t,R),H(),o()}var t4=L('<div class="text svelte-raurnb"> </div>'),i4=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>'),o4={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 Wd(t,e){O(e,!0),W(t,o4);let i=Ut();var o=i4();let n;var a=A(h(o),2);{var r=d=>{var l=t4(),p=h(l);g(l),k(()=>{var f;return _e(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,l)};V(a,d=>{e.chromecastDeviceName&&d(r)})}g(o),k(d=>{n=J(o,1,"wrapper svelte-raurnb",null,n,d),at(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),H()}var n4=Se('<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 km(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=n4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i})),$(t,o)}var r4=L('<div class="container svelte-13zpvm8"><!></div>'),s4={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 qd(t){W(t,s4);var e=r4(),i=h(e);km(i,{}),g(e),$(t,e)}var a4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),l4=L("<div><!></div>"),d4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
|
|
281
282
|
visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
|
|
282
|
-
transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function
|
|
283
|
+
transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Ea(t,e){O(e,!0),W(t,d4);let i=m(e,"iconVisible",3,!0),o=Ie(),n=Ut(),a=o.ui.startedByKeyboard$,r=F("tooltip_play"),d=_=>{var y;let w=_.code;["Enter","Space"].includes(w)&&(_.stopPropagation(),_.preventDefault(),a.set(!0),(y=e.startVideo)==null||y.call(e))},l=_=>{var w;_.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=l4();let f;p.__click=l;var b=h(p);{var u=_=>{var w=a4();w.__keydown=d,Ne(w,"aria-label",r);var y=A(h(w),2);Vr(y,{}),g(w),$(_,w)};V(b,_=>{i()&&_(u)})}return g(p),k(_=>{f=J(p,1,"container svelte-1ciju45",null,f,_),at(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,p),H({handlePressKey:d,handleClick:l})}dt(["click","keydown"]);var c4=L('<div data-testid="video_title"><span> </span></div>'),u4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
283
284
|
0deg,
|
|
284
285
|
rgba(0, 0, 0, 0) 0%,
|
|
285
286
|
rgba(0, 0, 0, 0.02) 19%,
|
|
286
|
-
rgba(0, 0, 0, 0.
|
|
287
|
-
rgba(0, 0, 0, 0.
|
|
288
|
-
rgba(0, 0, 0, 0.
|
|
289
|
-
);}.hidden.svelte-
|
|
287
|
+
rgba(0, 0, 0, 0.1) 34%,
|
|
288
|
+
rgba(0, 0, 0, 0.4) 60%,
|
|
289
|
+
rgba(0, 0, 0, 0.6) 100%
|
|
290
|
+
);}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Pm(t,e){O(e,!0),W(t,u4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),a=X(void 0);Nt(()=>{var b;requestAnimationFrame(()=>{var u;(u=e.onVisibilityChanged)==null||u.call(e,!0)});function f(u){var _;u.propertyName==="transform"&&((_=e.onVisibilityChanged)==null||_.call(e,!o()))}return(b=s(a))==null||b.addEventListener("transitionend",f),()=>{var u;return(u=s(a))==null?void 0:u.removeEventListener("transitionend",f)}});var r=c4();let d;var l=h(r),p=h(l,!0);g(l),it(l,f=>n(f),()=>n()),g(r),it(r,f=>D(a,f),()=>s(a)),k(f=>{d=J(r,1,"title svelte-14hk510",null,d,f),_e(p,i())},[()=>({hidden:o()})]),$(t,r),H()}var p4=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),f4=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),m4=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),v4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),g4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),h4={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 Am(t,e){O(e,!0),W(t,h4);let i=X(""),o=X(""),n=X(""),a=X(""),r,d=M=>String(M).padStart(2,"0"),l=M=>{let P=Math.floor(M/86400);P&&(M-=P*86400,D(i,ve(d(P))));let E=Math.floor(M/3600);D(o,ve(d(E)));let R=Math.floor(M/60)%60;D(n,ve(d(R)));let z=M%60;D(a,ve(d(z)))},p=()=>{let M=Math.floor(Date.now()/1e3),P=e.startTime-M;l(P),P>=1?r=requestAnimationFrame(p):e.onTimerOver()};Nt(()=>{r=requestAnimationFrame(p)}),In(()=>{cancelAnimationFrame(r)});var f=g4(),b=h(f);{var u=M=>{var P=p4(),E=he(P),R=h(E),z=h(R,!0);g(R);var q=A(R,2),U=h(q,!0);g(q),g(E);var Y=A(E,2),se=h(Y,!0);g(Y),k((Q,de)=>{_e(z,s(i)),_e(U,Q),_e(se,de)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),$(M,P)};V(b,M=>{s(i)&&M(u)})}var _=A(b,2);{var w=M=>{var P=f4(),E=he(P),R=h(E),z=h(R,!0);g(R);var q=A(R,2),U=h(q,!0);g(q),g(E);var Y=A(E,2),se=h(Y,!0);g(Y),k((Q,de)=>{_e(z,s(o)),_e(U,Q),_e(se,de)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),$(M,P)};V(_,M=>{s(o)&&M(w)})}var y=A(_,2);{var C=M=>{var P=m4(),E=he(P),R=h(E),z=h(R,!0);g(R);var q=A(R,2),U=h(q,!0);g(q),g(E);var Y=A(E,2),se=h(Y,!0);g(Y),k((Q,de)=>{_e(z,s(n)),_e(U,Q),_e(se,de)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),$(M,P)};V(y,M=>{s(n)&&M(C)})}var T=A(y,2);{var I=M=>{var P=v4(),E=h(P),R=h(E,!0);g(E);var z=A(E,2),q=h(z,!0);g(z),g(P),k(U=>{_e(R,s(a)),_e(q,U)},[()=>F("waiting_live_second_value")]),$(M,P)};V(T,M=>{s(a)&&M(I)})}g(f),$(t,f),H()}var _4=Se('<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 Mm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=_4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(4),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i})),$(t,o)}var b4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),$4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),y4=L('<div class="waiting-container svelte-15pewff"><!></div>'),x4={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 Kd(t,e){O(e,!0),W(t,x4);let i=X(!1);Ue(()=>{D(i,ve(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=y4(),n=h(o);{var a=d=>{var l=b4(),p=h(l),f=h(p);Mm(f,{}),g(p);var b=A(p,2),u=h(b,!0);g(b),g(l),k(_=>_e(u,_),[()=>F("waiting_live_upcoming_title")]),$(d,l)},r=d=>{var l=$4(),p=h(l),f=h(p,!0);g(p);var b=A(p,2);let u=v(()=>e.startTime||0);Am(b,{get startTime(){return s(u)},onTimerOver:()=>D(i,!0)}),g(l),k(_=>_e(f,_),[()=>F("waiting_live_timer_title")]),$(d,l)};V(n,d=>{s(i)?d(a):d(r,!1)})}g(o),k(()=>at(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),$(t,o),H()}var w4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),S4={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 ka(t,e){O(e,!0),W(t,S4);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=w4(),r=h(a),d=h(r);ha(d,{style:"position: static; transform: translate(0, 0)"});var l=A(d,2),p=h(l,!0);g(l),g(r),g(a),k(()=>{at(a,`background-image: url('${i()}')`),_e(p,s(n))}),$(t,a),H()}var C4=Se('<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 Lm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=C4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),$(t,o)}var T4=L('<div class="select-icon svelte-124aexk"><!></div>'),I4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Qd(t){W(t,I4);var e=T4(),i=h(e);Lm(i,{}),g(e),$(t,e)}var E4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},k4=(t,e)=>{ul(t,()=>e.item.selectItem(e.item.value))},P4=L("<p> </p>"),A4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),M4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),L4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
|
|
290
291
|
|
|
291
292
|
/**
|
|
292
293
|
* \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
|
|
293
294
|
* \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
|
|
294
295
|
*/margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
|
|
295
|
-
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function
|
|
296
|
+
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Vm(t,e){O(e,!0),W(t,L4);let i=m(e,"isMobile",3,!1);var o=M4();let n;o.__click=[E4,e],o.__keydown=[k4,e];var a=h(o);{var r=w=>{Qd(w,{})};V(a,w=>{e.item.selected&&w(r)})}var d=A(a,2);let l;var p=h(d);{var f=w=>{var y=He(),C=he(y);yi(C,()=>e.item.valueComponent,(T,I)=>{I(T,fs(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),$(w,y)},b=w=>{var y=P4();let C;var T=h(y,!0);g(y),k(I=>{var M;C=J(y,1,"label svelte-1t7rx2m",null,C,I),_e(T,(M=e.item.label)!=null?M:e.item.value)},[()=>({mobile:i()})]),$(w,y)};V(p,w=>{e.item.valueComponent?w(f):w(b,!1)})}var u=A(p,2);{var _=w=>{var y=A4(),C=h(y,!0);g(y),k(()=>_e(C,e.item.sublabel)),$(w,y)};V(u,w=>{e.item.sublabel&&w(_)})}g(d),g(o),k((w,y,C)=>{n=J(o,1,"item",null,n,w),Ne(o,"data-value",e.item.value),Ne(o,"aria-label",y),Ne(o,"data-testid",e.item.dataTestid),l=J(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Ne(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),H()}dt(["click","keydown"]);var V4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Rm(t,e){O(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>y=>iu(y,s(n)));var r=V4();let d;r.__click=function(...y){var C;(C=s(n))==null||C.apply(this,y)},r.__keydown=function(...y){var C;(C=s(a))==null||C.apply(this,y)};var l=h(r);{var p=y=>{Qd(y,{})};V(l,y=>{e.item.selected&&y(p)})}var f=A(l,2);let b;var u=h(f);{var _=y=>{var C=He();let T=v(()=>e.item.valueComponent);var I=he(C);yi(I,()=>s(T),(M,P)=>{P(M,fs(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),$(y,C)},w=y=>{var C=Gr();k(()=>_e(C,e.item.label)),$(y,C)};V(u,y=>{e.item.valueComponent?y(_):y(w,!1)})}g(f),g(r),it(r,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),k((y,C)=>{var T;d=J(r,1,"item",null,d,y),Ne(r,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Ne(r,"data-testid",e.item.id),b=J(f,1,"menu-item-value",null,b,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,r),H()}dt(["click","keydown"]);var Rr={"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 B4=(t,e)=>{t1(t,e.returnFromSubMenu,e.closeSettingsMenu)},N4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},D4=(t,e)=>{hd(t)&&(mr(t),e.returnFromSubMenu())},O4=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>'),H4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
|
|
296
297
|
/*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
|
|
297
298
|
/**
|
|
298
299
|
* \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
|
|
@@ -302,14 +303,14 @@ Try switching the\xA0quality to\xA0Auto.`},Vh=A_;var is=new Map;is.set(el.Interf
|
|
|
302
303
|
var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
|
|
303
304
|
1px
|
|
304
305
|
);}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
|
|
305
|
-
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function km(t,e){F(e,!0),q(t,V4);let[i,o]=De(),n=()=>S(y,"$isFullscreen",i),a=()=>S(u,"$playerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),l=m(e,"ariaLabelReturnFromSubMenu",19,()=>z("aria_label_submenu_back")),p=m(e,"listRef",15);qt(()=>{let Z=e.items.findIndex(se=>se.selected);p().children[Z+1].focus()});let f=Ce(),y=f.ui.isFullscreen,u=f.ui.playerSize,_=X(void 0),w=X(0),b=X(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(b)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(w)));var I=L4();let M;var P=h(I);let k;P.__keydown=[P4,e];var V=h(P);let W;V.__click=[A4,e],V.__keydown=[M4,e];var j=h(V);Ts(j,{direction:"left"});var H=A(j,2),Q=h(H,!0);g(H),g(V),ht(V,Z=>D(_,Z),()=>r(_));var ie=A(V,2);yi(ie,17,()=>e.items,Kl,(Z,se)=>{var ce=Oe(),Ee=pe(ce);{var Me=ae=>{Cm(ae,{get item(){return r(se)},get isMobile(){return s()}})},ge=(ae,Pe)=>{{var ne=N=>{Tm(N,{get isMobile(){return s()},get item(){return r(se)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(ae,N=>{r(se).type==="OPEN_SUB_MENU"&&N(ne)},Pe)}};R(Ee,ae=>{r(se).type==="SELECT_VALUE"?ae(Me):ae(ge,!1)})}$(Z,ce)}),g(P),ht(P,Z=>p(Z),()=>p()),g(I),E((Z,se,ce)=>{M=J(I,1,"sub-menu menu svelte-7dfsuh",null,M,Z),Ne(I,"data-testid",`sub-menu-${e.id}`),st(I,`min-width: ${r(T)}px`),k=J(P,1,"items svelte-7dfsuh",null,k,se),st(P,r(C)),W=J(V,1,"item header back svelte-7dfsuh",null,W,ce),Ne(V,"aria-label",l()),me(Q,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Nr(V,"clientWidth",Z=>D(w,Z)),Nr(V,"clientHeight",Z=>D(b,Z)),$(t,I),U(),o()}at(["keydown","click"]);var k1=require("@vkontakte/videoplayer-shared/es2018");var R4=(t,e)=>jc(t,e()),B4=(t,e)=>{t.stopPropagation(),e()()},N4=L('<div class="value svelte-1ikfjte"> </div>'),D4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),O4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Em(t,e){F(e,!0),q(t,O4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,k1.noop),n=m(e,"valueComponent",3,void 0),a=m(e,"ref",15);var s=D4();let d;s.__click=[B4,o],s.__keydown=[R4,o];var l=h(s),p=h(l);{var f=T=>{va(T,{get icon(){return e.icon}})},y=T=>{var I=Oe();let M=v(()=>e.icon);var P=pe(I);xi(P,()=>r(M),(k,V)=>{V(k,{})}),$(T,I)};R(p,T=>{typeof e.icon=="string"?T(f):T(y,!1)})}g(l);var u=A(l,2),_=h(u,!0);g(u);var w=A(u,2);{var b=T=>{var I=Oe();let M=v(n);var P=pe(I);xi(P,()=>r(M),(k,V)=>{V(k,{})}),$(T,I)},C=T=>{var I=N4(),M=h(I,!0);g(I),E(()=>me(M,e.value)),$(T,I)};R(w,T=>{n()?T(b):T(C,!1)})}g(s),ht(s,T=>a(T),()=>a()),E(T=>{d=J(s,1,"item",null,d,T),Ne(s,"aria-label",e.ariaLabel),Ne(s,"data-testid",e.id),me(_,e.label)},[()=>({mobile:i()})]),$(t,s),U()}at(["click","keydown"]);var Pm=require("@vkontakte/videoplayer-shared/es2018");var H4=(t,e)=>{al(t,()=>e())},F4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),U4=L('<img class="icon" aria-hidden="true">'),z4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),W4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Am(t,e){F(e,!0),q(t,W4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Pm.noop),n=m(e,"closeSettings",3,Pm.noop),a=X(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=z4();let p;l.__click=d,l.__keydown=[H4,d];var f=h(l),y=h(f);{var u=C=>{var T=Oe(),I=pe(T);{var M=k=>{var V=F4();$(k,V)},P=k=>{var V=U4();E(()=>Ne(V,"src",e.icon)),kt("error",V,s),Ws(V),$(k,V)};R(I,k=>{r(a)?k(M):k(P,!1)})}$(C,T)},_=C=>{var T=Oe();let I=v(()=>e.icon);var M=pe(T);xi(M,()=>r(I),(P,k)=>{k(P,{})}),$(C,T)};R(y,C=>{typeof e.icon=="string"?C(u):C(_,!1)})}g(f);var w=A(f,2),b=h(w,!0);g(w),g(l),E(C=>{var T;p=J(l,1,"item",null,p,C),Ne(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ne(l,"data-testid",e.id),me(b,e.label)},[()=>({mobile:i()})]),$(t,l),U()}at(["click","keydown"]);var E1=require("@vkontakte/videoplayer-shared/es2018");var q4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),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 Mm(t,e){q(t,K4);let i=m(e,"enabled",3,!1);var o=q4(),n=h(o);let a;$e(2),g(o),E(s=>a=J(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),$(t,o)}var Q4=(t,e,i)=>{Qh(t,e(),o=>i()(o))},G4=(t,e,i)=>{t.stopPropagation(),e()(!i())},Y4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),j4=L('<li role="menuitem" tabindex="0"><!></li>');function Lm(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,E1.noop),n=m(e,"enabled",3,!1),a=m(e,"tooltipText",3,void 0),s=m(e,"maxTooltipWidth",3,void 0);var d=j4();let l;d.__click=[G4,o,n],d.__keydown=[Q4,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,y)=>{var u=Y4();let _;var w=h(u),b=h(w);{var C=k=>{va(k,{get icon(){return e.icon}})},T=k=>{var V=Oe();let W=v(()=>e.icon);var j=pe(V);xi(j,()=>r(W),(H,Q)=>{Q(H,{})}),$(k,V)};R(b,k=>{typeof e.icon=="string"?k(C):k(T,!1)})}g(w);var I=A(w,2),M=h(I,!0);g(I);var P=A(I,2);Mm(P,{get enabled(){return n()}}),g(u),E(k=>{_=J(u,1,"switch-wrapper",null,_,k),me(M,e.label)},[()=>({mobile:i()})]),$(f,u)},$$slots:{default:!0}}),g(d),E(f=>{var y;l=J(d,1,"item switch-item",null,l,f),Ne(d,"aria-label",(y=e.ariaLabel)!=null?y:e.label),Ne(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),U()}at(["click","keydown"]);var Ud=require("@vkontakte/videoplayer-shared/es2018");var P1=()=>{let t=X(fe([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{D(t,fe(r(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,fe([]))}}};var Z4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),X4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),J4={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function $a(t,e){F(e,!0),q(t,J4);let i=m(e,"isSubCase",3,!1),o=v(()=>eu(e.quality));var n=X4(),a=h(n);let s;var d=h(a,!0);g(a);var l=A(a,2);{var p=f=>{var y=Z4();let u=v(()=>r(o));var _=h(y);xi(_,()=>r(u),(w,b)=>{b(w,{})}),g(y),$(f,y)};R(l,f=>{r(o)&&!e.isMobile&&f(p)})}g(n),E(f=>{s=J(a,1,"svelte-t2qk8t",null,s,f),me(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),U()}var V1=require("@vkontakte/videoplayer-shared/es2018");var Vm=require("@vkontakte/videoplayer-core/es2018");var A1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},M1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=A1({quality:t,availableQualities:e});return i?t===Vm.VideoQuality.INVARIANT?z("auto_quality_invariant"):z("auto_quality",{actual:o}):o},L1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Vm.VideoQuality.INVARIANT?i:`${i}${A1({quality:t,availableQualities:e})}`:"...";var e3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),t3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function hl(t,e){F(e,!0),q(t,t3);let[i,o]=De(),n=()=>S(l,"$currentQuality$",i),a=()=>S(p,"$availableQualities$",i),s=()=>S(f,"$isMobile$",i),d=Ce(),l=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,y=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==V1.VideoQuality.INVARIANT?y:"")),_=v(()=>L1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=e3(),b=h(w);let C=v(()=>e.selected?n():void 0);$a(b,{get quality(){return r(C)},get label(){return r(_)},get isMobile(){return s()},isSubCase:!0}),g(w),$(t,w),U(),o()}var i3=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")},o3={br:!0,span:!0},Rm=(t,e={})=>{var d,l,p,f,y,u,_;if(!t)return t;let i={...o3,...e},o=Object.keys(i);if(!o.length)return t;let n=i3(o),a=[],s=0;for(let w of t.matchAll(n)){let b=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(s,T)),s=T+b.length;continue}let I=(y=w.groups)!=null&&y.childrenhtml?Rm(w.groups.childrenhtml,i):"",M=(u=w.groups)!=null&&u.childrenhtml?b.replace(new RegExp((_=w.groups)==null?void 0:_.childrenhtml),()=>I||""):b;a.push(t.slice(s,T),M),s=T+b.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Fd(t,e){F(e,!1);let i=m(e,"message",8),o=Rm(i());yr();var n=Oe(),a=pe(n);{var s=d=>{var l=Oe(),p=pe(l);Ql(p,()=>o,!1,!1),$(d,l)};R(a,d=>{o&&d(s)})}$(t,n),U()}var n3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),r3={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function Bm(t,e){F(e,!1),q(t,r3),yr();var i=n3(),o=h(i);let n=_r(()=>z("quality_applience",{action:`<span>${z("quality_applience_action")}</span>`}));Fd(o,{get message(){return r(n)}}),g(i),$(t,i),U()}var B1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:hl,valueComponentParams:{prefix:z("other_quality"),selected:o},children:"QUALITY"}},Nm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:z("auto_quality_limit"),valueComponent:e?hl:void 0,valueComponentParams:{prefix:z("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),N1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Bm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Dm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:z("high_quality"),valueComponent:t?hl:void 0,valueComponentParams:{prefix:z("high_quality"),selected:i},sublabel:z("high_quality_description")}),Om=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:z("traffic_saving_quality"),valueComponent:t?hl:void 0,valueComponentParams:{prefix:z("traffic_saving_quality"),selected:i},sublabel:z("traffic_saving_quality_description")});var gu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),hu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=lu(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return z("audio_stream_display_language_label",{language:n,label:o});{let l=gu(t,d);return z("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=gu(t,d);return z("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=gu(t,d);return z("audio_stream_display_language_index",{language:n,index:l})}}let a=gu(t,e);return z("audio_stream_display_unknown",{index:a})};var s3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Nm,selected:e&&!o&&!n||!1}),a.push({handler:Om,selected:o},{handler:Dm,selected:n}),{title:z("submenu_quality"),id:"QUALITY_DETAILS",items:[N1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),B1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:z("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:$a,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:z("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Nm,selected:((i=Hc())==null?void 0:i.type)==="auto_quality"},{handler:Om,selected:((o=Hc())==null?void 0:o.type)==="traffic_saving"},{handler:Dm,selected:((n=Hc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:z("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:hu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:z("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:z("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===cu?"sub_off":void 0}))})},D1=({subMenuId:t,context:e})=>t?[s3[t](e)]:[];var a3=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Hm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=a3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),$(t,o)}var l3=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Fm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=l3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),$(t,o)}var d3=ye('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Um(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=d3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),$(t,o)}var c3=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function zm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=c3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),$(t,o)}var u3=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function Wm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=u3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),$(t,o)}var p3=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function _u(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=p3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),$(t,o)}var f3=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function qm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=f3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),$(t,o)}var m3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),v3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Km(t,e){F(e,!0),q(t,v3);let[i,o]=De(),n=()=>S(p,"$currentQuality$",i),a=()=>S(f,"$availableQualities$",i),s=()=>S(y,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),l=Ce(),p=l.state.currentQuality$,f=l.state.availableQualities$,y=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,_=v(()=>M1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=m3(),b=h(w);$a(b,{get quality(){return n()},get label(){return r(_)},get isMobile(){return d()}}),g(w),$(t,w),U(),o()}var h3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?z("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_quality",{actual:o}),icon:vd,label:z("menu_quality"),value:e,valueComponent:Km,weight:Cr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Cr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:z("aria_label_submenu_traffic_saving"),icon:Hm,label:z("menu_traffic_saving"),enabled:t,tooltipText:z("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=hu(t,e);return{id:"AUDIO_LANGUAGES",weight:Cr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_audio_languages",{actual:i}),icon:Fm,label:z("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:Cr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_rate",{actual:i}),icon:Um,label:z("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Cr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_subtitle",{actual:t.displayValue}),icon:gd,label:z("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Cr.download,type:"CLICK",onClick:t,label:z("download_video_caption"),ariaLabel:z("aria_label_menu_download"),icon:zm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Cr.report,type:"CLICK",onClick:t,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,icon:Wm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Cr["copy-data"],type:"CLICK",onClick:t,label:z("menu_copy_debug"),ariaLabel:z("menu_copy_debug"),icon:_u,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Cr["save-trace-info"],type:"CLICK",onClick:t,label:z("menu_save_debug"),ariaLabel:z("menu_save_debug"),icon:_u,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Cr["debug-info"],type:"CLICK",onClick:t,label:z("aria_label_menu_debug_overlay"),ariaLabel:z("menu_debug_overlay"),icon:qm,isHiddenFor:["desktop"]})},O1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>h3[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 b3=(t,e)=>{Yc(t,e)},$3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),y3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),x3=L("<div><!> <!></div>"),w3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
|
|
306
|
+
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Nm(t,e){O(e,!0),W(t,H4);let[i,o]=De(),n=()=>S(b,"$isFullscreen",i),a=()=>S(u,"$playerSize",i),r=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),l=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),p=m(e,"listRef",15);Nt(()=>{let Q=e.items.findIndex(de=>de.selected);p().children[Q+1].focus()});let f=Ie(),b=f.ui.isFullscreen,u=f.ui.playerSize,_=X(void 0),w=X(0),y=X(0),C=v(()=>r()&&n()?`max-height: ${Math.round(a().height*.6)}px`:r()?"":`max-height: ${a().height-32-s(y)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,s(w)));var I=O4();let M;var P=h(I);let E;P.__keydown=[B4,e];var R=h(P);let z;R.__click=[N4,e],R.__keydown=[D4,e];var q=h(R);Hs(q,{direction:"left"});var U=A(q,2),Y=h(U,!0);g(U),g(R),it(R,Q=>D(_,Q),()=>s(_));var se=A(R,2);$i(se,17,()=>e.items,ed,(Q,de)=>{var le=He(),Me=he(le);{var Be=ce=>{Vm(ce,{get item(){return s(de)},get isMobile(){return r()}})},ge=(ce,Ae)=>{{var ae=N=>{Rm(N,{get isMobile(){return r()},get item(){return s(de)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(ce,N=>{s(de).type==="OPEN_SUB_MENU"&&N(ae)},Ae)}};V(Me,ce=>{s(de).type==="SELECT_VALUE"?ce(Be):ce(ge,!1)})}$(Q,le)}),g(P),it(P,Q=>p(Q),()=>p()),g(I),k((Q,de,le)=>{M=J(I,1,"sub-menu menu svelte-7dfsuh",null,M,Q),Ne(I,"data-testid",`sub-menu-${e.id}`),at(I,`min-width: ${s(T)}px`),E=J(P,1,"items svelte-7dfsuh",null,E,de),at(P,s(C)),z=J(R,1,"item header back svelte-7dfsuh",null,z,le),Ne(R,"aria-label",l()),_e(Y,e.title)},[()=>({desktop:!r(),mobile:r()}),()=>({mobile:r()}),()=>({mobile:r()})]),Yr(R,"clientWidth",Q=>D(w,Q)),Yr(R,"clientHeight",Q=>D(y,Q)),$(t,I),H(),o()}dt(["keydown","click"]);var R1=require("@vkontakte/videoplayer-shared/es2018");var F4=(t,e)=>iu(t,e()),U4=(t,e)=>{t.stopPropagation(),e()()},z4=L('<div class="value svelte-1ikfjte"> </div>'),W4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),q4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Dm(t,e){O(e,!0),W(t,q4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,R1.noop),n=m(e,"valueComponent",3,void 0),a=m(e,"ref",15);var r=W4();let d;r.__click=[U4,o],r.__keydown=[F4,o];var l=h(r),p=h(l);{var f=T=>{Sa(T,{get icon(){return e.icon}})},b=T=>{var I=He();let M=v(()=>e.icon);var P=he(I);yi(P,()=>s(M),(E,R)=>{R(E,{})}),$(T,I)};V(p,T=>{typeof e.icon=="string"?T(f):T(b,!1)})}g(l);var u=A(l,2),_=h(u,!0);g(u);var w=A(u,2);{var y=T=>{var I=He();let M=v(n);var P=he(I);yi(P,()=>s(M),(E,R)=>{R(E,{})}),$(T,I)},C=T=>{var I=z4(),M=h(I,!0);g(I),k(()=>_e(M,e.value)),$(T,I)};V(w,T=>{n()?T(y):T(C,!1)})}g(r),it(r,T=>a(T),()=>a()),k(T=>{d=J(r,1,"item",null,d,T),Ne(r,"aria-label",e.ariaLabel),Ne(r,"data-testid",e.id),_e(_,e.label)},[()=>({mobile:i()})]),$(t,r),H()}dt(["click","keydown"]);var Om=require("@vkontakte/videoplayer-shared/es2018");var K4=(t,e)=>{ul(t,()=>e())},Q4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),G4=L('<img class="icon" aria-hidden="true">'),Y4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),j4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Hm(t,e){O(e,!0),W(t,j4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Om.noop),n=m(e,"closeSettings",3,Om.noop),a=X(!1),r=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=Y4();let p;l.__click=d,l.__keydown=[K4,d];var f=h(l),b=h(f);{var u=C=>{var T=He(),I=he(T);{var M=E=>{var R=Q4();$(E,R)},P=E=>{var R=G4();k(()=>Ne(R,"src",e.icon)),Et("error",R,r),ea(R),$(E,R)};V(I,E=>{s(a)?E(M):E(P,!1)})}$(C,T)},_=C=>{var T=He();let I=v(()=>e.icon);var M=he(T);yi(M,()=>s(I),(P,E)=>{E(P,{})}),$(C,T)};V(b,C=>{typeof e.icon=="string"?C(u):C(_,!1)})}g(f);var w=A(f,2),y=h(w,!0);g(w),g(l),k(C=>{var T;p=J(l,1,"item",null,p,C),Ne(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ne(l,"data-testid",e.id),_e(y,e.label)},[()=>({mobile:i()})]),$(t,l),H()}dt(["click","keydown"]);var B1=require("@vkontakte/videoplayer-shared/es2018");var Z4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),X4={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 Fm(t,e){W(t,X4);let i=m(e,"enabled",3,!1);var o=Z4(),n=h(o);let a;we(2),g(o),k(r=>a=J(n,1,"toggle svelte-17wbjko",null,a,r),[()=>({on:i()})]),$(t,o)}var J4=(t,e,i)=>{i1(t,e(),o=>i()(o))},e3=(t,e,i)=>{t.stopPropagation(),e()(!i())},t3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),i3=L('<li role="menuitem" tabindex="0"><!></li>');function Um(t,e){O(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,B1.noop),n=m(e,"enabled",3,!1),a=m(e,"tooltipText",3,void 0),r=m(e,"maxTooltipWidth",3,void 0);var d=i3();let l;d.__click=[e3,o,n],d.__keydown=[J4,n,o];var p=h(d);ba(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return r()},children:(f,b)=>{var u=t3();let _;var w=h(u),y=h(w);{var C=E=>{Sa(E,{get icon(){return e.icon}})},T=E=>{var R=He();let z=v(()=>e.icon);var q=he(R);yi(q,()=>s(z),(U,Y)=>{Y(U,{})}),$(E,R)};V(y,E=>{typeof e.icon=="string"?E(C):E(T,!1)})}g(w);var I=A(w,2),M=h(I,!0);g(I);var P=A(I,2);Fm(P,{get enabled(){return n()}}),g(u),k(E=>{_=J(u,1,"switch-wrapper",null,_,E),_e(M,e.label)},[()=>({mobile:i()})]),$(f,u)},$$slots:{default:!0}}),g(d),k(f=>{var b;l=J(d,1,"item switch-item",null,l,f),Ne(d,"aria-label",(b=e.ariaLabel)!=null?b:e.label),Ne(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),H()}dt(["click","keydown"]);var Yd=require("@vkontakte/videoplayer-shared/es2018");var N1=()=>{let t=X(ve([])),e=v(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{D(t,ve(s(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,ve([]))}}};var o3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),n3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),r3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Pa(t,e){O(e,!0),W(t,r3);let i=m(e,"isSubCase",3,!1),o=v(()=>su(e.quality));var n=n3(),a=h(n);let r;var d=h(a,!0);g(a);var l=A(a,2);{var p=f=>{var b=o3();let u=v(()=>s(o));var _=h(b);yi(_,()=>s(u),(w,y)=>{y(w,{})}),g(b),$(f,b)};V(l,f=>{s(o)&&!e.isMobile&&f(p)})}g(n),k(f=>{r=J(a,1,"svelte-t2qk8t",null,r,f),_e(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),H()}var F1=require("@vkontakte/videoplayer-shared/es2018");var zm=require("@vkontakte/videoplayer-core/es2018");var D1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},O1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=D1({quality:t,availableQualities:e});return i?t===zm.VideoQuality.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},H1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===zm.VideoQuality.INVARIANT?i:`${i}${D1({quality:t,availableQualities:e})}`:"...";var s3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),a3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function yl(t,e){O(e,!0),W(t,a3);let[i,o]=De(),n=()=>S(l,"$currentQuality$",i),a=()=>S(p,"$availableQualities$",i),r=()=>S(f,"$isMobile$",i),d=Ie(),l=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,b=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==F1.VideoQuality.INVARIANT?b:"")),_=v(()=>H1({prefix:s(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=s3(),y=h(w);let C=v(()=>e.selected?n():void 0);Pa(y,{get quality(){return s(C)},get label(){return s(_)},get isMobile(){return r()},isSubCase:!0}),g(w),$(t,w),H(),o()}var l3=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")},d3={br:!0,span:!0},Wm=(t,e={})=>{var d,l,p,f,b,u,_;if(!t)return t;let i={...d3,...e},o=Object.keys(i);if(!o.length)return t;let n=l3(o),a=[],r=0;for(let w of t.matchAll(n)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(r,T)),r=T+y.length;continue}let I=(b=w.groups)!=null&&b.childrenhtml?Wm(w.groups.childrenhtml,i):"",M=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp((_=w.groups)==null?void 0:_.childrenhtml),()=>I||""):y;a.push(t.slice(r,T),M),r=T+y.length}return r===0?t:(a.push(t.slice(r)),a.join(""))};function Gd(t,e){O(e,!1);let i=m(e,"message",8),o=Wm(i());Pr();var n=He(),a=he(n);{var r=d=>{var l=He(),p=he(l);td(p,()=>o,!1,!1),$(d,l)};V(a,d=>{o&&d(r)})}$(t,n),H()}var c3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),u3={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 qm(t,e){O(e,!1),W(t,u3),Pr();var i=c3(),o=h(i);let n=Ir(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Gd(o,{get message(){return s(n)}}),g(i),$(t,i),H()}var z1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:yl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},Km=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?yl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),W1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:qm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Qm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?yl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),Gm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:F("traffic_saving_quality"),valueComponent:t?yl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var wu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Su=(t,e)=>{var r;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(r=mu(i))!=null?r:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let l=wu(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=wu(t,d);return F("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=wu(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=wu(t,e);return F("audio_stream_display_unknown",{index:a})};var p3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Km,selected:e&&!o&&!n||!1}),a.push({handler:Gm,selected:o},{handler:Qm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[W1(t),...a.map(({handler:r,selected:d})=>r({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),z1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Pa,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Km,selected:((i=Kc())==null?void 0:i.type)==="auto_quality"},{handler:Gm,selected:((o=Kc())==null?void 0:o.type)==="traffic_saving"},{handler:Qm,selected:((n=Kc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:r})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:r},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Su(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===gu?"sub_off":void 0}))})},q1=({subMenuId:t,context:e})=>t?[p3[t](e)]:[];var f3=Se('<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 Ym(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=f3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),$(t,o)}var m3=Se('<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 jm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=m3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),$(t,o)}var v3=Se('<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 Zm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=v3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),$(t,o)}var g3=Se('<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 Xm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=g3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),$(t,o)}var h3=Se('<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 Jm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=h3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),$(t,o)}var _3=Se('<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 Cu(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=_3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),$(t,o)}var b3=Se('<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 ev(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=b3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),$(t,o)}var $3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),y3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function tv(t,e){O(e,!0),W(t,y3);let[i,o]=De(),n=()=>S(p,"$currentQuality$",i),a=()=>S(f,"$availableQualities$",i),r=()=>S(b,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),l=Ie(),p=l.state.currentQuality$,f=l.state.availableQualities$,b=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,_=v(()=>O1({quality:n(),availableQualities:a(),isAutoQualityEnabled:r()}));var w=$3(),y=h(w);Pa(y,{get quality(){return n()},get label(){return s(_)},get isMobile(){return d()}}),g(w),$(t,w),H(),o()}var w3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:wd,label:F("menu_quality"),value:e,valueComponent:tv,weight:Rr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Rr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:Ym,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Su(t,e);return{id:"AUDIO_LANGUAGES",weight:Rr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:jm,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Rr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:Zm,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Rr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Sd,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Rr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:Xm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Rr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:Jm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Rr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:Cu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Rr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:Cu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Rr["debug-info"],type:"CLICK",onClick:t,label:F("aria_label_menu_debug_overlay"),ariaLabel:F("menu_debug_overlay"),icon:ev,isHiddenFor:["desktop"]})},K1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>w3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var a,r,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((r=n==null?void 0:n.isHiddenFor)!=null&&r.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ma)};var C3=(t,e)=>{tu(t,e)},T3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),I3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),E3=L("<div><!> <!></div>"),k3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
|
|
306
307
|
/* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
|
|
307
308
|
.settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
|
|
308
309
|
.settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
|
|
309
|
-
.settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function
|
|
310
|
+
.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 jd(t,e){O(e,!0),W(t,k3);let[i,o]=De(),n=()=>S(ze,"$settingsMenuVisible",i),a=()=>S(et,"$settingsMenuOpenedByKeyboard",i),r=()=>S(Tt,"$debugPanelVisible",i),d=()=>S(ie,"$isMobile",i),l=()=>S(st,"$playerSize",i),p=()=>S(Z,"$hasMpegSources$",i),f=()=>S(Ee,"$mobileNotReportControlHidden$",i),b=()=>S(ae,"$autoQualityLimitingAvailable$",i),u=()=>S(me,"$availableSubtitlesList$",i),_=()=>S(qe,"$isLiveWithPlaybackSpeed",i),w=()=>S(ge,"$availableAudioStreams$",i),y=()=>S(We,"$availablePlaybackRates$",i),C=()=>S(Be,"$currentAudioStream$",i),T=()=>S(ee,"$currentPlaybackRate$",i),I=()=>S(rt,"$trafficSavingEnabled",i),M=()=>S(ce,"$currentQuality$",i),P=()=>S(N,"$isAutoQualityEnabled$",i),E=()=>S(ne,"$currentSubtitle$",i),R=()=>S(Yt,"$additionalSettingsMenuItems$",i),z=()=>S(Ye,"$isAutoQualityAvailable$",i),q=()=>S(Ae,"$availableQualities$",i),U=()=>S(ct,"$highQualityEnabled",i),Y=m(e,"ref",15,void 0),se=m(e,"playerControlsHeight",3,0),Q=ve({}),de=ve({}),le=Ie(),Me=Ut(),Be=le.state.audioStream$,ge=le.state.availableAudioStreams$,ce=le.state.currentQuality$,Ae=le.state.availableQualities$,ae=le.state.autoQualityLimitingAvailable$,N=le.state.isAutoQualityEnabled$,Ye=le.state.isAutoQualityAvailable$,ee=le.state.currentPlaybackRate$,We=le.state.availablePlaybackRates$,ne=le.state.currentSubtitle$,me=le.state.availableSubtitlesList$,$e=le.state.canDownload,Z=le.state.hasMpegSources$,ze=le.ui.settingsMenu.visible$,et=le.ui.settingsMenu.openedByBtnKeyboard$,Ce=le.ui.settingsMenu.ref$,ie=le.ui.isMobile,Ee=le.ui.mobileNotReportControlHidden$,qe=le.state.canChangePlaybackSpeed$,rt=le.state.trafficSavingEnabled$,ct=le.state.highQualityEnabled$,st=le.ui.playerSize,Tt=le.ui.debugPanelVisible,pt=le.state.isInteractiveTime$,Yt=le.ui.additionalSettingsMenuItems$,ni=le.ui.t,Ft=le.actions.internal.downloadVideo,Pt=le.actions.internal.closeSettingsMenu,te=le.actions.internal.openSettingsSubMenu,Lt=le.actions.internal.closeSettingsSubMenu,j=X(!1),pe=X(void 0),Pe=N1();Ue(()=>{!n()&&Pe.current&&(Lt(de[Pe.current]),Pe.popAllSubMenus())}),Ue(()=>{n()||D(pe,void 0)}),Ue(()=>{!Pe.current&&s(pe)&&e1(Q,s(pe))}),Ue(()=>{Y()&&Ce.set(Y())});async function Re(tt){Pe.pushSubMenu(tt),await xo(),te(tt,de[tt])}function fe(tt){var Vt;tt==null||tt.stopPropagation(),a()||(Vt=e.returnFocus)==null||Vt.call(e),Pt(),D(j,!1)}function Ke(tt,Vt){le.actions.internal.setQuality(tt,{appliesTo:Vt}),fe()}function ot(tt){le.actions.internal.setAudioStream(tt),fe()}function Xe(tt,Vt){le.actions.internal.setTrafficSavingEnabled(tt,Vt),Me.features.qualityDetailsSubMenuEnabled&&fe()}function wt(tt,Vt){le.actions.internal.setHighQualityEnabled(tt,Vt),fe()}function gt(tt){le.actions.internal.setPlaybackRate(tt),fe()}function Kt(tt){le.actions.internal.setSubtitle(tt),fe()}function _t(){Ft()}function wi(){(0,Yd.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function qt(){ll(le.actions.internal.getDebugTextData())}let Ze=()=>{let tt=le.actions.internal.getTraceTextData(),Vt=new Blob([...tt],{type:"application/json"}),fo=window.URL.createObjectURL(Vt);la(fo,"vk_player_trace_info","json")};function Jt(){Tt.set(!r())}function Gi(){D(j,!0)}function Oi(){D(j,!1)}function po(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-se()}px; overflow: auto;`}let Yi=v(()=>$e&&p()&&!f()),nt=v(()=>Me.features.trafficSaving&&!f()&&b()&&!Me.features.qualityDetailsSubMenuEnabled),yt=v(()=>u().length>0&&!f()),di=v(()=>!!_()&&!f()),Si=v(()=>Me.features.audioLanguages&&w().length>=2&&!f()),Co=v(()=>!f());Nt(()=>pt.subscribe(tt=>{tt&&!d()&&!s(j)&&!a()&&fe()}));let G=v(()=>{let tt=[s(Co)&&"QUALITY_SETTINGS",s(Si)&&"AUDIO_LANGUAGES",s(di)&&"PLAYBACK_RATE",s(yt)&&"SUBTITLES",s(nt)&&"TRAFFIC_SAVING_SWITCH",s(Yi)&&"DOWNLOAD",Me.showSupport&&"SHOW_SUPPORT","COPY_DATA",Me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Vt=>!!Vt);return K1({items:tt,context:{qualityDetailsSubMenuEnabled:Me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:gt,trafficSavingEnabled:I(),toggleTrafficSaving:Xe,currentQuality:M()||Yd.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:_t,onCopyDataClick:qt,onReportProblemClick:wi,onSaveTraceDataClick:Ze,toggleShowDebugInfo:Jt},additionalSettingsMenuItems:R()})}),Qt=v(()=>q1({subMenuId:Pe.current,context:{availablePlaybackRates:y(),selectPlaybackRate:gt,trafficSavingEnabled:I(),toggleTrafficSaving:Xe,currentQuality:M()||Yd.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:z()||!1,availableQualities:q(),highQualityEnabled:U(),toggleHighQuality:wt,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Pt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:ot,selectQuality:Ke,selectSubtitle:Kt}}));var ui=E3();let Mi;var si=h(ui);{var ci=tt=>{var Vt=I3();let fo;Vt.__keydown=[C3,Pt];var ei=h(Vt);{var Xn=bi=>{var ht=T3();let Vi;var Do=h(ht),kn=h(Do,!0);g(Do);var ai=A(Do,2);ai.__click=fe,g(ht),k((Ci,Oo)=>{Vi=J(ht,1,"item header svelte-17or3al",null,Vi,Ci),_e(kn,Oo)},[()=>({mobile:d()}),()=>ni("submenu_settings")]),$(bi,ht)};V(ei,bi=>{d()&&bi(Xn)})}var Li=A(ei,2);let No;$i(Li,21,()=>s(G),bi=>bi.id,(bi,ht)=>{var Vi=He(),Do=he(Vi);{var kn=Ci=>{Dm(Ci,{get isMobile(){return d()},get id(){return s(ht).id},get icon(){return s(ht).icon},get label(){return s(ht).label},get ariaLabel(){return s(ht).ariaLabel},get value(){return s(ht).value},get valueComponent(){return s(ht).valueComponent},onClick:()=>{Re(s(ht).children),D(pe,ve(s(ht).id))},get ref(){return Q[s(ht).id]},set ref(Oo){Q[s(ht).id]=Oo}})},ai=(Ci,Oo)=>{{var Pn=To=>{Hm(To,{get isMobile(){return d()},get id(){return s(ht).id},get onClick(){return s(ht).onClick},get icon(){return s(ht).icon},get label(){return s(ht).label},get ariaLabel(){return s(ht).ariaLabel},closeSettings:fe})},Ho=(To,hn)=>{{var Zo=mo=>{Um(mo,{get isMobile(){return d()},get id(){return s(ht).id},get onClick(){return s(ht).onClick},get icon(){return s(ht).icon},get label(){return s(ht).label},get ariaLabel(){return s(ht).ariaLabel},get enabled(){return s(ht).enabled},get tooltipText(){return s(ht).tooltipText},get maxTooltipWidth(){return s(ht).maxTooltipWidth}})};V(To,mo=>{s(ht).type==="SWITCH"&&mo(Zo)},hn)}};V(Ci,To=>{s(ht).type==="CLICK"?To(Pn):To(Ho,!1)},Oo)}};V(Do,Ci=>{s(ht).type==="OPEN_SUB_MENU"?Ci(kn):Ci(ai,!1)})}$(bi,Vi)}),g(Li),it(Li,bi=>Y(bi),()=>Y()),g(Vt),k((bi,ht,Vi)=>{fo=J(Vt,1,"settings-menu menu svelte-17or3al",null,fo,bi),No=J(Li,1,"items",null,No,ht),at(Li,Vi)},[()=>({desktop:!d(),mobile:d(),hidden:!!Pe.current}),()=>({mobile:d()}),po]),Et("mouseenter",Vt,Gi),Et("mouseleave",Vt,Oi),$(tt,Vt)};V(si,tt=>{n()&&tt(ci)})}var ft=A(si,2);$i(ft,17,()=>s(Qt),tt=>tt.id,(tt,Vt)=>{let fo=v(()=>{var ei;return(ei=s(Vt).minWidth)!=null?ei:137});Nm(tt,{get isMobile(){return d()},get playerControlsHeight(){return se()},get returnFromSubMenu(){return Pe.popSubMenu},get id(){return s(Vt).id},get title(){return s(Vt).title},closeSettingsMenu:Pt,openSubMenuList:Re,get items(){return s(Vt).items},get minWidth(){return s(fo)},get refMenuItems(){return Q},get listRef(){return de[s(Vt).id]},set listRef(ei){de[s(Vt).id]=ei}})}),g(ui),k(tt=>Mi=J(ui,1,"settings-menu-container svelte-17or3al",null,Mi,tt),[()=>({mobile:d(),hidden:!n()})]),$(t,ui),H(),o()}dt(["keydown","click"]);var P3=t=>t;function Q1(t,{delay:e=0,duration:i=400,easing:o=P3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var A3=L('<button class="button svelte-1sbbskl"> </button>'),M3={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 iv(t,e){W(t,M3);var i=A3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),k(()=>_e(o,e.label)),$(t,i)}dt(["click"]);var L3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),V3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
|
|
310
311
|
/**
|
|
311
312
|
* \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
|
|
312
|
-
*/pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function
|
|
313
|
+
*/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 Zd(t,e){O(e,!0),W(t,V3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Ut(),{ui:{t:n}}=Ie(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var r=L3(),d=h(r),l=h(d),p=h(l),f=h(p);Gd(f,{message:a}),g(p);var b=A(p,2);{var u=w=>{let y=v(()=>n("slow_video_notification_button"));iv(w,{get label(){return s(y)},get onClick(){return e.onSelectAutoQuality}})};V(b,w=>{o||w(u)})}g(l);var _=A(l,2);ga(_,{get onClick(){return e.onClose}}),g(d),g(r),Bp(3,d,()=>Q1,()=>({duration:i})),$(t,r),H()}var Xd=require("@vkontakte/videoplayer-shared/es2018"),Aa="annotation",Tu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:a,hideAllControls:r}=i;e.setAttribute("slot",Aa),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(n,a),r&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let n=this.slots.get(e);if(!n)return;let a=await this.findSlotElement(n.rootElement,i,e),{controls:r,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},l=new MutationObserver(b=>b.forEach(()=>{let u=vs(a,this.shadowRootContainer);o.forEach(_=>{let w=r==null?void 0:r[_],y=w?xe(w):null,C=d==null?void 0:d[_];y&&(C==null||C.set((0,Xd.isIntersecting)(y,u)))})}));l.observe(a,{childList:!0,subtree:!0}),n.observer=l;let p=new Xd.Subscription;o.forEach(b=>{r&&p.add(r[b].subscribe(u=>{let _=d==null?void 0:d[b];u&&u.isDisplayed?_==null||_.set((0,Xd.isIntersecting)(u,vs(a,this.shadowRootContainer))):_==null||_.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){return new Promise(n=>{let a=null,r=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){r.disconnect();let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=void 0),n(a)}});r.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=r)})}remove(e){var p,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:a,subs:r,options:{controlsBehaviour:d,hideAllControls:l}}=i;o&&o.remove(),[n,a].forEach(b=>b==null?void 0:b.disconnect()),r==null||r.unsubscribe(),this.slots.delete(e),l&&((p=this.store)==null||p.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(b=>{var u,_;(_=(u=this.store)==null?void 0:u.ui.hiddenControls[b])==null||_.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var R3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),B3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
|
|
313
314
|
|
|
314
315
|
animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
|
|
315
316
|
|
|
@@ -340,8 +341,8 @@ Try switching the\xA0quality to\xA0Auto.`},Vh=A_;var is=new Map;is.set(el.Interf
|
|
|
340
341
|
opacity: 0;
|
|
341
342
|
scale: 0;
|
|
342
343
|
}
|
|
343
|
-
}`};function
|
|
344
|
-
.video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function xa(t,e){F(e,!0),q(t,M3);let[i,o]=De(),n=()=>S(f,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),s=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),l=m(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:y},state:{isPlaying$:u}}=Ce(),{isSmoothVideoRotate:_}=Kt(),w=v(()=>l()&&n()%180?a().height/a().width:1);var b=A3();let C;b.__contextmenu=function(...I){var M;(M=e.onContextMenu)==null||M.apply(this,I)},b.__mousedown=function(...I){var M;(M=e.onMouseDown)==null||M.apply(this,I)},b.__mouseup=function(...I){var M;(M=e.onMouseUp)==null||M.apply(this,I)},b.__click=function(...I){var M;(M=e.onClick)==null||M.apply(this,I)},b.__dblclick=function(...I){var M;(M=e.onDblClick)==null||M.apply(this,I)};var T=h(b);J(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!_}),ht(T,I=>l(I),()=>l()),g(b),E(I=>{C=J(b,1,"video-wrapper svelte-1czns9r",null,C,I),st(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Ne(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),$(t,b),U(),o()}at(["contextmenu","mousedown","mouseup","click","dblclick"]);var L3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},V3=L("<div><!></div>"),R3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),B3=L("<div><!></div>"),N3=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),D3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),O3=L("<!> <!> <!>",1),H3=L('<div class="blocked svelte-jtgjmv"></div>'),F3=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),U3={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function jm(t,e){F(e,!0),q(t,U3);let[i,o]=De(),n=()=>S(Wo,"$notificationsToShow$",i),a=()=>S(Pi,"$playerPhase",i),s=()=>S(Xt,"$isLoaderVisible",i),d=()=>S($i,"$adPlaybackState",i),l=()=>S(Rt,"$crashed",i),p=()=>S(Lo,"$isInteractiveTime$",i),f=()=>S(Ot,"$settingsMenuVisible",i),y=()=>S(pi,"$isInteractiveExpectation$",i),u=()=>S(yt,"$controlsVisible",i),_=()=>S(Bi,"$touched",i),w=()=>S(zn,"$graphIsOpened$",i),b=()=>S(Qi,"$isFullscreen",i),C=()=>S(Tr,"$autoplayNextEnabled$",i),T=()=>S(vt,"$postrollPassed",i),I=()=>S(bi,"$isEnded$",i),M=()=>S(Pn,"$cursorInside",i),P=()=>S(Un,"$isControlsAvailable",i),k=()=>S(wn,"$fakeIsPlaying$",i),V=()=>S(En,"$bottomNoSmooth",i),W=()=>S(Ni,"$interactiveTimeIndicator",i),j=()=>S(Mo,"$playerSize",i),H=()=>S(li,"$is3DVideo",i),Q=()=>S(xo,"$contextMenuVisible$",i),ie=()=>S(ri,"$playbackState$",i),Z=()=>S(wo,"$hotKeyMapData",i),se=()=>S(cn,"$scrubbingInProgress",i),ce=()=>S($n,"$volumeChangingInProgress",i),Ee=()=>S(Ai,"$chromecastConnected$",i),Me=()=>S(Ko,"$controlsTimeoutActive",i),ge=()=>S(ao,"$settingsMenuOpenedByKeyboard",i),ae=()=>S(Go,"$contextMenuOpenedByKeyboard$",i),Pe=()=>S(fr,"$contextMenuButtonRef$",i),ne=()=>S(mr,"$contextMenuOpenedByHotKey$",i),N=()=>S(zr,"$contextMenuLastActiveElem$",i),ue=()=>S(Vt,"$isFullscreenOpenedByKeyboard",i),_e=()=>S(Ge,"$language$",i),ze=()=>S(Tt,"$icon3DVideoVisible",i),re=()=>S(ai,"$chromecastDeviceName$",i),K=()=>S(sr,"$currentSubtitle$",i),he=()=>S(co,"$currentSubtitleCaptions$",i),ee=()=>S(tt,"$position$",i),He=()=>S(jt,"$duration$",i),Ze=()=>S(fi,"$isLive$",i),we=()=>S(et,"$isPlaying$",i),Ve=()=>S(Co,"$contextMenuPosition$",i),Ie=()=>S(So,"$showHotKeyMap",i),Ue=()=>S(G,"$debugPanelVisible",i),dt=()=>S(ar,"$userActionsDisabled$",i),ct=m(e,"videoContainer",15),ot=m(e,"adsSlotId",3,void 0),Et=m(e,"adsParams",3,void 0),_t=m(e,"adsPreviewParam",3,void 0),Yt=m(e,"adsAutoplayParam",3,void 0),Zt=m(e,"duration",3,void 0),Lt=m(e,"logoTargetUrl",3,""),Nt=m(e,"showNextPrevButtons",3,!1),O=m(e,"nextButtonActive",3,!1),be=m(e,"prevButtonActive",3,!1),oe=m(e,"endScreenVideoTitle",3,void 0),Be=m(e,"endScreenVideoThumb",3,void 0),Qe=m(e,"isOneVideoPlaylist",3,!1),je=m(e,"shadowRootContainer",3,void 0),Le=m(e,"outerContainerRef",3,void 0),it=m(e,"playerStarted",3,!1),Je=m(e,"fullScreenTarget",3,void 0),$t=m(e,"showMiniTimer",3,!1),pt=m(e,"showEndScreen",3,!0),mt=m(e,"keyboardControls",15),Dt=e.store.getLogger().createComponentLog("Root component"),Ge=e.store.interfaceLanguage$,ri=e.store.state.playbackState$,$i=e.store.ads.playbackState,tt=e.store.state.positionWithScrubbing$,jt=e.store.state.duration$,Pi=e.store.playerPhase,Qi=e.store.ui.isFullscreen,Vt=e.store.ui.isFullscreenOpenedByKeyboard,yt=e.store.ui.controlsVisible,Ot=e.store.ui.settingsMenu.visible$,ao=e.store.ui.settingsMenu.openedByBtnKeyboard$,cn=e.store.ui.scrubbingInProgress,$n=e.store.ui.volumeChangingInProgress,xo=e.store.ui.contextMenu.visible$,G=e.store.ui.debugPanelVisible,Xt=e.store.state.isLoaderVisible,bi=e.store.state.isEnded$,Ai=e.store.state.chromecastConnected$,ai=e.store.state.chromecastDeviceName$,vt=e.store.ads.postrollPassed,fi=e.store.state.isLive$,et=e.store.state.isPlaying$,Rt=e.store.state.crashed$,lo=e.store.webApi.annotationsApi,ti=e.store.webApi.pictureInPictureApi,sr=e.store.state.currentSubtitle$,co=e.store.state.currentSubtitleCaptions$,Mo=e.store.ui.playerSize,li=e.store.ui.is3DVideo,Tt=e.store.ui.icon3DVideoVisible,Mi=e.store.state.isInteractive,Lo=e.store.state.isInteractiveTime$,pi=e.store.state.isInteractiveExpectation$,Uo=e.store.state.hasInteractiveBranches,Bi=e.store.ui.touched,wo=e.store.ui.modals.hotKeyMap.data,So=e.store.ui.modals.hotKeyMap.show,Fn=e.store.ui.overlayContainer$,Ni=e.store.ui.controls.interactiveTimeIndicator,yn=e.store.state.showInteractiveTimeIndicator,Co=e.store.ui.contextMenu.position$,Vo=e.store.actions.internal.setQuality,xn=e.store.actions.internal.closeSettingsMenu,Tr=e.store.ui.autoplayNextEnabled$,ar=e.store.ui.userActionsDisabled,Un=e.store.ui.isControlsAvailable,{fakeIsPlaying$:wn,notifications$:Sn,graphIsOpened$:zn}=ro(),uo=X(void 0),nt=X(void 0),Cn=X(void 0),zo=X(void 0),Tn,In,Ro;wo.set(Hh());let{closeNotification:lr,notificationsToShow$:Wo}=Sn,kn=v(()=>!!n().slow_video),qo=()=>lr("slow_video"),po=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Di=X(void 0),En=le(!1),Bo,Ko=le(!1),No=le(),Pn=le(!1),Oi=X(!1),Hi=X(!1),dr=X(!1),Do=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Wn=v(()=>p()&&!f()&&!(r(Oi)||r(Hi))&&!(r(dr)&&!y())),An=!0,qn=v(()=>e.uiConfig.features.thumbTimer&&$t()&&a()==="video"&&!u()&&!l()&&!Mi&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),cr=v(()=>a()==="video"&&!w()&&b()),un=X(!1),ur=v(()=>(pt()||e.showAutoplayNext&&C())&&!!oe()&&!!Be()&&(e.showAds&&T()||!e.showAds)&&I()&&!l()&&!r(un)),pr=v(()=>M()&&!(u()||r(ur))&&!p()&&P()),Kn=X(!1),Ir=v(()=>k()!==null),{toggle:kr}=wn,Mn=!1,Jt=null;ti==null||ti.setContext(zl());let Qn=()=>{e.autoplay&&!Mi&&e.uiConfig.controls.showOnStartupAtAutoplay&&xt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Qn});let Gn=()=>{window.clearTimeout(Tn),Ko.set(!1)},rt=()=>{window.clearTimeout(In),No.set(null)},xt=Se=>{Gn(),Ko.set(!0),Tn=window.setTimeout(()=>Ko.set(!1),Se);let ft=Se-100;Bo=window.setTimeout(()=>{V()&&En.set(!1)},ft>0?ft:Se)},Si=(Se,ft)=>{rt(),No.set(ft),In=window.setTimeout(()=>No.set(null),Se)},To=li.subscribe(Se=>{Tt.set(Se),Se&&(window.clearTimeout(Ro),Ro=window.setTimeout(()=>Tt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),fo=async()=>{var ft,Wt,si,Xi;let Se=hs();if(Se){let Re=nd(),gt=ut();Se=Re===gt||Re===je()}if(Se){xt(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ti==null?void 0:ti.remove())}catch(Re){Dt({message:String(Re)})}}Qi.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),b()?(Wt=(ft=e.store.callbacks)==null?void 0:ft.onFullscreenEnter)==null||Wt.call(ft):(Xi=(si=e.store.callbacks)==null?void 0:si.onFullscreenExit)==null||Xi.call(si)},Io=Se=>{let{width:ft,height:Wt}=Se.target;Mo.set({width:ft,height:Wt})},ko=()=>{let{width:Se,height:ft}=r(uo).getBoundingClientRect();Mo.set({width:Se,height:ft})};qt(()=>{var ft;return Qc(fo),e.uiConfig.features.annotationsInside&&(lo==null||lo.init(r(uo))),ia(ti)&&(ti==null||ti.assignPlayerContainer(r(uo)),ti==null||ti.registryExternalEventHandlers({resize:Io,leavepictureinpicture:ko})),e.interactiveContainer&&((ft=ct().parentElement)==null||ft.insertBefore(e.interactiveContainer,ct().nextSibling)),()=>{window.clearTimeout(Tn),window.clearTimeout(Bo),window.clearTimeout(In),window.clearTimeout(Ro),To(),ti==null||ti.dispose().catch(Wt=>{Dt({message:String(Wt)})}),Gc(fo)}});let ut=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Le()?r(uo):Le(),ft=Se.getRootNode(),Wt=ft instanceof ShadowRoot?ft.host:ft,si=Je()instanceof HTMLElement&&Je().contains(Wt);return e.uiConfig.allowChangingFullscreenTarget&&Je()&&si?Je():Se},Qt=async()=>{hs()?(await Kc(document),Dt({message:"exit fullscreen"})):(Dt({message:"request fullscreen"}),await qc(ut()))},oi=()=>{xn(),xo.set(!1)},mi=Se=>{w()||(Se.preventDefault(),xo.set(!0),Co.set({left:Se.clientX,top:Se.clientY}))};function Zi(){Pn.set(!0),Mi||xt(e.uiConfig.controls.hideTimeoutCursor)}function mo(){Mi||(En.set(!0),xt(e.uiConfig.controls.hideTimeoutCursor))}function Gi(){Pn.set(!1),D(Hi,!1),D(Oi,!1),Mn=!1,e.store.actions.internal.releaseCamera(),xt(e.uiConfig.controls.hideTimeout)}function Fi(Se){return Se?Se.offsetTop+Fi(Se.offsetParent):0}function Ci(Se){return Se?Se.offsetLeft+Ci(Se.offsetParent):0}function Qo(Se){if(W()&&yn){let ft=Se.currentTarget,Wt=Fi(ft),si=Ci(ft),Xi=Se.pageX-si,Re=Se.pageY-Wt,{left:gt,bottom:ni,right:Ji}=W(),vo=Ji-gt;return Xi>=gt-vo&&Re<=ni+vo}}function Ln(Se){if(r(uo)){let ft=Fi(Se.currentTarget),Wt=j().height,si=Se.pageY-ft;if(Qo(Se)){D(Hi,!1);return}si<40?D(Hi,!0):si>Wt-40?D(Oi,!0):(D(Hi,!1),f()||D(Oi,!1))}}function Er(Se){Ln(Se),r(Wn)||xt(e.uiConfig.controls.hideTimeoutCursor),H()&&Mn&&Jt&&e.store.actions.internal.moveCameraFocusPX(Jt.clientX-Se.clientX,Jt.clientY-Se.clientY,Se.timeStamp-Jt.timeStamp),Jt=Se}let Yn=Se=>{Se.preventDefault(),Se.button===0&&(Mn=!0,e.store.actions.internal.holdCamera()),xt(e.uiConfig.controls.hideTimeoutCursor)},Pr=Se=>{Se.preventDefault(),Se.button===0&&(Jt=Se,Mn=!1,e.store.actions.internal.releaseCamera()),xt(e.uiConfig.controls.hideTimeoutCursor)},pn=Se=>{Se.preventDefault(),An&&(Dt({message:"double click on video"}),Qt(),xt(e.uiConfig.controls.hideTimeoutCursor))},jn=Se=>{var ft;if(Se.preventDefault(),Q()||f()){oi();return}if(!(I()&&!Uo)){if(r(Ir))return kr();if((ft=mt())==null||ft.focus(),!it()){e.firstStart(),xt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ie()!==Ym.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),xt(e.uiConfig.controls.hideTimeoutCursor)}},Zn=Se=>{oi(),Bi.set(!0),xt(e.uiConfig.controls.hideTimeout),Se&&Si(e.uiConfig.controls.hideHotKeyHelpers,Se)},Ur=()=>{var Se,ft;oi(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(ft=e.store.callbacks)==null||ft.onOpenHotKeyMap(Z()):So.update(Wt=>!Wt)},Xn=()=>{Bi.set(!0)},Go=e.store.ui.contextMenu.openedByBtnKeyboard$,fr=e.store.ui.contextMenu.btnRef$,Yo=X(void 0),mr=e.store.ui.contextMenu.openedByHotKey$,zr=e.store.ui.contextMenu.lastActiveElem$;Fe(()=>{Fn.set(r(Di))}),Fe(()=>{D(dr,fe(r(Do)&&ie()!==Ym.PlaybackState.PLAYING)),r(Do)||Ct(()=>D(Do,!0))}),Fe(()=>{yt.set((r(dr)||I()||f()||se()||ce()||Ee()||Me())&&!r(Wn)&&(a()==="video"||a()==="ads")&&!l()&&P())}),Fe(()=>{!se()&&r(Kn)&&!p()&&xt(e.uiConfig.controls.hideTimeoutCursor),Ct(()=>D(Kn,fe(se())))}),Fe(()=>{r(zo),f(),ge(),Ct(()=>sl(r(zo),f(),ge()))}),Fe(()=>{r(Yo),Q(),ae(),Ct(()=>sl(r(Yo),Q(),ae()))}),Fe(()=>{let Se=Pe();Se&&(Q(),Ct(()=>rl(Se,Q(),Go)))}),Fe(()=>{r(Yo),Q(),ne(),Ct(()=>sl(r(Yo),Q(),ne()))}),Fe(()=>{let Se=N();Se&&(Q(),Ct(()=>Wh(Se,Q(),mr)))}),Fe(()=>{var Se;!ue()&&b()&&(Ct(()=>Vt.set(!1)),(Se=mt())==null||Se.focus())}),Fe(()=>{w()&&oi()});let Ar=z("video360");var Mr=F3();kt("blur",Fs,oi);var Xe=pe(Mr);Xe.__mousemove=Er;var Ht=h(Xe);let Li=v(()=>a()==="ads"),jo=v(()=>r(Ir)?kr:void 0);ht(pf(Ht,{toggleFullscreen:Qt,hideContextMenu:oi,showHotKeyHelpers:Zn,showKeyMap:Ur,get isAds(){return r(Li)},get fakePlayButtonHandler(){return r(jo)},get nextButtonActive(){return O()},get prevButtonActive(){return be()},children:(Se,ft)=>{var Wt=O3(),si=pe(Wt);xa(si,{get hideCursor(){return r(pr)},onClick:jn,onContextMenu:mi,onMouseDown:Yn,onMouseUp:Pr,onDblClick:pn,get videoContainer(){return ct()},set videoContainer(gt){ct(gt)}});var Xi=A(si,2);Qs(Xi,()=>"slot",!1,(gt,ni)=>{Te(gt,null,{name:ya})});var Re=A(Xi,2);Ks(Re,_e,gt=>{var ni=D3(),Ji=pe(ni);let vo=v(()=>a()!=="thumb"||l()||Mi&&e.autoplay);_a(Ji,{get hidden(){return r(vo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Wr=A(Ji,2);Gm(Wr,{});var Vi=A(Wr,2);{var Jn=We=>{let di=v(()=>{var Xo;return(Xo=e.live)==null?void 0:Xo.startTime});Od(We,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(di)}})};R(Vi,We=>{a()==="LiveWaitingStart"&&We(Jn)})}var ks=A(Vi,2);{var er=We=>{ba(We,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(ks,We=>{a()==="LiveWaitingRecover"&&We(er)})}var Ca=A(ks,2);{var Sl=We=>{ba(We,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ca,We=>{a()==="LiveWaitingRecord"&&We(Sl)})}var Ta=A(Ca,2);{var Ia=We=>{var di=V3();let Xo;var Ms=h(di);rd(Ms,{get adsSlotId(){return ot()},get adsParams(){return Et()},get adsPreviewParam(){return _t()},get adsAutoplayParam(){return Yt()},get duration(){return Zt()}}),g(di),E(go=>Xo=J(di,1,"ads-container svelte-jtgjmv",null,Xo,go),[()=>({hidden:a()!=="ads"})]),$(We,di)};R(Ta,We=>{e.showAds&&it()&&We(Ia)})}var ka=A(Ta,2);{var Cl=We=>{let di=v(()=>!pt()&&e.showAutoplayNext&&C());df(We,{get title(){return oe()},get thumb(){return Be()},get isHide(){return r(di)},clickCloseIcon:()=>D(un,!0)})};R(ka,We=>{r(ur)&&oe()&&Be()&&We(Cl)})}var Es=A(ka,2);{var Ea=We=>{let di=v(()=>!u());ym(We,{get title(){return e.title},get isHidden(){return r(di)}})};R(Es,We=>{r(cr)&&We(Ea)})}var lt=A(Es,2);{var St=We=>{let di=v(()=>a()==="video"&&u());Bd(We,{get isShifted(){return r(di)}})};R(lt,We=>{H()&&We(St)})}var Yi=A(lt,2);{var Zo=We=>{var di=R3(),Xo=h(di);od(Xo,{"aria-label":Ar}),g(di),$(We,di)};R(Yi,We=>{ze()&&We(Zo)})}var ji=A(Yi,2);{var ci=We=>{Nd(We,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return re()}})};R(ji,We=>{Ee()&&We(ci)})}var Ti=A(ji,2);{var Ps=We=>{ha(We,{get shifted(){return u()},get captions(){return he()},get position(){return ee()},get playerSize(){return j()}})};R(Ti,We=>{K().value!=="off"&&We(Ps)})}var Pa=A(Ti,2);{var Ru=We=>{var di=B3();di.__contextmenu=mi,di.__click=[L3,Q,xo,f,Ot,oi];var Xo=h(di);Dd(Xo,{}),g(di),$(We,di)};R(Pa,We=>{l()&&We(Ru)})}var ec=A(Pa,2);{var Bu=We=>{let di=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Xo=v(()=>a()==="ads"),Ms=v(()=>e.canRewindLive&&He()!==0);Rd(We,{get bottomHidden(){return r(di)},get bottomNoSmooth(){return V()},get showControls(){return u()},get isAds(){return r(Xo)},get canRewindLive(){return r(Ms)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Lt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Nt()},get nextButtonActive(){return O()},get prevButtonActive(){return be()},get isOneVideoPlaylist(){return Qe()},customFullscreenSupported:An,toggleFullscreen:Qt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(nt)},set playerControlsWrapperRef(go){D(nt,fe(go))},get playerControlsRef(){return r(Cn)},set playerControlsRef(go){D(Cn,fe(go))}})};R(ec,We=>{it()&&We(Bu)})}var tc=A(ec,2);{var Nu=We=>{var di=N3(),Xo=h(di);let Ms=v(()=>{var go;return(go=r(Cn))==null?void 0:go.clientHeight});zd(Xo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Ms)},returnFocus:()=>{var go;return(go=mt())==null?void 0:go.focus()},get ref(){return r(zo)},set ref(go){D(zo,fe(go))}}),g(di),$(We,di)};R(tc,We=>{!Ee()&&a()!=="ads"&&We(Nu)})}var ic=A(tc,2);let Du=v(()=>!r(qn));ld(ic,{get isLive(){return Ze()},get isHidden(){return r(Du)},get isPlaying(){return we()},get position(){return ee()},get duration(){return He()}});var As=A(ic,2);hm(As,{data:No});var oc=A(As,2);af(oc,{get supportLink(){return e.supportLink},returnFocus:()=>{var We;return(We=mt())==null?void 0:We.focus()},get visible(){return Q()},get playerContainerRef(){return r(uo)},get controlsContainerRef(){return r(nt)},get position(){return Ve()},get menuElementRef(){return r(Yo)},set menuElementRef(We){D(Yo,fe(We))}});var Tl=A(oc,2);{var nc=We=>{Wd(We,{onClose:qo,onSelectAutoQuality:()=>{Vo("auto"),qo()}})};R(Tl,We=>{r(kn)&&We(nc)})}var rc=A(Tl,2);{var sc=We=>{aa(We,{})};R(rc,We=>{r(po)&&We(sc)})}var Aa=A(rc,2);{var ac=We=>{vf(We,{})};R(Aa,We=>{Ie()&&We(ac)})}var Ou=A(Aa,2);{var lc=We=>{ud(We,{})};R(Ou,We=>{Ue()&&We(lc)})}$(gt,ni)}),$(Se,Wt)},$$slots:{default:!0}}),Se=>mt(Se),()=>mt());var Oo=A(Ht,2);ht(Oo,Se=>D(Di,Se),()=>r(Di)),g(Xe),ht(Xe,Se=>D(uo,Se),()=>r(uo));var Vn=A(Xe,2);{var fn=Se=>{var ft=H3();$(Se,ft)};R(Vn,Se=>{dt()&&Se(fn)})}kt("mouseenter",Xe,Zi),kt("mouseleave",Xe,Gi),kt("click",Xe,Xn,!0),kt("focusin",Xe,mo,!0),$(t,Mr),U(),o()}at(["mousemove","contextmenu","click"]);var Is=require("@vkontakte/videoplayer-core/es2018"),G1=require("@vkontakte/videoplayer-shared/es2018");var z3=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>"),q3={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
|
|
344
|
+
}`};function ov(t,e){O(e,!0),W(t,B3);let[i,o]=De(),n=()=>S(r,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:r},ui:{aboutToGoNextVideo:d},actions:l}=Ie(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:b}}=Ut(),u=0,_=X(null),w=X(!1);Ue(()=>{D(_,ve(n()?Vr:hs))}),Ue(()=>{D(_,ve(a()?Os:null))}),Ue(()=>{if(p)return u=window.setTimeout(()=>{u=0,a()&&s(_)===Os&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D(_,null)},s(_)!==Os?f:b),()=>{u&&(window.clearTimeout(u),u=0)}}),Ue(()=>{n()&&!s(w)&&(D(w,!0),D(_,null))});var y=He(),C=he(y);{var T=I=>{var M=He(),P=he(M);ia(P,()=>s(_),E=>{var R=R3(),z=h(R),q=h(z);let U=v(()=>a()==="prev");yi(q,()=>s(_),(Y,se)=>{se(Y,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return s(U)}})}),g(z),g(R),k(()=>at(z,`animation-duration: ${s(_)!==Os?f:b}ms`)),$(E,R)}),$(I,M)};V(C,I=>{s(_)&&p&&I(T)})}$(t,y),H(),o()}var N3=L('<div><div data-testid="video-container"></div></div>'),D3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
|
|
345
|
+
.video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Ma(t,e){O(e,!0),W(t,D3);let[i,o]=De(),n=()=>S(f,"$rotateAlpha",i),a=()=>S(b,"$playerSize",i),r=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),l=m(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:b},state:{isPlaying$:u}}=Ie(),{isSmoothVideoRotate:_}=Ut(),w=v(()=>l()&&n()%180?a().height/a().width:1);var y=N3();let C;y.__contextmenu=function(...I){var M;(M=e.onContextMenu)==null||M.apply(this,I)},y.__mousedown=function(...I){var M;(M=e.onMouseDown)==null||M.apply(this,I)},y.__mouseup=function(...I){var M;(M=e.onMouseUp)==null||M.apply(this,I)},y.__click=function(...I){var M;(M=e.onClick)==null||M.apply(this,I)},y.__dblclick=function(...I){var M;(M=e.onDblClick)==null||M.apply(this,I)};var T=h(y);J(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!_}),it(T,I=>l(I),()=>l()),g(y),k(I=>{C=J(y,1,"video-wrapper svelte-1czns9r",null,C,I),at(T,`transform: rotate(${n()}deg) scale(${s(w)})`),Ne(T,"data-is-playing",d())},[()=>({hidden:r()!=="video",nocursor:e.hideCursor})]),$(t,y),H(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var O3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},H3=L("<div><!></div>"),F3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),U3=L("<div><!></div>"),z3=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),W3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),q3=L("<!> <!> <!>",1),K3=L('<div class="blocked svelte-jtgjmv"></div>'),Q3=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),G3={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function rv(t,e){O(e,!0),W(t,G3);let[i,o]=De(),n=()=>S(Bn,"$notificationsToShow$",i),a=()=>S(Gi,"$playerPhase",i),r=()=>S(Qt,"$isLoaderVisible",i),d=()=>S(qt,"$adPlaybackState",i),l=()=>S(Vt,"$crashed",i),p=()=>S(Do,"$isInteractiveTime$",i),f=()=>S(nt,"$settingsMenuVisible",i),b=()=>S(kn,"$isInteractiveExpectation$",i),u=()=>S(Yi,"$controlsVisible",i),_=()=>S(Ci,"$touched",i),w=()=>S(Mn,"$graphIsOpened$",i),y=()=>S(Oi,"$isFullscreen",i),C=()=>S(Br,"$autoplayNextEnabled$",i),T=()=>S(ci,"$postrollPassed",i),I=()=>S(ui,"$isEnded$",i),M=()=>S(Bi,"$cursorInside",i),P=()=>S(Jn,"$isControlsAvailable",i),E=()=>S(An,"$fakeIsPlaying$",i),R=()=>S(jt,"$bottomNoSmooth",i),z=()=>S(To,"$interactiveTimeIndicator",i),q=()=>S(No,"$playerSize",i),U=()=>S(bi,"$is3DVideo",i),Y=()=>S(Co,"$contextMenuVisible$",i),se=()=>S(wi,"$playbackState$",i),Q=()=>S(Oo,"$hotKeyMapData",i),de=()=>S(di,"$scrubbingInProgress",i),le=()=>S(Si,"$volumeChangingInProgress",i),Me=()=>S(Mi,"$chromecastConnected$",i),Be=()=>S(Nn,"$controlsTimeoutActive",i),ge=()=>S(yt,"$settingsMenuOpenedByKeyboard",i),ce=()=>S(Ko,"$contextMenuOpenedByKeyboard$",i),Ae=()=>S(nn,"$contextMenuButtonRef$",i),ae=()=>S(yr,"$contextMenuOpenedByHotKey$",i),N=()=>S(Hr,"$contextMenuLastActiveElem$",i),Ye=()=>S(po,"$isFullscreenOpenedByKeyboard",i),ee=()=>S(_t,"$language$",i),We=()=>S(ht,"$icon3DVideoVisible",i),ne=()=>S(si,"$chromecastDeviceName$",i),me=()=>S(Xn,"$currentSubtitle$",i),$e=()=>S(Li,"$currentSubtitleCaptions$",i),Z=()=>S(Ze,"$position$",i),ze=()=>S(Jt,"$duration$",i),et=()=>S(ft,"$isLive$",i),Ce=()=>S(tt,"$isPlaying$",i),ie=()=>S(Zo,"$contextMenuPosition$",i),Ee=()=>S(Pn,"$showHotKeyMap",i),qe=()=>S(G,"$debugPanelVisible",i),rt=()=>S(vr,"$userActionsDisabled$",i),ct=m(e,"videoContainer",15),st=m(e,"adsSlotId",3,void 0),Tt=m(e,"adsParams",3,void 0),pt=m(e,"adsPreviewParam",3,void 0),Yt=m(e,"adsAutoplayParam",3,void 0),ni=m(e,"duration",3,void 0),Ft=m(e,"logoTargetUrl",3,""),Pt=m(e,"showNextPrevButtons",3,!1),te=m(e,"nextButtonActive",3,!1),Lt=m(e,"prevButtonActive",3,!1),j=m(e,"endScreenVideoTitle",3,void 0),pe=m(e,"endScreenVideoThumb",3,void 0),Pe=m(e,"isOneVideoPlaylist",3,!1),Re=m(e,"shadowRootContainer",3,void 0),fe=m(e,"outerContainerRef",3,void 0),Ke=m(e,"playerStarted",3,!1),ot=m(e,"fullScreenTarget",3,void 0),Xe=m(e,"showMiniTimer",3,!1),wt=m(e,"showEndScreen",3,!0),gt=m(e,"keyboardControls",15),Kt=e.store.getLogger().createComponentLog("Root component"),_t=e.store.interfaceLanguage$,wi=e.store.state.playbackState$,qt=e.store.ads.playbackState,Ze=e.store.state.positionWithScrubbing$,Jt=e.store.state.duration$,Gi=e.store.playerPhase,Oi=e.store.ui.isFullscreen,po=e.store.ui.isFullscreenOpenedByKeyboard,Yi=e.store.ui.controlsVisible,nt=e.store.ui.settingsMenu.visible$,yt=e.store.ui.settingsMenu.openedByBtnKeyboard$,di=e.store.ui.scrubbingInProgress,Si=e.store.ui.volumeChangingInProgress,Co=e.store.ui.contextMenu.visible$,G=e.store.ui.debugPanelVisible,Qt=e.store.state.isLoaderVisible,ui=e.store.state.isEnded$,Mi=e.store.state.chromecastConnected$,si=e.store.state.chromecastDeviceName$,ci=e.store.ads.postrollPassed,ft=e.store.state.isLive$,tt=e.store.state.isPlaying$,Vt=e.store.state.crashed$,fo=e.store.webApi.annotationsApi,ei=e.store.webApi.pictureInPictureApi,Xn=e.store.state.currentSubtitle$,Li=e.store.state.currentSubtitleCaptions$,No=e.store.ui.playerSize,bi=e.store.ui.is3DVideo,ht=e.store.ui.icon3DVideoVisible,Vi=e.store.state.isInteractive,Do=e.store.state.isInteractiveTime$,kn=e.store.state.isInteractiveExpectation$,ai=e.store.state.hasInteractiveBranches,Ci=e.store.ui.touched,Oo=e.store.ui.modals.hotKeyMap.data,Pn=e.store.ui.modals.hotKeyMap.show,Ho=e.store.ui.overlayContainer$,To=e.store.ui.controls.interactiveTimeIndicator,hn=e.store.state.showInteractiveTimeIndicator,Zo=e.store.ui.contextMenu.position$,mo=e.store.actions.internal.setQuality,Io=e.store.actions.internal.closeSettingsMenu,Br=e.store.ui.autoplayNextEnabled$,vr=e.store.ui.userActionsDisabled,Jn=e.store.ui.isControlsAvailable,er=e.store.ui.videoTitleInfo,tr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:An,notifications$:es,graphIsOpened$:Mn}=co(),Ri=X(void 0),Ln=X(void 0),Xo=X(void 0),Jo=X(void 0),Vn,Rn,Fo;Oo.set(Yh());let{closeNotification:Nr,notificationsToShow$:Bn}=es,ir=v(()=>!!n().slow_video),Hi=()=>Nr("slow_video"),Eo=v(()=>(a()==="video"&&r()||a()==="ads"&&d()==="inactive")&&!l()),lt=X(void 0),jt=re(!1),gr,Nn=re(!1),_n=re(),Bi=re(!1),Dn=X(!1),ko=X(!1),On=X(!1),Po=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Hn=v(()=>p()&&!f()&&!(s(Dn)||s(ko))&&!(s(On)&&!b())),Fn=!0,or=v(()=>e.uiConfig.features.thumbTimer&&Xe()&&a()==="video"&&!u()&&!l()&&!Vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),hr=v(()=>a()==="video"&&!w()&&y()),nr=X(!1),Uo=v(()=>(wt()||e.showAutoplayNext&&C())&&!!j()&&!!pe()&&(e.showAds&&T()||!e.showAds)&&I()&&!l()&&!s(nr)),Dr=v(()=>M()&&!(u()||s(Uo))&&!p()&&P()),rr=X(!1),_r=v(()=>E()!==null),{toggle:en}=An,Gt=!1,vo=null;ei==null||ei.setContext(Zl());let Ao=()=>{e.autoplay&&!Vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ti(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Ao});let sr=()=>{window.clearTimeout(Vn),Nn.set(!1)},br=()=>{window.clearTimeout(Rn),_n.set(null)},Ti=Te=>{sr(),Nn.set(!0),Vn=window.setTimeout(()=>Nn.set(!1),Te);let ye=Te-100;gr=window.setTimeout(()=>{R()&&jt.set(!1)},ye>0?ye:Te)},ts=(Te,ye)=>{br(),_n.set(ye),Rn=window.setTimeout(()=>_n.set(null),Te)},Or=bi.subscribe(Te=>{ht.set(Te),Te&&(window.clearTimeout(Fo),Fo=window.setTimeout(()=>ht.set(!1),e.uiConfig.controls.hide360IconTimeout))}),$r=async()=>{var ye,St,zt,Ii;let Te=As();if(Te){let _i=pd(),Fe=zo();Te=_i===Fe||_i===Re()}if(Te){Ti(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ei==null?void 0:ei.remove())}catch(_i){Kt({message:String(_i)})}}Oi.set(Te),e.store.getAdmanWrapper().setFullscreen(Te),y()?(St=(ye=e.store.callbacks)==null?void 0:ye.onFullscreenEnter)==null||St.call(ye):(Ii=(zt=e.store.callbacks)==null?void 0:zt.onFullscreenExit)==null||Ii.call(zt)},bt=Te=>{let{width:ye,height:St}=Te.target;No.set({width:ye,height:St})},Zt=()=>{let{width:Te,height:ye}=s(Ri).getBoundingClientRect();No.set({width:Te,height:ye})};Nt(()=>{var ye;return Jc($r),e.uiConfig.features.annotationsInside&&(fo==null||fo.init(s(Ri))),pa(ei)&&(ei==null||ei.assignPlayerContainer(s(Ri)),ei==null||ei.registryExternalEventHandlers({resize:bt,leavepictureinpicture:Zt})),e.interactiveContainer&&((ye=ct().parentElement)==null||ye.insertBefore(e.interactiveContainer,ct().nextSibling)),()=>{window.clearTimeout(Vn),window.clearTimeout(gr),window.clearTimeout(Rn),window.clearTimeout(Fo),Or(),ei==null||ei.dispose().catch(St=>{Kt({message:String(St)})}),eu($r)}});let zo=()=>{let Te=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!fe()?s(Ri):fe(),ye=Te.getRootNode(),St=ye instanceof ShadowRoot?ye.host:ye,zt=ot()instanceof HTMLElement&&ot().contains(St);return e.uiConfig.allowChangingFullscreenTarget&&ot()&&zt?ot():Te},go=async()=>{As()?(await Xc(document),Kt({message:"exit fullscreen"})):(Kt({message:"request fullscreen"}),await Zc(zo()))},Xi=()=>{Io(),Co.set(!1)},tn=Te=>{w()||(Te.preventDefault(),Co.set(!0),Zo.set({left:Te.clientX,top:Te.clientY}))};function Un(){Bi.set(!0),Vi||Ti(e.uiConfig.controls.hideTimeoutCursor)}function ho(){Vi||(jt.set(!0),Ti(e.uiConfig.controls.hideTimeoutCursor))}function bn(){Bi.set(!1),D(ko,!1),D(Dn,!1),Gt=!1,e.store.actions.internal.releaseCamera(),Ti(e.uiConfig.controls.hideTimeout)}function on(Te){return Te?Te.offsetTop+on(Te.offsetParent):0}function Je(Te){return Te?Te.offsetLeft+Je(Te.offsetParent):0}function Rt(Te){if(z()&&hn){let ye=Te.currentTarget,St=on(ye),zt=Je(ye),Ii=Te.pageX-zt,_i=Te.pageY-St,{left:Fe,bottom:It,right:ti}=z(),rn=ti-Fe;return Ii>=Fe-rn&&_i<=It+rn}}function gi(Te){if(s(Ri)){let ye=on(Te.currentTarget),St=q().height,zt=Te.pageY-ye;if(Rt(Te)){D(ko,!1);return}zt<40?D(ko,!0):zt>St-40?D(Dn,!0):(D(ko,!1),f()||D(Dn,!1))}}function _o(Te){gi(Te),s(Hn)||Ti(e.uiConfig.controls.hideTimeoutCursor),U()&&Gt&&vo&&e.store.actions.internal.moveCameraFocusPX(vo.clientX-Te.clientX,vo.clientY-Te.clientY,Te.timeStamp-vo.timeStamp),vo=Te}let Ji=Te=>{Te.preventDefault(),Te.button===0&&(Gt=!0,e.store.actions.internal.holdCamera()),Ti(e.uiConfig.controls.hideTimeoutCursor)},Wo=Te=>{Te.preventDefault(),Te.button===0&&(vo=Te,Gt=!1,e.store.actions.internal.releaseCamera()),Ti(e.uiConfig.controls.hideTimeoutCursor)},ji=Te=>{Te.preventDefault(),Fn&&(Kt({message:"double click on video"}),go(),Ti(e.uiConfig.controls.hideTimeoutCursor))},qo=Te=>{var ye;if(Te.preventDefault(),Y()||f()){Xi();return}if(!(I()&&!ai)){if(s(_r))return en();if((ye=gt())==null||ye.focus(),!Ke()){e.firstStart(),Ti(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||se()!==nv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ti(e.uiConfig.controls.hideTimeoutCursor)}},Mo=Te=>{Xi(),Ci.set(!0),Ti(e.uiConfig.controls.hideTimeout),Te&&ts(e.uiConfig.controls.hideHotKeyHelpers,Te)},Fi=()=>{var Te,ye;Xi(),(Te=e.store.callbacks)!=null&&Te.onOpenHotKeyMap?(ye=e.store.callbacks)==null||ye.onOpenHotKeyMap(Q()):Pn.update(St=>!St)},hi=()=>{Ci.set(!0)},Ko=e.store.ui.contextMenu.openedByBtnKeyboard$,nn=e.store.ui.contextMenu.btnRef$,Ui=X(void 0),yr=e.store.ui.contextMenu.openedByHotKey$,Hr=e.store.ui.contextMenu.lastActiveElem$;Ue(()=>{Ho.set(s(lt))}),Ue(()=>{D(On,ve(s(Po)&&se()!==nv.PlaybackState.PLAYING)),s(Po)||Ct(()=>D(Po,!0))}),Ue(()=>{Yi.set((s(On)||I()||f()||de()||le()||Me()||Be())&&!s(Hn)&&(a()==="video"||a()==="ads")&&!l()&&P())}),Ue(()=>{!de()&&s(rr)&&!p()&&Ti(e.uiConfig.controls.hideTimeoutCursor),Ct(()=>D(rr,ve(de())))}),Ue(()=>{s(Jo),f(),ge(),Ct(()=>cl(s(Jo),f(),ge()))}),Ue(()=>{s(Ui),Y(),ce(),Ct(()=>cl(s(Ui),Y(),ce()))}),Ue(()=>{let Te=Ae();Te&&(Y(),Ct(()=>dl(Te,Y(),Ko)))}),Ue(()=>{s(Ui),Y(),ae(),Ct(()=>cl(s(Ui),Y(),ae()))}),Ue(()=>{let Te=N();Te&&(Y(),Ct(()=>Jh(Te,Y(),yr)))}),Ue(()=>{var Te;!Ye()&&y()&&(Ct(()=>po.set(!1)),(Te=gt())==null||Te.focus())}),Ue(()=>{w()&&Xi()});let Fr=F("video360"),$n=X(void 0),zn=Te=>{er.set(Lr(tr(),{title:s($n)},"title",Te))};var Ur=Q3();Et("blur",Zs,Xi);var eo=he(Ur);eo.__mousemove=_o;var Qo=h(eo);let Wn=v(()=>a()==="ads"),ar=v(()=>s(_r)?en:void 0);it(bf(Qo,{toggleFullscreen:go,hideContextMenu:Xi,showHotKeyHelpers:Mo,showKeyMap:Fi,get isAds(){return s(Wn)},get fakePlayButtonHandler(){return s(ar)},get nextButtonActive(){return te()},get prevButtonActive(){return Lt()},children:(Te,ye)=>{var St=q3(),zt=he(St);Ma(zt,{get hideCursor(){return s(Dr)},onClick:qo,onContextMenu:tn,onMouseDown:Ji,onMouseUp:Wo,onDblClick:ji,get videoContainer(){return ct()},set videoContainer(Fe){ct(Fe)}});var Ii=A(zt,2);oa(Ii,()=>"slot",!1,(Fe,It)=>{ke(Fe,null,{name:Aa})});var _i=A(Ii,2);ia(_i,ee,Fe=>{var It=W3(),ti=he(It);let rn=v(()=>a()!=="thumb"||l()||Vi&&e.autoplay);Ea(ti,{get hidden(){return s(rn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var yn=A(ti,2);ov(yn,{});var to=A(yn,2);{var Wr=Qe=>{let ii=v(()=>{var Lo;return(Lo=e.live)==null?void 0:Lo.startTime});Kd(Qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(ii)}})};V(to,Qe=>{a()==="LiveWaitingStart"&&Qe(Wr)})}var xr=A(to,2);{var Zi=Qe=>{ka(Qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(xr,Qe=>{a()==="LiveWaitingRecover"&&Qe(Zi)})}var Ei=A(xr,2);{var xn=Qe=>{ka(Qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Ei,Qe=>{a()==="LiveWaitingRecord"&&Qe(xn)})}var qn=A(Ei,2);{var wr=Qe=>{var ii=H3();let Lo;var ys=h(ii);fd(ys,{get adsSlotId(){return st()},get adsParams(){return Tt()},get adsPreviewParam(){return pt()},get adsAutoplayParam(){return Yt()},get duration(){return ni()}}),g(ii),k(sn=>Lo=J(ii,1,"ads-container svelte-jtgjmv",null,Lo,sn),[()=>({hidden:a()!=="ads"})]),$(Qe,ii)};V(qn,Qe=>{e.showAds&&Ke()&&Qe(wr)})}var bo=A(qn,2);{var dr=Qe=>{let ii=v(()=>!wt()&&e.showAutoplayNext&&C());gf(Qe,{get title(){return j()},get thumb(){return pe()},get isHide(){return s(ii)},clickCloseIcon:()=>D(nr,!0)})};V(bo,Qe=>{s(Uo)&&j()&&pe()&&Qe(dr)})}var Us=A(bo,2);{var xt=Qe=>{let ii=v(()=>!u());Pm(Qe,{get title(){return e.title},get isHidden(){return s(ii)},onVisibilityChanged:zn,get ref(){return s($n)},set ref(Lo){D($n,ve(Lo))}})};V(Us,Qe=>{s(hr)&&Qe(xt)})}var $t=A(Us,2);{var io=Qe=>{let ii=v(()=>a()==="video"&&u());zd(Qe,{get isShifted(){return s(ii)}})};V($t,Qe=>{U()&&Qe(io)})}var Go=A($t,2);{var oo=Qe=>{var ii=F3(),Lo=h(ii);ud(Lo,{"aria-label":Fr}),g(ii),$(Qe,ii)};V(Go,Qe=>{We()&&Qe(oo)})}var ri=A(Go,2);{var Ni=Qe=>{Wd(Qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()}})};V(ri,Qe=>{Me()&&Qe(Ni)})}var $s=A(ri,2);{var kl=Qe=>{Ia(Qe,{get shifted(){return u()},get captions(){return $e()},get position(){return Z()},get playerSize(){return q()}})};V($s,Qe=>{me().value!=="off"&&Qe(kl)})}var dc=A($s,2);{var Fu=Qe=>{var ii=U3();ii.__contextmenu=tn,ii.__click=[O3,Y,Co,f,nt,Xi];var Lo=h(ii);qd(Lo,{}),g(ii),$(Qe,ii)};V(dc,Qe=>{l()&&Qe(Fu)})}var cc=A(dc,2);{var Uu=Qe=>{let ii=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Lo=v(()=>a()==="ads"),ys=v(()=>e.canRewindLive&&ze()!==0);Ud(Qe,{get bottomHidden(){return s(ii)},get bottomNoSmooth(){return R()},get showControls(){return u()},get isAds(){return s(Lo)},get canRewindLive(){return s(ys)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ft()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Pt()},get nextButtonActive(){return te()},get prevButtonActive(){return Lt()},get isOneVideoPlaylist(){return Pe()},customFullscreenSupported:Fn,toggleFullscreen:go,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(Ln)},set playerControlsWrapperRef(sn){D(Ln,ve(sn))},get playerControlsRef(){return s(Xo)},set playerControlsRef(sn){D(Xo,ve(sn))}})};V(cc,Qe=>{Ke()&&Qe(Uu)})}var uc=A(cc,2);{var Ra=Qe=>{var ii=z3(),Lo=h(ii);let ys=v(()=>{var sn;return(sn=s(Xo))==null?void 0:sn.clientHeight});jd(Lo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(ys)},returnFocus:()=>{var sn;return(sn=gt())==null?void 0:sn.focus()},get ref(){return s(Jo)},set ref(sn){D(Jo,ve(sn))}}),g(ii),$(Qe,ii)};V(uc,Qe=>{!Me()&&a()!=="ads"&&Qe(Ra)})}var pc=A(uc,2);let fc=v(()=>!s(or));gd(pc,{get isLive(){return et()},get isHidden(){return s(fc)},get isPlaying(){return Ce()},get position(){return Z()},get duration(){return ze()}});var Pl=A(pc,2);Tm(Pl,{data:_n});var mc=A(Pl,2);mf(mc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Qe;return(Qe=gt())==null?void 0:Qe.focus()},get visible(){return Y()},get playerContainerRef(){return s(Ri)},get controlsContainerRef(){return s(Ln)},get position(){return ie()},get menuElementRef(){return s(Ui)},set menuElementRef(Qe){D(Ui,ve(Qe))}});var Al=A(mc,2);{var Ml=Qe=>{Zd(Qe,{onClose:Hi,onSelectAutoQuality:()=>{mo("auto"),Hi()}})};V(Al,Qe=>{s(ir)&&Qe(Ml)})}var Ll=A(Al,2);{var zu=Qe=>{ha(Qe,{})};V(Ll,Qe=>{s(Eo)&&Qe(zu)})}var Vl=A(Ll,2);{var Wu=Qe=>{xf(Qe,{})};V(Vl,Qe=>{Ee()&&Qe(Wu)})}var qu=A(Vl,2);{var Ku=Qe=>{bd(Qe,{})};V(qu,Qe=>{qe()&&Qe(Ku)})}$(Fe,It)}),$(Te,St)},$$slots:{default:!0}}),Te=>gt(Te),()=>gt());var lr=A(Qo,2);it(lr,Te=>D(lt,Te),()=>s(lt)),g(eo),it(eo,Te=>D(Ri,Te),()=>s(Ri));var zr=A(eo,2);{var is=Te=>{var ye=K3();$(Te,ye)};V(zr,Te=>{rt()&&Te(is)})}Et("mouseenter",eo,Un),Et("mouseleave",eo,bn),Et("click",eo,hi,!0),Et("focusin",eo,ho,!0),$(t,Ur),H(),o()}dt(["mousemove","contextmenu","click"]);var Fs=require("@vkontakte/videoplayer-core/es2018"),e0=require("@vkontakte/videoplayer-shared/es2018");var Y3=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),j3=L("<div><!></div>"),Z3={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
|
|
345
346
|
animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
|
|
346
347
|
.triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
|
|
347
348
|
.triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
|
|
@@ -357,7 +358,7 @@ Try switching the\xA0quality to\xA0Auto.`},Vh=A_;var is=new Map;is.set(el.Interf
|
|
|
357
358
|
100% {
|
|
358
359
|
opacity: 0;
|
|
359
360
|
}
|
|
360
|
-
}.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function $u(t,e){F(e,!0),q(t,q3);let i=m(e,"seekStep",3,0),o=X(!1),n=0,a=0,s=X(fe(i())),d=y=>{y.stopPropagation(),a+=1,D(s,i()*(a-1)),a===1?e.handleSingleFirstClick(y):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};_n(()=>{window.clearTimeout(n)});var l=W3();l.__click=d;var p=h(l);{var f=y=>{var u=z3(),_=pe(u),w=A(_,2),b=h(w),C=h(b),T=A(C,2),I=A(T,2);g(b);var M=A(b,2),P=h(M,!0);g(M),g(w),E(k=>{var V,W,j,H;J(_,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),J(C,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(j=e.side)!=null?j:""}`,"svelte-nhq2ld"),J(I,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),me(P,k)},[()=>z("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),$(y,u)};R(p,y=>{r(o)&&y(f)})}g(l),E(()=>{var y;return J(l,1,`double-click-area ${(y=e.side)!=null?y:""}`,"svelte-nhq2ld")}),$(t,l),U()}at(["click"]);var K3=(t,e,i)=>{e(!1),i()},Q3=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),G3={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Zm(t,e){F(e,!0),q(t,G3);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,y=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},b=()=>{e.clickCloseIcon(),_()};qt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var C=Oe(),T=pe(C);{var I=M=>{var P=Q3(),k=A(pe(P),2),V=h(k),W=h(V),j=h(W,!0);g(W);var H=A(W,2);sa(H,{onClick:b}),g(V);var Q=A(V,2);Q.__click=[K3,p,y];var ie=h(Q),Z=h(ie),se=h(Z);let ce;var Ee=A(se,2);{var Me=ne=>{pd(ne,{get isRunning(){return a()},onTimerEnded:w})};R(Ee,ne=>{n()&&ne(Me)})}g(Z),g(ie);var ge=A(ie,2),ae=h(ge),Pe=h(ae,!0);g(ae),g(ge),g(Q),g(k),E((ne,N)=>{me(j,ne),st(Z,`background-image: url('${e.thumb}')`),ce=J(se,1,"thumb-overlay svelte-1qdxi6t",null,ce,N),me(Pe,e.title)},[()=>n()?z("end_screen_next_video"):z("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(M,P)};R(T,M=>{e.isHide||M(I)})}$(t,C),U(),o()}at(["click"]);var z1=require("@vkontakte/videoplayer-core/es2018");var W1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;qt(()=>{z1.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let s=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",s),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",s),a.removeEventListener("webkitendfullscreen",d)}},0))}),_n(()=>{i==null||i(),clearTimeout(o)})};var q1=require("@vkontakte/videoplayer-core/es2018");var yu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var K1=require("@vkontakte/videoplayer-core/es2018"),Q1=({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=()=>K1.clientChecker.device.isIOS&&xe(s)===q1.VideoFormat.DASH_LIVE_CMAF,y=()=>{l==null||l(),l=null},u=_=>{if(y(),!f()||!_)return;let w=p();if(!w)return;let b=new yu(w),C=xe(d),T=xe(a),I=xe(n);for(let k of C)T.some(W=>W.value===k.id)&&b.attach(k,I.value===k.id);let M=d.subscribe(k=>{for(let V of k)b.updateSrc(V)}),P=()=>{let k=b.getCurrentShowingId();o(xe(a).find(V=>V.value===k))};w.textTracks.addEventListener("change",P),l=()=>{M(),b.detachAll(),w.textTracks.removeEventListener("change",P)}};qt(()=>i.subscribe(u)),_n(y)};var Y3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},j3=L("<!> <!>",1),Z3=L("<div><!></div>"),X3=L('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),J3=L("<div><!></div>"),ex=L('<div class="settings-mobile svelte-7yl31d"><!></div>'),tx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ix=L('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),ox={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Xm(t,e){var Io,ko;F(e,!0),q(t,ox);let[i,o]=De(),n=()=>S(mt,"$playerPhase",i),a=()=>S(yt,"$isLoaderVisible",i),s=()=>S(Je,"$adPlaybackState",i),d=()=>S(vt,"$crashed",i),l=()=>S(zo,"$notificationsToShow$",i),p=()=>S(it,"$playbackState$",i),f=()=>S(Qe,"$graphIsOpened$",i),y=()=>S($i,"$interactiveHideMobileControls",i),u=()=>S(Ot,"$isEnded$",i),_=()=>S(Lo,"$isInteractiveExpectation$",i),w=()=>S(Ge,"$controlsVisible",i),b=()=>S(Bi,"$touched",i),C=()=>S(So,"$autoplayNextEnabled$",i),T=()=>S($n,"$postrollPassed",i),I=()=>S(Ro,"$bottomNoSmooth",i),M=()=>S(Rt,"$videoSize",i),P=()=>S(co,"$playerSize",i),k=()=>S(Dt,"$isFullscreen",i),V=()=>S($t,"$position$",i),W=()=>S(pt,"$duration$",i),j=()=>S(Fn,"$loadedMetadata",i),H=()=>S(tt,"$settingsMenuVisible",i),Q=()=>S(Pi,"$scrubbingInProgress",i),ie=()=>S(Qi,"$volumeChangingInProgress",i),Z=()=>S(ao,"$chromecastConnected$",i),se=()=>S(ri,"$isControlsAvailable",i),ce=()=>S(Mi,"$isInteractiveTime$",i),Ee=()=>S(Ai,"$isActiveLive",i),Me=()=>S(jt,"$settingsMenuOpenedByKeyboard",i),ge=()=>S(Le,"$language$",i),ae=()=>S(Uo,"$disabledControls$",i),Pe=()=>S(Mo,"$is3DVideo",i),ne=()=>S(li,"$icon3DVideoVisible",i),N=()=>S(cn,"$chromecastDeviceName$",i),ue=()=>S(lo,"$currentSubtitle$",i),_e=()=>S(ti,"$currentSubtitleCaptions$",i),ze=()=>S(sr,"$realDuration$",i),re=()=>S(Xt,"$isLive$",i),K=()=>S(bi,"$isPlaying$",i),he=()=>S(Vt,"$debugPanelVisible",i),ee=m(e,"videoContainer",15),He=m(e,"adsSlotId",3,void 0),Ze=m(e,"adsParams",3,void 0),we=m(e,"adsPreviewParam",3,void 0),Ve=m(e,"adsAutoplayParam",3,void 0),Ie=m(e,"duration",3,void 0),Ue=m(e,"logoTargetUrl",3,""),dt=m(e,"showNextPrevButtons",3,!1),ct=m(e,"nextButtonActive",3,!1),ot=m(e,"prevButtonActive",3,!1),Et=m(e,"endScreenVideoTitle",3,void 0),_t=m(e,"endScreenVideoThumb",3,void 0),Yt=m(e,"isOneVideoPlaylist",3,!1),Zt=m(e,"shadowRootContainer",3,void 0),Lt=m(e,"outerContainerRef",3,void 0),Nt=m(e,"showMiniTimer",3,!1),O=m(e,"fullScreenTarget",3,void 0),be=m(e,"playerStarted",3,!1),oe=m(e,"showEndScreen",3,!0),{notifications$:Be,graphIsOpened$:Qe}=ro(),je=e.store.getLogger().createComponentLog("Root component"),Le=e.store.interfaceLanguage$,it=e.store.state.playbackState$,Je=e.store.ads.playbackState,$t=e.store.state.positionWithScrubbing$,pt=e.store.state.duration$,mt=e.store.playerPhase,Dt=e.store.ui.isFullscreen,Ge=e.store.ui.controlsVisible,ri=e.store.ui.isControlsAvailable,$i=e.store.ui.interactiveHideMobileControls,tt=e.store.ui.settingsMenu.visible$,jt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Pi=e.store.ui.scrubbingInProgress,Qi=e.store.ui.volumeChangingInProgress,Vt=e.store.ui.debugPanelVisible,yt=e.store.state.isLoaderVisible,Ot=e.store.state.isEnded$,ao=e.store.state.chromecastConnected$,cn=e.store.state.chromecastDeviceName$,$n=e.store.ads.postrollPassed,xo=e.store.ui.mobileUnmuteButtonExpanded,G=e.store.ui.mobileUnmuteButtonVisible,Xt=e.store.state.isLive$,bi=e.store.state.isPlaying$,Ai=e.store.state.isActiveLive$,ai=e.store.state.isRewindableLive$,vt=e.store.state.crashed$,fi=e.store.webApi.annotationsApi,et=e.store.webApi.pictureInPictureApi,Rt=e.store.state.videoSize$,lo=e.store.state.currentSubtitle$,ti=e.store.state.currentSubtitleCaptions$,sr=e.store.state.duration$,co=e.store.ui.playerSize,Mo=e.store.ui.is3DVideo,li=e.store.ui.icon3DVideoVisible,Tt=e.store.state.isInteractive,Mi=e.store.state.isInteractiveTime$,Lo=e.store.state.isInteractiveExpectation$,pi=e.store.state.hasInteractiveBranches,Uo=e.store.ui.controls.disabledControls$,Bi=e.store.ui.touched,wo=e.store.ui.overlayContainer$,So=e.store.ui.autoplayNextEnabled$,Fn=e.store.state.loadedMetadata$,Ni=e.store.actions.internal.closeSettingsMenu,yn=(Io=e.store.callbacks)==null?void 0:Io.onDisabledPlayPrevChapterClick,Co=(ko=e.store.callbacks)==null?void 0:ko.onDisabledSeekToInteractiveClick,Vo=e.store.actions.internal.setQuality,xn=X(void 0),Tr=X(void 0),ar=X(void 0),Un=X(void 0),wn,Sn,zn,uo=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),nt=X(void 0),{closeNotification:Cn,notificationsToShow$:zo}=Be,Tn=v(()=>!!l().slow_video),In=()=>Cn("slow_video"),Ro=le(!1),lr,Wo=X(!1),kn=v(()=>p()!==Is.PlaybackState.PLAYING),qo=X(!1),po=v(()=>f()||y()||!r(Wo)&&(u()&&!!pi||r(kn)&&_())),Di=X(!0),En=v(()=>e.uiConfig.features.thumbTimer&&Nt()&&n()==="video"&&!w()&&!d()&&!Tt&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),Bo=X(!1),Ko=v(()=>(oe()||e.showAutoplayNext&&C())&&!!Et()&&!!_t()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(Bo)),No=X(!1);et==null||et.setContext(zl());let Pn=ut=>{clearTimeout(Sn),ut&&(G.set(!0),xo.set(!0),Sn=setTimeout(()=>{xo.set(!1)},e.uiConfig.controls.collapseMobileUnmute),Tt||Hi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Pn});let Oi=()=>{clearTimeout(wn),D(Wo,!1),y()&&$i.set(!1)},Hi=ut=>{Oi(),D(Wo,!0),wn=setTimeout(()=>D(Wo,!1),ut);let Qt=ut-100;lr=setTimeout(()=>{I()&&Ro.set(!1)},Qt>0?Qt:ut)},dr=Mo.subscribe(ut=>{li.set(ut),ut&&(clearTimeout(zn),zn=setTimeout(()=>li.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Do=async(ut=hs())=>{var Qt,oi,mi,Zi,mo,Gi;if(ut&&!Is.clientChecker.device.isIOS){let Fi=nd(),Ci=un(),Qo=Is.clientChecker.browser.isSamsungBrowser&&Fi===Zt();ut=Fi===Ci||Qo}if(ut){Hi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(et==null?void 0:et.remove())}catch(Fi){je({message:String(Fi)})}try{let Fi=(Qt=M())!=null&&Qt.width&&((oi=M())!=null&&oi.height)?M():P();await Oh(Fi)}catch(Fi){je({message:String(Fi)})}}Dt.set(ut),e.store.getAdmanWrapper().setFullscreen(ut),k()?(Zi=(mi=e.store.callbacks)==null?void 0:mi.onFullscreenEnter)==null||Zi.call(mi):(Gi=(mo=e.store.callbacks)==null?void 0:mo.onFullscreenExit)==null||Gi.call(mo)},Wn=ut=>{let Qt=ut;co.set({width:Qt.target.width,height:Qt.target.height})};qt(()=>{var ut;return Qc(Do),e.uiConfig.features.annotationsInside&&(fi==null||fi.init(r(xn))),ia(et)&&(et==null||et.assignPlayerContainer(r(xn)),et==null||et.registryExternalEventHandlers({resize:Wn})),D(Di,!Is.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((ut=ee().parentElement)==null||ut.insertBefore(e.interactiveContainer,ee().nextSibling)),()=>{clearTimeout(wn),clearTimeout(lr),clearTimeout(Sn),clearTimeout(zn),dr(),et==null||et.dispose().catch(Qt=>{je({message:String(Qt)})}),Gc(Do)}});let An=X(!0),qn=X(!0),cr=ut=>{let Qt=V()+(ut==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Qt<0?(D(An,!1),Qt=0):Qt>=W()&&(D(qn,!1),Qt=W()),D(qo,!0),e.seekTime(Qt)},un=()=>{let ut=Is.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Lt()?r(xn):Lt(),Qt=ut.getRootNode(),oi=Qt instanceof ShadowRoot?Qt.host:Qt,mi=O()instanceof HTMLElement&&O().contains(oi);return e.uiConfig.allowChangingFullscreenTarget&&O()&&mi?O():ut},ur=async()=>{try{if(hs())await Kc(document),je({message:"exit fullscreen"});else{if(je({message:"request fullscreen"}),Is.clientChecker.device.isIOS&&!j())return;await qc(un())}}catch(ut){je({message:String(ut)})}},pr=()=>{Ni()},Kn=ut=>{if(ut.preventDefault(),H()){pr();return}if(!be()){e.firstStart(),Hi(e.uiConfig.controls.hideTimeoutCursor);return}D(qo,!1),w()?Oi():Hi(e.uiConfig.controls.hideTimeoutMobile)},Ir=()=>{Bi.set(!0)},kr=()=>{Tt||(Ro.set(!0),Hi(e.uiConfig.controls.hideTimeoutCursor))},Mn=ut=>{yn&&(yn(ut),Hi(e.uiConfig.controls.hideTimeoutMobile))},Jt=ut=>{Co&&(Co(ut),Hi(e.uiConfig.controls.hideTimeoutMobile))};Fe(()=>{wo.set(r(nt))}),Fe(()=>{Ge.set((r(kn)||H()||Q()||ie()||Z()||!r(Ko)&&(u()||r(Wo)&&!r(qo)))&&!r(po)&&n()==="video"&&!d()&&se())}),Fe(()=>{!Q()&&r(No)&&!ce()&&Hi(e.uiConfig.controls.hideTimeoutMobile),D(No,fe(Q()))}),Fe(()=>{D(An,V()>0),D(qn,fe(!Ee()&&V()<W()))}),Fe(()=>{sl(r(Un),H(),Me())});let Qn=z("aria_label_video_player"),Gn=z("video360");W1({fullScreenChangeHandler:Do,getFullscreenTarget:un}),Q1({store:e.store,getFullscreenTarget:un});var rt=ix();kt("blur",Fs,pr),Ne(rt,"aria-label",Qn);var xt=h(rt);xa(xt,{onClick:Kn,get videoContainer(){return ee()},set videoContainer(ut){ee(ut)}});var Si=A(xt,2);Qs(Si,()=>"slot",!1,(ut,Qt)=>{Te(ut,null,{name:ya})});var To=A(Si,2);Ks(To,ge,ut=>{var Qt=tx(),oi=pe(Qt);let mi=v(()=>n()!=="thumb"||d()||Tt&&e.autoplay);_a(oi,{get hidden(){return r(mi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Zi=A(oi,2);{var mo=Re=>{var gt=j3(),ni=pe(gt);{var Ji=Vi=>{let Jn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);$u(Vi,{side:"left",get seekStep(){return r(Jn)},handleSingleFirstClick:Kn,handleSecondClick:()=>cr("backward")})};R(ni,Vi=>{r(An)&&Vi(Ji)})}var vo=A(ni,2);{var Wr=Vi=>{let Jn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);$u(Vi,{side:"right",get seekStep(){return r(Jn)},handleSingleFirstClick:Kn,handleSecondClick:()=>cr("forward")})};R(vo,Vi=>{r(qn)&&Vi(Wr)})}$(Re,gt)};R(Zi,Re=>{e.canRewindLive&&ai&&!ae().has("TIMELINE")&&Re(mo)})}var Gi=A(Zi,2);{var Fi=Re=>{let gt=v(()=>{var ni;return(ni=e.live)==null?void 0:ni.startTime});Od(Re,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(gt)}})};R(Gi,Re=>{n()==="LiveWaitingStart"&&Re(Fi)})}var Ci=A(Gi,2);{var Qo=Re=>{ba(Re,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Ci,Re=>{n()==="LiveWaitingRecover"&&Re(Qo)})}var Ln=A(Ci,2);{var Er=Re=>{ba(Re,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ln,Re=>{n()==="LiveWaitingRecord"&&Re(Er)})}var Yn=A(Ln,2);{var Pr=Re=>{var gt=Z3();let ni;var Ji=h(gt);rd(Ji,{get adsSlotId(){return He()},get adsParams(){return Ze()},get adsPreviewParam(){return we()},get adsAutoplayParam(){return Ve()},get duration(){return Ie()}}),g(gt),E(vo=>ni=J(gt,1,"ads-container svelte-7yl31d",null,ni,vo),[()=>({hidden:n()!=="ads"})]),$(Re,gt)};R(Yn,Re=>{e.showAds&&be()&&Re(Pr)})}var pn=A(Yn,2);{var jn=Re=>{let gt=v(()=>!oe()&&e.showAutoplayNext&&C());Zm(Re,{get title(){return Et()},get thumb(){return _t()},get isHide(){return r(gt)},clickCloseIcon:()=>D(Bo,!0)})};R(pn,Re=>{r(Ko)&&Et()&&_t()&&Re(jn)})}var Zn=A(pn,2);{var Ur=Re=>{Bd(Re,{})};R(Zn,Re=>{Pe()&&Re(Ur)})}var Xn=A(Zn,2);{var Go=Re=>{var gt=X3(),ni=h(gt);od(ni,{"aria-label":Gn}),g(gt),$(Re,gt)};R(Xn,Re=>{ne()&&Re(Go)})}var fr=A(Xn,2);{var Yo=Re=>{Nd(Re,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};R(fr,Re=>{Z()&&Re(Yo)})}var mr=A(fr,2);{var zr=Re=>{ha(Re,{get shifted(){return w()},get captions(){return _e()},get position(){return V()},get playerSize(){return P()},isMobile:!0})};R(mr,Re=>{ue().value!=="off"&&Re(zr)})}var Ar=A(mr,2);{var Mr=Re=>{var gt=J3();gt.__click=[Y3,H,tt,pr];var ni=h(gt);Dd(ni,{}),g(gt),$(Re,gt)};R(Ar,Re=>{d()&&Re(Mr)})}var Xe=A(Ar,2);{var Ht=Re=>{let gt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),ni=v(()=>n()==="ads"),Ji=v(()=>e.canRewindLive&&ze()!==0);Rd(Re,{get bottomHidden(){return r(gt)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return r(ni)},get canRewindLive(){return r(Ji)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ue()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return dt()},get nextButtonActive(){return ct()},get prevButtonActive(){return ot()},get isOneVideoPlaylist(){return Yt()},get customFullscreenSupported(){return r(Di)},get endScreenShown(){return r(Ko)},toggleFullscreen:ur,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Mn,onDisabledSeekToInteractiveClick:Jt,get playerControlsWrapperRef(){return r(Tr)},set playerControlsWrapperRef(vo){D(Tr,fe(vo))},get playerControlsRef(){return r(ar)},set playerControlsRef(vo){D(ar,fe(vo))}})};R(Xe,Re=>{be()&&Re(Ht)})}var Li=A(Xe,2);{var jo=Re=>{var gt=ex(),ni=h(gt);zd(ni,{get supportLink(){return e.supportLink},returnFocus:G1.noop,get ref(){return r(Un)},set ref(Ji){D(Un,fe(Ji))}}),g(gt),$(Re,gt)};R(Li,Re=>{H()&&Re(jo)})}var Oo=A(Li,2);let Vn=v(()=>!r(En));ld(Oo,{get isLive(){return re()},get isHidden(){return r(Vn)},get isPlaying(){return K()},get position(){return V()},get duration(){return W()}});var fn=A(Oo,2);{var Se=Re=>{aa(Re,{})};R(fn,Re=>{r(uo)&&Re(Se)})}var ft=A(fn,2);{var Wt=Re=>{ud(Re,{})};R(ft,Re=>{he()&&Re(Wt)})}var si=A(ft,2);{var Xi=Re=>{Wd(Re,{onClose:In,onSelectAutoQuality:()=>{Vo("auto"),In()}})};R(si,Re=>{r(Tn)&&Re(Xi)})}$(ut,Qt)});var fo=A(To,2);ht(fo,ut=>D(nt,ut),()=>r(nt)),g(rt),ht(rt,ut=>D(xn,ut),()=>r(xn)),kt("click",rt,Ir,!0),kt("focusin",rt,kr,!0),$(t,rt),U(),o()}at(["click"]);function xu(t){let e="";return so(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),so(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),so(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),so(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),so(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),so(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),so(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),so(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),so(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),so(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),so(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),so(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),so(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),so(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),so(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),so(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),so(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),so(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),so(t.font)&&(e+=`--font:${t.font};`),e.length&&e||void 0}function so(t){return typeof t=="string"&&!t.includes(";")}var Y1=require("@vkontakte/videoplayer-shared/es2018");var nx=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),rx={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function Jm(t,e){F(e,!0),q(t,rx);let[i,o]=De(),n=()=>S(ie,"$playerSize",i),a=()=>S(k,"$isPlaying$",i),s=()=>S(M,"$duration$",i),d=()=>S(j,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),p=()=>S(I,"$crashed$",i),f=()=>S(V,"$currentSubtitle$",i),y=()=>S(W,"$currentSubtitleCaptions$",i),u=()=>S(P,"$positionExact$",i),_=()=>S(H,"$isLive$",i),w=()=>S(Q,"$isRewindableLive$",i),b=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:M,positionExact$:P,isPlaying$:k,currentSubtitle$:V,currentSubtitleCaptions$:W,positionWithScrubbing$:j,isLive$:H,isRewindableLive$:Q},ui:{playerSize:ie,controls:Z},actions:{internal:{getVideoElement:se}}}=Ce(),ce=8,Ee=X(!1),Me=fe({}),ge=()=>{D(Ee,!0)},ae=()=>{D(Ee,!1)},Pe=(0,Y1.debounceFn)(fl,260);Fe(()=>{n(),Pe(se(),Z,Me,r(Ee))});let ne=v(()=>a()?ln(s()-d()):ln(isFinite(s())?s():b()));var N=nx(),ue=h(N);xa(ue,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ie){C(Ie)}});var _e=A(ue,2);Qs(_e,()=>"slot",!1,(Ie,Ue)=>{Te(Ie,null,{name:ya})});var ze=A(_e,2);let re=v(()=>l()!=="thumb"||p());_a(ze,{get hidden(){return r(re)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var K=A(ze,2);{var he=Ie=>{ha(Ie,{shifted:!1,get captions(){return y()},get position(){return u()},get playerSize(){return n()}})};R(K,Ie=>{f().value!=="off"&&Ie(he)})}var ee=A(K,2),He=h(ee);ad(He,{get isLive(){return _()},get isPlaying(){return a()},get time(){return r(ne)}}),g(ee);var Ze=A(ee,2);let we;var Ve=h(Ze);ua(Ve,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ce,tooltipRightOffset:ce,get ref(){return Me.timeline},set ref(Ie){Me.timeline=Ie}}),g(Ze),g(N),E(Ie=>we=J(Ze,1,"timeline svelte-1qfjf44",null,we,Ie),[()=>({visible:r(Ee)})]),kt("mouseenter",N,ge),kt("mouseleave",N,ae),$(t,N),U(),o()}var sx=L("<div><!></div>"),ax={hash:"svelte-tw6yp4",code:`.root.svelte-tw6yp4 {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
|
|
361
|
+
}.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 Iu(t,e){O(e,!0),W(t,Z3);let i=m(e,"seekStep",3,0),o=X(!1),n=0,a=0,r=X(ve(i())),d=b=>{b.stopPropagation(),a+=1,D(r,i()*(a-1)),a===1?e.handleSingleFirstClick(b):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};In(()=>{window.clearTimeout(n)});var l=j3();l.__click=d;var p=h(l);{var f=b=>{var u=Y3(),_=he(u),w=A(_,2),y=h(w),C=h(y),T=A(C,2),I=A(T,2);g(y);var M=A(y,2),P=h(M,!0);g(M),g(w),k(E=>{var R,z,q,U;J(_,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),J(C,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(q=e.side)!=null?q:""}`,"svelte-nhq2ld"),J(I,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),_e(P,E)},[()=>F("doubletap_seek_step",{seconds:s(r).toFixed(0)})]),$(b,u)};V(p,b=>{s(o)&&b(f)})}g(l),k(()=>{var b;return J(l,1,`double-click-area ${(b=e.side)!=null?b:""}`,"svelte-nhq2ld")}),$(t,l),H()}dt(["click"]);var X3=(t,e,i)=>{e(!1),i()},J3=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),ex={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 sv(t,e){O(e,!0),W(t,ex);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),r=Ie(),d=r.ui.autoplayNextEnabled$,l=r.ui.timerNextVideoRunning$,p=r.actions.internal.nextVideoClick,f=r.actions.internal.nextVideoAnnouncementShow,b=r.actions.internal.nextVideoAnnouncementClick,u=r.actions.internal.nextVideoAnnouncementAuto,_=r.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),_()};Nt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var C=He(),T=he(C);{var I=M=>{var P=J3(),E=A(he(P),2),R=h(E),z=h(R),q=h(z,!0);g(z);var U=A(z,2);ga(U,{onClick:y}),g(R);var Y=A(R,2);Y.__click=[X3,p,b];var se=h(Y),Q=h(se),de=h(Q);let le;var Me=A(de,2);{var Be=ae=>{$d(ae,{get isRunning(){return a()},onTimerEnded:w})};V(Me,ae=>{n()&&ae(Be)})}g(Q),g(se);var ge=A(se,2),ce=h(ge),Ae=h(ce,!0);g(ce),g(ge),g(Y),g(E),k((ae,N)=>{_e(q,ae),at(Q,`background-image: url('${e.thumb}')`),le=J(de,1,"thumb-overlay svelte-1qdxi6t",null,le,N),_e(Ae,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(M,P)};V(T,M=>{e.isHide||M(I)})}$(t,C),H(),o()}dt(["click"]);var Y1=require("@vkontakte/videoplayer-core/es2018");var j1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Nt(()=>{Y1.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let r=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",r),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",r),a.removeEventListener("webkitendfullscreen",d)}},0))}),In(()=>{i==null||i(),clearTimeout(o)})};var Z1=require("@vkontakte/videoplayer-core/es2018");var Eu=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 X1=require("@vkontakte/videoplayer-core/es2018"),J1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:r,availableTextTracks$:d}=t.state,l=null,p=()=>e().querySelector("video"),f=()=>X1.clientChecker.device.isIOS&&xe(r)===Z1.VideoFormat.DASH_LIVE_CMAF,b=()=>{l==null||l(),l=null},u=_=>{if(b(),!f()||!_)return;let w=p();if(!w)return;let y=new Eu(w),C=xe(d),T=xe(a),I=xe(n);for(let E of C)T.some(z=>z.value===E.id)&&y.attach(E,I.value===E.id);let M=d.subscribe(E=>{for(let R of E)y.updateSrc(R)}),P=()=>{let E=y.getCurrentShowingId();o(xe(a).find(R=>R.value===E))};w.textTracks.addEventListener("change",P),l=()=>{M(),y.detachAll(),w.textTracks.removeEventListener("change",P)}};Nt(()=>i.subscribe(u)),In(b)};var tx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},ix=L("<!> <!>",1),ox=L("<div><!></div>"),nx=L('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),rx=L("<div><!></div>"),sx=L('<div class="settings-mobile svelte-7yl31d"><!></div>'),ax=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),lx=L('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),dx={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function av(t,e){var Or,$r;O(e,!0),W(t,dx);let[i,o]=De(),n=()=>S(gt,"$playerPhase",i),a=()=>S(Yi,"$isLoaderVisible",i),r=()=>S(ot,"$adPlaybackState",i),d=()=>S(ci,"$crashed",i),l=()=>S(Ln,"$notificationsToShow$",i),p=()=>S(Ke,"$playbackState$",i),f=()=>S(Pe,"$graphIsOpened$",i),b=()=>S(qt,"$interactiveHideMobileControls",i),u=()=>S(nt,"$isEnded$",i),_=()=>S(Do,"$isInteractiveExpectation$",i),w=()=>S(_t,"$controlsVisible",i),y=()=>S(Ci,"$touched",i),C=()=>S(Pn,"$autoplayNextEnabled$",i),T=()=>S(Si,"$postrollPassed",i),I=()=>S(Vn,"$bottomNoSmooth",i),M=()=>S(Vt,"$videoSize",i),P=()=>S(Li,"$playerSize",i),E=()=>S(Kt,"$isFullscreen",i),R=()=>S(Xe,"$position$",i),z=()=>S(wt,"$duration$",i),q=()=>S(Ho,"$loadedMetadata",i),U=()=>S(Ze,"$settingsMenuVisible",i),Y=()=>S(Gi,"$scrubbingInProgress",i),se=()=>S(Oi,"$volumeChangingInProgress",i),Q=()=>S(yt,"$chromecastConnected$",i),de=()=>S(wi,"$isControlsAvailable",i),le=()=>S(Vi,"$isInteractiveTime$",i),Me=()=>S(Mi,"$isActiveLive",i),Be=()=>S(Jt,"$settingsMenuOpenedByKeyboard",i),ge=()=>S(fe,"$language$",i),ce=()=>S(ai,"$disabledControls$",i),Ae=()=>S(No,"$is3DVideo",i),ae=()=>S(bi,"$icon3DVideoVisible",i),N=()=>S(di,"$chromecastDeviceName$",i),Ye=()=>S(fo,"$currentSubtitle$",i),ee=()=>S(ei,"$currentSubtitleCaptions$",i),We=()=>S(Xn,"$realDuration$",i),ne=()=>S(Qt,"$isLive$",i),me=()=>S(ui,"$isPlaying$",i),$e=()=>S(po,"$debugPanelVisible",i),Z=m(e,"videoContainer",15),ze=m(e,"adsSlotId",3,void 0),et=m(e,"adsParams",3,void 0),Ce=m(e,"adsPreviewParam",3,void 0),ie=m(e,"adsAutoplayParam",3,void 0),Ee=m(e,"duration",3,void 0),qe=m(e,"logoTargetUrl",3,""),rt=m(e,"showNextPrevButtons",3,!1),ct=m(e,"nextButtonActive",3,!1),st=m(e,"prevButtonActive",3,!1),Tt=m(e,"endScreenVideoTitle",3,void 0),pt=m(e,"endScreenVideoThumb",3,void 0),Yt=m(e,"isOneVideoPlaylist",3,!1),ni=m(e,"shadowRootContainer",3,void 0),Ft=m(e,"outerContainerRef",3,void 0),Pt=m(e,"showMiniTimer",3,!1),te=m(e,"fullScreenTarget",3,void 0),Lt=m(e,"playerStarted",3,!1),j=m(e,"showEndScreen",3,!0),{notifications$:pe,graphIsOpened$:Pe}=co(),Re=e.store.getLogger().createComponentLog("Root component"),fe=e.store.interfaceLanguage$,Ke=e.store.state.playbackState$,ot=e.store.ads.playbackState,Xe=e.store.state.positionWithScrubbing$,wt=e.store.state.duration$,gt=e.store.playerPhase,Kt=e.store.ui.isFullscreen,_t=e.store.ui.controlsVisible,wi=e.store.ui.isControlsAvailable,qt=e.store.ui.interactiveHideMobileControls,Ze=e.store.ui.settingsMenu.visible$,Jt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Gi=e.store.ui.scrubbingInProgress,Oi=e.store.ui.volumeChangingInProgress,po=e.store.ui.debugPanelVisible,Yi=e.store.state.isLoaderVisible,nt=e.store.state.isEnded$,yt=e.store.state.chromecastConnected$,di=e.store.state.chromecastDeviceName$,Si=e.store.ads.postrollPassed,Co=e.store.ui.mobileUnmuteButtonExpanded,G=e.store.ui.mobileUnmuteButtonVisible,Qt=e.store.state.isLive$,ui=e.store.state.isPlaying$,Mi=e.store.state.isActiveLive$,si=e.store.state.isRewindableLive$,ci=e.store.state.crashed$,ft=e.store.webApi.annotationsApi,tt=e.store.webApi.pictureInPictureApi,Vt=e.store.state.videoSize$,fo=e.store.state.currentSubtitle$,ei=e.store.state.currentSubtitleCaptions$,Xn=e.store.state.duration$,Li=e.store.ui.playerSize,No=e.store.ui.is3DVideo,bi=e.store.ui.icon3DVideoVisible,ht=e.store.state.isInteractive,Vi=e.store.state.isInteractiveTime$,Do=e.store.state.isInteractiveExpectation$,kn=e.store.state.hasInteractiveBranches,ai=e.store.ui.controls.disabledControls$,Ci=e.store.ui.touched,Oo=e.store.ui.overlayContainer$,Pn=e.store.ui.autoplayNextEnabled$,Ho=e.store.state.loadedMetadata$,To=e.store.actions.internal.closeSettingsMenu,hn=(Or=e.store.callbacks)==null?void 0:Or.onDisabledPlayPrevChapterClick,Zo=($r=e.store.callbacks)==null?void 0:$r.onDisabledSeekToInteractiveClick,mo=e.store.actions.internal.setQuality,Io=X(void 0),Br=X(void 0),vr=X(void 0),Jn=X(void 0),er,tr,An,es=v(()=>(n()==="video"&&a()||n()==="ads"&&r()==="inactive")&&!d()),Mn=X(void 0),{closeNotification:Ri,notificationsToShow$:Ln}=pe,Xo=v(()=>!!l().slow_video),Jo=()=>Ri("slow_video"),Vn=re(!1),Rn,Fo=X(!1),Nr=v(()=>p()!==Fs.PlaybackState.PLAYING),Bn=X(!1),ir=v(()=>f()||b()||!s(Fo)&&(u()&&!!kn||s(Nr)&&_())),Hi=X(!0),Eo=v(()=>e.uiConfig.features.thumbTimer&&Pt()&&n()==="video"&&!w()&&!d()&&!ht&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),lt=X(!1),jt=v(()=>(j()||e.showAutoplayNext&&C())&&!!Tt()&&!!pt()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!s(lt)),gr=X(!1);tt==null||tt.setContext(Zl());let Nn=bt=>{clearTimeout(tr),bt&&(G.set(!0),Co.set(!0),tr=setTimeout(()=>{Co.set(!1)},e.uiConfig.controls.collapseMobileUnmute),ht||Bi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Nn});let _n=()=>{clearTimeout(er),D(Fo,!1),b()&&qt.set(!1)},Bi=bt=>{_n(),D(Fo,!0),er=setTimeout(()=>D(Fo,!1),bt);let Zt=bt-100;Rn=setTimeout(()=>{I()&&Vn.set(!1)},Zt>0?Zt:bt)},Dn=No.subscribe(bt=>{bi.set(bt),bt&&(clearTimeout(An),An=setTimeout(()=>bi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ko=async(bt=As())=>{var Zt,zo,go,Xi,tn,Un;if(bt&&!Fs.clientChecker.device.isIOS){let ho=pd(),bn=or(),on=Fs.clientChecker.browser.isSamsungBrowser&&ho===ni();bt=ho===bn||on}if(bt){Bi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(tt==null?void 0:tt.remove())}catch(ho){Re({message:String(ho)})}try{let ho=(Zt=M())!=null&&Zt.width&&((zo=M())!=null&&zo.height)?M():P();await Gh(ho)}catch(ho){Re({message:String(ho)})}}Kt.set(bt),e.store.getAdmanWrapper().setFullscreen(bt),E()?(Xi=(go=e.store.callbacks)==null?void 0:go.onFullscreenEnter)==null||Xi.call(go):(Un=(tn=e.store.callbacks)==null?void 0:tn.onFullscreenExit)==null||Un.call(tn)},On=bt=>{let Zt=bt;Li.set({width:Zt.target.width,height:Zt.target.height})};Nt(()=>{var bt;return Jc(ko),e.uiConfig.features.annotationsInside&&(ft==null||ft.init(s(Io))),pa(tt)&&(tt==null||tt.assignPlayerContainer(s(Io)),tt==null||tt.registryExternalEventHandlers({resize:On})),D(Hi,!Fs.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((bt=Z().parentElement)==null||bt.insertBefore(e.interactiveContainer,Z().nextSibling)),()=>{clearTimeout(er),clearTimeout(Rn),clearTimeout(tr),clearTimeout(An),Dn(),tt==null||tt.dispose().catch(Zt=>{Re({message:String(Zt)})}),eu(ko)}});let Po=X(!0),Hn=X(!0),Fn=bt=>{let Zt=R()+(bt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Zt<0?(D(Po,!1),Zt=0):Zt>=z()&&(D(Hn,!1),Zt=z()),D(Bn,!0),e.seekTime(Zt)},or=()=>{let bt=Fs.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ft()?s(Io):Ft(),Zt=bt.getRootNode(),zo=Zt instanceof ShadowRoot?Zt.host:Zt,go=te()instanceof HTMLElement&&te().contains(zo);return e.uiConfig.allowChangingFullscreenTarget&&te()&&go?te():bt},hr=async()=>{try{if(As())await Xc(document),Re({message:"exit fullscreen"});else{if(Re({message:"request fullscreen"}),Fs.clientChecker.device.isIOS&&!q())return;await Zc(or())}}catch(bt){Re({message:String(bt)})}},nr=()=>{To()},Uo=bt=>{if(bt.preventDefault(),U()){nr();return}if(!Lt()){e.firstStart(),Bi(e.uiConfig.controls.hideTimeoutCursor);return}D(Bn,!1),w()?_n():Bi(e.uiConfig.controls.hideTimeoutMobile)},Dr=()=>{Ci.set(!0)},rr=()=>{ht||(Vn.set(!0),Bi(e.uiConfig.controls.hideTimeoutCursor))},_r=bt=>{hn&&(hn(bt),Bi(e.uiConfig.controls.hideTimeoutMobile))},en=bt=>{Zo&&(Zo(bt),Bi(e.uiConfig.controls.hideTimeoutMobile))};Ue(()=>{Oo.set(s(Mn))}),Ue(()=>{_t.set((s(Nr)||U()||Y()||se()||Q()||!s(jt)&&(u()||s(Fo)&&!s(Bn)))&&!s(ir)&&n()==="video"&&!d()&&de())}),Ue(()=>{!Y()&&s(gr)&&!le()&&Bi(e.uiConfig.controls.hideTimeoutMobile),D(gr,ve(Y()))}),Ue(()=>{D(Po,R()>0),D(Hn,ve(!Me()&&R()<z()))}),Ue(()=>{cl(s(Jn),U(),Be())});let Gt=F("aria_label_video_player"),vo=F("video360");j1({fullScreenChangeHandler:ko,getFullscreenTarget:or}),J1({store:e.store,getFullscreenTarget:or});var Ao=lx();Et("blur",Zs,nr),Ne(Ao,"aria-label",Gt);var sr=h(Ao);Ma(sr,{onClick:Uo,get videoContainer(){return Z()},set videoContainer(bt){Z(bt)}});var br=A(sr,2);oa(br,()=>"slot",!1,(bt,Zt)=>{ke(bt,null,{name:Aa})});var Ti=A(br,2);ia(Ti,ge,bt=>{var Zt=ax(),zo=he(Zt);let go=v(()=>n()!=="thumb"||d()||ht&&e.autoplay);Ea(zo,{get hidden(){return s(go)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Xi=A(zo,2);{var tn=ye=>{var St=ix(),zt=he(St);{var Ii=It=>{let ti=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Iu(It,{side:"left",get seekStep(){return s(ti)},handleSingleFirstClick:Uo,handleSecondClick:()=>Fn("backward")})};V(zt,It=>{s(Po)&&It(Ii)})}var _i=A(zt,2);{var Fe=It=>{let ti=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Iu(It,{side:"right",get seekStep(){return s(ti)},handleSingleFirstClick:Uo,handleSecondClick:()=>Fn("forward")})};V(_i,It=>{s(Hn)&&It(Fe)})}$(ye,St)};V(Xi,ye=>{e.canRewindLive&&si&&!ce().has("TIMELINE")&&ye(tn)})}var Un=A(Xi,2);{var ho=ye=>{let St=v(()=>{var zt;return(zt=e.live)==null?void 0:zt.startTime});Kd(ye,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(St)}})};V(Un,ye=>{n()==="LiveWaitingStart"&&ye(ho)})}var bn=A(Un,2);{var on=ye=>{ka(ye,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(bn,ye=>{n()==="LiveWaitingRecover"&&ye(on)})}var Je=A(bn,2);{var Rt=ye=>{ka(ye,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Je,ye=>{n()==="LiveWaitingRecord"&&ye(Rt)})}var gi=A(Je,2);{var _o=ye=>{var St=ox();let zt;var Ii=h(St);fd(Ii,{get adsSlotId(){return ze()},get adsParams(){return et()},get adsPreviewParam(){return Ce()},get adsAutoplayParam(){return ie()},get duration(){return Ee()}}),g(St),k(_i=>zt=J(St,1,"ads-container svelte-7yl31d",null,zt,_i),[()=>({hidden:n()!=="ads"})]),$(ye,St)};V(gi,ye=>{e.showAds&&Lt()&&ye(_o)})}var Ji=A(gi,2);{var Wo=ye=>{let St=v(()=>!j()&&e.showAutoplayNext&&C());sv(ye,{get title(){return Tt()},get thumb(){return pt()},get isHide(){return s(St)},clickCloseIcon:()=>D(lt,!0)})};V(Ji,ye=>{s(jt)&&Tt()&&pt()&&ye(Wo)})}var ji=A(Ji,2);{var qo=ye=>{zd(ye,{})};V(ji,ye=>{Ae()&&ye(qo)})}var Mo=A(ji,2);{var Fi=ye=>{var St=nx(),zt=h(St);ud(zt,{"aria-label":vo}),g(St),$(ye,St)};V(Mo,ye=>{ae()&&ye(Fi)})}var hi=A(Mo,2);{var Ko=ye=>{Wd(ye,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};V(hi,ye=>{Q()&&ye(Ko)})}var nn=A(hi,2);{var Ui=ye=>{Ia(ye,{get shifted(){return w()},get captions(){return ee()},get position(){return R()},get playerSize(){return P()},isMobile:!0})};V(nn,ye=>{Ye().value!=="off"&&ye(Ui)})}var yr=A(nn,2);{var Hr=ye=>{var St=rx();St.__click=[tx,U,Ze,nr];var zt=h(St);qd(zt,{}),g(St),$(ye,St)};V(yr,ye=>{d()&&ye(Hr)})}var Fr=A(yr,2);{var $n=ye=>{let St=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),zt=v(()=>n()==="ads"),Ii=v(()=>e.canRewindLive&&We()!==0);Ud(ye,{get bottomHidden(){return s(St)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return s(zt)},get canRewindLive(){return s(Ii)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return qe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return rt()},get nextButtonActive(){return ct()},get prevButtonActive(){return st()},get isOneVideoPlaylist(){return Yt()},get customFullscreenSupported(){return s(Hi)},get endScreenShown(){return s(jt)},toggleFullscreen:hr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:_r,onDisabledSeekToInteractiveClick:en,get playerControlsWrapperRef(){return s(Br)},set playerControlsWrapperRef(_i){D(Br,ve(_i))},get playerControlsRef(){return s(vr)},set playerControlsRef(_i){D(vr,ve(_i))}})};V(Fr,ye=>{Lt()&&ye($n)})}var zn=A(Fr,2);{var Ur=ye=>{var St=sx(),zt=h(St);jd(zt,{get supportLink(){return e.supportLink},returnFocus:e0.noop,get ref(){return s(Jn)},set ref(Ii){D(Jn,ve(Ii))}}),g(St),$(ye,St)};V(zn,ye=>{U()&&ye(Ur)})}var eo=A(zn,2);let Qo=v(()=>!s(Eo));gd(eo,{get isLive(){return ne()},get isHidden(){return s(Qo)},get isPlaying(){return me()},get position(){return R()},get duration(){return z()}});var Wn=A(eo,2);{var ar=ye=>{ha(ye,{})};V(Wn,ye=>{s(es)&&ye(ar)})}var lr=A(Wn,2);{var zr=ye=>{bd(ye,{})};V(lr,ye=>{$e()&&ye(zr)})}var is=A(lr,2);{var Te=ye=>{Zd(ye,{onClose:Jo,onSelectAutoQuality:()=>{mo("auto"),Jo()}})};V(is,ye=>{s(Xo)&&ye(Te)})}$(bt,Zt)});var ts=A(Ti,2);it(ts,bt=>D(Mn,bt),()=>s(Mn)),g(Ao),it(Ao,bt=>D(Io,bt),()=>s(Io)),Et("click",Ao,Dr,!0),Et("focusin",Ao,rr,!0),$(t,Ao),H(),o()}dt(["click"]);function ku(t){let e="";return uo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),uo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),uo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),uo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),uo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),uo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),uo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),uo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),uo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),uo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),uo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),uo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),uo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),uo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),uo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),uo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),uo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),uo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),uo(t.font)&&(e+=`--font:${t.font};`),e.length&&e||void 0}function uo(t){return typeof t=="string"&&!t.includes(";")}var t0=require("@vkontakte/videoplayer-shared/es2018");var cx=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),ux={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function lv(t,e){O(e,!0),W(t,ux);let[i,o]=De(),n=()=>S(se,"$playerSize",i),a=()=>S(E,"$isPlaying$",i),r=()=>S(M,"$duration$",i),d=()=>S(q,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),p=()=>S(I,"$crashed$",i),f=()=>S(R,"$currentSubtitle$",i),b=()=>S(z,"$currentSubtitleCaptions$",i),u=()=>S(P,"$positionExact$",i),_=()=>S(U,"$isLive$",i),w=()=>S(Y,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:M,positionExact$:P,isPlaying$:E,currentSubtitle$:R,currentSubtitleCaptions$:z,positionWithScrubbing$:q,isLive$:U,isRewindableLive$:Y},ui:{playerSize:se,controls:Q},actions:{internal:{getVideoElement:de}}}=Ie(),le=8,Me=X(!1),Be=ve({}),ge=()=>{D(Me,!0)},ce=()=>{D(Me,!1)},Ae=(0,t0.debounceFn)(hl,260);Ue(()=>{n(),Ae(de(),Q,Be,s(Me))});let ae=v(()=>a()?vn(r()-d()):vn(isFinite(r())?r():y()));var N=cx(),Ye=h(N);Ma(Ye,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ee){C(Ee)}});var ee=A(Ye,2);oa(ee,()=>"slot",!1,(Ee,qe)=>{ke(Ee,null,{name:Aa})});var We=A(ee,2);let ne=v(()=>l()!=="thumb"||p());Ea(We,{get hidden(){return s(ne)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var me=A(We,2);{var $e=Ee=>{Ia(Ee,{shifted:!1,get captions(){return b()},get position(){return u()},get playerSize(){return n()}})};V(me,Ee=>{f().value!=="off"&&Ee($e)})}var Z=A(me,2),ze=h(Z);vd(ze,{get isLive(){return _()},get isPlaying(){return a()},get time(){return s(ae)}}),g(Z);var et=A(Z,2);let Ce;var ie=h(et);ya(ie,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return Be.timeline},set ref(Ee){Be.timeline=Ee}}),g(et),g(N),k(Ee=>Ce=J(et,1,"timeline svelte-1qfjf44",null,Ce,Ee),[()=>({visible:s(Me)})]),Et("mouseenter",N,ge),Et("mouseleave",N,ce),$(t,N),H(),o()}var px=L("<div><!></div>"),fx={hash:"svelte-tw6yp4",code:`.root.svelte-tw6yp4 {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
|
|
361
362
|
|
|
362
363
|
/* USER DEFINED COLORS */
|
|
363
364
|
|
|
@@ -391,5 +392,5 @@ Try switching the\xA0quality to\xA0Auto.`},Vh=A_;var is=new Map;is.set(el.Interf
|
|
|
391
392
|
/* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}
|
|
392
393
|
/* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
|
|
393
394
|
|
|
394
|
-
/* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function ev(t,e){F(e,!0),q(t,ax);let[i,o]=De(),n=()=>S(Yt,"$isLive$",i),a=m(e,"sources",7),s=m(e,"store",7),d=m(e,"microStoresRoot",7),l=m(e,"videoConfig",7),p=m(e,"uiConfig",7),f=m(e,"title",7),y=m(e,"thumbUrl",7),u=m(e,"interactiveContainer",7),_=m(e,"interactiveController",7),w=m(e,"subtitles",7),b=m(e,"live",7),C=m(e,"preload",7),T=m(e,"autoplay",7),I=m(e,"volume",7,void 0),M=m(e,"muted",7,void 0),P=m(e,"fromTime",7),k=m(e,"canRewindLive",7),V=m(e,"showAds",7),W=m(e,"adsSlotId",7,void 0),j=m(e,"adsParams",7,void 0),H=m(e,"adsPreviewParam",7,void 0),Q=m(e,"adsAutoplayParam",7,void 0),ie=m(e,"duration",7,void 0),Z=m(e,"logoClickable",7),se=m(e,"logoHidden",7),ce=m(e,"isMobile",7),Ee=m(e,"showNextPrevButtons",7,!1),Me=m(e,"nextButtonActive",7,!1),ge=m(e,"prevButtonActive",7,!1),ae=m(e,"endScreenVideoTitle",7,void 0),Pe=m(e,"endScreenVideoThumb",7,void 0),ne=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),ue=m(e,"shadowRootContainer",7,void 0),_e=m(e,"outerContainerRef",7,void 0),ze=m(e,"fullScreenTarget",7,void 0),re=m(e,"failoverHosts",7,void 0),K=m(e,"showMiniTimer",7,!1),he=m(e,"saveRate",7),ee=m(e,"seekToInteractive",7,wa.noop),He=m(e,"playPrevChapter",7,wa.noop),Ze=m(e,"volumeMultiplier",7),we=m(e,"showAutoplayNext",7),Ve=m(e,"showEndScreen",7,!0),Ie=m(e,"keyboardControls",15,void 0),{subscribers:Ue,stores:dt}=d();eh(p());let ct=Kt(),ot=p().logoLink,Et=s().ui.debugPanelVisible,_t=s().ui.playerSize,Yt=s().state.isLive$,Lt=s().state.isInteractive&&wu.clientChecker.device.isAndroid,Nt=X(void 0),O=null,be=X(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),uh(s(),dt),Fe(()=>{var G,Xt;s().ui.isMobile.set(ce()),(Xt=(G=l().callbacks)==null?void 0:G.onDomReady)==null||Xt.call(G)});let oe=(G=!1)=>{D(be,!0),G?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Be=()=>{if(ct.features.qualityDetailsSubMenuEnabled){let G=Ah(s().videoId);if(G)switch(G.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(G.quality);break}}else{Mh(s().videoId),Wp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Xt=Hp(s().videoId);Xt&&s().actions.internal.setQuality(Xt)}};function Qe(G){var vt,fi,et;let Xt=a()||G;Xt&&s().initVideo({container:r(Nt),sources:Xt,failoverHosts:re(),subtitles:w(),volumeMultiplier:Ze()});let bi=wa.safeStorage.get(Zl)==="true";Et.set(bi),P()>0&&s().actions.external.seekTime(P());let Ai=ce()?ct.volumeDefault:(fi=(vt=I())!=null?vt:Dc())!=null?fi:ct.volumeDefault,ai=(et=M())!=null?et:Ch();if(s().actions.external.setVolume(Ai),s().actions.external.setMuted(ai),s().getAdmanWrapper().setInitialVolume(ai?0:Ai),Be(),ct.features.saveRate&&he()){let Rt=kh();Rt&&!n()&&s().actions.internal.setPlaybackRate(Rt)}if(we()){let Rt=Ph();Rt&&s().actions.internal.setAutoplayNextEnabled(Rt)}s().ui.isAutoplay.set(T()),T()?oe():C()&&ct.features.preload&&s().actions.internal.preload()}let je=G=>{if(window.ResizeObserver){let Xt,bi;O=new ResizeObserver((0,wa.throttleFn)(Ai=>{let ai=Ai[0];if(ai.contentBoxSize){let vt=Array.isArray(ai.contentBoxSize)?ai.contentBoxSize[0]:ai.contentBoxSize;Xt=vt.inlineSize,bi=vt.blockSize}else ai.contentRect&&(Xt=ai.contentRect.width,bi=ai.contentRect.height);_t.set({width:Xt,height:bi})},300)),O.observe(G)}_t.set({width:G.clientWidth,height:G.clientHeight})},Le=()=>{document.hidden&&s().actions.external.stop()};qt(()=>{var bi,Ai,ai,vt;Lt&&document.addEventListener("visibilitychange",Le),ct.debugLog&&s().actions.internal.startLogging(),je(r(Nt));let G=Ue.map(fi=>fi.init({store:s(),microStores:dt,config:l(),interactiveController:_(),uiConfig:p()})),Xt=()=>{Lt&&document.removeEventListener("visibilitychange",Le),O==null||O.disconnect(),G.forEach(fi=>fi.unsubscribe()),s().destroy()};return((bi=b())==null?void 0:bi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Xt):((Ai=b())==null?void 0:Ai.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Xt):(((ai=b())==null?void 0:ai.status)==="finished"||((vt=b())==null?void 0:vt.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Xt):(Qe(),Xt)});function it(){r(be)?s().actions.external.play():oe(!0)}function Je(){s().actions.external.pause()}function $t(G){s().actions.external.setMuted(G)}function pt(){s().actions.external.toggleSubtitle()}function mt(){var G;(G=s().webApi.slotsApi)!=null&&G.haveSlots()&&s().actions.external.hideControls()}function Dt(){var G;(G=s().webApi.slotsApi)!=null&&G.haveSlots()&&s().actions.external.showControls()}function Ge(G){ce()||G>=0&&G<=1&&s().actions.external.setVolume(G)}function ri(G){s().actions.internal.seekTime(G,j1.SeekAction.UNKNOWN)}function $i(G){s().actions.external.seekEpisodeStartTime(G)}function tt(){s().actions.external.returnFocusToEpisodes()}function jt(G){s().actions.external.setPlaybackRate(G)}function Pi(G){s().actions.external.setAutoQualityLimits(G)}let Qi=xu(ct.view),Vt=l().playerView==="preview";var yt=sx();let Ot;st(yt,Qi);var ao=h(yt);{var cn=G=>{Xm(G,{get store(){return s()},uiConfig:ct,get thumbUrl(){return y()},get interactiveContainer(){return u()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return V()},get adsSlotId(){return W()},get adsParams(){return j()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return Q()},get duration(){return ie()},get logoClickable(){return Z()},get logoHidden(){return se()},logoTargetUrl:ot,get nextButtonActive(){return Me()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Pe()},get isOneVideoPlaylist(){return ne()},get supportLink(){return N()},get shadowRootContainer(){return ue()},get outerContainerRef(){return _e()},get fullScreenTarget(){return ze()},get showMiniTimer(){return K()},get playerStarted(){return r(be)},get seekToInteractive(){return ee()},get playPrevChapter(){return He()},firstStart:oe,seekTime:ri,get showEndScreen(){return Ve()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Ee()},get videoContainer(){return r(Nt)},set videoContainer(Xt){D(Nt,fe(Xt))}})},$n=G=>{var Xt=Oe(),bi=pe(Xt);{var Ai=vt=>{Jm(vt,{get thumbUrl(){return y()},get outsideDuration(){return ie()},get canRewindLive(){return k()},get videoContainer(){return r(Nt)},set videoContainer(fi){D(Nt,fe(fi))}})},ai=vt=>{jm(vt,{get store(){return s()},uiConfig:ct,get title(){return f()},get thumbUrl(){return y()},get interactiveContainer(){return u()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return V()},get adsSlotId(){return W()},get adsParams(){return j()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return Q()},get duration(){return ie()},get logoClickable(){return Z()},get logoHidden(){return se()},logoTargetUrl:ot,get nextButtonActive(){return Me()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Pe()},get isOneVideoPlaylist(){return ne()},get supportLink(){return N()},get shadowRootContainer(){return ue()},get outerContainerRef(){return _e()},get fullScreenTarget(){return ze()},get showMiniTimer(){return K()},get playerStarted(){return r(be)},get seekToInteractive(){return ee()},get playPrevChapter(){return He()},firstStart:oe,get showEndScreen(){return Ve()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Ee()},get videoContainer(){return r(Nt)},set videoContainer(fi){D(Nt,fe(fi))},get keyboardControls(){return Ie()},set keyboardControls(fi){Ie(fi)}})};R(bi,vt=>{Vt?vt(Ai):vt(ai,!1)})}$(G,Xt)};R(ao,G=>{ce()?G(cn):G($n,!1)})}g(yt),E(G=>Ot=J(yt,1,"root svelte-tw6yp4",null,Ot,G),[()=>({"root--miui-browser":wu.clientChecker.device.isMobile&&wu.clientChecker.browser.isMiuiBrowser,"visible-outside":Vt})]),$(t,yt);var xo=U({initVideo:Qe,play:it,pause:Je,setMuted:$t,toggleSubtitle:pt,hideControls:mt,showControls:Dt,setVolume:Ge,seekTime:ri,seekEpisodeStartTime:$i,returnFocusToEpisodes:tt,setPlaybackRate:jt,setAutoQualityLimits:Pi,get sources(){return a()},set sources(G){a(G)},get store(){return s()},set store(G){s(G)},get microStoresRoot(){return d()},set microStoresRoot(G){d(G)},get videoConfig(){return l()},set videoConfig(G){l(G)},get uiConfig(){return p()},set uiConfig(G){p(G)},get title(){return f()},set title(G){f(G)},get thumbUrl(){return y()},set thumbUrl(G){y(G)},get interactiveContainer(){return u()},set interactiveContainer(G){u(G)},get interactiveController(){return _()},set interactiveController(G){_(G)},get subtitles(){return w()},set subtitles(G){w(G)},get live(){return b()},set live(G){b(G)},get preload(){return C()},set preload(G){C(G)},get autoplay(){return T()},set autoplay(G){T(G)},get volume(){return I()},set volume(G){I(G)},get muted(){return M()},set muted(G){M(G)},get fromTime(){return P()},set fromTime(G){P(G)},get canRewindLive(){return k()},set canRewindLive(G){k(G)},get showAds(){return V()},set showAds(G){V(G)},get adsSlotId(){return W()},set adsSlotId(G){W(G)},get adsParams(){return j()},set adsParams(G){j(G)},get adsPreviewParam(){return H()},set adsPreviewParam(G){H(G)},get adsAutoplayParam(){return Q()},set adsAutoplayParam(G){Q(G)},get duration(){return ie()},set duration(G){ie(G)},get logoClickable(){return Z()},set logoClickable(G){Z(G)},get logoHidden(){return se()},set logoHidden(G){se(G)},get isMobile(){return ce()},set isMobile(G){ce(G)},get showNextPrevButtons(){return Ee()},set showNextPrevButtons(G){Ee(G)},get nextButtonActive(){return Me()},set nextButtonActive(G){Me(G)},get prevButtonActive(){return ge()},set prevButtonActive(G){ge(G)},get endScreenVideoTitle(){return ae()},set endScreenVideoTitle(G){ae(G)},get endScreenVideoThumb(){return Pe()},set endScreenVideoThumb(G){Pe(G)},get isOneVideoPlaylist(){return ne()},set isOneVideoPlaylist(G){ne(G)},get supportLink(){return N()},set supportLink(G){N(G)},get shadowRootContainer(){return ue()},set shadowRootContainer(G){ue(G)},get outerContainerRef(){return _e()},set outerContainerRef(G){_e(G)},get fullScreenTarget(){return ze()},set fullScreenTarget(G){ze(G)},get failoverHosts(){return re()},set failoverHosts(G){re(G)},get showMiniTimer(){return K()},set showMiniTimer(G){K(G)},get saveRate(){return he()},set saveRate(G){he(G)},get showAutoplayNext(){return we()},set showAutoplayNext(G){we(G)},get seekToInteractive(){return ee()},set seekToInteractive(G){ee(G)},get playPrevChapter(){return He()},set playPrevChapter(G){He(G)},get volumeMultiplier(){return Ze()},set volumeMultiplier(G){Ze(G)},get showEndScreen(){return Ve()},set showEndScreen(G){Ve(G)},get keyboardControls(){return Ie()},set keyboardControls(G){Ie(G)}});return o(),xo}var lx=ye('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function tv(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=lx();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),$(t,o)}function iv(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");tv(t,{get style(){return r(o)}})}var dx=L('<div class="title svelte-1y9fytq"> </div>'),cx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),ux={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function ov(t,e){q(t,ux);var i=cx(),o=h(i);{var n=d=>{var l=dx(),p=h(l,!0);g(l),E(()=>me(p,e.title)),$(d,l)};R(o,d=>{e.title&&d(n)})}var a=A(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);iv(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),E(()=>st(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var n0=require("@vkontakte/videoplayer-shared/es2018"),Ki=require("@vkontakte/videoplayer-shared/es2018"),Jd=require("@vkontakte/videoplayer-core/es2018"),r0=require("@vkontakte/videoplayer-statistics/es2018");var Cu=require("@vkontakte/videoplayer-shared/es2018"),Su=class{constructor(){this.subscription=new Cu.Subscription,this.logger=new Cu.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,s;let o=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 bl=require("@vkontakte/videoplayer-shared/es2018");var px=ye('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function nv(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=px();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i})),$(t,o)}var fx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),mx={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function rv(t,e){F(e,!0),q(t,mx);let[i,o]=De(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(f,"$isMobile$",i),s=Ce(),d=Kt(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,f=s.ui.isMobile,y=s.ui.t,u=v(()=>n()&&y("pip_dummy_title")),_=xu(d.view);var w=fx();J(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),st(w,_);var b=h(w);let C;var T=h(b);nv(T,{}),g(b);var I=A(b,2),M=h(I,!0);g(I),g(w),E(P=>{C=J(b,1,"dummy-image svelte-1pbsod4",null,C,P),me(M,r(u))},[()=>({desktop:!a()})]),$(t,w),U(),o()}var vx=Object.defineProperty,gx=(t,e,i)=>e in t?vx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,_l=(t,e,i)=>gx(t,typeof e!="symbol"?e+"":e,i),hx=460,_x=280,qd=class{constructor({enabled:e=!0}={enabled:!0}){_l(this,"playerDomElement"),_l(this,"playerParentShadowRoot"),_l(this,"playerDummyElement"),_l(this,"svelteContext"),_l(this,"pipWindow"),_l(this,"info",{isActive$:new bl.ValueSubject(!1),isEnabled$:new bl.ValueSubject(!1),type:1}),this.info.isEnabled$=new bl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,bl.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:hx,height:_x,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
|
|
395
|
-
`),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Jr(rv,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(qs(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})}async dispose(){await this.remove()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function Z1(t){return t instanceof qd}var Tu=class{static getLatestSupportedVersion(e){let i=new ta(e),o=new qd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Iu(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let s of i)o[s]=(a=(n=e[s])!=null?n:t[s])!=null?a:void 0;return o}var X1="Inner error. Unexpectedly root annotation container null reference exception",J1="Annotation with such name already exists",e0="Annotation with such name does not exist";var $l=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var yl=require("@vkontakte/videoplayer-shared/es2018"),bx="1",$x=100,ku=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new yl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,yl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},$x);this.subscriptions.add((0,yl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new $l(X1);if(this.annotations.has(e))throw new $l(J1);i.style.zIndex=(o=i.style.zIndex)!=null?o:bx,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new $l(e0);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Sa=require("@vkontakte/videoplayer-shared/es2018"),Fo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Sa.assertNonNullable)(e),(0,Sa.assertNonNullable)(i),(0,Sa.assertNonNullable)(n),n.interactiveData&&(0,Sa.assertNonNullable)(o),this.subscription=new Sa.Subscription,this.subscription}};var Kd=class extends Fo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...le(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Qd=class extends Fo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...le(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,y=xe(f),u=()=>y&&xe(p);return o.add(p.subscribe(_=>{if(!y)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 Gd=class extends Fo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=le("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 t0=require("@vkontakte/videoplayer-shared/es2018"),sv=le(!1),Eu=null,Yd=class extends Fo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...sv,set:(i,o=!1)=>{i!==xe(sv)&&(this.clearTimeout(),sv.set(i),!i&&Eu&&(Eu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:s,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(l.subscribe(y=>{xe(s)&&y&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,t0.combine)({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:y,isInteractiveTime$:u,interactiveTimeIndicator:_})=>{var w,b;if(!(!y||!(_!=null&&_.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Eu===null&&(Eu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(b=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||b.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Pu=require("@vkontakte/videoplayer-shared/es2018");var jd=class extends Fo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...le(null),toggle:Pu.noop};this.checkIfShouldHide=i=>Ss(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,s=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(xe(s)))return;let l=xe(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:y}=n.ui.controls,u=xe(p),_=xe(f);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),y.remove(Vp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=_==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),y.add(Vp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Pu.combine)({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(y){d({message:"Cant hide graph"})}})),o}};var av=require("@vkontakte/videoplayer-shared/es2018"),Zd=class extends Fo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:le(!1),isEnabled$:le(!1),type$:le(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new av.ValueSubject(!1),isEnabled$:new av.ValueSubject(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};var Mu=require("@vkontakte/videoplayer-shared/es2018");var Au=require("@vkontakte/videoplayer-shared/es2018"),i0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?yx({maxCount:t}):void 0,e!==0?xx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},yx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Au.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},xx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Au.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Au.safeStorage.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let s=i()[a];if(s){let d=Date.now()-s.launchTime>t;return d&&n(a),d}else return!0}}};var Xd=class extends Fo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:le({}),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=i0({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,Mu.filterChanged)(),(0,Mu.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 o0=()=>[Kd,Qd,Gd,Yd,jd,Zd,Xd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var xl=require("@vkontakte/videoplayer-shared/es2018");var wx=Object.defineProperty,Sx=(t,e,i)=>e in t?wx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ii=(t,e,i)=>Sx(t,typeof e!="symbol"?e+"":e,i),Cx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ki.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Jd.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},bn=X(void 0),Lu=class extends HTMLElement{constructor(){super(),ii(this,"svelteStubComponent"),ii(this,"svelteRootComponent"),ii(this,"store"),ii(this,"microStoresRoot"),ii(this,"statistics"),ii(this,"sentry"),ii(this,"_shadowRoot"),ii(this,"playerContainer"),ii(this,"rootContainer"),ii(this,"shadowRootContainer"),ii(this,"uiConfig"),ii(this,"coreConfig"),ii(this,"statisticsConfig"),ii(this,"interactiveController"),ii(this,"interactiveContainer"),ii(this,"graphMadePause"),ii(this,"currentPlayingVideoIndex",0),ii(this,"needToRepeatPlaylist",!1),ii(this,"videoConfig"),ii(this,"pictureInPictureApi"),ii(this,"mediaSessionApi"),ii(this,"unsubscribePlayerPhaseSubscription"),ii(this,"logger"),ii(this,"log"),ii(this,"subscription"),ii(this,"interactiveSubscription"),ii(this,"annotationsApi"),ii(this,"slotsApi"),ii(this,"prevIsid"),ii(this,"isInited",!1),ii(this,"internalsExposure",null),ii(this,"shadowDOMCallbacksDisabled",!1),ii(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:f,statVKAppId:y,refreshStatAuthToken:u,autoplay:_,isMobile:w,isTouch:b,refDomain:C,deviceId:T,interactiveData:I}=Iu(this.videoConfig,i),M=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,P=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;P&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&k)return new r0.OneStat({movieId:k,albumId:d,place:l,trackCode:f,vkAppId:y,autoplay:(s=_&&!this.interactiveController)!=null?s:!1,mobile:b!=null?b:w,clip:V,refDomain:C,deviceId:T,...M&&(!this.isInited||P)&&{projectId:Number(M)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),xl.devNull.create("ui"),this.logger=new Ki.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Ki.Subscription,this.interactiveSubscription=new Ki.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=fe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=Jr(ov,s)}disconnectedCallback(){var e,i,o,n,a;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),xl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},o){var n,a,s,d,l,p,f,y;if(!this.videoConfig)return;let{albumId:u,statPlace:_,statAuthToken:w,preload:b,autoplay:C,volume:T,muted:I,fromTime:M,canRewindLive:P,supportLink:k,showAds:V,adsSlotId:W,adsParams:j={},adsPreviewParam:H,adsAutoplayParam:Q,interfaceLanguage:ie,isCyrillicRelatedInterface:Z,logoClickable:se,logoHidden:ce,isMobile:Ee,isTouch:Me,isAudioDisabled:ge,isLiveCatchUpMode:ae,fullScreenTarget:Pe,failoverHosts:ne,canDownload:N,callbacks:ue,interactiveData:_e,showThumbTimer:ze,additionalButtons:re=[],additionalSettingsMenuItems:K=[],additionalContextMenuItems:he=[],repeat:ee,saveRate:He,volumeMultiplier:Ze,showEndScreen:we,showAutoplayNext:Ve}=Iu(this.videoConfig,i),{sources:Ie,title:Ue,thumbUrl:dt,unitedVideoId:ct,isClip:ot=!1,duration:Et,adsParams:_t={},videoEpisodes:Yt,previewThumbsData:Zt,subtitles:Lt,live:Nt}=e,O={...j,..._t},be=this.getNextVideoInfo(),oe={sources:Ie,title:Ue,thumbUrl:dt,subtitles:Lt,unitedVideoId:ct,isClip:ot,live:Nt,albumId:u,statPlace:_,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,showAds:V,adsSlotId:W,adsParams:O,adsPreviewParam:H,adsAutoplayParam:Q,duration:Et,logoClickable:se,logoHidden:ce,isTouch:Me!=null?Me:Ee,repeat:ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Be={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(oe)}`});let Qe=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),je=(Qe==null?void 0:Qe.oneStat)||this.createOneStat(e,i);je&&(this.statistics=new du(je,Qe==null?void 0:Qe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ea(this.uiConfig.sentry,{version:Zs,env:Rc},{movieId:ct,albumId:u,place:_,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Me!=null?Me:Ee,clip:ot}),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 it=!!_e,Je=[],$t="tooltip_interactive_go_back_disabled_first";if(it&&this.interactiveController){let Ge=this.interactiveController.state.isInitialChapter$.getValue(),ri=this.interactiveController.getHistoryState();Ge&&Je.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Je.push("SEEK_TO_INTERACTIVE_BUTTON"),ri.hasPrevChapter$.getValue()||(Je.push("PLAY_PREV_CHAPTER_BUTTON"),Ge||(ri.isGoBackLimited$.getValue()?$t="tooltip_interactive_go_back_disabled_limit":$t="tooltip_interactive_go_back_disabled"))}let pt=()=>{var Ge;this.isInited=!1,this.prevIsid=void 0;let ri=(o==null?void 0:o.info.isEnded$.getValue())&&((Ge=this.interactiveController)==null?void 0:Ge.state.isEndChapter$.getValue());ue.onReplayInteractiveVideo&&!ri?ue.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=_1({player:o,interfaceLanguage:ie,isCyrillicRelatedInterface:Z,videoId:ct,isClip:ot,isLiveCatchUpMode:ae,isAudioDisabled:ge,statAuthToken:w,callbacks:ue,webApi:Be,videoEpisodes:Yt,previewThumbsData:Zt,canDownload:N,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Je,isInteractive:it,saveRate:He,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:$t,hasInteractiveBranches:!!((y=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?re:[],additionalSettingsMenuItems:K!=null?K:[],additionalContextMenuItems:he!=null?he:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:ee&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:mt}=this.microStoresRoot=o0(),Dt=()=>{var Ge,ri,$i,tt,jt,Pi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Vt=>{var yt;return(yt=ue==null?void 0:ue.onCurrentFormatChanged)==null?void 0:yt.call(ue,Vt)})),this.subscription.add(mt.interactiveControlsOpacity$.subscribe(Vt=>{var yt;Vt!==null&&((yt=this==null?void 0:this.interactiveController)==null||yt.setDisabledControls(Vt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Vt=>{var yt;return(yt=ue==null?void 0:ue.onThroughputEstimationChanged)==null?void 0:yt.call(ue,Vt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Vt=>{var yt;return(yt=ue==null?void 0:ue.onTrafficSavingEnabledChanged)==null?void 0:yt.call(ue,Vt)})),this.subscription.add(new Ki.Observable(Vt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(yt=>Vt.next(yt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Ki.skip)(1):Vt=>Vt).subscribe(Vt=>{var yt;return(yt=ue==null?void 0:ue.onCurrentPlaybackRateChanged)==null?void 0:yt.call(ue,Vt)})),this.subscription.add(this.store.state.volume$.subscribe(Vt=>{var yt;return(yt=ue==null?void 0:ue.onVolumeChange)==null?void 0:yt.call(ue,Vt)})),this.subscription.add(this.store.state.muted$.subscribe(Vt=>{var yt,Ot;return Vt?(yt=ue==null?void 0:ue.onMute)==null?void 0:yt.call(ue):(Ot=ue==null?void 0:ue.onUnmute)==null?void 0:Ot.call(ue)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Vt=>{var yt;return(yt=ue==null?void 0:ue.onVideoBitrateChanged)==null?void 0:yt.call(ue,Vt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Vt=>{var yt;let Ot=(yt=this.store)==null?void 0:yt.ui.controls.disabledControls$;Ot&&(Vt&&!Ot.includes(Xl)&&Ot.add(Xl),Vt||Ot.remove(Xl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Vt=>{var yt;if(!Jd.clientChecker.browser.isSamsungBrowser||!Vt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((yt=this.videoConfig)==null?void 0:yt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Vt=>{var yt;return(yt=ue==null?void 0:ue.onVSIDChanged)==null?void 0:yt.call(ue,Vt)})),this.initMediaSession(),D(bn,fe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ie,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ue,thumbUrl:dt,subtitles:Lt,live:Nt,preload:b,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,supportLink:k,showAds:V,adsSlotId:W,adsParams:O,adsPreviewParam:H,adsAutoplayParam:Q,duration:Et,logoClickable:se,logoHidden:ce,isMobile:Me!=null?Me:Ee,failoverHosts:ne,fullScreenTarget:Pe,saveRate:He,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ze,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ze,showEndScreen:we,showAutoplayNext:Ve}));let Qi={target:this.playerContainer,props:r(bn)};this.svelteRootComponent=Jr(ev,Qi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,($i=(ri=(Ge=this.videoConfig)==null?void 0:Ge.callbacks)==null?void 0:ri.onInited)==null||$i.call(ri)),(tt=this.internalsExposure)==null||tt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Pi=(jt=this.videoConfig)==null?void 0:jt.callbacks)!=null&&Pi.onDevNullLog)?xl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):xl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Jd.clientChecker.isInited$.subscribe(Ge=>{Ge&&(console.log("UI SDK async start"),Dt())}):Dt()}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,Ki.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?xe(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:f,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:p,historyApi:f,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:u,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(b=>{if(!this.isInited)return;let C=this.store;b?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(b=>{this.store&&this.store.state.isInteractiveExpectation$.set(b)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(b=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...b.config,title:(l==null?void 0:l.title)||b.config.title};let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(b.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:b,actionType:C})=>{var T,I,M,P,k,V;if(!this.store||!this.microStoresRoot)return;let W=u.getValue();if(b==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Jl)),b==="action-choice-canceled"){let j=xe(this.store.state.isPlaying$)||W;if(((M=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?M:(I=this.videoConfig)!=null&&I.isMobile)&&j){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(P=this.videoConfig)==null?void 0:(k=P.callbacks).onDisabledInteractiveClick)==null||V.call(k)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:b,removeAllOpenURI:C})=>{this.store&&b==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(Jl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let b=this.interactiveController.getHistoryState();this.subscription.add(b.history$.subscribe(C=>{var T,I,M;C.length&&((M=(I=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||M.call(I,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var b,C,T,I;(b=this.microStoresRoot)==null||b.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(b=>{this.log({message:b.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,s,d,l,p,f,y,u,_,w,b,C,T,I,M,P,k,V,W,j,H,Q,ie,Z;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Iu(Cx,(0,Ki.cloneDeepWith)(e,se=>se instanceof HTMLElement?se:void 0)),this.uiConfig=Jg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new Ki.InternalsExposure("UI"))),xl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[(0,n0.now)()]}),(0,Ki.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,Ki.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(b=this.uiConfig.isMobile)!=null?b:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((k=this.uiConfig.showLogo)!=null?k:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(W=this.videoConfig.supportLink)!=null?W:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(j=this.uiConfig.features.endScreen)!=null?j:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(H=this.uiConfig.features.autoplayNext)!=null?H:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Q=this.uiConfig.features.nextPrevButtons)!=null?Q:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ie=this.videoConfig.videos)!=null&&ie[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let se={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Tu.getLatestSupportedVersion(se):this.pictureInPictureApi=new ta(se)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Su:void 0,this.slotsApi=this.uiConfig.features.slots?new bu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new ku(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),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]),Z1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(Z=this.slotsApi)==null||Z.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(bn)&&(r(bn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(bn).nextButtonActive=this.isNextButtonActive(),r(bn).prevButtonActive=this.isPrevButtonActive(),r(bn).endScreenVideoTitle=o.nextVideoTitle,r(bn).endScreenVideoThumb=o.nextVideoThumb,r(bn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(bn)&&(r(bn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(bn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(bn).nextButtonActive=this.isNextButtonActive(),r(bn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){var e;this.log({message:"live waiting recover"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i;return(i=(e=this.statistics)==null?void 0:e.oneStat.getDeviceId())!=null?i:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=xe(this.store.state.positionExact$),s=xe(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe((0,Ki.once)()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.updateContext(e)}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}unmountComponent(e){e&&qs(e)}};var wl=require("@vkontakte/videoplayer-shared/es2018"),Vu=require("@vkontakte/videoplayer-core/es2018"),Tx=()=>{window.customElements.define("vk-video-player",Lu)};
|
|
395
|
+
/* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function dv(t,e){O(e,!0),W(t,fx);let[i,o]=De(),n=()=>S(Yt,"$isLive$",i),a=m(e,"sources",7),r=m(e,"store",7),d=m(e,"microStoresRoot",7),l=m(e,"videoConfig",7),p=m(e,"uiConfig",7),f=m(e,"title",7),b=m(e,"thumbUrl",7),u=m(e,"interactiveContainer",7),_=m(e,"interactiveController",7),w=m(e,"subtitles",7),y=m(e,"live",7),C=m(e,"preload",7),T=m(e,"autoplay",7),I=m(e,"volume",7,void 0),M=m(e,"muted",7,void 0),P=m(e,"fromTime",7),E=m(e,"canRewindLive",7),R=m(e,"showAds",7),z=m(e,"adsSlotId",7,void 0),q=m(e,"adsParams",7,void 0),U=m(e,"adsPreviewParam",7,void 0),Y=m(e,"adsAutoplayParam",7,void 0),se=m(e,"duration",7,void 0),Q=m(e,"logoClickable",7),de=m(e,"logoHidden",7),le=m(e,"isMobile",7),Me=m(e,"showNextPrevButtons",7,!1),Be=m(e,"nextButtonActive",7,!1),ge=m(e,"prevButtonActive",7,!1),ce=m(e,"endScreenVideoTitle",7,void 0),Ae=m(e,"endScreenVideoThumb",7,void 0),ae=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),Ye=m(e,"shadowRootContainer",7,void 0),ee=m(e,"outerContainerRef",7,void 0),We=m(e,"fullScreenTarget",7,void 0),ne=m(e,"failoverHosts",7,void 0),me=m(e,"showMiniTimer",7,!1),$e=m(e,"saveRate",7),Z=m(e,"seekToInteractive",7,La.noop),ze=m(e,"playPrevChapter",7,La.noop),et=m(e,"volumeMultiplier",7),Ce=m(e,"showAutoplayNext",7),ie=m(e,"showEndScreen",7,!0),Ee=m(e,"keyboardControls",15,void 0),{subscribers:qe,stores:rt}=d();dh(p());let ct=Ut(),st=p().logoLink,Tt=r().ui.debugPanelVisible,pt=r().ui.playerSize,Yt=r().state.isLive$,Ft=r().state.isInteractive&&xl.clientChecker.device.isAndroid,Pt=X(void 0),te=null,Lt=X(!1);r().getAdmanWrapper().init({switchFromAdsToVideo:r().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r().actions.internal.switchFromVideoToAds,setMuted:r().actions.external.setMuted},r().ads,{isMobile:r().ui.isMobile,mobileUnmuteButtonVisible:r().ui.mobileUnmuteButtonVisible,vsid:r().vsid}),$h(r(),rt),Ue(()=>{var G,Qt;r().ui.isMobile.set(le()),(Qt=(G=l().callbacks)==null?void 0:G.onDomReady)==null||Qt.call(G)});let j=(G=!1)=>{D(Lt,!0),G?r().actions.external.firstStart(R()):r().actions.internal.firstStart(R())},pe=()=>{if(ct.features.qualityDetailsSubMenuEnabled){let G=Hh(r().videoId);if(G)switch(G.type){case"high_quality":r().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":r().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":r().actions.internal.setQuality(G.quality);break}}else{Fh(r().videoId),Zp()&&r().actions.internal.setTrafficSavingEnabled(!0);let Qt=Qp(r().videoId);Qt&&r().actions.internal.setQuality(Qt)}};function Pe(G){var ci,ft,tt;let Qt=a()||G;Qt&&r().initVideo({container:s(Pt),sources:Qt,failoverHosts:ne(),subtitles:w(),volumeMultiplier:et()});let ui=La.safeStorage.get(rd)==="true";Tt.set(ui),P()>0&&r().actions.external.seekTime(P());let Mi=le()?ct.volumeDefault:(ft=(ci=I())!=null?ci:Wc())!=null?ft:ct.volumeDefault,si=(tt=M())!=null?tt:Vh();if(r().actions.external.setVolume(Mi),r().actions.external.setMuted(si),r().getAdmanWrapper().setInitialVolume(si?0:Mi),pe(),ct.features.saveRate&&$e()){let Vt=Nh();Vt&&!n()&&r().actions.internal.setPlaybackRate(Vt)}if(Ce()){let Vt=Oh();Vt&&r().actions.internal.setAutoplayNextEnabled(Vt)}r().ui.isAutoplay.set(T()),T()?j():C()&&ct.features.preload&&r().actions.internal.preload()}let Re=G=>{if(window.ResizeObserver){let Qt,ui;te=new ResizeObserver((0,La.throttleFn)(Mi=>{let si=Mi[0];if(si.contentBoxSize){let ci=Array.isArray(si.contentBoxSize)?si.contentBoxSize[0]:si.contentBoxSize;Qt=ci.inlineSize,ui=ci.blockSize}else si.contentRect&&(Qt=si.contentRect.width,ui=si.contentRect.height);pt.set({width:Qt,height:ui})},300)),te.observe(G)}pt.set({width:G.clientWidth,height:G.clientHeight})},fe=()=>{document.hidden&&r().actions.external.stop()};Nt(()=>{var ui,Mi,si,ci;Ft&&document.addEventListener("visibilitychange",fe),ct.debugLog&&r().actions.internal.startLogging(),Re(s(Pt));let G=qe.map(ft=>ft.init({store:r(),microStores:rt,config:l(),interactiveController:_(),uiConfig:p()})),Qt=()=>{Ft&&document.removeEventListener("visibilitychange",fe),te==null||te.disconnect(),G.forEach(ft=>ft.unsubscribe()),r().destroy()};return((ui=y())==null?void 0:ui.status)==="upcoming"?(r().actions.internal.setLiveWaitingStart(!0),Qt):((Mi=y())==null?void 0:Mi.status)==="waiting"?(r().actions.internal.setLiveWaitingRecover(!0),Qt):(((si=y())==null?void 0:si.status)==="finished"||((ci=y())==null?void 0:ci.status)==="postlive")&&!(a()&&(0,xl.areValidLiveRecordSources)(a()))?(r().actions.internal.setLiveWaitingRecord(!0),Qt):(Pe(),Qt)});function Ke(){s(Lt)?r().actions.external.play():j(!0)}function ot(){r().actions.external.pause()}function Xe(G){r().actions.external.setMuted(G)}function wt(){r().actions.external.toggleSubtitle()}function gt(){var G;(G=r().webApi.slotsApi)!=null&&G.haveSlots()&&r().actions.external.hideControls()}function Kt(){var G;(G=r().webApi.slotsApi)!=null&&G.haveSlots()&&r().actions.external.showControls()}function _t(G){le()||G>=0&&G<=1&&r().actions.external.setVolume(G)}function wi(G){r().actions.internal.seekTime(G,i0.SeekAction.UNKNOWN)}function qt(G){r().actions.external.seekEpisodeStartTime(G)}function Ze(){r().actions.external.returnFocusToEpisodes()}function Jt(G){r().actions.external.setPlaybackRate(G)}function Gi(G){r().actions.external.setAutoQualityLimits(G)}let Oi=ku(ct.view),po=l().playerView==="preview";var Yi=px();let nt;at(Yi,Oi);var yt=h(Yi);{var di=G=>{av(G,{get store(){return r()},uiConfig:ct,get thumbUrl(){return b()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return R()},get adsSlotId(){return z()},get adsParams(){return q()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Y()},get duration(){return se()},get logoClickable(){return Q()},get logoHidden(){return de()},logoTargetUrl:st,get nextButtonActive(){return Be()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return ce()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return ae()},get supportLink(){return N()},get shadowRootContainer(){return Ye()},get outerContainerRef(){return ee()},get fullScreenTarget(){return We()},get showMiniTimer(){return me()},get playerStarted(){return s(Lt)},get seekToInteractive(){return Z()},get playPrevChapter(){return ze()},firstStart:j,seekTime:wi,get showEndScreen(){return ie()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return Me()},get videoContainer(){return s(Pt)},set videoContainer(Qt){D(Pt,ve(Qt))}})},Si=G=>{var Qt=He(),ui=he(Qt);{var Mi=ci=>{lv(ci,{get thumbUrl(){return b()},get outsideDuration(){return se()},get canRewindLive(){return E()},get videoContainer(){return s(Pt)},set videoContainer(ft){D(Pt,ve(ft))}})},si=ci=>{rv(ci,{get store(){return r()},uiConfig:ct,get title(){return f()},get thumbUrl(){return b()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return R()},get adsSlotId(){return z()},get adsParams(){return q()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Y()},get duration(){return se()},get logoClickable(){return Q()},get logoHidden(){return de()},logoTargetUrl:st,get nextButtonActive(){return Be()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return ce()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return ae()},get supportLink(){return N()},get shadowRootContainer(){return Ye()},get outerContainerRef(){return ee()},get fullScreenTarget(){return We()},get showMiniTimer(){return me()},get playerStarted(){return s(Lt)},get seekToInteractive(){return Z()},get playPrevChapter(){return ze()},firstStart:j,get showEndScreen(){return ie()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return Me()},get videoContainer(){return s(Pt)},set videoContainer(ft){D(Pt,ve(ft))},get keyboardControls(){return Ee()},set keyboardControls(ft){Ee(ft)}})};V(ui,ci=>{po?ci(Mi):ci(si,!1)})}$(G,Qt)};V(yt,G=>{le()?G(di):G(Si,!1)})}g(Yi),k(G=>nt=J(Yi,1,"root svelte-tw6yp4",null,nt,G),[()=>({"root--miui-browser":xl.clientChecker.device.isMobile&&xl.clientChecker.browser.isMiuiBrowser,"visible-outside":po})]),$(t,Yi);var Co=H({initVideo:Pe,play:Ke,pause:ot,setMuted:Xe,toggleSubtitle:wt,hideControls:gt,showControls:Kt,setVolume:_t,seekTime:wi,seekEpisodeStartTime:qt,returnFocusToEpisodes:Ze,setPlaybackRate:Jt,setAutoQualityLimits:Gi,get sources(){return a()},set sources(G){a(G)},get store(){return r()},set store(G){r(G)},get microStoresRoot(){return d()},set microStoresRoot(G){d(G)},get videoConfig(){return l()},set videoConfig(G){l(G)},get uiConfig(){return p()},set uiConfig(G){p(G)},get title(){return f()},set title(G){f(G)},get thumbUrl(){return b()},set thumbUrl(G){b(G)},get interactiveContainer(){return u()},set interactiveContainer(G){u(G)},get interactiveController(){return _()},set interactiveController(G){_(G)},get subtitles(){return w()},set subtitles(G){w(G)},get live(){return y()},set live(G){y(G)},get preload(){return C()},set preload(G){C(G)},get autoplay(){return T()},set autoplay(G){T(G)},get volume(){return I()},set volume(G){I(G)},get muted(){return M()},set muted(G){M(G)},get fromTime(){return P()},set fromTime(G){P(G)},get canRewindLive(){return E()},set canRewindLive(G){E(G)},get showAds(){return R()},set showAds(G){R(G)},get adsSlotId(){return z()},set adsSlotId(G){z(G)},get adsParams(){return q()},set adsParams(G){q(G)},get adsPreviewParam(){return U()},set adsPreviewParam(G){U(G)},get adsAutoplayParam(){return Y()},set adsAutoplayParam(G){Y(G)},get duration(){return se()},set duration(G){se(G)},get logoClickable(){return Q()},set logoClickable(G){Q(G)},get logoHidden(){return de()},set logoHidden(G){de(G)},get isMobile(){return le()},set isMobile(G){le(G)},get showNextPrevButtons(){return Me()},set showNextPrevButtons(G){Me(G)},get nextButtonActive(){return Be()},set nextButtonActive(G){Be(G)},get prevButtonActive(){return ge()},set prevButtonActive(G){ge(G)},get endScreenVideoTitle(){return ce()},set endScreenVideoTitle(G){ce(G)},get endScreenVideoThumb(){return Ae()},set endScreenVideoThumb(G){Ae(G)},get isOneVideoPlaylist(){return ae()},set isOneVideoPlaylist(G){ae(G)},get supportLink(){return N()},set supportLink(G){N(G)},get shadowRootContainer(){return Ye()},set shadowRootContainer(G){Ye(G)},get outerContainerRef(){return ee()},set outerContainerRef(G){ee(G)},get fullScreenTarget(){return We()},set fullScreenTarget(G){We(G)},get failoverHosts(){return ne()},set failoverHosts(G){ne(G)},get showMiniTimer(){return me()},set showMiniTimer(G){me(G)},get saveRate(){return $e()},set saveRate(G){$e(G)},get showAutoplayNext(){return Ce()},set showAutoplayNext(G){Ce(G)},get seekToInteractive(){return Z()},set seekToInteractive(G){Z(G)},get playPrevChapter(){return ze()},set playPrevChapter(G){ze(G)},get volumeMultiplier(){return et()},set volumeMultiplier(G){et(G)},get showEndScreen(){return ie()},set showEndScreen(G){ie(G)},get keyboardControls(){return Ee()},set keyboardControls(G){Ee(G)}});return o(),Co}var mx=Se('<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 cv(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=mx();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),$(t,o)}function uv(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");cv(t,{get style(){return s(o)}})}var vx=L('<div class="title svelte-1y9fytq"> </div>'),gx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),hx={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 pv(t,e){W(t,hx);var i=gx(),o=h(i);{var n=d=>{var l=vx(),p=h(l,!0);g(l),k(()=>_e(p,e.title)),$(d,l)};V(o,d=>{e.title&&d(n)})}var a=A(o,2);{var r=d=>{let l=v(()=>!!e.thumbUrl);uv(d,{get isWhite(){return s(l)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(r)})}g(i),k(()=>at(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var c0=require("@vkontakte/videoplayer-shared/es2018"),Qi=require("@vkontakte/videoplayer-shared/es2018"),hv=require("@vkontakte/videoplayer-core/es2018"),lc=require("@vkontakte/videoplayer-core/es2018"),Ou=require("@vkontakte/videoplayer-statistics/es2018");var Au=require("@vkontakte/videoplayer-shared/es2018"),Pu=class{constructor(){this.subscription=new Au.Subscription,this.logger=new Au.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(r){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,r;let o=xe(e.state.currentPlaybackRate$),n=xe(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(r=(a=navigator.mediaSession).setPositionState)==null||r.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 Sl=require("@vkontakte/videoplayer-shared/es2018");var _x=Se('<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 fv(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=_x();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),we(),g(o),k(()=>n=ke(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i})),$(t,o)}var bx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),$x={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 mv(t,e){O(e,!0),W(t,$x);let[i,o]=De(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(f,"$isMobile$",i),r=Ie(),d=Ut(),l=!!r.webApi.pictureInPictureApi,p=r.interfaceLanguage$,f=r.ui.isMobile,b=r.ui.t,u=v(()=>n()&&b("pip_dummy_title")),_=ku(d.view);var w=bx();J(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),at(w,_);var y=h(w);let C;var T=h(y);fv(T,{}),g(y);var I=A(y,2),M=h(I,!0);g(I),g(w),k(P=>{C=J(y,1,"dummy-image svelte-1pbsod4",null,C,P),_e(M,s(u))},[()=>({desktop:!a()})]),$(t,w),H(),o()}var yx=Object.defineProperty,xx=(t,e,i)=>e in t?yx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,wl=(t,e,i)=>xx(t,typeof e!="symbol"?e+"":e,i),wx=460,Sx=280,Jd=class{constructor({enabled:e=!0}={enabled:!0}){wl(this,"playerDomElement"),wl(this,"playerParentShadowRoot"),wl(this,"playerDummyElement"),wl(this,"svelteContext"),wl(this,"pipWindow"),wl(this,"info",{isActive$:new Sl.ValueSubject(!1),isEnabled$:new Sl.ValueSubject(!1),type:1}),this.info.isEnabled$=new Sl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Sl.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:wx,height:Sx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
|
|
396
|
+
`),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),r=a.attachShadow({mode:"open"});r.append(n),r.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=us(mv,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||(ta(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async remove(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.remove()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function o0(t){return t instanceof Jd}var Mu=class{static getLatestSupportedVersion(e){let i=new ua(e),o=new Jd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function ec(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let r of i)o[r]=(a=(n=e[r])!=null?n:t[r])!=null?a:void 0;return o}var n0="Inner error. Unexpectedly root annotation container null reference exception",r0="Annotation with such name already exists",s0="Annotation with such name does not exist";var Cl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Tl=require("@vkontakte/videoplayer-shared/es2018"),Cx="1",Tx=100,Lu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Tl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Tl.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"},Tx);this.subscriptions.add((0,Tl.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(n0);if(this.annotations.has(e))throw new Cl(r0);i.style.zIndex=(o=i.style.zIndex)!=null?o:Cx,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(s0);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,r=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+r>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Va=require("@vkontakte/videoplayer-shared/es2018"),jo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Va.assertNonNullable)(e),(0,Va.assertNonNullable)(i),(0,Va.assertNonNullable)(n),n.interactiveData&&(0,Va.assertNonNullable)(o),this.subscription=new Va.Subscription,this.subscription}};var tc=class extends jo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...re(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 ic=class extends jo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...re(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:r}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:p,isMobile:f}=a.ui,b=xe(f),u=()=>b&&xe(p);return o.add(p.subscribe(_=>{if(!b)return;let w=xe(r);xe(l)?this.state$.set(_):w!==null&&this.state$.set(!w||_)})),o.add(l.subscribe(_=>{this.state$.set(!_||u())})),o.add(r.subscribe(_=>{if(_===null)return;let w=xe(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!_)})),o}};var oc=class extends jo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=re("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(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var a0=require("@vkontakte/videoplayer-shared/es2018"),vv=re(!1),Vu=null,nc=class extends jo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...vv,set:(i,o=!1)=>{i!==xe(vv)&&(this.clearTimeout(),vv.set(i),!i&&Vu&&(Vu=!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$:r,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(l.subscribe(b=>{xe(r)&&b&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,a0.combine)({isPlaying$:d,isInteractiveTime$:r,interactiveTimeIndicator:p}).subscribe(({isPlaying$:b,isInteractiveTime$:u,interactiveTimeIndicator:_})=>{var w,y;if(!(!b||!(_!=null&&_.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Vu===null&&(Vu=!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 Ru=require("@vkontakte/videoplayer-shared/es2018");var rc=class extends jo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...re(null),toggle:Ru.noop};this.checkIfShouldHide=i=>Ds(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,r=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(xe(r)))return;let l=xe(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:b}=n.ui.controls,u=xe(p),_=xe(f);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),b.remove(Fp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=_==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),b.add(Fp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Ru.combine)({graphIsOpened:this.state$,currentGridType:r}).subscribe(async({graphIsOpened:l,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(b){d({message:"Cant hide graph"})}})),o}};var gv=require("@vkontakte/videoplayer-shared/es2018"),sc=class extends jo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:re(!1),isEnabled$:re(!1),type$:re(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:r,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new gv.ValueSubject(!1),isEnabled$:new gv.ValueSubject(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(r.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};var Nu=require("@vkontakte/videoplayer-shared/es2018");var Bu=require("@vkontakte/videoplayer-shared/es2018"),l0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Ix({maxCount:t}):void 0,e!==0?Ex({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Ix=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Bu.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}}},Ex=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Bu.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Bu.safeStorage.set(e,JSON.stringify(a)),n=a=>{let r=i();delete r[a],o(r)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let r=i()[a];if(r){let d=Date.now()-r.launchTime>t;return d&&n(a),d}else return!0}}};var ac=class extends jo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:re({}),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:r,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=l0({maxShowCount:a,timeout:r});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,Nu.filterChanged)(),(0,Nu.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 d0=()=>[tc,ic,oc,nc,rc,sc,ac].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var Il=require("@vkontakte/videoplayer-shared/es2018");var kx=Object.defineProperty,Px=(t,e,i)=>e in t?kx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,oi=(t,e,i)=>Px(t,typeof e!="symbol"?e+"":e,i),Ax={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Qi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,lc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},En=X(void 0),Du=class extends HTMLElement{constructor(){super(),oi(this,"svelteStubComponent"),oi(this,"svelteRootComponent"),oi(this,"store"),oi(this,"microStoresRoot"),oi(this,"statistics"),oi(this,"sentry"),oi(this,"_shadowRoot"),oi(this,"playerContainer"),oi(this,"rootContainer"),oi(this,"shadowRootContainer"),oi(this,"uiConfig"),oi(this,"coreConfig"),oi(this,"statisticsConfig"),oi(this,"interactiveController"),oi(this,"interactiveContainer"),oi(this,"graphMadePause"),oi(this,"currentPlayingVideoIndex",0),oi(this,"needToRepeatPlaylist",!1),oi(this,"videoConfig"),oi(this,"pictureInPictureApi"),oi(this,"mediaSessionApi"),oi(this,"unsubscribePlayerPhaseSubscription"),oi(this,"logger"),oi(this,"log"),oi(this,"subscription"),oi(this,"interactiveSubscription"),oi(this,"annotationsApi"),oi(this,"slotsApi"),oi(this,"prevIsid"),oi(this,"isInited",!1),oi(this,"internalsExposure",null),oi(this,"shadowDOMCallbacksDisabled",!1),oi(this,"createOneStat",(e,i={})=>{var o,n,a,r;if(!this.videoConfig)return;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:f,statVKAppId:b,refreshStatAuthToken:u,autoplay:_,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:I}=ec(this.videoConfig,i),M=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,P=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;P&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new Ou.OneStat({movieId:E,albumId:d,place:l,trackCode:f,vkAppId:b,autoplay:(r=_&&!this.interactiveController)!=null?r:!1,mobile:y!=null?y:w,clip:R,refDomain:C,deviceId:T,...M&&(!this.isInited||P)&&{projectId:Number(M)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(q){console.error(q),this.log({message:q.message})}}),Il.devNull.create("ui"),this.logger=new Qi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Qi.Subscription,this.interactiveSubscription=new Qi.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=ve({title:o,thumbUrl:n}),r={target:this.playerContainer,props:a};this.svelteStubComponent=us(pv,r)}disconnectedCallback(){var e,i,o,n,a,r;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.mediaSessionApi)==null||o.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(n=this.unsubscribePlayerPhaseSubscription)==null||n.call(this),(a=this.interactiveController)==null||a.destroy(),this.interactiveSubscription.unsubscribe(),(r=this.internalsExposure)==null||r.destroy(),Il.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:a}=ec(this.videoConfig,i),{unitedVideoId:r}=e;if(this.uiConfig.features.thinStatistics&&r)return new Ou.ThinOneStat.ThinOneStat({deviceId:o,movieId:r,preload:n},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var n,a,r,d,l,p,f,b,u;if(!this.videoConfig)return;let{albumId:_,statPlace:w,statAuthToken:y,preload:C,autoplay:T,volume:I,muted:M,fromTime:P,canRewindLive:E,supportLink:R,showAds:z,adsSlotId:q,adsParams:U={},adsPreviewParam:Y,adsAutoplayParam:se,interfaceLanguage:Q,isCyrillicRelatedInterface:de,logoClickable:le,logoHidden:Me,isMobile:Be,isTouch:ge,isAudioDisabled:ce,isLiveCatchUpMode:Ae,fullScreenTarget:ae,failoverHosts:N,canDownload:Ye,callbacks:ee,interactiveData:We,showThumbTimer:ne,additionalButtons:me=[],additionalSettingsMenuItems:$e=[],additionalContextMenuItems:Z=[],repeat:ze,saveRate:et,volumeMultiplier:Ce,showEndScreen:ie,showAutoplayNext:Ee}=ec(this.videoConfig,i),{sources:qe,title:rt,thumbUrl:ct,unitedVideoId:st,isClip:Tt=!1,duration:pt,adsParams:Yt={},videoEpisodes:ni,previewThumbsData:Ft,subtitles:Pt,live:te}=e,Lt={...U,...Yt},j=this.getNextVideoInfo(),pe={sources:qe,title:rt,thumbUrl:ct,subtitles:Pt,unitedVideoId:st,isClip:Tt,live:te,albumId:_,statPlace:w,autoplay:T,muted:M,volume:I,fromTime:P,canRewindLive:E,showAds:z,adsSlotId:q,adsParams:Lt,adsPreviewParam:Y,adsAutoplayParam:se,duration:pt,logoClickable:le,logoHidden:Me,isTouch:ge!=null?ge:Be,repeat:ze,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:j.nextVideoTitle,endScreenVideoThumb:j.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Pe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(pe)}`});let Re=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),fe=(Re==null?void 0:Re.oneStat)||this.createOneStat(e,i),Ke=this.createThinOneStat(e,i);(fe||Ke)&&(this.statistics=new vu(fe,Ke,Re==null?void 0:Re.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ca(this.uiConfig.sentry,{version:aa,env:Fc},{movieId:st,albumId:_,place:w,autoplay:(a=T&&!this.interactiveController)!=null?a:!1,mobile:ge!=null?ge:Be,clip:Tt}),this.interactiveController&&((l=this.prevIsid)!=null||(this.prevIsid=(d=(r=this.statistics)==null?void 0:r.oneStat)==null?void 0:d.isid$.getValue())),this.sentry={...this.sentry,...ca.getInstance()};let Xe=!!We,wt=[],gt="tooltip_interactive_go_back_disabled_first";if(Xe&&this.interactiveController){let qt=this.interactiveController.state.isInitialChapter$.getValue(),Ze=this.interactiveController.getHistoryState();qt&&wt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||wt.push("SEEK_TO_INTERACTIVE_BUTTON"),Ze.hasPrevChapter$.getValue()||(wt.push("PLAY_PREV_CHAPTER_BUTTON"),qt||(Ze.isGoBackLimited$.getValue()?gt="tooltip_interactive_go_back_disabled_limit":gt="tooltip_interactive_go_back_disabled"))}let Kt=()=>{var qt;this.isInited=!1,this.prevIsid=void 0;let Ze=(o==null?void 0:o.info.isEnded$.getValue())&&((qt=this.interactiveController)==null?void 0:qt.state.isEndChapter$.getValue());ee.onReplayInteractiveVideo&&!Ze?ee.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=I1({player:o,interfaceLanguage:Q,isCyrillicRelatedInterface:de,videoId:st,isClip:Tt,isLiveCatchUpMode:Ae,isAudioDisabled:ce,statAuthToken:y,callbacks:ee,webApi:Pe,videoEpisodes:ni,previewThumbsData:Ft,canDownload:Ye,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:wt,isInteractive:Xe,saveRate:et,interactiveRanges$:(p=this.interactiveController)==null?void 0:p.state.interactiveRanges$,isInteractiveTime$:(f=this.interactiveController)==null?void 0:f.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Kt,playPrevChapterDisabledTooltip:gt,hasInteractiveBranches:!!((u=(b=this.interactiveController)==null?void 0:b.getChapterBranches())!=null&&u.length),additionalButtons:this.uiConfig.features.additionalButtons?me:[],additionalSettingsMenuItems:$e!=null?$e:[],additionalContextMenuItems:Z!=null?Z:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:ze&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:_t}=this.microStoresRoot=d0(),wi=()=>{var qt,Ze,Jt,Gi,Oi,po;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(nt=>{var yt;return(yt=ee==null?void 0:ee.onCurrentFormatChanged)==null?void 0:yt.call(ee,nt)})),this.subscription.add(_t.interactiveControlsOpacity$.subscribe(nt=>{var yt;nt!==null&&((yt=this==null?void 0:this.interactiveController)==null||yt.setDisabledControls(nt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(nt=>{var yt;return(yt=ee==null?void 0:ee.onThroughputEstimationChanged)==null?void 0:yt.call(ee,nt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(nt=>{var yt;return(yt=ee==null?void 0:ee.onTrafficSavingEnabledChanged)==null?void 0:yt.call(ee,nt)})),this.subscription.add(new Qi.Observable(nt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(yt=>nt.next(yt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Qi.skip)(1):nt=>nt).subscribe(nt=>{var yt;return(yt=ee==null?void 0:ee.onCurrentPlaybackRateChanged)==null?void 0:yt.call(ee,nt)})),this.subscription.add(this.store.state.volume$.subscribe(nt=>{var yt;return(yt=ee==null?void 0:ee.onVolumeChange)==null?void 0:yt.call(ee,nt)})),this.subscription.add(this.store.state.muted$.subscribe(nt=>{var yt,di;return nt?(yt=ee==null?void 0:ee.onMute)==null?void 0:yt.call(ee):(di=ee==null?void 0:ee.onUnmute)==null?void 0:di.call(ee)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(nt=>{var yt;return(yt=ee==null?void 0:ee.onVideoBitrateChanged)==null?void 0:yt.call(ee,nt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(nt=>{var yt;let di=(yt=this.store)==null?void 0:yt.ui.controls.disabledControls$;di&&(nt&&!di.includes(sd)&&di.add(sd),nt||di.remove(sd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async nt=>{var yt;if(!lc.clientChecker.browser.isSamsungBrowser||!nt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((yt=this.videoConfig)==null?void 0:yt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(nt=>{var yt;return(yt=ee==null?void 0:ee.onVSIDChanged)==null?void 0:yt.call(ee,nt)})),this.initMediaSession(),D(En,ve({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:qe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:rt,thumbUrl:ct,subtitles:Pt,live:te,preload:C,autoplay:T,muted:M,volume:I,fromTime:P,canRewindLive:E,supportLink:R,showAds:z,adsSlotId:q,adsParams:Lt,adsPreviewParam:Y,adsAutoplayParam:se,duration:pt,logoClickable:le,logoHidden:Me,isMobile:ge!=null?ge:Be,failoverHosts:N,fullScreenTarget:ae,saveRate:et,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ne,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:j.nextVideoTitle,endScreenVideoThumb:j.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ce,showEndScreen:ie,showAutoplayNext:Ee}));let Yi={target:this.playerContainer,props:s(En)};this.svelteRootComponent=us(dv,Yi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Jt=(Ze=(qt=this.videoConfig)==null?void 0:qt.callbacks)==null?void 0:Ze.onInited)==null||Jt.call(Ze)),(Gi=this.internalsExposure)==null||Gi.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((po=(Oi=this.videoConfig)==null?void 0:Oi.callbacks)!=null&&po.onDevNullLog)?Il.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Il.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?lc.clientChecker.isInited$.subscribe(qt=>{qt&&(console.log("UI SDK async start"),wi())}):wi()}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 r=a==null?void 0:a.uiInfo;r&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=r.onControlsVisibleChanged)==null?void 0:l.call(r,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=r.onIsMobileChanged)==null?void 0:l.call(r,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=r.onPlayerSizeChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=r.onPrevButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=r.onPlayButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=r.onReplayButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=r.onNextButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=r.onPlayPrevChapterChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=r.onSeekToInteractiveButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=r.onGraphButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=r.onLiveButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=r.onTimeUpdateChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=r.onEpisodesChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=r.onSubtitlesChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var l;return(l=r.onTopLeftControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var l;return(l=r.onTopRightControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var l;return(l=r.onBottomLeftControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var l;return(l=r.onBottomRightControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var l;return(l=r.onMiddleControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var l;return(l=r.onBottomControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var l;return(l=r.onTitleChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=r.onSettingsChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=r.onFullscreenChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=r.onChromecastChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=r.onPipChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=r.onVkLogoChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=r.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=r.onTimelineChanged)==null?void 0:l.call(r,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,Qi.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 r=(i=this.store)==null?void 0:i.interfaceLanguage$,d=r?xe(r):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:f,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:p,historyApi:f,vkVideoLoader:b,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:u,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(y=>{if(!this.isInited)return;let C=this.store;y?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(y=>{this.store&&this.store.state.isInteractiveExpectation$.set(y)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(y=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...y.config,title:(l==null?void 0:l.title)||y.config.title};let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:C})=>{var T,I,M,P,E,R;if(!this.store||!this.microStoresRoot)return;let z=u.getValue();if(y==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(ad)),y==="action-choice-canceled"){let q=xe(this.store.state.isPlaying$)||z;if(((M=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?M:(I=this.videoConfig)!=null&&I.isMobile)&&q){this.store.ui.interactiveHideMobileControls.set(!0);return}(R=(P=this.videoConfig)==null?void 0:(E=P.callbacks).onDisabledInteractiveClick)==null||R.call(E)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:C})=>{this.store&&y==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(ad)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let y=this.interactiveController.getHistoryState();this.subscription.add(y.history$.subscribe(C=>{var T,I,M;C.length&&((M=(I=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||M.call(I,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,C,T,I;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,r,d,l,p,f,b,u,_,w,y,C,T,I,M,P,E,R,z,q,U,Y,se,Q;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=ec(Ax,(0,Qi.cloneDeepWith)(e,de=>de instanceof HTMLElement?de:void 0)),this.uiConfig=lh((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(r=this.uiConfig.sentry)!=null?r:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new Qi.InternalsExposure("UI"))),Il.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,c0.now)()]}),(0,Qi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,Qi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(b=this.uiConfig.features.pip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((E=this.uiConfig.showLogo)!=null?E:!this.videoConfig.logoHidden),(R=this.videoConfig).canRewindLive&&(R.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(q=this.uiConfig.features.endScreen)!=null?q:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(U=this.uiConfig.features.autoplayNext)!=null?U:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Y=this.uiConfig.features.nextPrevButtons)!=null?Y:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((se=this.videoConfig.videos)!=null&&se[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let de={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Mu.getLatestSupportedVersion(de):this.pictureInPictureApi=new ua(de)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Pu:void 0,this.slotsApi=this.uiConfig.features.slots?new Tu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Lu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),o0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(Q=this.slotsApi)==null||Q.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();s(En)&&(s(En).showNextPrevButtons=this.needToShowNextPrevButtons(),s(En).nextButtonActive=this.isNextButtonActive(),s(En).prevButtonActive=this.isPrevButtonActive(),s(En).endScreenVideoTitle=o.nextVideoTitle,s(En).endScreenVideoThumb=o.nextVideoThumb,s(En).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,s(En)&&(s(En).needToRepeatPlaylist=this.needToRepeatPlaylist,s(En).showNextPrevButtons=this.needToShowNextPrevButtons(),s(En).nextButtonActive=this.isNextButtonActive(),s(En).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i,n=o.currentFormat$.getValue();return(n===hv.VideoFormat.DASH_LIVE_CMAF||n===hv.VideoFormat.HLS_LIVE_CMAF)&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let a=()=>{var r;(r=this.store)==null||r.actions.internal.setLiveWaitingRecover(!0)};n&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var r;n||a(),(r=this.store)==null||r.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;o||n(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let a=()=>{var r,d;(r=this.store)==null||r.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){a();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=a)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=xe(this.store.state.positionExact$),r=xe(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe((0,Qi.once)()).subscribe(()=>{r&&n>=r.time?this.seekTime(r.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&ta(e)}};var El=require("@vkontakte/videoplayer-shared/es2018"),Hu=require("@vkontakte/videoplayer-core/es2018"),Mx=()=>{window.customElements.define("vk-video-player",Du)};
|