@vkontakte/videoplayer 1.1.62-dev.435bbcab.0 → 1.1.62-dev.92a4e8bb.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 +152 -68
- package/es2015.esm.js +152 -68
- package/es2018.cjs.js +154 -70
- package/es2018.esm.js +154 -70
- package/es2024.cjs.js +151 -67
- package/es2024.esm.js +151 -67
- package/esnext.cjs.js +151 -67
- package/esnext.esm.js +151 -67
- package/evergreen.esm.js +151 -67
- package/package.json +5 -5
- package/types/types/index.d.ts +8 -4
package/es2015.cjs.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.62-dev.
|
|
3
|
-
* Wed, 21 May 2025
|
|
2
|
+
* @vkontakte/videoplayer v1.1.62-dev.92a4e8bb.0
|
|
3
|
+
* Wed, 21 May 2025 10:38:08 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-62/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var
|
|
6
|
+
"use strict";var g0=Object.create;var Al=Object.defineProperty,h0=Object.defineProperties,_0=Object.getOwnPropertyDescriptor,b0=Object.getOwnPropertyDescriptors,$0=Object.getOwnPropertyNames,hv=Object.getOwnPropertySymbols,y0=Object.getPrototypeOf,_v=Object.prototype.hasOwnProperty,x0=Object.prototype.propertyIsEnumerable;var bv=t=>{throw TypeError(t)};var Uu=(t,e,i)=>e in t?Al(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,W=(t,e)=>{for(var i in e||(e={}))_v.call(e,i)&&Uu(t,i,e[i]);if(hv)for(var i of hv(e))x0.call(e,i)&&Uu(t,i,e[i]);return t},Rt=(t,e)=>h0(t,b0(e));var w0=(t,e)=>{for(var i in e)Al(t,i,{get:e[i],enumerable:!0})},$v=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $0(e))!_v.call(t,n)&&n!==i&&Al(t,n,{get:()=>e[n],enumerable:!(o=_0(e,n))||o.enumerable});return t};var yv=(t,e,i)=>(i=t!=null?g0(y0(t)):{},$v(e||!t||!t.__esModule?Al(i,"default",{value:t,enumerable:!0}):i,t)),S0=t=>$v(Al({},"__esModule",{value:!0}),t);var Un=(t,e,i)=>Uu(t,typeof e!="symbol"?e+"":e,i),zu=(t,e,i)=>e.has(t)||bv("Cannot "+i);var Pi=(t,e,i)=>(zu(t,e,"read from private field"),i?i.call(t):e.get(t)),hs=(t,e,i)=>e.has(t)?bv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),La=(t,e,i,o)=>(zu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),xv=(t,e,i)=>(zu(t,e,"access private method"),i);var It=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())});var Bx={};w0(Bx,{ControlButtonType:()=>Id,GridTypes:()=>Pr,InterfaceLanguage:()=>Cl.InterfaceLanguage,MenuItemType:()=>dl,PlayerPhase:()=>Gr,VERSION:()=>ia,VKNumericLanguage:()=>Cl.VKNumericLanguage,VideoFormat:()=>Du.VideoFormat,VideoQuality:()=>Du.VideoQuality,loadVKLangPack:()=>Cl.loadVKLangPack,registerPlayerWebComponent:()=>Nx});module.exports=S0(Bx);var _s="[",Os="[!",Hs="]",Xr={};var Ai=Symbol(),vi=Symbol("filename"),wv=Symbol("hmr"),Sv="http://www.w3.org/1999/xhtml",qu="http://www.w3.org/2000/svg";var fc=!0;var Cv,Tv,Wu=(Tv=(Cv=globalThis.process)==null?void 0:Cv.env)==null?void 0:Tv.NODE_ENV;Wu||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Ee=Wu&&!Wu.toLowerCase().includes("prod");var qo=Symbol("$state"),Jr=Symbol("$state metadata"),Ml=Symbol("legacy props"),kv=Symbol("");var wr=Array.isArray,Iv=Array.prototype.indexOf,Ll=Array.from,Ku=Object.keys,uo=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,mc=Object.getOwnPropertyDescriptors,Qu=Object.prototype,Ev=Array.prototype,es=Object.getPrototypeOf;function bs(t){return typeof t=="function"}var ne=()=>{};function Pv(t){return t()}function $s(t){for(var e=0;e<t.length;e++)t[e]()}var Vl=[],Gu=[];function Av(){var t=Vl;Vl=[],$s(t)}function C0(){var t=Gu;Gu=[],$s(t)}function Zo(t){Vl.length===0&&queueMicrotask(Av),Vl.push(t)}function Yu(){Vl.length>0&&Av(),Gu.length>0&&C0()}function vc(t){return t===this.v}function Va(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Mv(t,e){return t!==e}function Ra(t){return!Va(t,this.v)}function Lv(){if(Ee){let t=new Error(`derived_references_self
|
|
7
7
|
A derived value cannot reference itself recursively
|
|
8
|
-
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function
|
|
8
|
+
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function Vv(t){if(Ee){let e=new Error(`effect_in_teardown
|
|
9
9
|
\`${t}\` cannot be used inside an effect cleanup function
|
|
10
|
-
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function
|
|
10
|
+
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Rv(){if(Ee){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Dv(t){if(Ee){let e=new Error(`effect_orphan
|
|
11
11
|
\`${t}\` can only be used inside an effect (e.g. during component initialisation)
|
|
12
|
-
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function
|
|
12
|
+
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Nv(){if(Ee){let t=new Error(`effect_update_depth_exceeded
|
|
13
13
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
14
|
-
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function
|
|
14
|
+
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Bv(){if(Ee){let t=new Error(`hydration_failed
|
|
15
15
|
Failed to hydrate the application
|
|
16
|
-
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Ov(){if(Ee){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Hv(t){if(Ee){let e=new Error(`props_invalid_value
|
|
17
17
|
Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
|
|
18
|
-
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function
|
|
18
|
+
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function Fv(t){if(Ee){let e=new Error(`props_rest_readonly
|
|
19
19
|
Rest element properties of \`$props()\` such as \`${t}\` are readonly
|
|
20
|
-
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function
|
|
20
|
+
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Uv(t){if(Ee){let e=new Error(`rune_outside_svelte
|
|
21
21
|
The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
22
|
-
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function
|
|
22
|
+
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function zv(){if(Ee){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qv(){if(Ee){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wv(){if(Ee){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Kv(){if(Ee){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var zr=!1,qr=!1;function Qv(){zr=!0}var Rl=null;function ts(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
|
|
23
23
|
`),n=[`
|
|
24
|
-
`];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;
|
|
25
|
-
`)}),
|
|
24
|
+
`];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;uo(e,"stack",{value:n.join(`
|
|
25
|
+
`)}),uo(e,"name",{value:`${t}Error`})}return e}var Fs=new Set,Da=new Map;function Ju(t){Fs=t}function Ki(t,e){var i={f:0,v:t,reactions:null,equals:vc,rv:0,wv:0};return Ee&&qr&&(i.created=e!=null?e:ts("CreatedAt"),i.debug=null),i}function ie(t){return T0(Ki(t))}function os(t,e=!1){var o,n;let i=Ki(t);return e||(i.equals=Ra),zr&&Pt!==null&&Pt.l!==null&&((n=(o=Pt.l).s)!=null?n:o.s=[]).push(i),i}function T0(t){return Ft!==null&&!Wn&&(Ft.f&2)!==0&&(Sr===null?jv([t]):Sr.push(t)),t}function O(t,e){return Ft!==null&&!Wn&&Wr()&&(Ft.f&18)!==0&&(Sr===null||!Sr.includes(t))&&Kv(),Na(t,e)}function Na(t,e){var o;if(!t.equals(e)){var i=t.v;if(zs?Da.set(t,e):Da.set(t,i),t.v=e,t.wv=Nl(),Ee&&qr&&(t.updated=ts("UpdatedAt"),Ct!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),Yv(t,2048),Wr()&&Ct!==null&&(Ct.f&1024)!==0&&(Ct.f&96)===0&&(qn===null?Zv([t]):qn.push(t)),Ee&&Fs.size>0){let n=Array.from(Fs);for(let a of n)(a.f&1024)!==0&&en(a,4096),ys(a)&&Ba(a);Fs.clear()}}return e}function Yv(t,e){var i=t.reactions;if(i!==null)for(var o=Wr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===Ct)){if(Ee&&(d&262144)!==0){Fs.add(s);continue}en(s,e),(d&1280)!==0&&((d&2)!==0?Yv(s,4096):Oa(s))}}}function v(t){var e=2050,i=Ft!==null&&(Ft.f&2)!==0?Ft:null;Ct===null||i!==null&&(i.f&256)!==0?e|=256:Ct.f|=1048576;let o={ctx:Pt,deps:null,effects:null,equals:vc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:Ct};return Ee&&qr&&(o.created=ts("CreatedAt")),o}function Tr(t){let e=v(t);return e.equals=Ra,e}function gc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)fo(e[i])}}var ep=[];function k0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function I0(t){var e,i=Ct;if(po(k0(t)),Ee){let o=Fs;Ju(new Set);try{ep.includes(t)&&Lv(),ep.push(t),gc(t),e=hc(t)}finally{po(i),Ju(o),ep.pop()}}else try{gc(t),e=hc(t)}finally{po(i)}return e}function ip(t){var e=I0(t),i=(ns||(t.f&256)!==0)&&t.deps!==null?4096:1024;en(t,i),t.equals(e)||(t.v=e,t.wv=Nl())}var qs="font-weight: bold",Ws="font-weight: normal";function Xv(t,e,i){Ee?console.warn(`%c[svelte] hydration_attribute_changed
|
|
26
26
|
%cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
|
|
27
|
-
https://svelte.dev/e/hydration_attribute_changed`,
|
|
27
|
+
https://svelte.dev/e/hydration_attribute_changed`,qs,Ws):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Jv(t){Ee?console.warn(`%c[svelte] hydration_html_changed
|
|
28
28
|
%c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
|
|
29
|
-
https://svelte.dev/e/hydration_html_changed`,
|
|
29
|
+
https://svelte.dev/e/hydration_html_changed`,qs,Ws):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ks(t){Ee?console.warn(`%c[svelte] hydration_mismatch
|
|
30
30
|
%c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
|
|
31
|
-
https://svelte.dev/e/hydration_mismatch`,
|
|
31
|
+
https://svelte.dev/e/hydration_mismatch`,qs,Ws):console.warn("https://svelte.dev/e/hydration_mismatch")}function eg(){Ee?console.warn(`%c[svelte] lifecycle_double_unmount
|
|
32
32
|
%cTried to unmount a component that was not mounted
|
|
33
|
-
https://svelte.dev/e/lifecycle_double_unmount`,
|
|
33
|
+
https://svelte.dev/e/lifecycle_double_unmount`,qs,Ws):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function tg(t,e,i){Ee?console.warn(`%c[svelte] ownership_invalid_binding
|
|
34
34
|
%c${t} passed a value to ${e} with \`bind:\`, but the value is owned by ${i}. Consider creating a binding between ${i} and ${t}
|
|
35
|
-
https://svelte.dev/e/ownership_invalid_binding`,
|
|
35
|
+
https://svelte.dev/e/ownership_invalid_binding`,qs,Ws):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function op(t,e){Ee?console.warn(`%c[svelte] ownership_invalid_mutation
|
|
36
36
|
%c${t?`${t} mutated a value owned by ${e}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
|
|
37
|
-
https://svelte.dev/e/ownership_invalid_mutation`,
|
|
37
|
+
https://svelte.dev/e/ownership_invalid_mutation`,qs,Ws):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function _c(t){Ee?console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
38
38
|
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
|
|
39
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`,
|
|
39
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,qs,Ws):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ze=!1;function mo(t){Ze=t}var vt;function gi(t){if(t===null)throw Ks(),Xr;return vt=t}function Bi(){return gi(No(vt))}function g(t){if(Ze){if(No(vt)!==null)throw Ks(),Xr;vt=t}}function be(t=1){if(Ze){for(var e=t,i=vt;e--;)i=No(i);vt=i}}function Ha(){for(var t=0,e=vt;;){if(e.nodeType===8){var i=e.data;if(i===Hs){if(t===0)return e;t-=1}else(i===_s||i===Os)&&(t+=1)}var o=No(e);e.remove(),e=o}}function me(t,e=null,i){var u,f;var o=null;if(Ee&&qr&&(o=ts("CreatedAt")),typeof t!="object"||t===null||qo in t)return t;let n=es(t);if(n!==Qu&&n!==Ev)return t;var a=new Map,s=wr(t),d=Ki(0);s&&a.set("length",Ki(t.length,o));var l;if(Ee)if(l={parent:e,owners:null},i){let _=(f=(u=i.v)==null?void 0:u[Jr])==null?void 0:f.owners;l.owners=_?new Set(_):null}else l.owners=e===null?Pt!==null?new Set([Pt.function]):null:new Set;return new Proxy(t,{defineProperty(_,p,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&zv();var x=a.get(p);return x===void 0?(x=Ki(b.value,o),a.set(p,x)):O(x,me(b.value,l)),!0},deleteProperty(_,p){var b=a.get(p);if(b===void 0)p in _&&a.set(p,Ki(Ai,o));else{if(s&&typeof p=="string"){var x=a.get("length"),y=Number(p);Number.isInteger(y)&&y<x.v&&O(x,y)}O(b,Ai),ig(d)}return!0},get(_,p,b){var E;if(Ee&&p===Jr)return l;if(p===qo)return t;var x=a.get(p),y=p in _;if(x===void 0&&(!y||(E=zn(_,p))!=null&&E.writable)&&(x=Ki(me(y?_[p]:Ai,l),o),a.set(p,x)),x!==void 0){var C=r(x);if(Ee){var k=C==null?void 0:C[Jr];k&&(k==null?void 0:k.parent)!==l&&np(l,k)}return C===Ai?void 0:C}return Reflect.get(_,p,b)},getOwnPropertyDescriptor(_,p){var b=Reflect.getOwnPropertyDescriptor(_,p);if(b&&"value"in b){var x=a.get(p);x&&(b.value=r(x))}else if(b===void 0){var y=a.get(p),C=y==null?void 0:y.v;if(y!==void 0&&C!==Ai)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return b},has(_,p){var C;if(Ee&&p===Jr||p===qo)return!0;var b=a.get(p),x=b!==void 0&&b.v!==Ai||Reflect.has(_,p);if(b!==void 0||Ct!==null&&(!x||(C=zn(_,p))!=null&&C.writable)){b===void 0&&(b=Ki(x?me(_[p],l):Ai,o),a.set(p,b));var y=r(b);if(y===Ai)return!1}return x},set(_,p,b,x){var F;var y=a.get(p),C=p in _;if(s&&p==="length")for(var k=b;k<y.v;k+=1){var E=a.get(k+"");E!==void 0?O(E,Ai):k in _&&(E=Ki(Ai,o),a.set(k+"",E))}if(y===void 0?(!C||(F=zn(_,p))!=null&&F.writable)&&(y=Ki(void 0,o),O(y,me(b,l)),a.set(p,y)):(C=y.v!==Ai,O(y,me(b,l))),Ee){var P=b==null?void 0:b[Jr];P&&(P==null?void 0:P.parent)!==l&&np(l,P),og(l)}var A=Reflect.getOwnPropertyDescriptor(_,p);if(A!=null&&A.set&&A.set.call(x,b),!C){if(s&&typeof p=="string"){var T=a.get("length"),R=Number(p);Number.isInteger(R)&&R>=T.v&&O(T,R+1)}ig(d)}return!0},ownKeys(_){r(d);var p=Reflect.ownKeys(_).filter(y=>{var C=a.get(y);return C===void 0||C.v!==Ai});for(var[b,x]of a)x.v!==Ai&&!(b in _)&&p.push(b);return p},setPrototypeOf(){qv()}})}function ig(t,e=1){O(t,t.v+e)}function bc(t){return t!==null&&typeof t=="object"&&qo in t?t[qo]:t}function ng(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(a,s){let d=i.call(this,a,s);if(d===-1){for(let l=s!=null?s:0;l<this.length;l+=1)if(bc(this[l])===a){_c("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,s){let d=o.call(this,a,s!=null?s:this.length-1);if(d===-1){for(let l=0;l<=(s!=null?s:this.length-1);l+=1)if(bc(this[l])===a){_c("array.lastIndexOf(...)");break}}return d},t.includes=function(a,s){let d=n.call(this,a,s);if(!d){for(let l=0;l<this.length;l+=1)if(bc(this[l])===a){_c("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Qs,rg,Bl,sg,ag;function $c(){if(Qs===void 0){Qs=window,rg=document,Bl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;sg=zn(e,"firstChild").get,ag=zn(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0,Ee&&(t.__svelte_meta=null,ng())}}function tn(t=""){return document.createTextNode(t)}function hi(t){return sg.call(t)}function No(t){return ag.call(t)}function h(t,e){if(!Ze)return hi(t);var i=hi(vt);if(i===null)i=vt.appendChild(tn());else if(e&&i.nodeType!==3){var o=tn();return i==null||i.before(o),gi(o),o}return gi(i),i}function pe(t,e){var n,a;if(!Ze){var i=hi(t);return i.nodeType===8&&i.data===""?No(i):i}if(e&&((n=vt)==null?void 0:n.nodeType)!==3){var o=tn();return(a=vt)==null||a.before(o),gi(o),o}return vt}function M(t,e=1,i=!1){let o=Ze?vt:t;for(var n;e--;)n=o,o=No(o);if(!Ze)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=tn();return o===null?n==null||n.after(s):o.before(s),gi(s),s}return gi(o),o}function Ol(t){t.textContent=""}var lg=new WeakSet,yc=!1,Ul=!1,Hl=null,Gs=!1,zs=!1;function ap(t){zs=t}var Fl=[],wc=[],Ft=null,Wn=!1;function To(t){Ft=t}var Ct=null;function po(t){Ct=t}var Sr=null;function jv(t){Sr=t}var on=null,Qn=0,qn=null;function Zv(t){qn=t}var fg=1,Sc=0,ns=!1,Dl=null;function Nl(){return++fg}function ys(t){var _,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,a,s=(e&512)!==0,d=o&&Ct!==null&&!ns,l=i.length;if(s||d){var u=t,f=u.parent;for(n=0;n<l;n++)a=i[n],(s||!((_=a==null?void 0:a.reactions)!=null&&_.includes(u)))&&((p=a.reactions)!=null?p:a.reactions=[]).push(u);s&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<l;n++)if(a=i[n],ys(a)&&ip(a),a.wv>t.wv)return!0}(!o||Ct!==null&&!ns)&&en(t,1024)}return!1}function dg(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 yc=!1,t}function cg(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Ua(t,e,i,o){var f,_;if(yc){if(i===null&&(yc=!1),cg(e))throw t;return}if(i!==null&&(yc=!0),!Ee||o===null||!(t instanceof Error)||lg.has(t)){dg(t,e);return}lg.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let s=o;for(;s!==null;){if(Ee){var d=(_=s.function)==null?void 0:_[vi];if(d){let p=d.split("/").pop();n.push(p)}}s=s.p}let l=Bl?" ":" ";uo(t,"message",{value:t.message+`
|
|
40
40
|
${n.map(p=>`
|
|
41
41
|
${l}in ${p}`).join("")}
|
|
42
|
-
`}),
|
|
43
|
-
`)
|
|
44
|
-
`)})}if(
|
|
45
|
-
`)){let n=(i=
|
|
42
|
+
`}),uo(t,"component_stack",{value:n});let u=t.stack;if(u){let p=u.split(`
|
|
43
|
+
`),b=[];for(let x=0;x<p.length;x++){let y=p[x];y.includes("svelte/src/internal")||b.push(y)}uo(t,"stack",{value:b.join(`
|
|
44
|
+
`)})}if(dg(t,e),cg(e))throw t}function mg(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?mg(a,e,!1):e===a&&(i?en(a,2048):(a.f&1024)!==0&&en(a,4096),Oa(a))}}function hc(t){var b,x;var e=on,i=Qn,o=qn,n=Ft,a=ns,s=Sr,d=Pt,l=Wn,u=t.f;on=null,Qn=0,qn=null,ns=(u&256)!==0&&(Wn||!Gs||Ft===null),Ft=(u&96)===0?t:null,Sr=null,ql(t.ctx),Wn=!1,Sc++;try{var f=(0,t.fn)(),_=t.deps;if(on!==null){var p;if(zl(t,Qn),_!==null&&Qn>0)for(_.length=Qn+on.length,p=0;p<on.length;p++)_[Qn+p]=on[p];else t.deps=_=on;if(!ns)for(p=Qn;p<_.length;p++)((x=(b=_[p]).reactions)!=null?x:b.reactions=[]).push(t)}else _!==null&&Qn<_.length&&(zl(t,Qn),_.length=Qn);if(Wr()&&qn!==null&&!Wn&&_!==null&&(t.f&6146)===0)for(p=0;p<qn.length;p++)mg(qn[p],t);return n!==null&&(Sc++,qn!==null&&(o===null?o=qn:o.push(...qn))),f}finally{on=e,Qn=i,qn=o,Ft=n,ns=a,Sr=s,ql(d),Wn=l}}function E0(t,e){let i=e.reactions;if(i!==null){var o=Iv.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&&(on===null||!on.includes(e))&&(en(e,4096),(e.f&768)===0&&(e.f^=512),gc(e),zl(e,0))}function zl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)E0(t,i[o])}function Ba(t){var e=t.f;if((e&16384)===0){en(t,1024);var i=Ct,o=Pt,n=Gs;if(Ct=t,Gs=!0,Ee){var a=nn;Wl(t.component_function)}try{(e&16)!==0?vg(t):dp(t),lp(t);var s=hc(t);t.teardown=typeof s=="function"?s:null,t.wv=fg;var d=t.deps;if(Ee&&qr&&(t.f&2048)!==0&&d!==null)for(let u=0;u<d.length;u++){var l=d[u];l.trace_need_increase&&(l.wv=Nl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Ee&&wc.push(t)}catch(u){Ua(u,t,i,o||t.ctx)}finally{Gs=n,Ct=i,Ee&&Wl(a)}}}function ug(){console.error("Last ten effects were: ",wc.slice(-10).map(t=>t.fn)),wc=[]}function P0(){try{Nv()}catch(t){if(Ee&&uo(t,"stack",{value:""}),Hl!==null)if(Ee)try{Ua(t,Hl,null,null)}catch(e){throw ug(),e}else Ua(t,Hl,null,null);else throw Ee&&ug(),t}}function rp(){var t=Gs;try{var e=0;for(Gs=!0;Fl.length>0;){e++>1e3&&P0();var i=Fl,o=i.length;Fl=[];for(var n=0;n<o;n++){var a=M0(i[n]);A0(a)}}}finally{Ul=!1,Gs=t,Hl=null,Ee&&(wc=[]),Da.clear()}}function A0(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{ys(o)&&(Ba(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?cp(o):o.fn=null))}catch(n){Ua(n,o,null,o.ctx)}}}function Oa(t){Ul||(Ul=!0,queueMicrotask(rp));for(var e=Hl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Fl.push(e)}function M0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,a=n&&(o&1024)!==0;if(!a&&(o&8192)===0){if((o&4)!==0)e.push(i);else if(n)i.f^=1024;else{var s=Ft;try{Ft=i,ys(i)&&Ba(i)}catch(u){Ua(u,i,null,i.ctx)}finally{Ft=s}}var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function za(t){var e;for(t&&(Ul=!0,rp(),e=t()),Yu();Fl.length>0;)Ul=!0,rp(),Yu();return e}function ko(){return It(this,null,function*(){yield Promise.resolve(),za()})}function r(t){var e=t.f,i=(e&2)!==0;if(Dl!==null&&Dl.add(t),Ft!==null&&!Wn){Sr!==null&&Sr.includes(t)&&Wv();var o=Ft.deps;t.rv<Sc&&(t.rv=Sc,on===null&&o!==null&&o[Qn]===t?Qn++:on===null?on=[t]:(!ns||!on.includes(t))&&on.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,ys(n)&&ip(n)),Ee&&qr&&Rl!==null&&Ft!==null&&Rl.reaction===Ft){if(t.debug)t.debug();else if(t.created){var s=Rl.entries.get(t);s===void 0&&(s={read:[]},Rl.entries.set(t,s)),s.read.push(ts("TracedAt"))}}return zs&&Da.has(t)?Da.get(t):t.v}function yt(t){var e=Wn;try{return Wn=!0,t()}finally{Wn=e}}var L0=-7169;function en(t,e){t.f=t.f&L0|e}function Tc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(qo in t)Cc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&qo in i&&Cc(i)}}}function Cc(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{Cc(t[o],e)}catch(n){}let i=es(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=mc(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function pp(t){Ct===null&&Ft===null&&Dv(t),Ft!==null&&(Ft.f&256)!==0&&Ct===null&&Rv(),zs&&Vv(t)}function V0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Ys(t,e,i,o=!0){var l;var n=Ct;if(Ee)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Pt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Ee&&(a.component_function=nn),i)try{Ba(a),a.f|=32768}catch(u){throw fo(a),u}else e!==null&&Oa(a);var s=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!s&&o&&(n!==null&&V0(a,n),Ft!==null&&(Ft.f&2)!==0)){var d=Ft;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function rn(t){let e=Ys(8,null,!1);return en(e,1024),e.teardown=t,e}function qe(t){var n;pp("$effect");var e=Ct!==null&&(Ct.f&32)!==0&&Pt!==null&&!Pt.m;if(Ee&&uo(t,"name",{value:"$effect"}),e){var i=Pt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:Ct,reaction:Ft})}else{var o=$n(t);return o}}function qa(t){return pp("$effect.pre"),Ee&&uo(t,"name",{value:"$effect.pre"}),Io(t)}function Ic(t){let e=Ys(64,t,!0);return()=>{fo(e)}}function hg(t){let e=Ys(64,t,!0);return(i={})=>new Promise(o=>{i.outro?yn(e,()=>{fo(e),o(void 0)}):(fo(e),o(void 0))})}function $n(t){return Ys(4,t,!1)}function Io(t){return Ys(8,t,!0)}function I(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return Ee&&uo(n,"name",{value:"{expression}"}),vo(n)}function vo(t,e=0){return Ys(24|e,t,!0)}function Qi(t,e=!0){return Ys(40,t,!0,e)}function lp(t){var e=t.teardown;if(e!==null){let i=zs,o=Ft;ap(!0),To(null);try{e.call(null)}finally{ap(i),To(o)}}}function dp(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:fo(i,e),i=o}}function vg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&fo(e),e=i}}function fo(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:No(o);o.remove(),o=a}i=!0}dp(t,e&&!i),zl(t,0),en(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();lp(t);var d=t.parent;d!==null&&d.first!==null&&cp(t),Ee&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function cp(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 yn(t,e){var i=[];Ec(t,i,!0),fp(i,()=>{fo(t),e&&e()})}function fp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Ec(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let s of t.transitions)(s.is_global||i)&&e.push(s);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;Ec(o,e,a?i:!1),o=n}}}function rs(t){_g(t,!0)}function _g(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),ys(t)&&(en(t,2048),Oa(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;_g(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var R0={},D0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,N0=/@(.+):(\d+):(\d+)$/;function B0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
|
|
45
|
+
`)){let n=(i=D0.exec(o))!=null?i:N0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function bg(){var e;let t=(e=B0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=R0[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 Pc=Symbol("ADD_OWNER");function mp(t,e,i=!1,o=!1){if(t&&!i){let n=nn,a=t[Jr];if(a&&!vp(a,n)){let s=gp(a);e&&e[vi]!==n[vi]&&!o&&tg(n[vi],e[vi],s[vi])}}Ac(t,e,new Set)}function np(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 Ac(t,e,i){var a;let o=t==null?void 0:t[Jr];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),Pc in t&&t[Pc])Io(()=>{t[Pc](e)});else{var n=es(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ai;Io(()=>{let l=t[s];d!==l&&(d=l,Ac(l,e,i))})}else Ac(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)Ac(t[s],e,i)}}}function vp(t,e){return t.owners===null?!0:t.owners.has(e)||vi in e&&[...t.owners].some(i=>i[vi]===e[vi])||t.parent!==null&&vp(t.parent,e)}function gp(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:gp(t.parent)}var O0=!1;function og(t){if(O0)return;let e=bg();if(e&&!vp(t,e)){let i=gp(t);i[vi]!==e[vi]?op(e[vi],i[vi]):op()}}function Wa(t){if(Ee){let e=new Error(`lifecycle_outside_component
|
|
46
46
|
\`${t}(...)\` can only be used during component initialisation
|
|
47
|
-
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var It=null;function Bl(t){It=t}var ln=null;function Ol(t){ln=t}function za(t){return mp("getContext").get(t)}function qa(t,e){let i=mp("setContext");return ke&&yt(()=>up(e,null,!0)),i.set(t,e),e}function Fl(){return mp("getAllContexts")}function q(t,e=!1,i){var o=It={p:It,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Ur&&!e&&(It.l={s:null,u:null,r1:[],r2:Fi(!1)}),dn(()=>{o.d=!0}),ke&&(It.function=i,ln=i)}function W(t){var s,d;let e=It;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=St,o=Bt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];lo(a.effect),So(a.reaction),xn(a.fn)}}finally{lo(i),So(o)}}It=e.p,ke&&(ln=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function qr(){return!Ur||It!==null&&It.l===null}function mp(t){var e;return It===null&&Ua(t),(e=It.c)!=null?e:It.c=new Map(N0(It)||void 0)}function N0(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 hg(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 _g(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var O0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function bg(t){return O0.includes(t)}var H0=["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 F0={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 $g(t){var e;return t=t.toLowerCase(),(e=F0[t])!=null?e:t}var Tw=[...H0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var U0=["touchstart","touchmove"];function yg(t){return U0.includes(t)}var z0=["textarea","script","style","title"];function xg(t){return z0.includes(t)}function vp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var wg=new Map;function Sg(t,e){var i=wg.get(t);i||(i=new Set,wg.set(t,i)),i.add(e)}function gp(t,e){if(e){let i=document.body;t.autofocus=!0,tn(()=>{document.activeElement===i&&t.focus()})}}function Ul(t){var e=Bt,i=St;So(null),lo(null);try{return t()}finally{So(e),lo(i)}}var hp=new Set,Ic=new Set;function Ys(t){if(!Ze)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 _p(t,e,i,o={}){function n(a){if(o.capture||Wa.call(e,a),!a.cancelBubble)return Ul(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?tn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Pt(t,e,i,o,n){var a={capture:o,passive:n},s=_p(t,e,i,a);(e===document.body||e===window||e===document)&&dn(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)hp.add(t[e]);for(var i of Ic)i(t)}function Wa(t){var P;var e=this,i=e.ownerDocument,o=t.type,n=((P=t.composedPath)==null?void 0:P.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 u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){ao(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Bt,_=St;So(null),lo(null);try{for(var p,$=[];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(Tr(y)){var[S,...k]=y;S.apply(a,[t,...k])}else y.call(a,t)}catch(A){p?$.push(A):p=A}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let A of $)queueMicrotask(()=>{throw A});throw p}}finally{t.__root=e,delete t.currentTarget,So(f),lo(_)}}}var W0;function Cg(){W0=void 0}function Ka(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ko(t,e){var i=St;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ze)return ko(vt,null),vt;n===void 0&&(n=Ka(a?t:"<!>"+t),i||(n=bi(n)));var s=o||Ml?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=bi(s),l=s.lastChild;ko(d,l)}else ko(s,s);return s}}function $e(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ze)return ko(vt,null),vt;if(!s){var d=Ka(a),l=bi(d);if(n)for(s=document.createDocumentFragment();bi(l);)s.appendChild(bi(l));else s=bi(l)}var u=s.cloneNode(!0);if(n){var f=bi(u),_=u.lastChild;ko(f,_)}else ko(u,u);return u}}function ur(t=""){if(!Ze){var e=sn(t+"");return ko(e,e),e}var i=vt;return i.nodeType!==3&&(i.before(i=sn()),_i(i)),ko(i,i),i}function Ue(){if(Ze)return ko(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=sn();return t.append(e,i),ko(e,i),t}function b(t,e){if(Ze){St.nodes_end=vt,Di();return}t!==null&&t.before(e)}var zl=!0;function Ec(t){zl=t}function ge(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 ns(t,e){return kg(t,e)}function $p(t,e){var s;gc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ze,n=vt;try{for(var a=bi(i);a&&(a.nodeType!==8||a.data!==vs);)a=No(a);if(!a)throw jr;uo(!0),_i(a),Di();let d=kg(t,Vt(K({},e),{anchor:a}));if(vt===null||vt.nodeType!==8||vt.data!==Os)throw Ws(),jr;return uo(!1),d}catch(d){if(d===jr)return e.recover===!1&&Rv(),gc(),Ll(i),uo(!1),ns(t,e);throw d}finally{uo(o),_i(n),Cg()}}var Qa=new Map;function kg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){gc();var d=new Set,l=_=>{for(var p=0;p<_.length;p++){var $=_[p];if(!d.has($)){d.add($);var w=yg($);e.addEventListener($,Wa,{passive:w});var y=Qa.get($);y===void 0?(document.addEventListener($,Wa,{passive:w}),Qa.set($,1)):Qa.set($,y+1)}}};l(kl(hp)),Ic.add(l);var u=void 0,f=mg(()=>{var _=i!=null?i:e.appendChild(sn());return Ui(()=>{if(a){q({});var p=It;p.c=a}n&&(o.$$events=n),Ze&&ko(_,null),zl=s,u=t(_,o)||{},zl=!0,Ze&&(St.nodes_end=vt),a&&W()}),()=>{var w;for(var p of d){e.removeEventListener(p,Wa);var $=Qa.get(p);--$===0?(document.removeEventListener(p,Wa),Qa.delete(p)):Qa.set(p,$)}Ic.delete(l),_!==i&&((w=_.parentNode)==null||w.removeChild(_))}});return bp.set(u,f),u}var bp=new WeakMap;function js(t,e){let i=bp.get(t);return i?(bp.delete(t),i(e)):(ke&&Zv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ze&&i===0&&Di();var n=t,a=null,s=null,d=Ai,l=i>0?65536:0,u=!1;let f=(p,$=!0)=>{u=!0,_($,p)},_=(p,$)=>{if(d===(d=p))return;let w=!1;if(Ze&&o!==-1){if(i===0){let S=n.data;S===vs?o=0:S===Bs?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Na(),_i(n),uo(!1),w=!0,o=-1)}d?(a?os(a):$&&(a=Ui(()=>$(n))),s&&wn(s,()=>{s=null})):(s?os(s):$&&(s=Ui(()=>$(n,[i+1,o]))),a&&wn(a,()=>{a=null})),w&&uo(!0)};po(()=>{u=!1,e(f),u||_(null,null)},l),Ze&&(n=vt)}function Zs(t,e,i){Ze&&Di();var o=t,n=Ai,a,s=qr()?Ev:Aa;po(()=>{s(n,n=e())&&(a&&wn(a),a=Ui(()=>i(o)))}),Ze&&(o=vt)}var $s=null;function wp(t){$s=t}function ql(t,e){return e}function Y0(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;Ll(l),l.append(i),o.clear(),bs(t,e[0].prev,e[a-1].next)}cp(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),bs(t,f.prev,f.next)),co(f.e,!d)}})}function wi(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 u=t;s=Ze?_i(bi(u)):u.appendChild(sn())}Ze&&Di();var f=null,_=!1,p=Er(()=>{var $=i();return Tr($)?$:$==null?[]:kl($)});po(()=>{var $=r(p),w=$.length;if(_&&w===0)return;_=w===0;let y=!1;if(Ze){var S=s.data===Bs;S!==(w===0)&&(s=Na(),_i(s),uo(!1),y=!0)}if(Ze){for(var k=null,P,A=0;A<w;A++){if(vt.nodeType===8&&vt.data===Os){s=vt,y=!0,uo(!1);break}var E=$[A],T=o(E,A);P=Pg(vt,d,k,null,E,T,A,n,e,i),d.items.set(T,P),k=P}w>0&&_i(Na())}Ze||j0($,d,s,n,e,o,i),a!==null&&(w===0?f?os(f):f=Ui(()=>a(s)):f!==null&&wn(f,()=>{f=null})),y&&uo(!0),r(p)}),Ze&&(s=vt)}function j0(t,e,i,o,n,a,s){var de,Re,Me,ee;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,_=e.first,p=_,$,w=null,y,S=[],k=[],P,A,E,T;if(d)for(T=0;T<u;T+=1)P=t[T],A=a(P,T),E=f.get(A),E!==void 0&&((de=E.a)==null||de.measure(),(y!=null?y:y=new Set).add(E));for(T=0;T<u;T+=1){if(P=t[T],A=a(P,T),E=f.get(A),E===void 0){var V=p?p.e.nodes_start:i;w=Pg(V,e,w,w===null?e.first:w.next,P,A,T,o,n,s),f.set(A,w),S=[],k=[],p=w.next;continue}if(l&&Z0(E,P,T,n),(E.e.f&8192)!==0&&(os(E.e),d&&((Re=E.a)==null||Re.unfix(),(y!=null?y:y=new Set).delete(E))),E!==p){if($!==void 0&&$.has(E)){if(S.length<k.length){var z=k[0],j;w=z.prev;var F=S[0],Z=S[S.length-1];for(j=0;j<S.length;j+=1)Ig(S[j],z,i);for(j=0;j<k.length;j+=1)$.delete(k[j]);bs(e,F.prev,Z.next),bs(e,w,F),bs(e,Z,z),p=z,w=Z,T-=1,S=[],k=[]}else $.delete(E),Ig(E,p,i),bs(e,E.prev,E.next),bs(e,E,w===null?e.first:w.next),bs(e,w,E),w=E;continue}for(S=[],k=[];p!==null&&p.k!==A;)(p.e.f&8192)===0&&($!=null?$:$=new Set).add(p),k.push(p),p=p.next;if(p===null)continue;E=p}S.push(E),w=E,p=E.next}if(p!==null||$!==void 0){for(var J=$===void 0?[]:kl($);p!==null;)(p.e.f&8192)===0&&J.push(p),p=p.next;var ne=J.length;if(ne>0){var fe=(n&4)!==0&&u===0?i:null;if(d){for(T=0;T<ne;T+=1)(Me=J[T].a)==null||Me.measure();for(T=0;T<ne;T+=1)(ee=J[T].a)==null||ee.fix()}Y0(e,J,fe,f)}}d&&tn(()=>{var Le;if(y!==void 0)for(E of y)(Le=E.a)==null||Le.apply()}),St.first=e.first&&e.first.e,St.last=w&&w.e}function Z0(t,e,i,o){(o&1)!==0&&Va(t.v,e),(o&2)!==0?Va(t.i,i):t.i=i}function Pg(t,e,i,o,n,a,s,d,l,u){var f=$s,_=(l&1)!==0,p=(l&16)===0,$=_?p?ts(n):Fi(n):n,w=(l&2)===0?s:Fi(s);ke&&_&&($.debug=()=>{var S=typeof w=="number"?s:w.v;u()[S]});var y={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};$s=y;try{return y.e=Ui(()=>d(t,$,w,u),Ze),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{$s=f}}function Ig(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=No(a);n.before(a),a=s}}function bs(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 X0(t,e,i){var a,s;if(!e||e===hg(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=ln)!=null&&s[hi]&&(o=`in ${ln[hi]}`),jv(vp(o))}function Wl(t,e,i,o,n){var a=t,s="",d;po(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ze&&Di();return}d!==void 0&&(co(d),d=void 0),s!==""&&(d=Ui(()=>{if(Ze){for(var u=vt.data,f=Di(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=No(f);if(f===null)throw Ws(),jr;ke&&!n&&X0(f.parentNode,u,s),ko(vt,_),a=_i(f);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var $=Ka(p);if((i||o)&&($=bi($)),ko(bi($),$.lastChild),i||o)for(;bi($);)a.before(bi($));else a.before($)}))})}function he(t,e,...i){var o=t,n=oe,a;po(()=>{n!==(n=e())&&(a&&(co(a),a=null),ke&&n==null&&Dv(),a=Ui(()=>n(o,...i)))},65536),Ze&&(o=vt)}function Si(t,e,i){Ze&&Di();var o=t,n,a;po(()=>{n!==(n=e())&&(a&&(wn(a),a=null),n&&(a=Ui(()=>i(o,n))))},65536),Ze&&(o=vt)}function Kl(t,e,i,o,n,a){var w;let s=Ze;Ze&&Di();var d=ke&&a&&((w=It)==null?void 0:w.function[hi]),l,u,f=null;Ze&&vt.nodeType===1&&(f=vt,Di());var _=Ze?vt:t,p,$=$s;po(()=>{let y=e()||null;var S=n?n():i||y==="svg"?Uu:null;if(y!==l){var k=$s;wp($),p&&(y===null?wn(p,()=>{p=null,u=null}):y===u?os(p):(co(p),Ec(!1))),y&&y!==u&&(p=Ui(()=>{if(f=Ze?f:S?document.createElementNS(S,y):document.createElement(y),ke&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),ko(f,f),o){Ze&&xg(y)&&f.append(document.createComment(""));var P=Ze?bi(f):f.appendChild(sn());Ze&&(P===null?uo(!1):_i(P)),o(f,P)}St.nodes_end=f,_.before(f)})),l=y,l&&(u=l),Ec(!0),wp(k)}},65536),s&&(uo(!0),_i(_))}var Cp;function Ag(t){return Cp=t.target,new Sp(t)}var rs,pr,Sp=class{constructor(e){ms(this,rs);ms(this,pr);var a,s;var i=new Map,o=(d,l)=>{var u=ts(l);return i.set(d,u),u};let n=new Proxy(Vt(K({},e.props||{}),{$$events:{}}),{get(d,l){var u;return r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===Tl?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var f;return O((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});Pa(this,pr,(e.hydrate?$p:ns)(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)&&Ha(),Pa(this,rs,n.$$events);for(let d of Object.keys(Pi(this,pr)))d==="$set"||d==="$destroy"||d==="$on"||ao(this,d,{get(){return Pi(this,pr)[d]},set(l){Pi(this,pr)[d]=l},enumerable:!0});Pi(this,pr).$set=d=>{Object.assign(n,d)},Pi(this,pr).$destroy=()=>{js(Pi(this,pr))}}$set(e){Pi(this,pr).$set(e)}$on(e,i){Pi(this,rs)[e]=Pi(this,rs)[e]||[];let o=(...n)=>i.call(this,...n);return Pi(this,rs)[e].push(o),()=>{Pi(this,rs)[e]=Pi(this,rs)[e].filter(n=>n!==o)}}$destroy(){Pi(this,pr).$destroy()}};rs=new WeakMap,pr=new WeakMap;function G(t,e){tn(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=Cp)==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&&Sg(e.hash,d)}})}function Mg(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=Mg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Lg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Mg(t))&&(o&&(o+=" "),o+=e);return o}function Ql(t){return typeof t=="object"?Lg(t):t!=null?t:""}var Vg=[...`
|
|
48
|
-
\r\f\xA0\v\uFEFF`];function Dg(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||Vg.includes(o[s-1]))&&(d===o.length||Vg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Rg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function Tp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Ng(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(Tp)),n&&l.push(...Object.keys(n).map(Tp));var u=0,f=-1;let y=t.length;for(var _=0;_<y;_++){var p=t[_];if(d?p==="/"&&t[_-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[_+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=_;else if(p===";"||_===y-1){if(f!==-1){var $=Tp(t.substring(u,f).trim());if(!l.includes($)){p!==";"&&_++;var w=t.substring(u,_).trim();i+=" "+w+";"}}u=_+1,f=-1}}}}return o&&(i+=Rg(o)),n&&(i+=Rg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ie(t,e,i,o,n,a){var s=t.__className;if(Ze||s!==i){var d=Dg(i,o,a);(!Ze||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 u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function kp(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 it(t,e,i,o){var n=t.__style;if(Ze||n!==e){var a=Ng(e,o);(!Ze||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(kp(t,i==null?void 0:i[0],o[0]),kp(t,i==null?void 0:i[1],o[1],"important")):kp(t,i,o));return o}var Ga=Symbol("class"),Ya=Symbol("style"),Hg=Symbol("is custom element"),Fg=Symbol("is html");function Ug(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function He(t,e,i,o){var n=zg(t);if(Ze&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||r_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Sv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&qg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Se(t,e,i,o,n=!1){var E;var a=zg(t),s=a[Hg],d=!a[Fg];let l=Ze&&s;l&&uo(!1);var u=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Ql(i.class):(o||i[Ga])&&(i.class=null),i[Ya]&&((E=i.style)!=null||(i.style=null));var p=qg(t);for(let T in i){let V=i[T];if(f&&T==="value"&&V==null){t.value=t.__value="",u[T]=V;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";ie(t,$,V,o,e==null?void 0:e[Ga],i[Ga]),u[T]=V,u[Ga]=i[Ga];continue}if(T==="style"){it(t,V,e==null?void 0:e[Ya],i[Ya]),u[T]=V,u[Ya]=i[Ya];continue}var w=u[T];if(V!==w){u[T]=V;var y=T[0]+T[1];if(y!=="$$")if(y==="on"){let z={},j="$$"+T,F=T.slice(2);var S=bg(F);if(_g(F)&&(F=F.slice(0,-7),z.capture=!0),!S&&w){if(V!=null)continue;t.removeEventListener(F,u[j],z),u[j]=null}if(V!=null)if(S)t[`__${F}`]=V,at([F]);else{let Z=function(J){u[T].call(this,J)};var A=Z;u[j]=_p(F,t,Z,z)}else S&&(t[`__${F}`]=void 0)}else if(T==="style")He(t,T,V);else if(T==="autofocus")gp(t,!!V);else if(!s&&(T==="__value"||T==="value"&&V!=null))t.value=t.__value=V;else if(T==="selected"&&f)Ug(t,V);else{var k=T;d||(k=$g(k));var P=k==="defaultValue"||k==="defaultChecked";if(V==null&&!s&&!P)if(a[T]=null,k==="value"||k==="checked"){let z=t,j=e===void 0;if(k==="value"){let F=z.defaultValue;z.removeAttribute(k),z.defaultValue=F,z.value=z.__value=j?F:null}else{let F=z.defaultChecked;z.removeAttribute(k),z.defaultChecked=F,z.checked=j?F:!1}}else t.removeAttribute(T);else P||p.includes(k)&&(s||typeof V!="string")?t[k]=V:typeof V!="function"&&He(t,k,V,n)}}}return l&&uo(!0),u}function zg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Hg]:t.nodeName.includes("-"),[Fg]:t.namespaceURI===$v}}var Bg=new Map;function qg(t){var e=Bg.get(t.nodeName);if(e)return e;Bg.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=Xr(o)}return e}function r_(t,e,i){var o;ke&&(e==="srcset"&&s_(t,i)||Ip((o=t.getAttribute(e))!=null?o:"",i)||Yv(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 Og(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function s_(t,e){var i=Og(t.srcset),o=Og(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 a_=dc?()=>performance.now():()=>Date.now(),Ar={tick:t=>(dc?requestAnimationFrame:oe)(t),now:()=>a_(),tasks:new Set};function Wg(){let t=Ar.now();Ar.tasks.forEach(e=>{e.c(t)||(Ar.tasks.delete(e),e.f())}),Ar.tasks.size!==0&&Ar.tick(Wg)}function Kg(t){let e;return Ar.tasks.size===0&&Ar.tick(Wg),{promise:new Promise(i=>{Ar.tasks.add(e={c:t,f:i})}),abort(){Ar.tasks.delete(e)}}}function Pc(t,e){Ul(()=>{t.dispatchEvent(new CustomEvent(e))})}function u_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Qg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=u_(n.trim());e[s]=a.trim()}return e}var p_=t=>t;function Pp(t,e,i,o){var A;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,_=e.style.overflow,p,$;function w(){var V;var E=Bt,T=St;So(null),lo(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{So(E),lo(T)}}var y={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||p==null||p.abort(),Pc(e,"introstart"),p=Ep(e,w(),$,1,()=>{Pc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,Pc(e,"outrostart"),$=Ep(e,w(),p,0,()=>{Pc(e,"outroend"),E==null||E()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},S=St;if(((A=S.transitions)!=null?A:S.transitions=[]).push(y),n&&zl){var k=d;if(!k){for(var P=S.parent;P&&(P.f&65536)!==0;)for(;(P=P.parent)&&(P.f&16)===0;);k=!P||(P.f&32768)!==0}k&&xn(()=>{yt(()=>y.in())})}}function Ep(t,e,i,o,n){var a=o===1;if(gs(e)){var s,d=!1;return tn(()=>{if(!d){var S=e({direction:a?"in":"out"});s=Ep(t,S,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:u,tick:f,easing:_=p_}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=Qg(u(0,1));p.push($,$)}var w=()=>1-o,y=t.animate(p,{duration:l});return y.onfinish=()=>{var F;var S=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var k=o-S,P=e.duration*Math.abs(k),A=[];if(P>0){var E=!1;if(u)for(var T=Math.ceil(P/16.666666666666668),V=0;V<=T;V+=1){var z=S+k*_(V/T),j=Qg(u(z,1-z));A.push(j),E||(E=j.overflow==="hidden")}E&&(t.style.overflow="hidden"),w=()=>{var Z=y.currentTime;return S+k*_(Z/P)},f&&Kg(()=>{if(y.playState!=="running")return!1;var Z=w();return f(Z,1-Z),!0})}y=t.animate(A,{duration:P,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 ys,ja,Gl,Mc,Gg,Lc=class Lc{constructor(e){ms(this,Mc);ms(this,ys,new WeakMap);ms(this,ja);ms(this,Gl);Pa(this,Gl,e)}observe(e,i){var o=Pi(this,ys).get(e)||new Set;return o.add(i),Pi(this,ys).set(e,o),_v(this,Mc,Gg).call(this).observe(e,Pi(this,Gl)),()=>{var n=Pi(this,ys).get(e);n.delete(i),n.size===0&&(Pi(this,ys).delete(e),Pi(this,ja).unobserve(e))}}};ys=new WeakMap,ja=new WeakMap,Gl=new WeakMap,Mc=new WeakSet,Gg=function(){var e;return(e=Pi(this,ja))!=null?e:Pa(this,ja,new ResizeObserver(i=>{for(var o of i){Lc.entries.set(o.target,o);for(var n of Pi(this,ys).get(o.target)||[])n(o)}}))},qn(Lc,"entries",new WeakMap);var Ap=Lc;var v_=new Ap({box:"border-box"});function Wr(t,e,i){var o=v_.observe(t,()=>i(t[e]));xn(()=>(yt(()=>i(t[e])),o))}function Yg(t,e){return t===e||(t==null?void 0:t[qo])===e}function ut(t={},e,i,o){return xn(()=>{var n,a;return To(()=>{n=a,a=(o==null?void 0:o())||[],yt(()=>{t!==i(...a)&&(e(t,...a),n&&Yg(i(...n),t)&&e(null,...n))})}),()=>{tn(()=>{a&&Yg(i(...a),t)&&e(null,...a)})}}),t}function Mr(t=!1){let e=It,i=e.l.u;if(!i)return;let o=()=>xc(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Fa(()=>{jg(e,o),hs(i.b)}),We(()=>{let n=yt(()=>i.m.map(kv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&We(()=>{jg(e,o),hs(i.a)})}function jg(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;Ov(e)},set:o=>{i=o}})}};h_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var h_;function Ut(t){It===null&&Ua("onMount"),Ur&&It.l!==null?g_(It).m.push(t):We(()=>{let e=yt(t);if(typeof e=="function")return e})}function Sn(t){It===null&&Ua("onDestroy"),Ut(()=>()=>yt(t))}function g_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Yl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=yt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Za=[];function fr(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=oe){let i=null,o=new Set;function n(d){if(Aa(t,d)&&(t=d,i)){let l=!Za.length;for(let u of o)u[1](),Za.push(u,t);if(l){for(let u=0;u<Za.length;u+=2)Za[u][0](Za[u+1]);Za.length=0}}}function a(d){n(d(t))}function s(d,l=oe){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(u),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 fr(i,(s,d)=>{let l=!1,u=[],f=0,_=oe,p=()=>{if(f)return;_();let w=e(o?u[0]:u,s,d);a?s(w):_=typeof w=="function"?w:oe},$=n.map((w,y)=>Yl(w,S=>{u[y]=S,f&=~(1<<y),l&&p()},()=>{f|=1<<y}));return l=!0,p(),function(){hs($),_(),l=!1}})}function xe(t){let e;return Yl(t,i=>e=i)(),e}var Vc=!1,Mp=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:ts(void 0),unsubscribe:oe};if(o.store!==t&&!(Mp 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=Yl(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&Mp in i?xe(t):r(o.source)}function Fe(){let t={};function e(){dn(()=>{for(var i in t)t[i].unsubscribe();ao(t,Mp,{enumerable:!1,value:!0})})}return[t,e]}function Lp(t){var e=Vc;try{return Vc=!1,[t(),Vc]}finally{Vc=e}}var S_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Bv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ie(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},S_)}var C_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(gs(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];gs(n)&&(n=n());let a=Wn(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(gs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Wn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===qo||e===Tl)return!1;for(let i of t.props)if(gs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){gs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ss(...t){return new Proxy({props:t},C_)}function Zg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var z,j;var n=(i&1)!==0,a=!Ur||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=Lp(()=>t[e]):u=t[e];var f=qo in t||Tl in t,_=s&&((j=(z=Wn(t,e))==null?void 0:z.set)!=null?j:f&&e in t&&(F=>t[e]=F))||void 0,p=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?p=yt(o):p=o),p);u===void 0&&o!==void 0&&(_&&a&&Nv(e),u=y(),_&&_(u));var S;if(a)S=()=>{var F=t[e];return F===void 0?y():($=!0,w=!1,F)};else{var k=(n?m:Er)(()=>t[e]);k.f|=131072,S=()=>{var F=r(k);return F!==void 0&&(p=void 0),F===void 0?p:F}}if((i&4)===0)return S;if(_){var P=t.$$legacy;return function(F,Z){return arguments.length>0?((!a||!Z||P||l)&&_(Z?S():F),F):S()}}var A=!1,E=!1,T=ts(u),V=m(()=>{var F=S(),Z=r(T);return A?(A=!1,E=!0,Z):(E=!1,T.v=F)});return s&&r(V),n||(V.equals=Ma),function(F,Z){if(Pl!==null&&(A=E,S(),r(T)),arguments.length>0){let J=Z?r(V):a&&s?ve(F):F;if(!V.equals(J)){if(A=!0,O(T,J),w&&p!==void 0&&(p=J),Zg(V))return F;yt(()=>r(V))}return F}return Zg(V)?V.v:r(V)}}var T_;typeof HTMLElement=="function"&&(T_=class extends HTMLElement{constructor(e,i,o){super();qn(this,"$$ctor");qn(this,"$$s");qn(this,"$$c");qn(this,"$$cn",!1);qn(this,"$$d",{});qn(this,"$$r",!1);qn(this,"$$p_d",{});qn(this,"$$l",{});qn(this,"$$l_u",new Map);qn(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))}}connectedCallback(){return kt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=k_(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]=Vp(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=Ag({component:this.$$ctor,target:this.shadowRoot||this,props:Vt(K({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Sc(()=>{To(()=>{var a;this.$$r=!0;for(let s of zu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Vp(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]=Vp(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 zu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Vp(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 k_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Xg="5";var Jg,eh,th;typeof window!="undefined"&&((th=(eh=(Jg=window.__svelte)!=null?Jg:window.__svelte={}).v)!=null?th:eh.v=new Set).add(Xg);var X1=require("@vkontakte/videoplayer-core/es2015"),IG=require("@vkontakte/videoplayer-core/es2015"),xa=require("@vkontakte/videoplayer-shared/es2015"),J1=require("@vkontakte/videoplayer-statistics/es2015");var Xs=require("@vkontakte/videoplayer-shared/es2015");var E_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Xs.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:Xs.VideoQuality.Q_480P,highQualityLimit:Xs.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},ih=t=>(0,Xs.fillWithDefault)(t,E_),oh=t=>qa("ui-config",t),Yt=()=>za("ui-config");var jl="vk_player_debug_panel_opened";var nh="videoplayer",rh="videoplayer";var Kr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},sh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ah=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),lh=new Set(["ShiftRight","ShiftLeft"]);var dh=["TIMELINE"],Zl=[...dh,"GRAPH_BUTTON"],Rp=[...dh,"PLAY_BUTTON"],Xl=[...Zl,"PLAY_BUTTON"];var Lr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Lr||{}),ea={xs:0,s:1,m:2,l:3,xl:4};var Jl=require("@vkontakte/videoplayer-shared/es2015"),ch=require("@vkontakte/videoplayer-core/es2015"),uh=require("@vkontakte/videoplayer-statistics/es2015");var Rc="prod",ta="1.1.62-dev.435bbcab.0";var ia=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var ph=Symbol("storeContext"),fh=Symbol("microStoresContext"),mh=(t,e)=>{qa(ph,t),qa(fh,e),Rc==="dev"&&(window.app={store:t,microStores:e})},Ce=()=>{let t=za(ph);return(0,Jl.assertNonNullable)(t,"Store context is empty!"),t},fo=()=>{let t=za(fh);return(0,Jl.assertNonNullable)(t,"MicroStores context is empty!"),t},Xt=(t,e)=>Nc(t,t.getValue(),e),Nc=(t,e,i)=>fr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),vh=(t,e,i)=>{var k,P,A,E,T,V;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),s=(P=(k=o.throughputEstimation$.getValue())==null?void 0:k.toFixed(0))!=null?P:0,d=(E=(A=o.rttEstimation$.getValue())==null?void 0:A.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${ta} (core: ${ch.VERSION}, stat: ${uh.VERSION}, shared: ${Jl.VERSION})`,f=xe(i.state.errorLog$),_=f.length?`
|
|
49
|
-
`+f.map((
|
|
50
|
-
`,
|
|
51
|
-
`,
|
|
52
|
-
`;return
|
|
53
|
-
`):void 0,p=i.state.isAudioDisabled?"disabled":
|
|
54
|
-
`)},gh=(t,e,i)=>{var z,j,F,Z;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),s={version:ta,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 u=o.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),_=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(_&&p?s.buffer=f.end-p:s.buffer=Math.max(f.end-xe(i.state.positionExact$),0));let $=o.throughputEstimation$.getValue();$&&(s.speed=$);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let y=o.liveLatency$.getValue();y&&(s.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(s.currentVideoSegmentLength=S);let k=o.currentAudioSegmentLength$.getValue();k&&(s.currentAudioSegmentLength=k);let P=xe(i.vsid);typeof P=="string"&&(s.vsid=P);let A=(z=t.info.currentVideoStream$.getValue())==null?void 0:z.codec;A&&(s.videoCodec=A);let E=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.codec;E&&(s.audioCodec=E),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(s.hdr=!0);let V=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return V&&(s.audioLanguage=V),s},hh=(t,e)=>ia(t,e,"mp4"),_h=t=>!t.type,bh=t=>!!t.type,$h=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Dc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return kt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var Mi=require("@vkontakte/videoplayer-shared/es2015"),ZE=require("@vkontakte/videoplayer-core/es2015");var yh="vk_player_prefer_traffic_saving_enabled",xh="vk_player_preferred_volume",wh="vk_player_prefer_volume_mute",Bp="vk_player_preferred_quality",Dp="vk_player_preferred_default_quality_settings",Np="vk_player_preferred_quality_settings_by_video",Sh="vk_player_preferred_stream_language",Ch="vk_player_preferred_rate",Th="vk_player_preferred_autoplay_next",kh=t=>t>1?1:t<0?0:t,Op=t=>Mi.safeStorage.set(xh,kh(t).toString(10)),Bc=()=>{let t=Mi.safeStorage.get(xh);return(0,Mi.isNullable)(t)?void 0:kh(parseFloat(t))},Hp=(t,e)=>Mi.safeStorage.set(Bp,JSON.stringify({videoId:t,value:e})),td=()=>Mi.safeStorage.remove(Bp),Fp=t=>{let e=Mi.safeStorage.get(Bp);if((0,Mi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){td();return}return o},Up=(t,e)=>{e?Mi.safeStorage.set(t,"true"):Mi.safeStorage.remove(t)},zp=t=>Mi.safeStorage.get(t)==="true",qp=t=>Up(wh,t),Ih=()=>zp(wh),ed=t=>Up(yh,t),Wp=()=>zp(yh),Eh=()=>Mi.safeStorage.get(Sh),Kp=t=>Mi.safeStorage.set(Sh,t),Ph=t=>Mi.safeStorage.set(Ch,JSON.stringify({rate:t})),Ah=()=>{let t=Mi.safeStorage.get(Ch);if((0,Mi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Mh=t=>Up(Th,t),Lh=()=>zp(Th),P_=()=>{let t=f=>{Mi.safeStorage.set(Dp,JSON.stringify(f))},e=()=>{try{let f=Mi.safeStorage.get(Dp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Mi.safeStorage.get(Np);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Mi.safeStorage.set(Np,JSON.stringify(f))},n=f=>{u(f);let _=f?i():null;if(_&&(_==null?void 0:_.videoId)===f)return Vt(K({},_),{appliesTo:"to-video"});_&&a();let p=e();return p?Vt(K({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Mi.safeStorage.remove(Np)},s=()=>{Mi.safeStorage.remove(Dp)},d=(f,_="as-default")=>{f.type==="exact_quality"?o(f):_==="as-default"?t(f):o(f)},l=f=>{let _=n(f);if(_){switch(_.type){case"traffic_saving":ed(!0);break;case"exact_quality":Hp(f,_.quality)}a(),s()}},u=f=>{let _=Fp(f);if(_){o({type:"exact_quality",videoId:f,quality:_});return}Wp()&&t({type:"traffic_saving",videoId:f}),ed(!1),td()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Vh,migrateSettingsToLegacyWay:Rh,savePreferredQualitySettings:Oc,savePreferredDefaultQualitySettings:XE,removePreferredQualitySettingsByVideo:JE,getPreferredDefaultQualitySettings:Hc}=P_();var Zm=require("@vkontakte/videoplayer-core/es2015");var A_=$e('<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 id(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=A_();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i))),b(t,o)}var Xa=require("@vkontakte/videoplayer-shared/es2015");var M_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
|
|
47
|
+
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Pt=null;function ql(t){Pt=t}var nn=null;function Wl(t){nn=t}function Ka(t){return hp("getContext").get(t)}function Qa(t,e){let i=hp("setContext");return Ee&&yt(()=>mp(e,null,!0)),i.set(t,e),e}function Ql(){return hp("getAllContexts")}function z(t,e=!1,i){var o=Pt={p:Pt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};zr&&!e&&(Pt.l={s:null,u:null,r1:[],r2:Ki(!1)}),rn(()=>{o.d=!0}),Ee&&(Pt.function=i,nn=i)}function q(t){var s,d;let e=Pt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=Ct,o=Ft;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];po(a.effect),To(a.reaction),$n(a.fn)}}finally{po(i),To(o)}}Pt=e.p,Ee&&(nn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Wr(){return!zr||Pt!==null&&Pt.l===null}function hp(t){var e;return Pt===null&&Wa(t),(e=Pt.c)!=null?e:Pt.c=new Map(F0(Pt)||void 0)}function F0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var U0=/\r/g;function $g(t){t=t.replace(U0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function yg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var z0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function xg(t){return z0.includes(t)}var q0=["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 W0={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 wg(t){var e;return t=t.toLowerCase(),(e=W0[t])!=null?e:t}var Ow=[...q0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var K0=["touchstart","touchmove"];function Sg(t){return K0.includes(t)}var Q0=["textarea","script","style","title"];function Cg(t){return Q0.includes(t)}function _p(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Tg=new Map;function kg(t,e){var i=Tg.get(t);i||(i=new Set,Tg.set(t,i)),i.add(e)}function bp(t,e){if(e){let i=document.body;t.autofocus=!0,Zo(()=>{document.activeElement===i&&t.focus()})}}function Gl(t){var e=Ft,i=Ct;To(null),po(null);try{return t()}finally{To(e),po(i)}}var $p=new Set,Mc=new Set;function js(t){if(!Ze)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 yp(t,e,i,o={}){function n(a){if(o.capture||Ga.call(e,a),!a.cancelBubble)return Gl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Zo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Et(t,e,i,o,n){var a={capture:o,passive:n},s=yp(t,e,i,a);(e===document.body||e===window||e===document)&&rn(()=>{e.removeEventListener(t,s,a)})}function rt(t){for(var e=0;e<t.length;e++)$p.add(t[e]);for(var i of Mc)i(t)}function Ga(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){uo(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Ft,_=Ct;To(null),po(null);try{for(var p,b=[];a!==null;){var x=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!=null&&(!a.disabled||t.target===a))if(wr(y)){var[C,...k]=y;C.apply(a,[t,...k])}else y.call(a,t)}catch(P){p?b.push(P):p=P}if(t.cancelBubble||x===e||x===null)break;a=x}if(p){for(let P of b)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,To(f),po(_)}}}var Y0;function Ig(){Y0=void 0}function Ya(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Eo(t,e){var i=Ct;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(Ze)return Eo(vt,null),vt;n===void 0&&(n=Ya(a?t:"<!>"+t),i||(n=hi(n)));var s=o||Bl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=hi(s),l=s.lastChild;Eo(d,l)}else Eo(s,s);return s}}function $e(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ze)return Eo(vt,null),vt;if(!s){var d=Ya(a),l=hi(d);if(n)for(s=document.createDocumentFragment();hi(l);)s.appendChild(hi(l));else s=hi(l)}var u=s.cloneNode(!0);if(n){var f=hi(u),_=u.lastChild;Eo(f,_)}else Eo(u,u);return u}}function cr(t=""){if(!Ze){var e=tn(t+"");return Eo(e,e),e}var i=vt;return i.nodeType!==3&&(i.before(i=tn()),gi(i)),Eo(i,i),i}function ze(){if(Ze)return Eo(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=tn();return t.append(e,i),Eo(e,i),t}function $(t,e){if(Ze){Ct.nodes_end=vt,Bi();return}t!==null&&t.before(e)}var Yl=!0;function Lc(t){Yl=t}function ge(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 ss(t,e){return Pg(t,e)}function wp(t,e){var s;$c(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ze,n=vt;try{for(var a=hi(i);a&&(a.nodeType!==8||a.data!==_s);)a=No(a);if(!a)throw Xr;mo(!0),gi(a),Bi();let d=Pg(t,Rt(W({},e),{anchor:a}));if(vt===null||vt.nodeType!==8||vt.data!==Hs)throw Ks(),Xr;return mo(!1),d}catch(d){if(d===Xr)return e.recover===!1&&Bv(),$c(),Ol(i),mo(!1),ss(t,e);throw d}finally{mo(o),gi(n),Ig()}}var ja=new Map;function Pg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){$c();var d=new Set,l=_=>{for(var p=0;p<_.length;p++){var b=_[p];if(!d.has(b)){d.add(b);var x=Sg(b);e.addEventListener(b,Ga,{passive:x});var y=ja.get(b);y===void 0?(document.addEventListener(b,Ga,{passive:x}),ja.set(b,1)):ja.set(b,y+1)}}};l(Ll($p)),Mc.add(l);var u=void 0,f=hg(()=>{var _=i!=null?i:e.appendChild(tn());return Qi(()=>{if(a){z({});var p=Pt;p.c=a}n&&(o.$$events=n),Ze&&Eo(_,null),Yl=s,u=t(_,o)||{},Yl=!0,Ze&&(Ct.nodes_end=vt),a&&q()}),()=>{var x;for(var p of d){e.removeEventListener(p,Ga);var b=ja.get(p);--b===0?(document.removeEventListener(p,Ga),ja.delete(p)):ja.set(p,b)}Mc.delete(l),_!==i&&((x=_.parentNode)==null||x.removeChild(_))}});return xp.set(u,f),u}var xp=new WeakMap;function Zs(t,e){let i=xp.get(t);return i?(xp.delete(t),i(e)):(Ee&&eg(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){Ze&&i===0&&Bi();var n=t,a=null,s=null,d=Ai,l=i>0?65536:0,u=!1;let f=(p,b=!0)=>{u=!0,_(b,p)},_=(p,b)=>{if(d===(d=p))return;let x=!1;if(Ze&&o!==-1){if(i===0){let C=n.data;C===_s?o=0:C===Os?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Ha(),gi(n),mo(!1),x=!0,o=-1)}d?(a?rs(a):b&&(a=Qi(()=>b(n))),s&&yn(s,()=>{s=null})):(s?rs(s):b&&(s=Qi(()=>b(n,[i+1,o]))),a&&yn(a,()=>{a=null})),x&&mo(!0)};vo(()=>{u=!1,e(f),u||_(null,null)},l),Ze&&(n=vt)}function Xs(t,e,i){Ze&&Bi();var o=t,n=Ai,a,s=Wr()?Mv:Va;vo(()=>{s(n,n=e())&&(a&&yn(a),a=Qi(()=>i(o)))}),Ze&&(o=vt)}var ws=null;function Tp(t){ws=t}function jl(t,e){return e}function J0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Ec(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Ol(l),l.append(i),o.clear(),xs(t,e[0].prev,e[a-1].next)}fp(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),xs(t,f.prev,f.next)),fo(f.e,!d)}})}function wi(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 u=t;s=Ze?gi(hi(u)):u.appendChild(tn())}Ze&&Bi();var f=null,_=!1,p=Tr(()=>{var b=i();return wr(b)?b:b==null?[]:Ll(b)});vo(()=>{var b=r(p),x=b.length;if(_&&x===0)return;_=x===0;let y=!1;if(Ze){var C=s.data===Os;C!==(x===0)&&(s=Ha(),gi(s),mo(!1),y=!0)}if(Ze){for(var k=null,E,P=0;P<x;P++){if(vt.nodeType===8&&vt.data===Hs){s=vt,y=!0,mo(!1);break}var A=b[P],T=o(A,P);E=Lg(vt,d,k,null,A,T,P,n,e,i),d.items.set(T,E),k=E}x>0&&gi(Ha())}Ze||e_(b,d,s,n,e,o,i),a!==null&&(x===0?f?rs(f):f=Qi(()=>a(s)):f!==null&&yn(f,()=>{f=null})),y&&mo(!0),r(p)}),Ze&&(s=vt)}function e_(t,e,i,o,n,a,s){var le,Me,Le,J;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,_=e.first,p=_,b,x=null,y,C=[],k=[],E,P,A,T;if(d)for(T=0;T<u;T+=1)E=t[T],P=a(E,T),A=f.get(P),A!==void 0&&((le=A.a)==null||le.measure(),(y!=null?y:y=new Set).add(A));for(T=0;T<u;T+=1){if(E=t[T],P=a(E,T),A=f.get(P),A===void 0){var R=p?p.e.nodes_start:i;x=Lg(R,e,x,x===null?e.first:x.next,E,P,T,o,n,s),f.set(P,x),C=[],k=[],p=x.next;continue}if(l&&t_(A,E,T,n),(A.e.f&8192)!==0&&(rs(A.e),d&&((Me=A.a)==null||Me.unfix(),(y!=null?y:y=new Set).delete(A))),A!==p){if(b!==void 0&&b.has(A)){if(C.length<k.length){var F=k[0],Y;x=F.prev;var H=C[0],X=C[C.length-1];for(Y=0;Y<C.length;Y+=1)Ag(C[Y],F,i);for(Y=0;Y<k.length;Y+=1)b.delete(k[Y]);xs(e,H.prev,X.next),xs(e,x,H),xs(e,X,F),p=F,x=X,T-=1,C=[],k=[]}else b.delete(A),Ag(A,p,i),xs(e,A.prev,A.next),xs(e,A,x===null?e.first:x.next),xs(e,x,A),x=A;continue}for(C=[],k=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&(b!=null?b:b=new Set).add(p),k.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),x=A,p=A.next}if(p!==null||b!==void 0){for(var oe=b===void 0?[]:Ll(b);p!==null;)(p.e.f&8192)===0&&oe.push(p),p=p.next;var ee=oe.length;if(ee>0){var ue=(n&4)!==0&&u===0?i:null;if(d){for(T=0;T<ee;T+=1)(Le=oe[T].a)==null||Le.measure();for(T=0;T<ee;T+=1)(J=oe[T].a)==null||J.fix()}J0(e,oe,ue,f)}}d&&Zo(()=>{var Ve;if(y!==void 0)for(A of y)(Ve=A.a)==null||Ve.apply()}),Ct.first=e.first&&e.first.e,Ct.last=x&&x.e}function t_(t,e,i,o){(o&1)!==0&&Na(t.v,e),(o&2)!==0?Na(t.i,i):t.i=i}function Lg(t,e,i,o,n,a,s,d,l,u){var f=ws,_=(l&1)!==0,p=(l&16)===0,b=_?p?os(n):Ki(n):n,x=(l&2)===0?s:Ki(s);Ee&&_&&(b.debug=()=>{var C=typeof x=="number"?s:x.v;u()[C]});var y={i:x,v:b,k:a,a:null,e:null,prev:i,next:o};ws=y;try{return y.e=Qi(()=>d(t,b,x,u),Ze),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{ws=f}}function Ag(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=No(a);n.before(a),a=s}}function xs(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 i_(t,e,i){var a,s;if(!e||e===$g(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=nn)!=null&&s[vi]&&(o=`in ${nn[vi]}`),Jv(_p(o))}function Zl(t,e,i,o,n){var a=t,s="",d;vo(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ze&&Bi();return}d!==void 0&&(fo(d),d=void 0),s!==""&&(d=Qi(()=>{if(Ze){for(var u=vt.data,f=Bi(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=No(f);if(f===null)throw Ks(),Xr;Ee&&!n&&i_(f.parentNode,u,s),Eo(vt,_),a=gi(f);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var b=Ya(p);if((i||o)&&(b=hi(b)),Eo(hi(b),b.lastChild),i||o)for(;hi(b);)a.before(hi(b));else a.before(b)}))})}function he(t,e,...i){var o=t,n=ne,a;vo(()=>{n!==(n=e())&&(a&&(fo(a),a=null),Ee&&n==null&&Ov(),a=Qi(()=>n(o,...i)))},65536),Ze&&(o=vt)}function Si(t,e,i){Ze&&Bi();var o=t,n,a;vo(()=>{n!==(n=e())&&(a&&(yn(a),a=null),n&&(a=Qi(()=>i(o,n))))},65536),Ze&&(o=vt)}function Xl(t,e,i,o,n,a){var x;let s=Ze;Ze&&Bi();var d=Ee&&a&&((x=Pt)==null?void 0:x.function[vi]),l,u,f=null;Ze&&vt.nodeType===1&&(f=vt,Bi());var _=Ze?vt:t,p,b=ws;vo(()=>{let y=e()||null;var C=n?n():i||y==="svg"?qu:null;if(y!==l){var k=ws;Tp(b),p&&(y===null?yn(p,()=>{p=null,u=null}):y===u?rs(p):(fo(p),Lc(!1))),y&&y!==u&&(p=Qi(()=>{if(f=Ze?f:C?document.createElementNS(C,y):document.createElement(y),Ee&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Eo(f,f),o){Ze&&Cg(y)&&f.append(document.createComment(""));var E=Ze?hi(f):f.appendChild(tn());Ze&&(E===null?mo(!1):gi(E)),o(f,E)}Ct.nodes_end=f,_.before(f)})),l=y,l&&(u=l),Lc(!0),Tp(k)}},65536),s&&(mo(!0),gi(_))}var Ip;function Vg(t){return Ip=t.target,new kp(t)}var as,ur,kp=class{constructor(e){hs(this,as);hs(this,ur);var a,s;var i=new Map,o=(d,l)=>{var u=os(l);return i.set(d,u),u};let n=new Proxy(Rt(W({},e.props||{}),{$$events:{}}),{get(d,l){var u;return r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===Ml?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var f;return O((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});La(this,ur,(e.hydrate?wp:ss)(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)&&za(),La(this,as,n.$$events);for(let d of Object.keys(Pi(this,ur)))d==="$set"||d==="$destroy"||d==="$on"||uo(this,d,{get(){return Pi(this,ur)[d]},set(l){Pi(this,ur)[d]=l},enumerable:!0});Pi(this,ur).$set=d=>{Object.assign(n,d)},Pi(this,ur).$destroy=()=>{Zs(Pi(this,ur))}}$set(e){Pi(this,ur).$set(e)}$on(e,i){Pi(this,as)[e]=Pi(this,as)[e]||[];let o=(...n)=>i.call(this,...n);return Pi(this,as)[e].push(o),()=>{Pi(this,as)[e]=Pi(this,as)[e].filter(n=>n!==o)}}$destroy(){Pi(this,ur).$destroy()}};as=new WeakMap,ur=new WeakMap;function K(t,e){Zo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=Ip)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ee&&kg(e.hash,d)}})}function Rg(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=Rg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Dg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Rg(t))&&(o&&(o+=" "),o+=e);return o}function Jl(t){return typeof t=="object"?Dg(t):t!=null?t:""}var Ng=[...`
|
|
48
|
+
\r\f\xA0\v\uFEFF`];function Og(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||Ng.includes(o[s-1]))&&(d===o.length||Ng.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Bg(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 Ep(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Hg(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(Ep)),n&&l.push(...Object.keys(n).map(Ep));var u=0,f=-1;let y=t.length;for(var _=0;_<y;_++){var p=t[_];if(d?p==="/"&&t[_-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[_+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=_;else if(p===";"||_===y-1){if(f!==-1){var b=Ep(t.substring(u,f).trim());if(!l.includes(b)){p!==";"&&_++;var x=t.substring(u,_).trim();i+=" "+x+";"}}u=_+1,f=-1}}}}return o&&(i+=Bg(o)),n&&(i+=Bg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var s=t.__className;if(Ze||s!==i){var d=Og(i,o,a);(!Ze||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 u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function Pp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function nt(t,e,i,o){var n=t.__style;if(Ze||n!==e){var a=Hg(e,o);(!Ze||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Pp(t,i==null?void 0:i[0],o[0]),Pp(t,i==null?void 0:i[1],o[1],"important")):Pp(t,i,o));return o}var Za=Symbol("class"),Xa=Symbol("style"),zg=Symbol("is custom element"),qg=Symbol("is html");function Wg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Fe(t,e,i,o){var n=Kg(t);if(Ze&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||d_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[kv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Qg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Te(t,e,i,o,n=!1){var A;var a=Kg(t),s=a[zg],d=!a[qg];let l=Ze&&s;l&&mo(!1);var u=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Jl(i.class):(o||i[Za])&&(i.class=null),i[Xa]&&((A=i.style)!=null||(i.style=null));var p=Qg(t);for(let T in i){let R=i[T];if(f&&T==="value"&&R==null){t.value=t.__value="",u[T]=R;continue}if(T==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,b,R,o,e==null?void 0:e[Za],i[Za]),u[T]=R,u[Za]=i[Za];continue}if(T==="style"){nt(t,R,e==null?void 0:e[Xa],i[Xa]),u[T]=R,u[Xa]=i[Xa];continue}var x=u[T];if(R!==x){u[T]=R;var y=T[0]+T[1];if(y!=="$$")if(y==="on"){let F={},Y="$$"+T,H=T.slice(2);var C=xg(H);if(yg(H)&&(H=H.slice(0,-7),F.capture=!0),!C&&x){if(R!=null)continue;t.removeEventListener(H,u[Y],F),u[Y]=null}if(R!=null)if(C)t[`__${H}`]=R,rt([H]);else{let X=function(oe){u[T].call(this,oe)};var P=X;u[Y]=yp(H,t,X,F)}else C&&(t[`__${H}`]=void 0)}else if(T==="style")Fe(t,T,R);else if(T==="autofocus")bp(t,!!R);else if(!s&&(T==="__value"||T==="value"&&R!=null))t.value=t.__value=R;else if(T==="selected"&&f)Wg(t,R);else{var k=T;d||(k=wg(k));var E=k==="defaultValue"||k==="defaultChecked";if(R==null&&!s&&!E)if(a[T]=null,k==="value"||k==="checked"){let F=t,Y=e===void 0;if(k==="value"){let H=F.defaultValue;F.removeAttribute(k),F.defaultValue=H,F.value=F.__value=Y?H:null}else{let H=F.defaultChecked;F.removeAttribute(k),F.defaultChecked=H,F.checked=Y?H:!1}}else t.removeAttribute(T);else E||p.includes(k)&&(s||typeof R!="string")?t[k]=R:typeof R!="function"&&Fe(t,k,R,n)}}}return l&&mo(!0),u}function Kg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[zg]:t.nodeName.includes("-"),[qg]:t.namespaceURI===Sv}}var Fg=new Map;function Qg(t){var e=Fg.get(t.nodeName);if(e)return e;Fg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=mc(o);for(var a in i)i[a].set&&e.push(a);o=es(o)}return e}function d_(t,e,i){var o;Ee&&(e==="srcset"&&c_(t,i)||Ap((o=t.getAttribute(e))!=null?o:"",i)||Xv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Ap(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Ug(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function c_(t,e){var i=Ug(t.srcset),o=Ug(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Ap(i[s][0],n)||Ap(n,i[s][0])))}var u_=fc?()=>performance.now():()=>Date.now(),Ir={tick:t=>(fc?requestAnimationFrame:ne)(t),now:()=>u_(),tasks:new Set};function Gg(){let t=Ir.now();Ir.tasks.forEach(e=>{e.c(t)||(Ir.tasks.delete(e),e.f())}),Ir.tasks.size!==0&&Ir.tick(Gg)}function Yg(t){let e;return Ir.tasks.size===0&&Ir.tick(Gg),{promise:new Promise(i=>{Ir.tasks.add(e={c:t,f:i})}),abort(){Ir.tasks.delete(e)}}}function Vc(t,e){Gl(()=>{t.dispatchEvent(new CustomEvent(e))})}function v_(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 s=v_(n.trim());e[s]=a.trim()}return e}var g_=t=>t;function Lp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,_=e.style.overflow,p,b;function x(){var R;var A=Ft,T=Ct;To(null),po(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{To(A),po(T)}}var y={is_global:d,in(){var A;if(e.inert=f,!n){b==null||b.abort(),(A=b==null?void 0:b.reset)==null||A.call(b);return}a||p==null||p.abort(),Vc(e,"introstart"),p=Mp(e,x(),b,1,()=>{Vc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=_})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,Vc(e,"outrostart"),b=Mp(e,x(),p,0,()=>{Vc(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),b==null||b.abort()}},C=Ct;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Yl){var k=d;if(!k){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);k=!E||(E.f&32768)!==0}k&&$n(()=>{yt(()=>y.in())})}}function Mp(t,e,i,o,n){var a=o===1;if(bs(e)){var s,d=!1;return Zo(()=>{if(!d){var C=e({direction:a?"in":"out"});s=Mp(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:ne,deactivate:ne,reset:ne,t:()=>o};let{delay:l=0,css:u,tick:f,easing:_=g_}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var b=jg(u(0,1));p.push(b,b)}var x=()=>1-o,y=t.animate(p,{duration:l});return y.onfinish=()=>{var H;var C=(H=i==null?void 0:i.t())!=null?H:1-o;i==null||i.abort();var k=o-C,E=e.duration*Math.abs(k),P=[];if(E>0){var A=!1;if(u)for(var T=Math.ceil(E/16.666666666666668),R=0;R<=T;R+=1){var F=C+k*_(R/T),Y=jg(u(F,1-F));P.push(Y),A||(A=Y.overflow==="hidden")}A&&(t.style.overflow="hidden"),x=()=>{var X=y.currentTime;return C+k*_(X/E)},f&&Yg(()=>{if(y.playState!=="running")return!1;var X=x();return f(X,1-X),!0})}y=t.animate(P,{duration:E,fill:"forwards"}),y.onfinish=()=>{x=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ne)},deactivate:()=>{n=ne},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>x()}}var Ss,Ja,ed,Dc,Zg,Nc=class Nc{constructor(e){hs(this,Dc);hs(this,Ss,new WeakMap);hs(this,Ja);hs(this,ed);La(this,ed,e)}observe(e,i){var o=Pi(this,Ss).get(e)||new Set;return o.add(i),Pi(this,Ss).set(e,o),xv(this,Dc,Zg).call(this).observe(e,Pi(this,ed)),()=>{var n=Pi(this,Ss).get(e);n.delete(i),n.size===0&&(Pi(this,Ss).delete(e),Pi(this,Ja).unobserve(e))}}};Ss=new WeakMap,Ja=new WeakMap,ed=new WeakMap,Dc=new WeakSet,Zg=function(){var e;return(e=Pi(this,Ja))!=null?e:La(this,Ja,new ResizeObserver(i=>{for(var o of i){Nc.entries.set(o.target,o);for(var n of Pi(this,Ss).get(o.target)||[])n(o)}}))},Un(Nc,"entries",new WeakMap);var Vp=Nc;var b_=new Vp({box:"border-box"});function Kr(t,e,i){var o=b_.observe(t,()=>i(t[e]));$n(()=>(yt(()=>i(t[e])),o))}function Xg(t,e){return t===e||(t==null?void 0:t[qo])===e}function ct(t={},e,i,o){return $n(()=>{var n,a;return Io(()=>{n=a,a=(o==null?void 0:o())||[],yt(()=>{t!==i(...a)&&(e(t,...a),n&&Xg(i(...n),t)&&e(null,...n))})}),()=>{Zo(()=>{a&&Xg(i(...a),t)&&e(null,...a)})}}),t}function Er(t=!1){let e=Pt,i=e.l.u;if(!i)return;let o=()=>Tc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&qa(()=>{Jg(e,o),$s(i.b)}),qe(()=>{let n=yt(()=>i.m.map(Pv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&qe(()=>{Jg(e,o),$s(i.a)})}function Jg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ee){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Uv(e)},set:o=>{i=o}})}};y_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var y_;function qt(t){Pt===null&&Wa("onMount"),zr&&Pt.l!==null?$_(Pt).m.push(t):qe(()=>{let e=yt(t);if(typeof e=="function")return e})}function xn(t){Pt===null&&Wa("onDestroy"),qt(()=>()=>yt(t))}function $_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function td(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ne;let o=yt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var el=[];function pr(t,e){return{subscribe:ce(t,e).subscribe}}function ce(t,e=ne){let i=null,o=new Set;function n(d){if(Va(t,d)&&(t=d,i)){let l=!el.length;for(let u of o)u[1](),el.push(u,t);if(l){for(let u=0;u<el.length;u+=2)el[u][0](el[u+1]);el.length=0}}}function a(d){n(d(t))}function s(d,l=ne){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||ne),d(t),()=>{o.delete(u),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 pr(i,(s,d)=>{let l=!1,u=[],f=0,_=ne,p=()=>{if(f)return;_();let x=e(o?u[0]:u,s,d);a?s(x):_=typeof x=="function"?x:ne},b=n.map((x,y)=>td(x,C=>{u[y]=C,f&=~(1<<y),l&&p()},()=>{f|=1<<y}));return l=!0,p(),function(){$s(b),_(),l=!1}})}function we(t){let e;return td(t,i=>e=i)(),e}var Bc=!1,Rp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:os(void 0),unsubscribe:ne};if(o.store!==t&&!(Rp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ne;else{var n=!0;o.unsubscribe=td(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&Rp in i?we(t):r(o.source)}function Oe(){let t={};function e(){rn(()=>{for(var i in t)t[i].unsubscribe();uo(t,Rp,{enumerable:!1,value:!0})})}return[t,e]}function Dp(t){var e=Bc;try{return Bc=!1,[t(),Bc]}finally{Bc=e}}var I_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&Fv(`${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(Ee?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},I_)}var E_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(bs(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];bs(n)&&(n=n());let a=zn(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(bs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=zn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===qo||e===Ml)return!1;for(let i of t.props)if(bs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){bs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ls(...t){return new Proxy({props:t},E_)}function eh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var F,Y;var n=(i&1)!==0,a=!zr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=Dp(()=>t[e]):u=t[e];var f=qo in t||Ml in t,_=s&&((Y=(F=zn(t,e))==null?void 0:F.set)!=null?Y:f&&e in t&&(H=>t[e]=H))||void 0,p=o,b=!0,x=!1,y=()=>(x=!0,b&&(b=!1,d?p=yt(o):p=o),p);u===void 0&&o!==void 0&&(_&&a&&Hv(e),u=y(),_&&_(u));var C;if(a)C=()=>{var H=t[e];return H===void 0?y():(b=!0,x=!1,H)};else{var k=(n?v:Tr)(()=>t[e]);k.f|=131072,C=()=>{var H=r(k);return H!==void 0&&(p=void 0),H===void 0?p:H}}if((i&4)===0)return C;if(_){var E=t.$$legacy;return function(H,X){return arguments.length>0?((!a||!X||E||l)&&_(X?C():H),H):C()}}var P=!1,A=!1,T=os(u),R=v(()=>{var H=C(),X=r(T);return P?(P=!1,A=!0,X):(A=!1,T.v=H)});return s&&r(R),n||(R.equals=Ra),function(H,X){if(Dl!==null&&(P=A,C(),r(T)),arguments.length>0){let oe=X?r(R):a&&s?me(H):H;if(!R.equals(oe)){if(P=!0,O(T,oe),x&&p!==void 0&&(p=oe),eh(R))return H;yt(()=>r(R))}return H}return eh(R)?R.v:r(R)}}var P_;typeof HTMLElement=="function"&&(P_=class extends HTMLElement{constructor(e,i,o){super();Un(this,"$$ctor");Un(this,"$$s");Un(this,"$$c");Un(this,"$$cn",!1);Un(this,"$$d",{});Un(this,"$$r",!1);Un(this,"$$p_d",{});Un(this,"$$l",{});Un(this,"$$l_u",new Map);Un(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))}}connectedCallback(){return It(this,null,function*(){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(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=A_(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]=Np(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=Vg({component:this.$$ctor,target:this.shadowRoot||this,props:Rt(W({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Ic(()=>{Io(()=>{var a;this.$$r=!0;for(let s of Ku(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Np(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]=Np(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 Ku(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Np(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 A_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var th="5";var ih,oh,nh;typeof window!="undefined"&&((nh=(oh=(ih=window.__svelte)!=null?ih:window.__svelte={}).v)!=null?nh:oh.v=new Set).add(th);var i0=require("@vkontakte/videoplayer-core/es2015"),dY=require("@vkontakte/videoplayer-core/es2015"),Ta=require("@vkontakte/videoplayer-shared/es2015"),o0=require("@vkontakte/videoplayer-statistics/es2015");var Js=require("@vkontakte/videoplayer-shared/es2015");var L_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Js.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:Js.VideoQuality.Q_480P,highQualityLimit:Js.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:"blue",timelineSliderHandleColor:"red",timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},rh=t=>(0,Js.fillWithDefault)(t,L_),sh=t=>Qa("ui-config",t),Wt=()=>Ka("ui-config");var id="vk_player_debug_panel_opened";var ah="videoplayer",lh="videoplayer";var Qr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},dh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ch=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),uh=new Set(["ShiftRight","ShiftLeft"]);var ph=["TIMELINE"],od=[...ph,"GRAPH_BUTTON"],Bp=[...ph,"PLAY_BUTTON"],nd=[...od,"PLAY_BUTTON"];var Pr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Pr||{}),ta={xs:0,s:1,m:2,l:3,xl:4};var rd=require("@vkontakte/videoplayer-shared/es2015"),fh=require("@vkontakte/videoplayer-core/es2015"),mh=require("@vkontakte/videoplayer-statistics/es2015");var Oc="prod",ia="1.1.62-dev.92a4e8bb.0";var oa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var vh=Symbol("storeContext"),gh=Symbol("microStoresContext"),hh=(t,e)=>{Qa(vh,t),Qa(gh,e),Oc==="dev"&&(window.app={store:t,microStores:e})},Se=()=>{let t=Ka(vh);return(0,rd.assertNonNullable)(t,"Store context is empty!"),t},go=()=>{let t=Ka(gh);return(0,rd.assertNonNullable)(t,"MicroStores context is empty!"),t},ei=(t,e)=>Fc(t,t.getValue(),e),Fc=(t,e,i)=>pr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),_h=(t,e,i)=>{var k,E,P,A,T,R;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s=(E=(k=o.throughputEstimation$.getValue())==null?void 0:k.toFixed(0))!=null?E:0,d=(A=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?A:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${ia} (core: ${fh.VERSION}, stat: ${mh.VERSION}, shared: ${rd.VERSION})`,f=we(i.state.errorLog$),_=f.length?`
|
|
49
|
+
`+f.map((F,Y)=>{var ee;let H=`${Y}) Type: ${F.id}
|
|
50
|
+
`,X=`Message: ${F.message} (${F.thrown})
|
|
51
|
+
`,oe=`Trace: ${(ee=F.thrown)==null?void 0:ee.stack}
|
|
52
|
+
`;return H+X+oe}).join(`
|
|
53
|
+
`):void 0,p=i.state.isAudioDisabled?"disabled":we(i.state.isAudioAvailable$)?void 0:"unavailable",b=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),y=[];b&&y.push(`Video: ${(T=b==null?void 0:b.codec)!=null?T:""}`+(b!=null&&b.hdr?" (HDR)":"")),x&&y.push(`Audio: ${(R=x==null?void 0:x.codec)!=null?R:""}`+(x!=null&&x.language?` (${x.language})`:""));let C={Version:u,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:we(i.vsid),"Content host":o.hostname$.getValue(),"Connection type":o.httpConnectionType$.getValue()+(o.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${s}Kbps @ ${d}ms RTT`,Format:o.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:y.join(", "),Quality:`${l} ${o.currentQuality$.getValue()}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:p,Position:`${we(i.state.positionExact$)}s`,State:`${we(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:_};return Object.entries(C).filter(([F,Y])=>Y!==void 0).map(([F,Y])=>`${F}: ${Y}`).join(`
|
|
54
|
+
`)},bh=(t,e,i)=>{var F,Y,H,X;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s={version:ia,viewport:`${n}x${a}`,volume:Math.round(we(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 u=o.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),_=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(_&&p?s.buffer=f.end-p:s.buffer=Math.max(f.end-we(i.state.positionExact$),0));let b=o.throughputEstimation$.getValue();b&&(s.speed=b);let x=o.videoBitrate$.getValue();x&&(s.bitrate=x);let y=o.liveLatency$.getValue();y&&(s.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let k=o.currentAudioSegmentLength$.getValue();k&&(s.currentAudioSegmentLength=k);let E=we(i.vsid);typeof E=="string"&&(s.vsid=E);let P=(F=t.info.currentVideoStream$.getValue())==null?void 0:F.codec;P&&(s.videoCodec=P);let A=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.codec;A&&(s.audioCodec=A),((H=t.info.currentVideoStream$.getValue())==null?void 0:H.hdr)&&(s.hdr=!0);let R=(X=t.info.currentAudioStream$.getValue())==null?void 0:X.language;return R&&(s.audioLanguage=R),s},$h=(t,e)=>oa(t,e,"mp4"),yh=t=>!t.type,xh=t=>!!t.type,wh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Hc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return It(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var Mi=require("@vkontakte/videoplayer-shared/es2015"),cP=require("@vkontakte/videoplayer-core/es2015");var Sh="vk_player_prefer_traffic_saving_enabled",Ch="vk_player_preferred_volume",Th="vk_player_prefer_volume_mute",Fp="vk_player_preferred_quality",Op="vk_player_preferred_default_quality_settings",Hp="vk_player_preferred_quality_settings_by_video",kh="vk_player_preferred_stream_language",Ih="vk_player_preferred_rate",Eh="vk_player_preferred_autoplay_next",Ph=t=>t>1?1:t<0?0:t,Up=t=>Mi.safeStorage.set(Ch,Ph(t).toString(10)),Uc=()=>{let t=Mi.safeStorage.get(Ch);return(0,Mi.isNullable)(t)?void 0:Ph(parseFloat(t))},zp=(t,e)=>Mi.safeStorage.set(Fp,JSON.stringify({videoId:t,value:e})),ad=()=>Mi.safeStorage.remove(Fp),qp=t=>{let e=Mi.safeStorage.get(Fp);if((0,Mi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){ad();return}return o},Wp=(t,e)=>{e?Mi.safeStorage.set(t,"true"):Mi.safeStorage.remove(t)},Kp=t=>Mi.safeStorage.get(t)==="true",Qp=t=>Wp(Th,t),Ah=()=>Kp(Th),sd=t=>Wp(Sh,t),Gp=()=>Kp(Sh),Mh=()=>Mi.safeStorage.get(kh),Yp=t=>Mi.safeStorage.set(kh,t),Lh=t=>Mi.safeStorage.set(Ih,JSON.stringify({rate:t})),Vh=()=>{let t=Mi.safeStorage.get(Ih);if((0,Mi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Rh=t=>Wp(Eh,t),Dh=()=>Kp(Eh),V_=()=>{let t=f=>{Mi.safeStorage.set(Op,JSON.stringify(f))},e=()=>{try{let f=Mi.safeStorage.get(Op);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Mi.safeStorage.get(Hp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Mi.safeStorage.set(Hp,JSON.stringify(f))},n=f=>{u(f);let _=f?i():null;if(_&&(_==null?void 0:_.videoId)===f)return Rt(W({},_),{appliesTo:"to-video"});_&&a();let p=e();return p?Rt(W({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Mi.safeStorage.remove(Hp)},s=()=>{Mi.safeStorage.remove(Op)},d=(f,_="as-default")=>{f.type==="exact_quality"?o(f):_==="as-default"?t(f):o(f)},l=f=>{let _=n(f);if(_){switch(_.type){case"traffic_saving":sd(!0);break;case"exact_quality":zp(f,_.quality)}a(),s()}},u=f=>{let _=qp(f);if(_){o({type:"exact_quality",videoId:f,quality:_});return}Gp()&&t({type:"traffic_saving",videoId:f}),sd(!1),ad()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Nh,migrateSettingsToLegacyWay:Bh,savePreferredQualitySettings:zc,savePreferredDefaultQualitySettings:uP,removePreferredQualitySettingsByVideo:pP,getPreferredDefaultQualitySettings:qc}=V_();var Jm=require("@vkontakte/videoplayer-core/es2015");var R_=$e('<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 ld(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=R_();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i))),$(t,o)}var tl=require("@vkontakte/videoplayer-shared/es2015");var D_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
|
|
55
55
|
\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
|
|
56
|
-
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},
|
|
56
|
+
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Oh=D_;var N_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
|
|
57
57
|
so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
58
|
-
Try switching the\xA0quality to\xA0Auto.`},
|
|
59
|
-
`),o,n;for(let a=0;a<i.length;++a){if(o=
|
|
60
|
-
`).filter(i=>!!i)[0]}function H_(t){try{let e=O_(t);if(e)return e}catch(e){}return{value:Oh(t),type:t&&t.name,stacktrace:{frames:[]}}}function F_(){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 Vt(K({},this.getRequestBlank()),{exception:{values:[H_(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(N_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:F_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Hh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function U_(){return window}var zc=class t extends Uc{constructor(e,i=U_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(u=>new u(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",K({},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",K({},e)),this}setUser(e){return this.setKeyState("user",K({},e)),this}clone(){let e=new t(Vt(K({},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:[K({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Vt(K({},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=>Hh(i,o))):!1}getRequestBlank(){return K(Vt(K({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(K({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=>Hh(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 Vt(K({},i),{[o]:a||d?[...a||[],...d||[]]:K(K({},typeof n!="string"?n:{}),typeof s!="string"?s:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var oa=require("@vkontakte/videoplayer-shared/es2015");var qc=null,na=class{constructor(e,i,o={}){!qc&&e.dsn&&(this.sentryClient=new zc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new oa.Subscription,this.options=e,this.context=o,qc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),qc=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:a,options:s}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:_}=s,{errorType:p,category:$}=i;if((0,oa.isNonNullable)($)&&_.includes($)||(0,oa.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,oa.isNonNullable)($)&&u.includes($)||(0,oa.isNonNullable)(p)&&l.includes(p)){Object.keys(i).length&&n.setTags(K({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras(K(K({},a),o));try{p&&n.captureMessage(p,i.fatal?Ja.fatal:Ja.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return qc}};var xs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(xs||{});var Wc=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Kc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Fh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},od=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ws=()=>!!od(),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)},Uh=t=>{let e=window.screen;return(n=>kt(void 0,null,function*(){return 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 jp=require("@vkontakte/videoplayer-core/es2015"),zh=()=>({title:H("hotkey_map_modal_title"),closeBtnText:H("hotkey_map_modal_close_btn_text"),groups:[{title:H("hotkey_map_group_title_common"),items:[{description:H("hotkey_map_item_mute_description"),value:H("hotkey_map_item_mute_value")},{description:H("hotkey_map_item_volume_up_description"),value:H("hotkey_map_item_volume_up_value")},{description:H("hotkey_map_item_volume_down_description"),value:H("hotkey_map_item_volume_down_value")},{description:H("hotkey_map_item_pip_description"),value:H("hotkey_map_item_pip_value")},{description:H("hotkey_map_item_full_screen_description"),value:H("hotkey_map_item_full_screen_value")},{description:H("hotkey_map_item_show_context_menu_description"),value:H("hotkey_map_item_show_context_menu_value")},{description:H("hotkey_map_item_show_hotkey_map_description"),value:H("hotkey_map_item_show_hotkey_map_value")}]},{title:H("hotkey_map_group_title_playback"),items:[{description:H("hotkey_map_item_play_toggle_description"),value:H("hotkey_map_item_play_toggle_value")},{description:H("hotkey_map_item_seek_backward_description"),value:H("hotkey_map_item_seek_backward_value")},{description:H("hotkey_map_item_seek_forward_description"),value:H("hotkey_map_item_seek_forward_value")},{description:H("hotkey_map_item_fast_seek_backward_description"),value:H("hotkey_map_item_fast_seek_backward_value")},{description:H("hotkey_map_item_fast_seek_forward_description"),value:H("hotkey_map_item_fast_seek_forward_value")},{description:H("hotkey_map_item_rate_down_description"),value:H("hotkey_map_item_rate_down_value")},{description:H("hotkey_map_item_rate_up_description"),value:H("hotkey_map_item_rate_up_value")},{description:H("hotkey_map_item_prev_frame_description"),value:H("hotkey_map_item_prev_frame_value")},{description:H("hotkey_map_item_next_frame_description"),value:H("hotkey_map_item_next_frame_value")},{description:H("hotkey_map_item_jump_seek_description"),value:H("hotkey_map_item_jump_seek_value")},{description:H("hotkey_map_item_next_video_description"),value:H("hotkey_map_item_next_video_value")},{description:H("hotkey_map_item_prev_video_description"),value:H("hotkey_map_item_prev_video_value")}]},{title:H("hotkey_map_group_title_subtitles"),items:[{description:H("hotkey_map_item_subtitles_toggle_description"),value:H("hotkey_map_item_subtitles_toggle_value")}]},{title:H("hotkey_map_group_title_episodes"),items:[{description:H("hotkey_map_item_prev_episode_description"),value:jp.clientChecker.device.isApple?H("hotkey_map_item_prev_episode_mac_value"):H("hotkey_map_item_prev_episode_pc_value")},{description:H("hotkey_map_item_next_episode_description"),value:jp.clientChecker.device.isApple?H("hotkey_map_item_next_episode_mac_value"):H("hotkey_map_item_next_episode_pc_value")}]}]});var el=require("@vkontakte/videoplayer-shared/es2015");var ra=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,el.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new el.ValueSubject(!1),isEnabled$:new el.ValueSubject(!1),type:0};this.info.isEnabled$=new el.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return kt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return kt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return kt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield 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=K({},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)}dispose(){return kt(this,null,function*(){this.unregistryEventHandlers(),yield 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 sa(t){return t instanceof ra}var tl=require("@vkontakte/videoplayer-shared/es2015");qv();function Jp(t,e){q(e,!1);let i=Ce();Ut(()=>{i.getAdmanWrapper().startPostroll()}),Mr(),W()}var qh=require("@vkontakte/videoplayer-shared/es2015");var z_=(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>'),W_=L("<div><!></div>"),K_={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 ef(t,e){q(e,!0),G(t,K_);let[i,o]=Fe(),n=()=>C(u,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,qh.noop),u=Ce().ui.isMobile,f=m(()=>a()>0&&a()>=s());var _=W_();let p;var $=h(_);{var w=S=>{var k=q_();k.__click=[z_,d];var P=h(k);be(),g(k),I(A=>ge(P,`${A!=null?A:""} `),[()=>H("skip_ads_now")]),b(S,k)},y=S=>{var k=ur();I(P=>ge(k,P),[()=>H("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(S,k)};R($,S=>{r(f)?S(w):S(y,!1)})}g(_),I(S=>p=ie(_,1,"container svelte-1k4i25s",null,p,S),[()=>({"container-mobile":n(),skippable:r(f)})]),b(t,_),W(),o()}at(["click"]);var Q_=L('<button class="svelte-1wy3dql"> </button>'),G_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function tf(t,e){q(e,!1),G(t,G_),Mr();var i=Q_(),o=h(i,!0);g(i),I(n=>ge(o,n),[()=>H("visit_advertiser")],Er),b(t,i),W()}var Y_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),j_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Z_={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.`},Hh=N_;var ds=new Map;ds.set(tl.InterfaceLanguage.EN,Hh);ds.set(tl.InterfaceLanguage.RU,Oh);var Fh=new Map,jp=({language:t,pack:e,fallback:i})=>{if(ds.has(t)){let o=ds.get(t);ds.set(t,W(W({},o),e))}else ds.set(t,e);Fh.set(t,i)},Zp=t=>ds.has(t),Xp=(t,e,i,o)=>{var s;let n=ds.get(t),a=n==null?void 0:n[e];if((0,tl.isNullable)(a)){let d=(s=Fh.get(t))!=null?s:o,l=d?ds.get(d):void 0;a=l==null?void 0:l[e]}return(0,tl.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var u;return(u=i[l])!=null?u:""}):a},U=(t,e)=>{let{interfaceLanguage$:i}=Se(),o=we(i),n=Wt();return Xp(o,t,e,n.defaultLanguage)};var NP=require("@vkontakte/videoplayer-core/es2015");var il;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(il||(il={}));var B_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,O_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,H_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Wc="?",F_="X-Sentry-Auth",U_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function z_(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=B_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Wc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=H_.exec(i[a]))n={filename:o[2],function:o[1]||Wc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=O_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Wc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Wc),e.push(n)}return e.length?{value:Uh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Uh(t){return(t&&t.message||"No error message").split(`
|
|
60
|
+
`).filter(i=>!!i)[0]}function q_(t){try{let e=z_(t);if(e)return e}catch(e){}return{value:Uh(t),type:t&&t.name,stacktrace:{frames:[]}}}function W_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Kc=class{constructor(e){if(e&&e.dsn){let i=U_.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 Rt(W({},this.getRequestBlank()),{exception:{values:[q_(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(F_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:W_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function zh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function K_(){return window}var Qc=class t extends Kc{constructor(e,i=K_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(u=>new u(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",W({},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",W({},e)),this}setUser(e){return this.setKeyState("user",W({},e)),this}clone(){let e=new t(Rt(W({},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:[W({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Rt(W({},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=>zh(i,o))):!1}getRequestBlank(){return W(Rt(W({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(W({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=>zh(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 Rt(W({},i),{[o]:a||d?[...a||[],...d||[]]:W(W({},typeof n!="string"?n:{}),typeof s!="string"?s:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var na=require("@vkontakte/videoplayer-shared/es2015");var Gc=null,ra=class{constructor(e,i,o={}){!Gc&&e.dsn&&(this.sentryClient=new Qc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new na.Subscription,this.options=e,this.context=o,Gc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Gc=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:u=[],blackErrorIdList:f,blackErrorCategoryList:_}=s,{errorType:p,category:b}=i;if((0,na.isNonNullable)(b)&&_.includes(b)||(0,na.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,na.isNonNullable)(b)&&u.includes(b)||(0,na.isNonNullable)(p)&&l.includes(p)){Object.keys(i).length&&n.setTags(W({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras(W(W({},a),o));try{p&&n.captureMessage(p,i.fatal?il.fatal:il.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Gc}};var Gr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Gr||{});var Yc=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()},jc=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()},dd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Cs=()=>!!dd(),Zc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Xc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Wh=t=>{let e=window.screen;return(n=>It(void 0,null,function*(){return 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 Jp=require("@vkontakte/videoplayer-core/es2015"),Kh=()=>({title:U("hotkey_map_modal_title"),closeBtnText:U("hotkey_map_modal_close_btn_text"),groups:[{title:U("hotkey_map_group_title_common"),items:[{description:U("hotkey_map_item_mute_description"),value:U("hotkey_map_item_mute_value")},{description:U("hotkey_map_item_volume_up_description"),value:U("hotkey_map_item_volume_up_value")},{description:U("hotkey_map_item_volume_down_description"),value:U("hotkey_map_item_volume_down_value")},{description:U("hotkey_map_item_pip_description"),value:U("hotkey_map_item_pip_value")},{description:U("hotkey_map_item_full_screen_description"),value:U("hotkey_map_item_full_screen_value")},{description:U("hotkey_map_item_show_context_menu_description"),value:U("hotkey_map_item_show_context_menu_value")},{description:U("hotkey_map_item_show_hotkey_map_description"),value:U("hotkey_map_item_show_hotkey_map_value")}]},{title:U("hotkey_map_group_title_playback"),items:[{description:U("hotkey_map_item_play_toggle_description"),value:U("hotkey_map_item_play_toggle_value")},{description:U("hotkey_map_item_seek_backward_description"),value:U("hotkey_map_item_seek_backward_value")},{description:U("hotkey_map_item_seek_forward_description"),value:U("hotkey_map_item_seek_forward_value")},{description:U("hotkey_map_item_fast_seek_backward_description"),value:U("hotkey_map_item_fast_seek_backward_value")},{description:U("hotkey_map_item_fast_seek_forward_description"),value:U("hotkey_map_item_fast_seek_forward_value")},{description:U("hotkey_map_item_rate_down_description"),value:U("hotkey_map_item_rate_down_value")},{description:U("hotkey_map_item_rate_up_description"),value:U("hotkey_map_item_rate_up_value")},{description:U("hotkey_map_item_prev_frame_description"),value:U("hotkey_map_item_prev_frame_value")},{description:U("hotkey_map_item_next_frame_description"),value:U("hotkey_map_item_next_frame_value")},{description:U("hotkey_map_item_jump_seek_description"),value:U("hotkey_map_item_jump_seek_value")},{description:U("hotkey_map_item_next_video_description"),value:U("hotkey_map_item_next_video_value")},{description:U("hotkey_map_item_prev_video_description"),value:U("hotkey_map_item_prev_video_value")}]},{title:U("hotkey_map_group_title_subtitles"),items:[{description:U("hotkey_map_item_subtitles_toggle_description"),value:U("hotkey_map_item_subtitles_toggle_value")}]},{title:U("hotkey_map_group_title_episodes"),items:[{description:U("hotkey_map_item_prev_episode_description"),value:Jp.clientChecker.device.isApple?U("hotkey_map_item_prev_episode_mac_value"):U("hotkey_map_item_prev_episode_pc_value")},{description:U("hotkey_map_item_next_episode_description"),value:Jp.clientChecker.device.isApple?U("hotkey_map_item_next_episode_mac_value"):U("hotkey_map_item_next_episode_pc_value")}]}]});var ol=require("@vkontakte/videoplayer-shared/es2015");var sa=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,ol.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new ol.ValueSubject(!1),isEnabled$:new ol.ValueSubject(!1),type:0};this.info.isEnabled$=new ol.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return It(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return It(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return It(this,null,function*(){!this.isSupported()||!this.isActive()||(yield 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=W({},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)}dispose(){return It(this,null,function*(){this.unregistryEventHandlers(),yield 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 aa(t){return t instanceof sa}var nl=require("@vkontakte/videoplayer-shared/es2015");Qv();function of(t,e){z(e,!1);let i=Se();qt(()=>{i.getAdmanWrapper().startPostroll()}),Er(),q()}var Qh=require("@vkontakte/videoplayer-shared/es2015");var Q_=(t,e)=>{t.stopPropagation(),e()()},G_=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>'),Y_=L("<div><!></div>"),j_={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 nf(t,e){z(e,!0),K(t,j_);let[i,o]=Oe(),n=()=>S(u,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,Qh.noop),u=Se().ui.isMobile,f=v(()=>a()>0&&a()>=s());var _=Y_();let p;var b=h(_);{var x=C=>{var k=G_();k.__click=[Q_,d];var E=h(k);be(),g(k),I(P=>ge(E,`${P!=null?P:""} `),[()=>U("skip_ads_now")]),$(C,k)},y=C=>{var k=cr();I(E=>ge(k,E),[()=>U("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),$(C,k)};V(b,C=>{r(f)?C(x):C(y,!1)})}g(_),I(C=>p=te(_,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,_),q(),o()}rt(["click"]);var Z_=L('<button class="svelte-1wy3dql"> </button>'),X_={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 rf(t,e){z(e,!1),K(t,X_),Er();var i=Z_(),o=h(i,!0);g(i),I(n=>ge(o,n),[()=>U("visit_advertiser")],Tr),$(t,i),q()}var J_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),eb=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),tb={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.`},Nh=L_;var as=new Map;as.set(Xa.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 cd(t,e){z(e,!0),K(t,tb);let[i,o]=Oe(),n=()=>S(Y,"$canSkipAd",i),a=()=>S(F,"$adPlaybackState",i),s=()=>S(E,"$isMobile",i),d=()=>S(H,"$adPosition",i),l=()=>S(X,"$secondsToWatchBeforeSkipAd",i),u=()=>S(k,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),_=m(e,"adsParams",3,void 0),p=m(e,"adsPreviewParam",3,void 0),b=m(e,"adsAutoplayParam",3,void 0),x=m(e,"duration",3,0),y=Se(),C=Wt(),k=y.state.isEnded$,E=y.ui.isMobile,P=C.ads.isMobileGoToSiteButton,A=ie(void 0),T=ie(void 0),R=!1,F=y.ads.playbackState,Y=y.ads.canSkip,H=y.ads.position,X=y.ads.secondsToWatchBeforeSkip,oe=v(()=>n()&&a()!=="inactive"),ee=v(()=>s()&&a()!=="inactive"&&P);qt(()=>{var ye;let ke=y.getAdmanWrapper();if(nl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,nl.now)(),f()]}),!f()){ke.onAdmanLoadingError();return}let Ne=De=>{ke.initAdman(De),R=!0},fe=new AbortController,B=()=>{fe.abort()},{width:de,height:Ie}=we(y.ui.playerSize),Ke=we(y.ui.isFullscreen),st=(ye=b())!=null?ye:we(y.ui.isAutoplay),xe={width:de,height:Ie,isFullscreen:Ke,isAutoplay:st,adsContainer:r(A),adsVideoElement:r(T),slotId:f(),params:_(),previewParam:p(),duration:x()};return window.AdmanHTML?Ne(xe):ke.loadAdman(fe.signal).then(()=>{Ne(xe)}).catch(()=>{ke.onAdmanLoadingError()}),()=>{nl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,nl.now)(),f()]}),!R&&B()}});var ue=eb(),le=h(ue);{var Me=ke=>{var Ne=J_();$(ke,Ne)};V(le,ke=>{s()&&ke(Me)})}var Le=M(le,2);ct(Le,ke=>O(T,ke),()=>r(T));var J=M(Le,2);{var Ve=ke=>{nf(ke,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};V(J,ke=>{r(oe)&&ke(Ve)})}var j=M(J,2);{var N=ke=>{of(ke,{})};V(j,ke=>{u()&&ke(N)})}var Re=M(j,2);{var re=ke=>{rf(ke,{})};V(Re,ke=>{r(ee)&&ke(re)})}g(ue),ct(ue,ke=>O(A,ke),()=>r(A)),$(t,ue),q(),o()}var sn=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 ib=$e('<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 sf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=ib();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i))),$(t,o)}var ob=$e('<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 af(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=ob();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({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 da(t,e){let i=m(e,"isActive",3,!1);var o=ze(),n=pe(o);{var a=d=>{af(d,{})},s=d=>{sf(d,{})};V(n,d=>{i()?d(a):d(s,!1)})}$(t,o)}var nb=L('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),rb=L('<div role="timer" data-testid="thumb-timer"><div class="thumb-timer-equalizer svelte-opbced"><div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div></div> <span class="thumb-timer-text svelte-opbced"><!></span></div>'),sb={hash:"svelte-opbced",code:`.thumb-timer.svelte-opbced {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration);}.thumb-timer.live.svelte-opbced {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);}.thumb-timer.hidden.svelte-opbced {visibility:hidden;opacity:0;}.thumb-timer.svelte-opbced:after {
|
|
71
71
|
/* safari fix */content:'';display:inline-block;vertical-align:middle;height:100%;}.thumb-timer-live-icon.svelte-opbced {display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px;}.thumb-timer-equalizer.svelte-opbced {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) {margin-top:-2px;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
|
|
72
72
|
animation: 1.5s infinite linear alternate;animation-play-state:paused;}.thumb-timer.playing.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) .col:where(.svelte-opbced) {animation-play-state:running;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(1) {left:0;
|
|
73
73
|
animation-name: svelte-opbced-thumb-timer-equalizer-col1;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(2) {left:3px;
|
|
@@ -138,9 +138,9 @@ Try switching the\xA0quality to\xA0Auto.`},Nh=L_;var as=new Map;as.set(Xa.Interf
|
|
|
138
138
|
100% {
|
|
139
139
|
transform: scaleY(0.6);
|
|
140
140
|
}
|
|
141
|
-
}.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function sd(t,e){q(e,!0),G(t,ib);let i=v(e,"isHidden",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var a=tb();let s;var d=M(h(a),2),l=h(d);{var u=_=>{var p=eb(),$=h(p);rd($,{isActive:!0}),g(p),b(_,p)},f=_=>{var p=ur();I($=>ge(p,$),[()=>mr(e.duration-e.position)]),b(_,p)};R(l,_=>{o()?_(u):_(f,!1)})}g(d),g(a),I(_=>s=ie(a,1,"thumb-timer svelte-opbced",null,s,_),[()=>({live:o(),hidden:i(),playing:n()})]),b(t,a),W()}var il=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/es2015");var rf=require("@vkontakte/videoplayer-core/es2015");var vr=t=>{t.stopPropagation(),t.preventDefault()},nb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},rb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},sb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},ab=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Wh=t=>t.code==="Escape",lb=t=>t.code==="ArrowLeft",ad=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Kh=t=>{if(sb(t)){vr(t),rb(t.target);return}ab(t)&&(vr(t),nb(t.target))},Ts=t=>!rf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||rf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",ol=(t,e,i)=>kt(void 0,null,function*(){yield Co(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(yield Co(),i.set(!1),t.focus())}),Qh=(t,e,i)=>kt(void 0,null,function*(){yield Co(),t&&!e&&xe(i)&&(i.set(!1),t.focus())}),nl=(t,e,i)=>kt(void 0,null,function*(){var n;yield Co(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),Gh=(t,e)=>kt(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Yc=(t,e)=>{Kh(t),Wh(t)&&(vr(t),e())},jc=(t,e)=>kt(void 0,null,function*(){ad(t,["ArrowRight"])&&(vr(t),e())}),Yh=(t,e,i)=>kt(void 0,null,function*(){if(Kh(t),lb(t)){vr(t),e();return}Wh(t)&&(vr(t),i())}),rl=(t,e)=>{ad(t)&&(vr(t),e())},jh=(t,e,i)=>{if(ad(t))vr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),vr(t);return}o==="ArrowRight"&&!e&&(i(!0),vr(t))}},Zh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Xh=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 da=require("@vkontakte/videoplayer-shared/es2015");var Vr={"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 sf=require("@vkontakte/videoplayer-shared/es2015");var cb=(t,e)=>{rl(t,()=>e())},ub=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),pb={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 af(t,e){q(e,!0),G(t,pb);let i=v(e,"onClick",3,sf.noop),o=v(e,"closeContextMenu",3,sf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=ub();a.__click=n,a.__keydown=[cb,n];var s=h(a,!0);g(a),I(()=>{var d;He(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),He(a,"data-testid",e.id),ge(s,e.label)}),b(t,a),W()}at(["click","keydown"]);var la=(t,e)=>t.weight-e.weight;var sl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(sl||{});var fb=(t,e)=>{Yc(t,e)},mb=t=>{t.preventDefault()},vb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),gb={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 lf(t,e){q(e,!0),G(t,gb);let[i,o]=Fe(),n=()=>C(ne,"$isLive$",i),a=()=>C(Me,"$isPiPEnabled$",i),s=()=>C(J,"$chromecastState$",i),d=()=>C(ee,"$pictureInPictureApiIsActive$",i),l=()=>C(Re,"$isLooped$",i),u=()=>C(fe,"$positionExact$",i),f=()=>C(z,"$debugPanelVisible",i),_=()=>C(j,"$additionalContextMenuItems$",i),p=v(e,"visible",3,!1),$=v(e,"position",19,()=>({top:0,left:0})),w=v(e,"playerContainerRef",3,void 0),y=v(e,"controlsContainerRef",3,void 0),S=v(e,"menuElementRef",15,void 0),k=te(0),P=te(0),A=Ce(),{pictureInPicture$:E}=fo(),T=Yt(),V=A.ui.contextMenu.visible$,z=A.ui.debugPanelVisible,j=A.ui.additionalContextMenuItems$,F=A.ui.t,Z=A.actions.internal.togglePictureInPicture,J=A.state.chromecastState$,ne=A.state.isLive$,fe=A.state.positionExact$,de=A.state.isInteractive,Re=A.state.looped$,{isEnabled$:Me,isActive$:ee}=E,Le=m(()=>{var je;return T.features.copyVideoLink&&((je=A.callbacks)==null?void 0:je.onCopyVideoLink)}),X=m(()=>r(Le)&&!n()&&!de),N=m(()=>{var je;return!!((je=A.callbacks)!=null&&je.onCopyEmbedCodeClicked)}),De=m(()=>a()&&s()!==Jh.ChromecastState.CONNECTED&&!de),re=m(()=>T.features.videoRotate&&!de),Ee=m(()=>T.showSupport&&!d()),Ne=m(()=>T.features.saveTraceInfoToFile),me=()=>{var je;V.set(!1),(je=e.returnFocus)==null||je.call(e)},B=(je,dt)=>{if(!S()||!w()||!y())return;let et=S().getBoundingClientRect(),Et=w().getBoundingClientRect();O(k,je-Et.left),O(P,dt-Et.top),r(k)+et.width>Et.width&&O(k,Et.width-et.width),r(P)+et.height>Et.height&&O(P,Et.height-et.height),O(k,ve(Math.max(r(k),0))),O(P,ve(Math.max(r(P),0)))};We(()=>{kt(this,null,function*(){if(S()&&w()&&y()){yield Co();let{top:dt,left:et,bottom:Et,right:ii}=$(),Ge=et!=null?et:0,ct=dt!=null?dt:0,oi=S().getBoundingClientRect();(0,da.isNullable)(et)&&!(0,da.isNullable)(ii)&&(Ge=ii-oi.width),(0,da.isNullable)(dt)&&!(0,da.isNullable)(Et)&&(ct=Et-oi.height),Ge=Math.max(Ge,0),ct=Math.max(ct,0),B(Ge,ct)}})});let ce=()=>{A.actions.internal.videoRotate()},Pe=()=>{(0,da.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),A.actions.internal.reportProblem(),A.actions.internal.pause()},Ye=()=>{let je=A.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let dt=new Blob([...je],{type:"plain/text"}),et=window.URL.createObjectURL(dt);ia(et,"vk_player_debug_info","txt")}else il(A.actions.internal.getDebugTextData())},lt=()=>{let je=A.actions.internal.getTraceTextData(),dt=new Blob([...je],{type:"application/json"}),et=window.URL.createObjectURL(dt);ia(et,"vk_player_trace_info","json")},Ae=()=>{z.set(!0)},ye=()=>kt(this,null,function*(){var je;try{Z()}finally{(je=e.returnFocus)==null||je.call(e)}}),Ve=()=>{A.actions.internal.setLooped(!l())},Xe=()=>{var je,dt;if(r(N)){let et=(dt=(je=A.callbacks)==null?void 0:je.onCopyEmbedCodeClicked)==null?void 0:dt.call(je);et&&il(et)}},pt=(je=!1)=>{var dt,et;if((dt=A.callbacks)!=null&&dt.onCopyVideoLink){let Et=(et=A.callbacks)==null?void 0:et.onCopyVideoLink(je,u());Et&&il(Et)}},rt=m(()=>T.features.saveDebugInfoToFile?F("menu_save_debug"):F("menu_copy_debug")),Ot=m(()=>r(Le)?{id:"copy-link",weight:Vr["copy-link"],label:F("menu_copy_video_link"),onClick:()=>pt()}:void 0),st=m(()=>r(X)?{id:"copy-link-timestamp",weight:Vr["copy-link-timestamp"],label:F("menu_copy_video_link_with_timestamp"),onClick:()=>pt(!0)}:void 0),wt=m(()=>r(N)?{id:"copy-embed-code",weight:Vr["copy-embed-code"],label:F("menu_copy_embed_code"),onClick:Xe}:void 0),Wt=m(()=>r(De)?{id:"pip",weight:Vr.pip,label:F("menu_pip"),onClick:ye}:void 0),jt=m(()=>({id:"video-loop",weight:Vr["video-loop"],label:l()?F("menu_video_loop_off"):F("menu_video_loop_on"),ariaLabel:F("aria_label_menu_loop"),onClick:Ve})),Be=m(()=>r(re)?{id:"rotate",weight:Vr.rotate,label:F("menu_video_rotate"),ariaLabel:F("aria_label_menu_rotate"),onClick:ce}:void 0),se=m(()=>r(Ee)?{id:"report",weight:Vr.report,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,onClick:Pe}:void 0),Q=m(()=>({id:"save-debug",weight:Vr["save-debug"],label:r(rt),onClick:Ye})),ae=m(()=>r(Ne)?{id:"save-trace",weight:Vr["save-trace"],label:F("menu_save_debug"),onClick:lt}:void 0),_e=m(()=>({id:"debug-info",weight:Vr["debug-info"],label:F("menu_debug_overlay"),ariaLabel:f()?F("aria_label_menu_debug_overlay_disable"):F("aria_label_menu_debug_overlay_enable"),onClick:Ae})),Te=m(()=>[r(Ot),r(st),r(wt),r(Wt),r(jt),r(Be),r(se),r(Q),r(ae),r(_e),..._()].filter(je=>!!je).sort(la));var Oe=Ue(),ft=pe(Oe);{var Kt=je=>{var dt=vb();dt.__contextmenu=[mb],dt.__keydown=[fb,me],wi(dt,21,()=>r(Te),et=>et.id,(et,Et)=>{af(et,{get id(){return r(Et).id},get label(){return r(Et).label},get ariaLabel(){return r(Et).ariaLabel},get onClick(){return r(Et).onClick},closeContextMenu:me})}),g(dt),ut(dt,et=>S(et),()=>S()),I(()=>{var et,Et;return it(dt,`top: ${(et=r(P))!=null?et:""}px; left: ${(Et=r(k))!=null?Et:""}px;`)}),b(je,dt)};R(ft,je=>{p()&&je(Kt)})}b(t,Oe),W(),o()}at(["contextmenu","keydown"]);var Zc=class{constructor(e){this.value=e,this.next=null}};var al=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 hb=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 ld(t,e){q(e,!0),G(t,_b);let i=v(e,"values",19,()=>[]),o=te(void 0),n=te(null),a=16,s=120,d=60,l=s/d;Ut(()=>{r(o).width=s,r(o).height=a,O(n,ve(r(o).getContext("2d")))});function u(p,$,w,y,S){S===0&&(S=1),p.fillStyle="#fff",p.fillRect($,w,y,S)}We(()=>{let p="";if(r(n)){let $=i()[0];for(let y=1;y<i().length;y++)i()[y]>$&&($=i()[y]);r(n).clearRect(0,0,s,a);let w=d-1;for(let y=i().length-1;y>=0;y--){let S=w*l,k=$>0?a*(i()[y]/$):0;u(r(n),S,0,l,k),p=k+" "+p,w--}}});var f=hb(),_=h(f);ut(_,p=>O(o,p),()=>r(o)),g(f),b(t,f),W()}var df=require("@vkontakte/videoplayer-shared/es2015");var bb=(t,e)=>{t.stopPropagation(),df.safeStorage.remove(jl),e.set(!1)},$b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),yb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),xb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),wb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),kb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Pb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Lb=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>'),Vb={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 dd(t,e){q(e,!0),G(t,Vb);let[i,o]=Fe(),n=()=>C(d,"$isMobile",i),a=Ce(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=te(ve(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=te(0),_=te(0),p=te(0),$=new al(60),w=new al(60),y=new al(60),S=te(ve([])),k=te(ve([])),P=te(ve([])),A=H("aria_label_debug_panel");Ut(()=>{df.safeStorage.set(jl,"true"),a.actions.internal.startLogging(),u&&(O(_,ve(u.getVideoPlaybackQuality().droppedVideoFrames)),O(f,ve(u.getVideoPlaybackQuality().totalVideoFrames)));let Q=window.setInterval(()=>{O(l,ve(a.actions.internal.getDebugPanelData()))},500),ae;return u&&(ae=window.setInterval(()=>{if(u){O(_,ve(u.getVideoPlaybackQuality().droppedVideoFrames));let _e=u.getVideoPlaybackQuality().totalVideoFrames;O(p,_e-r(f)),O(f,ve(_e)),$.push(r(p)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),O(S,ve($.getValuesFromBottom())),O(k,ve(w.getValuesFromBottom())),O(P,ve(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Q),ae&&clearInterval(ae)}});var E=Lb();let T;He(E,"aria-label",A);var V=h(E);V.__click=[bb,s];var z=M(V,2),j=h(z),F=M(h(j),2),Z=h(F,!0);g(F),g(j);var J=M(j,2);{var ne=Q=>{var ae=$b(),_e=M(h(ae),2),Te=h(_e,!0);g(_e),g(ae),I(()=>ge(Te,r(l).id)),b(Q,ae)};R(J,Q=>{r(l).id&&Q(ne)})}var fe=M(J,2);{var de=Q=>{var ae=yb(),_e=M(h(ae),2),Te=h(_e,!0);g(_e),g(ae),I(()=>ge(Te,r(l).vsid)),b(Q,ae)};R(fe,Q=>{r(l).vsid&&Q(de)})}var Re=M(fe,2);{var Me=Q=>{var ae=xb(),_e=M(h(ae),2),Te=h(_e,!0);g(_e),g(ae),I(()=>ge(Te,r(l).provider)),b(Q,ae)};R(Re,Q=>{r(l).provider&&Q(Me)})}var ee=M(Re,2);{var Le=Q=>{var ae=wb(),_e=M(h(ae),2),Te=h(_e);g(_e),g(ae),I(()=>{var Oe,ft;return ge(Te,`Video: ${r(l).videoCodec||""} ${(Oe=r(l).hdr?"(HDR)":"")!=null?Oe:""}
|
|
141
|
+
}.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function ud(t,e){z(e,!0),K(t,sb);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var a=rb();let s;var d=M(h(a),2),l=h(d);{var u=_=>{var p=nb(),b=h(p);da(b,{isActive:!0}),g(p),$(_,p)},f=_=>{var p=cr();I(b=>ge(p,b),[()=>sn(e.duration-e.position)]),$(_,p)};V(l,_=>{o()?_(u):_(f,!1)})}g(d),g(a),I(_=>s=te(a,1,"thumb-timer svelte-opbced",null,s,_),[()=>({live:o(),hidden:i(),playing:n()})]),$(t,a),q()}var rl=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 i1=require("@vkontakte/videoplayer-core/es2015");var lf=require("@vkontakte/videoplayer-core/es2015");var fr=t=>{t.stopPropagation(),t.preventDefault()},lb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},db=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},cb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},ub=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Gh=t=>t.code==="Escape",pb=t=>t.code==="ArrowLeft",pd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Yh=t=>{if(cb(t)){fr(t),db(t.target);return}ub(t)&&(fr(t),lb(t.target))},Is=t=>!lf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||lf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",sl=(t,e,i)=>It(void 0,null,function*(){yield ko(),t&&!t.classList.contains("opened")&&!e&&we(i)&&(yield ko(),i.set(!1),t.focus())}),jh=(t,e,i)=>It(void 0,null,function*(){yield ko(),t&&!e&&we(i)&&(i.set(!1),t.focus())}),al=(t,e,i)=>It(void 0,null,function*(){var n;yield ko(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),Zh=(t,e)=>It(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Jc=(t,e)=>{Yh(t),Gh(t)&&(fr(t),e())},eu=(t,e)=>It(void 0,null,function*(){pd(t,["ArrowRight"])&&(fr(t),e())}),Xh=(t,e,i)=>It(void 0,null,function*(){if(Yh(t),pb(t)){fr(t),e();return}Gh(t)&&(fr(t),i())}),ll=(t,e)=>{pd(t)&&(fr(t),e())},Jh=(t,e,i)=>{if(pd(t))fr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),fr(t);return}o==="ArrowRight"&&!e&&(i(!0),fr(t))}},e1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},t1=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 ua=require("@vkontakte/videoplayer-shared/es2015");var Ar={"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 df=require("@vkontakte/videoplayer-shared/es2015");var mb=(t,e)=>{ll(t,()=>e())},vb=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),gb={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 cf(t,e){z(e,!0),K(t,gb);let i=m(e,"onClick",3,df.noop),o=m(e,"closeContextMenu",3,df.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=vb();a.__click=n,a.__keydown=[mb,n];var s=h(a,!0);g(a),I(()=>{var d;Fe(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Fe(a,"data-testid",e.id),ge(s,e.label)}),$(t,a),q()}rt(["click","keydown"]);var ca=(t,e)=>t.weight-e.weight;var dl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(dl||{});var hb=(t,e)=>{Jc(t,e)},_b=t=>{t.preventDefault()},bb=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 uf(t,e){z(e,!0),K(t,$b);let[i,o]=Oe(),n=()=>S(ee,"$isLive$",i),a=()=>S(Le,"$isPiPEnabled$",i),s=()=>S(oe,"$chromecastState$",i),d=()=>S(J,"$pictureInPictureApiIsActive$",i),l=()=>S(Me,"$isLooped$",i),u=()=>S(ue,"$positionExact$",i),f=()=>S(F,"$debugPanelVisible",i),_=()=>S(Y,"$additionalContextMenuItems$",i),p=m(e,"visible",3,!1),b=m(e,"position",19,()=>({top:0,left:0})),x=m(e,"playerContainerRef",3,void 0),y=m(e,"controlsContainerRef",3,void 0),C=m(e,"menuElementRef",15,void 0),k=ie(0),E=ie(0),P=Se(),{pictureInPicture$:A}=go(),T=Wt(),R=P.ui.contextMenu.visible$,F=P.ui.debugPanelVisible,Y=P.ui.additionalContextMenuItems$,H=P.ui.t,X=P.actions.internal.togglePictureInPicture,oe=P.state.chromecastState$,ee=P.state.isLive$,ue=P.state.positionExact$,le=P.state.isInteractive,Me=P.state.looped$,{isEnabled$:Le,isActive$:J}=A,Ve=v(()=>{var Ye;return T.features.copyVideoLink&&((Ye=P.callbacks)==null?void 0:Ye.onCopyVideoLink)}),j=v(()=>r(Ve)&&!n()&&!le),N=v(()=>{var Ye;return!!((Ye=P.callbacks)!=null&&Ye.onCopyEmbedCodeClicked)}),Re=v(()=>a()&&s()!==i1.ChromecastState.CONNECTED&&!le),re=v(()=>T.features.videoRotate&&!le),ke=v(()=>T.showSupport&&!d()),Ne=v(()=>T.features.saveTraceInfoToFile),fe=()=>{var Ye;R.set(!1),(Ye=e.returnFocus)==null||Ye.call(e)},B=(Ye,gt)=>{if(!C()||!x()||!y())return;let tt=C().getBoundingClientRect(),St=x().getBoundingClientRect();O(k,Ye-St.left),O(E,gt-St.top),r(k)+tt.width>St.width&&O(k,St.width-tt.width),r(E)+tt.height>St.height&&O(E,St.height-tt.height),O(k,me(Math.max(r(k),0))),O(E,me(Math.max(r(E),0)))};qe(()=>{It(this,null,function*(){if(C()&&x()&&y()){yield ko();let{top:gt,left:tt,bottom:St,right:ni}=b(),Xe=tt!=null?tt:0,pt=gt!=null?gt:0,li=C().getBoundingClientRect();(0,ua.isNullable)(tt)&&!(0,ua.isNullable)(ni)&&(Xe=ni-li.width),(0,ua.isNullable)(gt)&&!(0,ua.isNullable)(St)&&(pt=St-li.height),Xe=Math.max(Xe,0),pt=Math.max(pt,0),B(Xe,pt)}})});let de=()=>{P.actions.internal.videoRotate()},Ie=()=>{(0,ua.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Ke=()=>{let Ye=P.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let gt=new Blob([...Ye],{type:"plain/text"}),tt=window.URL.createObjectURL(gt);oa(tt,"vk_player_debug_info","txt")}else rl(P.actions.internal.getDebugTextData())},st=()=>{let Ye=P.actions.internal.getTraceTextData(),gt=new Blob([...Ye],{type:"application/json"}),tt=window.URL.createObjectURL(gt);oa(tt,"vk_player_trace_info","json")},xe=()=>{F.set(!0)},ye=()=>It(this,null,function*(){var Ye;try{X()}finally{(Ye=e.returnFocus)==null||Ye.call(e)}}),De=()=>{P.actions.internal.setLooped(!l())},et=()=>{var Ye,gt;if(r(N)){let tt=(gt=(Ye=P.callbacks)==null?void 0:Ye.onCopyEmbedCodeClicked)==null?void 0:gt.call(Ye);tt&&rl(tt)}},at=(Ye=!1)=>{var gt,tt;if((gt=P.callbacks)!=null&>.onCopyVideoLink){let St=(tt=P.callbacks)==null?void 0:tt.onCopyVideoLink(Ye,u());St&&rl(St)}},ft=v(()=>T.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),Ut=v(()=>r(Ve)?{id:"copy-link",weight:Ar["copy-link"],label:H("menu_copy_video_link"),onClick:()=>at()}:void 0),lt=v(()=>r(j)?{id:"copy-link-timestamp",weight:Ar["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>at(!0)}:void 0),wt=v(()=>r(N)?{id:"copy-embed-code",weight:Ar["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:et}:void 0),Yt=v(()=>r(Re)?{id:"pip",weight:Ar.pip,label:H("menu_pip"),onClick:ye}:void 0),Xt=v(()=>({id:"video-loop",weight:Ar["video-loop"],label:l()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:De})),Be=v(()=>r(re)?{id:"rotate",weight:Ar.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:de}:void 0),se=v(()=>r(ke)?{id:"report",weight:Ar.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:Ie}:void 0),Q=v(()=>({id:"save-debug",weight:Ar["save-debug"],label:r(ft),onClick:Ke})),ae=v(()=>r(Ne)?{id:"save-trace",weight:Ar["save-trace"],label:H("menu_save_debug"),onClick:st}:void 0),_e=v(()=>({id:"debug-info",weight:Ar["debug-info"],label:H("menu_debug_overlay"),ariaLabel:f()?H("aria_label_menu_debug_overlay_disable"):H("aria_label_menu_debug_overlay_enable"),onClick:xe})),Pe=v(()=>[r(Ut),r(lt),r(wt),r(Yt),r(Xt),r(Be),r(se),r(Q),r(ae),r(_e),..._()].filter(Ye=>!!Ye).sort(ca));var He=ze(),ut=pe(He);{var Kt=Ye=>{var gt=bb();gt.__contextmenu=[_b],gt.__keydown=[hb,fe],wi(gt,21,()=>r(Pe),tt=>tt.id,(tt,St)=>{cf(tt,{get id(){return r(St).id},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},get onClick(){return r(St).onClick},closeContextMenu:fe})}),g(gt),ct(gt,tt=>C(tt),()=>C()),I(()=>{var tt,St;return nt(gt,`top: ${(tt=r(E))!=null?tt:""}px; left: ${(St=r(k))!=null?St:""}px;`)}),$(Ye,gt)};V(ut,Ye=>{p()&&Ye(Kt)})}$(t,He),q(),o()}rt(["contextmenu","keydown"]);var tu=class{constructor(e){this.value=e,this.next=null}};var cl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new tu(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 yb=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),xb={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 fd(t,e){z(e,!0),K(t,xb);let i=m(e,"values",19,()=>[]),o=ie(void 0),n=ie(null),a=16,s=120,d=60,l=s/d;qt(()=>{r(o).width=s,r(o).height=a,O(n,me(r(o).getContext("2d")))});function u(p,b,x,y,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(b,x,y,C)}qe(()=>{let p="";if(r(n)){let b=i()[0];for(let y=1;y<i().length;y++)i()[y]>b&&(b=i()[y]);r(n).clearRect(0,0,s,a);let x=d-1;for(let y=i().length-1;y>=0;y--){let C=x*l,k=b>0?a*(i()[y]/b):0;u(r(n),C,0,l,k),p=k+" "+p,x--}}});var f=yb(),_=h(f);ct(_,p=>O(o,p),()=>r(o)),g(f),$(t,f),q()}var pf=require("@vkontakte/videoplayer-shared/es2015");var wb=(t,e)=>{t.stopPropagation(),pf.safeStorage.remove(id),e.set(!1)},Sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),kb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Pb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Vb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Db=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Nb=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 md(t,e){z(e,!0),K(t,Bb);let[i,o]=Oe(),n=()=>S(d,"$isMobile",i),a=Se(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=ie(me(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=ie(0),_=ie(0),p=ie(0),b=new cl(60),x=new cl(60),y=new cl(60),C=ie(me([])),k=ie(me([])),E=ie(me([])),P=U("aria_label_debug_panel");qt(()=>{pf.safeStorage.set(id,"true"),a.actions.internal.startLogging(),u&&(O(_,me(u.getVideoPlaybackQuality().droppedVideoFrames)),O(f,me(u.getVideoPlaybackQuality().totalVideoFrames)));let Q=window.setInterval(()=>{O(l,me(a.actions.internal.getDebugPanelData()))},500),ae;return u&&(ae=window.setInterval(()=>{if(u){O(_,me(u.getVideoPlaybackQuality().droppedVideoFrames));let _e=u.getVideoPlaybackQuality().totalVideoFrames;O(p,_e-r(f)),O(f,me(_e)),b.push(r(p)),r(l).speed&&x.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),O(C,me(b.getValuesFromBottom())),O(k,me(x.getValuesFromBottom())),O(E,me(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Q),ae&&clearInterval(ae)}});var A=Nb();let T;Fe(A,"aria-label",P);var R=h(A);R.__click=[wb,s];var F=M(R,2),Y=h(F),H=M(h(Y),2),X=h(H,!0);g(H),g(Y);var oe=M(Y,2);{var ee=Q=>{var ae=Sb(),_e=M(h(ae),2),Pe=h(_e,!0);g(_e),g(ae),I(()=>ge(Pe,r(l).id)),$(Q,ae)};V(oe,Q=>{r(l).id&&Q(ee)})}var ue=M(oe,2);{var le=Q=>{var ae=Cb(),_e=M(h(ae),2),Pe=h(_e,!0);g(_e),g(ae),I(()=>ge(Pe,r(l).vsid)),$(Q,ae)};V(ue,Q=>{r(l).vsid&&Q(le)})}var Me=M(ue,2);{var Le=Q=>{var ae=Tb(),_e=M(h(ae),2),Pe=h(_e,!0);g(_e),g(ae),I(()=>ge(Pe,r(l).provider)),$(Q,ae)};V(Me,Q=>{r(l).provider&&Q(Le)})}var J=M(Me,2);{var Ve=Q=>{var ae=kb(),_e=M(h(ae),2),Pe=h(_e);g(_e),g(ae),I(()=>{var He,ut;return ge(Pe,`Video: ${r(l).videoCodec||""} ${(He=r(l).hdr?"(HDR)":"")!=null?He:""}
|
|
142
142
|
&
|
|
143
|
-
Audio: ${r(l).audioCodec||""} ${(ft=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?ft:""}`)}),b(Q,ae)};R(ee,Q=>{(r(l).videoCodec||r(l).audioCodec)&&Q(Le)})}var X=M(ee,2);{var N=Q=>{var ae=Sb(),_e=M(h(ae),2),Te=h(_e,!0);g(_e),g(ae),I(()=>ge(Te,r(l).viewport)),b(Q,ae)};R(X,Q=>{r(l).viewport&&Q(N)})}var De=M(X,2);{var re=Q=>{var ae=Cb(),_e=M(h(ae),2),Te=h(_e,!0);g(_e),g(ae),I(()=>ge(Te,r(l).videoSize)),b(Q,ae)};R(De,Q=>{r(l).videoSize&&Q(re)})}var Ee=M(De,2);{var Ne=Q=>{var ae=Tb(),_e=M(h(ae),2),Te=h(_e,!0);g(_e),g(ae),I(()=>ge(Te,r(l).cdn)),b(Q,ae)};R(Ee,Q=>{r(l).cdn&&Q(Ne)})}var me=M(Ee,2);{var B=Q=>{var ae=kb(),_e=M(h(ae),2),Te=h(_e);g(_e),g(ae),I(()=>{var Oe;return ge(Te,`${(Oe=r(l).volume)!=null?Oe:""} %`)}),b(Q,ae)};R(me,Q=>{r(l).volume&&Q(B)})}var ce=M(me,2);{var Pe=Q=>{var ae=Ib(),_e=M(h(ae),2),Te=h(_e);g(_e),g(ae),I(Oe=>ge(Te,`${Oe!=null?Oe:""} s`),[()=>r(l).buffer.toFixed(2)]),b(Q,ae)};R(ce,Q=>{r(l).buffer&&Q(Pe)})}var Ye=M(ce,2);{var lt=Q=>{var ae=Eb(),_e=M(h(ae),2),Te=h(_e);g(_e),g(ae),I(Oe=>ge(Te,`${Oe!=null?Oe:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(Q,ae)};R(Ye,Q=>{r(l).liveLatency&&Q(lt)})}var Ae=M(Ye,2);{var ye=Q=>{var ae=Pb(),_e=M(h(ae),2),Te=h(_e,!0);g(_e),g(ae),I(Oe=>ge(Te,Oe),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Oe})=>Oe).map(({value:Oe,title:ft})=>`${ft} ${((Oe!=null?Oe:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Q,ae)};R(Ae,Q=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&Q(ye)})}var Ve=M(Ae,2),Xe=M(h(Ve),2),pt=h(Xe);g(Xe),g(Ve);var rt=M(Ve,2);{var Ot=Q=>{var ae=Ab(),_e=M(h(ae),2);ld(_e,{get values(){return r(k)}});var Te=M(_e,2),Oe=h(Te);g(Te),g(ae),I(ft=>ge(Oe,`${ft!=null?ft:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(Q,ae)};R(rt,Q=>{r(l).speed&&Q(Ot)})}var st=M(rt,2);{var wt=Q=>{var ae=Mb(),_e=M(h(ae),2);ld(_e,{get values(){return r(P)}});var Te=M(_e,2),Oe=h(Te);g(Te),g(ae),I(ft=>ge(Oe,`${ft!=null?ft:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(Q,ae)};R(st,Q=>{r(l).bitrate&&Q(wt)})}var Wt=M(st,2),jt=M(h(Wt),2);ld(jt,{get values(){return r(S)}});var Be=M(jt,2),se=h(Be,!0);g(Be),g(Wt),g(z),g(E),I(Q=>{var ae,_e;T=ie(E,1,"container svelte-4deykz",null,T,Q),ge(Z,r(l).version),ge(pt,`${(ae=r(_))!=null?ae:""} / ${(_e=r(f))!=null?_e:""} frames`),ge(se,r(p))},[()=>({"container-mobile":n()})]),b(t,E),W(),o()}at(["click"]);var e1=require("@vkontakte/videoplayer-shared/es2015"),Rb=(t,e)=>{t.stopPropagation(),e()()},Db=L('<div class="close svelte-1ome55p"></div>'),Nb={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 ca(t,e){q(e,!0),G(t,Nb);let i=v(e,"onClick",3,e1.noop);var o=Db();o.__click=[Rb,i],b(t,o),W()}at(["click"]);var t1=require("@vkontakte/videoplayer-shared/es2015"),Bb=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>'),Ob={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 cd(t,e){q(e,!0),G(t,Ob);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,t1.noop),n=5e3,a=te(void 0),s,d,l=te(0),u;We(()=>{i()&&(d=Date.now(),O(l,ve(requestAnimationFrame(_))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),O(l,0))},_=()=>{if(!i()){f();return}u=(Date.now()-d)/n,u<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*u),s==null||s.stroke(),O(l,ve(requestAnimationFrame(_)))):o()()};Ut(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),Sn(()=>{f()});var p=Bb(),$=h(p);ut($,w=>O(a,w),()=>r(a)),be(2),g(p),b(t,p),W()}var Hb=(t,e,i)=>{e(!1),i()},Fb=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),Ub={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 cf(t,e){q(e,!0),G(t,Ub);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),$()};Ut(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=Ue(),k=pe(S);{var P=A=>{var E=Fb(),T=M(pe(E),2),V=h(T),z=h(V),j=h(z,!0);g(z);var F=M(z,2);ca(F,{onClick:y}),g(V);var Z=M(V,2);Z.__click=[Hb,u,_];var J=h(Z),ne=h(J),fe=h(ne);let de;var Re=M(fe,2);{var Me=N=>{let De=m(()=>a()&&n());cd(N,{get isRunning(){return r(De)},onTimerEnded:w})};R(Re,N=>{n()&&N(Me)})}g(ne),g(J);var ee=M(J,2),Le=h(ee),X=h(Le,!0);g(Le),g(ee),g(Z),g(T),I((N,De)=>{ge(j,N),it(ne,`background-image: url('${e.thumb}')`),de=ie(fe,1,"thumb-overlay svelte-jfbaax",null,de,De),ge(X,e.title)},[()=>H("end_screen_next_video"),()=>({withOpacity:n()})]),b(A,E)};R(k,A=>{e.isHide||A(P)})}b(t,S),W(),o()}at(["click"]);var Is=require("@vkontakte/videoplayer-core/es2015"),i1=require("@vkontakte/videoplayer-shared/es2015"),cn=require("@vkontakte/videoplayer-statistics/es2015");var uf=(t,e)=>Math.min(+(t+e).toFixed(2),1),pf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Xc=(t,e,i)=>{let o=uf(e,i);e<1&&t.actions.internal.setVolume(o)},Jc=(t,e,i)=>{let o=pf(e,i);e>0&&t.actions.internal.setVolume(o)};var ks=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var qb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Wb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function ff(t,e){var jt,Be;q(e,!0),G(t,Wb);let[i,o]=Fe(),n=()=>C(j,"$playbackState$",i),a=()=>C(F,"$adPlaybackState",i),s=()=>C(fe,"$disabledControls$",i),d=()=>C(Z,"$positionExact$",i),l=()=>C(J,"$duration$",i),u=()=>C(B,"$isAudioAvailable$",i),f=()=>C(ne,"$volume$",i),_=()=>C(ee,"$availablePlaybackRates$",i),p=()=>C(Me,"$currentPlaybackRate$",i),$=()=>C(Pe,"$isInteractiveTime$",i),w=()=>C(Ye,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(re,"$isEnded$",i),S=()=>C(de,"$muted$",i),k=()=>C(Re,"$currentSubtitle$",i),P=()=>C(Ee,"$overlayContainer$",i),A=v(e,"nextButtonActive",3,!1),E=v(e,"prevButtonActive",3,!1),T=Ce(),V=Yt(),z=T.getLogger().createComponentLog("KeyboardControls component"),j=T.state.playbackState$,F=T.ads.playbackState,Z=T.state.positionExact$,J=T.state.duration$,ne=T.state.volume$,fe=T.ui.controls.disabledControls$,de=T.state.muted$,Re=T.state.currentSubtitle$,Me=T.state.currentPlaybackRate$,ee=T.state.availablePlaybackRates$,Le=T.ui.contextMenu.openedByHotKey$,X=T.ui.contextMenu.lastActiveElem$,N=T.ui.contextMenu.visible$,De=T.ui.contextMenu.position$,re=T.state.isEnded$,Ee=T.ui.overlayContainer$,Ne=(jt=T.callbacks)==null?void 0:jt.onAudioDoesNotExistHint,me=(Be=T.callbacks)==null?void 0:Be.onAudioDisabledHint,B=T.state.isAudioAvailable$,ce=T.state.isAudioDisabled,Pe=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ye}=fo(),lt=0,Ae=!0,ye=te(void 0),Ve=()=>{var se;return(se=r(ye))==null?void 0:se.focus()},Xe=se=>(se!==Ae&&(Ae=se,lt=0),lt+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*lt)/1e3),pt=se=>{var Et,ii;let Q=se.target,ae=(Et=Q==null?void 0:Q.getAttribute("role"))==null?void 0:Et.includes("menuitem"),_e=Q.classList.contains("btn"),Te=se.code;if(_e&&Te==="Space")return;let Oe=ah.has(Te);if(ae&&Oe)return;let ft=!sh.has(Te);if(se.ctrlKey&&ft||se.altKey&&ft||se.metaKey)return;let Kt=ae&&Te==="Escape";lh.has(Te)||Kt||e.hideContextMenu();let je=n()===Is.PlaybackState.PLAYING||n()===Is.PlaybackState.PAUSED,dt=e.isAds&&(a()==="paused"||a()==="playing"),et=!dt&&!s().has("TIMELINE");if(je||dt)switch(z({message:`key down, code: ${Te}`}),Te){case"KeyJ":case"ArrowLeft":{if(!et)break;if(se.ctrlKey||se.altKey){let Ge=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(Ge),Ge&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ge.text}),se.preventDefault()}else{let Ge=se.shiftKey?Xe(!1):V.controls.seekStepKeyboard/1e3,ct=Math.max(d()-Ge,0);d()>0&&(T.actions.internal.seekTime(ct,cn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ge.toString()}),se.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!et)break;if(se.ctrlKey||se.altKey){let Ge=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(Ge),Ge&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ge.text}),se.preventDefault()}else{let Ge=se.shiftKey?Xe(!0):V.controls.seekStepKeyboard/1e3,ct=Math.min(d()+Ge,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(ct,cn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ge.toString()}),se.preventDefault())}break}case"ArrowUp":{if(ks({isAudioDisabled:ce,audioDisabledHintCallback:me,isAudioAvailable:u(),audioIsNotExistHintCallback:Ne})){let Ge=f(),ct=V.controls.volumeStepKeyboard,oi=Ge<=1;if(Xc(T,Ge,ct),oi){let Ni=Math.round(uf(Ge,ct)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ni}})}}se.preventDefault();break}case"ArrowDown":{if(ks({isAudioDisabled:ce,audioDisabledHintCallback:me,isAudioAvailable:u(),audioIsNotExistHintCallback:Ne})){let Ge=f(),ct=V.controls.volumeStepKeyboard,oi=Ge>=0;if(Jc(T,Ge,ct),oi){let Ni=Math.round(pf(Ge,ct)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ni}})}}se.preventDefault();break}case"Comma":{if(se.shiftKey){T.actions.internal.decrementPlaybackRate();let Ge=_().find(ct=>ct.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ge==null?void 0:Ge.displayValue}),se.preventDefault()}else{if(dt||n()!==Is.PlaybackState.PAUSED)break;let Ge=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ge,cn.SeekAction.DOUBLE_TAP),se.preventDefault())}break}case"Period":{if(se.shiftKey){T.actions.internal.incrementPlaybackRate();let Ge=_().find(ct=>ct.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:Ge==null?void 0:Ge.displayValue}),se.preventDefault()}else{if(dt||n()!==Is.PlaybackState.PAUSED)break;let Ge=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ge,cn.SeekAction.DOUBLE_TAP),se.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&Ye.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let Ge="PLAY";n()===Is.PlaybackState.PAUSED?Ge="PAUSE":y()&&(Ge="REPLAY"),e.showHotKeyHelpers({type:Ge})}se.preventDefault();break;case"KeyM":{ks({isAudioDisabled:ce,audioDisabledHintCallback:me,isAudioAvailable:u(),audioIsNotExistHintCallback:Ne})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),T.actions.internal.toggleMuted()),se.preventDefault();break}case"KeyF":e.toggleFullscreen(),se.preventDefault();break;case"KeyC":T.actions.internal.toggleSubtitle(),k().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ii=k())==null?void 0:ii.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),se.preventDefault();break;case"KeyI":T.actions.internal.togglePictureInPicture(),se.preventDefault();break;case"Digit1":case"Numpad1":if(se.shiftKey){let Ge=Xh(P());De.set(Ge),X.set(Q),Le.set(!0),N.set(!0),se.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,cn.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,cn.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,cn.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,cn.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,cn.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,cn.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,cn.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,cn.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,cn.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,cn.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Slash":{se.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),se.preventDefault());break}case"KeyN":se.shiftKey&&A()&&T.actions.internal.nextVideoClick();break;case"KeyP":se.shiftKey&&E()&&T.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":se.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,i1.checkNever)(Te);break}},rt=se=>{let Q=se.code;if(se.ctrlKey||se.altKey||se.metaKey)return;let ae=n()===Is.PlaybackState.PLAYING||n()===Is.PlaybackState.PAUSED,_e=e.isAds&&(a()==="paused"||a()==="playing");if(ae||_e)switch(Q){case"ShiftLeft":case"ShiftRight":lt=0;break}},Ot=H("aria_label_video_player");var st=qb();st.__keyup=rt,st.__keydown=pt,He(st,"aria-label",Ot);var wt=h(st);he(wt,()=>{var se;return(se=e.children)!=null?se:oe}),g(st),ut(st,se=>O(ye,se),()=>r(ye)),b(t,st);var Wt=W({focus:Ve});return o(),Wt}at(["keyup","keydown"]);var Kb=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>'),Qb={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
|
|
143
|
+
Audio: ${r(l).audioCodec||""} ${(ut=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?ut:""}`)}),$(Q,ae)};V(J,Q=>{(r(l).videoCodec||r(l).audioCodec)&&Q(Ve)})}var j=M(J,2);{var N=Q=>{var ae=Ib(),_e=M(h(ae),2),Pe=h(_e,!0);g(_e),g(ae),I(()=>ge(Pe,r(l).viewport)),$(Q,ae)};V(j,Q=>{r(l).viewport&&Q(N)})}var Re=M(j,2);{var re=Q=>{var ae=Eb(),_e=M(h(ae),2),Pe=h(_e,!0);g(_e),g(ae),I(()=>ge(Pe,r(l).videoSize)),$(Q,ae)};V(Re,Q=>{r(l).videoSize&&Q(re)})}var ke=M(Re,2);{var Ne=Q=>{var ae=Pb(),_e=M(h(ae),2),Pe=h(_e,!0);g(_e),g(ae),I(()=>ge(Pe,r(l).cdn)),$(Q,ae)};V(ke,Q=>{r(l).cdn&&Q(Ne)})}var fe=M(ke,2);{var B=Q=>{var ae=Ab(),_e=M(h(ae),2),Pe=h(_e);g(_e),g(ae),I(()=>{var He;return ge(Pe,`${(He=r(l).volume)!=null?He:""} %`)}),$(Q,ae)};V(fe,Q=>{r(l).volume&&Q(B)})}var de=M(fe,2);{var Ie=Q=>{var ae=Mb(),_e=M(h(ae),2),Pe=h(_e);g(_e),g(ae),I(He=>ge(Pe,`${He!=null?He:""} s`),[()=>r(l).buffer.toFixed(2)]),$(Q,ae)};V(de,Q=>{r(l).buffer&&Q(Ie)})}var Ke=M(de,2);{var st=Q=>{var ae=Lb(),_e=M(h(ae),2),Pe=h(_e);g(_e),g(ae),I(He=>ge(Pe,`${He!=null?He:""} s`),[()=>r(l).liveLatency.toFixed(2)]),$(Q,ae)};V(Ke,Q=>{r(l).liveLatency&&Q(st)})}var xe=M(Ke,2);{var ye=Q=>{var ae=Vb(),_e=M(h(ae),2),Pe=h(_e,!0);g(_e),g(ae),I(He=>ge(Pe,He),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:He})=>He).map(({value:He,title:ut})=>`${ut} ${((He!=null?He:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Q,ae)};V(xe,Q=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&Q(ye)})}var De=M(xe,2),et=M(h(De),2),at=h(et);g(et),g(De);var ft=M(De,2);{var Ut=Q=>{var ae=Rb(),_e=M(h(ae),2);fd(_e,{get values(){return r(k)}});var Pe=M(_e,2),He=h(Pe);g(Pe),g(ae),I(ut=>ge(He,`${ut!=null?ut:""} Kbps`),[()=>r(l).speed.toFixed(2)]),$(Q,ae)};V(ft,Q=>{r(l).speed&&Q(Ut)})}var lt=M(ft,2);{var wt=Q=>{var ae=Db(),_e=M(h(ae),2);fd(_e,{get values(){return r(E)}});var Pe=M(_e,2),He=h(Pe);g(Pe),g(ae),I(ut=>ge(He,`${ut!=null?ut:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),$(Q,ae)};V(lt,Q=>{r(l).bitrate&&Q(wt)})}var Yt=M(lt,2),Xt=M(h(Yt),2);fd(Xt,{get values(){return r(C)}});var Be=M(Xt,2),se=h(Be,!0);g(Be),g(Yt),g(F),g(A),I(Q=>{var ae,_e;T=te(A,1,"container svelte-4deykz",null,T,Q),ge(X,r(l).version),ge(at,`${(ae=r(_))!=null?ae:""} / ${(_e=r(f))!=null?_e:""} frames`),ge(se,r(p))},[()=>({"container-mobile":n()})]),$(t,A),q(),o()}rt(["click"]);var o1=require("@vkontakte/videoplayer-shared/es2015"),Ob=(t,e)=>{t.stopPropagation(),e()()},Hb=L('<div class="close svelte-1ome55p"></div>'),Fb={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 pa(t,e){z(e,!0),K(t,Fb);let i=m(e,"onClick",3,o1.noop);var o=Hb();o.__click=[Ob,i],$(t,o),q()}rt(["click"]);var n1=require("@vkontakte/videoplayer-shared/es2015"),Ub=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>'),zb={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 vd(t,e){z(e,!0),K(t,zb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,n1.noop),n=5e3,a=ie(void 0),s,d,l=ie(0),u;qe(()=>{i()&&(d=Date.now(),O(l,me(requestAnimationFrame(_))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),O(l,0))},_=()=>{if(!i()){f();return}u=(Date.now()-d)/n,u<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*u),s==null||s.stroke(),O(l,me(requestAnimationFrame(_)))):o()()};qt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),xn(()=>{f()});var p=Ub(),b=h(p);ct(b,x=>O(a,x),()=>r(a)),be(2),g(p),$(t,p),q()}var qb=(t,e,i)=>{e(!1),i()},Wb=L('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),Kb={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function ff(t,e){z(e,!0),K(t,Kb);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,b=s.actions.internal.nextVideoAnnouncementCancel,x=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),b()};qt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=ze(),k=pe(C);{var E=P=>{var A=Wb(),T=M(pe(A),2),R=h(T),F=h(R),Y=h(F,!0);g(F);var H=M(F,2);pa(H,{onClick:y}),g(R);var X=M(R,2);X.__click=[qb,u,_];var oe=h(X),ee=h(oe),ue=h(ee);let le;var Me=M(ue,2);{var Le=N=>{let Re=v(()=>a()&&n());vd(N,{get isRunning(){return r(Re)},onTimerEnded:x})};V(Me,N=>{n()&&N(Le)})}g(ee),g(oe);var J=M(oe,2),Ve=h(J),j=h(Ve,!0);g(Ve),g(J),g(X),g(T),I((N,Re)=>{ge(Y,N),nt(ee,`background-image: url('${e.thumb}')`),le=te(ue,1,"thumb-overlay svelte-jfbaax",null,le,Re),ge(j,e.title)},[()=>U("end_screen_next_video"),()=>({withOpacity:n()})]),$(P,A)};V(k,P=>{e.isHide||P(E)})}$(t,C),q(),o()}rt(["click"]);var Ps=require("@vkontakte/videoplayer-core/es2015"),r1=require("@vkontakte/videoplayer-shared/es2015"),an=require("@vkontakte/videoplayer-statistics/es2015");var mf=(t,e)=>Math.min(+(t+e).toFixed(2),1),vf=(t,e)=>Math.max(+(t-e).toFixed(2),0),iu=(t,e,i)=>{let o=mf(e,i);e<1&&t.actions.internal.setVolume(o)},ou=(t,e,i)=>{let o=vf(e,i);e>0&&t.actions.internal.setVolume(o)};var Es=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var Gb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Yb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function gf(t,e){var Xt,Be;z(e,!0),K(t,Yb);let[i,o]=Oe(),n=()=>S(Y,"$playbackState$",i),a=()=>S(H,"$adPlaybackState",i),s=()=>S(ue,"$disabledControls$",i),d=()=>S(X,"$positionExact$",i),l=()=>S(oe,"$duration$",i),u=()=>S(B,"$isAudioAvailable$",i),f=()=>S(ee,"$volume$",i),_=()=>S(J,"$availablePlaybackRates$",i),p=()=>S(Le,"$currentPlaybackRate$",i),b=()=>S(Ie,"$isInteractiveTime$",i),x=()=>S(Ke,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(re,"$isEnded$",i),C=()=>S(le,"$muted$",i),k=()=>S(Me,"$currentSubtitle$",i),E=()=>S(ke,"$overlayContainer$",i),P=m(e,"nextButtonActive",3,!1),A=m(e,"prevButtonActive",3,!1),T=Se(),R=Wt(),F=T.getLogger().createComponentLog("KeyboardControls component"),Y=T.state.playbackState$,H=T.ads.playbackState,X=T.state.positionExact$,oe=T.state.duration$,ee=T.state.volume$,ue=T.ui.controls.disabledControls$,le=T.state.muted$,Me=T.state.currentSubtitle$,Le=T.state.currentPlaybackRate$,J=T.state.availablePlaybackRates$,Ve=T.ui.contextMenu.openedByHotKey$,j=T.ui.contextMenu.lastActiveElem$,N=T.ui.contextMenu.visible$,Re=T.ui.contextMenu.position$,re=T.state.isEnded$,ke=T.ui.overlayContainer$,Ne=(Xt=T.callbacks)==null?void 0:Xt.onAudioDoesNotExistHint,fe=(Be=T.callbacks)==null?void 0:Be.onAudioDisabledHint,B=T.state.isAudioAvailable$,de=T.state.isAudioDisabled,Ie=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ke}=go(),st=0,xe=!0,ye=ie(void 0),De=()=>{var se;return(se=r(ye))==null?void 0:se.focus()},et=se=>(se!==xe&&(xe=se,st=0),st+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*st)/1e3),at=se=>{var St,ni;let Q=se.target,ae=(St=Q==null?void 0:Q.getAttribute("role"))==null?void 0:St.includes("menuitem"),_e=Q.classList.contains("btn"),Pe=se.code;if(_e&&Pe==="Space")return;let He=ch.has(Pe);if(ae&&He)return;let ut=!dh.has(Pe);if(se.ctrlKey&&ut||se.altKey&&ut||se.metaKey)return;let Kt=ae&&Pe==="Escape";uh.has(Pe)||Kt||e.hideContextMenu();let Ye=n()===Ps.PlaybackState.PLAYING||n()===Ps.PlaybackState.PAUSED,gt=e.isAds&&(a()==="paused"||a()==="playing"),tt=!gt&&!s().has("TIMELINE");if(Ye||gt)switch(F({message:`key down, code: ${Pe}`}),Pe){case"KeyJ":case"ArrowLeft":{if(!tt)break;if(se.ctrlKey||se.altKey){let Xe=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(Xe),Xe&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Xe.text}),se.preventDefault()}else{let Xe=se.shiftKey?et(!1):R.controls.seekStepKeyboard/1e3,pt=Math.max(d()-Xe,0);d()>0&&(T.actions.internal.seekTime(pt,an.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Xe.toString()}),se.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!tt)break;if(se.ctrlKey||se.altKey){let Xe=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(Xe),Xe&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Xe.text}),se.preventDefault()}else{let Xe=se.shiftKey?et(!0):R.controls.seekStepKeyboard/1e3,pt=Math.min(d()+Xe,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(pt,an.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Xe.toString()}),se.preventDefault())}break}case"ArrowUp":{if(Es({isAudioDisabled:de,audioDisabledHintCallback:fe,isAudioAvailable:u(),audioIsNotExistHintCallback:Ne})){let Xe=f(),pt=R.controls.volumeStepKeyboard,li=Xe<=1;if(iu(T,Xe,pt),li){let Oi=Math.round(mf(Xe,pt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Oi}})}}se.preventDefault();break}case"ArrowDown":{if(Es({isAudioDisabled:de,audioDisabledHintCallback:fe,isAudioAvailable:u(),audioIsNotExistHintCallback:Ne})){let Xe=f(),pt=R.controls.volumeStepKeyboard,li=Xe>=0;if(ou(T,Xe,pt),li){let Oi=Math.round(vf(Xe,pt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Oi}})}}se.preventDefault();break}case"Comma":{if(se.shiftKey){T.actions.internal.decrementPlaybackRate();let Xe=_().find(pt=>pt.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:Xe==null?void 0:Xe.displayValue}),se.preventDefault()}else{if(gt||n()!==Ps.PlaybackState.PAUSED)break;let Xe=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Xe,an.SeekAction.DOUBLE_TAP),se.preventDefault())}break}case"Period":{if(se.shiftKey){T.actions.internal.incrementPlaybackRate();let Xe=_().find(pt=>pt.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:Xe==null?void 0:Xe.displayValue}),se.preventDefault()}else{if(gt||n()!==Ps.PlaybackState.PAUSED)break;let Xe=Math.min(d()+R.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Xe,an.SeekAction.DOUBLE_TAP),se.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if(b()&&x()&&Ke.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let Xe="PLAY";n()===Ps.PlaybackState.PAUSED?Xe="PAUSE":y()&&(Xe="REPLAY"),e.showHotKeyHelpers({type:Xe})}se.preventDefault();break;case"KeyM":{Es({isAudioDisabled:de,audioDisabledHintCallback:fe,isAudioAvailable:u(),audioIsNotExistHintCallback:Ne})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),T.actions.internal.toggleMuted()),se.preventDefault();break}case"KeyF":e.toggleFullscreen(),se.preventDefault();break;case"KeyC":T.actions.internal.toggleSubtitle(),k().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ni=k())==null?void 0:ni.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),se.preventDefault();break;case"KeyI":T.actions.internal.togglePictureInPicture(),se.preventDefault();break;case"Digit1":case"Numpad1":if(se.shiftKey){let Xe=t1(E());Re.set(Xe),j.set(Q),Ve.set(!0),N.set(!0),se.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,an.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,an.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,an.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,an.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,an.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,an.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,an.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,an.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,an.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,an.SeekAction.DOUBLE_TAP),se.preventDefault();break;case"Slash":{se.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),se.preventDefault());break}case"KeyN":se.shiftKey&&P()&&T.actions.internal.nextVideoClick();break;case"KeyP":se.shiftKey&&A()&&T.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":se.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,r1.checkNever)(Pe);break}},ft=se=>{let Q=se.code;if(se.ctrlKey||se.altKey||se.metaKey)return;let ae=n()===Ps.PlaybackState.PLAYING||n()===Ps.PlaybackState.PAUSED,_e=e.isAds&&(a()==="paused"||a()==="playing");if(ae||_e)switch(Q){case"ShiftLeft":case"ShiftRight":st=0;break}},Ut=U("aria_label_video_player");var lt=Gb();lt.__keyup=ft,lt.__keydown=at,Fe(lt,"aria-label",Ut);var wt=h(lt);he(wt,()=>{var se;return(se=e.children)!=null?se:ne}),g(lt),ct(lt,se=>O(ye,se),()=>r(ye)),$(t,lt);var Yt=q({focus:De});return o(),Yt}rt(["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>'),Zb={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
|
|
144
144
|
|
|
145
145
|
@keyframes svelte-1dbnjb1-dot_animation {
|
|
146
146
|
0% {
|
|
@@ -153,7 +153,7 @@ Try switching the\xA0quality to\xA0Auto.`},Nh=L_;var as=new Map;as.set(Xa.Interf
|
|
|
153
153
|
opacity: 0.2;
|
|
154
154
|
}
|
|
155
155
|
}.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
|
|
156
|
-
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function
|
|
156
|
+
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function fa(t,e){K(t,Zb);let i=m(e,"style",3,"");var o=jb();I(()=>nt(o,i())),$(t,o)}var Xb=$e('<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 hf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Xb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({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 ma=require("@vkontakte/videoplayer-shared/es2015"),Jb=t=>{t.stopPropagation()},e$=L("<button><!></button>"),t$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
|
|
157
157
|
|
|
158
158
|
/* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
|
|
159
159
|
|
|
@@ -161,22 +161,22 @@ Try switching the\xA0quality to\xA0Auto.`},Nh=L_;var as=new Map;as.set(Xa.Interf
|
|
|
161
161
|
/* mobile */
|
|
162
162
|
/* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
|
|
163
163
|
.btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
|
|
164
|
-
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function
|
|
164
|
+
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Vt(t,e){z(e,!0),K(t,t$);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),s=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),l=m(e,"ref",15,void 0),u=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),_=m(e,"tabIndex",3,0),p=m(e,"click",3,ma.noop),b=m(e,"focus",3,ma.noop),x=m(e,"blur",3,ma.noop),y=v(()=>p()===ma.noop?null:A=>{A.stopPropagation(),p()(A)}),C=v(()=>b()===ma.noop?null:A=>{A.preventDefault(),b()()}),k=v(()=>x()===ma.noop?null:A=>{A.preventDefault(),x()()});var E=e$();E.__pointerdown=[Jb],E.__click=function(...A){var T;(T=r(y))==null||T.apply(this,A)};var P=h(E);he(P,()=>{var A;return(A=e.children)!=null?A:ne}),g(E),ct(E,A=>l(A),()=>l()),I(()=>{var A,T,R,F,Y,H,X;te(E,1,`btn ${(A=i())!=null?A:""}`,"svelte-wr0kwr"),nt(E,o()||null),E.disabled=(T=n())!=null?T:null,Fe(E,"aria-hidden",(R=s())!=null?R:null),Fe(E,"aria-label",(F=d())!=null?F:null),Fe(E,"aria-keyshortcuts",(Y=u())!=null?Y:null),Fe(E,"aria-expanded",(H=f())!=null?H:null),Fe(E,"data-testid",(X=a())!=null?X:null),Fe(E,"tabindex",_())}),Et("focus",E,function(...A){var T;(T=r(C))==null||T.apply(this,A)}),Et("blur",E,function(...A){var T;(T=r(k))==null||T.apply(this,A)}),$(t,E),q()}rt(["pointerdown","click"]);var i$=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),o$=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>'),n$={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 _f(t,e){z(e,!0),K(t,n$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=U("hotkey_map_modal_close_btn_text");var a=o$(),s=h(a),d=h(s);{var l=p=>{var b=i$(),x=h(b),y=h(x,!0);g(x);var C=M(x,2);{var k=E=>{Vt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,A)=>{hf(P,{})},$$slots:{default:!0}})};V(C,E=>{o()&&E(k)})}g(b),I(()=>ge(y,e.title)),$(p,b)};V(d,p=>{i()&&p(l)})}var u=M(d,2),f=h(u),_=h(f);he(_,()=>{var p;return(p=e.children)!=null?p:ne}),g(f),g(u),g(s),g(a),$(t,a),q()}var r$=new Set(["BR"]),s1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],s=a.tagName;r$.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var s$=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>'),a$=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>'),l$=L('<div class="hot-key-map svelte-quklnq"></div>'),d$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
|
|
165
165
|
.hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
|
|
166
|
-
.hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function gf(t,e){q(e,!1),G(t,r$);let[i,o]=Fe(),n=()=>C(s,"$data",i),a=Ce(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Mr(),vf(t,{get title(){return n().title},onClose:l,children:(u,f)=>{var _=n$();wi(_,5,()=>n().groups,({title:p,items:$})=>p,(p,$)=>{let w=()=>r($).title,y=()=>r($).items;var S=o$(),k=h(S),P=h(k,!0);g(k);var A=M(k,2);wi(A,5,y,({description:E,value:T})=>T,(E,T)=>{let V=()=>r(T).description,z=()=>r(T).value;var j=i$(),F=h(j),Z=h(F);Wl(Z,()=>o1(V()),!1,!1),g(F);var J=M(F,2),ne=h(J,!0);g(J),g(j),I(()=>ge(ne,z())),b(E,j)}),g(A),g(S),I(()=>ge(P,w())),b(p,S)}),g(_),b(u,_)},$$slots:{default:!0}}),W(),o()}var cm=require("@vkontakte/videoplayer-shared/es2015");var ba=require("@vkontakte/videoplayer-core/es2015");var DL=require("@vkontakte/videoplayer-shared/es2015");var s$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),a$={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 hf(t,e){G(t,a$);var i=s$(),o=h(i);he(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),b(t,i)}var ll=require("@vkontakte/videoplayer-shared/es2015");var l$=$e('<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 _f(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=l$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var d$=$e('<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 bf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=d$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var c$=$e('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function $f(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=c$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var u$=$e('<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 ud(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=u$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i))),b(t,o)}var p$=$e('<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 pd(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=p$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i))),b(t,o)}var eu=t=>{switch(t){case ll.VideoQuality.Q_720P:return $f;case ll.VideoQuality.Q_1080P:return ud;case ll.VideoQuality.Q_1440P:return pd;case ll.VideoQuality.Q_2160P:return _f;case ll.VideoQuality.Q_4320P:return bf}};var f$=$e('<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 yf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=f$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i))),b(t,o)}var m$=$e('<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 xf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=m$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i))),b(t,o)}var v$=L('<div aria-hidden="true"><!> <!></div>'),g$={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 fd(t,e){q(e,!0),G(t,g$);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=m(()=>eu(o())),a=m(()=>!!r(n)&&[ud,pd].includes(r(n)));var s=Ue(),d=pe(s);{var l=f=>{yf(f,{})},u=f=>{var _=v$();let p;var $=h(_);{var w=k=>{hf(k,{children:(P,A)=>{var E=Ue(),T=pe(E);Si(T,()=>r(n),(V,z)=>{z(V,{})}),b(P,E)},$$slots:{default:!0}})};R($,k=>{r(n)&&k(w)})}var y=M($,2);let S=m(()=>r(n)?"settings-icon--labeled":"settings-icon");xf(y,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),g(_),I(k=>p=ie(_,1,"icon svelte-8t5w85",null,p,k),[()=>({triple:r(a)})]),b(f,_)};R(d,f=>{i()?f(l):f(u,!1)})}b(t,s),W()}var h$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),_$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function dl(t,e){q(e,!0),G(t,_$);let[i,o]=Fe(),n=()=>C(e.ref$,"$ref$",i),a=()=>C(f,"$settingsMenuVisible",i),s=()=>C($,"$isMobile",i),d=()=>C(u,"$currentQuality",i),l=Ce(),u=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,y=te(void 0);We(()=>{n()&&yt(()=>{e.ref$.set(r(y))})});let S=m(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));function k(A){return kt(this,null,function*(){let E=Ts(A);a()?p():_(E,Co)})}let P=m(()=>a()?"opened":"");Mt(t,{get className(){return r(P)},testId:"btn-settings",click:k,get ariaLabel(){return r(S)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(A){O(y,ve(A))},children:(A,E)=>{var T=h$(),V=h(T);fd(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(T),b(A,T)},$$slots:{default:!0}}),W(),o()}var b$=$e('<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 wf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=b$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img"},i))),b(t,o)}var $$=$e('<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 md(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=$$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img"},i))),b(t,o)}function Sf(t,e){q(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Ce().ui.t,a=m(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Mt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Kr.KeyC},children:(s,d)=>{var l=Ue(),u=pe(l);{var f=p=>{wf(p,{})},_=p=>{md(p,{})};R(u,p=>{i()?p(f):p(_,!1)})}b(s,l)},$$slots:{default:!0}}),W()}var y$=L('<span class="duration svelte-sz9er7"> </span>'),x$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),w$={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 vd(t,e){q(e,!0),G(t,w$);let i=v(e,"isMobile",3,!1),o=v(e,"showDuration",3,!0),n=v(e,"ref",15),a=m(()=>mr(e.duration)),s=m(()=>mr(e.position));var d=x$();let l;var u=h(d),f=h(u,!0);g(u);var _=M(u,2);{var p=$=>{var w=y$(),y=h(w,!0);g(w),I(()=>ge(y,r(a))),b($,w)};R(_,$=>{o()&&$(p)})}g(d),ut(d,$=>n($),()=>n()),I($=>{l=ie(d,1,"time svelte-sz9er7",null,l,$),ge(f,r(s))},[()=>({mobile:i()})]),b(t,d),W()}var hd=require("@vkontakte/videoplayer-shared/es2015");var S$=$e('<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>'),C$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
|
|
166
|
+
.hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function bf(t,e){z(e,!1),K(t,d$);let[i,o]=Oe(),n=()=>S(s,"$data",i),a=Se(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Er(),_f(t,{get title(){return n().title},onClose:l,children:(u,f)=>{var _=l$();wi(_,5,()=>n().groups,({title:p,items:b})=>p,(p,b)=>{let x=()=>r(b).title,y=()=>r(b).items;var C=a$(),k=h(C),E=h(k,!0);g(k);var P=M(k,2);wi(P,5,y,({description:A,value:T})=>T,(A,T)=>{let R=()=>r(T).description,F=()=>r(T).value;var Y=s$(),H=h(Y),X=h(H);Zl(X,()=>s1(R()),!1,!1),g(H);var oe=M(H,2),ee=h(oe,!0);g(oe),g(Y),I(()=>ge(ee,F())),$(A,Y)}),g(P),g(C),I(()=>ge(E,x())),$(p,C)}),g(_),$(u,_)},$$slots:{default:!0}}),q(),o()}var pm=require("@vkontakte/videoplayer-shared/es2015");var ya=require("@vkontakte/videoplayer-core/es2015");var YL=require("@vkontakte/videoplayer-shared/es2015");var c$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),u$={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 $f(t,e){K(t,u$);var i=c$(),o=h(i);he(o,()=>{var n;return(n=e.children)!=null?n:ne}),g(i),$(t,i)}var ul=require("@vkontakte/videoplayer-shared/es2015");var p$=$e('<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 yf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=p$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),$(t,o)}var f$=$e('<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 xf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=f$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),$(t,o)}var m$=$e('<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 wf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=m$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),$(t,o)}var v$=$e('<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 gd(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=v$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i))),$(t,o)}var g$=$e('<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 hd(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=g$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i))),$(t,o)}var nu=t=>{switch(t){case ul.VideoQuality.Q_720P:return wf;case ul.VideoQuality.Q_1080P:return gd;case ul.VideoQuality.Q_1440P:return hd;case ul.VideoQuality.Q_2160P:return yf;case ul.VideoQuality.Q_4320P:return xf}};var h$=$e('<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 Sf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=h$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 _$=$e('<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 Cf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=_$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i))),$(t,o)}var b$=L('<div aria-hidden="true"><!> <!></div>'),$$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function _d(t,e){z(e,!0),K(t,$$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=v(()=>nu(o())),a=v(()=>!!r(n)&&[gd,hd].includes(r(n)));var s=ze(),d=pe(s);{var l=f=>{Sf(f,{})},u=f=>{var _=b$();let p;var b=h(_);{var x=k=>{$f(k,{children:(E,P)=>{var A=ze(),T=pe(A);Si(T,()=>r(n),(R,F)=>{F(R,{})}),$(E,A)},$$slots:{default:!0}})};V(b,k=>{r(n)&&k(x)})}var y=M(b,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");Cf(y,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g(_),I(k=>p=te(_,1,"icon svelte-8t5w85",null,p,k),[()=>({triple:r(a)})]),$(f,_)};V(d,f=>{i()?f(l):f(u,!1)})}$(t,s),q()}var y$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),x$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function pl(t,e){z(e,!0),K(t,x$);let[i,o]=Oe(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(f,"$settingsMenuVisible",i),s=()=>S(b,"$isMobile",i),d=()=>S(u,"$currentQuality",i),l=Se(),u=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,b=l.ui.isMobile,x=l.ui.t,y=ie(void 0);qe(()=>{n()&&yt(()=>{e.ref$.set(r(y))})});let C=v(()=>a()?x("tooltip_settings_on"):x("tooltip_settings_off"));function k(P){return It(this,null,function*(){let A=Is(P);a()?p():_(A,ko)})}let E=v(()=>a()?"opened":"");Vt(t,{get className(){return r(E)},testId:"btn-settings",click:k,get ariaLabel(){return r(C)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){O(y,me(P))},children:(P,A)=>{var T=y$(),R=h(T);_d(R,{get isMobile(){return s()},get currentQuality(){return d()}}),g(T),$(P,T)},$$slots:{default:!0}}),q(),o()}var w$=$e('<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 Tf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=w$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 S$=$e('<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 bd(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=S$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 kf(t,e){z(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Se().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Vt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Qr.KeyC},children:(s,d)=>{var l=ze(),u=pe(l);{var f=p=>{Tf(p,{})},_=p=>{bd(p,{})};V(u,p=>{i()?p(f):p(_,!1)})}$(s,l)},$$slots:{default:!0}}),q()}var C$=L('<span class="duration svelte-sz9er7"> </span>'),T$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),k$={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 $d(t,e){z(e,!0),K(t,k$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),a=v(()=>sn(e.duration)),s=v(()=>sn(e.position));var d=T$();let l;var u=h(d),f=h(u,!0);g(u);var _=M(u,2);{var p=b=>{var x=C$(),y=h(x,!0);g(x),I(()=>ge(y,r(a))),$(b,x)};V(_,b=>{o()&&b(p)})}g(d),ct(d,b=>n(b),()=>n()),I(b=>{l=te(d,1,"time svelte-sz9er7",null,l,b),ge(f,r(s))},[()=>({mobile:i()})]),$(t,d),q()}var xd=require("@vkontakte/videoplayer-shared/es2015");var I$=$e('<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>'),E$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
|
|
167
167
|
.icon[data-value='off'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:visible;}.icon[data-value='mid'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua),
|
|
168
|
-
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function
|
|
168
|
+
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function As(t,e){K(t,E$);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 s=I$();I(()=>{var d;Fe(s,"data-value",r(a)),Fe(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),$(t,s)}var ln=require("@vkontakte/videoplayer-shared/es2015");var ru=require("@vkontakte/videoplayer-shared/es2015");var a1=require("@vkontakte/videoplayer-shared/es2015");var P$=L('<div class="overlay"><!></div>');function If(t,e){z(e,!0);let[i,o]=Oe(),n=()=>S(s,"$overlayContainer$",i),s=Se().ui.overlayContainer$,d=ie(void 0),l=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};qe(()=>{u(n())}),qt(()=>(u(n()),()=>l(n())));var f=P$(),_=h(f);he(_,()=>{var p;return(p=e.children)!=null?p:ne}),g(f),ct(f,p=>O(d,p),()=>r(d)),$(t,f),q(),o()}var A$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),M$=L("<div><!></div> <!>",1),L$={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 va(t,e){z(e,!0),K(t,L$);let[i,o]=Oe(),n=()=>S(X,"$overlayContainer$",i),a=()=>S(H,"$containerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"content",3,""),l=m(e,"active",15,!1),u=m(e,"translateX",3,0),f=m(e,"translateY",3,0),_=m(e,"isFullWidthWrapper",3,!1),p=m(e,"maxTooltipWidth",3,void 0),b=m(e,"placement",3,"top"),x=m(e,"onVisibilityChange",3,a1.noop),y=5,C=ie(void 0),k=ie(void 0),E,P=ie(0),A=ie(0),T=ie(0),R=ie(0),F=Wt(),Y=Se(),H=Y.ui.playerSize,X=Y.ui.overlayContainer$;qe(()=>{yt(()=>{x()(l())})});let oe=Y.getLogger().createComponentLog("Tooltip component"),ee=()=>{if(!n()||!r(k)||!r(C))return;O(A,y);let xe=n().getBoundingClientRect(),ye=r(C).getBoundingClientRect(),De=ye.width,et=r(k).clientWidth,at=a().width,ft=(De-et)/2,Ut=ye.left+u()-xe.left,lt=Ut+ft,wt=ye.top+f()-xe.top,Yt=et/2-y,Xt=lt<8,Be=lt+et>at-8;Xt&&(lt=8,Yt=Ut+ye.width/2-2.5*y),Be&&(lt=at-8-et,Yt=ye.left-xe.left+ye.width/2-lt-y),O(T,me(lt)),O(R,wt),O(P,me(Yt))},ue=()=>{!n()||!r(k)||!r(C)||O(A,-y)},le=()=>{if(!n()||!r(k)||!r(C))return;O(P,y);let xe=n().getBoundingClientRect(),ye=r(C).getBoundingClientRect(),De=ye.height,et=r(k).clientHeight,at=(De-et)/2+et,ft=ye.left+u()-xe.left-r(k).clientWidth,Ut=2,lt=ft-y;lt<8&&(lt=8);let Yt=ye.top+f()-xe.top+at,Xt=Ut-at/2,Be=Ut-y;O(T,me(lt)),O(R,Yt),O(A,Xt),O(P,Be)},Me=()=>{!n()||!r(k)||!r(C)||O(P,-y)},Le=()=>{switch(b()){case"top":ee();break;case"bottom":ue();break;case"left":le();break;default:Me()}},J=()=>{try{if(!n()||!r(C))return;Le(),l(!0)}catch(xe){oe({message:String(xe)})}},Ve=()=>{l(!1)},j=()=>{r(k)&&(E||(E=window.setTimeout(J,F.controls.hideTimeoutTooltips)),l()&&J())},N=()=>{Ve(),window.clearTimeout(E),E=void 0},Re=(xe,ye,De)=>{let et="";switch(b()){case"top":et=`transform: translate(${xe}px, ${ye}px);`;break;case"bottom":et=`transform: translate(${xe}px, ${ye}px); top: auto; bottom: 100%;`;break;case"left":et=`transform: translate(${xe}px, ${ye}px); left: 0; right: auto;`;break;default:et=`transform: translate(${xe}px, ${ye}px);`}return et+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,et+=` opacity: ${De?1:0}; visibility: ${De?"visible":"hidden"}`,et},re=(xe,ye)=>{let De="";switch(b()){case"top":De=`transform: translate(${xe}px, ${ye}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":De=`transform: translate(${xe}px, ${ye}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":De=`transform: translate(${xe}px, ${ye}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:De=`transform: translate(${xe}px, ${ye}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return De},ke=v(()=>Re(r(T),r(R),l())),Ne=v(()=>re(r(P),r(A)));qt(Le),xn(()=>window.clearTimeout(E));var fe=M$(),B=pe(fe);let de;B.__mousemove=j,B.__mousedown=N,B.__mouseup=j;var Ie=h(B);he(Ie,()=>{var xe;return(xe=e.children)!=null?xe:ne}),g(B),ct(B,xe=>O(C,xe),()=>r(C));var Ke=M(B,2);{var st=xe=>{If(xe,{children:(ye,De)=>{var et=A$(),at=h(et),ft=h(at,!0);g(at);var Ut=M(at,2);g(et),ct(et,lt=>O(k,lt),()=>r(k)),I(()=>{nt(et,r(ke)),ge(ft,d()),nt(Ut,r(Ne))}),$(ye,et)},$$slots:{default:!0}})};V(Ke,xe=>{d()&&!s()&&xe(st)})}I(xe=>de=te(B,1,"tooltip-wrapper svelte-hxlyne",null,de,xe),[()=>({"full-width":_()})]),Et("mouseenter",B,j),Et("mouseleave",B,N),$(t,fe),q(),o()}rt(["mousemove","mousedown","mouseup"]);var l1=t=>{t.stopPropagation()},V$=L("<div><!></div>"),R$={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 Bo(t,e){z(e,!0),K(t,R$);let[i,o]=Oe(),n=()=>S(u,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Se(),d=go(),l=s.ui.isMobile,u=d.graphIsOpened$,f=s.ui.t,_=m(e,"className",3,""),p=m(e,"disabled",3,!1),b=m(e,"hasTooltip",3,!0),x=m(e,"ref",15,void 0),y=m(e,"width",15,void 0),C=m(e,"isFullWidthTooltip",3,!0),k=m(e,"tooltipContent",3,""),E=m(e,"tooltipActive",3,!1),P=m(e,"tooltipPlacement",3,"top"),A=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),T=m(e,"isAriaHidden",3,!1),R=m(e,"onTooltipVisibilityChange",3,ru.noop),F=m(e,"initialTranslateXPx",3,0),Y=m(e,"initialTranslateYPx",19,()=>-18),H=m(e,"mouseEnter",3,ru.noop),X=m(e,"mouseLeave",3,ru.noop),oe=v(()=>p()?n()?f("tooltip_disabled_when_graph_on"):A():k());var ee=V$();ee.__pointerdown=[l1],ee.__click=[l1];var ue=h(ee);{var le=Le=>{va(Le,{get content(){return r(oe)},get translateX(){return F()},get translateY(){return Y()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return P()},get onVisibilityChange(){return R()},children:(J,Ve)=>{var j=ze(),N=pe(j);he(N,()=>{var Re;return(Re=e.children)!=null?Re:ne}),$(J,j)},$$slots:{default:!0}})},Me=Le=>{var J=ze(),Ve=pe(J);he(Ve,()=>{var j;return(j=e.children)!=null?j:ne}),$(Le,J)};V(ue,Le=>{b()&&r(oe)&&!a()?Le(le):Le(Me,!1)})}g(ee),ct(ee,Le=>x(Le),()=>x()),I(()=>{var Le;te(ee,1,`btn-container ${(Le=_())!=null?Le:""}`,"svelte-p9r045"),Fe(ee,"aria-hidden",T()||null)}),Et("mouseenter",ee,function(...Le){var J;(J=H())==null||J.apply(this,Le)}),Et("mouseleave",ee,function(...Le){var J;(J=X())==null||J.apply(this,Le)}),Kr(ee,"clientWidth",y),$(t,ee),q(),o()}rt(["pointerdown","click"]);var D$=$e('<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 yd(t,e){"use strict";var i=D$(),o=h(i),n=M(o);g(i),I(()=>{Fe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Fe(o,"fill-opacity",e.completed?1:.24),Fe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var N$=L("<div><!></div>"),B$={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function Ef(t,e){z(e,!0),K(t,B$);let o=Se().ui.t,n=ie(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Bo(t,{get tooltipContent(){return r(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(s,d)=>{var l=N$();let u;var f=h(l);let _=v(()=>!!e.videoEpisode.completed);yd(f,{get completed(){return r(_)}}),g(l),I(p=>{u=te(l,1,"interactive-episode-icon svelte-bklhpe",null,u,p),nt(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Kr(l,"clientWidth",p=>O(n,p)),$(s,l)},$$slots:{default:!0}}),q()}var O$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),H$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),F$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
|
|
169
169
|
.video-episode-loaded.svelte-1u6kv8l,
|
|
170
|
-
.video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function
|
|
170
|
+
.video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Pf(t,e){K(t,F$);let i=m(e,"videoEpisodes",19,()=>[]);var o=H$();wi(o,21,i,n=>n.from,(n,a)=>{var s=O$();let d;var l=h(s),u=h(l),f=M(u,2);let _;g(l),g(s),I((p,b)=>{d=te(s,1,"video-episode svelte-1u6kv8l",null,d,p),nt(s,`left: ${r(a).from}%; width: ${r(a).width}%`),nt(u,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),_=te(f,1,"video-episode-filled svelte-1u6kv8l",null,_,b),nt(f,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,s)}),g(o),$(t,o)}function U$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&O(i,me(e().getBoundingClientRect())),o()||r(n)||!e())return;O(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function z$(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),u=o(t.clientX);n()(l,u,r(a).width),r(s)&&d()(l)}function q$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function W$(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var K$=L("<div></div>"),Q$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),G$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Y$={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
|
|
171
171
|
/* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
|
|
172
172
|
.slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
|
|
173
173
|
.slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
|
|
174
174
|
.slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
|
|
175
|
-
.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function
|
|
176
|
-
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function
|
|
175
|
+
.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function ga(t,e){z(e,!0),K(t,Y$);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),u=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),_=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),b=m(e,"disabled",3,!1),x=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,ln.noop),C=m(e,"onHandleMove",3,ln.noop),k=m(e,"onPointerUp",3,ln.noop),E=m(e,"onPointerEnter",3,ln.noop),P=m(e,"onPointerMove",3,ln.noop),A=m(e,"onPointerLeave",3,ln.noop),T=m(e,"onWheelUp",3,ln.noop),R=m(e,"onWheelDown",3,ln.noop),F=m(e,"onWheelLeft",3,ln.noop),Y=m(e,"onWheelRight",3,ln.noop),H=m(e,"onDisabledClick",3,ln.noop),X=m(e,"loadedProgress",3,0),oe=m(e,"filledProgress",3,0),ee=m(e,"handleProgress",3,0),ue=m(e,"ariaLabel",3,""),le=m(e,"ariaValueMin",3,void 0),Me=m(e,"ariaValueMax",3,void 0),Le=m(e,"ariaValueNow",3,void 0),J=m(e,"ariaValueText",3,""),Ve=Wt(),j=ie(void 0),N=ie(!1),Re=v(()=>{var Be;return(Be=Me())!=null?Be:0}),re=v(()=>{var Be;return(0,ln.isNonNullable)(f())&&((Be=f()[f().length-1])==null?void 0:Be.time)<r(Re)}),ke=v(()=>(0,ln.isNonNullable)(f())&&f().length&&r(re)&&r(Re)?Ke(X()*100,oe()*100):[]);function Ne(Be){if(Be.preventDefault(),i()&&O(j,me(i().getBoundingClientRect())),b())return;let se=de(Be.clientX,Be.clientY),Q=Ie(Be.clientX);E()(se,Q,r(j).width)}function fe(Be){Be.preventDefault(),!b()&&A()()}function B(Be){b()||_()&&(Be.preventDefault(),Be.deltaY<0?T()():Be.deltaY>0?R()():Be.deltaX>0?Y()():F()())}function de(Be,se){return s()?Math.max(0,Math.min(1,(r(j).height-(se-r(j).top))/r(j).height)):Math.min(Math.max(Be-r(j).x,0),r(j).width)/r(j).width}function Ie(Be){return Math.min(Math.max(Be-r(j).x,0),r(j).width)}function Ke(Be,se){let Q=Ve.features.episodesClustering&&!p()?Ve.episodeMinWidthPc:0,ae=[],_e=f()[0].time/r(Re)*100,Pe=0,He=0;for(let Ye=1;Ye<f().length;Ye++)Pe=f()[Ye].time/r(Re)*100,Pe-_e>Q&&(ae.push({from:_e,width:Math.max(0,Pe-_e),loadedWidth:Math.max(0,Math.min(Pe,Be)-_e),filledWidth:Math.max(0,Math.min(Pe,se)-_e),interactive:f()[Ye-1].interactive,completed:f()[Ye-1].completed}),_e=f()[Ye].time/r(Re)*100,He++);let ut={from:_e,width:Math.max(0,100-_e),loadedWidth:Math.max(0,Math.min(Be,100)-_e),filledWidth:Math.max(0,Math.min(se,100)-_e),interactive:f()[He].interactive,completed:f()[He].completed};100-_e<Q?(He-=1,ae[He].width+=100-_e,ae[He].loadedWidth+=Math.max(0,Math.min(Be,100)-_e),ae[He].filledWidth+=Math.max(0,Math.min(se,100)-_e)):ae[He]=ut;let Kt=f()[0].time;if(Kt!==0){let Ye=Kt/r(Re)*100;ae.unshift({from:0,width:Ye,loadedWidth:Math.min(Ye,Be),filledWidth:Math.min(Ye,se)})}return ae}var st=G$(),xe=pe(st);{var ye=Be=>{var se=K$();let Q;wi(se,21,()=>r(ke),ae=>ae.from,(ae,_e)=>{var Pe=ze(),He=pe(Pe);{var ut=Kt=>{Ef(Kt,{get videoEpisode(){return r(_e)},get disabled(){return b()}})};V(He,Kt=>{r(_e).interactive&&Kt(ut)})}$(ae,Pe)}),g(se),I(ae=>Q=te(se,1,"interactive-icons svelte-1tpemng",null,Q,ae),[()=>({mobile:l(),hidden:l()&&!r(N)})]),$(Be,se)};V(xe,Be=>{p()&&Be(ye)})}var De=M(xe,2);let et;De.__pointerdown=[U$,i,j,b,N,de,y],De.__pointermove=[z$,b,de,Ie,P,j,N,C],De.__pointerup=[q$,b,N,de,k],De.__click=[W$,b,H,de];var at=h(De);{var ft=Be=>{Pf(Be,{get videoEpisodes(){return r(ke)},get disabled(){return b()},get isMobile(){return l()}})},Ut=Be=>{var se=Q$(),Q=h(se),ae=M(Q,2);let _e;g(se),I(Pe=>{nt(Q,`transform: translateX(${X()*100}%);`),_e=te(ae,1,"filled svelte-1tpemng",null,_e,Pe),nt(ae,`transform: translateX(${oe()*100}%);`)},[()=>({"active-live":d()})]),$(Be,se)};V(at,Be=>{r(ke).length?Be(ft):Be(Ut,!1)})}var lt=M(at,2);let wt;var Yt=h(lt);let Xt;g(lt),g(De),ct(De,Be=>i(Be),()=>i()),I((Be,se,Q)=>{var ae,_e;et=te(De,1,`slider ${(ae=o())!=null?ae:""}`,"svelte-1tpemng",et,Be),Fe(De,"aria-label",ue()),Fe(De,"aria-valuemin",le()),Fe(De,"aria-valuemax",Me()),Fe(De,"aria-valuenow",Le()),Fe(De,"aria-valuetext",J()),Fe(De,"data-testid",(_e=n())!=null?_e:null),wt=te(lt,1,"handleWrap svelte-1tpemng",null,wt,se),nt(lt,`transform: translateX(${ee()*100}%);`),Xt=te(Yt,1,"handle svelte-1tpemng",null,Xt,Q)},[()=>({disabled:b(),"slider-dragging":r(N),hidden:a(),"slider-vertical":s(),"no-handle":x(),square:u()}),()=>({hidden:x()}),()=>({"active-live":d()})]),Et("pointerenter",De,Ne),Et("pointerleave",De,fe),Et("wheel",De,B),$(t,st),q()}rt(["pointerdown","pointermove","pointerup","click"]);var Gi=(t,e)=>ta[t]>=ta[e],d1=(t,e)=>ta[t]<ta[e],Ms=(t,e)=>ta[t]<=ta[e],c1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var j$=L("<div><!></div>"),Z$=L("<div><!> <!></div>"),X$={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 Af(t,e){var st,xe;z(e,!0),K(t,X$);let[i,o]=Oe(),n=()=>S(E,"$isAudioAvailable$",i),a=()=>S(_,"$muted$",i),s=()=>S(f,"$volume$",i),d=()=>S(y,"$currentGridType$",i),l=Se(),u=Wt(),f=l.state.volume$,_=l.state.muted$,{setVolume:p,startVolumeChanging:b,stopVolumeChanging:x}=l.actions.internal,y=l.ui.currentGridType$,C=(st=l.callbacks)==null?void 0:st.onAudioDoesNotExistHint,k=(xe=l.callbacks)==null?void 0:xe.onAudioDisabledHint,E=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,A=l.ui.t,T=ie(!1),R,F=v(()=>!n()||a()||s()===0),Y=v(()=>Ms(d(),"s")),H=v(()=>r(Y)?"":r(F)?A("tooltip_volume"):A("tooltip_volume_muted")),X=v(()=>r(F)?A("tooltip_volume"):A("tooltip_volume_muted")),oe=v(()=>r(F)?0:s()),ee=!1,ue=v(()=>n()?P&&!k:!C);function le(ye){b(),p(ye)}function Me(){iu(l,s(),u.controls.volumeStepWheel)}function Le(){ou(l,s(),u.controls.volumeStepWheel)}function J(ye){p(ye)}function Ve(ye){p(ye),x()}function j(){ee=!0}function N(){ee=!1,ke()}function Re(){clearTimeout(R),O(T,!0)}function re(){ke()}function ke(){R=window.setTimeout(()=>{ee||O(T,!1)},u.controls.volumeBarTimeout)}function Ne(ye){ye.preventDefault(),ye.deltaY<0?Me():ye.deltaY>0&&Le()}var fe=Z$();let B;var de=h(fe);va(de,{get content(){return r(H)},translateY:-18,children:(ye,De)=>{let et=v(()=>r(Y)?"btn-volume-vertical":"btn-volume-horizontal");Vt(ye,{className:"btn-full-opacity",get disabled(){return r(ue)},get testId(){return r(et)},get ariaLabel(){return r(X)},get click(){return e.click},get ariaKeyShortCut(){return Qr.KeyM},children:(at,ft)=>{As(at,{get volume(){return s()},get muted(){return r(F)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ie=M(de,2);{var Ke=ye=>{var De=j$();let et;var at=h(De);let ft=v(()=>r(Y)?"volumeBar-slider-vertical":""),Ut=v(()=>r(Y)&&!r(T)),lt=v(()=>r(Y)?j:xd.noop),wt=v(()=>r(Y)?N:xd.noop),Yt=v(()=>Math.round(r(oe)*100)),Xt=v(()=>`${Math.round(r(oe)*100)}%`),Be=v(()=>r(Y)?"volume-slider-vertical":"volume-slider");ga(at,{get className(){return r(ft)},get isHidden(){return r(Ut)},get isVertical(){return r(Y)},withWheelHandler:!0,onWheelUp:Me,onWheelDown:Le,onPointerDown:le,onHandleMove:J,onPointerUp:Ve,get onPointerEnter(){return r(lt)},get onPointerLeave(){return r(wt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Yt)},get ariaValueText(){return r(Xt)},get filledProgress(){return r(oe)},get handleProgress(){return r(oe)},get testId(){return r(Be)}}),g(De),I(se=>et=te(De,1,"volumeBar svelte-1auih1j",null,et,se),[()=>({"volumeBar-vertical":r(Y)})]),$(ye,De)};V(Ie,ye=>{n()&&ye(Ke)})}g(fe),I(ye=>B=te(fe,1,"volumeBar-container svelte-1auih1j",null,B,ye),[()=>({vertical:r(Y)})]),Et("mouseenter",fe,function(...ye){var De;(De=r(Y)?Re:xd.noop)==null||De.apply(this,ye)}),Et("mouseleave",fe,function(...ye){var De;(De=r(Y)?re:xd.noop)==null||De.apply(this,ye)}),Et("wheel",fe,Ne),$(t,fe),q(),o()}var u1=require("@vkontakte/videoplayer-shared/es2015");var J$=$e('<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 Mf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=J$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 e2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
176
|
+
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Lf(t,e){K(t,e2);let i=m(e,"isFullscreen",8,!1),o=Tr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Mf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function wd(t,e){z(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,u1.noop),n=Se(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Vt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=Is(u);a.set(f),o()()},get ariaKeyShortCut(){return Qr.KeyF},children:(u,f)=>{Lf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),q()}var t2=$e('<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 Vf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=t2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 i2=$e('<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 Rf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=i2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(4),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),$(t,o)}var o2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
|
|
177
177
|
svg[data-testid="vk-video-logo-icon--short"] ._en,
|
|
178
178
|
svg[data-testid="vk-video-logo-icon"] ._en,
|
|
179
|
-
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Lf(t,e){G(t,J$);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=m(()=>!o()&&!i()?91:i()?a:95),d=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=m(()=>`0 0 ${r(s)+1} 24`);Mf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function bd(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C($,"$isMobile",i),a=()=>C(p,"$currentGridType$",i),s=()=>C(y,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),l=v(e,"logoClickable",3,!1),u=v(e,"targetUrl",3,""),f=Yt(),_=Ce(),p=_.ui.currentGridType$,$=_.ui.isMobile,w=_.ui.t,y=_.isCyrillicRelatedInterface$,S=m(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),k=m(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),P=m(()=>(n()||Ps(a(),"l"))&&r(k)),A=()=>{var V,z;e.click(),(V=_.callbacks)!=null&&V.onLogoClicked?(z=_.callbacks)==null||z.onLogoClicked():u()&&window.open(u(),"_blank")},E=m(()=>!l()),T=m(()=>r(k)?"btn-vk-video-logo":"btn-vk-logo");Mt(t,{className:"btn-full-opacity",get disabled(){return r(E)},click:A,get testId(){return r(T)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(V){d(V)},children:(V,z)=>{var j=Ue(),F=pe(j);{var Z=ne=>{Lf(ne,{get short(){return r(P)},get isCyrillic(){return s()}})},J=ne=>{Af(ne,{})};R(F,ne=>{r(k)?ne(Z):ne(J,!1)})}b(V,j)},$$slots:{default:!0}}),W(),o()}var d1=require("@vkontakte/videoplayer-core/es2015");var Vf=require("@vkontakte/videoplayer-core/es2015"),t2=$e('<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>'),i2=$e('<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>'),o2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
|
|
179
|
+
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Df(t,e){K(t,o2);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`);Rf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function Sd(t,e){z(e,!0);let[i,o]=Oe(),n=()=>S(b,"$isMobile",i),a=()=>S(p,"$currentGridType$",i),s=()=>S(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),l=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=Wt(),_=Se(),p=_.ui.currentGridType$,b=_.ui.isMobile,x=_.ui.t,y=_.isCyrillicRelatedInterface$,C=v(()=>f.logoType==="vk_video"?x("tooltip_vk_video_logo"):x("tooltip_vk_logo")),k=v(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),E=v(()=>(n()||Ms(a(),"l"))&&r(k)),P=()=>{var R,F;e.click(),(R=_.callbacks)!=null&&R.onLogoClicked?(F=_.callbacks)==null||F.onLogoClicked():u()&&window.open(u(),"_blank")},A=v(()=>!l()),T=v(()=>r(k)?"btn-vk-video-logo":"btn-vk-logo");Vt(t,{className:"btn-full-opacity",get disabled(){return r(A)},click:P,get testId(){return r(T)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(R){d(R)},children:(R,F)=>{var Y=ze(),H=pe(Y);{var X=ee=>{Df(ee,{get short(){return r(E)},get isCyrillic(){return s()}})},oe=ee=>{Vf(ee,{})};V(H,ee=>{r(k)?ee(X):ee(oe,!1)})}$(R,Y)},$$slots:{default:!0}}),q(),o()}var p1=require("@vkontakte/videoplayer-core/es2015");var Nf=require("@vkontakte/videoplayer-core/es2015"),r2=$e('<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>'),s2=$e('<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>'),a2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
|
|
180
180
|
animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
|
|
181
181
|
animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
|
|
182
182
|
animation-name: svelte-8z1bf5-wave3;}
|
|
@@ -224,9 +224,9 @@ Try switching the\xA0quality to\xA0Auto.`},Nh=L_;var as=new Map;as.set(Xa.Interf
|
|
|
224
224
|
100% {
|
|
225
225
|
opacity: 1;
|
|
226
226
|
}
|
|
227
|
-
}`};function
|
|
228
|
-
transform: rotate(${n()}deg) ${r(
|
|
229
|
-
`)),b(B,ce)};R(X,B=>{r(P)&&B(N)})}var De=M(X,2),re=h(De);{var Ee=B=>{var ce=Ue(),Pe=pe(ce);{var Ye=Ae=>{var ye=ur();I(Ve=>ge(ye,Ve),[()=>H("tooltip_episode_unfinished")]),b(Ae,ye)},lt=Ae=>{var ye=ur();I(()=>ge(ye,r(z).text||"")),b(Ae,ye)};R(Pe,Ae=>{p()&&r(z).completed===!1?Ae(Ye):Ae(lt,!1)})}b(B,ce)};R(re,B=>{r(z)&&B(Ee)})}g(De);var Ne=M(De,2);{var me=B=>{var ce=a2(),Pe=h(ce,!0);g(ce),I(()=>ge(Pe,d())),b(B,ce)};R(Ne,B=>{p()||B(me)})}g(ee),I(B=>{Le=ie(ee,1,"timeline-preview svelte-1wqg760",null,Le,B),it(ee,`width: ${r(j)?r(k):r(S)}px;`)},[()=>({mobile:l()})]),b(t,ee),W(),o()}var c2=L('<span class="time svelte-1jr6obn"> </span>'),u2=L("<!> <!>",1),p2={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 Bf(t,e){var _e;q(e,!0),G(t,p2);let[i,o]=Fe(),n=()=>C(Z,"$interactiveEpisodes$",i),a=()=>C(E,"$duration$",i),s=()=>C(A,"$position$",i),d=()=>C(fe,"$isInteractiveExpectation$",i),l=()=>C(ne,"$isInteractiveTime$",i),u=()=>C(T,"$isLive$",i),f=()=>C(z,"$isMobile",i),_=()=>C(V,"$isActiveLive$",i),p=()=>C(P,"$bufferedProgress$",i),$=()=>C(Me,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),y=v(e,"ref",15,void 0),S=Ce(),k=Yt(),P=S.state.bufferedProgress$,A=S.state.positionWithScrubbing$,E=S.state.duration$,T=S.state.isLive$,V=S.state.isActiveLive$,z=S.ui.isMobile,j=k.features.episodes?S.actions.internal.getVideoEpisodes():void 0,F=S.actions.internal.getPreviewThumbsData(),Z=S.state.interactiveEpisodes$,J=S.state.isInteractive,ne=S.state.isInteractiveTime$,fe=S.state.isInteractiveExpectation$,de=S.actions.internal.correctSeekTimeToInteractive,Re=(_e=S.callbacks)==null?void 0:_e.onDisabledTimelineClick,Me=S.ui.controls.disabledControls$,ee=S.ui.t,Le=k.features.interactiveResponsiveUi,X=m(()=>J?n():j),N=m(()=>mr(a())),De=m(()=>mr(s())),re=m(()=>s()/a()),Ee=m(()=>d()||l()),Ne=te(!1),me=te(""),B=te(0),ce=te(0),Pe=te(0),Ye=m(()=>({containerWidth:r(ce),translateXPx:r(B),translateYPx:J&&F?-36:-16,active:r(Ne)&&w()&&!r(Ee)&&!Le,pointer:!k.features.timelinePreview||!F||u()})),lt=ee("aria_timeline"),Ae=m(()=>ee("aria_timeline_value",{position:r(De),duration:r(N)}));function ye(Te){return!de||!J?Te:de(Te*a())/a()}function Ve(Te){S.actions.internal.startScrubbing(ye(Te))}function Xe(Te){l()||S.actions.internal.progressScrubbing(ye(Te))}function pt(Te){S.actions.internal.completeScrubbing(ye(Te)),O(Ne,!1)}function rt(Te,Oe,ft){wt(Te,Oe,ft),O(Ne,!0)}function Ot(Te,Oe,ft){wt(Te,Oe,ft),O(Ne,!0)}function st(){O(Ne,!1)}function wt(Te,Oe,ft){O(Pe,ve(ye(Te))),O(B,ve(Oe)),ft&&O(ce,ve(ft)),O(me,ve(Wt(Te)))}function Wt(Te){let Oe=mr((u()?1-Te:Te)*a());return u()?`-${Oe}`:Oe}var jt=u2(),Be=pe(jt);Df(Be,ss(()=>r(Ye),{children:(Te,Oe)=>{var ft=Ue(),Kt=pe(ft);{var je=et=>{Nf(et,{get time(){return r(me)},get isMobile(){return f()},get videoEpisodes(){return r(X)},previewThumbsData:F,get progress(){return r(Pe)},get duration(){return a()},isInteractive:J})},dt=et=>{var Et=c2(),ii=h(Et,!0);g(Et),I(()=>ge(ii,r(me))),b(et,Et)};R(Kt,et=>{k.features.timelinePreview&&F&&!u()?et(je):et(dt,!1)})}b(Te,ft)},$$slots:{default:!0}}));var se=M(Be,2);let Q=m(()=>Math.round(r(re)*100)),ae=m(()=>$().has("TIMELINE"));ma(se,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return f()},ariaLabel:lt,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Q)},get ariaValueText(){return r(Ae)},get loadedProgress(){return p()},get filledProgress(){return r(re)},get handleProgress(){return r(re)},get videoEpisodes(){return r(X)},onPointerDown:Ve,onHandleMove:Xe,onPointerMove:Ot,onPointerUp:pt,onPointerEnter:rt,onPointerLeave:st,onDisabledClick:Re,isInteractive:J,get disabled(){return r(ae)},get hideHandel(){return l()},get ref(){return y()},set ref(Te){y(Te)}}),b(t,jt),W(),o()}var f2={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 yd(t,e){q(e,!0),G(t,f2);let[i,o]=Fe(),n=()=>C(l,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"duration",3,0),d=Ce(),l=d.ui.isMobile,u=d.ui.t,f=m(()=>mr(s())),_=m(()=>mr(a())),p=m(()=>a()/s()),$=m(()=>u("aria_timeline_value",{position:r(_),duration:r(f)})),w=m(()=>Math.round(r(p)*100));ma(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r($)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),W(),o()}var m2=L("<div><!></div>"),v2=L("<div></div>"),g2={hash:"svelte-1gqonyf",code:".timeline.svelte-1gqonyf {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1gqonyf {height:16px;padding:6px 12px 7px;margin-top:6px;}.timeline-stub.svelte-1gqonyf {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1gqonyf {height:8px;}"};function xd(t,e){q(e,!0),G(t,g2);let[i,o]=Fe(),n=()=>C(p,"$isLive$",i),a=()=>C(y,"$isMobile",i),s=()=>C(w,"$adPosition",i),d=()=>C($,"$adDuration",i),l=v(e,"isAds",3,!1),u=v(e,"isHidden",3,!1),f=v(e,"ref",15,void 0),_=Ce(),p=_.state.isLive$,$=_.ads.duration,w=_.ads.position,y=_.ui.isMobile,S=m(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var k=Ue(),P=pe(k);{var A=T=>{var V=m2();let z;var j=h(V);{var F=J=>{yd(J,{get position(){return s()},get duration(){return d()}})},Z=J=>{Bf(J,{get showTimeline(){return r(S)},get ref(){return f()},set ref(ne){f(ne)}})};R(j,J=>{l()?J(F):J(Z,!1)})}g(V),I(J=>z=ie(V,1,"timeline svelte-1gqonyf",null,z,J),[()=>({mobile:a()})]),b(T,V)},E=T=>{var V=v2();let z;I(j=>z=ie(V,1,"timeline-stub svelte-1gqonyf",null,z,j),[()=>({mobile:a()})]),b(T,V)};R(P,T=>{r(S)?T(A):T(E,!1)})}b(t,k),W(),o()}var f1=require("@vkontakte/videoplayer-shared/es2015");var h2=$e('<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 Of(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=h2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(3),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i))),b(t,o)}var _2=$e('<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 Hf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=_2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i))),b(t,o)}var b2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),$2=L('<span class="text svelte-1yhs2ga"> </span>'),y2=L('<span class="text count svelte-1yhs2ga"> </span>'),x2=L("<!> <!>",1),w2={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 wd(t,e){var de,Re,Me;q(e,!0),G(t,w2);let[i,o]=Fe(),n=()=>C(w,"$currentGridType$",i),a=()=>C(y,"$openedByKeyboard$",i),s=()=>C(S,"$panelOpened$",i),d=()=>C(k,"$isMobile",i),l=v(e,"position",3,0),u=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),_=Ce(),p=(Re=(de=_.callbacks)==null?void 0:de.onEpisodeChanged)!=null?Re:f1.noop,$=!!((Me=_.callbacks)!=null&&Me.onEpisodeClicked),w=_.ui.currentGridType$,y=_.ui.episodes.openedByKeyboard$,S=_.ui.episodes.panelOpened$,k=_.ui.isMobile,P=_.ui.t,A=te(void 0),E=ee=>{var X,N,De;if(!!((X=_.callbacks)!=null&&X.onEpisodeClicked)){let re=Ts(ee);y.set(re),S.set(!0),(De=(N=_.callbacks)==null?void 0:N.onEpisodeClicked)==null||De.call(N,re)}},T=te(null),V=m(()=>l()/u());We(()=>{var Le;let ee=iu(r(V),u(),f());ee?((Le=r(T))==null?void 0:Le.time)!==ee.time&&(p(ee),O(T,ve(ee))):O(T,null)});let z=m(()=>{var ee;return((ee=r(T))==null?void 0:ee.text)||""}),j=m(()=>zi(n(),"xl")?"FULL":zi(n(),"m")&&s1(n(),"xl")?"COUNT":"SHORT"),F=m(()=>`${P("tooltip_episodes")}: ${r(z)}`),Z=(ee,Le,X)=>kt(this,null,function*(){yield Co(),(ee==null?void 0:ee.getAttribute("aria-expanded"))==="false"&&Le&&!X&&yt(()=>{y.set(!1),ee.focus()})});We(()=>{Z(r(A),a(),s())});var J=Ue(),ne=pe(J);{var fe=ee=>{let Le=m(()=>d()?"px-0":"");Mt(ee,{get className(){var X;return`w-max btn-full-opacity btn-jc-l ${(X=r(Le))!=null?X:""}`},testId:"btn-episodes",click:E,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(F)},get ref(){return r(A)},set ref(X){O(A,ve(X))},children:(X,N)=>{var De=Ue(),re=pe(De);{var Ee=me=>{var B=b2(),ce=pe(B),Pe=h(ce,!0);g(ce);var Ye=M(ce,2),lt=h(Ye);Hf(lt,{}),g(Ye),I(()=>ge(Pe,r(z))),b(me,B)},Ne=me=>{var B=x2(),ce=pe(B);Of(ce,{});var Pe=M(ce,2);{var Ye=Ae=>{var ye=$2(),Ve=h(ye,!0);g(ye),I(()=>ge(Ve,r(z))),b(Ae,ye)},lt=(Ae,ye)=>{{var Ve=Xe=>{var pt=y2(),rt=h(pt,!0);g(pt),I(()=>ge(rt,f().length)),b(Xe,pt)};R(Ae,Xe=>{r(j)==="COUNT"&&Xe(Ve)},ye)}};R(Pe,Ae=>{r(j)==="FULL"?Ae(Ye):Ae(lt,!1)})}b(me,B)};R(re,me=>{d()?me(Ee):me(Ne,!1)})}b(X,De)},$$slots:{default:!0}})};R(ne,ee=>{r(T)&&ee(fe)})}b(t,J),W(),o()}var T1=require("@vkontakte/videoplayer-shared/es2015");var ci=require("@vkontakte/videoplayer-core/es2015"),_t=require("@vkontakte/videoplayer-shared/es2015"),Gr=require("@vkontakte/videoplayer-statistics/es2015");var Ke=require("@vkontakte/videoplayer-shared/es2015"),qi=require("@vkontakte/videoplayer-shared/es2015");var m1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var S2="//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)(S2,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}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var A;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:u={},duration:f,previewParam:_}=e,p,$=this.playerState&&xe(this.playerState.vsid);$&&(this.isVsidOriginal?p=$:p=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=(0,Ke.detectEmbed)(),S=(A=w?y:window.location.href)!=null?A:window.location.href,k=Vt(K(Vt(K({},u),{dl:encodeURIComponent(S),autoplay:a?1:0,player_width:i,player_height:o,preview:_}),p?{request_id:p}:{}),{duration:f,puid10:m1(i,o),puid11:n?0:1});_||delete k.preview;let P={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:k,browser:{mobile:!1}};try{let E=new window.AdmanHTML;E.setDebug(!1),E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.init(P),this.adman=E,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(P)}`})}catch(E){Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],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,u,f,_,p;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),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(_=this.adman)==null||_.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,qi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var v1=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 Ff=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 u=new nu,{startTime:f,endTime:_}=u.parse(l);s.startTime=f,s.endTime=_}else if(l.trim()!==""){let u=new Uf,{texts:f}=u.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}},Uf=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 u=["<",">"].reduce((f,_)=>{let p=s.indexOf(_,d);return f===-1||f>p?p:f},-1);if(u===-1){l.push(s.substring(d));break}l.push(s.substring(d,u)),d=u+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}},g1=Ff;var su=require("@vkontakte/videoplayer-shared/es2015"),va,Ci,zf=0,qf=!1,h1="",_1=(t,e=0,i=0)=>t<e&&t<i,ru=(t,e=0,i=0)=>t>=e&&t<=i,C2=(t,e=0,i=0)=>t>e&&t>i,b1=(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:u,endTime:f})=>ru(t,u,f));let a=t>=zf,s=t<zf;if(zf=t,s&&(qf=!1),(0,su.isNonNullable)(va)&&ru(t,va.startTime,va.endTime)&&h1===e.value)return va;if(!(0,su.isNonNullable)(Ci)&&(n!=null&&n.length)&&!qf){Ci=n.find(({startTime:u,endTime:f})=>ru(t,u,f)||a&&_1(t,u,f)),va=void 0,!(0,su.isNonNullable)(Ci)&&n[n.length-1].endTime<t&&(qf=!0);return}else{if(ru(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime))return va=Ci,Ci=void 0,h1=e.value,va;(a&&C2(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime)||s&&_1(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime))&&(Ci=void 0)}};var $1={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"},T2={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"},au=t=>{var e,i;return(i=(e=$1[t])!=null?e:$1[T2[t]])!=null?i:void 0};var y1=require("@vkontakte/videoplayer-shared/es2015"),ZD=require("@vkontakte/videoplayer-statistics/es2015"),lu=class{constructor(e,i=new y1.Subscription){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Sd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Sd||{});var Qr=t=>t!=null?t:0,cl=(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(Qr(i==null?void 0:i.top)-Qr(o==null?void 0:o.top)),left:Math.round(Qr(i==null?void 0:i.left)-Qr(o==null?void 0:o.left)),bottom:Math.round(Qr(i==null?void 0:i.bottom)-Qr(o==null?void 0:o.top)),right:Math.round(Qr(i==null?void 0:i.right)-Qr(o==null?void 0:o.left))}},ul=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Qr(e==null?void 0:e.width),height:Qr(e==null?void 0:e.height)}};var x1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:u,videoEpisodes:f,previewThumbsData:_,uiConfig:p,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:k,isInteractiveTime$:P,replayInteractive:A,stopPlayer:E,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,additionalButtons:z,additionalSettingsMenuItems:j,additionalContextMenuItems:F,playPrevVideo:Z,playNextVideo:J,looped:ne=!1,statistics:fe,saveRate:de,internalsExposure:Re})=>{var zo,uv,pv;let Me=Vt(K({},$),{configName:[...(zo=$.configName)!=null?zo:[],"ui"],isAudioDisabled:s,live:Vt(K({},(uv=$.live)!=null?uv:{}),{isLiveCatchUpMode:!!n})}),ee=p,Le=_t.Tracer.createRootTracer(ee.features.saveTraceInfoToFile),X=Le.createComponentTracer("Store"),N=w||new ci.Player(Me,Le);Re==null||Re.expose({corePlayer:N});let De=new _t.Logger,re=new ou(De,{loadTimeout:ee.ads.loadTimeout,initTimeout:ee.ads.initTimeout,runtimeTimeout:ee.ads.runtimeTimeout,useAdmanFromNPM:ee.ads.useAdmanFromNPM,volumeMultiplier:ee.ads.volumeMultiplier,isVsidOriginal:ee.ads.isVsidOriginal}),Ee=na.getInstance(),Ne=u==null?void 0:u.pictureInPictureApi,me=u==null?void 0:u.annotationsApi,B=De.createComponentLog("Store"),ce,Pe,Ye={},lt=new Dc,Ae=fe?Xt(fe.oneStat.vsid$):fr(void 0),ye=le(ws()),Ve=le(!1),Xe=(pv=Ne==null?void 0:Ne.info.isActive$)!=null?pv:new _t.ValueSubject(!1),pt=le(0),rt=le([]),Ot=(0,_t.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>rt.update(x=>[...x,c])),st=fr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),wt=c=>kt(void 0,null,function*(){var ue;let x=Object.values(_t.InterfaceLanguage).includes(c);if(ee.downloadVKLanguages&&(x&&ee.updateBuiltinLanguages||!Gp(c))){let Qe;try{Qe=yield(0,_t.loadVKLangPack)(c,nh,rh)}catch(Tt){(ue=fe==null?void 0:fe.oneStat)==null||ue.logError({errorType:"VKLangPack",fatal:!1}),Ee==null||Ee.report(Tt,{errorType:"VKLangPack",fatal:!1})}Qe&&(Qp({language:c,pack:Qe,fallback:ee.defaultLanguage}),Wt.set(c))}Gp(c)&&Wt.set(c)}),Wt=le(t),jt=le(e);wt(t);let Be=(c,x)=>{let D=xe(Wt);return Yp(D,c,x,ee.defaultLanguage)},se=le("thumb"),Q=(()=>{let c=$i([st,se],([x,D])=>x?"crashed":D);return Vt(K({},c),{is:x=>xe(c)===x})})(),ae=(()=>{let c=le(new Set(y));return Vt(K({},c),{add:x=>{c.update(D=>new Set([...D].concat(x)))},remove:x=>{c.update(D=>{let ue=[...D];return new Set(Array.isArray(x)?ue.filter(Qe=>!x.includes(Qe)):ue.filter(Qe=>Qe!==x))})},includes:x=>{let D=xe(c);return Array.isArray(x)?x.every(ue=>D.has(ue)):D.has(x)}})})();X.log("create store"),B({message:"create store"});let _e=c=>{let x=c.container;x.append(N.experimental.element$.getValue()),et=new MutationObserver(D=>{let{removedNodes:ue}=D[0];ue.length&&x.append(N.experimental.element$.getValue())}),et.observe(x,{childList:!0})},Te=c=>{B({message:`init video, config: ${JSON.stringify(c)}`}),S?_e(c):(_t.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,_t.now)()]}),N.initVideo(c)),X.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),ce=c},Oe=new _t.Subject,ft=c=>Oe.next(c),Kt=new _t.Subject,je=new _t.Subject,dt=new _t.Subject,et=null,Et={actionRewind$:Kt,actionSeek$:je,inPiP$:Xe,inFullscreen$:new _t.Observable(c=>ye.subscribe(x=>c.next(x))),actionSetSubtitle$:dt,nextMovie$:Oe};if(fe){let{oneStat:c,statSubscription:x}=fe;S||x.add(c.attachTo(N)),x.add(c.attachToUi(Et)),x.add(c.attachToAds(re.events)),c.authorize(a).catch(D=>{B({message:`onestat auth error ${String(D)}`})})}if(Ee){let c=new _t.Subscription,x=(D,ue)=>c.add(D.subscribe(ue));if(x(N.events.managedError$,D=>{Ee.logIError(D)}),x(N.events.fatalError$,D=>{Ee.logIError(D,!0)}),fe){let{oneStat:D}=fe;x(D.experimental.error$,ue=>{Ee.logIError(ue)})}Ee.sentrySubscription.add(c)}let ii=()=>{ci.clientChecker.device.isIOS&&Pe&&Fh(Pe).catch(c=>{B({message:`exitIosSafariFullscreen failed: ${c}`})})},Ge=new _t.Subscription().add(N.experimental.element$.subscribe(c=>{c&&(Pe=c,c.classList.add("player-media"),sa(Ne)&&(Ne.updateVideoElement(),Ne.registryEventHandlers()),S&&c.setAttribute("pip","false"))})).add(N.events.ended$.subscribe(()=>{var c;ii(),(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(()=>kt(void 0,null,function*(){var x,D;sa(Ne)&&(yield Ne==null?void 0:Ne.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(D=Ye.onStarted)==null||D.call(Ye,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var D;(D=l==null?void 0:l.onSeek)==null||D.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 D;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((D=l==null?void 0:l.onTimeupdate)==null||D.call(l,x,c),re.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(()=>{ht.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{ht.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(P!=null&&P.getValue()&&ae.add(Xl),ae.add("PLAY_BUTTON")):ae.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(re.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(re.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(re.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(re.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(re.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(re.events.started$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:D.call(x,c)})).add(re.events.timeRemained$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:D.call(x,c)})).add(re.events.ended$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:D.call(x,c)})).add(re.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(re.events.clicked$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:D.call(x,c)})).add(re.events.closed$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:D.call(x,c)})).add(re.events.error$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:D.call(x,c)})).add(re.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(re.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)})),ct=new _t.Subscription,oi=()=>{var Tt,Dt,qt;let{debugLog:c}=ee,x,D="#9df7b7",ue="#efd169";if(c&&c!==!0){let{colors:Nt}=c;x=c.tag,D=(Tt=Nt==null?void 0:Nt[0])!=null?Tt:D,ue=(qt=(Dt=Nt==null?void 0:Nt[1])!=null?Dt:Nt==null?void 0:Nt[0])!=null?qt:ue}let Qe=x?`: ${x}`:"";ct.add(N.events.log$.subscribe(Nt=>{console.debug(`%c sdk${Qe} `,`background:${D};`,`sdk component: ${Nt.component}`,Nt.message)})).add(De.log$.subscribe(Nt=>{console.debug(`%c ui${Qe} `,`background:${ue};`,`ui component: ${Nt.component}.`,Nt.message)}))},Ni=()=>{ct.unsubscribe()},Oo=(c,x)=>{X.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Ki=(c=!1)=>{X.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Ho=(c,x,D)=>{X.log("move camera focus px",{xpx:c,ypx:x,dt:D}),N.moveCameraFocusPX(c,x,D)},Fo=()=>{N.holdCamera()},Lt=()=>{N.releaseCamera()},bt=fr(N.info.position$.getValue(),c=>{let x,D,ue=()=>{let Qe=N.info.playbackState$.getValue(),Tt=N.info.isLive$.getValue(),Dt=N.info.duration$.getValue(),qt=N.info.position$.getValue();if(Qe&&[ci.PlaybackState.PLAYING,ci.PlaybackState.PAUSED].includes(Qe)){let Nt=Tt?qt-Dt:N.getExactTime();Nt!==D&&c(Nt),D=Nt}x=requestAnimationFrame(ue)};return ue(),()=>cancelAnimationFrame(x)}),U=Xt(N.info.playbackState$),Zt=Xt(N.info.currentBuffer$),Qi=Xt(N.info.isEnded$),Bi=Xt(N.info.isLive$),ai=ee.features.playbackRate?Xt(N.info.canChangePlaybackSpeed$):fr(!1),mi=Xt(N.info.liveBufferTime$),mo=Xt(N.info.volume$),vo=Xt(N.info.muted$),eo=Nc(N.info.predefinedQualityLimitType$.pipe((0,_t.map)(c=>c===ci.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ci.PredefinedQualityLimits.TRAFFIC_SAVING),Ko=Nc(N.info.predefinedQualityLimitType$.pipe((0,_t.map)(c=>c===ci.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ci.PredefinedQualityLimits.HIGH_QUALITY),Ht=Xt(N.info.autoQualityLimitingAvailable$),vi=Xt(N.info.availableQualities$),Ct=Xt(N.info.availableQualitiesFps$),Qt=Xt(N.info.chromecastState$),go=Xt(N.info.chromecastDeviceName$),Jt=Xt(N.info.currentFormat$),Zn=Xt(N.info.throughputEstimation$),Io=Xt(N.info.videoBitrate$),Eo=Xt(N.info.intrinsicVideoSize$),li=Xt(N.info.duration$),xt=Xt(N.info.isAudioAvailable$),yi=null,Li=N.info.isBuffering$,Oi=fr(Li.getValue(),c=>{let x=Li.subscribe(D=>{D&&yi===null?yi=window.setTimeout(()=>{c(Li.getValue()),yi=null},ee.loaderDelay):c(D)});return()=>{x.unsubscribe(),yi&&clearTimeout(yi)}}),Tn=()=>{yi&&clearTimeout(yi),yi=null},Ti=$i([li,Bi],([c,x])=>x?-c:c),to=$i([U],([c])=>c===ci.PlaybackState.PLAYING),pn=Xt(N.info.atLiveEdge$),kn=Xt(N.info.atLiveDurationEdge$),Vi=Xt(N.info.position$),Xn=$i([Vi,li],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),fn=$i([Qt],([c])=>c===ci.ChromecastState.CONNECTED),Po=Xt(N.info.availableVideoStreams$),In=ee.features.audioLanguages?Xt(N.info.availableAudioStreams$):fr([]),Nr=Xt(N.info.currentVideoStream$),gr=Xt(N.info.currentAudioStream$),Jn=c=>{c.language&&Kp(c.language),N.setVideoStream(c)},En=c=>{c.language&&Kp(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 D=Eh();return D&&(x=c.find(({language:ue})=>D===ue)),x!=null||(x=c.at(0)),x},Pn=!1;Ge.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Pn&&c.length){let x=mn(c);x&&(N.setAudioStream(x),Pn=!0)}}));let ho=!1;Ge.add(N.info.availableVideoStreams$.subscribe(c=>{if(!ho&&c.length){let x=mn(c);x&&(N.setVideoStream(x),ho=!0)}}));let tt=le(void 0),vn=Xt(N.info.isAutoQualityEnabled$,c=>c&&tt.set(void 0)),er=Xt(N.info.currentQuality$,()=>tt.set(void 0)),tr=$i([tt,er],([c,x])=>c!=null?c:x),An=$i(Jt,c=>c!==ci.VideoFormat.MPEG),gn=$i([vi,Ct,vn,tr,An],([c,x,D,ue,Qe])=>{let Tt=[];Qe&&Tt.push({value:"auto",displayValue:Be("auto_quality_option"),selected:D});let Dt=c.filter(qt=>!(0,_t.isInvariantQuality)(qt));for(let qt of Dt){let Nt=x[qt];Tt.push({value:qt,displayValue:`${qt}${Nt?v1(Nt):""}`,selected:D?!1:qt===ue})}return Tt}),hn=Xt(N.info.currentPlaybackRate$),Qo=$i([hn,pn,kn],([c,x,D])=>{let ue=D||S?1:ee.controls.playbackRateMin,Qe=x?1:ee.controls.playbackRateMax,Tt=ee.controls.playbackRateStep,Dt=[];for(let qt=ue;qt<=Qe;qt+=Tt)Dt.push({value:qt,displayValue:qt===1?Be("playback_rate_1"):Be("playback_rate",{multiplier:qt.toString(10)}),selected:c===qt});return Dt}),Gi={displayValue:Be("subtitles_off"),value:"off"},Yi=le(K({},Gi)),ir=ee.features.subtitles?Xt(N.info.availableTextTracks$):fr([]),Mn=$h(),or=$i([ir,Yi],([c,x],D)=>{var Tt;let ue=[],Qe=c.find(({id:Dt})=>Dt===x.value);if(Qe!=null&&Qe.url){let[,Dt]=(Tt=Mn.find(Qe.url))!=null?Tt:[];if(Dt){D(Dt);return}lt.download(Qe.url).then(qt=>{if(!qt||lt.isDestroyed())return;let Nt=new g1,fs=Qe.language;if(fs){let c0=!!Qe.isAuto,u0=Nt.parse(qt,fs);ue.push({lang:fs,subtitles:u0,isAuto:c0,id:Qe.id})}Mn.add(Qe.url,ue),xe(Yi).value===x.value&&D(ue)}).catch(qt=>{var Nt;(Nt=fe==null?void 0:fe.oneStat)==null||Nt.logError({errorType:"Subtitles download",fatal:!1}),Ee==null||Ee.report(qt,{errorType:"Subtitles download",fatal:!1})})}D(ue)}),hr=$i([hn,to,Yi],([c,x,D],ue)=>{let Dt;if(N.info.isLive$.getValue()&&x&&D.value!==Gi.value){let Nt=()=>{let fs=1e3/(3*c);Dt=setTimeout(Nt,fs),ue(Date.now())};return Nt(),()=>clearTimeout(Dt)}}),io=$i([ir,Yi],([c,x])=>{if(!c.length)return[];let D=[];for(let{language:ue,isAuto:Qe,id:Tt}of c){let Dt=ue&&au(ue);ue&&Dt&&D.push({displayValue:Qe?Be("subtitles_auto",{language:Dt}):Dt,value:Tt,selected:(x==null?void 0:x.value)===Tt,isAuto:Qe})}return D.length?(D.unshift(Vt(K({},Gi),{selected:(x==null?void 0:x.value)===Gi.value})),D):[]}),oo={available:[],prev:[]},Ln=()=>{var x,D;let c=N.experimental.getCurrentTime$.getValue();return(D=(x=c==null?void 0:c())!=null?x:Pe==null?void 0:Pe.currentTime)!=null?D:0},Vn=$i([bt,Yi,or,hr],([c,x,D,ue])=>{var Tt;let Qe=N.info.isLive$.getValue();if(Qe&&oo.prev!==D){let Dt=D.find(({id:Nt})=>Nt===x.value),qt=oo.prev.find(({id:Nt})=>Nt===x.value);if(Dt){let Nt=Vt(K({},Dt),{subtitles:[...(Tt=qt==null?void 0:qt.subtitles)!=null?Tt:[],...Dt.subtitles]});oo.available=[Nt],oo.prev=D}}if(x&&x.value!==Gi.value){let Dt=Qe?Ln():c,qt=Qe?oo.available:D;return b1(Dt,x,qt,Qe)}}),_o=$i([Vn],([c])=>c!=null&&c.texts?c.texts:[]),no=le(!0),Rn=$i([Zt,Ti,Vi,mi],([c,x,D,ue])=>{var qt;let Qe=(qt=c==null?void 0:c.end)!=null?qt:0;if(!ue)return Qe/x;let Dt=-D+ue-x;return(Qe-Dt)/x}),Uo=Xt(N.info.availableSources$),Br=$i([Uo],([c])=>Object.keys((c==null?void 0:c[ci.VideoFormat.MPEG])||{}).length>0),Dn=()=>{var D,ue,Qe;let c=Object.keys(((ue=(D=N.info.availableSources$)==null?void 0:D.getValue())==null?void 0:ue[ci.VideoFormat.MPEG])||{}),x=(0,_t.getHighestQuality)(c)||_t.VideoQuality.Q_144P;return(Qe=ce.sources[ci.VideoFormat.MPEG])==null?void 0:Qe[x]},_r=()=>{var x;let c=Dn();if(c)X.log("download video",{url:c}),hh(c,((x=ce==null?void 0:ce.meta)==null?void 0:x.title)||"video");else{let D="There is no URL for download video";X.log("download video",{message:D}),B({message:D})}},Nn=()=>{B({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?On(rr()):ni(!c)},Bn=()=>{var c;if(ht.ui.settingsMenu.visible$.set(!1),!xe(ht.ui.settingsSubMenu.visible$)){let x=xe(ht.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ue=ul(x),Qe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ue,position:Qe,name:"settings"})}}X.log("close settings menu")},Or=(c,x=()=>Promise.resolve())=>kt(void 0,null,function*(){var Qe;ht.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),ht.ui.settingsMenu.visible$.set(!0),yield x();let D=xe(ht.ui.settingsMenu.ref$),ue=Ns();if((Qe=l==null?void 0:l.uiInfo)!=null&&Qe.onSettingsMenu&&D&&ue){let Dt=ul(D),qt=cl(D,ue);l.uiInfo.onSettingsMenu({visible:!0,size:Dt,position:qt,name:"settings"})}X.log("open settings menu",{wasOpenedByKeyboard:c})}),nr=(c,x=!1)=>{var Tt;ht.ui.settingsSubMenu.visible$.set(!1);let D=xe(ht.ui.settingsMenu.ref$),ue=Ns(),Qe=xe(ht.ui.settingsMenu.visible$);if((Tt=l==null?void 0:l.uiInfo)!=null&&Tt.onSettingsMenu&&D&&ue)if(Qe&&!x){let qt=ul(D),Nt=cl(D,ue);l.uiInfo.onSettingsMenu({visible:!0,size:qt,position:Nt,name:"settings"})}else{let qt=ul(c),Nt={top:0,left:0,bottom:0,right:0},fs=xe(ht.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:qt,position:Nt,name:fs})}X.log("close settings sub menu")},br=(c,x)=>{var ue;ht.ui.settingsSubMenu.visible$.set(!0),ht.ui.settingsSubMenu.ref$.set(x),ht.ui.settingsSubMenu.name$.set(c);let D=Ns();if((ue=l==null?void 0:l.uiInfo)!=null&&ue.onSettingsMenu&&x&&D){let Tt=ul(x),Dt=cl(x,D);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:Tt,position:Dt})}X.log("open settings sub menu",{name:c})},rr=()=>{var x;let c=Math.max(ee.volumeMinRestore,(x=Bc())!=null?x:0);return c===0?ee.volumeDefault:c},On=c=>{let x=c===0?rr():c,D=N.info.muted$.getValue();B({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),D&&c>0&&!s&&(D=!1,qp(!1)),N.setVolume(c,D),re.setVolume(c),Op(x)},ni=c=>{let x=N.info.volume$.getValue();if(B({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c),re.setVolume(c?0:x),qp(c),!c&&x===0){let D=rr();N.setVolume(D),Op(D),re.setVolume(D)}},Go=le(!1),$r=c=>{X.log("set looped",{isLooped:c}),Go.set(c),N.setLooped(c)};$r(ne);let Hr=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},ot=(c,x=!1)=>{var D;B({message:`set autoplayNextEnabled, value: ${c}`}),X.log("set autoplay next enabled",{autoplayNextEnabled:c}),ht.ui.autoplayNextEnabled$.set(c),Mh(c),x&&((D=l==null?void 0:l.onSetAutoplayNextEnabled)==null||D.call(l,c))},mt=c=>{B({message:`set timerNextVideoRunning, value: ${c}`}),X.log("set timer next video running",{timerNextVideoRunning:c}),ht.ui.timerNextVideoRunning$.set(c)},ki=(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(Qe){B({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&ji("prev")||Z()},ro=(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(Qe){B({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&ji("next")||J()},ji=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:D,playbackStatusShow:ue}}=ee;return D&&ue&&!x?(ht.ui.aboutToGoNextVideo.set(c),ht.ui.userActionsDisabled.set(!0),!0):!1},Ao=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},Mo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Yo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Lo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},fi=()=>{N.prepare()},Je=()=>{(0,_t.assertNonNullable)(ht);let c=xe(ht.ui.controls.disabledControls$),x=xe(ht.playerPhase),D={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(B({message:"toggle play"}),x==="ads"){D.action="play",X.log("toggle adman play",D),re.togglePlay();return}let ue=()=>{var Tt;B({message:"toggle play, call player.play"}),D.action="play",N.play(),(Tt=l==null?void 0:l.onPlay)==null||Tt.call(l)},Qe=()=>{var Tt;B({message:"toggle play, call player.pause"}),D.action="pause",N.pause(),(Tt=l==null?void 0:l.onPause)==null||Tt.call(l)};if(N.info.isEnded$.getValue()){if(B({message:"toggle play, video ended, seek to 0"}),Kt.next(),je.next(Gr.SeekAction.REWIND),S){A==null||A();return}N.seekTime(0),ue()}else N.info.playbackState$.getValue()!==ci.PlaybackState.PLAYING?ue():Qe();X.log("toggle play",D)},Gt=(c,{changeReason:x="default",appliesTo:D="to-video"}={})=>{B({message:`set quality, quality: ${c}`}),X.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ee.features.qualityDetailsSubMenuEnabled?(Oc({type:"exact_quality",quality:c,videoId:i},D),td(),N.setPredefinedQualityLimits(ci.PredefinedQualityLimits.UNKNOWN)):Hp(i,c),tt.set(c),N.setQuality(c)):ee.features.qualityDetailsSubMenuEnabled?x==="default"&&(bo("auto_quality",D),xe(eo)&&Zi(!1),xe(Ko)&&Ri(!1)):td()},Zi=(c,x="as-default")=>{B({message:`set trafficSavingEnabled, value: ${c}`}),X.log("set traffic saving enabled",{trafficSavingEnabled:c});let D=c?ci.PredefinedQualityLimits.TRAFFIC_SAVING:ci.PredefinedQualityLimits.UNKNOWN;ee.features.qualityDetailsSubMenuEnabled?(gi(D,x),ed(!1)):(N.setPredefinedQualityLimits(D),ed(c))},Ri=(c,x="as-default")=>{B({message:`set highQualityEnabled, value: ${c}`}),X.log("set high quality enabled",{highQualityEnabled:c}),gi(c?ci.PredefinedQualityLimits.HIGH_QUALITY:ci.PredefinedQualityLimits.UNKNOWN,x)},gi=(c,x)=>{c!==ci.PredefinedQualityLimits.UNKNOWN&&(xe(Ht)&&!xe(vn)&&Gt("auto",{appliesTo:x,changeReason:"limit-changed"}),bo(c,x)),N.setPredefinedQualityLimits(c)},bo=(c,x)=>{Oc({type:c,videoId:i},x),x==="as-default"&&Oc({type:c,videoId:i},"to-video")},$o=c=>{X.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ee.features.saveRate&&de&&!N.info.isLive$.getValue()&&Ph(c)},Hn=()=>{let c=xe(Qo),x=c.findIndex(({selected:ue})=>ue);if(x===c.length-1)return;let D=c[x+1];$o(D.value)},so=()=>{let c=xe(Qo),x=c.findIndex(({selected:ue})=>ue);if(x===0)return;let D=c[x-1];$o(D.value)},_n=(c=Vt(K({},Gi),{selected:!1}))=>{X.log("set subtitles",K({},c)),c&&c.value!==Gi.value&&dt.next(c.isAuto?c.value+"_auto":c.value),Yi.set(c)},Fn=()=>{X.log("toggle subtitles");let c=xe(io),x=xe(Yi),D=xe(Wt);if((x==null?void 0:x.value)===Gi.value){let ue=c.filter(Qe=>Qe.value!==Gi.value).find(Qe=>Qe.value===D)||c[1];_n(ue)}else _n()},Vo=(c,x,D=!0)=>{var ue;if(B({message:`seek to time, time: ${c}`}),X.log("seek to time",{time:c,action:x,forcePrecise:D}),je.next(x),N.info.isLive$.getValue()){let Qe=N.info.duration$.getValue(),Tt=Math.min(0,Qe+c);N.seekTime(Tt,D)}else{if(P!=null&&P.getValue())return;N.info.isEnded$.getValue()&&(B({message:"seek after ended, call callbacks.onPlay"}),(ue=l==null?void 0:l.onPlay)==null||ue.call(l)),N.seekTime(ze(c),D)}},yr=c=>{B({message:`seek to episode start time: ${c}`}),X.log("seek to episode start time",{time:c}),Vo(c,Gr.SeekAction.EPISODE,!0)},xr=(c,x)=>{B({message:`seek to percent, percent: ${c}`}),X.log("seek to percent",{percent:c,action:x});let D=xe(Ti)*c;Vo(D,x,!1)},wr=c=>{B({message:`seek external, time: ${c}`}),X.log("seek external",{time:c}),je.next(Gr.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Fr=c=>{var ue,Qe;let x=(ue=c.max)!=null?ue:"none",D=(Qe=c.min)!=null?Qe:"none";B({message:`set auto quality limitation. Max: ${x}. Min: ${D}`}),X.log("set auto quality limits",{max:x,min:D}),N.setAutoQualityLimits(c)},jo=c=>{B({message:`seek external to episode start time: ${c}`}),X.log("seek external to episode start time",{time:c}),Vo(c,Gr.SeekAction.EPISODE,!0)},Sr=c=>{B({message:`set playback rate to: ${c}`}),X.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},sr=le(void 0),ar=le(!1),Cr=c=>{B({message:`start scrubbing, progress: ${c}`}),X.log("start scrubbing",{progress:c}),ar.set(!0),yo(c)},yo=c=>{sr.set(c)},Un,nt,Ft=()=>{sr.set(void 0),ar.set(!1)},Ii=()=>{clearTimeout(nt),clearTimeout(Un),Un=window.setTimeout(()=>{Ft()},500),Pe==null||Pe.removeEventListener("seeked",Ii)},Zo=c=>{B({message:`complete scrubbing, progress: ${c}`}),X.log("complete scrubbing",{progress:c}),xr(c,Gr.SeekAction.SLIDER),xe(ht.ui.isMobile)&&xe(ht.state.currentFormat$)===ci.VideoFormat.HLS?(Pe==null||Pe.addEventListener("seeked",Ii),nt=window.setTimeout(()=>{Ii()},300)):Ft()},zn=$i([bt,Ti,sr],([c,x,D],ue)=>{ue((0,_t.isNonNullable)(D)?D*x:c)}),we=le(!1),Rt=()=>{we.set(!0)},ui=()=>{we.set(!1)},At=le({width:0,height:0}),ei=$i([At],([{width:c}],x)=>{let D=a1(c);x(D)}),pi=le(!1),Hi=z.filter(c=>_h(c)),xo=$i([ei,pi],([c,x])=>x?Hi.filter(D=>!D.hideOnMobile):Hi.filter(D=>{var ue;return!((ue=D.hideOnDesktopGridTypes)!=null&&ue.includes(c))})),ri=le(z.filter(c=>bh(c))),Ro=$i([ri,ei],([c,x])=>c.filter(D=>{var ue;return!((ue=D.hideOnDesktopGridTypes)!=null&&ue.includes(x))})),qe=$i([Ro,xo],([c,x])=>[...ee.features.additionalButtonsDesktopControlPanelRight?c.filter(D=>D.type==="desktop-control-panel-right"):[],...ee.features.additionalButtons?x.map((D,ue)=>{var Qe;return{id:ue,weight:ue,type:"desktop-control-panel-right",testId:D.testId,icon:D.iconUrl,onClick:D.onClick,ariaLabel:(Qe=D.ariaLabel)!=null?Qe:D.tooltip,tooltipText:D.tooltip}}):[]]),zt=le(j),xi=$i([zt],([c])=>ee.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?Vt(K({},x),{onClick:x.onChangeEnabled}):x):[]),Do=(c,x)=>{let D=xe(ri).map(ue=>ue.id!==c?ue:K(K({},ue),x));ri.set(D)},Xo=c=>{let x=xe(ri);if(x.some(D=>D.id===c.id)){B({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ri.set(x)},ps=c=>{let x=xe(ri);if(!x.some(D=>D.id===c)){B({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(D=>D.id!==c),ri.set(x)},bn=c=>{je.next(Gr.SeekAction.LIVE),B({message:"live switch to low latency "+c}),X.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Yr=(c,x)=>{let D=xe(zt).map(ue=>ue.id!==c?ue:K(K({},ue),x));zt.set(D)},Sa=c=>{let x=xe(zt);if(x.some(D=>D.id===c.id)){B({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),zt.set(x)},Ca=c=>{let x=xe(zt);if(!x.some(D=>D.id===c)){B({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(D=>D.id!==c),zt.set(x)},lr=le(F),xl=$i([lr],([c])=>ee.features.additionalContextMenuItems?c:[]),Rs=(c,x)=>{let D=xe(lr).map(ue=>ue.id!==c?ue:K(K({},ue),x));lr.set(D)},Ta=c=>{let x=xe(lr);if(x.some(D=>D.id===c.id)){B({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),lr.set(x)},gt=c=>{let x=xe(lr);if(!x.some(D=>D.id===c)){B({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(D=>D.id!==c),lr.set(x)},$t=$i([pi,st],([c,x],D)=>{D(c&&x)}),Xi=()=>{je.next(Gr.SeekAction.LIVE),B({message:"switch to active live"}),X.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==ci.PlaybackState.PLAYING&&ht.actions.internal.togglePlay()},Jo=()=>{X.log("skip adman"),re.skip()},Ji=(c=!0)=>{(0,_t.assertNonNullable)(ht),B({message:`switch from ads to video, callPlay: ${c}`}),X.log("switch from ads to video",{callPlay:c}),se.set("video"),c&&N.play()},di=()=>{(0,_t.assertNonNullable)(ht),B({message:"switch from video to ads"}),X.log("switch from video to ads"),ht.actions.internal.pause(),ii(),se.set("ads")},Ei=c=>{(0,_t.assertNonNullable)(ht);let x=c?"LiveWaitingStart":"thumb";X.log("set live waiting start",{state:c,playerPhase:x}),se.set(x)},Ds=c=>{(0,_t.assertNonNullable)(ht);let x=c?"LiveWaitingRecover":"thumb";X.log("set live waiting recover",{state:c,playerPhase:x}),se.set(x)},ka=c=>{(0,_t.assertNonNullable)(ht);let x=c?"LiveWaitingRecord":"thumb";X.log("set live waiting record",{state:c,playerPhase:x}),se.set(x)},Vu=()=>((0,_t.assertNonNullable)(ht),X.log("get debug text data"),vh(N,ce,ht)),tc=()=>((0,_t.assertNonNullable)(ht),JSON.stringify(Le.getFinishedSpans())),Ru=()=>((0,_t.assertNonNullable)(ht),gh(N,ce,ht)),Ns=()=>Pe,Du=()=>{B({message:"toggle chromecast"}),X.log("toggle chromecast"),N.toggleChromecast()},wl=c=>{var D;if((0,_t.assertNonNullable)(ht),N.info.isEnded$.getValue())return;let x=!c;if(xe(ht.playerPhase)==="ads"){B({message:`pause ads, internalCall: ${x}`}),X.log("pause ads",{internalCall:x}),re.pause();return}B({message:`pause video, internalCall: ${x}`}),X.log("pause video",{internalCall:x}),x&&((D=l==null?void 0:l.onPause)==null||D.call(l)),N.pause()},ic=c=>{var D;(0,_t.assertNonNullable)(ht);let x=!c;if(xe(ht.playerPhase)==="ads"){B({message:`play ads, internalCall: ${x}`}),X.log("play ads",{internalCall:x}),re.play();return}B({message:`play video, internalCall: ${x}`}),X.log("play video",{internalCall:x}),x&&((D=l==null?void 0:l.onPlay)==null||D.call(l)),N.play()},oc=c=>{(0,_t.assertNonNullable)(ht);let x=!c;if(xe(ht.playerPhase)==="ads"){B({message:"player cannot be stopped during ads via external method"});return}B({message:`player will be stopped, internalCall: ${x}`}),E==null||E()},nc=(c,x)=>{(0,_t.assertNonNullable)(ht),B({message:`first start, show ads: ${c}, internalCall: ${!x}`}),X.log("first start",{showAds:c,external:x}),c?se.set("ads"):(se.set("video"),x?N.play():ht.actions.internal.togglePlay())},Ia=()=>(B({message:"getting time codes"}),f),Sl=()=>{let c=Ia();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(D=>D.time>x)},rc=c=>{let x=c;x||(x=Sl());let D=N.info.position$.getValue();X.log("seek to next episode",K({currentTime:D},x)),x&&(B({message:"seek to next episode"}),Vo(x.time,Gr.SeekAction.EPISODE,!0))},sc=()=>{let c=Ia();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),D=c.findIndex(Qe=>Qe.time>x),ue=D===-1?c.length-2:D-2;if(!(ue<0))return c[ue]},ac=c=>{let x=c;x||(x=sc());let D=N.info.position$.getValue();X.log("seek to prev episode",K({currentTime:D},x)),x&&(B({message:"seek to prev episode"}),Vo(x.time,Gr.SeekAction.EPISODE,!0))},Nu=()=>(B({message:"getting preview thumbs data"}),X.log("get preview thumbs data",K({},_)),_),lc=()=>kt(void 0,null,function*(){let c=Ne==null?void 0:Ne.isActive(),x="none";Ne!=null&&Ne.isActive()?(x="remove",yield Ne==null?void 0:Ne.remove()):(x="request",yield Ne==null?void 0:Ne.request()),X.log("toggle picture in picture",{isActive:c,action:x})}),Bu=(c=-90)=>{X.log("rotate video",{alphaDiff:c}),pt.update(x=>x+c)},Ea=le([]);k==null||k.subscribe(c=>{let x=[];for(let D=0;D<c.length;D++){let{range:[ue,Qe],subjects:Tt}=c[D];D===0&&ue!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ue/1e3,text:"",interactive:!0,completed:ee.features.interactiveTimeOpenUri?!Tt.length||Tt.every(Dt=>Dt.isRemoved):!Tt.length}),Qe!==1/0&&x.push({time:Qe/1e3,text:"",interactive:!1,completed:!0})}Ea.set(x)});let Ou=le(!1);P==null||P.subscribe(c=>{c&&xe(ar)&&Ft()});let ze=c=>{if(!S)return c;let x=xe(Ea),D=xe(Ti),Qe=xe(Vi)/D,Tt=x.find(Dt=>Dt.interactive&&!Dt.completed&&Dt.time>Qe);return typeof(Tt==null?void 0:Tt.time)=="number"?Math.min(c,Tt.time-.05):c},si=()=>{ht.ui.episodes.panelOpened$.set(!1)},en=()=>{X.log("destroy store"),clearTimeout(nt),clearTimeout(Un),Ge.unsubscribe(),ct.unsubscribe(),N.destroy(),re.destroy(),fe==null||fe.destroy(),Ee==null||Ee.destroy(),Ot.unsubscribe(),et==null||et.disconnect(),et=null,lt.destroy()},ht={interfaceLanguage$:Wt,isCyrillicRelatedInterface$:jt,initVideo:Te,videoId:i,isClip:o,playerPhase:Q,vsid:Ae,state:{positionExact$:bt,positionWithScrubbing$:zn,duration$:Ti,playbackState$:U,isPlaying$:to,isLoaderVisible:Oi,bufferedProgress$:Rn,isLive$:Bi,canChangePlaybackSpeed$:ai,isActiveLive$:pn,isOldestAvailableLive$:kn,isRewindableLive$:Xn,isEnded$:Qi,muted$:vo,volume$:mo,trafficSavingEnabled$:eo,highQualityEnabled$:Ko,autoQualityLimitingAvailable$:Ht,availableVideoStreams$:Po,availableAudioStreams$:In,videoStream$:Nr,audioStream$:gr,currentQuality$:tr,isAutoQualityEnabled$:vn,availableQualities$:gn,currentPlaybackRate$:hn,availablePlaybackRates$:Qo,currentSubtitle$:Yi,availableTextTracks$:ir,availableSubtitlesList$:io,currentSubtitleCaptions$:_o,isAutoSubtitleCaptionVisible$:no,chromecastState$:Qt,chromecastDeviceName$:go,chromecastConnected$:fn,currentFormat$:Jt,throughputEstimation$:Zn,videoBitrate$:Io,videoSize$:Eo,errorLog$:rt,crashed$:st,isAudioAvailable$:xt,isAudioDisabled:!!s,canDownload:ee.features.download&&!!d,availableSources$:Uo,hasMpegSources$:Br,isInteractive:S,showInteractiveGraph:ee.features.interactiveGraph,showSeekToInteractive:ee.features.seekToInteractive,showPlayPrevChapter:ee.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ee.features.interactiveTimeIndicator&&!!xe(Ea).length,interactiveEpisodes$:Ea,isInteractiveTime$:P?Xt(P):le(!1),isInteractiveExpectation$:Ou,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,looped$:Go,loadedMetadata$:le(!1),isAutoQualityAvailable$:An},ui:{t:Be,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:z.length?z.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:ae},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ye,isFullscreenOpenedByKeyboard:Ve,rotateAlpha:pt,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:At,isMobile:pi,mobileNotReportControlHidden$:$t,mobileUnmuteButtonExpanded:le(!1),mobileUnmuteButtonVisible:le(!1),icon3DVideoVisible:le(!1),scrubbingInProgress:ar,volumeChangingInProgress:we,is3DVideo:le(!1),currentGridType$:ei,additionalButtonsDeprecated$:xo,additionalDesktopControlPanelRightButtons$:qe,additionalSettingsMenuItems$:xi,additionalContextMenuItems$:xl,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)},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:Ne,annotationsApi:me},actions:{internal:{preload:fi,firstStart:c=>nc(c,!1),play:()=>ic(!1),pause:()=>wl(!1),togglePlay:Je,toggleMuted:Nn,openSettingsMenu:Or,closeSettingsMenu:Bn,openSettingsSubMenu:br,closeSettingsSubMenu:nr,setVolume:On,startVolumeChanging:Rt,stopVolumeChanging:ui,setVideoStream:Jn,setAudioStream:En,setQuality:Gt,setTrafficSavingEnabled:Zi,setHighQualityEnabled:Ri,setPlaybackRate:$o,incrementPlaybackRate:Hn,decrementPlaybackRate:so,setSubtitle:_n,toggleSubtitle:Fn,togglePictureInPicture:lc,startScrubbing:Cr,progressScrubbing:yo,completeScrubbing:Zo,toggleChromecast:Du,switchToActiveLive:Xi,switchFromAdsToVideo:Ji,switchFromVideoToAds:di,skipAd:Jo,setLiveWaitingStart:Ei,setLiveWaitingRecover:Ds,setLiveWaitingRecord:ka,getDebugTextData:Vu,getTraceTextData:tc,getDebugPanelData:Ru,getVideoElement:Ns,seekTime:(c,x,D)=>Vo(c,x,D),clearDelayedBufferingCheckTimeout:Tn,seekEpisodeStartTime:yr,seekToPercent:xr,getNextEpisode:Sl,seekToNextEpisode:rc,getPrevEpisode:sc,seekToPrevEpisode:ac,startLogging:oi,stopLogging:Ni,startCameraManualRotation:Oo,stopCameraManualRotation:Ki,moveCameraFocusPX:Ho,holdCamera:Fo,releaseCamera:Lt,getVideoEpisodes:Ia,getPreviewThumbsData:Nu,downloadVideo:_r,addLanguage:Qp,setLanguage:wt,nextMovie:ft,videoRotate:Bu,correctSeekTimeToInteractive:ze,replayInteractive:A,setLooped:$r,reportProblem:Hr,setAutoplayNextEnabled:ot,setTimerNextVideoRunning:mt,prevVideoClick:ki,nextVideoClick:ro,nextVideoAnnouncementShow:Ao,nextVideoAnnouncementClick:Mo,nextVideoAnnouncementAuto:Yo,nextVideoAnnouncementCancel:Lo},external:{firstStart:c=>nc(c,!0),play:()=>ic(!0),pause:()=>wl(!0),stop:()=>oc(!0),seekTime:c=>wr(c),seekEpisodeStartTime:c=>jo(c),setPlaybackRate:c=>Sr(c),setAutoQualityLimits:c=>Fr(c),setMuted:ni,setVolume:On,returnFocusToEpisodes:si,updateAdditionalSettingsItem:Yr,addAdditionalSettingsItem:Sa,removeAdditionalSettingsItem:Ca,updateAdditionalContextItem:Rs,addAdditionalContextItem:Ta,removeAdditionalContextItem:gt,updateAdditionalButton:Do,addAdditionalButton:Xo,removeAdditionalButton:ps,setLiveLowLatency:bn}},callbacks:l,setUiCallbacks:c=>{Ye=K({},c)},getAdmanWrapper:()=>re,getLogger:()=>De,getPlayer:()=>N,destroy:en};return ht};function ga(t,e,i,o){var _;let n=["interactiveTimeIndicator"],a=(_=e[i])==null?void 0:_.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:u,right:f}=cl(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?d:0,bottom:s?u:0,isDisplayed:s}}var du=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(ga(t,i,n,o))};var cu=(t,e,i)=>kt(void 0,null,function*(){yield Co(),e&&i&&(i.focus(),t.set(!1))});var k2=$e('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=k2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i))),b(t,o)}function Kf(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(l,"$contextMenuVisible$",i),a=v(e,"disabled",3,!1),s=v(e,"ariaLabel",3,""),d=Ce(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,$=te(void 0);We(()=>{r($)&&yt(()=>{p.set(r($))})});let w=P=>{let A=Ts(P),E=Zh(r($));_.set(E),u.set(A),l.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},k=m(()=>n()?"opened":"");Mt(t,{get className(){return r(k)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return r($)},set ref(P){O($,ve(P))},children:(P,A)=>{Wf(P,{})},$$slots:{default:!0}}),W(),o()}var I2=t=>{t.stopPropagation()},E2=L("<div><!> <div></div> <div></div></div>"),P2={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;}
|
|
227
|
+
}`};function Bf(t,e){z(e,!0),K(t,a2);let i=m(e,"isMobile",3,!1),o=v(()=>e.iconState===Nf.ChromecastState.CONNECTED),n=v(()=>e.iconState===Nf.ChromecastState.CONNECTING);var a=ze(),s=pe(a);{var d=u=>{var f=r2(),_=h(f),p=h(_),b=h(p);be(),g(p);var x=M(p);be(),g(_);var y=M(_),C=h(y),k=h(C);g(C),be(),g(y),g(f),I(()=>{Fe(b,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(k,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},l=u=>{var f=s2();let _;var p=h(f),b=M(h(p),5);let x;g(p),g(f),I((y,C)=>{_=te(f,0,"svelte-8z1bf5",null,_,y),x=te(b,0,"svelte-8z1bf5",null,x,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(u,f)};V(s,u=>{i()?u(d):u(l,!1)})}$(t,a),q()}var f1=require("@vkontakte/videoplayer-shared/es2015");function Cd(t,e){z(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,f1.noop),s=Se().ui.t,d=v(()=>e.state===p1.ChromecastState.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Vt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,u)=>{Bf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),q()}var l2=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),d2={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 Of(t,e){K(t,d2);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),s=ie(void 0),d=ie(void 0);function l(x){if(!r(d))return 0;let{width:y}=r(d).getBoundingClientRect(),C=y/2;return x<C?C:x>e.containerWidth-C?e.containerWidth-C:x}let u=v(()=>l(n()));var f=l2(),_=h(f);let p;var b=h(_);he(b,()=>{var x;return(x=e.children)!=null?x:ne}),g(_),ct(_,x=>O(d,x),()=>r(d)),g(f),ct(f,x=>O(s,x),()=>r(s)),I(x=>{nt(f,`transform: translate(${r(u)}px, ${a()}px);`),p=te(_,1,"tooltip svelte-5ygsa2",null,p,x),nt(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,f)}var su=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var m1=t=>!!(Math.round(Math.abs(t)/90)%2),v1=t=>Math.abs(t)/90%4===1;var c2=L('<div class="preview svelte-1wqg760"></div>'),u2=L('<div class="time svelte-1wqg760"> </div>'),p2=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),f2={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 Hf(t,e){z(e,!0),K(t,f2);let[i,o]=Oe(),n=()=>S(x,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),l=m(e,"isMobile",3,!1),u=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),_=m(e,"duration",3,0),p=m(e,"isInteractive",3,!1),b=Se(),x=b.ui.rotateAlpha,y=b.ui.playerSize,C=ie(0),k=ie(0),E=ie(""),P=ie(0),A=ie(0),T=ie(0),R=ie(0),F=v(()=>su(f(),_(),u())),Y=v(()=>m1(n())),H=v(()=>v1(n())),X=v(ue),oe=v(()=>(r(H)?1:-1)*(r(C)/2-r(k)/2)),ee=v(()=>r(oe)*-1);qe(()=>{(B=>(O(C,me(B.width)),O(k,me(B.height))))(Me())}),qe(()=>{(B=>(O(E,me(B.imgSrc)),O(P,me(B.imgWidth)),O(A,me(B.imgHeight)),O(T,me(B.imgOffsetX)),O(R,me(B.imgOffsetY))))(Le(f()))});function ue(){var Ke;let B=l()?s.MOBILE:s.DESKTOP,{isVertical:de}=le(),Ie=30;return(Ke=r(F))!=null&&Ke.text&&(Ie+=16),(de||r(Y))&&(Ie+=18,Ie+=50),Math.min(Math.max(a().height-Ie,0),B)}function le(){let B=e.previewThumbsData.frameWidth,de=e.previewThumbsData.frameHeight,Ie=de>B;return{width:B,height:de,isHorizontal:!Ie,isVertical:Ie}}function Me(){let{height:B,isHorizontal:de,isVertical:Ie,width:Ke}=le();return de&&(B=B/Ke*r(X),Ke=r(X)),Ie&&(Ke=Ke/B*r(X),B=r(X)),{width:Ke,height:B}}function Le(B){let de;e.previewThumbsData.isUV?de=Math.floor(_()*B/e.previewThumbsData.frequency):de=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*B)));let Ie=Math.floor(de/e.previewThumbsData.countPerImage),Ke=Math.floor(de%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),st=de%e.previewThumbsData.countPerRow,xe=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ie===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(xe=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&xe++);let ye=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ie===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ye=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let De=r(C)*ye,et=r(k)*xe,at=-st*r(C),ft=-Ke*r(k);return{imgSrc:e.previewThumbsData.links[Ie],imgWidth:De,imgHeight:et,imgOffsetX:at,imgOffsetY:ft}}var J=p2();let Ve;var j=h(J);{var N=B=>{var de=c2();I(()=>nt(de,`width: ${r(C)}px; height: ${r(k)}px; background-image: url(${r(E)}); background-size: ${r(P)}px ${r(A)}px; background-position: ${r(T)}px ${r(R)}px;
|
|
228
|
+
transform: rotate(${n()}deg) ${r(Y)?`translate(${r(oe)}px, ${r(ee)}px)`:""};
|
|
229
|
+
`)),$(B,de)};V(j,B=>{r(E)&&B(N)})}var Re=M(j,2),re=h(Re);{var ke=B=>{var de=ze(),Ie=pe(de);{var Ke=xe=>{var ye=cr();I(De=>ge(ye,De),[()=>U("tooltip_episode_unfinished")]),$(xe,ye)},st=xe=>{var ye=cr();I(()=>ge(ye,r(F).text||"")),$(xe,ye)};V(Ie,xe=>{p()&&r(F).completed===!1?xe(Ke):xe(st,!1)})}$(B,de)};V(re,B=>{r(F)&&B(ke)})}g(Re);var Ne=M(Re,2);{var fe=B=>{var de=u2(),Ie=h(de,!0);g(de),I(()=>ge(Ie,d())),$(B,de)};V(Ne,B=>{p()||B(fe)})}g(J),I(B=>{Ve=te(J,1,"timeline-preview svelte-1wqg760",null,Ve,B),nt(J,`width: ${r(Y)?r(k):r(C)}px;`)},[()=>({mobile:l()})]),$(t,J),q(),o()}var m2=L('<span class="time svelte-1jr6obn"> </span>'),v2=L("<!> <!>",1),g2={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 Ff(t,e){var _e;z(e,!0),K(t,g2);let[i,o]=Oe(),n=()=>S(X,"$interactiveEpisodes$",i),a=()=>S(A,"$duration$",i),s=()=>S(P,"$position$",i),d=()=>S(ue,"$isInteractiveExpectation$",i),l=()=>S(ee,"$isInteractiveTime$",i),u=()=>S(T,"$isLive$",i),f=()=>S(F,"$isMobile",i),_=()=>S(R,"$isActiveLive$",i),p=()=>S(E,"$bufferedProgress$",i),b=()=>S(Le,"$disabledControls$",i),x=m(e,"showTimeline",3,!1),y=m(e,"ref",15,void 0),C=Se(),k=Wt(),E=C.state.bufferedProgress$,P=C.state.positionWithScrubbing$,A=C.state.duration$,T=C.state.isLive$,R=C.state.isActiveLive$,F=C.ui.isMobile,Y=k.features.episodes?C.actions.internal.getVideoEpisodes():void 0,H=C.actions.internal.getPreviewThumbsData(),X=C.state.interactiveEpisodes$,oe=C.state.isInteractive,ee=C.state.isInteractiveTime$,ue=C.state.isInteractiveExpectation$,le=C.actions.internal.correctSeekTimeToInteractive,Me=(_e=C.callbacks)==null?void 0:_e.onDisabledTimelineClick,Le=C.ui.controls.disabledControls$,J=C.ui.t,Ve=k.features.interactiveResponsiveUi,j=v(()=>oe?n():Y),N=v(()=>sn(a())),Re=v(()=>sn(s())),re=v(()=>s()/a()),ke=v(()=>d()||l()),Ne=ie(!1),fe=ie(""),B=ie(0),de=ie(0),Ie=ie(0),Ke=v(()=>({containerWidth:r(de),translateXPx:r(B),translateYPx:oe&&H?-36:-16,active:r(Ne)&&x()&&!r(ke)&&!Ve,pointer:!k.features.timelinePreview||!H||u()})),st=J("aria_timeline"),xe=v(()=>J("aria_timeline_value",{position:r(Re),duration:r(N)}));function ye(Pe){return!le||!oe?Pe:le(Pe*a())/a()}function De(Pe){C.actions.internal.startScrubbing(ye(Pe))}function et(Pe){l()||C.actions.internal.progressScrubbing(ye(Pe))}function at(Pe){C.actions.internal.completeScrubbing(ye(Pe)),O(Ne,!1)}function ft(Pe,He,ut){wt(Pe,He,ut),O(Ne,!0)}function Ut(Pe,He,ut){wt(Pe,He,ut),O(Ne,!0)}function lt(){O(Ne,!1)}function wt(Pe,He,ut){O(Ie,me(ye(Pe))),O(B,me(He)),ut&&O(de,me(ut)),O(fe,me(Yt(Pe)))}function Yt(Pe){let He=sn((u()?1-Pe:Pe)*a());return u()?`-${He}`:He}var Xt=v2(),Be=pe(Xt);Of(Be,ls(()=>r(Ke),{children:(Pe,He)=>{var ut=ze(),Kt=pe(ut);{var Ye=tt=>{Hf(tt,{get time(){return r(fe)},get isMobile(){return f()},get videoEpisodes(){return r(j)},previewThumbsData:H,get progress(){return r(Ie)},get duration(){return a()},isInteractive:oe})},gt=tt=>{var St=m2(),ni=h(St,!0);g(St),I(()=>ge(ni,r(fe))),$(tt,St)};V(Kt,tt=>{k.features.timelinePreview&&H&&!u()?tt(Ye):tt(gt,!1)})}$(Pe,ut)},$$slots:{default:!0}}));var se=M(Be,2);let Q=v(()=>Math.round(r(re)*100)),ae=v(()=>b().has("TIMELINE"));ga(se,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return f()},ariaLabel:st,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Q)},get ariaValueText(){return r(xe)},get loadedProgress(){return p()},get filledProgress(){return r(re)},get handleProgress(){return r(re)},get videoEpisodes(){return r(j)},onPointerDown:De,onHandleMove:et,onPointerMove:Ut,onPointerUp:at,onPointerEnter:ft,onPointerLeave:lt,onDisabledClick:Me,isInteractive:oe,get disabled(){return r(ae)},get hideHandel(){return l()},get ref(){return y()},set ref(Pe){y(Pe)}}),$(t,Xt),q(),o()}var h2={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 Td(t,e){z(e,!0),K(t,h2);let[i,o]=Oe(),n=()=>S(l,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"duration",3,0),d=Se(),l=d.ui.isMobile,u=d.ui.t,f=v(()=>sn(s())),_=v(()=>sn(a())),p=v(()=>a()/s()),b=v(()=>u("aria_timeline_value",{position:r(_),duration:r(f)})),x=v(()=>Math.round(r(p)*100));ga(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(x)},get ariaValueText(){return r(b)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),q(),o()}var _2=L("<div><!></div>"),b2=L("<div></div>"),$2={hash:"svelte-1h5wsmk",code:".timeline.svelte-1h5wsmk {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1h5wsmk {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1h5wsmk {padding:0;}.timeline-stub.svelte-1h5wsmk {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1h5wsmk {height:8px;}"};function cs(t,e){z(e,!0),K(t,$2);let[i,o]=Oe(),n=()=>S(b,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(y,"$adPosition",i),d=()=>S(x,"$adDuration",i),l=m(e,"isAds",3,!1),u=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),_=m(e,"ref",15,void 0),p=Se(),b=p.state.isLive$,x=p.ads.duration,y=p.ads.position,C=p.ui.isMobile,k=v(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var E=ze(),P=pe(E);{var A=R=>{var F=_2();let Y;var H=h(F);{var X=ee=>{Td(ee,{get position(){return s()},get duration(){return d()}})},oe=ee=>{Ff(ee,{get showTimeline(){return r(k)},get ref(){return _()},set ref(ue){_(ue)}})};V(H,ee=>{l()?ee(X):ee(oe,!1)})}g(F),I(ee=>Y=te(F,1,"timeline svelte-1h5wsmk",null,Y,ee),[()=>({withoutPadding:!f(),mobile:a()})]),$(R,F)},T=R=>{var F=b2();let Y;I(H=>Y=te(F,1,"timeline-stub svelte-1h5wsmk",null,Y,H),[()=>({mobile:a()})]),$(R,F)};V(P,R=>{r(k)?R(A):R(T,!1)})}$(t,E),q(),o()}var g1=require("@vkontakte/videoplayer-shared/es2015");var y2=$e('<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 Uf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=y2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(3),g(o),I(()=>n=Te(o,n,W({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 x2=$e('<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 zf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=x2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 w2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),S2=L('<span class="text svelte-1yhs2ga"> </span>'),C2=L('<span class="text count svelte-1yhs2ga"> </span>'),T2=L("<!> <!>",1),k2={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 kd(t,e){var le,Me,Le;z(e,!0),K(t,k2);let[i,o]=Oe(),n=()=>S(x,"$currentGridType$",i),a=()=>S(y,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(k,"$isMobile",i),l=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),_=Se(),p=(Me=(le=_.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Me:g1.noop,b=!!((Le=_.callbacks)!=null&&Le.onEpisodeClicked),x=_.ui.currentGridType$,y=_.ui.episodes.openedByKeyboard$,C=_.ui.episodes.panelOpened$,k=_.ui.isMobile,E=_.ui.t,P=ie(void 0),A=J=>{var j,N,Re;if(!!((j=_.callbacks)!=null&&j.onEpisodeClicked)){let re=Is(J);y.set(re),C.set(!0),(Re=(N=_.callbacks)==null?void 0:N.onEpisodeClicked)==null||Re.call(N,re)}},T=ie(null),R=v(()=>l()/u());qe(()=>{var Ve;let J=su(r(R),u(),f());J?((Ve=r(T))==null?void 0:Ve.time)!==J.time&&(p(J),O(T,me(J))):O(T,null)});let F=v(()=>{var J;return((J=r(T))==null?void 0:J.text)||""}),Y=v(()=>Gi(n(),"xl")?"FULL":Gi(n(),"m")&&d1(n(),"xl")?"COUNT":"SHORT"),H=v(()=>`${E("tooltip_episodes")}: ${r(F)}`),X=(J,Ve,j)=>It(this,null,function*(){yield ko(),(J==null?void 0:J.getAttribute("aria-expanded"))==="false"&&Ve&&!j&&yt(()=>{y.set(!1),J.focus()})});qe(()=>{X(r(P),a(),s())});var oe=ze(),ee=pe(oe);{var ue=J=>{let Ve=v(()=>d()?"px-0":"");Vt(J,{get className(){var j;return`w-max btn-full-opacity btn-jc-l ${(j=r(Ve))!=null?j:""}`},testId:"btn-episodes",click:A,disabled:!b,get ariaExpanded(){return s()},get ariaLabel(){return r(H)},get ref(){return r(P)},set ref(j){O(P,me(j))},children:(j,N)=>{var Re=ze(),re=pe(Re);{var ke=fe=>{var B=w2(),de=pe(B),Ie=h(de,!0);g(de);var Ke=M(de,2),st=h(Ke);zf(st,{}),g(Ke),I(()=>ge(Ie,r(F))),$(fe,B)},Ne=fe=>{var B=T2(),de=pe(B);Uf(de,{});var Ie=M(de,2);{var Ke=xe=>{var ye=S2(),De=h(ye,!0);g(ye),I(()=>ge(De,r(F))),$(xe,ye)},st=(xe,ye)=>{{var De=et=>{var at=C2(),ft=h(at,!0);g(at),I(()=>ge(ft,f().length)),$(et,at)};V(xe,et=>{r(Y)==="COUNT"&&et(De)},ye)}};V(Ie,xe=>{r(Y)==="FULL"?xe(Ke):xe(st,!1)})}$(fe,B)};V(re,fe=>{d()?fe(ke):fe(Ne,!1)})}$(j,Re)},$$slots:{default:!0}})};V(ee,J=>{r(T)&&J(ue)})}$(t,oe),q(),o()}var E1=require("@vkontakte/videoplayer-shared/es2015");var ui=require("@vkontakte/videoplayer-core/es2015"),_t=require("@vkontakte/videoplayer-shared/es2015"),jr=require("@vkontakte/videoplayer-statistics/es2015");var We=require("@vkontakte/videoplayer-shared/es2015"),Yi=require("@vkontakte/videoplayer-shared/es2015");var h1=(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",au=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 Yi.Subject,loadStarted$:new Yi.Subject,loadEnded$:new Yi.Subject,loadError$:new Yi.Subject,ready$:new Yi.Subject,slotRequested$:new Yi.Subject,started$:new Yi.Subject,timeRemained$:new Yi.Subject,paused$:new Yi.Subject,resumed$:new Yi.Subject,ended$:new Yi.Subject,empty$:new Yi.Subject,skipped$:new Yi.Subject,clicked$:new Yi.Subject,closed$:new Yi.Subject,error$:new Yi.Subject};this.loadAdman=e=>(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,We.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,We.now)()]}),o())};(0,Yi.addScript)(I2,e,this.loadTimeout).then(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,We.now)()]}),window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,We.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[(0,We.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,We.now)()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,We.now)()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,We.now)()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,We.now)()]}),!d&&(window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,We.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,We.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,We.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),we(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,We.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,We.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,We.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,We.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:u={},duration:f,previewParam:_}=e,p,b=this.playerState&&we(this.playerState.vsid);b&&(this.isVsidOriginal?p=b:p=parseInt(b,36));let{isEmbed:x,immediateOrigin:y}=(0,We.detectEmbed)(),C=(P=x?y:window.location.href)!=null?P:window.location.href,k=Rt(W(Rt(W({},u),{dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:_}),p?{request_id:p}:{}),{duration:f,puid10:h1(i,o),puid11:n?0:1});_||delete k.preview;let E={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:k,browser:{mobile:!1}};try{let A=new window.AdmanHTML;A.setDebug(!1),A.onReady(this.onAdsReady),A.onStarted(this.onAdStarted),A.onPlayed(this.onAdPlayed),A.onPaused(this.onAdPaused),A.adMidrollPoint(this.onAdMidrollPoint),A.onClosed(this.onAdClosed),A.onSkipped(this.onAdSkipped),A.onClicked(this.onAdClicked),A.onTimeRemained(this.onAdTimeRemained),A.onCompleted(this.onAdCompleted),A.onError(this.onAdError),A.init(E),this.adman=A,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(A){We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[(0,We.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,We.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.adsState){this.log({message:"toggle play"});let i=we(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,We.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,u,f,_,p;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,We.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(_=this.adman)==null||_.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,Yi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var _1=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 s={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!s.startTime&&!s.endTime){let u=new lu,{startTime:f,endTime:_}=u.parse(l);s.startTime=f,s.endTime=_}else if(l.trim()!==""){let u=new Wf,{texts:f}=u.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},lu=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}},Wf=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 u=["<",">"].reduce((f,_)=>{let p=s.indexOf(_,d);return f===-1||f>p?p:f},-1);if(u===-1){l.push(s.substring(d));break}l.push(s.substring(d,u)),d=u+1}return l}}),a=new lu;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}},b1=qf;var cu=require("@vkontakte/videoplayer-shared/es2015"),ha,Ci,Kf=0,Qf=!1,$1="",y1=(t,e=0,i=0)=>t<e&&t<i,du=(t,e=0,i=0)=>t>=e&&t<=i,E2=(t,e=0,i=0)=>t>e&&t>i,x1=(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:u,endTime:f})=>du(t,u,f));let a=t>=Kf,s=t<Kf;if(Kf=t,s&&(Qf=!1),(0,cu.isNonNullable)(ha)&&du(t,ha.startTime,ha.endTime)&&$1===e.value)return ha;if(!(0,cu.isNonNullable)(Ci)&&(n!=null&&n.length)&&!Qf){Ci=n.find(({startTime:u,endTime:f})=>du(t,u,f)||a&&y1(t,u,f)),ha=void 0,!(0,cu.isNonNullable)(Ci)&&n[n.length-1].endTime<t&&(Qf=!0);return}else{if(du(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime))return ha=Ci,Ci=void 0,$1=e.value,ha;(a&&E2(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime)||s&&y1(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime))&&(Ci=void 0)}};var w1={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},P2={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},uu=t=>{var e,i;return(i=(e=w1[t])!=null?e:w1[P2[t]])!=null?i:void 0};var S1=require("@vkontakte/videoplayer-shared/es2015"),cN=require("@vkontakte/videoplayer-statistics/es2015"),pu=class{constructor(e,i=new S1.Subscription){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Id=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Id||{});var Yr=t=>t!=null?t:0,fl=(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(Yr(i==null?void 0:i.top)-Yr(o==null?void 0:o.top)),left:Math.round(Yr(i==null?void 0:i.left)-Yr(o==null?void 0:o.left)),bottom:Math.round(Yr(i==null?void 0:i.bottom)-Yr(o==null?void 0:o.top)),right:Math.round(Yr(i==null?void 0:i.right)-Yr(o==null?void 0:o.left))}},ml=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Yr(e==null?void 0:e.width),height:Yr(e==null?void 0:e.height)}};var C1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:u,videoEpisodes:f,previewThumbsData:_,uiConfig:p,coreConfig:b,player:x,disabledControls:y,isInteractive:C,interactiveRanges$:k,isInteractiveTime$:E,replayInteractive:P,stopPlayer:A,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:R,additionalButtons:F,additionalSettingsMenuItems:Y,additionalContextMenuItems:H,playPrevVideo:X,playNextVideo:oe,looped:ee=!1,statistics:ue,saveRate:le,internalsExposure:Me})=>{var So,vv,gv;let Le=Rt(W({},b),{configName:[...(So=b.configName)!=null?So:[],"ui"],isAudioDisabled:s,live:Rt(W({},(vv=b.live)!=null?vv:{}),{isLiveCatchUpMode:!!n})}),J=p,Ve=_t.Tracer.createRootTracer(J.features.saveTraceInfoToFile),j=Ve.createComponentTracer("Store"),N=x||new ui.Player(Le,Ve);Me==null||Me.expose({corePlayer:N});let Re=new _t.Logger,re=new au(Re,{loadTimeout:J.ads.loadTimeout,initTimeout:J.ads.initTimeout,runtimeTimeout:J.ads.runtimeTimeout,useAdmanFromNPM:J.ads.useAdmanFromNPM,volumeMultiplier:J.ads.volumeMultiplier,isVsidOriginal:J.ads.isVsidOriginal}),ke=ra.getInstance(),Ne=u==null?void 0:u.pictureInPictureApi,fe=u==null?void 0:u.annotationsApi,B=Re.createComponentLog("Store"),de,Ie,Ke={},st=new Hc,xe=ue?ei(ue.oneStat.vsid$):pr(void 0),ye=ce(Cs()),De=ce(!1),et=(gv=Ne==null?void 0:Ne.info.isActive$)!=null?gv:new _t.ValueSubject(!1),at=ce(0),ft=ce([]),Ut=(0,_t.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>ft.update(w=>[...w,c])),lt=pr(!1,c=>{let w=N.events.fatalError$.subscribe(()=>c(!0));return()=>w.unsubscribe()}),wt=c=>It(void 0,null,function*(){var ve;let w=Object.values(_t.InterfaceLanguage).includes(c);if(J.downloadVKLanguages&&(w&&J.updateBuiltinLanguages||!Zp(c))){let Ge;try{Ge=yield(0,_t.loadVKLangPack)(c,ah,lh)}catch(kt){(ve=ue==null?void 0:ue.oneStat)==null||ve.logError({errorType:"VKLangPack",fatal:!1}),ke==null||ke.report(kt,{errorType:"VKLangPack",fatal:!1})}Ge&&(jp({language:c,pack:Ge,fallback:J.defaultLanguage}),Yt.set(c))}Zp(c)&&Yt.set(c)}),Yt=ce(t),Xt=ce(e);wt(t);let Be=(c,w)=>{let D=we(Yt);return Xp(D,c,w,J.defaultLanguage)},se=ce("thumb"),Q=(()=>{let c=_i([lt,se],([w,D])=>w?"crashed":D);return Rt(W({},c),{is:w=>we(c)===w})})(),ae=(()=>{let c=ce(new Set(y));return Rt(W({},c),{add:w=>{c.update(D=>new Set([...D].concat(w)))},remove:w=>{c.update(D=>{let ve=[...D];return new Set(Array.isArray(w)?ve.filter(Ge=>!w.includes(Ge)):ve.filter(Ge=>Ge!==w))})},includes:w=>{let D=we(c);return Array.isArray(w)?w.every(ve=>D.has(ve)):D.has(w)}})})();j.log("create store"),B({message:"create store"});let _e=c=>{let w=c.container;w.append(N.experimental.element$.getValue()),tt=new MutationObserver(D=>{let{removedNodes:ve}=D[0];ve.length&&w.append(N.experimental.element$.getValue())}),tt.observe(w,{childList:!0})},Pe=c=>{B({message:`init video, config: ${JSON.stringify(c)}`}),C?_e(c):(_t.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,_t.now)()]}),N.initVideo(c)),j.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),de=c},He=new _t.Subject,ut=c=>He.next(c),Kt=new _t.Subject,Ye=new _t.Subject,gt=new _t.Subject,tt=null,St={actionRewind$:Kt,actionSeek$:Ye,inPiP$:et,inFullscreen$:new _t.Observable(c=>ye.subscribe(w=>c.next(w))),actionSetSubtitle$:gt,nextMovie$:He};if(ue){let{oneStat:c,statSubscription:w}=ue;C||w.add(c.attachTo(N)),w.add(c.attachToUi(St)),w.add(c.attachToAds(re.events)),c.authorize(a).catch(D=>{B({message:`onestat auth error ${String(D)}`})})}if(ke){let c=new _t.Subscription,w=(D,ve)=>c.add(D.subscribe(ve));if(w(N.events.managedError$,D=>{ke.logIError(D)}),w(N.events.fatalError$,D=>{ke.logIError(D,!0)}),ue){let{oneStat:D}=ue;w(D.experimental.error$,ve=>{ke.logIError(ve)})}ke.sentrySubscription.add(c)}let ni=()=>{ui.clientChecker.device.isIOS&&Ie&&qh(Ie).catch(c=>{B({message:`exitIosSafariFullscreen failed: ${c}`})})},Xe=new _t.Subscription().add(N.experimental.element$.subscribe(c=>{c&&(Ie=c,c.classList.add("player-media"),aa(Ne)&&(Ne.updateVideoElement(),Ne.registryEventHandlers()),C&&c.setAttribute("pip","false"))})).add(N.events.ended$.subscribe(()=>{var c;ni(),(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(()=>It(void 0,null,function*(){var w,D;aa(Ne)&&(yield Ne==null?void 0:Ne.revealPictureInPicture());let c=N.info.muted$.getValue();(w=l==null?void 0:l.onStarted)==null||w.call(l),(D=Ke.onStarted)==null||D.call(Ke,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:w})=>{var D;(D=l==null?void 0:l.onSeek)==null||D.call(l,c,w)})).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 D;let w=N.info.duration$.getValue();isFinite(w)&&w>0&&((D=l==null?void 0:l.onTimeupdate)==null||D.call(l,w,c),re.setPosition(c,w))})).add(N.events.fatalError$.subscribe(c=>{var w;(w=l==null?void 0:l.onCrashed)==null||w.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var w;(w=l==null?void 0:l.onRecoverableError)==null||w.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{mt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{mt.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&ae.add(nd),ae.add("PLAY_BUTTON")):ae.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var w;(w=l==null?void 0:l.onLiveTime)==null||w.call(l,c)})).add(N.info.isStalled$.subscribe(c=>{var w;(w=l==null?void 0:l.onStalledChanged)==null||w.call(l,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var w;return c&&((w=l==null?void 0:l.onLiveEnded)==null?void 0:w.call(l))})).add(re.events.loadStarted$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:w.call(c)})).add(re.events.loadEnded$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:w.call(c)})).add(re.events.loadError$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:w.call(c)})).add(re.events.init$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:w.call(c)})).add(re.events.ready$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:w.call(c)})).add(re.events.started$.subscribe(c=>{var w,D;return(D=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onStarted)==null?void 0:D.call(w,c)})).add(re.events.timeRemained$.subscribe(c=>{var w,D;return(D=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onTimeRemained)==null?void 0:D.call(w,c)})).add(re.events.ended$.subscribe(c=>{var w,D;return(D=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onCompleted)==null?void 0:D.call(w,c)})).add(re.events.empty$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:w.call(c)})).add(re.events.clicked$.subscribe(c=>{var w,D;return(D=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onClicked)==null?void 0:D.call(w,c)})).add(re.events.closed$.subscribe(c=>{var w,D;return(D=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onClosed)==null?void 0:D.call(w,c)})).add(re.events.error$.subscribe(c=>{var w,D;return(D=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onError)==null?void 0:D.call(w,c)})).add(re.events.paused$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:w.call(c)})).add(re.events.resumed$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:w.call(c)})),pt=new _t.Subscription,li=()=>{var kt,Ot,Gt;let{debugLog:c}=J,w,D="#9df7b7",ve="#efd169";if(c&&c!==!0){let{colors:Ht}=c;w=c.tag,D=(kt=Ht==null?void 0:Ht[0])!=null?kt:D,ve=(Gt=(Ot=Ht==null?void 0:Ht[1])!=null?Ot:Ht==null?void 0:Ht[0])!=null?Gt:ve}let Ge=w?`: ${w}`:"";pt.add(N.events.log$.subscribe(Ht=>{console.debug(`%c sdk${Ge} `,`background:${D};`,`sdk component: ${Ht.component}`,Ht.message)})).add(Re.log$.subscribe(Ht=>{console.debug(`%c ui${Ge} `,`background:${ve};`,`ui component: ${Ht.component}.`,Ht.message)}))},Oi=()=>{pt.unsubscribe()},Oo=(c,w)=>{j.log("start camera manual rotation",{mx:c,my:w}),N.startCameraManualRotation(c,w)},Hi=(c=!1)=>{j.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},ho=(c,w,D)=>{j.log("move camera focus px",{xpx:c,ypx:w,dt:D}),N.moveCameraFocusPX(c,w,D)},Ho=()=>{N.holdCamera()},At=()=>{N.releaseCamera()},bt=pr(N.info.position$.getValue(),c=>{let w,D,ve=()=>{let Ge=N.info.playbackState$.getValue(),kt=N.info.isLive$.getValue(),Ot=N.info.duration$.getValue(),Gt=N.info.position$.getValue();if(Ge&&[ui.PlaybackState.PLAYING,ui.PlaybackState.PAUSED].includes(Ge)){let Ht=kt?Gt-Ot:N.getExactTime();Ht!==D&&c(Ht),D=Ht}w=requestAnimationFrame(ve)};return ve(),()=>cancelAnimationFrame(w)}),Dt=ei(N.info.playbackState$),Z=ei(N.info.currentBuffer$),ri=ei(N.info.isEnded$),pi=ei(N.info.isLive$),Fi=J.features.playbackRate?ei(N.info.canChangePlaybackSpeed$):pr(!1),ti=ei(N.info.liveBufferTime$),fi=ei(N.info.volume$),bi=ei(N.info.muted$),Zi=Fc(N.info.predefinedQualityLimitType$.pipe((0,_t.map)(c=>c===ui.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.TRAFFIC_SAVING),Ui=Fc(N.info.predefinedQualityLimitType$.pipe((0,_t.map)(c=>c===ui.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.HIGH_QUALITY),Qt=ei(N.info.autoQualityLimitingAvailable$),mi=ei(N.info.availableQualities$),Tt=ei(N.info.availableQualitiesFps$),zt=ei(N.info.chromecastState$),si=ei(N.info.chromecastDeviceName$),_o=ei(N.info.currentFormat$),Yn=ei(N.info.throughputEstimation$),Po=ei(N.info.videoBitrate$),Ao=ei(N.info.intrinsicVideoSize$),ci=ei(N.info.duration$),xt=ei(N.info.isAudioAvailable$),Ti=null,Li=N.info.isBuffering$,zi=pr(Li.getValue(),c=>{let w=Li.subscribe(D=>{D&&Ti===null?Ti=window.setTimeout(()=>{c(Li.getValue()),Ti=null},J.loaderDelay):c(D)});return()=>{w.unsubscribe(),Ti&&clearTimeout(Ti)}}),Sn=()=>{Ti&&clearTimeout(Ti),Ti=null},ki=_i([ci,pi],([c,w])=>w?-c:c),io=_i([Dt],([c])=>c===ui.PlaybackState.PLAYING),dn=ei(N.info.atLiveEdge$),Cn=ei(N.info.atLiveDurationEdge$),Vi=ei(N.info.position$),jn=_i([Vi,ci],([c,w])=>isFinite(c)&&isFinite(w)&&!!w),cn=_i([zt],([c])=>c===ui.ChromecastState.CONNECTED),Mo=ei(N.info.availableVideoStreams$),Tn=J.features.audioLanguages?ei(N.info.availableAudioStreams$):pr([]),Vr=ei(N.info.currentVideoStream$),mr=ei(N.info.currentAudioStream$),Zn=c=>{c.language&&Yp(c.language),N.setVideoStream(c)},kn=c=>{c.language&&Yp(c.language),N.setAudioStream(c)},un=c=>{let w;if(c.length===1&&(w=c.at(0)),w!=null||(w=c.find(ve=>"isDefault"in ve&&ve.isDefault)),w)return w;let D=Mh();return D&&(w=c.find(({language:ve})=>D===ve)),w!=null||(w=c.at(0)),w},In=!1;Xe.add(N.info.availableAudioStreams$.subscribe(c=>{if(!In&&c.length){let w=un(c);w&&(N.setAudioStream(w),In=!0)}}));let bo=!1;Xe.add(N.info.availableVideoStreams$.subscribe(c=>{if(!bo&&c.length){let w=un(c);w&&(N.setVideoStream(w),bo=!0)}}));let it=ce(void 0),pn=ei(N.info.isAutoQualityEnabled$,c=>c&&it.set(void 0)),Xn=ei(N.info.currentQuality$,()=>it.set(void 0)),Jn=_i([it,Xn],([c,w])=>c!=null?c:w),En=_i(_o,c=>c!==ui.VideoFormat.MPEG),fn=_i([mi,Tt,pn,Jn,En],([c,w,D,ve,Ge])=>{let kt=[];Ge&&kt.push({value:"auto",displayValue:Be("auto_quality_option"),selected:D});let Ot=c.filter(Gt=>!(0,_t.isInvariantQuality)(Gt));for(let Gt of Ot){let Ht=w[Gt];kt.push({value:Gt,displayValue:`${Gt}${Ht?_1(Ht):""}`,selected:D?!1:Gt===ve})}return kt}),mn=ei(N.info.currentPlaybackRate$),Ko=_i([mn,dn,Cn],([c,w,D])=>{let ve=D||C?1:J.controls.playbackRateMin,Ge=w?1:J.controls.playbackRateMax,kt=J.controls.playbackRateStep,Ot=[];for(let Gt=ve;Gt<=Ge;Gt+=kt)Ot.push({value:Gt,displayValue:Gt===1?Be("playback_rate_1"):Be("playback_rate",{multiplier:Gt.toString(10)}),selected:c===Gt});return Ot}),Xi={displayValue:Be("subtitles_off"),value:"off"},Ji=ce(W({},Xi)),er=J.features.subtitles?ei(N.info.availableTextTracks$):pr([]),Pn=wh(),tr=_i([er,Ji],([c,w],D)=>{var kt;let ve=[],Ge=c.find(({id:Ot})=>Ot===w.value);if(Ge!=null&&Ge.url){let[,Ot]=(kt=Pn.find(Ge.url))!=null?kt:[];if(Ot){D(Ot);return}st.download(Ge.url).then(Gt=>{if(!Gt||st.isDestroyed())return;let Ht=new b1,gs=Ge.language;if(gs){let m0=!!Ge.isAuto,v0=Ht.parse(Gt,gs);ve.push({lang:gs,subtitles:v0,isAuto:m0,id:Ge.id})}Pn.add(Ge.url,ve),we(Ji).value===w.value&&D(ve)}).catch(Gt=>{var Ht;(Ht=ue==null?void 0:ue.oneStat)==null||Ht.logError({errorType:"Subtitles download",fatal:!1}),ke==null||ke.report(Gt,{errorType:"Subtitles download",fatal:!1})})}D(ve)}),vr=_i([mn,io,Ji],([c,w,D],ve)=>{let Ot;if(N.info.isLive$.getValue()&&w&&D.value!==Xi.value){let Ht=()=>{let gs=1e3/(3*c);Ot=setTimeout(Ht,gs),ve(Date.now())};return Ht(),()=>clearTimeout(Ot)}}),oo=_i([er,Ji],([c,w])=>{if(!c.length)return[];let D=[];for(let{language:ve,isAuto:Ge,id:kt}of c){let Ot=ve&&uu(ve);ve&&Ot&&D.push({displayValue:Ge?Be("subtitles_auto",{language:Ot}):Ot,value:kt,selected:(w==null?void 0:w.value)===kt,isAuto:Ge})}return D.length?(D.unshift(Rt(W({},Xi),{selected:(w==null?void 0:w.value)===Xi.value})),D):[]}),no={available:[],prev:[]},An=()=>{var w,D;let c=N.experimental.getCurrentTime$.getValue();return(D=(w=c==null?void 0:c())!=null?w:Ie==null?void 0:Ie.currentTime)!=null?D:0},Mn=_i([bt,Ji,tr,vr],([c,w,D,ve])=>{var kt;let Ge=N.info.isLive$.getValue();if(Ge&&no.prev!==D){let Ot=D.find(({id:Ht})=>Ht===w.value),Gt=no.prev.find(({id:Ht})=>Ht===w.value);if(Ot){let Ht=Rt(W({},Ot),{subtitles:[...(kt=Gt==null?void 0:Gt.subtitles)!=null?kt:[],...Ot.subtitles]});no.available=[Ht],no.prev=D}}if(w&&w.value!==Xi.value){let Ot=Ge?An():c,Gt=Ge?no.available:D;return x1(Ot,w,Gt,Ge)}}),$o=_i([Mn],([c])=>c!=null&&c.texts?c.texts:[]),ro=ce(!0),Ln=_i([Z,ki,Vi,ti],([c,w,D,ve])=>{var Gt;let Ge=(Gt=c==null?void 0:c.end)!=null?Gt:0;if(!ve)return Ge/w;let Ot=-D+ve-w;return(Ge-Ot)/w}),Fo=ei(N.info.availableSources$),Rr=_i([Fo],([c])=>Object.keys((c==null?void 0:c[ui.VideoFormat.MPEG])||{}).length>0),ir=()=>{var D,ve,Ge;let c=Object.keys(((ve=(D=N.info.availableSources$)==null?void 0:D.getValue())==null?void 0:ve[ui.VideoFormat.MPEG])||{}),w=(0,_t.getHighestQuality)(c)||_t.VideoQuality.Q_144P;return(Ge=de.sources[ui.VideoFormat.MPEG])==null?void 0:Ge[w]},gr=()=>{var w;let c=ir();if(c)j.log("download video",{url:c}),$h(c,((w=de==null?void 0:de.meta)==null?void 0:w.title)||"video");else{let D="There is no URL for download video";j.log("download video",{message:D}),B({message:D})}},Vn=()=>{B({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Qo(rr()):ii(!c)},Rn=()=>{var c;if(mt.ui.settingsMenu.visible$.set(!1),!we(mt.ui.settingsSubMenu.visible$)){let w=we(mt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&w){let ve=ml(w),Ge={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ve,position:Ge,name:"settings"})}}j.log("close settings menu")},Dr=(c,w=()=>Promise.resolve())=>It(void 0,null,function*(){var Ge;mt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),mt.ui.settingsMenu.visible$.set(!0),yield w();let D=we(mt.ui.settingsMenu.ref$),ve=Pa();if((Ge=l==null?void 0:l.uiInfo)!=null&&Ge.onSettingsMenu&&D&&ve){let Ot=ml(D),Gt=fl(D,ve);l.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:Gt,name:"settings"})}j.log("open settings menu",{wasOpenedByKeyboard:c})}),or=(c,w=!1)=>{var kt;mt.ui.settingsSubMenu.visible$.set(!1);let D=we(mt.ui.settingsMenu.ref$),ve=Pa(),Ge=we(mt.ui.settingsMenu.visible$);if((kt=l==null?void 0:l.uiInfo)!=null&&kt.onSettingsMenu&&D&&ve)if(Ge&&!w){let Gt=ml(D),Ht=fl(D,ve);l.uiInfo.onSettingsMenu({visible:!0,size:Gt,position:Ht,name:"settings"})}else{let Gt=ml(c),Ht={top:0,left:0,bottom:0,right:0},gs=we(mt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Gt,position:Ht,name:gs})}j.log("close settings sub menu")},nr=(c,w)=>{var ve;mt.ui.settingsSubMenu.visible$.set(!0),mt.ui.settingsSubMenu.ref$.set(w),mt.ui.settingsSubMenu.name$.set(c);let D=Pa();if((ve=l==null?void 0:l.uiInfo)!=null&&ve.onSettingsMenu&&w&&D){let kt=ml(w),Ot=fl(w,D);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:kt,position:Ot})}j.log("open settings sub menu",{name:c})},rr=()=>{var w;let c=Math.max(J.volumeMinRestore,(w=Uc())!=null?w:0);return c===0?J.volumeDefault:c},Qo=c=>{let w=c===0?rr():c,D=N.info.muted$.getValue();B({message:`set volume, volume: ${c}, preferredVolume: ${w}`}),D&&c>0&&!s&&(D=!1,Qp(!1)),N.setVolume(c,D),re.setVolume(c),Up(w)},ii=c=>{let w=N.info.volume$.getValue();if(B({message:`set muted, currentVolume: ${w}, mute: ${c}`}),N.setMuted(c),re.setVolume(c?0:w),Qp(c),!c&&w===0){let D=rr();N.setVolume(D),Up(D),re.setVolume(D)}},Nr=ce(!1),hr=c=>{j.log("set looped",{isLooped:c}),Nr.set(c),N.setLooped(c)};hr(ee);let Br=()=>{var c,w;(w=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||w.call(c)},je=(c,w=!1)=>{var D;B({message:`set autoplayNextEnabled, value: ${c}`}),j.log("set autoplay next enabled",{autoplayNextEnabled:c}),mt.ui.autoplayNextEnabled$.set(c),Rh(c),w&&((D=l==null?void 0:l.onSetAutoplayNextEnabled)==null||D.call(l,c))},Mt=c=>{B({message:`set timerNextVideoRunning, value: ${c}`}),j.log("set timer next video running",{timerNextVideoRunning:c}),mt.ui.timerNextVideoRunning$.set(c)},Ii=(c=!0)=>{var ve;let w=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{w=(ve=l==null?void 0:l.onPrevVideoClick)==null?void 0:ve.call(l)}catch(Ge){B({message:"onPrevVideoClick callback failed to execute"})}if(!w)return;c&&so("prev")||X()},eo=(c=!0)=>{var ve;let w=!0;if(c&&(l!=null&&l.onNextVideoClick))try{w=(ve=l==null?void 0:l.onNextVideoClick)==null?void 0:ve.call(l)}catch(Ge){B({message:"onNextVideoClick callback failed to execute"})}if(!w)return;c&&so("next")||oe()},so=c=>{let{isMobile:w,features:{playbackStatusNextVideoShow:D,playbackStatusShow:ve}}=J;return D&&ve&&!w?(mt.ui.aboutToGoNextVideo.set(c),mt.ui.userActionsDisabled.set(!0),!0):!1},Lo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},yo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Uo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},qi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Ri=()=>{N.prepare()},ot=()=>{(0,_t.assertNonNullable)(mt);let c=we(mt.ui.controls.disabledControls$),w=we(mt.playerPhase),D={playerPhase:w,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(B({message:"toggle play"}),w==="ads"){D.action="play",j.log("toggle adman play",D),re.togglePlay();return}let ve=()=>{var kt;B({message:"toggle play, call player.play"}),D.action="play",N.play(),(kt=l==null?void 0:l.onPlay)==null||kt.call(l)},Ge=()=>{var kt;B({message:"toggle play, call player.pause"}),D.action="pause",N.pause(),(kt=l==null?void 0:l.onPause)==null||kt.call(l)};if(N.info.isEnded$.getValue()){if(B({message:"toggle play, video ended, seek to 0"}),Kt.next(),Ye.next(jr.SeekAction.REWIND),C){P==null||P();return}N.seekTime(0),ve()}else N.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING?ve():Ge();j.log("toggle play",D)},jt=(c,{changeReason:w="default",appliesTo:D="to-video"}={})=>{B({message:`set quality, quality: ${c}`}),j.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(J.features.qualityDetailsSubMenuEnabled?(zc({type:"exact_quality",quality:c,videoId:i},D),ad(),N.setPredefinedQualityLimits(ui.PredefinedQualityLimits.UNKNOWN)):zp(i,c),it.set(c),N.setQuality(c)):J.features.qualityDetailsSubMenuEnabled?w==="default"&&(Vo("auto_quality",D),we(Zi)&&to(!1),we(Ui)&&xi(!1)):ad()},to=(c,w="as-default")=>{B({message:`set trafficSavingEnabled, value: ${c}`}),j.log("set traffic saving enabled",{trafficSavingEnabled:c});let D=c?ui.PredefinedQualityLimits.TRAFFIC_SAVING:ui.PredefinedQualityLimits.UNKNOWN;J.features.qualityDetailsSubMenuEnabled?($i(D,w),sd(!1)):(N.setPredefinedQualityLimits(D),sd(c))},xi=(c,w="as-default")=>{B({message:`set highQualityEnabled, value: ${c}`}),j.log("set high quality enabled",{highQualityEnabled:c}),$i(c?ui.PredefinedQualityLimits.HIGH_QUALITY:ui.PredefinedQualityLimits.UNKNOWN,w)},$i=(c,w)=>{c!==ui.PredefinedQualityLimits.UNKNOWN&&(we(Qt)&&!we(pn)&&jt("auto",{appliesTo:w,changeReason:"limit-changed"}),Vo(c,w)),N.setPredefinedQualityLimits(c)},Vo=(c,w)=>{zc({type:c,videoId:i},w),w==="as-default"&&zc({type:c,videoId:i},"to-video")},xo=c=>{j.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),J.features.saveRate&&le&&!N.info.isLive$.getValue()&&Lh(c)},Dn=()=>{let c=we(Ko),w=c.findIndex(({selected:ve})=>ve);if(w===c.length-1)return;let D=c[w+1];xo(D.value)},ao=()=>{let c=we(Ko),w=c.findIndex(({selected:ve})=>ve);if(w===0)return;let D=c[w-1];xo(D.value)},vn=(c=Rt(W({},Xi),{selected:!1}))=>{j.log("set subtitles",W({},c)),c&&c.value!==Xi.value&>.next(c.isAuto?c.value+"_auto":c.value),Ji.set(c)},Nn=()=>{j.log("toggle subtitles");let c=we(oo),w=we(Ji),D=we(Yt);if((w==null?void 0:w.value)===Xi.value){let ve=c.filter(Ge=>Ge.value!==Xi.value).find(Ge=>Ge.value===D)||c[1];vn(ve)}else vn()},Ro=(c,w,D=!0)=>{var ve;if(B({message:`seek to time, time: ${c}`}),j.log("seek to time",{time:c,action:w,forcePrecise:D}),Ye.next(w),N.info.isLive$.getValue()){let Ge=N.info.duration$.getValue(),kt=Math.min(0,Ge+c);N.seekTime(kt,D)}else{if(E!=null&&E.getValue())return;N.info.isEnded$.getValue()&&(B({message:"seek after ended, call callbacks.onPlay"}),(ve=l==null?void 0:l.onPlay)==null||ve.call(l)),N.seekTime(Ue(c),D)}},_r=c=>{B({message:`seek to episode start time: ${c}`}),j.log("seek to episode start time",{time:c}),Ro(c,jr.SeekAction.EPISODE,!0)},br=(c,w)=>{B({message:`seek to percent, percent: ${c}`}),j.log("seek to percent",{percent:c,action:w});let D=we(ki)*c;Ro(D,w,!1)},Or=c=>{B({message:`seek external, time: ${c}`}),j.log("seek external",{time:c}),Ye.next(jr.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},$r=c=>{var ve,Ge;let w=(ve=c.max)!=null?ve:"none",D=(Ge=c.min)!=null?Ge:"none";B({message:`set auto quality limitation. Max: ${w}. Min: ${D}`}),j.log("set auto quality limits",{max:w,min:D}),N.setAutoQualityLimits(c)},Hr=c=>{B({message:`seek external to episode start time: ${c}`}),j.log("seek external to episode start time",{time:c}),Ro(c,jr.SeekAction.EPISODE,!0)},Go=c=>{B({message:`set playback rate to: ${c}`}),j.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Bn=ce(void 0),sr=ce(!1),Fr=c=>{B({message:`start scrubbing, progress: ${c}`}),j.log("start scrubbing",{progress:c}),sr.set(!0),Yo(c)},Yo=c=>{Bn.set(c)},On,Je,Nt=()=>{Bn.set(void 0),sr.set(!1)},Ei=()=>{clearTimeout(Je),clearTimeout(On),On=window.setTimeout(()=>{Nt()},500),Ie==null||Ie.removeEventListener("seeked",Ei)},jo=c=>{B({message:`complete scrubbing, progress: ${c}`}),j.log("complete scrubbing",{progress:c}),br(c,jr.SeekAction.SLIDER),we(mt.ui.isMobile)&&we(mt.state.currentFormat$)===ui.VideoFormat.HLS?(Ie==null||Ie.addEventListener("seeked",Ei),Je=window.setTimeout(()=>{Ei()},300)):Nt()},Hn=_i([bt,ki,Bn],([c,w,D],ve)=>{ve((0,_t.isNonNullable)(D)?D*w:c)}),gn=ce(!1),yr=()=>{gn.set(!0)},Ce=()=>{gn.set(!1)},dt=ce({width:0,height:0}),Lt=_i([dt],([{width:c}],w)=>{let D=c1(c);w(D)}),ai=ce(!1),Wi=F.filter(c=>yh(c)),Di=_i([Lt,ai],([c,w])=>w?Wi.filter(D=>!D.hideOnMobile):Wi.filter(D=>{var ve;return!((ve=D.hideOnDesktopGridTypes)!=null&&ve.includes(c))})),Zt=ce(F.filter(c=>xh(c))),ar=_i([Zt,Lt],([c,w])=>c.filter(D=>{var ve;return!((ve=D.hideOnDesktopGridTypes)!=null&&ve.includes(w))})),Qe=_i([ar,Di],([c,w])=>[...J.features.additionalButtonsDesktopControlPanelRight?c.filter(D=>D.type==="desktop-control-panel-right"):[],...J.features.additionalButtons?w.map((D,ve)=>{var Ge;return{id:ve,weight:ve,type:"desktop-control-panel-right",testId:D.testId,icon:D.iconUrl,onClick:D.onClick,ariaLabel:(Ge=D.ariaLabel)!=null?Ge:D.tooltip,tooltipText:D.tooltip}}):[]]),Bt=ce(Y),yi=_i([Bt],([c])=>J.features.additionalSettingsMenuItems?c.map(w=>w.type==="SWITCH"?Rt(W({},w),{onClick:w.onChangeEnabled}):w):[]),Do=(c,w)=>{let D=we(Zt).map(ve=>ve.id!==c?ve:W(W({},ve),w));Zt.set(D)},hn=c=>{let w=we(Zt);if(w.some(D=>D.id===c.id)){B({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),Zt.set(w)},Zr=c=>{let w=we(Zt);if(!w.some(D=>D.id===c)){B({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}w=w.filter(D=>D.id!==c),Zt.set(w)},Fn=c=>{Ye.next(jr.SeekAction.LIVE),B({message:"live switch to low latency "+c}),j.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Ur=(c,w)=>{let D=we(Bt).map(ve=>ve.id!==c?ve:W(W({},ve),w));Bt.set(D)},Tl=c=>{let w=we(Bt);if(w.some(D=>D.id===c.id)){B({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),Bt.set(w)},Ns=c=>{let w=we(Bt);if(!w.some(D=>D.id===c)){B({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}w=w.filter(D=>D.id!==c),Bt.set(w)},xr=ce(H),Ia=_i([xr],([c])=>J.features.additionalContextMenuItems?c:[]),Ea=(c,w)=>{let D=we(xr).map(ve=>ve.id!==c?ve:W(W({},ve),w));xr.set(D)},Bs=c=>{let w=we(xr);if(w.some(D=>D.id===c.id)){B({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),xr.set(w)},$t=c=>{let w=we(xr);if(!w.some(D=>D.id===c)){B({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}w=w.filter(D=>D.id!==c),xr.set(w)},ht=_i([ai,lt],([c,w],D)=>{D(c&&w)}),lo=()=>{Ye.next(jr.SeekAction.LIVE),B({message:"switch to active live"}),j.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING&&mt.actions.internal.togglePlay()},zo=()=>{j.log("skip adman"),re.skip()},co=(c=!0)=>{(0,_t.assertNonNullable)(mt),B({message:`switch from ads to video, callPlay: ${c}`}),j.log("switch from ads to video",{callPlay:c}),se.set("video"),c&&N.play()},di=()=>{(0,_t.assertNonNullable)(mt),B({message:"switch from video to ads"}),j.log("switch from video to ads"),mt.actions.internal.pause(),ni(),se.set("ads")},Ni=c=>{(0,_t.assertNonNullable)(mt);let w=c?"LiveWaitingStart":"thumb";j.log("set live waiting start",{state:c,playerPhase:w}),se.set(w)},vs=c=>{(0,_t.assertNonNullable)(mt);let w=c?"LiveWaitingRecover":"thumb";j.log("set live waiting recover",{state:c,playerPhase:w}),se.set(w)},kl=c=>{(0,_t.assertNonNullable)(mt);let w=c?"LiveWaitingRecord":"thumb";j.log("set live waiting record",{state:c,playerPhase:w}),se.set(w)},rc=()=>((0,_t.assertNonNullable)(mt),j.log("get debug text data"),_h(N,de,mt)),Nu=()=>((0,_t.assertNonNullable)(mt),JSON.stringify(Ve.getFinishedSpans())),sc=()=>((0,_t.assertNonNullable)(mt),bh(N,de,mt)),Pa=()=>Ie,ac=()=>{B({message:"toggle chromecast"}),j.log("toggle chromecast"),N.toggleChromecast()},lc=c=>{var D;if((0,_t.assertNonNullable)(mt),N.info.isEnded$.getValue())return;let w=!c;if(we(mt.playerPhase)==="ads"){B({message:`pause ads, internalCall: ${w}`}),j.log("pause ads",{internalCall:w}),re.pause();return}B({message:`pause video, internalCall: ${w}`}),j.log("pause video",{internalCall:w}),w&&((D=l==null?void 0:l.onPause)==null||D.call(l)),N.pause()},Il=c=>{var D;(0,_t.assertNonNullable)(mt);let w=!c;if(we(mt.playerPhase)==="ads"){B({message:`play ads, internalCall: ${w}`}),j.log("play ads",{internalCall:w}),re.play();return}B({message:`play video, internalCall: ${w}`}),j.log("play video",{internalCall:w}),w&&((D=l==null?void 0:l.onPlay)==null||D.call(l)),N.play()},Bu=c=>{(0,_t.assertNonNullable)(mt);let w=!c;if(we(mt.playerPhase)==="ads"){B({message:"player cannot be stopped during ads via external method"});return}B({message:`player will be stopped, internalCall: ${w}`}),A==null||A()},El=(c,w)=>{(0,_t.assertNonNullable)(mt),B({message:`first start, show ads: ${c}, internalCall: ${!w}`}),j.log("first start",{showAds:c,external:w}),c?se.set("ads"):(se.set("video"),w?N.play():mt.actions.internal.togglePlay())},Aa=()=>(B({message:"getting time codes"}),f),Pl=()=>{let c=Aa();if(!c||[0,1].includes(c.length))return;let w=N.info.position$.getValue();return c.find(D=>D.time>w)},dc=c=>{let w=c;w||(w=Pl());let D=N.info.position$.getValue();j.log("seek to next episode",W({currentTime:D},w)),w&&(B({message:"seek to next episode"}),Ro(w.time,jr.SeekAction.EPISODE,!0))},cc=()=>{let c=Aa();if(!c||[0,1].includes(c.length))return;let w=N.info.position$.getValue(),D=c.findIndex(Ge=>Ge.time>w),ve=D===-1?c.length-2:D-2;if(!(ve<0))return c[ve]},uc=c=>{let w=c;w||(w=cc());let D=N.info.position$.getValue();j.log("seek to prev episode",W({currentTime:D},w)),w&&(B({message:"seek to prev episode"}),Ro(w.time,jr.SeekAction.EPISODE,!0))},Ou=()=>(B({message:"getting preview thumbs data"}),j.log("get preview thumbs data",W({},_)),_),pc=()=>It(void 0,null,function*(){let c=Ne==null?void 0:Ne.isActive(),w="none";Ne!=null&&Ne.isActive()?(w="remove",yield Ne==null?void 0:Ne.remove()):(w="request",yield Ne==null?void 0:Ne.request()),j.log("toggle picture in picture",{isActive:c,action:w})}),Hu=(c=-90)=>{j.log("rotate video",{alphaDiff:c}),at.update(w=>w+c)},Ma=ce([]);k==null||k.subscribe(c=>{let w=[];for(let D=0;D<c.length;D++){let{range:[ve,Ge],subjects:kt}=c[D];D===0&&ve!==0&&w.push({time:0,text:"",interactive:!1,completed:!0}),w.push({time:ve/1e3,text:"",interactive:!0,completed:J.features.interactiveTimeOpenUri?!kt.length||kt.every(Ot=>Ot.isRemoved):!kt.length}),Ge!==1/0&&w.push({time:Ge/1e3,text:"",interactive:!1,completed:!0})}Ma.set(w)});let Fu=ce(!1);E==null||E.subscribe(c=>{c&&we(sr)&&Nt()});let Ue=c=>{if(!C)return c;let w=we(Ma),D=we(ki),Ge=we(Vi)/D,kt=w.find(Ot=>Ot.interactive&&!Ot.completed&&Ot.time>Ge);return typeof(kt==null?void 0:kt.time)=="number"?Math.min(c,kt.time-.05):c},Jt=()=>{mt.ui.episodes.panelOpened$.set(!1)},wo=()=>{j.log("destroy store"),clearTimeout(Je),clearTimeout(On),Xe.unsubscribe(),pt.unsubscribe(),N.destroy(),re.destroy(),ue==null||ue.destroy(),ke==null||ke.destroy(),Ut.unsubscribe(),tt==null||tt.disconnect(),tt=null,st.destroy()},mt={interfaceLanguage$:Yt,isCyrillicRelatedInterface$:Xt,initVideo:Pe,videoId:i,isClip:o,playerPhase:Q,vsid:xe,state:{positionExact$:bt,positionWithScrubbing$:Hn,duration$:ki,playbackState$:Dt,isPlaying$:io,isLoaderVisible:zi,bufferedProgress$:Ln,isLive$:pi,canChangePlaybackSpeed$:Fi,isActiveLive$:dn,isOldestAvailableLive$:Cn,isRewindableLive$:jn,isEnded$:ri,muted$:bi,volume$:fi,trafficSavingEnabled$:Zi,highQualityEnabled$:Ui,autoQualityLimitingAvailable$:Qt,availableVideoStreams$:Mo,availableAudioStreams$:Tn,videoStream$:Vr,audioStream$:mr,currentQuality$:Jn,isAutoQualityEnabled$:pn,availableQualities$:fn,currentPlaybackRate$:mn,availablePlaybackRates$:Ko,currentSubtitle$:Ji,availableTextTracks$:er,availableSubtitlesList$:oo,currentSubtitleCaptions$:$o,isAutoSubtitleCaptionVisible$:ro,chromecastState$:zt,chromecastDeviceName$:si,chromecastConnected$:cn,currentFormat$:_o,throughputEstimation$:Yn,videoBitrate$:Po,videoSize$:Ao,errorLog$:ft,crashed$:lt,isAudioAvailable$:xt,isAudioDisabled:!!s,canDownload:J.features.download&&!!d,availableSources$:Fo,hasMpegSources$:Rr,isInteractive:C,showInteractiveGraph:J.features.interactiveGraph,showSeekToInteractive:J.features.seekToInteractive,showPlayPrevChapter:J.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:J.features.interactiveTimeIndicator&&!!we(Ma).length,interactiveEpisodes$:Ma,isInteractiveTime$:E?ei(E):ce(!1),isInteractiveExpectation$:Fu,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:R,looped$:Nr,loadedMetadata$:ce(!1),isAutoQualityAvailable$:En},ui:{t:Be,controlsVisible:ce(!1),touched:ce(!1),controls:{prevButton:ce(void 0),playButton:ce(void 0),replayButton:ce(void 0),nextButton:ce(void 0),playPrevChapterButton:ce(void 0),seekToInteractiveButton:ce(void 0),interactiveGraphButton:ce(void 0),liveButton:ce(void 0),time:ce(void 0),episodes:ce(void 0),volume:ce(void 0),subtitles:ce(void 0),settings:ce(void 0),context:ce(void 0),chromecast:ce(void 0),pip:ce(void 0),fullscreen:ce(void 0),vkLogo:ce(void 0),interactiveTimeIndicator:ce(void 0),timeline:ce(void 0),autoplayNextToggle:ce(void 0),additionalButtons:F.length?F.reduce(c=>[...c,ce(void 0)],[]):[],disabledControls$:ae},modals:{hotKeyMap:{show:ce(!1),data:ce({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ye,isFullscreenOpenedByKeyboard:De,rotateAlpha:at,isAutoplay:ce(!1),debugPanelVisible:ce(!1),episodes:{panelOpened$:ce(!1),openedByKeyboard$:ce(!1)},contextMenu:{visible$:ce(!1),btnRef$:ce(void 0),openedByBtnKeyboard$:ce(!1),openedByHotKey$:ce(!1),lastActiveElem$:ce(void 0),showContextMenuBtn$:ce(!1),position$:ce({top:0,left:0})},playerSize:dt,isMobile:ai,mobileNotReportControlHidden$:ht,mobileUnmuteButtonExpanded:ce(!1),mobileUnmuteButtonVisible:ce(!1),icon3DVideoVisible:ce(!1),scrubbingInProgress:sr,volumeChangingInProgress:gn,is3DVideo:ce(!1),currentGridType$:Lt,additionalButtonsDeprecated$:Di,additionalDesktopControlPanelRightButtons$:Qe,additionalSettingsMenuItems$:yi,additionalContextMenuItems$:Ia,interactiveHideMobileControls:ce(!1),overlayContainer$:ce(void 0),startedByKeyboard$:ce(!1),autoplayNextEnabled$:ce(!1),timerNextVideoRunning$:ce(!0),settingsMenu:{visible$:ce(!1),ref$:ce(void 0),openedByBtnKeyboard$:ce(!1)},settingsSubMenu:{visible$:ce(!1),ref$:ce(void 0),name$:ce(void 0)},aboutToGoNextVideo:ce(void 0),userActionsDisabled:ce(!1)},ads:{position:ce(0),duration:ce(0),playbackState:ce("inactive"),canSkip:ce(!1),secondsToWatchBeforeSkip:ce(0),postrollPassed:ce(!1)},webApi:{pictureInPictureApi:Ne,annotationsApi:fe},actions:{internal:{preload:Ri,firstStart:c=>El(c,!1),play:()=>Il(!1),pause:()=>lc(!1),togglePlay:ot,toggleMuted:Vn,openSettingsMenu:Dr,closeSettingsMenu:Rn,openSettingsSubMenu:nr,closeSettingsSubMenu:or,setVolume:Qo,startVolumeChanging:yr,stopVolumeChanging:Ce,setVideoStream:Zn,setAudioStream:kn,setQuality:jt,setTrafficSavingEnabled:to,setHighQualityEnabled:xi,setPlaybackRate:xo,incrementPlaybackRate:Dn,decrementPlaybackRate:ao,setSubtitle:vn,toggleSubtitle:Nn,togglePictureInPicture:pc,startScrubbing:Fr,progressScrubbing:Yo,completeScrubbing:jo,toggleChromecast:ac,switchToActiveLive:lo,switchFromAdsToVideo:co,switchFromVideoToAds:di,skipAd:zo,setLiveWaitingStart:Ni,setLiveWaitingRecover:vs,setLiveWaitingRecord:kl,getDebugTextData:rc,getTraceTextData:Nu,getDebugPanelData:sc,getVideoElement:Pa,seekTime:(c,w,D)=>Ro(c,w,D),clearDelayedBufferingCheckTimeout:Sn,seekEpisodeStartTime:_r,seekToPercent:br,getNextEpisode:Pl,seekToNextEpisode:dc,getPrevEpisode:cc,seekToPrevEpisode:uc,startLogging:li,stopLogging:Oi,startCameraManualRotation:Oo,stopCameraManualRotation:Hi,moveCameraFocusPX:ho,holdCamera:Ho,releaseCamera:At,getVideoEpisodes:Aa,getPreviewThumbsData:Ou,downloadVideo:gr,addLanguage:jp,setLanguage:wt,nextMovie:ut,videoRotate:Hu,correctSeekTimeToInteractive:Ue,replayInteractive:P,setLooped:hr,reportProblem:Br,setAutoplayNextEnabled:je,setTimerNextVideoRunning:Mt,prevVideoClick:Ii,nextVideoClick:eo,nextVideoAnnouncementShow:Lo,nextVideoAnnouncementClick:yo,nextVideoAnnouncementAuto:Uo,nextVideoAnnouncementCancel:qi},external:{firstStart:c=>El(c,!0),play:()=>Il(!0),pause:()=>lc(!0),stop:()=>Bu(!0),seekTime:c=>Or(c),seekEpisodeStartTime:c=>Hr(c),setPlaybackRate:c=>Go(c),setAutoQualityLimits:c=>$r(c),setMuted:ii,setVolume:Qo,returnFocusToEpisodes:Jt,updateAdditionalSettingsItem:Ur,addAdditionalSettingsItem:Tl,removeAdditionalSettingsItem:Ns,updateAdditionalContextItem:Ea,addAdditionalContextItem:Bs,removeAdditionalContextItem:$t,updateAdditionalButton:Do,addAdditionalButton:hn,removeAdditionalButton:Zr,setLiveLowLatency:Fn}},callbacks:l,setUiCallbacks:c=>{Ke=W({},c)},getAdmanWrapper:()=>re,getLogger:()=>Re,getPlayer:()=>N,destroy:wo};return mt};function _a(t,e,i,o){var _;let n=["interactiveTimeIndicator"],a=(_=e[i])==null?void 0:_.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:u,right:f}=fl(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?d:0,bottom:s?u:0,isDisplayed:s}}var vl=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(_a(t,i,n,o))};var fu=(t,e,i)=>It(void 0,null,function*(){yield ko(),e&&i&&(i.focus(),t.set(!1))});var A2=$e('<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 Gf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=A2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 Yf(t,e){z(e,!0);let[i,o]=Oe(),n=()=>S(l,"$contextMenuVisible$",i),a=m(e,"disabled",3,!1),s=m(e,"ariaLabel",3,""),d=Se(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,b=ie(void 0);qe(()=>{r(b)&&yt(()=>{p.set(r(b))})});let x=E=>{let P=Is(E),A=e1(r(b));_.set(A),u.set(P),l.set(!n())},y=()=>{f.set(!0)},C=()=>{f.set(!1)},k=v(()=>n()?"opened":"");Vt(t,{get className(){return r(k)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:x,focus:y,blur:C,get ariaExpanded(){return n()},get ref(){return r(b)},set ref(E){O(b,me(E))},children:(E,P)=>{Gf(E,{})},$$slots:{default:!0}}),q(),o()}var M2=t=>{t.stopPropagation()},L2=L("<div><!> <div></div> <div></div></div>"),V2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
|
|
230
230
|
|
|
231
231
|
@media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
|
|
232
232
|
}
|
|
@@ -251,8 +251,8 @@ Try switching the\xA0quality to\xA0Auto.`},Nh=L_;var as=new Map;as.set(Xa.Interf
|
|
|
251
251
|
opacity: 0;
|
|
252
252
|
}
|
|
253
253
|
}.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
|
|
254
|
-
animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Td(t,e){var B;q(e,!0),G(t,P2);let[i,o]=Fe(),n=()=>C(S,"$isMobile",i),a=()=>C(E,"$areControlsVisible",i),s=()=>C(V,"$currentGridType$",i),d=()=>C(P,"$isInteractiveTime$",i),l=()=>C(y,"$interactiveControlsOpacity$",i),u=()=>C(A,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(k,"$isFullscreen",i),_=v(e,"ref",15,void 0),p=te(void 0),$=Ce(),w=fo(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,k=$.ui.isFullscreen,P=$.state.isInteractiveTime$,A=w.showInteractiveTimeIndicatorTooltip$,E=$.ui.controlsVisible,T=(B=$.callbacks)==null?void 0:B.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,z=m(()=>!n()&&a()),j=m(()=>Ps(s(),"s")),F=m(()=>!d()||!!l()||r(z)),Z=te(!1);We(()=>{O(Z,ve(r(F)))});let J=()=>{O(Z,!0)},ne=()=>{var ce;fe(),(ce=r(p))==null||ce.addEventListener("animationiteration",J,{once:!0})},fe=()=>{var ce;O(Z,!1),(ce=r(p))==null||ce.removeEventListener("animationiteration",J)},de=ce=>{A.set(ce)},Re=m(()=>u()&&!r(F));We(()=>{u()?ne():fe()});let Me=()=>{r(F)||(A.set(!0),T==null||T())};Sn(()=>{A.clearTimeout(),fe()});let ee=()=>{A.set(!1)},Le=H("tooltip_interactive_interaction_time_indicator");var X=E2();let N;X.__mousemove=[I2],X.__click=Me;var De=h(X);Bo(De,{tooltipContent:Le,get tooltipActive(){return r(Re)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:de,get ref(){return _()},set ref(ce){_(ce)},children:(ce,Pe)=>{gd(ce,{completed:!0})},$$slots:{default:!0}});var re=M(De,2);let Ee;ut(re,ce=>_(ce),()=>_());var Ne=M(re,2);let me;ut(Ne,ce=>O(p,ce),()=>r(p)),g(X),I((ce,Pe,Ye)=>{N=ie(X,1,"interactive-episode-icon-animated svelte-od3veb",null,N,ce),Ee=ie(re,1,"ref-block svelte-od3veb",null,Ee,Pe),me=ie(Ne,1,"pulse svelte-od3veb",null,me,Ye)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(j)}),()=>({hidden:r(F)}),()=>({paused:r(Z)})]),Pt("mouseleave",X,ee),b(t,X),W(),o()}at(["mousemove","click"]);function uu(t,e){q(e,!0);let i=v(e,"tooltipEnabled",3,!0),o=v(e,"disabled",3,!1),n=v(e,"className",3,void 0),a=v(e,"ref",15);Bo(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=Ue();let u=m(()=>e.buttonComponent);var f=pe(l);Si(f,()=>r(u),(_,p)=>{p(_,ss(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(s,l)},$$slots:{default:!0}}),W()}var ls={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var M2=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Qf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=M2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),b(t,o)}function As(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=v(e,"width",3,"24"),a=v(e,"height",3,"24"),s=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");Qf(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var L2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),V2=L("<!> <!>",1),R2={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 ha(t,e){q(e,!0),G(t,R2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=Ce().ui.t,d=m(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=m(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Mt(t,{get className(){return r(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(f){i(f)},children:(f,_)=>{var p=V2(),$=pe(p);{var w=k=>{var P=L2();b(k,P)};R($,k=>{o()&&k(w)})}var y=M($,2);let S=m(()=>e.type==="prev");As(y,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(f,p)},$$slots:{default:!0}}),W()}var D2=$e('<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=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=D2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i))),b(t,o)}var w1=require("@vkontakte/videoplayer-shared/es2015");var N2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),B2=L("<!> <div><!></div>",1),O2={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 pl(t,e){q(e,!0),G(t,O2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),a=v(e,"className",3,""),s=v(e,"click",3,w1.noop),d=H("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);Mt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Kr.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var _=B2(),p=pe(_);{var $=k=>{var P=N2();b(k,P)};R(p,k=>{o()&&k($)})}var w=M(p,2);let y;var S=h(w);kd(S,{}),g(w),I(k=>y=ie(w,1,"svelte-1ot3duq",null,y,k),[()=>({mobile:o()})]),b(u,_)},$$slots:{default:!0}}),W()}var H2=$e('<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 Rr(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=H2(),d=h(s);g(s),I(()=>{He(s,"width",i()),He(s,"height",o()),He(s,"viewBox",n()),He(d,"fill",a())}),b(t,s)}var F2=$e('<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 ds(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=F2(),d=h(s);g(s),I(()=>{He(s,"width",i()),He(s,"height",o()),He(s,"viewBox",n()),He(d,"fill",a())}),b(t,s)}var S1=require("@vkontakte/videoplayer-shared/es2015");var U2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),z2=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 fl(t,e){q(e,!0),G(t,q2);let[i,o]=Fe(),n=()=>C(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=fo(),s=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),l=v(e,"isPlaying",3,!1),u=v(e,"disabled",3,!1),f=v(e,"className",3,""),_=v(e,"click",3,S1.noop),$=Ce().ui.t,{toggle:w}=a,y=m(()=>w),S=m(()=>n()!==null),k=m(()=>r(S)?n():l()),P=m(()=>r(k)?$("tooltip_pause"):$("tooltip_play")),A=m(()=>r(k)?ds:Rr),E=m(()=>`${d()?"btn-m--play":""} ${f()}`),T=m(()=>r(S)?r(y):_());Mt(t,{get className(){return r(E)},testId:"btn-play",get click(){return r(T)},get disabled(){return u()},get ariaLabel(){return r(P)},get ariaKeyShortCut(){return Kr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,z)=>{var j=z2();let F=m(()=>r(A));var Z=pe(j);{var J=Re=>{var Me=U2();b(Re,Me)};R(Z,Re=>{d()&&Re(J)})}var ne=M(Z,2);let fe;var de=h(ne);Si(de,()=>r(F),(Re,Me)=>{Me(Re,{})}),g(ne),I(Re=>fe=ie(ne,1,"svelte-1ot3duq",null,fe,Re),[()=>({mobile:d()})]),b(V,j)},$$slots:{default:!0}}),W(),o()}var W2=$e('<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 Gf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=W2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i))),b(t,o)}function Id(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=H("tooltip_interactive_go_back"),s=m(()=>o()?"hidden":"");Mt(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)=>{Gf(d,{})},$$slots:{default:!0}}),W()}var K2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Q2={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 Ed(t,e){q(e,!0),G(t,Q2);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=v(e,"ref",15,void 0),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Mt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,_)=>{var p=K2(),$=h(p);let w;var y=h($);{var S=P=>{Rr(P,{width:"14",height:"14",fill:"#000"})},k=P=>{ds(P,{width:"14",height:"14",fill:"#000"})};R(y,P=>{n()?P(S):P(k,!1)})}g($),g(p),I(P=>w=ie($,1,"toggler svelte-et3q1q",null,w,P),[()=>({enabled:n()})]),b(f,p)},$$slots:{default:!0}}),W(),o()}var G2=$e('<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 Yf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=G2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i))),b(t,o)}function Pd(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=H("tooltip_interactive_seek"),s=m(()=>o()?"hidden":"");Mt(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)=>{Yf(d,{})},$$slots:{default:!0}}),W()}var Y2=$e('<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 jf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),b(t,o)}var j2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Zf(t,e){G(t,j2);let i=v(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");jf(t,{get"data-testid"(){return r(o)}})}function Ad(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=v(e,"graphIsOpened",3,!1),d=Ce().ui.t,l=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");Mt(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,_)=>{let p=m(()=>!!a());Zf(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),W()}var Xf=require("@vkontakte/videoplayer-core/es2015");function Md(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(u,"$playbackState$",i),a=v(e,"isMobile",3,!1),s=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),l=Ce(),u=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,p=m(()=>()=>{if(!s()){f();return}n()===Xf.PlaybackState.PAUSED&&_()}),$=m(()=>a()?"":"btn--live btn-full-opacity"),w=m(()=>s()?"btn-live":"btn-live-offset"),y=m(()=>s()&&n()===Xf.PlaybackState.PLAYING);Mt(t,{get className(){return r($)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(p)},children:(S,k)=>{rd(S,{get isActive(){return s()}})},$$slots:{default:!0}}),W(),o()}var Jf=require("@vkontakte/videoplayer-shared/es2015");var Z2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),X2=L('<img class="icon" aria-hidden="true">');function _a(t,e){"use strict";let i=te(!1),o=()=>{O(i,!0)};var n=Ue(),a=pe(n);{var s=l=>{var u=Z2();b(l,u)},d=l=>{var u=X2();I(()=>He(u,"src",e.icon)),Pt("error",u,o),Ys(u),b(l,u)};R(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function em(t,e){q(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Jf.noop),n=v(e,"ref",15),a=m(()=>o()===Jf.noop),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");Bo(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,u)=>{let f=m(()=>{var _;return(_=e.testId)!=null?_:e.id});Mt(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:(_,p)=>{_a(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),W()}var C1=t=>!!t.buttonComponent;var cs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var ty=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),iy={hash:"svelte-1iedtj3",code:".wrapper-bottom.svelte-1iedtj3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iedtj3 > :where(.svelte-1iedtj3) {pointer-events:auto;}.controls.svelte-1iedtj3 {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box;}.controls-left.svelte-1iedtj3, .controls-right.svelte-1iedtj3 {display:flex;align-content:center;}.controls-left.svelte-1iedtj3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iedtj3 > *:not(:first-child), .controls-right.svelte-1iedtj3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iedtj3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iedtj3 {transition:none;}"};function im(t,e){var Rs,Ta;q(e,!0),G(t,iy);let[i,o]=Fe(),n=()=>C(mi,"$disabledControls$",i),a=()=>C(Qt,"$adPlaybackState",i),s=()=>C(ii,"$playbackState$",i),d=()=>C(ai,"$currentSubtitle$",i),l=()=>C(oi,"$isEnded$",i),u=()=>C(Zn,"$currentGridType$",i),f=()=>C(Ni,"$isLive$",i),_=()=>C(Qi,"$chromecastState$",i),p=()=>C(Ho,"$isPictureInPictureActive",i),$=()=>C(Fo,"$pictureInPictureType$",i),w=()=>C(Bi,"$availableSubtitlesList$",i),y=()=>C(eo,"$contextMenuOpenedByKeyboard$",i),S=()=>C(vo,"$showContextMenuBtn$",i),k=()=>C(Jt,"$playerSize",i),P=()=>C(Ki,"$isRewindableLive$",i),A=()=>C(Oo,"$isActiveLive$",i),E=()=>C(fn,"$graphIsOpened$",i),T=()=>C(mo,"$contextMenuVisible$",i),V=()=>C(go,"$isFullscreen",i),z=()=>C(Eo,"$autoplayNextEnabled",i),j=()=>C(r(Go),"$prevButton",i),F=()=>C(r($r),"$replayButton",i),Z=()=>C(r(Hr),"$playButton",i),J=()=>C(r(ot),"$nextButton",i),ne=()=>C(r(mt),"$playPrevChapterButton",i),fe=()=>C(r(ki),"$seekToInteractiveButton",i),de=()=>C(r(ro),"$interactiveGraphButton",i),Re=()=>C(r(ji),"$liveButton",i),Me=()=>C(r(Ao),"$time",i),ee=()=>C(r(Mo),"$episodes",i),Le=()=>C(r(Yo),"$vkLogo",i),X=()=>C(r(Lo),"$volume",i),N=()=>C(r(fi),"$subtitles",i),De=()=>C(r(Je),"$settings",i),re=()=>C(r(Gt),"$context",i),Ee=()=>C(r(Zi),"$fullscreen",i),Ne=()=>C(r(Ri),"$chromecast",i),me=()=>C(Io,"$additionalDesktopControlPanelRightButtons$",i),B=()=>C(Tn,"$isInteractiveTime$",i),ce=()=>C(Lt,"$settingsMenuVisible",i),Pe=()=>C(_n,"$settingButtonRef$",i),Ye=()=>C(Ko,"$startedByKeyboard$",i),lt=()=>C(Ge,"$isAudioAvailable$",i),Ae=()=>C(se,"$fakeIsPlaying$",i),ye=()=>C(Xn,"$seekToInteractiveDisabledTooltip$",i),Ve=()=>C(Ct,"$adPosition",i),Xe=()=>C(Et,"$position$",i),pt=()=>C(vi,"$adDuration",i),rt=()=>C(et,"$duration$",i),Ot=v(e,"playerControlsWrapperRef",15,void 0),st=v(e,"playerControlsRef",15,void 0),wt=v(e,"isAds",3,!1),Wt=v(e,"logoTargetUrl",3,""),jt=v(e,"isOneVideoPlaylist",3,!1),Be=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:se}=fo(),Q=Ce(),ae=fo(),_e=Yt(),Te=Q.actions.internal.toggleMuted,Oe=Q.actions.internal.togglePlay,ft=Q.actions.internal.pause,Kt=Q.actions.internal.toggleSubtitle,je=(Rs=Q.callbacks)==null?void 0:Rs.onAudioDoesNotExistHint,dt=(Ta=Q.callbacks)==null?void 0:Ta.onAudioDisabledHint,et=Q.state.duration$,Et=Q.state.positionWithScrubbing$,ii=Q.state.playbackState$,Ge=Q.state.isAudioAvailable$,ct=Q.state.isAudioDisabled,oi=Q.state.isEnded$,Ni=Q.state.isLive$,Oo=Q.state.isActiveLive$,Ki=Q.state.isRewindableLive$,{isActive$:Ho,type$:Fo}=ae.pictureInPicture$,Lt=Q.ui.settingsMenu.visible$,bt=Q.ui.settingsMenu.openedByBtnKeyboard$,U=Q.ui.controls,Zt=Q.actions.internal.getVideoEpisodes(),Qi=Q.state.chromecastState$,Bi=Q.state.availableSubtitlesList$,ai=Q.state.currentSubtitle$,mi=U.disabledControls$,mo=Q.ui.contextMenu.visible$,vo=Q.ui.contextMenu.showContextMenuBtn$,eo=Q.ui.contextMenu.openedByBtnKeyboard$,Ko=Q.ui.startedByKeyboard$,Ht=Q.ui.t,vi=Q.ads.duration,Ct=Q.ads.position,Qt=Q.ads.playbackState,go=Q.ui.isFullscreen,Jt=Q.ui.playerSize,Zn=Q.ui.currentGridType$,Io=Q.ui.additionalDesktopControlPanelRightButtons$,Eo=Q.ui.autoplayNextEnabled$,li=Q.actions.internal.getVideoElement,xt=Q.actions.internal.replayInteractive,yi=Q.actions.internal.prevVideoClick,Li=Q.actions.internal.nextVideoClick,Oi=Q.state.isInteractive,Tn=Q.state.isInteractiveTime$,Ti=Q.state.showInteractiveGraph,to=Q.state.showSeekToInteractive,pn=Q.state.showPlayPrevChapter,kn=Q.state.showInteractiveTimeIndicator,Vi=Q.state.playPrevChapterDisabledTooltip,Xn=ae.seekToInteractiveDisabledTooltip$,fn=ae.graphIsOpened$,Po=_e.features.interactiveResponsiveUi,In=m(()=>n().has("EPISODE_BUTTON")),Nr=m(()=>n().has("GRAPH_BUTTON")),gr=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Jn=m(()=>n().has("PLAY_BUTTON")),En=m(()=>n().has("REPLAY_BUTTON")),mn=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Pn=()=>Q.actions.internal.toggleChromecast(),ho=m(()=>wt()?a()==="playing":s()===ba.PlaybackState.PLAYING),tt=m(()=>d().value!=="off"),vn=m(()=>l()&&!wt()||Oi),er=m(()=>Po?r(vn)&&zi(u(),"m"):r(vn)),tr=m(()=>!l()||Oi||wt()),An=m(()=>zi(u(),"m")),gn=m(()=>e.showNextPrevButtons&&zi(u(),"m")&&!wt()&&e.nextButtonActive),hn=m(()=>e.showNextPrevButtons&&zi(u(),"m")&&!wt()&&e.prevButtonActive),Qo=m(()=>!wt()&&!!f()),Gi=m(()=>_()!==ba.ChromecastState.NOT_AVAILABLE&&!(p()&&$()===1)&&zi(u(),"m")&&!Oi),Yi=m(()=>e.showAutoplayNext&&!jt()&&zi(u(),"s")),ir=m(()=>w().length>0&&zi(u(),"m")),Mn=m(()=>y()||S()),or=m(()=>zi(u(),"s")&&!wt()),hr=m(()=>!e.logoHidden&&!wt()),io=m(()=>_e.features.fullscreen&&(e.logoHidden||zi(u(),Po?"xs":"s"))&&!(p()&&$()===1)&&(Oi?Be():!0)),oo=m(()=>(!f()||wt())&&!(_e.features.interactiveHideTime&&Oi)),Ln=m(()=>k().width>100),Vn=m(()=>Ti&&zi(u(),"m")),_o=m(()=>Po?to&&zi(u(),"s"):to),no=m(()=>Po?pn&&zi(u(),"s"):pn),Rn=m(()=>!wt()&&!f()&&!!(Zt!=null&&Zt.length)&&r(An)&&!r(In)),Uo=m(()=>!P()||!!A()),Br=m(()=>E()?Ht("tooltip_interactive_graph_on"):Ht("tooltip_interactive_graph_off")),Dn=m(()=>T()?Ht("aria_label_context_menu_close"):Ht("aria_label_context_menu_open")),_r=(gt,$t)=>gt?$t&&$t===ba.PlaybackState.PAUSED?Ht("tooltip_play"):"":Ht("tooltip_live"),Nn=m(()=>_r(r(Uo),s())),Bn=m(()=>_e.logoType==="vk_video"?Ht("tooltip_vk_video_logo"):Ht("tooltip_vk_logo")),Or=m(()=>r(tt)?Ht("tooltip_subtitles_on"):Ht("tooltip_subtitles_off")),nr=m(()=>V()?Ht("tooltip_fullscreen_on"):Ht("tooltip_fullscreen_off")),br=m(()=>_()===ba.ChromecastState.CONNECTED?Ht("tooltip_chromecast_on"):Ht("tooltip_chromecast_off")),rr=m(()=>z()?Ht("tooltip_autoplay_on"):Ht("tooltip_autoplay_off")),On=te(0),ni=ve({}),Go=m(()=>U.prevButton),$r=m(()=>U.replayButton),Hr=m(()=>U.playButton),ot=m(()=>U.nextButton),mt=m(()=>U.playPrevChapterButton),ki=m(()=>U.seekToInteractiveButton),ro=m(()=>U.interactiveGraphButton),ji=m(()=>U.liveButton),Ao=m(()=>U.time),Mo=m(()=>U.episodes),Yo=m(()=>U.vkLogo),Lo=m(()=>U.volume),fi=m(()=>U.subtitles),Je=m(()=>U.settings),Gt=m(()=>U.context),Zi=m(()=>U.fullscreen),Ri=m(()=>U.chromecast),gi=m(()=>({prevButton:j()?j().right-j().left:0,replayButton:F()?F().right-F().left:0,playButton:Z()?Z().right-Z().left:0,nextButton:J()?J().right-J().left:0,playPrevChapterButton:ne()?ne().right-ne().left:0,seekToInteractiveButton:fe()?fe().right-fe().left:0,interactiveGraphButton:de()?de().right-de().left:0,liveButton:Re()?Re().right-Re().left:0,time:Me()?Me().right-Me().left:0,episodes:ee()?ee().right-ee().left:0,vkLogo:Le()?Le().right-Le().left:0,volume:X()?X().right-X().left:0,subtitles:N()?N().right-N().left:0,settings:De()?De().right-De().left:0,context:re()?re().right-re().left:0,fullscreen:Ee()?Ee().right-Ee().left:0,chromecast:Ne()?Ne().right-Ne().left:0,additionalButtons:me().length?me().reduce(gt=>[...gt,40],[]):[]})),bo=te(0);We(()=>{(!r(bo)||r(bo)<r(gi).time)&&yt(()=>O(bo,ve(r(gi).time)))});let $o=te(!1);We(()=>{let gt=0;r(Rn)&&(zi(u(),"xl")?gt=r(gi).time:gt=60);let $t=r(gi).prevButton+r(gi).playButton+r(gi).nextButton+r(gi).seekToInteractiveButton+r(gi).interactiveGraphButton+r(gi).liveButton+r(bo)+gt;O($o,ve(r(oo)&&r(On)>=$t))});let Hn=m(()=>r($o)&&zi(u(),"m")),so=(0,T1.debounceFn)(du,260);We(()=>{k(),B(),so(li(),U,ni,e.showControls)});let _n=le();We(()=>{ce(),Pe()&&yt(()=>ol(Pe(),ce(),bt))});let Fn;We(()=>{Ye(),yt(()=>cu(Ko,Ye(),Fn))});function Vo(){ks({isAudioDisabled:ct,audioDisabledHintCallback:dt,isAudioAvailable:lt(),audioIsNotExistHintCallback:je})&&Te()}let yr=Oi?xt:Oe,xr=m(()=>Ae()!==null),wr=m(()=>r(xr)?Ae():r(ho)),Fr=m(()=>r(wr)?Ht("tooltip_pause"):Ht("tooltip_play")),jo=Ht("tooltip_episodes"),Sr=m(()=>{var gt,$t,Xi,Jo;return r(hn)?{id:"prevButton",type:"desktop-control-panel-left",weight:ls.prevButton,buttonComponent:ha,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:yi.bind(null,!0)},tooltipEnabled:!(($t=(gt=Q.callbacks)==null?void 0:gt.uiInfo)!=null&&$t.onPrevButtonMouseEnter)&&!((Jo=(Xi=Q.callbacks)==null?void 0:Xi.uiInfo)!=null&&Jo.onPrevButtonMouseLeave),mouseEnter:()=>{var Ji,di,Ei;(Ei=(di=(Ji=Q.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:di.onPrevButtonMouseEnter)==null||Ei.call(di,ga(li(),ni,"prevButton",e.showControls))},mouseLeave:()=>{var Ji,di,Ei;(Ei=(di=(Ji=Q.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:di.onPrevButtonMouseLeave)==null||Ei.call(di,ga(li(),ni,"prevButton",e.showControls))},tooltipText:Ht("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),sr=m(()=>r(er)?{id:"replayButton",type:"desktop-control-panel-left",weight:ls.replayButton,buttonComponent:pl,buttonComponentProps:{disabled:r(En),click:yr},tooltipText:Ht("tooltip_restart"),disabled:r(En)}:void 0),ar=m(()=>r(tr)?{id:"playButton",type:"desktop-control-panel-left",weight:ls.playButton,buttonComponent:fl,buttonComponentProps:{disabled:r(Jn),isPlaying:r(ho),click:Oe},tooltipText:r(Fr),disabled:r(Jn)}:void 0),Cr=m(()=>{var gt,$t,Xi,Jo;return r(gn)?{id:"nextButton",type:"desktop-control-panel-left",weight:ls.nextButton,buttonComponent:ha,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Li.bind(null,!0)},tooltipEnabled:!(($t=(gt=Q.callbacks)==null?void 0:gt.uiInfo)!=null&&$t.onNextButtonMouseEnter)&&!((Jo=(Xi=Q.callbacks)==null?void 0:Xi.uiInfo)!=null&&Jo.onNextButtonMouseLeave),mouseEnter:()=>{var Ji,di,Ei;(Ei=(di=(Ji=Q.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:di.onNextButtonMouseEnter)==null||Ei.call(di,ga(li(),ni,"nextButton",e.showControls))},mouseLeave:()=>{var Ji,di,Ei;(Ei=(di=(Ji=Q.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:di.onNextButtonMouseLeave)==null||Ei.call(di,ga(li(),ni,"nextButton",e.showControls))},tooltipText:Ht("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),yo=m(()=>Oi&&r(no)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ls.playPrevChapterButton,buttonComponent:Id,buttonComponentProps:{disabled:r(mn),click:e.playPrevChapter},tooltipText:Ht("tooltip_interactive_go_back"),disabledTooltipContent:Ht(Vi),disabled:r(mn)}:void 0),Un=m(()=>Oi&&r(_o)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ls.seekToInteractiveButton,buttonComponent:Pd,buttonComponentProps:{disabled:r(gr),click:e.seekToInteractive},tooltipText:Ht("tooltip_interactive_seek"),disabled:r(gr),disabledTooltipContent:Ht(ye())}:void 0),nt=m(()=>Oi&&r(Vn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ls.interactiveGraphButton,buttonComponent:Ad,buttonComponentProps:{disabled:r(Nr),click:fn.toggle,graphIsOpened:E()},tooltipText:r(Br)}:void 0),Ft=m(()=>r(Qo)?{id:"liveButton",type:"desktop-control-panel-left",weight:ls.liveButton,buttonComponent:Md,buttonComponentProps:{isLiveActive:r(Uo),ariaLabel:r(Nn)},tooltipText:r(Nn),disabled:r(Uo)&&s()===ba.PlaybackState.PLAYING}:void 0),Ii=m(()=>[r(Sr),r(sr),r(ar),r(Cr),r(yo),r(Un),r(nt),r(Ft)].filter(gt=>!!gt).sort(la)),Zo=m(()=>r(hr)?{id:"vkLogo",type:"desktop-control-panel-right",weight:cs.vkLogo,buttonComponent:bd,buttonComponentProps:{targetUrl:Wt(),logoClickable:e.logoClickable,click:ft},tooltipText:r(Bn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),zn=m(()=>r(Yi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:cs.autoplayNext,buttonComponent:Ed,tooltipText:r(rr)}:void 0),we=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:cs.volume,buttonComponent:If,buttonComponentProps:{click:Vo}})),Rt=m(()=>r(ir)?{id:"subtitles",type:"desktop-control-panel-right",weight:cs.subtitles,buttonComponent:Sf,buttonComponentProps:{isSubtitlesEnabled:r(tt),click:Kt},tooltipText:r(Or)}:void 0),ui=m(()=>r(or)?{id:"settings",type:"desktop-control-panel-right",weight:cs.settings,buttonComponent:dl,buttonComponentProps:{ref$:_n},tooltipText:ce()?void 0:Ht("tooltip_settings_off")}:void 0),At=m(()=>_e.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:cs.context,buttonComponent:Kf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(Dn)},className:r(Mn)?"":"out-of-view",tooltipText:r(Dn)}:void 0),ei=m(()=>r(io)?{id:"fullscreen",type:"desktop-control-panel-right",weight:cs.fullscreen,buttonComponent:_d,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(nr)}:void 0),pi=m(()=>r(Gi)?{id:"chromecast",type:"desktop-control-panel-right",weight:cs.chromecast,buttonComponent:$d,buttonComponentProps:{state:_(),click:Pn},tooltipText:r(br)}:void 0),Hi=m(()=>[r(Zo),r(zn),r(we),r(Rt),r(ui),r(At),r(ei),r(pi),...me()].filter(gt=>!!gt).sort(la));var xo=ty(),ri=pe(xo);let Ro;var qe=h(ri);let zt=m(()=>!r(Ln));xd(qe,{get isHidden(){return r(zt)},get isAds(){return wt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return ni.timeline},set ref(gt){ni.timeline=gt}});var xi=M(qe,2),Do=h(xi),Xo=h(Do);wi(Xo,17,()=>r(Ii),gt=>gt.id,(gt,$t)=>{uu(gt,{get buttonComponent(){return r($t).buttonComponent},get buttonComponentProps(){return r($t).buttonComponentProps},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r($t).disabled},get className(){return r($t).className},get tooltipEnabled(){return r($t).tooltipEnabled},get mouseEnter(){return r($t).mouseEnter},get mouseLeave(){return r($t).mouseLeave},get ref(){return ni[r($t).id]},set ref(Xi){ni[r($t).id]=Xi}})});var ps=M(Xo,2);{var bn=gt=>{let $t=m(()=>wt()?Ve():Xe()),Xi=m(()=>wt()?pt():rt());vd(gt,{isMobile:!1,get showDuration(){return r(Hn)},get position(){return r($t)},get duration(){return r(Xi)},get ref(){return ni.time},set ref(Jo){ni.time=Jo}})};R(ps,gt=>{r(oo)&>(bn)})}var Yr=M(ps,2);let Sa=m(()=>!r(Rn));Bo(Yr,{className:"w-max",get disabled(){return r(Sa)},tooltipContent:jo,get ref(){return ni.episodes},set ref(gt){ni.episodes=gt},children:(gt,$t)=>{var Xi=Ue(),Jo=pe(Xi);{var Ji=di=>{wd(di,{get position(){return Xe()},get duration(){return rt()},timeCodes:Zt})};R(Jo,di=>{r(Rn)&&di(Ji)})}b(gt,Xi)},$$slots:{default:!0}}),g(Do);var Ca=M(Do,2);wi(Ca,21,()=>r(Hi),gt=>gt.id,(gt,$t)=>{var Xi=Ue(),Jo=pe(Xi);{var Ji=Ei=>{uu(Ei,{get buttonComponent(){return r($t).buttonComponent},get buttonComponentProps(){return r($t).buttonComponentProps},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r($t).disabled},get className(){return r($t).className},get ref(){return ni[r($t).id]},set ref(Ds){ni[r($t).id]=Ds}})},di=Ei=>{let Ds=m(()=>!!r($t).disabled);em(Ei,{get id(){return r($t).id},get testId(){return r($t).testId},get icon(){return r($t).icon},get ariaLabel(){return r($t).ariaLabel},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r(Ds)},get onClick(){return r($t).onClick},get ref(){return ni[r($t).id]},set ref(ka){ni[r($t).id]=ka}})};R(Jo,Ei=>{C1(r($t))?Ei(Ji):Ei(di,!1)})}b(gt,Xi)}),g(Ca),g(xi),ut(xi,gt=>st(gt),()=>st()),g(ri),ut(ri,gt=>Ot(gt),()=>Ot());var lr=M(ri,2);{var xl=gt=>{Td(gt,{get ref(){return ni.interactiveTimeIndicator},set ref($t){ni.interactiveTimeIndicator=$t}})};R(lr,gt=>{kn&>(xl)})}I(gt=>Ro=ie(ri,1,"wrapper-bottom svelte-1iedtj3",null,Ro,gt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Wr(Do,"clientWidth",gt=>O(On,gt)),b(t,xo),W(),o()}var ml=require("@vkontakte/videoplayer-core/es2015");var om=require("@vkontakte/videoplayer-shared/es2015");var oy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),ny=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),ry={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 nm(t,e){G(t,ry);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,om.noop),n=m(()=>o()===om.noop),a=m(()=>r(n)||i()),s=te(!1),d=()=>{O(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");Mt(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:(u,f)=>{var _=Ue(),p=pe(_);{var $=y=>{var S=oy();b(y,S)},w=y=>{var S=ny();I(()=>He(S,"src",e.iconUrl)),Pt("error",S,d),Ys(S),b(y,S)};R(p,y=>{r(s)?y($):y(w,!1)})}b(u,_)},$$slots:{default:!0}})}var sy=$e('<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 rm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=sy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i))),b(t,o)}var k1=require("@vkontakte/videoplayer-shared/es2015");var ay=L('<span class="text svelte-6gmlbk"> </span>'),ly=L('<div aria-hidden="true"><!> <!></div>'),dy={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function pu(t,e){q(e,!0),G(t,dy);let i=v(e,"muted",3,!1),o=v(e,"expanded",3,!1),n=v(e,"click",3,k1.noop),a=v(e,"ref",15,void 0),d=Ce().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=m(()=>o()?Es:rm),f=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Mt(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(_){a(_)},children:(_,p)=>{var $=ly();let w=m(()=>r(u)),y;var S=h($);Si(S,()=>r(w),(A,E)=>{E(A,{})});var k=M(S,2);{var P=A=>{var E=ay(),T=h(E,!0);g(E),I(V=>ge(T,V),[()=>d("mobile_unmute")]),b(A,E)};R(k,A=>{o()&&A(P)})}g($),I(A=>y=ie($,1,"container svelte-6gmlbk",null,y,A),[()=>({expanded:o()})]),b(_,$)},$$slots:{default:!0}}),W()}var cy=$e('<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 sm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=cy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(3),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i))),b(t,o)}var uy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
255
|
-
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function
|
|
254
|
+
animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Pd(t,e){var B;z(e,!0),K(t,V2);let[i,o]=Oe(),n=()=>S(C,"$isMobile",i),a=()=>S(A,"$areControlsVisible",i),s=()=>S(R,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),l=()=>S(y,"$interactiveControlsOpacity$",i),u=()=>S(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(k,"$isFullscreen",i),_=m(e,"ref",15,void 0),p=ie(void 0),b=Se(),x=go(),{interactiveControlsOpacity$:y}=x,C=b.ui.isMobile,k=b.ui.isFullscreen,E=b.state.isInteractiveTime$,P=x.showInteractiveTimeIndicatorTooltip$,A=b.ui.controlsVisible,T=(B=b.callbacks)==null?void 0:B.onInteractiveTimeIndicatorClick,R=b.ui.currentGridType$,F=v(()=>!n()&&a()),Y=v(()=>Ms(s(),"s")),H=v(()=>!d()||!!l()||r(F)),X=ie(!1);qe(()=>{O(X,me(r(H)))});let oe=()=>{O(X,!0)},ee=()=>{var de;ue(),(de=r(p))==null||de.addEventListener("animationiteration",oe,{once:!0})},ue=()=>{var de;O(X,!1),(de=r(p))==null||de.removeEventListener("animationiteration",oe)},le=de=>{P.set(de)},Me=v(()=>u()&&!r(H));qe(()=>{u()?ee():ue()});let Le=()=>{r(H)||(P.set(!0),T==null||T())};xn(()=>{P.clearTimeout(),ue()});let J=()=>{P.set(!1)},Ve=U("tooltip_interactive_interaction_time_indicator");var j=L2();let N;j.__mousemove=[M2],j.__click=Le;var Re=h(j);Bo(Re,{tooltipContent:Ve,get tooltipActive(){return r(Me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return _()},set ref(de){_(de)},children:(de,Ie)=>{yd(de,{completed:!0})},$$slots:{default:!0}});var re=M(Re,2);let ke;ct(re,de=>_(de),()=>_());var Ne=M(re,2);let fe;ct(Ne,de=>O(p,de),()=>r(p)),g(j),I((de,Ie,Ke)=>{N=te(j,1,"interactive-episode-icon-animated svelte-od3veb",null,N,de),ke=te(re,1,"ref-block svelte-od3veb",null,ke,Ie),fe=te(Ne,1,"pulse svelte-od3veb",null,fe,Ke)},[()=>({mobile:n(),fullscreen:f(),invisible:r(H),"icon-small":r(Y)}),()=>({hidden:r(H)}),()=>({paused:r(X)})]),Et("mouseleave",j,J),$(t,j),q(),o()}rt(["mousemove","click"]);function mu(t,e){z(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);Bo(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=ze();let u=v(()=>e.buttonComponent);var f=pe(l);Si(f,()=>r(u),(_,p)=>{p(_,ls(()=>{var b;return(b=e.buttonComponentProps)!=null?b:{}}))}),$(s,l)},$$slots:{default:!0}}),q()}var us={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var D2=$e('<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=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=D2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),$(t,o)}function Ls(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");jf(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var N2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),B2=L("<!> <!>",1),O2={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 ba(t,e){z(e,!0),K(t,O2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=Se().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")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Vt(t,{get className(){return r(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(f){i(f)},children:(f,_)=>{var p=B2(),b=pe(p);{var x=k=>{var E=N2();$(k,E)};V(b,k=>{o()&&k(x)})}var y=M(b,2);let C=v(()=>e.type==="prev");Ls(y,{get isMobile(){return o()},get isPrev(){return r(C)}}),$(f,p)},$$slots:{default:!0}}),q()}var H2=$e('<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 Ad(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=H2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 T1=require("@vkontakte/videoplayer-shared/es2015");var F2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),U2=L("<!> <div><!></div>",1),z2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function gl(t,e){z(e,!0),K(t,z2);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,T1.noop),d=U("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Vt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Qr.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var _=U2(),p=pe(_);{var b=k=>{var E=F2();$(k,E)};V(p,k=>{o()&&k(b)})}var x=M(p,2);let y;var C=h(x);Ad(C,{}),g(x),I(k=>y=te(x,1,"svelte-1ot3duq",null,y,k),[()=>({mobile:o()})]),$(u,_)},$$slots:{default:!0}}),q()}var q2=$e('<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 Mr(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=q2(),d=h(s);g(s),I(()=>{Fe(s,"width",i()),Fe(s,"height",o()),Fe(s,"viewBox",n()),Fe(d,"fill",a())}),$(t,s)}var W2=$e('<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 ps(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),I(()=>{Fe(s,"width",i()),Fe(s,"height",o()),Fe(s,"viewBox",n()),Fe(d,"fill",a())}),$(t,s)}var k1=require("@vkontakte/videoplayer-shared/es2015");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 hl(t,e){z(e,!0),K(t,G2);let[i,o]=Oe(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=go(),s=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),l=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),_=m(e,"click",3,k1.noop),b=Se().ui.t,{toggle:x}=a,y=v(()=>x),C=v(()=>n()!==null),k=v(()=>r(C)?n():l()),E=v(()=>r(k)?b("tooltip_pause"):b("tooltip_play")),P=v(()=>r(k)?ps:Mr),A=v(()=>`${d()?"btn-m--play":""} ${f()}`),T=v(()=>r(C)?r(y):_());Vt(t,{get className(){return r(A)},testId:"btn-play",get click(){return r(T)},get disabled(){return u()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return Qr.KeyK},get ref(){return s()},set ref(R){s(R)},children:(R,F)=>{var Y=Q2();let H=v(()=>r(P));var X=pe(Y);{var oe=Me=>{var Le=K2();$(Me,Le)};V(X,Me=>{d()&&Me(oe)})}var ee=M(X,2);let ue;var le=h(ee);Si(le,()=>r(H),(Me,Le)=>{Le(Me,{})}),g(ee),I(Me=>ue=te(ee,1,"svelte-1ot3duq",null,ue,Me),[()=>({mobile:d()})]),$(R,Y)},$$slots:{default:!0}}),q(),o()}var Y2=$e('<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 Zf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 Md(t,e){z(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=U("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Vt(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)=>{Zf(d,{})},$$slots:{default:!0}}),q()}var j2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Z2={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 Ld(t,e){z(e,!0),K(t,Z2);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=m(e,"ref",15,void 0),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Vt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,_)=>{var p=j2(),b=h(p);let x;var y=h(b);{var C=E=>{Mr(E,{width:"14",height:"14",fill:"#000"})},k=E=>{ps(E,{width:"14",height:"14",fill:"#000"})};V(y,E=>{n()?E(C):E(k,!1)})}g(b),g(p),I(E=>x=te(b,1,"toggler svelte-et3q1q",null,x,E),[()=>({enabled:n()})]),$(f,p)},$$slots:{default:!0}}),q(),o()}var X2=$e('<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 Xf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=X2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({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 Vd(t,e){z(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=U("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Vt(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)=>{Xf(d,{})},$$slots:{default:!0}}),q()}var J2=$e('<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 Jf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=J2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),$(t,o)}var ey={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function em(t,e){K(t,ey);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Jf(t,{get"data-testid"(){return r(o)}})}function Rd(t,e){z(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=Se().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Vt(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,_)=>{let p=v(()=>!!a());em(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),q()}var tm=require("@vkontakte/videoplayer-core/es2015");function Dd(t,e){z(e,!0);let[i,o]=Oe(),n=()=>S(u,"$playbackState$",i),a=m(e,"isMobile",3,!1),s=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),l=Se(),u=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,p=v(()=>()=>{if(!s()){f();return}n()===tm.PlaybackState.PAUSED&&_()}),b=v(()=>a()?"":"btn--live btn-full-opacity"),x=v(()=>s()?"btn-live":"btn-live-offset"),y=v(()=>s()&&n()===tm.PlaybackState.PLAYING);Vt(t,{get className(){return r(b)},get testId(){return r(x)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(p)},children:(C,k)=>{da(C,{get isActive(){return s()}})},$$slots:{default:!0}}),q(),o()}var im=require("@vkontakte/videoplayer-shared/es2015");var ty=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),iy=L('<img class="icon" aria-hidden="true">');function $a(t,e){"use strict";let i=ie(!1),o=()=>{O(i,!0)};var n=ze(),a=pe(n);{var s=l=>{var u=ty();$(l,u)},d=l=>{var u=iy();I(()=>Fe(u,"src",e.icon)),Et("error",u,o),js(u),$(l,u)};V(a,l=>{r(i)?l(s):l(d,!1)})}$(t,n)}function om(t,e){z(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,im.noop),n=m(e,"ref",15),a=v(()=>o()===im.noop),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");Bo(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,u)=>{let f=v(()=>{var _;return(_=e.testId)!=null?_:e.id});Vt(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:(_,p)=>{$a(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),q()}var I1=t=>!!t.buttonComponent;var fs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var ry=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),sy={hash:"svelte-1iedtj3",code:".wrapper-bottom.svelte-1iedtj3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iedtj3 > :where(.svelte-1iedtj3) {pointer-events:auto;}.controls.svelte-1iedtj3 {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box;}.controls-left.svelte-1iedtj3, .controls-right.svelte-1iedtj3 {display:flex;align-content:center;}.controls-left.svelte-1iedtj3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iedtj3 > *:not(:first-child), .controls-right.svelte-1iedtj3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iedtj3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iedtj3 {transition:none;}"};function nm(t,e){var Ea,Bs;z(e,!0),K(t,sy);let[i,o]=Oe(),n=()=>S(ti,"$disabledControls$",i),a=()=>S(zt,"$adPlaybackState",i),s=()=>S(ni,"$playbackState$",i),d=()=>S(Fi,"$currentSubtitle$",i),l=()=>S(li,"$isEnded$",i),u=()=>S(Yn,"$currentGridType$",i),f=()=>S(Oi,"$isLive$",i),_=()=>S(ri,"$chromecastState$",i),p=()=>S(ho,"$isPictureInPictureActive",i),b=()=>S(Ho,"$pictureInPictureType$",i),x=()=>S(pi,"$availableSubtitlesList$",i),y=()=>S(Zi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(bi,"$showContextMenuBtn$",i),k=()=>S(_o,"$playerSize",i),E=()=>S(Hi,"$isRewindableLive$",i),P=()=>S(Oo,"$isActiveLive$",i),A=()=>S(cn,"$graphIsOpened$",i),T=()=>S(fi,"$contextMenuVisible$",i),R=()=>S(si,"$isFullscreen",i),F=()=>S(Ao,"$autoplayNextEnabled",i),Y=()=>S(r(Nr),"$prevButton",i),H=()=>S(r(hr),"$replayButton",i),X=()=>S(r(Br),"$playButton",i),oe=()=>S(r(je),"$nextButton",i),ee=()=>S(r(Mt),"$playPrevChapterButton",i),ue=()=>S(r(Ii),"$seekToInteractiveButton",i),le=()=>S(r(eo),"$interactiveGraphButton",i),Me=()=>S(r(so),"$liveButton",i),Le=()=>S(r(Lo),"$time",i),J=()=>S(r(yo),"$episodes",i),Ve=()=>S(r(Uo),"$vkLogo",i),j=()=>S(r(qi),"$volume",i),N=()=>S(r(Ri),"$subtitles",i),Re=()=>S(r(ot),"$settings",i),re=()=>S(r(jt),"$context",i),ke=()=>S(r(to),"$fullscreen",i),Ne=()=>S(r(xi),"$chromecast",i),fe=()=>S(Po,"$additionalDesktopControlPanelRightButtons$",i),B=()=>S(Sn,"$isInteractiveTime$",i),de=()=>S(At,"$settingsMenuVisible",i),Ie=()=>S(vn,"$settingButtonRef$",i),Ke=()=>S(Ui,"$startedByKeyboard$",i),st=()=>S(Xe,"$isAudioAvailable$",i),xe=()=>S(se,"$fakeIsPlaying$",i),ye=()=>S(jn,"$seekToInteractiveDisabledTooltip$",i),De=()=>S(Tt,"$adPosition",i),et=()=>S(St,"$position$",i),at=()=>S(mi,"$adDuration",i),ft=()=>S(tt,"$duration$",i),Ut=m(e,"playerControlsWrapperRef",15,void 0),lt=m(e,"playerControlsRef",15,void 0),wt=m(e,"isAds",3,!1),Yt=m(e,"logoTargetUrl",3,""),Xt=m(e,"isOneVideoPlaylist",3,!1),Be=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:se}=go(),Q=Se(),ae=go(),_e=Wt(),Pe=Q.actions.internal.toggleMuted,He=Q.actions.internal.togglePlay,ut=Q.actions.internal.pause,Kt=Q.actions.internal.toggleSubtitle,Ye=(Ea=Q.callbacks)==null?void 0:Ea.onAudioDoesNotExistHint,gt=(Bs=Q.callbacks)==null?void 0:Bs.onAudioDisabledHint,tt=Q.state.duration$,St=Q.state.positionWithScrubbing$,ni=Q.state.playbackState$,Xe=Q.state.isAudioAvailable$,pt=Q.state.isAudioDisabled,li=Q.state.isEnded$,Oi=Q.state.isLive$,Oo=Q.state.isActiveLive$,Hi=Q.state.isRewindableLive$,{isActive$:ho,type$:Ho}=ae.pictureInPicture$,At=Q.ui.settingsMenu.visible$,bt=Q.ui.settingsMenu.openedByBtnKeyboard$,Dt=Q.ui.controls,Z=Q.actions.internal.getVideoEpisodes(),ri=Q.state.chromecastState$,pi=Q.state.availableSubtitlesList$,Fi=Q.state.currentSubtitle$,ti=Dt.disabledControls$,fi=Q.ui.contextMenu.visible$,bi=Q.ui.contextMenu.showContextMenuBtn$,Zi=Q.ui.contextMenu.openedByBtnKeyboard$,Ui=Q.ui.startedByKeyboard$,Qt=Q.ui.t,mi=Q.ads.duration,Tt=Q.ads.position,zt=Q.ads.playbackState,si=Q.ui.isFullscreen,_o=Q.ui.playerSize,Yn=Q.ui.currentGridType$,Po=Q.ui.additionalDesktopControlPanelRightButtons$,Ao=Q.ui.autoplayNextEnabled$,ci=Q.actions.internal.getVideoElement,xt=Q.actions.internal.replayInteractive,Ti=Q.actions.internal.prevVideoClick,Li=Q.actions.internal.nextVideoClick,zi=Q.state.isInteractive,Sn=Q.state.isInteractiveTime$,ki=Q.state.showInteractiveGraph,io=Q.state.showSeekToInteractive,dn=Q.state.showPlayPrevChapter,Cn=Q.state.showInteractiveTimeIndicator,Vi=Q.state.playPrevChapterDisabledTooltip,jn=ae.seekToInteractiveDisabledTooltip$,cn=ae.graphIsOpened$,Mo=_e.features.interactiveResponsiveUi,Tn=v(()=>n().has("EPISODE_BUTTON")),Vr=v(()=>n().has("GRAPH_BUTTON")),mr=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Zn=v(()=>n().has("PLAY_BUTTON")),kn=v(()=>n().has("REPLAY_BUTTON")),un=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),In=()=>Q.actions.internal.toggleChromecast(),bo=v(()=>wt()?a()==="playing":s()===ya.PlaybackState.PLAYING),it=v(()=>d().value!=="off"),pn=v(()=>l()&&!wt()||zi),Xn=v(()=>Mo?r(pn)&&Gi(u(),"m"):r(pn)),Jn=v(()=>!l()||zi||wt()),En=v(()=>Gi(u(),"m")),fn=v(()=>e.showNextPrevButtons&&Gi(u(),"m")&&!wt()&&e.nextButtonActive),mn=v(()=>e.showNextPrevButtons&&Gi(u(),"m")&&!wt()&&e.prevButtonActive),Ko=v(()=>!wt()&&!!f()),Xi=v(()=>_()!==ya.ChromecastState.NOT_AVAILABLE&&!(p()&&b()===1)&&Gi(u(),"m")&&!zi),Ji=v(()=>e.showAutoplayNext&&!Xt()&&Gi(u(),"s")),er=v(()=>x().length>0&&Gi(u(),"m")),Pn=v(()=>y()||C()),tr=v(()=>Gi(u(),"s")&&!wt()),vr=v(()=>!e.logoHidden&&!wt()),oo=v(()=>_e.features.fullscreen&&(e.logoHidden||Gi(u(),Mo?"xs":"s"))&&!(p()&&b()===1)&&(zi?Be():!0)),no=v(()=>(!f()||wt())&&!(_e.features.interactiveHideTime&&zi)),An=v(()=>k().width>100),Mn=v(()=>ki&&Gi(u(),"m")),$o=v(()=>Mo?io&&Gi(u(),"s"):io),ro=v(()=>Mo?dn&&Gi(u(),"s"):dn),Ln=v(()=>!wt()&&!f()&&!!(Z!=null&&Z.length)&&r(En)&&!r(Tn)),Fo=v(()=>!E()||!!P()),Rr=v(()=>A()?Qt("tooltip_interactive_graph_on"):Qt("tooltip_interactive_graph_off")),ir=v(()=>T()?Qt("aria_label_context_menu_close"):Qt("aria_label_context_menu_open")),gr=($t,ht)=>$t?ht&&ht===ya.PlaybackState.PAUSED?Qt("tooltip_play"):"":Qt("tooltip_live"),Vn=v(()=>gr(r(Fo),s())),Rn=v(()=>_e.logoType==="vk_video"?Qt("tooltip_vk_video_logo"):Qt("tooltip_vk_logo")),Dr=v(()=>r(it)?Qt("tooltip_subtitles_on"):Qt("tooltip_subtitles_off")),or=v(()=>R()?Qt("tooltip_fullscreen_on"):Qt("tooltip_fullscreen_off")),nr=v(()=>_()===ya.ChromecastState.CONNECTED?Qt("tooltip_chromecast_on"):Qt("tooltip_chromecast_off")),rr=v(()=>F()?Qt("tooltip_autoplay_on"):Qt("tooltip_autoplay_off")),Qo=ie(0),ii=me({}),Nr=v(()=>Dt.prevButton),hr=v(()=>Dt.replayButton),Br=v(()=>Dt.playButton),je=v(()=>Dt.nextButton),Mt=v(()=>Dt.playPrevChapterButton),Ii=v(()=>Dt.seekToInteractiveButton),eo=v(()=>Dt.interactiveGraphButton),so=v(()=>Dt.liveButton),Lo=v(()=>Dt.time),yo=v(()=>Dt.episodes),Uo=v(()=>Dt.vkLogo),qi=v(()=>Dt.volume),Ri=v(()=>Dt.subtitles),ot=v(()=>Dt.settings),jt=v(()=>Dt.context),to=v(()=>Dt.fullscreen),xi=v(()=>Dt.chromecast),$i=v(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:H()?H().right-H().left:0,playButton:X()?X().right-X().left:0,nextButton:oe()?oe().right-oe().left:0,playPrevChapterButton:ee()?ee().right-ee().left:0,seekToInteractiveButton:ue()?ue().right-ue().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Me()?Me().right-Me().left:0,time:Le()?Le().right-Le().left:0,episodes:J()?J().right-J().left:0,vkLogo:Ve()?Ve().right-Ve().left:0,volume:j()?j().right-j().left:0,subtitles:N()?N().right-N().left:0,settings:Re()?Re().right-Re().left:0,context:re()?re().right-re().left:0,fullscreen:ke()?ke().right-ke().left:0,chromecast:Ne()?Ne().right-Ne().left:0,additionalButtons:fe().length?fe().reduce($t=>[...$t,40],[]):[]})),Vo=ie(0);qe(()=>{(!r(Vo)||r(Vo)<r($i).time)&&yt(()=>O(Vo,me(r($i).time)))});let xo=ie(!1);qe(()=>{let $t=0;r(Ln)&&(Gi(u(),"xl")?$t=r($i).time:$t=60);let ht=r($i).prevButton+r($i).playButton+r($i).nextButton+r($i).seekToInteractiveButton+r($i).interactiveGraphButton+r($i).liveButton+r(Vo)+$t;O(xo,me(r(no)&&r(Qo)>=ht))});let Dn=v(()=>r(xo)&&Gi(u(),"m")),ao=(0,E1.debounceFn)(vl,260);qe(()=>{k(),B(),ao(ci(),Dt,ii,e.showControls)});let vn=ce();qe(()=>{de(),Ie()&&yt(()=>sl(Ie(),de(),bt))});let Nn;qe(()=>{Ke(),yt(()=>fu(Ui,Ke(),Nn))});function Ro(){Es({isAudioDisabled:pt,audioDisabledHintCallback:gt,isAudioAvailable:st(),audioIsNotExistHintCallback:Ye})&&Pe()}let _r=zi?xt:He,br=v(()=>xe()!==null),Or=v(()=>r(br)?xe():r(bo)),$r=v(()=>r(Or)?Qt("tooltip_pause"):Qt("tooltip_play")),Hr=Qt("tooltip_episodes"),Go=v(()=>{var $t,ht,lo,zo;return r(mn)?{id:"prevButton",type:"desktop-control-panel-left",weight:us.prevButton,buttonComponent:ba,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ti.bind(null,!0)},tooltipEnabled:!((ht=($t=Q.callbacks)==null?void 0:$t.uiInfo)!=null&&ht.onPrevButtonMouseEnter)&&!((zo=(lo=Q.callbacks)==null?void 0:lo.uiInfo)!=null&&zo.onPrevButtonMouseLeave),mouseEnter:()=>{var co,di,Ni;(Ni=(di=(co=Q.callbacks)==null?void 0:co.uiInfo)==null?void 0:di.onPrevButtonMouseEnter)==null||Ni.call(di,_a(ci(),ii,"prevButton",e.showControls))},mouseLeave:()=>{var co,di,Ni;(Ni=(di=(co=Q.callbacks)==null?void 0:co.uiInfo)==null?void 0:di.onPrevButtonMouseLeave)==null||Ni.call(di,_a(ci(),ii,"prevButton",e.showControls))},tooltipText:Qt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Bn=v(()=>r(Xn)?{id:"replayButton",type:"desktop-control-panel-left",weight:us.replayButton,buttonComponent:gl,buttonComponentProps:{disabled:r(kn),click:_r},tooltipText:Qt("tooltip_restart"),disabled:r(kn)}:void 0),sr=v(()=>r(Jn)?{id:"playButton",type:"desktop-control-panel-left",weight:us.playButton,buttonComponent:hl,buttonComponentProps:{disabled:r(Zn),isPlaying:r(bo),click:He},tooltipText:r($r),disabled:r(Zn)}:void 0),Fr=v(()=>{var $t,ht,lo,zo;return r(fn)?{id:"nextButton",type:"desktop-control-panel-left",weight:us.nextButton,buttonComponent:ba,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Li.bind(null,!0)},tooltipEnabled:!((ht=($t=Q.callbacks)==null?void 0:$t.uiInfo)!=null&&ht.onNextButtonMouseEnter)&&!((zo=(lo=Q.callbacks)==null?void 0:lo.uiInfo)!=null&&zo.onNextButtonMouseLeave),mouseEnter:()=>{var co,di,Ni;(Ni=(di=(co=Q.callbacks)==null?void 0:co.uiInfo)==null?void 0:di.onNextButtonMouseEnter)==null||Ni.call(di,_a(ci(),ii,"nextButton",e.showControls))},mouseLeave:()=>{var co,di,Ni;(Ni=(di=(co=Q.callbacks)==null?void 0:co.uiInfo)==null?void 0:di.onNextButtonMouseLeave)==null||Ni.call(di,_a(ci(),ii,"nextButton",e.showControls))},tooltipText:Qt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Yo=v(()=>zi&&r(ro)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:us.playPrevChapterButton,buttonComponent:Md,buttonComponentProps:{disabled:r(un),click:e.playPrevChapter},tooltipText:Qt("tooltip_interactive_go_back"),disabledTooltipContent:Qt(Vi),disabled:r(un)}:void 0),On=v(()=>zi&&r($o)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:us.seekToInteractiveButton,buttonComponent:Vd,buttonComponentProps:{disabled:r(mr),click:e.seekToInteractive},tooltipText:Qt("tooltip_interactive_seek"),disabled:r(mr),disabledTooltipContent:Qt(ye())}:void 0),Je=v(()=>zi&&r(Mn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:us.interactiveGraphButton,buttonComponent:Rd,buttonComponentProps:{disabled:r(Vr),click:cn.toggle,graphIsOpened:A()},tooltipText:r(Rr)}:void 0),Nt=v(()=>r(Ko)?{id:"liveButton",type:"desktop-control-panel-left",weight:us.liveButton,buttonComponent:Dd,buttonComponentProps:{isLiveActive:r(Fo),ariaLabel:r(Vn)},tooltipText:r(Vn),disabled:r(Fo)&&s()===ya.PlaybackState.PLAYING}:void 0),Ei=v(()=>[r(Go),r(Bn),r(sr),r(Fr),r(Yo),r(On),r(Je),r(Nt)].filter($t=>!!$t).sort(ca)),jo=v(()=>r(vr)?{id:"vkLogo",type:"desktop-control-panel-right",weight:fs.vkLogo,buttonComponent:Sd,buttonComponentProps:{targetUrl:Yt(),logoClickable:e.logoClickable,click:ut},tooltipText:r(Rn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Hn=v(()=>r(Ji)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:fs.autoplayNext,buttonComponent:Ld,tooltipText:r(rr)}:void 0),gn=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:fs.volume,buttonComponent:Af,buttonComponentProps:{click:Ro}})),yr=v(()=>r(er)?{id:"subtitles",type:"desktop-control-panel-right",weight:fs.subtitles,buttonComponent:kf,buttonComponentProps:{isSubtitlesEnabled:r(it),click:Kt},tooltipText:r(Dr)}:void 0),Ce=v(()=>r(tr)?{id:"settings",type:"desktop-control-panel-right",weight:fs.settings,buttonComponent:pl,buttonComponentProps:{ref$:vn},tooltipText:de()?void 0:Qt("tooltip_settings_off")}:void 0),dt=v(()=>_e.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:fs.context,buttonComponent:Yf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(ir)},className:r(Pn)?"":"out-of-view",tooltipText:r(ir)}:void 0),Lt=v(()=>r(oo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:fs.fullscreen,buttonComponent:wd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(or)}:void 0),ai=v(()=>r(Xi)?{id:"chromecast",type:"desktop-control-panel-right",weight:fs.chromecast,buttonComponent:Cd,buttonComponentProps:{state:_(),click:In},tooltipText:r(nr)}:void 0),Wi=v(()=>[r(jo),r(Hn),r(gn),r(yr),r(Ce),r(dt),r(Lt),r(ai),...fe()].filter($t=>!!$t).sort(ca));var Di=ry(),Zt=pe(Di);let ar;var Qe=h(Zt);let Bt=v(()=>!r(An));cs(Qe,{get isHidden(){return r(Bt)},get isAds(){return wt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ii.timeline},set ref($t){ii.timeline=$t}});var yi=M(Qe,2),Do=h(yi),hn=h(Do);wi(hn,17,()=>r(Ei),$t=>$t.id,($t,ht)=>{mu($t,{get buttonComponent(){return r(ht).buttonComponent},get buttonComponentProps(){return r(ht).buttonComponentProps},get tooltipText(){return r(ht).tooltipText},get disabledTooltipContent(){return r(ht).disabledTooltipContent},get disabled(){return r(ht).disabled},get className(){return r(ht).className},get tooltipEnabled(){return r(ht).tooltipEnabled},get mouseEnter(){return r(ht).mouseEnter},get mouseLeave(){return r(ht).mouseLeave},get ref(){return ii[r(ht).id]},set ref(lo){ii[r(ht).id]=lo}})});var Zr=M(hn,2);{var Fn=$t=>{let ht=v(()=>wt()?De():et()),lo=v(()=>wt()?at():ft());$d($t,{isMobile:!1,get showDuration(){return r(Dn)},get position(){return r(ht)},get duration(){return r(lo)},get ref(){return ii.time},set ref(zo){ii.time=zo}})};V(Zr,$t=>{r(no)&&$t(Fn)})}var Ur=M(Zr,2);let Tl=v(()=>!r(Ln));Bo(Ur,{className:"w-max",get disabled(){return r(Tl)},tooltipContent:Hr,get ref(){return ii.episodes},set ref($t){ii.episodes=$t},children:($t,ht)=>{var lo=ze(),zo=pe(lo);{var co=di=>{kd(di,{get position(){return et()},get duration(){return ft()},timeCodes:Z})};V(zo,di=>{r(Ln)&&di(co)})}$($t,lo)},$$slots:{default:!0}}),g(Do);var Ns=M(Do,2);wi(Ns,21,()=>r(Wi),$t=>$t.id,($t,ht)=>{var lo=ze(),zo=pe(lo);{var co=Ni=>{mu(Ni,{get buttonComponent(){return r(ht).buttonComponent},get buttonComponentProps(){return r(ht).buttonComponentProps},get tooltipText(){return r(ht).tooltipText},get disabledTooltipContent(){return r(ht).disabledTooltipContent},get disabled(){return r(ht).disabled},get className(){return r(ht).className},get ref(){return ii[r(ht).id]},set ref(vs){ii[r(ht).id]=vs}})},di=Ni=>{let vs=v(()=>!!r(ht).disabled);om(Ni,{get id(){return r(ht).id},get testId(){return r(ht).testId},get icon(){return r(ht).icon},get ariaLabel(){return r(ht).ariaLabel},get tooltipText(){return r(ht).tooltipText},get disabledTooltipContent(){return r(ht).disabledTooltipContent},get disabled(){return r(vs)},get onClick(){return r(ht).onClick},get ref(){return ii[r(ht).id]},set ref(kl){ii[r(ht).id]=kl}})};V(zo,Ni=>{I1(r(ht))?Ni(co):Ni(di,!1)})}$($t,lo)}),g(Ns),g(yi),ct(yi,$t=>lt($t),()=>lt()),g(Zt),ct(Zt,$t=>Ut($t),()=>Ut());var xr=M(Zt,2);{var Ia=$t=>{Pd($t,{get ref(){return ii.interactiveTimeIndicator},set ref(ht){ii.interactiveTimeIndicator=ht}})};V(xr,$t=>{Cn&&$t(Ia)})}I($t=>ar=te(Zt,1,"wrapper-bottom svelte-1iedtj3",null,ar,$t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Kr(Do,"clientWidth",$t=>O(Qo,$t)),$(t,Di),q(),o()}var _l=require("@vkontakte/videoplayer-core/es2015");var rm=require("@vkontakte/videoplayer-shared/es2015");var ay=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),ly=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),dy={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 sm(t,e){K(t,dy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,rm.noop),n=v(()=>o()===rm.noop),a=v(()=>r(n)||i()),s=ie(!1),d=()=>{O(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Vt(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:(u,f)=>{var _=ze(),p=pe(_);{var b=y=>{var C=ay();$(y,C)},x=y=>{var C=ly();I(()=>Fe(C,"src",e.iconUrl)),Et("error",C,d),js(C),$(y,C)};V(p,y=>{r(s)?y(b):y(x,!1)})}$(u,_)},$$slots:{default:!0}})}var cy=$e('<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 am(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=cy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i))),$(t,o)}var P1=require("@vkontakte/videoplayer-shared/es2015");var uy=L('<span class="text svelte-6gmlbk"> </span>'),py=L('<div aria-hidden="true"><!> <!></div>'),fy={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 vu(t,e){z(e,!0),K(t,fy);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,P1.noop),a=m(e,"ref",15,void 0),d=Se().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=v(()=>o()?As:am),f=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Vt(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(_){a(_)},children:(_,p)=>{var b=py();let x=v(()=>r(u)),y;var C=h(b);Si(C,()=>r(x),(P,A)=>{A(P,{})});var k=M(C,2);{var E=P=>{var A=uy(),T=h(A,!0);g(A),I(R=>ge(T,R),[()=>d("mobile_unmute")]),$(P,A)};V(k,P=>{o()&&P(E)})}g(b),I(P=>y=te(b,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),$(_,b)},$$slots:{default:!0}}),q()}var my=$e('<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 lm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=my();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(3),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i))),$(t,o)}var vy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
255
|
+
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function dm(t,e){K(t,vy);let i=m(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");lm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var A1=require("@vkontakte/videoplayer-shared/es2015");function cm(t,e){z(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,A1.noop),a=U("menu_pip");Vt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{dm(s,{get isActive(){return o()}})},$$slots:{default:!0}}),q()}var M1=require("@vkontakte/videoplayer-shared/es2015");var gy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},hy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},_y=L("<div><!></div>"),by=L("<div><!></div>"),$y=L("<div><!></div>"),yy=L("<!> <!> <!>",1),xy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),wy=L("<div><!></div>"),Sy=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Cy=L("<!> <!> <div><!></div>",1),Ty=L('<div aria-hidden="true">\xB7</div> <!>',1),ky=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Iy={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-1afsgkw {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
|
|
256
256
|
.wrapper-middle-left-second.svelte-1afsgkw,
|
|
257
257
|
.wrapper-middle-right.svelte-1afsgkw {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-1afsgkw {left:12px;}.wrapper-middle-left-second.svelte-1afsgkw {left:64px;}.wrapper-middle-right.svelte-1afsgkw {right:12px;}.controls.svelte-1afsgkw {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;}.controls.svelte-1afsgkw > *:not(:first-child) {margin-left:8px;}.hidden.svelte-1afsgkw {visibility:hidden;opacity:0;}.controls-hidden.svelte-1afsgkw {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1afsgkw {transition:none;}.overlay-mobile.svelte-1afsgkw {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
|
|
258
258
|
|
|
@@ -260,7 +260,7 @@ Try switching the\xA0quality to\xA0Auto.`},Nh=L_;var as=new Map;as.set(Xa.Interf
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
@media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-1afsgkw {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-1afsgkw {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-1afsgkw {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw {left:96px;}.wrapper-middle-right.fullscreen.svelte-1afsgkw {right:44px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
|
|
263
|
-
}`};function dm(t,e){var $r,Hr;q(e,!0),G(t,Sy);let[i,o]=Fe(),n=()=>C(vi,"$seekToInteractiveDisabledTooltip$",i),a=()=>C(Oo,"$disabledControls$",i),s=()=>C(wt,"$playbackState$",i),d=()=>C(bt,"$adPlaybackState",i),l=()=>C(Be,"$isEnded$",i),u=()=>C(Zt,"$playerSize",i),f=()=>C(Te,"$scrubbingInProgress",i),_=()=>C(oi,"$chromecastState$",i),p=()=>C(ft,"$isPictureInPictureActive",i),$=()=>C(Kt,"$pictureInPictureType$",i),w=()=>C(Oe,"$mobileNotReportControlHidden$",i),y=()=>C(rt,"$playerPhase",i),S=()=>C(Ho,"$currentGridType$",i),k=()=>C(se,"$isLive$",i),P=()=>C(et,"$settingsMenuVisible",i),A=()=>C(_e,"$isRewindableLive$",i),E=()=>C(ae,"$isActiveLive$",i),T=()=>C(mo,"$isInteractiveTime$",i),V=()=>C(Wt,"$isAudioAvailable$",i),z=()=>C(Gi,"$settingButtonRef$",i),j=()=>C(Ki,"$startedByKeyboard$",i),F=()=>C(U,"$isFullscreen",i),Z=()=>C(dt,"$mobileUnmuteButtonVisible",i),J=()=>C(Q,"$muted$",i),ne=()=>C(je,"$mobileUnmuteButtonExpanded",i),fe=()=>C(Qi,"$additionalButtons$",i),de=()=>C(Ni,"$crashed$",i),Re=()=>C(Ct,"$graphIsOpened$",i),Me=()=>C(Lt,"$adPosition",i),ee=()=>C(Fo,"$adDuration",i),Le=()=>C(st,"$position$",i),X=()=>C(Ot,"$duration$",i),N=v(e,"playerControlsWrapperRef",15,void 0),De=v(e,"playerControlsRef",15,void 0),re=v(e,"isAds",3,!1),Ee=v(e,"logoTargetUrl",3,""),Ne=v(e,"isOneVideoPlaylist",3,!1),me=v(e,"customFullscreenSupported",3,!0),B=Ce(),ce=fo(),Pe=Yt(),Ye=B.actions.internal.toggleMuted,lt=B.actions.internal.togglePlay,Ae=B.actions.internal.pause,ye=B.actions.internal.prevVideoClick,Ve=B.actions.internal.nextVideoClick,Xe=($r=B.callbacks)==null?void 0:$r.onAudioDoesNotExistHint,pt=(Hr=B.callbacks)==null?void 0:Hr.onAudioDisabledHint,rt=B.playerPhase,Ot=B.state.duration$,st=B.state.positionWithScrubbing$,wt=B.state.playbackState$,Wt=B.state.isAudioAvailable$,jt=B.state.isAudioDisabled,Be=B.state.isEnded$,se=B.state.isLive$,Q=B.state.muted$,ae=B.state.isActiveLive$,_e=B.state.isRewindableLive$,Te=B.ui.scrubbingInProgress,Oe=B.ui.mobileNotReportControlHidden$,{isActive$:ft,type$:Kt}=ce.pictureInPicture$,je=B.ui.mobileUnmuteButtonExpanded,dt=B.ui.mobileUnmuteButtonVisible,et=B.ui.settingsMenu.visible$,Et=B.ui.settingsMenu.openedByBtnKeyboard$,ii=B.ui.controls,Ge=B.actions.internal.getVideoEpisodes(),ct=B.webApi.pictureInPictureApi,oi=B.state.chromecastState$,Ni=B.state.crashed$,Oo=ii.disabledControls$,Ki=B.ui.startedByKeyboard$,Ho=B.ui.currentGridType$,Fo=B.ads.duration,Lt=B.ads.position,bt=B.ads.playbackState,U=B.ui.isFullscreen,Zt=B.ui.playerSize,Qi=B.ui.additionalButtonsDeprecated$,Bi=B.actions.internal.getVideoElement,ai=B.actions.internal.replayInteractive,mi=B.state.isInteractive,mo=B.state.isInteractiveTime$,vo=B.state.showInteractiveGraph,eo=B.state.showSeekToInteractive,Ko=B.state.showPlayPrevChapter,Ht=B.state.showInteractiveTimeIndicator,vi=ce.seekToInteractiveDisabledTooltip$,Ct=ce.graphIsOpened$,Qt=m(()=>H(B.state.playPrevChapterDisabledTooltip)),go=m(()=>H(n())),Jt=m(()=>a().has("EPISODE_BUTTON")),Zn=m(()=>a().has("GRAPH_BUTTON")),Io=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Eo=m(()=>a().has("PLAY_BUTTON")),li=m(()=>a().has("REPLAY_BUTTON")),xt=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),yi=m(()=>s()===ml.PlaybackState.PLAYING),Li=m(()=>d()==="paused"),Oi=m(()=>l()&&!re()&&!mi),Tn=m(()=>!l()||re()),Ti=m(()=>e.showNextPrevButtons&&!re()&&e.prevButtonActive),to=m(()=>e.showNextPrevButtons&&!re()&&e.nextButtonActive),pn=m(()=>u().width>300),kn=m(()=>u().width>400),Vi=m(f),Xn=m(()=>_()!==ml.ChromecastState.NOT_AVAILABLE&&!(p()&&$()===1)&&!w()&&!mi),fn=m(()=>y()==="LiveWaitingStart"),Po=m(()=>!!ct&&_()!==ml.ChromecastState.CONNECTED&&!w()&&($()===1&&r(fn)||!r(fn))&&!r(Vi)&&!mi),In=m(()=>!r(Vi)&&zi(S(),"s")),Nr=m(()=>!e.logoHidden&&u().width>350),gr=m(()=>Pe.features.fullscreen&&!(p()&&$()===1)&&(mi?me():!0)&&!r(Vi)),Jn=m(()=>(!k()||re())&&u().width>260&&!r(Vi)&&!(Pe.features.interactiveHideTime&&mi)),En=m(()=>P()||e.showControls),mn=m(()=>!re()&&!k()&&!!(Ge!=null&&Ge.length)&&r(pn)&&!r(Jt)&&!r(Vi)),Pn=m(()=>!A()||!!E()),ho=m(()=>vo&&zi(S(),"m")),tt=ve({}),vn=(0,E1.debounceFn)(du,260);We(()=>{u(),T(),vn(Bi(),ii,tt,e.showControls)});let er=()=>B.actions.internal.toggleChromecast();function tr(){ks({isAudioDisabled:jt,audioDisabledHintCallback:pt,isAudioAvailable:V(),audioIsNotExistHintCallback:Xe})&&Ye()}function An(){return kt(this,null,function*(){ct!=null&&ct.isActive()?yield ct==null?void 0:ct.remove():yield ct==null?void 0:ct.request()})}function gn(){!jt&&V()&&dt.set(!1),tr()}let hn=te(""),Qo=(ot,mt)=>{if(!ot){O(hn,ve(H("tooltip_live")));return}mt&&mt===ml.PlaybackState.PAUSED&&O(hn,ve(H("tooltip_play")))};We(()=>{Qo(r(Pn),s())});let Gi=le();We(()=>{z()&&ol(z(),P(),Et)}),We(()=>{cu(Ki,j(),tt.playButton)});var Yi=wy(),ir=pe(Yi);{var Mn=ot=>{var mt=_y(),ki=pe(mt);let ro;var ji=M(ki,2);let Ao;var Mo=h(ji);{var Yo=nt=>{let Ft=m(()=>V()&&!jt&&ne());pu(nt,{get muted(){return J()},get expanded(){return r(Ft)},click:gn,get ref(){return tt.volume},set ref(Ii){tt.volume=Ii}})};R(Mo,nt=>{(!V()||Z())&&nt(Yo)})}g(ji);var Lo=M(ji,2);let fi;var Je=h(Lo);wi(Je,1,fe,({iconUrl:nt,ariaLabel:Ft,testId:Ii,onClick:Zo,tooltip:zn})=>nt,(nt,Ft)=>{let Ii=()=>r(Ft).iconUrl,Zo=()=>r(Ft).ariaLabel,zn=()=>r(Ft).testId,we=()=>r(Ft).onClick,Rt=()=>r(Ft).tooltip,ui=m(()=>{var At;return(At=Zo())!=null?At:Rt()});nm(nt,{get iconUrl(){return Ii()},get ariaLabel(){return r(ui)},get testId(){return zn()},get onClick(){return we()}})});var Gt=M(Je,2);{var Zi=nt=>{Ed(nt,{get ref(){return tt.autoplayNextToggle},set ref(Ft){tt.autoplayNextToggle=Ft}})};R(Gt,nt=>{e.showAutoplayNext&&!Ne()&&nt(Zi)})}var Ri=M(Gt,2);{var gi=nt=>{$d(nt,{isMobile:!0,click:er,get state(){return _()},get ref(){return tt.chromecast},set ref(Ft){tt.chromecast=Ft}})};R(Ri,nt=>{r(Xn)&&nt(gi)})}var bo=M(Ri,2);{var $o=nt=>{lm(nt,{click:An,get isPictureInPictureActive(){return p()},get ref(){return tt.pip},set ref(Ft){tt.pip=Ft}})};R(bo,nt=>{r(Po)&&nt($o)})}var Hn=M(bo,2);{var so=nt=>{dl(nt,{ref$:Gi})};R(Hn,nt=>{de()&&nt(so)})}var _n=M(Hn,2);{var Fn=nt=>{bd(nt,{click:Ae,get targetUrl(){return Ee()},get logoClickable(){return e.logoClickable},get ref(){return tt.vkLogo},set ref(Ft){tt.vkLogo=Ft}})};R(_n,nt=>{r(Nr)&&nt(Fn)})}g(Lo);var Vo=M(Lo,2);let yr;var xr=h(Vo);{var wr=nt=>{let Ft=m(()=>ye.bind(null,!0));ha(nt,{get click(){return r(Ft)},type:"prev",isMobile:!0,get ref(){return tt.prevButton},set ref(Ii){tt.prevButton=Ii}})};R(xr,nt=>{r(Ti)&&nt(wr)})}var Fr=M(xr,2);{var jo=nt=>{fl(nt,{get disabled(){return r(Eo)},click:lt,isMobile:!0,get isPlaying(){return r(yi)},get ref(){return tt.playButton},set ref(Ft){tt.playButton=Ft}})};R(Fr,nt=>{r(Tn)&&nt(jo)})}var Sr=M(Fr,2);{var sr=nt=>{pl(nt,{get disabled(){return r(li)},click:lt,isMobile:!0,get ref(){return tt.replayButton},set ref(Ft){tt.replayButton=Ft}})};R(Sr,nt=>{r(Oi)&&nt(sr)})}var ar=M(Sr,2);{var Cr=nt=>{let Ft=m(()=>Ve.bind(null,!0));ha(nt,{get click(){return r(Ft)},type:"next",isMobile:!0,get ref(){return tt.nextButton},set ref(Ii){tt.nextButton=Ii}})};R(ar,nt=>{r(to)&&nt(Cr)})}g(Vo);var yo=M(Vo,2);{var Un=nt=>{var Ft=hy(),Ii=pe(Ft);{var Zo=At=>{var ei=my();let pi;ei.__click=[py,xt,e,Qt];var Hi=h(ei);let xo=m(()=>!e.showControls);Id(Hi,{get hidden(){return r(xo)},get disabled(){return r(xt)},get click(){return e.playPrevChapter},get ref(){return tt.playPrevChapterButton},set ref(ri){tt.playPrevChapterButton=ri}}),g(ei),I(ri=>pi=ie(ei,1,"wrapper-middle-left svelte-1afsgkw",null,pi,ri),[()=>({fullscreen:F(),hidden:!e.showControls})]),b(At,ei)};R(Ii,At=>{Ko&&At(Zo)})}var zn=M(Ii,2);{var we=At=>{var ei=vy();let pi;var Hi=h(ei);let xo=m(()=>!e.showControls&&!Re());Ad(Hi,{get hidden(){return r(xo)},get disabled(){return r(Zn)},get click(){return Ct.toggle},get graphIsOpened(){return Re()},get ref(){return tt.interactiveGraphButton},set ref(ri){tt.interactiveGraphButton=ri}}),g(ei),I(ri=>pi=ie(ei,1,Ql(Ko?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",pi,ri),[()=>({fullscreen:F(),hidden:!e.showControls&&!Re()})]),b(At,ei)};R(zn,At=>{r(ho)&&At(we)})}var Rt=M(zn,2);{var ui=At=>{var ei=gy();let pi;ei.__click=[fy,Io,e,go];var Hi=h(ei);let xo=m(()=>!e.showControls);Pd(Hi,{get hidden(){return r(xo)},get disabled(){return r(Io)},get click(){return e.seekToInteractive},get ref(){return tt.seekToInteractiveButton},set ref(ri){tt.seekToInteractiveButton=ri}}),g(ei),I(ri=>pi=ie(ei,1,"wrapper-middle-right svelte-1afsgkw",null,pi,ri),[()=>({fullscreen:F(),hidden:!e.showControls})]),b(At,ei)};R(Rt,At=>{eo&&At(ui)})}b(nt,Ft)};R(yo,nt=>{mi&&!f()&&nt(Un)})}I((nt,Ft,Ii,Zo)=>{ro=ie(ki,1,"overlay-mobile svelte-1afsgkw",null,ro,nt),Ao=ie(ji,1,"wrapper-top-left svelte-1afsgkw",null,Ao,Ft),fi=ie(Lo,1,"wrapper-top-right svelte-1afsgkw",null,fi,Ii),yr=ie(Vo,1,"wrapper-middle svelte-1afsgkw",null,yr,Zo)},[()=>({hidden:!r(En)}),()=>({hidden:!e.showControls,fullscreen:F()}),()=>({hidden:!e.showControls&&!w(),fullscreen:F()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(ot,mt)};R(ir,ot=>{re()||ot(Mn)})}var or=M(ir,2);{var hr=ot=>{var mt=yy(),ki=pe(mt);{var ro=fi=>{var Je=by();let Gt;var Zi=h(Je);pu(Zi,{get muted(){return J()},expanded:!1,click:gn,get ref(){return tt.volume},set ref(Ri){tt.volume=Ri}}),g(Je),I(Ri=>Gt=ie(Je,1,"wrapper-top-right svelte-1afsgkw",null,Gt,Ri),[()=>({fullscreen:F()})]),b(fi,Je)};R(ki,fi=>{Z()&&fi(ro)})}var ji=M(ki,2);{var Ao=fi=>{var Je=$y(),Gt=h(Je);let Zi=m(()=>!r(Li));fl(Gt,{get disabled(){return r(Eo)},click:lt,isMobile:!0,get isPlaying(){return r(Zi)},get ref(){return tt.playButton},set ref(Ri){tt.playButton=Ri}}),g(Je),b(fi,Je)};R(ji,fi=>{r(Li)&&fi(Ao)})}var Mo=M(ji,2);let Yo;var Lo=h(Mo);yd(Lo,{get position(){return Me()},get duration(){return ee()}}),g(Mo),I(fi=>Yo=ie(Mo,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Yo,fi),[()=>({fullscreen:F()})]),b(ot,mt)};R(or,ot=>{re()&&d()!=="inactive"&&ot(hr)})}var io=M(or,2);let oo;var Ln=h(io);let Vn;var _o=h(Ln);ie(_o,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var no=h(_o);{var Rn=ot=>{Bo(ot,{get disabled(){return r(li)},get ref(){return tt.replayButton},set ref(mt){tt.replayButton=mt},children:(mt,ki)=>{pl(mt,{get disabled(){return r(li)},click:ai})},$$slots:{default:!0}})};R(no,ot=>{mi&&ot(Rn)})}var Uo=M(no,2);{var Br=ot=>{Bo(ot,{get ref(){return tt.liveButton},set ref(mt){tt.liveButton=mt},children:(mt,ki)=>{Md(mt,{get isLiveActive(){return r(Pn)},isMobile:!0,get ariaLabel(){return r(hn)}})},$$slots:{default:!0}})};R(Uo,ot=>{!re()&&k()&&ot(Br)})}var Dn=M(Uo,2);{var _r=ot=>{let mt=m(()=>re()?Me():Le()),ki=m(()=>re()?ee():X());vd(ot,{get showDuration(){return r(kn)},get position(){return r(mt)},get duration(){return r(ki)},isMobile:!0,get ref(){return tt.time},set ref(ro){tt.time=ro}})};R(Dn,ot=>{r(Jn)&&ot(_r)})}var Nn=M(Dn,2);let Bn=m(()=>!r(mn));Bo(Nn,{className:"w-max",get disabled(){return r(Bn)},get ref(){return tt.episodes},set ref(ot){tt.episodes=ot},children:(ot,mt)=>{var ki=Ue(),ro=pe(ki);{var ji=Ao=>{var Mo=xy(),Yo=M(pe(Mo),2);wd(Yo,{get position(){return Le()},get duration(){return X()},timeCodes:Ge}),b(Ao,Mo)};R(ro,Ao=>{r(mn)&&Ao(ji)})}b(ot,ki)},$$slots:{default:!0}});var Or=M(Nn,2);{var nr=ot=>{Bo(ot,{get ref(){return tt.settings},set ref(mt){tt.settings=mt},children:(mt,ki)=>{dl(mt,{ref$:Gi})},$$slots:{default:!0}})};R(Or,ot=>{r(In)&&ot(nr)})}var br=M(Or,2);{var rr=ot=>{Bo(ot,{get ref(){return tt.fullscreen},set ref(mt){tt.fullscreen=mt},children:(mt,ki)=>{_d(mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return F()}})},$$slots:{default:!0}})};R(br,ot=>{r(gr)&&ot(rr)})}g(_o),ut(_o,ot=>De(ot),()=>De());var On=M(_o,2);xd(On,{get isAds(){return re()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return A()},get ref(){return tt.timeline},set ref(ot){tt.timeline=ot}}),g(Ln),g(io),ut(io,ot=>N(ot),()=>N());var ni=M(io,2);{var Go=ot=>{Td(ot,{get ref(){return tt.interactiveTimeIndicator},set ref(mt){tt.interactiveTimeIndicator=mt}})};R(ni,ot=>{Ht&&ot(Go)})}I((ot,mt)=>{oo=ie(io,1,"wrapper-bottom svelte-1afsgkw",null,oo,ot),Vn=ie(Ln,1,"controls-wrapper svelte-1afsgkw",null,Vn,mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:F()})]),b(t,Yi),W(),o()}at(["click"]);function Ld(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(k,"$isMobile",i),a=v(e,"bottomNoSmooth",3,!1),s=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),l=v(e,"isAds",3,!1),u=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),_=v(e,"isOneVideoPlaylist",3,!1),p=v(e,"customFullscreenSupported",3,!0),$=v(e,"endScreenShown",3,!1),w=v(e,"onDisabledPlayPrevChapterClick",3,cm.noop),y=v(e,"onDisabledSeekToInteractiveClick",3,cm.noop),k=Ce().ui.isMobile,P=te(!1);Ut(()=>{let V=setTimeout(()=>O(P,!0),0);return()=>clearTimeout(V)});var A=Ue(),E=pe(A);{var T=V=>{var z=Ue(),j=pe(z);{var F=J=>{dm(J,{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 u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return _()},get customFullscreenSupported(){return p()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(ne){s(ne)},get playerControlsRef(){return d()},set playerControlsRef(ne){d(ne)}})},Z=J=>{im(J,{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 u()},get isOneVideoPlaylist(){return _()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(ne){s(ne)},get playerControlsRef(){return d()},set playerControlsRef(ne){d(ne)}})};R(j,J=>{n()?J(F):J(Z,!1)})}b(V,z)};R(E,V=>{r(P)&&V(T)})}b(t,A),W(),o()}var Cy=$e('<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 um(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i))),b(t,o)}function pm(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);um(t,{get style(){return r(o)}})}var Ty=$e('<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 fm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i))),b(t,o)}var ky=$e('<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 mm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=ky();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i))),b(t,o)}function fu(t,e){let i=v(e,"isOff",3,!1);var o=Ue(),n=pe(o);{var a=d=>{mm(d,{})},s=d=>{fm(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var Iy=$e('<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 vm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i))),b(t,o)}function gm(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);vm(t,{get style(){return r(o)}})}var Ey=$e('<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 hm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i))),b(t,o)}function _m(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);hm(t,{get style(){return r(o)}})}var Py=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Ay=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),My=L("<div><!></div>"),Ly={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
|
|
263
|
+
}`};function um(t,e){var hr,Br;z(e,!0),K(t,Iy);let[i,o]=Oe(),n=()=>S(mi,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(Oo,"$disabledControls$",i),s=()=>S(wt,"$playbackState$",i),d=()=>S(bt,"$adPlaybackState",i),l=()=>S(Be,"$isEnded$",i),u=()=>S(Z,"$playerSize",i),f=()=>S(Pe,"$scrubbingInProgress",i),_=()=>S(li,"$chromecastState$",i),p=()=>S(ut,"$isPictureInPictureActive",i),b=()=>S(Kt,"$pictureInPictureType$",i),x=()=>S(He,"$mobileNotReportControlHidden$",i),y=()=>S(ft,"$playerPhase",i),C=()=>S(ho,"$currentGridType$",i),k=()=>S(se,"$isLive$",i),E=()=>S(tt,"$settingsMenuVisible",i),P=()=>S(_e,"$isRewindableLive$",i),A=()=>S(ae,"$isActiveLive$",i),T=()=>S(fi,"$isInteractiveTime$",i),R=()=>S(Yt,"$isAudioAvailable$",i),F=()=>S(Xi,"$settingButtonRef$",i),Y=()=>S(Hi,"$startedByKeyboard$",i),H=()=>S(Dt,"$isFullscreen",i),X=()=>S(gt,"$mobileUnmuteButtonVisible",i),oe=()=>S(Q,"$muted$",i),ee=()=>S(Ye,"$mobileUnmuteButtonExpanded",i),ue=()=>S(ri,"$additionalButtons$",i),le=()=>S(Oi,"$crashed$",i),Me=()=>S(Tt,"$graphIsOpened$",i),Le=()=>S(At,"$adPosition",i),J=()=>S(Ho,"$adDuration",i),Ve=()=>S(lt,"$position$",i),j=()=>S(Ut,"$duration$",i),N=m(e,"playerControlsWrapperRef",15,void 0),Re=m(e,"playerControlsRef",15,void 0),re=m(e,"isAds",3,!1),ke=m(e,"logoTargetUrl",3,""),Ne=m(e,"isOneVideoPlaylist",3,!1),fe=m(e,"customFullscreenSupported",3,!0),B=Se(),de=go(),Ie=Wt(),Ke=B.actions.internal.toggleMuted,st=B.actions.internal.togglePlay,xe=B.actions.internal.pause,ye=B.actions.internal.prevVideoClick,De=B.actions.internal.nextVideoClick,et=(hr=B.callbacks)==null?void 0:hr.onAudioDoesNotExistHint,at=(Br=B.callbacks)==null?void 0:Br.onAudioDisabledHint,ft=B.playerPhase,Ut=B.state.duration$,lt=B.state.positionWithScrubbing$,wt=B.state.playbackState$,Yt=B.state.isAudioAvailable$,Xt=B.state.isAudioDisabled,Be=B.state.isEnded$,se=B.state.isLive$,Q=B.state.muted$,ae=B.state.isActiveLive$,_e=B.state.isRewindableLive$,Pe=B.ui.scrubbingInProgress,He=B.ui.mobileNotReportControlHidden$,{isActive$:ut,type$:Kt}=de.pictureInPicture$,Ye=B.ui.mobileUnmuteButtonExpanded,gt=B.ui.mobileUnmuteButtonVisible,tt=B.ui.settingsMenu.visible$,St=B.ui.settingsMenu.openedByBtnKeyboard$,ni=B.ui.controls,Xe=B.actions.internal.getVideoEpisodes(),pt=B.webApi.pictureInPictureApi,li=B.state.chromecastState$,Oi=B.state.crashed$,Oo=ni.disabledControls$,Hi=B.ui.startedByKeyboard$,ho=B.ui.currentGridType$,Ho=B.ads.duration,At=B.ads.position,bt=B.ads.playbackState,Dt=B.ui.isFullscreen,Z=B.ui.playerSize,ri=B.ui.additionalButtonsDeprecated$,pi=B.actions.internal.getVideoElement,Fi=B.actions.internal.replayInteractive,ti=B.state.isInteractive,fi=B.state.isInteractiveTime$,bi=B.state.showInteractiveGraph,Zi=B.state.showSeekToInteractive,Ui=B.state.showPlayPrevChapter,Qt=B.state.showInteractiveTimeIndicator,mi=de.seekToInteractiveDisabledTooltip$,Tt=de.graphIsOpened$,zt=v(()=>U(B.state.playPrevChapterDisabledTooltip)),si=v(()=>U(n())),_o=v(()=>a().has("EPISODE_BUTTON")),Yn=v(()=>a().has("GRAPH_BUTTON")),Po=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Ao=v(()=>a().has("PLAY_BUTTON")),ci=v(()=>a().has("REPLAY_BUTTON")),xt=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Ti=v(()=>s()===_l.PlaybackState.PLAYING),Li=v(()=>d()==="paused"),zi=v(()=>l()&&!re()&&!ti),Sn=v(()=>!l()||re()),ki=v(()=>e.showNextPrevButtons&&!re()&&e.prevButtonActive),io=v(()=>e.showNextPrevButtons&&!re()&&e.nextButtonActive),dn=v(()=>u().width>300),Cn=v(()=>u().width>400),Vi=v(f),jn=v(()=>_()!==_l.ChromecastState.NOT_AVAILABLE&&!(p()&&b()===1)&&!x()&&!ti),cn=v(()=>y()==="LiveWaitingStart"),Mo=v(()=>!!pt&&_()!==_l.ChromecastState.CONNECTED&&!x()&&(b()===1&&r(cn)||!r(cn))&&!r(Vi)&&!ti),Tn=v(()=>!r(Vi)&&Gi(C(),"s")),Vr=v(()=>!e.logoHidden&&u().width>350),mr=v(()=>Ie.features.fullscreen&&!(p()&&b()===1)&&(ti?fe():!0)&&!r(Vi)),Zn=v(()=>(!k()||re())&&u().width>260&&!r(Vi)&&!(Ie.features.interactiveHideTime&&ti)),kn=v(()=>E()||e.showControls),un=v(()=>!re()&&!k()&&!!(Xe!=null&&Xe.length)&&r(dn)&&!r(_o)&&!r(Vi)),In=v(()=>!P()||!!A()),bo=v(()=>bi&&Gi(C(),"m")),it=me({}),pn=(0,M1.debounceFn)(vl,260);qe(()=>{u(),T(),pn(pi(),ni,it,e.showControls)});let Xn=()=>B.actions.internal.toggleChromecast();function Jn(){Es({isAudioDisabled:Xt,audioDisabledHintCallback:at,isAudioAvailable:R(),audioIsNotExistHintCallback:et})&&Ke()}function En(){return It(this,null,function*(){pt!=null&&pt.isActive()?yield pt==null?void 0:pt.remove():yield pt==null?void 0:pt.request()})}function fn(){!Xt&&R()&>.set(!1),Jn()}let mn=ie(""),Ko=(je,Mt)=>{if(!je){O(mn,me(U("tooltip_live")));return}Mt&&Mt===_l.PlaybackState.PAUSED&&O(mn,me(U("tooltip_play")))};qe(()=>{Ko(r(In),s())});let Xi=ce();qe(()=>{F()&&sl(F(),E(),St)}),qe(()=>{fu(Hi,Y(),it.playButton)});var Ji=ky(),er=pe(Ji);{var Pn=je=>{var Mt=xy(),Ii=pe(Mt);let eo;var so=M(Ii,2);let Lo;var yo=h(so);{var Uo=Je=>{let Nt=v(()=>R()&&!Xt&&ee());vu(Je,{get muted(){return oe()},get expanded(){return r(Nt)},click:fn,get ref(){return it.volume},set ref(Ei){it.volume=Ei}})};V(yo,Je=>{(!R()||X())&&Je(Uo)})}g(so);var qi=M(so,2);let Ri;var ot=h(qi);wi(ot,1,ue,({iconUrl:Je,ariaLabel:Nt,testId:Ei,onClick:jo,tooltip:Hn})=>Je,(Je,Nt)=>{let Ei=()=>r(Nt).iconUrl,jo=()=>r(Nt).ariaLabel,Hn=()=>r(Nt).testId,gn=()=>r(Nt).onClick,yr=()=>r(Nt).tooltip,Ce=v(()=>{var dt;return(dt=jo())!=null?dt:yr()});sm(Je,{get iconUrl(){return Ei()},get ariaLabel(){return r(Ce)},get testId(){return Hn()},get onClick(){return gn()}})});var jt=M(ot,2);{var to=Je=>{Ld(Je,{get ref(){return it.autoplayNextToggle},set ref(Nt){it.autoplayNextToggle=Nt}})};V(jt,Je=>{e.showAutoplayNext&&!Ne()&&Je(to)})}var xi=M(jt,2);{var $i=Je=>{Cd(Je,{isMobile:!0,click:Xn,get state(){return _()},get ref(){return it.chromecast},set ref(Nt){it.chromecast=Nt}})};V(xi,Je=>{r(jn)&&Je($i)})}var Vo=M(xi,2);{var xo=Je=>{cm(Je,{click:En,get isPictureInPictureActive(){return p()},get ref(){return it.pip},set ref(Nt){it.pip=Nt}})};V(Vo,Je=>{r(Mo)&&Je(xo)})}var Dn=M(Vo,2);{var ao=Je=>{pl(Je,{ref$:Xi})};V(Dn,Je=>{le()&&Je(ao)})}var vn=M(Dn,2);{var Nn=Je=>{Sd(Je,{click:xe,get targetUrl(){return ke()},get logoClickable(){return e.logoClickable},get ref(){return it.vkLogo},set ref(Nt){it.vkLogo=Nt}})};V(vn,Je=>{r(Vr)&&Je(Nn)})}g(qi);var Ro=M(qi,2);let _r;var br=h(Ro);{var Or=Je=>{let Nt=v(()=>ye.bind(null,!0));ba(Je,{get click(){return r(Nt)},type:"prev",isMobile:!0,get ref(){return it.prevButton},set ref(Ei){it.prevButton=Ei}})};V(br,Je=>{r(ki)&&Je(Or)})}var $r=M(br,2);{var Hr=Je=>{hl(Je,{get disabled(){return r(Ao)},click:st,isMobile:!0,get isPlaying(){return r(Ti)},get ref(){return it.playButton},set ref(Nt){it.playButton=Nt}})};V($r,Je=>{r(Sn)&&Je(Hr)})}var Go=M($r,2);{var Bn=Je=>{gl(Je,{get disabled(){return r(ci)},click:st,isMobile:!0,get ref(){return it.replayButton},set ref(Nt){it.replayButton=Nt}})};V(Go,Je=>{r(zi)&&Je(Bn)})}var sr=M(Go,2);{var Fr=Je=>{let Nt=v(()=>De.bind(null,!0));ba(Je,{get click(){return r(Nt)},type:"next",isMobile:!0,get ref(){return it.nextButton},set ref(Ei){it.nextButton=Ei}})};V(sr,Je=>{r(io)&&Je(Fr)})}g(Ro);var Yo=M(Ro,2);{var On=Je=>{var Nt=yy(),Ei=pe(Nt);{var jo=dt=>{var Lt=_y();let ai;Lt.__click=[gy,xt,e,zt];var Wi=h(Lt);let Di=v(()=>!e.showControls);Md(Wi,{get hidden(){return r(Di)},get disabled(){return r(xt)},get click(){return e.playPrevChapter},get ref(){return it.playPrevChapterButton},set ref(Zt){it.playPrevChapterButton=Zt}}),g(Lt),I(Zt=>ai=te(Lt,1,"wrapper-middle-left svelte-1afsgkw",null,ai,Zt),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(dt,Lt)};V(Ei,dt=>{Ui&&dt(jo)})}var Hn=M(Ei,2);{var gn=dt=>{var Lt=by();let ai;var Wi=h(Lt);let Di=v(()=>!e.showControls&&!Me());Rd(Wi,{get hidden(){return r(Di)},get disabled(){return r(Yn)},get click(){return Tt.toggle},get graphIsOpened(){return Me()},get ref(){return it.interactiveGraphButton},set ref(Zt){it.interactiveGraphButton=Zt}}),g(Lt),I(Zt=>ai=te(Lt,1,Jl(Ui?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",ai,Zt),[()=>({fullscreen:H(),hidden:!e.showControls&&!Me()})]),$(dt,Lt)};V(Hn,dt=>{r(bo)&&dt(gn)})}var yr=M(Hn,2);{var Ce=dt=>{var Lt=$y();let ai;Lt.__click=[hy,Po,e,si];var Wi=h(Lt);let Di=v(()=>!e.showControls);Vd(Wi,{get hidden(){return r(Di)},get disabled(){return r(Po)},get click(){return e.seekToInteractive},get ref(){return it.seekToInteractiveButton},set ref(Zt){it.seekToInteractiveButton=Zt}}),g(Lt),I(Zt=>ai=te(Lt,1,"wrapper-middle-right svelte-1afsgkw",null,ai,Zt),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(dt,Lt)};V(yr,dt=>{Zi&&dt(Ce)})}$(Je,Nt)};V(Yo,Je=>{ti&&!f()&&Je(On)})}I((Je,Nt,Ei,jo)=>{eo=te(Ii,1,"overlay-mobile svelte-1afsgkw",null,eo,Je),Lo=te(so,1,"wrapper-top-left svelte-1afsgkw",null,Lo,Nt),Ri=te(qi,1,"wrapper-top-right svelte-1afsgkw",null,Ri,Ei),_r=te(Ro,1,"wrapper-middle svelte-1afsgkw",null,_r,jo)},[()=>({hidden:!r(kn)}),()=>({hidden:!e.showControls,fullscreen:H()}),()=>({hidden:!e.showControls&&!x(),fullscreen:H()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(je,Mt)};V(er,je=>{re()||je(Pn)})}var tr=M(er,2);{var vr=je=>{var Mt=Cy(),Ii=pe(Mt);{var eo=Ri=>{var ot=wy();let jt;var to=h(ot);vu(to,{get muted(){return oe()},expanded:!1,click:fn,get ref(){return it.volume},set ref(xi){it.volume=xi}}),g(ot),I(xi=>jt=te(ot,1,"wrapper-top-right svelte-1afsgkw",null,jt,xi),[()=>({fullscreen:H()})]),$(Ri,ot)};V(Ii,Ri=>{X()&&Ri(eo)})}var so=M(Ii,2);{var Lo=Ri=>{var ot=Sy(),jt=h(ot);let to=v(()=>!r(Li));hl(jt,{get disabled(){return r(Ao)},click:st,isMobile:!0,get isPlaying(){return r(to)},get ref(){return it.playButton},set ref(xi){it.playButton=xi}}),g(ot),$(Ri,ot)};V(so,Ri=>{r(Li)&&Ri(Lo)})}var yo=M(so,2);let Uo;var qi=h(yo);Td(qi,{get position(){return Le()},get duration(){return J()}}),g(yo),I(Ri=>Uo=te(yo,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Uo,Ri),[()=>({fullscreen:H()})]),$(je,Mt)};V(tr,je=>{re()&&d()!=="inactive"&&je(vr)})}var oo=M(tr,2);let no;var An=h(oo);let Mn;var $o=h(An);te($o,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var ro=h($o);{var Ln=je=>{Bo(je,{get disabled(){return r(ci)},get ref(){return it.replayButton},set ref(Mt){it.replayButton=Mt},children:(Mt,Ii)=>{gl(Mt,{get disabled(){return r(ci)},click:Fi})},$$slots:{default:!0}})};V(ro,je=>{ti&&je(Ln)})}var Fo=M(ro,2);{var Rr=je=>{Bo(je,{get ref(){return it.liveButton},set ref(Mt){it.liveButton=Mt},children:(Mt,Ii)=>{Dd(Mt,{get isLiveActive(){return r(In)},isMobile:!0,get ariaLabel(){return r(mn)}})},$$slots:{default:!0}})};V(Fo,je=>{!re()&&k()&&je(Rr)})}var ir=M(Fo,2);{var gr=je=>{let Mt=v(()=>re()?Le():Ve()),Ii=v(()=>re()?J():j());$d(je,{get showDuration(){return r(Cn)},get position(){return r(Mt)},get duration(){return r(Ii)},isMobile:!0,get ref(){return it.time},set ref(eo){it.time=eo}})};V(ir,je=>{r(Zn)&&je(gr)})}var Vn=M(ir,2);let Rn=v(()=>!r(un));Bo(Vn,{className:"w-max",get disabled(){return r(Rn)},get ref(){return it.episodes},set ref(je){it.episodes=je},children:(je,Mt)=>{var Ii=ze(),eo=pe(Ii);{var so=Lo=>{var yo=Ty(),Uo=M(pe(yo),2);kd(Uo,{get position(){return Ve()},get duration(){return j()},timeCodes:Xe}),$(Lo,yo)};V(eo,Lo=>{r(un)&&Lo(so)})}$(je,Ii)},$$slots:{default:!0}});var Dr=M(Vn,2);{var or=je=>{Bo(je,{get ref(){return it.settings},set ref(Mt){it.settings=Mt},children:(Mt,Ii)=>{pl(Mt,{ref$:Xi})},$$slots:{default:!0}})};V(Dr,je=>{r(Tn)&&je(or)})}var nr=M(Dr,2);{var rr=je=>{Bo(je,{get ref(){return it.fullscreen},set ref(Mt){it.fullscreen=Mt},children:(Mt,Ii)=>{wd(Mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return H()}})},$$slots:{default:!0}})};V(nr,je=>{r(mr)&&je(rr)})}g($o),ct($o,je=>Re(je),()=>Re());var Qo=M($o,2);cs(Qo,{get isAds(){return re()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return it.timeline},set ref(je){it.timeline=je}}),g(An),g(oo),ct(oo,je=>N(je),()=>N());var ii=M(oo,2);{var Nr=je=>{Pd(je,{get ref(){return it.interactiveTimeIndicator},set ref(Mt){it.interactiveTimeIndicator=Mt}})};V(ii,je=>{Qt&&je(Nr)})}I((je,Mt)=>{no=te(oo,1,"wrapper-bottom svelte-1afsgkw",null,no,je),Mn=te(An,1,"controls-wrapper svelte-1afsgkw",null,Mn,Mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:H()})]),$(t,Ji),q(),o()}rt(["click"]);function Bd(t,e){z(e,!0);let[i,o]=Oe(),n=()=>S(k,"$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),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),_=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),b=m(e,"endScreenShown",3,!1),x=m(e,"onDisabledPlayPrevChapterClick",3,pm.noop),y=m(e,"onDisabledSeekToInteractiveClick",3,pm.noop),k=Se().ui.isMobile,E=ie(!1);qt(()=>{let R=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(R)});var P=ze(),A=pe(P);{var T=R=>{var F=ze(),Y=pe(F);{var H=oe=>{um(oe,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return _()},get customFullscreenSupported(){return p()},get endScreenShown(){return b()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return x()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(ee){s(ee)},get playerControlsRef(){return d()},set playerControlsRef(ee){d(ee)}})},X=oe=>{nm(oe,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return _()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(ee){s(ee)},get playerControlsRef(){return d()},set playerControlsRef(ee){d(ee)}})};V(Y,oe=>{n()?oe(H):oe(X,!1)})}$(R,F)};V(A,R=>{r(E)&&R(T)})}$(t,P),q(),o()}var Ey=$e('<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 fm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({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 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 Py=$e('<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 vm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Py();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({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 Ay=$e('<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 gm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({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 gu(t,e){let i=m(e,"isOff",3,!1);var o=ze(),n=pe(o);{var a=d=>{gm(d,{})},s=d=>{vm(d,{})};V(n,d=>{i()?d(a):d(s,!1)})}$(t,o)}var My=$e('<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 hm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=My();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({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 _m(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);hm(t,{get style(){return r(o)}})}var Ly=$e('<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 bm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Ly();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),I(()=>n=Te(o,n,W({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 $m(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);bm(t,{get style(){return r(o)}})}var Vy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Ry=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Dy=L("<div><!></div>"),Ny={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
|
|
264
264
|
animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
|
|
265
265
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
|
|
266
266
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
|
|
@@ -275,21 +275,23 @@ Try switching the\xA0quality to\xA0Auto.`},Nh=L_;var as=new Map;as.set(Xa.Interf
|
|
|
275
275
|
@keyframes svelte-1ad3n06-fadeOut {
|
|
276
276
|
0% {opacity:1;}
|
|
277
277
|
100% {opacity:0;}
|
|
278
|
-
}`};function
|
|
279
|
-
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function
|
|
278
|
+
}`};function ym(t,e){z(e,!0),K(t,Ny);let[i,o]=Oe(),n=()=>S(e.data,"$data",i),s=Se().ui.t,d=v(()=>!n()),l=v(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),u=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}),_=v(()=>{var C,k;return(C=n())!=null&&C.t?s(n().t.key,{value:n().t.value||""}):(k=n())==null?void 0:k.text});var p=Dy();let b;var x=h(p);{var y=C=>{var k=Ry(),E=pe(k),P=h(E);{var A=fe=>{let B=v(()=>r(f)==="FORWARD_SEEK");mm(fe,{get reversed(){return r(B)}})};V(P,fe=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&fe(A)})}var T=M(P,2);{var R=fe=>{ps(fe,{})};V(T,fe=>{r(f)==="PAUSE"&&fe(R)})}var F=M(T,2);{var Y=fe=>{Mr(fe,{})};V(F,fe=>{r(f)==="PLAY"&&fe(Y)})}var H=M(F,2);{var X=fe=>{Ad(fe,{})};V(H,fe=>{r(f)==="REPLAY"&&fe(X)})}var oe=M(H,2);{var ee=fe=>{gu(fe,{isOff:!0})};V(oe,fe=>{r(f)==="SUBTITLES_OFF"&&fe(ee)})}var ue=M(oe,2);{var le=fe=>{gu(fe,{})};V(ue,fe=>{r(f)==="SUBTITLES_ON"&&fe(le)})}var Me=M(ue,2);{var Le=fe=>{let B=v(()=>r(f)==="RATE_UP");_m(fe,{get reversed(){return r(B)}})};V(Me,fe=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&fe(Le)})}var J=M(Me,2);{var Ve=fe=>{let B=v(()=>r(f)==="EPISODE_NEXT");$m(fe,{get reversed(){return r(B)}})};V(J,fe=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&fe(Ve)})}var j=M(J,2);{var N=fe=>{As(fe,{volume:0})};V(j,fe=>{r(f)==="MUTE"&&fe(N)})}var Re=M(j,2);{var re=fe=>{As(fe,{volume:1})};V(Re,fe=>{r(f)==="VOLUME"&&fe(re)})}g(E);var ke=M(E,2);{var Ne=fe=>{var B=Vy(),de=h(B,!0);g(B),I(()=>ge(de,r(_))),$(fe,B)};V(ke,fe=>{r(_)&&fe(Ne)})}$(C,k)};V(x,C=>{!r(d)&&r(f)&&C(y)})}g(p),I(C=>b=te(p,1,"hot-key-helpers-container svelte-1ad3n06",null,b,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(u)})]),$(t,p),q(),o()}var By=$e('<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 xm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=By();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),$(t,o)}var Oy=$e('<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 wm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Oy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),$(t,o)}function Vs(t,e){z(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())),s=v(()=>(()=>{let _="";return r(a)&&(_+="transform: rotate(180deg);"),o()&&(_+="color: var(--btn-color, #fff);"),_.length?_:void 0})());var d=ze(),l=pe(d);{var u=_=>{let p=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");xm(_,{get style(){return r(s)},get"data-testid"(){return r(p)}})},f=_=>{let p=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");wm(_,{get style(){return r(s)},get"data-testid"(){return r(p)}})};V(l,_=>{r(n)?_(u):_(f,!1)})}$(t,d),q()}var Hy=(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}},Fy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Uy=L('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),zy={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function Od(t,e){z(e,!0),K(t,zy);let i=m(e,"isShifted",3,!1),o=Se(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=U("aria_label_spherical_control");var _=Uy();let p;_.__keydown=[Hy,n,a,s,l,d],_.__keyup=[Fy,n,u],Fe(_,"aria-label",f);var b=h(_),x=h(b),y=h(x);y.__mousedown=a,y.__mouseup=u;var C=h(y);Vs(C,{direction:"up",useBtnColor:!0}),g(y);var k=M(y,2);k.__mousedown=d,k.__mouseup=u;var E=h(k);Vs(E,{direction:"up",useBtnColor:!0}),g(k),g(x);var P=M(x,2),A=h(P);A.__mousedown=l,A.__mouseup=u;var T=h(A);Vs(T,{direction:"up",useBtnColor:!0}),g(A);var R=M(A,2);R.__mousedown=s,R.__mouseup=u;var F=h(R);Vs(F,{direction:"up",useBtnColor:!0}),g(R),g(P),g(b),g(_),I(Y=>p=te(_,1,"immersive-controls svelte-1yzc86r",null,p,Y),[()=>({"m-shifted":i()})]),Et("mouseleave",y,u),Et("mouseleave",k,u),Et("mouseleave",A,u),Et("mouseleave",R,u),$(t,_),q()}rt(["keydown","keyup","mousedown","mouseup"]);var ms=require("@vkontakte/videoplayer-shared/es2015");var L1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var hu=class{constructor(){this.flickeringTimeout=L1(1e3);this.subscriptions=new ms.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new ms.ValueSubject([]);this.captionsPrepared$=new ms.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,ms.filter)(()=>this.isEnabled()),(0,ms.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:a,value:s},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(s),value:""}):n.length===0?n.push({value:String(s)}):n[n.length-1].value=String(s)),n),[])),this.captionsPrepared$.next(i)}};var qy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Wy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),Ky=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Qy=L('<div><span class="caption svelte-c2x749"><!></span></div>'),Gy=L("<div><!></div>"),Yy={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
|
|
279
|
+
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function xa(t,e){z(e,!0),K(t,Yy);let[i,o]=Oe(),n=()=>S(_,"$currentSubtitle$",i),a=()=>S(b,"$isLive$",i),s=()=>S(x,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),l=m(e,"isMobile",3,!1),u=Se(),f=Wt(),_=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,b=u.state.isLive$,x=u.ui.isFullscreen,y=v(()=>!!n().isAuto),C=v(()=>!!a()),k=v(()=>e.playerSize.width*.02),E=v(()=>l()&&!s()||r(k)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(k)),P=ie(null);qe(()=>{var X,oe,ee;(X=r(P))==null||X.setIsAuto(r(y)),(oe=r(P))==null||oe.setIsLive(r(C)),(ee=r(P))==null||ee.setCaptions(e.captions)});let A=ie(me([[]]));qt(()=>{O(P,me(new hu().subscribe()));let X=r(P).captionsPrepared$.subscribe(oe=>{O(A,me(oe))});return()=>{var oe;(oe=r(P))==null||oe.destroy(),X.unsubscribe()}}),qt(()=>{if(r(y)){let X=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(X)}}else p.set(!1)});let T=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=Gy();let F;var Y=h(R);{var H=X=>{var oe=Qy();let ee;var ue=h(oe),le=h(ue);{var Me=J=>{var Ve=qy(),j=h(Ve),N=h(j,!0);g(j),g(Ve),I(Re=>{var re;nt(j,`font-size: ${(re=r(E))!=null?re:""}px`),ge(N,Re)},[()=>U("subtitles_auto_caption")]),$(J,Ve)},Le=(J,Ve)=>{{var j=Re=>{var re=ze(),ke=pe(re);wi(ke,17,()=>r(A),jl,(Ne,fe)=>{var B=Wy(),de=h(B);wi(de,21,()=>r(fe),({value:Ie,timeAppeared:Ke})=>Ke,(Ie,Ke)=>{let st=()=>r(Ke).value,xe=()=>r(Ke).timeAppeared;var ye=ze(),De=pe(ye);{var et=at=>{var ft=cr();I(()=>ge(ft,st())),$(at,ft)};V(De,at=>{(!xe()||xe()<=e.position)&&at(et)})}$(Ie,ye)}),g(de),g(B),I(()=>{var Ie;return nt(de,`font-size: ${(Ie=r(E))!=null?Ie:""}px`)}),$(Ne,B)}),$(Re,re)},N=Re=>{var re=ze(),ke=pe(re);wi(ke,17,()=>e.captions,({value:Ne})=>Ne,(Ne,fe)=>{let B=()=>r(fe).value;var de=Ky(),Ie=h(de),Ke=h(Ie,!0);g(Ie),g(de),I(()=>{var st;nt(Ie,`font-size: ${(st=r(E))!=null?st:""}px`),ge(Ke,B())}),$(Ne,de)}),$(Re,re)};V(J,Re=>{var re;r(y)&&((re=r(A))!=null&&re.length)?Re(j):Re(N,!1)},Ve)}};V(le,J=>{r(y)&&d()?J(Me):J(Le,!1)})}g(ue),g(oe),I(J=>{var Ve;ee=te(oe,1,"subtitles-caption svelte-c2x749",null,ee,J),nt(oe,`--subtitles-caption-margin: ${(Ve=r(T))!=null?Ve:""}%`)},[()=>({mobile:l()})]),$(X,oe)};V(Y,X=>{var oe;(e.captions.length||(oe=r(A))!=null&&oe.length)&&X(H)})}g(R),I(X=>F=te(R,1,"subtitles-container svelte-c2x749",null,F,X),[()=>({shifted:e.shifted,auto:r(y)&&!r(C)&&!d()})]),$(t,R),q(),o()}var jy=L('<div class="text svelte-raurnb"> </div>'),Zy=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>'),Xy={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 Hd(t,e){z(e,!0),K(t,Xy);let i=Wt();var o=Zy();let n;var a=M(h(o),2);{var s=d=>{var l=jy(),u=h(l);g(l),I(()=>{var f;return ge(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,l)};V(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),I(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),nt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),q()}var Jy=$e('<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 Sm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Jy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 e4=L('<div class="container svelte-13zpvm8"><!></div>'),t4={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 Fd(t){K(t,t4);var e=e4(),i=h(e);Sm(i,{}),g(e),$(t,e)}var i4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),o4=L("<div><!></div>"),n4={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,
|
|
280
|
+
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,
|
|
281
|
+
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 wa(t,e){z(e,!0),K(t,n4);let i=m(e,"iconVisible",3,!0),o=Se(),n=Wt(),a=o.ui.startedByKeyboard$,s=U("tooltip_play"),d=b=>{let x=b.code;["Enter","Space"].includes(x)&&(b.stopPropagation(),b.preventDefault(),a.set(!0),e.startVideo())},l=b=>{b.stopPropagation(),e.startVideo()};var u=o4();let f;u.__click=l;var _=h(u);{var p=b=>{var x=i4();x.__keydown=d,Fe(x,"aria-label",s);var y=M(h(x),2);Mr(y,{}),g(x),$(b,x)};V(_,b=>{i()&&b(p)})}return g(u),I(b=>{f=te(u,1,"container svelte-1ciju45",null,f,b),nt(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,u),q({handlePressKey:d,handleClick:l})}rt(["click","keydown"]);var r4=L("<div> </div>"),s4={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
280
282
|
0deg,
|
|
281
283
|
rgba(0, 0, 0, 0) 0%,
|
|
282
284
|
rgba(0, 0, 0, 0.02) 19%,
|
|
283
285
|
rgba(0, 0, 0, 0.10) 34%,
|
|
284
286
|
rgba(0, 0, 0, 0.40) 60%,
|
|
285
287
|
rgba(0, 0, 0, 0.60) 100%
|
|
286
|
-
);}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function
|
|
288
|
+
);}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Cm(t,e){K(t,s4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1);var n=r4();let a;var s=h(n,!0);g(n),I(d=>{a=te(n,1,"title svelte-1bcvcf2",null,a,d),ge(s,i())},[()=>({hidden:o()})]),$(t,n)}var a4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),l4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),d4=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),c4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),u4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),p4={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 Tm(t,e){z(e,!0),K(t,p4);let i=ie(""),o=ie(""),n=ie(""),a=ie(""),s,d=P=>String(P).padStart(2,"0"),l=P=>{let A=Math.floor(P/86400);A&&(P-=A*86400,O(i,me(d(A))));let T=Math.floor(P/3600);O(o,me(d(T)));let R=Math.floor(P/60)%60;O(n,me(d(R)));let F=P%60;O(a,me(d(F)))},u=()=>{let P=Math.floor(Date.now()/1e3),A=e.startTime-P;l(A),A>=1?s=requestAnimationFrame(u):e.onTimerOver()};qt(()=>{s=requestAnimationFrame(u)}),xn(()=>{cancelAnimationFrame(s)});var f=u4(),_=h(f);{var p=P=>{var A=a4(),T=pe(A),R=h(T),F=h(R,!0);g(R);var Y=M(R,2),H=h(Y,!0);g(Y),g(T);var X=M(T,2),oe=h(X,!0);g(X),I((ee,ue)=>{ge(F,r(i)),ge(H,ee),ge(oe,ue)},[()=>U("waiting_live_day_value"),()=>U("waiting_live_colon")]),$(P,A)};V(_,P=>{r(i)&&P(p)})}var b=M(_,2);{var x=P=>{var A=l4(),T=pe(A),R=h(T),F=h(R,!0);g(R);var Y=M(R,2),H=h(Y,!0);g(Y),g(T);var X=M(T,2),oe=h(X,!0);g(X),I((ee,ue)=>{ge(F,r(o)),ge(H,ee),ge(oe,ue)},[()=>U("waiting_live_hour_value"),()=>U("waiting_live_colon")]),$(P,A)};V(b,P=>{r(o)&&P(x)})}var y=M(b,2);{var C=P=>{var A=d4(),T=pe(A),R=h(T),F=h(R,!0);g(R);var Y=M(R,2),H=h(Y,!0);g(Y),g(T);var X=M(T,2),oe=h(X,!0);g(X),I((ee,ue)=>{ge(F,r(n)),ge(H,ee),ge(oe,ue)},[()=>U("waiting_live_minute_value"),()=>U("waiting_live_colon")]),$(P,A)};V(y,P=>{r(n)&&P(C)})}var k=M(y,2);{var E=P=>{var A=c4(),T=h(A),R=h(T,!0);g(T);var F=M(T,2),Y=h(F,!0);g(F),g(A),I(H=>{ge(R,r(a)),ge(Y,H)},[()=>U("waiting_live_second_value")]),$(P,A)};V(k,P=>{r(a)&&P(E)})}g(f),$(t,f),q()}var f4=$e('<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 km(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=f4();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(4),g(o),I(()=>n=Te(o,n,W({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 m4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),v4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),g4=L('<div class="waiting-container svelte-15pewff"><!></div>'),h4={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 Ud(t,e){z(e,!0),K(t,h4);let i=ie(!1);qe(()=>{O(i,me(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=g4(),n=h(o);{var a=d=>{var l=m4(),u=h(l),f=h(u);km(f,{}),g(u);var _=M(u,2),p=h(_,!0);g(_),g(l),I(b=>ge(p,b),[()=>U("waiting_live_upcoming_title")]),$(d,l)},s=d=>{var l=v4(),u=h(l),f=h(u,!0);g(u);var _=M(u,2);let p=v(()=>e.startTime||0);Tm(_,{get startTime(){return r(p)},onTimerOver:()=>O(i,!0)}),g(l),I(b=>ge(f,b),[()=>U("waiting_live_timer_title")]),$(d,l)};V(n,d=>{r(i)?d(a):d(s,!1)})}g(o),I(()=>nt(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),$(t,o),q()}var _4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),b4={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 Sa(t,e){z(e,!0),K(t,b4);let i=m(e,"thumbUrl",3,""),o={recover:U("waiting_live_recover_title"),record:U("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=_4(),s=h(a),d=h(s);fa(d,{style:"position: static; transform: translate(0, 0)"});var l=M(d,2),u=h(l,!0);g(l),g(s),g(a),I(()=>{nt(a,`background-image: url('${i()}')`),ge(u,r(n))}),$(t,a),q()}var $4=$e('<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 Im(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=$4();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 y4=L('<div class="select-icon svelte-124aexk"><!></div>'),x4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function zd(t){K(t,x4);var e=y4(),i=h(e);Im(i,{}),g(e),$(t,e)}var w4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},S4=(t,e)=>{ll(t,()=>e.item.selectItem(e.item.value))},C4=L("<p> </p>"),T4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),k4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),I4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
|
|
287
289
|
|
|
288
290
|
/**
|
|
289
291
|
* \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
|
|
290
292
|
* \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
|
|
291
293
|
*/margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
|
|
292
|
-
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function
|
|
294
|
+
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Em(t,e){z(e,!0),K(t,I4);let i=m(e,"isMobile",3,!1);var o=k4();let n;o.__click=[w4,e],o.__keydown=[S4,e];var a=h(o);{var s=x=>{zd(x,{})};V(a,x=>{e.item.selected&&x(s)})}var d=M(a,2);let l;var u=h(d);{var f=x=>{var y=ze(),C=pe(y);Si(C,()=>e.item.valueComponent,(k,E)=>{E(k,ls(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),$(x,y)},_=x=>{var y=C4();let C;var k=h(y,!0);g(y),I(E=>{var P;C=te(y,1,"label svelte-1t7rx2m",null,C,E),ge(k,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),$(x,y)};V(u,x=>{e.item.valueComponent?x(f):x(_,!1)})}var p=M(u,2);{var b=x=>{var y=T4(),C=h(y,!0);g(y),I(()=>ge(C,e.item.sublabel)),$(x,y)};V(p,x=>{e.item.sublabel&&x(b)})}g(d),g(o),I((x,y,C)=>{n=te(o,1,"item",null,n,x),Fe(o,"data-value",e.item.value),Fe(o,"aria-label",y),l=te(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Fe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var x,y;return(y=(x=e.item.ariaLabel)!=null?x:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),q()}rt(["click","keydown"]);var E4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Pm(t,e){z(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>y=>eu(y,r(n)));var s=E4();let d;s.__click=function(...y){var C;(C=r(n))==null||C.apply(this,y)},s.__keydown=function(...y){var C;(C=r(a))==null||C.apply(this,y)};var l=h(s);{var u=y=>{zd(y,{})};V(l,y=>{e.item.selected&&y(u)})}var f=M(l,2);let _;var p=h(f);{var b=y=>{var C=ze();let k=v(()=>e.item.valueComponent);var E=pe(C);Si(E,()=>r(k),(P,A)=>{A(P,ls(()=>{var T;return(T=e.item.valueComponentParams)!=null?T:{}}))}),$(y,C)},x=y=>{var C=cr();I(()=>ge(C,e.item.label)),$(y,C)};V(p,y=>{e.item.valueComponent?y(b):y(x,!1)})}g(f),g(s),ct(s,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),I((y,C)=>{var k;d=te(s,1,"item",null,d,y),Fe(s,"aria-label",(k=e.item.ariaLabel)!=null?k:e.item.label),Fe(s,"data-testid",e.item.id),_=te(f,1,"menu-item-value",null,_,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,s),q()}rt(["click","keydown"]);var Lr={"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 A4=(t,e)=>{Xh(t,e.returnFromSubMenu,e.closeSettingsMenu)},M4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},L4=(t,e)=>{pd(t)&&(fr(t),e.returnFromSubMenu())},V4=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>'),R4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
|
|
293
295
|
/*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
|
|
294
296
|
/**
|
|
295
297
|
* \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
|
|
@@ -299,14 +301,14 @@ Try switching the\xA0quality to\xA0Auto.`},Nh=L_;var as=new Map;as.set(Xa.Interf
|
|
|
299
301
|
var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
|
|
300
302
|
1px
|
|
301
303
|
);}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
|
|
302
|
-
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Pm(t,e){q(e,!0),G(t,P4);let[i,o]=Fe(),n=()=>C(_,"$isFullscreen",i),a=()=>C(p,"$playerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),l=v(e,"ariaLabelReturnFromSubMenu",19,()=>H("aria_label_submenu_back")),u=v(e,"listRef",15);Ut(()=>{let ne=e.items.findIndex(fe=>fe.selected);u().children[ne+1].focus()});let f=Ce(),_=f.ui.isFullscreen,p=f.ui.playerSize,$=te(void 0),w=te(0),y=te(0),S=m(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),k=m(()=>Math.max(e.minWidth,r(w)));var P=E4();let A;var E=h(P);let T;E.__keydown=[T4,e];var V=h(E);let z;V.__click=[k4,e],V.__keydown=[I4,e];var j=h(V);Ms(j,{direction:"left"});var F=M(j,2),Z=h(F,!0);g(F),g(V),ut(V,ne=>O($,ne),()=>r($));var J=M(V,2);wi(J,17,()=>e.items,ql,(ne,fe)=>{var de=Ue(),Re=pe(de);{var Me=Le=>{km(Le,{get item(){return r(fe)},get isMobile(){return s()}})},ee=(Le,X)=>{{var N=De=>{Im(De,{get isMobile(){return s()},get item(){return r(fe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(Le,De=>{r(fe).type==="OPEN_SUB_MENU"&&De(N)},X)}};R(Re,Le=>{r(fe).type==="SELECT_VALUE"?Le(Me):Le(ee,!1)})}b(ne,de)}),g(E),ut(E,ne=>u(ne),()=>u()),g(P),I((ne,fe,de)=>{A=ie(P,1,"sub-menu menu svelte-7dfsuh",null,A,ne),He(P,"data-testid",`sub-menu-${e.id}`),it(P,`min-width: ${r(k)}px`),T=ie(E,1,"items svelte-7dfsuh",null,T,fe),it(E,r(S)),z=ie(V,1,"item header back svelte-7dfsuh",null,z,de),He(V,"aria-label",l()),ge(Z,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Wr(V,"clientWidth",ne=>O(w,ne)),Wr(V,"clientHeight",ne=>O(y,ne)),b(t,P),W(),o()}at(["keydown","click"]);var M1=require("@vkontakte/videoplayer-shared/es2015");var A4=(t,e)=>jc(t,e()),M4=(t,e)=>{t.stopPropagation(),e()()},L4=L('<div class="value svelte-1ikfjte"> </div>'),V4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),R4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Am(t,e){q(e,!0),G(t,R4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,M1.noop),n=v(e,"valueComponent",3,void 0),a=v(e,"ref",15);var s=V4();let d;s.__click=[M4,o],s.__keydown=[A4,o];var l=h(s),u=h(l);{var f=k=>{_a(k,{get icon(){return e.icon}})},_=k=>{var P=Ue();let A=m(()=>e.icon);var E=pe(P);Si(E,()=>r(A),(T,V)=>{V(T,{})}),b(k,P)};R(u,k=>{typeof e.icon=="string"?k(f):k(_,!1)})}g(l);var p=M(l,2),$=h(p,!0);g(p);var w=M(p,2);{var y=k=>{var P=Ue();let A=m(n);var E=pe(P);Si(E,()=>r(A),(T,V)=>{V(T,{})}),b(k,P)},S=k=>{var P=L4(),A=h(P,!0);g(P),I(()=>ge(A,e.value)),b(k,P)};R(w,k=>{n()?k(y):k(S,!1)})}g(s),ut(s,k=>a(k),()=>a()),I(k=>{d=ie(s,1,"item",null,d,k),He(s,"aria-label",e.ariaLabel),He(s,"data-testid",e.id),ge($,e.label)},[()=>({mobile:i()})]),b(t,s),W()}at(["click","keydown"]);var Mm=require("@vkontakte/videoplayer-shared/es2015");var D4=(t,e)=>{rl(t,()=>e())},N4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),B4=L('<img class="icon" aria-hidden="true">'),O4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),H4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Lm(t,e){q(e,!0),G(t,H4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,Mm.noop),n=v(e,"closeSettings",3,Mm.noop),a=te(!1),s=()=>{O(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var l=O4();let u;l.__click=d,l.__keydown=[D4,d];var f=h(l),_=h(f);{var p=S=>{var k=Ue(),P=pe(k);{var A=T=>{var V=N4();b(T,V)},E=T=>{var V=B4();I(()=>He(V,"src",e.icon)),Pt("error",V,s),Ys(V),b(T,V)};R(P,T=>{r(a)?T(A):T(E,!1)})}b(S,k)},$=S=>{var k=Ue();let P=m(()=>e.icon);var A=pe(k);Si(A,()=>r(P),(E,T)=>{T(E,{})}),b(S,k)};R(_,S=>{typeof e.icon=="string"?S(p):S($,!1)})}g(f);var w=M(f,2),y=h(w,!0);g(w),g(l),I(S=>{var k;u=ie(l,1,"item",null,u,S),He(l,"aria-label",(k=e.ariaLabel)!=null?k:e.label),He(l,"data-testid",e.id),ge(y,e.label)},[()=>({mobile:i()})]),b(t,l),W()}at(["click","keydown"]);var L1=require("@vkontakte/videoplayer-shared/es2015");var F4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),U4={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 Vm(t,e){G(t,U4);let i=v(e,"enabled",3,!1);var o=F4(),n=h(o);let a;be(2),g(o),I(s=>a=ie(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var z4=(t,e,i)=>{jh(t,e(),o=>i()(o))},q4=(t,e,i)=>{t.stopPropagation(),e()(!i())},W4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),K4=L('<li role="menuitem" tabindex="0"><!></li>');function Rm(t,e){q(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,L1.noop),n=v(e,"enabled",3,!1),a=v(e,"tooltipText",3,void 0),s=v(e,"maxTooltipWidth",3,void 0);var d=K4();let l;d.__click=[q4,o,n],d.__keydown=[z4,n,o];var u=h(d);fa(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(f,_)=>{var p=W4();let $;var w=h(p),y=h(w);{var S=T=>{_a(T,{get icon(){return e.icon}})},k=T=>{var V=Ue();let z=m(()=>e.icon);var j=pe(V);Si(j,()=>r(z),(F,Z)=>{Z(F,{})}),b(T,V)};R(y,T=>{typeof e.icon=="string"?T(S):T(k,!1)})}g(w);var P=M(w,2),A=h(P,!0);g(P);var E=M(P,2);Vm(E,{get enabled(){return n()}}),g(p),I(T=>{$=ie(p,1,"switch-wrapper",null,$,T),ge(A,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),g(d),I(f=>{var _;l=ie(d,1,"item switch-item",null,l,f),He(d,"aria-label",(_=e.ariaLabel)!=null?_:e.label),He(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),W()}at(["click","keydown"]);var Ud=require("@vkontakte/videoplayer-shared/es2015");var V1=()=>{let t=te(ve([])),e=m(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,ve(r(t).slice(0,-1)))},popAllSubMenus:()=>{O(t,ve([]))}}};var Q4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),G4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),Y4={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 ya(t,e){q(e,!0),G(t,Y4);let i=v(e,"isSubCase",3,!1),o=m(()=>eu(e.quality));var n=G4(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var u=f=>{var _=Q4();let p=m(()=>r(o));var $=h(_);Si($,()=>r(p),(w,y)=>{y(w,{})}),g(_),b(f,_)};R(l,f=>{r(o)&&!e.isMobile&&f(u)})}g(n),I(f=>{s=ie(a,1,"svelte-t2qk8t",null,s,f),ge(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),W()}var B1=require("@vkontakte/videoplayer-shared/es2015");var Dm=require("@vkontakte/videoplayer-core/es2015");var R1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},D1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=R1({quality:t,availableQualities:e});return i?t===Dm.VideoQuality.INVARIANT?H("auto_quality_invariant"):H("auto_quality",{actual:o}):o},N1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Dm.VideoQuality.INVARIANT?i:`${i}${R1({quality:t,availableQualities:e})}`:"...";var j4=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Z4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function vl(t,e){q(e,!0),G(t,Z4);let[i,o]=Fe(),n=()=>C(l,"$currentQuality$",i),a=()=>C(u,"$availableQualities$",i),s=()=>C(f,"$isMobile$",i),d=Ce(),l=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,_=" \xB7 ",p=m(()=>e.prefix+(e.selected&&n()!==B1.VideoQuality.INVARIANT?_:"")),$=m(()=>N1({prefix:r(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=j4(),y=h(w);let S=m(()=>e.selected?n():void 0);ya(y,{get quality(){return r(S)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),W(),o()}var X4=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")},J4={br:!0,span:!0},Nm=(t,e={})=>{var d,l,u,f,_,p,$;if(!t)return t;let i=K(K({},J4),e),o=Object.keys(i);if(!o.length)return t;let n=X4(o),a=[],s=0;for(let w of t.matchAll(n)){let y=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:k}=w;if(!i[S]){a.push(t.slice(s,k)),s=k+y.length;continue}let P=(_=w.groups)!=null&&_.childrenhtml?Nm(w.groups.childrenhtml,i):"",A=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>P||""):y;a.push(t.slice(s,k),A),s=k+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Fd(t,e){q(e,!1);let i=v(e,"message",8),o=Nm(i());Mr();var n=Ue(),a=pe(n);{var s=d=>{var l=Ue(),u=pe(l);Wl(u,()=>o,!1,!1),b(d,l)};R(a,d=>{o&&d(s)})}b(t,n),W()}var e3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),t3={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){q(e,!1),G(t,t3),Mr();var i=e3(),o=h(i);let n=Er(()=>H("quality_applience",{action:`<span>${H("quality_applience_action")}</span>`}));Fd(o,{get message(){return r(n)}}),g(i),b(t,i),W()}var H1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:vl,valueComponentParams:{prefix:H("other_quality"),selected:o},children:"QUALITY"}},Om=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:H("auto_quality_limit"),valueComponent:e?vl:void 0,valueComponentParams:{prefix:H("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),F1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Bm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Hm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:H("high_quality"),valueComponent:t?vl:void 0,valueComponentParams:{prefix:H("high_quality"),selected:i},sublabel:H("high_quality_description")}),Fm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:H("traffic_saving_quality"),valueComponent:t?vl:void 0,valueComponentParams:{prefix:H("traffic_saving_quality"),selected:i},sublabel:H("traffic_saving_quality_description")});var vu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),gu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=au(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return H("audio_stream_display_language_label",{language:n,label:o});{let l=vu(t,d);return H("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=vu(t,d);return H("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=vu(t,d);return H("audio_stream_display_language_index",{language:n,index:l})}}let a=vu(t,e);return H("audio_stream_display_unknown",{index:a})};var i3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Om,selected:e&&!o&&!n||!1}),a.push({handler:Fm,selected:o},{handler:Hm,selected:n}),{title:H("submenu_quality"),id:"QUALITY_DETAILS",items:[F1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),H1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:H("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:ya,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:H("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Om,selected:((i=Hc())==null?void 0:i.type)==="auto_quality"},{handler:Fm,selected:((o=Hc())==null?void 0:o.type)==="traffic_saving"},{handler:Hm,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:H("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:gu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:H("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:H("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},U1=({subMenuId:t,context:e})=>t?[i3[t](e)]:[];var o3=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Um(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=o3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i))),b(t,o)}var n3=$e('<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 zm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=n3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img"},i))),b(t,o)}var r3=$e('<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 qm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=r3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i))),b(t,o)}var s3=$e('<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 Wm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=s3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i))),b(t,o)}var a3=$e('<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 Km(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=a3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i))),b(t,o)}var l3=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function hu(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=l3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i))),b(t,o)}var d3=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Qm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=d3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i))),b(t,o)}var c3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),u3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Gm(t,e){q(e,!0),G(t,u3);let[i,o]=Fe(),n=()=>C(u,"$currentQuality$",i),a=()=>C(f,"$availableQualities$",i),s=()=>C(_,"$isAutoQualityEnabled$",i),d=()=>C(p,"$isMobile$",i),l=Ce(),u=l.state.currentQuality$,f=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,$=m(()=>D1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=c3(),y=h(w);ya(y,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),b(t,w),W(),o()}var f3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?H("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_quality",{actual:o}),icon:fd,label:H("menu_quality"),value:e,valueComponent:Gm,weight:Dr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Dr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?H("aria_label_submenu_traffic_saving_off"):`${H("aria_label_submenu_traffic_saving_on")}. ${H("traffic_saving_helper_text")}`,icon:Um,label:H("menu_traffic_saving"),enabled:t,tooltipText:H("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=gu(t,e);return{id:"AUDIO_LANGUAGES",weight:Dr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_audio_languages",{actual:i}),icon:zm,label:H("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Dr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_rate",{actual:i}),icon:qm,label:H("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Dr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_subtitle",{actual:t.displayValue}),icon:md,label:H("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Dr.download,type:"CLICK",onClick:t,label:H("download_video_caption"),ariaLabel:H("aria_label_menu_download"),icon:Wm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Dr.report,type:"CLICK",onClick:t,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,icon:Km,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Dr["copy-data"],type:"CLICK",onClick:t,label:H("menu_copy_debug"),ariaLabel:H("menu_copy_debug"),icon:hu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Dr["save-trace-info"],type:"CLICK",onClick:t,label:H("menu_save_debug"),ariaLabel:H("menu_save_debug"),icon:hu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Dr["debug-info"],type:"CLICK",onClick:t,label:e?H("aria_label_menu_debug_overlay_disable"):H("aria_label_menu_debug_overlay_enable"),ariaLabel:H("menu_debug_overlay"),icon:Qm,isHiddenFor:["desktop"]})},z1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>f3[n](e)),...i.map(n=>Vt(K({},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(la)};var v3=(t,e)=>{Yc(t,e)},g3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),h3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),_3=L("<div><!> <!></div>"),b3={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 {
|
|
304
|
+
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Mm(t,e){z(e,!0),K(t,R4);let[i,o]=Oe(),n=()=>S(_,"$isFullscreen",i),a=()=>S(p,"$playerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),l=m(e,"ariaLabelReturnFromSubMenu",19,()=>U("aria_label_submenu_back")),u=m(e,"listRef",15);qt(()=>{let ee=e.items.findIndex(ue=>ue.selected);u().children[ee+1].focus()});let f=Se(),_=f.ui.isFullscreen,p=f.ui.playerSize,b=ie(void 0),x=ie(0),y=ie(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),k=v(()=>Math.max(e.minWidth,r(x)));var E=V4();let P;var A=h(E);let T;A.__keydown=[A4,e];var R=h(A);let F;R.__click=[M4,e],R.__keydown=[L4,e];var Y=h(R);Vs(Y,{direction:"left"});var H=M(Y,2),X=h(H,!0);g(H),g(R),ct(R,ee=>O(b,ee),()=>r(b));var oe=M(R,2);wi(oe,17,()=>e.items,jl,(ee,ue)=>{var le=ze(),Me=pe(le);{var Le=Ve=>{Em(Ve,{get item(){return r(ue)},get isMobile(){return s()}})},J=(Ve,j)=>{{var N=Re=>{Pm(Re,{get isMobile(){return s()},get item(){return r(ue)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Ve,Re=>{r(ue).type==="OPEN_SUB_MENU"&&Re(N)},j)}};V(Me,Ve=>{r(ue).type==="SELECT_VALUE"?Ve(Le):Ve(J,!1)})}$(ee,le)}),g(A),ct(A,ee=>u(ee),()=>u()),g(E),I((ee,ue,le)=>{P=te(E,1,"sub-menu menu svelte-7dfsuh",null,P,ee),Fe(E,"data-testid",`sub-menu-${e.id}`),nt(E,`min-width: ${r(k)}px`),T=te(A,1,"items svelte-7dfsuh",null,T,ue),nt(A,r(C)),F=te(R,1,"item header back svelte-7dfsuh",null,F,le),Fe(R,"aria-label",l()),ge(X,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Kr(R,"clientWidth",ee=>O(x,ee)),Kr(R,"clientHeight",ee=>O(y,ee)),$(t,E),q(),o()}rt(["keydown","click"]);var R1=require("@vkontakte/videoplayer-shared/es2015");var D4=(t,e)=>eu(t,e()),N4=(t,e)=>{t.stopPropagation(),e()()},B4=L('<div class="value svelte-1ikfjte"> </div>'),O4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),H4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Lm(t,e){z(e,!0),K(t,H4);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 s=O4();let d;s.__click=[N4,o],s.__keydown=[D4,o];var l=h(s),u=h(l);{var f=k=>{$a(k,{get icon(){return e.icon}})},_=k=>{var E=ze();let P=v(()=>e.icon);var A=pe(E);Si(A,()=>r(P),(T,R)=>{R(T,{})}),$(k,E)};V(u,k=>{typeof e.icon=="string"?k(f):k(_,!1)})}g(l);var p=M(l,2),b=h(p,!0);g(p);var x=M(p,2);{var y=k=>{var E=ze();let P=v(n);var A=pe(E);Si(A,()=>r(P),(T,R)=>{R(T,{})}),$(k,E)},C=k=>{var E=B4(),P=h(E,!0);g(E),I(()=>ge(P,e.value)),$(k,E)};V(x,k=>{n()?k(y):k(C,!1)})}g(s),ct(s,k=>a(k),()=>a()),I(k=>{d=te(s,1,"item",null,d,k),Fe(s,"aria-label",e.ariaLabel),Fe(s,"data-testid",e.id),ge(b,e.label)},[()=>({mobile:i()})]),$(t,s),q()}rt(["click","keydown"]);var Vm=require("@vkontakte/videoplayer-shared/es2015");var F4=(t,e)=>{ll(t,()=>e())},U4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),z4=L('<img class="icon" aria-hidden="true">'),q4=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 Rm(t,e){z(e,!0),K(t,W4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Vm.noop),n=m(e,"closeSettings",3,Vm.noop),a=ie(!1),s=()=>{O(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=q4();let u;l.__click=d,l.__keydown=[F4,d];var f=h(l),_=h(f);{var p=C=>{var k=ze(),E=pe(k);{var P=T=>{var R=U4();$(T,R)},A=T=>{var R=z4();I(()=>Fe(R,"src",e.icon)),Et("error",R,s),js(R),$(T,R)};V(E,T=>{r(a)?T(P):T(A,!1)})}$(C,k)},b=C=>{var k=ze();let E=v(()=>e.icon);var P=pe(k);Si(P,()=>r(E),(A,T)=>{T(A,{})}),$(C,k)};V(_,C=>{typeof e.icon=="string"?C(p):C(b,!1)})}g(f);var x=M(f,2),y=h(x,!0);g(x),g(l),I(C=>{var k;u=te(l,1,"item",null,u,C),Fe(l,"aria-label",(k=e.ariaLabel)!=null?k:e.label),Fe(l,"data-testid",e.id),ge(y,e.label)},[()=>({mobile:i()})]),$(t,l),q()}rt(["click","keydown"]);var D1=require("@vkontakte/videoplayer-shared/es2015");var K4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),Q4={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 Dm(t,e){K(t,Q4);let i=m(e,"enabled",3,!1);var o=K4(),n=h(o);let a;be(2),g(o),I(s=>a=te(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),$(t,o)}var G4=(t,e,i)=>{Jh(t,e(),o=>i()(o))},Y4=(t,e,i)=>{t.stopPropagation(),e()(!i())},j4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),Z4=L('<li role="menuitem" tabindex="0"><!></li>');function Nm(t,e){z(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,D1.noop),n=m(e,"enabled",3,!1),a=m(e,"tooltipText",3,void 0),s=m(e,"maxTooltipWidth",3,void 0);var d=Z4();let l;d.__click=[Y4,o,n],d.__keydown=[G4,n,o];var u=h(d);va(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(f,_)=>{var p=j4();let b;var x=h(p),y=h(x);{var C=T=>{$a(T,{get icon(){return e.icon}})},k=T=>{var R=ze();let F=v(()=>e.icon);var Y=pe(R);Si(Y,()=>r(F),(H,X)=>{X(H,{})}),$(T,R)};V(y,T=>{typeof e.icon=="string"?T(C):T(k,!1)})}g(x);var E=M(x,2),P=h(E,!0);g(E);var A=M(E,2);Dm(A,{get enabled(){return n()}}),g(p),I(T=>{b=te(p,1,"switch-wrapper",null,b,T),ge(P,e.label)},[()=>({mobile:i()})]),$(f,p)},$$slots:{default:!0}}),g(d),I(f=>{var _;l=te(d,1,"item switch-item",null,l,f),Fe(d,"aria-label",(_=e.ariaLabel)!=null?_:e.label),Fe(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),q()}rt(["click","keydown"]);var Wd=require("@vkontakte/videoplayer-shared/es2015");var N1=()=>{let t=ie(me([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,me(r(t).slice(0,-1)))},popAllSubMenus:()=>{O(t,me([]))}}};var X4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),J4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),e3={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 Ca(t,e){z(e,!0),K(t,e3);let i=m(e,"isSubCase",3,!1),o=v(()=>nu(e.quality));var n=J4(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var u=f=>{var _=X4();let p=v(()=>r(o));var b=h(_);Si(b,()=>r(p),(x,y)=>{y(x,{})}),g(_),$(f,_)};V(l,f=>{r(o)&&!e.isMobile&&f(u)})}g(n),I(f=>{s=te(a,1,"svelte-t2qk8t",null,s,f),ge(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),q()}var F1=require("@vkontakte/videoplayer-shared/es2015");var Bm=require("@vkontakte/videoplayer-core/es2015");var B1=({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=B1({quality:t,availableQualities:e});return i?t===Bm.VideoQuality.INVARIANT?U("auto_quality_invariant"):U("auto_quality",{actual:o}):o},H1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Bm.VideoQuality.INVARIANT?i:`${i}${B1({quality:t,availableQualities:e})}`:"...";var t3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),i3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function bl(t,e){z(e,!0),K(t,i3);let[i,o]=Oe(),n=()=>S(l,"$currentQuality$",i),a=()=>S(u,"$availableQualities$",i),s=()=>S(f,"$isMobile$",i),d=Se(),l=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,_=" \xB7 ",p=v(()=>e.prefix+(e.selected&&n()!==F1.VideoQuality.INVARIANT?_:"")),b=v(()=>H1({prefix:r(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var x=t3(),y=h(x);let C=v(()=>e.selected?n():void 0);Ca(y,{get quality(){return r(C)},get label(){return r(b)},get isMobile(){return s()},isSubCase:!0}),g(x),$(t,x),q(),o()}var o3=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")},n3={br:!0,span:!0},Om=(t,e={})=>{var d,l,u,f,_,p,b;if(!t)return t;let i=W(W({},n3),e),o=Object.keys(i);if(!o.length)return t;let n=o3(o),a=[],s=0;for(let x of t.matchAll(n)){let y=x[0],C=((d=x.groups)==null?void 0:d.keyhtml)||((l=x.groups)==null?void 0:l.keyi18n)||((u=x.groups)==null?void 0:u.keyhtmlself)||((f=x.groups)==null?void 0:f.keyi18nself)||"",{index:k}=x;if(!i[C]){a.push(t.slice(s,k)),s=k+y.length;continue}let E=(_=x.groups)!=null&&_.childrenhtml?Om(x.groups.childrenhtml,i):"",P=(p=x.groups)!=null&&p.childrenhtml?y.replace(new RegExp((b=x.groups)==null?void 0:b.childrenhtml),()=>E||""):y;a.push(t.slice(s,k),P),s=k+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function qd(t,e){z(e,!1);let i=m(e,"message",8),o=Om(i());Er();var n=ze(),a=pe(n);{var s=d=>{var l=ze(),u=pe(l);Zl(u,()=>o,!1,!1),$(d,l)};V(a,d=>{o&&d(s)})}$(t,n),q()}var r3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),s3={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 Hm(t,e){z(e,!1),K(t,s3),Er();var i=r3(),o=h(i);let n=Tr(()=>U("quality_applience",{action:`<span>${U("quality_applience_action")}</span>`}));qd(o,{get message(){return r(n)}}),g(i),$(t,i),q()}var z1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:bl,valueComponentParams:{prefix:U("other_quality"),selected:o},children:"QUALITY"}},Fm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:U("auto_quality_limit"),valueComponent:e?bl:void 0,valueComponentParams:{prefix:U("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),q1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Hm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Um=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:U("high_quality"),valueComponent:t?bl:void 0,valueComponentParams:{prefix:U("high_quality"),selected:i},sublabel:U("high_quality_description")}),zm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:U("traffic_saving_quality"),valueComponent:t?bl:void 0,valueComponentParams:{prefix:U("traffic_saving_quality"),selected:i},sublabel:U("traffic_saving_quality_description")});var _u=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),bu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=uu(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return U("audio_stream_display_language_label",{language:n,label:o});{let l=_u(t,d);return U("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=_u(t,d);return U("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=_u(t,d);return U("audio_stream_display_language_index",{language:n,index:l})}}let a=_u(t,e);return U("audio_stream_display_unknown",{index:a})};var a3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Fm,selected:e&&!o&&!n||!1}),a.push({handler:zm,selected:o},{handler:Um,selected:n}),{title:U("submenu_quality"),id:"QUALITY_DETAILS",items:[q1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),z1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:U("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ca,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:U("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Fm,selected:((i=qc())==null?void 0:i.type)==="auto_quality"},{handler:zm,selected:((o=qc())==null?void 0:o.type)==="traffic_saving"},{handler:Um,selected:((n=qc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:U("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:bu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:U("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:U("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},W1=({subMenuId:t,context:e})=>t?[a3[t](e)]:[];var l3=$e('<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 qm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=l3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 d3=$e('<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 Wm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=d3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 c3=$e('<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 Km(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=c3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 u3=$e('<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 Qm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=u3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 p3=$e('<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 Gm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=p3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 f3=$e('<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=f3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 m3=$e('<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 Ym(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=m3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 v3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),g3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function jm(t,e){z(e,!0),K(t,g3);let[i,o]=Oe(),n=()=>S(u,"$currentQuality$",i),a=()=>S(f,"$availableQualities$",i),s=()=>S(_,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),l=Se(),u=l.state.currentQuality$,f=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,b=v(()=>O1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var x=v3(),y=h(x);Ca(y,{get quality(){return n()},get label(){return r(b)},get isMobile(){return d()}}),g(x),$(t,x),q(),o()}var _3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?U("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:U("aria_label_menu_quality",{actual:o}),icon:_d,label:U("menu_quality"),value:e,valueComponent:jm,weight:Lr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Lr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?U("aria_label_submenu_traffic_saving_off"):`${U("aria_label_submenu_traffic_saving_on")}. ${U("traffic_saving_helper_text")}`,icon:qm,label:U("menu_traffic_saving"),enabled:t,tooltipText:U("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=bu(t,e);return{id:"AUDIO_LANGUAGES",weight:Lr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:U("aria_label_menu_audio_languages",{actual:i}),icon:Wm,label:U("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Lr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:U("aria_label_menu_rate",{actual:i}),icon:Km,label:U("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Lr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:U("aria_label_menu_subtitle",{actual:t.displayValue}),icon:bd,label:U("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Lr.download,type:"CLICK",onClick:t,label:U("download_video_caption"),ariaLabel:U("aria_label_menu_download"),icon:Qm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Lr.report,type:"CLICK",onClick:t,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,icon:Gm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Lr["copy-data"],type:"CLICK",onClick:t,label:U("menu_copy_debug"),ariaLabel:U("menu_copy_debug"),icon:$u,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Lr["save-trace-info"],type:"CLICK",onClick:t,label:U("menu_save_debug"),ariaLabel:U("menu_save_debug"),icon:$u,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Lr["debug-info"],type:"CLICK",onClick:t,label:e?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"),ariaLabel:U("menu_debug_overlay"),icon:Ym,isHiddenFor:["desktop"]})},K1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>_3[n](e)),...i.map(n=>Rt(W({},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(ca)};var $3=(t,e)=>{Jc(t,e)},y3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),x3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),w3=L("<div><!> <!></div>"),S3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
|
|
303
305
|
/* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
|
|
304
306
|
.settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
|
|
305
307
|
.settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
|
|
306
|
-
.settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function
|
|
308
|
+
.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 Kd(t,e){z(e,!0),K(t,S3);let[i,o]=Oe(),n=()=>S(Ke,"$settingsMenuVisible",i),a=()=>S(st,"$settingsMenuOpenedByKeyboard",i),s=()=>S(lt,"$debugPanelVisible",i),d=()=>S(ye,"$isMobile",i),l=()=>S(Ut,"$playerSize",i),u=()=>S(Ie,"$hasMpegSources$",i),f=()=>S(De,"$mobileNotReportControlHidden$",i),_=()=>S(N,"$autoQualityLimitingAvailable$",i),p=()=>S(B,"$availableSubtitlesList$",i),b=()=>S(et,"$isLiveWithPlaybackSpeed",i),x=()=>S(J,"$availableAudioStreams$",i),y=()=>S(Ne,"$availablePlaybackRates$",i),C=()=>S(Le,"$currentAudioStream$",i),k=()=>S(ke,"$currentPlaybackRate$",i),E=()=>S(at,"$trafficSavingEnabled",i),P=()=>S(Ve,"$currentQuality$",i),A=()=>S(Re,"$isAutoQualityEnabled$",i),T=()=>S(fe,"$currentSubtitle$",i),R=()=>S(Yt,"$additionalSettingsMenuItems$",i),F=()=>S(re,"$isAutoQualityAvailable$",i),Y=()=>S(j,"$availableQualities$",i),H=()=>S(ft,"$highQualityEnabled",i),X=m(e,"ref",15,void 0),oe=m(e,"playerControlsHeight",3,0),ee=me({}),ue=me({}),le=Se(),Me=Wt(),Le=le.state.audioStream$,J=le.state.availableAudioStreams$,Ve=le.state.currentQuality$,j=le.state.availableQualities$,N=le.state.autoQualityLimitingAvailable$,Re=le.state.isAutoQualityEnabled$,re=le.state.isAutoQualityAvailable$,ke=le.state.currentPlaybackRate$,Ne=le.state.availablePlaybackRates$,fe=le.state.currentSubtitle$,B=le.state.availableSubtitlesList$,de=le.state.canDownload,Ie=le.state.hasMpegSources$,Ke=le.ui.settingsMenu.visible$,st=le.ui.settingsMenu.openedByBtnKeyboard$,xe=le.ui.settingsMenu.ref$,ye=le.ui.isMobile,De=le.ui.mobileNotReportControlHidden$,et=le.state.canChangePlaybackSpeed$,at=le.state.trafficSavingEnabled$,ft=le.state.highQualityEnabled$,Ut=le.ui.playerSize,lt=le.ui.debugPanelVisible,wt=le.state.isInteractiveTime$,Yt=le.ui.additionalSettingsMenuItems$,Xt=le.ui.t,Be=le.actions.internal.downloadVideo,se=le.actions.internal.closeSettingsMenu,Q=le.actions.internal.openSettingsSubMenu,ae=le.actions.internal.closeSettingsSubMenu,_e=ie(!1),Pe=ie(void 0),He=N1();qe(()=>{!n()&&He.current&&(ae(ue[He.current]),He.popAllSubMenus())}),qe(()=>{n()||O(Pe,void 0)}),qe(()=>{!He.current&&r(Pe)&&Zh(ee,r(Pe))}),qe(()=>{X()&&xe.set(X())});function ut(Tt){return It(this,null,function*(){He.pushSubMenu(Tt),yield ko(),Q(Tt,ue[Tt])})}function Kt(Tt){var zt;Tt==null||Tt.stopPropagation(),a()||(zt=e.returnFocus)==null||zt.call(e),se(),O(_e,!1)}function Ye(Tt,zt){le.actions.internal.setQuality(Tt,{appliesTo:zt}),Kt()}function gt(Tt){le.actions.internal.setAudioStream(Tt),Kt()}function tt(Tt,zt){le.actions.internal.setTrafficSavingEnabled(Tt,zt),Me.features.qualityDetailsSubMenuEnabled&&Kt()}function St(Tt,zt){le.actions.internal.setHighQualityEnabled(Tt,zt),Kt()}function ni(Tt){le.actions.internal.setPlaybackRate(Tt),Kt()}function Xe(Tt){le.actions.internal.setSubtitle(Tt),Kt()}function pt(){Be()}function li(){(0,Wd.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function Oi(){rl(le.actions.internal.getDebugTextData())}let Oo=()=>{let Tt=le.actions.internal.getTraceTextData(),zt=new Blob([...Tt],{type:"application/json"}),si=window.URL.createObjectURL(zt);oa(si,"vk_player_trace_info","json")};function Hi(){lt.set(!s())}function ho(){O(_e,!0)}function Ho(){O(_e,!1)}function At(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-oe()}px; overflow: auto;`}let bt=v(()=>de&&u()&&!f()),Dt=v(()=>Me.features.trafficSaving&&!f()&&_()&&!Me.features.qualityDetailsSubMenuEnabled),Z=v(()=>p().length>0&&!f()),ri=v(()=>!!b()&&!f()),pi=v(()=>Me.features.audioLanguages&&x().length>=2&&!f()),Fi=v(()=>!f());qt(()=>wt.subscribe(Tt=>{Tt&&!d()&&!r(_e)&&!a()&&Kt()}));let ti=v(()=>{let Tt=[r(Fi)&&"QUALITY_SETTINGS",r(pi)&&"AUDIO_LANGUAGES",r(ri)&&"PLAYBACK_RATE",r(Z)&&"SUBTITLES",r(Dt)&&"TRAFFIC_SAVING_SWITCH",r(bt)&&"DOWNLOAD",Me.showSupport&&"SHOW_SUPPORT","COPY_DATA",Me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(zt=>!!zt);return K1({items:Tt,context:{qualityDetailsSubMenuEnabled:Me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:x(),currentPlaybackRate:k(),selectPlaybackRate:ni,trafficSavingEnabled:E(),toggleTrafficSaving:tt,currentQuality:P()||Wd.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:T(),isMobile:d(),onDownloadClick:pt,debugPanelVisible:s(),onCopyDataClick:Oi,onReportProblemClick:li,onSaveTraceDataClick:Oo,toggleShowDebugInfo:Hi},additionalSettingsMenuItems:R()})}),fi=v(()=>W1({subMenuId:He.current,context:{availablePlaybackRates:y(),selectPlaybackRate:ni,trafficSavingEnabled:E(),toggleTrafficSaving:tt,currentQuality:P()||Wd.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:F()||!1,availableQualities:Y(),highQualityEnabled:H(),toggleHighQuality:St,availableAudioStreams:x(),availableSubtitlesList:p(),closeSettingsMenu:se,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:gt,selectQuality:Ye,selectSubtitle:Xe}}));var bi=w3();let Zi;var Ui=h(bi);{var Qt=Tt=>{var zt=x3();let si;zt.__keydown=[$3,se];var _o=h(zt);{var Yn=ci=>{var xt=y3();let Ti;var Li=h(xt),zi=h(Li,!0);g(Li);var Sn=M(Li,2);Sn.__click=Kt,g(xt),I((ki,io)=>{Ti=te(xt,1,"item header svelte-17or3al",null,Ti,ki),ge(zi,io)},[()=>({mobile:d()}),()=>Xt("submenu_settings")]),$(ci,xt)};V(_o,ci=>{d()&&ci(Yn)})}var Po=M(_o,2);let Ao;wi(Po,21,()=>r(ti),ci=>ci.id,(ci,xt)=>{var Ti=ze(),Li=pe(Ti);{var zi=ki=>{Lm(ki,{get isMobile(){return d()},get id(){return r(xt).id},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get value(){return r(xt).value},get valueComponent(){return r(xt).valueComponent},onClick:()=>{ut(r(xt).children),O(Pe,me(r(xt).id))},get ref(){return ee[r(xt).id]},set ref(io){ee[r(xt).id]=io}})},Sn=(ki,io)=>{{var dn=Vi=>{Rm(Vi,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},closeSettings:Kt})},Cn=(Vi,jn)=>{{var cn=Mo=>{Nm(Mo,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get enabled(){return r(xt).enabled},get tooltipText(){return r(xt).tooltipText},get maxTooltipWidth(){return r(xt).maxTooltipWidth}})};V(Vi,Mo=>{r(xt).type==="SWITCH"&&Mo(cn)},jn)}};V(ki,Vi=>{r(xt).type==="CLICK"?Vi(dn):Vi(Cn,!1)},io)}};V(Li,ki=>{r(xt).type==="OPEN_SUB_MENU"?ki(zi):ki(Sn,!1)})}$(ci,Ti)}),g(Po),ct(Po,ci=>X(ci),()=>X()),g(zt),I((ci,xt,Ti)=>{si=te(zt,1,"settings-menu menu svelte-17or3al",null,si,ci),Ao=te(Po,1,"items",null,Ao,xt),nt(Po,Ti)},[()=>({desktop:!d(),mobile:d(),hidden:!!He.current}),()=>({mobile:d()}),At]),Et("mouseenter",zt,ho),Et("mouseleave",zt,Ho),$(Tt,zt)};V(Ui,Tt=>{n()&&Tt(Qt)})}var mi=M(Ui,2);wi(mi,17,()=>r(fi),Tt=>Tt.id,(Tt,zt)=>{let si=v(()=>{var _o;return(_o=r(zt).minWidth)!=null?_o:137});Mm(Tt,{get isMobile(){return d()},get playerControlsHeight(){return oe()},get returnFromSubMenu(){return He.popSubMenu},get id(){return r(zt).id},get title(){return r(zt).title},closeSettingsMenu:se,openSubMenuList:ut,get items(){return r(zt).items},get minWidth(){return r(si)},get refMenuItems(){return ee},get listRef(){return ue[r(zt).id]},set listRef(_o){ue[r(zt).id]=_o}})}),g(bi),I(Tt=>Zi=te(bi,1,"settings-menu-container svelte-17or3al",null,Zi,Tt),[()=>({mobile:d(),hidden:!n()})]),$(t,bi),q(),o()}rt(["keydown","click"]);var C3=t=>t;function Q1(t,{delay:e=0,duration:i=400,easing:o=C3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var T3=L('<button class="button svelte-1sbbskl"> </button>'),k3={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 Zm(t,e){K(t,k3);var i=T3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),I(()=>ge(o,e.label)),$(t,i)}rt(["click"]);var I3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),E3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
|
|
307
309
|
/**
|
|
308
310
|
* \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
|
|
309
|
-
*/pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function
|
|
311
|
+
*/pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Qd(t,e){z(e,!0),K(t,E3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Wt(),{ui:{t:n}}=Se(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=I3(),d=h(s),l=h(d),u=h(l),f=h(u);qd(f,{message:a}),g(u);var _=M(u,2);{var p=x=>{let y=v(()=>n("slow_video_notification_button"));Zm(x,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};V(_,x=>{o||x(p)})}g(l);var b=M(l,2);pa(b,{get onClick(){return e.onClose}}),g(d),g(s),Lp(3,d,()=>Q1,()=>({duration:i})),$(t,s),q()}var Gd="annotation",yu=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",Gd),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var P3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),A3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
|
|
310
312
|
|
|
311
313
|
animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
|
|
312
314
|
|
|
@@ -337,9 +339,8 @@ Try switching the\xA0quality to\xA0Auto.`},Nh=L_;var as=new Map;as.set(Xa.Interf
|
|
|
337
339
|
opacity: 0;
|
|
338
340
|
scale: 0;
|
|
339
341
|
}
|
|
340
|
-
}`};function
|
|
341
|
-
.video-container.svelte-cy741x,
|
|
342
|
-
.ads-container.svelte-cy741x {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-cy741x {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-cy741x {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-cy741x {transition:none;}.nocursor.svelte-cy741x {cursor:none;}.ads-container.svelte-cy741x {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-cy741x {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}`};function Xm(t,e){q(e,!0),G(t,B3);let[i,o]=Fe(),n=()=>C(Qo,"$notificationsToShow$",i),a=()=>C(Ho,"$playerPhase",i),s=()=>C(mo,"$isLoaderVisible",i),d=()=>C(Ni,"$adPlaybackState",i),l=()=>C(Qt,"$crashed",i),u=()=>C(Oi,"$isInteractiveTime$",i),f=()=>C(U,"$settingsMenuVisible",i),_=()=>C(Tn,"$isInteractiveExpectation$",i),p=()=>C(bt,"$controlsVisible",i),$=()=>C(to,"$touched",i),w=()=>C(Pn,"$graphIsOpened$",i),y=()=>C(Fo,"$isFullscreen",i),S=()=>C(gr,"$autoplayNextEnabled$",i),k=()=>C(Ht,"$postrollPassed",i),P=()=>C(vo,"$isEnded$",i),A=()=>C(Ln,"$cursorInside",i),E=()=>C(yi,"$rotateAlpha",i),T=()=>C(Eo,"$playerSize",i),V=()=>C(En,"$fakeIsPlaying$",i),z=()=>C(or,"$bottomNoSmooth",i),j=()=>C(Xn,"$interactiveTimeIndicator",i),F=()=>C(li,"$is3DVideo",i),Z=()=>C(ai,"$contextMenuVisible$",i),J=()=>C(oi,"$playbackState$",i),ne=()=>C(pn,"$hotKeyMapData",i),fe=()=>C(Qi,"$scrubbingInProgress",i),de=()=>C(Bi,"$volumeChangingInProgress",i),Re=()=>C(eo,"$chromecastConnected$",i),Me=()=>C(io,"$controlsTimeoutActive",i),ee=()=>C(Zt,"$settingsMenuOpenedByKeyboard",i),Le=()=>C(wr,"$contextMenuOpenedByKeyboard$",i),X=()=>C(Fr,"$contextMenuButtonRef$",i),N=()=>C(Sr,"$contextMenuOpenedByHotKey$",i),De=()=>C(sr,"$contextMenuLastActiveElem$",i),re=()=>C(Lt,"$isFullscreenOpenedByKeyboard",i),Ee=()=>C(Ct,"$isPlaying$",i),Ne=()=>C(ct,"$language$",i),me=()=>C(xt,"$icon3DVideoVisible",i),B=()=>C(Ko,"$chromecastDeviceName$",i),ce=()=>C(Zn,"$currentSubtitle$",i),Pe=()=>C(Io,"$currentSubtitleCaptions$",i),Ye=()=>C(Oo,"$position$",i),lt=()=>C(Ki,"$duration$",i),Ae=()=>C(vi,"$isLive$",i),ye=()=>C(Po,"$contextMenuPosition$",i),Ve=()=>C(kn,"$showHotKeyMap",i),Xe=()=>C(mi,"$debugPanelVisible",i),pt=()=>C(Jn,"$userActionsDisabled$",i),rt=v(e,"videoContainer",15),Ot=v(e,"adsSlotId",3,void 0),st=v(e,"adsParams",3,void 0),wt=v(e,"adsPreviewParam",3,void 0),Wt=v(e,"adsAutoplayParam",3,void 0),jt=v(e,"duration",3,void 0),Be=v(e,"logoTargetUrl",3,""),se=v(e,"showNextPrevButtons",3,!1),Q=v(e,"nextButtonActive",3,!1),ae=v(e,"prevButtonActive",3,!1),_e=v(e,"endScreenVideoTitle",3,void 0),Te=v(e,"endScreenVideoThumb",3,void 0),Oe=v(e,"isOneVideoPlaylist",3,!1),ft=v(e,"shadowRootContainer",3,void 0),Kt=v(e,"outerContainerRef",3,void 0),je=v(e,"playerStarted",3,!1),dt=v(e,"fullScreenTarget",3,void 0),et=v(e,"showMiniTimer",3,!1),Et=v(e,"showEndScreen",3,!0),ii=v(e,"keyboardControls",15),Ge=e.store.getLogger().createComponentLog("Root component"),ct=e.store.interfaceLanguage$,oi=e.store.state.playbackState$,Ni=e.store.ads.playbackState,Oo=e.store.state.positionWithScrubbing$,Ki=e.store.state.duration$,Ho=e.store.playerPhase,Fo=e.store.ui.isFullscreen,Lt=e.store.ui.isFullscreenOpenedByKeyboard,bt=e.store.ui.controlsVisible,U=e.store.ui.settingsMenu.visible$,Zt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Qi=e.store.ui.scrubbingInProgress,Bi=e.store.ui.volumeChangingInProgress,ai=e.store.ui.contextMenu.visible$,mi=e.store.ui.debugPanelVisible,mo=e.store.state.isLoaderVisible,vo=e.store.state.isEnded$,eo=e.store.state.chromecastConnected$,Ko=e.store.state.chromecastDeviceName$,Ht=e.store.ads.postrollPassed,vi=e.store.state.isLive$,Ct=e.store.state.isPlaying$,Qt=e.store.state.crashed$,go=e.store.webApi.annotationsApi,Jt=e.store.webApi.pictureInPictureApi,Zn=e.store.state.currentSubtitle$,Io=e.store.state.currentSubtitleCaptions$,Eo=e.store.ui.playerSize,li=e.store.ui.is3DVideo,xt=e.store.ui.icon3DVideoVisible,yi=e.store.ui.rotateAlpha,Li=e.store.state.isInteractive,Oi=e.store.state.isInteractiveTime$,Tn=e.store.state.isInteractiveExpectation$,Ti=e.store.state.hasInteractiveBranches,to=e.store.ui.touched,pn=e.store.ui.modals.hotKeyMap.data,kn=e.store.ui.modals.hotKeyMap.show,Vi=e.store.ui.overlayContainer$,Xn=e.store.ui.controls.interactiveTimeIndicator,fn=e.store.state.showInteractiveTimeIndicator,Po=e.store.ui.contextMenu.position$,In=e.store.actions.internal.setQuality,Nr=e.store.actions.internal.closeSettingsMenu,gr=e.store.ui.autoplayNextEnabled$,Jn=e.store.ui.userActionsDisabled,{fakeIsPlaying$:En,notifications$:mn,graphIsOpened$:Pn}=fo(),ho=te(void 0),tt=te(void 0),vn=te(void 0),er=te(void 0),tr,An,gn;pn.set(zh());let{closeNotification:hn,notificationsToShow$:Qo}=mn,Gi=m(()=>!!n().slow_video),Yi=()=>hn("slow_video"),ir=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Mn=te(void 0),or=le(!1),hr,io=le(!1),oo=le(),Ln=le(!1),Vn=te(!1),_o=te(!1),no=te(!1),Rn=te(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Uo=m(()=>u()&&!f()&&!(r(Vn)||r(_o))&&!(r(no)&&!_())),Br=!0,Dn=m(()=>e.uiConfig.features.thumbTimer&&et()&&a()==="video"&&!p()&&!l()&&!Li&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),_r=m(()=>a()==="video"&&!w()&&y()),Nn=te(!1),Bn=m(()=>(Et()||e.showAutoplayNext&&S())&&!!_e()&&!!Te()&&(e.showAds&&k()||!e.showAds)&&P()&&!l()&&!r(Nn)),Or=m(()=>A()&&!(p()||r(Bn))&&!u()),nr=te(!1),br=m(()=>rt()&&E()%180?T().height/T().width:1),rr=m(()=>V()!==null),{toggle:On}=En,ni=!1,Go=null;Jt==null||Jt.setContext(Fl());let $r=()=>{e.autoplay&&!Li&&e.uiConfig.controls.showOnStartupAtAutoplay&&mt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:$r});let Hr=()=>{window.clearTimeout(tr),io.set(!1)},ot=()=>{window.clearTimeout(An),oo.set(null)},mt=we=>{Hr(),io.set(!0),tr=window.setTimeout(()=>io.set(!1),we);let Rt=we-100;hr=window.setTimeout(()=>{z()&&or.set(!1)},Rt>0?Rt:we)},ki=(we,Rt)=>{ot(),oo.set(Rt),An=window.setTimeout(()=>oo.set(null),we)},ro=li.subscribe(we=>{xt.set(we),we&&(window.clearTimeout(gn),gn=window.setTimeout(()=>xt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ji=()=>kt(this,null,function*(){var Rt,ui,At,ei;let we=ws();if(we){let pi=od(),Hi=Yo();we=pi===Hi||pi===ft()}if(we){mt(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Jt==null?void 0:Jt.remove()}catch(pi){Ge({message:String(pi)})}}Fo.set(we),e.store.getAdmanWrapper().setFullscreen(we),y()?(ui=(Rt=e.store.callbacks)==null?void 0:Rt.onFullscreenEnter)==null||ui.call(Rt):(ei=(At=e.store.callbacks)==null?void 0:At.onFullscreenExit)==null||ei.call(At)}),Ao=we=>{let{width:Rt,height:ui}=we.target;Eo.set({width:Rt,height:ui})},Mo=()=>{let{width:we,height:Rt}=r(ho).getBoundingClientRect();Eo.set({width:we,height:Rt})};Ut(()=>{var Rt;return Qc(ji),e.uiConfig.features.annotationsInside&&(go==null||go.init(r(ho))),sa(Jt)&&(Jt==null||Jt.assignPlayerContainer(r(ho)),Jt==null||Jt.registryExternalEventHandlers({resize:Ao,leavepictureinpicture:Mo})),e.interactiveContainer&&((Rt=rt().parentElement)==null||Rt.insertBefore(e.interactiveContainer,rt().nextSibling)),()=>{window.clearTimeout(tr),window.clearTimeout(hr),window.clearTimeout(An),window.clearTimeout(gn),ro(),Jt==null||Jt.dispose().catch(ui=>{Ge({message:String(ui)})}),Gc(ji)}});let Yo=()=>{let we=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Kt()?r(ho):Kt(),Rt=we.getRootNode(),ui=Rt instanceof ShadowRoot?Rt.host:Rt,At=dt()instanceof HTMLElement&&dt().contains(ui);return e.uiConfig.allowChangingFullscreenTarget&&dt()&&At?dt():we},Lo=()=>kt(this,null,function*(){ws()?(yield Kc(document),Ge({message:"exit fullscreen"})):(Ge({message:"request fullscreen"}),yield Wc(Yo()))}),fi=()=>{Nr(),ai.set(!1)},Je=we=>{w()||(we.preventDefault(),ai.set(!0),Po.set({left:we.clientX,top:we.clientY}))};function Gt(){Ln.set(!0),Li||mt(e.uiConfig.controls.hideTimeoutCursor)}function Zi(){Li||(or.set(!0),mt(e.uiConfig.controls.hideTimeoutCursor))}function Ri(){Ln.set(!1),O(_o,!1),O(Vn,!1),ni=!1,e.store.actions.internal.releaseCamera(),mt(e.uiConfig.controls.hideTimeout)}function gi(we){return we?we.offsetTop+gi(we.offsetParent):0}function bo(we){return we?we.offsetLeft+bo(we.offsetParent):0}function $o(we){if(j()&&fn){let Rt=we.currentTarget,ui=gi(Rt),At=bo(Rt),ei=we.pageX-At,pi=we.pageY-ui,{left:Hi,bottom:xo,right:ri}=j(),Ro=ri-Hi;return ei>=Hi-Ro&&pi<=xo+Ro}}function Hn(we){if(r(ho)){let Rt=gi(we.currentTarget),ui=T().height,At=we.pageY-Rt;if($o(we)){O(_o,!1);return}At<40?O(_o,!0):At>ui-40?O(Vn,!0):(O(_o,!1),f()||O(Vn,!1))}}function so(we){Hn(we),r(Uo)||mt(e.uiConfig.controls.hideTimeoutCursor),F()&&ni&&Go&&e.store.actions.internal.moveCameraFocusPX(Go.clientX-we.clientX,Go.clientY-we.clientY,we.timeStamp-Go.timeStamp),Go=we}let _n=we=>{we.preventDefault(),we.button===0&&(ni=!0,e.store.actions.internal.holdCamera()),mt(e.uiConfig.controls.hideTimeoutCursor)},Fn=we=>{we.preventDefault(),we.button===0&&(Go=we,ni=!1,e.store.actions.internal.releaseCamera()),mt(e.uiConfig.controls.hideTimeoutCursor)},Vo=we=>{fi(),to.set(!0),mt(e.uiConfig.controls.hideTimeout),we&&ki(e.uiConfig.controls.hideHotKeyHelpers,we)},yr=()=>{var we,Rt;fi(),(we=e.store.callbacks)!=null&&we.onOpenHotKeyMap?(Rt=e.store.callbacks)==null||Rt.onOpenHotKeyMap(ne()):kn.update(ui=>!ui)},xr=()=>{to.set(!0)},wr=e.store.ui.contextMenu.openedByBtnKeyboard$,Fr=e.store.ui.contextMenu.btnRef$,jo=te(void 0),Sr=e.store.ui.contextMenu.openedByHotKey$,sr=e.store.ui.contextMenu.lastActiveElem$;We(()=>{Vi.set(r(Mn))}),We(()=>{O(no,ve(r(Rn)&&J()!==Zm.PlaybackState.PLAYING)),r(Rn)||yt(()=>O(Rn,!0))}),We(()=>{bt.set((r(no)||P()||f()||fe()||de()||Re()||Me())&&!r(Uo)&&(a()==="video"||a()==="ads")&&!l())}),We(()=>{!fe()&&r(nr)&&!u()&&mt(e.uiConfig.controls.hideTimeoutCursor),yt(()=>O(nr,ve(fe())))}),We(()=>{r(er),f(),ee(),yt(()=>nl(r(er),f(),ee()))}),We(()=>{r(jo),Z(),Le(),yt(()=>nl(r(jo),Z(),Le()))}),We(()=>{let we=X();we&&(Z(),yt(()=>ol(we,Z(),wr)))}),We(()=>{r(jo),Z(),N(),yt(()=>nl(r(jo),Z(),N()))}),We(()=>{let we=De();we&&(Z(),yt(()=>Qh(we,Z(),Sr)))}),We(()=>{var we;!re()&&y()&&(yt(()=>Lt.set(!1)),(we=ii())==null||we.focus())}),We(()=>{w()&&fi()});let ar=H("video360");var Cr=N3();Pt("blur",Ks,fi);var yo=pe(Cr);yo.__mousemove=so;var Un=h(yo);let nt=m(()=>a()==="ads"),Ft=m(()=>r(rr)?On:void 0);ut(ff(Un,{toggleFullscreen:Lo,hideContextMenu:fi,showHotKeyHelpers:Vo,showKeyMap:yr,get isAds(){return r(nt)},get fakePlayButtonHandler(){return r(Ft)},get nextButtonActive(){return Q()},get prevButtonActive(){return ae()},children:(we,Rt)=>{var ui=R3(),At=pe(ui);let ei;At.__contextmenu=Je,At.__mousedown=_n,At.__mouseup=Fn,At.__click=[I3,Z,ai,f,U,fi,P,vo,Ti,rr,On,ii,je,e,mt,J,oi],At.__dblclick=[k3,Br,Ge,Lo,mt,e];var pi=h(At);let Hi;ut(pi,Ro=>rt(Ro),()=>rt()),g(At);var xo=M(At,2);Kl(xo,()=>"slot",!1,(Ro,qe)=>{Se(Ro,null,{name:Wd})});var ri=M(xo,2);Zs(ri,Ne,Ro=>{var qe=V3(),zt=pe(qe);let xi=m(()=>a()!=="thumb"||l()||Li&&e.autoplay);Bd(zt,{get hidden(){return r(xi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Do=M(zt,2);jm(Do,{});var Xo=M(Do,2);{var ps=ze=>{let si=m(()=>{var en;return(en=e.live)==null?void 0:en.startTime});Od(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(si)}})};R(Xo,ze=>{a()==="LiveWaitingStart"&&ze(ps)})}var bn=M(Xo,2);{var Yr=ze=>{$a(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(bn,ze=>{a()==="LiveWaitingRecover"&&ze(Yr)})}var Sa=M(bn,2);{var Ca=ze=>{$a(ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Sa,ze=>{a()==="LiveWaitingRecord"&&ze(Ca)})}var lr=M(Sa,2);{var xl=ze=>{var si=P3();let en;var ht=h(si);nd(ht,{get adsSlotId(){return Ot()},get adsParams(){return st()},get adsPreviewParam(){return wt()},get adsAutoplayParam(){return Wt()},get duration(){return jt()}}),g(si),I(zo=>en=ie(si,1,"ads-container svelte-cy741x",null,en,zo),[()=>({hidden:a()!=="ads"})]),b(ze,si)};R(lr,ze=>{e.showAds&&je()&&ze(xl)})}var Rs=M(lr,2);{var Ta=ze=>{let si=m(()=>!Et()&&e.showAutoplayNext&&S());cf(ze,{get title(){return _e()},get thumb(){return Te()},get isHide(){return r(si)},clickCloseIcon:()=>O(Nn,!0)})};R(Rs,ze=>{r(Bn)&&_e()&&Te()&&ze(Ta)})}var gt=M(Rs,2);{var $t=ze=>{let si=m(()=>!p());wm(ze,{get title(){return e.title},get isHidden(){return r(si)}})};R(gt,ze=>{r(_r)&&ze($t)})}var Xi=M(gt,2);{var Jo=ze=>{let si=m(()=>a()==="video"&&p());Vd(ze,{get isShifted(){return r(si)}})};R(Xi,ze=>{F()&&ze(Jo)})}var Ji=M(Xi,2);{var di=ze=>{var si=A3(),en=h(si);id(en,{"aria-label":ar}),g(si),b(ze,si)};R(Ji,ze=>{me()&&ze(di)})}var Ei=M(Ji,2);{var Ds=ze=>{Dd(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return B()}})};R(Ei,ze=>{Re()&&ze(Ds)})}var ka=M(Ei,2);{var Vu=ze=>{Rd(ze,{get shifted(){return p()},get captions(){return Pe()},get position(){return Ye()},get playerSize(){return T()}})};R(ka,ze=>{ce().value!=="off"&&ze(Vu)})}var tc=M(ka,2);{var Ru=ze=>{var si=M3();si.__contextmenu=Je,si.__click=[E3,Z,ai,f,U,fi];var en=h(si);Nd(en,{}),g(si),b(ze,si)};R(tc,ze=>{l()&&ze(Ru)})}var Ns=M(tc,2);{var Du=ze=>{let si=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),en=m(()=>a()==="ads"),ht=m(()=>e.canRewindLive&<()!==0);Ld(ze,{get bottomHidden(){return r(si)},get bottomNoSmooth(){return z()},get showControls(){return p()},get isAds(){return r(en)},get canRewindLive(){return r(ht)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Be()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return se()},get nextButtonActive(){return Q()},get prevButtonActive(){return ae()},get isOneVideoPlaylist(){return Oe()},customFullscreenSupported:Br,toggleFullscreen:Lo,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(tt)},set playerControlsWrapperRef(zo){O(tt,ve(zo))},get playerControlsRef(){return r(vn)},set playerControlsRef(zo){O(vn,ve(zo))}})};R(Ns,ze=>{je()&&ze(Du)})}var wl=M(Ns,2);{var ic=ze=>{var si=L3(),en=h(si);let ht=m(()=>{var zo;return(zo=r(vn))==null?void 0:zo.clientHeight});zd(en,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(ht)},returnFocus:()=>{var zo;return(zo=ii())==null?void 0:zo.focus()},get ref(){return r(er)},set ref(zo){O(er,ve(zo))}}),g(si),b(ze,si)};R(wl,ze=>{!Re()&&a()!=="ads"&&ze(ic)})}var oc=M(wl,2);let nc=m(()=>!r(Dn));sd(oc,{get isLive(){return Ae()},get isHidden(){return r(nc)},get isPlaying(){return Ee()},get position(){return Ye()},get duration(){return lt()}});var Ia=M(oc,2);bm(Ia,{data:oo});var Sl=M(Ia,2);lf(Sl,{get supportLink(){return e.supportLink},returnFocus:()=>{var ze;return(ze=ii())==null?void 0:ze.focus()},get visible(){return Z()},get playerContainerRef(){return r(ho)},get controlsContainerRef(){return r(tt)},get position(){return ye()},get menuElementRef(){return r(jo)},set menuElementRef(ze){O(jo,ve(ze))}});var rc=M(Sl,2);{var sc=ze=>{qd(ze,{onClose:Yi,onSelectAutoQuality:()=>{In("auto"),Yi()}})};R(rc,ze=>{r(Gi)&&ze(sc)})}var ac=M(rc,2);{var Nu=ze=>{ua(ze,{})};R(ac,ze=>{r(ir)&&ze(Nu)})}var lc=M(ac,2);{var Bu=ze=>{gf(ze,{})};R(lc,ze=>{Ve()&&ze(Bu)})}var Ea=M(lc,2);{var Ou=ze=>{dd(ze,{})};R(Ea,ze=>{Xe()&&ze(Ou)})}b(Ro,qe)}),I((Ro,qe)=>{ei=ie(At,1,"video-wrapper svelte-cy741x",null,ei,Ro),Hi=ie(pi,1,"video-container svelte-cy741x",null,Hi,qe),it(pi,`transform: rotate(${E()}deg) scale(${r(br)})`),He(pi,"data-is-playing",Ee())},[()=>({hidden:a()!=="video",nocursor:r(Or)}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),b(we,ui)},$$slots:{default:!0}}),we=>ii(we),()=>ii());var Ii=M(Un,2);ut(Ii,we=>O(Mn,we),()=>r(Mn)),g(yo),ut(yo,we=>O(ho,we),()=>r(ho));var Zo=M(yo,2);{var zn=we=>{var Rt=D3();b(we,Rt)};R(Zo,we=>{pt()&&we(zn)})}Pt("mouseenter",yo,Gt),Pt("mouseleave",yo,Ri),Pt("click",yo,xr,!0),Pt("focusin",yo,Zi,!0),b(t,Cr),W(),o()}at(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);var Ls=require("@vkontakte/videoplayer-core/es2015"),Z1=require("@vkontakte/videoplayer-shared/es2015");var O3=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),H3=L("<div><!></div>"),F3={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;
|
|
342
|
+
}`};function Xm(t,e){z(e,!0),K(t,A3);let[i,o]=Oe(),n=()=>S(s,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Se(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:_}}=Wt(),p=0,b=ie(null),x=ie(!1);qe(()=>{O(b,me(n()?Mr:ps))}),qe(()=>{O(b,me(a()?Ls:null))}),qe(()=>{if(u)return p=window.setTimeout(()=>{p=0,a()&&r(b)===Ls&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),O(b,null)},r(b)!==Ls?f:_),()=>{p&&(window.clearTimeout(p),p=0)}}),qe(()=>{n()&&!r(x)&&(O(x,!0),O(b,null))});var y=ze(),C=pe(y);{var k=E=>{var P=ze(),A=pe(P);Xs(A,()=>r(b),T=>{var R=P3(),F=h(R),Y=h(F);let H=v(()=>a()==="prev");Si(Y,()=>r(b),(X,oe)=>{oe(X,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(H)}})}),g(F),g(R),I(()=>nt(F,`animation-duration: ${r(b)!==Ls?f:_}ms`)),$(T,R)}),$(E,P)};V(C,E=>{r(b)&&u&&E(k)})}$(t,y),q(),o()}var M3=L('<div><div data-testid="video-container"></div></div>'),L3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
|
|
343
|
+
.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 Yd(t,e){z(e,!0),K(t,L3);let[i,o]=Oe(),n=()=>S(f,"$rotateAlpha",i),a=()=>S(_,"$playerSize",i),s=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),l=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:_},state:{isPlaying$:p}}=Se(),{isSmoothVideoRotate:b}=Wt(),x=v(()=>l()&&n()%180?a().height/a().width:1);var y=M3();let C;y.__contextmenu=function(...E){var P;(P=e.onContextMenu)==null||P.apply(this,E)},y.__mousedown=function(...E){var P;(P=e.onMouseDown)==null||P.apply(this,E)},y.__mouseup=function(...E){var P;(P=e.onMouseUp)==null||P.apply(this,E)},y.__click=function(...E){var P;(P=e.onClick)==null||P.apply(this,E)},y.__dblclick=function(...E){var P;(P=e.onDblclick)==null||P.apply(this,E)};var k=h(y);te(k,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!b}),ct(k,E=>l(E),()=>l()),g(y),I(E=>{C=te(y,1,"video-wrapper svelte-1czns9r",null,C,E),nt(k,`transform: rotate(${n()}deg) scale(${r(x)})`),Fe(k,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),$(t,y),q(),o()}rt(["contextmenu","mousedown","mouseup","click","dblclick"]);var V3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},R3=L("<div><!></div>"),D3=L('<div class="spherical-video-icon svelte-tvjmg6"><!></div>'),N3=L("<div><!></div>"),B3=L("<div><!></div>"),O3=L('<div class="settings-menu svelte-tvjmg6"><!></div>'),H3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),F3=L("<!> <!> <!>",1),U3=L('<div class="blocked svelte-tvjmg6"></div>'),z3=L('<div class="player-wrapper svelte-tvjmg6"><!> <div class="overlay-container"></div></div> <!>',1),q3={hash:"svelte-tvjmg6",code:".player-wrapper.svelte-tvjmg6 {position:absolute;width:100%;height:100%;}.blocked.svelte-tvjmg6 {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.timiline-wrapper.svelte-tvjmg6 {pointer-events:none;opacity:0;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);}.timiline-wrapper.visible.svelte-tvjmg6 {opacity:1;}.player-wrapper.svelte-tvjmg6 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.player-wrapper.svelte-tvjmg6 .timeline {padding:0;position:absolute;}.spherical-video-icon.svelte-tvjmg6 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-tvjmg6 {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-tvjmg6 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-tvjmg6 {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function ev(t,e){z(e,!0),K(t,q3);let[i,o]=Oe(),n=()=>S(Ko,"$notificationsToShow$",i),a=()=>S(Hi,"$playerPhase",i),s=()=>S(ti,"$isLoaderVisible",i),d=()=>S(li,"$adPlaybackState",i),l=()=>S(Tt,"$crashed",i),u=()=>S(zi,"$isInteractiveTime$",i),f=()=>S(bt,"$settingsMenuVisible",i),_=()=>S(Sn,"$isInteractiveExpectation$",i),p=()=>S(At,"$controlsVisible",i),b=()=>S(io,"$touched",i),x=()=>S(In,"$graphIsOpened$",i),y=()=>S(ho,"$isFullscreen",i),C=()=>S(mr,"$autoplayNextEnabled$",i),k=()=>S(Ui,"$postrollPassed",i),E=()=>S(fi,"$isEnded$",i),P=()=>S(An,"$cursorInside",i),A=()=>S(kn,"$fakeIsPlaying$",i),T=()=>S(tr,"$bottomNoSmooth",i),R=()=>S(jn,"$interactiveTimeIndicator",i),F=()=>S(Ao,"$playerSize",i),Y=()=>S(ci,"$is3DVideo",i),H=()=>S(pi,"$contextMenuVisible$",i),X=()=>S(pt,"$playbackState$",i),oe=()=>S(dn,"$hotKeyMapData",i),ee=()=>S(oo,"$controlsTimeoutActive",i),ue=()=>S(Z,"$scrubbingInProgress",i),le=()=>S(ri,"$volumeChangingInProgress",i),Me=()=>S(bi,"$chromecastConnected$",i),Le=()=>S(Dt,"$settingsMenuOpenedByKeyboard",i),J=()=>S($r,"$contextMenuOpenedByKeyboard$",i),Ve=()=>S(Hr,"$contextMenuButtonRef$",i),j=()=>S(Bn,"$contextMenuOpenedByHotKey$",i),N=()=>S(sr,"$contextMenuLastActiveElem$",i),Re=()=>S(Ho,"$isFullscreenOpenedByKeyboard",i),re=()=>S(Xe,"$language$",i),ke=()=>S(xt,"$icon3DVideoVisible",i),Ne=()=>S(Zi,"$chromecastDeviceName$",i),fe=()=>S(_o,"$currentSubtitle$",i),B=()=>S(Yn,"$currentSubtitleCaptions$",i),de=()=>S(Oi,"$position$",i),Ie=()=>S(Po,"$realDuration$",i),Ke=()=>S(mi,"$isPlaying$",i),st=()=>S(Oo,"$duration$",i),xe=()=>S(Mo,"$contextMenuPosition$",i),ye=()=>S(Cn,"$showHotKeyMap",i),De=()=>S(Fi,"$debugPanelVisible",i),et=()=>S(Zn,"$userActionsDisabled$",i),at=m(e,"videoContainer",15),ft=m(e,"adsSlotId",3,void 0),Ut=m(e,"adsParams",3,void 0),lt=m(e,"adsPreviewParam",3,void 0),wt=m(e,"adsAutoplayParam",3,void 0),Yt=m(e,"duration",3,void 0),Xt=m(e,"logoTargetUrl",3,""),Be=m(e,"showNextPrevButtons",3,!1),se=m(e,"nextButtonActive",3,!1),Q=m(e,"prevButtonActive",3,!1),ae=m(e,"endScreenVideoTitle",3,void 0),_e=m(e,"endScreenVideoThumb",3,void 0),Pe=m(e,"isOneVideoPlaylist",3,!1),He=m(e,"shadowRootContainer",3,void 0),ut=m(e,"outerContainerRef",3,void 0),Kt=m(e,"playerStarted",3,!1),Ye=m(e,"fullScreenTarget",3,void 0),gt=m(e,"showMiniTimer",3,!1),tt=m(e,"showEndScreen",3,!0),St=m(e,"keyboardControls",15),ni=e.store.getLogger().createComponentLog("Root component"),Xe=e.store.interfaceLanguage$,pt=e.store.state.playbackState$,li=e.store.ads.playbackState,Oi=e.store.state.positionWithScrubbing$,Oo=e.store.state.duration$,Hi=e.store.playerPhase,ho=e.store.ui.isFullscreen,Ho=e.store.ui.isFullscreenOpenedByKeyboard,At=e.store.ui.controlsVisible,bt=e.store.ui.settingsMenu.visible$,Dt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Z=e.store.ui.scrubbingInProgress,ri=e.store.ui.volumeChangingInProgress,pi=e.store.ui.contextMenu.visible$,Fi=e.store.ui.debugPanelVisible,ti=e.store.state.isLoaderVisible,fi=e.store.state.isEnded$,bi=e.store.state.chromecastConnected$,Zi=e.store.state.chromecastDeviceName$,Ui=e.store.ads.postrollPassed,Qt=e.store.state.isLive$,mi=e.store.state.isPlaying$,Tt=e.store.state.crashed$,zt=e.store.webApi.annotationsApi,si=e.store.webApi.pictureInPictureApi,_o=e.store.state.currentSubtitle$,Yn=e.store.state.currentSubtitleCaptions$,Po=e.store.state.duration$,Ao=e.store.ui.playerSize,ci=e.store.ui.is3DVideo,xt=e.store.ui.icon3DVideoVisible,Ti=e.store.ui.rotateAlpha,Li=e.store.state.isInteractive,zi=e.store.state.isInteractiveTime$,Sn=e.store.state.isInteractiveExpectation$,ki=e.store.state.hasInteractiveBranches,io=e.store.ui.touched,dn=e.store.ui.modals.hotKeyMap.data,Cn=e.store.ui.modals.hotKeyMap.show,Vi=e.store.ui.overlayContainer$,jn=e.store.ui.controls.interactiveTimeIndicator,cn=e.store.state.showInteractiveTimeIndicator,Mo=e.store.ui.contextMenu.position$,Tn=e.store.actions.internal.setQuality,Vr=e.store.actions.internal.closeSettingsMenu,mr=e.store.ui.autoplayNextEnabled$,Zn=e.store.ui.userActionsDisabled,{fakeIsPlaying$:kn,notifications$:un,graphIsOpened$:In}=go(),bo=ie(void 0),it=ie(void 0),pn=ie(void 0),Xn=ie(void 0),Jn,En,fn;dn.set(Kh());let{closeNotification:mn,notificationsToShow$:Ko}=un,Xi=v(()=>!!n().slow_video),Ji=()=>mn("slow_video"),er=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Pn=ie(void 0),tr=ce(!1),vr,oo=ce(!1),no=ce(),An=ce(!1),Mn=ie(!1),$o=ie(!1),ro=ie(!1),Ln=ie(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Fo=v(()=>u()&&!f()&&!(r(Mn)||r($o))&&!(r(ro)&&!_())),Rr=!0,ir=v(()=>e.uiConfig.features.thumbTimer&>()&&a()==="video"&&!p()&&!l()&&!Li&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),gr=v(()=>a()==="video"&&!x()&&y()),Vn=ie(!1),Rn=v(()=>(tt()||e.showAutoplayNext&&C())&&!!ae()&&!!_e()&&(e.showAds&&k()||!e.showAds)&&E()&&!l()&&!r(Vn)),Dr=v(()=>P()&&!(p()||r(Rn))&&!u()),or=ie(!1),nr=v(()=>A()!==null),{toggle:rr}=kn,Qo=!1,ii=null;si==null||si.setContext(Ql());let Nr=()=>{e.autoplay&&!Li&&e.uiConfig.controls.showOnStartupAtAutoplay&&je(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Nr});let hr=()=>{window.clearTimeout(Jn),oo.set(!1)},Br=()=>{window.clearTimeout(En),no.set(null)},je=Ce=>{hr(),oo.set(!0),Jn=window.setTimeout(()=>oo.set(!1),Ce);let dt=Ce-100;vr=window.setTimeout(()=>{T()&&tr.set(!1)},dt>0?dt:Ce)},Mt=(Ce,dt)=>{Br(),no.set(dt),En=window.setTimeout(()=>no.set(null),Ce)},Ii=ci.subscribe(Ce=>{xt.set(Ce),Ce&&(window.clearTimeout(fn),fn=window.setTimeout(()=>xt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),eo=()=>It(this,null,function*(){var dt,Lt,ai,Wi;let Ce=Cs();if(Ce){let Di=dd(),Zt=yo();Ce=Di===Zt||Di===He()}if(Ce){je(e.uiConfig.controls.hideTimeoutFullscreen);try{yield si==null?void 0:si.remove()}catch(Di){ni({message:String(Di)})}}ho.set(Ce),e.store.getAdmanWrapper().setFullscreen(Ce),y()?(Lt=(dt=e.store.callbacks)==null?void 0:dt.onFullscreenEnter)==null||Lt.call(dt):(Wi=(ai=e.store.callbacks)==null?void 0:ai.onFullscreenExit)==null||Wi.call(ai)}),so=Ce=>{let{width:dt,height:Lt}=Ce.target;Ao.set({width:dt,height:Lt})},Lo=()=>{let{width:Ce,height:dt}=r(bo).getBoundingClientRect();Ao.set({width:Ce,height:dt})};qt(()=>{var dt;return Zc(eo),e.uiConfig.features.annotationsInside&&(zt==null||zt.init(r(bo))),aa(si)&&(si==null||si.assignPlayerContainer(r(bo)),si==null||si.registryExternalEventHandlers({resize:so,leavepictureinpicture:Lo})),e.interactiveContainer&&((dt=at().parentElement)==null||dt.insertBefore(e.interactiveContainer,at().nextSibling)),()=>{window.clearTimeout(Jn),window.clearTimeout(vr),window.clearTimeout(En),window.clearTimeout(fn),Ii(),si==null||si.dispose().catch(Lt=>{ni({message:String(Lt)})}),Xc(eo)}});let yo=()=>{let Ce=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ut()?r(bo):ut(),dt=Ce.getRootNode(),Lt=dt instanceof ShadowRoot?dt.host:dt,ai=Ye()instanceof HTMLElement&&Ye().contains(Lt);return e.uiConfig.allowChangingFullscreenTarget&&Ye()&&ai?Ye():Ce},Uo=()=>It(this,null,function*(){Cs()?(yield jc(document),ni({message:"exit fullscreen"})):(ni({message:"request fullscreen"}),yield Yc(yo()))}),qi=()=>{Vr(),pi.set(!1)},Ri=Ce=>{x()||(Ce.preventDefault(),pi.set(!0),Mo.set({left:Ce.clientX,top:Ce.clientY}))};function ot(){An.set(!0),Li||je(e.uiConfig.controls.hideTimeoutCursor)}function jt(){Li||(tr.set(!0),je(e.uiConfig.controls.hideTimeoutCursor))}function to(){An.set(!1),O($o,!1),O(Mn,!1),Qo=!1,e.store.actions.internal.releaseCamera(),je(e.uiConfig.controls.hideTimeout)}function xi(Ce){return Ce?Ce.offsetTop+xi(Ce.offsetParent):0}function $i(Ce){return Ce?Ce.offsetLeft+$i(Ce.offsetParent):0}function Vo(Ce){if(R()&&cn){let dt=Ce.currentTarget,Lt=xi(dt),ai=$i(dt),Wi=Ce.pageX-ai,Di=Ce.pageY-Lt,{left:Zt,bottom:ar,right:Qe}=R(),Bt=Qe-Zt;return Wi>=Zt-Bt&&Di<=ar+Bt}}function xo(Ce){if(r(bo)){let dt=xi(Ce.currentTarget),Lt=F().height,ai=Ce.pageY-dt;if(Vo(Ce)){O($o,!1);return}ai<40?O($o,!0):ai>Lt-40?O(Mn,!0):(O($o,!1),f()||O(Mn,!1))}}function Dn(Ce){xo(Ce),r(Fo)||je(e.uiConfig.controls.hideTimeoutCursor),Y()&&Qo&&ii&&e.store.actions.internal.moveCameraFocusPX(ii.clientX-Ce.clientX,ii.clientY-Ce.clientY,Ce.timeStamp-ii.timeStamp),ii=Ce}let ao=Ce=>{Ce.preventDefault(),Ce.button===0&&(Qo=!0,e.store.actions.internal.holdCamera()),je(e.uiConfig.controls.hideTimeoutCursor)},vn=Ce=>{Ce.preventDefault(),Ce.button===0&&(ii=Ce,Qo=!1,e.store.actions.internal.releaseCamera()),je(e.uiConfig.controls.hideTimeoutCursor)},Nn=Ce=>{Ce.preventDefault(),Rr&&(ni({message:"double click on video"}),Uo(),je(e.uiConfig.controls.hideTimeoutCursor))},Ro=Ce=>{var dt;if(Ce.preventDefault(),H()||f()){qi();return}if(!(E()&&!ki)){if(r(nr))return rr();if((dt=St())==null||dt.focus(),!Kt()){e.firstStart(),je(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||X()!==Jm.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),je(e.uiConfig.controls.hideTimeoutCursor)}},_r=Ce=>{qi(),io.set(!0),je(e.uiConfig.controls.hideTimeout),Ce&&Mt(e.uiConfig.controls.hideHotKeyHelpers,Ce)},br=()=>{var Ce,dt;qi(),(Ce=e.store.callbacks)!=null&&Ce.onOpenHotKeyMap?(dt=e.store.callbacks)==null||dt.onOpenHotKeyMap(oe()):Cn.update(Lt=>!Lt)},Or=()=>{io.set(!0)},$r=e.store.ui.contextMenu.openedByBtnKeyboard$,Hr=e.store.ui.contextMenu.btnRef$,Go=ie(void 0),Bn=e.store.ui.contextMenu.openedByHotKey$,sr=e.store.ui.contextMenu.lastActiveElem$;qe(()=>{Vi.set(r(Pn))}),qe(()=>{O(ro,me(r(Ln)&&X()!==Jm.PlaybackState.PLAYING)),r(Ln)||yt(()=>O(Ln,!0))}),qe(()=>{if(e.playerView==="compact"){At.set(ee());return}At.set((r(ro)||E()||f()||ue()||le()||Me()||ee())&&!r(Fo)&&(a()==="video"||a()==="ads")&&!l())}),qe(()=>{!ue()&&r(or)&&!u()&&je(e.uiConfig.controls.hideTimeoutCursor),yt(()=>O(or,me(ue())))}),qe(()=>{r(Xn),f(),Le(),yt(()=>al(r(Xn),f(),Le()))}),qe(()=>{r(Go),H(),J(),yt(()=>al(r(Go),H(),J()))}),qe(()=>{let Ce=Ve();Ce&&(H(),yt(()=>sl(Ce,H(),$r)))}),qe(()=>{r(Go),H(),j(),yt(()=>al(r(Go),H(),j()))}),qe(()=>{let Ce=N();Ce&&(H(),yt(()=>jh(Ce,H(),Bn)))}),qe(()=>{var Ce;!Re()&&y()&&(yt(()=>Ho.set(!1)),(Ce=St())==null||Ce.focus())}),qe(()=>{x()&&qi()});let Fr=U("video360"),Yo=e.playerView==="compact";console.log(Yo);var On=z3();Et("blur",Qs,qi);var Je=pe(On);Je.__mousemove=Dn;var Nt=h(Je);let Ei=v(()=>a()==="ads"),jo=v(()=>r(nr)?rr:void 0);ct(gf(Nt,{toggleFullscreen:Uo,hideContextMenu:qi,showHotKeyHelpers:_r,showKeyMap:br,get isAds(){return r(Ei)},get fakePlayButtonHandler(){return r(jo)},get nextButtonActive(){return se()},get prevButtonActive(){return Q()},children:(Ce,dt)=>{var Lt=F3(),ai=pe(Lt);Yd(ai,{get hideCursor(){return r(Dr)},onClick:Ro,onDblclick:Nn,onContextMenu:Ri,onMouseDown:ao,onMouseUp:vn,get videoContainer(){return at()},set videoContainer(Zt){at(Zt)}});var Wi=M(ai,2);Xl(Wi,()=>"slot",!1,(Zt,ar)=>{Te(Zt,null,{name:Gd})});var Di=M(Wi,2);Xs(Di,re,Zt=>{var ar=H3(),Qe=pe(ar);let Bt=v(()=>a()!=="thumb"||l()||Li&&e.autoplay);wa(Qe,{get hidden(){return r(Bt)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},iconVisible:!Yo});var yi=M(Qe,2);Xm(yi,{});var Do=M(yi,2);{var hn=Ue=>{let Jt=v(()=>{var wo;return(wo=e.live)==null?void 0:wo.startTime});Ud(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Jt)}})};V(Do,Ue=>{a()==="LiveWaitingStart"&&Ue(hn)})}var Zr=M(Do,2);{var Fn=Ue=>{Sa(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Zr,Ue=>{a()==="LiveWaitingRecover"&&Ue(Fn)})}var Ur=M(Zr,2);{var Tl=Ue=>{Sa(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Ur,Ue=>{a()==="LiveWaitingRecord"&&Ue(Tl)})}var Ns=M(Ur,2);{var xr=Ue=>{var Jt=R3();let wo;var mt=h(Jt);cd(mt,{get adsSlotId(){return ft()},get adsParams(){return Ut()},get adsPreviewParam(){return lt()},get adsAutoplayParam(){return wt()},get duration(){return Yt()}}),g(Jt),I(So=>wo=te(Jt,1,"ads-container svelte-tvjmg6",null,wo,So),[()=>({hidden:a()!=="ads"})]),$(Ue,Jt)};V(Ns,Ue=>{e.showAds&&Kt()&&!Yo&&Ue(xr)})}var Ia=M(Ns,2);{var Ea=Ue=>{let Jt=v(()=>!tt()&&e.showAutoplayNext&&C());ff(Ue,{get title(){return ae()},get thumb(){return _e()},get isHide(){return r(Jt)},clickCloseIcon:()=>O(Vn,!0)})};V(Ia,Ue=>{r(Rn)&&ae()&&_e()&&!Yo&&Ue(Ea)})}var Bs=M(Ia,2);{var $t=Ue=>{let Jt=v(()=>!p());Cm(Ue,{get title(){return e.title},get isHidden(){return r(Jt)}})};V(Bs,Ue=>{r(gr)&&Ue($t)})}var ht=M(Bs,2);{var lo=Ue=>{let Jt=v(()=>a()==="video"&&p());Od(Ue,{get isShifted(){return r(Jt)}})};V(ht,Ue=>{Y()&&Ue(lo)})}var zo=M(ht,2);{var co=Ue=>{var Jt=D3(),wo=h(Jt);ld(wo,{"aria-label":Fr}),g(Jt),$(Ue,Jt)};V(zo,Ue=>{ke()&&Ue(co)})}var di=M(zo,2);{var Ni=Ue=>{Hd(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};V(di,Ue=>{Me()&&Ue(Ni)})}var vs=M(di,2);{var kl=Ue=>{xa(Ue,{get shifted(){return p()},get captions(){return B()},get position(){return de()},get playerSize(){return F()}})};V(vs,Ue=>{fe().value!=="off"&&Ue(kl)})}var rc=M(vs,2);{var Nu=Ue=>{var Jt=N3();Jt.__contextmenu=Ri,Jt.__click=[V3,H,pi,f,bt,qi];var wo=h(Jt);Fd(wo,{}),g(Jt),$(Ue,Jt)};V(rc,Ue=>{l()&&Ue(Nu)})}var sc=M(rc,2);{var Pa=Ue=>{var Jt=B3();let wo;var mt=h(Jt);cs(mt,{needPadding:!1,canRewindLive:!1,isAds:!1,isRewindableLive:!1,isHidden:!1}),g(Jt),I(So=>wo=te(Jt,1,"timiline-wrapper svelte-tvjmg6",null,wo,So),[()=>({visible:p()})]),$(Ue,Jt)};V(sc,Ue=>{Yo&&Ue(Pa)})}var ac=M(sc,2);{var lc=Ue=>{let Jt=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),wo=v(()=>a()==="ads"),mt=v(()=>e.canRewindLive&&Ie()!==0);Bd(Ue,{get bottomHidden(){return r(Jt)},get bottomNoSmooth(){return T()},get showControls(){return p()},get isAds(){return r(wo)},get canRewindLive(){return r(mt)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Xt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Be()},get nextButtonActive(){return se()},get prevButtonActive(){return Q()},get isOneVideoPlaylist(){return Pe()},customFullscreenSupported:Rr,toggleFullscreen:Uo,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(it)},set playerControlsWrapperRef(So){O(it,me(So))},get playerControlsRef(){return r(pn)},set playerControlsRef(So){O(pn,me(So))}})};V(ac,Ue=>{Kt()&&!Yo&&Ue(lc)})}var Il=M(ac,2);{var Bu=Ue=>{var Jt=O3(),wo=h(Jt);let mt=v(()=>{var So;return(So=r(pn))==null?void 0:So.clientHeight});Kd(wo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(mt)},returnFocus:()=>{var So;return(So=St())==null?void 0:So.focus()},get ref(){return r(Xn)},set ref(So){O(Xn,me(So))}}),g(Jt),$(Ue,Jt)};V(Il,Ue=>{!Me()&&a()!=="ads"&&Ue(Bu)})}var El=M(Il,2);ud(El,{isLive:!0,isHidden:!1,get isPlaying(){return Ke()},get position(){return de()},get duration(){return st()}});var Aa=M(El,2);ym(Aa,{data:no});var Pl=M(Aa,2);uf(Pl,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ue;return(Ue=St())==null?void 0:Ue.focus()},get visible(){return H()},get playerContainerRef(){return r(bo)},get controlsContainerRef(){return r(it)},get position(){return xe()},get menuElementRef(){return r(Go)},set menuElementRef(Ue){O(Go,me(Ue))}});var dc=M(Pl,2);{var cc=Ue=>{Qd(Ue,{onClose:Ji,onSelectAutoQuality:()=>{Tn("auto"),Ji()}})};V(dc,Ue=>{r(Xi)&&Ue(cc)})}var uc=M(dc,2);{var Ou=Ue=>{fa(Ue,{})};V(uc,Ue=>{r(er)&&Ue(Ou)})}var pc=M(uc,2);{var Hu=Ue=>{bf(Ue,{})};V(pc,Ue=>{ye()&&Ue(Hu)})}var Ma=M(pc,2);{var Fu=Ue=>{md(Ue,{})};V(Ma,Ue=>{De()&&Ue(Fu)})}$(Zt,ar)}),$(Ce,Lt)},$$slots:{default:!0}}),Ce=>St(Ce),()=>St());var Hn=M(Nt,2);ct(Hn,Ce=>O(Pn,Ce),()=>r(Pn)),g(Je),ct(Je,Ce=>O(bo,Ce),()=>r(bo));var gn=M(Je,2);{var yr=Ce=>{var dt=U3();$(Ce,dt)};V(gn,Ce=>{et()&&Ce(yr)})}Et("mouseenter",Je,ot),Et("mouseleave",Je,to),Et("click",Je,Or,!0),Et("focusin",Je,jt,!0),$(t,On),q(),o()}rt(["mousemove","contextmenu","click"]);var Rs=require("@vkontakte/videoplayer-core/es2015"),e0=require("@vkontakte/videoplayer-shared/es2015");var W3=L('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),K3=L("<div><!></div>"),Q3={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
|
|
343
344
|
animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
|
|
344
345
|
.triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
|
|
345
346
|
.triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
|
|
@@ -355,9 +356,92 @@ Try switching the\xA0quality to\xA0Auto.`},Nh=L_;var as=new Map;as.set(Xa.Interf
|
|
|
355
356
|
100% {
|
|
356
357
|
opacity: 0;
|
|
357
358
|
}
|
|
358
|
-
}.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function
|
|
359
|
+
}.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 xu(t,e){z(e,!0),K(t,Q3);let i=m(e,"seekStep",3,0),o=ie(!1),n=0,a=0,s=ie(me(i())),d=_=>{_.stopPropagation(),a+=1,O(s,i()*(a-1)),a===1?e.handleSingleFirstClick(_):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,O(o,!1)},300)};xn(()=>{window.clearTimeout(n)});var l=K3();l.__click=d;var u=h(l);{var f=_=>{var p=W3(),b=pe(p),x=M(b,2),y=h(x),C=h(y),k=M(C,2),E=M(k,2);g(y);var P=M(y,2),A=h(P,!0);g(P),g(x),I(T=>{var R,F,Y,H;te(b,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),te(C,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),te(k,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),te(E,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ge(A,T)},[()=>U("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),$(_,p)};V(u,_=>{r(o)&&_(f)})}g(l),I(()=>{var _;return te(l,1,`double-click-area ${(_=e.side)!=null?_:""}`,"svelte-nhq2ld")}),$(t,l),q()}rt(["click"]);var G3=(t,e,i)=>{e(!1),i()},Y3=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),j3={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 tv(t,e){z(e,!0),K(t,j3);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,b=s.actions.internal.nextVideoAnnouncementCancel,x=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),b()};qt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=ze(),k=pe(C);{var E=P=>{var A=Y3(),T=M(pe(A),2),R=h(T),F=h(R),Y=h(F,!0);g(F);var H=M(F,2);pa(H,{onClick:y}),g(R);var X=M(R,2);X.__click=[G3,u,_];var oe=h(X),ee=h(oe),ue=h(ee);let le;var Me=M(ue,2);{var Le=N=>{vd(N,{get isRunning(){return a()},onTimerEnded:x})};V(Me,N=>{n()&&N(Le)})}g(ee),g(oe);var J=M(oe,2),Ve=h(J),j=h(Ve,!0);g(Ve),g(J),g(X),g(T),I((N,Re)=>{ge(Y,N),nt(ee,`background-image: url('${e.thumb}')`),le=te(ue,1,"thumb-overlay svelte-1qdxi6t",null,le,Re),ge(j,e.title)},[()=>n()?U("end_screen_next_video"):U("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(P,A)};V(k,P=>{e.isHide||P(E)})}$(t,C),q(),o()}rt(["click"]);var Y1=require("@vkontakte/videoplayer-core/es2015");var j1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;qt(()=>{Y1.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))}),xn(()=>{i==null||i(),clearTimeout(o)})};var Z1=require("@vkontakte/videoplayer-core/es2015");var wu=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/es2015"),J1=({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,u=()=>e().querySelector("video"),f=()=>X1.clientChecker.device.isIOS&&we(s)===Z1.VideoFormat.DASH_LIVE_CMAF,_=()=>{l==null||l(),l=null},p=b=>{if(_(),!f()||!b)return;let x=u();if(!x)return;let y=new wu(x),C=we(d),k=we(a),E=we(n);for(let T of C)k.some(F=>F.value===T.id)&&y.attach(T,E.value===T.id);let P=d.subscribe(T=>{for(let R of T)y.updateSrc(R)}),A=()=>{let T=y.getCurrentShowingId();o(we(a).find(R=>R.value===T))};x.textTracks.addEventListener("change",A),l=()=>{P(),y.detachAll(),x.textTracks.removeEventListener("change",A)}};qt(()=>i.subscribe(p)),xn(_)};var Z3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},X3=L("<!> <!>",1),J3=L("<div><!></div>"),ex=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),tx=L("<div><!></div>"),ix=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),ox=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),nx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><div><div data-testid="video-container"></div></div> <!> <!> <div class="overlay-container"></div></div>'),rx={hash:"svelte-dtyj47",code:`.player-wrapper.svelte-dtyj47 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-dtyj47 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-dtyj47 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-dtyj47,
|
|
359
360
|
.video-container.svelte-dtyj47,
|
|
360
|
-
.ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function ev(t,e){var Lo,fi;q(e,!0),G(t,J3);let[i,o]=Fe(),n=()=>C(ii,"$playerPhase",i),a=()=>C(Lt,"$isLoaderVisible",i),s=()=>C(dt,"$adPlaybackState",i),d=()=>C(Ko,"$crashed",i),l=()=>C(er,"$notificationsToShow$",i),u=()=>C(je,"$playbackState$",i),f=()=>C(Oe,"$graphIsOpened$",i),_=()=>C(oi,"$interactiveHideMobileControls",i),p=()=>C(bt,"$isEnded$",i),$=()=>C(Li,"$isInteractiveExpectation$",i),w=()=>C(ct,"$controlsVisible",i),y=()=>C(Ti,"$touched",i),S=()=>C(pn,"$autoplayNextEnabled$",i),k=()=>C(Qi,"$postrollPassed",i),P=()=>C(li,"$rotateAlpha",i),A=()=>C(Zn,"$playerSize",i),E=()=>C(gn,"$bottomNoSmooth",i),T=()=>C(Ct,"$videoSize",i),V=()=>C(Ge,"$isFullscreen",i),z=()=>C(et,"$position$",i),j=()=>C(Et,"$duration$",i),F=()=>C(kn,"$loadedMetadata",i),Z=()=>C(Ni,"$settingsMenuVisible",i),J=()=>C(Ki,"$scrubbingInProgress",i),ne=()=>C(Ho,"$volumeChangingInProgress",i),fe=()=>C(U,"$chromecastConnected$",i),de=()=>C(yi,"$isInteractiveTime$",i),Re=()=>C(vo,"$isActiveLive",i),Me=()=>C(Oo,"$settingsMenuOpenedByKeyboard",i),ee=()=>C(mo,"$isPlaying$",i),Le=()=>C(Kt,"$language$",i),X=()=>C(Tn,"$disabledControls$",i),N=()=>C(Io,"$is3DVideo",i),De=()=>C(Eo,"$icon3DVideoVisible",i),re=()=>C(Zt,"$chromecastDeviceName$",i),Ee=()=>C(Qt,"$currentSubtitle$",i),Ne=()=>C(go,"$currentSubtitleCaptions$",i),me=()=>C(Jt,"$realDuration$",i),B=()=>C(mi,"$isLive$",i),ce=()=>C(Fo,"$debugPanelVisible",i),Pe=v(e,"videoContainer",15),Ye=v(e,"adsSlotId",3,void 0),lt=v(e,"adsParams",3,void 0),Ae=v(e,"adsPreviewParam",3,void 0),ye=v(e,"adsAutoplayParam",3,void 0),Ve=v(e,"duration",3,void 0),Xe=v(e,"logoTargetUrl",3,""),pt=v(e,"showNextPrevButtons",3,!1),rt=v(e,"nextButtonActive",3,!1),Ot=v(e,"prevButtonActive",3,!1),st=v(e,"endScreenVideoTitle",3,void 0),wt=v(e,"endScreenVideoThumb",3,void 0),Wt=v(e,"isOneVideoPlaylist",3,!1),jt=v(e,"shadowRootContainer",3,void 0),Be=v(e,"outerContainerRef",3,void 0),se=v(e,"showMiniTimer",3,!1),Q=v(e,"fullScreenTarget",3,void 0),ae=v(e,"playerStarted",3,!1),_e=v(e,"showEndScreen",3,!0),{notifications$:Te,graphIsOpened$:Oe}=fo(),ft=e.store.getLogger().createComponentLog("Root component"),Kt=e.store.interfaceLanguage$,je=e.store.state.playbackState$,dt=e.store.ads.playbackState,et=e.store.state.positionWithScrubbing$,Et=e.store.state.duration$,ii=e.store.playerPhase,Ge=e.store.ui.isFullscreen,ct=e.store.ui.controlsVisible,oi=e.store.ui.interactiveHideMobileControls,Ni=e.store.ui.settingsMenu.visible$,Oo=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ki=e.store.ui.scrubbingInProgress,Ho=e.store.ui.volumeChangingInProgress,Fo=e.store.ui.debugPanelVisible,Lt=e.store.state.isLoaderVisible,bt=e.store.state.isEnded$,U=e.store.state.chromecastConnected$,Zt=e.store.state.chromecastDeviceName$,Qi=e.store.ads.postrollPassed,Bi=e.store.ui.mobileUnmuteButtonExpanded,ai=e.store.ui.mobileUnmuteButtonVisible,mi=e.store.state.isLive$,mo=e.store.state.isPlaying$,vo=e.store.state.isActiveLive$,eo=e.store.state.isRewindableLive$,Ko=e.store.state.crashed$,Ht=e.store.webApi.annotationsApi,vi=e.store.webApi.pictureInPictureApi,Ct=e.store.state.videoSize$,Qt=e.store.state.currentSubtitle$,go=e.store.state.currentSubtitleCaptions$,Jt=e.store.state.duration$,Zn=e.store.ui.playerSize,Io=e.store.ui.is3DVideo,Eo=e.store.ui.icon3DVideoVisible,li=e.store.ui.rotateAlpha,xt=e.store.state.isInteractive,yi=e.store.state.isInteractiveTime$,Li=e.store.state.isInteractiveExpectation$,Oi=e.store.state.hasInteractiveBranches,Tn=e.store.ui.controls.disabledControls$,Ti=e.store.ui.touched,to=e.store.ui.overlayContainer$,pn=e.store.ui.autoplayNextEnabled$,kn=e.store.state.loadedMetadata$,Vi=e.store.actions.internal.closeSettingsMenu,Xn=(Lo=e.store.callbacks)==null?void 0:Lo.onDisabledPlayPrevChapterClick,fn=(fi=e.store.callbacks)==null?void 0:fi.onDisabledSeekToInteractiveClick,Po=e.store.actions.internal.setQuality,In=te(void 0),Nr=te(void 0),gr=te(void 0),Jn=te(void 0),En,mn,Pn,ho=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),tt=te(void 0),{closeNotification:vn,notificationsToShow$:er}=Te,tr=m(()=>!!l().slow_video),An=()=>vn("slow_video"),gn=le(!1),hn,Qo=te(!1),Gi=m(()=>u()!==Ls.PlaybackState.PLAYING),Yi=te(!1),ir=m(()=>f()||_()||!r(Qo)&&(p()&&!!Oi||r(Gi)&&$())),Mn=te(!0),or=m(()=>e.uiConfig.features.thumbTimer&&se()&&n()==="video"&&!w()&&!d()&&!xt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),hr=te(!1),io=m(()=>(_e()||e.showAutoplayNext&&S())&&!!st()&&!!wt()&&(e.showAds&&k()||!e.showAds)&&p()&&!d()&&!r(hr)),oo=te(!1),Ln=m(()=>Pe()&&P()%180?A().height/A().width:1);vi==null||vi.setContext(Fl());let Vn=Je=>{clearTimeout(mn),Je&&(ai.set(!0),Bi.set(!0),mn=setTimeout(()=>{Bi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),xt||no(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Vn});let _o=()=>{clearTimeout(En),O(Qo,!1),_()&&oi.set(!1)},no=Je=>{_o(),O(Qo,!0),En=setTimeout(()=>O(Qo,!1),Je);let Gt=Je-100;hn=setTimeout(()=>{E()&&gn.set(!1)},Gt>0?Gt:Je)},Rn=Io.subscribe(Je=>{Eo.set(Je),Je&&(clearTimeout(Pn),Pn=setTimeout(()=>Eo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Uo=(...Gt)=>kt(this,[...Gt],function*(Je=ws()){var Zi,Ri,gi,bo,$o,Hn;if(Je&&!Ls.clientChecker.device.isIOS){let so=od(),_n=Bn(),Fn=Ls.clientChecker.browser.isSamsungBrowser&&so===jt();Je=so===_n||Fn}if(Je){no(e.uiConfig.controls.hideTimeoutFullscreen);try{yield vi==null?void 0:vi.remove()}catch(so){ft({message:String(so)})}try{let so=(Zi=T())!=null&&Zi.width&&((Ri=T())!=null&&Ri.height)?T():A();yield Uh(so)}catch(so){ft({message:String(so)})}}Ge.set(Je),e.store.getAdmanWrapper().setFullscreen(Je),V()?(bo=(gi=e.store.callbacks)==null?void 0:gi.onFullscreenEnter)==null||bo.call(gi):(Hn=($o=e.store.callbacks)==null?void 0:$o.onFullscreenExit)==null||Hn.call($o)}),Br=Je=>{let Gt=Je;Zn.set({width:Gt.target.width,height:Gt.target.height})};Ut(()=>{var Je;return Qc(Uo),e.uiConfig.features.annotationsInside&&(Ht==null||Ht.init(r(In))),sa(vi)&&(vi==null||vi.assignPlayerContainer(r(In)),vi==null||vi.registryExternalEventHandlers({resize:Br})),O(Mn,!Ls.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((Je=Pe().parentElement)==null||Je.insertBefore(e.interactiveContainer,Pe().nextSibling)),()=>{clearTimeout(En),clearTimeout(hn),clearTimeout(mn),clearTimeout(Pn),Rn(),vi==null||vi.dispose().catch(Gt=>{ft({message:String(Gt)})}),Gc(Uo)}});let Dn=te(!0),_r=te(!0),Nn=Je=>{let Gt=z()+(Je==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Gt<0?(O(Dn,!1),Gt=0):Gt>=j()&&(O(_r,!1),Gt=j()),O(Yi,!0),e.seekTime(Gt)},Bn=()=>{let Je=Ls.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Be()?r(In):Be(),Gt=Je.getRootNode(),Zi=Gt instanceof ShadowRoot?Gt.host:Gt,Ri=Q()instanceof HTMLElement&&Q().contains(Zi);return e.uiConfig.allowChangingFullscreenTarget&&Q()&&Ri?Q():Je},Or=()=>kt(this,null,function*(){try{if(ws())yield Kc(document),ft({message:"exit fullscreen"});else{if(ft({message:"request fullscreen"}),Ls.clientChecker.device.isIOS&&!F())return;yield Wc(Bn())}}catch(Je){ft({message:String(Je)})}}),nr=()=>{Vi()},br=Je=>{if(Je.preventDefault(),Z()){nr();return}if(!ae()){e.firstStart(),no(e.uiConfig.controls.hideTimeoutCursor);return}O(Yi,!1),w()?_o():no(e.uiConfig.controls.hideTimeoutMobile)},rr=()=>{Ti.set(!0)},On=()=>{xt||(gn.set(!0),no(e.uiConfig.controls.hideTimeoutCursor))},ni=Je=>{Xn&&(Xn(Je),no(e.uiConfig.controls.hideTimeoutMobile))},Go=Je=>{fn&&(fn(Je),no(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{to.set(r(tt))}),We(()=>{ct.set((r(Gi)||Z()||J()||ne()||fe()||!r(io)&&(p()||r(Qo)&&!r(Yi)))&&!r(ir)&&n()==="video"&&!d())}),We(()=>{!J()&&r(oo)&&!de()&&no(e.uiConfig.controls.hideTimeoutMobile),O(oo,ve(J()))}),We(()=>{O(Dn,z()>0),O(_r,ve(!Re()&&z()<j()))}),We(()=>{nl(r(Jn),Z(),Me())});let $r=H("aria_label_video_player"),Hr=H("video360");Q1({fullScreenChangeHandler:Uo,getFullscreenTarget:Bn}),j1({store:e.store,getFullscreenTarget:Bn});var ot=X3();Pt("blur",Ks,nr),He(ot,"aria-label",$r);var mt=h(ot);let ki;mt.__click=br;var ro=h(mt);let ji;ut(ro,Je=>Pe(Je),()=>Pe()),g(mt);var Ao=M(mt,2);Kl(Ao,()=>"slot",!1,(Je,Gt)=>{Se(Je,null,{name:Wd})});var Mo=M(Ao,2);Zs(Mo,Le,Je=>{var Gt=Z3(),Zi=pe(Gt);let Ri=m(()=>n()!=="thumb"||d()||xt&&e.autoplay);Bd(Zi,{get hidden(){return r(Ri)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var gi=M(Zi,2);{var bo=qe=>{var zt=K3(),xi=pe(zt);{var Do=bn=>{let Yr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);bu(bn,{side:"left",get seekStep(){return r(Yr)},handleSingleFirstClick:br,handleSecondClick:()=>Nn("backward")})};R(xi,bn=>{r(Dn)&&bn(Do)})}var Xo=M(xi,2);{var ps=bn=>{let Yr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);bu(bn,{side:"right",get seekStep(){return r(Yr)},handleSingleFirstClick:br,handleSecondClick:()=>Nn("forward")})};R(Xo,bn=>{r(_r)&&bn(ps)})}b(qe,zt)};R(gi,qe=>{e.canRewindLive&&eo&&!X().has("TIMELINE")&&qe(bo)})}var $o=M(gi,2);{var Hn=qe=>{let zt=m(()=>{var xi;return(xi=e.live)==null?void 0:xi.startTime});Od(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(zt)}})};R($o,qe=>{n()==="LiveWaitingStart"&&qe(Hn)})}var so=M($o,2);{var _n=qe=>{$a(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(so,qe=>{n()==="LiveWaitingRecover"&&qe(_n)})}var Fn=M(so,2);{var Vo=qe=>{$a(qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Fn,qe=>{n()==="LiveWaitingRecord"&&qe(Vo)})}var yr=M(Fn,2);{var xr=qe=>{var zt=Q3();let xi;var Do=h(zt);nd(Do,{get adsSlotId(){return Ye()},get adsParams(){return lt()},get adsPreviewParam(){return Ae()},get adsAutoplayParam(){return ye()},get duration(){return Ve()}}),g(zt),I(Xo=>xi=ie(zt,1,"ads-container svelte-dtyj47",null,xi,Xo),[()=>({hidden:n()!=="ads"})]),b(qe,zt)};R(yr,qe=>{e.showAds&&ae()&&qe(xr)})}var wr=M(yr,2);{var Fr=qe=>{let zt=m(()=>!_e()&&e.showAutoplayNext&&S());Jm(qe,{get title(){return st()},get thumb(){return wt()},get isHide(){return r(zt)},clickCloseIcon:()=>O(hr,!0)})};R(wr,qe=>{r(io)&&st()&&wt()&&qe(Fr)})}var jo=M(wr,2);{var Sr=qe=>{Vd(qe,{})};R(jo,qe=>{N()&&qe(Sr)})}var sr=M(jo,2);{var ar=qe=>{var zt=G3(),xi=h(zt);id(xi,{"aria-label":Hr}),g(zt),b(qe,zt)};R(sr,qe=>{De()&&qe(ar)})}var Cr=M(sr,2);{var yo=qe=>{Dd(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return re()}})};R(Cr,qe=>{fe()&&qe(yo)})}var Un=M(Cr,2);{var nt=qe=>{Rd(qe,{get shifted(){return w()},get captions(){return Ne()},get position(){return z()},get playerSize(){return A()},isMobile:!0})};R(Un,qe=>{Ee().value!=="off"&&qe(nt)})}var Ft=M(Un,2);{var Ii=qe=>{var zt=Y3();zt.__click=[W3,Z,Ni,nr];var xi=h(zt);Nd(xi,{}),g(zt),b(qe,zt)};R(Ft,qe=>{d()&&qe(Ii)})}var Zo=M(Ft,2);{var zn=qe=>{let zt=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),xi=m(()=>n()==="ads"),Do=m(()=>e.canRewindLive&&me()!==0);Ld(qe,{get bottomHidden(){return r(zt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(xi)},get canRewindLive(){return r(Do)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Xe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return pt()},get nextButtonActive(){return rt()},get prevButtonActive(){return Ot()},get isOneVideoPlaylist(){return Wt()},get customFullscreenSupported(){return r(Mn)},get endScreenShown(){return r(io)},toggleFullscreen:Or,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:ni,onDisabledSeekToInteractiveClick:Go,get playerControlsWrapperRef(){return r(Nr)},set playerControlsWrapperRef(Xo){O(Nr,ve(Xo))},get playerControlsRef(){return r(gr)},set playerControlsRef(Xo){O(gr,ve(Xo))}})};R(Zo,qe=>{ae()&&qe(zn)})}var we=M(Zo,2);{var Rt=qe=>{var zt=j3(),xi=h(zt);zd(xi,{get supportLink(){return e.supportLink},returnFocus:Z1.noop,get ref(){return r(Jn)},set ref(Do){O(Jn,ve(Do))}}),g(zt),b(qe,zt)};R(we,qe=>{Z()&&qe(Rt)})}var ui=M(we,2);let At=m(()=>!r(or));sd(ui,{get isLive(){return B()},get isHidden(){return r(At)},get isPlaying(){return ee()},get position(){return z()},get duration(){return j()}});var ei=M(ui,2);{var pi=qe=>{ua(qe,{})};R(ei,qe=>{r(ho)&&qe(pi)})}var Hi=M(ei,2);{var xo=qe=>{dd(qe,{})};R(Hi,qe=>{ce()&&qe(xo)})}var ri=M(Hi,2);{var Ro=qe=>{qd(qe,{onClose:An,onSelectAutoQuality:()=>{Po("auto"),An()}})};R(ri,qe=>{r(tr)&&qe(Ro)})}b(Je,Gt)});var Yo=M(Mo,2);ut(Yo,Je=>O(tt,Je),()=>r(tt)),g(ot),ut(ot,Je=>O(In,Je),()=>r(In)),I((Je,Gt)=>{ki=ie(mt,1,"video-wrapper svelte-dtyj47",null,ki,Je),ji=ie(ro,1,"video-container svelte-dtyj47",null,ji,Gt),it(ro,`transform: rotate(${P()}deg) scale(${r(Ln)})`),He(ro,"data-is-playing",ee())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),Pt("click",ot,rr,!0),Pt("focusin",ot,On,!0),b(t,ot),W(),o()}at(["click"]);function yu(t){let e="";return jn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),jn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),jn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),jn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),jn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),jn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),jn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),jn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),jn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),jn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),jn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),jn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),jn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function jn(t){return typeof t=="string"&&!t.includes(";")}var ex=L('<div class="root svelte-1cnbt6x"><!></div>'),tx={hash:"svelte-1cnbt6x",code:`.root.svelte-1cnbt6x {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
|
|
361
|
+
.ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function iv(t,e){var qi,Ri;z(e,!0),K(t,rx);let[i,o]=Oe(),n=()=>S(ni,"$playerPhase",i),a=()=>S(At,"$isLoaderVisible",i),s=()=>S(gt,"$adPlaybackState",i),d=()=>S(Ui,"$crashed",i),l=()=>S(Xn,"$notificationsToShow$",i),u=()=>S(Ye,"$playbackState$",i),f=()=>S(He,"$graphIsOpened$",i),_=()=>S(li,"$interactiveHideMobileControls",i),p=()=>S(bt,"$isEnded$",i),b=()=>S(Li,"$isInteractiveExpectation$",i),x=()=>S(pt,"$controlsVisible",i),y=()=>S(ki,"$touched",i),C=()=>S(dn,"$autoplayNextEnabled$",i),k=()=>S(ri,"$postrollPassed",i),E=()=>S(ci,"$rotateAlpha",i),P=()=>S(Yn,"$playerSize",i),A=()=>S(fn,"$bottomNoSmooth",i),T=()=>S(Tt,"$videoSize",i),R=()=>S(Xe,"$isFullscreen",i),F=()=>S(tt,"$position$",i),Y=()=>S(St,"$duration$",i),H=()=>S(Cn,"$loadedMetadata",i),X=()=>S(Oi,"$settingsMenuVisible",i),oe=()=>S(Hi,"$scrubbingInProgress",i),ee=()=>S(ho,"$volumeChangingInProgress",i),ue=()=>S(Dt,"$chromecastConnected$",i),le=()=>S(Ti,"$isInteractiveTime$",i),Me=()=>S(bi,"$isActiveLive",i),Le=()=>S(Oo,"$settingsMenuOpenedByKeyboard",i),J=()=>S(fi,"$isPlaying$",i),Ve=()=>S(Kt,"$language$",i),j=()=>S(Sn,"$disabledControls$",i),N=()=>S(Po,"$is3DVideo",i),Re=()=>S(Ao,"$icon3DVideoVisible",i),re=()=>S(Z,"$chromecastDeviceName$",i),ke=()=>S(zt,"$currentSubtitle$",i),Ne=()=>S(si,"$currentSubtitleCaptions$",i),fe=()=>S(_o,"$realDuration$",i),B=()=>S(ti,"$isLive$",i),de=()=>S(Ho,"$debugPanelVisible",i),Ie=m(e,"videoContainer",15),Ke=m(e,"adsSlotId",3,void 0),st=m(e,"adsParams",3,void 0),xe=m(e,"adsPreviewParam",3,void 0),ye=m(e,"adsAutoplayParam",3,void 0),De=m(e,"duration",3,void 0),et=m(e,"logoTargetUrl",3,""),at=m(e,"showNextPrevButtons",3,!1),ft=m(e,"nextButtonActive",3,!1),Ut=m(e,"prevButtonActive",3,!1),lt=m(e,"endScreenVideoTitle",3,void 0),wt=m(e,"endScreenVideoThumb",3,void 0),Yt=m(e,"isOneVideoPlaylist",3,!1),Xt=m(e,"shadowRootContainer",3,void 0),Be=m(e,"outerContainerRef",3,void 0),se=m(e,"showMiniTimer",3,!1),Q=m(e,"fullScreenTarget",3,void 0),ae=m(e,"playerStarted",3,!1),_e=m(e,"showEndScreen",3,!0),{notifications$:Pe,graphIsOpened$:He}=go(),ut=e.store.getLogger().createComponentLog("Root component"),Kt=e.store.interfaceLanguage$,Ye=e.store.state.playbackState$,gt=e.store.ads.playbackState,tt=e.store.state.positionWithScrubbing$,St=e.store.state.duration$,ni=e.store.playerPhase,Xe=e.store.ui.isFullscreen,pt=e.store.ui.controlsVisible,li=e.store.ui.interactiveHideMobileControls,Oi=e.store.ui.settingsMenu.visible$,Oo=e.store.ui.settingsMenu.openedByBtnKeyboard$,Hi=e.store.ui.scrubbingInProgress,ho=e.store.ui.volumeChangingInProgress,Ho=e.store.ui.debugPanelVisible,At=e.store.state.isLoaderVisible,bt=e.store.state.isEnded$,Dt=e.store.state.chromecastConnected$,Z=e.store.state.chromecastDeviceName$,ri=e.store.ads.postrollPassed,pi=e.store.ui.mobileUnmuteButtonExpanded,Fi=e.store.ui.mobileUnmuteButtonVisible,ti=e.store.state.isLive$,fi=e.store.state.isPlaying$,bi=e.store.state.isActiveLive$,Zi=e.store.state.isRewindableLive$,Ui=e.store.state.crashed$,Qt=e.store.webApi.annotationsApi,mi=e.store.webApi.pictureInPictureApi,Tt=e.store.state.videoSize$,zt=e.store.state.currentSubtitle$,si=e.store.state.currentSubtitleCaptions$,_o=e.store.state.duration$,Yn=e.store.ui.playerSize,Po=e.store.ui.is3DVideo,Ao=e.store.ui.icon3DVideoVisible,ci=e.store.ui.rotateAlpha,xt=e.store.state.isInteractive,Ti=e.store.state.isInteractiveTime$,Li=e.store.state.isInteractiveExpectation$,zi=e.store.state.hasInteractiveBranches,Sn=e.store.ui.controls.disabledControls$,ki=e.store.ui.touched,io=e.store.ui.overlayContainer$,dn=e.store.ui.autoplayNextEnabled$,Cn=e.store.state.loadedMetadata$,Vi=e.store.actions.internal.closeSettingsMenu,jn=(qi=e.store.callbacks)==null?void 0:qi.onDisabledPlayPrevChapterClick,cn=(Ri=e.store.callbacks)==null?void 0:Ri.onDisabledSeekToInteractiveClick,Mo=e.store.actions.internal.setQuality,Tn=ie(void 0),Vr=ie(void 0),mr=ie(void 0),Zn=ie(void 0),kn,un,In,bo=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),it=ie(void 0),{closeNotification:pn,notificationsToShow$:Xn}=Pe,Jn=v(()=>!!l().slow_video),En=()=>pn("slow_video"),fn=ce(!1),mn,Ko=ie(!1),Xi=v(()=>u()!==Rs.PlaybackState.PLAYING),Ji=ie(!1),er=v(()=>f()||_()||!r(Ko)&&(p()&&!!zi||r(Xi)&&b())),Pn=ie(!0),tr=v(()=>e.uiConfig.features.thumbTimer&&se()&&n()==="video"&&!x()&&!d()&&!xt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),vr=ie(!1),oo=v(()=>(_e()||e.showAutoplayNext&&C())&&!!lt()&&!!wt()&&(e.showAds&&k()||!e.showAds)&&p()&&!d()&&!r(vr)),no=ie(!1),An=v(()=>Ie()&&E()%180?P().height/P().width:1);mi==null||mi.setContext(Ql());let Mn=ot=>{clearTimeout(un),ot&&(Fi.set(!0),pi.set(!0),un=setTimeout(()=>{pi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),xt||ro(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Mn});let $o=()=>{clearTimeout(kn),O(Ko,!1),_()&&li.set(!1)},ro=ot=>{$o(),O(Ko,!0),kn=setTimeout(()=>O(Ko,!1),ot);let jt=ot-100;mn=setTimeout(()=>{A()&&fn.set(!1)},jt>0?jt:ot)},Ln=Po.subscribe(ot=>{Ao.set(ot),ot&&(clearTimeout(In),In=setTimeout(()=>Ao.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Fo=(...jt)=>It(this,[...jt],function*(ot=Cs()){var to,xi,$i,Vo,xo,Dn;if(ot&&!Rs.clientChecker.device.isIOS){let ao=dd(),vn=Rn(),Nn=Rs.clientChecker.browser.isSamsungBrowser&&ao===Xt();ot=ao===vn||Nn}if(ot){ro(e.uiConfig.controls.hideTimeoutFullscreen);try{yield mi==null?void 0:mi.remove()}catch(ao){ut({message:String(ao)})}try{let ao=(to=T())!=null&&to.width&&((xi=T())!=null&&xi.height)?T():P();yield Wh(ao)}catch(ao){ut({message:String(ao)})}}Xe.set(ot),e.store.getAdmanWrapper().setFullscreen(ot),R()?(Vo=($i=e.store.callbacks)==null?void 0:$i.onFullscreenEnter)==null||Vo.call($i):(Dn=(xo=e.store.callbacks)==null?void 0:xo.onFullscreenExit)==null||Dn.call(xo)}),Rr=ot=>{let jt=ot;Yn.set({width:jt.target.width,height:jt.target.height})};qt(()=>{var ot;return Zc(Fo),e.uiConfig.features.annotationsInside&&(Qt==null||Qt.init(r(Tn))),aa(mi)&&(mi==null||mi.assignPlayerContainer(r(Tn)),mi==null||mi.registryExternalEventHandlers({resize:Rr})),O(Pn,!Rs.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((ot=Ie().parentElement)==null||ot.insertBefore(e.interactiveContainer,Ie().nextSibling)),()=>{clearTimeout(kn),clearTimeout(mn),clearTimeout(un),clearTimeout(In),Ln(),mi==null||mi.dispose().catch(jt=>{ut({message:String(jt)})}),Xc(Fo)}});let ir=ie(!0),gr=ie(!0),Vn=ot=>{let jt=F()+(ot==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;jt<0?(O(ir,!1),jt=0):jt>=Y()&&(O(gr,!1),jt=Y()),O(Ji,!0),e.seekTime(jt)},Rn=()=>{let ot=Rs.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Be()?r(Tn):Be(),jt=ot.getRootNode(),to=jt instanceof ShadowRoot?jt.host:jt,xi=Q()instanceof HTMLElement&&Q().contains(to);return e.uiConfig.allowChangingFullscreenTarget&&Q()&&xi?Q():ot},Dr=()=>It(this,null,function*(){try{if(Cs())yield jc(document),ut({message:"exit fullscreen"});else{if(ut({message:"request fullscreen"}),Rs.clientChecker.device.isIOS&&!H())return;yield Yc(Rn())}}catch(ot){ut({message:String(ot)})}}),or=()=>{Vi()},nr=ot=>{if(ot.preventDefault(),X()){or();return}if(!ae()){e.firstStart(),ro(e.uiConfig.controls.hideTimeoutCursor);return}O(Ji,!1),x()?$o():ro(e.uiConfig.controls.hideTimeoutMobile)},rr=()=>{ki.set(!0)},Qo=()=>{xt||(fn.set(!0),ro(e.uiConfig.controls.hideTimeoutCursor))},ii=ot=>{jn&&(jn(ot),ro(e.uiConfig.controls.hideTimeoutMobile))},Nr=ot=>{cn&&(cn(ot),ro(e.uiConfig.controls.hideTimeoutMobile))};qe(()=>{io.set(r(it))}),qe(()=>{pt.set((r(Xi)||X()||oe()||ee()||ue()||!r(oo)&&(p()||r(Ko)&&!r(Ji)))&&!r(er)&&n()==="video"&&!d())}),qe(()=>{!oe()&&r(no)&&!le()&&ro(e.uiConfig.controls.hideTimeoutMobile),O(no,me(oe()))}),qe(()=>{O(ir,F()>0),O(gr,me(!Me()&&F()<Y()))}),qe(()=>{al(r(Zn),X(),Le())});let hr=U("aria_label_video_player"),Br=U("video360");j1({fullScreenChangeHandler:Fo,getFullscreenTarget:Rn}),J1({store:e.store,getFullscreenTarget:Rn});var je=nx();Et("blur",Qs,or),Fe(je,"aria-label",hr);var Mt=h(je);let Ii;Mt.__click=nr;var eo=h(Mt);let so;ct(eo,ot=>Ie(ot),()=>Ie()),g(Mt);var Lo=M(Mt,2);Xl(Lo,()=>"slot",!1,(ot,jt)=>{Te(ot,null,{name:Gd})});var yo=M(Lo,2);Xs(yo,Ve,ot=>{var jt=ox(),to=pe(jt);let xi=v(()=>n()!=="thumb"||d()||xt&&e.autoplay);wa(to,{get hidden(){return r(xi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var $i=M(to,2);{var Vo=Qe=>{var Bt=X3(),yi=pe(Bt);{var Do=Fn=>{let Ur=v(()=>e.uiConfig.controls.seekStepMobile/1e3);xu(Fn,{side:"left",get seekStep(){return r(Ur)},handleSingleFirstClick:nr,handleSecondClick:()=>Vn("backward")})};V(yi,Fn=>{r(ir)&&Fn(Do)})}var hn=M(yi,2);{var Zr=Fn=>{let Ur=v(()=>e.uiConfig.controls.seekStepMobile/1e3);xu(Fn,{side:"right",get seekStep(){return r(Ur)},handleSingleFirstClick:nr,handleSecondClick:()=>Vn("forward")})};V(hn,Fn=>{r(gr)&&Fn(Zr)})}$(Qe,Bt)};V($i,Qe=>{e.canRewindLive&&Zi&&!j().has("TIMELINE")&&Qe(Vo)})}var xo=M($i,2);{var Dn=Qe=>{let Bt=v(()=>{var yi;return(yi=e.live)==null?void 0:yi.startTime});Ud(Qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Bt)}})};V(xo,Qe=>{n()==="LiveWaitingStart"&&Qe(Dn)})}var ao=M(xo,2);{var vn=Qe=>{Sa(Qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(ao,Qe=>{n()==="LiveWaitingRecover"&&Qe(vn)})}var Nn=M(ao,2);{var Ro=Qe=>{Sa(Qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Nn,Qe=>{n()==="LiveWaitingRecord"&&Qe(Ro)})}var _r=M(Nn,2);{var br=Qe=>{var Bt=J3();let yi;var Do=h(Bt);cd(Do,{get adsSlotId(){return Ke()},get adsParams(){return st()},get adsPreviewParam(){return xe()},get adsAutoplayParam(){return ye()},get duration(){return De()}}),g(Bt),I(hn=>yi=te(Bt,1,"ads-container svelte-dtyj47",null,yi,hn),[()=>({hidden:n()!=="ads"})]),$(Qe,Bt)};V(_r,Qe=>{e.showAds&&ae()&&Qe(br)})}var Or=M(_r,2);{var $r=Qe=>{let Bt=v(()=>!_e()&&e.showAutoplayNext&&C());tv(Qe,{get title(){return lt()},get thumb(){return wt()},get isHide(){return r(Bt)},clickCloseIcon:()=>O(vr,!0)})};V(Or,Qe=>{r(oo)&<()&&wt()&&Qe($r)})}var Hr=M(Or,2);{var Go=Qe=>{Od(Qe,{})};V(Hr,Qe=>{N()&&Qe(Go)})}var Bn=M(Hr,2);{var sr=Qe=>{var Bt=ex(),yi=h(Bt);ld(yi,{"aria-label":Br}),g(Bt),$(Qe,Bt)};V(Bn,Qe=>{Re()&&Qe(sr)})}var Fr=M(Bn,2);{var Yo=Qe=>{Hd(Qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return re()}})};V(Fr,Qe=>{ue()&&Qe(Yo)})}var On=M(Fr,2);{var Je=Qe=>{xa(Qe,{get shifted(){return x()},get captions(){return Ne()},get position(){return F()},get playerSize(){return P()},isMobile:!0})};V(On,Qe=>{ke().value!=="off"&&Qe(Je)})}var Nt=M(On,2);{var Ei=Qe=>{var Bt=tx();Bt.__click=[Z3,X,Oi,or];var yi=h(Bt);Fd(yi,{}),g(Bt),$(Qe,Bt)};V(Nt,Qe=>{d()&&Qe(Ei)})}var jo=M(Nt,2);{var Hn=Qe=>{let Bt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),yi=v(()=>n()==="ads"),Do=v(()=>e.canRewindLive&&fe()!==0);Bd(Qe,{get bottomHidden(){return r(Bt)},get showControls(){return x()},get bottomNoSmooth(){return A()},get isAds(){return r(yi)},get canRewindLive(){return r(Do)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return et()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return at()},get nextButtonActive(){return ft()},get prevButtonActive(){return Ut()},get isOneVideoPlaylist(){return Yt()},get customFullscreenSupported(){return r(Pn)},get endScreenShown(){return r(oo)},toggleFullscreen:Dr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:ii,onDisabledSeekToInteractiveClick:Nr,get playerControlsWrapperRef(){return r(Vr)},set playerControlsWrapperRef(hn){O(Vr,me(hn))},get playerControlsRef(){return r(mr)},set playerControlsRef(hn){O(mr,me(hn))}})};V(jo,Qe=>{ae()&&Qe(Hn)})}var gn=M(jo,2);{var yr=Qe=>{var Bt=ix(),yi=h(Bt);Kd(yi,{get supportLink(){return e.supportLink},returnFocus:e0.noop,get ref(){return r(Zn)},set ref(Do){O(Zn,me(Do))}}),g(Bt),$(Qe,Bt)};V(gn,Qe=>{X()&&Qe(yr)})}var Ce=M(gn,2);let dt=v(()=>!r(tr));ud(Ce,{get isLive(){return B()},get isHidden(){return r(dt)},get isPlaying(){return J()},get position(){return F()},get duration(){return Y()}});var Lt=M(Ce,2);{var ai=Qe=>{fa(Qe,{})};V(Lt,Qe=>{r(bo)&&Qe(ai)})}var Wi=M(Lt,2);{var Di=Qe=>{md(Qe,{})};V(Wi,Qe=>{de()&&Qe(Di)})}var Zt=M(Wi,2);{var ar=Qe=>{Qd(Qe,{onClose:En,onSelectAutoQuality:()=>{Mo("auto"),En()}})};V(Zt,Qe=>{r(Jn)&&Qe(ar)})}$(ot,jt)});var Uo=M(yo,2);ct(Uo,ot=>O(it,ot),()=>r(it)),g(je),ct(je,ot=>O(Tn,ot),()=>r(Tn)),I((ot,jt)=>{Ii=te(Mt,1,"video-wrapper svelte-dtyj47",null,Ii,ot),so=te(eo,1,"video-container svelte-dtyj47",null,so,jt),nt(eo,`transform: rotate(${E()}deg) scale(${r(An)})`),Fe(eo,"data-is-playing",J())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),Et("click",je,rr,!0),Et("focusin",je,Qo,!0),$(t,je),q(),o()}rt(["click"]);function Su(t){let e="";return Gn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Gn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Gn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Gn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Gn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Gn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Gn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Gn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Gn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Gn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Gn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Gn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Gn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Gn(t){return typeof t=="string"&&!t.includes(";")}var t0=require("@vkontakte/videoplayer-shared/es2015");var sx=L('<div class="equalizer svelte-ysxd4z"><div class="col svelte-ysxd4z"></div> <div class="col svelte-ysxd4z"></div> <div class="col svelte-ysxd4z"></div></div>'),ax=L('<div class="live-icon svelte-ysxd4z"><!></div>'),lx=L('<span class="text svelte-ysxd4z"> </span>'),dx=L("<div><!> <!></div>"),cx={hash:"svelte-ysxd4z",code:`.wrapper.svelte-ysxd4z {padding:2px 6px;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
|
|
362
|
+
opacity var(--controls-transition-duration);}.wrapper.live.svelte-ysxd4z {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding-right:7px;}.wrapper.hidden.svelte-ysxd4z {visibility:hidden;opacity:0;}.equalizer.svelte-ysxd4z {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-ysxd4z .equalizer:where(.svelte-ysxd4z) {margin-top:-2px;}.equalizer.svelte-ysxd4z .col:where(.svelte-ysxd4z) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
|
|
363
|
+
animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-ysxd4z .equalizer:where(.svelte-ysxd4z) .col:where(.svelte-ysxd4z) {animation-play-state:running;}.equalizer.svelte-ysxd4z .col:where(.svelte-ysxd4z):nth-child(1) {left:0;
|
|
364
|
+
animation-name: svelte-ysxd4z-thumb-timer-equalizer-col1;}.equalizer.svelte-ysxd4z .col:where(.svelte-ysxd4z):nth-child(2) {left:3px;
|
|
365
|
+
animation-name: svelte-ysxd4z-thumb-timer-equalizer-col2;}.equalizer.svelte-ysxd4z .col:where(.svelte-ysxd4z):nth-child(3) {left:6px;
|
|
366
|
+
animation-name: svelte-ysxd4z-thumb-timer-equalizer-col3;}.live-icon.svelte-ysxd4z {display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px;}
|
|
367
|
+
|
|
368
|
+
@keyframes svelte-ysxd4z-thumb-timer-equalizer-col1 {
|
|
369
|
+
0% {
|
|
370
|
+
transform: scaleY(0.1);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
25% {
|
|
374
|
+
transform: scaleY(0.8);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
50% {
|
|
378
|
+
transform: scaleY(0.4);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
75% {
|
|
382
|
+
transform: scaleY(0.6);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
100% {
|
|
386
|
+
transform: scaleY(0.1);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
@keyframes svelte-ysxd4z-thumb-timer-equalizer-col2 {
|
|
391
|
+
0% {
|
|
392
|
+
transform: scaleY(1);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
25% {
|
|
396
|
+
transform: scaleY(0.3);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
50% {
|
|
400
|
+
transform: scaleY(0.9);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
75% {
|
|
404
|
+
transform: scaleY(0.6);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
100% {
|
|
408
|
+
transform: scaleY(1);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
@keyframes svelte-ysxd4z-thumb-timer-equalizer-col3 {
|
|
413
|
+
0% {
|
|
414
|
+
transform: scaleY(0.6);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
25% {
|
|
418
|
+
transform: scaleY(0.9);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
50% {
|
|
422
|
+
transform: scaleY(0.1);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
75% {
|
|
426
|
+
transform: scaleY(0.9);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
100% {
|
|
430
|
+
transform: scaleY(0.6);
|
|
431
|
+
}
|
|
432
|
+
}.text.svelte-ysxd4z {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function ov(t,e){K(t,cx);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),a=m(e,"isHidden",3,!1);var s=dx();let d;var l=h(s);{var u=b=>{var x=sx();$(b,x)};V(l,b=>{i()&&b(u)})}var f=M(l,2);{var _=b=>{var x=ax(),y=h(x);da(y,{isActive:!0}),g(x),$(b,x)},p=b=>{var x=lx(),y=h(x,!0);g(x),I(()=>ge(y,e.time)),$(b,x)};V(f,b=>{o()?b(_):b(p,!1)})}g(s),I(b=>d=te(s,1,"wrapper svelte-ysxd4z",null,d,b),[()=>({live:o(),hidden:a(),playing:n()})]),$(t,s)}var ux=L('<div class="player-wrapper svelte-ftsecf"><!> <!> <!> <button class="test svelte-ftsecf">press</button> <div class="time-container svelte-ftsecf"><!></div> <div><!></div></div>'),px={hash:"svelte-ftsecf",code:`.player-wrapper.svelte-ftsecf {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-ftsecf .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.test.svelte-ftsecf {z-index:100;position:absolute;border:1px solid pink;}
|
|
433
|
+
|
|
434
|
+
/* .controls-wrapper {
|
|
435
|
+
pointer-events: none;
|
|
436
|
+
opacity: 1;
|
|
437
|
+
position: absolute;
|
|
438
|
+
z-index: var(--controls-container-z-index);
|
|
439
|
+
width: 100%;
|
|
440
|
+
bottom: 0;
|
|
441
|
+
left: 0;
|
|
442
|
+
transition: opacity var(--controls-transition-duration) var(--controls-transition-fn);
|
|
443
|
+
} */.timeline.svelte-ftsecf {opacity:0;
|
|
444
|
+
/* pointer-events: none; */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-ftsecf {opacity:1;}.time-container.svelte-ftsecf {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}`};function nv(t,e){z(e,!0),K(t,px);let[i,o]=Oe(),n=()=>S(X,"$playerSize",i),a=()=>S(C,"$playerPhase",i),s=()=>S(k,"$crashed$",i),d=()=>S(T,"$currentSubtitle$",i),l=()=>S(R,"$currentSubtitleCaptions$",i),u=()=>S(P,"$positionExact$",i),f=()=>S(Y,"$isLive$",i),_=()=>S(A,"$isPlaying$",i),p=()=>S(E,"$duration$",i),b=()=>S(F,"$positionWithScrubbing$",i),x=()=>S(H,"$isRewindableLive$",i),y=m(e,"videoContainer",15),{playerPhase:C,state:{crashed$:k,duration$:E,positionExact$:P,isPlaying$:A,currentSubtitle$:T,currentSubtitleCaptions$:R,positionWithScrubbing$:F,isLive$:Y,isRewindableLive$:H},ui:{playerSize:X,controls:oe},actions:{internal:{toggleSubtitle:ee,getVideoElement:ue}}}=Se(),le=ie(!1),Me=me({}),Le=()=>{O(le,!0)},J=()=>{O(le,!1)},Ve=(0,t0.debounceFn)(vl,260);qe(()=>{n(),Ve(ue(),oe,Me,r(le))});var j=ux(),N=h(j);Yd(N,{hideCursor:!1,get videoContainer(){return y()},set videoContainer(xe){y(xe)}});var Re=M(N,2);let re=v(()=>a()!=="thumb"||s());wa(Re,{get hidden(){return r(re)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ke=M(Re,2);{var Ne=xe=>{xa(xe,{shifted:!1,get captions(){return l()},get position(){return u()},get playerSize(){return n()}})};V(ke,xe=>{d().value!=="off"&&xe(Ne)})}var fe=M(ke,2);fe.__click=ee;var B=M(fe,2),de=h(B);let Ie=v(()=>_()?sn(p()-b()):sn(p()));ov(de,{get isLive(){return f()},get isPlaying(){return _()},get time(){return r(Ie)}}),g(B);var Ke=M(B,2);te(Ke,1,"timeline svelte-ftsecf",null,{},{visible:!0});var st=h(Ke);cs(st,{needPadding:!1,get canRewindLive(){return e.canRewindLive},isAds:!1,get isRewindableLive(){return x()},isHidden:!1,get ref(){return Me.timeline},set ref(xe){Me.timeline=xe}}),g(Ke),g(j),Et("mouseenter",j,Le),Et("mouseleave",j,J),$(t,j),q(),o()}rt(["click"]);var fx=L("<div><!></div>"),mx={hash:"svelte-1aahjq",code:`.root.svelte-1aahjq {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
|
|
361
445
|
|
|
362
446
|
/* USER DEFINED COLORS */
|
|
363
447
|
|
|
@@ -385,11 +469,11 @@ Try switching the\xA0quality to\xA0Auto.`},Nh=L_;var as=new Map;as.set(Xa.Interf
|
|
|
385
469
|
rgba(0, 0, 0, 0.99) 93.33%,
|
|
386
470
|
#000 100%
|
|
387
471
|
);--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
|
|
388
|
-
/* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}
|
|
472
|
+
/* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root.visible-outside.svelte-1aahjq {overflow:visible;}
|
|
389
473
|
|
|
390
474
|
/* css reset start */* {-webkit-tap-highlight-color:transparent;}button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}p {margin:0;}svg:not(.interactive-root svg) {pointer-events:none;}.interactive-root {
|
|
391
475
|
/* --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);}
|
|
392
476
|
/* 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
477
|
|
|
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 tv(t,e){q(e,!0),G(t,tx);let[i,o]=Fe(),n=()=>C(Wt,"$isLive$",i),a=v(e,"sources",7),s=v(e,"store",7),d=v(e,"microStoresRoot",7),l=v(e,"videoConfig",7),u=v(e,"uiConfig",7),f=v(e,"title",7),_=v(e,"thumbUrl",7),p=v(e,"interactiveContainer",7),$=v(e,"interactiveController",7),w=v(e,"subtitles",7),y=v(e,"live",7),S=v(e,"preload",7),k=v(e,"autoplay",7),P=v(e,"volume",7,void 0),A=v(e,"muted",7,void 0),E=v(e,"fromTime",7),T=v(e,"canRewindLive",7),V=v(e,"showAds",7),z=v(e,"adsSlotId",7,void 0),j=v(e,"adsParams",7,void 0),F=v(e,"adsPreviewParam",7,void 0),Z=v(e,"adsAutoplayParam",7,void 0),J=v(e,"duration",7,void 0),ne=v(e,"logoClickable",7),fe=v(e,"logoHidden",7),de=v(e,"isMobile",7),Re=v(e,"showNextPrevButtons",7,!1),Me=v(e,"nextButtonActive",7,!1),ee=v(e,"prevButtonActive",7,!1),Le=v(e,"endScreenVideoTitle",7,void 0),X=v(e,"endScreenVideoThumb",7,void 0),N=v(e,"isOneVideoPlaylist",7,!1),De=v(e,"supportLink",7),re=v(e,"shadowRootContainer",7,void 0),Ee=v(e,"outerContainerRef",7,void 0),Ne=v(e,"fullScreenTarget",7,void 0),me=v(e,"failoverHosts",7,void 0),B=v(e,"showMiniTimer",7,!1),ce=v(e,"saveRate",7),Pe=v(e,"seekToInteractive",7,xa.noop),Ye=v(e,"playPrevChapter",7,xa.noop),lt=v(e,"volumeMultiplier",7),Ae=v(e,"showAutoplayNext",7),ye=v(e,"showEndScreen",7,!0),Ve=v(e,"keyboardControls",15,void 0),{subscribers:Xe,stores:pt}=d();oh(u());let rt=Yt(),Ot=u().logoLink,st=s().ui.debugPanelVisible,wt=s().ui.playerSize,Wt=s().state.isLive$,Be=s().state.isInteractive&&X1.clientChecker.device.isAndroid,se=te(void 0),Q=null,ae=te(!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}),mh(s(),pt),We(()=>{s().ui.isMobile.set(de())});let _e=(U=!1)=>{O(ae,!0),U?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Te=()=>{if(rt.features.qualityDetailsSubMenuEnabled){let U=Vh(s().videoId);if(U)switch(U.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,U.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,U.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(U.quality);break}}else{Rh(s().videoId),Wp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Zt=Fp(s().videoId);Zt&&s().actions.internal.setQuality(Zt)}};function Oe(U){var mi,mo,vo;let Zt=a()||U;Zt&&s().initVideo({container:r(se),sources:Zt,failoverHosts:me(),subtitles:w(),volumeMultiplier:lt()});let Qi=xa.safeStorage.get(jl)==="true";st.set(Qi),E()>0&&s().actions.external.seekTime(E());let Bi=de()?rt.volumeDefault:(mo=(mi=P())!=null?mi:Bc())!=null?mo:rt.volumeDefault,ai=(vo=A())!=null?vo:Ih();if(s().actions.external.setVolume(Bi),s().actions.external.setMuted(ai),s().getAdmanWrapper().setInitialVolume(ai?0:Bi),Te(),rt.features.saveRate&&ce()){let eo=Ah();eo&&!n()&&s().actions.internal.setPlaybackRate(eo)}if(Ae()){let eo=Lh();eo&&s().actions.internal.setAutoplayNextEnabled(eo)}s().ui.isAutoplay.set(k()),k()?_e():S()&&rt.features.preload&&s().actions.internal.preload()}let ft=U=>{if(window.ResizeObserver){let Zt,Qi;Q=new ResizeObserver((0,xa.throttleFn)(Bi=>{let ai=Bi[0];if(ai.contentBoxSize){let mi=Array.isArray(ai.contentBoxSize)?ai.contentBoxSize[0]:ai.contentBoxSize;Zt=mi.inlineSize,Qi=mi.blockSize}else ai.contentRect&&(Zt=ai.contentRect.width,Qi=ai.contentRect.height);wt.set({width:Zt,height:Qi})},300)),Q.observe(U)}wt.set({width:U.clientWidth,height:U.clientHeight})},Kt=()=>{document.hidden&&s().actions.external.stop()};Ut(()=>{var Qi,Bi,ai,mi;Be&&document.addEventListener("visibilitychange",Kt),rt.debugLog&&s().actions.internal.startLogging(),ft(r(se));let U=Xe.map(mo=>mo.init({store:s(),microStores:pt,config:l(),interactiveController:$(),uiConfig:u()})),Zt=()=>{Be&&document.removeEventListener("visibilitychange",Kt),Q==null||Q.disconnect(),U.forEach(mo=>mo.unsubscribe()),s().destroy()};return((Qi=y())==null?void 0:Qi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Zt):((Bi=y())==null?void 0:Bi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Zt):(((ai=y())==null?void 0:ai.status)==="finished"||((mi=y())==null?void 0:mi.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Zt):(Oe(),Zt)});function je(){r(ae)?s().actions.external.play():_e(!0)}function dt(){s().actions.external.pause()}function et(U){s().actions.external.setMuted(U)}function Et(U){de()||U>=0&&U<=1&&s().actions.external.setVolume(U)}function ii(U){s().actions.internal.seekTime(U,J1.SeekAction.UNKNOWN)}function Ge(U){s().actions.external.seekEpisodeStartTime(U)}function ct(){s().actions.external.returnFocusToEpisodes()}function oi(U){s().actions.external.setPlaybackRate(U)}function Ni(U){s().actions.external.setAutoQualityLimits(U)}let Oo=yu(rt.view);var Ki=ex();it(Ki,Oo);var Ho=h(Ki);{var Fo=U=>{ev(U,{get store(){return s()},uiConfig:rt,get thumbUrl(){return _()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return k()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return z()},get adsParams(){return j()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return Z()},get duration(){return J()},get logoClickable(){return ne()},get logoHidden(){return fe()},logoTargetUrl:Ot,get nextButtonActive(){return Me()},get prevButtonActive(){return ee()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return X()},get isOneVideoPlaylist(){return N()},get supportLink(){return De()},get shadowRootContainer(){return re()},get outerContainerRef(){return Ee()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return B()},get playerStarted(){return r(ae)},get seekToInteractive(){return Pe()},get playPrevChapter(){return Ye()},firstStart:_e,seekTime:ii,get showEndScreen(){return ye()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Re()},get videoContainer(){return r(se)},set videoContainer(Zt){O(se,ve(Zt))}})},Lt=U=>{Xm(U,{get store(){return s()},uiConfig:rt,get title(){return f()},get thumbUrl(){return _()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return k()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return z()},get adsParams(){return j()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return Z()},get duration(){return J()},get logoClickable(){return ne()},get logoHidden(){return fe()},logoTargetUrl:Ot,get nextButtonActive(){return Me()},get prevButtonActive(){return ee()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return X()},get isOneVideoPlaylist(){return N()},get supportLink(){return De()},get shadowRootContainer(){return re()},get outerContainerRef(){return Ee()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return B()},get playerStarted(){return r(ae)},get seekToInteractive(){return Pe()},get playPrevChapter(){return Ye()},firstStart:_e,get showEndScreen(){return ye()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Re()},get videoContainer(){return r(se)},set videoContainer(Zt){O(se,ve(Zt))},get keyboardControls(){return Ve()},set keyboardControls(Zt){Ve(Zt)}})};R(Ho,U=>{de()?U(Fo):U(Lt,!1)})}g(Ki),b(t,Ki);var bt=W({initVideo:Oe,play:je,pause:dt,setMuted:et,setVolume:Et,seekTime:ii,seekEpisodeStartTime:Ge,returnFocusToEpisodes:ct,setPlaybackRate:oi,setAutoQualityLimits:Ni,get sources(){return a()},set sources(U){a(U)},get store(){return s()},set store(U){s(U)},get microStoresRoot(){return d()},set microStoresRoot(U){d(U)},get videoConfig(){return l()},set videoConfig(U){l(U)},get uiConfig(){return u()},set uiConfig(U){u(U)},get title(){return f()},set title(U){f(U)},get thumbUrl(){return _()},set thumbUrl(U){_(U)},get interactiveContainer(){return p()},set interactiveContainer(U){p(U)},get interactiveController(){return $()},set interactiveController(U){$(U)},get subtitles(){return w()},set subtitles(U){w(U)},get live(){return y()},set live(U){y(U)},get preload(){return S()},set preload(U){S(U)},get autoplay(){return k()},set autoplay(U){k(U)},get volume(){return P()},set volume(U){P(U)},get muted(){return A()},set muted(U){A(U)},get fromTime(){return E()},set fromTime(U){E(U)},get canRewindLive(){return T()},set canRewindLive(U){T(U)},get showAds(){return V()},set showAds(U){V(U)},get adsSlotId(){return z()},set adsSlotId(U){z(U)},get adsParams(){return j()},set adsParams(U){j(U)},get adsPreviewParam(){return F()},set adsPreviewParam(U){F(U)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(U){Z(U)},get duration(){return J()},set duration(U){J(U)},get logoClickable(){return ne()},set logoClickable(U){ne(U)},get logoHidden(){return fe()},set logoHidden(U){fe(U)},get isMobile(){return de()},set isMobile(U){de(U)},get showNextPrevButtons(){return Re()},set showNextPrevButtons(U){Re(U)},get nextButtonActive(){return Me()},set nextButtonActive(U){Me(U)},get prevButtonActive(){return ee()},set prevButtonActive(U){ee(U)},get endScreenVideoTitle(){return Le()},set endScreenVideoTitle(U){Le(U)},get endScreenVideoThumb(){return X()},set endScreenVideoThumb(U){X(U)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(U){N(U)},get supportLink(){return De()},set supportLink(U){De(U)},get shadowRootContainer(){return re()},set shadowRootContainer(U){re(U)},get outerContainerRef(){return Ee()},set outerContainerRef(U){Ee(U)},get fullScreenTarget(){return Ne()},set fullScreenTarget(U){Ne(U)},get failoverHosts(){return me()},set failoverHosts(U){me(U)},get showMiniTimer(){return B()},set showMiniTimer(U){B(U)},get saveRate(){return ce()},set saveRate(U){ce(U)},get showAutoplayNext(){return Ae()},set showAutoplayNext(U){Ae(U)},get seekToInteractive(){return Pe()},set seekToInteractive(U){Pe(U)},get playPrevChapter(){return Ye()},set playPrevChapter(U){Ye(U)},get volumeMultiplier(){return lt()},set volumeMultiplier(U){lt(U)},get showEndScreen(){return ye()},set showEndScreen(U){ye(U)},get keyboardControls(){return Ve()},set keyboardControls(U){Ve(U)}});return o(),bt}var ix=$e('<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 iv(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=ix();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i))),b(t,o)}function ov(t,e){let i=v(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");iv(t,{get style(){return r(o)}})}var ox=L('<div class="title svelte-1y9fytq"> </div>'),nx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),rx={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 nv(t,e){G(t,rx);var i=nx(),o=h(i);{var n=d=>{var l=ox(),u=h(l,!0);g(l),I(()=>ge(u,e.title)),b(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=m(()=>!!e.thumbUrl);ov(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),I(()=>it(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var l0=require("@vkontakte/videoplayer-shared/es2015"),Wi=require("@vkontakte/videoplayer-shared/es2015"),ec=require("@vkontakte/videoplayer-core/es2015"),d0=require("@vkontakte/videoplayer-statistics/es2015");var wu=require("@vkontakte/videoplayer-shared/es2015"),xu=class{constructor(){this.subscription=new wu.Subscription,this.logger=new wu.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 hl=require("@vkontakte/videoplayer-shared/es2015");var sx=$e('<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 rv(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=sx();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),I(()=>n=Se(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i))),b(t,o)}var ax=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),lx={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 sv(t,e){q(e,!0),G(t,lx);let[i,o]=Fe(),n=()=>C(u,"$interfaceLanguage$",i),a=()=>C(f,"$isMobile$",i),s=Ce(),d=Yt(),l=!!s.webApi.pictureInPictureApi,u=s.interfaceLanguage$,f=s.ui.isMobile,_=s.ui.t,p=m(()=>n()&&_("pip_dummy_title")),$=yu(d.view);var w=ax();ie(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),it(w,$);var y=h(w);let S;var k=h(y);rv(k,{}),g(y);var P=M(y,2),A=h(P,!0);g(P),g(w),I(E=>{S=ie(y,1,"dummy-image svelte-1pbsod4",null,S,E),ge(A,r(p))},[()=>({desktop:!a()})]),b(t,w),W(),o()}var dx=Object.defineProperty,cx=(t,e,i)=>e in t?dx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,gl=(t,e,i)=>cx(t,typeof e!="symbol"?e+"":e,i),av=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())}),ux=460,px=280,Kd=class{constructor({enabled:e=!0}={enabled:!0}){gl(this,"playerDomElement"),gl(this,"playerParentShadowRoot"),gl(this,"playerDummyElement"),gl(this,"svelteContext"),gl(this,"pipWindow"),gl(this,"info",{isActive$:new hl.ValueSubject(!1),isEnabled$:new hl.ValueSubject(!1),type:1}),this.info.isEnabled$=new hl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,hl.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}request(){return av(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:ux,height:px,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(u=>u.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=ns(sv,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||(js(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return av(this,null,function*(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})})}dispose(){return av(this,null,function*(){yield 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 e0(t){return t instanceof Kd}var Su=class{static getLatestSupportedVersion(e){let i=new ra,o=new Kd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Cu(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 t0="Inner error. Unexpectedly root annotation container null reference exception",i0="Annotation with such name already exists",o0="Annotation with such name does not exist";var _l=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var bl=require("@vkontakte/videoplayer-shared/es2015"),fx="1",mx=100,Tu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new bl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,bl.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"},mx);this.subscriptions.add((0,bl.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(t0);if(this.annotations.has(e))throw new _l(i0);i.style.zIndex=(o=i.style.zIndex)!=null?o:fx,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(o0);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var wa=require("@vkontakte/videoplayer-shared/es2015"),Wo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,wa.assertNonNullable)(e),(0,wa.assertNonNullable)(i),(0,wa.assertNonNullable)(n),n.interactiveData&&(0,wa.assertNonNullable)(o),this.subscription=new wa.Subscription,this.subscription}};var Qd=class extends Wo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Vt(K({},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 Gd=class extends Wo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Vt(K({},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:u,isMobile:f}=a.ui,_=xe(f),p=()=>_&&xe(u);return o.add(u.subscribe($=>{if(!_)return;let w=xe(s);xe(l)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(l.subscribe($=>{this.state$.set(!$||p())})),o.add(s.subscribe($=>{if($===null)return;let w=xe(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Yd=class extends Wo{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 n0=require("@vkontakte/videoplayer-shared/es2015");var lv=le(!1),ku=null,jd=class extends Wo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Vt(K({},lv),{set:(i,o=!1)=>{i!==xe(lv)&&(this.clearTimeout(),lv.set(i),!i&&ku&&(ku=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:s,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(l.subscribe(_=>{xe(s)&&_&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,n0.combine)({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:_,isInteractiveTime$:p,interactiveTimeIndicator:$})=>{var w,y;if(!(!_||!($!=null&&$.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&ku===null&&(ku=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Iu=require("@vkontakte/videoplayer-shared/es2015");var Zd=class extends Wo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Vt(K({},le(null)),{toggle:Iu.noop});this.checkIfShouldHide=i=>Ps(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=()=>kt(this,null,function*(){if(this.checkIfShouldHide(xe(s)))return;let l=xe(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:_}=n.ui.controls,p=xe(u),$=xe(f);if(l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),_.remove(Rp),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),_.add(Rp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add((0,Iu.combine)({graphIsOpened:this.state$,currentGridType:s}).subscribe(f=>kt(this,[f],function*({graphIsOpened:l,currentGridType:u}){if(this.checkIfShouldHide(u)&&l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};var dv=require("@vkontakte/videoplayer-shared/es2015"),Xd=class extends Wo{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 dv.ValueSubject(!1),isEnabled$:new dv.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 Pu=require("@vkontakte/videoplayer-shared/es2015");var Eu=require("@vkontakte/videoplayer-shared/es2015");var r0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?vx({maxCount:t}):void 0,e!==0?gx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},vx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Eu.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}}},gx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Eu.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Eu.safeStorage.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o(Vt(K({},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 Jd=class extends Wo{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=r0({maxShowCount:a,timeout:s});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Pu.filterChanged)(),(0,Pu.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var s0=()=>[Qd,Gd,Yd,jd,Zd,Xd,Jd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Vt(K({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var $l=require("@vkontakte/videoplayer-shared/es2015");var hx=Object.defineProperty,_x=Object.defineProperties,bx=Object.getOwnPropertyDescriptors,a0=Object.getOwnPropertySymbols,$x=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable,cv=(t,e,i)=>e in t?hx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Vs=(t,e)=>{for(var i in e||(e={}))$x.call(e,i)&&cv(t,i,e[i]);if(a0)for(var i of a0(e))yx.call(e,i)&&cv(t,i,e[i]);return t},xx=(t,e)=>_x(t,bx(e)),ti=(t,e,i)=>cv(t,typeof e!="symbol"?e+"":e,i),Au=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())}),wx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Wi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,ec.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Cn=te(void 0),Mu=class extends HTMLElement{constructor(){super(),ti(this,"svelteStubComponent"),ti(this,"svelteRootComponent"),ti(this,"store"),ti(this,"microStoresRoot"),ti(this,"statistics"),ti(this,"sentry"),ti(this,"_shadowRoot"),ti(this,"playerContainer"),ti(this,"rootContainer"),ti(this,"shadowRootContainer"),ti(this,"uiConfig"),ti(this,"coreConfig"),ti(this,"statisticsConfig"),ti(this,"interactiveController"),ti(this,"interactiveContainer"),ti(this,"graphMadePause"),ti(this,"currentPlayingVideoIndex",0),ti(this,"needToRepeatPlaylist",!1),ti(this,"videoConfig"),ti(this,"pictureInPictureApi"),ti(this,"mediaSessionApi"),ti(this,"unsubscribePlayerPhaseSubscription"),ti(this,"logger"),ti(this,"log"),ti(this,"subscription"),ti(this,"interactiveSubscription"),ti(this,"annotationsApi"),ti(this,"slotsApi"),ti(this,"prevIsid"),ti(this,"isInited",!1),ti(this,"internalsExposure",null),ti(this,"shadowDOMCallbacksDisabled",!1),ti(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:f,statVKAppId:_,refreshStatAuthToken:p,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:k,interactiveData:P}=Cu(this.videoConfig,i),A=(o=P==null?void 0:P.projectInfo)==null?void 0:o.pid,E=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:T,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&T)return new d0.OneStat(Vs({movieId:T,albumId:d,place:l,trackCode:f,vkAppId:_,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:V,refDomain:S,deviceId:k},A&&(!this.isInited||E)&&{projectId:Number(A)}),Vs({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}),$l.devNull.create("ui"),this.logger=new Wi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Wi.Subscription,this.interactiveSubscription=new Wi.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}),s={target:this.playerContainer,props:a};this.svelteStubComponent=ns(nv,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(),$l.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,u,f,_;if(!this.videoConfig)return;let{albumId:p,statPlace:$,statAuthToken:w,preload:y,autoplay:S,volume:k,muted:P,fromTime:A,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:z,adsParams:j={},adsPreviewParam:F,adsAutoplayParam:Z,interfaceLanguage:J,isCyrillicRelatedInterface:ne,logoClickable:fe,logoHidden:de,isMobile:Re,isTouch:Me,isAudioDisabled:ee,isLiveCatchUpMode:Le,fullScreenTarget:X,failoverHosts:N,canDownload:De,callbacks:re,interactiveData:Ee,showThumbTimer:Ne,additionalButtons:me=[],additionalSettingsMenuItems:B=[],additionalContextMenuItems:ce=[],repeat:Pe,saveRate:Ye,volumeMultiplier:lt,showEndScreen:Ae,showAutoplayNext:ye}=Cu(this.videoConfig,i),{sources:Ve,title:Xe,thumbUrl:pt,unitedVideoId:rt,isClip:Ot=!1,duration:st,adsParams:wt={},videoEpisodes:Wt,previewThumbsData:jt,subtitles:Be,live:se}=e,Q=Vs(Vs({},j),wt),ae=this.getNextVideoInfo(),_e={sources:Ve,title:Xe,thumbUrl:pt,subtitles:Be,unitedVideoId:rt,isClip:Ot,live:se,albumId:p,statPlace:$,autoplay:S,muted:P,volume:k,fromTime:A,canRewindLive:E,showAds:V,adsSlotId:z,adsParams:Q,adsPreviewParam:F,adsAutoplayParam:Z,duration:st,logoClickable:fe,logoHidden:de,isTouch:Me!=null?Me:Re,repeat:Pe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Te={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(_e)}`});let Oe=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),ft=(Oe==null?void 0:Oe.oneStat)||this.createOneStat(e,i);ft&&(this.statistics=new lu(ft,Oe==null?void 0:Oe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new na(this.uiConfig.sentry,{version:ta,env:Rc},{movieId:rt,albumId:p,place:$,autoplay:(a=S&&!this.interactiveController)!=null?a:!1,mobile:Me!=null?Me:Re,clip:Ot}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry=Vs(Vs({},this.sentry),na.getInstance());let je=!!Ee,dt=[],et="tooltip_interactive_go_back_disabled_first";if(je&&this.interactiveController){let ct=this.interactiveController.state.isInitialChapter$.getValue(),oi=this.interactiveController.getHistoryState();ct&&dt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||dt.push("SEEK_TO_INTERACTIVE_BUTTON"),oi.hasPrevChapter$.getValue()||(dt.push("PLAY_PREV_CHAPTER_BUTTON"),ct||(oi.isGoBackLimited$.getValue()?et="tooltip_interactive_go_back_disabled_limit":et="tooltip_interactive_go_back_disabled"))}let Et=()=>{var ct;this.isInited=!1,this.prevIsid=void 0;let oi=(o==null?void 0:o.info.isEnded$.getValue())&&((ct=this.interactiveController)==null?void 0:ct.state.isEndChapter$.getValue());re.onReplayInteractiveVideo&&!oi?re.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=x1({player:o,interfaceLanguage:J,isCyrillicRelatedInterface:ne,videoId:rt,isClip:Ot,isLiveCatchUpMode:Le,isAudioDisabled:ee,statAuthToken:w,callbacks:re,webApi:Te,videoEpisodes:Wt,previewThumbsData:jt,canDownload:De,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:dt,isInteractive:je,saveRate:Ye,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(u=this.interactiveController)==null?void 0:u.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Et,playPrevChapterDisabledTooltip:et,hasInteractiveBranches:!!((_=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?me:[],additionalSettingsMenuItems:B!=null?B:[],additionalContextMenuItems:ce!=null?ce:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Pe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:ii}=this.microStoresRoot=s0(),Ge=()=>{var ct,oi,Ni,Oo,Ki,Ho;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Lt=>{var bt;return(bt=re==null?void 0:re.onCurrentFormatChanged)==null?void 0:bt.call(re,Lt)})),this.subscription.add(ii.interactiveControlsOpacity$.subscribe(Lt=>{var bt;Lt!==null&&((bt=this==null?void 0:this.interactiveController)==null||bt.setDisabledControls(Lt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Lt=>{var bt;return(bt=re==null?void 0:re.onThroughputEstimationChanged)==null?void 0:bt.call(re,Lt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Lt=>{var bt;return(bt=re==null?void 0:re.onTrafficSavingEnabledChanged)==null?void 0:bt.call(re,Lt)})),this.subscription.add(new Wi.Observable(Lt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(bt=>Lt.next(bt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Wi.skip)(1):Lt=>Lt).subscribe(Lt=>{var bt;return(bt=re==null?void 0:re.onCurrentPlaybackRateChanged)==null?void 0:bt.call(re,Lt)})),this.subscription.add(this.store.state.volume$.subscribe(Lt=>{var bt;return(bt=re==null?void 0:re.onVolumeChange)==null?void 0:bt.call(re,Lt)})),this.subscription.add(this.store.state.muted$.subscribe(Lt=>{var bt,U;return Lt?(bt=re==null?void 0:re.onMute)==null?void 0:bt.call(re):(U=re==null?void 0:re.onUnmute)==null?void 0:U.call(re)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Lt=>{var bt;return(bt=re==null?void 0:re.onVideoBitrateChanged)==null?void 0:bt.call(re,Lt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Lt=>{var bt;let U=(bt=this.store)==null?void 0:bt.ui.controls.disabledControls$;U&&(Lt&&!U.includes(Zl)&&U.add(Zl),Lt||U.remove(Zl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Lt=>Au(this,null,function*(){var bt;if(!ec.clientChecker.browser.isSamsungBrowser||!Lt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((bt=this.videoConfig)==null?void 0:bt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Lt=>{var bt;return(bt=re==null?void 0:re.onVSIDChanged)==null?void 0:bt.call(re,Lt)})),this.initMediaSession(),O(Cn,ve({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ve,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Xe,thumbUrl:pt,subtitles:Be,live:se,preload:y,autoplay:S,muted:P,volume:k,fromTime:A,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:z,adsParams:Q,adsPreviewParam:F,adsAutoplayParam:Z,duration:st,logoClickable:fe,logoHidden:de,isMobile:Me!=null?Me:Re,failoverHosts:N,fullScreenTarget:X,saveRate:Ye,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ne,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:lt,showEndScreen:Ae,showAutoplayNext:ye}));let Fo={target:this.playerContainer,props:r(Cn)};this.svelteRootComponent=ns(tv,Fo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ni=(oi=(ct=this.videoConfig)==null?void 0:ct.callbacks)==null?void 0:oi.onInited)==null||Ni.call(oi)),(Oo=this.internalsExposure)==null||Oo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ho=(Ki=this.videoConfig)==null?void 0:Ki.callbacks)!=null&&Ho.onDevNullLog)?$l.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):$l.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?ec.clientChecker.isInited$.subscribe(ct=>{ct&&(console.log("UI SDK async start"),Ge())}):Ge()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,u;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(u=a.onPiPExit)==null?void 0:u.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,Wi.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)}initInteractives(){return Au(this,null,function*(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=yield import("@vkontakte/videoplayer-interactive/es2015");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:u,historyApi:f,videoLoader:_}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:u,historyApi:f,vkVideoLoader:_,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation}});let{isInteractiveExpectation$:p,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(y=>{if(!this.isInited)return;let S=this.store;y?S.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):S.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.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]=xx(Vs({},y.config),{title:(l==null?void 0:l.title)||y.config.title});let S=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,S),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:S})=>{var k,P,A,E,T,V;if(!this.store||!this.microStoresRoot)return;let z=p.getValue();if(y==="action-choice"&&S==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Xl)),y==="action-choice-canceled"){let j=xe(this.store.state.isPlaying$)||z;if(((A=(k=this.videoConfig)==null?void 0:k.isTouch)!=null?A:(P=this.videoConfig)!=null&&P.isMobile)&&j){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(E=this.videoConfig)==null?void 0:(T=E.callbacks).onDisabledInteractiveClick)==null||V.call(T)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:S})=>{this.store&&y==="container-fake-removed"&&S&&this.store.ui.controls.disabledControls$.remove(Xl)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let y=this.interactiveController.getHistoryState();this.subscription.add(y.history$.subscribe(S=>{var k,P,A;S.length&&((A=(P=(k=this.videoConfig)==null?void 0:k.callbacks)==null?void 0:P.onInteractiveHistoryChanged)==null||A.call(P,S))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,S,k,P;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(P=(S=this.videoConfig)==null?void 0:(k=S.callbacks).onInteractiveTimeIndicatorClick)==null||P.call(k)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(a){this.log({message:a.message})}})}initPlayer(e,i={}){var o,n,a,s,d,l,u,f,_,p,$,w,y,S,k,P,A,E,T,V,z,j,F,Z,J,ne;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Cu(wx,(0,Wi.cloneDeepWith)(e,fe=>fe instanceof HTMLElement?fe:void 0)),this.uiConfig=ih((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new Wi.InternalsExposure("UI"))),$l.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,l0.now)()]}),(0,Wi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,Wi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=(_=this.uiConfig.features.pip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?p:!0,this.uiConfig.features.dpip=(w=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(S=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?S:this.videoConfig.isMobile,(k=this.videoConfig).autoplay&&(k.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(P=this.uiConfig.ads.enable)!=null?P:this.videoConfig.showAds,this.videoConfig.adsSlotId=(A=this.uiConfig.ads.slot)!=null?A:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(E=this.uiConfig.ads.preview)!=null?E:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((T=this.uiConfig.showLogo)!=null?T:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(j=this.uiConfig.features.endScreen)!=null?j:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(F=this.uiConfig.features.autoplayNext)!=null?F:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Z=this.uiConfig.features.nextPrevButtons)!=null?Z:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((J=this.videoConfig.videos)!=null&&J[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let fe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Su.getLatestSupportedVersion(fe):this.pictureInPictureApi=new ra(fe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new xu:void 0,this.slotsApi=this.uiConfig.features.slots?new _u:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Tu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(ne=this.slotsApi)==null||ne.init(this.shadowRootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),e0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(Cn)&&(r(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Cn).nextButtonActive=this.isNextButtonActive(),r(Cn).prevButtonActive=this.isPrevButtonActive(),r(Cn).endScreenVideoTitle=o.nextVideoTitle,r(Cn).endScreenVideoThumb=o.nextVideoThumb,r(Cn).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}=Vs({},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)}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(Cn)&&(r(Cn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Cn).nextButtonActive=this.isNextButtonActive(),r(Cn).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)}setLanguage(e){return Au(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingRecover(){var e;this.log({message:"live waiting"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}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()}replayInteractiveChapter(e){return Au(this,null,function*(){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,Wi.once)()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.updateContext(e)}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}unmountComponent(e){e&&js(e)}};var yl=require("@vkontakte/videoplayer-shared/es2015"),Lu=require("@vkontakte/videoplayer-core/es2015"),Sx=()=>{window.customElements.define("vk-video-player",Mu)};
|
|
478
|
+
/* \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 rv(t,e){z(e,!0),K(t,mx);let[i,o]=Oe(),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),u=m(e,"uiConfig",7),f=m(e,"title",7),_=m(e,"thumbUrl",7),p=m(e,"interactiveContainer",7),b=m(e,"interactiveController",7),x=m(e,"subtitles",7),y=m(e,"live",7),C=m(e,"preload",7),k=m(e,"autoplay",7),E=m(e,"volume",7,void 0),P=m(e,"muted",7,void 0),A=m(e,"fromTime",7),T=m(e,"canRewindLive",7),R=m(e,"showAds",7),F=m(e,"adsSlotId",7,void 0),Y=m(e,"adsParams",7,void 0),H=m(e,"adsPreviewParam",7,void 0),X=m(e,"adsAutoplayParam",7,void 0),oe=m(e,"duration",7,void 0),ee=m(e,"logoClickable",7),ue=m(e,"logoHidden",7),le=m(e,"isMobile",7),Me=m(e,"showNextPrevButtons",7,!1),Le=m(e,"nextButtonActive",7,!1),J=m(e,"prevButtonActive",7,!1),Ve=m(e,"endScreenVideoTitle",7,void 0),j=m(e,"endScreenVideoThumb",7,void 0),N=m(e,"isOneVideoPlaylist",7,!1),Re=m(e,"supportLink",7),re=m(e,"shadowRootContainer",7,void 0),ke=m(e,"outerContainerRef",7,void 0),Ne=m(e,"fullScreenTarget",7,void 0),fe=m(e,"failoverHosts",7,void 0),B=m(e,"showMiniTimer",7,!1),de=m(e,"saveRate",7),Ie=m(e,"seekToInteractive",7,Ta.noop),Ke=m(e,"playPrevChapter",7,Ta.noop),st=m(e,"volumeMultiplier",7),xe=m(e,"showAutoplayNext",7),ye=m(e,"showEndScreen",7,!0),De=m(e,"keyboardControls",15,void 0),{subscribers:et,stores:at}=d();sh(u());let ft=Wt(),Ut=u().logoLink,lt=s().ui.debugPanelVisible,wt=s().ui.playerSize,Yt=s().state.isLive$,Be=s().state.isInteractive&&i0.clientChecker.device.isAndroid,se=ie(void 0),Q=null,ae=ie(!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}),hh(s(),at),qe(()=>{s().ui.isMobile.set(le())});let _e=(Z=!1)=>{O(ae,!0),Z?s().actions.external.firstStart(R()):s().actions.internal.firstStart(R())},Pe=()=>{if(ft.features.qualityDetailsSubMenuEnabled){let Z=Nh(s().videoId);if(Z)switch(Z.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,Z.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,Z.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(Z.quality);break}}else{Bh(s().videoId),Gp()&&s().actions.internal.setTrafficSavingEnabled(!0);let ri=qp(s().videoId);ri&&s().actions.internal.setQuality(ri)}};function He(Z){var fi,bi,Zi;let ri=a()||Z;ri&&s().initVideo({container:r(se),sources:ri,failoverHosts:fe(),subtitles:x(),volumeMultiplier:st()});let pi=Ta.safeStorage.get(id)==="true";lt.set(pi),A()>0&&s().actions.external.seekTime(A());let Fi=le()?ft.volumeDefault:(bi=(fi=E())!=null?fi:Uc())!=null?bi:ft.volumeDefault,ti=(Zi=P())!=null?Zi:Ah();if(s().actions.external.setVolume(Fi),s().actions.external.setMuted(ti),s().getAdmanWrapper().setInitialVolume(ti?0:Fi),Pe(),ft.features.saveRate&&de()){let Ui=Vh();Ui&&!n()&&s().actions.internal.setPlaybackRate(Ui)}if(xe()){let Ui=Dh();Ui&&s().actions.internal.setAutoplayNextEnabled(Ui)}s().ui.isAutoplay.set(k()),k()?_e():C()&&ft.features.preload&&s().actions.internal.preload()}let ut=Z=>{if(window.ResizeObserver){let ri,pi;Q=new ResizeObserver((0,Ta.throttleFn)(Fi=>{let ti=Fi[0];if(ti.contentBoxSize){let fi=Array.isArray(ti.contentBoxSize)?ti.contentBoxSize[0]:ti.contentBoxSize;ri=fi.inlineSize,pi=fi.blockSize}else ti.contentRect&&(ri=ti.contentRect.width,pi=ti.contentRect.height);wt.set({width:ri,height:pi})},300)),Q.observe(Z)}wt.set({width:Z.clientWidth,height:Z.clientHeight})},Kt=()=>{document.hidden&&s().actions.external.stop()};qt(()=>{var pi,Fi,ti,fi;Be&&document.addEventListener("visibilitychange",Kt),ft.debugLog&&s().actions.internal.startLogging(),ut(r(se));let Z=et.map(bi=>bi.init({store:s(),microStores:at,config:l(),interactiveController:b(),uiConfig:u()})),ri=()=>{Be&&document.removeEventListener("visibilitychange",Kt),Q==null||Q.disconnect(),Z.forEach(bi=>bi.unsubscribe()),s().destroy()};return((pi=y())==null?void 0:pi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),ri):((Fi=y())==null?void 0:Fi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),ri):(((ti=y())==null?void 0:ti.status)==="finished"||((fi=y())==null?void 0:fi.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),ri):(He(),ri)});function Ye(){r(ae)?s().actions.external.play():_e(!0)}function gt(){s().actions.external.pause()}function tt(Z){s().actions.external.setMuted(Z)}function St(Z){le()||Z>=0&&Z<=1&&s().actions.external.setVolume(Z)}function ni(Z){s().actions.internal.seekTime(Z,o0.SeekAction.UNKNOWN)}function Xe(Z){s().actions.external.seekEpisodeStartTime(Z)}function pt(){s().actions.external.returnFocusToEpisodes()}function li(Z){s().actions.external.setPlaybackRate(Z)}function Oi(Z){s().actions.external.setAutoQualityLimits(Z)}let Oo=Su(ft.view);var Hi=fx();let ho;nt(Hi,Oo);var Ho=h(Hi);{var At=Z=>{iv(Z,{get store(){return s()},uiConfig:ft,get thumbUrl(){return _()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return k()},get canRewindLive(){return T()},get showAds(){return R()},get adsSlotId(){return F()},get adsParams(){return Y()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return X()},get duration(){return oe()},get logoClickable(){return ee()},get logoHidden(){return ue()},logoTargetUrl:Ut,get nextButtonActive(){return Le()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return N()},get supportLink(){return Re()},get shadowRootContainer(){return re()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return B()},get playerStarted(){return r(ae)},get seekToInteractive(){return Ie()},get playPrevChapter(){return Ke()},firstStart:_e,seekTime:ni,get showEndScreen(){return ye()},get showAutoplayNext(){return xe()},get showNextPrevButtons(){return Me()},get videoContainer(){return r(se)},set videoContainer(ri){O(se,me(ri))}})},bt=Z=>{var ri=ze(),pi=pe(ri);{var Fi=fi=>{nv(fi,{get thumbUrl(){return _()},get canRewindLive(){return T()},get videoContainer(){return r(se)},set videoContainer(bi){O(se,me(bi))}})},ti=fi=>{let bi=v(()=>l().playerView||"full");ev(fi,{get store(){return s()},uiConfig:ft,get title(){return f()},get thumbUrl(){return _()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return k()},get canRewindLive(){return T()},get showAds(){return R()},get adsSlotId(){return F()},get adsParams(){return Y()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return X()},get duration(){return oe()},get logoClickable(){return ee()},get logoHidden(){return ue()},logoTargetUrl:Ut,get nextButtonActive(){return Le()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return N()},get supportLink(){return Re()},get shadowRootContainer(){return re()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return B()},get playerStarted(){return r(ae)},get seekToInteractive(){return Ie()},get playPrevChapter(){return Ke()},firstStart:_e,get showEndScreen(){return ye()},get showAutoplayNext(){return xe()},get showNextPrevButtons(){return Me()},get playerView(){return r(bi)},get videoContainer(){return r(se)},set videoContainer(Zi){O(se,me(Zi))},get keyboardControls(){return De()},set keyboardControls(Zi){De(Zi)}})};V(pi,fi=>{l().playerView==="compact"?fi(Fi):fi(ti,!1)})}$(Z,ri)};V(Ho,Z=>{le()?Z(At):Z(bt,!1)})}g(Hi),I(Z=>ho=te(Hi,1,"root svelte-1aahjq",null,ho,Z),[()=>({"visible-outside":l().playerView==="compact"})]),$(t,Hi);var Dt=q({initVideo:He,play:Ye,pause:gt,setMuted:tt,setVolume:St,seekTime:ni,seekEpisodeStartTime:Xe,returnFocusToEpisodes:pt,setPlaybackRate:li,setAutoQualityLimits:Oi,get sources(){return a()},set sources(Z){a(Z)},get store(){return s()},set store(Z){s(Z)},get microStoresRoot(){return d()},set microStoresRoot(Z){d(Z)},get videoConfig(){return l()},set videoConfig(Z){l(Z)},get uiConfig(){return u()},set uiConfig(Z){u(Z)},get title(){return f()},set title(Z){f(Z)},get thumbUrl(){return _()},set thumbUrl(Z){_(Z)},get interactiveContainer(){return p()},set interactiveContainer(Z){p(Z)},get interactiveController(){return b()},set interactiveController(Z){b(Z)},get subtitles(){return x()},set subtitles(Z){x(Z)},get live(){return y()},set live(Z){y(Z)},get preload(){return C()},set preload(Z){C(Z)},get autoplay(){return k()},set autoplay(Z){k(Z)},get volume(){return E()},set volume(Z){E(Z)},get muted(){return P()},set muted(Z){P(Z)},get fromTime(){return A()},set fromTime(Z){A(Z)},get canRewindLive(){return T()},set canRewindLive(Z){T(Z)},get showAds(){return R()},set showAds(Z){R(Z)},get adsSlotId(){return F()},set adsSlotId(Z){F(Z)},get adsParams(){return Y()},set adsParams(Z){Y(Z)},get adsPreviewParam(){return H()},set adsPreviewParam(Z){H(Z)},get adsAutoplayParam(){return X()},set adsAutoplayParam(Z){X(Z)},get duration(){return oe()},set duration(Z){oe(Z)},get logoClickable(){return ee()},set logoClickable(Z){ee(Z)},get logoHidden(){return ue()},set logoHidden(Z){ue(Z)},get isMobile(){return le()},set isMobile(Z){le(Z)},get showNextPrevButtons(){return Me()},set showNextPrevButtons(Z){Me(Z)},get nextButtonActive(){return Le()},set nextButtonActive(Z){Le(Z)},get prevButtonActive(){return J()},set prevButtonActive(Z){J(Z)},get endScreenVideoTitle(){return Ve()},set endScreenVideoTitle(Z){Ve(Z)},get endScreenVideoThumb(){return j()},set endScreenVideoThumb(Z){j(Z)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(Z){N(Z)},get supportLink(){return Re()},set supportLink(Z){Re(Z)},get shadowRootContainer(){return re()},set shadowRootContainer(Z){re(Z)},get outerContainerRef(){return ke()},set outerContainerRef(Z){ke(Z)},get fullScreenTarget(){return Ne()},set fullScreenTarget(Z){Ne(Z)},get failoverHosts(){return fe()},set failoverHosts(Z){fe(Z)},get showMiniTimer(){return B()},set showMiniTimer(Z){B(Z)},get saveRate(){return de()},set saveRate(Z){de(Z)},get showAutoplayNext(){return xe()},set showAutoplayNext(Z){xe(Z)},get seekToInteractive(){return Ie()},set seekToInteractive(Z){Ie(Z)},get playPrevChapter(){return Ke()},set playPrevChapter(Z){Ke(Z)},get volumeMultiplier(){return st()},set volumeMultiplier(Z){st(Z)},get showEndScreen(){return ye()},set showEndScreen(Z){ye(Z)},get keyboardControls(){return De()},set keyboardControls(Z){De(Z)}});return o(),Dt}var vx=$e('<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 sv(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=vx();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 av(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");sv(t,{get style(){return r(o)}})}var gx=L('<div class="title svelte-1y9fytq"> </div>'),hx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),_x={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 lv(t,e){K(t,_x);var i=hx(),o=h(i);{var n=d=>{var l=gx(),u=h(l,!0);g(l),I(()=>ge(u,e.title)),$(d,l)};V(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);av(d,{get isWhite(){return r(l)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),I(()=>nt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var p0=require("@vkontakte/videoplayer-shared/es2015"),ji=require("@vkontakte/videoplayer-shared/es2015"),nc=require("@vkontakte/videoplayer-core/es2015"),f0=require("@vkontakte/videoplayer-statistics/es2015");var Tu=require("@vkontakte/videoplayer-shared/es2015"),Cu=class{constructor(){this.subscription=new Tu.Subscription,this.logger=new Tu.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=we(e.state.currentPlaybackRate$),n=we(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 yl=require("@vkontakte/videoplayer-shared/es2015");var bx=$e('<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 dv(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=bx();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),I(()=>n=Te(o,n,W({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 $x=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),yx={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 cv(t,e){z(e,!0),K(t,yx);let[i,o]=Oe(),n=()=>S(u,"$interfaceLanguage$",i),a=()=>S(f,"$isMobile$",i),s=Se(),d=Wt(),l=!!s.webApi.pictureInPictureApi,u=s.interfaceLanguage$,f=s.ui.isMobile,_=s.ui.t,p=v(()=>n()&&_("pip_dummy_title")),b=Su(d.view);var x=$x();te(x,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),nt(x,b);var y=h(x);let C;var k=h(y);dv(k,{}),g(y);var E=M(y,2),P=h(E,!0);g(E),g(x),I(A=>{C=te(y,1,"dummy-image svelte-1pbsod4",null,C,A),ge(P,r(p))},[()=>({desktop:!a()})]),$(t,x),q(),o()}var xx=Object.defineProperty,wx=(t,e,i)=>e in t?xx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,$l=(t,e,i)=>wx(t,typeof e!="symbol"?e+"":e,i),uv=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())}),Sx=460,Cx=280,jd=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 yl.ValueSubject(!1),isEnabled$:new yl.ValueSubject(!1),type:1}),this.info.isEnabled$=new yl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,yl.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}request(){return uv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Sx,height:Cx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
|
|
479
|
+
`),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=ss(cv,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||(Zs(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return uv(this,null,function*(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})})}dispose(){return uv(this,null,function*(){yield 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 n0(t){return t instanceof jd}var ku=class{static getLatestSupportedVersion(e){let i=new sa,o=new jd(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 r0="Inner error. Unexpectedly root annotation container null reference exception",s0="Annotation with such name already exists",a0="Annotation with such name does not exist";var xl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var wl=require("@vkontakte/videoplayer-shared/es2015"),Tx="1",kx=100,Eu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new wl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,wl.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"},kx);this.subscriptions.add((0,wl.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 xl(r0);if(this.annotations.has(e))throw new xl(s0);i.style.zIndex=(o=i.style.zIndex)!=null?o:Tx,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new xl(a0);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 ka=require("@vkontakte/videoplayer-shared/es2015"),Wo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,ka.assertNonNullable)(e),(0,ka.assertNonNullable)(i),(0,ka.assertNonNullable)(n),n.interactiveData&&(0,ka.assertNonNullable)(o),this.subscription=new ka.Subscription,this.subscription}};var Zd=class extends Wo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Rt(W({},ce(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Xd=class extends Wo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Rt(W({},ce(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:u,isMobile:f}=a.ui,_=we(f),p=()=>_&&we(u);return o.add(u.subscribe(b=>{if(!_)return;let x=we(s);we(l)?this.state$.set(b):x!==null&&this.state$.set(!x||b)})),o.add(l.subscribe(b=>{this.state$.set(!b||p())})),o.add(s.subscribe(b=>{if(b===null)return;let x=we(d);if(p()){this.state$.set(!0);return}x&&this.state$.set(!b)})),o}};var Jd=class extends Wo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ce("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var l0=require("@vkontakte/videoplayer-shared/es2015");var pv=ce(!1),Pu=null,ec=class extends Wo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Rt(W({},pv),{set:(i,o=!1)=>{i!==we(pv)&&(this.clearTimeout(),pv.set(i),!i&&Pu&&(Pu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:s,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(l.subscribe(_=>{we(s)&&_&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,l0.combine)({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:_,isInteractiveTime$:p,interactiveTimeIndicator:b})=>{var x,y;if(!(!_||!(b!=null&&b.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Pu===null&&(Pu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(x=n.callbacks)==null?void 0:x.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(x))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Au=require("@vkontakte/videoplayer-shared/es2015");var tc=class extends Wo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Rt(W({},ce(null)),{toggle:Au.noop});this.checkIfShouldHide=i=>Ms(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=()=>It(this,null,function*(){if(this.checkIfShouldHide(we(s)))return;let l=we(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:_}=n.ui.controls,p=we(u),b=we(f);if(l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),_.remove(Bp),!p&&this.graphMadePause&&n.actions.internal.play()}catch(x){d({message:"Cant hide graph"})}else{this.graphMadePause=b==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),_.add(Bp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(x){d({message:"Cant show graph"})}}}),o.add((0,Au.combine)({graphIsOpened:this.state$,currentGridType:s}).subscribe(f=>It(this,[f],function*({graphIsOpened:l,currentGridType:u}){if(this.checkIfShouldHide(u)&&l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};var fv=require("@vkontakte/videoplayer-shared/es2015"),ic=class extends Wo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ce(!1),isEnabled$:ce(!1),type$:ce(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new fv.ValueSubject(!1),isEnabled$:new fv.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 Lu=require("@vkontakte/videoplayer-shared/es2015");var Mu=require("@vkontakte/videoplayer-shared/es2015");var d0=({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,Mu.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(Mu.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Mu.safeStorage.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o(Rt(W({},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 oc=class extends Wo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ce({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=d0({maxShowCount:a,timeout:s});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Lu.filterChanged)(),(0,Lu.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var c0=()=>[Zd,Xd,Jd,ec,tc,ic,oc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Rt(W({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var Sl=require("@vkontakte/videoplayer-shared/es2015");var Px=Object.defineProperty,Ax=Object.defineProperties,Mx=Object.getOwnPropertyDescriptors,u0=Object.getOwnPropertySymbols,Lx=Object.prototype.hasOwnProperty,Vx=Object.prototype.propertyIsEnumerable,mv=(t,e,i)=>e in t?Px(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ds=(t,e)=>{for(var i in e||(e={}))Lx.call(e,i)&&mv(t,i,e[i]);if(u0)for(var i of u0(e))Vx.call(e,i)&&mv(t,i,e[i]);return t},Rx=(t,e)=>Ax(t,Mx(e)),oi=(t,e,i)=>mv(t,typeof e!="symbol"?e+"":e,i),Vu=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())}),Dx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:ji.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,nc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},wn=ie(void 0),Ru=class extends HTMLElement{constructor(){super(),oi(this,"svelteStubComponent"),oi(this,"svelteRootComponent"),oi(this,"store"),oi(this,"microStoresRoot"),oi(this,"statistics"),oi(this,"sentry"),oi(this,"_shadowRoot"),oi(this,"playerContainer"),oi(this,"rootContainer"),oi(this,"shadowRootContainer"),oi(this,"uiConfig"),oi(this,"coreConfig"),oi(this,"statisticsConfig"),oi(this,"interactiveController"),oi(this,"interactiveContainer"),oi(this,"graphMadePause"),oi(this,"currentPlayingVideoIndex",0),oi(this,"needToRepeatPlaylist",!1),oi(this,"videoConfig"),oi(this,"pictureInPictureApi"),oi(this,"mediaSessionApi"),oi(this,"unsubscribePlayerPhaseSubscription"),oi(this,"logger"),oi(this,"log"),oi(this,"subscription"),oi(this,"interactiveSubscription"),oi(this,"annotationsApi"),oi(this,"slotsApi"),oi(this,"prevIsid"),oi(this,"isInited",!1),oi(this,"internalsExposure",null),oi(this,"shadowDOMCallbacksDisabled",!1),oi(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:f,statVKAppId:_,refreshStatAuthToken:p,autoplay:b,isMobile:x,isTouch:y,refDomain:C,deviceId:k,interactiveData:E}=Iu(this.videoConfig,i),P=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:T,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&T)return new f0.OneStat(Ds({movieId:T,albumId:d,place:l,trackCode:f,vkAppId:_,autoplay:(s=b&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:x,clip:R,refDomain:C,deviceId:k},P&&(!this.isInited||A)&&{projectId:Number(P)}),Ds({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}),Sl.devNull.create("ui"),this.logger=new ji.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new ji.Subscription,this.interactiveSubscription=new ji.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=me({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=ss(lv,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(),Sl.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,u,f,_;if(!this.videoConfig)return;let{albumId:p,statPlace:b,statAuthToken:x,preload:y,autoplay:C,volume:k,muted:E,fromTime:P,canRewindLive:A,supportLink:T,showAds:R,adsSlotId:F,adsParams:Y={},adsPreviewParam:H,adsAutoplayParam:X,interfaceLanguage:oe,isCyrillicRelatedInterface:ee,logoClickable:ue,logoHidden:le,isMobile:Me,isTouch:Le,isAudioDisabled:J,isLiveCatchUpMode:Ve,fullScreenTarget:j,failoverHosts:N,canDownload:Re,callbacks:re,interactiveData:ke,showThumbTimer:Ne,additionalButtons:fe=[],additionalSettingsMenuItems:B=[],additionalContextMenuItems:de=[],repeat:Ie,saveRate:Ke,volumeMultiplier:st,showEndScreen:xe,showAutoplayNext:ye}=Iu(this.videoConfig,i),{sources:De,title:et,thumbUrl:at,unitedVideoId:ft,isClip:Ut=!1,duration:lt,adsParams:wt={},videoEpisodes:Yt,previewThumbsData:Xt,subtitles:Be,live:se}=e,Q=Ds(Ds({},Y),wt),ae=this.getNextVideoInfo(),_e={sources:De,title:et,thumbUrl:at,subtitles:Be,unitedVideoId:ft,isClip:Ut,live:se,albumId:p,statPlace:b,autoplay:C,muted:E,volume:k,fromTime:P,canRewindLive:A,showAds:R,adsSlotId:F,adsParams:Q,adsPreviewParam:H,adsAutoplayParam:X,duration:lt,logoClickable:ue,logoHidden:le,isTouch:Le!=null?Le:Me,repeat:Ie,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Pe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(_e)}`});let He=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),ut=(He==null?void 0:He.oneStat)||this.createOneStat(e,i);ut&&(this.statistics=new pu(ut,He==null?void 0:He.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ra(this.uiConfig.sentry,{version:ia,env:Oc},{movieId:ft,albumId:p,place:b,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Le!=null?Le:Me,clip:Ut}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry=Ds(Ds({},this.sentry),ra.getInstance());let Ye=!!ke,gt=[],tt="tooltip_interactive_go_back_disabled_first";if(Ye&&this.interactiveController){let pt=this.interactiveController.state.isInitialChapter$.getValue(),li=this.interactiveController.getHistoryState();pt&>.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||gt.push("SEEK_TO_INTERACTIVE_BUTTON"),li.hasPrevChapter$.getValue()||(gt.push("PLAY_PREV_CHAPTER_BUTTON"),pt||(li.isGoBackLimited$.getValue()?tt="tooltip_interactive_go_back_disabled_limit":tt="tooltip_interactive_go_back_disabled"))}let St=()=>{var pt;this.isInited=!1,this.prevIsid=void 0;let li=(o==null?void 0:o.info.isEnded$.getValue())&&((pt=this.interactiveController)==null?void 0:pt.state.isEndChapter$.getValue());re.onReplayInteractiveVideo&&!li?re.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=C1({player:o,interfaceLanguage:oe,isCyrillicRelatedInterface:ee,videoId:ft,isClip:Ut,isLiveCatchUpMode:Ve,isAudioDisabled:J,statAuthToken:x,callbacks:re,webApi:Pe,videoEpisodes:Yt,previewThumbsData:Xt,canDownload:Re,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:gt,isInteractive:Ye,saveRate:Ke,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(u=this.interactiveController)==null?void 0:u.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:St,playPrevChapterDisabledTooltip:tt,hasInteractiveBranches:!!((_=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?fe:[],additionalSettingsMenuItems:B!=null?B:[],additionalContextMenuItems:de!=null?de:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ie&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:ni}=this.microStoresRoot=c0(),Xe=()=>{var pt,li,Oi,Oo,Hi,ho;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(At=>{var bt;return(bt=re==null?void 0:re.onCurrentFormatChanged)==null?void 0:bt.call(re,At)})),this.subscription.add(ni.interactiveControlsOpacity$.subscribe(At=>{var bt;At!==null&&((bt=this==null?void 0:this.interactiveController)==null||bt.setDisabledControls(At))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(At=>{var bt;return(bt=re==null?void 0:re.onThroughputEstimationChanged)==null?void 0:bt.call(re,At)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(At=>{var bt;return(bt=re==null?void 0:re.onTrafficSavingEnabledChanged)==null?void 0:bt.call(re,At)})),this.subscription.add(new ji.Observable(At=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(bt=>At.next(bt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,ji.skip)(1):At=>At).subscribe(At=>{var bt;return(bt=re==null?void 0:re.onCurrentPlaybackRateChanged)==null?void 0:bt.call(re,At)})),this.subscription.add(this.store.state.volume$.subscribe(At=>{var bt;return(bt=re==null?void 0:re.onVolumeChange)==null?void 0:bt.call(re,At)})),this.subscription.add(this.store.state.muted$.subscribe(At=>{var bt,Dt;return At?(bt=re==null?void 0:re.onMute)==null?void 0:bt.call(re):(Dt=re==null?void 0:re.onUnmute)==null?void 0:Dt.call(re)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(At=>{var bt;return(bt=re==null?void 0:re.onVideoBitrateChanged)==null?void 0:bt.call(re,At)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(At=>{var bt;let Dt=(bt=this.store)==null?void 0:bt.ui.controls.disabledControls$;Dt&&(At&&!Dt.includes(od)&&Dt.add(od),At||Dt.remove(od))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(At=>Vu(this,null,function*(){var bt;if(!nc.clientChecker.browser.isSamsungBrowser||!At||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((bt=this.videoConfig)==null?void 0:bt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(At=>{var bt;return(bt=re==null?void 0:re.onVSIDChanged)==null?void 0:bt.call(re,At)})),this.initMediaSession(),O(wn,me({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:De,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:et,thumbUrl:at,subtitles:Be,live:se,preload:y,autoplay:C,muted:E,volume:k,fromTime:P,canRewindLive:A,supportLink:T,showAds:R,adsSlotId:F,adsParams:Q,adsPreviewParam:H,adsAutoplayParam:X,duration:lt,logoClickable:ue,logoHidden:le,isMobile:Le!=null?Le:Me,failoverHosts:N,fullScreenTarget:j,saveRate:Ke,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ne,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:st,showEndScreen:xe,showAutoplayNext:ye}));let Ho={target:this.playerContainer,props:r(wn)};this.svelteRootComponent=ss(rv,Ho),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Oi=(li=(pt=this.videoConfig)==null?void 0:pt.callbacks)==null?void 0:li.onInited)==null||Oi.call(li)),(Oo=this.internalsExposure)==null||Oo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ho=(Hi=this.videoConfig)==null?void 0:Hi.callbacks)!=null&&ho.onDevNullLog)?Sl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Sl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?nc.clientChecker.isInited$.subscribe(pt=>{pt&&(console.log("UI SDK async start"),Xe())}):Xe()}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:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,u;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(u=a.onPiPExit)==null?void 0:u.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,ji.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)}initInteractives(){return Vu(this,null,function*(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,d=s?we(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:u,historyApi:f,videoLoader:_}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:u,historyApi:f,vkVideoLoader:_,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation}});let{isInteractiveExpectation$:p,isSeekable$:b}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(b.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(p.subscribe(y=>{this.store&&this.store.state.isInteractiveExpectation$.set(y)}));let x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(y=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Rx(Ds({},y.config),{title:(l==null?void 0:l.title)||y.config.title});let C=x?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,C),x&&(x=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:C})=>{var k,E,P,A,T,R;if(!this.store||!this.microStoresRoot)return;let F=p.getValue();if(y==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(nd)),y==="action-choice-canceled"){let Y=we(this.store.state.isPlaying$)||F;if(((P=(k=this.videoConfig)==null?void 0:k.isTouch)!=null?P:(E=this.videoConfig)!=null&&E.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(R=(A=this.videoConfig)==null?void 0:(T=A.callbacks).onDisabledInteractiveClick)==null||R.call(T)}})),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(nd)})),yield 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 k,E,P;C.length&&((P=(E=(k=this.videoConfig)==null?void 0:k.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||P.call(E,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,C,k,E;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(C=this.videoConfig)==null?void 0:(k=C.callbacks).onInteractiveTimeIndicatorClick)==null||E.call(k)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(a){this.log({message:a.message})}})}initPlayer(e,i={}){var o,n,a,s,d,l,u,f,_,p,b,x,y,C,k,E,P,A,T,R,F,Y,H,X,oe,ee;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(console.log(e),this.videoConfig=Iu(Dx,(0,ji.cloneDeepWith)(e,ue=>ue instanceof HTMLElement?ue:void 0)),this.uiConfig=rh((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==="compact"&&(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 ji.InternalsExposure("UI"))),Sl.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,p0.now)()]}),(0,ji.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,ji.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=(_=this.uiConfig.features.pip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?p:!0,this.uiConfig.features.dpip=(x=(b=this.uiConfig.features.dpip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?x:!0),this.videoConfig.isTouch=(C=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(k=this.videoConfig).autoplay&&(k.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(A=this.uiConfig.ads.preview)!=null?A:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((T=this.uiConfig.showLogo)!=null?T:!this.videoConfig.logoHidden),(R=this.videoConfig).canRewindLive&&(R.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(F=this.videoConfig.supportLink)!=null?F:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Y=this.uiConfig.features.endScreen)!=null?Y:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(H=this.uiConfig.features.autoplayNext)!=null?H:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(X=this.uiConfig.features.nextPrevButtons)!=null?X:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((oe=this.videoConfig.videos)!=null&&oe[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ue={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ku.getLatestSupportedVersion(ue):this.pictureInPictureApi=new sa(ue)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Cu:void 0,this.slotsApi=this.uiConfig.features.slots?new yu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Eu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(ee=this.slotsApi)==null||ee.init(this.shadowRootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),n0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(wn)&&(r(wn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(wn).nextButtonActive=this.isNextButtonActive(),r(wn).prevButtonActive=this.isPrevButtonActive(),r(wn).endScreenVideoTitle=o.nextVideoTitle,r(wn).endScreenVideoThumb=o.nextVideoThumb,r(wn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=Ds({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",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)}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(wn)&&(r(wn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(wn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(wn).nextButtonActive=this.isNextButtonActive(),r(wn).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)}setLanguage(e){return Vu(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingRecover(){var e;this.log({message:"live waiting"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}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()}replayInteractiveChapter(e){return Vu(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=we(this.store.state.positionExact$),s=we(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe((0,ji.once)()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.updateContext(e)}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}unmountComponent(e){e&&Zs(e)}};var Cl=require("@vkontakte/videoplayer-shared/es2015"),Du=require("@vkontakte/videoplayer-core/es2015"),Nx=()=>{window.customElements.define("vk-video-player",Ru)};
|